* malloc/malloc.c (_int_free): Second argument is now mchunkptr.
[platform/upstream/glibc.git] / ChangeLog
1 2009-02-07  Ulrich Drepper  <drepper@redhat.com>
2
3         * malloc/malloc.c (_int_free): Second argument is now mchunkptr.
4         Change all callers.
5         (_int_realloc): Likewise.
6         All _int_* functions are now static.
7         * malloc/hooks.c: Change all callers to _int_free and _int_realloc.
8         * malloc/arena.c: Likewise.
9         * include/malloc.h: Remove now unnecessary declarations of the _int_*
10         functions.
11
12         * sunrpc/rpc_common.c: We cannot move _null_auth into .rodata that
13         easily.
14
15         * malloc/malloc.c: Add branch prediction for use of the hooks.
16
17         * grp/compat-initgroups.c [NOT_IN_libc] (__libc_use_alloca): Define.
18
19 2009-02-06  Ulrich Drepper  <drepper@redhat.com>
20
21         [BZ #7095]
22         * bits/confname.h: Add SUSv7 macros for getconf environments.
23         * bits/environments.h: Likewise.
24         * sysdeps/unix/sysv/linux/i386/bits/environments.h: Likewise.
25         * sysdeps/unix/sysv/linux/powerpc/bits/environments.h: Likewise.
26         * sysdeps/unix/sysv/linux/s390/bits/environments.h: Likewise.
27         * sysdeps/unix/sysv/linux/sparc/bits/environments.h: Likewise.
28         * sysdeps/unix/sysv/linux/x86_64/bits/environments.h: Likewise.
29         * posix/confstr.c: Handle SUSv5 and SUSv7 environments.
30         * posix/getconf.c: Likewise.
31         * posix/sysconf.c: Likewise.
32         * sysdeps/posix/sysconf.c: Likewise.
33         * posix/Makefile (getconf.speclist): Also collect SUSv5 and SUSv7
34         environments.
35
36 2009-01-16  Petr Baudis  <pasky@suse.cz>
37
38         [BZ #9753]
39         * resolv/res_libc.c (__res_maybe_init): Call __res_vinit()
40         even if we currently have zero nscount.
41
42 2009-02-06  Ulrich Drepper  <drepper@redhat.com>
43
44         [BZ #9781]
45         * grp/compat-initgroups.c (compat_call): Switch to use malloc when
46         the input line is too long.
47
48         * po/Makefile (libc.pot): Add f_print as function taking c-format
49         parameter.
50
51         * debug/xtrace.sh: Unify translatable messages.
52         * elf/ldd.bash.in: Likewise.
53         * elf/sprof.c: Likewise.
54         * locale/programs/locale.c: Likewise.
55         * malloc/memusage.sh: Likewise.
56         * nss/getent.c: Likewise.
57
58 2009-02-06  Joseph Myers  <joseph@codesourcery.com>
59
60         * debug/pcprofiledump.c (print_version,
61         argp_program_version_hook): New function.
62         * elf/ldconfig.c (more_help): New function.
63         (argp): Use it.
64         * elf/sln.c (usage): New function.
65         (main): Support --help and --version.
66         * malloc/memusagestat.c (print_version): New function.
67         (argp_program_version_hook): New variable.
68         * nscd/nscd.c (more_help): New function.
69         (argp): Use it.
70         * posix/getconf.c (main): Send --version output to stdout.
71         Support --help.
72         * sunrpc/rpc_main.c (usage, options_usage): Take STREAM and STATUS
73         arguments.  All callers changed.
74         (print_version): New function.
75         (parseargs): Support --help and --version.
76         * sunrpc/rpcinfo.c (usage): Take STREAM argument.  All callers
77         changed.
78         (print_version): New function.
79         (main): Use getopt_long.  Support --help and --version.
80         * sysdeps/unix/sysv/linux/lddlibc4.c (main): Support --help and
81         --version.
82
83 2009-02-06  Ulrich Drepper  <drepper@redhat.com>
84
85         * malloc/memusage.c (DEFAULT_BUFFER_SIZE): Change to 32768.
86         (update_data): Fix handling of wrapping back
87         to the beginning of the buffer.
88
89         [BZ #9823]
90         * stdio-common/psignal.c (psignal): Fix test for empty string.
91
92 2009-02-05  Ulrich Drepper  <drepper@redhat.com>
93
94         * include/rpc/auth.h: Use libc_hidden_proto for _null_auth.
95         * sunrpc/rpc_common.c: Add libc_hidden_def for _null_auth.  Also
96         move _null_auth to .rodata.
97
98         * time/tzset.c (__tzset_parse_tz): DST offset must also allow hour
99         value of 24.
100
101         * intl/dcigettext.c (DCIGETTEXT): Avoid some code duplication.
102
103         * sysdeps/unix/opendir.c (__alloc_dir): We have a lot more memory
104         today than when the original code was written.  Use larger
105         buffers.  This also makes it unnecessary to have stat information,
106         if this causes extra efforts.
107         (__opendir): In case O_DIRECTORY works, don't call fstat just for
108         __alloc_dir.
109
110 2009-02-03  Andrew Stubbs  <ams@codesourcery.com>
111
112         * sysdeps/sh/sh4/dl-trampoline.S: Only set HAVE_FPU if __SH_FPU_ANY__
113         is set.
114         * sysdeps/sh/sh4/setjmp.S: Support SH4-NOFPU.
115         * sysdeps/sh/sh4/__longjmp.S: Likewise.
116         * sysdeps/unix/sysv/linux/sh/sh4/getcontext.S: Likewise.
117         * sysdeps/unix/sysv/linux/sh/sh4/setcontext.S: Likewise.
118         * sysdeps/unix/sysv/linux/sh/sh4/swapcontext.S: Likewise.
119         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Likewise.
120
121 2009-02-04  Ulrich Drepper  <drepper@redhat.com>
122
123         * po/ru.po: Update from translation team.
124
125 2008-11-17  Nathan Sidwell  <nathan@codesourcery.com>
126
127         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (struct sigevent):
128         Add _tid slot to maintain consistency with kernel.
129
130 2009-02-04  Ulrich Drepper  <drepper@redhat.com>
131
132         * libio/wfileops.c (_IO_wfile_underflow): Fix handling of
133         incomplete characters at end of input buffer.
134         * libio/Makefile (tests): Add tst-fgetwc.
135         * libio/tst-fgetwc.c: New file.
136         * libio/tst-fgetwc.input: New file.
137
138 2009-02-02  Andrew Stubbs  <ams@codesourcery.com>
139
140         * sysdeps/unix/sysv/linux/sh/Makefile (libm.so-no-z-defs): Define.
141
142 2009-02-02  Ulrich Drepper  <drepper@redhat.com>
143
144         [BZ #9793]
145         * iconv/gconv_trans.c (__gconv_transliterate): Don't change
146         *OUTBUFSTART unless the whole output fit into the buffer.
147         * iconv/Makefile (tests): Add tst-iconv4.
148         * iconv/tst-iconv4.c: New file.
149
150 2009-02-01  Ulrich Drepper  <drepper@redhat.com>
151
152         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Add new descriptors.
153         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
154
155 2009-01-29  Andrew Stubbs  <ams@codesourcery.com>
156
157         * elf/Makefile (ld.so): Adjust the sed script to insert _begin in to
158         newer linker scripts.
159
160 2009-01-30  Ulrich Drepper  <drepper@redhat.com>
161
162         [BZ #7040]
163         * sysdeps/unix/sysv/linux/sys/inotify.h: Second parameter of
164         inotify_rm_watch should have type int.
165
166 2009-01-06  Steven Munroe  <sjmunroe@us.ibm.com>
167
168         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp):
169         Make aligned_restore_vmx a local symbol.
170         * sysdeps/powerpc/powerpc64/__longjmp-common.S (__longjmp):
171         Likewise.
172
173 2009-01-30  Andreas Jaeger  <aj@suse.de>
174
175         * sysdeps/unix/sysv/linux/bits/shm.h (SHM_EXEC): Define.
176         * sysdeps/unix/sysv/linux/ia64/bits/shm.h (SHM_EXEC): Define.
177         * sysdeps/unix/sysv/linux/powerpc/bits/shm.h (SHM_EXEC): Define.
178         * sysdeps/unix/sysv/linux/s390/bits/shm.h (SHM_EXEC): Define.
179         * sysdeps/unix/sysv/linux/sh/bits/shm.h (SHM_EXEC): Define.
180         * sysdeps/unix/sysv/linux/sparc/bits/shm.h (SHM_EXEC): Define.
181         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h (SHM_EXEC): Define.
182
183 2009-01-11  Ryan S. Arnold  <rsa@us.ibm.com>
184
185         [BZ #9726]
186         * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (_SET_DI_FPSCR,
187         _SET_SI_FPSCR): Clobber fp0 to prevent erroneous test-case passes.
188
189 2009-01-08  Ryan S. Arnold  <rsa@us.ibm.com>
190
191         [BZ #9726]
192         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S
193         (__CONTEXT_FUNC_NAME): Fix mtfsf to use fp31 instead of fp0.
194         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S
195         (__CONTEXT_FUNC_NAME): Fix mtfsf to use fp31 instead of fp0.
196
197 2009-01-11  Thomas Schwinge  <tschwinge@gnu.org>
198
199         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Use
200         memcpy instead of memcmp.
201         (_dl_setup_pointer_guard): Likewise.
202
203 2009-01-30  Ulrich Drepper  <drepper@redhat.com>
204
205         * malloc/malloc.c (sYSMALLOc): Don't use assert when detecting
206         manipulated brk, use malloc_printerr.
207         * misc/sbrk.c (__sbrk): Better error handling for nonsense
208         requests.
209
210 2009-01-30  Jakub Jelinek  <jakub@redhat.com>
211
212         * string/string.h (memchr, strchr, strrchr, strpbrk, strstr, index,
213         rindex): For C++ add inlines so that they can be recognized as
214         builtins.
215         * string/strings.h: Define correct C++ prototypes for gcc 4.4.
216
217 2009-01-29  Ulrich Drepper  <drepper@redhat.com>
218             Jakub Jelinek  <jakub@redhat.com>
219
220         * string/string.h: Define correct C++ prototypes for gcc 4.4.
221         * wcsmbs/wchar.h: Likewise.
222
223 2009-01-29  Ulrich Drepper  <drepper@redhat.com>
224
225         * sysdeps/i386/stackinfo.h (stackinfo_get_sp): Define.
226         (stackinfo_sub_sp): Define.
227
228 2009-01-28  Ulrich Drepper  <drepper@redhat.com>
229
230         [BZ #9750]
231         * nscd/mem.c (gc): Use alloca_count to get the real stack usage.
232         * include/alloca.h (alloca_account): Define.
233         * sysdeps/x86_64/stackinfo.h (stackinfo_get_sp): Define.
234         (stackinfo_sub_sp): Define.
235
236         * nscd/connections.c (nscd_init): If database file access fails
237         check whether this is due to permission problems and bail in that
238         case.
239
240         [BZ #9741]
241         * nscd/mem.c (gc): Fix assignment of he_data in case malloc is used.
242         Reported by Jun'ichi Nomura <j-nomura@ce.jp.nec.com>.
243
244 2009-01-14  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
245
246         * sysdeps/unix/sysv/linux/sh/sysdep.h (INTERNAL_SYSCALL):
247         Add "t" to clobber list.
248         (INTERNAL_SYSCALL_NCS): Likewise.
249
250 2009-01-28  Ulrich Drepper  <drepper@redhat.com>
251
252         * nss/getent.c (print_networks): Don't print comma between aliases.
253
254 2009-01-23  Ulrich Drepper  <drepper@redhat.com>
255
256         * sysdeps/unix/sysv/linux/tst-clone.c (do_test): Avoid warning.
257
258         * misc/hsearch_r.c (hcreate_r): We need at least three elements in
259         the hash table.
260         * misc/Makefile (tests): Add bug-hsearch1.
261         * misc/bug-hsearch1.c: New file.
262
263 2009-01-22  Roland McGrath  <roland@redhat.com>
264
265         * Makeconfig (%.v.i): Strip trailing # comments,
266         not only whole-line comments.
267
268 2009-01-10  Ulrich Drepper  <drepper@redhat.com>
269
270         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Take
271         one parameter.  If non-NULL use it to initialize return value.
272         (_dl_setup_pointer_guard): New function.
273         * sysdeps/unix/sysv/linux/dl-osinfo.h: Likewise.
274         * sysdeps/generic/ldsodefs.h: Declare _dl_random.
275         * elf/rtld.c (security_init): Pass _dl_random to
276         _dl_setup_stack_chk_guard.  Call _dl_setup_pointer_guard to initialize
277         pointer_chk_guard.
278         * elf/dl-sysdep.c (_dl_random): New variable.
279         (_dl_sysdep_start): Handle AT_RANDOM.
280         (_dl_show_auxv): Likewise.
281         * elf/dl-support.c (_dl_random): New variable.
282         (_dl_aux_init): Handle AT_RANDOM.
283         * csu/libc-start.c [!SHARED] (libc_start_main): Pass _dl_random
284         to _dl_setup_stack_chk_guard.
285
286         * elf/elf.h (AT_RANDOM): Define AT_BASE_PLATFORM and AT_RANDOM.
287
288 2009-01-10  Roland McGrath  <roland@redhat.com>
289
290         * nscd/nscd.c (parse_opt): Use argp_error for bad -i argument.
291
292 2009-01-08  Ulrich Drepper  <drepper@redhat.com>
293
294         * sysdeps/i386/fpu/libm-test-ulps: Adjust expm1 errors.
295
296         [BZ #9706]
297         * nss/nss_files/files-parse.c (strtou32): New function.
298         (INT_FIELD): Use strotu32 instead of strtoul to unify behavior
299         across 32-bit and 64-bit platforms.
300         (INT_FIELD_MAYBE_NULL): Likewise.
301
302 2009-01-08  Jakub Jelinek  <jakub@redhat.com>
303
304         [BZ #9720]
305         * sysdeps/unix/sysv/linux/bits/resource.h (enum __rusage_who): Avoid
306         comma after RUSAGE_CHILDREN if not -D_GNU_SOURCE.
307         * sysdeps/unix/sysv/linux/sparc/bits/resource.h (enum __rusage_who):
308         Likewise.
309
310 2009-01-05  Paolo Bonzini  <bonzini@gnu.org>
311
312         [BZ #697]
313         * posix/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
314         being NULL also if there are no backreferences.
315         * posix/rxspencer/tests: Add testcases.
316
317 2009-01-04  Paolo Bonzini  <bonzini@gnu.org>
318
319         [BZ #9697]
320         * posix/bug-regex17.c: Add testcases.
321         * posix/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
322         handling.
323
324 2009-01-05  Martin Schwidefsky  <schwidefsky@de.ibm.com>
325
326         * sysdeps/unix/sysv/linux/s390/bits/libc-vdso.h: New file.
327         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: New file.
328         * sysdeps/unix/sysv/linux/s390/init-first.c: New file.
329         * sysdeps/unix/sysv/linux/s390/Makefile (sysdep_routines): Add dl-vdso
330         for elf subdir.
331         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (INLINE_VSYSCALL,
332         INTERNAL_VSYSCALL, INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK,
333         INTERNAL_SYSCALL_NCS, HAVE_CLOCK_GETRES_VSYSCALL and
334         HAVE_CLOCK_GETTIME_VSYSCALL: Define.
335         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
336         * sysdeps/unix/sysv/linux/s390/Versions: New file.
337
338 2008-12-31  Paolo Bonzini  <bonzini@gnu.org>
339
340         * posix/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
341         * posix/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
342         re_string_skip_chars, re_string_reconstruct): Likewise.
343         * posix/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
344
345 2008-12-31  Rafael Avila de Espindola  <espindola@google.com>
346
347         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr2_r): Check and
348         adjust the buffer alignment.
349
350 2009-01-07  Samuel Thibault  <samuel.thibault@ens-lyon.org>
351
352         * sysdeps/mach/hurd/Makefile (sysdep_headers) [subdir=socket]:
353         Add net/ethernet.h net/if_arp.h net/if_ether.h net/if_ppp.h
354         net/route.h.
355
356         * hurd/report-wait.c (describe_number): Use __stpcpy to prepend
357         flavor to description only when flavor is not NULL.
358
359         * hurd/hurdsig.c (signal_allowed): Unlock _hurd_dtable_lock
360         mutex after SIGIO/SIGURG lookup loop.
361
362 2009-01-03  Samuel Thibault  <samuel.thibault@ens-lyon.org>
363
364         * bits/resource.h (PRIO_PROCESS, PRIO_PGRP, PRIO_USER): Add macros.
365
366 2009-01-03  Ulrich Drepper  <drepper@redhat.com>
367
368         * sysdeps/unix/sysv/linux/i386/sysdep.h: Describe 6th argument
369         handling.
370
371 2009-01-02  Ulrich Drepper  <drepper@redhat.com>
372
373         * sysdeps/unix/sysv/linux/kernel-features.h
374         (__ASSUME_FUTEX_CLOCK_REALTIME): Define.
375
376         * wcsmbs/wcsnrtombs.c (__wcsnrtombs): Create temporary state object
377         if no output is written.
378
379         * version.h: Bump to 2.10 development.
380
381         * posix/getconf.c: Update copyright year.
382         * nss/getent.c: Likewise.
383         * iconv/iconvconfig.c: Likewise.
384         * iconv/iconv_prog.c: Likewise.
385         * elf/ldconfig.c: Likewise.
386         * catgets/gencat.c: Likewise.
387         * csu/version.c: Likewise.
388         * elf/ldd.bash.in: Likewise.
389         * elf/sprof.c (print_version): Likewise.
390         * locale/programs/locale.c: Likewise.
391         * locale/programs/localedef.c: Likewise.
392         * nscd/nscd.c (print_version): Likewise.
393         * debug/xtrace.sh: Likewise.
394         * malloc/memusage.sh: Likewise.
395         * malloc/mtrace.pl: Likewise.
396         * debug/catchsegv.sh: Likewise.
397
398 2008-12-29  Mike Frysinger  <vapier@gentoo.org>
399
400         * iconvdata/Makefile (iconv-rules): Use LC_ALL=C when running awk
401         script.
402
403 2008-12-29  Ulrich Drepper  <drepper@redhat.com>
404
405         * sysdeps/posix/getaddrinfo.c (gaih_inet): When the
406         gethostbyname4_r function call succeeded, just leave the loop.
407
408         [BZ #9694]
409         * wcsmbs/wchar.h: Move undefs for local __need_* constants to the
410         very end.
411         * wctype/wctype.h: Get wint_t definition directly from <stddef.h>.
412         * wctype/Makefile (tests): Add bug-wctypeh.
413         * wctype/bug-wctypeh.c: New file.
414
415         * nscd/nscd_gethst_r.c (nscd_gethst_r): Don't use nscd if
416         LOCALDOMAIN is defined.
417         * nscd/nscd_getai.c (__nscd_getai): Likewise.
418
419         * sysdeps/x86_64/bits/select.h: New file.
420
421         * resolv/res_init.c (__res_vinit): Count all servers in statp->nscount.
422
423 2008-12-21  Bruno Haible  <bruno@clisp.org>
424
425         [BZ #9677]
426         * wcsmbs/mbsnrtowcs.c (__mbsnrtowcs): Create temporary state object
427         if no output is written.
428
429 2008-12-13  Klaus Dittrich  <kladit@arcor.de>
430
431         * login/utmp_file.c (pututline_file): Replace call to dup2 with
432         libc internal symbol __dup2 to avoid access through the PLT.
433
434 2008-12-08  Ulrich Drepper  <drepper@redhat.com>
435
436         [BZ #6545]
437         * sysdeps/unix/sysv/linux/bits/socket.h (SCM_CREDENTIALS): Make
438         available only for __USE_GNU.
439
440         * inet/Makefile (tests): Add tst-getni2.
441         * inet/tst-getni2.c: New file.
442
443         [BZ #7080]
444         * inet/getnameinfo.c (getnameinfo): Check for output buffers being
445         NULL when NI_NAMEREQD is set.
446         Patch mostly by Yang Hongyang <yanghy@cn.fujitsu.com>.
447         * inet/Makefile (tests): Add tst-getni1.
448         * inet/tst-getni1.c: New file.
449
450 2008-12-03  Petr Baudis  <pasky@suse.cz>
451
452         [BZ #7067]
453         * nscd/connections.c (invalidate_cache): Use prune_run_lock
454         instead of prune_lock.
455         (nscd_run_prune): Before calling prune_cache, take prune_run_lock.
456         * nscd/nscd.h (database_dyn): Add prune_run_cache.
457
458 2008-12-07  Ulrich Drepper  <drepper@redhat.com>
459
460         * resolv/res_send.c (send_dg): Use correct guards for SOCK_CLOEXEC
461         use.
462
463         * sysdeps/unix/sysv/linux/kernel-features.h: Fix typo in accept4
464         handling.
465
466         * resolv/res_init.c (__res_vinit): Always assign to statp->nscount
467         after reading name server list.
468
469         [BZ #7058]
470         * nis/nss_nis/nis-hosts.c (_nss_nis_gethostbyname4_r): Fix memory
471         handling for host name aliases.
472
473 2008-11-24  Arkadiusz MiÅ›kiewicz  <arekm@maven.pl>
474
475         * sysdeps/i386/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Use LOAD_PIC_REG
476         instead of doing things manually.
477
478 2008-11-26  Chris Steel  <chris.steel.lnx@googlemail.com>
479
480         * posix/regex_internal.h (build_wcs_upper_buffer):
481         Return type is reg_error_t.
482
483 2008-12-05  Ulrich Drepper  <drepper@redhat.com>
484
485         * posix/globtest.sh: Use mktemp to create temporary file and
486         directory.
487
488         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_SET_S): Handle large
489         sets correctly.
490         (__CPU_CLR_S): Likewise.
491         (__CPU_ISSET_S): Likewise.
492
493 2008-12-05  Joseph Myers  <joseph@codesourcery.com>
494             Ulrich Drepper  <drepper@redhat.com>
495
496         * scripts/firstversion.awk: Use custom comparison function to compare
497         version numbers.
498         * scripts/versions.awk: Use sort invocation which can handle
499         multi-digit sub-version numbers.
500
501 2008-12-04  Ulrich Drepper  <drepper@redhat.com>
502
503         * locale/programs/ld-address.c (DEFINE_LANGUAGE_CODE2): Define.
504         * locale/iso-639.def: Add Chhattisgarhi entry.
505
506 2008-12-02  Ulrich Drepper  <drepper@redhat.com>
507
508         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname3_r): Recognize
509         ESRCH return value.
510         (_nss_dns_gethostbyname4_r): Likewise.
511         * resolv/res_init.c (__res_vinit): Initialize nscount to zero.
512         * sysdeps/posix/getaddrinfo.c (gaih_inet): In case we use
513         gethostbyname4_r, we don't have a separate IPv6 status, so copy
514         the no_data variable.
515
516         * resolv/res_init.c (__res_vinit): Fill in IPv4 name server
517         information at the correct index.
518
519         * socket/sys/socket.h: Declare accept4.
520         * socket/accept4.c: New file.
521         * sysdeps/unix/sysv/linux/accept4.c: New file.
522         * sysdeps/unix/sysv/linux/i386/accept4.S: New file.
523         * socket/Makefile (routines): Add accept4.
524         * socket/Versions: Export accept4 with version GLIBC_2.10.
525         * socket/paccept.c: Removed.
526         * sysdeps/unix/sysv/linux/paccept.c: Removed.
527         * sysdeps/unix/sysv/linux/i386/paccept.S: Removed.
528         * Versions.def: Define GLIBC_2.10 for libc.
529         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_ACCEPT4.
530
531         * nscd/connections.c: Use accept4.
532
533         * sysdeps/unix/sysv/linux/i386/socket.S: Fix comment.
534
535 2008-12-01  Ulrich Drepper  <drepper@redhat.com>
536
537         * resolv/res_send.c (send_dg): Create sockets with non-blocking
538         flag already set.
539
540         * stdlib/setenv.c (unsetenv): Don't search environment if it does
541         not exist.
542         * stdlib/Makefile (tests): Add tst-unsetenv1.
543         * stdlib/tst-unsetenv1.c: New file.
544
545 2008-11-29  Ulrich Drepper  <drepper@redhat.com>
546
547         * login/utmp_file.c (file_writable): New variable.
548         (setutent_file): Don't try to open file for writing.
549         (pututline_file): Before writing, make descriptor writable if
550         necessary.
551
552 2008-11-26  Ulrich Drepper  <drepper@redhat.com>
553
554         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Only restrict search
555         to IPv4 or IPv6 if an interface has been found.
556
557 2008-11-26  Roland McGrath  <roland@redhat.com>
558
559         * sysdeps/unix/sysv/linux/alpha/ipc_priv.h: Renamed to ...
560         * sysdeps/unix/sysv/linux/powerpc/ipc_priv.h: ... here.
561
562         * sysdeps/unix/sysv/linux/alpha/wordexp.c: Renamed to ...
563         * sysdeps/unix/sysv/linux/ia64/wordexp.c: ... here.
564         * sysdeps/unix/sysv/linux/sparc/sparc64/wordexp.c: Change #include.
565
566         * elf/elf.h (NT_386_IOPERM): New macro.
567         (NT_PPC_VSX): New macro.
568
569 2008-11-25  Roland McGrath  <roland@redhat.com>
570
571         * sysdeps/alpha, sysdeps/unix/bsd/osf/alpha,
572         sysdeps/unix/bsd/Attic/osf1/alpha, sysdeps/unix/sysv/linux/alpha,
573         sysdeps/unix/sysv/linux/alpha/alpha, sysdeps/unix/alpha,
574         sysdeps/mach/alpha, sysdeps/mach/hurd/alpha:
575         Subdirectories moved to ports repository.
576         * configure.in (base_machine): Remove alpha case.
577
578 2008-11-25  Thomas Schwinge  <tschwinge@gnu.org>
579
580         * sysdeps/mach/strerror_l.c: New file.
581
582 2008-11-13  Ryan S. Arnold  <rsa@us.ibm.com>
583
584         [BZ #6411]
585         * sysdeps/powerpc/fpu/Makefile: Added test case tst-setcontext-fpscr.
586         * sysdeps/powerpc/fpu/feholdexcpt.c (_FPU_MASK_ALL): Define to replace
587         magic numbers.
588         * sysdeps/powerpc/fpu/fenv_libc.h (fesetenv_register): Dynamically
589         choose mtfsf insn based on PPC_FEATURE_HAS_DFP.
590         (relax_fenv_state): Same as above.
591         (FPSCR_29): Reserve bit in ISA 2.05.
592         (FPSCR_NI): Provide define for compat.
593         * sysdeps/powerpc/fpu/fesetenv.c (_FPU_MASK_ALL): Define to replace
594         magic numbers.
595         * sysdeps/powerpc/fpu/feupdateenv.c (_FPU_MASK_ALL): Define to replace
596         magic numbers.
597         * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c: New file.  Test case to
598         test setcontext and swapcontext with dynamic 64-bit FPSCR detection.
599         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp): Adjust
600         access to hwcap to account for hwcap size increase to uint64_t.
601         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S (__sigsetjmp ):
602         Likewise.
603         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S
604         (*setcontext): Likewise.
605         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/setcontext.S:
606         New file.
607         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/swapcontext.S:
608         New file.
609         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S
610         (*setcontext): dynamically select mtfsf insn based on
611         PPC_FEATURE_HAS_DFP. Adjust access to hwcap to account for hwcap size
612         increase to uint64_t.
613         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S
614         (*swapcontext): dynamically select mtfsf insn based on
615         PPC_FEATURE_HAS_DFP.  Adjust access to hwcap to account for hwcap size
616         increase to uint64_t.
617         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/setcontext.S:
618         New file.
619         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/swapcontext.S:
620         New file.
621         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
622         (*setcontext): dynamically select mtfsf insn based on
623         PPC_FEATURE_HAS_DFP.
624         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
625         (*swapcontext): dynamically select mtfsf insn based on
626         PPC_FEATURE_HAS_DFP.
627
628 2008-11-13  Ulrich Drepper  <drepper@redhat.com>
629
630         * version.h: Bump for 2.9 release.
631         * include/features.h (__GLIBC_MINOR__): Bump to 9.
632
633         [BZ #7029]
634         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_ALLOC_SIZE):
635         Multiply with sizeof of __cpu_mask, not 8 unconditionally after
636         all the rounding.
637
638 2008-11-11  Ulrich Drepper  <drepper@redhat.com>
639
640         [BZ #7009]
641         * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): Don't abort for
642         unknown request types for now.
643
644 2008-11-11  Roland McGrath  <roland@redhat.com>
645
646         * sysdeps/x86_64/configure: New file.
647
648         * configure.in: Add AC_SUBST(libc_cv_cpp_asm_debuginfo).
649         * configure: Regenerated.
650
651 2008-11-03  Martin Schwidefsky  <schwidefsky@de.ibm.com>
652
653         * sysdeps/s390/s390-64/dl-trampoline.S (_dl_runtime_profile): Use the
654         correct instruction to remove the stack frame.
655
656 2008-11-03  Michael Matz  <matz@suse.de>
657
658         * sysdeps/s390/bits/atomic.h (__arch_compare_and_exchange_val_32_acq,
659         __arch_compare_and_exchange_val_64_acq): Add "memory" clobber.
660
661 2008-11-07  Jakub Jelinek  <jakub@redhat.com>
662
663         * include/stdio.h (__builtin_fwrite, __builtin_fwrite_unlocked):
664         Remove.
665
666         * bits/libc-tsd.h (__libc_tsd_define, __libc_tsd_address,
667         __libc_tsd_get, __libc_tsd_set): Add TYPE argument, use it as the type
668         of the thread variable instead of void *.
669         * sysdeps/mach/hurd/bits/libc-tsd.h (__libc_tsd_define,
670         __libc_tsd_address, __libc_tsd_get, __libc_tsd_set): Likewise.
671         * include/ctype.h (CTYPE_B, CTYPE_TOUPPER, CTYPE_TOLOWER): Adjust
672         __libc_tsd_define arguments.
673         (__ctype_b_loc, __ctype_toupper_loc, __ctype_tolower_loc): Adjust
674         __libc_tsd_address arguments.  Remove union hack.
675         * include/rpc/rpc.h (RPC_VARS): Adjust __libc_tsd_define arguments.
676         * sunrpc/rpc_thread.c (RPC_VARS): Likewise.
677         (__rpc_thread_destroy, rpc_thread_multi, __rpc_thread_variables):
678         Adjust __libc_tsd_{set,get} arguments.
679         * ctype/ctype-info.c (CTYPE_B, CTYPE_TOUPPER, CTYPE_TOLOWER): Adjust
680         __libc_tsd_define arguments.
681         * locale/uselocale.c (__uselocale): Adjust __libc_tsd_{set,get}
682         arguments.
683         * locale/lc-ctype.c (_nl_postload_ctype): Likewise.
684         * locale/global-locale.c (__libc_tsd_LOCALE): Adjust type.
685         (LOCALE): Adjust __libc_tsd_define arguments.
686         * locale/localeinfo.h (_NL_CURRENT_LOCALE): Adjust __libc_tsd_get
687         arguments.
688         (LOCALE): Adjust __libc_tsd_define arguments.
689         * sysdeps/mach/hurd/malloc-machine.h (MALLOC): Adjust __libc_tsd_define
690         arguments.
691         (tsd_setspecific, tsd_getspecific): Adjust __libc_tsd_{set,get}
692         arguments.
693
694 2008-11-02  Ulrich Drepper  <drepper@redhat.com>
695
696         * malloc/malloc.c (public_rEALLOc): When new arena is used, copy
697         really all bytes.  Patch by Denys Vlasenko <dvlasenk@redhat.com>.
698
699 2008-11-01  Ulrich Drepper  <drepper@redhat.com>
700
701         [BZ #6966]
702         * misc/hsearch_r.c (hsearch_r): Fix secondary hash function.
703
704 2008-10-24  Joseph Myers  <joseph@codesourcery.com>
705             Ulrich Drepper  <drepper@redhat.com>
706
707         * math/tgmath.h (__floating_type): Use __builtin_classify_type in
708         definition for GCC 3.1 and later.
709
710 2008-10-31  Jakub Jelinek  <jakub@redhat.com>
711
712         * elf/dl-tls.c (__tls_get_addr): After calling _dl_update_slotinfo
713         refetch dtv, as it might have changed.
714         * elf/Makefile: Add rules to build and run tst-tls18.
715         * elf/tst-tls18.c: New test.
716         * elf/tst-tlsmod18a.c: New file.
717
718 2008-09-09  Aurelien Jarno  <aurelien@aurel32.net>
719
720         [BZ #6875]
721         * iconvdata/gconv-modules: Add LATIN9 as an alias to ISO-8859-15.
722
723 2008-10-31  Ulrich Drepper  <drepper@redhat.com>
724
725         [BZ #6867]
726         * sysdeps/powerpc/elf/rtld-global-offsets.sym: Fix typo.
727
728         [BZ #6919]
729         * posix/spawnattr_getschedparam.c (posix_spawnattr_getschedparam):
730         Fix length of copy operation.
731
732 2008-10-02  Pierre Habouzit <madcoder@debian.org>
733
734         * sysdeps/unix/sysv/linux/eventfd.c (eventfd): Use the eventfd2 syscall
735         and fix its calling convention.
736
737 2008-10-07  Andreas Schwab  <schwab@suse.de>
738
739         [BZ #6942]
740         * resolv/res_send.c (send_vc): Fix last change.
741         (send_dg): Align here as well.
742
743 2008-10-31  Ulrich Drepper  <drepper@redhat.com>
744
745         * sysdeps/unix/sysv/linux/ulimit.c (__ulimit): Handle UL_GETFSIZE
746         return value in case rlimit is RLIM_INFINITY.
747
748         [BZ #6947]
749         * sysdeps/unix/sysv/linux/ulimit.c (__ulimit): Fix return value
750         for UL_SETFSIZE.
751         * resource/Makefile (tests): Add bug-ulimit1.
752         * resource/bug-ulimit1.c: New file.
753
754         [BZ #6974]
755         * sunrpc/rpc_main.c (mkfile_output): Properly handle filename
756         without dot.  Properly terminate the string with a null byte.
757         Based on a patch by Aurelien Jarno <aurelien@aurel32.net>.
758
759         [BZ #6980]
760         * debug/getgroups_chk.c (__getgroups_chk): Return EINVAL error for
761         negative sizees.
762         * posix/bits/unistd.h (getgroups): Call __getgroups_chk for
763         negative __size.
764
765         [BZ #6995]
766         * sysdeps/powerpc/powerpc32/dl-machine.c: Fix typo in message.
767
768 2008-10-30  Ulrich Drepper  <drepper@redhat.com>
769
770         * grp/initgroups.c (internal_getgrouplist): Don't prematurely
771         abort if there is no initgroups_dyn function.
772
773         * resolv/res_send.c (send_dg): On timeout, only return nonzero
774         result if any of the queries really provided an answer.
775
776 2008-10-28  Ulrich Drepper  <drepper@redhat.com>
777
778         * po/lt.po: Update from translation team.
779
780 2008-10-26  Ulrich Drepper  <drepper@redhat.com>
781
782         * po/id.po: Update from translation team.
783
784 2008-10-24  Ulrich Drepper  <drepper@redhat.com>
785
786         * resolv/res_query.c (__libc_res_nquery): Add a few casts.
787         Fix tests for existence of second reply.
788
789 2008-10-23  Ulrich Drepper  <drepper@redhat.com>
790
791         * po/id.po: New file.
792         Contributed by the Indonesian translation team.
793
794 2008-10-22  Dmitry V. Levin  <ldv@altlinux.org>
795
796         * misc/syslog.c (openlog_internal): Fix __have_sock_cloexec
797         initialization.
798
799 2008-10-17  Jakub Jelinek  <jakub@redhat.com>
800
801         * elf/Makefile: Add rules to build and run tst-tls17.
802         * elf/tst-tls17.c: New test.
803         * elf/tst-tlsmod17a.c: New file.
804         * elf/tst-tlsmod17b.c: Likewise.
805
806 2008-10-17  Ulrich Drepper  <drepper@redhat.com>
807
808         * stdlib/divmod_1.c: Use correct type for dummy variable.
809         * stdlib/mod_1.c: Likewise.
810
811 2008-10-16  Ulrich Drepper  <drepper@redhat.com>
812
813         * elf/dl-tls.c (_dl_update_slotinfo): Copy all of the initial DTV.
814
815 2008-10-16  Jakub Jelinek  <jakub@redhat.com>
816
817         * sysdeps/unix/sysv/linux/sys/signalfd.h (signalfd): Fix __THROW vs.
818         __nonnull order for C++.
819         * sysdeps/unix/sysv/linux/alpha/sys/signalfd.h (signalfd): Likewise.
820         * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h (signalfd): Likewise.
821
822 2008-10-01  Daniel Jacobowitz  <dan@codesourcery.com>
823
824         * stdlib/longlong.h: Update from GCC.
825
826 2008-10-09  Jakub Jelinek <jakub@redhat.com>
827             David S. Miller  <davem@davemloft.net>
828
829         * sysdeps/sparc/sparc64/sparcv9v/memcpy.S: When not USE_BPR,
830         make sure any registers used with 64-bit 'branch-on-register'
831         instructions have their top 32-bits clear.
832         * sysdeps/sparc/sparc64/sparcv9v/memset.S: Likewise.
833         * sysdeps/sparc/sparc64/sparcv9v2/memcpy.S: Likewise.
834
835 2008-09-18  Andreas Schwab  <schwab@suse.de>
836
837         [BZ #6942]
838         * resolv/res_send.c (send_vc): Fix use of unaligned address.
839         Properly handle partial reads.
840
841 2008-10-01  Mark Shinwell  <shinwell@codesourcery.com>
842
843         * elf/elf.h (STO_MIPS_PLT): New.
844         (R_MIPS_COPY): New.
845         (R_MIPS_JUMP_SLOT): New.
846         (R_MIPS_NUM): Redefine to 128.
847         (DT_MIPS_PLTGOT): New.
848         (DT_MIPS_RWPLT): New.
849         (DT_MIPS_NUM): Redefine to 0x35.
850
851 2008-10-01  Ulrich Drepper  <drepper@redhat.com>
852
853         * timezone/africa: Update from tzdata2008f.
854         * timezone/asia: Likewise.
855         * timezone/australasia: Likewise.
856         * timezone/europe: Likewise.
857         * timezone/leapseconds: Likewise.
858         * timezone/northamerica: Likewise.
859         * timezone/southamerica: Likewise.
860         * timezone/zone.tab: Likewise.
861
862 2008-09-30  Ulrich Drepper  <drepper@redhat.com>
863
864         * nscd/connections.c: Disable use of paccept for now.
865
866 2008-09-29  Ulrich Drepper  <drepper@redhat.com>
867
868         * socket/Versions: Remove paccept export for GLIBC_2.9.
869         * socket/Makefile (routines): Remove paccept.
870         * socket/sys/socket.h: Remove paccept declaration.
871
872         * po/sv.po: Update from translation team.
873
874 2008-09-22  Deborah S. Townsend  <dstownse@us.ibm.com>
875
876         * sysdeps/s390/s390-64/s390x-mcount.S: Replace ahi with aghi.
877         * sysdeps/unix/sysv/linux/s390/s390-64/socket.S: Likewise.
878
879 2008-09-16  Ulrich Drepper  <drepper@redhat.com>
880
881         * dlfcn/dlopen.c (dlopen_doit): Allow __RTLD_SPROF flag.
882         Patch by Olivier Fourdan <ofourdan@redhat.com>.
883
884 2008-09-15  Ulrich Drepper  <drepper@redhat.com>
885
886         * sunrpc/rpc/svc.h: Declare svcfd_create.
887         Patch by Michael Solberg <msolberg@redhat.com>.
888
889 2008-09-12  Flavio Leitner  <fleitner@redhat.com>
890             Ulrich Drepper  <drepper@redhat.com>
891
892         * malloc/malloc.c (public_vALLOc): Try other arenas in case
893         _int_valloc fails.
894         (public_pVALLOc): Likewise.
895
896 2008-09-02  Andreas Jaeger  <aj@suse.de>
897
898         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: Fix last
899         commit.
900
901 2008-08-26  Aurelien Jarno  <aurelien@aurel32.net>
902
903         [BZ #6860]
904         * hurd/hurd/signal.h (HURD_MSGPORT_RPC): Fix a typo.
905
906 2008-07-18  Daniel Jacobowitz  <dan@codesourcery.com>
907
908         * Makefile (check-data): Check data directory in add-ons.
909         * elf/Makefile (check-data): Likewise.
910
911 2008-08-18  Roland McGrath  <roland@redhat.com>
912
913         * configure.in (--with-cpu): Check compiler support for -march/-mcpu.
914         * configure: Regenerated.
915         * config.make.in (cflags-cpu): New substituted variable.
916         (with-cpu): Variable removed.
917         * Makeconfig (+cflags): Use $(cflags-cpu), not $(with-cpu).
918
919 2008-08-14  Ryan S. Arnold  <rsa@us.ibm.com>
920
921         [BZ #6845]
922         * sysdeps/powerpc/fpu/bits/mathinline.h (__signbitl): Copy new
923         __signbitl definition and __LONG_DOUBLE_128__ guard from:
924         * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h: Remove as
925         redundant.  Functions which call floating point assembler operations
926         should go into a sysdeps powerpc/fpu directory.
927
928 2008-08-15  Ulrich Drepper  <drepper@redhat.com>
929
930         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Define MAP_STACK.
931         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Likewise.
932
933 2008-08-14  Ulrich Drepper  <drepper@redhat.com>
934
935         * sysdeps/x86_64/memset.S: Reduce size of tables for PIC.
936
937         * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): Undo all
938         change related to AT_EXECFN.  We cannot use that string.
939         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Remove
940         _dl_execfn member.
941         * elf/dl-support.c: Remove _dl_execfn variable.
942         (_dl_aux_init): Remove handling of AT_EXECFN.
943         * elf/dl-sysdep.c (_dl_sysdep_start): Remove handling of AT_EXECFN.
944         * elf/rtld.c (process_envvars): Remove use of __ASSUME_AT_EXECFN.
945
946 2008-08-13  Ulrich Drepper  <drepper@redhat.com>
947
948         [BZ #6544]
949         * libio/fmemopen.c: Implement binary mode.  In this mode no NUL
950         byte gets added to writes and seeks from the end use the length of
951         the buffer and not the currently terminating NUL byte.
952
953         [BZ #6634]
954         * login/utmp_file.c (getutent_r_file): Take additional parameter.
955         Set to true if locking failed.
956         (getutid_r_file): Adjust caller.
957         (pututline_file): Likewise.  Return NULL in this case.
958         Patch mostly by halesh.s@gmail.com.
959
960 2008-08-12  Ulrich Drepper  <drepper@redhat.com>
961
962         [BZ #6589]
963         * sysdeps/unix/sysv/linux/ifaddrs.c (struct sockaddr_ll_max):
964         Define.
965         (struct ifaddrs_storage): Use it instead of sockaddr_ll.
966
967 2008-08-12  Ryan S. Arnold  <rsa@us.ibm.com>
968
969         [BZ #6839]
970         * sysdeps/powerpc/powerpc32/dl-machine.c (CHECK_STATIC_TLS): Remove
971         macro since it is now available in elf/dynamic-link.h.
972
973 2008-08-12  Roland McGrath  <roland@frob.com>
974
975         * hurd/hurd/signal.h (HURD_MSGPORT_RPC): Avoid -Wparenthesis triggers,
976         in case used outside of libc.
977         Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>
978
979 2008-08-11  Ulrich Drepper  <drepper@redhat.com>
980
981         * resolv/res_mkquery.c (res_nmkquery): Call ns_name_compress
982         directly instead of going through dn_comp.
983
984 2008-08-11  Aurelien Jarno  <aurel32@debian.org>
985
986         * sysdeps/mach/i386/machine-lock.h (__spin_unlock, __spin_try_lock):
987         Fix asm constraints.
988
989 2008-08-07  Ulrich Drepper  <drepper@redhat.com>
990
991         [BZ #6790]
992         * sysdeps/unix/sysv/linux/bits/in.h (IP_PMTUDISC_PROBE): Define.
993         (IPV6_PMTUDISC_PROBE): Likewise.
994
995 2008-08-07  Pete Eberlein  <eberlein@us.ibm.com>
996
997         [BZ #6791]
998         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h (PROT_SAO): Define.
999
1000 2008-08-01  Steven Munroe  <sjmunroe@us.ibm.com>
1001             Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
1002
1003         [BZ #6817]
1004         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags):
1005         Added the members 'vsx' and 'arch_2_06'.
1006         (_dl_powerpc_platforms): Add the member 'power7'.
1007         * sysdeps/powerpc/dl-procinfo.h: Modify _DL_HWCAP_FIRST
1008         to reflect the changes required by VSX and ISA 2.06.
1009         Modify _DL_PLATFORMS_COUNT to reflect the addition of
1010         'power7'.
1011         Defined PPC_PLATFORM_POWER7.
1012         (_dl_string_platform): Add support for POWER7.
1013         * sysdeps/powerpc/sysdep.h: Define bit masks for VSX
1014         capability and ISA 2.06.
1015
1016 2008-08-07  Ulrich Drepper  <drepper@redhat.com>
1017
1018         [BZ #6824]
1019         * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h: Use correct
1020         macro to detect use of 128 bit long double.
1021         Patch by Ryan S. Arnold <rsa@us.ibm.com>.
1022
1023 2008-08-05  Ulrich Drepper  <drepper@redhat.com>
1024
1025         * scripts/gen-as-const.awk: Use 32-bit values on 32-bit platforms.
1026
1027         [BZ #5794]
1028         * sysdeps/i386/fpu/s_expm1l.S: Simply use exp implementation for large
1029         parameters.
1030         * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
1031         Patch by Denys Vlasenko <dvlasenk@redhat.com>.
1032
1033 2008-08-03  Ulrich Drepper  <drepper@redhat.com>
1034
1035         * nscd/connections.c (main_loop_poll): Pass a buffer which is
1036         guaranteed to be large enough to read inotify event.  Ignore
1037         EAGAIN error.  Better error message.  Add branch predicition.
1038         (main_loop_epoll): Likewise.
1039
1040 2008-08-02  Roland McGrath  <roland@frob.com>
1041
1042         * sysdeps/mach/i386/machine-lock.h (__spin_unlock, __spin_try_lock):
1043         Add memory clobbers.
1044
1045 2008-08-02  Ulrich Drepper  <drepper@redhat.com>
1046
1047         * manual/arith.texi: Avoid @strong{Note:}.
1048         * manual/creature.texi: Likewise.
1049         * manual/filesys.texi: Likewise.
1050         * manual/math.texi: Likewise.
1051         * manual/memory.texi: Likewise.
1052         * manual/resource.texi: Likewise.
1053         * manual/syslog.texi: Likewise.
1054         * manual/time.texi: Likewise.
1055
1056         * sysdeps/posix/clock_getres.c (hp_timing_getres): Remove inline
1057         to prevent warning.
1058
1059 2008-08-01  Ulrich Drepper  <drepper@redhat.com>
1060
1061         * sysdeps/unix/sysv/linux/Versions: Fix changes due to old patch for
1062         new epoll_create1 interface.
1063         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
1064         * sysdeps/unix/sysv/linux/sys/epoll.h: Likewise.
1065         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
1066
1067         * include/arpa/nameser.h (NS_GET16): Use const pointer.
1068         (NS_GET32): Likewise.
1069
1070         * sysdeps/unix/sysv/linux/kernel-features.h: s390 has the new
1071         syscalls, too.
1072
1073         * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): We cannot
1074         use the AT_EXECFN value if it is no absolute path.
1075         * sysdeps/unix/sysv/linux/kernel-features.h: Never define
1076         __ASSUME_AT_EXECFN.
1077
1078         * Versions.def: Add GLIBC_2.9 to libresolv.
1079         * include/resolv.h: Remove hidden proto declarations for __ns_*
1080         functions.  Add them for __dn_count_labels and __p_secstodate.
1081         * include/arpa/nameser.h: Add a number of hidden proto declarations.
1082         Define ns_msg_getflags macro here.
1083         * resolv/res_debug.c: Add hidden definition for __dn_count_labels
1084         and __p_secstodate.
1085         * resolv/Versions: Export functions from <arpa/nameser.h> from
1086         libresolv in version GLIBC_2.9.
1087         * resolv/ns_name.c: Integrate changes from bind 9.5.0.  Add necessary
1088         hidden definitions.
1089         * resolv/ns_netint.c: Likewise.
1090         * resolv/ns_parse.c: Likewise.
1091         * resolv/ns_print.c: Likewise.
1092         * resolv/ns_samedomain.c: Likewise.
1093         * resolv/ns_ttl.c: Likewise.
1094         * resolv/arpa/nameser_compat.h: Likewise.
1095         * resolv/arpa/nameser.h: Likewise.  Remove macros which redirect
1096         function calls.
1097         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Use __ns_get16
1098         instead of ns_get16.
1099         * resolv/nss_dns/dns-host.c (getanswer_r): Use __ns_get16 and
1100         __ns_get32 instead of ns_get16 and ns_get32 respectively.
1101         (gaih_getanswer_slice): Likewise.
1102         * resolv/Makefile (libresolv-routines): Add ns_date.
1103         * resolv/ns_date.c: New file.
1104
1105         * elf/Makefile (check-localplt.out): Also check libresolv and
1106         libcrypt.
1107
1108 2008-07-31  Ulrich Drepper  <drepper@redhat.com>
1109
1110         * sysdeps/unix/sysv/linux/kernel-features.h: Define
1111         __ASSUME_O_CLOEXEC.
1112
1113 2008-07-30  Ulrich Drepper  <drepper@redhat.com>
1114
1115         * sysdeps/posix/getaddrinfo.c (gaih_inet): Raise size of initial
1116         buffer passed to NSS functions.
1117
1118         * nscd/connections.c (nscd_init): Typo in preprocessor directive.
1119
1120         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PACCEPT):
1121         Define.
1122
1123         * misc/syslog.c (openlog_internal): Fix compile problem.
1124
1125 2008-07-28  Roland McGrath  <roland@redhat.com>
1126
1127         * elf/dl-sysdep.c (_dl_show_auxv): Add AT_EXECFN to the table.
1128
1129 2008-07-28  Ulrich Drepper  <drepper@redhat.com>
1130
1131         * io/ftw.c (add_object): Remove inline to avoid warning.
1132
1133         * sysdeps/unix/sysv/linux/paccept.c: Fix compile problem.
1134
1135         * resolv/res_send.c (__libc_res_nsend): Take additional parameter.
1136         Use it instead of locally defined resplen2 variable.
1137         (res_nsend): Adjust for __libc_res_nsend interface change.
1138         (send_vc): Initialize *resplen2 if necessary.  Read length of
1139         package into an appropriately aligned variable.  Store converted length
1140         in new variable and use it appropriately.
1141         Add branch prediction help.
1142         * resolv/res_query.c (__libc_res_nquery): Take additional parameter
1143         and pass it on to __libc_res_nsend.  Adjust all callers.
1144         (__libc_res_nsearch): Likewise.
1145         (__libc_res_nqeurydomain): Likewise.
1146         * resolv/nss_dns/dns-host.c: Adjust for __libc_res_nsearch interface
1147         change.
1148         (_nss_dns_gethostbyname4): Don't unconditionally allocate tmp array.
1149         Define resplen2 variable and pass it to __libc_res_nsearch and then
1150         to gaih_getanswer.
1151         (getanswer_r): In case of incorrect DNS data don't overread buffer.
1152         Add branch prediction.
1153         (gaih_getanswer_slice): Likewise.  Check for invalid data types.
1154         (gaih_getanswer): Don't decode second slice if first one failed due
1155         to a too small buffer.  Don't let not found status of second
1156         decoder shadow results of the first.
1157         * resolv/gethnamaddr.c (gethostbyname2): Adjust for __libc_res_nsearch
1158         and __libc_res_nquery interface changes
1159         (gethostbyaddr): Adjust for __libc_res_nquery interface change.
1160         * include/resolv.h: Adjust prototypes for __libc_res_nquery,
1161         __libc_res_nsearch, and __libc_res_nsend.
1162         * resolv/nss_dns/dns-canon.c: Adjust for __libc_res_nquery interface
1163         change.
1164         * resolv/nss_dns/dns-network.c: Adjust for __libc_res_nquery and
1165         __libc_res_nsearch interface changes.
1166
1167 2008-07-27  Ulrich Drepper  <drepper@redhat.com>
1168
1169         * libio/iopopen.c (_IO_new_proc_open): Remove unnecessary volatile.
1170
1171         * posix/wordexp.c (exec_comm): Use pipe2 if possible to create
1172         file descriptors with close-on-exec set.
1173         (exec_comm_child): Fix the case where the write end of the pipe is
1174         STDOUT_FILENO already.  In case it is, clear close-on-exec.
1175
1176         * sysdeps/unix/sysv/linux/syscalls.list: Add __pipe2 alias.
1177         * io/pipe2.c: Likewise.
1178         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_PIPE2
1179         instead of __ASSUME_PACCEPT.
1180         * include/unistd.h: Declare __have_pipe2.
1181         * libio/iopopen.c: Implement "e" flag.
1182         * libio/Makefile (tests): Add tst-popen1.
1183         * libio/tst-popen1.c: New file.
1184
1185         * sysdeps/unix/sysv/linux/bits/socket.h: Define PF_ISDN and AF_ISDN.
1186         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
1187
1188 2008-07-26  Ulrich Drepper  <drepper@redhat.com>
1189
1190         [BZ #6771]
1191         * libio/fileops.c (_IO_new_file_attach): Preserve errno around
1192         success call of _IO_SEEKOFF or calls which failed because the
1193         descriptor is for a pipe.
1194
1195         * sunrpc/key_call.c (getkeyserv_handle): Use FD_CLOEXEC instead of
1196         magic number.
1197
1198         * misc/syslog.c (openlog_internal): Use SOCK_CLOEXEC if possible.
1199
1200         * malloc/mtrace.c (mtrace): Use 'e' flag in fopen call.  Drop
1201         F_SETFD use if we know fopen set the flag.
1202
1203         * login/utmp_file.c (setutent_file): Minor optimization in case
1204         O_CLOEXEC is available.
1205
1206 2008-07-24  Tom "spot" Callaway  <tcallawa@redhat.com>
1207
1208         * Makeconfig: Define pie-ccflag and PIE-ccflag variables.
1209         * elf/Makefile: Use pie-ccflag variable.
1210         * nscd/Makefile: Likewise.
1211         * sysdeps/sparc/Makefile: Set $(pie-ccflag) to -fPIE.
1212
1213 2008-07-21  Andreas Krebbel  <krebbel1@de.ibm.com>
1214
1215         [BZ #6724]
1216         * Versions.def: Add GLIBC_2.9 version tag for libutil.
1217         * sysdeps/unix/sysv/linux/s390/bits/utmp.h: Copy of
1218         gnu/bits/utmp.h.  Check for __WORDSIZE_COMPAT32 removed.
1219         * sysdeps/unix/sysv/linux/s390/bits/utmpx.h: Copy of
1220         gnu/bits/utmpx.h.  Check for __WORDSIZE_COMPAT32 removed.
1221         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Add new files
1222         utmp32, utmpx32 and login32.
1223         * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Add 2.9
1224         versions of struct utmp functions to libc and libutil.
1225         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-compat.h: New file.
1226         * sysdeps/unix/sysv/linux/s390/s390-32/getutent.c: New file.
1227         * sysdeps/unix/sysv/linux/s390/s390-32/getutent_r.c: New file.
1228         * sysdeps/unix/sysv/linux/s390/s390-32/getutid.c: New file.
1229         * sysdeps/unix/sysv/linux/s390/s390-32/getutid_r.c: New file.
1230         * sysdeps/unix/sysv/linux/s390/s390-32/getutline.c: New file.
1231         * sysdeps/unix/sysv/linux/s390/s390-32/getutline_r.c: New file.
1232         * sysdeps/unix/sysv/linux/s390/s390-32/getutmp.c: New file.
1233         * sysdeps/unix/sysv/linux/s390/s390-32/getutxent.c: New file.
1234         * sysdeps/unix/sysv/linux/s390/s390-32/getutxid.c: New file.
1235         * sysdeps/unix/sysv/linux/s390/s390-32/getutxline.c: New file.
1236         * sysdeps/unix/sysv/linux/s390/s390-32/login.c: New file.
1237         * sysdeps/unix/sysv/linux/s390/s390-32/login32.c: New file.
1238         * sysdeps/unix/sysv/linux/s390/s390-32/pututxline.c: New file.
1239         * sysdeps/unix/sysv/linux/s390/s390-32/updwtmp.c: New file.
1240         * sysdeps/unix/sysv/linux/s390/s390-32/updwtmpx.c: New file.
1241         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: New file.
1242         * sysdeps/unix/sysv/linux/s390/s390-32/utmp32.c: New file.
1243         * sysdeps/unix/sysv/linux/s390/s390-32/utmp32.h: New file.
1244         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx-convert.h: New file.
1245         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.c: New file.
1246         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: New file.
1247
1248 2008-07-26  Ulrich Drepper  <drepper@redhat.com>
1249
1250         * scripts/gen-as-const.awk: Generate more widely usable code by
1251         using 64-bit arithmetic.
1252
1253         * stdio-common/printf_fp.c (___printf_fp): Give wide outout code
1254         the same treatment as narrow output code in last patch.
1255
1256         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Namespace cleanup.
1257
1258         [BZ #6763]
1259         * elf/dl-load.c (local_strdup): Remove inline.
1260         (_dl_map_object_from_fd): Don't allocate l_symbolic_searchlist.r_list.
1261         * elf/dl-object.c (_dl_new_object): Allocate symbolic searchlist as
1262         part of the object.
1263
1264         * sysdeps/unix/sysv/linux/dl-origin.c: Add const to avoid warning.
1265
1266 2008-07-25  Ulrich Drepper  <drepper@redhat.com>
1267
1268         * sysdeps/unix/sysv/linux/kernel-features.h: IA-64 and SPARC have
1269         the new syscalls, too.
1270
1271         * sysdeps/i386/i686/memcmp.S: Fix unwind information.
1272         Reported by Paul Pluzhnikov <ppluzhnikov@google.com>.
1273
1274         [BZ #6698]
1275         * stdio-common/_i18n_number.h (_i18n_number_rewrite): Take additional
1276         parameter for end of buffer.  If temporary copy is too large use
1277         malloc.
1278         * stdio-common/vfprintf.c: Adjust for _i18n_number_rewrite
1279         interface change.
1280         * stdio-common/printf_fp.c (__printf_fp): Likewise..  Account for
1281         string rewrite when allocating buffer.
1282
1283         * sysdeps/unix/sysv/linux/kernel-features.h: PPC has the new
1284         syscalls, too.
1285
1286         * nscd/connections.c (nscd_init): Clean up fcntl call.
1287
1288         * nscd/nscd_helper.c (open_socket): Use SOCK_CLOEXEC and
1289         SOCK_NONBLOCK if possible.
1290
1291         * sysdeps/unix/sysv/linux/opensock.c (__opensock): Use
1292         SOCK_CLOEXEC if available.
1293
1294         * include/rpc/clnt.h: Declare __libc_clntudp_bufcreate and
1295         __libc_clntudp_bufcreate_internal.
1296         * include/sys/socket.h: Declare __have_sock_cloexec.
1297         * socket/Makefile (aux): Add have_sock_cloexec.
1298         * socket/have_sock_cloexec.c: New file.
1299         * sunrpc/clnt_udp.h (clntudp_bufcreate): Now a wrapper around
1300         __libc_clntudp_bufcreate.
1301         (__libc_clntudp_bufcreate): Former implementation of clntudp_bufcreate
1302         which takes an additional parameter.  Create socket with non-blocking
1303         mode and close-on-exec flag set, if wanted.
1304         * sunrpc/Versions: Export __libc_clntudp_bufcreate@GLIBC_PRIVATE.
1305         * nis/ypclnt.c (yp_bind_client_create): Use __libc_clntpudp_bufcreate
1306         instead of clntudp_create.  The socket has already the close-on-exec
1307         flag set if SOCK_CLOEXEC is defined.
1308
1309 2008-07-24  Ulrich Drepper  <drepper@redhat.com>
1310
1311         * sysdeps/unix/sysv/linux/kernel-features.h: Define
1312         __ASSUME_PACCEPT, __ASSUME_IN_NONBLOCK, and __ASSUME_PACCEPT if
1313         appropriate.
1314         * nscd/connections.c: Avoid fcntl calls to set close-on-exec flag and
1315         non-blocking mode by using socket, paccept, and inotify_init1.
1316
1317         * Versions.def (glibc): Add GLIBC_2.9.
1318         * io/Makefile (routines): Add dup3 and pipe2.
1319         * io/Versions [glibc] (GLIBC_2.9): Add dup3 and pipe2.
1320         * io/dup3.c: New file.
1321         * io/pipe2.c: New file.
1322         * posix/unistd.h: Declare dup3 and pipe2.
1323         * socket/Makefile (routines): Add paccept.
1324         * socket/Versions [glibc] (GLIBC_2.9): Add paccept.
1325         * socket/paccept.c: New file.
1326         * socket/sys/socket.h: Declare paccept.
1327         * sysdeps/unix/syscalls.list: Add entry for dup3.
1328         * sysdeps/unix/sysv/linux/Versions [glibc] (GLIBC_2.9): Add
1329         epoll_create2 and inotify_init1.
1330         * sysdeps/unix/sysv/linux/eventfd.c: Use eventfd1 syscall if possible.
1331         * sysdeps/unix/sysv/linux/paccept.c: New file.
1332         * sysdeps/unix/sysv/linux/signalfd.c: Use signalfd4 syscall if
1333         possible.
1334         * sysdeps/unix/sysv/linux/socketcall.h: Add SOCKOP_paccept.
1335         * sysdeps/unix/sysv/linux/syscalls.list: Add epoll_create2,
1336         inotify_init1, and pipe2 entries.
1337         * sysdeps/unix/sysv/linux/alpha/sys/epoll.h: New file.
1338         * sysdeps/unix/sysv/linux/alpha/sys/eventfd.h: New file.
1339         * sysdeps/unix/sysv/linux/alpha/sys/inotify.h: New file.
1340         * sysdeps/unix/sysv/linux/alpha/sys/signalfd.h: New file.
1341         * sysdeps/unix/sysv/linux/alpha/sys/timerfd.h: New file.
1342         * sysdeps/unix/sysv/linux/bits/socket.h: Define SOCK_CLOEXEC and
1343         SOCK_NONBLOCK.
1344         * sysdeps/unix/sysv/linux/i386/paccept.S: New file.
1345         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: New file.
1346         * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: New file.
1347         * sysdeps/unix/sysv/linux/sparc/sys/inotify.h: New file.
1348         * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h: New file.
1349         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: New file.
1350         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: New file.
1351         * sysdeps/unix/sysv/linux/sys/epoll.h: Define EPOLL_CLOEXEC and
1352         EPOLL_NONBLOCK.  Declare epoll_create2.
1353         * sysdeps/unix/sysv/linux/sys/eventfd.h: Define EFD_CLOEXEC and
1354         EFD_NONBLOCK.
1355         * sysdeps/unix/sysv/linux/sys/inotify.h: Define IN_CLOEXEC and
1356         IN_NONBLOCK.  Declare inotify_init1.
1357         * sysdeps/unix/sysv/linux/sys/signalfd.h: Define SFD_CLOEXEC and
1358         SFD_NONBLOCK.
1359         * sysdeps/unix/sysv/linux/sys/timerfd.h: Define TFD_CLOEXEC and
1360         TFD_NONBLOCK.
1361
1362         * elf/elf.h: Define AT_EXECFN.
1363         * elf/rtld.c [!__ASSUME_AT_EXECFN] (process_envvars): Don't handle
1364         LD_ORIGIN_PATH.
1365         * elf/dl-sysdep.c (_dl_sysdep_start): Handle AT_EXECFN.
1366         * elf/dl-support.c: Define _dl_execfn.  Don't define _dl_origin_path
1367         if __ASSUME_AT_EXECFN is defined.
1368         (_dl_aux_init): Handle AT_EXECFN.
1369         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_AT_EXECFN
1370         for 2.6.27 and up.
1371         * sysdeps/generic/ldsodefs.h (rtld_global_ro): Add _dl_execfn.
1372         Don't define _dl_origin_path if __ASSUME_AT_EXECFN is defined.
1373         * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): Use
1374         _dl_execfn if available and avoid compatibility code if
1375         __ASSUME_AT_EXECFN is defined.
1376
1377         * sysdeps/unix/sysv/linux/dl-sysdep.h: Don't declare
1378         _dl_discover_osversion only for older kernels.
1379
1380 2008-07-22  Roland McGrath  <roland@frob.com>
1381
1382         * hurd/fd-read.c (_hurd_fd_read): Fix last change.
1383
1384 2008-07-21  Roland McGrath  <roland@frob.com>
1385
1386         * hurd/fd-read.c (_hurd_fd_read): Return EGRATUITOUS if the server
1387         returned too much data out of line.
1388
1389 2008-07-20  Ulrich Drepper  <drepper@redhat.com>
1390
1391         * locale/setlocale.c (setname): Remove inline to avoid compiler
1392         warning.
1393
1394         [BZ #6712]
1395         * locale/setlocale.c (setlocale): Take the setlocale lock earlier.
1396
1397 2008-07-15  Ulrich Drepper  <drepper@redhat.com>
1398
1399         * stdio-common/vfprintf.c (_IO_helper_overflow): In case _IO_sputn
1400         doesn't manage to write anything, fail.
1401
1402         * malloc/hooks.c (__malloc_check_init): Remove printf.
1403
1404 2008-07-14  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1405
1406         * sysdeps/mach/hurd/bits/fcntl.h: Include <sys/types.h>.
1407
1408 2008-07-12  Ulrich Drepper  <drepper@redhat.com>
1409
1410         * nscd/connections.c (main_loop_poll): Fix handling of read errors
1411         from inotify.
1412         (main_loop_epoll): Likewise.
1413
1414 2008-07-09  Ulrich Drepper  <drepper@redhat.com>
1415
1416         * resolv/res_send.c: Remove unnecessary res_pquery prototype.
1417
1418         * resolv/res_query.c (__libc_res_nquery): Issue debug message only
1419         if DEBUG is defined.
1420
1421         * resolv/res_query.c (__libc_res_nquery): Align buffer for T_AAAA
1422         query.  Adjust buffer size computation for padding.
1423
1424 2008-07-08  Ulrich Drepper  <drepper@redhat.com>
1425
1426         * stdio-common/Makefile: Add rules to build and run tst-setvbuf1.
1427         * stdio-common/tst-setvbuf1.c: New file.
1428         * stdio-common/tst-setvbuf1.expect: New file.
1429
1430         [BZ #6719]
1431         * libio/iosetvbuf.c (_IO_setvbuf): Correctly clear buffering flags
1432         when selecting fully-buffered stream.
1433         Patch by Wang Xin <wxinee@gmail.com>.
1434
1435 2008-07-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1436
1437         * sysdeps/mach/hurd/open.c: Include <stdio.h>.
1438         (__open_2): New function.
1439         (__open64_2): New alias to __open_2.
1440         * sysdeps/mach/hurd/openat.c: Include <stdio.h>.
1441         (__openat_2): New function.
1442         (__openat64_2): New alias to __openat_2.
1443
1444 2008-07-06  Ulrich Drepper  <drepper@redhat.com>
1445
1446         [BZ #6723]
1447         * time/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
1448
1449 2008-07-01  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1450
1451         * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Define MSG_NOSIGNAL.
1452         * hurd/hurd/fd.h (__hurd_sockfail): Add extern inline function.
1453         * sysdeps/mach/hurd/recv.c (__recv): Use __hurd_sockfail instead of
1454         __hurd_dfail.
1455         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Likewise.
1456         * sysdeps/mach/hurd/recvmsg.c (__recvmsg): Likewise.
1457         * sysdeps/mach/hurd/send.c (__send): Likewise.
1458         * sysdeps/mach/hurd/sendto.c (__sendfrom): Likewise.
1459         * sysdeps/mach/hurd/sendmsg.c (__sendmsg): Likewise.
1460
1461 2008-03-04  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1462
1463         * sysdeps/mach/hurd/recv.c (__recv): Initialize NPORTS.
1464         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Likewise.
1465         * sysdeps/mach/hurd/recvmsg.c (__recvmsg): Likewise.
1466         * hurd/fd-read.c (_hurd_fd_read): Initialize NREAD.
1467         * hurd/get-host.c (_hurd_get_host_config): Likewise.
1468         * sysdeps/mach/hurd/dl-sysdep.c (__libc_read): Likewise.
1469
1470 2008-06-27  Ulrich Drepper  <drepper@redhat.com>
1471
1472         [BZ #6657]
1473         * time/strptime_l.c: Don't clear s.era_cnt after successful match
1474         of %EY.
1475         Patch by Petr Baudis.
1476
1477 2008-06-26  Ulrich Drepper  <drepper@redhat.com>
1478
1479         * resolv/res_debug.c (__p_type_syms): Add ns_t_dname entry.
1480         Patch by Peter Jones <pjones@redhat.com>.
1481
1482 2008-06-25  Ulrich Drepper  <drepper@redhat.com>
1483
1484         [BZ #6654]
1485         * stdlib/canonicalize.c (__realpath): readlink can write too much
1486         into the buffer on platforms without PATH_MAX.
1487
1488 2008-06-17  Carlos O'Donell  <carlos@codesourcery.com>
1489
1490         [BZ #6653]
1491         * posix/tst-regex.c (main): Rename to...
1492         (do_test): ... this. Remove cmdline option processing.
1493         (TIMEOUT): Define.
1494         (TEST_FUNCTION): Define.
1495         (CMDLINE_OPTIONS): Define.
1496
1497 2008-06-25  Ulrich Drepper  <drepper@redhat.com>
1498
1499         [BZ #5210]
1500         * configure.in: Add -Werror to -fstack-protector test to catch
1501         unsupported architectures.
1502         Patch by Gilles Esponasse <g.esp@free.fr>.
1503
1504 2008-06-17  Joseph Myers  <joseph@codesourcery.com>
1505
1506         * stdlib/tst-setcontext.c: Set back_in_main before exit if
1507         getcontext returns ENOSYS.
1508
1509 2008-06-18  Ulrich Drepper  <drepper@redhat.com>
1510
1511         * nscd/connections.c (main_loop_poll): Fix test for read error.
1512         (main_loop_epoll): Likewise.
1513
1514 2008-06-13  Ulrich Drepper  <drepper@redhat.com>
1515
1516         * sysdeps/posix/getaddrinfo.c: Move _res_hconf_init call to a
1517         better place so it is not called when nscd is used.
1518
1519         * nscd/connections.c: Also recognize and handle changes to the
1520         resolver configuration file.
1521
1522 2008-06-12  Ulrich Drepper  <drepper@redhat.com>
1523
1524         * time/strftime.c: Pass reference to tzset_called around to handle
1525         recursive calls.
1526
1527         [BZ #6612]
1528         * time/strftime.c (__strftime_internal): Call tzset() only
1529         when printing timezone-dependent values.
1530         Based on a patch by Petr Baudis <pasky@suse.cz>.
1531
1532         * resolv/nss_dns/dns-host.c (gaih_getanswer): Don't
1533         unconditionally use second gaih_getanswer_slice result.
1534
1535         * sysdeps/posix/getaddrinfo.c (gai_inet): Remove unnecessary test.
1536         (getaddrinfo): RES must always be non-NULL.
1537
1538 2008-06-12  Jakub Jelinek  <jakub@redhat.com>
1539
1540         * sysdeps/powerpc/powerpc64/fpu/s_llround.S (__llround): Avoid using
1541         cr[34] registers.
1542         * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S (__llroundf): Likewise.
1543         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S (__llround):
1544         Likewise.
1545         * sysdeps/powerpc/powerpc32/fpu/s_lround.S (__lround): Avoid using cr3
1546         register.
1547
1548 2008-06-12  Ulrich Drepper  <drepper@redhat.com>
1549
1550         * nscd/nscd.h (struct database_dyn): Add inotify_descr and clear_cache
1551         fields.
1552         * nscd/connections.c (inotify_fd): New variable.
1553         (nscd_init): Try to open an inotify descriptor.
1554         If successful, watch files for databases using inotify instead of
1555         having prune threads stat the files.
1556         (nscd_run_prune): Recognize clear_cache flag being set and call
1557         prune_cache appropriately.
1558         (main_loop_poll): Add inotify descriptor to wait set and handle the
1559         reported changes.
1560         (main_loop_epoll): Likewise.
1561         * nscd/cache.c (prune_cache): Don't stat files for databases if
1562         inotify is used.
1563         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd]
1564         (CFLAGS-connections.c): Add -DHAVE_INOTIFY.
1565
1566         * nscd/grpcache.c (cache_addgr): Correctly compute size of
1567         fixed-size portion of the record.
1568         * nscd/servicescache.c (cache_addserv): Likewise.
1569         * nscd/pwdcache.c (cache_addpw): Likewise.
1570         * nscd/initgrcache.c (addinitgroupsX): Likewise.
1571
1572 2008-06-11  Ulrich Drepper  <drepper@redhat.com>
1573
1574         * nscd/mem.c (gc): Initialize obstack earlier so that if we jump
1575         out we don't use uninitialized memory.
1576
1577         * nscd/hstcache.c (cache_addhst): Send correct number of bytes to
1578         the client.
1579
1580 2008-06-10  Ulrich Drepper  <drepper@redhat.com>
1581
1582         * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): Also log and
1583         ignore T_DNAME messages.
1584         * resolv/arpa/nameser_compat.h (T_DNAME): Define.
1585
1586 2008-06-05  Jakub Jelinek  <jakub@redhat.com>
1587
1588         * misc/regexp.h (compile): Use __REPB_PREFIX macro.
1589         Avoid segfault if first GETC returns eof/'\0'/'\n'.
1590
1591 2008-06-03  Jakub Jelinek  <jakub@redhat.com>
1592
1593         * nscd/nscd_getserv_r.c (__nscd_getservbyport_r): Pass cp
1594         instead of portstr to nscd_getserv_r.  Patch by
1595         Roman Kagan <rkagan@mail.ru>.
1596
1597 2008-05-26  Jim Meyering  <meyering@redhat.com>
1598
1599         Remove more useless "if" tests before "free".
1600         * include/inline-hashtab.h (htab_delete): Likewise.
1601         * libio/freopen.c (freopen): Likewise.
1602         * libio/freopen64.c (freopen64): Likewise.
1603         * locale/programs/ld-collate.c (collate_read): Likewise.
1604         * misc/fstab.c (libc_freeres_fn): Likewise.
1605         * posix/glob.c (globfree): Likewise.
1606
1607 2008-05-24  Ulrich Drepper  <drepper@redhat.com>
1608
1609         * string/Makefile (strop-tests): Add memmem.
1610         * string/test-memmem.c: New file.
1611         * string/test-string.h (BUF1PAGES): Define to 1 if undefined.
1612         (test_init): Size buf1 according to BUF1PAGES.
1613
1614 2008-05-24  Jakub Jelinek  <jakub@redhat.com>
1615
1616         * libio/stdio.h (vscanf): Fix -std=c99 redirect.
1617         * stdio-common/Makefile (tests): Add scanf16 and scanf17.
1618         (CFLAGS-scanf17.c): New.
1619         * stdio-common/scanf14.c (main): Add fscanf and scanf tests.
1620         * stdio-common/scanf15.c (main): Likewise.
1621         * stdio-common/scanf16.c: New file.
1622         * stdio-common/scanf17.c: New file.
1623
1624 2008-05-24  Ulrich Drepper  <drepper@redhat.com>
1625
1626         * resolv/res_send.c (send_dg): If we already have one of two
1627         answers and the server reports SERVFAIL, NOTIMP, or REFUSED, then
1628         use the one answer insted of failing.
1629
1630 2008-02-20  Ryan S. Arnold  <rsa@us.ibm.com>
1631
1632         * math/libm-test.inc (exp_test): Exclude expl(1000.0L) from
1633         being executed on PowerPC as the expected result exceeds IBM
1634         long double 128 __LDBL_MAX__.
1635
1636 2008-05-21  Roland McGrath  <roland@redhat.com>
1637
1638         * shlib-versions (sparc.*-.*-.*, sparc64.*-.*-.*): Add ABI lines.
1639
1640         * Makefile (check-data): Use $(abi-name) before other guesses.
1641         Look in $(add-ons) dirs before scripts/data/.
1642         * elf/Makefile (check-data): Likewise.
1643
1644         * scripts/soversions.awk: Grok ABI line.
1645         * Makeconfig ($(common-objpfx)soversions.mk): Likewise.
1646         Emit definition for abi-name variable.
1647
1648 2008-05-21  Ulrich Drepper  <drepper@redhat.com>
1649
1650         * string/endian.h: Define new fixed-size hto* and *toh macros only
1651         if [__USE_BSD].
1652
1653         * iconvdata/Depend: Add localedata.
1654
1655 2008-05-21  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1656
1657         * bits/termios.h (ONLCR): Define under [__USE_XOPEN] too.
1658
1659 2008-05-08  David S. Miller  <davem@davemloft.net>
1660
1661         * sysdeps/unix/sysv/linux/sparc/sparc32/setcontext.S: Use
1662         HIDDEN_JUMPTARGET.
1663         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
1664         (__SYSCALL_CLOBBERS): Remove %g* registers.
1665         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
1666         (__SYSCALL_CLOBBERS): Likewise.
1667         * scripts/data/localplt-sparc-linux-gnu.data: New file.
1668         * scripts/data/localplt-sparc64-linux-gnu.data: New file.
1669
1670 2008-05-21  Jakub Jelinek  <jakub@redhat.com>
1671
1672         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
1673         (CALL_ERRNO_LOCATION): Define.
1674         (__SYSCALL_STRING, __CLONE_SYSCALL_STRING): Use it.
1675         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
1676         (CALL_ERRNO_LOCATION): Define.
1677         (__SYSCALL_STRING, __CLONE_SYSCALL_STRING): Use it.
1678         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S (__brk): Use
1679         HIDDEN_JUMPTARGET for __errno_location call in libc.so.
1680
1681 2008-05-20  Ulrich Drepper  <drepper@redhat.com>
1682
1683         * include/inline-hashtab.h (higher_prime_number): Fix type of mid
1684         variable.
1685
1686 2008-05-20  Jakub Jelinek  <jakub@redhat.com>
1687
1688         * sysdeps/unix/sysv/linux/sparc/sparc32/sigcontextinfo.h
1689         (FIRST_FRAME_POINTER): Define.
1690
1691 2008-05-09  David S. Miller  <davem@davemloft.net>
1692
1693         * sysdeps/sparc/sparc64/backtrace.c: New file.
1694
1695 2008-05-14  David S. Miller  <davem@davemloft.net>
1696
1697         * sysdeps/sparc/machine-gmon.h: New file.
1698         * sysdeps/sparc/sparc-mcount.S: Likewise.
1699         * sysdeps/sparc/Makefile: Add sparc-mcount target to
1700         sysdep_routines in gmon directory.
1701
1702 2008-05-19  Jakub Jelinek  <jakub@redhat.com>
1703
1704         * elf/soinit.c (__EH_FRAME_BEGIN__): Remove.
1705
1706 2008-05-19  Ulrich Drepper  <drepper@redhat.com>
1707
1708         * resolv/res_query.c (__libc_res_nquery): In case one of two
1709         answer was too short don't try to read that answer's header.
1710
1711         * resolv/res_send.c (send_dg): In case of timeout and there are
1712         two queries and one has been answered, return value indicating
1713         success.
1714
1715 2008-05-18  Ulrich Drepper  <drepper@redhat.com>
1716
1717         * nscd/cache.c (cache_add): Take additional parameter specifying
1718         whether this is in response of a cache refill.  Check alignment
1719         of package data.  Revamp waking of pruning thread.
1720         (prune_cache): Small optimization.
1721         * nscd/nscd.h: Adjust cache_add prototypes.
1722         * nscd/aicache.c: Adjust cache_add calls.
1723         * nscd/grpcache.c: Likewise.
1724         * nscd/hstcache.c: Likewise.
1725         * nscd/initgrcache.c: Likewise.
1726         * nscd/pwdcache.c: Likewise.
1727         * nscd/servicescache.c: Likewise.
1728         * nscd/connections.c (restart): Really disable cache use before
1729         exec attempt.  If it fails, reenable cache.
1730         (nscd_run_prune): Initialize wakeup_time.  After wakeup, set wakeup
1731         time to max to be able to notice concurrent cache additions.  Unlock
1732         prune_lock while performing gc.  Afterwards compute wakeup time with
1733         current wakeup_time value in mind.
1734
1735 2008-05-17  Ulrich Drepper  <drepper@redhat.com>
1736
1737         * nscd/mem.c (gc): Avoid stack overflow when allocating move list.
1738
1739         * nscd/mem.c (gc): Correctly determine highest used array element
1740         in mark.
1741
1742         * nscd/mem.c (markrange): Add assert to check entries are all
1743         aligned.  Small cleanup in bitmap use.
1744
1745         * nscd/nscd.h (mem_in_flight): Replace blockaddr field with
1746         blockoff of type nscd_ssize_t.
1747         * nscd/mem.c (gc): Simplify markrange call for on-flight blocks.
1748         (mempoll_alloc): Record block offset and not address.
1749
1750         * nscd/mem.c (gc): Fix test for stack overuse.
1751
1752         * nscd/aicache.c (addhstaiX): Fix a few small problems, cleanups,
1753         more asserts.
1754
1755         * sysdeps/posix/getaddrinfo.c (gaih_inet): If nscd reports no
1756         entry is available, believe it.
1757
1758         * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): If there are
1759         no answers return NSS_STATUS_NOTFOUND.
1760         (gaih_getanswer): Don't call gaih_getanswer_slice if the answer
1761         buffer does not have any content.
1762
1763 2008-05-16  Ulrich Drepper  <drepper@redhat.com>
1764
1765         * string/strcasestr.c (CMP_FUNC): Use __strncasecmp, not strncasecmp.
1766
1767         * sysdeps/posix/getaddrinfo.c (gaih_inet): After gethostbyname4_r
1768         lookup, don't assign canon unconditionally.
1769
1770 2008-05-14  Ulrich Drepper  <drepper@redhat.com>
1771
1772         * string/Makefile (distribute): Add str-two-way.h.
1773
1774 2008-03-29  Eric Blake  <ebb9@byu.net>
1775
1776         Rewrite string searches to O(n) rather than O(n^2).
1777         * string/str-two-way.h: New file.  For linear fixed-allocation
1778         string searching.
1779         * string/memmem.c: New implementation.
1780         * string/strstr.c: New implementation.
1781         * string/strcasestr.c: New implementation.
1782
1783 2008-04-11  Paolo Bonzini  <bonzini@gnu.org>
1784
1785         * posix/regcomp.c (optimize_utf8): Add a note on why we test
1786         opr.ctx_type.
1787         (calc_first): Initialize constraint field.
1788         (duplicate_node_closure): Use it instead of special casing ANCHORS.
1789         Use search_duplicated_node to avoid loops.  Fix grammar.
1790         (duplicate_node): Merge constraint field for all node types.
1791         (calc_eclosure_iter): Look at constraint field for all node types.
1792         * posix/regex_internal.c (create_cd_newstate): Don't look at
1793         create_cd_newstate.
1794
1795 2008-05-14  Ulrich Drepper  <drepper@redhat.com>
1796
1797         [BZ #6428]
1798         * configure.in: Don't use $CFLAGS when assembling, use $ASFLAGS.
1799
1800         [BZ #6442]
1801         * string/endian.h: Add macros for fixed-size endian conversion.
1802         * bits/byteswap.h: Allow inclusion from <endian.h>.
1803         * sysdeps/i386/bits/byteswap.h: Likewise.
1804         * sysdeps/ia64/bits/byteswap.h: Likewise.
1805         * sysdeps/s390/bits/byteswap.h: Likewise.
1806         * sysdeps/x86_64/bits/byteswap.h: Likewise.
1807         * string/Makefile (tests): Add tst-endian.
1808         * string/tst-endian.c: New file.
1809
1810         * iconvdata/run-iconv-test.sh: Use = instead of == in test.
1811         Patch by Reuben Thomas.
1812
1813 2008-05-14  Joseph Myers  <joseph@codesourcery.com>
1814
1815         * iconvdata/Makefile (bug-iconv6-ENV, tst-iconv7-ENV): Define.
1816
1817 2008-05-14  Ulrich Drepper  <drepper@redhat.com>
1818
1819         * iconvdata/bug-iconv6.c (do_test): Use de_DE.UTF-8 locale.
1820
1821         [BZ #6461]
1822         * iconv/gconv_simple.c (BODY for __gconv_transform_ascii_internal):
1823         Add missing braces.
1824         (BODY for __gconv_transform_internal_ascii): Likewise.
1825
1826         [BZ #6472]
1827         * sysdeps/posix/getaddrinfo.c (get_scope): Loopback addresses have
1828         to be treated like link-local addresses.
1829         (match_prefix): Don't treat IPv4 loopback address special when
1830         converting to v4 mapped addressed.
1831
1832         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Call _res_hconf_init
1833         if necessary.
1834         * posix/tst-rfc3484.c: Add dummy definition of _res_hconf_init.
1835         * posix/tst-rfc3484-2.c: Likewise.
1836         * posix/tst-rfc3484-3.c: Likewise.
1837
1838         * sysdeps/posix/getaddrinfo.c: Implement handling of DCCP, UDPlite,
1839         and SCTP.
1840
1841         * nss/getent.c (ahosts_keys_int): Handle all known socket types.
1842
1843         * inet/netinet/in.h (IPPIPPROTO_DCCP, IPPROTO_UDPLITE): Define.
1844
1845         * sysdeps/unix/sysv/linux/bits/socket.h (SOCK_DCCP): Define.
1846
1847 2008-05-13  Ulrich Drepper  <drepper@redhat.com>
1848
1849         * po/lt.po: New file.  From Lituanian translation team.
1850
1851 2008-01-30  Alexandre Oliva  <aoliva@redhat.com>
1852
1853         Introduce TLS descriptors for i386 and x86_64.
1854         * include/inline-hashtab.h: New file, copied from 2005's
1855         libiberty, with fix for memory leak imported afterwards by
1856         Glauber de Oliveira Costa.
1857         * elf/tlsdeschtab.h: New file.
1858         * elf/dl-reloc.c (_dl_try_allocate_static_tls): Extract from...
1859         (_dl_allocate_static_tls): ... here.  Rearrange failure path.
1860         (CHECK_STATIC_TLS): Move to...
1861         * elf/dynamic-link.h: ... this file.
1862         (TRY_STATIC_TLS): New macro.
1863         * elf/dl-conflict.c (CHECK_STATIC_TLS, TRY_STATIC_TLS): Override.
1864         * elf/elf.h (R_386_TLS_GOTDESC, R_386_TLS_DESC_CALL,
1865         R_386_TLS_DESC): Define.
1866         (R_X86_64_PC64, R_X86_GOTOFF64, R_X86_64_GOTPC32): Merge from
1867         binutils.
1868         (R_X86_64_GOTPC32_TLSDESC, R_X86_64_TLSDESC_CALL,
1869         R_X86_64_TLSDESC): Define.
1870         (R_386_NUM, R_X86_64_NUM): Adjust.
1871         * sysdeps/i386/Makefile (sysdep-dl-routines, sysdep_routines,
1872         sysdep-rtld-routines): Add tlsdesc and dl-tlsdesc for elf subdir.
1873         (gen-as-const-headers): Add tlsdesc.sym to csu subdir.
1874         * sysdeps/i386/dl-lookupcfg.h: New file.  Introduce _dl_unmap to
1875         release tlsdesc_table.
1876         * sysdeps/i386/dl-machine.h: Include dl-tlsdesc.h.
1877         (elf_machine_type_class): Mark R_386_TLS_DESC as PLT class.
1878         (elf_machine_rel): Handle R_386_TLS_DESC.
1879         (elf_machine_rela): Likewise.
1880         (elf_machine_lazy_rel): Likewise.
1881         (elf_machine_lazy_rela): Likewise.
1882         * sysdeps/i386/dl-tls.h (struct dl_tls_index): Name it.
1883         * sysdeps/i386/dl-tlsdesc.S: New file.
1884         * sysdeps/i386/dl-tlsdesc.h: New file.
1885         * sysdeps/i386/tlsdesc.c: New file.
1886         * sysdeps/i386/tlsdesc.sym: New file.
1887         * sysdeps/i386/bits/linkmap.h (struct link_map_machine): Add
1888         tlsdesc_table.
1889         * sysdeps/x86_64/Makefile (sysdep-dl-routines, sysdep_routines,
1890         sysdep-rtld-routines): Add tlsdesc and dl-tlsdesc for elf subdir.
1891         (gen-as-const-headers): Add tlsdesc.sym to csu subdir.
1892         * sysdeps/x86_64/dl-lookupcfg.h: New file.  Introduce _dl_unmap to
1893         release tlsdesc_table.
1894         * sysdeps/x86_64/dl-machine.h: Include dl-tlsdesc.h.
1895         (elf_machine_runtime_setup): Set up lazy TLSDESC GOT entry.
1896         (elf_machine_type_class): Mark R_X86_64_TLSDESC as PLT class.
1897         (elf_machine_rel): Handle R_X86_64_TLSDESC.
1898         (elf_machine_rela): Likewise.
1899         (elf_machine_lazy_rel): Likewise.
1900         * sysdeps/x86_64/dl-tls.h (struct dl_tls_index): Name it.
1901         (__tls_get_addr): Do not declare for non-shared compiles.
1902         * sysdeps/x86_64/dl-tlsdesc.S: New file.
1903         * sysdeps/x86_64/dl-tlsdesc.h: New file.
1904         * sysdeps/x86_64/tlsdesc.c: New file.
1905         * sysdeps/x86_64/tlsdesc.sym: New file.
1906         * sysdeps/x86_64/bits/linkmap.h (struct link_map_machine): Add
1907         tlsdesc_table for both 32- and 64-bit structs.
1908
1909 2008-05-11  Ulrich Drepper  <drepper@redhat.com>
1910
1911         * elf/dl-tls.c (__tls_get_addr): Optimize by moving slow path in
1912         its own function.  This reduces the frame setup costs and more.
1913
1914 2008-02-11  Joseph Myers  <joseph@codesourcery.com>
1915
1916         [BZ #3406]
1917         * sysdeps/ieee754/flt-32/w_expf.c (o_threshold): Correct value.
1918         * math/libm-test.inc (exp_test): Test 88.72269439697265625.
1919
1920 2008-05-11  Ulrich Drepper  <drepper@redhat.com>
1921
1922         * io/openat.c (__openat_2): Also pass fd to __openat.
1923         * io/openat64.c (__openat64_2): Also pass fd to __openat64.
1924         Patch by Kristian Van Der Vliet <vanders@liqwyd.com>.
1925
1926         * string/tester.c (test_memcmp): Add a few more tests.
1927         Patch by Mats Erik Andersson <ynglingatal@comhem.se>.
1928
1929 2008-05-10  Ulrich Drepper  <drepper@redhat.com>
1930
1931         * nscd/cache.c (cache_add): Before returning with failure and this
1932         is the first use of the record, mark it as unusable.
1933         * nscd/aicache.c: Don't touch the dataset after cache_add returns
1934         reporting a failure.
1935         * nscd/grpcache.c: Likewise
1936         * nscd/hstcache.c: Likewise.
1937         * nscd/initgrcache.c: Likewise.
1938         * nscd/pwdcache.c: Likewise.
1939         * nscd/servicescache.c: Likewise.
1940
1941 2008-05-10  Roland McGrath  <roland@redhat.com>
1942
1943         [BZ #6505]
1944         * sysdeps/unix/sysv/linux/sys/user.h: Replace with #error stub.
1945
1946 2008-05-08  David S. Miller  <davem@davemloft.net>
1947
1948         * misc/truncate64.c (truncate64): Use __truncate not truncate.
1949
1950         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee751_j0l): Use __finitel.
1951         (__ieee754_y0l): Likewise.
1952         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Likewise.
1953         (__ieee754_y1l): Likewise.
1954         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Use __ldexpl.
1955         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Kill bogus prototypes for
1956         frexpl and ldexpl.  math_private.h provides them and the latter
1957         is not even used.
1958         (__log1pl): Use __frexpl.
1959
1960 2008-05-10  Ulrich Drepper  <drepper@redhat.com>
1961
1962         * include/resolv.h: Adjust __libc_res_nquery and __libc_res_nsend
1963         prototypes.
1964         * include/arpa/nameser_compat.h: Define T_UNSPEC.
1965         * nis/Versions (libnss_nis): Export _nss_nis_gethostbyname4_r.
1966         (libnss_nisplus): Export _nss_nisplus_gethostbyname4_r.
1967         * nis/nss_nis/nis-hosts.c (LINE_PARSER): Change to also handle
1968         af==AF_UNSPEC.
1969         (_nss_nis_gethostbyname4_r): New function.
1970         * nis/nss_nisplus/nisplus-hosts.c (_nss_nisplus_parse_hostent):
1971         Change to also handle af==AF_UNSPEC.
1972         (get_tablename): New function.  Use it to avoid duplication.
1973         (_nss_nisplus_gethostbyname4_r): New function.
1974         * nscd/aicache.c (addhstaiX): Use gethostbyname4_r function is
1975         available.
1976         * nss/Versions (libnss_files): Export _nss_files_gethostbyname4_r.
1977         * nss/nss.h: Define struct gaih_addrtuple.
1978         * nss/nss_files/files-hosts.c (LINE_PARSER): Change to also handle
1979         af==AF_UNSPEC.
1980         (_nss_files_gethostbyname4_r): New function.
1981         * resolv/Versions (libnss_dns): Export _nss_dns_gethostbyname4_r.
1982         * resolv/gethnmaddr.c: Adjust __libc_res_nsearch and __libc_res_nquery
1983         calls.
1984         * resolv/res_query.c (__libc_res_nquery): Take two additional
1985         parameters for second answer buffer.  Handle type=T_UNSPEC to mean
1986         look up IPv4 and IPv6.
1987         Change all callers.
1988         * resolv/res_send.c (__libc_res_nsend): Take five aditional parameters
1989         for an additional query and answer buffer.  Pass to send_vc and
1990         send_dg.
1991         (send_vc): Send possibly two requests and receive two answers.
1992         (send_dg): Likewise.
1993         * resolv/nss_dns/dns-host.c: Adjust calls to __libc_res_nsearch and
1994         __libc_res_nquery.
1995         (_nss_dns_gethostbyname4_r): New function.
1996         (gaih_getanswer_slice): Likewise.
1997         (gaih_getanswer): Likewise.
1998         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Adjust
1999         __libc_res_nquery call.
2000         * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r): Likewise.
2001         (_nss_dns_getnetbyname_r): Adjust __libc_res_nsearch call.
2002         * sysdeps/posix/getaddrinfo.c: Use gethostbyname4_r function is
2003         available.
2004
2005 2008-05-05  David S. Miller  <davem@davemloft.net>
2006
2007         * sysdeps/sparc/sparc32/Makefile: Use -mcpu=v7 for initfini.s build.
2008         * sysdeps/sparc/sparc64/Makefile: Use -mcpu=v9 for initfini.s build.
2009
2010 2007-09-14  Samuel Thibault  <samuel.thibault@ens-lyon.org>
2011
2012         Fix termios bit macros.
2013         Move *DLY definitions where they belong, in termios.h.
2014         Add *[0-3] definitions.
2015         Fixes confusion between VT and FF.
2016         * sysdeps/mach/hurd/bits/ioctls.h (NL0, NL1, TAB0, TAB1, TAB2, CR0,
2017         CR1, CR2, CR3, FF0, FF1, BS0, BS1): Undefine these at start if they
2018         are already defined to avoid collision with termios.h.
2019         (NLDLY, TABDLY, TAB3, CRDLY, VTDLY, BSDLY): Remove macros.
2020         * bits/termios.h [__USE_MISC || __USE_XOPEN] (NL0, NL1, TAB0,
2021         TAB1, TAB2, CR0, CR1, CR2, CR3, FF0, FF1, BS0, BS1): Likewise.
2022         [__USE_BSD || __USE_XOPEN] (OCRNL, ONOCR, ONLRET): New macros.
2023         [__USE_MISC || __USE_XOPEN] (NLDLY, NL0, NL1, TABDLY, TAB0, TAB1, TAB2,
2024         TAB3, CRDLY, CR0, CR1, CR2, CR3, FFDLY, FF0, FF1, BSDLY, BS0, BS1,
2025         VTDLY, VT0, VT1): New macros.
2026         [__USE_GNU] (OLCUC): Change value of macro.
2027         [__USE_XOPEN] (OFILL): New macro.
2028         [__USE_BSD] (CRTSCTS): Change value.
2029         (CRTS_IFLOW, CCTS_OFLOW): Change into compatibility macros.
2030         [__USE_BSD] (CDTRCTS, CHWFLOW): New macros.
2031         (B7200, B14400, B28800, B76800): New macros.
2032
2033 2008-05-01  David S. Miller  <davem@davemloft.net>
2034
2035         * sysdeps/unix/sysv/linux/sparc/sparc32/ucontext_i.sym: New file.
2036         * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile [$(subdir) = stdlib]:
2037         (gen-as-const-headers): Add it.
2038         * sysdeps/unix/sysv/linux/sparc/sparc32/getcontext.S: New file.
2039         * sysdeps/unix/sysv/linux/sparc/sparc32/makecontext.c: Likewise.
2040         * sysdeps/unix/sysv/linux/sparc/sparc32/setcontext.S: Likewise.
2041         * sysdeps/unix/sysv/linux/sparc/sparc32/swapcontext.S: Likewise.
2042
2043         * sysdeps/unix/sysv/linux/sparc/sparc32/syscall.S: Add support for
2044         six system call parameters.
2045         * sysdeps/unix/sysv/linux/sparc/sparc64/syscall.S: Likewise.
2046
2047 2008-04-30  Ulrich Drepper  <drepper@redhat.com>
2048
2049         * sysdeps/unix/sysv/linux/bits/resource.h: Define RUSAGE_THREAD and
2050         RUSAGE_LWP.
2051         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
2052         * sysdeps/unix/sysv/linux/alpha/bits/resource.h: Likewise.
2053
2054 2008-04-30  Jakub Jelinek  <jakub@redhat.com>
2055
2056         * stdlib/tst-setcontext.c: Include unistd.h.
2057
2058 2008-04-25  David S. Miller  <davem@davemloft.net>
2059
2060         * sysdeps/unix/sysv/linux/sparc/sparc64/semctl.c (semctl):
2061         Pass "union semun" properly in to sys_ipc, it must be passed
2062         by value, not by reference.
2063
2064 2008-04-22  Jakub Jelinek  <jakub@redhat.com>
2065
2066         * nscd/Makefile (nscd-cflags): Set back to -fpie.
2067         * nscd/nscd.h (mem_in_flight): Add attribute_tls_model_ie.
2068         * nscd/connections.c (mem_in_flight): Likewise.
2069
2070         * nscd/nscd.h (dbs): Make hidden.
2071
2072         * sysdeps/unix/sysv/linux/times.c (__times): Fix check for EFAULT.
2073         Avoid returning -1, return 0 instead.
2074
2075 2008-04-19  Ulrich Drepper  <drepper@redhat.com>
2076
2077         * resolv/res_mkquery.c (__res_nopt): Use NS_PUT16 instead of ns_put16.
2078
2079 2008-04-15  Ulrich Drepper  <drepper@redhat.com>
2080
2081         [BZ #5209]
2082         * sysdeps/unix/sysv/linux/times.c: New file.
2083
2084         [BZ #5381]
2085         * nscd/nscd.h: Define enum in_flight, mem_in_flight, and
2086         mem_in_flight_list variables.  Add new parameter to mempool_alloc
2087         prototype.
2088         * nscd/mem.c (mempool_alloc): Take additional parameter.  Initialize
2089         appropriate mem_in_flight element.
2090         (gc): Take allocations which have not yet been committed to the
2091         database into account.
2092         * nscd/cache.c (cache_add): Add new parameter to mempool_alloc call.
2093         Reset mem_in_flight before returning.
2094         * nscd/connections.c (nscd_run_worker): Initialize mem_in_flight and
2095         cue it up in mem_in_flight_list.
2096         * nscd/aicache.c: Adjust mempool_alloc call.
2097         * nscd/grpcache.c: Likewise.
2098         * nscd/hstcache.c: Likewise.
2099         * nscd/initgrcache.c: Likewise.
2100         * nscd/pwdcache.c: Likewise.
2101         * nscd/servicescache.c: Likewise.
2102         * nscd/Makefile (nscd-flags): Until ld is fixed, use -fpic instead
2103         of -fpie.
2104
2105         * nscd/connections.c (handle_request): Provide better error message
2106         in case SELinux forbids the service.
2107
2108         * version.h (VERSION): Bump to 2.8.90.
2109
2110 2008-04-17  Jakub Jelinek  <jakub@redhat.com>
2111
2112         * sysdeps/unix/sysv/linux/dl-osinfo.h: Include fcntl.h.
2113
2114 2008-04-11  Ulrich Drepper  <drepper@redhat.com>
2115
2116         * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h (__signbitl):
2117         Also use for 32-bit.
2118         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c (__nearbyintl): Use
2119         __nextafter instead of nextafter to avoid local PLT.
2120         * sysdeps/powerpc/fpu/e_sqrt.c: Avoid call to fetestexcept.
2121         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
2122
2123         * scripts/data/localplt-powerpc64-linux-gnu.data: New file.
2124
2125         * sysdeps/powerpc/fpu/fenv_libc.h: Add libm_hidden_proto for
2126         __fe_nomask_env.
2127         * sysdeps/powerpc/fpu/fe_nomask.c: Add libm_hidden_def.  Include
2128         <fenv_libc.h> instead of <fenv.h>.
2129         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c: Likewise.
2130         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c: Likewise.
2131
2132         * sysdeps/powerpc/bits/fenv.h: Make safe for C++.
2133
2134         * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h: New file.
2135         * sysdeps/powerpc/fpu/fegetexcept.c (__fegetexcept): Rename
2136         function from fegetexcept and make old name weak alias.
2137         * include/fenv.h: Declare __fegetexcept.
2138         * sysdeps/powerpc/fpu/fedisblxcpt.c: Use __fegetexcept instead of
2139         fegetexcept.
2140         * sysdeps/powerpc/fpu/feenablxcpt.c: Likewise.
2141         * sysdeps/powerpc/fpu/fraiseexcpt.c (__feraiseexcept): Avoid call
2142         to fetestexcept.
2143         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Use __frexpl
2144         instead of frexpl to avoid local PLT.
2145         * math/s_significandl.c (__significandl): Use __ilogbl instead of
2146         ilogbl to avoid local PLT.
2147         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Use __ldexpl
2148         instead of ldexpl to avoid local PLT.
2149         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (__ieee754_expl): Use
2150         __roundl not roundl to avoid local PLT.
2151         * sysdeps/ieee754/ldbl-128/e_j0l.c: Use function names which avoid
2152         local PLTs.  Use __sincosl instead of separate sinl and cosl
2153         calls.
2154         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
2155
2156         * sysdeps/unix/sysv/linux/configure.in: Bump minimal kernel
2157         version for ppc64 to 2.4.21 since without it makecontext will fail.
2158
2159         * elf/tls-macros.h [__powerpc64__] (__TLS_GET_ADDR): Define according
2160         to the ABI in use.
2161         [__powerpc64__] (TLS_LD): Use __TLS_GET_ADDR instead of
2162         .__tls_get_addr.
2163         [__powerpc64__] (TLS_GD): Likewise.
2164
2165 2007-11-20  Ryan S. Arnold  <rsa@us.ibm.com>
2166
2167         [BZ #4997]
2168         * sysdeps/powerpc/powerpc32/fpu/s_lround.S (__lround): Fixed erroneous
2169         result when x is +/-nextafter(+/-0.5,-/+1) i.e. all 1's in the
2170         mantissa.
2171         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S (__llround):
2172         Likewise.  Also account for when x is an odd number between 2^52
2173         and 2^53-1.
2174         * sysdeps/powerpc/powerpc64/fpu/s_llround.S (__llround): Likewise.
2175         * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S (__llroundf): Likewise.
2176         * math/libm-test.inc (lround_test, llround_test): Added test cases to
2177         detect aforementioned erroneous conditions.
2178
2179 2008-04-11  Jakub Jelinek  <jakub@redhat.com>
2180
2181         * configure.in: Check for -fno-section-anchors in addition to
2182         -fno-toplevel-reorder.
2183
2184 2008-04-11  Ulrich Drepper  <drepper@redhat.com>
2185
2186         * include/features.h (__GLIBC_MINOR__): Bump to 8.
2187
2188         * sysdeps/powerpc/powerpc32/fpu/s_lroundf.S: Remove duplicate comment.
2189         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llroundf.S: Likewise.
2190         * sysdeps/powerpc/powerpc32/power6/fpu/s_llroundf.S: Likewise.
2191         * sysdeps/powerpc/powerpc64/fpu/s_lrint.S: Likewise.
2192         * sysdeps/powerpc/powerpc64/fpu/s_lround.S: Likewise.
2193         * sysdeps/powerpc/powerpc64/fpu/s_lroundf.S: Likewise.
2194
2195 2008-04-11  Jakub Jelinek  <jakub@redhat.com>
2196
2197         [BZ #5443]
2198         * time/era.c: Transform __libc_setlocale_lock into rwlock.
2199         * time/alt_digit.c: Likewise.
2200         * wcsmbs/wcsmbsload.c: Likewise.
2201
2202 2008-04-10  Ulrich Drepper  <drepper@redhat.com>
2203
2204         * version.h (VERSION): Bump to 2.8.
2205
2206         * timzeone/asia: Update from tzdata2008b.
2207         * timezone/backward: Likewise.
2208         * timezone/europe: Likewise.
2209         * timezone/northamerica: Likewise.
2210         * timezone/southamerica: Likewise.
2211         * timezone/iso3166.tab: Likewise.
2212         * timezone/leapseconds: Likewise.
2213         * timezone/zone.tab: Likewise.
2214         * timezone/private.h: Update from tzcode2008a.
2215         * timezone/zdump.c: Likewise.
2216         * timezone/zic.c: Likewise.
2217
2218 2008-01-24  Steven Munroe  <sjmunroe@us.ibm.com>
2219
2220         [BZ #5741]
2221         * sysdeps/powerpc/powerpc64/dl-machine.h (PPC_DCBT, PPC_DCBF):
2222         Define additonal Data Cache Block instruction macros.
2223         (elf_machine_fixup_plt): Add dcbt for opd and plt entries.
2224         Replace dcbst with dcbf and sync with sync/isync.
2225
2226 2008-02-21  Alan Modra  <amodra@bigpond.net.au>
2227
2228         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_type_class):
2229         Always set ELF_RTYPE_CLASS_PLT.
2230         (elf_machine_lookup_noexec_p, elf_machine_lookup_noplt_p): Delete.
2231
2232 2008-04-03  Steven Munroe  <sjmunroe@us.ibm.com>
2233
2234         * sysdeps/powerpc/powerpc32/power4/hp-timing.c: New file.
2235         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: New file.
2236         * sysdeps/powerpc/powerpc64/hp-timing.h [_ARCH_PWR4] (HP_TIMING_NOW):
2237         For ISA 2.01 and later replace mftb with mfspr 268.
2238
2239 2008-02-19  Steven Munroe  <sjmunroe@us.ibm.com>
2240
2241         [BZ #5768]
2242         * sysdeps/powerpc/fpu/Makefile (libm-tests): Add test-powerpc-snan.
2243         * sysdeps/powerpc/fpu/test-powerpc-snan.c: New file.
2244
2245 2008-02-18  Steven Munroe  <sjmunroe@us.ibm.com>
2246
2247         [BZ #5768]
2248         * sysdeps/powerpc/powerpc32/fpu/s_isnan.S: New file.
2249         * sysdeps/powerpc/powerpc32/fpu/s_isnan.c: Removed.
2250         * sysdeps/powerpc/powerpc64/fpu/s_isnan.S: New file.
2251         * sysdeps/powerpc/powerpc64/fpu/s_isnan.c: Removed.
2252
2253 2008-04-10  Jakub Jelinek  <jakub@redhat.com>
2254
2255         * stdlib/tst-makecontext.c (othervar): New variable.
2256         (cf): Test sign extending the argument to long.
2257
2258 2008-03-03  Steven Munroe  <sjmunroe@us.ibm.com>
2259
2260         * sysdeps/powerpc/powerpc32/power5/fpu/s_isnan.S: New file.
2261         * sysdeps/powerpc/powerpc32/power5/fpu/s_isnanf.S: New file.
2262         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnan.S: New file.
2263         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S: New file.
2264         * sysdeps/powerpc/powerpc64/power5/fpu/s_isnan.S: New file.
2265         * sysdeps/powerpc/powerpc64/power6/fpu/s_isnan.S: New file.
2266         * sysdeps/powerpc/powerpc64/power6x/fpu/s_isnan.S: New file.
2267
2268 2008-02-22  Alan Modra  <amodra@bigpond.net.au>
2269
2270         * elf/Makefile (tests): Substitute tests-vis-yes here.
2271         (tests-vis-yes): Delete.
2272         (modules-name, modules-vis-yes): Similarly.
2273
2274 2008-02-12  Pete Eberlein  <eberlein@us.ibm.com>
2275
2276         [BZ #4407]
2277         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
2278         Preserve sign in signgamp when x is zero.
2279
2280 2007-10-26  Steven Munroe  <sjmunroe@us.ibm.com>
2281
2282         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: New File.
2283         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.c: Removed.
2284         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: New File.
2285         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.c: Removed.
2286         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: New File.
2287         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: New File.
2288
2289 2008-04-09  Ulrich Drepper  <drepper@redhat.com>
2290
2291         [BZ #4314]
2292         * sysdeps/i386/i686/memcpy.S: Optimize copying of equally aligned
2293         buffers.
2294
2295         [BZ #5209]
2296         * sysdeps/unix/sysv/syscalls.list: The times syscall doesn't have
2297         a reserved error value.
2298
2299         * stdlib/tst-makecontext.c: Change parameter to cf to negative
2300         value to check for correct sign extension.
2301
2302         [BZ #5436]
2303         * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
2304         Copy 64-bit parameter values even though this is not required in
2305         the standard.
2306
2307         * sysdeps/unix/sysv/linux/x86_64/vfork.S (__vfork): Record return
2308         PC save.
2309
2310 2008-02-14  Daniel Jacobowitz  <dan@codesourcery.com>
2311
2312         * sysdeps/unix/sysv/linux/i386/vfork.S (__vfork): Record return
2313         PC save.
2314
2315 2008-04-09  Jakub Jelinek  <jakub@redhat.com>
2316
2317         * nss_files/files-XXX.c (_nss_files_getXXent_r): Restore saved errno.
2318
2319 2008-04-09  Ulrich Drepper  <drepper@redhat.com>
2320
2321         [BZ #5998]
2322         * libio/iofwrite.c (_IO_fwrite): Return correct count if flushing
2323         in line-buffered stream failed.
2324         * libio/iofwrite_u.c (fwrite_unlocked): Likewise.
2325
2326 2008-04-08  Ulrich Drepper  <drepper@redhat.com>
2327
2328         [BZ #6024]
2329         * scripts/abi-versions.awk: If the version specified by
2330         --enable-oldest-abi is older than the first version for this
2331         architecture, use the default version.
2332
2333         * locale/programs/ld-collate.c (collate_read): Ignore script lines
2334         as well when ignoring the whole category.
2335
2336 2008-04-07  Ulrich Drepper  <drepper@redhat.com>
2337
2338         [BZ #6042]
2339         * sysdeps/unix/sysv/linux/net/ethernet.h: Add a few more
2340         ETHERTYPE_* definitions.
2341         Patch partly by Aurelien Jarno <aurelien@aurel32.net>.
2342
2343 2008-04-07  Jakub Jelinek  <jakub@redhat.com>
2344
2345         * stdlib/mbtowc.c (__no_r_state): Remove.
2346         (mbtowc): New static state variable.  Use it instead of
2347         __no_r_state.
2348         * stdlib/wctomb.c (__no_r_state): Remove extern decl.
2349         (__wctomb_state): New hidden variable.
2350         (wctomb): Use __wctomb_state instead of __no_r_state.
2351         * debug/wctomb_chk.c (__no_r_state): Remove extern decl.
2352         (__wctomb_state): New extern decl.
2353         (__wctomb_chk): Use __wctomb_state instead of __no_r_state.
2354
2355 2008-04-07  Ulrich Drepper  <drepper@redhat.com>
2356
2357         [BZ #5475]
2358         * resolv/res_init.c: Handle scope IDs in resolv.conf.
2359
2360 2008-04-07  Jakub Jelinek  <jakub@redhat.com>
2361
2362         * malloc/mtrace.pl: Use $@ instead of $* to keep perl 5.10 quiet.
2363
2364 2008-04-06  Ulrich Drepper  <drepper@redhat.com>
2365
2366         * po/nl.po: Update from translation team.
2367
2368 2008-03-31  Ulrich Drepper  <drepper@redhat.com>
2369
2370         [BZ #6007]
2371         * string/strfry.c: Handle empty strings again.
2372
2373 2008-03-30  Ulrich Drepper  <drepper@redhat.com>
2374
2375         [BZ #5443]
2376         * intl/dcigettext.c (__dcigettext): Get reader lock for locale data
2377         before looking for translation.
2378         * locale/duplocale.c: Transform __libc_setlocale_lock into rwlock.
2379         * locale/freelocale.c: Likewise.
2380         * locale/newlocale.c: Likewise.
2381         * locale/setlocale.c: Likewise.
2382         Based partially on a patch by ryo@np.css.fujitsu.com.
2383
2384 2008-03-30  Jakub Jelinek  <jakub@redhat.com>
2385
2386         * intl/dcigettext.c (_nl_find_msg): Reread nconversions after
2387         acquiring wrlock.  Do conv_tab allocation while holding lock.
2388         * intl/Makefile: Add rules to build and run tst-gettext6.
2389         * intl/tst-gettext6.c: New test.
2390         * intl/tst-gettext6.sh: New file.
2391
2392 2008-03-30  Ulrich Drepper  <drepper@redhat.com>
2393
2394         * po/nl.po: Update from translation team.
2395
2396         * sysdeps/unix/opendir.c (__alloc_dir): If allocation fails for size
2397         provided through st_blksize, try the default size before giving up.
2398
2399 2008-03-29  Ulrich Drepper  <drepper@redhat.com>
2400
2401         * stdio-common/vfprintf.c (vfprintf): Correct overflow test.
2402
2403         [BZ #5939]
2404         * sysdeps/posix/tempname.c (__gen_tempname): Correct flag selection.
2405
2406         * posix/getopt.c (_getopt_internal_r): Remove old POSIX-demanded
2407         error message.  POSIX today does not require the messages to be in
2408         a specific form.  Suggested by Jim Meyering <jim@meyering.net>.
2409
2410         [BZ #5979]
2411         * sunrpc/auth_unix.c: Unify printed strings.
2412         * sunrpc/clnt_tcp.c: Likewise.
2413         * sunrpc/clnt_udp.c: Likewise.
2414         * sunrpc/clnt_unix.c: Likewise.
2415         * sunrpc/svc_tcp.c: Likewise.
2416         * sunrpc/svc_udp.c: Likewise.
2417         * sunrpc/svc_unix.c: Likewise.
2418         * sunrpc/xdr.c: Likewise.
2419         * sunrpc/xdr_array.c: Likewise.
2420         * sunrpc/xdr_rec.c: Likewise.
2421         * sunrpc/xdr_ref.c: Likewise.
2422         * locale/programs/ld-time.c (time_finish): Unify messages.
2423         * locale/programs/locfile.c (handle_copy): Fix typo.
2424         * nscd/nscd.c (options): Fix typo.
2425
2426         [BZ #5995]
2427         * stdlib/strtod_l.c: Use correct sign for result in one more
2428         underflow case.
2429         Patch by Eric Blake <ebb9@byu.net>.
2430
2431 2008-03-27  Jakub Jelinek  <jakub@redhat.com>
2432
2433         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Add open
2434         and creat system calls.
2435         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove open system
2436         call.
2437         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Remove open and creat
2438         system calls.
2439         * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Likewise.
2440         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
2441         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
2442
2443 2008-03-27  Ulrich Drepper  <drepper@redhat.com>
2444
2445         * sysdeps/unix/sysv/linux/bits/local_lim.h: Undefined ARG_MAX if
2446         <linux/limits.h> has defined it.
2447         * sysdeps/unix/sysv/linux/sys/param.h: Define NCARGS to the legacy
2448         ARG_MAX value and prevent ARG_MAX from being defined by the kernel
2449         headers.
2450         * sysdeps/unix/sysv/linux/sysconf.c: Define legacy_ARG_MAX and use
2451         it instead of ARG_MAX.
2452
2453 2008-03-25  Jakub Jelinek  <jakub@redhat.com>
2454
2455         * posix/gai.conf: Fix comment for scope nullbits.
2456         * sysdeps/posix/getaddrinfo.c (gaiconf_init): If /bits is not present,
2457         default to 128 bits for v4 mapped addresses.
2458
2459 2008-03-07  Martin Schwidefsky  <schwidefsky@de.ibm.com>
2460
2461         * sysdeps/s390/fpu/fegetenv.c (fegetenv): Remove PTRACE_PEEKUSER
2462         ptrace call to get the ieee_instruction_pointer from the kernel.
2463         * sysdeps/s390/fpu/fesetenv.c (fesetenv): Remove PTRACE_POKEUSER
2464         ptrace call to set the ieee_instructtion_pointer.
2465         * sysdeps/unix/sysv/linux/s390/sys/user.h (struct _user_regs_struct):
2466         Add comment that ieee_instruction_pointer is always 0.
2467
2468 2008-03-09  Andreas Jaeger  <aj@suse.de>
2469
2470         [BZ #5857]
2471         * sysdeps/ieee754/dbl-64/s_rint.c (__rint): Handle j0==18.
2472         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Likewise.
2473         Patch by Mark Elliott <mark.h.elliott@lmco.com>.
2474
2475         * math/libm-test.inc (nearbyint_test): Add new test cases from #5857.
2476         (rint_test): Likewise.
2477
2478 2008-03-24  Ulrich Drepper  <drepper@redhat.com>
2479
2480         * nis/nis_call.c (nis_server_cache_search): Save errno around stat
2481         call.
2482         (__nisfind_server): Similar for open readColdStartFile call.
2483         Patch partially by Jim Meyering.
2484         * nss/nss_files/files-XXX.c (_nss_files_getXXent_r): Save errno
2485         around internal_setent call.
2486
2487         * po/vi.po: New Vietnamese translation.
2488
2489         * sysdeps/unix/sysv/linux/adjtime.c: Correctly use
2490         ADJ_OFFSET_SS_READ.
2491
2492         * sysdeps/unix/sysv/linux/bits/sched.h: Add new CLONE_* flags,
2493         remove CLONE_STOPPED.
2494
2495 2008-02-10  Jim Meyering  <meyering@redhat.com>
2496
2497         Remove useless "if" before "free":
2498         * elf/ldconfig.c (parse_conf_include): Likewise.
2499         * gmon/gmon.c (weak_alias): Likewise.
2500         * iconv/gconv_conf.c (__gconv_get_path): Likewise.
2501         * inet/rcmd.c (__validuser2_sa): Likewise.
2502         * intl/bindtextdom.c (set_binding_values): Likewise.
2503         * intl/loadmsgcat.c (_nl_load_domain, _nl_unload_domain): Likewise.
2504         * libio/genops.c (save_for_backup): Likewise.
2505         * libio/wgenops.c (save_for_wbackup): Likewise.
2506         * locale/programs/ld-collate.c (collate_read): Likewise.
2507         * locale/programs/linereader.c (get_string): Likewise.
2508         * nis/nss_compat/compat-pwd.c (give_pwd_free): Likewise.
2509         * nis/nss_compat/compat-spwd.c (give_spwd_free): Likewise.
2510         * resolv/res_debug.c (do_section): Likewise.
2511         * sunrpc/xdr_sizeof.c (x_inline, xdr_sizeof): Likewise.
2512         * sysdeps/mach/hurd/if_index.c (libc_hidden_def): Likewise.
2513         * sysdeps/posix/sprofil.c (__sprofil): Likewise.
2514         * time/lc-time-cleanup.c (_nl_cleanup_time): Likewise.
2515         * time/tzset.c (tzset_internal): Likewise.
2516
2517 2008-03-18  Jakub Jelinek  <jakub@redhat.com>
2518
2519         * sysdeps/unix/sysv/linux/dl-sysdep.h: Use __ASSEMBLER__ instead
2520         of ASSEMBLER.
2521
2522 2008-03-11  Ulrich Drepper  <drepper@redhat.com>
2523
2524         [BZ #5903]
2525         * iconv/iconv_charmap.c (charmap_conversion): Pass name of output file
2526         not stream for output file.  Open output file here.
2527         * iconv/iconv_prog.c (process_lock): Take pointer to output stream
2528         and output file name.
2529         (process_fd): Likewise.
2530         (process_file): Likewise.
2531         (main): Adjust callers of changed functions.
2532         * iconv/iconv_prog.h: Adjust prototype.
2533
2534 2008-03-09  Andreas Jaeger  <aj@suse.de>
2535
2536         [BZ #5753]
2537         * sysdeps/ia64/ieee754.h: Use protected namespace
2538         __BIG_ENDIAN/__LITTLE_ENDIAN.
2539         * sysdeps/ieee754/ieee754.h: Likewise.
2540         Patch by Aurelien Jarno <aurelien@aurel32.net>.
2541
2542 2008-03-08  Roland McGrath  <roland@frob.com>
2543
2544         * hurd/hurdsig.c (_hurd_internal_post_signal): When normal rules would
2545         ignore a signal that came from a machine exception, treat it as a
2546         fatal core-dump signal instead.
2547         Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
2548
2549         * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler):
2550         Clear DF bit in thread state's eflags.
2551         Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
2552
2553 2008-03-08  Ulrich Drepper  <drepper@redhat.com>
2554
2555         [BZ #5774]
2556         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Consume closing brace
2557         of NAN(...) sequence.
2558         * stdlib/Makefile (tests): Add tst-strtod6.
2559         * stdlib/tst-strtod6.c: New file.
2560
2561         * inet/inet6_opt.c (inet6_opt_init): Check extlen for overflow.
2562
2563         [BZ #5762]
2564         * posix/getopt.c (_getopt_internal_r): Clarify error message by
2565         putting offending option character in quotes.  Clean up error
2566         messages.
2567         * po/be.po: Adjust msgstr in translation file.
2568         * po/bg.po: Likewise.
2569         * po/ca.po: Likewise.
2570         * po/cs.po: Likewise.
2571         * po/da.po: Likewise.
2572         * po/de.po: Likewise.
2573         * po/es.po: Likewise.
2574         * po/fr.po: Likewise.
2575         * po/hr.po: Likewise.
2576         * po/ko.po: Likewise.
2577         * po/nl.po: Likewise.
2578         * po/rw.po: Likewise.
2579         * po/sk.po: Likewise.
2580         * po/sv.po: Likewise.
2581         * po/tr.po: Likewise.
2582         * po/zh_CN.po: Likewise.
2583         * po/zh_TW.po: Likewise.
2584
2585         [BZ #5760]
2586         * inet/inet6_opt.c (inet6_opt_init): Fix ip6h_len computation.
2587         Patch by Roland Bless <roland@bless.de>.
2588
2589         * sysdeps/unix/sysv/linux/dl-sysdep.c: Avoid unnecessary code for
2590         .o file.
2591         * elf/Makefile (routines): Add dl-sysdep.
2592         (elide-routines.os): Likewise.
2593
2594 2008-03-07  Ulrich Drepper  <drepper@redhat.com>
2595
2596         [BZ #5786]
2597         * elf/dl-sysdep.c: Undefine ROUND after use.
2598         * sysdeps/generic/ldsodefs.h [HAVE_DL_DISCOVER_OSVERSION]
2599         (struct rtld_global_ro): Add _dl_tls_get_addr_soft element.
2600         * elf/rtld.c (rtld_global_ro): Initialize _dl_discover_osversion.
2601         * sysdeps/unix/sysv/linux/dl-osinfo.h: Move _dl_discover_osversion
2602         to ...
2603         * sysdeps/unix/sysv/linux/dl-sysdep.c: ...here.
2604         * sysdeps/unix/sysv/linux/dl-sysdep.h: Declare _dl_discover_osversion
2605         if necessary.
2606         * sysdeps/unix/sysv/linux/sysconf.c: Handle _SC_ARG_MAX here.
2607
2608         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Add
2609         _dl_tls_get_addr_soft element.
2610         * elf/rtld.c (rtld_global_ro): Initialize _dl_tls_get_addr_soft.
2611         * elf/Versions (ld): Don't export _dl_tls_get_addr_soft.
2612         * dlfcn/dlinfo.c (dlinfo_doit): Access dl_tls_get_addr_soft through
2613         GLRO.
2614         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise.
2615         * elf/dl-tls.c (_dl_tls_get_addr_soft): Use attribute_hidden instead
2616         of internal_function.
2617
2618         * stdlib/Makefile (aux): Add tens_in_limb.
2619         * stdlib/strtod_l.c: Move _tens_in_limb definition to...
2620         * stdlib/tens_in_limb.c: ...here.  New file.
2621
2622         [BZ #5778]
2623         * sysdeps/unix/sysv/linux/pathconf.h: Declare
2624         __statfs_chown_restricted.
2625         * sysdeps/unix/sysv/linux/fpathconf.c: Call __statfs_chown_restricted
2626         for _PC_CHOWN_RESTRICTED.
2627         * sysdeps/unix/sysv/linux/pathconf.c: Likewise.
2628         Implement __statfs_chown_restricted.
2629         * sysdeps/unix/sysv/linux/bits/posix_opt.h: Change
2630         _POSIX_CHOWN_RESTRICTED value to zero.
2631         * io/tst-fchownat.c: Correctly handle _POSIX_CHOWN_RESTRICTED
2632         defined to zero.
2633
2634         * sysdeps/x86_64/rtld-memset.c: New file.
2635
2636 2008-02-26  Harsha Jagasia  <harsha.jagasia@amd.com>
2637
2638         * sysdeps/x86_64/cacheinfo.c (NOT_USED_RIGHT_NOW): Remove ifdef guards.
2639
2640         * sysdeps/x86_64/memset.S: Rewrite non-SSE code path as tuned for AMD
2641         Barcelona machine.  Make default fall through branch of
2642         __x86_64_preferred_memory_instruction check as the integer code path.
2643
2644 2007-10-15  H.J. Lu  <hongjiu.lu@intel.com>
2645
2646         * sysdeps/x86_64/cacheinfo.c
2647         (__x86_64_preferred_memory_instruction): New variable.
2648         (init_cacheinfo): Initialize __x86_64_preferred_memory_instruction.
2649
2650         * sysdeps/x86_64/memset.S: Rewrite.
2651
2652 2008-03-04  Jakub Jelinek  <jakub@redhat.com>
2653
2654         * include/stdio.h (__asprintf_chk, __dprintf_chk,
2655         __obstack_printf_chk): New prototypes.
2656         (__vasprintf_chk, __vdprintf_chk,
2657         __obstack_vprintf_chk): Likewise.
2658         Add libc_hidden_proto.
2659         * libio/obprintf.c
2660         (_IO_obstack_jumps): No longer static, add attribute_hidden.
2661         * libio/bits/stdio-ldbl.h (__asprintf_chk, __dprintf_chk,
2662         __obstack_printf_chk, __vasprintf_chk, __vdprintf_chk,
2663         __obstack_vprintf_chk): Add __LDBL_REDIR_DECL.
2664         * libio/bits/stdio2.h (__asprintf_chk, __dprintf_chk,
2665         __obstack_printf_chk, __vasprintf_chk, __vdprintf_chk,
2666         __obstack_vprintf_chk): New prototypes.
2667         (asprintf, __asprintf, dprintf, obstack_printf, vasprintf, vdprintf,
2668         obstack_vprintf): New inlines.
2669         * debug/dprintf_chk.c: New file.
2670         * debug/vdprintf_chk.c: New file.
2671         * debug/asprintf_chk.c: New file.
2672         * debug/vasprintf_chk.c: New file.
2673         * debug/obprintf_chk.c: New file.
2674         * debug/tst-chk1.c (do_test): Add asprintf and obstack_printf tests.
2675         * debug/Versions (__asprintf_chk, __dprintf_chk, __obstack_printf_chk,
2676         __vasprintf_chk, __vdprintf_chk, __obstack_vprintf_chk): Export
2677         @@GLIBC_2.8.
2678         * debug/Makefile: Build asprintf_chk, vasprintf_chk, dprintf_chk,
2679         vdprintf_chk and obprintf_chk, set CFLAGS for them.
2680         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c (__nldbl___vasprintf_chk,
2681         __nldbl___vdprintf_chk, __nldbl___obstack_vprintf_chk): Add
2682         libc_hidden_proto.
2683         * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl___vasprintf_chk,
2684         __nldbl___vdprintf_chk, __nldbl___obstack_vprintf_chk): New prototypes.
2685         * sysdeps/ieee754/ldbl-opt/Versions (__nldbl___asprintf_chk,
2686         __nldbl___vasprintf_chk, __nldbl___dprintf_chk, __nldbl___vdprintf_chk,
2687         __nldbl___obstack_printf_chk, __nldbl___obstack_vprintf_chk): Export
2688         @@GLIBC_2.8.
2689         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add asprintf_chk,
2690         vasprintf_chk, dprintf_chk, vdprintf_chk, obstack_printf_chk and
2691         obstack_vprintf_chk.
2692         * sysdeps/ieee754/ldbl-opt/nldbl-obstack_vprintf_chk.c: New file.
2693         * sysdeps/ieee754/ldbl-opt/nldbl-dprintf_chk.c: New file.
2694         * sysdeps/ieee754/ldbl-opt/nldbl-obstack_printf_chk.c: New file.
2695         * sysdeps/ieee754/ldbl-opt/nldbl-asprintf_chk.c: New file.
2696         * sysdeps/ieee754/ldbl-opt/nldbl-vdprintf_chk.c: New file.
2697         * sysdeps/ieee754/ldbl-opt/nldbl-vasprintf_chk.c: New file.
2698
2699 2008-03-04  Ulrich Drepper  <drepper@redhat.com>
2700
2701         [BZ #5779]
2702         * misc/sys/queue.h: Add STAILQ_CONCAT and TAILQ_CONCAT definitions.
2703         Patch by Roy Marples <roy@marples.name>.
2704
2705         [BZ #5736]
2706         * malloc/malloc.c: Fix typo in comment.
2707
2708         [BZ #5627]
2709         * locale/iso-639.def: Add Shuswap.
2710
2711 2008-02-25  Jakub Jelinek  <jakub@redhat.com>
2712
2713         [BZ #5790]
2714         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr2_r): Don't
2715         overwrite *h_errnop/*errnop values from getanswer_r in case of
2716         failure.
2717
2718 2008-03-03  Ulrich Drepper  <drepper@redhat.com>
2719
2720         [BZ #5818]
2721         * nscd/connections.c (dbs): Add initializers for .suggested_module.
2722         (verify_persistent_db): Remove one unnecessary test and add a new one
2723         for bad configuration.
2724         (nscd_init): Improve error reported when persistent database cannot
2725         be reused.
2726         * nscd/nscd.h (DEFAULT_SUGGESTED_MODULE): Define.
2727         * nscd/nscd_conf.c (nscd_parse_file): Provide default values for
2728         .suggested_module and .max_db_size and case config file says the
2729         values are zero.
2730         * nscd/nscd_helper.c (get_mapping): Fail if hash table module is zero.
2731
2732         [BZ #5854]
2733         * nis/ypclnt.c (yp_order): Fix handling of return value of
2734         do_ypcall_tr call.
2735         Patch by Jeff Moyer <jmoyer@redhat.com>.
2736
2737         * po/fr.po: Update from translation team.
2738
2739 2008-02-22  Andreas Jaeger  <aj@suse.de>,
2740             Carlos O'Donell <carlos@systemhalted.org>
2741
2742         [BZ #5012]
2743         * FAQ.in: Describe why glibc needs to be compiled with
2744         optimization.
2745
2746 2008-02-19  Roland McGrath  <roland@redhat.com>
2747
2748         * elf/elf.h (SHT_GNU_ATTRIBUTES): New macro.
2749
2750 2008-02-15  Ulrich Drepper  <drepper@redhat.com>
2751
2752         [BZ #5737]
2753         * resolv/netdb.h: Make NI_MAXHOST and NI_MAXSERV available when
2754         __USE_MISC is defined.
2755
2756 2008-02-10  Ulrich Drepper  <drepper@redhat.com>
2757
2758         * sysdeps/unix/sysv/linux/sys/timerfd.h: New file.
2759         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers): Add
2760         sys/timerfd.h.
2761         * sysdeps/unix/sysv/linux/syscalls.list: Add timerfd_create,
2762         timerfd_gettime, timerfd_settime.
2763         * sysdeps/unix/sysv/linux/Versions: Add timerfd_create,
2764         timerfd_gettime, timerfd_settime for GLIBC_2.8.
2765
2766 2008-02-08  Roland McGrath  <roland@redhat.com>
2767
2768         * elf/elf.h (NT_PPC_SPE): New macro.
2769
2770 2008-02-06  Roland McGrath  <roland@redhat.com>
2771
2772         * Makerules ($(common-objpfx)sysd-rules):
2773         Depend on $(sysdep-makeconfigs).
2774
2775 2008-01-31  Roland McGrath  <roland@redhat.com>
2776
2777         [BZ #5442]
2778         * configure.in: Use -print-file-name if it yields a directory,
2779         for each of include and include-fixed.
2780         * configure: Regenerated.
2781
2782         * Makeconfig (sysd-rules-targets): New variable.
2783         * sysdeps/unix/make-syscalls.sh: Use it in the rules emitted.
2784         * sysdeps/unix/Makefile (omit-deps): Append variants for each target.
2785
2786 2008-01-30  Roland McGrath  <roland@redhat.com>
2787
2788         * manual/libc.texinfo: Update back-cover text.
2789
2790         * elf/elf.h (NT_386_TLS): New macro.
2791
2792 2008-01-29  Roland McGrath  <roland@redhat.com>
2793
2794         * Makeconfig (sysd-rules-patterns): New variable.
2795         * Makerules ($(common-objpfx)sysd-rules): Drive the loop from that.
2796         (check-inhibit-asm): New canned sequence, replaces ...
2797         (open-check-inhibit-asm, close-check-inhibit-asm): ... these, removed.
2798         * elf/rtld-Rules ($(objpfx)rtld-%.os): Use $(rtld-CPPFLAGS) in commands.
2799         (rtld-CPPFLAGS): Renamed from CPPFLAGS-rtld.
2800         (CFLAGS-rtld): Variable removed.
2801
2802 2008-01-24  Roland McGrath  <roland@redhat.com>
2803
2804         * configure.in: Let configure fragments set base_os.
2805         * configure: Regenerated.
2806
2807 2008-01-22  Ulrich Drepper  <drepper@redhat.com>
2808
2809         * po/ko.po: Update from translation team.
2810
2811 2008-01-12  H.J. Lu  <hongjiu.lu@intel.com>
2812
2813         * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Use short for fnstsw.
2814
2815 2008-01-12  Andreas Jaeger  <aj@suse.de>
2816
2817         [BZ #5040]
2818         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h (enum EPOLL_EVENTS):
2819         Add EPOLLRDHUP.
2820
2821 2008-01-20  Samuel Thibault  <samuel.thibault@ens-lyon.org>
2822
2823         * hurd/hurdsock.c (_hurd_socket_server): Return the standard
2824         error EAFNOSUPPORT rather than non-standard EPFNOSUPPORT.
2825         * sunrpc/bindrsvprt.c (bindresvport): Likewise.
2826
2827 2007-10-23  Alexandre Oliva  <aoliva@redhat.com>
2828
2829         * include/link.h (FORCED_DYNAMIC_TLS_OFFSET): Define.
2830         * elf/dl-close.c (_dl_close): Check for it.
2831         * elf/dl-reloc.c (CHECK_STATIC_TLS): Likewise.
2832         (_dl_allocate_static_tls): Likewise.
2833         * elf/dl-tls.c (_dl_allocate_tls_init): Likewise.
2834         (__tls_get_addr): Protect from race conditions in setting l_tls_offset
2835         to it.
2836         * elf/tst-tls16.c: New file.
2837         * elf/tst-tlsmod16a.c: New file.
2838         * elf/tst-tlsmod16b.c: New file.
2839         * elf/Makefile: Add rules to build and run tst-tls16.
2840
2841 2008-01-16  Ulrich Drepper  <drepper@redhat.com>
2842
2843         [BZ #5628]
2844         * bits/shm.h: Fix comment describing shmid_ds.
2845         * sysdeps/gnu/bits/shm.h: Likewise.
2846         * sysdeps/unix/sysv/linux/alpha/bits/shm.h: Likewise.
2847         * sysdeps/unix/sysv/linux/bits/shm.h: Likewise.
2848         * sysdeps/unix/sysv/linux/ia64/bits/shm.h: Likewise.
2849         * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
2850         * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
2851         * sysdeps/unix/sysv/linux/sh/bits/shm.h: Likewise.
2852         * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
2853         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Likewise.
2854         Patch by Hareesh Nagarajan <hareesh.nagarajan@gmail.com>.
2855
2856         [BZ #5607]
2857         * conform/data/fcntl.h-data: Fix posix_fadvise and posix_fallocate
2858         prototypes.
2859         * conform/data/limits.h-data: Adjust limits changed in v6 and add
2860         additional suffixes.
2861         * conform/data/mqueue.h-data: Fix typo in mq_curmsgs entry.
2862         Add optional functions mq_timedreceive and mq_timedsend.
2863         * conform/data/netdb.h-data: Add more AI_* and EAI_* constants.
2864         * conform/data/pthread.h-data: Fix prototype of
2865         pthread_condattr_setclock.  pthread_sigmask is not required in v6.
2866         * conform/data/semaphore.h-data: Allow time.h definitions.
2867         * conform/data/signal.h-data: Likewise.
2868         * conform/data/stdio.h-data: getw and putw are not required in v6.
2869         * conform/data/stdlib.h-data: Change setstate prototype.
2870         * conform/data/string.h-data: Fix strerror_r prototype.
2871         * conform/data/time.h-data: Fix typo in TIMER_ABSTIME definition.
2872         * conform/data/unistd.h-data: pthread_atfork not required in v6.
2873         Fix readlink prototype.
2874         * conform/data/netinet/in.h-data: Add const to in6addr_any and
2875         in6addr_loopback.
2876         * inet/netinet/in.h: Cleanup namespace.
2877         * posix/regex.h: Likewise.
2878         * resolv/netdb.h: Likewise.
2879         * sysdeps/unix/sysv/linux/bits/in.h: Likewise.
2880         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
2881         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
2882         * sysdeps/posix/getaddrinfo.c (default_labels): Adjust for change
2883         of names of in in6_addr.
2884         (default_precedence): Likewise.
2885         * sysdeps/unix/sysv/linux/cmsg_nxthdr.c: Include <stddef.h> for
2886         NULL definition.
2887
2888 2008-01-15  Ulrich Drepper  <drepper@redhat.com>
2889
2890         * conform/data/fmtmsg.h-data: Add missing allows.
2891         * conform/data/ftw.h-data: Likewise.
2892         * conform/data/inttypes.h-data: Likewise.
2893         * conform/data/math.h-data: Likewise.
2894         * conform/data/signal.h-data: Likewise.
2895         * conform/data/net/if.h-data: Likewise.
2896         * conform/data/netinet/in.h-data: Likewise.
2897         * conform/data/sys/socket.h-data: Likewise.
2898
2899         [BZ #5614]
2900         * string/bits/string2.h (__strtok_r_1c): Always update *__NEXTP.
2901         (__strtok_r): Simplify.
2902         * string/tester.c (test_strtok_r): Add test case for futile search
2903         with single-character seach string.
2904
2905 2008-01-12  Ulrich Drepper  <drepper@redhat.com>
2906
2907         * po/ko.po: Update from translation team.
2908
2909 2008-01-11  Andreas Jaeger  <aj@suse.de>
2910
2911         [BZ #5600]
2912         * sysdeps/unix/sysv/linux/sys/signalfd.h (struct
2913         signalfd_siginfo): Use 64-bit type for ssi_ptr to sync with Linux
2914         kernel header.
2915
2916 2008-01-10  Ulrich Drepper  <drepper@redhat.com>
2917
2918         * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Store result of
2919         native interface lookup in all the relevant places.
2920
2921 2008-01-10  Jakub Jelinek  <jakub@redhat.com>
2922             Ulrich Drepper  <drepper@redhat.com>
2923
2924         * sysdeps/posix/getaddrinfo.c (sort_results): Remove service_order
2925         field.  Use sockaddr_in6 for source_addr.
2926         (get_scope): Change type of parameter to sockaddr_in6.  Adjust.
2927         (match_prefix): Likewise.
2928         (get_label): Likewise.
2929         (get_precedence): Likewise.
2930         (rfc3484_sort): Change to use indirect access to results array.
2931         Adjust to use of sockaddr_in6.  Replace service_order test with
2932         simple index comparison.
2933         (getaddrinfo): Define order array.  Initialize it.  Don't initialize
2934         service_order field.  Adjust qsort_t calls.  Access sorted result
2935         array indirectly through order array.
2936         * posix/tst-rfc3484.c: Adjust for change of rfc3484_sort.
2937         * posix/tst-rfc3484-2.c: Likewise.
2938         * posix/tst-rfc3484-3.c: Likewise.
2939
2940 2008-01-09  Ulrich Drepper  <drepper@redhat.com>
2941
2942         [BZ #5541]
2943         * sunrpc/rpc_thread.c (__rpc_thread_destroy): Also free xports and
2944         pollfd structures.
2945         Patch by André Cruz.
2946
2947         [BZ #5545]
2948         * sunrpc/clnt_perr.c (clnt_sperror): Don't use fixed size buffer.
2949         (clnt_spcreateerror): Likewise.
2950
2951         [BZ #5553]
2952         * malloc/malloc.c (public_mALLOc): Set ar_ptr when trying main_arena.
2953         (public_mEMALIGn): Likewise.
2954         Patch mostly by Daniel Jacobowitz.
2955
2956 2008-01-09  Jakub Jelinek  <jakub@redhat.com>
2957
2958         * sysdeps/unix/sysv/linux/i386/makecontext.S (__makecontext): Avoid
2959         clobbering memory at or above uc_stack.ss_sp + uc_stack.ss_size.
2960         * stdlib/Makefile: Add rules to build and run tst-makecontext2.
2961         * stdlib/tst-makecontext2.c: New test.
2962
2963 2008-01-08  Jakub Jelinek  <jakub@redhat.com>
2964
2965         * iconv/loop.c (UPDATE_PARAMS): Define to empty statement if not
2966         defined.
2967         (REINIT_PARAMS): Likewise.  Undefine before end of file.
2968         (STANDARD_TO_LOOP_ERR_HANDLER): Use UPDATE_PARAMS before calling
2969         transliteration hooks and REINIT_PARAMS afterwards.
2970         * iconvdata/iso-2022-jp.c (BODY): Use a separate variable for
2971         status.
2972         (REINIT_PARAMS): Define.
2973         * iconvdata/ibm1364.c (REINIT_PARAMS): Likewise.
2974         * iconvdata/ibm930.c (REINIT_PARAMS): Likewise.
2975         * iconvdata/ibm933.c (REINIT_PARAMS): Likewise.
2976         * iconvdata/ibm935.c (REINIT_PARAMS): Likewise.
2977         * iconvdata/ibm937.c (REINIT_PARAMS): Likewise.
2978         * iconvdata/ibm939.c (REINIT_PARAMS): Likewise.
2979         * iconvdata/iso-2022-cn.c (REINIT_PARAMS): Likewise.
2980         * iconvdata/iso-2022-cn-ext.c (REINIT_PARAMS): Likewise.
2981         * iconvdata/iso-2022-jp-3.c (REINIT_PARAMS): Likewise.
2982         * iconvdata/iso-2022-kr.c (REINIT_PARAMS): Likewise.
2983         * iconvdata/Makefile: Add rules to build and run tst-iconv7.c.
2984         * iconvdata/tst-iconv7.c: New test.
2985
2986 2008-01-07  Ulrich Drepper  <drepper@redhat.com>
2987
2988         * libio/stdio.h (vscanf): Fix definition for loser compilers.
2989
2990 2008-01-05  Jakub Jelinek  <jakub@redhat.com>
2991
2992         [BZ #5112]
2993         * nscd/connections.c (restart): Fix condition.
2994
2995 2008-01-03  Jakub Jelinek  <jakub@redhat.com>
2996
2997         * ctype/ctype.h (__ctype_b_loc, __ctype_tolower_loc,
2998         __ctype_toupper_loc): Add __THROW.
2999
3000 2008-01-02  Ulrich Drepper  <drepper@redhat.com>
3001
3002         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Fix
3003         recognition of interface family.
3004
3005         * posix/getconf.c: Update copyright year.
3006         * nss/getent.c: Likewise.
3007         * iconv/iconvconfig.c: Likewise.
3008         * iconv/iconv_prog.c: Likewise.
3009         * elf/ldconfig.c: Likewise.
3010         * catgets/gencat.c: Likewise.
3011         * csu/version.c: Likewise.
3012         * elf/ldd.bash.in: Likewise.
3013         * elf/sprof.c (print_version): Likewise.
3014         * locale/programs/locale.c: Likewise.
3015         * locale/programs/localedef.c: Likewise.
3016         * nscd/nscd.c (print_version): Likewise.
3017         * debug/xtrace.sh: Likewise.
3018         * malloc/memusage.sh: Likewise.
3019         * malloc/mtrace.pl: Likewise.
3020         * debug/catchsegv.sh: Likewise.
3021
3022 2007-12-26  Ulrich Drepper  <drepper@redhat.com>
3023
3024         * nss/nsswitch.c (__nss_lookup): Actually use alternative name in
3025         second lookup.
3026
3027 2007-12-23  Ulrich Drepper  <drepper@redhat.com>
3028
3029         * sysdeps/x86_64/cacheinfo.c (intel_02_known): New entry 0x3f.
3030         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
3031
3032 2007-12-17  Roland McGrath  <roland@redhat.com>
3033
3034         * inet/ether_line.c (ether_line): Remove unused variable.
3035
3036 2007-12-17  Samuel Thibault  <samuel.thibault@ens-lyon.org>
3037
3038         * login/forkpty.c (forkpty): Add const qualifier to parameters termp
3039         and winp.
3040         * login/openpty.c (openpty): Likewise.
3041         * login/pty.h (openpty, forkpty): Likewise.
3042         * manual/terminal.texi (openpty, forkpty): Likewise.
3043
3044 2007-12-17  Ulrich Drepper  <drepper@redhat.com>
3045
3046         * malloc/malloc.c (public_cALLOc): For arenas other than
3047         main_arena, count all bytes inside the mprotect_size range of the
3048         heap as uninitialized.
3049
3050 2007-12-16  Ulrich Drepper  <drepper@redhat.com>
3051
3052         * elf/tst-execstack.c (do_test): Don't fail if SELinux forbids
3053         executable stacks.
3054
3055         * malloc/malloc.c (public_mTRIm): Iterate over all arenas and call
3056         mTRIm for all of them.
3057         (mTRIm): Additionally iterate over all free blocks and use madvise
3058         to free memory for all those blocks which contain at least one
3059         memory page.
3060         * malloc/tst-trim1.c: New file.
3061         * malloc/Makefile (tests): Add tst-trim1.
3062
3063         * malloc/malloc.c (do_check_malloc_state): Minimal cleanups.
3064
3065 2007-12-14  Ulrich Drepper  <drepper@redhat.com>
3066
3067         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INTERNAL_SYSCALL_ERROR_P):
3068         First cast argument to long
3069         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_gettimeofday):
3070         Return long.
3071         (__vdso_clock_gettime): Likewise.
3072         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Functions
3073         return long.
3074
3075 2007-12-13  Ulrich Drepper  <drepper@redhat.com>
3076
3077         * locale/nl_langinfo.c (nl_langinfo): Just call __nl_langinfo_l.
3078         * locale/nl_langinfo_l.c: Real implementation, copied from
3079         nl_langinfo.c.
3080         * include/langinfo.h: Add libc_hidden_proto for __nl_langinfo_l.
3081
3082 2007-12-01  Jim Meyering  <meyering@redhat.com>
3083
3084         * posix/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
3085         that would inhibit utf8-optimization of a regexp containing line-
3086         or buffer-anchors, e.g., `^', `$'.
3087
3088 2007-12-12  Ulrich Drepper  <drepper@redhat.com>
3089
3090         * time/bug-getdate1.c (do_test): Don't use century values which
3091         aren't valid on 32-bit systems.
3092
3093 2007-12-12  Jakub Jelinek  <jakub@redhat.com>
3094
3095         * sysdeps/i386/i486/bits/string.h (memmove): Define as macro.
3096         (memmove): Rename to __memmove_g, with __asm__ ("memmove").
3097         * sysdeps/s390/bits/string.h (__strlen_g, __strcpy_g, __strncpy_g,
3098         __strcat_g, __strncat_g): Add __asm__.
3099
3100 2007-12-12  Ulrich Drepper  <drepper@redhat.com>
3101
3102         [BZ #5477]
3103         * io/fchmodat.c: Fix typo in stub_warning use.
3104         Patch by Petr Salinger.
3105
3106 2007-12-11  Ulrich Drepper  <drepper@redhat.com>
3107
3108         * iconvdata/hp-thai8.c: New file.
3109         * iconvdata/Makefile: Add rules for hp-thai8.c.
3110         * iconvdata/tst-tables.sh: Add entry for HP-THAI8.
3111         * iconvdata/gconv-modules: Likewise.
3112
3113         [BZ #5464]
3114         * iconvdata/hp-greek8.c: New file.
3115         * iconvdata/Makefile: Add rules for hp-greek8.c.
3116         * iconvdata/tst-tables.sh: Add entry for HP-GREEK8.
3117         * iconvdata/gconv-modules: Likewise.
3118
3119         [BZ #5463]
3120         * iconvdata/hp-turkish8.c: New file.
3121         * iconvdata/Makefile: Add rules for hp-turkish8.c.
3122         * iconvdata/tst-tables.sh: Add entry for HP-TURKISH8.
3123         * iconvdata/gconv-modules: Likewise.
3124
3125         * malloc/arena.c (grow_heap): Split out code to shrink heap into...
3126         (shrink_heap): ... this new function.
3127         (heap_trim): Call shrink_heap instead of grow_heap.
3128
3129         * malloc/malloc.c (_int_malloc): sYSMALLOc might fail, in this
3130         case don't call alloc_perturb.
3131
3132 2007-12-10  Ulrich Drepper  <drepper@redhat.com>
3133
3134         * sysdeps/unix/sysv/linux/adjtime.c: Use ADJ_OFFSET_SS_READ if
3135         possible.
3136         * sysdeps/unix/sysv/linux/kernel-features.h
3137         (__ASSUME_ADJ_OFFSET_SS_READ): Define for 2.6.24.
3138         * sysdeps/unix/sysv/linux/sys/timex.h (ADJ_OFFSET_SS_READ): Define.
3139
3140 2007-12-08  Ulrich Drepper  <drepper@redhat.com>
3141
3142         [BZ #5424]
3143         * stdio-common/vfprintf.c: Do not overflow when adding to done.
3144         * stdio-common/Makefile (tests): Add bug22.
3145         * stdio-common/bug22.c: New file.
3146
3147         [BZ #5451]
3148         * time/getdate.c: Fix filling in default values.
3149         * time/bug-getdate1.c: New file.
3150         * time/Makefile: Add rules to build and run bug-getdate1.
3151
3152         * iconvdata/ebcdic-is-friss.c: Use 8bit-gap instead of 8bit-generic.
3153         * iconvdata/ebcdic-es.c: Likewise.
3154         * iconvdata/ebcdic-es-a.c: Likewise.
3155         * iconvdata/ebcdic-uk.c: Likewise.
3156         * iconvdata/iso8859-16.c: Likewise.
3157         * iconvdata/viscii.c: Likewise.
3158         * iconvdata/iso8859-9e.c: Likewise.
3159         * iconvdata/Makefile: Adjust appropriately.
3160
3161         [BZ #5428]
3162         * wcsmbs/wchar.h: Unconditionally undefine __need_mbstate and
3163         __need_wint_t.
3164
3165 2007-12-07  Ulrich Drepper  <drepper@redhat.com>
3166
3167         [BZ #5427]
3168         * iconvdata/hp-roman9.c: New file.
3169         * iconvdata/Makefile: Add rules for hp-roman9.c.
3170         * iconvdata/tst-tables.sh: Add HP-ROMAN9.
3171         * iconvdata/gconv-modules: Likewise.
3172
3173         * iconvdata/hp-roman8.c: Use 8bit-gap instead of 8bit-generic.
3174         * iconvdata/Makefile: Adjust appropriately.
3175
3176         [BZ #5441]
3177         * stdio-common/vfscanf.c (_IO_vfwscanf): Don't free ptrs_to_free
3178         structure, it's allocated with alloca.
3179         * stdio-common/Makefile (tests): Add bug21.
3180         * stdio-common/bug21.c: New file.
3181
3182 2007-12-06  Aurelien Jarno  <aurelien@aurel32.net>
3183
3184         [BZ #5452]
3185         * sysdeps/unix/sysv/linux/bits/sched.h: Use __extension__
3186         keyword for gcc's braced-groups.
3187
3188 2007-12-07  Ulrich Drepper  <drepper@redhat.com>
3189
3190         [BZ #5454]
3191         * inet/ether_line.c: Strip hostname of whitespaces.
3192         * inet/Makefile (tests): Add tst-ether_line.
3193         * inet/tst-ether_line.c: New file.
3194
3195 2007-12-03  Ulrich Drepper  <drepper@redhat.com>
3196
3197         [BZ #5439]
3198         * sysdeps/unix/sysv/linux/sys/signalfd.h: Fix use of __nonnull.
3199
3200         [BZ #5435]
3201         * sysdeps/unix/sysv/linux/i386/makecontext.S: Align stack.
3202
3203         * stdlib/tst-setcontext.c: Catch the case where the links gets
3204         messed up and we do not reach main again.
3205
3206         * po/ca.po: Update from translation team.
3207
3208 2007-11-26  Ulrich Drepper  <drepper@redhat.com>
3209
3210         * posix/unistd.h: Declare fsync also for __USE_XOPEN2K.
3211         * posix/regex.h (REG_ENOSYS): Likewise.
3212         * wcsmbs/wchar.h: Define __need_file also for __USE_XOPEN2K.
3213
3214 2007-11-25  Ulrich Drepper  <drepper@redhat.com>
3215
3216         * nscd/nscd.h (MAX_STACK_USE): Define.
3217         * nscd/mem.c (MAX_STACK_USE): Remove definition here.
3218         (gc): Initialize stack_used based on allocation in prune_cache.
3219         * nscd/cache.c (prune_cache): Use heap for mark array if necessary.
3220         Clear array before use.
3221
3222         * nscd/aicache.c (addhstaiX): Update statistics counter in case
3223         memory allocation failed.
3224         * nscd/hstcache.c (cache_addhst): Likewise.
3225         * nscd/grpcache.c (cache_addgr): Likewise.
3226         * nscd/servicescache.c (cache_addserv): Likewise.
3227         * nscd/pwdcache.c (cache_addpw): Likewise.
3228         * nscd/initgrcache.c (addinitgroupsX): Likewise.
3229
3230 2007-11-23  Ulrich Drepper  <drepper@redhat.com>
3231
3232         * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Add open
3233         and creat system calls.
3234
3235         * sysdeps/unix/sysv/linux/check_native.c: Include <asm/types.h>.
3236
3237 2007-11-23  Martin Schwidefsky  <schwidefsky@de.ibm.com>
3238
3239         * sysdeps/unix/sysv/linux/Makefile [subdir=inet] (sysdep_headers):
3240         Add netiucv/iucv.h.
3241         * sysdeps/unix/sysv/linux/netiucv/iucv.h: New file.
3242         * sysdeps/unix/sysv/linux/opensock.c (__opensock): Add AF_IUCV
3243         protocol.
3244         * sysdeps/unix/sysv/linux/sa_len.c (__libc_sa_len): Likewise.
3245         * sysdeps/unix/sysv/linux/s390/opensock.c: New file.
3246         * sysdeps/unix/sysv/linux/s390/sa_len.c: New file.
3247
3248 2007-11-22  Martin Schwidefsky  <schwidefsky@de.ibm.com>
3249
3250         * sysdeps/s390/bits/string.h (strlen, strcpy, strncpy, strcat,
3251         strncat): Define as macros to avoid compile errors.
3252
3253         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list:  Add open and
3254         creat entries.
3255
3256 2007-11-22  Ulrich Drepper  <drepper@redhat.com>
3257
3258         [BZ #5382]
3259         * nscd/nscd.h (NSCD_THREAD_STACKSIZE): Define.
3260         * nscd/connections.c (start_threads): Use NSCD_THREAD_STACKSIZE.
3261         * nscd/mem.c (gc): Don't allocate arrays on the stack if they can
3262         overflow it.
3263         Partially based on a patch by Petr Baudis <pasky@suse.cz>.
3264
3265         * sysdeps/unix/sysv/linux/nscd_setup_thread.c (setup_thread):
3266         Return zero in case the thread library is not NPTL.
3267
3268         [BZ #5375]
3269         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix locking when
3270         initializing interface list.
3271
3272         [BZ #5378]
3273         * nis/nss_compat/compat-initgroups.c (getgrent_next_nss): Don't
3274         use result of nss_getgrgid_r if nothing was found.  For other
3275         error return with a failure.
3276         Partially based on a patch by Petr Baudis <pasky@suse.cz>.
3277
3278         * locale/programs/ld-collate.c (collate_read): Fix loop to match
3279         macro name.
3280
3281 2007-11-19  Ulrich Drepper  <drepper@redhat.com>
3282
3283         * sysdeps/posix/getaddrinfo.c (defaults_scopes, scopes): New variables.
3284         (get_scope): For IPv4 scope, use scopes table.
3285         (fini): Free scopes table if necessary.
3286         (free_scopelist): New function.
3287         (scopecmp): New function.
3288         (gaiconf_init): Also handle scopev4 entries.
3289         * posix/tst-rfc3484.c (do_test): Initialize scopes.
3290         * posix/tst-rfc3484-2.c (do_test): Likewise.
3291         * posix/gai.conf: Document scopev4 defaults.
3292         * posix/Makefile (tests): Add tst-rfc3484-3.
3293         * posix/tst-rfc3484-3.c: New file.
3294
3295         * sysdeps/posix/getaddrinfo.c (default_labels): Describe entry for
3296         Teredo tunnels.
3297         * posix/gai.conf: Update for current default tables.
3298
3299 2007-11-19  Ulrich Drepper  <drepper@redhat.com>
3300
3301         * po/tr.po: Update from translation team.
3302
3303 2007-11-18  Roland McGrath  <roland@frob.com>
3304
3305         * manual/arith.texi (Remainder Functions): Spelling fix.
3306         From Shaun Silk <genix@mysoul.com.au>.
3307
3308         * sysdeps/mach/hurd/bits/fcntl.h (O_CLOEXEC): Fix value.
3309
3310 2007-11-17  Ulrich Drepper  <drepper@redhat.com>
3311
3312         * po/zh_CN.po: Update from translation team.
3313
3314         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
3315         Add sys/signalfd.h and sys/eventfd.h.
3316
3317 2007-11-15  Bruno Haible  <bruno@clisp.org>
3318
3319         [BZ #5346]
3320         * intl/dcigettext.c (struct known_translation_t): Turn msgid into a
3321         union.
3322         (transcmp): Use the appropriate part of s1->msgid and s2->msgid.
3323         (DCIGETTEXT): Change the allocation of the 'search' variable so that
3324         it needs only fixed stack space. Delay the initialization of
3325         msgid_len until it is needed.
3326
3327 2007-11-15  Andreas Jaeger  <aj@suse.de>
3328
3329         * sysdeps/ieee754/dbl-64/sincos.tbl: Fix size of union.
3330         Reported by Christoph Quirin Lauter <christoph.lauter@ens-lyon.fr>.
3331
3332 2007-11-15  Ulrich Drepper  <drepper@redhat.com>
3333
3334         * po/ko.po: Update from translation team.
3335
3336 2007-11-14  Ulrich Drepper  <drepper@redhat.com>
3337
3338         * sysdeps/unix/sysv/linux/check_native.c (__check_native): Simplify
3339         significantly.  The device type is also part of the ifinfomsg data.
3340
3341         * po/sv.po: Update from translation team.
3342         * po/nl.po: Likewise.
3343
3344         * nscd/cache.c (prune_cache): If cache is empty, instruct caller
3345         to wake up in 24 hours.
3346
3347         * nscd/gai.c (__ioctl): Define.  Include check_native.c.
3348
3349 2007-11-13  Ulrich Drepper  <drepper@redhat.com>
3350
3351         * po/cs.po: Update from translation team.
3352         * po/pl.po: Likewise.
3353
3354         * include/ifaddrs.h: Remove in6ai_temporary.
3355         (struct in6addrinfo): Add index element.
3356         Declare __check_native.
3357         * inet/Makefile (aux): Add check_native.
3358         * sysdeps/unix/sysv/linux/check_native.c: New file.
3359         * sysdeps/unix/sysv/linux/check_pf.c: No need to recognize
3360         IFA_F_TEMPORARY.  Pass back ifa_index.
3361         * sysdeps/posix/getaddrinfo.c: Remove netlink compatibility code.
3362         (rfc3484_sort): Add new parameter.  Implement rule 7 correctly:
3363         call __check_native if necessary.
3364         (getaddrinfo): Fill in index field.  Use qsort_r instead of qsort
3365         to sort addresses.  Pass information about the results.
3366         * posix/tst-rfc3484.c: Adjust for addition of index field and change
3367         of rfc3484_sort interface.
3368         * posix/tst-rfc3484-2.c: Likewise.
3369
3370         * stdlib/stdlib.h: Define __compar_d_fn_t.  Declare qsort_r.
3371         * include/stdlib.h: Add hidden_proto for qsort_t and adjust protoype
3372         for _quicksort.
3373         * stdlib/msort.c (qsort): Now a wrapper around qsort_r.
3374         (qsort_r): Renamed from qsort.  Take additional parameter and pass it
3375         on as third parameter to compare function and _quicksort.
3376         * stdlib/qsort.c (_quicksort): Take additional parameter and pass on
3377         to the compare function.
3378         * stdlib/Versions [libc] (GLIBC_2.8): Add qsort_r.
3379         * Versions.def: Add GLIBC_2.8 for libc.
3380
3381         * posix/tst-rfc3484.c: Adjust for addition of prefixlen field.
3382         * posix/tst-rfc3484-2.c: Likewise.
3383
3384         * include/kernel-features.h: Moved to...
3385         * sysdeps/mach/hurd/kernel-features.h: ...here.
3386
3387 2007-09-13  H.J. Lu  <hongjiu.lu@intel.com>
3388
3389         * sysdeps/i386/i586/memcpy_chk.S: New file.
3390         * sysdeps/i386/i586/mempcpy_chk.S: Likewise.
3391         * sysdeps/i386/i586/memset_chk.S: Likewise.
3392
3393 2007-11-12  Ulrich Drepper  <drepper@redhat.com>
3394
3395         * include/ifaddrs.c (struct in6addrinfo): Add prefixlen field.
3396         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Always return
3397         list of interfaces.  Also store prefix length.
3398         * sysdeps/posix/getaddrinfo.c (sort_result): Add prefixlen element.
3399         (rfc3484_sort): In rule 9, for IPv4 addresses count only matching
3400         prefix if source and destination address are in the same subnet.
3401         (getaddrinfo): Always call __check_pf.  Fill in prefixlen field.
3402         Always look for matching record in in6ai list.
3403         Correct source_addr_len value for IPv6->IPv4 converted records.
3404
3405 2007-11-11  Roland McGrath  <roland@frob.com>
3406
3407         * include/kernel-features.h: New file.
3408
3409 2007-11-10  Ulrich Drepper  <drepper@redhat.com>
3410
3411         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Avoid unnecessary
3412         complications for 64-bit platforms.
3413
3414         * sysdeps/unix/sysv/linux/open64.c: Move __open64_2 implementation to..
3415         * sysdeps/unix/sysv/linux/open64_2.c: ...here.  New file.
3416         * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines): Add
3417         open64_2.
3418         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Add open and creat
3419         entries.
3420         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
3421         * sysdeps/wordsize-64/alphasort.c: New file.
3422         * sysdeps/wordsize-64/alphasort64.c: New file.
3423         * sysdeps/wordsize-64/fseeko.c: New file.
3424         * sysdeps/wordsize-64/fseeko64.c: New file.
3425         * sysdeps/wordsize-64/ftello.c: New file.
3426         * sysdeps/wordsize-64/ftello64.c: New file.
3427         * sysdeps/wordsize-64/ftw.c: New file.
3428         * sysdeps/wordsize-64/ftw64.c: New file.
3429         * sysdeps/wordsize-64/iofgetpos.c: New file.
3430         * sysdeps/wordsize-64/iofgetpos64.c: New file.
3431         * sysdeps/wordsize-64/iofopen.c: New file.
3432         * sysdeps/wordsize-64/iofopen64.c: New file.
3433         * sysdeps/wordsize-64/iofsetpos.c: New file.
3434         * sysdeps/wordsize-64/iofsetpos64.c: New file.
3435         * sysdeps/wordsize-64/lockf.c: New file.
3436         * sysdeps/wordsize-64/lockf64.c: New file.
3437         * sysdeps/wordsize-64/mkostemp.c: New file.
3438         * sysdeps/wordsize-64/mkostemp64.c: New file.
3439         * sysdeps/wordsize-64/mkstemp.c: New file.
3440         * sysdeps/wordsize-64/mkstemp64.c: New file.
3441         * sysdeps/wordsize-64/scandir.c: New file.
3442         * sysdeps/wordsize-64/scandir64.c: New file.
3443         * sysdeps/wordsize-64/tmpfile.c: New file.
3444         * sysdeps/wordsize-64/tmpfile64.c: New file.
3445         * sysdeps/wordsize-64/versionsort.c: New file.
3446         * sysdeps/wordsize-64/versionsort64.c: New file.
3447         * sysdeps/unix/sysv/linux/wordsize-64/aio_read.c: New file.
3448         * sysdeps/unix/sysv/linux/wordsize-64/aio_read64.c: New file.
3449         * sysdeps/unix/sysv/linux/wordsize-64/aio_write.c: New file.
3450         * sysdeps/unix/sysv/linux/wordsize-64/aio_write64.c: New file.
3451         * sysdeps/unix/sysv/linux/wordsize-64/creat64.c: New file.
3452         * sysdeps/unix/sysv/linux/wordsize-64/getdirentries.c: New file.
3453         * sysdeps/unix/sysv/linux/wordsize-64/getdirentries64.c: New file.
3454         * sysdeps/unix/sysv/linux/wordsize-64/lio_listio.c: New file.
3455         * sysdeps/unix/sysv/linux/wordsize-64/lio_listio64.c: New file.
3456         * sysdeps/unix/sysv/linux/wordsize-64/open64.c: New file.
3457         * sysdeps/unix/sysv/linux/wordsize-64/openat.c: New file.
3458         * sysdeps/unix/sysv/linux/wordsize-64/openat64.c: New file.
3459
3460         * crypt/sha256-crypt.c: Fix a comment.
3461         * crypt/sha512-crypt.c: Likewise.
3462
3463 2007-11-07  H.J. Lu  <hongjiu.lu@intel.com>
3464
3465         * sysdeps/x86_64/memset.S: Add sfence after movnti.
3466
3467 2007-11-07  Ulrich Drepper  <drepper@redhat.com>
3468
3469         [BZ #5277]
3470         * iconv/loop.c (STANDARD_TO_LOOP_ERR_HANDLER): If conversion failed
3471         because output buffer is too small break, don't loop.
3472         * iconvdata/Makefile (tests): Add bug-iconv6.
3473         * iconvdata/bug-iconv6.c: New file.
3474
3475 2007-11-06  Ulrich Drepper  <drepper@redhat.com>
3476
3477         * stdio-common/vfprintf.c (vfprintf): Compute necessary buffer size
3478         with size_t type.
3479         * stdio-common/printf_fp.c (__print_fp): Change chars_needed type to
3480         size_t.  Add casts where needed.
3481
3482         * nscd/selinux.c (nscd_request_avc_has_perm): When compiled with
3483         old headers, don't call avc_has_perm if we don't have the
3484         permission information.
3485
3486 2007-11-05  Daniel Jacobowitz  <dan@codesourcery.com>
3487
3488         * elf/rtld.c (dl_main): Use the page size to find the map start.
3489
3490 2007-11-05  Ulrich Drepper  <drepper@redhat.com>
3491
3492         * time/tzfile.c (__tzfile_read): Fix check for version 0 data files.
3493         Patch by Szymon Siwek <sls@poczta.wp.pl>.
3494
3495         * nscd/aicache.c (addhstaiX): Check herrno after IPv4 lookup only
3496         when the lookup call failed.
3497
3498         * nscd/nscd.h (struct database_dyn): Rename prunelock to prune_lock.
3499         Add prune_cond and wakeup_time.
3500         (CACHE_PRUNE_INTERNAL): Define.
3501         Update declarations of prune_cache and setup_thread.
3502         * nscd/connections.c (dbs): Update initializers.
3503         (CACHE_PRUNE_INTERNAL): Moved to nscd.h.
3504         (nscd_init): Default number of threads is now 4.
3505         (invalidate_cache): Take lock before calling prune_cache.
3506         (handle_request): If SELinux forbids the request, say so.
3507         (readylist_cond): Use static initializer.
3508         (nscd_run_prune): New function.  Used only by pruning threads.
3509         (nscd_run_worder): Renamed from nscd_run.  Remove support for pruning
3510         here.
3511         (fd_ready): Update nscd_run reference.
3512         (start_threads): No need to initialize readylist_cond.
3513         Start pruning threads separately.
3514         * nscd/nscd_setup_thread.c: Change return value type to int and always
3515         return 0.
3516         * sysdeps/unix/sysv/linux/nscd_setup_thread.c: Change return value type
3517         to int and return nonzero value if we can use the TID address hack.
3518         * nscd/cache.c (cache_add): If next wakeup time of cleanup thread for
3519         the database is later than the new entry's timeout, update the
3520         wakeup time and wake the cleanup thread.
3521         (prune_cache): Return seconds the next entry in the database is still
3522         valid.  Remove locking for pruning here.
3523         * nscd/nscd.conf: Document default number of threads.
3524
3525 2007-10-31  Ulrich Drepper  <drepper@redhat.com>
3526
3527         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Make sure
3528         stack is properly aligned for the target function.
3529         Correct unwind info.
3530
3531         * elf/rtld.c (dl_main): Initialize stack and pointer guard early
3532         when using auditing libraries.
3533
3534 2007-10-29  Ulrich Drepper  <drepper@redhat.com>
3535
3536         * resolv/Versions [libresolv] (GLIBC_PRIVATE): Add
3537         _nss_dns_getnetbyaddr2_r.
3538         * resolv/nss_dns/dns-host.c: Define _nss_dns_getnetbyaddr2_r.  Pass
3539         extra parameter to getanswer_r.
3540         (_nss_dns_getnetbyaddr_r): Now a wrapper around
3541         _nss_dns_getnetbyaddr2_r.
3542
3543         * nscd/Makefile (nscd-modules): Replace gethstbynm2_r with
3544         gethstbynm3_r.
3545         * nscd/gethstbynm2_r.c: Remove.
3546         * nscd/gethstbynm3_r.c: New file.
3547         * nscd/aicache.c (addhstaiX): Use __gethostbyaddr2_r instead of
3548         __gethostbyaddr_r.
3549         * nscd/gethstbyad_r.c: Generate __gethostbyaddr2_r function.  Define
3550         __gethostbyaddr_r compatibility wrapper.
3551         * nscd/hstcache.c (cache_addhst): Add ttl parameter.  Use it when
3552         determining timeout of entry.
3553         (lookup): Take new parameter and pass it to __gethostbyname3_r and
3554         __gethostbyaddr2_r.
3555         (addhstbyX): Pass reference to variable for TTL to lookup and
3556         cache_addhst.
3557         * nss/Versions [glibc] (GLIBC_PRIVATE): Export __nss_passwd_lookup2,
3558         __nss_group_lookup2, __nss_hosts_lookup2, __nss_services_lookup2,
3559         and __nss_next2.  Remove __nss_services_lookup.
3560         * nss/XXX-lookup.c: Name function now *_lookup2.  Add new parameter.
3561         Add compat wrapper.
3562         * nss/getXXbyYY_r.c: Changes to call new *_lookup2 functions and
3563         __nss_next2.
3564         * nss/getXXent_r.c: Likewise.
3565         * nss/getnssent_r.c: Likewise.
3566         * nss/nsswitch.c (__nss_lookup): Add new parameter.  If first function
3567         does not exist in module, try the optional second name.
3568         (__nss_next2): New function.
3569         (__nss_next): Now wrapper around __nss_next2.
3570         * nss/nsswitch.h: Adjust __nss_lookup prototype.
3571         Declare __nss_next2.
3572         Adjust definition of db_lookup_function type.
3573         * nss/service-lookup.c: Define NO_COMPAT.
3574         * include/netdb.h: Declare __gethostbyaddr2_r and __gethostbyname3_r.
3575         * inet/ether_hton.c: Use __nss_next2 instead of __nss_next.
3576         * inet/ether_ntoh.c: Likewise.
3577         * sunrpc/netname.c: Likewise.
3578         * sunrpc/publickey.c: Likewise.
3579         * inet/getnetgrent.c: Likewise.  Adjust calls to __nss_lookup.
3580         * inet/gethstbyad_r.c (DB_LOOKUP_FCT): Change to __nss_hosts_lookup2.
3581         * inet/gethstbynm2_r.c (DB_LOOKUP_FCT): Likewise.
3582         * inet/gethstbynm_r.c (DB_LOOKUP_FCT): Likewise.
3583         * inet/gethstent_r.c (DB_LOOKUP_FCT): Likewise.
3584
3585         * nscd/aicache.c (addhstaiX): Fix default TTL handling.
3586
3587         * inet/getnetgrent_r.c (setup): Encrypt static pointer.
3588
3589 2007-10-28  Ulrich Drepper  <drepper@redhat.com>
3590
3591         [BZ #5204]
3592         * crypt/sha256c-test.c: Define TIMEOUT to 6 for ancient hardware.
3593         * crypt/sha512c-test.c: Likewise.
3594
3595         [BZ #5225]
3596         * stdio-common/vfscanf.c (_IO_vfwscanf): Don't misuse wp pointer
3597         to keep track of end of %[ format string element.
3598         * stdio-common/Makefile (tests): Add bug20.
3599         * stdio-common/bug20.c: New file.
3600
3601         [BZ #5222]
3602         * elf/dl-load.c (_dl_rtld_di_serinfo): Correct handling of short
3603         path elements in counting mode.
3604
3605 2007-10-27  Andreas Jaeger  <aj@suse.de>
3606
3607         [BZ #5040]
3608         * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLRDHUP): Add value.
3609
3610         [BZ #3112]
3611         * sysdeps/ia64/backtrace.c (init): Free shared library if incorrect.
3612         (__cleanup): Free shared library when exiting.
3613         * sysdeps/i386/backtrace.c (init): Free shared library if incorrect.
3614         (__cleanup): Free shared library when exiting.
3615
3616 2006-04-14  H.J. Lu  <hongjiu.lu@intel.com>
3617
3618         [BZ #2549]
3619         * math/libm-test.inc (check_float_internal): Support
3620         denormalized return.
3621
3622 2007-10-23  Andreas Jaeger  <aj@suse.de>
3623
3624         [BZ #5208]
3625         * sysdeps/unix/sysv/linux/readahead.c (__readahead): Use
3626         __LONG_LONG_PAIR to handle little endian byte order.
3627         Suggested by abhishekrai@google.com
3628
3629 2007-10-27  Ulrich Drepper  <drepper@redhat.com>
3630
3631         * malloc/arena.c [!NO_THREADS]: Use ATFORK_MEM if defined.
3632
3633 2007-10-26  Ulrich Drepper  <drepper@redhat.com>
3634
3635         * nscd/cache.c (prune_cache): Move test for modified file outside
3636         of locking.
3637
3638 2007-10-21  Andreas Jaeger  <aj@suse.de>
3639
3640         * manual/texinfo.tex: Update to latest version.
3641
3642         * manual/sysinfo.texi (System Parameters): Fix Formatting.
3643
3644         * manual/arith.texi (Status bit operations): Fix formatting.
3645
3646         * manual/errno.texi (Error Messages): Fix formatting.
3647
3648         * manual/sysinfo.texi (System Parameters): Fix formatting.
3649
3650         * manual/libc.texinfo: Update VERSION and UPDATED.
3651
3652 2007-10-19  Roland McGrath  <roland@redhat.com>
3653
3654         * elf/Makefile ($(objpfx)ld.so): Use $(AWK).
3655
3656 2007-10-06  David S. Miller  <davem@davemloft.net>
3657
3658         * configure.in: Add sparcv9v2 and sparc64v2.
3659         * scripts/config.sub: Likewise.
3660         * configure: Regenerate.
3661         * elf/elf.h (HWCAP_SPARC_N2): New.
3662         * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Bump to 8.
3663         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add 'v9v2'.
3664         (HWCAP_IMPORTANT): Add HWCAP_SPARC_N2.
3665         * sysdeps/sparc/sparc32/sparcv9/sparcv9v2/memcpy.S: New file.
3666         * sysdeps/sparc/sparc32/sparcv9/sparcv9v2/memset.S: New file.
3667         * sysdeps/sparc/sparc64/sparcv9v2/memcpy.S: New file.
3668         * sysdeps/sparc/sparc64/sparcv9v2/memset.S: New file.
3669
3670 2007-10-18  Ulrich Drepper  <drepper@redhat.com>
3671
3672         * sunrpc/clnt_udp.c (clntudp_call): Don't block in recvfrom call
3673         even if the poll result indicates there is data to read.
3674         Patch by Jeff Moyer <jmoyer@redhat.com>.
3675
3676 2007-10-18  Roland McGrath  <roland@redhat.com>
3677
3678         * elf/elf.h (NT_PPC_VMX): New macro.
3679
3680 2007-10-17  Ulrich Drepper  <drepper@redhat.com>
3681
3682         * version.h (VERSION): Set to 2.7.90.
3683
3684 2007-10-17  Jakub Jelinek  <jakub@redhat.com>
3685
3686         * sysdeps/x86_64/memset.S (bzero): Renamed to __bzero.  Add
3687         weak_alias.
3688
3689 2007-10-17  Roland McGrath  <roland@frob.com>
3690
3691         * sysdeps/mach/hurd/bits/fcntl.h [__USE_GNU__] (F_DUPFD_CLOEXEC): New.
3692         * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Implement it.
3693
3694 2007-10-17  Ulrich Drepper  <drepper@redhat.com>
3695
3696         * version.h (VERSION): Bump to 2.7.
3697         * include/features.h (__GLIBC_MINOR__): Bump to 7.
3698
3699         [BZ #5186]
3700         * time/tzset.c (__tz_convert): Don't force testing for a change of
3701         TZ if not called from localtime.  But then also see whether the
3702         file changed, in case __use_tzfile is set.
3703
3704         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define F_DUPFD_CLOEXEC.
3705         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
3706         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
3707         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
3708         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
3709         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
3710         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h:  Likewise.
3711         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
3712
3713 2007-10-17  Jakub Jelinek  <jakub@redhat.com>
3714
3715         * sysdeps/posix/getaddrinfo.c (getaddrinfo): When sorting addresses
3716         and admin selects to be able to replace the gai.conf file, lock
3717         data structures around the qsort call.
3718
3719 2007-10-17  Ulrich Drepper  <drepper@redhat.com>
3720
3721         * sysdeps/x86_64/cacheinfo.c: Comment out code added in support of
3722         new memset.
3723         * sysdeps/x86_64/memset.S: Revert to old version for now.  The cost is
3724         too high for the improvements.  Implement bzero unconditionally for
3725         use in libc.
3726
3727 2007-10-17  Ulrich Drepper  <drepper@redhat.com>
3728             Jakub Jelinek  <jakub@redhat.com>
3729
3730         * time/tzfile.c (__tzfile_read): Read POSIX TZ string if available
3731         even when time_t is 32-bit.
3732         (__tzfile_compute): Override POSIX TZ string STD/DST zone names if
3733         timezone data read by __tzfile_default.  Ensure __tzname[0] is
3734         always set after the search.
3735
3736 2007-10-16  Ulrich Drepper  <drepper@redhat.com>
3737
3738         * time/tzfile.c (__tzfile_read): Help the compiler recognize
3739         unreachable code on 32-bit machines.
3740
3741 2007-10-16  Jakub Jelinek  <jakub@redhat.com>
3742
3743         [BZ #5184]
3744         * time/strftime_l.c: Include stdbool.h.
3745         (my_strftime): New wrapper, old function renamed to...
3746         (__strftime_internal): ... new function.  Add tzset_called
3747         argument, pass it down to recursive calls, don't call tzset ()
3748         if already true, set to true after call to tzset ().
3749
3750 2007-10-16  Ulrich Drepper  <drepper@redhat.com>
3751
3752         * time/tzfile.c (__tzfile_read): Take extra memory requested by caller
3753         into account when copying TZ string.
3754
3755 2007-10-16  Jakub Jelinek  <jakub@redhat.com>
3756
3757         * time/tzfile.c (__tzfile_compute): For use_last case set i to
3758         num_transition rather than num_transitions - 1.
3759
3760 2007-10-16  Jakub Jelinek  <jakub@redhat.com>
3761
3762         * sysdeps/x86_64/memset.S (memset): Fix sse2_nt_move
3763         PIC indirect jump.
3764
3765         * sysdeps/x86_64/memset.S: Jump from bzero to memset using
3766         a local label rather than HIDDEN_JUMPTARGET.
3767
3768 2007-10-15  Ulrich Drepper  <drepper@redhat.com>
3769
3770         * sysdeps/x86_64/cacheinfo.c (__x86_64_shared_cache_size): Define.
3771         (init_cacheinfo): Initialize it.
3772         * sysdeps/x86_64/memset.S: Use __x86_64_shared_cache_size.
3773         Always define bzero.
3774         Remove non-glibc code.
3775         * sysdeps/x86_64/bzero.S: Make an empty file.
3776
3777 2007-10-15  H.J. Lu  <hongjiu.lu@intel.com>
3778
3779         * sysdeps/x86_64/cacheinfo.c
3780         (__x86_64_preferred_memory_instruction): New.
3781         (init_cacheinfo): Initialize __x86_64_preferred_memory_instruction.
3782
3783         * sysdeps/x86_64/memset.S: Rewrite.
3784
3785 2007-10-15  Roland McGrath  <roland@redhat.com>
3786
3787         * po/libc.pot: Regenerated.
3788
3789 2007-10-15  Ulrich Drepper  <drepper@redhat.com>
3790
3791         * nss/getXXbyYY_r.c (REENTRANT_NAME): Mangle startp and start_fct
3792         pointers.
3793
3794         [BZ #3425]
3795         * resolv/nss_dns/dns-host.c (getanswer_r): Fail with
3796         NSS_STATUS_NOTFOUND if the server replied with only a CNAME and no
3797         address record to T_A/T_AAAA requests.
3798
3799 2007-10-14  Ulrich Drepper  <drepper@redhat.com>
3800
3801         * posix/glob.c: Reimplement link_exists_p to use fstatat64.
3802
3803         * posix/glob.c: Add some branch prediction throughout.
3804
3805         * nscd/nscd_getgr_r.c (nscd_getgr_r): Store result of successful
3806         read from nscd.
3807
3808         * sysdeps/posix/getaddrinfo.c (struct sort_result): Add
3809         service_order.
3810         (rfc3484_sort): Make sure that even if qsort doesn't support
3811         stable sorting out sorting here is stable by comparing service_order.
3812         (getaddrinfo): Initialize service_order.
3813         * posix/tst-rfc3484.c (do_test): Adjust for addition of
3814         service_order field to sorting structure.
3815         * posix/tst-rfc3484-2.c (do_test): Likewise.
3816
3817         * include/time.h: Declare __tzset_parse_tz and __tzset_compute.
3818         * time/tzset.c (tzset_internal): Break TZ string parsing out into
3819         __tzset_parse_tz and updating of daylight, timezone, tzname into
3820         update_vars.
3821         (__tz_compute): Renamed from tz_compute.  Take additional parameters.
3822         (__tz_convert): Updating of tm_isdst, tm_zone, and tm_gmtoff now
3823         happens in __tz_compute.
3824         * time/tzfile.c (__tzfile_read): Also read TZ string.
3825         (find_transition): Fold into __tzfile_compute.
3826         (__tzfile_compute): For times beyond the last transition try to
3827         use the TZ string.
3828         * timezone/tst-timezone.c: Information in daylight and tzname does
3829         change for Asia/Tokyo timezone with more concrete information.
3830         Remove the test.
3831
3832         * include/stdio.h: Add libc_hidden_proto for ftello.
3833         * libio/ftello.c: Add libc_hidden_def.
3834
3835         [BZ #1140]
3836         * time/tzfile.c (__tzfile_compute): Compute tzname[] values based
3837         on the specified time and not the last entries in the file.  Move
3838         code to determine tzname[] to...
3839         (find_transition): ...here.  Add ugly guess for times before the
3840         first transition.
3841
3842 2007-10-13  Ulrich Drepper  <drepper@redhat.com>
3843
3844         [BZ #3195]
3845         * nscd/nscd_getai.c (__nscd_getai): Set errno to 0 in case we found
3846         no entry.
3847         * nscd/nscd_getgr.c (nscd_getgr_r): Likewise.
3848         * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
3849         * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
3850         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
3851
3852         * nscd/nscd_getgr_r.c (nscd_getgr_r): Optimize a bit: use simpler
3853         read mechanism when there are no group members and avoid no-op
3854         read syscall in this case.
3855
3856         [BZ #3242]
3857         * nscd/nscd_helper.c (wait_on_socket): Take timeout as parameter.
3858         (__readall): If reading failed due to EAGAIN error wait a bit
3859         and possibly try again.
3860         (__readvall): Likewise.
3861
3862 2007-10-13  Bruno Haible  <bruno@clisp.org>
3863
3864         * intl/dcigettext.c (_nl_find_msg): Unlock the conversions_lock
3865         when we cannot recode the message.
3866
3867 2007-10-13  Ulrich Drepper  <drepper@redhat.com>
3868
3869         [BZ #4359]
3870         * libio/__freading.c (__freading): Don't return true for
3871         write-only streams.  For read/write streams, check whether we
3872         performed a read operation already.
3873         * libio/Makefile (tests): Add tst-ext2.
3874         * libio/tst-ext2.c: New file.
3875
3876 2007-10-12  Ulrich Drepper  <drepper@redhat.com>
3877
3878         * locale/programs/repertoire.c (repertoire_read): Always free
3879         memory for repertoire file name [Coverity CID 270].
3880
3881         * elf/cache.c (save_aux_cache): Free memory allocated for
3882         temporary file name [Coverity CID 267].
3883
3884 2007-10-12  Jakub Jelinek  <jakub@redhat.com>
3885
3886         * misc/Makefile (headers): Add bits/error.h.
3887
3888 2007-10-12  Ulrich Drepper  <drepper@redhat.com>
3889
3890         * posix/fnmatch_loop.c: Take rule index returned as part of
3891         findidx return value into account when accessing weights.
3892         * posix/regcomp.c: Likewise.
3893         * posix/regexec.c: Likewise.
3894
3895         * locale/programs/ld-collate.c (collate_read): Optimize a bit.
3896         (skip_to): Fix problems with parameter of elifdef/elifndef.
3897
3898 2007-10-11  Ulrich Drepper  <drepper@redhat.com>
3899
3900         * iconv/gconv_simple.c: Add some branch prediction.
3901
3902 2007-10-12  Jakub Jelinek  <jakub@redhat.com>
3903
3904         * locale/programs/ld-collate.c (collate_read): If ignore_content
3905         and nowtok is tok_define, eat any tok_eol tokens.
3906
3907 2007-10-11  Jakub Jelinek  <jakub@redhat.com>
3908
3909         * sysdeps/gnu/netinet/tcp.h: Include sys/socket.h if __USE_MISC.
3910         (struct tcp_md5sig): Change tcpm_addr type to struct sockaddr_storage.
3911
3912         * inet/netinet/in.h: Don't include bits/socket.h.
3913         * sysdeps/unix/sysv/linux/bits/socket.h: Only check _SYS_SOCKET_H
3914         macro.
3915         * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Likewise.
3916
3917 2007-10-10  Ulrich Drepper  <drepper@redhat.com>
3918
3919         * locale/programs/locfile-token.h: Remove tok_elif, add tok_elifdef
3920         and tok_elifndef.
3921         * locale/programs/locfile-kw.gperf: Likewise.
3922         * locale/programs/ld-collate.c: Implement primitive preprocessor.
3923
3924 2007-10-10  Jakub Jelinek  <jakub@redhat.com>
3925
3926         * stdio-common/printf-parse.h: Include string.h and wchar.h.
3927         (__find_specwc): Change into __extern_always_inline function.
3928         (__find_specmb): Likewise.  Remove ps argument.  Use __strchrnul.
3929         (__parse_one_specmb): Remove ps argument.
3930         * stdio-common/vfprintf.c (vfprintf): Remove mbstate variable.
3931         Adjust __find_specmb and __parse_one_specmb callers.
3932         * stdio-common/printf-prs.c (parse_printf_format): Likewise.
3933         * stdio-common/printf-parsemb.c (__find_specwc, __find_specmb):
3934         Removed.
3935         (__parse_one_specmb): Remove ps argument, adjust __find_specmb
3936         caller.
3937
3938 2007-10-09  Ulrich Drepper  <drepper@redhat.com>
3939
3940         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Work around problem
3941         with some Pentium Ds.
3942
3943 2007-10-08  Ulrich Drepper  <drepper@redhat.com>
3944
3945         * sysdeps/unix/sysv/linux/eventfd_read.c (eventfd_read): Use
3946         __read not read.
3947         * sysdeps/unix/sysv/linux/eventfd_write.c (eventfd_write): Use
3948         __write not write.
3949
3950 2007-10-07  Ulrich Drepper  <drepper@redhat.com>
3951
3952         [BZ #181]
3953         * locale/C-time.c: Set week_1stday data to 19971201.
3954         * locale/programs/ld-time.c (time_finish): Default for
3955         first_workday is Monday.
3956
3957         [BZ #2633]
3958         * wcsmbs/wchar.h: Move many C99 functions into std namespace.
3959
3960         [BZ #5103]
3961         * posix/glob.c (glob): Recognize patterns starting \/.
3962         * posix/tst-gnuglob.c (find_file): Handle absolute path names.
3963         (main): Add test for pattern starting \/.
3964
3965         * misc/error.h: Use __const instead of const.
3966         * misc/bits/error.h: Likewise.
3967
3968 2007-10-07  Andreas Jaeger  <aj@suse.de>
3969
3970         * include/bits/error.h: New file.
3971
3972         * misc/bits/error.h (error_at_line): Fix prototype.
3973
3974 2007-10-06  Ulrich Drepper  <drepper@redhat.com>
3975
3976         [BZ #3924]
3977         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix a few
3978         more little bugs in creating the stack frame when pltexit has to
3979         be called.
3980
3981         * nscd/nscd_helper.c (__nscd_cache_search): Prevent endless loops.
3982         * nscd/connections.c (verify_persistent_db): Recognize circular lists.
3983
3984         [BZ #4407]
3985         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Fix *signgamp for -0.0.
3986         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
3987         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
3988         * math/libm-test.inc: Add test for this case.
3989
3990         [BZ #5010]
3991         * sunrpc/svc.c (struct svc_callout): Add sc_mapped element.
3992         (svc_register): Initialize sc_mapped.  Set to TRUE if call to
3993         map service succeeded.
3994         (svc_is_mapped): New function.
3995         (svc_unregister): Use it before trying to unmap service.
3996
3997 2007-10-05  Ulrich Drepper  <drepper@redhat.com>
3998
3999         * timezone/zic.c: Update from tzcode2007h.
4000
4001         [BZ #5063]
4002         * timezone/africa: Update from tzdata2007h.
4003         * timezone/antarctica: Likewise.
4004         * timezone/asia: Likewise.
4005         * timezone/australasia: Likewise.
4006         * timezone/europe: Likewise.
4007         * timezone/leapseconds: Likewise.
4008         * timezone/northamerica: Likewise.
4009         * timezone/southamerica: Likewise.
4010         * timzeone/zone.tab: Likewise.
4011
4012         [BZ #5104]
4013         * elf/do-lookup.h (do_lookup_x): Don't ignore STT_COMMON symbols.
4014
4015         [BZ #5113]
4016         * string/bits/string2.h (__strdup): Cast parameters to calloc to
4017         avoid warning with -Wconversion.
4018         (__strndup): Likewise.
4019         Half the patch by Christian Iseli <christian.iseli@licr.org>.
4020
4021         [BZ #5112]
4022         * nscd/connections.c (restart): Don't resync if database is
4023         disabled.  Patch mostly by Brian De Wolf <bldewolf@csupomona.edu>.
4024
4025         * sysdeps/gnu/netinet/tcp.h: Define TCP_MD5SIG, TCP_MD5SIG_MAXKEYLEN,
4026         struct tcp_md5sig.  Extend struct tcp_info according to recent kernels.
4027
4028         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add eventfd,
4029         evetnfd_read, eventfd_write.
4030         * sysdeps/unix/sysv/linux/eventfd.c: New file.
4031         * sysdeps/unix/sysv/linux/eventfd_read.c: New file.
4032         * sysdeps/unix/sysv/linux/eventfd_write.c: New file.
4033         * sysdeps/unix/sysv/linux/sys/eventfd.h: New file.
4034         * sysdeps/unix/sysv/linux/Versions: Export eventfd, eventfd_read,
4035         eventfd_write for GLIBC_2.7.
4036
4037         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add signalfd.
4038         * sysdeps/unix/sysv/linux/signalfd.c: New file.
4039         * sysdeps/unix/sysv/linux/sys/signalfd.h: New file.
4040         * sysdeps/unix/sysv/linux/Versions: Export signalfd for GLIBC_2.7.
4041
4042 2007-10-04  Jakub Jelinek  <jakub@redhat.com>
4043
4044         * stdlib/msort.c: Include stdint.h.
4045         (struct msort_param): New type.
4046         (msort_with_tmp): Use struct msort_param pointer for unchanging
4047         parameters.  Add optimized handling for several common sizes
4048         and indirect sorting mode.
4049         (qsort): Adjust msort_with_tmp callers.  For big S use indirect
4050         sorting.
4051         Suggested by Belazougui Djamel .
4052
4053         * stdlib/Makefile (tests): Add tst-qsort2.
4054         * stdlib/tst-qsort2.c: New test.
4055
4056 2007-10-04  Ulrich Drepper  <drepper@redhat.com>
4057
4058         * login/login_tty.c (login_tty): The Linux kernel can return EBUSY
4059         for dup2 in case another thread races with the current one.  Retry
4060         in this case.
4061
4062         * misc/error.h: Remove support for use outside of libc.  We have to
4063         include <features.h> now.  Include <bits/error.h> if possible.
4064         * misc/bits/error.h: New file.
4065
4066 2007-10-03  Jakub Jelinek  <jakub@redhat.com>
4067
4068         * string/bits/string3.h (memcpy, memmove, mempcpy, memset, bcopy,
4069         bzero, strcpy, stpcpy, strncpy, strcat, strncat): Use
4070         __extern_always_inline functions unconditionally, drop macros.
4071
4072         * misc/sys/cdefs.h (__REDIRECT_LDBL, __REDIRECT_NTH_LDBL): New macros.
4073         * wcsmbs/bits/wchar2.h (__swprintf_alias, __vswprintf_alias): Use
4074         __REDIRECT_NTH_LDBL macro rather than __REDIRECT_NTH.
4075
4076         * misc/sys/cdefs.h (__extern_always_inline): For GCC 4.3+
4077         add __artificial__ attribute.
4078
4079 2007-10-02  Ulrich Drepper  <drepper@redhat.com>
4080
4081         * string/strcoll_l.c (STRCOLL): Correct handling of switching from
4082         backward to forward direction.
4083
4084         * string/strcoll_l.c (STRCOLL): Correct test for alloca use.
4085
4086         [BZ #645]
4087         * locale/programs/ld-collate.c (collate_finish): Compare against last
4088         used section which is known to have rules defined.
4089         (collate_read): After order_start, correctly record order of sections
4090         and queue sections up.
4091
4092 2007-10-01  Ulrich Drepper  <drepper@redhat.com>
4093
4094         [BZ #5071]
4095         * malloc/malloc.c (mremap_chunk): Avoid resizing of new block has
4096         the same number of pages.
4097         Patch by Tomash Brechko <tomash.brechko@gmail.com>.
4098
4099         * locale/programs/ld-collate.c (collate_read): After initial copy
4100         statement, continue in state 0.
4101
4102         * include/stdio_ext.h (__fsetlocking): Define as macro.
4103
4104 2007-09-30  Ulrich Drepper  <drepper@redhat.com>
4105
4106         * locale/programs/ld-collate.c (collate_finish): Compare all bytes
4107         of section order.
4108
4109         * po/pt_BR.po: Fix typo.
4110
4111 2007-09-29  Ulrich Drepper  <drepper@redhat.com>
4112
4113         * iconvdata/Makefile (modules): Add ISO8859-9E.
4114         (distribute): Add iso8859-9e.c.
4115         (gen-8bit-gap-modules): Add iso8859-9e.
4116         * iconvdata/iso8859-9e.c: New file.
4117         * iconvdata/gconv-modules: Add entries for ISO-8859-9E.
4118         * iconvdata/TESTS: Likewise.
4119         * iconvdata/tst-tables.sh: Likewise.
4120
4121         * iconvdata/koi8-r.c (HAS_HOLES): Define to 0.
4122
4123         * locale/iso-639.def: Add several new entries.
4124
4125 2007-09-24  Jakub Jelinek  <jakub@redhat.com>
4126
4127         * sysdeps/generic/ldsodefs.h (struct dl_scope_free_list): Store
4128         void * pointers instead of struct link_map **.
4129         (_dl_scope_free): Change argument type to void *.
4130         * include/link.h (struct link_map): Change type of l_reldeps
4131         to struct link_map_reldeps, move l_reldepsact into that
4132         struct too.
4133         * elf/dl-deps.c: Include atomic.h.
4134         (_dl_map_object_deps): Only change l->l_initfini when it is
4135         fully populated, use _dl_scope_free for freeing it.  Optimize
4136         removal of libs from reldeps by using l_reserved flag, when
4137         some removal is needed, allocate a new list instead of
4138         reallocating and free the old with _dl_scope_free.  Adjust
4139         for l_reldeps and l_reldepsact changes.
4140         * elf/dl-lookup.c (add_dependency): Likewise.  Reorganize to allow
4141         searching in l_initfini and l_reldeps without holding dl_load_lock.
4142         * elf/dl-fini.c (_dl_sort_fini): Adjust for l_reldeps and
4143         l_reldepsact changes.
4144         * elf/dl-close.c (_dl_close_worker): Likewise.
4145         * elf/dl-open.c (_dl_scope_free): Change argument type to void *.
4146
4147 2007-09-28  Ulrich Drepper  <drepper@redhat.com>
4148
4149         * iconvdata/Makefile (modules): Add KOI8-RU.
4150         (distribute): Add koi8-ru.c.
4151         (gen-8bit-gap-modules): Add koi8-ru.
4152         * iconvdata/koi8-ru.c: New file.
4153         * iconvdata/gconv-modules: Add entries for KOI8-RU.
4154         * iconvdata/TESTS: Likewise.
4155         * iconvdata/tst-tables.sh: Likewise.
4156
4157         * iconvdata/koi8-r.c (HAS_HOLES): Define to 0.
4158
4159 2007-09-26  Jakub Jelinek  <jakub@redhat.com>
4160
4161         * misc/sys/cdefs.h (__warndecl, __errordecl): For GCC 4.3+ define
4162         with __warning__/__error__ attributes.
4163         (__warnattr): Define.
4164         * stdlib/bits/stdlib.h (__realpath_chk_warn, __ptsname_r_chk_warn,
4165         __mbstowcs_chk_warn, __wcstombs_chk_warn): New aliases with
4166         __warnattr.
4167         (realpath, ptsname_r, mbstowcs, wcstombs): Call __*_chk_warn instead
4168         of __*_chk if compile time detectable overflow is found.
4169         * libio/bits/stdio2.h (__fgets_chk_warn, __fread_chk_warn,
4170         __fgets_unlocked_chk_warn, __fread_unlocked_chk_warn): New aliases
4171         with __warnattr.
4172         (fgets, fread, fgets_unlocked, fread_unlocked): Call __*_chk_warn
4173         instead of __*_chk if compile time detectable overflow is found.
4174         (__gets_alias): Rename to...
4175         (__gets_warn): ... this.  Add __warnattr.
4176         (gets): Call __gets_warn instead of __gets_alias.
4177         * socket/bits/socket2.h (__recv_chk_warn, __recvfrom_chk_warn): New
4178         aliases with __warnattr.
4179         (recv, recvfrom): Call __*_chk_warn instead of __*_chk if compile
4180         time detectable overflow is found.
4181         * posix/bits/unistd.h (__read_chk_warn, __pread_chk_warn,
4182         __pread64_chk_warn, __readlink_chk_warn, __readlinkat_chk_warn,
4183         __getcwd_chk_warn, __confstr_chk_warn, __getgroups_chk_warn,
4184         __ttyname_r_chk_warn, __getlogin_r_chk_warn, __gethostname_chk_warn,
4185         __getdomainname_chk_warn): New aliases with __warnattr.
4186         (read, pread, pread64, readlink, readlinkat, getcwd, confstr,
4187         getgroups, ttyname_r, getlogin_r, gethostname, getdomainname): Call
4188         __*_chk_warn instead of __*_chk if compile time detectable overflow
4189         is found.
4190         (__getgroups_chk): Rename argument to __listlen from listlen.
4191         (__getwd_alias): Rename to...
4192         (__getwd_warn): ... this.  Add __warnattr.
4193         (getwd): Call __getwd_warn instead of __getwd_alias.
4194         * wcsmbs/bits/wchar2.h (__wmemcpy_chk_warn, __wmemmove_chk_warn,
4195         __wmempcpy_chk_warn, __wmemset_chk_warn, __wcsncpy_chk_warn,
4196         __wcpncpy_chk_warn, __fgetws_chk_warn, __fgetws_unlocked_chk_warn,
4197         __mbsrtowcs_chk_warn, __wcsrtombs_chk_warn, __mbsnrtowcs_chk_warn,
4198         __wcsnrtombs_chk_warn): New aliases with __warnattr.
4199         (wmemcpy, wmemmove, wmempcpy, wmemset, mbsrtowcs, wcsrtombs,
4200         mbsnrtowcs, wcsnrtombs): Call __*_chk_warn instead of __*_chk if
4201         compile time detectable overflow is found.
4202         (wcsncpy, wcpncpy): Likewise.  For constant __n fix check whether
4203         to use __*_chk or not.
4204         (fgetws, fgetws_unlocked): Divide __bos by sizeof (wchar_t), both
4205         in comparisons which function should be called and in __*_chk*
4206         arguments.  Call __*_chk_warn instead of __*_chk if compile time
4207         detectable overflow is found.
4208         (swprintf, vswprintf): Divide __bos by sizeof (wchar_t) in
4209         __*_chk argument.
4210         * debug/tst-chk1.c (do_test): Add a few more tests.
4211
4212 2007-09-24  Ulrich Drepper  <drepper@redhat.com>
4213
4214         [BZ #5058]
4215         * intl/gettextP.h (struct loaded_domain): Add conversions_lock member.
4216         * intl/loadmsgcat.c (_nl_load_domain): Initialize conversions_lock.
4217         (_nl_unload_domain): Finalize conversions_lock.
4218         * intl/dcigettext.c (_nl_find_msg): Take conversions_lock before
4219         handling table of known conversions.
4220
4221 2007-09-24  Jakub Jelinek  <jakub@redhat.com>
4222
4223         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Use
4224         close_not_cancel_no_status instead of close.
4225
4226 2007-09-13  Aurelien Jarno  <aurelien@aurel32.net>
4227
4228         [BZ #5028]
4229         * posix/regcomp.c (lookup_collation_sequence_value): Check that
4230         nrules != 0 for multibyte chars.
4231
4232 2007-09-23  Ulrich Drepper  <drepper@redhat.com>
4233
4234         * resolv/ns_print.c (ns_sprintrrf): Handle ns_t_a6 and ns_t_opt.
4235         Provide better error message in case the type is unknown.
4236
4237         [BZ #4963]
4238         * wcsmbs/wcsnlen.c: Don't reference before checking the length.
4239         * string/stratcliff.c: Make usable to test wide char functions.
4240         * wcsmbs/wcsatcliff.c: New file.
4241         * wcsmbs/Makefiel (tests): Add wcsatcliff.
4242
4243         [BZ #4972]
4244         * iconvdata/Makefile (modules): Add MAC-CENTRALEUROPE.
4245         (distribute): Add mac-centraleurope.c.
4246         (gen-8bit-gap-modules): Add mac-centraleurope.
4247         * iconvdata/mac-centraleurope.c: New file.
4248         * iconvdata/gconv-modules: Add entries for MAC-CENTRALEUROPE.
4249         * iconvdata/TESTS: Likewise.
4250         * iconvdata/tst-tables.sh: Likewise.
4251
4252         [BZ #5043]
4253         * iconv/iconv_open.c (iconv_open): For large codeset names use malloc.
4254
4255 2007-09-21  Ulrich Drepper  <drepper@redhat.com>
4256
4257         * sysdeps/x86_64/cacheinfo.c (__x86_64_data_cache_size_half): Renamed
4258         from __x86_64_core_cache_size_half.
4259         (init_cacheinfo): Compute shared cache size for AMD processors with
4260         shared L3 correctly.
4261         * sysdeps/x86_64/memcpy.S: Adjust for __x86_64_data_cache_size_half
4262         name change.
4263         Patch in large parts by Evandro Menezes.
4264
4265 2007-09-19  Ulrich Drepper  <drepper@redhat.com>
4266
4267         * elf/dl-lookup.c (add_dependency): Handle failing memory
4268         allocation for dependency list.  Remove unnecessary check.
4269
4270         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid unnecessary
4271         open/close when determining source addresses.
4272
4273         * crypt/Makefile (libcrypt-routines): Add sha256-crypt, sha256,
4274         sha512-crypt, and sha512.
4275         (tests): Add sha256test, sha256c-test, sha512test, and sha512c-test.
4276         (distribute): Add sha256.h and sha512.h.
4277         * crypt/crypt-entry.c (crypt): Recognize the new $5$ and $6$ prefixes
4278         and call the appropriate code.
4279         * crypt/sha256-crypt.c: New file.
4280         * crypt/sha256.c: New file.
4281         * crypt/sha256.h: New file.
4282         * crypt/sha256c-test.c: New file.
4283         * crypt/sha256test.c: New file.
4284         * crypt/sha512-crypt.c: New file.
4285         * crypt/sha512.c: New file.
4286         * crypt/sha512.h: New file.
4287         * crypt/sha512c-test.c: New file.
4288         * crypt/sha512test.c: New file.
4289
4290 2007-09-19  Jakub Jelinek  <jakub@redhat.com>
4291
4292         * misc/bits/syslog.h (syslog): Remove extraneous argument from
4293         the inline, pass __USE_FORTIFY_LEVEL - 1 as second argument to
4294         __syslog_chk.
4295
4296 2007-09-18  Jakub Jelinek  <jakub@redhat.com>
4297
4298         * locale/programs/charmap-dir.c (charmap_aliases): Use %ms instead of
4299         %as in fscanf format strings.
4300
4301         * sysdeps/sparc/sparc32/elf/start.S: Remove cfi_* markup.
4302         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
4303         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__thread_start):
4304         Likewise.
4305         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__thread_start):
4306         Likewise.
4307
4308         * sysdeps/generic/ldsodefs.h (DL_LOOKUP_GSCOPE_LOCK): New definition.
4309         * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Or in
4310         DL_LOOKUP_GSCOPE_LOCK into flags after THREAD_GSCOPE_SET_FLAG ().
4311         * elf/dl-sym.c (do_sym): Likewise.
4312         * include/link.h (struct link_map): Add l_serial field.
4313         * elf/dl-object.c (_dl_new_object): Initialize l_serial.
4314         * elf/dl-lookup.c (add_dependency): Add flags argument.
4315         Remember map->l_serial, if DL_LOOKUP_GSCOPE_LOCK is among
4316         flags, use THREAD_GSCOPE_RESET_FLAG before and
4317         THREAD_GSCOPE_SET_FLAG after
4318         __rtld_lock_lock_recursive (GL(dl_load_lock)) to avoid deadlock.
4319         Don't dereference map until it has been found on some list.
4320         If map->l_serial changed, return -1.
4321
4322 2007-09-17  Jakub Jelinek  <jakub@redhat.com>
4323
4324         * include/stdio.h (__isoc99_fscanf, __isoc99_scanf,
4325         __isoc99_sscanf, __isoc99_vscanf): New prototypes.
4326         (__isoc99_vsscanf, __isoc99_vfscanf): New prototypes, add
4327         libc_hidden_proto.
4328         * include/wchar.h (__isoc99_fwscanf, __isoc99_wscanf,
4329         __isoc99_swscanf, __isoc99_vwscanf): New prototypes.
4330         (__isoc99_vswscanf, __isoc99_vfwscanf): New prototypes,
4331         add libc_hidden_proto.
4332         * libio/stdio.h (fscanf, scanf, sscanf, vfscanf, vscanf,
4333         vsscanf): Redirect to __isoc99_* if strict ISO C99 or POSIX
4334         conformance requested.
4335         * wcsmbs/wchar.h (fwscanf, wscanf, swscanf, vfwscanf, vwscanf,
4336         vswscanf): Redirect to __isoc99_* if strict ISO C99 or POSIX
4337         conformance requested.
4338         * libio/bits/stdio-ldbl.h (fscanf, scanf, sscanf, vfscanf, vscanf,
4339         vsscanf): Redirect to __nldbl___isoc99_* if strict ISO C99 or POSIX
4340         conformance requested.
4341         * wcsmbs/bits/wchar-ldbl.h (fwscanf, wscanf, swscanf, vfwscanf,
4342         vwscanf, vswscanf): Redirect to __nldbl___isoc99_* if strict
4343         ISO C99 or POSIX conformance requested.
4344         * stdio-common/Versions (libc): Export __isoc99_scanf@@GLIBC_2.7,
4345         __isoc99_vscanf@@GLIBC_2.7, __isoc99_fscanf@@GLIBC_2.7,
4346         __isoc99_vfscanf@@GLIBC_2.7, __isoc99_sscanf@@GLIBC_2.7
4347         and __isoc99_vsscanf@@GLIBC_2.7.
4348         * stdio-common/Makefile (routines): Add isoc99_scanf, isoc99_vscanf,
4349         isoc99_fscanf, isoc99_vfscanf, isoc99_sscanf and isoc99_vsscanf.
4350         (tests): Add scanf14.
4351         (CFLAGS-vfprintf.c, CFLAGS-fprintf.c, CFLAGS-printf.c,
4352         CFLAGS-vfwprintf.c, CFLAGS-vfscanf.c, CFLAGS-vfwscanf.c,
4353         CFLAGS-fscanf.c, CFLAGS-scanf.c, CFLAGS-isoc99_vfscanf.c,
4354         CFLAGS-isoc99_vscanf.c, CFLAGS-isoc99_fscanf.c,
4355         CFLAGS-isoc99_scanf.c): Add $(exceptions).
4356         (CFLAGS-scanf15.c): Add various -I paths to prevent the compiler
4357         from using internal headers.
4358         * wcsmbs/Versions (libc): Export __isoc99_wscanf@@GLIBC_2.7,
4359         __isoc99_vwscanf@@GLIBC_2.7, __isoc99_fwscanf@@GLIBC_2.7,
4360         __isoc99_vfwscanf@@GLIBC_2.7, __isoc99_swscanf@@GLIBC_2.7
4361         and __isoc99_vswscanf@@GLIBC_2.7.
4362         * wcsmbs/Makefile (routines): Add isoc99_wscanf, isoc99_vwscanf,
4363         isoc99_fwscanf, isoc99_vfwscanf, isoc99_swscanf and isoc99_vswscanf.
4364         (CFLAGS-isoc99_wscanf.c, CFLAGS-isoc99_fwscanf.c,
4365         CFLAGS-isoc99_vwscanf.c, CFLAGS-isoc99_vfwscanf.c): Add $(exceptions).
4366         (CPPFLAGS): Add -D_IO_MTSAFE_IO if needed.
4367         * stdio-common/isoc99_scanf.c: New file.
4368         * stdio-common/isoc99_vsscanf.c: New file.
4369         * stdio-common/isoc99_vscanf.c: New file.
4370         * stdio-common/isoc99_vfscanf.c: New file.
4371         * stdio-common/isoc99_fscanf.c: New file.
4372         * stdio-common/isoc99_sscanf.c: New file.
4373         * wcsmbs/isoc99_fwscanf.c: New file.
4374         * wcsmbs/isoc99_vswscanf.c: New file.
4375         * wcsmbs/isoc99_swscanf.c: New file.
4376         * wcsmbs/isoc99_wscanf.c: New file.
4377         * wcsmbs/isoc99_vwscanf.c: New file.
4378         * wcsmbs/isoc99_vfwscanf.c: New file.
4379         * libio/libio.h (_IO_FLAGS2_SCANF_STD): Define.
4380         * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): Also
4381         clear _IO_FLAGS2_SCANF_STD bit from _flags2.
4382         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Don't
4383         handle %as, %aS and %a[ if _IO_FLAGS2_SCANF_STD is set in _flags2.
4384         * stdio-common/scanf14.c: New test.
4385         * stdio-common/scanf15.c: New test.
4386         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add
4387         isoc99_scanf, isoc99_fscanf, isoc99_sscanf,
4388         isoc99_vscanf, isoc99_vfscanf, isoc99_vsscanf,
4389         isoc99_wscanf, isoc99_fwscanf, isoc99_swscanf,
4390         isoc99_vwscanf, isoc99_vfwscanf and isoc99_vswscanf.
4391         * sysdeps/ieee754/ldbl-opt/Versions (libc): Export
4392         __nldbl___isoc99_scanf@@GLIBC_2.7,
4393         __nldbl___isoc99_fscanf@@GLIBC_2.7,
4394         __nldbl___isoc99_sscanf@@GLIBC_2.7,
4395         __nldbl___isoc99_vscanf@@GLIBC_2.7,
4396         __nldbl___isoc99_vfscanf@@GLIBC_2.7,
4397         __nldbl___isoc99_vsscanf@@GLIBC_2.7,
4398         __nldbl___isoc99_wscanf@@GLIBC_2.7,
4399         __nldbl___isoc99_fwscanf@@GLIBC_2.7,
4400         __nldbl___isoc99_swscanf@@GLIBC_2.7,
4401         __nldbl___isoc99_vwscanf@@GLIBC_2.7,
4402         __nldbl___isoc99_vfwscanf@@GLIBC_2.7
4403         and __nldbl___isoc99_vswscanf@@GLIBC_2.7.
4404         * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__isoc99_scanf,
4405         __isoc99_fscanf, __isoc99_sscanf, __isoc99_vscanf,
4406         __isoc99_vfscanf, __isoc99_vsscanf, __isoc99_wscanf,
4407         __isoc99_fwscanf, __isoc99_swscanf, __isoc99_vwscanf,
4408         __isoc99_vfwscanf, __isoc99_vswscanf): Add NLDBL_DECL.
4409         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
4410         (__nldbl___isoc99_scanf, __nldbl___isoc99_fscanf,
4411         __nldbl___isoc99_sscanf, __nldbl___isoc99_vscanf,
4412         __nldbl___isoc99_vfscanf, __nldbl___isoc99_vsscanf,
4413         __nldbl___isoc99_wscanf, __nldbl___isoc99_fwscanf,
4414         __nldbl___isoc99_swscanf, __nldbl___isoc99_vwscanf,
4415         __nldbl___isoc99_vfwscanf, __nldbl___isoc99_vswscanf): New
4416         functions.
4417         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vfscanf.c: New file.
4418         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_swscanf.c: New file.
4419         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vwscanf.c: New file.
4420         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_wscanf.c: New file.
4421         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_scanf.c: New file.
4422         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_sscanf.c: New file.
4423         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vsscanf.c: New file.
4424         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_fwscanf.c: New file.
4425         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vfwscanf.c: New file.
4426         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vswscanf.c: New file.
4427         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vscanf.c: New file.
4428         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_fscanf.c: New file.
4429
4430         * stdio-common/Makefile (tests): Add scanf13.
4431         (scanf13-ENV): New.
4432         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Handle
4433         m modifier followed by l.
4434         (STRING_ARG): Add width argument.
4435         (_IO_vfscanf_internal) <case L_('c')>: Handle %mc.
4436         <case L_('C')>: Handle %mlc and %mC.
4437         <case L_('s'), case L_('S'), case L_('[')>: Adjust STRING_ARG
4438         arguments.
4439         * stdio-common/scanf13.c: New test.
4440
4441         * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): Clear
4442         the _IO_FLAGS2_FORTIFY bit from _flags2 rather than _flags.
4443
4444 2007-09-18  Ulrich Drepper  <drepper@redhat.com>
4445
4446         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Correct return value
4447         type and __THROW marker of splice, vmsplice, and tee.
4448         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
4449         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
4450         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
4451         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
4452         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
4453         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
4454         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
4455         * sysdeps/unix/sysv/linux/syscalls.list: Mark splice, vmsplice, and tee
4456         as cancellation points.
4457
4458 2003-11-01  Daniel Jacobowitz  <dan@debian.org>
4459
4460         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_discover_osversion): Don't
4461         parse more than three parts of the version number.
4462
4463 2007-09-15  Ulrich Drepper  <drepper@redhat.com>
4464
4465         * stdio-common/vfscanf.c (_IO_vfwscanf): Add support for 'm'
4466         modifier.  Patch by Jakub Jelinek.
4467
4468 2007-08-26  Jakub Jelinek  <jakub@redhat.com>
4469
4470         * sysdeps/unix/sysv/linux/i386/Makefile (sysdep_routines): Add
4471         call_fallocate in misc subdir.
4472         * sysdeps/unix/sysv/linux/i386/call_fallocate.S: New file.
4473         * sysdeps/unix/sysv/linux/i386/syscalls.list (fallocate64): Remove.
4474         * sysdeps/unix/sysv/linux/i386/posix_fallocate.c: Use __call_fallocate
4475         instead of __fallocate64.
4476         * sysdeps/unix/sysv/linux/i386/posix_fallocate64.c: Likewise.
4477
4478 2007-09-15  Jakub Jelinek  <jakub@redhat.com>
4479
4480         * rt/Versions (librt): Export __mq_open_2@@GLIBC_2.7.
4481         * rt/Makefile (headers): Add bits/mqueue2.h.
4482         * rt/mqueue.h: Include bits/mqueue2.h if -D_FORTIFY_SOURCE=2,
4483         optimizing with GCC and __va_arg_pack_len is defined.
4484         * rt/bits/mqueue2.h: New file.
4485         * rt/mq_open.c (__mq_open): Renamed from mq_open.
4486         (mq_open): New strong_alias.
4487         (__mq_open_2): New function.
4488         * sysdeps/unix/sysv/linux/mq_open.c (__mq_open): Renamed from mq_open.
4489         (mq_open): New strong_alias.
4490         (__mq_open_2): New function.
4491         * debug/Versions (libc): Export __fortify_fail@@GLIBC_PRIVATE.
4492         * Versions.def (librt): Add GLIBC_2.7 version.
4493         * debug/fortify_fail.c (__fortify_fail): Add libc_hidden_def.
4494         * include/stdio.h (__fortify_fail): Add libc_hidden_proto.
4495
4496         * misc/sys/cdefs.h (__errordecl, __va_arg_pack_len): Define.
4497         * io/fcntl.h: Include bits/fcntl2.h when __va_arg_pack_len
4498         is defined rather than when not C++.
4499         * io/bits/fcntl2.h (__open_alias, __open64_alias, __openat_alias,
4500         __openat64_alias): New redirects.
4501         (__open_too_many_args, __open_missing_mode, __open64_too_many_args,
4502         __open64_missing_mode, __openat_too_many_args, __openat_missing_mode,
4503         __openat64_too_many_args, __openat64_missing_mode): New __errordecls.
4504         (open, open64, openat, openat64): Rewrite as __extern_always_inline
4505         functions instead of function-like macros.
4506
4507 2007-09-14  H.J. Lu  <hongjiu.lu@intel.com>
4508
4509         * sysdeps/i386/i586/memcpy.S (__memcpy_chk): New definition.
4510         * sysdeps/i386/i586/mempcpy.S (__memcpy_chk): New definition.
4511         * sysdeps/i386/i586/memset.S (__memset_chk): New definition.
4512
4513 2007-09-15  Mike Frysinger  <vapier@gentoo.org>
4514
4515         * inet/inet_net.c: Reset digit to 0 for inputs starting with "0x".
4516         * inet/tst-network.c (tests): Add edge case tests for "0", "0x", "0x0".
4517
4518 2007-09-14  Mike Frysinger  <vapier@gentoo.org>
4519
4520         * inet/tst-network.c: Increment ERRORS for failing tests.
4521
4522 2007-09-07  Jakub Jelinek  <jakub@redhat.com>
4523
4524         * misc/sys/cdefs.h (__va_arg_pack): Define for GCC 4.3+.
4525         * misc/bits/syslog.h (syslog): When __va_arg_pack is defined,
4526         implement as __extern_always_inline function.
4527         (vsyslog): Define as __extern_always_inline function unconditionally.
4528         * libio/bits/stdio2.h (sprintf, snprintf, printf, fprintf):
4529         When __va_arg_pack is defined, implement as __extern_always_inline
4530         functions.
4531         (vsprintf, vsnprintf, vprintf, vfprintf): Define as
4532         __extern_always_inline functions unconditionally.
4533         * libio/bits/stdio.h (vprintf): Ifdef out the inline when
4534         bits/stdio2.h will be included.
4535         * wcsmbs/bits/wchar2.h (__swprintf_alias): New redirect.
4536         (swprintf, wprintf, fwprintf): When __va_arg_pack is defined,
4537         implement as __extern_always_inline functions.
4538         (vswprintf, vwprintf, vfwprintf): Define as
4539         __extern_always_inline functions unconditionally.
4540         * debug/tst-chk1.c (do_test): Enable remaining tests for C++.
4541
4542 2007-09-03  Jakub Jelinek  <jakub@redhat.com>
4543
4544         * misc/sys/cdefs.h (__extern_inline, __extern_always_inline): Only
4545         define in C++ for GCC 4.3+, in C++ always use __gnu_inline__
4546         attribute.
4547         * include/features.h (__USE_EXTERN_INLINES): Define only when
4548         __extern_inline is defined.
4549         * stdlib/stdlib.h: Include bits/stdlib.h when __extern_always_inline
4550         is defined instead of when not __cplusplus.
4551         * misc/sys/syslog.h: Include bits/syslog.h when __extern_always_inline
4552         is defined instead of when not __cplusplus.
4553         * socket/sys/socket.h: Include bits/socket2.h when
4554         __extern_always_inline is defined instead of when not __cplusplus.
4555         * libio/stdio.h: Include bits/stdio2.h when __extern_always_inline
4556         is defined instead of when not __cplusplus.
4557         * posix/unistd.h: Include bits/unistd.h when __extern_always_inline
4558         is defined instead of when not __cplusplus.
4559         * string/string.h: Include bits/string3.h when __extern_always_inline
4560         is defined instead of when not __cplusplus.
4561         * wcsmbs/wchar.h: Include bits/wchar2.h when __extern_always_inline
4562         is defined instead of when not __cplusplus.
4563         (btowc, wctob): Don't guard the inlines with ifndef __cplusplus.
4564         * io/fcntl.h: Don't include bits/fcntl2.h if __extern_always_inline
4565         is not defined.
4566         * misc/bits/syslog-ldbl.h: Guard *_chk stuff with
4567         defined __extern_always_inline instead of !defined __cplusplus.
4568         * libio/bits/stdio-ldbl.h: Likewise.
4569         * wcsmbs/bits/wchar-ldbl.h: Likewise.
4570         * misc/bits/syslog.h (syslog): Don't define for C++.
4571         (vsyslog): Use __extern_always_inline function for C++ instead of
4572         a macro.
4573         * libio/bits/stdio.h (__STDIO_INLINE): Define to __extern_inline
4574         whenever that macro is defined.
4575         (vprintf): Don't provide the inline for C++.
4576         (fread_unlocked, fwrite_unlocked): Don't define the macros for C++.
4577         * libio/bits/stdio2.h (sprintf, snprintf, printf, fprintf): Don't
4578         define the macros for C++.
4579         (vsprintf, vsnprintf, vprintf, vfprintf): Define as
4580         __extern_always_inline functions for C++.
4581         * io/sys/stat.h (stat, lstat, fstat, fstatat, mknod, mknodat,
4582         stat64, lstat64, fstat64, fstatat64): Don't define if not
4583         __USE_EXTERN_INLINES.
4584         * wcsmbs/bits/wchar2.h: Fix #error message.
4585         (swprintf, wprintf, fwprintf): Don't define the macros for C++.
4586         (vswprintf, vwprintf, vfwprintf): Define using
4587         __extern_always_inline functions for C++.
4588         * string/bits/string3.h: Don't #undef macros if __cplusplus.
4589         (memcpy, memmove, mempcpy, memset, bcopy, bzero, strcpy, stpcpy,
4590         strncpy, strcat, strncat): Define as __extern_always_inline
4591         functions instead of macros for C++.
4592         * math/bits/cmathcalls.h: Guard __extern_inline routines with
4593         defined __extern_inline.
4594         * sysdeps/alpha/fpu/bits/mathinline.h (__MATH_INLINE): Define
4595         to __extern_inline whenever that macro is defined.
4596         * sysdeps/ia64/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
4597         * sysdeps/i386/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
4598         * sysdeps/i386/i486/bits/string.h (__STRING_INLINE): Likewise.
4599         * sysdeps/s390/bits/string.h (__STRING_INLINE): Likewise.
4600         * sysdeps/s390/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
4601         * sysdeps/powerpc/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
4602         * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
4603         * sysdeps/sparc/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
4604         * sysdeps/unix/sysv/linux/sys/sysmacros.h (gnu_dev_major,
4605         gnu_dev_minor, gnu_dev_makedev): Remove __extern_inline from
4606         prototypes.  Only provide __extern_inline routines if
4607         __USE_EXTERN_INLINES.
4608         * debug/Makefile: Add rules to build and run tst-{,lfs}chk{4,5,6}
4609         tests.
4610         * debug/tst-chk1.c (do_prepare, do_test): Allow compilation as C++.
4611         For now avoid some *printf tests in C++.  Skip all testing
4612         if __USE_FORTIFY_LEVEL is defined, but __extern_always_inline macro
4613         is not.
4614         * debug/tst-chk4.cc: New file.
4615         * debug/tst-chk5.cc: New file.
4616         * debug/tst-chk6.cc: New file.
4617         * debug/tst-lfschk4.cc: New file.
4618         * debug/tst-lfschk5.cc: New file.
4619         * debug/tst-lfschk6.cc: New file.
4620         * include/wchar.h (__vfwprintf_chk, __vswprintf_chk): Avoid
4621         prototypes in C++.
4622         * include/stdio.h (__sprintf_chk, __snprintf_chk, __vsprintf_chk,
4623         __vsnprintf_chk, __printf_chk, __fprintf_chk, __vprintf_chk,
4624         __vfprintf_chk, __fgets_unlocked_chk, __fgets_chk): Likewise.
4625
4626 2007-09-13  Ulrich Drepper  <drepper@redhat.com>
4627
4628         * po/cs.po: Update from translation team.
4629
4630 2007-09-11  Roland McGrath  <roland@redhat.com>
4631
4632         * posix/Makefile ($(objpfx)getconf.speclist): Make it empty if cross
4633         compiling.
4634
4635 2007-09-07  Samuel Thibault  <samuel.thibault@ens-lyon.org>
4636
4637         * sysdeps/mach/hurd/bits/ioctls.h (TAB3): New macro.
4638
4639 2007-09-05  Roland McGrath  <roland@redhat.com>
4640
4641         * manual/signal.texi (Signaling Another Process): Typo fix.
4642         From Karl Berry <karl@freefriends.org>.
4643
4644 2007-08-29  Ulrich Drepper  <drepper@redhat.com>
4645
4646         * sysdeps/unix/sysv/linux/check_pf.c (IFA_F_OPTIMISTIC): Define to
4647         zero if not defined.
4648         (make_request): Recognize optimistic addresses and treat them like
4649         deprecated addresses.
4650         Reported by Neil Horman <nhorman@redhat.com>.
4651
4652 2007-08-28  Ulrich Drepper  <drepper@redhat.com>
4653
4654         * nscd/connections.c (send_ro_fd): Also transfer file size.
4655         * nscd/nscd_helper.c (get_mapping): If nscd also transfers the
4656         file size don't call fstat.
4657
4658         * nscd/nscd_helper.c (get_mapping): Avoid the pread call, just go
4659         ahead and map the file.  This should always be correct and we can
4660         catch problems later.
4661
4662 2007-08-28  Jakub Jelinek  <jakub@redhat.com>
4663
4664         * libio/bits/stdio2.h (__fread_chk, __fread_unlocked_chk): New
4665         prototypes.
4666         (__fread_alias, __fread_unlocked_alias): New aliases.
4667         (fread): New extern inline.
4668         (fread_unlocked): Likewise.  Undef macro before definition of
4669         the inline function.
4670         * debug/Makefile (routines): Add fread_chk and fread_u_chk.
4671         (CFLAGS-fread_chk.c, CFLAGS-fread_u_chk.c): Add.
4672         * debug/Versions (libc): Export __fread_chk@@GLIBC_2.7
4673         and __fread_unlocked_chk@@GLIBC_2.7.
4674         * debug/fread_chk.c: New file.
4675         * debug/fread_u_chk.c: New file.
4676         * debug/tst-chk1.c (do_test): Add fread and fread_unlocked tests.
4677
4678 2007-08-27  Jakub Jelinek  <jakub@redhat.com>
4679
4680         * sysdeps/unix/sysv/linux/syscalls.list
4681         (personality): Change caller to EXTRA.
4682
4683 2007-08-25  Ulrich Drepper  <drepper@redhat.com>
4684
4685         * iconvdata/iso-2022-kr.c (BODY): Fake initialization of array buf
4686         to keep gcc quiet.
4687         * iconvdata/iso-2022-cn.c (BODY): Likewise.
4688
4689         * locale/programs/ld-collate.c (collate_output): Avoid warning if
4690         NDEBUG is defined.
4691
4692         * Makerules: Use -p option with mkdir.
4693
4694         * sunrpc/key_prot.c (xdr_unixcred): Work around gcc alias warning.
4695         * nis/nis_xdr.c (_xdr_nis_server): Likewise.
4696         (_xdr_directory_obj): Likewise.
4697         (xdr_entry_obj): Likewise.
4698         (xdr_group_obj): Likewise.
4699         (xdr_link_obj): Likewise.
4700         (xdr_table_obj): Likewise.
4701         (_xdr_nis_result): Likewise.
4702         (_xdr_ns_request): Likewise.
4703         (_xdr_ib_request): Likewise.
4704         (_xdr_nis_taglist): Likewise.
4705         (xdr_cback_data): Likewise.
4706         * nis/yp_xdr.c (xdr_ypmaplist): Likewise.
4707         (xdr_ypresp_maplist): Likewise.
4708
4709         * stdio-common/Makefile: Avoid format string warning for tst-sprint.
4710
4711         * posix/regex_internal.h: Prevent some declarations and definitions
4712         to be seen when used in tests.
4713
4714         * posix/tst-rfc3484.c (__idna_to_unicode_lzlz): Initialize *OUTPUT.
4715         * posix/tst-rfc3484-2.c (__idna_to_unicode_lzlz): Likewise.
4716
4717         * debug/Makefile: Disable format checking when compiling tst-chk?.c.
4718
4719         * config.make.in (datarootdir): Add to shut up configure.
4720
4721         * sysdeps/x86_64/cacheinfo.c (handle_amd): Fix computation of
4722         associativity for fully-associative caches.
4723
4724         * sysdeps/x86_64/cacheinfo.c (handle_amd): Handle L3 cache
4725         requests.  Fill on more associativity values for L2.
4726         Patch mostly by Evandro Menezes.
4727
4728 2007-08-24  Ulrich Drepper  <drepper@redhat.com>
4729
4730         * sysdeps/unix/sysv/linux/x86_64/init-first.c
4731         (_libc_vdso_platform_setup): Avoid using exported variable by using
4732         alias.
4733
4734         * resolv/arpa/nameser.h (NS_OPT_DNSSEC_OK): Define.
4735
4736         * sysdeps/unix/sysv/linux/i386/syscalls.list: No reason to mark
4737         fallocate64 as EXTRA.  It is not referenced if the symbol isn't
4738         defined.
4739
4740 2007-08-23  Ulrich Drepper  <drepper@redhat.com>
4741
4742         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Correctly
4743         align stack for call if pltexit is to be used.
4744
4745         [BZ #3924]
4746         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Correctly
4747         align for function call in case pltexit has to be called later.
4748
4749         * sysdeps/i386/dl-trampoline.S (_dl_runtime_resolve): Avoid
4750         implicit atomic operation when storing function pointer.
4751         (_dl_runtime_profile): Likewise.
4752
4753 2007-08-17  Jakub Jelinek  <jakub@redhat.com>
4754
4755         * nis/nis_table.c (nis_list): Don't fail if __follow_path returned
4756         NIS_NOTFOUND.
4757
4758 2007-08-21  Ulrich Drepper  <drepper@redhat.com>
4759
4760         [BZ #4566]
4761         * string/strtok.c: Fix typo in comment.
4762
4763         [BZ #4582]
4764         * debug/segfault.c: Fix typos in comments.
4765
4766         [BZ #4588]
4767         * stdio-common/tempnam.c: Fix comment, it is not checked that
4768         TMPDIR points to a writable directory.
4769
4770         [BZ #4726]
4771         * resolv/res_send.c (__libc_res_nsend): Initialize all of the
4772         memory allocated for the name server address.
4773
4774         [BZ #4946]
4775         * nscd/connections.c (handle_request): Using sendfile always
4776         requires that mmap is used for the database.
4777         Patch by Petr Baudis <pasky@suse.cz>.
4778
4779         [BZ #4905]
4780         * nscd/hstcache.c (cache_addhst): When reloading an entry which
4781         suddenly has two or more addresses, ignore it and remove the old
4782         entry.
4783
4784         [BZ #4814]
4785         * resolv/res_hconf.c: Prepare for compiling outside libc.
4786         * nscd/res_hconf.c: New file.
4787         * nscd/Makefile (nscd-modules): Add res_hconf.  Add rules to build
4788         the new file.
4789         * nscd/gethstbynm2_r.c (NEED__RES_HCONF): Define.
4790         * nscd/gethstbyad_r.c (NEED__RES_HCONF): Likewise.
4791
4792         * nscd/hstcache.c (cache_addhst): Minimal optimization.
4793
4794         [BZ #4925]
4795         * debug/pcprofiledump.c: Turn on internationalization by calling
4796         setlocale.  Patch mostly by Benno Schulenberg.
4797
4798         [BZ #4936]
4799         * iconv/gconv.c (__gconv): If flush was successful, clear rest of
4800         the state.
4801         * iconvdata/Makefile: Add rules to build and run bug-iconv5.
4802         * iconvdata/bug-iconv5.c: New file.
4803
4804 2007-08-04  Carlos O'Donell  <carlos@systemhalted.org>
4805
4806         [BZ #4896]
4807         * elf/elf.h: Define R_PARISC_PLABEL21L, R_PARISC_PLABEL14R,
4808         R_PARISC_GNU_VTENTRY, R_PARISC_GNU_VTINHERIT, R_PARISC_TLS_GD21L,
4809         R_PARISC_TLS_GD14R, R_PARISC_TLS_GDCALL, R_PARISC_TLS_LDM21L,
4810         R_PARISC_TLS_LDM14R, R_PARISC_TLS_LDMCALL, R_PARISC_TLS_LDO21L,
4811         R_PARISC_TLS_LDO14R, R_PARISC_TLS_DTPMOD32, R_PARISC_TLS_DTPMOD64,
4812         R_PARISC_TLS_DTPOFF32, R_PARISC_TLS_DTPOFF64, R_PARISC_TLS_LE21L,
4813         R_PARISC_TLS_LE14R, R_PARISC_TLS_IE21L, R_PARISC_TLS_IE14R,
4814         R_PARISC_TLS_TPREL32, R_PARISC_TLS_TPREL64.
4815
4816 2007-08-21  Ulrich Drepper  <drepper@redhat.com>
4817
4818         [BZ #4937]
4819         * elf/do-lookup.h (do_lookup_x): Minimal improvement in hash
4820         lookup loop.  Suggested by John Reiser.
4821
4822 2007-08-21  Jakub Jelinek  <jakub@redhat.com>
4823
4824         * sysdeps/unix/sysv/linux/alpha/sysdep.h: Include tls.h.
4825
4826 2007-08-20  Ulrich Drepper  <drepper@redhat.com>
4827
4828         * csu/libc-start.c: Don't handle VDSO_SETUP here.
4829         * sysdeps/unix/sysv/linux/init-first.c: Handle it here instead.
4830         * sysdeps/unix/sysv/linux/x86_64/libc-start.c: Renamed to...
4831         * sysdeps/unix/sysv/linux/x86_64/init-first.c: ...this.  New file.
4832         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Move VDSO_SETUP code
4833         to...
4834         * sysdeps/unix/sysv/linux/x86_64/init-first.c: ...here.  New file.
4835
4836 2007-08-18  Ulrich Drepper  <drepper@redhat.com>
4837
4838         * po/nl.po: Update from translation team.
4839
4840 2007-08-16  Andreas Jaeger  <aj@suse.de>
4841
4842         * locale/localeinfo.h: Make _nl_category_name_idxs extern.
4843         Reported by Peter Festner <peter.festner@ewetel.net>.
4844
4845 2007-08-17  Jakub Jelinek  <jakub@redhat.com>
4846
4847         * login/tst-grantpt.c (test_einval): Add 3rd argument to open.
4848
4849 2007-08-16  Jakub Jelinek  <jakub@redhat.com>
4850
4851         * elf/Makefile ($(objpfx)ld.so): Use readelf -s and awk instead of nm -u
4852         to check for undefined symbols.
4853
4854         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone):
4855         If the syscall fails, set errno to the actual returned error number
4856         rather than EINVAL.
4857         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__clone): If
4858         arguments are incorrect, set errno to EINVAL, if the syscall
4859         fails, set errno to the actual returned error number.
4860
4861         * stdlib/bits/stdlib-ldbl.h (__strtold_internal): Remove.
4862         * wcsmbs/bits/wchar-ldbl.h (__wcstold_internal): Remove.
4863
4864         * sysdeps/sparc/sparc32/sparcv9b/memcpy.S: Moved to...
4865         * sysdeps/sparc/sparc32/sparcv9/sparcv9b/memcpy.S: ... here.  New
4866         file.
4867         (ASI_PNF, ASI_BLK_P): Don't define.
4868         * sysdeps/sparc/sparc32/sparcv9v/memcpy.S: Moved to...
4869         * sysdeps/sparc/sparc32/sparcv9/sparcv9v/memcpy.S: ... here.  New
4870         file.
4871         * sysdeps/sparc/sparc32/sparcv9v/memset.S: Moved to...
4872         * sysdeps/sparc/sparc32/sparcv9/sparcv9v/memset.S: ... here.  New
4873         file.
4874
4875 2007-08-15  Jakub Jelinek  <jakub@redhat.com>
4876
4877         * sysdeps/sparc/fpu/fraiseexcpt.c (__feraiseexcept): Fix raising
4878         FE_UNDERFLOW on Niagara CPUs.
4879
4880         * sysdeps/sparc/fpu/feholdexcpt.c (feholdexcept): Clear all
4881         exceptions.
4882
4883 2007-08-14  Jakub Jelinek  <jakub@redhat.com>
4884
4885         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_runtime_setup): No
4886         need to check GLRO(dl_hwcap) & HWCAP_SPARC_FLUSH on sparcv9.
4887         (sparc_fixup_plt): Add do_flush argument instead of figuring whether
4888         flush should be used or not inside of the function.
4889         (elf_machine_fixup_plt, elf_machine_rela): Adjust caller.
4890
4891         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone,
4892         __thread_start): Use HIDDEN_JUMPTARGET.
4893         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__clone,
4894         __thread_start): Likewise.
4895         * sysdeps/unix/sysv/linux/sparc/sysdep.h (JUMPTARGET): Define.
4896
4897         * sysdeps/ieee754/ldbl-64-128/strtold_l.c (__STRTOF): Declare.
4898         Add libc_hidden_proto.
4899         (STRTOF): Add libc_hidden_proto.
4900         (___new_strtold_l, ___new_wcstold_l): New weak aliases.
4901         (strtold_l, wcstold_l): Use them as second argument for
4902         long_double_symbol.
4903
4904 2007-08-14  Ulrich Drepper  <drepper@redhat.com>
4905
4906         * elf/dl-misc.c: Undo last change.  The kernel won't allow it.
4907
4908 2007-08-13  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
4909
4910         * stdlib/strtold_l.c: Include wchar.h if needed.  Add libc_hidden_def.
4911
4912 2007-08-14  Ulrich Drepper  <drepper@redhat.com>
4913
4914         * po/bg.po: New file.  From the translation team.
4915
4916 2007-08-13  Jakub Jelinek  <jakub@redhat.com>
4917
4918         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PSELECT,
4919         __ASSUME_PPOLL, __ASSUME_ATFCTS, __ASSUME_SET_ROBUST_LIST,
4920         __ASSUME_UTIMENSAT, __ASSUME_FALLOCATE): Update per-arch conditions
4921         when each feature was introduced.
4922
4923         * sysdeps/unix/sysv/linux/dl-vdso.c: Don't include dl-hash.h.
4924         * sysdeps/unix/sysv/linux/dl-vdso.h: Don't include dl-hash.h if NDEBUG.
4925         (CHECK_HASH): New macro.
4926         (PREPARE_VERSION): Use it.
4927
4928         * sysdeps/unix/sysv/linux/pselect.c (__generic_pselect): Only provide
4929         prototype if not __ASSUME_PSELECT.
4930         * sysdeps/unix/sysv/linux/ppoll.c (__generic_ppoll): Only provide
4931         prototype if not __ASSUME_PPOLL.
4932
4933         * sysdeps/unix/sysv/linux/dl-osinfo.h (ROUND): #undef after use.
4934
4935         * sysdeps/unix/clock_settime.c (freq, __pthread_clock_settime,
4936         hp_timing_settime): Don't define or declare if HANDLED_CPUTIME
4937         is defined.
4938
4939 2007-08-13  Ulrich Drepper  <drepper@redhat.com>
4940
4941         * sysdeps/unix/sysv/linux/x86_64/libc-start.c
4942         (_libc_vdso_platform_setup): If vDSO is not available point
4943         __vdso_gettimeofday to the vsyscall.
4944         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S [SHARED]: Use
4945         __vdso_gettimeofday instead of vsyscall.
4946
4947 2007-08-13  Jakub Jelinek  <jakub@redhat.com>
4948
4949         * nscd/servicescache.c: Include kernel-features.h.
4950         * nscd/gai.c: Likewise.
4951         * sysdeps/unix/sysv/linux/statfs64.c: Likewise.
4952         * sysdeps/unix/sysv/linux/fstatfs64.c: Likewise.
4953         * sysdeps/unix/sysv/linux/fxstatat.c: Likewise.
4954         * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S: Likewise.
4955         * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S: Likewise.
4956         * sysdeps/unix/sysv/linux/xstatconv.c: Likewise.
4957         * sysdeps/unix/sysv/linux/if_index.c: Likewise.
4958         * sysdeps/unix/sysv/linux/sparc/sparc64/xstat.c: Likewise.
4959         * sysdeps/unix/sysv/linux/ifaddrs.c: Likewise.
4960
4961 2007-08-12  Ulrich Drepper  <drepper@redhat.com>
4962
4963         * elf/dl-dst.h: No need for _dl_dst_count, _dl_dst_substitute,
4964         and _dl_get_origin defines anymore.
4965
4966         * sysdeps/unix/sysv/linux/clock_gettime.c (maybe_syscall_gettime_cpu):
4967         Build fix for systems which might lack POSIX timer support.
4968
4969         * sysdeps/unix/sysv/linux/x86_64/libc-start.c
4970         (_libc_vdso_platform_setup): Mangle function pointers before storing
4971         them.
4972         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_VSYSCALL):
4973         Demangle vdso pointer before use.
4974         (INTERNAL_VSYSCALL): Likewise.
4975
4976         * elf/cache.c (primes): Mark as const.
4977         Noted by Roland McGrath.
4978
4979 2007-08-01  Andreas Jaeger  <aj@suse.de>
4980             Jakub Jelinek  <jakub@redhat.com>
4981
4982         * elf/ldconfig.c (opt_ignore_aux_cache): Add new option.
4983         (options): Add option.
4984         (parse_opt): Handle option.
4985         (manual_link): Adjust process_file caller.  Call implicit_soname.
4986         (search_dir): Formatting.  Use and populate auxiliary cache.
4987         (main): Load and save auxiliary cache.
4988         * elf/readlib.c (process_file): Add stat_buf argument.  Pass struct
4989         stat64 from fstat64 to caller.
4990         (implicit_soname): New function.
4991         * elf/readelflib.c (process_elf_file): If DT_SONAME is not present,
4992         leave *soname as NULL.
4993         * elf/cache.c: Include libgen.h.
4994         (print_entry, print_cache, compare, save_cache, add_to_cache):
4995         Formatting and cleanups.
4996         (aux_cache_entry_id, aux_cache_entry, aux_cache_file_entry,
4997         aux_cache_file): New structures.
4998         (AUX_CACHEMAGIC): Define.
4999         (primes): New array.
5000         (aux_hash_size, aux_hash): New variables.
5001         (aux_cache_entry_id_hash, nextprime, init_aux_cache,
5002         search_aux_cache, insert_to_aux_cache, add_to_aux_cache,
5003         load_aux_cache, save_aux_cache): New functions.
5004         * sysdeps/generic/ldconfig.h (_PATH_LDCONFIG_AUX_CACHE): Define.
5005         (init_aux_cache, search_aux_cache, add_to_aux_cache,
5006         load_aux_cache, save_aux_cache, implicit_soname): New prototypes.
5007         (process_file): Adjust prototype.
5008
5009 2007-08-12  Jakub Jelinek  <jakub@redhat.com>
5010
5011         * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h: Include stddef.h
5012         with __need_size_t.
5013
5014 2007-08-12  Ulrich Drepper  <drepper@redhat.com>
5015
5016         * sysdeps/unix/sysv/linux/dl-vdso.c (_dl_vdso_vsym): Expect
5017         r_found_version structure as second parameter.
5018         * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION): Define.
5019         (_dl_vdso_vsym): Change type of second parameter accordingly.
5020         * sysdeps/unix/sysv/linux/x86-64/libc-start.c
5021         (_libc_vdso_platform_setup): Adjust.
5022         * sysdeps/unix/sysv/linux/powerpc/libc-start.c
5023         (_libc_vdso_platform_setup): Likewise.
5024
5025         * sysdeps/unix/sysv/linux/powerpc/dl-vdso.c: Move to...
5026         * sysdeps/unix/sysv/linux/dl-vdso.c: ...here.
5027         * sysdeps/unix/sysv/linux/powerpc/dl-vdso.h: Move to...
5028         * sysdeps/unix/sysv/linux/dl-vdso.h: ...here.
5029         * csu/libc-start.c: Pretty printing.
5030         Use VDSO_SETUP if defined.
5031         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Define VDSO_SETUP
5032         and let generic code call into _libc_vdso_platform_setup.
5033         * sysdeps/unix/sysv/linux/x86_64/libc-start.c: New file.
5034         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: New file.
5035         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Pretty printing.
5036         Define INLINE_VSYSCALL and INTERNAL_VSYSCALL.
5037         * sysdeps/unix/sysv/linux/x86_64/Versions: Export __vdso_clock_gettime
5038         for GLIBC_PRIVATE.
5039         * sysdeps/unix/sysv/linux/x86_64/Makefile [subdir=elf]
5040         (sysdep_rountines): Add dl-vdso.
5041
5042         * sysdeps/unix/sysv/linux/powerpc/Makefile: Use sysdep_routines instead
5043         of routines.
5044
5045         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Add
5046         attribute_hidden to __vdso_gettimeofday prototype.
5047
5048 2007-08-12  Roland McGrath  <roland@redhat.com>
5049
5050         * manual/stdio.texi (Variable Arguments Output): Fix xref to gcc manual.
5051         From: Karl Berry <karl@freefriends.org>.
5052
5053 2007-08-11  Ulrich Drepper  <drepper@redhat.com>
5054
5055         * elf/dl-misc.c (_dl_sysdep_read_whole_file): We really don't need
5056         an atime update for the files we read.
5057
5058 2007-08-10  Ulrich Drepper  <drepper@redhat.com>
5059
5060         * shadow/lckpwdf.c (__lckpwdf): Use O_CLOEXEC if possible.
5061
5062         * nscd/connections.c: Use O_CLOEXEC if possible.  Use mkostemp
5063         instead of mkstemp.
5064
5065         * misc/Makefile (routines): Add mkostemp and mkostemp64.
5066         * misc/Versions: Export mkostemp and mkostemp64 for GLIBC_2.7.
5067         * misc/mkostemp.c: New file.
5068         * misc/mkostemp64.c: New file.
5069         * stdlib/stdlib.h: Declare the new functions.
5070         * sysdeps/posix/tempname.c: Add new parameter which is added to
5071         the flags for open.  Remove __GT_BIGFILE handling.
5072         * stdio-common/tempname.c: Likewise.
5073         * include/stdio.h: Adjust __gen_tempname prototype.
5074         Renumber __GT_* constants.
5075         * libio/oldtmpfile.c: Adjust for __gen_tempname interface change.
5076         * misc/mkdtemp.c: Likewise.
5077         * misc/mkstemp.c: Likewise.
5078         * misc/mkstemp64.c: Likewise.
5079         * misc/mktemp.c: Likewise.
5080         * stdio-common/tempnam.c: Likewise.
5081         * stdio-common/tmpfile.c: Likewise.
5082         * stdio-common/tmpfile64.c: Likewise.
5083         * stdio-common/tmpnam.c: Likewise.
5084         * stdio-common/tmpnam_r.c: Likewise.
5085
5086 2007-08-10  Roland McGrath  <roland@frob.com>
5087
5088         * sysdeps/mach/hurd/bits/ioctls.h (NLDLY, TABDLY, BSDLY, VTDLY):
5089         New macros.
5090         (NLDELAY, CRDELAY, TBDELAY, BSDELAY, VTDELAY): Define to those.
5091         Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
5092
5093 2007-08-10  Ulrich Drepper  <drepper@redhat.com>
5094
5095         * nss/nss_files/files-XXX.c (internal_setent): Use O_CLOEXEC if
5096         possible.
5097         * nss/nss_files/files-alias.c (internal_setent): Likewise.
5098         * nss/Makefile (libnss_files-routines): Add files-have_o_cloexec.
5099         * nss/nss_files/files-have_o_cloexec.c: New file.
5100
5101         * sysdeps/unix/sysv/linux/shm_open.c (shm_open): Use O_CLOEXEC if
5102         available.
5103
5104 2007-08-10  Jakub Jelinek  <jakub@redhat.com>
5105
5106         * sysdeps/ieee754/ldbl-128ibm/strtold_l.c (___new_strtold_l,
5107         ___new_wcstold_l): New weak aliases.
5108         (strtold_l, wcstold_l): Use them as second argument for
5109         long_double_symbol.
5110
5111 2007-08-09  Ulrich Drepper  <drepper@redhat.com>
5112
5113         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Use correct
5114         register in test for error.
5115
5116         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_CLOEXEC): Define.
5117         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (O_CLOEXEC): Likewise.
5118
5119         * po/sv.po: Update from translation team.
5120
5121 2007-08-06  Roland McGrath  <roland@redhat.com>
5122
5123         * include/stdlib.h: Add libc_hidden_proto for strto*, __strto*_l.
5124         Remove __strto*_l inlines.
5125         * include/wchar.h: Add libc_hidden_proto for wcsto*, __wcsto*_l.
5126         * stdlib/strtod.c: Add libc_hidden_def.
5127         * stdlib/strtod_l.c: Likewise.
5128         * stdlib/strtold.c [__LONG_DOUBLE_MATH_OPTIONAL]: Add libc_hidden_proto
5129         for __new_strtold and __new_wcstold.
5130         * sysdeps/ieee754/ldbl-128ibm/strtold_l.c: Add libc_hidden_proto for
5131         __STRTOF, STRTOF.
5132         * stdlib/strtol.c: Add libc_hidden_def.
5133         * stdlib/strtol_l.c: Likewise.
5134         * sysdeps/wordsize-64/strtol.c: Add libc_hidden_ver for strtoll and
5135         strtoq.
5136
5137         * scripts/data/localplt-powerpc-linux-gnu.data: New file.
5138
5139         * scripts/data/localplt-x86_64-linux-gnu.data: File renamed to ...
5140         * scripts/data/localplt-generic.data: ... here.
5141         * elf/Makefile (check-data): Get generic file if no other.
5142         ($(objpfx)check-localplt.out): Make target unconditional.
5143
5144         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_discover_osversion):
5145         Use ElfW(Nhdr).
5146
5147 2007-08-05  Ulrich Drepper  <drepper@redhat.com>
5148
5149         * po/zh_CN.po: Updated translation from translation team.
5150
5151 2007-08-05  Jakub Jelinek  <jakub@redhat.com>
5152
5153         * sysdeps/unix/sysv/linux/powerpc/powerpc32/socket.S (__socket):
5154         Don't use CGOTSETUP and CGOTRESTORE macros.
5155
5156 2007-08-04  Roland McGrath  <roland@redhat.com>
5157
5158         * posix/Makefile ($(objpfx)getconf.speclist): Fix typo.
5159
5160 2007-08-04  Jakub Jelinek  <jakub@redhat.com>
5161
5162         * io/bits/fcntl2.h (open, open64, openat, openat64): Add
5163         __extension__ around the whole statement expression.
5164
5165 2007-08-04  Ulrich Drepper  <drepper@redhat.com>
5166
5167         * sysdeps/unix/opendir.c (__alloc_dir): Correct order of DIR
5168         elements during initialization.
5169
5170         * po/pl.po: Updated translation from translation team.
5171         * po/tr.po: Likewise.
5172         * po/nl.po: Likewise.
5173
5174 2007-08-03  Ulrich Drepper  <drepper@redhat.com>
5175
5176         * rt/aio.h: Add __nonnull attributes.
5177
5178 2007-08-03  Jakub Jelinek  <jakub@redhat.com>
5179
5180         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Properly handle -0.
5181         * stdlib/Makefile (tests): Add tst-strtod5.
5182         (tst-strtod5-ENV): New.
5183         * stdlib/tst-strtod5.c: New file.
5184
5185         * intl/dcigettext.c (_nl_find_msg): Free encoding if __gconv_open
5186         failed.
5187         * intl/finddomain.c (_nl_find_domain): Free normalized_codeset
5188         on failure.
5189
5190         * elf/dl-load.c (decompose_rpath): Free copy if result couldn't be
5191         allocated.
5192
5193 2007-08-03  Jakub Jelinek  <jakub@redhat.com>
5194
5195         * rt/mqueue.h (mq_timedreceive, mq_timedsend): Fix nonnull argument
5196         numbers.
5197
5198 2007-08-02  Ulrich Drepper  <drepper@redhat.com>
5199
5200         * io/Makefile (aux): Add have_o_cloexec.
5201         * include/fcntl.h: Declare __have_o_cloexec.
5202         * io/have_o_cloexec.c: New file.
5203         * sysdeps/unix/opendir.c (__opendir): Use O_CLOEXEC is available.
5204         (__alloc_dir): If O_CLOEXEC has been used, don't duplicate the
5205         fcntl call if not necessary.
5206         * login/utmp_file.c (setutent_file): Use __have_o_cloexec instead
5207         of local variable.
5208
5209         * sysdeps/unix/opendir.c (__alloc_dir): Don't initialize ->data.
5210         Avoid memset, add explicit initialization.
5211         * sysdeps/unix/dirstream.h (struct __dirstream): Move data elemtn
5212         to the end and change into zero-sized array.
5213         Move lock member to fill a hole on 64-bit platforms.
5214
5215         * stdlib/stdlib.h: Remove __strto*_internal prototypes and strto*
5216         inline functions.
5217         * include/stdlib.h: Add __strto*_internal prototypes here.
5218         * wcsmbs/wchar.h: Remove __wcsto*_internal prototypes and wcsto*
5219         inline functions.
5220         * include/wchar.h: Add __wcsto*_internal prototypes.
5221         * sysdeps/generic/inttypes.h: No need to protect the declaration
5222         of the __strto*_internal and __wcsto*_internal members here.
5223
5224         * rt/mqueue.h: Change const to __const and add nonnull attributes.
5225
5226 2007-08-02  Roland McGrath  <roland@redhat.com>
5227
5228         * posix/Makefile ($(inst_libexecdir)/getconf): Make hard links to
5229         $(inst_bindir)/getconf if possible.
5230
5231         * posix/Makefile ($(objpfx)getconf.speclist): New target.
5232         (generated): Add it.
5233         ($(inst_libexecdir)/getconf): Use it.
5234
5235 2007-08-01  Ulrich Drepper  <drepper@redhat.com>
5236
5237         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Using
5238         /proc is faster and sufficient.  /sys is still needed for
5239         __get_nprocs_conf.
5240
5241 2007-08-01  Jakub Jelinek  <jakub@redhat.com>
5242
5243         * sysdeps/unix/sysv/linux/i386/syscalls.list (fallocate): Add fallocate
5244         syscall as __fallocate64.
5245         * sysdeps/unix/sysv/linux/i386/posix_fallocate.c: New file.
5246         * sysdeps/unix/sysv/linux/i386/posix_fallocate64.c: New file.
5247
5248 2007-07-30  Jakub Jelinek  <jakub@redhat.com>
5249
5250         * stdlib/tst-strtod2.c (do_test): Use %tu in fmt string for ptrdiff_t
5251         value.
5252
5253         * stdio-common/tst-fmemopen2.c (do_test): Avoid fmt string warning
5254         if off_t is different rank from size_t.
5255
5256         * sysdeps/generic/unwind-dw2.c (extract_cie_info, execute_cfa_program,
5257         uw_frame_state_for): Avoid type punning warnings.
5258         * sysdeps/generic/unwind-dw2-fde-glibc.c
5259         (_Unwind_IteratePhdrCallback): Likewise.
5260         * sysdeps/generic/unwind-dw2-fde.c (_Unwind_Find_FDE): Likewise.
5261         (binary_search_single_encoding_fdes, binary_search_mixed_encoding_fdes,
5262         get_cie_encoding, linear_search_fdes): Don't mix char and unsigned char
5263         pointers.
5264
5265 2007-07-31  Ulrich Drepper  <drepper@redhat.com>
5266
5267         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs_conf): Count
5268         total processors using sysfs.
5269         (__get_nprocs): Use sysfs to determine which processors are online.
5270
5271 2007-07-31  Jakub Jelinek  <jakub@redhat.com>
5272
5273         * sysdeps/unix/sysv/linux/posix_fallocate.c (posix_fallocate): Fix
5274         syscall arguments count.
5275
5276         * stdio-common/tfformat.c (sprint_doubles): Add 12 new tests.
5277
5278 2007-07-30  Roland McGrath  <roland@redhat.com>
5279
5280         * manual/libc.texinfo: Update copyrights, formatting magic, and
5281         @dircategory.  From Karl Berry <karl@freefriends.org>.
5282
5283 2007-07-29  Ulrich Drepper  <drepper@redhat.com>
5284
5285         [BZ #4860]
5286         * io/Makefile (headers): Add bits/fcntl2.h.
5287
5288         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_ZERO_S): Optimize
5289         using gcc builtin.
5290         (__CPU_EQUAL_S): Likewise.
5291
5292         * posix/Makefile (routines): Add sched_cpualloc and sched_cpufree.
5293         (tests): Add tst-cpuset.
5294         * posix/sched_cpualloc.c: New file.
5295         * posix/sched_cpufree.c: New file.
5296         * posix/tst-cpuset.c: New file.
5297         * posix/Versions: Export __sched_cpualloc and __sched_cpufree for
5298         GLIBC_2.7.
5299         * sysdeps/unix/sysv/linux/bits/sched.h: Define __CPU_*_S macros.
5300         * posix/sched.h: Define old CPU_* macros in temers of __CPU_*_S
5301         macros.  Define CPU_*_S macros.
5302
5303 2007-07-28  Ulrich Drepper  <drepper@redhat.com>
5304
5305         * posix/getconf.c (vars): Add missing _SC_LEVEL4_CACHE_LINESIZE
5306         entry.
5307
5308         [BZ #4858]
5309         * stdio-common/printf_fp.c (___printf_fp): Fix special case of
5310         #.0g and value rounded to 1.0.
5311         * stdio-common/tfformat.c (sprint_doubles): Add two new tests.
5312
5313 2007-07-26  Jakub Jelinek  <jakub@redhat.com>
5314
5315         * locale/programs/ld-monetary.c (monetary_finish): Avoid range check
5316         for int_frac_digits and frac_digits.
5317
5318         * login/logout.c (logout): Avoid aliasing violation.
5319         * login/logwtmp.c (logwtmp): Likewise.
5320
5321         * libio/genops.c (_IO_un_link): Avoid aliasing violation.
5322
5323         * nscd/selinux.c (preserve_capabilities): Initialize new_caps
5324         to avoid warning.
5325         * iconv/gconv_open.c (__gconv_open): Initialize ptr to avoid
5326         warning.
5327         * nis/nis_subr.c (nis_getnames): Initialize saveptr to avoid
5328         warning.
5329         * resolv/inet_ntop.c (inet_ntop6): Initialize best.len and cur.len
5330         to avoid warnings.
5331
5332         * nss/nsswitch.c (__nss_lookup_function): Don't cast &ni->known to
5333         void **.
5334         * nss/nsswitch.h (service_user): Use void * type for KNOWN field.
5335
5336         * nss/nss_files/files-hosts.c (LINE_PARSER): Cast host_addr to
5337         char * to avoid warning.
5338         * nis/nss_nis/nis-hosts.c (LINE_PARSER): Likewise.
5339
5340         * timezone/Makefile (CFLAGS-zdump.c): Add -fwrapv.
5341
5342         * locale/programs/ld-ctype.c (ctype_finish, set_class_defaults,
5343         allocate_arrays): Cast second argument to charmap_find_symbol
5344         to char * to avoid warnings.
5345
5346         * locale/programs/repertoire.c (repertoire_new_char): Change
5347         from_nr, to_nr and cnt to unsigned long, adjust printf format
5348         string.
5349
5350         * locale/programs/ld-collate.c (insert_value, handle_ellipsis):
5351         Cast second argument to new_element to char * to avoid warnings.
5352
5353         * locale/weightwc.h (findidx): Cast &extra[-i] to const int32_t *.
5354
5355         * intl/gettextP.h (struct loaded_domain): Change plural to const
5356         struct expression *.
5357         * intl/plural-eval.c (plural_eval): Change first argument to
5358         const struct expression *.
5359         * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Change first
5360         argument to const struct expression **.
5361         * intl/plural-exp.h (EXTRACT_PLURAL_EXPRESSION, plural_eval): Adjust
5362         prototypes.
5363         * intl/loadmsgcat (_nl_unload_domain): Cast away const
5364         in call to __gettext_free_exp.
5365
5366         * posix/fnmatch.c (fnmatch): Rearrange code to avoid maybe
5367         unitialized wstring/wpattern var warnings.
5368
5369         * posix/runtests.c (struct a_test): Make data field const char *.
5370
5371         * stdio-common/tst-sprintf2.c (main): Don't declere u, v and buf
5372         vars if not LDBL_MANT_DIG >= 106.
5373
5374         * stdio-common/Makefile (CFLAGS-vfwprintf.c): Add -Wno-unitialized.
5375
5376         * stdio-common/vfprintf.c (vfprintf): Cast first arugment to
5377         __find_specmb to avoid warning.
5378
5379         * rt/tst-mqueue1.c (do_one_test): Add casts to avoid warnings.
5380
5381         * debug/test-strcpy_chk.c (do_tests, do_random_tests): Add casts
5382         to avoid warnings.
5383
5384         * sysdeps/ieee754/ldbl-96/s_roundl.c (huge): Add L suffix to
5385         initializer.
5386
5387         * sysdeps/unix/clock_gettime.c (clock_gettime): Only define
5388         tv var when it will be actually used.
5389
5390         * sunrpc/rpc_cmsg.c (xdr_callmsg): Cast IXDR_PUT_* to void
5391         to avoid warnings.
5392
5393         * iconvdata/gbk.c (BODY): Make buf and cp char instead of unsigned
5394         char array resp. pointer.
5395         * iconvdata/iso-2022-kr.c (BODY): Make buf unsigned char instead of
5396         char array.
5397         * iconvdata/cns11643.h (cns11643_to_ucs4): Change first argument
5398         to const unsigned char **.
5399         (ucs4_to_cns11643): Change second argument to unsigned char *.
5400         * iconvdata/euc-tw.c (BODY): Change endp type to
5401         const unsigned char *.
5402         * iconvdata/iso-ir-165.h (ucs4_to_isoir165): Change second argument
5403         to unsigned char *.
5404         * iconvdata/ibm1008_420.c (LOOP_NEED_FLAGS): Don't define.
5405         * iconvdata/iso-2022-cn.c (BODY): Change buf to unsigned char array.
5406         * iconvdata/iso-2022-cn-ext.c (BODY): Change buf, tmpbuf, tmp
5407         types to unsigned char pointers/arrays instead of char.
5408         * iconvdata/jis0201.h (ucs4_to_jisx0201): Change second argument
5409         to unsigned char *.
5410         * iconvdata/jis0208.h (ucs4_to_jisx0208): Likewise.
5411         * iconvdata/jis0212.h: Include assert.h.
5412         (ucs4_to_jisx0212): Change second argument to unsigned char *.
5413         assert that if cp[0] is not '\0', cp[1] is not '\0' either instead
5414         of trying to handle that.
5415         * iconvdata/euc-kr.c (euckr_from_ucs4): Initialize also cp[1] to
5416         shut up a warning.
5417         * iconvdata/euc-jp-ms.c (from_ucs4_lat1, from_ucs4_greek,
5418         from_ucs4_cjk, from_ucs4_cjkcpt, from_ucs4_extra): Change type to
5419         two dimensional const unsigned char arrays.
5420         (BODY): Cast "" to (const unsigned char *) for assignment to cp.
5421         Initialize endp to inptr to shut up a warning.
5422
5423 2007-07-20  Jakub Jelinek  <jakub@redhat.com>
5424
5425         [BZ #4772]
5426         * time/strptime_l.c (__strptime_internal): Silently ignore
5427         strftime modifiers and field width in recursive calls.
5428
5429         * include/time.h (enum ptime_locale_status): Remove.
5430         (__strptime_internal): Remove decided and era_cnt arguments,
5431         add statep argument.
5432         * time/strptime_l.c (__strptime_internal): Remove decided
5433         and era_cnt arguments, add statep argument.  Don't recompute
5434         any fields in recursive calls, only update caller's tm
5435         and state, if recursive call fails, don't change tm nor
5436         any state.
5437         (get_alt_number): Adjust.
5438         (recursive): Adjust caller.
5439         (strptime): Likewise.
5440         * time/strptime.c (strptime): Likewise.
5441
5442 2007-07-19  Jakub Jelinek  <jakub@redhat.com>
5443
5444         * iconv/gconv_int.h (__GCONV_NULCONV): New internal only error code.
5445         * iconv/gconv_cache.c (__gconv_lookup_cache): Return __GCONV_NULCONV
5446         if from and to charsets are the same.
5447         * iconv/gconv_db.c (__gconv_find_transform): Likewise.
5448         * intl/dcigettext.c (_nl_find_msg): Return NULL even if __gconv_open
5449         returns __GCONV_NOCONV, but not for __GCONV_NULCONV.
5450
5451 2007-07-17  Jakub Jelinek  <jakub@redhat.com>
5452
5453         * wcsmbs/wchar.h: Only define wint_t if __need_wint_t.
5454         Don't define wint_t when __need_mbstate_t unless it
5455         is necessary.
5456         (__mbstate_t): Use __WINT_TYPE__ rather than wint_t
5457         in the typedef if possible.
5458         * wctype/wctype.h (wint_t): Define by including
5459         wchar.h with __need_wint_t instead of including stddef.h
5460         with __need_wint_t and as fallback definining it ourselves.
5461         * iconv/gconv.h (__need_wint_t): Define before including
5462         wchar.h.
5463         * sysdeps/gnu/_G_config.h: Don't include gconv.h if not _LIBC
5464         or _GLIBCPP_USE_WCHAR_T.
5465         (__need_wchar_t): Don't define
5466         if not _LIBC or _GLIBCPP_USE_WCHAR_T.
5467         (__need_wint_t): Don't define before including stddef.h,
5468         define before including wchar.h only if _LIBC or
5469         _GLIBCPP_USE_WCHAR_T.
5470         (_G_iconv_t): Don't define if not _LIBC or _GLIBCPP_USE_WCHAR_T.
5471         * sysdeps/mach/hurd/_G_config.h: Likewise.
5472         * sysdeps/generic/_G_config.h: Likewise.
5473         * libio/libio.h (__wunderflow, __wuflow, __woverflow): Only
5474         prototype if _LIBC or _GLIBCPP_USE_WCHAR_T.
5475         (_IO_getwc_unlocked, _IO_putwc_unlocked): Only define
5476         if _LIBC or _GLIBCPP_USE_WCHAR_T.
5477
5478 2007-07-28  Ulrich Drepper  <drepper@redhat.com>
5479
5480         * sysdeps/posix/posix_fallocate64.c: Undefine
5481         __posix_fallocate64_l64 before alias handling.
5482         * sysdeps/unix/sysv/linux/posix_fallocate.c: New file.
5483         * sysdeps/unix/sysv/linux/posix_fallocate64.c: New file.
5484         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c: New file.
5485         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate64.c: New file.
5486
5487         * io/tst-posix_fallocate.c: Include <fcntl.h>.
5488
5489 2007-07-23  Jakub Jelinek  <jakub@redhat.com>
5490
5491         * locale/programs/ld-collate.c (atwc): New variable.
5492         (add_to_tablewc): New toplevel function, moved from collate_output.
5493         (collate_output): Remove add_to_tablewc nested function.
5494
5495         * iconv/iconvconfig.c (hash_table, hash_size): New toplevel vars.
5496         (name_insert): New function.
5497         (write_output): Remove hash_table and hash_size vars and name_insert
5498         nested function.
5499
5500 2007-07-24  Roland McGrath  <roland@redhat.com>
5501
5502         * Makerules (install-others-programs-nosubdir): New target.
5503         (install-no-libc.a-nosubdir): Depend on it.
5504
5505         * iconv/Makefile (install-others-programs): Set this instead of
5506         install-others.
5507         * login/Makefile (install-others-programs): Likewise.
5508         * posix/Makefile (install-others-programs): Likewise.
5509
5510         * Makerules (install-no-libc.a-nosubdir): Clean up conditional
5511         dependencies.
5512
5513 2007-07-23  Ulrich Drepper  <drepper@redhat.com>
5514
5515         * io/Makefile (tests): Add tst-posix_fallocate.
5516         * io/tst-posix_fallocate.c: New file.
5517
5518         * sysdeps/unix/sysv/linux/kernel-features.h: Define
5519         __ASSUME_FALLOCATE.
5520
5521 2007-07-22  Roland McGrath  <roland@frob.com>
5522
5523         * hurd/getdport.c: Add missing copyright year update.
5524
5525         * sysdeps/mach/hurd/bits/fcntl.h [__USE_GNU] (O_CLOEXEC): New macro.
5526         * hurd/port2fd.c (_hurd_port2fd): Implement O_CLOEXEC.
5527
5528 2007-07-22  Ulrich Drepper  <drepper@redhat.com>
5529
5530         * login/utmp_file.c (setutent_file): Use O_CLOEXEC if possible.
5531
5532         * libio/fileops.c (_IO_new_file_fopen): Recognize 'e' flag and set
5533         O_CLOEXEC is needed.
5534         * nis/nss_compat/compat-grp.c: Use 'e' flag when opening file.
5535         Avoid additional fcntl to set O_CLOEXEC if not needed.
5536         * nis/nss_compat/compat-initgroups.c: Likewise.
5537         * nis/nss_compat/compat-pwd.c: Likewise.
5538         * nis/nss_compat/compat-spwd.c: Likewise.
5539
5540 2007-07-21  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5541
5542         [BZ #3665]
5543         * manual/errno.texi: Change ECANCELED value to 119.
5544
5545         [BZ #4610]
5546         * mach/lock-intern.h: Include <sys/cdefs.h>.
5547
5548         [BZ #4178]
5549         * sysdeps/mach/hurd/sigaction.c (__sigaction): Check ACT != NULL before
5550         reading A.
5551
5552         [BZ #4126]
5553         * sysdeps/mach/hurd/sigsuspend.c (sigsuspend_not_cancel): Define alias
5554         to __sigsuspend.
5555
5556         * sysdeps/mach/i386/sysdep.h: Include <dl-sysdep.h> and <tls.h>.
5557
5558 2006-06-13  Thomas Schwinge  <tschwinge@gnu.org>
5559
5560         * sysdeps/mach/hurd/tls.h: Change `ASSEMBLER' conditional to
5561         `__ASSEMBLER__'.
5562         * sysdeps/mach/hurd/i386/tls.h: Likewise.
5563
5564 2007-07-21  Ulrich Drepper  <drepper@redhat.com>
5565
5566         * nscd/nscd_helper.c (get_mapping): Use MSG_CMSG_CLOEXEC for
5567         descriptor received from nscd.
5568
5569         * sysdeps/unix/sysv/linux/bits/socket.h: Define MSG_CMSG_CLOEXEC.
5570
5571         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_CLOEXEC.
5572         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
5573         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
5574         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
5575         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
5576         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
5577
5578 2007-07-20  Jakub Jelinek  <jakub@redhat.com>
5579
5580         [BZ #4816]
5581         * manual/signal.texi (Non-atomic Example): Make memory var volatile.
5582
5583         [BZ #4813]
5584         * login/forkpty.c (forkpty): Close master and slave fds on
5585         fork failure.  Patch by
5586         Mikulas Patocka <mikulas@artax.karlin.mff.cuni.cz>.
5587
5588 2007-07-18  Jakub Jelinek  <jakub@redhat.com>
5589
5590         * include/features.h (__USE_ISOC95): New define.
5591         * wcsmbs/wchar.h (fwprintf, fwscanf, wprintf, wscanf, swprintf,
5592         swscanf, vfwprintf, vwprintf, vswprintf, fwide): Define even
5593         for -std=iso9899:199409.
5594         * CONFORMANCE: Remove comments about unsupported AMD1.
5595
5596 2007-07-17  Jakub Jelinek  <jakub@redhat.com>
5597
5598         * sysdeps/ia64/sched_cpucount.c: New file.
5599         * sysdeps/powerpc/sched_cpucount.c: New file.
5600
5601         * sysdeps/unix/sysv/linux/bits/sched.h (__sched_cpucount): Add
5602         __BEGIN_DECLS/__END_DECLS around the prototype.
5603         * bits/sched.h (__sched_cpucount): Likewise.  Make second argument
5604         pointer to const cpu_set_t.
5605
5606         * bits/types.h: Don't include stddef.h, don't define __need_size_t.
5607         * signal/signal.h <__USE_BSD || __USE_XOPEN_EXTENDED>: Define
5608         __need_size_t and include stddef.h.
5609         * sysvipc/sys/msg.h: Likewise.
5610         * posix/sched.h: Likewise.
5611         * hurd/hurd/signal.h (__need_size_t): Define.
5612
5613         * CONFORMANCE: ctype.h and wctype.h no longer define size_t,
5614         neither does signal.h in pedantic ISO C namespaces.  stdio.h
5615         no longer defines wint_t or wchar_t.
5616
5617         * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): New function.
5618         * debug/vfwprintf_chk.c (__vfwprintf_chk): Use
5619         _IO_acquire_lock_clear_flags2 instead of _IO_acquire_lock.
5620         * debug/vprintf_chk.c (__vprintf_chk): Likewise.
5621         * debug/vwprintf_chk.c (__vwprintf_chk): Likewise.
5622         * debug/vfprintf_chk.c (__vfprintf_chk): Likewise.
5623         * debug/fwprintf_chk.c (__fwprintf_chk): Likewise.
5624         * debug/printf_chk.c (__printf_chk): Likewise.
5625         * debug/fprintf_chk.c (__fprintf_chk): Likewise.
5626         * debug/wprintf_chk.c (__wprintf_chk): Likewise.
5627
5628         * sysdeps/pthread/bits/stdio-lock.h (_IO_acquire_lock_clear_flags2):
5629         Define.
5630
5631         * bits/confname.h (_CS_POSIX_V6_WIDTH_RESTRICTED_ENVS): Define.
5632         * posix/getconf.c (vars): Add POSIX_V6_WIDTH_RESTRICTED_ENVS.
5633
5634 2007-07-16  Jakub Jelinek  <jakub@redhat.com>
5635
5636         [BZ #4792]
5637         * stdlib/stdlib.h (realloc): Remove __attribute_malloc__.
5638         * malloc/malloc.h (realloc): Likewise.
5639
5640         * libio/iopopen.c (_IO_new_proc_open): Don't close child_std_end
5641         if one of proc_file_chain streams has that fileno.
5642         * stdio-common/Makefile (tests): Add tst-popen2.
5643         * stdio-common/tst-popen2.c: New test.
5644
5645 2007-07-14  Jakub Jelinek  <jakub@redhat.com>
5646
5647         * elf/ldconfig.c: Allow GPLv2 or any later version.
5648         * elf/readlib.c: Likewise.
5649         * elf/chroot_canon.c: Likewise.
5650         * elf/cache.c: Likewise.
5651         * nscd/mem.c: Likewise.
5652         * nscd/getpwuid_r.c: Likewise.
5653         * nscd/grpcache.c: Likewise.
5654         * nscd/aicache.c: Likewise.
5655         * nscd/getsrvbynm_r.c: Likewise.
5656         * nscd/nscd.c: Likewise.
5657         * nscd/servicescache.c: Likewise.
5658         * nscd/getsrvbypt_r.c: Likewise.
5659         * nscd/initgrcache.c: Likewise.
5660         * nscd/gethstbyad_r.c: Likewise.
5661         * nscd/gethstbynm2_r.c: Likewise.
5662         * nscd/getgrnam_r.c: Likewise.
5663         * nscd/nscd_setup_thread.c: Likewise.
5664         * nscd/getpwnam_r.c: Likewise.
5665         * nscd/gai.c: Likewise.
5666         * nscd/connections.c: Likewise.
5667         * nscd/dbg_log.c: Likewise.
5668         * nscd/cache.c: Likewise.
5669         * nscd/hstcache.c: Likewise.
5670         * nscd/nscd_conf.c: Likewise.
5671         * nscd/getgrgid_r.c: Likewise.
5672         * nscd/pwdcache.c: Likewise.
5673         * catgets/gencat.c: Likewise.
5674         * locale/programs/linereader.h: Likewise.
5675         * locale/programs/locarchive.c: Likewise.
5676         * locale/programs/ld-paper.c: Likewise.
5677         * locale/programs/locfile-kw.h: Likewise.
5678         * locale/programs/ld-address.c: Likewise.
5679         * locale/programs/xmalloc.c: Likewise.
5680         * locale/programs/ld-time.c: Likewise.
5681         * locale/programs/localedef.c: Likewise.
5682         * locale/programs/simple-hash.c: Likewise.
5683         * locale/programs/xstrdup.c: Likewise.
5684         * locale/programs/ld-numeric.c: Likewise.
5685         * locale/programs/locfile-kw.gperf: Likewise.
5686         * locale/programs/ld-collate.c: Likewise.
5687         * locale/programs/charmap-kw.gperf: Likewise.
5688         * locale/programs/charmap.h: Likewise.
5689         * locale/programs/charmap-kw.h: Likewise.
5690         * locale/programs/config.h: Likewise.
5691         * locale/programs/locfile.c: Likewise.
5692         * locale/programs/ld-ctype.c: Likewise.
5693         * locale/programs/charmap.c: Likewise.
5694         * locale/programs/ld-messages.c: Likewise.
5695         * locale/programs/repertoire.h: Likewise.
5696         * locale/programs/locale.c: Likewise.
5697         * locale/programs/ld-name.c: Likewise.
5698         * locale/programs/linereader.c: Likewise.
5699         * locale/programs/locfile.h: Likewise.
5700         * locale/programs/3level.h: Likewise.
5701         * locale/programs/ld-monetary.c: Likewise.
5702         * locale/programs/ld-measurement.c: Likewise.
5703         * locale/programs/charmap-dir.c: Likewise.
5704         * locale/programs/ld-identification.c: Likewise.
5705         * locale/programs/localedef.h: Likewise.
5706         * locale/programs/charmap-dir.h: Likewise.
5707         * locale/programs/repertoire.c: Likewise.
5708         * locale/programs/simple-hash.h: Likewise.
5709         * locale/programs/ld-telephone.c: Likewise.
5710         * locale/programs/locale-spec.c: Likewise.
5711         * locale/programs/locfile-token.h: Likewise.
5712         * posix/getconf.c: Likewise.
5713         * iconv/dummy-repertoire.c: Likewise.
5714         * iconv/iconv_charmap.c: Likewise.
5715         * iconv/iconvconfig.c: Likewise.
5716         * iconv/iconv_prog.c: Likewise.
5717         * malloc/memusagestat.c: Likewise.
5718         * sysdeps/unix/sysv/linux/nscd_setup_thread.c: Likewise.
5719
5720 2007-07-06  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
5721
5722         * sysdeps/sh/bsd-setjmp.S (setjmp): Use correct argument registers.
5723         * sysdeps/sh/bsd-_setjmp.S (_setjmp): Likewise.
5724         * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Do correct sanity
5725         check for the first argument.
5726
5727 2007-07-12  Jakub Jelinek  <jakub@redhat.com>
5728
5729         [BZ #4775]
5730         * math/tgmath.h (__tgmath_real_type_sub): Formatting.
5731         (__tgmath_real_type): Fix if expr is const int or other const
5732         qualified integral type.
5733         (__TGMATH_UNARY_REAL_ONLY): Rewritten to avoid using statement
5734         expressions and handle const qualified arguments.
5735         (__TGMATH_BINARY_FIRST_REAL_ONLY, __TGMATH_UNARY_REAL_IMAG,
5736         __TGMATH_UNARY_REAL_IMAG_RET_REAL): Likewise.
5737         (__TGMATH_UNARY_REAL_RET_ONLY): Rewritten to avoid using
5738         statement expressions.
5739         (__TGMATH_BINARY_REAL_ONLY, __TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY,
5740         __TGMATH_TERNARY_REAL_ONLY, __TGMATH_BINARY_REAL_IMAG): Likewise.
5741         (__TGMATH_UNARY_IMAG): Define.
5742         (conj, cproj): Use __TGMATH_UNARY_IMAG macro.
5743         * math/Makefile (tests): Add test-tgmath2.
5744         (CFLAGS-test-tgmath2.c): Add.
5745         * math/test-tgmath.c (fy, dy, ly, fz, dz, lz, count_cdouble,
5746         count_cfloat, count_cldouble): New variables.
5747         (NCCALLS): Define.
5748         (main): Check number of complex calls as well.
5749         (F(compile_test)): Add complex tests and tests with const qualified
5750         arguments.
5751         (y, z, ccount): Define.
5752         (F(cacos), F(casin), F(catan), F(ccos), F(csin), F(ctan), F(cacosh),
5753         F(casinh), F(catanh), F(ccosh), F(csinh), F(ctanh), F(cexp), F(clog),
5754         F(csqrt), F(cpow), F(cabs), F(carg), F(creal), F(cimag), F(conj),
5755         F(cproj)): New functions.
5756         * math/test-tgmath2.c: New test.
5757
5758 2007-07-11  Jakub Jelinek  <jakub@redhat.com>
5759
5760         [BZ #4776]
5761         * elf/dl-load.c (_dl_rtld_di_serinfo): Output / in LD_LIBRARY_PATH,
5762         RPATH etc. as "/" rather than "", don't segfault on empty paths,
5763         instead output ".".
5764         * dlfcn/Makefile (distribute): Add glreflib3.c.
5765         (module-names): Add glreflib3.
5766         ($(objpfx)tst-dlinfo.out): Depend on glreflib3.so rather than
5767         glreflib1.so.
5768         (LDFLAGS_glreflib3.so): New.
5769         * dlfcn/tst-dlinfo.c (do_test): Load glreflib3.so instead of
5770         glreflib1.so.
5771         * dlfcn/glreflib3.c: New file.
5772
5773         * intl/finddomain.c (_nl_find_domain): If _nl_explode_name
5774         returned -1, return NULL.
5775         * intl/explodename.c (_nl_explode_name): Return -1 if
5776         _nl_normalize_codeset failed.
5777
5778 2007-07-07  Steven Munroe  <sjmunroe@us.ibm.com>
5779
5780         * sysdeps/powerpc/powerpc32/power6/memset.S: Update comments.
5781         Specify .machine power6 to get ISA-V2.0 branch hints.  Unroll loops
5782         and avoid branch misspredicts for > 31 bytes memset case.
5783         * sysdeps/powerpc/powerpc64/power6/memset.S: Likewise.
5784         Remove toc ref to __cache_line_size.
5785
5786         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Specify .machine power4
5787         to get ISA-V2.0 branch hints.
5788         * sysdeps/powerpc/powerpc32/power4/memcpy.S: Likewise
5789         * sysdeps/powerpc/powerpc32/power4/memset.S: Likewise
5790         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
5791         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
5792         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
5793         * sysdeps/powerpc/powerpc64/power4/memset.S: Likewise.
5794         Remove toc ref to __cache_line_size.
5795
5796         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S:
5797         Include math_ldbl_opt.h.
5798
5799 2007-07-10  Ulrich Drepper  <drepper@redhat.com>
5800
5801         [BZ #4773]
5802         * time/strptime_l.c (__strptime_internal): Implement greedy
5803         matching of weekday and month names.
5804
5805 2007-07-09  Roland McGrath  <roland@redhat.com>
5806
5807         * elf/elf.h (NT_GNU_ABI_TAG): New macro.
5808         (ELF_NOTE_ABI): Use it.
5809         (NT_GNU_HWCAP, NT_GNU_BUILD_ID): New macros.
5810
5811 2007-07-09  Ulrich Drepper  <drepper@redhat.com>
5812
5813         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Add new entries.
5814         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
5815
5816 2007-07-07  Ulrich Drepper  <drepper@redhat.com>
5817
5818         [BZ #4745]
5819         * stdio-common/vfscanf.c (_IO_vfscanf): Add additional test for EOF
5820         in loop to look for conversion specifier to avoid testing of
5821         wrong errno value.
5822         * stdio-common/Makefile (tests): Add bug18, bug18a, bug19, bug19a.
5823         * stdio-common/bug18.c: New file.
5824         * stdio-common/bug18a.c: New file.
5825         * stdio-common/bug19.c: New file.
5826         * stdio-common/bug19a.c: New file.
5827
5828 2007-07-05  Mike Frysinger  <vapier@gentoo.org>
5829
5830         * Makeconfig ($(common-objpfx)gnu/lib-names.stmp): Use LC_ALL=C when
5831         running awk script.
5832
5833 2007-07-01  Jakub Jelinek  <jakub@redhat.com>
5834
5835         * elf/dl-sysdep.c (_dl_important_hwcaps): Add integer overflow check.
5836         * elf/dl-minimal.c (__libc_memalign): Likewise.  Handle malloc (0).
5837         Return NULL if mmap failed instead of asserting it does not.
5838         (calloc): Check for integer overflow.
5839
5840         * elf/dl-minimal.c (__strtoul_internal): Fix parsing of numbers bigger
5841         than LONG_MAX / 10.
5842
5843 2007-07-03  Jakub Jelinek  <jakub@redhat.com>
5844
5845         [BZ #4702]
5846         * nis/nss-default.c: Include errno.h.
5847         (init): Preserve errno.
5848
5849 2007-07-02  Ulrich Drepper  <drepper@redhat.com>
5850
5851         * sysdeps/unix/sysv/linux/bits/socket.h (PF_UNIX): Update comment.
5852
5853 2007-06-30  Ulrich Drepper  <drepper@redhat.com>
5854
5855         * sysdeps/unix/sysv/linux/bits/socket.h: Add PF_RXRPC and AF_RXRPC.
5856
5857 2007-06-29  Martin Schwidefsky  <schwidefsky@de.ibm.com>
5858
5859         * sysdeps/unix/sysv/linux/bits/socket.h: Add PF_IUCV and AF_IUCV.
5860
5861 2007-06-29  Martin Schwidefsky  <schwidefsky@de.ibm.com>
5862
5863         * sysdeps/s390/dl-procinfo.c: New file.
5864         * sysdeps/s390/dl-procinfo.h: New file.
5865         * sysdeps/unix/sysv/linux/s390/dl-procinfo.h: New file.
5866
5867 2007-06-29  Jakub Jelinek  <jakub@redhat.com>
5868
5869         * elf/dl-load.c (open_verify): Find .note.ABI-tag notes even
5870         in PT_NOTE segments with multiple notes.
5871         * elf/readelflib.c (process_elf_file): Likewise.
5872
5873 2007-06-22  Ulrich Drepper  <drepper@redhat.com>
5874
5875         * nis/nis_domain_of.c (__nis_domain_of): Make the code a bit more
5876         ISO C compliant.
5877
5878 2007-06-19  Ulrich Drepper  <drepper@redhat.com>
5879
5880         * elf/dl-close.c (free_mem): Free _dl_scope_free_list.
5881
5882 2007-06-13  Jakub Jelinek  <jakub@redhat.com>
5883
5884         * include/link.h: Don't include rtld-lowlevel.h.
5885         (struct link_map): Remove l_scope_lock.
5886         * sysdeps/generic/ldsodefs.h: Don't include rtld-lowlevel.h.
5887         (_dl_scope_free_list): New field (variable) in _rtld_global.
5888         (DL_LOOKUP_SCOPE_LOCK): Remove.
5889         (_dl_scope_free): New prototype.
5890         * elf/dl-runtime.c (_dl_fixup): Don't use __rtld_mrlock_*lock.
5891         Don't pass DL_LOOKUP_SCOPE_LOCK to _dl_lookup_symbol_x.
5892         (_dl_profile_fixup): Likewise.
5893         * elf/dl-sym.c (do_sym): Likewise.  Use wrapped _dl_lookup_symbol_x
5894         whenever !RTLD_SINGLE_THREAD_P, use THREAD_GSCOPE_SET_FLAG and
5895         THREAD_GSCOPE_RESET_FLAG around it.
5896         * elf/dl-close.c (_dl_close_worker): Don't use
5897         __rtld_mrlock_{change,done}.  Call _dl_scope_free on the old
5898         scope.  Make sure THREAD_GSCOPE_WAIT () happens if any old
5899         scopes were queued or if l_scope_mem has been abandoned.
5900         * elf/dl-open.c (_dl_scope_free): New function.
5901         (dl_open_worker): Use it.  Don't use __rtld_mrlock_{change,done}.
5902         * elf/dl-support.c (_dl_scope_free_list): New variable.
5903         * elf/dl-lookup.c (add_dependency): Remove flags argument.
5904         Remove DL_LOOKUP_SCOPE_LOCK handling.
5905         (_dl_lookup_symbol_x): Adjust caller.  Remove DL_LOOKUP_SCOPE_LOCK
5906         handling.
5907         * elf/dl-object.c (_dl_new_object): Don't use
5908         __rtld_mrlock_initialize.
5909
5910 2007-06-19  Ulrich Drepper  <drepper@redhat.com>
5911
5912         * sysdeps/generic/ldsodefs.h (rtld_global): Reorder some elements
5913         to fill in holes
5914         (rtld_global_ro): Likewise.
5915
5916 2007-06-18  Jakub Jelinek  <jakub@redhat.com>
5917
5918         * elf/dl-addr.c (_dl_addr): Skip PT_LOAD checking if l_contiguous.
5919         Move PT_LOAD checking to...
5920         (_dl_addr_inside_object): ... here, new function.
5921         * elf/dl-sym.c (do_sym): If not l_contiguous,
5922         call _dl_addr_inside_object.
5923         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise.
5924         * dlfcn/dlinfo.c (dlinfo_doit): Likewise.
5925         * elf/dl-open.c (dl_open_worker): Likewise.
5926         (_dl_addr_inside_object): New function if IS_IN_rtld.
5927         * elf/dl-load.c (_dl_map_object_from_fd): Set l_contiguous if no
5928         holes are present or are PROT_NONE protected.
5929         * include/link.h (struct link_map): Add l_contiguous field.
5930         * sysdeps/generic/ldsodefs.h (_dl_addr_inside_object): New prototype.
5931
5932 2007-06-18  Jakub Jelinek  <jakub@redhat.com>
5933             Tomas Janousek  <tjanouse@redhat.com>
5934             Ulrich Drepper  <drepper@redhat.com>
5935
5936         [BZ #4647]
5937         * resolv/res_send.c (send_dg): Remove socket_pf.  Use ipv6_unavail
5938         member in __res_state, only convaddr4to6 if nssocks[ns] is a PF_INET6
5939         socket.
5940         * resolv/resolv.h (__res_state): Add ipv6_unavail member.  Make
5941         unused member a bitmap.
5942         * resolv/res_init.c (__res_vinit): Reset ipv6_unavail if IPv6
5943         servers are configured.
5944
5945 2007-06-18  Jakub Jelinek  <jakub@redhat.com>
5946
5947         * elf/rtld.c (dl_main): Don't call init_tls more than once.
5948
5949 2007-06-17  Andreas Schwab  <schwab@suse.de>
5950
5951         * sysdeps/generic/initfini.c: Tell gcc about the nonstandard sections.
5952
5953 2007-06-16  Andreas Jaeger  <aj@suse.de>
5954
5955         [BZ #4125]
5956         * sysdeps/unix/sysv/linux/sys/ptrace.h
5957         (PTRACE_O_TRACESYSGOOD, PTRACE_O_TRACEFORK,
5958         PTRACE_O_TRACEVFORK, PTRACE_O_TRACECLONE, PTRACE_O_TRACEEXEC,
5959         PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT, PTRACE_O_MASK,
5960         PTRACE_EVENT_FORK, PTRACE_EVENT_VFORK, PTRACE_EVENT_CLONE,
5961         PTRACE_EVENT_EXEC, PTRACE_EVENT_VFORK_DONE, PTRACE_EVENT_EXIT):
5962         Define.
5963         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
5964         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
5965         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
5966         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
5967
5968 2007-06-16  Ulrich Drepper  <drepper@redhat.com>
5969
5970         [BZ #4599]
5971         * sysdeps/unix/sysv/linux/check_pf.c (make_request): When
5972         determining whether there are IPv4/IPv6 addresses, ignore loopback
5973         addresses.
5974
5975 2007-06-14 Uros Bizjak <ubizjak@gmail.com>
5976
5977         * soft-fp/soft-fp.h (CMPtype): Define to "int" if undefined.
5978         * soft-fp/eqdf2.c (__eqdf2): Use CMPtype instead of int
5979         as the return type.  Change type of "r" variable to CMPtype.
5980         * soft-fp/eqsf2.c (__eqsf2): Likewise.
5981         * soft-fp/eqtf2.c (__eqtf2): Likewise.
5982         * soft-fp/gedf2.c (__gedf2): Likewise.
5983         * soft-fp/gesf2.c (__gesf2): Likewise.
5984         * soft-fp/getf2.c (__getf2): Likewise.
5985         * soft-fp/ledf2.c (__ledf2): Likewise.
5986         * soft-fp/lesf2.c (__lesf2): Likewise.
5987         * soft-fp/letf2.c (__letf2): Likewise.
5988         * soft-fp/unorddf2 (__unorddf2): Likewise.
5989         * soft-fp/unordsf2 (__unordsf2): Likewise.
5990         * soft-fp/unordtf2 (__unordtf2): Likewise.
5991
5992 2007-06-09  Ulrich Drepper  <drepper@redhat.com>
5993
5994         * elf/do-lookup.h (do_lookup_x): Read r_nlist before r_list and
5995         make sure gcc doesn't mess around with this.
5996
5997 2007-06-08  Ulrich Drepper  <drepper@redhat.com>
5998
5999         * elf/dl-lookup.c (_dl_lookup_symbol_x): Remove use of r_nlist.
6000
6001 2007-06-08  Jakub Jelinek  <jakub@redhat.com>
6002
6003         * elf/dl-close.c (_dl_close_worker): Remove all to be removed
6004         libraries from the global scope at once and call THREAD_GSCOPE_WAIT
6005         at most once per _dl_close_worker.
6006
6007 2007-06-08  Ulrich Drepper  <drepper@redhat.com>
6008
6009         * sysdeps/unix/sysv/linux/bits/sched.h: Make second parameter of
6010         __sched_cpucount as const.
6011         * posix/sched_cpucount.c: Adjust.
6012
6013         * posix/sched_cpucount.c (__sched_cpucount): Allow using special
6014         instruction for counting bits.
6015         * sysdeps/x86_64/sched_cpucount.c: New file.
6016
6017 2007-06-07  Ulrich Drepper  <drepper@redhat.com>
6018
6019         * configure.in: Avoid variable named BASH.
6020         * config.make.in: Likewise.
6021         Patch in part by Mike Frysinger.
6022
6023 2007-06-06  Jakub Jelinek  <jakub@redhat.com>
6024
6025         [BZ #4586]
6026         * sysdeps/i386/ldbl2mpn.c (__mpn_extract_long_double): Treat
6027         pseudo-zeros as zero.
6028         * sysdeps/x86_64/ldbl2mpn.c: New file.
6029         * sysdeps/ia64/ldbl2mpn.c: New file.
6030
6031 2007-06-04  Jakub Jelinek  <jakub@redhat.com>
6032
6033         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (nextafterl): Remove
6034         unused ily variable.  Fix nextafterl on +-__LDBL_MAX__ and +-Inf.
6035         Remove unreachable code at the end.
6036
6037 2007-06-01  Steven Munroe  <sjmunroe@us.ibm.com>
6038
6039         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Correct description of
6040         ldbl-128ibm in comment.
6041         (fpclassifyl): Correct classification of denormals.
6042         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (nextafterl): Correct
6043         return value for MIN denormal. Rewrite using long double math too
6044         correctly handle denormals and canonicalize the results.
6045
6046 2007-06-05  Jakub Jelinek  <jakub@redhat.com>
6047
6048         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c
6049         (__mpn_construct_long_double): Fix conversion where result ought
6050         to be smaller than __LDBL_MIN__, or the low double should be
6051         denormal.  Fix decision where to negate low double - honor round
6052         to even rules.
6053         * stdio-common/tst-sprintf2.c: Include string.h.
6054         (COMPARE_LDBL): Define.
6055         (TEST): Also test whether a string hexadecimal float representation
6056         can be parsed back to the number.
6057         (main): Add a couple of further tests.
6058
6059 2007-06-04  Jakub Jelinek  <jakub@redhat.com>
6060
6061         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c
6062         (PRINT_FPHEX_LONG_DOUBLE): Fix printing numbers where lower double
6063         is non-zero, but smaller than 2 * __DBL_MIN__.
6064         * stdio-common/tst-sprintf2.c: New test.
6065         * stdio-common/Makefile (tests): Add tst-sprintf2.
6066
6067         * math/test-misc.c (main): Don't run last batch of tests with
6068         IBM long double format.
6069
6070 2007-05-31  Steven Munroe  <sjmunroe@us.ibm.com>
6071
6072         * sysdeps/powerpc/powerpc32/970/fpu/Implies: New file.
6073         * sysdeps/powerpc/powerpc32/power5/fpu/Implies: New file.
6074         * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: New file.
6075         * sysdeps/powerpc/powerpc32/power6/fpu/Implies: New file.
6076         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: New file.
6077         * sysdeps/powerpc/powerpc64/970/fpu/Implies: New file.
6078         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: New file.
6079         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: New file.
6080         * sysdeps/powerpc/powerpc64/power6/fpu/Implies: New file.
6081         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: New file.
6082         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: New file.
6083         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies:
6084         New file.
6085         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies:
6086         New file.
6087         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies:
6088         New file.
6089         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies:
6090         New file.
6091         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies:
6092         New file.
6093         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: New file.
6094         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies:
6095         New file.
6096         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies:
6097         New file.
6098         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies:
6099         New file.
6100         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies:
6101         New file.
6102         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies:
6103         New file.
6104
6105 2007-05-31  Steven Munroe  <sjmunroe@us.ibm.com>
6106
6107         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S: Move.
6108         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: To here.
6109         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrintf.S: Move.
6110         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: To here.
6111         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llround.S: Move.
6112         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: To here.
6113         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llroundf.S: Move.
6114         * sysdeps/powerpc/powerpc32/power4/fpu/s_llroundf.S: To here.
6115
6116 2007-05-22  Steven Munroe  <sjmunroe@us.ibm.com>
6117
6118         * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S
6119         (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
6120         * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S
6121         (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
6122         * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S
6123         (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
6124         * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S
6125         (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
6126
6127 2007-05-21  Steven Munroe  <sjmunroe@us.ibm.com>
6128
6129         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: New file.
6130         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.c: New file.
6131         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: New file.
6132         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: New file.
6133
6134 2007-03-15  Steven Munroe  <sjmunroe@us.ibm.com>
6135
6136         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S
6137         [LONG_DOUBLE_COMPAT]: Add compat_symbol for llrintl@@GLIBC_2_1.
6138
6139 2006-02-13  Steven Munroe  <sjmunroe@us.ibm.com>
6140
6141         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: New File
6142         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: New File
6143         * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: New File
6144         * sysdeps/powerpc/powerpc32/power6/fpu/s_llroundf.S: New File
6145
6146 2006-10-20  Steven Munroe  <sjmunroe@us.ibm.com>
6147
6148         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: New file.
6149         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: New file.
6150
6151 2006-10-03  Steven Munroe  <sjmunroe@us.ibm.com>
6152
6153         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llround.S: New file.
6154         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llroundf.S: New file.
6155
6156         * sysdeps/powerpc/powerpc32/powerpc64/fpu/Makefile: Moved.
6157         * sysdeps/powerpc/powerpc32/powerpc64/fpu/mpa.c: Likewise.
6158         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile: To here.
6159         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
6160
6161 2006-09-29  Steven Munroe  <sjmunroe@us.ibm.com>
6162
6163         * sysdeps/powerpc/powerpc32/power6x/fpu/s_lrint.S: New file.
6164         * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: New file.
6165         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: New file.
6166         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: New file.
6167
6168 2006-09-28  Steven Munroe  <sjmunroe@us.ibm.com>
6169
6170         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: New file.
6171         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llroundf.S: New file.
6172         * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: New file.
6173         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: New file.
6174         * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: New file.
6175         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: New file.
6176
6177 2006-08-31  Steven Munroe  <sjmunroe@us.ibm.com>
6178
6179         * sysdeps/powerpc/powerpc32/powerpc64/fpu/Makefile: New file.
6180         * sysdeps/powerpc/powerpc32/powerpc64/fpu/mpa.c: New file.
6181         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile: New file.
6182         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: New file.
6183
6184 2006-06-15  Steven Munroe  <sjmunroe@us.ibm.com>
6185
6186         * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceil.S: New file.
6187         * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceilf.S: New file.
6188         * sysdeps/powerpc/powerpc32/power5+/fpu/s_floor.S: New file.
6189         * sysdeps/powerpc/powerpc32/power5+/fpu/s_floorf.S: New file.
6190         * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S: New file.
6191         * sysdeps/powerpc/powerpc32/power5+/fpu/s_roundf.S: New file.
6192         * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S: New file.
6193         * sysdeps/powerpc/powerpc32/power5+/fpu/s_truncf.S: New file.
6194         * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceil.S: New file.
6195         * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceilf.S: New file.
6196         * sysdeps/powerpc/powerpc64/power5+/fpu/s_floor.S: New file.
6197         * sysdeps/powerpc/powerpc64/power5+/fpu/s_floorf.S: New file.
6198         * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S: New file.
6199         * sysdeps/powerpc/powerpc64/power5+/fpu/s_roundf.S: New file.
6200         * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S: New file.
6201         * sysdeps/powerpc/powerpc64/power5+/fpu/s_truncf.S: New file.
6202
6203 2006-03-20  Steven Munroe  <sjmunroe@us.ibm.com>
6204
6205         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S: New file.
6206         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrintf.S: New file.
6207
6208 2007-06-01  Steven Munroe  <sjmunroe@us.ibm.com>
6209
6210         * sysdeps/powerpc/powerpc32/power6/memset.S: New file.
6211         * sysdeps/powerpc/powerpc64/power6/memset.S: New file.
6212
6213 2007-05-31  Steven Munroe  <sjmunroe@us.ibm.com>
6214
6215         * sysdeps/powerpc/powerpc32/970/Implies: New file.
6216         * sysdeps/powerpc/powerpc32/power5/Implies: New file.
6217         * sysdeps/powerpc/powerpc32/power5+/Implies: New file.
6218         * sysdeps/powerpc/powerpc32/power6/Implies: New file.
6219         * sysdeps/powerpc/powerpc32/power6x/Implies: New file.
6220         * sysdeps/powerpc/powerpc64/970/Implies: New file.
6221         * sysdeps/powerpc/powerpc64/power5/Implies: New file.
6222         * sysdeps/powerpc/powerpc64/power5+/Implies: New file.
6223         * sysdeps/powerpc/powerpc64/power6/Implies: New file.
6224         * sysdeps/powerpc/powerpc64/power6x/Implies: New file.
6225
6226 2007-05-21  Steven Munroe  <sjmunroe@us.ibm.com>
6227
6228         * sysdeps/powerpc/powerpc32/power4/memset.S: New file
6229
6230 2007-03-13  Steven Munroe  <sjmunroe@us.ibm.com>
6231
6232         * sysdeps/powerpc/powerpc64/memcpy.S: Improve aligned loop to minimize
6233         branch miss-predicts. Ensure that cache line crossing does not impact
6234         dispatch grouping.
6235
6236 2006-12-13  Steven Munroe  <sjmunroe@us.ibm.com>
6237
6238         * sysdeps/powerpc/powerpc64/power4/memcopy.h: Replace with include
6239         "../../powerpc32/power4/memcopy.h".
6240         * sysdeps/powerpc/powerpc64/power4/wordcopy.c: Replace with include
6241         "../../powerpc32/power4/wordcopy.c".
6242
6243 2006-10-03  Steven Munroe  <sjmunroe@us.ibm.com>
6244
6245         * sysdeps/powerpc/powerpc32/powerpc64/Makefile: Moved.
6246         * sysdeps/powerpc/powerpc32/powerpc64/memcopy.h: Likewise.
6247         * sysdeps/powerpc/powerpc32/powerpc64/wordcopy.c: Likewise.
6248         * sysdeps/powerpc/powerpc32/power4/Makefile: To here.
6249         * sysdeps/powerpc/powerpc32/power4/memcopy.h: Likewise.
6250         * sysdeps/powerpc/powerpc32/power4/wordcopy.c: Likewise.
6251
6252 2006-09-10  Steven Munroe  <sjmunroe@us.ibm.com>
6253
6254         * sysdeps/powerpc/powerpc32/power6/memcpy.S: New file.
6255
6256 2006-08-31  Steven Munroe  <sjmunroe@us.ibm.com>
6257
6258         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: New file.
6259         * sysdeps/powerpc/powerpc32/powerpc64/Makefile: New file.
6260         * sysdeps/powerpc/powerpc32/powerpc64/memcopy.h: New file.
6261         * sysdeps/powerpc/powerpc32/powerpc64/wordcopy.c: New file.
6262         * sysdeps/powerpc/powerpc64/power4/Makefile: New file.
6263         * sysdeps/powerpc/powerpc64/power4/memcopy.h: New file.
6264         * sysdeps/powerpc/powerpc64/power4/wordcopy.c: New file.
6265         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: New file.
6266
6267 2006-07-06  Steven Munroe  <sjmunroe@us.ibm.com>
6268
6269         * sysdeps/powerpc/powerpc64/power6/memcpy.S: New file.
6270
6271 2006-03-20  Steven Munroe  <sjmunroe@us.ibm.com>
6272
6273         * sysdeps/powerpc/powerpc32/power4/memcmp.S: New file.
6274         * sysdeps/powerpc/powerpc32/power4/memcpy.S: New file.
6275         * sysdeps/powerpc/powerpc32/power4/memset.S: New file.
6276         * sysdeps/powerpc/powerpc32/power4/strncmp.S: New file.
6277         * sysdeps/powerpc/powerpc64/power4/memcmp.S: New file.
6278         * sysdeps/powerpc/powerpc64/power4/memcpy.S: New file.
6279         * sysdeps/powerpc/powerpc64/power4/strncmp.S: New file.
6280
6281 2007-05-29  Roland McGrath  <roland@redhat.com>
6282
6283         * po/Makefile (po-sed-cmd): New variable.
6284         (libc.pot.files): Move sed command text in there, avoid \ inside ''.
6285
6286 2007-05-29  Ulrich Drepper  <drepper@redhat.com>
6287
6288         * crypt/md5-crypt.c: Fix comment.
6289
6290         * nscd/nscd_helper.c (get_mapping): Handle short replies instead
6291         of crashing.  When this is the case or if the reply is malformed,
6292         don't try to close the new file descriptor since it does not
6293         exist.
6294         Patch in part by Guillaume Chazarain <guichaz@yahoo.fr>.
6295
6296 2007-05-28  Jakub Jelinek  <jakub@redhat.com>
6297
6298         * sysdeps/unix/sysv/linux/futimes.c (miss_utimensat): Don't define
6299         if __NR_utimensat is not defined.
6300
6301 2007-05-26  Ulrich Drepper  <drepper@redhat.com>
6302
6303         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Include <sysdep.h>.
6304
6305 2007-05-25  Jakub Jelinek  <jakub@redhat.com>
6306
6307         * io/bits/fcntl2.h (__open_2): Add nonnull attribute.
6308         (open): Fix comment typos.  Don't call __open_2 if flags
6309         is a compile time constant without O_CREAT.
6310         (__open64_2): Add nonnull attribute.
6311         (open64): Fix comment typos.  Don't call __open64_2 if flags
6312         is a compile time constant without O_CREAT.
6313         (__openat_2): Add nonnull attribute, fix nonnull attribute
6314         on redirect.
6315         (openat): Fix comment typos.  Don't call __openat_2 if flags
6316         is a compile time constant without O_CREAT.
6317         (__openat64_2): Add nonnull attribute, fix nonnull attribute
6318         on redirect.
6319         (openat64): Fix comment typos.  Don't call __openat64_2 if flags
6320         is a compile time constant without O_CREAT.
6321
6322 2007-05-24  Ulrich Drepper  <drepper@redhat.com>
6323
6324         * Makerules (sysd-rules): Define PTW for ptw-* files.
6325         * Versions: Define GLIBC_2.7 for libc.
6326         * include/stdio.h: Declare __fortify_fail.
6327         * debug/fortify_fail.c: New file.
6328         * debug/Makefile (routines): Add fortify_fail.
6329         * debug/chk_fail.c: Use __fortify_fail.
6330         * debug/stack_chk_fail.c: Likewise.
6331         * io/Versions: Export __open_2, __open64_2, __openat_2, and
6332         __openat64_2 for GLIBC_2.7.
6333         * io/fcntl.h: When compiling with fortification, include bits/fcntl2.h.
6334         * io/open.c: Define *_2 variant of function which checks for O_CREAT
6335         and fails if necessary.
6336         * io/open64.c: Likewise.
6337         * io/openat.c: Likewise.
6338         * io/openat64.c: Likewise.
6339         * sysdeps/unix/sysv/linux/open64.c: Likewise.
6340         * sysdeps/unix/sysv/linux/openat.c: Likewise.
6341         * sysdeps/unix/sysv/linux/openat64.c: Likewise.
6342         * io/bits/fcntl2.h: New file.
6343         * include/fcntl.h: Declare __open_2, __open64_2, __openat_2, and
6344         __openat64_2.
6345         * include/bits/fcntl2.h: New file.
6346         * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
6347         Add open_2.
6348         * sysdeps/unix/sysv/linux/open_2.c: New file.
6349
6350 2007-05-21  Ulrich Drepper  <drepper@redhat.com>
6351
6352         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Pass correct value
6353         as second parameter to handle_intel.
6354
6355         * nscd/aicache.c (addhstaiX): If reported TTL is zero don't cache
6356         the entry.
6357
6358         * sysdeps/unix/sysv/linux/x86_64/sysconf.c: Move cache information
6359         handling to ...
6360         * sysdeps/x86_64/cacheinfo.c: ... here.  New file.
6361         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
6362         cacheinfo.
6363         * sysdeps/x86_64/memcpy.S: Complete rewrite.
6364         * sysdeps/x86_64/mempcpy.S: Adjust appropriately.
6365         Patch by Evandro Menezes <evandro.menezes@amd.com>.
6366
6367         * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: New file.
6368
6369 2007-05-21  Jakub Jelinek  <jakub@redhat.com>
6370
6371         [BZ #4525]
6372         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add epoll_pwait.
6373         * sysdeps/unix/sysv/linux/epoll_pwait.c: New file.
6374         * sysdeps/unix/sysv/linux/syscalls.list (epoll_pwait): Remove.
6375
6376         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h (epoll_pwait): Declare.
6377
6378         [BZ #4514]
6379         * stdio-common/vfprintf.c (vfprintf): Don't shadow workstart variable,
6380         reinitialize workend at the start of each do_positional format spec
6381         loop, free workstart before do_positional loops.
6382         (printf_unknown): Fix size of work_buffer.
6383         * stdio-common/tst-sprintf.c (main): Add 3 new testcases.
6384
6385         * malloc/hooks.c (MALLOC_STATE_VERSION): Bump.
6386         (public_sET_STATe): If ms->version < 3, put all chunks into
6387         unsorted chunks and clear {fd,bk}_nextsize fields of largebin
6388         chunks.
6389
6390         * malloc/malloc.c [MALLOC_DEBUG]: Revert 2007-05-13 changes.
6391         * malloc/hooks.c: Likewise.
6392         * malloc/arena.c: Likewise.
6393         * malloc/malloc.c (do_check_malloc_state): Don't assert
6394         n_mmaps is not greater than n_mmaps_max.  This removes the need
6395         for the previous change.
6396
6397         * malloc/Makefile (CFLAGS-malloc.c): Revert accidental
6398         2007-05-07 commit.
6399
6400 2007-05-19  Ulrich Drepper  <drepper@redhat.com>
6401
6402         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PRIVATE_FUTEX):
6403         Define for kernel >= 2.6.22.
6404
6405 2007-05-18  Ulrich Drepper  <drepper@redhat.com>
6406
6407         * elf/dl-close.c (_dl_close_worker): When removing object from
6408         global scope, wait for all lookups to finish afterwards.
6409         * elf/dl-open.c (add_to_global): When global scope array must
6410         grow, allocate a new one and free old array only after all
6411         lookups finish.
6412         * elf/dl-runtime.c (_dl_fixup): Protect using global scope.
6413         (_dl_lookup_symbol_x): Likewise.
6414         * elf/dl-support.c: Define _dl_wait_lookup_done.
6415         * sysdeps/generic/ldsodefs.h (struct rtld_global): Add
6416         _dl_wait_lookup_done.
6417
6418         * malloc/malloc.c (do_check_chunk): Correct check for mmaped block
6419         not overlapping with arena.
6420
6421         * malloc/mcheck.c (reallochook): If size==0, free the block.
6422
6423         * rt/tst-shm.c: Use fstat64 instead of fstat.
6424
6425         * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Fix case where
6426         __NR_sync_file_range is not defined.
6427
6428 2007-05-17  Ulrich Drepper  <drepper@redhat.com>
6429
6430         Dummy files to prevent stub versions from being used.
6431         * sysdeps/x86_64/fpu/k_cosl.c: New file.
6432         * sysdeps/x86_64/fpu/k_rem_pio2l.c: New file.
6433         * sysdeps/x86_64/fpu/k_sinl.c: New file.
6434         * sysdeps/x86_64/fpu/k_tanl.c: New file.
6435
6436         * version.h (VERSION): Set to 2.6.90.
6437
6438 2007-05-14  Ulrich Drepper  <drepper@redhat.com>
6439
6440         * version.h (VERSION): Define to 2.6.
6441         * include/features.h (__GLIBC_MINOR__): Define to 6.
6442
6443         * malloc/malloc.c: Use all small bin slots on 64-bit archs.
6444
6445         * malloc/malloc.c (largebin_index): Really have 32 buckets with 64
6446         sizes.
6447
6448 2007-05-13  Ulrich Drepper  <drepper@redhat.com>
6449
6450         * malloc/malloc.c [MALLOC_DEBUG]: Keep track of current maximum
6451         number of mmaps.  n_mmaps_max is the target.
6452         * malloc/hooks.c: Likewise.
6453         * malloc/arena.c: Likewise.
6454
6455 2007-05-12  Andreas Jaeger  <aj@suse.de>
6456
6457         * sysdeps/unix/sysv/linux/tst-getcpu.c: Include <unistd.h> for
6458         getpid.
6459
6460 2007-05-11  Ulrich Drepper  <drepper@redhat.com>
6461
6462         * elf/dl-close.c (_dl_close_worker): Help gcc to optimize by
6463         adding new variables.
6464
6465         * elf/dl-open.c (add_to_global): Introduce variable ns to help gcc
6466         optimize.  Completely extend global scope array before making the
6467         new entries visible.
6468
6469 2007-05-10  Ulrich Drepper  <drepper@redhat.com>
6470
6471         * sysdeps/unix/sysv/linux/tst-getcpu.c: New file.
6472         * sysdeps/unix/sysv/linux/Makefile [subdir=posix] (tests): Add
6473         tst-getcpu.
6474
6475         * include/link.h: Move l_version and l_nversion members around to
6476         fill gaps.
6477
6478         * scripts/check-c++-types.sh: Don't use -fnu89-inline option.
6479
6480         * sysdeps/unix/sysv/linux/sched_setaffinity.c
6481         (__sched_setaffinity_new): If syscall was successful and
6482         RESET_VGETCPU_CACHE is defined, use it before returning.
6483         * sysdeps/unix/sysv/linux/x86_64/sched_setaffinity.c: New file.
6484
6485         * io/sys/stat.h: Make sure struct timespec is defined for
6486         __USE_ATFILE.
6487
6488         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Define UTIME_NOW and
6489         UTIME_OMIT.
6490         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
6491         * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
6492         * sysdeps/unix/sysv/linux/alpha/bits/stat.h: Likewise.
6493         * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
6494         * sysdeps/unix/sysv/linux/bits/stat.h: Likewise.
6495         * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
6496         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_UTIMENSAT.
6497         * io/sys/stat.h: Declare utimensat, futimens.
6498         * io/utimensat.c: New file.
6499         * io/futimens.c: New file.
6500         * sysdeps/unix/sysv/linux/utimensat.c: New file.
6501         * sysdeps/unix/sysv/linux/futimens.c: New file.
6502         * io/Makefile (routines): Add utimensat, futimens.
6503         * io/Versions: Add utimensat, futimens to GLIBC_2.6.
6504         * sysdeps/unix/sysv/linux/lutimes.c: New file.
6505         * sysdeps/unix/sysv/linux/futimes.c: Use utimensat syscall if
6506         available.
6507
6508         * include/sys/cdefs.h: Redefine __nonnull so that test for
6509         incorrect parameters in the libc code itself are not omitted.
6510
6511 2007-05-09  Jakub Jelinek  <jakub@redhat.com>
6512
6513         * sysdeps/ia64/fpu/fraiseexcpt.c (feraiseexcept): Don't raise overflow
6514         exception in addition to inexact when asked to raise only FE_INEXACT.
6515
6516         [BZ #3427]
6517         * sysdeps/s390/fpu/feholdexcpt.c (feholdexcept): Don't clear exceptions
6518         in *envp.
6519
6520 2007-05-07  Ulrich Drepper  <drepper@redhat.com>
6521
6522         [BZ #4403]
6523         * string/strfry.c (strfry): Make result more random.
6524
6525 2007-05-07  Richard Henderson  <rth@redhat.com>
6526
6527         * sysdeps/alpha/fpu/bits/mathinline.h (__isnanl): Don't define
6528         if __NO_LONG_DOUBLE_MATH.
6529         * sysdeps/unix/sysv/linux/alpha/ioperm.c: If BWX insns not
6530         available in the compiler, add .arch directive to the assembly.
6531
6532 2007-05-07  Jakub Jelinek  <jakub@redhat.com>
6533
6534         * sysdeps/alpha/fpu/s_nearbyint.c (nearbyintl): Fix version on
6535         compat_symbol to GLIBC_2_1.
6536         * sysdeps/alpha/fpu/s_fmin.S (fminl): Likewise.
6537         * sysdeps/alpha/fpu/s_trunc.c (truncl): Likewise.
6538         * sysdeps/alpha/fpu/s_fmax.S (fmaxl): Likewise.
6539         * sysdeps/alpha/fpu/s_lrint.c (lrintl, llrintl): Likewise.
6540         * sysdeps/alpha/fpu/s_lround.c (lroundl, llroundl): Likewise.
6541         * sysdeps/alpha/fpu/s_round.c (roundl): Likewise.
6542         * sysdeps/alpha/fpu/s_isnan.c (isnanl): Provide compat_symbol in
6543         libc, not libm.
6544         (__isnanl): New compat_symbol.
6545
6546 2007-05-07  Ulrich Drepper  <drepper@redhat.com>
6547             Jakub Jelinek  <jakub@redhat.com>
6548
6549         * malloc/arena.c (heap_info): Add mprotect_size field, adjust pad.
6550         (new_heap): Initialize mprotect_size.
6551         (grow_heap): When growing, only mprotect from mprotect_size till
6552         new_size if mprotect_size is smaller.  When shrinking, use PROT_NONE
6553         MMAP for __libc_enable_secure only, otherwise use MADV_DONTNEED.
6554
6555 2007-04-30  Steven Munroe  <sjmunroe@us.ibm.com>
6556             Peter Bergner  <bergner@us.ibm.com>
6557
6558         * sysdeps/powerpc/bits/fenv.h: Declare __fe_mask_env extern.
6559         Define FE_NOMASK_ENV as FE_EANBLED_ENV.  Define FE_MASK_ENV.
6560         * sysdeps/powerpc/fpu/Makefile: Add fe_mask to libm-support.
6561         * sysdeps/powerpc/fpu/fe_mask.c: New file.
6562         * sysdeps/powerpc/fpu/fe_nomask.c: Correct comment.
6563         * sysdeps/powerpc/fpu/fedisblxcpt.c (fedisableexcept):
6564         Call __fe_mask_env() if all FP exceptions disabled.
6565         * sysdeps/powerpc/fpu/feholdexcpt.c (feholdexcept): Copy high 32-bits
6566         from old FPSCR to new fenv to propagate DFP rounding modes.
6567         Call __fe_mask_env() if FP exceptions previously enabled.
6568         * sysdeps/powerpc/fpu/fesetenv.c (fesetenv): Change mask to merge
6569         exceptions from env.  Use __fe_nomask_env() or __fe_mask_env() when
6570         transitioning from all exceptions disabled to any exception enabled
6571         or visa versa.
6572         * sysdeps/powerpc/fpu/feupdateenv.c (__feupdateenv): Change mask to
6573         merge exceptions from env.  Call __fe_nomask_env or __fe_mask_env
6574         when transitioning from all exceptions disabled to any exception
6575         enabled or visa versa.
6576         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fe_nomask.c: Moved to...
6577         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c: ...here.
6578         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c: Moved to...
6579         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c: ...here.
6580         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c: New file.
6581         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c: New file.
6582
6583 2007-05-06  Ulrich Drepper  <drepper@redhat.com>
6584
6585         [BZ #4465]
6586         * posix/unistd.h: Remove __THROW from fdatasync.
6587
6588 2007-05-06  Mike Frysinger  <vapier@gentoo.org>
6589
6590         [BZ #4465]
6591         * sysdeps/unix/sysv/linux/syscalls.list (fdatasync): Add "C" to args.
6592
6593 2007-05-06  Ulrich Drepper  <drepper@redhat.com>
6594
6595         * stdio-common/vfprintf.c (process_string_arg): Optimize
6596         ridiculous precision in wide char code printing multi-byte string.
6597         Reported by Jim Meyering <jim@meyering.net>.
6598
6599         [BZ #4131]
6600         * elf/dl-addr.c (_dl_addr): Compare address with actual segment
6601         boundaries to work around systems with overlapping binary loading.
6602         Based on a patch by Suzuki <suzuki@in.ibm.com>.
6603
6604 2007-05-04  Ulrich Drepper  <drepper@redhat.com>
6605
6606         * stdio-common/vfprintf.c (process_string_arg): Adjust call to
6607         __mbsnrtowcs after last change.
6608
6609         * locale/programs/linereader.c (get_symname): Fix adding final NUL.
6610         (get_ident): Likewise.
6611
6612 2007-05-03  Jakub Jelinek  <jakub@redhat.com>
6613
6614         * soft-fp/op-common.h (FP_TRUNC): Replace raising of FP_EX_INEXACT
6615         with setting the sticky bit.
6616         * math/test-misc.c (main): Add more truncation tests.
6617
6618 2007-04-14  Uros Bizjak  <ubizjak@gmail.com>
6619
6620         * soft-fp/floatunsidf.c (__floatunsidf): Use DFtype instead of
6621         double in the function declaration.
6622         * soft-fp/floatundidf.c (__floatundidf): Use DFtype instead of
6623         double in the function declaration.
6624         * soft-fp/floatunsisf.c (__floatunsisf): Use SFtype instead of
6625         float in the function declaration.
6626         * soft-fp/floatunsisf.c (__floatunsisf): Use SFtype instead of
6627         float in the function declaration.
6628
6629         * soft-fp/extended.h (FP_UNPACK_RAW_E): Do not increase X##_e for
6630         denormal operands.  Do not generate FP_EX_DENORM exception.
6631         (FP_UNPACK_RAW_EP): Ditto.
6632         (FP_UNPACK_SEMIRAW_E): Use FP_UNPACK_RAW_E instead of
6633         undefined _FP_UNPACK_RAW_E.
6634         (FP_UNPACK_SEMIRAW_EP): Use FP_UNPACK_RAW_EP instead of
6635         undefined _FP_UNPACK_RAW_EP.
6636         (FP_PACK_SEMIRAW_E): Use FP_PACK_RAW_E instead of
6637         undefined _FP_PACK_RAW_E.
6638         (FP_PACK_SEMIRAW_EP): Use FP_PACK_RAW_EP instead of
6639         undefined _FP_PACK_RAW_EP.
6640
6641         * soft-fp/op-2.h (_FP_FRAC_COPY_2_2): Define as alias to
6642         _FP_FRAC_COPY_2.
6643         * soft-fp/op-4.h (_FP_FRAC_COPY_2_2): Define as alias to
6644         _FP_FRAC_COPY_4.
6645
6646 2007-04-16  Uros Bizjak  <ubizjak@gmail.com>
6647             Jakub Jelinek  <jakub@redhat.com>
6648
6649         * soft-fp/op-common.h (FP_EXTEND): Do not abort when
6650         _FP_EXPBIAS_##dfs == _FP_EXPBIAS_##sfs.  Handle denormals for
6651         this case.
6652         * soft-fp/op-common.h (FP_TRUNC): Ditto.
6653
6654 2007-05-03  Jakub Jelinek  <jakub@redhat.com>
6655
6656         * math/test-misc.c (main): Add tests for rounding long double
6657         values close to smallest double denormalized value to double.
6658
6659 2007-04-30  Joseph Myers  <joseph@codesourcery.com>
6660
6661         * soft-fp/op-common.h (FP_TRUNC): Correct off-by-one error in
6662         condition for truncating to 0.  Set sticky bit for such
6663         truncation.
6664
6665 2007-05-02  Jakub Jelinek  <jakub@redhat.com>
6666
6667         * stdio-common/vfprintf.c (process_string_arg): Use a VLA rather than
6668         fixed length array for ignore.
6669
6670 2007-04-30  Ulrich Drepper  <drepper@redhat.com>
6671
6672         [BZ #4438]
6673         * stdio-common/vfprintf.c (process_string_arg): Don't overflow the
6674         stack for large precisions.
6675         * stdio-common/test-vfprintf.c (main): Add test for large
6676         precision.
6677
6678 2007-04-30  Jakub Jelinek  <jakub@redhat.com>
6679
6680         * stdio-common/printf_fp.c (___printf_fp): Don't print negative sign
6681         for exponent 0.
6682         * stdio-common/tfformat.c (sprint_doubles): Add a new test.
6683
6684         [BZ #4439]
6685         * resolv/inet_ntop.c (inet_ntop4): Take terminating '\0' into
6686         account in the size check.
6687         * resolv/tst-inet_ntop.c: New test.
6688         * resolv/Makefile (tests): Add tst-inet_ntop.
6689
6690 2007-04-30  Ulrich Drepper  <drepper@redhat.com>
6691             Jakub Jelinek  <jakub@redhat.com>
6692
6693         [BZ #4349]
6694         * malloc/malloc.c: Keep separate list for first blocks on the bin
6695         lists with a given size.  This helps skipping over list elements
6696         we know won't fit in two places.
6697         Inspired by a patch by Tomash Brechko <tomash.brechko@gmail.com>.
6698
6699 2007-04-28  Ulrich Drepper  <drepper@redhat.com>
6700
6701         [BZ #4102]
6702         * sysdeps/posix/getaddrinfo.c (default_labels): Assign separate
6703         label to Teredo tunnel addresses 2001://32.
6704
6705 2007-04-27  Ulrich Drepper  <drepper@redhat.com>
6706
6707         * locale/programs/ld-collate.c (collate_read): Allow order_start
6708         after copy.
6709
6710         * locale/programs/ld-collate.c (collate_read): Fix printing of
6711         error message.
6712
6713         [BZ #3213]
6714         * locale/C-translit.h.in: Add entry for U2044.
6715
6716         [BZ #4342]
6717         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Allow
6718         hexa-decimal floats without exponent.
6719         * stdio-common/tstscanf.c (main): Adjust Test 8 test for success.
6720
6721 2007-04-25  Ulrich Drepper  <drepper@redhat.com>
6722
6723         * sysdeps/unix/sysv/linux/bits/sched.h: Declare sched_getcpu.
6724         * sysdeps/unix/sysv/linux/sched_getcpu.c: New file.
6725         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: New file.
6726         * sysdeps/unix/sysv/linux/Versions: Export sched_getcpu for
6727         GLIBC_2.6.
6728         * sysdeps/unix/sysv/linux/Makefile [subdir=posix] (sysdep_routines):
6729         Add sched_getcpu.
6730
6731 2007-04-25  Jakub Jelinek  <jakub@redhat.com>
6732
6733         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Return -1 instead
6734         of 0 after the out_fail label.
6735
6736 2007-04-25  Ulrich Drepper  <drepper@redhat.com>
6737
6738         [BZ #4406]
6739         * iconv/gconv_charset.h (strip): Allow ':'.
6740         * iconv/iconv_open.c (iconv_open): Adjust comment.
6741
6742 2007-04-25  Jakub Jelinek  <jakub@redhat.com>
6743
6744         * libio/bits/stdio.h (fgetc_unlocked): Add extern inline optimized
6745         version.
6746
6747 2007-04-23  Jakub Jelinek  <jakub@redhat.com>
6748
6749         [BZ #4381]
6750         * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Ensure sufficient
6751         alignment of buffer and tmp_buffer.
6752         * nis/nss_nis/nis-hosts.c (internal_nis_gethostent_r,
6753         internal_gethostbyname2_r, _nss_nis_gethostbyaddr_r): Ensure sufficient
6754         alignment of buffer.
6755         * resolv/nss_dns/dns-hosts.c (getanswer_r): Likewise.  Handle buflen
6756         bigger than INT_MAX.
6757         * resolv/nss_dns/dns-network.c (getanswer_r): Likewise.  Add errnop and
6758         h_errnop arguments.  Fail if buflen is too small.
6759         (_nss_dns_getnetbyname_r, _nss_dns_getnetbyaddr_r): Adjust callers.
6760
6761 2007-04-23  Jakub Jelinek  <jakub@redhat.com>
6762
6763         [BZ #4405]
6764         * iconvdata/gconv-modules (E13B): Add a missing slash to the alias
6765         name.  Patch by Aurelien Jarno <aurelien@aurel32.net>.
6766
6767 2007-04-22  Roland McGrath  <roland@redhat.com>
6768
6769         * elf/elf.h (NT_PRXFPREG): New macro.
6770
6771 2007-04-19  Andreas Jaeger  <aj@suse.de>
6772
6773         [BZ #3905]
6774         * bits/in.h (IPV6_ROUTER_ALERT, IPV6_MTU_DISCOVER, IPV6_MTU,
6775         IPV6_RECVERR, IPV6_V6ONLY, IPV6_JOIN_ANYCAST, IPV6_LEAVE_ANYCAST):
6776         Added.
6777
6778 2007-04-19  Ulrich Drepper  <drepper@redhat.com>
6779
6780         * include/sys/mman.h: Mark madvise hidden.
6781         * misc/madvise.c: Add libc_hidden_def.
6782
6783 2007-04-06  Jakub Jelinek  <jakub@redhat.com>
6784
6785         * nis/nis_domain_of.c (__nis_domain_of): New function.
6786         * include/rpcsvc/nislib.h (__nis_domain_of): New prototype.
6787         * nis/nis_lookup.c (nis_lookup): Use __nis_domain_of.
6788         * nis/nis_call.c (rec_dirsearch): Likewise.
6789         (first_shoot): Likewise.  Remove search_parent_first argument.
6790         (struct nis_server_cache): Rename search_parent_first field
6791         to search_parent.
6792         (nis_server_cache_search, nis_server_cache_add): Rename
6793         search_parent_first argument to search_parent.
6794         (__nisfind_server): Likewise.  If search_parent, call
6795         __nis_domain_of.
6796
6797 2007-04-18  Ulrich Drepper  <drepper@redhat.com>
6798
6799         * sysdeps/posix/getaddrinfo.c: Remove commented-out code.
6800
6801 2007-04-17  Ulrich Drepper  <drepper@redhat.com>
6802
6803         [BZ #4368]
6804         * stdlib/stdlib.h: Remove obsolete part of comment for realpath.
6805
6806 2007-04-16  Ulrich Drepper  <drepper@redhat.com>
6807
6808         [BZ #4364]
6809         * posix/unistd.h (_XOPEN_VERSION): Define appropriately for SUSv3.
6810
6811 2007-04-15  Jakub Jelinek  <jakub@redhat.com>
6812
6813         * locale/programs/locarchive.c (INITIAL_NUM_NAMES,
6814         INITIAL_SIZE_STRINGS, INITIAL_NUM_LOCREC): Update to accomodate
6815         current number of locales in SUPPORTED.
6816         (create_archive): Initialize serial.
6817         (enlarge_archive): Preserve aliases rather than duplicating
6818         their locrecs.
6819
6820 2007-04-13  Jakub Jelinek  <jakub@redhat.com>
6821
6822         * libio/genops.c (_IO_default_finish): Call _IO_lock_fini
6823         after _IO_un_link, not before it.
6824
6825         * stdio-common/printf_fp.c (___printf_fp): Fix exponent -4
6826         special case handling when wcp == wstartp + 1.  Fix a comment typo.
6827         * stdio-common/tfformat.c (sprint_doubles): Add a new testcase.
6828
6829 2007-03-30  Jakub Jelinek  <jakub@redhat.com>
6830
6831         * libio/libio.h (__underflow, __uflow, __overflow, __wunderflow,
6832         __wuflow, __woverflow, _IO_getc, _IO_putc, _IO_peekc_locked, _IO_padn,
6833         _IO_sgetn, _IO_seekoff, _IO_seekpos, _IO_getwc, _IO_putwc, _IO_wpadn):
6834         Remove __THROW.
6835         * libio/fileops.c (new_do_write, _IO_file_xsgetn_mmap,
6836         _IO_file_xsgetn_maybe_mmap): Likewise.
6837         * libio/oldfileops.c (old_do_write): Likewise.
6838         * libio/libioP.h (_IO_switch_to_get_mode, _IO_switch_to_wget_mode,
6839         _IO_init_marker, _IO_init_wmarker, _IO_default_uflow,
6840         _IO_wdefault_uflow, _IO_default_setbuf, _IO_default_seekpos,
6841         _IO_do_write, _IO_new_do_write, _IO_old_do_write, _IO_wdo_write,
6842         _IO_flush_all_lockp, _IO_flush_all, _IO_cleanup,
6843         _IO_flush_all_linebuffered, _IO_new_fgetpos, _IO_old_fgetpos,
6844         _IO_new_fsetpos, _IO_old_fsetpos, _IO_new_fgetpos64,
6845         _IO_old_fgetpos64, _IO_new_fsetpos64, _IO_old_fsetpos64,
6846         _IO_file_setbuf, _IO_file_seekoff, _IO_file_xsputn, _IO_file_xsgetn,
6847         _IO_file_underflow, _IO_file_underflow_mmap,
6848         _IO_file_underflow_maybe_mmap, _IO_file_overflow, _IO_file_attach,
6849         _IO_file_open, _IO_file_fopen, _IO_file_write, _IO_file_read,
6850         _IO_file_sync, _IO_file_close_it, _IO_file_finish,
6851         _IO_new_file_attach, _IO_new_file_close_it, _IO_new_file_finish,
6852         _IO_new_file_fopen, _IO_new_file_setbuf, _IO_file_setbuf_mmap,
6853         _IO_new_file_sync, _IO_new_file_underflow, _IO_new_file_overflow,
6854         _IO_new_file_seekoff, _IO_new_file_write, _IO_new_file_xsputn,
6855         _IO_old_file_setbuf, _IO_old_file_seekoff, _IO_old_file_xsputn,
6856         _IO_old_file_underflow, _IO_old_file_overflow, _IO_old_file_attach,
6857         _IO_old_file_fopen, _IO_old_file_write, _IO_old_file_sync,
6858         _IO_old_file_close_it, _IO_old_file_finish, _IO_wfile_xsputn,
6859         _IO_wfile_setbuf, _IO_wfile_sync, _IO_wfile_underflow,
6860         _IO_wfile_overflow, _IO_wfile_seekoff, _IO_old_proc_open,
6861         _IO_old_proc_close, _IO_getdelim, _IO_flush_all_internal,
6862         _IO_adjust_column_internal, _IO_default_uflow_internal,
6863         _IO_default_xsgetn_internal, _IO_wdefault_xsputn_internal,
6864         _IO_wdefault_xsgetn_internal, _IO_wdefault_uflow_internal,
6865         _IO_file_setbuf_internal, _IO_file_seekoff_internal,
6866         _IO_file_xsputn_internal, _IO_file_xsgetn_internal,
6867         _IO_file_close_it_internal, _IO_file_underflow_internal,
6868         _IO_file_overflow_internal, _IO_file_attach_internal,
6869         _IO_file_fopen_internal, _IO_file_sync_internal,
6870         _IO_file_finish_internal, _IO_wfile_xsputn_internal,
6871         _IO_wfile_seekoff_internal, _IO_wfile_sync_internal,
6872         _IO_switch_to_wget_mode_internal, _IO_padn_internal,
6873         _IO_switch_to_get_mode_internal, _IO_seekoff_unlocked,
6874         _IO_seekpos_unlocked): Likewise.
6875         (_IO_strtod, _IO_dtoa, _IO_outfloat, _IO_read, _IO_write,
6876         _IO_lseek, _IO_close, _IO_fstat): Remove unused prototypes.
6877
6878 2007-04-16  Jakub Jelinek  <jakub@redhat.com>
6879
6880         * locale/programs/locarchive.c (show_archive_content): Fix sizeof
6881         argument in xmalloc size computation.
6882
6883 2007-04-01  Jakub Jelinek  <jakub@redhat.com>
6884
6885         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl): Use
6886         math_opt_barrier and math_force_eval macros.
6887
6888 2007-03-27  Jakub Jelinek  <jakub@redhat.com>
6889
6890         [BZ #3306]
6891         * math/math_private.h (math_opt_barrier, math_force_eval): Define.
6892         * sysdeps/i386/fpu/math_private.h: New file.
6893         * sysdeps/x86_64/fpu/math_private.h: New file.
6894         * math/s_nexttowardf.c (__nexttowardf): Use math_opt_barrier and
6895         math_force_eval macros.  Use "+m" constraint on asm rather than
6896         "=m" and "m".
6897         * math/s_nextafter.c (__nextafter): Likewise.
6898         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c (__nexttoward):
6899         Likewise.
6900         * sysdeps/ieee754/flt-32/s_nextafterf.c (__nextafterf): Likewise.
6901         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward): Likewise.
6902         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
6903         * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Use
6904         math_opt_barrier and math_force_eval macros.
6905         * sysdeps/ieee754/ldbl-128/s_nextafterl.c (__nextafterl): Likewise.
6906         * sysdeps/ieee754/ldbl-96/s_nextafterl.c (__nextafterl): Likewise.
6907         * sysdeps/i386/fpu/s_nexttoward.c: Include float.h.
6908         (__nexttoward): Use math_opt_barrier and
6909         math_force_eval macros.  Use "+m" constraint on asm rather than
6910         "=m" and "m".  Only use asm to force double result if
6911         FLT_EVAL_METHOD is 2.
6912         * sysdeps/i386/fpu/s_nexttowardf.c: Include float.h.
6913         (__nexttowardf): Use math_opt_barrier and
6914         math_force_eval macros.  Use "+m" constraint on asm rather than
6915         "=m" and "m".  Only use asm to force double result if
6916         FLT_EVAL_METHOD is not 0.
6917         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Include float.h.
6918         (__nexttowardf): Use math_opt_barrier and
6919         math_force_eval macros.  If FLT_EVAL_METHOD is not 0, force
6920         x to float using asm.
6921         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c: Include float.h.
6922         (__nldbl_nexttowardf): Use math_opt_barrier and
6923         math_force_eval macros.  If FLT_EVAL_METHOD is not 0, force
6924         x to float using asm.
6925         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Include float.h.
6926         (__nexttowardf): Use math_opt_barrier and math_force_eval
6927         macros.  If FLT_EVAL_METHOD is not 0, force x to float using asm.
6928         * math/bug-nextafter.c (zero, inf): New variables.
6929         (main): Add new tests.
6930         * math/bug-nexttoward.c (zero, inf): New variables.
6931         (main): Add new tests.
6932
6933 2007-03-22  Jakub Jelinek  <jakub@redhat.com>
6934
6935         [BZ #3427]
6936         * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Clear all
6937         exceptions both in SW and MXCSR.
6938         * sysdeps/x86_64/fpu/feupdateenv.c: New file.
6939         * sysdeps/x86_64/fpu/feenablxcpt.c (feenableexcept): Remove dead code.
6940         * sysdeps/x86_64/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
6941         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions
6942         in MXCSR if SSE is available.
6943         * sysdeps/i386/fpu/feupdateenv.c: Include unistd.h, dl-procinfo.h
6944         and ldsodefs.h.
6945         (__feupdateenv): Query exceptions also from MXCSR if SSE is available.
6946         Fix comment typo.
6947         * sysdeps/ia64/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions.
6948         Return 0 rather than 1.
6949         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Fix comment typo.
6950         Remove incorrect part of a comment.  Fix argument to feraiseexcept.
6951         * math/test-fenv.c (feholdexcept_tests): New function.
6952         (main): Call it.
6953
6954 2007-01-05  Richard B. Kreckel  <kreckel@ginac.de>
6955
6956         [BZ #3427]
6957         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions
6958         in SW.
6959
6960 2007-04-13  Jakub Jelinek  <jakub@redhat.com>
6961
6962         [BZ #4344]
6963         * elf/ldconfig.c (search_dir): Fix 2 off-by-2 errors.
6964         Reported by David Anderson <davea42@earthlink.net>.
6965
6966 2007-04-07  Ulrich Drepper  <drepper@redhat.com>
6967
6968         * posix/sys/wait.h: Remove unnecessary forward declaration.
6969
6970 2007-04-05  Jakub Jelinek  <jakub@redhat.com>
6971
6972         * nis/nis_call.c (__nisfind_server): Replace (*dir)->do_servers
6973         with obj->do_servers after first_shoot.
6974
6975 2007-04-03  Ulrich Drepper  <drepper@redhat.com>
6976
6977         * posix/Makefile (routines): Add sched_cpucount.
6978         (tests): Add tst-cpucount.
6979         * posix/sched_cpucount.c: New file.
6980         * posix/tst-cpucount.c: New file.
6981         * posix/Versions: Export __sched_cpucount with version GLIBC_2.6.
6982         * bits/sched.h: Define __CPU_COUNT.  Declare __sched_cpucount.
6983         * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
6984         * posix/sched.h: Define CPU_COUNT.
6985
6986 2007-03-27  Jakub Jelinek  <jakub@redhat.com>
6987
6988         * posix/fnmatch.c (STRUCT): Define.
6989         (fnmatch): Pass NULL as last argument to internal_fn{,w}match.
6990         * posix/fnmatch_loop.c (struct STRUCT): New type.
6991         (FCT): Add ends argument.  If ends != NULL and normal * is
6992         seen in the pattern, store current pattern and string pointers
6993         and return.  Adjust recursive calls.
6994         (EXT): Adjust FCT callers.
6995         (STRUCT): Undef at the end of the file.
6996         * posix/Makefile (tests): Add tst-fnmatch2.
6997         * posix/tst-fnmatch2.c: New test.
6998
6999 2007-04-01  Jakub Jelinek  <jakub@redhat.com>
7000
7001         * sysdeps/ia64/fpu/fesetround.c (fesetround): Return 0 on success
7002         and 1 on failure.
7003
7004         * sysdeps/unix/sysv/linux/sync_file_range.c (sync_file_range):
7005         Change last argument to unsigned int.
7006
7007 2007-03-23  Jakub Jelinek  <jakub@redhat.com>
7008
7009         * scripts/check-local-headers.sh: Filter out sys/capability.h.
7010
7011 2007-03-22  Jakub Jelinek  <jakub@redhat.com>
7012
7013         * config.h.in (HAVE_LIBCAP): Add.
7014         * nscd/selinux.h: Include sys/capability.h rather than non-existent
7015         sys/capabilities.h.
7016         * nscd/selinux.c (preserve_capabilities): Use cap_free instead of
7017         free_caps.  Cast away const from 4th cap_set_flag argument.
7018
7019 2007-03-26  Ulrich Drepper  <drepper@redhat.com>
7020
7021         * sysdeps/unix/sysv/linux/Versions: Move sync_file_range to
7022         GLIBC_2.6.
7023         * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
7024         Add sync_file_range.
7025         Reported by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
7026
7027 2007-03-19  Steven Munroe  <sjmunroe@us.ibm.com>
7028
7029         * sysdeps/powerpc/bits/atomic.h
7030         [!MUTEX_HINT_ACQ]: Define MUTEX_HINT_ACQ.
7031         [!MUTEX_HINT_REL]: Define MUTEX_HINT_REL.
7032         (__arch_compare_and_exchange_val_32_acq): Add MUTEX_HINT_ACQ to lwarx.
7033         (__arch_compare_and_exchange_val_32_rel): Add MUTEX_HINT_REL to lwarx.
7034         (__arch_atomic_exchange_val_32_acq): Add MUTEX_HINT_ACQ to lwarx.
7035         (__arch_atomic_exchange_rel_32_rel): Add MUTEX_HINT_REL to lwarx.
7036         * sysdeps/powerpc/powerpc32/bits/atomic.h [_ARCH_PWR6 || _ARCH_PWR6X]:
7037         Define MUTEX_HINT_ACQ as ",1" and MUTEX_HINT_REL as ",0".
7038         (__arch_compare_and_exchange_bool_32_acq): Add MUTEX_HINT_ACQ to lwarx.
7039         (__arch_compare_and_exchange_bool_32_rel): Add MUTEX_HINT_REL to lwarx.
7040         * sysdeps/powerpc/powerpc64/bits/atomic.h [_ARCH_PWR6 || _ARCH_PWR6D]:
7041         Define MUTEX_HINT_ACQ as ",1" and MUTEX_HINT_REL as ",0".
7042         (__arch_compare_and_exchange_bool_32_acq): Add MUTEX_HINT_ACQ to lwarx.
7043         (__arch_compare_and_exchange_bool_32_rel): Add MUTEX_HINT_REL to lwarx.
7044         (__arch_compare_and_exchange_bool_64_acq): Add MUTEX_HINT_ACQ to lwarx.
7045         (__arch_compare_and_exchange_bool_64_rel): Add MUTEX_HINT_REL to lwarx.
7046         (__arch_compare_and_exchange_val_64_acq): Add MUTEX_HINT_ACQ to lwarx.
7047         (__arch_compare_and_exchange_val_64_rel): Add MUTEX_HINT_REL to lwarx.
7048         (__arch_atomic_exchange_val_64_acq): Add MUTEX_HINT_ACQ to lwarx.
7049         (__arch_atomic_exchange_rel_64_rel): Add MUTEX_HINT_REL to lwarx.
7050
7051 2007-03-20  Jakub Jelinek  <jakub@redhat.com>
7052
7053         * sysdeps/unix/sysv/linux/powerpc/libc-start.c
7054         (__cache_line_size): Define the variable here.  Add
7055         attribute_hidden, remove weak_extern.
7056         (__libc_start_main): Set __cache_line_size
7057         unconditionally.
7058         * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
7059         (__cache_line_size): Define the variable here.  Add
7060         attribute_hidden, remove weak_extern.
7061         (DL_PLATFORM_AUXV): Set __cache_line_size
7062         unconditionally.
7063         * sysdeps/powerpc/powerpc32/dl-machine.c (__cache_line_size): Remove
7064         weak_extern, add attribute_hidden.
7065         (__elf_machine_runtime_setup): Assume __cache_line_size is always
7066         defined in ld.so.
7067         * sysdeps/powerpc/powerpc32/memset.S (__cache_line_size): Remove
7068         definition.
7069         * sysdeps/powerpc/powerpc64/memset.S (__cache_line_size): Likewise.
7070
7071 2007-03-26  Jakub Jelinek  <jakub@redhat.com>
7072
7073         [BZ #4276]
7074         * timezone/africa: Update from tzdata2007d.
7075         * timezone/asia: Likewise.
7076         * timezone/australasia: Likewise.
7077         * timezone/backward: Likewise.
7078         * timezone/europe: Likewise.
7079         * timezone/iso3166.tab: Likewise.
7080         * timezone/leapseconds: Likewise.
7081         * timezone/northamerica: Likewise.
7082         * timezone/southamerica: Likewise.
7083         * timezone/zone.tab: Likewise.
7084
7085         * timezone/private.h: Update from tzcode2007d.
7086         * timezone/zdump.c: Likewise.
7087         * timezone/zic.c: Likewise.
7088
7089 2007-03-21  Jakub Jelinek  <jakub@redhat.com>
7090
7091         * nis/nis_call.c: Include bits/libc-lock.h, sys/stat.h, unistd.h.
7092         (nis_server_cache, nis_server_cache_lock, nis_cold_start_mtime): New
7093         variables.
7094         (nis_server_cache_search, nis_server_cache_add): New functions.
7095         (__nisfind_server): Use them.  Add dbp and flags argument, if
7096         call __nisbind_create.
7097         (__nisbind_create): Add server_used and current_ep arguments,
7098         only call __nis_findfastest if server_used is ~0.
7099         (__do_niscall2, __prepare_niscall): Adjust callers.
7100         (ckey_cache, ckey_cache_size, ckey_cache_allocated, ckey_cache_pid,
7101         ckey_cache_euid, ckey_cache_lock): New variables.
7102         (get_ckey): New function.
7103         (__nisbind_connect): If not dbp->use_udp, pass IPPROTO_TCP to
7104         __pmap_getnisport.  Save __pmap_getnisport result in
7105         dbp->addr.sin_port if non-zero.  Use get_ckey to create conversation
7106         key.
7107         * nis/nis_lookup.c (nis_lookup): Likewise.
7108         * nis/nis_table.c (nis_list): Likewise.
7109         * nis/rpcsvc/nislib.h (__nisbind_create, __nisfind_server): Adjust
7110         prototypes.
7111
7112         * nis/nss_nisplus/nisplus-pwd.c (_nss_nisplus_getpwnam_r,
7113         _nss_nisplus_getpwuid_r): Pass USE_DGRAM flag to nis_list.
7114         * nis/nss_nisplus/nisplus-service.c (_nss_nisplus_getservbyname_r,
7115         _nss_nisplus_getservbyport_r): Likewise.
7116         * nis/nss_nisplus/nisplus-network.c (_nss_nisplus_getnetbyname_r,
7117         _nss_nisplus_getnetbyaddr_r): Likewise.
7118         * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_getspnam_r): Likewise.
7119         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_gethostton_r,
7120         _nss_nisplus_getntohost_r): Likewise.
7121         * nis/nss_nisplus/nisplus-rpc.c (_nss_nisplus_getrpcbyname_r,
7122         _nss_nisplus_getrpcbynumber_r): Likewise.
7123
7124 2007-03-20  Jakub Jelinek  <jakub@redhat.com>
7125
7126         * configure.in (libc_cv_gnu89_inline): Only do compile test.
7127         * configure: Rebuilt.
7128
7129         * soft-fp/double.h (_FP_UNION_D): Use _FP_W_TYPE for frac
7130         bit-fields.
7131         * soft-fp/extended.h (_FP_UNION_E): Likewise.
7132
7133 2006-06-07  Joseph Myers  <joseph@codesourcery.com>
7134
7135         [BZ #2831]
7136         * soft-fp/quad.h (_FP_UNION_Q): Use _FP_W_TYPE for frac
7137         bit-fields.
7138
7139 2007-03-18  Jakub Jelinek  <jakub@redhat.com>
7140
7141         * nscd/gai.c: Include alloca.h.
7142         (__libc_use_alloca): Define.
7143
7144 2007-03-16  Jakub Jelinek  <jakub@redhat.com>
7145
7146         * elf/dl-open.c (dl_open_worker): Declare l in 2 different
7147         smaller scopes.
7148         * elf/dl-dst.h (DL_DST_REQ_STATIC): Add l as macro argument.
7149         (DL_DST_REQUIRED): Adjust user.
7150
7151         * include/dlfcn.h (struct link_map): New forward decl.
7152
7153         * inet/getnameinfo.c: Include stddef.h.
7154         (getnameinfo): Use offsetof.
7155
7156         * time/tst-mktime2.c (do_test): Don't rely on signed wrap.
7157
7158         * stdio-common/vfprintf.c (_itoa): Undef before redefining.
7159
7160         * string/strerror_l.c: Include stdlib.h.
7161
7162         * configure.in (libc_cv_gnu89_inline): Test for -fgnu89-inline.
7163         * config.make.in (gnu89-inline-CFLAGS): New variable.
7164         * Makeconfig (CFLAGS): Use $(gnu89-inline-CFLAGS) together with
7165         -std=gnu99.
7166         * misc/sys/cdefs.h (__extern_inline, __extern_always_inline): Define.
7167         * argp/argp.h: Use it.
7168         * bits/mathinline.h: Likewise.
7169         * bits/sigset.h: Likewise.
7170         * bits/string.h: Likewise.
7171         * ctype/ctype.h: Likewise.
7172         * hurd/hurd.h: Likewise.
7173         * hurd/hurd/fd.h: Likewise.
7174         * hurd/hurd/port.h: Likewise.
7175         * hurd/hurd/signal.h: Likewise.
7176         * hurd/hurd/threadvar.h: Likewise.
7177         * hurd/hurd/userlink.h: Likewise.
7178         * io/sys/stat.h: Likewise.
7179         * libio/bits/stdio.h: Likewise.
7180         * libio/bits/stdio2.h: Likewise.
7181         * mach/lock-intern.h: Likewise.
7182         * mach/mach/mig_support.h: Likewise.
7183         * math/bits/cmathcalls.h: Likewise.
7184         * posix/bits/unistd.h: Likewise.
7185         * socket/bits/socket2.h: Likewise.
7186         * stdlib/bits/stdlib.h: Likewise.
7187         * stdlib/stdlib.h: Likewise.
7188         * string/argz.h: Likewise.
7189         * string/bits/string2.h: Likewise.
7190         * string/bits/string3.h: Likewise.
7191         * sysdeps/alpha/fpu/bits/mathinline.h: Likewise.
7192         * sysdeps/generic/inttypes.h: Likewise.
7193         * sysdeps/generic/machine-lock.h: Likewise.
7194         * sysdeps/generic/machine-sp.h: Likewise.
7195         * sysdeps/i386/fpu/bits/mathinline.h: Likewise.
7196         * sysdeps/i386/i486/bits/string.h: Likewise.
7197         * sysdeps/ia64/fpu/bits/mathinline.h: Likewise.
7198         * sysdeps/mach/alpha/machine-lock.h: Likewise.
7199         * sysdeps/mach/alpha/machine-sp.h: Likewise.
7200         * sysdeps/mach/i386/machine-lock.h: Likewise.
7201         * sysdeps/mach/powerpc/machine-lock.h: Likewise.
7202         * sysdeps/mach/powerpc/machine-sp.h: Likewise.
7203         * sysdeps/powerpc/fpu/bits/mathinline.h: Likewise.
7204         * sysdeps/s390/bits/string.h: Likewise.
7205         * sysdeps/s390/fpu/bits/mathinline.h: Likewise.
7206         * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
7207         * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Likewise.
7208         * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
7209         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
7210         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Likewise.
7211         * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
7212         * wcsmbs/bits/wchar2.h: Likewise.
7213         * wcsmbs/wchar.h: Likewise.
7214         * stdlib/gmp.h: Likewise.  Include <features.h> to get
7215         __extern_inline definition.
7216
7217 2007-03-15  Jakub Jelinek  <jakub@redhat.com>
7218
7219         * locale/programs/ld-ctype.c (find_translit): Return NULL if ctype is
7220         NULL.
7221
7222         [BZ #3919]
7223         * math/libm-test.inc (log_test): Test -Inf and NaN.
7224         (log10_test, log1p_test, log2_test): Test -Inf.
7225         * sysdeps/i386/fpu/e_log.S (__ieee754_log): Don't raise
7226         FE_INVALID when argument is qNaN.
7227         * sysdeps/i386/fpu/e_logl.S (__ieee754_logl): Likewise.
7228         * sysdeps/i386/fpu/e_logf.S (__ieee754_logf): Likewise.
7229         * sysdeps/x86_64/fpu/e_logl.S (__ieee754_logl): Likewise.
7230         * sysdeps/x86_64/fpu/e_log10l.S (__ieee754_log10l): Replace
7231         andb $1, %ah with testb $1, %ah, don't test for parity, instead
7232         testb $4, %ah and jump if non-zero.
7233         * sysdeps/x86_64/fpu/e_log2l.S (__ieee754_log2l): Likewise.
7234         * sysdeps/x86_64/fpu/s_log1pl.S (__log1pl): Likewise.
7235
7236         [BZ #4101]
7237         * argp/argp-help.c (hol_cluster_cmp): Fix comparisons used to find
7238         ancestors with the same depths.
7239         Patch by Niels Moeller <nisse@lysator.liu.se>.
7240         (filter_doc): Don't crash if argp is NULL.
7241         * argp/Makefile (tests): Add tst-argp2.
7242         * argp/tst-argp2.c: New test.
7243
7244         [BZ #4130]
7245         * login/utmp_file.c (setutent_file): Use O_LARGEFILE for
7246         open_not_cancel_2.
7247         (updwtmp_file): Likewise.
7248
7249         [BZ #4181]
7250         * inet/inet6_opt.c (add_padding): Only insert padding if npad > 0.
7251         (inet6_opt_append): Don't check extlen is big enough if extbuf
7252         is NULL.
7253         (inet6_opt_finish): Likewise.
7254         * inet/Makefile (tests): Add test-inet6_opt.
7255         * inet/test-inet6_opt.c: New test.
7256
7257         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Never
7258         reallocate the buffer, instead fail for MSG_TRUNC or for EBUSY
7259         NLMSG_ERR.  Instead use a page sized buffer.
7260         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Use page sized
7261         buffer.
7262
7263 2007-03-14  Richard Henderson  <rth@redhat.com>
7264
7265         * sysdeps/alpha/fpu/s_llround.c: New file.
7266         * sysdeps/alpha/fpu/s_llroundf.c: New file.
7267         * sysdeps/alpha/fpu/s_lround.c: New file.
7268         * sysdeps/alpha/fpu/s_lroundf.c: New file.
7269         * sysdeps/alpha/fpu/s_round.c: New file.
7270         * sysdeps/alpha/fpu/s_roundf.c: New file.
7271         * sysdeps/alpha/fpu/s_trunc.c: New file.
7272         * sysdeps/alpha/fpu/s_truncf.c: New file.
7273
7274         * sysdeps/alpha/fpu/s_ceil.c: Rewrite without branches.
7275         * sysdeps/alpha/fpu/s_ceilf.c: Likewise.
7276         * sysdeps/alpha/fpu/s_floor.c: Likewise.
7277         * sysdeps/alpha/fpu/s_floorf.c: Likewise.
7278         * sysdeps/alpha/fpu/s_rint.c: Likewise.
7279         * sysdeps/alpha/fpu/s_rintf.c: Likewise.
7280
7281         * sysdeps/alpha/fpu/s_fmax.S: New file.
7282         * sysdeps/alpha/fpu/s_fmaxf.S: New file.
7283         * sysdeps/alpha/fpu/s_fmin.S: New file.
7284         * sysdeps/alpha/fpu/s_fminf.S: New file.
7285         * sysdeps/alpha/fpu/s_isnan.c: New file.
7286         * sysdeps/alpha/fpu/s_isnanf.c: New file.
7287         * sysdeps/alpha/fpu/s_llrint.c: New file.
7288         * sysdeps/alpha/fpu/s_llrintf.c: New file.
7289         * sysdeps/alpha/fpu/s_lrint.c: New file.
7290         * sysdeps/alpha/fpu/s_lrintf.c: New file.
7291         * sysdeps/alpha/fpu/s_nearbyint.c: New file.
7292         * sysdeps/alpha/fpu/s_nearbyintf.c: New file.
7293
7294         * sysdeps/alpha/fpu/bits/mathinline.h (__floorf, __floor): Remove.
7295         (__fdimf, fdimf, __fdim, fdim): Remove.
7296         (__signbitf, __signbit, __signbitl): Use gcc builtin if available.
7297         (__isnanf, __isnan, __isnanl): New.
7298
7299 2007-03-13  Richard Henderson  <rth@redhat.com>
7300
7301         * sysdeps/ieee754/ldbl-128/Makefile: New file.
7302
7303 2007-03-13  Richard Henderson  <rth@redhat.com>
7304
7305         * sysdeps/alpha/Makefile (sysdep-CFLAGS): Force dynamic rounding.
7306         * sysdeps/alpha/fpu/bits/mathinline.h (__signbitl): New.
7307         * sysdeps/alpha/fpu/libm-test-ulps: Regenerate.
7308         * sysdeps/unix/sysv/linux/alpha/alphaev6/fpu/Implies: New file.
7309         * sysdeps/unix/sysv/linux/alpha/alphaev67/fpu/Implies: New file.
7310         * sysdeps/unix/sysv/linux/alpha/fpu/Implies: New file.
7311
7312 2007-03-13  Richard Henderson  <rth@redhat.com>
7313
7314         * elf/dl-support.c (_dl_aux_init): Honor DL_PLATFORM_AUXV.
7315         * sysdeps/unix/sysv/linux/alpha/dl-auxv.h: New file.
7316         * sysdeps/unix/sysv/linux/alpha/dl-support.c: New file.
7317         * sysdeps/unix/sysv/linux/alpha/dl-sysdep.c (__libc_alpha_cache_shape):
7318         Move to dl-auxv.h; initialize instead of extern weak.
7319         (DL_PLATFORM_AUXV): Move to dl-auxv.h; don't test for undef
7320         weak symbol.
7321         * sysdeps/unix/sysv/linux/alpha/sysconf.c (__libc_alpha_cache_shape):
7322         Extern instead of initialized.
7323
7324 2007-03-13  Richard Henderson  <rth@redhat.com>
7325
7326         * sysdeps/unix/sysv/linux/alpha/sigsuspend.S: Add support for
7327         __sigsuspend_nocancel.
7328
7329 2007-03-06  Ulrich Drepper  <drepper@redhat.com>
7330
7331         * sysdeps/posix/getaddrinfo.c (get_scope): Correct test for
7332         172.16/12 address range.
7333
7334 2007-03-02  Jakub Jelinek  <jakub@redhat.com>
7335
7336         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Retry with
7337         a new netlink socket if NLMSG_ERR -EBUSY is seen after some MSG_TRUNC
7338         message.
7339
7340 2007-03-01  Jakub Jelinek  <jakub@redhat.com>
7341
7342         [BZ #4069]
7343         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Check for NaN
7344         earlier.
7345         * math/libm-test.inc (pow_test): Add more tests involving NaNs.
7346
7347         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Avoid invalid exception
7348         for x qNaN and y either +-inf or non-integer value.
7349         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Likewise.
7350         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.
7351         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
7352
7353 2007-02-10  Mike Frysinger  <vapier@gentoo.org>
7354
7355         * sysdeps/unix/sysv/linux/sh/Makefile: Remove sys/io.h
7356         from sysdep_headers.
7357
7358 2007-02-28  Jakub Jelinek  <jakub@redhat.com>
7359
7360         * time/tzfile.c (find_transition): Instead of a linear search try to
7361         guess the transition index, use a linear search if the result is at
7362         most 10 transitions away from the guess or binary search otherwise.
7363
7364 2007-02-27  Jakub Jelinek  <jakub@redhat.com>
7365
7366         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Fix
7367         memory reallocation.
7368
7369 2007-02-21  Ulrich Drepper  <drepper@redhat.com>
7370
7371         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Add branch predictions
7372         and fix some typos.
7373         Optimize use of TOLOWER.
7374
7375         [BZ #3325]
7376         * sysdeps/i386/fpu/e_fmodf.S: Revert last changes, keep using fprem.
7377         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
7378         * sysdeps/i386/fpu/e_fmod.S: Likewise.
7379
7380         [BZ #3458]
7381         * sysdeps/unix/sysv/linux/posix_madvise.c: New file.
7382         * sysdeps/unix/sysv/linux/syscalls.list: Remove posix_madvise entry.
7383
7384         [BZ #4076]
7385         * io/ftw.c (ftw_startup): Handle special case of FTW_CHDIR in /.
7386         (open_dir_stream): Likewise.
7387         * io/Makefile (tests): Add bug-ftw5.
7388         * io/bug-ftw5.c: New file.
7389
7390         * nscd/hstcache.c (cache_addhst): Remove unnecessary conditional.
7391         * nscd/servicescache.c (cache_addserv): Likewise.
7392
7393         * nscd/grpcache.c (cache_addgr): In case a record changed on
7394         refresh, adjust key_copy.
7395
7396         [BZ #4074]
7397         * nscd/pwdcache.c (cache_addpw): In case a record changed on
7398         refresh, adjust key_copy.
7399
7400         [BZ #4070]
7401         * stdio-common/printf_fp.c (___printf_fp): Handle a few more
7402         special cases.
7403         * stdio-common/tfformat.c (sprint_doubles): Some more tests.
7404
7405 2007-02-19  Ulrich Drepper  <drepper@redhat.com>
7406
7407         * stdio-common/printf_fp.c (___printf_fp): Cleanups and minor
7408         optimization.
7409
7410         * stdio-common/vfscanf.c: Small cleanups throughout.
7411
7412 2007-02-18  Ulrich Drepper  <drepper@redhat.com>
7413
7414         [BZ #3325]
7415         * sysdeps/i386/fpu/e_fmodf.S: Use fprem1 instead of fprem.
7416         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
7417         * sysdeps/i386/fpu/e_fmod.S: Likewise.
7418         Patch by Jared Casper <jaredcasper@gmail.com>.
7419
7420         * sysdeps/unix/closedir.c: Outside libc don't use locking.
7421         * sysdeps/unix/opendir.c: Likewise.
7422         * sysdeps/unix/readdir.c: Likewise.
7423
7424         [BZ #2211]
7425         * stdio-common/vfscanf.c: Handle localized digits etc for floating
7426         point numbers.
7427         Patch mostly by Hamed Malek <hamed@farsiweb.info>.
7428
7429         * stdio-common/vfscanf.c: Fix problems in width accounting.
7430         * stdio-common/tst-sscanf.c (double_tests): New tests.
7431         (main): Hook them up.
7432
7433         * stdio-common/vfscanf.c: Remove unused WIDTH handling.
7434         More simplifications of floating-point reader.
7435
7436         * stdio-common/Makefile (tests): Add tst-swscanf.
7437         * stdio-common/tst-sscanf.c: Make tests usable for swscanf
7438         testing.
7439         * stdio-common/tst-swscanf.c: New file.
7440
7441 2007-02-17  Ulrich Drepper  <drepper@redhat.com>
7442
7443         [BZ #2633]
7444         * libio/stdio.h: Define struct _IO_FILE in global namespace.
7445         * setjmp/setjmp.h: Define __jmp_buf_tag in global namespace.
7446         Remove using for __jmp_buf_tag.
7447         * locale/locale.h (struct lconv): Also define in std namespace.
7448         * wcsmbs/wchar.h: Move using declaration for tm out of namespace.
7449
7450         [BZ #3842]
7451         * sysdeps/posix/euidaccess.c [_LIBC] (euidaccess): Remove shortcut
7452         using __libc_enable_secure.
7453
7454         [BZ #3818]
7455         * sysdeps/unix/sysv/linux/sys/acct.h (struct acct_v3): Define.
7456
7457         [BZ #3745]
7458         * locale/programs/ld-collate.c (handle_ellipsis): Fix generation
7459         of names for ellipsises.
7460
7461         [BZ #3348]
7462         * malloc/memusage.sh: Cleanups.
7463         * debug/xtrace.sh: Quoting and trap changes.
7464
7465 2007-02-16  Ulrich Drepper  <drepper@redhat.com>
7466
7467         * locale/iso-3166.def: Add Jersey, Guernsey, and Isle Of Man entries.
7468
7469         * locale/iso-3166.def: Update entry for Serbia.
7470         * locale/iso-4217.def: Define RSD, remove CSD.
7471
7472         * sysdeps/x86_64/bits/atomic.h: One more change, this time for 16-
7473         and 64-bit operations.
7474
7475         [BZ #4040]
7476         * sysdeps/i386/i486/bits/atomic.h: One more change, this time for
7477         16-bit operations.
7478
7479         * nscd/nscd.c (parse_opt): One more conversion to use send instead
7480         of writev.
7481
7482 2007-02-15  Ulrich Drepper  <drepper@redhat.com>
7483
7484         [BZ #3991]
7485         * assert/assert.h (assert): Simplify.
7486         (assert_perror): Likewise.
7487         Patch by Israel G. Lugo <ilugo@bridonsecurity.com>.
7488
7489         * nscd/nscd_helper.c (open_socket): Don't send padding bytes from
7490         reqdata.
7491
7492         * sysdeps/unix/sysv/linux/x86_64/send.c (__libc_send): Cosmetic
7493         change: don't pass NULL in place of an integer.
7494
7495 2007-02-02  Bruno Haible  <bruno@clisp.org>
7496
7497         [BZ #3954]
7498         * iconvdata/ksc5601.c (__ksc5601_sym_to_ucs, __ksc5601_sym_from_ucs):
7499         Add mapping for U+327E.
7500         * iconvdata/ksc5601.h (KSC5601_SYMBOL): Increment.
7501         * iconvdata/johab.c (BODY for FROM_LOOP, BODY for TO_LOOP): Enable
7502         mapping of 0xD9 0xE8.
7503         * iconvdata/uhc.c (BODY for FROM_LOOP, BODY for TO_LOOP): Disable
7504         mapping of U+327E.
7505         Reported by Jungshik Shin <jungshik@google.com>.
7506
7507         [BZ #3955]
7508         * iconvdata/johab.c (BODY for FROM_LOOP, BODY for TO_LOOP): Enable
7509         mapping of 0xD9 0xE6 and of 0xD9 0xE7.
7510         Reported by Jungshik Shin <jungshik@google.com>.
7511
7512 2007-02-14  Ulrich Drepper  <drepper@redhat.com>
7513
7514         * sysdeps/x86_64/bits/atomic;h: Fix asm parameters for some
7515         byte variants.
7516
7517         [BZ #4040]
7518         * sysdeps/i386/i486/bits/atomic.h: Fix asm parameters for some
7519         byte variants.  Patch mostly be tom@tommay.net.
7520
7521 2007-02-14  Jakub Jelinek  <jakub@redhat.com>
7522
7523         [BZ #3996]
7524         * posix/glob.c (attribute_hidden): Define if not defined.
7525         (glob): Unescape dirname, filename or username when needed and not
7526         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
7527         is NULL.  Handle unescaped [ in pattern without closing ].
7528         Don't pass GLOB_CHECK down to recursive glob for directories.
7529         (__glob_pattern_type): New function.
7530         (__glob_pattern_p): Implement using __glob_pattern_type.
7531         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
7532         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
7533         Remove unreachable code.
7534         * posix/globtest.sh: Add a couple of new tests.
7535
7536 2007-02-13  Ulrich Drepper  <drepper@redhat.com>
7537
7538         * po/ru.po: Update from translation team.
7539
7540 2007-02-12  Jakub Jelinek  <jakub@redhat.com>
7541
7542         * sysdeps/i386/bits/byteswap.h (__bswap_32): Add __amdfam10__
7543         to the list of i486+ CPUs.
7544         * sysdeps/x86_64/bits/byteswap.h (__bswap_32): Likewise.
7545
7546 2007-02-12  Ulrich Drepper  <drepper@redhat.com>
7547
7548         * elf/rtld.c (RESOLVE_MAP): Always return bootstrap_map reference.
7549         * elf/Makefile ($(objpfx)ld.so): Check that ld.so has no undefined
7550         references.
7551
7552 2007-02-09  Ulrich Drepper  <drepper@redhat.com>
7553
7554         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Remove incorrect comment.
7555
7556         * resolv/res_init.c (res_setoptions): Recognize edns0 option.
7557         * resolv/res_mkquery.c: Define __res_nopt.
7558         * resolv/res_query.c (__libc_res_nquery): If RES_USE_EDNS0 is set
7559         try adding EDNS0 record.
7560         * resolv/res_send.c (send_dg): If request failed with FORMERR and
7561         EDNS0 record was send make sure we don't try it again.
7562         * resolv/resolv.h: Define RES_F_EDNS0ERR and RES_USE_EDNS0.
7563         * include/resolv.h: Declare __res_nopt.
7564
7565 2007-02-08  Jakub Jelinek  <jakub@redhat.com>
7566
7567         [BZ #3944]
7568         * time/strptime_l.c (__strptime_internal): Set have_mon for
7569         %b/%B/%h.  Set have_mon and have_mday if tm_mon and tm_mday
7570         have been computed from tm_yday and tm_year.  Don't crash
7571         in day_of_the_week or day_of_the_year if not have_mon
7572         and tm_mon contains bogus value.
7573         * time/Makefile (tests): Add tst-strptime3.
7574         * time/tst-strptime3.c: New test.
7575
7576 2007-02-05  Jakub Jelinek  <jakub@redhat.com>
7577
7578         [BZ #3957]
7579         * posix/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
7580         bit for RE_HAT_LISTS_NOT_NEWLINE.
7581         (build_charclass_op): Remove bogus comment.
7582         * posix/Makefile (tests): Add bug-regex27 and bug-regex28.
7583         * posix/bug-regex27.c: New test.
7584         * posix/bug-regex28.c: New test.
7585
7586 2007-02-03  Ulrich Drepper  <drepper@redhat.com>
7587
7588         * po/sv.po: Update from translation team.
7589
7590 2007-02-02  Ulrich Drepper  <drepper@redhat.com>
7591
7592         * nscd/nscd_helper.c (open_socket): Minor size optimization.
7593
7594 2007-02-02  Jakub Jelinek  <jakub@redhat.com>
7595
7596         * include/locale.h (__uselocale): Add libc_hidden_proto.
7597         * locale/uselocale.c (__uselocale): Add libc_hidden_def.
7598
7599         * nscd/nscd_helper.c (open_socket): Use __gettimeofday instead of
7600         gettimeofday.
7601
7602 2007-02-01  Ulrich Drepper  <drepper@redhat.com>
7603
7604         * sysdeps/unix/sysv/linux/i386/sysdep.h (PTR_MANGLE): Roll value before
7605         returning.
7606         (PTR_DEMANGLE): Real definition now that it's not the same as
7607         PRT_MANGLE anymore.
7608         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
7609
7610         * string/strerror_l.c: New file.
7611         * string/Makefile (routines): Add strerror_l.
7612         * string/string.h: Declare strerror_l.
7613         * string/Versions: Export strerror_l for GLIBC_2.6.
7614
7615 2007-01-31  Ulrich Drepper  <drepper@redhat.com>
7616
7617         * nscd/nscd_helper.c (open_socket): Now takes request type and key
7618         as parameter.  Construct request record.  Try sending request
7619         before the first poll use, it usually succeeds.  Adjust all
7620         callers.
7621         * nscd/nscd-client.h: Define MAXKEYLEN.
7622         * nscd/connections.c (nscd_run): Don't define MAXKEYLEN here.
7623
7624 2007-01-31  Jakub Jelinek  <jakub@redhat.com>
7625
7626         * nscd/nscd-client.h (__nscd_cache_search): Remove const qualifier
7627         from return value.
7628         * nscd/nscd_helper.c: Include string.h.
7629         (__nscd_cache_search): Remove const qualifier from return value.
7630         On strict alignment architectures check hash entry and data head
7631         alignment.
7632         * nscd/nscd_getpw_r.c (nscd_getpw_r): Don't crash or fail because
7633         mmapped data during GC cycle contains garbage.  If
7634         __nscd_drop_map_ref fails, decrement mapped->counter when returning
7635         error or if retrying with NO_MAPPING, only __nscd_unmap if counter
7636         dropped to 0.
7637         * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
7638         * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
7639         * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
7640         * nscd/nscd_getai.c (__nscd_getai): Likewise.
7641         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
7642
7643 2007-01-30  Ulrich Drepper  <drepper@redhat.com>
7644
7645         * misc/hsearch_r.c (hdestroy_r): Remove unnecessary test.
7646
7647 2007-01-26  Ulrich Drepper  <drepper@redhat.com>
7648
7649         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Use register
7650         names not numbers in cfi_*.
7651
7652 2007-01-26  Andreas Jaeger  <aj@suse.de>
7653
7654         * sysdeps/unix/sysv/linux/sys/personality.h (ADDR_NO_RANDOMIZE,
7655         ADDR_LIMIT_3GB, PER_LINUX_32BIT, PER_LINUX32_3GB): Add.
7656         Correct values of PER_HPUX and PER_OSF4.
7657
7658 2007-01-24  Ulrich Drepper  <drepper@redhat.com>
7659
7660         * elf/dl-minimal.c: Undefine _itoa first.
7661         * stdio-common/_itoa.h: Define _itoa and _fitoa for 64-bit platforms.
7662         * malloc/mtrace.c: Revert last change.
7663         * posix/wordexp.c: Likewise.
7664
7665 2007-01-24  Jakub Jelinek  <jakub@redhat.com>
7666
7667         * sysdeps/i386/bits/byteswap.h (__bswap_32): Add __nocona__, __core2__
7668         and __geode__ to the list of i486+ CPUs.
7669         * sysdeps/x86_64/bits/byteswap.h (__bswap_32): Likewise.
7670
7671 2007-01-23  Ulrich Drepper  <drepper@redhat.com>
7672
7673         * stdio-common/_itoa.c: Include <limits.h>.
7674         * stdio-common/_itowa.c: Likewise.
7675
7676 2007-01-22  Ulrich Drepper  <drepper@redhat.com>
7677
7678         * stdio-common/_itowa.c: Don't compile _itowa for 64-bit
7679         platforms.
7680         * stdio-common/_itoa.c: Don't compile in _itoa and _fitoa for
7681         64-bit platforms.
7682         * malloc/mtrace.c (tr_where): Use _fitoa_word instead of _fitoa if
7683         possible.
7684         * posix/wordexp.c (parse_arith): Use _itoa_word instead of _itoa
7685         if possible.
7686
7687         [BZ #3902]
7688         * stdio-common/_itoa.c (_itoa): Make sure at least a zero is emitted.
7689         * stdio-common/Makefile (tests): Add bug17.
7690         * stdio-common/bug17.c: New file.
7691
7692 2007-01-19  Ulrich Drepper  <drepper@redhat.com>
7693
7694         * iconvdata/brf.c: New file.
7695         * iconvdata/testdata/BRF: New file.
7696         * iconvdata/testdata/BRF..UTF8: New file.
7697         Contributed by Samuel Thibault <samuel.thibault@ens-lyon.org>.
7698         * iconvdata/Makefile: Add rules to build BRF.
7699         * iconvdata/TESTS: Add BRF entry.
7700         * iconvdata/gconv-modules: Likewise.
7701         * iconvdata/tst-tables.sh: Likewise.
7702
7703 2007-01-18  Anton Nikishaev  <anton.nik@gmail.com>
7704
7705         * wcsmbs/wchar.h (wcstoll): Fix comment, function returns value of
7706         type `long long int', not `long int'.
7707         (wcstoq): Likewise.
7708
7709 2007-01-18  Ulrich Drepper  <drepper@redhat.com>
7710
7711         * scripts/gen-as-const.awk: Add cast to long to avoid int promotion
7712         of values on 64-bit platforms which are too large.
7713
7714 2007-01-12  Steven Munroe  <sjmunroe@us.ibm.com>
7715             Joe Kerian  <jkerian@us.us.ibm.com>
7716
7717         [BZ #2749]
7718         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Include
7719         <math_ldbl_opt.h>.  Remove weak_alias.  Use long_double_symbol macro.
7720         (__copysignl): Use signbit() for comparison.
7721         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Correct parms for
7722         SET_LDOUBLE_WORDS64.
7723
7724         [BZ #2423, #2749]
7725         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Don't include <fenv_libc.h>.
7726         (__ceill): Remove calls to fegetround(), fesetround().
7727         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
7728         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
7729         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
7730
7731 2007-01-17  Jakub Jelinek  <jakub@redhat.com>
7732
7733         * nscd/nscd_getserv_r.c (nscd_getserv_r): Fix pastos.
7734
7735         * sysdeps/unix/sysv/linux/getdents.c (offsetof): Remove.
7736
7737 2007-01-17  Ulrich Drepper  <drepper@redhat.com>
7738
7739         * sysdeps/unix/sysv/linux/fatal-prepare.h: Use PTHFCT_CALL to
7740         demangle pointer.
7741         * csu/libc-start.c: Likewise.
7742
7743 2007-01-16  Ulrich Drepper  <drepper@redhat.com>
7744
7745         * sysdeps/posix/system.c: Remove NO_WAITPID support, it cannot
7746         really work anyway.
7747
7748 2007-01-15  Ulrich Drepper  <drepper@redhat.com>
7749
7750         * nscd/connections.c (servinfo): Renamed to reqinfo.  Change all
7751         users.
7752         (handle_request): Remove unnecessary tests.
7753
7754         * nscd/cache.c (cache_add): Record the failure to add to the cache.
7755
7756 2007-01-15  Jakub Jelinek  <jakub@redhat.com>
7757
7758         * soft-fp/op-common.h (FP_TRUNC): When truncating a NaN, clear
7759         workbits in semi-raw fraction.
7760
7761         * math/test-misc.c: Add new tests.
7762
7763 2007-01-14  Steven Munroe  <sjmunroe@us.ibm.com>
7764
7765         * math/basic-test.c: Include test-skeleton.c.
7766         (TEST_TRUNC): Define.
7767         (truncdfsf_test, trunctfsf_test, trunctfdf_test): New.
7768         (main): Rename to ...
7769         (do_test): ...this.  Run new tests.
7770         (TEST_FUNCTION): Define.
7771
7772 2006-10-05  Steven Munroe  <sjmunroe@us.ibm.com>
7773             Joe Kerian  <jkerian@us.us.ibm.com>
7774
7775         [BZ #2749]
7776         * soft-fp/op-4.h (__FP_FRAC_SUB_3, __FP_FRAC_SUB_4): Correct borrow
7777         handling for high words.
7778         * soft-fp/op-common.h (_FP_OVERFLOW_SEMIRAW): Always set inexact
7779         and overflow for infinity.
7780
7781 2007-01-15  Ulrich Drepper  <drepper@redhat.com>
7782
7783         * nscd/connections.c (handle_request): Add a __builtin_expect.
7784
7785         * nscd/connections.c (serv2db): Change type into structure which
7786         also says whether this is a request for data.  Renamed to
7787         servinfo.  All users changed.
7788         (handle_request): Much simpler test whether we should search the cache.
7789
7790         * nscd/connections.c (handle_request): Fix thinko in selinux test
7791         invocation.
7792
7793         * sysdeps/generic/ldsodefs.h: Define DL_LOOKUP_SCOPE_LOCK.
7794         * elf/dl-lookup.c (add_dependency): If scope map is locked, unlock
7795         it before getting dl_load_lock and then relock.
7796         (_dl_lookup_symbol_x): Pass flags to add_dependency.
7797         When rerunning _dl_lookup_symbol_x, compute symbol_scope again in
7798         case we unlocked the scope.
7799         * elf/dl-runtime.c (_dl_fixup): Pass DL_LOOKUP_SCOPE_LOCK to
7800         _dl_lookup_symbol_x in case we locked the scope.
7801         (_dl_profile_fixup): Likewise.
7802         * elf/dl-sym.c (do_sym): In flags passed to call_dl_lookup, also
7803         set DL_LOOKUP_SCOPE_LOCK.
7804
7805 2007-01-13  Ulrich Drepper  <drepper@redhat.com>
7806
7807         * inet/Makefile: Define CFLAGS-getsrvbynm_r.c and
7808         CFLAGS-getsrvbynpt_r.c.
7809         * nscd/getsrvbynm_r.c: New file.
7810         * nscd/getsrvbypt_r.c: New file.
7811         * nscd/nscd_getserv_r.c: New file.
7812         * nscd/servicescache.c: New file.
7813         * nscd/Makefile (routines): Add nscd_getserv_r.
7814         (nscd-modules): Add getsrvbynm_r, getsrvbypt_r, and servicescache.
7815         Define CFLAGS-servicescache.c, CFLAGS-getsrvbynm_r.c, and
7816         CFLAGS-getsrvbypt_r.c.
7817         * nscd/cache.c (prune_cache): Rewrite to get re-add function from
7818         table.  Add entries for services database.
7819         * nscd/connections.c (serv2str): Mark as const.  Add entries for
7820         services database.
7821         (dbs): Add .reset_res and servdb initialization.
7822         (serv2db): Add entries for services database.
7823         (verify_persistent_db): Accept dbnr == servdb.
7824         (invalidate_cache): Rewrite database name recognition to use a table.
7825         Call res_init() if .reset_res is set for database.
7826         (handle_request): Add code to handle services database.
7827         * nscd/gai.c: Don't define __getservbyname_r.
7828         * nscd/nscd-client.h (request_type): Remove LASTDBREQ, add
7829         GETSERVBYNAME, GETSERVBYPORT, GETFDSERV.
7830         (serv_response_header): Define.
7831         (struct datahead): Add serv_response_header member.
7832         * nscd/nscd.c (parse_opt): Rewrite parsing of -i parameter value
7833         using table.
7834         * nscd/nscd.conf: Add entries for services database.
7835         * nscd/nscd.h: Adjust declaration of dbnames and serv2str.
7836         Declare serv_iov_disabled.
7837         Declare addservbyname, readdservbyname, addservbyport, and
7838         readdservbyport.
7839         * nscd/nscd_conf.c (dbnames): Mark as const.  Add services entry.
7840         (find_db): Fix error message.
7841         * nscd/nscd_proto.h: Declare __nss_not_use_nscd_services,
7842         __nscd_getservbyname_r, and __nscd_getservbyport_r.
7843         * nscd/selinux.c (perms): Add entries for services database.
7844         * nss/Versions: Export __nss_services_lookup with GLIBC_PRIVATE.
7845         * nss/nsswitch.c (__nss_disable_nscd): Also disable services database.
7846
7847         * nscd/grpcache.c: Remove obsolete code.  Cleanups.
7848         * nscd/hstcache.c: Likewise.
7849         * nscd/pwdcache.c: Likewise.
7850
7851         * nis/nss_nis/nis-service.c (_nss_nis_getservbyname_r): Correct
7852         computation of keylen.
7853
7854         * include/string.h: Only redefine strndupa if this is really for
7855         libc code.
7856
7857 2007-01-12  Ulrich Drepper  <drepper@redhat.com>
7858
7859         * nscd/nscd_gethst_r.c: Minor cleanups.
7860
7861         * nscd/connections.c (handle_request): Check selinux permissions
7862         for all non-admin commands.
7863
7864         * sysdeps/i386/i486/bits/atomic.h: Define
7865         atomic_compare_and_exchange_val_acq,
7866         atomic_compare_and_exchange_bool_acq, and atomic_exchange_and_add
7867         using __sync_* built-ins for gcc >= 4.1.
7868         * sysdeps/x86_64/bits/atomic.h: Likewise.
7869
7870         [BZ #3840]
7871         * scripts/check-local-headers.sh: Restrict to testing .o.d, .os.d,
7872         and .oS.d files.
7873
7874 2007-01-05  Steven Munroe  <sjmunroe@us.ibm.com>
7875
7876         * stdlib/tst-makecontext.c: Include errno.h.  Change main()
7877         to do_test().  Define TEST_FUNCTION. Include test-skeleton.c.
7878         (do_test): Check errno and exit(0) if ENOSYS.
7879
7880 2007-01-11  Jakub Jelinek  <jakub@redhat.com>
7881
7882         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix handling of multi-byte
7883         thousands separators.
7884         * stdlib/Makefile: Add rules to build and run tst-strtod4.
7885         * stdlib/tst-strtod4.c: New test.
7886
7887         [BZ #3855]
7888         * stdlib/strtod_l.c (____STRTOF_INTERNAL): 0x. not followed by
7889         hexadecimal digit should accept just the initial 0.
7890         * stdlib/tst-strtod2.c (tests): New variable.
7891         (do_test): Run several tests rather than just one.
7892
7893 2007-01-11  Jakub Jelinek  <jakub@redhat.com>
7894
7895         * sysdeps/i386/soft-fp/sfp-machine.h: Remove.
7896         * sysdeps/x86_64/soft-fp/sfp-machine.h: Likewise.
7897
7898 2007-01-10  Ulrich Drepper  <drepper@redhat.com>
7899
7900         * io/fts.c: Make sure fts_cur is always valid after return from
7901         fts_read.
7902         Patch by Miloslav Trmac <mitr@redhat.com>.
7903
7904 2006-10-27  Richard Sandiford  <richard@codesourcery.com>
7905
7906         * elf/elf.h (R_MIPS_GLOB_DAT): Define.
7907         (R_MIPS_NUM): Bump by 1.
7908
7909 2007-01-03  Jakub Jelinek  <jakub@redhat.com>
7910
7911         * posix/execvp.c: Include alloca.h.
7912         (allocate_scripts_argv): Renamed to...
7913         (scripts_argv): ... this.  Don't allocate buffer here nor count
7914         arguments.
7915         (execvp): Use alloca if possible.
7916         * posix/Makefile: Add rules to build and run tst-vfork3 test.
7917         * posix/tst-vfork3.c: New test.
7918
7919 2007-01-03  Ulrich Drepper  <drepper@redhat.com>
7920
7921         * string/Makefile (tst-strxfrm2-ENV): Define.
7922         * stdlib/Makefile (tst-strtod3-ENV): Define.
7923
7924 2007-01-02  Ulrich Drepper  <drepper@redhat.com>
7925
7926         * posix/getconf.c: Update copyright year.
7927         * nss/getent.c: Likewise.
7928         * iconv/iconvconfig.c: Likewise.
7929         * iconv/iconv_prog.c: Likewise.
7930         * elf/ldconfig.c: Likewise.
7931         * catgets/gencat.c: Likewise.
7932         * csu/version.c: Likewise.
7933         * elf/ldd.bash.in: Likewise.
7934         * elf/sprof.c (print_version): Likewise.
7935         * locale/programs/locale.c: Likewise.
7936         * locale/programs/localedef.c: Likewise.
7937         * nscd/nscd.c (print_version): Likewise.
7938         * debug/xtrace.sh: Likewise.
7939         * malloc/memusage.sh: Likewise.
7940         * malloc/mtrace.pl: Likewise.
7941         * debug/catchsegv.sh: Likewise.
7942
7943 2006-12-24  Ulrich Drepper  <drepper@redhat.com>
7944
7945         * malloc/malloc.c (sYSMALLOc): Remove some unnecessary alignment
7946         attempts.
7947
7948 2006-12-23  Ulrich Drepper  <drepper@redhat.com>
7949
7950         * posix/wordexp.c: Remove some unnecessary tests.
7951
7952 2006-12-22  Gavin Romig-Koch  <gavin@redhat.com>
7953
7954         * nis/nss_compat/compat-grp.c (internal_getgrgid_r): Don't
7955         blacklist the group till after we look it up.
7956
7957 2006-12-21  Ulrich Drepper  <drepper@redhat.com>
7958
7959         * include/atomic.h (atomic_forced_read): New macro.
7960
7961 2006-12-20  SUGIOKA Toshinobu  <sugioka@itonet.co.jp>
7962
7963         * sysdeps/unix/sysv/linux/sh/bits/shm.h: New file.
7964
7965 2006-12-19  Jakub Jelinek  <jakub@redhat.com>
7966
7967         * nss/getXXbyYY_r.c: Include atomic.h.
7968         (INTERNAL (REENTRANT_NAME)): Write startp after start_fct,
7969         add atomic_write_barrier () in between.
7970
7971         * stdlib/Makefile (tests): Add tst-makecontext.
7972         * stdlib/tst-makecontext.c: New test.
7973
7974         * sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S
7975         (__makecontext): Don't realign uc_mcontext.uc_regs.
7976
7977 2006-11-28  Jakub Jelinek  <jakub@redhat.com>
7978
7979         * elf/dl-support.c: Include dl-procinfo.h.
7980         * sysdeps/powerpc/dl-procinfo.h (PPC_PLATFORM_POWER4,
7981         PPC_PLATFORM_PPC970, PPC_PLATFORM_POWER5, PPC_PLATFORM_POWER5_PLUS,
7982         PPC_PLATFORM_POWER6, PPC_PLATFORM_CELL_BE, PPC_PLATFORM_POWER6X):
7983         Define.
7984         (_dl_string_platform): Use PPC_PLATFORM_* macros instead of
7985         hardcoded constants.
7986         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_platform): Use
7987         PPC_PLATFORM_* macros for array designators.
7988
7989 2006-11-11  Steven Munroe  <sjmunroe@us.ibm.com>
7990
7991         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add 3 new cap
7992         names to the beginning.
7993         (_dl_powerpc_platforms): Add "power6x".
7994         * sysdeps/powerpc/dl-procinfo.h (_DL_HWCAP_FIRST): Decrease.
7995         (HWCAP_IMPORTANT): Add PPC_FEATURE_HAS_DFP.
7996         (_DL_PLATFORMS_COUNT): Increase.
7997         (_dl_string_platform): Handle power6x case.
7998         * sysdeps/powerpc/sysdep.h (PPC_FEATURE_PA6T, PPC_FEATURE_HAS_DFP,
7999         PPC_FEATURE_POWER6_EXT): Define.
8000         (PPC_FEATURE_POWER5, PPC_FEATURE_POWER5_PLUS): Correct Comment.
8001
8002 2006-12-18  Jakub Jelinek  <jakub@redhat.com>
8003
8004         [BZ #3747]
8005         * stdlib/jrand48_r.c (__jrand48_r): Make sure result is in the
8006         [-2^31 .. 2^31) range.
8007         * stdlib/tst-rand48.c (main): Fix expected values for 64-bit
8008         targets.
8009         * stdlib/tst-rand48-2.c: New test.
8010         * stdlib/Makefile (tests): Add tst-rand48-2.
8011
8012 2006-12-14  Jakub Jelinek  <jakub@redhat.com>
8013
8014         * misc/tst-pselect.c (do_test): Fix sigblock argument.
8015
8016 2006-12-14  Ulrich Drepper  <drepper@redhat.com>
8017
8018         * misc/tst-pselect.c (do_test): Make sure the helper process is
8019         terminating when the test is aborted.
8020
8021 2006-12-13  Ulrich Drepper  <drepper@redhat.com>
8022
8023         * sysdeps/unix/sysv/linux/bits/statvfs.h: Define ST_RELATIME.
8024         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
8025         Handle relatime mount option.
8026
8027         [BZ #2337]
8028         * libio/Makefile (tests): Add tst-setvbuf1.
8029         * libio/tst-setvbuf1.c: New file.
8030
8031 2006-12-08  Jakub Jelinek  <jakub@redhat.com>
8032
8033         [BZ #2337]
8034         * libio/genops.c (__uflow): Fix a typo.
8035         * libio/wfiledoalloc.c (_IO_wfile_doallocate): Don't stat
8036         nor set _IO_LINE_BUF bit here.  Size the wide buffer based on
8037         the narrow buffer size.
8038
8039 2006-11-24  Jakub Jelinek  <jakub@redhat.com>
8040
8041         [BZ #2337]
8042         * libio/libio.h (_IO_FLAGS2_USER_WBUF): Define.
8043         * libio/wgenops.c (_IO_wsetb, _IO_wdefault_finish): Test and set
8044         _IO_FLAGS2_USER_WBUF bit in _flags2 instead of _IO_USER_BUF bit
8045         in _flags.
8046         * libio/wstrops.c (_IO_wstr_overflow, enlarge_userbuf,
8047         _IO_wstr_finish): Likewise.
8048         * libio/wmemstream.c (open_wmemstream): Likewise.
8049         * libio/fileops.c (_IO_new_file_close_it): Call _IO_set[bgp]
8050         even for wide streams.
8051
8052 2006-12-13  Jakub Jelinek  <jakub@redhat.com>
8053
8054         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: Include
8055         kernel-features.h.
8056
8057 2006-12-11  Ulrich Drepper  <drepper@redhat.com>
8058
8059         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Parse thousand
8060         separators also if no non-zero digits found.
8061         * stdlib/Makefile (tests): Add tst-strtod3.
8062
8063 2006-12-09  Ulrich Drepper  <drepper@redhat.com>
8064
8065         [BZ #3632]
8066         * include/features.h: Fix comment about default value for
8067         _POSIX_C_SOURCE.
8068
8069         [BZ #3664]
8070         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix test to recognize
8071         empty parsed strings.
8072         * stdlib/Makefile (tests): Add tst-strtod2.
8073         * stdlib/tst-strtod2.c: New file.
8074
8075         [BZ #3673]
8076         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix exp_limit
8077         computation.
8078         * stdlib/Makefile (tests): Add tst-atof2.
8079         * stdlib/tst-atof2.c: New file.
8080
8081         [BZ #3674]
8082         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Adjust exponent value
8083         correctly if removing trailing zero of hex-float.
8084         * stdlib/Makefile (tests): Add tst-atof1.
8085         * stdlib/tst-atof1.c: New file.
8086
8087 2006-12-09  Jakub Jelinek  <jakub@redhat.com>
8088
8089         * misc/mntent_r.c (__hasmntopt): Check p[optlen] even when p == rest.
8090         Start searching for next comma at p rather than rest.
8091         * misc/Makefile (tests): Add tst-mntent2.
8092         * misc/tst-mntent2.c: New test.
8093
8094         * misc/getusershell.c (initshells): Check for integer overflows.
8095         Make strings buffer one bigger as fgets always succeeds when second
8096         argument is 1.  Don't use calloc for shells array.  Disallow
8097         / as shell.
8098
8099 2006-12-08  Ulrich Drepper  <drepper@redhat.com>
8100
8101         * malloc/memusage.c: Handle realloc with new size of zero and
8102         non-NULL pointer correctly.
8103         (me): Really write first record twice.
8104         (struct entry): Make format bi-arch safe.
8105         (dest): Write out more realloc statistics.
8106         * malloc/memusagestat.c (struct entry): Make format bi-arch safe.
8107
8108 2006-12-05  Jakub Jelinek  <jakub@redhat.com>
8109
8110         * nis/nis_subr.c (nis_getnames): Revert last change.
8111
8112 2006-12-04  Jakub Jelinek  <jakub@redhat.com>
8113
8114         * sysdeps/unix/sysv/linux/ttyname.c: Include termios.h.
8115         (ttyname): Use tcgetattr instead of isatty, don't set errno to ENOTTY.
8116         * sysdeps/unix/sysv/linux/ttyname_r.c: Include termios.h.
8117         (__ttyname_r): Use tcgetattr instead of isatty, don't set errno to
8118         ENOTTY.
8119         * io/Makefile: Add rules to build and run tst-ttyname_r test.
8120         * io/tst-ttyname_r.c: New test.
8121
8122 2006-12-03  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
8123
8124         * sysdeps/unix/sysv/linux/sh/sys/io.h: Removed.
8125
8126 2006-11-30  H.J. Lu  <hongjiu.lu@intel.com>
8127
8128         * sysdeps/i386/i686/memcmp.S: Use jump table as the base of
8129         jump table entries.
8130
8131 2006-11-30  Jan Kratochvil  <jan.kratochvil@redhat.com>
8132
8133         * sysdeps/unix/sysv/linux/i386/clone.S: Provide CFI for the outermost
8134         `clone' function to ensure proper unwinding stop of gdb.
8135         * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
8136
8137 2006-12-01  Ulrich Drepper  <drepper@redhat.com>
8138
8139         * nscd/nscd.init: Remove obsolete and commented-out -S option
8140         handling.
8141
8142 2006-11-23  Jakub Jelinek  <jakub@redhat.com>
8143
8144         [BZ #3514]
8145         * manual/string.texi (strncmp): Fix pastos from wcscmp description.
8146
8147         [BZ #3515]
8148         * manual/string.texi (strtok): Remove duplicate paragraph.
8149
8150 2006-12-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
8151
8152         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Fix compatibility with
8153         libgcc not supporting `rflags' unwinding (register # >= 17).
8154
8155 2006-11-30  Jakub Jelinek  <jakub@redhat.com>
8156
8157         * sunrpc/svc_run.c (svc_run): Set my_pollfd to new_pollfd if realloc
8158         succeeded.
8159
8160 2006-11-29  Daniel Jacobowitz  <dan@codesourcery.com>
8161             Jakub Jelinek  <jakub@redhat.com>
8162             Jan Kratochvil  <jan.kratochvil@redhat.com>
8163
8164         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (restore_rt): Add correct
8165         unwind information.
8166         * sysdeps/unix/sysv/linux/x86_64/Makefile: Provide symbols for
8167         'restore_rt' even in the 'signal' directory.
8168         * sysdeps/unix/sysv/linux/x86_64/ucontext_i.sym: Extend the regs list.
8169
8170 2006-11-27  Jakub Jelinek  <jakub@redhat.com>
8171
8172         [BZ #3559]
8173         * sunrpc/svc_run.c (svc_run): Fail instead of segfaulting if
8174         malloc crashed.  Don't allocate memory unnecessarily in each
8175         loop.
8176
8177 2006-10-21  Jakub Jelinek  <jakub@redhat.com>
8178
8179         * resolv/mapv4v6addr.h (map_v4v6_address): Fix last change.
8180
8181 2006-11-20  Ulrich Drepper  <drepper@redhat.com>
8182
8183         * resolv/mapv4v6addr.h (map_v4v6_address): Optimize a bit.
8184
8185 2006-11-18  Bruno Haible  <bruno@clisp.org>
8186
8187         * sysdeps/unix/sysv/linux/i386/getgroups.c (__getgroups): Invoke
8188         __sysconf only after having tried to call getgroups32.
8189
8190 2006-11-19  Ulrich Drepper  <drepper@redhat.com>
8191
8192         * nss/nss_files/files-hosts.c (LINE_PARSER): Support IPv6-style
8193         addresses for IPv4 queries if they can be mapped.
8194
8195 2006-11-16  Jakub Jelinek  <jakub@redhat.com>
8196
8197         * sysdeps/x86_64/fpu/s_copysignf.S (__copysignf): Switch to .text.
8198         * sysdeps/x86_64/fpu/s_copysign.S (__copysign): Likewise.
8199         (signmask): Add .size directive.
8200         (othermask): Add .type directive.
8201
8202 2006-11-14  Ulrich Drepper  <drepper@redhat.com>
8203
8204         * po/nl.po: Update from translation team.
8205
8206         * timezone/zdump.c: Redo fix for BZ #3137.
8207
8208 2006-11-14  Jakub Jelinek  <jakub@redhat.com>
8209
8210         * nss/nss_files/files-alias.c (get_next_alias): Set line back
8211         to first_unused after parsing :include: file.
8212
8213 2006-11-10  Ulrich Drepper  <drepper@redhat.com>
8214
8215         * timezone/africa: Update from tzdata2006o.
8216         * timezone/antarctica: Likewise.
8217         * timezone/asia: Likewise.
8218         * timezone/australasia: Likewise.
8219         * timezone/backward: Likewise.
8220         * timezone/europe: Likewise.
8221         * timezone/iso3166.tab: Likewise.
8222         * timezone/northamerica: Likewise.
8223         * timezone/southamerica: Likewise.
8224         * timezone/zone.tab: Likewise.
8225
8226         * time/tzfile.c (__tzfile_read): Extend to handle new file format
8227         on machines with 64-bit time_t.
8228
8229         * timezone/checktab.awk: Update from tzcode2006o.
8230         * timezone/ialloc.c: Likewise.
8231         * timezone/private.h: Likewise.
8232         * timezone/scheck.c: Likewise.
8233         * timezone/tzfile.h: Likewise.
8234         * timezone/tzselect.ksh: Likewise.
8235         * timezone/zdump.c: Likewise.
8236         * timezone/zic.c: Likewise.
8237
8238         [BZ #3483]
8239         * elf/ldconfig.c (main): Call setlocale and textdomain.
8240         Patch mostly by Benno Schulenberg <bensberg@justemail.net>.
8241
8242         [BZ #3480]
8243         * manual/argp.texi: Fix typos.
8244         * manual/charset.texi: Likewise.
8245         * manual/errno.texi: Likewise.
8246         * manual/filesys.texi: Likewise.
8247         * manual/lang.texi: Likewise.
8248         * manual/maint.texi: Likewise.
8249         * manual/memory.texi: Likewise.
8250         * manual/message.texi: Likewise.
8251         * manual/resource.texi: Likewise.
8252         * manual/search.texi: Likewise.
8253         * manual/signal.texi: Likewise.
8254         * manual/startup.texi: Likewise.
8255         * manual/stdio.texi: Likewise.
8256         * manual/sysinfo.texi: Likewise.
8257         * manual/syslog.texi: Likewise.
8258         * manual/time.texi: Likewise.
8259         Patch by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
8260
8261         [BZ #3465]
8262         * sunrpc/clnt_raw.c: Minimal message improvements.
8263         * sunrpc/pm_getmaps.c: Likewise.
8264         * nis/nss_nisplus/nisplus-publickey.c: Likewise.
8265         * nis/nis_print_group_entry.c: Likewise.
8266         * locale/programs/repertoire.c: Likewise.
8267         * locale/programs/charmap.c: Likewise.
8268         * malloc/memusage.sh: Likewise.
8269         * elf/dl-deps.c: Likewise.
8270         * locale/programs/ld-collate.c: Likewise.
8271         * libio/vswprintf.c: Likewise.
8272         * malloc/memusagestat.c: Likewise.
8273         * sunrpc/auth_unix.c: Likewise.
8274         * sunrpc/rpc_main.c: Likewise.
8275         * nscd/cache.c: Likewise.
8276         * locale/programs/repertoire.c: Unify output messages.
8277         * locale/programs/charmap.c: Likewise.
8278         * locale/programs/ld-ctype.c: Likewise.
8279         * locale/programs/ld-monetary.c: Likewise.
8280         * locale/programs/ld-numeric.c: Likewise.
8281         * locale/programs/ld-time.c: Likewise.
8282         * elf/ldconfig.c: Likewise.
8283         * nscd/selinux.c: Likewise.
8284         * elf/cache.c: Likewise.
8285         Patch mostly by Benno Schulenberg <bensberg@justemail.net>.
8286
8287         [BZ #3451]
8288         * sysdeps/i386/fpu/bits/mathinline.h (floor): Make rounding mode
8289         change atomic.
8290         (ceil): Likewise.
8291
8292 2006-11-10  Jakub Jelinek  <jakub@redhat.com>
8293
8294         * string/strxfrm_l.c (STRXFRM): Fix trailing \1 optimization
8295         if N is one bigger than return value.
8296         * string/tst-strxfrm2.c (do_test): Also test strxfrm with l1 + 1
8297         and l1 last arguments, if buf is defined, verify the return value
8298         equals to strlen (buf) and verify no byte beyond passed length
8299         is modified.
8300
8301 2006-11-10  Ulrich Drepper  <drepper@redhat.com>
8302
8303         * po/sv.po: Update from translation team.
8304
8305 2006-11-09  Ulrich Drepper  <drepper@redhat.com>
8306
8307         * sysdeps/unix/sysv/linux/x86_64/sysconf.c (intel_check_word): Add
8308         noinline attribute.
8309
8310 2006-11-10  Jakub Jelinek  <jakub@redhat.com>
8311
8312         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Add
8313         noinline attribute.
8314
8315         * sysdeps/gnu/siglist.c (__old_sys_siglist, __old_sys_sigabbrev):
8316         Use __new_sys_siglist instead of _sys_siglist_internal as
8317         second macro argument.
8318         (_old_sys_siglist): Use declare_symbol_alias macro instead of
8319         strong_alias.
8320
8321 2006-11-09  Ulrich Drepper  <drepper@redhat.com>
8322
8323         [BZ #3493]
8324         * posix/unistd.h (sysconf): Remove const attribute.
8325
8326         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Fix test for
8327         temporary or deprecated addresses.
8328         Patch by Sridhar Samudrala <sri@us.ibm.com>.
8329
8330         * string/Makefile (tests): Add tst-strxfrm2.
8331         * string/tst-strxfrm2.c: New file.
8332
8333 2006-10-09  Jakub Jelinek  <jakub@redhat.com>
8334
8335         * elf/dl-debug.c (_dl_debug_initialize): Check r->r_map for 0
8336         rather than r->r_brk.
8337
8338 2006-11-08  Jakub Jelinek  <jakub@redhat.com>
8339
8340         * string/strxfrm_l.c (STRXFRM): Do the trailing \1 removal
8341         optimization even if needed > n.
8342
8343         * elf/dl-load.c (decompose_rpath): Return bool rather than void.
8344         If l->l_name is on inhibit_rpath list, set sps->dirs to -1 and
8345         return false, otherwise return true.
8346         (cache_rpath): Return decompose_rpath return value.
8347
8348 2006-11-07  Jakub Jelinek  <jakub@redhat.com>
8349
8350         * include/libc-symbols.h (declare_symbol): Rename to...
8351         (declare_symbol_alias): ... this.  Add ORIGINAL argument, imply
8352         strong_alias (ORIGINAL, SYMBOL) in asm to make sure it preceedes
8353         .size directive.
8354         * sysdeps/gnu/errlist-compat.awk: Adjust for declare_symbol_alias
8355         changes.
8356         * sysdeps/gnu/siglist.c: Likewise.
8357
8358 2006-11-03  Steven Munroe  <sjmunroe@us.ibm.com>
8359
8360         * sysdeps/powerpc/fpu/bits/mathinline.h
8361         [__LIBC_INTERNAL_MATH_INLINES]: Moved to ...
8362         * sysdeps/powerpc/fpu/math_private.h: ...here.  New file.
8363
8364 2006-11-05  Ulrich Drepper  <drepper@redhat.com>
8365
8366         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
8367         Update handling of cache descriptor 0x49 for new models.
8368         * sysdeps/unix/sysv/linux/x86_64/sysconf.c (intel_check_word):
8369         Likewise.
8370
8371 2006-11-02  Jakub Jelinek  <jakub@redhat.com>
8372
8373         * malloc/memusage.c (dest): Reset not_me back to false after
8374         printing statistics.
8375
8376 2006-11-02  Ulrich Drepper  <drepper@redhat.com>
8377
8378         * configure.in: Work around ld --help change and avoid -z relro
8379         test completely if the architecture doesn't care about security.
8380
8381 2006-11-01  Ulrich Drepper  <drepper@redhat.com>
8382
8383         * po/sv.po: Update from translation team.
8384
8385 2006-10-31  Ulrich Drepper  <drepper@redhat.com>
8386
8387         * stdlib/atexit.c (atexit): Don't mark as hidden when used to
8388         generate compatibility version.
8389
8390 2006-10-29  Ulrich Drepper  <drepper@redhat.com>
8391
8392         * configure.in: Relax -z relro requirement a bit.
8393
8394         * po/sv.po: Update from translation team.
8395
8396 2006-10-29  Jakub Jelinek  <jakub@redhat.com>
8397
8398         * elf/dl-sym.c (do_sym): Use RTLD_SINGLE_THREAD_P.
8399         * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Likewise.
8400         * elf/dl-close.c (_dl_close_worker): Likewise.
8401         * elf/dl-open.c (_dl_open_worker): Likewise.
8402         * sysdeps/generic/sysdep-cancel.h (RTLD_SINGLE_THREAD_P): Define.
8403
8404 2006-10-27  Ulrich Drepper  <drepper@redhat.com>
8405
8406         * configure.in: Require assembler support for visibility, compiler
8407         support for visibility and aliases, linker support for various -z
8408         options.
8409         * Makeconfig: Remove conditional code which now is unnecessary.
8410         * config.h.in: Likewise.
8411         * config.make.in: Likewise.
8412         * dlfcn/Makefile: Likewise.
8413         * elf/Makefile: Likewise.
8414         * elf/dl-load.c: Likewise.
8415         * elf/rtld.c: Likewise.
8416         * include/libc-symbols.h: Likewise.
8417         * include/stdio.h: Likewise.
8418         * io/Makefile: Likewise.
8419         * io/fstat.c: Likewise.
8420         * io/fstat64.c: Likewise.
8421         * io/fstatat.c: Likewise.
8422         * io/fstatat64.c: Likewise.
8423         * io/lstat.c: Likewise.
8424         * io/lstat64.c: Likewise.
8425         * io/mknod.c: Likewise.
8426         * io/mknodat.c: Likewise.
8427         * io/stat.c: Likewise.
8428         * io/stat64.c: Likewise.
8429         * libio/stdio.c: Likewise.
8430         * nscd/Makefile: Likewise.
8431         * stdlib/Makefile: Likewise.
8432         * stdlib/atexit.c: Likewise.
8433         * sysdeps/generic/ldsodefs.h: Likewise.
8434         * sysdeps/i386/dl-machine.h: Likewise.
8435         * sysdeps/i386/sysdep.h: Likewise.
8436         * sysdeps/i386/i686/memcmp.S: Likewise.
8437         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
8438         * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
8439         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
8440
8441         * Makerules: USE_TLS support is now default.
8442         * tls.make.c: Likewise.
8443         * csu/Versions: Likewise.
8444         * csu/libc-start.c: Likewise.
8445         * csu/libc-tls.c: Likewise.
8446         * csu/version.c: Likewise.
8447         * dlfcn/dlinfo.c: Likewise.
8448         * elf/dl-addr.c: Likewise.
8449         * elf/dl-cache.c: Likewise.
8450         * elf/dl-close.c: Likewise.
8451         * elf/dl-iteratephdr.c: Likewise.
8452         * elf/dl-load.c: Likewise.
8453         * elf/dl-lookup.c: Likewise.
8454         * elf/dl-object.c: Likewise.
8455         * elf/dl-open.c: Likewise.
8456         * elf/dl-reloc.c: Likewise.
8457         * elf/dl-support.c: Likewise.
8458         * elf/dl-sym.c: Likewise.
8459         * elf/dl-sysdep.c: Likewise.
8460         * elf/dl-tls.c: Likewise.
8461         * elf/ldconfig.c: Likewise.
8462         * elf/rtld.c: Likewise.
8463         * elf/tst-tls-dlinfo.c: Likewise.
8464         * elf/tst-tls1.c: Likewise.
8465         * elf/tst-tls10.h: Likewise.
8466         * elf/tst-tls14.c: Likewise.
8467         * elf/tst-tls2.c: Likewise.
8468         * elf/tst-tls3.c: Likewise.
8469         * elf/tst-tls4.c: Likewise.
8470         * elf/tst-tls5.c: Likewise.
8471         * elf/tst-tls6.c: Likewise.
8472         * elf/tst-tls7.c: Likewise.
8473         * elf/tst-tls8.c: Likewise.
8474         * elf/tst-tls9.c: Likewise.
8475         * elf/tst-tlsmod1.c: Likewise.
8476         * elf/tst-tlsmod13.c: Likewise.
8477         * elf/tst-tlsmod13a.c: Likewise.
8478         * elf/tst-tlsmod14a.c: Likewise.
8479         * elf/tst-tlsmod2.c: Likewise.
8480         * elf/tst-tlsmod3.c: Likewise.
8481         * elf/tst-tlsmod4.c: Likewise.
8482         * elf/tst-tlsmod5.c: Likewise.
8483         * elf/tst-tlsmod6.c: Likewise.
8484         * include/errno.h: Likewise.
8485         * include/link.h: Likewise.
8486         * include/tls.h: Likewise.
8487         * locale/global-locale.c: Likewise.
8488         * locale/localeinfo.h: Likewise.
8489         * malloc/arena.c: Likewise.
8490         * malloc/hooks.c: Likewise.
8491         * malloc/malloc.c: Likewise.
8492         * resolv/Versions: Likewise.
8493         * sysdeps/alpha/dl-machine.h: Likewise.
8494         * sysdeps/alpha/libc-tls.c: Likewise.
8495         * sysdeps/generic/ldsodefs.h: Likewise.
8496         * sysdeps/generic/tls.h: Likewise.
8497         * sysdeps/i386/dl-machine.h: Likewise.
8498         * sysdeps/ia64/dl-machine.h: Likewise.
8499         * sysdeps/ia64/libc-tls.c: Likewise.
8500         * sysdeps/mach/hurd/fork.c: Likewise.
8501         * sysdeps/mach/hurd/i386/tls.h: Likewise.
8502         * sysdeps/powerpc/powerpc32/dl-machine.c: Likwise.
8503         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
8504         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
8505         * sysdeps/s390/libc-tls.c: Likewise.
8506         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
8507         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
8508         * sysdeps/sh/dl-machine.h: Likewise.
8509         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
8510         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
8511         * sysdeps/x86_64/dl-machine.h: Likewise.
8512
8513         * elf/dl-close.c (_dl_close_worker): Renamed from _dl_close and
8514         split out locking and parameter checking.
8515         (_dl_close): Call _dl_close_worker after locking and checking.
8516         * elf/dl-open.c (_dl_open): Call _dl_close_worker instead of
8517         _dl_close.
8518         * elf/Makefile: Add rules to build and run tst-thrlock.
8519         * elf/tst-thrlock.c:  New file.
8520
8521         [BZ #3426]
8522         * stdlib/stdlib.h: Adjust comment for canonicalize_file_name to
8523         reality.
8524
8525         [BZ #3429]
8526         * elf/dl-open.c (dl_open_worker): Keep holding dl_load_lock until
8527         we are sure we do not need it anymore for _dl_close.  Also move
8528         the asserts inside the lock region.
8529         Patch mostly by Suzuki <suzuki@in.ibm.com>.
8530
8531 2006-10-27  Jakub Jelinek  <jakub@redhat.com>
8532
8533         * elf/dl-lookup.c (_dl_debug_bindings): Remove unused symbol_scope
8534         argument.
8535         (_dl_lookup_symbol_x): Adjust caller.
8536
8537         * sysdeps/generic/ldsodefs.h (struct link_namespaces): Remove
8538         _ns_global_scope.
8539         * elf/rtld.c (dl_main): Don't initialize _ns_global_scope.
8540
8541         * elf/dl-libc.c: Revert l_scope name changes.
8542         * elf/dl-load.c: Likewise.
8543         * elf/dl-object.c: Likewise.
8544         * elf/rtld.c: Likewise.
8545         * elf/dl-close.c (_dl_close): Likewise.
8546         * elf/dl-open.c (dl_open_worker): Likewise.  If not SINGLE_THREAD_P,
8547         always use __rtld_mrlock_{change,done}.  Always free old scope list
8548         here if not l_scope_mem.
8549         * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Revert l_scope name
8550         change.  Never free scope list here.  Just __rtld_mrlock_lock before
8551         the lookup and __rtld_mrlock_unlock it after the lookup.
8552         * elf/dl-sym.c: Likewise.
8553         * include/link.h (struct r_scoperec): Remove.
8554         (struct link_map): Replace l_scoperec with l_scope, l_scoperec_mem
8555         with l_scope_mem and l_scoperec_lock with l_scope_lock.
8556
8557 2006-10-25  Ulrich Drepper  <drepper@redhat.com>
8558
8559         * sysdeps/gnu/netinet/tcp.h: Define TCP_CONGESTION.
8560
8561 2006-10-18  Ulrich Drepper  <drepper@redhat.com>
8562
8563         * configure.in: Disable building profile libraries by default.
8564
8565 2006-10-17  Jakub Jelinek  <jakub@redhat.com>
8566
8567         * sunrpc/xdr_mem.c (xdrmem_setpos): Don't compare addresses
8568         as signed longs, check for x_base + pos overflow.
8569         * sunrpc/Makefile (tests): Add tst-xdrmem2.
8570         * sunrpc/tst-xdrmem2.c: New test.
8571
8572 2006-10-18  Ulrich Drepper  <drepper@redhat.com>
8573
8574         * elf/dl-lookup.c (_dl_lookup_symbol_x): Add warning to
8575         _dl_lookup_symbol_x code.
8576
8577 2006-10-17  Jakub Jelinek  <jakub@redhat.com>
8578
8579         * elf/dl-runtime.c: Include sysdep-cancel.h.
8580         (_dl_fixup, _dl_profile_fixup): Use __rtld_mrlock_* and
8581         scoperec->nusers only if !SINGLE_THREAD_P.  Use atomic_*
8582         instead of catomic_* macros.
8583         * elf/dl-sym.c: Include sysdep-cancel.h.
8584         (do_sym): Use __rtld_mrlock_* and scoperec->nusers only
8585         if !SINGLE_THREAD_P.  Use atomic_* instead of catomic_* macros.
8586         * elf/dl-close.c: Include sysdep-cancel.h.
8587         (_dl_close): Use __rtld_mrlock_* and scoperec->nusers only
8588         if !SINGLE_THREAD_P.  Use atomic_* instead of catomic_* macros.
8589         * elf/dl-open.c: Include sysdep-cancel.h.
8590         (dl_open_worker): Use __rtld_mrlock_* and scoperec->nusers only
8591         if !SINGLE_THREAD_P.  Use atomic_* instead of catomic_* macros.
8592
8593 2006-10-17  Jakub Jelinek  <jakub@redhat.com>
8594
8595         [BZ #3313]
8596         * malloc/malloc.c (malloc_consolidate): Set maxfb to address of last
8597         fastbin rather than end of fastbin array.
8598
8599 2006-10-18  Ulrich Drepper  <drepper@redhat.com>
8600
8601         * sysdeps/i386/i486/bits/atomic.h (catomic_decrement): Use correct
8602         body macro.
8603         * sysdeps/x86_64/bits/atomic.h
8604         (__arch_c_compare_and_exchange_val_64_acq): Add missing casts.
8605         (catomic_decrement): Use correct body macro.
8606
8607 2006-10-17  Jakub Jelinek  <jakub@redhat.com>
8608
8609         * include/atomic.h: Add a unique prefix to all local variables
8610         in macros.
8611         * csu/tst-atomic.c (do_test): Test also catomic_* macros.
8612
8613 2006-10-16  Ulrich Drepper  <drepper@redhat.com>
8614
8615         [BZ #3369]
8616         * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Fix typos in rules 4
8617         and 7.
8618
8619 2006-10-14  Ulrich Drepper  <drepper@redhat.com>
8620
8621         * resolv/arpa/nameser.h: Document that ns_t_a6 is deprecated.
8622
8623 2006-10-13  Ulrich Drepper  <drepper@redhat.com>
8624
8625         [BZ #3313]
8626         * malloc/malloc.c (malloc_consolidate): Don't use get_fast_max to
8627         determine highest fast bin to consolidate, always look into all of
8628         them.
8629         (do_check_malloc_state): Only require for empty bins for large
8630         sizes in main arena.
8631
8632         * libio/stdio.h: Add more __wur attributes.
8633
8634         * elf/dl-minimal.c (realloc): Optimize last patch.
8635
8636 2006-10-12  Richard Sandiford  <richard@codesourcery.com>
8637
8638         [BZ #3352]
8639         * elf/dl-minimal.c (realloc): Let malloc() return a new pointer,
8640         and use memcpy() if it does.
8641
8642 2006-11-12  Andreas Jaeger  <aj@suse.de>
8643
8644         [BZ #2510]
8645         * manual/search.texi (Hash Search Function): Clarify.
8646         (Array Search Function): Clarify.
8647
8648 2006-11-12  Joseph Myers  <joseph@codesourcery.com>
8649
8650         [BZ #2830]
8651         * math/atest-exp.c (main): Cast hex value to mp_limb_t before
8652         shifting.
8653         * math/atest-exp2.c (read_mpn_hex): Likewise.
8654         * math/atest-sincos.c (main): Likewise.
8655
8656 2006-10-11  Ulrich Drepper  <drepper@redhat.com>
8657
8658         * sysdeps/unix/sysv/linux/syscalls.list: Add epoll_pwait.
8659         * sysdeps/unix/sysv/linux/sys/epoll.h: Declare epoll_pwait.
8660         * sysdeps/unix/sysv/linux/Versions (libc): Add epoll_pwait for
8661         version GLIBC_2.6.
8662         * Versions.def: Add GLIBC_2.6 for libc.
8663
8664         * sysdeps/unix/sysv/linux/i386/sysdep.h (DOARGS_6): Fix offset.
8665
8666         * sysdeps/i386/i486/bits/atomic.h: Add catomic_* support.
8667
8668 2006-10-11  Jakub Jelinek  <jakub@redhat.com>
8669
8670         * malloc/malloc.c (_int_malloc): Remove unused any_larger variable.
8671
8672         * nis/nis_defaults.c (__nis_default_access): Don't call getenv twice.
8673
8674         * nis/nis_subr.c (nis_getnames): Use __secure_getenv instead of getenv.
8675         * sysdeps/generic/unsecvars.h: Add NIS_PATH.
8676
8677 2006-10-11  Ulrich Drepper  <drepper@redhat.com>
8678
8679         * include/atomic.c: Define catomic_* operations.
8680         * sysdeps/x86_64/bits/atomic.h: Likewise.  Fix a few minor problems.
8681         * stdlib/cxa_finalize.c: Use catomic_* operations instead of atomic_*.
8682         * malloc/memusage.c: Likewise.
8683         * gmon/mcount.c: Likewise.
8684         * elf/dl-close.c: Likewise.
8685         * elf/dl-open.c: Likewise.
8686         * elf/dl-profile.c: Likewise.
8687         * elf/dl-sym.c: Likewise.
8688         * elf/dl-runtime.c: Likewise.
8689         * elf/dl-fptr.c: Likewise.
8690         * resolv/res_libc.c: Likewise.
8691
8692 2006-10-10  Ulrich Drepper  <drepper@redhat.com>
8693
8694         * nis/nis_subr.c (nis_getnames): Add trailing dot to NIS_PATH
8695         components which lack them.
8696
8697         * nis/nis_subr.c (nis_getnames): Make sure that we always return
8698         at least one entry consisting of the parameter concatenated with
8699         the domain.
8700
8701 2006-10-10  Roland McGrath  <roland@frob.com>
8702
8703         * sysdeps/mach/hurd/utimes.c: Use a union to avoid an improper cast.
8704         * sysdeps/mach/hurd/futimes.c: Likewise.
8705         * sysdeps/mach/hurd/lutimes.c: Likewise.
8706
8707 2006-10-09  Ulrich Drepper  <drepper@redhat.com>
8708             Jakub Jelinek  <jakub@redhat.com>
8709
8710         Implement reference counting of scope records.
8711         * elf/dl-close.c (_dl_close): Remove all scopes from removed objects
8712         from the list in objects which remain.  Always allocate new scope
8713         record.
8714         * elf/dl-open.c (dl_open_worker): When growing array for scopes,
8715         don't resize, allocate a new one.
8716         * elf/dl-runtime.c: Update reference counters before using a scope
8717         array.
8718         * elf/dl-sym.c: Likewise.
8719         * elf/dl-libc.c: Adjust for l_scope name change.
8720         * elf/dl-load.c: Likewise.
8721         * elf/dl-object.c: Likewise.
8722         * elf/rtld.c: Likewise.
8723         * include/link.h: Include <rtld-lowlevel.h>.  Define struct
8724         r_scoperec.  Replace r_scope with pointer to r_scoperec structure.
8725         Add l_scoperec_lock.
8726         * sysdeps/generic/ldsodefs.h: Include <rtld-lowlevel.h>.
8727         * sysdeps/generic/rtld-lowlevel.h: New file.
8728
8729         * include/atomic.h: Rename atomic_and to atomic_and_val and
8730         atomic_or to atomic_or_val.  Define new macros atomic_and and
8731         atomic_or which do not return values.
8732         * sysdeps/x86_64/bits/atomic.h: Define atomic_and and atomic_or.
8733         Various cleanups.
8734         * sysdeps/i386/i486/bits/atomic.h: Likewise.
8735
8736         * po/sv.po: Update from translation team.
8737
8738 2006-10-07  Ulrich Drepper  <drepper@redhat.com>
8739
8740         * Versions.def: Add GLIBC_2.6 to libpthread.
8741
8742         * include/shlib-compat.h (SHLIB_COMPAT): Expand parameters before use.
8743         (versioned_symbol): Likewise.
8744         (compat_symbol): Likewise.
8745
8746         * po/tr.po: Update from translation team.
8747
8748 2006-10-06  Ulrich Drepper  <drepper@redhat.com>
8749
8750         * nis/Banner: Removed.  It's been integral part forever and the
8751         author info is incomplete anyway.
8752         * libio/Banner: Likewise.
8753
8754         * nis/nis_table.c (nis_list): If __follow_path fails in the new
8755         code, make sure the nis_freeresult call doesn't crash and that the
8756         result is reported correctly.
8757
8758 2006-09-27  Jakub Jelinek  <jakub@redhat.com>
8759
8760         * nis/nis_table.c (nis_list): Handle FOLLOW_PATH | ALL_RESULTS
8761         when callback is NULL.
8762
8763         * nis/Versions (libnss_nisplus): Add
8764         _nss_nisplus_initgroups_dyn@@GLIBC_PRIVATE.
8765         * nis/Makefile (libnss_nisplus-routines): Add nisplus-initgroups.
8766         * nis/nss_nisplus/nisplus-grp.c (tablename_val, tablename_len,
8767         _nss_create_tablename): Rename to...
8768         (grp_tablename_val, grp_tablename_len, _nss_grp_create_tablename):
8769         ... these.  No longer static.
8770         (internal_setgrent): Adjust users.
8771         (_nss_nisplus_getgrnam_r, _nss_nisplus_getgrgid_r): Likewise.
8772         Don't use locking around _nss_grp_create_tablename call.
8773         * nis/nss_nisplus/nisplus-initgroups.c: New file.
8774
8775 2006-10-06  Ulrich Drepper  <drepper@redhat.com>
8776
8777         * version.h (VERSION): Bump to 2.5.90 for new development tree.
8778
8779 2006-10-06  Andreas Jaeger  <aj@suse.de>
8780
8781         * include/features.h (__GLIBC_MINOR__): It's glibc 2.5 now.
8782
8783 2006-10-06  Ulrich Drepper  <drepper@redhat.com>
8784
8785         * po/pl.po: Update from translation team.
8786
8787         * nscd/nscd.c (main): Fix typo in message.
8788         Patch by Jakub Bogsz <qboosh@pld-linux.org>.
8789
8790 2006-10-02  Jakub Jelinek  <jakub@redhat.com>
8791
8792         [BZ #3291]
8793         * sysdeps/unix/sysv/linux/sparc/sparc64/pause.c: Include
8794         errno.h, signal.h, unistd.h and sysdep-cancel.h.
8795         (__sigprocmask): Define.
8796
8797 2006-10-02  Ulrich Drepper  <drepper@redhat.com>
8798
8799         * elf/rtld.c (dl_main): Don't use prelinking if LD_DYNAMIC_WEAK is
8800         used.
8801
8802 2006-10-02  Jakub Jelinek  <jakub@redhat.com>
8803
8804         * nscd/mem.c (mempool_alloc): Round array size to 16 bytes
8805         in oldtotal and newtotal calculation.
8806         * nscd/nscd-client.h (struct mapped_database): Add datasize
8807         field.
8808         * nscd/nscd_helper.c (get_mapping): Initialize datasize field.
8809         (__nscd_get_map_ref): Get a new mapping even if mapping's data_size
8810         increased.
8811         (__nscd_cache_search): Add checks to make sure we never reference
8812         data beyond the current mapping.
8813
8814 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
8815
8816         * sysdeps/posix/getaddrinfo.c (match_prefix): Make mask and val
8817         variables const to avoid compiler warnings.
8818
8819         * io/fts.c (fts_close): Remove redundant checks.
8820         (fts_build): Likewise.
8821         (fts_palloc): Likewise.
8822
8823         * manual/message.texi (Advanced gettext functions,
8824         Using gettextized software): Fix typos.
8825
8826 2006-09-30  Ulrich Drepper  <drepper@redhat.com>
8827
8828         * posix/glob.c (glob_in_dir): Add some comments and asserts to
8829         explain why there are no leaks.
8830
8831 2006-09-29  Ulrich Drepper  <drepper@redhat.com>
8832
8833         * libio/wmemstream.c: Include <wchar.h>.
8834         * libio/bug-wmemstream1.c: Likewise.
8835         * libio/tst-wmemstream1.c: Likewise.
8836         * libio/tst-wmemstream2.c: Likewise.
8837
8838         * version.h (RELEASE): Bump to 2.5.
8839         * README: Regenerated.
8840
8841         * locale/iso-3166.def: Add Aaland Islands and Montenegro.
8842
8843         [BZ #3273]
8844         * nscd/nscd_initgroups.c (__nscd_getgrouplist): It is OK to have
8845         found no group members.
8846         Patch by Petr Baudis.
8847
8848 2006-09-29  Jakub Jelinek  <jakub@redhat.com>
8849
8850         * elf/rtld.c (_dl_start_final): If not USE___THREAD, don't
8851         assert bootstrap_map.l_tls_modid is zero.
8852         (_dl_start): Initialize bootstrap_map.l_tls_modid to 0
8853         if USE___THREAD.
8854
8855 2006-09-27  Ulrich Drepper  <drepper@redhat.com>
8856
8857         * libio/stdio.h: Move open_wmemstream prototype to ...
8858         * wcsmbs/wchar.h: ... here.
8859
8860 2006-09-25  Jakub Jelinek  <jakub@redhat.com>
8861
8862         [BZ #3252]
8863         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat): Handle only
8864         fchownat syscall and __ASSUME_LCHOWN_SYSCALL case inline, call
8865         __{,l}chown to handle the rest.
8866         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Handle only
8867         fchownat syscall and __ASSUME_32BITUIDS case inline, call
8868         __{,l}chown to handle the rest.
8869         * sysdeps/unix/sysv/linux/sparc/sparc32/fchownat.c: Include
8870         i386/fchownat.c.
8871         * sysdeps/unix/sysv/linux/s390/s390-32/fchownat.c: Likewise.
8872         * sysdeps/unix/sysv/linux/sh/fchownat.c: Likewise.
8873
8874         [BZ #3253]
8875         * posix/glob.c (glob_in_dir): Don't alloca one struct globlink at a
8876         time, rather allocate increasingly bigger arrays of pointers, if
8877         possible with alloca, if too large with malloc.
8878
8879 2006-09-24  Jakub Jelinek  <jakub@redhat.com>
8880
8881         * sysdeps/powerpc/fpu/libm-test-ulps: Updated.
8882
8883         * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Fix 2 typos.
8884
8885 2006-09-24  Ulrich Drepper  <drepper@redhat.com>
8886
8887         * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Implement rule 4,
8888         home addresses.
8889         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Recognize
8890         IFA_F_HOMEADDRESS flag for interfaces.
8891         * include/ifaddrs.h (struct in6addrinfo): Define
8892         in6ai_homeaddress.
8893
8894 2006-09-21  Jakub Jelinek  <jakub@redhat.com>
8895
8896         [BZ #3225]
8897         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (PTR_MANGLE3,
8898         PTR_DEMANGLE3): Define.
8899         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h (PTR_MANGLE3,
8900         PTR_DEMANGLE3): Likewise.
8901         * sysdeps/powerpc/powerpc32/__longjmp-common.S (__longjmp): Use them.
8902         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp):
8903         Likewise.
8904         * sysdeps/powerpc/powerpc64/__longjmp-common.S (__longjmp): Likewise.
8905
8906 2006-09-20  Jakub Jelinek  <jakub@redhat.com>
8907
8908         * po/libc.pot: Regenerated.
8909         * po/be.po: Updated.
8910         * po/ca.po: Likewise.
8911         * po/cs.po: Likewise.
8912         * po/da.po: Likewise.
8913         * po/de.po: Likewise.
8914         * po/el.po: Likewise.
8915         * po/en_GB.po: Likewise.
8916         * po/es.po: Likewise.
8917         * po/fi.po: Likewise.
8918         * po/fr.po: Likewise.
8919         * po/gl.po: Likewise.
8920         * po/hr.po: Likewise.
8921         * po/hu.po: Likewise.
8922         * po/ja.po: Likewise.
8923         * po/ko.po: Likewise.
8924         * po/nb.po: Likewise.
8925         * po/nl.po: Likewise.
8926         * po/pl.po: Likewise.
8927         * po/pt_BR.po: Likewise.
8928         * po/ru.po: Likewise.
8929         * po/rw.po: Likewise.
8930         * po/sk.po: Likewise.
8931         * po/sv.po: Likewise.
8932         * po/tr.po: Likewise.
8933         * po/zh_CN.po: Likewise.
8934         * po/zh_TW.po: Likewise.
8935
8936         [BZ #3137]
8937         * iconv/iconv_prog.c (main): Fix spelling in error message.
8938         * iconv/iconvconfig.c (main): Likewise.
8939         * locale/programs/ld-collate.c (handle_ellipsis): Likewise.
8940         * locale/programs/ld-ctype.c (charclass_symbolic_ellipsis): Likewise.
8941         * locale/programs/localedef.c (main): Likewise.
8942         * locale/programs/repertoire.c (repertoire_read): Likewise.
8943         * timezone/zdump.c (main): Likewise.
8944         * nscd/connections.c (handle_request): Fix spelling in log message.
8945         Patch by Malcolm Parsons <malcolm.parsons@gmail.com>.
8946
8947 2006-09-20  Ulrich Drepper  <drepper@redhat.com>
8948
8949         * inet/inet6_option.c: Also emit linker warnings for the RFC 2292
8950         interfaces.
8951
8952 2006-09-20  Andreas Jaeger  <aj@suse.de>
8953
8954         * math/libm-test.inc (lrint_test_upward): Fix typo.
8955
8956 2006-06-17  Joseph S. Myers  <joseph@codesourcery.com>
8957
8958         [BZ #2592]
8959         * math/libm-test.inc (lrint_test_tonearest): New function.
8960         (lrint_test_towardzero): New function.
8961         (lrint_test_downward): New function.
8962         (lrint_test_upward): New function.
8963         (main): Run these new tests.
8964         * sysdeps/ieee754/dbl-64/s_llrint.c (__llrint): Correct rounding
8965         of values near to 0.
8966         (two52): Use double not long double.
8967         * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Likewise.
8968         * sysdeps/ieee754/flt-32/s_llrintf.c (__llrintf): Likewise.
8969         (two23): Use float not double.
8970         * sysdeps/ieee754/flt-32/s_lrintf.c (__lrintf): Likewise.
8971         (two23): Use float not double.
8972         * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl): Likewise.
8973         * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Likewise.
8974         * sysdeps/ieee754/ldbl-96/s_llrintl.c (__llrintl): Likewise.
8975         * sysdeps/ieee754/ldbl-96/s_lrintl.c (__lrintl): Likewise.
8976
8977 2006-09-20  Martin Schwidefsky  <schwidefsky@de.ibm.com>
8978
8979         * sysdeps/unix/sysv/linux/s390/s390-32/makecontext.c (__makecontext):
8980         Cast sp to unsigned long to avoid compiler warning.
8981         Use __makecontext_ret function instead of a trampoline on the stack.
8982         (__makecontext_ret): New function.
8983         * sysdeps/unix/sysv/linux/s390/s390-64/makecontext.c: Likewise.
8984
8985 2006-09-19  Jakub Jelinek  <jakub@redhat.com>
8986
8987         * elf/dl-cache.c (HWCAP_CHECK): If _DL_PLATFORMS_COUNT, but
8988         platform == -1, reject any libs with non-zero _DL_HWCAP_PLATFORM
8989         bits.
8990
8991 2006-09-19  Ulrich Drepper  <drepper@redhat.com>
8992
8993         * elf/dl-close.c (_dl_close): If dependency is not unloaded make
8994         sure no reference to the unloaded map's search list remains in the
8995         dependency's scope.
8996
8997 2006-09-16  Jakub Jelinek  <jakub@redhat.com>
8998
8999         * elf/Makefile: Add rules to build and run unload7 test.
9000         * elf/unload7.c: New test.
9001         * elf/unload7mod1.c: New file.
9002         * elf/unload7mod2.c: New file.
9003
9004 2006-09-18  Jakub Jelinek  <jakub@redhat.com>
9005
9006         * sysdeps/unix/sysv/linux/sys/ptrace.h (PT_GETEVENTMSG): Fix pasto.
9007         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h (PTRACE_SETOPTIONS,
9008         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
9009         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h (PTRACE_SETOPTIONS,
9010         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Likewise.
9011         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h (PTRACE_SETOPTIONS,
9012         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Likewise.
9013         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h (PTRACE_SETOPTIONS,
9014         PTRACE_GETEVENTMSG): Likewise.
9015         (PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Change to the arch independent
9016         values.
9017
9018 2006-09-17  Mike Frysinger  <vapier@gentoo.org>
9019
9020         * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_SETOPTIONS,
9021         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
9022         * sysdeps/unix/sysv/linux/ptrace.c (ptrace): Check PTRACE_SETOPTIONS,
9023         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO and PTRACE_SETSIGINFO.
9024
9025 2006-09-16  Jakub Jelinek  <jakub@redhat.com>
9026
9027         * sysdeps/powerpc/powerpc32/register-dump.h (register_dump): Don't
9028         write '\0' to the fd.
9029         * sysdeps/mach/hurd/powerpc/register-dump.h (register_dump): Likewise.
9030         * sysdeps/powerpc/powerpc64/register-dump.h (register_dump): Likewise.
9031         Change regs to unsigned long pointer from unsigned int, fix fscr
9032         offset.
9033
9034 2006-09-14  Jakub Jelinek  <jakub@redhat.com>
9035
9036         * io/Makefile (CFLAGS-fstatat.c): Set.
9037         (CFLAGS-fstatat64.c): Likewise.
9038         (CFLAGS-mknodat.c): Likewise.
9039
9040         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Comment fixes.
9041         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
9042         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Rewritten.
9043         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Rewritten.
9044
9045 2006-09-14  Jakub Jelinek  <jakub@redhat.com>
9046             Steven Munroe  <sjmunroe@us.ibm.com>
9047
9048         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add 4 new cap
9049         names to the beginning.  Rename "cell" to "cellbe".
9050         (_dl_powerpc_platforms): New.
9051         * sysdeps/powerpc/dl-procinfo.h (_DL_HWCAP_FIRST): Decrease.
9052         (HWCAP_IMPORTANT): Remove power{4,5,5+} and cell.
9053         (_DL_PLATFORMS_COUNT, _DL_FIRST_PLATFORM): Define.
9054         (_DL_HWCAP_PLATFORM): Define to new mask.
9055         (_dl_platform_string, _dl_string_platform): New functions.
9056         * sysdeps/powerpc/sysdep.h (PPC_FEATURE_BOOKE, PPC_FEATURE_SMT,
9057         PPC_FEATURE_ICACHE_SNOOP, PPC_FEATURE_ARCH_2_05): Define.
9058
9059 2006-09-12  Jakub Jelinek  <jakub@redhat.com>
9060
9061         [BZ #2526]
9062         * README.libm: Fix a thinko in sqrt algorithm description.
9063
9064         [BZ #3143]
9065         * manual/string.texi (argz_delete): Fix prototype.
9066         Patch by <alpt@freaknet.org>.
9067
9068 2006-08-26  Joseph Myers  <joseph@codesourcery.com>
9069
9070         [BZ #3138]
9071         * io/test-lfs.c (do_prepare): Give name_len type size_t.
9072         * io/tst-fcntl.c (do_prepare): Likewise.
9073         * posix/tst-exec.c (do_prepare): Likewise.
9074         * posix/tst-preadwrite.c (do_prepare): Likewise.
9075         * posix/tst-spawn.c (do_prepare): Likewise.
9076         * posix/tst-truncate.c (do_prepare): Likewise.
9077         * rt/tst-aio.c (do_prepare): Likewise.
9078         * rt/tst-aio64.c (do_prepare): Likewise.
9079         * stdlib/test-canon2.c (do_prepare): Give test_dir_len type
9080         size_t.
9081
9082 2006-09-09  Ulrich Drepper  <drepper@redhat.com>
9083
9084         [BZ #2821]
9085         * time/mktime.c (guess_time_tm): Fix overflow detection.
9086         * time/Makefile (tests): Add bug-mktime1.
9087         * time/bug-mktime1.c: New file.
9088
9089         [BZ #3189, #3188]
9090         * misc/sys/mman.h (remap_file_pages): Make available for _GNU_SOURCE.
9091         (mremap): Likewise.
9092
9093 2006-09-07  Jakub Jelinek  <jakub@redhat.com>
9094
9095         [BZ #1006]
9096         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela):
9097         Ensure relocation doesn't clobber any bits outside of the
9098         immediate field for R_SPARC_TLS_LE_HIX22, R_SPARC_WDISP30,
9099         R_SPARC_HI22 and R_SPARC_H44.
9100
9101         [BZ #2775]
9102         * malloc/malloc.c (sYSMALLOc): Only call grow_heap if
9103         (long) (MINSIZE + nb - old_size) is positive.
9104
9105         * malloc/arena.c (grow_heap): When growing bail even if new_size
9106         is negative.
9107
9108         [BZ #3155]
9109         * sysdeps/powerpc/powerpc32/fpu/s_lrint.S (__lrint): Don't access
9110         stack below r1.
9111
9112 2006-09-06  Jakub Jelinek  <jakub@redhat.com>
9113
9114         * posix/regex_internal.c (re_string_reconstruct): Handle
9115         offset < pstr->valid_raw_len && pstr->offsets_needed case.
9116         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
9117         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
9118         re_string_context_at.
9119         * posix/Makefile: Add rules to build and run bug-regex26 test.
9120         * posix/bug-regex26.c: New test.
9121
9122         * locale/programs/ld-collate.c (collate_read): Goto sym_equiv_free
9123         rather than col_sym_free.  Move seqp declaration earlier.
9124
9125         * resolv/gai_suspend.c (gai_suspend): Make sure result is initialized.
9126
9127 2006-09-05  Jakub Jelinek  <jakub@redhat.com>
9128
9129         * nscd/initgrcache.c (addinitgroupsX): Move any_success
9130         decl before first goto out.
9131
9132 2006-09-04  Jakub Jelinek  <jakub@redhat.com>
9133
9134         * Makerules (shlib.lds): If have-hash-style, put .hash section
9135         at the end of the RO segment.
9136
9137 2006-09-04  Ulrich Drepper  <drepper@redhat.com>
9138
9139         * elf/do-lookup.h (do_lookup_x): Initialize symidx in case the new
9140         style hash table format is used.
9141
9142 2006-09-04  Jakub Jelinek  <jakub@redhat.com>
9143
9144         * resolv/res_mkquery.c (res_nmkquery): Set hp->id to statp->id after
9145         randomization rather than before.
9146         * resolv/res_init.c (res_randomid): Don't call gettimeofday here.
9147
9148 2006-08-31  Jakub Jelinek  <jakub@redhat.com>
9149
9150         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Add ld.so.
9151
9152         * malloc/malloc.c (_int_malloc): Use full list insert and not
9153         shortcut which assumes the list is empty for large requests
9154         too.
9155
9156         * elf/tst-addr1.c (do_test): Allow i.dli_sname "_IO_printf".
9157
9158 2006-08-30  Jakub Jelinek  <jakub@redhat.com>
9159
9160         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (splice): Add offin
9161         and offout arguments to the prototype.
9162         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (splice): Likewise.
9163         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h (splice): Likewise.
9164         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (splice): Likewise.
9165         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h (splice): Likewise.
9166         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h (splice): Likewise.
9167         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (splice): Likewise.
9168         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h (splice): Likewise.
9169         * sysdeps/unix/sysv/linux/syscalls.list (splice): Adjust args string.
9170
9171 2006-08-28  Ulrich Drepper  <drepper@redhat.com>
9172
9173         * elf/dl-load.c (_dl_init_paths): Expand DSTs.
9174
9175         * elf/dl-open.c (dl_open_worker): Allow $LIB and $PLATFORM in
9176         dlopen parameters.
9177
9178 2006-08-28  Jakub Jelinek  <jakub@redhat.com>
9179
9180         * inet/getnameinfo.c (getnameinfo): For AF_INET, check errno
9181         only if herrno is NETDB_INTERNAL.  Handle errors other than
9182         ERANGE outside of the loops, handle TRY_AGAIN.
9183
9184         * locale/programs/ld-ctype.c (translit_flatten): Issue error
9185         if other's ctype category was missing.
9186         * locale/programs/ld-collate.c (collate_read): Return if
9187         copy_locale's collate category is missing.
9188
9189 2006-08-27  Ulrich Drepper  <drepper@redhat.com>
9190
9191         [BZ #2684]
9192         * malloc/malloc.c (public_rEALLOc): Try harder by using other
9193         arenas if allocation failed.
9194         Patch mostly by Jan Edler <jan.edler@indexengines.com>.
9195
9196 2006-08-26  Ulrich Drepper  <drepper@redhat.com>
9197
9198         * malloc/malloc.c (bin_at): Rewrite to be more clear and to not
9199         waste bins[0..1].
9200         (malloc_state): Reduce bins size by 2.
9201         (_int_malloc): Fix test for large enough buffer for early termination.
9202         When no unsorted block matches perfectly and an exiting block has
9203         to be split, use full list insert and not shortcut which assumes
9204         the list is empty.
9205
9206         * locale/programs/ld-ctype.c (ctype_read): Better patch for read
9207         failure.
9208
9209 2006-08-24  Ulrich Drepper  <drepper@redhat.com>
9210
9211         * locale/programs/ld-ctype.c (ctype_read): If CTYPE is NULL, don't
9212         do anything.
9213
9214         * sysdeps/generic/ldsodefs.h (DL_ADDR_SYM_MATCH): For undefined
9215         symbol require exact match (these are PLTs).
9216         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ldsodefs.h
9217         (_dl_ppc64_addr_sym_match): Likewise.
9218
9219         [BZ #2683]
9220         * elf/dl-addr.c (_dl_addr): Don't ignore all undefined symbols.
9221         If symbol has a value use it.
9222         * elf/tst-dladdr1.c: New file.
9223         * elf/Makefile: Add rules to build and run tst-addr1.
9224
9225 2006-08-24  Jakub Jelinek  <jakub@redhat.com>
9226
9227         * malloc/malloc.c (sYSMALLOc): Avoid infinite loop if MMAP
9228         keeps failing and heap growth or new heap creation isn't
9229         successful either.
9230         * malloc/tst-malloc.c (main): Add new tests.
9231
9232 2006-08-24  Ulrich Drepper  <drepper@redhat.com>
9233
9234         [BZ #2734]
9235         * sysdeps/i386/bits/byteswap.h (__bswap_32): Use same conditions
9236         as in the x86-64 code to use bswap.
9237
9238 2006-05-21  Joseph S. Myers  <joseph@codesourcery.com>
9239
9240         [BZ #2680]
9241         * posix/unistd.h (getlogin_r): Condition on __USE_POSIX199506, not
9242         __USE_UNIX98.
9243         * posix/bits/unistd.h: Likewise.
9244
9245 2006-05-15  Mike Frysinger  <vapier@gentoo.org>
9246
9247         [BZ #2751]
9248         * string/strchr.c: Add cast to avoid warning.
9249
9250 2006-08-21  Ulrich Drepper  <drepper@redhat.com>
9251
9252         * malloc/malloc.c (DEFAULT_MMAP_THRESHOLD_MAX): For 32-bit
9253         platforms define as 512K.  For 64-bit platforms as 32MB.  The lower
9254         limit is needed to avoid the exploding of the address space
9255         requirement for secondary heaps.
9256         * malloc/arena.c (HEAP_MAX_SIZE): Define using
9257         DEFAULT_MMAP_THRESHOLD_MAX if it is defined.
9258
9259 2006-07-30  Joseph S. Myers  <joseph@codesourcery.com>
9260
9261         [BZ #3018]
9262         * Makerules (depfiles): Handle extra-test-objs the same as
9263         extra-objs.
9264         (common-mostlyclean): Likewise.
9265         * dlfcn/Makefile (extra-objs): Add modules to extra-test-objs
9266         instead.
9267         * elf/Makefile (extra-objs): Likewise.
9268         * stdlib/Makefile (extra-objs): Likewise.
9269
9270 2006-08-14  Eric Blake  <ebb9@byu.net>
9271
9272         [BZ #3044]
9273         * misc/error.h: Assume C89 or better.
9274         * misc/error.c: Likewise.
9275
9276 2006-08-21  Ulrich Drepper  <drepper@redhat.com>
9277
9278         [BZ #3040]
9279         * sysdeps/unix/sysv/linux/openat.c: Fix compilation if
9280         __ASSUME_ATFCTS is defined.
9281
9282 2006-08-19  Ulrich Drepper  <drepper@redhat.com>
9283
9284         * malloc/malloc.c (_int_malloc): Limit number of unsorted blocks
9285         to sort in each call.
9286
9287         * nis/nss_nis/nis-service.c (internal_nis_getservent_r): . If map
9288         is empty simply return and use next service.
9289         * nis/nss_nis/nis-rpc.c (internal_nis_getrpcent_r): Likewise.
9290
9291         * locale/programs/charmap.c (charmap_read): Add new parameter.  It
9292         tells us when not finding a charmap file is an error.
9293         * locale/programs/charmap.h: Adjust charmap_read prototype.
9294         * iconv/iconv_prog.c (main): Tell charmap_read it's no error if we
9295         cannot find a charmap.
9296         * locale/programs/localedef.c (main): Adjust charmap_read call.
9297
9298 2006-08-15  Jakub Jelinek  <jakub@redhat.com>
9299
9300         * sysdeps/unix/sysv/linux/sparc/sparc64/pause.c: Use
9301         sysdeps/posix/pause.c implementation instead.
9302
9303 2006-08-09  Jakub Jelinek  <jakub@redhat.com>
9304
9305         * sysdeps/unix/nice.c (nice): Transform EACCES errno from setpriority
9306         to EPERM.
9307
9308 2006-08-13  Andreas Schwab  <schwab@suse.de>
9309
9310         * sysdeps/powerpc/powerpc32/dl-trampoline.S (_dl_runtime_resolve):
9311         Don't clobber caller's LRSAVE.
9312         (_dl_prof_resolve): Likewise.
9313
9314 2006-08-14  Ulrich Drepper  <drepper@redhat.com>
9315
9316         [BZ #1996]
9317         * libio/memstream.c (open_memstream): Allocate initial buffer with
9318         calloc.
9319         * libio/wmemstream.c (open_wmemstream): Likewise.
9320         * libio/strops.c: Pretty printing.
9321         (_IO_str_overflow): Clear uninitialized part of the new buffer.
9322         (enlarge_userbuf): New function.
9323         (_IO_str_seekoff): Call it if seek position is larger than current
9324         buffer.
9325         * libio/wstrops.c: Likewise.
9326         * libio/vasprintf.c: Add comment as to why we do not have to use
9327         calloc instead of malloc to allocate initial buffer.
9328         * libio/Makefile (tests): Add bug-memstream1 and bug-wmemstream1.
9329         * libio/bug-memstream1.c: New file.
9330         * libio/bug-wmemstream1.c: New file.
9331
9332 2006-08-13  Ulrich Drepper  <drepper@redhat.com>
9333
9334         * libio/wstrops.c: Remove dead macro definitions and comments.
9335         * libio/strops.c: Likewise.
9336
9337         [BZ #2764]
9338         * login/utmpname.c (__utmpname): Remove unnecessary test.
9339
9340 2006-06-08  Joseph Myers  <jsm28@gcc.gnu.org>
9341
9342         [BZ #2832]
9343         * math/gen-libm-test.pl (clean_up_number): Do not remove trailing
9344         0s from integers.
9345
9346 2006-08-13  Ulrich Drepper  <drepper@redhat.com>
9347
9348         [BZ #2987]
9349         * sysdeps/unix/sysv/linux/clock_settime.c: Add code to use syscall
9350         for CPU clocks.
9351         * sysdeps/unix/clock_settime.c: Add support for platform-specific
9352         setting of CPU clocks.
9353
9354 2006-06-23  Paul Eggert  <eggert@cs.ucla.edu>
9355
9356         [BZ #2841]
9357         * sysdeps/generic/stdint.h (UINT8_C, UINT16_C): Don't append 'U',
9358         since C99 requires the result to promote to 'int' when uint_least8_t
9359         and uint_least16_t promote to 'int'.
9360
9361 2006-08-12  Ulrich Drepper  <drepper@redhat.com>
9362
9363         [BZ #3013]
9364         * locale/programs/ld-ctype.c (ctype_output): Adjust alignments, fix
9365         lenght of one output field, correct bitmask creation.
9366         * locale/programs/ld-time.c: Add alignment.
9367
9368         [BZ #2997]
9369         * misc/error.c: Add space between program name and message if file
9370         name is missing.
9371
9372 2006-08-03  Eric Blake  <ebb9@byu.net>
9373
9374         [BZ #2998]
9375         * misc/error.c (error_tail) [_LIBC]: Avoid invalid free.
9376
9377 2006-08-09  Ulrich Drepper  <drepper@redhat.com>
9378
9379         * malloc/memusagestat.c: Silence warnings.
9380
9381         * malloc/malloc.c: Dynamically size mmap treshold if the program
9382         frees mmaped blocks.
9383         Patch by Valerie Henson and Arjan van de Ven.
9384
9385 2006-08-08  Jakub Jelinek  <jakub@redhat.com>
9386
9387         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (O_DIRECT): Protect with
9388         __USE_GNU.
9389
9390         * stdlib/strtol_l.c (__strtol_ul_max_tab, __strtol_ul_rem_tab,
9391         __strtol_ull_max_tab, __strtol_ull_rem_tab): Declare.
9392         (DEF): Don't put the var into .gnu.linkonce.r.* section.
9393         Only provide var definitions in strtol_l (or for *ull*
9394         in strtoll_l).
9395
9396         * stdio-common/bug16.c (tests): New array.
9397         (do_tests): Allow the first hexadecimal digit
9398         to be 1, 2, 4 or 8.  Do 3 additional tests.
9399
9400         * sysdeps/s390/fpu/libm-test-ulps: Update.
9401
9402         * sysdeps/unix/sysv/linux/s390/s390-32/fchownat.c (fchownat): Use
9403         fchownat syscall if available.
9404         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat): Likewise.
9405         * sysdeps/unix/sysv/linux/sh/fchownat.c (fchownat): Likewise.
9406         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Likewise.
9407
9408 2006-08-07  Ulrich Drepper  <drepper@redhat.com>
9409
9410         * nis/nis_xdr.c: Avoid some function calls.
9411
9412 2006-08-07  Jakub Jelinek  <jakub@redhat.com>
9413             Ulrich Drepper  <drepper@redhat.com>
9414
9415         * nis/nis_call.c (rec_dirsearch) [case LOWER_NAME]: Don't take
9416         short cut if only one name component is stripped away.
9417
9418 2006-08-07  Ulrich Drepper  <drepper@redhat.com>
9419
9420         * nis/nis_call.c: Minor cleanups throughout.
9421         (rec_dirsearch) [case HIGHER_NAME]: Correctly size ndomain array.
9422         (first_shoot): Add search_parent_first parameter.  Only if it is set
9423         search parent server first.
9424         If directory for table found through cold start cache is not the same
9425         as referenced in the cache, don't use it.
9426         (__nisfind_server): Take additional parameter.  Pass it on to
9427         first_shoot.
9428         (__prepare_niscall): Adjust __nisfind_server call.
9429         * nis/rpcsvc/nislib.h: Adjust __nisfind_server prototype.
9430         * nis/nis_table.c: Adjust __nisfind_server call.
9431         * nis/nis_lookup.c: Likewise.
9432         (nis_lookup): Don't loop endlessly if name is reduced to ".".
9433
9434 2006-08-03  Ulrich Drepper  <drepper@redhat.com>
9435
9436         [BZ #2182]
9437         * math/s_cacosh.c: Return values from positive branch.
9438         * math/s_cacoshf.c: Likewise.
9439         * math/s_cacoshl.c: Likewise.
9440
9441         [BZ #2883]
9442         * sysvipc/sys/msg.h: Change return value to ssize_t.
9443         * sysdeps/unix/sysv/linux/msgrcv.c: Likewise.
9444         * sysvipc/msgrcv.c: Likewise.
9445         * include/sys/msg.h: Likewise.
9446
9447         * grp/initgroups.c (internal_getgrouplist): Remove unnecessary
9448         test introduced in patch for bz #661.
9449         (getgrouplist): Simplify code a bit.  Don't allocate one additional
9450         element for NEWGROUPS.
9451
9452         [BZ #2908]
9453         * stdio-common/printf_fphex.c (__printf_fphex): When rounding up
9454         'f', use '1' as leading digit not '\1'.
9455         * stdio-common/Makefile (tests): Add bug16.
9456         * stdio-common/bug16.c: New file.
9457
9458         [BZ #2914]
9459         * sysdeps/unix/sysv/linux/gethostid.c: Don't define OLD_HOSTIDFILE
9460         and don't try to open it.  The patch introducing the macro
9461         contained a bug and used the same file name as the new file
9462         instead of using /var/adm/hostid.  Nobody complaint so I'm taking
9463         this out completely.
9464
9465         [BZ #2926]
9466         * assert/assert.h: Move cast to void inside ?: to quiet gcc.
9467         Patch by Jerry James <Jerry.James@usu.edu>.
9468
9469         * rt/Makefile (tests): Add tst-clock2.
9470         * rt/tst-clock2.c: New file.
9471
9472         [BZ #2978]
9473         * resolv/gai_notify.c (__gai_notify_only): Copy memory for thread
9474         function and its parameters and pass it to new thread.
9475         (__gai_notify): Add support for alternative waiting for completion.
9476         * resolv/gai_suspend.c (gai_suspend): Add support for alternative
9477         waiting for completion.
9478         * resolv/getaddrinfo_a.c: Likewise.
9479         * resolv/gai_misc.h (struct waitlist): Don't add cond if alternative
9480         waiting for completion is used.
9481         * resolv/gai_misc.c: Allow overwriting code to start helper thread.
9482         * resolv/gai_cancel.c: Include <gai_misc.h> not "gai_misc.h".
9483         * resolv/gai_error.c: Likewise.
9484         * resolv/gai_sigqueue.c: Likewise.
9485
9486 2006-08-02  Thomas Schwinge  <tschwinge@gnu.org>
9487
9488         * hurd/getdport.c (__getdport): Don't return EBADF; instead set
9489         errno to EBADF and return MACH_PORT_NULL.
9490
9491 2006-06-23  Joseph Myers  <joseph@codesourcery.com>
9492
9493         [BZ #2980]
9494         * posix/Makefile (CFLAGS-waitid.c): Add -fasynchronous-unwind-tables.
9495
9496 2006-08-02  Ulrich Drepper  <drepper@redhat.com>
9497
9498         * elf/dl-addr.c (_dl_addr): If GNU-style hash tables are present,
9499         walk them instead of the symbol table.
9500
9501 2006-08-01  Ulrich Drepper  <drepper@redhat.com>
9502
9503         [BZ #2098]
9504         * nscd/initgrcache.c (addinitgroupsX): Judge successful lookups by
9505         status of NSS calls, not the number of returned entries.
9506
9507         * sysdeps/unix/sysv/linux/syscalls.list: Remove add_key,
9508         request_key, keyctl.
9509
9510 2006-07-31  Ulrich Drepper  <drepper@redhat.com>
9511
9512         * sysdeps/unix/sysv/linux/dl-osinfo.h: Remove unnecessary include.
9513
9514 2006-07-16  Jeff Bailey  <jbailey@ubuntu.com>
9515
9516         * elf/tst-auditmod1.c: Fix typo in #error.
9517
9518 2006-07-31  Ulrich Drepper  <drepper@redhat.com>
9519
9520         * elf/tst-auditmod1.c: Remove code for unsupported architectures.
9521
9522         * iconvdata/run-iconv-test.sh: Run cmp in C locale.
9523
9524 2006-07-20  Adam Nemet  <anemet@caviumnetworks.com>
9525
9526         * stdlib/test-canon.c (do_test): Close fd before unlinking file so
9527         that the directory is empty even on non-POSIX filesystems.
9528
9529 2006-07-31  Ulrich Drepper  <drepper@redhat.com>
9530
9531         * elf/dl-open.c (dl_open_worker): Add branch prediction.
9532
9533         * nis/nss_compat/compat-grp.c: Avoid unnecessary setgrent calls into
9534         the backend NSS module.  If backend setgrent call failed, don't have
9535         internal_setgrent fail.  Just remember this until it is needed.
9536         * nis/nss_compat/compat-pwd.c: Likewise.
9537         * nis/nss_compat/compat-spwd.c: Likewise.
9538
9539 2006-07-30  Roland McGrath  <roland@redhat.com>
9540
9541         * sysdeps/unix/sysv/linux/ia64/sigsuspend.c: File removed.
9542         * sysdeps/unix/sysv/linux/x86_64/sigsuspend.c: File removed.
9543         * sysdeps/unix/sysv/linux/s390/s390-64/sigsuspend.c: File removed.
9544         * sysdeps/unix/sysv/linux/sparc/sparc64/sigsuspend.c: File removed.
9545
9546         * sysdeps/unix/sysv/linux/not-cancel.h (pause_not_cancel): New macro.
9547         (nanosleep_not_cancel): New macro.
9548         (sigsuspend_not_cancel): new macro.
9549         * sysdeps/unix/sysv/linux/sigsuspend.c [__ASSUME_REALTIME_SIGNALS]
9550         (do_sigsuspend): Define as inline.
9551         (__sigsuspend): Always use do_sigsuspend.
9552         [! NO_CANCELLATION] (__sigsuspend_nocancel): New function.
9553         * include/signal.h: Declare __sigsuspend_nocancel.
9554         * sysdeps/posix/pause.c
9555         [! NO_CANCELLATION] (__pause_nocancel): New function.
9556
9557         * include/unistd.h (__pause_nocancel): Add attribute_hidden.
9558         * include/time.h (__nanosleep_nocancel): Likewise.
9559
9560 2006-07-30  Ulrich Drepper  <drepper@redhat.com>
9561
9562         * locale/programs/localedef.c (add_to_readlist): Rename local
9563         variables to avoid confusion.
9564
9565         * locale/programs/charmap.c (charmap_read): Emit error message if
9566         charmap couldn't be found or read.
9567
9568 2006-07-28  Ulrich Drepper  <drepper@redhat.com>
9569
9570         * sysdeps/unix/sysv/linux/kernel-features.h: Define
9571         __ASSUME_FUTEX_LOCK_PI.
9572         * include/time.h: Declare __nanosleep_nocancel.
9573         * include/unistd.h: Declare __pause_nocancel.
9574
9575         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Use this instead of
9576         LDFLAGS.  Add -lgcc_eh and libc_nonshared (again) to make sure we
9577         get the __stack_chk_fail_local definition when it's needed.
9578
9579 2006-07-26  Ulrich Drepper  <drepper@redhat.com>
9580
9581         * dlfcn/Makefile: Add rules to build and run bug-atexit3.
9582         * dlfcn/bug-atexit3.c: New file.
9583         * dlfcn/bug-atexit3-lib.cc: New file.
9584
9585         * dlfcn/dlmopen.c (dlmopen_doit): Don't allow RTLD_GLOBAL to be
9586         used when the namespace is not the base namespace.
9587
9588 2006-07-26  Gavin Romig-Koch  <gavin@redhat.com>
9589
9590         * stdlib/cxa_atexit.c (__new_exitfn_called): New variable.
9591         (__new_exitfn): Bump it in every successful call.
9592         * stdlib/cxa_finalize.c (__cxa_finalize): If destructor registered
9593         more exit handlers, call them right away.
9594         * stdlib/exit.h: Declare __new_exitfn_called.
9595
9596 2006-07-25  Ulrich Drepper  <drepper@redhat.com>
9597
9598         * stdlib/cxa_finalize.c (__cxa_finalize): Fix race condition when
9599         calling registered handler.
9600
9601         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Fix comment.
9602         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
9603         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
9604         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
9605         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
9606         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
9607         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
9608         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
9609
9610 2006-07-10  Ulrich Drepper  <drepper@redhat.com>
9611
9612         * elf/dl-lookup.c (dl_new_hash): New functions.
9613         (_dl_lookup_symbol_x): Rename hash to old_hash and don't compute
9614         value here.  Compute new-style hash value.  Pass new hash value
9615         and reference to variable with the old value to do_lookup_x.
9616         (_dl_setup_hash): If DT_GNU_HASH is defined, use it and not
9617         old-style hash table.
9618         (_dl_debug_bindings): Pass new hash value and reference to variable
9619         with the old value to do_lookup_x.
9620         * elf/do-lookup.h (do_lookup_x): Accept additional parameter with
9621         new-style hash value and change old-style hash value parameter to
9622         be a reference.  Reoganize functions to determine whether
9623         new-style hash table is available.  Only fall back on old-style
9624         table.  If old-style hash value is needed, compute it here.
9625         * elf/dynamic-link.h (elf_get_dynamic_info): Relocate DT_GNU_HASH
9626         entry.
9627         * elf/elf.h: Define SHT_GNU_HASH, DT_GNU_HASH, DT_TLSDEC_PLT,
9628         DT_TLSDEC_GOT.  Adjust DT_ADDRNUM.
9629         * include/link.h (struct link_map): Add l_gnu_bitmask_idxbits,
9630         l_gnu_shift, l_gnu_bitmask, l_gnu_buckets and l_gnu_chain_zero.
9631         * Makeconfig: If linker supports --hash-style option add it to all
9632         linker command lines to build DSOs.
9633         * config.make.in: Define have-hash-style.
9634         * configure.in: Test whether linker supports --hash-style option.
9635
9636         * elf/dl-misc.c (_dl_name_match_p): Make MAP parameter const.
9637         * sysdeps/generic/ldsodefs.h: Adjust prototype.
9638
9639 2006-06-27  Ulrich Drepper  <drepper@redhat.com>
9640
9641         * elf/dl-load.c (open_path): Fix test to determine whether DSO is
9642         auditing.
9643
9644         * elf/dl-load.c (_dl_map_object): Try harder to avoid looking at
9645         RPATH of main map twice.
9646
9647 2006-06-22  Ulrich Drepper  <drepper@redhat.com>
9648
9649         * intl/dcigettext.c (DCIGETTEXT): If _nl_find_msg returns -1 don't
9650         look further, return original strings.
9651         (_nl_find_msg): Do not return found translation if the conversion
9652         failed.  Either signal the string is unusable or that something went
9653         wrong and the original should be used.
9654
9655 2006-06-21  Ulrich Drepper  <drepper@redhat.com>
9656
9657         * string/_strerror.c (__strerror_r): Add __builtin_expect.
9658
9659 2006-06-14  Jakub Jelinek  <jakub@redhat.com>
9660
9661         [BZ #2766]
9662         * misc/insremque.c (insque): Handle prev == NULL.
9663         * misc/Makefile (tests): Add tst-insremque.
9664         * misc/tst-insremque.c: New test.
9665
9666 2006-06-17  Ulrich Drepper  <drepper@redhat.com>
9667
9668         [BZ #2792]
9669         * elf/dl-deps.c (expand_dst): Rename __cnt variable to not
9670         conflict with DL_DST_REQUIRED.
9671
9672 2006-06-16  Ulrich Drepper  <drepper@redhat.com>
9673
9674         * nis/nis_subr.c (nis_getnames): Fix the implementation to better
9675         match what Solaris does.
9676
9677 2006-06-04  Ulrich Drepper  <drepper@redhat.com>
9678
9679         * sysdeps/posix/spawni.c (__spawni): Use local_seteuid and
9680         local_setegid instead of seteuid and setegid.
9681         * sysdeps/generic/local-setxid.h: New file.
9682         * sysdeps/unix/sysv/linux/local-setxid.h: New file.
9683
9684         * sysdeps/posix/spawni.c (__spawni): Use non-cancelable interfaces.
9685
9686         * string/Makefile (tests): Add bug-envz1.
9687         * string/bug-envz1.c: New file.
9688
9689 2006-06-02  Jakub Jelinek  <jakub@redhat.com>
9690
9691         * posix/regex_internal.c (re_string_skip_chars): If no character has
9692         been converted at all, set *last_wc to WEOF.  If mbrtowc failed, set wc
9693         to the byte which couldn't be converted.
9694         (re_string_reconstruct): Don't clear valid_raw_len before calling
9695         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
9696         tip_context using re_string_context_at.
9697         * posix/Makefile: Add rules to build and run bug-regex25 test.
9698         * posix/bug-regex25.c: New test.
9699
9700 2006-06-02  Ryan S. Arnold  <rsa@us.ibm.com>
9701
9702         [BZ #2703]
9703         * string/envz.c (envz_strip): Correct erroneously reversed src
9704         and dest parameters to memmove() invocation.
9705
9706 2006-05-30  Jakub Jelinek  <jakub@redhat.com>
9707
9708         * nscd/nscd.h (prune_cache): Add fd argument to prototype.
9709         * nscd/nscd.c (parse_opt): Read response from INVALIDATE request
9710         to make sure the database has been already invalidated.
9711         * nscd/cache.c (prune_cache): Add fd argument.  Write response to fd
9712         after the cache has been invalidated.  Use pthread_mutex_lock rather
9713         than pthread_mutex_trylock if fd != -1.
9714         * nscd/connections.c (invalidate_cache): Add fd argument, write
9715         response to fd if not calling prune_cache, pass fd to prune_cache.
9716         (handle_request): Adjust invalidate_cache caller.
9717         (nscd_run): Pass -1 as fd to prune_cache.
9718
9719 2006-05-30  Ulrich Drepper  <drepper@redhat.com>
9720
9721         * sysdeps/posix/getaddrinfo.c (gaiconf_init): Initialize bits in
9722         the correct place.
9723
9724 2006-05-29  Ulrich Drepper  <drepper@redhat.com>
9725
9726         * nscd/nscd.h (struct database_dyn): Add prunelock field.
9727         * nscd/cache.c (prune_cache): Take prunelock before starting the
9728         work.  Just return in case it is already taken.
9729         * nscd/connections.c (dbs): Initialize .prunelock.
9730
9731 2006-05-25  Ulrich Drepper  <drepper@redhat.com>
9732
9733         * nis/nis_removemember.c (nis_removemember): Avoid unnecessary
9734         copying.  No need to allocate new array for group members.  Just
9735         move the pointers and update the size.
9736
9737         * nis/nis_addmember.c (nis_addmember): Avoid unnecessary copying.
9738         Avoid memory leak in case realloc fails.  Simplification for
9739         better code generation.
9740
9741         Avoid deprecation warning because of libc_hidden_proto for
9742         inet6_option_alloc.
9743         * inet/inet6_option.c (option_alloc): Renamed from
9744         inet6_option_alloc.  Made static.
9745         (inet6_option_alloc): Now a simple wrapper around option_alloc.
9746         (inet6_option_append): Call option_alloc.
9747         * include/netinet/in.h: Remove libc_hidden_proto for
9748         inet6_option_alloc.
9749
9750         * nis/nis_callback.c (__nis_create_callback): Always call xdr_free
9751         for cleanup when cb!=NULL [Coverity CID 233].
9752
9753 2006-05-24  Ulrich Drepper  <drepper@redhat.com>
9754
9755         [BZ #2693]
9756         * inet/Makefile (routines): Add inet6_opt and inet6_rth.
9757         * inet/Versions (libc, GLIBC_2.5): Add inet6_opt_init,
9758         inet6_opt_append, inet6_opt_finish, inet6_opt_set_val, inet6_opt_next,
9759         inet6_opt_find, inet6_opt_get_val, inet6_rth_space, inet6_rth_init,
9760         inet6_rth_add, inet6_rth_reverse, inet6_rth_segments,
9761         and inet6_rth_getaddr.
9762         * inet/netinet/ip6.h (struct ip6_rthdr0): Make ip6r0_addr a flexible
9763         array.
9764         * inet/netinet/in.h (struct ip6_mtuinfo): Define.
9765         Mark inet6_option_* interfaces as deprecated.
9766         Declare inet6_opt_init, inet6_opt_append, inet6_opt_finish,
9767         inet6_opt_set_val, inet6_opt_next, inet6_opt_find, inet6_opt_get_val,
9768         inet6_rth_space, inet6_rth_init, inet6_rth_add, inet6_rth_reverse,
9769         inet6_rth_segments, and inet6_rth_getaddr.
9770         * inet/inet6_opt.c: New file.
9771         * inet/inet6_rth.c: New file.
9772
9773         * inet/netinet/icmp6.h: Pretty printing.
9774
9775         [BZ #2683]
9776         * elf/dl-addr.c (_dl_addr): Don't match undefined references.
9777
9778 2006-05-23  Ulrich Drepper  <drepper@redhat.com>
9779
9780         * nis/nis_lookup.c (nis_lookup): Use __prepare_niscall instead of
9781         doing it all here.  When server does not know the answer do not
9782         fail immediate, try parent first.
9783
9784         * nis/nis_domain_of_r.c (nis_domain_of_r): Add missing buffer
9785         overflow test.
9786
9787 2006-05-20  Ulrich Drepper  <drepper@redhat.com>
9788
9789         * nis/nis_call.c (__prepare_niscall): New function.  Split out
9790         from __do_niscall.
9791         * nis/nis_table.c (__create_ib_request): Renamed from create_ib_request
9792         and exported.
9793         (__follow_path): New function.  Split out from nis_list.
9794         * nis/nis_xdr.h: Add libnsl_hidden_proto for _xdr_ib_request and
9795         _xdr_nis_result.
9796         * nis/nis_xdr.c: Add libnsl_hidden_def for _xdr_ib_request and
9797         _xdr_nis_result.
9798         * nis/libnsl.h: Declare __prepare_niscall, __create_ib_request,
9799         and __follow_path.
9800         * nis/Versions: Export __prepare_niscall, __create_ib_request,
9801         __follow_path, __do_niscall3, _xdr_ib_request, and _xdr_nis_result
9802         from libnsl for version GLIBC_PRIVATE.
9803         * nis/nisplus-parser.h: Remove _nss_nisplus_parse_pwent_chk.
9804         Remove entry parameter from _nss_nisplus_parse_pwent and
9805         _nss_nisplus_parse_grent.
9806         * nis/nss_nisplus/nisplus-parser.c: Likewise.
9807         * nis/nss_nisplus/nisplus-pwd.c: Remove support for SETENT_BATCH_READ
9808         again.  Rewrite getpwent handling to not use nis_first_entry and
9809         nis_next_entry.  Roll out own niscall handling.
9810         * nis/nss_nisplus/nisplus-grp.c: Likewise.
9811
9812         * sunrpc/xdr_rec.c: Fix typo in comment.
9813
9814 2006-05-19  Ulrich Drepper  <drepper@redhat.com>
9815
9816         * nis/nis_call.c (__do_niscall3): Avoid code duplication in error
9817         handling.
9818
9819         * nis/nis_callback.c (internal_nis_do_callback): Don't use malloc
9820         to allocate memory for my_pollfd.  Better initialization of
9821         cb_is_running.  Use TEMP_FAILURE_RETRY.
9822
9823         * malloc/memusage.sh (memusageso): Add quotes.
9824         (memusagestat): Likewise.
9825         * debug/xtrace.sh (pcprofileso): Likewise.
9826         (pcprofiledump): Likewise.
9827         * debug/Makefile ($(objpfx)xtrace): Use $LIB in SLIBDIR
9828         replacement.
9829         * malloc/Makefile ($(objpfx)memusage): Likewise.
9830
9831         * nis/nis_callback.c (__nis_create_callback): Calls to
9832         svcudp_bufcreate and svctcp_create can fail.  Free ->xprt if
9833         asprintf call fails.
9834
9835         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_sendreq): Make sure
9836         no uninitialized memory is passed to sendto.
9837
9838 2006-05-18  Ulrich Drepper  <drepper@redhat.com>
9839
9840         * nis/nis_callback.c (__nis_create_callback): Use asprinf instead
9841         of snprintf+strdup.  Handle OOM.
9842         * nis/nis_callback.c (__nis_create_callback): Allocate cb and
9843         cb->serv together.  Remove now obsolete free calls.
9844         (__nis_destroy_callback): Remove now obsolete free call.
9845
9846 2006-05-18  David Woodhouse  <dwmw2@redhat.com>
9847
9848         * sysdeps/posix/getaddrinfo.c: Add unique labels to the default
9849         RFC3484 precedence table for fec0::/10 and fc00::/7 (site-local
9850         and ULA respectively). Set precedence for IPv4 address to 10 as
9851         defined in RFC3484 for preferring IPv6.
9852         * posix/gai.conf: Update to match the new default tables.
9853
9854 2006-05-18  Jakub Jelinek  <jakub@redhat.com>
9855
9856         * nis/nss_compat/compat-pwd.c (internal_setpwent): If nss_set*ent
9857         returned NSS_STATUS_UNAVAIL, still return NSS_STATUS_SUCCESS.
9858         * nis/nss_compat/compat-spwd.c (internal_setspent): Likewise.
9859         * nis/nss_compat/compat-grp.c (internal_setgrent): Likewise.
9860
9861         * nis/nss_compat/compat-initgroups.c (nss_setgrent, nss_endgrent):
9862         Removed.
9863         (init_nss_interface): Remove initialization of these variables.
9864
9865 2006-05-18  Ulrich Drepper  <drepper@redhat.com>
9866
9867         * nis/nis_call.c (rec_dirsearch): Little optimization: pull
9868         nis_free_directory forward to avoid duplication.
9869
9870 2006-05-17  Ulrich Drepper  <drepper@redhat.com>
9871
9872         * nis/nis_call.c (rec_dirsearch): Handle __nis_finddirectory and
9873         rec_dirsearch returning NULL.
9874         (first_shoot): Handle __nis_finddirectory returning NULL.
9875         (__nisfind_server): Fix leak when rec_dirsearch returns NULL.
9876
9877         * sysdeps/unix/sysv/linux/sys/inotify.h: Define IN_CLOSE, IN_MOVE,
9878         IN_ONLYDIR, IN_DONT_FOLLOW, and IN_MASK_ADD.
9879
9880 2006-05-17  Jakub Jelinek  <jakub@redhat.com>
9881
9882         * sunrpc/key_call.c (getkeyserv_handle): Call auth_destroy if
9883         pid changed.
9884
9885 2006-05-15  Ulrich Drepper  <drepper@redhat.com>
9886
9887         * include/rpc/pmap_prot.h: Mark all functions as hidden.
9888
9889         * nscd/nscd_initgroups.c: Mark __gr_map_handle as hidden.
9890         * nscd/nscd_getgr_r.c: Likewise.
9891
9892         * include/rpc/pmap_rmt.h: Mark all functions as hidden.
9893
9894         * nscd/nscd_getai.c (__hst_map_handle): Mark as hidden.
9895         * nscd/nscd_gethst_r.c (__hst_map_handle): Likewise.
9896
9897         * stdlib/longlong.h (__clz_tab): Mark as hidden.
9898
9899         * iconv/gconv_int.h: Mark __gconv_lock as hidden.
9900
9901         * include/rpc/key_prot.h: Mark all _internal functions as hidden.
9902
9903         * include/rpc/auth.h: Mark xdr_des_block_internal and
9904         xdr_opaque_auth_internal as hidden.
9905
9906         * sysdeps/unix/sysv/linux/getdents.c: Mark __have_no_getdents64 as
9907         hidden.
9908
9909         * include/rpc/xdr.h: Mark all _internal functions as hidden.
9910
9911         * misc/getusershell.c (okshells): Don't use static initializers,
9912         do it dynamically.
9913
9914         * stdlib/fmtmsg.c (keywords): Change type of len element to
9915         uint32_t to not waste space on 64bit machines.
9916
9917         * locale/setlocale.c: Change _nl_category_names into a string.
9918         Add new _nl_category_name_idxs.  Change all users.
9919         * locale/localeinfo.h: Adjust declaration of _nl_category_names.
9920         Declare _nl_category_name_idxs.
9921         * locale/findlocale.c: Adjust for _nl_category_names change.
9922         * locale/loadlocale.c: Likewise.
9923         * locale/newlocale.c: Likewise.
9924         * intl/dcigettext.c: Likewise.
9925
9926         * iconv/gconv_conf.c (add_alias): Move actual alias handling to...
9927         (add_alias2): ...here.  New function.
9928         (__gconv_read_conf): Simplify builtin alias handling.
9929         (builtin_aliases): Convert to string to avoid relocations.
9930         * iconv/gconv_builtin.h: Add comment about correct formatting.
9931
9932 2006-05-15  Jakub Jelinek  <jakub@redhat.com>
9933
9934         * resolv/res_debug.c (loc_ntoa): Make error const.
9935
9936 2006-05-14  Andreas Schwab  <schwab@suse.de>
9937
9938         * math/complex.h [__LDBL_COMPAT]: Use __REDIRECT_NTH.
9939
9940 2006-05-12  Jakub Jelinek  <jakub@redhat.com>
9941
9942         * sysdeps/unix/sysv/linux/sched_getaffinity.c: Include sys/param.h.
9943         (__sched_getaffinity_new): Don't crash if cpusetsize is smaller than
9944         sizeof (cpu_set_t).
9945
9946 2006-05-11  Ulrich Drepper  <drepper@redhat.com>
9947
9948         * resolv/res_debug.c (loc_ntoa): Define error as array, not pointer.
9949
9950         * include/arpa/nameser.h: Declare _ns_flagdata as hidden.
9951
9952         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_master.
9953         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_master.
9954
9955         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypbind_resp.
9956         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypbind_resp.
9957
9958         * nis/nis_xdr.c: Add libnsl_hidden_def for xdr_cback_data.
9959         * include/rpcsvc/nis_callback.h: Add libnsl_hidden_proto for
9960         xdr_cback_data.
9961
9962         * nis/ypupdate_xdr.c: Add libnsl_hidden_def for xdr_ypupdate_args.
9963         * include/rpcsvc/ypupd.h: Add libnsl_hidden_proto for
9964         xdr_ypupdate_args.
9965
9966         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_order.
9967         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_order.
9968
9969         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_maplist.
9970         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_maplist.
9971
9972         * nis/nis_xdr.c: Add libnsl_hidden_def for xdr_obj_p.
9973         * include/rpcsvc/nis_callback.h: New file.
9974
9975         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_val.
9976         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_val.
9977
9978         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypreq_nokey.
9979         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypreq_nokey.
9980
9981         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypmaplist.
9982         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypmaplist.
9983
9984         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypreq_nokey.
9985         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypreq_nokey.
9986
9987         * nis/ypupdate_xdr.c: Add libnsl_hidden_def for xdr_ypdelete_args.
9988         * include/rpcsvc/ypupd.h: Add libnsl_hidden_proto for
9989         xdr_ypdelete_args.
9990
9991         * nis/nis_xdr.h: Mark all functions as hidden.  Remove
9992         __BEGIN_DECLS and __END_DECLS, the header is not installed.
9993
9994         * nis/nis_error.c: Remove table of strings.  Use position
9995         independent mechanism.
9996         * nis/nis_error.h: New file.
9997
9998 2006-05-11  Jakub Jelinek  <jakub@redhat.com>
9999
10000         * locale/programs/ld-time.c (time_finish): If wide era name or
10001         format aren't provided, set both wname and wformat to L"".
10002
10003 2006-05-10  Ulrich Drepper  <drepper@redhat.com>
10004
10005         * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Only store
10006         results if the call was succesful.
10007
10008         * nis/nss-nis.h: Mark __yperr2nss_tab and __yperr2nss_count as hidden.
10009
10010         * nis/nss-nisplus.h: Mark __niserr2nss_tab and __niserr2nss_count
10011         as hidden.
10012
10013 2006-05-10  Jakub Jelinek  <jakub@redhat.com>
10014
10015         * misc/sys/queue.h: Remove uses of all QUEUEDEBUG_* macros.
10016
10017 2006-05-10  Ulrich Drepper  <drepper@redhat.com>
10018
10019         * posix/wordexp.c (parse_glob): No need to check ifs for NULL, the
10020         caller makes sure this is not the case.
10021         (wordexp): Simplify ifs_white creation.  [Coverity CID 231]
10022
10023 2006-05-09  Ulrich Drepper  <drepper@redhat.com>
10024
10025         * posix/wordexp.c: Remove numerous NULL pointer tests before FREE
10026         calls.
10027
10028         * io/ftw.c (open_dir_stream): Return right away if REALLOC fails.
10029         [Coverity CID 229, 230]
10030
10031         * argp/argp-help.c (hol_entry_help): Handle STATE==NULL in ARG and
10032         DGETTEXT calls.
10033         (hol_help): Likewise.  [Coverity CID 226, 227]
10034
10035         * string/argz-replace.c (__argz_replace): Unconditionally call
10036         free on SRC.  [Coverity CID 225]
10037
10038         * nis/nis_creategroup.c (nis_creategroup): No need to duplicate
10039         the return value of __nis_default_owner and __nis_default_group,
10040         it has been especially allocated.  [Coverity CID 224]
10041
10042         * nis/nis_defaults.c (searchXYX): New functions.  Used by both
10043         searchgroup and searchowner.  Significantly simplified.
10044         (__nis_default_owner): Remove duplication.  Do not locally copy the
10045         string before duplicating it.
10046         (__nis_default_group): Likewise.
10047
10048         * nis/nis_lookup.c (nis_lookup): After calling nis_free_directory,
10049         we must clear the variable before calling __nisfind_server.
10050
10051         * nis/nis_lookup.c (nis_lookup): Always free memory allocated with
10052         nis_getnames.  [Coverity CID 223]
10053
10054         * locale/programs/locfile.c (locfile_read): Use alloca instead of
10055         xmalloc to allocate local repertoire name.  [Coverity CID 222]
10056
10057         * iconv/iconv_charmap.c (use_to_charmap): No need to dynamically
10058         allocate memory for the input to add_bytes.  [Coverity CID 221]
10059
10060         * posix/wordexp.c (w_addword): Free word if realloc fails and it
10061         was allocated here.  [Coverity CID 219, 220]
10062
10063         * posix/getconf.c (print_all): Free confstr data after printing.
10064         [Coverity CID 218]
10065
10066         * sysdeps/posix/getaddrinfo.c (gaih_inet): Free canon string if
10067         list allocation fails.  [Coverity CID 215]
10068
10069         * nss/nsswitch.c (__nss_configure_lookup): Fix loop end condition.
10070         [Coverity CID 213]
10071
10072         * argp/argp-help.c (hol_entry_cmp): Don't call canon_doc_option if
10073         string is NULL.  [Coverity CID 212]
10074         * argp/Makefile: Add rules to build and run bug-argp1.
10075         * argp/bug-argp1.c: New file.
10076
10077         * io/ftw.c (ftw_dir): Use __rawmemchr instead of strchr to find
10078         end of string.
10079         * stdlib/canonicalize.c (__realpath): Likewise.
10080
10081         * locale/programs/ld-time.c (time_finish): Don't dereference NULL
10082         pointer.  [Coverity CID 206]
10083
10084         * elf/dl-dst.h (DL_DST_REQUIRED): Be prepared for missing link map
10085         in statically linked code.
10086         * elf/dl-load.c (_dl_dst_substitute): When replacing ORIGIN in
10087         statically built code, be prepared to have no link map.
10088         [Coverity CID 205]
10089
10090         * argp/argp-help.c (fill_in_uparams): Handle STATE==NULL in
10091         dgettext calls. [Coverity CID 204]
10092
10093         * argp/argp-help.c (struct uparams): Remove valid member.  Change
10094         the one user.
10095         (uparam_names): Reduce size.  Avoid relative relocations.
10096         Moved to read-only segment.
10097         (fill_in_uparams): Update for new layout.
10098
10099         * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs): Parameter can be
10100         assumed to always be != NULL. [Coverity CID 202]
10101
10102         * argp/argp-help.c (hol_entry_help): Remove some dead code
10103         [Coverity CID 200].
10104
10105         * nis/nss_nis/nis-service.c (_nss_nis_getservbyport_r): Optimize
10106         away a few more unconditional yperr2nss calls.
10107         (_nss_nis_getservbyname_r): Likewise.
10108
10109 2006-05-06  Ulrich Drepper  <drepper@redhat.com>
10110
10111         * sysdeps/generic/ldsodefs.h: Remove support for non-core
10112         architectures.
10113
10114         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Make sure
10115         that unused memory passed to sendto is nevertheless initialized.
10116
10117         [BZ #2499]
10118         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Avoid
10119         possibly unaligned memory accesses.
10120
10121         * include/arpa/nameser.h: Also optimize NS_PUT16 and NS_PUT32.
10122         * resolv/res_mkquery.c: Use NS_PUT16 and NS_PUT32 instead of __putshort
10123         and __putlong respectively.  Correct buffer overflow check for
10124         NS_NOTIFY_OP.
10125
10126         * resolv/res_send.c (send_vc): Use ns_put16 instead of putshort.
10127
10128         * resolv/res_send.c (res_queriesmatch): Fix typo in comment.
10129         (send_dg): Rewrite error handling to be more compact and avoid
10130         double recomputation of timeouts.  Pass MSG_NOSIGNAL to send.
10131
10132         * include/arpa/nameser.h: Add optimizations for NS_GET16 and NS_GET32.
10133
10134         * resolv/res_send.c (res_nameinquery): Use NS_GET16 directly
10135         instead of ns_get16.
10136         (res_queriesmatch): Likewise.  Minor optimization.
10137
10138         [BZ #2499]
10139         * resolv/res_query.c (__libc_res_nquery): If answerp != NULL,
10140         __libc_res_nsend might reallocate the buffer for the answer.  In
10141         this case we have to reload the HP pointer.
10142
10143 2006-05-05  Ulrich Drepper  <drepper@redhat.com>
10144
10145         * stdio-common/vfscanf.c (memory_error): Remove definition.  Add
10146         some branch prediction hints.
10147
10148         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Define SPLICE_F_*.
10149         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
10150         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
10151         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
10152         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
10153         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
10154         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
10155         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
10156
10157 2006-05-05  Martin Schwidefsky  <schwidefsky@de.ibm.com>
10158
10159         * sysdeps/s390/s390-32/elf/start.S: Replace pc relative relocation
10160         by a GOT relocation to make Scrt1.o position independent.
10161         * sysdeps/s390/s390-64/elf/start.S: Likewise.
10162
10163         * sysdeps/unix/sysv/linux/s390/s390-32/syscall.S: Add support for
10164         six system call parameters.
10165         * sysdeps/unix/sysv/linux/s390/s390-64/syscall.S: Likewise.
10166
10167 2006-05-05  Ulrich Drepper  <drepper@redhat.com>
10168
10169         * sunrpc/svcauth_des.c (cache_init): Use calloc instead of
10170         malloc&bzero.
10171
10172         * sunrpc/svc_udp.c (BZERO): Remove definition.
10173         (CALLOC): Define.
10174         (svc_enablecache): Use CALLOC instead of ALLOC&BZERO.
10175
10176         * sunrpc/des_impl.c: Remove ALT_ECB support.  We never used it.
10177         (des_SPtrans): Use uint32_t type.
10178         (des_skb): Likewise.
10179
10180         * sunrpc/xdr_ref.c (xdr_reference): Use calloc instead of malloc&bzero.
10181
10182 2006-05-05  Jakub Jelinek  <jakub@redhat.com>
10183
10184         [BZ #2509]
10185         * stdio-common/tst-printf.sh: Adjust for tst-printf.c change even
10186         on 32-bit arches.
10187
10188 2006-05-05  Ulrich Drepper  <drepper@redhat.com>
10189
10190         * locale/programs/ld-address.c (address_finish): Fix one more
10191         place where the iso639 array might be accessed beyond the limits.
10192
10193 2006-05-04  Ulrich Drepper  <drepper@redhat.com>
10194
10195         * nis/nis_table.c (nis_list): Avoid clearing res twice before
10196         filling it for the first time.
10197
10198         * nis/nis_table.c (get_tablepath): Renamed from __get_tablepath.
10199         Adjust all callers.
10200         Free res object content before returning.
10201
10202         * sunrpc/xdr_array.c (xdr_array): Use calloc instead of malloc&bzero.
10203
10204         * sunrpc/key_call.c (__rpc_thread_key_cleanup): Also free
10205         client->cl_auth.
10206
10207         * sunrpc/rpc_thread.c (__rpc_thread_destroy): Don't skip entire
10208         cleanup for initial thread, just the free call on TVP.
10209
10210         * nscd/gai.c (__getline): Define.
10211
10212
10213 See ChangeLog.16 for earlier changes.