(_int_realloc): Likewise. Third argument is now padded size
[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.  Third argument is now padded size
6         All _int_* functions are now static.
7
8         * malloc/hooks.c: Change all callers to _int_free and _int_realloc.
9         * malloc/arena.c: Likewise.
10         * include/malloc.h: Remove now unnecessary declarations of the _int_*
11         functions.
12
13         * sunrpc/rpc_common.c: We cannot move _null_auth into .rodata that
14         easily.
15
16         * malloc/malloc.c: Add branch prediction for use of the hooks.
17
18         * grp/compat-initgroups.c [NOT_IN_libc] (__libc_use_alloca): Define.
19
20 2009-02-06  Ulrich Drepper  <drepper@redhat.com>
21
22         [BZ #7095]
23         * bits/confname.h: Add SUSv7 macros for getconf environments.
24         * bits/environments.h: Likewise.
25         * sysdeps/unix/sysv/linux/i386/bits/environments.h: Likewise.
26         * sysdeps/unix/sysv/linux/powerpc/bits/environments.h: Likewise.
27         * sysdeps/unix/sysv/linux/s390/bits/environments.h: Likewise.
28         * sysdeps/unix/sysv/linux/sparc/bits/environments.h: Likewise.
29         * sysdeps/unix/sysv/linux/x86_64/bits/environments.h: Likewise.
30         * posix/confstr.c: Handle SUSv5 and SUSv7 environments.
31         * posix/getconf.c: Likewise.
32         * posix/sysconf.c: Likewise.
33         * sysdeps/posix/sysconf.c: Likewise.
34         * posix/Makefile (getconf.speclist): Also collect SUSv5 and SUSv7
35         environments.
36
37 2009-01-16  Petr Baudis  <pasky@suse.cz>
38
39         [BZ #9753]
40         * resolv/res_libc.c (__res_maybe_init): Call __res_vinit()
41         even if we currently have zero nscount.
42
43 2009-02-06  Ulrich Drepper  <drepper@redhat.com>
44
45         [BZ #9781]
46         * grp/compat-initgroups.c (compat_call): Switch to use malloc when
47         the input line is too long.
48
49         * po/Makefile (libc.pot): Add f_print as function taking c-format
50         parameter.
51
52         * debug/xtrace.sh: Unify translatable messages.
53         * elf/ldd.bash.in: Likewise.
54         * elf/sprof.c: Likewise.
55         * locale/programs/locale.c: Likewise.
56         * malloc/memusage.sh: Likewise.
57         * nss/getent.c: Likewise.
58
59 2009-02-06  Joseph Myers  <joseph@codesourcery.com>
60
61         * debug/pcprofiledump.c (print_version,
62         argp_program_version_hook): New function.
63         * elf/ldconfig.c (more_help): New function.
64         (argp): Use it.
65         * elf/sln.c (usage): New function.
66         (main): Support --help and --version.
67         * malloc/memusagestat.c (print_version): New function.
68         (argp_program_version_hook): New variable.
69         * nscd/nscd.c (more_help): New function.
70         (argp): Use it.
71         * posix/getconf.c (main): Send --version output to stdout.
72         Support --help.
73         * sunrpc/rpc_main.c (usage, options_usage): Take STREAM and STATUS
74         arguments.  All callers changed.
75         (print_version): New function.
76         (parseargs): Support --help and --version.
77         * sunrpc/rpcinfo.c (usage): Take STREAM argument.  All callers
78         changed.
79         (print_version): New function.
80         (main): Use getopt_long.  Support --help and --version.
81         * sysdeps/unix/sysv/linux/lddlibc4.c (main): Support --help and
82         --version.
83
84 2009-02-06  Ulrich Drepper  <drepper@redhat.com>
85
86         * malloc/memusage.c (DEFAULT_BUFFER_SIZE): Change to 32768.
87         (update_data): Fix handling of wrapping back
88         to the beginning of the buffer.
89
90         [BZ #9823]
91         * stdio-common/psignal.c (psignal): Fix test for empty string.
92
93 2009-02-05  Ulrich Drepper  <drepper@redhat.com>
94
95         * include/rpc/auth.h: Use libc_hidden_proto for _null_auth.
96         * sunrpc/rpc_common.c: Add libc_hidden_def for _null_auth.  Also
97         move _null_auth to .rodata.
98
99         * time/tzset.c (__tzset_parse_tz): DST offset must also allow hour
100         value of 24.
101
102         * intl/dcigettext.c (DCIGETTEXT): Avoid some code duplication.
103
104         * sysdeps/unix/opendir.c (__alloc_dir): We have a lot more memory
105         today than when the original code was written.  Use larger
106         buffers.  This also makes it unnecessary to have stat information,
107         if this causes extra efforts.
108         (__opendir): In case O_DIRECTORY works, don't call fstat just for
109         __alloc_dir.
110
111 2009-02-03  Andrew Stubbs  <ams@codesourcery.com>
112
113         * sysdeps/sh/sh4/dl-trampoline.S: Only set HAVE_FPU if __SH_FPU_ANY__
114         is set.
115         * sysdeps/sh/sh4/setjmp.S: Support SH4-NOFPU.
116         * sysdeps/sh/sh4/__longjmp.S: Likewise.
117         * sysdeps/unix/sysv/linux/sh/sh4/getcontext.S: Likewise.
118         * sysdeps/unix/sysv/linux/sh/sh4/setcontext.S: Likewise.
119         * sysdeps/unix/sysv/linux/sh/sh4/swapcontext.S: Likewise.
120         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Likewise.
121
122 2009-02-04  Ulrich Drepper  <drepper@redhat.com>
123
124         * po/ru.po: Update from translation team.
125
126 2008-11-17  Nathan Sidwell  <nathan@codesourcery.com>
127
128         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (struct sigevent):
129         Add _tid slot to maintain consistency with kernel.
130
131 2009-02-04  Ulrich Drepper  <drepper@redhat.com>
132
133         * libio/wfileops.c (_IO_wfile_underflow): Fix handling of
134         incomplete characters at end of input buffer.
135         * libio/Makefile (tests): Add tst-fgetwc.
136         * libio/tst-fgetwc.c: New file.
137         * libio/tst-fgetwc.input: New file.
138
139 2009-02-02  Andrew Stubbs  <ams@codesourcery.com>
140
141         * sysdeps/unix/sysv/linux/sh/Makefile (libm.so-no-z-defs): Define.
142
143 2009-02-02  Ulrich Drepper  <drepper@redhat.com>
144
145         [BZ #9793]
146         * iconv/gconv_trans.c (__gconv_transliterate): Don't change
147         *OUTBUFSTART unless the whole output fit into the buffer.
148         * iconv/Makefile (tests): Add tst-iconv4.
149         * iconv/tst-iconv4.c: New file.
150
151 2009-02-01  Ulrich Drepper  <drepper@redhat.com>
152
153         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Add new descriptors.
154         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
155
156 2009-01-29  Andrew Stubbs  <ams@codesourcery.com>
157
158         * elf/Makefile (ld.so): Adjust the sed script to insert _begin in to
159         newer linker scripts.
160
161 2009-01-30  Ulrich Drepper  <drepper@redhat.com>
162
163         [BZ #7040]
164         * sysdeps/unix/sysv/linux/sys/inotify.h: Second parameter of
165         inotify_rm_watch should have type int.
166
167 2009-01-06  Steven Munroe  <sjmunroe@us.ibm.com>
168
169         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp):
170         Make aligned_restore_vmx a local symbol.
171         * sysdeps/powerpc/powerpc64/__longjmp-common.S (__longjmp):
172         Likewise.
173
174 2009-01-30  Andreas Jaeger  <aj@suse.de>
175
176         * sysdeps/unix/sysv/linux/bits/shm.h (SHM_EXEC): Define.
177         * sysdeps/unix/sysv/linux/ia64/bits/shm.h (SHM_EXEC): Define.
178         * sysdeps/unix/sysv/linux/powerpc/bits/shm.h (SHM_EXEC): Define.
179         * sysdeps/unix/sysv/linux/s390/bits/shm.h (SHM_EXEC): Define.
180         * sysdeps/unix/sysv/linux/sh/bits/shm.h (SHM_EXEC): Define.
181         * sysdeps/unix/sysv/linux/sparc/bits/shm.h (SHM_EXEC): Define.
182         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h (SHM_EXEC): Define.
183
184 2009-01-11  Ryan S. Arnold  <rsa@us.ibm.com>
185
186         [BZ #9726]
187         * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (_SET_DI_FPSCR,
188         _SET_SI_FPSCR): Clobber fp0 to prevent erroneous test-case passes.
189
190 2009-01-08  Ryan S. Arnold  <rsa@us.ibm.com>
191
192         [BZ #9726]
193         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S
194         (__CONTEXT_FUNC_NAME): Fix mtfsf to use fp31 instead of fp0.
195         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S
196         (__CONTEXT_FUNC_NAME): Fix mtfsf to use fp31 instead of fp0.
197
198 2009-01-11  Thomas Schwinge  <tschwinge@gnu.org>
199
200         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Use
201         memcpy instead of memcmp.
202         (_dl_setup_pointer_guard): Likewise.
203
204 2009-01-30  Ulrich Drepper  <drepper@redhat.com>
205
206         * malloc/malloc.c (sYSMALLOc): Don't use assert when detecting
207         manipulated brk, use malloc_printerr.
208         * misc/sbrk.c (__sbrk): Better error handling for nonsense
209         requests.
210
211 2009-01-30  Jakub Jelinek  <jakub@redhat.com>
212
213         * string/string.h (memchr, strchr, strrchr, strpbrk, strstr, index,
214         rindex): For C++ add inlines so that they can be recognized as
215         builtins.
216         * string/strings.h: Define correct C++ prototypes for gcc 4.4.
217
218 2009-01-29  Ulrich Drepper  <drepper@redhat.com>
219             Jakub Jelinek  <jakub@redhat.com>
220
221         * string/string.h: Define correct C++ prototypes for gcc 4.4.
222         * wcsmbs/wchar.h: Likewise.
223
224 2009-01-29  Ulrich Drepper  <drepper@redhat.com>
225
226         * sysdeps/i386/stackinfo.h (stackinfo_get_sp): Define.
227         (stackinfo_sub_sp): Define.
228
229 2009-01-28  Ulrich Drepper  <drepper@redhat.com>
230
231         [BZ #9750]
232         * nscd/mem.c (gc): Use alloca_count to get the real stack usage.
233         * include/alloca.h (alloca_account): Define.
234         * sysdeps/x86_64/stackinfo.h (stackinfo_get_sp): Define.
235         (stackinfo_sub_sp): Define.
236
237         * nscd/connections.c (nscd_init): If database file access fails
238         check whether this is due to permission problems and bail in that
239         case.
240
241         [BZ #9741]
242         * nscd/mem.c (gc): Fix assignment of he_data in case malloc is used.
243         Reported by Jun'ichi Nomura <j-nomura@ce.jp.nec.com>.
244
245 2009-01-14  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
246
247         * sysdeps/unix/sysv/linux/sh/sysdep.h (INTERNAL_SYSCALL):
248         Add "t" to clobber list.
249         (INTERNAL_SYSCALL_NCS): Likewise.
250
251 2009-01-28  Ulrich Drepper  <drepper@redhat.com>
252
253         * nss/getent.c (print_networks): Don't print comma between aliases.
254
255 2009-01-23  Ulrich Drepper  <drepper@redhat.com>
256
257         * sysdeps/unix/sysv/linux/tst-clone.c (do_test): Avoid warning.
258
259         * misc/hsearch_r.c (hcreate_r): We need at least three elements in
260         the hash table.
261         * misc/Makefile (tests): Add bug-hsearch1.
262         * misc/bug-hsearch1.c: New file.
263
264 2009-01-22  Roland McGrath  <roland@redhat.com>
265
266         * Makeconfig (%.v.i): Strip trailing # comments,
267         not only whole-line comments.
268
269 2009-01-10  Ulrich Drepper  <drepper@redhat.com>
270
271         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Take
272         one parameter.  If non-NULL use it to initialize return value.
273         (_dl_setup_pointer_guard): New function.
274         * sysdeps/unix/sysv/linux/dl-osinfo.h: Likewise.
275         * sysdeps/generic/ldsodefs.h: Declare _dl_random.
276         * elf/rtld.c (security_init): Pass _dl_random to
277         _dl_setup_stack_chk_guard.  Call _dl_setup_pointer_guard to initialize
278         pointer_chk_guard.
279         * elf/dl-sysdep.c (_dl_random): New variable.
280         (_dl_sysdep_start): Handle AT_RANDOM.
281         (_dl_show_auxv): Likewise.
282         * elf/dl-support.c (_dl_random): New variable.
283         (_dl_aux_init): Handle AT_RANDOM.
284         * csu/libc-start.c [!SHARED] (libc_start_main): Pass _dl_random
285         to _dl_setup_stack_chk_guard.
286
287         * elf/elf.h (AT_RANDOM): Define AT_BASE_PLATFORM and AT_RANDOM.
288
289 2009-01-10  Roland McGrath  <roland@redhat.com>
290
291         * nscd/nscd.c (parse_opt): Use argp_error for bad -i argument.
292
293 2009-01-08  Ulrich Drepper  <drepper@redhat.com>
294
295         * sysdeps/i386/fpu/libm-test-ulps: Adjust expm1 errors.
296
297         [BZ #9706]
298         * nss/nss_files/files-parse.c (strtou32): New function.
299         (INT_FIELD): Use strotu32 instead of strtoul to unify behavior
300         across 32-bit and 64-bit platforms.
301         (INT_FIELD_MAYBE_NULL): Likewise.
302
303 2009-01-08  Jakub Jelinek  <jakub@redhat.com>
304
305         [BZ #9720]
306         * sysdeps/unix/sysv/linux/bits/resource.h (enum __rusage_who): Avoid
307         comma after RUSAGE_CHILDREN if not -D_GNU_SOURCE.
308         * sysdeps/unix/sysv/linux/sparc/bits/resource.h (enum __rusage_who):
309         Likewise.
310
311 2009-01-05  Paolo Bonzini  <bonzini@gnu.org>
312
313         [BZ #697]
314         * posix/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
315         being NULL also if there are no backreferences.
316         * posix/rxspencer/tests: Add testcases.
317
318 2009-01-04  Paolo Bonzini  <bonzini@gnu.org>
319
320         [BZ #9697]
321         * posix/bug-regex17.c: Add testcases.
322         * posix/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
323         handling.
324
325 2009-01-05  Martin Schwidefsky  <schwidefsky@de.ibm.com>
326
327         * sysdeps/unix/sysv/linux/s390/bits/libc-vdso.h: New file.
328         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: New file.
329         * sysdeps/unix/sysv/linux/s390/init-first.c: New file.
330         * sysdeps/unix/sysv/linux/s390/Makefile (sysdep_routines): Add dl-vdso
331         for elf subdir.
332         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (INLINE_VSYSCALL,
333         INTERNAL_VSYSCALL, INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK,
334         INTERNAL_SYSCALL_NCS, HAVE_CLOCK_GETRES_VSYSCALL and
335         HAVE_CLOCK_GETTIME_VSYSCALL: Define.
336         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
337         * sysdeps/unix/sysv/linux/s390/Versions: New file.
338
339 2008-12-31  Paolo Bonzini  <bonzini@gnu.org>
340
341         * posix/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
342         * posix/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
343         re_string_skip_chars, re_string_reconstruct): Likewise.
344         * posix/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
345
346 2008-12-31  Rafael Avila de Espindola  <espindola@google.com>
347
348         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr2_r): Check and
349         adjust the buffer alignment.
350
351 2009-01-07  Samuel Thibault  <samuel.thibault@ens-lyon.org>
352
353         * sysdeps/mach/hurd/Makefile (sysdep_headers) [subdir=socket]:
354         Add net/ethernet.h net/if_arp.h net/if_ether.h net/if_ppp.h
355         net/route.h.
356
357         * hurd/report-wait.c (describe_number): Use __stpcpy to prepend
358         flavor to description only when flavor is not NULL.
359
360         * hurd/hurdsig.c (signal_allowed): Unlock _hurd_dtable_lock
361         mutex after SIGIO/SIGURG lookup loop.
362
363 2009-01-03  Samuel Thibault  <samuel.thibault@ens-lyon.org>
364
365         * bits/resource.h (PRIO_PROCESS, PRIO_PGRP, PRIO_USER): Add macros.
366
367 2009-01-03  Ulrich Drepper  <drepper@redhat.com>
368
369         * sysdeps/unix/sysv/linux/i386/sysdep.h: Describe 6th argument
370         handling.
371
372 2009-01-02  Ulrich Drepper  <drepper@redhat.com>
373
374         * sysdeps/unix/sysv/linux/kernel-features.h
375         (__ASSUME_FUTEX_CLOCK_REALTIME): Define.
376
377         * wcsmbs/wcsnrtombs.c (__wcsnrtombs): Create temporary state object
378         if no output is written.
379
380         * version.h: Bump to 2.10 development.
381
382         * posix/getconf.c: Update copyright year.
383         * nss/getent.c: Likewise.
384         * iconv/iconvconfig.c: Likewise.
385         * iconv/iconv_prog.c: Likewise.
386         * elf/ldconfig.c: Likewise.
387         * catgets/gencat.c: Likewise.
388         * csu/version.c: Likewise.
389         * elf/ldd.bash.in: Likewise.
390         * elf/sprof.c (print_version): Likewise.
391         * locale/programs/locale.c: Likewise.
392         * locale/programs/localedef.c: Likewise.
393         * nscd/nscd.c (print_version): Likewise.
394         * debug/xtrace.sh: Likewise.
395         * malloc/memusage.sh: Likewise.
396         * malloc/mtrace.pl: Likewise.
397         * debug/catchsegv.sh: Likewise.
398
399 2008-12-29  Mike Frysinger  <vapier@gentoo.org>
400
401         * iconvdata/Makefile (iconv-rules): Use LC_ALL=C when running awk
402         script.
403
404 2008-12-29  Ulrich Drepper  <drepper@redhat.com>
405
406         * sysdeps/posix/getaddrinfo.c (gaih_inet): When the
407         gethostbyname4_r function call succeeded, just leave the loop.
408
409         [BZ #9694]
410         * wcsmbs/wchar.h: Move undefs for local __need_* constants to the
411         very end.
412         * wctype/wctype.h: Get wint_t definition directly from <stddef.h>.
413         * wctype/Makefile (tests): Add bug-wctypeh.
414         * wctype/bug-wctypeh.c: New file.
415
416         * nscd/nscd_gethst_r.c (nscd_gethst_r): Don't use nscd if
417         LOCALDOMAIN is defined.
418         * nscd/nscd_getai.c (__nscd_getai): Likewise.
419
420         * sysdeps/x86_64/bits/select.h: New file.
421
422         * resolv/res_init.c (__res_vinit): Count all servers in statp->nscount.
423
424 2008-12-21  Bruno Haible  <bruno@clisp.org>
425
426         [BZ #9677]
427         * wcsmbs/mbsnrtowcs.c (__mbsnrtowcs): Create temporary state object
428         if no output is written.
429
430 2008-12-13  Klaus Dittrich  <kladit@arcor.de>
431
432         * login/utmp_file.c (pututline_file): Replace call to dup2 with
433         libc internal symbol __dup2 to avoid access through the PLT.
434
435 2008-12-08  Ulrich Drepper  <drepper@redhat.com>
436
437         [BZ #6545]
438         * sysdeps/unix/sysv/linux/bits/socket.h (SCM_CREDENTIALS): Make
439         available only for __USE_GNU.
440
441         * inet/Makefile (tests): Add tst-getni2.
442         * inet/tst-getni2.c: New file.
443
444         [BZ #7080]
445         * inet/getnameinfo.c (getnameinfo): Check for output buffers being
446         NULL when NI_NAMEREQD is set.
447         Patch mostly by Yang Hongyang <yanghy@cn.fujitsu.com>.
448         * inet/Makefile (tests): Add tst-getni1.
449         * inet/tst-getni1.c: New file.
450
451 2008-12-03  Petr Baudis  <pasky@suse.cz>
452
453         [BZ #7067]
454         * nscd/connections.c (invalidate_cache): Use prune_run_lock
455         instead of prune_lock.
456         (nscd_run_prune): Before calling prune_cache, take prune_run_lock.
457         * nscd/nscd.h (database_dyn): Add prune_run_cache.
458
459 2008-12-07  Ulrich Drepper  <drepper@redhat.com>
460
461         * resolv/res_send.c (send_dg): Use correct guards for SOCK_CLOEXEC
462         use.
463
464         * sysdeps/unix/sysv/linux/kernel-features.h: Fix typo in accept4
465         handling.
466
467         * resolv/res_init.c (__res_vinit): Always assign to statp->nscount
468         after reading name server list.
469
470         [BZ #7058]
471         * nis/nss_nis/nis-hosts.c (_nss_nis_gethostbyname4_r): Fix memory
472         handling for host name aliases.
473
474 2008-11-24  Arkadiusz MiÅ›kiewicz  <arekm@maven.pl>
475
476         * sysdeps/i386/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Use LOAD_PIC_REG
477         instead of doing things manually.
478
479 2008-11-26  Chris Steel  <chris.steel.lnx@googlemail.com>
480
481         * posix/regex_internal.h (build_wcs_upper_buffer):
482         Return type is reg_error_t.
483
484 2008-12-05  Ulrich Drepper  <drepper@redhat.com>
485
486         * posix/globtest.sh: Use mktemp to create temporary file and
487         directory.
488
489         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_SET_S): Handle large
490         sets correctly.
491         (__CPU_CLR_S): Likewise.
492         (__CPU_ISSET_S): Likewise.
493
494 2008-12-05  Joseph Myers  <joseph@codesourcery.com>
495             Ulrich Drepper  <drepper@redhat.com>
496
497         * scripts/firstversion.awk: Use custom comparison function to compare
498         version numbers.
499         * scripts/versions.awk: Use sort invocation which can handle
500         multi-digit sub-version numbers.
501
502 2008-12-04  Ulrich Drepper  <drepper@redhat.com>
503
504         * locale/programs/ld-address.c (DEFINE_LANGUAGE_CODE2): Define.
505         * locale/iso-639.def: Add Chhattisgarhi entry.
506
507 2008-12-02  Ulrich Drepper  <drepper@redhat.com>
508
509         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname3_r): Recognize
510         ESRCH return value.
511         (_nss_dns_gethostbyname4_r): Likewise.
512         * resolv/res_init.c (__res_vinit): Initialize nscount to zero.
513         * sysdeps/posix/getaddrinfo.c (gaih_inet): In case we use
514         gethostbyname4_r, we don't have a separate IPv6 status, so copy
515         the no_data variable.
516
517         * resolv/res_init.c (__res_vinit): Fill in IPv4 name server
518         information at the correct index.
519
520         * socket/sys/socket.h: Declare accept4.
521         * socket/accept4.c: New file.
522         * sysdeps/unix/sysv/linux/accept4.c: New file.
523         * sysdeps/unix/sysv/linux/i386/accept4.S: New file.
524         * socket/Makefile (routines): Add accept4.
525         * socket/Versions: Export accept4 with version GLIBC_2.10.
526         * socket/paccept.c: Removed.
527         * sysdeps/unix/sysv/linux/paccept.c: Removed.
528         * sysdeps/unix/sysv/linux/i386/paccept.S: Removed.
529         * Versions.def: Define GLIBC_2.10 for libc.
530         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_ACCEPT4.
531
532         * nscd/connections.c: Use accept4.
533
534         * sysdeps/unix/sysv/linux/i386/socket.S: Fix comment.
535
536 2008-12-01  Ulrich Drepper  <drepper@redhat.com>
537
538         * resolv/res_send.c (send_dg): Create sockets with non-blocking
539         flag already set.
540
541         * stdlib/setenv.c (unsetenv): Don't search environment if it does
542         not exist.
543         * stdlib/Makefile (tests): Add tst-unsetenv1.
544         * stdlib/tst-unsetenv1.c: New file.
545
546 2008-11-29  Ulrich Drepper  <drepper@redhat.com>
547
548         * login/utmp_file.c (file_writable): New variable.
549         (setutent_file): Don't try to open file for writing.
550         (pututline_file): Before writing, make descriptor writable if
551         necessary.
552
553 2008-11-26  Ulrich Drepper  <drepper@redhat.com>
554
555         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Only restrict search
556         to IPv4 or IPv6 if an interface has been found.
557
558 2008-11-26  Roland McGrath  <roland@redhat.com>
559
560         * sysdeps/unix/sysv/linux/alpha/ipc_priv.h: Renamed to ...
561         * sysdeps/unix/sysv/linux/powerpc/ipc_priv.h: ... here.
562
563         * sysdeps/unix/sysv/linux/alpha/wordexp.c: Renamed to ...
564         * sysdeps/unix/sysv/linux/ia64/wordexp.c: ... here.
565         * sysdeps/unix/sysv/linux/sparc/sparc64/wordexp.c: Change #include.
566
567         * elf/elf.h (NT_386_IOPERM): New macro.
568         (NT_PPC_VSX): New macro.
569
570 2008-11-25  Roland McGrath  <roland@redhat.com>
571
572         * sysdeps/alpha, sysdeps/unix/bsd/osf/alpha,
573         sysdeps/unix/bsd/Attic/osf1/alpha, sysdeps/unix/sysv/linux/alpha,
574         sysdeps/unix/sysv/linux/alpha/alpha, sysdeps/unix/alpha,
575         sysdeps/mach/alpha, sysdeps/mach/hurd/alpha:
576         Subdirectories moved to ports repository.
577         * configure.in (base_machine): Remove alpha case.
578
579 2008-11-25  Thomas Schwinge  <tschwinge@gnu.org>
580
581         * sysdeps/mach/strerror_l.c: New file.
582
583 2008-11-13  Ryan S. Arnold  <rsa@us.ibm.com>
584
585         [BZ #6411]
586         * sysdeps/powerpc/fpu/Makefile: Added test case tst-setcontext-fpscr.
587         * sysdeps/powerpc/fpu/feholdexcpt.c (_FPU_MASK_ALL): Define to replace
588         magic numbers.
589         * sysdeps/powerpc/fpu/fenv_libc.h (fesetenv_register): Dynamically
590         choose mtfsf insn based on PPC_FEATURE_HAS_DFP.
591         (relax_fenv_state): Same as above.
592         (FPSCR_29): Reserve bit in ISA 2.05.
593         (FPSCR_NI): Provide define for compat.
594         * sysdeps/powerpc/fpu/fesetenv.c (_FPU_MASK_ALL): Define to replace
595         magic numbers.
596         * sysdeps/powerpc/fpu/feupdateenv.c (_FPU_MASK_ALL): Define to replace
597         magic numbers.
598         * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c: New file.  Test case to
599         test setcontext and swapcontext with dynamic 64-bit FPSCR detection.
600         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp): Adjust
601         access to hwcap to account for hwcap size increase to uint64_t.
602         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S (__sigsetjmp ):
603         Likewise.
604         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S
605         (*setcontext): Likewise.
606         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/setcontext.S:
607         New file.
608         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/swapcontext.S:
609         New file.
610         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S
611         (*setcontext): dynamically select mtfsf insn based on
612         PPC_FEATURE_HAS_DFP. Adjust access to hwcap to account for hwcap size
613         increase to uint64_t.
614         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S
615         (*swapcontext): dynamically select mtfsf insn based on
616         PPC_FEATURE_HAS_DFP.  Adjust access to hwcap to account for hwcap size
617         increase to uint64_t.
618         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/setcontext.S:
619         New file.
620         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/swapcontext.S:
621         New file.
622         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
623         (*setcontext): dynamically select mtfsf insn based on
624         PPC_FEATURE_HAS_DFP.
625         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
626         (*swapcontext): dynamically select mtfsf insn based on
627         PPC_FEATURE_HAS_DFP.
628
629 2008-11-13  Ulrich Drepper  <drepper@redhat.com>
630
631         * version.h: Bump for 2.9 release.
632         * include/features.h (__GLIBC_MINOR__): Bump to 9.
633
634         [BZ #7029]
635         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_ALLOC_SIZE):
636         Multiply with sizeof of __cpu_mask, not 8 unconditionally after
637         all the rounding.
638
639 2008-11-11  Ulrich Drepper  <drepper@redhat.com>
640
641         [BZ #7009]
642         * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): Don't abort for
643         unknown request types for now.
644
645 2008-11-11  Roland McGrath  <roland@redhat.com>
646
647         * sysdeps/x86_64/configure: New file.
648
649         * configure.in: Add AC_SUBST(libc_cv_cpp_asm_debuginfo).
650         * configure: Regenerated.
651
652 2008-11-03  Martin Schwidefsky  <schwidefsky@de.ibm.com>
653
654         * sysdeps/s390/s390-64/dl-trampoline.S (_dl_runtime_profile): Use the
655         correct instruction to remove the stack frame.
656
657 2008-11-03  Michael Matz  <matz@suse.de>
658
659         * sysdeps/s390/bits/atomic.h (__arch_compare_and_exchange_val_32_acq,
660         __arch_compare_and_exchange_val_64_acq): Add "memory" clobber.
661
662 2008-11-07  Jakub Jelinek  <jakub@redhat.com>
663
664         * include/stdio.h (__builtin_fwrite, __builtin_fwrite_unlocked):
665         Remove.
666
667         * bits/libc-tsd.h (__libc_tsd_define, __libc_tsd_address,
668         __libc_tsd_get, __libc_tsd_set): Add TYPE argument, use it as the type
669         of the thread variable instead of void *.
670         * sysdeps/mach/hurd/bits/libc-tsd.h (__libc_tsd_define,
671         __libc_tsd_address, __libc_tsd_get, __libc_tsd_set): Likewise.
672         * include/ctype.h (CTYPE_B, CTYPE_TOUPPER, CTYPE_TOLOWER): Adjust
673         __libc_tsd_define arguments.
674         (__ctype_b_loc, __ctype_toupper_loc, __ctype_tolower_loc): Adjust
675         __libc_tsd_address arguments.  Remove union hack.
676         * include/rpc/rpc.h (RPC_VARS): Adjust __libc_tsd_define arguments.
677         * sunrpc/rpc_thread.c (RPC_VARS): Likewise.
678         (__rpc_thread_destroy, rpc_thread_multi, __rpc_thread_variables):
679         Adjust __libc_tsd_{set,get} arguments.
680         * ctype/ctype-info.c (CTYPE_B, CTYPE_TOUPPER, CTYPE_TOLOWER): Adjust
681         __libc_tsd_define arguments.
682         * locale/uselocale.c (__uselocale): Adjust __libc_tsd_{set,get}
683         arguments.
684         * locale/lc-ctype.c (_nl_postload_ctype): Likewise.
685         * locale/global-locale.c (__libc_tsd_LOCALE): Adjust type.
686         (LOCALE): Adjust __libc_tsd_define arguments.
687         * locale/localeinfo.h (_NL_CURRENT_LOCALE): Adjust __libc_tsd_get
688         arguments.
689         (LOCALE): Adjust __libc_tsd_define arguments.
690         * sysdeps/mach/hurd/malloc-machine.h (MALLOC): Adjust __libc_tsd_define
691         arguments.
692         (tsd_setspecific, tsd_getspecific): Adjust __libc_tsd_{set,get}
693         arguments.
694
695 2008-11-02  Ulrich Drepper  <drepper@redhat.com>
696
697         * malloc/malloc.c (public_rEALLOc): When new arena is used, copy
698         really all bytes.  Patch by Denys Vlasenko <dvlasenk@redhat.com>.
699
700 2008-11-01  Ulrich Drepper  <drepper@redhat.com>
701
702         [BZ #6966]
703         * misc/hsearch_r.c (hsearch_r): Fix secondary hash function.
704
705 2008-10-24  Joseph Myers  <joseph@codesourcery.com>
706             Ulrich Drepper  <drepper@redhat.com>
707
708         * math/tgmath.h (__floating_type): Use __builtin_classify_type in
709         definition for GCC 3.1 and later.
710
711 2008-10-31  Jakub Jelinek  <jakub@redhat.com>
712
713         * elf/dl-tls.c (__tls_get_addr): After calling _dl_update_slotinfo
714         refetch dtv, as it might have changed.
715         * elf/Makefile: Add rules to build and run tst-tls18.
716         * elf/tst-tls18.c: New test.
717         * elf/tst-tlsmod18a.c: New file.
718
719 2008-09-09  Aurelien Jarno  <aurelien@aurel32.net>
720
721         [BZ #6875]
722         * iconvdata/gconv-modules: Add LATIN9 as an alias to ISO-8859-15.
723
724 2008-10-31  Ulrich Drepper  <drepper@redhat.com>
725
726         [BZ #6867]
727         * sysdeps/powerpc/elf/rtld-global-offsets.sym: Fix typo.
728
729         [BZ #6919]
730         * posix/spawnattr_getschedparam.c (posix_spawnattr_getschedparam):
731         Fix length of copy operation.
732
733 2008-10-02  Pierre Habouzit <madcoder@debian.org>
734
735         * sysdeps/unix/sysv/linux/eventfd.c (eventfd): Use the eventfd2 syscall
736         and fix its calling convention.
737
738 2008-10-07  Andreas Schwab  <schwab@suse.de>
739
740         [BZ #6942]
741         * resolv/res_send.c (send_vc): Fix last change.
742         (send_dg): Align here as well.
743
744 2008-10-31  Ulrich Drepper  <drepper@redhat.com>
745
746         * sysdeps/unix/sysv/linux/ulimit.c (__ulimit): Handle UL_GETFSIZE
747         return value in case rlimit is RLIM_INFINITY.
748
749         [BZ #6947]
750         * sysdeps/unix/sysv/linux/ulimit.c (__ulimit): Fix return value
751         for UL_SETFSIZE.
752         * resource/Makefile (tests): Add bug-ulimit1.
753         * resource/bug-ulimit1.c: New file.
754
755         [BZ #6974]
756         * sunrpc/rpc_main.c (mkfile_output): Properly handle filename
757         without dot.  Properly terminate the string with a null byte.
758         Based on a patch by Aurelien Jarno <aurelien@aurel32.net>.
759
760         [BZ #6980]
761         * debug/getgroups_chk.c (__getgroups_chk): Return EINVAL error for
762         negative sizees.
763         * posix/bits/unistd.h (getgroups): Call __getgroups_chk for
764         negative __size.
765
766         [BZ #6995]
767         * sysdeps/powerpc/powerpc32/dl-machine.c: Fix typo in message.
768
769 2008-10-30  Ulrich Drepper  <drepper@redhat.com>
770
771         * grp/initgroups.c (internal_getgrouplist): Don't prematurely
772         abort if there is no initgroups_dyn function.
773
774         * resolv/res_send.c (send_dg): On timeout, only return nonzero
775         result if any of the queries really provided an answer.
776
777 2008-10-28  Ulrich Drepper  <drepper@redhat.com>
778
779         * po/lt.po: Update from translation team.
780
781 2008-10-26  Ulrich Drepper  <drepper@redhat.com>
782
783         * po/id.po: Update from translation team.
784
785 2008-10-24  Ulrich Drepper  <drepper@redhat.com>
786
787         * resolv/res_query.c (__libc_res_nquery): Add a few casts.
788         Fix tests for existence of second reply.
789
790 2008-10-23  Ulrich Drepper  <drepper@redhat.com>
791
792         * po/id.po: New file.
793         Contributed by the Indonesian translation team.
794
795 2008-10-22  Dmitry V. Levin  <ldv@altlinux.org>
796
797         * misc/syslog.c (openlog_internal): Fix __have_sock_cloexec
798         initialization.
799
800 2008-10-17  Jakub Jelinek  <jakub@redhat.com>
801
802         * elf/Makefile: Add rules to build and run tst-tls17.
803         * elf/tst-tls17.c: New test.
804         * elf/tst-tlsmod17a.c: New file.
805         * elf/tst-tlsmod17b.c: Likewise.
806
807 2008-10-17  Ulrich Drepper  <drepper@redhat.com>
808
809         * stdlib/divmod_1.c: Use correct type for dummy variable.
810         * stdlib/mod_1.c: Likewise.
811
812 2008-10-16  Ulrich Drepper  <drepper@redhat.com>
813
814         * elf/dl-tls.c (_dl_update_slotinfo): Copy all of the initial DTV.
815
816 2008-10-16  Jakub Jelinek  <jakub@redhat.com>
817
818         * sysdeps/unix/sysv/linux/sys/signalfd.h (signalfd): Fix __THROW vs.
819         __nonnull order for C++.
820         * sysdeps/unix/sysv/linux/alpha/sys/signalfd.h (signalfd): Likewise.
821         * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h (signalfd): Likewise.
822
823 2008-10-01  Daniel Jacobowitz  <dan@codesourcery.com>
824
825         * stdlib/longlong.h: Update from GCC.
826
827 2008-10-09  Jakub Jelinek <jakub@redhat.com>
828             David S. Miller  <davem@davemloft.net>
829
830         * sysdeps/sparc/sparc64/sparcv9v/memcpy.S: When not USE_BPR,
831         make sure any registers used with 64-bit 'branch-on-register'
832         instructions have their top 32-bits clear.
833         * sysdeps/sparc/sparc64/sparcv9v/memset.S: Likewise.
834         * sysdeps/sparc/sparc64/sparcv9v2/memcpy.S: Likewise.
835
836 2008-09-18  Andreas Schwab  <schwab@suse.de>
837
838         [BZ #6942]
839         * resolv/res_send.c (send_vc): Fix use of unaligned address.
840         Properly handle partial reads.
841
842 2008-10-01  Mark Shinwell  <shinwell@codesourcery.com>
843
844         * elf/elf.h (STO_MIPS_PLT): New.
845         (R_MIPS_COPY): New.
846         (R_MIPS_JUMP_SLOT): New.
847         (R_MIPS_NUM): Redefine to 128.
848         (DT_MIPS_PLTGOT): New.
849         (DT_MIPS_RWPLT): New.
850         (DT_MIPS_NUM): Redefine to 0x35.
851
852 2008-10-01  Ulrich Drepper  <drepper@redhat.com>
853
854         * timezone/africa: Update from tzdata2008f.
855         * timezone/asia: Likewise.
856         * timezone/australasia: Likewise.
857         * timezone/europe: Likewise.
858         * timezone/leapseconds: Likewise.
859         * timezone/northamerica: Likewise.
860         * timezone/southamerica: Likewise.
861         * timezone/zone.tab: Likewise.
862
863 2008-09-30  Ulrich Drepper  <drepper@redhat.com>
864
865         * nscd/connections.c: Disable use of paccept for now.
866
867 2008-09-29  Ulrich Drepper  <drepper@redhat.com>
868
869         * socket/Versions: Remove paccept export for GLIBC_2.9.
870         * socket/Makefile (routines): Remove paccept.
871         * socket/sys/socket.h: Remove paccept declaration.
872
873         * po/sv.po: Update from translation team.
874
875 2008-09-22  Deborah S. Townsend  <dstownse@us.ibm.com>
876
877         * sysdeps/s390/s390-64/s390x-mcount.S: Replace ahi with aghi.
878         * sysdeps/unix/sysv/linux/s390/s390-64/socket.S: Likewise.
879
880 2008-09-16  Ulrich Drepper  <drepper@redhat.com>
881
882         * dlfcn/dlopen.c (dlopen_doit): Allow __RTLD_SPROF flag.
883         Patch by Olivier Fourdan <ofourdan@redhat.com>.
884
885 2008-09-15  Ulrich Drepper  <drepper@redhat.com>
886
887         * sunrpc/rpc/svc.h: Declare svcfd_create.
888         Patch by Michael Solberg <msolberg@redhat.com>.
889
890 2008-09-12  Flavio Leitner  <fleitner@redhat.com>
891             Ulrich Drepper  <drepper@redhat.com>
892
893         * malloc/malloc.c (public_vALLOc): Try other arenas in case
894         _int_valloc fails.
895         (public_pVALLOc): Likewise.
896
897 2008-09-02  Andreas Jaeger  <aj@suse.de>
898
899         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: Fix last
900         commit.
901
902 2008-08-26  Aurelien Jarno  <aurelien@aurel32.net>
903
904         [BZ #6860]
905         * hurd/hurd/signal.h (HURD_MSGPORT_RPC): Fix a typo.
906
907 2008-07-18  Daniel Jacobowitz  <dan@codesourcery.com>
908
909         * Makefile (check-data): Check data directory in add-ons.
910         * elf/Makefile (check-data): Likewise.
911
912 2008-08-18  Roland McGrath  <roland@redhat.com>
913
914         * configure.in (--with-cpu): Check compiler support for -march/-mcpu.
915         * configure: Regenerated.
916         * config.make.in (cflags-cpu): New substituted variable.
917         (with-cpu): Variable removed.
918         * Makeconfig (+cflags): Use $(cflags-cpu), not $(with-cpu).
919
920 2008-08-14  Ryan S. Arnold  <rsa@us.ibm.com>
921
922         [BZ #6845]
923         * sysdeps/powerpc/fpu/bits/mathinline.h (__signbitl): Copy new
924         __signbitl definition and __LONG_DOUBLE_128__ guard from:
925         * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h: Remove as
926         redundant.  Functions which call floating point assembler operations
927         should go into a sysdeps powerpc/fpu directory.
928
929 2008-08-15  Ulrich Drepper  <drepper@redhat.com>
930
931         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Define MAP_STACK.
932         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Likewise.
933
934 2008-08-14  Ulrich Drepper  <drepper@redhat.com>
935
936         * sysdeps/x86_64/memset.S: Reduce size of tables for PIC.
937
938         * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): Undo all
939         change related to AT_EXECFN.  We cannot use that string.
940         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Remove
941         _dl_execfn member.
942         * elf/dl-support.c: Remove _dl_execfn variable.
943         (_dl_aux_init): Remove handling of AT_EXECFN.
944         * elf/dl-sysdep.c (_dl_sysdep_start): Remove handling of AT_EXECFN.
945         * elf/rtld.c (process_envvars): Remove use of __ASSUME_AT_EXECFN.
946
947 2008-08-13  Ulrich Drepper  <drepper@redhat.com>
948
949         [BZ #6544]
950         * libio/fmemopen.c: Implement binary mode.  In this mode no NUL
951         byte gets added to writes and seeks from the end use the length of
952         the buffer and not the currently terminating NUL byte.
953
954         [BZ #6634]
955         * login/utmp_file.c (getutent_r_file): Take additional parameter.
956         Set to true if locking failed.
957         (getutid_r_file): Adjust caller.
958         (pututline_file): Likewise.  Return NULL in this case.
959         Patch mostly by halesh.s@gmail.com.
960
961 2008-08-12  Ulrich Drepper  <drepper@redhat.com>
962
963         [BZ #6589]
964         * sysdeps/unix/sysv/linux/ifaddrs.c (struct sockaddr_ll_max):
965         Define.
966         (struct ifaddrs_storage): Use it instead of sockaddr_ll.
967
968 2008-08-12  Ryan S. Arnold  <rsa@us.ibm.com>
969
970         [BZ #6839]
971         * sysdeps/powerpc/powerpc32/dl-machine.c (CHECK_STATIC_TLS): Remove
972         macro since it is now available in elf/dynamic-link.h.
973
974 2008-08-12  Roland McGrath  <roland@frob.com>
975
976         * hurd/hurd/signal.h (HURD_MSGPORT_RPC): Avoid -Wparenthesis triggers,
977         in case used outside of libc.
978         Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>
979
980 2008-08-11  Ulrich Drepper  <drepper@redhat.com>
981
982         * resolv/res_mkquery.c (res_nmkquery): Call ns_name_compress
983         directly instead of going through dn_comp.
984
985 2008-08-11  Aurelien Jarno  <aurel32@debian.org>
986
987         * sysdeps/mach/i386/machine-lock.h (__spin_unlock, __spin_try_lock):
988         Fix asm constraints.
989
990 2008-08-07  Ulrich Drepper  <drepper@redhat.com>
991
992         [BZ #6790]
993         * sysdeps/unix/sysv/linux/bits/in.h (IP_PMTUDISC_PROBE): Define.
994         (IPV6_PMTUDISC_PROBE): Likewise.
995
996 2008-08-07  Pete Eberlein  <eberlein@us.ibm.com>
997
998         [BZ #6791]
999         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h (PROT_SAO): Define.
1000
1001 2008-08-01  Steven Munroe  <sjmunroe@us.ibm.com>
1002             Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
1003
1004         [BZ #6817]
1005         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags):
1006         Added the members 'vsx' and 'arch_2_06'.
1007         (_dl_powerpc_platforms): Add the member 'power7'.
1008         * sysdeps/powerpc/dl-procinfo.h: Modify _DL_HWCAP_FIRST
1009         to reflect the changes required by VSX and ISA 2.06.
1010         Modify _DL_PLATFORMS_COUNT to reflect the addition of
1011         'power7'.
1012         Defined PPC_PLATFORM_POWER7.
1013         (_dl_string_platform): Add support for POWER7.
1014         * sysdeps/powerpc/sysdep.h: Define bit masks for VSX
1015         capability and ISA 2.06.
1016
1017 2008-08-07  Ulrich Drepper  <drepper@redhat.com>
1018
1019         [BZ #6824]
1020         * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h: Use correct
1021         macro to detect use of 128 bit long double.
1022         Patch by Ryan S. Arnold <rsa@us.ibm.com>.
1023
1024 2008-08-05  Ulrich Drepper  <drepper@redhat.com>
1025
1026         * scripts/gen-as-const.awk: Use 32-bit values on 32-bit platforms.
1027
1028         [BZ #5794]
1029         * sysdeps/i386/fpu/s_expm1l.S: Simply use exp implementation for large
1030         parameters.
1031         * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
1032         Patch by Denys Vlasenko <dvlasenk@redhat.com>.
1033
1034 2008-08-03  Ulrich Drepper  <drepper@redhat.com>
1035
1036         * nscd/connections.c (main_loop_poll): Pass a buffer which is
1037         guaranteed to be large enough to read inotify event.  Ignore
1038         EAGAIN error.  Better error message.  Add branch predicition.
1039         (main_loop_epoll): Likewise.
1040
1041 2008-08-02  Roland McGrath  <roland@frob.com>
1042
1043         * sysdeps/mach/i386/machine-lock.h (__spin_unlock, __spin_try_lock):
1044         Add memory clobbers.
1045
1046 2008-08-02  Ulrich Drepper  <drepper@redhat.com>
1047
1048         * manual/arith.texi: Avoid @strong{Note:}.
1049         * manual/creature.texi: Likewise.
1050         * manual/filesys.texi: Likewise.
1051         * manual/math.texi: Likewise.
1052         * manual/memory.texi: Likewise.
1053         * manual/resource.texi: Likewise.
1054         * manual/syslog.texi: Likewise.
1055         * manual/time.texi: Likewise.
1056
1057         * sysdeps/posix/clock_getres.c (hp_timing_getres): Remove inline
1058         to prevent warning.
1059
1060 2008-08-01  Ulrich Drepper  <drepper@redhat.com>
1061
1062         * sysdeps/unix/sysv/linux/Versions: Fix changes due to old patch for
1063         new epoll_create1 interface.
1064         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
1065         * sysdeps/unix/sysv/linux/sys/epoll.h: Likewise.
1066         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
1067
1068         * include/arpa/nameser.h (NS_GET16): Use const pointer.
1069         (NS_GET32): Likewise.
1070
1071         * sysdeps/unix/sysv/linux/kernel-features.h: s390 has the new
1072         syscalls, too.
1073
1074         * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): We cannot
1075         use the AT_EXECFN value if it is no absolute path.
1076         * sysdeps/unix/sysv/linux/kernel-features.h: Never define
1077         __ASSUME_AT_EXECFN.
1078
1079         * Versions.def: Add GLIBC_2.9 to libresolv.
1080         * include/resolv.h: Remove hidden proto declarations for __ns_*
1081         functions.  Add them for __dn_count_labels and __p_secstodate.
1082         * include/arpa/nameser.h: Add a number of hidden proto declarations.
1083         Define ns_msg_getflags macro here.
1084         * resolv/res_debug.c: Add hidden definition for __dn_count_labels
1085         and __p_secstodate.
1086         * resolv/Versions: Export functions from <arpa/nameser.h> from
1087         libresolv in version GLIBC_2.9.
1088         * resolv/ns_name.c: Integrate changes from bind 9.5.0.  Add necessary
1089         hidden definitions.
1090         * resolv/ns_netint.c: Likewise.
1091         * resolv/ns_parse.c: Likewise.
1092         * resolv/ns_print.c: Likewise.
1093         * resolv/ns_samedomain.c: Likewise.
1094         * resolv/ns_ttl.c: Likewise.
1095         * resolv/arpa/nameser_compat.h: Likewise.
1096         * resolv/arpa/nameser.h: Likewise.  Remove macros which redirect
1097         function calls.
1098         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Use __ns_get16
1099         instead of ns_get16.
1100         * resolv/nss_dns/dns-host.c (getanswer_r): Use __ns_get16 and
1101         __ns_get32 instead of ns_get16 and ns_get32 respectively.
1102         (gaih_getanswer_slice): Likewise.
1103         * resolv/Makefile (libresolv-routines): Add ns_date.
1104         * resolv/ns_date.c: New file.
1105
1106         * elf/Makefile (check-localplt.out): Also check libresolv and
1107         libcrypt.
1108
1109 2008-07-31  Ulrich Drepper  <drepper@redhat.com>
1110
1111         * sysdeps/unix/sysv/linux/kernel-features.h: Define
1112         __ASSUME_O_CLOEXEC.
1113
1114 2008-07-30  Ulrich Drepper  <drepper@redhat.com>
1115
1116         * sysdeps/posix/getaddrinfo.c (gaih_inet): Raise size of initial
1117         buffer passed to NSS functions.
1118
1119         * nscd/connections.c (nscd_init): Typo in preprocessor directive.
1120
1121         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PACCEPT):
1122         Define.
1123
1124         * misc/syslog.c (openlog_internal): Fix compile problem.
1125
1126 2008-07-28  Roland McGrath  <roland@redhat.com>
1127
1128         * elf/dl-sysdep.c (_dl_show_auxv): Add AT_EXECFN to the table.
1129
1130 2008-07-28  Ulrich Drepper  <drepper@redhat.com>
1131
1132         * io/ftw.c (add_object): Remove inline to avoid warning.
1133
1134         * sysdeps/unix/sysv/linux/paccept.c: Fix compile problem.
1135
1136         * resolv/res_send.c (__libc_res_nsend): Take additional parameter.
1137         Use it instead of locally defined resplen2 variable.
1138         (res_nsend): Adjust for __libc_res_nsend interface change.
1139         (send_vc): Initialize *resplen2 if necessary.  Read length of
1140         package into an appropriately aligned variable.  Store converted length
1141         in new variable and use it appropriately.
1142         Add branch prediction help.
1143         * resolv/res_query.c (__libc_res_nquery): Take additional parameter
1144         and pass it on to __libc_res_nsend.  Adjust all callers.
1145         (__libc_res_nsearch): Likewise.
1146         (__libc_res_nqeurydomain): Likewise.
1147         * resolv/nss_dns/dns-host.c: Adjust for __libc_res_nsearch interface
1148         change.
1149         (_nss_dns_gethostbyname4): Don't unconditionally allocate tmp array.
1150         Define resplen2 variable and pass it to __libc_res_nsearch and then
1151         to gaih_getanswer.
1152         (getanswer_r): In case of incorrect DNS data don't overread buffer.
1153         Add branch prediction.
1154         (gaih_getanswer_slice): Likewise.  Check for invalid data types.
1155         (gaih_getanswer): Don't decode second slice if first one failed due
1156         to a too small buffer.  Don't let not found status of second
1157         decoder shadow results of the first.
1158         * resolv/gethnamaddr.c (gethostbyname2): Adjust for __libc_res_nsearch
1159         and __libc_res_nquery interface changes
1160         (gethostbyaddr): Adjust for __libc_res_nquery interface change.
1161         * include/resolv.h: Adjust prototypes for __libc_res_nquery,
1162         __libc_res_nsearch, and __libc_res_nsend.
1163         * resolv/nss_dns/dns-canon.c: Adjust for __libc_res_nquery interface
1164         change.
1165         * resolv/nss_dns/dns-network.c: Adjust for __libc_res_nquery and
1166         __libc_res_nsearch interface changes.
1167
1168 2008-07-27  Ulrich Drepper  <drepper@redhat.com>
1169
1170         * libio/iopopen.c (_IO_new_proc_open): Remove unnecessary volatile.
1171
1172         * posix/wordexp.c (exec_comm): Use pipe2 if possible to create
1173         file descriptors with close-on-exec set.
1174         (exec_comm_child): Fix the case where the write end of the pipe is
1175         STDOUT_FILENO already.  In case it is, clear close-on-exec.
1176
1177         * sysdeps/unix/sysv/linux/syscalls.list: Add __pipe2 alias.
1178         * io/pipe2.c: Likewise.
1179         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_PIPE2
1180         instead of __ASSUME_PACCEPT.
1181         * include/unistd.h: Declare __have_pipe2.
1182         * libio/iopopen.c: Implement "e" flag.
1183         * libio/Makefile (tests): Add tst-popen1.
1184         * libio/tst-popen1.c: New file.
1185
1186         * sysdeps/unix/sysv/linux/bits/socket.h: Define PF_ISDN and AF_ISDN.
1187         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
1188
1189 2008-07-26  Ulrich Drepper  <drepper@redhat.com>
1190
1191         [BZ #6771]
1192         * libio/fileops.c (_IO_new_file_attach): Preserve errno around
1193         success call of _IO_SEEKOFF or calls which failed because the
1194         descriptor is for a pipe.
1195
1196         * sunrpc/key_call.c (getkeyserv_handle): Use FD_CLOEXEC instead of
1197         magic number.
1198
1199         * misc/syslog.c (openlog_internal): Use SOCK_CLOEXEC if possible.
1200
1201         * malloc/mtrace.c (mtrace): Use 'e' flag in fopen call.  Drop
1202         F_SETFD use if we know fopen set the flag.
1203
1204         * login/utmp_file.c (setutent_file): Minor optimization in case
1205         O_CLOEXEC is available.
1206
1207 2008-07-24  Tom "spot" Callaway  <tcallawa@redhat.com>
1208
1209         * Makeconfig: Define pie-ccflag and PIE-ccflag variables.
1210         * elf/Makefile: Use pie-ccflag variable.
1211         * nscd/Makefile: Likewise.
1212         * sysdeps/sparc/Makefile: Set $(pie-ccflag) to -fPIE.
1213
1214 2008-07-21  Andreas Krebbel  <krebbel1@de.ibm.com>
1215
1216         [BZ #6724]
1217         * Versions.def: Add GLIBC_2.9 version tag for libutil.
1218         * sysdeps/unix/sysv/linux/s390/bits/utmp.h: Copy of
1219         gnu/bits/utmp.h.  Check for __WORDSIZE_COMPAT32 removed.
1220         * sysdeps/unix/sysv/linux/s390/bits/utmpx.h: Copy of
1221         gnu/bits/utmpx.h.  Check for __WORDSIZE_COMPAT32 removed.
1222         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Add new files
1223         utmp32, utmpx32 and login32.
1224         * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Add 2.9
1225         versions of struct utmp functions to libc and libutil.
1226         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-compat.h: New file.
1227         * sysdeps/unix/sysv/linux/s390/s390-32/getutent.c: New file.
1228         * sysdeps/unix/sysv/linux/s390/s390-32/getutent_r.c: New file.
1229         * sysdeps/unix/sysv/linux/s390/s390-32/getutid.c: New file.
1230         * sysdeps/unix/sysv/linux/s390/s390-32/getutid_r.c: New file.
1231         * sysdeps/unix/sysv/linux/s390/s390-32/getutline.c: New file.
1232         * sysdeps/unix/sysv/linux/s390/s390-32/getutline_r.c: New file.
1233         * sysdeps/unix/sysv/linux/s390/s390-32/getutmp.c: New file.
1234         * sysdeps/unix/sysv/linux/s390/s390-32/getutxent.c: New file.
1235         * sysdeps/unix/sysv/linux/s390/s390-32/getutxid.c: New file.
1236         * sysdeps/unix/sysv/linux/s390/s390-32/getutxline.c: New file.
1237         * sysdeps/unix/sysv/linux/s390/s390-32/login.c: New file.
1238         * sysdeps/unix/sysv/linux/s390/s390-32/login32.c: New file.
1239         * sysdeps/unix/sysv/linux/s390/s390-32/pututxline.c: New file.
1240         * sysdeps/unix/sysv/linux/s390/s390-32/updwtmp.c: New file.
1241         * sysdeps/unix/sysv/linux/s390/s390-32/updwtmpx.c: New file.
1242         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: New file.
1243         * sysdeps/unix/sysv/linux/s390/s390-32/utmp32.c: New file.
1244         * sysdeps/unix/sysv/linux/s390/s390-32/utmp32.h: New file.
1245         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx-convert.h: New file.
1246         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.c: New file.
1247         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: New file.
1248
1249 2008-07-26  Ulrich Drepper  <drepper@redhat.com>
1250
1251         * scripts/gen-as-const.awk: Generate more widely usable code by
1252         using 64-bit arithmetic.
1253
1254         * stdio-common/printf_fp.c (___printf_fp): Give wide outout code
1255         the same treatment as narrow output code in last patch.
1256
1257         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Namespace cleanup.
1258
1259         [BZ #6763]
1260         * elf/dl-load.c (local_strdup): Remove inline.
1261         (_dl_map_object_from_fd): Don't allocate l_symbolic_searchlist.r_list.
1262         * elf/dl-object.c (_dl_new_object): Allocate symbolic searchlist as
1263         part of the object.
1264
1265         * sysdeps/unix/sysv/linux/dl-origin.c: Add const to avoid warning.
1266
1267 2008-07-25  Ulrich Drepper  <drepper@redhat.com>
1268
1269         * sysdeps/unix/sysv/linux/kernel-features.h: IA-64 and SPARC have
1270         the new syscalls, too.
1271
1272         * sysdeps/i386/i686/memcmp.S: Fix unwind information.
1273         Reported by Paul Pluzhnikov <ppluzhnikov@google.com>.
1274
1275         [BZ #6698]
1276         * stdio-common/_i18n_number.h (_i18n_number_rewrite): Take additional
1277         parameter for end of buffer.  If temporary copy is too large use
1278         malloc.
1279         * stdio-common/vfprintf.c: Adjust for _i18n_number_rewrite
1280         interface change.
1281         * stdio-common/printf_fp.c (__printf_fp): Likewise..  Account for
1282         string rewrite when allocating buffer.
1283
1284         * sysdeps/unix/sysv/linux/kernel-features.h: PPC has the new
1285         syscalls, too.
1286
1287         * nscd/connections.c (nscd_init): Clean up fcntl call.
1288
1289         * nscd/nscd_helper.c (open_socket): Use SOCK_CLOEXEC and
1290         SOCK_NONBLOCK if possible.
1291
1292         * sysdeps/unix/sysv/linux/opensock.c (__opensock): Use
1293         SOCK_CLOEXEC if available.
1294
1295         * include/rpc/clnt.h: Declare __libc_clntudp_bufcreate and
1296         __libc_clntudp_bufcreate_internal.
1297         * include/sys/socket.h: Declare __have_sock_cloexec.
1298         * socket/Makefile (aux): Add have_sock_cloexec.
1299         * socket/have_sock_cloexec.c: New file.
1300         * sunrpc/clnt_udp.h (clntudp_bufcreate): Now a wrapper around
1301         __libc_clntudp_bufcreate.
1302         (__libc_clntudp_bufcreate): Former implementation of clntudp_bufcreate
1303         which takes an additional parameter.  Create socket with non-blocking
1304         mode and close-on-exec flag set, if wanted.
1305         * sunrpc/Versions: Export __libc_clntudp_bufcreate@GLIBC_PRIVATE.
1306         * nis/ypclnt.c (yp_bind_client_create): Use __libc_clntpudp_bufcreate
1307         instead of clntudp_create.  The socket has already the close-on-exec
1308         flag set if SOCK_CLOEXEC is defined.
1309
1310 2008-07-24  Ulrich Drepper  <drepper@redhat.com>
1311
1312         * sysdeps/unix/sysv/linux/kernel-features.h: Define
1313         __ASSUME_PACCEPT, __ASSUME_IN_NONBLOCK, and __ASSUME_PACCEPT if
1314         appropriate.
1315         * nscd/connections.c: Avoid fcntl calls to set close-on-exec flag and
1316         non-blocking mode by using socket, paccept, and inotify_init1.
1317
1318         * Versions.def (glibc): Add GLIBC_2.9.
1319         * io/Makefile (routines): Add dup3 and pipe2.
1320         * io/Versions [glibc] (GLIBC_2.9): Add dup3 and pipe2.
1321         * io/dup3.c: New file.
1322         * io/pipe2.c: New file.
1323         * posix/unistd.h: Declare dup3 and pipe2.
1324         * socket/Makefile (routines): Add paccept.
1325         * socket/Versions [glibc] (GLIBC_2.9): Add paccept.
1326         * socket/paccept.c: New file.
1327         * socket/sys/socket.h: Declare paccept.
1328         * sysdeps/unix/syscalls.list: Add entry for dup3.
1329         * sysdeps/unix/sysv/linux/Versions [glibc] (GLIBC_2.9): Add
1330         epoll_create2 and inotify_init1.
1331         * sysdeps/unix/sysv/linux/eventfd.c: Use eventfd1 syscall if possible.
1332         * sysdeps/unix/sysv/linux/paccept.c: New file.
1333         * sysdeps/unix/sysv/linux/signalfd.c: Use signalfd4 syscall if
1334         possible.
1335         * sysdeps/unix/sysv/linux/socketcall.h: Add SOCKOP_paccept.
1336         * sysdeps/unix/sysv/linux/syscalls.list: Add epoll_create2,
1337         inotify_init1, and pipe2 entries.
1338         * sysdeps/unix/sysv/linux/alpha/sys/epoll.h: New file.
1339         * sysdeps/unix/sysv/linux/alpha/sys/eventfd.h: New file.
1340         * sysdeps/unix/sysv/linux/alpha/sys/inotify.h: New file.
1341         * sysdeps/unix/sysv/linux/alpha/sys/signalfd.h: New file.
1342         * sysdeps/unix/sysv/linux/alpha/sys/timerfd.h: New file.
1343         * sysdeps/unix/sysv/linux/bits/socket.h: Define SOCK_CLOEXEC and
1344         SOCK_NONBLOCK.
1345         * sysdeps/unix/sysv/linux/i386/paccept.S: New file.
1346         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: New file.
1347         * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: New file.
1348         * sysdeps/unix/sysv/linux/sparc/sys/inotify.h: New file.
1349         * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h: New file.
1350         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: New file.
1351         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: New file.
1352         * sysdeps/unix/sysv/linux/sys/epoll.h: Define EPOLL_CLOEXEC and
1353         EPOLL_NONBLOCK.  Declare epoll_create2.
1354         * sysdeps/unix/sysv/linux/sys/eventfd.h: Define EFD_CLOEXEC and
1355         EFD_NONBLOCK.
1356         * sysdeps/unix/sysv/linux/sys/inotify.h: Define IN_CLOEXEC and
1357         IN_NONBLOCK.  Declare inotify_init1.
1358         * sysdeps/unix/sysv/linux/sys/signalfd.h: Define SFD_CLOEXEC and
1359         SFD_NONBLOCK.
1360         * sysdeps/unix/sysv/linux/sys/timerfd.h: Define TFD_CLOEXEC and
1361         TFD_NONBLOCK.
1362
1363         * elf/elf.h: Define AT_EXECFN.
1364         * elf/rtld.c [!__ASSUME_AT_EXECFN] (process_envvars): Don't handle
1365         LD_ORIGIN_PATH.
1366         * elf/dl-sysdep.c (_dl_sysdep_start): Handle AT_EXECFN.
1367         * elf/dl-support.c: Define _dl_execfn.  Don't define _dl_origin_path
1368         if __ASSUME_AT_EXECFN is defined.
1369         (_dl_aux_init): Handle AT_EXECFN.
1370         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_AT_EXECFN
1371         for 2.6.27 and up.
1372         * sysdeps/generic/ldsodefs.h (rtld_global_ro): Add _dl_execfn.
1373         Don't define _dl_origin_path if __ASSUME_AT_EXECFN is defined.
1374         * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): Use
1375         _dl_execfn if available and avoid compatibility code if
1376         __ASSUME_AT_EXECFN is defined.
1377
1378         * sysdeps/unix/sysv/linux/dl-sysdep.h: Don't declare
1379         _dl_discover_osversion only for older kernels.
1380
1381 2008-07-22  Roland McGrath  <roland@frob.com>
1382
1383         * hurd/fd-read.c (_hurd_fd_read): Fix last change.
1384
1385 2008-07-21  Roland McGrath  <roland@frob.com>
1386
1387         * hurd/fd-read.c (_hurd_fd_read): Return EGRATUITOUS if the server
1388         returned too much data out of line.
1389
1390 2008-07-20  Ulrich Drepper  <drepper@redhat.com>
1391
1392         * locale/setlocale.c (setname): Remove inline to avoid compiler
1393         warning.
1394
1395         [BZ #6712]
1396         * locale/setlocale.c (setlocale): Take the setlocale lock earlier.
1397
1398 2008-07-15  Ulrich Drepper  <drepper@redhat.com>
1399
1400         * stdio-common/vfprintf.c (_IO_helper_overflow): In case _IO_sputn
1401         doesn't manage to write anything, fail.
1402
1403         * malloc/hooks.c (__malloc_check_init): Remove printf.
1404
1405 2008-07-14  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1406
1407         * sysdeps/mach/hurd/bits/fcntl.h: Include <sys/types.h>.
1408
1409 2008-07-12  Ulrich Drepper  <drepper@redhat.com>
1410
1411         * nscd/connections.c (main_loop_poll): Fix handling of read errors
1412         from inotify.
1413         (main_loop_epoll): Likewise.
1414
1415 2008-07-09  Ulrich Drepper  <drepper@redhat.com>
1416
1417         * resolv/res_send.c: Remove unnecessary res_pquery prototype.
1418
1419         * resolv/res_query.c (__libc_res_nquery): Issue debug message only
1420         if DEBUG is defined.
1421
1422         * resolv/res_query.c (__libc_res_nquery): Align buffer for T_AAAA
1423         query.  Adjust buffer size computation for padding.
1424
1425 2008-07-08  Ulrich Drepper  <drepper@redhat.com>
1426
1427         * stdio-common/Makefile: Add rules to build and run tst-setvbuf1.
1428         * stdio-common/tst-setvbuf1.c: New file.
1429         * stdio-common/tst-setvbuf1.expect: New file.
1430
1431         [BZ #6719]
1432         * libio/iosetvbuf.c (_IO_setvbuf): Correctly clear buffering flags
1433         when selecting fully-buffered stream.
1434         Patch by Wang Xin <wxinee@gmail.com>.
1435
1436 2008-07-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1437
1438         * sysdeps/mach/hurd/open.c: Include <stdio.h>.
1439         (__open_2): New function.
1440         (__open64_2): New alias to __open_2.
1441         * sysdeps/mach/hurd/openat.c: Include <stdio.h>.
1442         (__openat_2): New function.
1443         (__openat64_2): New alias to __openat_2.
1444
1445 2008-07-06  Ulrich Drepper  <drepper@redhat.com>
1446
1447         [BZ #6723]
1448         * time/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
1449
1450 2008-07-01  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1451
1452         * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Define MSG_NOSIGNAL.
1453         * hurd/hurd/fd.h (__hurd_sockfail): Add extern inline function.
1454         * sysdeps/mach/hurd/recv.c (__recv): Use __hurd_sockfail instead of
1455         __hurd_dfail.
1456         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Likewise.
1457         * sysdeps/mach/hurd/recvmsg.c (__recvmsg): Likewise.
1458         * sysdeps/mach/hurd/send.c (__send): Likewise.
1459         * sysdeps/mach/hurd/sendto.c (__sendfrom): Likewise.
1460         * sysdeps/mach/hurd/sendmsg.c (__sendmsg): Likewise.
1461
1462 2008-03-04  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1463
1464         * sysdeps/mach/hurd/recv.c (__recv): Initialize NPORTS.
1465         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Likewise.
1466         * sysdeps/mach/hurd/recvmsg.c (__recvmsg): Likewise.
1467         * hurd/fd-read.c (_hurd_fd_read): Initialize NREAD.
1468         * hurd/get-host.c (_hurd_get_host_config): Likewise.
1469         * sysdeps/mach/hurd/dl-sysdep.c (__libc_read): Likewise.
1470
1471 2008-06-27  Ulrich Drepper  <drepper@redhat.com>
1472
1473         [BZ #6657]
1474         * time/strptime_l.c: Don't clear s.era_cnt after successful match
1475         of %EY.
1476         Patch by Petr Baudis.
1477
1478 2008-06-26  Ulrich Drepper  <drepper@redhat.com>
1479
1480         * resolv/res_debug.c (__p_type_syms): Add ns_t_dname entry.
1481         Patch by Peter Jones <pjones@redhat.com>.
1482
1483 2008-06-25  Ulrich Drepper  <drepper@redhat.com>
1484
1485         [BZ #6654]
1486         * stdlib/canonicalize.c (__realpath): readlink can write too much
1487         into the buffer on platforms without PATH_MAX.
1488
1489 2008-06-17  Carlos O'Donell  <carlos@codesourcery.com>
1490
1491         [BZ #6653]
1492         * posix/tst-regex.c (main): Rename to...
1493         (do_test): ... this. Remove cmdline option processing.
1494         (TIMEOUT): Define.
1495         (TEST_FUNCTION): Define.
1496         (CMDLINE_OPTIONS): Define.
1497
1498 2008-06-25  Ulrich Drepper  <drepper@redhat.com>
1499
1500         [BZ #5210]
1501         * configure.in: Add -Werror to -fstack-protector test to catch
1502         unsupported architectures.
1503         Patch by Gilles Esponasse <g.esp@free.fr>.
1504
1505 2008-06-17  Joseph Myers  <joseph@codesourcery.com>
1506
1507         * stdlib/tst-setcontext.c: Set back_in_main before exit if
1508         getcontext returns ENOSYS.
1509
1510 2008-06-18  Ulrich Drepper  <drepper@redhat.com>
1511
1512         * nscd/connections.c (main_loop_poll): Fix test for read error.
1513         (main_loop_epoll): Likewise.
1514
1515 2008-06-13  Ulrich Drepper  <drepper@redhat.com>
1516
1517         * sysdeps/posix/getaddrinfo.c: Move _res_hconf_init call to a
1518         better place so it is not called when nscd is used.
1519
1520         * nscd/connections.c: Also recognize and handle changes to the
1521         resolver configuration file.
1522
1523 2008-06-12  Ulrich Drepper  <drepper@redhat.com>
1524
1525         * time/strftime.c: Pass reference to tzset_called around to handle
1526         recursive calls.
1527
1528         [BZ #6612]
1529         * time/strftime.c (__strftime_internal): Call tzset() only
1530         when printing timezone-dependent values.
1531         Based on a patch by Petr Baudis <pasky@suse.cz>.
1532
1533         * resolv/nss_dns/dns-host.c (gaih_getanswer): Don't
1534         unconditionally use second gaih_getanswer_slice result.
1535
1536         * sysdeps/posix/getaddrinfo.c (gai_inet): Remove unnecessary test.
1537         (getaddrinfo): RES must always be non-NULL.
1538
1539 2008-06-12  Jakub Jelinek  <jakub@redhat.com>
1540
1541         * sysdeps/powerpc/powerpc64/fpu/s_llround.S (__llround): Avoid using
1542         cr[34] registers.
1543         * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S (__llroundf): Likewise.
1544         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S (__llround):
1545         Likewise.
1546         * sysdeps/powerpc/powerpc32/fpu/s_lround.S (__lround): Avoid using cr3
1547         register.
1548
1549 2008-06-12  Ulrich Drepper  <drepper@redhat.com>
1550
1551         * nscd/nscd.h (struct database_dyn): Add inotify_descr and clear_cache
1552         fields.
1553         * nscd/connections.c (inotify_fd): New variable.
1554         (nscd_init): Try to open an inotify descriptor.
1555         If successful, watch files for databases using inotify instead of
1556         having prune threads stat the files.
1557         (nscd_run_prune): Recognize clear_cache flag being set and call
1558         prune_cache appropriately.
1559         (main_loop_poll): Add inotify descriptor to wait set and handle the
1560         reported changes.
1561         (main_loop_epoll): Likewise.
1562         * nscd/cache.c (prune_cache): Don't stat files for databases if
1563         inotify is used.
1564         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd]
1565         (CFLAGS-connections.c): Add -DHAVE_INOTIFY.
1566
1567         * nscd/grpcache.c (cache_addgr): Correctly compute size of
1568         fixed-size portion of the record.
1569         * nscd/servicescache.c (cache_addserv): Likewise.
1570         * nscd/pwdcache.c (cache_addpw): Likewise.
1571         * nscd/initgrcache.c (addinitgroupsX): Likewise.
1572
1573 2008-06-11  Ulrich Drepper  <drepper@redhat.com>
1574
1575         * nscd/mem.c (gc): Initialize obstack earlier so that if we jump
1576         out we don't use uninitialized memory.
1577
1578         * nscd/hstcache.c (cache_addhst): Send correct number of bytes to
1579         the client.
1580
1581 2008-06-10  Ulrich Drepper  <drepper@redhat.com>
1582
1583         * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): Also log and
1584         ignore T_DNAME messages.
1585         * resolv/arpa/nameser_compat.h (T_DNAME): Define.
1586
1587 2008-06-05  Jakub Jelinek  <jakub@redhat.com>
1588
1589         * misc/regexp.h (compile): Use __REPB_PREFIX macro.
1590         Avoid segfault if first GETC returns eof/'\0'/'\n'.
1591
1592 2008-06-03  Jakub Jelinek  <jakub@redhat.com>
1593
1594         * nscd/nscd_getserv_r.c (__nscd_getservbyport_r): Pass cp
1595         instead of portstr to nscd_getserv_r.  Patch by
1596         Roman Kagan <rkagan@mail.ru>.
1597
1598 2008-05-26  Jim Meyering  <meyering@redhat.com>
1599
1600         Remove more useless "if" tests before "free".
1601         * include/inline-hashtab.h (htab_delete): Likewise.
1602         * libio/freopen.c (freopen): Likewise.
1603         * libio/freopen64.c (freopen64): Likewise.
1604         * locale/programs/ld-collate.c (collate_read): Likewise.
1605         * misc/fstab.c (libc_freeres_fn): Likewise.
1606         * posix/glob.c (globfree): Likewise.
1607
1608 2008-05-24  Ulrich Drepper  <drepper@redhat.com>
1609
1610         * string/Makefile (strop-tests): Add memmem.
1611         * string/test-memmem.c: New file.
1612         * string/test-string.h (BUF1PAGES): Define to 1 if undefined.
1613         (test_init): Size buf1 according to BUF1PAGES.
1614
1615 2008-05-24  Jakub Jelinek  <jakub@redhat.com>
1616
1617         * libio/stdio.h (vscanf): Fix -std=c99 redirect.
1618         * stdio-common/Makefile (tests): Add scanf16 and scanf17.
1619         (CFLAGS-scanf17.c): New.
1620         * stdio-common/scanf14.c (main): Add fscanf and scanf tests.
1621         * stdio-common/scanf15.c (main): Likewise.
1622         * stdio-common/scanf16.c: New file.
1623         * stdio-common/scanf17.c: New file.
1624
1625 2008-05-24  Ulrich Drepper  <drepper@redhat.com>
1626
1627         * resolv/res_send.c (send_dg): If we already have one of two
1628         answers and the server reports SERVFAIL, NOTIMP, or REFUSED, then
1629         use the one answer insted of failing.
1630
1631 2008-02-20  Ryan S. Arnold  <rsa@us.ibm.com>
1632
1633         * math/libm-test.inc (exp_test): Exclude expl(1000.0L) from
1634         being executed on PowerPC as the expected result exceeds IBM
1635         long double 128 __LDBL_MAX__.
1636
1637 2008-05-21  Roland McGrath  <roland@redhat.com>
1638
1639         * shlib-versions (sparc.*-.*-.*, sparc64.*-.*-.*): Add ABI lines.
1640
1641         * Makefile (check-data): Use $(abi-name) before other guesses.
1642         Look in $(add-ons) dirs before scripts/data/.
1643         * elf/Makefile (check-data): Likewise.
1644
1645         * scripts/soversions.awk: Grok ABI line.
1646         * Makeconfig ($(common-objpfx)soversions.mk): Likewise.
1647         Emit definition for abi-name variable.
1648
1649 2008-05-21  Ulrich Drepper  <drepper@redhat.com>
1650
1651         * string/endian.h: Define new fixed-size hto* and *toh macros only
1652         if [__USE_BSD].
1653
1654         * iconvdata/Depend: Add localedata.
1655
1656 2008-05-21  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1657
1658         * bits/termios.h (ONLCR): Define under [__USE_XOPEN] too.
1659
1660 2008-05-08  David S. Miller  <davem@davemloft.net>
1661
1662         * sysdeps/unix/sysv/linux/sparc/sparc32/setcontext.S: Use
1663         HIDDEN_JUMPTARGET.
1664         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
1665         (__SYSCALL_CLOBBERS): Remove %g* registers.
1666         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
1667         (__SYSCALL_CLOBBERS): Likewise.
1668         * scripts/data/localplt-sparc-linux-gnu.data: New file.
1669         * scripts/data/localplt-sparc64-linux-gnu.data: New file.
1670
1671 2008-05-21  Jakub Jelinek  <jakub@redhat.com>
1672
1673         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
1674         (CALL_ERRNO_LOCATION): Define.
1675         (__SYSCALL_STRING, __CLONE_SYSCALL_STRING): Use it.
1676         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
1677         (CALL_ERRNO_LOCATION): Define.
1678         (__SYSCALL_STRING, __CLONE_SYSCALL_STRING): Use it.
1679         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S (__brk): Use
1680         HIDDEN_JUMPTARGET for __errno_location call in libc.so.
1681
1682 2008-05-20  Ulrich Drepper  <drepper@redhat.com>
1683
1684         * include/inline-hashtab.h (higher_prime_number): Fix type of mid
1685         variable.
1686
1687 2008-05-20  Jakub Jelinek  <jakub@redhat.com>
1688
1689         * sysdeps/unix/sysv/linux/sparc/sparc32/sigcontextinfo.h
1690         (FIRST_FRAME_POINTER): Define.
1691
1692 2008-05-09  David S. Miller  <davem@davemloft.net>
1693
1694         * sysdeps/sparc/sparc64/backtrace.c: New file.
1695
1696 2008-05-14  David S. Miller  <davem@davemloft.net>
1697
1698         * sysdeps/sparc/machine-gmon.h: New file.
1699         * sysdeps/sparc/sparc-mcount.S: Likewise.
1700         * sysdeps/sparc/Makefile: Add sparc-mcount target to
1701         sysdep_routines in gmon directory.
1702
1703 2008-05-19  Jakub Jelinek  <jakub@redhat.com>
1704
1705         * elf/soinit.c (__EH_FRAME_BEGIN__): Remove.
1706
1707 2008-05-19  Ulrich Drepper  <drepper@redhat.com>
1708
1709         * resolv/res_query.c (__libc_res_nquery): In case one of two
1710         answer was too short don't try to read that answer's header.
1711
1712         * resolv/res_send.c (send_dg): In case of timeout and there are
1713         two queries and one has been answered, return value indicating
1714         success.
1715
1716 2008-05-18  Ulrich Drepper  <drepper@redhat.com>
1717
1718         * nscd/cache.c (cache_add): Take additional parameter specifying
1719         whether this is in response of a cache refill.  Check alignment
1720         of package data.  Revamp waking of pruning thread.
1721         (prune_cache): Small optimization.
1722         * nscd/nscd.h: Adjust cache_add prototypes.
1723         * nscd/aicache.c: Adjust cache_add calls.
1724         * nscd/grpcache.c: Likewise.
1725         * nscd/hstcache.c: Likewise.
1726         * nscd/initgrcache.c: Likewise.
1727         * nscd/pwdcache.c: Likewise.
1728         * nscd/servicescache.c: Likewise.
1729         * nscd/connections.c (restart): Really disable cache use before
1730         exec attempt.  If it fails, reenable cache.
1731         (nscd_run_prune): Initialize wakeup_time.  After wakeup, set wakeup
1732         time to max to be able to notice concurrent cache additions.  Unlock
1733         prune_lock while performing gc.  Afterwards compute wakeup time with
1734         current wakeup_time value in mind.
1735
1736 2008-05-17  Ulrich Drepper  <drepper@redhat.com>
1737
1738         * nscd/mem.c (gc): Avoid stack overflow when allocating move list.
1739
1740         * nscd/mem.c (gc): Correctly determine highest used array element
1741         in mark.
1742
1743         * nscd/mem.c (markrange): Add assert to check entries are all
1744         aligned.  Small cleanup in bitmap use.
1745
1746         * nscd/nscd.h (mem_in_flight): Replace blockaddr field with
1747         blockoff of type nscd_ssize_t.
1748         * nscd/mem.c (gc): Simplify markrange call for on-flight blocks.
1749         (mempoll_alloc): Record block offset and not address.
1750
1751         * nscd/mem.c (gc): Fix test for stack overuse.
1752
1753         * nscd/aicache.c (addhstaiX): Fix a few small problems, cleanups,
1754         more asserts.
1755
1756         * sysdeps/posix/getaddrinfo.c (gaih_inet): If nscd reports no
1757         entry is available, believe it.
1758
1759         * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): If there are
1760         no answers return NSS_STATUS_NOTFOUND.
1761         (gaih_getanswer): Don't call gaih_getanswer_slice if the answer
1762         buffer does not have any content.
1763
1764 2008-05-16  Ulrich Drepper  <drepper@redhat.com>
1765
1766         * string/strcasestr.c (CMP_FUNC): Use __strncasecmp, not strncasecmp.
1767
1768         * sysdeps/posix/getaddrinfo.c (gaih_inet): After gethostbyname4_r
1769         lookup, don't assign canon unconditionally.
1770
1771 2008-05-14  Ulrich Drepper  <drepper@redhat.com>
1772
1773         * string/Makefile (distribute): Add str-two-way.h.
1774
1775 2008-03-29  Eric Blake  <ebb9@byu.net>
1776
1777         Rewrite string searches to O(n) rather than O(n^2).
1778         * string/str-two-way.h: New file.  For linear fixed-allocation
1779         string searching.
1780         * string/memmem.c: New implementation.
1781         * string/strstr.c: New implementation.
1782         * string/strcasestr.c: New implementation.
1783
1784 2008-04-11  Paolo Bonzini  <bonzini@gnu.org>
1785
1786         * posix/regcomp.c (optimize_utf8): Add a note on why we test
1787         opr.ctx_type.
1788         (calc_first): Initialize constraint field.
1789         (duplicate_node_closure): Use it instead of special casing ANCHORS.
1790         Use search_duplicated_node to avoid loops.  Fix grammar.
1791         (duplicate_node): Merge constraint field for all node types.
1792         (calc_eclosure_iter): Look at constraint field for all node types.
1793         * posix/regex_internal.c (create_cd_newstate): Don't look at
1794         create_cd_newstate.
1795
1796 2008-05-14  Ulrich Drepper  <drepper@redhat.com>
1797
1798         [BZ #6428]
1799         * configure.in: Don't use $CFLAGS when assembling, use $ASFLAGS.
1800
1801         [BZ #6442]
1802         * string/endian.h: Add macros for fixed-size endian conversion.
1803         * bits/byteswap.h: Allow inclusion from <endian.h>.
1804         * sysdeps/i386/bits/byteswap.h: Likewise.
1805         * sysdeps/ia64/bits/byteswap.h: Likewise.
1806         * sysdeps/s390/bits/byteswap.h: Likewise.
1807         * sysdeps/x86_64/bits/byteswap.h: Likewise.
1808         * string/Makefile (tests): Add tst-endian.
1809         * string/tst-endian.c: New file.
1810
1811         * iconvdata/run-iconv-test.sh: Use = instead of == in test.
1812         Patch by Reuben Thomas.
1813
1814 2008-05-14  Joseph Myers  <joseph@codesourcery.com>
1815
1816         * iconvdata/Makefile (bug-iconv6-ENV, tst-iconv7-ENV): Define.
1817
1818 2008-05-14  Ulrich Drepper  <drepper@redhat.com>
1819
1820         * iconvdata/bug-iconv6.c (do_test): Use de_DE.UTF-8 locale.
1821
1822         [BZ #6461]
1823         * iconv/gconv_simple.c (BODY for __gconv_transform_ascii_internal):
1824         Add missing braces.
1825         (BODY for __gconv_transform_internal_ascii): Likewise.
1826
1827         [BZ #6472]
1828         * sysdeps/posix/getaddrinfo.c (get_scope): Loopback addresses have
1829         to be treated like link-local addresses.
1830         (match_prefix): Don't treat IPv4 loopback address special when
1831         converting to v4 mapped addressed.
1832
1833         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Call _res_hconf_init
1834         if necessary.
1835         * posix/tst-rfc3484.c: Add dummy definition of _res_hconf_init.
1836         * posix/tst-rfc3484-2.c: Likewise.
1837         * posix/tst-rfc3484-3.c: Likewise.
1838
1839         * sysdeps/posix/getaddrinfo.c: Implement handling of DCCP, UDPlite,
1840         and SCTP.
1841
1842         * nss/getent.c (ahosts_keys_int): Handle all known socket types.
1843
1844         * inet/netinet/in.h (IPPIPPROTO_DCCP, IPPROTO_UDPLITE): Define.
1845
1846         * sysdeps/unix/sysv/linux/bits/socket.h (SOCK_DCCP): Define.
1847
1848 2008-05-13  Ulrich Drepper  <drepper@redhat.com>
1849
1850         * po/lt.po: New file.  From Lituanian translation team.
1851
1852 2008-01-30  Alexandre Oliva  <aoliva@redhat.com>
1853
1854         Introduce TLS descriptors for i386 and x86_64.
1855         * include/inline-hashtab.h: New file, copied from 2005's
1856         libiberty, with fix for memory leak imported afterwards by
1857         Glauber de Oliveira Costa.
1858         * elf/tlsdeschtab.h: New file.
1859         * elf/dl-reloc.c (_dl_try_allocate_static_tls): Extract from...
1860         (_dl_allocate_static_tls): ... here.  Rearrange failure path.
1861         (CHECK_STATIC_TLS): Move to...
1862         * elf/dynamic-link.h: ... this file.
1863         (TRY_STATIC_TLS): New macro.
1864         * elf/dl-conflict.c (CHECK_STATIC_TLS, TRY_STATIC_TLS): Override.
1865         * elf/elf.h (R_386_TLS_GOTDESC, R_386_TLS_DESC_CALL,
1866         R_386_TLS_DESC): Define.
1867         (R_X86_64_PC64, R_X86_GOTOFF64, R_X86_64_GOTPC32): Merge from
1868         binutils.
1869         (R_X86_64_GOTPC32_TLSDESC, R_X86_64_TLSDESC_CALL,
1870         R_X86_64_TLSDESC): Define.
1871         (R_386_NUM, R_X86_64_NUM): Adjust.
1872         * sysdeps/i386/Makefile (sysdep-dl-routines, sysdep_routines,
1873         sysdep-rtld-routines): Add tlsdesc and dl-tlsdesc for elf subdir.
1874         (gen-as-const-headers): Add tlsdesc.sym to csu subdir.
1875         * sysdeps/i386/dl-lookupcfg.h: New file.  Introduce _dl_unmap to
1876         release tlsdesc_table.
1877         * sysdeps/i386/dl-machine.h: Include dl-tlsdesc.h.
1878         (elf_machine_type_class): Mark R_386_TLS_DESC as PLT class.
1879         (elf_machine_rel): Handle R_386_TLS_DESC.
1880         (elf_machine_rela): Likewise.
1881         (elf_machine_lazy_rel): Likewise.
1882         (elf_machine_lazy_rela): Likewise.
1883         * sysdeps/i386/dl-tls.h (struct dl_tls_index): Name it.
1884         * sysdeps/i386/dl-tlsdesc.S: New file.
1885         * sysdeps/i386/dl-tlsdesc.h: New file.
1886         * sysdeps/i386/tlsdesc.c: New file.
1887         * sysdeps/i386/tlsdesc.sym: New file.
1888         * sysdeps/i386/bits/linkmap.h (struct link_map_machine): Add
1889         tlsdesc_table.
1890         * sysdeps/x86_64/Makefile (sysdep-dl-routines, sysdep_routines,
1891         sysdep-rtld-routines): Add tlsdesc and dl-tlsdesc for elf subdir.
1892         (gen-as-const-headers): Add tlsdesc.sym to csu subdir.
1893         * sysdeps/x86_64/dl-lookupcfg.h: New file.  Introduce _dl_unmap to
1894         release tlsdesc_table.
1895         * sysdeps/x86_64/dl-machine.h: Include dl-tlsdesc.h.
1896         (elf_machine_runtime_setup): Set up lazy TLSDESC GOT entry.
1897         (elf_machine_type_class): Mark R_X86_64_TLSDESC as PLT class.
1898         (elf_machine_rel): Handle R_X86_64_TLSDESC.
1899         (elf_machine_rela): Likewise.
1900         (elf_machine_lazy_rel): Likewise.
1901         * sysdeps/x86_64/dl-tls.h (struct dl_tls_index): Name it.
1902         (__tls_get_addr): Do not declare for non-shared compiles.
1903         * sysdeps/x86_64/dl-tlsdesc.S: New file.
1904         * sysdeps/x86_64/dl-tlsdesc.h: New file.
1905         * sysdeps/x86_64/tlsdesc.c: New file.
1906         * sysdeps/x86_64/tlsdesc.sym: New file.
1907         * sysdeps/x86_64/bits/linkmap.h (struct link_map_machine): Add
1908         tlsdesc_table for both 32- and 64-bit structs.
1909
1910 2008-05-11  Ulrich Drepper  <drepper@redhat.com>
1911
1912         * elf/dl-tls.c (__tls_get_addr): Optimize by moving slow path in
1913         its own function.  This reduces the frame setup costs and more.
1914
1915 2008-02-11  Joseph Myers  <joseph@codesourcery.com>
1916
1917         [BZ #3406]
1918         * sysdeps/ieee754/flt-32/w_expf.c (o_threshold): Correct value.
1919         * math/libm-test.inc (exp_test): Test 88.72269439697265625.
1920
1921 2008-05-11  Ulrich Drepper  <drepper@redhat.com>
1922
1923         * io/openat.c (__openat_2): Also pass fd to __openat.
1924         * io/openat64.c (__openat64_2): Also pass fd to __openat64.
1925         Patch by Kristian Van Der Vliet <vanders@liqwyd.com>.
1926
1927         * string/tester.c (test_memcmp): Add a few more tests.
1928         Patch by Mats Erik Andersson <ynglingatal@comhem.se>.
1929
1930 2008-05-10  Ulrich Drepper  <drepper@redhat.com>
1931
1932         * nscd/cache.c (cache_add): Before returning with failure and this
1933         is the first use of the record, mark it as unusable.
1934         * nscd/aicache.c: Don't touch the dataset after cache_add returns
1935         reporting a failure.
1936         * nscd/grpcache.c: Likewise
1937         * nscd/hstcache.c: Likewise.
1938         * nscd/initgrcache.c: Likewise.
1939         * nscd/pwdcache.c: Likewise.
1940         * nscd/servicescache.c: Likewise.
1941
1942 2008-05-10  Roland McGrath  <roland@redhat.com>
1943
1944         [BZ #6505]
1945         * sysdeps/unix/sysv/linux/sys/user.h: Replace with #error stub.
1946
1947 2008-05-08  David S. Miller  <davem@davemloft.net>
1948
1949         * misc/truncate64.c (truncate64): Use __truncate not truncate.
1950
1951         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee751_j0l): Use __finitel.
1952         (__ieee754_y0l): Likewise.
1953         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Likewise.
1954         (__ieee754_y1l): Likewise.
1955         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Use __ldexpl.
1956         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Kill bogus prototypes for
1957         frexpl and ldexpl.  math_private.h provides them and the latter
1958         is not even used.
1959         (__log1pl): Use __frexpl.
1960
1961 2008-05-10  Ulrich Drepper  <drepper@redhat.com>
1962
1963         * include/resolv.h: Adjust __libc_res_nquery and __libc_res_nsend
1964         prototypes.
1965         * include/arpa/nameser_compat.h: Define T_UNSPEC.
1966         * nis/Versions (libnss_nis): Export _nss_nis_gethostbyname4_r.
1967         (libnss_nisplus): Export _nss_nisplus_gethostbyname4_r.
1968         * nis/nss_nis/nis-hosts.c (LINE_PARSER): Change to also handle
1969         af==AF_UNSPEC.
1970         (_nss_nis_gethostbyname4_r): New function.
1971         * nis/nss_nisplus/nisplus-hosts.c (_nss_nisplus_parse_hostent):
1972         Change to also handle af==AF_UNSPEC.
1973         (get_tablename): New function.  Use it to avoid duplication.
1974         (_nss_nisplus_gethostbyname4_r): New function.
1975         * nscd/aicache.c (addhstaiX): Use gethostbyname4_r function is
1976         available.
1977         * nss/Versions (libnss_files): Export _nss_files_gethostbyname4_r.
1978         * nss/nss.h: Define struct gaih_addrtuple.
1979         * nss/nss_files/files-hosts.c (LINE_PARSER): Change to also handle
1980         af==AF_UNSPEC.
1981         (_nss_files_gethostbyname4_r): New function.
1982         * resolv/Versions (libnss_dns): Export _nss_dns_gethostbyname4_r.
1983         * resolv/gethnmaddr.c: Adjust __libc_res_nsearch and __libc_res_nquery
1984         calls.
1985         * resolv/res_query.c (__libc_res_nquery): Take two additional
1986         parameters for second answer buffer.  Handle type=T_UNSPEC to mean
1987         look up IPv4 and IPv6.
1988         Change all callers.
1989         * resolv/res_send.c (__libc_res_nsend): Take five aditional parameters
1990         for an additional query and answer buffer.  Pass to send_vc and
1991         send_dg.
1992         (send_vc): Send possibly two requests and receive two answers.
1993         (send_dg): Likewise.
1994         * resolv/nss_dns/dns-host.c: Adjust calls to __libc_res_nsearch and
1995         __libc_res_nquery.
1996         (_nss_dns_gethostbyname4_r): New function.
1997         (gaih_getanswer_slice): Likewise.
1998         (gaih_getanswer): Likewise.
1999         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Adjust
2000         __libc_res_nquery call.
2001         * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r): Likewise.
2002         (_nss_dns_getnetbyname_r): Adjust __libc_res_nsearch call.
2003         * sysdeps/posix/getaddrinfo.c: Use gethostbyname4_r function is
2004         available.
2005
2006 2008-05-05  David S. Miller  <davem@davemloft.net>
2007
2008         * sysdeps/sparc/sparc32/Makefile: Use -mcpu=v7 for initfini.s build.
2009         * sysdeps/sparc/sparc64/Makefile: Use -mcpu=v9 for initfini.s build.
2010
2011 2007-09-14  Samuel Thibault  <samuel.thibault@ens-lyon.org>
2012
2013         Fix termios bit macros.
2014         Move *DLY definitions where they belong, in termios.h.
2015         Add *[0-3] definitions.
2016         Fixes confusion between VT and FF.
2017         * sysdeps/mach/hurd/bits/ioctls.h (NL0, NL1, TAB0, TAB1, TAB2, CR0,
2018         CR1, CR2, CR3, FF0, FF1, BS0, BS1): Undefine these at start if they
2019         are already defined to avoid collision with termios.h.
2020         (NLDLY, TABDLY, TAB3, CRDLY, VTDLY, BSDLY): Remove macros.
2021         * bits/termios.h [__USE_MISC || __USE_XOPEN] (NL0, NL1, TAB0,
2022         TAB1, TAB2, CR0, CR1, CR2, CR3, FF0, FF1, BS0, BS1): Likewise.
2023         [__USE_BSD || __USE_XOPEN] (OCRNL, ONOCR, ONLRET): New macros.
2024         [__USE_MISC || __USE_XOPEN] (NLDLY, NL0, NL1, TABDLY, TAB0, TAB1, TAB2,
2025         TAB3, CRDLY, CR0, CR1, CR2, CR3, FFDLY, FF0, FF1, BSDLY, BS0, BS1,
2026         VTDLY, VT0, VT1): New macros.
2027         [__USE_GNU] (OLCUC): Change value of macro.
2028         [__USE_XOPEN] (OFILL): New macro.
2029         [__USE_BSD] (CRTSCTS): Change value.
2030         (CRTS_IFLOW, CCTS_OFLOW): Change into compatibility macros.
2031         [__USE_BSD] (CDTRCTS, CHWFLOW): New macros.
2032         (B7200, B14400, B28800, B76800): New macros.
2033
2034 2008-05-01  David S. Miller  <davem@davemloft.net>
2035
2036         * sysdeps/unix/sysv/linux/sparc/sparc32/ucontext_i.sym: New file.
2037         * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile [$(subdir) = stdlib]:
2038         (gen-as-const-headers): Add it.
2039         * sysdeps/unix/sysv/linux/sparc/sparc32/getcontext.S: New file.
2040         * sysdeps/unix/sysv/linux/sparc/sparc32/makecontext.c: Likewise.
2041         * sysdeps/unix/sysv/linux/sparc/sparc32/setcontext.S: Likewise.
2042         * sysdeps/unix/sysv/linux/sparc/sparc32/swapcontext.S: Likewise.
2043
2044         * sysdeps/unix/sysv/linux/sparc/sparc32/syscall.S: Add support for
2045         six system call parameters.
2046         * sysdeps/unix/sysv/linux/sparc/sparc64/syscall.S: Likewise.
2047
2048 2008-04-30  Ulrich Drepper  <drepper@redhat.com>
2049
2050         * sysdeps/unix/sysv/linux/bits/resource.h: Define RUSAGE_THREAD and
2051         RUSAGE_LWP.
2052         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
2053         * sysdeps/unix/sysv/linux/alpha/bits/resource.h: Likewise.
2054
2055 2008-04-30  Jakub Jelinek  <jakub@redhat.com>
2056
2057         * stdlib/tst-setcontext.c: Include unistd.h.
2058
2059 2008-04-25  David S. Miller  <davem@davemloft.net>
2060
2061         * sysdeps/unix/sysv/linux/sparc/sparc64/semctl.c (semctl):
2062         Pass "union semun" properly in to sys_ipc, it must be passed
2063         by value, not by reference.
2064
2065 2008-04-22  Jakub Jelinek  <jakub@redhat.com>
2066
2067         * nscd/Makefile (nscd-cflags): Set back to -fpie.
2068         * nscd/nscd.h (mem_in_flight): Add attribute_tls_model_ie.
2069         * nscd/connections.c (mem_in_flight): Likewise.
2070
2071         * nscd/nscd.h (dbs): Make hidden.
2072
2073         * sysdeps/unix/sysv/linux/times.c (__times): Fix check for EFAULT.
2074         Avoid returning -1, return 0 instead.
2075
2076 2008-04-19  Ulrich Drepper  <drepper@redhat.com>
2077
2078         * resolv/res_mkquery.c (__res_nopt): Use NS_PUT16 instead of ns_put16.
2079
2080 2008-04-15  Ulrich Drepper  <drepper@redhat.com>
2081
2082         [BZ #5209]
2083         * sysdeps/unix/sysv/linux/times.c: New file.
2084
2085         [BZ #5381]
2086         * nscd/nscd.h: Define enum in_flight, mem_in_flight, and
2087         mem_in_flight_list variables.  Add new parameter to mempool_alloc
2088         prototype.
2089         * nscd/mem.c (mempool_alloc): Take additional parameter.  Initialize
2090         appropriate mem_in_flight element.
2091         (gc): Take allocations which have not yet been committed to the
2092         database into account.
2093         * nscd/cache.c (cache_add): Add new parameter to mempool_alloc call.
2094         Reset mem_in_flight before returning.
2095         * nscd/connections.c (nscd_run_worker): Initialize mem_in_flight and
2096         cue it up in mem_in_flight_list.
2097         * nscd/aicache.c: Adjust mempool_alloc call.
2098         * nscd/grpcache.c: Likewise.
2099         * nscd/hstcache.c: Likewise.
2100         * nscd/initgrcache.c: Likewise.
2101         * nscd/pwdcache.c: Likewise.
2102         * nscd/servicescache.c: Likewise.
2103         * nscd/Makefile (nscd-flags): Until ld is fixed, use -fpic instead
2104         of -fpie.
2105
2106         * nscd/connections.c (handle_request): Provide better error message
2107         in case SELinux forbids the service.
2108
2109         * version.h (VERSION): Bump to 2.8.90.
2110
2111 2008-04-17  Jakub Jelinek  <jakub@redhat.com>
2112
2113         * sysdeps/unix/sysv/linux/dl-osinfo.h: Include fcntl.h.
2114
2115 2008-04-11  Ulrich Drepper  <drepper@redhat.com>
2116
2117         * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h (__signbitl):
2118         Also use for 32-bit.
2119         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c (__nearbyintl): Use
2120         __nextafter instead of nextafter to avoid local PLT.
2121         * sysdeps/powerpc/fpu/e_sqrt.c: Avoid call to fetestexcept.
2122         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
2123
2124         * scripts/data/localplt-powerpc64-linux-gnu.data: New file.
2125
2126         * sysdeps/powerpc/fpu/fenv_libc.h: Add libm_hidden_proto for
2127         __fe_nomask_env.
2128         * sysdeps/powerpc/fpu/fe_nomask.c: Add libm_hidden_def.  Include
2129         <fenv_libc.h> instead of <fenv.h>.
2130         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c: Likewise.
2131         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c: Likewise.
2132
2133         * sysdeps/powerpc/bits/fenv.h: Make safe for C++.
2134
2135         * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h: New file.
2136         * sysdeps/powerpc/fpu/fegetexcept.c (__fegetexcept): Rename
2137         function from fegetexcept and make old name weak alias.
2138         * include/fenv.h: Declare __fegetexcept.
2139         * sysdeps/powerpc/fpu/fedisblxcpt.c: Use __fegetexcept instead of
2140         fegetexcept.
2141         * sysdeps/powerpc/fpu/feenablxcpt.c: Likewise.
2142         * sysdeps/powerpc/fpu/fraiseexcpt.c (__feraiseexcept): Avoid call
2143         to fetestexcept.
2144         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Use __frexpl
2145         instead of frexpl to avoid local PLT.
2146         * math/s_significandl.c (__significandl): Use __ilogbl instead of
2147         ilogbl to avoid local PLT.
2148         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Use __ldexpl
2149         instead of ldexpl to avoid local PLT.
2150         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (__ieee754_expl): Use
2151         __roundl not roundl to avoid local PLT.
2152         * sysdeps/ieee754/ldbl-128/e_j0l.c: Use function names which avoid
2153         local PLTs.  Use __sincosl instead of separate sinl and cosl
2154         calls.
2155         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
2156
2157         * sysdeps/unix/sysv/linux/configure.in: Bump minimal kernel
2158         version for ppc64 to 2.4.21 since without it makecontext will fail.
2159
2160         * elf/tls-macros.h [__powerpc64__] (__TLS_GET_ADDR): Define according
2161         to the ABI in use.
2162         [__powerpc64__] (TLS_LD): Use __TLS_GET_ADDR instead of
2163         .__tls_get_addr.
2164         [__powerpc64__] (TLS_GD): Likewise.
2165
2166 2007-11-20  Ryan S. Arnold  <rsa@us.ibm.com>
2167
2168         [BZ #4997]
2169         * sysdeps/powerpc/powerpc32/fpu/s_lround.S (__lround): Fixed erroneous
2170         result when x is +/-nextafter(+/-0.5,-/+1) i.e. all 1's in the
2171         mantissa.
2172         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S (__llround):
2173         Likewise.  Also account for when x is an odd number between 2^52
2174         and 2^53-1.
2175         * sysdeps/powerpc/powerpc64/fpu/s_llround.S (__llround): Likewise.
2176         * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S (__llroundf): Likewise.
2177         * math/libm-test.inc (lround_test, llround_test): Added test cases to
2178         detect aforementioned erroneous conditions.
2179
2180 2008-04-11  Jakub Jelinek  <jakub@redhat.com>
2181
2182         * configure.in: Check for -fno-section-anchors in addition to
2183         -fno-toplevel-reorder.
2184
2185 2008-04-11  Ulrich Drepper  <drepper@redhat.com>
2186
2187         * include/features.h (__GLIBC_MINOR__): Bump to 8.
2188
2189         * sysdeps/powerpc/powerpc32/fpu/s_lroundf.S: Remove duplicate comment.
2190         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llroundf.S: Likewise.
2191         * sysdeps/powerpc/powerpc32/power6/fpu/s_llroundf.S: Likewise.
2192         * sysdeps/powerpc/powerpc64/fpu/s_lrint.S: Likewise.
2193         * sysdeps/powerpc/powerpc64/fpu/s_lround.S: Likewise.
2194         * sysdeps/powerpc/powerpc64/fpu/s_lroundf.S: Likewise.
2195
2196 2008-04-11  Jakub Jelinek  <jakub@redhat.com>
2197
2198         [BZ #5443]
2199         * time/era.c: Transform __libc_setlocale_lock into rwlock.
2200         * time/alt_digit.c: Likewise.
2201         * wcsmbs/wcsmbsload.c: Likewise.
2202
2203 2008-04-10  Ulrich Drepper  <drepper@redhat.com>
2204
2205         * version.h (VERSION): Bump to 2.8.
2206
2207         * timzeone/asia: Update from tzdata2008b.
2208         * timezone/backward: Likewise.
2209         * timezone/europe: Likewise.
2210         * timezone/northamerica: Likewise.
2211         * timezone/southamerica: Likewise.
2212         * timezone/iso3166.tab: Likewise.
2213         * timezone/leapseconds: Likewise.
2214         * timezone/zone.tab: Likewise.
2215         * timezone/private.h: Update from tzcode2008a.
2216         * timezone/zdump.c: Likewise.
2217         * timezone/zic.c: Likewise.
2218
2219 2008-01-24  Steven Munroe  <sjmunroe@us.ibm.com>
2220
2221         [BZ #5741]
2222         * sysdeps/powerpc/powerpc64/dl-machine.h (PPC_DCBT, PPC_DCBF):
2223         Define additonal Data Cache Block instruction macros.
2224         (elf_machine_fixup_plt): Add dcbt for opd and plt entries.
2225         Replace dcbst with dcbf and sync with sync/isync.
2226
2227 2008-02-21  Alan Modra  <amodra@bigpond.net.au>
2228
2229         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_type_class):
2230         Always set ELF_RTYPE_CLASS_PLT.
2231         (elf_machine_lookup_noexec_p, elf_machine_lookup_noplt_p): Delete.
2232
2233 2008-04-03  Steven Munroe  <sjmunroe@us.ibm.com>
2234
2235         * sysdeps/powerpc/powerpc32/power4/hp-timing.c: New file.
2236         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: New file.
2237         * sysdeps/powerpc/powerpc64/hp-timing.h [_ARCH_PWR4] (HP_TIMING_NOW):
2238         For ISA 2.01 and later replace mftb with mfspr 268.
2239
2240 2008-02-19  Steven Munroe  <sjmunroe@us.ibm.com>
2241
2242         [BZ #5768]
2243         * sysdeps/powerpc/fpu/Makefile (libm-tests): Add test-powerpc-snan.
2244         * sysdeps/powerpc/fpu/test-powerpc-snan.c: New file.
2245
2246 2008-02-18  Steven Munroe  <sjmunroe@us.ibm.com>
2247
2248         [BZ #5768]
2249         * sysdeps/powerpc/powerpc32/fpu/s_isnan.S: New file.
2250         * sysdeps/powerpc/powerpc32/fpu/s_isnan.c: Removed.
2251         * sysdeps/powerpc/powerpc64/fpu/s_isnan.S: New file.
2252         * sysdeps/powerpc/powerpc64/fpu/s_isnan.c: Removed.
2253
2254 2008-04-10  Jakub Jelinek  <jakub@redhat.com>
2255
2256         * stdlib/tst-makecontext.c (othervar): New variable.
2257         (cf): Test sign extending the argument to long.
2258
2259 2008-03-03  Steven Munroe  <sjmunroe@us.ibm.com>
2260
2261         * sysdeps/powerpc/powerpc32/power5/fpu/s_isnan.S: New file.
2262         * sysdeps/powerpc/powerpc32/power5/fpu/s_isnanf.S: New file.
2263         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnan.S: New file.
2264         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S: New file.
2265         * sysdeps/powerpc/powerpc64/power5/fpu/s_isnan.S: New file.
2266         * sysdeps/powerpc/powerpc64/power6/fpu/s_isnan.S: New file.
2267         * sysdeps/powerpc/powerpc64/power6x/fpu/s_isnan.S: New file.
2268
2269 2008-02-22  Alan Modra  <amodra@bigpond.net.au>
2270
2271         * elf/Makefile (tests): Substitute tests-vis-yes here.
2272         (tests-vis-yes): Delete.
2273         (modules-name, modules-vis-yes): Similarly.
2274
2275 2008-02-12  Pete Eberlein  <eberlein@us.ibm.com>
2276
2277         [BZ #4407]
2278         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
2279         Preserve sign in signgamp when x is zero.
2280
2281 2007-10-26  Steven Munroe  <sjmunroe@us.ibm.com>
2282
2283         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: New File.
2284         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.c: Removed.
2285         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: New File.
2286         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.c: Removed.
2287         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: New File.
2288         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: New File.
2289
2290 2008-04-09  Ulrich Drepper  <drepper@redhat.com>
2291
2292         [BZ #4314]
2293         * sysdeps/i386/i686/memcpy.S: Optimize copying of equally aligned
2294         buffers.
2295
2296         [BZ #5209]
2297         * sysdeps/unix/sysv/syscalls.list: The times syscall doesn't have
2298         a reserved error value.
2299
2300         * stdlib/tst-makecontext.c: Change parameter to cf to negative
2301         value to check for correct sign extension.
2302
2303         [BZ #5436]
2304         * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
2305         Copy 64-bit parameter values even though this is not required in
2306         the standard.
2307
2308         * sysdeps/unix/sysv/linux/x86_64/vfork.S (__vfork): Record return
2309         PC save.
2310
2311 2008-02-14  Daniel Jacobowitz  <dan@codesourcery.com>
2312
2313         * sysdeps/unix/sysv/linux/i386/vfork.S (__vfork): Record return
2314         PC save.
2315
2316 2008-04-09  Jakub Jelinek  <jakub@redhat.com>
2317
2318         * nss_files/files-XXX.c (_nss_files_getXXent_r): Restore saved errno.
2319
2320 2008-04-09  Ulrich Drepper  <drepper@redhat.com>
2321
2322         [BZ #5998]
2323         * libio/iofwrite.c (_IO_fwrite): Return correct count if flushing
2324         in line-buffered stream failed.
2325         * libio/iofwrite_u.c (fwrite_unlocked): Likewise.
2326
2327 2008-04-08  Ulrich Drepper  <drepper@redhat.com>
2328
2329         [BZ #6024]
2330         * scripts/abi-versions.awk: If the version specified by
2331         --enable-oldest-abi is older than the first version for this
2332         architecture, use the default version.
2333
2334         * locale/programs/ld-collate.c (collate_read): Ignore script lines
2335         as well when ignoring the whole category.
2336
2337 2008-04-07  Ulrich Drepper  <drepper@redhat.com>
2338
2339         [BZ #6042]
2340         * sysdeps/unix/sysv/linux/net/ethernet.h: Add a few more
2341         ETHERTYPE_* definitions.
2342         Patch partly by Aurelien Jarno <aurelien@aurel32.net>.
2343
2344 2008-04-07  Jakub Jelinek  <jakub@redhat.com>
2345
2346         * stdlib/mbtowc.c (__no_r_state): Remove.
2347         (mbtowc): New static state variable.  Use it instead of
2348         __no_r_state.
2349         * stdlib/wctomb.c (__no_r_state): Remove extern decl.
2350         (__wctomb_state): New hidden variable.
2351         (wctomb): Use __wctomb_state instead of __no_r_state.
2352         * debug/wctomb_chk.c (__no_r_state): Remove extern decl.
2353         (__wctomb_state): New extern decl.
2354         (__wctomb_chk): Use __wctomb_state instead of __no_r_state.
2355
2356 2008-04-07  Ulrich Drepper  <drepper@redhat.com>
2357
2358         [BZ #5475]
2359         * resolv/res_init.c: Handle scope IDs in resolv.conf.
2360
2361 2008-04-07  Jakub Jelinek  <jakub@redhat.com>
2362
2363         * malloc/mtrace.pl: Use $@ instead of $* to keep perl 5.10 quiet.
2364
2365 2008-04-06  Ulrich Drepper  <drepper@redhat.com>
2366
2367         * po/nl.po: Update from translation team.
2368
2369 2008-03-31  Ulrich Drepper  <drepper@redhat.com>
2370
2371         [BZ #6007]
2372         * string/strfry.c: Handle empty strings again.
2373
2374 2008-03-30  Ulrich Drepper  <drepper@redhat.com>
2375
2376         [BZ #5443]
2377         * intl/dcigettext.c (__dcigettext): Get reader lock for locale data
2378         before looking for translation.
2379         * locale/duplocale.c: Transform __libc_setlocale_lock into rwlock.
2380         * locale/freelocale.c: Likewise.
2381         * locale/newlocale.c: Likewise.
2382         * locale/setlocale.c: Likewise.
2383         Based partially on a patch by ryo@np.css.fujitsu.com.
2384
2385 2008-03-30  Jakub Jelinek  <jakub@redhat.com>
2386
2387         * intl/dcigettext.c (_nl_find_msg): Reread nconversions after
2388         acquiring wrlock.  Do conv_tab allocation while holding lock.
2389         * intl/Makefile: Add rules to build and run tst-gettext6.
2390         * intl/tst-gettext6.c: New test.
2391         * intl/tst-gettext6.sh: New file.
2392
2393 2008-03-30  Ulrich Drepper  <drepper@redhat.com>
2394
2395         * po/nl.po: Update from translation team.
2396
2397         * sysdeps/unix/opendir.c (__alloc_dir): If allocation fails for size
2398         provided through st_blksize, try the default size before giving up.
2399
2400 2008-03-29  Ulrich Drepper  <drepper@redhat.com>
2401
2402         * stdio-common/vfprintf.c (vfprintf): Correct overflow test.
2403
2404         [BZ #5939]
2405         * sysdeps/posix/tempname.c (__gen_tempname): Correct flag selection.
2406
2407         * posix/getopt.c (_getopt_internal_r): Remove old POSIX-demanded
2408         error message.  POSIX today does not require the messages to be in
2409         a specific form.  Suggested by Jim Meyering <jim@meyering.net>.
2410
2411         [BZ #5979]
2412         * sunrpc/auth_unix.c: Unify printed strings.
2413         * sunrpc/clnt_tcp.c: Likewise.
2414         * sunrpc/clnt_udp.c: Likewise.
2415         * sunrpc/clnt_unix.c: Likewise.
2416         * sunrpc/svc_tcp.c: Likewise.
2417         * sunrpc/svc_udp.c: Likewise.
2418         * sunrpc/svc_unix.c: Likewise.
2419         * sunrpc/xdr.c: Likewise.
2420         * sunrpc/xdr_array.c: Likewise.
2421         * sunrpc/xdr_rec.c: Likewise.
2422         * sunrpc/xdr_ref.c: Likewise.
2423         * locale/programs/ld-time.c (time_finish): Unify messages.
2424         * locale/programs/locfile.c (handle_copy): Fix typo.
2425         * nscd/nscd.c (options): Fix typo.
2426
2427         [BZ #5995]
2428         * stdlib/strtod_l.c: Use correct sign for result in one more
2429         underflow case.
2430         Patch by Eric Blake <ebb9@byu.net>.
2431
2432 2008-03-27  Jakub Jelinek  <jakub@redhat.com>
2433
2434         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Add open
2435         and creat system calls.
2436         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove open system
2437         call.
2438         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Remove open and creat
2439         system calls.
2440         * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Likewise.
2441         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
2442         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
2443
2444 2008-03-27  Ulrich Drepper  <drepper@redhat.com>
2445
2446         * sysdeps/unix/sysv/linux/bits/local_lim.h: Undefined ARG_MAX if
2447         <linux/limits.h> has defined it.
2448         * sysdeps/unix/sysv/linux/sys/param.h: Define NCARGS to the legacy
2449         ARG_MAX value and prevent ARG_MAX from being defined by the kernel
2450         headers.
2451         * sysdeps/unix/sysv/linux/sysconf.c: Define legacy_ARG_MAX and use
2452         it instead of ARG_MAX.
2453
2454 2008-03-25  Jakub Jelinek  <jakub@redhat.com>
2455
2456         * posix/gai.conf: Fix comment for scope nullbits.
2457         * sysdeps/posix/getaddrinfo.c (gaiconf_init): If /bits is not present,
2458         default to 128 bits for v4 mapped addresses.
2459
2460 2008-03-07  Martin Schwidefsky  <schwidefsky@de.ibm.com>
2461
2462         * sysdeps/s390/fpu/fegetenv.c (fegetenv): Remove PTRACE_PEEKUSER
2463         ptrace call to get the ieee_instruction_pointer from the kernel.
2464         * sysdeps/s390/fpu/fesetenv.c (fesetenv): Remove PTRACE_POKEUSER
2465         ptrace call to set the ieee_instructtion_pointer.
2466         * sysdeps/unix/sysv/linux/s390/sys/user.h (struct _user_regs_struct):
2467         Add comment that ieee_instruction_pointer is always 0.
2468
2469 2008-03-09  Andreas Jaeger  <aj@suse.de>
2470
2471         [BZ #5857]
2472         * sysdeps/ieee754/dbl-64/s_rint.c (__rint): Handle j0==18.
2473         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Likewise.
2474         Patch by Mark Elliott <mark.h.elliott@lmco.com>.
2475
2476         * math/libm-test.inc (nearbyint_test): Add new test cases from #5857.
2477         (rint_test): Likewise.
2478
2479 2008-03-24  Ulrich Drepper  <drepper@redhat.com>
2480
2481         * nis/nis_call.c (nis_server_cache_search): Save errno around stat
2482         call.
2483         (__nisfind_server): Similar for open readColdStartFile call.
2484         Patch partially by Jim Meyering.
2485         * nss/nss_files/files-XXX.c (_nss_files_getXXent_r): Save errno
2486         around internal_setent call.
2487
2488         * po/vi.po: New Vietnamese translation.
2489
2490         * sysdeps/unix/sysv/linux/adjtime.c: Correctly use
2491         ADJ_OFFSET_SS_READ.
2492
2493         * sysdeps/unix/sysv/linux/bits/sched.h: Add new CLONE_* flags,
2494         remove CLONE_STOPPED.
2495
2496 2008-02-10  Jim Meyering  <meyering@redhat.com>
2497
2498         Remove useless "if" before "free":
2499         * elf/ldconfig.c (parse_conf_include): Likewise.
2500         * gmon/gmon.c (weak_alias): Likewise.
2501         * iconv/gconv_conf.c (__gconv_get_path): Likewise.
2502         * inet/rcmd.c (__validuser2_sa): Likewise.
2503         * intl/bindtextdom.c (set_binding_values): Likewise.
2504         * intl/loadmsgcat.c (_nl_load_domain, _nl_unload_domain): Likewise.
2505         * libio/genops.c (save_for_backup): Likewise.
2506         * libio/wgenops.c (save_for_wbackup): Likewise.
2507         * locale/programs/ld-collate.c (collate_read): Likewise.
2508         * locale/programs/linereader.c (get_string): Likewise.
2509         * nis/nss_compat/compat-pwd.c (give_pwd_free): Likewise.
2510         * nis/nss_compat/compat-spwd.c (give_spwd_free): Likewise.
2511         * resolv/res_debug.c (do_section): Likewise.
2512         * sunrpc/xdr_sizeof.c (x_inline, xdr_sizeof): Likewise.
2513         * sysdeps/mach/hurd/if_index.c (libc_hidden_def): Likewise.
2514         * sysdeps/posix/sprofil.c (__sprofil): Likewise.
2515         * time/lc-time-cleanup.c (_nl_cleanup_time): Likewise.
2516         * time/tzset.c (tzset_internal): Likewise.
2517
2518 2008-03-18  Jakub Jelinek  <jakub@redhat.com>
2519
2520         * sysdeps/unix/sysv/linux/dl-sysdep.h: Use __ASSEMBLER__ instead
2521         of ASSEMBLER.
2522
2523 2008-03-11  Ulrich Drepper  <drepper@redhat.com>
2524
2525         [BZ #5903]
2526         * iconv/iconv_charmap.c (charmap_conversion): Pass name of output file
2527         not stream for output file.  Open output file here.
2528         * iconv/iconv_prog.c (process_lock): Take pointer to output stream
2529         and output file name.
2530         (process_fd): Likewise.
2531         (process_file): Likewise.
2532         (main): Adjust callers of changed functions.
2533         * iconv/iconv_prog.h: Adjust prototype.
2534
2535 2008-03-09  Andreas Jaeger  <aj@suse.de>
2536
2537         [BZ #5753]
2538         * sysdeps/ia64/ieee754.h: Use protected namespace
2539         __BIG_ENDIAN/__LITTLE_ENDIAN.
2540         * sysdeps/ieee754/ieee754.h: Likewise.
2541         Patch by Aurelien Jarno <aurelien@aurel32.net>.
2542
2543 2008-03-08  Roland McGrath  <roland@frob.com>
2544
2545         * hurd/hurdsig.c (_hurd_internal_post_signal): When normal rules would
2546         ignore a signal that came from a machine exception, treat it as a
2547         fatal core-dump signal instead.
2548         Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
2549
2550         * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler):
2551         Clear DF bit in thread state's eflags.
2552         Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
2553
2554 2008-03-08  Ulrich Drepper  <drepper@redhat.com>
2555
2556         [BZ #5774]
2557         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Consume closing brace
2558         of NAN(...) sequence.
2559         * stdlib/Makefile (tests): Add tst-strtod6.
2560         * stdlib/tst-strtod6.c: New file.
2561
2562         * inet/inet6_opt.c (inet6_opt_init): Check extlen for overflow.
2563
2564         [BZ #5762]
2565         * posix/getopt.c (_getopt_internal_r): Clarify error message by
2566         putting offending option character in quotes.  Clean up error
2567         messages.
2568         * po/be.po: Adjust msgstr in translation file.
2569         * po/bg.po: Likewise.
2570         * po/ca.po: Likewise.
2571         * po/cs.po: Likewise.
2572         * po/da.po: Likewise.
2573         * po/de.po: Likewise.
2574         * po/es.po: Likewise.
2575         * po/fr.po: Likewise.
2576         * po/hr.po: Likewise.
2577         * po/ko.po: Likewise.
2578         * po/nl.po: Likewise.
2579         * po/rw.po: Likewise.
2580         * po/sk.po: Likewise.
2581         * po/sv.po: Likewise.
2582         * po/tr.po: Likewise.
2583         * po/zh_CN.po: Likewise.
2584         * po/zh_TW.po: Likewise.
2585
2586         [BZ #5760]
2587         * inet/inet6_opt.c (inet6_opt_init): Fix ip6h_len computation.
2588         Patch by Roland Bless <roland@bless.de>.
2589
2590         * sysdeps/unix/sysv/linux/dl-sysdep.c: Avoid unnecessary code for
2591         .o file.
2592         * elf/Makefile (routines): Add dl-sysdep.
2593         (elide-routines.os): Likewise.
2594
2595 2008-03-07  Ulrich Drepper  <drepper@redhat.com>
2596
2597         [BZ #5786]
2598         * elf/dl-sysdep.c: Undefine ROUND after use.
2599         * sysdeps/generic/ldsodefs.h [HAVE_DL_DISCOVER_OSVERSION]
2600         (struct rtld_global_ro): Add _dl_tls_get_addr_soft element.
2601         * elf/rtld.c (rtld_global_ro): Initialize _dl_discover_osversion.
2602         * sysdeps/unix/sysv/linux/dl-osinfo.h: Move _dl_discover_osversion
2603         to ...
2604         * sysdeps/unix/sysv/linux/dl-sysdep.c: ...here.
2605         * sysdeps/unix/sysv/linux/dl-sysdep.h: Declare _dl_discover_osversion
2606         if necessary.
2607         * sysdeps/unix/sysv/linux/sysconf.c: Handle _SC_ARG_MAX here.
2608
2609         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Add
2610         _dl_tls_get_addr_soft element.
2611         * elf/rtld.c (rtld_global_ro): Initialize _dl_tls_get_addr_soft.
2612         * elf/Versions (ld): Don't export _dl_tls_get_addr_soft.
2613         * dlfcn/dlinfo.c (dlinfo_doit): Access dl_tls_get_addr_soft through
2614         GLRO.
2615         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise.
2616         * elf/dl-tls.c (_dl_tls_get_addr_soft): Use attribute_hidden instead
2617         of internal_function.
2618
2619         * stdlib/Makefile (aux): Add tens_in_limb.
2620         * stdlib/strtod_l.c: Move _tens_in_limb definition to...
2621         * stdlib/tens_in_limb.c: ...here.  New file.
2622
2623         [BZ #5778]
2624         * sysdeps/unix/sysv/linux/pathconf.h: Declare
2625         __statfs_chown_restricted.
2626         * sysdeps/unix/sysv/linux/fpathconf.c: Call __statfs_chown_restricted
2627         for _PC_CHOWN_RESTRICTED.
2628         * sysdeps/unix/sysv/linux/pathconf.c: Likewise.
2629         Implement __statfs_chown_restricted.
2630         * sysdeps/unix/sysv/linux/bits/posix_opt.h: Change
2631         _POSIX_CHOWN_RESTRICTED value to zero.
2632         * io/tst-fchownat.c: Correctly handle _POSIX_CHOWN_RESTRICTED
2633         defined to zero.
2634
2635         * sysdeps/x86_64/rtld-memset.c: New file.
2636
2637 2008-02-26  Harsha Jagasia  <harsha.jagasia@amd.com>
2638
2639         * sysdeps/x86_64/cacheinfo.c (NOT_USED_RIGHT_NOW): Remove ifdef guards.
2640
2641         * sysdeps/x86_64/memset.S: Rewrite non-SSE code path as tuned for AMD
2642         Barcelona machine.  Make default fall through branch of
2643         __x86_64_preferred_memory_instruction check as the integer code path.
2644
2645 2007-10-15  H.J. Lu  <hongjiu.lu@intel.com>
2646
2647         * sysdeps/x86_64/cacheinfo.c
2648         (__x86_64_preferred_memory_instruction): New variable.
2649         (init_cacheinfo): Initialize __x86_64_preferred_memory_instruction.
2650
2651         * sysdeps/x86_64/memset.S: Rewrite.
2652
2653 2008-03-04  Jakub Jelinek  <jakub@redhat.com>
2654
2655         * include/stdio.h (__asprintf_chk, __dprintf_chk,
2656         __obstack_printf_chk): New prototypes.
2657         (__vasprintf_chk, __vdprintf_chk,
2658         __obstack_vprintf_chk): Likewise.
2659         Add libc_hidden_proto.
2660         * libio/obprintf.c
2661         (_IO_obstack_jumps): No longer static, add attribute_hidden.
2662         * libio/bits/stdio-ldbl.h (__asprintf_chk, __dprintf_chk,
2663         __obstack_printf_chk, __vasprintf_chk, __vdprintf_chk,
2664         __obstack_vprintf_chk): Add __LDBL_REDIR_DECL.
2665         * libio/bits/stdio2.h (__asprintf_chk, __dprintf_chk,
2666         __obstack_printf_chk, __vasprintf_chk, __vdprintf_chk,
2667         __obstack_vprintf_chk): New prototypes.
2668         (asprintf, __asprintf, dprintf, obstack_printf, vasprintf, vdprintf,
2669         obstack_vprintf): New inlines.
2670         * debug/dprintf_chk.c: New file.
2671         * debug/vdprintf_chk.c: New file.
2672         * debug/asprintf_chk.c: New file.
2673         * debug/vasprintf_chk.c: New file.
2674         * debug/obprintf_chk.c: New file.
2675         * debug/tst-chk1.c (do_test): Add asprintf and obstack_printf tests.
2676         * debug/Versions (__asprintf_chk, __dprintf_chk, __obstack_printf_chk,
2677         __vasprintf_chk, __vdprintf_chk, __obstack_vprintf_chk): Export
2678         @@GLIBC_2.8.
2679         * debug/Makefile: Build asprintf_chk, vasprintf_chk, dprintf_chk,
2680         vdprintf_chk and obprintf_chk, set CFLAGS for them.
2681         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c (__nldbl___vasprintf_chk,
2682         __nldbl___vdprintf_chk, __nldbl___obstack_vprintf_chk): Add
2683         libc_hidden_proto.
2684         * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl___vasprintf_chk,
2685         __nldbl___vdprintf_chk, __nldbl___obstack_vprintf_chk): New prototypes.
2686         * sysdeps/ieee754/ldbl-opt/Versions (__nldbl___asprintf_chk,
2687         __nldbl___vasprintf_chk, __nldbl___dprintf_chk, __nldbl___vdprintf_chk,
2688         __nldbl___obstack_printf_chk, __nldbl___obstack_vprintf_chk): Export
2689         @@GLIBC_2.8.
2690         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add asprintf_chk,
2691         vasprintf_chk, dprintf_chk, vdprintf_chk, obstack_printf_chk and
2692         obstack_vprintf_chk.
2693         * sysdeps/ieee754/ldbl-opt/nldbl-obstack_vprintf_chk.c: New file.
2694         * sysdeps/ieee754/ldbl-opt/nldbl-dprintf_chk.c: New file.
2695         * sysdeps/ieee754/ldbl-opt/nldbl-obstack_printf_chk.c: New file.
2696         * sysdeps/ieee754/ldbl-opt/nldbl-asprintf_chk.c: New file.
2697         * sysdeps/ieee754/ldbl-opt/nldbl-vdprintf_chk.c: New file.
2698         * sysdeps/ieee754/ldbl-opt/nldbl-vasprintf_chk.c: New file.
2699
2700 2008-03-04  Ulrich Drepper  <drepper@redhat.com>
2701
2702         [BZ #5779]
2703         * misc/sys/queue.h: Add STAILQ_CONCAT and TAILQ_CONCAT definitions.
2704         Patch by Roy Marples <roy@marples.name>.
2705
2706         [BZ #5736]
2707         * malloc/malloc.c: Fix typo in comment.
2708
2709         [BZ #5627]
2710         * locale/iso-639.def: Add Shuswap.
2711
2712 2008-02-25  Jakub Jelinek  <jakub@redhat.com>
2713
2714         [BZ #5790]
2715         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr2_r): Don't
2716         overwrite *h_errnop/*errnop values from getanswer_r in case of
2717         failure.
2718
2719 2008-03-03  Ulrich Drepper  <drepper@redhat.com>
2720
2721         [BZ #5818]
2722         * nscd/connections.c (dbs): Add initializers for .suggested_module.
2723         (verify_persistent_db): Remove one unnecessary test and add a new one
2724         for bad configuration.
2725         (nscd_init): Improve error reported when persistent database cannot
2726         be reused.
2727         * nscd/nscd.h (DEFAULT_SUGGESTED_MODULE): Define.
2728         * nscd/nscd_conf.c (nscd_parse_file): Provide default values for
2729         .suggested_module and .max_db_size and case config file says the
2730         values are zero.
2731         * nscd/nscd_helper.c (get_mapping): Fail if hash table module is zero.
2732
2733         [BZ #5854]
2734         * nis/ypclnt.c (yp_order): Fix handling of return value of
2735         do_ypcall_tr call.
2736         Patch by Jeff Moyer <jmoyer@redhat.com>.
2737
2738         * po/fr.po: Update from translation team.
2739
2740 2008-02-22  Andreas Jaeger  <aj@suse.de>,
2741             Carlos O'Donell <carlos@systemhalted.org>
2742
2743         [BZ #5012]
2744         * FAQ.in: Describe why glibc needs to be compiled with
2745         optimization.
2746
2747 2008-02-19  Roland McGrath  <roland@redhat.com>
2748
2749         * elf/elf.h (SHT_GNU_ATTRIBUTES): New macro.
2750
2751 2008-02-15  Ulrich Drepper  <drepper@redhat.com>
2752
2753         [BZ #5737]
2754         * resolv/netdb.h: Make NI_MAXHOST and NI_MAXSERV available when
2755         __USE_MISC is defined.
2756
2757 2008-02-10  Ulrich Drepper  <drepper@redhat.com>
2758
2759         * sysdeps/unix/sysv/linux/sys/timerfd.h: New file.
2760         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers): Add
2761         sys/timerfd.h.
2762         * sysdeps/unix/sysv/linux/syscalls.list: Add timerfd_create,
2763         timerfd_gettime, timerfd_settime.
2764         * sysdeps/unix/sysv/linux/Versions: Add timerfd_create,
2765         timerfd_gettime, timerfd_settime for GLIBC_2.8.
2766
2767 2008-02-08  Roland McGrath  <roland@redhat.com>
2768
2769         * elf/elf.h (NT_PPC_SPE): New macro.
2770
2771 2008-02-06  Roland McGrath  <roland@redhat.com>
2772
2773         * Makerules ($(common-objpfx)sysd-rules):
2774         Depend on $(sysdep-makeconfigs).
2775
2776 2008-01-31  Roland McGrath  <roland@redhat.com>
2777
2778         [BZ #5442]
2779         * configure.in: Use -print-file-name if it yields a directory,
2780         for each of include and include-fixed.
2781         * configure: Regenerated.
2782
2783         * Makeconfig (sysd-rules-targets): New variable.
2784         * sysdeps/unix/make-syscalls.sh: Use it in the rules emitted.
2785         * sysdeps/unix/Makefile (omit-deps): Append variants for each target.
2786
2787 2008-01-30  Roland McGrath  <roland@redhat.com>
2788
2789         * manual/libc.texinfo: Update back-cover text.
2790
2791         * elf/elf.h (NT_386_TLS): New macro.
2792
2793 2008-01-29  Roland McGrath  <roland@redhat.com>
2794
2795         * Makeconfig (sysd-rules-patterns): New variable.
2796         * Makerules ($(common-objpfx)sysd-rules): Drive the loop from that.
2797         (check-inhibit-asm): New canned sequence, replaces ...
2798         (open-check-inhibit-asm, close-check-inhibit-asm): ... these, removed.
2799         * elf/rtld-Rules ($(objpfx)rtld-%.os): Use $(rtld-CPPFLAGS) in commands.
2800         (rtld-CPPFLAGS): Renamed from CPPFLAGS-rtld.
2801         (CFLAGS-rtld): Variable removed.
2802
2803 2008-01-24  Roland McGrath  <roland@redhat.com>
2804
2805         * configure.in: Let configure fragments set base_os.
2806         * configure: Regenerated.
2807
2808 2008-01-22  Ulrich Drepper  <drepper@redhat.com>
2809
2810         * po/ko.po: Update from translation team.
2811
2812 2008-01-12  H.J. Lu  <hongjiu.lu@intel.com>
2813
2814         * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Use short for fnstsw.
2815
2816 2008-01-12  Andreas Jaeger  <aj@suse.de>
2817
2818         [BZ #5040]
2819         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h (enum EPOLL_EVENTS):
2820         Add EPOLLRDHUP.
2821
2822 2008-01-20  Samuel Thibault  <samuel.thibault@ens-lyon.org>
2823
2824         * hurd/hurdsock.c (_hurd_socket_server): Return the standard
2825         error EAFNOSUPPORT rather than non-standard EPFNOSUPPORT.
2826         * sunrpc/bindrsvprt.c (bindresvport): Likewise.
2827
2828 2007-10-23  Alexandre Oliva  <aoliva@redhat.com>
2829
2830         * include/link.h (FORCED_DYNAMIC_TLS_OFFSET): Define.
2831         * elf/dl-close.c (_dl_close): Check for it.
2832         * elf/dl-reloc.c (CHECK_STATIC_TLS): Likewise.
2833         (_dl_allocate_static_tls): Likewise.
2834         * elf/dl-tls.c (_dl_allocate_tls_init): Likewise.
2835         (__tls_get_addr): Protect from race conditions in setting l_tls_offset
2836         to it.
2837         * elf/tst-tls16.c: New file.
2838         * elf/tst-tlsmod16a.c: New file.
2839         * elf/tst-tlsmod16b.c: New file.
2840         * elf/Makefile: Add rules to build and run tst-tls16.
2841
2842 2008-01-16  Ulrich Drepper  <drepper@redhat.com>
2843
2844         [BZ #5628]
2845         * bits/shm.h: Fix comment describing shmid_ds.
2846         * sysdeps/gnu/bits/shm.h: Likewise.
2847         * sysdeps/unix/sysv/linux/alpha/bits/shm.h: Likewise.
2848         * sysdeps/unix/sysv/linux/bits/shm.h: Likewise.
2849         * sysdeps/unix/sysv/linux/ia64/bits/shm.h: Likewise.
2850         * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
2851         * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
2852         * sysdeps/unix/sysv/linux/sh/bits/shm.h: Likewise.
2853         * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
2854         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Likewise.
2855         Patch by Hareesh Nagarajan <hareesh.nagarajan@gmail.com>.
2856
2857         [BZ #5607]
2858         * conform/data/fcntl.h-data: Fix posix_fadvise and posix_fallocate
2859         prototypes.
2860         * conform/data/limits.h-data: Adjust limits changed in v6 and add
2861         additional suffixes.
2862         * conform/data/mqueue.h-data: Fix typo in mq_curmsgs entry.
2863         Add optional functions mq_timedreceive and mq_timedsend.
2864         * conform/data/netdb.h-data: Add more AI_* and EAI_* constants.
2865         * conform/data/pthread.h-data: Fix prototype of
2866         pthread_condattr_setclock.  pthread_sigmask is not required in v6.
2867         * conform/data/semaphore.h-data: Allow time.h definitions.
2868         * conform/data/signal.h-data: Likewise.
2869         * conform/data/stdio.h-data: getw and putw are not required in v6.
2870         * conform/data/stdlib.h-data: Change setstate prototype.
2871         * conform/data/string.h-data: Fix strerror_r prototype.
2872         * conform/data/time.h-data: Fix typo in TIMER_ABSTIME definition.
2873         * conform/data/unistd.h-data: pthread_atfork not required in v6.
2874         Fix readlink prototype.
2875         * conform/data/netinet/in.h-data: Add const to in6addr_any and
2876         in6addr_loopback.
2877         * inet/netinet/in.h: Cleanup namespace.
2878         * posix/regex.h: Likewise.
2879         * resolv/netdb.h: Likewise.
2880         * sysdeps/unix/sysv/linux/bits/in.h: Likewise.
2881         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
2882         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
2883         * sysdeps/posix/getaddrinfo.c (default_labels): Adjust for change
2884         of names of in in6_addr.
2885         (default_precedence): Likewise.
2886         * sysdeps/unix/sysv/linux/cmsg_nxthdr.c: Include <stddef.h> for
2887         NULL definition.
2888
2889 2008-01-15  Ulrich Drepper  <drepper@redhat.com>
2890
2891         * conform/data/fmtmsg.h-data: Add missing allows.
2892         * conform/data/ftw.h-data: Likewise.
2893         * conform/data/inttypes.h-data: Likewise.
2894         * conform/data/math.h-data: Likewise.
2895         * conform/data/signal.h-data: Likewise.
2896         * conform/data/net/if.h-data: Likewise.
2897         * conform/data/netinet/in.h-data: Likewise.
2898         * conform/data/sys/socket.h-data: Likewise.
2899
2900         [BZ #5614]
2901         * string/bits/string2.h (__strtok_r_1c): Always update *__NEXTP.
2902         (__strtok_r): Simplify.
2903         * string/tester.c (test_strtok_r): Add test case for futile search
2904         with single-character seach string.
2905
2906 2008-01-12  Ulrich Drepper  <drepper@redhat.com>
2907
2908         * po/ko.po: Update from translation team.
2909
2910 2008-01-11  Andreas Jaeger  <aj@suse.de>
2911
2912         [BZ #5600]
2913         * sysdeps/unix/sysv/linux/sys/signalfd.h (struct
2914         signalfd_siginfo): Use 64-bit type for ssi_ptr to sync with Linux
2915         kernel header.
2916
2917 2008-01-10  Ulrich Drepper  <drepper@redhat.com>
2918
2919         * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Store result of
2920         native interface lookup in all the relevant places.
2921
2922 2008-01-10  Jakub Jelinek  <jakub@redhat.com>
2923             Ulrich Drepper  <drepper@redhat.com>
2924
2925         * sysdeps/posix/getaddrinfo.c (sort_results): Remove service_order
2926         field.  Use sockaddr_in6 for source_addr.
2927         (get_scope): Change type of parameter to sockaddr_in6.  Adjust.
2928         (match_prefix): Likewise.
2929         (get_label): Likewise.
2930         (get_precedence): Likewise.
2931         (rfc3484_sort): Change to use indirect access to results array.
2932         Adjust to use of sockaddr_in6.  Replace service_order test with
2933         simple index comparison.
2934         (getaddrinfo): Define order array.  Initialize it.  Don't initialize
2935         service_order field.  Adjust qsort_t calls.  Access sorted result
2936         array indirectly through order array.
2937         * posix/tst-rfc3484.c: Adjust for change of rfc3484_sort.
2938         * posix/tst-rfc3484-2.c: Likewise.
2939         * posix/tst-rfc3484-3.c: Likewise.
2940
2941 2008-01-09  Ulrich Drepper  <drepper@redhat.com>
2942
2943         [BZ #5541]
2944         * sunrpc/rpc_thread.c (__rpc_thread_destroy): Also free xports and
2945         pollfd structures.
2946         Patch by André Cruz.
2947
2948         [BZ #5545]
2949         * sunrpc/clnt_perr.c (clnt_sperror): Don't use fixed size buffer.
2950         (clnt_spcreateerror): Likewise.
2951
2952         [BZ #5553]
2953         * malloc/malloc.c (public_mALLOc): Set ar_ptr when trying main_arena.
2954         (public_mEMALIGn): Likewise.
2955         Patch mostly by Daniel Jacobowitz.
2956
2957 2008-01-09  Jakub Jelinek  <jakub@redhat.com>
2958
2959         * sysdeps/unix/sysv/linux/i386/makecontext.S (__makecontext): Avoid
2960         clobbering memory at or above uc_stack.ss_sp + uc_stack.ss_size.
2961         * stdlib/Makefile: Add rules to build and run tst-makecontext2.
2962         * stdlib/tst-makecontext2.c: New test.
2963
2964 2008-01-08  Jakub Jelinek  <jakub@redhat.com>
2965
2966         * iconv/loop.c (UPDATE_PARAMS): Define to empty statement if not
2967         defined.
2968         (REINIT_PARAMS): Likewise.  Undefine before end of file.
2969         (STANDARD_TO_LOOP_ERR_HANDLER): Use UPDATE_PARAMS before calling
2970         transliteration hooks and REINIT_PARAMS afterwards.
2971         * iconvdata/iso-2022-jp.c (BODY): Use a separate variable for
2972         status.
2973         (REINIT_PARAMS): Define.
2974         * iconvdata/ibm1364.c (REINIT_PARAMS): Likewise.
2975         * iconvdata/ibm930.c (REINIT_PARAMS): Likewise.
2976         * iconvdata/ibm933.c (REINIT_PARAMS): Likewise.
2977         * iconvdata/ibm935.c (REINIT_PARAMS): Likewise.
2978         * iconvdata/ibm937.c (REINIT_PARAMS): Likewise.
2979         * iconvdata/ibm939.c (REINIT_PARAMS): Likewise.
2980         * iconvdata/iso-2022-cn.c (REINIT_PARAMS): Likewise.
2981         * iconvdata/iso-2022-cn-ext.c (REINIT_PARAMS): Likewise.
2982         * iconvdata/iso-2022-jp-3.c (REINIT_PARAMS): Likewise.
2983         * iconvdata/iso-2022-kr.c (REINIT_PARAMS): Likewise.
2984         * iconvdata/Makefile: Add rules to build and run tst-iconv7.c.
2985         * iconvdata/tst-iconv7.c: New test.
2986
2987 2008-01-07  Ulrich Drepper  <drepper@redhat.com>
2988
2989         * libio/stdio.h (vscanf): Fix definition for loser compilers.
2990
2991 2008-01-05  Jakub Jelinek  <jakub@redhat.com>
2992
2993         [BZ #5112]
2994         * nscd/connections.c (restart): Fix condition.
2995
2996 2008-01-03  Jakub Jelinek  <jakub@redhat.com>
2997
2998         * ctype/ctype.h (__ctype_b_loc, __ctype_tolower_loc,
2999         __ctype_toupper_loc): Add __THROW.
3000
3001 2008-01-02  Ulrich Drepper  <drepper@redhat.com>
3002
3003         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Fix
3004         recognition of interface family.
3005
3006         * posix/getconf.c: Update copyright year.
3007         * nss/getent.c: Likewise.
3008         * iconv/iconvconfig.c: Likewise.
3009         * iconv/iconv_prog.c: Likewise.
3010         * elf/ldconfig.c: Likewise.
3011         * catgets/gencat.c: Likewise.
3012         * csu/version.c: Likewise.
3013         * elf/ldd.bash.in: Likewise.
3014         * elf/sprof.c (print_version): Likewise.
3015         * locale/programs/locale.c: Likewise.
3016         * locale/programs/localedef.c: Likewise.
3017         * nscd/nscd.c (print_version): Likewise.
3018         * debug/xtrace.sh: Likewise.
3019         * malloc/memusage.sh: Likewise.
3020         * malloc/mtrace.pl: Likewise.
3021         * debug/catchsegv.sh: Likewise.
3022
3023 2007-12-26  Ulrich Drepper  <drepper@redhat.com>
3024
3025         * nss/nsswitch.c (__nss_lookup): Actually use alternative name in
3026         second lookup.
3027
3028 2007-12-23  Ulrich Drepper  <drepper@redhat.com>
3029
3030         * sysdeps/x86_64/cacheinfo.c (intel_02_known): New entry 0x3f.
3031         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
3032
3033 2007-12-17  Roland McGrath  <roland@redhat.com>
3034
3035         * inet/ether_line.c (ether_line): Remove unused variable.
3036
3037 2007-12-17  Samuel Thibault  <samuel.thibault@ens-lyon.org>
3038
3039         * login/forkpty.c (forkpty): Add const qualifier to parameters termp
3040         and winp.
3041         * login/openpty.c (openpty): Likewise.
3042         * login/pty.h (openpty, forkpty): Likewise.
3043         * manual/terminal.texi (openpty, forkpty): Likewise.
3044
3045 2007-12-17  Ulrich Drepper  <drepper@redhat.com>
3046
3047         * malloc/malloc.c (public_cALLOc): For arenas other than
3048         main_arena, count all bytes inside the mprotect_size range of the
3049         heap as uninitialized.
3050
3051 2007-12-16  Ulrich Drepper  <drepper@redhat.com>
3052
3053         * elf/tst-execstack.c (do_test): Don't fail if SELinux forbids
3054         executable stacks.
3055
3056         * malloc/malloc.c (public_mTRIm): Iterate over all arenas and call
3057         mTRIm for all of them.
3058         (mTRIm): Additionally iterate over all free blocks and use madvise
3059         to free memory for all those blocks which contain at least one
3060         memory page.
3061         * malloc/tst-trim1.c: New file.
3062         * malloc/Makefile (tests): Add tst-trim1.
3063
3064         * malloc/malloc.c (do_check_malloc_state): Minimal cleanups.
3065
3066 2007-12-14  Ulrich Drepper  <drepper@redhat.com>
3067
3068         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INTERNAL_SYSCALL_ERROR_P):
3069         First cast argument to long
3070         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_gettimeofday):
3071         Return long.
3072         (__vdso_clock_gettime): Likewise.
3073         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Functions
3074         return long.
3075
3076 2007-12-13  Ulrich Drepper  <drepper@redhat.com>
3077
3078         * locale/nl_langinfo.c (nl_langinfo): Just call __nl_langinfo_l.
3079         * locale/nl_langinfo_l.c: Real implementation, copied from
3080         nl_langinfo.c.
3081         * include/langinfo.h: Add libc_hidden_proto for __nl_langinfo_l.
3082
3083 2007-12-01  Jim Meyering  <meyering@redhat.com>
3084
3085         * posix/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
3086         that would inhibit utf8-optimization of a regexp containing line-
3087         or buffer-anchors, e.g., `^', `$'.
3088
3089 2007-12-12  Ulrich Drepper  <drepper@redhat.com>
3090
3091         * time/bug-getdate1.c (do_test): Don't use century values which
3092         aren't valid on 32-bit systems.
3093
3094 2007-12-12  Jakub Jelinek  <jakub@redhat.com>
3095
3096         * sysdeps/i386/i486/bits/string.h (memmove): Define as macro.
3097         (memmove): Rename to __memmove_g, with __asm__ ("memmove").
3098         * sysdeps/s390/bits/string.h (__strlen_g, __strcpy_g, __strncpy_g,
3099         __strcat_g, __strncat_g): Add __asm__.
3100
3101 2007-12-12  Ulrich Drepper  <drepper@redhat.com>
3102
3103         [BZ #5477]
3104         * io/fchmodat.c: Fix typo in stub_warning use.
3105         Patch by Petr Salinger.
3106
3107 2007-12-11  Ulrich Drepper  <drepper@redhat.com>
3108
3109         * iconvdata/hp-thai8.c: New file.
3110         * iconvdata/Makefile: Add rules for hp-thai8.c.
3111         * iconvdata/tst-tables.sh: Add entry for HP-THAI8.
3112         * iconvdata/gconv-modules: Likewise.
3113
3114         [BZ #5464]
3115         * iconvdata/hp-greek8.c: New file.
3116         * iconvdata/Makefile: Add rules for hp-greek8.c.
3117         * iconvdata/tst-tables.sh: Add entry for HP-GREEK8.
3118         * iconvdata/gconv-modules: Likewise.
3119
3120         [BZ #5463]
3121         * iconvdata/hp-turkish8.c: New file.
3122         * iconvdata/Makefile: Add rules for hp-turkish8.c.
3123         * iconvdata/tst-tables.sh: Add entry for HP-TURKISH8.
3124         * iconvdata/gconv-modules: Likewise.
3125
3126         * malloc/arena.c (grow_heap): Split out code to shrink heap into...
3127         (shrink_heap): ... this new function.
3128         (heap_trim): Call shrink_heap instead of grow_heap.
3129
3130         * malloc/malloc.c (_int_malloc): sYSMALLOc might fail, in this
3131         case don't call alloc_perturb.
3132
3133 2007-12-10  Ulrich Drepper  <drepper@redhat.com>
3134
3135         * sysdeps/unix/sysv/linux/adjtime.c: Use ADJ_OFFSET_SS_READ if
3136         possible.
3137         * sysdeps/unix/sysv/linux/kernel-features.h
3138         (__ASSUME_ADJ_OFFSET_SS_READ): Define for 2.6.24.
3139         * sysdeps/unix/sysv/linux/sys/timex.h (ADJ_OFFSET_SS_READ): Define.
3140
3141 2007-12-08  Ulrich Drepper  <drepper@redhat.com>
3142
3143         [BZ #5424]
3144         * stdio-common/vfprintf.c: Do not overflow when adding to done.
3145         * stdio-common/Makefile (tests): Add bug22.
3146         * stdio-common/bug22.c: New file.
3147
3148         [BZ #5451]
3149         * time/getdate.c: Fix filling in default values.
3150         * time/bug-getdate1.c: New file.
3151         * time/Makefile: Add rules to build and run bug-getdate1.
3152
3153         * iconvdata/ebcdic-is-friss.c: Use 8bit-gap instead of 8bit-generic.
3154         * iconvdata/ebcdic-es.c: Likewise.
3155         * iconvdata/ebcdic-es-a.c: Likewise.
3156         * iconvdata/ebcdic-uk.c: Likewise.
3157         * iconvdata/iso8859-16.c: Likewise.
3158         * iconvdata/viscii.c: Likewise.
3159         * iconvdata/iso8859-9e.c: Likewise.
3160         * iconvdata/Makefile: Adjust appropriately.
3161
3162         [BZ #5428]
3163         * wcsmbs/wchar.h: Unconditionally undefine __need_mbstate and
3164         __need_wint_t.
3165
3166 2007-12-07  Ulrich Drepper  <drepper@redhat.com>
3167
3168         [BZ #5427]
3169         * iconvdata/hp-roman9.c: New file.
3170         * iconvdata/Makefile: Add rules for hp-roman9.c.
3171         * iconvdata/tst-tables.sh: Add HP-ROMAN9.
3172         * iconvdata/gconv-modules: Likewise.
3173
3174         * iconvdata/hp-roman8.c: Use 8bit-gap instead of 8bit-generic.
3175         * iconvdata/Makefile: Adjust appropriately.
3176
3177         [BZ #5441]
3178         * stdio-common/vfscanf.c (_IO_vfwscanf): Don't free ptrs_to_free
3179         structure, it's allocated with alloca.
3180         * stdio-common/Makefile (tests): Add bug21.
3181         * stdio-common/bug21.c: New file.
3182
3183 2007-12-06  Aurelien Jarno  <aurelien@aurel32.net>
3184
3185         [BZ #5452]
3186         * sysdeps/unix/sysv/linux/bits/sched.h: Use __extension__
3187         keyword for gcc's braced-groups.
3188
3189 2007-12-07  Ulrich Drepper  <drepper@redhat.com>
3190
3191         [BZ #5454]
3192         * inet/ether_line.c: Strip hostname of whitespaces.
3193         * inet/Makefile (tests): Add tst-ether_line.
3194         * inet/tst-ether_line.c: New file.
3195
3196 2007-12-03  Ulrich Drepper  <drepper@redhat.com>
3197
3198         [BZ #5439]
3199         * sysdeps/unix/sysv/linux/sys/signalfd.h: Fix use of __nonnull.
3200
3201         [BZ #5435]
3202         * sysdeps/unix/sysv/linux/i386/makecontext.S: Align stack.
3203
3204         * stdlib/tst-setcontext.c: Catch the case where the links gets
3205         messed up and we do not reach main again.
3206
3207         * po/ca.po: Update from translation team.
3208
3209 2007-11-26  Ulrich Drepper  <drepper@redhat.com>
3210
3211         * posix/unistd.h: Declare fsync also for __USE_XOPEN2K.
3212         * posix/regex.h (REG_ENOSYS): Likewise.
3213         * wcsmbs/wchar.h: Define __need_file also for __USE_XOPEN2K.
3214
3215 2007-11-25  Ulrich Drepper  <drepper@redhat.com>
3216
3217         * nscd/nscd.h (MAX_STACK_USE): Define.
3218         * nscd/mem.c (MAX_STACK_USE): Remove definition here.
3219         (gc): Initialize stack_used based on allocation in prune_cache.
3220         * nscd/cache.c (prune_cache): Use heap for mark array if necessary.
3221         Clear array before use.
3222
3223         * nscd/aicache.c (addhstaiX): Update statistics counter in case
3224         memory allocation failed.
3225         * nscd/hstcache.c (cache_addhst): Likewise.
3226         * nscd/grpcache.c (cache_addgr): Likewise.
3227         * nscd/servicescache.c (cache_addserv): Likewise.
3228         * nscd/pwdcache.c (cache_addpw): Likewise.
3229         * nscd/initgrcache.c (addinitgroupsX): Likewise.
3230
3231 2007-11-23  Ulrich Drepper  <drepper@redhat.com>
3232
3233         * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Add open
3234         and creat system calls.
3235
3236         * sysdeps/unix/sysv/linux/check_native.c: Include <asm/types.h>.
3237
3238 2007-11-23  Martin Schwidefsky  <schwidefsky@de.ibm.com>
3239
3240         * sysdeps/unix/sysv/linux/Makefile [subdir=inet] (sysdep_headers):
3241         Add netiucv/iucv.h.
3242         * sysdeps/unix/sysv/linux/netiucv/iucv.h: New file.
3243         * sysdeps/unix/sysv/linux/opensock.c (__opensock): Add AF_IUCV
3244         protocol.
3245         * sysdeps/unix/sysv/linux/sa_len.c (__libc_sa_len): Likewise.
3246         * sysdeps/unix/sysv/linux/s390/opensock.c: New file.
3247         * sysdeps/unix/sysv/linux/s390/sa_len.c: New file.
3248
3249 2007-11-22  Martin Schwidefsky  <schwidefsky@de.ibm.com>
3250
3251         * sysdeps/s390/bits/string.h (strlen, strcpy, strncpy, strcat,
3252         strncat): Define as macros to avoid compile errors.
3253
3254         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list:  Add open and
3255         creat entries.
3256
3257 2007-11-22  Ulrich Drepper  <drepper@redhat.com>
3258
3259         [BZ #5382]
3260         * nscd/nscd.h (NSCD_THREAD_STACKSIZE): Define.
3261         * nscd/connections.c (start_threads): Use NSCD_THREAD_STACKSIZE.
3262         * nscd/mem.c (gc): Don't allocate arrays on the stack if they can
3263         overflow it.
3264         Partially based on a patch by Petr Baudis <pasky@suse.cz>.
3265
3266         * sysdeps/unix/sysv/linux/nscd_setup_thread.c (setup_thread):
3267         Return zero in case the thread library is not NPTL.
3268
3269         [BZ #5375]
3270         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix locking when
3271         initializing interface list.
3272
3273         [BZ #5378]
3274         * nis/nss_compat/compat-initgroups.c (getgrent_next_nss): Don't
3275         use result of nss_getgrgid_r if nothing was found.  For other
3276         error return with a failure.
3277         Partially based on a patch by Petr Baudis <pasky@suse.cz>.
3278
3279         * locale/programs/ld-collate.c (collate_read): Fix loop to match
3280         macro name.
3281
3282 2007-11-19  Ulrich Drepper  <drepper@redhat.com>
3283
3284         * sysdeps/posix/getaddrinfo.c (defaults_scopes, scopes): New variables.
3285         (get_scope): For IPv4 scope, use scopes table.
3286         (fini): Free scopes table if necessary.
3287         (free_scopelist): New function.
3288         (scopecmp): New function.
3289         (gaiconf_init): Also handle scopev4 entries.
3290         * posix/tst-rfc3484.c (do_test): Initialize scopes.
3291         * posix/tst-rfc3484-2.c (do_test): Likewise.
3292         * posix/gai.conf: Document scopev4 defaults.
3293         * posix/Makefile (tests): Add tst-rfc3484-3.
3294         * posix/tst-rfc3484-3.c: New file.
3295
3296         * sysdeps/posix/getaddrinfo.c (default_labels): Describe entry for
3297         Teredo tunnels.
3298         * posix/gai.conf: Update for current default tables.
3299
3300 2007-11-19  Ulrich Drepper  <drepper@redhat.com>
3301
3302         * po/tr.po: Update from translation team.
3303
3304 2007-11-18  Roland McGrath  <roland@frob.com>
3305
3306         * manual/arith.texi (Remainder Functions): Spelling fix.
3307         From Shaun Silk <genix@mysoul.com.au>.
3308
3309         * sysdeps/mach/hurd/bits/fcntl.h (O_CLOEXEC): Fix value.
3310
3311 2007-11-17  Ulrich Drepper  <drepper@redhat.com>
3312
3313         * po/zh_CN.po: Update from translation team.
3314
3315         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
3316         Add sys/signalfd.h and sys/eventfd.h.
3317
3318 2007-11-15  Bruno Haible  <bruno@clisp.org>
3319
3320         [BZ #5346]
3321         * intl/dcigettext.c (struct known_translation_t): Turn msgid into a
3322         union.
3323         (transcmp): Use the appropriate part of s1->msgid and s2->msgid.
3324         (DCIGETTEXT): Change the allocation of the 'search' variable so that
3325         it needs only fixed stack space. Delay the initialization of
3326         msgid_len until it is needed.
3327
3328 2007-11-15  Andreas Jaeger  <aj@suse.de>
3329
3330         * sysdeps/ieee754/dbl-64/sincos.tbl: Fix size of union.
3331         Reported by Christoph Quirin Lauter <christoph.lauter@ens-lyon.fr>.
3332
3333 2007-11-15  Ulrich Drepper  <drepper@redhat.com>
3334
3335         * po/ko.po: Update from translation team.
3336
3337 2007-11-14  Ulrich Drepper  <drepper@redhat.com>
3338
3339         * sysdeps/unix/sysv/linux/check_native.c (__check_native): Simplify
3340         significantly.  The device type is also part of the ifinfomsg data.
3341
3342         * po/sv.po: Update from translation team.
3343         * po/nl.po: Likewise.
3344
3345         * nscd/cache.c (prune_cache): If cache is empty, instruct caller
3346         to wake up in 24 hours.
3347
3348         * nscd/gai.c (__ioctl): Define.  Include check_native.c.
3349
3350 2007-11-13  Ulrich Drepper  <drepper@redhat.com>
3351
3352         * po/cs.po: Update from translation team.
3353         * po/pl.po: Likewise.
3354
3355         * include/ifaddrs.h: Remove in6ai_temporary.
3356         (struct in6addrinfo): Add index element.
3357         Declare __check_native.
3358         * inet/Makefile (aux): Add check_native.
3359         * sysdeps/unix/sysv/linux/check_native.c: New file.
3360         * sysdeps/unix/sysv/linux/check_pf.c: No need to recognize
3361         IFA_F_TEMPORARY.  Pass back ifa_index.
3362         * sysdeps/posix/getaddrinfo.c: Remove netlink compatibility code.
3363         (rfc3484_sort): Add new parameter.  Implement rule 7 correctly:
3364         call __check_native if necessary.
3365         (getaddrinfo): Fill in index field.  Use qsort_r instead of qsort
3366         to sort addresses.  Pass information about the results.
3367         * posix/tst-rfc3484.c: Adjust for addition of index field and change
3368         of rfc3484_sort interface.
3369         * posix/tst-rfc3484-2.c: Likewise.
3370
3371         * stdlib/stdlib.h: Define __compar_d_fn_t.  Declare qsort_r.
3372         * include/stdlib.h: Add hidden_proto for qsort_t and adjust protoype
3373         for _quicksort.
3374         * stdlib/msort.c (qsort): Now a wrapper around qsort_r.
3375         (qsort_r): Renamed from qsort.  Take additional parameter and pass it
3376         on as third parameter to compare function and _quicksort.
3377         * stdlib/qsort.c (_quicksort): Take additional parameter and pass on
3378         to the compare function.
3379         * stdlib/Versions [libc] (GLIBC_2.8): Add qsort_r.
3380         * Versions.def: Add GLIBC_2.8 for libc.
3381
3382         * posix/tst-rfc3484.c: Adjust for addition of prefixlen field.
3383         * posix/tst-rfc3484-2.c: Likewise.
3384
3385         * include/kernel-features.h: Moved to...
3386         * sysdeps/mach/hurd/kernel-features.h: ...here.
3387
3388 2007-09-13  H.J. Lu  <hongjiu.lu@intel.com>
3389
3390         * sysdeps/i386/i586/memcpy_chk.S: New file.
3391         * sysdeps/i386/i586/mempcpy_chk.S: Likewise.
3392         * sysdeps/i386/i586/memset_chk.S: Likewise.
3393
3394 2007-11-12  Ulrich Drepper  <drepper@redhat.com>
3395
3396         * include/ifaddrs.c (struct in6addrinfo): Add prefixlen field.
3397         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Always return
3398         list of interfaces.  Also store prefix length.
3399         * sysdeps/posix/getaddrinfo.c (sort_result): Add prefixlen element.
3400         (rfc3484_sort): In rule 9, for IPv4 addresses count only matching
3401         prefix if source and destination address are in the same subnet.
3402         (getaddrinfo): Always call __check_pf.  Fill in prefixlen field.
3403         Always look for matching record in in6ai list.
3404         Correct source_addr_len value for IPv6->IPv4 converted records.
3405
3406 2007-11-11  Roland McGrath  <roland@frob.com>
3407
3408         * include/kernel-features.h: New file.
3409
3410 2007-11-10  Ulrich Drepper  <drepper@redhat.com>
3411
3412         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Avoid unnecessary
3413         complications for 64-bit platforms.
3414
3415         * sysdeps/unix/sysv/linux/open64.c: Move __open64_2 implementation to..
3416         * sysdeps/unix/sysv/linux/open64_2.c: ...here.  New file.
3417         * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines): Add
3418         open64_2.
3419         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Add open and creat
3420         entries.
3421         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
3422         * sysdeps/wordsize-64/alphasort.c: New file.
3423         * sysdeps/wordsize-64/alphasort64.c: New file.
3424         * sysdeps/wordsize-64/fseeko.c: New file.
3425         * sysdeps/wordsize-64/fseeko64.c: New file.
3426         * sysdeps/wordsize-64/ftello.c: New file.
3427         * sysdeps/wordsize-64/ftello64.c: New file.
3428         * sysdeps/wordsize-64/ftw.c: New file.
3429         * sysdeps/wordsize-64/ftw64.c: New file.
3430         * sysdeps/wordsize-64/iofgetpos.c: New file.
3431         * sysdeps/wordsize-64/iofgetpos64.c: New file.
3432         * sysdeps/wordsize-64/iofopen.c: New file.
3433         * sysdeps/wordsize-64/iofopen64.c: New file.
3434         * sysdeps/wordsize-64/iofsetpos.c: New file.
3435         * sysdeps/wordsize-64/iofsetpos64.c: New file.
3436         * sysdeps/wordsize-64/lockf.c: New file.
3437         * sysdeps/wordsize-64/lockf64.c: New file.
3438         * sysdeps/wordsize-64/mkostemp.c: New file.
3439         * sysdeps/wordsize-64/mkostemp64.c: New file.
3440         * sysdeps/wordsize-64/mkstemp.c: New file.
3441         * sysdeps/wordsize-64/mkstemp64.c: New file.
3442         * sysdeps/wordsize-64/scandir.c: New file.
3443         * sysdeps/wordsize-64/scandir64.c: New file.
3444         * sysdeps/wordsize-64/tmpfile.c: New file.
3445         * sysdeps/wordsize-64/tmpfile64.c: New file.
3446         * sysdeps/wordsize-64/versionsort.c: New file.
3447         * sysdeps/wordsize-64/versionsort64.c: New file.
3448         * sysdeps/unix/sysv/linux/wordsize-64/aio_read.c: New file.
3449         * sysdeps/unix/sysv/linux/wordsize-64/aio_read64.c: New file.
3450         * sysdeps/unix/sysv/linux/wordsize-64/aio_write.c: New file.
3451         * sysdeps/unix/sysv/linux/wordsize-64/aio_write64.c: New file.
3452         * sysdeps/unix/sysv/linux/wordsize-64/creat64.c: New file.
3453         * sysdeps/unix/sysv/linux/wordsize-64/getdirentries.c: New file.
3454         * sysdeps/unix/sysv/linux/wordsize-64/getdirentries64.c: New file.
3455         * sysdeps/unix/sysv/linux/wordsize-64/lio_listio.c: New file.
3456         * sysdeps/unix/sysv/linux/wordsize-64/lio_listio64.c: New file.
3457         * sysdeps/unix/sysv/linux/wordsize-64/open64.c: New file.
3458         * sysdeps/unix/sysv/linux/wordsize-64/openat.c: New file.
3459         * sysdeps/unix/sysv/linux/wordsize-64/openat64.c: New file.
3460
3461         * crypt/sha256-crypt.c: Fix a comment.
3462         * crypt/sha512-crypt.c: Likewise.
3463
3464 2007-11-07  H.J. Lu  <hongjiu.lu@intel.com>
3465
3466         * sysdeps/x86_64/memset.S: Add sfence after movnti.
3467
3468 2007-11-07  Ulrich Drepper  <drepper@redhat.com>
3469
3470         [BZ #5277]
3471         * iconv/loop.c (STANDARD_TO_LOOP_ERR_HANDLER): If conversion failed
3472         because output buffer is too small break, don't loop.
3473         * iconvdata/Makefile (tests): Add bug-iconv6.
3474         * iconvdata/bug-iconv6.c: New file.
3475
3476 2007-11-06  Ulrich Drepper  <drepper@redhat.com>
3477
3478         * stdio-common/vfprintf.c (vfprintf): Compute necessary buffer size
3479         with size_t type.
3480         * stdio-common/printf_fp.c (__print_fp): Change chars_needed type to
3481         size_t.  Add casts where needed.
3482
3483         * nscd/selinux.c (nscd_request_avc_has_perm): When compiled with
3484         old headers, don't call avc_has_perm if we don't have the
3485         permission information.
3486
3487 2007-11-05  Daniel Jacobowitz  <dan@codesourcery.com>
3488
3489         * elf/rtld.c (dl_main): Use the page size to find the map start.
3490
3491 2007-11-05  Ulrich Drepper  <drepper@redhat.com>
3492
3493         * time/tzfile.c (__tzfile_read): Fix check for version 0 data files.
3494         Patch by Szymon Siwek <sls@poczta.wp.pl>.
3495
3496         * nscd/aicache.c (addhstaiX): Check herrno after IPv4 lookup only
3497         when the lookup call failed.
3498
3499         * nscd/nscd.h (struct database_dyn): Rename prunelock to prune_lock.
3500         Add prune_cond and wakeup_time.
3501         (CACHE_PRUNE_INTERNAL): Define.
3502         Update declarations of prune_cache and setup_thread.
3503         * nscd/connections.c (dbs): Update initializers.
3504         (CACHE_PRUNE_INTERNAL): Moved to nscd.h.
3505         (nscd_init): Default number of threads is now 4.
3506         (invalidate_cache): Take lock before calling prune_cache.
3507         (handle_request): If SELinux forbids the request, say so.
3508         (readylist_cond): Use static initializer.
3509         (nscd_run_prune): New function.  Used only by pruning threads.
3510         (nscd_run_worder): Renamed from nscd_run.  Remove support for pruning
3511         here.
3512         (fd_ready): Update nscd_run reference.
3513         (start_threads): No need to initialize readylist_cond.
3514         Start pruning threads separately.
3515         * nscd/nscd_setup_thread.c: Change return value type to int and always
3516         return 0.
3517         * sysdeps/unix/sysv/linux/nscd_setup_thread.c: Change return value type
3518         to int and return nonzero value if we can use the TID address hack.
3519         * nscd/cache.c (cache_add): If next wakeup time of cleanup thread for
3520         the database is later than the new entry's timeout, update the
3521         wakeup time and wake the cleanup thread.
3522         (prune_cache): Return seconds the next entry in the database is still
3523         valid.  Remove locking for pruning here.
3524         * nscd/nscd.conf: Document default number of threads.
3525
3526 2007-10-31  Ulrich Drepper  <drepper@redhat.com>
3527
3528         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Make sure
3529         stack is properly aligned for the target function.
3530         Correct unwind info.
3531
3532         * elf/rtld.c (dl_main): Initialize stack and pointer guard early
3533         when using auditing libraries.
3534
3535 2007-10-29  Ulrich Drepper  <drepper@redhat.com>
3536
3537         * resolv/Versions [libresolv] (GLIBC_PRIVATE): Add
3538         _nss_dns_getnetbyaddr2_r.
3539         * resolv/nss_dns/dns-host.c: Define _nss_dns_getnetbyaddr2_r.  Pass
3540         extra parameter to getanswer_r.
3541         (_nss_dns_getnetbyaddr_r): Now a wrapper around
3542         _nss_dns_getnetbyaddr2_r.
3543
3544         * nscd/Makefile (nscd-modules): Replace gethstbynm2_r with
3545         gethstbynm3_r.
3546         * nscd/gethstbynm2_r.c: Remove.
3547         * nscd/gethstbynm3_r.c: New file.
3548         * nscd/aicache.c (addhstaiX): Use __gethostbyaddr2_r instead of
3549         __gethostbyaddr_r.
3550         * nscd/gethstbyad_r.c: Generate __gethostbyaddr2_r function.  Define
3551         __gethostbyaddr_r compatibility wrapper.
3552         * nscd/hstcache.c (cache_addhst): Add ttl parameter.  Use it when
3553         determining timeout of entry.
3554         (lookup): Take new parameter and pass it to __gethostbyname3_r and
3555         __gethostbyaddr2_r.
3556         (addhstbyX): Pass reference to variable for TTL to lookup and
3557         cache_addhst.
3558         * nss/Versions [glibc] (GLIBC_PRIVATE): Export __nss_passwd_lookup2,
3559         __nss_group_lookup2, __nss_hosts_lookup2, __nss_services_lookup2,
3560         and __nss_next2.  Remove __nss_services_lookup.
3561         * nss/XXX-lookup.c: Name function now *_lookup2.  Add new parameter.
3562         Add compat wrapper.
3563         * nss/getXXbyYY_r.c: Changes to call new *_lookup2 functions and
3564         __nss_next2.
3565         * nss/getXXent_r.c: Likewise.
3566         * nss/getnssent_r.c: Likewise.
3567         * nss/nsswitch.c (__nss_lookup): Add new parameter.  If first function
3568         does not exist in module, try the optional second name.
3569         (__nss_next2): New function.
3570         (__nss_next): Now wrapper around __nss_next2.
3571         * nss/nsswitch.h: Adjust __nss_lookup prototype.
3572         Declare __nss_next2.
3573         Adjust definition of db_lookup_function type.
3574         * nss/service-lookup.c: Define NO_COMPAT.
3575         * include/netdb.h: Declare __gethostbyaddr2_r and __gethostbyname3_r.
3576         * inet/ether_hton.c: Use __nss_next2 instead of __nss_next.
3577         * inet/ether_ntoh.c: Likewise.
3578         * sunrpc/netname.c: Likewise.
3579         * sunrpc/publickey.c: Likewise.
3580         * inet/getnetgrent.c: Likewise.  Adjust calls to __nss_lookup.
3581         * inet/gethstbyad_r.c (DB_LOOKUP_FCT): Change to __nss_hosts_lookup2.
3582         * inet/gethstbynm2_r.c (DB_LOOKUP_FCT): Likewise.
3583         * inet/gethstbynm_r.c (DB_LOOKUP_FCT): Likewise.
3584         * inet/gethstent_r.c (DB_LOOKUP_FCT): Likewise.
3585
3586         * nscd/aicache.c (addhstaiX): Fix default TTL handling.
3587
3588         * inet/getnetgrent_r.c (setup): Encrypt static pointer.
3589
3590 2007-10-28  Ulrich Drepper  <drepper@redhat.com>
3591
3592         [BZ #5204]
3593         * crypt/sha256c-test.c: Define TIMEOUT to 6 for ancient hardware.
3594         * crypt/sha512c-test.c: Likewise.
3595
3596         [BZ #5225]
3597         * stdio-common/vfscanf.c (_IO_vfwscanf): Don't misuse wp pointer
3598         to keep track of end of %[ format string element.
3599         * stdio-common/Makefile (tests): Add bug20.
3600         * stdio-common/bug20.c: New file.
3601
3602         [BZ #5222]
3603         * elf/dl-load.c (_dl_rtld_di_serinfo): Correct handling of short
3604         path elements in counting mode.
3605
3606 2007-10-27  Andreas Jaeger  <aj@suse.de>
3607
3608         [BZ #5040]
3609         * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLRDHUP): Add value.
3610
3611         [BZ #3112]
3612         * sysdeps/ia64/backtrace.c (init): Free shared library if incorrect.
3613         (__cleanup): Free shared library when exiting.
3614         * sysdeps/i386/backtrace.c (init): Free shared library if incorrect.
3615         (__cleanup): Free shared library when exiting.
3616
3617 2006-04-14  H.J. Lu  <hongjiu.lu@intel.com>
3618
3619         [BZ #2549]
3620         * math/libm-test.inc (check_float_internal): Support
3621         denormalized return.
3622
3623 2007-10-23  Andreas Jaeger  <aj@suse.de>
3624
3625         [BZ #5208]
3626         * sysdeps/unix/sysv/linux/readahead.c (__readahead): Use
3627         __LONG_LONG_PAIR to handle little endian byte order.
3628         Suggested by abhishekrai@google.com
3629
3630 2007-10-27  Ulrich Drepper  <drepper@redhat.com>
3631
3632         * malloc/arena.c [!NO_THREADS]: Use ATFORK_MEM if defined.
3633
3634 2007-10-26  Ulrich Drepper  <drepper@redhat.com>
3635
3636         * nscd/cache.c (prune_cache): Move test for modified file outside
3637         of locking.
3638
3639 2007-10-21  Andreas Jaeger  <aj@suse.de>
3640
3641         * manual/texinfo.tex: Update to latest version.
3642
3643         * manual/sysinfo.texi (System Parameters): Fix Formatting.
3644
3645         * manual/arith.texi (Status bit operations): Fix formatting.
3646
3647         * manual/errno.texi (Error Messages): Fix formatting.
3648
3649         * manual/sysinfo.texi (System Parameters): Fix formatting.
3650
3651         * manual/libc.texinfo: Update VERSION and UPDATED.
3652
3653 2007-10-19  Roland McGrath  <roland@redhat.com>
3654
3655         * elf/Makefile ($(objpfx)ld.so): Use $(AWK).
3656
3657 2007-10-06  David S. Miller  <davem@davemloft.net>
3658
3659         * configure.in: Add sparcv9v2 and sparc64v2.
3660         * scripts/config.sub: Likewise.
3661         * configure: Regenerate.
3662         * elf/elf.h (HWCAP_SPARC_N2): New.
3663         * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Bump to 8.
3664         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add 'v9v2'.
3665         (HWCAP_IMPORTANT): Add HWCAP_SPARC_N2.
3666         * sysdeps/sparc/sparc32/sparcv9/sparcv9v2/memcpy.S: New file.
3667         * sysdeps/sparc/sparc32/sparcv9/sparcv9v2/memset.S: New file.
3668         * sysdeps/sparc/sparc64/sparcv9v2/memcpy.S: New file.
3669         * sysdeps/sparc/sparc64/sparcv9v2/memset.S: New file.
3670
3671 2007-10-18  Ulrich Drepper  <drepper@redhat.com>
3672
3673         * sunrpc/clnt_udp.c (clntudp_call): Don't block in recvfrom call
3674         even if the poll result indicates there is data to read.
3675         Patch by Jeff Moyer <jmoyer@redhat.com>.
3676
3677 2007-10-18  Roland McGrath  <roland@redhat.com>
3678
3679         * elf/elf.h (NT_PPC_VMX): New macro.
3680
3681 2007-10-17  Ulrich Drepper  <drepper@redhat.com>
3682
3683         * version.h (VERSION): Set to 2.7.90.
3684
3685 2007-10-17  Jakub Jelinek  <jakub@redhat.com>
3686
3687         * sysdeps/x86_64/memset.S (bzero): Renamed to __bzero.  Add
3688         weak_alias.
3689
3690 2007-10-17  Roland McGrath  <roland@frob.com>
3691
3692         * sysdeps/mach/hurd/bits/fcntl.h [__USE_GNU__] (F_DUPFD_CLOEXEC): New.
3693         * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Implement it.
3694
3695 2007-10-17  Ulrich Drepper  <drepper@redhat.com>
3696
3697         * version.h (VERSION): Bump to 2.7.
3698         * include/features.h (__GLIBC_MINOR__): Bump to 7.
3699
3700         [BZ #5186]
3701         * time/tzset.c (__tz_convert): Don't force testing for a change of
3702         TZ if not called from localtime.  But then also see whether the
3703         file changed, in case __use_tzfile is set.
3704
3705         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define F_DUPFD_CLOEXEC.
3706         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
3707         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
3708         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
3709         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
3710         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
3711         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h:  Likewise.
3712         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
3713
3714 2007-10-17  Jakub Jelinek  <jakub@redhat.com>
3715
3716         * sysdeps/posix/getaddrinfo.c (getaddrinfo): When sorting addresses
3717         and admin selects to be able to replace the gai.conf file, lock
3718         data structures around the qsort call.
3719
3720 2007-10-17  Ulrich Drepper  <drepper@redhat.com>
3721
3722         * sysdeps/x86_64/cacheinfo.c: Comment out code added in support of
3723         new memset.
3724         * sysdeps/x86_64/memset.S: Revert to old version for now.  The cost is
3725         too high for the improvements.  Implement bzero unconditionally for
3726         use in libc.
3727
3728 2007-10-17  Ulrich Drepper  <drepper@redhat.com>
3729             Jakub Jelinek  <jakub@redhat.com>
3730
3731         * time/tzfile.c (__tzfile_read): Read POSIX TZ string if available
3732         even when time_t is 32-bit.
3733         (__tzfile_compute): Override POSIX TZ string STD/DST zone names if
3734         timezone data read by __tzfile_default.  Ensure __tzname[0] is
3735         always set after the search.
3736
3737 2007-10-16  Ulrich Drepper  <drepper@redhat.com>
3738
3739         * time/tzfile.c (__tzfile_read): Help the compiler recognize
3740         unreachable code on 32-bit machines.
3741
3742 2007-10-16  Jakub Jelinek  <jakub@redhat.com>
3743
3744         [BZ #5184]
3745         * time/strftime_l.c: Include stdbool.h.
3746         (my_strftime): New wrapper, old function renamed to...
3747         (__strftime_internal): ... new function.  Add tzset_called
3748         argument, pass it down to recursive calls, don't call tzset ()
3749         if already true, set to true after call to tzset ().
3750
3751 2007-10-16  Ulrich Drepper  <drepper@redhat.com>
3752
3753         * time/tzfile.c (__tzfile_read): Take extra memory requested by caller
3754         into account when copying TZ string.
3755
3756 2007-10-16  Jakub Jelinek  <jakub@redhat.com>
3757
3758         * time/tzfile.c (__tzfile_compute): For use_last case set i to
3759         num_transition rather than num_transitions - 1.
3760
3761 2007-10-16  Jakub Jelinek  <jakub@redhat.com>
3762
3763         * sysdeps/x86_64/memset.S (memset): Fix sse2_nt_move
3764         PIC indirect jump.
3765
3766         * sysdeps/x86_64/memset.S: Jump from bzero to memset using
3767         a local label rather than HIDDEN_JUMPTARGET.
3768
3769 2007-10-15  Ulrich Drepper  <drepper@redhat.com>
3770
3771         * sysdeps/x86_64/cacheinfo.c (__x86_64_shared_cache_size): Define.
3772         (init_cacheinfo): Initialize it.
3773         * sysdeps/x86_64/memset.S: Use __x86_64_shared_cache_size.
3774         Always define bzero.
3775         Remove non-glibc code.
3776         * sysdeps/x86_64/bzero.S: Make an empty file.
3777
3778 2007-10-15  H.J. Lu  <hongjiu.lu@intel.com>
3779
3780         * sysdeps/x86_64/cacheinfo.c
3781         (__x86_64_preferred_memory_instruction): New.
3782         (init_cacheinfo): Initialize __x86_64_preferred_memory_instruction.
3783
3784         * sysdeps/x86_64/memset.S: Rewrite.
3785
3786 2007-10-15  Roland McGrath  <roland@redhat.com>
3787
3788         * po/libc.pot: Regenerated.
3789
3790 2007-10-15  Ulrich Drepper  <drepper@redhat.com>
3791
3792         * nss/getXXbyYY_r.c (REENTRANT_NAME): Mangle startp and start_fct
3793         pointers.
3794
3795         [BZ #3425]
3796         * resolv/nss_dns/dns-host.c (getanswer_r): Fail with
3797         NSS_STATUS_NOTFOUND if the server replied with only a CNAME and no
3798         address record to T_A/T_AAAA requests.
3799
3800 2007-10-14  Ulrich Drepper  <drepper@redhat.com>
3801
3802         * posix/glob.c: Reimplement link_exists_p to use fstatat64.
3803
3804         * posix/glob.c: Add some branch prediction throughout.
3805
3806         * nscd/nscd_getgr_r.c (nscd_getgr_r): Store result of successful
3807         read from nscd.
3808
3809         * sysdeps/posix/getaddrinfo.c (struct sort_result): Add
3810         service_order.
3811         (rfc3484_sort): Make sure that even if qsort doesn't support
3812         stable sorting out sorting here is stable by comparing service_order.
3813         (getaddrinfo): Initialize service_order.
3814         * posix/tst-rfc3484.c (do_test): Adjust for addition of
3815         service_order field to sorting structure.
3816         * posix/tst-rfc3484-2.c (do_test): Likewise.
3817
3818         * include/time.h: Declare __tzset_parse_tz and __tzset_compute.
3819         * time/tzset.c (tzset_internal): Break TZ string parsing out into
3820         __tzset_parse_tz and updating of daylight, timezone, tzname into
3821         update_vars.
3822         (__tz_compute): Renamed from tz_compute.  Take additional parameters.
3823         (__tz_convert): Updating of tm_isdst, tm_zone, and tm_gmtoff now
3824         happens in __tz_compute.
3825         * time/tzfile.c (__tzfile_read): Also read TZ string.
3826         (find_transition): Fold into __tzfile_compute.
3827         (__tzfile_compute): For times beyond the last transition try to
3828         use the TZ string.
3829         * timezone/tst-timezone.c: Information in daylight and tzname does
3830         change for Asia/Tokyo timezone with more concrete information.
3831         Remove the test.
3832
3833         * include/stdio.h: Add libc_hidden_proto for ftello.
3834         * libio/ftello.c: Add libc_hidden_def.
3835
3836         [BZ #1140]
3837         * time/tzfile.c (__tzfile_compute): Compute tzname[] values based
3838         on the specified time and not the last entries in the file.  Move
3839         code to determine tzname[] to...
3840         (find_transition): ...here.  Add ugly guess for times before the
3841         first transition.
3842
3843 2007-10-13  Ulrich Drepper  <drepper@redhat.com>
3844
3845         [BZ #3195]
3846         * nscd/nscd_getai.c (__nscd_getai): Set errno to 0 in case we found
3847         no entry.
3848         * nscd/nscd_getgr.c (nscd_getgr_r): Likewise.
3849         * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
3850         * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
3851         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
3852
3853         * nscd/nscd_getgr_r.c (nscd_getgr_r): Optimize a bit: use simpler
3854         read mechanism when there are no group members and avoid no-op
3855         read syscall in this case.
3856
3857         [BZ #3242]
3858         * nscd/nscd_helper.c (wait_on_socket): Take timeout as parameter.
3859         (__readall): If reading failed due to EAGAIN error wait a bit
3860         and possibly try again.
3861         (__readvall): Likewise.
3862
3863 2007-10-13  Bruno Haible  <bruno@clisp.org>
3864
3865         * intl/dcigettext.c (_nl_find_msg): Unlock the conversions_lock
3866         when we cannot recode the message.
3867
3868 2007-10-13  Ulrich Drepper  <drepper@redhat.com>
3869
3870         [BZ #4359]
3871         * libio/__freading.c (__freading): Don't return true for
3872         write-only streams.  For read/write streams, check whether we
3873         performed a read operation already.
3874         * libio/Makefile (tests): Add tst-ext2.
3875         * libio/tst-ext2.c: New file.
3876
3877 2007-10-12  Ulrich Drepper  <drepper@redhat.com>
3878
3879         * locale/programs/repertoire.c (repertoire_read): Always free
3880         memory for repertoire file name [Coverity CID 270].
3881
3882         * elf/cache.c (save_aux_cache): Free memory allocated for
3883         temporary file name [Coverity CID 267].
3884
3885 2007-10-12  Jakub Jelinek  <jakub@redhat.com>
3886
3887         * misc/Makefile (headers): Add bits/error.h.
3888
3889 2007-10-12  Ulrich Drepper  <drepper@redhat.com>
3890
3891         * posix/fnmatch_loop.c: Take rule index returned as part of
3892         findidx return value into account when accessing weights.
3893         * posix/regcomp.c: Likewise.
3894         * posix/regexec.c: Likewise.
3895
3896         * locale/programs/ld-collate.c (collate_read): Optimize a bit.
3897         (skip_to): Fix problems with parameter of elifdef/elifndef.
3898
3899 2007-10-11  Ulrich Drepper  <drepper@redhat.com>
3900
3901         * iconv/gconv_simple.c: Add some branch prediction.
3902
3903 2007-10-12  Jakub Jelinek  <jakub@redhat.com>
3904
3905         * locale/programs/ld-collate.c (collate_read): If ignore_content
3906         and nowtok is tok_define, eat any tok_eol tokens.
3907
3908 2007-10-11  Jakub Jelinek  <jakub@redhat.com>
3909
3910         * sysdeps/gnu/netinet/tcp.h: Include sys/socket.h if __USE_MISC.
3911         (struct tcp_md5sig): Change tcpm_addr type to struct sockaddr_storage.
3912
3913         * inet/netinet/in.h: Don't include bits/socket.h.
3914         * sysdeps/unix/sysv/linux/bits/socket.h: Only check _SYS_SOCKET_H
3915         macro.
3916         * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Likewise.
3917
3918 2007-10-10  Ulrich Drepper  <drepper@redhat.com>
3919
3920         * locale/programs/locfile-token.h: Remove tok_elif, add tok_elifdef
3921         and tok_elifndef.
3922         * locale/programs/locfile-kw.gperf: Likewise.
3923         * locale/programs/ld-collate.c: Implement primitive preprocessor.
3924
3925 2007-10-10  Jakub Jelinek  <jakub@redhat.com>
3926
3927         * stdio-common/printf-parse.h: Include string.h and wchar.h.
3928         (__find_specwc): Change into __extern_always_inline function.
3929         (__find_specmb): Likewise.  Remove ps argument.  Use __strchrnul.
3930         (__parse_one_specmb): Remove ps argument.
3931         * stdio-common/vfprintf.c (vfprintf): Remove mbstate variable.
3932         Adjust __find_specmb and __parse_one_specmb callers.
3933         * stdio-common/printf-prs.c (parse_printf_format): Likewise.
3934         * stdio-common/printf-parsemb.c (__find_specwc, __find_specmb):
3935         Removed.
3936         (__parse_one_specmb): Remove ps argument, adjust __find_specmb
3937         caller.
3938
3939 2007-10-09  Ulrich Drepper  <drepper@redhat.com>
3940
3941         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Work around problem
3942         with some Pentium Ds.
3943
3944 2007-10-08  Ulrich Drepper  <drepper@redhat.com>
3945
3946         * sysdeps/unix/sysv/linux/eventfd_read.c (eventfd_read): Use
3947         __read not read.
3948         * sysdeps/unix/sysv/linux/eventfd_write.c (eventfd_write): Use
3949         __write not write.
3950
3951 2007-10-07  Ulrich Drepper  <drepper@redhat.com>
3952
3953         [BZ #181]
3954         * locale/C-time.c: Set week_1stday data to 19971201.
3955         * locale/programs/ld-time.c (time_finish): Default for
3956         first_workday is Monday.
3957
3958         [BZ #2633]
3959         * wcsmbs/wchar.h: Move many C99 functions into std namespace.
3960
3961         [BZ #5103]
3962         * posix/glob.c (glob): Recognize patterns starting \/.
3963         * posix/tst-gnuglob.c (find_file): Handle absolute path names.
3964         (main): Add test for pattern starting \/.
3965
3966         * misc/error.h: Use __const instead of const.
3967         * misc/bits/error.h: Likewise.
3968
3969 2007-10-07  Andreas Jaeger  <aj@suse.de>
3970
3971         * include/bits/error.h: New file.
3972
3973         * misc/bits/error.h (error_at_line): Fix prototype.
3974
3975 2007-10-06  Ulrich Drepper  <drepper@redhat.com>
3976
3977         [BZ #3924]
3978         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix a few
3979         more little bugs in creating the stack frame when pltexit has to
3980         be called.
3981
3982         * nscd/nscd_helper.c (__nscd_cache_search): Prevent endless loops.
3983         * nscd/connections.c (verify_persistent_db): Recognize circular lists.
3984
3985         [BZ #4407]
3986         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Fix *signgamp for -0.0.
3987         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
3988         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
3989         * math/libm-test.inc: Add test for this case.
3990
3991         [BZ #5010]
3992         * sunrpc/svc.c (struct svc_callout): Add sc_mapped element.
3993         (svc_register): Initialize sc_mapped.  Set to TRUE if call to
3994         map service succeeded.
3995         (svc_is_mapped): New function.
3996         (svc_unregister): Use it before trying to unmap service.
3997
3998 2007-10-05  Ulrich Drepper  <drepper@redhat.com>
3999
4000         * timezone/zic.c: Update from tzcode2007h.
4001
4002         [BZ #5063]
4003         * timezone/africa: Update from tzdata2007h.
4004         * timezone/antarctica: Likewise.
4005         * timezone/asia: Likewise.
4006         * timezone/australasia: Likewise.
4007         * timezone/europe: Likewise.
4008         * timezone/leapseconds: Likewise.
4009         * timezone/northamerica: Likewise.
4010         * timezone/southamerica: Likewise.
4011         * timzeone/zone.tab: Likewise.
4012
4013         [BZ #5104]
4014         * elf/do-lookup.h (do_lookup_x): Don't ignore STT_COMMON symbols.
4015
4016         [BZ #5113]
4017         * string/bits/string2.h (__strdup): Cast parameters to calloc to
4018         avoid warning with -Wconversion.
4019         (__strndup): Likewise.
4020         Half the patch by Christian Iseli <christian.iseli@licr.org>.
4021
4022         [BZ #5112]
4023         * nscd/connections.c (restart): Don't resync if database is
4024         disabled.  Patch mostly by Brian De Wolf <bldewolf@csupomona.edu>.
4025
4026         * sysdeps/gnu/netinet/tcp.h: Define TCP_MD5SIG, TCP_MD5SIG_MAXKEYLEN,
4027         struct tcp_md5sig.  Extend struct tcp_info according to recent kernels.
4028
4029         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add eventfd,
4030         evetnfd_read, eventfd_write.
4031         * sysdeps/unix/sysv/linux/eventfd.c: New file.
4032         * sysdeps/unix/sysv/linux/eventfd_read.c: New file.
4033         * sysdeps/unix/sysv/linux/eventfd_write.c: New file.
4034         * sysdeps/unix/sysv/linux/sys/eventfd.h: New file.
4035         * sysdeps/unix/sysv/linux/Versions: Export eventfd, eventfd_read,
4036         eventfd_write for GLIBC_2.7.
4037
4038         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add signalfd.
4039         * sysdeps/unix/sysv/linux/signalfd.c: New file.
4040         * sysdeps/unix/sysv/linux/sys/signalfd.h: New file.
4041         * sysdeps/unix/sysv/linux/Versions: Export signalfd for GLIBC_2.7.
4042
4043 2007-10-04  Jakub Jelinek  <jakub@redhat.com>
4044
4045         * stdlib/msort.c: Include stdint.h.
4046         (struct msort_param): New type.
4047         (msort_with_tmp): Use struct msort_param pointer for unchanging
4048         parameters.  Add optimized handling for several common sizes
4049         and indirect sorting mode.
4050         (qsort): Adjust msort_with_tmp callers.  For big S use indirect
4051         sorting.
4052         Suggested by Belazougui Djamel .
4053
4054         * stdlib/Makefile (tests): Add tst-qsort2.
4055         * stdlib/tst-qsort2.c: New test.
4056
4057 2007-10-04  Ulrich Drepper  <drepper@redhat.com>
4058
4059         * login/login_tty.c (login_tty): The Linux kernel can return EBUSY
4060         for dup2 in case another thread races with the current one.  Retry
4061         in this case.
4062
4063         * misc/error.h: Remove support for use outside of libc.  We have to
4064         include <features.h> now.  Include <bits/error.h> if possible.
4065         * misc/bits/error.h: New file.
4066
4067 2007-10-03  Jakub Jelinek  <jakub@redhat.com>
4068
4069         * string/bits/string3.h (memcpy, memmove, mempcpy, memset, bcopy,
4070         bzero, strcpy, stpcpy, strncpy, strcat, strncat): Use
4071         __extern_always_inline functions unconditionally, drop macros.
4072
4073         * misc/sys/cdefs.h (__REDIRECT_LDBL, __REDIRECT_NTH_LDBL): New macros.
4074         * wcsmbs/bits/wchar2.h (__swprintf_alias, __vswprintf_alias): Use
4075         __REDIRECT_NTH_LDBL macro rather than __REDIRECT_NTH.
4076
4077         * misc/sys/cdefs.h (__extern_always_inline): For GCC 4.3+
4078         add __artificial__ attribute.
4079
4080 2007-10-02  Ulrich Drepper  <drepper@redhat.com>
4081
4082         * string/strcoll_l.c (STRCOLL): Correct handling of switching from
4083         backward to forward direction.
4084
4085         * string/strcoll_l.c (STRCOLL): Correct test for alloca use.
4086
4087         [BZ #645]
4088         * locale/programs/ld-collate.c (collate_finish): Compare against last
4089         used section which is known to have rules defined.
4090         (collate_read): After order_start, correctly record order of sections
4091         and queue sections up.
4092
4093 2007-10-01  Ulrich Drepper  <drepper@redhat.com>
4094
4095         [BZ #5071]
4096         * malloc/malloc.c (mremap_chunk): Avoid resizing of new block has
4097         the same number of pages.
4098         Patch by Tomash Brechko <tomash.brechko@gmail.com>.
4099
4100         * locale/programs/ld-collate.c (collate_read): After initial copy
4101         statement, continue in state 0.
4102
4103         * include/stdio_ext.h (__fsetlocking): Define as macro.
4104
4105 2007-09-30  Ulrich Drepper  <drepper@redhat.com>
4106
4107         * locale/programs/ld-collate.c (collate_finish): Compare all bytes
4108         of section order.
4109
4110         * po/pt_BR.po: Fix typo.
4111
4112 2007-09-29  Ulrich Drepper  <drepper@redhat.com>
4113
4114         * iconvdata/Makefile (modules): Add ISO8859-9E.
4115         (distribute): Add iso8859-9e.c.
4116         (gen-8bit-gap-modules): Add iso8859-9e.
4117         * iconvdata/iso8859-9e.c: New file.
4118         * iconvdata/gconv-modules: Add entries for ISO-8859-9E.
4119         * iconvdata/TESTS: Likewise.
4120         * iconvdata/tst-tables.sh: Likewise.
4121
4122         * iconvdata/koi8-r.c (HAS_HOLES): Define to 0.
4123
4124         * locale/iso-639.def: Add several new entries.
4125
4126 2007-09-24  Jakub Jelinek  <jakub@redhat.com>
4127
4128         * sysdeps/generic/ldsodefs.h (struct dl_scope_free_list): Store
4129         void * pointers instead of struct link_map **.
4130         (_dl_scope_free): Change argument type to void *.
4131         * include/link.h (struct link_map): Change type of l_reldeps
4132         to struct link_map_reldeps, move l_reldepsact into that
4133         struct too.
4134         * elf/dl-deps.c: Include atomic.h.
4135         (_dl_map_object_deps): Only change l->l_initfini when it is
4136         fully populated, use _dl_scope_free for freeing it.  Optimize
4137         removal of libs from reldeps by using l_reserved flag, when
4138         some removal is needed, allocate a new list instead of
4139         reallocating and free the old with _dl_scope_free.  Adjust
4140         for l_reldeps and l_reldepsact changes.
4141         * elf/dl-lookup.c (add_dependency): Likewise.  Reorganize to allow
4142         searching in l_initfini and l_reldeps without holding dl_load_lock.
4143         * elf/dl-fini.c (_dl_sort_fini): Adjust for l_reldeps and
4144         l_reldepsact changes.
4145         * elf/dl-close.c (_dl_close_worker): Likewise.
4146         * elf/dl-open.c (_dl_scope_free): Change argument type to void *.
4147
4148 2007-09-28  Ulrich Drepper  <drepper@redhat.com>
4149
4150         * iconvdata/Makefile (modules): Add KOI8-RU.
4151         (distribute): Add koi8-ru.c.
4152         (gen-8bit-gap-modules): Add koi8-ru.
4153         * iconvdata/koi8-ru.c: New file.
4154         * iconvdata/gconv-modules: Add entries for KOI8-RU.
4155         * iconvdata/TESTS: Likewise.
4156         * iconvdata/tst-tables.sh: Likewise.
4157
4158         * iconvdata/koi8-r.c (HAS_HOLES): Define to 0.
4159
4160 2007-09-26  Jakub Jelinek  <jakub@redhat.com>
4161
4162         * misc/sys/cdefs.h (__warndecl, __errordecl): For GCC 4.3+ define
4163         with __warning__/__error__ attributes.
4164         (__warnattr): Define.
4165         * stdlib/bits/stdlib.h (__realpath_chk_warn, __ptsname_r_chk_warn,
4166         __mbstowcs_chk_warn, __wcstombs_chk_warn): New aliases with
4167         __warnattr.
4168         (realpath, ptsname_r, mbstowcs, wcstombs): Call __*_chk_warn instead
4169         of __*_chk if compile time detectable overflow is found.
4170         * libio/bits/stdio2.h (__fgets_chk_warn, __fread_chk_warn,
4171         __fgets_unlocked_chk_warn, __fread_unlocked_chk_warn): New aliases
4172         with __warnattr.
4173         (fgets, fread, fgets_unlocked, fread_unlocked): Call __*_chk_warn
4174         instead of __*_chk if compile time detectable overflow is found.
4175         (__gets_alias): Rename to...
4176         (__gets_warn): ... this.  Add __warnattr.
4177         (gets): Call __gets_warn instead of __gets_alias.
4178         * socket/bits/socket2.h (__recv_chk_warn, __recvfrom_chk_warn): New
4179         aliases with __warnattr.
4180         (recv, recvfrom): Call __*_chk_warn instead of __*_chk if compile
4181         time detectable overflow is found.
4182         * posix/bits/unistd.h (__read_chk_warn, __pread_chk_warn,
4183         __pread64_chk_warn, __readlink_chk_warn, __readlinkat_chk_warn,
4184         __getcwd_chk_warn, __confstr_chk_warn, __getgroups_chk_warn,
4185         __ttyname_r_chk_warn, __getlogin_r_chk_warn, __gethostname_chk_warn,
4186         __getdomainname_chk_warn): New aliases with __warnattr.
4187         (read, pread, pread64, readlink, readlinkat, getcwd, confstr,
4188         getgroups, ttyname_r, getlogin_r, gethostname, getdomainname): Call
4189         __*_chk_warn instead of __*_chk if compile time detectable overflow
4190         is found.
4191         (__getgroups_chk): Rename argument to __listlen from listlen.
4192         (__getwd_alias): Rename to...
4193         (__getwd_warn): ... this.  Add __warnattr.
4194         (getwd): Call __getwd_warn instead of __getwd_alias.
4195         * wcsmbs/bits/wchar2.h (__wmemcpy_chk_warn, __wmemmove_chk_warn,
4196         __wmempcpy_chk_warn, __wmemset_chk_warn, __wcsncpy_chk_warn,
4197         __wcpncpy_chk_warn, __fgetws_chk_warn, __fgetws_unlocked_chk_warn,
4198         __mbsrtowcs_chk_warn, __wcsrtombs_chk_warn, __mbsnrtowcs_chk_warn,
4199         __wcsnrtombs_chk_warn): New aliases with __warnattr.
4200         (wmemcpy, wmemmove, wmempcpy, wmemset, mbsrtowcs, wcsrtombs,
4201         mbsnrtowcs, wcsnrtombs): Call __*_chk_warn instead of __*_chk if
4202         compile time detectable overflow is found.
4203         (wcsncpy, wcpncpy): Likewise.  For constant __n fix check whether
4204         to use __*_chk or not.
4205         (fgetws, fgetws_unlocked): Divide __bos by sizeof (wchar_t), both
4206         in comparisons which function should be called and in __*_chk*
4207         arguments.  Call __*_chk_warn instead of __*_chk if compile time
4208         detectable overflow is found.
4209         (swprintf, vswprintf): Divide __bos by sizeof (wchar_t) in
4210         __*_chk argument.
4211         * debug/tst-chk1.c (do_test): Add a few more tests.
4212
4213 2007-09-24  Ulrich Drepper  <drepper@redhat.com>
4214
4215         [BZ #5058]
4216         * intl/gettextP.h (struct loaded_domain): Add conversions_lock member.
4217         * intl/loadmsgcat.c (_nl_load_domain): Initialize conversions_lock.
4218         (_nl_unload_domain): Finalize conversions_lock.
4219         * intl/dcigettext.c (_nl_find_msg): Take conversions_lock before
4220         handling table of known conversions.
4221
4222 2007-09-24  Jakub Jelinek  <jakub@redhat.com>
4223
4224         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Use
4225         close_not_cancel_no_status instead of close.
4226
4227 2007-09-13  Aurelien Jarno  <aurelien@aurel32.net>
4228
4229         [BZ #5028]
4230         * posix/regcomp.c (lookup_collation_sequence_value): Check that
4231         nrules != 0 for multibyte chars.
4232
4233 2007-09-23  Ulrich Drepper  <drepper@redhat.com>
4234
4235         * resolv/ns_print.c (ns_sprintrrf): Handle ns_t_a6 and ns_t_opt.
4236         Provide better error message in case the type is unknown.
4237
4238         [BZ #4963]
4239         * wcsmbs/wcsnlen.c: Don't reference before checking the length.
4240         * string/stratcliff.c: Make usable to test wide char functions.
4241         * wcsmbs/wcsatcliff.c: New file.
4242         * wcsmbs/Makefiel (tests): Add wcsatcliff.
4243
4244         [BZ #4972]
4245         * iconvdata/Makefile (modules): Add MAC-CENTRALEUROPE.
4246         (distribute): Add mac-centraleurope.c.
4247         (gen-8bit-gap-modules): Add mac-centraleurope.
4248         * iconvdata/mac-centraleurope.c: New file.
4249         * iconvdata/gconv-modules: Add entries for MAC-CENTRALEUROPE.
4250         * iconvdata/TESTS: Likewise.
4251         * iconvdata/tst-tables.sh: Likewise.
4252
4253         [BZ #5043]
4254         * iconv/iconv_open.c (iconv_open): For large codeset names use malloc.
4255
4256 2007-09-21  Ulrich Drepper  <drepper@redhat.com>
4257
4258         * sysdeps/x86_64/cacheinfo.c (__x86_64_data_cache_size_half): Renamed
4259         from __x86_64_core_cache_size_half.
4260         (init_cacheinfo): Compute shared cache size for AMD processors with
4261         shared L3 correctly.
4262         * sysdeps/x86_64/memcpy.S: Adjust for __x86_64_data_cache_size_half
4263         name change.
4264         Patch in large parts by Evandro Menezes.
4265
4266 2007-09-19  Ulrich Drepper  <drepper@redhat.com>
4267
4268         * elf/dl-lookup.c (add_dependency): Handle failing memory
4269         allocation for dependency list.  Remove unnecessary check.
4270
4271         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid unnecessary
4272         open/close when determining source addresses.
4273
4274         * crypt/Makefile (libcrypt-routines): Add sha256-crypt, sha256,
4275         sha512-crypt, and sha512.
4276         (tests): Add sha256test, sha256c-test, sha512test, and sha512c-test.
4277         (distribute): Add sha256.h and sha512.h.
4278         * crypt/crypt-entry.c (crypt): Recognize the new $5$ and $6$ prefixes
4279         and call the appropriate code.
4280         * crypt/sha256-crypt.c: New file.
4281         * crypt/sha256.c: New file.
4282         * crypt/sha256.h: New file.
4283         * crypt/sha256c-test.c: New file.
4284         * crypt/sha256test.c: New file.
4285         * crypt/sha512-crypt.c: New file.
4286         * crypt/sha512.c: New file.
4287         * crypt/sha512.h: New file.
4288         * crypt/sha512c-test.c: New file.
4289         * crypt/sha512test.c: New file.
4290
4291 2007-09-19  Jakub Jelinek  <jakub@redhat.com>
4292
4293         * misc/bits/syslog.h (syslog): Remove extraneous argument from
4294         the inline, pass __USE_FORTIFY_LEVEL - 1 as second argument to
4295         __syslog_chk.
4296
4297 2007-09-18  Jakub Jelinek  <jakub@redhat.com>
4298
4299         * locale/programs/charmap-dir.c (charmap_aliases): Use %ms instead of
4300         %as in fscanf format strings.
4301
4302         * sysdeps/sparc/sparc32/elf/start.S: Remove cfi_* markup.
4303         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
4304         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__thread_start):
4305         Likewise.
4306         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__thread_start):
4307         Likewise.
4308
4309         * sysdeps/generic/ldsodefs.h (DL_LOOKUP_GSCOPE_LOCK): New definition.
4310         * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Or in
4311         DL_LOOKUP_GSCOPE_LOCK into flags after THREAD_GSCOPE_SET_FLAG ().
4312         * elf/dl-sym.c (do_sym): Likewise.
4313         * include/link.h (struct link_map): Add l_serial field.
4314         * elf/dl-object.c (_dl_new_object): Initialize l_serial.
4315         * elf/dl-lookup.c (add_dependency): Add flags argument.
4316         Remember map->l_serial, if DL_LOOKUP_GSCOPE_LOCK is among
4317         flags, use THREAD_GSCOPE_RESET_FLAG before and
4318         THREAD_GSCOPE_SET_FLAG after
4319         __rtld_lock_lock_recursive (GL(dl_load_lock)) to avoid deadlock.
4320         Don't dereference map until it has been found on some list.
4321         If map->l_serial changed, return -1.
4322
4323 2007-09-17  Jakub Jelinek  <jakub@redhat.com>
4324
4325         * include/stdio.h (__isoc99_fscanf, __isoc99_scanf,
4326         __isoc99_sscanf, __isoc99_vscanf): New prototypes.
4327         (__isoc99_vsscanf, __isoc99_vfscanf): New prototypes, add
4328         libc_hidden_proto.
4329         * include/wchar.h (__isoc99_fwscanf, __isoc99_wscanf,
4330         __isoc99_swscanf, __isoc99_vwscanf): New prototypes.
4331         (__isoc99_vswscanf, __isoc99_vfwscanf): New prototypes,
4332         add libc_hidden_proto.
4333         * libio/stdio.h (fscanf, scanf, sscanf, vfscanf, vscanf,
4334         vsscanf): Redirect to __isoc99_* if strict ISO C99 or POSIX
4335         conformance requested.
4336         * wcsmbs/wchar.h (fwscanf, wscanf, swscanf, vfwscanf, vwscanf,
4337         vswscanf): Redirect to __isoc99_* if strict ISO C99 or POSIX
4338         conformance requested.
4339         * libio/bits/stdio-ldbl.h (fscanf, scanf, sscanf, vfscanf, vscanf,
4340         vsscanf): Redirect to __nldbl___isoc99_* if strict ISO C99 or POSIX
4341         conformance requested.
4342         * wcsmbs/bits/wchar-ldbl.h (fwscanf, wscanf, swscanf, vfwscanf,
4343         vwscanf, vswscanf): Redirect to __nldbl___isoc99_* if strict
4344         ISO C99 or POSIX conformance requested.
4345         * stdio-common/Versions (libc): Export __isoc99_scanf@@GLIBC_2.7,
4346         __isoc99_vscanf@@GLIBC_2.7, __isoc99_fscanf@@GLIBC_2.7,
4347         __isoc99_vfscanf@@GLIBC_2.7, __isoc99_sscanf@@GLIBC_2.7
4348         and __isoc99_vsscanf@@GLIBC_2.7.
4349         * stdio-common/Makefile (routines): Add isoc99_scanf, isoc99_vscanf,
4350         isoc99_fscanf, isoc99_vfscanf, isoc99_sscanf and isoc99_vsscanf.
4351         (tests): Add scanf14.
4352         (CFLAGS-vfprintf.c, CFLAGS-fprintf.c, CFLAGS-printf.c,
4353         CFLAGS-vfwprintf.c, CFLAGS-vfscanf.c, CFLAGS-vfwscanf.c,
4354         CFLAGS-fscanf.c, CFLAGS-scanf.c, CFLAGS-isoc99_vfscanf.c,
4355         CFLAGS-isoc99_vscanf.c, CFLAGS-isoc99_fscanf.c,
4356         CFLAGS-isoc99_scanf.c): Add $(exceptions).
4357         (CFLAGS-scanf15.c): Add various -I paths to prevent the compiler
4358         from using internal headers.
4359         * wcsmbs/Versions (libc): Export __isoc99_wscanf@@GLIBC_2.7,
4360         __isoc99_vwscanf@@GLIBC_2.7, __isoc99_fwscanf@@GLIBC_2.7,
4361         __isoc99_vfwscanf@@GLIBC_2.7, __isoc99_swscanf@@GLIBC_2.7
4362         and __isoc99_vswscanf@@GLIBC_2.7.
4363         * wcsmbs/Makefile (routines): Add isoc99_wscanf, isoc99_vwscanf,
4364         isoc99_fwscanf, isoc99_vfwscanf, isoc99_swscanf and isoc99_vswscanf.
4365         (CFLAGS-isoc99_wscanf.c, CFLAGS-isoc99_fwscanf.c,
4366         CFLAGS-isoc99_vwscanf.c, CFLAGS-isoc99_vfwscanf.c): Add $(exceptions).
4367         (CPPFLAGS): Add -D_IO_MTSAFE_IO if needed.
4368         * stdio-common/isoc99_scanf.c: New file.
4369         * stdio-common/isoc99_vsscanf.c: New file.
4370         * stdio-common/isoc99_vscanf.c: New file.
4371         * stdio-common/isoc99_vfscanf.c: New file.
4372         * stdio-common/isoc99_fscanf.c: New file.
4373         * stdio-common/isoc99_sscanf.c: New file.
4374         * wcsmbs/isoc99_fwscanf.c: New file.
4375         * wcsmbs/isoc99_vswscanf.c: New file.
4376         * wcsmbs/isoc99_swscanf.c: New file.
4377         * wcsmbs/isoc99_wscanf.c: New file.
4378         * wcsmbs/isoc99_vwscanf.c: New file.
4379         * wcsmbs/isoc99_vfwscanf.c: New file.
4380         * libio/libio.h (_IO_FLAGS2_SCANF_STD): Define.
4381         * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): Also
4382         clear _IO_FLAGS2_SCANF_STD bit from _flags2.
4383         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Don't
4384         handle %as, %aS and %a[ if _IO_FLAGS2_SCANF_STD is set in _flags2.
4385         * stdio-common/scanf14.c: New test.
4386         * stdio-common/scanf15.c: New test.
4387         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add
4388         isoc99_scanf, isoc99_fscanf, isoc99_sscanf,
4389         isoc99_vscanf, isoc99_vfscanf, isoc99_vsscanf,
4390         isoc99_wscanf, isoc99_fwscanf, isoc99_swscanf,
4391         isoc99_vwscanf, isoc99_vfwscanf and isoc99_vswscanf.
4392         * sysdeps/ieee754/ldbl-opt/Versions (libc): Export
4393         __nldbl___isoc99_scanf@@GLIBC_2.7,
4394         __nldbl___isoc99_fscanf@@GLIBC_2.7,
4395         __nldbl___isoc99_sscanf@@GLIBC_2.7,
4396         __nldbl___isoc99_vscanf@@GLIBC_2.7,
4397         __nldbl___isoc99_vfscanf@@GLIBC_2.7,
4398         __nldbl___isoc99_vsscanf@@GLIBC_2.7,
4399         __nldbl___isoc99_wscanf@@GLIBC_2.7,
4400         __nldbl___isoc99_fwscanf@@GLIBC_2.7,
4401         __nldbl___isoc99_swscanf@@GLIBC_2.7,
4402         __nldbl___isoc99_vwscanf@@GLIBC_2.7,
4403         __nldbl___isoc99_vfwscanf@@GLIBC_2.7
4404         and __nldbl___isoc99_vswscanf@@GLIBC_2.7.
4405         * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__isoc99_scanf,
4406         __isoc99_fscanf, __isoc99_sscanf, __isoc99_vscanf,
4407         __isoc99_vfscanf, __isoc99_vsscanf, __isoc99_wscanf,
4408         __isoc99_fwscanf, __isoc99_swscanf, __isoc99_vwscanf,
4409         __isoc99_vfwscanf, __isoc99_vswscanf): Add NLDBL_DECL.
4410         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
4411         (__nldbl___isoc99_scanf, __nldbl___isoc99_fscanf,
4412         __nldbl___isoc99_sscanf, __nldbl___isoc99_vscanf,
4413         __nldbl___isoc99_vfscanf, __nldbl___isoc99_vsscanf,
4414         __nldbl___isoc99_wscanf, __nldbl___isoc99_fwscanf,
4415         __nldbl___isoc99_swscanf, __nldbl___isoc99_vwscanf,
4416         __nldbl___isoc99_vfwscanf, __nldbl___isoc99_vswscanf): New
4417         functions.
4418         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vfscanf.c: New file.
4419         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_swscanf.c: New file.
4420         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vwscanf.c: New file.
4421         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_wscanf.c: New file.
4422         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_scanf.c: New file.
4423         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_sscanf.c: New file.
4424         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vsscanf.c: New file.
4425         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_fwscanf.c: New file.
4426         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vfwscanf.c: New file.
4427         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vswscanf.c: New file.
4428         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vscanf.c: New file.
4429         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_fscanf.c: New file.
4430
4431         * stdio-common/Makefile (tests): Add scanf13.
4432         (scanf13-ENV): New.
4433         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Handle
4434         m modifier followed by l.
4435         (STRING_ARG): Add width argument.
4436         (_IO_vfscanf_internal) <case L_('c')>: Handle %mc.
4437         <case L_('C')>: Handle %mlc and %mC.
4438         <case L_('s'), case L_('S'), case L_('[')>: Adjust STRING_ARG
4439         arguments.
4440         * stdio-common/scanf13.c: New test.
4441
4442         * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): Clear
4443         the _IO_FLAGS2_FORTIFY bit from _flags2 rather than _flags.
4444
4445 2007-09-18  Ulrich Drepper  <drepper@redhat.com>
4446
4447         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Correct return value
4448         type and __THROW marker of splice, vmsplice, and tee.
4449         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
4450         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
4451         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
4452         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
4453         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
4454         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
4455         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
4456         * sysdeps/unix/sysv/linux/syscalls.list: Mark splice, vmsplice, and tee
4457         as cancellation points.
4458
4459 2003-11-01  Daniel Jacobowitz  <dan@debian.org>
4460
4461         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_discover_osversion): Don't
4462         parse more than three parts of the version number.
4463
4464 2007-09-15  Ulrich Drepper  <drepper@redhat.com>
4465
4466         * stdio-common/vfscanf.c (_IO_vfwscanf): Add support for 'm'
4467         modifier.  Patch by Jakub Jelinek.
4468
4469 2007-08-26  Jakub Jelinek  <jakub@redhat.com>
4470
4471         * sysdeps/unix/sysv/linux/i386/Makefile (sysdep_routines): Add
4472         call_fallocate in misc subdir.
4473         * sysdeps/unix/sysv/linux/i386/call_fallocate.S: New file.
4474         * sysdeps/unix/sysv/linux/i386/syscalls.list (fallocate64): Remove.
4475         * sysdeps/unix/sysv/linux/i386/posix_fallocate.c: Use __call_fallocate
4476         instead of __fallocate64.
4477         * sysdeps/unix/sysv/linux/i386/posix_fallocate64.c: Likewise.
4478
4479 2007-09-15  Jakub Jelinek  <jakub@redhat.com>
4480
4481         * rt/Versions (librt): Export __mq_open_2@@GLIBC_2.7.
4482         * rt/Makefile (headers): Add bits/mqueue2.h.
4483         * rt/mqueue.h: Include bits/mqueue2.h if -D_FORTIFY_SOURCE=2,
4484         optimizing with GCC and __va_arg_pack_len is defined.
4485         * rt/bits/mqueue2.h: New file.
4486         * rt/mq_open.c (__mq_open): Renamed from mq_open.
4487         (mq_open): New strong_alias.
4488         (__mq_open_2): New function.
4489         * sysdeps/unix/sysv/linux/mq_open.c (__mq_open): Renamed from mq_open.
4490         (mq_open): New strong_alias.
4491         (__mq_open_2): New function.
4492         * debug/Versions (libc): Export __fortify_fail@@GLIBC_PRIVATE.
4493         * Versions.def (librt): Add GLIBC_2.7 version.
4494         * debug/fortify_fail.c (__fortify_fail): Add libc_hidden_def.
4495         * include/stdio.h (__fortify_fail): Add libc_hidden_proto.
4496
4497         * misc/sys/cdefs.h (__errordecl, __va_arg_pack_len): Define.
4498         * io/fcntl.h: Include bits/fcntl2.h when __va_arg_pack_len
4499         is defined rather than when not C++.
4500         * io/bits/fcntl2.h (__open_alias, __open64_alias, __openat_alias,
4501         __openat64_alias): New redirects.
4502         (__open_too_many_args, __open_missing_mode, __open64_too_many_args,
4503         __open64_missing_mode, __openat_too_many_args, __openat_missing_mode,
4504         __openat64_too_many_args, __openat64_missing_mode): New __errordecls.
4505         (open, open64, openat, openat64): Rewrite as __extern_always_inline
4506         functions instead of function-like macros.
4507
4508 2007-09-14  H.J. Lu  <hongjiu.lu@intel.com>
4509
4510         * sysdeps/i386/i586/memcpy.S (__memcpy_chk): New definition.
4511         * sysdeps/i386/i586/mempcpy.S (__memcpy_chk): New definition.
4512         * sysdeps/i386/i586/memset.S (__memset_chk): New definition.
4513
4514 2007-09-15  Mike Frysinger  <vapier@gentoo.org>
4515
4516         * inet/inet_net.c: Reset digit to 0 for inputs starting with "0x".
4517         * inet/tst-network.c (tests): Add edge case tests for "0", "0x", "0x0".
4518
4519 2007-09-14  Mike Frysinger  <vapier@gentoo.org>
4520
4521         * inet/tst-network.c: Increment ERRORS for failing tests.
4522
4523 2007-09-07  Jakub Jelinek  <jakub@redhat.com>
4524
4525         * misc/sys/cdefs.h (__va_arg_pack): Define for GCC 4.3+.
4526         * misc/bits/syslog.h (syslog): When __va_arg_pack is defined,
4527         implement as __extern_always_inline function.
4528         (vsyslog): Define as __extern_always_inline function unconditionally.
4529         * libio/bits/stdio2.h (sprintf, snprintf, printf, fprintf):
4530         When __va_arg_pack is defined, implement as __extern_always_inline
4531         functions.
4532         (vsprintf, vsnprintf, vprintf, vfprintf): Define as
4533         __extern_always_inline functions unconditionally.
4534         * libio/bits/stdio.h (vprintf): Ifdef out the inline when
4535         bits/stdio2.h will be included.
4536         * wcsmbs/bits/wchar2.h (__swprintf_alias): New redirect.
4537         (swprintf, wprintf, fwprintf): When __va_arg_pack is defined,
4538         implement as __extern_always_inline functions.
4539         (vswprintf, vwprintf, vfwprintf): Define as
4540         __extern_always_inline functions unconditionally.
4541         * debug/tst-chk1.c (do_test): Enable remaining tests for C++.
4542
4543 2007-09-03  Jakub Jelinek  <jakub@redhat.com>
4544
4545         * misc/sys/cdefs.h (__extern_inline, __extern_always_inline): Only
4546         define in C++ for GCC 4.3+, in C++ always use __gnu_inline__
4547         attribute.
4548         * include/features.h (__USE_EXTERN_INLINES): Define only when
4549         __extern_inline is defined.
4550         * stdlib/stdlib.h: Include bits/stdlib.h when __extern_always_inline
4551         is defined instead of when not __cplusplus.
4552         * misc/sys/syslog.h: Include bits/syslog.h when __extern_always_inline
4553         is defined instead of when not __cplusplus.
4554         * socket/sys/socket.h: Include bits/socket2.h when
4555         __extern_always_inline is defined instead of when not __cplusplus.
4556         * libio/stdio.h: Include bits/stdio2.h when __extern_always_inline
4557         is defined instead of when not __cplusplus.
4558         * posix/unistd.h: Include bits/unistd.h when __extern_always_inline
4559         is defined instead of when not __cplusplus.
4560         * string/string.h: Include bits/string3.h when __extern_always_inline
4561         is defined instead of when not __cplusplus.
4562         * wcsmbs/wchar.h: Include bits/wchar2.h when __extern_always_inline
4563         is defined instead of when not __cplusplus.
4564         (btowc, wctob): Don't guard the inlines with ifndef __cplusplus.
4565         * io/fcntl.h: Don't include bits/fcntl2.h if __extern_always_inline
4566         is not defined.
4567         * misc/bits/syslog-ldbl.h: Guard *_chk stuff with
4568         defined __extern_always_inline instead of !defined __cplusplus.
4569         * libio/bits/stdio-ldbl.h: Likewise.
4570         * wcsmbs/bits/wchar-ldbl.h: Likewise.
4571         * misc/bits/syslog.h (syslog): Don't define for C++.
4572         (vsyslog): Use __extern_always_inline function for C++ instead of
4573         a macro.
4574         * libio/bits/stdio.h (__STDIO_INLINE): Define to __extern_inline
4575         whenever that macro is defined.
4576         (vprintf): Don't provide the inline for C++.
4577         (fread_unlocked, fwrite_unlocked): Don't define the macros for C++.
4578         * libio/bits/stdio2.h (sprintf, snprintf, printf, fprintf): Don't
4579         define the macros for C++.
4580         (vsprintf, vsnprintf, vprintf, vfprintf): Define as
4581         __extern_always_inline functions for C++.
4582         * io/sys/stat.h (stat, lstat, fstat, fstatat, mknod, mknodat,
4583         stat64, lstat64, fstat64, fstatat64): Don't define if not
4584         __USE_EXTERN_INLINES.
4585         * wcsmbs/bits/wchar2.h: Fix #error message.
4586         (swprintf, wprintf, fwprintf): Don't define the macros for C++.
4587         (vswprintf, vwprintf, vfwprintf): Define using
4588         __extern_always_inline functions for C++.
4589         * string/bits/string3.h: Don't #undef macros if __cplusplus.
4590         (memcpy, memmove, mempcpy, memset, bcopy, bzero, strcpy, stpcpy,
4591         strncpy, strcat, strncat): Define as __extern_always_inline
4592         functions instead of macros for C++.
4593         * math/bits/cmathcalls.h: Guard __extern_inline routines with
4594         defined __extern_inline.
4595         * sysdeps/alpha/fpu/bits/mathinline.h (__MATH_INLINE): Define
4596         to __extern_inline whenever that macro is defined.
4597         * sysdeps/ia64/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
4598         * sysdeps/i386/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
4599         * sysdeps/i386/i486/bits/string.h (__STRING_INLINE): Likewise.
4600         * sysdeps/s390/bits/string.h (__STRING_INLINE): Likewise.
4601         * sysdeps/s390/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
4602         * sysdeps/powerpc/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
4603         * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
4604         * sysdeps/sparc/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
4605         * sysdeps/unix/sysv/linux/sys/sysmacros.h (gnu_dev_major,
4606         gnu_dev_minor, gnu_dev_makedev): Remove __extern_inline from
4607         prototypes.  Only provide __extern_inline routines if
4608         __USE_EXTERN_INLINES.
4609         * debug/Makefile: Add rules to build and run tst-{,lfs}chk{4,5,6}
4610         tests.
4611         * debug/tst-chk1.c (do_prepare, do_test): Allow compilation as C++.
4612         For now avoid some *printf tests in C++.  Skip all testing
4613         if __USE_FORTIFY_LEVEL is defined, but __extern_always_inline macro
4614         is not.
4615         * debug/tst-chk4.cc: New file.
4616         * debug/tst-chk5.cc: New file.
4617         * debug/tst-chk6.cc: New file.
4618         * debug/tst-lfschk4.cc: New file.
4619         * debug/tst-lfschk5.cc: New file.
4620         * debug/tst-lfschk6.cc: New file.
4621         * include/wchar.h (__vfwprintf_chk, __vswprintf_chk): Avoid
4622         prototypes in C++.
4623         * include/stdio.h (__sprintf_chk, __snprintf_chk, __vsprintf_chk,
4624         __vsnprintf_chk, __printf_chk, __fprintf_chk, __vprintf_chk,
4625         __vfprintf_chk, __fgets_unlocked_chk, __fgets_chk): Likewise.
4626
4627 2007-09-13  Ulrich Drepper  <drepper@redhat.com>
4628
4629         * po/cs.po: Update from translation team.
4630
4631 2007-09-11  Roland McGrath  <roland@redhat.com>
4632
4633         * posix/Makefile ($(objpfx)getconf.speclist): Make it empty if cross
4634         compiling.
4635
4636 2007-09-07  Samuel Thibault  <samuel.thibault@ens-lyon.org>
4637
4638         * sysdeps/mach/hurd/bits/ioctls.h (TAB3): New macro.
4639
4640 2007-09-05  Roland McGrath  <roland@redhat.com>
4641
4642         * manual/signal.texi (Signaling Another Process): Typo fix.
4643         From Karl Berry <karl@freefriends.org>.
4644
4645 2007-08-29  Ulrich Drepper  <drepper@redhat.com>
4646
4647         * sysdeps/unix/sysv/linux/check_pf.c (IFA_F_OPTIMISTIC): Define to
4648         zero if not defined.
4649         (make_request): Recognize optimistic addresses and treat them like
4650         deprecated addresses.
4651         Reported by Neil Horman <nhorman@redhat.com>.
4652
4653 2007-08-28  Ulrich Drepper  <drepper@redhat.com>
4654
4655         * nscd/connections.c (send_ro_fd): Also transfer file size.
4656         * nscd/nscd_helper.c (get_mapping): If nscd also transfers the
4657         file size don't call fstat.
4658
4659         * nscd/nscd_helper.c (get_mapping): Avoid the pread call, just go
4660         ahead and map the file.  This should always be correct and we can
4661         catch problems later.
4662
4663 2007-08-28  Jakub Jelinek  <jakub@redhat.com>
4664
4665         * libio/bits/stdio2.h (__fread_chk, __fread_unlocked_chk): New
4666         prototypes.
4667         (__fread_alias, __fread_unlocked_alias): New aliases.
4668         (fread): New extern inline.
4669         (fread_unlocked): Likewise.  Undef macro before definition of
4670         the inline function.
4671         * debug/Makefile (routines): Add fread_chk and fread_u_chk.
4672         (CFLAGS-fread_chk.c, CFLAGS-fread_u_chk.c): Add.
4673         * debug/Versions (libc): Export __fread_chk@@GLIBC_2.7
4674         and __fread_unlocked_chk@@GLIBC_2.7.
4675         * debug/fread_chk.c: New file.
4676         * debug/fread_u_chk.c: New file.
4677         * debug/tst-chk1.c (do_test): Add fread and fread_unlocked tests.
4678
4679 2007-08-27  Jakub Jelinek  <jakub@redhat.com>
4680
4681         * sysdeps/unix/sysv/linux/syscalls.list
4682         (personality): Change caller to EXTRA.
4683
4684 2007-08-25  Ulrich Drepper  <drepper@redhat.com>
4685
4686         * iconvdata/iso-2022-kr.c (BODY): Fake initialization of array buf
4687         to keep gcc quiet.
4688         * iconvdata/iso-2022-cn.c (BODY): Likewise.
4689
4690         * locale/programs/ld-collate.c (collate_output): Avoid warning if
4691         NDEBUG is defined.
4692
4693         * Makerules: Use -p option with mkdir.
4694
4695         * sunrpc/key_prot.c (xdr_unixcred): Work around gcc alias warning.
4696         * nis/nis_xdr.c (_xdr_nis_server): Likewise.
4697         (_xdr_directory_obj): Likewise.
4698         (xdr_entry_obj): Likewise.
4699         (xdr_group_obj): Likewise.
4700         (xdr_link_obj): Likewise.
4701         (xdr_table_obj): Likewise.
4702         (_xdr_nis_result): Likewise.
4703         (_xdr_ns_request): Likewise.
4704         (_xdr_ib_request): Likewise.
4705         (_xdr_nis_taglist): Likewise.
4706         (xdr_cback_data): Likewise.
4707         * nis/yp_xdr.c (xdr_ypmaplist): Likewise.
4708         (xdr_ypresp_maplist): Likewise.
4709
4710         * stdio-common/Makefile: Avoid format string warning for tst-sprint.
4711
4712         * posix/regex_internal.h: Prevent some declarations and definitions
4713         to be seen when used in tests.
4714
4715         * posix/tst-rfc3484.c (__idna_to_unicode_lzlz): Initialize *OUTPUT.
4716         * posix/tst-rfc3484-2.c (__idna_to_unicode_lzlz): Likewise.
4717
4718         * debug/Makefile: Disable format checking when compiling tst-chk?.c.
4719
4720         * config.make.in (datarootdir): Add to shut up configure.
4721
4722         * sysdeps/x86_64/cacheinfo.c (handle_amd): Fix computation of
4723         associativity for fully-associative caches.
4724
4725         * sysdeps/x86_64/cacheinfo.c (handle_amd): Handle L3 cache
4726         requests.  Fill on more associativity values for L2.
4727         Patch mostly by Evandro Menezes.
4728
4729 2007-08-24  Ulrich Drepper  <drepper@redhat.com>
4730
4731         * sysdeps/unix/sysv/linux/x86_64/init-first.c
4732         (_libc_vdso_platform_setup): Avoid using exported variable by using
4733         alias.
4734
4735         * resolv/arpa/nameser.h (NS_OPT_DNSSEC_OK): Define.
4736
4737         * sysdeps/unix/sysv/linux/i386/syscalls.list: No reason to mark
4738         fallocate64 as EXTRA.  It is not referenced if the symbol isn't
4739         defined.
4740
4741 2007-08-23  Ulrich Drepper  <drepper@redhat.com>
4742
4743         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Correctly
4744         align stack for call if pltexit is to be used.
4745
4746         [BZ #3924]
4747         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Correctly
4748         align for function call in case pltexit has to be called later.
4749
4750         * sysdeps/i386/dl-trampoline.S (_dl_runtime_resolve): Avoid
4751         implicit atomic operation when storing function pointer.
4752         (_dl_runtime_profile): Likewise.
4753
4754 2007-08-17  Jakub Jelinek  <jakub@redhat.com>
4755
4756         * nis/nis_table.c (nis_list): Don't fail if __follow_path returned
4757         NIS_NOTFOUND.
4758
4759 2007-08-21  Ulrich Drepper  <drepper@redhat.com>
4760
4761         [BZ #4566]
4762         * string/strtok.c: Fix typo in comment.
4763
4764         [BZ #4582]
4765         * debug/segfault.c: Fix typos in comments.
4766
4767         [BZ #4588]
4768         * stdio-common/tempnam.c: Fix comment, it is not checked that
4769         TMPDIR points to a writable directory.
4770
4771         [BZ #4726]
4772         * resolv/res_send.c (__libc_res_nsend): Initialize all of the
4773         memory allocated for the name server address.
4774
4775         [BZ #4946]
4776         * nscd/connections.c (handle_request): Using sendfile always
4777         requires that mmap is used for the database.
4778         Patch by Petr Baudis <pasky@suse.cz>.
4779
4780         [BZ #4905]
4781         * nscd/hstcache.c (cache_addhst): When reloading an entry which
4782         suddenly has two or more addresses, ignore it and remove the old
4783         entry.
4784
4785         [BZ #4814]
4786         * resolv/res_hconf.c: Prepare for compiling outside libc.
4787         * nscd/res_hconf.c: New file.
4788         * nscd/Makefile (nscd-modules): Add res_hconf.  Add rules to build
4789         the new file.
4790         * nscd/gethstbynm2_r.c (NEED__RES_HCONF): Define.
4791         * nscd/gethstbyad_r.c (NEED__RES_HCONF): Likewise.
4792
4793         * nscd/hstcache.c (cache_addhst): Minimal optimization.
4794
4795         [BZ #4925]
4796         * debug/pcprofiledump.c: Turn on internationalization by calling
4797         setlocale.  Patch mostly by Benno Schulenberg.
4798
4799         [BZ #4936]
4800         * iconv/gconv.c (__gconv): If flush was successful, clear rest of
4801         the state.
4802         * iconvdata/Makefile: Add rules to build and run bug-iconv5.
4803         * iconvdata/bug-iconv5.c: New file.
4804
4805 2007-08-04  Carlos O'Donell  <carlos@systemhalted.org>
4806
4807         [BZ #4896]
4808         * elf/elf.h: Define R_PARISC_PLABEL21L, R_PARISC_PLABEL14R,
4809         R_PARISC_GNU_VTENTRY, R_PARISC_GNU_VTINHERIT, R_PARISC_TLS_GD21L,
4810         R_PARISC_TLS_GD14R, R_PARISC_TLS_GDCALL, R_PARISC_TLS_LDM21L,
4811         R_PARISC_TLS_LDM14R, R_PARISC_TLS_LDMCALL, R_PARISC_TLS_LDO21L,
4812         R_PARISC_TLS_LDO14R, R_PARISC_TLS_DTPMOD32, R_PARISC_TLS_DTPMOD64,
4813         R_PARISC_TLS_DTPOFF32, R_PARISC_TLS_DTPOFF64, R_PARISC_TLS_LE21L,
4814         R_PARISC_TLS_LE14R, R_PARISC_TLS_IE21L, R_PARISC_TLS_IE14R,
4815         R_PARISC_TLS_TPREL32, R_PARISC_TLS_TPREL64.
4816
4817 2007-08-21  Ulrich Drepper  <drepper@redhat.com>
4818
4819         [BZ #4937]
4820         * elf/do-lookup.h (do_lookup_x): Minimal improvement in hash
4821         lookup loop.  Suggested by John Reiser.
4822
4823 2007-08-21  Jakub Jelinek  <jakub@redhat.com>
4824
4825         * sysdeps/unix/sysv/linux/alpha/sysdep.h: Include tls.h.
4826
4827 2007-08-20  Ulrich Drepper  <drepper@redhat.com>
4828
4829         * csu/libc-start.c: Don't handle VDSO_SETUP here.
4830         * sysdeps/unix/sysv/linux/init-first.c: Handle it here instead.
4831         * sysdeps/unix/sysv/linux/x86_64/libc-start.c: Renamed to...
4832         * sysdeps/unix/sysv/linux/x86_64/init-first.c: ...this.  New file.
4833         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Move VDSO_SETUP code
4834         to...
4835         * sysdeps/unix/sysv/linux/x86_64/init-first.c: ...here.  New file.
4836
4837 2007-08-18  Ulrich Drepper  <drepper@redhat.com>
4838
4839         * po/nl.po: Update from translation team.
4840
4841 2007-08-16  Andreas Jaeger  <aj@suse.de>
4842
4843         * locale/localeinfo.h: Make _nl_category_name_idxs extern.
4844         Reported by Peter Festner <peter.festner@ewetel.net>.
4845
4846 2007-08-17  Jakub Jelinek  <jakub@redhat.com>
4847
4848         * login/tst-grantpt.c (test_einval): Add 3rd argument to open.
4849
4850 2007-08-16  Jakub Jelinek  <jakub@redhat.com>
4851
4852         * elf/Makefile ($(objpfx)ld.so): Use readelf -s and awk instead of nm -u
4853         to check for undefined symbols.
4854
4855         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone):
4856         If the syscall fails, set errno to the actual returned error number
4857         rather than EINVAL.
4858         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__clone): If
4859         arguments are incorrect, set errno to EINVAL, if the syscall
4860         fails, set errno to the actual returned error number.
4861
4862         * stdlib/bits/stdlib-ldbl.h (__strtold_internal): Remove.
4863         * wcsmbs/bits/wchar-ldbl.h (__wcstold_internal): Remove.
4864
4865         * sysdeps/sparc/sparc32/sparcv9b/memcpy.S: Moved to...
4866         * sysdeps/sparc/sparc32/sparcv9/sparcv9b/memcpy.S: ... here.  New
4867         file.
4868         (ASI_PNF, ASI_BLK_P): Don't define.
4869         * sysdeps/sparc/sparc32/sparcv9v/memcpy.S: Moved to...
4870         * sysdeps/sparc/sparc32/sparcv9/sparcv9v/memcpy.S: ... here.  New
4871         file.
4872         * sysdeps/sparc/sparc32/sparcv9v/memset.S: Moved to...
4873         * sysdeps/sparc/sparc32/sparcv9/sparcv9v/memset.S: ... here.  New
4874         file.
4875
4876 2007-08-15  Jakub Jelinek  <jakub@redhat.com>
4877
4878         * sysdeps/sparc/fpu/fraiseexcpt.c (__feraiseexcept): Fix raising
4879         FE_UNDERFLOW on Niagara CPUs.
4880
4881         * sysdeps/sparc/fpu/feholdexcpt.c (feholdexcept): Clear all
4882         exceptions.
4883
4884 2007-08-14  Jakub Jelinek  <jakub@redhat.com>
4885
4886         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_runtime_setup): No
4887         need to check GLRO(dl_hwcap) & HWCAP_SPARC_FLUSH on sparcv9.
4888         (sparc_fixup_plt): Add do_flush argument instead of figuring whether
4889         flush should be used or not inside of the function.
4890         (elf_machine_fixup_plt, elf_machine_rela): Adjust caller.
4891
4892         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone,
4893         __thread_start): Use HIDDEN_JUMPTARGET.
4894         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__clone,
4895         __thread_start): Likewise.
4896         * sysdeps/unix/sysv/linux/sparc/sysdep.h (JUMPTARGET): Define.
4897
4898         * sysdeps/ieee754/ldbl-64-128/strtold_l.c (__STRTOF): Declare.
4899         Add libc_hidden_proto.
4900         (STRTOF): Add libc_hidden_proto.
4901         (___new_strtold_l, ___new_wcstold_l): New weak aliases.
4902         (strtold_l, wcstold_l): Use them as second argument for
4903         long_double_symbol.
4904
4905 2007-08-14  Ulrich Drepper  <drepper@redhat.com>
4906
4907         * elf/dl-misc.c: Undo last change.  The kernel won't allow it.
4908
4909 2007-08-13  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
4910
4911         * stdlib/strtold_l.c: Include wchar.h if needed.  Add libc_hidden_def.
4912
4913 2007-08-14  Ulrich Drepper  <drepper@redhat.com>
4914
4915         * po/bg.po: New file.  From the translation team.
4916
4917 2007-08-13  Jakub Jelinek  <jakub@redhat.com>
4918
4919         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PSELECT,
4920         __ASSUME_PPOLL, __ASSUME_ATFCTS, __ASSUME_SET_ROBUST_LIST,
4921         __ASSUME_UTIMENSAT, __ASSUME_FALLOCATE): Update per-arch conditions
4922         when each feature was introduced.
4923
4924         * sysdeps/unix/sysv/linux/dl-vdso.c: Don't include dl-hash.h.
4925         * sysdeps/unix/sysv/linux/dl-vdso.h: Don't include dl-hash.h if NDEBUG.
4926         (CHECK_HASH): New macro.
4927         (PREPARE_VERSION): Use it.
4928
4929         * sysdeps/unix/sysv/linux/pselect.c (__generic_pselect): Only provide
4930         prototype if not __ASSUME_PSELECT.
4931         * sysdeps/unix/sysv/linux/ppoll.c (__generic_ppoll): Only provide
4932         prototype if not __ASSUME_PPOLL.
4933
4934         * sysdeps/unix/sysv/linux/dl-osinfo.h (ROUND): #undef after use.
4935
4936         * sysdeps/unix/clock_settime.c (freq, __pthread_clock_settime,
4937         hp_timing_settime): Don't define or declare if HANDLED_CPUTIME
4938         is defined.
4939
4940 2007-08-13  Ulrich Drepper  <drepper@redhat.com>
4941
4942         * sysdeps/unix/sysv/linux/x86_64/libc-start.c
4943         (_libc_vdso_platform_setup): If vDSO is not available point
4944         __vdso_gettimeofday to the vsyscall.
4945         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S [SHARED]: Use
4946         __vdso_gettimeofday instead of vsyscall.
4947
4948 2007-08-13  Jakub Jelinek  <jakub@redhat.com>
4949
4950         * nscd/servicescache.c: Include kernel-features.h.
4951         * nscd/gai.c: Likewise.
4952         * sysdeps/unix/sysv/linux/statfs64.c: Likewise.
4953         * sysdeps/unix/sysv/linux/fstatfs64.c: Likewise.
4954         * sysdeps/unix/sysv/linux/fxstatat.c: Likewise.
4955         * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S: Likewise.
4956         * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S: Likewise.
4957         * sysdeps/unix/sysv/linux/xstatconv.c: Likewise.
4958         * sysdeps/unix/sysv/linux/if_index.c: Likewise.
4959         * sysdeps/unix/sysv/linux/sparc/sparc64/xstat.c: Likewise.
4960         * sysdeps/unix/sysv/linux/ifaddrs.c: Likewise.
4961
4962 2007-08-12  Ulrich Drepper  <drepper@redhat.com>
4963
4964         * elf/dl-dst.h: No need for _dl_dst_count, _dl_dst_substitute,
4965         and _dl_get_origin defines anymore.
4966
4967         * sysdeps/unix/sysv/linux/clock_gettime.c (maybe_syscall_gettime_cpu):
4968         Build fix for systems which might lack POSIX timer support.
4969
4970         * sysdeps/unix/sysv/linux/x86_64/libc-start.c
4971         (_libc_vdso_platform_setup): Mangle function pointers before storing
4972         them.
4973         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_VSYSCALL):
4974         Demangle vdso pointer before use.
4975         (INTERNAL_VSYSCALL): Likewise.
4976
4977         * elf/cache.c (primes): Mark as const.
4978         Noted by Roland McGrath.
4979
4980 2007-08-01  Andreas Jaeger  <aj@suse.de>
4981             Jakub Jelinek  <jakub@redhat.com>
4982
4983         * elf/ldconfig.c (opt_ignore_aux_cache): Add new option.
4984         (options): Add option.
4985         (parse_opt): Handle option.
4986         (manual_link): Adjust process_file caller.  Call implicit_soname.
4987         (search_dir): Formatting.  Use and populate auxiliary cache.
4988         (main): Load and save auxiliary cache.
4989         * elf/readlib.c (process_file): Add stat_buf argument.  Pass struct
4990         stat64 from fstat64 to caller.
4991         (implicit_soname): New function.
4992         * elf/readelflib.c (process_elf_file): If DT_SONAME is not present,
4993         leave *soname as NULL.
4994         * elf/cache.c: Include libgen.h.
4995         (print_entry, print_cache, compare, save_cache, add_to_cache):
4996         Formatting and cleanups.
4997         (aux_cache_entry_id, aux_cache_entry, aux_cache_file_entry,
4998         aux_cache_file): New structures.
4999         (AUX_CACHEMAGIC): Define.
5000         (primes): New array.
5001         (aux_hash_size, aux_hash): New variables.
5002         (aux_cache_entry_id_hash, nextprime, init_aux_cache,
5003         search_aux_cache, insert_to_aux_cache, add_to_aux_cache,
5004         load_aux_cache, save_aux_cache): New functions.
5005         * sysdeps/generic/ldconfig.h (_PATH_LDCONFIG_AUX_CACHE): Define.
5006         (init_aux_cache, search_aux_cache, add_to_aux_cache,
5007         load_aux_cache, save_aux_cache, implicit_soname): New prototypes.
5008         (process_file): Adjust prototype.
5009
5010 2007-08-12  Jakub Jelinek  <jakub@redhat.com>
5011
5012         * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h: Include stddef.h
5013         with __need_size_t.
5014
5015 2007-08-12  Ulrich Drepper  <drepper@redhat.com>
5016
5017         * sysdeps/unix/sysv/linux/dl-vdso.c (_dl_vdso_vsym): Expect
5018         r_found_version structure as second parameter.
5019         * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION): Define.
5020         (_dl_vdso_vsym): Change type of second parameter accordingly.
5021         * sysdeps/unix/sysv/linux/x86-64/libc-start.c
5022         (_libc_vdso_platform_setup): Adjust.
5023         * sysdeps/unix/sysv/linux/powerpc/libc-start.c
5024         (_libc_vdso_platform_setup): Likewise.
5025
5026         * sysdeps/unix/sysv/linux/powerpc/dl-vdso.c: Move to...
5027         * sysdeps/unix/sysv/linux/dl-vdso.c: ...here.
5028         * sysdeps/unix/sysv/linux/powerpc/dl-vdso.h: Move to...
5029         * sysdeps/unix/sysv/linux/dl-vdso.h: ...here.
5030         * csu/libc-start.c: Pretty printing.
5031         Use VDSO_SETUP if defined.
5032         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Define VDSO_SETUP
5033         and let generic code call into _libc_vdso_platform_setup.
5034         * sysdeps/unix/sysv/linux/x86_64/libc-start.c: New file.
5035         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: New file.
5036         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Pretty printing.
5037         Define INLINE_VSYSCALL and INTERNAL_VSYSCALL.
5038         * sysdeps/unix/sysv/linux/x86_64/Versions: Export __vdso_clock_gettime
5039         for GLIBC_PRIVATE.
5040         * sysdeps/unix/sysv/linux/x86_64/Makefile [subdir=elf]
5041         (sysdep_rountines): Add dl-vdso.
5042
5043         * sysdeps/unix/sysv/linux/powerpc/Makefile: Use sysdep_routines instead
5044         of routines.
5045
5046         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Add
5047         attribute_hidden to __vdso_gettimeofday prototype.
5048
5049 2007-08-12  Roland McGrath  <roland@redhat.com>
5050
5051         * manual/stdio.texi (Variable Arguments Output): Fix xref to gcc manual.
5052         From: Karl Berry <karl@freefriends.org>.
5053
5054 2007-08-11  Ulrich Drepper  <drepper@redhat.com>
5055
5056         * elf/dl-misc.c (_dl_sysdep_read_whole_file): We really don't need
5057         an atime update for the files we read.
5058
5059 2007-08-10  Ulrich Drepper  <drepper@redhat.com>
5060
5061         * shadow/lckpwdf.c (__lckpwdf): Use O_CLOEXEC if possible.
5062
5063         * nscd/connections.c: Use O_CLOEXEC if possible.  Use mkostemp
5064         instead of mkstemp.
5065
5066         * misc/Makefile (routines): Add mkostemp and mkostemp64.
5067         * misc/Versions: Export mkostemp and mkostemp64 for GLIBC_2.7.
5068         * misc/mkostemp.c: New file.
5069         * misc/mkostemp64.c: New file.
5070         * stdlib/stdlib.h: Declare the new functions.
5071         * sysdeps/posix/tempname.c: Add new parameter which is added to
5072         the flags for open.  Remove __GT_BIGFILE handling.
5073         * stdio-common/tempname.c: Likewise.
5074         * include/stdio.h: Adjust __gen_tempname prototype.
5075         Renumber __GT_* constants.
5076         * libio/oldtmpfile.c: Adjust for __gen_tempname interface change.
5077         * misc/mkdtemp.c: Likewise.
5078         * misc/mkstemp.c: Likewise.
5079         * misc/mkstemp64.c: Likewise.
5080         * misc/mktemp.c: Likewise.
5081         * stdio-common/tempnam.c: Likewise.
5082         * stdio-common/tmpfile.c: Likewise.
5083         * stdio-common/tmpfile64.c: Likewise.
5084         * stdio-common/tmpnam.c: Likewise.
5085         * stdio-common/tmpnam_r.c: Likewise.
5086
5087 2007-08-10  Roland McGrath  <roland@frob.com>
5088
5089         * sysdeps/mach/hurd/bits/ioctls.h (NLDLY, TABDLY, BSDLY, VTDLY):
5090         New macros.
5091         (NLDELAY, CRDELAY, TBDELAY, BSDELAY, VTDELAY): Define to those.
5092         Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
5093
5094 2007-08-10  Ulrich Drepper  <drepper@redhat.com>
5095
5096         * nss/nss_files/files-XXX.c (internal_setent): Use O_CLOEXEC if
5097         possible.
5098         * nss/nss_files/files-alias.c (internal_setent): Likewise.
5099         * nss/Makefile (libnss_files-routines): Add files-have_o_cloexec.
5100         * nss/nss_files/files-have_o_cloexec.c: New file.
5101
5102         * sysdeps/unix/sysv/linux/shm_open.c (shm_open): Use O_CLOEXEC if
5103         available.
5104
5105 2007-08-10  Jakub Jelinek  <jakub@redhat.com>
5106
5107         * sysdeps/ieee754/ldbl-128ibm/strtold_l.c (___new_strtold_l,
5108         ___new_wcstold_l): New weak aliases.
5109         (strtold_l, wcstold_l): Use them as second argument for
5110         long_double_symbol.
5111
5112 2007-08-09  Ulrich Drepper  <drepper@redhat.com>
5113
5114         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Use correct
5115         register in test for error.
5116
5117         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_CLOEXEC): Define.
5118         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (O_CLOEXEC): Likewise.
5119
5120         * po/sv.po: Update from translation team.
5121
5122 2007-08-06  Roland McGrath  <roland@redhat.com>
5123
5124         * include/stdlib.h: Add libc_hidden_proto for strto*, __strto*_l.
5125         Remove __strto*_l inlines.
5126         * include/wchar.h: Add libc_hidden_proto for wcsto*, __wcsto*_l.
5127         * stdlib/strtod.c: Add libc_hidden_def.
5128         * stdlib/strtod_l.c: Likewise.
5129         * stdlib/strtold.c [__LONG_DOUBLE_MATH_OPTIONAL]: Add libc_hidden_proto
5130         for __new_strtold and __new_wcstold.
5131         * sysdeps/ieee754/ldbl-128ibm/strtold_l.c: Add libc_hidden_proto for
5132         __STRTOF, STRTOF.
5133         * stdlib/strtol.c: Add libc_hidden_def.
5134         * stdlib/strtol_l.c: Likewise.
5135         * sysdeps/wordsize-64/strtol.c: Add libc_hidden_ver for strtoll and
5136         strtoq.
5137
5138         * scripts/data/localplt-powerpc-linux-gnu.data: New file.
5139
5140         * scripts/data/localplt-x86_64-linux-gnu.data: File renamed to ...
5141         * scripts/data/localplt-generic.data: ... here.
5142         * elf/Makefile (check-data): Get generic file if no other.
5143         ($(objpfx)check-localplt.out): Make target unconditional.
5144
5145         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_discover_osversion):
5146         Use ElfW(Nhdr).
5147
5148 2007-08-05  Ulrich Drepper  <drepper@redhat.com>
5149
5150         * po/zh_CN.po: Updated translation from translation team.
5151
5152 2007-08-05  Jakub Jelinek  <jakub@redhat.com>
5153
5154         * sysdeps/unix/sysv/linux/powerpc/powerpc32/socket.S (__socket):
5155         Don't use CGOTSETUP and CGOTRESTORE macros.
5156
5157 2007-08-04  Roland McGrath  <roland@redhat.com>
5158
5159         * posix/Makefile ($(objpfx)getconf.speclist): Fix typo.
5160
5161 2007-08-04  Jakub Jelinek  <jakub@redhat.com>
5162
5163         * io/bits/fcntl2.h (open, open64, openat, openat64): Add
5164         __extension__ around the whole statement expression.
5165
5166 2007-08-04  Ulrich Drepper  <drepper@redhat.com>
5167
5168         * sysdeps/unix/opendir.c (__alloc_dir): Correct order of DIR
5169         elements during initialization.
5170
5171         * po/pl.po: Updated translation from translation team.
5172         * po/tr.po: Likewise.
5173         * po/nl.po: Likewise.
5174
5175 2007-08-03  Ulrich Drepper  <drepper@redhat.com>
5176
5177         * rt/aio.h: Add __nonnull attributes.
5178
5179 2007-08-03  Jakub Jelinek  <jakub@redhat.com>
5180
5181         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Properly handle -0.
5182         * stdlib/Makefile (tests): Add tst-strtod5.
5183         (tst-strtod5-ENV): New.
5184         * stdlib/tst-strtod5.c: New file.
5185
5186         * intl/dcigettext.c (_nl_find_msg): Free encoding if __gconv_open
5187         failed.
5188         * intl/finddomain.c (_nl_find_domain): Free normalized_codeset
5189         on failure.
5190
5191         * elf/dl-load.c (decompose_rpath): Free copy if result couldn't be
5192         allocated.
5193
5194 2007-08-03  Jakub Jelinek  <jakub@redhat.com>
5195
5196         * rt/mqueue.h (mq_timedreceive, mq_timedsend): Fix nonnull argument
5197         numbers.
5198
5199 2007-08-02  Ulrich Drepper  <drepper@redhat.com>
5200
5201         * io/Makefile (aux): Add have_o_cloexec.
5202         * include/fcntl.h: Declare __have_o_cloexec.
5203         * io/have_o_cloexec.c: New file.
5204         * sysdeps/unix/opendir.c (__opendir): Use O_CLOEXEC is available.
5205         (__alloc_dir): If O_CLOEXEC has been used, don't duplicate the
5206         fcntl call if not necessary.
5207         * login/utmp_file.c (setutent_file): Use __have_o_cloexec instead
5208         of local variable.
5209
5210         * sysdeps/unix/opendir.c (__alloc_dir): Don't initialize ->data.
5211         Avoid memset, add explicit initialization.
5212         * sysdeps/unix/dirstream.h (struct __dirstream): Move data elemtn
5213         to the end and change into zero-sized array.
5214         Move lock member to fill a hole on 64-bit platforms.
5215
5216         * stdlib/stdlib.h: Remove __strto*_internal prototypes and strto*
5217         inline functions.
5218         * include/stdlib.h: Add __strto*_internal prototypes here.
5219         * wcsmbs/wchar.h: Remove __wcsto*_internal prototypes and wcsto*
5220         inline functions.
5221         * include/wchar.h: Add __wcsto*_internal prototypes.
5222         * sysdeps/generic/inttypes.h: No need to protect the declaration
5223         of the __strto*_internal and __wcsto*_internal members here.
5224
5225         * rt/mqueue.h: Change const to __const and add nonnull attributes.
5226
5227 2007-08-02  Roland McGrath  <roland@redhat.com>
5228
5229         * posix/Makefile ($(inst_libexecdir)/getconf): Make hard links to
5230         $(inst_bindir)/getconf if possible.
5231
5232         * posix/Makefile ($(objpfx)getconf.speclist): New target.
5233         (generated): Add it.
5234         ($(inst_libexecdir)/getconf): Use it.
5235
5236 2007-08-01  Ulrich Drepper  <drepper@redhat.com>
5237
5238         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Using
5239         /proc is faster and sufficient.  /sys is still needed for
5240         __get_nprocs_conf.
5241
5242 2007-08-01  Jakub Jelinek  <jakub@redhat.com>
5243
5244         * sysdeps/unix/sysv/linux/i386/syscalls.list (fallocate): Add fallocate
5245         syscall as __fallocate64.
5246         * sysdeps/unix/sysv/linux/i386/posix_fallocate.c: New file.
5247         * sysdeps/unix/sysv/linux/i386/posix_fallocate64.c: New file.
5248
5249 2007-07-30  Jakub Jelinek  <jakub@redhat.com>
5250
5251         * stdlib/tst-strtod2.c (do_test): Use %tu in fmt string for ptrdiff_t
5252         value.
5253
5254         * stdio-common/tst-fmemopen2.c (do_test): Avoid fmt string warning
5255         if off_t is different rank from size_t.
5256
5257         * sysdeps/generic/unwind-dw2.c (extract_cie_info, execute_cfa_program,
5258         uw_frame_state_for): Avoid type punning warnings.
5259         * sysdeps/generic/unwind-dw2-fde-glibc.c
5260         (_Unwind_IteratePhdrCallback): Likewise.
5261         * sysdeps/generic/unwind-dw2-fde.c (_Unwind_Find_FDE): Likewise.
5262         (binary_search_single_encoding_fdes, binary_search_mixed_encoding_fdes,
5263         get_cie_encoding, linear_search_fdes): Don't mix char and unsigned char
5264         pointers.
5265
5266 2007-07-31  Ulrich Drepper  <drepper@redhat.com>
5267
5268         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs_conf): Count
5269         total processors using sysfs.
5270         (__get_nprocs): Use sysfs to determine which processors are online.
5271
5272 2007-07-31  Jakub Jelinek  <jakub@redhat.com>
5273
5274         * sysdeps/unix/sysv/linux/posix_fallocate.c (posix_fallocate): Fix
5275         syscall arguments count.
5276
5277         * stdio-common/tfformat.c (sprint_doubles): Add 12 new tests.
5278
5279 2007-07-30  Roland McGrath  <roland@redhat.com>
5280
5281         * manual/libc.texinfo: Update copyrights, formatting magic, and
5282         @dircategory.  From Karl Berry <karl@freefriends.org>.
5283
5284 2007-07-29  Ulrich Drepper  <drepper@redhat.com>
5285
5286         [BZ #4860]
5287         * io/Makefile (headers): Add bits/fcntl2.h.
5288
5289         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_ZERO_S): Optimize
5290         using gcc builtin.
5291         (__CPU_EQUAL_S): Likewise.
5292
5293         * posix/Makefile (routines): Add sched_cpualloc and sched_cpufree.
5294         (tests): Add tst-cpuset.
5295         * posix/sched_cpualloc.c: New file.
5296         * posix/sched_cpufree.c: New file.
5297         * posix/tst-cpuset.c: New file.
5298         * posix/Versions: Export __sched_cpualloc and __sched_cpufree for
5299         GLIBC_2.7.
5300         * sysdeps/unix/sysv/linux/bits/sched.h: Define __CPU_*_S macros.
5301         * posix/sched.h: Define old CPU_* macros in temers of __CPU_*_S
5302         macros.  Define CPU_*_S macros.
5303
5304 2007-07-28  Ulrich Drepper  <drepper@redhat.com>
5305
5306         * posix/getconf.c (vars): Add missing _SC_LEVEL4_CACHE_LINESIZE
5307         entry.
5308
5309         [BZ #4858]
5310         * stdio-common/printf_fp.c (___printf_fp): Fix special case of
5311         #.0g and value rounded to 1.0.
5312         * stdio-common/tfformat.c (sprint_doubles): Add two new tests.
5313
5314 2007-07-26  Jakub Jelinek  <jakub@redhat.com>
5315
5316         * locale/programs/ld-monetary.c (monetary_finish): Avoid range check
5317         for int_frac_digits and frac_digits.
5318
5319         * login/logout.c (logout): Avoid aliasing violation.
5320         * login/logwtmp.c (logwtmp): Likewise.
5321
5322         * libio/genops.c (_IO_un_link): Avoid aliasing violation.
5323
5324         * nscd/selinux.c (preserve_capabilities): Initialize new_caps
5325         to avoid warning.
5326         * iconv/gconv_open.c (__gconv_open): Initialize ptr to avoid
5327         warning.
5328         * nis/nis_subr.c (nis_getnames): Initialize saveptr to avoid
5329         warning.
5330         * resolv/inet_ntop.c (inet_ntop6): Initialize best.len and cur.len
5331         to avoid warnings.
5332
5333         * nss/nsswitch.c (__nss_lookup_function): Don't cast &ni->known to
5334         void **.
5335         * nss/nsswitch.h (service_user): Use void * type for KNOWN field.
5336
5337         * nss/nss_files/files-hosts.c (LINE_PARSER): Cast host_addr to
5338         char * to avoid warning.
5339         * nis/nss_nis/nis-hosts.c (LINE_PARSER): Likewise.
5340
5341         * timezone/Makefile (CFLAGS-zdump.c): Add -fwrapv.
5342
5343         * locale/programs/ld-ctype.c (ctype_finish, set_class_defaults,
5344         allocate_arrays): Cast second argument to charmap_find_symbol
5345         to char * to avoid warnings.
5346
5347         * locale/programs/repertoire.c (repertoire_new_char): Change
5348         from_nr, to_nr and cnt to unsigned long, adjust printf format
5349         string.
5350
5351         * locale/programs/ld-collate.c (insert_value, handle_ellipsis):
5352         Cast second argument to new_element to char * to avoid warnings.
5353
5354         * locale/weightwc.h (findidx): Cast &extra[-i] to const int32_t *.
5355
5356         * intl/gettextP.h (struct loaded_domain): Change plural to const
5357         struct expression *.
5358         * intl/plural-eval.c (plural_eval): Change first argument to
5359         const struct expression *.
5360         * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Change first
5361         argument to const struct expression **.
5362         * intl/plural-exp.h (EXTRACT_PLURAL_EXPRESSION, plural_eval): Adjust
5363         prototypes.
5364         * intl/loadmsgcat (_nl_unload_domain): Cast away const
5365         in call to __gettext_free_exp.
5366
5367         * posix/fnmatch.c (fnmatch): Rearrange code to avoid maybe
5368         unitialized wstring/wpattern var warnings.
5369
5370         * posix/runtests.c (struct a_test): Make data field const char *.
5371
5372         * stdio-common/tst-sprintf2.c (main): Don't declere u, v and buf
5373         vars if not LDBL_MANT_DIG >= 106.
5374
5375         * stdio-common/Makefile (CFLAGS-vfwprintf.c): Add -Wno-unitialized.
5376
5377         * stdio-common/vfprintf.c (vfprintf): Cast first arugment to
5378         __find_specmb to avoid warning.
5379
5380         * rt/tst-mqueue1.c (do_one_test): Add casts to avoid warnings.
5381
5382         * debug/test-strcpy_chk.c (do_tests, do_random_tests): Add casts
5383         to avoid warnings.
5384
5385         * sysdeps/ieee754/ldbl-96/s_roundl.c (huge): Add L suffix to
5386         initializer.
5387
5388         * sysdeps/unix/clock_gettime.c (clock_gettime): Only define
5389         tv var when it will be actually used.
5390
5391         * sunrpc/rpc_cmsg.c (xdr_callmsg): Cast IXDR_PUT_* to void
5392         to avoid warnings.
5393
5394         * iconvdata/gbk.c (BODY): Make buf and cp char instead of unsigned
5395         char array resp. pointer.
5396         * iconvdata/iso-2022-kr.c (BODY): Make buf unsigned char instead of
5397         char array.
5398         * iconvdata/cns11643.h (cns11643_to_ucs4): Change first argument
5399         to const unsigned char **.
5400         (ucs4_to_cns11643): Change second argument to unsigned char *.
5401         * iconvdata/euc-tw.c (BODY): Change endp type to
5402         const unsigned char *.
5403         * iconvdata/iso-ir-165.h (ucs4_to_isoir165): Change second argument
5404         to unsigned char *.
5405         * iconvdata/ibm1008_420.c (LOOP_NEED_FLAGS): Don't define.
5406         * iconvdata/iso-2022-cn.c (BODY): Change buf to unsigned char array.
5407         * iconvdata/iso-2022-cn-ext.c (BODY): Change buf, tmpbuf, tmp
5408         types to unsigned char pointers/arrays instead of char.
5409         * iconvdata/jis0201.h (ucs4_to_jisx0201): Change second argument
5410         to unsigned char *.
5411         * iconvdata/jis0208.h (ucs4_to_jisx0208): Likewise.
5412         * iconvdata/jis0212.h: Include assert.h.
5413         (ucs4_to_jisx0212): Change second argument to unsigned char *.
5414         assert that if cp[0] is not '\0', cp[1] is not '\0' either instead
5415         of trying to handle that.
5416         * iconvdata/euc-kr.c (euckr_from_ucs4): Initialize also cp[1] to
5417         shut up a warning.
5418         * iconvdata/euc-jp-ms.c (from_ucs4_lat1, from_ucs4_greek,
5419         from_ucs4_cjk, from_ucs4_cjkcpt, from_ucs4_extra): Change type to
5420         two dimensional const unsigned char arrays.
5421         (BODY): Cast "" to (const unsigned char *) for assignment to cp.
5422         Initialize endp to inptr to shut up a warning.
5423
5424 2007-07-20  Jakub Jelinek  <jakub@redhat.com>
5425
5426         [BZ #4772]
5427         * time/strptime_l.c (__strptime_internal): Silently ignore
5428         strftime modifiers and field width in recursive calls.
5429
5430         * include/time.h (enum ptime_locale_status): Remove.
5431         (__strptime_internal): Remove decided and era_cnt arguments,
5432         add statep argument.
5433         * time/strptime_l.c (__strptime_internal): Remove decided
5434         and era_cnt arguments, add statep argument.  Don't recompute
5435         any fields in recursive calls, only update caller's tm
5436         and state, if recursive call fails, don't change tm nor
5437         any state.
5438         (get_alt_number): Adjust.
5439         (recursive): Adjust caller.
5440         (strptime): Likewise.
5441         * time/strptime.c (strptime): Likewise.
5442
5443 2007-07-19  Jakub Jelinek  <jakub@redhat.com>
5444
5445         * iconv/gconv_int.h (__GCONV_NULCONV): New internal only error code.
5446         * iconv/gconv_cache.c (__gconv_lookup_cache): Return __GCONV_NULCONV
5447         if from and to charsets are the same.
5448         * iconv/gconv_db.c (__gconv_find_transform): Likewise.
5449         * intl/dcigettext.c (_nl_find_msg): Return NULL even if __gconv_open
5450         returns __GCONV_NOCONV, but not for __GCONV_NULCONV.
5451
5452 2007-07-17  Jakub Jelinek  <jakub@redhat.com>
5453
5454         * wcsmbs/wchar.h: Only define wint_t if __need_wint_t.
5455         Don't define wint_t when __need_mbstate_t unless it
5456         is necessary.
5457         (__mbstate_t): Use __WINT_TYPE__ rather than wint_t
5458         in the typedef if possible.
5459         * wctype/wctype.h (wint_t): Define by including
5460         wchar.h with __need_wint_t instead of including stddef.h
5461         with __need_wint_t and as fallback definining it ourselves.
5462         * iconv/gconv.h (__need_wint_t): Define before including
5463         wchar.h.
5464         * sysdeps/gnu/_G_config.h: Don't include gconv.h if not _LIBC
5465         or _GLIBCPP_USE_WCHAR_T.
5466         (__need_wchar_t): Don't define
5467         if not _LIBC or _GLIBCPP_USE_WCHAR_T.
5468         (__need_wint_t): Don't define before including stddef.h,
5469         define before including wchar.h only if _LIBC or
5470         _GLIBCPP_USE_WCHAR_T.
5471         (_G_iconv_t): Don't define if not _LIBC or _GLIBCPP_USE_WCHAR_T.
5472         * sysdeps/mach/hurd/_G_config.h: Likewise.
5473         * sysdeps/generic/_G_config.h: Likewise.
5474         * libio/libio.h (__wunderflow, __wuflow, __woverflow): Only
5475         prototype if _LIBC or _GLIBCPP_USE_WCHAR_T.
5476         (_IO_getwc_unlocked, _IO_putwc_unlocked): Only define
5477         if _LIBC or _GLIBCPP_USE_WCHAR_T.
5478
5479 2007-07-28  Ulrich Drepper  <drepper@redhat.com>
5480
5481         * sysdeps/posix/posix_fallocate64.c: Undefine
5482         __posix_fallocate64_l64 before alias handling.
5483         * sysdeps/unix/sysv/linux/posix_fallocate.c: New file.
5484         * sysdeps/unix/sysv/linux/posix_fallocate64.c: New file.
5485         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c: New file.
5486         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate64.c: New file.
5487
5488         * io/tst-posix_fallocate.c: Include <fcntl.h>.
5489
5490 2007-07-23  Jakub Jelinek  <jakub@redhat.com>
5491
5492         * locale/programs/ld-collate.c (atwc): New variable.
5493         (add_to_tablewc): New toplevel function, moved from collate_output.
5494         (collate_output): Remove add_to_tablewc nested function.
5495
5496         * iconv/iconvconfig.c (hash_table, hash_size): New toplevel vars.
5497         (name_insert): New function.
5498         (write_output): Remove hash_table and hash_size vars and name_insert
5499         nested function.
5500
5501 2007-07-24  Roland McGrath  <roland@redhat.com>
5502
5503         * Makerules (install-others-programs-nosubdir): New target.
5504         (install-no-libc.a-nosubdir): Depend on it.
5505
5506         * iconv/Makefile (install-others-programs): Set this instead of
5507         install-others.
5508         * login/Makefile (install-others-programs): Likewise.
5509         * posix/Makefile (install-others-programs): Likewise.
5510
5511         * Makerules (install-no-libc.a-nosubdir): Clean up conditional
5512         dependencies.
5513
5514 2007-07-23  Ulrich Drepper  <drepper@redhat.com>
5515
5516         * io/Makefile (tests): Add tst-posix_fallocate.
5517         * io/tst-posix_fallocate.c: New file.
5518
5519         * sysdeps/unix/sysv/linux/kernel-features.h: Define
5520         __ASSUME_FALLOCATE.
5521
5522 2007-07-22  Roland McGrath  <roland@frob.com>
5523
5524         * hurd/getdport.c: Add missing copyright year update.
5525
5526         * sysdeps/mach/hurd/bits/fcntl.h [__USE_GNU] (O_CLOEXEC): New macro.
5527         * hurd/port2fd.c (_hurd_port2fd): Implement O_CLOEXEC.
5528
5529 2007-07-22  Ulrich Drepper  <drepper@redhat.com>
5530
5531         * login/utmp_file.c (setutent_file): Use O_CLOEXEC if possible.
5532
5533         * libio/fileops.c (_IO_new_file_fopen): Recognize 'e' flag and set
5534         O_CLOEXEC is needed.
5535         * nis/nss_compat/compat-grp.c: Use 'e' flag when opening file.
5536         Avoid additional fcntl to set O_CLOEXEC if not needed.
5537         * nis/nss_compat/compat-initgroups.c: Likewise.
5538         * nis/nss_compat/compat-pwd.c: Likewise.
5539         * nis/nss_compat/compat-spwd.c: Likewise.
5540
5541 2007-07-21  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5542
5543         [BZ #3665]
5544         * manual/errno.texi: Change ECANCELED value to 119.
5545
5546         [BZ #4610]
5547         * mach/lock-intern.h: Include <sys/cdefs.h>.
5548
5549         [BZ #4178]
5550         * sysdeps/mach/hurd/sigaction.c (__sigaction): Check ACT != NULL before
5551         reading A.
5552
5553         [BZ #4126]
5554         * sysdeps/mach/hurd/sigsuspend.c (sigsuspend_not_cancel): Define alias
5555         to __sigsuspend.
5556
5557         * sysdeps/mach/i386/sysdep.h: Include <dl-sysdep.h> and <tls.h>.
5558
5559 2006-06-13  Thomas Schwinge  <tschwinge@gnu.org>
5560
5561         * sysdeps/mach/hurd/tls.h: Change `ASSEMBLER' conditional to
5562         `__ASSEMBLER__'.
5563         * sysdeps/mach/hurd/i386/tls.h: Likewise.
5564
5565 2007-07-21  Ulrich Drepper  <drepper@redhat.com>
5566
5567         * nscd/nscd_helper.c (get_mapping): Use MSG_CMSG_CLOEXEC for
5568         descriptor received from nscd.
5569
5570         * sysdeps/unix/sysv/linux/bits/socket.h: Define MSG_CMSG_CLOEXEC.
5571
5572         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_CLOEXEC.
5573         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
5574         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
5575         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
5576         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
5577         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
5578
5579 2007-07-20  Jakub Jelinek  <jakub@redhat.com>
5580
5581         [BZ #4816]
5582         * manual/signal.texi (Non-atomic Example): Make memory var volatile.
5583
5584         [BZ #4813]
5585         * login/forkpty.c (forkpty): Close master and slave fds on
5586         fork failure.  Patch by
5587         Mikulas Patocka <mikulas@artax.karlin.mff.cuni.cz>.
5588
5589 2007-07-18  Jakub Jelinek  <jakub@redhat.com>
5590
5591         * include/features.h (__USE_ISOC95): New define.
5592         * wcsmbs/wchar.h (fwprintf, fwscanf, wprintf, wscanf, swprintf,
5593         swscanf, vfwprintf, vwprintf, vswprintf, fwide): Define even
5594         for -std=iso9899:199409.
5595         * CONFORMANCE: Remove comments about unsupported AMD1.
5596
5597 2007-07-17  Jakub Jelinek  <jakub@redhat.com>
5598
5599         * sysdeps/ia64/sched_cpucount.c: New file.
5600         * sysdeps/powerpc/sched_cpucount.c: New file.
5601
5602         * sysdeps/unix/sysv/linux/bits/sched.h (__sched_cpucount): Add
5603         __BEGIN_DECLS/__END_DECLS around the prototype.
5604         * bits/sched.h (__sched_cpucount): Likewise.  Make second argument
5605         pointer to const cpu_set_t.
5606
5607         * bits/types.h: Don't include stddef.h, don't define __need_size_t.
5608         * signal/signal.h <__USE_BSD || __USE_XOPEN_EXTENDED>: Define
5609         __need_size_t and include stddef.h.
5610         * sysvipc/sys/msg.h: Likewise.
5611         * posix/sched.h: Likewise.
5612         * hurd/hurd/signal.h (__need_size_t): Define.
5613
5614         * CONFORMANCE: ctype.h and wctype.h no longer define size_t,
5615         neither does signal.h in pedantic ISO C namespaces.  stdio.h
5616         no longer defines wint_t or wchar_t.
5617
5618         * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): New function.
5619         * debug/vfwprintf_chk.c (__vfwprintf_chk): Use
5620         _IO_acquire_lock_clear_flags2 instead of _IO_acquire_lock.
5621         * debug/vprintf_chk.c (__vprintf_chk): Likewise.
5622         * debug/vwprintf_chk.c (__vwprintf_chk): Likewise.
5623         * debug/vfprintf_chk.c (__vfprintf_chk): Likewise.
5624         * debug/fwprintf_chk.c (__fwprintf_chk): Likewise.
5625         * debug/printf_chk.c (__printf_chk): Likewise.
5626         * debug/fprintf_chk.c (__fprintf_chk): Likewise.
5627         * debug/wprintf_chk.c (__wprintf_chk): Likewise.
5628
5629         * sysdeps/pthread/bits/stdio-lock.h (_IO_acquire_lock_clear_flags2):
5630         Define.
5631
5632         * bits/confname.h (_CS_POSIX_V6_WIDTH_RESTRICTED_ENVS): Define.
5633         * posix/getconf.c (vars): Add POSIX_V6_WIDTH_RESTRICTED_ENVS.
5634
5635 2007-07-16  Jakub Jelinek  <jakub@redhat.com>
5636
5637         [BZ #4792]
5638         * stdlib/stdlib.h (realloc): Remove __attribute_malloc__.
5639         * malloc/malloc.h (realloc): Likewise.
5640
5641         * libio/iopopen.c (_IO_new_proc_open): Don't close child_std_end
5642         if one of proc_file_chain streams has that fileno.
5643         * stdio-common/Makefile (tests): Add tst-popen2.
5644         * stdio-common/tst-popen2.c: New test.
5645
5646 2007-07-14  Jakub Jelinek  <jakub@redhat.com>
5647
5648         * elf/ldconfig.c: Allow GPLv2 or any later version.
5649         * elf/readlib.c: Likewise.
5650         * elf/chroot_canon.c: Likewise.
5651         * elf/cache.c: Likewise.
5652         * nscd/mem.c: Likewise.
5653         * nscd/getpwuid_r.c: Likewise.
5654         * nscd/grpcache.c: Likewise.
5655         * nscd/aicache.c: Likewise.
5656         * nscd/getsrvbynm_r.c: Likewise.
5657         * nscd/nscd.c: Likewise.
5658         * nscd/servicescache.c: Likewise.
5659         * nscd/getsrvbypt_r.c: Likewise.
5660         * nscd/initgrcache.c: Likewise.
5661         * nscd/gethstbyad_r.c: Likewise.
5662         * nscd/gethstbynm2_r.c: Likewise.
5663         * nscd/getgrnam_r.c: Likewise.
5664         * nscd/nscd_setup_thread.c: Likewise.
5665         * nscd/getpwnam_r.c: Likewise.
5666         * nscd/gai.c: Likewise.
5667         * nscd/connections.c: Likewise.
5668         * nscd/dbg_log.c: Likewise.
5669         * nscd/cache.c: Likewise.
5670         * nscd/hstcache.c: Likewise.
5671         * nscd/nscd_conf.c: Likewise.
5672         * nscd/getgrgid_r.c: Likewise.
5673         * nscd/pwdcache.c: Likewise.
5674         * catgets/gencat.c: Likewise.
5675         * locale/programs/linereader.h: Likewise.
5676         * locale/programs/locarchive.c: Likewise.
5677         * locale/programs/ld-paper.c: Likewise.
5678         * locale/programs/locfile-kw.h: Likewise.
5679         * locale/programs/ld-address.c: Likewise.
5680         * locale/programs/xmalloc.c: Likewise.
5681         * locale/programs/ld-time.c: Likewise.
5682         * locale/programs/localedef.c: Likewise.
5683         * locale/programs/simple-hash.c: Likewise.
5684         * locale/programs/xstrdup.c: Likewise.
5685         * locale/programs/ld-numeric.c: Likewise.
5686         * locale/programs/locfile-kw.gperf: Likewise.
5687         * locale/programs/ld-collate.c: Likewise.
5688         * locale/programs/charmap-kw.gperf: Likewise.
5689         * locale/programs/charmap.h: Likewise.
5690         * locale/programs/charmap-kw.h: Likewise.
5691         * locale/programs/config.h: Likewise.
5692         * locale/programs/locfile.c: Likewise.
5693         * locale/programs/ld-ctype.c: Likewise.
5694         * locale/programs/charmap.c: Likewise.
5695         * locale/programs/ld-messages.c: Likewise.
5696         * locale/programs/repertoire.h: Likewise.
5697         * locale/programs/locale.c: Likewise.
5698         * locale/programs/ld-name.c: Likewise.
5699         * locale/programs/linereader.c: Likewise.
5700         * locale/programs/locfile.h: Likewise.
5701         * locale/programs/3level.h: Likewise.
5702         * locale/programs/ld-monetary.c: Likewise.
5703         * locale/programs/ld-measurement.c: Likewise.
5704         * locale/programs/charmap-dir.c: Likewise.
5705         * locale/programs/ld-identification.c: Likewise.
5706         * locale/programs/localedef.h: Likewise.
5707         * locale/programs/charmap-dir.h: Likewise.
5708         * locale/programs/repertoire.c: Likewise.
5709         * locale/programs/simple-hash.h: Likewise.
5710         * locale/programs/ld-telephone.c: Likewise.
5711         * locale/programs/locale-spec.c: Likewise.
5712         * locale/programs/locfile-token.h: Likewise.
5713         * posix/getconf.c: Likewise.
5714         * iconv/dummy-repertoire.c: Likewise.
5715         * iconv/iconv_charmap.c: Likewise.
5716         * iconv/iconvconfig.c: Likewise.
5717         * iconv/iconv_prog.c: Likewise.
5718         * malloc/memusagestat.c: Likewise.
5719         * sysdeps/unix/sysv/linux/nscd_setup_thread.c: Likewise.
5720
5721 2007-07-06  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
5722
5723         * sysdeps/sh/bsd-setjmp.S (setjmp): Use correct argument registers.
5724         * sysdeps/sh/bsd-_setjmp.S (_setjmp): Likewise.
5725         * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Do correct sanity
5726         check for the first argument.
5727
5728 2007-07-12  Jakub Jelinek  <jakub@redhat.com>
5729
5730         [BZ #4775]
5731         * math/tgmath.h (__tgmath_real_type_sub): Formatting.
5732         (__tgmath_real_type): Fix if expr is const int or other const
5733         qualified integral type.
5734         (__TGMATH_UNARY_REAL_ONLY): Rewritten to avoid using statement
5735         expressions and handle const qualified arguments.
5736         (__TGMATH_BINARY_FIRST_REAL_ONLY, __TGMATH_UNARY_REAL_IMAG,
5737         __TGMATH_UNARY_REAL_IMAG_RET_REAL): Likewise.
5738         (__TGMATH_UNARY_REAL_RET_ONLY): Rewritten to avoid using
5739         statement expressions.
5740         (__TGMATH_BINARY_REAL_ONLY, __TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY,
5741         __TGMATH_TERNARY_REAL_ONLY, __TGMATH_BINARY_REAL_IMAG): Likewise.
5742         (__TGMATH_UNARY_IMAG): Define.
5743         (conj, cproj): Use __TGMATH_UNARY_IMAG macro.
5744         * math/Makefile (tests): Add test-tgmath2.
5745         (CFLAGS-test-tgmath2.c): Add.
5746         * math/test-tgmath.c (fy, dy, ly, fz, dz, lz, count_cdouble,
5747         count_cfloat, count_cldouble): New variables.
5748         (NCCALLS): Define.
5749         (main): Check number of complex calls as well.
5750         (F(compile_test)): Add complex tests and tests with const qualified
5751         arguments.
5752         (y, z, ccount): Define.
5753         (F(cacos), F(casin), F(catan), F(ccos), F(csin), F(ctan), F(cacosh),
5754         F(casinh), F(catanh), F(ccosh), F(csinh), F(ctanh), F(cexp), F(clog),
5755         F(csqrt), F(cpow), F(cabs), F(carg), F(creal), F(cimag), F(conj),
5756         F(cproj)): New functions.
5757         * math/test-tgmath2.c: New test.
5758
5759 2007-07-11  Jakub Jelinek  <jakub@redhat.com>
5760
5761         [BZ #4776]
5762         * elf/dl-load.c (_dl_rtld_di_serinfo): Output / in LD_LIBRARY_PATH,
5763         RPATH etc. as "/" rather than "", don't segfault on empty paths,
5764         instead output ".".
5765         * dlfcn/Makefile (distribute): Add glreflib3.c.
5766         (module-names): Add glreflib3.
5767         ($(objpfx)tst-dlinfo.out): Depend on glreflib3.so rather than
5768         glreflib1.so.
5769         (LDFLAGS_glreflib3.so): New.
5770         * dlfcn/tst-dlinfo.c (do_test): Load glreflib3.so instead of
5771         glreflib1.so.
5772         * dlfcn/glreflib3.c: New file.
5773
5774         * intl/finddomain.c (_nl_find_domain): If _nl_explode_name
5775         returned -1, return NULL.
5776         * intl/explodename.c (_nl_explode_name): Return -1 if
5777         _nl_normalize_codeset failed.
5778
5779 2007-07-07  Steven Munroe  <sjmunroe@us.ibm.com>
5780
5781         * sysdeps/powerpc/powerpc32/power6/memset.S: Update comments.
5782         Specify .machine power6 to get ISA-V2.0 branch hints.  Unroll loops
5783         and avoid branch misspredicts for > 31 bytes memset case.
5784         * sysdeps/powerpc/powerpc64/power6/memset.S: Likewise.
5785         Remove toc ref to __cache_line_size.
5786
5787         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Specify .machine power4
5788         to get ISA-V2.0 branch hints.
5789         * sysdeps/powerpc/powerpc32/power4/memcpy.S: Likewise
5790         * sysdeps/powerpc/powerpc32/power4/memset.S: Likewise
5791         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
5792         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
5793         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
5794         * sysdeps/powerpc/powerpc64/power4/memset.S: Likewise.
5795         Remove toc ref to __cache_line_size.
5796
5797         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S:
5798         Include math_ldbl_opt.h.
5799
5800 2007-07-10  Ulrich Drepper  <drepper@redhat.com>
5801
5802         [BZ #4773]
5803         * time/strptime_l.c (__strptime_internal): Implement greedy
5804         matching of weekday and month names.
5805
5806 2007-07-09  Roland McGrath  <roland@redhat.com>
5807
5808         * elf/elf.h (NT_GNU_ABI_TAG): New macro.
5809         (ELF_NOTE_ABI): Use it.
5810         (NT_GNU_HWCAP, NT_GNU_BUILD_ID): New macros.
5811
5812 2007-07-09  Ulrich Drepper  <drepper@redhat.com>
5813
5814         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Add new entries.
5815         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
5816
5817 2007-07-07  Ulrich Drepper  <drepper@redhat.com>
5818
5819         [BZ #4745]
5820         * stdio-common/vfscanf.c (_IO_vfscanf): Add additional test for EOF
5821         in loop to look for conversion specifier to avoid testing of
5822         wrong errno value.
5823         * stdio-common/Makefile (tests): Add bug18, bug18a, bug19, bug19a.
5824         * stdio-common/bug18.c: New file.
5825         * stdio-common/bug18a.c: New file.
5826         * stdio-common/bug19.c: New file.
5827         * stdio-common/bug19a.c: New file.
5828
5829 2007-07-05  Mike Frysinger  <vapier@gentoo.org>
5830
5831         * Makeconfig ($(common-objpfx)gnu/lib-names.stmp): Use LC_ALL=C when
5832         running awk script.
5833
5834 2007-07-01  Jakub Jelinek  <jakub@redhat.com>
5835
5836         * elf/dl-sysdep.c (_dl_important_hwcaps): Add integer overflow check.
5837         * elf/dl-minimal.c (__libc_memalign): Likewise.  Handle malloc (0).
5838         Return NULL if mmap failed instead of asserting it does not.
5839         (calloc): Check for integer overflow.
5840
5841         * elf/dl-minimal.c (__strtoul_internal): Fix parsing of numbers bigger
5842         than LONG_MAX / 10.
5843
5844 2007-07-03  Jakub Jelinek  <jakub@redhat.com>
5845
5846         [BZ #4702]
5847         * nis/nss-default.c: Include errno.h.
5848         (init): Preserve errno.
5849
5850 2007-07-02  Ulrich Drepper  <drepper@redhat.com>
5851
5852         * sysdeps/unix/sysv/linux/bits/socket.h (PF_UNIX): Update comment.
5853
5854 2007-06-30  Ulrich Drepper  <drepper@redhat.com>
5855
5856         * sysdeps/unix/sysv/linux/bits/socket.h: Add PF_RXRPC and AF_RXRPC.
5857
5858 2007-06-29  Martin Schwidefsky  <schwidefsky@de.ibm.com>
5859
5860         * sysdeps/unix/sysv/linux/bits/socket.h: Add PF_IUCV and AF_IUCV.
5861
5862 2007-06-29  Martin Schwidefsky  <schwidefsky@de.ibm.com>
5863
5864         * sysdeps/s390/dl-procinfo.c: New file.
5865         * sysdeps/s390/dl-procinfo.h: New file.
5866         * sysdeps/unix/sysv/linux/s390/dl-procinfo.h: New file.
5867
5868 2007-06-29  Jakub Jelinek  <jakub@redhat.com>
5869
5870         * elf/dl-load.c (open_verify): Find .note.ABI-tag notes even
5871         in PT_NOTE segments with multiple notes.
5872         * elf/readelflib.c (process_elf_file): Likewise.
5873
5874 2007-06-22  Ulrich Drepper  <drepper@redhat.com>
5875
5876         * nis/nis_domain_of.c (__nis_domain_of): Make the code a bit more
5877         ISO C compliant.
5878
5879 2007-06-19  Ulrich Drepper  <drepper@redhat.com>
5880
5881         * elf/dl-close.c (free_mem): Free _dl_scope_free_list.
5882
5883 2007-06-13  Jakub Jelinek  <jakub@redhat.com>
5884
5885         * include/link.h: Don't include rtld-lowlevel.h.
5886         (struct link_map): Remove l_scope_lock.
5887         * sysdeps/generic/ldsodefs.h: Don't include rtld-lowlevel.h.
5888         (_dl_scope_free_list): New field (variable) in _rtld_global.
5889         (DL_LOOKUP_SCOPE_LOCK): Remove.
5890         (_dl_scope_free): New prototype.
5891         * elf/dl-runtime.c (_dl_fixup): Don't use __rtld_mrlock_*lock.
5892         Don't pass DL_LOOKUP_SCOPE_LOCK to _dl_lookup_symbol_x.
5893         (_dl_profile_fixup): Likewise.
5894         * elf/dl-sym.c (do_sym): Likewise.  Use wrapped _dl_lookup_symbol_x
5895         whenever !RTLD_SINGLE_THREAD_P, use THREAD_GSCOPE_SET_FLAG and
5896         THREAD_GSCOPE_RESET_FLAG around it.
5897         * elf/dl-close.c (_dl_close_worker): Don't use
5898         __rtld_mrlock_{change,done}.  Call _dl_scope_free on the old
5899         scope.  Make sure THREAD_GSCOPE_WAIT () happens if any old
5900         scopes were queued or if l_scope_mem has been abandoned.
5901         * elf/dl-open.c (_dl_scope_free): New function.
5902         (dl_open_worker): Use it.  Don't use __rtld_mrlock_{change,done}.
5903         * elf/dl-support.c (_dl_scope_free_list): New variable.
5904         * elf/dl-lookup.c (add_dependency): Remove flags argument.
5905         Remove DL_LOOKUP_SCOPE_LOCK handling.
5906         (_dl_lookup_symbol_x): Adjust caller.  Remove DL_LOOKUP_SCOPE_LOCK
5907         handling.
5908         * elf/dl-object.c (_dl_new_object): Don't use
5909         __rtld_mrlock_initialize.
5910
5911 2007-06-19  Ulrich Drepper  <drepper@redhat.com>
5912
5913         * sysdeps/generic/ldsodefs.h (rtld_global): Reorder some elements
5914         to fill in holes
5915         (rtld_global_ro): Likewise.
5916
5917 2007-06-18  Jakub Jelinek  <jakub@redhat.com>
5918
5919         * elf/dl-addr.c (_dl_addr): Skip PT_LOAD checking if l_contiguous.
5920         Move PT_LOAD checking to...
5921         (_dl_addr_inside_object): ... here, new function.
5922         * elf/dl-sym.c (do_sym): If not l_contiguous,
5923         call _dl_addr_inside_object.
5924         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise.
5925         * dlfcn/dlinfo.c (dlinfo_doit): Likewise.
5926         * elf/dl-open.c (dl_open_worker): Likewise.
5927         (_dl_addr_inside_object): New function if IS_IN_rtld.
5928         * elf/dl-load.c (_dl_map_object_from_fd): Set l_contiguous if no
5929         holes are present or are PROT_NONE protected.
5930         * include/link.h (struct link_map): Add l_contiguous field.
5931         * sysdeps/generic/ldsodefs.h (_dl_addr_inside_object): New prototype.
5932
5933 2007-06-18  Jakub Jelinek  <jakub@redhat.com>
5934             Tomas Janousek  <tjanouse@redhat.com>
5935             Ulrich Drepper  <drepper@redhat.com>
5936
5937         [BZ #4647]
5938         * resolv/res_send.c (send_dg): Remove socket_pf.  Use ipv6_unavail
5939         member in __res_state, only convaddr4to6 if nssocks[ns] is a PF_INET6
5940         socket.
5941         * resolv/resolv.h (__res_state): Add ipv6_unavail member.  Make
5942         unused member a bitmap.
5943         * resolv/res_init.c (__res_vinit): Reset ipv6_unavail if IPv6
5944         servers are configured.
5945
5946 2007-06-18  Jakub Jelinek  <jakub@redhat.com>
5947
5948         * elf/rtld.c (dl_main): Don't call init_tls more than once.
5949
5950 2007-06-17  Andreas Schwab  <schwab@suse.de>
5951
5952         * sysdeps/generic/initfini.c: Tell gcc about the nonstandard sections.
5953
5954 2007-06-16  Andreas Jaeger  <aj@suse.de>
5955
5956         [BZ #4125]
5957         * sysdeps/unix/sysv/linux/sys/ptrace.h
5958         (PTRACE_O_TRACESYSGOOD, PTRACE_O_TRACEFORK,
5959         PTRACE_O_TRACEVFORK, PTRACE_O_TRACECLONE, PTRACE_O_TRACEEXEC,
5960         PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT, PTRACE_O_MASK,
5961         PTRACE_EVENT_FORK, PTRACE_EVENT_VFORK, PTRACE_EVENT_CLONE,
5962         PTRACE_EVENT_EXEC, PTRACE_EVENT_VFORK_DONE, PTRACE_EVENT_EXIT):
5963         Define.
5964         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
5965         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
5966         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
5967         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
5968
5969 2007-06-16  Ulrich Drepper  <drepper@redhat.com>
5970
5971         [BZ #4599]
5972         * sysdeps/unix/sysv/linux/check_pf.c (make_request): When
5973         determining whether there are IPv4/IPv6 addresses, ignore loopback
5974         addresses.
5975
5976 2007-06-14 Uros Bizjak <ubizjak@gmail.com>
5977
5978         * soft-fp/soft-fp.h (CMPtype): Define to "int" if undefined.
5979         * soft-fp/eqdf2.c (__eqdf2): Use CMPtype instead of int
5980         as the return type.  Change type of "r" variable to CMPtype.
5981         * soft-fp/eqsf2.c (__eqsf2): Likewise.
5982         * soft-fp/eqtf2.c (__eqtf2): Likewise.
5983         * soft-fp/gedf2.c (__gedf2): Likewise.
5984         * soft-fp/gesf2.c (__gesf2): Likewise.
5985         * soft-fp/getf2.c (__getf2): Likewise.
5986         * soft-fp/ledf2.c (__ledf2): Likewise.
5987         * soft-fp/lesf2.c (__lesf2): Likewise.
5988         * soft-fp/letf2.c (__letf2): Likewise.
5989         * soft-fp/unorddf2 (__unorddf2): Likewise.
5990         * soft-fp/unordsf2 (__unordsf2): Likewise.
5991         * soft-fp/unordtf2 (__unordtf2): Likewise.
5992
5993 2007-06-09  Ulrich Drepper  <drepper@redhat.com>
5994
5995         * elf/do-lookup.h (do_lookup_x): Read r_nlist before r_list and
5996         make sure gcc doesn't mess around with this.
5997
5998 2007-06-08  Ulrich Drepper  <drepper@redhat.com>
5999
6000         * elf/dl-lookup.c (_dl_lookup_symbol_x): Remove use of r_nlist.
6001
6002 2007-06-08  Jakub Jelinek  <jakub@redhat.com>
6003
6004         * elf/dl-close.c (_dl_close_worker): Remove all to be removed
6005         libraries from the global scope at once and call THREAD_GSCOPE_WAIT
6006         at most once per _dl_close_worker.
6007
6008 2007-06-08  Ulrich Drepper  <drepper@redhat.com>
6009
6010         * sysdeps/unix/sysv/linux/bits/sched.h: Make second parameter of
6011         __sched_cpucount as const.
6012         * posix/sched_cpucount.c: Adjust.
6013
6014         * posix/sched_cpucount.c (__sched_cpucount): Allow using special
6015         instruction for counting bits.
6016         * sysdeps/x86_64/sched_cpucount.c: New file.
6017
6018 2007-06-07  Ulrich Drepper  <drepper@redhat.com>
6019
6020         * configure.in: Avoid variable named BASH.
6021         * config.make.in: Likewise.
6022         Patch in part by Mike Frysinger.
6023
6024 2007-06-06  Jakub Jelinek  <jakub@redhat.com>
6025
6026         [BZ #4586]
6027         * sysdeps/i386/ldbl2mpn.c (__mpn_extract_long_double): Treat
6028         pseudo-zeros as zero.
6029         * sysdeps/x86_64/ldbl2mpn.c: New file.
6030         * sysdeps/ia64/ldbl2mpn.c: New file.
6031
6032 2007-06-04  Jakub Jelinek  <jakub@redhat.com>
6033
6034         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (nextafterl): Remove
6035         unused ily variable.  Fix nextafterl on +-__LDBL_MAX__ and +-Inf.
6036         Remove unreachable code at the end.
6037
6038 2007-06-01  Steven Munroe  <sjmunroe@us.ibm.com>
6039
6040         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Correct description of
6041         ldbl-128ibm in comment.
6042         (fpclassifyl): Correct classification of denormals.
6043         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (nextafterl): Correct
6044         return value for MIN denormal. Rewrite using long double math too
6045         correctly handle denormals and canonicalize the results.
6046
6047 2007-06-05  Jakub Jelinek  <jakub@redhat.com>
6048
6049         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c
6050         (__mpn_construct_long_double): Fix conversion where result ought
6051         to be smaller than __LDBL_MIN__, or the low double should be
6052         denormal.  Fix decision where to negate low double - honor round
6053         to even rules.
6054         * stdio-common/tst-sprintf2.c: Include string.h.
6055         (COMPARE_LDBL): Define.
6056         (TEST): Also test whether a string hexadecimal float representation
6057         can be parsed back to the number.
6058         (main): Add a couple of further tests.
6059
6060 2007-06-04  Jakub Jelinek  <jakub@redhat.com>
6061
6062         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c
6063         (PRINT_FPHEX_LONG_DOUBLE): Fix printing numbers where lower double
6064         is non-zero, but smaller than 2 * __DBL_MIN__.
6065         * stdio-common/tst-sprintf2.c: New test.
6066         * stdio-common/Makefile (tests): Add tst-sprintf2.
6067
6068         * math/test-misc.c (main): Don't run last batch of tests with
6069         IBM long double format.
6070
6071 2007-05-31  Steven Munroe  <sjmunroe@us.ibm.com>
6072
6073         * sysdeps/powerpc/powerpc32/970/fpu/Implies: New file.
6074         * sysdeps/powerpc/powerpc32/power5/fpu/Implies: New file.
6075         * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: New file.
6076         * sysdeps/powerpc/powerpc32/power6/fpu/Implies: New file.
6077         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: New file.
6078         * sysdeps/powerpc/powerpc64/970/fpu/Implies: New file.
6079         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: New file.
6080         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: New file.
6081         * sysdeps/powerpc/powerpc64/power6/fpu/Implies: New file.
6082         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: New file.
6083         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: New file.
6084         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies:
6085         New file.
6086         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies:
6087         New file.
6088         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies:
6089         New file.
6090         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies:
6091         New file.
6092         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies:
6093         New file.
6094         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: New file.
6095         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies:
6096         New file.
6097         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies:
6098         New file.
6099         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies:
6100         New file.
6101         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies:
6102         New file.
6103         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies:
6104         New file.
6105
6106 2007-05-31  Steven Munroe  <sjmunroe@us.ibm.com>
6107
6108         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S: Move.
6109         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: To here.
6110         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrintf.S: Move.
6111         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: To here.
6112         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llround.S: Move.
6113         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: To here.
6114         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llroundf.S: Move.
6115         * sysdeps/powerpc/powerpc32/power4/fpu/s_llroundf.S: To here.
6116
6117 2007-05-22  Steven Munroe  <sjmunroe@us.ibm.com>
6118
6119         * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S
6120         (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
6121         * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S
6122         (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
6123         * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S
6124         (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
6125         * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S
6126         (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
6127
6128 2007-05-21  Steven Munroe  <sjmunroe@us.ibm.com>
6129
6130         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: New file.
6131         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.c: New file.
6132         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: New file.
6133         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: New file.
6134
6135 2007-03-15  Steven Munroe  <sjmunroe@us.ibm.com>
6136
6137         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S
6138         [LONG_DOUBLE_COMPAT]: Add compat_symbol for llrintl@@GLIBC_2_1.
6139
6140 2006-02-13  Steven Munroe  <sjmunroe@us.ibm.com>
6141
6142         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: New File
6143         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: New File
6144         * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: New File
6145         * sysdeps/powerpc/powerpc32/power6/fpu/s_llroundf.S: New File
6146
6147 2006-10-20  Steven Munroe  <sjmunroe@us.ibm.com>
6148
6149         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: New file.
6150         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: New file.
6151
6152 2006-10-03  Steven Munroe  <sjmunroe@us.ibm.com>
6153
6154         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llround.S: New file.
6155         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llroundf.S: New file.
6156
6157         * sysdeps/powerpc/powerpc32/powerpc64/fpu/Makefile: Moved.
6158         * sysdeps/powerpc/powerpc32/powerpc64/fpu/mpa.c: Likewise.
6159         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile: To here.
6160         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
6161
6162 2006-09-29  Steven Munroe  <sjmunroe@us.ibm.com>
6163
6164         * sysdeps/powerpc/powerpc32/power6x/fpu/s_lrint.S: New file.
6165         * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: New file.
6166         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: New file.
6167         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: New file.
6168
6169 2006-09-28  Steven Munroe  <sjmunroe@us.ibm.com>
6170
6171         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: New file.
6172         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llroundf.S: New file.
6173         * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: New file.
6174         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: New file.
6175         * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: New file.
6176         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: New file.
6177
6178 2006-08-31  Steven Munroe  <sjmunroe@us.ibm.com>
6179
6180         * sysdeps/powerpc/powerpc32/powerpc64/fpu/Makefile: New file.
6181         * sysdeps/powerpc/powerpc32/powerpc64/fpu/mpa.c: New file.
6182         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile: New file.
6183         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: New file.
6184
6185 2006-06-15  Steven Munroe  <sjmunroe@us.ibm.com>
6186
6187         * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceil.S: New file.
6188         * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceilf.S: New file.
6189         * sysdeps/powerpc/powerpc32/power5+/fpu/s_floor.S: New file.
6190         * sysdeps/powerpc/powerpc32/power5+/fpu/s_floorf.S: New file.
6191         * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S: New file.
6192         * sysdeps/powerpc/powerpc32/power5+/fpu/s_roundf.S: New file.
6193         * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S: New file.
6194         * sysdeps/powerpc/powerpc32/power5+/fpu/s_truncf.S: New file.
6195         * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceil.S: New file.
6196         * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceilf.S: New file.
6197         * sysdeps/powerpc/powerpc64/power5+/fpu/s_floor.S: New file.
6198         * sysdeps/powerpc/powerpc64/power5+/fpu/s_floorf.S: New file.
6199         * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S: New file.
6200         * sysdeps/powerpc/powerpc64/power5+/fpu/s_roundf.S: New file.
6201         * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S: New file.
6202         * sysdeps/powerpc/powerpc64/power5+/fpu/s_truncf.S: New file.
6203
6204 2006-03-20  Steven Munroe  <sjmunroe@us.ibm.com>
6205
6206         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S: New file.
6207         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrintf.S: New file.
6208
6209 2007-06-01  Steven Munroe  <sjmunroe@us.ibm.com>
6210
6211         * sysdeps/powerpc/powerpc32/power6/memset.S: New file.
6212         * sysdeps/powerpc/powerpc64/power6/memset.S: New file.
6213
6214 2007-05-31  Steven Munroe  <sjmunroe@us.ibm.com>
6215
6216         * sysdeps/powerpc/powerpc32/970/Implies: New file.
6217         * sysdeps/powerpc/powerpc32/power5/Implies: New file.
6218         * sysdeps/powerpc/powerpc32/power5+/Implies: New file.
6219         * sysdeps/powerpc/powerpc32/power6/Implies: New file.
6220         * sysdeps/powerpc/powerpc32/power6x/Implies: New file.
6221         * sysdeps/powerpc/powerpc64/970/Implies: New file.
6222         * sysdeps/powerpc/powerpc64/power5/Implies: New file.
6223         * sysdeps/powerpc/powerpc64/power5+/Implies: New file.
6224         * sysdeps/powerpc/powerpc64/power6/Implies: New file.
6225         * sysdeps/powerpc/powerpc64/power6x/Implies: New file.
6226
6227 2007-05-21  Steven Munroe  <sjmunroe@us.ibm.com>
6228
6229         * sysdeps/powerpc/powerpc32/power4/memset.S: New file
6230
6231 2007-03-13  Steven Munroe  <sjmunroe@us.ibm.com>
6232
6233         * sysdeps/powerpc/powerpc64/memcpy.S: Improve aligned loop to minimize
6234         branch miss-predicts. Ensure that cache line crossing does not impact
6235         dispatch grouping.
6236
6237 2006-12-13  Steven Munroe  <sjmunroe@us.ibm.com>
6238
6239         * sysdeps/powerpc/powerpc64/power4/memcopy.h: Replace with include
6240         "../../powerpc32/power4/memcopy.h".
6241         * sysdeps/powerpc/powerpc64/power4/wordcopy.c: Replace with include
6242         "../../powerpc32/power4/wordcopy.c".
6243
6244 2006-10-03  Steven Munroe  <sjmunroe@us.ibm.com>
6245
6246         * sysdeps/powerpc/powerpc32/powerpc64/Makefile: Moved.
6247         * sysdeps/powerpc/powerpc32/powerpc64/memcopy.h: Likewise.
6248         * sysdeps/powerpc/powerpc32/powerpc64/wordcopy.c: Likewise.
6249         * sysdeps/powerpc/powerpc32/power4/Makefile: To here.
6250         * sysdeps/powerpc/powerpc32/power4/memcopy.h: Likewise.
6251         * sysdeps/powerpc/powerpc32/power4/wordcopy.c: Likewise.
6252
6253 2006-09-10  Steven Munroe  <sjmunroe@us.ibm.com>
6254
6255         * sysdeps/powerpc/powerpc32/power6/memcpy.S: New file.
6256
6257 2006-08-31  Steven Munroe  <sjmunroe@us.ibm.com>
6258
6259         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: New file.
6260         * sysdeps/powerpc/powerpc32/powerpc64/Makefile: New file.
6261         * sysdeps/powerpc/powerpc32/powerpc64/memcopy.h: New file.
6262         * sysdeps/powerpc/powerpc32/powerpc64/wordcopy.c: New file.
6263         * sysdeps/powerpc/powerpc64/power4/Makefile: New file.
6264         * sysdeps/powerpc/powerpc64/power4/memcopy.h: New file.
6265         * sysdeps/powerpc/powerpc64/power4/wordcopy.c: New file.
6266         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: New file.
6267
6268 2006-07-06  Steven Munroe  <sjmunroe@us.ibm.com>
6269
6270         * sysdeps/powerpc/powerpc64/power6/memcpy.S: New file.
6271
6272 2006-03-20  Steven Munroe  <sjmunroe@us.ibm.com>
6273
6274         * sysdeps/powerpc/powerpc32/power4/memcmp.S: New file.
6275         * sysdeps/powerpc/powerpc32/power4/memcpy.S: New file.
6276         * sysdeps/powerpc/powerpc32/power4/memset.S: New file.
6277         * sysdeps/powerpc/powerpc32/power4/strncmp.S: New file.
6278         * sysdeps/powerpc/powerpc64/power4/memcmp.S: New file.
6279         * sysdeps/powerpc/powerpc64/power4/memcpy.S: New file.
6280         * sysdeps/powerpc/powerpc64/power4/strncmp.S: New file.
6281
6282 2007-05-29  Roland McGrath  <roland@redhat.com>
6283
6284         * po/Makefile (po-sed-cmd): New variable.
6285         (libc.pot.files): Move sed command text in there, avoid \ inside ''.
6286
6287 2007-05-29  Ulrich Drepper  <drepper@redhat.com>
6288
6289         * crypt/md5-crypt.c: Fix comment.
6290
6291         * nscd/nscd_helper.c (get_mapping): Handle short replies instead
6292         of crashing.  When this is the case or if the reply is malformed,
6293         don't try to close the new file descriptor since it does not
6294         exist.
6295         Patch in part by Guillaume Chazarain <guichaz@yahoo.fr>.
6296
6297 2007-05-28  Jakub Jelinek  <jakub@redhat.com>
6298
6299         * sysdeps/unix/sysv/linux/futimes.c (miss_utimensat): Don't define
6300         if __NR_utimensat is not defined.
6301
6302 2007-05-26  Ulrich Drepper  <drepper@redhat.com>
6303
6304         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Include <sysdep.h>.
6305
6306 2007-05-25  Jakub Jelinek  <jakub@redhat.com>
6307
6308         * io/bits/fcntl2.h (__open_2): Add nonnull attribute.
6309         (open): Fix comment typos.  Don't call __open_2 if flags
6310         is a compile time constant without O_CREAT.
6311         (__open64_2): Add nonnull attribute.
6312         (open64): Fix comment typos.  Don't call __open64_2 if flags
6313         is a compile time constant without O_CREAT.
6314         (__openat_2): Add nonnull attribute, fix nonnull attribute
6315         on redirect.
6316         (openat): Fix comment typos.  Don't call __openat_2 if flags
6317         is a compile time constant without O_CREAT.
6318         (__openat64_2): Add nonnull attribute, fix nonnull attribute
6319         on redirect.
6320         (openat64): Fix comment typos.  Don't call __openat64_2 if flags
6321         is a compile time constant without O_CREAT.
6322
6323 2007-05-24  Ulrich Drepper  <drepper@redhat.com>
6324
6325         * Makerules (sysd-rules): Define PTW for ptw-* files.
6326         * Versions: Define GLIBC_2.7 for libc.
6327         * include/stdio.h: Declare __fortify_fail.
6328         * debug/fortify_fail.c: New file.
6329         * debug/Makefile (routines): Add fortify_fail.
6330         * debug/chk_fail.c: Use __fortify_fail.
6331         * debug/stack_chk_fail.c: Likewise.
6332         * io/Versions: Export __open_2, __open64_2, __openat_2, and
6333         __openat64_2 for GLIBC_2.7.
6334         * io/fcntl.h: When compiling with fortification, include bits/fcntl2.h.
6335         * io/open.c: Define *_2 variant of function which checks for O_CREAT
6336         and fails if necessary.
6337         * io/open64.c: Likewise.
6338         * io/openat.c: Likewise.
6339         * io/openat64.c: Likewise.
6340         * sysdeps/unix/sysv/linux/open64.c: Likewise.
6341         * sysdeps/unix/sysv/linux/openat.c: Likewise.
6342         * sysdeps/unix/sysv/linux/openat64.c: Likewise.
6343         * io/bits/fcntl2.h: New file.
6344         * include/fcntl.h: Declare __open_2, __open64_2, __openat_2, and
6345         __openat64_2.
6346         * include/bits/fcntl2.h: New file.
6347         * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
6348         Add open_2.
6349         * sysdeps/unix/sysv/linux/open_2.c: New file.
6350
6351 2007-05-21  Ulrich Drepper  <drepper@redhat.com>
6352
6353         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Pass correct value
6354         as second parameter to handle_intel.
6355
6356         * nscd/aicache.c (addhstaiX): If reported TTL is zero don't cache
6357         the entry.
6358
6359         * sysdeps/unix/sysv/linux/x86_64/sysconf.c: Move cache information
6360         handling to ...
6361         * sysdeps/x86_64/cacheinfo.c: ... here.  New file.
6362         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
6363         cacheinfo.
6364         * sysdeps/x86_64/memcpy.S: Complete rewrite.
6365         * sysdeps/x86_64/mempcpy.S: Adjust appropriately.
6366         Patch by Evandro Menezes <evandro.menezes@amd.com>.
6367
6368         * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: New file.
6369
6370 2007-05-21  Jakub Jelinek  <jakub@redhat.com>
6371
6372         [BZ #4525]
6373         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add epoll_pwait.
6374         * sysdeps/unix/sysv/linux/epoll_pwait.c: New file.
6375         * sysdeps/unix/sysv/linux/syscalls.list (epoll_pwait): Remove.
6376
6377         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h (epoll_pwait): Declare.
6378
6379         [BZ #4514]
6380         * stdio-common/vfprintf.c (vfprintf): Don't shadow workstart variable,
6381         reinitialize workend at the start of each do_positional format spec
6382         loop, free workstart before do_positional loops.
6383         (printf_unknown): Fix size of work_buffer.
6384         * stdio-common/tst-sprintf.c (main): Add 3 new testcases.
6385
6386         * malloc/hooks.c (MALLOC_STATE_VERSION): Bump.
6387         (public_sET_STATe): If ms->version < 3, put all chunks into
6388         unsorted chunks and clear {fd,bk}_nextsize fields of largebin
6389         chunks.
6390
6391         * malloc/malloc.c [MALLOC_DEBUG]: Revert 2007-05-13 changes.
6392         * malloc/hooks.c: Likewise.
6393         * malloc/arena.c: Likewise.
6394         * malloc/malloc.c (do_check_malloc_state): Don't assert
6395         n_mmaps is not greater than n_mmaps_max.  This removes the need
6396         for the previous change.
6397
6398         * malloc/Makefile (CFLAGS-malloc.c): Revert accidental
6399         2007-05-07 commit.
6400
6401 2007-05-19  Ulrich Drepper  <drepper@redhat.com>
6402
6403         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PRIVATE_FUTEX):
6404         Define for kernel >= 2.6.22.
6405
6406 2007-05-18  Ulrich Drepper  <drepper@redhat.com>
6407
6408         * elf/dl-close.c (_dl_close_worker): When removing object from
6409         global scope, wait for all lookups to finish afterwards.
6410         * elf/dl-open.c (add_to_global): When global scope array must
6411         grow, allocate a new one and free old array only after all
6412         lookups finish.
6413         * elf/dl-runtime.c (_dl_fixup): Protect using global scope.
6414         (_dl_lookup_symbol_x): Likewise.
6415         * elf/dl-support.c: Define _dl_wait_lookup_done.
6416         * sysdeps/generic/ldsodefs.h (struct rtld_global): Add
6417         _dl_wait_lookup_done.
6418
6419         * malloc/malloc.c (do_check_chunk): Correct check for mmaped block
6420         not overlapping with arena.
6421
6422         * malloc/mcheck.c (reallochook): If size==0, free the block.
6423
6424         * rt/tst-shm.c: Use fstat64 instead of fstat.
6425
6426         * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Fix case where
6427         __NR_sync_file_range is not defined.
6428
6429 2007-05-17  Ulrich Drepper  <drepper@redhat.com>
6430
6431         Dummy files to prevent stub versions from being used.
6432         * sysdeps/x86_64/fpu/k_cosl.c: New file.
6433         * sysdeps/x86_64/fpu/k_rem_pio2l.c: New file.
6434         * sysdeps/x86_64/fpu/k_sinl.c: New file.
6435         * sysdeps/x86_64/fpu/k_tanl.c: New file.
6436
6437         * version.h (VERSION): Set to 2.6.90.
6438
6439 2007-05-14  Ulrich Drepper  <drepper@redhat.com>
6440
6441         * version.h (VERSION): Define to 2.6.
6442         * include/features.h (__GLIBC_MINOR__): Define to 6.
6443
6444         * malloc/malloc.c: Use all small bin slots on 64-bit archs.
6445
6446         * malloc/malloc.c (largebin_index): Really have 32 buckets with 64
6447         sizes.
6448
6449 2007-05-13  Ulrich Drepper  <drepper@redhat.com>
6450
6451         * malloc/malloc.c [MALLOC_DEBUG]: Keep track of current maximum
6452         number of mmaps.  n_mmaps_max is the target.
6453         * malloc/hooks.c: Likewise.
6454         * malloc/arena.c: Likewise.
6455
6456 2007-05-12  Andreas Jaeger  <aj@suse.de>
6457
6458         * sysdeps/unix/sysv/linux/tst-getcpu.c: Include <unistd.h> for
6459         getpid.
6460
6461 2007-05-11  Ulrich Drepper  <drepper@redhat.com>
6462
6463         * elf/dl-close.c (_dl_close_worker): Help gcc to optimize by
6464         adding new variables.
6465
6466         * elf/dl-open.c (add_to_global): Introduce variable ns to help gcc
6467         optimize.  Completely extend global scope array before making the
6468         new entries visible.
6469
6470 2007-05-10  Ulrich Drepper  <drepper@redhat.com>
6471
6472         * sysdeps/unix/sysv/linux/tst-getcpu.c: New file.
6473         * sysdeps/unix/sysv/linux/Makefile [subdir=posix] (tests): Add
6474         tst-getcpu.
6475
6476         * include/link.h: Move l_version and l_nversion members around to
6477         fill gaps.
6478
6479         * scripts/check-c++-types.sh: Don't use -fnu89-inline option.
6480
6481         * sysdeps/unix/sysv/linux/sched_setaffinity.c
6482         (__sched_setaffinity_new): If syscall was successful and
6483         RESET_VGETCPU_CACHE is defined, use it before returning.
6484         * sysdeps/unix/sysv/linux/x86_64/sched_setaffinity.c: New file.
6485
6486         * io/sys/stat.h: Make sure struct timespec is defined for
6487         __USE_ATFILE.
6488
6489         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Define UTIME_NOW and
6490         UTIME_OMIT.
6491         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
6492         * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
6493         * sysdeps/unix/sysv/linux/alpha/bits/stat.h: Likewise.
6494         * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
6495         * sysdeps/unix/sysv/linux/bits/stat.h: Likewise.
6496         * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
6497         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_UTIMENSAT.
6498         * io/sys/stat.h: Declare utimensat, futimens.
6499         * io/utimensat.c: New file.
6500         * io/futimens.c: New file.
6501         * sysdeps/unix/sysv/linux/utimensat.c: New file.
6502         * sysdeps/unix/sysv/linux/futimens.c: New file.
6503         * io/Makefile (routines): Add utimensat, futimens.
6504         * io/Versions: Add utimensat, futimens to GLIBC_2.6.
6505         * sysdeps/unix/sysv/linux/lutimes.c: New file.
6506         * sysdeps/unix/sysv/linux/futimes.c: Use utimensat syscall if
6507         available.
6508
6509         * include/sys/cdefs.h: Redefine __nonnull so that test for
6510         incorrect parameters in the libc code itself are not omitted.
6511
6512 2007-05-09  Jakub Jelinek  <jakub@redhat.com>
6513
6514         * sysdeps/ia64/fpu/fraiseexcpt.c (feraiseexcept): Don't raise overflow
6515         exception in addition to inexact when asked to raise only FE_INEXACT.
6516
6517         [BZ #3427]
6518         * sysdeps/s390/fpu/feholdexcpt.c (feholdexcept): Don't clear exceptions
6519         in *envp.
6520
6521 2007-05-07  Ulrich Drepper  <drepper@redhat.com>
6522
6523         [BZ #4403]
6524         * string/strfry.c (strfry): Make result more random.
6525
6526 2007-05-07  Richard Henderson  <rth@redhat.com>
6527
6528         * sysdeps/alpha/fpu/bits/mathinline.h (__isnanl): Don't define
6529         if __NO_LONG_DOUBLE_MATH.
6530         * sysdeps/unix/sysv/linux/alpha/ioperm.c: If BWX insns not
6531         available in the compiler, add .arch directive to the assembly.
6532
6533 2007-05-07  Jakub Jelinek  <jakub@redhat.com>
6534
6535         * sysdeps/alpha/fpu/s_nearbyint.c (nearbyintl): Fix version on
6536         compat_symbol to GLIBC_2_1.
6537         * sysdeps/alpha/fpu/s_fmin.S (fminl): Likewise.
6538         * sysdeps/alpha/fpu/s_trunc.c (truncl): Likewise.
6539         * sysdeps/alpha/fpu/s_fmax.S (fmaxl): Likewise.
6540         * sysdeps/alpha/fpu/s_lrint.c (lrintl, llrintl): Likewise.
6541         * sysdeps/alpha/fpu/s_lround.c (lroundl, llroundl): Likewise.
6542         * sysdeps/alpha/fpu/s_round.c (roundl): Likewise.
6543         * sysdeps/alpha/fpu/s_isnan.c (isnanl): Provide compat_symbol in
6544         libc, not libm.
6545         (__isnanl): New compat_symbol.
6546
6547 2007-05-07  Ulrich Drepper  <drepper@redhat.com>
6548             Jakub Jelinek  <jakub@redhat.com>
6549
6550         * malloc/arena.c (heap_info): Add mprotect_size field, adjust pad.
6551         (new_heap): Initialize mprotect_size.
6552         (grow_heap): When growing, only mprotect from mprotect_size till
6553         new_size if mprotect_size is smaller.  When shrinking, use PROT_NONE
6554         MMAP for __libc_enable_secure only, otherwise use MADV_DONTNEED.
6555
6556 2007-04-30  Steven Munroe  <sjmunroe@us.ibm.com>
6557             Peter Bergner  <bergner@us.ibm.com>
6558
6559         * sysdeps/powerpc/bits/fenv.h: Declare __fe_mask_env extern.
6560         Define FE_NOMASK_ENV as FE_EANBLED_ENV.  Define FE_MASK_ENV.
6561         * sysdeps/powerpc/fpu/Makefile: Add fe_mask to libm-support.
6562         * sysdeps/powerpc/fpu/fe_mask.c: New file.
6563         * sysdeps/powerpc/fpu/fe_nomask.c: Correct comment.
6564         * sysdeps/powerpc/fpu/fedisblxcpt.c (fedisableexcept):
6565         Call __fe_mask_env() if all FP exceptions disabled.
6566         * sysdeps/powerpc/fpu/feholdexcpt.c (feholdexcept): Copy high 32-bits
6567         from old FPSCR to new fenv to propagate DFP rounding modes.
6568         Call __fe_mask_env() if FP exceptions previously enabled.
6569         * sysdeps/powerpc/fpu/fesetenv.c (fesetenv): Change mask to merge
6570         exceptions from env.  Use __fe_nomask_env() or __fe_mask_env() when
6571         transitioning from all exceptions disabled to any exception enabled
6572         or visa versa.
6573         * sysdeps/powerpc/fpu/feupdateenv.c (__feupdateenv): Change mask to
6574         merge exceptions from env.  Call __fe_nomask_env or __fe_mask_env
6575         when transitioning from all exceptions disabled to any exception
6576         enabled or visa versa.
6577         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fe_nomask.c: Moved to...
6578         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c: ...here.
6579         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c: Moved to...
6580         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c: ...here.
6581         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c: New file.
6582         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c: New file.
6583
6584 2007-05-06  Ulrich Drepper  <drepper@redhat.com>
6585
6586         [BZ #4465]
6587         * posix/unistd.h: Remove __THROW from fdatasync.
6588
6589 2007-05-06  Mike Frysinger  <vapier@gentoo.org>
6590
6591         [BZ #4465]
6592         * sysdeps/unix/sysv/linux/syscalls.list (fdatasync): Add "C" to args.
6593
6594 2007-05-06  Ulrich Drepper  <drepper@redhat.com>
6595
6596         * stdio-common/vfprintf.c (process_string_arg): Optimize
6597         ridiculous precision in wide char code printing multi-byte string.
6598         Reported by Jim Meyering <jim@meyering.net>.
6599
6600         [BZ #4131]
6601         * elf/dl-addr.c (_dl_addr): Compare address with actual segment
6602         boundaries to work around systems with overlapping binary loading.
6603         Based on a patch by Suzuki <suzuki@in.ibm.com>.
6604
6605 2007-05-04  Ulrich Drepper  <drepper@redhat.com>
6606
6607         * stdio-common/vfprintf.c (process_string_arg): Adjust call to
6608         __mbsnrtowcs after last change.
6609
6610         * locale/programs/linereader.c (get_symname): Fix adding final NUL.
6611         (get_ident): Likewise.
6612
6613 2007-05-03  Jakub Jelinek  <jakub@redhat.com>
6614
6615         * soft-fp/op-common.h (FP_TRUNC): Replace raising of FP_EX_INEXACT
6616         with setting the sticky bit.
6617         * math/test-misc.c (main): Add more truncation tests.
6618
6619 2007-04-14  Uros Bizjak  <ubizjak@gmail.com>
6620
6621         * soft-fp/floatunsidf.c (__floatunsidf): Use DFtype instead of
6622         double in the function declaration.
6623         * soft-fp/floatundidf.c (__floatundidf): Use DFtype instead of
6624         double in the function declaration.
6625         * soft-fp/floatunsisf.c (__floatunsisf): Use SFtype instead of
6626         float in the function declaration.
6627         * soft-fp/floatunsisf.c (__floatunsisf): Use SFtype instead of
6628         float in the function declaration.
6629
6630         * soft-fp/extended.h (FP_UNPACK_RAW_E): Do not increase X##_e for
6631         denormal operands.  Do not generate FP_EX_DENORM exception.
6632         (FP_UNPACK_RAW_EP): Ditto.
6633         (FP_UNPACK_SEMIRAW_E): Use FP_UNPACK_RAW_E instead of
6634         undefined _FP_UNPACK_RAW_E.
6635         (FP_UNPACK_SEMIRAW_EP): Use FP_UNPACK_RAW_EP instead of
6636         undefined _FP_UNPACK_RAW_EP.
6637         (FP_PACK_SEMIRAW_E): Use FP_PACK_RAW_E instead of
6638         undefined _FP_PACK_RAW_E.
6639         (FP_PACK_SEMIRAW_EP): Use FP_PACK_RAW_EP instead of
6640         undefined _FP_PACK_RAW_EP.
6641
6642         * soft-fp/op-2.h (_FP_FRAC_COPY_2_2): Define as alias to
6643         _FP_FRAC_COPY_2.
6644         * soft-fp/op-4.h (_FP_FRAC_COPY_2_2): Define as alias to
6645         _FP_FRAC_COPY_4.
6646
6647 2007-04-16  Uros Bizjak  <ubizjak@gmail.com>
6648             Jakub Jelinek  <jakub@redhat.com>
6649
6650         * soft-fp/op-common.h (FP_EXTEND): Do not abort when
6651         _FP_EXPBIAS_##dfs == _FP_EXPBIAS_##sfs.  Handle denormals for
6652         this case.
6653         * soft-fp/op-common.h (FP_TRUNC): Ditto.
6654
6655 2007-05-03  Jakub Jelinek  <jakub@redhat.com>
6656
6657         * math/test-misc.c (main): Add tests for rounding long double
6658         values close to smallest double denormalized value to double.
6659
6660 2007-04-30  Joseph Myers  <joseph@codesourcery.com>
6661
6662         * soft-fp/op-common.h (FP_TRUNC): Correct off-by-one error in
6663         condition for truncating to 0.  Set sticky bit for such
6664         truncation.
6665
6666 2007-05-02  Jakub Jelinek  <jakub@redhat.com>
6667
6668         * stdio-common/vfprintf.c (process_string_arg): Use a VLA rather than
6669         fixed length array for ignore.
6670
6671 2007-04-30  Ulrich Drepper  <drepper@redhat.com>
6672
6673         [BZ #4438]
6674         * stdio-common/vfprintf.c (process_string_arg): Don't overflow the
6675         stack for large precisions.
6676         * stdio-common/test-vfprintf.c (main): Add test for large
6677         precision.
6678
6679 2007-04-30  Jakub Jelinek  <jakub@redhat.com>
6680
6681         * stdio-common/printf_fp.c (___printf_fp): Don't print negative sign
6682         for exponent 0.
6683         * stdio-common/tfformat.c (sprint_doubles): Add a new test.
6684
6685         [BZ #4439]
6686         * resolv/inet_ntop.c (inet_ntop4): Take terminating '\0' into
6687         account in the size check.
6688         * resolv/tst-inet_ntop.c: New test.
6689         * resolv/Makefile (tests): Add tst-inet_ntop.
6690
6691 2007-04-30  Ulrich Drepper  <drepper@redhat.com>
6692             Jakub Jelinek  <jakub@redhat.com>
6693
6694         [BZ #4349]
6695         * malloc/malloc.c: Keep separate list for first blocks on the bin
6696         lists with a given size.  This helps skipping over list elements
6697         we know won't fit in two places.
6698         Inspired by a patch by Tomash Brechko <tomash.brechko@gmail.com>.
6699
6700 2007-04-28  Ulrich Drepper  <drepper@redhat.com>
6701
6702         [BZ #4102]
6703         * sysdeps/posix/getaddrinfo.c (default_labels): Assign separate
6704         label to Teredo tunnel addresses 2001://32.
6705
6706 2007-04-27  Ulrich Drepper  <drepper@redhat.com>
6707
6708         * locale/programs/ld-collate.c (collate_read): Allow order_start
6709         after copy.
6710
6711         * locale/programs/ld-collate.c (collate_read): Fix printing of
6712         error message.
6713
6714         [BZ #3213]
6715         * locale/C-translit.h.in: Add entry for U2044.
6716
6717         [BZ #4342]
6718         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Allow
6719         hexa-decimal floats without exponent.
6720         * stdio-common/tstscanf.c (main): Adjust Test 8 test for success.
6721
6722 2007-04-25  Ulrich Drepper  <drepper@redhat.com>
6723
6724         * sysdeps/unix/sysv/linux/bits/sched.h: Declare sched_getcpu.
6725         * sysdeps/unix/sysv/linux/sched_getcpu.c: New file.
6726         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: New file.
6727         * sysdeps/unix/sysv/linux/Versions: Export sched_getcpu for
6728         GLIBC_2.6.
6729         * sysdeps/unix/sysv/linux/Makefile [subdir=posix] (sysdep_routines):
6730         Add sched_getcpu.
6731
6732 2007-04-25  Jakub Jelinek  <jakub@redhat.com>
6733
6734         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Return -1 instead
6735         of 0 after the out_fail label.
6736
6737 2007-04-25  Ulrich Drepper  <drepper@redhat.com>
6738
6739         [BZ #4406]
6740         * iconv/gconv_charset.h (strip): Allow ':'.
6741         * iconv/iconv_open.c (iconv_open): Adjust comment.
6742
6743 2007-04-25  Jakub Jelinek  <jakub@redhat.com>
6744
6745         * libio/bits/stdio.h (fgetc_unlocked): Add extern inline optimized
6746         version.
6747
6748 2007-04-23  Jakub Jelinek  <jakub@redhat.com>
6749
6750         [BZ #4381]
6751         * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Ensure sufficient
6752         alignment of buffer and tmp_buffer.
6753         * nis/nss_nis/nis-hosts.c (internal_nis_gethostent_r,
6754         internal_gethostbyname2_r, _nss_nis_gethostbyaddr_r): Ensure sufficient
6755         alignment of buffer.
6756         * resolv/nss_dns/dns-hosts.c (getanswer_r): Likewise.  Handle buflen
6757         bigger than INT_MAX.
6758         * resolv/nss_dns/dns-network.c (getanswer_r): Likewise.  Add errnop and
6759         h_errnop arguments.  Fail if buflen is too small.
6760         (_nss_dns_getnetbyname_r, _nss_dns_getnetbyaddr_r): Adjust callers.
6761
6762 2007-04-23  Jakub Jelinek  <jakub@redhat.com>
6763
6764         [BZ #4405]
6765         * iconvdata/gconv-modules (E13B): Add a missing slash to the alias
6766         name.  Patch by Aurelien Jarno <aurelien@aurel32.net>.
6767
6768 2007-04-22  Roland McGrath  <roland@redhat.com>
6769
6770         * elf/elf.h (NT_PRXFPREG): New macro.
6771
6772 2007-04-19  Andreas Jaeger  <aj@suse.de>
6773
6774         [BZ #3905]
6775         * bits/in.h (IPV6_ROUTER_ALERT, IPV6_MTU_DISCOVER, IPV6_MTU,
6776         IPV6_RECVERR, IPV6_V6ONLY, IPV6_JOIN_ANYCAST, IPV6_LEAVE_ANYCAST):
6777         Added.
6778
6779 2007-04-19  Ulrich Drepper  <drepper@redhat.com>
6780
6781         * include/sys/mman.h: Mark madvise hidden.
6782         * misc/madvise.c: Add libc_hidden_def.
6783
6784 2007-04-06  Jakub Jelinek  <jakub@redhat.com>
6785
6786         * nis/nis_domain_of.c (__nis_domain_of): New function.
6787         * include/rpcsvc/nislib.h (__nis_domain_of): New prototype.
6788         * nis/nis_lookup.c (nis_lookup): Use __nis_domain_of.
6789         * nis/nis_call.c (rec_dirsearch): Likewise.
6790         (first_shoot): Likewise.  Remove search_parent_first argument.
6791         (struct nis_server_cache): Rename search_parent_first field
6792         to search_parent.
6793         (nis_server_cache_search, nis_server_cache_add): Rename
6794         search_parent_first argument to search_parent.
6795         (__nisfind_server): Likewise.  If search_parent, call
6796         __nis_domain_of.
6797
6798 2007-04-18  Ulrich Drepper  <drepper@redhat.com>
6799
6800         * sysdeps/posix/getaddrinfo.c: Remove commented-out code.
6801
6802 2007-04-17  Ulrich Drepper  <drepper@redhat.com>
6803
6804         [BZ #4368]
6805         * stdlib/stdlib.h: Remove obsolete part of comment for realpath.
6806
6807 2007-04-16  Ulrich Drepper  <drepper@redhat.com>
6808
6809         [BZ #4364]
6810         * posix/unistd.h (_XOPEN_VERSION): Define appropriately for SUSv3.
6811
6812 2007-04-15  Jakub Jelinek  <jakub@redhat.com>
6813
6814         * locale/programs/locarchive.c (INITIAL_NUM_NAMES,
6815         INITIAL_SIZE_STRINGS, INITIAL_NUM_LOCREC): Update to accomodate
6816         current number of locales in SUPPORTED.
6817         (create_archive): Initialize serial.
6818         (enlarge_archive): Preserve aliases rather than duplicating
6819         their locrecs.
6820
6821 2007-04-13  Jakub Jelinek  <jakub@redhat.com>
6822
6823         * libio/genops.c (_IO_default_finish): Call _IO_lock_fini
6824         after _IO_un_link, not before it.
6825
6826         * stdio-common/printf_fp.c (___printf_fp): Fix exponent -4
6827         special case handling when wcp == wstartp + 1.  Fix a comment typo.
6828         * stdio-common/tfformat.c (sprint_doubles): Add a new testcase.
6829
6830 2007-03-30  Jakub Jelinek  <jakub@redhat.com>
6831
6832         * libio/libio.h (__underflow, __uflow, __overflow, __wunderflow,
6833         __wuflow, __woverflow, _IO_getc, _IO_putc, _IO_peekc_locked, _IO_padn,
6834         _IO_sgetn, _IO_seekoff, _IO_seekpos, _IO_getwc, _IO_putwc, _IO_wpadn):
6835         Remove __THROW.
6836         * libio/fileops.c (new_do_write, _IO_file_xsgetn_mmap,
6837         _IO_file_xsgetn_maybe_mmap): Likewise.
6838         * libio/oldfileops.c (old_do_write): Likewise.
6839         * libio/libioP.h (_IO_switch_to_get_mode, _IO_switch_to_wget_mode,
6840         _IO_init_marker, _IO_init_wmarker, _IO_default_uflow,
6841         _IO_wdefault_uflow, _IO_default_setbuf, _IO_default_seekpos,
6842         _IO_do_write, _IO_new_do_write, _IO_old_do_write, _IO_wdo_write,
6843         _IO_flush_all_lockp, _IO_flush_all, _IO_cleanup,
6844         _IO_flush_all_linebuffered, _IO_new_fgetpos, _IO_old_fgetpos,
6845         _IO_new_fsetpos, _IO_old_fsetpos, _IO_new_fgetpos64,
6846         _IO_old_fgetpos64, _IO_new_fsetpos64, _IO_old_fsetpos64,
6847         _IO_file_setbuf, _IO_file_seekoff, _IO_file_xsputn, _IO_file_xsgetn,
6848         _IO_file_underflow, _IO_file_underflow_mmap,
6849         _IO_file_underflow_maybe_mmap, _IO_file_overflow, _IO_file_attach,
6850         _IO_file_open, _IO_file_fopen, _IO_file_write, _IO_file_read,
6851         _IO_file_sync, _IO_file_close_it, _IO_file_finish,
6852         _IO_new_file_attach, _IO_new_file_close_it, _IO_new_file_finish,
6853         _IO_new_file_fopen, _IO_new_file_setbuf, _IO_file_setbuf_mmap,
6854         _IO_new_file_sync, _IO_new_file_underflow, _IO_new_file_overflow,
6855         _IO_new_file_seekoff, _IO_new_file_write, _IO_new_file_xsputn,
6856         _IO_old_file_setbuf, _IO_old_file_seekoff, _IO_old_file_xsputn,
6857         _IO_old_file_underflow, _IO_old_file_overflow, _IO_old_file_attach,
6858         _IO_old_file_fopen, _IO_old_file_write, _IO_old_file_sync,
6859         _IO_old_file_close_it, _IO_old_file_finish, _IO_wfile_xsputn,
6860         _IO_wfile_setbuf, _IO_wfile_sync, _IO_wfile_underflow,
6861         _IO_wfile_overflow, _IO_wfile_seekoff, _IO_old_proc_open,
6862         _IO_old_proc_close, _IO_getdelim, _IO_flush_all_internal,
6863         _IO_adjust_column_internal, _IO_default_uflow_internal,
6864         _IO_default_xsgetn_internal, _IO_wdefault_xsputn_internal,
6865         _IO_wdefault_xsgetn_internal, _IO_wdefault_uflow_internal,
6866         _IO_file_setbuf_internal, _IO_file_seekoff_internal,
6867         _IO_file_xsputn_internal, _IO_file_xsgetn_internal,
6868         _IO_file_close_it_internal, _IO_file_underflow_internal,
6869         _IO_file_overflow_internal, _IO_file_attach_internal,
6870         _IO_file_fopen_internal, _IO_file_sync_internal,
6871         _IO_file_finish_internal, _IO_wfile_xsputn_internal,
6872         _IO_wfile_seekoff_internal, _IO_wfile_sync_internal,
6873         _IO_switch_to_wget_mode_internal, _IO_padn_internal,
6874         _IO_switch_to_get_mode_internal, _IO_seekoff_unlocked,
6875         _IO_seekpos_unlocked): Likewise.
6876         (_IO_strtod, _IO_dtoa, _IO_outfloat, _IO_read, _IO_write,
6877         _IO_lseek, _IO_close, _IO_fstat): Remove unused prototypes.
6878
6879 2007-04-16  Jakub Jelinek  <jakub@redhat.com>
6880
6881         * locale/programs/locarchive.c (show_archive_content): Fix sizeof
6882         argument in xmalloc size computation.
6883
6884 2007-04-01  Jakub Jelinek  <jakub@redhat.com>
6885
6886         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl): Use
6887         math_opt_barrier and math_force_eval macros.
6888
6889 2007-03-27  Jakub Jelinek  <jakub@redhat.com>
6890
6891         [BZ #3306]
6892         * math/math_private.h (math_opt_barrier, math_force_eval): Define.
6893         * sysdeps/i386/fpu/math_private.h: New file.
6894         * sysdeps/x86_64/fpu/math_private.h: New file.
6895         * math/s_nexttowardf.c (__nexttowardf): Use math_opt_barrier and
6896         math_force_eval macros.  Use "+m" constraint on asm rather than
6897         "=m" and "m".
6898         * math/s_nextafter.c (__nextafter): Likewise.
6899         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c (__nexttoward):
6900         Likewise.
6901         * sysdeps/ieee754/flt-32/s_nextafterf.c (__nextafterf): Likewise.
6902         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward): Likewise.
6903         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
6904         * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Use
6905         math_opt_barrier and math_force_eval macros.
6906         * sysdeps/ieee754/ldbl-128/s_nextafterl.c (__nextafterl): Likewise.
6907         * sysdeps/ieee754/ldbl-96/s_nextafterl.c (__nextafterl): Likewise.
6908         * sysdeps/i386/fpu/s_nexttoward.c: Include float.h.
6909         (__nexttoward): Use math_opt_barrier and
6910         math_force_eval macros.  Use "+m" constraint on asm rather than
6911         "=m" and "m".  Only use asm to force double result if
6912         FLT_EVAL_METHOD is 2.
6913         * sysdeps/i386/fpu/s_nexttowardf.c: Include float.h.
6914         (__nexttowardf): Use math_opt_barrier and
6915         math_force_eval macros.  Use "+m" constraint on asm rather than
6916         "=m" and "m".  Only use asm to force double result if
6917         FLT_EVAL_METHOD is not 0.
6918         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Include float.h.
6919         (__nexttowardf): Use math_opt_barrier and
6920         math_force_eval macros.  If FLT_EVAL_METHOD is not 0, force
6921         x to float using asm.
6922         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c: Include float.h.
6923         (__nldbl_nexttowardf): Use math_opt_barrier and
6924         math_force_eval macros.  If FLT_EVAL_METHOD is not 0, force
6925         x to float using asm.
6926         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Include float.h.
6927         (__nexttowardf): Use math_opt_barrier and math_force_eval
6928         macros.  If FLT_EVAL_METHOD is not 0, force x to float using asm.
6929         * math/bug-nextafter.c (zero, inf): New variables.
6930         (main): Add new tests.
6931         * math/bug-nexttoward.c (zero, inf): New variables.
6932         (main): Add new tests.
6933
6934 2007-03-22  Jakub Jelinek  <jakub@redhat.com>
6935
6936         [BZ #3427]
6937         * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Clear all
6938         exceptions both in SW and MXCSR.
6939         * sysdeps/x86_64/fpu/feupdateenv.c: New file.
6940         * sysdeps/x86_64/fpu/feenablxcpt.c (feenableexcept): Remove dead code.
6941         * sysdeps/x86_64/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
6942         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions
6943         in MXCSR if SSE is available.
6944         * sysdeps/i386/fpu/feupdateenv.c: Include unistd.h, dl-procinfo.h
6945         and ldsodefs.h.
6946         (__feupdateenv): Query exceptions also from MXCSR if SSE is available.
6947         Fix comment typo.
6948         * sysdeps/ia64/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions.
6949         Return 0 rather than 1.
6950         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Fix comment typo.
6951         Remove incorrect part of a comment.  Fix argument to feraiseexcept.
6952         * math/test-fenv.c (feholdexcept_tests): New function.
6953         (main): Call it.
6954
6955 2007-01-05  Richard B. Kreckel  <kreckel@ginac.de>
6956
6957         [BZ #3427]
6958         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions
6959         in SW.
6960
6961 2007-04-13  Jakub Jelinek  <jakub@redhat.com>
6962
6963         [BZ #4344]
6964         * elf/ldconfig.c (search_dir): Fix 2 off-by-2 errors.
6965         Reported by David Anderson <davea42@earthlink.net>.
6966
6967 2007-04-07  Ulrich Drepper  <drepper@redhat.com>
6968
6969         * posix/sys/wait.h: Remove unnecessary forward declaration.
6970
6971 2007-04-05  Jakub Jelinek  <jakub@redhat.com>
6972
6973         * nis/nis_call.c (__nisfind_server): Replace (*dir)->do_servers
6974         with obj->do_servers after first_shoot.
6975
6976 2007-04-03  Ulrich Drepper  <drepper@redhat.com>
6977
6978         * posix/Makefile (routines): Add sched_cpucount.
6979         (tests): Add tst-cpucount.
6980         * posix/sched_cpucount.c: New file.
6981         * posix/tst-cpucount.c: New file.
6982         * posix/Versions: Export __sched_cpucount with version GLIBC_2.6.
6983         * bits/sched.h: Define __CPU_COUNT.  Declare __sched_cpucount.
6984         * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
6985         * posix/sched.h: Define CPU_COUNT.
6986
6987 2007-03-27  Jakub Jelinek  <jakub@redhat.com>
6988
6989         * posix/fnmatch.c (STRUCT): Define.
6990         (fnmatch): Pass NULL as last argument to internal_fn{,w}match.
6991         * posix/fnmatch_loop.c (struct STRUCT): New type.
6992         (FCT): Add ends argument.  If ends != NULL and normal * is
6993         seen in the pattern, store current pattern and string pointers
6994         and return.  Adjust recursive calls.
6995         (EXT): Adjust FCT callers.
6996         (STRUCT): Undef at the end of the file.
6997         * posix/Makefile (tests): Add tst-fnmatch2.
6998         * posix/tst-fnmatch2.c: New test.
6999
7000 2007-04-01  Jakub Jelinek  <jakub@redhat.com>
7001
7002         * sysdeps/ia64/fpu/fesetround.c (fesetround): Return 0 on success
7003         and 1 on failure.
7004
7005         * sysdeps/unix/sysv/linux/sync_file_range.c (sync_file_range):
7006         Change last argument to unsigned int.
7007
7008 2007-03-23  Jakub Jelinek  <jakub@redhat.com>
7009
7010         * scripts/check-local-headers.sh: Filter out sys/capability.h.
7011
7012 2007-03-22  Jakub Jelinek  <jakub@redhat.com>
7013
7014         * config.h.in (HAVE_LIBCAP): Add.
7015         * nscd/selinux.h: Include sys/capability.h rather than non-existent
7016         sys/capabilities.h.
7017         * nscd/selinux.c (preserve_capabilities): Use cap_free instead of
7018         free_caps.  Cast away const from 4th cap_set_flag argument.
7019
7020 2007-03-26  Ulrich Drepper  <drepper@redhat.com>
7021
7022         * sysdeps/unix/sysv/linux/Versions: Move sync_file_range to
7023         GLIBC_2.6.
7024         * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
7025         Add sync_file_range.
7026         Reported by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
7027
7028 2007-03-19  Steven Munroe  <sjmunroe@us.ibm.com>
7029
7030         * sysdeps/powerpc/bits/atomic.h
7031         [!MUTEX_HINT_ACQ]: Define MUTEX_HINT_ACQ.
7032         [!MUTEX_HINT_REL]: Define MUTEX_HINT_REL.
7033         (__arch_compare_and_exchange_val_32_acq): Add MUTEX_HINT_ACQ to lwarx.
7034         (__arch_compare_and_exchange_val_32_rel): Add MUTEX_HINT_REL to lwarx.
7035         (__arch_atomic_exchange_val_32_acq): Add MUTEX_HINT_ACQ to lwarx.
7036         (__arch_atomic_exchange_rel_32_rel): Add MUTEX_HINT_REL to lwarx.
7037         * sysdeps/powerpc/powerpc32/bits/atomic.h [_ARCH_PWR6 || _ARCH_PWR6X]:
7038         Define MUTEX_HINT_ACQ as ",1" and MUTEX_HINT_REL as ",0".
7039         (__arch_compare_and_exchange_bool_32_acq): Add MUTEX_HINT_ACQ to lwarx.
7040         (__arch_compare_and_exchange_bool_32_rel): Add MUTEX_HINT_REL to lwarx.
7041         * sysdeps/powerpc/powerpc64/bits/atomic.h [_ARCH_PWR6 || _ARCH_PWR6D]:
7042         Define MUTEX_HINT_ACQ as ",1" and MUTEX_HINT_REL as ",0".
7043         (__arch_compare_and_exchange_bool_32_acq): Add MUTEX_HINT_ACQ to lwarx.
7044         (__arch_compare_and_exchange_bool_32_rel): Add MUTEX_HINT_REL to lwarx.
7045         (__arch_compare_and_exchange_bool_64_acq): Add MUTEX_HINT_ACQ to lwarx.
7046         (__arch_compare_and_exchange_bool_64_rel): Add MUTEX_HINT_REL to lwarx.
7047         (__arch_compare_and_exchange_val_64_acq): Add MUTEX_HINT_ACQ to lwarx.
7048         (__arch_compare_and_exchange_val_64_rel): Add MUTEX_HINT_REL to lwarx.
7049         (__arch_atomic_exchange_val_64_acq): Add MUTEX_HINT_ACQ to lwarx.
7050         (__arch_atomic_exchange_rel_64_rel): Add MUTEX_HINT_REL to lwarx.
7051
7052 2007-03-20  Jakub Jelinek  <jakub@redhat.com>
7053
7054         * sysdeps/unix/sysv/linux/powerpc/libc-start.c
7055         (__cache_line_size): Define the variable here.  Add
7056         attribute_hidden, remove weak_extern.
7057         (__libc_start_main): Set __cache_line_size
7058         unconditionally.
7059         * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
7060         (__cache_line_size): Define the variable here.  Add
7061         attribute_hidden, remove weak_extern.
7062         (DL_PLATFORM_AUXV): Set __cache_line_size
7063         unconditionally.
7064         * sysdeps/powerpc/powerpc32/dl-machine.c (__cache_line_size): Remove
7065         weak_extern, add attribute_hidden.
7066         (__elf_machine_runtime_setup): Assume __cache_line_size is always
7067         defined in ld.so.
7068         * sysdeps/powerpc/powerpc32/memset.S (__cache_line_size): Remove
7069         definition.
7070         * sysdeps/powerpc/powerpc64/memset.S (__cache_line_size): Likewise.
7071
7072 2007-03-26  Jakub Jelinek  <jakub@redhat.com>
7073
7074         [BZ #4276]
7075         * timezone/africa: Update from tzdata2007d.
7076         * timezone/asia: Likewise.
7077         * timezone/australasia: Likewise.
7078         * timezone/backward: Likewise.
7079         * timezone/europe: Likewise.
7080         * timezone/iso3166.tab: Likewise.
7081         * timezone/leapseconds: Likewise.
7082         * timezone/northamerica: Likewise.
7083         * timezone/southamerica: Likewise.
7084         * timezone/zone.tab: Likewise.
7085
7086         * timezone/private.h: Update from tzcode2007d.
7087         * timezone/zdump.c: Likewise.
7088         * timezone/zic.c: Likewise.
7089
7090 2007-03-21  Jakub Jelinek  <jakub@redhat.com>
7091
7092         * nis/nis_call.c: Include bits/libc-lock.h, sys/stat.h, unistd.h.
7093         (nis_server_cache, nis_server_cache_lock, nis_cold_start_mtime): New
7094         variables.
7095         (nis_server_cache_search, nis_server_cache_add): New functions.
7096         (__nisfind_server): Use them.  Add dbp and flags argument, if
7097         call __nisbind_create.
7098         (__nisbind_create): Add server_used and current_ep arguments,
7099         only call __nis_findfastest if server_used is ~0.
7100         (__do_niscall2, __prepare_niscall): Adjust callers.
7101         (ckey_cache, ckey_cache_size, ckey_cache_allocated, ckey_cache_pid,
7102         ckey_cache_euid, ckey_cache_lock): New variables.
7103         (get_ckey): New function.
7104         (__nisbind_connect): If not dbp->use_udp, pass IPPROTO_TCP to
7105         __pmap_getnisport.  Save __pmap_getnisport result in
7106         dbp->addr.sin_port if non-zero.  Use get_ckey to create conversation
7107         key.
7108         * nis/nis_lookup.c (nis_lookup): Likewise.
7109         * nis/nis_table.c (nis_list): Likewise.
7110         * nis/rpcsvc/nislib.h (__nisbind_create, __nisfind_server): Adjust
7111         prototypes.
7112
7113         * nis/nss_nisplus/nisplus-pwd.c (_nss_nisplus_getpwnam_r,
7114         _nss_nisplus_getpwuid_r): Pass USE_DGRAM flag to nis_list.
7115         * nis/nss_nisplus/nisplus-service.c (_nss_nisplus_getservbyname_r,
7116         _nss_nisplus_getservbyport_r): Likewise.
7117         * nis/nss_nisplus/nisplus-network.c (_nss_nisplus_getnetbyname_r,
7118         _nss_nisplus_getnetbyaddr_r): Likewise.
7119         * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_getspnam_r): Likewise.
7120         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_gethostton_r,
7121         _nss_nisplus_getntohost_r): Likewise.
7122         * nis/nss_nisplus/nisplus-rpc.c (_nss_nisplus_getrpcbyname_r,
7123         _nss_nisplus_getrpcbynumber_r): Likewise.
7124
7125 2007-03-20  Jakub Jelinek  <jakub@redhat.com>
7126
7127         * configure.in (libc_cv_gnu89_inline): Only do compile test.
7128         * configure: Rebuilt.
7129
7130         * soft-fp/double.h (_FP_UNION_D): Use _FP_W_TYPE for frac
7131         bit-fields.
7132         * soft-fp/extended.h (_FP_UNION_E): Likewise.
7133
7134 2006-06-07  Joseph Myers  <joseph@codesourcery.com>
7135
7136         [BZ #2831]
7137         * soft-fp/quad.h (_FP_UNION_Q): Use _FP_W_TYPE for frac
7138         bit-fields.
7139
7140 2007-03-18  Jakub Jelinek  <jakub@redhat.com>
7141
7142         * nscd/gai.c: Include alloca.h.
7143         (__libc_use_alloca): Define.
7144
7145 2007-03-16  Jakub Jelinek  <jakub@redhat.com>
7146
7147         * elf/dl-open.c (dl_open_worker): Declare l in 2 different
7148         smaller scopes.
7149         * elf/dl-dst.h (DL_DST_REQ_STATIC): Add l as macro argument.
7150         (DL_DST_REQUIRED): Adjust user.
7151
7152         * include/dlfcn.h (struct link_map): New forward decl.
7153
7154         * inet/getnameinfo.c: Include stddef.h.
7155         (getnameinfo): Use offsetof.
7156
7157         * time/tst-mktime2.c (do_test): Don't rely on signed wrap.
7158
7159         * stdio-common/vfprintf.c (_itoa): Undef before redefining.
7160
7161         * string/strerror_l.c: Include stdlib.h.
7162
7163         * configure.in (libc_cv_gnu89_inline): Test for -fgnu89-inline.
7164         * config.make.in (gnu89-inline-CFLAGS): New variable.
7165         * Makeconfig (CFLAGS): Use $(gnu89-inline-CFLAGS) together with
7166         -std=gnu99.
7167         * misc/sys/cdefs.h (__extern_inline, __extern_always_inline): Define.
7168         * argp/argp.h: Use it.
7169         * bits/mathinline.h: Likewise.
7170         * bits/sigset.h: Likewise.
7171         * bits/string.h: Likewise.
7172         * ctype/ctype.h: Likewise.
7173         * hurd/hurd.h: Likewise.
7174         * hurd/hurd/fd.h: Likewise.
7175         * hurd/hurd/port.h: Likewise.
7176         * hurd/hurd/signal.h: Likewise.
7177         * hurd/hurd/threadvar.h: Likewise.
7178         * hurd/hurd/userlink.h: Likewise.
7179         * io/sys/stat.h: Likewise.
7180         * libio/bits/stdio.h: Likewise.
7181         * libio/bits/stdio2.h: Likewise.
7182         * mach/lock-intern.h: Likewise.
7183         * mach/mach/mig_support.h: Likewise.
7184         * math/bits/cmathcalls.h: Likewise.
7185         * posix/bits/unistd.h: Likewise.
7186         * socket/bits/socket2.h: Likewise.
7187         * stdlib/bits/stdlib.h: Likewise.
7188         * stdlib/stdlib.h: Likewise.
7189         * string/argz.h: Likewise.
7190         * string/bits/string2.h: Likewise.
7191         * string/bits/string3.h: Likewise.
7192         * sysdeps/alpha/fpu/bits/mathinline.h: Likewise.
7193         * sysdeps/generic/inttypes.h: Likewise.
7194         * sysdeps/generic/machine-lock.h: Likewise.
7195         * sysdeps/generic/machine-sp.h: Likewise.
7196         * sysdeps/i386/fpu/bits/mathinline.h: Likewise.
7197         * sysdeps/i386/i486/bits/string.h: Likewise.
7198         * sysdeps/ia64/fpu/bits/mathinline.h: Likewise.
7199         * sysdeps/mach/alpha/machine-lock.h: Likewise.
7200         * sysdeps/mach/alpha/machine-sp.h: Likewise.
7201         * sysdeps/mach/i386/machine-lock.h: Likewise.
7202         * sysdeps/mach/powerpc/machine-lock.h: Likewise.
7203         * sysdeps/mach/powerpc/machine-sp.h: Likewise.
7204         * sysdeps/powerpc/fpu/bits/mathinline.h: Likewise.
7205         * sysdeps/s390/bits/string.h: Likewise.
7206         * sysdeps/s390/fpu/bits/mathinline.h: Likewise.
7207         * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
7208         * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Likewise.
7209         * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
7210         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
7211         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Likewise.
7212         * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
7213         * wcsmbs/bits/wchar2.h: Likewise.
7214         * wcsmbs/wchar.h: Likewise.
7215         * stdlib/gmp.h: Likewise.  Include <features.h> to get
7216         __extern_inline definition.
7217
7218 2007-03-15  Jakub Jelinek  <jakub@redhat.com>
7219
7220         * locale/programs/ld-ctype.c (find_translit): Return NULL if ctype is
7221         NULL.
7222
7223         [BZ #3919]
7224         * math/libm-test.inc (log_test): Test -Inf and NaN.
7225         (log10_test, log1p_test, log2_test): Test -Inf.
7226         * sysdeps/i386/fpu/e_log.S (__ieee754_log): Don't raise
7227         FE_INVALID when argument is qNaN.
7228         * sysdeps/i386/fpu/e_logl.S (__ieee754_logl): Likewise.
7229         * sysdeps/i386/fpu/e_logf.S (__ieee754_logf): Likewise.
7230         * sysdeps/x86_64/fpu/e_logl.S (__ieee754_logl): Likewise.
7231         * sysdeps/x86_64/fpu/e_log10l.S (__ieee754_log10l): Replace
7232         andb $1, %ah with testb $1, %ah, don't test for parity, instead
7233         testb $4, %ah and jump if non-zero.
7234         * sysdeps/x86_64/fpu/e_log2l.S (__ieee754_log2l): Likewise.
7235         * sysdeps/x86_64/fpu/s_log1pl.S (__log1pl): Likewise.
7236
7237         [BZ #4101]
7238         * argp/argp-help.c (hol_cluster_cmp): Fix comparisons used to find
7239         ancestors with the same depths.
7240         Patch by Niels Moeller <nisse@lysator.liu.se>.
7241         (filter_doc): Don't crash if argp is NULL.
7242         * argp/Makefile (tests): Add tst-argp2.
7243         * argp/tst-argp2.c: New test.
7244
7245         [BZ #4130]
7246         * login/utmp_file.c (setutent_file): Use O_LARGEFILE for
7247         open_not_cancel_2.
7248         (updwtmp_file): Likewise.
7249
7250         [BZ #4181]
7251         * inet/inet6_opt.c (add_padding): Only insert padding if npad > 0.
7252         (inet6_opt_append): Don't check extlen is big enough if extbuf
7253         is NULL.
7254         (inet6_opt_finish): Likewise.
7255         * inet/Makefile (tests): Add test-inet6_opt.
7256         * inet/test-inet6_opt.c: New test.
7257
7258         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Never
7259         reallocate the buffer, instead fail for MSG_TRUNC or for EBUSY
7260         NLMSG_ERR.  Instead use a page sized buffer.
7261         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Use page sized
7262         buffer.
7263
7264 2007-03-14  Richard Henderson  <rth@redhat.com>
7265
7266         * sysdeps/alpha/fpu/s_llround.c: New file.
7267         * sysdeps/alpha/fpu/s_llroundf.c: New file.
7268         * sysdeps/alpha/fpu/s_lround.c: New file.
7269         * sysdeps/alpha/fpu/s_lroundf.c: New file.
7270         * sysdeps/alpha/fpu/s_round.c: New file.
7271         * sysdeps/alpha/fpu/s_roundf.c: New file.
7272         * sysdeps/alpha/fpu/s_trunc.c: New file.
7273         * sysdeps/alpha/fpu/s_truncf.c: New file.
7274
7275         * sysdeps/alpha/fpu/s_ceil.c: Rewrite without branches.
7276         * sysdeps/alpha/fpu/s_ceilf.c: Likewise.
7277         * sysdeps/alpha/fpu/s_floor.c: Likewise.
7278         * sysdeps/alpha/fpu/s_floorf.c: Likewise.
7279         * sysdeps/alpha/fpu/s_rint.c: Likewise.
7280         * sysdeps/alpha/fpu/s_rintf.c: Likewise.
7281
7282         * sysdeps/alpha/fpu/s_fmax.S: New file.
7283         * sysdeps/alpha/fpu/s_fmaxf.S: New file.
7284         * sysdeps/alpha/fpu/s_fmin.S: New file.
7285         * sysdeps/alpha/fpu/s_fminf.S: New file.
7286         * sysdeps/alpha/fpu/s_isnan.c: New file.
7287         * sysdeps/alpha/fpu/s_isnanf.c: New file.
7288         * sysdeps/alpha/fpu/s_llrint.c: New file.
7289         * sysdeps/alpha/fpu/s_llrintf.c: New file.
7290         * sysdeps/alpha/fpu/s_lrint.c: New file.
7291         * sysdeps/alpha/fpu/s_lrintf.c: New file.
7292         * sysdeps/alpha/fpu/s_nearbyint.c: New file.
7293         * sysdeps/alpha/fpu/s_nearbyintf.c: New file.
7294
7295         * sysdeps/alpha/fpu/bits/mathinline.h (__floorf, __floor): Remove.
7296         (__fdimf, fdimf, __fdim, fdim): Remove.
7297         (__signbitf, __signbit, __signbitl): Use gcc builtin if available.
7298         (__isnanf, __isnan, __isnanl): New.
7299
7300 2007-03-13  Richard Henderson  <rth@redhat.com>
7301
7302         * sysdeps/ieee754/ldbl-128/Makefile: New file.
7303
7304 2007-03-13  Richard Henderson  <rth@redhat.com>
7305
7306         * sysdeps/alpha/Makefile (sysdep-CFLAGS): Force dynamic rounding.
7307         * sysdeps/alpha/fpu/bits/mathinline.h (__signbitl): New.
7308         * sysdeps/alpha/fpu/libm-test-ulps: Regenerate.
7309         * sysdeps/unix/sysv/linux/alpha/alphaev6/fpu/Implies: New file.
7310         * sysdeps/unix/sysv/linux/alpha/alphaev67/fpu/Implies: New file.
7311         * sysdeps/unix/sysv/linux/alpha/fpu/Implies: New file.
7312
7313 2007-03-13  Richard Henderson  <rth@redhat.com>
7314
7315         * elf/dl-support.c (_dl_aux_init): Honor DL_PLATFORM_AUXV.
7316         * sysdeps/unix/sysv/linux/alpha/dl-auxv.h: New file.
7317         * sysdeps/unix/sysv/linux/alpha/dl-support.c: New file.
7318         * sysdeps/unix/sysv/linux/alpha/dl-sysdep.c (__libc_alpha_cache_shape):
7319         Move to dl-auxv.h; initialize instead of extern weak.
7320         (DL_PLATFORM_AUXV): Move to dl-auxv.h; don't test for undef
7321         weak symbol.
7322         * sysdeps/unix/sysv/linux/alpha/sysconf.c (__libc_alpha_cache_shape):
7323         Extern instead of initialized.
7324
7325 2007-03-13  Richard Henderson  <rth@redhat.com>
7326
7327         * sysdeps/unix/sysv/linux/alpha/sigsuspend.S: Add support for
7328         __sigsuspend_nocancel.
7329
7330 2007-03-06  Ulrich Drepper  <drepper@redhat.com>
7331
7332         * sysdeps/posix/getaddrinfo.c (get_scope): Correct test for
7333         172.16/12 address range.
7334
7335 2007-03-02  Jakub Jelinek  <jakub@redhat.com>
7336
7337         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Retry with
7338         a new netlink socket if NLMSG_ERR -EBUSY is seen after some MSG_TRUNC
7339         message.
7340
7341 2007-03-01  Jakub Jelinek  <jakub@redhat.com>
7342
7343         [BZ #4069]
7344         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Check for NaN
7345         earlier.
7346         * math/libm-test.inc (pow_test): Add more tests involving NaNs.
7347
7348         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Avoid invalid exception
7349         for x qNaN and y either +-inf or non-integer value.
7350         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Likewise.
7351         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.
7352         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
7353
7354 2007-02-10  Mike Frysinger  <vapier@gentoo.org>
7355
7356         * sysdeps/unix/sysv/linux/sh/Makefile: Remove sys/io.h
7357         from sysdep_headers.
7358
7359 2007-02-28  Jakub Jelinek  <jakub@redhat.com>
7360
7361         * time/tzfile.c (find_transition): Instead of a linear search try to
7362         guess the transition index, use a linear search if the result is at
7363         most 10 transitions away from the guess or binary search otherwise.
7364
7365 2007-02-27  Jakub Jelinek  <jakub@redhat.com>
7366
7367         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Fix
7368         memory reallocation.
7369
7370 2007-02-21  Ulrich Drepper  <drepper@redhat.com>
7371
7372         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Add branch predictions
7373         and fix some typos.
7374         Optimize use of TOLOWER.
7375
7376         [BZ #3325]
7377         * sysdeps/i386/fpu/e_fmodf.S: Revert last changes, keep using fprem.
7378         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
7379         * sysdeps/i386/fpu/e_fmod.S: Likewise.
7380
7381         [BZ #3458]
7382         * sysdeps/unix/sysv/linux/posix_madvise.c: New file.
7383         * sysdeps/unix/sysv/linux/syscalls.list: Remove posix_madvise entry.
7384
7385         [BZ #4076]
7386         * io/ftw.c (ftw_startup): Handle special case of FTW_CHDIR in /.
7387         (open_dir_stream): Likewise.
7388         * io/Makefile (tests): Add bug-ftw5.
7389         * io/bug-ftw5.c: New file.
7390
7391         * nscd/hstcache.c (cache_addhst): Remove unnecessary conditional.
7392         * nscd/servicescache.c (cache_addserv): Likewise.
7393
7394         * nscd/grpcache.c (cache_addgr): In case a record changed on
7395         refresh, adjust key_copy.
7396
7397         [BZ #4074]
7398         * nscd/pwdcache.c (cache_addpw): In case a record changed on
7399         refresh, adjust key_copy.
7400
7401         [BZ #4070]
7402         * stdio-common/printf_fp.c (___printf_fp): Handle a few more
7403         special cases.
7404         * stdio-common/tfformat.c (sprint_doubles): Some more tests.
7405
7406 2007-02-19  Ulrich Drepper  <drepper@redhat.com>
7407
7408         * stdio-common/printf_fp.c (___printf_fp): Cleanups and minor
7409         optimization.
7410
7411         * stdio-common/vfscanf.c: Small cleanups throughout.
7412
7413 2007-02-18  Ulrich Drepper  <drepper@redhat.com>
7414
7415         [BZ #3325]
7416         * sysdeps/i386/fpu/e_fmodf.S: Use fprem1 instead of fprem.
7417         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
7418         * sysdeps/i386/fpu/e_fmod.S: Likewise.
7419         Patch by Jared Casper <jaredcasper@gmail.com>.
7420
7421         * sysdeps/unix/closedir.c: Outside libc don't use locking.
7422         * sysdeps/unix/opendir.c: Likewise.
7423         * sysdeps/unix/readdir.c: Likewise.
7424
7425         [BZ #2211]
7426         * stdio-common/vfscanf.c: Handle localized digits etc for floating
7427         point numbers.
7428         Patch mostly by Hamed Malek <hamed@farsiweb.info>.
7429
7430         * stdio-common/vfscanf.c: Fix problems in width accounting.
7431         * stdio-common/tst-sscanf.c (double_tests): New tests.
7432         (main): Hook them up.
7433
7434         * stdio-common/vfscanf.c: Remove unused WIDTH handling.
7435         More simplifications of floating-point reader.
7436
7437         * stdio-common/Makefile (tests): Add tst-swscanf.
7438         * stdio-common/tst-sscanf.c: Make tests usable for swscanf
7439         testing.
7440         * stdio-common/tst-swscanf.c: New file.
7441
7442 2007-02-17  Ulrich Drepper  <drepper@redhat.com>
7443
7444         [BZ #2633]
7445         * libio/stdio.h: Define struct _IO_FILE in global namespace.
7446         * setjmp/setjmp.h: Define __jmp_buf_tag in global namespace.
7447         Remove using for __jmp_buf_tag.
7448         * locale/locale.h (struct lconv): Also define in std namespace.
7449         * wcsmbs/wchar.h: Move using declaration for tm out of namespace.
7450
7451         [BZ #3842]
7452         * sysdeps/posix/euidaccess.c [_LIBC] (euidaccess): Remove shortcut
7453         using __libc_enable_secure.
7454
7455         [BZ #3818]
7456         * sysdeps/unix/sysv/linux/sys/acct.h (struct acct_v3): Define.
7457
7458         [BZ #3745]
7459         * locale/programs/ld-collate.c (handle_ellipsis): Fix generation
7460         of names for ellipsises.
7461
7462         [BZ #3348]
7463         * malloc/memusage.sh: Cleanups.
7464         * debug/xtrace.sh: Quoting and trap changes.
7465
7466 2007-02-16  Ulrich Drepper  <drepper@redhat.com>
7467
7468         * locale/iso-3166.def: Add Jersey, Guernsey, and Isle Of Man entries.
7469
7470         * locale/iso-3166.def: Update entry for Serbia.
7471         * locale/iso-4217.def: Define RSD, remove CSD.
7472
7473         * sysdeps/x86_64/bits/atomic.h: One more change, this time for 16-
7474         and 64-bit operations.
7475
7476         [BZ #4040]
7477         * sysdeps/i386/i486/bits/atomic.h: One more change, this time for
7478         16-bit operations.
7479
7480         * nscd/nscd.c (parse_opt): One more conversion to use send instead
7481         of writev.
7482
7483 2007-02-15  Ulrich Drepper  <drepper@redhat.com>
7484
7485         [BZ #3991]
7486         * assert/assert.h (assert): Simplify.
7487         (assert_perror): Likewise.
7488         Patch by Israel G. Lugo <ilugo@bridonsecurity.com>.
7489
7490         * nscd/nscd_helper.c (open_socket): Don't send padding bytes from
7491         reqdata.
7492
7493         * sysdeps/unix/sysv/linux/x86_64/send.c (__libc_send): Cosmetic
7494         change: don't pass NULL in place of an integer.
7495
7496 2007-02-02  Bruno Haible  <bruno@clisp.org>
7497
7498         [BZ #3954]
7499         * iconvdata/ksc5601.c (__ksc5601_sym_to_ucs, __ksc5601_sym_from_ucs):
7500         Add mapping for U+327E.
7501         * iconvdata/ksc5601.h (KSC5601_SYMBOL): Increment.
7502         * iconvdata/johab.c (BODY for FROM_LOOP, BODY for TO_LOOP): Enable
7503         mapping of 0xD9 0xE8.
7504         * iconvdata/uhc.c (BODY for FROM_LOOP, BODY for TO_LOOP): Disable
7505         mapping of U+327E.
7506         Reported by Jungshik Shin <jungshik@google.com>.
7507
7508         [BZ #3955]
7509         * iconvdata/johab.c (BODY for FROM_LOOP, BODY for TO_LOOP): Enable
7510         mapping of 0xD9 0xE6 and of 0xD9 0xE7.
7511         Reported by Jungshik Shin <jungshik@google.com>.
7512
7513 2007-02-14  Ulrich Drepper  <drepper@redhat.com>
7514
7515         * sysdeps/x86_64/bits/atomic;h: Fix asm parameters for some
7516         byte variants.
7517
7518         [BZ #4040]
7519         * sysdeps/i386/i486/bits/atomic.h: Fix asm parameters for some
7520         byte variants.  Patch mostly be tom@tommay.net.
7521
7522 2007-02-14  Jakub Jelinek  <jakub@redhat.com>
7523
7524         [BZ #3996]
7525         * posix/glob.c (attribute_hidden): Define if not defined.
7526         (glob): Unescape dirname, filename or username when needed and not
7527         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
7528         is NULL.  Handle unescaped [ in pattern without closing ].
7529         Don't pass GLOB_CHECK down to recursive glob for directories.
7530         (__glob_pattern_type): New function.
7531         (__glob_pattern_p): Implement using __glob_pattern_type.
7532         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
7533         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
7534         Remove unreachable code.
7535         * posix/globtest.sh: Add a couple of new tests.
7536
7537 2007-02-13  Ulrich Drepper  <drepper@redhat.com>
7538
7539         * po/ru.po: Update from translation team.
7540
7541 2007-02-12  Jakub Jelinek  <jakub@redhat.com>
7542
7543         * sysdeps/i386/bits/byteswap.h (__bswap_32): Add __amdfam10__
7544         to the list of i486+ CPUs.
7545         * sysdeps/x86_64/bits/byteswap.h (__bswap_32): Likewise.
7546
7547 2007-02-12  Ulrich Drepper  <drepper@redhat.com>
7548
7549         * elf/rtld.c (RESOLVE_MAP): Always return bootstrap_map reference.
7550         * elf/Makefile ($(objpfx)ld.so): Check that ld.so has no undefined
7551         references.
7552
7553 2007-02-09  Ulrich Drepper  <drepper@redhat.com>
7554
7555         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Remove incorrect comment.
7556
7557         * resolv/res_init.c (res_setoptions): Recognize edns0 option.
7558         * resolv/res_mkquery.c: Define __res_nopt.
7559         * resolv/res_query.c (__libc_res_nquery): If RES_USE_EDNS0 is set
7560         try adding EDNS0 record.
7561         * resolv/res_send.c (send_dg): If request failed with FORMERR and
7562         EDNS0 record was send make sure we don't try it again.
7563         * resolv/resolv.h: Define RES_F_EDNS0ERR and RES_USE_EDNS0.
7564         * include/resolv.h: Declare __res_nopt.
7565
7566 2007-02-08  Jakub Jelinek  <jakub@redhat.com>
7567
7568         [BZ #3944]
7569         * time/strptime_l.c (__strptime_internal): Set have_mon for
7570         %b/%B/%h.  Set have_mon and have_mday if tm_mon and tm_mday
7571         have been computed from tm_yday and tm_year.  Don't crash
7572         in day_of_the_week or day_of_the_year if not have_mon
7573         and tm_mon contains bogus value.
7574         * time/Makefile (tests): Add tst-strptime3.
7575         * time/tst-strptime3.c: New test.
7576
7577 2007-02-05  Jakub Jelinek  <jakub@redhat.com>
7578
7579         [BZ #3957]
7580         * posix/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
7581         bit for RE_HAT_LISTS_NOT_NEWLINE.
7582         (build_charclass_op): Remove bogus comment.
7583         * posix/Makefile (tests): Add bug-regex27 and bug-regex28.
7584         * posix/bug-regex27.c: New test.
7585         * posix/bug-regex28.c: New test.
7586
7587 2007-02-03  Ulrich Drepper  <drepper@redhat.com>
7588
7589         * po/sv.po: Update from translation team.
7590
7591 2007-02-02  Ulrich Drepper  <drepper@redhat.com>
7592
7593         * nscd/nscd_helper.c (open_socket): Minor size optimization.
7594
7595 2007-02-02  Jakub Jelinek  <jakub@redhat.com>
7596
7597         * include/locale.h (__uselocale): Add libc_hidden_proto.
7598         * locale/uselocale.c (__uselocale): Add libc_hidden_def.
7599
7600         * nscd/nscd_helper.c (open_socket): Use __gettimeofday instead of
7601         gettimeofday.
7602
7603 2007-02-01  Ulrich Drepper  <drepper@redhat.com>
7604
7605         * sysdeps/unix/sysv/linux/i386/sysdep.h (PTR_MANGLE): Roll value before
7606         returning.
7607         (PTR_DEMANGLE): Real definition now that it's not the same as
7608         PRT_MANGLE anymore.
7609         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
7610
7611         * string/strerror_l.c: New file.
7612         * string/Makefile (routines): Add strerror_l.
7613         * string/string.h: Declare strerror_l.
7614         * string/Versions: Export strerror_l for GLIBC_2.6.
7615
7616 2007-01-31  Ulrich Drepper  <drepper@redhat.com>
7617
7618         * nscd/nscd_helper.c (open_socket): Now takes request type and key
7619         as parameter.  Construct request record.  Try sending request
7620         before the first poll use, it usually succeeds.  Adjust all
7621         callers.
7622         * nscd/nscd-client.h: Define MAXKEYLEN.
7623         * nscd/connections.c (nscd_run): Don't define MAXKEYLEN here.
7624
7625 2007-01-31  Jakub Jelinek  <jakub@redhat.com>
7626
7627         * nscd/nscd-client.h (__nscd_cache_search): Remove const qualifier
7628         from return value.
7629         * nscd/nscd_helper.c: Include string.h.
7630         (__nscd_cache_search): Remove const qualifier from return value.
7631         On strict alignment architectures check hash entry and data head
7632         alignment.
7633         * nscd/nscd_getpw_r.c (nscd_getpw_r): Don't crash or fail because
7634         mmapped data during GC cycle contains garbage.  If
7635         __nscd_drop_map_ref fails, decrement mapped->counter when returning
7636         error or if retrying with NO_MAPPING, only __nscd_unmap if counter
7637         dropped to 0.
7638         * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
7639         * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
7640         * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
7641         * nscd/nscd_getai.c (__nscd_getai): Likewise.
7642         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
7643
7644 2007-01-30  Ulrich Drepper  <drepper@redhat.com>
7645
7646         * misc/hsearch_r.c (hdestroy_r): Remove unnecessary test.
7647
7648 2007-01-26  Ulrich Drepper  <drepper@redhat.com>
7649
7650         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Use register
7651         names not numbers in cfi_*.
7652
7653 2007-01-26  Andreas Jaeger  <aj@suse.de>
7654
7655         * sysdeps/unix/sysv/linux/sys/personality.h (ADDR_NO_RANDOMIZE,
7656         ADDR_LIMIT_3GB, PER_LINUX_32BIT, PER_LINUX32_3GB): Add.
7657         Correct values of PER_HPUX and PER_OSF4.
7658
7659 2007-01-24  Ulrich Drepper  <drepper@redhat.com>
7660
7661         * elf/dl-minimal.c: Undefine _itoa first.
7662         * stdio-common/_itoa.h: Define _itoa and _fitoa for 64-bit platforms.
7663         * malloc/mtrace.c: Revert last change.
7664         * posix/wordexp.c: Likewise.
7665
7666 2007-01-24  Jakub Jelinek  <jakub@redhat.com>
7667
7668         * sysdeps/i386/bits/byteswap.h (__bswap_32): Add __nocona__, __core2__
7669         and __geode__ to the list of i486+ CPUs.
7670         * sysdeps/x86_64/bits/byteswap.h (__bswap_32): Likewise.
7671
7672 2007-01-23  Ulrich Drepper  <drepper@redhat.com>
7673
7674         * stdio-common/_itoa.c: Include <limits.h>.
7675         * stdio-common/_itowa.c: Likewise.
7676
7677 2007-01-22  Ulrich Drepper  <drepper@redhat.com>
7678
7679         * stdio-common/_itowa.c: Don't compile _itowa for 64-bit
7680         platforms.
7681         * stdio-common/_itoa.c: Don't compile in _itoa and _fitoa for
7682         64-bit platforms.
7683         * malloc/mtrace.c (tr_where): Use _fitoa_word instead of _fitoa if
7684         possible.
7685         * posix/wordexp.c (parse_arith): Use _itoa_word instead of _itoa
7686         if possible.
7687
7688         [BZ #3902]
7689         * stdio-common/_itoa.c (_itoa): Make sure at least a zero is emitted.
7690         * stdio-common/Makefile (tests): Add bug17.
7691         * stdio-common/bug17.c: New file.
7692
7693 2007-01-19  Ulrich Drepper  <drepper@redhat.com>
7694
7695         * iconvdata/brf.c: New file.
7696         * iconvdata/testdata/BRF: New file.
7697         * iconvdata/testdata/BRF..UTF8: New file.
7698         Contributed by Samuel Thibault <samuel.thibault@ens-lyon.org>.
7699         * iconvdata/Makefile: Add rules to build BRF.
7700         * iconvdata/TESTS: Add BRF entry.
7701         * iconvdata/gconv-modules: Likewise.
7702         * iconvdata/tst-tables.sh: Likewise.
7703
7704 2007-01-18  Anton Nikishaev  <anton.nik@gmail.com>
7705
7706         * wcsmbs/wchar.h (wcstoll): Fix comment, function returns value of
7707         type `long long int', not `long int'.
7708         (wcstoq): Likewise.
7709
7710 2007-01-18  Ulrich Drepper  <drepper@redhat.com>
7711
7712         * scripts/gen-as-const.awk: Add cast to long to avoid int promotion
7713         of values on 64-bit platforms which are too large.
7714
7715 2007-01-12  Steven Munroe  <sjmunroe@us.ibm.com>
7716             Joe Kerian  <jkerian@us.us.ibm.com>
7717
7718         [BZ #2749]
7719         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Include
7720         <math_ldbl_opt.h>.  Remove weak_alias.  Use long_double_symbol macro.
7721         (__copysignl): Use signbit() for comparison.
7722         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Correct parms for
7723         SET_LDOUBLE_WORDS64.
7724
7725         [BZ #2423, #2749]
7726         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Don't include <fenv_libc.h>.
7727         (__ceill): Remove calls to fegetround(), fesetround().
7728         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
7729         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
7730         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
7731
7732 2007-01-17  Jakub Jelinek  <jakub@redhat.com>
7733
7734         * nscd/nscd_getserv_r.c (nscd_getserv_r): Fix pastos.
7735
7736         * sysdeps/unix/sysv/linux/getdents.c (offsetof): Remove.
7737
7738 2007-01-17  Ulrich Drepper  <drepper@redhat.com>
7739
7740         * sysdeps/unix/sysv/linux/fatal-prepare.h: Use PTHFCT_CALL to
7741         demangle pointer.
7742         * csu/libc-start.c: Likewise.
7743
7744 2007-01-16  Ulrich Drepper  <drepper@redhat.com>
7745
7746         * sysdeps/posix/system.c: Remove NO_WAITPID support, it cannot
7747         really work anyway.
7748
7749 2007-01-15  Ulrich Drepper  <drepper@redhat.com>
7750
7751         * nscd/connections.c (servinfo): Renamed to reqinfo.  Change all
7752         users.
7753         (handle_request): Remove unnecessary tests.
7754
7755         * nscd/cache.c (cache_add): Record the failure to add to the cache.
7756
7757 2007-01-15  Jakub Jelinek  <jakub@redhat.com>
7758
7759         * soft-fp/op-common.h (FP_TRUNC): When truncating a NaN, clear
7760         workbits in semi-raw fraction.
7761
7762         * math/test-misc.c: Add new tests.
7763
7764 2007-01-14  Steven Munroe  <sjmunroe@us.ibm.com>
7765
7766         * math/basic-test.c: Include test-skeleton.c.
7767         (TEST_TRUNC): Define.
7768         (truncdfsf_test, trunctfsf_test, trunctfdf_test): New.
7769         (main): Rename to ...
7770         (do_test): ...this.  Run new tests.
7771         (TEST_FUNCTION): Define.
7772
7773 2006-10-05  Steven Munroe  <sjmunroe@us.ibm.com>
7774             Joe Kerian  <jkerian@us.us.ibm.com>
7775
7776         [BZ #2749]
7777         * soft-fp/op-4.h (__FP_FRAC_SUB_3, __FP_FRAC_SUB_4): Correct borrow
7778         handling for high words.
7779         * soft-fp/op-common.h (_FP_OVERFLOW_SEMIRAW): Always set inexact
7780         and overflow for infinity.
7781
7782 2007-01-15  Ulrich Drepper  <drepper@redhat.com>
7783
7784         * nscd/connections.c (handle_request): Add a __builtin_expect.
7785
7786         * nscd/connections.c (serv2db): Change type into structure which
7787         also says whether this is a request for data.  Renamed to
7788         servinfo.  All users changed.
7789         (handle_request): Much simpler test whether we should search the cache.
7790
7791         * nscd/connections.c (handle_request): Fix thinko in selinux test
7792         invocation.
7793
7794         * sysdeps/generic/ldsodefs.h: Define DL_LOOKUP_SCOPE_LOCK.
7795         * elf/dl-lookup.c (add_dependency): If scope map is locked, unlock
7796         it before getting dl_load_lock and then relock.
7797         (_dl_lookup_symbol_x): Pass flags to add_dependency.
7798         When rerunning _dl_lookup_symbol_x, compute symbol_scope again in
7799         case we unlocked the scope.
7800         * elf/dl-runtime.c (_dl_fixup): Pass DL_LOOKUP_SCOPE_LOCK to
7801         _dl_lookup_symbol_x in case we locked the scope.
7802         (_dl_profile_fixup): Likewise.
7803         * elf/dl-sym.c (do_sym): In flags passed to call_dl_lookup, also
7804         set DL_LOOKUP_SCOPE_LOCK.
7805
7806 2007-01-13  Ulrich Drepper  <drepper@redhat.com>
7807
7808         * inet/Makefile: Define CFLAGS-getsrvbynm_r.c and
7809         CFLAGS-getsrvbynpt_r.c.
7810         * nscd/getsrvbynm_r.c: New file.
7811         * nscd/getsrvbypt_r.c: New file.
7812         * nscd/nscd_getserv_r.c: New file.
7813         * nscd/servicescache.c: New file.
7814         * nscd/Makefile (routines): Add nscd_getserv_r.
7815         (nscd-modules): Add getsrvbynm_r, getsrvbypt_r, and servicescache.
7816         Define CFLAGS-servicescache.c, CFLAGS-getsrvbynm_r.c, and
7817         CFLAGS-getsrvbypt_r.c.
7818         * nscd/cache.c (prune_cache): Rewrite to get re-add function from
7819         table.  Add entries for services database.
7820         * nscd/connections.c (serv2str): Mark as const.  Add entries for
7821         services database.
7822         (dbs): Add .reset_res and servdb initialization.
7823         (serv2db): Add entries for services database.
7824         (verify_persistent_db): Accept dbnr == servdb.
7825         (invalidate_cache): Rewrite database name recognition to use a table.
7826         Call res_init() if .reset_res is set for database.
7827         (handle_request): Add code to handle services database.
7828         * nscd/gai.c: Don't define __getservbyname_r.
7829         * nscd/nscd-client.h (request_type): Remove LASTDBREQ, add
7830         GETSERVBYNAME, GETSERVBYPORT, GETFDSERV.
7831         (serv_response_header): Define.
7832         (struct datahead): Add serv_response_header member.
7833         * nscd/nscd.c (parse_opt): Rewrite parsing of -i parameter value
7834         using table.
7835         * nscd/nscd.conf: Add entries for services database.
7836         * nscd/nscd.h: Adjust declaration of dbnames and serv2str.
7837         Declare serv_iov_disabled.
7838         Declare addservbyname, readdservbyname, addservbyport, and
7839         readdservbyport.
7840         * nscd/nscd_conf.c (dbnames): Mark as const.  Add services entry.
7841         (find_db): Fix error message.
7842         * nscd/nscd_proto.h: Declare __nss_not_use_nscd_services,
7843         __nscd_getservbyname_r, and __nscd_getservbyport_r.
7844         * nscd/selinux.c (perms): Add entries for services database.
7845         * nss/Versions: Export __nss_services_lookup with GLIBC_PRIVATE.
7846         * nss/nsswitch.c (__nss_disable_nscd): Also disable services database.
7847
7848         * nscd/grpcache.c: Remove obsolete code.  Cleanups.
7849         * nscd/hstcache.c: Likewise.
7850         * nscd/pwdcache.c: Likewise.
7851
7852         * nis/nss_nis/nis-service.c (_nss_nis_getservbyname_r): Correct
7853         computation of keylen.
7854
7855         * include/string.h: Only redefine strndupa if this is really for
7856         libc code.
7857
7858 2007-01-12  Ulrich Drepper  <drepper@redhat.com>
7859
7860         * nscd/nscd_gethst_r.c: Minor cleanups.
7861
7862         * nscd/connections.c (handle_request): Check selinux permissions
7863         for all non-admin commands.
7864
7865         * sysdeps/i386/i486/bits/atomic.h: Define
7866         atomic_compare_and_exchange_val_acq,
7867         atomic_compare_and_exchange_bool_acq, and atomic_exchange_and_add
7868         using __sync_* built-ins for gcc >= 4.1.
7869         * sysdeps/x86_64/bits/atomic.h: Likewise.
7870
7871         [BZ #3840]
7872         * scripts/check-local-headers.sh: Restrict to testing .o.d, .os.d,
7873         and .oS.d files.
7874
7875 2007-01-05  Steven Munroe  <sjmunroe@us.ibm.com>
7876
7877         * stdlib/tst-makecontext.c: Include errno.h.  Change main()
7878         to do_test().  Define TEST_FUNCTION. Include test-skeleton.c.
7879         (do_test): Check errno and exit(0) if ENOSYS.
7880
7881 2007-01-11  Jakub Jelinek  <jakub@redhat.com>
7882
7883         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix handling of multi-byte
7884         thousands separators.
7885         * stdlib/Makefile: Add rules to build and run tst-strtod4.
7886         * stdlib/tst-strtod4.c: New test.
7887
7888         [BZ #3855]
7889         * stdlib/strtod_l.c (____STRTOF_INTERNAL): 0x. not followed by
7890         hexadecimal digit should accept just the initial 0.
7891         * stdlib/tst-strtod2.c (tests): New variable.
7892         (do_test): Run several tests rather than just one.
7893
7894 2007-01-11  Jakub Jelinek  <jakub@redhat.com>
7895
7896         * sysdeps/i386/soft-fp/sfp-machine.h: Remove.
7897         * sysdeps/x86_64/soft-fp/sfp-machine.h: Likewise.
7898
7899 2007-01-10  Ulrich Drepper  <drepper@redhat.com>
7900
7901         * io/fts.c: Make sure fts_cur is always valid after return from
7902         fts_read.
7903         Patch by Miloslav Trmac <mitr@redhat.com>.
7904
7905 2006-10-27  Richard Sandiford  <richard@codesourcery.com>
7906
7907         * elf/elf.h (R_MIPS_GLOB_DAT): Define.
7908         (R_MIPS_NUM): Bump by 1.
7909
7910 2007-01-03  Jakub Jelinek  <jakub@redhat.com>
7911
7912         * posix/execvp.c: Include alloca.h.
7913         (allocate_scripts_argv): Renamed to...
7914         (scripts_argv): ... this.  Don't allocate buffer here nor count
7915         arguments.
7916         (execvp): Use alloca if possible.
7917         * posix/Makefile: Add rules to build and run tst-vfork3 test.
7918         * posix/tst-vfork3.c: New test.
7919
7920 2007-01-03  Ulrich Drepper  <drepper@redhat.com>
7921
7922         * string/Makefile (tst-strxfrm2-ENV): Define.
7923         * stdlib/Makefile (tst-strtod3-ENV): Define.
7924
7925 2007-01-02  Ulrich Drepper  <drepper@redhat.com>
7926
7927         * posix/getconf.c: Update copyright year.
7928         * nss/getent.c: Likewise.
7929         * iconv/iconvconfig.c: Likewise.
7930         * iconv/iconv_prog.c: Likewise.
7931         * elf/ldconfig.c: Likewise.
7932         * catgets/gencat.c: Likewise.
7933         * csu/version.c: Likewise.
7934         * elf/ldd.bash.in: Likewise.
7935         * elf/sprof.c (print_version): Likewise.
7936         * locale/programs/locale.c: Likewise.
7937         * locale/programs/localedef.c: Likewise.
7938         * nscd/nscd.c (print_version): Likewise.
7939         * debug/xtrace.sh: Likewise.
7940         * malloc/memusage.sh: Likewise.
7941         * malloc/mtrace.pl: Likewise.
7942         * debug/catchsegv.sh: Likewise.
7943
7944 2006-12-24  Ulrich Drepper  <drepper@redhat.com>
7945
7946         * malloc/malloc.c (sYSMALLOc): Remove some unnecessary alignment
7947         attempts.
7948
7949 2006-12-23  Ulrich Drepper  <drepper@redhat.com>
7950
7951         * posix/wordexp.c: Remove some unnecessary tests.
7952
7953 2006-12-22  Gavin Romig-Koch  <gavin@redhat.com>
7954
7955         * nis/nss_compat/compat-grp.c (internal_getgrgid_r): Don't
7956         blacklist the group till after we look it up.
7957
7958 2006-12-21  Ulrich Drepper  <drepper@redhat.com>
7959
7960         * include/atomic.h (atomic_forced_read): New macro.
7961
7962 2006-12-20  SUGIOKA Toshinobu  <sugioka@itonet.co.jp>
7963
7964         * sysdeps/unix/sysv/linux/sh/bits/shm.h: New file.
7965
7966 2006-12-19  Jakub Jelinek  <jakub@redhat.com>
7967
7968         * nss/getXXbyYY_r.c: Include atomic.h.
7969         (INTERNAL (REENTRANT_NAME)): Write startp after start_fct,
7970         add atomic_write_barrier () in between.
7971
7972         * stdlib/Makefile (tests): Add tst-makecontext.
7973         * stdlib/tst-makecontext.c: New test.
7974
7975         * sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S
7976         (__makecontext): Don't realign uc_mcontext.uc_regs.
7977
7978 2006-11-28  Jakub Jelinek  <jakub@redhat.com>
7979
7980         * elf/dl-support.c: Include dl-procinfo.h.
7981         * sysdeps/powerpc/dl-procinfo.h (PPC_PLATFORM_POWER4,
7982         PPC_PLATFORM_PPC970, PPC_PLATFORM_POWER5, PPC_PLATFORM_POWER5_PLUS,
7983         PPC_PLATFORM_POWER6, PPC_PLATFORM_CELL_BE, PPC_PLATFORM_POWER6X):
7984         Define.
7985         (_dl_string_platform): Use PPC_PLATFORM_* macros instead of
7986         hardcoded constants.
7987         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_platform): Use
7988         PPC_PLATFORM_* macros for array designators.
7989
7990 2006-11-11  Steven Munroe  <sjmunroe@us.ibm.com>
7991
7992         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add 3 new cap
7993         names to the beginning.
7994         (_dl_powerpc_platforms): Add "power6x".
7995         * sysdeps/powerpc/dl-procinfo.h (_DL_HWCAP_FIRST): Decrease.
7996         (HWCAP_IMPORTANT): Add PPC_FEATURE_HAS_DFP.
7997         (_DL_PLATFORMS_COUNT): Increase.
7998         (_dl_string_platform): Handle power6x case.
7999         * sysdeps/powerpc/sysdep.h (PPC_FEATURE_PA6T, PPC_FEATURE_HAS_DFP,
8000         PPC_FEATURE_POWER6_EXT): Define.
8001         (PPC_FEATURE_POWER5, PPC_FEATURE_POWER5_PLUS): Correct Comment.
8002
8003 2006-12-18  Jakub Jelinek  <jakub@redhat.com>
8004
8005         [BZ #3747]
8006         * stdlib/jrand48_r.c (__jrand48_r): Make sure result is in the
8007         [-2^31 .. 2^31) range.
8008         * stdlib/tst-rand48.c (main): Fix expected values for 64-bit
8009         targets.
8010         * stdlib/tst-rand48-2.c: New test.
8011         * stdlib/Makefile (tests): Add tst-rand48-2.
8012
8013 2006-12-14  Jakub Jelinek  <jakub@redhat.com>
8014
8015         * misc/tst-pselect.c (do_test): Fix sigblock argument.
8016
8017 2006-12-14  Ulrich Drepper  <drepper@redhat.com>
8018
8019         * misc/tst-pselect.c (do_test): Make sure the helper process is
8020         terminating when the test is aborted.
8021
8022 2006-12-13  Ulrich Drepper  <drepper@redhat.com>
8023
8024         * sysdeps/unix/sysv/linux/bits/statvfs.h: Define ST_RELATIME.
8025         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
8026         Handle relatime mount option.
8027
8028         [BZ #2337]
8029         * libio/Makefile (tests): Add tst-setvbuf1.
8030         * libio/tst-setvbuf1.c: New file.
8031
8032 2006-12-08  Jakub Jelinek  <jakub@redhat.com>
8033
8034         [BZ #2337]
8035         * libio/genops.c (__uflow): Fix a typo.
8036         * libio/wfiledoalloc.c (_IO_wfile_doallocate): Don't stat
8037         nor set _IO_LINE_BUF bit here.  Size the wide buffer based on
8038         the narrow buffer size.
8039
8040 2006-11-24  Jakub Jelinek  <jakub@redhat.com>
8041
8042         [BZ #2337]
8043         * libio/libio.h (_IO_FLAGS2_USER_WBUF): Define.
8044         * libio/wgenops.c (_IO_wsetb, _IO_wdefault_finish): Test and set
8045         _IO_FLAGS2_USER_WBUF bit in _flags2 instead of _IO_USER_BUF bit
8046         in _flags.
8047         * libio/wstrops.c (_IO_wstr_overflow, enlarge_userbuf,
8048         _IO_wstr_finish): Likewise.
8049         * libio/wmemstream.c (open_wmemstream): Likewise.
8050         * libio/fileops.c (_IO_new_file_close_it): Call _IO_set[bgp]
8051         even for wide streams.
8052
8053 2006-12-13  Jakub Jelinek  <jakub@redhat.com>
8054
8055         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: Include
8056         kernel-features.h.
8057
8058 2006-12-11  Ulrich Drepper  <drepper@redhat.com>
8059
8060         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Parse thousand
8061         separators also if no non-zero digits found.
8062         * stdlib/Makefile (tests): Add tst-strtod3.
8063
8064 2006-12-09  Ulrich Drepper  <drepper@redhat.com>
8065
8066         [BZ #3632]
8067         * include/features.h: Fix comment about default value for
8068         _POSIX_C_SOURCE.
8069
8070         [BZ #3664]
8071         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix test to recognize
8072         empty parsed strings.
8073         * stdlib/Makefile (tests): Add tst-strtod2.
8074         * stdlib/tst-strtod2.c: New file.
8075
8076         [BZ #3673]
8077         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix exp_limit
8078         computation.
8079         * stdlib/Makefile (tests): Add tst-atof2.
8080         * stdlib/tst-atof2.c: New file.
8081
8082         [BZ #3674]
8083         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Adjust exponent value
8084         correctly if removing trailing zero of hex-float.
8085         * stdlib/Makefile (tests): Add tst-atof1.
8086         * stdlib/tst-atof1.c: New file.
8087
8088 2006-12-09  Jakub Jelinek  <jakub@redhat.com>
8089
8090         * misc/mntent_r.c (__hasmntopt): Check p[optlen] even when p == rest.
8091         Start searching for next comma at p rather than rest.
8092         * misc/Makefile (tests): Add tst-mntent2.
8093         * misc/tst-mntent2.c: New test.
8094
8095         * misc/getusershell.c (initshells): Check for integer overflows.
8096         Make strings buffer one bigger as fgets always succeeds when second
8097         argument is 1.  Don't use calloc for shells array.  Disallow
8098         / as shell.
8099
8100 2006-12-08  Ulrich Drepper  <drepper@redhat.com>
8101
8102         * malloc/memusage.c: Handle realloc with new size of zero and
8103         non-NULL pointer correctly.
8104         (me): Really write first record twice.
8105         (struct entry): Make format bi-arch safe.
8106         (dest): Write out more realloc statistics.
8107         * malloc/memusagestat.c (struct entry): Make format bi-arch safe.
8108
8109 2006-12-05  Jakub Jelinek  <jakub@redhat.com>
8110
8111         * nis/nis_subr.c (nis_getnames): Revert last change.
8112
8113 2006-12-04  Jakub Jelinek  <jakub@redhat.com>
8114
8115         * sysdeps/unix/sysv/linux/ttyname.c: Include termios.h.
8116         (ttyname): Use tcgetattr instead of isatty, don't set errno to ENOTTY.
8117         * sysdeps/unix/sysv/linux/ttyname_r.c: Include termios.h.
8118         (__ttyname_r): Use tcgetattr instead of isatty, don't set errno to
8119         ENOTTY.
8120         * io/Makefile: Add rules to build and run tst-ttyname_r test.
8121         * io/tst-ttyname_r.c: New test.
8122
8123 2006-12-03  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
8124
8125         * sysdeps/unix/sysv/linux/sh/sys/io.h: Removed.
8126
8127 2006-11-30  H.J. Lu  <hongjiu.lu@intel.com>
8128
8129         * sysdeps/i386/i686/memcmp.S: Use jump table as the base of
8130         jump table entries.
8131
8132 2006-11-30  Jan Kratochvil  <jan.kratochvil@redhat.com>
8133
8134         * sysdeps/unix/sysv/linux/i386/clone.S: Provide CFI for the outermost
8135         `clone' function to ensure proper unwinding stop of gdb.
8136         * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
8137
8138 2006-12-01  Ulrich Drepper  <drepper@redhat.com>
8139
8140         * nscd/nscd.init: Remove obsolete and commented-out -S option
8141         handling.
8142
8143 2006-11-23  Jakub Jelinek  <jakub@redhat.com>
8144
8145         [BZ #3514]
8146         * manual/string.texi (strncmp): Fix pastos from wcscmp description.
8147
8148         [BZ #3515]
8149         * manual/string.texi (strtok): Remove duplicate paragraph.
8150
8151 2006-12-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
8152
8153         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Fix compatibility with
8154         libgcc not supporting `rflags' unwinding (register # >= 17).
8155
8156 2006-11-30  Jakub Jelinek  <jakub@redhat.com>
8157
8158         * sunrpc/svc_run.c (svc_run): Set my_pollfd to new_pollfd if realloc
8159         succeeded.
8160
8161 2006-11-29  Daniel Jacobowitz  <dan@codesourcery.com>
8162             Jakub Jelinek  <jakub@redhat.com>
8163             Jan Kratochvil  <jan.kratochvil@redhat.com>
8164
8165         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (restore_rt): Add correct
8166         unwind information.
8167         * sysdeps/unix/sysv/linux/x86_64/Makefile: Provide symbols for
8168         'restore_rt' even in the 'signal' directory.
8169         * sysdeps/unix/sysv/linux/x86_64/ucontext_i.sym: Extend the regs list.
8170
8171 2006-11-27  Jakub Jelinek  <jakub@redhat.com>
8172
8173         [BZ #3559]
8174         * sunrpc/svc_run.c (svc_run): Fail instead of segfaulting if
8175         malloc crashed.  Don't allocate memory unnecessarily in each
8176         loop.
8177
8178 2006-10-21  Jakub Jelinek  <jakub@redhat.com>
8179
8180         * resolv/mapv4v6addr.h (map_v4v6_address): Fix last change.
8181
8182 2006-11-20  Ulrich Drepper  <drepper@redhat.com>
8183
8184         * resolv/mapv4v6addr.h (map_v4v6_address): Optimize a bit.
8185
8186 2006-11-18  Bruno Haible  <bruno@clisp.org>
8187
8188         * sysdeps/unix/sysv/linux/i386/getgroups.c (__getgroups): Invoke
8189         __sysconf only after having tried to call getgroups32.
8190
8191 2006-11-19  Ulrich Drepper  <drepper@redhat.com>
8192
8193         * nss/nss_files/files-hosts.c (LINE_PARSER): Support IPv6-style
8194         addresses for IPv4 queries if they can be mapped.
8195
8196 2006-11-16  Jakub Jelinek  <jakub@redhat.com>
8197
8198         * sysdeps/x86_64/fpu/s_copysignf.S (__copysignf): Switch to .text.
8199         * sysdeps/x86_64/fpu/s_copysign.S (__copysign): Likewise.
8200         (signmask): Add .size directive.
8201         (othermask): Add .type directive.
8202
8203 2006-11-14  Ulrich Drepper  <drepper@redhat.com>
8204
8205         * po/nl.po: Update from translation team.
8206
8207         * timezone/zdump.c: Redo fix for BZ #3137.
8208
8209 2006-11-14  Jakub Jelinek  <jakub@redhat.com>
8210
8211         * nss/nss_files/files-alias.c (get_next_alias): Set line back
8212         to first_unused after parsing :include: file.
8213
8214 2006-11-10  Ulrich Drepper  <drepper@redhat.com>
8215
8216         * timezone/africa: Update from tzdata2006o.
8217         * timezone/antarctica: Likewise.
8218         * timezone/asia: Likewise.
8219         * timezone/australasia: Likewise.
8220         * timezone/backward: Likewise.
8221         * timezone/europe: Likewise.
8222         * timezone/iso3166.tab: Likewise.
8223         * timezone/northamerica: Likewise.
8224         * timezone/southamerica: Likewise.
8225         * timezone/zone.tab: Likewise.
8226
8227         * time/tzfile.c (__tzfile_read): Extend to handle new file format
8228         on machines with 64-bit time_t.
8229
8230         * timezone/checktab.awk: Update from tzcode2006o.
8231         * timezone/ialloc.c: Likewise.
8232         * timezone/private.h: Likewise.
8233         * timezone/scheck.c: Likewise.
8234         * timezone/tzfile.h: Likewise.
8235         * timezone/tzselect.ksh: Likewise.
8236         * timezone/zdump.c: Likewise.
8237         * timezone/zic.c: Likewise.
8238
8239         [BZ #3483]
8240         * elf/ldconfig.c (main): Call setlocale and textdomain.
8241         Patch mostly by Benno Schulenberg <bensberg@justemail.net>.
8242
8243         [BZ #3480]
8244         * manual/argp.texi: Fix typos.
8245         * manual/charset.texi: Likewise.
8246         * manual/errno.texi: Likewise.
8247         * manual/filesys.texi: Likewise.
8248         * manual/lang.texi: Likewise.
8249         * manual/maint.texi: Likewise.
8250         * manual/memory.texi: Likewise.
8251         * manual/message.texi: Likewise.
8252         * manual/resource.texi: Likewise.
8253         * manual/search.texi: Likewise.
8254         * manual/signal.texi: Likewise.
8255         * manual/startup.texi: Likewise.
8256         * manual/stdio.texi: Likewise.
8257         * manual/sysinfo.texi: Likewise.
8258         * manual/syslog.texi: Likewise.
8259         * manual/time.texi: Likewise.
8260         Patch by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
8261
8262         [BZ #3465]
8263         * sunrpc/clnt_raw.c: Minimal message improvements.
8264         * sunrpc/pm_getmaps.c: Likewise.
8265         * nis/nss_nisplus/nisplus-publickey.c: Likewise.
8266         * nis/nis_print_group_entry.c: Likewise.
8267         * locale/programs/repertoire.c: Likewise.
8268         * locale/programs/charmap.c: Likewise.
8269         * malloc/memusage.sh: Likewise.
8270         * elf/dl-deps.c: Likewise.
8271         * locale/programs/ld-collate.c: Likewise.
8272         * libio/vswprintf.c: Likewise.
8273         * malloc/memusagestat.c: Likewise.
8274         * sunrpc/auth_unix.c: Likewise.
8275         * sunrpc/rpc_main.c: Likewise.
8276         * nscd/cache.c: Likewise.
8277         * locale/programs/repertoire.c: Unify output messages.
8278         * locale/programs/charmap.c: Likewise.
8279         * locale/programs/ld-ctype.c: Likewise.
8280         * locale/programs/ld-monetary.c: Likewise.
8281         * locale/programs/ld-numeric.c: Likewise.
8282         * locale/programs/ld-time.c: Likewise.
8283         * elf/ldconfig.c: Likewise.
8284         * nscd/selinux.c: Likewise.
8285         * elf/cache.c: Likewise.
8286         Patch mostly by Benno Schulenberg <bensberg@justemail.net>.
8287
8288         [BZ #3451]
8289         * sysdeps/i386/fpu/bits/mathinline.h (floor): Make rounding mode
8290         change atomic.
8291         (ceil): Likewise.
8292
8293 2006-11-10  Jakub Jelinek  <jakub@redhat.com>
8294
8295         * string/strxfrm_l.c (STRXFRM): Fix trailing \1 optimization
8296         if N is one bigger than return value.
8297         * string/tst-strxfrm2.c (do_test): Also test strxfrm with l1 + 1
8298         and l1 last arguments, if buf is defined, verify the return value
8299         equals to strlen (buf) and verify no byte beyond passed length
8300         is modified.
8301
8302 2006-11-10  Ulrich Drepper  <drepper@redhat.com>
8303
8304         * po/sv.po: Update from translation team.
8305
8306 2006-11-09  Ulrich Drepper  <drepper@redhat.com>
8307
8308         * sysdeps/unix/sysv/linux/x86_64/sysconf.c (intel_check_word): Add
8309         noinline attribute.
8310
8311 2006-11-10  Jakub Jelinek  <jakub@redhat.com>
8312
8313         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Add
8314         noinline attribute.
8315
8316         * sysdeps/gnu/siglist.c (__old_sys_siglist, __old_sys_sigabbrev):
8317         Use __new_sys_siglist instead of _sys_siglist_internal as
8318         second macro argument.
8319         (_old_sys_siglist): Use declare_symbol_alias macro instead of
8320         strong_alias.
8321
8322 2006-11-09  Ulrich Drepper  <drepper@redhat.com>
8323
8324         [BZ #3493]
8325         * posix/unistd.h (sysconf): Remove const attribute.
8326
8327         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Fix test for
8328         temporary or deprecated addresses.
8329         Patch by Sridhar Samudrala <sri@us.ibm.com>.
8330
8331         * string/Makefile (tests): Add tst-strxfrm2.
8332         * string/tst-strxfrm2.c: New file.
8333
8334 2006-10-09  Jakub Jelinek  <jakub@redhat.com>
8335
8336         * elf/dl-debug.c (_dl_debug_initialize): Check r->r_map for 0
8337         rather than r->r_brk.
8338
8339 2006-11-08  Jakub Jelinek  <jakub@redhat.com>
8340
8341         * string/strxfrm_l.c (STRXFRM): Do the trailing \1 removal
8342         optimization even if needed > n.
8343
8344         * elf/dl-load.c (decompose_rpath): Return bool rather than void.
8345         If l->l_name is on inhibit_rpath list, set sps->dirs to -1 and
8346         return false, otherwise return true.
8347         (cache_rpath): Return decompose_rpath return value.
8348
8349 2006-11-07  Jakub Jelinek  <jakub@redhat.com>
8350
8351         * include/libc-symbols.h (declare_symbol): Rename to...
8352         (declare_symbol_alias): ... this.  Add ORIGINAL argument, imply
8353         strong_alias (ORIGINAL, SYMBOL) in asm to make sure it preceedes
8354         .size directive.
8355         * sysdeps/gnu/errlist-compat.awk: Adjust for declare_symbol_alias
8356         changes.
8357         * sysdeps/gnu/siglist.c: Likewise.
8358
8359 2006-11-03  Steven Munroe  <sjmunroe@us.ibm.com>
8360
8361         * sysdeps/powerpc/fpu/bits/mathinline.h
8362         [__LIBC_INTERNAL_MATH_INLINES]: Moved to ...
8363         * sysdeps/powerpc/fpu/math_private.h: ...here.  New file.
8364
8365 2006-11-05  Ulrich Drepper  <drepper@redhat.com>
8366
8367         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
8368         Update handling of cache descriptor 0x49 for new models.
8369         * sysdeps/unix/sysv/linux/x86_64/sysconf.c (intel_check_word):
8370         Likewise.
8371
8372 2006-11-02  Jakub Jelinek  <jakub@redhat.com>
8373
8374         * malloc/memusage.c (dest): Reset not_me back to false after
8375         printing statistics.
8376
8377 2006-11-02  Ulrich Drepper  <drepper@redhat.com>
8378
8379         * configure.in: Work around ld --help change and avoid -z relro
8380         test completely if the architecture doesn't care about security.
8381
8382 2006-11-01  Ulrich Drepper  <drepper@redhat.com>
8383
8384         * po/sv.po: Update from translation team.
8385
8386 2006-10-31  Ulrich Drepper  <drepper@redhat.com>
8387
8388         * stdlib/atexit.c (atexit): Don't mark as hidden when used to
8389         generate compatibility version.
8390
8391 2006-10-29  Ulrich Drepper  <drepper@redhat.com>
8392
8393         * configure.in: Relax -z relro requirement a bit.
8394
8395         * po/sv.po: Update from translation team.
8396
8397 2006-10-29  Jakub Jelinek  <jakub@redhat.com>
8398
8399         * elf/dl-sym.c (do_sym): Use RTLD_SINGLE_THREAD_P.
8400         * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Likewise.
8401         * elf/dl-close.c (_dl_close_worker): Likewise.
8402         * elf/dl-open.c (_dl_open_worker): Likewise.
8403         * sysdeps/generic/sysdep-cancel.h (RTLD_SINGLE_THREAD_P): Define.
8404
8405 2006-10-27  Ulrich Drepper  <drepper@redhat.com>
8406
8407         * configure.in: Require assembler support for visibility, compiler
8408         support for visibility and aliases, linker support for various -z
8409         options.
8410         * Makeconfig: Remove conditional code which now is unnecessary.
8411         * config.h.in: Likewise.
8412         * config.make.in: Likewise.
8413         * dlfcn/Makefile: Likewise.
8414         * elf/Makefile: Likewise.
8415         * elf/dl-load.c: Likewise.
8416         * elf/rtld.c: Likewise.
8417         * include/libc-symbols.h: Likewise.
8418         * include/stdio.h: Likewise.
8419         * io/Makefile: Likewise.
8420         * io/fstat.c: Likewise.
8421         * io/fstat64.c: Likewise.
8422         * io/fstatat.c: Likewise.
8423         * io/fstatat64.c: Likewise.
8424         * io/lstat.c: Likewise.
8425         * io/lstat64.c: Likewise.
8426         * io/mknod.c: Likewise.
8427         * io/mknodat.c: Likewise.
8428         * io/stat.c: Likewise.
8429         * io/stat64.c: Likewise.
8430         * libio/stdio.c: Likewise.
8431         * nscd/Makefile: Likewise.
8432         * stdlib/Makefile: Likewise.
8433         * stdlib/atexit.c: Likewise.
8434         * sysdeps/generic/ldsodefs.h: Likewise.
8435         * sysdeps/i386/dl-machine.h: Likewise.
8436         * sysdeps/i386/sysdep.h: Likewise.
8437         * sysdeps/i386/i686/memcmp.S: Likewise.
8438         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
8439         * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
8440         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
8441
8442         * Makerules: USE_TLS support is now default.
8443         * tls.make.c: Likewise.
8444         * csu/Versions: Likewise.
8445         * csu/libc-start.c: Likewise.
8446         * csu/libc-tls.c: Likewise.
8447         * csu/version.c: Likewise.
8448         * dlfcn/dlinfo.c: Likewise.
8449         * elf/dl-addr.c: Likewise.
8450         * elf/dl-cache.c: Likewise.
8451         * elf/dl-close.c: Likewise.
8452         * elf/dl-iteratephdr.c: Likewise.
8453         * elf/dl-load.c: Likewise.
8454         * elf/dl-lookup.c: Likewise.
8455         * elf/dl-object.c: Likewise.
8456         * elf/dl-open.c: Likewise.
8457         * elf/dl-reloc.c: Likewise.
8458         * elf/dl-support.c: Likewise.
8459         * elf/dl-sym.c: Likewise.
8460         * elf/dl-sysdep.c: Likewise.
8461         * elf/dl-tls.c: Likewise.
8462         * elf/ldconfig.c: Likewise.
8463         * elf/rtld.c: Likewise.
8464         * elf/tst-tls-dlinfo.c: Likewise.
8465         * elf/tst-tls1.c: Likewise.
8466         * elf/tst-tls10.h: Likewise.
8467         * elf/tst-tls14.c: Likewise.
8468         * elf/tst-tls2.c: Likewise.
8469         * elf/tst-tls3.c: Likewise.
8470         * elf/tst-tls4.c: Likewise.
8471         * elf/tst-tls5.c: Likewise.
8472         * elf/tst-tls6.c: Likewise.
8473         * elf/tst-tls7.c: Likewise.
8474         * elf/tst-tls8.c: Likewise.
8475         * elf/tst-tls9.c: Likewise.
8476         * elf/tst-tlsmod1.c: Likewise.
8477         * elf/tst-tlsmod13.c: Likewise.
8478         * elf/tst-tlsmod13a.c: Likewise.
8479         * elf/tst-tlsmod14a.c: Likewise.
8480         * elf/tst-tlsmod2.c: Likewise.
8481         * elf/tst-tlsmod3.c: Likewise.
8482         * elf/tst-tlsmod4.c: Likewise.
8483         * elf/tst-tlsmod5.c: Likewise.
8484         * elf/tst-tlsmod6.c: Likewise.
8485         * include/errno.h: Likewise.
8486         * include/link.h: Likewise.
8487         * include/tls.h: Likewise.
8488         * locale/global-locale.c: Likewise.
8489         * locale/localeinfo.h: Likewise.
8490         * malloc/arena.c: Likewise.
8491         * malloc/hooks.c: Likewise.
8492         * malloc/malloc.c: Likewise.
8493         * resolv/Versions: Likewise.
8494         * sysdeps/alpha/dl-machine.h: Likewise.
8495         * sysdeps/alpha/libc-tls.c: Likewise.
8496         * sysdeps/generic/ldsodefs.h: Likewise.
8497         * sysdeps/generic/tls.h: Likewise.
8498         * sysdeps/i386/dl-machine.h: Likewise.
8499         * sysdeps/ia64/dl-machine.h: Likewise.
8500         * sysdeps/ia64/libc-tls.c: Likewise.
8501         * sysdeps/mach/hurd/fork.c: Likewise.
8502         * sysdeps/mach/hurd/i386/tls.h: Likewise.
8503         * sysdeps/powerpc/powerpc32/dl-machine.c: Likwise.
8504         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
8505         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
8506         * sysdeps/s390/libc-tls.c: Likewise.
8507         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
8508         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
8509         * sysdeps/sh/dl-machine.h: Likewise.
8510         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
8511         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
8512         * sysdeps/x86_64/dl-machine.h: Likewise.
8513
8514         * elf/dl-close.c (_dl_close_worker): Renamed from _dl_close and
8515         split out locking and parameter checking.
8516         (_dl_close): Call _dl_close_worker after locking and checking.
8517         * elf/dl-open.c (_dl_open): Call _dl_close_worker instead of
8518         _dl_close.
8519         * elf/Makefile: Add rules to build and run tst-thrlock.
8520         * elf/tst-thrlock.c:  New file.
8521
8522         [BZ #3426]
8523         * stdlib/stdlib.h: Adjust comment for canonicalize_file_name to
8524         reality.
8525
8526         [BZ #3429]
8527         * elf/dl-open.c (dl_open_worker): Keep holding dl_load_lock until
8528         we are sure we do not need it anymore for _dl_close.  Also move
8529         the asserts inside the lock region.
8530         Patch mostly by Suzuki <suzuki@in.ibm.com>.
8531
8532 2006-10-27  Jakub Jelinek  <jakub@redhat.com>
8533
8534         * elf/dl-lookup.c (_dl_debug_bindings): Remove unused symbol_scope
8535         argument.
8536         (_dl_lookup_symbol_x): Adjust caller.
8537
8538         * sysdeps/generic/ldsodefs.h (struct link_namespaces): Remove
8539         _ns_global_scope.
8540         * elf/rtld.c (dl_main): Don't initialize _ns_global_scope.
8541
8542         * elf/dl-libc.c: Revert l_scope name changes.
8543         * elf/dl-load.c: Likewise.
8544         * elf/dl-object.c: Likewise.
8545         * elf/rtld.c: Likewise.
8546         * elf/dl-close.c (_dl_close): Likewise.
8547         * elf/dl-open.c (dl_open_worker): Likewise.  If not SINGLE_THREAD_P,
8548         always use __rtld_mrlock_{change,done}.  Always free old scope list
8549         here if not l_scope_mem.
8550         * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Revert l_scope name
8551         change.  Never free scope list here.  Just __rtld_mrlock_lock before
8552         the lookup and __rtld_mrlock_unlock it after the lookup.
8553         * elf/dl-sym.c: Likewise.
8554         * include/link.h (struct r_scoperec): Remove.
8555         (struct link_map): Replace l_scoperec with l_scope, l_scoperec_mem
8556         with l_scope_mem and l_scoperec_lock with l_scope_lock.
8557
8558 2006-10-25  Ulrich Drepper  <drepper@redhat.com>
8559
8560         * sysdeps/gnu/netinet/tcp.h: Define TCP_CONGESTION.
8561
8562 2006-10-18  Ulrich Drepper  <drepper@redhat.com>
8563
8564         * configure.in: Disable building profile libraries by default.
8565
8566 2006-10-17  Jakub Jelinek  <jakub@redhat.com>
8567
8568         * sunrpc/xdr_mem.c (xdrmem_setpos): Don't compare addresses
8569         as signed longs, check for x_base + pos overflow.
8570         * sunrpc/Makefile (tests): Add tst-xdrmem2.
8571         * sunrpc/tst-xdrmem2.c: New test.
8572
8573 2006-10-18  Ulrich Drepper  <drepper@redhat.com>
8574
8575         * elf/dl-lookup.c (_dl_lookup_symbol_x): Add warning to
8576         _dl_lookup_symbol_x code.
8577
8578 2006-10-17  Jakub Jelinek  <jakub@redhat.com>
8579
8580         * elf/dl-runtime.c: Include sysdep-cancel.h.
8581         (_dl_fixup, _dl_profile_fixup): Use __rtld_mrlock_* and
8582         scoperec->nusers only if !SINGLE_THREAD_P.  Use atomic_*
8583         instead of catomic_* macros.
8584         * elf/dl-sym.c: Include sysdep-cancel.h.
8585         (do_sym): Use __rtld_mrlock_* and scoperec->nusers only
8586         if !SINGLE_THREAD_P.  Use atomic_* instead of catomic_* macros.
8587         * elf/dl-close.c: Include sysdep-cancel.h.
8588         (_dl_close): Use __rtld_mrlock_* and scoperec->nusers only
8589         if !SINGLE_THREAD_P.  Use atomic_* instead of catomic_* macros.
8590         * elf/dl-open.c: Include sysdep-cancel.h.
8591         (dl_open_worker): Use __rtld_mrlock_* and scoperec->nusers only
8592         if !SINGLE_THREAD_P.  Use atomic_* instead of catomic_* macros.
8593
8594 2006-10-17  Jakub Jelinek  <jakub@redhat.com>
8595
8596         [BZ #3313]
8597         * malloc/malloc.c (malloc_consolidate): Set maxfb to address of last
8598         fastbin rather than end of fastbin array.
8599
8600 2006-10-18  Ulrich Drepper  <drepper@redhat.com>
8601
8602         * sysdeps/i386/i486/bits/atomic.h (catomic_decrement): Use correct
8603         body macro.
8604         * sysdeps/x86_64/bits/atomic.h
8605         (__arch_c_compare_and_exchange_val_64_acq): Add missing casts.
8606         (catomic_decrement): Use correct body macro.
8607
8608 2006-10-17  Jakub Jelinek  <jakub@redhat.com>
8609
8610         * include/atomic.h: Add a unique prefix to all local variables
8611         in macros.
8612         * csu/tst-atomic.c (do_test): Test also catomic_* macros.
8613
8614 2006-10-16  Ulrich Drepper  <drepper@redhat.com>
8615
8616         [BZ #3369]
8617         * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Fix typos in rules 4
8618         and 7.
8619
8620 2006-10-14  Ulrich Drepper  <drepper@redhat.com>
8621
8622         * resolv/arpa/nameser.h: Document that ns_t_a6 is deprecated.
8623
8624 2006-10-13  Ulrich Drepper  <drepper@redhat.com>
8625
8626         [BZ #3313]
8627         * malloc/malloc.c (malloc_consolidate): Don't use get_fast_max to
8628         determine highest fast bin to consolidate, always look into all of
8629         them.
8630         (do_check_malloc_state): Only require for empty bins for large
8631         sizes in main arena.
8632
8633         * libio/stdio.h: Add more __wur attributes.
8634
8635         * elf/dl-minimal.c (realloc): Optimize last patch.
8636
8637 2006-10-12  Richard Sandiford  <richard@codesourcery.com>
8638
8639         [BZ #3352]
8640         * elf/dl-minimal.c (realloc): Let malloc() return a new pointer,
8641         and use memcpy() if it does.
8642
8643 2006-11-12  Andreas Jaeger  <aj@suse.de>
8644
8645         [BZ #2510]
8646         * manual/search.texi (Hash Search Function): Clarify.
8647         (Array Search Function): Clarify.
8648
8649 2006-11-12  Joseph Myers  <joseph@codesourcery.com>
8650
8651         [BZ #2830]
8652         * math/atest-exp.c (main): Cast hex value to mp_limb_t before
8653         shifting.
8654         * math/atest-exp2.c (read_mpn_hex): Likewise.
8655         * math/atest-sincos.c (main): Likewise.
8656
8657 2006-10-11  Ulrich Drepper  <drepper@redhat.com>
8658
8659         * sysdeps/unix/sysv/linux/syscalls.list: Add epoll_pwait.
8660         * sysdeps/unix/sysv/linux/sys/epoll.h: Declare epoll_pwait.
8661         * sysdeps/unix/sysv/linux/Versions (libc): Add epoll_pwait for
8662         version GLIBC_2.6.
8663         * Versions.def: Add GLIBC_2.6 for libc.
8664
8665         * sysdeps/unix/sysv/linux/i386/sysdep.h (DOARGS_6): Fix offset.
8666
8667         * sysdeps/i386/i486/bits/atomic.h: Add catomic_* support.
8668
8669 2006-10-11  Jakub Jelinek  <jakub@redhat.com>
8670
8671         * malloc/malloc.c (_int_malloc): Remove unused any_larger variable.
8672
8673         * nis/nis_defaults.c (__nis_default_access): Don't call getenv twice.
8674
8675         * nis/nis_subr.c (nis_getnames): Use __secure_getenv instead of getenv.
8676         * sysdeps/generic/unsecvars.h: Add NIS_PATH.
8677
8678 2006-10-11  Ulrich Drepper  <drepper@redhat.com>
8679
8680         * include/atomic.c: Define catomic_* operations.
8681         * sysdeps/x86_64/bits/atomic.h: Likewise.  Fix a few minor problems.
8682         * stdlib/cxa_finalize.c: Use catomic_* operations instead of atomic_*.
8683         * malloc/memusage.c: Likewise.
8684         * gmon/mcount.c: Likewise.
8685         * elf/dl-close.c: Likewise.
8686         * elf/dl-open.c: Likewise.
8687         * elf/dl-profile.c: Likewise.
8688         * elf/dl-sym.c: Likewise.
8689         * elf/dl-runtime.c: Likewise.
8690         * elf/dl-fptr.c: Likewise.
8691         * resolv/res_libc.c: Likewise.
8692
8693 2006-10-10  Ulrich Drepper  <drepper@redhat.com>
8694
8695         * nis/nis_subr.c (nis_getnames): Add trailing dot to NIS_PATH
8696         components which lack them.
8697
8698         * nis/nis_subr.c (nis_getnames): Make sure that we always return
8699         at least one entry consisting of the parameter concatenated with
8700         the domain.
8701
8702 2006-10-10  Roland McGrath  <roland@frob.com>
8703
8704         * sysdeps/mach/hurd/utimes.c: Use a union to avoid an improper cast.
8705         * sysdeps/mach/hurd/futimes.c: Likewise.
8706         * sysdeps/mach/hurd/lutimes.c: Likewise.
8707
8708 2006-10-09  Ulrich Drepper  <drepper@redhat.com>
8709             Jakub Jelinek  <jakub@redhat.com>
8710
8711         Implement reference counting of scope records.
8712         * elf/dl-close.c (_dl_close): Remove all scopes from removed objects
8713         from the list in objects which remain.  Always allocate new scope
8714         record.
8715         * elf/dl-open.c (dl_open_worker): When growing array for scopes,
8716         don't resize, allocate a new one.
8717         * elf/dl-runtime.c: Update reference counters before using a scope
8718         array.
8719         * elf/dl-sym.c: Likewise.
8720         * elf/dl-libc.c: Adjust for l_scope name change.
8721         * elf/dl-load.c: Likewise.
8722         * elf/dl-object.c: Likewise.
8723         * elf/rtld.c: Likewise.
8724         * include/link.h: Include <rtld-lowlevel.h>.  Define struct
8725         r_scoperec.  Replace r_scope with pointer to r_scoperec structure.
8726         Add l_scoperec_lock.
8727         * sysdeps/generic/ldsodefs.h: Include <rtld-lowlevel.h>.
8728         * sysdeps/generic/rtld-lowlevel.h: New file.
8729
8730         * include/atomic.h: Rename atomic_and to atomic_and_val and
8731         atomic_or to atomic_or_val.  Define new macros atomic_and and
8732         atomic_or which do not return values.
8733         * sysdeps/x86_64/bits/atomic.h: Define atomic_and and atomic_or.
8734         Various cleanups.
8735         * sysdeps/i386/i486/bits/atomic.h: Likewise.
8736
8737         * po/sv.po: Update from translation team.
8738
8739 2006-10-07  Ulrich Drepper  <drepper@redhat.com>
8740
8741         * Versions.def: Add GLIBC_2.6 to libpthread.
8742
8743         * include/shlib-compat.h (SHLIB_COMPAT): Expand parameters before use.
8744         (versioned_symbol): Likewise.
8745         (compat_symbol): Likewise.
8746
8747         * po/tr.po: Update from translation team.
8748
8749 2006-10-06  Ulrich Drepper  <drepper@redhat.com>
8750
8751         * nis/Banner: Removed.  It's been integral part forever and the
8752         author info is incomplete anyway.
8753         * libio/Banner: Likewise.
8754
8755         * nis/nis_table.c (nis_list): If __follow_path fails in the new
8756         code, make sure the nis_freeresult call doesn't crash and that the
8757         result is reported correctly.
8758
8759 2006-09-27  Jakub Jelinek  <jakub@redhat.com>
8760
8761         * nis/nis_table.c (nis_list): Handle FOLLOW_PATH | ALL_RESULTS
8762         when callback is NULL.
8763
8764         * nis/Versions (libnss_nisplus): Add
8765         _nss_nisplus_initgroups_dyn@@GLIBC_PRIVATE.
8766         * nis/Makefile (libnss_nisplus-routines): Add nisplus-initgroups.
8767         * nis/nss_nisplus/nisplus-grp.c (tablename_val, tablename_len,
8768         _nss_create_tablename): Rename to...
8769         (grp_tablename_val, grp_tablename_len, _nss_grp_create_tablename):
8770         ... these.  No longer static.
8771         (internal_setgrent): Adjust users.
8772         (_nss_nisplus_getgrnam_r, _nss_nisplus_getgrgid_r): Likewise.
8773         Don't use locking around _nss_grp_create_tablename call.
8774         * nis/nss_nisplus/nisplus-initgroups.c: New file.
8775
8776 2006-10-06  Ulrich Drepper  <drepper@redhat.com>
8777
8778         * version.h (VERSION): Bump to 2.5.90 for new development tree.
8779
8780 2006-10-06  Andreas Jaeger  <aj@suse.de>
8781
8782         * include/features.h (__GLIBC_MINOR__): It's glibc 2.5 now.
8783
8784 2006-10-06  Ulrich Drepper  <drepper@redhat.com>
8785
8786         * po/pl.po: Update from translation team.
8787
8788         * nscd/nscd.c (main): Fix typo in message.
8789         Patch by Jakub Bogsz <qboosh@pld-linux.org>.
8790
8791 2006-10-02  Jakub Jelinek  <jakub@redhat.com>
8792
8793         [BZ #3291]
8794         * sysdeps/unix/sysv/linux/sparc/sparc64/pause.c: Include
8795         errno.h, signal.h, unistd.h and sysdep-cancel.h.
8796         (__sigprocmask): Define.
8797
8798 2006-10-02  Ulrich Drepper  <drepper@redhat.com>
8799
8800         * elf/rtld.c (dl_main): Don't use prelinking if LD_DYNAMIC_WEAK is
8801         used.
8802
8803 2006-10-02  Jakub Jelinek  <jakub@redhat.com>
8804
8805         * nscd/mem.c (mempool_alloc): Round array size to 16 bytes
8806         in oldtotal and newtotal calculation.
8807         * nscd/nscd-client.h (struct mapped_database): Add datasize
8808         field.
8809         * nscd/nscd_helper.c (get_mapping): Initialize datasize field.
8810         (__nscd_get_map_ref): Get a new mapping even if mapping's data_size
8811         increased.
8812         (__nscd_cache_search): Add checks to make sure we never reference
8813         data beyond the current mapping.
8814
8815 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
8816
8817         * sysdeps/posix/getaddrinfo.c (match_prefix): Make mask and val
8818         variables const to avoid compiler warnings.
8819
8820         * io/fts.c (fts_close): Remove redundant checks.
8821         (fts_build): Likewise.
8822         (fts_palloc): Likewise.
8823
8824         * manual/message.texi (Advanced gettext functions,
8825         Using gettextized software): Fix typos.
8826
8827 2006-09-30  Ulrich Drepper  <drepper@redhat.com>
8828
8829         * posix/glob.c (glob_in_dir): Add some comments and asserts to
8830         explain why there are no leaks.
8831
8832 2006-09-29  Ulrich Drepper  <drepper@redhat.com>
8833
8834         * libio/wmemstream.c: Include <wchar.h>.
8835         * libio/bug-wmemstream1.c: Likewise.
8836         * libio/tst-wmemstream1.c: Likewise.
8837         * libio/tst-wmemstream2.c: Likewise.
8838
8839         * version.h (RELEASE): Bump to 2.5.
8840         * README: Regenerated.
8841
8842         * locale/iso-3166.def: Add Aaland Islands and Montenegro.
8843
8844         [BZ #3273]
8845         * nscd/nscd_initgroups.c (__nscd_getgrouplist): It is OK to have
8846         found no group members.
8847         Patch by Petr Baudis.
8848
8849 2006-09-29  Jakub Jelinek  <jakub@redhat.com>
8850
8851         * elf/rtld.c (_dl_start_final): If not USE___THREAD, don't
8852         assert bootstrap_map.l_tls_modid is zero.
8853         (_dl_start): Initialize bootstrap_map.l_tls_modid to 0
8854         if USE___THREAD.
8855
8856 2006-09-27  Ulrich Drepper  <drepper@redhat.com>
8857
8858         * libio/stdio.h: Move open_wmemstream prototype to ...
8859         * wcsmbs/wchar.h: ... here.
8860
8861 2006-09-25  Jakub Jelinek  <jakub@redhat.com>
8862
8863         [BZ #3252]
8864         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat): Handle only
8865         fchownat syscall and __ASSUME_LCHOWN_SYSCALL case inline, call
8866         __{,l}chown to handle the rest.
8867         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Handle only
8868         fchownat syscall and __ASSUME_32BITUIDS case inline, call
8869         __{,l}chown to handle the rest.
8870         * sysdeps/unix/sysv/linux/sparc/sparc32/fchownat.c: Include
8871         i386/fchownat.c.
8872         * sysdeps/unix/sysv/linux/s390/s390-32/fchownat.c: Likewise.
8873         * sysdeps/unix/sysv/linux/sh/fchownat.c: Likewise.
8874
8875         [BZ #3253]
8876         * posix/glob.c (glob_in_dir): Don't alloca one struct globlink at a
8877         time, rather allocate increasingly bigger arrays of pointers, if
8878         possible with alloca, if too large with malloc.
8879
8880 2006-09-24  Jakub Jelinek  <jakub@redhat.com>
8881
8882         * sysdeps/powerpc/fpu/libm-test-ulps: Updated.
8883
8884         * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Fix 2 typos.
8885
8886 2006-09-24  Ulrich Drepper  <drepper@redhat.com>
8887
8888         * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Implement rule 4,
8889         home addresses.
8890         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Recognize
8891         IFA_F_HOMEADDRESS flag for interfaces.
8892         * include/ifaddrs.h (struct in6addrinfo): Define
8893         in6ai_homeaddress.
8894
8895 2006-09-21  Jakub Jelinek  <jakub@redhat.com>
8896
8897         [BZ #3225]
8898         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (PTR_MANGLE3,
8899         PTR_DEMANGLE3): Define.
8900         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h (PTR_MANGLE3,
8901         PTR_DEMANGLE3): Likewise.
8902         * sysdeps/powerpc/powerpc32/__longjmp-common.S (__longjmp): Use them.
8903         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp):
8904         Likewise.
8905         * sysdeps/powerpc/powerpc64/__longjmp-common.S (__longjmp): Likewise.
8906
8907 2006-09-20  Jakub Jelinek  <jakub@redhat.com>
8908
8909         * po/libc.pot: Regenerated.
8910         * po/be.po: Updated.
8911         * po/ca.po: Likewise.
8912         * po/cs.po: Likewise.
8913         * po/da.po: Likewise.
8914         * po/de.po: Likewise.
8915         * po/el.po: Likewise.
8916         * po/en_GB.po: Likewise.
8917         * po/es.po: Likewise.
8918         * po/fi.po: Likewise.
8919         * po/fr.po: Likewise.
8920         * po/gl.po: Likewise.
8921         * po/hr.po: Likewise.
8922         * po/hu.po: Likewise.
8923         * po/ja.po: Likewise.
8924         * po/ko.po: Likewise.
8925         * po/nb.po: Likewise.
8926         * po/nl.po: Likewise.
8927         * po/pl.po: Likewise.
8928         * po/pt_BR.po: Likewise.
8929         * po/ru.po: Likewise.
8930         * po/rw.po: Likewise.
8931         * po/sk.po: Likewise.
8932         * po/sv.po: Likewise.
8933         * po/tr.po: Likewise.
8934         * po/zh_CN.po: Likewise.
8935         * po/zh_TW.po: Likewise.
8936
8937         [BZ #3137]
8938         * iconv/iconv_prog.c (main): Fix spelling in error message.
8939         * iconv/iconvconfig.c (main): Likewise.
8940         * locale/programs/ld-collate.c (handle_ellipsis): Likewise.
8941         * locale/programs/ld-ctype.c (charclass_symbolic_ellipsis): Likewise.
8942         * locale/programs/localedef.c (main): Likewise.
8943         * locale/programs/repertoire.c (repertoire_read): Likewise.
8944         * timezone/zdump.c (main): Likewise.
8945         * nscd/connections.c (handle_request): Fix spelling in log message.
8946         Patch by Malcolm Parsons <malcolm.parsons@gmail.com>.
8947
8948 2006-09-20  Ulrich Drepper  <drepper@redhat.com>
8949
8950         * inet/inet6_option.c: Also emit linker warnings for the RFC 2292
8951         interfaces.
8952
8953 2006-09-20  Andreas Jaeger  <aj@suse.de>
8954
8955         * math/libm-test.inc (lrint_test_upward): Fix typo.
8956
8957 2006-06-17  Joseph S. Myers  <joseph@codesourcery.com>
8958
8959         [BZ #2592]
8960         * math/libm-test.inc (lrint_test_tonearest): New function.
8961         (lrint_test_towardzero): New function.
8962         (lrint_test_downward): New function.
8963         (lrint_test_upward): New function.
8964         (main): Run these new tests.
8965         * sysdeps/ieee754/dbl-64/s_llrint.c (__llrint): Correct rounding
8966         of values near to 0.
8967         (two52): Use double not long double.
8968         * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Likewise.
8969         * sysdeps/ieee754/flt-32/s_llrintf.c (__llrintf): Likewise.
8970         (two23): Use float not double.
8971         * sysdeps/ieee754/flt-32/s_lrintf.c (__lrintf): Likewise.
8972         (two23): Use float not double.
8973         * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl): Likewise.
8974         * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Likewise.
8975         * sysdeps/ieee754/ldbl-96/s_llrintl.c (__llrintl): Likewise.
8976         * sysdeps/ieee754/ldbl-96/s_lrintl.c (__lrintl): Likewise.
8977
8978 2006-09-20  Martin Schwidefsky  <schwidefsky@de.ibm.com>
8979
8980         * sysdeps/unix/sysv/linux/s390/s390-32/makecontext.c (__makecontext):
8981         Cast sp to unsigned long to avoid compiler warning.
8982         Use __makecontext_ret function instead of a trampoline on the stack.
8983         (__makecontext_ret): New function.
8984         * sysdeps/unix/sysv/linux/s390/s390-64/makecontext.c: Likewise.
8985
8986 2006-09-19  Jakub Jelinek  <jakub@redhat.com>
8987
8988         * elf/dl-cache.c (HWCAP_CHECK): If _DL_PLATFORMS_COUNT, but
8989         platform == -1, reject any libs with non-zero _DL_HWCAP_PLATFORM
8990         bits.
8991
8992 2006-09-19  Ulrich Drepper  <drepper@redhat.com>
8993
8994         * elf/dl-close.c (_dl_close): If dependency is not unloaded make
8995         sure no reference to the unloaded map's search list remains in the
8996         dependency's scope.
8997
8998 2006-09-16  Jakub Jelinek  <jakub@redhat.com>
8999
9000         * elf/Makefile: Add rules to build and run unload7 test.
9001         * elf/unload7.c: New test.
9002         * elf/unload7mod1.c: New file.
9003         * elf/unload7mod2.c: New file.
9004
9005 2006-09-18  Jakub Jelinek  <jakub@redhat.com>
9006
9007         * sysdeps/unix/sysv/linux/sys/ptrace.h (PT_GETEVENTMSG): Fix pasto.
9008         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h (PTRACE_SETOPTIONS,
9009         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
9010         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h (PTRACE_SETOPTIONS,
9011         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Likewise.
9012         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h (PTRACE_SETOPTIONS,
9013         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Likewise.
9014         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h (PTRACE_SETOPTIONS,
9015         PTRACE_GETEVENTMSG): Likewise.
9016         (PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Change to the arch independent
9017         values.
9018
9019 2006-09-17  Mike Frysinger  <vapier@gentoo.org>
9020
9021         * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_SETOPTIONS,
9022         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
9023         * sysdeps/unix/sysv/linux/ptrace.c (ptrace): Check PTRACE_SETOPTIONS,
9024         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO and PTRACE_SETSIGINFO.
9025
9026 2006-09-16  Jakub Jelinek  <jakub@redhat.com>
9027
9028         * sysdeps/powerpc/powerpc32/register-dump.h (register_dump): Don't
9029         write '\0' to the fd.
9030         * sysdeps/mach/hurd/powerpc/register-dump.h (register_dump): Likewise.
9031         * sysdeps/powerpc/powerpc64/register-dump.h (register_dump): Likewise.
9032         Change regs to unsigned long pointer from unsigned int, fix fscr
9033         offset.
9034
9035 2006-09-14  Jakub Jelinek  <jakub@redhat.com>
9036
9037         * io/Makefile (CFLAGS-fstatat.c): Set.
9038         (CFLAGS-fstatat64.c): Likewise.
9039         (CFLAGS-mknodat.c): Likewise.
9040
9041         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Comment fixes.
9042         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
9043         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Rewritten.
9044         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Rewritten.
9045
9046 2006-09-14  Jakub Jelinek  <jakub@redhat.com>
9047             Steven Munroe  <sjmunroe@us.ibm.com>
9048
9049         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add 4 new cap
9050         names to the beginning.  Rename "cell" to "cellbe".
9051         (_dl_powerpc_platforms): New.
9052         * sysdeps/powerpc/dl-procinfo.h (_DL_HWCAP_FIRST): Decrease.
9053         (HWCAP_IMPORTANT): Remove power{4,5,5+} and cell.
9054         (_DL_PLATFORMS_COUNT, _DL_FIRST_PLATFORM): Define.
9055         (_DL_HWCAP_PLATFORM): Define to new mask.
9056         (_dl_platform_string, _dl_string_platform): New functions.
9057         * sysdeps/powerpc/sysdep.h (PPC_FEATURE_BOOKE, PPC_FEATURE_SMT,
9058         PPC_FEATURE_ICACHE_SNOOP, PPC_FEATURE_ARCH_2_05): Define.
9059
9060 2006-09-12  Jakub Jelinek  <jakub@redhat.com>
9061
9062         [BZ #2526]
9063         * README.libm: Fix a thinko in sqrt algorithm description.
9064
9065         [BZ #3143]
9066         * manual/string.texi (argz_delete): Fix prototype.
9067         Patch by <alpt@freaknet.org>.
9068
9069 2006-08-26  Joseph Myers  <joseph@codesourcery.com>
9070
9071         [BZ #3138]
9072         * io/test-lfs.c (do_prepare): Give name_len type size_t.
9073         * io/tst-fcntl.c (do_prepare): Likewise.
9074         * posix/tst-exec.c (do_prepare): Likewise.
9075         * posix/tst-preadwrite.c (do_prepare): Likewise.
9076         * posix/tst-spawn.c (do_prepare): Likewise.
9077         * posix/tst-truncate.c (do_prepare): Likewise.
9078         * rt/tst-aio.c (do_prepare): Likewise.
9079         * rt/tst-aio64.c (do_prepare): Likewise.
9080         * stdlib/test-canon2.c (do_prepare): Give test_dir_len type
9081         size_t.
9082
9083 2006-09-09  Ulrich Drepper  <drepper@redhat.com>
9084
9085         [BZ #2821]
9086         * time/mktime.c (guess_time_tm): Fix overflow detection.
9087         * time/Makefile (tests): Add bug-mktime1.
9088         * time/bug-mktime1.c: New file.
9089
9090         [BZ #3189, #3188]
9091         * misc/sys/mman.h (remap_file_pages): Make available for _GNU_SOURCE.
9092         (mremap): Likewise.
9093
9094 2006-09-07  Jakub Jelinek  <jakub@redhat.com>
9095
9096         [BZ #1006]
9097         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela):
9098         Ensure relocation doesn't clobber any bits outside of the
9099         immediate field for R_SPARC_TLS_LE_HIX22, R_SPARC_WDISP30,
9100         R_SPARC_HI22 and R_SPARC_H44.
9101
9102         [BZ #2775]
9103         * malloc/malloc.c (sYSMALLOc): Only call grow_heap if
9104         (long) (MINSIZE + nb - old_size) is positive.
9105
9106         * malloc/arena.c (grow_heap): When growing bail even if new_size
9107         is negative.
9108
9109         [BZ #3155]
9110         * sysdeps/powerpc/powerpc32/fpu/s_lrint.S (__lrint): Don't access
9111         stack below r1.
9112
9113 2006-09-06  Jakub Jelinek  <jakub@redhat.com>
9114
9115         * posix/regex_internal.c (re_string_reconstruct): Handle
9116         offset < pstr->valid_raw_len && pstr->offsets_needed case.
9117         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
9118         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
9119         re_string_context_at.
9120         * posix/Makefile: Add rules to build and run bug-regex26 test.
9121         * posix/bug-regex26.c: New test.
9122
9123         * locale/programs/ld-collate.c (collate_read): Goto sym_equiv_free
9124         rather than col_sym_free.  Move seqp declaration earlier.
9125
9126         * resolv/gai_suspend.c (gai_suspend): Make sure result is initialized.
9127
9128 2006-09-05  Jakub Jelinek  <jakub@redhat.com>
9129
9130         * nscd/initgrcache.c (addinitgroupsX): Move any_success
9131         decl before first goto out.
9132
9133 2006-09-04  Jakub Jelinek  <jakub@redhat.com>
9134
9135         * Makerules (shlib.lds): If have-hash-style, put .hash section
9136         at the end of the RO segment.
9137
9138 2006-09-04  Ulrich Drepper  <drepper@redhat.com>
9139
9140         * elf/do-lookup.h (do_lookup_x): Initialize symidx in case the new
9141         style hash table format is used.
9142
9143 2006-09-04  Jakub Jelinek  <jakub@redhat.com>
9144
9145         * resolv/res_mkquery.c (res_nmkquery): Set hp->id to statp->id after
9146         randomization rather than before.
9147         * resolv/res_init.c (res_randomid): Don't call gettimeofday here.
9148
9149 2006-08-31  Jakub Jelinek  <jakub@redhat.com>
9150
9151         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Add ld.so.
9152
9153         * malloc/malloc.c (_int_malloc): Use full list insert and not
9154         shortcut which assumes the list is empty for large requests
9155         too.
9156
9157         * elf/tst-addr1.c (do_test): Allow i.dli_sname "_IO_printf".
9158
9159 2006-08-30  Jakub Jelinek  <jakub@redhat.com>
9160
9161         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (splice): Add offin
9162         and offout arguments to the prototype.
9163         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (splice): Likewise.
9164         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h (splice): Likewise.
9165         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (splice): Likewise.
9166         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h (splice): Likewise.
9167         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h (splice): Likewise.
9168         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (splice): Likewise.
9169         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h (splice): Likewise.
9170         * sysdeps/unix/sysv/linux/syscalls.list (splice): Adjust args string.
9171
9172 2006-08-28  Ulrich Drepper  <drepper@redhat.com>
9173
9174         * elf/dl-load.c (_dl_init_paths): Expand DSTs.
9175
9176         * elf/dl-open.c (dl_open_worker): Allow $LIB and $PLATFORM in
9177         dlopen parameters.
9178
9179 2006-08-28  Jakub Jelinek  <jakub@redhat.com>
9180
9181         * inet/getnameinfo.c (getnameinfo): For AF_INET, check errno
9182         only if herrno is NETDB_INTERNAL.  Handle errors other than
9183         ERANGE outside of the loops, handle TRY_AGAIN.
9184
9185         * locale/programs/ld-ctype.c (translit_flatten): Issue error
9186         if other's ctype category was missing.
9187         * locale/programs/ld-collate.c (collate_read): Return if
9188         copy_locale's collate category is missing.
9189
9190 2006-08-27  Ulrich Drepper  <drepper@redhat.com>
9191
9192         [BZ #2684]
9193         * malloc/malloc.c (public_rEALLOc): Try harder by using other
9194         arenas if allocation failed.
9195         Patch mostly by Jan Edler <jan.edler@indexengines.com>.
9196
9197 2006-08-26  Ulrich Drepper  <drepper@redhat.com>
9198
9199         * malloc/malloc.c (bin_at): Rewrite to be more clear and to not
9200         waste bins[0..1].
9201         (malloc_state): Reduce bins size by 2.
9202         (_int_malloc): Fix test for large enough buffer for early termination.
9203         When no unsorted block matches perfectly and an exiting block has
9204         to be split, use full list insert and not shortcut which assumes
9205         the list is empty.
9206
9207         * locale/programs/ld-ctype.c (ctype_read): Better patch for read
9208         failure.
9209
9210 2006-08-24  Ulrich Drepper  <drepper@redhat.com>
9211
9212         * locale/programs/ld-ctype.c (ctype_read): If CTYPE is NULL, don't
9213         do anything.
9214
9215         * sysdeps/generic/ldsodefs.h (DL_ADDR_SYM_MATCH): For undefined
9216         symbol require exact match (these are PLTs).
9217         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ldsodefs.h
9218         (_dl_ppc64_addr_sym_match): Likewise.
9219
9220         [BZ #2683]
9221         * elf/dl-addr.c (_dl_addr): Don't ignore all undefined symbols.
9222         If symbol has a value use it.
9223         * elf/tst-dladdr1.c: New file.
9224         * elf/Makefile: Add rules to build and run tst-addr1.
9225
9226 2006-08-24  Jakub Jelinek  <jakub@redhat.com>
9227
9228         * malloc/malloc.c (sYSMALLOc): Avoid infinite loop if MMAP
9229         keeps failing and heap growth or new heap creation isn't
9230         successful either.
9231         * malloc/tst-malloc.c (main): Add new tests.
9232
9233 2006-08-24  Ulrich Drepper  <drepper@redhat.com>
9234
9235         [BZ #2734]
9236         * sysdeps/i386/bits/byteswap.h (__bswap_32): Use same conditions
9237         as in the x86-64 code to use bswap.
9238
9239 2006-05-21  Joseph S. Myers  <joseph@codesourcery.com>
9240
9241         [BZ #2680]
9242         * posix/unistd.h (getlogin_r): Condition on __USE_POSIX199506, not
9243         __USE_UNIX98.
9244         * posix/bits/unistd.h: Likewise.
9245
9246 2006-05-15  Mike Frysinger  <vapier@gentoo.org>
9247
9248         [BZ #2751]
9249         * string/strchr.c: Add cast to avoid warning.
9250
9251 2006-08-21  Ulrich Drepper  <drepper@redhat.com>
9252
9253         * malloc/malloc.c (DEFAULT_MMAP_THRESHOLD_MAX): For 32-bit
9254         platforms define as 512K.  For 64-bit platforms as 32MB.  The lower
9255         limit is needed to avoid the exploding of the address space
9256         requirement for secondary heaps.
9257         * malloc/arena.c (HEAP_MAX_SIZE): Define using
9258         DEFAULT_MMAP_THRESHOLD_MAX if it is defined.
9259
9260 2006-07-30  Joseph S. Myers  <joseph@codesourcery.com>
9261
9262         [BZ #3018]
9263         * Makerules (depfiles): Handle extra-test-objs the same as
9264         extra-objs.
9265         (common-mostlyclean): Likewise.
9266         * dlfcn/Makefile (extra-objs): Add modules to extra-test-objs
9267         instead.
9268         * elf/Makefile (extra-objs): Likewise.
9269         * stdlib/Makefile (extra-objs): Likewise.
9270
9271 2006-08-14  Eric Blake  <ebb9@byu.net>
9272
9273         [BZ #3044]
9274         * misc/error.h: Assume C89 or better.
9275         * misc/error.c: Likewise.
9276
9277 2006-08-21  Ulrich Drepper  <drepper@redhat.com>
9278
9279         [BZ #3040]
9280         * sysdeps/unix/sysv/linux/openat.c: Fix compilation if
9281         __ASSUME_ATFCTS is defined.
9282
9283 2006-08-19  Ulrich Drepper  <drepper@redhat.com>
9284
9285         * malloc/malloc.c (_int_malloc): Limit number of unsorted blocks
9286         to sort in each call.
9287
9288         * nis/nss_nis/nis-service.c (internal_nis_getservent_r): . If map
9289         is empty simply return and use next service.
9290         * nis/nss_nis/nis-rpc.c (internal_nis_getrpcent_r): Likewise.
9291
9292         * locale/programs/charmap.c (charmap_read): Add new parameter.  It
9293         tells us when not finding a charmap file is an error.
9294         * locale/programs/charmap.h: Adjust charmap_read prototype.
9295         * iconv/iconv_prog.c (main): Tell charmap_read it's no error if we
9296         cannot find a charmap.
9297         * locale/programs/localedef.c (main): Adjust charmap_read call.
9298
9299 2006-08-15  Jakub Jelinek  <jakub@redhat.com>
9300
9301         * sysdeps/unix/sysv/linux/sparc/sparc64/pause.c: Use
9302         sysdeps/posix/pause.c implementation instead.
9303
9304 2006-08-09  Jakub Jelinek  <jakub@redhat.com>
9305
9306         * sysdeps/unix/nice.c (nice): Transform EACCES errno from setpriority
9307         to EPERM.
9308
9309 2006-08-13  Andreas Schwab  <schwab@suse.de>
9310
9311         * sysdeps/powerpc/powerpc32/dl-trampoline.S (_dl_runtime_resolve):
9312         Don't clobber caller's LRSAVE.
9313         (_dl_prof_resolve): Likewise.
9314
9315 2006-08-14  Ulrich Drepper  <drepper@redhat.com>
9316
9317         [BZ #1996]
9318         * libio/memstream.c (open_memstream): Allocate initial buffer with
9319         calloc.
9320         * libio/wmemstream.c (open_wmemstream): Likewise.
9321         * libio/strops.c: Pretty printing.
9322         (_IO_str_overflow): Clear uninitialized part of the new buffer.
9323         (enlarge_userbuf): New function.
9324         (_IO_str_seekoff): Call it if seek position is larger than current
9325         buffer.
9326         * libio/wstrops.c: Likewise.
9327         * libio/vasprintf.c: Add comment as to why we do not have to use
9328         calloc instead of malloc to allocate initial buffer.
9329         * libio/Makefile (tests): Add bug-memstream1 and bug-wmemstream1.
9330         * libio/bug-memstream1.c: New file.
9331         * libio/bug-wmemstream1.c: New file.
9332
9333 2006-08-13  Ulrich Drepper  <drepper@redhat.com>
9334
9335         * libio/wstrops.c: Remove dead macro definitions and comments.
9336         * libio/strops.c: Likewise.
9337
9338         [BZ #2764]
9339         * login/utmpname.c (__utmpname): Remove unnecessary test.
9340
9341 2006-06-08  Joseph Myers  <jsm28@gcc.gnu.org>
9342
9343         [BZ #2832]
9344         * math/gen-libm-test.pl (clean_up_number): Do not remove trailing
9345         0s from integers.
9346
9347 2006-08-13  Ulrich Drepper  <drepper@redhat.com>
9348
9349         [BZ #2987]
9350         * sysdeps/unix/sysv/linux/clock_settime.c: Add code to use syscall
9351         for CPU clocks.
9352         * sysdeps/unix/clock_settime.c: Add support for platform-specific
9353         setting of CPU clocks.
9354
9355 2006-06-23  Paul Eggert  <eggert@cs.ucla.edu>
9356
9357         [BZ #2841]
9358         * sysdeps/generic/stdint.h (UINT8_C, UINT16_C): Don't append 'U',
9359         since C99 requires the result to promote to 'int' when uint_least8_t
9360         and uint_least16_t promote to 'int'.
9361
9362 2006-08-12  Ulrich Drepper  <drepper@redhat.com>
9363
9364         [BZ #3013]
9365         * locale/programs/ld-ctype.c (ctype_output): Adjust alignments, fix
9366         lenght of one output field, correct bitmask creation.
9367         * locale/programs/ld-time.c: Add alignment.
9368
9369         [BZ #2997]
9370         * misc/error.c: Add space between program name and message if file
9371         name is missing.
9372
9373 2006-08-03  Eric Blake  <ebb9@byu.net>
9374
9375         [BZ #2998]
9376         * misc/error.c (error_tail) [_LIBC]: Avoid invalid free.
9377
9378 2006-08-09  Ulrich Drepper  <drepper@redhat.com>
9379
9380         * malloc/memusagestat.c: Silence warnings.
9381
9382         * malloc/malloc.c: Dynamically size mmap treshold if the program
9383         frees mmaped blocks.
9384         Patch by Valerie Henson and Arjan van de Ven.
9385
9386 2006-08-08  Jakub Jelinek  <jakub@redhat.com>
9387
9388         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (O_DIRECT): Protect with
9389         __USE_GNU.
9390
9391         * stdlib/strtol_l.c (__strtol_ul_max_tab, __strtol_ul_rem_tab,
9392         __strtol_ull_max_tab, __strtol_ull_rem_tab): Declare.
9393         (DEF): Don't put the var into .gnu.linkonce.r.* section.
9394         Only provide var definitions in strtol_l (or for *ull*
9395         in strtoll_l).
9396
9397         * stdio-common/bug16.c (tests): New array.
9398         (do_tests): Allow the first hexadecimal digit
9399         to be 1, 2, 4 or 8.  Do 3 additional tests.
9400
9401         * sysdeps/s390/fpu/libm-test-ulps: Update.
9402
9403         * sysdeps/unix/sysv/linux/s390/s390-32/fchownat.c (fchownat): Use
9404         fchownat syscall if available.
9405         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat): Likewise.
9406         * sysdeps/unix/sysv/linux/sh/fchownat.c (fchownat): Likewise.
9407         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Likewise.
9408
9409 2006-08-07  Ulrich Drepper  <drepper@redhat.com>
9410
9411         * nis/nis_xdr.c: Avoid some function calls.
9412
9413 2006-08-07  Jakub Jelinek  <jakub@redhat.com>
9414             Ulrich Drepper  <drepper@redhat.com>
9415
9416         * nis/nis_call.c (rec_dirsearch) [case LOWER_NAME]: Don't take
9417         short cut if only one name component is stripped away.
9418
9419 2006-08-07  Ulrich Drepper  <drepper@redhat.com>
9420
9421         * nis/nis_call.c: Minor cleanups throughout.
9422         (rec_dirsearch) [case HIGHER_NAME]: Correctly size ndomain array.
9423         (first_shoot): Add search_parent_first parameter.  Only if it is set
9424         search parent server first.
9425         If directory for table found through cold start cache is not the same
9426         as referenced in the cache, don't use it.
9427         (__nisfind_server): Take additional parameter.  Pass it on to
9428         first_shoot.
9429         (__prepare_niscall): Adjust __nisfind_server call.
9430         * nis/rpcsvc/nislib.h: Adjust __nisfind_server prototype.
9431         * nis/nis_table.c: Adjust __nisfind_server call.
9432         * nis/nis_lookup.c: Likewise.
9433         (nis_lookup): Don't loop endlessly if name is reduced to ".".
9434
9435 2006-08-03  Ulrich Drepper  <drepper@redhat.com>
9436
9437         [BZ #2182]
9438         * math/s_cacosh.c: Return values from positive branch.
9439         * math/s_cacoshf.c: Likewise.
9440         * math/s_cacoshl.c: Likewise.
9441
9442         [BZ #2883]
9443         * sysvipc/sys/msg.h: Change return value to ssize_t.
9444         * sysdeps/unix/sysv/linux/msgrcv.c: Likewise.
9445         * sysvipc/msgrcv.c: Likewise.
9446         * include/sys/msg.h: Likewise.
9447
9448         * grp/initgroups.c (internal_getgrouplist): Remove unnecessary
9449         test introduced in patch for bz #661.
9450         (getgrouplist): Simplify code a bit.  Don't allocate one additional
9451         element for NEWGROUPS.
9452
9453         [BZ #2908]
9454         * stdio-common/printf_fphex.c (__printf_fphex): When rounding up
9455         'f', use '1' as leading digit not '\1'.
9456         * stdio-common/Makefile (tests): Add bug16.
9457         * stdio-common/bug16.c: New file.
9458
9459         [BZ #2914]
9460         * sysdeps/unix/sysv/linux/gethostid.c: Don't define OLD_HOSTIDFILE
9461         and don't try to open it.  The patch introducing the macro
9462         contained a bug and used the same file name as the new file
9463         instead of using /var/adm/hostid.  Nobody complaint so I'm taking
9464         this out completely.
9465
9466         [BZ #2926]
9467         * assert/assert.h: Move cast to void inside ?: to quiet gcc.
9468         Patch by Jerry James <Jerry.James@usu.edu>.
9469
9470         * rt/Makefile (tests): Add tst-clock2.
9471         * rt/tst-clock2.c: New file.
9472
9473         [BZ #2978]
9474         * resolv/gai_notify.c (__gai_notify_only): Copy memory for thread
9475         function and its parameters and pass it to new thread.
9476         (__gai_notify): Add support for alternative waiting for completion.
9477         * resolv/gai_suspend.c (gai_suspend): Add support for alternative
9478         waiting for completion.
9479         * resolv/getaddrinfo_a.c: Likewise.
9480         * resolv/gai_misc.h (struct waitlist): Don't add cond if alternative
9481         waiting for completion is used.
9482         * resolv/gai_misc.c: Allow overwriting code to start helper thread.
9483         * resolv/gai_cancel.c: Include <gai_misc.h> not "gai_misc.h".
9484         * resolv/gai_error.c: Likewise.
9485         * resolv/gai_sigqueue.c: Likewise.
9486
9487 2006-08-02  Thomas Schwinge  <tschwinge@gnu.org>
9488
9489         * hurd/getdport.c (__getdport): Don't return EBADF; instead set
9490         errno to EBADF and return MACH_PORT_NULL.
9491
9492 2006-06-23  Joseph Myers  <joseph@codesourcery.com>
9493
9494         [BZ #2980]
9495         * posix/Makefile (CFLAGS-waitid.c): Add -fasynchronous-unwind-tables.
9496
9497 2006-08-02  Ulrich Drepper  <drepper@redhat.com>
9498
9499         * elf/dl-addr.c (_dl_addr): If GNU-style hash tables are present,
9500         walk them instead of the symbol table.
9501
9502 2006-08-01  Ulrich Drepper  <drepper@redhat.com>
9503
9504         [BZ #2098]
9505         * nscd/initgrcache.c (addinitgroupsX): Judge successful lookups by
9506         status of NSS calls, not the number of returned entries.
9507
9508         * sysdeps/unix/sysv/linux/syscalls.list: Remove add_key,
9509         request_key, keyctl.
9510
9511 2006-07-31  Ulrich Drepper  <drepper@redhat.com>
9512
9513         * sysdeps/unix/sysv/linux/dl-osinfo.h: Remove unnecessary include.
9514
9515 2006-07-16  Jeff Bailey  <jbailey@ubuntu.com>
9516
9517         * elf/tst-auditmod1.c: Fix typo in #error.
9518
9519 2006-07-31  Ulrich Drepper  <drepper@redhat.com>
9520
9521         * elf/tst-auditmod1.c: Remove code for unsupported architectures.
9522
9523         * iconvdata/run-iconv-test.sh: Run cmp in C locale.
9524
9525 2006-07-20  Adam Nemet  <anemet@caviumnetworks.com>
9526
9527         * stdlib/test-canon.c (do_test): Close fd before unlinking file so
9528         that the directory is empty even on non-POSIX filesystems.
9529
9530 2006-07-31  Ulrich Drepper  <drepper@redhat.com>
9531
9532         * elf/dl-open.c (dl_open_worker): Add branch prediction.
9533
9534         * nis/nss_compat/compat-grp.c: Avoid unnecessary setgrent calls into
9535         the backend NSS module.  If backend setgrent call failed, don't have
9536         internal_setgrent fail.  Just remember this until it is needed.
9537         * nis/nss_compat/compat-pwd.c: Likewise.
9538         * nis/nss_compat/compat-spwd.c: Likewise.
9539
9540 2006-07-30  Roland McGrath  <roland@redhat.com>
9541
9542         * sysdeps/unix/sysv/linux/ia64/sigsuspend.c: File removed.
9543         * sysdeps/unix/sysv/linux/x86_64/sigsuspend.c: File removed.
9544         * sysdeps/unix/sysv/linux/s390/s390-64/sigsuspend.c: File removed.
9545         * sysdeps/unix/sysv/linux/sparc/sparc64/sigsuspend.c: File removed.
9546
9547         * sysdeps/unix/sysv/linux/not-cancel.h (pause_not_cancel): New macro.
9548         (nanosleep_not_cancel): New macro.
9549         (sigsuspend_not_cancel): new macro.
9550         * sysdeps/unix/sysv/linux/sigsuspend.c [__ASSUME_REALTIME_SIGNALS]
9551         (do_sigsuspend): Define as inline.
9552         (__sigsuspend): Always use do_sigsuspend.
9553         [! NO_CANCELLATION] (__sigsuspend_nocancel): New function.
9554         * include/signal.h: Declare __sigsuspend_nocancel.
9555         * sysdeps/posix/pause.c
9556         [! NO_CANCELLATION] (__pause_nocancel): New function.
9557
9558         * include/unistd.h (__pause_nocancel): Add attribute_hidden.
9559         * include/time.h (__nanosleep_nocancel): Likewise.
9560
9561 2006-07-30  Ulrich Drepper  <drepper@redhat.com>
9562
9563         * locale/programs/localedef.c (add_to_readlist): Rename local
9564         variables to avoid confusion.
9565
9566         * locale/programs/charmap.c (charmap_read): Emit error message if
9567         charmap couldn't be found or read.
9568
9569 2006-07-28  Ulrich Drepper  <drepper@redhat.com>
9570
9571         * sysdeps/unix/sysv/linux/kernel-features.h: Define
9572         __ASSUME_FUTEX_LOCK_PI.
9573         * include/time.h: Declare __nanosleep_nocancel.
9574         * include/unistd.h: Declare __pause_nocancel.
9575
9576         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Use this instead of
9577         LDFLAGS.  Add -lgcc_eh and libc_nonshared (again) to make sure we
9578         get the __stack_chk_fail_local definition when it's needed.
9579
9580 2006-07-26  Ulrich Drepper  <drepper@redhat.com>
9581
9582         * dlfcn/Makefile: Add rules to build and run bug-atexit3.
9583         * dlfcn/bug-atexit3.c: New file.
9584         * dlfcn/bug-atexit3-lib.cc: New file.
9585
9586         * dlfcn/dlmopen.c (dlmopen_doit): Don't allow RTLD_GLOBAL to be
9587         used when the namespace is not the base namespace.
9588
9589 2006-07-26  Gavin Romig-Koch  <gavin@redhat.com>
9590
9591         * stdlib/cxa_atexit.c (__new_exitfn_called): New variable.
9592         (__new_exitfn): Bump it in every successful call.
9593         * stdlib/cxa_finalize.c (__cxa_finalize): If destructor registered
9594         more exit handlers, call them right away.
9595         * stdlib/exit.h: Declare __new_exitfn_called.
9596
9597 2006-07-25  Ulrich Drepper  <drepper@redhat.com>
9598
9599         * stdlib/cxa_finalize.c (__cxa_finalize): Fix race condition when
9600         calling registered handler.
9601
9602         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Fix comment.
9603         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
9604         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
9605         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
9606         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
9607         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
9608         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
9609         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
9610
9611 2006-07-10  Ulrich Drepper  <drepper@redhat.com>
9612
9613         * elf/dl-lookup.c (dl_new_hash): New functions.
9614         (_dl_lookup_symbol_x): Rename hash to old_hash and don't compute
9615         value here.  Compute new-style hash value.  Pass new hash value
9616         and reference to variable with the old value to do_lookup_x.
9617         (_dl_setup_hash): If DT_GNU_HASH is defined, use it and not
9618         old-style hash table.
9619         (_dl_debug_bindings): Pass new hash value and reference to variable
9620         with the old value to do_lookup_x.
9621         * elf/do-lookup.h (do_lookup_x): Accept additional parameter with
9622         new-style hash value and change old-style hash value parameter to
9623         be a reference.  Reoganize functions to determine whether
9624         new-style hash table is available.  Only fall back on old-style
9625         table.  If old-style hash value is needed, compute it here.
9626         * elf/dynamic-link.h (elf_get_dynamic_info): Relocate DT_GNU_HASH
9627         entry.
9628         * elf/elf.h: Define SHT_GNU_HASH, DT_GNU_HASH, DT_TLSDEC_PLT,
9629         DT_TLSDEC_GOT.  Adjust DT_ADDRNUM.
9630         * include/link.h (struct link_map): Add l_gnu_bitmask_idxbits,
9631         l_gnu_shift, l_gnu_bitmask, l_gnu_buckets and l_gnu_chain_zero.
9632         * Makeconfig: If linker supports --hash-style option add it to all
9633         linker command lines to build DSOs.
9634         * config.make.in: Define have-hash-style.
9635         * configure.in: Test whether linker supports --hash-style option.
9636
9637         * elf/dl-misc.c (_dl_name_match_p): Make MAP parameter const.
9638         * sysdeps/generic/ldsodefs.h: Adjust prototype.
9639
9640 2006-06-27  Ulrich Drepper  <drepper@redhat.com>
9641
9642         * elf/dl-load.c (open_path): Fix test to determine whether DSO is
9643         auditing.
9644
9645         * elf/dl-load.c (_dl_map_object): Try harder to avoid looking at
9646         RPATH of main map twice.
9647
9648 2006-06-22  Ulrich Drepper  <drepper@redhat.com>
9649
9650         * intl/dcigettext.c (DCIGETTEXT): If _nl_find_msg returns -1 don't
9651         look further, return original strings.
9652         (_nl_find_msg): Do not return found translation if the conversion
9653         failed.  Either signal the string is unusable or that something went
9654         wrong and the original should be used.
9655
9656 2006-06-21  Ulrich Drepper  <drepper@redhat.com>
9657
9658         * string/_strerror.c (__strerror_r): Add __builtin_expect.
9659
9660 2006-06-14  Jakub Jelinek  <jakub@redhat.com>
9661
9662         [BZ #2766]
9663         * misc/insremque.c (insque): Handle prev == NULL.
9664         * misc/Makefile (tests): Add tst-insremque.
9665         * misc/tst-insremque.c: New test.
9666
9667 2006-06-17  Ulrich Drepper  <drepper@redhat.com>
9668
9669         [BZ #2792]
9670         * elf/dl-deps.c (expand_dst): Rename __cnt variable to not
9671         conflict with DL_DST_REQUIRED.
9672
9673 2006-06-16  Ulrich Drepper  <drepper@redhat.com>
9674
9675         * nis/nis_subr.c (nis_getnames): Fix the implementation to better
9676         match what Solaris does.
9677
9678 2006-06-04  Ulrich Drepper  <drepper@redhat.com>
9679
9680         * sysdeps/posix/spawni.c (__spawni): Use local_seteuid and
9681         local_setegid instead of seteuid and setegid.
9682         * sysdeps/generic/local-setxid.h: New file.
9683         * sysdeps/unix/sysv/linux/local-setxid.h: New file.
9684
9685         * sysdeps/posix/spawni.c (__spawni): Use non-cancelable interfaces.
9686
9687         * string/Makefile (tests): Add bug-envz1.
9688         * string/bug-envz1.c: New file.
9689
9690 2006-06-02  Jakub Jelinek  <jakub@redhat.com>
9691
9692         * posix/regex_internal.c (re_string_skip_chars): If no character has
9693         been converted at all, set *last_wc to WEOF.  If mbrtowc failed, set wc
9694         to the byte which couldn't be converted.
9695         (re_string_reconstruct): Don't clear valid_raw_len before calling
9696         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
9697         tip_context using re_string_context_at.
9698         * posix/Makefile: Add rules to build and run bug-regex25 test.
9699         * posix/bug-regex25.c: New test.
9700
9701 2006-06-02  Ryan S. Arnold  <rsa@us.ibm.com>
9702
9703         [BZ #2703]
9704         * string/envz.c (envz_strip): Correct erroneously reversed src
9705         and dest parameters to memmove() invocation.
9706
9707 2006-05-30  Jakub Jelinek  <jakub@redhat.com>
9708
9709         * nscd/nscd.h (prune_cache): Add fd argument to prototype.
9710         * nscd/nscd.c (parse_opt): Read response from INVALIDATE request
9711         to make sure the database has been already invalidated.
9712         * nscd/cache.c (prune_cache): Add fd argument.  Write response to fd
9713         after the cache has been invalidated.  Use pthread_mutex_lock rather
9714         than pthread_mutex_trylock if fd != -1.
9715         * nscd/connections.c (invalidate_cache): Add fd argument, write
9716         response to fd if not calling prune_cache, pass fd to prune_cache.
9717         (handle_request): Adjust invalidate_cache caller.
9718         (nscd_run): Pass -1 as fd to prune_cache.
9719
9720 2006-05-30  Ulrich Drepper  <drepper@redhat.com>
9721
9722         * sysdeps/posix/getaddrinfo.c (gaiconf_init): Initialize bits in
9723         the correct place.
9724
9725 2006-05-29  Ulrich Drepper  <drepper@redhat.com>
9726
9727         * nscd/nscd.h (struct database_dyn): Add prunelock field.
9728         * nscd/cache.c (prune_cache): Take prunelock before starting the
9729         work.  Just return in case it is already taken.
9730         * nscd/connections.c (dbs): Initialize .prunelock.
9731
9732 2006-05-25  Ulrich Drepper  <drepper@redhat.com>
9733
9734         * nis/nis_removemember.c (nis_removemember): Avoid unnecessary
9735         copying.  No need to allocate new array for group members.  Just
9736         move the pointers and update the size.
9737
9738         * nis/nis_addmember.c (nis_addmember): Avoid unnecessary copying.
9739         Avoid memory leak in case realloc fails.  Simplification for
9740         better code generation.
9741
9742         Avoid deprecation warning because of libc_hidden_proto for
9743         inet6_option_alloc.
9744         * inet/inet6_option.c (option_alloc): Renamed from
9745         inet6_option_alloc.  Made static.
9746         (inet6_option_alloc): Now a simple wrapper around option_alloc.
9747         (inet6_option_append): Call option_alloc.
9748         * include/netinet/in.h: Remove libc_hidden_proto for
9749         inet6_option_alloc.
9750
9751         * nis/nis_callback.c (__nis_create_callback): Always call xdr_free
9752         for cleanup when cb!=NULL [Coverity CID 233].
9753
9754 2006-05-24  Ulrich Drepper  <drepper@redhat.com>
9755
9756         [BZ #2693]
9757         * inet/Makefile (routines): Add inet6_opt and inet6_rth.
9758         * inet/Versions (libc, GLIBC_2.5): Add inet6_opt_init,
9759         inet6_opt_append, inet6_opt_finish, inet6_opt_set_val, inet6_opt_next,
9760         inet6_opt_find, inet6_opt_get_val, inet6_rth_space, inet6_rth_init,
9761         inet6_rth_add, inet6_rth_reverse, inet6_rth_segments,
9762         and inet6_rth_getaddr.
9763         * inet/netinet/ip6.h (struct ip6_rthdr0): Make ip6r0_addr a flexible
9764         array.
9765         * inet/netinet/in.h (struct ip6_mtuinfo): Define.
9766         Mark inet6_option_* interfaces as deprecated.
9767         Declare inet6_opt_init, inet6_opt_append, inet6_opt_finish,
9768         inet6_opt_set_val, inet6_opt_next, inet6_opt_find, inet6_opt_get_val,
9769         inet6_rth_space, inet6_rth_init, inet6_rth_add, inet6_rth_reverse,
9770         inet6_rth_segments, and inet6_rth_getaddr.
9771         * inet/inet6_opt.c: New file.
9772         * inet/inet6_rth.c: New file.
9773
9774         * inet/netinet/icmp6.h: Pretty printing.
9775
9776         [BZ #2683]
9777         * elf/dl-addr.c (_dl_addr): Don't match undefined references.
9778
9779 2006-05-23  Ulrich Drepper  <drepper@redhat.com>
9780
9781         * nis/nis_lookup.c (nis_lookup): Use __prepare_niscall instead of
9782         doing it all here.  When server does not know the answer do not
9783         fail immediate, try parent first.
9784
9785         * nis/nis_domain_of_r.c (nis_domain_of_r): Add missing buffer
9786         overflow test.
9787
9788 2006-05-20  Ulrich Drepper  <drepper@redhat.com>
9789
9790         * nis/nis_call.c (__prepare_niscall): New function.  Split out
9791         from __do_niscall.
9792         * nis/nis_table.c (__create_ib_request): Renamed from create_ib_request
9793         and exported.
9794         (__follow_path): New function.  Split out from nis_list.
9795         * nis/nis_xdr.h: Add libnsl_hidden_proto for _xdr_ib_request and
9796         _xdr_nis_result.
9797         * nis/nis_xdr.c: Add libnsl_hidden_def for _xdr_ib_request and
9798         _xdr_nis_result.
9799         * nis/libnsl.h: Declare __prepare_niscall, __create_ib_request,
9800         and __follow_path.
9801         * nis/Versions: Export __prepare_niscall, __create_ib_request,
9802         __follow_path, __do_niscall3, _xdr_ib_request, and _xdr_nis_result
9803         from libnsl for version GLIBC_PRIVATE.
9804         * nis/nisplus-parser.h: Remove _nss_nisplus_parse_pwent_chk.
9805         Remove entry parameter from _nss_nisplus_parse_pwent and
9806         _nss_nisplus_parse_grent.
9807         * nis/nss_nisplus/nisplus-parser.c: Likewise.
9808         * nis/nss_nisplus/nisplus-pwd.c: Remove support for SETENT_BATCH_READ
9809         again.  Rewrite getpwent handling to not use nis_first_entry and
9810         nis_next_entry.  Roll out own niscall handling.
9811         * nis/nss_nisplus/nisplus-grp.c: Likewise.
9812
9813         * sunrpc/xdr_rec.c: Fix typo in comment.
9814
9815 2006-05-19  Ulrich Drepper  <drepper@redhat.com>
9816
9817         * nis/nis_call.c (__do_niscall3): Avoid code duplication in error
9818         handling.
9819
9820         * nis/nis_callback.c (internal_nis_do_callback): Don't use malloc
9821         to allocate memory for my_pollfd.  Better initialization of
9822         cb_is_running.  Use TEMP_FAILURE_RETRY.
9823
9824         * malloc/memusage.sh (memusageso): Add quotes.
9825         (memusagestat): Likewise.
9826         * debug/xtrace.sh (pcprofileso): Likewise.
9827         (pcprofiledump): Likewise.
9828         * debug/Makefile ($(objpfx)xtrace): Use $LIB in SLIBDIR
9829         replacement.
9830         * malloc/Makefile ($(objpfx)memusage): Likewise.
9831
9832         * nis/nis_callback.c (__nis_create_callback): Calls to
9833         svcudp_bufcreate and svctcp_create can fail.  Free ->xprt if
9834         asprintf call fails.
9835
9836         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_sendreq): Make sure
9837         no uninitialized memory is passed to sendto.
9838
9839 2006-05-18  Ulrich Drepper  <drepper@redhat.com>
9840
9841         * nis/nis_callback.c (__nis_create_callback): Use asprinf instead
9842         of snprintf+strdup.  Handle OOM.
9843         * nis/nis_callback.c (__nis_create_callback): Allocate cb and
9844         cb->serv together.  Remove now obsolete free calls.
9845         (__nis_destroy_callback): Remove now obsolete free call.
9846
9847 2006-05-18  David Woodhouse  <dwmw2@redhat.com>
9848
9849         * sysdeps/posix/getaddrinfo.c: Add unique labels to the default
9850         RFC3484 precedence table for fec0::/10 and fc00::/7 (site-local
9851         and ULA respectively). Set precedence for IPv4 address to 10 as
9852         defined in RFC3484 for preferring IPv6.
9853         * posix/gai.conf: Update to match the new default tables.
9854
9855 2006-05-18  Jakub Jelinek  <jakub@redhat.com>
9856
9857         * nis/nss_compat/compat-pwd.c (internal_setpwent): If nss_set*ent
9858         returned NSS_STATUS_UNAVAIL, still return NSS_STATUS_SUCCESS.
9859         * nis/nss_compat/compat-spwd.c (internal_setspent): Likewise.
9860         * nis/nss_compat/compat-grp.c (internal_setgrent): Likewise.
9861
9862         * nis/nss_compat/compat-initgroups.c (nss_setgrent, nss_endgrent):
9863         Removed.
9864         (init_nss_interface): Remove initialization of these variables.
9865
9866 2006-05-18  Ulrich Drepper  <drepper@redhat.com>
9867
9868         * nis/nis_call.c (rec_dirsearch): Little optimization: pull
9869         nis_free_directory forward to avoid duplication.
9870
9871 2006-05-17  Ulrich Drepper  <drepper@redhat.com>
9872
9873         * nis/nis_call.c (rec_dirsearch): Handle __nis_finddirectory and
9874         rec_dirsearch returning NULL.
9875         (first_shoot): Handle __nis_finddirectory returning NULL.
9876         (__nisfind_server): Fix leak when rec_dirsearch returns NULL.
9877
9878         * sysdeps/unix/sysv/linux/sys/inotify.h: Define IN_CLOSE, IN_MOVE,
9879         IN_ONLYDIR, IN_DONT_FOLLOW, and IN_MASK_ADD.
9880
9881 2006-05-17  Jakub Jelinek  <jakub@redhat.com>
9882
9883         * sunrpc/key_call.c (getkeyserv_handle): Call auth_destroy if
9884         pid changed.
9885
9886 2006-05-15  Ulrich Drepper  <drepper@redhat.com>
9887
9888         * include/rpc/pmap_prot.h: Mark all functions as hidden.
9889
9890         * nscd/nscd_initgroups.c: Mark __gr_map_handle as hidden.
9891         * nscd/nscd_getgr_r.c: Likewise.
9892
9893         * include/rpc/pmap_rmt.h: Mark all functions as hidden.
9894
9895         * nscd/nscd_getai.c (__hst_map_handle): Mark as hidden.
9896         * nscd/nscd_gethst_r.c (__hst_map_handle): Likewise.
9897
9898         * stdlib/longlong.h (__clz_tab): Mark as hidden.
9899
9900         * iconv/gconv_int.h: Mark __gconv_lock as hidden.
9901
9902         * include/rpc/key_prot.h: Mark all _internal functions as hidden.
9903
9904         * include/rpc/auth.h: Mark xdr_des_block_internal and
9905         xdr_opaque_auth_internal as hidden.
9906
9907         * sysdeps/unix/sysv/linux/getdents.c: Mark __have_no_getdents64 as
9908         hidden.
9909
9910         * include/rpc/xdr.h: Mark all _internal functions as hidden.
9911
9912         * misc/getusershell.c (okshells): Don't use static initializers,
9913         do it dynamically.
9914
9915         * stdlib/fmtmsg.c (keywords): Change type of len element to
9916         uint32_t to not waste space on 64bit machines.
9917
9918         * locale/setlocale.c: Change _nl_category_names into a string.
9919         Add new _nl_category_name_idxs.  Change all users.
9920         * locale/localeinfo.h: Adjust declaration of _nl_category_names.
9921         Declare _nl_category_name_idxs.
9922         * locale/findlocale.c: Adjust for _nl_category_names change.
9923         * locale/loadlocale.c: Likewise.
9924         * locale/newlocale.c: Likewise.
9925         * intl/dcigettext.c: Likewise.
9926
9927         * iconv/gconv_conf.c (add_alias): Move actual alias handling to...
9928         (add_alias2): ...here.  New function.
9929         (__gconv_read_conf): Simplify builtin alias handling.
9930         (builtin_aliases): Convert to string to avoid relocations.
9931         * iconv/gconv_builtin.h: Add comment about correct formatting.
9932
9933 2006-05-15  Jakub Jelinek  <jakub@redhat.com>
9934
9935         * resolv/res_debug.c (loc_ntoa): Make error const.
9936
9937 2006-05-14  Andreas Schwab  <schwab@suse.de>
9938
9939         * math/complex.h [__LDBL_COMPAT]: Use __REDIRECT_NTH.
9940
9941 2006-05-12  Jakub Jelinek  <jakub@redhat.com>
9942
9943         * sysdeps/unix/sysv/linux/sched_getaffinity.c: Include sys/param.h.
9944         (__sched_getaffinity_new): Don't crash if cpusetsize is smaller than
9945         sizeof (cpu_set_t).
9946
9947 2006-05-11  Ulrich Drepper  <drepper@redhat.com>
9948
9949         * resolv/res_debug.c (loc_ntoa): Define error as array, not pointer.
9950
9951         * include/arpa/nameser.h: Declare _ns_flagdata as hidden.
9952
9953         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_master.
9954         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_master.
9955
9956         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypbind_resp.
9957         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypbind_resp.
9958
9959         * nis/nis_xdr.c: Add libnsl_hidden_def for xdr_cback_data.
9960         * include/rpcsvc/nis_callback.h: Add libnsl_hidden_proto for
9961         xdr_cback_data.
9962
9963         * nis/ypupdate_xdr.c: Add libnsl_hidden_def for xdr_ypupdate_args.
9964         * include/rpcsvc/ypupd.h: Add libnsl_hidden_proto for
9965         xdr_ypupdate_args.
9966
9967         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_order.
9968         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_order.
9969
9970         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_maplist.
9971         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_maplist.
9972
9973         * nis/nis_xdr.c: Add libnsl_hidden_def for xdr_obj_p.
9974         * include/rpcsvc/nis_callback.h: New file.
9975
9976         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_val.
9977         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_val.
9978
9979         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypreq_nokey.
9980         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypreq_nokey.
9981
9982         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypmaplist.
9983         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypmaplist.
9984
9985         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypreq_nokey.
9986         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypreq_nokey.
9987
9988         * nis/ypupdate_xdr.c: Add libnsl_hidden_def for xdr_ypdelete_args.
9989         * include/rpcsvc/ypupd.h: Add libnsl_hidden_proto for
9990         xdr_ypdelete_args.
9991
9992         * nis/nis_xdr.h: Mark all functions as hidden.  Remove
9993         __BEGIN_DECLS and __END_DECLS, the header is not installed.
9994
9995         * nis/nis_error.c: Remove table of strings.  Use position
9996         independent mechanism.
9997         * nis/nis_error.h: New file.
9998
9999 2006-05-11  Jakub Jelinek  <jakub@redhat.com>
10000
10001         * locale/programs/ld-time.c (time_finish): If wide era name or
10002         format aren't provided, set both wname and wformat to L"".
10003
10004 2006-05-10  Ulrich Drepper  <drepper@redhat.com>
10005
10006         * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Only store
10007         results if the call was succesful.
10008
10009         * nis/nss-nis.h: Mark __yperr2nss_tab and __yperr2nss_count as hidden.
10010
10011         * nis/nss-nisplus.h: Mark __niserr2nss_tab and __niserr2nss_count
10012         as hidden.
10013
10014 2006-05-10  Jakub Jelinek  <jakub@redhat.com>
10015
10016         * misc/sys/queue.h: Remove uses of all QUEUEDEBUG_* macros.
10017
10018 2006-05-10  Ulrich Drepper  <drepper@redhat.com>
10019
10020         * posix/wordexp.c (parse_glob): No need to check ifs for NULL, the
10021         caller makes sure this is not the case.
10022         (wordexp): Simplify ifs_white creation.  [Coverity CID 231]
10023
10024 2006-05-09  Ulrich Drepper  <drepper@redhat.com>
10025
10026         * posix/wordexp.c: Remove numerous NULL pointer tests before FREE
10027         calls.
10028
10029         * io/ftw.c (open_dir_stream): Return right away if REALLOC fails.
10030         [Coverity CID 229, 230]
10031
10032         * argp/argp-help.c (hol_entry_help): Handle STATE==NULL in ARG and
10033         DGETTEXT calls.
10034         (hol_help): Likewise.  [Coverity CID 226, 227]
10035
10036         * string/argz-replace.c (__argz_replace): Unconditionally call
10037         free on SRC.  [Coverity CID 225]
10038
10039         * nis/nis_creategroup.c (nis_creategroup): No need to duplicate
10040         the return value of __nis_default_owner and __nis_default_group,
10041         it has been especially allocated.  [Coverity CID 224]
10042
10043         * nis/nis_defaults.c (searchXYX): New functions.  Used by both
10044         searchgroup and searchowner.  Significantly simplified.
10045         (__nis_default_owner): Remove duplication.  Do not locally copy the
10046         string before duplicating it.
10047         (__nis_default_group): Likewise.
10048
10049         * nis/nis_lookup.c (nis_lookup): After calling nis_free_directory,
10050         we must clear the variable before calling __nisfind_server.
10051
10052         * nis/nis_lookup.c (nis_lookup): Always free memory allocated with
10053         nis_getnames.  [Coverity CID 223]
10054
10055         * locale/programs/locfile.c (locfile_read): Use alloca instead of
10056         xmalloc to allocate local repertoire name.  [Coverity CID 222]
10057
10058         * iconv/iconv_charmap.c (use_to_charmap): No need to dynamically
10059         allocate memory for the input to add_bytes.  [Coverity CID 221]
10060
10061         * posix/wordexp.c (w_addword): Free word if realloc fails and it
10062         was allocated here.  [Coverity CID 219, 220]
10063
10064         * posix/getconf.c (print_all): Free confstr data after printing.
10065         [Coverity CID 218]
10066
10067         * sysdeps/posix/getaddrinfo.c (gaih_inet): Free canon string if
10068         list allocation fails.  [Coverity CID 215]
10069
10070         * nss/nsswitch.c (__nss_configure_lookup): Fix loop end condition.
10071         [Coverity CID 213]
10072
10073         * argp/argp-help.c (hol_entry_cmp): Don't call canon_doc_option if
10074         string is NULL.  [Coverity CID 212]
10075         * argp/Makefile: Add rules to build and run bug-argp1.
10076         * argp/bug-argp1.c: New file.
10077
10078         * io/ftw.c (ftw_dir): Use __rawmemchr instead of strchr to find
10079         end of string.
10080         * stdlib/canonicalize.c (__realpath): Likewise.
10081
10082         * locale/programs/ld-time.c (time_finish): Don't dereference NULL
10083         pointer.  [Coverity CID 206]
10084
10085         * elf/dl-dst.h (DL_DST_REQUIRED): Be prepared for missing link map
10086         in statically linked code.
10087         * elf/dl-load.c (_dl_dst_substitute): When replacing ORIGIN in
10088         statically built code, be prepared to have no link map.
10089         [Coverity CID 205]
10090
10091         * argp/argp-help.c (fill_in_uparams): Handle STATE==NULL in
10092         dgettext calls. [Coverity CID 204]
10093
10094         * argp/argp-help.c (struct uparams): Remove valid member.  Change
10095         the one user.
10096         (uparam_names): Reduce size.  Avoid relative relocations.
10097         Moved to read-only segment.
10098         (fill_in_uparams): Update for new layout.
10099
10100         * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs): Parameter can be
10101         assumed to always be != NULL. [Coverity CID 202]
10102
10103         * argp/argp-help.c (hol_entry_help): Remove some dead code
10104         [Coverity CID 200].
10105
10106         * nis/nss_nis/nis-service.c (_nss_nis_getservbyport_r): Optimize
10107         away a few more unconditional yperr2nss calls.
10108         (_nss_nis_getservbyname_r): Likewise.
10109
10110 2006-05-06  Ulrich Drepper  <drepper@redhat.com>
10111
10112         * sysdeps/generic/ldsodefs.h: Remove support for non-core
10113         architectures.
10114
10115         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Make sure
10116         that unused memory passed to sendto is nevertheless initialized.
10117
10118         [BZ #2499]
10119         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Avoid
10120         possibly unaligned memory accesses.
10121
10122         * include/arpa/nameser.h: Also optimize NS_PUT16 and NS_PUT32.
10123         * resolv/res_mkquery.c: Use NS_PUT16 and NS_PUT32 instead of __putshort
10124         and __putlong respectively.  Correct buffer overflow check for
10125         NS_NOTIFY_OP.
10126
10127         * resolv/res_send.c (send_vc): Use ns_put16 instead of putshort.
10128
10129         * resolv/res_send.c (res_queriesmatch): Fix typo in comment.
10130         (send_dg): Rewrite error handling to be more compact and avoid
10131         double recomputation of timeouts.  Pass MSG_NOSIGNAL to send.
10132
10133         * include/arpa/nameser.h: Add optimizations for NS_GET16 and NS_GET32.
10134
10135         * resolv/res_send.c (res_nameinquery): Use NS_GET16 directly
10136         instead of ns_get16.
10137         (res_queriesmatch): Likewise.  Minor optimization.
10138
10139         [BZ #2499]
10140         * resolv/res_query.c (__libc_res_nquery): If answerp != NULL,
10141         __libc_res_nsend might reallocate the buffer for the answer.  In
10142         this case we have to reload the HP pointer.
10143
10144 2006-05-05  Ulrich Drepper  <drepper@redhat.com>
10145
10146         * stdio-common/vfscanf.c (memory_error): Remove definition.  Add
10147         some branch prediction hints.
10148
10149         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Define SPLICE_F_*.
10150         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
10151         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
10152         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
10153         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
10154         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
10155         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
10156         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
10157
10158 2006-05-05  Martin Schwidefsky  <schwidefsky@de.ibm.com>
10159
10160         * sysdeps/s390/s390-32/elf/start.S: Replace pc relative relocation
10161         by a GOT relocation to make Scrt1.o position independent.
10162         * sysdeps/s390/s390-64/elf/start.S: Likewise.
10163
10164         * sysdeps/unix/sysv/linux/s390/s390-32/syscall.S: Add support for
10165         six system call parameters.
10166         * sysdeps/unix/sysv/linux/s390/s390-64/syscall.S: Likewise.
10167
10168 2006-05-05  Ulrich Drepper  <drepper@redhat.com>
10169
10170         * sunrpc/svcauth_des.c (cache_init): Use calloc instead of
10171         malloc&bzero.
10172
10173         * sunrpc/svc_udp.c (BZERO): Remove definition.
10174         (CALLOC): Define.
10175         (svc_enablecache): Use CALLOC instead of ALLOC&BZERO.
10176
10177         * sunrpc/des_impl.c: Remove ALT_ECB support.  We never used it.
10178         (des_SPtrans): Use uint32_t type.
10179         (des_skb): Likewise.
10180
10181         * sunrpc/xdr_ref.c (xdr_reference): Use calloc instead of malloc&bzero.
10182
10183 2006-05-05  Jakub Jelinek  <jakub@redhat.com>
10184
10185         [BZ #2509]
10186         * stdio-common/tst-printf.sh: Adjust for tst-printf.c change even
10187         on 32-bit arches.
10188
10189 2006-05-05  Ulrich Drepper  <drepper@redhat.com>
10190
10191         * locale/programs/ld-address.c (address_finish): Fix one more
10192         place where the iso639 array might be accessed beyond the limits.
10193
10194 2006-05-04  Ulrich Drepper  <drepper@redhat.com>
10195
10196         * nis/nis_table.c (nis_list): Avoid clearing res twice before
10197         filling it for the first time.
10198
10199         * nis/nis_table.c (get_tablepath): Renamed from __get_tablepath.
10200         Adjust all callers.
10201         Free res object content before returning.
10202
10203         * sunrpc/xdr_array.c (xdr_array): Use calloc instead of malloc&bzero.
10204
10205         * sunrpc/key_call.c (__rpc_thread_key_cleanup): Also free
10206         client->cl_auth.
10207
10208         * sunrpc/rpc_thread.c (__rpc_thread_destroy): Don't skip entire
10209         cleanup for initial thread, just the free call on TVP.
10210
10211         * nscd/gai.c (__getline): Define.
10212
10213
10214 See ChangeLog.16 for earlier changes.