* malloc/malloc.c: Add branch prediction for use of the hooks.
[platform/upstream/glibc.git] / ChangeLog
1 2009-02-07  Ulrich Drepper  <drepper@redhat.com>
2
3         * malloc/malloc.c: Add branch prediction for use of the hooks.
4
5         * grp/compat-initgroups.c [NOT_IN_libc] (__libc_use_alloca): Define.
6
7 2009-02-06  Ulrich Drepper  <drepper@redhat.com>
8
9         [BZ #7095]
10         * bits/confname.h: Add SUSv7 macros for getconf environments.
11         * bits/environments.h: Likewise.
12         * sysdeps/unix/sysv/linux/i386/bits/environments.h: Likewise.
13         * sysdeps/unix/sysv/linux/powerpc/bits/environments.h: Likewise.
14         * sysdeps/unix/sysv/linux/s390/bits/environments.h: Likewise.
15         * sysdeps/unix/sysv/linux/sparc/bits/environments.h: Likewise.
16         * sysdeps/unix/sysv/linux/x86_64/bits/environments.h: Likewise.
17         * posix/confstr.c: Handle SUSv5 and SUSv7 environments.
18         * posix/getconf.c: Likewise.
19         * posix/sysconf.c: Likewise.
20         * sysdeps/posix/sysconf.c: Likewise.
21         * posix/Makefile (getconf.speclist): Also collect SUSv5 and SUSv7
22         environments.
23
24 2009-01-16  Petr Baudis  <pasky@suse.cz>
25
26         [BZ #9753]
27         * resolv/res_libc.c (__res_maybe_init): Call __res_vinit()
28         even if we currently have zero nscount.
29
30 2009-02-06  Ulrich Drepper  <drepper@redhat.com>
31
32         [BZ #9781]
33         * grp/compat-initgroups.c (compat_call): Switch to use malloc when
34         the input line is too long.
35
36         * po/Makefile (libc.pot): Add f_print as function taking c-format
37         parameter.
38
39         * debug/xtrace.sh: Unify translatable messages.
40         * elf/ldd.bash.in: Likewise.
41         * elf/sprof.c: Likewise.
42         * locale/programs/locale.c: Likewise.
43         * malloc/memusage.sh: Likewise.
44         * nss/getent.c: Likewise.
45
46 2009-02-06  Joseph Myers  <joseph@codesourcery.com>
47
48         * debug/pcprofiledump.c (print_version,
49         argp_program_version_hook): New function.
50         * elf/ldconfig.c (more_help): New function.
51         (argp): Use it.
52         * elf/sln.c (usage): New function.
53         (main): Support --help and --version.
54         * malloc/memusagestat.c (print_version): New function.
55         (argp_program_version_hook): New variable.
56         * nscd/nscd.c (more_help): New function.
57         (argp): Use it.
58         * posix/getconf.c (main): Send --version output to stdout.
59         Support --help.
60         * sunrpc/rpc_main.c (usage, options_usage): Take STREAM and STATUS
61         arguments.  All callers changed.
62         (print_version): New function.
63         (parseargs): Support --help and --version.
64         * sunrpc/rpcinfo.c (usage): Take STREAM argument.  All callers
65         changed.
66         (print_version): New function.
67         (main): Use getopt_long.  Support --help and --version.
68         * sysdeps/unix/sysv/linux/lddlibc4.c (main): Support --help and
69         --version.
70
71 2009-02-06  Ulrich Drepper  <drepper@redhat.com>
72
73         * malloc/memusage.c (DEFAULT_BUFFER_SIZE): Change to 32768.
74         (update_data): Fix handling of wrapping back
75         to the beginning of the buffer.
76
77         [BZ #9823]
78         * stdio-common/psignal.c (psignal): Fix test for empty string.
79
80 2009-02-05  Ulrich Drepper  <drepper@redhat.com>
81
82         * include/rpc/auth.h: Use libc_hidden_proto for _null_auth.
83         * sunrpc/rpc_common.c: Add libc_hidden_def for _null_auth.  Also
84         move _null_auth to .rodata.
85
86         * time/tzset.c (__tzset_parse_tz): DST offset must also allow hour
87         value of 24.
88
89         * intl/dcigettext.c (DCIGETTEXT): Avoid some code duplication.
90
91         * sysdeps/unix/opendir.c (__alloc_dir): We have a lot more memory
92         today than when the original code was written.  Use larger
93         buffers.  This also makes it unnecessary to have stat information,
94         if this causes extra efforts.
95         (__opendir): In case O_DIRECTORY works, don't call fstat just for
96         __alloc_dir.
97
98 2009-02-03  Andrew Stubbs  <ams@codesourcery.com>
99
100         * sysdeps/sh/sh4/dl-trampoline.S: Only set HAVE_FPU if __SH_FPU_ANY__
101         is set.
102         * sysdeps/sh/sh4/setjmp.S: Support SH4-NOFPU.
103         * sysdeps/sh/sh4/__longjmp.S: Likewise.
104         * sysdeps/unix/sysv/linux/sh/sh4/getcontext.S: Likewise.
105         * sysdeps/unix/sysv/linux/sh/sh4/setcontext.S: Likewise.
106         * sysdeps/unix/sysv/linux/sh/sh4/swapcontext.S: Likewise.
107         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Likewise.
108
109 2009-02-04  Ulrich Drepper  <drepper@redhat.com>
110
111         * po/ru.po: Update from translation team.
112
113 2008-11-17  Nathan Sidwell  <nathan@codesourcery.com>
114
115         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (struct sigevent):
116         Add _tid slot to maintain consistency with kernel.
117
118 2009-02-04  Ulrich Drepper  <drepper@redhat.com>
119
120         * libio/wfileops.c (_IO_wfile_underflow): Fix handling of
121         incomplete characters at end of input buffer.
122         * libio/Makefile (tests): Add tst-fgetwc.
123         * libio/tst-fgetwc.c: New file.
124         * libio/tst-fgetwc.input: New file.
125
126 2009-02-02  Andrew Stubbs  <ams@codesourcery.com>
127
128         * sysdeps/unix/sysv/linux/sh/Makefile (libm.so-no-z-defs): Define.
129
130 2009-02-02  Ulrich Drepper  <drepper@redhat.com>
131
132         [BZ #9793]
133         * iconv/gconv_trans.c (__gconv_transliterate): Don't change
134         *OUTBUFSTART unless the whole output fit into the buffer.
135         * iconv/Makefile (tests): Add tst-iconv4.
136         * iconv/tst-iconv4.c: New file.
137
138 2009-02-01  Ulrich Drepper  <drepper@redhat.com>
139
140         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Add new descriptors.
141         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
142
143 2009-01-29  Andrew Stubbs  <ams@codesourcery.com>
144
145         * elf/Makefile (ld.so): Adjust the sed script to insert _begin in to
146         newer linker scripts.
147
148 2009-01-30  Ulrich Drepper  <drepper@redhat.com>
149
150         [BZ #7040]
151         * sysdeps/unix/sysv/linux/sys/inotify.h: Second parameter of
152         inotify_rm_watch should have type int.
153
154 2009-01-06  Steven Munroe  <sjmunroe@us.ibm.com>
155
156         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp):
157         Make aligned_restore_vmx a local symbol.
158         * sysdeps/powerpc/powerpc64/__longjmp-common.S (__longjmp):
159         Likewise.
160
161 2009-01-30  Andreas Jaeger  <aj@suse.de>
162
163         * sysdeps/unix/sysv/linux/bits/shm.h (SHM_EXEC): Define.
164         * sysdeps/unix/sysv/linux/ia64/bits/shm.h (SHM_EXEC): Define.
165         * sysdeps/unix/sysv/linux/powerpc/bits/shm.h (SHM_EXEC): Define.
166         * sysdeps/unix/sysv/linux/s390/bits/shm.h (SHM_EXEC): Define.
167         * sysdeps/unix/sysv/linux/sh/bits/shm.h (SHM_EXEC): Define.
168         * sysdeps/unix/sysv/linux/sparc/bits/shm.h (SHM_EXEC): Define.
169         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h (SHM_EXEC): Define.
170
171 2009-01-11  Ryan S. Arnold  <rsa@us.ibm.com>
172
173         [BZ #9726]
174         * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (_SET_DI_FPSCR,
175         _SET_SI_FPSCR): Clobber fp0 to prevent erroneous test-case passes.
176
177 2009-01-08  Ryan S. Arnold  <rsa@us.ibm.com>
178
179         [BZ #9726]
180         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S
181         (__CONTEXT_FUNC_NAME): Fix mtfsf to use fp31 instead of fp0.
182         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S
183         (__CONTEXT_FUNC_NAME): Fix mtfsf to use fp31 instead of fp0.
184
185 2009-01-11  Thomas Schwinge  <tschwinge@gnu.org>
186
187         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Use
188         memcpy instead of memcmp.
189         (_dl_setup_pointer_guard): Likewise.
190
191 2009-01-30  Ulrich Drepper  <drepper@redhat.com>
192
193         * malloc/malloc.c (sYSMALLOc): Don't use assert when detecting
194         manipulated brk, use malloc_printerr.
195         * misc/sbrk.c (__sbrk): Better error handling for nonsense
196         requests.
197
198 2009-01-30  Jakub Jelinek  <jakub@redhat.com>
199
200         * string/string.h (memchr, strchr, strrchr, strpbrk, strstr, index,
201         rindex): For C++ add inlines so that they can be recognized as
202         builtins.
203         * string/strings.h: Define correct C++ prototypes for gcc 4.4.
204
205 2009-01-29  Ulrich Drepper  <drepper@redhat.com>
206             Jakub Jelinek  <jakub@redhat.com>
207
208         * string/string.h: Define correct C++ prototypes for gcc 4.4.
209         * wcsmbs/wchar.h: Likewise.
210
211 2009-01-29  Ulrich Drepper  <drepper@redhat.com>
212
213         * sysdeps/i386/stackinfo.h (stackinfo_get_sp): Define.
214         (stackinfo_sub_sp): Define.
215
216 2009-01-28  Ulrich Drepper  <drepper@redhat.com>
217
218         [BZ #9750]
219         * nscd/mem.c (gc): Use alloca_count to get the real stack usage.
220         * include/alloca.h (alloca_account): Define.
221         * sysdeps/x86_64/stackinfo.h (stackinfo_get_sp): Define.
222         (stackinfo_sub_sp): Define.
223
224         * nscd/connections.c (nscd_init): If database file access fails
225         check whether this is due to permission problems and bail in that
226         case.
227
228         [BZ #9741]
229         * nscd/mem.c (gc): Fix assignment of he_data in case malloc is used.
230         Reported by Jun'ichi Nomura <j-nomura@ce.jp.nec.com>.
231
232 2009-01-14  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
233
234         * sysdeps/unix/sysv/linux/sh/sysdep.h (INTERNAL_SYSCALL):
235         Add "t" to clobber list.
236         (INTERNAL_SYSCALL_NCS): Likewise.
237
238 2009-01-28  Ulrich Drepper  <drepper@redhat.com>
239
240         * nss/getent.c (print_networks): Don't print comma between aliases.
241
242 2009-01-23  Ulrich Drepper  <drepper@redhat.com>
243
244         * sysdeps/unix/sysv/linux/tst-clone.c (do_test): Avoid warning.
245
246         * misc/hsearch_r.c (hcreate_r): We need at least three elements in
247         the hash table.
248         * misc/Makefile (tests): Add bug-hsearch1.
249         * misc/bug-hsearch1.c: New file.
250
251 2009-01-22  Roland McGrath  <roland@redhat.com>
252
253         * Makeconfig (%.v.i): Strip trailing # comments,
254         not only whole-line comments.
255
256 2009-01-10  Ulrich Drepper  <drepper@redhat.com>
257
258         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Take
259         one parameter.  If non-NULL use it to initialize return value.
260         (_dl_setup_pointer_guard): New function.
261         * sysdeps/unix/sysv/linux/dl-osinfo.h: Likewise.
262         * sysdeps/generic/ldsodefs.h: Declare _dl_random.
263         * elf/rtld.c (security_init): Pass _dl_random to
264         _dl_setup_stack_chk_guard.  Call _dl_setup_pointer_guard to initialize
265         pointer_chk_guard.
266         * elf/dl-sysdep.c (_dl_random): New variable.
267         (_dl_sysdep_start): Handle AT_RANDOM.
268         (_dl_show_auxv): Likewise.
269         * elf/dl-support.c (_dl_random): New variable.
270         (_dl_aux_init): Handle AT_RANDOM.
271         * csu/libc-start.c [!SHARED] (libc_start_main): Pass _dl_random
272         to _dl_setup_stack_chk_guard.
273
274         * elf/elf.h (AT_RANDOM): Define AT_BASE_PLATFORM and AT_RANDOM.
275
276 2009-01-10  Roland McGrath  <roland@redhat.com>
277
278         * nscd/nscd.c (parse_opt): Use argp_error for bad -i argument.
279
280 2009-01-08  Ulrich Drepper  <drepper@redhat.com>
281
282         * sysdeps/i386/fpu/libm-test-ulps: Adjust expm1 errors.
283
284         [BZ #9706]
285         * nss/nss_files/files-parse.c (strtou32): New function.
286         (INT_FIELD): Use strotu32 instead of strtoul to unify behavior
287         across 32-bit and 64-bit platforms.
288         (INT_FIELD_MAYBE_NULL): Likewise.
289
290 2009-01-08  Jakub Jelinek  <jakub@redhat.com>
291
292         [BZ #9720]
293         * sysdeps/unix/sysv/linux/bits/resource.h (enum __rusage_who): Avoid
294         comma after RUSAGE_CHILDREN if not -D_GNU_SOURCE.
295         * sysdeps/unix/sysv/linux/sparc/bits/resource.h (enum __rusage_who):
296         Likewise.
297
298 2009-01-05  Paolo Bonzini  <bonzini@gnu.org>
299
300         [BZ #697]
301         * posix/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
302         being NULL also if there are no backreferences.
303         * posix/rxspencer/tests: Add testcases.
304
305 2009-01-04  Paolo Bonzini  <bonzini@gnu.org>
306
307         [BZ #9697]
308         * posix/bug-regex17.c: Add testcases.
309         * posix/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
310         handling.
311
312 2009-01-05  Martin Schwidefsky  <schwidefsky@de.ibm.com>
313
314         * sysdeps/unix/sysv/linux/s390/bits/libc-vdso.h: New file.
315         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: New file.
316         * sysdeps/unix/sysv/linux/s390/init-first.c: New file.
317         * sysdeps/unix/sysv/linux/s390/Makefile (sysdep_routines): Add dl-vdso
318         for elf subdir.
319         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (INLINE_VSYSCALL,
320         INTERNAL_VSYSCALL, INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK,
321         INTERNAL_SYSCALL_NCS, HAVE_CLOCK_GETRES_VSYSCALL and
322         HAVE_CLOCK_GETTIME_VSYSCALL: Define.
323         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
324         * sysdeps/unix/sysv/linux/s390/Versions: New file.
325
326 2008-12-31  Paolo Bonzini  <bonzini@gnu.org>
327
328         * posix/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
329         * posix/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
330         re_string_skip_chars, re_string_reconstruct): Likewise.
331         * posix/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
332
333 2008-12-31  Rafael Avila de Espindola  <espindola@google.com>
334
335         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr2_r): Check and
336         adjust the buffer alignment.
337
338 2009-01-07  Samuel Thibault  <samuel.thibault@ens-lyon.org>
339
340         * sysdeps/mach/hurd/Makefile (sysdep_headers) [subdir=socket]:
341         Add net/ethernet.h net/if_arp.h net/if_ether.h net/if_ppp.h
342         net/route.h.
343
344         * hurd/report-wait.c (describe_number): Use __stpcpy to prepend
345         flavor to description only when flavor is not NULL.
346
347         * hurd/hurdsig.c (signal_allowed): Unlock _hurd_dtable_lock
348         mutex after SIGIO/SIGURG lookup loop.
349
350 2009-01-03  Samuel Thibault  <samuel.thibault@ens-lyon.org>
351
352         * bits/resource.h (PRIO_PROCESS, PRIO_PGRP, PRIO_USER): Add macros.
353
354 2009-01-03  Ulrich Drepper  <drepper@redhat.com>
355
356         * sysdeps/unix/sysv/linux/i386/sysdep.h: Describe 6th argument
357         handling.
358
359 2009-01-02  Ulrich Drepper  <drepper@redhat.com>
360
361         * sysdeps/unix/sysv/linux/kernel-features.h
362         (__ASSUME_FUTEX_CLOCK_REALTIME): Define.
363
364         * wcsmbs/wcsnrtombs.c (__wcsnrtombs): Create temporary state object
365         if no output is written.
366
367         * version.h: Bump to 2.10 development.
368
369         * posix/getconf.c: Update copyright year.
370         * nss/getent.c: Likewise.
371         * iconv/iconvconfig.c: Likewise.
372         * iconv/iconv_prog.c: Likewise.
373         * elf/ldconfig.c: Likewise.
374         * catgets/gencat.c: Likewise.
375         * csu/version.c: Likewise.
376         * elf/ldd.bash.in: Likewise.
377         * elf/sprof.c (print_version): Likewise.
378         * locale/programs/locale.c: Likewise.
379         * locale/programs/localedef.c: Likewise.
380         * nscd/nscd.c (print_version): Likewise.
381         * debug/xtrace.sh: Likewise.
382         * malloc/memusage.sh: Likewise.
383         * malloc/mtrace.pl: Likewise.
384         * debug/catchsegv.sh: Likewise.
385
386 2008-12-29  Mike Frysinger  <vapier@gentoo.org>
387
388         * iconvdata/Makefile (iconv-rules): Use LC_ALL=C when running awk
389         script.
390
391 2008-12-29  Ulrich Drepper  <drepper@redhat.com>
392
393         * sysdeps/posix/getaddrinfo.c (gaih_inet): When the
394         gethostbyname4_r function call succeeded, just leave the loop.
395
396         [BZ #9694]
397         * wcsmbs/wchar.h: Move undefs for local __need_* constants to the
398         very end.
399         * wctype/wctype.h: Get wint_t definition directly from <stddef.h>.
400         * wctype/Makefile (tests): Add bug-wctypeh.
401         * wctype/bug-wctypeh.c: New file.
402
403         * nscd/nscd_gethst_r.c (nscd_gethst_r): Don't use nscd if
404         LOCALDOMAIN is defined.
405         * nscd/nscd_getai.c (__nscd_getai): Likewise.
406
407         * sysdeps/x86_64/bits/select.h: New file.
408
409         * resolv/res_init.c (__res_vinit): Count all servers in statp->nscount.
410
411 2008-12-21  Bruno Haible  <bruno@clisp.org>
412
413         [BZ #9677]
414         * wcsmbs/mbsnrtowcs.c (__mbsnrtowcs): Create temporary state object
415         if no output is written.
416
417 2008-12-13  Klaus Dittrich  <kladit@arcor.de>
418
419         * login/utmp_file.c (pututline_file): Replace call to dup2 with
420         libc internal symbol __dup2 to avoid access through the PLT.
421
422 2008-12-08  Ulrich Drepper  <drepper@redhat.com>
423
424         [BZ #6545]
425         * sysdeps/unix/sysv/linux/bits/socket.h (SCM_CREDENTIALS): Make
426         available only for __USE_GNU.
427
428         * inet/Makefile (tests): Add tst-getni2.
429         * inet/tst-getni2.c: New file.
430
431         [BZ #7080]
432         * inet/getnameinfo.c (getnameinfo): Check for output buffers being
433         NULL when NI_NAMEREQD is set.
434         Patch mostly by Yang Hongyang <yanghy@cn.fujitsu.com>.
435         * inet/Makefile (tests): Add tst-getni1.
436         * inet/tst-getni1.c: New file.
437
438 2008-12-03  Petr Baudis  <pasky@suse.cz>
439
440         [BZ #7067]
441         * nscd/connections.c (invalidate_cache): Use prune_run_lock
442         instead of prune_lock.
443         (nscd_run_prune): Before calling prune_cache, take prune_run_lock.
444         * nscd/nscd.h (database_dyn): Add prune_run_cache.
445
446 2008-12-07  Ulrich Drepper  <drepper@redhat.com>
447
448         * resolv/res_send.c (send_dg): Use correct guards for SOCK_CLOEXEC
449         use.
450
451         * sysdeps/unix/sysv/linux/kernel-features.h: Fix typo in accept4
452         handling.
453
454         * resolv/res_init.c (__res_vinit): Always assign to statp->nscount
455         after reading name server list.
456
457         [BZ #7058]
458         * nis/nss_nis/nis-hosts.c (_nss_nis_gethostbyname4_r): Fix memory
459         handling for host name aliases.
460
461 2008-11-24  Arkadiusz MiÅ›kiewicz  <arekm@maven.pl>
462
463         * sysdeps/i386/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Use LOAD_PIC_REG
464         instead of doing things manually.
465
466 2008-11-26  Chris Steel  <chris.steel.lnx@googlemail.com>
467
468         * posix/regex_internal.h (build_wcs_upper_buffer):
469         Return type is reg_error_t.
470
471 2008-12-05  Ulrich Drepper  <drepper@redhat.com>
472
473         * posix/globtest.sh: Use mktemp to create temporary file and
474         directory.
475
476         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_SET_S): Handle large
477         sets correctly.
478         (__CPU_CLR_S): Likewise.
479         (__CPU_ISSET_S): Likewise.
480
481 2008-12-05  Joseph Myers  <joseph@codesourcery.com>
482             Ulrich Drepper  <drepper@redhat.com>
483
484         * scripts/firstversion.awk: Use custom comparison function to compare
485         version numbers.
486         * scripts/versions.awk: Use sort invocation which can handle
487         multi-digit sub-version numbers.
488
489 2008-12-04  Ulrich Drepper  <drepper@redhat.com>
490
491         * locale/programs/ld-address.c (DEFINE_LANGUAGE_CODE2): Define.
492         * locale/iso-639.def: Add Chhattisgarhi entry.
493
494 2008-12-02  Ulrich Drepper  <drepper@redhat.com>
495
496         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname3_r): Recognize
497         ESRCH return value.
498         (_nss_dns_gethostbyname4_r): Likewise.
499         * resolv/res_init.c (__res_vinit): Initialize nscount to zero.
500         * sysdeps/posix/getaddrinfo.c (gaih_inet): In case we use
501         gethostbyname4_r, we don't have a separate IPv6 status, so copy
502         the no_data variable.
503
504         * resolv/res_init.c (__res_vinit): Fill in IPv4 name server
505         information at the correct index.
506
507         * socket/sys/socket.h: Declare accept4.
508         * socket/accept4.c: New file.
509         * sysdeps/unix/sysv/linux/accept4.c: New file.
510         * sysdeps/unix/sysv/linux/i386/accept4.S: New file.
511         * socket/Makefile (routines): Add accept4.
512         * socket/Versions: Export accept4 with version GLIBC_2.10.
513         * socket/paccept.c: Removed.
514         * sysdeps/unix/sysv/linux/paccept.c: Removed.
515         * sysdeps/unix/sysv/linux/i386/paccept.S: Removed.
516         * Versions.def: Define GLIBC_2.10 for libc.
517         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_ACCEPT4.
518
519         * nscd/connections.c: Use accept4.
520
521         * sysdeps/unix/sysv/linux/i386/socket.S: Fix comment.
522
523 2008-12-01  Ulrich Drepper  <drepper@redhat.com>
524
525         * resolv/res_send.c (send_dg): Create sockets with non-blocking
526         flag already set.
527
528         * stdlib/setenv.c (unsetenv): Don't search environment if it does
529         not exist.
530         * stdlib/Makefile (tests): Add tst-unsetenv1.
531         * stdlib/tst-unsetenv1.c: New file.
532
533 2008-11-29  Ulrich Drepper  <drepper@redhat.com>
534
535         * login/utmp_file.c (file_writable): New variable.
536         (setutent_file): Don't try to open file for writing.
537         (pututline_file): Before writing, make descriptor writable if
538         necessary.
539
540 2008-11-26  Ulrich Drepper  <drepper@redhat.com>
541
542         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Only restrict search
543         to IPv4 or IPv6 if an interface has been found.
544
545 2008-11-26  Roland McGrath  <roland@redhat.com>
546
547         * sysdeps/unix/sysv/linux/alpha/ipc_priv.h: Renamed to ...
548         * sysdeps/unix/sysv/linux/powerpc/ipc_priv.h: ... here.
549
550         * sysdeps/unix/sysv/linux/alpha/wordexp.c: Renamed to ...
551         * sysdeps/unix/sysv/linux/ia64/wordexp.c: ... here.
552         * sysdeps/unix/sysv/linux/sparc/sparc64/wordexp.c: Change #include.
553
554         * elf/elf.h (NT_386_IOPERM): New macro.
555         (NT_PPC_VSX): New macro.
556
557 2008-11-25  Roland McGrath  <roland@redhat.com>
558
559         * sysdeps/alpha, sysdeps/unix/bsd/osf/alpha,
560         sysdeps/unix/bsd/Attic/osf1/alpha, sysdeps/unix/sysv/linux/alpha,
561         sysdeps/unix/sysv/linux/alpha/alpha, sysdeps/unix/alpha,
562         sysdeps/mach/alpha, sysdeps/mach/hurd/alpha:
563         Subdirectories moved to ports repository.
564         * configure.in (base_machine): Remove alpha case.
565
566 2008-11-25  Thomas Schwinge  <tschwinge@gnu.org>
567
568         * sysdeps/mach/strerror_l.c: New file.
569
570 2008-11-13  Ryan S. Arnold  <rsa@us.ibm.com>
571
572         [BZ #6411]
573         * sysdeps/powerpc/fpu/Makefile: Added test case tst-setcontext-fpscr.
574         * sysdeps/powerpc/fpu/feholdexcpt.c (_FPU_MASK_ALL): Define to replace
575         magic numbers.
576         * sysdeps/powerpc/fpu/fenv_libc.h (fesetenv_register): Dynamically
577         choose mtfsf insn based on PPC_FEATURE_HAS_DFP.
578         (relax_fenv_state): Same as above.
579         (FPSCR_29): Reserve bit in ISA 2.05.
580         (FPSCR_NI): Provide define for compat.
581         * sysdeps/powerpc/fpu/fesetenv.c (_FPU_MASK_ALL): Define to replace
582         magic numbers.
583         * sysdeps/powerpc/fpu/feupdateenv.c (_FPU_MASK_ALL): Define to replace
584         magic numbers.
585         * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c: New file.  Test case to
586         test setcontext and swapcontext with dynamic 64-bit FPSCR detection.
587         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp): Adjust
588         access to hwcap to account for hwcap size increase to uint64_t.
589         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S (__sigsetjmp ):
590         Likewise.
591         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S
592         (*setcontext): Likewise.
593         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/setcontext.S:
594         New file.
595         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/swapcontext.S:
596         New file.
597         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S
598         (*setcontext): dynamically select mtfsf insn based on
599         PPC_FEATURE_HAS_DFP. Adjust access to hwcap to account for hwcap size
600         increase to uint64_t.
601         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S
602         (*swapcontext): dynamically select mtfsf insn based on
603         PPC_FEATURE_HAS_DFP.  Adjust access to hwcap to account for hwcap size
604         increase to uint64_t.
605         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/setcontext.S:
606         New file.
607         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/swapcontext.S:
608         New file.
609         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
610         (*setcontext): dynamically select mtfsf insn based on
611         PPC_FEATURE_HAS_DFP.
612         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
613         (*swapcontext): dynamically select mtfsf insn based on
614         PPC_FEATURE_HAS_DFP.
615
616 2008-11-13  Ulrich Drepper  <drepper@redhat.com>
617
618         * version.h: Bump for 2.9 release.
619         * include/features.h (__GLIBC_MINOR__): Bump to 9.
620
621         [BZ #7029]
622         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_ALLOC_SIZE):
623         Multiply with sizeof of __cpu_mask, not 8 unconditionally after
624         all the rounding.
625
626 2008-11-11  Ulrich Drepper  <drepper@redhat.com>
627
628         [BZ #7009]
629         * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): Don't abort for
630         unknown request types for now.
631
632 2008-11-11  Roland McGrath  <roland@redhat.com>
633
634         * sysdeps/x86_64/configure: New file.
635
636         * configure.in: Add AC_SUBST(libc_cv_cpp_asm_debuginfo).
637         * configure: Regenerated.
638
639 2008-11-03  Martin Schwidefsky  <schwidefsky@de.ibm.com>
640
641         * sysdeps/s390/s390-64/dl-trampoline.S (_dl_runtime_profile): Use the
642         correct instruction to remove the stack frame.
643
644 2008-11-03  Michael Matz  <matz@suse.de>
645
646         * sysdeps/s390/bits/atomic.h (__arch_compare_and_exchange_val_32_acq,
647         __arch_compare_and_exchange_val_64_acq): Add "memory" clobber.
648
649 2008-11-07  Jakub Jelinek  <jakub@redhat.com>
650
651         * include/stdio.h (__builtin_fwrite, __builtin_fwrite_unlocked):
652         Remove.
653
654         * bits/libc-tsd.h (__libc_tsd_define, __libc_tsd_address,
655         __libc_tsd_get, __libc_tsd_set): Add TYPE argument, use it as the type
656         of the thread variable instead of void *.
657         * sysdeps/mach/hurd/bits/libc-tsd.h (__libc_tsd_define,
658         __libc_tsd_address, __libc_tsd_get, __libc_tsd_set): Likewise.
659         * include/ctype.h (CTYPE_B, CTYPE_TOUPPER, CTYPE_TOLOWER): Adjust
660         __libc_tsd_define arguments.
661         (__ctype_b_loc, __ctype_toupper_loc, __ctype_tolower_loc): Adjust
662         __libc_tsd_address arguments.  Remove union hack.
663         * include/rpc/rpc.h (RPC_VARS): Adjust __libc_tsd_define arguments.
664         * sunrpc/rpc_thread.c (RPC_VARS): Likewise.
665         (__rpc_thread_destroy, rpc_thread_multi, __rpc_thread_variables):
666         Adjust __libc_tsd_{set,get} arguments.
667         * ctype/ctype-info.c (CTYPE_B, CTYPE_TOUPPER, CTYPE_TOLOWER): Adjust
668         __libc_tsd_define arguments.
669         * locale/uselocale.c (__uselocale): Adjust __libc_tsd_{set,get}
670         arguments.
671         * locale/lc-ctype.c (_nl_postload_ctype): Likewise.
672         * locale/global-locale.c (__libc_tsd_LOCALE): Adjust type.
673         (LOCALE): Adjust __libc_tsd_define arguments.
674         * locale/localeinfo.h (_NL_CURRENT_LOCALE): Adjust __libc_tsd_get
675         arguments.
676         (LOCALE): Adjust __libc_tsd_define arguments.
677         * sysdeps/mach/hurd/malloc-machine.h (MALLOC): Adjust __libc_tsd_define
678         arguments.
679         (tsd_setspecific, tsd_getspecific): Adjust __libc_tsd_{set,get}
680         arguments.
681
682 2008-11-02  Ulrich Drepper  <drepper@redhat.com>
683
684         * malloc/malloc.c (public_rEALLOc): When new arena is used, copy
685         really all bytes.  Patch by Denys Vlasenko <dvlasenk@redhat.com>.
686
687 2008-11-01  Ulrich Drepper  <drepper@redhat.com>
688
689         [BZ #6966]
690         * misc/hsearch_r.c (hsearch_r): Fix secondary hash function.
691
692 2008-10-24  Joseph Myers  <joseph@codesourcery.com>
693             Ulrich Drepper  <drepper@redhat.com>
694
695         * math/tgmath.h (__floating_type): Use __builtin_classify_type in
696         definition for GCC 3.1 and later.
697
698 2008-10-31  Jakub Jelinek  <jakub@redhat.com>
699
700         * elf/dl-tls.c (__tls_get_addr): After calling _dl_update_slotinfo
701         refetch dtv, as it might have changed.
702         * elf/Makefile: Add rules to build and run tst-tls18.
703         * elf/tst-tls18.c: New test.
704         * elf/tst-tlsmod18a.c: New file.
705
706 2008-09-09  Aurelien Jarno  <aurelien@aurel32.net>
707
708         [BZ #6875]
709         * iconvdata/gconv-modules: Add LATIN9 as an alias to ISO-8859-15.
710
711 2008-10-31  Ulrich Drepper  <drepper@redhat.com>
712
713         [BZ #6867]
714         * sysdeps/powerpc/elf/rtld-global-offsets.sym: Fix typo.
715
716         [BZ #6919]
717         * posix/spawnattr_getschedparam.c (posix_spawnattr_getschedparam):
718         Fix length of copy operation.
719
720 2008-10-02  Pierre Habouzit <madcoder@debian.org>
721
722         * sysdeps/unix/sysv/linux/eventfd.c (eventfd): Use the eventfd2 syscall
723         and fix its calling convention.
724
725 2008-10-07  Andreas Schwab  <schwab@suse.de>
726
727         [BZ #6942]
728         * resolv/res_send.c (send_vc): Fix last change.
729         (send_dg): Align here as well.
730
731 2008-10-31  Ulrich Drepper  <drepper@redhat.com>
732
733         * sysdeps/unix/sysv/linux/ulimit.c (__ulimit): Handle UL_GETFSIZE
734         return value in case rlimit is RLIM_INFINITY.
735
736         [BZ #6947]
737         * sysdeps/unix/sysv/linux/ulimit.c (__ulimit): Fix return value
738         for UL_SETFSIZE.
739         * resource/Makefile (tests): Add bug-ulimit1.
740         * resource/bug-ulimit1.c: New file.
741
742         [BZ #6974]
743         * sunrpc/rpc_main.c (mkfile_output): Properly handle filename
744         without dot.  Properly terminate the string with a null byte.
745         Based on a patch by Aurelien Jarno <aurelien@aurel32.net>.
746
747         [BZ #6980]
748         * debug/getgroups_chk.c (__getgroups_chk): Return EINVAL error for
749         negative sizees.
750         * posix/bits/unistd.h (getgroups): Call __getgroups_chk for
751         negative __size.
752
753         [BZ #6995]
754         * sysdeps/powerpc/powerpc32/dl-machine.c: Fix typo in message.
755
756 2008-10-30  Ulrich Drepper  <drepper@redhat.com>
757
758         * grp/initgroups.c (internal_getgrouplist): Don't prematurely
759         abort if there is no initgroups_dyn function.
760
761         * resolv/res_send.c (send_dg): On timeout, only return nonzero
762         result if any of the queries really provided an answer.
763
764 2008-10-28  Ulrich Drepper  <drepper@redhat.com>
765
766         * po/lt.po: Update from translation team.
767
768 2008-10-26  Ulrich Drepper  <drepper@redhat.com>
769
770         * po/id.po: Update from translation team.
771
772 2008-10-24  Ulrich Drepper  <drepper@redhat.com>
773
774         * resolv/res_query.c (__libc_res_nquery): Add a few casts.
775         Fix tests for existence of second reply.
776
777 2008-10-23  Ulrich Drepper  <drepper@redhat.com>
778
779         * po/id.po: New file.
780         Contributed by the Indonesian translation team.
781
782 2008-10-22  Dmitry V. Levin  <ldv@altlinux.org>
783
784         * misc/syslog.c (openlog_internal): Fix __have_sock_cloexec
785         initialization.
786
787 2008-10-17  Jakub Jelinek  <jakub@redhat.com>
788
789         * elf/Makefile: Add rules to build and run tst-tls17.
790         * elf/tst-tls17.c: New test.
791         * elf/tst-tlsmod17a.c: New file.
792         * elf/tst-tlsmod17b.c: Likewise.
793
794 2008-10-17  Ulrich Drepper  <drepper@redhat.com>
795
796         * stdlib/divmod_1.c: Use correct type for dummy variable.
797         * stdlib/mod_1.c: Likewise.
798
799 2008-10-16  Ulrich Drepper  <drepper@redhat.com>
800
801         * elf/dl-tls.c (_dl_update_slotinfo): Copy all of the initial DTV.
802
803 2008-10-16  Jakub Jelinek  <jakub@redhat.com>
804
805         * sysdeps/unix/sysv/linux/sys/signalfd.h (signalfd): Fix __THROW vs.
806         __nonnull order for C++.
807         * sysdeps/unix/sysv/linux/alpha/sys/signalfd.h (signalfd): Likewise.
808         * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h (signalfd): Likewise.
809
810 2008-10-01  Daniel Jacobowitz  <dan@codesourcery.com>
811
812         * stdlib/longlong.h: Update from GCC.
813
814 2008-10-09  Jakub Jelinek <jakub@redhat.com>
815             David S. Miller  <davem@davemloft.net>
816
817         * sysdeps/sparc/sparc64/sparcv9v/memcpy.S: When not USE_BPR,
818         make sure any registers used with 64-bit 'branch-on-register'
819         instructions have their top 32-bits clear.
820         * sysdeps/sparc/sparc64/sparcv9v/memset.S: Likewise.
821         * sysdeps/sparc/sparc64/sparcv9v2/memcpy.S: Likewise.
822
823 2008-09-18  Andreas Schwab  <schwab@suse.de>
824
825         [BZ #6942]
826         * resolv/res_send.c (send_vc): Fix use of unaligned address.
827         Properly handle partial reads.
828
829 2008-10-01  Mark Shinwell  <shinwell@codesourcery.com>
830
831         * elf/elf.h (STO_MIPS_PLT): New.
832         (R_MIPS_COPY): New.
833         (R_MIPS_JUMP_SLOT): New.
834         (R_MIPS_NUM): Redefine to 128.
835         (DT_MIPS_PLTGOT): New.
836         (DT_MIPS_RWPLT): New.
837         (DT_MIPS_NUM): Redefine to 0x35.
838
839 2008-10-01  Ulrich Drepper  <drepper@redhat.com>
840
841         * timezone/africa: Update from tzdata2008f.
842         * timezone/asia: Likewise.
843         * timezone/australasia: Likewise.
844         * timezone/europe: Likewise.
845         * timezone/leapseconds: Likewise.
846         * timezone/northamerica: Likewise.
847         * timezone/southamerica: Likewise.
848         * timezone/zone.tab: Likewise.
849
850 2008-09-30  Ulrich Drepper  <drepper@redhat.com>
851
852         * nscd/connections.c: Disable use of paccept for now.
853
854 2008-09-29  Ulrich Drepper  <drepper@redhat.com>
855
856         * socket/Versions: Remove paccept export for GLIBC_2.9.
857         * socket/Makefile (routines): Remove paccept.
858         * socket/sys/socket.h: Remove paccept declaration.
859
860         * po/sv.po: Update from translation team.
861
862 2008-09-22  Deborah S. Townsend  <dstownse@us.ibm.com>
863
864         * sysdeps/s390/s390-64/s390x-mcount.S: Replace ahi with aghi.
865         * sysdeps/unix/sysv/linux/s390/s390-64/socket.S: Likewise.
866
867 2008-09-16  Ulrich Drepper  <drepper@redhat.com>
868
869         * dlfcn/dlopen.c (dlopen_doit): Allow __RTLD_SPROF flag.
870         Patch by Olivier Fourdan <ofourdan@redhat.com>.
871
872 2008-09-15  Ulrich Drepper  <drepper@redhat.com>
873
874         * sunrpc/rpc/svc.h: Declare svcfd_create.
875         Patch by Michael Solberg <msolberg@redhat.com>.
876
877 2008-09-12  Flavio Leitner  <fleitner@redhat.com>
878             Ulrich Drepper  <drepper@redhat.com>
879
880         * malloc/malloc.c (public_vALLOc): Try other arenas in case
881         _int_valloc fails.
882         (public_pVALLOc): Likewise.
883
884 2008-09-02  Andreas Jaeger  <aj@suse.de>
885
886         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: Fix last
887         commit.
888
889 2008-08-26  Aurelien Jarno  <aurelien@aurel32.net>
890
891         [BZ #6860]
892         * hurd/hurd/signal.h (HURD_MSGPORT_RPC): Fix a typo.
893
894 2008-07-18  Daniel Jacobowitz  <dan@codesourcery.com>
895
896         * Makefile (check-data): Check data directory in add-ons.
897         * elf/Makefile (check-data): Likewise.
898
899 2008-08-18  Roland McGrath  <roland@redhat.com>
900
901         * configure.in (--with-cpu): Check compiler support for -march/-mcpu.
902         * configure: Regenerated.
903         * config.make.in (cflags-cpu): New substituted variable.
904         (with-cpu): Variable removed.
905         * Makeconfig (+cflags): Use $(cflags-cpu), not $(with-cpu).
906
907 2008-08-14  Ryan S. Arnold  <rsa@us.ibm.com>
908
909         [BZ #6845]
910         * sysdeps/powerpc/fpu/bits/mathinline.h (__signbitl): Copy new
911         __signbitl definition and __LONG_DOUBLE_128__ guard from:
912         * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h: Remove as
913         redundant.  Functions which call floating point assembler operations
914         should go into a sysdeps powerpc/fpu directory.
915
916 2008-08-15  Ulrich Drepper  <drepper@redhat.com>
917
918         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Define MAP_STACK.
919         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Likewise.
920
921 2008-08-14  Ulrich Drepper  <drepper@redhat.com>
922
923         * sysdeps/x86_64/memset.S: Reduce size of tables for PIC.
924
925         * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): Undo all
926         change related to AT_EXECFN.  We cannot use that string.
927         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Remove
928         _dl_execfn member.
929         * elf/dl-support.c: Remove _dl_execfn variable.
930         (_dl_aux_init): Remove handling of AT_EXECFN.
931         * elf/dl-sysdep.c (_dl_sysdep_start): Remove handling of AT_EXECFN.
932         * elf/rtld.c (process_envvars): Remove use of __ASSUME_AT_EXECFN.
933
934 2008-08-13  Ulrich Drepper  <drepper@redhat.com>
935
936         [BZ #6544]
937         * libio/fmemopen.c: Implement binary mode.  In this mode no NUL
938         byte gets added to writes and seeks from the end use the length of
939         the buffer and not the currently terminating NUL byte.
940
941         [BZ #6634]
942         * login/utmp_file.c (getutent_r_file): Take additional parameter.
943         Set to true if locking failed.
944         (getutid_r_file): Adjust caller.
945         (pututline_file): Likewise.  Return NULL in this case.
946         Patch mostly by halesh.s@gmail.com.
947
948 2008-08-12  Ulrich Drepper  <drepper@redhat.com>
949
950         [BZ #6589]
951         * sysdeps/unix/sysv/linux/ifaddrs.c (struct sockaddr_ll_max):
952         Define.
953         (struct ifaddrs_storage): Use it instead of sockaddr_ll.
954
955 2008-08-12  Ryan S. Arnold  <rsa@us.ibm.com>
956
957         [BZ #6839]
958         * sysdeps/powerpc/powerpc32/dl-machine.c (CHECK_STATIC_TLS): Remove
959         macro since it is now available in elf/dynamic-link.h.
960
961 2008-08-12  Roland McGrath  <roland@frob.com>
962
963         * hurd/hurd/signal.h (HURD_MSGPORT_RPC): Avoid -Wparenthesis triggers,
964         in case used outside of libc.
965         Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>
966
967 2008-08-11  Ulrich Drepper  <drepper@redhat.com>
968
969         * resolv/res_mkquery.c (res_nmkquery): Call ns_name_compress
970         directly instead of going through dn_comp.
971
972 2008-08-11  Aurelien Jarno  <aurel32@debian.org>
973
974         * sysdeps/mach/i386/machine-lock.h (__spin_unlock, __spin_try_lock):
975         Fix asm constraints.
976
977 2008-08-07  Ulrich Drepper  <drepper@redhat.com>
978
979         [BZ #6790]
980         * sysdeps/unix/sysv/linux/bits/in.h (IP_PMTUDISC_PROBE): Define.
981         (IPV6_PMTUDISC_PROBE): Likewise.
982
983 2008-08-07  Pete Eberlein  <eberlein@us.ibm.com>
984
985         [BZ #6791]
986         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h (PROT_SAO): Define.
987
988 2008-08-01  Steven Munroe  <sjmunroe@us.ibm.com>
989             Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
990
991         [BZ #6817]
992         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags):
993         Added the members 'vsx' and 'arch_2_06'.
994         (_dl_powerpc_platforms): Add the member 'power7'.
995         * sysdeps/powerpc/dl-procinfo.h: Modify _DL_HWCAP_FIRST
996         to reflect the changes required by VSX and ISA 2.06.
997         Modify _DL_PLATFORMS_COUNT to reflect the addition of
998         'power7'.
999         Defined PPC_PLATFORM_POWER7.
1000         (_dl_string_platform): Add support for POWER7.
1001         * sysdeps/powerpc/sysdep.h: Define bit masks for VSX
1002         capability and ISA 2.06.
1003
1004 2008-08-07  Ulrich Drepper  <drepper@redhat.com>
1005
1006         [BZ #6824]
1007         * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h: Use correct
1008         macro to detect use of 128 bit long double.
1009         Patch by Ryan S. Arnold <rsa@us.ibm.com>.
1010
1011 2008-08-05  Ulrich Drepper  <drepper@redhat.com>
1012
1013         * scripts/gen-as-const.awk: Use 32-bit values on 32-bit platforms.
1014
1015         [BZ #5794]
1016         * sysdeps/i386/fpu/s_expm1l.S: Simply use exp implementation for large
1017         parameters.
1018         * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
1019         Patch by Denys Vlasenko <dvlasenk@redhat.com>.
1020
1021 2008-08-03  Ulrich Drepper  <drepper@redhat.com>
1022
1023         * nscd/connections.c (main_loop_poll): Pass a buffer which is
1024         guaranteed to be large enough to read inotify event.  Ignore
1025         EAGAIN error.  Better error message.  Add branch predicition.
1026         (main_loop_epoll): Likewise.
1027
1028 2008-08-02  Roland McGrath  <roland@frob.com>
1029
1030         * sysdeps/mach/i386/machine-lock.h (__spin_unlock, __spin_try_lock):
1031         Add memory clobbers.
1032
1033 2008-08-02  Ulrich Drepper  <drepper@redhat.com>
1034
1035         * manual/arith.texi: Avoid @strong{Note:}.
1036         * manual/creature.texi: Likewise.
1037         * manual/filesys.texi: Likewise.
1038         * manual/math.texi: Likewise.
1039         * manual/memory.texi: Likewise.
1040         * manual/resource.texi: Likewise.
1041         * manual/syslog.texi: Likewise.
1042         * manual/time.texi: Likewise.
1043
1044         * sysdeps/posix/clock_getres.c (hp_timing_getres): Remove inline
1045         to prevent warning.
1046
1047 2008-08-01  Ulrich Drepper  <drepper@redhat.com>
1048
1049         * sysdeps/unix/sysv/linux/Versions: Fix changes due to old patch for
1050         new epoll_create1 interface.
1051         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
1052         * sysdeps/unix/sysv/linux/sys/epoll.h: Likewise.
1053         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
1054
1055         * include/arpa/nameser.h (NS_GET16): Use const pointer.
1056         (NS_GET32): Likewise.
1057
1058         * sysdeps/unix/sysv/linux/kernel-features.h: s390 has the new
1059         syscalls, too.
1060
1061         * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): We cannot
1062         use the AT_EXECFN value if it is no absolute path.
1063         * sysdeps/unix/sysv/linux/kernel-features.h: Never define
1064         __ASSUME_AT_EXECFN.
1065
1066         * Versions.def: Add GLIBC_2.9 to libresolv.
1067         * include/resolv.h: Remove hidden proto declarations for __ns_*
1068         functions.  Add them for __dn_count_labels and __p_secstodate.
1069         * include/arpa/nameser.h: Add a number of hidden proto declarations.
1070         Define ns_msg_getflags macro here.
1071         * resolv/res_debug.c: Add hidden definition for __dn_count_labels
1072         and __p_secstodate.
1073         * resolv/Versions: Export functions from <arpa/nameser.h> from
1074         libresolv in version GLIBC_2.9.
1075         * resolv/ns_name.c: Integrate changes from bind 9.5.0.  Add necessary
1076         hidden definitions.
1077         * resolv/ns_netint.c: Likewise.
1078         * resolv/ns_parse.c: Likewise.
1079         * resolv/ns_print.c: Likewise.
1080         * resolv/ns_samedomain.c: Likewise.
1081         * resolv/ns_ttl.c: Likewise.
1082         * resolv/arpa/nameser_compat.h: Likewise.
1083         * resolv/arpa/nameser.h: Likewise.  Remove macros which redirect
1084         function calls.
1085         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Use __ns_get16
1086         instead of ns_get16.
1087         * resolv/nss_dns/dns-host.c (getanswer_r): Use __ns_get16 and
1088         __ns_get32 instead of ns_get16 and ns_get32 respectively.
1089         (gaih_getanswer_slice): Likewise.
1090         * resolv/Makefile (libresolv-routines): Add ns_date.
1091         * resolv/ns_date.c: New file.
1092
1093         * elf/Makefile (check-localplt.out): Also check libresolv and
1094         libcrypt.
1095
1096 2008-07-31  Ulrich Drepper  <drepper@redhat.com>
1097
1098         * sysdeps/unix/sysv/linux/kernel-features.h: Define
1099         __ASSUME_O_CLOEXEC.
1100
1101 2008-07-30  Ulrich Drepper  <drepper@redhat.com>
1102
1103         * sysdeps/posix/getaddrinfo.c (gaih_inet): Raise size of initial
1104         buffer passed to NSS functions.
1105
1106         * nscd/connections.c (nscd_init): Typo in preprocessor directive.
1107
1108         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PACCEPT):
1109         Define.
1110
1111         * misc/syslog.c (openlog_internal): Fix compile problem.
1112
1113 2008-07-28  Roland McGrath  <roland@redhat.com>
1114
1115         * elf/dl-sysdep.c (_dl_show_auxv): Add AT_EXECFN to the table.
1116
1117 2008-07-28  Ulrich Drepper  <drepper@redhat.com>
1118
1119         * io/ftw.c (add_object): Remove inline to avoid warning.
1120
1121         * sysdeps/unix/sysv/linux/paccept.c: Fix compile problem.
1122
1123         * resolv/res_send.c (__libc_res_nsend): Take additional parameter.
1124         Use it instead of locally defined resplen2 variable.
1125         (res_nsend): Adjust for __libc_res_nsend interface change.
1126         (send_vc): Initialize *resplen2 if necessary.  Read length of
1127         package into an appropriately aligned variable.  Store converted length
1128         in new variable and use it appropriately.
1129         Add branch prediction help.
1130         * resolv/res_query.c (__libc_res_nquery): Take additional parameter
1131         and pass it on to __libc_res_nsend.  Adjust all callers.
1132         (__libc_res_nsearch): Likewise.
1133         (__libc_res_nqeurydomain): Likewise.
1134         * resolv/nss_dns/dns-host.c: Adjust for __libc_res_nsearch interface
1135         change.
1136         (_nss_dns_gethostbyname4): Don't unconditionally allocate tmp array.
1137         Define resplen2 variable and pass it to __libc_res_nsearch and then
1138         to gaih_getanswer.
1139         (getanswer_r): In case of incorrect DNS data don't overread buffer.
1140         Add branch prediction.
1141         (gaih_getanswer_slice): Likewise.  Check for invalid data types.
1142         (gaih_getanswer): Don't decode second slice if first one failed due
1143         to a too small buffer.  Don't let not found status of second
1144         decoder shadow results of the first.
1145         * resolv/gethnamaddr.c (gethostbyname2): Adjust for __libc_res_nsearch
1146         and __libc_res_nquery interface changes
1147         (gethostbyaddr): Adjust for __libc_res_nquery interface change.
1148         * include/resolv.h: Adjust prototypes for __libc_res_nquery,
1149         __libc_res_nsearch, and __libc_res_nsend.
1150         * resolv/nss_dns/dns-canon.c: Adjust for __libc_res_nquery interface
1151         change.
1152         * resolv/nss_dns/dns-network.c: Adjust for __libc_res_nquery and
1153         __libc_res_nsearch interface changes.
1154
1155 2008-07-27  Ulrich Drepper  <drepper@redhat.com>
1156
1157         * libio/iopopen.c (_IO_new_proc_open): Remove unnecessary volatile.
1158
1159         * posix/wordexp.c (exec_comm): Use pipe2 if possible to create
1160         file descriptors with close-on-exec set.
1161         (exec_comm_child): Fix the case where the write end of the pipe is
1162         STDOUT_FILENO already.  In case it is, clear close-on-exec.
1163
1164         * sysdeps/unix/sysv/linux/syscalls.list: Add __pipe2 alias.
1165         * io/pipe2.c: Likewise.
1166         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_PIPE2
1167         instead of __ASSUME_PACCEPT.
1168         * include/unistd.h: Declare __have_pipe2.
1169         * libio/iopopen.c: Implement "e" flag.
1170         * libio/Makefile (tests): Add tst-popen1.
1171         * libio/tst-popen1.c: New file.
1172
1173         * sysdeps/unix/sysv/linux/bits/socket.h: Define PF_ISDN and AF_ISDN.
1174         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
1175
1176 2008-07-26  Ulrich Drepper  <drepper@redhat.com>
1177
1178         [BZ #6771]
1179         * libio/fileops.c (_IO_new_file_attach): Preserve errno around
1180         success call of _IO_SEEKOFF or calls which failed because the
1181         descriptor is for a pipe.
1182
1183         * sunrpc/key_call.c (getkeyserv_handle): Use FD_CLOEXEC instead of
1184         magic number.
1185
1186         * misc/syslog.c (openlog_internal): Use SOCK_CLOEXEC if possible.
1187
1188         * malloc/mtrace.c (mtrace): Use 'e' flag in fopen call.  Drop
1189         F_SETFD use if we know fopen set the flag.
1190
1191         * login/utmp_file.c (setutent_file): Minor optimization in case
1192         O_CLOEXEC is available.
1193
1194 2008-07-24  Tom "spot" Callaway  <tcallawa@redhat.com>
1195
1196         * Makeconfig: Define pie-ccflag and PIE-ccflag variables.
1197         * elf/Makefile: Use pie-ccflag variable.
1198         * nscd/Makefile: Likewise.
1199         * sysdeps/sparc/Makefile: Set $(pie-ccflag) to -fPIE.
1200
1201 2008-07-21  Andreas Krebbel  <krebbel1@de.ibm.com>
1202
1203         [BZ #6724]
1204         * Versions.def: Add GLIBC_2.9 version tag for libutil.
1205         * sysdeps/unix/sysv/linux/s390/bits/utmp.h: Copy of
1206         gnu/bits/utmp.h.  Check for __WORDSIZE_COMPAT32 removed.
1207         * sysdeps/unix/sysv/linux/s390/bits/utmpx.h: Copy of
1208         gnu/bits/utmpx.h.  Check for __WORDSIZE_COMPAT32 removed.
1209         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Add new files
1210         utmp32, utmpx32 and login32.
1211         * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Add 2.9
1212         versions of struct utmp functions to libc and libutil.
1213         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-compat.h: New file.
1214         * sysdeps/unix/sysv/linux/s390/s390-32/getutent.c: New file.
1215         * sysdeps/unix/sysv/linux/s390/s390-32/getutent_r.c: New file.
1216         * sysdeps/unix/sysv/linux/s390/s390-32/getutid.c: New file.
1217         * sysdeps/unix/sysv/linux/s390/s390-32/getutid_r.c: New file.
1218         * sysdeps/unix/sysv/linux/s390/s390-32/getutline.c: New file.
1219         * sysdeps/unix/sysv/linux/s390/s390-32/getutline_r.c: New file.
1220         * sysdeps/unix/sysv/linux/s390/s390-32/getutmp.c: New file.
1221         * sysdeps/unix/sysv/linux/s390/s390-32/getutxent.c: New file.
1222         * sysdeps/unix/sysv/linux/s390/s390-32/getutxid.c: New file.
1223         * sysdeps/unix/sysv/linux/s390/s390-32/getutxline.c: New file.
1224         * sysdeps/unix/sysv/linux/s390/s390-32/login.c: New file.
1225         * sysdeps/unix/sysv/linux/s390/s390-32/login32.c: New file.
1226         * sysdeps/unix/sysv/linux/s390/s390-32/pututxline.c: New file.
1227         * sysdeps/unix/sysv/linux/s390/s390-32/updwtmp.c: New file.
1228         * sysdeps/unix/sysv/linux/s390/s390-32/updwtmpx.c: New file.
1229         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: New file.
1230         * sysdeps/unix/sysv/linux/s390/s390-32/utmp32.c: New file.
1231         * sysdeps/unix/sysv/linux/s390/s390-32/utmp32.h: New file.
1232         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx-convert.h: New file.
1233         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.c: New file.
1234         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: New file.
1235
1236 2008-07-26  Ulrich Drepper  <drepper@redhat.com>
1237
1238         * scripts/gen-as-const.awk: Generate more widely usable code by
1239         using 64-bit arithmetic.
1240
1241         * stdio-common/printf_fp.c (___printf_fp): Give wide outout code
1242         the same treatment as narrow output code in last patch.
1243
1244         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Namespace cleanup.
1245
1246         [BZ #6763]
1247         * elf/dl-load.c (local_strdup): Remove inline.
1248         (_dl_map_object_from_fd): Don't allocate l_symbolic_searchlist.r_list.
1249         * elf/dl-object.c (_dl_new_object): Allocate symbolic searchlist as
1250         part of the object.
1251
1252         * sysdeps/unix/sysv/linux/dl-origin.c: Add const to avoid warning.
1253
1254 2008-07-25  Ulrich Drepper  <drepper@redhat.com>
1255
1256         * sysdeps/unix/sysv/linux/kernel-features.h: IA-64 and SPARC have
1257         the new syscalls, too.
1258
1259         * sysdeps/i386/i686/memcmp.S: Fix unwind information.
1260         Reported by Paul Pluzhnikov <ppluzhnikov@google.com>.
1261
1262         [BZ #6698]
1263         * stdio-common/_i18n_number.h (_i18n_number_rewrite): Take additional
1264         parameter for end of buffer.  If temporary copy is too large use
1265         malloc.
1266         * stdio-common/vfprintf.c: Adjust for _i18n_number_rewrite
1267         interface change.
1268         * stdio-common/printf_fp.c (__printf_fp): Likewise..  Account for
1269         string rewrite when allocating buffer.
1270
1271         * sysdeps/unix/sysv/linux/kernel-features.h: PPC has the new
1272         syscalls, too.
1273
1274         * nscd/connections.c (nscd_init): Clean up fcntl call.
1275
1276         * nscd/nscd_helper.c (open_socket): Use SOCK_CLOEXEC and
1277         SOCK_NONBLOCK if possible.
1278
1279         * sysdeps/unix/sysv/linux/opensock.c (__opensock): Use
1280         SOCK_CLOEXEC if available.
1281
1282         * include/rpc/clnt.h: Declare __libc_clntudp_bufcreate and
1283         __libc_clntudp_bufcreate_internal.
1284         * include/sys/socket.h: Declare __have_sock_cloexec.
1285         * socket/Makefile (aux): Add have_sock_cloexec.
1286         * socket/have_sock_cloexec.c: New file.
1287         * sunrpc/clnt_udp.h (clntudp_bufcreate): Now a wrapper around
1288         __libc_clntudp_bufcreate.
1289         (__libc_clntudp_bufcreate): Former implementation of clntudp_bufcreate
1290         which takes an additional parameter.  Create socket with non-blocking
1291         mode and close-on-exec flag set, if wanted.
1292         * sunrpc/Versions: Export __libc_clntudp_bufcreate@GLIBC_PRIVATE.
1293         * nis/ypclnt.c (yp_bind_client_create): Use __libc_clntpudp_bufcreate
1294         instead of clntudp_create.  The socket has already the close-on-exec
1295         flag set if SOCK_CLOEXEC is defined.
1296
1297 2008-07-24  Ulrich Drepper  <drepper@redhat.com>
1298
1299         * sysdeps/unix/sysv/linux/kernel-features.h: Define
1300         __ASSUME_PACCEPT, __ASSUME_IN_NONBLOCK, and __ASSUME_PACCEPT if
1301         appropriate.
1302         * nscd/connections.c: Avoid fcntl calls to set close-on-exec flag and
1303         non-blocking mode by using socket, paccept, and inotify_init1.
1304
1305         * Versions.def (glibc): Add GLIBC_2.9.
1306         * io/Makefile (routines): Add dup3 and pipe2.
1307         * io/Versions [glibc] (GLIBC_2.9): Add dup3 and pipe2.
1308         * io/dup3.c: New file.
1309         * io/pipe2.c: New file.
1310         * posix/unistd.h: Declare dup3 and pipe2.
1311         * socket/Makefile (routines): Add paccept.
1312         * socket/Versions [glibc] (GLIBC_2.9): Add paccept.
1313         * socket/paccept.c: New file.
1314         * socket/sys/socket.h: Declare paccept.
1315         * sysdeps/unix/syscalls.list: Add entry for dup3.
1316         * sysdeps/unix/sysv/linux/Versions [glibc] (GLIBC_2.9): Add
1317         epoll_create2 and inotify_init1.
1318         * sysdeps/unix/sysv/linux/eventfd.c: Use eventfd1 syscall if possible.
1319         * sysdeps/unix/sysv/linux/paccept.c: New file.
1320         * sysdeps/unix/sysv/linux/signalfd.c: Use signalfd4 syscall if
1321         possible.
1322         * sysdeps/unix/sysv/linux/socketcall.h: Add SOCKOP_paccept.
1323         * sysdeps/unix/sysv/linux/syscalls.list: Add epoll_create2,
1324         inotify_init1, and pipe2 entries.
1325         * sysdeps/unix/sysv/linux/alpha/sys/epoll.h: New file.
1326         * sysdeps/unix/sysv/linux/alpha/sys/eventfd.h: New file.
1327         * sysdeps/unix/sysv/linux/alpha/sys/inotify.h: New file.
1328         * sysdeps/unix/sysv/linux/alpha/sys/signalfd.h: New file.
1329         * sysdeps/unix/sysv/linux/alpha/sys/timerfd.h: New file.
1330         * sysdeps/unix/sysv/linux/bits/socket.h: Define SOCK_CLOEXEC and
1331         SOCK_NONBLOCK.
1332         * sysdeps/unix/sysv/linux/i386/paccept.S: New file.
1333         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: New file.
1334         * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: New file.
1335         * sysdeps/unix/sysv/linux/sparc/sys/inotify.h: New file.
1336         * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h: New file.
1337         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: New file.
1338         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: New file.
1339         * sysdeps/unix/sysv/linux/sys/epoll.h: Define EPOLL_CLOEXEC and
1340         EPOLL_NONBLOCK.  Declare epoll_create2.
1341         * sysdeps/unix/sysv/linux/sys/eventfd.h: Define EFD_CLOEXEC and
1342         EFD_NONBLOCK.
1343         * sysdeps/unix/sysv/linux/sys/inotify.h: Define IN_CLOEXEC and
1344         IN_NONBLOCK.  Declare inotify_init1.
1345         * sysdeps/unix/sysv/linux/sys/signalfd.h: Define SFD_CLOEXEC and
1346         SFD_NONBLOCK.
1347         * sysdeps/unix/sysv/linux/sys/timerfd.h: Define TFD_CLOEXEC and
1348         TFD_NONBLOCK.
1349
1350         * elf/elf.h: Define AT_EXECFN.
1351         * elf/rtld.c [!__ASSUME_AT_EXECFN] (process_envvars): Don't handle
1352         LD_ORIGIN_PATH.
1353         * elf/dl-sysdep.c (_dl_sysdep_start): Handle AT_EXECFN.
1354         * elf/dl-support.c: Define _dl_execfn.  Don't define _dl_origin_path
1355         if __ASSUME_AT_EXECFN is defined.
1356         (_dl_aux_init): Handle AT_EXECFN.
1357         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_AT_EXECFN
1358         for 2.6.27 and up.
1359         * sysdeps/generic/ldsodefs.h (rtld_global_ro): Add _dl_execfn.
1360         Don't define _dl_origin_path if __ASSUME_AT_EXECFN is defined.
1361         * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): Use
1362         _dl_execfn if available and avoid compatibility code if
1363         __ASSUME_AT_EXECFN is defined.
1364
1365         * sysdeps/unix/sysv/linux/dl-sysdep.h: Don't declare
1366         _dl_discover_osversion only for older kernels.
1367
1368 2008-07-22  Roland McGrath  <roland@frob.com>
1369
1370         * hurd/fd-read.c (_hurd_fd_read): Fix last change.
1371
1372 2008-07-21  Roland McGrath  <roland@frob.com>
1373
1374         * hurd/fd-read.c (_hurd_fd_read): Return EGRATUITOUS if the server
1375         returned too much data out of line.
1376
1377 2008-07-20  Ulrich Drepper  <drepper@redhat.com>
1378
1379         * locale/setlocale.c (setname): Remove inline to avoid compiler
1380         warning.
1381
1382         [BZ #6712]
1383         * locale/setlocale.c (setlocale): Take the setlocale lock earlier.
1384
1385 2008-07-15  Ulrich Drepper  <drepper@redhat.com>
1386
1387         * stdio-common/vfprintf.c (_IO_helper_overflow): In case _IO_sputn
1388         doesn't manage to write anything, fail.
1389
1390         * malloc/hooks.c (__malloc_check_init): Remove printf.
1391
1392 2008-07-14  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1393
1394         * sysdeps/mach/hurd/bits/fcntl.h: Include <sys/types.h>.
1395
1396 2008-07-12  Ulrich Drepper  <drepper@redhat.com>
1397
1398         * nscd/connections.c (main_loop_poll): Fix handling of read errors
1399         from inotify.
1400         (main_loop_epoll): Likewise.
1401
1402 2008-07-09  Ulrich Drepper  <drepper@redhat.com>
1403
1404         * resolv/res_send.c: Remove unnecessary res_pquery prototype.
1405
1406         * resolv/res_query.c (__libc_res_nquery): Issue debug message only
1407         if DEBUG is defined.
1408
1409         * resolv/res_query.c (__libc_res_nquery): Align buffer for T_AAAA
1410         query.  Adjust buffer size computation for padding.
1411
1412 2008-07-08  Ulrich Drepper  <drepper@redhat.com>
1413
1414         * stdio-common/Makefile: Add rules to build and run tst-setvbuf1.
1415         * stdio-common/tst-setvbuf1.c: New file.
1416         * stdio-common/tst-setvbuf1.expect: New file.
1417
1418         [BZ #6719]
1419         * libio/iosetvbuf.c (_IO_setvbuf): Correctly clear buffering flags
1420         when selecting fully-buffered stream.
1421         Patch by Wang Xin <wxinee@gmail.com>.
1422
1423 2008-07-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1424
1425         * sysdeps/mach/hurd/open.c: Include <stdio.h>.
1426         (__open_2): New function.
1427         (__open64_2): New alias to __open_2.
1428         * sysdeps/mach/hurd/openat.c: Include <stdio.h>.
1429         (__openat_2): New function.
1430         (__openat64_2): New alias to __openat_2.
1431
1432 2008-07-06  Ulrich Drepper  <drepper@redhat.com>
1433
1434         [BZ #6723]
1435         * time/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
1436
1437 2008-07-01  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1438
1439         * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Define MSG_NOSIGNAL.
1440         * hurd/hurd/fd.h (__hurd_sockfail): Add extern inline function.
1441         * sysdeps/mach/hurd/recv.c (__recv): Use __hurd_sockfail instead of
1442         __hurd_dfail.
1443         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Likewise.
1444         * sysdeps/mach/hurd/recvmsg.c (__recvmsg): Likewise.
1445         * sysdeps/mach/hurd/send.c (__send): Likewise.
1446         * sysdeps/mach/hurd/sendto.c (__sendfrom): Likewise.
1447         * sysdeps/mach/hurd/sendmsg.c (__sendmsg): Likewise.
1448
1449 2008-03-04  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1450
1451         * sysdeps/mach/hurd/recv.c (__recv): Initialize NPORTS.
1452         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Likewise.
1453         * sysdeps/mach/hurd/recvmsg.c (__recvmsg): Likewise.
1454         * hurd/fd-read.c (_hurd_fd_read): Initialize NREAD.
1455         * hurd/get-host.c (_hurd_get_host_config): Likewise.
1456         * sysdeps/mach/hurd/dl-sysdep.c (__libc_read): Likewise.
1457
1458 2008-06-27  Ulrich Drepper  <drepper@redhat.com>
1459
1460         [BZ #6657]
1461         * time/strptime_l.c: Don't clear s.era_cnt after successful match
1462         of %EY.
1463         Patch by Petr Baudis.
1464
1465 2008-06-26  Ulrich Drepper  <drepper@redhat.com>
1466
1467         * resolv/res_debug.c (__p_type_syms): Add ns_t_dname entry.
1468         Patch by Peter Jones <pjones@redhat.com>.
1469
1470 2008-06-25  Ulrich Drepper  <drepper@redhat.com>
1471
1472         [BZ #6654]
1473         * stdlib/canonicalize.c (__realpath): readlink can write too much
1474         into the buffer on platforms without PATH_MAX.
1475
1476 2008-06-17  Carlos O'Donell  <carlos@codesourcery.com>
1477
1478         [BZ #6653]
1479         * posix/tst-regex.c (main): Rename to...
1480         (do_test): ... this. Remove cmdline option processing.
1481         (TIMEOUT): Define.
1482         (TEST_FUNCTION): Define.
1483         (CMDLINE_OPTIONS): Define.
1484
1485 2008-06-25  Ulrich Drepper  <drepper@redhat.com>
1486
1487         [BZ #5210]
1488         * configure.in: Add -Werror to -fstack-protector test to catch
1489         unsupported architectures.
1490         Patch by Gilles Esponasse <g.esp@free.fr>.
1491
1492 2008-06-17  Joseph Myers  <joseph@codesourcery.com>
1493
1494         * stdlib/tst-setcontext.c: Set back_in_main before exit if
1495         getcontext returns ENOSYS.
1496
1497 2008-06-18  Ulrich Drepper  <drepper@redhat.com>
1498
1499         * nscd/connections.c (main_loop_poll): Fix test for read error.
1500         (main_loop_epoll): Likewise.
1501
1502 2008-06-13  Ulrich Drepper  <drepper@redhat.com>
1503
1504         * sysdeps/posix/getaddrinfo.c: Move _res_hconf_init call to a
1505         better place so it is not called when nscd is used.
1506
1507         * nscd/connections.c: Also recognize and handle changes to the
1508         resolver configuration file.
1509
1510 2008-06-12  Ulrich Drepper  <drepper@redhat.com>
1511
1512         * time/strftime.c: Pass reference to tzset_called around to handle
1513         recursive calls.
1514
1515         [BZ #6612]
1516         * time/strftime.c (__strftime_internal): Call tzset() only
1517         when printing timezone-dependent values.
1518         Based on a patch by Petr Baudis <pasky@suse.cz>.
1519
1520         * resolv/nss_dns/dns-host.c (gaih_getanswer): Don't
1521         unconditionally use second gaih_getanswer_slice result.
1522
1523         * sysdeps/posix/getaddrinfo.c (gai_inet): Remove unnecessary test.
1524         (getaddrinfo): RES must always be non-NULL.
1525
1526 2008-06-12  Jakub Jelinek  <jakub@redhat.com>
1527
1528         * sysdeps/powerpc/powerpc64/fpu/s_llround.S (__llround): Avoid using
1529         cr[34] registers.
1530         * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S (__llroundf): Likewise.
1531         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S (__llround):
1532         Likewise.
1533         * sysdeps/powerpc/powerpc32/fpu/s_lround.S (__lround): Avoid using cr3
1534         register.
1535
1536 2008-06-12  Ulrich Drepper  <drepper@redhat.com>
1537
1538         * nscd/nscd.h (struct database_dyn): Add inotify_descr and clear_cache
1539         fields.
1540         * nscd/connections.c (inotify_fd): New variable.
1541         (nscd_init): Try to open an inotify descriptor.
1542         If successful, watch files for databases using inotify instead of
1543         having prune threads stat the files.
1544         (nscd_run_prune): Recognize clear_cache flag being set and call
1545         prune_cache appropriately.
1546         (main_loop_poll): Add inotify descriptor to wait set and handle the
1547         reported changes.
1548         (main_loop_epoll): Likewise.
1549         * nscd/cache.c (prune_cache): Don't stat files for databases if
1550         inotify is used.
1551         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd]
1552         (CFLAGS-connections.c): Add -DHAVE_INOTIFY.
1553
1554         * nscd/grpcache.c (cache_addgr): Correctly compute size of
1555         fixed-size portion of the record.
1556         * nscd/servicescache.c (cache_addserv): Likewise.
1557         * nscd/pwdcache.c (cache_addpw): Likewise.
1558         * nscd/initgrcache.c (addinitgroupsX): Likewise.
1559
1560 2008-06-11  Ulrich Drepper  <drepper@redhat.com>
1561
1562         * nscd/mem.c (gc): Initialize obstack earlier so that if we jump
1563         out we don't use uninitialized memory.
1564
1565         * nscd/hstcache.c (cache_addhst): Send correct number of bytes to
1566         the client.
1567
1568 2008-06-10  Ulrich Drepper  <drepper@redhat.com>
1569
1570         * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): Also log and
1571         ignore T_DNAME messages.
1572         * resolv/arpa/nameser_compat.h (T_DNAME): Define.
1573
1574 2008-06-05  Jakub Jelinek  <jakub@redhat.com>
1575
1576         * misc/regexp.h (compile): Use __REPB_PREFIX macro.
1577         Avoid segfault if first GETC returns eof/'\0'/'\n'.
1578
1579 2008-06-03  Jakub Jelinek  <jakub@redhat.com>
1580
1581         * nscd/nscd_getserv_r.c (__nscd_getservbyport_r): Pass cp
1582         instead of portstr to nscd_getserv_r.  Patch by
1583         Roman Kagan <rkagan@mail.ru>.
1584
1585 2008-05-26  Jim Meyering  <meyering@redhat.com>
1586
1587         Remove more useless "if" tests before "free".
1588         * include/inline-hashtab.h (htab_delete): Likewise.
1589         * libio/freopen.c (freopen): Likewise.
1590         * libio/freopen64.c (freopen64): Likewise.
1591         * locale/programs/ld-collate.c (collate_read): Likewise.
1592         * misc/fstab.c (libc_freeres_fn): Likewise.
1593         * posix/glob.c (globfree): Likewise.
1594
1595 2008-05-24  Ulrich Drepper  <drepper@redhat.com>
1596
1597         * string/Makefile (strop-tests): Add memmem.
1598         * string/test-memmem.c: New file.
1599         * string/test-string.h (BUF1PAGES): Define to 1 if undefined.
1600         (test_init): Size buf1 according to BUF1PAGES.
1601
1602 2008-05-24  Jakub Jelinek  <jakub@redhat.com>
1603
1604         * libio/stdio.h (vscanf): Fix -std=c99 redirect.
1605         * stdio-common/Makefile (tests): Add scanf16 and scanf17.
1606         (CFLAGS-scanf17.c): New.
1607         * stdio-common/scanf14.c (main): Add fscanf and scanf tests.
1608         * stdio-common/scanf15.c (main): Likewise.
1609         * stdio-common/scanf16.c: New file.
1610         * stdio-common/scanf17.c: New file.
1611
1612 2008-05-24  Ulrich Drepper  <drepper@redhat.com>
1613
1614         * resolv/res_send.c (send_dg): If we already have one of two
1615         answers and the server reports SERVFAIL, NOTIMP, or REFUSED, then
1616         use the one answer insted of failing.
1617
1618 2008-02-20  Ryan S. Arnold  <rsa@us.ibm.com>
1619
1620         * math/libm-test.inc (exp_test): Exclude expl(1000.0L) from
1621         being executed on PowerPC as the expected result exceeds IBM
1622         long double 128 __LDBL_MAX__.
1623
1624 2008-05-21  Roland McGrath  <roland@redhat.com>
1625
1626         * shlib-versions (sparc.*-.*-.*, sparc64.*-.*-.*): Add ABI lines.
1627
1628         * Makefile (check-data): Use $(abi-name) before other guesses.
1629         Look in $(add-ons) dirs before scripts/data/.
1630         * elf/Makefile (check-data): Likewise.
1631
1632         * scripts/soversions.awk: Grok ABI line.
1633         * Makeconfig ($(common-objpfx)soversions.mk): Likewise.
1634         Emit definition for abi-name variable.
1635
1636 2008-05-21  Ulrich Drepper  <drepper@redhat.com>
1637
1638         * string/endian.h: Define new fixed-size hto* and *toh macros only
1639         if [__USE_BSD].
1640
1641         * iconvdata/Depend: Add localedata.
1642
1643 2008-05-21  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1644
1645         * bits/termios.h (ONLCR): Define under [__USE_XOPEN] too.
1646
1647 2008-05-08  David S. Miller  <davem@davemloft.net>
1648
1649         * sysdeps/unix/sysv/linux/sparc/sparc32/setcontext.S: Use
1650         HIDDEN_JUMPTARGET.
1651         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
1652         (__SYSCALL_CLOBBERS): Remove %g* registers.
1653         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
1654         (__SYSCALL_CLOBBERS): Likewise.
1655         * scripts/data/localplt-sparc-linux-gnu.data: New file.
1656         * scripts/data/localplt-sparc64-linux-gnu.data: New file.
1657
1658 2008-05-21  Jakub Jelinek  <jakub@redhat.com>
1659
1660         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
1661         (CALL_ERRNO_LOCATION): Define.
1662         (__SYSCALL_STRING, __CLONE_SYSCALL_STRING): Use it.
1663         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
1664         (CALL_ERRNO_LOCATION): Define.
1665         (__SYSCALL_STRING, __CLONE_SYSCALL_STRING): Use it.
1666         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S (__brk): Use
1667         HIDDEN_JUMPTARGET for __errno_location call in libc.so.
1668
1669 2008-05-20  Ulrich Drepper  <drepper@redhat.com>
1670
1671         * include/inline-hashtab.h (higher_prime_number): Fix type of mid
1672         variable.
1673
1674 2008-05-20  Jakub Jelinek  <jakub@redhat.com>
1675
1676         * sysdeps/unix/sysv/linux/sparc/sparc32/sigcontextinfo.h
1677         (FIRST_FRAME_POINTER): Define.
1678
1679 2008-05-09  David S. Miller  <davem@davemloft.net>
1680
1681         * sysdeps/sparc/sparc64/backtrace.c: New file.
1682
1683 2008-05-14  David S. Miller  <davem@davemloft.net>
1684
1685         * sysdeps/sparc/machine-gmon.h: New file.
1686         * sysdeps/sparc/sparc-mcount.S: Likewise.
1687         * sysdeps/sparc/Makefile: Add sparc-mcount target to
1688         sysdep_routines in gmon directory.
1689
1690 2008-05-19  Jakub Jelinek  <jakub@redhat.com>
1691
1692         * elf/soinit.c (__EH_FRAME_BEGIN__): Remove.
1693
1694 2008-05-19  Ulrich Drepper  <drepper@redhat.com>
1695
1696         * resolv/res_query.c (__libc_res_nquery): In case one of two
1697         answer was too short don't try to read that answer's header.
1698
1699         * resolv/res_send.c (send_dg): In case of timeout and there are
1700         two queries and one has been answered, return value indicating
1701         success.
1702
1703 2008-05-18  Ulrich Drepper  <drepper@redhat.com>
1704
1705         * nscd/cache.c (cache_add): Take additional parameter specifying
1706         whether this is in response of a cache refill.  Check alignment
1707         of package data.  Revamp waking of pruning thread.
1708         (prune_cache): Small optimization.
1709         * nscd/nscd.h: Adjust cache_add prototypes.
1710         * nscd/aicache.c: Adjust cache_add calls.
1711         * nscd/grpcache.c: Likewise.
1712         * nscd/hstcache.c: Likewise.
1713         * nscd/initgrcache.c: Likewise.
1714         * nscd/pwdcache.c: Likewise.
1715         * nscd/servicescache.c: Likewise.
1716         * nscd/connections.c (restart): Really disable cache use before
1717         exec attempt.  If it fails, reenable cache.
1718         (nscd_run_prune): Initialize wakeup_time.  After wakeup, set wakeup
1719         time to max to be able to notice concurrent cache additions.  Unlock
1720         prune_lock while performing gc.  Afterwards compute wakeup time with
1721         current wakeup_time value in mind.
1722
1723 2008-05-17  Ulrich Drepper  <drepper@redhat.com>
1724
1725         * nscd/mem.c (gc): Avoid stack overflow when allocating move list.
1726
1727         * nscd/mem.c (gc): Correctly determine highest used array element
1728         in mark.
1729
1730         * nscd/mem.c (markrange): Add assert to check entries are all
1731         aligned.  Small cleanup in bitmap use.
1732
1733         * nscd/nscd.h (mem_in_flight): Replace blockaddr field with
1734         blockoff of type nscd_ssize_t.
1735         * nscd/mem.c (gc): Simplify markrange call for on-flight blocks.
1736         (mempoll_alloc): Record block offset and not address.
1737
1738         * nscd/mem.c (gc): Fix test for stack overuse.
1739
1740         * nscd/aicache.c (addhstaiX): Fix a few small problems, cleanups,
1741         more asserts.
1742
1743         * sysdeps/posix/getaddrinfo.c (gaih_inet): If nscd reports no
1744         entry is available, believe it.
1745
1746         * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): If there are
1747         no answers return NSS_STATUS_NOTFOUND.
1748         (gaih_getanswer): Don't call gaih_getanswer_slice if the answer
1749         buffer does not have any content.
1750
1751 2008-05-16  Ulrich Drepper  <drepper@redhat.com>
1752
1753         * string/strcasestr.c (CMP_FUNC): Use __strncasecmp, not strncasecmp.
1754
1755         * sysdeps/posix/getaddrinfo.c (gaih_inet): After gethostbyname4_r
1756         lookup, don't assign canon unconditionally.
1757
1758 2008-05-14  Ulrich Drepper  <drepper@redhat.com>
1759
1760         * string/Makefile (distribute): Add str-two-way.h.
1761
1762 2008-03-29  Eric Blake  <ebb9@byu.net>
1763
1764         Rewrite string searches to O(n) rather than O(n^2).
1765         * string/str-two-way.h: New file.  For linear fixed-allocation
1766         string searching.
1767         * string/memmem.c: New implementation.
1768         * string/strstr.c: New implementation.
1769         * string/strcasestr.c: New implementation.
1770
1771 2008-04-11  Paolo Bonzini  <bonzini@gnu.org>
1772
1773         * posix/regcomp.c (optimize_utf8): Add a note on why we test
1774         opr.ctx_type.
1775         (calc_first): Initialize constraint field.
1776         (duplicate_node_closure): Use it instead of special casing ANCHORS.
1777         Use search_duplicated_node to avoid loops.  Fix grammar.
1778         (duplicate_node): Merge constraint field for all node types.
1779         (calc_eclosure_iter): Look at constraint field for all node types.
1780         * posix/regex_internal.c (create_cd_newstate): Don't look at
1781         create_cd_newstate.
1782
1783 2008-05-14  Ulrich Drepper  <drepper@redhat.com>
1784
1785         [BZ #6428]
1786         * configure.in: Don't use $CFLAGS when assembling, use $ASFLAGS.
1787
1788         [BZ #6442]
1789         * string/endian.h: Add macros for fixed-size endian conversion.
1790         * bits/byteswap.h: Allow inclusion from <endian.h>.
1791         * sysdeps/i386/bits/byteswap.h: Likewise.
1792         * sysdeps/ia64/bits/byteswap.h: Likewise.
1793         * sysdeps/s390/bits/byteswap.h: Likewise.
1794         * sysdeps/x86_64/bits/byteswap.h: Likewise.
1795         * string/Makefile (tests): Add tst-endian.
1796         * string/tst-endian.c: New file.
1797
1798         * iconvdata/run-iconv-test.sh: Use = instead of == in test.
1799         Patch by Reuben Thomas.
1800
1801 2008-05-14  Joseph Myers  <joseph@codesourcery.com>
1802
1803         * iconvdata/Makefile (bug-iconv6-ENV, tst-iconv7-ENV): Define.
1804
1805 2008-05-14  Ulrich Drepper  <drepper@redhat.com>
1806
1807         * iconvdata/bug-iconv6.c (do_test): Use de_DE.UTF-8 locale.
1808
1809         [BZ #6461]
1810         * iconv/gconv_simple.c (BODY for __gconv_transform_ascii_internal):
1811         Add missing braces.
1812         (BODY for __gconv_transform_internal_ascii): Likewise.
1813
1814         [BZ #6472]
1815         * sysdeps/posix/getaddrinfo.c (get_scope): Loopback addresses have
1816         to be treated like link-local addresses.
1817         (match_prefix): Don't treat IPv4 loopback address special when
1818         converting to v4 mapped addressed.
1819
1820         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Call _res_hconf_init
1821         if necessary.
1822         * posix/tst-rfc3484.c: Add dummy definition of _res_hconf_init.
1823         * posix/tst-rfc3484-2.c: Likewise.
1824         * posix/tst-rfc3484-3.c: Likewise.
1825
1826         * sysdeps/posix/getaddrinfo.c: Implement handling of DCCP, UDPlite,
1827         and SCTP.
1828
1829         * nss/getent.c (ahosts_keys_int): Handle all known socket types.
1830
1831         * inet/netinet/in.h (IPPIPPROTO_DCCP, IPPROTO_UDPLITE): Define.
1832
1833         * sysdeps/unix/sysv/linux/bits/socket.h (SOCK_DCCP): Define.
1834
1835 2008-05-13  Ulrich Drepper  <drepper@redhat.com>
1836
1837         * po/lt.po: New file.  From Lituanian translation team.
1838
1839 2008-01-30  Alexandre Oliva  <aoliva@redhat.com>
1840
1841         Introduce TLS descriptors for i386 and x86_64.
1842         * include/inline-hashtab.h: New file, copied from 2005's
1843         libiberty, with fix for memory leak imported afterwards by
1844         Glauber de Oliveira Costa.
1845         * elf/tlsdeschtab.h: New file.
1846         * elf/dl-reloc.c (_dl_try_allocate_static_tls): Extract from...
1847         (_dl_allocate_static_tls): ... here.  Rearrange failure path.
1848         (CHECK_STATIC_TLS): Move to...
1849         * elf/dynamic-link.h: ... this file.
1850         (TRY_STATIC_TLS): New macro.
1851         * elf/dl-conflict.c (CHECK_STATIC_TLS, TRY_STATIC_TLS): Override.
1852         * elf/elf.h (R_386_TLS_GOTDESC, R_386_TLS_DESC_CALL,
1853         R_386_TLS_DESC): Define.
1854         (R_X86_64_PC64, R_X86_GOTOFF64, R_X86_64_GOTPC32): Merge from
1855         binutils.
1856         (R_X86_64_GOTPC32_TLSDESC, R_X86_64_TLSDESC_CALL,
1857         R_X86_64_TLSDESC): Define.
1858         (R_386_NUM, R_X86_64_NUM): Adjust.
1859         * sysdeps/i386/Makefile (sysdep-dl-routines, sysdep_routines,
1860         sysdep-rtld-routines): Add tlsdesc and dl-tlsdesc for elf subdir.
1861         (gen-as-const-headers): Add tlsdesc.sym to csu subdir.
1862         * sysdeps/i386/dl-lookupcfg.h: New file.  Introduce _dl_unmap to
1863         release tlsdesc_table.
1864         * sysdeps/i386/dl-machine.h: Include dl-tlsdesc.h.
1865         (elf_machine_type_class): Mark R_386_TLS_DESC as PLT class.
1866         (elf_machine_rel): Handle R_386_TLS_DESC.
1867         (elf_machine_rela): Likewise.
1868         (elf_machine_lazy_rel): Likewise.
1869         (elf_machine_lazy_rela): Likewise.
1870         * sysdeps/i386/dl-tls.h (struct dl_tls_index): Name it.
1871         * sysdeps/i386/dl-tlsdesc.S: New file.
1872         * sysdeps/i386/dl-tlsdesc.h: New file.
1873         * sysdeps/i386/tlsdesc.c: New file.
1874         * sysdeps/i386/tlsdesc.sym: New file.
1875         * sysdeps/i386/bits/linkmap.h (struct link_map_machine): Add
1876         tlsdesc_table.
1877         * sysdeps/x86_64/Makefile (sysdep-dl-routines, sysdep_routines,
1878         sysdep-rtld-routines): Add tlsdesc and dl-tlsdesc for elf subdir.
1879         (gen-as-const-headers): Add tlsdesc.sym to csu subdir.
1880         * sysdeps/x86_64/dl-lookupcfg.h: New file.  Introduce _dl_unmap to
1881         release tlsdesc_table.
1882         * sysdeps/x86_64/dl-machine.h: Include dl-tlsdesc.h.
1883         (elf_machine_runtime_setup): Set up lazy TLSDESC GOT entry.
1884         (elf_machine_type_class): Mark R_X86_64_TLSDESC as PLT class.
1885         (elf_machine_rel): Handle R_X86_64_TLSDESC.
1886         (elf_machine_rela): Likewise.
1887         (elf_machine_lazy_rel): Likewise.
1888         * sysdeps/x86_64/dl-tls.h (struct dl_tls_index): Name it.
1889         (__tls_get_addr): Do not declare for non-shared compiles.
1890         * sysdeps/x86_64/dl-tlsdesc.S: New file.
1891         * sysdeps/x86_64/dl-tlsdesc.h: New file.
1892         * sysdeps/x86_64/tlsdesc.c: New file.
1893         * sysdeps/x86_64/tlsdesc.sym: New file.
1894         * sysdeps/x86_64/bits/linkmap.h (struct link_map_machine): Add
1895         tlsdesc_table for both 32- and 64-bit structs.
1896
1897 2008-05-11  Ulrich Drepper  <drepper@redhat.com>
1898
1899         * elf/dl-tls.c (__tls_get_addr): Optimize by moving slow path in
1900         its own function.  This reduces the frame setup costs and more.
1901
1902 2008-02-11  Joseph Myers  <joseph@codesourcery.com>
1903
1904         [BZ #3406]
1905         * sysdeps/ieee754/flt-32/w_expf.c (o_threshold): Correct value.
1906         * math/libm-test.inc (exp_test): Test 88.72269439697265625.
1907
1908 2008-05-11  Ulrich Drepper  <drepper@redhat.com>
1909
1910         * io/openat.c (__openat_2): Also pass fd to __openat.
1911         * io/openat64.c (__openat64_2): Also pass fd to __openat64.
1912         Patch by Kristian Van Der Vliet <vanders@liqwyd.com>.
1913
1914         * string/tester.c (test_memcmp): Add a few more tests.
1915         Patch by Mats Erik Andersson <ynglingatal@comhem.se>.
1916
1917 2008-05-10  Ulrich Drepper  <drepper@redhat.com>
1918
1919         * nscd/cache.c (cache_add): Before returning with failure and this
1920         is the first use of the record, mark it as unusable.
1921         * nscd/aicache.c: Don't touch the dataset after cache_add returns
1922         reporting a failure.
1923         * nscd/grpcache.c: Likewise
1924         * nscd/hstcache.c: Likewise.
1925         * nscd/initgrcache.c: Likewise.
1926         * nscd/pwdcache.c: Likewise.
1927         * nscd/servicescache.c: Likewise.
1928
1929 2008-05-10  Roland McGrath  <roland@redhat.com>
1930
1931         [BZ #6505]
1932         * sysdeps/unix/sysv/linux/sys/user.h: Replace with #error stub.
1933
1934 2008-05-08  David S. Miller  <davem@davemloft.net>
1935
1936         * misc/truncate64.c (truncate64): Use __truncate not truncate.
1937
1938         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee751_j0l): Use __finitel.
1939         (__ieee754_y0l): Likewise.
1940         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Likewise.
1941         (__ieee754_y1l): Likewise.
1942         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Use __ldexpl.
1943         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Kill bogus prototypes for
1944         frexpl and ldexpl.  math_private.h provides them and the latter
1945         is not even used.
1946         (__log1pl): Use __frexpl.
1947
1948 2008-05-10  Ulrich Drepper  <drepper@redhat.com>
1949
1950         * include/resolv.h: Adjust __libc_res_nquery and __libc_res_nsend
1951         prototypes.
1952         * include/arpa/nameser_compat.h: Define T_UNSPEC.
1953         * nis/Versions (libnss_nis): Export _nss_nis_gethostbyname4_r.
1954         (libnss_nisplus): Export _nss_nisplus_gethostbyname4_r.
1955         * nis/nss_nis/nis-hosts.c (LINE_PARSER): Change to also handle
1956         af==AF_UNSPEC.
1957         (_nss_nis_gethostbyname4_r): New function.
1958         * nis/nss_nisplus/nisplus-hosts.c (_nss_nisplus_parse_hostent):
1959         Change to also handle af==AF_UNSPEC.
1960         (get_tablename): New function.  Use it to avoid duplication.
1961         (_nss_nisplus_gethostbyname4_r): New function.
1962         * nscd/aicache.c (addhstaiX): Use gethostbyname4_r function is
1963         available.
1964         * nss/Versions (libnss_files): Export _nss_files_gethostbyname4_r.
1965         * nss/nss.h: Define struct gaih_addrtuple.
1966         * nss/nss_files/files-hosts.c (LINE_PARSER): Change to also handle
1967         af==AF_UNSPEC.
1968         (_nss_files_gethostbyname4_r): New function.
1969         * resolv/Versions (libnss_dns): Export _nss_dns_gethostbyname4_r.
1970         * resolv/gethnmaddr.c: Adjust __libc_res_nsearch and __libc_res_nquery
1971         calls.
1972         * resolv/res_query.c (__libc_res_nquery): Take two additional
1973         parameters for second answer buffer.  Handle type=T_UNSPEC to mean
1974         look up IPv4 and IPv6.
1975         Change all callers.
1976         * resolv/res_send.c (__libc_res_nsend): Take five aditional parameters
1977         for an additional query and answer buffer.  Pass to send_vc and
1978         send_dg.
1979         (send_vc): Send possibly two requests and receive two answers.
1980         (send_dg): Likewise.
1981         * resolv/nss_dns/dns-host.c: Adjust calls to __libc_res_nsearch and
1982         __libc_res_nquery.
1983         (_nss_dns_gethostbyname4_r): New function.
1984         (gaih_getanswer_slice): Likewise.
1985         (gaih_getanswer): Likewise.
1986         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Adjust
1987         __libc_res_nquery call.
1988         * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r): Likewise.
1989         (_nss_dns_getnetbyname_r): Adjust __libc_res_nsearch call.
1990         * sysdeps/posix/getaddrinfo.c: Use gethostbyname4_r function is
1991         available.
1992
1993 2008-05-05  David S. Miller  <davem@davemloft.net>
1994
1995         * sysdeps/sparc/sparc32/Makefile: Use -mcpu=v7 for initfini.s build.
1996         * sysdeps/sparc/sparc64/Makefile: Use -mcpu=v9 for initfini.s build.
1997
1998 2007-09-14  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1999
2000         Fix termios bit macros.
2001         Move *DLY definitions where they belong, in termios.h.
2002         Add *[0-3] definitions.
2003         Fixes confusion between VT and FF.
2004         * sysdeps/mach/hurd/bits/ioctls.h (NL0, NL1, TAB0, TAB1, TAB2, CR0,
2005         CR1, CR2, CR3, FF0, FF1, BS0, BS1): Undefine these at start if they
2006         are already defined to avoid collision with termios.h.
2007         (NLDLY, TABDLY, TAB3, CRDLY, VTDLY, BSDLY): Remove macros.
2008         * bits/termios.h [__USE_MISC || __USE_XOPEN] (NL0, NL1, TAB0,
2009         TAB1, TAB2, CR0, CR1, CR2, CR3, FF0, FF1, BS0, BS1): Likewise.
2010         [__USE_BSD || __USE_XOPEN] (OCRNL, ONOCR, ONLRET): New macros.
2011         [__USE_MISC || __USE_XOPEN] (NLDLY, NL0, NL1, TABDLY, TAB0, TAB1, TAB2,
2012         TAB3, CRDLY, CR0, CR1, CR2, CR3, FFDLY, FF0, FF1, BSDLY, BS0, BS1,
2013         VTDLY, VT0, VT1): New macros.
2014         [__USE_GNU] (OLCUC): Change value of macro.
2015         [__USE_XOPEN] (OFILL): New macro.
2016         [__USE_BSD] (CRTSCTS): Change value.
2017         (CRTS_IFLOW, CCTS_OFLOW): Change into compatibility macros.
2018         [__USE_BSD] (CDTRCTS, CHWFLOW): New macros.
2019         (B7200, B14400, B28800, B76800): New macros.
2020
2021 2008-05-01  David S. Miller  <davem@davemloft.net>
2022
2023         * sysdeps/unix/sysv/linux/sparc/sparc32/ucontext_i.sym: New file.
2024         * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile [$(subdir) = stdlib]:
2025         (gen-as-const-headers): Add it.
2026         * sysdeps/unix/sysv/linux/sparc/sparc32/getcontext.S: New file.
2027         * sysdeps/unix/sysv/linux/sparc/sparc32/makecontext.c: Likewise.
2028         * sysdeps/unix/sysv/linux/sparc/sparc32/setcontext.S: Likewise.
2029         * sysdeps/unix/sysv/linux/sparc/sparc32/swapcontext.S: Likewise.
2030
2031         * sysdeps/unix/sysv/linux/sparc/sparc32/syscall.S: Add support for
2032         six system call parameters.
2033         * sysdeps/unix/sysv/linux/sparc/sparc64/syscall.S: Likewise.
2034
2035 2008-04-30  Ulrich Drepper  <drepper@redhat.com>
2036
2037         * sysdeps/unix/sysv/linux/bits/resource.h: Define RUSAGE_THREAD and
2038         RUSAGE_LWP.
2039         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
2040         * sysdeps/unix/sysv/linux/alpha/bits/resource.h: Likewise.
2041
2042 2008-04-30  Jakub Jelinek  <jakub@redhat.com>
2043
2044         * stdlib/tst-setcontext.c: Include unistd.h.
2045
2046 2008-04-25  David S. Miller  <davem@davemloft.net>
2047
2048         * sysdeps/unix/sysv/linux/sparc/sparc64/semctl.c (semctl):
2049         Pass "union semun" properly in to sys_ipc, it must be passed
2050         by value, not by reference.
2051
2052 2008-04-22  Jakub Jelinek  <jakub@redhat.com>
2053
2054         * nscd/Makefile (nscd-cflags): Set back to -fpie.
2055         * nscd/nscd.h (mem_in_flight): Add attribute_tls_model_ie.
2056         * nscd/connections.c (mem_in_flight): Likewise.
2057
2058         * nscd/nscd.h (dbs): Make hidden.
2059
2060         * sysdeps/unix/sysv/linux/times.c (__times): Fix check for EFAULT.
2061         Avoid returning -1, return 0 instead.
2062
2063 2008-04-19  Ulrich Drepper  <drepper@redhat.com>
2064
2065         * resolv/res_mkquery.c (__res_nopt): Use NS_PUT16 instead of ns_put16.
2066
2067 2008-04-15  Ulrich Drepper  <drepper@redhat.com>
2068
2069         [BZ #5209]
2070         * sysdeps/unix/sysv/linux/times.c: New file.
2071
2072         [BZ #5381]
2073         * nscd/nscd.h: Define enum in_flight, mem_in_flight, and
2074         mem_in_flight_list variables.  Add new parameter to mempool_alloc
2075         prototype.
2076         * nscd/mem.c (mempool_alloc): Take additional parameter.  Initialize
2077         appropriate mem_in_flight element.
2078         (gc): Take allocations which have not yet been committed to the
2079         database into account.
2080         * nscd/cache.c (cache_add): Add new parameter to mempool_alloc call.
2081         Reset mem_in_flight before returning.
2082         * nscd/connections.c (nscd_run_worker): Initialize mem_in_flight and
2083         cue it up in mem_in_flight_list.
2084         * nscd/aicache.c: Adjust mempool_alloc call.
2085         * nscd/grpcache.c: Likewise.
2086         * nscd/hstcache.c: Likewise.
2087         * nscd/initgrcache.c: Likewise.
2088         * nscd/pwdcache.c: Likewise.
2089         * nscd/servicescache.c: Likewise.
2090         * nscd/Makefile (nscd-flags): Until ld is fixed, use -fpic instead
2091         of -fpie.
2092
2093         * nscd/connections.c (handle_request): Provide better error message
2094         in case SELinux forbids the service.
2095
2096         * version.h (VERSION): Bump to 2.8.90.
2097
2098 2008-04-17  Jakub Jelinek  <jakub@redhat.com>
2099
2100         * sysdeps/unix/sysv/linux/dl-osinfo.h: Include fcntl.h.
2101
2102 2008-04-11  Ulrich Drepper  <drepper@redhat.com>
2103
2104         * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h (__signbitl):
2105         Also use for 32-bit.
2106         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c (__nearbyintl): Use
2107         __nextafter instead of nextafter to avoid local PLT.
2108         * sysdeps/powerpc/fpu/e_sqrt.c: Avoid call to fetestexcept.
2109         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
2110
2111         * scripts/data/localplt-powerpc64-linux-gnu.data: New file.
2112
2113         * sysdeps/powerpc/fpu/fenv_libc.h: Add libm_hidden_proto for
2114         __fe_nomask_env.
2115         * sysdeps/powerpc/fpu/fe_nomask.c: Add libm_hidden_def.  Include
2116         <fenv_libc.h> instead of <fenv.h>.
2117         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c: Likewise.
2118         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c: Likewise.
2119
2120         * sysdeps/powerpc/bits/fenv.h: Make safe for C++.
2121
2122         * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h: New file.
2123         * sysdeps/powerpc/fpu/fegetexcept.c (__fegetexcept): Rename
2124         function from fegetexcept and make old name weak alias.
2125         * include/fenv.h: Declare __fegetexcept.
2126         * sysdeps/powerpc/fpu/fedisblxcpt.c: Use __fegetexcept instead of
2127         fegetexcept.
2128         * sysdeps/powerpc/fpu/feenablxcpt.c: Likewise.
2129         * sysdeps/powerpc/fpu/fraiseexcpt.c (__feraiseexcept): Avoid call
2130         to fetestexcept.
2131         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Use __frexpl
2132         instead of frexpl to avoid local PLT.
2133         * math/s_significandl.c (__significandl): Use __ilogbl instead of
2134         ilogbl to avoid local PLT.
2135         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Use __ldexpl
2136         instead of ldexpl to avoid local PLT.
2137         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (__ieee754_expl): Use
2138         __roundl not roundl to avoid local PLT.
2139         * sysdeps/ieee754/ldbl-128/e_j0l.c: Use function names which avoid
2140         local PLTs.  Use __sincosl instead of separate sinl and cosl
2141         calls.
2142         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
2143
2144         * sysdeps/unix/sysv/linux/configure.in: Bump minimal kernel
2145         version for ppc64 to 2.4.21 since without it makecontext will fail.
2146
2147         * elf/tls-macros.h [__powerpc64__] (__TLS_GET_ADDR): Define according
2148         to the ABI in use.
2149         [__powerpc64__] (TLS_LD): Use __TLS_GET_ADDR instead of
2150         .__tls_get_addr.
2151         [__powerpc64__] (TLS_GD): Likewise.
2152
2153 2007-11-20  Ryan S. Arnold  <rsa@us.ibm.com>
2154
2155         [BZ #4997]
2156         * sysdeps/powerpc/powerpc32/fpu/s_lround.S (__lround): Fixed erroneous
2157         result when x is +/-nextafter(+/-0.5,-/+1) i.e. all 1's in the
2158         mantissa.
2159         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S (__llround):
2160         Likewise.  Also account for when x is an odd number between 2^52
2161         and 2^53-1.
2162         * sysdeps/powerpc/powerpc64/fpu/s_llround.S (__llround): Likewise.
2163         * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S (__llroundf): Likewise.
2164         * math/libm-test.inc (lround_test, llround_test): Added test cases to
2165         detect aforementioned erroneous conditions.
2166
2167 2008-04-11  Jakub Jelinek  <jakub@redhat.com>
2168
2169         * configure.in: Check for -fno-section-anchors in addition to
2170         -fno-toplevel-reorder.
2171
2172 2008-04-11  Ulrich Drepper  <drepper@redhat.com>
2173
2174         * include/features.h (__GLIBC_MINOR__): Bump to 8.
2175
2176         * sysdeps/powerpc/powerpc32/fpu/s_lroundf.S: Remove duplicate comment.
2177         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llroundf.S: Likewise.
2178         * sysdeps/powerpc/powerpc32/power6/fpu/s_llroundf.S: Likewise.
2179         * sysdeps/powerpc/powerpc64/fpu/s_lrint.S: Likewise.
2180         * sysdeps/powerpc/powerpc64/fpu/s_lround.S: Likewise.
2181         * sysdeps/powerpc/powerpc64/fpu/s_lroundf.S: Likewise.
2182
2183 2008-04-11  Jakub Jelinek  <jakub@redhat.com>
2184
2185         [BZ #5443]
2186         * time/era.c: Transform __libc_setlocale_lock into rwlock.
2187         * time/alt_digit.c: Likewise.
2188         * wcsmbs/wcsmbsload.c: Likewise.
2189
2190 2008-04-10  Ulrich Drepper  <drepper@redhat.com>
2191
2192         * version.h (VERSION): Bump to 2.8.
2193
2194         * timzeone/asia: Update from tzdata2008b.
2195         * timezone/backward: Likewise.
2196         * timezone/europe: Likewise.
2197         * timezone/northamerica: Likewise.
2198         * timezone/southamerica: Likewise.
2199         * timezone/iso3166.tab: Likewise.
2200         * timezone/leapseconds: Likewise.
2201         * timezone/zone.tab: Likewise.
2202         * timezone/private.h: Update from tzcode2008a.
2203         * timezone/zdump.c: Likewise.
2204         * timezone/zic.c: Likewise.
2205
2206 2008-01-24  Steven Munroe  <sjmunroe@us.ibm.com>
2207
2208         [BZ #5741]
2209         * sysdeps/powerpc/powerpc64/dl-machine.h (PPC_DCBT, PPC_DCBF):
2210         Define additonal Data Cache Block instruction macros.
2211         (elf_machine_fixup_plt): Add dcbt for opd and plt entries.
2212         Replace dcbst with dcbf and sync with sync/isync.
2213
2214 2008-02-21  Alan Modra  <amodra@bigpond.net.au>
2215
2216         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_type_class):
2217         Always set ELF_RTYPE_CLASS_PLT.
2218         (elf_machine_lookup_noexec_p, elf_machine_lookup_noplt_p): Delete.
2219
2220 2008-04-03  Steven Munroe  <sjmunroe@us.ibm.com>
2221
2222         * sysdeps/powerpc/powerpc32/power4/hp-timing.c: New file.
2223         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: New file.
2224         * sysdeps/powerpc/powerpc64/hp-timing.h [_ARCH_PWR4] (HP_TIMING_NOW):
2225         For ISA 2.01 and later replace mftb with mfspr 268.
2226
2227 2008-02-19  Steven Munroe  <sjmunroe@us.ibm.com>
2228
2229         [BZ #5768]
2230         * sysdeps/powerpc/fpu/Makefile (libm-tests): Add test-powerpc-snan.
2231         * sysdeps/powerpc/fpu/test-powerpc-snan.c: New file.
2232
2233 2008-02-18  Steven Munroe  <sjmunroe@us.ibm.com>
2234
2235         [BZ #5768]
2236         * sysdeps/powerpc/powerpc32/fpu/s_isnan.S: New file.
2237         * sysdeps/powerpc/powerpc32/fpu/s_isnan.c: Removed.
2238         * sysdeps/powerpc/powerpc64/fpu/s_isnan.S: New file.
2239         * sysdeps/powerpc/powerpc64/fpu/s_isnan.c: Removed.
2240
2241 2008-04-10  Jakub Jelinek  <jakub@redhat.com>
2242
2243         * stdlib/tst-makecontext.c (othervar): New variable.
2244         (cf): Test sign extending the argument to long.
2245
2246 2008-03-03  Steven Munroe  <sjmunroe@us.ibm.com>
2247
2248         * sysdeps/powerpc/powerpc32/power5/fpu/s_isnan.S: New file.
2249         * sysdeps/powerpc/powerpc32/power5/fpu/s_isnanf.S: New file.
2250         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnan.S: New file.
2251         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S: New file.
2252         * sysdeps/powerpc/powerpc64/power5/fpu/s_isnan.S: New file.
2253         * sysdeps/powerpc/powerpc64/power6/fpu/s_isnan.S: New file.
2254         * sysdeps/powerpc/powerpc64/power6x/fpu/s_isnan.S: New file.
2255
2256 2008-02-22  Alan Modra  <amodra@bigpond.net.au>
2257
2258         * elf/Makefile (tests): Substitute tests-vis-yes here.
2259         (tests-vis-yes): Delete.
2260         (modules-name, modules-vis-yes): Similarly.
2261
2262 2008-02-12  Pete Eberlein  <eberlein@us.ibm.com>
2263
2264         [BZ #4407]
2265         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
2266         Preserve sign in signgamp when x is zero.
2267
2268 2007-10-26  Steven Munroe  <sjmunroe@us.ibm.com>
2269
2270         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: New File.
2271         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.c: Removed.
2272         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: New File.
2273         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.c: Removed.
2274         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: New File.
2275         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: New File.
2276
2277 2008-04-09  Ulrich Drepper  <drepper@redhat.com>
2278
2279         [BZ #4314]
2280         * sysdeps/i386/i686/memcpy.S: Optimize copying of equally aligned
2281         buffers.
2282
2283         [BZ #5209]
2284         * sysdeps/unix/sysv/syscalls.list: The times syscall doesn't have
2285         a reserved error value.
2286
2287         * stdlib/tst-makecontext.c: Change parameter to cf to negative
2288         value to check for correct sign extension.
2289
2290         [BZ #5436]
2291         * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
2292         Copy 64-bit parameter values even though this is not required in
2293         the standard.
2294
2295         * sysdeps/unix/sysv/linux/x86_64/vfork.S (__vfork): Record return
2296         PC save.
2297
2298 2008-02-14  Daniel Jacobowitz  <dan@codesourcery.com>
2299
2300         * sysdeps/unix/sysv/linux/i386/vfork.S (__vfork): Record return
2301         PC save.
2302
2303 2008-04-09  Jakub Jelinek  <jakub@redhat.com>
2304
2305         * nss_files/files-XXX.c (_nss_files_getXXent_r): Restore saved errno.
2306
2307 2008-04-09  Ulrich Drepper  <drepper@redhat.com>
2308
2309         [BZ #5998]
2310         * libio/iofwrite.c (_IO_fwrite): Return correct count if flushing
2311         in line-buffered stream failed.
2312         * libio/iofwrite_u.c (fwrite_unlocked): Likewise.
2313
2314 2008-04-08  Ulrich Drepper  <drepper@redhat.com>
2315
2316         [BZ #6024]
2317         * scripts/abi-versions.awk: If the version specified by
2318         --enable-oldest-abi is older than the first version for this
2319         architecture, use the default version.
2320
2321         * locale/programs/ld-collate.c (collate_read): Ignore script lines
2322         as well when ignoring the whole category.
2323
2324 2008-04-07  Ulrich Drepper  <drepper@redhat.com>
2325
2326         [BZ #6042]
2327         * sysdeps/unix/sysv/linux/net/ethernet.h: Add a few more
2328         ETHERTYPE_* definitions.
2329         Patch partly by Aurelien Jarno <aurelien@aurel32.net>.
2330
2331 2008-04-07  Jakub Jelinek  <jakub@redhat.com>
2332
2333         * stdlib/mbtowc.c (__no_r_state): Remove.
2334         (mbtowc): New static state variable.  Use it instead of
2335         __no_r_state.
2336         * stdlib/wctomb.c (__no_r_state): Remove extern decl.
2337         (__wctomb_state): New hidden variable.
2338         (wctomb): Use __wctomb_state instead of __no_r_state.
2339         * debug/wctomb_chk.c (__no_r_state): Remove extern decl.
2340         (__wctomb_state): New extern decl.
2341         (__wctomb_chk): Use __wctomb_state instead of __no_r_state.
2342
2343 2008-04-07  Ulrich Drepper  <drepper@redhat.com>
2344
2345         [BZ #5475]
2346         * resolv/res_init.c: Handle scope IDs in resolv.conf.
2347
2348 2008-04-07  Jakub Jelinek  <jakub@redhat.com>
2349
2350         * malloc/mtrace.pl: Use $@ instead of $* to keep perl 5.10 quiet.
2351
2352 2008-04-06  Ulrich Drepper  <drepper@redhat.com>
2353
2354         * po/nl.po: Update from translation team.
2355
2356 2008-03-31  Ulrich Drepper  <drepper@redhat.com>
2357
2358         [BZ #6007]
2359         * string/strfry.c: Handle empty strings again.
2360
2361 2008-03-30  Ulrich Drepper  <drepper@redhat.com>
2362
2363         [BZ #5443]
2364         * intl/dcigettext.c (__dcigettext): Get reader lock for locale data
2365         before looking for translation.
2366         * locale/duplocale.c: Transform __libc_setlocale_lock into rwlock.
2367         * locale/freelocale.c: Likewise.
2368         * locale/newlocale.c: Likewise.
2369         * locale/setlocale.c: Likewise.
2370         Based partially on a patch by ryo@np.css.fujitsu.com.
2371
2372 2008-03-30  Jakub Jelinek  <jakub@redhat.com>
2373
2374         * intl/dcigettext.c (_nl_find_msg): Reread nconversions after
2375         acquiring wrlock.  Do conv_tab allocation while holding lock.
2376         * intl/Makefile: Add rules to build and run tst-gettext6.
2377         * intl/tst-gettext6.c: New test.
2378         * intl/tst-gettext6.sh: New file.
2379
2380 2008-03-30  Ulrich Drepper  <drepper@redhat.com>
2381
2382         * po/nl.po: Update from translation team.
2383
2384         * sysdeps/unix/opendir.c (__alloc_dir): If allocation fails for size
2385         provided through st_blksize, try the default size before giving up.
2386
2387 2008-03-29  Ulrich Drepper  <drepper@redhat.com>
2388
2389         * stdio-common/vfprintf.c (vfprintf): Correct overflow test.
2390
2391         [BZ #5939]
2392         * sysdeps/posix/tempname.c (__gen_tempname): Correct flag selection.
2393
2394         * posix/getopt.c (_getopt_internal_r): Remove old POSIX-demanded
2395         error message.  POSIX today does not require the messages to be in
2396         a specific form.  Suggested by Jim Meyering <jim@meyering.net>.
2397
2398         [BZ #5979]
2399         * sunrpc/auth_unix.c: Unify printed strings.
2400         * sunrpc/clnt_tcp.c: Likewise.
2401         * sunrpc/clnt_udp.c: Likewise.
2402         * sunrpc/clnt_unix.c: Likewise.
2403         * sunrpc/svc_tcp.c: Likewise.
2404         * sunrpc/svc_udp.c: Likewise.
2405         * sunrpc/svc_unix.c: Likewise.
2406         * sunrpc/xdr.c: Likewise.
2407         * sunrpc/xdr_array.c: Likewise.
2408         * sunrpc/xdr_rec.c: Likewise.
2409         * sunrpc/xdr_ref.c: Likewise.
2410         * locale/programs/ld-time.c (time_finish): Unify messages.
2411         * locale/programs/locfile.c (handle_copy): Fix typo.
2412         * nscd/nscd.c (options): Fix typo.
2413
2414         [BZ #5995]
2415         * stdlib/strtod_l.c: Use correct sign for result in one more
2416         underflow case.
2417         Patch by Eric Blake <ebb9@byu.net>.
2418
2419 2008-03-27  Jakub Jelinek  <jakub@redhat.com>
2420
2421         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Add open
2422         and creat system calls.
2423         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove open system
2424         call.
2425         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Remove open and creat
2426         system calls.
2427         * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Likewise.
2428         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
2429         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
2430
2431 2008-03-27  Ulrich Drepper  <drepper@redhat.com>
2432
2433         * sysdeps/unix/sysv/linux/bits/local_lim.h: Undefined ARG_MAX if
2434         <linux/limits.h> has defined it.
2435         * sysdeps/unix/sysv/linux/sys/param.h: Define NCARGS to the legacy
2436         ARG_MAX value and prevent ARG_MAX from being defined by the kernel
2437         headers.
2438         * sysdeps/unix/sysv/linux/sysconf.c: Define legacy_ARG_MAX and use
2439         it instead of ARG_MAX.
2440
2441 2008-03-25  Jakub Jelinek  <jakub@redhat.com>
2442
2443         * posix/gai.conf: Fix comment for scope nullbits.
2444         * sysdeps/posix/getaddrinfo.c (gaiconf_init): If /bits is not present,
2445         default to 128 bits for v4 mapped addresses.
2446
2447 2008-03-07  Martin Schwidefsky  <schwidefsky@de.ibm.com>
2448
2449         * sysdeps/s390/fpu/fegetenv.c (fegetenv): Remove PTRACE_PEEKUSER
2450         ptrace call to get the ieee_instruction_pointer from the kernel.
2451         * sysdeps/s390/fpu/fesetenv.c (fesetenv): Remove PTRACE_POKEUSER
2452         ptrace call to set the ieee_instructtion_pointer.
2453         * sysdeps/unix/sysv/linux/s390/sys/user.h (struct _user_regs_struct):
2454         Add comment that ieee_instruction_pointer is always 0.
2455
2456 2008-03-09  Andreas Jaeger  <aj@suse.de>
2457
2458         [BZ #5857]
2459         * sysdeps/ieee754/dbl-64/s_rint.c (__rint): Handle j0==18.
2460         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Likewise.
2461         Patch by Mark Elliott <mark.h.elliott@lmco.com>.
2462
2463         * math/libm-test.inc (nearbyint_test): Add new test cases from #5857.
2464         (rint_test): Likewise.
2465
2466 2008-03-24  Ulrich Drepper  <drepper@redhat.com>
2467
2468         * nis/nis_call.c (nis_server_cache_search): Save errno around stat
2469         call.
2470         (__nisfind_server): Similar for open readColdStartFile call.
2471         Patch partially by Jim Meyering.
2472         * nss/nss_files/files-XXX.c (_nss_files_getXXent_r): Save errno
2473         around internal_setent call.
2474
2475         * po/vi.po: New Vietnamese translation.
2476
2477         * sysdeps/unix/sysv/linux/adjtime.c: Correctly use
2478         ADJ_OFFSET_SS_READ.
2479
2480         * sysdeps/unix/sysv/linux/bits/sched.h: Add new CLONE_* flags,
2481         remove CLONE_STOPPED.
2482
2483 2008-02-10  Jim Meyering  <meyering@redhat.com>
2484
2485         Remove useless "if" before "free":
2486         * elf/ldconfig.c (parse_conf_include): Likewise.
2487         * gmon/gmon.c (weak_alias): Likewise.
2488         * iconv/gconv_conf.c (__gconv_get_path): Likewise.
2489         * inet/rcmd.c (__validuser2_sa): Likewise.
2490         * intl/bindtextdom.c (set_binding_values): Likewise.
2491         * intl/loadmsgcat.c (_nl_load_domain, _nl_unload_domain): Likewise.
2492         * libio/genops.c (save_for_backup): Likewise.
2493         * libio/wgenops.c (save_for_wbackup): Likewise.
2494         * locale/programs/ld-collate.c (collate_read): Likewise.
2495         * locale/programs/linereader.c (get_string): Likewise.
2496         * nis/nss_compat/compat-pwd.c (give_pwd_free): Likewise.
2497         * nis/nss_compat/compat-spwd.c (give_spwd_free): Likewise.
2498         * resolv/res_debug.c (do_section): Likewise.
2499         * sunrpc/xdr_sizeof.c (x_inline, xdr_sizeof): Likewise.
2500         * sysdeps/mach/hurd/if_index.c (libc_hidden_def): Likewise.
2501         * sysdeps/posix/sprofil.c (__sprofil): Likewise.
2502         * time/lc-time-cleanup.c (_nl_cleanup_time): Likewise.
2503         * time/tzset.c (tzset_internal): Likewise.
2504
2505 2008-03-18  Jakub Jelinek  <jakub@redhat.com>
2506
2507         * sysdeps/unix/sysv/linux/dl-sysdep.h: Use __ASSEMBLER__ instead
2508         of ASSEMBLER.
2509
2510 2008-03-11  Ulrich Drepper  <drepper@redhat.com>
2511
2512         [BZ #5903]
2513         * iconv/iconv_charmap.c (charmap_conversion): Pass name of output file
2514         not stream for output file.  Open output file here.
2515         * iconv/iconv_prog.c (process_lock): Take pointer to output stream
2516         and output file name.
2517         (process_fd): Likewise.
2518         (process_file): Likewise.
2519         (main): Adjust callers of changed functions.
2520         * iconv/iconv_prog.h: Adjust prototype.
2521
2522 2008-03-09  Andreas Jaeger  <aj@suse.de>
2523
2524         [BZ #5753]
2525         * sysdeps/ia64/ieee754.h: Use protected namespace
2526         __BIG_ENDIAN/__LITTLE_ENDIAN.
2527         * sysdeps/ieee754/ieee754.h: Likewise.
2528         Patch by Aurelien Jarno <aurelien@aurel32.net>.
2529
2530 2008-03-08  Roland McGrath  <roland@frob.com>
2531
2532         * hurd/hurdsig.c (_hurd_internal_post_signal): When normal rules would
2533         ignore a signal that came from a machine exception, treat it as a
2534         fatal core-dump signal instead.
2535         Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
2536
2537         * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler):
2538         Clear DF bit in thread state's eflags.
2539         Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
2540
2541 2008-03-08  Ulrich Drepper  <drepper@redhat.com>
2542
2543         [BZ #5774]
2544         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Consume closing brace
2545         of NAN(...) sequence.
2546         * stdlib/Makefile (tests): Add tst-strtod6.
2547         * stdlib/tst-strtod6.c: New file.
2548
2549         * inet/inet6_opt.c (inet6_opt_init): Check extlen for overflow.
2550
2551         [BZ #5762]
2552         * posix/getopt.c (_getopt_internal_r): Clarify error message by
2553         putting offending option character in quotes.  Clean up error
2554         messages.
2555         * po/be.po: Adjust msgstr in translation file.
2556         * po/bg.po: Likewise.
2557         * po/ca.po: Likewise.
2558         * po/cs.po: Likewise.
2559         * po/da.po: Likewise.
2560         * po/de.po: Likewise.
2561         * po/es.po: Likewise.
2562         * po/fr.po: Likewise.
2563         * po/hr.po: Likewise.
2564         * po/ko.po: Likewise.
2565         * po/nl.po: Likewise.
2566         * po/rw.po: Likewise.
2567         * po/sk.po: Likewise.
2568         * po/sv.po: Likewise.
2569         * po/tr.po: Likewise.
2570         * po/zh_CN.po: Likewise.
2571         * po/zh_TW.po: Likewise.
2572
2573         [BZ #5760]
2574         * inet/inet6_opt.c (inet6_opt_init): Fix ip6h_len computation.
2575         Patch by Roland Bless <roland@bless.de>.
2576
2577         * sysdeps/unix/sysv/linux/dl-sysdep.c: Avoid unnecessary code for
2578         .o file.
2579         * elf/Makefile (routines): Add dl-sysdep.
2580         (elide-routines.os): Likewise.
2581
2582 2008-03-07  Ulrich Drepper  <drepper@redhat.com>
2583
2584         [BZ #5786]
2585         * elf/dl-sysdep.c: Undefine ROUND after use.
2586         * sysdeps/generic/ldsodefs.h [HAVE_DL_DISCOVER_OSVERSION]
2587         (struct rtld_global_ro): Add _dl_tls_get_addr_soft element.
2588         * elf/rtld.c (rtld_global_ro): Initialize _dl_discover_osversion.
2589         * sysdeps/unix/sysv/linux/dl-osinfo.h: Move _dl_discover_osversion
2590         to ...
2591         * sysdeps/unix/sysv/linux/dl-sysdep.c: ...here.
2592         * sysdeps/unix/sysv/linux/dl-sysdep.h: Declare _dl_discover_osversion
2593         if necessary.
2594         * sysdeps/unix/sysv/linux/sysconf.c: Handle _SC_ARG_MAX here.
2595
2596         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Add
2597         _dl_tls_get_addr_soft element.
2598         * elf/rtld.c (rtld_global_ro): Initialize _dl_tls_get_addr_soft.
2599         * elf/Versions (ld): Don't export _dl_tls_get_addr_soft.
2600         * dlfcn/dlinfo.c (dlinfo_doit): Access dl_tls_get_addr_soft through
2601         GLRO.
2602         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise.
2603         * elf/dl-tls.c (_dl_tls_get_addr_soft): Use attribute_hidden instead
2604         of internal_function.
2605
2606         * stdlib/Makefile (aux): Add tens_in_limb.
2607         * stdlib/strtod_l.c: Move _tens_in_limb definition to...
2608         * stdlib/tens_in_limb.c: ...here.  New file.
2609
2610         [BZ #5778]
2611         * sysdeps/unix/sysv/linux/pathconf.h: Declare
2612         __statfs_chown_restricted.
2613         * sysdeps/unix/sysv/linux/fpathconf.c: Call __statfs_chown_restricted
2614         for _PC_CHOWN_RESTRICTED.
2615         * sysdeps/unix/sysv/linux/pathconf.c: Likewise.
2616         Implement __statfs_chown_restricted.
2617         * sysdeps/unix/sysv/linux/bits/posix_opt.h: Change
2618         _POSIX_CHOWN_RESTRICTED value to zero.
2619         * io/tst-fchownat.c: Correctly handle _POSIX_CHOWN_RESTRICTED
2620         defined to zero.
2621
2622         * sysdeps/x86_64/rtld-memset.c: New file.
2623
2624 2008-02-26  Harsha Jagasia  <harsha.jagasia@amd.com>
2625
2626         * sysdeps/x86_64/cacheinfo.c (NOT_USED_RIGHT_NOW): Remove ifdef guards.
2627
2628         * sysdeps/x86_64/memset.S: Rewrite non-SSE code path as tuned for AMD
2629         Barcelona machine.  Make default fall through branch of
2630         __x86_64_preferred_memory_instruction check as the integer code path.
2631
2632 2007-10-15  H.J. Lu  <hongjiu.lu@intel.com>
2633
2634         * sysdeps/x86_64/cacheinfo.c
2635         (__x86_64_preferred_memory_instruction): New variable.
2636         (init_cacheinfo): Initialize __x86_64_preferred_memory_instruction.
2637
2638         * sysdeps/x86_64/memset.S: Rewrite.
2639
2640 2008-03-04  Jakub Jelinek  <jakub@redhat.com>
2641
2642         * include/stdio.h (__asprintf_chk, __dprintf_chk,
2643         __obstack_printf_chk): New prototypes.
2644         (__vasprintf_chk, __vdprintf_chk,
2645         __obstack_vprintf_chk): Likewise.
2646         Add libc_hidden_proto.
2647         * libio/obprintf.c
2648         (_IO_obstack_jumps): No longer static, add attribute_hidden.
2649         * libio/bits/stdio-ldbl.h (__asprintf_chk, __dprintf_chk,
2650         __obstack_printf_chk, __vasprintf_chk, __vdprintf_chk,
2651         __obstack_vprintf_chk): Add __LDBL_REDIR_DECL.
2652         * libio/bits/stdio2.h (__asprintf_chk, __dprintf_chk,
2653         __obstack_printf_chk, __vasprintf_chk, __vdprintf_chk,
2654         __obstack_vprintf_chk): New prototypes.
2655         (asprintf, __asprintf, dprintf, obstack_printf, vasprintf, vdprintf,
2656         obstack_vprintf): New inlines.
2657         * debug/dprintf_chk.c: New file.
2658         * debug/vdprintf_chk.c: New file.
2659         * debug/asprintf_chk.c: New file.
2660         * debug/vasprintf_chk.c: New file.
2661         * debug/obprintf_chk.c: New file.
2662         * debug/tst-chk1.c (do_test): Add asprintf and obstack_printf tests.
2663         * debug/Versions (__asprintf_chk, __dprintf_chk, __obstack_printf_chk,
2664         __vasprintf_chk, __vdprintf_chk, __obstack_vprintf_chk): Export
2665         @@GLIBC_2.8.
2666         * debug/Makefile: Build asprintf_chk, vasprintf_chk, dprintf_chk,
2667         vdprintf_chk and obprintf_chk, set CFLAGS for them.
2668         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c (__nldbl___vasprintf_chk,
2669         __nldbl___vdprintf_chk, __nldbl___obstack_vprintf_chk): Add
2670         libc_hidden_proto.
2671         * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl___vasprintf_chk,
2672         __nldbl___vdprintf_chk, __nldbl___obstack_vprintf_chk): New prototypes.
2673         * sysdeps/ieee754/ldbl-opt/Versions (__nldbl___asprintf_chk,
2674         __nldbl___vasprintf_chk, __nldbl___dprintf_chk, __nldbl___vdprintf_chk,
2675         __nldbl___obstack_printf_chk, __nldbl___obstack_vprintf_chk): Export
2676         @@GLIBC_2.8.
2677         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add asprintf_chk,
2678         vasprintf_chk, dprintf_chk, vdprintf_chk, obstack_printf_chk and
2679         obstack_vprintf_chk.
2680         * sysdeps/ieee754/ldbl-opt/nldbl-obstack_vprintf_chk.c: New file.
2681         * sysdeps/ieee754/ldbl-opt/nldbl-dprintf_chk.c: New file.
2682         * sysdeps/ieee754/ldbl-opt/nldbl-obstack_printf_chk.c: New file.
2683         * sysdeps/ieee754/ldbl-opt/nldbl-asprintf_chk.c: New file.
2684         * sysdeps/ieee754/ldbl-opt/nldbl-vdprintf_chk.c: New file.
2685         * sysdeps/ieee754/ldbl-opt/nldbl-vasprintf_chk.c: New file.
2686
2687 2008-03-04  Ulrich Drepper  <drepper@redhat.com>
2688
2689         [BZ #5779]
2690         * misc/sys/queue.h: Add STAILQ_CONCAT and TAILQ_CONCAT definitions.
2691         Patch by Roy Marples <roy@marples.name>.
2692
2693         [BZ #5736]
2694         * malloc/malloc.c: Fix typo in comment.
2695
2696         [BZ #5627]
2697         * locale/iso-639.def: Add Shuswap.
2698
2699 2008-02-25  Jakub Jelinek  <jakub@redhat.com>
2700
2701         [BZ #5790]
2702         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr2_r): Don't
2703         overwrite *h_errnop/*errnop values from getanswer_r in case of
2704         failure.
2705
2706 2008-03-03  Ulrich Drepper  <drepper@redhat.com>
2707
2708         [BZ #5818]
2709         * nscd/connections.c (dbs): Add initializers for .suggested_module.
2710         (verify_persistent_db): Remove one unnecessary test and add a new one
2711         for bad configuration.
2712         (nscd_init): Improve error reported when persistent database cannot
2713         be reused.
2714         * nscd/nscd.h (DEFAULT_SUGGESTED_MODULE): Define.
2715         * nscd/nscd_conf.c (nscd_parse_file): Provide default values for
2716         .suggested_module and .max_db_size and case config file says the
2717         values are zero.
2718         * nscd/nscd_helper.c (get_mapping): Fail if hash table module is zero.
2719
2720         [BZ #5854]
2721         * nis/ypclnt.c (yp_order): Fix handling of return value of
2722         do_ypcall_tr call.
2723         Patch by Jeff Moyer <jmoyer@redhat.com>.
2724
2725         * po/fr.po: Update from translation team.
2726
2727 2008-02-22  Andreas Jaeger  <aj@suse.de>,
2728             Carlos O'Donell <carlos@systemhalted.org>
2729
2730         [BZ #5012]
2731         * FAQ.in: Describe why glibc needs to be compiled with
2732         optimization.
2733
2734 2008-02-19  Roland McGrath  <roland@redhat.com>
2735
2736         * elf/elf.h (SHT_GNU_ATTRIBUTES): New macro.
2737
2738 2008-02-15  Ulrich Drepper  <drepper@redhat.com>
2739
2740         [BZ #5737]
2741         * resolv/netdb.h: Make NI_MAXHOST and NI_MAXSERV available when
2742         __USE_MISC is defined.
2743
2744 2008-02-10  Ulrich Drepper  <drepper@redhat.com>
2745
2746         * sysdeps/unix/sysv/linux/sys/timerfd.h: New file.
2747         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers): Add
2748         sys/timerfd.h.
2749         * sysdeps/unix/sysv/linux/syscalls.list: Add timerfd_create,
2750         timerfd_gettime, timerfd_settime.
2751         * sysdeps/unix/sysv/linux/Versions: Add timerfd_create,
2752         timerfd_gettime, timerfd_settime for GLIBC_2.8.
2753
2754 2008-02-08  Roland McGrath  <roland@redhat.com>
2755
2756         * elf/elf.h (NT_PPC_SPE): New macro.
2757
2758 2008-02-06  Roland McGrath  <roland@redhat.com>
2759
2760         * Makerules ($(common-objpfx)sysd-rules):
2761         Depend on $(sysdep-makeconfigs).
2762
2763 2008-01-31  Roland McGrath  <roland@redhat.com>
2764
2765         [BZ #5442]
2766         * configure.in: Use -print-file-name if it yields a directory,
2767         for each of include and include-fixed.
2768         * configure: Regenerated.
2769
2770         * Makeconfig (sysd-rules-targets): New variable.
2771         * sysdeps/unix/make-syscalls.sh: Use it in the rules emitted.
2772         * sysdeps/unix/Makefile (omit-deps): Append variants for each target.
2773
2774 2008-01-30  Roland McGrath  <roland@redhat.com>
2775
2776         * manual/libc.texinfo: Update back-cover text.
2777
2778         * elf/elf.h (NT_386_TLS): New macro.
2779
2780 2008-01-29  Roland McGrath  <roland@redhat.com>
2781
2782         * Makeconfig (sysd-rules-patterns): New variable.
2783         * Makerules ($(common-objpfx)sysd-rules): Drive the loop from that.
2784         (check-inhibit-asm): New canned sequence, replaces ...
2785         (open-check-inhibit-asm, close-check-inhibit-asm): ... these, removed.
2786         * elf/rtld-Rules ($(objpfx)rtld-%.os): Use $(rtld-CPPFLAGS) in commands.
2787         (rtld-CPPFLAGS): Renamed from CPPFLAGS-rtld.
2788         (CFLAGS-rtld): Variable removed.
2789
2790 2008-01-24  Roland McGrath  <roland@redhat.com>
2791
2792         * configure.in: Let configure fragments set base_os.
2793         * configure: Regenerated.
2794
2795 2008-01-22  Ulrich Drepper  <drepper@redhat.com>
2796
2797         * po/ko.po: Update from translation team.
2798
2799 2008-01-12  H.J. Lu  <hongjiu.lu@intel.com>
2800
2801         * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Use short for fnstsw.
2802
2803 2008-01-12  Andreas Jaeger  <aj@suse.de>
2804
2805         [BZ #5040]
2806         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h (enum EPOLL_EVENTS):
2807         Add EPOLLRDHUP.
2808
2809 2008-01-20  Samuel Thibault  <samuel.thibault@ens-lyon.org>
2810
2811         * hurd/hurdsock.c (_hurd_socket_server): Return the standard
2812         error EAFNOSUPPORT rather than non-standard EPFNOSUPPORT.
2813         * sunrpc/bindrsvprt.c (bindresvport): Likewise.
2814
2815 2007-10-23  Alexandre Oliva  <aoliva@redhat.com>
2816
2817         * include/link.h (FORCED_DYNAMIC_TLS_OFFSET): Define.
2818         * elf/dl-close.c (_dl_close): Check for it.
2819         * elf/dl-reloc.c (CHECK_STATIC_TLS): Likewise.
2820         (_dl_allocate_static_tls): Likewise.
2821         * elf/dl-tls.c (_dl_allocate_tls_init): Likewise.
2822         (__tls_get_addr): Protect from race conditions in setting l_tls_offset
2823         to it.
2824         * elf/tst-tls16.c: New file.
2825         * elf/tst-tlsmod16a.c: New file.
2826         * elf/tst-tlsmod16b.c: New file.
2827         * elf/Makefile: Add rules to build and run tst-tls16.
2828
2829 2008-01-16  Ulrich Drepper  <drepper@redhat.com>
2830
2831         [BZ #5628]
2832         * bits/shm.h: Fix comment describing shmid_ds.
2833         * sysdeps/gnu/bits/shm.h: Likewise.
2834         * sysdeps/unix/sysv/linux/alpha/bits/shm.h: Likewise.
2835         * sysdeps/unix/sysv/linux/bits/shm.h: Likewise.
2836         * sysdeps/unix/sysv/linux/ia64/bits/shm.h: Likewise.
2837         * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
2838         * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
2839         * sysdeps/unix/sysv/linux/sh/bits/shm.h: Likewise.
2840         * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
2841         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Likewise.
2842         Patch by Hareesh Nagarajan <hareesh.nagarajan@gmail.com>.
2843
2844         [BZ #5607]
2845         * conform/data/fcntl.h-data: Fix posix_fadvise and posix_fallocate
2846         prototypes.
2847         * conform/data/limits.h-data: Adjust limits changed in v6 and add
2848         additional suffixes.
2849         * conform/data/mqueue.h-data: Fix typo in mq_curmsgs entry.
2850         Add optional functions mq_timedreceive and mq_timedsend.
2851         * conform/data/netdb.h-data: Add more AI_* and EAI_* constants.
2852         * conform/data/pthread.h-data: Fix prototype of
2853         pthread_condattr_setclock.  pthread_sigmask is not required in v6.
2854         * conform/data/semaphore.h-data: Allow time.h definitions.
2855         * conform/data/signal.h-data: Likewise.
2856         * conform/data/stdio.h-data: getw and putw are not required in v6.
2857         * conform/data/stdlib.h-data: Change setstate prototype.
2858         * conform/data/string.h-data: Fix strerror_r prototype.
2859         * conform/data/time.h-data: Fix typo in TIMER_ABSTIME definition.
2860         * conform/data/unistd.h-data: pthread_atfork not required in v6.
2861         Fix readlink prototype.
2862         * conform/data/netinet/in.h-data: Add const to in6addr_any and
2863         in6addr_loopback.
2864         * inet/netinet/in.h: Cleanup namespace.
2865         * posix/regex.h: Likewise.
2866         * resolv/netdb.h: Likewise.
2867         * sysdeps/unix/sysv/linux/bits/in.h: Likewise.
2868         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
2869         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
2870         * sysdeps/posix/getaddrinfo.c (default_labels): Adjust for change
2871         of names of in in6_addr.
2872         (default_precedence): Likewise.
2873         * sysdeps/unix/sysv/linux/cmsg_nxthdr.c: Include <stddef.h> for
2874         NULL definition.
2875
2876 2008-01-15  Ulrich Drepper  <drepper@redhat.com>
2877
2878         * conform/data/fmtmsg.h-data: Add missing allows.
2879         * conform/data/ftw.h-data: Likewise.
2880         * conform/data/inttypes.h-data: Likewise.
2881         * conform/data/math.h-data: Likewise.
2882         * conform/data/signal.h-data: Likewise.
2883         * conform/data/net/if.h-data: Likewise.
2884         * conform/data/netinet/in.h-data: Likewise.
2885         * conform/data/sys/socket.h-data: Likewise.
2886
2887         [BZ #5614]
2888         * string/bits/string2.h (__strtok_r_1c): Always update *__NEXTP.
2889         (__strtok_r): Simplify.
2890         * string/tester.c (test_strtok_r): Add test case for futile search
2891         with single-character seach string.
2892
2893 2008-01-12  Ulrich Drepper  <drepper@redhat.com>
2894
2895         * po/ko.po: Update from translation team.
2896
2897 2008-01-11  Andreas Jaeger  <aj@suse.de>
2898
2899         [BZ #5600]
2900         * sysdeps/unix/sysv/linux/sys/signalfd.h (struct
2901         signalfd_siginfo): Use 64-bit type for ssi_ptr to sync with Linux
2902         kernel header.
2903
2904 2008-01-10  Ulrich Drepper  <drepper@redhat.com>
2905
2906         * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Store result of
2907         native interface lookup in all the relevant places.
2908
2909 2008-01-10  Jakub Jelinek  <jakub@redhat.com>
2910             Ulrich Drepper  <drepper@redhat.com>
2911
2912         * sysdeps/posix/getaddrinfo.c (sort_results): Remove service_order
2913         field.  Use sockaddr_in6 for source_addr.
2914         (get_scope): Change type of parameter to sockaddr_in6.  Adjust.
2915         (match_prefix): Likewise.
2916         (get_label): Likewise.
2917         (get_precedence): Likewise.
2918         (rfc3484_sort): Change to use indirect access to results array.
2919         Adjust to use of sockaddr_in6.  Replace service_order test with
2920         simple index comparison.
2921         (getaddrinfo): Define order array.  Initialize it.  Don't initialize
2922         service_order field.  Adjust qsort_t calls.  Access sorted result
2923         array indirectly through order array.
2924         * posix/tst-rfc3484.c: Adjust for change of rfc3484_sort.
2925         * posix/tst-rfc3484-2.c: Likewise.
2926         * posix/tst-rfc3484-3.c: Likewise.
2927
2928 2008-01-09  Ulrich Drepper  <drepper@redhat.com>
2929
2930         [BZ #5541]
2931         * sunrpc/rpc_thread.c (__rpc_thread_destroy): Also free xports and
2932         pollfd structures.
2933         Patch by André Cruz.
2934
2935         [BZ #5545]
2936         * sunrpc/clnt_perr.c (clnt_sperror): Don't use fixed size buffer.
2937         (clnt_spcreateerror): Likewise.
2938
2939         [BZ #5553]
2940         * malloc/malloc.c (public_mALLOc): Set ar_ptr when trying main_arena.
2941         (public_mEMALIGn): Likewise.
2942         Patch mostly by Daniel Jacobowitz.
2943
2944 2008-01-09  Jakub Jelinek  <jakub@redhat.com>
2945
2946         * sysdeps/unix/sysv/linux/i386/makecontext.S (__makecontext): Avoid
2947         clobbering memory at or above uc_stack.ss_sp + uc_stack.ss_size.
2948         * stdlib/Makefile: Add rules to build and run tst-makecontext2.
2949         * stdlib/tst-makecontext2.c: New test.
2950
2951 2008-01-08  Jakub Jelinek  <jakub@redhat.com>
2952
2953         * iconv/loop.c (UPDATE_PARAMS): Define to empty statement if not
2954         defined.
2955         (REINIT_PARAMS): Likewise.  Undefine before end of file.
2956         (STANDARD_TO_LOOP_ERR_HANDLER): Use UPDATE_PARAMS before calling
2957         transliteration hooks and REINIT_PARAMS afterwards.
2958         * iconvdata/iso-2022-jp.c (BODY): Use a separate variable for
2959         status.
2960         (REINIT_PARAMS): Define.
2961         * iconvdata/ibm1364.c (REINIT_PARAMS): Likewise.
2962         * iconvdata/ibm930.c (REINIT_PARAMS): Likewise.
2963         * iconvdata/ibm933.c (REINIT_PARAMS): Likewise.
2964         * iconvdata/ibm935.c (REINIT_PARAMS): Likewise.
2965         * iconvdata/ibm937.c (REINIT_PARAMS): Likewise.
2966         * iconvdata/ibm939.c (REINIT_PARAMS): Likewise.
2967         * iconvdata/iso-2022-cn.c (REINIT_PARAMS): Likewise.
2968         * iconvdata/iso-2022-cn-ext.c (REINIT_PARAMS): Likewise.
2969         * iconvdata/iso-2022-jp-3.c (REINIT_PARAMS): Likewise.
2970         * iconvdata/iso-2022-kr.c (REINIT_PARAMS): Likewise.
2971         * iconvdata/Makefile: Add rules to build and run tst-iconv7.c.
2972         * iconvdata/tst-iconv7.c: New test.
2973
2974 2008-01-07  Ulrich Drepper  <drepper@redhat.com>
2975
2976         * libio/stdio.h (vscanf): Fix definition for loser compilers.
2977
2978 2008-01-05  Jakub Jelinek  <jakub@redhat.com>
2979
2980         [BZ #5112]
2981         * nscd/connections.c (restart): Fix condition.
2982
2983 2008-01-03  Jakub Jelinek  <jakub@redhat.com>
2984
2985         * ctype/ctype.h (__ctype_b_loc, __ctype_tolower_loc,
2986         __ctype_toupper_loc): Add __THROW.
2987
2988 2008-01-02  Ulrich Drepper  <drepper@redhat.com>
2989
2990         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Fix
2991         recognition of interface family.
2992
2993         * posix/getconf.c: Update copyright year.
2994         * nss/getent.c: Likewise.
2995         * iconv/iconvconfig.c: Likewise.
2996         * iconv/iconv_prog.c: Likewise.
2997         * elf/ldconfig.c: Likewise.
2998         * catgets/gencat.c: Likewise.
2999         * csu/version.c: Likewise.
3000         * elf/ldd.bash.in: Likewise.
3001         * elf/sprof.c (print_version): Likewise.
3002         * locale/programs/locale.c: Likewise.
3003         * locale/programs/localedef.c: Likewise.
3004         * nscd/nscd.c (print_version): Likewise.
3005         * debug/xtrace.sh: Likewise.
3006         * malloc/memusage.sh: Likewise.
3007         * malloc/mtrace.pl: Likewise.
3008         * debug/catchsegv.sh: Likewise.
3009
3010 2007-12-26  Ulrich Drepper  <drepper@redhat.com>
3011
3012         * nss/nsswitch.c (__nss_lookup): Actually use alternative name in
3013         second lookup.
3014
3015 2007-12-23  Ulrich Drepper  <drepper@redhat.com>
3016
3017         * sysdeps/x86_64/cacheinfo.c (intel_02_known): New entry 0x3f.
3018         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
3019
3020 2007-12-17  Roland McGrath  <roland@redhat.com>
3021
3022         * inet/ether_line.c (ether_line): Remove unused variable.
3023
3024 2007-12-17  Samuel Thibault  <samuel.thibault@ens-lyon.org>
3025
3026         * login/forkpty.c (forkpty): Add const qualifier to parameters termp
3027         and winp.
3028         * login/openpty.c (openpty): Likewise.
3029         * login/pty.h (openpty, forkpty): Likewise.
3030         * manual/terminal.texi (openpty, forkpty): Likewise.
3031
3032 2007-12-17  Ulrich Drepper  <drepper@redhat.com>
3033
3034         * malloc/malloc.c (public_cALLOc): For arenas other than
3035         main_arena, count all bytes inside the mprotect_size range of the
3036         heap as uninitialized.
3037
3038 2007-12-16  Ulrich Drepper  <drepper@redhat.com>
3039
3040         * elf/tst-execstack.c (do_test): Don't fail if SELinux forbids
3041         executable stacks.
3042
3043         * malloc/malloc.c (public_mTRIm): Iterate over all arenas and call
3044         mTRIm for all of them.
3045         (mTRIm): Additionally iterate over all free blocks and use madvise
3046         to free memory for all those blocks which contain at least one
3047         memory page.
3048         * malloc/tst-trim1.c: New file.
3049         * malloc/Makefile (tests): Add tst-trim1.
3050
3051         * malloc/malloc.c (do_check_malloc_state): Minimal cleanups.
3052
3053 2007-12-14  Ulrich Drepper  <drepper@redhat.com>
3054
3055         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INTERNAL_SYSCALL_ERROR_P):
3056         First cast argument to long
3057         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_gettimeofday):
3058         Return long.
3059         (__vdso_clock_gettime): Likewise.
3060         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Functions
3061         return long.
3062
3063 2007-12-13  Ulrich Drepper  <drepper@redhat.com>
3064
3065         * locale/nl_langinfo.c (nl_langinfo): Just call __nl_langinfo_l.
3066         * locale/nl_langinfo_l.c: Real implementation, copied from
3067         nl_langinfo.c.
3068         * include/langinfo.h: Add libc_hidden_proto for __nl_langinfo_l.
3069
3070 2007-12-01  Jim Meyering  <meyering@redhat.com>
3071
3072         * posix/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
3073         that would inhibit utf8-optimization of a regexp containing line-
3074         or buffer-anchors, e.g., `^', `$'.
3075
3076 2007-12-12  Ulrich Drepper  <drepper@redhat.com>
3077
3078         * time/bug-getdate1.c (do_test): Don't use century values which
3079         aren't valid on 32-bit systems.
3080
3081 2007-12-12  Jakub Jelinek  <jakub@redhat.com>
3082
3083         * sysdeps/i386/i486/bits/string.h (memmove): Define as macro.
3084         (memmove): Rename to __memmove_g, with __asm__ ("memmove").
3085         * sysdeps/s390/bits/string.h (__strlen_g, __strcpy_g, __strncpy_g,
3086         __strcat_g, __strncat_g): Add __asm__.
3087
3088 2007-12-12  Ulrich Drepper  <drepper@redhat.com>
3089
3090         [BZ #5477]
3091         * io/fchmodat.c: Fix typo in stub_warning use.
3092         Patch by Petr Salinger.
3093
3094 2007-12-11  Ulrich Drepper  <drepper@redhat.com>
3095
3096         * iconvdata/hp-thai8.c: New file.
3097         * iconvdata/Makefile: Add rules for hp-thai8.c.
3098         * iconvdata/tst-tables.sh: Add entry for HP-THAI8.
3099         * iconvdata/gconv-modules: Likewise.
3100
3101         [BZ #5464]
3102         * iconvdata/hp-greek8.c: New file.
3103         * iconvdata/Makefile: Add rules for hp-greek8.c.
3104         * iconvdata/tst-tables.sh: Add entry for HP-GREEK8.
3105         * iconvdata/gconv-modules: Likewise.
3106
3107         [BZ #5463]
3108         * iconvdata/hp-turkish8.c: New file.
3109         * iconvdata/Makefile: Add rules for hp-turkish8.c.
3110         * iconvdata/tst-tables.sh: Add entry for HP-TURKISH8.
3111         * iconvdata/gconv-modules: Likewise.
3112
3113         * malloc/arena.c (grow_heap): Split out code to shrink heap into...
3114         (shrink_heap): ... this new function.
3115         (heap_trim): Call shrink_heap instead of grow_heap.
3116
3117         * malloc/malloc.c (_int_malloc): sYSMALLOc might fail, in this
3118         case don't call alloc_perturb.
3119
3120 2007-12-10  Ulrich Drepper  <drepper@redhat.com>
3121
3122         * sysdeps/unix/sysv/linux/adjtime.c: Use ADJ_OFFSET_SS_READ if
3123         possible.
3124         * sysdeps/unix/sysv/linux/kernel-features.h
3125         (__ASSUME_ADJ_OFFSET_SS_READ): Define for 2.6.24.
3126         * sysdeps/unix/sysv/linux/sys/timex.h (ADJ_OFFSET_SS_READ): Define.
3127
3128 2007-12-08  Ulrich Drepper  <drepper@redhat.com>
3129
3130         [BZ #5424]
3131         * stdio-common/vfprintf.c: Do not overflow when adding to done.
3132         * stdio-common/Makefile (tests): Add bug22.
3133         * stdio-common/bug22.c: New file.
3134
3135         [BZ #5451]
3136         * time/getdate.c: Fix filling in default values.
3137         * time/bug-getdate1.c: New file.
3138         * time/Makefile: Add rules to build and run bug-getdate1.
3139
3140         * iconvdata/ebcdic-is-friss.c: Use 8bit-gap instead of 8bit-generic.
3141         * iconvdata/ebcdic-es.c: Likewise.
3142         * iconvdata/ebcdic-es-a.c: Likewise.
3143         * iconvdata/ebcdic-uk.c: Likewise.
3144         * iconvdata/iso8859-16.c: Likewise.
3145         * iconvdata/viscii.c: Likewise.
3146         * iconvdata/iso8859-9e.c: Likewise.
3147         * iconvdata/Makefile: Adjust appropriately.
3148
3149         [BZ #5428]
3150         * wcsmbs/wchar.h: Unconditionally undefine __need_mbstate and
3151         __need_wint_t.
3152
3153 2007-12-07  Ulrich Drepper  <drepper@redhat.com>
3154
3155         [BZ #5427]
3156         * iconvdata/hp-roman9.c: New file.
3157         * iconvdata/Makefile: Add rules for hp-roman9.c.
3158         * iconvdata/tst-tables.sh: Add HP-ROMAN9.
3159         * iconvdata/gconv-modules: Likewise.
3160
3161         * iconvdata/hp-roman8.c: Use 8bit-gap instead of 8bit-generic.
3162         * iconvdata/Makefile: Adjust appropriately.
3163
3164         [BZ #5441]
3165         * stdio-common/vfscanf.c (_IO_vfwscanf): Don't free ptrs_to_free
3166         structure, it's allocated with alloca.
3167         * stdio-common/Makefile (tests): Add bug21.
3168         * stdio-common/bug21.c: New file.
3169
3170 2007-12-06  Aurelien Jarno  <aurelien@aurel32.net>
3171
3172         [BZ #5452]
3173         * sysdeps/unix/sysv/linux/bits/sched.h: Use __extension__
3174         keyword for gcc's braced-groups.
3175
3176 2007-12-07  Ulrich Drepper  <drepper@redhat.com>
3177
3178         [BZ #5454]
3179         * inet/ether_line.c: Strip hostname of whitespaces.
3180         * inet/Makefile (tests): Add tst-ether_line.
3181         * inet/tst-ether_line.c: New file.
3182
3183 2007-12-03  Ulrich Drepper  <drepper@redhat.com>
3184
3185         [BZ #5439]
3186         * sysdeps/unix/sysv/linux/sys/signalfd.h: Fix use of __nonnull.
3187
3188         [BZ #5435]
3189         * sysdeps/unix/sysv/linux/i386/makecontext.S: Align stack.
3190
3191         * stdlib/tst-setcontext.c: Catch the case where the links gets
3192         messed up and we do not reach main again.
3193
3194         * po/ca.po: Update from translation team.
3195
3196 2007-11-26  Ulrich Drepper  <drepper@redhat.com>
3197
3198         * posix/unistd.h: Declare fsync also for __USE_XOPEN2K.
3199         * posix/regex.h (REG_ENOSYS): Likewise.
3200         * wcsmbs/wchar.h: Define __need_file also for __USE_XOPEN2K.
3201
3202 2007-11-25  Ulrich Drepper  <drepper@redhat.com>
3203
3204         * nscd/nscd.h (MAX_STACK_USE): Define.
3205         * nscd/mem.c (MAX_STACK_USE): Remove definition here.
3206         (gc): Initialize stack_used based on allocation in prune_cache.
3207         * nscd/cache.c (prune_cache): Use heap for mark array if necessary.
3208         Clear array before use.
3209
3210         * nscd/aicache.c (addhstaiX): Update statistics counter in case
3211         memory allocation failed.
3212         * nscd/hstcache.c (cache_addhst): Likewise.
3213         * nscd/grpcache.c (cache_addgr): Likewise.
3214         * nscd/servicescache.c (cache_addserv): Likewise.
3215         * nscd/pwdcache.c (cache_addpw): Likewise.
3216         * nscd/initgrcache.c (addinitgroupsX): Likewise.
3217
3218 2007-11-23  Ulrich Drepper  <drepper@redhat.com>
3219
3220         * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Add open
3221         and creat system calls.
3222
3223         * sysdeps/unix/sysv/linux/check_native.c: Include <asm/types.h>.
3224
3225 2007-11-23  Martin Schwidefsky  <schwidefsky@de.ibm.com>
3226
3227         * sysdeps/unix/sysv/linux/Makefile [subdir=inet] (sysdep_headers):
3228         Add netiucv/iucv.h.
3229         * sysdeps/unix/sysv/linux/netiucv/iucv.h: New file.
3230         * sysdeps/unix/sysv/linux/opensock.c (__opensock): Add AF_IUCV
3231         protocol.
3232         * sysdeps/unix/sysv/linux/sa_len.c (__libc_sa_len): Likewise.
3233         * sysdeps/unix/sysv/linux/s390/opensock.c: New file.
3234         * sysdeps/unix/sysv/linux/s390/sa_len.c: New file.
3235
3236 2007-11-22  Martin Schwidefsky  <schwidefsky@de.ibm.com>
3237
3238         * sysdeps/s390/bits/string.h (strlen, strcpy, strncpy, strcat,
3239         strncat): Define as macros to avoid compile errors.
3240
3241         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list:  Add open and
3242         creat entries.
3243
3244 2007-11-22  Ulrich Drepper  <drepper@redhat.com>
3245
3246         [BZ #5382]
3247         * nscd/nscd.h (NSCD_THREAD_STACKSIZE): Define.
3248         * nscd/connections.c (start_threads): Use NSCD_THREAD_STACKSIZE.
3249         * nscd/mem.c (gc): Don't allocate arrays on the stack if they can
3250         overflow it.
3251         Partially based on a patch by Petr Baudis <pasky@suse.cz>.
3252
3253         * sysdeps/unix/sysv/linux/nscd_setup_thread.c (setup_thread):
3254         Return zero in case the thread library is not NPTL.
3255
3256         [BZ #5375]
3257         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix locking when
3258         initializing interface list.
3259
3260         [BZ #5378]
3261         * nis/nss_compat/compat-initgroups.c (getgrent_next_nss): Don't
3262         use result of nss_getgrgid_r if nothing was found.  For other
3263         error return with a failure.
3264         Partially based on a patch by Petr Baudis <pasky@suse.cz>.
3265
3266         * locale/programs/ld-collate.c (collate_read): Fix loop to match
3267         macro name.
3268
3269 2007-11-19  Ulrich Drepper  <drepper@redhat.com>
3270
3271         * sysdeps/posix/getaddrinfo.c (defaults_scopes, scopes): New variables.
3272         (get_scope): For IPv4 scope, use scopes table.
3273         (fini): Free scopes table if necessary.
3274         (free_scopelist): New function.
3275         (scopecmp): New function.
3276         (gaiconf_init): Also handle scopev4 entries.
3277         * posix/tst-rfc3484.c (do_test): Initialize scopes.
3278         * posix/tst-rfc3484-2.c (do_test): Likewise.
3279         * posix/gai.conf: Document scopev4 defaults.
3280         * posix/Makefile (tests): Add tst-rfc3484-3.
3281         * posix/tst-rfc3484-3.c: New file.
3282
3283         * sysdeps/posix/getaddrinfo.c (default_labels): Describe entry for
3284         Teredo tunnels.
3285         * posix/gai.conf: Update for current default tables.
3286
3287 2007-11-19  Ulrich Drepper  <drepper@redhat.com>
3288
3289         * po/tr.po: Update from translation team.
3290
3291 2007-11-18  Roland McGrath  <roland@frob.com>
3292
3293         * manual/arith.texi (Remainder Functions): Spelling fix.
3294         From Shaun Silk <genix@mysoul.com.au>.
3295
3296         * sysdeps/mach/hurd/bits/fcntl.h (O_CLOEXEC): Fix value.
3297
3298 2007-11-17  Ulrich Drepper  <drepper@redhat.com>
3299
3300         * po/zh_CN.po: Update from translation team.
3301
3302         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
3303         Add sys/signalfd.h and sys/eventfd.h.
3304
3305 2007-11-15  Bruno Haible  <bruno@clisp.org>
3306
3307         [BZ #5346]
3308         * intl/dcigettext.c (struct known_translation_t): Turn msgid into a
3309         union.
3310         (transcmp): Use the appropriate part of s1->msgid and s2->msgid.
3311         (DCIGETTEXT): Change the allocation of the 'search' variable so that
3312         it needs only fixed stack space. Delay the initialization of
3313         msgid_len until it is needed.
3314
3315 2007-11-15  Andreas Jaeger  <aj@suse.de>
3316
3317         * sysdeps/ieee754/dbl-64/sincos.tbl: Fix size of union.
3318         Reported by Christoph Quirin Lauter <christoph.lauter@ens-lyon.fr>.
3319
3320 2007-11-15  Ulrich Drepper  <drepper@redhat.com>
3321
3322         * po/ko.po: Update from translation team.
3323
3324 2007-11-14  Ulrich Drepper  <drepper@redhat.com>
3325
3326         * sysdeps/unix/sysv/linux/check_native.c (__check_native): Simplify
3327         significantly.  The device type is also part of the ifinfomsg data.
3328
3329         * po/sv.po: Update from translation team.
3330         * po/nl.po: Likewise.
3331
3332         * nscd/cache.c (prune_cache): If cache is empty, instruct caller
3333         to wake up in 24 hours.
3334
3335         * nscd/gai.c (__ioctl): Define.  Include check_native.c.
3336
3337 2007-11-13  Ulrich Drepper  <drepper@redhat.com>
3338
3339         * po/cs.po: Update from translation team.
3340         * po/pl.po: Likewise.
3341
3342         * include/ifaddrs.h: Remove in6ai_temporary.
3343         (struct in6addrinfo): Add index element.
3344         Declare __check_native.
3345         * inet/Makefile (aux): Add check_native.
3346         * sysdeps/unix/sysv/linux/check_native.c: New file.
3347         * sysdeps/unix/sysv/linux/check_pf.c: No need to recognize
3348         IFA_F_TEMPORARY.  Pass back ifa_index.
3349         * sysdeps/posix/getaddrinfo.c: Remove netlink compatibility code.
3350         (rfc3484_sort): Add new parameter.  Implement rule 7 correctly:
3351         call __check_native if necessary.
3352         (getaddrinfo): Fill in index field.  Use qsort_r instead of qsort
3353         to sort addresses.  Pass information about the results.
3354         * posix/tst-rfc3484.c: Adjust for addition of index field and change
3355         of rfc3484_sort interface.
3356         * posix/tst-rfc3484-2.c: Likewise.
3357
3358         * stdlib/stdlib.h: Define __compar_d_fn_t.  Declare qsort_r.
3359         * include/stdlib.h: Add hidden_proto for qsort_t and adjust protoype
3360         for _quicksort.
3361         * stdlib/msort.c (qsort): Now a wrapper around qsort_r.
3362         (qsort_r): Renamed from qsort.  Take additional parameter and pass it
3363         on as third parameter to compare function and _quicksort.
3364         * stdlib/qsort.c (_quicksort): Take additional parameter and pass on
3365         to the compare function.
3366         * stdlib/Versions [libc] (GLIBC_2.8): Add qsort_r.
3367         * Versions.def: Add GLIBC_2.8 for libc.
3368
3369         * posix/tst-rfc3484.c: Adjust for addition of prefixlen field.
3370         * posix/tst-rfc3484-2.c: Likewise.
3371
3372         * include/kernel-features.h: Moved to...
3373         * sysdeps/mach/hurd/kernel-features.h: ...here.
3374
3375 2007-09-13  H.J. Lu  <hongjiu.lu@intel.com>
3376
3377         * sysdeps/i386/i586/memcpy_chk.S: New file.
3378         * sysdeps/i386/i586/mempcpy_chk.S: Likewise.
3379         * sysdeps/i386/i586/memset_chk.S: Likewise.
3380
3381 2007-11-12  Ulrich Drepper  <drepper@redhat.com>
3382
3383         * include/ifaddrs.c (struct in6addrinfo): Add prefixlen field.
3384         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Always return
3385         list of interfaces.  Also store prefix length.
3386         * sysdeps/posix/getaddrinfo.c (sort_result): Add prefixlen element.
3387         (rfc3484_sort): In rule 9, for IPv4 addresses count only matching
3388         prefix if source and destination address are in the same subnet.
3389         (getaddrinfo): Always call __check_pf.  Fill in prefixlen field.
3390         Always look for matching record in in6ai list.
3391         Correct source_addr_len value for IPv6->IPv4 converted records.
3392
3393 2007-11-11  Roland McGrath  <roland@frob.com>
3394
3395         * include/kernel-features.h: New file.
3396
3397 2007-11-10  Ulrich Drepper  <drepper@redhat.com>
3398
3399         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Avoid unnecessary
3400         complications for 64-bit platforms.
3401
3402         * sysdeps/unix/sysv/linux/open64.c: Move __open64_2 implementation to..
3403         * sysdeps/unix/sysv/linux/open64_2.c: ...here.  New file.
3404         * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines): Add
3405         open64_2.
3406         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Add open and creat
3407         entries.
3408         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
3409         * sysdeps/wordsize-64/alphasort.c: New file.
3410         * sysdeps/wordsize-64/alphasort64.c: New file.
3411         * sysdeps/wordsize-64/fseeko.c: New file.
3412         * sysdeps/wordsize-64/fseeko64.c: New file.
3413         * sysdeps/wordsize-64/ftello.c: New file.
3414         * sysdeps/wordsize-64/ftello64.c: New file.
3415         * sysdeps/wordsize-64/ftw.c: New file.
3416         * sysdeps/wordsize-64/ftw64.c: New file.
3417         * sysdeps/wordsize-64/iofgetpos.c: New file.
3418         * sysdeps/wordsize-64/iofgetpos64.c: New file.
3419         * sysdeps/wordsize-64/iofopen.c: New file.
3420         * sysdeps/wordsize-64/iofopen64.c: New file.
3421         * sysdeps/wordsize-64/iofsetpos.c: New file.
3422         * sysdeps/wordsize-64/iofsetpos64.c: New file.
3423         * sysdeps/wordsize-64/lockf.c: New file.
3424         * sysdeps/wordsize-64/lockf64.c: New file.
3425         * sysdeps/wordsize-64/mkostemp.c: New file.
3426         * sysdeps/wordsize-64/mkostemp64.c: New file.
3427         * sysdeps/wordsize-64/mkstemp.c: New file.
3428         * sysdeps/wordsize-64/mkstemp64.c: New file.
3429         * sysdeps/wordsize-64/scandir.c: New file.
3430         * sysdeps/wordsize-64/scandir64.c: New file.
3431         * sysdeps/wordsize-64/tmpfile.c: New file.
3432         * sysdeps/wordsize-64/tmpfile64.c: New file.
3433         * sysdeps/wordsize-64/versionsort.c: New file.
3434         * sysdeps/wordsize-64/versionsort64.c: New file.
3435         * sysdeps/unix/sysv/linux/wordsize-64/aio_read.c: New file.
3436         * sysdeps/unix/sysv/linux/wordsize-64/aio_read64.c: New file.
3437         * sysdeps/unix/sysv/linux/wordsize-64/aio_write.c: New file.
3438         * sysdeps/unix/sysv/linux/wordsize-64/aio_write64.c: New file.
3439         * sysdeps/unix/sysv/linux/wordsize-64/creat64.c: New file.
3440         * sysdeps/unix/sysv/linux/wordsize-64/getdirentries.c: New file.
3441         * sysdeps/unix/sysv/linux/wordsize-64/getdirentries64.c: New file.
3442         * sysdeps/unix/sysv/linux/wordsize-64/lio_listio.c: New file.
3443         * sysdeps/unix/sysv/linux/wordsize-64/lio_listio64.c: New file.
3444         * sysdeps/unix/sysv/linux/wordsize-64/open64.c: New file.
3445         * sysdeps/unix/sysv/linux/wordsize-64/openat.c: New file.
3446         * sysdeps/unix/sysv/linux/wordsize-64/openat64.c: New file.
3447
3448         * crypt/sha256-crypt.c: Fix a comment.
3449         * crypt/sha512-crypt.c: Likewise.
3450
3451 2007-11-07  H.J. Lu  <hongjiu.lu@intel.com>
3452
3453         * sysdeps/x86_64/memset.S: Add sfence after movnti.
3454
3455 2007-11-07  Ulrich Drepper  <drepper@redhat.com>
3456
3457         [BZ #5277]
3458         * iconv/loop.c (STANDARD_TO_LOOP_ERR_HANDLER): If conversion failed
3459         because output buffer is too small break, don't loop.
3460         * iconvdata/Makefile (tests): Add bug-iconv6.
3461         * iconvdata/bug-iconv6.c: New file.
3462
3463 2007-11-06  Ulrich Drepper  <drepper@redhat.com>
3464
3465         * stdio-common/vfprintf.c (vfprintf): Compute necessary buffer size
3466         with size_t type.
3467         * stdio-common/printf_fp.c (__print_fp): Change chars_needed type to
3468         size_t.  Add casts where needed.
3469
3470         * nscd/selinux.c (nscd_request_avc_has_perm): When compiled with
3471         old headers, don't call avc_has_perm if we don't have the
3472         permission information.
3473
3474 2007-11-05  Daniel Jacobowitz  <dan@codesourcery.com>
3475
3476         * elf/rtld.c (dl_main): Use the page size to find the map start.
3477
3478 2007-11-05  Ulrich Drepper  <drepper@redhat.com>
3479
3480         * time/tzfile.c (__tzfile_read): Fix check for version 0 data files.
3481         Patch by Szymon Siwek <sls@poczta.wp.pl>.
3482
3483         * nscd/aicache.c (addhstaiX): Check herrno after IPv4 lookup only
3484         when the lookup call failed.
3485
3486         * nscd/nscd.h (struct database_dyn): Rename prunelock to prune_lock.
3487         Add prune_cond and wakeup_time.
3488         (CACHE_PRUNE_INTERNAL): Define.
3489         Update declarations of prune_cache and setup_thread.
3490         * nscd/connections.c (dbs): Update initializers.
3491         (CACHE_PRUNE_INTERNAL): Moved to nscd.h.
3492         (nscd_init): Default number of threads is now 4.
3493         (invalidate_cache): Take lock before calling prune_cache.
3494         (handle_request): If SELinux forbids the request, say so.
3495         (readylist_cond): Use static initializer.
3496         (nscd_run_prune): New function.  Used only by pruning threads.
3497         (nscd_run_worder): Renamed from nscd_run.  Remove support for pruning
3498         here.
3499         (fd_ready): Update nscd_run reference.
3500         (start_threads): No need to initialize readylist_cond.
3501         Start pruning threads separately.
3502         * nscd/nscd_setup_thread.c: Change return value type to int and always
3503         return 0.
3504         * sysdeps/unix/sysv/linux/nscd_setup_thread.c: Change return value type
3505         to int and return nonzero value if we can use the TID address hack.
3506         * nscd/cache.c (cache_add): If next wakeup time of cleanup thread for
3507         the database is later than the new entry's timeout, update the
3508         wakeup time and wake the cleanup thread.
3509         (prune_cache): Return seconds the next entry in the database is still
3510         valid.  Remove locking for pruning here.
3511         * nscd/nscd.conf: Document default number of threads.
3512
3513 2007-10-31  Ulrich Drepper  <drepper@redhat.com>
3514
3515         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Make sure
3516         stack is properly aligned for the target function.
3517         Correct unwind info.
3518
3519         * elf/rtld.c (dl_main): Initialize stack and pointer guard early
3520         when using auditing libraries.
3521
3522 2007-10-29  Ulrich Drepper  <drepper@redhat.com>
3523
3524         * resolv/Versions [libresolv] (GLIBC_PRIVATE): Add
3525         _nss_dns_getnetbyaddr2_r.
3526         * resolv/nss_dns/dns-host.c: Define _nss_dns_getnetbyaddr2_r.  Pass
3527         extra parameter to getanswer_r.
3528         (_nss_dns_getnetbyaddr_r): Now a wrapper around
3529         _nss_dns_getnetbyaddr2_r.
3530
3531         * nscd/Makefile (nscd-modules): Replace gethstbynm2_r with
3532         gethstbynm3_r.
3533         * nscd/gethstbynm2_r.c: Remove.
3534         * nscd/gethstbynm3_r.c: New file.
3535         * nscd/aicache.c (addhstaiX): Use __gethostbyaddr2_r instead of
3536         __gethostbyaddr_r.
3537         * nscd/gethstbyad_r.c: Generate __gethostbyaddr2_r function.  Define
3538         __gethostbyaddr_r compatibility wrapper.
3539         * nscd/hstcache.c (cache_addhst): Add ttl parameter.  Use it when
3540         determining timeout of entry.
3541         (lookup): Take new parameter and pass it to __gethostbyname3_r and
3542         __gethostbyaddr2_r.
3543         (addhstbyX): Pass reference to variable for TTL to lookup and
3544         cache_addhst.
3545         * nss/Versions [glibc] (GLIBC_PRIVATE): Export __nss_passwd_lookup2,
3546         __nss_group_lookup2, __nss_hosts_lookup2, __nss_services_lookup2,
3547         and __nss_next2.  Remove __nss_services_lookup.
3548         * nss/XXX-lookup.c: Name function now *_lookup2.  Add new parameter.
3549         Add compat wrapper.
3550         * nss/getXXbyYY_r.c: Changes to call new *_lookup2 functions and
3551         __nss_next2.
3552         * nss/getXXent_r.c: Likewise.
3553         * nss/getnssent_r.c: Likewise.
3554         * nss/nsswitch.c (__nss_lookup): Add new parameter.  If first function
3555         does not exist in module, try the optional second name.
3556         (__nss_next2): New function.
3557         (__nss_next): Now wrapper around __nss_next2.
3558         * nss/nsswitch.h: Adjust __nss_lookup prototype.
3559         Declare __nss_next2.
3560         Adjust definition of db_lookup_function type.
3561         * nss/service-lookup.c: Define NO_COMPAT.
3562         * include/netdb.h: Declare __gethostbyaddr2_r and __gethostbyname3_r.
3563         * inet/ether_hton.c: Use __nss_next2 instead of __nss_next.
3564         * inet/ether_ntoh.c: Likewise.
3565         * sunrpc/netname.c: Likewise.
3566         * sunrpc/publickey.c: Likewise.
3567         * inet/getnetgrent.c: Likewise.  Adjust calls to __nss_lookup.
3568         * inet/gethstbyad_r.c (DB_LOOKUP_FCT): Change to __nss_hosts_lookup2.
3569         * inet/gethstbynm2_r.c (DB_LOOKUP_FCT): Likewise.
3570         * inet/gethstbynm_r.c (DB_LOOKUP_FCT): Likewise.
3571         * inet/gethstent_r.c (DB_LOOKUP_FCT): Likewise.
3572
3573         * nscd/aicache.c (addhstaiX): Fix default TTL handling.
3574
3575         * inet/getnetgrent_r.c (setup): Encrypt static pointer.
3576
3577 2007-10-28  Ulrich Drepper  <drepper@redhat.com>
3578
3579         [BZ #5204]
3580         * crypt/sha256c-test.c: Define TIMEOUT to 6 for ancient hardware.
3581         * crypt/sha512c-test.c: Likewise.
3582
3583         [BZ #5225]
3584         * stdio-common/vfscanf.c (_IO_vfwscanf): Don't misuse wp pointer
3585         to keep track of end of %[ format string element.
3586         * stdio-common/Makefile (tests): Add bug20.
3587         * stdio-common/bug20.c: New file.
3588
3589         [BZ #5222]
3590         * elf/dl-load.c (_dl_rtld_di_serinfo): Correct handling of short
3591         path elements in counting mode.
3592
3593 2007-10-27  Andreas Jaeger  <aj@suse.de>
3594
3595         [BZ #5040]
3596         * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLRDHUP): Add value.
3597
3598         [BZ #3112]
3599         * sysdeps/ia64/backtrace.c (init): Free shared library if incorrect.
3600         (__cleanup): Free shared library when exiting.
3601         * sysdeps/i386/backtrace.c (init): Free shared library if incorrect.
3602         (__cleanup): Free shared library when exiting.
3603
3604 2006-04-14  H.J. Lu  <hongjiu.lu@intel.com>
3605
3606         [BZ #2549]
3607         * math/libm-test.inc (check_float_internal): Support
3608         denormalized return.
3609
3610 2007-10-23  Andreas Jaeger  <aj@suse.de>
3611
3612         [BZ #5208]
3613         * sysdeps/unix/sysv/linux/readahead.c (__readahead): Use
3614         __LONG_LONG_PAIR to handle little endian byte order.
3615         Suggested by abhishekrai@google.com
3616
3617 2007-10-27  Ulrich Drepper  <drepper@redhat.com>
3618
3619         * malloc/arena.c [!NO_THREADS]: Use ATFORK_MEM if defined.
3620
3621 2007-10-26  Ulrich Drepper  <drepper@redhat.com>
3622
3623         * nscd/cache.c (prune_cache): Move test for modified file outside
3624         of locking.
3625
3626 2007-10-21  Andreas Jaeger  <aj@suse.de>
3627
3628         * manual/texinfo.tex: Update to latest version.
3629
3630         * manual/sysinfo.texi (System Parameters): Fix Formatting.
3631
3632         * manual/arith.texi (Status bit operations): Fix formatting.
3633
3634         * manual/errno.texi (Error Messages): Fix formatting.
3635
3636         * manual/sysinfo.texi (System Parameters): Fix formatting.
3637
3638         * manual/libc.texinfo: Update VERSION and UPDATED.
3639
3640 2007-10-19  Roland McGrath  <roland@redhat.com>
3641
3642         * elf/Makefile ($(objpfx)ld.so): Use $(AWK).
3643
3644 2007-10-06  David S. Miller  <davem@davemloft.net>
3645
3646         * configure.in: Add sparcv9v2 and sparc64v2.
3647         * scripts/config.sub: Likewise.
3648         * configure: Regenerate.
3649         * elf/elf.h (HWCAP_SPARC_N2): New.
3650         * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Bump to 8.
3651         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add 'v9v2'.
3652         (HWCAP_IMPORTANT): Add HWCAP_SPARC_N2.
3653         * sysdeps/sparc/sparc32/sparcv9/sparcv9v2/memcpy.S: New file.
3654         * sysdeps/sparc/sparc32/sparcv9/sparcv9v2/memset.S: New file.
3655         * sysdeps/sparc/sparc64/sparcv9v2/memcpy.S: New file.
3656         * sysdeps/sparc/sparc64/sparcv9v2/memset.S: New file.
3657
3658 2007-10-18  Ulrich Drepper  <drepper@redhat.com>
3659
3660         * sunrpc/clnt_udp.c (clntudp_call): Don't block in recvfrom call
3661         even if the poll result indicates there is data to read.
3662         Patch by Jeff Moyer <jmoyer@redhat.com>.
3663
3664 2007-10-18  Roland McGrath  <roland@redhat.com>
3665
3666         * elf/elf.h (NT_PPC_VMX): New macro.
3667
3668 2007-10-17  Ulrich Drepper  <drepper@redhat.com>
3669
3670         * version.h (VERSION): Set to 2.7.90.
3671
3672 2007-10-17  Jakub Jelinek  <jakub@redhat.com>
3673
3674         * sysdeps/x86_64/memset.S (bzero): Renamed to __bzero.  Add
3675         weak_alias.
3676
3677 2007-10-17  Roland McGrath  <roland@frob.com>
3678
3679         * sysdeps/mach/hurd/bits/fcntl.h [__USE_GNU__] (F_DUPFD_CLOEXEC): New.
3680         * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Implement it.
3681
3682 2007-10-17  Ulrich Drepper  <drepper@redhat.com>
3683
3684         * version.h (VERSION): Bump to 2.7.
3685         * include/features.h (__GLIBC_MINOR__): Bump to 7.
3686
3687         [BZ #5186]
3688         * time/tzset.c (__tz_convert): Don't force testing for a change of
3689         TZ if not called from localtime.  But then also see whether the
3690         file changed, in case __use_tzfile is set.
3691
3692         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define F_DUPFD_CLOEXEC.
3693         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
3694         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
3695         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
3696         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
3697         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
3698         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h:  Likewise.
3699         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
3700
3701 2007-10-17  Jakub Jelinek  <jakub@redhat.com>
3702
3703         * sysdeps/posix/getaddrinfo.c (getaddrinfo): When sorting addresses
3704         and admin selects to be able to replace the gai.conf file, lock
3705         data structures around the qsort call.
3706
3707 2007-10-17  Ulrich Drepper  <drepper@redhat.com>
3708
3709         * sysdeps/x86_64/cacheinfo.c: Comment out code added in support of
3710         new memset.
3711         * sysdeps/x86_64/memset.S: Revert to old version for now.  The cost is
3712         too high for the improvements.  Implement bzero unconditionally for
3713         use in libc.
3714
3715 2007-10-17  Ulrich Drepper  <drepper@redhat.com>
3716             Jakub Jelinek  <jakub@redhat.com>
3717
3718         * time/tzfile.c (__tzfile_read): Read POSIX TZ string if available
3719         even when time_t is 32-bit.
3720         (__tzfile_compute): Override POSIX TZ string STD/DST zone names if
3721         timezone data read by __tzfile_default.  Ensure __tzname[0] is
3722         always set after the search.
3723
3724 2007-10-16  Ulrich Drepper  <drepper@redhat.com>
3725
3726         * time/tzfile.c (__tzfile_read): Help the compiler recognize
3727         unreachable code on 32-bit machines.
3728
3729 2007-10-16  Jakub Jelinek  <jakub@redhat.com>
3730
3731         [BZ #5184]
3732         * time/strftime_l.c: Include stdbool.h.
3733         (my_strftime): New wrapper, old function renamed to...
3734         (__strftime_internal): ... new function.  Add tzset_called
3735         argument, pass it down to recursive calls, don't call tzset ()
3736         if already true, set to true after call to tzset ().
3737
3738 2007-10-16  Ulrich Drepper  <drepper@redhat.com>
3739
3740         * time/tzfile.c (__tzfile_read): Take extra memory requested by caller
3741         into account when copying TZ string.
3742
3743 2007-10-16  Jakub Jelinek  <jakub@redhat.com>
3744
3745         * time/tzfile.c (__tzfile_compute): For use_last case set i to
3746         num_transition rather than num_transitions - 1.
3747
3748 2007-10-16  Jakub Jelinek  <jakub@redhat.com>
3749
3750         * sysdeps/x86_64/memset.S (memset): Fix sse2_nt_move
3751         PIC indirect jump.
3752
3753         * sysdeps/x86_64/memset.S: Jump from bzero to memset using
3754         a local label rather than HIDDEN_JUMPTARGET.
3755
3756 2007-10-15  Ulrich Drepper  <drepper@redhat.com>
3757
3758         * sysdeps/x86_64/cacheinfo.c (__x86_64_shared_cache_size): Define.
3759         (init_cacheinfo): Initialize it.
3760         * sysdeps/x86_64/memset.S: Use __x86_64_shared_cache_size.
3761         Always define bzero.
3762         Remove non-glibc code.
3763         * sysdeps/x86_64/bzero.S: Make an empty file.
3764
3765 2007-10-15  H.J. Lu  <hongjiu.lu@intel.com>
3766
3767         * sysdeps/x86_64/cacheinfo.c
3768         (__x86_64_preferred_memory_instruction): New.
3769         (init_cacheinfo): Initialize __x86_64_preferred_memory_instruction.
3770
3771         * sysdeps/x86_64/memset.S: Rewrite.
3772
3773 2007-10-15  Roland McGrath  <roland@redhat.com>
3774
3775         * po/libc.pot: Regenerated.
3776
3777 2007-10-15  Ulrich Drepper  <drepper@redhat.com>
3778
3779         * nss/getXXbyYY_r.c (REENTRANT_NAME): Mangle startp and start_fct
3780         pointers.
3781
3782         [BZ #3425]
3783         * resolv/nss_dns/dns-host.c (getanswer_r): Fail with
3784         NSS_STATUS_NOTFOUND if the server replied with only a CNAME and no
3785         address record to T_A/T_AAAA requests.
3786
3787 2007-10-14  Ulrich Drepper  <drepper@redhat.com>
3788
3789         * posix/glob.c: Reimplement link_exists_p to use fstatat64.
3790
3791         * posix/glob.c: Add some branch prediction throughout.
3792
3793         * nscd/nscd_getgr_r.c (nscd_getgr_r): Store result of successful
3794         read from nscd.
3795
3796         * sysdeps/posix/getaddrinfo.c (struct sort_result): Add
3797         service_order.
3798         (rfc3484_sort): Make sure that even if qsort doesn't support
3799         stable sorting out sorting here is stable by comparing service_order.
3800         (getaddrinfo): Initialize service_order.
3801         * posix/tst-rfc3484.c (do_test): Adjust for addition of
3802         service_order field to sorting structure.
3803         * posix/tst-rfc3484-2.c (do_test): Likewise.
3804
3805         * include/time.h: Declare __tzset_parse_tz and __tzset_compute.
3806         * time/tzset.c (tzset_internal): Break TZ string parsing out into
3807         __tzset_parse_tz and updating of daylight, timezone, tzname into
3808         update_vars.
3809         (__tz_compute): Renamed from tz_compute.  Take additional parameters.
3810         (__tz_convert): Updating of tm_isdst, tm_zone, and tm_gmtoff now
3811         happens in __tz_compute.
3812         * time/tzfile.c (__tzfile_read): Also read TZ string.
3813         (find_transition): Fold into __tzfile_compute.
3814         (__tzfile_compute): For times beyond the last transition try to
3815         use the TZ string.
3816         * timezone/tst-timezone.c: Information in daylight and tzname does
3817         change for Asia/Tokyo timezone with more concrete information.
3818         Remove the test.
3819
3820         * include/stdio.h: Add libc_hidden_proto for ftello.
3821         * libio/ftello.c: Add libc_hidden_def.
3822
3823         [BZ #1140]
3824         * time/tzfile.c (__tzfile_compute): Compute tzname[] values based
3825         on the specified time and not the last entries in the file.  Move
3826         code to determine tzname[] to...
3827         (find_transition): ...here.  Add ugly guess for times before the
3828         first transition.
3829
3830 2007-10-13  Ulrich Drepper  <drepper@redhat.com>
3831
3832         [BZ #3195]
3833         * nscd/nscd_getai.c (__nscd_getai): Set errno to 0 in case we found
3834         no entry.
3835         * nscd/nscd_getgr.c (nscd_getgr_r): Likewise.
3836         * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
3837         * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
3838         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
3839
3840         * nscd/nscd_getgr_r.c (nscd_getgr_r): Optimize a bit: use simpler
3841         read mechanism when there are no group members and avoid no-op
3842         read syscall in this case.
3843
3844         [BZ #3242]
3845         * nscd/nscd_helper.c (wait_on_socket): Take timeout as parameter.
3846         (__readall): If reading failed due to EAGAIN error wait a bit
3847         and possibly try again.
3848         (__readvall): Likewise.
3849
3850 2007-10-13  Bruno Haible  <bruno@clisp.org>
3851
3852         * intl/dcigettext.c (_nl_find_msg): Unlock the conversions_lock
3853         when we cannot recode the message.
3854
3855 2007-10-13  Ulrich Drepper  <drepper@redhat.com>
3856
3857         [BZ #4359]
3858         * libio/__freading.c (__freading): Don't return true for
3859         write-only streams.  For read/write streams, check whether we
3860         performed a read operation already.
3861         * libio/Makefile (tests): Add tst-ext2.
3862         * libio/tst-ext2.c: New file.
3863
3864 2007-10-12  Ulrich Drepper  <drepper@redhat.com>
3865
3866         * locale/programs/repertoire.c (repertoire_read): Always free
3867         memory for repertoire file name [Coverity CID 270].
3868
3869         * elf/cache.c (save_aux_cache): Free memory allocated for
3870         temporary file name [Coverity CID 267].
3871
3872 2007-10-12  Jakub Jelinek  <jakub@redhat.com>
3873
3874         * misc/Makefile (headers): Add bits/error.h.
3875
3876 2007-10-12  Ulrich Drepper  <drepper@redhat.com>
3877
3878         * posix/fnmatch_loop.c: Take rule index returned as part of
3879         findidx return value into account when accessing weights.
3880         * posix/regcomp.c: Likewise.
3881         * posix/regexec.c: Likewise.
3882
3883         * locale/programs/ld-collate.c (collate_read): Optimize a bit.
3884         (skip_to): Fix problems with parameter of elifdef/elifndef.
3885
3886 2007-10-11  Ulrich Drepper  <drepper@redhat.com>
3887
3888         * iconv/gconv_simple.c: Add some branch prediction.
3889
3890 2007-10-12  Jakub Jelinek  <jakub@redhat.com>
3891
3892         * locale/programs/ld-collate.c (collate_read): If ignore_content
3893         and nowtok is tok_define, eat any tok_eol tokens.
3894
3895 2007-10-11  Jakub Jelinek  <jakub@redhat.com>
3896
3897         * sysdeps/gnu/netinet/tcp.h: Include sys/socket.h if __USE_MISC.
3898         (struct tcp_md5sig): Change tcpm_addr type to struct sockaddr_storage.
3899
3900         * inet/netinet/in.h: Don't include bits/socket.h.
3901         * sysdeps/unix/sysv/linux/bits/socket.h: Only check _SYS_SOCKET_H
3902         macro.
3903         * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Likewise.
3904
3905 2007-10-10  Ulrich Drepper  <drepper@redhat.com>
3906
3907         * locale/programs/locfile-token.h: Remove tok_elif, add tok_elifdef
3908         and tok_elifndef.
3909         * locale/programs/locfile-kw.gperf: Likewise.
3910         * locale/programs/ld-collate.c: Implement primitive preprocessor.
3911
3912 2007-10-10  Jakub Jelinek  <jakub@redhat.com>
3913
3914         * stdio-common/printf-parse.h: Include string.h and wchar.h.
3915         (__find_specwc): Change into __extern_always_inline function.
3916         (__find_specmb): Likewise.  Remove ps argument.  Use __strchrnul.
3917         (__parse_one_specmb): Remove ps argument.
3918         * stdio-common/vfprintf.c (vfprintf): Remove mbstate variable.
3919         Adjust __find_specmb and __parse_one_specmb callers.
3920         * stdio-common/printf-prs.c (parse_printf_format): Likewise.
3921         * stdio-common/printf-parsemb.c (__find_specwc, __find_specmb):
3922         Removed.
3923         (__parse_one_specmb): Remove ps argument, adjust __find_specmb
3924         caller.
3925
3926 2007-10-09  Ulrich Drepper  <drepper@redhat.com>
3927
3928         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Work around problem
3929         with some Pentium Ds.
3930
3931 2007-10-08  Ulrich Drepper  <drepper@redhat.com>
3932
3933         * sysdeps/unix/sysv/linux/eventfd_read.c (eventfd_read): Use
3934         __read not read.
3935         * sysdeps/unix/sysv/linux/eventfd_write.c (eventfd_write): Use
3936         __write not write.
3937
3938 2007-10-07  Ulrich Drepper  <drepper@redhat.com>
3939
3940         [BZ #181]
3941         * locale/C-time.c: Set week_1stday data to 19971201.
3942         * locale/programs/ld-time.c (time_finish): Default for
3943         first_workday is Monday.
3944
3945         [BZ #2633]
3946         * wcsmbs/wchar.h: Move many C99 functions into std namespace.
3947
3948         [BZ #5103]
3949         * posix/glob.c (glob): Recognize patterns starting \/.
3950         * posix/tst-gnuglob.c (find_file): Handle absolute path names.
3951         (main): Add test for pattern starting \/.
3952
3953         * misc/error.h: Use __const instead of const.
3954         * misc/bits/error.h: Likewise.
3955
3956 2007-10-07  Andreas Jaeger  <aj@suse.de>
3957
3958         * include/bits/error.h: New file.
3959
3960         * misc/bits/error.h (error_at_line): Fix prototype.
3961
3962 2007-10-06  Ulrich Drepper  <drepper@redhat.com>
3963
3964         [BZ #3924]
3965         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix a few
3966         more little bugs in creating the stack frame when pltexit has to
3967         be called.
3968
3969         * nscd/nscd_helper.c (__nscd_cache_search): Prevent endless loops.
3970         * nscd/connections.c (verify_persistent_db): Recognize circular lists.
3971
3972         [BZ #4407]
3973         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Fix *signgamp for -0.0.
3974         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
3975         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
3976         * math/libm-test.inc: Add test for this case.
3977
3978         [BZ #5010]
3979         * sunrpc/svc.c (struct svc_callout): Add sc_mapped element.
3980         (svc_register): Initialize sc_mapped.  Set to TRUE if call to
3981         map service succeeded.
3982         (svc_is_mapped): New function.
3983         (svc_unregister): Use it before trying to unmap service.
3984
3985 2007-10-05  Ulrich Drepper  <drepper@redhat.com>
3986
3987         * timezone/zic.c: Update from tzcode2007h.
3988
3989         [BZ #5063]
3990         * timezone/africa: Update from tzdata2007h.
3991         * timezone/antarctica: Likewise.
3992         * timezone/asia: Likewise.
3993         * timezone/australasia: Likewise.
3994         * timezone/europe: Likewise.
3995         * timezone/leapseconds: Likewise.
3996         * timezone/northamerica: Likewise.
3997         * timezone/southamerica: Likewise.
3998         * timzeone/zone.tab: Likewise.
3999
4000         [BZ #5104]
4001         * elf/do-lookup.h (do_lookup_x): Don't ignore STT_COMMON symbols.
4002
4003         [BZ #5113]
4004         * string/bits/string2.h (__strdup): Cast parameters to calloc to
4005         avoid warning with -Wconversion.
4006         (__strndup): Likewise.
4007         Half the patch by Christian Iseli <christian.iseli@licr.org>.
4008
4009         [BZ #5112]
4010         * nscd/connections.c (restart): Don't resync if database is
4011         disabled.  Patch mostly by Brian De Wolf <bldewolf@csupomona.edu>.
4012
4013         * sysdeps/gnu/netinet/tcp.h: Define TCP_MD5SIG, TCP_MD5SIG_MAXKEYLEN,
4014         struct tcp_md5sig.  Extend struct tcp_info according to recent kernels.
4015
4016         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add eventfd,
4017         evetnfd_read, eventfd_write.
4018         * sysdeps/unix/sysv/linux/eventfd.c: New file.
4019         * sysdeps/unix/sysv/linux/eventfd_read.c: New file.
4020         * sysdeps/unix/sysv/linux/eventfd_write.c: New file.
4021         * sysdeps/unix/sysv/linux/sys/eventfd.h: New file.
4022         * sysdeps/unix/sysv/linux/Versions: Export eventfd, eventfd_read,
4023         eventfd_write for GLIBC_2.7.
4024
4025         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add signalfd.
4026         * sysdeps/unix/sysv/linux/signalfd.c: New file.
4027         * sysdeps/unix/sysv/linux/sys/signalfd.h: New file.
4028         * sysdeps/unix/sysv/linux/Versions: Export signalfd for GLIBC_2.7.
4029
4030 2007-10-04  Jakub Jelinek  <jakub@redhat.com>
4031
4032         * stdlib/msort.c: Include stdint.h.
4033         (struct msort_param): New type.
4034         (msort_with_tmp): Use struct msort_param pointer for unchanging
4035         parameters.  Add optimized handling for several common sizes
4036         and indirect sorting mode.
4037         (qsort): Adjust msort_with_tmp callers.  For big S use indirect
4038         sorting.
4039         Suggested by Belazougui Djamel .
4040
4041         * stdlib/Makefile (tests): Add tst-qsort2.
4042         * stdlib/tst-qsort2.c: New test.
4043
4044 2007-10-04  Ulrich Drepper  <drepper@redhat.com>
4045
4046         * login/login_tty.c (login_tty): The Linux kernel can return EBUSY
4047         for dup2 in case another thread races with the current one.  Retry
4048         in this case.
4049
4050         * misc/error.h: Remove support for use outside of libc.  We have to
4051         include <features.h> now.  Include <bits/error.h> if possible.
4052         * misc/bits/error.h: New file.
4053
4054 2007-10-03  Jakub Jelinek  <jakub@redhat.com>
4055
4056         * string/bits/string3.h (memcpy, memmove, mempcpy, memset, bcopy,
4057         bzero, strcpy, stpcpy, strncpy, strcat, strncat): Use
4058         __extern_always_inline functions unconditionally, drop macros.
4059
4060         * misc/sys/cdefs.h (__REDIRECT_LDBL, __REDIRECT_NTH_LDBL): New macros.
4061         * wcsmbs/bits/wchar2.h (__swprintf_alias, __vswprintf_alias): Use
4062         __REDIRECT_NTH_LDBL macro rather than __REDIRECT_NTH.
4063
4064         * misc/sys/cdefs.h (__extern_always_inline): For GCC 4.3+
4065         add __artificial__ attribute.
4066
4067 2007-10-02  Ulrich Drepper  <drepper@redhat.com>
4068
4069         * string/strcoll_l.c (STRCOLL): Correct handling of switching from
4070         backward to forward direction.
4071
4072         * string/strcoll_l.c (STRCOLL): Correct test for alloca use.
4073
4074         [BZ #645]
4075         * locale/programs/ld-collate.c (collate_finish): Compare against last
4076         used section which is known to have rules defined.
4077         (collate_read): After order_start, correctly record order of sections
4078         and queue sections up.
4079
4080 2007-10-01  Ulrich Drepper  <drepper@redhat.com>
4081
4082         [BZ #5071]
4083         * malloc/malloc.c (mremap_chunk): Avoid resizing of new block has
4084         the same number of pages.
4085         Patch by Tomash Brechko <tomash.brechko@gmail.com>.
4086
4087         * locale/programs/ld-collate.c (collate_read): After initial copy
4088         statement, continue in state 0.
4089
4090         * include/stdio_ext.h (__fsetlocking): Define as macro.
4091
4092 2007-09-30  Ulrich Drepper  <drepper@redhat.com>
4093
4094         * locale/programs/ld-collate.c (collate_finish): Compare all bytes
4095         of section order.
4096
4097         * po/pt_BR.po: Fix typo.
4098
4099 2007-09-29  Ulrich Drepper  <drepper@redhat.com>
4100
4101         * iconvdata/Makefile (modules): Add ISO8859-9E.
4102         (distribute): Add iso8859-9e.c.
4103         (gen-8bit-gap-modules): Add iso8859-9e.
4104         * iconvdata/iso8859-9e.c: New file.
4105         * iconvdata/gconv-modules: Add entries for ISO-8859-9E.
4106         * iconvdata/TESTS: Likewise.
4107         * iconvdata/tst-tables.sh: Likewise.
4108
4109         * iconvdata/koi8-r.c (HAS_HOLES): Define to 0.
4110
4111         * locale/iso-639.def: Add several new entries.
4112
4113 2007-09-24  Jakub Jelinek  <jakub@redhat.com>
4114
4115         * sysdeps/generic/ldsodefs.h (struct dl_scope_free_list): Store
4116         void * pointers instead of struct link_map **.
4117         (_dl_scope_free): Change argument type to void *.
4118         * include/link.h (struct link_map): Change type of l_reldeps
4119         to struct link_map_reldeps, move l_reldepsact into that
4120         struct too.
4121         * elf/dl-deps.c: Include atomic.h.
4122         (_dl_map_object_deps): Only change l->l_initfini when it is
4123         fully populated, use _dl_scope_free for freeing it.  Optimize
4124         removal of libs from reldeps by using l_reserved flag, when
4125         some removal is needed, allocate a new list instead of
4126         reallocating and free the old with _dl_scope_free.  Adjust
4127         for l_reldeps and l_reldepsact changes.
4128         * elf/dl-lookup.c (add_dependency): Likewise.  Reorganize to allow
4129         searching in l_initfini and l_reldeps without holding dl_load_lock.
4130         * elf/dl-fini.c (_dl_sort_fini): Adjust for l_reldeps and
4131         l_reldepsact changes.
4132         * elf/dl-close.c (_dl_close_worker): Likewise.
4133         * elf/dl-open.c (_dl_scope_free): Change argument type to void *.
4134
4135 2007-09-28  Ulrich Drepper  <drepper@redhat.com>
4136
4137         * iconvdata/Makefile (modules): Add KOI8-RU.
4138         (distribute): Add koi8-ru.c.
4139         (gen-8bit-gap-modules): Add koi8-ru.
4140         * iconvdata/koi8-ru.c: New file.
4141         * iconvdata/gconv-modules: Add entries for KOI8-RU.
4142         * iconvdata/TESTS: Likewise.
4143         * iconvdata/tst-tables.sh: Likewise.
4144
4145         * iconvdata/koi8-r.c (HAS_HOLES): Define to 0.
4146
4147 2007-09-26  Jakub Jelinek  <jakub@redhat.com>
4148
4149         * misc/sys/cdefs.h (__warndecl, __errordecl): For GCC 4.3+ define
4150         with __warning__/__error__ attributes.
4151         (__warnattr): Define.
4152         * stdlib/bits/stdlib.h (__realpath_chk_warn, __ptsname_r_chk_warn,
4153         __mbstowcs_chk_warn, __wcstombs_chk_warn): New aliases with
4154         __warnattr.
4155         (realpath, ptsname_r, mbstowcs, wcstombs): Call __*_chk_warn instead
4156         of __*_chk if compile time detectable overflow is found.
4157         * libio/bits/stdio2.h (__fgets_chk_warn, __fread_chk_warn,
4158         __fgets_unlocked_chk_warn, __fread_unlocked_chk_warn): New aliases
4159         with __warnattr.
4160         (fgets, fread, fgets_unlocked, fread_unlocked): Call __*_chk_warn
4161         instead of __*_chk if compile time detectable overflow is found.
4162         (__gets_alias): Rename to...
4163         (__gets_warn): ... this.  Add __warnattr.
4164         (gets): Call __gets_warn instead of __gets_alias.
4165         * socket/bits/socket2.h (__recv_chk_warn, __recvfrom_chk_warn): New
4166         aliases with __warnattr.
4167         (recv, recvfrom): Call __*_chk_warn instead of __*_chk if compile
4168         time detectable overflow is found.
4169         * posix/bits/unistd.h (__read_chk_warn, __pread_chk_warn,
4170         __pread64_chk_warn, __readlink_chk_warn, __readlinkat_chk_warn,
4171         __getcwd_chk_warn, __confstr_chk_warn, __getgroups_chk_warn,
4172         __ttyname_r_chk_warn, __getlogin_r_chk_warn, __gethostname_chk_warn,
4173         __getdomainname_chk_warn): New aliases with __warnattr.
4174         (read, pread, pread64, readlink, readlinkat, getcwd, confstr,
4175         getgroups, ttyname_r, getlogin_r, gethostname, getdomainname): Call
4176         __*_chk_warn instead of __*_chk if compile time detectable overflow
4177         is found.
4178         (__getgroups_chk): Rename argument to __listlen from listlen.
4179         (__getwd_alias): Rename to...
4180         (__getwd_warn): ... this.  Add __warnattr.
4181         (getwd): Call __getwd_warn instead of __getwd_alias.
4182         * wcsmbs/bits/wchar2.h (__wmemcpy_chk_warn, __wmemmove_chk_warn,
4183         __wmempcpy_chk_warn, __wmemset_chk_warn, __wcsncpy_chk_warn,
4184         __wcpncpy_chk_warn, __fgetws_chk_warn, __fgetws_unlocked_chk_warn,
4185         __mbsrtowcs_chk_warn, __wcsrtombs_chk_warn, __mbsnrtowcs_chk_warn,
4186         __wcsnrtombs_chk_warn): New aliases with __warnattr.
4187         (wmemcpy, wmemmove, wmempcpy, wmemset, mbsrtowcs, wcsrtombs,
4188         mbsnrtowcs, wcsnrtombs): Call __*_chk_warn instead of __*_chk if
4189         compile time detectable overflow is found.
4190         (wcsncpy, wcpncpy): Likewise.  For constant __n fix check whether
4191         to use __*_chk or not.
4192         (fgetws, fgetws_unlocked): Divide __bos by sizeof (wchar_t), both
4193         in comparisons which function should be called and in __*_chk*
4194         arguments.  Call __*_chk_warn instead of __*_chk if compile time
4195         detectable overflow is found.
4196         (swprintf, vswprintf): Divide __bos by sizeof (wchar_t) in
4197         __*_chk argument.
4198         * debug/tst-chk1.c (do_test): Add a few more tests.
4199
4200 2007-09-24  Ulrich Drepper  <drepper@redhat.com>
4201
4202         [BZ #5058]
4203         * intl/gettextP.h (struct loaded_domain): Add conversions_lock member.
4204         * intl/loadmsgcat.c (_nl_load_domain): Initialize conversions_lock.
4205         (_nl_unload_domain): Finalize conversions_lock.
4206         * intl/dcigettext.c (_nl_find_msg): Take conversions_lock before
4207         handling table of known conversions.
4208
4209 2007-09-24  Jakub Jelinek  <jakub@redhat.com>
4210
4211         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Use
4212         close_not_cancel_no_status instead of close.
4213
4214 2007-09-13  Aurelien Jarno  <aurelien@aurel32.net>
4215
4216         [BZ #5028]
4217         * posix/regcomp.c (lookup_collation_sequence_value): Check that
4218         nrules != 0 for multibyte chars.
4219
4220 2007-09-23  Ulrich Drepper  <drepper@redhat.com>
4221
4222         * resolv/ns_print.c (ns_sprintrrf): Handle ns_t_a6 and ns_t_opt.
4223         Provide better error message in case the type is unknown.
4224
4225         [BZ #4963]
4226         * wcsmbs/wcsnlen.c: Don't reference before checking the length.
4227         * string/stratcliff.c: Make usable to test wide char functions.
4228         * wcsmbs/wcsatcliff.c: New file.
4229         * wcsmbs/Makefiel (tests): Add wcsatcliff.
4230
4231         [BZ #4972]
4232         * iconvdata/Makefile (modules): Add MAC-CENTRALEUROPE.
4233         (distribute): Add mac-centraleurope.c.
4234         (gen-8bit-gap-modules): Add mac-centraleurope.
4235         * iconvdata/mac-centraleurope.c: New file.
4236         * iconvdata/gconv-modules: Add entries for MAC-CENTRALEUROPE.
4237         * iconvdata/TESTS: Likewise.
4238         * iconvdata/tst-tables.sh: Likewise.
4239
4240         [BZ #5043]
4241         * iconv/iconv_open.c (iconv_open): For large codeset names use malloc.
4242
4243 2007-09-21  Ulrich Drepper  <drepper@redhat.com>
4244
4245         * sysdeps/x86_64/cacheinfo.c (__x86_64_data_cache_size_half): Renamed
4246         from __x86_64_core_cache_size_half.
4247         (init_cacheinfo): Compute shared cache size for AMD processors with
4248         shared L3 correctly.
4249         * sysdeps/x86_64/memcpy.S: Adjust for __x86_64_data_cache_size_half
4250         name change.
4251         Patch in large parts by Evandro Menezes.
4252
4253 2007-09-19  Ulrich Drepper  <drepper@redhat.com>
4254
4255         * elf/dl-lookup.c (add_dependency): Handle failing memory
4256         allocation for dependency list.  Remove unnecessary check.
4257
4258         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid unnecessary
4259         open/close when determining source addresses.
4260
4261         * crypt/Makefile (libcrypt-routines): Add sha256-crypt, sha256,
4262         sha512-crypt, and sha512.
4263         (tests): Add sha256test, sha256c-test, sha512test, and sha512c-test.
4264         (distribute): Add sha256.h and sha512.h.
4265         * crypt/crypt-entry.c (crypt): Recognize the new $5$ and $6$ prefixes
4266         and call the appropriate code.
4267         * crypt/sha256-crypt.c: New file.
4268         * crypt/sha256.c: New file.
4269         * crypt/sha256.h: New file.
4270         * crypt/sha256c-test.c: New file.
4271         * crypt/sha256test.c: New file.
4272         * crypt/sha512-crypt.c: New file.
4273         * crypt/sha512.c: New file.
4274         * crypt/sha512.h: New file.
4275         * crypt/sha512c-test.c: New file.
4276         * crypt/sha512test.c: New file.
4277
4278 2007-09-19  Jakub Jelinek  <jakub@redhat.com>
4279
4280         * misc/bits/syslog.h (syslog): Remove extraneous argument from
4281         the inline, pass __USE_FORTIFY_LEVEL - 1 as second argument to
4282         __syslog_chk.
4283
4284 2007-09-18  Jakub Jelinek  <jakub@redhat.com>
4285
4286         * locale/programs/charmap-dir.c (charmap_aliases): Use %ms instead of
4287         %as in fscanf format strings.
4288
4289         * sysdeps/sparc/sparc32/elf/start.S: Remove cfi_* markup.
4290         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
4291         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__thread_start):
4292         Likewise.
4293         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__thread_start):
4294         Likewise.
4295
4296         * sysdeps/generic/ldsodefs.h (DL_LOOKUP_GSCOPE_LOCK): New definition.
4297         * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Or in
4298         DL_LOOKUP_GSCOPE_LOCK into flags after THREAD_GSCOPE_SET_FLAG ().
4299         * elf/dl-sym.c (do_sym): Likewise.
4300         * include/link.h (struct link_map): Add l_serial field.
4301         * elf/dl-object.c (_dl_new_object): Initialize l_serial.
4302         * elf/dl-lookup.c (add_dependency): Add flags argument.
4303         Remember map->l_serial, if DL_LOOKUP_GSCOPE_LOCK is among
4304         flags, use THREAD_GSCOPE_RESET_FLAG before and
4305         THREAD_GSCOPE_SET_FLAG after
4306         __rtld_lock_lock_recursive (GL(dl_load_lock)) to avoid deadlock.
4307         Don't dereference map until it has been found on some list.
4308         If map->l_serial changed, return -1.
4309
4310 2007-09-17  Jakub Jelinek  <jakub@redhat.com>
4311
4312         * include/stdio.h (__isoc99_fscanf, __isoc99_scanf,
4313         __isoc99_sscanf, __isoc99_vscanf): New prototypes.
4314         (__isoc99_vsscanf, __isoc99_vfscanf): New prototypes, add
4315         libc_hidden_proto.
4316         * include/wchar.h (__isoc99_fwscanf, __isoc99_wscanf,
4317         __isoc99_swscanf, __isoc99_vwscanf): New prototypes.
4318         (__isoc99_vswscanf, __isoc99_vfwscanf): New prototypes,
4319         add libc_hidden_proto.
4320         * libio/stdio.h (fscanf, scanf, sscanf, vfscanf, vscanf,
4321         vsscanf): Redirect to __isoc99_* if strict ISO C99 or POSIX
4322         conformance requested.
4323         * wcsmbs/wchar.h (fwscanf, wscanf, swscanf, vfwscanf, vwscanf,
4324         vswscanf): Redirect to __isoc99_* if strict ISO C99 or POSIX
4325         conformance requested.
4326         * libio/bits/stdio-ldbl.h (fscanf, scanf, sscanf, vfscanf, vscanf,
4327         vsscanf): Redirect to __nldbl___isoc99_* if strict ISO C99 or POSIX
4328         conformance requested.
4329         * wcsmbs/bits/wchar-ldbl.h (fwscanf, wscanf, swscanf, vfwscanf,
4330         vwscanf, vswscanf): Redirect to __nldbl___isoc99_* if strict
4331         ISO C99 or POSIX conformance requested.
4332         * stdio-common/Versions (libc): Export __isoc99_scanf@@GLIBC_2.7,
4333         __isoc99_vscanf@@GLIBC_2.7, __isoc99_fscanf@@GLIBC_2.7,
4334         __isoc99_vfscanf@@GLIBC_2.7, __isoc99_sscanf@@GLIBC_2.7
4335         and __isoc99_vsscanf@@GLIBC_2.7.
4336         * stdio-common/Makefile (routines): Add isoc99_scanf, isoc99_vscanf,
4337         isoc99_fscanf, isoc99_vfscanf, isoc99_sscanf and isoc99_vsscanf.
4338         (tests): Add scanf14.
4339         (CFLAGS-vfprintf.c, CFLAGS-fprintf.c, CFLAGS-printf.c,
4340         CFLAGS-vfwprintf.c, CFLAGS-vfscanf.c, CFLAGS-vfwscanf.c,
4341         CFLAGS-fscanf.c, CFLAGS-scanf.c, CFLAGS-isoc99_vfscanf.c,
4342         CFLAGS-isoc99_vscanf.c, CFLAGS-isoc99_fscanf.c,
4343         CFLAGS-isoc99_scanf.c): Add $(exceptions).
4344         (CFLAGS-scanf15.c): Add various -I paths to prevent the compiler
4345         from using internal headers.
4346         * wcsmbs/Versions (libc): Export __isoc99_wscanf@@GLIBC_2.7,
4347         __isoc99_vwscanf@@GLIBC_2.7, __isoc99_fwscanf@@GLIBC_2.7,
4348         __isoc99_vfwscanf@@GLIBC_2.7, __isoc99_swscanf@@GLIBC_2.7
4349         and __isoc99_vswscanf@@GLIBC_2.7.
4350         * wcsmbs/Makefile (routines): Add isoc99_wscanf, isoc99_vwscanf,
4351         isoc99_fwscanf, isoc99_vfwscanf, isoc99_swscanf and isoc99_vswscanf.
4352         (CFLAGS-isoc99_wscanf.c, CFLAGS-isoc99_fwscanf.c,
4353         CFLAGS-isoc99_vwscanf.c, CFLAGS-isoc99_vfwscanf.c): Add $(exceptions).
4354         (CPPFLAGS): Add -D_IO_MTSAFE_IO if needed.
4355         * stdio-common/isoc99_scanf.c: New file.
4356         * stdio-common/isoc99_vsscanf.c: New file.
4357         * stdio-common/isoc99_vscanf.c: New file.
4358         * stdio-common/isoc99_vfscanf.c: New file.
4359         * stdio-common/isoc99_fscanf.c: New file.
4360         * stdio-common/isoc99_sscanf.c: New file.
4361         * wcsmbs/isoc99_fwscanf.c: New file.
4362         * wcsmbs/isoc99_vswscanf.c: New file.
4363         * wcsmbs/isoc99_swscanf.c: New file.
4364         * wcsmbs/isoc99_wscanf.c: New file.
4365         * wcsmbs/isoc99_vwscanf.c: New file.
4366         * wcsmbs/isoc99_vfwscanf.c: New file.
4367         * libio/libio.h (_IO_FLAGS2_SCANF_STD): Define.
4368         * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): Also
4369         clear _IO_FLAGS2_SCANF_STD bit from _flags2.
4370         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Don't
4371         handle %as, %aS and %a[ if _IO_FLAGS2_SCANF_STD is set in _flags2.
4372         * stdio-common/scanf14.c: New test.
4373         * stdio-common/scanf15.c: New test.
4374         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add
4375         isoc99_scanf, isoc99_fscanf, isoc99_sscanf,
4376         isoc99_vscanf, isoc99_vfscanf, isoc99_vsscanf,
4377         isoc99_wscanf, isoc99_fwscanf, isoc99_swscanf,
4378         isoc99_vwscanf, isoc99_vfwscanf and isoc99_vswscanf.
4379         * sysdeps/ieee754/ldbl-opt/Versions (libc): Export
4380         __nldbl___isoc99_scanf@@GLIBC_2.7,
4381         __nldbl___isoc99_fscanf@@GLIBC_2.7,
4382         __nldbl___isoc99_sscanf@@GLIBC_2.7,
4383         __nldbl___isoc99_vscanf@@GLIBC_2.7,
4384         __nldbl___isoc99_vfscanf@@GLIBC_2.7,
4385         __nldbl___isoc99_vsscanf@@GLIBC_2.7,
4386         __nldbl___isoc99_wscanf@@GLIBC_2.7,
4387         __nldbl___isoc99_fwscanf@@GLIBC_2.7,
4388         __nldbl___isoc99_swscanf@@GLIBC_2.7,
4389         __nldbl___isoc99_vwscanf@@GLIBC_2.7,
4390         __nldbl___isoc99_vfwscanf@@GLIBC_2.7
4391         and __nldbl___isoc99_vswscanf@@GLIBC_2.7.
4392         * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__isoc99_scanf,
4393         __isoc99_fscanf, __isoc99_sscanf, __isoc99_vscanf,
4394         __isoc99_vfscanf, __isoc99_vsscanf, __isoc99_wscanf,
4395         __isoc99_fwscanf, __isoc99_swscanf, __isoc99_vwscanf,
4396         __isoc99_vfwscanf, __isoc99_vswscanf): Add NLDBL_DECL.
4397         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
4398         (__nldbl___isoc99_scanf, __nldbl___isoc99_fscanf,
4399         __nldbl___isoc99_sscanf, __nldbl___isoc99_vscanf,
4400         __nldbl___isoc99_vfscanf, __nldbl___isoc99_vsscanf,
4401         __nldbl___isoc99_wscanf, __nldbl___isoc99_fwscanf,
4402         __nldbl___isoc99_swscanf, __nldbl___isoc99_vwscanf,
4403         __nldbl___isoc99_vfwscanf, __nldbl___isoc99_vswscanf): New
4404         functions.
4405         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vfscanf.c: New file.
4406         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_swscanf.c: New file.
4407         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vwscanf.c: New file.
4408         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_wscanf.c: New file.
4409         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_scanf.c: New file.
4410         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_sscanf.c: New file.
4411         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vsscanf.c: New file.
4412         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_fwscanf.c: New file.
4413         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vfwscanf.c: New file.
4414         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vswscanf.c: New file.
4415         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vscanf.c: New file.
4416         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_fscanf.c: New file.
4417
4418         * stdio-common/Makefile (tests): Add scanf13.
4419         (scanf13-ENV): New.
4420         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Handle
4421         m modifier followed by l.
4422         (STRING_ARG): Add width argument.
4423         (_IO_vfscanf_internal) <case L_('c')>: Handle %mc.
4424         <case L_('C')>: Handle %mlc and %mC.
4425         <case L_('s'), case L_('S'), case L_('[')>: Adjust STRING_ARG
4426         arguments.
4427         * stdio-common/scanf13.c: New test.
4428
4429         * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): Clear
4430         the _IO_FLAGS2_FORTIFY bit from _flags2 rather than _flags.
4431
4432 2007-09-18  Ulrich Drepper  <drepper@redhat.com>
4433
4434         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Correct return value
4435         type and __THROW marker of splice, vmsplice, and tee.
4436         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
4437         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
4438         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
4439         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
4440         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
4441         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
4442         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
4443         * sysdeps/unix/sysv/linux/syscalls.list: Mark splice, vmsplice, and tee
4444         as cancellation points.
4445
4446 2003-11-01  Daniel Jacobowitz  <dan@debian.org>
4447
4448         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_discover_osversion): Don't
4449         parse more than three parts of the version number.
4450
4451 2007-09-15  Ulrich Drepper  <drepper@redhat.com>
4452
4453         * stdio-common/vfscanf.c (_IO_vfwscanf): Add support for 'm'
4454         modifier.  Patch by Jakub Jelinek.
4455
4456 2007-08-26  Jakub Jelinek  <jakub@redhat.com>
4457
4458         * sysdeps/unix/sysv/linux/i386/Makefile (sysdep_routines): Add
4459         call_fallocate in misc subdir.
4460         * sysdeps/unix/sysv/linux/i386/call_fallocate.S: New file.
4461         * sysdeps/unix/sysv/linux/i386/syscalls.list (fallocate64): Remove.
4462         * sysdeps/unix/sysv/linux/i386/posix_fallocate.c: Use __call_fallocate
4463         instead of __fallocate64.
4464         * sysdeps/unix/sysv/linux/i386/posix_fallocate64.c: Likewise.
4465
4466 2007-09-15  Jakub Jelinek  <jakub@redhat.com>
4467
4468         * rt/Versions (librt): Export __mq_open_2@@GLIBC_2.7.
4469         * rt/Makefile (headers): Add bits/mqueue2.h.
4470         * rt/mqueue.h: Include bits/mqueue2.h if -D_FORTIFY_SOURCE=2,
4471         optimizing with GCC and __va_arg_pack_len is defined.
4472         * rt/bits/mqueue2.h: New file.
4473         * rt/mq_open.c (__mq_open): Renamed from mq_open.
4474         (mq_open): New strong_alias.
4475         (__mq_open_2): New function.
4476         * sysdeps/unix/sysv/linux/mq_open.c (__mq_open): Renamed from mq_open.
4477         (mq_open): New strong_alias.
4478         (__mq_open_2): New function.
4479         * debug/Versions (libc): Export __fortify_fail@@GLIBC_PRIVATE.
4480         * Versions.def (librt): Add GLIBC_2.7 version.
4481         * debug/fortify_fail.c (__fortify_fail): Add libc_hidden_def.
4482         * include/stdio.h (__fortify_fail): Add libc_hidden_proto.
4483
4484         * misc/sys/cdefs.h (__errordecl, __va_arg_pack_len): Define.
4485         * io/fcntl.h: Include bits/fcntl2.h when __va_arg_pack_len
4486         is defined rather than when not C++.
4487         * io/bits/fcntl2.h (__open_alias, __open64_alias, __openat_alias,
4488         __openat64_alias): New redirects.
4489         (__open_too_many_args, __open_missing_mode, __open64_too_many_args,
4490         __open64_missing_mode, __openat_too_many_args, __openat_missing_mode,
4491         __openat64_too_many_args, __openat64_missing_mode): New __errordecls.
4492         (open, open64, openat, openat64): Rewrite as __extern_always_inline
4493         functions instead of function-like macros.
4494
4495 2007-09-14  H.J. Lu  <hongjiu.lu@intel.com>
4496
4497         * sysdeps/i386/i586/memcpy.S (__memcpy_chk): New definition.
4498         * sysdeps/i386/i586/mempcpy.S (__memcpy_chk): New definition.
4499         * sysdeps/i386/i586/memset.S (__memset_chk): New definition.
4500
4501 2007-09-15  Mike Frysinger  <vapier@gentoo.org>
4502
4503         * inet/inet_net.c: Reset digit to 0 for inputs starting with "0x".
4504         * inet/tst-network.c (tests): Add edge case tests for "0", "0x", "0x0".
4505
4506 2007-09-14  Mike Frysinger  <vapier@gentoo.org>
4507
4508         * inet/tst-network.c: Increment ERRORS for failing tests.
4509
4510 2007-09-07  Jakub Jelinek  <jakub@redhat.com>
4511
4512         * misc/sys/cdefs.h (__va_arg_pack): Define for GCC 4.3+.
4513         * misc/bits/syslog.h (syslog): When __va_arg_pack is defined,
4514         implement as __extern_always_inline function.
4515         (vsyslog): Define as __extern_always_inline function unconditionally.
4516         * libio/bits/stdio2.h (sprintf, snprintf, printf, fprintf):
4517         When __va_arg_pack is defined, implement as __extern_always_inline
4518         functions.
4519         (vsprintf, vsnprintf, vprintf, vfprintf): Define as
4520         __extern_always_inline functions unconditionally.
4521         * libio/bits/stdio.h (vprintf): Ifdef out the inline when
4522         bits/stdio2.h will be included.
4523         * wcsmbs/bits/wchar2.h (__swprintf_alias): New redirect.
4524         (swprintf, wprintf, fwprintf): When __va_arg_pack is defined,
4525         implement as __extern_always_inline functions.
4526         (vswprintf, vwprintf, vfwprintf): Define as
4527         __extern_always_inline functions unconditionally.
4528         * debug/tst-chk1.c (do_test): Enable remaining tests for C++.
4529
4530 2007-09-03  Jakub Jelinek  <jakub@redhat.com>
4531
4532         * misc/sys/cdefs.h (__extern_inline, __extern_always_inline): Only
4533         define in C++ for GCC 4.3+, in C++ always use __gnu_inline__
4534         attribute.
4535         * include/features.h (__USE_EXTERN_INLINES): Define only when
4536         __extern_inline is defined.
4537         * stdlib/stdlib.h: Include bits/stdlib.h when __extern_always_inline
4538         is defined instead of when not __cplusplus.
4539         * misc/sys/syslog.h: Include bits/syslog.h when __extern_always_inline
4540         is defined instead of when not __cplusplus.
4541         * socket/sys/socket.h: Include bits/socket2.h when
4542         __extern_always_inline is defined instead of when not __cplusplus.
4543         * libio/stdio.h: Include bits/stdio2.h when __extern_always_inline
4544         is defined instead of when not __cplusplus.
4545         * posix/unistd.h: Include bits/unistd.h when __extern_always_inline
4546         is defined instead of when not __cplusplus.
4547         * string/string.h: Include bits/string3.h when __extern_always_inline
4548         is defined instead of when not __cplusplus.
4549         * wcsmbs/wchar.h: Include bits/wchar2.h when __extern_always_inline
4550         is defined instead of when not __cplusplus.
4551         (btowc, wctob): Don't guard the inlines with ifndef __cplusplus.
4552         * io/fcntl.h: Don't include bits/fcntl2.h if __extern_always_inline
4553         is not defined.
4554         * misc/bits/syslog-ldbl.h: Guard *_chk stuff with
4555         defined __extern_always_inline instead of !defined __cplusplus.
4556         * libio/bits/stdio-ldbl.h: Likewise.
4557         * wcsmbs/bits/wchar-ldbl.h: Likewise.
4558         * misc/bits/syslog.h (syslog): Don't define for C++.
4559         (vsyslog): Use __extern_always_inline function for C++ instead of
4560         a macro.
4561         * libio/bits/stdio.h (__STDIO_INLINE): Define to __extern_inline
4562         whenever that macro is defined.
4563         (vprintf): Don't provide the inline for C++.
4564         (fread_unlocked, fwrite_unlocked): Don't define the macros for C++.
4565         * libio/bits/stdio2.h (sprintf, snprintf, printf, fprintf): Don't
4566         define the macros for C++.
4567         (vsprintf, vsnprintf, vprintf, vfprintf): Define as
4568         __extern_always_inline functions for C++.
4569         * io/sys/stat.h (stat, lstat, fstat, fstatat, mknod, mknodat,
4570         stat64, lstat64, fstat64, fstatat64): Don't define if not
4571         __USE_EXTERN_INLINES.
4572         * wcsmbs/bits/wchar2.h: Fix #error message.
4573         (swprintf, wprintf, fwprintf): Don't define the macros for C++.
4574         (vswprintf, vwprintf, vfwprintf): Define using
4575         __extern_always_inline functions for C++.
4576         * string/bits/string3.h: Don't #undef macros if __cplusplus.
4577         (memcpy, memmove, mempcpy, memset, bcopy, bzero, strcpy, stpcpy,
4578         strncpy, strcat, strncat): Define as __extern_always_inline
4579         functions instead of macros for C++.
4580         * math/bits/cmathcalls.h: Guard __extern_inline routines with
4581         defined __extern_inline.
4582         * sysdeps/alpha/fpu/bits/mathinline.h (__MATH_INLINE): Define
4583         to __extern_inline whenever that macro is defined.
4584         * sysdeps/ia64/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
4585         * sysdeps/i386/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
4586         * sysdeps/i386/i486/bits/string.h (__STRING_INLINE): Likewise.
4587         * sysdeps/s390/bits/string.h (__STRING_INLINE): Likewise.
4588         * sysdeps/s390/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
4589         * sysdeps/powerpc/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
4590         * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
4591         * sysdeps/sparc/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
4592         * sysdeps/unix/sysv/linux/sys/sysmacros.h (gnu_dev_major,
4593         gnu_dev_minor, gnu_dev_makedev): Remove __extern_inline from
4594         prototypes.  Only provide __extern_inline routines if
4595         __USE_EXTERN_INLINES.
4596         * debug/Makefile: Add rules to build and run tst-{,lfs}chk{4,5,6}
4597         tests.
4598         * debug/tst-chk1.c (do_prepare, do_test): Allow compilation as C++.
4599         For now avoid some *printf tests in C++.  Skip all testing
4600         if __USE_FORTIFY_LEVEL is defined, but __extern_always_inline macro
4601         is not.
4602         * debug/tst-chk4.cc: New file.
4603         * debug/tst-chk5.cc: New file.
4604         * debug/tst-chk6.cc: New file.
4605         * debug/tst-lfschk4.cc: New file.
4606         * debug/tst-lfschk5.cc: New file.
4607         * debug/tst-lfschk6.cc: New file.
4608         * include/wchar.h (__vfwprintf_chk, __vswprintf_chk): Avoid
4609         prototypes in C++.
4610         * include/stdio.h (__sprintf_chk, __snprintf_chk, __vsprintf_chk,
4611         __vsnprintf_chk, __printf_chk, __fprintf_chk, __vprintf_chk,
4612         __vfprintf_chk, __fgets_unlocked_chk, __fgets_chk): Likewise.
4613
4614 2007-09-13  Ulrich Drepper  <drepper@redhat.com>
4615
4616         * po/cs.po: Update from translation team.
4617
4618 2007-09-11  Roland McGrath  <roland@redhat.com>
4619
4620         * posix/Makefile ($(objpfx)getconf.speclist): Make it empty if cross
4621         compiling.
4622
4623 2007-09-07  Samuel Thibault  <samuel.thibault@ens-lyon.org>
4624
4625         * sysdeps/mach/hurd/bits/ioctls.h (TAB3): New macro.
4626
4627 2007-09-05  Roland McGrath  <roland@redhat.com>
4628
4629         * manual/signal.texi (Signaling Another Process): Typo fix.
4630         From Karl Berry <karl@freefriends.org>.
4631
4632 2007-08-29  Ulrich Drepper  <drepper@redhat.com>
4633
4634         * sysdeps/unix/sysv/linux/check_pf.c (IFA_F_OPTIMISTIC): Define to
4635         zero if not defined.
4636         (make_request): Recognize optimistic addresses and treat them like
4637         deprecated addresses.
4638         Reported by Neil Horman <nhorman@redhat.com>.
4639
4640 2007-08-28  Ulrich Drepper  <drepper@redhat.com>
4641
4642         * nscd/connections.c (send_ro_fd): Also transfer file size.
4643         * nscd/nscd_helper.c (get_mapping): If nscd also transfers the
4644         file size don't call fstat.
4645
4646         * nscd/nscd_helper.c (get_mapping): Avoid the pread call, just go
4647         ahead and map the file.  This should always be correct and we can
4648         catch problems later.
4649
4650 2007-08-28  Jakub Jelinek  <jakub@redhat.com>
4651
4652         * libio/bits/stdio2.h (__fread_chk, __fread_unlocked_chk): New
4653         prototypes.
4654         (__fread_alias, __fread_unlocked_alias): New aliases.
4655         (fread): New extern inline.
4656         (fread_unlocked): Likewise.  Undef macro before definition of
4657         the inline function.
4658         * debug/Makefile (routines): Add fread_chk and fread_u_chk.
4659         (CFLAGS-fread_chk.c, CFLAGS-fread_u_chk.c): Add.
4660         * debug/Versions (libc): Export __fread_chk@@GLIBC_2.7
4661         and __fread_unlocked_chk@@GLIBC_2.7.
4662         * debug/fread_chk.c: New file.
4663         * debug/fread_u_chk.c: New file.
4664         * debug/tst-chk1.c (do_test): Add fread and fread_unlocked tests.
4665
4666 2007-08-27  Jakub Jelinek  <jakub@redhat.com>
4667
4668         * sysdeps/unix/sysv/linux/syscalls.list
4669         (personality): Change caller to EXTRA.
4670
4671 2007-08-25  Ulrich Drepper  <drepper@redhat.com>
4672
4673         * iconvdata/iso-2022-kr.c (BODY): Fake initialization of array buf
4674         to keep gcc quiet.
4675         * iconvdata/iso-2022-cn.c (BODY): Likewise.
4676
4677         * locale/programs/ld-collate.c (collate_output): Avoid warning if
4678         NDEBUG is defined.
4679
4680         * Makerules: Use -p option with mkdir.
4681
4682         * sunrpc/key_prot.c (xdr_unixcred): Work around gcc alias warning.
4683         * nis/nis_xdr.c (_xdr_nis_server): Likewise.
4684         (_xdr_directory_obj): Likewise.
4685         (xdr_entry_obj): Likewise.
4686         (xdr_group_obj): Likewise.
4687         (xdr_link_obj): Likewise.
4688         (xdr_table_obj): Likewise.
4689         (_xdr_nis_result): Likewise.
4690         (_xdr_ns_request): Likewise.
4691         (_xdr_ib_request): Likewise.
4692         (_xdr_nis_taglist): Likewise.
4693         (xdr_cback_data): Likewise.
4694         * nis/yp_xdr.c (xdr_ypmaplist): Likewise.
4695         (xdr_ypresp_maplist): Likewise.
4696
4697         * stdio-common/Makefile: Avoid format string warning for tst-sprint.
4698
4699         * posix/regex_internal.h: Prevent some declarations and definitions
4700         to be seen when used in tests.
4701
4702         * posix/tst-rfc3484.c (__idna_to_unicode_lzlz): Initialize *OUTPUT.
4703         * posix/tst-rfc3484-2.c (__idna_to_unicode_lzlz): Likewise.
4704
4705         * debug/Makefile: Disable format checking when compiling tst-chk?.c.
4706
4707         * config.make.in (datarootdir): Add to shut up configure.
4708
4709         * sysdeps/x86_64/cacheinfo.c (handle_amd): Fix computation of
4710         associativity for fully-associative caches.
4711
4712         * sysdeps/x86_64/cacheinfo.c (handle_amd): Handle L3 cache
4713         requests.  Fill on more associativity values for L2.
4714         Patch mostly by Evandro Menezes.
4715
4716 2007-08-24  Ulrich Drepper  <drepper@redhat.com>
4717
4718         * sysdeps/unix/sysv/linux/x86_64/init-first.c
4719         (_libc_vdso_platform_setup): Avoid using exported variable by using
4720         alias.
4721
4722         * resolv/arpa/nameser.h (NS_OPT_DNSSEC_OK): Define.
4723
4724         * sysdeps/unix/sysv/linux/i386/syscalls.list: No reason to mark
4725         fallocate64 as EXTRA.  It is not referenced if the symbol isn't
4726         defined.
4727
4728 2007-08-23  Ulrich Drepper  <drepper@redhat.com>
4729
4730         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Correctly
4731         align stack for call if pltexit is to be used.
4732
4733         [BZ #3924]
4734         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Correctly
4735         align for function call in case pltexit has to be called later.
4736
4737         * sysdeps/i386/dl-trampoline.S (_dl_runtime_resolve): Avoid
4738         implicit atomic operation when storing function pointer.
4739         (_dl_runtime_profile): Likewise.
4740
4741 2007-08-17  Jakub Jelinek  <jakub@redhat.com>
4742
4743         * nis/nis_table.c (nis_list): Don't fail if __follow_path returned
4744         NIS_NOTFOUND.
4745
4746 2007-08-21  Ulrich Drepper  <drepper@redhat.com>
4747
4748         [BZ #4566]
4749         * string/strtok.c: Fix typo in comment.
4750
4751         [BZ #4582]
4752         * debug/segfault.c: Fix typos in comments.
4753
4754         [BZ #4588]
4755         * stdio-common/tempnam.c: Fix comment, it is not checked that
4756         TMPDIR points to a writable directory.
4757
4758         [BZ #4726]
4759         * resolv/res_send.c (__libc_res_nsend): Initialize all of the
4760         memory allocated for the name server address.
4761
4762         [BZ #4946]
4763         * nscd/connections.c (handle_request): Using sendfile always
4764         requires that mmap is used for the database.
4765         Patch by Petr Baudis <pasky@suse.cz>.
4766
4767         [BZ #4905]
4768         * nscd/hstcache.c (cache_addhst): When reloading an entry which
4769         suddenly has two or more addresses, ignore it and remove the old
4770         entry.
4771
4772         [BZ #4814]
4773         * resolv/res_hconf.c: Prepare for compiling outside libc.
4774         * nscd/res_hconf.c: New file.
4775         * nscd/Makefile (nscd-modules): Add res_hconf.  Add rules to build
4776         the new file.
4777         * nscd/gethstbynm2_r.c (NEED__RES_HCONF): Define.
4778         * nscd/gethstbyad_r.c (NEED__RES_HCONF): Likewise.
4779
4780         * nscd/hstcache.c (cache_addhst): Minimal optimization.
4781
4782         [BZ #4925]
4783         * debug/pcprofiledump.c: Turn on internationalization by calling
4784         setlocale.  Patch mostly by Benno Schulenberg.
4785
4786         [BZ #4936]
4787         * iconv/gconv.c (__gconv): If flush was successful, clear rest of
4788         the state.
4789         * iconvdata/Makefile: Add rules to build and run bug-iconv5.
4790         * iconvdata/bug-iconv5.c: New file.
4791
4792 2007-08-04  Carlos O'Donell  <carlos@systemhalted.org>
4793
4794         [BZ #4896]
4795         * elf/elf.h: Define R_PARISC_PLABEL21L, R_PARISC_PLABEL14R,
4796         R_PARISC_GNU_VTENTRY, R_PARISC_GNU_VTINHERIT, R_PARISC_TLS_GD21L,
4797         R_PARISC_TLS_GD14R, R_PARISC_TLS_GDCALL, R_PARISC_TLS_LDM21L,
4798         R_PARISC_TLS_LDM14R, R_PARISC_TLS_LDMCALL, R_PARISC_TLS_LDO21L,
4799         R_PARISC_TLS_LDO14R, R_PARISC_TLS_DTPMOD32, R_PARISC_TLS_DTPMOD64,
4800         R_PARISC_TLS_DTPOFF32, R_PARISC_TLS_DTPOFF64, R_PARISC_TLS_LE21L,
4801         R_PARISC_TLS_LE14R, R_PARISC_TLS_IE21L, R_PARISC_TLS_IE14R,
4802         R_PARISC_TLS_TPREL32, R_PARISC_TLS_TPREL64.
4803
4804 2007-08-21  Ulrich Drepper  <drepper@redhat.com>
4805
4806         [BZ #4937]
4807         * elf/do-lookup.h (do_lookup_x): Minimal improvement in hash
4808         lookup loop.  Suggested by John Reiser.
4809
4810 2007-08-21  Jakub Jelinek  <jakub@redhat.com>
4811
4812         * sysdeps/unix/sysv/linux/alpha/sysdep.h: Include tls.h.
4813
4814 2007-08-20  Ulrich Drepper  <drepper@redhat.com>
4815
4816         * csu/libc-start.c: Don't handle VDSO_SETUP here.
4817         * sysdeps/unix/sysv/linux/init-first.c: Handle it here instead.
4818         * sysdeps/unix/sysv/linux/x86_64/libc-start.c: Renamed to...
4819         * sysdeps/unix/sysv/linux/x86_64/init-first.c: ...this.  New file.
4820         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Move VDSO_SETUP code
4821         to...
4822         * sysdeps/unix/sysv/linux/x86_64/init-first.c: ...here.  New file.
4823
4824 2007-08-18  Ulrich Drepper  <drepper@redhat.com>
4825
4826         * po/nl.po: Update from translation team.
4827
4828 2007-08-16  Andreas Jaeger  <aj@suse.de>
4829
4830         * locale/localeinfo.h: Make _nl_category_name_idxs extern.
4831         Reported by Peter Festner <peter.festner@ewetel.net>.
4832
4833 2007-08-17  Jakub Jelinek  <jakub@redhat.com>
4834
4835         * login/tst-grantpt.c (test_einval): Add 3rd argument to open.
4836
4837 2007-08-16  Jakub Jelinek  <jakub@redhat.com>
4838
4839         * elf/Makefile ($(objpfx)ld.so): Use readelf -s and awk instead of nm -u
4840         to check for undefined symbols.
4841
4842         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone):
4843         If the syscall fails, set errno to the actual returned error number
4844         rather than EINVAL.
4845         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__clone): If
4846         arguments are incorrect, set errno to EINVAL, if the syscall
4847         fails, set errno to the actual returned error number.
4848
4849         * stdlib/bits/stdlib-ldbl.h (__strtold_internal): Remove.
4850         * wcsmbs/bits/wchar-ldbl.h (__wcstold_internal): Remove.
4851
4852         * sysdeps/sparc/sparc32/sparcv9b/memcpy.S: Moved to...
4853         * sysdeps/sparc/sparc32/sparcv9/sparcv9b/memcpy.S: ... here.  New
4854         file.
4855         (ASI_PNF, ASI_BLK_P): Don't define.
4856         * sysdeps/sparc/sparc32/sparcv9v/memcpy.S: Moved to...
4857         * sysdeps/sparc/sparc32/sparcv9/sparcv9v/memcpy.S: ... here.  New
4858         file.
4859         * sysdeps/sparc/sparc32/sparcv9v/memset.S: Moved to...
4860         * sysdeps/sparc/sparc32/sparcv9/sparcv9v/memset.S: ... here.  New
4861         file.
4862
4863 2007-08-15  Jakub Jelinek  <jakub@redhat.com>
4864
4865         * sysdeps/sparc/fpu/fraiseexcpt.c (__feraiseexcept): Fix raising
4866         FE_UNDERFLOW on Niagara CPUs.
4867
4868         * sysdeps/sparc/fpu/feholdexcpt.c (feholdexcept): Clear all
4869         exceptions.
4870
4871 2007-08-14  Jakub Jelinek  <jakub@redhat.com>
4872
4873         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_runtime_setup): No
4874         need to check GLRO(dl_hwcap) & HWCAP_SPARC_FLUSH on sparcv9.
4875         (sparc_fixup_plt): Add do_flush argument instead of figuring whether
4876         flush should be used or not inside of the function.
4877         (elf_machine_fixup_plt, elf_machine_rela): Adjust caller.
4878
4879         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone,
4880         __thread_start): Use HIDDEN_JUMPTARGET.
4881         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__clone,
4882         __thread_start): Likewise.
4883         * sysdeps/unix/sysv/linux/sparc/sysdep.h (JUMPTARGET): Define.
4884
4885         * sysdeps/ieee754/ldbl-64-128/strtold_l.c (__STRTOF): Declare.
4886         Add libc_hidden_proto.
4887         (STRTOF): Add libc_hidden_proto.
4888         (___new_strtold_l, ___new_wcstold_l): New weak aliases.
4889         (strtold_l, wcstold_l): Use them as second argument for
4890         long_double_symbol.
4891
4892 2007-08-14  Ulrich Drepper  <drepper@redhat.com>
4893
4894         * elf/dl-misc.c: Undo last change.  The kernel won't allow it.
4895
4896 2007-08-13  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
4897
4898         * stdlib/strtold_l.c: Include wchar.h if needed.  Add libc_hidden_def.
4899
4900 2007-08-14  Ulrich Drepper  <drepper@redhat.com>
4901
4902         * po/bg.po: New file.  From the translation team.
4903
4904 2007-08-13  Jakub Jelinek  <jakub@redhat.com>
4905
4906         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PSELECT,
4907         __ASSUME_PPOLL, __ASSUME_ATFCTS, __ASSUME_SET_ROBUST_LIST,
4908         __ASSUME_UTIMENSAT, __ASSUME_FALLOCATE): Update per-arch conditions
4909         when each feature was introduced.
4910
4911         * sysdeps/unix/sysv/linux/dl-vdso.c: Don't include dl-hash.h.
4912         * sysdeps/unix/sysv/linux/dl-vdso.h: Don't include dl-hash.h if NDEBUG.
4913         (CHECK_HASH): New macro.
4914         (PREPARE_VERSION): Use it.
4915
4916         * sysdeps/unix/sysv/linux/pselect.c (__generic_pselect): Only provide
4917         prototype if not __ASSUME_PSELECT.
4918         * sysdeps/unix/sysv/linux/ppoll.c (__generic_ppoll): Only provide
4919         prototype if not __ASSUME_PPOLL.
4920
4921         * sysdeps/unix/sysv/linux/dl-osinfo.h (ROUND): #undef after use.
4922
4923         * sysdeps/unix/clock_settime.c (freq, __pthread_clock_settime,
4924         hp_timing_settime): Don't define or declare if HANDLED_CPUTIME
4925         is defined.
4926
4927 2007-08-13  Ulrich Drepper  <drepper@redhat.com>
4928
4929         * sysdeps/unix/sysv/linux/x86_64/libc-start.c
4930         (_libc_vdso_platform_setup): If vDSO is not available point
4931         __vdso_gettimeofday to the vsyscall.
4932         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S [SHARED]: Use
4933         __vdso_gettimeofday instead of vsyscall.
4934
4935 2007-08-13  Jakub Jelinek  <jakub@redhat.com>
4936
4937         * nscd/servicescache.c: Include kernel-features.h.
4938         * nscd/gai.c: Likewise.
4939         * sysdeps/unix/sysv/linux/statfs64.c: Likewise.
4940         * sysdeps/unix/sysv/linux/fstatfs64.c: Likewise.
4941         * sysdeps/unix/sysv/linux/fxstatat.c: Likewise.
4942         * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S: Likewise.
4943         * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S: Likewise.
4944         * sysdeps/unix/sysv/linux/xstatconv.c: Likewise.
4945         * sysdeps/unix/sysv/linux/if_index.c: Likewise.
4946         * sysdeps/unix/sysv/linux/sparc/sparc64/xstat.c: Likewise.
4947         * sysdeps/unix/sysv/linux/ifaddrs.c: Likewise.
4948
4949 2007-08-12  Ulrich Drepper  <drepper@redhat.com>
4950
4951         * elf/dl-dst.h: No need for _dl_dst_count, _dl_dst_substitute,
4952         and _dl_get_origin defines anymore.
4953
4954         * sysdeps/unix/sysv/linux/clock_gettime.c (maybe_syscall_gettime_cpu):
4955         Build fix for systems which might lack POSIX timer support.
4956
4957         * sysdeps/unix/sysv/linux/x86_64/libc-start.c
4958         (_libc_vdso_platform_setup): Mangle function pointers before storing
4959         them.
4960         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_VSYSCALL):
4961         Demangle vdso pointer before use.
4962         (INTERNAL_VSYSCALL): Likewise.
4963
4964         * elf/cache.c (primes): Mark as const.
4965         Noted by Roland McGrath.
4966
4967 2007-08-01  Andreas Jaeger  <aj@suse.de>
4968             Jakub Jelinek  <jakub@redhat.com>
4969
4970         * elf/ldconfig.c (opt_ignore_aux_cache): Add new option.
4971         (options): Add option.
4972         (parse_opt): Handle option.
4973         (manual_link): Adjust process_file caller.  Call implicit_soname.
4974         (search_dir): Formatting.  Use and populate auxiliary cache.
4975         (main): Load and save auxiliary cache.
4976         * elf/readlib.c (process_file): Add stat_buf argument.  Pass struct
4977         stat64 from fstat64 to caller.
4978         (implicit_soname): New function.
4979         * elf/readelflib.c (process_elf_file): If DT_SONAME is not present,
4980         leave *soname as NULL.
4981         * elf/cache.c: Include libgen.h.
4982         (print_entry, print_cache, compare, save_cache, add_to_cache):
4983         Formatting and cleanups.
4984         (aux_cache_entry_id, aux_cache_entry, aux_cache_file_entry,
4985         aux_cache_file): New structures.
4986         (AUX_CACHEMAGIC): Define.
4987         (primes): New array.
4988         (aux_hash_size, aux_hash): New variables.
4989         (aux_cache_entry_id_hash, nextprime, init_aux_cache,
4990         search_aux_cache, insert_to_aux_cache, add_to_aux_cache,
4991         load_aux_cache, save_aux_cache): New functions.
4992         * sysdeps/generic/ldconfig.h (_PATH_LDCONFIG_AUX_CACHE): Define.
4993         (init_aux_cache, search_aux_cache, add_to_aux_cache,
4994         load_aux_cache, save_aux_cache, implicit_soname): New prototypes.
4995         (process_file): Adjust prototype.
4996
4997 2007-08-12  Jakub Jelinek  <jakub@redhat.com>
4998
4999         * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h: Include stddef.h
5000         with __need_size_t.
5001
5002 2007-08-12  Ulrich Drepper  <drepper@redhat.com>
5003
5004         * sysdeps/unix/sysv/linux/dl-vdso.c (_dl_vdso_vsym): Expect
5005         r_found_version structure as second parameter.
5006         * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION): Define.
5007         (_dl_vdso_vsym): Change type of second parameter accordingly.
5008         * sysdeps/unix/sysv/linux/x86-64/libc-start.c
5009         (_libc_vdso_platform_setup): Adjust.
5010         * sysdeps/unix/sysv/linux/powerpc/libc-start.c
5011         (_libc_vdso_platform_setup): Likewise.
5012
5013         * sysdeps/unix/sysv/linux/powerpc/dl-vdso.c: Move to...
5014         * sysdeps/unix/sysv/linux/dl-vdso.c: ...here.
5015         * sysdeps/unix/sysv/linux/powerpc/dl-vdso.h: Move to...
5016         * sysdeps/unix/sysv/linux/dl-vdso.h: ...here.
5017         * csu/libc-start.c: Pretty printing.
5018         Use VDSO_SETUP if defined.
5019         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Define VDSO_SETUP
5020         and let generic code call into _libc_vdso_platform_setup.
5021         * sysdeps/unix/sysv/linux/x86_64/libc-start.c: New file.
5022         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: New file.
5023         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Pretty printing.
5024         Define INLINE_VSYSCALL and INTERNAL_VSYSCALL.
5025         * sysdeps/unix/sysv/linux/x86_64/Versions: Export __vdso_clock_gettime
5026         for GLIBC_PRIVATE.
5027         * sysdeps/unix/sysv/linux/x86_64/Makefile [subdir=elf]
5028         (sysdep_rountines): Add dl-vdso.
5029
5030         * sysdeps/unix/sysv/linux/powerpc/Makefile: Use sysdep_routines instead
5031         of routines.
5032
5033         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Add
5034         attribute_hidden to __vdso_gettimeofday prototype.
5035
5036 2007-08-12  Roland McGrath  <roland@redhat.com>
5037
5038         * manual/stdio.texi (Variable Arguments Output): Fix xref to gcc manual.
5039         From: Karl Berry <karl@freefriends.org>.
5040
5041 2007-08-11  Ulrich Drepper  <drepper@redhat.com>
5042
5043         * elf/dl-misc.c (_dl_sysdep_read_whole_file): We really don't need
5044         an atime update for the files we read.
5045
5046 2007-08-10  Ulrich Drepper  <drepper@redhat.com>
5047
5048         * shadow/lckpwdf.c (__lckpwdf): Use O_CLOEXEC if possible.
5049
5050         * nscd/connections.c: Use O_CLOEXEC if possible.  Use mkostemp
5051         instead of mkstemp.
5052
5053         * misc/Makefile (routines): Add mkostemp and mkostemp64.
5054         * misc/Versions: Export mkostemp and mkostemp64 for GLIBC_2.7.
5055         * misc/mkostemp.c: New file.
5056         * misc/mkostemp64.c: New file.
5057         * stdlib/stdlib.h: Declare the new functions.
5058         * sysdeps/posix/tempname.c: Add new parameter which is added to
5059         the flags for open.  Remove __GT_BIGFILE handling.
5060         * stdio-common/tempname.c: Likewise.
5061         * include/stdio.h: Adjust __gen_tempname prototype.
5062         Renumber __GT_* constants.
5063         * libio/oldtmpfile.c: Adjust for __gen_tempname interface change.
5064         * misc/mkdtemp.c: Likewise.
5065         * misc/mkstemp.c: Likewise.
5066         * misc/mkstemp64.c: Likewise.
5067         * misc/mktemp.c: Likewise.
5068         * stdio-common/tempnam.c: Likewise.
5069         * stdio-common/tmpfile.c: Likewise.
5070         * stdio-common/tmpfile64.c: Likewise.
5071         * stdio-common/tmpnam.c: Likewise.
5072         * stdio-common/tmpnam_r.c: Likewise.
5073
5074 2007-08-10  Roland McGrath  <roland@frob.com>
5075
5076         * sysdeps/mach/hurd/bits/ioctls.h (NLDLY, TABDLY, BSDLY, VTDLY):
5077         New macros.
5078         (NLDELAY, CRDELAY, TBDELAY, BSDELAY, VTDELAY): Define to those.
5079         Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
5080
5081 2007-08-10  Ulrich Drepper  <drepper@redhat.com>
5082
5083         * nss/nss_files/files-XXX.c (internal_setent): Use O_CLOEXEC if
5084         possible.
5085         * nss/nss_files/files-alias.c (internal_setent): Likewise.
5086         * nss/Makefile (libnss_files-routines): Add files-have_o_cloexec.
5087         * nss/nss_files/files-have_o_cloexec.c: New file.
5088
5089         * sysdeps/unix/sysv/linux/shm_open.c (shm_open): Use O_CLOEXEC if
5090         available.
5091
5092 2007-08-10  Jakub Jelinek  <jakub@redhat.com>
5093
5094         * sysdeps/ieee754/ldbl-128ibm/strtold_l.c (___new_strtold_l,
5095         ___new_wcstold_l): New weak aliases.
5096         (strtold_l, wcstold_l): Use them as second argument for
5097         long_double_symbol.
5098
5099 2007-08-09  Ulrich Drepper  <drepper@redhat.com>
5100
5101         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Use correct
5102         register in test for error.
5103
5104         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_CLOEXEC): Define.
5105         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (O_CLOEXEC): Likewise.
5106
5107         * po/sv.po: Update from translation team.
5108
5109 2007-08-06  Roland McGrath  <roland@redhat.com>
5110
5111         * include/stdlib.h: Add libc_hidden_proto for strto*, __strto*_l.
5112         Remove __strto*_l inlines.
5113         * include/wchar.h: Add libc_hidden_proto for wcsto*, __wcsto*_l.
5114         * stdlib/strtod.c: Add libc_hidden_def.
5115         * stdlib/strtod_l.c: Likewise.
5116         * stdlib/strtold.c [__LONG_DOUBLE_MATH_OPTIONAL]: Add libc_hidden_proto
5117         for __new_strtold and __new_wcstold.
5118         * sysdeps/ieee754/ldbl-128ibm/strtold_l.c: Add libc_hidden_proto for
5119         __STRTOF, STRTOF.
5120         * stdlib/strtol.c: Add libc_hidden_def.
5121         * stdlib/strtol_l.c: Likewise.
5122         * sysdeps/wordsize-64/strtol.c: Add libc_hidden_ver for strtoll and
5123         strtoq.
5124
5125         * scripts/data/localplt-powerpc-linux-gnu.data: New file.
5126
5127         * scripts/data/localplt-x86_64-linux-gnu.data: File renamed to ...
5128         * scripts/data/localplt-generic.data: ... here.
5129         * elf/Makefile (check-data): Get generic file if no other.
5130         ($(objpfx)check-localplt.out): Make target unconditional.
5131
5132         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_discover_osversion):
5133         Use ElfW(Nhdr).
5134
5135 2007-08-05  Ulrich Drepper  <drepper@redhat.com>
5136
5137         * po/zh_CN.po: Updated translation from translation team.
5138
5139 2007-08-05  Jakub Jelinek  <jakub@redhat.com>
5140
5141         * sysdeps/unix/sysv/linux/powerpc/powerpc32/socket.S (__socket):
5142         Don't use CGOTSETUP and CGOTRESTORE macros.
5143
5144 2007-08-04  Roland McGrath  <roland@redhat.com>
5145
5146         * posix/Makefile ($(objpfx)getconf.speclist): Fix typo.
5147
5148 2007-08-04  Jakub Jelinek  <jakub@redhat.com>
5149
5150         * io/bits/fcntl2.h (open, open64, openat, openat64): Add
5151         __extension__ around the whole statement expression.
5152
5153 2007-08-04  Ulrich Drepper  <drepper@redhat.com>
5154
5155         * sysdeps/unix/opendir.c (__alloc_dir): Correct order of DIR
5156         elements during initialization.
5157
5158         * po/pl.po: Updated translation from translation team.
5159         * po/tr.po: Likewise.
5160         * po/nl.po: Likewise.
5161
5162 2007-08-03  Ulrich Drepper  <drepper@redhat.com>
5163
5164         * rt/aio.h: Add __nonnull attributes.
5165
5166 2007-08-03  Jakub Jelinek  <jakub@redhat.com>
5167
5168         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Properly handle -0.
5169         * stdlib/Makefile (tests): Add tst-strtod5.
5170         (tst-strtod5-ENV): New.
5171         * stdlib/tst-strtod5.c: New file.
5172
5173         * intl/dcigettext.c (_nl_find_msg): Free encoding if __gconv_open
5174         failed.
5175         * intl/finddomain.c (_nl_find_domain): Free normalized_codeset
5176         on failure.
5177
5178         * elf/dl-load.c (decompose_rpath): Free copy if result couldn't be
5179         allocated.
5180
5181 2007-08-03  Jakub Jelinek  <jakub@redhat.com>
5182
5183         * rt/mqueue.h (mq_timedreceive, mq_timedsend): Fix nonnull argument
5184         numbers.
5185
5186 2007-08-02  Ulrich Drepper  <drepper@redhat.com>
5187
5188         * io/Makefile (aux): Add have_o_cloexec.
5189         * include/fcntl.h: Declare __have_o_cloexec.
5190         * io/have_o_cloexec.c: New file.
5191         * sysdeps/unix/opendir.c (__opendir): Use O_CLOEXEC is available.
5192         (__alloc_dir): If O_CLOEXEC has been used, don't duplicate the
5193         fcntl call if not necessary.
5194         * login/utmp_file.c (setutent_file): Use __have_o_cloexec instead
5195         of local variable.
5196
5197         * sysdeps/unix/opendir.c (__alloc_dir): Don't initialize ->data.
5198         Avoid memset, add explicit initialization.
5199         * sysdeps/unix/dirstream.h (struct __dirstream): Move data elemtn
5200         to the end and change into zero-sized array.
5201         Move lock member to fill a hole on 64-bit platforms.
5202
5203         * stdlib/stdlib.h: Remove __strto*_internal prototypes and strto*
5204         inline functions.
5205         * include/stdlib.h: Add __strto*_internal prototypes here.
5206         * wcsmbs/wchar.h: Remove __wcsto*_internal prototypes and wcsto*
5207         inline functions.
5208         * include/wchar.h: Add __wcsto*_internal prototypes.
5209         * sysdeps/generic/inttypes.h: No need to protect the declaration
5210         of the __strto*_internal and __wcsto*_internal members here.
5211
5212         * rt/mqueue.h: Change const to __const and add nonnull attributes.
5213
5214 2007-08-02  Roland McGrath  <roland@redhat.com>
5215
5216         * posix/Makefile ($(inst_libexecdir)/getconf): Make hard links to
5217         $(inst_bindir)/getconf if possible.
5218
5219         * posix/Makefile ($(objpfx)getconf.speclist): New target.
5220         (generated): Add it.
5221         ($(inst_libexecdir)/getconf): Use it.
5222
5223 2007-08-01  Ulrich Drepper  <drepper@redhat.com>
5224
5225         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Using
5226         /proc is faster and sufficient.  /sys is still needed for
5227         __get_nprocs_conf.
5228
5229 2007-08-01  Jakub Jelinek  <jakub@redhat.com>
5230
5231         * sysdeps/unix/sysv/linux/i386/syscalls.list (fallocate): Add fallocate
5232         syscall as __fallocate64.
5233         * sysdeps/unix/sysv/linux/i386/posix_fallocate.c: New file.
5234         * sysdeps/unix/sysv/linux/i386/posix_fallocate64.c: New file.
5235
5236 2007-07-30  Jakub Jelinek  <jakub@redhat.com>
5237
5238         * stdlib/tst-strtod2.c (do_test): Use %tu in fmt string for ptrdiff_t
5239         value.
5240
5241         * stdio-common/tst-fmemopen2.c (do_test): Avoid fmt string warning
5242         if off_t is different rank from size_t.
5243
5244         * sysdeps/generic/unwind-dw2.c (extract_cie_info, execute_cfa_program,
5245         uw_frame_state_for): Avoid type punning warnings.
5246         * sysdeps/generic/unwind-dw2-fde-glibc.c
5247         (_Unwind_IteratePhdrCallback): Likewise.
5248         * sysdeps/generic/unwind-dw2-fde.c (_Unwind_Find_FDE): Likewise.
5249         (binary_search_single_encoding_fdes, binary_search_mixed_encoding_fdes,
5250         get_cie_encoding, linear_search_fdes): Don't mix char and unsigned char
5251         pointers.
5252
5253 2007-07-31  Ulrich Drepper  <drepper@redhat.com>
5254
5255         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs_conf): Count
5256         total processors using sysfs.
5257         (__get_nprocs): Use sysfs to determine which processors are online.
5258
5259 2007-07-31  Jakub Jelinek  <jakub@redhat.com>
5260
5261         * sysdeps/unix/sysv/linux/posix_fallocate.c (posix_fallocate): Fix
5262         syscall arguments count.
5263
5264         * stdio-common/tfformat.c (sprint_doubles): Add 12 new tests.
5265
5266 2007-07-30  Roland McGrath  <roland@redhat.com>
5267
5268         * manual/libc.texinfo: Update copyrights, formatting magic, and
5269         @dircategory.  From Karl Berry <karl@freefriends.org>.
5270
5271 2007-07-29  Ulrich Drepper  <drepper@redhat.com>
5272
5273         [BZ #4860]
5274         * io/Makefile (headers): Add bits/fcntl2.h.
5275
5276         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_ZERO_S): Optimize
5277         using gcc builtin.
5278         (__CPU_EQUAL_S): Likewise.
5279
5280         * posix/Makefile (routines): Add sched_cpualloc and sched_cpufree.
5281         (tests): Add tst-cpuset.
5282         * posix/sched_cpualloc.c: New file.
5283         * posix/sched_cpufree.c: New file.
5284         * posix/tst-cpuset.c: New file.
5285         * posix/Versions: Export __sched_cpualloc and __sched_cpufree for
5286         GLIBC_2.7.
5287         * sysdeps/unix/sysv/linux/bits/sched.h: Define __CPU_*_S macros.
5288         * posix/sched.h: Define old CPU_* macros in temers of __CPU_*_S
5289         macros.  Define CPU_*_S macros.
5290
5291 2007-07-28  Ulrich Drepper  <drepper@redhat.com>
5292
5293         * posix/getconf.c (vars): Add missing _SC_LEVEL4_CACHE_LINESIZE
5294         entry.
5295
5296         [BZ #4858]
5297         * stdio-common/printf_fp.c (___printf_fp): Fix special case of
5298         #.0g and value rounded to 1.0.
5299         * stdio-common/tfformat.c (sprint_doubles): Add two new tests.
5300
5301 2007-07-26  Jakub Jelinek  <jakub@redhat.com>
5302
5303         * locale/programs/ld-monetary.c (monetary_finish): Avoid range check
5304         for int_frac_digits and frac_digits.
5305
5306         * login/logout.c (logout): Avoid aliasing violation.
5307         * login/logwtmp.c (logwtmp): Likewise.
5308
5309         * libio/genops.c (_IO_un_link): Avoid aliasing violation.
5310
5311         * nscd/selinux.c (preserve_capabilities): Initialize new_caps
5312         to avoid warning.
5313         * iconv/gconv_open.c (__gconv_open): Initialize ptr to avoid
5314         warning.
5315         * nis/nis_subr.c (nis_getnames): Initialize saveptr to avoid
5316         warning.
5317         * resolv/inet_ntop.c (inet_ntop6): Initialize best.len and cur.len
5318         to avoid warnings.
5319
5320         * nss/nsswitch.c (__nss_lookup_function): Don't cast &ni->known to
5321         void **.
5322         * nss/nsswitch.h (service_user): Use void * type for KNOWN field.
5323
5324         * nss/nss_files/files-hosts.c (LINE_PARSER): Cast host_addr to
5325         char * to avoid warning.
5326         * nis/nss_nis/nis-hosts.c (LINE_PARSER): Likewise.
5327
5328         * timezone/Makefile (CFLAGS-zdump.c): Add -fwrapv.
5329
5330         * locale/programs/ld-ctype.c (ctype_finish, set_class_defaults,
5331         allocate_arrays): Cast second argument to charmap_find_symbol
5332         to char * to avoid warnings.
5333
5334         * locale/programs/repertoire.c (repertoire_new_char): Change
5335         from_nr, to_nr and cnt to unsigned long, adjust printf format
5336         string.
5337
5338         * locale/programs/ld-collate.c (insert_value, handle_ellipsis):
5339         Cast second argument to new_element to char * to avoid warnings.
5340
5341         * locale/weightwc.h (findidx): Cast &extra[-i] to const int32_t *.
5342
5343         * intl/gettextP.h (struct loaded_domain): Change plural to const
5344         struct expression *.
5345         * intl/plural-eval.c (plural_eval): Change first argument to
5346         const struct expression *.
5347         * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Change first
5348         argument to const struct expression **.
5349         * intl/plural-exp.h (EXTRACT_PLURAL_EXPRESSION, plural_eval): Adjust
5350         prototypes.
5351         * intl/loadmsgcat (_nl_unload_domain): Cast away const
5352         in call to __gettext_free_exp.
5353
5354         * posix/fnmatch.c (fnmatch): Rearrange code to avoid maybe
5355         unitialized wstring/wpattern var warnings.
5356
5357         * posix/runtests.c (struct a_test): Make data field const char *.
5358
5359         * stdio-common/tst-sprintf2.c (main): Don't declere u, v and buf
5360         vars if not LDBL_MANT_DIG >= 106.
5361
5362         * stdio-common/Makefile (CFLAGS-vfwprintf.c): Add -Wno-unitialized.
5363
5364         * stdio-common/vfprintf.c (vfprintf): Cast first arugment to
5365         __find_specmb to avoid warning.
5366
5367         * rt/tst-mqueue1.c (do_one_test): Add casts to avoid warnings.
5368
5369         * debug/test-strcpy_chk.c (do_tests, do_random_tests): Add casts
5370         to avoid warnings.
5371
5372         * sysdeps/ieee754/ldbl-96/s_roundl.c (huge): Add L suffix to
5373         initializer.
5374
5375         * sysdeps/unix/clock_gettime.c (clock_gettime): Only define
5376         tv var when it will be actually used.
5377
5378         * sunrpc/rpc_cmsg.c (xdr_callmsg): Cast IXDR_PUT_* to void
5379         to avoid warnings.
5380
5381         * iconvdata/gbk.c (BODY): Make buf and cp char instead of unsigned
5382         char array resp. pointer.
5383         * iconvdata/iso-2022-kr.c (BODY): Make buf unsigned char instead of
5384         char array.
5385         * iconvdata/cns11643.h (cns11643_to_ucs4): Change first argument
5386         to const unsigned char **.
5387         (ucs4_to_cns11643): Change second argument to unsigned char *.
5388         * iconvdata/euc-tw.c (BODY): Change endp type to
5389         const unsigned char *.
5390         * iconvdata/iso-ir-165.h (ucs4_to_isoir165): Change second argument
5391         to unsigned char *.
5392         * iconvdata/ibm1008_420.c (LOOP_NEED_FLAGS): Don't define.
5393         * iconvdata/iso-2022-cn.c (BODY): Change buf to unsigned char array.
5394         * iconvdata/iso-2022-cn-ext.c (BODY): Change buf, tmpbuf, tmp
5395         types to unsigned char pointers/arrays instead of char.
5396         * iconvdata/jis0201.h (ucs4_to_jisx0201): Change second argument
5397         to unsigned char *.
5398         * iconvdata/jis0208.h (ucs4_to_jisx0208): Likewise.
5399         * iconvdata/jis0212.h: Include assert.h.
5400         (ucs4_to_jisx0212): Change second argument to unsigned char *.
5401         assert that if cp[0] is not '\0', cp[1] is not '\0' either instead
5402         of trying to handle that.
5403         * iconvdata/euc-kr.c (euckr_from_ucs4): Initialize also cp[1] to
5404         shut up a warning.
5405         * iconvdata/euc-jp-ms.c (from_ucs4_lat1, from_ucs4_greek,
5406         from_ucs4_cjk, from_ucs4_cjkcpt, from_ucs4_extra): Change type to
5407         two dimensional const unsigned char arrays.
5408         (BODY): Cast "" to (const unsigned char *) for assignment to cp.
5409         Initialize endp to inptr to shut up a warning.
5410
5411 2007-07-20  Jakub Jelinek  <jakub@redhat.com>
5412
5413         [BZ #4772]
5414         * time/strptime_l.c (__strptime_internal): Silently ignore
5415         strftime modifiers and field width in recursive calls.
5416
5417         * include/time.h (enum ptime_locale_status): Remove.
5418         (__strptime_internal): Remove decided and era_cnt arguments,
5419         add statep argument.
5420         * time/strptime_l.c (__strptime_internal): Remove decided
5421         and era_cnt arguments, add statep argument.  Don't recompute
5422         any fields in recursive calls, only update caller's tm
5423         and state, if recursive call fails, don't change tm nor
5424         any state.
5425         (get_alt_number): Adjust.
5426         (recursive): Adjust caller.
5427         (strptime): Likewise.
5428         * time/strptime.c (strptime): Likewise.
5429
5430 2007-07-19  Jakub Jelinek  <jakub@redhat.com>
5431
5432         * iconv/gconv_int.h (__GCONV_NULCONV): New internal only error code.
5433         * iconv/gconv_cache.c (__gconv_lookup_cache): Return __GCONV_NULCONV
5434         if from and to charsets are the same.
5435         * iconv/gconv_db.c (__gconv_find_transform): Likewise.
5436         * intl/dcigettext.c (_nl_find_msg): Return NULL even if __gconv_open
5437         returns __GCONV_NOCONV, but not for __GCONV_NULCONV.
5438
5439 2007-07-17  Jakub Jelinek  <jakub@redhat.com>
5440
5441         * wcsmbs/wchar.h: Only define wint_t if __need_wint_t.
5442         Don't define wint_t when __need_mbstate_t unless it
5443         is necessary.
5444         (__mbstate_t): Use __WINT_TYPE__ rather than wint_t
5445         in the typedef if possible.
5446         * wctype/wctype.h (wint_t): Define by including
5447         wchar.h with __need_wint_t instead of including stddef.h
5448         with __need_wint_t and as fallback definining it ourselves.
5449         * iconv/gconv.h (__need_wint_t): Define before including
5450         wchar.h.
5451         * sysdeps/gnu/_G_config.h: Don't include gconv.h if not _LIBC
5452         or _GLIBCPP_USE_WCHAR_T.
5453         (__need_wchar_t): Don't define
5454         if not _LIBC or _GLIBCPP_USE_WCHAR_T.
5455         (__need_wint_t): Don't define before including stddef.h,
5456         define before including wchar.h only if _LIBC or
5457         _GLIBCPP_USE_WCHAR_T.
5458         (_G_iconv_t): Don't define if not _LIBC or _GLIBCPP_USE_WCHAR_T.
5459         * sysdeps/mach/hurd/_G_config.h: Likewise.
5460         * sysdeps/generic/_G_config.h: Likewise.
5461         * libio/libio.h (__wunderflow, __wuflow, __woverflow): Only
5462         prototype if _LIBC or _GLIBCPP_USE_WCHAR_T.
5463         (_IO_getwc_unlocked, _IO_putwc_unlocked): Only define
5464         if _LIBC or _GLIBCPP_USE_WCHAR_T.
5465
5466 2007-07-28  Ulrich Drepper  <drepper@redhat.com>
5467
5468         * sysdeps/posix/posix_fallocate64.c: Undefine
5469         __posix_fallocate64_l64 before alias handling.
5470         * sysdeps/unix/sysv/linux/posix_fallocate.c: New file.
5471         * sysdeps/unix/sysv/linux/posix_fallocate64.c: New file.
5472         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c: New file.
5473         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate64.c: New file.
5474
5475         * io/tst-posix_fallocate.c: Include <fcntl.h>.
5476
5477 2007-07-23  Jakub Jelinek  <jakub@redhat.com>
5478
5479         * locale/programs/ld-collate.c (atwc): New variable.
5480         (add_to_tablewc): New toplevel function, moved from collate_output.
5481         (collate_output): Remove add_to_tablewc nested function.
5482
5483         * iconv/iconvconfig.c (hash_table, hash_size): New toplevel vars.
5484         (name_insert): New function.
5485         (write_output): Remove hash_table and hash_size vars and name_insert
5486         nested function.
5487
5488 2007-07-24  Roland McGrath  <roland@redhat.com>
5489
5490         * Makerules (install-others-programs-nosubdir): New target.
5491         (install-no-libc.a-nosubdir): Depend on it.
5492
5493         * iconv/Makefile (install-others-programs): Set this instead of
5494         install-others.
5495         * login/Makefile (install-others-programs): Likewise.
5496         * posix/Makefile (install-others-programs): Likewise.
5497
5498         * Makerules (install-no-libc.a-nosubdir): Clean up conditional
5499         dependencies.
5500
5501 2007-07-23  Ulrich Drepper  <drepper@redhat.com>
5502
5503         * io/Makefile (tests): Add tst-posix_fallocate.
5504         * io/tst-posix_fallocate.c: New file.
5505
5506         * sysdeps/unix/sysv/linux/kernel-features.h: Define
5507         __ASSUME_FALLOCATE.
5508
5509 2007-07-22  Roland McGrath  <roland@frob.com>
5510
5511         * hurd/getdport.c: Add missing copyright year update.
5512
5513         * sysdeps/mach/hurd/bits/fcntl.h [__USE_GNU] (O_CLOEXEC): New macro.
5514         * hurd/port2fd.c (_hurd_port2fd): Implement O_CLOEXEC.
5515
5516 2007-07-22  Ulrich Drepper  <drepper@redhat.com>
5517
5518         * login/utmp_file.c (setutent_file): Use O_CLOEXEC if possible.
5519
5520         * libio/fileops.c (_IO_new_file_fopen): Recognize 'e' flag and set
5521         O_CLOEXEC is needed.
5522         * nis/nss_compat/compat-grp.c: Use 'e' flag when opening file.
5523         Avoid additional fcntl to set O_CLOEXEC if not needed.
5524         * nis/nss_compat/compat-initgroups.c: Likewise.
5525         * nis/nss_compat/compat-pwd.c: Likewise.
5526         * nis/nss_compat/compat-spwd.c: Likewise.
5527
5528 2007-07-21  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5529
5530         [BZ #3665]
5531         * manual/errno.texi: Change ECANCELED value to 119.
5532
5533         [BZ #4610]
5534         * mach/lock-intern.h: Include <sys/cdefs.h>.
5535
5536         [BZ #4178]
5537         * sysdeps/mach/hurd/sigaction.c (__sigaction): Check ACT != NULL before
5538         reading A.
5539
5540         [BZ #4126]
5541         * sysdeps/mach/hurd/sigsuspend.c (sigsuspend_not_cancel): Define alias
5542         to __sigsuspend.
5543
5544         * sysdeps/mach/i386/sysdep.h: Include <dl-sysdep.h> and <tls.h>.
5545
5546 2006-06-13  Thomas Schwinge  <tschwinge@gnu.org>
5547
5548         * sysdeps/mach/hurd/tls.h: Change `ASSEMBLER' conditional to
5549         `__ASSEMBLER__'.
5550         * sysdeps/mach/hurd/i386/tls.h: Likewise.
5551
5552 2007-07-21  Ulrich Drepper  <drepper@redhat.com>
5553
5554         * nscd/nscd_helper.c (get_mapping): Use MSG_CMSG_CLOEXEC for
5555         descriptor received from nscd.
5556
5557         * sysdeps/unix/sysv/linux/bits/socket.h: Define MSG_CMSG_CLOEXEC.
5558
5559         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_CLOEXEC.
5560         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
5561         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
5562         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
5563         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
5564         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
5565
5566 2007-07-20  Jakub Jelinek  <jakub@redhat.com>
5567
5568         [BZ #4816]
5569         * manual/signal.texi (Non-atomic Example): Make memory var volatile.
5570
5571         [BZ #4813]
5572         * login/forkpty.c (forkpty): Close master and slave fds on
5573         fork failure.  Patch by
5574         Mikulas Patocka <mikulas@artax.karlin.mff.cuni.cz>.
5575
5576 2007-07-18  Jakub Jelinek  <jakub@redhat.com>
5577
5578         * include/features.h (__USE_ISOC95): New define.
5579         * wcsmbs/wchar.h (fwprintf, fwscanf, wprintf, wscanf, swprintf,
5580         swscanf, vfwprintf, vwprintf, vswprintf, fwide): Define even
5581         for -std=iso9899:199409.
5582         * CONFORMANCE: Remove comments about unsupported AMD1.
5583
5584 2007-07-17  Jakub Jelinek  <jakub@redhat.com>
5585
5586         * sysdeps/ia64/sched_cpucount.c: New file.
5587         * sysdeps/powerpc/sched_cpucount.c: New file.
5588
5589         * sysdeps/unix/sysv/linux/bits/sched.h (__sched_cpucount): Add
5590         __BEGIN_DECLS/__END_DECLS around the prototype.
5591         * bits/sched.h (__sched_cpucount): Likewise.  Make second argument
5592         pointer to const cpu_set_t.
5593
5594         * bits/types.h: Don't include stddef.h, don't define __need_size_t.
5595         * signal/signal.h <__USE_BSD || __USE_XOPEN_EXTENDED>: Define
5596         __need_size_t and include stddef.h.
5597         * sysvipc/sys/msg.h: Likewise.
5598         * posix/sched.h: Likewise.
5599         * hurd/hurd/signal.h (__need_size_t): Define.
5600
5601         * CONFORMANCE: ctype.h and wctype.h no longer define size_t,
5602         neither does signal.h in pedantic ISO C namespaces.  stdio.h
5603         no longer defines wint_t or wchar_t.
5604
5605         * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): New function.
5606         * debug/vfwprintf_chk.c (__vfwprintf_chk): Use
5607         _IO_acquire_lock_clear_flags2 instead of _IO_acquire_lock.
5608         * debug/vprintf_chk.c (__vprintf_chk): Likewise.
5609         * debug/vwprintf_chk.c (__vwprintf_chk): Likewise.
5610         * debug/vfprintf_chk.c (__vfprintf_chk): Likewise.
5611         * debug/fwprintf_chk.c (__fwprintf_chk): Likewise.
5612         * debug/printf_chk.c (__printf_chk): Likewise.
5613         * debug/fprintf_chk.c (__fprintf_chk): Likewise.
5614         * debug/wprintf_chk.c (__wprintf_chk): Likewise.
5615
5616         * sysdeps/pthread/bits/stdio-lock.h (_IO_acquire_lock_clear_flags2):
5617         Define.
5618
5619         * bits/confname.h (_CS_POSIX_V6_WIDTH_RESTRICTED_ENVS): Define.
5620         * posix/getconf.c (vars): Add POSIX_V6_WIDTH_RESTRICTED_ENVS.
5621
5622 2007-07-16  Jakub Jelinek  <jakub@redhat.com>
5623
5624         [BZ #4792]
5625         * stdlib/stdlib.h (realloc): Remove __attribute_malloc__.
5626         * malloc/malloc.h (realloc): Likewise.
5627
5628         * libio/iopopen.c (_IO_new_proc_open): Don't close child_std_end
5629         if one of proc_file_chain streams has that fileno.
5630         * stdio-common/Makefile (tests): Add tst-popen2.
5631         * stdio-common/tst-popen2.c: New test.
5632
5633 2007-07-14  Jakub Jelinek  <jakub@redhat.com>
5634
5635         * elf/ldconfig.c: Allow GPLv2 or any later version.
5636         * elf/readlib.c: Likewise.
5637         * elf/chroot_canon.c: Likewise.
5638         * elf/cache.c: Likewise.
5639         * nscd/mem.c: Likewise.
5640         * nscd/getpwuid_r.c: Likewise.
5641         * nscd/grpcache.c: Likewise.
5642         * nscd/aicache.c: Likewise.
5643         * nscd/getsrvbynm_r.c: Likewise.
5644         * nscd/nscd.c: Likewise.
5645         * nscd/servicescache.c: Likewise.
5646         * nscd/getsrvbypt_r.c: Likewise.
5647         * nscd/initgrcache.c: Likewise.
5648         * nscd/gethstbyad_r.c: Likewise.
5649         * nscd/gethstbynm2_r.c: Likewise.
5650         * nscd/getgrnam_r.c: Likewise.
5651         * nscd/nscd_setup_thread.c: Likewise.
5652         * nscd/getpwnam_r.c: Likewise.
5653         * nscd/gai.c: Likewise.
5654         * nscd/connections.c: Likewise.
5655         * nscd/dbg_log.c: Likewise.
5656         * nscd/cache.c: Likewise.
5657         * nscd/hstcache.c: Likewise.
5658         * nscd/nscd_conf.c: Likewise.
5659         * nscd/getgrgid_r.c: Likewise.
5660         * nscd/pwdcache.c: Likewise.
5661         * catgets/gencat.c: Likewise.
5662         * locale/programs/linereader.h: Likewise.
5663         * locale/programs/locarchive.c: Likewise.
5664         * locale/programs/ld-paper.c: Likewise.
5665         * locale/programs/locfile-kw.h: Likewise.
5666         * locale/programs/ld-address.c: Likewise.
5667         * locale/programs/xmalloc.c: Likewise.
5668         * locale/programs/ld-time.c: Likewise.
5669         * locale/programs/localedef.c: Likewise.
5670         * locale/programs/simple-hash.c: Likewise.
5671         * locale/programs/xstrdup.c: Likewise.
5672         * locale/programs/ld-numeric.c: Likewise.
5673         * locale/programs/locfile-kw.gperf: Likewise.
5674         * locale/programs/ld-collate.c: Likewise.
5675         * locale/programs/charmap-kw.gperf: Likewise.
5676         * locale/programs/charmap.h: Likewise.
5677         * locale/programs/charmap-kw.h: Likewise.
5678         * locale/programs/config.h: Likewise.
5679         * locale/programs/locfile.c: Likewise.
5680         * locale/programs/ld-ctype.c: Likewise.
5681         * locale/programs/charmap.c: Likewise.
5682         * locale/programs/ld-messages.c: Likewise.
5683         * locale/programs/repertoire.h: Likewise.
5684         * locale/programs/locale.c: Likewise.
5685         * locale/programs/ld-name.c: Likewise.
5686         * locale/programs/linereader.c: Likewise.
5687         * locale/programs/locfile.h: Likewise.
5688         * locale/programs/3level.h: Likewise.
5689         * locale/programs/ld-monetary.c: Likewise.
5690         * locale/programs/ld-measurement.c: Likewise.
5691         * locale/programs/charmap-dir.c: Likewise.
5692         * locale/programs/ld-identification.c: Likewise.
5693         * locale/programs/localedef.h: Likewise.
5694         * locale/programs/charmap-dir.h: Likewise.
5695         * locale/programs/repertoire.c: Likewise.
5696         * locale/programs/simple-hash.h: Likewise.
5697         * locale/programs/ld-telephone.c: Likewise.
5698         * locale/programs/locale-spec.c: Likewise.
5699         * locale/programs/locfile-token.h: Likewise.
5700         * posix/getconf.c: Likewise.
5701         * iconv/dummy-repertoire.c: Likewise.
5702         * iconv/iconv_charmap.c: Likewise.
5703         * iconv/iconvconfig.c: Likewise.
5704         * iconv/iconv_prog.c: Likewise.
5705         * malloc/memusagestat.c: Likewise.
5706         * sysdeps/unix/sysv/linux/nscd_setup_thread.c: Likewise.
5707
5708 2007-07-06  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
5709
5710         * sysdeps/sh/bsd-setjmp.S (setjmp): Use correct argument registers.
5711         * sysdeps/sh/bsd-_setjmp.S (_setjmp): Likewise.
5712         * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Do correct sanity
5713         check for the first argument.
5714
5715 2007-07-12  Jakub Jelinek  <jakub@redhat.com>
5716
5717         [BZ #4775]
5718         * math/tgmath.h (__tgmath_real_type_sub): Formatting.
5719         (__tgmath_real_type): Fix if expr is const int or other const
5720         qualified integral type.
5721         (__TGMATH_UNARY_REAL_ONLY): Rewritten to avoid using statement
5722         expressions and handle const qualified arguments.
5723         (__TGMATH_BINARY_FIRST_REAL_ONLY, __TGMATH_UNARY_REAL_IMAG,
5724         __TGMATH_UNARY_REAL_IMAG_RET_REAL): Likewise.
5725         (__TGMATH_UNARY_REAL_RET_ONLY): Rewritten to avoid using
5726         statement expressions.
5727         (__TGMATH_BINARY_REAL_ONLY, __TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY,
5728         __TGMATH_TERNARY_REAL_ONLY, __TGMATH_BINARY_REAL_IMAG): Likewise.
5729         (__TGMATH_UNARY_IMAG): Define.
5730         (conj, cproj): Use __TGMATH_UNARY_IMAG macro.
5731         * math/Makefile (tests): Add test-tgmath2.
5732         (CFLAGS-test-tgmath2.c): Add.
5733         * math/test-tgmath.c (fy, dy, ly, fz, dz, lz, count_cdouble,
5734         count_cfloat, count_cldouble): New variables.
5735         (NCCALLS): Define.
5736         (main): Check number of complex calls as well.
5737         (F(compile_test)): Add complex tests and tests with const qualified
5738         arguments.
5739         (y, z, ccount): Define.
5740         (F(cacos), F(casin), F(catan), F(ccos), F(csin), F(ctan), F(cacosh),
5741         F(casinh), F(catanh), F(ccosh), F(csinh), F(ctanh), F(cexp), F(clog),
5742         F(csqrt), F(cpow), F(cabs), F(carg), F(creal), F(cimag), F(conj),
5743         F(cproj)): New functions.
5744         * math/test-tgmath2.c: New test.
5745
5746 2007-07-11  Jakub Jelinek  <jakub@redhat.com>
5747
5748         [BZ #4776]
5749         * elf/dl-load.c (_dl_rtld_di_serinfo): Output / in LD_LIBRARY_PATH,
5750         RPATH etc. as "/" rather than "", don't segfault on empty paths,
5751         instead output ".".
5752         * dlfcn/Makefile (distribute): Add glreflib3.c.
5753         (module-names): Add glreflib3.
5754         ($(objpfx)tst-dlinfo.out): Depend on glreflib3.so rather than
5755         glreflib1.so.
5756         (LDFLAGS_glreflib3.so): New.
5757         * dlfcn/tst-dlinfo.c (do_test): Load glreflib3.so instead of
5758         glreflib1.so.
5759         * dlfcn/glreflib3.c: New file.
5760
5761         * intl/finddomain.c (_nl_find_domain): If _nl_explode_name
5762         returned -1, return NULL.
5763         * intl/explodename.c (_nl_explode_name): Return -1 if
5764         _nl_normalize_codeset failed.
5765
5766 2007-07-07  Steven Munroe  <sjmunroe@us.ibm.com>
5767
5768         * sysdeps/powerpc/powerpc32/power6/memset.S: Update comments.
5769         Specify .machine power6 to get ISA-V2.0 branch hints.  Unroll loops
5770         and avoid branch misspredicts for > 31 bytes memset case.
5771         * sysdeps/powerpc/powerpc64/power6/memset.S: Likewise.
5772         Remove toc ref to __cache_line_size.
5773
5774         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Specify .machine power4
5775         to get ISA-V2.0 branch hints.
5776         * sysdeps/powerpc/powerpc32/power4/memcpy.S: Likewise
5777         * sysdeps/powerpc/powerpc32/power4/memset.S: Likewise
5778         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
5779         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
5780         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
5781         * sysdeps/powerpc/powerpc64/power4/memset.S: Likewise.
5782         Remove toc ref to __cache_line_size.
5783
5784         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S:
5785         Include math_ldbl_opt.h.
5786
5787 2007-07-10  Ulrich Drepper  <drepper@redhat.com>
5788
5789         [BZ #4773]
5790         * time/strptime_l.c (__strptime_internal): Implement greedy
5791         matching of weekday and month names.
5792
5793 2007-07-09  Roland McGrath  <roland@redhat.com>
5794
5795         * elf/elf.h (NT_GNU_ABI_TAG): New macro.
5796         (ELF_NOTE_ABI): Use it.
5797         (NT_GNU_HWCAP, NT_GNU_BUILD_ID): New macros.
5798
5799 2007-07-09  Ulrich Drepper  <drepper@redhat.com>
5800
5801         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Add new entries.
5802         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
5803
5804 2007-07-07  Ulrich Drepper  <drepper@redhat.com>
5805
5806         [BZ #4745]
5807         * stdio-common/vfscanf.c (_IO_vfscanf): Add additional test for EOF
5808         in loop to look for conversion specifier to avoid testing of
5809         wrong errno value.
5810         * stdio-common/Makefile (tests): Add bug18, bug18a, bug19, bug19a.
5811         * stdio-common/bug18.c: New file.
5812         * stdio-common/bug18a.c: New file.
5813         * stdio-common/bug19.c: New file.
5814         * stdio-common/bug19a.c: New file.
5815
5816 2007-07-05  Mike Frysinger  <vapier@gentoo.org>
5817
5818         * Makeconfig ($(common-objpfx)gnu/lib-names.stmp): Use LC_ALL=C when
5819         running awk script.
5820
5821 2007-07-01  Jakub Jelinek  <jakub@redhat.com>
5822
5823         * elf/dl-sysdep.c (_dl_important_hwcaps): Add integer overflow check.
5824         * elf/dl-minimal.c (__libc_memalign): Likewise.  Handle malloc (0).
5825         Return NULL if mmap failed instead of asserting it does not.
5826         (calloc): Check for integer overflow.
5827
5828         * elf/dl-minimal.c (__strtoul_internal): Fix parsing of numbers bigger
5829         than LONG_MAX / 10.
5830
5831 2007-07-03  Jakub Jelinek  <jakub@redhat.com>
5832
5833         [BZ #4702]
5834         * nis/nss-default.c: Include errno.h.
5835         (init): Preserve errno.
5836
5837 2007-07-02  Ulrich Drepper  <drepper@redhat.com>
5838
5839         * sysdeps/unix/sysv/linux/bits/socket.h (PF_UNIX): Update comment.
5840
5841 2007-06-30  Ulrich Drepper  <drepper@redhat.com>
5842
5843         * sysdeps/unix/sysv/linux/bits/socket.h: Add PF_RXRPC and AF_RXRPC.
5844
5845 2007-06-29  Martin Schwidefsky  <schwidefsky@de.ibm.com>
5846
5847         * sysdeps/unix/sysv/linux/bits/socket.h: Add PF_IUCV and AF_IUCV.
5848
5849 2007-06-29  Martin Schwidefsky  <schwidefsky@de.ibm.com>
5850
5851         * sysdeps/s390/dl-procinfo.c: New file.
5852         * sysdeps/s390/dl-procinfo.h: New file.
5853         * sysdeps/unix/sysv/linux/s390/dl-procinfo.h: New file.
5854
5855 2007-06-29  Jakub Jelinek  <jakub@redhat.com>
5856
5857         * elf/dl-load.c (open_verify): Find .note.ABI-tag notes even
5858         in PT_NOTE segments with multiple notes.
5859         * elf/readelflib.c (process_elf_file): Likewise.
5860
5861 2007-06-22  Ulrich Drepper  <drepper@redhat.com>
5862
5863         * nis/nis_domain_of.c (__nis_domain_of): Make the code a bit more
5864         ISO C compliant.
5865
5866 2007-06-19  Ulrich Drepper  <drepper@redhat.com>
5867
5868         * elf/dl-close.c (free_mem): Free _dl_scope_free_list.
5869
5870 2007-06-13  Jakub Jelinek  <jakub@redhat.com>
5871
5872         * include/link.h: Don't include rtld-lowlevel.h.
5873         (struct link_map): Remove l_scope_lock.
5874         * sysdeps/generic/ldsodefs.h: Don't include rtld-lowlevel.h.
5875         (_dl_scope_free_list): New field (variable) in _rtld_global.
5876         (DL_LOOKUP_SCOPE_LOCK): Remove.
5877         (_dl_scope_free): New prototype.
5878         * elf/dl-runtime.c (_dl_fixup): Don't use __rtld_mrlock_*lock.
5879         Don't pass DL_LOOKUP_SCOPE_LOCK to _dl_lookup_symbol_x.
5880         (_dl_profile_fixup): Likewise.
5881         * elf/dl-sym.c (do_sym): Likewise.  Use wrapped _dl_lookup_symbol_x
5882         whenever !RTLD_SINGLE_THREAD_P, use THREAD_GSCOPE_SET_FLAG and
5883         THREAD_GSCOPE_RESET_FLAG around it.
5884         * elf/dl-close.c (_dl_close_worker): Don't use
5885         __rtld_mrlock_{change,done}.  Call _dl_scope_free on the old
5886         scope.  Make sure THREAD_GSCOPE_WAIT () happens if any old
5887         scopes were queued or if l_scope_mem has been abandoned.
5888         * elf/dl-open.c (_dl_scope_free): New function.
5889         (dl_open_worker): Use it.  Don't use __rtld_mrlock_{change,done}.
5890         * elf/dl-support.c (_dl_scope_free_list): New variable.
5891         * elf/dl-lookup.c (add_dependency): Remove flags argument.
5892         Remove DL_LOOKUP_SCOPE_LOCK handling.
5893         (_dl_lookup_symbol_x): Adjust caller.  Remove DL_LOOKUP_SCOPE_LOCK
5894         handling.
5895         * elf/dl-object.c (_dl_new_object): Don't use
5896         __rtld_mrlock_initialize.
5897
5898 2007-06-19  Ulrich Drepper  <drepper@redhat.com>
5899
5900         * sysdeps/generic/ldsodefs.h (rtld_global): Reorder some elements
5901         to fill in holes
5902         (rtld_global_ro): Likewise.
5903
5904 2007-06-18  Jakub Jelinek  <jakub@redhat.com>
5905
5906         * elf/dl-addr.c (_dl_addr): Skip PT_LOAD checking if l_contiguous.
5907         Move PT_LOAD checking to...
5908         (_dl_addr_inside_object): ... here, new function.
5909         * elf/dl-sym.c (do_sym): If not l_contiguous,
5910         call _dl_addr_inside_object.
5911         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise.
5912         * dlfcn/dlinfo.c (dlinfo_doit): Likewise.
5913         * elf/dl-open.c (dl_open_worker): Likewise.
5914         (_dl_addr_inside_object): New function if IS_IN_rtld.
5915         * elf/dl-load.c (_dl_map_object_from_fd): Set l_contiguous if no
5916         holes are present or are PROT_NONE protected.
5917         * include/link.h (struct link_map): Add l_contiguous field.
5918         * sysdeps/generic/ldsodefs.h (_dl_addr_inside_object): New prototype.
5919
5920 2007-06-18  Jakub Jelinek  <jakub@redhat.com>
5921             Tomas Janousek  <tjanouse@redhat.com>
5922             Ulrich Drepper  <drepper@redhat.com>
5923
5924         [BZ #4647]
5925         * resolv/res_send.c (send_dg): Remove socket_pf.  Use ipv6_unavail
5926         member in __res_state, only convaddr4to6 if nssocks[ns] is a PF_INET6
5927         socket.
5928         * resolv/resolv.h (__res_state): Add ipv6_unavail member.  Make
5929         unused member a bitmap.
5930         * resolv/res_init.c (__res_vinit): Reset ipv6_unavail if IPv6
5931         servers are configured.
5932
5933 2007-06-18  Jakub Jelinek  <jakub@redhat.com>
5934
5935         * elf/rtld.c (dl_main): Don't call init_tls more than once.
5936
5937 2007-06-17  Andreas Schwab  <schwab@suse.de>
5938
5939         * sysdeps/generic/initfini.c: Tell gcc about the nonstandard sections.
5940
5941 2007-06-16  Andreas Jaeger  <aj@suse.de>
5942
5943         [BZ #4125]
5944         * sysdeps/unix/sysv/linux/sys/ptrace.h
5945         (PTRACE_O_TRACESYSGOOD, PTRACE_O_TRACEFORK,
5946         PTRACE_O_TRACEVFORK, PTRACE_O_TRACECLONE, PTRACE_O_TRACEEXEC,
5947         PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT, PTRACE_O_MASK,
5948         PTRACE_EVENT_FORK, PTRACE_EVENT_VFORK, PTRACE_EVENT_CLONE,
5949         PTRACE_EVENT_EXEC, PTRACE_EVENT_VFORK_DONE, PTRACE_EVENT_EXIT):
5950         Define.
5951         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
5952         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
5953         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
5954         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
5955
5956 2007-06-16  Ulrich Drepper  <drepper@redhat.com>
5957
5958         [BZ #4599]
5959         * sysdeps/unix/sysv/linux/check_pf.c (make_request): When
5960         determining whether there are IPv4/IPv6 addresses, ignore loopback
5961         addresses.
5962
5963 2007-06-14 Uros Bizjak <ubizjak@gmail.com>
5964
5965         * soft-fp/soft-fp.h (CMPtype): Define to "int" if undefined.
5966         * soft-fp/eqdf2.c (__eqdf2): Use CMPtype instead of int
5967         as the return type.  Change type of "r" variable to CMPtype.
5968         * soft-fp/eqsf2.c (__eqsf2): Likewise.
5969         * soft-fp/eqtf2.c (__eqtf2): Likewise.
5970         * soft-fp/gedf2.c (__gedf2): Likewise.
5971         * soft-fp/gesf2.c (__gesf2): Likewise.
5972         * soft-fp/getf2.c (__getf2): Likewise.
5973         * soft-fp/ledf2.c (__ledf2): Likewise.
5974         * soft-fp/lesf2.c (__lesf2): Likewise.
5975         * soft-fp/letf2.c (__letf2): Likewise.
5976         * soft-fp/unorddf2 (__unorddf2): Likewise.
5977         * soft-fp/unordsf2 (__unordsf2): Likewise.
5978         * soft-fp/unordtf2 (__unordtf2): Likewise.
5979
5980 2007-06-09  Ulrich Drepper  <drepper@redhat.com>
5981
5982         * elf/do-lookup.h (do_lookup_x): Read r_nlist before r_list and
5983         make sure gcc doesn't mess around with this.
5984
5985 2007-06-08  Ulrich Drepper  <drepper@redhat.com>
5986
5987         * elf/dl-lookup.c (_dl_lookup_symbol_x): Remove use of r_nlist.
5988
5989 2007-06-08  Jakub Jelinek  <jakub@redhat.com>
5990
5991         * elf/dl-close.c (_dl_close_worker): Remove all to be removed
5992         libraries from the global scope at once and call THREAD_GSCOPE_WAIT
5993         at most once per _dl_close_worker.
5994
5995 2007-06-08  Ulrich Drepper  <drepper@redhat.com>
5996
5997         * sysdeps/unix/sysv/linux/bits/sched.h: Make second parameter of
5998         __sched_cpucount as const.
5999         * posix/sched_cpucount.c: Adjust.
6000
6001         * posix/sched_cpucount.c (__sched_cpucount): Allow using special
6002         instruction for counting bits.
6003         * sysdeps/x86_64/sched_cpucount.c: New file.
6004
6005 2007-06-07  Ulrich Drepper  <drepper@redhat.com>
6006
6007         * configure.in: Avoid variable named BASH.
6008         * config.make.in: Likewise.
6009         Patch in part by Mike Frysinger.
6010
6011 2007-06-06  Jakub Jelinek  <jakub@redhat.com>
6012
6013         [BZ #4586]
6014         * sysdeps/i386/ldbl2mpn.c (__mpn_extract_long_double): Treat
6015         pseudo-zeros as zero.
6016         * sysdeps/x86_64/ldbl2mpn.c: New file.
6017         * sysdeps/ia64/ldbl2mpn.c: New file.
6018
6019 2007-06-04  Jakub Jelinek  <jakub@redhat.com>
6020
6021         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (nextafterl): Remove
6022         unused ily variable.  Fix nextafterl on +-__LDBL_MAX__ and +-Inf.
6023         Remove unreachable code at the end.
6024
6025 2007-06-01  Steven Munroe  <sjmunroe@us.ibm.com>
6026
6027         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Correct description of
6028         ldbl-128ibm in comment.
6029         (fpclassifyl): Correct classification of denormals.
6030         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (nextafterl): Correct
6031         return value for MIN denormal. Rewrite using long double math too
6032         correctly handle denormals and canonicalize the results.
6033
6034 2007-06-05  Jakub Jelinek  <jakub@redhat.com>
6035
6036         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c
6037         (__mpn_construct_long_double): Fix conversion where result ought
6038         to be smaller than __LDBL_MIN__, or the low double should be
6039         denormal.  Fix decision where to negate low double - honor round
6040         to even rules.
6041         * stdio-common/tst-sprintf2.c: Include string.h.
6042         (COMPARE_LDBL): Define.
6043         (TEST): Also test whether a string hexadecimal float representation
6044         can be parsed back to the number.
6045         (main): Add a couple of further tests.
6046
6047 2007-06-04  Jakub Jelinek  <jakub@redhat.com>
6048
6049         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c
6050         (PRINT_FPHEX_LONG_DOUBLE): Fix printing numbers where lower double
6051         is non-zero, but smaller than 2 * __DBL_MIN__.
6052         * stdio-common/tst-sprintf2.c: New test.
6053         * stdio-common/Makefile (tests): Add tst-sprintf2.
6054
6055         * math/test-misc.c (main): Don't run last batch of tests with
6056         IBM long double format.
6057
6058 2007-05-31  Steven Munroe  <sjmunroe@us.ibm.com>
6059
6060         * sysdeps/powerpc/powerpc32/970/fpu/Implies: New file.
6061         * sysdeps/powerpc/powerpc32/power5/fpu/Implies: New file.
6062         * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: New file.
6063         * sysdeps/powerpc/powerpc32/power6/fpu/Implies: New file.
6064         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: New file.
6065         * sysdeps/powerpc/powerpc64/970/fpu/Implies: New file.
6066         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: New file.
6067         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: New file.
6068         * sysdeps/powerpc/powerpc64/power6/fpu/Implies: New file.
6069         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: New file.
6070         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: New file.
6071         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies:
6072         New file.
6073         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies:
6074         New file.
6075         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies:
6076         New file.
6077         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies:
6078         New file.
6079         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies:
6080         New file.
6081         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: New file.
6082         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies:
6083         New file.
6084         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies:
6085         New file.
6086         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies:
6087         New file.
6088         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies:
6089         New file.
6090         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies:
6091         New file.
6092
6093 2007-05-31  Steven Munroe  <sjmunroe@us.ibm.com>
6094
6095         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S: Move.
6096         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: To here.
6097         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrintf.S: Move.
6098         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: To here.
6099         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llround.S: Move.
6100         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: To here.
6101         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llroundf.S: Move.
6102         * sysdeps/powerpc/powerpc32/power4/fpu/s_llroundf.S: To here.
6103
6104 2007-05-22  Steven Munroe  <sjmunroe@us.ibm.com>
6105
6106         * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S
6107         (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
6108         * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S
6109         (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
6110         * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S
6111         (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
6112         * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S
6113         (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
6114
6115 2007-05-21  Steven Munroe  <sjmunroe@us.ibm.com>
6116
6117         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: New file.
6118         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.c: New file.
6119         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: New file.
6120         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: New file.
6121
6122 2007-03-15  Steven Munroe  <sjmunroe@us.ibm.com>
6123
6124         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S
6125         [LONG_DOUBLE_COMPAT]: Add compat_symbol for llrintl@@GLIBC_2_1.
6126
6127 2006-02-13  Steven Munroe  <sjmunroe@us.ibm.com>
6128
6129         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: New File
6130         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: New File
6131         * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: New File
6132         * sysdeps/powerpc/powerpc32/power6/fpu/s_llroundf.S: New File
6133
6134 2006-10-20  Steven Munroe  <sjmunroe@us.ibm.com>
6135
6136         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: New file.
6137         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: New file.
6138
6139 2006-10-03  Steven Munroe  <sjmunroe@us.ibm.com>
6140
6141         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llround.S: New file.
6142         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llroundf.S: New file.
6143
6144         * sysdeps/powerpc/powerpc32/powerpc64/fpu/Makefile: Moved.
6145         * sysdeps/powerpc/powerpc32/powerpc64/fpu/mpa.c: Likewise.
6146         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile: To here.
6147         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
6148
6149 2006-09-29  Steven Munroe  <sjmunroe@us.ibm.com>
6150
6151         * sysdeps/powerpc/powerpc32/power6x/fpu/s_lrint.S: New file.
6152         * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: New file.
6153         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: New file.
6154         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: New file.
6155
6156 2006-09-28  Steven Munroe  <sjmunroe@us.ibm.com>
6157
6158         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: New file.
6159         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llroundf.S: New file.
6160         * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: New file.
6161         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: New file.
6162         * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: New file.
6163         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: New file.
6164
6165 2006-08-31  Steven Munroe  <sjmunroe@us.ibm.com>
6166
6167         * sysdeps/powerpc/powerpc32/powerpc64/fpu/Makefile: New file.
6168         * sysdeps/powerpc/powerpc32/powerpc64/fpu/mpa.c: New file.
6169         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile: New file.
6170         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: New file.
6171
6172 2006-06-15  Steven Munroe  <sjmunroe@us.ibm.com>
6173
6174         * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceil.S: New file.
6175         * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceilf.S: New file.
6176         * sysdeps/powerpc/powerpc32/power5+/fpu/s_floor.S: New file.
6177         * sysdeps/powerpc/powerpc32/power5+/fpu/s_floorf.S: New file.
6178         * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S: New file.
6179         * sysdeps/powerpc/powerpc32/power5+/fpu/s_roundf.S: New file.
6180         * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S: New file.
6181         * sysdeps/powerpc/powerpc32/power5+/fpu/s_truncf.S: New file.
6182         * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceil.S: New file.
6183         * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceilf.S: New file.
6184         * sysdeps/powerpc/powerpc64/power5+/fpu/s_floor.S: New file.
6185         * sysdeps/powerpc/powerpc64/power5+/fpu/s_floorf.S: New file.
6186         * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S: New file.
6187         * sysdeps/powerpc/powerpc64/power5+/fpu/s_roundf.S: New file.
6188         * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S: New file.
6189         * sysdeps/powerpc/powerpc64/power5+/fpu/s_truncf.S: New file.
6190
6191 2006-03-20  Steven Munroe  <sjmunroe@us.ibm.com>
6192
6193         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S: New file.
6194         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrintf.S: New file.
6195
6196 2007-06-01  Steven Munroe  <sjmunroe@us.ibm.com>
6197
6198         * sysdeps/powerpc/powerpc32/power6/memset.S: New file.
6199         * sysdeps/powerpc/powerpc64/power6/memset.S: New file.
6200
6201 2007-05-31  Steven Munroe  <sjmunroe@us.ibm.com>
6202
6203         * sysdeps/powerpc/powerpc32/970/Implies: New file.
6204         * sysdeps/powerpc/powerpc32/power5/Implies: New file.
6205         * sysdeps/powerpc/powerpc32/power5+/Implies: New file.
6206         * sysdeps/powerpc/powerpc32/power6/Implies: New file.
6207         * sysdeps/powerpc/powerpc32/power6x/Implies: New file.
6208         * sysdeps/powerpc/powerpc64/970/Implies: New file.
6209         * sysdeps/powerpc/powerpc64/power5/Implies: New file.
6210         * sysdeps/powerpc/powerpc64/power5+/Implies: New file.
6211         * sysdeps/powerpc/powerpc64/power6/Implies: New file.
6212         * sysdeps/powerpc/powerpc64/power6x/Implies: New file.
6213
6214 2007-05-21  Steven Munroe  <sjmunroe@us.ibm.com>
6215
6216         * sysdeps/powerpc/powerpc32/power4/memset.S: New file
6217
6218 2007-03-13  Steven Munroe  <sjmunroe@us.ibm.com>
6219
6220         * sysdeps/powerpc/powerpc64/memcpy.S: Improve aligned loop to minimize
6221         branch miss-predicts. Ensure that cache line crossing does not impact
6222         dispatch grouping.
6223
6224 2006-12-13  Steven Munroe  <sjmunroe@us.ibm.com>
6225
6226         * sysdeps/powerpc/powerpc64/power4/memcopy.h: Replace with include
6227         "../../powerpc32/power4/memcopy.h".
6228         * sysdeps/powerpc/powerpc64/power4/wordcopy.c: Replace with include
6229         "../../powerpc32/power4/wordcopy.c".
6230
6231 2006-10-03  Steven Munroe  <sjmunroe@us.ibm.com>
6232
6233         * sysdeps/powerpc/powerpc32/powerpc64/Makefile: Moved.
6234         * sysdeps/powerpc/powerpc32/powerpc64/memcopy.h: Likewise.
6235         * sysdeps/powerpc/powerpc32/powerpc64/wordcopy.c: Likewise.
6236         * sysdeps/powerpc/powerpc32/power4/Makefile: To here.
6237         * sysdeps/powerpc/powerpc32/power4/memcopy.h: Likewise.
6238         * sysdeps/powerpc/powerpc32/power4/wordcopy.c: Likewise.
6239
6240 2006-09-10  Steven Munroe  <sjmunroe@us.ibm.com>
6241
6242         * sysdeps/powerpc/powerpc32/power6/memcpy.S: New file.
6243
6244 2006-08-31  Steven Munroe  <sjmunroe@us.ibm.com>
6245
6246         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: New file.
6247         * sysdeps/powerpc/powerpc32/powerpc64/Makefile: New file.
6248         * sysdeps/powerpc/powerpc32/powerpc64/memcopy.h: New file.
6249         * sysdeps/powerpc/powerpc32/powerpc64/wordcopy.c: New file.
6250         * sysdeps/powerpc/powerpc64/power4/Makefile: New file.
6251         * sysdeps/powerpc/powerpc64/power4/memcopy.h: New file.
6252         * sysdeps/powerpc/powerpc64/power4/wordcopy.c: New file.
6253         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: New file.
6254
6255 2006-07-06  Steven Munroe  <sjmunroe@us.ibm.com>
6256
6257         * sysdeps/powerpc/powerpc64/power6/memcpy.S: New file.
6258
6259 2006-03-20  Steven Munroe  <sjmunroe@us.ibm.com>
6260
6261         * sysdeps/powerpc/powerpc32/power4/memcmp.S: New file.
6262         * sysdeps/powerpc/powerpc32/power4/memcpy.S: New file.
6263         * sysdeps/powerpc/powerpc32/power4/memset.S: New file.
6264         * sysdeps/powerpc/powerpc32/power4/strncmp.S: New file.
6265         * sysdeps/powerpc/powerpc64/power4/memcmp.S: New file.
6266         * sysdeps/powerpc/powerpc64/power4/memcpy.S: New file.
6267         * sysdeps/powerpc/powerpc64/power4/strncmp.S: New file.
6268
6269 2007-05-29  Roland McGrath  <roland@redhat.com>
6270
6271         * po/Makefile (po-sed-cmd): New variable.
6272         (libc.pot.files): Move sed command text in there, avoid \ inside ''.
6273
6274 2007-05-29  Ulrich Drepper  <drepper@redhat.com>
6275
6276         * crypt/md5-crypt.c: Fix comment.
6277
6278         * nscd/nscd_helper.c (get_mapping): Handle short replies instead
6279         of crashing.  When this is the case or if the reply is malformed,
6280         don't try to close the new file descriptor since it does not
6281         exist.
6282         Patch in part by Guillaume Chazarain <guichaz@yahoo.fr>.
6283
6284 2007-05-28  Jakub Jelinek  <jakub@redhat.com>
6285
6286         * sysdeps/unix/sysv/linux/futimes.c (miss_utimensat): Don't define
6287         if __NR_utimensat is not defined.
6288
6289 2007-05-26  Ulrich Drepper  <drepper@redhat.com>
6290
6291         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Include <sysdep.h>.
6292
6293 2007-05-25  Jakub Jelinek  <jakub@redhat.com>
6294
6295         * io/bits/fcntl2.h (__open_2): Add nonnull attribute.
6296         (open): Fix comment typos.  Don't call __open_2 if flags
6297         is a compile time constant without O_CREAT.
6298         (__open64_2): Add nonnull attribute.
6299         (open64): Fix comment typos.  Don't call __open64_2 if flags
6300         is a compile time constant without O_CREAT.
6301         (__openat_2): Add nonnull attribute, fix nonnull attribute
6302         on redirect.
6303         (openat): Fix comment typos.  Don't call __openat_2 if flags
6304         is a compile time constant without O_CREAT.
6305         (__openat64_2): Add nonnull attribute, fix nonnull attribute
6306         on redirect.
6307         (openat64): Fix comment typos.  Don't call __openat64_2 if flags
6308         is a compile time constant without O_CREAT.
6309
6310 2007-05-24  Ulrich Drepper  <drepper@redhat.com>
6311
6312         * Makerules (sysd-rules): Define PTW for ptw-* files.
6313         * Versions: Define GLIBC_2.7 for libc.
6314         * include/stdio.h: Declare __fortify_fail.
6315         * debug/fortify_fail.c: New file.
6316         * debug/Makefile (routines): Add fortify_fail.
6317         * debug/chk_fail.c: Use __fortify_fail.
6318         * debug/stack_chk_fail.c: Likewise.
6319         * io/Versions: Export __open_2, __open64_2, __openat_2, and
6320         __openat64_2 for GLIBC_2.7.
6321         * io/fcntl.h: When compiling with fortification, include bits/fcntl2.h.
6322         * io/open.c: Define *_2 variant of function which checks for O_CREAT
6323         and fails if necessary.
6324         * io/open64.c: Likewise.
6325         * io/openat.c: Likewise.
6326         * io/openat64.c: Likewise.
6327         * sysdeps/unix/sysv/linux/open64.c: Likewise.
6328         * sysdeps/unix/sysv/linux/openat.c: Likewise.
6329         * sysdeps/unix/sysv/linux/openat64.c: Likewise.
6330         * io/bits/fcntl2.h: New file.
6331         * include/fcntl.h: Declare __open_2, __open64_2, __openat_2, and
6332         __openat64_2.
6333         * include/bits/fcntl2.h: New file.
6334         * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
6335         Add open_2.
6336         * sysdeps/unix/sysv/linux/open_2.c: New file.
6337
6338 2007-05-21  Ulrich Drepper  <drepper@redhat.com>
6339
6340         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Pass correct value
6341         as second parameter to handle_intel.
6342
6343         * nscd/aicache.c (addhstaiX): If reported TTL is zero don't cache
6344         the entry.
6345
6346         * sysdeps/unix/sysv/linux/x86_64/sysconf.c: Move cache information
6347         handling to ...
6348         * sysdeps/x86_64/cacheinfo.c: ... here.  New file.
6349         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
6350         cacheinfo.
6351         * sysdeps/x86_64/memcpy.S: Complete rewrite.
6352         * sysdeps/x86_64/mempcpy.S: Adjust appropriately.
6353         Patch by Evandro Menezes <evandro.menezes@amd.com>.
6354
6355         * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: New file.
6356
6357 2007-05-21  Jakub Jelinek  <jakub@redhat.com>
6358
6359         [BZ #4525]
6360         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add epoll_pwait.
6361         * sysdeps/unix/sysv/linux/epoll_pwait.c: New file.
6362         * sysdeps/unix/sysv/linux/syscalls.list (epoll_pwait): Remove.
6363
6364         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h (epoll_pwait): Declare.
6365
6366         [BZ #4514]
6367         * stdio-common/vfprintf.c (vfprintf): Don't shadow workstart variable,
6368         reinitialize workend at the start of each do_positional format spec
6369         loop, free workstart before do_positional loops.
6370         (printf_unknown): Fix size of work_buffer.
6371         * stdio-common/tst-sprintf.c (main): Add 3 new testcases.
6372
6373         * malloc/hooks.c (MALLOC_STATE_VERSION): Bump.
6374         (public_sET_STATe): If ms->version < 3, put all chunks into
6375         unsorted chunks and clear {fd,bk}_nextsize fields of largebin
6376         chunks.
6377
6378         * malloc/malloc.c [MALLOC_DEBUG]: Revert 2007-05-13 changes.
6379         * malloc/hooks.c: Likewise.
6380         * malloc/arena.c: Likewise.
6381         * malloc/malloc.c (do_check_malloc_state): Don't assert
6382         n_mmaps is not greater than n_mmaps_max.  This removes the need
6383         for the previous change.
6384
6385         * malloc/Makefile (CFLAGS-malloc.c): Revert accidental
6386         2007-05-07 commit.
6387
6388 2007-05-19  Ulrich Drepper  <drepper@redhat.com>
6389
6390         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PRIVATE_FUTEX):
6391         Define for kernel >= 2.6.22.
6392
6393 2007-05-18  Ulrich Drepper  <drepper@redhat.com>
6394
6395         * elf/dl-close.c (_dl_close_worker): When removing object from
6396         global scope, wait for all lookups to finish afterwards.
6397         * elf/dl-open.c (add_to_global): When global scope array must
6398         grow, allocate a new one and free old array only after all
6399         lookups finish.
6400         * elf/dl-runtime.c (_dl_fixup): Protect using global scope.
6401         (_dl_lookup_symbol_x): Likewise.
6402         * elf/dl-support.c: Define _dl_wait_lookup_done.
6403         * sysdeps/generic/ldsodefs.h (struct rtld_global): Add
6404         _dl_wait_lookup_done.
6405
6406         * malloc/malloc.c (do_check_chunk): Correct check for mmaped block
6407         not overlapping with arena.
6408
6409         * malloc/mcheck.c (reallochook): If size==0, free the block.
6410
6411         * rt/tst-shm.c: Use fstat64 instead of fstat.
6412
6413         * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Fix case where
6414         __NR_sync_file_range is not defined.
6415
6416 2007-05-17  Ulrich Drepper  <drepper@redhat.com>
6417
6418         Dummy files to prevent stub versions from being used.
6419         * sysdeps/x86_64/fpu/k_cosl.c: New file.
6420         * sysdeps/x86_64/fpu/k_rem_pio2l.c: New file.
6421         * sysdeps/x86_64/fpu/k_sinl.c: New file.
6422         * sysdeps/x86_64/fpu/k_tanl.c: New file.
6423
6424         * version.h (VERSION): Set to 2.6.90.
6425
6426 2007-05-14  Ulrich Drepper  <drepper@redhat.com>
6427
6428         * version.h (VERSION): Define to 2.6.
6429         * include/features.h (__GLIBC_MINOR__): Define to 6.
6430
6431         * malloc/malloc.c: Use all small bin slots on 64-bit archs.
6432
6433         * malloc/malloc.c (largebin_index): Really have 32 buckets with 64
6434         sizes.
6435
6436 2007-05-13  Ulrich Drepper  <drepper@redhat.com>
6437
6438         * malloc/malloc.c [MALLOC_DEBUG]: Keep track of current maximum
6439         number of mmaps.  n_mmaps_max is the target.
6440         * malloc/hooks.c: Likewise.
6441         * malloc/arena.c: Likewise.
6442
6443 2007-05-12  Andreas Jaeger  <aj@suse.de>
6444
6445         * sysdeps/unix/sysv/linux/tst-getcpu.c: Include <unistd.h> for
6446         getpid.
6447
6448 2007-05-11  Ulrich Drepper  <drepper@redhat.com>
6449
6450         * elf/dl-close.c (_dl_close_worker): Help gcc to optimize by
6451         adding new variables.
6452
6453         * elf/dl-open.c (add_to_global): Introduce variable ns to help gcc
6454         optimize.  Completely extend global scope array before making the
6455         new entries visible.
6456
6457 2007-05-10  Ulrich Drepper  <drepper@redhat.com>
6458
6459         * sysdeps/unix/sysv/linux/tst-getcpu.c: New file.
6460         * sysdeps/unix/sysv/linux/Makefile [subdir=posix] (tests): Add
6461         tst-getcpu.
6462
6463         * include/link.h: Move l_version and l_nversion members around to
6464         fill gaps.
6465
6466         * scripts/check-c++-types.sh: Don't use -fnu89-inline option.
6467
6468         * sysdeps/unix/sysv/linux/sched_setaffinity.c
6469         (__sched_setaffinity_new): If syscall was successful and
6470         RESET_VGETCPU_CACHE is defined, use it before returning.
6471         * sysdeps/unix/sysv/linux/x86_64/sched_setaffinity.c: New file.
6472
6473         * io/sys/stat.h: Make sure struct timespec is defined for
6474         __USE_ATFILE.
6475
6476         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Define UTIME_NOW and
6477         UTIME_OMIT.
6478         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
6479         * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
6480         * sysdeps/unix/sysv/linux/alpha/bits/stat.h: Likewise.
6481         * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
6482         * sysdeps/unix/sysv/linux/bits/stat.h: Likewise.
6483         * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
6484         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_UTIMENSAT.
6485         * io/sys/stat.h: Declare utimensat, futimens.
6486         * io/utimensat.c: New file.
6487         * io/futimens.c: New file.
6488         * sysdeps/unix/sysv/linux/utimensat.c: New file.
6489         * sysdeps/unix/sysv/linux/futimens.c: New file.
6490         * io/Makefile (routines): Add utimensat, futimens.
6491         * io/Versions: Add utimensat, futimens to GLIBC_2.6.
6492         * sysdeps/unix/sysv/linux/lutimes.c: New file.
6493         * sysdeps/unix/sysv/linux/futimes.c: Use utimensat syscall if
6494         available.
6495
6496         * include/sys/cdefs.h: Redefine __nonnull so that test for
6497         incorrect parameters in the libc code itself are not omitted.
6498
6499 2007-05-09  Jakub Jelinek  <jakub@redhat.com>
6500
6501         * sysdeps/ia64/fpu/fraiseexcpt.c (feraiseexcept): Don't raise overflow
6502         exception in addition to inexact when asked to raise only FE_INEXACT.
6503
6504         [BZ #3427]
6505         * sysdeps/s390/fpu/feholdexcpt.c (feholdexcept): Don't clear exceptions
6506         in *envp.
6507
6508 2007-05-07  Ulrich Drepper  <drepper@redhat.com>
6509
6510         [BZ #4403]
6511         * string/strfry.c (strfry): Make result more random.
6512
6513 2007-05-07  Richard Henderson  <rth@redhat.com>
6514
6515         * sysdeps/alpha/fpu/bits/mathinline.h (__isnanl): Don't define
6516         if __NO_LONG_DOUBLE_MATH.
6517         * sysdeps/unix/sysv/linux/alpha/ioperm.c: If BWX insns not
6518         available in the compiler, add .arch directive to the assembly.
6519
6520 2007-05-07  Jakub Jelinek  <jakub@redhat.com>
6521
6522         * sysdeps/alpha/fpu/s_nearbyint.c (nearbyintl): Fix version on
6523         compat_symbol to GLIBC_2_1.
6524         * sysdeps/alpha/fpu/s_fmin.S (fminl): Likewise.
6525         * sysdeps/alpha/fpu/s_trunc.c (truncl): Likewise.
6526         * sysdeps/alpha/fpu/s_fmax.S (fmaxl): Likewise.
6527         * sysdeps/alpha/fpu/s_lrint.c (lrintl, llrintl): Likewise.
6528         * sysdeps/alpha/fpu/s_lround.c (lroundl, llroundl): Likewise.
6529         * sysdeps/alpha/fpu/s_round.c (roundl): Likewise.
6530         * sysdeps/alpha/fpu/s_isnan.c (isnanl): Provide compat_symbol in
6531         libc, not libm.
6532         (__isnanl): New compat_symbol.
6533
6534 2007-05-07  Ulrich Drepper  <drepper@redhat.com>
6535             Jakub Jelinek  <jakub@redhat.com>
6536
6537         * malloc/arena.c (heap_info): Add mprotect_size field, adjust pad.
6538         (new_heap): Initialize mprotect_size.
6539         (grow_heap): When growing, only mprotect from mprotect_size till
6540         new_size if mprotect_size is smaller.  When shrinking, use PROT_NONE
6541         MMAP for __libc_enable_secure only, otherwise use MADV_DONTNEED.
6542
6543 2007-04-30  Steven Munroe  <sjmunroe@us.ibm.com>
6544             Peter Bergner  <bergner@us.ibm.com>
6545
6546         * sysdeps/powerpc/bits/fenv.h: Declare __fe_mask_env extern.
6547         Define FE_NOMASK_ENV as FE_EANBLED_ENV.  Define FE_MASK_ENV.
6548         * sysdeps/powerpc/fpu/Makefile: Add fe_mask to libm-support.
6549         * sysdeps/powerpc/fpu/fe_mask.c: New file.
6550         * sysdeps/powerpc/fpu/fe_nomask.c: Correct comment.
6551         * sysdeps/powerpc/fpu/fedisblxcpt.c (fedisableexcept):
6552         Call __fe_mask_env() if all FP exceptions disabled.
6553         * sysdeps/powerpc/fpu/feholdexcpt.c (feholdexcept): Copy high 32-bits
6554         from old FPSCR to new fenv to propagate DFP rounding modes.
6555         Call __fe_mask_env() if FP exceptions previously enabled.
6556         * sysdeps/powerpc/fpu/fesetenv.c (fesetenv): Change mask to merge
6557         exceptions from env.  Use __fe_nomask_env() or __fe_mask_env() when
6558         transitioning from all exceptions disabled to any exception enabled
6559         or visa versa.
6560         * sysdeps/powerpc/fpu/feupdateenv.c (__feupdateenv): Change mask to
6561         merge exceptions from env.  Call __fe_nomask_env or __fe_mask_env
6562         when transitioning from all exceptions disabled to any exception
6563         enabled or visa versa.
6564         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fe_nomask.c: Moved to...
6565         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c: ...here.
6566         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c: Moved to...
6567         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c: ...here.
6568         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c: New file.
6569         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c: New file.
6570
6571 2007-05-06  Ulrich Drepper  <drepper@redhat.com>
6572
6573         [BZ #4465]
6574         * posix/unistd.h: Remove __THROW from fdatasync.
6575
6576 2007-05-06  Mike Frysinger  <vapier@gentoo.org>
6577
6578         [BZ #4465]
6579         * sysdeps/unix/sysv/linux/syscalls.list (fdatasync): Add "C" to args.
6580
6581 2007-05-06  Ulrich Drepper  <drepper@redhat.com>
6582
6583         * stdio-common/vfprintf.c (process_string_arg): Optimize
6584         ridiculous precision in wide char code printing multi-byte string.
6585         Reported by Jim Meyering <jim@meyering.net>.
6586
6587         [BZ #4131]
6588         * elf/dl-addr.c (_dl_addr): Compare address with actual segment
6589         boundaries to work around systems with overlapping binary loading.
6590         Based on a patch by Suzuki <suzuki@in.ibm.com>.
6591
6592 2007-05-04  Ulrich Drepper  <drepper@redhat.com>
6593
6594         * stdio-common/vfprintf.c (process_string_arg): Adjust call to
6595         __mbsnrtowcs after last change.
6596
6597         * locale/programs/linereader.c (get_symname): Fix adding final NUL.
6598         (get_ident): Likewise.
6599
6600 2007-05-03  Jakub Jelinek  <jakub@redhat.com>
6601
6602         * soft-fp/op-common.h (FP_TRUNC): Replace raising of FP_EX_INEXACT
6603         with setting the sticky bit.
6604         * math/test-misc.c (main): Add more truncation tests.
6605
6606 2007-04-14  Uros Bizjak  <ubizjak@gmail.com>
6607
6608         * soft-fp/floatunsidf.c (__floatunsidf): Use DFtype instead of
6609         double in the function declaration.
6610         * soft-fp/floatundidf.c (__floatundidf): Use DFtype instead of
6611         double in the function declaration.
6612         * soft-fp/floatunsisf.c (__floatunsisf): Use SFtype instead of
6613         float in the function declaration.
6614         * soft-fp/floatunsisf.c (__floatunsisf): Use SFtype instead of
6615         float in the function declaration.
6616
6617         * soft-fp/extended.h (FP_UNPACK_RAW_E): Do not increase X##_e for
6618         denormal operands.  Do not generate FP_EX_DENORM exception.
6619         (FP_UNPACK_RAW_EP): Ditto.
6620         (FP_UNPACK_SEMIRAW_E): Use FP_UNPACK_RAW_E instead of
6621         undefined _FP_UNPACK_RAW_E.
6622         (FP_UNPACK_SEMIRAW_EP): Use FP_UNPACK_RAW_EP instead of
6623         undefined _FP_UNPACK_RAW_EP.
6624         (FP_PACK_SEMIRAW_E): Use FP_PACK_RAW_E instead of
6625         undefined _FP_PACK_RAW_E.
6626         (FP_PACK_SEMIRAW_EP): Use FP_PACK_RAW_EP instead of
6627         undefined _FP_PACK_RAW_EP.
6628
6629         * soft-fp/op-2.h (_FP_FRAC_COPY_2_2): Define as alias to
6630         _FP_FRAC_COPY_2.
6631         * soft-fp/op-4.h (_FP_FRAC_COPY_2_2): Define as alias to
6632         _FP_FRAC_COPY_4.
6633
6634 2007-04-16  Uros Bizjak  <ubizjak@gmail.com>
6635             Jakub Jelinek  <jakub@redhat.com>
6636
6637         * soft-fp/op-common.h (FP_EXTEND): Do not abort when
6638         _FP_EXPBIAS_##dfs == _FP_EXPBIAS_##sfs.  Handle denormals for
6639         this case.
6640         * soft-fp/op-common.h (FP_TRUNC): Ditto.
6641
6642 2007-05-03  Jakub Jelinek  <jakub@redhat.com>
6643
6644         * math/test-misc.c (main): Add tests for rounding long double
6645         values close to smallest double denormalized value to double.
6646
6647 2007-04-30  Joseph Myers  <joseph@codesourcery.com>
6648
6649         * soft-fp/op-common.h (FP_TRUNC): Correct off-by-one error in
6650         condition for truncating to 0.  Set sticky bit for such
6651         truncation.
6652
6653 2007-05-02  Jakub Jelinek  <jakub@redhat.com>
6654
6655         * stdio-common/vfprintf.c (process_string_arg): Use a VLA rather than
6656         fixed length array for ignore.
6657
6658 2007-04-30  Ulrich Drepper  <drepper@redhat.com>
6659
6660         [BZ #4438]
6661         * stdio-common/vfprintf.c (process_string_arg): Don't overflow the
6662         stack for large precisions.
6663         * stdio-common/test-vfprintf.c (main): Add test for large
6664         precision.
6665
6666 2007-04-30  Jakub Jelinek  <jakub@redhat.com>
6667
6668         * stdio-common/printf_fp.c (___printf_fp): Don't print negative sign
6669         for exponent 0.
6670         * stdio-common/tfformat.c (sprint_doubles): Add a new test.
6671
6672         [BZ #4439]
6673         * resolv/inet_ntop.c (inet_ntop4): Take terminating '\0' into
6674         account in the size check.
6675         * resolv/tst-inet_ntop.c: New test.
6676         * resolv/Makefile (tests): Add tst-inet_ntop.
6677
6678 2007-04-30  Ulrich Drepper  <drepper@redhat.com>
6679             Jakub Jelinek  <jakub@redhat.com>
6680
6681         [BZ #4349]
6682         * malloc/malloc.c: Keep separate list for first blocks on the bin
6683         lists with a given size.  This helps skipping over list elements
6684         we know won't fit in two places.
6685         Inspired by a patch by Tomash Brechko <tomash.brechko@gmail.com>.
6686
6687 2007-04-28  Ulrich Drepper  <drepper@redhat.com>
6688
6689         [BZ #4102]
6690         * sysdeps/posix/getaddrinfo.c (default_labels): Assign separate
6691         label to Teredo tunnel addresses 2001://32.
6692
6693 2007-04-27  Ulrich Drepper  <drepper@redhat.com>
6694
6695         * locale/programs/ld-collate.c (collate_read): Allow order_start
6696         after copy.
6697
6698         * locale/programs/ld-collate.c (collate_read): Fix printing of
6699         error message.
6700
6701         [BZ #3213]
6702         * locale/C-translit.h.in: Add entry for U2044.
6703
6704         [BZ #4342]
6705         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Allow
6706         hexa-decimal floats without exponent.
6707         * stdio-common/tstscanf.c (main): Adjust Test 8 test for success.
6708
6709 2007-04-25  Ulrich Drepper  <drepper@redhat.com>
6710
6711         * sysdeps/unix/sysv/linux/bits/sched.h: Declare sched_getcpu.
6712         * sysdeps/unix/sysv/linux/sched_getcpu.c: New file.
6713         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: New file.
6714         * sysdeps/unix/sysv/linux/Versions: Export sched_getcpu for
6715         GLIBC_2.6.
6716         * sysdeps/unix/sysv/linux/Makefile [subdir=posix] (sysdep_routines):
6717         Add sched_getcpu.
6718
6719 2007-04-25  Jakub Jelinek  <jakub@redhat.com>
6720
6721         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Return -1 instead
6722         of 0 after the out_fail label.
6723
6724 2007-04-25  Ulrich Drepper  <drepper@redhat.com>
6725
6726         [BZ #4406]
6727         * iconv/gconv_charset.h (strip): Allow ':'.
6728         * iconv/iconv_open.c (iconv_open): Adjust comment.
6729
6730 2007-04-25  Jakub Jelinek  <jakub@redhat.com>
6731
6732         * libio/bits/stdio.h (fgetc_unlocked): Add extern inline optimized
6733         version.
6734
6735 2007-04-23  Jakub Jelinek  <jakub@redhat.com>
6736
6737         [BZ #4381]
6738         * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Ensure sufficient
6739         alignment of buffer and tmp_buffer.
6740         * nis/nss_nis/nis-hosts.c (internal_nis_gethostent_r,
6741         internal_gethostbyname2_r, _nss_nis_gethostbyaddr_r): Ensure sufficient
6742         alignment of buffer.
6743         * resolv/nss_dns/dns-hosts.c (getanswer_r): Likewise.  Handle buflen
6744         bigger than INT_MAX.
6745         * resolv/nss_dns/dns-network.c (getanswer_r): Likewise.  Add errnop and
6746         h_errnop arguments.  Fail if buflen is too small.
6747         (_nss_dns_getnetbyname_r, _nss_dns_getnetbyaddr_r): Adjust callers.
6748
6749 2007-04-23  Jakub Jelinek  <jakub@redhat.com>
6750
6751         [BZ #4405]
6752         * iconvdata/gconv-modules (E13B): Add a missing slash to the alias
6753         name.  Patch by Aurelien Jarno <aurelien@aurel32.net>.
6754
6755 2007-04-22  Roland McGrath  <roland@redhat.com>
6756
6757         * elf/elf.h (NT_PRXFPREG): New macro.
6758
6759 2007-04-19  Andreas Jaeger  <aj@suse.de>
6760
6761         [BZ #3905]
6762         * bits/in.h (IPV6_ROUTER_ALERT, IPV6_MTU_DISCOVER, IPV6_MTU,
6763         IPV6_RECVERR, IPV6_V6ONLY, IPV6_JOIN_ANYCAST, IPV6_LEAVE_ANYCAST):
6764         Added.
6765
6766 2007-04-19  Ulrich Drepper  <drepper@redhat.com>
6767
6768         * include/sys/mman.h: Mark madvise hidden.
6769         * misc/madvise.c: Add libc_hidden_def.
6770
6771 2007-04-06  Jakub Jelinek  <jakub@redhat.com>
6772
6773         * nis/nis_domain_of.c (__nis_domain_of): New function.
6774         * include/rpcsvc/nislib.h (__nis_domain_of): New prototype.
6775         * nis/nis_lookup.c (nis_lookup): Use __nis_domain_of.
6776         * nis/nis_call.c (rec_dirsearch): Likewise.
6777         (first_shoot): Likewise.  Remove search_parent_first argument.
6778         (struct nis_server_cache): Rename search_parent_first field
6779         to search_parent.
6780         (nis_server_cache_search, nis_server_cache_add): Rename
6781         search_parent_first argument to search_parent.
6782         (__nisfind_server): Likewise.  If search_parent, call
6783         __nis_domain_of.
6784
6785 2007-04-18  Ulrich Drepper  <drepper@redhat.com>
6786
6787         * sysdeps/posix/getaddrinfo.c: Remove commented-out code.
6788
6789 2007-04-17  Ulrich Drepper  <drepper@redhat.com>
6790
6791         [BZ #4368]
6792         * stdlib/stdlib.h: Remove obsolete part of comment for realpath.
6793
6794 2007-04-16  Ulrich Drepper  <drepper@redhat.com>
6795
6796         [BZ #4364]
6797         * posix/unistd.h (_XOPEN_VERSION): Define appropriately for SUSv3.
6798
6799 2007-04-15  Jakub Jelinek  <jakub@redhat.com>
6800
6801         * locale/programs/locarchive.c (INITIAL_NUM_NAMES,
6802         INITIAL_SIZE_STRINGS, INITIAL_NUM_LOCREC): Update to accomodate
6803         current number of locales in SUPPORTED.
6804         (create_archive): Initialize serial.
6805         (enlarge_archive): Preserve aliases rather than duplicating
6806         their locrecs.
6807
6808 2007-04-13  Jakub Jelinek  <jakub@redhat.com>
6809
6810         * libio/genops.c (_IO_default_finish): Call _IO_lock_fini
6811         after _IO_un_link, not before it.
6812
6813         * stdio-common/printf_fp.c (___printf_fp): Fix exponent -4
6814         special case handling when wcp == wstartp + 1.  Fix a comment typo.
6815         * stdio-common/tfformat.c (sprint_doubles): Add a new testcase.
6816
6817 2007-03-30  Jakub Jelinek  <jakub@redhat.com>
6818
6819         * libio/libio.h (__underflow, __uflow, __overflow, __wunderflow,
6820         __wuflow, __woverflow, _IO_getc, _IO_putc, _IO_peekc_locked, _IO_padn,
6821         _IO_sgetn, _IO_seekoff, _IO_seekpos, _IO_getwc, _IO_putwc, _IO_wpadn):
6822         Remove __THROW.
6823         * libio/fileops.c (new_do_write, _IO_file_xsgetn_mmap,
6824         _IO_file_xsgetn_maybe_mmap): Likewise.
6825         * libio/oldfileops.c (old_do_write): Likewise.
6826         * libio/libioP.h (_IO_switch_to_get_mode, _IO_switch_to_wget_mode,
6827         _IO_init_marker, _IO_init_wmarker, _IO_default_uflow,
6828         _IO_wdefault_uflow, _IO_default_setbuf, _IO_default_seekpos,
6829         _IO_do_write, _IO_new_do_write, _IO_old_do_write, _IO_wdo_write,
6830         _IO_flush_all_lockp, _IO_flush_all, _IO_cleanup,
6831         _IO_flush_all_linebuffered, _IO_new_fgetpos, _IO_old_fgetpos,
6832         _IO_new_fsetpos, _IO_old_fsetpos, _IO_new_fgetpos64,
6833         _IO_old_fgetpos64, _IO_new_fsetpos64, _IO_old_fsetpos64,
6834         _IO_file_setbuf, _IO_file_seekoff, _IO_file_xsputn, _IO_file_xsgetn,
6835         _IO_file_underflow, _IO_file_underflow_mmap,
6836         _IO_file_underflow_maybe_mmap, _IO_file_overflow, _IO_file_attach,
6837         _IO_file_open, _IO_file_fopen, _IO_file_write, _IO_file_read,
6838         _IO_file_sync, _IO_file_close_it, _IO_file_finish,
6839         _IO_new_file_attach, _IO_new_file_close_it, _IO_new_file_finish,
6840         _IO_new_file_fopen, _IO_new_file_setbuf, _IO_file_setbuf_mmap,
6841         _IO_new_file_sync, _IO_new_file_underflow, _IO_new_file_overflow,
6842         _IO_new_file_seekoff, _IO_new_file_write, _IO_new_file_xsputn,
6843         _IO_old_file_setbuf, _IO_old_file_seekoff, _IO_old_file_xsputn,
6844         _IO_old_file_underflow, _IO_old_file_overflow, _IO_old_file_attach,
6845         _IO_old_file_fopen, _IO_old_file_write, _IO_old_file_sync,
6846         _IO_old_file_close_it, _IO_old_file_finish, _IO_wfile_xsputn,
6847         _IO_wfile_setbuf, _IO_wfile_sync, _IO_wfile_underflow,
6848         _IO_wfile_overflow, _IO_wfile_seekoff, _IO_old_proc_open,
6849         _IO_old_proc_close, _IO_getdelim, _IO_flush_all_internal,
6850         _IO_adjust_column_internal, _IO_default_uflow_internal,
6851         _IO_default_xsgetn_internal, _IO_wdefault_xsputn_internal,
6852         _IO_wdefault_xsgetn_internal, _IO_wdefault_uflow_internal,
6853         _IO_file_setbuf_internal, _IO_file_seekoff_internal,
6854         _IO_file_xsputn_internal, _IO_file_xsgetn_internal,
6855         _IO_file_close_it_internal, _IO_file_underflow_internal,
6856         _IO_file_overflow_internal, _IO_file_attach_internal,
6857         _IO_file_fopen_internal, _IO_file_sync_internal,
6858         _IO_file_finish_internal, _IO_wfile_xsputn_internal,
6859         _IO_wfile_seekoff_internal, _IO_wfile_sync_internal,
6860         _IO_switch_to_wget_mode_internal, _IO_padn_internal,
6861         _IO_switch_to_get_mode_internal, _IO_seekoff_unlocked,
6862         _IO_seekpos_unlocked): Likewise.
6863         (_IO_strtod, _IO_dtoa, _IO_outfloat, _IO_read, _IO_write,
6864         _IO_lseek, _IO_close, _IO_fstat): Remove unused prototypes.
6865
6866 2007-04-16  Jakub Jelinek  <jakub@redhat.com>
6867
6868         * locale/programs/locarchive.c (show_archive_content): Fix sizeof
6869         argument in xmalloc size computation.
6870
6871 2007-04-01  Jakub Jelinek  <jakub@redhat.com>
6872
6873         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl): Use
6874         math_opt_barrier and math_force_eval macros.
6875
6876 2007-03-27  Jakub Jelinek  <jakub@redhat.com>
6877
6878         [BZ #3306]
6879         * math/math_private.h (math_opt_barrier, math_force_eval): Define.
6880         * sysdeps/i386/fpu/math_private.h: New file.
6881         * sysdeps/x86_64/fpu/math_private.h: New file.
6882         * math/s_nexttowardf.c (__nexttowardf): Use math_opt_barrier and
6883         math_force_eval macros.  Use "+m" constraint on asm rather than
6884         "=m" and "m".
6885         * math/s_nextafter.c (__nextafter): Likewise.
6886         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c (__nexttoward):
6887         Likewise.
6888         * sysdeps/ieee754/flt-32/s_nextafterf.c (__nextafterf): Likewise.
6889         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward): Likewise.
6890         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
6891         * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Use
6892         math_opt_barrier and math_force_eval macros.
6893         * sysdeps/ieee754/ldbl-128/s_nextafterl.c (__nextafterl): Likewise.
6894         * sysdeps/ieee754/ldbl-96/s_nextafterl.c (__nextafterl): Likewise.
6895         * sysdeps/i386/fpu/s_nexttoward.c: Include float.h.
6896         (__nexttoward): Use math_opt_barrier and
6897         math_force_eval macros.  Use "+m" constraint on asm rather than
6898         "=m" and "m".  Only use asm to force double result if
6899         FLT_EVAL_METHOD is 2.
6900         * sysdeps/i386/fpu/s_nexttowardf.c: Include float.h.
6901         (__nexttowardf): Use math_opt_barrier and
6902         math_force_eval macros.  Use "+m" constraint on asm rather than
6903         "=m" and "m".  Only use asm to force double result if
6904         FLT_EVAL_METHOD is not 0.
6905         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Include float.h.
6906         (__nexttowardf): Use math_opt_barrier and
6907         math_force_eval macros.  If FLT_EVAL_METHOD is not 0, force
6908         x to float using asm.
6909         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c: Include float.h.
6910         (__nldbl_nexttowardf): Use math_opt_barrier and
6911         math_force_eval macros.  If FLT_EVAL_METHOD is not 0, force
6912         x to float using asm.
6913         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Include float.h.
6914         (__nexttowardf): Use math_opt_barrier and math_force_eval
6915         macros.  If FLT_EVAL_METHOD is not 0, force x to float using asm.
6916         * math/bug-nextafter.c (zero, inf): New variables.
6917         (main): Add new tests.
6918         * math/bug-nexttoward.c (zero, inf): New variables.
6919         (main): Add new tests.
6920
6921 2007-03-22  Jakub Jelinek  <jakub@redhat.com>
6922
6923         [BZ #3427]
6924         * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Clear all
6925         exceptions both in SW and MXCSR.
6926         * sysdeps/x86_64/fpu/feupdateenv.c: New file.
6927         * sysdeps/x86_64/fpu/feenablxcpt.c (feenableexcept): Remove dead code.
6928         * sysdeps/x86_64/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
6929         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions
6930         in MXCSR if SSE is available.
6931         * sysdeps/i386/fpu/feupdateenv.c: Include unistd.h, dl-procinfo.h
6932         and ldsodefs.h.
6933         (__feupdateenv): Query exceptions also from MXCSR if SSE is available.
6934         Fix comment typo.
6935         * sysdeps/ia64/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions.
6936         Return 0 rather than 1.
6937         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Fix comment typo.
6938         Remove incorrect part of a comment.  Fix argument to feraiseexcept.
6939         * math/test-fenv.c (feholdexcept_tests): New function.
6940         (main): Call it.
6941
6942 2007-01-05  Richard B. Kreckel  <kreckel@ginac.de>
6943
6944         [BZ #3427]
6945         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions
6946         in SW.
6947
6948 2007-04-13  Jakub Jelinek  <jakub@redhat.com>
6949
6950         [BZ #4344]
6951         * elf/ldconfig.c (search_dir): Fix 2 off-by-2 errors.
6952         Reported by David Anderson <davea42@earthlink.net>.
6953
6954 2007-04-07  Ulrich Drepper  <drepper@redhat.com>
6955
6956         * posix/sys/wait.h: Remove unnecessary forward declaration.
6957
6958 2007-04-05  Jakub Jelinek  <jakub@redhat.com>
6959
6960         * nis/nis_call.c (__nisfind_server): Replace (*dir)->do_servers
6961         with obj->do_servers after first_shoot.
6962
6963 2007-04-03  Ulrich Drepper  <drepper@redhat.com>
6964
6965         * posix/Makefile (routines): Add sched_cpucount.
6966         (tests): Add tst-cpucount.
6967         * posix/sched_cpucount.c: New file.
6968         * posix/tst-cpucount.c: New file.
6969         * posix/Versions: Export __sched_cpucount with version GLIBC_2.6.
6970         * bits/sched.h: Define __CPU_COUNT.  Declare __sched_cpucount.
6971         * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
6972         * posix/sched.h: Define CPU_COUNT.
6973
6974 2007-03-27  Jakub Jelinek  <jakub@redhat.com>
6975
6976         * posix/fnmatch.c (STRUCT): Define.
6977         (fnmatch): Pass NULL as last argument to internal_fn{,w}match.
6978         * posix/fnmatch_loop.c (struct STRUCT): New type.
6979         (FCT): Add ends argument.  If ends != NULL and normal * is
6980         seen in the pattern, store current pattern and string pointers
6981         and return.  Adjust recursive calls.
6982         (EXT): Adjust FCT callers.
6983         (STRUCT): Undef at the end of the file.
6984         * posix/Makefile (tests): Add tst-fnmatch2.
6985         * posix/tst-fnmatch2.c: New test.
6986
6987 2007-04-01  Jakub Jelinek  <jakub@redhat.com>
6988
6989         * sysdeps/ia64/fpu/fesetround.c (fesetround): Return 0 on success
6990         and 1 on failure.
6991
6992         * sysdeps/unix/sysv/linux/sync_file_range.c (sync_file_range):
6993         Change last argument to unsigned int.
6994
6995 2007-03-23  Jakub Jelinek  <jakub@redhat.com>
6996
6997         * scripts/check-local-headers.sh: Filter out sys/capability.h.
6998
6999 2007-03-22  Jakub Jelinek  <jakub@redhat.com>
7000
7001         * config.h.in (HAVE_LIBCAP): Add.
7002         * nscd/selinux.h: Include sys/capability.h rather than non-existent
7003         sys/capabilities.h.
7004         * nscd/selinux.c (preserve_capabilities): Use cap_free instead of
7005         free_caps.  Cast away const from 4th cap_set_flag argument.
7006
7007 2007-03-26  Ulrich Drepper  <drepper@redhat.com>
7008
7009         * sysdeps/unix/sysv/linux/Versions: Move sync_file_range to
7010         GLIBC_2.6.
7011         * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
7012         Add sync_file_range.
7013         Reported by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
7014
7015 2007-03-19  Steven Munroe  <sjmunroe@us.ibm.com>
7016
7017         * sysdeps/powerpc/bits/atomic.h
7018         [!MUTEX_HINT_ACQ]: Define MUTEX_HINT_ACQ.
7019         [!MUTEX_HINT_REL]: Define MUTEX_HINT_REL.
7020         (__arch_compare_and_exchange_val_32_acq): Add MUTEX_HINT_ACQ to lwarx.
7021         (__arch_compare_and_exchange_val_32_rel): Add MUTEX_HINT_REL to lwarx.
7022         (__arch_atomic_exchange_val_32_acq): Add MUTEX_HINT_ACQ to lwarx.
7023         (__arch_atomic_exchange_rel_32_rel): Add MUTEX_HINT_REL to lwarx.
7024         * sysdeps/powerpc/powerpc32/bits/atomic.h [_ARCH_PWR6 || _ARCH_PWR6X]:
7025         Define MUTEX_HINT_ACQ as ",1" and MUTEX_HINT_REL as ",0".
7026         (__arch_compare_and_exchange_bool_32_acq): Add MUTEX_HINT_ACQ to lwarx.
7027         (__arch_compare_and_exchange_bool_32_rel): Add MUTEX_HINT_REL to lwarx.
7028         * sysdeps/powerpc/powerpc64/bits/atomic.h [_ARCH_PWR6 || _ARCH_PWR6D]:
7029         Define MUTEX_HINT_ACQ as ",1" and MUTEX_HINT_REL as ",0".
7030         (__arch_compare_and_exchange_bool_32_acq): Add MUTEX_HINT_ACQ to lwarx.
7031         (__arch_compare_and_exchange_bool_32_rel): Add MUTEX_HINT_REL to lwarx.
7032         (__arch_compare_and_exchange_bool_64_acq): Add MUTEX_HINT_ACQ to lwarx.
7033         (__arch_compare_and_exchange_bool_64_rel): Add MUTEX_HINT_REL to lwarx.
7034         (__arch_compare_and_exchange_val_64_acq): Add MUTEX_HINT_ACQ to lwarx.
7035         (__arch_compare_and_exchange_val_64_rel): Add MUTEX_HINT_REL to lwarx.
7036         (__arch_atomic_exchange_val_64_acq): Add MUTEX_HINT_ACQ to lwarx.
7037         (__arch_atomic_exchange_rel_64_rel): Add MUTEX_HINT_REL to lwarx.
7038
7039 2007-03-20  Jakub Jelinek  <jakub@redhat.com>
7040
7041         * sysdeps/unix/sysv/linux/powerpc/libc-start.c
7042         (__cache_line_size): Define the variable here.  Add
7043         attribute_hidden, remove weak_extern.
7044         (__libc_start_main): Set __cache_line_size
7045         unconditionally.
7046         * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
7047         (__cache_line_size): Define the variable here.  Add
7048         attribute_hidden, remove weak_extern.
7049         (DL_PLATFORM_AUXV): Set __cache_line_size
7050         unconditionally.
7051         * sysdeps/powerpc/powerpc32/dl-machine.c (__cache_line_size): Remove
7052         weak_extern, add attribute_hidden.
7053         (__elf_machine_runtime_setup): Assume __cache_line_size is always
7054         defined in ld.so.
7055         * sysdeps/powerpc/powerpc32/memset.S (__cache_line_size): Remove
7056         definition.
7057         * sysdeps/powerpc/powerpc64/memset.S (__cache_line_size): Likewise.
7058
7059 2007-03-26  Jakub Jelinek  <jakub@redhat.com>
7060
7061         [BZ #4276]
7062         * timezone/africa: Update from tzdata2007d.
7063         * timezone/asia: Likewise.
7064         * timezone/australasia: Likewise.
7065         * timezone/backward: Likewise.
7066         * timezone/europe: Likewise.
7067         * timezone/iso3166.tab: Likewise.
7068         * timezone/leapseconds: Likewise.
7069         * timezone/northamerica: Likewise.
7070         * timezone/southamerica: Likewise.
7071         * timezone/zone.tab: Likewise.
7072
7073         * timezone/private.h: Update from tzcode2007d.
7074         * timezone/zdump.c: Likewise.
7075         * timezone/zic.c: Likewise.
7076
7077 2007-03-21  Jakub Jelinek  <jakub@redhat.com>
7078
7079         * nis/nis_call.c: Include bits/libc-lock.h, sys/stat.h, unistd.h.
7080         (nis_server_cache, nis_server_cache_lock, nis_cold_start_mtime): New
7081         variables.
7082         (nis_server_cache_search, nis_server_cache_add): New functions.
7083         (__nisfind_server): Use them.  Add dbp and flags argument, if
7084         call __nisbind_create.
7085         (__nisbind_create): Add server_used and current_ep arguments,
7086         only call __nis_findfastest if server_used is ~0.
7087         (__do_niscall2, __prepare_niscall): Adjust callers.
7088         (ckey_cache, ckey_cache_size, ckey_cache_allocated, ckey_cache_pid,
7089         ckey_cache_euid, ckey_cache_lock): New variables.
7090         (get_ckey): New function.
7091         (__nisbind_connect): If not dbp->use_udp, pass IPPROTO_TCP to
7092         __pmap_getnisport.  Save __pmap_getnisport result in
7093         dbp->addr.sin_port if non-zero.  Use get_ckey to create conversation
7094         key.
7095         * nis/nis_lookup.c (nis_lookup): Likewise.
7096         * nis/nis_table.c (nis_list): Likewise.
7097         * nis/rpcsvc/nislib.h (__nisbind_create, __nisfind_server): Adjust
7098         prototypes.
7099
7100         * nis/nss_nisplus/nisplus-pwd.c (_nss_nisplus_getpwnam_r,
7101         _nss_nisplus_getpwuid_r): Pass USE_DGRAM flag to nis_list.
7102         * nis/nss_nisplus/nisplus-service.c (_nss_nisplus_getservbyname_r,
7103         _nss_nisplus_getservbyport_r): Likewise.
7104         * nis/nss_nisplus/nisplus-network.c (_nss_nisplus_getnetbyname_r,
7105         _nss_nisplus_getnetbyaddr_r): Likewise.
7106         * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_getspnam_r): Likewise.
7107         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_gethostton_r,
7108         _nss_nisplus_getntohost_r): Likewise.
7109         * nis/nss_nisplus/nisplus-rpc.c (_nss_nisplus_getrpcbyname_r,
7110         _nss_nisplus_getrpcbynumber_r): Likewise.
7111
7112 2007-03-20  Jakub Jelinek  <jakub@redhat.com>
7113
7114         * configure.in (libc_cv_gnu89_inline): Only do compile test.
7115         * configure: Rebuilt.
7116
7117         * soft-fp/double.h (_FP_UNION_D): Use _FP_W_TYPE for frac
7118         bit-fields.
7119         * soft-fp/extended.h (_FP_UNION_E): Likewise.
7120
7121 2006-06-07  Joseph Myers  <joseph@codesourcery.com>
7122
7123         [BZ #2831]
7124         * soft-fp/quad.h (_FP_UNION_Q): Use _FP_W_TYPE for frac
7125         bit-fields.
7126
7127 2007-03-18  Jakub Jelinek  <jakub@redhat.com>
7128
7129         * nscd/gai.c: Include alloca.h.
7130         (__libc_use_alloca): Define.
7131
7132 2007-03-16  Jakub Jelinek  <jakub@redhat.com>
7133
7134         * elf/dl-open.c (dl_open_worker): Declare l in 2 different
7135         smaller scopes.
7136         * elf/dl-dst.h (DL_DST_REQ_STATIC): Add l as macro argument.
7137         (DL_DST_REQUIRED): Adjust user.
7138
7139         * include/dlfcn.h (struct link_map): New forward decl.
7140
7141         * inet/getnameinfo.c: Include stddef.h.
7142         (getnameinfo): Use offsetof.
7143
7144         * time/tst-mktime2.c (do_test): Don't rely on signed wrap.
7145
7146         * stdio-common/vfprintf.c (_itoa): Undef before redefining.
7147
7148         * string/strerror_l.c: Include stdlib.h.
7149
7150         * configure.in (libc_cv_gnu89_inline): Test for -fgnu89-inline.
7151         * config.make.in (gnu89-inline-CFLAGS): New variable.
7152         * Makeconfig (CFLAGS): Use $(gnu89-inline-CFLAGS) together with
7153         -std=gnu99.
7154         * misc/sys/cdefs.h (__extern_inline, __extern_always_inline): Define.
7155         * argp/argp.h: Use it.
7156         * bits/mathinline.h: Likewise.
7157         * bits/sigset.h: Likewise.
7158         * bits/string.h: Likewise.
7159         * ctype/ctype.h: Likewise.
7160         * hurd/hurd.h: Likewise.
7161         * hurd/hurd/fd.h: Likewise.
7162         * hurd/hurd/port.h: Likewise.
7163         * hurd/hurd/signal.h: Likewise.
7164         * hurd/hurd/threadvar.h: Likewise.
7165         * hurd/hurd/userlink.h: Likewise.
7166         * io/sys/stat.h: Likewise.
7167         * libio/bits/stdio.h: Likewise.
7168         * libio/bits/stdio2.h: Likewise.
7169         * mach/lock-intern.h: Likewise.
7170         * mach/mach/mig_support.h: Likewise.
7171         * math/bits/cmathcalls.h: Likewise.
7172         * posix/bits/unistd.h: Likewise.
7173         * socket/bits/socket2.h: Likewise.
7174         * stdlib/bits/stdlib.h: Likewise.
7175         * stdlib/stdlib.h: Likewise.
7176         * string/argz.h: Likewise.
7177         * string/bits/string2.h: Likewise.
7178         * string/bits/string3.h: Likewise.
7179         * sysdeps/alpha/fpu/bits/mathinline.h: Likewise.
7180         * sysdeps/generic/inttypes.h: Likewise.
7181         * sysdeps/generic/machine-lock.h: Likewise.
7182         * sysdeps/generic/machine-sp.h: Likewise.
7183         * sysdeps/i386/fpu/bits/mathinline.h: Likewise.
7184         * sysdeps/i386/i486/bits/string.h: Likewise.
7185         * sysdeps/ia64/fpu/bits/mathinline.h: Likewise.
7186         * sysdeps/mach/alpha/machine-lock.h: Likewise.
7187         * sysdeps/mach/alpha/machine-sp.h: Likewise.
7188         * sysdeps/mach/i386/machine-lock.h: Likewise.
7189         * sysdeps/mach/powerpc/machine-lock.h: Likewise.
7190         * sysdeps/mach/powerpc/machine-sp.h: Likewise.
7191         * sysdeps/powerpc/fpu/bits/mathinline.h: Likewise.
7192         * sysdeps/s390/bits/string.h: Likewise.
7193         * sysdeps/s390/fpu/bits/mathinline.h: Likewise.
7194         * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
7195         * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Likewise.
7196         * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
7197         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
7198         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Likewise.
7199         * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
7200         * wcsmbs/bits/wchar2.h: Likewise.
7201         * wcsmbs/wchar.h: Likewise.
7202         * stdlib/gmp.h: Likewise.  Include <features.h> to get
7203         __extern_inline definition.
7204
7205 2007-03-15  Jakub Jelinek  <jakub@redhat.com>
7206
7207         * locale/programs/ld-ctype.c (find_translit): Return NULL if ctype is
7208         NULL.
7209
7210         [BZ #3919]
7211         * math/libm-test.inc (log_test): Test -Inf and NaN.
7212         (log10_test, log1p_test, log2_test): Test -Inf.
7213         * sysdeps/i386/fpu/e_log.S (__ieee754_log): Don't raise
7214         FE_INVALID when argument is qNaN.
7215         * sysdeps/i386/fpu/e_logl.S (__ieee754_logl): Likewise.
7216         * sysdeps/i386/fpu/e_logf.S (__ieee754_logf): Likewise.
7217         * sysdeps/x86_64/fpu/e_logl.S (__ieee754_logl): Likewise.
7218         * sysdeps/x86_64/fpu/e_log10l.S (__ieee754_log10l): Replace
7219         andb $1, %ah with testb $1, %ah, don't test for parity, instead
7220         testb $4, %ah and jump if non-zero.
7221         * sysdeps/x86_64/fpu/e_log2l.S (__ieee754_log2l): Likewise.
7222         * sysdeps/x86_64/fpu/s_log1pl.S (__log1pl): Likewise.
7223
7224         [BZ #4101]
7225         * argp/argp-help.c (hol_cluster_cmp): Fix comparisons used to find
7226         ancestors with the same depths.
7227         Patch by Niels Moeller <nisse@lysator.liu.se>.
7228         (filter_doc): Don't crash if argp is NULL.
7229         * argp/Makefile (tests): Add tst-argp2.
7230         * argp/tst-argp2.c: New test.
7231
7232         [BZ #4130]
7233         * login/utmp_file.c (setutent_file): Use O_LARGEFILE for
7234         open_not_cancel_2.
7235         (updwtmp_file): Likewise.
7236
7237         [BZ #4181]
7238         * inet/inet6_opt.c (add_padding): Only insert padding if npad > 0.
7239         (inet6_opt_append): Don't check extlen is big enough if extbuf
7240         is NULL.
7241         (inet6_opt_finish): Likewise.
7242         * inet/Makefile (tests): Add test-inet6_opt.
7243         * inet/test-inet6_opt.c: New test.
7244
7245         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Never
7246         reallocate the buffer, instead fail for MSG_TRUNC or for EBUSY
7247         NLMSG_ERR.  Instead use a page sized buffer.
7248         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Use page sized
7249         buffer.
7250
7251 2007-03-14  Richard Henderson  <rth@redhat.com>
7252
7253         * sysdeps/alpha/fpu/s_llround.c: New file.
7254         * sysdeps/alpha/fpu/s_llroundf.c: New file.
7255         * sysdeps/alpha/fpu/s_lround.c: New file.
7256         * sysdeps/alpha/fpu/s_lroundf.c: New file.
7257         * sysdeps/alpha/fpu/s_round.c: New file.
7258         * sysdeps/alpha/fpu/s_roundf.c: New file.
7259         * sysdeps/alpha/fpu/s_trunc.c: New file.
7260         * sysdeps/alpha/fpu/s_truncf.c: New file.
7261
7262         * sysdeps/alpha/fpu/s_ceil.c: Rewrite without branches.
7263         * sysdeps/alpha/fpu/s_ceilf.c: Likewise.
7264         * sysdeps/alpha/fpu/s_floor.c: Likewise.
7265         * sysdeps/alpha/fpu/s_floorf.c: Likewise.
7266         * sysdeps/alpha/fpu/s_rint.c: Likewise.
7267         * sysdeps/alpha/fpu/s_rintf.c: Likewise.
7268
7269         * sysdeps/alpha/fpu/s_fmax.S: New file.
7270         * sysdeps/alpha/fpu/s_fmaxf.S: New file.
7271         * sysdeps/alpha/fpu/s_fmin.S: New file.
7272         * sysdeps/alpha/fpu/s_fminf.S: New file.
7273         * sysdeps/alpha/fpu/s_isnan.c: New file.
7274         * sysdeps/alpha/fpu/s_isnanf.c: New file.
7275         * sysdeps/alpha/fpu/s_llrint.c: New file.
7276         * sysdeps/alpha/fpu/s_llrintf.c: New file.
7277         * sysdeps/alpha/fpu/s_lrint.c: New file.
7278         * sysdeps/alpha/fpu/s_lrintf.c: New file.
7279         * sysdeps/alpha/fpu/s_nearbyint.c: New file.
7280         * sysdeps/alpha/fpu/s_nearbyintf.c: New file.
7281
7282         * sysdeps/alpha/fpu/bits/mathinline.h (__floorf, __floor): Remove.
7283         (__fdimf, fdimf, __fdim, fdim): Remove.
7284         (__signbitf, __signbit, __signbitl): Use gcc builtin if available.
7285         (__isnanf, __isnan, __isnanl): New.
7286
7287 2007-03-13  Richard Henderson  <rth@redhat.com>
7288
7289         * sysdeps/ieee754/ldbl-128/Makefile: New file.
7290
7291 2007-03-13  Richard Henderson  <rth@redhat.com>
7292
7293         * sysdeps/alpha/Makefile (sysdep-CFLAGS): Force dynamic rounding.
7294         * sysdeps/alpha/fpu/bits/mathinline.h (__signbitl): New.
7295         * sysdeps/alpha/fpu/libm-test-ulps: Regenerate.
7296         * sysdeps/unix/sysv/linux/alpha/alphaev6/fpu/Implies: New file.
7297         * sysdeps/unix/sysv/linux/alpha/alphaev67/fpu/Implies: New file.
7298         * sysdeps/unix/sysv/linux/alpha/fpu/Implies: New file.
7299
7300 2007-03-13  Richard Henderson  <rth@redhat.com>
7301
7302         * elf/dl-support.c (_dl_aux_init): Honor DL_PLATFORM_AUXV.
7303         * sysdeps/unix/sysv/linux/alpha/dl-auxv.h: New file.
7304         * sysdeps/unix/sysv/linux/alpha/dl-support.c: New file.
7305         * sysdeps/unix/sysv/linux/alpha/dl-sysdep.c (__libc_alpha_cache_shape):
7306         Move to dl-auxv.h; initialize instead of extern weak.
7307         (DL_PLATFORM_AUXV): Move to dl-auxv.h; don't test for undef
7308         weak symbol.
7309         * sysdeps/unix/sysv/linux/alpha/sysconf.c (__libc_alpha_cache_shape):
7310         Extern instead of initialized.
7311
7312 2007-03-13  Richard Henderson  <rth@redhat.com>
7313
7314         * sysdeps/unix/sysv/linux/alpha/sigsuspend.S: Add support for
7315         __sigsuspend_nocancel.
7316
7317 2007-03-06  Ulrich Drepper  <drepper@redhat.com>
7318
7319         * sysdeps/posix/getaddrinfo.c (get_scope): Correct test for
7320         172.16/12 address range.
7321
7322 2007-03-02  Jakub Jelinek  <jakub@redhat.com>
7323
7324         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Retry with
7325         a new netlink socket if NLMSG_ERR -EBUSY is seen after some MSG_TRUNC
7326         message.
7327
7328 2007-03-01  Jakub Jelinek  <jakub@redhat.com>
7329
7330         [BZ #4069]
7331         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Check for NaN
7332         earlier.
7333         * math/libm-test.inc (pow_test): Add more tests involving NaNs.
7334
7335         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Avoid invalid exception
7336         for x qNaN and y either +-inf or non-integer value.
7337         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Likewise.
7338         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.
7339         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
7340
7341 2007-02-10  Mike Frysinger  <vapier@gentoo.org>
7342
7343         * sysdeps/unix/sysv/linux/sh/Makefile: Remove sys/io.h
7344         from sysdep_headers.
7345
7346 2007-02-28  Jakub Jelinek  <jakub@redhat.com>
7347
7348         * time/tzfile.c (find_transition): Instead of a linear search try to
7349         guess the transition index, use a linear search if the result is at
7350         most 10 transitions away from the guess or binary search otherwise.
7351
7352 2007-02-27  Jakub Jelinek  <jakub@redhat.com>
7353
7354         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Fix
7355         memory reallocation.
7356
7357 2007-02-21  Ulrich Drepper  <drepper@redhat.com>
7358
7359         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Add branch predictions
7360         and fix some typos.
7361         Optimize use of TOLOWER.
7362
7363         [BZ #3325]
7364         * sysdeps/i386/fpu/e_fmodf.S: Revert last changes, keep using fprem.
7365         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
7366         * sysdeps/i386/fpu/e_fmod.S: Likewise.
7367
7368         [BZ #3458]
7369         * sysdeps/unix/sysv/linux/posix_madvise.c: New file.
7370         * sysdeps/unix/sysv/linux/syscalls.list: Remove posix_madvise entry.
7371
7372         [BZ #4076]
7373         * io/ftw.c (ftw_startup): Handle special case of FTW_CHDIR in /.
7374         (open_dir_stream): Likewise.
7375         * io/Makefile (tests): Add bug-ftw5.
7376         * io/bug-ftw5.c: New file.
7377
7378         * nscd/hstcache.c (cache_addhst): Remove unnecessary conditional.
7379         * nscd/servicescache.c (cache_addserv): Likewise.
7380
7381         * nscd/grpcache.c (cache_addgr): In case a record changed on
7382         refresh, adjust key_copy.
7383
7384         [BZ #4074]
7385         * nscd/pwdcache.c (cache_addpw): In case a record changed on
7386         refresh, adjust key_copy.
7387
7388         [BZ #4070]
7389         * stdio-common/printf_fp.c (___printf_fp): Handle a few more
7390         special cases.
7391         * stdio-common/tfformat.c (sprint_doubles): Some more tests.
7392
7393 2007-02-19  Ulrich Drepper  <drepper@redhat.com>
7394
7395         * stdio-common/printf_fp.c (___printf_fp): Cleanups and minor
7396         optimization.
7397
7398         * stdio-common/vfscanf.c: Small cleanups throughout.
7399
7400 2007-02-18  Ulrich Drepper  <drepper@redhat.com>
7401
7402         [BZ #3325]
7403         * sysdeps/i386/fpu/e_fmodf.S: Use fprem1 instead of fprem.
7404         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
7405         * sysdeps/i386/fpu/e_fmod.S: Likewise.
7406         Patch by Jared Casper <jaredcasper@gmail.com>.
7407
7408         * sysdeps/unix/closedir.c: Outside libc don't use locking.
7409         * sysdeps/unix/opendir.c: Likewise.
7410         * sysdeps/unix/readdir.c: Likewise.
7411
7412         [BZ #2211]
7413         * stdio-common/vfscanf.c: Handle localized digits etc for floating
7414         point numbers.
7415         Patch mostly by Hamed Malek <hamed@farsiweb.info>.
7416
7417         * stdio-common/vfscanf.c: Fix problems in width accounting.
7418         * stdio-common/tst-sscanf.c (double_tests): New tests.
7419         (main): Hook them up.
7420
7421         * stdio-common/vfscanf.c: Remove unused WIDTH handling.
7422         More simplifications of floating-point reader.
7423
7424         * stdio-common/Makefile (tests): Add tst-swscanf.
7425         * stdio-common/tst-sscanf.c: Make tests usable for swscanf
7426         testing.
7427         * stdio-common/tst-swscanf.c: New file.
7428
7429 2007-02-17  Ulrich Drepper  <drepper@redhat.com>
7430
7431         [BZ #2633]
7432         * libio/stdio.h: Define struct _IO_FILE in global namespace.
7433         * setjmp/setjmp.h: Define __jmp_buf_tag in global namespace.
7434         Remove using for __jmp_buf_tag.
7435         * locale/locale.h (struct lconv): Also define in std namespace.
7436         * wcsmbs/wchar.h: Move using declaration for tm out of namespace.
7437
7438         [BZ #3842]
7439         * sysdeps/posix/euidaccess.c [_LIBC] (euidaccess): Remove shortcut
7440         using __libc_enable_secure.
7441
7442         [BZ #3818]
7443         * sysdeps/unix/sysv/linux/sys/acct.h (struct acct_v3): Define.
7444
7445         [BZ #3745]
7446         * locale/programs/ld-collate.c (handle_ellipsis): Fix generation
7447         of names for ellipsises.
7448
7449         [BZ #3348]
7450         * malloc/memusage.sh: Cleanups.
7451         * debug/xtrace.sh: Quoting and trap changes.
7452
7453 2007-02-16  Ulrich Drepper  <drepper@redhat.com>
7454
7455         * locale/iso-3166.def: Add Jersey, Guernsey, and Isle Of Man entries.
7456
7457         * locale/iso-3166.def: Update entry for Serbia.
7458         * locale/iso-4217.def: Define RSD, remove CSD.
7459
7460         * sysdeps/x86_64/bits/atomic.h: One more change, this time for 16-
7461         and 64-bit operations.
7462
7463         [BZ #4040]
7464         * sysdeps/i386/i486/bits/atomic.h: One more change, this time for
7465         16-bit operations.
7466
7467         * nscd/nscd.c (parse_opt): One more conversion to use send instead
7468         of writev.
7469
7470 2007-02-15  Ulrich Drepper  <drepper@redhat.com>
7471
7472         [BZ #3991]
7473         * assert/assert.h (assert): Simplify.
7474         (assert_perror): Likewise.
7475         Patch by Israel G. Lugo <ilugo@bridonsecurity.com>.
7476
7477         * nscd/nscd_helper.c (open_socket): Don't send padding bytes from
7478         reqdata.
7479
7480         * sysdeps/unix/sysv/linux/x86_64/send.c (__libc_send): Cosmetic
7481         change: don't pass NULL in place of an integer.
7482
7483 2007-02-02  Bruno Haible  <bruno@clisp.org>
7484
7485         [BZ #3954]
7486         * iconvdata/ksc5601.c (__ksc5601_sym_to_ucs, __ksc5601_sym_from_ucs):
7487         Add mapping for U+327E.
7488         * iconvdata/ksc5601.h (KSC5601_SYMBOL): Increment.
7489         * iconvdata/johab.c (BODY for FROM_LOOP, BODY for TO_LOOP): Enable
7490         mapping of 0xD9 0xE8.
7491         * iconvdata/uhc.c (BODY for FROM_LOOP, BODY for TO_LOOP): Disable
7492         mapping of U+327E.
7493         Reported by Jungshik Shin <jungshik@google.com>.
7494
7495         [BZ #3955]
7496         * iconvdata/johab.c (BODY for FROM_LOOP, BODY for TO_LOOP): Enable
7497         mapping of 0xD9 0xE6 and of 0xD9 0xE7.
7498         Reported by Jungshik Shin <jungshik@google.com>.
7499
7500 2007-02-14  Ulrich Drepper  <drepper@redhat.com>
7501
7502         * sysdeps/x86_64/bits/atomic;h: Fix asm parameters for some
7503         byte variants.
7504
7505         [BZ #4040]
7506         * sysdeps/i386/i486/bits/atomic.h: Fix asm parameters for some
7507         byte variants.  Patch mostly be tom@tommay.net.
7508
7509 2007-02-14  Jakub Jelinek  <jakub@redhat.com>
7510
7511         [BZ #3996]
7512         * posix/glob.c (attribute_hidden): Define if not defined.
7513         (glob): Unescape dirname, filename or username when needed and not
7514         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
7515         is NULL.  Handle unescaped [ in pattern without closing ].
7516         Don't pass GLOB_CHECK down to recursive glob for directories.
7517         (__glob_pattern_type): New function.
7518         (__glob_pattern_p): Implement using __glob_pattern_type.
7519         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
7520         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
7521         Remove unreachable code.
7522         * posix/globtest.sh: Add a couple of new tests.
7523
7524 2007-02-13  Ulrich Drepper  <drepper@redhat.com>
7525
7526         * po/ru.po: Update from translation team.
7527
7528 2007-02-12  Jakub Jelinek  <jakub@redhat.com>
7529
7530         * sysdeps/i386/bits/byteswap.h (__bswap_32): Add __amdfam10__
7531         to the list of i486+ CPUs.
7532         * sysdeps/x86_64/bits/byteswap.h (__bswap_32): Likewise.
7533
7534 2007-02-12  Ulrich Drepper  <drepper@redhat.com>
7535
7536         * elf/rtld.c (RESOLVE_MAP): Always return bootstrap_map reference.
7537         * elf/Makefile ($(objpfx)ld.so): Check that ld.so has no undefined
7538         references.
7539
7540 2007-02-09  Ulrich Drepper  <drepper@redhat.com>
7541
7542         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Remove incorrect comment.
7543
7544         * resolv/res_init.c (res_setoptions): Recognize edns0 option.
7545         * resolv/res_mkquery.c: Define __res_nopt.
7546         * resolv/res_query.c (__libc_res_nquery): If RES_USE_EDNS0 is set
7547         try adding EDNS0 record.
7548         * resolv/res_send.c (send_dg): If request failed with FORMERR and
7549         EDNS0 record was send make sure we don't try it again.
7550         * resolv/resolv.h: Define RES_F_EDNS0ERR and RES_USE_EDNS0.
7551         * include/resolv.h: Declare __res_nopt.
7552
7553 2007-02-08  Jakub Jelinek  <jakub@redhat.com>
7554
7555         [BZ #3944]
7556         * time/strptime_l.c (__strptime_internal): Set have_mon for
7557         %b/%B/%h.  Set have_mon and have_mday if tm_mon and tm_mday
7558         have been computed from tm_yday and tm_year.  Don't crash
7559         in day_of_the_week or day_of_the_year if not have_mon
7560         and tm_mon contains bogus value.
7561         * time/Makefile (tests): Add tst-strptime3.
7562         * time/tst-strptime3.c: New test.
7563
7564 2007-02-05  Jakub Jelinek  <jakub@redhat.com>
7565
7566         [BZ #3957]
7567         * posix/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
7568         bit for RE_HAT_LISTS_NOT_NEWLINE.
7569         (build_charclass_op): Remove bogus comment.
7570         * posix/Makefile (tests): Add bug-regex27 and bug-regex28.
7571         * posix/bug-regex27.c: New test.
7572         * posix/bug-regex28.c: New test.
7573
7574 2007-02-03  Ulrich Drepper  <drepper@redhat.com>
7575
7576         * po/sv.po: Update from translation team.
7577
7578 2007-02-02  Ulrich Drepper  <drepper@redhat.com>
7579
7580         * nscd/nscd_helper.c (open_socket): Minor size optimization.
7581
7582 2007-02-02  Jakub Jelinek  <jakub@redhat.com>
7583
7584         * include/locale.h (__uselocale): Add libc_hidden_proto.
7585         * locale/uselocale.c (__uselocale): Add libc_hidden_def.
7586
7587         * nscd/nscd_helper.c (open_socket): Use __gettimeofday instead of
7588         gettimeofday.
7589
7590 2007-02-01  Ulrich Drepper  <drepper@redhat.com>
7591
7592         * sysdeps/unix/sysv/linux/i386/sysdep.h (PTR_MANGLE): Roll value before
7593         returning.
7594         (PTR_DEMANGLE): Real definition now that it's not the same as
7595         PRT_MANGLE anymore.
7596         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
7597
7598         * string/strerror_l.c: New file.
7599         * string/Makefile (routines): Add strerror_l.
7600         * string/string.h: Declare strerror_l.
7601         * string/Versions: Export strerror_l for GLIBC_2.6.
7602
7603 2007-01-31  Ulrich Drepper  <drepper@redhat.com>
7604
7605         * nscd/nscd_helper.c (open_socket): Now takes request type and key
7606         as parameter.  Construct request record.  Try sending request
7607         before the first poll use, it usually succeeds.  Adjust all
7608         callers.
7609         * nscd/nscd-client.h: Define MAXKEYLEN.
7610         * nscd/connections.c (nscd_run): Don't define MAXKEYLEN here.
7611
7612 2007-01-31  Jakub Jelinek  <jakub@redhat.com>
7613
7614         * nscd/nscd-client.h (__nscd_cache_search): Remove const qualifier
7615         from return value.
7616         * nscd/nscd_helper.c: Include string.h.
7617         (__nscd_cache_search): Remove const qualifier from return value.
7618         On strict alignment architectures check hash entry and data head
7619         alignment.
7620         * nscd/nscd_getpw_r.c (nscd_getpw_r): Don't crash or fail because
7621         mmapped data during GC cycle contains garbage.  If
7622         __nscd_drop_map_ref fails, decrement mapped->counter when returning
7623         error or if retrying with NO_MAPPING, only __nscd_unmap if counter
7624         dropped to 0.
7625         * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
7626         * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
7627         * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
7628         * nscd/nscd_getai.c (__nscd_getai): Likewise.
7629         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
7630
7631 2007-01-30  Ulrich Drepper  <drepper@redhat.com>
7632
7633         * misc/hsearch_r.c (hdestroy_r): Remove unnecessary test.
7634
7635 2007-01-26  Ulrich Drepper  <drepper@redhat.com>
7636
7637         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Use register
7638         names not numbers in cfi_*.
7639
7640 2007-01-26  Andreas Jaeger  <aj@suse.de>
7641
7642         * sysdeps/unix/sysv/linux/sys/personality.h (ADDR_NO_RANDOMIZE,
7643         ADDR_LIMIT_3GB, PER_LINUX_32BIT, PER_LINUX32_3GB): Add.
7644         Correct values of PER_HPUX and PER_OSF4.
7645
7646 2007-01-24  Ulrich Drepper  <drepper@redhat.com>
7647
7648         * elf/dl-minimal.c: Undefine _itoa first.
7649         * stdio-common/_itoa.h: Define _itoa and _fitoa for 64-bit platforms.
7650         * malloc/mtrace.c: Revert last change.
7651         * posix/wordexp.c: Likewise.
7652
7653 2007-01-24  Jakub Jelinek  <jakub@redhat.com>
7654
7655         * sysdeps/i386/bits/byteswap.h (__bswap_32): Add __nocona__, __core2__
7656         and __geode__ to the list of i486+ CPUs.
7657         * sysdeps/x86_64/bits/byteswap.h (__bswap_32): Likewise.
7658
7659 2007-01-23  Ulrich Drepper  <drepper@redhat.com>
7660
7661         * stdio-common/_itoa.c: Include <limits.h>.
7662         * stdio-common/_itowa.c: Likewise.
7663
7664 2007-01-22  Ulrich Drepper  <drepper@redhat.com>
7665
7666         * stdio-common/_itowa.c: Don't compile _itowa for 64-bit
7667         platforms.
7668         * stdio-common/_itoa.c: Don't compile in _itoa and _fitoa for
7669         64-bit platforms.
7670         * malloc/mtrace.c (tr_where): Use _fitoa_word instead of _fitoa if
7671         possible.
7672         * posix/wordexp.c (parse_arith): Use _itoa_word instead of _itoa
7673         if possible.
7674
7675         [BZ #3902]
7676         * stdio-common/_itoa.c (_itoa): Make sure at least a zero is emitted.
7677         * stdio-common/Makefile (tests): Add bug17.
7678         * stdio-common/bug17.c: New file.
7679
7680 2007-01-19  Ulrich Drepper  <drepper@redhat.com>
7681
7682         * iconvdata/brf.c: New file.
7683         * iconvdata/testdata/BRF: New file.
7684         * iconvdata/testdata/BRF..UTF8: New file.
7685         Contributed by Samuel Thibault <samuel.thibault@ens-lyon.org>.
7686         * iconvdata/Makefile: Add rules to build BRF.
7687         * iconvdata/TESTS: Add BRF entry.
7688         * iconvdata/gconv-modules: Likewise.
7689         * iconvdata/tst-tables.sh: Likewise.
7690
7691 2007-01-18  Anton Nikishaev  <anton.nik@gmail.com>
7692
7693         * wcsmbs/wchar.h (wcstoll): Fix comment, function returns value of
7694         type `long long int', not `long int'.
7695         (wcstoq): Likewise.
7696
7697 2007-01-18  Ulrich Drepper  <drepper@redhat.com>
7698
7699         * scripts/gen-as-const.awk: Add cast to long to avoid int promotion
7700         of values on 64-bit platforms which are too large.
7701
7702 2007-01-12  Steven Munroe  <sjmunroe@us.ibm.com>
7703             Joe Kerian  <jkerian@us.us.ibm.com>
7704
7705         [BZ #2749]
7706         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Include
7707         <math_ldbl_opt.h>.  Remove weak_alias.  Use long_double_symbol macro.
7708         (__copysignl): Use signbit() for comparison.
7709         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Correct parms for
7710         SET_LDOUBLE_WORDS64.
7711
7712         [BZ #2423, #2749]
7713         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Don't include <fenv_libc.h>.
7714         (__ceill): Remove calls to fegetround(), fesetround().
7715         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
7716         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
7717         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
7718
7719 2007-01-17  Jakub Jelinek  <jakub@redhat.com>
7720
7721         * nscd/nscd_getserv_r.c (nscd_getserv_r): Fix pastos.
7722
7723         * sysdeps/unix/sysv/linux/getdents.c (offsetof): Remove.
7724
7725 2007-01-17  Ulrich Drepper  <drepper@redhat.com>
7726
7727         * sysdeps/unix/sysv/linux/fatal-prepare.h: Use PTHFCT_CALL to
7728         demangle pointer.
7729         * csu/libc-start.c: Likewise.
7730
7731 2007-01-16  Ulrich Drepper  <drepper@redhat.com>
7732
7733         * sysdeps/posix/system.c: Remove NO_WAITPID support, it cannot
7734         really work anyway.
7735
7736 2007-01-15  Ulrich Drepper  <drepper@redhat.com>
7737
7738         * nscd/connections.c (servinfo): Renamed to reqinfo.  Change all
7739         users.
7740         (handle_request): Remove unnecessary tests.
7741
7742         * nscd/cache.c (cache_add): Record the failure to add to the cache.
7743
7744 2007-01-15  Jakub Jelinek  <jakub@redhat.com>
7745
7746         * soft-fp/op-common.h (FP_TRUNC): When truncating a NaN, clear
7747         workbits in semi-raw fraction.
7748
7749         * math/test-misc.c: Add new tests.
7750
7751 2007-01-14  Steven Munroe  <sjmunroe@us.ibm.com>
7752
7753         * math/basic-test.c: Include test-skeleton.c.
7754         (TEST_TRUNC): Define.
7755         (truncdfsf_test, trunctfsf_test, trunctfdf_test): New.
7756         (main): Rename to ...
7757         (do_test): ...this.  Run new tests.
7758         (TEST_FUNCTION): Define.
7759
7760 2006-10-05  Steven Munroe  <sjmunroe@us.ibm.com>
7761             Joe Kerian  <jkerian@us.us.ibm.com>
7762
7763         [BZ #2749]
7764         * soft-fp/op-4.h (__FP_FRAC_SUB_3, __FP_FRAC_SUB_4): Correct borrow
7765         handling for high words.
7766         * soft-fp/op-common.h (_FP_OVERFLOW_SEMIRAW): Always set inexact
7767         and overflow for infinity.
7768
7769 2007-01-15  Ulrich Drepper  <drepper@redhat.com>
7770
7771         * nscd/connections.c (handle_request): Add a __builtin_expect.
7772
7773         * nscd/connections.c (serv2db): Change type into structure which
7774         also says whether this is a request for data.  Renamed to
7775         servinfo.  All users changed.
7776         (handle_request): Much simpler test whether we should search the cache.
7777
7778         * nscd/connections.c (handle_request): Fix thinko in selinux test
7779         invocation.
7780
7781         * sysdeps/generic/ldsodefs.h: Define DL_LOOKUP_SCOPE_LOCK.
7782         * elf/dl-lookup.c (add_dependency): If scope map is locked, unlock
7783         it before getting dl_load_lock and then relock.
7784         (_dl_lookup_symbol_x): Pass flags to add_dependency.
7785         When rerunning _dl_lookup_symbol_x, compute symbol_scope again in
7786         case we unlocked the scope.
7787         * elf/dl-runtime.c (_dl_fixup): Pass DL_LOOKUP_SCOPE_LOCK to
7788         _dl_lookup_symbol_x in case we locked the scope.
7789         (_dl_profile_fixup): Likewise.
7790         * elf/dl-sym.c (do_sym): In flags passed to call_dl_lookup, also
7791         set DL_LOOKUP_SCOPE_LOCK.
7792
7793 2007-01-13  Ulrich Drepper  <drepper@redhat.com>
7794
7795         * inet/Makefile: Define CFLAGS-getsrvbynm_r.c and
7796         CFLAGS-getsrvbynpt_r.c.
7797         * nscd/getsrvbynm_r.c: New file.
7798         * nscd/getsrvbypt_r.c: New file.
7799         * nscd/nscd_getserv_r.c: New file.
7800         * nscd/servicescache.c: New file.
7801         * nscd/Makefile (routines): Add nscd_getserv_r.
7802         (nscd-modules): Add getsrvbynm_r, getsrvbypt_r, and servicescache.
7803         Define CFLAGS-servicescache.c, CFLAGS-getsrvbynm_r.c, and
7804         CFLAGS-getsrvbypt_r.c.
7805         * nscd/cache.c (prune_cache): Rewrite to get re-add function from
7806         table.  Add entries for services database.
7807         * nscd/connections.c (serv2str): Mark as const.  Add entries for
7808         services database.
7809         (dbs): Add .reset_res and servdb initialization.
7810         (serv2db): Add entries for services database.
7811         (verify_persistent_db): Accept dbnr == servdb.
7812         (invalidate_cache): Rewrite database name recognition to use a table.
7813         Call res_init() if .reset_res is set for database.
7814         (handle_request): Add code to handle services database.
7815         * nscd/gai.c: Don't define __getservbyname_r.
7816         * nscd/nscd-client.h (request_type): Remove LASTDBREQ, add
7817         GETSERVBYNAME, GETSERVBYPORT, GETFDSERV.
7818         (serv_response_header): Define.
7819         (struct datahead): Add serv_response_header member.
7820         * nscd/nscd.c (parse_opt): Rewrite parsing of -i parameter value
7821         using table.
7822         * nscd/nscd.conf: Add entries for services database.
7823         * nscd/nscd.h: Adjust declaration of dbnames and serv2str.
7824         Declare serv_iov_disabled.
7825         Declare addservbyname, readdservbyname, addservbyport, and
7826         readdservbyport.
7827         * nscd/nscd_conf.c (dbnames): Mark as const.  Add services entry.
7828         (find_db): Fix error message.
7829         * nscd/nscd_proto.h: Declare __nss_not_use_nscd_services,
7830         __nscd_getservbyname_r, and __nscd_getservbyport_r.
7831         * nscd/selinux.c (perms): Add entries for services database.
7832         * nss/Versions: Export __nss_services_lookup with GLIBC_PRIVATE.
7833         * nss/nsswitch.c (__nss_disable_nscd): Also disable services database.
7834
7835         * nscd/grpcache.c: Remove obsolete code.  Cleanups.
7836         * nscd/hstcache.c: Likewise.
7837         * nscd/pwdcache.c: Likewise.
7838
7839         * nis/nss_nis/nis-service.c (_nss_nis_getservbyname_r): Correct
7840         computation of keylen.
7841
7842         * include/string.h: Only redefine strndupa if this is really for
7843         libc code.
7844
7845 2007-01-12  Ulrich Drepper  <drepper@redhat.com>
7846
7847         * nscd/nscd_gethst_r.c: Minor cleanups.
7848
7849         * nscd/connections.c (handle_request): Check selinux permissions
7850         for all non-admin commands.
7851
7852         * sysdeps/i386/i486/bits/atomic.h: Define
7853         atomic_compare_and_exchange_val_acq,
7854         atomic_compare_and_exchange_bool_acq, and atomic_exchange_and_add
7855         using __sync_* built-ins for gcc >= 4.1.
7856         * sysdeps/x86_64/bits/atomic.h: Likewise.
7857
7858         [BZ #3840]
7859         * scripts/check-local-headers.sh: Restrict to testing .o.d, .os.d,
7860         and .oS.d files.
7861
7862 2007-01-05  Steven Munroe  <sjmunroe@us.ibm.com>
7863
7864         * stdlib/tst-makecontext.c: Include errno.h.  Change main()
7865         to do_test().  Define TEST_FUNCTION. Include test-skeleton.c.
7866         (do_test): Check errno and exit(0) if ENOSYS.
7867
7868 2007-01-11  Jakub Jelinek  <jakub@redhat.com>
7869
7870         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix handling of multi-byte
7871         thousands separators.
7872         * stdlib/Makefile: Add rules to build and run tst-strtod4.
7873         * stdlib/tst-strtod4.c: New test.
7874
7875         [BZ #3855]
7876         * stdlib/strtod_l.c (____STRTOF_INTERNAL): 0x. not followed by
7877         hexadecimal digit should accept just the initial 0.
7878         * stdlib/tst-strtod2.c (tests): New variable.
7879         (do_test): Run several tests rather than just one.
7880
7881 2007-01-11  Jakub Jelinek  <jakub@redhat.com>
7882
7883         * sysdeps/i386/soft-fp/sfp-machine.h: Remove.
7884         * sysdeps/x86_64/soft-fp/sfp-machine.h: Likewise.
7885
7886 2007-01-10  Ulrich Drepper  <drepper@redhat.com>
7887
7888         * io/fts.c: Make sure fts_cur is always valid after return from
7889         fts_read.
7890         Patch by Miloslav Trmac <mitr@redhat.com>.
7891
7892 2006-10-27  Richard Sandiford  <richard@codesourcery.com>
7893
7894         * elf/elf.h (R_MIPS_GLOB_DAT): Define.
7895         (R_MIPS_NUM): Bump by 1.
7896
7897 2007-01-03  Jakub Jelinek  <jakub@redhat.com>
7898
7899         * posix/execvp.c: Include alloca.h.
7900         (allocate_scripts_argv): Renamed to...
7901         (scripts_argv): ... this.  Don't allocate buffer here nor count
7902         arguments.
7903         (execvp): Use alloca if possible.
7904         * posix/Makefile: Add rules to build and run tst-vfork3 test.
7905         * posix/tst-vfork3.c: New test.
7906
7907 2007-01-03  Ulrich Drepper  <drepper@redhat.com>
7908
7909         * string/Makefile (tst-strxfrm2-ENV): Define.
7910         * stdlib/Makefile (tst-strtod3-ENV): Define.
7911
7912 2007-01-02  Ulrich Drepper  <drepper@redhat.com>
7913
7914         * posix/getconf.c: Update copyright year.
7915         * nss/getent.c: Likewise.
7916         * iconv/iconvconfig.c: Likewise.
7917         * iconv/iconv_prog.c: Likewise.
7918         * elf/ldconfig.c: Likewise.
7919         * catgets/gencat.c: Likewise.
7920         * csu/version.c: Likewise.
7921         * elf/ldd.bash.in: Likewise.
7922         * elf/sprof.c (print_version): Likewise.
7923         * locale/programs/locale.c: Likewise.
7924         * locale/programs/localedef.c: Likewise.
7925         * nscd/nscd.c (print_version): Likewise.
7926         * debug/xtrace.sh: Likewise.
7927         * malloc/memusage.sh: Likewise.
7928         * malloc/mtrace.pl: Likewise.
7929         * debug/catchsegv.sh: Likewise.
7930
7931 2006-12-24  Ulrich Drepper  <drepper@redhat.com>
7932
7933         * malloc/malloc.c (sYSMALLOc): Remove some unnecessary alignment
7934         attempts.
7935
7936 2006-12-23  Ulrich Drepper  <drepper@redhat.com>
7937
7938         * posix/wordexp.c: Remove some unnecessary tests.
7939
7940 2006-12-22  Gavin Romig-Koch  <gavin@redhat.com>
7941
7942         * nis/nss_compat/compat-grp.c (internal_getgrgid_r): Don't
7943         blacklist the group till after we look it up.
7944
7945 2006-12-21  Ulrich Drepper  <drepper@redhat.com>
7946
7947         * include/atomic.h (atomic_forced_read): New macro.
7948
7949 2006-12-20  SUGIOKA Toshinobu  <sugioka@itonet.co.jp>
7950
7951         * sysdeps/unix/sysv/linux/sh/bits/shm.h: New file.
7952
7953 2006-12-19  Jakub Jelinek  <jakub@redhat.com>
7954
7955         * nss/getXXbyYY_r.c: Include atomic.h.
7956         (INTERNAL (REENTRANT_NAME)): Write startp after start_fct,
7957         add atomic_write_barrier () in between.
7958
7959         * stdlib/Makefile (tests): Add tst-makecontext.
7960         * stdlib/tst-makecontext.c: New test.
7961
7962         * sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S
7963         (__makecontext): Don't realign uc_mcontext.uc_regs.
7964
7965 2006-11-28  Jakub Jelinek  <jakub@redhat.com>
7966
7967         * elf/dl-support.c: Include dl-procinfo.h.
7968         * sysdeps/powerpc/dl-procinfo.h (PPC_PLATFORM_POWER4,
7969         PPC_PLATFORM_PPC970, PPC_PLATFORM_POWER5, PPC_PLATFORM_POWER5_PLUS,
7970         PPC_PLATFORM_POWER6, PPC_PLATFORM_CELL_BE, PPC_PLATFORM_POWER6X):
7971         Define.
7972         (_dl_string_platform): Use PPC_PLATFORM_* macros instead of
7973         hardcoded constants.
7974         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_platform): Use
7975         PPC_PLATFORM_* macros for array designators.
7976
7977 2006-11-11  Steven Munroe  <sjmunroe@us.ibm.com>
7978
7979         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add 3 new cap
7980         names to the beginning.
7981         (_dl_powerpc_platforms): Add "power6x".
7982         * sysdeps/powerpc/dl-procinfo.h (_DL_HWCAP_FIRST): Decrease.
7983         (HWCAP_IMPORTANT): Add PPC_FEATURE_HAS_DFP.
7984         (_DL_PLATFORMS_COUNT): Increase.
7985         (_dl_string_platform): Handle power6x case.
7986         * sysdeps/powerpc/sysdep.h (PPC_FEATURE_PA6T, PPC_FEATURE_HAS_DFP,
7987         PPC_FEATURE_POWER6_EXT): Define.
7988         (PPC_FEATURE_POWER5, PPC_FEATURE_POWER5_PLUS): Correct Comment.
7989
7990 2006-12-18  Jakub Jelinek  <jakub@redhat.com>
7991
7992         [BZ #3747]
7993         * stdlib/jrand48_r.c (__jrand48_r): Make sure result is in the
7994         [-2^31 .. 2^31) range.
7995         * stdlib/tst-rand48.c (main): Fix expected values for 64-bit
7996         targets.
7997         * stdlib/tst-rand48-2.c: New test.
7998         * stdlib/Makefile (tests): Add tst-rand48-2.
7999
8000 2006-12-14  Jakub Jelinek  <jakub@redhat.com>
8001
8002         * misc/tst-pselect.c (do_test): Fix sigblock argument.
8003
8004 2006-12-14  Ulrich Drepper  <drepper@redhat.com>
8005
8006         * misc/tst-pselect.c (do_test): Make sure the helper process is
8007         terminating when the test is aborted.
8008
8009 2006-12-13  Ulrich Drepper  <drepper@redhat.com>
8010
8011         * sysdeps/unix/sysv/linux/bits/statvfs.h: Define ST_RELATIME.
8012         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
8013         Handle relatime mount option.
8014
8015         [BZ #2337]
8016         * libio/Makefile (tests): Add tst-setvbuf1.
8017         * libio/tst-setvbuf1.c: New file.
8018
8019 2006-12-08  Jakub Jelinek  <jakub@redhat.com>
8020
8021         [BZ #2337]
8022         * libio/genops.c (__uflow): Fix a typo.
8023         * libio/wfiledoalloc.c (_IO_wfile_doallocate): Don't stat
8024         nor set _IO_LINE_BUF bit here.  Size the wide buffer based on
8025         the narrow buffer size.
8026
8027 2006-11-24  Jakub Jelinek  <jakub@redhat.com>
8028
8029         [BZ #2337]
8030         * libio/libio.h (_IO_FLAGS2_USER_WBUF): Define.
8031         * libio/wgenops.c (_IO_wsetb, _IO_wdefault_finish): Test and set
8032         _IO_FLAGS2_USER_WBUF bit in _flags2 instead of _IO_USER_BUF bit
8033         in _flags.
8034         * libio/wstrops.c (_IO_wstr_overflow, enlarge_userbuf,
8035         _IO_wstr_finish): Likewise.
8036         * libio/wmemstream.c (open_wmemstream): Likewise.
8037         * libio/fileops.c (_IO_new_file_close_it): Call _IO_set[bgp]
8038         even for wide streams.
8039
8040 2006-12-13  Jakub Jelinek  <jakub@redhat.com>
8041
8042         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: Include
8043         kernel-features.h.
8044
8045 2006-12-11  Ulrich Drepper  <drepper@redhat.com>
8046
8047         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Parse thousand
8048         separators also if no non-zero digits found.
8049         * stdlib/Makefile (tests): Add tst-strtod3.
8050
8051 2006-12-09  Ulrich Drepper  <drepper@redhat.com>
8052
8053         [BZ #3632]
8054         * include/features.h: Fix comment about default value for
8055         _POSIX_C_SOURCE.
8056
8057         [BZ #3664]
8058         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix test to recognize
8059         empty parsed strings.
8060         * stdlib/Makefile (tests): Add tst-strtod2.
8061         * stdlib/tst-strtod2.c: New file.
8062
8063         [BZ #3673]
8064         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix exp_limit
8065         computation.
8066         * stdlib/Makefile (tests): Add tst-atof2.
8067         * stdlib/tst-atof2.c: New file.
8068
8069         [BZ #3674]
8070         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Adjust exponent value
8071         correctly if removing trailing zero of hex-float.
8072         * stdlib/Makefile (tests): Add tst-atof1.
8073         * stdlib/tst-atof1.c: New file.
8074
8075 2006-12-09  Jakub Jelinek  <jakub@redhat.com>
8076
8077         * misc/mntent_r.c (__hasmntopt): Check p[optlen] even when p == rest.
8078         Start searching for next comma at p rather than rest.
8079         * misc/Makefile (tests): Add tst-mntent2.
8080         * misc/tst-mntent2.c: New test.
8081
8082         * misc/getusershell.c (initshells): Check for integer overflows.
8083         Make strings buffer one bigger as fgets always succeeds when second
8084         argument is 1.  Don't use calloc for shells array.  Disallow
8085         / as shell.
8086
8087 2006-12-08  Ulrich Drepper  <drepper@redhat.com>
8088
8089         * malloc/memusage.c: Handle realloc with new size of zero and
8090         non-NULL pointer correctly.
8091         (me): Really write first record twice.
8092         (struct entry): Make format bi-arch safe.
8093         (dest): Write out more realloc statistics.
8094         * malloc/memusagestat.c (struct entry): Make format bi-arch safe.
8095
8096 2006-12-05  Jakub Jelinek  <jakub@redhat.com>
8097
8098         * nis/nis_subr.c (nis_getnames): Revert last change.
8099
8100 2006-12-04  Jakub Jelinek  <jakub@redhat.com>
8101
8102         * sysdeps/unix/sysv/linux/ttyname.c: Include termios.h.
8103         (ttyname): Use tcgetattr instead of isatty, don't set errno to ENOTTY.
8104         * sysdeps/unix/sysv/linux/ttyname_r.c: Include termios.h.
8105         (__ttyname_r): Use tcgetattr instead of isatty, don't set errno to
8106         ENOTTY.
8107         * io/Makefile: Add rules to build and run tst-ttyname_r test.
8108         * io/tst-ttyname_r.c: New test.
8109
8110 2006-12-03  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
8111
8112         * sysdeps/unix/sysv/linux/sh/sys/io.h: Removed.
8113
8114 2006-11-30  H.J. Lu  <hongjiu.lu@intel.com>
8115
8116         * sysdeps/i386/i686/memcmp.S: Use jump table as the base of
8117         jump table entries.
8118
8119 2006-11-30  Jan Kratochvil  <jan.kratochvil@redhat.com>
8120
8121         * sysdeps/unix/sysv/linux/i386/clone.S: Provide CFI for the outermost
8122         `clone' function to ensure proper unwinding stop of gdb.
8123         * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
8124
8125 2006-12-01  Ulrich Drepper  <drepper@redhat.com>
8126
8127         * nscd/nscd.init: Remove obsolete and commented-out -S option
8128         handling.
8129
8130 2006-11-23  Jakub Jelinek  <jakub@redhat.com>
8131
8132         [BZ #3514]
8133         * manual/string.texi (strncmp): Fix pastos from wcscmp description.
8134
8135         [BZ #3515]
8136         * manual/string.texi (strtok): Remove duplicate paragraph.
8137
8138 2006-12-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
8139
8140         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Fix compatibility with
8141         libgcc not supporting `rflags' unwinding (register # >= 17).
8142
8143 2006-11-30  Jakub Jelinek  <jakub@redhat.com>
8144
8145         * sunrpc/svc_run.c (svc_run): Set my_pollfd to new_pollfd if realloc
8146         succeeded.
8147
8148 2006-11-29  Daniel Jacobowitz  <dan@codesourcery.com>
8149             Jakub Jelinek  <jakub@redhat.com>
8150             Jan Kratochvil  <jan.kratochvil@redhat.com>
8151
8152         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (restore_rt): Add correct
8153         unwind information.
8154         * sysdeps/unix/sysv/linux/x86_64/Makefile: Provide symbols for
8155         'restore_rt' even in the 'signal' directory.
8156         * sysdeps/unix/sysv/linux/x86_64/ucontext_i.sym: Extend the regs list.
8157
8158 2006-11-27  Jakub Jelinek  <jakub@redhat.com>
8159
8160         [BZ #3559]
8161         * sunrpc/svc_run.c (svc_run): Fail instead of segfaulting if
8162         malloc crashed.  Don't allocate memory unnecessarily in each
8163         loop.
8164
8165 2006-10-21  Jakub Jelinek  <jakub@redhat.com>
8166
8167         * resolv/mapv4v6addr.h (map_v4v6_address): Fix last change.
8168
8169 2006-11-20  Ulrich Drepper  <drepper@redhat.com>
8170
8171         * resolv/mapv4v6addr.h (map_v4v6_address): Optimize a bit.
8172
8173 2006-11-18  Bruno Haible  <bruno@clisp.org>
8174
8175         * sysdeps/unix/sysv/linux/i386/getgroups.c (__getgroups): Invoke
8176         __sysconf only after having tried to call getgroups32.
8177
8178 2006-11-19  Ulrich Drepper  <drepper@redhat.com>
8179
8180         * nss/nss_files/files-hosts.c (LINE_PARSER): Support IPv6-style
8181         addresses for IPv4 queries if they can be mapped.
8182
8183 2006-11-16  Jakub Jelinek  <jakub@redhat.com>
8184
8185         * sysdeps/x86_64/fpu/s_copysignf.S (__copysignf): Switch to .text.
8186         * sysdeps/x86_64/fpu/s_copysign.S (__copysign): Likewise.
8187         (signmask): Add .size directive.
8188         (othermask): Add .type directive.
8189
8190 2006-11-14  Ulrich Drepper  <drepper@redhat.com>
8191
8192         * po/nl.po: Update from translation team.
8193
8194         * timezone/zdump.c: Redo fix for BZ #3137.
8195
8196 2006-11-14  Jakub Jelinek  <jakub@redhat.com>
8197
8198         * nss/nss_files/files-alias.c (get_next_alias): Set line back
8199         to first_unused after parsing :include: file.
8200
8201 2006-11-10  Ulrich Drepper  <drepper@redhat.com>
8202
8203         * timezone/africa: Update from tzdata2006o.
8204         * timezone/antarctica: Likewise.
8205         * timezone/asia: Likewise.
8206         * timezone/australasia: Likewise.
8207         * timezone/backward: Likewise.
8208         * timezone/europe: Likewise.
8209         * timezone/iso3166.tab: Likewise.
8210         * timezone/northamerica: Likewise.
8211         * timezone/southamerica: Likewise.
8212         * timezone/zone.tab: Likewise.
8213
8214         * time/tzfile.c (__tzfile_read): Extend to handle new file format
8215         on machines with 64-bit time_t.
8216
8217         * timezone/checktab.awk: Update from tzcode2006o.
8218         * timezone/ialloc.c: Likewise.
8219         * timezone/private.h: Likewise.
8220         * timezone/scheck.c: Likewise.
8221         * timezone/tzfile.h: Likewise.
8222         * timezone/tzselect.ksh: Likewise.
8223         * timezone/zdump.c: Likewise.
8224         * timezone/zic.c: Likewise.
8225
8226         [BZ #3483]
8227         * elf/ldconfig.c (main): Call setlocale and textdomain.
8228         Patch mostly by Benno Schulenberg <bensberg@justemail.net>.
8229
8230         [BZ #3480]
8231         * manual/argp.texi: Fix typos.
8232         * manual/charset.texi: Likewise.
8233         * manual/errno.texi: Likewise.
8234         * manual/filesys.texi: Likewise.
8235         * manual/lang.texi: Likewise.
8236         * manual/maint.texi: Likewise.
8237         * manual/memory.texi: Likewise.
8238         * manual/message.texi: Likewise.
8239         * manual/resource.texi: Likewise.
8240         * manual/search.texi: Likewise.
8241         * manual/signal.texi: Likewise.
8242         * manual/startup.texi: Likewise.
8243         * manual/stdio.texi: Likewise.
8244         * manual/sysinfo.texi: Likewise.
8245         * manual/syslog.texi: Likewise.
8246         * manual/time.texi: Likewise.
8247         Patch by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
8248
8249         [BZ #3465]
8250         * sunrpc/clnt_raw.c: Minimal message improvements.
8251         * sunrpc/pm_getmaps.c: Likewise.
8252         * nis/nss_nisplus/nisplus-publickey.c: Likewise.
8253         * nis/nis_print_group_entry.c: Likewise.
8254         * locale/programs/repertoire.c: Likewise.
8255         * locale/programs/charmap.c: Likewise.
8256         * malloc/memusage.sh: Likewise.
8257         * elf/dl-deps.c: Likewise.
8258         * locale/programs/ld-collate.c: Likewise.
8259         * libio/vswprintf.c: Likewise.
8260         * malloc/memusagestat.c: Likewise.
8261         * sunrpc/auth_unix.c: Likewise.
8262         * sunrpc/rpc_main.c: Likewise.
8263         * nscd/cache.c: Likewise.
8264         * locale/programs/repertoire.c: Unify output messages.
8265         * locale/programs/charmap.c: Likewise.
8266         * locale/programs/ld-ctype.c: Likewise.
8267         * locale/programs/ld-monetary.c: Likewise.
8268         * locale/programs/ld-numeric.c: Likewise.
8269         * locale/programs/ld-time.c: Likewise.
8270         * elf/ldconfig.c: Likewise.
8271         * nscd/selinux.c: Likewise.
8272         * elf/cache.c: Likewise.
8273         Patch mostly by Benno Schulenberg <bensberg@justemail.net>.
8274
8275         [BZ #3451]
8276         * sysdeps/i386/fpu/bits/mathinline.h (floor): Make rounding mode
8277         change atomic.
8278         (ceil): Likewise.
8279
8280 2006-11-10  Jakub Jelinek  <jakub@redhat.com>
8281
8282         * string/strxfrm_l.c (STRXFRM): Fix trailing \1 optimization
8283         if N is one bigger than return value.
8284         * string/tst-strxfrm2.c (do_test): Also test strxfrm with l1 + 1
8285         and l1 last arguments, if buf is defined, verify the return value
8286         equals to strlen (buf) and verify no byte beyond passed length
8287         is modified.
8288
8289 2006-11-10  Ulrich Drepper  <drepper@redhat.com>
8290
8291         * po/sv.po: Update from translation team.
8292
8293 2006-11-09  Ulrich Drepper  <drepper@redhat.com>
8294
8295         * sysdeps/unix/sysv/linux/x86_64/sysconf.c (intel_check_word): Add
8296         noinline attribute.
8297
8298 2006-11-10  Jakub Jelinek  <jakub@redhat.com>
8299
8300         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Add
8301         noinline attribute.
8302
8303         * sysdeps/gnu/siglist.c (__old_sys_siglist, __old_sys_sigabbrev):
8304         Use __new_sys_siglist instead of _sys_siglist_internal as
8305         second macro argument.
8306         (_old_sys_siglist): Use declare_symbol_alias macro instead of
8307         strong_alias.
8308
8309 2006-11-09  Ulrich Drepper  <drepper@redhat.com>
8310
8311         [BZ #3493]
8312         * posix/unistd.h (sysconf): Remove const attribute.
8313
8314         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Fix test for
8315         temporary or deprecated addresses.
8316         Patch by Sridhar Samudrala <sri@us.ibm.com>.
8317
8318         * string/Makefile (tests): Add tst-strxfrm2.
8319         * string/tst-strxfrm2.c: New file.
8320
8321 2006-10-09  Jakub Jelinek  <jakub@redhat.com>
8322
8323         * elf/dl-debug.c (_dl_debug_initialize): Check r->r_map for 0
8324         rather than r->r_brk.
8325
8326 2006-11-08  Jakub Jelinek  <jakub@redhat.com>
8327
8328         * string/strxfrm_l.c (STRXFRM): Do the trailing \1 removal
8329         optimization even if needed > n.
8330
8331         * elf/dl-load.c (decompose_rpath): Return bool rather than void.
8332         If l->l_name is on inhibit_rpath list, set sps->dirs to -1 and
8333         return false, otherwise return true.
8334         (cache_rpath): Return decompose_rpath return value.
8335
8336 2006-11-07  Jakub Jelinek  <jakub@redhat.com>
8337
8338         * include/libc-symbols.h (declare_symbol): Rename to...
8339         (declare_symbol_alias): ... this.  Add ORIGINAL argument, imply
8340         strong_alias (ORIGINAL, SYMBOL) in asm to make sure it preceedes
8341         .size directive.
8342         * sysdeps/gnu/errlist-compat.awk: Adjust for declare_symbol_alias
8343         changes.
8344         * sysdeps/gnu/siglist.c: Likewise.
8345
8346 2006-11-03  Steven Munroe  <sjmunroe@us.ibm.com>
8347
8348         * sysdeps/powerpc/fpu/bits/mathinline.h
8349         [__LIBC_INTERNAL_MATH_INLINES]: Moved to ...
8350         * sysdeps/powerpc/fpu/math_private.h: ...here.  New file.
8351
8352 2006-11-05  Ulrich Drepper  <drepper@redhat.com>
8353
8354         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
8355         Update handling of cache descriptor 0x49 for new models.
8356         * sysdeps/unix/sysv/linux/x86_64/sysconf.c (intel_check_word):
8357         Likewise.
8358
8359 2006-11-02  Jakub Jelinek  <jakub@redhat.com>
8360
8361         * malloc/memusage.c (dest): Reset not_me back to false after
8362         printing statistics.
8363
8364 2006-11-02  Ulrich Drepper  <drepper@redhat.com>
8365
8366         * configure.in: Work around ld --help change and avoid -z relro
8367         test completely if the architecture doesn't care about security.
8368
8369 2006-11-01  Ulrich Drepper  <drepper@redhat.com>
8370
8371         * po/sv.po: Update from translation team.
8372
8373 2006-10-31  Ulrich Drepper  <drepper@redhat.com>
8374
8375         * stdlib/atexit.c (atexit): Don't mark as hidden when used to
8376         generate compatibility version.
8377
8378 2006-10-29  Ulrich Drepper  <drepper@redhat.com>
8379
8380         * configure.in: Relax -z relro requirement a bit.
8381
8382         * po/sv.po: Update from translation team.
8383
8384 2006-10-29  Jakub Jelinek  <jakub@redhat.com>
8385
8386         * elf/dl-sym.c (do_sym): Use RTLD_SINGLE_THREAD_P.
8387         * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Likewise.
8388         * elf/dl-close.c (_dl_close_worker): Likewise.
8389         * elf/dl-open.c (_dl_open_worker): Likewise.
8390         * sysdeps/generic/sysdep-cancel.h (RTLD_SINGLE_THREAD_P): Define.
8391
8392 2006-10-27  Ulrich Drepper  <drepper@redhat.com>
8393
8394         * configure.in: Require assembler support for visibility, compiler
8395         support for visibility and aliases, linker support for various -z
8396         options.
8397         * Makeconfig: Remove conditional code which now is unnecessary.
8398         * config.h.in: Likewise.
8399         * config.make.in: Likewise.
8400         * dlfcn/Makefile: Likewise.
8401         * elf/Makefile: Likewise.
8402         * elf/dl-load.c: Likewise.
8403         * elf/rtld.c: Likewise.
8404         * include/libc-symbols.h: Likewise.
8405         * include/stdio.h: Likewise.
8406         * io/Makefile: Likewise.
8407         * io/fstat.c: Likewise.
8408         * io/fstat64.c: Likewise.
8409         * io/fstatat.c: Likewise.
8410         * io/fstatat64.c: Likewise.
8411         * io/lstat.c: Likewise.
8412         * io/lstat64.c: Likewise.
8413         * io/mknod.c: Likewise.
8414         * io/mknodat.c: Likewise.
8415         * io/stat.c: Likewise.
8416         * io/stat64.c: Likewise.
8417         * libio/stdio.c: Likewise.
8418         * nscd/Makefile: Likewise.
8419         * stdlib/Makefile: Likewise.
8420         * stdlib/atexit.c: Likewise.
8421         * sysdeps/generic/ldsodefs.h: Likewise.
8422         * sysdeps/i386/dl-machine.h: Likewise.
8423         * sysdeps/i386/sysdep.h: Likewise.
8424         * sysdeps/i386/i686/memcmp.S: Likewise.
8425         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
8426         * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
8427         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
8428
8429         * Makerules: USE_TLS support is now default.
8430         * tls.make.c: Likewise.
8431         * csu/Versions: Likewise.
8432         * csu/libc-start.c: Likewise.
8433         * csu/libc-tls.c: Likewise.
8434         * csu/version.c: Likewise.
8435         * dlfcn/dlinfo.c: Likewise.
8436         * elf/dl-addr.c: Likewise.
8437         * elf/dl-cache.c: Likewise.
8438         * elf/dl-close.c: Likewise.
8439         * elf/dl-iteratephdr.c: Likewise.
8440         * elf/dl-load.c: Likewise.
8441         * elf/dl-lookup.c: Likewise.
8442         * elf/dl-object.c: Likewise.
8443         * elf/dl-open.c: Likewise.
8444         * elf/dl-reloc.c: Likewise.
8445         * elf/dl-support.c: Likewise.
8446         * elf/dl-sym.c: Likewise.
8447         * elf/dl-sysdep.c: Likewise.
8448         * elf/dl-tls.c: Likewise.
8449         * elf/ldconfig.c: Likewise.
8450         * elf/rtld.c: Likewise.
8451         * elf/tst-tls-dlinfo.c: Likewise.
8452         * elf/tst-tls1.c: Likewise.
8453         * elf/tst-tls10.h: Likewise.
8454         * elf/tst-tls14.c: Likewise.
8455         * elf/tst-tls2.c: Likewise.
8456         * elf/tst-tls3.c: Likewise.
8457         * elf/tst-tls4.c: Likewise.
8458         * elf/tst-tls5.c: Likewise.
8459         * elf/tst-tls6.c: Likewise.
8460         * elf/tst-tls7.c: Likewise.
8461         * elf/tst-tls8.c: Likewise.
8462         * elf/tst-tls9.c: Likewise.
8463         * elf/tst-tlsmod1.c: Likewise.
8464         * elf/tst-tlsmod13.c: Likewise.
8465         * elf/tst-tlsmod13a.c: Likewise.
8466         * elf/tst-tlsmod14a.c: Likewise.
8467         * elf/tst-tlsmod2.c: Likewise.
8468         * elf/tst-tlsmod3.c: Likewise.
8469         * elf/tst-tlsmod4.c: Likewise.
8470         * elf/tst-tlsmod5.c: Likewise.
8471         * elf/tst-tlsmod6.c: Likewise.
8472         * include/errno.h: Likewise.
8473         * include/link.h: Likewise.
8474         * include/tls.h: Likewise.
8475         * locale/global-locale.c: Likewise.
8476         * locale/localeinfo.h: Likewise.
8477         * malloc/arena.c: Likewise.
8478         * malloc/hooks.c: Likewise.
8479         * malloc/malloc.c: Likewise.
8480         * resolv/Versions: Likewise.
8481         * sysdeps/alpha/dl-machine.h: Likewise.
8482         * sysdeps/alpha/libc-tls.c: Likewise.
8483         * sysdeps/generic/ldsodefs.h: Likewise.
8484         * sysdeps/generic/tls.h: Likewise.
8485         * sysdeps/i386/dl-machine.h: Likewise.
8486         * sysdeps/ia64/dl-machine.h: Likewise.
8487         * sysdeps/ia64/libc-tls.c: Likewise.
8488         * sysdeps/mach/hurd/fork.c: Likewise.
8489         * sysdeps/mach/hurd/i386/tls.h: Likewise.
8490         * sysdeps/powerpc/powerpc32/dl-machine.c: Likwise.
8491         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
8492         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
8493         * sysdeps/s390/libc-tls.c: Likewise.
8494         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
8495         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
8496         * sysdeps/sh/dl-machine.h: Likewise.
8497         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
8498         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
8499         * sysdeps/x86_64/dl-machine.h: Likewise.
8500
8501         * elf/dl-close.c (_dl_close_worker): Renamed from _dl_close and
8502         split out locking and parameter checking.
8503         (_dl_close): Call _dl_close_worker after locking and checking.
8504         * elf/dl-open.c (_dl_open): Call _dl_close_worker instead of
8505         _dl_close.
8506         * elf/Makefile: Add rules to build and run tst-thrlock.
8507         * elf/tst-thrlock.c:  New file.
8508
8509         [BZ #3426]
8510         * stdlib/stdlib.h: Adjust comment for canonicalize_file_name to
8511         reality.
8512
8513         [BZ #3429]
8514         * elf/dl-open.c (dl_open_worker): Keep holding dl_load_lock until
8515         we are sure we do not need it anymore for _dl_close.  Also move
8516         the asserts inside the lock region.
8517         Patch mostly by Suzuki <suzuki@in.ibm.com>.
8518
8519 2006-10-27  Jakub Jelinek  <jakub@redhat.com>
8520
8521         * elf/dl-lookup.c (_dl_debug_bindings): Remove unused symbol_scope
8522         argument.
8523         (_dl_lookup_symbol_x): Adjust caller.
8524
8525         * sysdeps/generic/ldsodefs.h (struct link_namespaces): Remove
8526         _ns_global_scope.
8527         * elf/rtld.c (dl_main): Don't initialize _ns_global_scope.
8528
8529         * elf/dl-libc.c: Revert l_scope name changes.
8530         * elf/dl-load.c: Likewise.
8531         * elf/dl-object.c: Likewise.
8532         * elf/rtld.c: Likewise.
8533         * elf/dl-close.c (_dl_close): Likewise.
8534         * elf/dl-open.c (dl_open_worker): Likewise.  If not SINGLE_THREAD_P,
8535         always use __rtld_mrlock_{change,done}.  Always free old scope list
8536         here if not l_scope_mem.
8537         * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Revert l_scope name
8538         change.  Never free scope list here.  Just __rtld_mrlock_lock before
8539         the lookup and __rtld_mrlock_unlock it after the lookup.
8540         * elf/dl-sym.c: Likewise.
8541         * include/link.h (struct r_scoperec): Remove.
8542         (struct link_map): Replace l_scoperec with l_scope, l_scoperec_mem
8543         with l_scope_mem and l_scoperec_lock with l_scope_lock.
8544
8545 2006-10-25  Ulrich Drepper  <drepper@redhat.com>
8546
8547         * sysdeps/gnu/netinet/tcp.h: Define TCP_CONGESTION.
8548
8549 2006-10-18  Ulrich Drepper  <drepper@redhat.com>
8550
8551         * configure.in: Disable building profile libraries by default.
8552
8553 2006-10-17  Jakub Jelinek  <jakub@redhat.com>
8554
8555         * sunrpc/xdr_mem.c (xdrmem_setpos): Don't compare addresses
8556         as signed longs, check for x_base + pos overflow.
8557         * sunrpc/Makefile (tests): Add tst-xdrmem2.
8558         * sunrpc/tst-xdrmem2.c: New test.
8559
8560 2006-10-18  Ulrich Drepper  <drepper@redhat.com>
8561
8562         * elf/dl-lookup.c (_dl_lookup_symbol_x): Add warning to
8563         _dl_lookup_symbol_x code.
8564
8565 2006-10-17  Jakub Jelinek  <jakub@redhat.com>
8566
8567         * elf/dl-runtime.c: Include sysdep-cancel.h.
8568         (_dl_fixup, _dl_profile_fixup): Use __rtld_mrlock_* and
8569         scoperec->nusers only if !SINGLE_THREAD_P.  Use atomic_*
8570         instead of catomic_* macros.
8571         * elf/dl-sym.c: Include sysdep-cancel.h.
8572         (do_sym): Use __rtld_mrlock_* and scoperec->nusers only
8573         if !SINGLE_THREAD_P.  Use atomic_* instead of catomic_* macros.
8574         * elf/dl-close.c: Include sysdep-cancel.h.
8575         (_dl_close): Use __rtld_mrlock_* and scoperec->nusers only
8576         if !SINGLE_THREAD_P.  Use atomic_* instead of catomic_* macros.
8577         * elf/dl-open.c: Include sysdep-cancel.h.
8578         (dl_open_worker): Use __rtld_mrlock_* and scoperec->nusers only
8579         if !SINGLE_THREAD_P.  Use atomic_* instead of catomic_* macros.
8580
8581 2006-10-17  Jakub Jelinek  <jakub@redhat.com>
8582
8583         [BZ #3313]
8584         * malloc/malloc.c (malloc_consolidate): Set maxfb to address of last
8585         fastbin rather than end of fastbin array.
8586
8587 2006-10-18  Ulrich Drepper  <drepper@redhat.com>
8588
8589         * sysdeps/i386/i486/bits/atomic.h (catomic_decrement): Use correct
8590         body macro.
8591         * sysdeps/x86_64/bits/atomic.h
8592         (__arch_c_compare_and_exchange_val_64_acq): Add missing casts.
8593         (catomic_decrement): Use correct body macro.
8594
8595 2006-10-17  Jakub Jelinek  <jakub@redhat.com>
8596
8597         * include/atomic.h: Add a unique prefix to all local variables
8598         in macros.
8599         * csu/tst-atomic.c (do_test): Test also catomic_* macros.
8600
8601 2006-10-16  Ulrich Drepper  <drepper@redhat.com>
8602
8603         [BZ #3369]
8604         * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Fix typos in rules 4
8605         and 7.
8606
8607 2006-10-14  Ulrich Drepper  <drepper@redhat.com>
8608
8609         * resolv/arpa/nameser.h: Document that ns_t_a6 is deprecated.
8610
8611 2006-10-13  Ulrich Drepper  <drepper@redhat.com>
8612
8613         [BZ #3313]
8614         * malloc/malloc.c (malloc_consolidate): Don't use get_fast_max to
8615         determine highest fast bin to consolidate, always look into all of
8616         them.
8617         (do_check_malloc_state): Only require for empty bins for large
8618         sizes in main arena.
8619
8620         * libio/stdio.h: Add more __wur attributes.
8621
8622         * elf/dl-minimal.c (realloc): Optimize last patch.
8623
8624 2006-10-12  Richard Sandiford  <richard@codesourcery.com>
8625
8626         [BZ #3352]
8627         * elf/dl-minimal.c (realloc): Let malloc() return a new pointer,
8628         and use memcpy() if it does.
8629
8630 2006-11-12  Andreas Jaeger  <aj@suse.de>
8631
8632         [BZ #2510]
8633         * manual/search.texi (Hash Search Function): Clarify.
8634         (Array Search Function): Clarify.
8635
8636 2006-11-12  Joseph Myers  <joseph@codesourcery.com>
8637
8638         [BZ #2830]
8639         * math/atest-exp.c (main): Cast hex value to mp_limb_t before
8640         shifting.
8641         * math/atest-exp2.c (read_mpn_hex): Likewise.
8642         * math/atest-sincos.c (main): Likewise.
8643
8644 2006-10-11  Ulrich Drepper  <drepper@redhat.com>
8645
8646         * sysdeps/unix/sysv/linux/syscalls.list: Add epoll_pwait.
8647         * sysdeps/unix/sysv/linux/sys/epoll.h: Declare epoll_pwait.
8648         * sysdeps/unix/sysv/linux/Versions (libc): Add epoll_pwait for
8649         version GLIBC_2.6.
8650         * Versions.def: Add GLIBC_2.6 for libc.
8651
8652         * sysdeps/unix/sysv/linux/i386/sysdep.h (DOARGS_6): Fix offset.
8653
8654         * sysdeps/i386/i486/bits/atomic.h: Add catomic_* support.
8655
8656 2006-10-11  Jakub Jelinek  <jakub@redhat.com>
8657
8658         * malloc/malloc.c (_int_malloc): Remove unused any_larger variable.
8659
8660         * nis/nis_defaults.c (__nis_default_access): Don't call getenv twice.
8661
8662         * nis/nis_subr.c (nis_getnames): Use __secure_getenv instead of getenv.
8663         * sysdeps/generic/unsecvars.h: Add NIS_PATH.
8664
8665 2006-10-11  Ulrich Drepper  <drepper@redhat.com>
8666
8667         * include/atomic.c: Define catomic_* operations.
8668         * sysdeps/x86_64/bits/atomic.h: Likewise.  Fix a few minor problems.
8669         * stdlib/cxa_finalize.c: Use catomic_* operations instead of atomic_*.
8670         * malloc/memusage.c: Likewise.
8671         * gmon/mcount.c: Likewise.
8672         * elf/dl-close.c: Likewise.
8673         * elf/dl-open.c: Likewise.
8674         * elf/dl-profile.c: Likewise.
8675         * elf/dl-sym.c: Likewise.
8676         * elf/dl-runtime.c: Likewise.
8677         * elf/dl-fptr.c: Likewise.
8678         * resolv/res_libc.c: Likewise.
8679
8680 2006-10-10  Ulrich Drepper  <drepper@redhat.com>
8681
8682         * nis/nis_subr.c (nis_getnames): Add trailing dot to NIS_PATH
8683         components which lack them.
8684
8685         * nis/nis_subr.c (nis_getnames): Make sure that we always return
8686         at least one entry consisting of the parameter concatenated with
8687         the domain.
8688
8689 2006-10-10  Roland McGrath  <roland@frob.com>
8690
8691         * sysdeps/mach/hurd/utimes.c: Use a union to avoid an improper cast.
8692         * sysdeps/mach/hurd/futimes.c: Likewise.
8693         * sysdeps/mach/hurd/lutimes.c: Likewise.
8694
8695 2006-10-09  Ulrich Drepper  <drepper@redhat.com>
8696             Jakub Jelinek  <jakub@redhat.com>
8697
8698         Implement reference counting of scope records.
8699         * elf/dl-close.c (_dl_close): Remove all scopes from removed objects
8700         from the list in objects which remain.  Always allocate new scope
8701         record.
8702         * elf/dl-open.c (dl_open_worker): When growing array for scopes,
8703         don't resize, allocate a new one.
8704         * elf/dl-runtime.c: Update reference counters before using a scope
8705         array.
8706         * elf/dl-sym.c: Likewise.
8707         * elf/dl-libc.c: Adjust for l_scope name change.
8708         * elf/dl-load.c: Likewise.
8709         * elf/dl-object.c: Likewise.
8710         * elf/rtld.c: Likewise.
8711         * include/link.h: Include <rtld-lowlevel.h>.  Define struct
8712         r_scoperec.  Replace r_scope with pointer to r_scoperec structure.
8713         Add l_scoperec_lock.
8714         * sysdeps/generic/ldsodefs.h: Include <rtld-lowlevel.h>.
8715         * sysdeps/generic/rtld-lowlevel.h: New file.
8716
8717         * include/atomic.h: Rename atomic_and to atomic_and_val and
8718         atomic_or to atomic_or_val.  Define new macros atomic_and and
8719         atomic_or which do not return values.
8720         * sysdeps/x86_64/bits/atomic.h: Define atomic_and and atomic_or.
8721         Various cleanups.
8722         * sysdeps/i386/i486/bits/atomic.h: Likewise.
8723
8724         * po/sv.po: Update from translation team.
8725
8726 2006-10-07  Ulrich Drepper  <drepper@redhat.com>
8727
8728         * Versions.def: Add GLIBC_2.6 to libpthread.
8729
8730         * include/shlib-compat.h (SHLIB_COMPAT): Expand parameters before use.
8731         (versioned_symbol): Likewise.
8732         (compat_symbol): Likewise.
8733
8734         * po/tr.po: Update from translation team.
8735
8736 2006-10-06  Ulrich Drepper  <drepper@redhat.com>
8737
8738         * nis/Banner: Removed.  It's been integral part forever and the
8739         author info is incomplete anyway.
8740         * libio/Banner: Likewise.
8741
8742         * nis/nis_table.c (nis_list): If __follow_path fails in the new
8743         code, make sure the nis_freeresult call doesn't crash and that the
8744         result is reported correctly.
8745
8746 2006-09-27  Jakub Jelinek  <jakub@redhat.com>
8747
8748         * nis/nis_table.c (nis_list): Handle FOLLOW_PATH | ALL_RESULTS
8749         when callback is NULL.
8750
8751         * nis/Versions (libnss_nisplus): Add
8752         _nss_nisplus_initgroups_dyn@@GLIBC_PRIVATE.
8753         * nis/Makefile (libnss_nisplus-routines): Add nisplus-initgroups.
8754         * nis/nss_nisplus/nisplus-grp.c (tablename_val, tablename_len,
8755         _nss_create_tablename): Rename to...
8756         (grp_tablename_val, grp_tablename_len, _nss_grp_create_tablename):
8757         ... these.  No longer static.
8758         (internal_setgrent): Adjust users.
8759         (_nss_nisplus_getgrnam_r, _nss_nisplus_getgrgid_r): Likewise.
8760         Don't use locking around _nss_grp_create_tablename call.
8761         * nis/nss_nisplus/nisplus-initgroups.c: New file.
8762
8763 2006-10-06  Ulrich Drepper  <drepper@redhat.com>
8764
8765         * version.h (VERSION): Bump to 2.5.90 for new development tree.
8766
8767 2006-10-06  Andreas Jaeger  <aj@suse.de>
8768
8769         * include/features.h (__GLIBC_MINOR__): It's glibc 2.5 now.
8770
8771 2006-10-06  Ulrich Drepper  <drepper@redhat.com>
8772
8773         * po/pl.po: Update from translation team.
8774
8775         * nscd/nscd.c (main): Fix typo in message.
8776         Patch by Jakub Bogsz <qboosh@pld-linux.org>.
8777
8778 2006-10-02  Jakub Jelinek  <jakub@redhat.com>
8779
8780         [BZ #3291]
8781         * sysdeps/unix/sysv/linux/sparc/sparc64/pause.c: Include
8782         errno.h, signal.h, unistd.h and sysdep-cancel.h.
8783         (__sigprocmask): Define.
8784
8785 2006-10-02  Ulrich Drepper  <drepper@redhat.com>
8786
8787         * elf/rtld.c (dl_main): Don't use prelinking if LD_DYNAMIC_WEAK is
8788         used.
8789
8790 2006-10-02  Jakub Jelinek  <jakub@redhat.com>
8791
8792         * nscd/mem.c (mempool_alloc): Round array size to 16 bytes
8793         in oldtotal and newtotal calculation.
8794         * nscd/nscd-client.h (struct mapped_database): Add datasize
8795         field.
8796         * nscd/nscd_helper.c (get_mapping): Initialize datasize field.
8797         (__nscd_get_map_ref): Get a new mapping even if mapping's data_size
8798         increased.
8799         (__nscd_cache_search): Add checks to make sure we never reference
8800         data beyond the current mapping.
8801
8802 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
8803
8804         * sysdeps/posix/getaddrinfo.c (match_prefix): Make mask and val
8805         variables const to avoid compiler warnings.
8806
8807         * io/fts.c (fts_close): Remove redundant checks.
8808         (fts_build): Likewise.
8809         (fts_palloc): Likewise.
8810
8811         * manual/message.texi (Advanced gettext functions,
8812         Using gettextized software): Fix typos.
8813
8814 2006-09-30  Ulrich Drepper  <drepper@redhat.com>
8815
8816         * posix/glob.c (glob_in_dir): Add some comments and asserts to
8817         explain why there are no leaks.
8818
8819 2006-09-29  Ulrich Drepper  <drepper@redhat.com>
8820
8821         * libio/wmemstream.c: Include <wchar.h>.
8822         * libio/bug-wmemstream1.c: Likewise.
8823         * libio/tst-wmemstream1.c: Likewise.
8824         * libio/tst-wmemstream2.c: Likewise.
8825
8826         * version.h (RELEASE): Bump to 2.5.
8827         * README: Regenerated.
8828
8829         * locale/iso-3166.def: Add Aaland Islands and Montenegro.
8830
8831         [BZ #3273]
8832         * nscd/nscd_initgroups.c (__nscd_getgrouplist): It is OK to have
8833         found no group members.
8834         Patch by Petr Baudis.
8835
8836 2006-09-29  Jakub Jelinek  <jakub@redhat.com>
8837
8838         * elf/rtld.c (_dl_start_final): If not USE___THREAD, don't
8839         assert bootstrap_map.l_tls_modid is zero.
8840         (_dl_start): Initialize bootstrap_map.l_tls_modid to 0
8841         if USE___THREAD.
8842
8843 2006-09-27  Ulrich Drepper  <drepper@redhat.com>
8844
8845         * libio/stdio.h: Move open_wmemstream prototype to ...
8846         * wcsmbs/wchar.h: ... here.
8847
8848 2006-09-25  Jakub Jelinek  <jakub@redhat.com>
8849
8850         [BZ #3252]
8851         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat): Handle only
8852         fchownat syscall and __ASSUME_LCHOWN_SYSCALL case inline, call
8853         __{,l}chown to handle the rest.
8854         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Handle only
8855         fchownat syscall and __ASSUME_32BITUIDS case inline, call
8856         __{,l}chown to handle the rest.
8857         * sysdeps/unix/sysv/linux/sparc/sparc32/fchownat.c: Include
8858         i386/fchownat.c.
8859         * sysdeps/unix/sysv/linux/s390/s390-32/fchownat.c: Likewise.
8860         * sysdeps/unix/sysv/linux/sh/fchownat.c: Likewise.
8861
8862         [BZ #3253]
8863         * posix/glob.c (glob_in_dir): Don't alloca one struct globlink at a
8864         time, rather allocate increasingly bigger arrays of pointers, if
8865         possible with alloca, if too large with malloc.
8866
8867 2006-09-24  Jakub Jelinek  <jakub@redhat.com>
8868
8869         * sysdeps/powerpc/fpu/libm-test-ulps: Updated.
8870
8871         * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Fix 2 typos.
8872
8873 2006-09-24  Ulrich Drepper  <drepper@redhat.com>
8874
8875         * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Implement rule 4,
8876         home addresses.
8877         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Recognize
8878         IFA_F_HOMEADDRESS flag for interfaces.
8879         * include/ifaddrs.h (struct in6addrinfo): Define
8880         in6ai_homeaddress.
8881
8882 2006-09-21  Jakub Jelinek  <jakub@redhat.com>
8883
8884         [BZ #3225]
8885         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (PTR_MANGLE3,
8886         PTR_DEMANGLE3): Define.
8887         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h (PTR_MANGLE3,
8888         PTR_DEMANGLE3): Likewise.
8889         * sysdeps/powerpc/powerpc32/__longjmp-common.S (__longjmp): Use them.
8890         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp):
8891         Likewise.
8892         * sysdeps/powerpc/powerpc64/__longjmp-common.S (__longjmp): Likewise.
8893
8894 2006-09-20  Jakub Jelinek  <jakub@redhat.com>
8895
8896         * po/libc.pot: Regenerated.
8897         * po/be.po: Updated.
8898         * po/ca.po: Likewise.
8899         * po/cs.po: Likewise.
8900         * po/da.po: Likewise.
8901         * po/de.po: Likewise.
8902         * po/el.po: Likewise.
8903         * po/en_GB.po: Likewise.
8904         * po/es.po: Likewise.
8905         * po/fi.po: Likewise.
8906         * po/fr.po: Likewise.
8907         * po/gl.po: Likewise.
8908         * po/hr.po: Likewise.
8909         * po/hu.po: Likewise.
8910         * po/ja.po: Likewise.
8911         * po/ko.po: Likewise.
8912         * po/nb.po: Likewise.
8913         * po/nl.po: Likewise.
8914         * po/pl.po: Likewise.
8915         * po/pt_BR.po: Likewise.
8916         * po/ru.po: Likewise.
8917         * po/rw.po: Likewise.
8918         * po/sk.po: Likewise.
8919         * po/sv.po: Likewise.
8920         * po/tr.po: Likewise.
8921         * po/zh_CN.po: Likewise.
8922         * po/zh_TW.po: Likewise.
8923
8924         [BZ #3137]
8925         * iconv/iconv_prog.c (main): Fix spelling in error message.
8926         * iconv/iconvconfig.c (main): Likewise.
8927         * locale/programs/ld-collate.c (handle_ellipsis): Likewise.
8928         * locale/programs/ld-ctype.c (charclass_symbolic_ellipsis): Likewise.
8929         * locale/programs/localedef.c (main): Likewise.
8930         * locale/programs/repertoire.c (repertoire_read): Likewise.
8931         * timezone/zdump.c (main): Likewise.
8932         * nscd/connections.c (handle_request): Fix spelling in log message.
8933         Patch by Malcolm Parsons <malcolm.parsons@gmail.com>.
8934
8935 2006-09-20  Ulrich Drepper  <drepper@redhat.com>
8936
8937         * inet/inet6_option.c: Also emit linker warnings for the RFC 2292
8938         interfaces.
8939
8940 2006-09-20  Andreas Jaeger  <aj@suse.de>
8941
8942         * math/libm-test.inc (lrint_test_upward): Fix typo.
8943
8944 2006-06-17  Joseph S. Myers  <joseph@codesourcery.com>
8945
8946         [BZ #2592]
8947         * math/libm-test.inc (lrint_test_tonearest): New function.
8948         (lrint_test_towardzero): New function.
8949         (lrint_test_downward): New function.
8950         (lrint_test_upward): New function.
8951         (main): Run these new tests.
8952         * sysdeps/ieee754/dbl-64/s_llrint.c (__llrint): Correct rounding
8953         of values near to 0.
8954         (two52): Use double not long double.
8955         * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Likewise.
8956         * sysdeps/ieee754/flt-32/s_llrintf.c (__llrintf): Likewise.
8957         (two23): Use float not double.
8958         * sysdeps/ieee754/flt-32/s_lrintf.c (__lrintf): Likewise.
8959         (two23): Use float not double.
8960         * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl): Likewise.
8961         * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Likewise.
8962         * sysdeps/ieee754/ldbl-96/s_llrintl.c (__llrintl): Likewise.
8963         * sysdeps/ieee754/ldbl-96/s_lrintl.c (__lrintl): Likewise.
8964
8965 2006-09-20  Martin Schwidefsky  <schwidefsky@de.ibm.com>
8966
8967         * sysdeps/unix/sysv/linux/s390/s390-32/makecontext.c (__makecontext):
8968         Cast sp to unsigned long to avoid compiler warning.
8969         Use __makecontext_ret function instead of a trampoline on the stack.
8970         (__makecontext_ret): New function.
8971         * sysdeps/unix/sysv/linux/s390/s390-64/makecontext.c: Likewise.
8972
8973 2006-09-19  Jakub Jelinek  <jakub@redhat.com>
8974
8975         * elf/dl-cache.c (HWCAP_CHECK): If _DL_PLATFORMS_COUNT, but
8976         platform == -1, reject any libs with non-zero _DL_HWCAP_PLATFORM
8977         bits.
8978
8979 2006-09-19  Ulrich Drepper  <drepper@redhat.com>
8980
8981         * elf/dl-close.c (_dl_close): If dependency is not unloaded make
8982         sure no reference to the unloaded map's search list remains in the
8983         dependency's scope.
8984
8985 2006-09-16  Jakub Jelinek  <jakub@redhat.com>
8986
8987         * elf/Makefile: Add rules to build and run unload7 test.
8988         * elf/unload7.c: New test.
8989         * elf/unload7mod1.c: New file.
8990         * elf/unload7mod2.c: New file.
8991
8992 2006-09-18  Jakub Jelinek  <jakub@redhat.com>
8993
8994         * sysdeps/unix/sysv/linux/sys/ptrace.h (PT_GETEVENTMSG): Fix pasto.
8995         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h (PTRACE_SETOPTIONS,
8996         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
8997         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h (PTRACE_SETOPTIONS,
8998         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Likewise.
8999         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h (PTRACE_SETOPTIONS,
9000         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Likewise.
9001         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h (PTRACE_SETOPTIONS,
9002         PTRACE_GETEVENTMSG): Likewise.
9003         (PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Change to the arch independent
9004         values.
9005
9006 2006-09-17  Mike Frysinger  <vapier@gentoo.org>
9007
9008         * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_SETOPTIONS,
9009         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
9010         * sysdeps/unix/sysv/linux/ptrace.c (ptrace): Check PTRACE_SETOPTIONS,
9011         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO and PTRACE_SETSIGINFO.
9012
9013 2006-09-16  Jakub Jelinek  <jakub@redhat.com>
9014
9015         * sysdeps/powerpc/powerpc32/register-dump.h (register_dump): Don't
9016         write '\0' to the fd.
9017         * sysdeps/mach/hurd/powerpc/register-dump.h (register_dump): Likewise.
9018         * sysdeps/powerpc/powerpc64/register-dump.h (register_dump): Likewise.
9019         Change regs to unsigned long pointer from unsigned int, fix fscr
9020         offset.
9021
9022 2006-09-14  Jakub Jelinek  <jakub@redhat.com>
9023
9024         * io/Makefile (CFLAGS-fstatat.c): Set.
9025         (CFLAGS-fstatat64.c): Likewise.
9026         (CFLAGS-mknodat.c): Likewise.
9027
9028         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Comment fixes.
9029         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
9030         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Rewritten.
9031         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Rewritten.
9032
9033 2006-09-14  Jakub Jelinek  <jakub@redhat.com>
9034             Steven Munroe  <sjmunroe@us.ibm.com>
9035
9036         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add 4 new cap
9037         names to the beginning.  Rename "cell" to "cellbe".
9038         (_dl_powerpc_platforms): New.
9039         * sysdeps/powerpc/dl-procinfo.h (_DL_HWCAP_FIRST): Decrease.
9040         (HWCAP_IMPORTANT): Remove power{4,5,5+} and cell.
9041         (_DL_PLATFORMS_COUNT, _DL_FIRST_PLATFORM): Define.
9042         (_DL_HWCAP_PLATFORM): Define to new mask.
9043         (_dl_platform_string, _dl_string_platform): New functions.
9044         * sysdeps/powerpc/sysdep.h (PPC_FEATURE_BOOKE, PPC_FEATURE_SMT,
9045         PPC_FEATURE_ICACHE_SNOOP, PPC_FEATURE_ARCH_2_05): Define.
9046
9047 2006-09-12  Jakub Jelinek  <jakub@redhat.com>
9048
9049         [BZ #2526]
9050         * README.libm: Fix a thinko in sqrt algorithm description.
9051
9052         [BZ #3143]
9053         * manual/string.texi (argz_delete): Fix prototype.
9054         Patch by <alpt@freaknet.org>.
9055
9056 2006-08-26  Joseph Myers  <joseph@codesourcery.com>
9057
9058         [BZ #3138]
9059         * io/test-lfs.c (do_prepare): Give name_len type size_t.
9060         * io/tst-fcntl.c (do_prepare): Likewise.
9061         * posix/tst-exec.c (do_prepare): Likewise.
9062         * posix/tst-preadwrite.c (do_prepare): Likewise.
9063         * posix/tst-spawn.c (do_prepare): Likewise.
9064         * posix/tst-truncate.c (do_prepare): Likewise.
9065         * rt/tst-aio.c (do_prepare): Likewise.
9066         * rt/tst-aio64.c (do_prepare): Likewise.
9067         * stdlib/test-canon2.c (do_prepare): Give test_dir_len type
9068         size_t.
9069
9070 2006-09-09  Ulrich Drepper  <drepper@redhat.com>
9071
9072         [BZ #2821]
9073         * time/mktime.c (guess_time_tm): Fix overflow detection.
9074         * time/Makefile (tests): Add bug-mktime1.
9075         * time/bug-mktime1.c: New file.
9076
9077         [BZ #3189, #3188]
9078         * misc/sys/mman.h (remap_file_pages): Make available for _GNU_SOURCE.
9079         (mremap): Likewise.
9080
9081 2006-09-07  Jakub Jelinek  <jakub@redhat.com>
9082
9083         [BZ #1006]
9084         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela):
9085         Ensure relocation doesn't clobber any bits outside of the
9086         immediate field for R_SPARC_TLS_LE_HIX22, R_SPARC_WDISP30,
9087         R_SPARC_HI22 and R_SPARC_H44.
9088
9089         [BZ #2775]
9090         * malloc/malloc.c (sYSMALLOc): Only call grow_heap if
9091         (long) (MINSIZE + nb - old_size) is positive.
9092
9093         * malloc/arena.c (grow_heap): When growing bail even if new_size
9094         is negative.
9095
9096         [BZ #3155]
9097         * sysdeps/powerpc/powerpc32/fpu/s_lrint.S (__lrint): Don't access
9098         stack below r1.
9099
9100 2006-09-06  Jakub Jelinek  <jakub@redhat.com>
9101
9102         * posix/regex_internal.c (re_string_reconstruct): Handle
9103         offset < pstr->valid_raw_len && pstr->offsets_needed case.
9104         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
9105         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
9106         re_string_context_at.
9107         * posix/Makefile: Add rules to build and run bug-regex26 test.
9108         * posix/bug-regex26.c: New test.
9109
9110         * locale/programs/ld-collate.c (collate_read): Goto sym_equiv_free
9111         rather than col_sym_free.  Move seqp declaration earlier.
9112
9113         * resolv/gai_suspend.c (gai_suspend): Make sure result is initialized.
9114
9115 2006-09-05  Jakub Jelinek  <jakub@redhat.com>
9116
9117         * nscd/initgrcache.c (addinitgroupsX): Move any_success
9118         decl before first goto out.
9119
9120 2006-09-04  Jakub Jelinek  <jakub@redhat.com>
9121
9122         * Makerules (shlib.lds): If have-hash-style, put .hash section
9123         at the end of the RO segment.
9124
9125 2006-09-04  Ulrich Drepper  <drepper@redhat.com>
9126
9127         * elf/do-lookup.h (do_lookup_x): Initialize symidx in case the new
9128         style hash table format is used.
9129
9130 2006-09-04  Jakub Jelinek  <jakub@redhat.com>
9131
9132         * resolv/res_mkquery.c (res_nmkquery): Set hp->id to statp->id after
9133         randomization rather than before.
9134         * resolv/res_init.c (res_randomid): Don't call gettimeofday here.
9135
9136 2006-08-31  Jakub Jelinek  <jakub@redhat.com>
9137
9138         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Add ld.so.
9139
9140         * malloc/malloc.c (_int_malloc): Use full list insert and not
9141         shortcut which assumes the list is empty for large requests
9142         too.
9143
9144         * elf/tst-addr1.c (do_test): Allow i.dli_sname "_IO_printf".
9145
9146 2006-08-30  Jakub Jelinek  <jakub@redhat.com>
9147
9148         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (splice): Add offin
9149         and offout arguments to the prototype.
9150         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (splice): Likewise.
9151         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h (splice): Likewise.
9152         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (splice): Likewise.
9153         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h (splice): Likewise.
9154         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h (splice): Likewise.
9155         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (splice): Likewise.
9156         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h (splice): Likewise.
9157         * sysdeps/unix/sysv/linux/syscalls.list (splice): Adjust args string.
9158
9159 2006-08-28  Ulrich Drepper  <drepper@redhat.com>
9160
9161         * elf/dl-load.c (_dl_init_paths): Expand DSTs.
9162
9163         * elf/dl-open.c (dl_open_worker): Allow $LIB and $PLATFORM in
9164         dlopen parameters.
9165
9166 2006-08-28  Jakub Jelinek  <jakub@redhat.com>
9167
9168         * inet/getnameinfo.c (getnameinfo): For AF_INET, check errno
9169         only if herrno is NETDB_INTERNAL.  Handle errors other than
9170         ERANGE outside of the loops, handle TRY_AGAIN.
9171
9172         * locale/programs/ld-ctype.c (translit_flatten): Issue error
9173         if other's ctype category was missing.
9174         * locale/programs/ld-collate.c (collate_read): Return if
9175         copy_locale's collate category is missing.
9176
9177 2006-08-27  Ulrich Drepper  <drepper@redhat.com>
9178
9179         [BZ #2684]
9180         * malloc/malloc.c (public_rEALLOc): Try harder by using other
9181         arenas if allocation failed.
9182         Patch mostly by Jan Edler <jan.edler@indexengines.com>.
9183
9184 2006-08-26  Ulrich Drepper  <drepper@redhat.com>
9185
9186         * malloc/malloc.c (bin_at): Rewrite to be more clear and to not
9187         waste bins[0..1].
9188         (malloc_state): Reduce bins size by 2.
9189         (_int_malloc): Fix test for large enough buffer for early termination.
9190         When no unsorted block matches perfectly and an exiting block has
9191         to be split, use full list insert and not shortcut which assumes
9192         the list is empty.
9193
9194         * locale/programs/ld-ctype.c (ctype_read): Better patch for read
9195         failure.
9196
9197 2006-08-24  Ulrich Drepper  <drepper@redhat.com>
9198
9199         * locale/programs/ld-ctype.c (ctype_read): If CTYPE is NULL, don't
9200         do anything.
9201
9202         * sysdeps/generic/ldsodefs.h (DL_ADDR_SYM_MATCH): For undefined
9203         symbol require exact match (these are PLTs).
9204         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ldsodefs.h
9205         (_dl_ppc64_addr_sym_match): Likewise.
9206
9207         [BZ #2683]
9208         * elf/dl-addr.c (_dl_addr): Don't ignore all undefined symbols.
9209         If symbol has a value use it.
9210         * elf/tst-dladdr1.c: New file.
9211         * elf/Makefile: Add rules to build and run tst-addr1.
9212
9213 2006-08-24  Jakub Jelinek  <jakub@redhat.com>
9214
9215         * malloc/malloc.c (sYSMALLOc): Avoid infinite loop if MMAP
9216         keeps failing and heap growth or new heap creation isn't
9217         successful either.
9218         * malloc/tst-malloc.c (main): Add new tests.
9219
9220 2006-08-24  Ulrich Drepper  <drepper@redhat.com>
9221
9222         [BZ #2734]
9223         * sysdeps/i386/bits/byteswap.h (__bswap_32): Use same conditions
9224         as in the x86-64 code to use bswap.
9225
9226 2006-05-21  Joseph S. Myers  <joseph@codesourcery.com>
9227
9228         [BZ #2680]
9229         * posix/unistd.h (getlogin_r): Condition on __USE_POSIX199506, not
9230         __USE_UNIX98.
9231         * posix/bits/unistd.h: Likewise.
9232
9233 2006-05-15  Mike Frysinger  <vapier@gentoo.org>
9234
9235         [BZ #2751]
9236         * string/strchr.c: Add cast to avoid warning.
9237
9238 2006-08-21  Ulrich Drepper  <drepper@redhat.com>
9239
9240         * malloc/malloc.c (DEFAULT_MMAP_THRESHOLD_MAX): For 32-bit
9241         platforms define as 512K.  For 64-bit platforms as 32MB.  The lower
9242         limit is needed to avoid the exploding of the address space
9243         requirement for secondary heaps.
9244         * malloc/arena.c (HEAP_MAX_SIZE): Define using
9245         DEFAULT_MMAP_THRESHOLD_MAX if it is defined.
9246
9247 2006-07-30  Joseph S. Myers  <joseph@codesourcery.com>
9248
9249         [BZ #3018]
9250         * Makerules (depfiles): Handle extra-test-objs the same as
9251         extra-objs.
9252         (common-mostlyclean): Likewise.
9253         * dlfcn/Makefile (extra-objs): Add modules to extra-test-objs
9254         instead.
9255         * elf/Makefile (extra-objs): Likewise.
9256         * stdlib/Makefile (extra-objs): Likewise.
9257
9258 2006-08-14  Eric Blake  <ebb9@byu.net>
9259
9260         [BZ #3044]
9261         * misc/error.h: Assume C89 or better.
9262         * misc/error.c: Likewise.
9263
9264 2006-08-21  Ulrich Drepper  <drepper@redhat.com>
9265
9266         [BZ #3040]
9267         * sysdeps/unix/sysv/linux/openat.c: Fix compilation if
9268         __ASSUME_ATFCTS is defined.
9269
9270 2006-08-19  Ulrich Drepper  <drepper@redhat.com>
9271
9272         * malloc/malloc.c (_int_malloc): Limit number of unsorted blocks
9273         to sort in each call.
9274
9275         * nis/nss_nis/nis-service.c (internal_nis_getservent_r): . If map
9276         is empty simply return and use next service.
9277         * nis/nss_nis/nis-rpc.c (internal_nis_getrpcent_r): Likewise.
9278
9279         * locale/programs/charmap.c (charmap_read): Add new parameter.  It
9280         tells us when not finding a charmap file is an error.
9281         * locale/programs/charmap.h: Adjust charmap_read prototype.
9282         * iconv/iconv_prog.c (main): Tell charmap_read it's no error if we
9283         cannot find a charmap.
9284         * locale/programs/localedef.c (main): Adjust charmap_read call.
9285
9286 2006-08-15  Jakub Jelinek  <jakub@redhat.com>
9287
9288         * sysdeps/unix/sysv/linux/sparc/sparc64/pause.c: Use
9289         sysdeps/posix/pause.c implementation instead.
9290
9291 2006-08-09  Jakub Jelinek  <jakub@redhat.com>
9292
9293         * sysdeps/unix/nice.c (nice): Transform EACCES errno from setpriority
9294         to EPERM.
9295
9296 2006-08-13  Andreas Schwab  <schwab@suse.de>
9297
9298         * sysdeps/powerpc/powerpc32/dl-trampoline.S (_dl_runtime_resolve):
9299         Don't clobber caller's LRSAVE.
9300         (_dl_prof_resolve): Likewise.
9301
9302 2006-08-14  Ulrich Drepper  <drepper@redhat.com>
9303
9304         [BZ #1996]
9305         * libio/memstream.c (open_memstream): Allocate initial buffer with
9306         calloc.
9307         * libio/wmemstream.c (open_wmemstream): Likewise.
9308         * libio/strops.c: Pretty printing.
9309         (_IO_str_overflow): Clear uninitialized part of the new buffer.
9310         (enlarge_userbuf): New function.
9311         (_IO_str_seekoff): Call it if seek position is larger than current
9312         buffer.
9313         * libio/wstrops.c: Likewise.
9314         * libio/vasprintf.c: Add comment as to why we do not have to use
9315         calloc instead of malloc to allocate initial buffer.
9316         * libio/Makefile (tests): Add bug-memstream1 and bug-wmemstream1.
9317         * libio/bug-memstream1.c: New file.
9318         * libio/bug-wmemstream1.c: New file.
9319
9320 2006-08-13  Ulrich Drepper  <drepper@redhat.com>
9321
9322         * libio/wstrops.c: Remove dead macro definitions and comments.
9323         * libio/strops.c: Likewise.
9324
9325         [BZ #2764]
9326         * login/utmpname.c (__utmpname): Remove unnecessary test.
9327
9328 2006-06-08  Joseph Myers  <jsm28@gcc.gnu.org>
9329
9330         [BZ #2832]
9331         * math/gen-libm-test.pl (clean_up_number): Do not remove trailing
9332         0s from integers.
9333
9334 2006-08-13  Ulrich Drepper  <drepper@redhat.com>
9335
9336         [BZ #2987]
9337         * sysdeps/unix/sysv/linux/clock_settime.c: Add code to use syscall
9338         for CPU clocks.
9339         * sysdeps/unix/clock_settime.c: Add support for platform-specific
9340         setting of CPU clocks.
9341
9342 2006-06-23  Paul Eggert  <eggert@cs.ucla.edu>
9343
9344         [BZ #2841]
9345         * sysdeps/generic/stdint.h (UINT8_C, UINT16_C): Don't append 'U',
9346         since C99 requires the result to promote to 'int' when uint_least8_t
9347         and uint_least16_t promote to 'int'.
9348
9349 2006-08-12  Ulrich Drepper  <drepper@redhat.com>
9350
9351         [BZ #3013]
9352         * locale/programs/ld-ctype.c (ctype_output): Adjust alignments, fix
9353         lenght of one output field, correct bitmask creation.
9354         * locale/programs/ld-time.c: Add alignment.
9355
9356         [BZ #2997]
9357         * misc/error.c: Add space between program name and message if file
9358         name is missing.
9359
9360 2006-08-03  Eric Blake  <ebb9@byu.net>
9361
9362         [BZ #2998]
9363         * misc/error.c (error_tail) [_LIBC]: Avoid invalid free.
9364
9365 2006-08-09  Ulrich Drepper  <drepper@redhat.com>
9366
9367         * malloc/memusagestat.c: Silence warnings.
9368
9369         * malloc/malloc.c: Dynamically size mmap treshold if the program
9370         frees mmaped blocks.
9371         Patch by Valerie Henson and Arjan van de Ven.
9372
9373 2006-08-08  Jakub Jelinek  <jakub@redhat.com>
9374
9375         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (O_DIRECT): Protect with
9376         __USE_GNU.
9377
9378         * stdlib/strtol_l.c (__strtol_ul_max_tab, __strtol_ul_rem_tab,
9379         __strtol_ull_max_tab, __strtol_ull_rem_tab): Declare.
9380         (DEF): Don't put the var into .gnu.linkonce.r.* section.
9381         Only provide var definitions in strtol_l (or for *ull*
9382         in strtoll_l).
9383
9384         * stdio-common/bug16.c (tests): New array.
9385         (do_tests): Allow the first hexadecimal digit
9386         to be 1, 2, 4 or 8.  Do 3 additional tests.
9387
9388         * sysdeps/s390/fpu/libm-test-ulps: Update.
9389
9390         * sysdeps/unix/sysv/linux/s390/s390-32/fchownat.c (fchownat): Use
9391         fchownat syscall if available.
9392         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat): Likewise.
9393         * sysdeps/unix/sysv/linux/sh/fchownat.c (fchownat): Likewise.
9394         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Likewise.
9395
9396 2006-08-07  Ulrich Drepper  <drepper@redhat.com>
9397
9398         * nis/nis_xdr.c: Avoid some function calls.
9399
9400 2006-08-07  Jakub Jelinek  <jakub@redhat.com>
9401             Ulrich Drepper  <drepper@redhat.com>
9402
9403         * nis/nis_call.c (rec_dirsearch) [case LOWER_NAME]: Don't take
9404         short cut if only one name component is stripped away.
9405
9406 2006-08-07  Ulrich Drepper  <drepper@redhat.com>
9407
9408         * nis/nis_call.c: Minor cleanups throughout.
9409         (rec_dirsearch) [case HIGHER_NAME]: Correctly size ndomain array.
9410         (first_shoot): Add search_parent_first parameter.  Only if it is set
9411         search parent server first.
9412         If directory for table found through cold start cache is not the same
9413         as referenced in the cache, don't use it.
9414         (__nisfind_server): Take additional parameter.  Pass it on to
9415         first_shoot.
9416         (__prepare_niscall): Adjust __nisfind_server call.
9417         * nis/rpcsvc/nislib.h: Adjust __nisfind_server prototype.
9418         * nis/nis_table.c: Adjust __nisfind_server call.
9419         * nis/nis_lookup.c: Likewise.
9420         (nis_lookup): Don't loop endlessly if name is reduced to ".".
9421
9422 2006-08-03  Ulrich Drepper  <drepper@redhat.com>
9423
9424         [BZ #2182]
9425         * math/s_cacosh.c: Return values from positive branch.
9426         * math/s_cacoshf.c: Likewise.
9427         * math/s_cacoshl.c: Likewise.
9428
9429         [BZ #2883]
9430         * sysvipc/sys/msg.h: Change return value to ssize_t.
9431         * sysdeps/unix/sysv/linux/msgrcv.c: Likewise.
9432         * sysvipc/msgrcv.c: Likewise.
9433         * include/sys/msg.h: Likewise.
9434
9435         * grp/initgroups.c (internal_getgrouplist): Remove unnecessary
9436         test introduced in patch for bz #661.
9437         (getgrouplist): Simplify code a bit.  Don't allocate one additional
9438         element for NEWGROUPS.
9439
9440         [BZ #2908]
9441         * stdio-common/printf_fphex.c (__printf_fphex): When rounding up
9442         'f', use '1' as leading digit not '\1'.
9443         * stdio-common/Makefile (tests): Add bug16.
9444         * stdio-common/bug16.c: New file.
9445
9446         [BZ #2914]
9447         * sysdeps/unix/sysv/linux/gethostid.c: Don't define OLD_HOSTIDFILE
9448         and don't try to open it.  The patch introducing the macro
9449         contained a bug and used the same file name as the new file
9450         instead of using /var/adm/hostid.  Nobody complaint so I'm taking
9451         this out completely.
9452
9453         [BZ #2926]
9454         * assert/assert.h: Move cast to void inside ?: to quiet gcc.
9455         Patch by Jerry James <Jerry.James@usu.edu>.
9456
9457         * rt/Makefile (tests): Add tst-clock2.
9458         * rt/tst-clock2.c: New file.
9459
9460         [BZ #2978]
9461         * resolv/gai_notify.c (__gai_notify_only): Copy memory for thread
9462         function and its parameters and pass it to new thread.
9463         (__gai_notify): Add support for alternative waiting for completion.
9464         * resolv/gai_suspend.c (gai_suspend): Add support for alternative
9465         waiting for completion.
9466         * resolv/getaddrinfo_a.c: Likewise.
9467         * resolv/gai_misc.h (struct waitlist): Don't add cond if alternative
9468         waiting for completion is used.
9469         * resolv/gai_misc.c: Allow overwriting code to start helper thread.
9470         * resolv/gai_cancel.c: Include <gai_misc.h> not "gai_misc.h".
9471         * resolv/gai_error.c: Likewise.
9472         * resolv/gai_sigqueue.c: Likewise.
9473
9474 2006-08-02  Thomas Schwinge  <tschwinge@gnu.org>
9475
9476         * hurd/getdport.c (__getdport): Don't return EBADF; instead set
9477         errno to EBADF and return MACH_PORT_NULL.
9478
9479 2006-06-23  Joseph Myers  <joseph@codesourcery.com>
9480
9481         [BZ #2980]
9482         * posix/Makefile (CFLAGS-waitid.c): Add -fasynchronous-unwind-tables.
9483
9484 2006-08-02  Ulrich Drepper  <drepper@redhat.com>
9485
9486         * elf/dl-addr.c (_dl_addr): If GNU-style hash tables are present,
9487         walk them instead of the symbol table.
9488
9489 2006-08-01  Ulrich Drepper  <drepper@redhat.com>
9490
9491         [BZ #2098]
9492         * nscd/initgrcache.c (addinitgroupsX): Judge successful lookups by
9493         status of NSS calls, not the number of returned entries.
9494
9495         * sysdeps/unix/sysv/linux/syscalls.list: Remove add_key,
9496         request_key, keyctl.
9497
9498 2006-07-31  Ulrich Drepper  <drepper@redhat.com>
9499
9500         * sysdeps/unix/sysv/linux/dl-osinfo.h: Remove unnecessary include.
9501
9502 2006-07-16  Jeff Bailey  <jbailey@ubuntu.com>
9503
9504         * elf/tst-auditmod1.c: Fix typo in #error.
9505
9506 2006-07-31  Ulrich Drepper  <drepper@redhat.com>
9507
9508         * elf/tst-auditmod1.c: Remove code for unsupported architectures.
9509
9510         * iconvdata/run-iconv-test.sh: Run cmp in C locale.
9511
9512 2006-07-20  Adam Nemet  <anemet@caviumnetworks.com>
9513
9514         * stdlib/test-canon.c (do_test): Close fd before unlinking file so
9515         that the directory is empty even on non-POSIX filesystems.
9516
9517 2006-07-31  Ulrich Drepper  <drepper@redhat.com>
9518
9519         * elf/dl-open.c (dl_open_worker): Add branch prediction.
9520
9521         * nis/nss_compat/compat-grp.c: Avoid unnecessary setgrent calls into
9522         the backend NSS module.  If backend setgrent call failed, don't have
9523         internal_setgrent fail.  Just remember this until it is needed.
9524         * nis/nss_compat/compat-pwd.c: Likewise.
9525         * nis/nss_compat/compat-spwd.c: Likewise.
9526
9527 2006-07-30  Roland McGrath  <roland@redhat.com>
9528
9529         * sysdeps/unix/sysv/linux/ia64/sigsuspend.c: File removed.
9530         * sysdeps/unix/sysv/linux/x86_64/sigsuspend.c: File removed.
9531         * sysdeps/unix/sysv/linux/s390/s390-64/sigsuspend.c: File removed.
9532         * sysdeps/unix/sysv/linux/sparc/sparc64/sigsuspend.c: File removed.
9533
9534         * sysdeps/unix/sysv/linux/not-cancel.h (pause_not_cancel): New macro.
9535         (nanosleep_not_cancel): New macro.
9536         (sigsuspend_not_cancel): new macro.
9537         * sysdeps/unix/sysv/linux/sigsuspend.c [__ASSUME_REALTIME_SIGNALS]
9538         (do_sigsuspend): Define as inline.
9539         (__sigsuspend): Always use do_sigsuspend.
9540         [! NO_CANCELLATION] (__sigsuspend_nocancel): New function.
9541         * include/signal.h: Declare __sigsuspend_nocancel.
9542         * sysdeps/posix/pause.c
9543         [! NO_CANCELLATION] (__pause_nocancel): New function.
9544
9545         * include/unistd.h (__pause_nocancel): Add attribute_hidden.
9546         * include/time.h (__nanosleep_nocancel): Likewise.
9547
9548 2006-07-30  Ulrich Drepper  <drepper@redhat.com>
9549
9550         * locale/programs/localedef.c (add_to_readlist): Rename local
9551         variables to avoid confusion.
9552
9553         * locale/programs/charmap.c (charmap_read): Emit error message if
9554         charmap couldn't be found or read.
9555
9556 2006-07-28  Ulrich Drepper  <drepper@redhat.com>
9557
9558         * sysdeps/unix/sysv/linux/kernel-features.h: Define
9559         __ASSUME_FUTEX_LOCK_PI.
9560         * include/time.h: Declare __nanosleep_nocancel.
9561         * include/unistd.h: Declare __pause_nocancel.
9562
9563         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Use this instead of
9564         LDFLAGS.  Add -lgcc_eh and libc_nonshared (again) to make sure we
9565         get the __stack_chk_fail_local definition when it's needed.
9566
9567 2006-07-26  Ulrich Drepper  <drepper@redhat.com>
9568
9569         * dlfcn/Makefile: Add rules to build and run bug-atexit3.
9570         * dlfcn/bug-atexit3.c: New file.
9571         * dlfcn/bug-atexit3-lib.cc: New file.
9572
9573         * dlfcn/dlmopen.c (dlmopen_doit): Don't allow RTLD_GLOBAL to be
9574         used when the namespace is not the base namespace.
9575
9576 2006-07-26  Gavin Romig-Koch  <gavin@redhat.com>
9577
9578         * stdlib/cxa_atexit.c (__new_exitfn_called): New variable.
9579         (__new_exitfn): Bump it in every successful call.
9580         * stdlib/cxa_finalize.c (__cxa_finalize): If destructor registered
9581         more exit handlers, call them right away.
9582         * stdlib/exit.h: Declare __new_exitfn_called.
9583
9584 2006-07-25  Ulrich Drepper  <drepper@redhat.com>
9585
9586         * stdlib/cxa_finalize.c (__cxa_finalize): Fix race condition when
9587         calling registered handler.
9588
9589         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Fix comment.
9590         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
9591         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
9592         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
9593         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
9594         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
9595         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
9596         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
9597
9598 2006-07-10  Ulrich Drepper  <drepper@redhat.com>
9599
9600         * elf/dl-lookup.c (dl_new_hash): New functions.
9601         (_dl_lookup_symbol_x): Rename hash to old_hash and don't compute
9602         value here.  Compute new-style hash value.  Pass new hash value
9603         and reference to variable with the old value to do_lookup_x.
9604         (_dl_setup_hash): If DT_GNU_HASH is defined, use it and not
9605         old-style hash table.
9606         (_dl_debug_bindings): Pass new hash value and reference to variable
9607         with the old value to do_lookup_x.
9608         * elf/do-lookup.h (do_lookup_x): Accept additional parameter with
9609         new-style hash value and change old-style hash value parameter to
9610         be a reference.  Reoganize functions to determine whether
9611         new-style hash table is available.  Only fall back on old-style
9612         table.  If old-style hash value is needed, compute it here.
9613         * elf/dynamic-link.h (elf_get_dynamic_info): Relocate DT_GNU_HASH
9614         entry.
9615         * elf/elf.h: Define SHT_GNU_HASH, DT_GNU_HASH, DT_TLSDEC_PLT,
9616         DT_TLSDEC_GOT.  Adjust DT_ADDRNUM.
9617         * include/link.h (struct link_map): Add l_gnu_bitmask_idxbits,
9618         l_gnu_shift, l_gnu_bitmask, l_gnu_buckets and l_gnu_chain_zero.
9619         * Makeconfig: If linker supports --hash-style option add it to all
9620         linker command lines to build DSOs.
9621         * config.make.in: Define have-hash-style.
9622         * configure.in: Test whether linker supports --hash-style option.
9623
9624         * elf/dl-misc.c (_dl_name_match_p): Make MAP parameter const.
9625         * sysdeps/generic/ldsodefs.h: Adjust prototype.
9626
9627 2006-06-27  Ulrich Drepper  <drepper@redhat.com>
9628
9629         * elf/dl-load.c (open_path): Fix test to determine whether DSO is
9630         auditing.
9631
9632         * elf/dl-load.c (_dl_map_object): Try harder to avoid looking at
9633         RPATH of main map twice.
9634
9635 2006-06-22  Ulrich Drepper  <drepper@redhat.com>
9636
9637         * intl/dcigettext.c (DCIGETTEXT): If _nl_find_msg returns -1 don't
9638         look further, return original strings.
9639         (_nl_find_msg): Do not return found translation if the conversion
9640         failed.  Either signal the string is unusable or that something went
9641         wrong and the original should be used.
9642
9643 2006-06-21  Ulrich Drepper  <drepper@redhat.com>
9644
9645         * string/_strerror.c (__strerror_r): Add __builtin_expect.
9646
9647 2006-06-14  Jakub Jelinek  <jakub@redhat.com>
9648
9649         [BZ #2766]
9650         * misc/insremque.c (insque): Handle prev == NULL.
9651         * misc/Makefile (tests): Add tst-insremque.
9652         * misc/tst-insremque.c: New test.
9653
9654 2006-06-17  Ulrich Drepper  <drepper@redhat.com>
9655
9656         [BZ #2792]
9657         * elf/dl-deps.c (expand_dst): Rename __cnt variable to not
9658         conflict with DL_DST_REQUIRED.
9659
9660 2006-06-16  Ulrich Drepper  <drepper@redhat.com>
9661
9662         * nis/nis_subr.c (nis_getnames): Fix the implementation to better
9663         match what Solaris does.
9664
9665 2006-06-04  Ulrich Drepper  <drepper@redhat.com>
9666
9667         * sysdeps/posix/spawni.c (__spawni): Use local_seteuid and
9668         local_setegid instead of seteuid and setegid.
9669         * sysdeps/generic/local-setxid.h: New file.
9670         * sysdeps/unix/sysv/linux/local-setxid.h: New file.
9671
9672         * sysdeps/posix/spawni.c (__spawni): Use non-cancelable interfaces.
9673
9674         * string/Makefile (tests): Add bug-envz1.
9675         * string/bug-envz1.c: New file.
9676
9677 2006-06-02  Jakub Jelinek  <jakub@redhat.com>
9678
9679         * posix/regex_internal.c (re_string_skip_chars): If no character has
9680         been converted at all, set *last_wc to WEOF.  If mbrtowc failed, set wc
9681         to the byte which couldn't be converted.
9682         (re_string_reconstruct): Don't clear valid_raw_len before calling
9683         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
9684         tip_context using re_string_context_at.
9685         * posix/Makefile: Add rules to build and run bug-regex25 test.
9686         * posix/bug-regex25.c: New test.
9687
9688 2006-06-02  Ryan S. Arnold  <rsa@us.ibm.com>
9689
9690         [BZ #2703]
9691         * string/envz.c (envz_strip): Correct erroneously reversed src
9692         and dest parameters to memmove() invocation.
9693
9694 2006-05-30  Jakub Jelinek  <jakub@redhat.com>
9695
9696         * nscd/nscd.h (prune_cache): Add fd argument to prototype.
9697         * nscd/nscd.c (parse_opt): Read response from INVALIDATE request
9698         to make sure the database has been already invalidated.
9699         * nscd/cache.c (prune_cache): Add fd argument.  Write response to fd
9700         after the cache has been invalidated.  Use pthread_mutex_lock rather
9701         than pthread_mutex_trylock if fd != -1.
9702         * nscd/connections.c (invalidate_cache): Add fd argument, write
9703         response to fd if not calling prune_cache, pass fd to prune_cache.
9704         (handle_request): Adjust invalidate_cache caller.
9705         (nscd_run): Pass -1 as fd to prune_cache.
9706
9707 2006-05-30  Ulrich Drepper  <drepper@redhat.com>
9708
9709         * sysdeps/posix/getaddrinfo.c (gaiconf_init): Initialize bits in
9710         the correct place.
9711
9712 2006-05-29  Ulrich Drepper  <drepper@redhat.com>
9713
9714         * nscd/nscd.h (struct database_dyn): Add prunelock field.
9715         * nscd/cache.c (prune_cache): Take prunelock before starting the
9716         work.  Just return in case it is already taken.
9717         * nscd/connections.c (dbs): Initialize .prunelock.
9718
9719 2006-05-25  Ulrich Drepper  <drepper@redhat.com>
9720
9721         * nis/nis_removemember.c (nis_removemember): Avoid unnecessary
9722         copying.  No need to allocate new array for group members.  Just
9723         move the pointers and update the size.
9724
9725         * nis/nis_addmember.c (nis_addmember): Avoid unnecessary copying.
9726         Avoid memory leak in case realloc fails.  Simplification for
9727         better code generation.
9728
9729         Avoid deprecation warning because of libc_hidden_proto for
9730         inet6_option_alloc.
9731         * inet/inet6_option.c (option_alloc): Renamed from
9732         inet6_option_alloc.  Made static.
9733         (inet6_option_alloc): Now a simple wrapper around option_alloc.
9734         (inet6_option_append): Call option_alloc.
9735         * include/netinet/in.h: Remove libc_hidden_proto for
9736         inet6_option_alloc.
9737
9738         * nis/nis_callback.c (__nis_create_callback): Always call xdr_free
9739         for cleanup when cb!=NULL [Coverity CID 233].
9740
9741 2006-05-24  Ulrich Drepper  <drepper@redhat.com>
9742
9743         [BZ #2693]
9744         * inet/Makefile (routines): Add inet6_opt and inet6_rth.
9745         * inet/Versions (libc, GLIBC_2.5): Add inet6_opt_init,
9746         inet6_opt_append, inet6_opt_finish, inet6_opt_set_val, inet6_opt_next,
9747         inet6_opt_find, inet6_opt_get_val, inet6_rth_space, inet6_rth_init,
9748         inet6_rth_add, inet6_rth_reverse, inet6_rth_segments,
9749         and inet6_rth_getaddr.
9750         * inet/netinet/ip6.h (struct ip6_rthdr0): Make ip6r0_addr a flexible
9751         array.
9752         * inet/netinet/in.h (struct ip6_mtuinfo): Define.
9753         Mark inet6_option_* interfaces as deprecated.
9754         Declare inet6_opt_init, inet6_opt_append, inet6_opt_finish,
9755         inet6_opt_set_val, inet6_opt_next, inet6_opt_find, inet6_opt_get_val,
9756         inet6_rth_space, inet6_rth_init, inet6_rth_add, inet6_rth_reverse,
9757         inet6_rth_segments, and inet6_rth_getaddr.
9758         * inet/inet6_opt.c: New file.
9759         * inet/inet6_rth.c: New file.
9760
9761         * inet/netinet/icmp6.h: Pretty printing.
9762
9763         [BZ #2683]
9764         * elf/dl-addr.c (_dl_addr): Don't match undefined references.
9765
9766 2006-05-23  Ulrich Drepper  <drepper@redhat.com>
9767
9768         * nis/nis_lookup.c (nis_lookup): Use __prepare_niscall instead of
9769         doing it all here.  When server does not know the answer do not
9770         fail immediate, try parent first.
9771
9772         * nis/nis_domain_of_r.c (nis_domain_of_r): Add missing buffer
9773         overflow test.
9774
9775 2006-05-20  Ulrich Drepper  <drepper@redhat.com>
9776
9777         * nis/nis_call.c (__prepare_niscall): New function.  Split out
9778         from __do_niscall.
9779         * nis/nis_table.c (__create_ib_request): Renamed from create_ib_request
9780         and exported.
9781         (__follow_path): New function.  Split out from nis_list.
9782         * nis/nis_xdr.h: Add libnsl_hidden_proto for _xdr_ib_request and
9783         _xdr_nis_result.
9784         * nis/nis_xdr.c: Add libnsl_hidden_def for _xdr_ib_request and
9785         _xdr_nis_result.
9786         * nis/libnsl.h: Declare __prepare_niscall, __create_ib_request,
9787         and __follow_path.
9788         * nis/Versions: Export __prepare_niscall, __create_ib_request,
9789         __follow_path, __do_niscall3, _xdr_ib_request, and _xdr_nis_result
9790         from libnsl for version GLIBC_PRIVATE.
9791         * nis/nisplus-parser.h: Remove _nss_nisplus_parse_pwent_chk.
9792         Remove entry parameter from _nss_nisplus_parse_pwent and
9793         _nss_nisplus_parse_grent.
9794         * nis/nss_nisplus/nisplus-parser.c: Likewise.
9795         * nis/nss_nisplus/nisplus-pwd.c: Remove support for SETENT_BATCH_READ
9796         again.  Rewrite getpwent handling to not use nis_first_entry and
9797         nis_next_entry.  Roll out own niscall handling.
9798         * nis/nss_nisplus/nisplus-grp.c: Likewise.
9799
9800         * sunrpc/xdr_rec.c: Fix typo in comment.
9801
9802 2006-05-19  Ulrich Drepper  <drepper@redhat.com>
9803
9804         * nis/nis_call.c (__do_niscall3): Avoid code duplication in error
9805         handling.
9806
9807         * nis/nis_callback.c (internal_nis_do_callback): Don't use malloc
9808         to allocate memory for my_pollfd.  Better initialization of
9809         cb_is_running.  Use TEMP_FAILURE_RETRY.
9810
9811         * malloc/memusage.sh (memusageso): Add quotes.
9812         (memusagestat): Likewise.
9813         * debug/xtrace.sh (pcprofileso): Likewise.
9814         (pcprofiledump): Likewise.
9815         * debug/Makefile ($(objpfx)xtrace): Use $LIB in SLIBDIR
9816         replacement.
9817         * malloc/Makefile ($(objpfx)memusage): Likewise.
9818
9819         * nis/nis_callback.c (__nis_create_callback): Calls to
9820         svcudp_bufcreate and svctcp_create can fail.  Free ->xprt if
9821         asprintf call fails.
9822
9823         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_sendreq): Make sure
9824         no uninitialized memory is passed to sendto.
9825
9826 2006-05-18  Ulrich Drepper  <drepper@redhat.com>
9827
9828         * nis/nis_callback.c (__nis_create_callback): Use asprinf instead
9829         of snprintf+strdup.  Handle OOM.
9830         * nis/nis_callback.c (__nis_create_callback): Allocate cb and
9831         cb->serv together.  Remove now obsolete free calls.
9832         (__nis_destroy_callback): Remove now obsolete free call.
9833
9834 2006-05-18  David Woodhouse  <dwmw2@redhat.com>
9835
9836         * sysdeps/posix/getaddrinfo.c: Add unique labels to the default
9837         RFC3484 precedence table for fec0::/10 and fc00::/7 (site-local
9838         and ULA respectively). Set precedence for IPv4 address to 10 as
9839         defined in RFC3484 for preferring IPv6.
9840         * posix/gai.conf: Update to match the new default tables.
9841
9842 2006-05-18  Jakub Jelinek  <jakub@redhat.com>
9843
9844         * nis/nss_compat/compat-pwd.c (internal_setpwent): If nss_set*ent
9845         returned NSS_STATUS_UNAVAIL, still return NSS_STATUS_SUCCESS.
9846         * nis/nss_compat/compat-spwd.c (internal_setspent): Likewise.
9847         * nis/nss_compat/compat-grp.c (internal_setgrent): Likewise.
9848
9849         * nis/nss_compat/compat-initgroups.c (nss_setgrent, nss_endgrent):
9850         Removed.
9851         (init_nss_interface): Remove initialization of these variables.
9852
9853 2006-05-18  Ulrich Drepper  <drepper@redhat.com>
9854
9855         * nis/nis_call.c (rec_dirsearch): Little optimization: pull
9856         nis_free_directory forward to avoid duplication.
9857
9858 2006-05-17  Ulrich Drepper  <drepper@redhat.com>
9859
9860         * nis/nis_call.c (rec_dirsearch): Handle __nis_finddirectory and
9861         rec_dirsearch returning NULL.
9862         (first_shoot): Handle __nis_finddirectory returning NULL.
9863         (__nisfind_server): Fix leak when rec_dirsearch returns NULL.
9864
9865         * sysdeps/unix/sysv/linux/sys/inotify.h: Define IN_CLOSE, IN_MOVE,
9866         IN_ONLYDIR, IN_DONT_FOLLOW, and IN_MASK_ADD.
9867
9868 2006-05-17  Jakub Jelinek  <jakub@redhat.com>
9869
9870         * sunrpc/key_call.c (getkeyserv_handle): Call auth_destroy if
9871         pid changed.
9872
9873 2006-05-15  Ulrich Drepper  <drepper@redhat.com>
9874
9875         * include/rpc/pmap_prot.h: Mark all functions as hidden.
9876
9877         * nscd/nscd_initgroups.c: Mark __gr_map_handle as hidden.
9878         * nscd/nscd_getgr_r.c: Likewise.
9879
9880         * include/rpc/pmap_rmt.h: Mark all functions as hidden.
9881
9882         * nscd/nscd_getai.c (__hst_map_handle): Mark as hidden.
9883         * nscd/nscd_gethst_r.c (__hst_map_handle): Likewise.
9884
9885         * stdlib/longlong.h (__clz_tab): Mark as hidden.
9886
9887         * iconv/gconv_int.h: Mark __gconv_lock as hidden.
9888
9889         * include/rpc/key_prot.h: Mark all _internal functions as hidden.
9890
9891         * include/rpc/auth.h: Mark xdr_des_block_internal and
9892         xdr_opaque_auth_internal as hidden.
9893
9894         * sysdeps/unix/sysv/linux/getdents.c: Mark __have_no_getdents64 as
9895         hidden.
9896
9897         * include/rpc/xdr.h: Mark all _internal functions as hidden.
9898
9899         * misc/getusershell.c (okshells): Don't use static initializers,
9900         do it dynamically.
9901
9902         * stdlib/fmtmsg.c (keywords): Change type of len element to
9903         uint32_t to not waste space on 64bit machines.
9904
9905         * locale/setlocale.c: Change _nl_category_names into a string.
9906         Add new _nl_category_name_idxs.  Change all users.
9907         * locale/localeinfo.h: Adjust declaration of _nl_category_names.
9908         Declare _nl_category_name_idxs.
9909         * locale/findlocale.c: Adjust for _nl_category_names change.
9910         * locale/loadlocale.c: Likewise.
9911         * locale/newlocale.c: Likewise.
9912         * intl/dcigettext.c: Likewise.
9913
9914         * iconv/gconv_conf.c (add_alias): Move actual alias handling to...
9915         (add_alias2): ...here.  New function.
9916         (__gconv_read_conf): Simplify builtin alias handling.
9917         (builtin_aliases): Convert to string to avoid relocations.
9918         * iconv/gconv_builtin.h: Add comment about correct formatting.
9919
9920 2006-05-15  Jakub Jelinek  <jakub@redhat.com>
9921
9922         * resolv/res_debug.c (loc_ntoa): Make error const.
9923
9924 2006-05-14  Andreas Schwab  <schwab@suse.de>
9925
9926         * math/complex.h [__LDBL_COMPAT]: Use __REDIRECT_NTH.
9927
9928 2006-05-12  Jakub Jelinek  <jakub@redhat.com>
9929
9930         * sysdeps/unix/sysv/linux/sched_getaffinity.c: Include sys/param.h.
9931         (__sched_getaffinity_new): Don't crash if cpusetsize is smaller than
9932         sizeof (cpu_set_t).
9933
9934 2006-05-11  Ulrich Drepper  <drepper@redhat.com>
9935
9936         * resolv/res_debug.c (loc_ntoa): Define error as array, not pointer.
9937
9938         * include/arpa/nameser.h: Declare _ns_flagdata as hidden.
9939
9940         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_master.
9941         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_master.
9942
9943         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypbind_resp.
9944         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypbind_resp.
9945
9946         * nis/nis_xdr.c: Add libnsl_hidden_def for xdr_cback_data.
9947         * include/rpcsvc/nis_callback.h: Add libnsl_hidden_proto for
9948         xdr_cback_data.
9949
9950         * nis/ypupdate_xdr.c: Add libnsl_hidden_def for xdr_ypupdate_args.
9951         * include/rpcsvc/ypupd.h: Add libnsl_hidden_proto for
9952         xdr_ypupdate_args.
9953
9954         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_order.
9955         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_order.
9956
9957         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_maplist.
9958         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_maplist.
9959
9960         * nis/nis_xdr.c: Add libnsl_hidden_def for xdr_obj_p.
9961         * include/rpcsvc/nis_callback.h: New file.
9962
9963         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_val.
9964         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_val.
9965
9966         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypreq_nokey.
9967         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypreq_nokey.
9968
9969         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypmaplist.
9970         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypmaplist.
9971
9972         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypreq_nokey.
9973         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypreq_nokey.
9974
9975         * nis/ypupdate_xdr.c: Add libnsl_hidden_def for xdr_ypdelete_args.
9976         * include/rpcsvc/ypupd.h: Add libnsl_hidden_proto for
9977         xdr_ypdelete_args.
9978
9979         * nis/nis_xdr.h: Mark all functions as hidden.  Remove
9980         __BEGIN_DECLS and __END_DECLS, the header is not installed.
9981
9982         * nis/nis_error.c: Remove table of strings.  Use position
9983         independent mechanism.
9984         * nis/nis_error.h: New file.
9985
9986 2006-05-11  Jakub Jelinek  <jakub@redhat.com>
9987
9988         * locale/programs/ld-time.c (time_finish): If wide era name or
9989         format aren't provided, set both wname and wformat to L"".
9990
9991 2006-05-10  Ulrich Drepper  <drepper@redhat.com>
9992
9993         * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Only store
9994         results if the call was succesful.
9995
9996         * nis/nss-nis.h: Mark __yperr2nss_tab and __yperr2nss_count as hidden.
9997
9998         * nis/nss-nisplus.h: Mark __niserr2nss_tab and __niserr2nss_count
9999         as hidden.
10000
10001 2006-05-10  Jakub Jelinek  <jakub@redhat.com>
10002
10003         * misc/sys/queue.h: Remove uses of all QUEUEDEBUG_* macros.
10004
10005 2006-05-10  Ulrich Drepper  <drepper@redhat.com>
10006
10007         * posix/wordexp.c (parse_glob): No need to check ifs for NULL, the
10008         caller makes sure this is not the case.
10009         (wordexp): Simplify ifs_white creation.  [Coverity CID 231]
10010
10011 2006-05-09  Ulrich Drepper  <drepper@redhat.com>
10012
10013         * posix/wordexp.c: Remove numerous NULL pointer tests before FREE
10014         calls.
10015
10016         * io/ftw.c (open_dir_stream): Return right away if REALLOC fails.
10017         [Coverity CID 229, 230]
10018
10019         * argp/argp-help.c (hol_entry_help): Handle STATE==NULL in ARG and
10020         DGETTEXT calls.
10021         (hol_help): Likewise.  [Coverity CID 226, 227]
10022
10023         * string/argz-replace.c (__argz_replace): Unconditionally call
10024         free on SRC.  [Coverity CID 225]
10025
10026         * nis/nis_creategroup.c (nis_creategroup): No need to duplicate
10027         the return value of __nis_default_owner and __nis_default_group,
10028         it has been especially allocated.  [Coverity CID 224]
10029
10030         * nis/nis_defaults.c (searchXYX): New functions.  Used by both
10031         searchgroup and searchowner.  Significantly simplified.
10032         (__nis_default_owner): Remove duplication.  Do not locally copy the
10033         string before duplicating it.
10034         (__nis_default_group): Likewise.
10035
10036         * nis/nis_lookup.c (nis_lookup): After calling nis_free_directory,
10037         we must clear the variable before calling __nisfind_server.
10038
10039         * nis/nis_lookup.c (nis_lookup): Always free memory allocated with
10040         nis_getnames.  [Coverity CID 223]
10041
10042         * locale/programs/locfile.c (locfile_read): Use alloca instead of
10043         xmalloc to allocate local repertoire name.  [Coverity CID 222]
10044
10045         * iconv/iconv_charmap.c (use_to_charmap): No need to dynamically
10046         allocate memory for the input to add_bytes.  [Coverity CID 221]
10047
10048         * posix/wordexp.c (w_addword): Free word if realloc fails and it
10049         was allocated here.  [Coverity CID 219, 220]
10050
10051         * posix/getconf.c (print_all): Free confstr data after printing.
10052         [Coverity CID 218]
10053
10054         * sysdeps/posix/getaddrinfo.c (gaih_inet): Free canon string if
10055         list allocation fails.  [Coverity CID 215]
10056
10057         * nss/nsswitch.c (__nss_configure_lookup): Fix loop end condition.
10058         [Coverity CID 213]
10059
10060         * argp/argp-help.c (hol_entry_cmp): Don't call canon_doc_option if
10061         string is NULL.  [Coverity CID 212]
10062         * argp/Makefile: Add rules to build and run bug-argp1.
10063         * argp/bug-argp1.c: New file.
10064
10065         * io/ftw.c (ftw_dir): Use __rawmemchr instead of strchr to find
10066         end of string.
10067         * stdlib/canonicalize.c (__realpath): Likewise.
10068
10069         * locale/programs/ld-time.c (time_finish): Don't dereference NULL
10070         pointer.  [Coverity CID 206]
10071
10072         * elf/dl-dst.h (DL_DST_REQUIRED): Be prepared for missing link map
10073         in statically linked code.
10074         * elf/dl-load.c (_dl_dst_substitute): When replacing ORIGIN in
10075         statically built code, be prepared to have no link map.
10076         [Coverity CID 205]
10077
10078         * argp/argp-help.c (fill_in_uparams): Handle STATE==NULL in
10079         dgettext calls. [Coverity CID 204]
10080
10081         * argp/argp-help.c (struct uparams): Remove valid member.  Change
10082         the one user.
10083         (uparam_names): Reduce size.  Avoid relative relocations.
10084         Moved to read-only segment.
10085         (fill_in_uparams): Update for new layout.
10086
10087         * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs): Parameter can be
10088         assumed to always be != NULL. [Coverity CID 202]
10089
10090         * argp/argp-help.c (hol_entry_help): Remove some dead code
10091         [Coverity CID 200].
10092
10093         * nis/nss_nis/nis-service.c (_nss_nis_getservbyport_r): Optimize
10094         away a few more unconditional yperr2nss calls.
10095         (_nss_nis_getservbyname_r): Likewise.
10096
10097 2006-05-06  Ulrich Drepper  <drepper@redhat.com>
10098
10099         * sysdeps/generic/ldsodefs.h: Remove support for non-core
10100         architectures.
10101
10102         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Make sure
10103         that unused memory passed to sendto is nevertheless initialized.
10104
10105         [BZ #2499]
10106         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Avoid
10107         possibly unaligned memory accesses.
10108
10109         * include/arpa/nameser.h: Also optimize NS_PUT16 and NS_PUT32.
10110         * resolv/res_mkquery.c: Use NS_PUT16 and NS_PUT32 instead of __putshort
10111         and __putlong respectively.  Correct buffer overflow check for
10112         NS_NOTIFY_OP.
10113
10114         * resolv/res_send.c (send_vc): Use ns_put16 instead of putshort.
10115
10116         * resolv/res_send.c (res_queriesmatch): Fix typo in comment.
10117         (send_dg): Rewrite error handling to be more compact and avoid
10118         double recomputation of timeouts.  Pass MSG_NOSIGNAL to send.
10119
10120         * include/arpa/nameser.h: Add optimizations for NS_GET16 and NS_GET32.
10121
10122         * resolv/res_send.c (res_nameinquery): Use NS_GET16 directly
10123         instead of ns_get16.
10124         (res_queriesmatch): Likewise.  Minor optimization.
10125
10126         [BZ #2499]
10127         * resolv/res_query.c (__libc_res_nquery): If answerp != NULL,
10128         __libc_res_nsend might reallocate the buffer for the answer.  In
10129         this case we have to reload the HP pointer.
10130
10131 2006-05-05  Ulrich Drepper  <drepper@redhat.com>
10132
10133         * stdio-common/vfscanf.c (memory_error): Remove definition.  Add
10134         some branch prediction hints.
10135
10136         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Define SPLICE_F_*.
10137         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
10138         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
10139         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
10140         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
10141         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
10142         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
10143         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
10144
10145 2006-05-05  Martin Schwidefsky  <schwidefsky@de.ibm.com>
10146
10147         * sysdeps/s390/s390-32/elf/start.S: Replace pc relative relocation
10148         by a GOT relocation to make Scrt1.o position independent.
10149         * sysdeps/s390/s390-64/elf/start.S: Likewise.
10150
10151         * sysdeps/unix/sysv/linux/s390/s390-32/syscall.S: Add support for
10152         six system call parameters.
10153         * sysdeps/unix/sysv/linux/s390/s390-64/syscall.S: Likewise.
10154
10155 2006-05-05  Ulrich Drepper  <drepper@redhat.com>
10156
10157         * sunrpc/svcauth_des.c (cache_init): Use calloc instead of
10158         malloc&bzero.
10159
10160         * sunrpc/svc_udp.c (BZERO): Remove definition.
10161         (CALLOC): Define.
10162         (svc_enablecache): Use CALLOC instead of ALLOC&BZERO.
10163
10164         * sunrpc/des_impl.c: Remove ALT_ECB support.  We never used it.
10165         (des_SPtrans): Use uint32_t type.
10166         (des_skb): Likewise.
10167
10168         * sunrpc/xdr_ref.c (xdr_reference): Use calloc instead of malloc&bzero.
10169
10170 2006-05-05  Jakub Jelinek  <jakub@redhat.com>
10171
10172         [BZ #2509]
10173         * stdio-common/tst-printf.sh: Adjust for tst-printf.c change even
10174         on 32-bit arches.
10175
10176 2006-05-05  Ulrich Drepper  <drepper@redhat.com>
10177
10178         * locale/programs/ld-address.c (address_finish): Fix one more
10179         place where the iso639 array might be accessed beyond the limits.
10180
10181 2006-05-04  Ulrich Drepper  <drepper@redhat.com>
10182
10183         * nis/nis_table.c (nis_list): Avoid clearing res twice before
10184         filling it for the first time.
10185
10186         * nis/nis_table.c (get_tablepath): Renamed from __get_tablepath.
10187         Adjust all callers.
10188         Free res object content before returning.
10189
10190         * sunrpc/xdr_array.c (xdr_array): Use calloc instead of malloc&bzero.
10191
10192         * sunrpc/key_call.c (__rpc_thread_key_cleanup): Also free
10193         client->cl_auth.
10194
10195         * sunrpc/rpc_thread.c (__rpc_thread_destroy): Don't skip entire
10196         cleanup for initial thread, just the free call on TVP.
10197
10198         * nscd/gai.c (__getline): Define.
10199
10200
10201 See ChangeLog.16 for earlier changes.