257d1e82544c9526e8df2ff1621c73efd89f3382
[platform/upstream/glibc.git] / ChangeLog
1 2009-01-28  Ulrich Drepper  <drepper@redhat.com>
2
3         * nscd/connections.c (nscd_init): If database file access be
4         opened check whether this is due to permission problems and bail
5         in that case.
6
7         [BZ #9741]
8         * nscd/mem.c (gc): Fix assignment of he_data in case malloc is used.
9         Reported by Jun'ichi Nomura <j-nomura@ce.jp.nec.com>.
10
11 2009-01-14  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
12
13         * sysdeps/unix/sysv/linux/sh/sysdep.h (INTERNAL_SYSCALL):
14         Add "t" to clobber list.
15         (INTERNAL_SYSCALL_NCS): Likewise.
16
17 2009-01-28  Ulrich Drepper  <drepper@redhat.com>
18
19         * nss/getent.c (print_networks): Don't print comma between aliases.
20
21 2009-01-23  Ulrich Drepper  <drepper@redhat.com>
22
23         * sysdeps/unix/sysv/linux/tst-clone.c (do_test): Avoid warning.
24
25         * misc/hsearch_r.c (hcreate_r): We need at least three elements in
26         the hash table.
27         * misc/Makefile (tests): Add bug-hsearch1.
28         * misc/bug-hsearch1.c: New file.
29
30 2009-01-22  Roland McGrath  <roland@redhat.com>
31
32         * Makeconfig (%.v.i): Strip trailing # comments,
33         not only whole-line comments.
34
35 2009-01-10  Ulrich Drepper  <drepper@redhat.com>
36
37         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Take
38         one parameter.  If non-NULL use it to initialize return value.
39         (_dl_setup_pointer_guard): New function.
40         * sysdeps/unix/sysv/linux/dl-osinfo.h: Likewise.
41         * sysdeps/generic/ldsodefs.h: Declare _dl_random.
42         * elf/rtld.c (security_init): Pass _dl_random to
43         _dl_setup_stack_chk_guard.  Call _dl_setup_pointer_guard to initialize
44         pointer_chk_guard.
45         * elf/dl-sysdep.c (_dl_random): New variable.
46         (_dl_sysdep_start): Handle AT_RANDOM.
47         (_dl_show_auxv): Likewise.
48         * elf/dl-support.c (_dl_random): New variable.
49         (_dl_aux_init): Handle AT_RANDOM.
50         * csu/libc-start.c [!SHARED] (libc_start_main): Pass _dl_random
51         to _dl_setup_stack_chk_guard.
52
53         * elf/elf.h (AT_RANDOM): Define AT_BASE_PLATFORM and AT_RANDOM.
54
55 2009-01-10  Roland McGrath  <roland@redhat.com>
56
57         * nscd/nscd.c (parse_opt): Use argp_error for bad -i argument.
58
59 2009-01-08  Ulrich Drepper  <drepper@redhat.com>
60
61         * sysdeps/i386/fpu/libm-test-ulps: Adjust expm1 errors.
62
63         [BZ #9706]
64         * nss/nss_files/files-parse.c (strtou32): New function.
65         (INT_FIELD): Use strotu32 instead of strtoul to unify behavior
66         across 32-bit and 64-bit platforms.
67         (INT_FIELD_MAYBE_NULL): Likewise.
68
69 2009-01-08  Jakub Jelinek  <jakub@redhat.com>
70
71         [BZ #9720]
72         * sysdeps/unix/sysv/linux/bits/resource.h (enum __rusage_who): Avoid
73         comma after RUSAGE_CHILDREN if not -D_GNU_SOURCE.
74         * sysdeps/unix/sysv/linux/sparc/bits/resource.h (enum __rusage_who):
75         Likewise.
76
77 2009-01-05  Paolo Bonzini  <bonzini@gnu.org>
78
79         [BZ #697]
80         * posix/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
81         being NULL also if there are no backreferences.
82         * posix/rxspencer/tests: Add testcases.
83
84 2009-01-04  Paolo Bonzini  <bonzini@gnu.org>
85
86         [BZ #9697]
87         * posix/bug-regex17.c: Add testcases.
88         * posix/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
89         handling.
90
91 2009-01-05  Martin Schwidefsky  <schwidefsky@de.ibm.com>
92
93         * sysdeps/unix/sysv/linux/s390/bits/libc-vdso.h: New file.
94         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: New file.
95         * sysdeps/unix/sysv/linux/s390/init-first.c: New file.
96         * sysdeps/unix/sysv/linux/s390/Makefile (sysdep_routines): Add dl-vdso
97         for elf subdir.
98         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (INLINE_VSYSCALL,
99         INTERNAL_VSYSCALL, INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK,
100         INTERNAL_SYSCALL_NCS, HAVE_CLOCK_GETRES_VSYSCALL and
101         HAVE_CLOCK_GETTIME_VSYSCALL: Define.
102         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
103         * sysdeps/unix/sysv/linux/s390/Versions: New file.
104
105 2008-12-31  Paolo Bonzini  <bonzini@gnu.org>
106
107         * posix/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
108         * posix/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
109         re_string_skip_chars, re_string_reconstruct): Likewise.
110         * posix/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
111
112 2008-12-31  Rafael Avila de Espindola  <espindola@google.com>
113
114         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr2_r): Check and
115         adjust the buffer alignment.
116
117 2009-01-07  Samuel Thibault  <samuel.thibault@ens-lyon.org>
118
119         * sysdeps/mach/hurd/Makefile (sysdep_headers) [subdir=socket]:
120         Add net/ethernet.h net/if_arp.h net/if_ether.h net/if_ppp.h
121         net/route.h.
122
123         * hurd/report-wait.c (describe_number): Use __stpcpy to prepend
124         flavor to description only when flavor is not NULL.
125
126         * hurd/hurdsig.c (signal_allowed): Unlock _hurd_dtable_lock
127         mutex after SIGIO/SIGURG lookup loop.
128
129 2009-01-03  Samuel Thibault  <samuel.thibault@ens-lyon.org>
130
131         * bits/resource.h (PRIO_PROCESS, PRIO_PGRP, PRIO_USER): Add macros.
132
133 2009-01-03  Ulrich Drepper  <drepper@redhat.com>
134
135         * sysdeps/unix/sysv/linux/i386/sysdep.h: Describe 6th argument
136         handling.
137
138 2009-01-02  Ulrich Drepper  <drepper@redhat.com>
139
140         * sysdeps/unix/sysv/linux/kernel-features.h
141         (__ASSUME_FUTEX_CLOCK_REALTIME): Define.
142
143         * wcsmbs/wcsnrtombs.c (__wcsnrtombs): Create temporary state object
144         if no output is written.
145
146         * version.h: Bump to 2.10 development.
147
148         * posix/getconf.c: Update copyright year.
149         * nss/getent.c: Likewise.
150         * iconv/iconvconfig.c: Likewise.
151         * iconv/iconv_prog.c: Likewise.
152         * elf/ldconfig.c: Likewise.
153         * catgets/gencat.c: Likewise.
154         * csu/version.c: Likewise.
155         * elf/ldd.bash.in: Likewise.
156         * elf/sprof.c (print_version): Likewise.
157         * locale/programs/locale.c: Likewise.
158         * locale/programs/localedef.c: Likewise.
159         * nscd/nscd.c (print_version): Likewise.
160         * debug/xtrace.sh: Likewise.
161         * malloc/memusage.sh: Likewise.
162         * malloc/mtrace.pl: Likewise.
163         * debug/catchsegv.sh: Likewise.
164
165 2008-12-29  Mike Frysinger  <vapier@gentoo.org>
166
167         * iconvdata/Makefile (iconv-rules): Use LC_ALL=C when running awk
168         script.
169
170 2008-12-29  Ulrich Drepper  <drepper@redhat.com>
171
172         * sysdeps/posix/getaddrinfo.c (gaih_inet): When the
173         gethostbyname4_r function call succeeded, just leave the loop.
174
175         [BZ #9694]
176         * wcsmbs/wchar.h: Move undefs for local __need_* constants to the
177         very end.
178         * wctype/wctype.h: Get wint_t definition directly from <stddef.h>.
179         * wctype/Makefile (tests): Add bug-wctypeh.
180         * wctype/bug-wctypeh.c: New file.
181
182         * nscd/nscd_gethst_r.c (nscd_gethst_r): Don't use nscd if
183         LOCALDOMAIN is defined.
184         * nscd/nscd_getai.c (__nscd_getai): Likewise.
185
186         * sysdeps/x86_64/bits/select.h: New file.
187
188         * resolv/res_init.c (__res_vinit): Count all servers in statp->nscount.
189
190 2008-12-21  Bruno Haible  <bruno@clisp.org>
191
192         [BZ #9677]
193         * wcsmbs/mbsnrtowcs.c (__mbsnrtowcs): Create temporary state object
194         if no output is written.
195
196 2008-12-13  Klaus Dittrich  <kladit@arcor.de>
197
198         * login/utmp_file.c (pututline_file): Replace call to dup2 with
199         libc internal symbol __dup2 to avoid access through the PLT.
200
201 2008-12-08  Ulrich Drepper  <drepper@redhat.com>
202
203         [BZ #6545]
204         * sysdeps/unix/sysv/linux/bits/socket.h (SCM_CREDENTIALS): Make
205         available only for __USE_GNU.
206
207         * inet/Makefile (tests): Add tst-getni2.
208         * inet/tst-getni2.c: New file.
209
210         [BZ #7080]
211         * inet/getnameinfo.c (getnameinfo): Check for output buffers being
212         NULL when NI_NAMEREQD is set.
213         Patch mostly by Yang Hongyang <yanghy@cn.fujitsu.com>.
214         * inet/Makefile (tests): Add tst-getni1.
215         * inet/tst-getni1.c: New file.
216
217 2008-12-03  Petr Baudis  <pasky@suse.cz>
218
219         [BZ #7067]
220         * nscd/connections.c (invalidate_cache): Use prune_run_lock
221         instead of prune_lock.
222         (nscd_run_prune): Before calling prune_cache, take prune_run_lock.
223         * nscd/nscd.h (database_dyn): Add prune_run_cache.
224
225 2008-12-07  Ulrich Drepper  <drepper@redhat.com>
226
227         * resolv/res_send.c (send_dg): Use correct guards for SOCK_CLOEXEC
228         use.
229
230         * sysdeps/unix/sysv/linux/kernel-features.h: Fix typo in accept4
231         handling.
232
233         * resolv/res_init.c (__res_vinit): Always assign to statp->nscount
234         after reading name server list.
235
236         [BZ #7058]
237         * nis/nss_nis/nis-hosts.c (_nss_nis_gethostbyname4_r): Fix memory
238         handling for host name aliases.
239
240 2008-11-24  Arkadiusz Miƛkiewicz  <arekm@maven.pl>
241
242         * sysdeps/i386/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Use LOAD_PIC_REG
243         instead of doing things manually.
244
245 2008-11-26  Chris Steel  <chris.steel.lnx@googlemail.com>
246
247         * posix/regex_internal.h (build_wcs_upper_buffer):
248         Return type is reg_error_t.
249
250 2008-12-05  Ulrich Drepper  <drepper@redhat.com>
251
252         * posix/globtest.sh: Use mktemp to create temporary file and
253         directory.
254
255         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_SET_S): Handle large
256         sets correctly.
257         (__CPU_CLR_S): Likewise.
258         (__CPU_ISSET_S): Likewise.
259
260 2008-12-05  Joseph Myers  <joseph@codesourcery.com>
261             Ulrich Drepper  <drepper@redhat.com>
262
263         * scripts/firstversion.awk: Use custom comparison function to compare
264         version numbers.
265         * scripts/versions.awk: Use sort invocation which can handle
266         multi-digit sub-version numbers.
267
268 2008-12-04  Ulrich Drepper  <drepper@redhat.com>
269
270         * locale/programs/ld-address.c (DEFINE_LANGUAGE_CODE2): Define.
271         * locale/iso-639.def: Add Chhattisgarhi entry.
272
273 2008-12-02  Ulrich Drepper  <drepper@redhat.com>
274
275         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname3_r): Recognize
276         ESRCH return value.
277         (_nss_dns_gethostbyname4_r): Likewise.
278         * resolv/res_init.c (__res_vinit): Initialize nscount to zero.
279         * sysdeps/posix/getaddrinfo.c (gaih_inet): In case we use
280         gethostbyname4_r, we don't have a separate IPv6 status, so copy
281         the no_data variable.
282
283         * resolv/res_init.c (__res_vinit): Fill in IPv4 name server
284         information at the correct index.
285
286         * socket/sys/socket.h: Declare accept4.
287         * socket/accept4.c: New file.
288         * sysdeps/unix/sysv/linux/accept4.c: New file.
289         * sysdeps/unix/sysv/linux/i386/accept4.S: New file.
290         * socket/Makefile (routines): Add accept4.
291         * socket/Versions: Export accept4 with version GLIBC_2.10.
292         * socket/paccept.c: Removed.
293         * sysdeps/unix/sysv/linux/paccept.c: Removed.
294         * sysdeps/unix/sysv/linux/i386/paccept.S: Removed.
295         * Versions.def: Define GLIBC_2.10 for libc.
296         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_ACCEPT4.
297
298         * nscd/connections.c: Use accept4.
299
300         * sysdeps/unix/sysv/linux/i386/socket.S: Fix comment.
301
302 2008-12-01  Ulrich Drepper  <drepper@redhat.com>
303
304         * resolv/res_send.c (send_dg): Create sockets with non-blocking
305         flag already set.
306
307         * stdlib/setenv.c (unsetenv): Don't search environment if it does
308         not exist.
309         * stdlib/Makefile (tests): Add tst-unsetenv1.
310         * stdlib/tst-unsetenv1.c: New file.
311
312 2008-11-29  Ulrich Drepper  <drepper@redhat.com>
313
314         * login/utmp_file.c (file_writable): New variable.
315         (setutent_file): Don't try to open file for writing.
316         (pututline_file): Before writing, make descriptor writable if
317         necessary.
318
319 2008-11-26  Ulrich Drepper  <drepper@redhat.com>
320
321         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Only restrict search
322         to IPv4 or IPv6 if an interface has been found.
323
324 2008-11-26  Roland McGrath  <roland@redhat.com>
325
326         * sysdeps/unix/sysv/linux/alpha/ipc_priv.h: Renamed to ...
327         * sysdeps/unix/sysv/linux/powerpc/ipc_priv.h: ... here.
328
329         * sysdeps/unix/sysv/linux/alpha/wordexp.c: Renamed to ...
330         * sysdeps/unix/sysv/linux/ia64/wordexp.c: ... here.
331         * sysdeps/unix/sysv/linux/sparc/sparc64/wordexp.c: Change #include.
332
333         * elf/elf.h (NT_386_IOPERM): New macro.
334         (NT_PPC_VSX): New macro.
335
336 2008-11-25  Roland McGrath  <roland@redhat.com>
337
338         * sysdeps/alpha, sysdeps/unix/bsd/osf/alpha,
339         sysdeps/unix/bsd/Attic/osf1/alpha, sysdeps/unix/sysv/linux/alpha,
340         sysdeps/unix/sysv/linux/alpha/alpha, sysdeps/unix/alpha,
341         sysdeps/mach/alpha, sysdeps/mach/hurd/alpha:
342         Subdirectories moved to ports repository.
343         * configure.in (base_machine): Remove alpha case.
344
345 2008-11-25  Thomas Schwinge  <tschwinge@gnu.org>
346
347         * sysdeps/mach/strerror_l.c: New file.
348
349 2008-11-13  Ryan S. Arnold  <rsa@us.ibm.com>
350
351         [BZ #6411]
352         * sysdeps/powerpc/fpu/Makefile: Added test case tst-setcontext-fpscr.
353         * sysdeps/powerpc/fpu/feholdexcpt.c (_FPU_MASK_ALL): Define to replace
354         magic numbers.
355         * sysdeps/powerpc/fpu/fenv_libc.h (fesetenv_register): Dynamically
356         choose mtfsf insn based on PPC_FEATURE_HAS_DFP.
357         (relax_fenv_state): Same as above.
358         (FPSCR_29): Reserve bit in ISA 2.05.
359         (FPSCR_NI): Provide define for compat.
360         * sysdeps/powerpc/fpu/fesetenv.c (_FPU_MASK_ALL): Define to replace
361         magic numbers.
362         * sysdeps/powerpc/fpu/feupdateenv.c (_FPU_MASK_ALL): Define to replace
363         magic numbers.
364         * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c: New file.  Test case to
365         test setcontext and swapcontext with dynamic 64-bit FPSCR detection.
366         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp): Adjust
367         access to hwcap to account for hwcap size increase to uint64_t.
368         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S (__sigsetjmp ):
369         Likewise.
370         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S
371         (*setcontext): Likewise.
372         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/setcontext.S:
373         New file.
374         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/swapcontext.S:
375         New file.
376         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S
377         (*setcontext): dynamically select mtfsf insn based on
378         PPC_FEATURE_HAS_DFP. Adjust access to hwcap to account for hwcap size
379         increase to uint64_t.
380         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S
381         (*swapcontext): dynamically select mtfsf insn based on
382         PPC_FEATURE_HAS_DFP.  Adjust access to hwcap to account for hwcap size
383         increase to uint64_t.
384         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/setcontext.S:
385         New file.
386         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/swapcontext.S:
387         New file.
388         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
389         (*setcontext): dynamically select mtfsf insn based on
390         PPC_FEATURE_HAS_DFP.
391         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
392         (*swapcontext): dynamically select mtfsf insn based on
393         PPC_FEATURE_HAS_DFP.
394
395 2008-11-13  Ulrich Drepper  <drepper@redhat.com>
396
397         * version.h: Bump for 2.9 release.
398         * include/features.h (__GLIBC_MINOR__): Bump to 9.
399
400         [BZ #7029]
401         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_ALLOC_SIZE):
402         Multiply with sizeof of __cpu_mask, not 8 unconditionally after
403         all the rounding.
404
405 2008-11-11  Ulrich Drepper  <drepper@redhat.com>
406
407         [BZ #7009]
408         * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): Don't abort for
409         unknown request types for now.
410
411 2008-11-11  Roland McGrath  <roland@redhat.com>
412
413         * sysdeps/x86_64/configure: New file.
414
415         * configure.in: Add AC_SUBST(libc_cv_cpp_asm_debuginfo).
416         * configure: Regenerated.
417
418 2008-11-03  Martin Schwidefsky  <schwidefsky@de.ibm.com>
419
420         * sysdeps/s390/s390-64/dl-trampoline.S (_dl_runtime_profile): Use the
421         correct instruction to remove the stack frame.
422
423 2008-11-03  Michael Matz  <matz@suse.de>
424
425         * sysdeps/s390/bits/atomic.h (__arch_compare_and_exchange_val_32_acq,
426         __arch_compare_and_exchange_val_64_acq): Add "memory" clobber.
427
428 2008-11-07  Jakub Jelinek  <jakub@redhat.com>
429
430         * include/stdio.h (__builtin_fwrite, __builtin_fwrite_unlocked):
431         Remove.
432
433         * bits/libc-tsd.h (__libc_tsd_define, __libc_tsd_address,
434         __libc_tsd_get, __libc_tsd_set): Add TYPE argument, use it as the type
435         of the thread variable instead of void *.
436         * sysdeps/mach/hurd/bits/libc-tsd.h (__libc_tsd_define,
437         __libc_tsd_address, __libc_tsd_get, __libc_tsd_set): Likewise.
438         * include/ctype.h (CTYPE_B, CTYPE_TOUPPER, CTYPE_TOLOWER): Adjust
439         __libc_tsd_define arguments.
440         (__ctype_b_loc, __ctype_toupper_loc, __ctype_tolower_loc): Adjust
441         __libc_tsd_address arguments.  Remove union hack.
442         * include/rpc/rpc.h (RPC_VARS): Adjust __libc_tsd_define arguments.
443         * sunrpc/rpc_thread.c (RPC_VARS): Likewise.
444         (__rpc_thread_destroy, rpc_thread_multi, __rpc_thread_variables):
445         Adjust __libc_tsd_{set,get} arguments.
446         * ctype/ctype-info.c (CTYPE_B, CTYPE_TOUPPER, CTYPE_TOLOWER): Adjust
447         __libc_tsd_define arguments.
448         * locale/uselocale.c (__uselocale): Adjust __libc_tsd_{set,get}
449         arguments.
450         * locale/lc-ctype.c (_nl_postload_ctype): Likewise.
451         * locale/global-locale.c (__libc_tsd_LOCALE): Adjust type.
452         (LOCALE): Adjust __libc_tsd_define arguments.
453         * locale/localeinfo.h (_NL_CURRENT_LOCALE): Adjust __libc_tsd_get
454         arguments.
455         (LOCALE): Adjust __libc_tsd_define arguments.
456         * sysdeps/mach/hurd/malloc-machine.h (MALLOC): Adjust __libc_tsd_define
457         arguments.
458         (tsd_setspecific, tsd_getspecific): Adjust __libc_tsd_{set,get}
459         arguments.
460
461 2008-11-02  Ulrich Drepper  <drepper@redhat.com>
462
463         * malloc/malloc.c (public_rEALLOc): When new arena is used, copy
464         really all bytes.  Patch by Denys Vlasenko <dvlasenk@redhat.com>.
465
466 2008-11-01  Ulrich Drepper  <drepper@redhat.com>
467
468         [BZ #6966]
469         * misc/hsearch_r.c (hsearch_r): Fix secondary hash function.
470
471 2008-10-24  Joseph Myers  <joseph@codesourcery.com>
472             Ulrich Drepper  <drepper@redhat.com>
473
474         * math/tgmath.h (__floating_type): Use __builtin_classify_type in
475         definition for GCC 3.1 and later.
476
477 2008-10-31  Jakub Jelinek  <jakub@redhat.com>
478
479         * elf/dl-tls.c (__tls_get_addr): After calling _dl_update_slotinfo
480         refetch dtv, as it might have changed.
481         * elf/Makefile: Add rules to build and run tst-tls18.
482         * elf/tst-tls18.c: New test.
483         * elf/tst-tlsmod18a.c: New file.
484
485 2008-09-09  Aurelien Jarno  <aurelien@aurel32.net>
486
487         [BZ #6875]
488         * iconvdata/gconv-modules: Add LATIN9 as an alias to ISO-8859-15.
489
490 2008-10-31  Ulrich Drepper  <drepper@redhat.com>
491
492         [BZ #6867]
493         * sysdeps/powerpc/elf/rtld-global-offsets.sym: Fix typo.
494
495         [BZ #6919]
496         * posix/spawnattr_getschedparam.c (posix_spawnattr_getschedparam):
497         Fix length of copy operation.
498
499 2008-10-02  Pierre Habouzit <madcoder@debian.org>
500
501         * sysdeps/unix/sysv/linux/eventfd.c (eventfd): Use the eventfd2 syscall
502         and fix its calling convention.
503
504 2008-10-07  Andreas Schwab  <schwab@suse.de>
505
506         [BZ #6942]
507         * resolv/res_send.c (send_vc): Fix last change.
508         (send_dg): Align here as well.
509
510 2008-10-31  Ulrich Drepper  <drepper@redhat.com>
511
512         * sysdeps/unix/sysv/linux/ulimit.c (__ulimit): Handle UL_GETFSIZE
513         return value in case rlimit is RLIM_INFINITY.
514
515         [BZ #6947]
516         * sysdeps/unix/sysv/linux/ulimit.c (__ulimit): Fix return value
517         for UL_SETFSIZE.
518         * resource/Makefile (tests): Add bug-ulimit1.
519         * resource/bug-ulimit1.c: New file.
520
521         [BZ #6974]
522         * sunrpc/rpc_main.c (mkfile_output): Properly handle filename
523         without dot.  Properly terminate the string with a null byte.
524         Based on a patch by Aurelien Jarno <aurelien@aurel32.net>.
525
526         [BZ #6980]
527         * debug/getgroups_chk.c (__getgroups_chk): Return EINVAL error for
528         negative sizees.
529         * posix/bits/unistd.h (getgroups): Call __getgroups_chk for
530         negative __size.
531
532         [BZ #6995]
533         * sysdeps/powerpc/powerpc32/dl-machine.c: Fix typo in message.
534
535 2008-10-30  Ulrich Drepper  <drepper@redhat.com>
536
537         * grp/initgroups.c (internal_getgrouplist): Don't prematurely
538         abort if there is no initgroups_dyn function.
539
540         * resolv/res_send.c (send_dg): On timeout, only return nonzero
541         result if any of the queries really provided an answer.
542
543 2008-10-28  Ulrich Drepper  <drepper@redhat.com>
544
545         * po/lt.po: Update from translation team.
546
547 2008-10-26  Ulrich Drepper  <drepper@redhat.com>
548
549         * po/id.po: Update from translation team.
550
551 2008-10-24  Ulrich Drepper  <drepper@redhat.com>
552
553         * resolv/res_query.c (__libc_res_nquery): Add a few casts.
554         Fix tests for existence of second reply.
555
556 2008-10-23  Ulrich Drepper  <drepper@redhat.com>
557
558         * po/id.po: New file.
559         Contributed by the Indonesian translation team.
560
561 2008-10-22  Dmitry V. Levin  <ldv@altlinux.org>
562
563         * misc/syslog.c (openlog_internal): Fix __have_sock_cloexec
564         initialization.
565
566 2008-10-17  Jakub Jelinek  <jakub@redhat.com>
567
568         * elf/Makefile: Add rules to build and run tst-tls17.
569         * elf/tst-tls17.c: New test.
570         * elf/tst-tlsmod17a.c: New file.
571         * elf/tst-tlsmod17b.c: Likewise.
572
573 2008-10-17  Ulrich Drepper  <drepper@redhat.com>
574
575         * stdlib/divmod_1.c: Use correct type for dummy variable.
576         * stdlib/mod_1.c: Likewise.
577
578 2008-10-16  Ulrich Drepper  <drepper@redhat.com>
579
580         * elf/dl-tls.c (_dl_update_slotinfo): Copy all of the initial DTV.
581
582 2008-10-16  Jakub Jelinek  <jakub@redhat.com>
583
584         * sysdeps/unix/sysv/linux/sys/signalfd.h (signalfd): Fix __THROW vs.
585         __nonnull order for C++.
586         * sysdeps/unix/sysv/linux/alpha/sys/signalfd.h (signalfd): Likewise.
587         * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h (signalfd): Likewise.
588
589 2008-10-01  Daniel Jacobowitz  <dan@codesourcery.com>
590
591         * stdlib/longlong.h: Update from GCC.
592
593 2008-10-09  Jakub Jelinek <jakub@redhat.com>
594             David S. Miller  <davem@davemloft.net>
595
596         * sysdeps/sparc/sparc64/sparcv9v/memcpy.S: When not USE_BPR,
597         make sure any registers used with 64-bit 'branch-on-register'
598         instructions have their top 32-bits clear.
599         * sysdeps/sparc/sparc64/sparcv9v/memset.S: Likewise.
600         * sysdeps/sparc/sparc64/sparcv9v2/memcpy.S: Likewise.
601
602 2008-09-18  Andreas Schwab  <schwab@suse.de>
603
604         [BZ #6942]
605         * resolv/res_send.c (send_vc): Fix use of unaligned address.
606         Properly handle partial reads.
607
608 2008-10-01  Mark Shinwell  <shinwell@codesourcery.com>
609
610         * elf/elf.h (STO_MIPS_PLT): New.
611         (R_MIPS_COPY): New.
612         (R_MIPS_JUMP_SLOT): New.
613         (R_MIPS_NUM): Redefine to 128.
614         (DT_MIPS_PLTGOT): New.
615         (DT_MIPS_RWPLT): New.
616         (DT_MIPS_NUM): Redefine to 0x35.
617
618 2008-10-01  Ulrich Drepper  <drepper@redhat.com>
619
620         * timezone/africa: Update from tzdata2008f.
621         * timezone/asia: Likewise.
622         * timezone/australasia: Likewise.
623         * timezone/europe: Likewise.
624         * timezone/leapseconds: Likewise.
625         * timezone/northamerica: Likewise.
626         * timezone/southamerica: Likewise.
627         * timezone/zone.tab: Likewise.
628
629 2008-09-30  Ulrich Drepper  <drepper@redhat.com>
630
631         * nscd/connections.c: Disable use of paccept for now.
632
633 2008-09-29  Ulrich Drepper  <drepper@redhat.com>
634
635         * socket/Versions: Remove paccept export for GLIBC_2.9.
636         * socket/Makefile (routines): Remove paccept.
637         * socket/sys/socket.h: Remove paccept declaration.
638
639         * po/sv.po: Update from translation team.
640
641 2008-09-22  Deborah S. Townsend  <dstownse@us.ibm.com>
642
643         * sysdeps/s390/s390-64/s390x-mcount.S: Replace ahi with aghi.
644         * sysdeps/unix/sysv/linux/s390/s390-64/socket.S: Likewise.
645
646 2008-09-16  Ulrich Drepper  <drepper@redhat.com>
647
648         * dlfcn/dlopen.c (dlopen_doit): Allow __RTLD_SPROF flag.
649         Patch by Olivier Fourdan <ofourdan@redhat.com>.
650
651 2008-09-15  Ulrich Drepper  <drepper@redhat.com>
652
653         * sunrpc/rpc/svc.h: Declare svcfd_create.
654         Patch by Michael Solberg <msolberg@redhat.com>.
655
656 2008-09-12  Flavio Leitner  <fleitner@redhat.com>
657             Ulrich Drepper  <drepper@redhat.com>
658
659         * malloc/malloc.c (public_vALLOc): Try other arenas in case
660         _int_valloc fails.
661         (public_pVALLOc): Likewise.
662
663 2008-09-02  Andreas Jaeger  <aj@suse.de>
664
665         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: Fix last
666         commit.
667
668 2008-08-26  Aurelien Jarno  <aurelien@aurel32.net>
669
670         [BZ #6860]
671         * hurd/hurd/signal.h (HURD_MSGPORT_RPC): Fix a typo.
672
673 2008-07-18  Daniel Jacobowitz  <dan@codesourcery.com>
674
675         * Makefile (check-data): Check data directory in add-ons.
676         * elf/Makefile (check-data): Likewise.
677
678 2008-08-18  Roland McGrath  <roland@redhat.com>
679
680         * configure.in (--with-cpu): Check compiler support for -march/-mcpu.
681         * configure: Regenerated.
682         * config.make.in (cflags-cpu): New substituted variable.
683         (with-cpu): Variable removed.
684         * Makeconfig (+cflags): Use $(cflags-cpu), not $(with-cpu).
685
686 2008-08-14  Ryan S. Arnold  <rsa@us.ibm.com>
687
688         [BZ #6845]
689         * sysdeps/powerpc/fpu/bits/mathinline.h (__signbitl): Copy new
690         __signbitl definition and __LONG_DOUBLE_128__ guard from:
691         * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h: Remove as
692         redundant.  Functions which call floating point assembler operations
693         should go into a sysdeps powerpc/fpu directory.
694
695 2008-08-15  Ulrich Drepper  <drepper@redhat.com>
696
697         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Define MAP_STACK.
698         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Likewise.
699
700 2008-08-14  Ulrich Drepper  <drepper@redhat.com>
701
702         * sysdeps/x86_64/memset.S: Reduce size of tables for PIC.
703
704         * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): Undo all
705         change related to AT_EXECFN.  We cannot use that string.
706         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Remove
707         _dl_execfn member.
708         * elf/dl-support.c: Remove _dl_execfn variable.
709         (_dl_aux_init): Remove handling of AT_EXECFN.
710         * elf/dl-sysdep.c (_dl_sysdep_start): Remove handling of AT_EXECFN.
711         * elf/rtld.c (process_envvars): Remove use of __ASSUME_AT_EXECFN.
712
713 2008-08-13  Ulrich Drepper  <drepper@redhat.com>
714
715         [BZ #6544]
716         * libio/fmemopen.c: Implement binary mode.  In this mode no NUL
717         byte gets added to writes and seeks from the end use the length of
718         the buffer and not the currently terminating NUL byte.
719
720         [BZ #6634]
721         * login/utmp_file.c (getutent_r_file): Take additional parameter.
722         Set to true if locking failed.
723         (getutid_r_file): Adjust caller.
724         (pututline_file): Likewise.  Return NULL in this case.
725         Patch mostly by halesh.s@gmail.com.
726
727 2008-08-12  Ulrich Drepper  <drepper@redhat.com>
728
729         [BZ #6589]
730         * sysdeps/unix/sysv/linux/ifaddrs.c (struct sockaddr_ll_max):
731         Define.
732         (struct ifaddrs_storage): Use it instead of sockaddr_ll.
733
734 2008-08-12  Ryan S. Arnold  <rsa@us.ibm.com>
735
736         [BZ #6839]
737         * sysdeps/powerpc/powerpc32/dl-machine.c (CHECK_STATIC_TLS): Remove
738         macro since it is now available in elf/dynamic-link.h.
739
740 2008-08-12  Roland McGrath  <roland@frob.com>
741
742         * hurd/hurd/signal.h (HURD_MSGPORT_RPC): Avoid -Wparenthesis triggers,
743         in case used outside of libc.
744         Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>
745
746 2008-08-11  Ulrich Drepper  <drepper@redhat.com>
747
748         * resolv/res_mkquery.c (res_nmkquery): Call ns_name_compress
749         directly instead of going through dn_comp.
750
751 2008-08-11  Aurelien Jarno  <aurel32@debian.org>
752
753         * sysdeps/mach/i386/machine-lock.h (__spin_unlock, __spin_try_lock):
754         Fix asm constraints.
755
756 2008-08-07  Ulrich Drepper  <drepper@redhat.com>
757
758         [BZ #6790]
759         * sysdeps/unix/sysv/linux/bits/in.h (IP_PMTUDISC_PROBE): Define.
760         (IPV6_PMTUDISC_PROBE): Likewise.
761
762 2008-08-07  Pete Eberlein  <eberlein@us.ibm.com>
763
764         [BZ #6791]
765         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h (PROT_SAO): Define.
766
767 2008-08-01  Steven Munroe  <sjmunroe@us.ibm.com>
768             Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
769
770         [BZ #6817]
771         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags):
772         Added the members 'vsx' and 'arch_2_06'.
773         (_dl_powerpc_platforms): Add the member 'power7'.
774         * sysdeps/powerpc/dl-procinfo.h: Modify _DL_HWCAP_FIRST
775         to reflect the changes required by VSX and ISA 2.06.
776         Modify _DL_PLATFORMS_COUNT to reflect the addition of
777         'power7'.
778         Defined PPC_PLATFORM_POWER7.
779         (_dl_string_platform): Add support for POWER7.
780         * sysdeps/powerpc/sysdep.h: Define bit masks for VSX
781         capability and ISA 2.06.
782
783 2008-08-07  Ulrich Drepper  <drepper@redhat.com>
784
785         [BZ #6824]
786         * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h: Use correct
787         macro to detect use of 128 bit long double.
788         Patch by Ryan S. Arnold <rsa@us.ibm.com>.
789
790 2008-08-05  Ulrich Drepper  <drepper@redhat.com>
791
792         * scripts/gen-as-const.awk: Use 32-bit values on 32-bit platforms.
793
794         [BZ #5794]
795         * sysdeps/i386/fpu/s_expm1l.S: Simply use exp implementation for large
796         parameters.
797         * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
798         Patch by Denys Vlasenko <dvlasenk@redhat.com>.
799
800 2008-08-03  Ulrich Drepper  <drepper@redhat.com>
801
802         * nscd/connections.c (main_loop_poll): Pass a buffer which is
803         guaranteed to be large enough to read inotify event.  Ignore
804         EAGAIN error.  Better error message.  Add branch predicition.
805         (main_loop_epoll): Likewise.
806
807 2008-08-02  Roland McGrath  <roland@frob.com>
808
809         * sysdeps/mach/i386/machine-lock.h (__spin_unlock, __spin_try_lock):
810         Add memory clobbers.
811
812 2008-08-02  Ulrich Drepper  <drepper@redhat.com>
813
814         * manual/arith.texi: Avoid @strong{Note:}.
815         * manual/creature.texi: Likewise.
816         * manual/filesys.texi: Likewise.
817         * manual/math.texi: Likewise.
818         * manual/memory.texi: Likewise.
819         * manual/resource.texi: Likewise.
820         * manual/syslog.texi: Likewise.
821         * manual/time.texi: Likewise.
822
823         * sysdeps/posix/clock_getres.c (hp_timing_getres): Remove inline
824         to prevent warning.
825
826 2008-08-01  Ulrich Drepper  <drepper@redhat.com>
827
828         * sysdeps/unix/sysv/linux/Versions: Fix changes due to old patch for
829         new epoll_create1 interface.
830         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
831         * sysdeps/unix/sysv/linux/sys/epoll.h: Likewise.
832         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
833
834         * include/arpa/nameser.h (NS_GET16): Use const pointer.
835         (NS_GET32): Likewise.
836
837         * sysdeps/unix/sysv/linux/kernel-features.h: s390 has the new
838         syscalls, too.
839
840         * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): We cannot
841         use the AT_EXECFN value if it is no absolute path.
842         * sysdeps/unix/sysv/linux/kernel-features.h: Never define
843         __ASSUME_AT_EXECFN.
844
845         * Versions.def: Add GLIBC_2.9 to libresolv.
846         * include/resolv.h: Remove hidden proto declarations for __ns_*
847         functions.  Add them for __dn_count_labels and __p_secstodate.
848         * include/arpa/nameser.h: Add a number of hidden proto declarations.
849         Define ns_msg_getflags macro here.
850         * resolv/res_debug.c: Add hidden definition for __dn_count_labels
851         and __p_secstodate.
852         * resolv/Versions: Export functions from <arpa/nameser.h> from
853         libresolv in version GLIBC_2.9.
854         * resolv/ns_name.c: Integrate changes from bind 9.5.0.  Add necessary
855         hidden definitions.
856         * resolv/ns_netint.c: Likewise.
857         * resolv/ns_parse.c: Likewise.
858         * resolv/ns_print.c: Likewise.
859         * resolv/ns_samedomain.c: Likewise.
860         * resolv/ns_ttl.c: Likewise.
861         * resolv/arpa/nameser_compat.h: Likewise.
862         * resolv/arpa/nameser.h: Likewise.  Remove macros which redirect
863         function calls.
864         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Use __ns_get16
865         instead of ns_get16.
866         * resolv/nss_dns/dns-host.c (getanswer_r): Use __ns_get16 and
867         __ns_get32 instead of ns_get16 and ns_get32 respectively.
868         (gaih_getanswer_slice): Likewise.
869         * resolv/Makefile (libresolv-routines): Add ns_date.
870         * resolv/ns_date.c: New file.
871
872         * elf/Makefile (check-localplt.out): Also check libresolv and
873         libcrypt.
874
875 2008-07-31  Ulrich Drepper  <drepper@redhat.com>
876
877         * sysdeps/unix/sysv/linux/kernel-features.h: Define
878         __ASSUME_O_CLOEXEC.
879
880 2008-07-30  Ulrich Drepper  <drepper@redhat.com>
881
882         * sysdeps/posix/getaddrinfo.c (gaih_inet): Raise size of initial
883         buffer passed to NSS functions.
884
885         * nscd/connections.c (nscd_init): Typo in preprocessor directive.
886
887         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PACCEPT):
888         Define.
889
890         * misc/syslog.c (openlog_internal): Fix compile problem.
891
892 2008-07-28  Roland McGrath  <roland@redhat.com>
893
894         * elf/dl-sysdep.c (_dl_show_auxv): Add AT_EXECFN to the table.
895
896 2008-07-28  Ulrich Drepper  <drepper@redhat.com>
897
898         * io/ftw.c (add_object): Remove inline to avoid warning.
899
900         * sysdeps/unix/sysv/linux/paccept.c: Fix compile problem.
901
902         * resolv/res_send.c (__libc_res_nsend): Take additional parameter.
903         Use it instead of locally defined resplen2 variable.
904         (res_nsend): Adjust for __libc_res_nsend interface change.
905         (send_vc): Initialize *resplen2 if necessary.  Read length of
906         package into an appropriately aligned variable.  Store converted length
907         in new variable and use it appropriately.
908         Add branch prediction help.
909         * resolv/res_query.c (__libc_res_nquery): Take additional parameter
910         and pass it on to __libc_res_nsend.  Adjust all callers.
911         (__libc_res_nsearch): Likewise.
912         (__libc_res_nqeurydomain): Likewise.
913         * resolv/nss_dns/dns-host.c: Adjust for __libc_res_nsearch interface
914         change.
915         (_nss_dns_gethostbyname4): Don't unconditionally allocate tmp array.
916         Define resplen2 variable and pass it to __libc_res_nsearch and then
917         to gaih_getanswer.
918         (getanswer_r): In case of incorrect DNS data don't overread buffer.
919         Add branch prediction.
920         (gaih_getanswer_slice): Likewise.  Check for invalid data types.
921         (gaih_getanswer): Don't decode second slice if first one failed due
922         to a too small buffer.  Don't let not found status of second
923         decoder shadow results of the first.
924         * resolv/gethnamaddr.c (gethostbyname2): Adjust for __libc_res_nsearch
925         and __libc_res_nquery interface changes
926         (gethostbyaddr): Adjust for __libc_res_nquery interface change.
927         * include/resolv.h: Adjust prototypes for __libc_res_nquery,
928         __libc_res_nsearch, and __libc_res_nsend.
929         * resolv/nss_dns/dns-canon.c: Adjust for __libc_res_nquery interface
930         change.
931         * resolv/nss_dns/dns-network.c: Adjust for __libc_res_nquery and
932         __libc_res_nsearch interface changes.
933
934 2008-07-27  Ulrich Drepper  <drepper@redhat.com>
935
936         * libio/iopopen.c (_IO_new_proc_open): Remove unnecessary volatile.
937
938         * posix/wordexp.c (exec_comm): Use pipe2 if possible to create
939         file descriptors with close-on-exec set.
940         (exec_comm_child): Fix the case where the write end of the pipe is
941         STDOUT_FILENO already.  In case it is, clear close-on-exec.
942
943         * sysdeps/unix/sysv/linux/syscalls.list: Add __pipe2 alias.
944         * io/pipe2.c: Likewise.
945         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_PIPE2
946         instead of __ASSUME_PACCEPT.
947         * include/unistd.h: Declare __have_pipe2.
948         * libio/iopopen.c: Implement "e" flag.
949         * libio/Makefile (tests): Add tst-popen1.
950         * libio/tst-popen1.c: New file.
951
952         * sysdeps/unix/sysv/linux/bits/socket.h: Define PF_ISDN and AF_ISDN.
953         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
954
955 2008-07-26  Ulrich Drepper  <drepper@redhat.com>
956
957         [BZ #6771]
958         * libio/fileops.c (_IO_new_file_attach): Preserve errno around
959         success call of _IO_SEEKOFF or calls which failed because the
960         descriptor is for a pipe.
961
962         * sunrpc/key_call.c (getkeyserv_handle): Use FD_CLOEXEC instead of
963         magic number.
964
965         * misc/syslog.c (openlog_internal): Use SOCK_CLOEXEC if possible.
966
967         * malloc/mtrace.c (mtrace): Use 'e' flag in fopen call.  Drop
968         F_SETFD use if we know fopen set the flag.
969
970         * login/utmp_file.c (setutent_file): Minor optimization in case
971         O_CLOEXEC is available.
972
973 2008-07-24  Tom "spot" Callaway  <tcallawa@redhat.com>
974
975         * Makeconfig: Define pie-ccflag and PIE-ccflag variables.
976         * elf/Makefile: Use pie-ccflag variable.
977         * nscd/Makefile: Likewise.
978         * sysdeps/sparc/Makefile: Set $(pie-ccflag) to -fPIE.
979
980 2008-07-21  Andreas Krebbel  <krebbel1@de.ibm.com>
981
982         [BZ #6724]
983         * Versions.def: Add GLIBC_2.9 version tag for libutil.
984         * sysdeps/unix/sysv/linux/s390/bits/utmp.h: Copy of
985         gnu/bits/utmp.h.  Check for __WORDSIZE_COMPAT32 removed.
986         * sysdeps/unix/sysv/linux/s390/bits/utmpx.h: Copy of
987         gnu/bits/utmpx.h.  Check for __WORDSIZE_COMPAT32 removed.
988         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Add new files
989         utmp32, utmpx32 and login32.
990         * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Add 2.9
991         versions of struct utmp functions to libc and libutil.
992         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-compat.h: New file.
993         * sysdeps/unix/sysv/linux/s390/s390-32/getutent.c: New file.
994         * sysdeps/unix/sysv/linux/s390/s390-32/getutent_r.c: New file.
995         * sysdeps/unix/sysv/linux/s390/s390-32/getutid.c: New file.
996         * sysdeps/unix/sysv/linux/s390/s390-32/getutid_r.c: New file.
997         * sysdeps/unix/sysv/linux/s390/s390-32/getutline.c: New file.
998         * sysdeps/unix/sysv/linux/s390/s390-32/getutline_r.c: New file.
999         * sysdeps/unix/sysv/linux/s390/s390-32/getutmp.c: New file.
1000         * sysdeps/unix/sysv/linux/s390/s390-32/getutxent.c: New file.
1001         * sysdeps/unix/sysv/linux/s390/s390-32/getutxid.c: New file.
1002         * sysdeps/unix/sysv/linux/s390/s390-32/getutxline.c: New file.
1003         * sysdeps/unix/sysv/linux/s390/s390-32/login.c: New file.
1004         * sysdeps/unix/sysv/linux/s390/s390-32/login32.c: New file.
1005         * sysdeps/unix/sysv/linux/s390/s390-32/pututxline.c: New file.
1006         * sysdeps/unix/sysv/linux/s390/s390-32/updwtmp.c: New file.
1007         * sysdeps/unix/sysv/linux/s390/s390-32/updwtmpx.c: New file.
1008         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: New file.
1009         * sysdeps/unix/sysv/linux/s390/s390-32/utmp32.c: New file.
1010         * sysdeps/unix/sysv/linux/s390/s390-32/utmp32.h: New file.
1011         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx-convert.h: New file.
1012         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.c: New file.
1013         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: New file.
1014
1015 2008-07-26  Ulrich Drepper  <drepper@redhat.com>
1016
1017         * scripts/gen-as-const.awk: Generate more widely usable code by
1018         using 64-bit arithmetic.
1019
1020         * stdio-common/printf_fp.c (___printf_fp): Give wide outout code
1021         the same treatment as narrow output code in last patch.
1022
1023         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Namespace cleanup.
1024
1025         [BZ #6763]
1026         * elf/dl-load.c (local_strdup): Remove inline.
1027         (_dl_map_object_from_fd): Don't allocate l_symbolic_searchlist.r_list.
1028         * elf/dl-object.c (_dl_new_object): Allocate symbolic searchlist as
1029         part of the object.
1030
1031         * sysdeps/unix/sysv/linux/dl-origin.c: Add const to avoid warning.
1032
1033 2008-07-25  Ulrich Drepper  <drepper@redhat.com>
1034
1035         * sysdeps/unix/sysv/linux/kernel-features.h: IA-64 and SPARC have
1036         the new syscalls, too.
1037
1038         * sysdeps/i386/i686/memcmp.S: Fix unwind information.
1039         Reported by Paul Pluzhnikov <ppluzhnikov@google.com>.
1040
1041         [BZ #6698]
1042         * stdio-common/_i18n_number.h (_i18n_number_rewrite): Take additional
1043         parameter for end of buffer.  If temporary copy is too large use
1044         malloc.
1045         * stdio-common/vfprintf.c: Adjust for _i18n_number_rewrite
1046         interface change.
1047         * stdio-common/printf_fp.c (__printf_fp): Likewise..  Account for
1048         string rewrite when allocating buffer.
1049
1050         * sysdeps/unix/sysv/linux/kernel-features.h: PPC has the new
1051         syscalls, too.
1052
1053         * nscd/connections.c (nscd_init): Clean up fcntl call.
1054
1055         * nscd/nscd_helper.c (open_socket): Use SOCK_CLOEXEC and
1056         SOCK_NONBLOCK if possible.
1057
1058         * sysdeps/unix/sysv/linux/opensock.c (__opensock): Use
1059         SOCK_CLOEXEC if available.
1060
1061         * include/rpc/clnt.h: Declare __libc_clntudp_bufcreate and
1062         __libc_clntudp_bufcreate_internal.
1063         * include/sys/socket.h: Declare __have_sock_cloexec.
1064         * socket/Makefile (aux): Add have_sock_cloexec.
1065         * socket/have_sock_cloexec.c: New file.
1066         * sunrpc/clnt_udp.h (clntudp_bufcreate): Now a wrapper around
1067         __libc_clntudp_bufcreate.
1068         (__libc_clntudp_bufcreate): Former implementation of clntudp_bufcreate
1069         which takes an additional parameter.  Create socket with non-blocking
1070         mode and close-on-exec flag set, if wanted.
1071         * sunrpc/Versions: Export __libc_clntudp_bufcreate@GLIBC_PRIVATE.
1072         * nis/ypclnt.c (yp_bind_client_create): Use __libc_clntpudp_bufcreate
1073         instead of clntudp_create.  The socket has already the close-on-exec
1074         flag set if SOCK_CLOEXEC is defined.
1075
1076 2008-07-24  Ulrich Drepper  <drepper@redhat.com>
1077
1078         * sysdeps/unix/sysv/linux/kernel-features.h: Define
1079         __ASSUME_PACCEPT, __ASSUME_IN_NONBLOCK, and __ASSUME_PACCEPT if
1080         appropriate.
1081         * nscd/connections.c: Avoid fcntl calls to set close-on-exec flag and
1082         non-blocking mode by using socket, paccept, and inotify_init1.
1083
1084         * Versions.def (glibc): Add GLIBC_2.9.
1085         * io/Makefile (routines): Add dup3 and pipe2.
1086         * io/Versions [glibc] (GLIBC_2.9): Add dup3 and pipe2.
1087         * io/dup3.c: New file.
1088         * io/pipe2.c: New file.
1089         * posix/unistd.h: Declare dup3 and pipe2.
1090         * socket/Makefile (routines): Add paccept.
1091         * socket/Versions [glibc] (GLIBC_2.9): Add paccept.
1092         * socket/paccept.c: New file.
1093         * socket/sys/socket.h: Declare paccept.
1094         * sysdeps/unix/syscalls.list: Add entry for dup3.
1095         * sysdeps/unix/sysv/linux/Versions [glibc] (GLIBC_2.9): Add
1096         epoll_create2 and inotify_init1.
1097         * sysdeps/unix/sysv/linux/eventfd.c: Use eventfd1 syscall if possible.
1098         * sysdeps/unix/sysv/linux/paccept.c: New file.
1099         * sysdeps/unix/sysv/linux/signalfd.c: Use signalfd4 syscall if
1100         possible.
1101         * sysdeps/unix/sysv/linux/socketcall.h: Add SOCKOP_paccept.
1102         * sysdeps/unix/sysv/linux/syscalls.list: Add epoll_create2,
1103         inotify_init1, and pipe2 entries.
1104         * sysdeps/unix/sysv/linux/alpha/sys/epoll.h: New file.
1105         * sysdeps/unix/sysv/linux/alpha/sys/eventfd.h: New file.
1106         * sysdeps/unix/sysv/linux/alpha/sys/inotify.h: New file.
1107         * sysdeps/unix/sysv/linux/alpha/sys/signalfd.h: New file.
1108         * sysdeps/unix/sysv/linux/alpha/sys/timerfd.h: New file.
1109         * sysdeps/unix/sysv/linux/bits/socket.h: Define SOCK_CLOEXEC and
1110         SOCK_NONBLOCK.
1111         * sysdeps/unix/sysv/linux/i386/paccept.S: New file.
1112         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: New file.
1113         * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: New file.
1114         * sysdeps/unix/sysv/linux/sparc/sys/inotify.h: New file.
1115         * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h: New file.
1116         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: New file.
1117         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: New file.
1118         * sysdeps/unix/sysv/linux/sys/epoll.h: Define EPOLL_CLOEXEC and
1119         EPOLL_NONBLOCK.  Declare epoll_create2.
1120         * sysdeps/unix/sysv/linux/sys/eventfd.h: Define EFD_CLOEXEC and
1121         EFD_NONBLOCK.
1122         * sysdeps/unix/sysv/linux/sys/inotify.h: Define IN_CLOEXEC and
1123         IN_NONBLOCK.  Declare inotify_init1.
1124         * sysdeps/unix/sysv/linux/sys/signalfd.h: Define SFD_CLOEXEC and
1125         SFD_NONBLOCK.
1126         * sysdeps/unix/sysv/linux/sys/timerfd.h: Define TFD_CLOEXEC and
1127         TFD_NONBLOCK.
1128
1129         * elf/elf.h: Define AT_EXECFN.
1130         * elf/rtld.c [!__ASSUME_AT_EXECFN] (process_envvars): Don't handle
1131         LD_ORIGIN_PATH.
1132         * elf/dl-sysdep.c (_dl_sysdep_start): Handle AT_EXECFN.
1133         * elf/dl-support.c: Define _dl_execfn.  Don't define _dl_origin_path
1134         if __ASSUME_AT_EXECFN is defined.
1135         (_dl_aux_init): Handle AT_EXECFN.
1136         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_AT_EXECFN
1137         for 2.6.27 and up.
1138         * sysdeps/generic/ldsodefs.h (rtld_global_ro): Add _dl_execfn.
1139         Don't define _dl_origin_path if __ASSUME_AT_EXECFN is defined.
1140         * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): Use
1141         _dl_execfn if available and avoid compatibility code if
1142         __ASSUME_AT_EXECFN is defined.
1143
1144         * sysdeps/unix/sysv/linux/dl-sysdep.h: Don't declare
1145         _dl_discover_osversion only for older kernels.
1146
1147 2008-07-22  Roland McGrath  <roland@frob.com>
1148
1149         * hurd/fd-read.c (_hurd_fd_read): Fix last change.
1150
1151 2008-07-21  Roland McGrath  <roland@frob.com>
1152
1153         * hurd/fd-read.c (_hurd_fd_read): Return EGRATUITOUS if the server
1154         returned too much data out of line.
1155
1156 2008-07-20  Ulrich Drepper  <drepper@redhat.com>
1157
1158         * locale/setlocale.c (setname): Remove inline to avoid compiler
1159         warning.
1160
1161         [BZ #6712]
1162         * locale/setlocale.c (setlocale): Take the setlocale lock earlier.
1163
1164 2008-07-15  Ulrich Drepper  <drepper@redhat.com>
1165
1166         * stdio-common/vfprintf.c (_IO_helper_overflow): In case _IO_sputn
1167         doesn't manage to write anything, fail.
1168
1169         * malloc/hooks.c (__malloc_check_init): Remove printf.
1170
1171 2008-07-14  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1172
1173         * sysdeps/mach/hurd/bits/fcntl.h: Include <sys/types.h>.
1174
1175 2008-07-12  Ulrich Drepper  <drepper@redhat.com>
1176
1177         * nscd/connections.c (main_loop_poll): Fix handling of read errors
1178         from inotify.
1179         (main_loop_epoll): Likewise.
1180
1181 2008-07-09  Ulrich Drepper  <drepper@redhat.com>
1182
1183         * resolv/res_send.c: Remove unnecessary res_pquery prototype.
1184
1185         * resolv/res_query.c (__libc_res_nquery): Issue debug message only
1186         if DEBUG is defined.
1187
1188         * resolv/res_query.c (__libc_res_nquery): Align buffer for T_AAAA
1189         query.  Adjust buffer size computation for padding.
1190
1191 2008-07-08  Ulrich Drepper  <drepper@redhat.com>
1192
1193         * stdio-common/Makefile: Add rules to build and run tst-setvbuf1.
1194         * stdio-common/tst-setvbuf1.c: New file.
1195         * stdio-common/tst-setvbuf1.expect: New file.
1196
1197         [BZ #6719]
1198         * libio/iosetvbuf.c (_IO_setvbuf): Correctly clear buffering flags
1199         when selecting fully-buffered stream.
1200         Patch by Wang Xin <wxinee@gmail.com>.
1201
1202 2008-07-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1203
1204         * sysdeps/mach/hurd/open.c: Include <stdio.h>.
1205         (__open_2): New function.
1206         (__open64_2): New alias to __open_2.
1207         * sysdeps/mach/hurd/openat.c: Include <stdio.h>.
1208         (__openat_2): New function.
1209         (__openat64_2): New alias to __openat_2.
1210
1211 2008-07-06  Ulrich Drepper  <drepper@redhat.com>
1212
1213         [BZ #6723]
1214         * time/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
1215
1216 2008-07-01  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1217
1218         * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Define MSG_NOSIGNAL.
1219         * hurd/hurd/fd.h (__hurd_sockfail): Add extern inline function.
1220         * sysdeps/mach/hurd/recv.c (__recv): Use __hurd_sockfail instead of
1221         __hurd_dfail.
1222         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Likewise.
1223         * sysdeps/mach/hurd/recvmsg.c (__recvmsg): Likewise.
1224         * sysdeps/mach/hurd/send.c (__send): Likewise.
1225         * sysdeps/mach/hurd/sendto.c (__sendfrom): Likewise.
1226         * sysdeps/mach/hurd/sendmsg.c (__sendmsg): Likewise.
1227
1228 2008-03-04  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1229
1230         * sysdeps/mach/hurd/recv.c (__recv): Initialize NPORTS.
1231         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Likewise.
1232         * sysdeps/mach/hurd/recvmsg.c (__recvmsg): Likewise.
1233         * hurd/fd-read.c (_hurd_fd_read): Initialize NREAD.
1234         * hurd/get-host.c (_hurd_get_host_config): Likewise.
1235         * sysdeps/mach/hurd/dl-sysdep.c (__libc_read): Likewise.
1236
1237 2008-06-27  Ulrich Drepper  <drepper@redhat.com>
1238
1239         [BZ #6657]
1240         * time/strptime_l.c: Don't clear s.era_cnt after successful match
1241         of %EY.
1242         Patch by Petr Baudis.
1243
1244 2008-06-26  Ulrich Drepper  <drepper@redhat.com>
1245
1246         * resolv/res_debug.c (__p_type_syms): Add ns_t_dname entry.
1247         Patch by Peter Jones <pjones@redhat.com>.
1248
1249 2008-06-25  Ulrich Drepper  <drepper@redhat.com>
1250
1251         [BZ #6654]
1252         * stdlib/canonicalize.c (__realpath): readlink can write too much
1253         into the buffer on platforms without PATH_MAX.
1254
1255 2008-06-17  Carlos O'Donell  <carlos@codesourcery.com>
1256
1257         [BZ #6653]
1258         * posix/tst-regex.c (main): Rename to...
1259         (do_test): ... this. Remove cmdline option processing.
1260         (TIMEOUT): Define.
1261         (TEST_FUNCTION): Define.
1262         (CMDLINE_OPTIONS): Define.
1263
1264 2008-06-25  Ulrich Drepper  <drepper@redhat.com>
1265
1266         [BZ #5210]
1267         * configure.in: Add -Werror to -fstack-protector test to catch
1268         unsupported architectures.
1269         Patch by Gilles Esponasse <g.esp@free.fr>.
1270
1271 2008-06-17  Joseph Myers  <joseph@codesourcery.com>
1272
1273         * stdlib/tst-setcontext.c: Set back_in_main before exit if
1274         getcontext returns ENOSYS.
1275
1276 2008-06-18  Ulrich Drepper  <drepper@redhat.com>
1277
1278         * nscd/connections.c (main_loop_poll): Fix test for read error.
1279         (main_loop_epoll): Likewise.
1280
1281 2008-06-13  Ulrich Drepper  <drepper@redhat.com>
1282
1283         * sysdeps/posix/getaddrinfo.c: Move _res_hconf_init call to a
1284         better place so it is not called when nscd is used.
1285
1286         * nscd/connections.c: Also recognize and handle changes to the
1287         resolver configuration file.
1288
1289 2008-06-12  Ulrich Drepper  <drepper@redhat.com>
1290
1291         * time/strftime.c: Pass reference to tzset_called around to handle
1292         recursive calls.
1293
1294         [BZ #6612]
1295         * time/strftime.c (__strftime_internal): Call tzset() only
1296         when printing timezone-dependent values.
1297         Based on a patch by Petr Baudis <pasky@suse.cz>.
1298
1299         * resolv/nss_dns/dns-host.c (gaih_getanswer): Don't
1300         unconditionally use second gaih_getanswer_slice result.
1301
1302         * sysdeps/posix/getaddrinfo.c (gai_inet): Remove unnecessary test.
1303         (getaddrinfo): RES must always be non-NULL.
1304
1305 2008-06-12  Jakub Jelinek  <jakub@redhat.com>
1306
1307         * sysdeps/powerpc/powerpc64/fpu/s_llround.S (__llround): Avoid using
1308         cr[34] registers.
1309         * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S (__llroundf): Likewise.
1310         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S (__llround):
1311         Likewise.
1312         * sysdeps/powerpc/powerpc32/fpu/s_lround.S (__lround): Avoid using cr3
1313         register.
1314
1315 2008-06-12  Ulrich Drepper  <drepper@redhat.com>
1316
1317         * nscd/nscd.h (struct database_dyn): Add inotify_descr and clear_cache
1318         fields.
1319         * nscd/connections.c (inotify_fd): New variable.
1320         (nscd_init): Try to open an inotify descriptor.
1321         If successful, watch files for databases using inotify instead of
1322         having prune threads stat the files.
1323         (nscd_run_prune): Recognize clear_cache flag being set and call
1324         prune_cache appropriately.
1325         (main_loop_poll): Add inotify descriptor to wait set and handle the
1326         reported changes.
1327         (main_loop_epoll): Likewise.
1328         * nscd/cache.c (prune_cache): Don't stat files for databases if
1329         inotify is used.
1330         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd]
1331         (CFLAGS-connections.c): Add -DHAVE_INOTIFY.
1332
1333         * nscd/grpcache.c (cache_addgr): Correctly compute size of
1334         fixed-size portion of the record.
1335         * nscd/servicescache.c (cache_addserv): Likewise.
1336         * nscd/pwdcache.c (cache_addpw): Likewise.
1337         * nscd/initgrcache.c (addinitgroupsX): Likewise.
1338
1339 2008-06-11  Ulrich Drepper  <drepper@redhat.com>
1340
1341         * nscd/mem.c (gc): Initialize obstack earlier so that if we jump
1342         out we don't use uninitialized memory.
1343
1344         * nscd/hstcache.c (cache_addhst): Send correct number of bytes to
1345         the client.
1346
1347 2008-06-10  Ulrich Drepper  <drepper@redhat.com>
1348
1349         * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): Also log and
1350         ignore T_DNAME messages.
1351         * resolv/arpa/nameser_compat.h (T_DNAME): Define.
1352
1353 2008-06-05  Jakub Jelinek  <jakub@redhat.com>
1354
1355         * misc/regexp.h (compile): Use __REPB_PREFIX macro.
1356         Avoid segfault if first GETC returns eof/'\0'/'\n'.
1357
1358 2008-06-03  Jakub Jelinek  <jakub@redhat.com>
1359
1360         * nscd/nscd_getserv_r.c (__nscd_getservbyport_r): Pass cp
1361         instead of portstr to nscd_getserv_r.  Patch by
1362         Roman Kagan <rkagan@mail.ru>.
1363
1364 2008-05-26  Jim Meyering  <meyering@redhat.com>
1365
1366         Remove more useless "if" tests before "free".
1367         * include/inline-hashtab.h (htab_delete): Likewise.
1368         * libio/freopen.c (freopen): Likewise.
1369         * libio/freopen64.c (freopen64): Likewise.
1370         * locale/programs/ld-collate.c (collate_read): Likewise.
1371         * misc/fstab.c (libc_freeres_fn): Likewise.
1372         * posix/glob.c (globfree): Likewise.
1373
1374 2008-05-24  Ulrich Drepper  <drepper@redhat.com>
1375
1376         * string/Makefile (strop-tests): Add memmem.
1377         * string/test-memmem.c: New file.
1378         * string/test-string.h (BUF1PAGES): Define to 1 if undefined.
1379         (test_init): Size buf1 according to BUF1PAGES.
1380
1381 2008-05-24  Jakub Jelinek  <jakub@redhat.com>
1382
1383         * libio/stdio.h (vscanf): Fix -std=c99 redirect.
1384         * stdio-common/Makefile (tests): Add scanf16 and scanf17.
1385         (CFLAGS-scanf17.c): New.
1386         * stdio-common/scanf14.c (main): Add fscanf and scanf tests.
1387         * stdio-common/scanf15.c (main): Likewise.
1388         * stdio-common/scanf16.c: New file.
1389         * stdio-common/scanf17.c: New file.
1390
1391 2008-05-24  Ulrich Drepper  <drepper@redhat.com>
1392
1393         * resolv/res_send.c (send_dg): If we already have one of two
1394         answers and the server reports SERVFAIL, NOTIMP, or REFUSED, then
1395         use the one answer insted of failing.
1396
1397 2008-02-20  Ryan S. Arnold  <rsa@us.ibm.com>
1398
1399         * math/libm-test.inc (exp_test): Exclude expl(1000.0L) from
1400         being executed on PowerPC as the expected result exceeds IBM
1401         long double 128 __LDBL_MAX__.
1402
1403 2008-05-21  Roland McGrath  <roland@redhat.com>
1404
1405         * shlib-versions (sparc.*-.*-.*, sparc64.*-.*-.*): Add ABI lines.
1406
1407         * Makefile (check-data): Use $(abi-name) before other guesses.
1408         Look in $(add-ons) dirs before scripts/data/.
1409         * elf/Makefile (check-data): Likewise.
1410
1411         * scripts/soversions.awk: Grok ABI line.
1412         * Makeconfig ($(common-objpfx)soversions.mk): Likewise.
1413         Emit definition for abi-name variable.
1414
1415 2008-05-21  Ulrich Drepper  <drepper@redhat.com>
1416
1417         * string/endian.h: Define new fixed-size hto* and *toh macros only
1418         if [__USE_BSD].
1419
1420         * iconvdata/Depend: Add localedata.
1421
1422 2008-05-21  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1423
1424         * bits/termios.h (ONLCR): Define under [__USE_XOPEN] too.
1425
1426 2008-05-08  David S. Miller  <davem@davemloft.net>
1427
1428         * sysdeps/unix/sysv/linux/sparc/sparc32/setcontext.S: Use
1429         HIDDEN_JUMPTARGET.
1430         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
1431         (__SYSCALL_CLOBBERS): Remove %g* registers.
1432         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
1433         (__SYSCALL_CLOBBERS): Likewise.
1434         * scripts/data/localplt-sparc-linux-gnu.data: New file.
1435         * scripts/data/localplt-sparc64-linux-gnu.data: New file.
1436
1437 2008-05-21  Jakub Jelinek  <jakub@redhat.com>
1438
1439         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
1440         (CALL_ERRNO_LOCATION): Define.
1441         (__SYSCALL_STRING, __CLONE_SYSCALL_STRING): Use it.
1442         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
1443         (CALL_ERRNO_LOCATION): Define.
1444         (__SYSCALL_STRING, __CLONE_SYSCALL_STRING): Use it.
1445         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S (__brk): Use
1446         HIDDEN_JUMPTARGET for __errno_location call in libc.so.
1447
1448 2008-05-20  Ulrich Drepper  <drepper@redhat.com>
1449
1450         * include/inline-hashtab.h (higher_prime_number): Fix type of mid
1451         variable.
1452
1453 2008-05-20  Jakub Jelinek  <jakub@redhat.com>
1454
1455         * sysdeps/unix/sysv/linux/sparc/sparc32/sigcontextinfo.h
1456         (FIRST_FRAME_POINTER): Define.
1457
1458 2008-05-09  David S. Miller  <davem@davemloft.net>
1459
1460         * sysdeps/sparc/sparc64/backtrace.c: New file.
1461
1462 2008-05-14  David S. Miller  <davem@davemloft.net>
1463
1464         * sysdeps/sparc/machine-gmon.h: New file.
1465         * sysdeps/sparc/sparc-mcount.S: Likewise.
1466         * sysdeps/sparc/Makefile: Add sparc-mcount target to
1467         sysdep_routines in gmon directory.
1468
1469 2008-05-19  Jakub Jelinek  <jakub@redhat.com>
1470
1471         * elf/soinit.c (__EH_FRAME_BEGIN__): Remove.
1472
1473 2008-05-19  Ulrich Drepper  <drepper@redhat.com>
1474
1475         * resolv/res_query.c (__libc_res_nquery): In case one of two
1476         answer was too short don't try to read that answer's header.
1477
1478         * resolv/res_send.c (send_dg): In case of timeout and there are
1479         two queries and one has been answered, return value indicating
1480         success.
1481
1482 2008-05-18  Ulrich Drepper  <drepper@redhat.com>
1483
1484         * nscd/cache.c (cache_add): Take additional parameter specifying
1485         whether this is in response of a cache refill.  Check alignment
1486         of package data.  Revamp waking of pruning thread.
1487         (prune_cache): Small optimization.
1488         * nscd/nscd.h: Adjust cache_add prototypes.
1489         * nscd/aicache.c: Adjust cache_add calls.
1490         * nscd/grpcache.c: Likewise.
1491         * nscd/hstcache.c: Likewise.
1492         * nscd/initgrcache.c: Likewise.
1493         * nscd/pwdcache.c: Likewise.
1494         * nscd/servicescache.c: Likewise.
1495         * nscd/connections.c (restart): Really disable cache use before
1496         exec attempt.  If it fails, reenable cache.
1497         (nscd_run_prune): Initialize wakeup_time.  After wakeup, set wakeup
1498         time to max to be able to notice concurrent cache additions.  Unlock
1499         prune_lock while performing gc.  Afterwards compute wakeup time with
1500         current wakeup_time value in mind.
1501
1502 2008-05-17  Ulrich Drepper  <drepper@redhat.com>
1503
1504         * nscd/mem.c (gc): Avoid stack overflow when allocating move list.
1505
1506         * nscd/mem.c (gc): Correctly determine highest used array element
1507         in mark.
1508
1509         * nscd/mem.c (markrange): Add assert to check entries are all
1510         aligned.  Small cleanup in bitmap use.
1511
1512         * nscd/nscd.h (mem_in_flight): Replace blockaddr field with
1513         blockoff of type nscd_ssize_t.
1514         * nscd/mem.c (gc): Simplify markrange call for on-flight blocks.
1515         (mempoll_alloc): Record block offset and not address.
1516
1517         * nscd/mem.c (gc): Fix test for stack overuse.
1518
1519         * nscd/aicache.c (addhstaiX): Fix a few small problems, cleanups,
1520         more asserts.
1521
1522         * sysdeps/posix/getaddrinfo.c (gaih_inet): If nscd reports no
1523         entry is available, believe it.
1524
1525         * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): If there are
1526         no answers return NSS_STATUS_NOTFOUND.
1527         (gaih_getanswer): Don't call gaih_getanswer_slice if the answer
1528         buffer does not have any content.
1529
1530 2008-05-16  Ulrich Drepper  <drepper@redhat.com>
1531
1532         * string/strcasestr.c (CMP_FUNC): Use __strncasecmp, not strncasecmp.
1533
1534         * sysdeps/posix/getaddrinfo.c (gaih_inet): After gethostbyname4_r
1535         lookup, don't assign canon unconditionally.
1536
1537 2008-05-14  Ulrich Drepper  <drepper@redhat.com>
1538
1539         * string/Makefile (distribute): Add str-two-way.h.
1540
1541 2008-03-29  Eric Blake  <ebb9@byu.net>
1542
1543         Rewrite string searches to O(n) rather than O(n^2).
1544         * string/str-two-way.h: New file.  For linear fixed-allocation
1545         string searching.
1546         * string/memmem.c: New implementation.
1547         * string/strstr.c: New implementation.
1548         * string/strcasestr.c: New implementation.
1549
1550 2008-04-11  Paolo Bonzini  <bonzini@gnu.org>
1551
1552         * posix/regcomp.c (optimize_utf8): Add a note on why we test
1553         opr.ctx_type.
1554         (calc_first): Initialize constraint field.
1555         (duplicate_node_closure): Use it instead of special casing ANCHORS.
1556         Use search_duplicated_node to avoid loops.  Fix grammar.
1557         (duplicate_node): Merge constraint field for all node types.
1558         (calc_eclosure_iter): Look at constraint field for all node types.
1559         * posix/regex_internal.c (create_cd_newstate): Don't look at
1560         create_cd_newstate.
1561
1562 2008-05-14  Ulrich Drepper  <drepper@redhat.com>
1563
1564         [BZ #6428]
1565         * configure.in: Don't use $CFLAGS when assembling, use $ASFLAGS.
1566
1567         [BZ #6442]
1568         * string/endian.h: Add macros for fixed-size endian conversion.
1569         * bits/byteswap.h: Allow inclusion from <endian.h>.
1570         * sysdeps/i386/bits/byteswap.h: Likewise.
1571         * sysdeps/ia64/bits/byteswap.h: Likewise.
1572         * sysdeps/s390/bits/byteswap.h: Likewise.
1573         * sysdeps/x86_64/bits/byteswap.h: Likewise.
1574         * string/Makefile (tests): Add tst-endian.
1575         * string/tst-endian.c: New file.
1576
1577         * iconvdata/run-iconv-test.sh: Use = instead of == in test.
1578         Patch by Reuben Thomas.
1579
1580 2008-05-14  Joseph Myers  <joseph@codesourcery.com>
1581
1582         * iconvdata/Makefile (bug-iconv6-ENV, tst-iconv7-ENV): Define.
1583
1584 2008-05-14  Ulrich Drepper  <drepper@redhat.com>
1585
1586         * iconvdata/bug-iconv6.c (do_test): Use de_DE.UTF-8 locale.
1587
1588         [BZ #6461]
1589         * iconv/gconv_simple.c (BODY for __gconv_transform_ascii_internal):
1590         Add missing braces.
1591         (BODY for __gconv_transform_internal_ascii): Likewise.
1592
1593         [BZ #6472]
1594         * sysdeps/posix/getaddrinfo.c (get_scope): Loopback addresses have
1595         to be treated like link-local addresses.
1596         (match_prefix): Don't treat IPv4 loopback address special when
1597         converting to v4 mapped addressed.
1598
1599         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Call _res_hconf_init
1600         if necessary.
1601         * posix/tst-rfc3484.c: Add dummy definition of _res_hconf_init.
1602         * posix/tst-rfc3484-2.c: Likewise.
1603         * posix/tst-rfc3484-3.c: Likewise.
1604
1605         * sysdeps/posix/getaddrinfo.c: Implement handling of DCCP, UDPlite,
1606         and SCTP.
1607
1608         * nss/getent.c (ahosts_keys_int): Handle all known socket types.
1609
1610         * inet/netinet/in.h (IPPIPPROTO_DCCP, IPPROTO_UDPLITE): Define.
1611
1612         * sysdeps/unix/sysv/linux/bits/socket.h (SOCK_DCCP): Define.
1613
1614 2008-05-13  Ulrich Drepper  <drepper@redhat.com>
1615
1616         * po/lt.po: New file.  From Lituanian translation team.
1617
1618 2008-01-30  Alexandre Oliva  <aoliva@redhat.com>
1619
1620         Introduce TLS descriptors for i386 and x86_64.
1621         * include/inline-hashtab.h: New file, copied from 2005's
1622         libiberty, with fix for memory leak imported afterwards by
1623         Glauber de Oliveira Costa.
1624         * elf/tlsdeschtab.h: New file.
1625         * elf/dl-reloc.c (_dl_try_allocate_static_tls): Extract from...
1626         (_dl_allocate_static_tls): ... here.  Rearrange failure path.
1627         (CHECK_STATIC_TLS): Move to...
1628         * elf/dynamic-link.h: ... this file.
1629         (TRY_STATIC_TLS): New macro.
1630         * elf/dl-conflict.c (CHECK_STATIC_TLS, TRY_STATIC_TLS): Override.
1631         * elf/elf.h (R_386_TLS_GOTDESC, R_386_TLS_DESC_CALL,
1632         R_386_TLS_DESC): Define.
1633         (R_X86_64_PC64, R_X86_GOTOFF64, R_X86_64_GOTPC32): Merge from
1634         binutils.
1635         (R_X86_64_GOTPC32_TLSDESC, R_X86_64_TLSDESC_CALL,
1636         R_X86_64_TLSDESC): Define.
1637         (R_386_NUM, R_X86_64_NUM): Adjust.
1638         * sysdeps/i386/Makefile (sysdep-dl-routines, sysdep_routines,
1639         sysdep-rtld-routines): Add tlsdesc and dl-tlsdesc for elf subdir.
1640         (gen-as-const-headers): Add tlsdesc.sym to csu subdir.
1641         * sysdeps/i386/dl-lookupcfg.h: New file.  Introduce _dl_unmap to
1642         release tlsdesc_table.
1643         * sysdeps/i386/dl-machine.h: Include dl-tlsdesc.h.
1644         (elf_machine_type_class): Mark R_386_TLS_DESC as PLT class.
1645         (elf_machine_rel): Handle R_386_TLS_DESC.
1646         (elf_machine_rela): Likewise.
1647         (elf_machine_lazy_rel): Likewise.
1648         (elf_machine_lazy_rela): Likewise.
1649         * sysdeps/i386/dl-tls.h (struct dl_tls_index): Name it.
1650         * sysdeps/i386/dl-tlsdesc.S: New file.
1651         * sysdeps/i386/dl-tlsdesc.h: New file.
1652         * sysdeps/i386/tlsdesc.c: New file.
1653         * sysdeps/i386/tlsdesc.sym: New file.
1654         * sysdeps/i386/bits/linkmap.h (struct link_map_machine): Add
1655         tlsdesc_table.
1656         * sysdeps/x86_64/Makefile (sysdep-dl-routines, sysdep_routines,
1657         sysdep-rtld-routines): Add tlsdesc and dl-tlsdesc for elf subdir.
1658         (gen-as-const-headers): Add tlsdesc.sym to csu subdir.
1659         * sysdeps/x86_64/dl-lookupcfg.h: New file.  Introduce _dl_unmap to
1660         release tlsdesc_table.
1661         * sysdeps/x86_64/dl-machine.h: Include dl-tlsdesc.h.
1662         (elf_machine_runtime_setup): Set up lazy TLSDESC GOT entry.
1663         (elf_machine_type_class): Mark R_X86_64_TLSDESC as PLT class.
1664         (elf_machine_rel): Handle R_X86_64_TLSDESC.
1665         (elf_machine_rela): Likewise.
1666         (elf_machine_lazy_rel): Likewise.
1667         * sysdeps/x86_64/dl-tls.h (struct dl_tls_index): Name it.
1668         (__tls_get_addr): Do not declare for non-shared compiles.
1669         * sysdeps/x86_64/dl-tlsdesc.S: New file.
1670         * sysdeps/x86_64/dl-tlsdesc.h: New file.
1671         * sysdeps/x86_64/tlsdesc.c: New file.
1672         * sysdeps/x86_64/tlsdesc.sym: New file.
1673         * sysdeps/x86_64/bits/linkmap.h (struct link_map_machine): Add
1674         tlsdesc_table for both 32- and 64-bit structs.
1675
1676 2008-05-11  Ulrich Drepper  <drepper@redhat.com>
1677
1678         * elf/dl-tls.c (__tls_get_addr): Optimize by moving slow path in
1679         its own function.  This reduces the frame setup costs and more.
1680
1681 2008-02-11  Joseph Myers  <joseph@codesourcery.com>
1682
1683         [BZ #3406]
1684         * sysdeps/ieee754/flt-32/w_expf.c (o_threshold): Correct value.
1685         * math/libm-test.inc (exp_test): Test 88.72269439697265625.
1686
1687 2008-05-11  Ulrich Drepper  <drepper@redhat.com>
1688
1689         * io/openat.c (__openat_2): Also pass fd to __openat.
1690         * io/openat64.c (__openat64_2): Also pass fd to __openat64.
1691         Patch by Kristian Van Der Vliet <vanders@liqwyd.com>.
1692
1693         * string/tester.c (test_memcmp): Add a few more tests.
1694         Patch by Mats Erik Andersson <ynglingatal@comhem.se>.
1695
1696 2008-05-10  Ulrich Drepper  <drepper@redhat.com>
1697
1698         * nscd/cache.c (cache_add): Before returning with failure and this
1699         is the first use of the record, mark it as unusable.
1700         * nscd/aicache.c: Don't touch the dataset after cache_add returns
1701         reporting a failure.
1702         * nscd/grpcache.c: Likewise
1703         * nscd/hstcache.c: Likewise.
1704         * nscd/initgrcache.c: Likewise.
1705         * nscd/pwdcache.c: Likewise.
1706         * nscd/servicescache.c: Likewise.
1707
1708 2008-05-10  Roland McGrath  <roland@redhat.com>
1709
1710         [BZ #6505]
1711         * sysdeps/unix/sysv/linux/sys/user.h: Replace with #error stub.
1712
1713 2008-05-08  David S. Miller  <davem@davemloft.net>
1714
1715         * misc/truncate64.c (truncate64): Use __truncate not truncate.
1716
1717         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee751_j0l): Use __finitel.
1718         (__ieee754_y0l): Likewise.
1719         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Likewise.
1720         (__ieee754_y1l): Likewise.
1721         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Use __ldexpl.
1722         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Kill bogus prototypes for
1723         frexpl and ldexpl.  math_private.h provides them and the latter
1724         is not even used.
1725         (__log1pl): Use __frexpl.
1726
1727 2008-05-10  Ulrich Drepper  <drepper@redhat.com>
1728
1729         * include/resolv.h: Adjust __libc_res_nquery and __libc_res_nsend
1730         prototypes.
1731         * include/arpa/nameser_compat.h: Define T_UNSPEC.
1732         * nis/Versions (libnss_nis): Export _nss_nis_gethostbyname4_r.
1733         (libnss_nisplus): Export _nss_nisplus_gethostbyname4_r.
1734         * nis/nss_nis/nis-hosts.c (LINE_PARSER): Change to also handle
1735         af==AF_UNSPEC.
1736         (_nss_nis_gethostbyname4_r): New function.
1737         * nis/nss_nisplus/nisplus-hosts.c (_nss_nisplus_parse_hostent):
1738         Change to also handle af==AF_UNSPEC.
1739         (get_tablename): New function.  Use it to avoid duplication.
1740         (_nss_nisplus_gethostbyname4_r): New function.
1741         * nscd/aicache.c (addhstaiX): Use gethostbyname4_r function is
1742         available.
1743         * nss/Versions (libnss_files): Export _nss_files_gethostbyname4_r.
1744         * nss/nss.h: Define struct gaih_addrtuple.
1745         * nss/nss_files/files-hosts.c (LINE_PARSER): Change to also handle
1746         af==AF_UNSPEC.
1747         (_nss_files_gethostbyname4_r): New function.
1748         * resolv/Versions (libnss_dns): Export _nss_dns_gethostbyname4_r.
1749         * resolv/gethnmaddr.c: Adjust __libc_res_nsearch and __libc_res_nquery
1750         calls.
1751         * resolv/res_query.c (__libc_res_nquery): Take two additional
1752         parameters for second answer buffer.  Handle type=T_UNSPEC to mean
1753         look up IPv4 and IPv6.
1754         Change all callers.
1755         * resolv/res_send.c (__libc_res_nsend): Take five aditional parameters
1756         for an additional query and answer buffer.  Pass to send_vc and
1757         send_dg.
1758         (send_vc): Send possibly two requests and receive two answers.
1759         (send_dg): Likewise.
1760         * resolv/nss_dns/dns-host.c: Adjust calls to __libc_res_nsearch and
1761         __libc_res_nquery.
1762         (_nss_dns_gethostbyname4_r): New function.
1763         (gaih_getanswer_slice): Likewise.
1764         (gaih_getanswer): Likewise.
1765         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Adjust
1766         __libc_res_nquery call.
1767         * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r): Likewise.
1768         (_nss_dns_getnetbyname_r): Adjust __libc_res_nsearch call.
1769         * sysdeps/posix/getaddrinfo.c: Use gethostbyname4_r function is
1770         available.
1771
1772 2008-05-05  David S. Miller  <davem@davemloft.net>
1773
1774         * sysdeps/sparc/sparc32/Makefile: Use -mcpu=v7 for initfini.s build.
1775         * sysdeps/sparc/sparc64/Makefile: Use -mcpu=v9 for initfini.s build.
1776
1777 2007-09-14  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1778
1779         Fix termios bit macros.
1780         Move *DLY definitions where they belong, in termios.h.
1781         Add *[0-3] definitions.
1782         Fixes confusion between VT and FF.
1783         * sysdeps/mach/hurd/bits/ioctls.h (NL0, NL1, TAB0, TAB1, TAB2, CR0,
1784         CR1, CR2, CR3, FF0, FF1, BS0, BS1): Undefine these at start if they
1785         are already defined to avoid collision with termios.h.
1786         (NLDLY, TABDLY, TAB3, CRDLY, VTDLY, BSDLY): Remove macros.
1787         * bits/termios.h [__USE_MISC || __USE_XOPEN] (NL0, NL1, TAB0,
1788         TAB1, TAB2, CR0, CR1, CR2, CR3, FF0, FF1, BS0, BS1): Likewise.
1789         [__USE_BSD || __USE_XOPEN] (OCRNL, ONOCR, ONLRET): New macros.
1790         [__USE_MISC || __USE_XOPEN] (NLDLY, NL0, NL1, TABDLY, TAB0, TAB1, TAB2,
1791         TAB3, CRDLY, CR0, CR1, CR2, CR3, FFDLY, FF0, FF1, BSDLY, BS0, BS1,
1792         VTDLY, VT0, VT1): New macros.
1793         [__USE_GNU] (OLCUC): Change value of macro.
1794         [__USE_XOPEN] (OFILL): New macro.
1795         [__USE_BSD] (CRTSCTS): Change value.
1796         (CRTS_IFLOW, CCTS_OFLOW): Change into compatibility macros.
1797         [__USE_BSD] (CDTRCTS, CHWFLOW): New macros.
1798         (B7200, B14400, B28800, B76800): New macros.
1799
1800 2008-05-01  David S. Miller  <davem@davemloft.net>
1801
1802         * sysdeps/unix/sysv/linux/sparc/sparc32/ucontext_i.sym: New file.
1803         * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile [$(subdir) = stdlib]:
1804         (gen-as-const-headers): Add it.
1805         * sysdeps/unix/sysv/linux/sparc/sparc32/getcontext.S: New file.
1806         * sysdeps/unix/sysv/linux/sparc/sparc32/makecontext.c: Likewise.
1807         * sysdeps/unix/sysv/linux/sparc/sparc32/setcontext.S: Likewise.
1808         * sysdeps/unix/sysv/linux/sparc/sparc32/swapcontext.S: Likewise.
1809
1810         * sysdeps/unix/sysv/linux/sparc/sparc32/syscall.S: Add support for
1811         six system call parameters.
1812         * sysdeps/unix/sysv/linux/sparc/sparc64/syscall.S: Likewise.
1813
1814 2008-04-30  Ulrich Drepper  <drepper@redhat.com>
1815
1816         * sysdeps/unix/sysv/linux/bits/resource.h: Define RUSAGE_THREAD and
1817         RUSAGE_LWP.
1818         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
1819         * sysdeps/unix/sysv/linux/alpha/bits/resource.h: Likewise.
1820
1821 2008-04-30  Jakub Jelinek  <jakub@redhat.com>
1822
1823         * stdlib/tst-setcontext.c: Include unistd.h.
1824
1825 2008-04-25  David S. Miller  <davem@davemloft.net>
1826
1827         * sysdeps/unix/sysv/linux/sparc/sparc64/semctl.c (semctl):
1828         Pass "union semun" properly in to sys_ipc, it must be passed
1829         by value, not by reference.
1830
1831 2008-04-22  Jakub Jelinek  <jakub@redhat.com>
1832
1833         * nscd/Makefile (nscd-cflags): Set back to -fpie.
1834         * nscd/nscd.h (mem_in_flight): Add attribute_tls_model_ie.
1835         * nscd/connections.c (mem_in_flight): Likewise.
1836
1837         * nscd/nscd.h (dbs): Make hidden.
1838
1839         * sysdeps/unix/sysv/linux/times.c (__times): Fix check for EFAULT.
1840         Avoid returning -1, return 0 instead.
1841
1842 2008-04-19  Ulrich Drepper  <drepper@redhat.com>
1843
1844         * resolv/res_mkquery.c (__res_nopt): Use NS_PUT16 instead of ns_put16.
1845
1846 2008-04-15  Ulrich Drepper  <drepper@redhat.com>
1847
1848         [BZ #5209]
1849         * sysdeps/unix/sysv/linux/times.c: New file.
1850
1851         [BZ #5381]
1852         * nscd/nscd.h: Define enum in_flight, mem_in_flight, and
1853         mem_in_flight_list variables.  Add new parameter to mempool_alloc
1854         prototype.
1855         * nscd/mem.c (mempool_alloc): Take additional parameter.  Initialize
1856         appropriate mem_in_flight element.
1857         (gc): Take allocations which have not yet been committed to the
1858         database into account.
1859         * nscd/cache.c (cache_add): Add new parameter to mempool_alloc call.
1860         Reset mem_in_flight before returning.
1861         * nscd/connections.c (nscd_run_worker): Initialize mem_in_flight and
1862         cue it up in mem_in_flight_list.
1863         * nscd/aicache.c: Adjust mempool_alloc call.
1864         * nscd/grpcache.c: Likewise.
1865         * nscd/hstcache.c: Likewise.
1866         * nscd/initgrcache.c: Likewise.
1867         * nscd/pwdcache.c: Likewise.
1868         * nscd/servicescache.c: Likewise.
1869         * nscd/Makefile (nscd-flags): Until ld is fixed, use -fpic instead
1870         of -fpie.
1871
1872         * nscd/connections.c (handle_request): Provide better error message
1873         in case SELinux forbids the service.
1874
1875         * version.h (VERSION): Bump to 2.8.90.
1876
1877 2008-04-17  Jakub Jelinek  <jakub@redhat.com>
1878
1879         * sysdeps/unix/sysv/linux/dl-osinfo.h: Include fcntl.h.
1880
1881 2008-04-11  Ulrich Drepper  <drepper@redhat.com>
1882
1883         * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h (__signbitl):
1884         Also use for 32-bit.
1885         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c (__nearbyintl): Use
1886         __nextafter instead of nextafter to avoid local PLT.
1887         * sysdeps/powerpc/fpu/e_sqrt.c: Avoid call to fetestexcept.
1888         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
1889
1890         * scripts/data/localplt-powerpc64-linux-gnu.data: New file.
1891
1892         * sysdeps/powerpc/fpu/fenv_libc.h: Add libm_hidden_proto for
1893         __fe_nomask_env.
1894         * sysdeps/powerpc/fpu/fe_nomask.c: Add libm_hidden_def.  Include
1895         <fenv_libc.h> instead of <fenv.h>.
1896         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c: Likewise.
1897         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c: Likewise.
1898
1899         * sysdeps/powerpc/bits/fenv.h: Make safe for C++.
1900
1901         * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h: New file.
1902         * sysdeps/powerpc/fpu/fegetexcept.c (__fegetexcept): Rename
1903         function from fegetexcept and make old name weak alias.
1904         * include/fenv.h: Declare __fegetexcept.
1905         * sysdeps/powerpc/fpu/fedisblxcpt.c: Use __fegetexcept instead of
1906         fegetexcept.
1907         * sysdeps/powerpc/fpu/feenablxcpt.c: Likewise.
1908         * sysdeps/powerpc/fpu/fraiseexcpt.c (__feraiseexcept): Avoid call
1909         to fetestexcept.
1910         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Use __frexpl
1911         instead of frexpl to avoid local PLT.
1912         * math/s_significandl.c (__significandl): Use __ilogbl instead of
1913         ilogbl to avoid local PLT.
1914         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Use __ldexpl
1915         instead of ldexpl to avoid local PLT.
1916         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (__ieee754_expl): Use
1917         __roundl not roundl to avoid local PLT.
1918         * sysdeps/ieee754/ldbl-128/e_j0l.c: Use function names which avoid
1919         local PLTs.  Use __sincosl instead of separate sinl and cosl
1920         calls.
1921         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
1922
1923         * sysdeps/unix/sysv/linux/configure.in: Bump minimal kernel
1924         version for ppc64 to 2.4.21 since without it makecontext will fail.
1925
1926         * elf/tls-macros.h [__powerpc64__] (__TLS_GET_ADDR): Define according
1927         to the ABI in use.
1928         [__powerpc64__] (TLS_LD): Use __TLS_GET_ADDR instead of
1929         .__tls_get_addr.
1930         [__powerpc64__] (TLS_GD): Likewise.
1931
1932 2007-11-20  Ryan S. Arnold  <rsa@us.ibm.com>
1933
1934         [BZ #4997]
1935         * sysdeps/powerpc/powerpc32/fpu/s_lround.S (__lround): Fixed erroneous
1936         result when x is +/-nextafter(+/-0.5,-/+1) i.e. all 1's in the
1937         mantissa.
1938         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S (__llround):
1939         Likewise.  Also account for when x is an odd number between 2^52
1940         and 2^53-1.
1941         * sysdeps/powerpc/powerpc64/fpu/s_llround.S (__llround): Likewise.
1942         * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S (__llroundf): Likewise.
1943         * math/libm-test.inc (lround_test, llround_test): Added test cases to
1944         detect aforementioned erroneous conditions.
1945
1946 2008-04-11  Jakub Jelinek  <jakub@redhat.com>
1947
1948         * configure.in: Check for -fno-section-anchors in addition to
1949         -fno-toplevel-reorder.
1950
1951 2008-04-11  Ulrich Drepper  <drepper@redhat.com>
1952
1953         * include/features.h (__GLIBC_MINOR__): Bump to 8.
1954
1955         * sysdeps/powerpc/powerpc32/fpu/s_lroundf.S: Remove duplicate comment.
1956         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llroundf.S: Likewise.
1957         * sysdeps/powerpc/powerpc32/power6/fpu/s_llroundf.S: Likewise.
1958         * sysdeps/powerpc/powerpc64/fpu/s_lrint.S: Likewise.
1959         * sysdeps/powerpc/powerpc64/fpu/s_lround.S: Likewise.
1960         * sysdeps/powerpc/powerpc64/fpu/s_lroundf.S: Likewise.
1961
1962 2008-04-11  Jakub Jelinek  <jakub@redhat.com>
1963
1964         [BZ #5443]
1965         * time/era.c: Transform __libc_setlocale_lock into rwlock.
1966         * time/alt_digit.c: Likewise.
1967         * wcsmbs/wcsmbsload.c: Likewise.
1968
1969 2008-04-10  Ulrich Drepper  <drepper@redhat.com>
1970
1971         * version.h (VERSION): Bump to 2.8.
1972
1973         * timzeone/asia: Update from tzdata2008b.
1974         * timezone/backward: Likewise.
1975         * timezone/europe: Likewise.
1976         * timezone/northamerica: Likewise.
1977         * timezone/southamerica: Likewise.
1978         * timezone/iso3166.tab: Likewise.
1979         * timezone/leapseconds: Likewise.
1980         * timezone/zone.tab: Likewise.
1981         * timezone/private.h: Update from tzcode2008a.
1982         * timezone/zdump.c: Likewise.
1983         * timezone/zic.c: Likewise.
1984
1985 2008-01-24  Steven Munroe  <sjmunroe@us.ibm.com>
1986
1987         [BZ #5741]
1988         * sysdeps/powerpc/powerpc64/dl-machine.h (PPC_DCBT, PPC_DCBF):
1989         Define additonal Data Cache Block instruction macros.
1990         (elf_machine_fixup_plt): Add dcbt for opd and plt entries.
1991         Replace dcbst with dcbf and sync with sync/isync.
1992
1993 2008-02-21  Alan Modra  <amodra@bigpond.net.au>
1994
1995         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_type_class):
1996         Always set ELF_RTYPE_CLASS_PLT.
1997         (elf_machine_lookup_noexec_p, elf_machine_lookup_noplt_p): Delete.
1998
1999 2008-04-03  Steven Munroe  <sjmunroe@us.ibm.com>
2000
2001         * sysdeps/powerpc/powerpc32/power4/hp-timing.c: New file.
2002         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: New file.
2003         * sysdeps/powerpc/powerpc64/hp-timing.h [_ARCH_PWR4] (HP_TIMING_NOW):
2004         For ISA 2.01 and later replace mftb with mfspr 268.
2005
2006 2008-02-19  Steven Munroe  <sjmunroe@us.ibm.com>
2007
2008         [BZ #5768]
2009         * sysdeps/powerpc/fpu/Makefile (libm-tests): Add test-powerpc-snan.
2010         * sysdeps/powerpc/fpu/test-powerpc-snan.c: New file.
2011
2012 2008-02-18  Steven Munroe  <sjmunroe@us.ibm.com>
2013
2014         [BZ #5768]
2015         * sysdeps/powerpc/powerpc32/fpu/s_isnan.S: New file.
2016         * sysdeps/powerpc/powerpc32/fpu/s_isnan.c: Removed.
2017         * sysdeps/powerpc/powerpc64/fpu/s_isnan.S: New file.
2018         * sysdeps/powerpc/powerpc64/fpu/s_isnan.c: Removed.
2019
2020 2008-04-10  Jakub Jelinek  <jakub@redhat.com>
2021
2022         * stdlib/tst-makecontext.c (othervar): New variable.
2023         (cf): Test sign extending the argument to long.
2024
2025 2008-03-03  Steven Munroe  <sjmunroe@us.ibm.com>
2026
2027         * sysdeps/powerpc/powerpc32/power5/fpu/s_isnan.S: New file.
2028         * sysdeps/powerpc/powerpc32/power5/fpu/s_isnanf.S: New file.
2029         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnan.S: New file.
2030         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S: New file.
2031         * sysdeps/powerpc/powerpc64/power5/fpu/s_isnan.S: New file.
2032         * sysdeps/powerpc/powerpc64/power6/fpu/s_isnan.S: New file.
2033         * sysdeps/powerpc/powerpc64/power6x/fpu/s_isnan.S: New file.
2034
2035 2008-02-22  Alan Modra  <amodra@bigpond.net.au>
2036
2037         * elf/Makefile (tests): Substitute tests-vis-yes here.
2038         (tests-vis-yes): Delete.
2039         (modules-name, modules-vis-yes): Similarly.
2040
2041 2008-02-12  Pete Eberlein  <eberlein@us.ibm.com>
2042
2043         [BZ #4407]
2044         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
2045         Preserve sign in signgamp when x is zero.
2046
2047 2007-10-26  Steven Munroe  <sjmunroe@us.ibm.com>
2048
2049         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: New File.
2050         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.c: Removed.
2051         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: New File.
2052         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.c: Removed.
2053         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: New File.
2054         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: New File.
2055
2056 2008-04-09  Ulrich Drepper  <drepper@redhat.com>
2057
2058         [BZ #4314]
2059         * sysdeps/i386/i686/memcpy.S: Optimize copying of equally aligned
2060         buffers.
2061
2062         [BZ #5209]
2063         * sysdeps/unix/sysv/syscalls.list: The times syscall doesn't have
2064         a reserved error value.
2065
2066         * stdlib/tst-makecontext.c: Change parameter to cf to negative
2067         value to check for correct sign extension.
2068
2069         [BZ #5436]
2070         * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
2071         Copy 64-bit parameter values even though this is not required in
2072         the standard.
2073
2074         * sysdeps/unix/sysv/linux/x86_64/vfork.S (__vfork): Record return
2075         PC save.
2076
2077 2008-02-14  Daniel Jacobowitz  <dan@codesourcery.com>
2078
2079         * sysdeps/unix/sysv/linux/i386/vfork.S (__vfork): Record return
2080         PC save.
2081
2082 2008-04-09  Jakub Jelinek  <jakub@redhat.com>
2083
2084         * nss_files/files-XXX.c (_nss_files_getXXent_r): Restore saved errno.
2085
2086 2008-04-09  Ulrich Drepper  <drepper@redhat.com>
2087
2088         [BZ #5998]
2089         * libio/iofwrite.c (_IO_fwrite): Return correct count if flushing
2090         in line-buffered stream failed.
2091         * libio/iofwrite_u.c (fwrite_unlocked): Likewise.
2092
2093 2008-04-08  Ulrich Drepper  <drepper@redhat.com>
2094
2095         [BZ #6024]
2096         * scripts/abi-versions.awk: If the version specified by
2097         --enable-oldest-abi is older than the first version for this
2098         architecture, use the default version.
2099
2100         * locale/programs/ld-collate.c (collate_read): Ignore script lines
2101         as well when ignoring the whole category.
2102
2103 2008-04-07  Ulrich Drepper  <drepper@redhat.com>
2104
2105         [BZ #6042]
2106         * sysdeps/unix/sysv/linux/net/ethernet.h: Add a few more
2107         ETHERTYPE_* definitions.
2108         Patch partly by Aurelien Jarno <aurelien@aurel32.net>.
2109
2110 2008-04-07  Jakub Jelinek  <jakub@redhat.com>
2111
2112         * stdlib/mbtowc.c (__no_r_state): Remove.
2113         (mbtowc): New static state variable.  Use it instead of
2114         __no_r_state.
2115         * stdlib/wctomb.c (__no_r_state): Remove extern decl.
2116         (__wctomb_state): New hidden variable.
2117         (wctomb): Use __wctomb_state instead of __no_r_state.
2118         * debug/wctomb_chk.c (__no_r_state): Remove extern decl.
2119         (__wctomb_state): New extern decl.
2120         (__wctomb_chk): Use __wctomb_state instead of __no_r_state.
2121
2122 2008-04-07  Ulrich Drepper  <drepper@redhat.com>
2123
2124         [BZ #5475]
2125         * resolv/res_init.c: Handle scope IDs in resolv.conf.
2126
2127 2008-04-07  Jakub Jelinek  <jakub@redhat.com>
2128
2129         * malloc/mtrace.pl: Use $@ instead of $* to keep perl 5.10 quiet.
2130
2131 2008-04-06  Ulrich Drepper  <drepper@redhat.com>
2132
2133         * po/nl.po: Update from translation team.
2134
2135 2008-03-31  Ulrich Drepper  <drepper@redhat.com>
2136
2137         [BZ #6007]
2138         * string/strfry.c: Handle empty strings again.
2139
2140 2008-03-30  Ulrich Drepper  <drepper@redhat.com>
2141
2142         [BZ #5443]
2143         * intl/dcigettext.c (__dcigettext): Get reader lock for locale data
2144         before looking for translation.
2145         * locale/duplocale.c: Transform __libc_setlocale_lock into rwlock.
2146         * locale/freelocale.c: Likewise.
2147         * locale/newlocale.c: Likewise.
2148         * locale/setlocale.c: Likewise.
2149         Based partially on a patch by ryo@np.css.fujitsu.com.
2150
2151 2008-03-30  Jakub Jelinek  <jakub@redhat.com>
2152
2153         * intl/dcigettext.c (_nl_find_msg): Reread nconversions after
2154         acquiring wrlock.  Do conv_tab allocation while holding lock.
2155         * intl/Makefile: Add rules to build and run tst-gettext6.
2156         * intl/tst-gettext6.c: New test.
2157         * intl/tst-gettext6.sh: New file.
2158
2159 2008-03-30  Ulrich Drepper  <drepper@redhat.com>
2160
2161         * po/nl.po: Update from translation team.
2162
2163         * sysdeps/unix/opendir.c (__alloc_dir): If allocation fails for size
2164         provided through st_blksize, try the default size before giving up.
2165
2166 2008-03-29  Ulrich Drepper  <drepper@redhat.com>
2167
2168         * stdio-common/vfprintf.c (vfprintf): Correct overflow test.
2169
2170         [BZ #5939]
2171         * sysdeps/posix/tempname.c (__gen_tempname): Correct flag selection.
2172
2173         * posix/getopt.c (_getopt_internal_r): Remove old POSIX-demanded
2174         error message.  POSIX today does not require the messages to be in
2175         a specific form.  Suggested by Jim Meyering <jim@meyering.net>.
2176
2177         [BZ #5979]
2178         * sunrpc/auth_unix.c: Unify printed strings.
2179         * sunrpc/clnt_tcp.c: Likewise.
2180         * sunrpc/clnt_udp.c: Likewise.
2181         * sunrpc/clnt_unix.c: Likewise.
2182         * sunrpc/svc_tcp.c: Likewise.
2183         * sunrpc/svc_udp.c: Likewise.
2184         * sunrpc/svc_unix.c: Likewise.
2185         * sunrpc/xdr.c: Likewise.
2186         * sunrpc/xdr_array.c: Likewise.
2187         * sunrpc/xdr_rec.c: Likewise.
2188         * sunrpc/xdr_ref.c: Likewise.
2189         * locale/programs/ld-time.c (time_finish): Unify messages.
2190         * locale/programs/locfile.c (handle_copy): Fix typo.
2191         * nscd/nscd.c (options): Fix typo.
2192
2193         [BZ #5995]
2194         * stdlib/strtod_l.c: Use correct sign for result in one more
2195         underflow case.
2196         Patch by Eric Blake <ebb9@byu.net>.
2197
2198 2008-03-27  Jakub Jelinek  <jakub@redhat.com>
2199
2200         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Add open
2201         and creat system calls.
2202         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove open system
2203         call.
2204         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Remove open and creat
2205         system calls.
2206         * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Likewise.
2207         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
2208         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
2209
2210 2008-03-27  Ulrich Drepper  <drepper@redhat.com>
2211
2212         * sysdeps/unix/sysv/linux/bits/local_lim.h: Undefined ARG_MAX if
2213         <linux/limits.h> has defined it.
2214         * sysdeps/unix/sysv/linux/sys/param.h: Define NCARGS to the legacy
2215         ARG_MAX value and prevent ARG_MAX from being defined by the kernel
2216         headers.
2217         * sysdeps/unix/sysv/linux/sysconf.c: Define legacy_ARG_MAX and use
2218         it instead of ARG_MAX.
2219
2220 2008-03-25  Jakub Jelinek  <jakub@redhat.com>
2221
2222         * posix/gai.conf: Fix comment for scope nullbits.
2223         * sysdeps/posix/getaddrinfo.c (gaiconf_init): If /bits is not present,
2224         default to 128 bits for v4 mapped addresses.
2225
2226 2008-03-07  Martin Schwidefsky  <schwidefsky@de.ibm.com>
2227
2228         * sysdeps/s390/fpu/fegetenv.c (fegetenv): Remove PTRACE_PEEKUSER
2229         ptrace call to get the ieee_instruction_pointer from the kernel.
2230         * sysdeps/s390/fpu/fesetenv.c (fesetenv): Remove PTRACE_POKEUSER
2231         ptrace call to set the ieee_instructtion_pointer.
2232         * sysdeps/unix/sysv/linux/s390/sys/user.h (struct _user_regs_struct):
2233         Add comment that ieee_instruction_pointer is always 0.
2234
2235 2008-03-09  Andreas Jaeger  <aj@suse.de>
2236
2237         [BZ #5857]
2238         * sysdeps/ieee754/dbl-64/s_rint.c (__rint): Handle j0==18.
2239         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Likewise.
2240         Patch by Mark Elliott <mark.h.elliott@lmco.com>.
2241
2242         * math/libm-test.inc (nearbyint_test): Add new test cases from #5857.
2243         (rint_test): Likewise.
2244
2245 2008-03-24  Ulrich Drepper  <drepper@redhat.com>
2246
2247         * nis/nis_call.c (nis_server_cache_search): Save errno around stat
2248         call.
2249         (__nisfind_server): Similar for open readColdStartFile call.
2250         Patch partially by Jim Meyering.
2251         * nss/nss_files/files-XXX.c (_nss_files_getXXent_r): Save errno
2252         around internal_setent call.
2253
2254         * po/vi.po: New Vietnamese translation.
2255
2256         * sysdeps/unix/sysv/linux/adjtime.c: Correctly use
2257         ADJ_OFFSET_SS_READ.
2258
2259         * sysdeps/unix/sysv/linux/bits/sched.h: Add new CLONE_* flags,
2260         remove CLONE_STOPPED.
2261
2262 2008-02-10  Jim Meyering  <meyering@redhat.com>
2263
2264         Remove useless "if" before "free":
2265         * elf/ldconfig.c (parse_conf_include): Likewise.
2266         * gmon/gmon.c (weak_alias): Likewise.
2267         * iconv/gconv_conf.c (__gconv_get_path): Likewise.
2268         * inet/rcmd.c (__validuser2_sa): Likewise.
2269         * intl/bindtextdom.c (set_binding_values): Likewise.
2270         * intl/loadmsgcat.c (_nl_load_domain, _nl_unload_domain): Likewise.
2271         * libio/genops.c (save_for_backup): Likewise.
2272         * libio/wgenops.c (save_for_wbackup): Likewise.
2273         * locale/programs/ld-collate.c (collate_read): Likewise.
2274         * locale/programs/linereader.c (get_string): Likewise.
2275         * nis/nss_compat/compat-pwd.c (give_pwd_free): Likewise.
2276         * nis/nss_compat/compat-spwd.c (give_spwd_free): Likewise.
2277         * resolv/res_debug.c (do_section): Likewise.
2278         * sunrpc/xdr_sizeof.c (x_inline, xdr_sizeof): Likewise.
2279         * sysdeps/mach/hurd/if_index.c (libc_hidden_def): Likewise.
2280         * sysdeps/posix/sprofil.c (__sprofil): Likewise.
2281         * time/lc-time-cleanup.c (_nl_cleanup_time): Likewise.
2282         * time/tzset.c (tzset_internal): Likewise.
2283
2284 2008-03-18  Jakub Jelinek  <jakub@redhat.com>
2285
2286         * sysdeps/unix/sysv/linux/dl-sysdep.h: Use __ASSEMBLER__ instead
2287         of ASSEMBLER.
2288
2289 2008-03-11  Ulrich Drepper  <drepper@redhat.com>
2290
2291         [BZ #5903]
2292         * iconv/iconv_charmap.c (charmap_conversion): Pass name of output file
2293         not stream for output file.  Open output file here.
2294         * iconv/iconv_prog.c (process_lock): Take pointer to output stream
2295         and output file name.
2296         (process_fd): Likewise.
2297         (process_file): Likewise.
2298         (main): Adjust callers of changed functions.
2299         * iconv/iconv_prog.h: Adjust prototype.
2300
2301 2008-03-09  Andreas Jaeger  <aj@suse.de>
2302
2303         [BZ #5753]
2304         * sysdeps/ia64/ieee754.h: Use protected namespace
2305         __BIG_ENDIAN/__LITTLE_ENDIAN.
2306         * sysdeps/ieee754/ieee754.h: Likewise.
2307         Patch by Aurelien Jarno <aurelien@aurel32.net>.
2308
2309 2008-03-08  Roland McGrath  <roland@frob.com>
2310
2311         * hurd/hurdsig.c (_hurd_internal_post_signal): When normal rules would
2312         ignore a signal that came from a machine exception, treat it as a
2313         fatal core-dump signal instead.
2314         Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
2315
2316         * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler):
2317         Clear DF bit in thread state's eflags.
2318         Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
2319
2320 2008-03-08  Ulrich Drepper  <drepper@redhat.com>
2321
2322         [BZ #5774]
2323         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Consume closing brace
2324         of NAN(...) sequence.
2325         * stdlib/Makefile (tests): Add tst-strtod6.
2326         * stdlib/tst-strtod6.c: New file.
2327
2328         * inet/inet6_opt.c (inet6_opt_init): Check extlen for overflow.
2329
2330         [BZ #5762]
2331         * posix/getopt.c (_getopt_internal_r): Clarify error message by
2332         putting offending option character in quotes.  Clean up error
2333         messages.
2334         * po/be.po: Adjust msgstr in translation file.
2335         * po/bg.po: Likewise.
2336         * po/ca.po: Likewise.
2337         * po/cs.po: Likewise.
2338         * po/da.po: Likewise.
2339         * po/de.po: Likewise.
2340         * po/es.po: Likewise.
2341         * po/fr.po: Likewise.
2342         * po/hr.po: Likewise.
2343         * po/ko.po: Likewise.
2344         * po/nl.po: Likewise.
2345         * po/rw.po: Likewise.
2346         * po/sk.po: Likewise.
2347         * po/sv.po: Likewise.
2348         * po/tr.po: Likewise.
2349         * po/zh_CN.po: Likewise.
2350         * po/zh_TW.po: Likewise.
2351
2352         [BZ #5760]
2353         * inet/inet6_opt.c (inet6_opt_init): Fix ip6h_len computation.
2354         Patch by Roland Bless <roland@bless.de>.
2355
2356         * sysdeps/unix/sysv/linux/dl-sysdep.c: Avoid unnecessary code for
2357         .o file.
2358         * elf/Makefile (routines): Add dl-sysdep.
2359         (elide-routines.os): Likewise.
2360
2361 2008-03-07  Ulrich Drepper  <drepper@redhat.com>
2362
2363         [BZ #5786]
2364         * elf/dl-sysdep.c: Undefine ROUND after use.
2365         * sysdeps/generic/ldsodefs.h [HAVE_DL_DISCOVER_OSVERSION]
2366         (struct rtld_global_ro): Add _dl_tls_get_addr_soft element.
2367         * elf/rtld.c (rtld_global_ro): Initialize _dl_discover_osversion.
2368         * sysdeps/unix/sysv/linux/dl-osinfo.h: Move _dl_discover_osversion
2369         to ...
2370         * sysdeps/unix/sysv/linux/dl-sysdep.c: ...here.
2371         * sysdeps/unix/sysv/linux/dl-sysdep.h: Declare _dl_discover_osversion
2372         if necessary.
2373         * sysdeps/unix/sysv/linux/sysconf.c: Handle _SC_ARG_MAX here.
2374
2375         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Add
2376         _dl_tls_get_addr_soft element.
2377         * elf/rtld.c (rtld_global_ro): Initialize _dl_tls_get_addr_soft.
2378         * elf/Versions (ld): Don't export _dl_tls_get_addr_soft.
2379         * dlfcn/dlinfo.c (dlinfo_doit): Access dl_tls_get_addr_soft through
2380         GLRO.
2381         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise.
2382         * elf/dl-tls.c (_dl_tls_get_addr_soft): Use attribute_hidden instead
2383         of internal_function.
2384
2385         * stdlib/Makefile (aux): Add tens_in_limb.
2386         * stdlib/strtod_l.c: Move _tens_in_limb definition to...
2387         * stdlib/tens_in_limb.c: ...here.  New file.
2388
2389         [BZ #5778]
2390         * sysdeps/unix/sysv/linux/pathconf.h: Declare
2391         __statfs_chown_restricted.
2392         * sysdeps/unix/sysv/linux/fpathconf.c: Call __statfs_chown_restricted
2393         for _PC_CHOWN_RESTRICTED.
2394         * sysdeps/unix/sysv/linux/pathconf.c: Likewise.
2395         Implement __statfs_chown_restricted.
2396         * sysdeps/unix/sysv/linux/bits/posix_opt.h: Change
2397         _POSIX_CHOWN_RESTRICTED value to zero.
2398         * io/tst-fchownat.c: Correctly handle _POSIX_CHOWN_RESTRICTED
2399         defined to zero.
2400
2401         * sysdeps/x86_64/rtld-memset.c: New file.
2402
2403 2008-02-26  Harsha Jagasia  <harsha.jagasia@amd.com>
2404
2405         * sysdeps/x86_64/cacheinfo.c (NOT_USED_RIGHT_NOW): Remove ifdef guards.
2406
2407         * sysdeps/x86_64/memset.S: Rewrite non-SSE code path as tuned for AMD
2408         Barcelona machine.  Make default fall through branch of
2409         __x86_64_preferred_memory_instruction check as the integer code path.
2410
2411 2007-10-15  H.J. Lu  <hongjiu.lu@intel.com>
2412
2413         * sysdeps/x86_64/cacheinfo.c
2414         (__x86_64_preferred_memory_instruction): New variable.
2415         (init_cacheinfo): Initialize __x86_64_preferred_memory_instruction.
2416
2417         * sysdeps/x86_64/memset.S: Rewrite.
2418
2419 2008-03-04  Jakub Jelinek  <jakub@redhat.com>
2420
2421         * include/stdio.h (__asprintf_chk, __dprintf_chk,
2422         __obstack_printf_chk): New prototypes.
2423         (__vasprintf_chk, __vdprintf_chk,
2424         __obstack_vprintf_chk): Likewise.
2425         Add libc_hidden_proto.
2426         * libio/obprintf.c
2427         (_IO_obstack_jumps): No longer static, add attribute_hidden.
2428         * libio/bits/stdio-ldbl.h (__asprintf_chk, __dprintf_chk,
2429         __obstack_printf_chk, __vasprintf_chk, __vdprintf_chk,
2430         __obstack_vprintf_chk): Add __LDBL_REDIR_DECL.
2431         * libio/bits/stdio2.h (__asprintf_chk, __dprintf_chk,
2432         __obstack_printf_chk, __vasprintf_chk, __vdprintf_chk,
2433         __obstack_vprintf_chk): New prototypes.
2434         (asprintf, __asprintf, dprintf, obstack_printf, vasprintf, vdprintf,
2435         obstack_vprintf): New inlines.
2436         * debug/dprintf_chk.c: New file.
2437         * debug/vdprintf_chk.c: New file.
2438         * debug/asprintf_chk.c: New file.
2439         * debug/vasprintf_chk.c: New file.
2440         * debug/obprintf_chk.c: New file.
2441         * debug/tst-chk1.c (do_test): Add asprintf and obstack_printf tests.
2442         * debug/Versions (__asprintf_chk, __dprintf_chk, __obstack_printf_chk,
2443         __vasprintf_chk, __vdprintf_chk, __obstack_vprintf_chk): Export
2444         @@GLIBC_2.8.
2445         * debug/Makefile: Build asprintf_chk, vasprintf_chk, dprintf_chk,
2446         vdprintf_chk and obprintf_chk, set CFLAGS for them.
2447         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c (__nldbl___vasprintf_chk,
2448         __nldbl___vdprintf_chk, __nldbl___obstack_vprintf_chk): Add
2449         libc_hidden_proto.
2450         * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl___vasprintf_chk,
2451         __nldbl___vdprintf_chk, __nldbl___obstack_vprintf_chk): New prototypes.
2452         * sysdeps/ieee754/ldbl-opt/Versions (__nldbl___asprintf_chk,
2453         __nldbl___vasprintf_chk, __nldbl___dprintf_chk, __nldbl___vdprintf_chk,
2454         __nldbl___obstack_printf_chk, __nldbl___obstack_vprintf_chk): Export
2455         @@GLIBC_2.8.
2456         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add asprintf_chk,
2457         vasprintf_chk, dprintf_chk, vdprintf_chk, obstack_printf_chk and
2458         obstack_vprintf_chk.
2459         * sysdeps/ieee754/ldbl-opt/nldbl-obstack_vprintf_chk.c: New file.
2460         * sysdeps/ieee754/ldbl-opt/nldbl-dprintf_chk.c: New file.
2461         * sysdeps/ieee754/ldbl-opt/nldbl-obstack_printf_chk.c: New file.
2462         * sysdeps/ieee754/ldbl-opt/nldbl-asprintf_chk.c: New file.
2463         * sysdeps/ieee754/ldbl-opt/nldbl-vdprintf_chk.c: New file.
2464         * sysdeps/ieee754/ldbl-opt/nldbl-vasprintf_chk.c: New file.
2465
2466 2008-03-04  Ulrich Drepper  <drepper@redhat.com>
2467
2468         [BZ #5779]
2469         * misc/sys/queue.h: Add STAILQ_CONCAT and TAILQ_CONCAT definitions.
2470         Patch by Roy Marples <roy@marples.name>.
2471
2472         [BZ #5736]
2473         * malloc/malloc.c: Fix typo in comment.
2474
2475         [BZ #5627]
2476         * locale/iso-639.def: Add Shuswap.
2477
2478 2008-02-25  Jakub Jelinek  <jakub@redhat.com>
2479
2480         [BZ #5790]
2481         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr2_r): Don't
2482         overwrite *h_errnop/*errnop values from getanswer_r in case of
2483         failure.
2484
2485 2008-03-03  Ulrich Drepper  <drepper@redhat.com>
2486
2487         [BZ #5818]
2488         * nscd/connections.c (dbs): Add initializers for .suggested_module.
2489         (verify_persistent_db): Remove one unnecessary test and add a new one
2490         for bad configuration.
2491         (nscd_init): Improve error reported when persistent database cannot
2492         be reused.
2493         * nscd/nscd.h (DEFAULT_SUGGESTED_MODULE): Define.
2494         * nscd/nscd_conf.c (nscd_parse_file): Provide default values for
2495         .suggested_module and .max_db_size and case config file says the
2496         values are zero.
2497         * nscd/nscd_helper.c (get_mapping): Fail if hash table module is zero.
2498
2499         [BZ #5854]
2500         * nis/ypclnt.c (yp_order): Fix handling of return value of
2501         do_ypcall_tr call.
2502         Patch by Jeff Moyer <jmoyer@redhat.com>.
2503
2504         * po/fr.po: Update from translation team.
2505
2506 2008-02-22  Andreas Jaeger  <aj@suse.de>,
2507             Carlos O'Donell <carlos@systemhalted.org>
2508
2509         [BZ #5012]
2510         * FAQ.in: Describe why glibc needs to be compiled with
2511         optimization.
2512
2513 2008-02-19  Roland McGrath  <roland@redhat.com>
2514
2515         * elf/elf.h (SHT_GNU_ATTRIBUTES): New macro.
2516
2517 2008-02-15  Ulrich Drepper  <drepper@redhat.com>
2518
2519         [BZ #5737]
2520         * resolv/netdb.h: Make NI_MAXHOST and NI_MAXSERV available when
2521         __USE_MISC is defined.
2522
2523 2008-02-10  Ulrich Drepper  <drepper@redhat.com>
2524
2525         * sysdeps/unix/sysv/linux/sys/timerfd.h: New file.
2526         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers): Add
2527         sys/timerfd.h.
2528         * sysdeps/unix/sysv/linux/syscalls.list: Add timerfd_create,
2529         timerfd_gettime, timerfd_settime.
2530         * sysdeps/unix/sysv/linux/Versions: Add timerfd_create,
2531         timerfd_gettime, timerfd_settime for GLIBC_2.8.
2532
2533 2008-02-08  Roland McGrath  <roland@redhat.com>
2534
2535         * elf/elf.h (NT_PPC_SPE): New macro.
2536
2537 2008-02-06  Roland McGrath  <roland@redhat.com>
2538
2539         * Makerules ($(common-objpfx)sysd-rules):
2540         Depend on $(sysdep-makeconfigs).
2541
2542 2008-01-31  Roland McGrath  <roland@redhat.com>
2543
2544         [BZ #5442]
2545         * configure.in: Use -print-file-name if it yields a directory,
2546         for each of include and include-fixed.
2547         * configure: Regenerated.
2548
2549         * Makeconfig (sysd-rules-targets): New variable.
2550         * sysdeps/unix/make-syscalls.sh: Use it in the rules emitted.
2551         * sysdeps/unix/Makefile (omit-deps): Append variants for each target.
2552
2553 2008-01-30  Roland McGrath  <roland@redhat.com>
2554
2555         * manual/libc.texinfo: Update back-cover text.
2556
2557         * elf/elf.h (NT_386_TLS): New macro.
2558
2559 2008-01-29  Roland McGrath  <roland@redhat.com>
2560
2561         * Makeconfig (sysd-rules-patterns): New variable.
2562         * Makerules ($(common-objpfx)sysd-rules): Drive the loop from that.
2563         (check-inhibit-asm): New canned sequence, replaces ...
2564         (open-check-inhibit-asm, close-check-inhibit-asm): ... these, removed.
2565         * elf/rtld-Rules ($(objpfx)rtld-%.os): Use $(rtld-CPPFLAGS) in commands.
2566         (rtld-CPPFLAGS): Renamed from CPPFLAGS-rtld.
2567         (CFLAGS-rtld): Variable removed.
2568
2569 2008-01-24  Roland McGrath  <roland@redhat.com>
2570
2571         * configure.in: Let configure fragments set base_os.
2572         * configure: Regenerated.
2573
2574 2008-01-22  Ulrich Drepper  <drepper@redhat.com>
2575
2576         * po/ko.po: Update from translation team.
2577
2578 2008-01-12  H.J. Lu  <hongjiu.lu@intel.com>
2579
2580         * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Use short for fnstsw.
2581
2582 2008-01-12  Andreas Jaeger  <aj@suse.de>
2583
2584         [BZ #5040]
2585         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h (enum EPOLL_EVENTS):
2586         Add EPOLLRDHUP.
2587
2588 2008-01-20  Samuel Thibault  <samuel.thibault@ens-lyon.org>
2589
2590         * hurd/hurdsock.c (_hurd_socket_server): Return the standard
2591         error EAFNOSUPPORT rather than non-standard EPFNOSUPPORT.
2592         * sunrpc/bindrsvprt.c (bindresvport): Likewise.
2593
2594 2007-10-23  Alexandre Oliva  <aoliva@redhat.com>
2595
2596         * include/link.h (FORCED_DYNAMIC_TLS_OFFSET): Define.
2597         * elf/dl-close.c (_dl_close): Check for it.
2598         * elf/dl-reloc.c (CHECK_STATIC_TLS): Likewise.
2599         (_dl_allocate_static_tls): Likewise.
2600         * elf/dl-tls.c (_dl_allocate_tls_init): Likewise.
2601         (__tls_get_addr): Protect from race conditions in setting l_tls_offset
2602         to it.
2603         * elf/tst-tls16.c: New file.
2604         * elf/tst-tlsmod16a.c: New file.
2605         * elf/tst-tlsmod16b.c: New file.
2606         * elf/Makefile: Add rules to build and run tst-tls16.
2607
2608 2008-01-16  Ulrich Drepper  <drepper@redhat.com>
2609
2610         [BZ #5628]
2611         * bits/shm.h: Fix comment describing shmid_ds.
2612         * sysdeps/gnu/bits/shm.h: Likewise.
2613         * sysdeps/unix/sysv/linux/alpha/bits/shm.h: Likewise.
2614         * sysdeps/unix/sysv/linux/bits/shm.h: Likewise.
2615         * sysdeps/unix/sysv/linux/ia64/bits/shm.h: Likewise.
2616         * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
2617         * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
2618         * sysdeps/unix/sysv/linux/sh/bits/shm.h: Likewise.
2619         * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
2620         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Likewise.
2621         Patch by Hareesh Nagarajan <hareesh.nagarajan@gmail.com>.
2622
2623         [BZ #5607]
2624         * conform/data/fcntl.h-data: Fix posix_fadvise and posix_fallocate
2625         prototypes.
2626         * conform/data/limits.h-data: Adjust limits changed in v6 and add
2627         additional suffixes.
2628         * conform/data/mqueue.h-data: Fix typo in mq_curmsgs entry.
2629         Add optional functions mq_timedreceive and mq_timedsend.
2630         * conform/data/netdb.h-data: Add more AI_* and EAI_* constants.
2631         * conform/data/pthread.h-data: Fix prototype of
2632         pthread_condattr_setclock.  pthread_sigmask is not required in v6.
2633         * conform/data/semaphore.h-data: Allow time.h definitions.
2634         * conform/data/signal.h-data: Likewise.
2635         * conform/data/stdio.h-data: getw and putw are not required in v6.
2636         * conform/data/stdlib.h-data: Change setstate prototype.
2637         * conform/data/string.h-data: Fix strerror_r prototype.
2638         * conform/data/time.h-data: Fix typo in TIMER_ABSTIME definition.
2639         * conform/data/unistd.h-data: pthread_atfork not required in v6.
2640         Fix readlink prototype.
2641         * conform/data/netinet/in.h-data: Add const to in6addr_any and
2642         in6addr_loopback.
2643         * inet/netinet/in.h: Cleanup namespace.
2644         * posix/regex.h: Likewise.
2645         * resolv/netdb.h: Likewise.
2646         * sysdeps/unix/sysv/linux/bits/in.h: Likewise.
2647         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
2648         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
2649         * sysdeps/posix/getaddrinfo.c (default_labels): Adjust for change
2650         of names of in in6_addr.
2651         (default_precedence): Likewise.
2652         * sysdeps/unix/sysv/linux/cmsg_nxthdr.c: Include <stddef.h> for
2653         NULL definition.
2654
2655 2008-01-15  Ulrich Drepper  <drepper@redhat.com>
2656
2657         * conform/data/fmtmsg.h-data: Add missing allows.
2658         * conform/data/ftw.h-data: Likewise.
2659         * conform/data/inttypes.h-data: Likewise.
2660         * conform/data/math.h-data: Likewise.
2661         * conform/data/signal.h-data: Likewise.
2662         * conform/data/net/if.h-data: Likewise.
2663         * conform/data/netinet/in.h-data: Likewise.
2664         * conform/data/sys/socket.h-data: Likewise.
2665
2666         [BZ #5614]
2667         * string/bits/string2.h (__strtok_r_1c): Always update *__NEXTP.
2668         (__strtok_r): Simplify.
2669         * string/tester.c (test_strtok_r): Add test case for futile search
2670         with single-character seach string.
2671
2672 2008-01-12  Ulrich Drepper  <drepper@redhat.com>
2673
2674         * po/ko.po: Update from translation team.
2675
2676 2008-01-11  Andreas Jaeger  <aj@suse.de>
2677
2678         [BZ #5600]
2679         * sysdeps/unix/sysv/linux/sys/signalfd.h (struct
2680         signalfd_siginfo): Use 64-bit type for ssi_ptr to sync with Linux
2681         kernel header.
2682
2683 2008-01-10  Ulrich Drepper  <drepper@redhat.com>
2684
2685         * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Store result of
2686         native interface lookup in all the relevant places.
2687
2688 2008-01-10  Jakub Jelinek  <jakub@redhat.com>
2689             Ulrich Drepper  <drepper@redhat.com>
2690
2691         * sysdeps/posix/getaddrinfo.c (sort_results): Remove service_order
2692         field.  Use sockaddr_in6 for source_addr.
2693         (get_scope): Change type of parameter to sockaddr_in6.  Adjust.
2694         (match_prefix): Likewise.
2695         (get_label): Likewise.
2696         (get_precedence): Likewise.
2697         (rfc3484_sort): Change to use indirect access to results array.
2698         Adjust to use of sockaddr_in6.  Replace service_order test with
2699         simple index comparison.
2700         (getaddrinfo): Define order array.  Initialize it.  Don't initialize
2701         service_order field.  Adjust qsort_t calls.  Access sorted result
2702         array indirectly through order array.
2703         * posix/tst-rfc3484.c: Adjust for change of rfc3484_sort.
2704         * posix/tst-rfc3484-2.c: Likewise.
2705         * posix/tst-rfc3484-3.c: Likewise.
2706
2707 2008-01-09  Ulrich Drepper  <drepper@redhat.com>
2708
2709         [BZ #5541]
2710         * sunrpc/rpc_thread.c (__rpc_thread_destroy): Also free xports and
2711         pollfd structures.
2712         Patch by AndrĂ© Cruz.
2713
2714         [BZ #5545]
2715         * sunrpc/clnt_perr.c (clnt_sperror): Don't use fixed size buffer.
2716         (clnt_spcreateerror): Likewise.
2717
2718         [BZ #5553]
2719         * malloc/malloc.c (public_mALLOc): Set ar_ptr when trying main_arena.
2720         (public_mEMALIGn): Likewise.
2721         Patch mostly by Daniel Jacobowitz.
2722
2723 2008-01-09  Jakub Jelinek  <jakub@redhat.com>
2724
2725         * sysdeps/unix/sysv/linux/i386/makecontext.S (__makecontext): Avoid
2726         clobbering memory at or above uc_stack.ss_sp + uc_stack.ss_size.
2727         * stdlib/Makefile: Add rules to build and run tst-makecontext2.
2728         * stdlib/tst-makecontext2.c: New test.
2729
2730 2008-01-08  Jakub Jelinek  <jakub@redhat.com>
2731
2732         * iconv/loop.c (UPDATE_PARAMS): Define to empty statement if not
2733         defined.
2734         (REINIT_PARAMS): Likewise.  Undefine before end of file.
2735         (STANDARD_TO_LOOP_ERR_HANDLER): Use UPDATE_PARAMS before calling
2736         transliteration hooks and REINIT_PARAMS afterwards.
2737         * iconvdata/iso-2022-jp.c (BODY): Use a separate variable for
2738         status.
2739         (REINIT_PARAMS): Define.
2740         * iconvdata/ibm1364.c (REINIT_PARAMS): Likewise.
2741         * iconvdata/ibm930.c (REINIT_PARAMS): Likewise.
2742         * iconvdata/ibm933.c (REINIT_PARAMS): Likewise.
2743         * iconvdata/ibm935.c (REINIT_PARAMS): Likewise.
2744         * iconvdata/ibm937.c (REINIT_PARAMS): Likewise.
2745         * iconvdata/ibm939.c (REINIT_PARAMS): Likewise.
2746         * iconvdata/iso-2022-cn.c (REINIT_PARAMS): Likewise.
2747         * iconvdata/iso-2022-cn-ext.c (REINIT_PARAMS): Likewise.
2748         * iconvdata/iso-2022-jp-3.c (REINIT_PARAMS): Likewise.
2749         * iconvdata/iso-2022-kr.c (REINIT_PARAMS): Likewise.
2750         * iconvdata/Makefile: Add rules to build and run tst-iconv7.c.
2751         * iconvdata/tst-iconv7.c: New test.
2752
2753 2008-01-07  Ulrich Drepper  <drepper@redhat.com>
2754
2755         * libio/stdio.h (vscanf): Fix definition for loser compilers.
2756
2757 2008-01-05  Jakub Jelinek  <jakub@redhat.com>
2758
2759         [BZ #5112]
2760         * nscd/connections.c (restart): Fix condition.
2761
2762 2008-01-03  Jakub Jelinek  <jakub@redhat.com>
2763
2764         * ctype/ctype.h (__ctype_b_loc, __ctype_tolower_loc,
2765         __ctype_toupper_loc): Add __THROW.
2766
2767 2008-01-02  Ulrich Drepper  <drepper@redhat.com>
2768
2769         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Fix
2770         recognition of interface family.
2771
2772         * posix/getconf.c: Update copyright year.
2773         * nss/getent.c: Likewise.
2774         * iconv/iconvconfig.c: Likewise.
2775         * iconv/iconv_prog.c: Likewise.
2776         * elf/ldconfig.c: Likewise.
2777         * catgets/gencat.c: Likewise.
2778         * csu/version.c: Likewise.
2779         * elf/ldd.bash.in: Likewise.
2780         * elf/sprof.c (print_version): Likewise.
2781         * locale/programs/locale.c: Likewise.
2782         * locale/programs/localedef.c: Likewise.
2783         * nscd/nscd.c (print_version): Likewise.
2784         * debug/xtrace.sh: Likewise.
2785         * malloc/memusage.sh: Likewise.
2786         * malloc/mtrace.pl: Likewise.
2787         * debug/catchsegv.sh: Likewise.
2788
2789 2007-12-26  Ulrich Drepper  <drepper@redhat.com>
2790
2791         * nss/nsswitch.c (__nss_lookup): Actually use alternative name in
2792         second lookup.
2793
2794 2007-12-23  Ulrich Drepper  <drepper@redhat.com>
2795
2796         * sysdeps/x86_64/cacheinfo.c (intel_02_known): New entry 0x3f.
2797         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
2798
2799 2007-12-17  Roland McGrath  <roland@redhat.com>
2800
2801         * inet/ether_line.c (ether_line): Remove unused variable.
2802
2803 2007-12-17  Samuel Thibault  <samuel.thibault@ens-lyon.org>
2804
2805         * login/forkpty.c (forkpty): Add const qualifier to parameters termp
2806         and winp.
2807         * login/openpty.c (openpty): Likewise.
2808         * login/pty.h (openpty, forkpty): Likewise.
2809         * manual/terminal.texi (openpty, forkpty): Likewise.
2810
2811 2007-12-17  Ulrich Drepper  <drepper@redhat.com>
2812
2813         * malloc/malloc.c (public_cALLOc): For arenas other than
2814         main_arena, count all bytes inside the mprotect_size range of the
2815         heap as uninitialized.
2816
2817 2007-12-16  Ulrich Drepper  <drepper@redhat.com>
2818
2819         * elf/tst-execstack.c (do_test): Don't fail if SELinux forbids
2820         executable stacks.
2821
2822         * malloc/malloc.c (public_mTRIm): Iterate over all arenas and call
2823         mTRIm for all of them.
2824         (mTRIm): Additionally iterate over all free blocks and use madvise
2825         to free memory for all those blocks which contain at least one
2826         memory page.
2827         * malloc/tst-trim1.c: New file.
2828         * malloc/Makefile (tests): Add tst-trim1.
2829
2830         * malloc/malloc.c (do_check_malloc_state): Minimal cleanups.
2831
2832 2007-12-14  Ulrich Drepper  <drepper@redhat.com>
2833
2834         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INTERNAL_SYSCALL_ERROR_P):
2835         First cast argument to long
2836         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_gettimeofday):
2837         Return long.
2838         (__vdso_clock_gettime): Likewise.
2839         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Functions
2840         return long.
2841
2842 2007-12-13  Ulrich Drepper  <drepper@redhat.com>
2843
2844         * locale/nl_langinfo.c (nl_langinfo): Just call __nl_langinfo_l.
2845         * locale/nl_langinfo_l.c: Real implementation, copied from
2846         nl_langinfo.c.
2847         * include/langinfo.h: Add libc_hidden_proto for __nl_langinfo_l.
2848
2849 2007-12-01  Jim Meyering  <meyering@redhat.com>
2850
2851         * posix/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
2852         that would inhibit utf8-optimization of a regexp containing line-
2853         or buffer-anchors, e.g., `^', `$'.
2854
2855 2007-12-12  Ulrich Drepper  <drepper@redhat.com>
2856
2857         * time/bug-getdate1.c (do_test): Don't use century values which
2858         aren't valid on 32-bit systems.
2859
2860 2007-12-12  Jakub Jelinek  <jakub@redhat.com>
2861
2862         * sysdeps/i386/i486/bits/string.h (memmove): Define as macro.
2863         (memmove): Rename to __memmove_g, with __asm__ ("memmove").
2864         * sysdeps/s390/bits/string.h (__strlen_g, __strcpy_g, __strncpy_g,
2865         __strcat_g, __strncat_g): Add __asm__.
2866
2867 2007-12-12  Ulrich Drepper  <drepper@redhat.com>
2868
2869         [BZ #5477]
2870         * io/fchmodat.c: Fix typo in stub_warning use.
2871         Patch by Petr Salinger.
2872
2873 2007-12-11  Ulrich Drepper  <drepper@redhat.com>
2874
2875         * iconvdata/hp-thai8.c: New file.
2876         * iconvdata/Makefile: Add rules for hp-thai8.c.
2877         * iconvdata/tst-tables.sh: Add entry for HP-THAI8.
2878         * iconvdata/gconv-modules: Likewise.
2879
2880         [BZ #5464]
2881         * iconvdata/hp-greek8.c: New file.
2882         * iconvdata/Makefile: Add rules for hp-greek8.c.
2883         * iconvdata/tst-tables.sh: Add entry for HP-GREEK8.
2884         * iconvdata/gconv-modules: Likewise.
2885
2886         [BZ #5463]
2887         * iconvdata/hp-turkish8.c: New file.
2888         * iconvdata/Makefile: Add rules for hp-turkish8.c.
2889         * iconvdata/tst-tables.sh: Add entry for HP-TURKISH8.
2890         * iconvdata/gconv-modules: Likewise.
2891
2892         * malloc/arena.c (grow_heap): Split out code to shrink heap into...
2893         (shrink_heap): ... this new function.
2894         (heap_trim): Call shrink_heap instead of grow_heap.
2895
2896         * malloc/malloc.c (_int_malloc): sYSMALLOc might fail, in this
2897         case don't call alloc_perturb.
2898
2899 2007-12-10  Ulrich Drepper  <drepper@redhat.com>
2900
2901         * sysdeps/unix/sysv/linux/adjtime.c: Use ADJ_OFFSET_SS_READ if
2902         possible.
2903         * sysdeps/unix/sysv/linux/kernel-features.h
2904         (__ASSUME_ADJ_OFFSET_SS_READ): Define for 2.6.24.
2905         * sysdeps/unix/sysv/linux/sys/timex.h (ADJ_OFFSET_SS_READ): Define.
2906
2907 2007-12-08  Ulrich Drepper  <drepper@redhat.com>
2908
2909         [BZ #5424]
2910         * stdio-common/vfprintf.c: Do not overflow when adding to done.
2911         * stdio-common/Makefile (tests): Add bug22.
2912         * stdio-common/bug22.c: New file.
2913
2914         [BZ #5451]
2915         * time/getdate.c: Fix filling in default values.
2916         * time/bug-getdate1.c: New file.
2917         * time/Makefile: Add rules to build and run bug-getdate1.
2918
2919         * iconvdata/ebcdic-is-friss.c: Use 8bit-gap instead of 8bit-generic.
2920         * iconvdata/ebcdic-es.c: Likewise.
2921         * iconvdata/ebcdic-es-a.c: Likewise.
2922         * iconvdata/ebcdic-uk.c: Likewise.
2923         * iconvdata/iso8859-16.c: Likewise.
2924         * iconvdata/viscii.c: Likewise.
2925         * iconvdata/iso8859-9e.c: Likewise.
2926         * iconvdata/Makefile: Adjust appropriately.
2927
2928         [BZ #5428]
2929         * wcsmbs/wchar.h: Unconditionally undefine __need_mbstate and
2930         __need_wint_t.
2931
2932 2007-12-07  Ulrich Drepper  <drepper@redhat.com>
2933
2934         [BZ #5427]
2935         * iconvdata/hp-roman9.c: New file.
2936         * iconvdata/Makefile: Add rules for hp-roman9.c.
2937         * iconvdata/tst-tables.sh: Add HP-ROMAN9.
2938         * iconvdata/gconv-modules: Likewise.
2939
2940         * iconvdata/hp-roman8.c: Use 8bit-gap instead of 8bit-generic.
2941         * iconvdata/Makefile: Adjust appropriately.
2942
2943         [BZ #5441]
2944         * stdio-common/vfscanf.c (_IO_vfwscanf): Don't free ptrs_to_free
2945         structure, it's allocated with alloca.
2946         * stdio-common/Makefile (tests): Add bug21.
2947         * stdio-common/bug21.c: New file.
2948
2949 2007-12-06  Aurelien Jarno  <aurelien@aurel32.net>
2950
2951         [BZ #5452]
2952         * sysdeps/unix/sysv/linux/bits/sched.h: Use __extension__
2953         keyword for gcc's braced-groups.
2954
2955 2007-12-07  Ulrich Drepper  <drepper@redhat.com>
2956
2957         [BZ #5454]
2958         * inet/ether_line.c: Strip hostname of whitespaces.
2959         * inet/Makefile (tests): Add tst-ether_line.
2960         * inet/tst-ether_line.c: New file.
2961
2962 2007-12-03  Ulrich Drepper  <drepper@redhat.com>
2963
2964         [BZ #5439]
2965         * sysdeps/unix/sysv/linux/sys/signalfd.h: Fix use of __nonnull.
2966
2967         [BZ #5435]
2968         * sysdeps/unix/sysv/linux/i386/makecontext.S: Align stack.
2969
2970         * stdlib/tst-setcontext.c: Catch the case where the links gets
2971         messed up and we do not reach main again.
2972
2973         * po/ca.po: Update from translation team.
2974
2975 2007-11-26  Ulrich Drepper  <drepper@redhat.com>
2976
2977         * posix/unistd.h: Declare fsync also for __USE_XOPEN2K.
2978         * posix/regex.h (REG_ENOSYS): Likewise.
2979         * wcsmbs/wchar.h: Define __need_file also for __USE_XOPEN2K.
2980
2981 2007-11-25  Ulrich Drepper  <drepper@redhat.com>
2982
2983         * nscd/nscd.h (MAX_STACK_USE): Define.
2984         * nscd/mem.c (MAX_STACK_USE): Remove definition here.
2985         (gc): Initialize stack_used based on allocation in prune_cache.
2986         * nscd/cache.c (prune_cache): Use heap for mark array if necessary.
2987         Clear array before use.
2988
2989         * nscd/aicache.c (addhstaiX): Update statistics counter in case
2990         memory allocation failed.
2991         * nscd/hstcache.c (cache_addhst): Likewise.
2992         * nscd/grpcache.c (cache_addgr): Likewise.
2993         * nscd/servicescache.c (cache_addserv): Likewise.
2994         * nscd/pwdcache.c (cache_addpw): Likewise.
2995         * nscd/initgrcache.c (addinitgroupsX): Likewise.
2996
2997 2007-11-23  Ulrich Drepper  <drepper@redhat.com>
2998
2999         * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Add open
3000         and creat system calls.
3001
3002         * sysdeps/unix/sysv/linux/check_native.c: Include <asm/types.h>.
3003
3004 2007-11-23  Martin Schwidefsky  <schwidefsky@de.ibm.com>
3005
3006         * sysdeps/unix/sysv/linux/Makefile [subdir=inet] (sysdep_headers):
3007         Add netiucv/iucv.h.
3008         * sysdeps/unix/sysv/linux/netiucv/iucv.h: New file.
3009         * sysdeps/unix/sysv/linux/opensock.c (__opensock): Add AF_IUCV
3010         protocol.
3011         * sysdeps/unix/sysv/linux/sa_len.c (__libc_sa_len): Likewise.
3012         * sysdeps/unix/sysv/linux/s390/opensock.c: New file.
3013         * sysdeps/unix/sysv/linux/s390/sa_len.c: New file.
3014
3015 2007-11-22  Martin Schwidefsky  <schwidefsky@de.ibm.com>
3016
3017         * sysdeps/s390/bits/string.h (strlen, strcpy, strncpy, strcat,
3018         strncat): Define as macros to avoid compile errors.
3019
3020         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list:  Add open and
3021         creat entries.
3022
3023 2007-11-22  Ulrich Drepper  <drepper@redhat.com>
3024
3025         [BZ #5382]
3026         * nscd/nscd.h (NSCD_THREAD_STACKSIZE): Define.
3027         * nscd/connections.c (start_threads): Use NSCD_THREAD_STACKSIZE.
3028         * nscd/mem.c (gc): Don't allocate arrays on the stack if they can
3029         overflow it.
3030         Partially based on a patch by Petr Baudis <pasky@suse.cz>.
3031
3032         * sysdeps/unix/sysv/linux/nscd_setup_thread.c (setup_thread):
3033         Return zero in case the thread library is not NPTL.
3034
3035         [BZ #5375]
3036         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix locking when
3037         initializing interface list.
3038
3039         [BZ #5378]
3040         * nis/nss_compat/compat-initgroups.c (getgrent_next_nss): Don't
3041         use result of nss_getgrgid_r if nothing was found.  For other
3042         error return with a failure.
3043         Partially based on a patch by Petr Baudis <pasky@suse.cz>.
3044
3045         * locale/programs/ld-collate.c (collate_read): Fix loop to match
3046         macro name.
3047
3048 2007-11-19  Ulrich Drepper  <drepper@redhat.com>
3049
3050         * sysdeps/posix/getaddrinfo.c (defaults_scopes, scopes): New variables.
3051         (get_scope): For IPv4 scope, use scopes table.
3052         (fini): Free scopes table if necessary.
3053         (free_scopelist): New function.
3054         (scopecmp): New function.
3055         (gaiconf_init): Also handle scopev4 entries.
3056         * posix/tst-rfc3484.c (do_test): Initialize scopes.
3057         * posix/tst-rfc3484-2.c (do_test): Likewise.
3058         * posix/gai.conf: Document scopev4 defaults.
3059         * posix/Makefile (tests): Add tst-rfc3484-3.
3060         * posix/tst-rfc3484-3.c: New file.
3061
3062         * sysdeps/posix/getaddrinfo.c (default_labels): Describe entry for
3063         Teredo tunnels.
3064         * posix/gai.conf: Update for current default tables.
3065
3066 2007-11-19  Ulrich Drepper  <drepper@redhat.com>
3067
3068         * po/tr.po: Update from translation team.
3069
3070 2007-11-18  Roland McGrath  <roland@frob.com>
3071
3072         * manual/arith.texi (Remainder Functions): Spelling fix.
3073         From Shaun Silk <genix@mysoul.com.au>.
3074
3075         * sysdeps/mach/hurd/bits/fcntl.h (O_CLOEXEC): Fix value.
3076
3077 2007-11-17  Ulrich Drepper  <drepper@redhat.com>
3078
3079         * po/zh_CN.po: Update from translation team.
3080
3081         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
3082         Add sys/signalfd.h and sys/eventfd.h.
3083
3084 2007-11-15  Bruno Haible  <bruno@clisp.org>
3085
3086         [BZ #5346]
3087         * intl/dcigettext.c (struct known_translation_t): Turn msgid into a
3088         union.
3089         (transcmp): Use the appropriate part of s1->msgid and s2->msgid.
3090         (DCIGETTEXT): Change the allocation of the 'search' variable so that
3091         it needs only fixed stack space. Delay the initialization of
3092         msgid_len until it is needed.
3093
3094 2007-11-15  Andreas Jaeger  <aj@suse.de>
3095
3096         * sysdeps/ieee754/dbl-64/sincos.tbl: Fix size of union.
3097         Reported by Christoph Quirin Lauter <christoph.lauter@ens-lyon.fr>.
3098
3099 2007-11-15  Ulrich Drepper  <drepper@redhat.com>
3100
3101         * po/ko.po: Update from translation team.
3102
3103 2007-11-14  Ulrich Drepper  <drepper@redhat.com>
3104
3105         * sysdeps/unix/sysv/linux/check_native.c (__check_native): Simplify
3106         significantly.  The device type is also part of the ifinfomsg data.
3107
3108         * po/sv.po: Update from translation team.
3109         * po/nl.po: Likewise.
3110
3111         * nscd/cache.c (prune_cache): If cache is empty, instruct caller
3112         to wake up in 24 hours.
3113
3114         * nscd/gai.c (__ioctl): Define.  Include check_native.c.
3115
3116 2007-11-13  Ulrich Drepper  <drepper@redhat.com>
3117
3118         * po/cs.po: Update from translation team.
3119         * po/pl.po: Likewise.
3120
3121         * include/ifaddrs.h: Remove in6ai_temporary.
3122         (struct in6addrinfo): Add index element.
3123         Declare __check_native.
3124         * inet/Makefile (aux): Add check_native.
3125         * sysdeps/unix/sysv/linux/check_native.c: New file.
3126         * sysdeps/unix/sysv/linux/check_pf.c: No need to recognize
3127         IFA_F_TEMPORARY.  Pass back ifa_index.
3128         * sysdeps/posix/getaddrinfo.c: Remove netlink compatibility code.
3129         (rfc3484_sort): Add new parameter.  Implement rule 7 correctly:
3130         call __check_native if necessary.
3131         (getaddrinfo): Fill in index field.  Use qsort_r instead of qsort
3132         to sort addresses.  Pass information about the results.
3133         * posix/tst-rfc3484.c: Adjust for addition of index field and change
3134         of rfc3484_sort interface.
3135         * posix/tst-rfc3484-2.c: Likewise.
3136
3137         * stdlib/stdlib.h: Define __compar_d_fn_t.  Declare qsort_r.
3138         * include/stdlib.h: Add hidden_proto for qsort_t and adjust protoype
3139         for _quicksort.
3140         * stdlib/msort.c (qsort): Now a wrapper around qsort_r.
3141         (qsort_r): Renamed from qsort.  Take additional parameter and pass it
3142         on as third parameter to compare function and _quicksort.
3143         * stdlib/qsort.c (_quicksort): Take additional parameter and pass on
3144         to the compare function.
3145         * stdlib/Versions [libc] (GLIBC_2.8): Add qsort_r.
3146         * Versions.def: Add GLIBC_2.8 for libc.
3147
3148         * posix/tst-rfc3484.c: Adjust for addition of prefixlen field.
3149         * posix/tst-rfc3484-2.c: Likewise.
3150
3151         * include/kernel-features.h: Moved to...
3152         * sysdeps/mach/hurd/kernel-features.h: ...here.
3153
3154 2007-09-13  H.J. Lu  <hongjiu.lu@intel.com>
3155
3156         * sysdeps/i386/i586/memcpy_chk.S: New file.
3157         * sysdeps/i386/i586/mempcpy_chk.S: Likewise.
3158         * sysdeps/i386/i586/memset_chk.S: Likewise.
3159
3160 2007-11-12  Ulrich Drepper  <drepper@redhat.com>
3161
3162         * include/ifaddrs.c (struct in6addrinfo): Add prefixlen field.
3163         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Always return
3164         list of interfaces.  Also store prefix length.
3165         * sysdeps/posix/getaddrinfo.c (sort_result): Add prefixlen element.
3166         (rfc3484_sort): In rule 9, for IPv4 addresses count only matching
3167         prefix if source and destination address are in the same subnet.
3168         (getaddrinfo): Always call __check_pf.  Fill in prefixlen field.
3169         Always look for matching record in in6ai list.
3170         Correct source_addr_len value for IPv6->IPv4 converted records.
3171
3172 2007-11-11  Roland McGrath  <roland@frob.com>
3173
3174         * include/kernel-features.h: New file.
3175
3176 2007-11-10  Ulrich Drepper  <drepper@redhat.com>
3177
3178         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Avoid unnecessary
3179         complications for 64-bit platforms.
3180
3181         * sysdeps/unix/sysv/linux/open64.c: Move __open64_2 implementation to..
3182         * sysdeps/unix/sysv/linux/open64_2.c: ...here.  New file.
3183         * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines): Add
3184         open64_2.
3185         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Add open and creat
3186         entries.
3187         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
3188         * sysdeps/wordsize-64/alphasort.c: New file.
3189         * sysdeps/wordsize-64/alphasort64.c: New file.
3190         * sysdeps/wordsize-64/fseeko.c: New file.
3191         * sysdeps/wordsize-64/fseeko64.c: New file.
3192         * sysdeps/wordsize-64/ftello.c: New file.
3193         * sysdeps/wordsize-64/ftello64.c: New file.
3194         * sysdeps/wordsize-64/ftw.c: New file.
3195         * sysdeps/wordsize-64/ftw64.c: New file.
3196         * sysdeps/wordsize-64/iofgetpos.c: New file.
3197         * sysdeps/wordsize-64/iofgetpos64.c: New file.
3198         * sysdeps/wordsize-64/iofopen.c: New file.
3199         * sysdeps/wordsize-64/iofopen64.c: New file.
3200         * sysdeps/wordsize-64/iofsetpos.c: New file.
3201         * sysdeps/wordsize-64/iofsetpos64.c: New file.
3202         * sysdeps/wordsize-64/lockf.c: New file.
3203         * sysdeps/wordsize-64/lockf64.c: New file.
3204         * sysdeps/wordsize-64/mkostemp.c: New file.
3205         * sysdeps/wordsize-64/mkostemp64.c: New file.
3206         * sysdeps/wordsize-64/mkstemp.c: New file.
3207         * sysdeps/wordsize-64/mkstemp64.c: New file.
3208         * sysdeps/wordsize-64/scandir.c: New file.
3209         * sysdeps/wordsize-64/scandir64.c: New file.
3210         * sysdeps/wordsize-64/tmpfile.c: New file.
3211         * sysdeps/wordsize-64/tmpfile64.c: New file.
3212         * sysdeps/wordsize-64/versionsort.c: New file.
3213         * sysdeps/wordsize-64/versionsort64.c: New file.
3214         * sysdeps/unix/sysv/linux/wordsize-64/aio_read.c: New file.
3215         * sysdeps/unix/sysv/linux/wordsize-64/aio_read64.c: New file.
3216         * sysdeps/unix/sysv/linux/wordsize-64/aio_write.c: New file.
3217         * sysdeps/unix/sysv/linux/wordsize-64/aio_write64.c: New file.
3218         * sysdeps/unix/sysv/linux/wordsize-64/creat64.c: New file.
3219         * sysdeps/unix/sysv/linux/wordsize-64/getdirentries.c: New file.
3220         * sysdeps/unix/sysv/linux/wordsize-64/getdirentries64.c: New file.
3221         * sysdeps/unix/sysv/linux/wordsize-64/lio_listio.c: New file.
3222         * sysdeps/unix/sysv/linux/wordsize-64/lio_listio64.c: New file.
3223         * sysdeps/unix/sysv/linux/wordsize-64/open64.c: New file.
3224         * sysdeps/unix/sysv/linux/wordsize-64/openat.c: New file.
3225         * sysdeps/unix/sysv/linux/wordsize-64/openat64.c: New file.
3226
3227         * crypt/sha256-crypt.c: Fix a comment.
3228         * crypt/sha512-crypt.c: Likewise.
3229
3230 2007-11-07  H.J. Lu  <hongjiu.lu@intel.com>
3231
3232         * sysdeps/x86_64/memset.S: Add sfence after movnti.
3233
3234 2007-11-07  Ulrich Drepper  <drepper@redhat.com>
3235
3236         [BZ #5277]
3237         * iconv/loop.c (STANDARD_TO_LOOP_ERR_HANDLER): If conversion failed
3238         because output buffer is too small break, don't loop.
3239         * iconvdata/Makefile (tests): Add bug-iconv6.
3240         * iconvdata/bug-iconv6.c: New file.
3241
3242 2007-11-06  Ulrich Drepper  <drepper@redhat.com>
3243
3244         * stdio-common/vfprintf.c (vfprintf): Compute necessary buffer size
3245         with size_t type.
3246         * stdio-common/printf_fp.c (__print_fp): Change chars_needed type to
3247         size_t.  Add casts where needed.
3248
3249         * nscd/selinux.c (nscd_request_avc_has_perm): When compiled with
3250         old headers, don't call avc_has_perm if we don't have the
3251         permission information.
3252
3253 2007-11-05  Daniel Jacobowitz  <dan@codesourcery.com>
3254
3255         * elf/rtld.c (dl_main): Use the page size to find the map start.
3256
3257 2007-11-05  Ulrich Drepper  <drepper@redhat.com>
3258
3259         * time/tzfile.c (__tzfile_read): Fix check for version 0 data files.
3260         Patch by Szymon Siwek <sls@poczta.wp.pl>.
3261
3262         * nscd/aicache.c (addhstaiX): Check herrno after IPv4 lookup only
3263         when the lookup call failed.
3264
3265         * nscd/nscd.h (struct database_dyn): Rename prunelock to prune_lock.
3266         Add prune_cond and wakeup_time.
3267         (CACHE_PRUNE_INTERNAL): Define.
3268         Update declarations of prune_cache and setup_thread.
3269         * nscd/connections.c (dbs): Update initializers.
3270         (CACHE_PRUNE_INTERNAL): Moved to nscd.h.
3271         (nscd_init): Default number of threads is now 4.
3272         (invalidate_cache): Take lock before calling prune_cache.
3273         (handle_request): If SELinux forbids the request, say so.
3274         (readylist_cond): Use static initializer.
3275         (nscd_run_prune): New function.  Used only by pruning threads.
3276         (nscd_run_worder): Renamed from nscd_run.  Remove support for pruning
3277         here.
3278         (fd_ready): Update nscd_run reference.
3279         (start_threads): No need to initialize readylist_cond.
3280         Start pruning threads separately.
3281         * nscd/nscd_setup_thread.c: Change return value type to int and always
3282         return 0.
3283         * sysdeps/unix/sysv/linux/nscd_setup_thread.c: Change return value type
3284         to int and return nonzero value if we can use the TID address hack.
3285         * nscd/cache.c (cache_add): If next wakeup time of cleanup thread for
3286         the database is later than the new entry's timeout, update the
3287         wakeup time and wake the cleanup thread.
3288         (prune_cache): Return seconds the next entry in the database is still
3289         valid.  Remove locking for pruning here.
3290         * nscd/nscd.conf: Document default number of threads.
3291
3292 2007-10-31  Ulrich Drepper  <drepper@redhat.com>
3293
3294         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Make sure
3295         stack is properly aligned for the target function.
3296         Correct unwind info.
3297
3298         * elf/rtld.c (dl_main): Initialize stack and pointer guard early
3299         when using auditing libraries.
3300
3301 2007-10-29  Ulrich Drepper  <drepper@redhat.com>
3302
3303         * resolv/Versions [libresolv] (GLIBC_PRIVATE): Add
3304         _nss_dns_getnetbyaddr2_r.
3305         * resolv/nss_dns/dns-host.c: Define _nss_dns_getnetbyaddr2_r.  Pass
3306         extra parameter to getanswer_r.
3307         (_nss_dns_getnetbyaddr_r): Now a wrapper around
3308         _nss_dns_getnetbyaddr2_r.
3309
3310         * nscd/Makefile (nscd-modules): Replace gethstbynm2_r with
3311         gethstbynm3_r.
3312         * nscd/gethstbynm2_r.c: Remove.
3313         * nscd/gethstbynm3_r.c: New file.
3314         * nscd/aicache.c (addhstaiX): Use __gethostbyaddr2_r instead of
3315         __gethostbyaddr_r.
3316         * nscd/gethstbyad_r.c: Generate __gethostbyaddr2_r function.  Define
3317         __gethostbyaddr_r compatibility wrapper.
3318         * nscd/hstcache.c (cache_addhst): Add ttl parameter.  Use it when
3319         determining timeout of entry.
3320         (lookup): Take new parameter and pass it to __gethostbyname3_r and
3321         __gethostbyaddr2_r.
3322         (addhstbyX): Pass reference to variable for TTL to lookup and
3323         cache_addhst.
3324         * nss/Versions [glibc] (GLIBC_PRIVATE): Export __nss_passwd_lookup2,
3325         __nss_group_lookup2, __nss_hosts_lookup2, __nss_services_lookup2,
3326         and __nss_next2.  Remove __nss_services_lookup.
3327         * nss/XXX-lookup.c: Name function now *_lookup2.  Add new parameter.
3328         Add compat wrapper.
3329         * nss/getXXbyYY_r.c: Changes to call new *_lookup2 functions and
3330         __nss_next2.
3331         * nss/getXXent_r.c: Likewise.
3332         * nss/getnssent_r.c: Likewise.
3333         * nss/nsswitch.c (__nss_lookup): Add new parameter.  If first function
3334         does not exist in module, try the optional second name.
3335         (__nss_next2): New function.
3336         (__nss_next): Now wrapper around __nss_next2.
3337         * nss/nsswitch.h: Adjust __nss_lookup prototype.
3338         Declare __nss_next2.
3339         Adjust definition of db_lookup_function type.
3340         * nss/service-lookup.c: Define NO_COMPAT.
3341         * include/netdb.h: Declare __gethostbyaddr2_r and __gethostbyname3_r.
3342         * inet/ether_hton.c: Use __nss_next2 instead of __nss_next.
3343         * inet/ether_ntoh.c: Likewise.
3344         * sunrpc/netname.c: Likewise.
3345         * sunrpc/publickey.c: Likewise.
3346         * inet/getnetgrent.c: Likewise.  Adjust calls to __nss_lookup.
3347         * inet/gethstbyad_r.c (DB_LOOKUP_FCT): Change to __nss_hosts_lookup2.
3348         * inet/gethstbynm2_r.c (DB_LOOKUP_FCT): Likewise.
3349         * inet/gethstbynm_r.c (DB_LOOKUP_FCT): Likewise.
3350         * inet/gethstent_r.c (DB_LOOKUP_FCT): Likewise.
3351
3352         * nscd/aicache.c (addhstaiX): Fix default TTL handling.
3353
3354         * inet/getnetgrent_r.c (setup): Encrypt static pointer.
3355
3356 2007-10-28  Ulrich Drepper  <drepper@redhat.com>
3357
3358         [BZ #5204]
3359         * crypt/sha256c-test.c: Define TIMEOUT to 6 for ancient hardware.
3360         * crypt/sha512c-test.c: Likewise.
3361
3362         [BZ #5225]
3363         * stdio-common/vfscanf.c (_IO_vfwscanf): Don't misuse wp pointer
3364         to keep track of end of %[ format string element.
3365         * stdio-common/Makefile (tests): Add bug20.
3366         * stdio-common/bug20.c: New file.
3367
3368         [BZ #5222]
3369         * elf/dl-load.c (_dl_rtld_di_serinfo): Correct handling of short
3370         path elements in counting mode.
3371
3372 2007-10-27  Andreas Jaeger  <aj@suse.de>
3373
3374         [BZ #5040]
3375         * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLRDHUP): Add value.
3376
3377         [BZ #3112]
3378         * sysdeps/ia64/backtrace.c (init): Free shared library if incorrect.
3379         (__cleanup): Free shared library when exiting.
3380         * sysdeps/i386/backtrace.c (init): Free shared library if incorrect.
3381         (__cleanup): Free shared library when exiting.
3382
3383 2006-04-14  H.J. Lu  <hongjiu.lu@intel.com>
3384
3385         [BZ #2549]
3386         * math/libm-test.inc (check_float_internal): Support
3387         denormalized return.
3388
3389 2007-10-23  Andreas Jaeger  <aj@suse.de>
3390
3391         [BZ #5208]
3392         * sysdeps/unix/sysv/linux/readahead.c (__readahead): Use
3393         __LONG_LONG_PAIR to handle little endian byte order.
3394         Suggested by abhishekrai@google.com
3395
3396 2007-10-27  Ulrich Drepper  <drepper@redhat.com>
3397
3398         * malloc/arena.c [!NO_THREADS]: Use ATFORK_MEM if defined.
3399
3400 2007-10-26  Ulrich Drepper  <drepper@redhat.com>
3401
3402         * nscd/cache.c (prune_cache): Move test for modified file outside
3403         of locking.
3404
3405 2007-10-21  Andreas Jaeger  <aj@suse.de>
3406
3407         * manual/texinfo.tex: Update to latest version.
3408
3409         * manual/sysinfo.texi (System Parameters): Fix Formatting.
3410
3411         * manual/arith.texi (Status bit operations): Fix formatting.
3412
3413         * manual/errno.texi (Error Messages): Fix formatting.
3414
3415         * manual/sysinfo.texi (System Parameters): Fix formatting.
3416
3417         * manual/libc.texinfo: Update VERSION and UPDATED.
3418
3419 2007-10-19  Roland McGrath  <roland@redhat.com>
3420
3421         * elf/Makefile ($(objpfx)ld.so): Use $(AWK).
3422
3423 2007-10-06  David S. Miller  <davem@davemloft.net>
3424
3425         * configure.in: Add sparcv9v2 and sparc64v2.
3426         * scripts/config.sub: Likewise.
3427         * configure: Regenerate.
3428         * elf/elf.h (HWCAP_SPARC_N2): New.
3429         * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Bump to 8.
3430         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add 'v9v2'.
3431         (HWCAP_IMPORTANT): Add HWCAP_SPARC_N2.
3432         * sysdeps/sparc/sparc32/sparcv9/sparcv9v2/memcpy.S: New file.
3433         * sysdeps/sparc/sparc32/sparcv9/sparcv9v2/memset.S: New file.
3434         * sysdeps/sparc/sparc64/sparcv9v2/memcpy.S: New file.
3435         * sysdeps/sparc/sparc64/sparcv9v2/memset.S: New file.
3436
3437 2007-10-18  Ulrich Drepper  <drepper@redhat.com>
3438
3439         * sunrpc/clnt_udp.c (clntudp_call): Don't block in recvfrom call
3440         even if the poll result indicates there is data to read.
3441         Patch by Jeff Moyer <jmoyer@redhat.com>.
3442
3443 2007-10-18  Roland McGrath  <roland@redhat.com>
3444
3445         * elf/elf.h (NT_PPC_VMX): New macro.
3446
3447 2007-10-17  Ulrich Drepper  <drepper@redhat.com>
3448
3449         * version.h (VERSION): Set to 2.7.90.
3450
3451 2007-10-17  Jakub Jelinek  <jakub@redhat.com>
3452
3453         * sysdeps/x86_64/memset.S (bzero): Renamed to __bzero.  Add
3454         weak_alias.
3455
3456 2007-10-17  Roland McGrath  <roland@frob.com>
3457
3458         * sysdeps/mach/hurd/bits/fcntl.h [__USE_GNU__] (F_DUPFD_CLOEXEC): New.
3459         * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Implement it.
3460
3461 2007-10-17  Ulrich Drepper  <drepper@redhat.com>
3462
3463         * version.h (VERSION): Bump to 2.7.
3464         * include/features.h (__GLIBC_MINOR__): Bump to 7.
3465
3466         [BZ #5186]
3467         * time/tzset.c (__tz_convert): Don't force testing for a change of
3468         TZ if not called from localtime.  But then also see whether the
3469         file changed, in case __use_tzfile is set.
3470
3471         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define F_DUPFD_CLOEXEC.
3472         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
3473         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
3474         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
3475         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
3476         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
3477         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h:  Likewise.
3478         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
3479
3480 2007-10-17  Jakub Jelinek  <jakub@redhat.com>
3481
3482         * sysdeps/posix/getaddrinfo.c (getaddrinfo): When sorting addresses
3483         and admin selects to be able to replace the gai.conf file, lock
3484         data structures around the qsort call.
3485
3486 2007-10-17  Ulrich Drepper  <drepper@redhat.com>
3487
3488         * sysdeps/x86_64/cacheinfo.c: Comment out code added in support of
3489         new memset.
3490         * sysdeps/x86_64/memset.S: Revert to old version for now.  The cost is
3491         too high for the improvements.  Implement bzero unconditionally for
3492         use in libc.
3493
3494 2007-10-17  Ulrich Drepper  <drepper@redhat.com>
3495             Jakub Jelinek  <jakub@redhat.com>
3496
3497         * time/tzfile.c (__tzfile_read): Read POSIX TZ string if available
3498         even when time_t is 32-bit.
3499         (__tzfile_compute): Override POSIX TZ string STD/DST zone names if
3500         timezone data read by __tzfile_default.  Ensure __tzname[0] is
3501         always set after the search.
3502
3503 2007-10-16  Ulrich Drepper  <drepper@redhat.com>
3504
3505         * time/tzfile.c (__tzfile_read): Help the compiler recognize
3506         unreachable code on 32-bit machines.
3507
3508 2007-10-16  Jakub Jelinek  <jakub@redhat.com>
3509
3510         [BZ #5184]
3511         * time/strftime_l.c: Include stdbool.h.
3512         (my_strftime): New wrapper, old function renamed to...
3513         (__strftime_internal): ... new function.  Add tzset_called
3514         argument, pass it down to recursive calls, don't call tzset ()
3515         if already true, set to true after call to tzset ().
3516
3517 2007-10-16  Ulrich Drepper  <drepper@redhat.com>
3518
3519         * time/tzfile.c (__tzfile_read): Take extra memory requested by caller
3520         into account when copying TZ string.
3521
3522 2007-10-16  Jakub Jelinek  <jakub@redhat.com>
3523
3524         * time/tzfile.c (__tzfile_compute): For use_last case set i to
3525         num_transition rather than num_transitions - 1.
3526
3527 2007-10-16  Jakub Jelinek  <jakub@redhat.com>
3528
3529         * sysdeps/x86_64/memset.S (memset): Fix sse2_nt_move
3530         PIC indirect jump.
3531
3532         * sysdeps/x86_64/memset.S: Jump from bzero to memset using
3533         a local label rather than HIDDEN_JUMPTARGET.
3534
3535 2007-10-15  Ulrich Drepper  <drepper@redhat.com>
3536
3537         * sysdeps/x86_64/cacheinfo.c (__x86_64_shared_cache_size): Define.
3538         (init_cacheinfo): Initialize it.
3539         * sysdeps/x86_64/memset.S: Use __x86_64_shared_cache_size.
3540         Always define bzero.
3541         Remove non-glibc code.
3542         * sysdeps/x86_64/bzero.S: Make an empty file.
3543
3544 2007-10-15  H.J. Lu  <hongjiu.lu@intel.com>
3545
3546         * sysdeps/x86_64/cacheinfo.c
3547         (__x86_64_preferred_memory_instruction): New.
3548         (init_cacheinfo): Initialize __x86_64_preferred_memory_instruction.
3549
3550         * sysdeps/x86_64/memset.S: Rewrite.
3551
3552 2007-10-15  Roland McGrath  <roland@redhat.com>
3553
3554         * po/libc.pot: Regenerated.
3555
3556 2007-10-15  Ulrich Drepper  <drepper@redhat.com>
3557
3558         * nss/getXXbyYY_r.c (REENTRANT_NAME): Mangle startp and start_fct
3559         pointers.
3560
3561         [BZ #3425]
3562         * resolv/nss_dns/dns-host.c (getanswer_r): Fail with
3563         NSS_STATUS_NOTFOUND if the server replied with only a CNAME and no
3564         address record to T_A/T_AAAA requests.
3565
3566 2007-10-14  Ulrich Drepper  <drepper@redhat.com>
3567
3568         * posix/glob.c: Reimplement link_exists_p to use fstatat64.
3569
3570         * posix/glob.c: Add some branch prediction throughout.
3571
3572         * nscd/nscd_getgr_r.c (nscd_getgr_r): Store result of successful
3573         read from nscd.
3574
3575         * sysdeps/posix/getaddrinfo.c (struct sort_result): Add
3576         service_order.
3577         (rfc3484_sort): Make sure that even if qsort doesn't support
3578         stable sorting out sorting here is stable by comparing service_order.
3579         (getaddrinfo): Initialize service_order.
3580         * posix/tst-rfc3484.c (do_test): Adjust for addition of
3581         service_order field to sorting structure.
3582         * posix/tst-rfc3484-2.c (do_test): Likewise.
3583
3584         * include/time.h: Declare __tzset_parse_tz and __tzset_compute.
3585         * time/tzset.c (tzset_internal): Break TZ string parsing out into
3586         __tzset_parse_tz and updating of daylight, timezone, tzname into
3587         update_vars.
3588         (__tz_compute): Renamed from tz_compute.  Take additional parameters.
3589         (__tz_convert): Updating of tm_isdst, tm_zone, and tm_gmtoff now
3590         happens in __tz_compute.
3591         * time/tzfile.c (__tzfile_read): Also read TZ string.
3592         (find_transition): Fold into __tzfile_compute.
3593         (__tzfile_compute): For times beyond the last transition try to
3594         use the TZ string.
3595         * timezone/tst-timezone.c: Information in daylight and tzname does
3596         change for Asia/Tokyo timezone with more concrete information.
3597         Remove the test.
3598
3599         * include/stdio.h: Add libc_hidden_proto for ftello.
3600         * libio/ftello.c: Add libc_hidden_def.
3601
3602         [BZ #1140]
3603         * time/tzfile.c (__tzfile_compute): Compute tzname[] values based
3604         on the specified time and not the last entries in the file.  Move
3605         code to determine tzname[] to...
3606         (find_transition): ...here.  Add ugly guess for times before the
3607         first transition.
3608
3609 2007-10-13  Ulrich Drepper  <drepper@redhat.com>
3610
3611         [BZ #3195]
3612         * nscd/nscd_getai.c (__nscd_getai): Set errno to 0 in case we found
3613         no entry.
3614         * nscd/nscd_getgr.c (nscd_getgr_r): Likewise.
3615         * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
3616         * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
3617         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
3618
3619         * nscd/nscd_getgr_r.c (nscd_getgr_r): Optimize a bit: use simpler
3620         read mechanism when there are no group members and avoid no-op
3621         read syscall in this case.
3622
3623         [BZ #3242]
3624         * nscd/nscd_helper.c (wait_on_socket): Take timeout as parameter.
3625         (__readall): If reading failed due to EAGAIN error wait a bit
3626         and possibly try again.
3627         (__readvall): Likewise.
3628
3629 2007-10-13  Bruno Haible  <bruno@clisp.org>
3630
3631         * intl/dcigettext.c (_nl_find_msg): Unlock the conversions_lock
3632         when we cannot recode the message.
3633
3634 2007-10-13  Ulrich Drepper  <drepper@redhat.com>
3635
3636         [BZ #4359]
3637         * libio/__freading.c (__freading): Don't return true for
3638         write-only streams.  For read/write streams, check whether we
3639         performed a read operation already.
3640         * libio/Makefile (tests): Add tst-ext2.
3641         * libio/tst-ext2.c: New file.
3642
3643 2007-10-12  Ulrich Drepper  <drepper@redhat.com>
3644
3645         * locale/programs/repertoire.c (repertoire_read): Always free
3646         memory for repertoire file name [Coverity CID 270].
3647
3648         * elf/cache.c (save_aux_cache): Free memory allocated for
3649         temporary file name [Coverity CID 267].
3650
3651 2007-10-12  Jakub Jelinek  <jakub@redhat.com>
3652
3653         * misc/Makefile (headers): Add bits/error.h.
3654
3655 2007-10-12  Ulrich Drepper  <drepper@redhat.com>
3656
3657         * posix/fnmatch_loop.c: Take rule index returned as part of
3658         findidx return value into account when accessing weights.
3659         * posix/regcomp.c: Likewise.
3660         * posix/regexec.c: Likewise.
3661
3662         * locale/programs/ld-collate.c (collate_read): Optimize a bit.
3663         (skip_to): Fix problems with parameter of elifdef/elifndef.
3664
3665 2007-10-11  Ulrich Drepper  <drepper@redhat.com>
3666
3667         * iconv/gconv_simple.c: Add some branch prediction.
3668
3669 2007-10-12  Jakub Jelinek  <jakub@redhat.com>
3670
3671         * locale/programs/ld-collate.c (collate_read): If ignore_content
3672         and nowtok is tok_define, eat any tok_eol tokens.
3673
3674 2007-10-11  Jakub Jelinek  <jakub@redhat.com>
3675
3676         * sysdeps/gnu/netinet/tcp.h: Include sys/socket.h if __USE_MISC.
3677         (struct tcp_md5sig): Change tcpm_addr type to struct sockaddr_storage.
3678
3679         * inet/netinet/in.h: Don't include bits/socket.h.
3680         * sysdeps/unix/sysv/linux/bits/socket.h: Only check _SYS_SOCKET_H
3681         macro.
3682         * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Likewise.
3683
3684 2007-10-10  Ulrich Drepper  <drepper@redhat.com>
3685
3686         * locale/programs/locfile-token.h: Remove tok_elif, add tok_elifdef
3687         and tok_elifndef.
3688         * locale/programs/locfile-kw.gperf: Likewise.
3689         * locale/programs/ld-collate.c: Implement primitive preprocessor.
3690
3691 2007-10-10  Jakub Jelinek  <jakub@redhat.com>
3692
3693         * stdio-common/printf-parse.h: Include string.h and wchar.h.
3694         (__find_specwc): Change into __extern_always_inline function.
3695         (__find_specmb): Likewise.  Remove ps argument.  Use __strchrnul.
3696         (__parse_one_specmb): Remove ps argument.
3697         * stdio-common/vfprintf.c (vfprintf): Remove mbstate variable.
3698         Adjust __find_specmb and __parse_one_specmb callers.
3699         * stdio-common/printf-prs.c (parse_printf_format): Likewise.
3700         * stdio-common/printf-parsemb.c (__find_specwc, __find_specmb):
3701         Removed.
3702         (__parse_one_specmb): Remove ps argument, adjust __find_specmb
3703         caller.
3704
3705 2007-10-09  Ulrich Drepper  <drepper@redhat.com>
3706
3707         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Work around problem
3708         with some Pentium Ds.
3709
3710 2007-10-08  Ulrich Drepper  <drepper@redhat.com>
3711
3712         * sysdeps/unix/sysv/linux/eventfd_read.c (eventfd_read): Use
3713         __read not read.
3714         * sysdeps/unix/sysv/linux/eventfd_write.c (eventfd_write): Use
3715         __write not write.
3716
3717 2007-10-07  Ulrich Drepper  <drepper@redhat.com>
3718
3719         [BZ #181]
3720         * locale/C-time.c: Set week_1stday data to 19971201.
3721         * locale/programs/ld-time.c (time_finish): Default for
3722         first_workday is Monday.
3723
3724         [BZ #2633]
3725         * wcsmbs/wchar.h: Move many C99 functions into std namespace.
3726
3727         [BZ #5103]
3728         * posix/glob.c (glob): Recognize patterns starting \/.
3729         * posix/tst-gnuglob.c (find_file): Handle absolute path names.
3730         (main): Add test for pattern starting \/.
3731
3732         * misc/error.h: Use __const instead of const.
3733         * misc/bits/error.h: Likewise.
3734
3735 2007-10-07  Andreas Jaeger  <aj@suse.de>
3736
3737         * include/bits/error.h: New file.
3738
3739         * misc/bits/error.h (error_at_line): Fix prototype.
3740
3741 2007-10-06  Ulrich Drepper  <drepper@redhat.com>
3742
3743         [BZ #3924]
3744         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix a few
3745         more little bugs in creating the stack frame when pltexit has to
3746         be called.
3747
3748         * nscd/nscd_helper.c (__nscd_cache_search): Prevent endless loops.
3749         * nscd/connections.c (verify_persistent_db): Recognize circular lists.
3750
3751         [BZ #4407]
3752         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Fix *signgamp for -0.0.
3753         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
3754         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
3755         * math/libm-test.inc: Add test for this case.
3756
3757         [BZ #5010]
3758         * sunrpc/svc.c (struct svc_callout): Add sc_mapped element.
3759         (svc_register): Initialize sc_mapped.  Set to TRUE if call to
3760         map service succeeded.
3761         (svc_is_mapped): New function.
3762         (svc_unregister): Use it before trying to unmap service.
3763
3764 2007-10-05  Ulrich Drepper  <drepper@redhat.com>
3765
3766         * timezone/zic.c: Update from tzcode2007h.
3767
3768         [BZ #5063]
3769         * timezone/africa: Update from tzdata2007h.
3770         * timezone/antarctica: Likewise.
3771         * timezone/asia: Likewise.
3772         * timezone/australasia: Likewise.
3773         * timezone/europe: Likewise.
3774         * timezone/leapseconds: Likewise.
3775         * timezone/northamerica: Likewise.
3776         * timezone/southamerica: Likewise.
3777         * timzeone/zone.tab: Likewise.
3778
3779         [BZ #5104]
3780         * elf/do-lookup.h (do_lookup_x): Don't ignore STT_COMMON symbols.
3781
3782         [BZ #5113]
3783         * string/bits/string2.h (__strdup): Cast parameters to calloc to
3784         avoid warning with -Wconversion.
3785         (__strndup): Likewise.
3786         Half the patch by Christian Iseli <christian.iseli@licr.org>.
3787
3788         [BZ #5112]
3789         * nscd/connections.c (restart): Don't resync if database is
3790         disabled.  Patch mostly by Brian De Wolf <bldewolf@csupomona.edu>.
3791
3792         * sysdeps/gnu/netinet/tcp.h: Define TCP_MD5SIG, TCP_MD5SIG_MAXKEYLEN,
3793         struct tcp_md5sig.  Extend struct tcp_info according to recent kernels.
3794
3795         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add eventfd,
3796         evetnfd_read, eventfd_write.
3797         * sysdeps/unix/sysv/linux/eventfd.c: New file.
3798         * sysdeps/unix/sysv/linux/eventfd_read.c: New file.
3799         * sysdeps/unix/sysv/linux/eventfd_write.c: New file.
3800         * sysdeps/unix/sysv/linux/sys/eventfd.h: New file.
3801         * sysdeps/unix/sysv/linux/Versions: Export eventfd, eventfd_read,
3802         eventfd_write for GLIBC_2.7.
3803
3804         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add signalfd.
3805         * sysdeps/unix/sysv/linux/signalfd.c: New file.
3806         * sysdeps/unix/sysv/linux/sys/signalfd.h: New file.
3807         * sysdeps/unix/sysv/linux/Versions: Export signalfd for GLIBC_2.7.
3808
3809 2007-10-04  Jakub Jelinek  <jakub@redhat.com>
3810
3811         * stdlib/msort.c: Include stdint.h.
3812         (struct msort_param): New type.
3813         (msort_with_tmp): Use struct msort_param pointer for unchanging
3814         parameters.  Add optimized handling for several common sizes
3815         and indirect sorting mode.
3816         (qsort): Adjust msort_with_tmp callers.  For big S use indirect
3817         sorting.
3818         Suggested by Belazougui Djamel .
3819
3820         * stdlib/Makefile (tests): Add tst-qsort2.
3821         * stdlib/tst-qsort2.c: New test.
3822
3823 2007-10-04  Ulrich Drepper  <drepper@redhat.com>
3824
3825         * login/login_tty.c (login_tty): The Linux kernel can return EBUSY
3826         for dup2 in case another thread races with the current one.  Retry
3827         in this case.
3828
3829         * misc/error.h: Remove support for use outside of libc.  We have to
3830         include <features.h> now.  Include <bits/error.h> if possible.
3831         * misc/bits/error.h: New file.
3832
3833 2007-10-03  Jakub Jelinek  <jakub@redhat.com>
3834
3835         * string/bits/string3.h (memcpy, memmove, mempcpy, memset, bcopy,
3836         bzero, strcpy, stpcpy, strncpy, strcat, strncat): Use
3837         __extern_always_inline functions unconditionally, drop macros.
3838
3839         * misc/sys/cdefs.h (__REDIRECT_LDBL, __REDIRECT_NTH_LDBL): New macros.
3840         * wcsmbs/bits/wchar2.h (__swprintf_alias, __vswprintf_alias): Use
3841         __REDIRECT_NTH_LDBL macro rather than __REDIRECT_NTH.
3842
3843         * misc/sys/cdefs.h (__extern_always_inline): For GCC 4.3+
3844         add __artificial__ attribute.
3845
3846 2007-10-02  Ulrich Drepper  <drepper@redhat.com>
3847
3848         * string/strcoll_l.c (STRCOLL): Correct handling of switching from
3849         backward to forward direction.
3850
3851         * string/strcoll_l.c (STRCOLL): Correct test for alloca use.
3852
3853         [BZ #645]
3854         * locale/programs/ld-collate.c (collate_finish): Compare against last
3855         used section which is known to have rules defined.
3856         (collate_read): After order_start, correctly record order of sections
3857         and queue sections up.
3858
3859 2007-10-01  Ulrich Drepper  <drepper@redhat.com>
3860
3861         [BZ #5071]
3862         * malloc/malloc.c (mremap_chunk): Avoid resizing of new block has
3863         the same number of pages.
3864         Patch by Tomash Brechko <tomash.brechko@gmail.com>.
3865
3866         * locale/programs/ld-collate.c (collate_read): After initial copy
3867         statement, continue in state 0.
3868
3869         * include/stdio_ext.h (__fsetlocking): Define as macro.
3870
3871 2007-09-30  Ulrich Drepper  <drepper@redhat.com>
3872
3873         * locale/programs/ld-collate.c (collate_finish): Compare all bytes
3874         of section order.
3875
3876         * po/pt_BR.po: Fix typo.
3877
3878 2007-09-29  Ulrich Drepper  <drepper@redhat.com>
3879
3880         * iconvdata/Makefile (modules): Add ISO8859-9E.
3881         (distribute): Add iso8859-9e.c.
3882         (gen-8bit-gap-modules): Add iso8859-9e.
3883         * iconvdata/iso8859-9e.c: New file.
3884         * iconvdata/gconv-modules: Add entries for ISO-8859-9E.
3885         * iconvdata/TESTS: Likewise.
3886         * iconvdata/tst-tables.sh: Likewise.
3887
3888         * iconvdata/koi8-r.c (HAS_HOLES): Define to 0.
3889
3890         * locale/iso-639.def: Add several new entries.
3891
3892 2007-09-24  Jakub Jelinek  <jakub@redhat.com>
3893
3894         * sysdeps/generic/ldsodefs.h (struct dl_scope_free_list): Store
3895         void * pointers instead of struct link_map **.
3896         (_dl_scope_free): Change argument type to void *.
3897         * include/link.h (struct link_map): Change type of l_reldeps
3898         to struct link_map_reldeps, move l_reldepsact into that
3899         struct too.
3900         * elf/dl-deps.c: Include atomic.h.
3901         (_dl_map_object_deps): Only change l->l_initfini when it is
3902         fully populated, use _dl_scope_free for freeing it.  Optimize
3903         removal of libs from reldeps by using l_reserved flag, when
3904         some removal is needed, allocate a new list instead of
3905         reallocating and free the old with _dl_scope_free.  Adjust
3906         for l_reldeps and l_reldepsact changes.
3907         * elf/dl-lookup.c (add_dependency): Likewise.  Reorganize to allow
3908         searching in l_initfini and l_reldeps without holding dl_load_lock.
3909         * elf/dl-fini.c (_dl_sort_fini): Adjust for l_reldeps and
3910         l_reldepsact changes.
3911         * elf/dl-close.c (_dl_close_worker): Likewise.
3912         * elf/dl-open.c (_dl_scope_free): Change argument type to void *.
3913
3914 2007-09-28  Ulrich Drepper  <drepper@redhat.com>
3915
3916         * iconvdata/Makefile (modules): Add KOI8-RU.
3917         (distribute): Add koi8-ru.c.
3918         (gen-8bit-gap-modules): Add koi8-ru.
3919         * iconvdata/koi8-ru.c: New file.
3920         * iconvdata/gconv-modules: Add entries for KOI8-RU.
3921         * iconvdata/TESTS: Likewise.
3922         * iconvdata/tst-tables.sh: Likewise.
3923
3924         * iconvdata/koi8-r.c (HAS_HOLES): Define to 0.
3925
3926 2007-09-26  Jakub Jelinek  <jakub@redhat.com>
3927
3928         * misc/sys/cdefs.h (__warndecl, __errordecl): For GCC 4.3+ define
3929         with __warning__/__error__ attributes.
3930         (__warnattr): Define.
3931         * stdlib/bits/stdlib.h (__realpath_chk_warn, __ptsname_r_chk_warn,
3932         __mbstowcs_chk_warn, __wcstombs_chk_warn): New aliases with
3933         __warnattr.
3934         (realpath, ptsname_r, mbstowcs, wcstombs): Call __*_chk_warn instead
3935         of __*_chk if compile time detectable overflow is found.
3936         * libio/bits/stdio2.h (__fgets_chk_warn, __fread_chk_warn,
3937         __fgets_unlocked_chk_warn, __fread_unlocked_chk_warn): New aliases
3938         with __warnattr.
3939         (fgets, fread, fgets_unlocked, fread_unlocked): Call __*_chk_warn
3940         instead of __*_chk if compile time detectable overflow is found.
3941         (__gets_alias): Rename to...
3942         (__gets_warn): ... this.  Add __warnattr.
3943         (gets): Call __gets_warn instead of __gets_alias.
3944         * socket/bits/socket2.h (__recv_chk_warn, __recvfrom_chk_warn): New
3945         aliases with __warnattr.
3946         (recv, recvfrom): Call __*_chk_warn instead of __*_chk if compile
3947         time detectable overflow is found.
3948         * posix/bits/unistd.h (__read_chk_warn, __pread_chk_warn,
3949         __pread64_chk_warn, __readlink_chk_warn, __readlinkat_chk_warn,
3950         __getcwd_chk_warn, __confstr_chk_warn, __getgroups_chk_warn,
3951         __ttyname_r_chk_warn, __getlogin_r_chk_warn, __gethostname_chk_warn,
3952         __getdomainname_chk_warn): New aliases with __warnattr.
3953         (read, pread, pread64, readlink, readlinkat, getcwd, confstr,
3954         getgroups, ttyname_r, getlogin_r, gethostname, getdomainname): Call
3955         __*_chk_warn instead of __*_chk if compile time detectable overflow
3956         is found.
3957         (__getgroups_chk): Rename argument to __listlen from listlen.
3958         (__getwd_alias): Rename to...
3959         (__getwd_warn): ... this.  Add __warnattr.
3960         (getwd): Call __getwd_warn instead of __getwd_alias.
3961         * wcsmbs/bits/wchar2.h (__wmemcpy_chk_warn, __wmemmove_chk_warn,
3962         __wmempcpy_chk_warn, __wmemset_chk_warn, __wcsncpy_chk_warn,
3963         __wcpncpy_chk_warn, __fgetws_chk_warn, __fgetws_unlocked_chk_warn,
3964         __mbsrtowcs_chk_warn, __wcsrtombs_chk_warn, __mbsnrtowcs_chk_warn,
3965         __wcsnrtombs_chk_warn): New aliases with __warnattr.
3966         (wmemcpy, wmemmove, wmempcpy, wmemset, mbsrtowcs, wcsrtombs,
3967         mbsnrtowcs, wcsnrtombs): Call __*_chk_warn instead of __*_chk if
3968         compile time detectable overflow is found.
3969         (wcsncpy, wcpncpy): Likewise.  For constant __n fix check whether
3970         to use __*_chk or not.
3971         (fgetws, fgetws_unlocked): Divide __bos by sizeof (wchar_t), both
3972         in comparisons which function should be called and in __*_chk*
3973         arguments.  Call __*_chk_warn instead of __*_chk if compile time
3974         detectable overflow is found.
3975         (swprintf, vswprintf): Divide __bos by sizeof (wchar_t) in
3976         __*_chk argument.
3977         * debug/tst-chk1.c (do_test): Add a few more tests.
3978
3979 2007-09-24  Ulrich Drepper  <drepper@redhat.com>
3980
3981         [BZ #5058]
3982         * intl/gettextP.h (struct loaded_domain): Add conversions_lock member.
3983         * intl/loadmsgcat.c (_nl_load_domain): Initialize conversions_lock.
3984         (_nl_unload_domain): Finalize conversions_lock.
3985         * intl/dcigettext.c (_nl_find_msg): Take conversions_lock before
3986         handling table of known conversions.
3987
3988 2007-09-24  Jakub Jelinek  <jakub@redhat.com>
3989
3990         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Use
3991         close_not_cancel_no_status instead of close.
3992
3993 2007-09-13  Aurelien Jarno  <aurelien@aurel32.net>
3994
3995         [BZ #5028]
3996         * posix/regcomp.c (lookup_collation_sequence_value): Check that
3997         nrules != 0 for multibyte chars.
3998
3999 2007-09-23  Ulrich Drepper  <drepper@redhat.com>
4000
4001         * resolv/ns_print.c (ns_sprintrrf): Handle ns_t_a6 and ns_t_opt.
4002         Provide better error message in case the type is unknown.
4003
4004         [BZ #4963]
4005         * wcsmbs/wcsnlen.c: Don't reference before checking the length.
4006         * string/stratcliff.c: Make usable to test wide char functions.
4007         * wcsmbs/wcsatcliff.c: New file.
4008         * wcsmbs/Makefiel (tests): Add wcsatcliff.
4009
4010         [BZ #4972]
4011         * iconvdata/Makefile (modules): Add MAC-CENTRALEUROPE.
4012         (distribute): Add mac-centraleurope.c.
4013         (gen-8bit-gap-modules): Add mac-centraleurope.
4014         * iconvdata/mac-centraleurope.c: New file.
4015         * iconvdata/gconv-modules: Add entries for MAC-CENTRALEUROPE.
4016         * iconvdata/TESTS: Likewise.
4017         * iconvdata/tst-tables.sh: Likewise.
4018
4019         [BZ #5043]
4020         * iconv/iconv_open.c (iconv_open): For large codeset names use malloc.
4021
4022 2007-09-21  Ulrich Drepper  <drepper@redhat.com>
4023
4024         * sysdeps/x86_64/cacheinfo.c (__x86_64_data_cache_size_half): Renamed
4025         from __x86_64_core_cache_size_half.
4026         (init_cacheinfo): Compute shared cache size for AMD processors with
4027         shared L3 correctly.
4028         * sysdeps/x86_64/memcpy.S: Adjust for __x86_64_data_cache_size_half
4029         name change.
4030         Patch in large parts by Evandro Menezes.
4031
4032 2007-09-19  Ulrich Drepper  <drepper@redhat.com>
4033
4034         * elf/dl-lookup.c (add_dependency): Handle failing memory
4035         allocation for dependency list.  Remove unnecessary check.
4036
4037         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid unnecessary
4038         open/close when determining source addresses.
4039
4040         * crypt/Makefile (libcrypt-routines): Add sha256-crypt, sha256,
4041         sha512-crypt, and sha512.
4042         (tests): Add sha256test, sha256c-test, sha512test, and sha512c-test.
4043         (distribute): Add sha256.h and sha512.h.
4044         * crypt/crypt-entry.c (crypt): Recognize the new $5$ and $6$ prefixes
4045         and call the appropriate code.
4046         * crypt/sha256-crypt.c: New file.
4047         * crypt/sha256.c: New file.
4048         * crypt/sha256.h: New file.
4049         * crypt/sha256c-test.c: New file.
4050         * crypt/sha256test.c: New file.
4051         * crypt/sha512-crypt.c: New file.
4052         * crypt/sha512.c: New file.
4053         * crypt/sha512.h: New file.
4054         * crypt/sha512c-test.c: New file.
4055         * crypt/sha512test.c: New file.
4056
4057 2007-09-19  Jakub Jelinek  <jakub@redhat.com>
4058
4059         * misc/bits/syslog.h (syslog): Remove extraneous argument from
4060         the inline, pass __USE_FORTIFY_LEVEL - 1 as second argument to
4061         __syslog_chk.
4062
4063 2007-09-18  Jakub Jelinek  <jakub@redhat.com>
4064
4065         * locale/programs/charmap-dir.c (charmap_aliases): Use %ms instead of
4066         %as in fscanf format strings.
4067
4068         * sysdeps/sparc/sparc32/elf/start.S: Remove cfi_* markup.
4069         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
4070         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__thread_start):
4071         Likewise.
4072         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__thread_start):
4073         Likewise.
4074
4075         * sysdeps/generic/ldsodefs.h (DL_LOOKUP_GSCOPE_LOCK): New definition.
4076         * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Or in
4077         DL_LOOKUP_GSCOPE_LOCK into flags after THREAD_GSCOPE_SET_FLAG ().
4078         * elf/dl-sym.c (do_sym): Likewise.
4079         * include/link.h (struct link_map): Add l_serial field.
4080         * elf/dl-object.c (_dl_new_object): Initialize l_serial.
4081         * elf/dl-lookup.c (add_dependency): Add flags argument.
4082         Remember map->l_serial, if DL_LOOKUP_GSCOPE_LOCK is among
4083         flags, use THREAD_GSCOPE_RESET_FLAG before and
4084         THREAD_GSCOPE_SET_FLAG after
4085         __rtld_lock_lock_recursive (GL(dl_load_lock)) to avoid deadlock.
4086         Don't dereference map until it has been found on some list.
4087         If map->l_serial changed, return -1.
4088
4089 2007-09-17  Jakub Jelinek  <jakub@redhat.com>
4090
4091         * include/stdio.h (__isoc99_fscanf, __isoc99_scanf,
4092         __isoc99_sscanf, __isoc99_vscanf): New prototypes.
4093         (__isoc99_vsscanf, __isoc99_vfscanf): New prototypes, add
4094         libc_hidden_proto.
4095         * include/wchar.h (__isoc99_fwscanf, __isoc99_wscanf,
4096         __isoc99_swscanf, __isoc99_vwscanf): New prototypes.
4097         (__isoc99_vswscanf, __isoc99_vfwscanf): New prototypes,
4098         add libc_hidden_proto.
4099         * libio/stdio.h (fscanf, scanf, sscanf, vfscanf, vscanf,
4100         vsscanf): Redirect to __isoc99_* if strict ISO C99 or POSIX
4101         conformance requested.
4102         * wcsmbs/wchar.h (fwscanf, wscanf, swscanf, vfwscanf, vwscanf,
4103         vswscanf): Redirect to __isoc99_* if strict ISO C99 or POSIX
4104         conformance requested.
4105         * libio/bits/stdio-ldbl.h (fscanf, scanf, sscanf, vfscanf, vscanf,
4106         vsscanf): Redirect to __nldbl___isoc99_* if strict ISO C99 or POSIX
4107         conformance requested.
4108         * wcsmbs/bits/wchar-ldbl.h (fwscanf, wscanf, swscanf, vfwscanf,
4109         vwscanf, vswscanf): Redirect to __nldbl___isoc99_* if strict
4110         ISO C99 or POSIX conformance requested.
4111         * stdio-common/Versions (libc): Export __isoc99_scanf@@GLIBC_2.7,
4112         __isoc99_vscanf@@GLIBC_2.7, __isoc99_fscanf@@GLIBC_2.7,
4113         __isoc99_vfscanf@@GLIBC_2.7, __isoc99_sscanf@@GLIBC_2.7
4114         and __isoc99_vsscanf@@GLIBC_2.7.
4115         * stdio-common/Makefile (routines): Add isoc99_scanf, isoc99_vscanf,
4116         isoc99_fscanf, isoc99_vfscanf, isoc99_sscanf and isoc99_vsscanf.
4117         (tests): Add scanf14.
4118         (CFLAGS-vfprintf.c, CFLAGS-fprintf.c, CFLAGS-printf.c,
4119         CFLAGS-vfwprintf.c, CFLAGS-vfscanf.c, CFLAGS-vfwscanf.c,
4120         CFLAGS-fscanf.c, CFLAGS-scanf.c, CFLAGS-isoc99_vfscanf.c,
4121         CFLAGS-isoc99_vscanf.c, CFLAGS-isoc99_fscanf.c,
4122         CFLAGS-isoc99_scanf.c): Add $(exceptions).
4123         (CFLAGS-scanf15.c): Add various -I paths to prevent the compiler
4124         from using internal headers.
4125         * wcsmbs/Versions (libc): Export __isoc99_wscanf@@GLIBC_2.7,
4126         __isoc99_vwscanf@@GLIBC_2.7, __isoc99_fwscanf@@GLIBC_2.7,
4127         __isoc99_vfwscanf@@GLIBC_2.7, __isoc99_swscanf@@GLIBC_2.7
4128         and __isoc99_vswscanf@@GLIBC_2.7.
4129         * wcsmbs/Makefile (routines): Add isoc99_wscanf, isoc99_vwscanf,
4130         isoc99_fwscanf, isoc99_vfwscanf, isoc99_swscanf and isoc99_vswscanf.
4131         (CFLAGS-isoc99_wscanf.c, CFLAGS-isoc99_fwscanf.c,
4132         CFLAGS-isoc99_vwscanf.c, CFLAGS-isoc99_vfwscanf.c): Add $(exceptions).
4133         (CPPFLAGS): Add -D_IO_MTSAFE_IO if needed.
4134         * stdio-common/isoc99_scanf.c: New file.
4135         * stdio-common/isoc99_vsscanf.c: New file.
4136         * stdio-common/isoc99_vscanf.c: New file.
4137         * stdio-common/isoc99_vfscanf.c: New file.
4138         * stdio-common/isoc99_fscanf.c: New file.
4139         * stdio-common/isoc99_sscanf.c: New file.
4140         * wcsmbs/isoc99_fwscanf.c: New file.
4141         * wcsmbs/isoc99_vswscanf.c: New file.
4142         * wcsmbs/isoc99_swscanf.c: New file.
4143         * wcsmbs/isoc99_wscanf.c: New file.
4144         * wcsmbs/isoc99_vwscanf.c: New file.
4145         * wcsmbs/isoc99_vfwscanf.c: New file.
4146         * libio/libio.h (_IO_FLAGS2_SCANF_STD): Define.
4147         * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): Also
4148         clear _IO_FLAGS2_SCANF_STD bit from _flags2.
4149         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Don't
4150         handle %as, %aS and %a[ if _IO_FLAGS2_SCANF_STD is set in _flags2.
4151         * stdio-common/scanf14.c: New test.
4152         * stdio-common/scanf15.c: New test.
4153         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add
4154         isoc99_scanf, isoc99_fscanf, isoc99_sscanf,
4155         isoc99_vscanf, isoc99_vfscanf, isoc99_vsscanf,
4156         isoc99_wscanf, isoc99_fwscanf, isoc99_swscanf,
4157         isoc99_vwscanf, isoc99_vfwscanf and isoc99_vswscanf.
4158         * sysdeps/ieee754/ldbl-opt/Versions (libc): Export
4159         __nldbl___isoc99_scanf@@GLIBC_2.7,
4160         __nldbl___isoc99_fscanf@@GLIBC_2.7,
4161         __nldbl___isoc99_sscanf@@GLIBC_2.7,
4162         __nldbl___isoc99_vscanf@@GLIBC_2.7,
4163         __nldbl___isoc99_vfscanf@@GLIBC_2.7,
4164         __nldbl___isoc99_vsscanf@@GLIBC_2.7,
4165         __nldbl___isoc99_wscanf@@GLIBC_2.7,
4166         __nldbl___isoc99_fwscanf@@GLIBC_2.7,
4167         __nldbl___isoc99_swscanf@@GLIBC_2.7,
4168         __nldbl___isoc99_vwscanf@@GLIBC_2.7,
4169         __nldbl___isoc99_vfwscanf@@GLIBC_2.7
4170         and __nldbl___isoc99_vswscanf@@GLIBC_2.7.
4171         * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__isoc99_scanf,
4172         __isoc99_fscanf, __isoc99_sscanf, __isoc99_vscanf,
4173         __isoc99_vfscanf, __isoc99_vsscanf, __isoc99_wscanf,
4174         __isoc99_fwscanf, __isoc99_swscanf, __isoc99_vwscanf,
4175         __isoc99_vfwscanf, __isoc99_vswscanf): Add NLDBL_DECL.
4176         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
4177         (__nldbl___isoc99_scanf, __nldbl___isoc99_fscanf,
4178         __nldbl___isoc99_sscanf, __nldbl___isoc99_vscanf,
4179         __nldbl___isoc99_vfscanf, __nldbl___isoc99_vsscanf,
4180         __nldbl___isoc99_wscanf, __nldbl___isoc99_fwscanf,
4181         __nldbl___isoc99_swscanf, __nldbl___isoc99_vwscanf,
4182         __nldbl___isoc99_vfwscanf, __nldbl___isoc99_vswscanf): New
4183         functions.
4184         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vfscanf.c: New file.
4185         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_swscanf.c: New file.
4186         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vwscanf.c: New file.
4187         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_wscanf.c: New file.
4188         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_scanf.c: New file.
4189         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_sscanf.c: New file.
4190         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vsscanf.c: New file.
4191         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_fwscanf.c: New file.
4192         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vfwscanf.c: New file.
4193         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vswscanf.c: New file.
4194         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vscanf.c: New file.
4195         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_fscanf.c: New file.
4196
4197         * stdio-common/Makefile (tests): Add scanf13.
4198         (scanf13-ENV): New.
4199         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Handle
4200         m modifier followed by l.
4201         (STRING_ARG): Add width argument.
4202         (_IO_vfscanf_internal) <case L_('c')>: Handle %mc.
4203         <case L_('C')>: Handle %mlc and %mC.
4204         <case L_('s'), case L_('S'), case L_('[')>: Adjust STRING_ARG
4205         arguments.
4206         * stdio-common/scanf13.c: New test.
4207
4208         * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): Clear
4209         the _IO_FLAGS2_FORTIFY bit from _flags2 rather than _flags.
4210
4211 2007-09-18  Ulrich Drepper  <drepper@redhat.com>
4212
4213         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Correct return value
4214         type and __THROW marker of splice, vmsplice, and tee.
4215         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
4216         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
4217         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
4218         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
4219         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
4220         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
4221         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
4222         * sysdeps/unix/sysv/linux/syscalls.list: Mark splice, vmsplice, and tee
4223         as cancellation points.
4224
4225 2003-11-01  Daniel Jacobowitz  <dan@debian.org>
4226
4227         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_discover_osversion): Don't
4228         parse more than three parts of the version number.
4229
4230 2007-09-15  Ulrich Drepper  <drepper@redhat.com>
4231
4232         * stdio-common/vfscanf.c (_IO_vfwscanf): Add support for 'm'
4233         modifier.  Patch by Jakub Jelinek.
4234
4235 2007-08-26  Jakub Jelinek  <jakub@redhat.com>
4236
4237         * sysdeps/unix/sysv/linux/i386/Makefile (sysdep_routines): Add
4238         call_fallocate in misc subdir.
4239         * sysdeps/unix/sysv/linux/i386/call_fallocate.S: New file.
4240         * sysdeps/unix/sysv/linux/i386/syscalls.list (fallocate64): Remove.
4241         * sysdeps/unix/sysv/linux/i386/posix_fallocate.c: Use __call_fallocate
4242         instead of __fallocate64.
4243         * sysdeps/unix/sysv/linux/i386/posix_fallocate64.c: Likewise.
4244
4245 2007-09-15  Jakub Jelinek  <jakub@redhat.com>
4246
4247         * rt/Versions (librt): Export __mq_open_2@@GLIBC_2.7.
4248         * rt/Makefile (headers): Add bits/mqueue2.h.
4249         * rt/mqueue.h: Include bits/mqueue2.h if -D_FORTIFY_SOURCE=2,
4250         optimizing with GCC and __va_arg_pack_len is defined.
4251         * rt/bits/mqueue2.h: New file.
4252         * rt/mq_open.c (__mq_open): Renamed from mq_open.
4253         (mq_open): New strong_alias.
4254         (__mq_open_2): New function.
4255         * sysdeps/unix/sysv/linux/mq_open.c (__mq_open): Renamed from mq_open.
4256         (mq_open): New strong_alias.
4257         (__mq_open_2): New function.
4258         * debug/Versions (libc): Export __fortify_fail@@GLIBC_PRIVATE.
4259         * Versions.def (librt): Add GLIBC_2.7 version.
4260         * debug/fortify_fail.c (__fortify_fail): Add libc_hidden_def.
4261         * include/stdio.h (__fortify_fail): Add libc_hidden_proto.
4262
4263         * misc/sys/cdefs.h (__errordecl, __va_arg_pack_len): Define.
4264         * io/fcntl.h: Include bits/fcntl2.h when __va_arg_pack_len
4265         is defined rather than when not C++.
4266         * io/bits/fcntl2.h (__open_alias, __open64_alias, __openat_alias,
4267         __openat64_alias): New redirects.
4268         (__open_too_many_args, __open_missing_mode, __open64_too_many_args,
4269         __open64_missing_mode, __openat_too_many_args, __openat_missing_mode,
4270         __openat64_too_many_args, __openat64_missing_mode): New __errordecls.
4271         (open, open64, openat, openat64): Rewrite as __extern_always_inline
4272         functions instead of function-like macros.
4273
4274 2007-09-14  H.J. Lu  <hongjiu.lu@intel.com>
4275
4276         * sysdeps/i386/i586/memcpy.S (__memcpy_chk): New definition.
4277         * sysdeps/i386/i586/mempcpy.S (__memcpy_chk): New definition.
4278         * sysdeps/i386/i586/memset.S (__memset_chk): New definition.
4279
4280 2007-09-15  Mike Frysinger  <vapier@gentoo.org>
4281
4282         * inet/inet_net.c: Reset digit to 0 for inputs starting with "0x".
4283         * inet/tst-network.c (tests): Add edge case tests for "0", "0x", "0x0".
4284
4285 2007-09-14  Mike Frysinger  <vapier@gentoo.org>
4286
4287         * inet/tst-network.c: Increment ERRORS for failing tests.
4288
4289 2007-09-07  Jakub Jelinek  <jakub@redhat.com>
4290
4291         * misc/sys/cdefs.h (__va_arg_pack): Define for GCC 4.3+.
4292         * misc/bits/syslog.h (syslog): When __va_arg_pack is defined,
4293         implement as __extern_always_inline function.
4294         (vsyslog): Define as __extern_always_inline function unconditionally.
4295         * libio/bits/stdio2.h (sprintf, snprintf, printf, fprintf):
4296         When __va_arg_pack is defined, implement as __extern_always_inline
4297         functions.
4298         (vsprintf, vsnprintf, vprintf, vfprintf): Define as
4299         __extern_always_inline functions unconditionally.
4300         * libio/bits/stdio.h (vprintf): Ifdef out the inline when
4301         bits/stdio2.h will be included.
4302         * wcsmbs/bits/wchar2.h (__swprintf_alias): New redirect.
4303         (swprintf, wprintf, fwprintf): When __va_arg_pack is defined,
4304         implement as __extern_always_inline functions.
4305         (vswprintf, vwprintf, vfwprintf): Define as
4306         __extern_always_inline functions unconditionally.
4307         * debug/tst-chk1.c (do_test): Enable remaining tests for C++.
4308
4309 2007-09-03  Jakub Jelinek  <jakub@redhat.com>
4310
4311         * misc/sys/cdefs.h (__extern_inline, __extern_always_inline): Only
4312         define in C++ for GCC 4.3+, in C++ always use __gnu_inline__
4313         attribute.
4314         * include/features.h (__USE_EXTERN_INLINES): Define only when
4315         __extern_inline is defined.
4316         * stdlib/stdlib.h: Include bits/stdlib.h when __extern_always_inline
4317         is defined instead of when not __cplusplus.
4318         * misc/sys/syslog.h: Include bits/syslog.h when __extern_always_inline
4319         is defined instead of when not __cplusplus.
4320         * socket/sys/socket.h: Include bits/socket2.h when
4321         __extern_always_inline is defined instead of when not __cplusplus.
4322         * libio/stdio.h: Include bits/stdio2.h when __extern_always_inline
4323         is defined instead of when not __cplusplus.
4324         * posix/unistd.h: Include bits/unistd.h when __extern_always_inline
4325         is defined instead of when not __cplusplus.
4326         * string/string.h: Include bits/string3.h when __extern_always_inline
4327         is defined instead of when not __cplusplus.
4328         * wcsmbs/wchar.h: Include bits/wchar2.h when __extern_always_inline
4329         is defined instead of when not __cplusplus.
4330         (btowc, wctob): Don't guard the inlines with ifndef __cplusplus.
4331         * io/fcntl.h: Don't include bits/fcntl2.h if __extern_always_inline
4332         is not defined.
4333         * misc/bits/syslog-ldbl.h: Guard *_chk stuff with
4334         defined __extern_always_inline instead of !defined __cplusplus.
4335         * libio/bits/stdio-ldbl.h: Likewise.
4336         * wcsmbs/bits/wchar-ldbl.h: Likewise.
4337         * misc/bits/syslog.h (syslog): Don't define for C++.
4338         (vsyslog): Use __extern_always_inline function for C++ instead of
4339         a macro.
4340         * libio/bits/stdio.h (__STDIO_INLINE): Define to __extern_inline
4341         whenever that macro is defined.
4342         (vprintf): Don't provide the inline for C++.
4343         (fread_unlocked, fwrite_unlocked): Don't define the macros for C++.
4344         * libio/bits/stdio2.h (sprintf, snprintf, printf, fprintf): Don't
4345         define the macros for C++.
4346         (vsprintf, vsnprintf, vprintf, vfprintf): Define as
4347         __extern_always_inline functions for C++.
4348         * io/sys/stat.h (stat, lstat, fstat, fstatat, mknod, mknodat,
4349         stat64, lstat64, fstat64, fstatat64): Don't define if not
4350         __USE_EXTERN_INLINES.
4351         * wcsmbs/bits/wchar2.h: Fix #error message.
4352         (swprintf, wprintf, fwprintf): Don't define the macros for C++.
4353         (vswprintf, vwprintf, vfwprintf): Define using
4354         __extern_always_inline functions for C++.
4355         * string/bits/string3.h: Don't #undef macros if __cplusplus.
4356         (memcpy, memmove, mempcpy, memset, bcopy, bzero, strcpy, stpcpy,
4357         strncpy, strcat, strncat): Define as __extern_always_inline
4358         functions instead of macros for C++.
4359         * math/bits/cmathcalls.h: Guard __extern_inline routines with
4360         defined __extern_inline.
4361         * sysdeps/alpha/fpu/bits/mathinline.h (__MATH_INLINE): Define
4362         to __extern_inline whenever that macro is defined.
4363         * sysdeps/ia64/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
4364         * sysdeps/i386/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
4365         * sysdeps/i386/i486/bits/string.h (__STRING_INLINE): Likewise.
4366         * sysdeps/s390/bits/string.h (__STRING_INLINE): Likewise.
4367         * sysdeps/s390/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
4368         * sysdeps/powerpc/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
4369         * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
4370         * sysdeps/sparc/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
4371         * sysdeps/unix/sysv/linux/sys/sysmacros.h (gnu_dev_major,
4372         gnu_dev_minor, gnu_dev_makedev): Remove __extern_inline from
4373         prototypes.  Only provide __extern_inline routines if
4374         __USE_EXTERN_INLINES.
4375         * debug/Makefile: Add rules to build and run tst-{,lfs}chk{4,5,6}
4376         tests.
4377         * debug/tst-chk1.c (do_prepare, do_test): Allow compilation as C++.
4378         For now avoid some *printf tests in C++.  Skip all testing
4379         if __USE_FORTIFY_LEVEL is defined, but __extern_always_inline macro
4380         is not.
4381         * debug/tst-chk4.cc: New file.
4382         * debug/tst-chk5.cc: New file.
4383         * debug/tst-chk6.cc: New file.
4384         * debug/tst-lfschk4.cc: New file.
4385         * debug/tst-lfschk5.cc: New file.
4386         * debug/tst-lfschk6.cc: New file.
4387         * include/wchar.h (__vfwprintf_chk, __vswprintf_chk): Avoid
4388         prototypes in C++.
4389         * include/stdio.h (__sprintf_chk, __snprintf_chk, __vsprintf_chk,
4390         __vsnprintf_chk, __printf_chk, __fprintf_chk, __vprintf_chk,
4391         __vfprintf_chk, __fgets_unlocked_chk, __fgets_chk): Likewise.
4392
4393 2007-09-13  Ulrich Drepper  <drepper@redhat.com>
4394
4395         * po/cs.po: Update from translation team.
4396
4397 2007-09-11  Roland McGrath  <roland@redhat.com>
4398
4399         * posix/Makefile ($(objpfx)getconf.speclist): Make it empty if cross
4400         compiling.
4401
4402 2007-09-07  Samuel Thibault  <samuel.thibault@ens-lyon.org>
4403
4404         * sysdeps/mach/hurd/bits/ioctls.h (TAB3): New macro.
4405
4406 2007-09-05  Roland McGrath  <roland@redhat.com>
4407
4408         * manual/signal.texi (Signaling Another Process): Typo fix.
4409         From Karl Berry <karl@freefriends.org>.
4410
4411 2007-08-29  Ulrich Drepper  <drepper@redhat.com>
4412
4413         * sysdeps/unix/sysv/linux/check_pf.c (IFA_F_OPTIMISTIC): Define to
4414         zero if not defined.
4415         (make_request): Recognize optimistic addresses and treat them like
4416         deprecated addresses.
4417         Reported by Neil Horman <nhorman@redhat.com>.
4418
4419 2007-08-28  Ulrich Drepper  <drepper@redhat.com>
4420
4421         * nscd/connections.c (send_ro_fd): Also transfer file size.
4422         * nscd/nscd_helper.c (get_mapping): If nscd also transfers the
4423         file size don't call fstat.
4424
4425         * nscd/nscd_helper.c (get_mapping): Avoid the pread call, just go
4426         ahead and map the file.  This should always be correct and we can
4427         catch problems later.
4428
4429 2007-08-28  Jakub Jelinek  <jakub@redhat.com>
4430
4431         * libio/bits/stdio2.h (__fread_chk, __fread_unlocked_chk): New
4432         prototypes.
4433         (__fread_alias, __fread_unlocked_alias): New aliases.
4434         (fread): New extern inline.
4435         (fread_unlocked): Likewise.  Undef macro before definition of
4436         the inline function.
4437         * debug/Makefile (routines): Add fread_chk and fread_u_chk.
4438         (CFLAGS-fread_chk.c, CFLAGS-fread_u_chk.c): Add.
4439         * debug/Versions (libc): Export __fread_chk@@GLIBC_2.7
4440         and __fread_unlocked_chk@@GLIBC_2.7.
4441         * debug/fread_chk.c: New file.
4442         * debug/fread_u_chk.c: New file.
4443         * debug/tst-chk1.c (do_test): Add fread and fread_unlocked tests.
4444
4445 2007-08-27  Jakub Jelinek  <jakub@redhat.com>
4446
4447         * sysdeps/unix/sysv/linux/syscalls.list
4448         (personality): Change caller to EXTRA.
4449
4450 2007-08-25  Ulrich Drepper  <drepper@redhat.com>
4451
4452         * iconvdata/iso-2022-kr.c (BODY): Fake initialization of array buf
4453         to keep gcc quiet.
4454         * iconvdata/iso-2022-cn.c (BODY): Likewise.
4455
4456         * locale/programs/ld-collate.c (collate_output): Avoid warning if
4457         NDEBUG is defined.
4458
4459         * Makerules: Use -p option with mkdir.
4460
4461         * sunrpc/key_prot.c (xdr_unixcred): Work around gcc alias warning.
4462         * nis/nis_xdr.c (_xdr_nis_server): Likewise.
4463         (_xdr_directory_obj): Likewise.
4464         (xdr_entry_obj): Likewise.
4465         (xdr_group_obj): Likewise.
4466         (xdr_link_obj): Likewise.
4467         (xdr_table_obj): Likewise.
4468         (_xdr_nis_result): Likewise.
4469         (_xdr_ns_request): Likewise.
4470         (_xdr_ib_request): Likewise.
4471         (_xdr_nis_taglist): Likewise.
4472         (xdr_cback_data): Likewise.
4473         * nis/yp_xdr.c (xdr_ypmaplist): Likewise.
4474         (xdr_ypresp_maplist): Likewise.
4475
4476         * stdio-common/Makefile: Avoid format string warning for tst-sprint.
4477
4478         * posix/regex_internal.h: Prevent some declarations and definitions
4479         to be seen when used in tests.
4480
4481         * posix/tst-rfc3484.c (__idna_to_unicode_lzlz): Initialize *OUTPUT.
4482         * posix/tst-rfc3484-2.c (__idna_to_unicode_lzlz): Likewise.
4483
4484         * debug/Makefile: Disable format checking when compiling tst-chk?.c.
4485
4486         * config.make.in (datarootdir): Add to shut up configure.
4487
4488         * sysdeps/x86_64/cacheinfo.c (handle_amd): Fix computation of
4489         associativity for fully-associative caches.
4490
4491         * sysdeps/x86_64/cacheinfo.c (handle_amd): Handle L3 cache
4492         requests.  Fill on more associativity values for L2.
4493         Patch mostly by Evandro Menezes.
4494
4495 2007-08-24  Ulrich Drepper  <drepper@redhat.com>
4496
4497         * sysdeps/unix/sysv/linux/x86_64/init-first.c
4498         (_libc_vdso_platform_setup): Avoid using exported variable by using
4499         alias.
4500
4501         * resolv/arpa/nameser.h (NS_OPT_DNSSEC_OK): Define.
4502
4503         * sysdeps/unix/sysv/linux/i386/syscalls.list: No reason to mark
4504         fallocate64 as EXTRA.  It is not referenced if the symbol isn't
4505         defined.
4506
4507 2007-08-23  Ulrich Drepper  <drepper@redhat.com>
4508
4509         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Correctly
4510         align stack for call if pltexit is to be used.
4511
4512         [BZ #3924]
4513         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Correctly
4514         align for function call in case pltexit has to be called later.
4515
4516         * sysdeps/i386/dl-trampoline.S (_dl_runtime_resolve): Avoid
4517         implicit atomic operation when storing function pointer.
4518         (_dl_runtime_profile): Likewise.
4519
4520 2007-08-17  Jakub Jelinek  <jakub@redhat.com>
4521
4522         * nis/nis_table.c (nis_list): Don't fail if __follow_path returned
4523         NIS_NOTFOUND.
4524
4525 2007-08-21  Ulrich Drepper  <drepper@redhat.com>
4526
4527         [BZ #4566]
4528         * string/strtok.c: Fix typo in comment.
4529
4530         [BZ #4582]
4531         * debug/segfault.c: Fix typos in comments.
4532
4533         [BZ #4588]
4534         * stdio-common/tempnam.c: Fix comment, it is not checked that
4535         TMPDIR points to a writable directory.
4536
4537         [BZ #4726]
4538         * resolv/res_send.c (__libc_res_nsend): Initialize all of the
4539         memory allocated for the name server address.
4540
4541         [BZ #4946]
4542         * nscd/connections.c (handle_request): Using sendfile always
4543         requires that mmap is used for the database.
4544         Patch by Petr Baudis <pasky@suse.cz>.
4545
4546         [BZ #4905]
4547         * nscd/hstcache.c (cache_addhst): When reloading an entry which
4548         suddenly has two or more addresses, ignore it and remove the old
4549         entry.
4550
4551         [BZ #4814]
4552         * resolv/res_hconf.c: Prepare for compiling outside libc.
4553         * nscd/res_hconf.c: New file.
4554         * nscd/Makefile (nscd-modules): Add res_hconf.  Add rules to build
4555         the new file.
4556         * nscd/gethstbynm2_r.c (NEED__RES_HCONF): Define.
4557         * nscd/gethstbyad_r.c (NEED__RES_HCONF): Likewise.
4558
4559         * nscd/hstcache.c (cache_addhst): Minimal optimization.
4560
4561         [BZ #4925]
4562         * debug/pcprofiledump.c: Turn on internationalization by calling
4563         setlocale.  Patch mostly by Benno Schulenberg.
4564
4565         [BZ #4936]
4566         * iconv/gconv.c (__gconv): If flush was successful, clear rest of
4567         the state.
4568         * iconvdata/Makefile: Add rules to build and run bug-iconv5.
4569         * iconvdata/bug-iconv5.c: New file.
4570
4571 2007-08-04  Carlos O'Donell  <carlos@systemhalted.org>
4572
4573         [BZ #4896]
4574         * elf/elf.h: Define R_PARISC_PLABEL21L, R_PARISC_PLABEL14R,
4575         R_PARISC_GNU_VTENTRY, R_PARISC_GNU_VTINHERIT, R_PARISC_TLS_GD21L,
4576         R_PARISC_TLS_GD14R, R_PARISC_TLS_GDCALL, R_PARISC_TLS_LDM21L,
4577         R_PARISC_TLS_LDM14R, R_PARISC_TLS_LDMCALL, R_PARISC_TLS_LDO21L,
4578         R_PARISC_TLS_LDO14R, R_PARISC_TLS_DTPMOD32, R_PARISC_TLS_DTPMOD64,
4579         R_PARISC_TLS_DTPOFF32, R_PARISC_TLS_DTPOFF64, R_PARISC_TLS_LE21L,
4580         R_PARISC_TLS_LE14R, R_PARISC_TLS_IE21L, R_PARISC_TLS_IE14R,
4581         R_PARISC_TLS_TPREL32, R_PARISC_TLS_TPREL64.
4582
4583 2007-08-21  Ulrich Drepper  <drepper@redhat.com>
4584
4585         [BZ #4937]
4586         * elf/do-lookup.h (do_lookup_x): Minimal improvement in hash
4587         lookup loop.  Suggested by John Reiser.
4588
4589 2007-08-21  Jakub Jelinek  <jakub@redhat.com>
4590
4591         * sysdeps/unix/sysv/linux/alpha/sysdep.h: Include tls.h.
4592
4593 2007-08-20  Ulrich Drepper  <drepper@redhat.com>
4594
4595         * csu/libc-start.c: Don't handle VDSO_SETUP here.
4596         * sysdeps/unix/sysv/linux/init-first.c: Handle it here instead.
4597         * sysdeps/unix/sysv/linux/x86_64/libc-start.c: Renamed to...
4598         * sysdeps/unix/sysv/linux/x86_64/init-first.c: ...this.  New file.
4599         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Move VDSO_SETUP code
4600         to...
4601         * sysdeps/unix/sysv/linux/x86_64/init-first.c: ...here.  New file.
4602
4603 2007-08-18  Ulrich Drepper  <drepper@redhat.com>
4604
4605         * po/nl.po: Update from translation team.
4606
4607 2007-08-16  Andreas Jaeger  <aj@suse.de>
4608
4609         * locale/localeinfo.h: Make _nl_category_name_idxs extern.
4610         Reported by Peter Festner <peter.festner@ewetel.net>.
4611
4612 2007-08-17  Jakub Jelinek  <jakub@redhat.com>
4613
4614         * login/tst-grantpt.c (test_einval): Add 3rd argument to open.
4615
4616 2007-08-16  Jakub Jelinek  <jakub@redhat.com>
4617
4618         * elf/Makefile ($(objpfx)ld.so): Use readelf -s and awk instead of nm -u
4619         to check for undefined symbols.
4620
4621         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone):
4622         If the syscall fails, set errno to the actual returned error number
4623         rather than EINVAL.
4624         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__clone): If
4625         arguments are incorrect, set errno to EINVAL, if the syscall
4626         fails, set errno to the actual returned error number.
4627
4628         * stdlib/bits/stdlib-ldbl.h (__strtold_internal): Remove.
4629         * wcsmbs/bits/wchar-ldbl.h (__wcstold_internal): Remove.
4630
4631         * sysdeps/sparc/sparc32/sparcv9b/memcpy.S: Moved to...
4632         * sysdeps/sparc/sparc32/sparcv9/sparcv9b/memcpy.S: ... here.  New
4633         file.
4634         (ASI_PNF, ASI_BLK_P): Don't define.
4635         * sysdeps/sparc/sparc32/sparcv9v/memcpy.S: Moved to...
4636         * sysdeps/sparc/sparc32/sparcv9/sparcv9v/memcpy.S: ... here.  New
4637         file.
4638         * sysdeps/sparc/sparc32/sparcv9v/memset.S: Moved to...
4639         * sysdeps/sparc/sparc32/sparcv9/sparcv9v/memset.S: ... here.  New
4640         file.
4641
4642 2007-08-15  Jakub Jelinek  <jakub@redhat.com>
4643
4644         * sysdeps/sparc/fpu/fraiseexcpt.c (__feraiseexcept): Fix raising
4645         FE_UNDERFLOW on Niagara CPUs.
4646
4647         * sysdeps/sparc/fpu/feholdexcpt.c (feholdexcept): Clear all
4648         exceptions.
4649
4650 2007-08-14  Jakub Jelinek  <jakub@redhat.com>
4651
4652         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_runtime_setup): No
4653         need to check GLRO(dl_hwcap) & HWCAP_SPARC_FLUSH on sparcv9.
4654         (sparc_fixup_plt): Add do_flush argument instead of figuring whether
4655         flush should be used or not inside of the function.
4656         (elf_machine_fixup_plt, elf_machine_rela): Adjust caller.
4657
4658         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone,
4659         __thread_start): Use HIDDEN_JUMPTARGET.
4660         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__clone,
4661         __thread_start): Likewise.
4662         * sysdeps/unix/sysv/linux/sparc/sysdep.h (JUMPTARGET): Define.
4663
4664         * sysdeps/ieee754/ldbl-64-128/strtold_l.c (__STRTOF): Declare.
4665         Add libc_hidden_proto.
4666         (STRTOF): Add libc_hidden_proto.
4667         (___new_strtold_l, ___new_wcstold_l): New weak aliases.
4668         (strtold_l, wcstold_l): Use them as second argument for
4669         long_double_symbol.
4670
4671 2007-08-14  Ulrich Drepper  <drepper@redhat.com>
4672
4673         * elf/dl-misc.c: Undo last change.  The kernel won't allow it.
4674
4675 2007-08-13  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
4676
4677         * stdlib/strtold_l.c: Include wchar.h if needed.  Add libc_hidden_def.
4678
4679 2007-08-14  Ulrich Drepper  <drepper@redhat.com>
4680
4681         * po/bg.po: New file.  From the translation team.
4682
4683 2007-08-13  Jakub Jelinek  <jakub@redhat.com>
4684
4685         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PSELECT,
4686         __ASSUME_PPOLL, __ASSUME_ATFCTS, __ASSUME_SET_ROBUST_LIST,
4687         __ASSUME_UTIMENSAT, __ASSUME_FALLOCATE): Update per-arch conditions
4688         when each feature was introduced.
4689
4690         * sysdeps/unix/sysv/linux/dl-vdso.c: Don't include dl-hash.h.
4691         * sysdeps/unix/sysv/linux/dl-vdso.h: Don't include dl-hash.h if NDEBUG.
4692         (CHECK_HASH): New macro.
4693         (PREPARE_VERSION): Use it.
4694
4695         * sysdeps/unix/sysv/linux/pselect.c (__generic_pselect): Only provide
4696         prototype if not __ASSUME_PSELECT.
4697         * sysdeps/unix/sysv/linux/ppoll.c (__generic_ppoll): Only provide
4698         prototype if not __ASSUME_PPOLL.
4699
4700         * sysdeps/unix/sysv/linux/dl-osinfo.h (ROUND): #undef after use.
4701
4702         * sysdeps/unix/clock_settime.c (freq, __pthread_clock_settime,
4703         hp_timing_settime): Don't define or declare if HANDLED_CPUTIME
4704         is defined.
4705
4706 2007-08-13  Ulrich Drepper  <drepper@redhat.com>
4707
4708         * sysdeps/unix/sysv/linux/x86_64/libc-start.c
4709         (_libc_vdso_platform_setup): If vDSO is not available point
4710         __vdso_gettimeofday to the vsyscall.
4711         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S [SHARED]: Use
4712         __vdso_gettimeofday instead of vsyscall.
4713
4714 2007-08-13  Jakub Jelinek  <jakub@redhat.com>
4715
4716         * nscd/servicescache.c: Include kernel-features.h.
4717         * nscd/gai.c: Likewise.
4718         * sysdeps/unix/sysv/linux/statfs64.c: Likewise.
4719         * sysdeps/unix/sysv/linux/fstatfs64.c: Likewise.
4720         * sysdeps/unix/sysv/linux/fxstatat.c: Likewise.
4721         * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S: Likewise.
4722         * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S: Likewise.
4723         * sysdeps/unix/sysv/linux/xstatconv.c: Likewise.
4724         * sysdeps/unix/sysv/linux/if_index.c: Likewise.
4725         * sysdeps/unix/sysv/linux/sparc/sparc64/xstat.c: Likewise.
4726         * sysdeps/unix/sysv/linux/ifaddrs.c: Likewise.
4727
4728 2007-08-12  Ulrich Drepper  <drepper@redhat.com>
4729
4730         * elf/dl-dst.h: No need for _dl_dst_count, _dl_dst_substitute,
4731         and _dl_get_origin defines anymore.
4732
4733         * sysdeps/unix/sysv/linux/clock_gettime.c (maybe_syscall_gettime_cpu):
4734         Build fix for systems which might lack POSIX timer support.
4735
4736         * sysdeps/unix/sysv/linux/x86_64/libc-start.c
4737         (_libc_vdso_platform_setup): Mangle function pointers before storing
4738         them.
4739         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_VSYSCALL):
4740         Demangle vdso pointer before use.
4741         (INTERNAL_VSYSCALL): Likewise.
4742
4743         * elf/cache.c (primes): Mark as const.
4744         Noted by Roland McGrath.
4745
4746 2007-08-01  Andreas Jaeger  <aj@suse.de>
4747             Jakub Jelinek  <jakub@redhat.com>
4748
4749         * elf/ldconfig.c (opt_ignore_aux_cache): Add new option.
4750         (options): Add option.
4751         (parse_opt): Handle option.
4752         (manual_link): Adjust process_file caller.  Call implicit_soname.
4753         (search_dir): Formatting.  Use and populate auxiliary cache.
4754         (main): Load and save auxiliary cache.
4755         * elf/readlib.c (process_file): Add stat_buf argument.  Pass struct
4756         stat64 from fstat64 to caller.
4757         (implicit_soname): New function.
4758         * elf/readelflib.c (process_elf_file): If DT_SONAME is not present,
4759         leave *soname as NULL.
4760         * elf/cache.c: Include libgen.h.
4761         (print_entry, print_cache, compare, save_cache, add_to_cache):
4762         Formatting and cleanups.
4763         (aux_cache_entry_id, aux_cache_entry, aux_cache_file_entry,
4764         aux_cache_file): New structures.
4765         (AUX_CACHEMAGIC): Define.
4766         (primes): New array.
4767         (aux_hash_size, aux_hash): New variables.
4768         (aux_cache_entry_id_hash, nextprime, init_aux_cache,
4769         search_aux_cache, insert_to_aux_cache, add_to_aux_cache,
4770         load_aux_cache, save_aux_cache): New functions.
4771         * sysdeps/generic/ldconfig.h (_PATH_LDCONFIG_AUX_CACHE): Define.
4772         (init_aux_cache, search_aux_cache, add_to_aux_cache,
4773         load_aux_cache, save_aux_cache, implicit_soname): New prototypes.
4774         (process_file): Adjust prototype.
4775
4776 2007-08-12  Jakub Jelinek  <jakub@redhat.com>
4777
4778         * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h: Include stddef.h
4779         with __need_size_t.
4780
4781 2007-08-12  Ulrich Drepper  <drepper@redhat.com>
4782
4783         * sysdeps/unix/sysv/linux/dl-vdso.c (_dl_vdso_vsym): Expect
4784         r_found_version structure as second parameter.
4785         * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION): Define.
4786         (_dl_vdso_vsym): Change type of second parameter accordingly.
4787         * sysdeps/unix/sysv/linux/x86-64/libc-start.c
4788         (_libc_vdso_platform_setup): Adjust.
4789         * sysdeps/unix/sysv/linux/powerpc/libc-start.c
4790         (_libc_vdso_platform_setup): Likewise.
4791
4792         * sysdeps/unix/sysv/linux/powerpc/dl-vdso.c: Move to...
4793         * sysdeps/unix/sysv/linux/dl-vdso.c: ...here.
4794         * sysdeps/unix/sysv/linux/powerpc/dl-vdso.h: Move to...
4795         * sysdeps/unix/sysv/linux/dl-vdso.h: ...here.
4796         * csu/libc-start.c: Pretty printing.
4797         Use VDSO_SETUP if defined.
4798         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Define VDSO_SETUP
4799         and let generic code call into _libc_vdso_platform_setup.
4800         * sysdeps/unix/sysv/linux/x86_64/libc-start.c: New file.
4801         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: New file.
4802         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Pretty printing.
4803         Define INLINE_VSYSCALL and INTERNAL_VSYSCALL.
4804         * sysdeps/unix/sysv/linux/x86_64/Versions: Export __vdso_clock_gettime
4805         for GLIBC_PRIVATE.
4806         * sysdeps/unix/sysv/linux/x86_64/Makefile [subdir=elf]
4807         (sysdep_rountines): Add dl-vdso.
4808
4809         * sysdeps/unix/sysv/linux/powerpc/Makefile: Use sysdep_routines instead
4810         of routines.
4811
4812         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Add
4813         attribute_hidden to __vdso_gettimeofday prototype.
4814
4815 2007-08-12  Roland McGrath  <roland@redhat.com>
4816
4817         * manual/stdio.texi (Variable Arguments Output): Fix xref to gcc manual.
4818         From: Karl Berry <karl@freefriends.org>.
4819
4820 2007-08-11  Ulrich Drepper  <drepper@redhat.com>
4821
4822         * elf/dl-misc.c (_dl_sysdep_read_whole_file): We really don't need
4823         an atime update for the files we read.
4824
4825 2007-08-10  Ulrich Drepper  <drepper@redhat.com>
4826
4827         * shadow/lckpwdf.c (__lckpwdf): Use O_CLOEXEC if possible.
4828
4829         * nscd/connections.c: Use O_CLOEXEC if possible.  Use mkostemp
4830         instead of mkstemp.
4831
4832         * misc/Makefile (routines): Add mkostemp and mkostemp64.
4833         * misc/Versions: Export mkostemp and mkostemp64 for GLIBC_2.7.
4834         * misc/mkostemp.c: New file.
4835         * misc/mkostemp64.c: New file.
4836         * stdlib/stdlib.h: Declare the new functions.
4837         * sysdeps/posix/tempname.c: Add new parameter which is added to
4838         the flags for open.  Remove __GT_BIGFILE handling.
4839         * stdio-common/tempname.c: Likewise.
4840         * include/stdio.h: Adjust __gen_tempname prototype.
4841         Renumber __GT_* constants.
4842         * libio/oldtmpfile.c: Adjust for __gen_tempname interface change.
4843         * misc/mkdtemp.c: Likewise.
4844         * misc/mkstemp.c: Likewise.
4845         * misc/mkstemp64.c: Likewise.
4846         * misc/mktemp.c: Likewise.
4847         * stdio-common/tempnam.c: Likewise.
4848         * stdio-common/tmpfile.c: Likewise.
4849         * stdio-common/tmpfile64.c: Likewise.
4850         * stdio-common/tmpnam.c: Likewise.
4851         * stdio-common/tmpnam_r.c: Likewise.
4852
4853 2007-08-10  Roland McGrath  <roland@frob.com>
4854
4855         * sysdeps/mach/hurd/bits/ioctls.h (NLDLY, TABDLY, BSDLY, VTDLY):
4856         New macros.
4857         (NLDELAY, CRDELAY, TBDELAY, BSDELAY, VTDELAY): Define to those.
4858         Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
4859
4860 2007-08-10  Ulrich Drepper  <drepper@redhat.com>
4861
4862         * nss/nss_files/files-XXX.c (internal_setent): Use O_CLOEXEC if
4863         possible.
4864         * nss/nss_files/files-alias.c (internal_setent): Likewise.
4865         * nss/Makefile (libnss_files-routines): Add files-have_o_cloexec.
4866         * nss/nss_files/files-have_o_cloexec.c: New file.
4867
4868         * sysdeps/unix/sysv/linux/shm_open.c (shm_open): Use O_CLOEXEC if
4869         available.
4870
4871 2007-08-10  Jakub Jelinek  <jakub@redhat.com>
4872
4873         * sysdeps/ieee754/ldbl-128ibm/strtold_l.c (___new_strtold_l,
4874         ___new_wcstold_l): New weak aliases.
4875         (strtold_l, wcstold_l): Use them as second argument for
4876         long_double_symbol.
4877
4878 2007-08-09  Ulrich Drepper  <drepper@redhat.com>
4879
4880         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Use correct
4881         register in test for error.
4882
4883         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_CLOEXEC): Define.
4884         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (O_CLOEXEC): Likewise.
4885
4886         * po/sv.po: Update from translation team.
4887
4888 2007-08-06  Roland McGrath  <roland@redhat.com>
4889
4890         * include/stdlib.h: Add libc_hidden_proto for strto*, __strto*_l.
4891         Remove __strto*_l inlines.
4892         * include/wchar.h: Add libc_hidden_proto for wcsto*, __wcsto*_l.
4893         * stdlib/strtod.c: Add libc_hidden_def.
4894         * stdlib/strtod_l.c: Likewise.
4895         * stdlib/strtold.c [__LONG_DOUBLE_MATH_OPTIONAL]: Add libc_hidden_proto
4896         for __new_strtold and __new_wcstold.
4897         * sysdeps/ieee754/ldbl-128ibm/strtold_l.c: Add libc_hidden_proto for
4898         __STRTOF, STRTOF.
4899         * stdlib/strtol.c: Add libc_hidden_def.
4900         * stdlib/strtol_l.c: Likewise.
4901         * sysdeps/wordsize-64/strtol.c: Add libc_hidden_ver for strtoll and
4902         strtoq.
4903
4904         * scripts/data/localplt-powerpc-linux-gnu.data: New file.
4905
4906         * scripts/data/localplt-x86_64-linux-gnu.data: File renamed to ...
4907         * scripts/data/localplt-generic.data: ... here.
4908         * elf/Makefile (check-data): Get generic file if no other.
4909         ($(objpfx)check-localplt.out): Make target unconditional.
4910
4911         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_discover_osversion):
4912         Use ElfW(Nhdr).
4913
4914 2007-08-05  Ulrich Drepper  <drepper@redhat.com>
4915
4916         * po/zh_CN.po: Updated translation from translation team.
4917
4918 2007-08-05  Jakub Jelinek  <jakub@redhat.com>
4919
4920         * sysdeps/unix/sysv/linux/powerpc/powerpc32/socket.S (__socket):
4921         Don't use CGOTSETUP and CGOTRESTORE macros.
4922
4923 2007-08-04  Roland McGrath  <roland@redhat.com>
4924
4925         * posix/Makefile ($(objpfx)getconf.speclist): Fix typo.
4926
4927 2007-08-04  Jakub Jelinek  <jakub@redhat.com>
4928
4929         * io/bits/fcntl2.h (open, open64, openat, openat64): Add
4930         __extension__ around the whole statement expression.
4931
4932 2007-08-04  Ulrich Drepper  <drepper@redhat.com>
4933
4934         * sysdeps/unix/opendir.c (__alloc_dir): Correct order of DIR
4935         elements during initialization.
4936
4937         * po/pl.po: Updated translation from translation team.
4938         * po/tr.po: Likewise.
4939         * po/nl.po: Likewise.
4940
4941 2007-08-03  Ulrich Drepper  <drepper@redhat.com>
4942
4943         * rt/aio.h: Add __nonnull attributes.
4944
4945 2007-08-03  Jakub Jelinek  <jakub@redhat.com>
4946
4947         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Properly handle -0.
4948         * stdlib/Makefile (tests): Add tst-strtod5.
4949         (tst-strtod5-ENV): New.
4950         * stdlib/tst-strtod5.c: New file.
4951
4952         * intl/dcigettext.c (_nl_find_msg): Free encoding if __gconv_open
4953         failed.
4954         * intl/finddomain.c (_nl_find_domain): Free normalized_codeset
4955         on failure.
4956
4957         * elf/dl-load.c (decompose_rpath): Free copy if result couldn't be
4958         allocated.
4959
4960 2007-08-03  Jakub Jelinek  <jakub@redhat.com>
4961
4962         * rt/mqueue.h (mq_timedreceive, mq_timedsend): Fix nonnull argument
4963         numbers.
4964
4965 2007-08-02  Ulrich Drepper  <drepper@redhat.com>
4966
4967         * io/Makefile (aux): Add have_o_cloexec.
4968         * include/fcntl.h: Declare __have_o_cloexec.
4969         * io/have_o_cloexec.c: New file.
4970         * sysdeps/unix/opendir.c (__opendir): Use O_CLOEXEC is available.
4971         (__alloc_dir): If O_CLOEXEC has been used, don't duplicate the
4972         fcntl call if not necessary.
4973         * login/utmp_file.c (setutent_file): Use __have_o_cloexec instead
4974         of local variable.
4975
4976         * sysdeps/unix/opendir.c (__alloc_dir): Don't initialize ->data.
4977         Avoid memset, add explicit initialization.
4978         * sysdeps/unix/dirstream.h (struct __dirstream): Move data elemtn
4979         to the end and change into zero-sized array.
4980         Move lock member to fill a hole on 64-bit platforms.
4981
4982         * stdlib/stdlib.h: Remove __strto*_internal prototypes and strto*
4983         inline functions.
4984         * include/stdlib.h: Add __strto*_internal prototypes here.
4985         * wcsmbs/wchar.h: Remove __wcsto*_internal prototypes and wcsto*
4986         inline functions.
4987         * include/wchar.h: Add __wcsto*_internal prototypes.
4988         * sysdeps/generic/inttypes.h: No need to protect the declaration
4989         of the __strto*_internal and __wcsto*_internal members here.
4990
4991         * rt/mqueue.h: Change const to __const and add nonnull attributes.
4992
4993 2007-08-02  Roland McGrath  <roland@redhat.com>
4994
4995         * posix/Makefile ($(inst_libexecdir)/getconf): Make hard links to
4996         $(inst_bindir)/getconf if possible.
4997
4998         * posix/Makefile ($(objpfx)getconf.speclist): New target.
4999         (generated): Add it.
5000         ($(inst_libexecdir)/getconf): Use it.
5001
5002 2007-08-01  Ulrich Drepper  <drepper@redhat.com>
5003
5004         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Using
5005         /proc is faster and sufficient.  /sys is still needed for
5006         __get_nprocs_conf.
5007
5008 2007-08-01  Jakub Jelinek  <jakub@redhat.com>
5009
5010         * sysdeps/unix/sysv/linux/i386/syscalls.list (fallocate): Add fallocate
5011         syscall as __fallocate64.
5012         * sysdeps/unix/sysv/linux/i386/posix_fallocate.c: New file.
5013         * sysdeps/unix/sysv/linux/i386/posix_fallocate64.c: New file.
5014
5015 2007-07-30  Jakub Jelinek  <jakub@redhat.com>
5016
5017         * stdlib/tst-strtod2.c (do_test): Use %tu in fmt string for ptrdiff_t
5018         value.
5019
5020         * stdio-common/tst-fmemopen2.c (do_test): Avoid fmt string warning
5021         if off_t is different rank from size_t.
5022
5023         * sysdeps/generic/unwind-dw2.c (extract_cie_info, execute_cfa_program,
5024         uw_frame_state_for): Avoid type punning warnings.
5025         * sysdeps/generic/unwind-dw2-fde-glibc.c
5026         (_Unwind_IteratePhdrCallback): Likewise.
5027         * sysdeps/generic/unwind-dw2-fde.c (_Unwind_Find_FDE): Likewise.
5028         (binary_search_single_encoding_fdes, binary_search_mixed_encoding_fdes,
5029         get_cie_encoding, linear_search_fdes): Don't mix char and unsigned char
5030         pointers.
5031
5032 2007-07-31  Ulrich Drepper  <drepper@redhat.com>
5033
5034         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs_conf): Count
5035         total processors using sysfs.
5036         (__get_nprocs): Use sysfs to determine which processors are online.
5037
5038 2007-07-31  Jakub Jelinek  <jakub@redhat.com>
5039
5040         * sysdeps/unix/sysv/linux/posix_fallocate.c (posix_fallocate): Fix
5041         syscall arguments count.
5042
5043         * stdio-common/tfformat.c (sprint_doubles): Add 12 new tests.
5044
5045 2007-07-30  Roland McGrath  <roland@redhat.com>
5046
5047         * manual/libc.texinfo: Update copyrights, formatting magic, and
5048         @dircategory.  From Karl Berry <karl@freefriends.org>.
5049
5050 2007-07-29  Ulrich Drepper  <drepper@redhat.com>
5051
5052         [BZ #4860]
5053         * io/Makefile (headers): Add bits/fcntl2.h.
5054
5055         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_ZERO_S): Optimize
5056         using gcc builtin.
5057         (__CPU_EQUAL_S): Likewise.
5058
5059         * posix/Makefile (routines): Add sched_cpualloc and sched_cpufree.
5060         (tests): Add tst-cpuset.
5061         * posix/sched_cpualloc.c: New file.
5062         * posix/sched_cpufree.c: New file.
5063         * posix/tst-cpuset.c: New file.
5064         * posix/Versions: Export __sched_cpualloc and __sched_cpufree for
5065         GLIBC_2.7.
5066         * sysdeps/unix/sysv/linux/bits/sched.h: Define __CPU_*_S macros.
5067         * posix/sched.h: Define old CPU_* macros in temers of __CPU_*_S
5068         macros.  Define CPU_*_S macros.
5069
5070 2007-07-28  Ulrich Drepper  <drepper@redhat.com>
5071
5072         * posix/getconf.c (vars): Add missing _SC_LEVEL4_CACHE_LINESIZE
5073         entry.
5074
5075         [BZ #4858]
5076         * stdio-common/printf_fp.c (___printf_fp): Fix special case of
5077         #.0g and value rounded to 1.0.
5078         * stdio-common/tfformat.c (sprint_doubles): Add two new tests.
5079
5080 2007-07-26  Jakub Jelinek  <jakub@redhat.com>
5081
5082         * locale/programs/ld-monetary.c (monetary_finish): Avoid range check
5083         for int_frac_digits and frac_digits.
5084
5085         * login/logout.c (logout): Avoid aliasing violation.
5086         * login/logwtmp.c (logwtmp): Likewise.
5087
5088         * libio/genops.c (_IO_un_link): Avoid aliasing violation.
5089
5090         * nscd/selinux.c (preserve_capabilities): Initialize new_caps
5091         to avoid warning.
5092         * iconv/gconv_open.c (__gconv_open): Initialize ptr to avoid
5093         warning.
5094         * nis/nis_subr.c (nis_getnames): Initialize saveptr to avoid
5095         warning.
5096         * resolv/inet_ntop.c (inet_ntop6): Initialize best.len and cur.len
5097         to avoid warnings.
5098
5099         * nss/nsswitch.c (__nss_lookup_function): Don't cast &ni->known to
5100         void **.
5101         * nss/nsswitch.h (service_user): Use void * type for KNOWN field.
5102
5103         * nss/nss_files/files-hosts.c (LINE_PARSER): Cast host_addr to
5104         char * to avoid warning.
5105         * nis/nss_nis/nis-hosts.c (LINE_PARSER): Likewise.
5106
5107         * timezone/Makefile (CFLAGS-zdump.c): Add -fwrapv.
5108
5109         * locale/programs/ld-ctype.c (ctype_finish, set_class_defaults,
5110         allocate_arrays): Cast second argument to charmap_find_symbol
5111         to char * to avoid warnings.
5112
5113         * locale/programs/repertoire.c (repertoire_new_char): Change
5114         from_nr, to_nr and cnt to unsigned long, adjust printf format
5115         string.
5116
5117         * locale/programs/ld-collate.c (insert_value, handle_ellipsis):
5118         Cast second argument to new_element to char * to avoid warnings.
5119
5120         * locale/weightwc.h (findidx): Cast &extra[-i] to const int32_t *.
5121
5122         * intl/gettextP.h (struct loaded_domain): Change plural to const
5123         struct expression *.
5124         * intl/plural-eval.c (plural_eval): Change first argument to
5125         const struct expression *.
5126         * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Change first
5127         argument to const struct expression **.
5128         * intl/plural-exp.h (EXTRACT_PLURAL_EXPRESSION, plural_eval): Adjust
5129         prototypes.
5130         * intl/loadmsgcat (_nl_unload_domain): Cast away const
5131         in call to __gettext_free_exp.
5132
5133         * posix/fnmatch.c (fnmatch): Rearrange code to avoid maybe
5134         unitialized wstring/wpattern var warnings.
5135
5136         * posix/runtests.c (struct a_test): Make data field const char *.
5137
5138         * stdio-common/tst-sprintf2.c (main): Don't declere u, v and buf
5139         vars if not LDBL_MANT_DIG >= 106.
5140
5141         * stdio-common/Makefile (CFLAGS-vfwprintf.c): Add -Wno-unitialized.
5142
5143         * stdio-common/vfprintf.c (vfprintf): Cast first arugment to
5144         __find_specmb to avoid warning.
5145
5146         * rt/tst-mqueue1.c (do_one_test): Add casts to avoid warnings.
5147
5148         * debug/test-strcpy_chk.c (do_tests, do_random_tests): Add casts
5149         to avoid warnings.
5150
5151         * sysdeps/ieee754/ldbl-96/s_roundl.c (huge): Add L suffix to
5152         initializer.
5153
5154         * sysdeps/unix/clock_gettime.c (clock_gettime): Only define
5155         tv var when it will be actually used.
5156
5157         * sunrpc/rpc_cmsg.c (xdr_callmsg): Cast IXDR_PUT_* to void
5158         to avoid warnings.
5159
5160         * iconvdata/gbk.c (BODY): Make buf and cp char instead of unsigned
5161         char array resp. pointer.
5162         * iconvdata/iso-2022-kr.c (BODY): Make buf unsigned char instead of
5163         char array.
5164         * iconvdata/cns11643.h (cns11643_to_ucs4): Change first argument
5165         to const unsigned char **.
5166         (ucs4_to_cns11643): Change second argument to unsigned char *.
5167         * iconvdata/euc-tw.c (BODY): Change endp type to
5168         const unsigned char *.
5169         * iconvdata/iso-ir-165.h (ucs4_to_isoir165): Change second argument
5170         to unsigned char *.
5171         * iconvdata/ibm1008_420.c (LOOP_NEED_FLAGS): Don't define.
5172         * iconvdata/iso-2022-cn.c (BODY): Change buf to unsigned char array.
5173         * iconvdata/iso-2022-cn-ext.c (BODY): Change buf, tmpbuf, tmp
5174         types to unsigned char pointers/arrays instead of char.
5175         * iconvdata/jis0201.h (ucs4_to_jisx0201): Change second argument
5176         to unsigned char *.
5177         * iconvdata/jis0208.h (ucs4_to_jisx0208): Likewise.
5178         * iconvdata/jis0212.h: Include assert.h.
5179         (ucs4_to_jisx0212): Change second argument to unsigned char *.
5180         assert that if cp[0] is not '\0', cp[1] is not '\0' either instead
5181         of trying to handle that.
5182         * iconvdata/euc-kr.c (euckr_from_ucs4): Initialize also cp[1] to
5183         shut up a warning.
5184         * iconvdata/euc-jp-ms.c (from_ucs4_lat1, from_ucs4_greek,
5185         from_ucs4_cjk, from_ucs4_cjkcpt, from_ucs4_extra): Change type to
5186         two dimensional const unsigned char arrays.
5187         (BODY): Cast "" to (const unsigned char *) for assignment to cp.
5188         Initialize endp to inptr to shut up a warning.
5189
5190 2007-07-20  Jakub Jelinek  <jakub@redhat.com>
5191
5192         [BZ #4772]
5193         * time/strptime_l.c (__strptime_internal): Silently ignore
5194         strftime modifiers and field width in recursive calls.
5195
5196         * include/time.h (enum ptime_locale_status): Remove.
5197         (__strptime_internal): Remove decided and era_cnt arguments,
5198         add statep argument.
5199         * time/strptime_l.c (__strptime_internal): Remove decided
5200         and era_cnt arguments, add statep argument.  Don't recompute
5201         any fields in recursive calls, only update caller's tm
5202         and state, if recursive call fails, don't change tm nor
5203         any state.
5204         (get_alt_number): Adjust.
5205         (recursive): Adjust caller.
5206         (strptime): Likewise.
5207         * time/strptime.c (strptime): Likewise.
5208
5209 2007-07-19  Jakub Jelinek  <jakub@redhat.com>
5210
5211         * iconv/gconv_int.h (__GCONV_NULCONV): New internal only error code.
5212         * iconv/gconv_cache.c (__gconv_lookup_cache): Return __GCONV_NULCONV
5213         if from and to charsets are the same.
5214         * iconv/gconv_db.c (__gconv_find_transform): Likewise.
5215         * intl/dcigettext.c (_nl_find_msg): Return NULL even if __gconv_open
5216         returns __GCONV_NOCONV, but not for __GCONV_NULCONV.
5217
5218 2007-07-17  Jakub Jelinek  <jakub@redhat.com>
5219
5220         * wcsmbs/wchar.h: Only define wint_t if __need_wint_t.
5221         Don't define wint_t when __need_mbstate_t unless it
5222         is necessary.
5223         (__mbstate_t): Use __WINT_TYPE__ rather than wint_t
5224         in the typedef if possible.
5225         * wctype/wctype.h (wint_t): Define by including
5226         wchar.h with __need_wint_t instead of including stddef.h
5227         with __need_wint_t and as fallback definining it ourselves.
5228         * iconv/gconv.h (__need_wint_t): Define before including
5229         wchar.h.
5230         * sysdeps/gnu/_G_config.h: Don't include gconv.h if not _LIBC
5231         or _GLIBCPP_USE_WCHAR_T.
5232         (__need_wchar_t): Don't define
5233         if not _LIBC or _GLIBCPP_USE_WCHAR_T.
5234         (__need_wint_t): Don't define before including stddef.h,
5235         define before including wchar.h only if _LIBC or
5236         _GLIBCPP_USE_WCHAR_T.
5237         (_G_iconv_t): Don't define if not _LIBC or _GLIBCPP_USE_WCHAR_T.
5238         * sysdeps/mach/hurd/_G_config.h: Likewise.
5239         * sysdeps/generic/_G_config.h: Likewise.
5240         * libio/libio.h (__wunderflow, __wuflow, __woverflow): Only
5241         prototype if _LIBC or _GLIBCPP_USE_WCHAR_T.
5242         (_IO_getwc_unlocked, _IO_putwc_unlocked): Only define
5243         if _LIBC or _GLIBCPP_USE_WCHAR_T.
5244
5245 2007-07-28  Ulrich Drepper  <drepper@redhat.com>
5246
5247         * sysdeps/posix/posix_fallocate64.c: Undefine
5248         __posix_fallocate64_l64 before alias handling.
5249         * sysdeps/unix/sysv/linux/posix_fallocate.c: New file.
5250         * sysdeps/unix/sysv/linux/posix_fallocate64.c: New file.
5251         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c: New file.
5252         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate64.c: New file.
5253
5254         * io/tst-posix_fallocate.c: Include <fcntl.h>.
5255
5256 2007-07-23  Jakub Jelinek  <jakub@redhat.com>
5257
5258         * locale/programs/ld-collate.c (atwc): New variable.
5259         (add_to_tablewc): New toplevel function, moved from collate_output.
5260         (collate_output): Remove add_to_tablewc nested function.
5261
5262         * iconv/iconvconfig.c (hash_table, hash_size): New toplevel vars.
5263         (name_insert): New function.
5264         (write_output): Remove hash_table and hash_size vars and name_insert
5265         nested function.
5266
5267 2007-07-24  Roland McGrath  <roland@redhat.com>
5268
5269         * Makerules (install-others-programs-nosubdir): New target.
5270         (install-no-libc.a-nosubdir): Depend on it.
5271
5272         * iconv/Makefile (install-others-programs): Set this instead of
5273         install-others.
5274         * login/Makefile (install-others-programs): Likewise.
5275         * posix/Makefile (install-others-programs): Likewise.
5276
5277         * Makerules (install-no-libc.a-nosubdir): Clean up conditional
5278         dependencies.
5279
5280 2007-07-23  Ulrich Drepper  <drepper@redhat.com>
5281
5282         * io/Makefile (tests): Add tst-posix_fallocate.
5283         * io/tst-posix_fallocate.c: New file.
5284
5285         * sysdeps/unix/sysv/linux/kernel-features.h: Define
5286         __ASSUME_FALLOCATE.
5287
5288 2007-07-22  Roland McGrath  <roland@frob.com>
5289
5290         * hurd/getdport.c: Add missing copyright year update.
5291
5292         * sysdeps/mach/hurd/bits/fcntl.h [__USE_GNU] (O_CLOEXEC): New macro.
5293         * hurd/port2fd.c (_hurd_port2fd): Implement O_CLOEXEC.
5294
5295 2007-07-22  Ulrich Drepper  <drepper@redhat.com>
5296
5297         * login/utmp_file.c (setutent_file): Use O_CLOEXEC if possible.
5298
5299         * libio/fileops.c (_IO_new_file_fopen): Recognize 'e' flag and set
5300         O_CLOEXEC is needed.
5301         * nis/nss_compat/compat-grp.c: Use 'e' flag when opening file.
5302         Avoid additional fcntl to set O_CLOEXEC if not needed.
5303         * nis/nss_compat/compat-initgroups.c: Likewise.
5304         * nis/nss_compat/compat-pwd.c: Likewise.
5305         * nis/nss_compat/compat-spwd.c: Likewise.
5306
5307 2007-07-21  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5308
5309         [BZ #3665]
5310         * manual/errno.texi: Change ECANCELED value to 119.
5311
5312         [BZ #4610]
5313         * mach/lock-intern.h: Include <sys/cdefs.h>.
5314
5315         [BZ #4178]
5316         * sysdeps/mach/hurd/sigaction.c (__sigaction): Check ACT != NULL before
5317         reading A.
5318
5319         [BZ #4126]
5320         * sysdeps/mach/hurd/sigsuspend.c (sigsuspend_not_cancel): Define alias
5321         to __sigsuspend.
5322
5323         * sysdeps/mach/i386/sysdep.h: Include <dl-sysdep.h> and <tls.h>.
5324
5325 2006-06-13  Thomas Schwinge  <tschwinge@gnu.org>
5326
5327         * sysdeps/mach/hurd/tls.h: Change `ASSEMBLER' conditional to
5328         `__ASSEMBLER__'.
5329         * sysdeps/mach/hurd/i386/tls.h: Likewise.
5330
5331 2007-07-21  Ulrich Drepper  <drepper@redhat.com>
5332
5333         * nscd/nscd_helper.c (get_mapping): Use MSG_CMSG_CLOEXEC for
5334         descriptor received from nscd.
5335
5336         * sysdeps/unix/sysv/linux/bits/socket.h: Define MSG_CMSG_CLOEXEC.
5337
5338         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_CLOEXEC.
5339         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
5340         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
5341         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
5342         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
5343         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
5344
5345 2007-07-20  Jakub Jelinek  <jakub@redhat.com>
5346
5347         [BZ #4816]
5348         * manual/signal.texi (Non-atomic Example): Make memory var volatile.
5349
5350         [BZ #4813]
5351         * login/forkpty.c (forkpty): Close master and slave fds on
5352         fork failure.  Patch by
5353         Mikulas Patocka <mikulas@artax.karlin.mff.cuni.cz>.
5354
5355 2007-07-18  Jakub Jelinek  <jakub@redhat.com>
5356
5357         * include/features.h (__USE_ISOC95): New define.
5358         * wcsmbs/wchar.h (fwprintf, fwscanf, wprintf, wscanf, swprintf,
5359         swscanf, vfwprintf, vwprintf, vswprintf, fwide): Define even
5360         for -std=iso9899:199409.
5361         * CONFORMANCE: Remove comments about unsupported AMD1.
5362
5363 2007-07-17  Jakub Jelinek  <jakub@redhat.com>
5364
5365         * sysdeps/ia64/sched_cpucount.c: New file.
5366         * sysdeps/powerpc/sched_cpucount.c: New file.
5367
5368         * sysdeps/unix/sysv/linux/bits/sched.h (__sched_cpucount): Add
5369         __BEGIN_DECLS/__END_DECLS around the prototype.
5370         * bits/sched.h (__sched_cpucount): Likewise.  Make second argument
5371         pointer to const cpu_set_t.
5372
5373         * bits/types.h: Don't include stddef.h, don't define __need_size_t.
5374         * signal/signal.h <__USE_BSD || __USE_XOPEN_EXTENDED>: Define
5375         __need_size_t and include stddef.h.
5376         * sysvipc/sys/msg.h: Likewise.
5377         * posix/sched.h: Likewise.
5378         * hurd/hurd/signal.h (__need_size_t): Define.
5379
5380         * CONFORMANCE: ctype.h and wctype.h no longer define size_t,
5381         neither does signal.h in pedantic ISO C namespaces.  stdio.h
5382         no longer defines wint_t or wchar_t.
5383
5384         * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): New function.
5385         * debug/vfwprintf_chk.c (__vfwprintf_chk): Use
5386         _IO_acquire_lock_clear_flags2 instead of _IO_acquire_lock.
5387         * debug/vprintf_chk.c (__vprintf_chk): Likewise.
5388         * debug/vwprintf_chk.c (__vwprintf_chk): Likewise.
5389         * debug/vfprintf_chk.c (__vfprintf_chk): Likewise.
5390         * debug/fwprintf_chk.c (__fwprintf_chk): Likewise.
5391         * debug/printf_chk.c (__printf_chk): Likewise.
5392         * debug/fprintf_chk.c (__fprintf_chk): Likewise.
5393         * debug/wprintf_chk.c (__wprintf_chk): Likewise.
5394
5395         * sysdeps/pthread/bits/stdio-lock.h (_IO_acquire_lock_clear_flags2):
5396         Define.
5397
5398         * bits/confname.h (_CS_POSIX_V6_WIDTH_RESTRICTED_ENVS): Define.
5399         * posix/getconf.c (vars): Add POSIX_V6_WIDTH_RESTRICTED_ENVS.
5400
5401 2007-07-16  Jakub Jelinek  <jakub@redhat.com>
5402
5403         [BZ #4792]
5404         * stdlib/stdlib.h (realloc): Remove __attribute_malloc__.
5405         * malloc/malloc.h (realloc): Likewise.
5406
5407         * libio/iopopen.c (_IO_new_proc_open): Don't close child_std_end
5408         if one of proc_file_chain streams has that fileno.
5409         * stdio-common/Makefile (tests): Add tst-popen2.
5410         * stdio-common/tst-popen2.c: New test.
5411
5412 2007-07-14  Jakub Jelinek  <jakub@redhat.com>
5413
5414         * elf/ldconfig.c: Allow GPLv2 or any later version.
5415         * elf/readlib.c: Likewise.
5416         * elf/chroot_canon.c: Likewise.
5417         * elf/cache.c: Likewise.
5418         * nscd/mem.c: Likewise.
5419         * nscd/getpwuid_r.c: Likewise.
5420         * nscd/grpcache.c: Likewise.
5421         * nscd/aicache.c: Likewise.
5422         * nscd/getsrvbynm_r.c: Likewise.
5423         * nscd/nscd.c: Likewise.
5424         * nscd/servicescache.c: Likewise.
5425         * nscd/getsrvbypt_r.c: Likewise.
5426         * nscd/initgrcache.c: Likewise.
5427         * nscd/gethstbyad_r.c: Likewise.
5428         * nscd/gethstbynm2_r.c: Likewise.
5429         * nscd/getgrnam_r.c: Likewise.
5430         * nscd/nscd_setup_thread.c: Likewise.
5431         * nscd/getpwnam_r.c: Likewise.
5432         * nscd/gai.c: Likewise.
5433         * nscd/connections.c: Likewise.
5434         * nscd/dbg_log.c: Likewise.
5435         * nscd/cache.c: Likewise.
5436         * nscd/hstcache.c: Likewise.
5437         * nscd/nscd_conf.c: Likewise.
5438         * nscd/getgrgid_r.c: Likewise.
5439         * nscd/pwdcache.c: Likewise.
5440         * catgets/gencat.c: Likewise.
5441         * locale/programs/linereader.h: Likewise.
5442         * locale/programs/locarchive.c: Likewise.
5443         * locale/programs/ld-paper.c: Likewise.
5444         * locale/programs/locfile-kw.h: Likewise.
5445         * locale/programs/ld-address.c: Likewise.
5446         * locale/programs/xmalloc.c: Likewise.
5447         * locale/programs/ld-time.c: Likewise.
5448         * locale/programs/localedef.c: Likewise.
5449         * locale/programs/simple-hash.c: Likewise.
5450         * locale/programs/xstrdup.c: Likewise.
5451         * locale/programs/ld-numeric.c: Likewise.
5452         * locale/programs/locfile-kw.gperf: Likewise.
5453         * locale/programs/ld-collate.c: Likewise.
5454         * locale/programs/charmap-kw.gperf: Likewise.
5455         * locale/programs/charmap.h: Likewise.
5456         * locale/programs/charmap-kw.h: Likewise.
5457         * locale/programs/config.h: Likewise.
5458         * locale/programs/locfile.c: Likewise.
5459         * locale/programs/ld-ctype.c: Likewise.
5460         * locale/programs/charmap.c: Likewise.
5461         * locale/programs/ld-messages.c: Likewise.
5462         * locale/programs/repertoire.h: Likewise.
5463         * locale/programs/locale.c: Likewise.
5464         * locale/programs/ld-name.c: Likewise.
5465         * locale/programs/linereader.c: Likewise.
5466         * locale/programs/locfile.h: Likewise.
5467         * locale/programs/3level.h: Likewise.
5468         * locale/programs/ld-monetary.c: Likewise.
5469         * locale/programs/ld-measurement.c: Likewise.
5470         * locale/programs/charmap-dir.c: Likewise.
5471         * locale/programs/ld-identification.c: Likewise.
5472         * locale/programs/localedef.h: Likewise.
5473         * locale/programs/charmap-dir.h: Likewise.
5474         * locale/programs/repertoire.c: Likewise.
5475         * locale/programs/simple-hash.h: Likewise.
5476         * locale/programs/ld-telephone.c: Likewise.
5477         * locale/programs/locale-spec.c: Likewise.
5478         * locale/programs/locfile-token.h: Likewise.
5479         * posix/getconf.c: Likewise.
5480         * iconv/dummy-repertoire.c: Likewise.
5481         * iconv/iconv_charmap.c: Likewise.
5482         * iconv/iconvconfig.c: Likewise.
5483         * iconv/iconv_prog.c: Likewise.
5484         * malloc/memusagestat.c: Likewise.
5485         * sysdeps/unix/sysv/linux/nscd_setup_thread.c: Likewise.
5486
5487 2007-07-06  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
5488
5489         * sysdeps/sh/bsd-setjmp.S (setjmp): Use correct argument registers.
5490         * sysdeps/sh/bsd-_setjmp.S (_setjmp): Likewise.
5491         * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Do correct sanity
5492         check for the first argument.
5493
5494 2007-07-12  Jakub Jelinek  <jakub@redhat.com>
5495
5496         [BZ #4775]
5497         * math/tgmath.h (__tgmath_real_type_sub): Formatting.
5498         (__tgmath_real_type): Fix if expr is const int or other const
5499         qualified integral type.
5500         (__TGMATH_UNARY_REAL_ONLY): Rewritten to avoid using statement
5501         expressions and handle const qualified arguments.
5502         (__TGMATH_BINARY_FIRST_REAL_ONLY, __TGMATH_UNARY_REAL_IMAG,
5503         __TGMATH_UNARY_REAL_IMAG_RET_REAL): Likewise.
5504         (__TGMATH_UNARY_REAL_RET_ONLY): Rewritten to avoid using
5505         statement expressions.
5506         (__TGMATH_BINARY_REAL_ONLY, __TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY,
5507         __TGMATH_TERNARY_REAL_ONLY, __TGMATH_BINARY_REAL_IMAG): Likewise.
5508         (__TGMATH_UNARY_IMAG): Define.
5509         (conj, cproj): Use __TGMATH_UNARY_IMAG macro.
5510         * math/Makefile (tests): Add test-tgmath2.
5511         (CFLAGS-test-tgmath2.c): Add.
5512         * math/test-tgmath.c (fy, dy, ly, fz, dz, lz, count_cdouble,
5513         count_cfloat, count_cldouble): New variables.
5514         (NCCALLS): Define.
5515         (main): Check number of complex calls as well.
5516         (F(compile_test)): Add complex tests and tests with const qualified
5517         arguments.
5518         (y, z, ccount): Define.
5519         (F(cacos), F(casin), F(catan), F(ccos), F(csin), F(ctan), F(cacosh),
5520         F(casinh), F(catanh), F(ccosh), F(csinh), F(ctanh), F(cexp), F(clog),
5521         F(csqrt), F(cpow), F(cabs), F(carg), F(creal), F(cimag), F(conj),
5522         F(cproj)): New functions.
5523         * math/test-tgmath2.c: New test.
5524
5525 2007-07-11  Jakub Jelinek  <jakub@redhat.com>
5526
5527         [BZ #4776]
5528         * elf/dl-load.c (_dl_rtld_di_serinfo): Output / in LD_LIBRARY_PATH,
5529         RPATH etc. as "/" rather than "", don't segfault on empty paths,
5530         instead output ".".
5531         * dlfcn/Makefile (distribute): Add glreflib3.c.
5532         (module-names): Add glreflib3.
5533         ($(objpfx)tst-dlinfo.out): Depend on glreflib3.so rather than
5534         glreflib1.so.
5535         (LDFLAGS_glreflib3.so): New.
5536         * dlfcn/tst-dlinfo.c (do_test): Load glreflib3.so instead of
5537         glreflib1.so.
5538         * dlfcn/glreflib3.c: New file.
5539
5540         * intl/finddomain.c (_nl_find_domain): If _nl_explode_name
5541         returned -1, return NULL.
5542         * intl/explodename.c (_nl_explode_name): Return -1 if
5543         _nl_normalize_codeset failed.
5544
5545 2007-07-07  Steven Munroe  <sjmunroe@us.ibm.com>
5546
5547         * sysdeps/powerpc/powerpc32/power6/memset.S: Update comments.
5548         Specify .machine power6 to get ISA-V2.0 branch hints.  Unroll loops
5549         and avoid branch misspredicts for > 31 bytes memset case.
5550         * sysdeps/powerpc/powerpc64/power6/memset.S: Likewise.
5551         Remove toc ref to __cache_line_size.
5552
5553         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Specify .machine power4
5554         to get ISA-V2.0 branch hints.
5555         * sysdeps/powerpc/powerpc32/power4/memcpy.S: Likewise
5556         * sysdeps/powerpc/powerpc32/power4/memset.S: Likewise
5557         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
5558         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
5559         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
5560         * sysdeps/powerpc/powerpc64/power4/memset.S: Likewise.
5561         Remove toc ref to __cache_line_size.
5562
5563         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S:
5564         Include math_ldbl_opt.h.
5565
5566 2007-07-10  Ulrich Drepper  <drepper@redhat.com>
5567
5568         [BZ #4773]
5569         * time/strptime_l.c (__strptime_internal): Implement greedy
5570         matching of weekday and month names.
5571
5572 2007-07-09  Roland McGrath  <roland@redhat.com>
5573
5574         * elf/elf.h (NT_GNU_ABI_TAG): New macro.
5575         (ELF_NOTE_ABI): Use it.
5576         (NT_GNU_HWCAP, NT_GNU_BUILD_ID): New macros.
5577
5578 2007-07-09  Ulrich Drepper  <drepper@redhat.com>
5579
5580         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Add new entries.
5581         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
5582
5583 2007-07-07  Ulrich Drepper  <drepper@redhat.com>
5584
5585         [BZ #4745]
5586         * stdio-common/vfscanf.c (_IO_vfscanf): Add additional test for EOF
5587         in loop to look for conversion specifier to avoid testing of
5588         wrong errno value.
5589         * stdio-common/Makefile (tests): Add bug18, bug18a, bug19, bug19a.
5590         * stdio-common/bug18.c: New file.
5591         * stdio-common/bug18a.c: New file.
5592         * stdio-common/bug19.c: New file.
5593         * stdio-common/bug19a.c: New file.
5594
5595 2007-07-05  Mike Frysinger  <vapier@gentoo.org>
5596
5597         * Makeconfig ($(common-objpfx)gnu/lib-names.stmp): Use LC_ALL=C when
5598         running awk script.
5599
5600 2007-07-01  Jakub Jelinek  <jakub@redhat.com>
5601
5602         * elf/dl-sysdep.c (_dl_important_hwcaps): Add integer overflow check.
5603         * elf/dl-minimal.c (__libc_memalign): Likewise.  Handle malloc (0).
5604         Return NULL if mmap failed instead of asserting it does not.
5605         (calloc): Check for integer overflow.
5606
5607         * elf/dl-minimal.c (__strtoul_internal): Fix parsing of numbers bigger
5608         than LONG_MAX / 10.
5609
5610 2007-07-03  Jakub Jelinek  <jakub@redhat.com>
5611
5612         [BZ #4702]
5613         * nis/nss-default.c: Include errno.h.
5614         (init): Preserve errno.
5615
5616 2007-07-02  Ulrich Drepper  <drepper@redhat.com>
5617
5618         * sysdeps/unix/sysv/linux/bits/socket.h (PF_UNIX): Update comment.
5619
5620 2007-06-30  Ulrich Drepper  <drepper@redhat.com>
5621
5622         * sysdeps/unix/sysv/linux/bits/socket.h: Add PF_RXRPC and AF_RXRPC.
5623
5624 2007-06-29  Martin Schwidefsky  <schwidefsky@de.ibm.com>
5625
5626         * sysdeps/unix/sysv/linux/bits/socket.h: Add PF_IUCV and AF_IUCV.
5627
5628 2007-06-29  Martin Schwidefsky  <schwidefsky@de.ibm.com>
5629
5630         * sysdeps/s390/dl-procinfo.c: New file.
5631         * sysdeps/s390/dl-procinfo.h: New file.
5632         * sysdeps/unix/sysv/linux/s390/dl-procinfo.h: New file.
5633
5634 2007-06-29  Jakub Jelinek  <jakub@redhat.com>
5635
5636         * elf/dl-load.c (open_verify): Find .note.ABI-tag notes even
5637         in PT_NOTE segments with multiple notes.
5638         * elf/readelflib.c (process_elf_file): Likewise.
5639
5640 2007-06-22  Ulrich Drepper  <drepper@redhat.com>
5641
5642         * nis/nis_domain_of.c (__nis_domain_of): Make the code a bit more
5643         ISO C compliant.
5644
5645 2007-06-19  Ulrich Drepper  <drepper@redhat.com>
5646
5647         * elf/dl-close.c (free_mem): Free _dl_scope_free_list.
5648
5649 2007-06-13  Jakub Jelinek  <jakub@redhat.com>
5650
5651         * include/link.h: Don't include rtld-lowlevel.h.
5652         (struct link_map): Remove l_scope_lock.
5653         * sysdeps/generic/ldsodefs.h: Don't include rtld-lowlevel.h.
5654         (_dl_scope_free_list): New field (variable) in _rtld_global.
5655         (DL_LOOKUP_SCOPE_LOCK): Remove.
5656         (_dl_scope_free): New prototype.
5657         * elf/dl-runtime.c (_dl_fixup): Don't use __rtld_mrlock_*lock.
5658         Don't pass DL_LOOKUP_SCOPE_LOCK to _dl_lookup_symbol_x.
5659         (_dl_profile_fixup): Likewise.
5660         * elf/dl-sym.c (do_sym): Likewise.  Use wrapped _dl_lookup_symbol_x
5661         whenever !RTLD_SINGLE_THREAD_P, use THREAD_GSCOPE_SET_FLAG and
5662         THREAD_GSCOPE_RESET_FLAG around it.
5663         * elf/dl-close.c (_dl_close_worker): Don't use
5664         __rtld_mrlock_{change,done}.  Call _dl_scope_free on the old
5665         scope.  Make sure THREAD_GSCOPE_WAIT () happens if any old
5666         scopes were queued or if l_scope_mem has been abandoned.
5667         * elf/dl-open.c (_dl_scope_free): New function.
5668         (dl_open_worker): Use it.  Don't use __rtld_mrlock_{change,done}.
5669         * elf/dl-support.c (_dl_scope_free_list): New variable.
5670         * elf/dl-lookup.c (add_dependency): Remove flags argument.
5671         Remove DL_LOOKUP_SCOPE_LOCK handling.
5672         (_dl_lookup_symbol_x): Adjust caller.  Remove DL_LOOKUP_SCOPE_LOCK
5673         handling.
5674         * elf/dl-object.c (_dl_new_object): Don't use
5675         __rtld_mrlock_initialize.
5676
5677 2007-06-19  Ulrich Drepper  <drepper@redhat.com>
5678
5679         * sysdeps/generic/ldsodefs.h (rtld_global): Reorder some elements
5680         to fill in holes
5681         (rtld_global_ro): Likewise.
5682
5683 2007-06-18  Jakub Jelinek  <jakub@redhat.com>
5684
5685         * elf/dl-addr.c (_dl_addr): Skip PT_LOAD checking if l_contiguous.
5686         Move PT_LOAD checking to...
5687         (_dl_addr_inside_object): ... here, new function.
5688         * elf/dl-sym.c (do_sym): If not l_contiguous,
5689         call _dl_addr_inside_object.
5690         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise.
5691         * dlfcn/dlinfo.c (dlinfo_doit): Likewise.
5692         * elf/dl-open.c (dl_open_worker): Likewise.
5693         (_dl_addr_inside_object): New function if IS_IN_rtld.
5694         * elf/dl-load.c (_dl_map_object_from_fd): Set l_contiguous if no
5695         holes are present or are PROT_NONE protected.
5696         * include/link.h (struct link_map): Add l_contiguous field.
5697         * sysdeps/generic/ldsodefs.h (_dl_addr_inside_object): New prototype.
5698
5699 2007-06-18  Jakub Jelinek  <jakub@redhat.com>
5700             Tomas Janousek  <tjanouse@redhat.com>
5701             Ulrich Drepper  <drepper@redhat.com>
5702
5703         [BZ #4647]
5704         * resolv/res_send.c (send_dg): Remove socket_pf.  Use ipv6_unavail
5705         member in __res_state, only convaddr4to6 if nssocks[ns] is a PF_INET6
5706         socket.
5707         * resolv/resolv.h (__res_state): Add ipv6_unavail member.  Make
5708         unused member a bitmap.
5709         * resolv/res_init.c (__res_vinit): Reset ipv6_unavail if IPv6
5710         servers are configured.
5711
5712 2007-06-18  Jakub Jelinek  <jakub@redhat.com>
5713
5714         * elf/rtld.c (dl_main): Don't call init_tls more than once.
5715
5716 2007-06-17  Andreas Schwab  <schwab@suse.de>
5717
5718         * sysdeps/generic/initfini.c: Tell gcc about the nonstandard sections.
5719
5720 2007-06-16  Andreas Jaeger  <aj@suse.de>
5721
5722         [BZ #4125]
5723         * sysdeps/unix/sysv/linux/sys/ptrace.h
5724         (PTRACE_O_TRACESYSGOOD, PTRACE_O_TRACEFORK,
5725         PTRACE_O_TRACEVFORK, PTRACE_O_TRACECLONE, PTRACE_O_TRACEEXEC,
5726         PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT, PTRACE_O_MASK,
5727         PTRACE_EVENT_FORK, PTRACE_EVENT_VFORK, PTRACE_EVENT_CLONE,
5728         PTRACE_EVENT_EXEC, PTRACE_EVENT_VFORK_DONE, PTRACE_EVENT_EXIT):
5729         Define.
5730         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
5731         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
5732         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
5733         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
5734
5735 2007-06-16  Ulrich Drepper  <drepper@redhat.com>
5736
5737         [BZ #4599]
5738         * sysdeps/unix/sysv/linux/check_pf.c (make_request): When
5739         determining whether there are IPv4/IPv6 addresses, ignore loopback
5740         addresses.
5741
5742 2007-06-14 Uros Bizjak <ubizjak@gmail.com>
5743
5744         * soft-fp/soft-fp.h (CMPtype): Define to "int" if undefined.
5745         * soft-fp/eqdf2.c (__eqdf2): Use CMPtype instead of int
5746         as the return type.  Change type of "r" variable to CMPtype.
5747         * soft-fp/eqsf2.c (__eqsf2): Likewise.
5748         * soft-fp/eqtf2.c (__eqtf2): Likewise.
5749         * soft-fp/gedf2.c (__gedf2): Likewise.
5750         * soft-fp/gesf2.c (__gesf2): Likewise.
5751         * soft-fp/getf2.c (__getf2): Likewise.
5752         * soft-fp/ledf2.c (__ledf2): Likewise.
5753         * soft-fp/lesf2.c (__lesf2): Likewise.
5754         * soft-fp/letf2.c (__letf2): Likewise.
5755         * soft-fp/unorddf2 (__unorddf2): Likewise.
5756         * soft-fp/unordsf2 (__unordsf2): Likewise.
5757         * soft-fp/unordtf2 (__unordtf2): Likewise.
5758
5759 2007-06-09  Ulrich Drepper  <drepper@redhat.com>
5760
5761         * elf/do-lookup.h (do_lookup_x): Read r_nlist before r_list and
5762         make sure gcc doesn't mess around with this.
5763
5764 2007-06-08  Ulrich Drepper  <drepper@redhat.com>
5765
5766         * elf/dl-lookup.c (_dl_lookup_symbol_x): Remove use of r_nlist.
5767
5768 2007-06-08  Jakub Jelinek  <jakub@redhat.com>
5769
5770         * elf/dl-close.c (_dl_close_worker): Remove all to be removed
5771         libraries from the global scope at once and call THREAD_GSCOPE_WAIT
5772         at most once per _dl_close_worker.
5773
5774 2007-06-08  Ulrich Drepper  <drepper@redhat.com>
5775
5776         * sysdeps/unix/sysv/linux/bits/sched.h: Make second parameter of
5777         __sched_cpucount as const.
5778         * posix/sched_cpucount.c: Adjust.
5779
5780         * posix/sched_cpucount.c (__sched_cpucount): Allow using special
5781         instruction for counting bits.
5782         * sysdeps/x86_64/sched_cpucount.c: New file.
5783
5784 2007-06-07  Ulrich Drepper  <drepper@redhat.com>
5785
5786         * configure.in: Avoid variable named BASH.
5787         * config.make.in: Likewise.
5788         Patch in part by Mike Frysinger.
5789
5790 2007-06-06  Jakub Jelinek  <jakub@redhat.com>
5791
5792         [BZ #4586]
5793         * sysdeps/i386/ldbl2mpn.c (__mpn_extract_long_double): Treat
5794         pseudo-zeros as zero.
5795         * sysdeps/x86_64/ldbl2mpn.c: New file.
5796         * sysdeps/ia64/ldbl2mpn.c: New file.
5797
5798 2007-06-04  Jakub Jelinek  <jakub@redhat.com>
5799
5800         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (nextafterl): Remove
5801         unused ily variable.  Fix nextafterl on +-__LDBL_MAX__ and +-Inf.
5802         Remove unreachable code at the end.
5803
5804 2007-06-01  Steven Munroe  <sjmunroe@us.ibm.com>
5805
5806         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Correct description of
5807         ldbl-128ibm in comment.
5808         (fpclassifyl): Correct classification of denormals.
5809         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (nextafterl): Correct
5810         return value for MIN denormal. Rewrite using long double math too
5811         correctly handle denormals and canonicalize the results.
5812
5813 2007-06-05  Jakub Jelinek  <jakub@redhat.com>
5814
5815         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c
5816         (__mpn_construct_long_double): Fix conversion where result ought
5817         to be smaller than __LDBL_MIN__, or the low double should be
5818         denormal.  Fix decision where to negate low double - honor round
5819         to even rules.
5820         * stdio-common/tst-sprintf2.c: Include string.h.
5821         (COMPARE_LDBL): Define.
5822         (TEST): Also test whether a string hexadecimal float representation
5823         can be parsed back to the number.
5824         (main): Add a couple of further tests.
5825
5826 2007-06-04  Jakub Jelinek  <jakub@redhat.com>
5827
5828         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c
5829         (PRINT_FPHEX_LONG_DOUBLE): Fix printing numbers where lower double
5830         is non-zero, but smaller than 2 * __DBL_MIN__.
5831         * stdio-common/tst-sprintf2.c: New test.
5832         * stdio-common/Makefile (tests): Add tst-sprintf2.
5833
5834         * math/test-misc.c (main): Don't run last batch of tests with
5835         IBM long double format.
5836
5837 2007-05-31  Steven Munroe  <sjmunroe@us.ibm.com>
5838
5839         * sysdeps/powerpc/powerpc32/970/fpu/Implies: New file.
5840         * sysdeps/powerpc/powerpc32/power5/fpu/Implies: New file.
5841         * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: New file.
5842         * sysdeps/powerpc/powerpc32/power6/fpu/Implies: New file.
5843         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: New file.
5844         * sysdeps/powerpc/powerpc64/970/fpu/Implies: New file.
5845         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: New file.
5846         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: New file.
5847         * sysdeps/powerpc/powerpc64/power6/fpu/Implies: New file.
5848         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: New file.
5849         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: New file.
5850         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies:
5851         New file.
5852         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies:
5853         New file.
5854         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies:
5855         New file.
5856         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies:
5857         New file.
5858         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies:
5859         New file.
5860         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: New file.
5861         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies:
5862         New file.
5863         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies:
5864         New file.
5865         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies:
5866         New file.
5867         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies:
5868         New file.
5869         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies:
5870         New file.
5871
5872 2007-05-31  Steven Munroe  <sjmunroe@us.ibm.com>
5873
5874         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S: Move.
5875         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: To here.
5876         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrintf.S: Move.
5877         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: To here.
5878         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llround.S: Move.
5879         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: To here.
5880         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llroundf.S: Move.
5881         * sysdeps/powerpc/powerpc32/power4/fpu/s_llroundf.S: To here.
5882
5883 2007-05-22  Steven Munroe  <sjmunroe@us.ibm.com>
5884
5885         * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S
5886         (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
5887         * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S
5888         (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
5889         * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S
5890         (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
5891         * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S
5892         (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
5893
5894 2007-05-21  Steven Munroe  <sjmunroe@us.ibm.com>
5895
5896         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: New file.
5897         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.c: New file.
5898         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: New file.
5899         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: New file.
5900
5901 2007-03-15  Steven Munroe  <sjmunroe@us.ibm.com>
5902
5903         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S
5904         [LONG_DOUBLE_COMPAT]: Add compat_symbol for llrintl@@GLIBC_2_1.
5905
5906 2006-02-13  Steven Munroe  <sjmunroe@us.ibm.com>
5907
5908         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: New File
5909         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: New File
5910         * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: New File
5911         * sysdeps/powerpc/powerpc32/power6/fpu/s_llroundf.S: New File
5912
5913 2006-10-20  Steven Munroe  <sjmunroe@us.ibm.com>
5914
5915         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: New file.
5916         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: New file.
5917
5918 2006-10-03  Steven Munroe  <sjmunroe@us.ibm.com>
5919
5920         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llround.S: New file.
5921         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llroundf.S: New file.
5922
5923         * sysdeps/powerpc/powerpc32/powerpc64/fpu/Makefile: Moved.
5924         * sysdeps/powerpc/powerpc32/powerpc64/fpu/mpa.c: Likewise.
5925         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile: To here.
5926         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
5927
5928 2006-09-29  Steven Munroe  <sjmunroe@us.ibm.com>
5929
5930         * sysdeps/powerpc/powerpc32/power6x/fpu/s_lrint.S: New file.
5931         * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: New file.
5932         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: New file.
5933         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: New file.
5934
5935 2006-09-28  Steven Munroe  <sjmunroe@us.ibm.com>
5936
5937         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: New file.
5938         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llroundf.S: New file.
5939         * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: New file.
5940         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: New file.
5941         * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: New file.
5942         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: New file.
5943
5944 2006-08-31  Steven Munroe  <sjmunroe@us.ibm.com>
5945
5946         * sysdeps/powerpc/powerpc32/powerpc64/fpu/Makefile: New file.
5947         * sysdeps/powerpc/powerpc32/powerpc64/fpu/mpa.c: New file.
5948         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile: New file.
5949         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: New file.
5950
5951 2006-06-15  Steven Munroe  <sjmunroe@us.ibm.com>
5952
5953         * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceil.S: New file.
5954         * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceilf.S: New file.
5955         * sysdeps/powerpc/powerpc32/power5+/fpu/s_floor.S: New file.
5956         * sysdeps/powerpc/powerpc32/power5+/fpu/s_floorf.S: New file.
5957         * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S: New file.
5958         * sysdeps/powerpc/powerpc32/power5+/fpu/s_roundf.S: New file.
5959         * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S: New file.
5960         * sysdeps/powerpc/powerpc32/power5+/fpu/s_truncf.S: New file.
5961         * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceil.S: New file.
5962         * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceilf.S: New file.
5963         * sysdeps/powerpc/powerpc64/power5+/fpu/s_floor.S: New file.
5964         * sysdeps/powerpc/powerpc64/power5+/fpu/s_floorf.S: New file.
5965         * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S: New file.
5966         * sysdeps/powerpc/powerpc64/power5+/fpu/s_roundf.S: New file.
5967         * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S: New file.
5968         * sysdeps/powerpc/powerpc64/power5+/fpu/s_truncf.S: New file.
5969
5970 2006-03-20  Steven Munroe  <sjmunroe@us.ibm.com>
5971
5972         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S: New file.
5973         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrintf.S: New file.
5974
5975 2007-06-01  Steven Munroe  <sjmunroe@us.ibm.com>
5976
5977         * sysdeps/powerpc/powerpc32/power6/memset.S: New file.
5978         * sysdeps/powerpc/powerpc64/power6/memset.S: New file.
5979
5980 2007-05-31  Steven Munroe  <sjmunroe@us.ibm.com>
5981
5982         * sysdeps/powerpc/powerpc32/970/Implies: New file.
5983         * sysdeps/powerpc/powerpc32/power5/Implies: New file.
5984         * sysdeps/powerpc/powerpc32/power5+/Implies: New file.
5985         * sysdeps/powerpc/powerpc32/power6/Implies: New file.
5986         * sysdeps/powerpc/powerpc32/power6x/Implies: New file.
5987         * sysdeps/powerpc/powerpc64/970/Implies: New file.
5988         * sysdeps/powerpc/powerpc64/power5/Implies: New file.
5989         * sysdeps/powerpc/powerpc64/power5+/Implies: New file.
5990         * sysdeps/powerpc/powerpc64/power6/Implies: New file.
5991         * sysdeps/powerpc/powerpc64/power6x/Implies: New file.
5992
5993 2007-05-21  Steven Munroe  <sjmunroe@us.ibm.com>
5994
5995         * sysdeps/powerpc/powerpc32/power4/memset.S: New file
5996
5997 2007-03-13  Steven Munroe  <sjmunroe@us.ibm.com>
5998
5999         * sysdeps/powerpc/powerpc64/memcpy.S: Improve aligned loop to minimize
6000         branch miss-predicts. Ensure that cache line crossing does not impact
6001         dispatch grouping.
6002
6003 2006-12-13  Steven Munroe  <sjmunroe@us.ibm.com>
6004
6005         * sysdeps/powerpc/powerpc64/power4/memcopy.h: Replace with include
6006         "../../powerpc32/power4/memcopy.h".
6007         * sysdeps/powerpc/powerpc64/power4/wordcopy.c: Replace with include
6008         "../../powerpc32/power4/wordcopy.c".
6009
6010 2006-10-03  Steven Munroe  <sjmunroe@us.ibm.com>
6011
6012         * sysdeps/powerpc/powerpc32/powerpc64/Makefile: Moved.
6013         * sysdeps/powerpc/powerpc32/powerpc64/memcopy.h: Likewise.
6014         * sysdeps/powerpc/powerpc32/powerpc64/wordcopy.c: Likewise.
6015         * sysdeps/powerpc/powerpc32/power4/Makefile: To here.
6016         * sysdeps/powerpc/powerpc32/power4/memcopy.h: Likewise.
6017         * sysdeps/powerpc/powerpc32/power4/wordcopy.c: Likewise.
6018
6019 2006-09-10  Steven Munroe  <sjmunroe@us.ibm.com>
6020
6021         * sysdeps/powerpc/powerpc32/power6/memcpy.S: New file.
6022
6023 2006-08-31  Steven Munroe  <sjmunroe@us.ibm.com>
6024
6025         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: New file.
6026         * sysdeps/powerpc/powerpc32/powerpc64/Makefile: New file.
6027         * sysdeps/powerpc/powerpc32/powerpc64/memcopy.h: New file.
6028         * sysdeps/powerpc/powerpc32/powerpc64/wordcopy.c: New file.
6029         * sysdeps/powerpc/powerpc64/power4/Makefile: New file.
6030         * sysdeps/powerpc/powerpc64/power4/memcopy.h: New file.
6031         * sysdeps/powerpc/powerpc64/power4/wordcopy.c: New file.
6032         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: New file.
6033
6034 2006-07-06  Steven Munroe  <sjmunroe@us.ibm.com>
6035
6036         * sysdeps/powerpc/powerpc64/power6/memcpy.S: New file.
6037
6038 2006-03-20  Steven Munroe  <sjmunroe@us.ibm.com>
6039
6040         * sysdeps/powerpc/powerpc32/power4/memcmp.S: New file.
6041         * sysdeps/powerpc/powerpc32/power4/memcpy.S: New file.
6042         * sysdeps/powerpc/powerpc32/power4/memset.S: New file.
6043         * sysdeps/powerpc/powerpc32/power4/strncmp.S: New file.
6044         * sysdeps/powerpc/powerpc64/power4/memcmp.S: New file.
6045         * sysdeps/powerpc/powerpc64/power4/memcpy.S: New file.
6046         * sysdeps/powerpc/powerpc64/power4/strncmp.S: New file.
6047
6048 2007-05-29  Roland McGrath  <roland@redhat.com>
6049
6050         * po/Makefile (po-sed-cmd): New variable.
6051         (libc.pot.files): Move sed command text in there, avoid \ inside ''.
6052
6053 2007-05-29  Ulrich Drepper  <drepper@redhat.com>
6054
6055         * crypt/md5-crypt.c: Fix comment.
6056
6057         * nscd/nscd_helper.c (get_mapping): Handle short replies instead
6058         of crashing.  When this is the case or if the reply is malformed,
6059         don't try to close the new file descriptor since it does not
6060         exist.
6061         Patch in part by Guillaume Chazarain <guichaz@yahoo.fr>.
6062
6063 2007-05-28  Jakub Jelinek  <jakub@redhat.com>
6064
6065         * sysdeps/unix/sysv/linux/futimes.c (miss_utimensat): Don't define
6066         if __NR_utimensat is not defined.
6067
6068 2007-05-26  Ulrich Drepper  <drepper@redhat.com>
6069
6070         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Include <sysdep.h>.
6071
6072 2007-05-25  Jakub Jelinek  <jakub@redhat.com>
6073
6074         * io/bits/fcntl2.h (__open_2): Add nonnull attribute.
6075         (open): Fix comment typos.  Don't call __open_2 if flags
6076         is a compile time constant without O_CREAT.
6077         (__open64_2): Add nonnull attribute.
6078         (open64): Fix comment typos.  Don't call __open64_2 if flags
6079         is a compile time constant without O_CREAT.
6080         (__openat_2): Add nonnull attribute, fix nonnull attribute
6081         on redirect.
6082         (openat): Fix comment typos.  Don't call __openat_2 if flags
6083         is a compile time constant without O_CREAT.
6084         (__openat64_2): Add nonnull attribute, fix nonnull attribute
6085         on redirect.
6086         (openat64): Fix comment typos.  Don't call __openat64_2 if flags
6087         is a compile time constant without O_CREAT.
6088
6089 2007-05-24  Ulrich Drepper  <drepper@redhat.com>
6090
6091         * Makerules (sysd-rules): Define PTW for ptw-* files.
6092         * Versions: Define GLIBC_2.7 for libc.
6093         * include/stdio.h: Declare __fortify_fail.
6094         * debug/fortify_fail.c: New file.
6095         * debug/Makefile (routines): Add fortify_fail.
6096         * debug/chk_fail.c: Use __fortify_fail.
6097         * debug/stack_chk_fail.c: Likewise.
6098         * io/Versions: Export __open_2, __open64_2, __openat_2, and
6099         __openat64_2 for GLIBC_2.7.
6100         * io/fcntl.h: When compiling with fortification, include bits/fcntl2.h.
6101         * io/open.c: Define *_2 variant of function which checks for O_CREAT
6102         and fails if necessary.
6103         * io/open64.c: Likewise.
6104         * io/openat.c: Likewise.
6105         * io/openat64.c: Likewise.
6106         * sysdeps/unix/sysv/linux/open64.c: Likewise.
6107         * sysdeps/unix/sysv/linux/openat.c: Likewise.
6108         * sysdeps/unix/sysv/linux/openat64.c: Likewise.
6109         * io/bits/fcntl2.h: New file.
6110         * include/fcntl.h: Declare __open_2, __open64_2, __openat_2, and
6111         __openat64_2.
6112         * include/bits/fcntl2.h: New file.
6113         * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
6114         Add open_2.
6115         * sysdeps/unix/sysv/linux/open_2.c: New file.
6116
6117 2007-05-21  Ulrich Drepper  <drepper@redhat.com>
6118
6119         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Pass correct value
6120         as second parameter to handle_intel.
6121
6122         * nscd/aicache.c (addhstaiX): If reported TTL is zero don't cache
6123         the entry.
6124
6125         * sysdeps/unix/sysv/linux/x86_64/sysconf.c: Move cache information
6126         handling to ...
6127         * sysdeps/x86_64/cacheinfo.c: ... here.  New file.
6128         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
6129         cacheinfo.
6130         * sysdeps/x86_64/memcpy.S: Complete rewrite.
6131         * sysdeps/x86_64/mempcpy.S: Adjust appropriately.
6132         Patch by Evandro Menezes <evandro.menezes@amd.com>.
6133
6134         * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: New file.
6135
6136 2007-05-21  Jakub Jelinek  <jakub@redhat.com>
6137
6138         [BZ #4525]
6139         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add epoll_pwait.
6140         * sysdeps/unix/sysv/linux/epoll_pwait.c: New file.
6141         * sysdeps/unix/sysv/linux/syscalls.list (epoll_pwait): Remove.
6142
6143         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h (epoll_pwait): Declare.
6144
6145         [BZ #4514]
6146         * stdio-common/vfprintf.c (vfprintf): Don't shadow workstart variable,
6147         reinitialize workend at the start of each do_positional format spec
6148         loop, free workstart before do_positional loops.
6149         (printf_unknown): Fix size of work_buffer.
6150         * stdio-common/tst-sprintf.c (main): Add 3 new testcases.
6151
6152         * malloc/hooks.c (MALLOC_STATE_VERSION): Bump.
6153         (public_sET_STATe): If ms->version < 3, put all chunks into
6154         unsorted chunks and clear {fd,bk}_nextsize fields of largebin
6155         chunks.
6156
6157         * malloc/malloc.c [MALLOC_DEBUG]: Revert 2007-05-13 changes.
6158         * malloc/hooks.c: Likewise.
6159         * malloc/arena.c: Likewise.
6160         * malloc/malloc.c (do_check_malloc_state): Don't assert
6161         n_mmaps is not greater than n_mmaps_max.  This removes the need
6162         for the previous change.
6163
6164         * malloc/Makefile (CFLAGS-malloc.c): Revert accidental
6165         2007-05-07 commit.
6166
6167 2007-05-19  Ulrich Drepper  <drepper@redhat.com>
6168
6169         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PRIVATE_FUTEX):
6170         Define for kernel >= 2.6.22.
6171
6172 2007-05-18  Ulrich Drepper  <drepper@redhat.com>
6173
6174         * elf/dl-close.c (_dl_close_worker): When removing object from
6175         global scope, wait for all lookups to finish afterwards.
6176         * elf/dl-open.c (add_to_global): When global scope array must
6177         grow, allocate a new one and free old array only after all
6178         lookups finish.
6179         * elf/dl-runtime.c (_dl_fixup): Protect using global scope.
6180         (_dl_lookup_symbol_x): Likewise.
6181         * elf/dl-support.c: Define _dl_wait_lookup_done.
6182         * sysdeps/generic/ldsodefs.h (struct rtld_global): Add
6183         _dl_wait_lookup_done.
6184
6185         * malloc/malloc.c (do_check_chunk): Correct check for mmaped block
6186         not overlapping with arena.
6187
6188         * malloc/mcheck.c (reallochook): If size==0, free the block.
6189
6190         * rt/tst-shm.c: Use fstat64 instead of fstat.
6191
6192         * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Fix case where
6193         __NR_sync_file_range is not defined.
6194
6195 2007-05-17  Ulrich Drepper  <drepper@redhat.com>
6196
6197         Dummy files to prevent stub versions from being used.
6198         * sysdeps/x86_64/fpu/k_cosl.c: New file.
6199         * sysdeps/x86_64/fpu/k_rem_pio2l.c: New file.
6200         * sysdeps/x86_64/fpu/k_sinl.c: New file.
6201         * sysdeps/x86_64/fpu/k_tanl.c: New file.
6202
6203         * version.h (VERSION): Set to 2.6.90.
6204
6205 2007-05-14  Ulrich Drepper  <drepper@redhat.com>
6206
6207         * version.h (VERSION): Define to 2.6.
6208         * include/features.h (__GLIBC_MINOR__): Define to 6.
6209
6210         * malloc/malloc.c: Use all small bin slots on 64-bit archs.
6211
6212         * malloc/malloc.c (largebin_index): Really have 32 buckets with 64
6213         sizes.
6214
6215 2007-05-13  Ulrich Drepper  <drepper@redhat.com>
6216
6217         * malloc/malloc.c [MALLOC_DEBUG]: Keep track of current maximum
6218         number of mmaps.  n_mmaps_max is the target.
6219         * malloc/hooks.c: Likewise.
6220         * malloc/arena.c: Likewise.
6221
6222 2007-05-12  Andreas Jaeger  <aj@suse.de>
6223
6224         * sysdeps/unix/sysv/linux/tst-getcpu.c: Include <unistd.h> for
6225         getpid.
6226
6227 2007-05-11  Ulrich Drepper  <drepper@redhat.com>
6228
6229         * elf/dl-close.c (_dl_close_worker): Help gcc to optimize by
6230         adding new variables.
6231
6232         * elf/dl-open.c (add_to_global): Introduce variable ns to help gcc
6233         optimize.  Completely extend global scope array before making the
6234         new entries visible.
6235
6236 2007-05-10  Ulrich Drepper  <drepper@redhat.com>
6237
6238         * sysdeps/unix/sysv/linux/tst-getcpu.c: New file.
6239         * sysdeps/unix/sysv/linux/Makefile [subdir=posix] (tests): Add
6240         tst-getcpu.
6241
6242         * include/link.h: Move l_version and l_nversion members around to
6243         fill gaps.
6244
6245         * scripts/check-c++-types.sh: Don't use -fnu89-inline option.
6246
6247         * sysdeps/unix/sysv/linux/sched_setaffinity.c
6248         (__sched_setaffinity_new): If syscall was successful and
6249         RESET_VGETCPU_CACHE is defined, use it before returning.
6250         * sysdeps/unix/sysv/linux/x86_64/sched_setaffinity.c: New file.
6251
6252         * io/sys/stat.h: Make sure struct timespec is defined for
6253         __USE_ATFILE.
6254
6255         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Define UTIME_NOW and
6256         UTIME_OMIT.
6257         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
6258         * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
6259         * sysdeps/unix/sysv/linux/alpha/bits/stat.h: Likewise.
6260         * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
6261         * sysdeps/unix/sysv/linux/bits/stat.h: Likewise.
6262         * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
6263         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_UTIMENSAT.
6264         * io/sys/stat.h: Declare utimensat, futimens.
6265         * io/utimensat.c: New file.
6266         * io/futimens.c: New file.
6267         * sysdeps/unix/sysv/linux/utimensat.c: New file.
6268         * sysdeps/unix/sysv/linux/futimens.c: New file.
6269         * io/Makefile (routines): Add utimensat, futimens.
6270         * io/Versions: Add utimensat, futimens to GLIBC_2.6.
6271         * sysdeps/unix/sysv/linux/lutimes.c: New file.
6272         * sysdeps/unix/sysv/linux/futimes.c: Use utimensat syscall if
6273         available.
6274
6275         * include/sys/cdefs.h: Redefine __nonnull so that test for
6276         incorrect parameters in the libc code itself are not omitted.
6277
6278 2007-05-09  Jakub Jelinek  <jakub@redhat.com>
6279
6280         * sysdeps/ia64/fpu/fraiseexcpt.c (feraiseexcept): Don't raise overflow
6281         exception in addition to inexact when asked to raise only FE_INEXACT.
6282
6283         [BZ #3427]
6284         * sysdeps/s390/fpu/feholdexcpt.c (feholdexcept): Don't clear exceptions
6285         in *envp.
6286
6287 2007-05-07  Ulrich Drepper  <drepper@redhat.com>
6288
6289         [BZ #4403]
6290         * string/strfry.c (strfry): Make result more random.
6291
6292 2007-05-07  Richard Henderson  <rth@redhat.com>
6293
6294         * sysdeps/alpha/fpu/bits/mathinline.h (__isnanl): Don't define
6295         if __NO_LONG_DOUBLE_MATH.
6296         * sysdeps/unix/sysv/linux/alpha/ioperm.c: If BWX insns not
6297         available in the compiler, add .arch directive to the assembly.
6298
6299 2007-05-07  Jakub Jelinek  <jakub@redhat.com>
6300
6301         * sysdeps/alpha/fpu/s_nearbyint.c (nearbyintl): Fix version on
6302         compat_symbol to GLIBC_2_1.
6303         * sysdeps/alpha/fpu/s_fmin.S (fminl): Likewise.
6304         * sysdeps/alpha/fpu/s_trunc.c (truncl): Likewise.
6305         * sysdeps/alpha/fpu/s_fmax.S (fmaxl): Likewise.
6306         * sysdeps/alpha/fpu/s_lrint.c (lrintl, llrintl): Likewise.
6307         * sysdeps/alpha/fpu/s_lround.c (lroundl, llroundl): Likewise.
6308         * sysdeps/alpha/fpu/s_round.c (roundl): Likewise.
6309         * sysdeps/alpha/fpu/s_isnan.c (isnanl): Provide compat_symbol in
6310         libc, not libm.
6311         (__isnanl): New compat_symbol.
6312
6313 2007-05-07  Ulrich Drepper  <drepper@redhat.com>
6314             Jakub Jelinek  <jakub@redhat.com>
6315
6316         * malloc/arena.c (heap_info): Add mprotect_size field, adjust pad.
6317         (new_heap): Initialize mprotect_size.
6318         (grow_heap): When growing, only mprotect from mprotect_size till
6319         new_size if mprotect_size is smaller.  When shrinking, use PROT_NONE
6320         MMAP for __libc_enable_secure only, otherwise use MADV_DONTNEED.
6321
6322 2007-04-30  Steven Munroe  <sjmunroe@us.ibm.com>
6323             Peter Bergner  <bergner@us.ibm.com>
6324
6325         * sysdeps/powerpc/bits/fenv.h: Declare __fe_mask_env extern.
6326         Define FE_NOMASK_ENV as FE_EANBLED_ENV.  Define FE_MASK_ENV.
6327         * sysdeps/powerpc/fpu/Makefile: Add fe_mask to libm-support.
6328         * sysdeps/powerpc/fpu/fe_mask.c: New file.
6329         * sysdeps/powerpc/fpu/fe_nomask.c: Correct comment.
6330         * sysdeps/powerpc/fpu/fedisblxcpt.c (fedisableexcept):
6331         Call __fe_mask_env() if all FP exceptions disabled.
6332         * sysdeps/powerpc/fpu/feholdexcpt.c (feholdexcept): Copy high 32-bits
6333         from old FPSCR to new fenv to propagate DFP rounding modes.
6334         Call __fe_mask_env() if FP exceptions previously enabled.
6335         * sysdeps/powerpc/fpu/fesetenv.c (fesetenv): Change mask to merge
6336         exceptions from env.  Use __fe_nomask_env() or __fe_mask_env() when
6337         transitioning from all exceptions disabled to any exception enabled
6338         or visa versa.
6339         * sysdeps/powerpc/fpu/feupdateenv.c (__feupdateenv): Change mask to
6340         merge exceptions from env.  Call __fe_nomask_env or __fe_mask_env
6341         when transitioning from all exceptions disabled to any exception
6342         enabled or visa versa.
6343         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fe_nomask.c: Moved to...
6344         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c: ...here.
6345         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c: Moved to...
6346         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c: ...here.
6347         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c: New file.
6348         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c: New file.
6349
6350 2007-05-06  Ulrich Drepper  <drepper@redhat.com>
6351
6352         [BZ #4465]
6353         * posix/unistd.h: Remove __THROW from fdatasync.
6354
6355 2007-05-06  Mike Frysinger  <vapier@gentoo.org>
6356
6357         [BZ #4465]
6358         * sysdeps/unix/sysv/linux/syscalls.list (fdatasync): Add "C" to args.
6359
6360 2007-05-06  Ulrich Drepper  <drepper@redhat.com>
6361
6362         * stdio-common/vfprintf.c (process_string_arg): Optimize
6363         ridiculous precision in wide char code printing multi-byte string.
6364         Reported by Jim Meyering <jim@meyering.net>.
6365
6366         [BZ #4131]
6367         * elf/dl-addr.c (_dl_addr): Compare address with actual segment
6368         boundaries to work around systems with overlapping binary loading.
6369         Based on a patch by Suzuki <suzuki@in.ibm.com>.
6370
6371 2007-05-04  Ulrich Drepper  <drepper@redhat.com>
6372
6373         * stdio-common/vfprintf.c (process_string_arg): Adjust call to
6374         __mbsnrtowcs after last change.
6375
6376         * locale/programs/linereader.c (get_symname): Fix adding final NUL.
6377         (get_ident): Likewise.
6378
6379 2007-05-03  Jakub Jelinek  <jakub@redhat.com>
6380
6381         * soft-fp/op-common.h (FP_TRUNC): Replace raising of FP_EX_INEXACT
6382         with setting the sticky bit.
6383         * math/test-misc.c (main): Add more truncation tests.
6384
6385 2007-04-14  Uros Bizjak  <ubizjak@gmail.com>
6386
6387         * soft-fp/floatunsidf.c (__floatunsidf): Use DFtype instead of
6388         double in the function declaration.
6389         * soft-fp/floatundidf.c (__floatundidf): Use DFtype instead of
6390         double in the function declaration.
6391         * soft-fp/floatunsisf.c (__floatunsisf): Use SFtype instead of
6392         float in the function declaration.
6393         * soft-fp/floatunsisf.c (__floatunsisf): Use SFtype instead of
6394         float in the function declaration.
6395
6396         * soft-fp/extended.h (FP_UNPACK_RAW_E): Do not increase X##_e for
6397         denormal operands.  Do not generate FP_EX_DENORM exception.
6398         (FP_UNPACK_RAW_EP): Ditto.
6399         (FP_UNPACK_SEMIRAW_E): Use FP_UNPACK_RAW_E instead of
6400         undefined _FP_UNPACK_RAW_E.
6401         (FP_UNPACK_SEMIRAW_EP): Use FP_UNPACK_RAW_EP instead of
6402         undefined _FP_UNPACK_RAW_EP.
6403         (FP_PACK_SEMIRAW_E): Use FP_PACK_RAW_E instead of
6404         undefined _FP_PACK_RAW_E.
6405         (FP_PACK_SEMIRAW_EP): Use FP_PACK_RAW_EP instead of
6406         undefined _FP_PACK_RAW_EP.
6407
6408         * soft-fp/op-2.h (_FP_FRAC_COPY_2_2): Define as alias to
6409         _FP_FRAC_COPY_2.
6410         * soft-fp/op-4.h (_FP_FRAC_COPY_2_2): Define as alias to
6411         _FP_FRAC_COPY_4.
6412
6413 2007-04-16  Uros Bizjak  <ubizjak@gmail.com>
6414             Jakub Jelinek  <jakub@redhat.com>
6415
6416         * soft-fp/op-common.h (FP_EXTEND): Do not abort when
6417         _FP_EXPBIAS_##dfs == _FP_EXPBIAS_##sfs.  Handle denormals for
6418         this case.
6419         * soft-fp/op-common.h (FP_TRUNC): Ditto.
6420
6421 2007-05-03  Jakub Jelinek  <jakub@redhat.com>
6422
6423         * math/test-misc.c (main): Add tests for rounding long double
6424         values close to smallest double denormalized value to double.
6425
6426 2007-04-30  Joseph Myers  <joseph@codesourcery.com>
6427
6428         * soft-fp/op-common.h (FP_TRUNC): Correct off-by-one error in
6429         condition for truncating to 0.  Set sticky bit for such
6430         truncation.
6431
6432 2007-05-02  Jakub Jelinek  <jakub@redhat.com>
6433
6434         * stdio-common/vfprintf.c (process_string_arg): Use a VLA rather than
6435         fixed length array for ignore.
6436
6437 2007-04-30  Ulrich Drepper  <drepper@redhat.com>
6438
6439         [BZ #4438]
6440         * stdio-common/vfprintf.c (process_string_arg): Don't overflow the
6441         stack for large precisions.
6442         * stdio-common/test-vfprintf.c (main): Add test for large
6443         precision.
6444
6445 2007-04-30  Jakub Jelinek  <jakub@redhat.com>
6446
6447         * stdio-common/printf_fp.c (___printf_fp): Don't print negative sign
6448         for exponent 0.
6449         * stdio-common/tfformat.c (sprint_doubles): Add a new test.
6450
6451         [BZ #4439]
6452         * resolv/inet_ntop.c (inet_ntop4): Take terminating '\0' into
6453         account in the size check.
6454         * resolv/tst-inet_ntop.c: New test.
6455         * resolv/Makefile (tests): Add tst-inet_ntop.
6456
6457 2007-04-30  Ulrich Drepper  <drepper@redhat.com>
6458             Jakub Jelinek  <jakub@redhat.com>
6459
6460         [BZ #4349]
6461         * malloc/malloc.c: Keep separate list for first blocks on the bin
6462         lists with a given size.  This helps skipping over list elements
6463         we know won't fit in two places.
6464         Inspired by a patch by Tomash Brechko <tomash.brechko@gmail.com>.
6465
6466 2007-04-28  Ulrich Drepper  <drepper@redhat.com>
6467
6468         [BZ #4102]
6469         * sysdeps/posix/getaddrinfo.c (default_labels): Assign separate
6470         label to Teredo tunnel addresses 2001://32.
6471
6472 2007-04-27  Ulrich Drepper  <drepper@redhat.com>
6473
6474         * locale/programs/ld-collate.c (collate_read): Allow order_start
6475         after copy.
6476
6477         * locale/programs/ld-collate.c (collate_read): Fix printing of
6478         error message.
6479
6480         [BZ #3213]
6481         * locale/C-translit.h.in: Add entry for U2044.
6482
6483         [BZ #4342]
6484         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Allow
6485         hexa-decimal floats without exponent.
6486         * stdio-common/tstscanf.c (main): Adjust Test 8 test for success.
6487
6488 2007-04-25  Ulrich Drepper  <drepper@redhat.com>
6489
6490         * sysdeps/unix/sysv/linux/bits/sched.h: Declare sched_getcpu.
6491         * sysdeps/unix/sysv/linux/sched_getcpu.c: New file.
6492         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: New file.
6493         * sysdeps/unix/sysv/linux/Versions: Export sched_getcpu for
6494         GLIBC_2.6.
6495         * sysdeps/unix/sysv/linux/Makefile [subdir=posix] (sysdep_routines):
6496         Add sched_getcpu.
6497
6498 2007-04-25  Jakub Jelinek  <jakub@redhat.com>
6499
6500         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Return -1 instead
6501         of 0 after the out_fail label.
6502
6503 2007-04-25  Ulrich Drepper  <drepper@redhat.com>
6504
6505         [BZ #4406]
6506         * iconv/gconv_charset.h (strip): Allow ':'.
6507         * iconv/iconv_open.c (iconv_open): Adjust comment.
6508
6509 2007-04-25  Jakub Jelinek  <jakub@redhat.com>
6510
6511         * libio/bits/stdio.h (fgetc_unlocked): Add extern inline optimized
6512         version.
6513
6514 2007-04-23  Jakub Jelinek  <jakub@redhat.com>
6515
6516         [BZ #4381]
6517         * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Ensure sufficient
6518         alignment of buffer and tmp_buffer.
6519         * nis/nss_nis/nis-hosts.c (internal_nis_gethostent_r,
6520         internal_gethostbyname2_r, _nss_nis_gethostbyaddr_r): Ensure sufficient
6521         alignment of buffer.
6522         * resolv/nss_dns/dns-hosts.c (getanswer_r): Likewise.  Handle buflen
6523         bigger than INT_MAX.
6524         * resolv/nss_dns/dns-network.c (getanswer_r): Likewise.  Add errnop and
6525         h_errnop arguments.  Fail if buflen is too small.
6526         (_nss_dns_getnetbyname_r, _nss_dns_getnetbyaddr_r): Adjust callers.
6527
6528 2007-04-23  Jakub Jelinek  <jakub@redhat.com>
6529
6530         [BZ #4405]
6531         * iconvdata/gconv-modules (E13B): Add a missing slash to the alias
6532         name.  Patch by Aurelien Jarno <aurelien@aurel32.net>.
6533
6534 2007-04-22  Roland McGrath  <roland@redhat.com>
6535
6536         * elf/elf.h (NT_PRXFPREG): New macro.
6537
6538 2007-04-19  Andreas Jaeger  <aj@suse.de>
6539
6540         [BZ #3905]
6541         * bits/in.h (IPV6_ROUTER_ALERT, IPV6_MTU_DISCOVER, IPV6_MTU,
6542         IPV6_RECVERR, IPV6_V6ONLY, IPV6_JOIN_ANYCAST, IPV6_LEAVE_ANYCAST):
6543         Added.
6544
6545 2007-04-19  Ulrich Drepper  <drepper@redhat.com>
6546
6547         * include/sys/mman.h: Mark madvise hidden.
6548         * misc/madvise.c: Add libc_hidden_def.
6549
6550 2007-04-06  Jakub Jelinek  <jakub@redhat.com>
6551
6552         * nis/nis_domain_of.c (__nis_domain_of): New function.
6553         * include/rpcsvc/nislib.h (__nis_domain_of): New prototype.
6554         * nis/nis_lookup.c (nis_lookup): Use __nis_domain_of.
6555         * nis/nis_call.c (rec_dirsearch): Likewise.
6556         (first_shoot): Likewise.  Remove search_parent_first argument.
6557         (struct nis_server_cache): Rename search_parent_first field
6558         to search_parent.
6559         (nis_server_cache_search, nis_server_cache_add): Rename
6560         search_parent_first argument to search_parent.
6561         (__nisfind_server): Likewise.  If search_parent, call
6562         __nis_domain_of.
6563
6564 2007-04-18  Ulrich Drepper  <drepper@redhat.com>
6565
6566         * sysdeps/posix/getaddrinfo.c: Remove commented-out code.
6567
6568 2007-04-17  Ulrich Drepper  <drepper@redhat.com>
6569
6570         [BZ #4368]
6571         * stdlib/stdlib.h: Remove obsolete part of comment for realpath.
6572
6573 2007-04-16  Ulrich Drepper  <drepper@redhat.com>
6574
6575         [BZ #4364]
6576         * posix/unistd.h (_XOPEN_VERSION): Define appropriately for SUSv3.
6577
6578 2007-04-15  Jakub Jelinek  <jakub@redhat.com>
6579
6580         * locale/programs/locarchive.c (INITIAL_NUM_NAMES,
6581         INITIAL_SIZE_STRINGS, INITIAL_NUM_LOCREC): Update to accomodate
6582         current number of locales in SUPPORTED.
6583         (create_archive): Initialize serial.
6584         (enlarge_archive): Preserve aliases rather than duplicating
6585         their locrecs.
6586
6587 2007-04-13  Jakub Jelinek  <jakub@redhat.com>
6588
6589         * libio/genops.c (_IO_default_finish): Call _IO_lock_fini
6590         after _IO_un_link, not before it.
6591
6592         * stdio-common/printf_fp.c (___printf_fp): Fix exponent -4
6593         special case handling when wcp == wstartp + 1.  Fix a comment typo.
6594         * stdio-common/tfformat.c (sprint_doubles): Add a new testcase.
6595
6596 2007-03-30  Jakub Jelinek  <jakub@redhat.com>
6597
6598         * libio/libio.h (__underflow, __uflow, __overflow, __wunderflow,
6599         __wuflow, __woverflow, _IO_getc, _IO_putc, _IO_peekc_locked, _IO_padn,
6600         _IO_sgetn, _IO_seekoff, _IO_seekpos, _IO_getwc, _IO_putwc, _IO_wpadn):
6601         Remove __THROW.
6602         * libio/fileops.c (new_do_write, _IO_file_xsgetn_mmap,
6603         _IO_file_xsgetn_maybe_mmap): Likewise.
6604         * libio/oldfileops.c (old_do_write): Likewise.
6605         * libio/libioP.h (_IO_switch_to_get_mode, _IO_switch_to_wget_mode,
6606         _IO_init_marker, _IO_init_wmarker, _IO_default_uflow,
6607         _IO_wdefault_uflow, _IO_default_setbuf, _IO_default_seekpos,
6608         _IO_do_write, _IO_new_do_write, _IO_old_do_write, _IO_wdo_write,
6609         _IO_flush_all_lockp, _IO_flush_all, _IO_cleanup,
6610         _IO_flush_all_linebuffered, _IO_new_fgetpos, _IO_old_fgetpos,
6611         _IO_new_fsetpos, _IO_old_fsetpos, _IO_new_fgetpos64,
6612         _IO_old_fgetpos64, _IO_new_fsetpos64, _IO_old_fsetpos64,
6613         _IO_file_setbuf, _IO_file_seekoff, _IO_file_xsputn, _IO_file_xsgetn,
6614         _IO_file_underflow, _IO_file_underflow_mmap,
6615         _IO_file_underflow_maybe_mmap, _IO_file_overflow, _IO_file_attach,
6616         _IO_file_open, _IO_file_fopen, _IO_file_write, _IO_file_read,
6617         _IO_file_sync, _IO_file_close_it, _IO_file_finish,
6618         _IO_new_file_attach, _IO_new_file_close_it, _IO_new_file_finish,
6619         _IO_new_file_fopen, _IO_new_file_setbuf, _IO_file_setbuf_mmap,
6620         _IO_new_file_sync, _IO_new_file_underflow, _IO_new_file_overflow,
6621         _IO_new_file_seekoff, _IO_new_file_write, _IO_new_file_xsputn,
6622         _IO_old_file_setbuf, _IO_old_file_seekoff, _IO_old_file_xsputn,
6623         _IO_old_file_underflow, _IO_old_file_overflow, _IO_old_file_attach,
6624         _IO_old_file_fopen, _IO_old_file_write, _IO_old_file_sync,
6625         _IO_old_file_close_it, _IO_old_file_finish, _IO_wfile_xsputn,
6626         _IO_wfile_setbuf, _IO_wfile_sync, _IO_wfile_underflow,
6627         _IO_wfile_overflow, _IO_wfile_seekoff, _IO_old_proc_open,
6628         _IO_old_proc_close, _IO_getdelim, _IO_flush_all_internal,
6629         _IO_adjust_column_internal, _IO_default_uflow_internal,
6630         _IO_default_xsgetn_internal, _IO_wdefault_xsputn_internal,
6631         _IO_wdefault_xsgetn_internal, _IO_wdefault_uflow_internal,
6632         _IO_file_setbuf_internal, _IO_file_seekoff_internal,
6633         _IO_file_xsputn_internal, _IO_file_xsgetn_internal,
6634         _IO_file_close_it_internal, _IO_file_underflow_internal,
6635         _IO_file_overflow_internal, _IO_file_attach_internal,
6636         _IO_file_fopen_internal, _IO_file_sync_internal,
6637         _IO_file_finish_internal, _IO_wfile_xsputn_internal,
6638         _IO_wfile_seekoff_internal, _IO_wfile_sync_internal,
6639         _IO_switch_to_wget_mode_internal, _IO_padn_internal,
6640         _IO_switch_to_get_mode_internal, _IO_seekoff_unlocked,
6641         _IO_seekpos_unlocked): Likewise.
6642         (_IO_strtod, _IO_dtoa, _IO_outfloat, _IO_read, _IO_write,
6643         _IO_lseek, _IO_close, _IO_fstat): Remove unused prototypes.
6644
6645 2007-04-16  Jakub Jelinek  <jakub@redhat.com>
6646
6647         * locale/programs/locarchive.c (show_archive_content): Fix sizeof
6648         argument in xmalloc size computation.
6649
6650 2007-04-01  Jakub Jelinek  <jakub@redhat.com>
6651
6652         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl): Use
6653         math_opt_barrier and math_force_eval macros.
6654
6655 2007-03-27  Jakub Jelinek  <jakub@redhat.com>
6656
6657         [BZ #3306]
6658         * math/math_private.h (math_opt_barrier, math_force_eval): Define.
6659         * sysdeps/i386/fpu/math_private.h: New file.
6660         * sysdeps/x86_64/fpu/math_private.h: New file.
6661         * math/s_nexttowardf.c (__nexttowardf): Use math_opt_barrier and
6662         math_force_eval macros.  Use "+m" constraint on asm rather than
6663         "=m" and "m".
6664         * math/s_nextafter.c (__nextafter): Likewise.
6665         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c (__nexttoward):
6666         Likewise.
6667         * sysdeps/ieee754/flt-32/s_nextafterf.c (__nextafterf): Likewise.
6668         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward): Likewise.
6669         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
6670         * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Use
6671         math_opt_barrier and math_force_eval macros.
6672         * sysdeps/ieee754/ldbl-128/s_nextafterl.c (__nextafterl): Likewise.
6673         * sysdeps/ieee754/ldbl-96/s_nextafterl.c (__nextafterl): Likewise.
6674         * sysdeps/i386/fpu/s_nexttoward.c: Include float.h.
6675         (__nexttoward): Use math_opt_barrier and
6676         math_force_eval macros.  Use "+m" constraint on asm rather than
6677         "=m" and "m".  Only use asm to force double result if
6678         FLT_EVAL_METHOD is 2.
6679         * sysdeps/i386/fpu/s_nexttowardf.c: Include float.h.
6680         (__nexttowardf): Use math_opt_barrier and
6681         math_force_eval macros.  Use "+m" constraint on asm rather than
6682         "=m" and "m".  Only use asm to force double result if
6683         FLT_EVAL_METHOD is not 0.
6684         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Include float.h.
6685         (__nexttowardf): Use math_opt_barrier and
6686         math_force_eval macros.  If FLT_EVAL_METHOD is not 0, force
6687         x to float using asm.
6688         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c: Include float.h.
6689         (__nldbl_nexttowardf): Use math_opt_barrier and
6690         math_force_eval macros.  If FLT_EVAL_METHOD is not 0, force
6691         x to float using asm.
6692         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Include float.h.
6693         (__nexttowardf): Use math_opt_barrier and math_force_eval
6694         macros.  If FLT_EVAL_METHOD is not 0, force x to float using asm.
6695         * math/bug-nextafter.c (zero, inf): New variables.
6696         (main): Add new tests.
6697         * math/bug-nexttoward.c (zero, inf): New variables.
6698         (main): Add new tests.
6699
6700 2007-03-22  Jakub Jelinek  <jakub@redhat.com>
6701
6702         [BZ #3427]
6703         * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Clear all
6704         exceptions both in SW and MXCSR.
6705         * sysdeps/x86_64/fpu/feupdateenv.c: New file.
6706         * sysdeps/x86_64/fpu/feenablxcpt.c (feenableexcept): Remove dead code.
6707         * sysdeps/x86_64/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
6708         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions
6709         in MXCSR if SSE is available.
6710         * sysdeps/i386/fpu/feupdateenv.c: Include unistd.h, dl-procinfo.h
6711         and ldsodefs.h.
6712         (__feupdateenv): Query exceptions also from MXCSR if SSE is available.
6713         Fix comment typo.
6714         * sysdeps/ia64/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions.
6715         Return 0 rather than 1.
6716         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Fix comment typo.
6717         Remove incorrect part of a comment.  Fix argument to feraiseexcept.
6718         * math/test-fenv.c (feholdexcept_tests): New function.
6719         (main): Call it.
6720
6721 2007-01-05  Richard B. Kreckel  <kreckel@ginac.de>
6722
6723         [BZ #3427]
6724         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions
6725         in SW.
6726
6727 2007-04-13  Jakub Jelinek  <jakub@redhat.com>
6728
6729         [BZ #4344]
6730         * elf/ldconfig.c (search_dir): Fix 2 off-by-2 errors.
6731         Reported by David Anderson <davea42@earthlink.net>.
6732
6733 2007-04-07  Ulrich Drepper  <drepper@redhat.com>
6734
6735         * posix/sys/wait.h: Remove unnecessary forward declaration.
6736
6737 2007-04-05  Jakub Jelinek  <jakub@redhat.com>
6738
6739         * nis/nis_call.c (__nisfind_server): Replace (*dir)->do_servers
6740         with obj->do_servers after first_shoot.
6741
6742 2007-04-03  Ulrich Drepper  <drepper@redhat.com>
6743
6744         * posix/Makefile (routines): Add sched_cpucount.
6745         (tests): Add tst-cpucount.
6746         * posix/sched_cpucount.c: New file.
6747         * posix/tst-cpucount.c: New file.
6748         * posix/Versions: Export __sched_cpucount with version GLIBC_2.6.
6749         * bits/sched.h: Define __CPU_COUNT.  Declare __sched_cpucount.
6750         * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
6751         * posix/sched.h: Define CPU_COUNT.
6752
6753 2007-03-27  Jakub Jelinek  <jakub@redhat.com>
6754
6755         * posix/fnmatch.c (STRUCT): Define.
6756         (fnmatch): Pass NULL as last argument to internal_fn{,w}match.
6757         * posix/fnmatch_loop.c (struct STRUCT): New type.
6758         (FCT): Add ends argument.  If ends != NULL and normal * is
6759         seen in the pattern, store current pattern and string pointers
6760         and return.  Adjust recursive calls.
6761         (EXT): Adjust FCT callers.
6762         (STRUCT): Undef at the end of the file.
6763         * posix/Makefile (tests): Add tst-fnmatch2.
6764         * posix/tst-fnmatch2.c: New test.
6765
6766 2007-04-01  Jakub Jelinek  <jakub@redhat.com>
6767
6768         * sysdeps/ia64/fpu/fesetround.c (fesetround): Return 0 on success
6769         and 1 on failure.
6770
6771         * sysdeps/unix/sysv/linux/sync_file_range.c (sync_file_range):
6772         Change last argument to unsigned int.
6773
6774 2007-03-23  Jakub Jelinek  <jakub@redhat.com>
6775
6776         * scripts/check-local-headers.sh: Filter out sys/capability.h.
6777
6778 2007-03-22  Jakub Jelinek  <jakub@redhat.com>
6779
6780         * config.h.in (HAVE_LIBCAP): Add.
6781         * nscd/selinux.h: Include sys/capability.h rather than non-existent
6782         sys/capabilities.h.
6783         * nscd/selinux.c (preserve_capabilities): Use cap_free instead of
6784         free_caps.  Cast away const from 4th cap_set_flag argument.
6785
6786 2007-03-26  Ulrich Drepper  <drepper@redhat.com>
6787
6788         * sysdeps/unix/sysv/linux/Versions: Move sync_file_range to
6789         GLIBC_2.6.
6790         * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
6791         Add sync_file_range.
6792         Reported by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
6793
6794 2007-03-19  Steven Munroe  <sjmunroe@us.ibm.com>
6795
6796         * sysdeps/powerpc/bits/atomic.h
6797         [!MUTEX_HINT_ACQ]: Define MUTEX_HINT_ACQ.
6798         [!MUTEX_HINT_REL]: Define MUTEX_HINT_REL.
6799         (__arch_compare_and_exchange_val_32_acq): Add MUTEX_HINT_ACQ to lwarx.
6800         (__arch_compare_and_exchange_val_32_rel): Add MUTEX_HINT_REL to lwarx.
6801         (__arch_atomic_exchange_val_32_acq): Add MUTEX_HINT_ACQ to lwarx.
6802         (__arch_atomic_exchange_rel_32_rel): Add MUTEX_HINT_REL to lwarx.
6803         * sysdeps/powerpc/powerpc32/bits/atomic.h [_ARCH_PWR6 || _ARCH_PWR6X]:
6804         Define MUTEX_HINT_ACQ as ",1" and MUTEX_HINT_REL as ",0".
6805         (__arch_compare_and_exchange_bool_32_acq): Add MUTEX_HINT_ACQ to lwarx.
6806         (__arch_compare_and_exchange_bool_32_rel): Add MUTEX_HINT_REL to lwarx.
6807         * sysdeps/powerpc/powerpc64/bits/atomic.h [_ARCH_PWR6 || _ARCH_PWR6D]:
6808         Define MUTEX_HINT_ACQ as ",1" and MUTEX_HINT_REL as ",0".
6809         (__arch_compare_and_exchange_bool_32_acq): Add MUTEX_HINT_ACQ to lwarx.
6810         (__arch_compare_and_exchange_bool_32_rel): Add MUTEX_HINT_REL to lwarx.
6811         (__arch_compare_and_exchange_bool_64_acq): Add MUTEX_HINT_ACQ to lwarx.
6812         (__arch_compare_and_exchange_bool_64_rel): Add MUTEX_HINT_REL to lwarx.
6813         (__arch_compare_and_exchange_val_64_acq): Add MUTEX_HINT_ACQ to lwarx.
6814         (__arch_compare_and_exchange_val_64_rel): Add MUTEX_HINT_REL to lwarx.
6815         (__arch_atomic_exchange_val_64_acq): Add MUTEX_HINT_ACQ to lwarx.
6816         (__arch_atomic_exchange_rel_64_rel): Add MUTEX_HINT_REL to lwarx.
6817
6818 2007-03-20  Jakub Jelinek  <jakub@redhat.com>
6819
6820         * sysdeps/unix/sysv/linux/powerpc/libc-start.c
6821         (__cache_line_size): Define the variable here.  Add
6822         attribute_hidden, remove weak_extern.
6823         (__libc_start_main): Set __cache_line_size
6824         unconditionally.
6825         * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
6826         (__cache_line_size): Define the variable here.  Add
6827         attribute_hidden, remove weak_extern.
6828         (DL_PLATFORM_AUXV): Set __cache_line_size
6829         unconditionally.
6830         * sysdeps/powerpc/powerpc32/dl-machine.c (__cache_line_size): Remove
6831         weak_extern, add attribute_hidden.
6832         (__elf_machine_runtime_setup): Assume __cache_line_size is always
6833         defined in ld.so.
6834         * sysdeps/powerpc/powerpc32/memset.S (__cache_line_size): Remove
6835         definition.
6836         * sysdeps/powerpc/powerpc64/memset.S (__cache_line_size): Likewise.
6837
6838 2007-03-26  Jakub Jelinek  <jakub@redhat.com>
6839
6840         [BZ #4276]
6841         * timezone/africa: Update from tzdata2007d.
6842         * timezone/asia: Likewise.
6843         * timezone/australasia: Likewise.
6844         * timezone/backward: Likewise.
6845         * timezone/europe: Likewise.
6846         * timezone/iso3166.tab: Likewise.
6847         * timezone/leapseconds: Likewise.
6848         * timezone/northamerica: Likewise.
6849         * timezone/southamerica: Likewise.
6850         * timezone/zone.tab: Likewise.
6851
6852         * timezone/private.h: Update from tzcode2007d.
6853         * timezone/zdump.c: Likewise.
6854         * timezone/zic.c: Likewise.
6855
6856 2007-03-21  Jakub Jelinek  <jakub@redhat.com>
6857
6858         * nis/nis_call.c: Include bits/libc-lock.h, sys/stat.h, unistd.h.
6859         (nis_server_cache, nis_server_cache_lock, nis_cold_start_mtime): New
6860         variables.
6861         (nis_server_cache_search, nis_server_cache_add): New functions.
6862         (__nisfind_server): Use them.  Add dbp and flags argument, if
6863         call __nisbind_create.
6864         (__nisbind_create): Add server_used and current_ep arguments,
6865         only call __nis_findfastest if server_used is ~0.
6866         (__do_niscall2, __prepare_niscall): Adjust callers.
6867         (ckey_cache, ckey_cache_size, ckey_cache_allocated, ckey_cache_pid,
6868         ckey_cache_euid, ckey_cache_lock): New variables.
6869         (get_ckey): New function.
6870         (__nisbind_connect): If not dbp->use_udp, pass IPPROTO_TCP to
6871         __pmap_getnisport.  Save __pmap_getnisport result in
6872         dbp->addr.sin_port if non-zero.  Use get_ckey to create conversation
6873         key.
6874         * nis/nis_lookup.c (nis_lookup): Likewise.
6875         * nis/nis_table.c (nis_list): Likewise.
6876         * nis/rpcsvc/nislib.h (__nisbind_create, __nisfind_server): Adjust
6877         prototypes.
6878
6879         * nis/nss_nisplus/nisplus-pwd.c (_nss_nisplus_getpwnam_r,
6880         _nss_nisplus_getpwuid_r): Pass USE_DGRAM flag to nis_list.
6881         * nis/nss_nisplus/nisplus-service.c (_nss_nisplus_getservbyname_r,
6882         _nss_nisplus_getservbyport_r): Likewise.
6883         * nis/nss_nisplus/nisplus-network.c (_nss_nisplus_getnetbyname_r,
6884         _nss_nisplus_getnetbyaddr_r): Likewise.
6885         * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_getspnam_r): Likewise.
6886         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_gethostton_r,
6887         _nss_nisplus_getntohost_r): Likewise.
6888         * nis/nss_nisplus/nisplus-rpc.c (_nss_nisplus_getrpcbyname_r,
6889         _nss_nisplus_getrpcbynumber_r): Likewise.
6890
6891 2007-03-20  Jakub Jelinek  <jakub@redhat.com>
6892
6893         * configure.in (libc_cv_gnu89_inline): Only do compile test.
6894         * configure: Rebuilt.
6895
6896         * soft-fp/double.h (_FP_UNION_D): Use _FP_W_TYPE for frac
6897         bit-fields.
6898         * soft-fp/extended.h (_FP_UNION_E): Likewise.
6899
6900 2006-06-07  Joseph Myers  <joseph@codesourcery.com>
6901
6902         [BZ #2831]
6903         * soft-fp/quad.h (_FP_UNION_Q): Use _FP_W_TYPE for frac
6904         bit-fields.
6905
6906 2007-03-18  Jakub Jelinek  <jakub@redhat.com>
6907
6908         * nscd/gai.c: Include alloca.h.
6909         (__libc_use_alloca): Define.
6910
6911 2007-03-16  Jakub Jelinek  <jakub@redhat.com>
6912
6913         * elf/dl-open.c (dl_open_worker): Declare l in 2 different
6914         smaller scopes.
6915         * elf/dl-dst.h (DL_DST_REQ_STATIC): Add l as macro argument.
6916         (DL_DST_REQUIRED): Adjust user.
6917
6918         * include/dlfcn.h (struct link_map): New forward decl.
6919
6920         * inet/getnameinfo.c: Include stddef.h.
6921         (getnameinfo): Use offsetof.
6922
6923         * time/tst-mktime2.c (do_test): Don't rely on signed wrap.
6924
6925         * stdio-common/vfprintf.c (_itoa): Undef before redefining.
6926
6927         * string/strerror_l.c: Include stdlib.h.
6928
6929         * configure.in (libc_cv_gnu89_inline): Test for -fgnu89-inline.
6930         * config.make.in (gnu89-inline-CFLAGS): New variable.
6931         * Makeconfig (CFLAGS): Use $(gnu89-inline-CFLAGS) together with
6932         -std=gnu99.
6933         * misc/sys/cdefs.h (__extern_inline, __extern_always_inline): Define.
6934         * argp/argp.h: Use it.
6935         * bits/mathinline.h: Likewise.
6936         * bits/sigset.h: Likewise.
6937         * bits/string.h: Likewise.
6938         * ctype/ctype.h: Likewise.
6939         * hurd/hurd.h: Likewise.
6940         * hurd/hurd/fd.h: Likewise.
6941         * hurd/hurd/port.h: Likewise.
6942         * hurd/hurd/signal.h: Likewise.
6943         * hurd/hurd/threadvar.h: Likewise.
6944         * hurd/hurd/userlink.h: Likewise.
6945         * io/sys/stat.h: Likewise.
6946         * libio/bits/stdio.h: Likewise.
6947         * libio/bits/stdio2.h: Likewise.
6948         * mach/lock-intern.h: Likewise.
6949         * mach/mach/mig_support.h: Likewise.
6950         * math/bits/cmathcalls.h: Likewise.
6951         * posix/bits/unistd.h: Likewise.
6952         * socket/bits/socket2.h: Likewise.
6953         * stdlib/bits/stdlib.h: Likewise.
6954         * stdlib/stdlib.h: Likewise.
6955         * string/argz.h: Likewise.
6956         * string/bits/string2.h: Likewise.
6957         * string/bits/string3.h: Likewise.
6958         * sysdeps/alpha/fpu/bits/mathinline.h: Likewise.
6959         * sysdeps/generic/inttypes.h: Likewise.
6960         * sysdeps/generic/machine-lock.h: Likewise.
6961         * sysdeps/generic/machine-sp.h: Likewise.
6962         * sysdeps/i386/fpu/bits/mathinline.h: Likewise.
6963         * sysdeps/i386/i486/bits/string.h: Likewise.
6964         * sysdeps/ia64/fpu/bits/mathinline.h: Likewise.
6965         * sysdeps/mach/alpha/machine-lock.h: Likewise.
6966         * sysdeps/mach/alpha/machine-sp.h: Likewise.
6967         * sysdeps/mach/i386/machine-lock.h: Likewise.
6968         * sysdeps/mach/powerpc/machine-lock.h: Likewise.
6969         * sysdeps/mach/powerpc/machine-sp.h: Likewise.
6970         * sysdeps/powerpc/fpu/bits/mathinline.h: Likewise.
6971         * sysdeps/s390/bits/string.h: Likewise.
6972         * sysdeps/s390/fpu/bits/mathinline.h: Likewise.
6973         * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
6974         * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Likewise.
6975         * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
6976         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
6977         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Likewise.
6978         * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
6979         * wcsmbs/bits/wchar2.h: Likewise.
6980         * wcsmbs/wchar.h: Likewise.
6981         * stdlib/gmp.h: Likewise.  Include <features.h> to get
6982         __extern_inline definition.
6983
6984 2007-03-15  Jakub Jelinek  <jakub@redhat.com>
6985
6986         * locale/programs/ld-ctype.c (find_translit): Return NULL if ctype is
6987         NULL.
6988
6989         [BZ #3919]
6990         * math/libm-test.inc (log_test): Test -Inf and NaN.
6991         (log10_test, log1p_test, log2_test): Test -Inf.
6992         * sysdeps/i386/fpu/e_log.S (__ieee754_log): Don't raise
6993         FE_INVALID when argument is qNaN.
6994         * sysdeps/i386/fpu/e_logl.S (__ieee754_logl): Likewise.
6995         * sysdeps/i386/fpu/e_logf.S (__ieee754_logf): Likewise.
6996         * sysdeps/x86_64/fpu/e_logl.S (__ieee754_logl): Likewise.
6997         * sysdeps/x86_64/fpu/e_log10l.S (__ieee754_log10l): Replace
6998         andb $1, %ah with testb $1, %ah, don't test for parity, instead
6999         testb $4, %ah and jump if non-zero.
7000         * sysdeps/x86_64/fpu/e_log2l.S (__ieee754_log2l): Likewise.
7001         * sysdeps/x86_64/fpu/s_log1pl.S (__log1pl): Likewise.
7002
7003         [BZ #4101]
7004         * argp/argp-help.c (hol_cluster_cmp): Fix comparisons used to find
7005         ancestors with the same depths.
7006         Patch by Niels Moeller <nisse@lysator.liu.se>.
7007         (filter_doc): Don't crash if argp is NULL.
7008         * argp/Makefile (tests): Add tst-argp2.
7009         * argp/tst-argp2.c: New test.
7010
7011         [BZ #4130]
7012         * login/utmp_file.c (setutent_file): Use O_LARGEFILE for
7013         open_not_cancel_2.
7014         (updwtmp_file): Likewise.
7015
7016         [BZ #4181]
7017         * inet/inet6_opt.c (add_padding): Only insert padding if npad > 0.
7018         (inet6_opt_append): Don't check extlen is big enough if extbuf
7019         is NULL.
7020         (inet6_opt_finish): Likewise.
7021         * inet/Makefile (tests): Add test-inet6_opt.
7022         * inet/test-inet6_opt.c: New test.
7023
7024         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Never
7025         reallocate the buffer, instead fail for MSG_TRUNC or for EBUSY
7026         NLMSG_ERR.  Instead use a page sized buffer.
7027         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Use page sized
7028         buffer.
7029
7030 2007-03-14  Richard Henderson  <rth@redhat.com>
7031
7032         * sysdeps/alpha/fpu/s_llround.c: New file.
7033         * sysdeps/alpha/fpu/s_llroundf.c: New file.
7034         * sysdeps/alpha/fpu/s_lround.c: New file.
7035         * sysdeps/alpha/fpu/s_lroundf.c: New file.
7036         * sysdeps/alpha/fpu/s_round.c: New file.
7037         * sysdeps/alpha/fpu/s_roundf.c: New file.
7038         * sysdeps/alpha/fpu/s_trunc.c: New file.
7039         * sysdeps/alpha/fpu/s_truncf.c: New file.
7040
7041         * sysdeps/alpha/fpu/s_ceil.c: Rewrite without branches.
7042         * sysdeps/alpha/fpu/s_ceilf.c: Likewise.
7043         * sysdeps/alpha/fpu/s_floor.c: Likewise.
7044         * sysdeps/alpha/fpu/s_floorf.c: Likewise.
7045         * sysdeps/alpha/fpu/s_rint.c: Likewise.
7046         * sysdeps/alpha/fpu/s_rintf.c: Likewise.
7047
7048         * sysdeps/alpha/fpu/s_fmax.S: New file.
7049         * sysdeps/alpha/fpu/s_fmaxf.S: New file.
7050         * sysdeps/alpha/fpu/s_fmin.S: New file.
7051         * sysdeps/alpha/fpu/s_fminf.S: New file.
7052         * sysdeps/alpha/fpu/s_isnan.c: New file.
7053         * sysdeps/alpha/fpu/s_isnanf.c: New file.
7054         * sysdeps/alpha/fpu/s_llrint.c: New file.
7055         * sysdeps/alpha/fpu/s_llrintf.c: New file.
7056         * sysdeps/alpha/fpu/s_lrint.c: New file.
7057         * sysdeps/alpha/fpu/s_lrintf.c: New file.
7058         * sysdeps/alpha/fpu/s_nearbyint.c: New file.
7059         * sysdeps/alpha/fpu/s_nearbyintf.c: New file.
7060
7061         * sysdeps/alpha/fpu/bits/mathinline.h (__floorf, __floor): Remove.
7062         (__fdimf, fdimf, __fdim, fdim): Remove.
7063         (__signbitf, __signbit, __signbitl): Use gcc builtin if available.
7064         (__isnanf, __isnan, __isnanl): New.
7065
7066 2007-03-13  Richard Henderson  <rth@redhat.com>
7067
7068         * sysdeps/ieee754/ldbl-128/Makefile: New file.
7069
7070 2007-03-13  Richard Henderson  <rth@redhat.com>
7071
7072         * sysdeps/alpha/Makefile (sysdep-CFLAGS): Force dynamic rounding.
7073         * sysdeps/alpha/fpu/bits/mathinline.h (__signbitl): New.
7074         * sysdeps/alpha/fpu/libm-test-ulps: Regenerate.
7075         * sysdeps/unix/sysv/linux/alpha/alphaev6/fpu/Implies: New file.
7076         * sysdeps/unix/sysv/linux/alpha/alphaev67/fpu/Implies: New file.
7077         * sysdeps/unix/sysv/linux/alpha/fpu/Implies: New file.
7078
7079 2007-03-13  Richard Henderson  <rth@redhat.com>
7080
7081         * elf/dl-support.c (_dl_aux_init): Honor DL_PLATFORM_AUXV.
7082         * sysdeps/unix/sysv/linux/alpha/dl-auxv.h: New file.
7083         * sysdeps/unix/sysv/linux/alpha/dl-support.c: New file.
7084         * sysdeps/unix/sysv/linux/alpha/dl-sysdep.c (__libc_alpha_cache_shape):
7085         Move to dl-auxv.h; initialize instead of extern weak.
7086         (DL_PLATFORM_AUXV): Move to dl-auxv.h; don't test for undef
7087         weak symbol.
7088         * sysdeps/unix/sysv/linux/alpha/sysconf.c (__libc_alpha_cache_shape):
7089         Extern instead of initialized.
7090
7091 2007-03-13  Richard Henderson  <rth@redhat.com>
7092
7093         * sysdeps/unix/sysv/linux/alpha/sigsuspend.S: Add support for
7094         __sigsuspend_nocancel.
7095
7096 2007-03-06  Ulrich Drepper  <drepper@redhat.com>
7097
7098         * sysdeps/posix/getaddrinfo.c (get_scope): Correct test for
7099         172.16/12 address range.
7100
7101 2007-03-02  Jakub Jelinek  <jakub@redhat.com>
7102
7103         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Retry with
7104         a new netlink socket if NLMSG_ERR -EBUSY is seen after some MSG_TRUNC
7105         message.
7106
7107 2007-03-01  Jakub Jelinek  <jakub@redhat.com>
7108
7109         [BZ #4069]
7110         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Check for NaN
7111         earlier.
7112         * math/libm-test.inc (pow_test): Add more tests involving NaNs.
7113
7114         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Avoid invalid exception
7115         for x qNaN and y either +-inf or non-integer value.
7116         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Likewise.
7117         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.
7118         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
7119
7120 2007-02-10  Mike Frysinger  <vapier@gentoo.org>
7121
7122         * sysdeps/unix/sysv/linux/sh/Makefile: Remove sys/io.h
7123         from sysdep_headers.
7124
7125 2007-02-28  Jakub Jelinek  <jakub@redhat.com>
7126
7127         * time/tzfile.c (find_transition): Instead of a linear search try to
7128         guess the transition index, use a linear search if the result is at
7129         most 10 transitions away from the guess or binary search otherwise.
7130
7131 2007-02-27  Jakub Jelinek  <jakub@redhat.com>
7132
7133         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Fix
7134         memory reallocation.
7135
7136 2007-02-21  Ulrich Drepper  <drepper@redhat.com>
7137
7138         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Add branch predictions
7139         and fix some typos.
7140         Optimize use of TOLOWER.
7141
7142         [BZ #3325]
7143         * sysdeps/i386/fpu/e_fmodf.S: Revert last changes, keep using fprem.
7144         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
7145         * sysdeps/i386/fpu/e_fmod.S: Likewise.
7146
7147         [BZ #3458]
7148         * sysdeps/unix/sysv/linux/posix_madvise.c: New file.
7149         * sysdeps/unix/sysv/linux/syscalls.list: Remove posix_madvise entry.
7150
7151         [BZ #4076]
7152         * io/ftw.c (ftw_startup): Handle special case of FTW_CHDIR in /.
7153         (open_dir_stream): Likewise.
7154         * io/Makefile (tests): Add bug-ftw5.
7155         * io/bug-ftw5.c: New file.
7156
7157         * nscd/hstcache.c (cache_addhst): Remove unnecessary conditional.
7158         * nscd/servicescache.c (cache_addserv): Likewise.
7159
7160         * nscd/grpcache.c (cache_addgr): In case a record changed on
7161         refresh, adjust key_copy.
7162
7163         [BZ #4074]
7164         * nscd/pwdcache.c (cache_addpw): In case a record changed on
7165         refresh, adjust key_copy.
7166
7167         [BZ #4070]
7168         * stdio-common/printf_fp.c (___printf_fp): Handle a few more
7169         special cases.
7170         * stdio-common/tfformat.c (sprint_doubles): Some more tests.
7171
7172 2007-02-19  Ulrich Drepper  <drepper@redhat.com>
7173
7174         * stdio-common/printf_fp.c (___printf_fp): Cleanups and minor
7175         optimization.
7176
7177         * stdio-common/vfscanf.c: Small cleanups throughout.
7178
7179 2007-02-18  Ulrich Drepper  <drepper@redhat.com>
7180
7181         [BZ #3325]
7182         * sysdeps/i386/fpu/e_fmodf.S: Use fprem1 instead of fprem.
7183         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
7184         * sysdeps/i386/fpu/e_fmod.S: Likewise.
7185         Patch by Jared Casper <jaredcasper@gmail.com>.
7186
7187         * sysdeps/unix/closedir.c: Outside libc don't use locking.
7188         * sysdeps/unix/opendir.c: Likewise.
7189         * sysdeps/unix/readdir.c: Likewise.
7190
7191         [BZ #2211]
7192         * stdio-common/vfscanf.c: Handle localized digits etc for floating
7193         point numbers.
7194         Patch mostly by Hamed Malek <hamed@farsiweb.info>.
7195
7196         * stdio-common/vfscanf.c: Fix problems in width accounting.
7197         * stdio-common/tst-sscanf.c (double_tests): New tests.
7198         (main): Hook them up.
7199
7200         * stdio-common/vfscanf.c: Remove unused WIDTH handling.
7201         More simplifications of floating-point reader.
7202
7203         * stdio-common/Makefile (tests): Add tst-swscanf.
7204         * stdio-common/tst-sscanf.c: Make tests usable for swscanf
7205         testing.
7206         * stdio-common/tst-swscanf.c: New file.
7207
7208 2007-02-17  Ulrich Drepper  <drepper@redhat.com>
7209
7210         [BZ #2633]
7211         * libio/stdio.h: Define struct _IO_FILE in global namespace.
7212         * setjmp/setjmp.h: Define __jmp_buf_tag in global namespace.
7213         Remove using for __jmp_buf_tag.
7214         * locale/locale.h (struct lconv): Also define in std namespace.
7215         * wcsmbs/wchar.h: Move using declaration for tm out of namespace.
7216
7217         [BZ #3842]
7218         * sysdeps/posix/euidaccess.c [_LIBC] (euidaccess): Remove shortcut
7219         using __libc_enable_secure.
7220
7221         [BZ #3818]
7222         * sysdeps/unix/sysv/linux/sys/acct.h (struct acct_v3): Define.
7223
7224         [BZ #3745]
7225         * locale/programs/ld-collate.c (handle_ellipsis): Fix generation
7226         of names for ellipsises.
7227
7228         [BZ #3348]
7229         * malloc/memusage.sh: Cleanups.
7230         * debug/xtrace.sh: Quoting and trap changes.
7231
7232 2007-02-16  Ulrich Drepper  <drepper@redhat.com>
7233
7234         * locale/iso-3166.def: Add Jersey, Guernsey, and Isle Of Man entries.
7235
7236         * locale/iso-3166.def: Update entry for Serbia.
7237         * locale/iso-4217.def: Define RSD, remove CSD.
7238
7239         * sysdeps/x86_64/bits/atomic.h: One more change, this time for 16-
7240         and 64-bit operations.
7241
7242         [BZ #4040]
7243         * sysdeps/i386/i486/bits/atomic.h: One more change, this time for
7244         16-bit operations.
7245
7246         * nscd/nscd.c (parse_opt): One more conversion to use send instead
7247         of writev.
7248
7249 2007-02-15  Ulrich Drepper  <drepper@redhat.com>
7250
7251         [BZ #3991]
7252         * assert/assert.h (assert): Simplify.
7253         (assert_perror): Likewise.
7254         Patch by Israel G. Lugo <ilugo@bridonsecurity.com>.
7255
7256         * nscd/nscd_helper.c (open_socket): Don't send padding bytes from
7257         reqdata.
7258
7259         * sysdeps/unix/sysv/linux/x86_64/send.c (__libc_send): Cosmetic
7260         change: don't pass NULL in place of an integer.
7261
7262 2007-02-02  Bruno Haible  <bruno@clisp.org>
7263
7264         [BZ #3954]
7265         * iconvdata/ksc5601.c (__ksc5601_sym_to_ucs, __ksc5601_sym_from_ucs):
7266         Add mapping for U+327E.
7267         * iconvdata/ksc5601.h (KSC5601_SYMBOL): Increment.
7268         * iconvdata/johab.c (BODY for FROM_LOOP, BODY for TO_LOOP): Enable
7269         mapping of 0xD9 0xE8.
7270         * iconvdata/uhc.c (BODY for FROM_LOOP, BODY for TO_LOOP): Disable
7271         mapping of U+327E.
7272         Reported by Jungshik Shin <jungshik@google.com>.
7273
7274         [BZ #3955]
7275         * iconvdata/johab.c (BODY for FROM_LOOP, BODY for TO_LOOP): Enable
7276         mapping of 0xD9 0xE6 and of 0xD9 0xE7.
7277         Reported by Jungshik Shin <jungshik@google.com>.
7278
7279 2007-02-14  Ulrich Drepper  <drepper@redhat.com>
7280
7281         * sysdeps/x86_64/bits/atomic;h: Fix asm parameters for some
7282         byte variants.
7283
7284         [BZ #4040]
7285         * sysdeps/i386/i486/bits/atomic.h: Fix asm parameters for some
7286         byte variants.  Patch mostly be tom@tommay.net.
7287
7288 2007-02-14  Jakub Jelinek  <jakub@redhat.com>
7289
7290         [BZ #3996]
7291         * posix/glob.c (attribute_hidden): Define if not defined.
7292         (glob): Unescape dirname, filename or username when needed and not
7293         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
7294         is NULL.  Handle unescaped [ in pattern without closing ].
7295         Don't pass GLOB_CHECK down to recursive glob for directories.
7296         (__glob_pattern_type): New function.
7297         (__glob_pattern_p): Implement using __glob_pattern_type.
7298         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
7299         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
7300         Remove unreachable code.
7301         * posix/globtest.sh: Add a couple of new tests.
7302
7303 2007-02-13  Ulrich Drepper  <drepper@redhat.com>
7304
7305         * po/ru.po: Update from translation team.
7306
7307 2007-02-12  Jakub Jelinek  <jakub@redhat.com>
7308
7309         * sysdeps/i386/bits/byteswap.h (__bswap_32): Add __amdfam10__
7310         to the list of i486+ CPUs.
7311         * sysdeps/x86_64/bits/byteswap.h (__bswap_32): Likewise.
7312
7313 2007-02-12  Ulrich Drepper  <drepper@redhat.com>
7314
7315         * elf/rtld.c (RESOLVE_MAP): Always return bootstrap_map reference.
7316         * elf/Makefile ($(objpfx)ld.so): Check that ld.so has no undefined
7317         references.
7318
7319 2007-02-09  Ulrich Drepper  <drepper@redhat.com>
7320
7321         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Remove incorrect comment.
7322
7323         * resolv/res_init.c (res_setoptions): Recognize edns0 option.
7324         * resolv/res_mkquery.c: Define __res_nopt.
7325         * resolv/res_query.c (__libc_res_nquery): If RES_USE_EDNS0 is set
7326         try adding EDNS0 record.
7327         * resolv/res_send.c (send_dg): If request failed with FORMERR and
7328         EDNS0 record was send make sure we don't try it again.
7329         * resolv/resolv.h: Define RES_F_EDNS0ERR and RES_USE_EDNS0.
7330         * include/resolv.h: Declare __res_nopt.
7331
7332 2007-02-08  Jakub Jelinek  <jakub@redhat.com>
7333
7334         [BZ #3944]
7335         * time/strptime_l.c (__strptime_internal): Set have_mon for
7336         %b/%B/%h.  Set have_mon and have_mday if tm_mon and tm_mday
7337         have been computed from tm_yday and tm_year.  Don't crash
7338         in day_of_the_week or day_of_the_year if not have_mon
7339         and tm_mon contains bogus value.
7340         * time/Makefile (tests): Add tst-strptime3.
7341         * time/tst-strptime3.c: New test.
7342
7343 2007-02-05  Jakub Jelinek  <jakub@redhat.com>
7344
7345         [BZ #3957]
7346         * posix/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
7347         bit for RE_HAT_LISTS_NOT_NEWLINE.
7348         (build_charclass_op): Remove bogus comment.
7349         * posix/Makefile (tests): Add bug-regex27 and bug-regex28.
7350         * posix/bug-regex27.c: New test.
7351         * posix/bug-regex28.c: New test.
7352
7353 2007-02-03  Ulrich Drepper  <drepper@redhat.com>
7354
7355         * po/sv.po: Update from translation team.
7356
7357 2007-02-02  Ulrich Drepper  <drepper@redhat.com>
7358
7359         * nscd/nscd_helper.c (open_socket): Minor size optimization.
7360
7361 2007-02-02  Jakub Jelinek  <jakub@redhat.com>
7362
7363         * include/locale.h (__uselocale): Add libc_hidden_proto.
7364         * locale/uselocale.c (__uselocale): Add libc_hidden_def.
7365
7366         * nscd/nscd_helper.c (open_socket): Use __gettimeofday instead of
7367         gettimeofday.
7368
7369 2007-02-01  Ulrich Drepper  <drepper@redhat.com>
7370
7371         * sysdeps/unix/sysv/linux/i386/sysdep.h (PTR_MANGLE): Roll value before
7372         returning.
7373         (PTR_DEMANGLE): Real definition now that it's not the same as
7374         PRT_MANGLE anymore.
7375         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
7376
7377         * string/strerror_l.c: New file.
7378         * string/Makefile (routines): Add strerror_l.
7379         * string/string.h: Declare strerror_l.
7380         * string/Versions: Export strerror_l for GLIBC_2.6.
7381
7382 2007-01-31  Ulrich Drepper  <drepper@redhat.com>
7383
7384         * nscd/nscd_helper.c (open_socket): Now takes request type and key
7385         as parameter.  Construct request record.  Try sending request
7386         before the first poll use, it usually succeeds.  Adjust all
7387         callers.
7388         * nscd/nscd-client.h: Define MAXKEYLEN.
7389         * nscd/connections.c (nscd_run): Don't define MAXKEYLEN here.
7390
7391 2007-01-31  Jakub Jelinek  <jakub@redhat.com>
7392
7393         * nscd/nscd-client.h (__nscd_cache_search): Remove const qualifier
7394         from return value.
7395         * nscd/nscd_helper.c: Include string.h.
7396         (__nscd_cache_search): Remove const qualifier from return value.
7397         On strict alignment architectures check hash entry and data head
7398         alignment.
7399         * nscd/nscd_getpw_r.c (nscd_getpw_r): Don't crash or fail because
7400         mmapped data during GC cycle contains garbage.  If
7401         __nscd_drop_map_ref fails, decrement mapped->counter when returning
7402         error or if retrying with NO_MAPPING, only __nscd_unmap if counter
7403         dropped to 0.
7404         * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
7405         * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
7406         * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
7407         * nscd/nscd_getai.c (__nscd_getai): Likewise.
7408         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
7409
7410 2007-01-30  Ulrich Drepper  <drepper@redhat.com>
7411
7412         * misc/hsearch_r.c (hdestroy_r): Remove unnecessary test.
7413
7414 2007-01-26  Ulrich Drepper  <drepper@redhat.com>
7415
7416         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Use register
7417         names not numbers in cfi_*.
7418
7419 2007-01-26  Andreas Jaeger  <aj@suse.de>
7420
7421         * sysdeps/unix/sysv/linux/sys/personality.h (ADDR_NO_RANDOMIZE,
7422         ADDR_LIMIT_3GB, PER_LINUX_32BIT, PER_LINUX32_3GB): Add.
7423         Correct values of PER_HPUX and PER_OSF4.
7424
7425 2007-01-24  Ulrich Drepper  <drepper@redhat.com>
7426
7427         * elf/dl-minimal.c: Undefine _itoa first.
7428         * stdio-common/_itoa.h: Define _itoa and _fitoa for 64-bit platforms.
7429         * malloc/mtrace.c: Revert last change.
7430         * posix/wordexp.c: Likewise.
7431
7432 2007-01-24  Jakub Jelinek  <jakub@redhat.com>
7433
7434         * sysdeps/i386/bits/byteswap.h (__bswap_32): Add __nocona__, __core2__
7435         and __geode__ to the list of i486+ CPUs.
7436         * sysdeps/x86_64/bits/byteswap.h (__bswap_32): Likewise.
7437
7438 2007-01-23  Ulrich Drepper  <drepper@redhat.com>
7439
7440         * stdio-common/_itoa.c: Include <limits.h>.
7441         * stdio-common/_itowa.c: Likewise.
7442
7443 2007-01-22  Ulrich Drepper  <drepper@redhat.com>
7444
7445         * stdio-common/_itowa.c: Don't compile _itowa for 64-bit
7446         platforms.
7447         * stdio-common/_itoa.c: Don't compile in _itoa and _fitoa for
7448         64-bit platforms.
7449         * malloc/mtrace.c (tr_where): Use _fitoa_word instead of _fitoa if
7450         possible.
7451         * posix/wordexp.c (parse_arith): Use _itoa_word instead of _itoa
7452         if possible.
7453
7454         [BZ #3902]
7455         * stdio-common/_itoa.c (_itoa): Make sure at least a zero is emitted.
7456         * stdio-common/Makefile (tests): Add bug17.
7457         * stdio-common/bug17.c: New file.
7458
7459 2007-01-19  Ulrich Drepper  <drepper@redhat.com>
7460
7461         * iconvdata/brf.c: New file.
7462         * iconvdata/testdata/BRF: New file.
7463         * iconvdata/testdata/BRF..UTF8: New file.
7464         Contributed by Samuel Thibault <samuel.thibault@ens-lyon.org>.
7465         * iconvdata/Makefile: Add rules to build BRF.
7466         * iconvdata/TESTS: Add BRF entry.
7467         * iconvdata/gconv-modules: Likewise.
7468         * iconvdata/tst-tables.sh: Likewise.
7469
7470 2007-01-18  Anton Nikishaev  <anton.nik@gmail.com>
7471
7472         * wcsmbs/wchar.h (wcstoll): Fix comment, function returns value of
7473         type `long long int', not `long int'.
7474         (wcstoq): Likewise.
7475
7476 2007-01-18  Ulrich Drepper  <drepper@redhat.com>
7477
7478         * scripts/gen-as-const.awk: Add cast to long to avoid int promotion
7479         of values on 64-bit platforms which are too large.
7480
7481 2007-01-12  Steven Munroe  <sjmunroe@us.ibm.com>
7482             Joe Kerian  <jkerian@us.us.ibm.com>
7483
7484         [BZ #2749]
7485         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Include
7486         <math_ldbl_opt.h>.  Remove weak_alias.  Use long_double_symbol macro.
7487         (__copysignl): Use signbit() for comparison.
7488         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Correct parms for
7489         SET_LDOUBLE_WORDS64.
7490
7491         [BZ #2423, #2749]
7492         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Don't include <fenv_libc.h>.
7493         (__ceill): Remove calls to fegetround(), fesetround().
7494         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
7495         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
7496         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
7497
7498 2007-01-17  Jakub Jelinek  <jakub@redhat.com>
7499
7500         * nscd/nscd_getserv_r.c (nscd_getserv_r): Fix pastos.
7501
7502         * sysdeps/unix/sysv/linux/getdents.c (offsetof): Remove.
7503
7504 2007-01-17  Ulrich Drepper  <drepper@redhat.com>
7505
7506         * sysdeps/unix/sysv/linux/fatal-prepare.h: Use PTHFCT_CALL to
7507         demangle pointer.
7508         * csu/libc-start.c: Likewise.
7509
7510 2007-01-16  Ulrich Drepper  <drepper@redhat.com>
7511
7512         * sysdeps/posix/system.c: Remove NO_WAITPID support, it cannot
7513         really work anyway.
7514
7515 2007-01-15  Ulrich Drepper  <drepper@redhat.com>
7516
7517         * nscd/connections.c (servinfo): Renamed to reqinfo.  Change all
7518         users.
7519         (handle_request): Remove unnecessary tests.
7520
7521         * nscd/cache.c (cache_add): Record the failure to add to the cache.
7522
7523 2007-01-15  Jakub Jelinek  <jakub@redhat.com>
7524
7525         * soft-fp/op-common.h (FP_TRUNC): When truncating a NaN, clear
7526         workbits in semi-raw fraction.
7527
7528         * math/test-misc.c: Add new tests.
7529
7530 2007-01-14  Steven Munroe  <sjmunroe@us.ibm.com>
7531
7532         * math/basic-test.c: Include test-skeleton.c.
7533         (TEST_TRUNC): Define.
7534         (truncdfsf_test, trunctfsf_test, trunctfdf_test): New.
7535         (main): Rename to ...
7536         (do_test): ...this.  Run new tests.
7537         (TEST_FUNCTION): Define.
7538
7539 2006-10-05  Steven Munroe  <sjmunroe@us.ibm.com>
7540             Joe Kerian  <jkerian@us.us.ibm.com>
7541
7542         [BZ #2749]
7543         * soft-fp/op-4.h (__FP_FRAC_SUB_3, __FP_FRAC_SUB_4): Correct borrow
7544         handling for high words.
7545         * soft-fp/op-common.h (_FP_OVERFLOW_SEMIRAW): Always set inexact
7546         and overflow for infinity.
7547
7548 2007-01-15  Ulrich Drepper  <drepper@redhat.com>
7549
7550         * nscd/connections.c (handle_request): Add a __builtin_expect.
7551
7552         * nscd/connections.c (serv2db): Change type into structure which
7553         also says whether this is a request for data.  Renamed to
7554         servinfo.  All users changed.
7555         (handle_request): Much simpler test whether we should search the cache.
7556
7557         * nscd/connections.c (handle_request): Fix thinko in selinux test
7558         invocation.
7559
7560         * sysdeps/generic/ldsodefs.h: Define DL_LOOKUP_SCOPE_LOCK.
7561         * elf/dl-lookup.c (add_dependency): If scope map is locked, unlock
7562         it before getting dl_load_lock and then relock.
7563         (_dl_lookup_symbol_x): Pass flags to add_dependency.
7564         When rerunning _dl_lookup_symbol_x, compute symbol_scope again in
7565         case we unlocked the scope.
7566         * elf/dl-runtime.c (_dl_fixup): Pass DL_LOOKUP_SCOPE_LOCK to
7567         _dl_lookup_symbol_x in case we locked the scope.
7568         (_dl_profile_fixup): Likewise.
7569         * elf/dl-sym.c (do_sym): In flags passed to call_dl_lookup, also
7570         set DL_LOOKUP_SCOPE_LOCK.
7571
7572 2007-01-13  Ulrich Drepper  <drepper@redhat.com>
7573
7574         * inet/Makefile: Define CFLAGS-getsrvbynm_r.c and
7575         CFLAGS-getsrvbynpt_r.c.
7576         * nscd/getsrvbynm_r.c: New file.
7577         * nscd/getsrvbypt_r.c: New file.
7578         * nscd/nscd_getserv_r.c: New file.
7579         * nscd/servicescache.c: New file.
7580         * nscd/Makefile (routines): Add nscd_getserv_r.
7581         (nscd-modules): Add getsrvbynm_r, getsrvbypt_r, and servicescache.
7582         Define CFLAGS-servicescache.c, CFLAGS-getsrvbynm_r.c, and
7583         CFLAGS-getsrvbypt_r.c.
7584         * nscd/cache.c (prune_cache): Rewrite to get re-add function from
7585         table.  Add entries for services database.
7586         * nscd/connections.c (serv2str): Mark as const.  Add entries for
7587         services database.
7588         (dbs): Add .reset_res and servdb initialization.
7589         (serv2db): Add entries for services database.
7590         (verify_persistent_db): Accept dbnr == servdb.
7591         (invalidate_cache): Rewrite database name recognition to use a table.
7592         Call res_init() if .reset_res is set for database.
7593         (handle_request): Add code to handle services database.
7594         * nscd/gai.c: Don't define __getservbyname_r.
7595         * nscd/nscd-client.h (request_type): Remove LASTDBREQ, add
7596         GETSERVBYNAME, GETSERVBYPORT, GETFDSERV.
7597         (serv_response_header): Define.
7598         (struct datahead): Add serv_response_header member.
7599         * nscd/nscd.c (parse_opt): Rewrite parsing of -i parameter value
7600         using table.
7601         * nscd/nscd.conf: Add entries for services database.
7602         * nscd/nscd.h: Adjust declaration of dbnames and serv2str.
7603         Declare serv_iov_disabled.
7604         Declare addservbyname, readdservbyname, addservbyport, and
7605         readdservbyport.
7606         * nscd/nscd_conf.c (dbnames): Mark as const.  Add services entry.
7607         (find_db): Fix error message.
7608         * nscd/nscd_proto.h: Declare __nss_not_use_nscd_services,
7609         __nscd_getservbyname_r, and __nscd_getservbyport_r.
7610         * nscd/selinux.c (perms): Add entries for services database.
7611         * nss/Versions: Export __nss_services_lookup with GLIBC_PRIVATE.
7612         * nss/nsswitch.c (__nss_disable_nscd): Also disable services database.
7613
7614         * nscd/grpcache.c: Remove obsolete code.  Cleanups.
7615         * nscd/hstcache.c: Likewise.
7616         * nscd/pwdcache.c: Likewise.
7617
7618         * nis/nss_nis/nis-service.c (_nss_nis_getservbyname_r): Correct
7619         computation of keylen.
7620
7621         * include/string.h: Only redefine strndupa if this is really for
7622         libc code.
7623
7624 2007-01-12  Ulrich Drepper  <drepper@redhat.com>
7625
7626         * nscd/nscd_gethst_r.c: Minor cleanups.
7627
7628         * nscd/connections.c (handle_request): Check selinux permissions
7629         for all non-admin commands.
7630
7631         * sysdeps/i386/i486/bits/atomic.h: Define
7632         atomic_compare_and_exchange_val_acq,
7633         atomic_compare_and_exchange_bool_acq, and atomic_exchange_and_add
7634         using __sync_* built-ins for gcc >= 4.1.
7635         * sysdeps/x86_64/bits/atomic.h: Likewise.
7636
7637         [BZ #3840]
7638         * scripts/check-local-headers.sh: Restrict to testing .o.d, .os.d,
7639         and .oS.d files.
7640
7641 2007-01-05  Steven Munroe  <sjmunroe@us.ibm.com>
7642
7643         * stdlib/tst-makecontext.c: Include errno.h.  Change main()
7644         to do_test().  Define TEST_FUNCTION. Include test-skeleton.c.
7645         (do_test): Check errno and exit(0) if ENOSYS.
7646
7647 2007-01-11  Jakub Jelinek  <jakub@redhat.com>
7648
7649         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix handling of multi-byte
7650         thousands separators.
7651         * stdlib/Makefile: Add rules to build and run tst-strtod4.
7652         * stdlib/tst-strtod4.c: New test.
7653
7654         [BZ #3855]
7655         * stdlib/strtod_l.c (____STRTOF_INTERNAL): 0x. not followed by
7656         hexadecimal digit should accept just the initial 0.
7657         * stdlib/tst-strtod2.c (tests): New variable.
7658         (do_test): Run several tests rather than just one.
7659
7660 2007-01-11  Jakub Jelinek  <jakub@redhat.com>
7661
7662         * sysdeps/i386/soft-fp/sfp-machine.h: Remove.
7663         * sysdeps/x86_64/soft-fp/sfp-machine.h: Likewise.
7664
7665 2007-01-10  Ulrich Drepper  <drepper@redhat.com>
7666
7667         * io/fts.c: Make sure fts_cur is always valid after return from
7668         fts_read.
7669         Patch by Miloslav Trmac <mitr@redhat.com>.
7670
7671 2006-10-27  Richard Sandiford  <richard@codesourcery.com>
7672
7673         * elf/elf.h (R_MIPS_GLOB_DAT): Define.
7674         (R_MIPS_NUM): Bump by 1.
7675
7676 2007-01-03  Jakub Jelinek  <jakub@redhat.com>
7677
7678         * posix/execvp.c: Include alloca.h.
7679         (allocate_scripts_argv): Renamed to...
7680         (scripts_argv): ... this.  Don't allocate buffer here nor count
7681         arguments.
7682         (execvp): Use alloca if possible.
7683         * posix/Makefile: Add rules to build and run tst-vfork3 test.
7684         * posix/tst-vfork3.c: New test.
7685
7686 2007-01-03  Ulrich Drepper  <drepper@redhat.com>
7687
7688         * string/Makefile (tst-strxfrm2-ENV): Define.
7689         * stdlib/Makefile (tst-strtod3-ENV): Define.
7690
7691 2007-01-02  Ulrich Drepper  <drepper@redhat.com>
7692
7693         * posix/getconf.c: Update copyright year.
7694         * nss/getent.c: Likewise.
7695         * iconv/iconvconfig.c: Likewise.
7696         * iconv/iconv_prog.c: Likewise.
7697         * elf/ldconfig.c: Likewise.
7698         * catgets/gencat.c: Likewise.
7699         * csu/version.c: Likewise.
7700         * elf/ldd.bash.in: Likewise.
7701         * elf/sprof.c (print_version): Likewise.
7702         * locale/programs/locale.c: Likewise.
7703         * locale/programs/localedef.c: Likewise.
7704         * nscd/nscd.c (print_version): Likewise.
7705         * debug/xtrace.sh: Likewise.
7706         * malloc/memusage.sh: Likewise.
7707         * malloc/mtrace.pl: Likewise.
7708         * debug/catchsegv.sh: Likewise.
7709
7710 2006-12-24  Ulrich Drepper  <drepper@redhat.com>
7711
7712         * malloc/malloc.c (sYSMALLOc): Remove some unnecessary alignment
7713         attempts.
7714
7715 2006-12-23  Ulrich Drepper  <drepper@redhat.com>
7716
7717         * posix/wordexp.c: Remove some unnecessary tests.
7718
7719 2006-12-22  Gavin Romig-Koch  <gavin@redhat.com>
7720
7721         * nis/nss_compat/compat-grp.c (internal_getgrgid_r): Don't
7722         blacklist the group till after we look it up.
7723
7724 2006-12-21  Ulrich Drepper  <drepper@redhat.com>
7725
7726         * include/atomic.h (atomic_forced_read): New macro.
7727
7728 2006-12-20  SUGIOKA Toshinobu  <sugioka@itonet.co.jp>
7729
7730         * sysdeps/unix/sysv/linux/sh/bits/shm.h: New file.
7731
7732 2006-12-19  Jakub Jelinek  <jakub@redhat.com>
7733
7734         * nss/getXXbyYY_r.c: Include atomic.h.
7735         (INTERNAL (REENTRANT_NAME)): Write startp after start_fct,
7736         add atomic_write_barrier () in between.
7737
7738         * stdlib/Makefile (tests): Add tst-makecontext.
7739         * stdlib/tst-makecontext.c: New test.
7740
7741         * sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S
7742         (__makecontext): Don't realign uc_mcontext.uc_regs.
7743
7744 2006-11-28  Jakub Jelinek  <jakub@redhat.com>
7745
7746         * elf/dl-support.c: Include dl-procinfo.h.
7747         * sysdeps/powerpc/dl-procinfo.h (PPC_PLATFORM_POWER4,
7748         PPC_PLATFORM_PPC970, PPC_PLATFORM_POWER5, PPC_PLATFORM_POWER5_PLUS,
7749         PPC_PLATFORM_POWER6, PPC_PLATFORM_CELL_BE, PPC_PLATFORM_POWER6X):
7750         Define.
7751         (_dl_string_platform): Use PPC_PLATFORM_* macros instead of
7752         hardcoded constants.
7753         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_platform): Use
7754         PPC_PLATFORM_* macros for array designators.
7755
7756 2006-11-11  Steven Munroe  <sjmunroe@us.ibm.com>
7757
7758         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add 3 new cap
7759         names to the beginning.
7760         (_dl_powerpc_platforms): Add "power6x".
7761         * sysdeps/powerpc/dl-procinfo.h (_DL_HWCAP_FIRST): Decrease.
7762         (HWCAP_IMPORTANT): Add PPC_FEATURE_HAS_DFP.
7763         (_DL_PLATFORMS_COUNT): Increase.
7764         (_dl_string_platform): Handle power6x case.
7765         * sysdeps/powerpc/sysdep.h (PPC_FEATURE_PA6T, PPC_FEATURE_HAS_DFP,
7766         PPC_FEATURE_POWER6_EXT): Define.
7767         (PPC_FEATURE_POWER5, PPC_FEATURE_POWER5_PLUS): Correct Comment.
7768
7769 2006-12-18  Jakub Jelinek  <jakub@redhat.com>
7770
7771         [BZ #3747]
7772         * stdlib/jrand48_r.c (__jrand48_r): Make sure result is in the
7773         [-2^31 .. 2^31) range.
7774         * stdlib/tst-rand48.c (main): Fix expected values for 64-bit
7775         targets.
7776         * stdlib/tst-rand48-2.c: New test.
7777         * stdlib/Makefile (tests): Add tst-rand48-2.
7778
7779 2006-12-14  Jakub Jelinek  <jakub@redhat.com>
7780
7781         * misc/tst-pselect.c (do_test): Fix sigblock argument.
7782
7783 2006-12-14  Ulrich Drepper  <drepper@redhat.com>
7784
7785         * misc/tst-pselect.c (do_test): Make sure the helper process is
7786         terminating when the test is aborted.
7787
7788 2006-12-13  Ulrich Drepper  <drepper@redhat.com>
7789
7790         * sysdeps/unix/sysv/linux/bits/statvfs.h: Define ST_RELATIME.
7791         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
7792         Handle relatime mount option.
7793
7794         [BZ #2337]
7795         * libio/Makefile (tests): Add tst-setvbuf1.
7796         * libio/tst-setvbuf1.c: New file.
7797
7798 2006-12-08  Jakub Jelinek  <jakub@redhat.com>
7799
7800         [BZ #2337]
7801         * libio/genops.c (__uflow): Fix a typo.
7802         * libio/wfiledoalloc.c (_IO_wfile_doallocate): Don't stat
7803         nor set _IO_LINE_BUF bit here.  Size the wide buffer based on
7804         the narrow buffer size.
7805
7806 2006-11-24  Jakub Jelinek  <jakub@redhat.com>
7807
7808         [BZ #2337]
7809         * libio/libio.h (_IO_FLAGS2_USER_WBUF): Define.
7810         * libio/wgenops.c (_IO_wsetb, _IO_wdefault_finish): Test and set
7811         _IO_FLAGS2_USER_WBUF bit in _flags2 instead of _IO_USER_BUF bit
7812         in _flags.
7813         * libio/wstrops.c (_IO_wstr_overflow, enlarge_userbuf,
7814         _IO_wstr_finish): Likewise.
7815         * libio/wmemstream.c (open_wmemstream): Likewise.
7816         * libio/fileops.c (_IO_new_file_close_it): Call _IO_set[bgp]
7817         even for wide streams.
7818
7819 2006-12-13  Jakub Jelinek  <jakub@redhat.com>
7820
7821         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: Include
7822         kernel-features.h.
7823
7824 2006-12-11  Ulrich Drepper  <drepper@redhat.com>
7825
7826         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Parse thousand
7827         separators also if no non-zero digits found.
7828         * stdlib/Makefile (tests): Add tst-strtod3.
7829
7830 2006-12-09  Ulrich Drepper  <drepper@redhat.com>
7831
7832         [BZ #3632]
7833         * include/features.h: Fix comment about default value for
7834         _POSIX_C_SOURCE.
7835
7836         [BZ #3664]
7837         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix test to recognize
7838         empty parsed strings.
7839         * stdlib/Makefile (tests): Add tst-strtod2.
7840         * stdlib/tst-strtod2.c: New file.
7841
7842         [BZ #3673]
7843         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix exp_limit
7844         computation.
7845         * stdlib/Makefile (tests): Add tst-atof2.
7846         * stdlib/tst-atof2.c: New file.
7847
7848         [BZ #3674]
7849         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Adjust exponent value
7850         correctly if removing trailing zero of hex-float.
7851         * stdlib/Makefile (tests): Add tst-atof1.
7852         * stdlib/tst-atof1.c: New file.
7853
7854 2006-12-09  Jakub Jelinek  <jakub@redhat.com>
7855
7856         * misc/mntent_r.c (__hasmntopt): Check p[optlen] even when p == rest.
7857         Start searching for next comma at p rather than rest.
7858         * misc/Makefile (tests): Add tst-mntent2.
7859         * misc/tst-mntent2.c: New test.
7860
7861         * misc/getusershell.c (initshells): Check for integer overflows.
7862         Make strings buffer one bigger as fgets always succeeds when second
7863         argument is 1.  Don't use calloc for shells array.  Disallow
7864         / as shell.
7865
7866 2006-12-08  Ulrich Drepper  <drepper@redhat.com>
7867
7868         * malloc/memusage.c: Handle realloc with new size of zero and
7869         non-NULL pointer correctly.
7870         (me): Really write first record twice.
7871         (struct entry): Make format bi-arch safe.
7872         (dest): Write out more realloc statistics.
7873         * malloc/memusagestat.c (struct entry): Make format bi-arch safe.
7874
7875 2006-12-05  Jakub Jelinek  <jakub@redhat.com>
7876
7877         * nis/nis_subr.c (nis_getnames): Revert last change.
7878
7879 2006-12-04  Jakub Jelinek  <jakub@redhat.com>
7880
7881         * sysdeps/unix/sysv/linux/ttyname.c: Include termios.h.
7882         (ttyname): Use tcgetattr instead of isatty, don't set errno to ENOTTY.
7883         * sysdeps/unix/sysv/linux/ttyname_r.c: Include termios.h.
7884         (__ttyname_r): Use tcgetattr instead of isatty, don't set errno to
7885         ENOTTY.
7886         * io/Makefile: Add rules to build and run tst-ttyname_r test.
7887         * io/tst-ttyname_r.c: New test.
7888
7889 2006-12-03  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
7890
7891         * sysdeps/unix/sysv/linux/sh/sys/io.h: Removed.
7892
7893 2006-11-30  H.J. Lu  <hongjiu.lu@intel.com>
7894
7895         * sysdeps/i386/i686/memcmp.S: Use jump table as the base of
7896         jump table entries.
7897
7898 2006-11-30  Jan Kratochvil  <jan.kratochvil@redhat.com>
7899
7900         * sysdeps/unix/sysv/linux/i386/clone.S: Provide CFI for the outermost
7901         `clone' function to ensure proper unwinding stop of gdb.
7902         * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
7903
7904 2006-12-01  Ulrich Drepper  <drepper@redhat.com>
7905
7906         * nscd/nscd.init: Remove obsolete and commented-out -S option
7907         handling.
7908
7909 2006-11-23  Jakub Jelinek  <jakub@redhat.com>
7910
7911         [BZ #3514]
7912         * manual/string.texi (strncmp): Fix pastos from wcscmp description.
7913
7914         [BZ #3515]
7915         * manual/string.texi (strtok): Remove duplicate paragraph.
7916
7917 2006-12-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
7918
7919         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Fix compatibility with
7920         libgcc not supporting `rflags' unwinding (register # >= 17).
7921
7922 2006-11-30  Jakub Jelinek  <jakub@redhat.com>
7923
7924         * sunrpc/svc_run.c (svc_run): Set my_pollfd to new_pollfd if realloc
7925         succeeded.
7926
7927 2006-11-29  Daniel Jacobowitz  <dan@codesourcery.com>
7928             Jakub Jelinek  <jakub@redhat.com>
7929             Jan Kratochvil  <jan.kratochvil@redhat.com>
7930
7931         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (restore_rt): Add correct
7932         unwind information.
7933         * sysdeps/unix/sysv/linux/x86_64/Makefile: Provide symbols for
7934         'restore_rt' even in the 'signal' directory.
7935         * sysdeps/unix/sysv/linux/x86_64/ucontext_i.sym: Extend the regs list.
7936
7937 2006-11-27  Jakub Jelinek  <jakub@redhat.com>
7938
7939         [BZ #3559]
7940         * sunrpc/svc_run.c (svc_run): Fail instead of segfaulting if
7941         malloc crashed.  Don't allocate memory unnecessarily in each
7942         loop.
7943
7944 2006-10-21  Jakub Jelinek  <jakub@redhat.com>
7945
7946         * resolv/mapv4v6addr.h (map_v4v6_address): Fix last change.
7947
7948 2006-11-20  Ulrich Drepper  <drepper@redhat.com>
7949
7950         * resolv/mapv4v6addr.h (map_v4v6_address): Optimize a bit.
7951
7952 2006-11-18  Bruno Haible  <bruno@clisp.org>
7953
7954         * sysdeps/unix/sysv/linux/i386/getgroups.c (__getgroups): Invoke
7955         __sysconf only after having tried to call getgroups32.
7956
7957 2006-11-19  Ulrich Drepper  <drepper@redhat.com>
7958
7959         * nss/nss_files/files-hosts.c (LINE_PARSER): Support IPv6-style
7960         addresses for IPv4 queries if they can be mapped.
7961
7962 2006-11-16  Jakub Jelinek  <jakub@redhat.com>
7963
7964         * sysdeps/x86_64/fpu/s_copysignf.S (__copysignf): Switch to .text.
7965         * sysdeps/x86_64/fpu/s_copysign.S (__copysign): Likewise.
7966         (signmask): Add .size directive.
7967         (othermask): Add .type directive.
7968
7969 2006-11-14  Ulrich Drepper  <drepper@redhat.com>
7970
7971         * po/nl.po: Update from translation team.
7972
7973         * timezone/zdump.c: Redo fix for BZ #3137.
7974
7975 2006-11-14  Jakub Jelinek  <jakub@redhat.com>
7976
7977         * nss/nss_files/files-alias.c (get_next_alias): Set line back
7978         to first_unused after parsing :include: file.
7979
7980 2006-11-10  Ulrich Drepper  <drepper@redhat.com>
7981
7982         * timezone/africa: Update from tzdata2006o.
7983         * timezone/antarctica: Likewise.
7984         * timezone/asia: Likewise.
7985         * timezone/australasia: Likewise.
7986         * timezone/backward: Likewise.
7987         * timezone/europe: Likewise.
7988         * timezone/iso3166.tab: Likewise.
7989         * timezone/northamerica: Likewise.
7990         * timezone/southamerica: Likewise.
7991         * timezone/zone.tab: Likewise.
7992
7993         * time/tzfile.c (__tzfile_read): Extend to handle new file format
7994         on machines with 64-bit time_t.
7995
7996         * timezone/checktab.awk: Update from tzcode2006o.
7997         * timezone/ialloc.c: Likewise.
7998         * timezone/private.h: Likewise.
7999         * timezone/scheck.c: Likewise.
8000         * timezone/tzfile.h: Likewise.
8001         * timezone/tzselect.ksh: Likewise.
8002         * timezone/zdump.c: Likewise.
8003         * timezone/zic.c: Likewise.
8004
8005         [BZ #3483]
8006         * elf/ldconfig.c (main): Call setlocale and textdomain.
8007         Patch mostly by Benno Schulenberg <bensberg@justemail.net>.
8008
8009         [BZ #3480]
8010         * manual/argp.texi: Fix typos.
8011         * manual/charset.texi: Likewise.
8012         * manual/errno.texi: Likewise.
8013         * manual/filesys.texi: Likewise.
8014         * manual/lang.texi: Likewise.
8015         * manual/maint.texi: Likewise.
8016         * manual/memory.texi: Likewise.
8017         * manual/message.texi: Likewise.
8018         * manual/resource.texi: Likewise.
8019         * manual/search.texi: Likewise.
8020         * manual/signal.texi: Likewise.
8021         * manual/startup.texi: Likewise.
8022         * manual/stdio.texi: Likewise.
8023         * manual/sysinfo.texi: Likewise.
8024         * manual/syslog.texi: Likewise.
8025         * manual/time.texi: Likewise.
8026         Patch by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
8027
8028         [BZ #3465]
8029         * sunrpc/clnt_raw.c: Minimal message improvements.
8030         * sunrpc/pm_getmaps.c: Likewise.
8031         * nis/nss_nisplus/nisplus-publickey.c: Likewise.
8032         * nis/nis_print_group_entry.c: Likewise.
8033         * locale/programs/repertoire.c: Likewise.
8034         * locale/programs/charmap.c: Likewise.
8035         * malloc/memusage.sh: Likewise.
8036         * elf/dl-deps.c: Likewise.
8037         * locale/programs/ld-collate.c: Likewise.
8038         * libio/vswprintf.c: Likewise.
8039         * malloc/memusagestat.c: Likewise.
8040         * sunrpc/auth_unix.c: Likewise.
8041         * sunrpc/rpc_main.c: Likewise.
8042         * nscd/cache.c: Likewise.
8043         * locale/programs/repertoire.c: Unify output messages.
8044         * locale/programs/charmap.c: Likewise.
8045         * locale/programs/ld-ctype.c: Likewise.
8046         * locale/programs/ld-monetary.c: Likewise.
8047         * locale/programs/ld-numeric.c: Likewise.
8048         * locale/programs/ld-time.c: Likewise.
8049         * elf/ldconfig.c: Likewise.
8050         * nscd/selinux.c: Likewise.
8051         * elf/cache.c: Likewise.
8052         Patch mostly by Benno Schulenberg <bensberg@justemail.net>.
8053
8054         [BZ #3451]
8055         * sysdeps/i386/fpu/bits/mathinline.h (floor): Make rounding mode
8056         change atomic.
8057         (ceil): Likewise.
8058
8059 2006-11-10  Jakub Jelinek  <jakub@redhat.com>
8060
8061         * string/strxfrm_l.c (STRXFRM): Fix trailing \1 optimization
8062         if N is one bigger than return value.
8063         * string/tst-strxfrm2.c (do_test): Also test strxfrm with l1 + 1
8064         and l1 last arguments, if buf is defined, verify the return value
8065         equals to strlen (buf) and verify no byte beyond passed length
8066         is modified.
8067
8068 2006-11-10  Ulrich Drepper  <drepper@redhat.com>
8069
8070         * po/sv.po: Update from translation team.
8071
8072 2006-11-09  Ulrich Drepper  <drepper@redhat.com>
8073
8074         * sysdeps/unix/sysv/linux/x86_64/sysconf.c (intel_check_word): Add
8075         noinline attribute.
8076
8077 2006-11-10  Jakub Jelinek  <jakub@redhat.com>
8078
8079         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Add
8080         noinline attribute.
8081
8082         * sysdeps/gnu/siglist.c (__old_sys_siglist, __old_sys_sigabbrev):
8083         Use __new_sys_siglist instead of _sys_siglist_internal as
8084         second macro argument.
8085         (_old_sys_siglist): Use declare_symbol_alias macro instead of
8086         strong_alias.
8087
8088 2006-11-09  Ulrich Drepper  <drepper@redhat.com>
8089
8090         [BZ #3493]
8091         * posix/unistd.h (sysconf): Remove const attribute.
8092
8093         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Fix test for
8094         temporary or deprecated addresses.
8095         Patch by Sridhar Samudrala <sri@us.ibm.com>.
8096
8097         * string/Makefile (tests): Add tst-strxfrm2.
8098         * string/tst-strxfrm2.c: New file.
8099
8100 2006-10-09  Jakub Jelinek  <jakub@redhat.com>
8101
8102         * elf/dl-debug.c (_dl_debug_initialize): Check r->r_map for 0
8103         rather than r->r_brk.
8104
8105 2006-11-08  Jakub Jelinek  <jakub@redhat.com>
8106
8107         * string/strxfrm_l.c (STRXFRM): Do the trailing \1 removal
8108         optimization even if needed > n.
8109
8110         * elf/dl-load.c (decompose_rpath): Return bool rather than void.
8111         If l->l_name is on inhibit_rpath list, set sps->dirs to -1 and
8112         return false, otherwise return true.
8113         (cache_rpath): Return decompose_rpath return value.
8114
8115 2006-11-07  Jakub Jelinek  <jakub@redhat.com>
8116
8117         * include/libc-symbols.h (declare_symbol): Rename to...
8118         (declare_symbol_alias): ... this.  Add ORIGINAL argument, imply
8119         strong_alias (ORIGINAL, SYMBOL) in asm to make sure it preceedes
8120         .size directive.
8121         * sysdeps/gnu/errlist-compat.awk: Adjust for declare_symbol_alias
8122         changes.
8123         * sysdeps/gnu/siglist.c: Likewise.
8124
8125 2006-11-03  Steven Munroe  <sjmunroe@us.ibm.com>
8126
8127         * sysdeps/powerpc/fpu/bits/mathinline.h
8128         [__LIBC_INTERNAL_MATH_INLINES]: Moved to ...
8129         * sysdeps/powerpc/fpu/math_private.h: ...here.  New file.
8130
8131 2006-11-05  Ulrich Drepper  <drepper@redhat.com>
8132
8133         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
8134         Update handling of cache descriptor 0x49 for new models.
8135         * sysdeps/unix/sysv/linux/x86_64/sysconf.c (intel_check_word):
8136         Likewise.
8137
8138 2006-11-02  Jakub Jelinek  <jakub@redhat.com>
8139
8140         * malloc/memusage.c (dest): Reset not_me back to false after
8141         printing statistics.
8142
8143 2006-11-02  Ulrich Drepper  <drepper@redhat.com>
8144
8145         * configure.in: Work around ld --help change and avoid -z relro
8146         test completely if the architecture doesn't care about security.
8147
8148 2006-11-01  Ulrich Drepper  <drepper@redhat.com>
8149
8150         * po/sv.po: Update from translation team.
8151
8152 2006-10-31  Ulrich Drepper  <drepper@redhat.com>
8153
8154         * stdlib/atexit.c (atexit): Don't mark as hidden when used to
8155         generate compatibility version.
8156
8157 2006-10-29  Ulrich Drepper  <drepper@redhat.com>
8158
8159         * configure.in: Relax -z relro requirement a bit.
8160
8161         * po/sv.po: Update from translation team.
8162
8163 2006-10-29  Jakub Jelinek  <jakub@redhat.com>
8164
8165         * elf/dl-sym.c (do_sym): Use RTLD_SINGLE_THREAD_P.
8166         * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Likewise.
8167         * elf/dl-close.c (_dl_close_worker): Likewise.
8168         * elf/dl-open.c (_dl_open_worker): Likewise.
8169         * sysdeps/generic/sysdep-cancel.h (RTLD_SINGLE_THREAD_P): Define.
8170
8171 2006-10-27  Ulrich Drepper  <drepper@redhat.com>
8172
8173         * configure.in: Require assembler support for visibility, compiler
8174         support for visibility and aliases, linker support for various -z
8175         options.
8176         * Makeconfig: Remove conditional code which now is unnecessary.
8177         * config.h.in: Likewise.
8178         * config.make.in: Likewise.
8179         * dlfcn/Makefile: Likewise.
8180         * elf/Makefile: Likewise.
8181         * elf/dl-load.c: Likewise.
8182         * elf/rtld.c: Likewise.
8183         * include/libc-symbols.h: Likewise.
8184         * include/stdio.h: Likewise.
8185         * io/Makefile: Likewise.
8186         * io/fstat.c: Likewise.
8187         * io/fstat64.c: Likewise.
8188         * io/fstatat.c: Likewise.
8189         * io/fstatat64.c: Likewise.
8190         * io/lstat.c: Likewise.
8191         * io/lstat64.c: Likewise.
8192         * io/mknod.c: Likewise.
8193         * io/mknodat.c: Likewise.
8194         * io/stat.c: Likewise.
8195         * io/stat64.c: Likewise.
8196         * libio/stdio.c: Likewise.
8197         * nscd/Makefile: Likewise.
8198         * stdlib/Makefile: Likewise.
8199         * stdlib/atexit.c: Likewise.
8200         * sysdeps/generic/ldsodefs.h: Likewise.
8201         * sysdeps/i386/dl-machine.h: Likewise.
8202         * sysdeps/i386/sysdep.h: Likewise.
8203         * sysdeps/i386/i686/memcmp.S: Likewise.
8204         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
8205         * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
8206         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
8207
8208         * Makerules: USE_TLS support is now default.
8209         * tls.make.c: Likewise.
8210         * csu/Versions: Likewise.
8211         * csu/libc-start.c: Likewise.
8212         * csu/libc-tls.c: Likewise.
8213         * csu/version.c: Likewise.
8214         * dlfcn/dlinfo.c: Likewise.
8215         * elf/dl-addr.c: Likewise.
8216         * elf/dl-cache.c: Likewise.
8217         * elf/dl-close.c: Likewise.
8218         * elf/dl-iteratephdr.c: Likewise.
8219         * elf/dl-load.c: Likewise.
8220         * elf/dl-lookup.c: Likewise.
8221         * elf/dl-object.c: Likewise.
8222         * elf/dl-open.c: Likewise.
8223         * elf/dl-reloc.c: Likewise.
8224         * elf/dl-support.c: Likewise.
8225         * elf/dl-sym.c: Likewise.
8226         * elf/dl-sysdep.c: Likewise.
8227         * elf/dl-tls.c: Likewise.
8228         * elf/ldconfig.c: Likewise.
8229         * elf/rtld.c: Likewise.
8230         * elf/tst-tls-dlinfo.c: Likewise.
8231         * elf/tst-tls1.c: Likewise.
8232         * elf/tst-tls10.h: Likewise.
8233         * elf/tst-tls14.c: Likewise.
8234         * elf/tst-tls2.c: Likewise.
8235         * elf/tst-tls3.c: Likewise.
8236         * elf/tst-tls4.c: Likewise.
8237         * elf/tst-tls5.c: Likewise.
8238         * elf/tst-tls6.c: Likewise.
8239         * elf/tst-tls7.c: Likewise.
8240         * elf/tst-tls8.c: Likewise.
8241         * elf/tst-tls9.c: Likewise.
8242         * elf/tst-tlsmod1.c: Likewise.
8243         * elf/tst-tlsmod13.c: Likewise.
8244         * elf/tst-tlsmod13a.c: Likewise.
8245         * elf/tst-tlsmod14a.c: Likewise.
8246         * elf/tst-tlsmod2.c: Likewise.
8247         * elf/tst-tlsmod3.c: Likewise.
8248         * elf/tst-tlsmod4.c: Likewise.
8249         * elf/tst-tlsmod5.c: Likewise.
8250         * elf/tst-tlsmod6.c: Likewise.
8251         * include/errno.h: Likewise.
8252         * include/link.h: Likewise.
8253         * include/tls.h: Likewise.
8254         * locale/global-locale.c: Likewise.
8255         * locale/localeinfo.h: Likewise.
8256         * malloc/arena.c: Likewise.
8257         * malloc/hooks.c: Likewise.
8258         * malloc/malloc.c: Likewise.
8259         * resolv/Versions: Likewise.
8260         * sysdeps/alpha/dl-machine.h: Likewise.
8261         * sysdeps/alpha/libc-tls.c: Likewise.
8262         * sysdeps/generic/ldsodefs.h: Likewise.
8263         * sysdeps/generic/tls.h: Likewise.
8264         * sysdeps/i386/dl-machine.h: Likewise.
8265         * sysdeps/ia64/dl-machine.h: Likewise.
8266         * sysdeps/ia64/libc-tls.c: Likewise.
8267         * sysdeps/mach/hurd/fork.c: Likewise.
8268         * sysdeps/mach/hurd/i386/tls.h: Likewise.
8269         * sysdeps/powerpc/powerpc32/dl-machine.c: Likwise.
8270         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
8271         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
8272         * sysdeps/s390/libc-tls.c: Likewise.
8273         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
8274         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
8275         * sysdeps/sh/dl-machine.h: Likewise.
8276         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
8277         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
8278         * sysdeps/x86_64/dl-machine.h: Likewise.
8279
8280         * elf/dl-close.c (_dl_close_worker): Renamed from _dl_close and
8281         split out locking and parameter checking.
8282         (_dl_close): Call _dl_close_worker after locking and checking.
8283         * elf/dl-open.c (_dl_open): Call _dl_close_worker instead of
8284         _dl_close.
8285         * elf/Makefile: Add rules to build and run tst-thrlock.
8286         * elf/tst-thrlock.c:  New file.
8287
8288         [BZ #3426]
8289         * stdlib/stdlib.h: Adjust comment for canonicalize_file_name to
8290         reality.
8291
8292         [BZ #3429]
8293         * elf/dl-open.c (dl_open_worker): Keep holding dl_load_lock until
8294         we are sure we do not need it anymore for _dl_close.  Also move
8295         the asserts inside the lock region.
8296         Patch mostly by Suzuki <suzuki@in.ibm.com>.
8297
8298 2006-10-27  Jakub Jelinek  <jakub@redhat.com>
8299
8300         * elf/dl-lookup.c (_dl_debug_bindings): Remove unused symbol_scope
8301         argument.
8302         (_dl_lookup_symbol_x): Adjust caller.
8303
8304         * sysdeps/generic/ldsodefs.h (struct link_namespaces): Remove
8305         _ns_global_scope.
8306         * elf/rtld.c (dl_main): Don't initialize _ns_global_scope.
8307
8308         * elf/dl-libc.c: Revert l_scope name changes.
8309         * elf/dl-load.c: Likewise.
8310         * elf/dl-object.c: Likewise.
8311         * elf/rtld.c: Likewise.
8312         * elf/dl-close.c (_dl_close): Likewise.
8313         * elf/dl-open.c (dl_open_worker): Likewise.  If not SINGLE_THREAD_P,
8314         always use __rtld_mrlock_{change,done}.  Always free old scope list
8315         here if not l_scope_mem.
8316         * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Revert l_scope name
8317         change.  Never free scope list here.  Just __rtld_mrlock_lock before
8318         the lookup and __rtld_mrlock_unlock it after the lookup.
8319         * elf/dl-sym.c: Likewise.
8320         * include/link.h (struct r_scoperec): Remove.
8321         (struct link_map): Replace l_scoperec with l_scope, l_scoperec_mem
8322         with l_scope_mem and l_scoperec_lock with l_scope_lock.
8323
8324 2006-10-25  Ulrich Drepper  <drepper@redhat.com>
8325
8326         * sysdeps/gnu/netinet/tcp.h: Define TCP_CONGESTION.
8327
8328 2006-10-18  Ulrich Drepper  <drepper@redhat.com>
8329
8330         * configure.in: Disable building profile libraries by default.
8331
8332 2006-10-17  Jakub Jelinek  <jakub@redhat.com>
8333
8334         * sunrpc/xdr_mem.c (xdrmem_setpos): Don't compare addresses
8335         as signed longs, check for x_base + pos overflow.
8336         * sunrpc/Makefile (tests): Add tst-xdrmem2.
8337         * sunrpc/tst-xdrmem2.c: New test.
8338
8339 2006-10-18  Ulrich Drepper  <drepper@redhat.com>
8340
8341         * elf/dl-lookup.c (_dl_lookup_symbol_x): Add warning to
8342         _dl_lookup_symbol_x code.
8343
8344 2006-10-17  Jakub Jelinek  <jakub@redhat.com>
8345
8346         * elf/dl-runtime.c: Include sysdep-cancel.h.
8347         (_dl_fixup, _dl_profile_fixup): Use __rtld_mrlock_* and
8348         scoperec->nusers only if !SINGLE_THREAD_P.  Use atomic_*
8349         instead of catomic_* macros.
8350         * elf/dl-sym.c: Include sysdep-cancel.h.
8351         (do_sym): Use __rtld_mrlock_* and scoperec->nusers only
8352         if !SINGLE_THREAD_P.  Use atomic_* instead of catomic_* macros.
8353         * elf/dl-close.c: Include sysdep-cancel.h.
8354         (_dl_close): Use __rtld_mrlock_* and scoperec->nusers only
8355         if !SINGLE_THREAD_P.  Use atomic_* instead of catomic_* macros.
8356         * elf/dl-open.c: Include sysdep-cancel.h.
8357         (dl_open_worker): Use __rtld_mrlock_* and scoperec->nusers only
8358         if !SINGLE_THREAD_P.  Use atomic_* instead of catomic_* macros.
8359
8360 2006-10-17  Jakub Jelinek  <jakub@redhat.com>
8361
8362         [BZ #3313]
8363         * malloc/malloc.c (malloc_consolidate): Set maxfb to address of last
8364         fastbin rather than end of fastbin array.
8365
8366 2006-10-18  Ulrich Drepper  <drepper@redhat.com>
8367
8368         * sysdeps/i386/i486/bits/atomic.h (catomic_decrement): Use correct
8369         body macro.
8370         * sysdeps/x86_64/bits/atomic.h
8371         (__arch_c_compare_and_exchange_val_64_acq): Add missing casts.
8372         (catomic_decrement): Use correct body macro.
8373
8374 2006-10-17  Jakub Jelinek  <jakub@redhat.com>
8375
8376         * include/atomic.h: Add a unique prefix to all local variables
8377         in macros.
8378         * csu/tst-atomic.c (do_test): Test also catomic_* macros.
8379
8380 2006-10-16  Ulrich Drepper  <drepper@redhat.com>
8381
8382         [BZ #3369]
8383         * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Fix typos in rules 4
8384         and 7.
8385
8386 2006-10-14  Ulrich Drepper  <drepper@redhat.com>
8387
8388         * resolv/arpa/nameser.h: Document that ns_t_a6 is deprecated.
8389
8390 2006-10-13  Ulrich Drepper  <drepper@redhat.com>
8391
8392         [BZ #3313]
8393         * malloc/malloc.c (malloc_consolidate): Don't use get_fast_max to
8394         determine highest fast bin to consolidate, always look into all of
8395         them.
8396         (do_check_malloc_state): Only require for empty bins for large
8397         sizes in main arena.
8398
8399         * libio/stdio.h: Add more __wur attributes.
8400
8401         * elf/dl-minimal.c (realloc): Optimize last patch.
8402
8403 2006-10-12  Richard Sandiford  <richard@codesourcery.com>
8404
8405         [BZ #3352]
8406         * elf/dl-minimal.c (realloc): Let malloc() return a new pointer,
8407         and use memcpy() if it does.
8408
8409 2006-11-12  Andreas Jaeger  <aj@suse.de>
8410
8411         [BZ #2510]
8412         * manual/search.texi (Hash Search Function): Clarify.
8413         (Array Search Function): Clarify.
8414
8415 2006-11-12  Joseph Myers  <joseph@codesourcery.com>
8416
8417         [BZ #2830]
8418         * math/atest-exp.c (main): Cast hex value to mp_limb_t before
8419         shifting.
8420         * math/atest-exp2.c (read_mpn_hex): Likewise.
8421         * math/atest-sincos.c (main): Likewise.
8422
8423 2006-10-11  Ulrich Drepper  <drepper@redhat.com>
8424
8425         * sysdeps/unix/sysv/linux/syscalls.list: Add epoll_pwait.
8426         * sysdeps/unix/sysv/linux/sys/epoll.h: Declare epoll_pwait.
8427         * sysdeps/unix/sysv/linux/Versions (libc): Add epoll_pwait for
8428         version GLIBC_2.6.
8429         * Versions.def: Add GLIBC_2.6 for libc.
8430
8431         * sysdeps/unix/sysv/linux/i386/sysdep.h (DOARGS_6): Fix offset.
8432
8433         * sysdeps/i386/i486/bits/atomic.h: Add catomic_* support.
8434
8435 2006-10-11  Jakub Jelinek  <jakub@redhat.com>
8436
8437         * malloc/malloc.c (_int_malloc): Remove unused any_larger variable.
8438
8439         * nis/nis_defaults.c (__nis_default_access): Don't call getenv twice.
8440
8441         * nis/nis_subr.c (nis_getnames): Use __secure_getenv instead of getenv.
8442         * sysdeps/generic/unsecvars.h: Add NIS_PATH.
8443
8444 2006-10-11  Ulrich Drepper  <drepper@redhat.com>
8445
8446         * include/atomic.c: Define catomic_* operations.
8447         * sysdeps/x86_64/bits/atomic.h: Likewise.  Fix a few minor problems.
8448         * stdlib/cxa_finalize.c: Use catomic_* operations instead of atomic_*.
8449         * malloc/memusage.c: Likewise.
8450         * gmon/mcount.c: Likewise.
8451         * elf/dl-close.c: Likewise.
8452         * elf/dl-open.c: Likewise.
8453         * elf/dl-profile.c: Likewise.
8454         * elf/dl-sym.c: Likewise.
8455         * elf/dl-runtime.c: Likewise.
8456         * elf/dl-fptr.c: Likewise.
8457         * resolv/res_libc.c: Likewise.
8458
8459 2006-10-10  Ulrich Drepper  <drepper@redhat.com>
8460
8461         * nis/nis_subr.c (nis_getnames): Add trailing dot to NIS_PATH
8462         components which lack them.
8463
8464         * nis/nis_subr.c (nis_getnames): Make sure that we always return
8465         at least one entry consisting of the parameter concatenated with
8466         the domain.
8467
8468 2006-10-10  Roland McGrath  <roland@frob.com>
8469
8470         * sysdeps/mach/hurd/utimes.c: Use a union to avoid an improper cast.
8471         * sysdeps/mach/hurd/futimes.c: Likewise.
8472         * sysdeps/mach/hurd/lutimes.c: Likewise.
8473
8474 2006-10-09  Ulrich Drepper  <drepper@redhat.com>
8475             Jakub Jelinek  <jakub@redhat.com>
8476
8477         Implement reference counting of scope records.
8478         * elf/dl-close.c (_dl_close): Remove all scopes from removed objects
8479         from the list in objects which remain.  Always allocate new scope
8480         record.
8481         * elf/dl-open.c (dl_open_worker): When growing array for scopes,
8482         don't resize, allocate a new one.
8483         * elf/dl-runtime.c: Update reference counters before using a scope
8484         array.
8485         * elf/dl-sym.c: Likewise.
8486         * elf/dl-libc.c: Adjust for l_scope name change.
8487         * elf/dl-load.c: Likewise.
8488         * elf/dl-object.c: Likewise.
8489         * elf/rtld.c: Likewise.
8490         * include/link.h: Include <rtld-lowlevel.h>.  Define struct
8491         r_scoperec.  Replace r_scope with pointer to r_scoperec structure.
8492         Add l_scoperec_lock.
8493         * sysdeps/generic/ldsodefs.h: Include <rtld-lowlevel.h>.
8494         * sysdeps/generic/rtld-lowlevel.h: New file.
8495
8496         * include/atomic.h: Rename atomic_and to atomic_and_val and
8497         atomic_or to atomic_or_val.  Define new macros atomic_and and
8498         atomic_or which do not return values.
8499         * sysdeps/x86_64/bits/atomic.h: Define atomic_and and atomic_or.
8500         Various cleanups.
8501         * sysdeps/i386/i486/bits/atomic.h: Likewise.
8502
8503         * po/sv.po: Update from translation team.
8504
8505 2006-10-07  Ulrich Drepper  <drepper@redhat.com>
8506
8507         * Versions.def: Add GLIBC_2.6 to libpthread.
8508
8509         * include/shlib-compat.h (SHLIB_COMPAT): Expand parameters before use.
8510         (versioned_symbol): Likewise.
8511         (compat_symbol): Likewise.
8512
8513         * po/tr.po: Update from translation team.
8514
8515 2006-10-06  Ulrich Drepper  <drepper@redhat.com>
8516
8517         * nis/Banner: Removed.  It's been integral part forever and the
8518         author info is incomplete anyway.
8519         * libio/Banner: Likewise.
8520
8521         * nis/nis_table.c (nis_list): If __follow_path fails in the new
8522         code, make sure the nis_freeresult call doesn't crash and that the
8523         result is reported correctly.
8524
8525 2006-09-27  Jakub Jelinek  <jakub@redhat.com>
8526
8527         * nis/nis_table.c (nis_list): Handle FOLLOW_PATH | ALL_RESULTS
8528         when callback is NULL.
8529
8530         * nis/Versions (libnss_nisplus): Add
8531         _nss_nisplus_initgroups_dyn@@GLIBC_PRIVATE.
8532         * nis/Makefile (libnss_nisplus-routines): Add nisplus-initgroups.
8533         * nis/nss_nisplus/nisplus-grp.c (tablename_val, tablename_len,
8534         _nss_create_tablename): Rename to...
8535         (grp_tablename_val, grp_tablename_len, _nss_grp_create_tablename):
8536         ... these.  No longer static.
8537         (internal_setgrent): Adjust users.
8538         (_nss_nisplus_getgrnam_r, _nss_nisplus_getgrgid_r): Likewise.
8539         Don't use locking around _nss_grp_create_tablename call.
8540         * nis/nss_nisplus/nisplus-initgroups.c: New file.
8541
8542 2006-10-06  Ulrich Drepper  <drepper@redhat.com>
8543
8544         * version.h (VERSION): Bump to 2.5.90 for new development tree.
8545
8546 2006-10-06  Andreas Jaeger  <aj@suse.de>
8547
8548         * include/features.h (__GLIBC_MINOR__): It's glibc 2.5 now.
8549
8550 2006-10-06  Ulrich Drepper  <drepper@redhat.com>
8551
8552         * po/pl.po: Update from translation team.
8553
8554         * nscd/nscd.c (main): Fix typo in message.
8555         Patch by Jakub Bogsz <qboosh@pld-linux.org>.
8556
8557 2006-10-02  Jakub Jelinek  <jakub@redhat.com>
8558
8559         [BZ #3291]
8560         * sysdeps/unix/sysv/linux/sparc/sparc64/pause.c: Include
8561         errno.h, signal.h, unistd.h and sysdep-cancel.h.
8562         (__sigprocmask): Define.
8563
8564 2006-10-02  Ulrich Drepper  <drepper@redhat.com>
8565
8566         * elf/rtld.c (dl_main): Don't use prelinking if LD_DYNAMIC_WEAK is
8567         used.
8568
8569 2006-10-02  Jakub Jelinek  <jakub@redhat.com>
8570
8571         * nscd/mem.c (mempool_alloc): Round array size to 16 bytes
8572         in oldtotal and newtotal calculation.
8573         * nscd/nscd-client.h (struct mapped_database): Add datasize
8574         field.
8575         * nscd/nscd_helper.c (get_mapping): Initialize datasize field.
8576         (__nscd_get_map_ref): Get a new mapping even if mapping's data_size
8577         increased.
8578         (__nscd_cache_search): Add checks to make sure we never reference
8579         data beyond the current mapping.
8580
8581 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
8582
8583         * sysdeps/posix/getaddrinfo.c (match_prefix): Make mask and val
8584         variables const to avoid compiler warnings.
8585
8586         * io/fts.c (fts_close): Remove redundant checks.
8587         (fts_build): Likewise.
8588         (fts_palloc): Likewise.
8589
8590         * manual/message.texi (Advanced gettext functions,
8591         Using gettextized software): Fix typos.
8592
8593 2006-09-30  Ulrich Drepper  <drepper@redhat.com>
8594
8595         * posix/glob.c (glob_in_dir): Add some comments and asserts to
8596         explain why there are no leaks.
8597
8598 2006-09-29  Ulrich Drepper  <drepper@redhat.com>
8599
8600         * libio/wmemstream.c: Include <wchar.h>.
8601         * libio/bug-wmemstream1.c: Likewise.
8602         * libio/tst-wmemstream1.c: Likewise.
8603         * libio/tst-wmemstream2.c: Likewise.
8604
8605         * version.h (RELEASE): Bump to 2.5.
8606         * README: Regenerated.
8607
8608         * locale/iso-3166.def: Add Aaland Islands and Montenegro.
8609
8610         [BZ #3273]
8611         * nscd/nscd_initgroups.c (__nscd_getgrouplist): It is OK to have
8612         found no group members.
8613         Patch by Petr Baudis.
8614
8615 2006-09-29  Jakub Jelinek  <jakub@redhat.com>
8616
8617         * elf/rtld.c (_dl_start_final): If not USE___THREAD, don't
8618         assert bootstrap_map.l_tls_modid is zero.
8619         (_dl_start): Initialize bootstrap_map.l_tls_modid to 0
8620         if USE___THREAD.
8621
8622 2006-09-27  Ulrich Drepper  <drepper@redhat.com>
8623
8624         * libio/stdio.h: Move open_wmemstream prototype to ...
8625         * wcsmbs/wchar.h: ... here.
8626
8627 2006-09-25  Jakub Jelinek  <jakub@redhat.com>
8628
8629         [BZ #3252]
8630         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat): Handle only
8631         fchownat syscall and __ASSUME_LCHOWN_SYSCALL case inline, call
8632         __{,l}chown to handle the rest.
8633         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Handle only
8634         fchownat syscall and __ASSUME_32BITUIDS case inline, call
8635         __{,l}chown to handle the rest.
8636         * sysdeps/unix/sysv/linux/sparc/sparc32/fchownat.c: Include
8637         i386/fchownat.c.
8638         * sysdeps/unix/sysv/linux/s390/s390-32/fchownat.c: Likewise.
8639         * sysdeps/unix/sysv/linux/sh/fchownat.c: Likewise.
8640
8641         [BZ #3253]
8642         * posix/glob.c (glob_in_dir): Don't alloca one struct globlink at a
8643         time, rather allocate increasingly bigger arrays of pointers, if
8644         possible with alloca, if too large with malloc.
8645
8646 2006-09-24  Jakub Jelinek  <jakub@redhat.com>
8647
8648         * sysdeps/powerpc/fpu/libm-test-ulps: Updated.
8649
8650         * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Fix 2 typos.
8651
8652 2006-09-24  Ulrich Drepper  <drepper@redhat.com>
8653
8654         * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Implement rule 4,
8655         home addresses.
8656         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Recognize
8657         IFA_F_HOMEADDRESS flag for interfaces.
8658         * include/ifaddrs.h (struct in6addrinfo): Define
8659         in6ai_homeaddress.
8660
8661 2006-09-21  Jakub Jelinek  <jakub@redhat.com>
8662
8663         [BZ #3225]
8664         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (PTR_MANGLE3,
8665         PTR_DEMANGLE3): Define.
8666         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h (PTR_MANGLE3,
8667         PTR_DEMANGLE3): Likewise.
8668         * sysdeps/powerpc/powerpc32/__longjmp-common.S (__longjmp): Use them.
8669         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp):
8670         Likewise.
8671         * sysdeps/powerpc/powerpc64/__longjmp-common.S (__longjmp): Likewise.
8672
8673 2006-09-20  Jakub Jelinek  <jakub@redhat.com>
8674
8675         * po/libc.pot: Regenerated.
8676         * po/be.po: Updated.
8677         * po/ca.po: Likewise.
8678         * po/cs.po: Likewise.
8679         * po/da.po: Likewise.
8680         * po/de.po: Likewise.
8681         * po/el.po: Likewise.
8682         * po/en_GB.po: Likewise.
8683         * po/es.po: Likewise.
8684         * po/fi.po: Likewise.
8685         * po/fr.po: Likewise.
8686         * po/gl.po: Likewise.
8687         * po/hr.po: Likewise.
8688         * po/hu.po: Likewise.
8689         * po/ja.po: Likewise.
8690         * po/ko.po: Likewise.
8691         * po/nb.po: Likewise.
8692         * po/nl.po: Likewise.
8693         * po/pl.po: Likewise.
8694         * po/pt_BR.po: Likewise.
8695         * po/ru.po: Likewise.
8696         * po/rw.po: Likewise.
8697         * po/sk.po: Likewise.
8698         * po/sv.po: Likewise.
8699         * po/tr.po: Likewise.
8700         * po/zh_CN.po: Likewise.
8701         * po/zh_TW.po: Likewise.
8702
8703         [BZ #3137]
8704         * iconv/iconv_prog.c (main): Fix spelling in error message.
8705         * iconv/iconvconfig.c (main): Likewise.
8706         * locale/programs/ld-collate.c (handle_ellipsis): Likewise.
8707         * locale/programs/ld-ctype.c (charclass_symbolic_ellipsis): Likewise.
8708         * locale/programs/localedef.c (main): Likewise.
8709         * locale/programs/repertoire.c (repertoire_read): Likewise.
8710         * timezone/zdump.c (main): Likewise.
8711         * nscd/connections.c (handle_request): Fix spelling in log message.
8712         Patch by Malcolm Parsons <malcolm.parsons@gmail.com>.
8713
8714 2006-09-20  Ulrich Drepper  <drepper@redhat.com>
8715
8716         * inet/inet6_option.c: Also emit linker warnings for the RFC 2292
8717         interfaces.
8718
8719 2006-09-20  Andreas Jaeger  <aj@suse.de>
8720
8721         * math/libm-test.inc (lrint_test_upward): Fix typo.
8722
8723 2006-06-17  Joseph S. Myers  <joseph@codesourcery.com>
8724
8725         [BZ #2592]
8726         * math/libm-test.inc (lrint_test_tonearest): New function.
8727         (lrint_test_towardzero): New function.
8728         (lrint_test_downward): New function.
8729         (lrint_test_upward): New function.
8730         (main): Run these new tests.
8731         * sysdeps/ieee754/dbl-64/s_llrint.c (__llrint): Correct rounding
8732         of values near to 0.
8733         (two52): Use double not long double.
8734         * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Likewise.
8735         * sysdeps/ieee754/flt-32/s_llrintf.c (__llrintf): Likewise.
8736         (two23): Use float not double.
8737         * sysdeps/ieee754/flt-32/s_lrintf.c (__lrintf): Likewise.
8738         (two23): Use float not double.
8739         * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl): Likewise.
8740         * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Likewise.
8741         * sysdeps/ieee754/ldbl-96/s_llrintl.c (__llrintl): Likewise.
8742         * sysdeps/ieee754/ldbl-96/s_lrintl.c (__lrintl): Likewise.
8743
8744 2006-09-20  Martin Schwidefsky  <schwidefsky@de.ibm.com>
8745
8746         * sysdeps/unix/sysv/linux/s390/s390-32/makecontext.c (__makecontext):
8747         Cast sp to unsigned long to avoid compiler warning.
8748         Use __makecontext_ret function instead of a trampoline on the stack.
8749         (__makecontext_ret): New function.
8750         * sysdeps/unix/sysv/linux/s390/s390-64/makecontext.c: Likewise.
8751
8752 2006-09-19  Jakub Jelinek  <jakub@redhat.com>
8753
8754         * elf/dl-cache.c (HWCAP_CHECK): If _DL_PLATFORMS_COUNT, but
8755         platform == -1, reject any libs with non-zero _DL_HWCAP_PLATFORM
8756         bits.
8757
8758 2006-09-19  Ulrich Drepper  <drepper@redhat.com>
8759
8760         * elf/dl-close.c (_dl_close): If dependency is not unloaded make
8761         sure no reference to the unloaded map's search list remains in the
8762         dependency's scope.
8763
8764 2006-09-16  Jakub Jelinek  <jakub@redhat.com>
8765
8766         * elf/Makefile: Add rules to build and run unload7 test.
8767         * elf/unload7.c: New test.
8768         * elf/unload7mod1.c: New file.
8769         * elf/unload7mod2.c: New file.
8770
8771 2006-09-18  Jakub Jelinek  <jakub@redhat.com>
8772
8773         * sysdeps/unix/sysv/linux/sys/ptrace.h (PT_GETEVENTMSG): Fix pasto.
8774         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h (PTRACE_SETOPTIONS,
8775         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
8776         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h (PTRACE_SETOPTIONS,
8777         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Likewise.
8778         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h (PTRACE_SETOPTIONS,
8779         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Likewise.
8780         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h (PTRACE_SETOPTIONS,
8781         PTRACE_GETEVENTMSG): Likewise.
8782         (PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Change to the arch independent
8783         values.
8784
8785 2006-09-17  Mike Frysinger  <vapier@gentoo.org>
8786
8787         * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_SETOPTIONS,
8788         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
8789         * sysdeps/unix/sysv/linux/ptrace.c (ptrace): Check PTRACE_SETOPTIONS,
8790         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO and PTRACE_SETSIGINFO.
8791
8792 2006-09-16  Jakub Jelinek  <jakub@redhat.com>
8793
8794         * sysdeps/powerpc/powerpc32/register-dump.h (register_dump): Don't
8795         write '\0' to the fd.
8796         * sysdeps/mach/hurd/powerpc/register-dump.h (register_dump): Likewise.
8797         * sysdeps/powerpc/powerpc64/register-dump.h (register_dump): Likewise.
8798         Change regs to unsigned long pointer from unsigned int, fix fscr
8799         offset.
8800
8801 2006-09-14  Jakub Jelinek  <jakub@redhat.com>
8802
8803         * io/Makefile (CFLAGS-fstatat.c): Set.
8804         (CFLAGS-fstatat64.c): Likewise.
8805         (CFLAGS-mknodat.c): Likewise.
8806
8807         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Comment fixes.
8808         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
8809         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Rewritten.
8810         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Rewritten.
8811
8812 2006-09-14  Jakub Jelinek  <jakub@redhat.com>
8813             Steven Munroe  <sjmunroe@us.ibm.com>
8814
8815         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add 4 new cap
8816         names to the beginning.  Rename "cell" to "cellbe".
8817         (_dl_powerpc_platforms): New.
8818         * sysdeps/powerpc/dl-procinfo.h (_DL_HWCAP_FIRST): Decrease.
8819         (HWCAP_IMPORTANT): Remove power{4,5,5+} and cell.
8820         (_DL_PLATFORMS_COUNT, _DL_FIRST_PLATFORM): Define.
8821         (_DL_HWCAP_PLATFORM): Define to new mask.
8822         (_dl_platform_string, _dl_string_platform): New functions.
8823         * sysdeps/powerpc/sysdep.h (PPC_FEATURE_BOOKE, PPC_FEATURE_SMT,
8824         PPC_FEATURE_ICACHE_SNOOP, PPC_FEATURE_ARCH_2_05): Define.
8825
8826 2006-09-12  Jakub Jelinek  <jakub@redhat.com>
8827
8828         [BZ #2526]
8829         * README.libm: Fix a thinko in sqrt algorithm description.
8830
8831         [BZ #3143]
8832         * manual/string.texi (argz_delete): Fix prototype.
8833         Patch by <alpt@freaknet.org>.
8834
8835 2006-08-26  Joseph Myers  <joseph@codesourcery.com>
8836
8837         [BZ #3138]
8838         * io/test-lfs.c (do_prepare): Give name_len type size_t.
8839         * io/tst-fcntl.c (do_prepare): Likewise.
8840         * posix/tst-exec.c (do_prepare): Likewise.
8841         * posix/tst-preadwrite.c (do_prepare): Likewise.
8842         * posix/tst-spawn.c (do_prepare): Likewise.
8843         * posix/tst-truncate.c (do_prepare): Likewise.
8844         * rt/tst-aio.c (do_prepare): Likewise.
8845         * rt/tst-aio64.c (do_prepare): Likewise.
8846         * stdlib/test-canon2.c (do_prepare): Give test_dir_len type
8847         size_t.
8848
8849 2006-09-09  Ulrich Drepper  <drepper@redhat.com>
8850
8851         [BZ #2821]
8852         * time/mktime.c (guess_time_tm): Fix overflow detection.
8853         * time/Makefile (tests): Add bug-mktime1.
8854         * time/bug-mktime1.c: New file.
8855
8856         [BZ #3189, #3188]
8857         * misc/sys/mman.h (remap_file_pages): Make available for _GNU_SOURCE.
8858         (mremap): Likewise.
8859
8860 2006-09-07  Jakub Jelinek  <jakub@redhat.com>
8861
8862         [BZ #1006]
8863         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela):
8864         Ensure relocation doesn't clobber any bits outside of the
8865         immediate field for R_SPARC_TLS_LE_HIX22, R_SPARC_WDISP30,
8866         R_SPARC_HI22 and R_SPARC_H44.
8867
8868         [BZ #2775]
8869         * malloc/malloc.c (sYSMALLOc): Only call grow_heap if
8870         (long) (MINSIZE + nb - old_size) is positive.
8871
8872         * malloc/arena.c (grow_heap): When growing bail even if new_size
8873         is negative.
8874
8875         [BZ #3155]
8876         * sysdeps/powerpc/powerpc32/fpu/s_lrint.S (__lrint): Don't access
8877         stack below r1.
8878
8879 2006-09-06  Jakub Jelinek  <jakub@redhat.com>
8880
8881         * posix/regex_internal.c (re_string_reconstruct): Handle
8882         offset < pstr->valid_raw_len && pstr->offsets_needed case.
8883         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
8884         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
8885         re_string_context_at.
8886         * posix/Makefile: Add rules to build and run bug-regex26 test.
8887         * posix/bug-regex26.c: New test.
8888
8889         * locale/programs/ld-collate.c (collate_read): Goto sym_equiv_free
8890         rather than col_sym_free.  Move seqp declaration earlier.
8891
8892         * resolv/gai_suspend.c (gai_suspend): Make sure result is initialized.
8893
8894 2006-09-05  Jakub Jelinek  <jakub@redhat.com>
8895
8896         * nscd/initgrcache.c (addinitgroupsX): Move any_success
8897         decl before first goto out.
8898
8899 2006-09-04  Jakub Jelinek  <jakub@redhat.com>
8900
8901         * Makerules (shlib.lds): If have-hash-style, put .hash section
8902         at the end of the RO segment.
8903
8904 2006-09-04  Ulrich Drepper  <drepper@redhat.com>
8905
8906         * elf/do-lookup.h (do_lookup_x): Initialize symidx in case the new
8907         style hash table format is used.
8908
8909 2006-09-04  Jakub Jelinek  <jakub@redhat.com>
8910
8911         * resolv/res_mkquery.c (res_nmkquery): Set hp->id to statp->id after
8912         randomization rather than before.
8913         * resolv/res_init.c (res_randomid): Don't call gettimeofday here.
8914
8915 2006-08-31  Jakub Jelinek  <jakub@redhat.com>
8916
8917         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Add ld.so.
8918
8919         * malloc/malloc.c (_int_malloc): Use full list insert and not
8920         shortcut which assumes the list is empty for large requests
8921         too.
8922
8923         * elf/tst-addr1.c (do_test): Allow i.dli_sname "_IO_printf".
8924
8925 2006-08-30  Jakub Jelinek  <jakub@redhat.com>
8926
8927         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (splice): Add offin
8928         and offout arguments to the prototype.
8929         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (splice): Likewise.
8930         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h (splice): Likewise.
8931         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (splice): Likewise.
8932         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h (splice): Likewise.
8933         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h (splice): Likewise.
8934         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (splice): Likewise.
8935         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h (splice): Likewise.
8936         * sysdeps/unix/sysv/linux/syscalls.list (splice): Adjust args string.
8937
8938 2006-08-28  Ulrich Drepper  <drepper@redhat.com>
8939
8940         * elf/dl-load.c (_dl_init_paths): Expand DSTs.
8941
8942         * elf/dl-open.c (dl_open_worker): Allow $LIB and $PLATFORM in
8943         dlopen parameters.
8944
8945 2006-08-28  Jakub Jelinek  <jakub@redhat.com>
8946
8947         * inet/getnameinfo.c (getnameinfo): For AF_INET, check errno
8948         only if herrno is NETDB_INTERNAL.  Handle errors other than
8949         ERANGE outside of the loops, handle TRY_AGAIN.
8950
8951         * locale/programs/ld-ctype.c (translit_flatten): Issue error
8952         if other's ctype category was missing.
8953         * locale/programs/ld-collate.c (collate_read): Return if
8954         copy_locale's collate category is missing.
8955
8956 2006-08-27  Ulrich Drepper  <drepper@redhat.com>
8957
8958         [BZ #2684]
8959         * malloc/malloc.c (public_rEALLOc): Try harder by using other
8960         arenas if allocation failed.
8961         Patch mostly by Jan Edler <jan.edler@indexengines.com>.
8962
8963 2006-08-26  Ulrich Drepper  <drepper@redhat.com>
8964
8965         * malloc/malloc.c (bin_at): Rewrite to be more clear and to not
8966         waste bins[0..1].
8967         (malloc_state): Reduce bins size by 2.
8968         (_int_malloc): Fix test for large enough buffer for early termination.
8969         When no unsorted block matches perfectly and an exiting block has
8970         to be split, use full list insert and not shortcut which assumes
8971         the list is empty.
8972
8973         * locale/programs/ld-ctype.c (ctype_read): Better patch for read
8974         failure.
8975
8976 2006-08-24  Ulrich Drepper  <drepper@redhat.com>
8977
8978         * locale/programs/ld-ctype.c (ctype_read): If CTYPE is NULL, don't
8979         do anything.
8980
8981         * sysdeps/generic/ldsodefs.h (DL_ADDR_SYM_MATCH): For undefined
8982         symbol require exact match (these are PLTs).
8983         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ldsodefs.h
8984         (_dl_ppc64_addr_sym_match): Likewise.
8985
8986         [BZ #2683]
8987         * elf/dl-addr.c (_dl_addr): Don't ignore all undefined symbols.
8988         If symbol has a value use it.
8989         * elf/tst-dladdr1.c: New file.
8990         * elf/Makefile: Add rules to build and run tst-addr1.
8991
8992 2006-08-24  Jakub Jelinek  <jakub@redhat.com>
8993
8994         * malloc/malloc.c (sYSMALLOc): Avoid infinite loop if MMAP
8995         keeps failing and heap growth or new heap creation isn't
8996         successful either.
8997         * malloc/tst-malloc.c (main): Add new tests.
8998
8999 2006-08-24  Ulrich Drepper  <drepper@redhat.com>
9000
9001         [BZ #2734]
9002         * sysdeps/i386/bits/byteswap.h (__bswap_32): Use same conditions
9003         as in the x86-64 code to use bswap.
9004
9005 2006-05-21  Joseph S. Myers  <joseph@codesourcery.com>
9006
9007         [BZ #2680]
9008         * posix/unistd.h (getlogin_r): Condition on __USE_POSIX199506, not
9009         __USE_UNIX98.
9010         * posix/bits/unistd.h: Likewise.
9011
9012 2006-05-15  Mike Frysinger  <vapier@gentoo.org>
9013
9014         [BZ #2751]
9015         * string/strchr.c: Add cast to avoid warning.
9016
9017 2006-08-21  Ulrich Drepper  <drepper@redhat.com>
9018
9019         * malloc/malloc.c (DEFAULT_MMAP_THRESHOLD_MAX): For 32-bit
9020         platforms define as 512K.  For 64-bit platforms as 32MB.  The lower
9021         limit is needed to avoid the exploding of the address space
9022         requirement for secondary heaps.
9023         * malloc/arena.c (HEAP_MAX_SIZE): Define using
9024         DEFAULT_MMAP_THRESHOLD_MAX if it is defined.
9025
9026 2006-07-30  Joseph S. Myers  <joseph@codesourcery.com>
9027
9028         [BZ #3018]
9029         * Makerules (depfiles): Handle extra-test-objs the same as
9030         extra-objs.
9031         (common-mostlyclean): Likewise.
9032         * dlfcn/Makefile (extra-objs): Add modules to extra-test-objs
9033         instead.
9034         * elf/Makefile (extra-objs): Likewise.
9035         * stdlib/Makefile (extra-objs): Likewise.
9036
9037 2006-08-14  Eric Blake  <ebb9@byu.net>
9038
9039         [BZ #3044]
9040         * misc/error.h: Assume C89 or better.
9041         * misc/error.c: Likewise.
9042
9043 2006-08-21  Ulrich Drepper  <drepper@redhat.com>
9044
9045         [BZ #3040]
9046         * sysdeps/unix/sysv/linux/openat.c: Fix compilation if
9047         __ASSUME_ATFCTS is defined.
9048
9049 2006-08-19  Ulrich Drepper  <drepper@redhat.com>
9050
9051         * malloc/malloc.c (_int_malloc): Limit number of unsorted blocks
9052         to sort in each call.
9053
9054         * nis/nss_nis/nis-service.c (internal_nis_getservent_r): . If map
9055         is empty simply return and use next service.
9056         * nis/nss_nis/nis-rpc.c (internal_nis_getrpcent_r): Likewise.
9057
9058         * locale/programs/charmap.c (charmap_read): Add new parameter.  It
9059         tells us when not finding a charmap file is an error.
9060         * locale/programs/charmap.h: Adjust charmap_read prototype.
9061         * iconv/iconv_prog.c (main): Tell charmap_read it's no error if we
9062         cannot find a charmap.
9063         * locale/programs/localedef.c (main): Adjust charmap_read call.
9064
9065 2006-08-15  Jakub Jelinek  <jakub@redhat.com>
9066
9067         * sysdeps/unix/sysv/linux/sparc/sparc64/pause.c: Use
9068         sysdeps/posix/pause.c implementation instead.
9069
9070 2006-08-09  Jakub Jelinek  <jakub@redhat.com>
9071
9072         * sysdeps/unix/nice.c (nice): Transform EACCES errno from setpriority
9073         to EPERM.
9074
9075 2006-08-13  Andreas Schwab  <schwab@suse.de>
9076
9077         * sysdeps/powerpc/powerpc32/dl-trampoline.S (_dl_runtime_resolve):
9078         Don't clobber caller's LRSAVE.
9079         (_dl_prof_resolve): Likewise.
9080
9081 2006-08-14  Ulrich Drepper  <drepper@redhat.com>
9082
9083         [BZ #1996]
9084         * libio/memstream.c (open_memstream): Allocate initial buffer with
9085         calloc.
9086         * libio/wmemstream.c (open_wmemstream): Likewise.
9087         * libio/strops.c: Pretty printing.
9088         (_IO_str_overflow): Clear uninitialized part of the new buffer.
9089         (enlarge_userbuf): New function.
9090         (_IO_str_seekoff): Call it if seek position is larger than current
9091         buffer.
9092         * libio/wstrops.c: Likewise.
9093         * libio/vasprintf.c: Add comment as to why we do not have to use
9094         calloc instead of malloc to allocate initial buffer.
9095         * libio/Makefile (tests): Add bug-memstream1 and bug-wmemstream1.
9096         * libio/bug-memstream1.c: New file.
9097         * libio/bug-wmemstream1.c: New file.
9098
9099 2006-08-13  Ulrich Drepper  <drepper@redhat.com>
9100
9101         * libio/wstrops.c: Remove dead macro definitions and comments.
9102         * libio/strops.c: Likewise.
9103
9104         [BZ #2764]
9105         * login/utmpname.c (__utmpname): Remove unnecessary test.
9106
9107 2006-06-08  Joseph Myers  <jsm28@gcc.gnu.org>
9108
9109         [BZ #2832]
9110         * math/gen-libm-test.pl (clean_up_number): Do not remove trailing
9111         0s from integers.
9112
9113 2006-08-13  Ulrich Drepper  <drepper@redhat.com>
9114
9115         [BZ #2987]
9116         * sysdeps/unix/sysv/linux/clock_settime.c: Add code to use syscall
9117         for CPU clocks.
9118         * sysdeps/unix/clock_settime.c: Add support for platform-specific
9119         setting of CPU clocks.
9120
9121 2006-06-23  Paul Eggert  <eggert@cs.ucla.edu>
9122
9123         [BZ #2841]
9124         * sysdeps/generic/stdint.h (UINT8_C, UINT16_C): Don't append 'U',
9125         since C99 requires the result to promote to 'int' when uint_least8_t
9126         and uint_least16_t promote to 'int'.
9127
9128 2006-08-12  Ulrich Drepper  <drepper@redhat.com>
9129
9130         [BZ #3013]
9131         * locale/programs/ld-ctype.c (ctype_output): Adjust alignments, fix
9132         lenght of one output field, correct bitmask creation.
9133         * locale/programs/ld-time.c: Add alignment.
9134
9135         [BZ #2997]
9136         * misc/error.c: Add space between program name and message if file
9137         name is missing.
9138
9139 2006-08-03  Eric Blake  <ebb9@byu.net>
9140
9141         [BZ #2998]
9142         * misc/error.c (error_tail) [_LIBC]: Avoid invalid free.
9143
9144 2006-08-09  Ulrich Drepper  <drepper@redhat.com>
9145
9146         * malloc/memusagestat.c: Silence warnings.
9147
9148         * malloc/malloc.c: Dynamically size mmap treshold if the program
9149         frees mmaped blocks.
9150         Patch by Valerie Henson and Arjan van de Ven.
9151
9152 2006-08-08  Jakub Jelinek  <jakub@redhat.com>
9153
9154         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (O_DIRECT): Protect with
9155         __USE_GNU.
9156
9157         * stdlib/strtol_l.c (__strtol_ul_max_tab, __strtol_ul_rem_tab,
9158         __strtol_ull_max_tab, __strtol_ull_rem_tab): Declare.
9159         (DEF): Don't put the var into .gnu.linkonce.r.* section.
9160         Only provide var definitions in strtol_l (or for *ull*
9161         in strtoll_l).
9162
9163         * stdio-common/bug16.c (tests): New array.
9164         (do_tests): Allow the first hexadecimal digit
9165         to be 1, 2, 4 or 8.  Do 3 additional tests.
9166
9167         * sysdeps/s390/fpu/libm-test-ulps: Update.
9168
9169         * sysdeps/unix/sysv/linux/s390/s390-32/fchownat.c (fchownat): Use
9170         fchownat syscall if available.
9171         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat): Likewise.
9172         * sysdeps/unix/sysv/linux/sh/fchownat.c (fchownat): Likewise.
9173         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Likewise.
9174
9175 2006-08-07  Ulrich Drepper  <drepper@redhat.com>
9176
9177         * nis/nis_xdr.c: Avoid some function calls.
9178
9179 2006-08-07  Jakub Jelinek  <jakub@redhat.com>
9180             Ulrich Drepper  <drepper@redhat.com>
9181
9182         * nis/nis_call.c (rec_dirsearch) [case LOWER_NAME]: Don't take
9183         short cut if only one name component is stripped away.
9184
9185 2006-08-07  Ulrich Drepper  <drepper@redhat.com>
9186
9187         * nis/nis_call.c: Minor cleanups throughout.
9188         (rec_dirsearch) [case HIGHER_NAME]: Correctly size ndomain array.
9189         (first_shoot): Add search_parent_first parameter.  Only if it is set
9190         search parent server first.
9191         If directory for table found through cold start cache is not the same
9192         as referenced in the cache, don't use it.
9193         (__nisfind_server): Take additional parameter.  Pass it on to
9194         first_shoot.
9195         (__prepare_niscall): Adjust __nisfind_server call.
9196         * nis/rpcsvc/nislib.h: Adjust __nisfind_server prototype.
9197         * nis/nis_table.c: Adjust __nisfind_server call.
9198         * nis/nis_lookup.c: Likewise.
9199         (nis_lookup): Don't loop endlessly if name is reduced to ".".
9200
9201 2006-08-03  Ulrich Drepper  <drepper@redhat.com>
9202
9203         [BZ #2182]
9204         * math/s_cacosh.c: Return values from positive branch.
9205         * math/s_cacoshf.c: Likewise.
9206         * math/s_cacoshl.c: Likewise.
9207
9208         [BZ #2883]
9209         * sysvipc/sys/msg.h: Change return value to ssize_t.
9210         * sysdeps/unix/sysv/linux/msgrcv.c: Likewise.
9211         * sysvipc/msgrcv.c: Likewise.
9212         * include/sys/msg.h: Likewise.
9213
9214         * grp/initgroups.c (internal_getgrouplist): Remove unnecessary
9215         test introduced in patch for bz #661.
9216         (getgrouplist): Simplify code a bit.  Don't allocate one additional
9217         element for NEWGROUPS.
9218
9219         [BZ #2908]
9220         * stdio-common/printf_fphex.c (__printf_fphex): When rounding up
9221         'f', use '1' as leading digit not '\1'.
9222         * stdio-common/Makefile (tests): Add bug16.
9223         * stdio-common/bug16.c: New file.
9224
9225         [BZ #2914]
9226         * sysdeps/unix/sysv/linux/gethostid.c: Don't define OLD_HOSTIDFILE
9227         and don't try to open it.  The patch introducing the macro
9228         contained a bug and used the same file name as the new file
9229         instead of using /var/adm/hostid.  Nobody complaint so I'm taking
9230         this out completely.
9231
9232         [BZ #2926]
9233         * assert/assert.h: Move cast to void inside ?: to quiet gcc.
9234         Patch by Jerry James <Jerry.James@usu.edu>.
9235
9236         * rt/Makefile (tests): Add tst-clock2.
9237         * rt/tst-clock2.c: New file.
9238
9239         [BZ #2978]
9240         * resolv/gai_notify.c (__gai_notify_only): Copy memory for thread
9241         function and its parameters and pass it to new thread.
9242         (__gai_notify): Add support for alternative waiting for completion.
9243         * resolv/gai_suspend.c (gai_suspend): Add support for alternative
9244         waiting for completion.
9245         * resolv/getaddrinfo_a.c: Likewise.
9246         * resolv/gai_misc.h (struct waitlist): Don't add cond if alternative
9247         waiting for completion is used.
9248         * resolv/gai_misc.c: Allow overwriting code to start helper thread.
9249         * resolv/gai_cancel.c: Include <gai_misc.h> not "gai_misc.h".
9250         * resolv/gai_error.c: Likewise.
9251         * resolv/gai_sigqueue.c: Likewise.
9252
9253 2006-08-02  Thomas Schwinge  <tschwinge@gnu.org>
9254
9255         * hurd/getdport.c (__getdport): Don't return EBADF; instead set
9256         errno to EBADF and return MACH_PORT_NULL.
9257
9258 2006-06-23  Joseph Myers  <joseph@codesourcery.com>
9259
9260         [BZ #2980]
9261         * posix/Makefile (CFLAGS-waitid.c): Add -fasynchronous-unwind-tables.
9262
9263 2006-08-02  Ulrich Drepper  <drepper@redhat.com>
9264
9265         * elf/dl-addr.c (_dl_addr): If GNU-style hash tables are present,
9266         walk them instead of the symbol table.
9267
9268 2006-08-01  Ulrich Drepper  <drepper@redhat.com>
9269
9270         [BZ #2098]
9271         * nscd/initgrcache.c (addinitgroupsX): Judge successful lookups by
9272         status of NSS calls, not the number of returned entries.
9273
9274         * sysdeps/unix/sysv/linux/syscalls.list: Remove add_key,
9275         request_key, keyctl.
9276
9277 2006-07-31  Ulrich Drepper  <drepper@redhat.com>
9278
9279         * sysdeps/unix/sysv/linux/dl-osinfo.h: Remove unnecessary include.
9280
9281 2006-07-16  Jeff Bailey  <jbailey@ubuntu.com>
9282
9283         * elf/tst-auditmod1.c: Fix typo in #error.
9284
9285 2006-07-31  Ulrich Drepper  <drepper@redhat.com>
9286
9287         * elf/tst-auditmod1.c: Remove code for unsupported architectures.
9288
9289         * iconvdata/run-iconv-test.sh: Run cmp in C locale.
9290
9291 2006-07-20  Adam Nemet  <anemet@caviumnetworks.com>
9292
9293         * stdlib/test-canon.c (do_test): Close fd before unlinking file so
9294         that the directory is empty even on non-POSIX filesystems.
9295
9296 2006-07-31  Ulrich Drepper  <drepper@redhat.com>
9297
9298         * elf/dl-open.c (dl_open_worker): Add branch prediction.
9299
9300         * nis/nss_compat/compat-grp.c: Avoid unnecessary setgrent calls into
9301         the backend NSS module.  If backend setgrent call failed, don't have
9302         internal_setgrent fail.  Just remember this until it is needed.
9303         * nis/nss_compat/compat-pwd.c: Likewise.
9304         * nis/nss_compat/compat-spwd.c: Likewise.
9305
9306 2006-07-30  Roland McGrath  <roland@redhat.com>
9307
9308         * sysdeps/unix/sysv/linux/ia64/sigsuspend.c: File removed.
9309         * sysdeps/unix/sysv/linux/x86_64/sigsuspend.c: File removed.
9310         * sysdeps/unix/sysv/linux/s390/s390-64/sigsuspend.c: File removed.
9311         * sysdeps/unix/sysv/linux/sparc/sparc64/sigsuspend.c: File removed.
9312
9313         * sysdeps/unix/sysv/linux/not-cancel.h (pause_not_cancel): New macro.
9314         (nanosleep_not_cancel): New macro.
9315         (sigsuspend_not_cancel): new macro.
9316         * sysdeps/unix/sysv/linux/sigsuspend.c [__ASSUME_REALTIME_SIGNALS]
9317         (do_sigsuspend): Define as inline.
9318         (__sigsuspend): Always use do_sigsuspend.
9319         [! NO_CANCELLATION] (__sigsuspend_nocancel): New function.
9320         * include/signal.h: Declare __sigsuspend_nocancel.
9321         * sysdeps/posix/pause.c
9322         [! NO_CANCELLATION] (__pause_nocancel): New function.
9323
9324         * include/unistd.h (__pause_nocancel): Add attribute_hidden.
9325         * include/time.h (__nanosleep_nocancel): Likewise.
9326
9327 2006-07-30  Ulrich Drepper  <drepper@redhat.com>
9328
9329         * locale/programs/localedef.c (add_to_readlist): Rename local
9330         variables to avoid confusion.
9331
9332         * locale/programs/charmap.c (charmap_read): Emit error message if
9333         charmap couldn't be found or read.
9334
9335 2006-07-28  Ulrich Drepper  <drepper@redhat.com>
9336
9337         * sysdeps/unix/sysv/linux/kernel-features.h: Define
9338         __ASSUME_FUTEX_LOCK_PI.
9339         * include/time.h: Declare __nanosleep_nocancel.
9340         * include/unistd.h: Declare __pause_nocancel.
9341
9342         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Use this instead of
9343         LDFLAGS.  Add -lgcc_eh and libc_nonshared (again) to make sure we
9344         get the __stack_chk_fail_local definition when it's needed.
9345
9346 2006-07-26  Ulrich Drepper  <drepper@redhat.com>
9347
9348         * dlfcn/Makefile: Add rules to build and run bug-atexit3.
9349         * dlfcn/bug-atexit3.c: New file.
9350         * dlfcn/bug-atexit3-lib.cc: New file.
9351
9352         * dlfcn/dlmopen.c (dlmopen_doit): Don't allow RTLD_GLOBAL to be
9353         used when the namespace is not the base namespace.
9354
9355 2006-07-26  Gavin Romig-Koch  <gavin@redhat.com>
9356
9357         * stdlib/cxa_atexit.c (__new_exitfn_called): New variable.
9358         (__new_exitfn): Bump it in every successful call.
9359         * stdlib/cxa_finalize.c (__cxa_finalize): If destructor registered
9360         more exit handlers, call them right away.
9361         * stdlib/exit.h: Declare __new_exitfn_called.
9362
9363 2006-07-25  Ulrich Drepper  <drepper@redhat.com>
9364
9365         * stdlib/cxa_finalize.c (__cxa_finalize): Fix race condition when
9366         calling registered handler.
9367
9368         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Fix comment.
9369         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
9370         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
9371         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
9372         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
9373         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
9374         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
9375         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
9376
9377 2006-07-10  Ulrich Drepper  <drepper@redhat.com>
9378
9379         * elf/dl-lookup.c (dl_new_hash): New functions.
9380         (_dl_lookup_symbol_x): Rename hash to old_hash and don't compute
9381         value here.  Compute new-style hash value.  Pass new hash value
9382         and reference to variable with the old value to do_lookup_x.
9383         (_dl_setup_hash): If DT_GNU_HASH is defined, use it and not
9384         old-style hash table.
9385         (_dl_debug_bindings): Pass new hash value and reference to variable
9386         with the old value to do_lookup_x.
9387         * elf/do-lookup.h (do_lookup_x): Accept additional parameter with
9388         new-style hash value and change old-style hash value parameter to
9389         be a reference.  Reoganize functions to determine whether
9390         new-style hash table is available.  Only fall back on old-style
9391         table.  If old-style hash value is needed, compute it here.
9392         * elf/dynamic-link.h (elf_get_dynamic_info): Relocate DT_GNU_HASH
9393         entry.
9394         * elf/elf.h: Define SHT_GNU_HASH, DT_GNU_HASH, DT_TLSDEC_PLT,
9395         DT_TLSDEC_GOT.  Adjust DT_ADDRNUM.
9396         * include/link.h (struct link_map): Add l_gnu_bitmask_idxbits,
9397         l_gnu_shift, l_gnu_bitmask, l_gnu_buckets and l_gnu_chain_zero.
9398         * Makeconfig: If linker supports --hash-style option add it to all
9399         linker command lines to build DSOs.
9400         * config.make.in: Define have-hash-style.
9401         * configure.in: Test whether linker supports --hash-style option.
9402
9403         * elf/dl-misc.c (_dl_name_match_p): Make MAP parameter const.
9404         * sysdeps/generic/ldsodefs.h: Adjust prototype.
9405
9406 2006-06-27  Ulrich Drepper  <drepper@redhat.com>
9407
9408         * elf/dl-load.c (open_path): Fix test to determine whether DSO is
9409         auditing.
9410
9411         * elf/dl-load.c (_dl_map_object): Try harder to avoid looking at
9412         RPATH of main map twice.
9413
9414 2006-06-22  Ulrich Drepper  <drepper@redhat.com>
9415
9416         * intl/dcigettext.c (DCIGETTEXT): If _nl_find_msg returns -1 don't
9417         look further, return original strings.
9418         (_nl_find_msg): Do not return found translation if the conversion
9419         failed.  Either signal the string is unusable or that something went
9420         wrong and the original should be used.
9421
9422 2006-06-21  Ulrich Drepper  <drepper@redhat.com>
9423
9424         * string/_strerror.c (__strerror_r): Add __builtin_expect.
9425
9426 2006-06-14  Jakub Jelinek  <jakub@redhat.com>
9427
9428         [BZ #2766]
9429         * misc/insremque.c (insque): Handle prev == NULL.
9430         * misc/Makefile (tests): Add tst-insremque.
9431         * misc/tst-insremque.c: New test.
9432
9433 2006-06-17  Ulrich Drepper  <drepper@redhat.com>
9434
9435         [BZ #2792]
9436         * elf/dl-deps.c (expand_dst): Rename __cnt variable to not
9437         conflict with DL_DST_REQUIRED.
9438
9439 2006-06-16  Ulrich Drepper  <drepper@redhat.com>
9440
9441         * nis/nis_subr.c (nis_getnames): Fix the implementation to better
9442         match what Solaris does.
9443
9444 2006-06-04  Ulrich Drepper  <drepper@redhat.com>
9445
9446         * sysdeps/posix/spawni.c (__spawni): Use local_seteuid and
9447         local_setegid instead of seteuid and setegid.
9448         * sysdeps/generic/local-setxid.h: New file.
9449         * sysdeps/unix/sysv/linux/local-setxid.h: New file.
9450
9451         * sysdeps/posix/spawni.c (__spawni): Use non-cancelable interfaces.
9452
9453         * string/Makefile (tests): Add bug-envz1.
9454         * string/bug-envz1.c: New file.
9455
9456 2006-06-02  Jakub Jelinek  <jakub@redhat.com>
9457
9458         * posix/regex_internal.c (re_string_skip_chars): If no character has
9459         been converted at all, set *last_wc to WEOF.  If mbrtowc failed, set wc
9460         to the byte which couldn't be converted.
9461         (re_string_reconstruct): Don't clear valid_raw_len before calling
9462         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
9463         tip_context using re_string_context_at.
9464         * posix/Makefile: Add rules to build and run bug-regex25 test.
9465         * posix/bug-regex25.c: New test.
9466
9467 2006-06-02  Ryan S. Arnold  <rsa@us.ibm.com>
9468
9469         [BZ #2703]
9470         * string/envz.c (envz_strip): Correct erroneously reversed src
9471         and dest parameters to memmove() invocation.
9472
9473 2006-05-30  Jakub Jelinek  <jakub@redhat.com>
9474
9475         * nscd/nscd.h (prune_cache): Add fd argument to prototype.
9476         * nscd/nscd.c (parse_opt): Read response from INVALIDATE request
9477         to make sure the database has been already invalidated.
9478         * nscd/cache.c (prune_cache): Add fd argument.  Write response to fd
9479         after the cache has been invalidated.  Use pthread_mutex_lock rather
9480         than pthread_mutex_trylock if fd != -1.
9481         * nscd/connections.c (invalidate_cache): Add fd argument, write
9482         response to fd if not calling prune_cache, pass fd to prune_cache.
9483         (handle_request): Adjust invalidate_cache caller.
9484         (nscd_run): Pass -1 as fd to prune_cache.
9485
9486 2006-05-30  Ulrich Drepper  <drepper@redhat.com>
9487
9488         * sysdeps/posix/getaddrinfo.c (gaiconf_init): Initialize bits in
9489         the correct place.
9490
9491 2006-05-29  Ulrich Drepper  <drepper@redhat.com>
9492
9493         * nscd/nscd.h (struct database_dyn): Add prunelock field.
9494         * nscd/cache.c (prune_cache): Take prunelock before starting the
9495         work.  Just return in case it is already taken.
9496         * nscd/connections.c (dbs): Initialize .prunelock.
9497
9498 2006-05-25  Ulrich Drepper  <drepper@redhat.com>
9499
9500         * nis/nis_removemember.c (nis_removemember): Avoid unnecessary
9501         copying.  No need to allocate new array for group members.  Just
9502         move the pointers and update the size.
9503
9504         * nis/nis_addmember.c (nis_addmember): Avoid unnecessary copying.
9505         Avoid memory leak in case realloc fails.  Simplification for
9506         better code generation.
9507
9508         Avoid deprecation warning because of libc_hidden_proto for
9509         inet6_option_alloc.
9510         * inet/inet6_option.c (option_alloc): Renamed from
9511         inet6_option_alloc.  Made static.
9512         (inet6_option_alloc): Now a simple wrapper around option_alloc.
9513         (inet6_option_append): Call option_alloc.
9514         * include/netinet/in.h: Remove libc_hidden_proto for
9515         inet6_option_alloc.
9516
9517         * nis/nis_callback.c (__nis_create_callback): Always call xdr_free
9518         for cleanup when cb!=NULL [Coverity CID 233].
9519
9520 2006-05-24  Ulrich Drepper  <drepper@redhat.com>
9521
9522         [BZ #2693]
9523         * inet/Makefile (routines): Add inet6_opt and inet6_rth.
9524         * inet/Versions (libc, GLIBC_2.5): Add inet6_opt_init,
9525         inet6_opt_append, inet6_opt_finish, inet6_opt_set_val, inet6_opt_next,
9526         inet6_opt_find, inet6_opt_get_val, inet6_rth_space, inet6_rth_init,
9527         inet6_rth_add, inet6_rth_reverse, inet6_rth_segments,
9528         and inet6_rth_getaddr.
9529         * inet/netinet/ip6.h (struct ip6_rthdr0): Make ip6r0_addr a flexible
9530         array.
9531         * inet/netinet/in.h (struct ip6_mtuinfo): Define.
9532         Mark inet6_option_* interfaces as deprecated.
9533         Declare inet6_opt_init, inet6_opt_append, inet6_opt_finish,
9534         inet6_opt_set_val, inet6_opt_next, inet6_opt_find, inet6_opt_get_val,
9535         inet6_rth_space, inet6_rth_init, inet6_rth_add, inet6_rth_reverse,
9536         inet6_rth_segments, and inet6_rth_getaddr.
9537         * inet/inet6_opt.c: New file.
9538         * inet/inet6_rth.c: New file.
9539
9540         * inet/netinet/icmp6.h: Pretty printing.
9541
9542         [BZ #2683]
9543         * elf/dl-addr.c (_dl_addr): Don't match undefined references.
9544
9545 2006-05-23  Ulrich Drepper  <drepper@redhat.com>
9546
9547         * nis/nis_lookup.c (nis_lookup): Use __prepare_niscall instead of
9548         doing it all here.  When server does not know the answer do not
9549         fail immediate, try parent first.
9550
9551         * nis/nis_domain_of_r.c (nis_domain_of_r): Add missing buffer
9552         overflow test.
9553
9554 2006-05-20  Ulrich Drepper  <drepper@redhat.com>
9555
9556         * nis/nis_call.c (__prepare_niscall): New function.  Split out
9557         from __do_niscall.
9558         * nis/nis_table.c (__create_ib_request): Renamed from create_ib_request
9559         and exported.
9560         (__follow_path): New function.  Split out from nis_list.
9561         * nis/nis_xdr.h: Add libnsl_hidden_proto for _xdr_ib_request and
9562         _xdr_nis_result.
9563         * nis/nis_xdr.c: Add libnsl_hidden_def for _xdr_ib_request and
9564         _xdr_nis_result.
9565         * nis/libnsl.h: Declare __prepare_niscall, __create_ib_request,
9566         and __follow_path.
9567         * nis/Versions: Export __prepare_niscall, __create_ib_request,
9568         __follow_path, __do_niscall3, _xdr_ib_request, and _xdr_nis_result
9569         from libnsl for version GLIBC_PRIVATE.
9570         * nis/nisplus-parser.h: Remove _nss_nisplus_parse_pwent_chk.
9571         Remove entry parameter from _nss_nisplus_parse_pwent and
9572         _nss_nisplus_parse_grent.
9573         * nis/nss_nisplus/nisplus-parser.c: Likewise.
9574         * nis/nss_nisplus/nisplus-pwd.c: Remove support for SETENT_BATCH_READ
9575         again.  Rewrite getpwent handling to not use nis_first_entry and
9576         nis_next_entry.  Roll out own niscall handling.
9577         * nis/nss_nisplus/nisplus-grp.c: Likewise.
9578
9579         * sunrpc/xdr_rec.c: Fix typo in comment.
9580
9581 2006-05-19  Ulrich Drepper  <drepper@redhat.com>
9582
9583         * nis/nis_call.c (__do_niscall3): Avoid code duplication in error
9584         handling.
9585
9586         * nis/nis_callback.c (internal_nis_do_callback): Don't use malloc
9587         to allocate memory for my_pollfd.  Better initialization of
9588         cb_is_running.  Use TEMP_FAILURE_RETRY.
9589
9590         * malloc/memusage.sh (memusageso): Add quotes.
9591         (memusagestat): Likewise.
9592         * debug/xtrace.sh (pcprofileso): Likewise.
9593         (pcprofiledump): Likewise.
9594         * debug/Makefile ($(objpfx)xtrace): Use $LIB in SLIBDIR
9595         replacement.
9596         * malloc/Makefile ($(objpfx)memusage): Likewise.
9597
9598         * nis/nis_callback.c (__nis_create_callback): Calls to
9599         svcudp_bufcreate and svctcp_create can fail.  Free ->xprt if
9600         asprintf call fails.
9601
9602         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_sendreq): Make sure
9603         no uninitialized memory is passed to sendto.
9604
9605 2006-05-18  Ulrich Drepper  <drepper@redhat.com>
9606
9607         * nis/nis_callback.c (__nis_create_callback): Use asprinf instead
9608         of snprintf+strdup.  Handle OOM.
9609         * nis/nis_callback.c (__nis_create_callback): Allocate cb and
9610         cb->serv together.  Remove now obsolete free calls.
9611         (__nis_destroy_callback): Remove now obsolete free call.
9612
9613 2006-05-18  David Woodhouse  <dwmw2@redhat.com>
9614
9615         * sysdeps/posix/getaddrinfo.c: Add unique labels to the default
9616         RFC3484 precedence table for fec0::/10 and fc00::/7 (site-local
9617         and ULA respectively). Set precedence for IPv4 address to 10 as
9618         defined in RFC3484 for preferring IPv6.
9619         * posix/gai.conf: Update to match the new default tables.
9620
9621 2006-05-18  Jakub Jelinek  <jakub@redhat.com>
9622
9623         * nis/nss_compat/compat-pwd.c (internal_setpwent): If nss_set*ent
9624         returned NSS_STATUS_UNAVAIL, still return NSS_STATUS_SUCCESS.
9625         * nis/nss_compat/compat-spwd.c (internal_setspent): Likewise.
9626         * nis/nss_compat/compat-grp.c (internal_setgrent): Likewise.
9627
9628         * nis/nss_compat/compat-initgroups.c (nss_setgrent, nss_endgrent):
9629         Removed.
9630         (init_nss_interface): Remove initialization of these variables.
9631
9632 2006-05-18  Ulrich Drepper  <drepper@redhat.com>
9633
9634         * nis/nis_call.c (rec_dirsearch): Little optimization: pull
9635         nis_free_directory forward to avoid duplication.
9636
9637 2006-05-17  Ulrich Drepper  <drepper@redhat.com>
9638
9639         * nis/nis_call.c (rec_dirsearch): Handle __nis_finddirectory and
9640         rec_dirsearch returning NULL.
9641         (first_shoot): Handle __nis_finddirectory returning NULL.
9642         (__nisfind_server): Fix leak when rec_dirsearch returns NULL.
9643
9644         * sysdeps/unix/sysv/linux/sys/inotify.h: Define IN_CLOSE, IN_MOVE,
9645         IN_ONLYDIR, IN_DONT_FOLLOW, and IN_MASK_ADD.
9646
9647 2006-05-17  Jakub Jelinek  <jakub@redhat.com>
9648
9649         * sunrpc/key_call.c (getkeyserv_handle): Call auth_destroy if
9650         pid changed.
9651
9652 2006-05-15  Ulrich Drepper  <drepper@redhat.com>
9653
9654         * include/rpc/pmap_prot.h: Mark all functions as hidden.
9655
9656         * nscd/nscd_initgroups.c: Mark __gr_map_handle as hidden.
9657         * nscd/nscd_getgr_r.c: Likewise.
9658
9659         * include/rpc/pmap_rmt.h: Mark all functions as hidden.
9660
9661         * nscd/nscd_getai.c (__hst_map_handle): Mark as hidden.
9662         * nscd/nscd_gethst_r.c (__hst_map_handle): Likewise.
9663
9664         * stdlib/longlong.h (__clz_tab): Mark as hidden.
9665
9666         * iconv/gconv_int.h: Mark __gconv_lock as hidden.
9667
9668         * include/rpc/key_prot.h: Mark all _internal functions as hidden.
9669
9670         * include/rpc/auth.h: Mark xdr_des_block_internal and
9671         xdr_opaque_auth_internal as hidden.
9672
9673         * sysdeps/unix/sysv/linux/getdents.c: Mark __have_no_getdents64 as
9674         hidden.
9675
9676         * include/rpc/xdr.h: Mark all _internal functions as hidden.
9677
9678         * misc/getusershell.c (okshells): Don't use static initializers,
9679         do it dynamically.
9680
9681         * stdlib/fmtmsg.c (keywords): Change type of len element to
9682         uint32_t to not waste space on 64bit machines.
9683
9684         * locale/setlocale.c: Change _nl_category_names into a string.
9685         Add new _nl_category_name_idxs.  Change all users.
9686         * locale/localeinfo.h: Adjust declaration of _nl_category_names.
9687         Declare _nl_category_name_idxs.
9688         * locale/findlocale.c: Adjust for _nl_category_names change.
9689         * locale/loadlocale.c: Likewise.
9690         * locale/newlocale.c: Likewise.
9691         * intl/dcigettext.c: Likewise.
9692
9693         * iconv/gconv_conf.c (add_alias): Move actual alias handling to...
9694         (add_alias2): ...here.  New function.
9695         (__gconv_read_conf): Simplify builtin alias handling.
9696         (builtin_aliases): Convert to string to avoid relocations.
9697         * iconv/gconv_builtin.h: Add comment about correct formatting.
9698
9699 2006-05-15  Jakub Jelinek  <jakub@redhat.com>
9700
9701         * resolv/res_debug.c (loc_ntoa): Make error const.
9702
9703 2006-05-14  Andreas Schwab  <schwab@suse.de>
9704
9705         * math/complex.h [__LDBL_COMPAT]: Use __REDIRECT_NTH.
9706
9707 2006-05-12  Jakub Jelinek  <jakub@redhat.com>
9708
9709         * sysdeps/unix/sysv/linux/sched_getaffinity.c: Include sys/param.h.
9710         (__sched_getaffinity_new): Don't crash if cpusetsize is smaller than
9711         sizeof (cpu_set_t).
9712
9713 2006-05-11  Ulrich Drepper  <drepper@redhat.com>
9714
9715         * resolv/res_debug.c (loc_ntoa): Define error as array, not pointer.
9716
9717         * include/arpa/nameser.h: Declare _ns_flagdata as hidden.
9718
9719         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_master.
9720         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_master.
9721
9722         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypbind_resp.
9723         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypbind_resp.
9724
9725         * nis/nis_xdr.c: Add libnsl_hidden_def for xdr_cback_data.
9726         * include/rpcsvc/nis_callback.h: Add libnsl_hidden_proto for
9727         xdr_cback_data.
9728
9729         * nis/ypupdate_xdr.c: Add libnsl_hidden_def for xdr_ypupdate_args.
9730         * include/rpcsvc/ypupd.h: Add libnsl_hidden_proto for
9731         xdr_ypupdate_args.
9732
9733         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_order.
9734         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_order.
9735
9736         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_maplist.
9737         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_maplist.
9738
9739         * nis/nis_xdr.c: Add libnsl_hidden_def for xdr_obj_p.
9740         * include/rpcsvc/nis_callback.h: New file.
9741
9742         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_val.
9743         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_val.
9744
9745         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypreq_nokey.
9746         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypreq_nokey.
9747
9748         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypmaplist.
9749         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypmaplist.
9750
9751         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypreq_nokey.
9752         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypreq_nokey.
9753
9754         * nis/ypupdate_xdr.c: Add libnsl_hidden_def for xdr_ypdelete_args.
9755         * include/rpcsvc/ypupd.h: Add libnsl_hidden_proto for
9756         xdr_ypdelete_args.
9757
9758         * nis/nis_xdr.h: Mark all functions as hidden.  Remove
9759         __BEGIN_DECLS and __END_DECLS, the header is not installed.
9760
9761         * nis/nis_error.c: Remove table of strings.  Use position
9762         independent mechanism.
9763         * nis/nis_error.h: New file.
9764
9765 2006-05-11  Jakub Jelinek  <jakub@redhat.com>
9766
9767         * locale/programs/ld-time.c (time_finish): If wide era name or
9768         format aren't provided, set both wname and wformat to L"".
9769
9770 2006-05-10  Ulrich Drepper  <drepper@redhat.com>
9771
9772         * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Only store
9773         results if the call was succesful.
9774
9775         * nis/nss-nis.h: Mark __yperr2nss_tab and __yperr2nss_count as hidden.
9776
9777         * nis/nss-nisplus.h: Mark __niserr2nss_tab and __niserr2nss_count
9778         as hidden.
9779
9780 2006-05-10  Jakub Jelinek  <jakub@redhat.com>
9781
9782         * misc/sys/queue.h: Remove uses of all QUEUEDEBUG_* macros.
9783
9784 2006-05-10  Ulrich Drepper  <drepper@redhat.com>
9785
9786         * posix/wordexp.c (parse_glob): No need to check ifs for NULL, the
9787         caller makes sure this is not the case.
9788         (wordexp): Simplify ifs_white creation.  [Coverity CID 231]
9789
9790 2006-05-09  Ulrich Drepper  <drepper@redhat.com>
9791
9792         * posix/wordexp.c: Remove numerous NULL pointer tests before FREE
9793         calls.
9794
9795         * io/ftw.c (open_dir_stream): Return right away if REALLOC fails.
9796         [Coverity CID 229, 230]
9797
9798         * argp/argp-help.c (hol_entry_help): Handle STATE==NULL in ARG and
9799         DGETTEXT calls.
9800         (hol_help): Likewise.  [Coverity CID 226, 227]
9801
9802         * string/argz-replace.c (__argz_replace): Unconditionally call
9803         free on SRC.  [Coverity CID 225]
9804
9805         * nis/nis_creategroup.c (nis_creategroup): No need to duplicate
9806         the return value of __nis_default_owner and __nis_default_group,
9807         it has been especially allocated.  [Coverity CID 224]
9808
9809         * nis/nis_defaults.c (searchXYX): New functions.  Used by both
9810         searchgroup and searchowner.  Significantly simplified.
9811         (__nis_default_owner): Remove duplication.  Do not locally copy the
9812         string before duplicating it.
9813         (__nis_default_group): Likewise.
9814
9815         * nis/nis_lookup.c (nis_lookup): After calling nis_free_directory,
9816         we must clear the variable before calling __nisfind_server.
9817
9818         * nis/nis_lookup.c (nis_lookup): Always free memory allocated with
9819         nis_getnames.  [Coverity CID 223]
9820
9821         * locale/programs/locfile.c (locfile_read): Use alloca instead of
9822         xmalloc to allocate local repertoire name.  [Coverity CID 222]
9823
9824         * iconv/iconv_charmap.c (use_to_charmap): No need to dynamically
9825         allocate memory for the input to add_bytes.  [Coverity CID 221]
9826
9827         * posix/wordexp.c (w_addword): Free word if realloc fails and it
9828         was allocated here.  [Coverity CID 219, 220]
9829
9830         * posix/getconf.c (print_all): Free confstr data after printing.
9831         [Coverity CID 218]
9832
9833         * sysdeps/posix/getaddrinfo.c (gaih_inet): Free canon string if
9834         list allocation fails.  [Coverity CID 215]
9835
9836         * nss/nsswitch.c (__nss_configure_lookup): Fix loop end condition.
9837         [Coverity CID 213]
9838
9839         * argp/argp-help.c (hol_entry_cmp): Don't call canon_doc_option if
9840         string is NULL.  [Coverity CID 212]
9841         * argp/Makefile: Add rules to build and run bug-argp1.
9842         * argp/bug-argp1.c: New file.
9843
9844         * io/ftw.c (ftw_dir): Use __rawmemchr instead of strchr to find
9845         end of string.
9846         * stdlib/canonicalize.c (__realpath): Likewise.
9847
9848         * locale/programs/ld-time.c (time_finish): Don't dereference NULL
9849         pointer.  [Coverity CID 206]
9850
9851         * elf/dl-dst.h (DL_DST_REQUIRED): Be prepared for missing link map
9852         in statically linked code.
9853         * elf/dl-load.c (_dl_dst_substitute): When replacing ORIGIN in
9854         statically built code, be prepared to have no link map.
9855         [Coverity CID 205]
9856
9857         * argp/argp-help.c (fill_in_uparams): Handle STATE==NULL in
9858         dgettext calls. [Coverity CID 204]
9859
9860         * argp/argp-help.c (struct uparams): Remove valid member.  Change
9861         the one user.
9862         (uparam_names): Reduce size.  Avoid relative relocations.
9863         Moved to read-only segment.
9864         (fill_in_uparams): Update for new layout.
9865
9866         * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs): Parameter can be
9867         assumed to always be != NULL. [Coverity CID 202]
9868
9869         * argp/argp-help.c (hol_entry_help): Remove some dead code
9870         [Coverity CID 200].
9871
9872         * nis/nss_nis/nis-service.c (_nss_nis_getservbyport_r): Optimize
9873         away a few more unconditional yperr2nss calls.
9874         (_nss_nis_getservbyname_r): Likewise.
9875
9876 2006-05-06  Ulrich Drepper  <drepper@redhat.com>
9877
9878         * sysdeps/generic/ldsodefs.h: Remove support for non-core
9879         architectures.
9880
9881         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Make sure
9882         that unused memory passed to sendto is nevertheless initialized.
9883
9884         [BZ #2499]
9885         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Avoid
9886         possibly unaligned memory accesses.
9887
9888         * include/arpa/nameser.h: Also optimize NS_PUT16 and NS_PUT32.
9889         * resolv/res_mkquery.c: Use NS_PUT16 and NS_PUT32 instead of __putshort
9890         and __putlong respectively.  Correct buffer overflow check for
9891         NS_NOTIFY_OP.
9892
9893         * resolv/res_send.c (send_vc): Use ns_put16 instead of putshort.
9894
9895         * resolv/res_send.c (res_queriesmatch): Fix typo in comment.
9896         (send_dg): Rewrite error handling to be more compact and avoid
9897         double recomputation of timeouts.  Pass MSG_NOSIGNAL to send.
9898
9899         * include/arpa/nameser.h: Add optimizations for NS_GET16 and NS_GET32.
9900
9901         * resolv/res_send.c (res_nameinquery): Use NS_GET16 directly
9902         instead of ns_get16.
9903         (res_queriesmatch): Likewise.  Minor optimization.
9904
9905         [BZ #2499]
9906         * resolv/res_query.c (__libc_res_nquery): If answerp != NULL,
9907         __libc_res_nsend might reallocate the buffer for the answer.  In
9908         this case we have to reload the HP pointer.
9909
9910 2006-05-05  Ulrich Drepper  <drepper@redhat.com>
9911
9912         * stdio-common/vfscanf.c (memory_error): Remove definition.  Add
9913         some branch prediction hints.
9914
9915         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Define SPLICE_F_*.
9916         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
9917         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
9918         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
9919         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
9920         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
9921         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
9922         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
9923
9924 2006-05-05  Martin Schwidefsky  <schwidefsky@de.ibm.com>
9925
9926         * sysdeps/s390/s390-32/elf/start.S: Replace pc relative relocation
9927         by a GOT relocation to make Scrt1.o position independent.
9928         * sysdeps/s390/s390-64/elf/start.S: Likewise.
9929
9930         * sysdeps/unix/sysv/linux/s390/s390-32/syscall.S: Add support for
9931         six system call parameters.
9932         * sysdeps/unix/sysv/linux/s390/s390-64/syscall.S: Likewise.
9933
9934 2006-05-05  Ulrich Drepper  <drepper@redhat.com>
9935
9936         * sunrpc/svcauth_des.c (cache_init): Use calloc instead of
9937         malloc&bzero.
9938
9939         * sunrpc/svc_udp.c (BZERO): Remove definition.
9940         (CALLOC): Define.
9941         (svc_enablecache): Use CALLOC instead of ALLOC&BZERO.
9942
9943         * sunrpc/des_impl.c: Remove ALT_ECB support.  We never used it.
9944         (des_SPtrans): Use uint32_t type.
9945         (des_skb): Likewise.
9946
9947         * sunrpc/xdr_ref.c (xdr_reference): Use calloc instead of malloc&bzero.
9948
9949 2006-05-05  Jakub Jelinek  <jakub@redhat.com>
9950
9951         [BZ #2509]
9952         * stdio-common/tst-printf.sh: Adjust for tst-printf.c change even
9953         on 32-bit arches.
9954
9955 2006-05-05  Ulrich Drepper  <drepper@redhat.com>
9956
9957         * locale/programs/ld-address.c (address_finish): Fix one more
9958         place where the iso639 array might be accessed beyond the limits.
9959
9960 2006-05-04  Ulrich Drepper  <drepper@redhat.com>
9961
9962         * nis/nis_table.c (nis_list): Avoid clearing res twice before
9963         filling it for the first time.
9964
9965         * nis/nis_table.c (get_tablepath): Renamed from __get_tablepath.
9966         Adjust all callers.
9967         Free res object content before returning.
9968
9969         * sunrpc/xdr_array.c (xdr_array): Use calloc instead of malloc&bzero.
9970
9971         * sunrpc/key_call.c (__rpc_thread_key_cleanup): Also free
9972         client->cl_auth.
9973
9974         * sunrpc/rpc_thread.c (__rpc_thread_destroy): Don't skip entire
9975         cleanup for initial thread, just the free call on TVP.
9976
9977         * nscd/gai.c (__getline): Define.
9978
9979
9980 See ChangeLog.16 for earlier changes.