511fa81642be4ffee732a79cef813b73bc56dd8c
[platform/upstream/glibc.git] / ChangeLog
1 2009-05-20  Ulrich Drepper  <drepper@redhat.com>
2
3         * po/da.po: Update from translation team.
4
5 2009-05-18  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
6
7         * sysdeps/sh/____longjmp_chk.S: New file.
8         * sysdeps/sh/sh3/__longjmp.S: If CHECK_SP is defined, use it.
9         * sysdeps/sh/sh4/__longjmp.S: Likewise.
10                         
11 2009-05-18  Jakub Jelinek  <jakub@redhat.com>
12             Ulrich Drepper  <drepper@redhat.com>
13
14         * nscd/nscd_helper.c (MINIMUM_HASHENTRY_SIZE): Define.
15         (__nscd_cache_search): Assume each entry in the
16         hash chain needs one hashentry and half of datahead.  Use
17         MINIMUM_HASHENTRY_SIZE instead of sizeof(hashentry).
18
19 2009-05-16  Ulrich Drepper  <drepper@redhat.com>
20
21         * posix/sys/wait.h: Fix typos.  Pretty printing.
22         * stdlib/stdlib.h: Likewise.  Correct comments.
23
24         [BZ #10159]
25         * stdlib/stdlib.h (__WAIT_INT): Match the definition in <sys/wait.h>.
26
27         * nscd/nscd_helper.c (__nscd_cache_search): Fix exit condition in last
28         patch.
29
30 2009-05-15  Ulrich Drepper  <drepper@redhat.com>
31
32         * nscd/nscd_helper.c (__nscd_cache_search): Introduce loop counter.
33         Use it if we absolutely cannot reach any more correct list elements
34         because that many do not fit into the currently mapped database.
35
36 2009-05-14  Jakub Jelinek  <jakub@redhat.com>
37
38         * nscd/nscd_helper.c: Include stddef.h.
39         (__nscd_cache_search): Add datalen argument.  Use atomic_forced_read
40         in a couple of places.  Return NULL if trail is not less than
41         datasize, don't consider dataheads with length smaller than
42         offsetof (struct datahead, data) + datalen.
43         * nscd/nscd_client.h (__nscd_cache_search): Adjust prototype.
44         * nscd/nscd_gethst_r.c (nscd_gethst_r): Adjust callers.
45         * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
46         * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
47         * nscd/nscd_getai.c (__nscd_getai): Likewise.
48         * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
49         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
50
51         * sysdeps/unix/sysv/linux/i386/fallocate64.c (__fallocate64_l64):
52         Rename ...
53         (fallocate64): ... to this.
54         * sysdeps/unix/sysv/linux/fallocate64.c (__fallocate64_l64):
55         Rename ...
56         (fallocate64): ... to this.
57         * sysdeps/unix/sysv/linux/Versions (libc): Remove fallocate64.
58         * sysdeps/unix/sysv/linux/wordsize-64/Versions (libc): Add
59         fallocate64@@GLIBC_2.10.
60         * sysdeps/unix/sysv/linux/i386/Versions (libc): Add
61         fallocate64@@GLIBC_2.11.
62         * sysdeps/unix/sysv/linux/s390/s390-32/Versions (libc): Likewise.
63         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions (libc): Likewise.
64         * sysdeps/unix/sysv/linux/sparc/sparc32/Versions (libc): Likewise.
65         * sysdeps/unix/sysv/linux/sh/Versions (libc): Likewise.
66
67         * nscd/selinux.c (nscd_avc_destroy): Removed.
68         * nscd/selinux.h (nscd_avc_destroy): Likewise.
69         * nscd/nscd.c (termination_handler): Don't call
70         nscd_avc_destroy.
71
72 2009-05-12  Jakub Jelinek  <jakub@redhat.com>
73
74         * include/atomic.h: Formatting.
75         (catomic_compare_and_exchange_val_acq): Don't define if already
76         defined by bits/atomic.h.
77
78 2009-05-15  Ulrich Drepper  <drepper@redhat.com>
79
80         * math/libm-test.inc (expm1_test): Add test for range error.
81
82         * Versions.def: Add GLIBC_2.11 for libc.
83         * debug/Makefile (routines): Add longjmp_chk.
84         Add rules to build and run tst-longjmp_chk.
85         * debug/Versions: Export __longjmp_chk for GLIBC_2.11.
86         * debug/longjmp_chk.c: New file.
87         * debug/tst-longjmp_chk.c: New file.
88         * include/bits/setjmp2.: New file.
89         * include/stdio.h: Mark __fortify_fail as internal_function.
90         * setjmp/Makefile (headers): Add bits/setjmp2.h.
91         * setjmp/bits/setjmp2.h: New file.
92         * setjmp/longjmp.c: If __libc_siglongjmp is defined, don't define any
93         of the aliases.
94         * setjmp/setjmp.h: Include <bits/setjmp2.h> if _FORTIFY_SOURCE is
95         defined.
96         * sysdeps/i386/____longjmp_chk.S: New file.
97         * sysdeps/x86_64/____longjmp_chk.S: New file.
98         * sysdeps/i386/__longjmp.S: If CHECK_ESP is defined, use it.
99         * sysdeps/x86_64/__longjmp.S: Likewise.
100
101         * version.h: Bump for 2.11 development.
102
103         * elf/check-execstack.c: New file.
104         * elf/Makefile: Add rules to build and run check-execstack.
105
106 2009-05-10  Ulrich Drepper  <drepper@redhat.com>
107
108         * version.h (VERSION): Bump to 2.10.1.
109
110         * nss/getXXbyYY_r.c: If NO_COMPAT_NEEDED is defined don't define any
111         compatibility functions.
112         * nss/getXXent_r.c: Likewise.
113         * gshadow/getsgent_r.c: Define NO_COMPAT_NEEDED.
114         * gshadow/getsgnam_r.c: Likewise.
115         * gshadow/Version: Remove duplicate entries.
116
117         * sysdeps/x86_64/cacheinfo.c (intel_02_cache_info): Add missing entries
118         for recent processor.
119         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_cache_info):
120         Likewise.
121
122 2009-05-09  Ulrich Drepper  <drepper@redhat.com>
123
124         * version.h (VERSION): Bump for 2.10 release.
125         * include/features.h (__GLIBC_MINOR__): Bump to 10.
126
127         * Makeconfig: Undo last change.  Add asflags-cpu to ASFLAGS in the
128         same place we add ASFLAGS-config.
129
130 2009-05-05  Aurelien Jarno  <aurelien@aurel32.net>
131
132         [BZ #10128]
133         * resolv/res_query.c (__libc_res_nquery): If one query returns NOTIMP
134         or FORMERR and the other NOERROR, don't raise an error.
135
136 2009-05-06  Ryan S. Arnold  <rsa@us.ibm.com>
137
138         [BZ #10118]
139         * Makeconfig (+asflags): New variable based upon ASFLAG or
140         asflags-cpu.
141         (ASFLAGS): Add override to set ASFLAGS to +asflags.
142         * config.make.in (asflags-cpu): Add variable based upon
143         @libc_cv_cc_submachine@ to propagate -mcpu=CPU from --with-cpu=CPU to
144         the assembler.
145         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/setcontext.S:
146         Remove unneeded file now that the assembler emits _ARCH_PWR6 and
147         recognizes power6 instruction set due to passing -mcpu=power6 from
148         --with-cpu=power6 when compiling .S files.
149         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/swapcontext.S:
150         Likewise.
151         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/setcontext.S:
152         Likewise.
153         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/swapcontext.S:
154         Likewise.
155
156 2009-05-09  Jakub Jelinek  <jakub@redhat.com>
157
158         * string/stratcliff.c (do_test): Test for zero length
159         STRNLEN, MEMCHR, STRNCPY, STPNCPY, MEMCPY, MEMPCPY and memccpy
160         at the end of the page.
161
162 2009-05-08  Ulrich Drepper  <drepper@redhat.com>
163
164         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_AT_RANDOM.
165
166         * sysdeps/x86_64/memchr.S: Handle invalid buffer pointers when
167         count is zero.
168
169         * po/da.po: Update from translation team.
170
171 2009-05-05  Jakub Jelinek  <jakub@redhat.com>
172
173         * io/sys/stat.h (fstatat64): Guard prototype with __USE_LARGEFILE64,
174         guard __extern_inline wrapper with __USE_ATFILE instead of __USE_GNU.
175
176 2009-05-05  Ulrich Drepper  <drepper@redhat.com>
177
178         * sysdeps/unix/sysv/linux/sys/personality.h: Add ADDR_COMPAT_LAYOUT
179         and READ_IMPLIES_EXEC.
180
181 2009-05-04  Ulrich Drepper  <drepper@redhat.com>
182
183         * po/da.po: Update from translation team.
184
185 2009-04-29  Jakub Jelinek  <jakub@redhat.com>
186
187         * sysdeps/unix/sysv/linux/ifaddrs.c: Revert unintended 2008-08-12
188         comment change.
189
190 2009-04-27  Jakub Jelinek  <jakub@redhat.com>
191
192         * locale/programs/locarchive.c (create_archive): Add MAP_PRIVATE
193         to MAP_ANON in PROT_NONE mmap64 call.
194         (open_archive): Likewise.
195         (file_data_available_p): Use mmap64 instead of mremap.
196         (enlarge_archive): Likewise.  Update head if ah->addr changed.
197         Attempt to reserve address space after mmap64 region.
198
199 2009-04-26  Ulrich Drepper  <drepper@redhat.com>
200
201         * sysdeps/ieee754/dbl-64/s_expm1.c: Set errno for overflow.
202         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
203         * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
204
205         * sysdeps/ieee754/k_standard.c (__kernel_standard): Pole errors in
206         atanh should set ERANGE.
207
208         [BZ #10087]
209         * elf/dl-runtime.c (_dl_fixup): Use DL_FIXUP_VALUE_ADDR to access
210         result of lookup to make call to implement STT_GNU_IFUNC.
211         (_dl_profile_fixup): Likewise.
212         Patch by H.J. Lu <hjl.tools@gmail.com>.
213
214         * nscd/connections.c (send_ro_fd): Define temporary variable to avoid
215         warning.
216
217         * sysdeps/unix/sysv/linux/dl-osinfo.h (dl_fatal): Remove inline
218         from definition.
219
220         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Don't define
221         label if it is not used.
222
223         * elf/dl-profile.c (_dl_start_profile): Define real-type variant
224         of gmon_hist_hdr and gmon_hdr structures and use them.
225         * elf/sprof.c: Likewise.
226
227         * elf/dl-load.c (open_verify): Add temporary variable to avoid
228         warning.
229
230         * nscd/nscd_helper.c (get_mapping): Avoid casts to avoid warnings.
231
232         * sunrpc/clnt_raw.c (clntraw_private_s): Use union in definition
233         to avoid cast.
234
235         * inet/rexec.c (rexec_af): Make sa2 a union to avoid warnings.
236         * inet/rcmd.c (rcmd_af): Make from a union of the various needed types
237         to avoid warnings.
238         (iruserok_af): Use ss_family instead of casts.
239
240         * gmon/gmon.c (write_hist): Define real-type variant of
241         gmon_hist_hdr structure and use it.
242         (write_gmon): Likewise for gmon_hdr.
243
244         * sysdeps/unix/sysv/linux/readv.c: Avoid declaration of replacement
245         function if we are not going to define it.
246         * sysdeps/unix/sysv/linux/writev.c: Likewise.
247
248         * inet/inet6_option.c (option_alloc): Add temporary variable to
249         avoid warning.
250
251         * libio/strfile.h (struct _IO_streambuf): Use correct type and
252         name of VTable element.
253         * libio/iovsprintf.c: Avoid casts to avoid warnings.
254         * libio/iovsscanf.c: Likewise.
255         * libio/vasprintf.c: Likewise.
256         * libio/vsnprintf.c: Likewise.
257         * stdio-common/isoc99_vsscanf.c: Likewise.
258         * stdlib/strfmon_l.c: Likewise.
259         * debug/vasprintf_chk.c: Likewise.
260         * debug/vsnprintf_chk.c: Likewise.
261         * debug/vsprintf_chk.c: Likewise.
262
263         * nss/nsswitch.c (__nss_lookup_function): En/Decrypt cached
264         function pointers.
265
266 2009-04-26  Jakub Jelinek  <jakub@redhat.com>
267
268         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Fix -Wsequence-point warnings.
269
270 2009-04-25  Ulrich Drepper  <drepper@redhat.com>
271
272         * posix/bits/posix1_lim.h: Cleanup namespace a bit.
273
274         * sysdeps/i386/fpu/s_tan.S: Set errno for Â±Inf.
275         * sysdeps/i386/fpu/s_tanf.S: Likewise.
276         * sysdeps/i386/fpu/s_tanl.S: Likewise.
277         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
278         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
279         * sysdeps/x86_64/fpu/s_tanl.S: Likewise.
280         * math/libm-test.inc: Add tests for errno after tan calls with
281         Â±Inf.
282
283         * sysdeps/ieee754/k_standard.c (__kernel_standard): Use correct
284         errno value vor pow(+-0,neg).
285         * math/libm-test.inc (pow_test): Add tests for errno value for
286         pole errors.
287
288         * math/w_fmod.c: Also handle x=±Inf as error.
289         * math/w_fmodf.c: Likewise.
290         * math/w_fmodl.c: Likewise.
291         * math/libm-test.inc (fmod_test): Add tests for errno after calls for
292         x=±Inf or y=0.
293
294         * sysdeps/i386/fpu/s_cos.S: Set errno for Â±Inf.
295         * sysdeps/i386/fpu/s_cosf.S: Likewise.
296         * sysdeps/i386/fpu/s_cosl.S: Likewise.
297         * sysdeps/i386/fpu/s_sin.S: Likewise.
298         * sysdeps/i386/fpu/s_sinf.S: Likewise.
299         * sysdeps/i386/fpu/s_sinl.S: Likewise.
300         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
301         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
302         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
303         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
304         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
305         * sysdeps/x86_64/fpu/s_cosl.S: Likewise.
306         * sysdeps/x86_64/fpu/s_sinl.S: Likewise.
307         * math/libm-test.inc: Add tests for errno after sin/cos calls with
308         Â±Inf.
309
310         * stdlib/strtod_l.c (round_and_return): We have to set errno to
311         ERANGE for underflows.
312         * stdlib/tst-strtod.c (tests): Two tests should set errno to ERANGE.
313
314         * stdio-common/stdio_lim.h.in (L_cuserid): Not part of POSIX since
315         the 2001 revision.
316
317         * libio/tst-widetext.input: Remove surrogates.
318
319         * include/features.h: _POSIX_C_SOURCE >= 200112L implies C99.
320
321         * sysdeps/ieee754/k_standard.c (__kernel_standard): Pole errors
322         for lgamma should set errno to ERANGE, not EDOM.
323         * math/libm-test.inc (lgamma_test): Check errno for pole errors.
324
325 2009-04-24  Ulrich Drepper  <drepper@redhat.com>
326
327         [BZ #10093]
328         * iconv/gconv_simple.c (BODY for UTF-8 to INTERNAL): Don't accept
329         UTF-16 surrogates.
330
331         * locale/programs/locarchive.c (enlarge_archive): Conserve address
332         space when temporarily mapping the whole content of the old file.
333
334         [BZ #10100]
335         * misc/hsearch_r.c (hsearch_r): Add back ensurance that hval is
336         not zero.
337
338 2009-04-24  Jakub Jelinek  <jakub@redhat.com>
339
340         * iconvdata/sjis.c (BODY): Don't advance inptr before
341         STANDARD_FROM_LOOP_ERR_HANDLER (2) for 2 byte invalid input.
342         Use STANDARD_FROM_LOOP_ERR_HANDLER with 2 instead of 1 for
343         two byte chars.
344
345 2009-04-24  Ulrich Drepper  <drepper@redhat.com>
346
347         * locale/locarchive.h (struct locarhandle): Rename len field to
348         mmaped and add new reserved field.
349         * locale/programs/locarchive.c (RESERVE_MMAP_SIZE): Define.
350         (create_archive): Reserve address space and then map file into it.
351         (open_archive): Likewise.
352         (file_data_available_p): New function.
353         (compare_from_file): New function.
354         (close_archive): Adjust to member name changes.
355         (add_locale): Before comparing locale data, check it is mapped.
356         Otherwise fall back to reading from the file.
357
358 2009-04-23  H.J. Lu  <hongjiu.lu@intel.com>
359
360         * stdio-common/psiginfo.c: Include <errno.h>.
361
362 2009-04-23  Ulrich Drepper  <drepper@redhat.com>
363
364         [BZ #9920]
365         * stdlib/random_r.c (__srandom_r): Change type of word to int32_t
366         to get consistency between 32 and 64 bit architectures.
367
368         [BZ #10052]
369         * sysdeps/unix/make-syscalls.sh: Add rule to create target
370         directory for dummy syscall rules.
371         Patch by Chris Steinbroner <hesh@pobox.com>.
372
373 2009-04-23  Aurelien Jarno  <aurelien@aurel32.net>
374
375         [BZ #10092]
376         * sysdeps/unix/sysv/linux/sys/mount.h: Define MNT_DETACH and
377         MNT_EXPIRE.
378
379 2009-04-23  Ulrich Drepper  <drepper@redhat.com>
380
381         * sysdeps/unix/sysv/linux/preadv.c: The kernel API changed.  Adjust.
382         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
383
384 2009-04-23  Jakub Jelinek  <jakub@redhat.com>
385
386         * sysdeps/posix/pwritev.c (PWRITEV): Fix up comment.  Copy
387         data from vector to temporary buffer and call PWRITEV after it
388         instead of vice versa.
389         * sysdeps/posix/preadv.c: Fix up comment.
390         * misc/preadv.c: Likewise.
391         * misc/preadv64.c: Likewise.
392         * misc/pwritev.c: Likewise.
393         * misc/pwritev64.c: Likewise.
394         * misc/sys/uio.h (preadv, pwritev, preadv64, pwritev64): Likewise.
395
396 2009-04-23  Ulrich Drepper  <drepper@redhat.com>
397
398         * shadow/sgetspent_r.c (__sgetspent_r): Recognize too small buffers.
399
400         * shadow/Makefile (tests): Add tst-shadow.
401         * shadow/tst-shadow.c: New file.
402
403         [BZ #9955]
404         * gshadow/Makefile: New file.
405         * gshadow/Versions: New file.
406         * gshadow/fgetsgent.c: New file.
407         * gshadow/fgetsgent_r.c: New file.
408         * gshadow/getsgent.c: New file.
409         * gshadow/getsgent_r.c: New file.
410         * gshadow/getsgnam.c: New file.
411         * gshadow/getsgnam_r.c: New file.
412         * gshadow/gshadow.h: New file.
413         * gshadow/putsgent.c: New file.
414         * gshadow/sgetsgent.c: New file.
415         * gshadow/sgetsgent_r.c: New file.
416         * gshadow/tst-gshadow.c: New file.
417         * include/gshadow.h: New file.
418         * Makeconfig (all-subdirs): Add gshadow.
419         * Makefile (installed-headers): Add gshadow/gshadow.h.
420         * nss/Makefile (databases): Add sgrp.
421         * nss/Versions: Add gshadow functions as private exports.
422         * nss/nsswitch.conf: Add gshadow entry.
423         * nss/sgrp-lookup.c: New file.
424         * nss/nss_files/files-parse.c: Add STRING_LIST macro.  Rewrite
425         parse_list to handle STRING_LIST and TRAILING_LIST_PARSER.
426         * nss/nss_files/files-sgrp.c: New file.
427         * sysdeps/generic/paths.h: Add _PATH_GSHADOW.
428         * sysdeps/unix/sysv/linux/paths.h: Likewise.
429
430 2009-04-22  Ulrich Drepper  <drepper@redhat.com>
431
432         * stdio-common/printf.h: Add missing const to register_printf_modifier.
433         * stdio-common/reg-modifier.c: Likewise.
434
435 2009-04-22  Andrew Stubbs  <ams@codesourcery.com>
436
437         * sysdeps/sh/sh4/setjmp.S (__sigsetjmp): Adjust JB_SIZE when there
438         is no FPU.
439
440 2009-04-20  Ulrich Drepper  <drepper@redhat.com>
441
442         [BZ #10086]
443         * sysdeps/unix/sysv/linux/sys/timex.h: Add definitions from kernel
444         headers up to 2.6.30.
445
446         * po/ca.po: Update from translation team.
447
448 2009-04-19  Ulrich Drepper  <drepper@redhat.com>
449
450         [BZ #10069]
451         * elf/dl-open.c (dl_open_worker): We cannot guarantee that we can load
452         an object that uses static TLS if the TLS modid is higher than the
453         reserve we always allocate.  At least for multi-threaded code.
454
455 2009-04-18  Ulrich Drepper  <drepper@redhat.com>
456
457         * stdlib/strfmon_l.c (__vstrfmon_l): Don't wrap when computing width.
458         Numerically stable check for valid width.
459
460         * locale/programs/locarchive.c (open_archive): Map the entire file
461         and not just the administrative data.
462         (add_locale): When we find a hash sum match compare the content
463         to be sure.
464
465         * malloc/malloc.c (malloc_info): Output address space information.
466
467 2009-04-17  Ulrich Drepper  <drepper@redhat.com>
468
469         * malloc/malloc.c (malloc_info): Also output system memory information.
470
471         * sysdeps/unix/sysv/linux/kernel-features.h: All supported
472         architectures have preadv/pwritev in 2.6.30.
473
474         * sysdeps/posix/preadv.c: Reading of zero bytes is no error.
475         * sysdeps/posix/readv.c: Likewise.
476         Reported by Markus Armbruster <armbru@redhat.com>.
477
478         * malloc/hooks.c (top_check): Force hook value into register.
479
480 2009-04-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
481
482         * elf/rtld.c (dl_main): Really call _dl_sysdep_start_cleanup after all
483         calls to _dl_relocate_object.
484
485 2009-04-16  Ulrich Drepper  <drepper@redhat.com>
486
487         [BZ #9957]
488         * malloc/malloc.c (force_reg): Define.
489         (sYSMALLOc): Load hook variable into variable
490         before test and force into register.
491         (sYSTRIm): Likewise.
492         (public_mALLOc): Force hook value into register.
493         (public_fREe): Likewise.
494         (public_rEALLOc): Likewise.
495         (public_mEMALIGn): Likewise.
496         (public_vALLOc): Likewise.
497         (public_pVALLOc): Likewise.
498         (public_cALLOc): Likewise.
499         (__posix_memalign): Likewise.
500         * malloc/arena.c (ptmalloc_init): Load hook variable into variable
501         before test and force into register.
502         * malloc/hooks.c (top_check): Likewise.
503         (public_sET_STATe): Pretty printing.
504
505         * resolv/res_send.c (send_dg): Don't just ignore the result we got
506         in case we only receive one reply in single-request mode.
507
508 2009-04-16  Jakub Jelinek  <jakub@redhat.com>
509
510         * elf/dl-open.c (_dl_open): Bump GL(dl_nns) to 1 if no libraries
511         are dlopened in statically linked program even for __LM_ID_CALLER.
512
513 2009-04-16  Ulrich Drepper  <drepper@redhat.com>
514
515         * resolv/res_send.c (send_dg): Don't switch into single-request
516         mode if we already are in it.
517
518 2009-04-15  Ulrich Drepper  <drepper@redhat.com>
519
520         * sysdeps/unix/sysv/linux/getsysstats.c (next_line): Make sure there
521         are always at least 4 bytes in the returned line.
522
523 2009-04-15  Jakub Jelinek  <jakub@redhat.com>
524
525         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Check
526         __libc_use_alloca (8192), if the stack is too small use 512 bytes
527         instead of 8K.  Stop searching in /proc/stat after hitting first
528         line not starting with cpu.
529         (next_line): Truncate too long
530         lines at buffer size * 3/4 instead of pretending there were line
531         breaks inside of large lines.
532
533 2009-04-14  Ulrich Drepper  <drepper@redhat.com>
534
535         * sysdeps/x86_64/mp_clz_tab.c: New file.
536
537 2009-03-17  Ryan S. Arnold  <rsa@us.ibm.com>
538             Ulrich Drepper  <drepper@redhat.com>
539
540         * sysdeps/unix/sysv/linux/fallocate.c: Handle old kernel headers.
541         * sysdeps/unix/sysv/linux/fallocate64.c: Likewise.
542         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: Likewise.
543
544 2009-03-25  Andrew Stubbs  <ams@codesourcery.com>
545
546         * sysdeps/sh/libc-tls.c: New file.
547
548         * sysdeps/sh/bits/setjmp.h (__jmp_buf): Give name to structure type.
549
550 2009-04-14  Roland McGrath  <roland@redhat.com>
551
552         * elf/elf.h: Add various missing ARM constants, to match binutils.
553
554 2009-04-14  Ulrich Drepper  <drepper@redhat.com>
555
556         Optimizations from GMP.
557         * sysdeps/x86_64/add_n.S: New file.
558         * sysdeps/x86_64/addmul_1.S: New file.
559         * sysdeps/x86_64/lshift.S: New file.
560         * sysdeps/x86_64/mul_1.S: New file.
561         * sysdeps/x86_64/rshift.S: New file.
562         * sysdeps/x86_64/sub_n.S: New file.
563         * sysdeps/x86_64/submul_1.S: New file.
564
565 2009-04-14  Jakub Jelinek  <jakub@redhat.com>
566
567         * sysdeps/powerpc/powerpc32/elf/start.S: Ensure .data is non-empty.
568         * sysdeps/powerpc/powerpc64/elf/start.S: Likewise.
569         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
570         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
571
572 2009-04-14  Ulrich Drepper  <drepper@redhat.com>
573
574         * sysdeps/unix/sysv/linux/kernel-features.h: SH also has
575         preadv/pwritev.
576
577 2009-04-13  Ulrich Drepper  <drepper@redhat.com>
578
579         * sysdeps/x86-64/strrchr.S: New file.
580
581 2009-04-10  Ulrich Drepper  <drepper@redhat.com>
582
583         * stdio-common/printf.h (struct printf_info): Add user element.
584         New types printf_arginfo_size_function, printf_va_arg_function.
585         Declare register_printf_specifier, register_printf_modifier,
586         register_printf_type.
587         * stdio-common/printf-parse.h (struct printf_spec): Add size element.
588         (union printf_arg): Add pa_user element.
589         Adjust __printf_arginfo_table type.
590         Add __printf_va_arg_table, __printf_modifier_table,
591         __handle_registered_modifier_mb, and __handle_registered_modifier_wc
592         declarations.
593         * stdio-common/printf-parsemb.c: Recognize registered modifiers.
594         If registered arginfo call failed try normal specifier.
595         * stdio-common/printf-prs.c: Pass additional parameter to arginfo
596         function.
597         * stdio-common/Makefile (routines): Add reg-modifier and reg-type.
598         * stdio-common/Versions: Export register_printf_modifier,
599         register_printf_type, and register_printf_specifier for GLIBC_2.10.
600         * stdio-common/reg-modifier.c: New file.
601         * stdio-common/reg-type.c: New file.
602         * stdio-common/reg-printf.c (__register_printf_specifier): New
603         function.  Mostly the old __register_printf_function function but
604         uses locking and type of third parameter changed.
605         (__register_printf_function): Implement using
606         __register_printf_specifier.
607         * stdio-common/vfprintf.c (vfprintf): Collect argument sizes in
608         calls to arginfo functions.  Allocate enough memory for user-defined
609         types.  Call new va_arg functions to get user-defined types.
610         Try installed handlers even for existing format specifiers first.
611
612 2009-04-09  Ulrich Drepper  <drepper@redhat.com>
613
614         * sysdeps/x86_64/rawmemchr.S: New file.
615
616         * stdio-common/vfprintf.c (vfprintf): Slightly more compact code.
617         Simplified code and possible copy problem fixed.
618
619         * sysdeps/unix/sysv/linux/preadv.c: Avoid prototype for static
620         function if it is not defined.  Add some necessary casts.
621         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
622
623         * sysdeps/unix/sysv/linux/kernel-features.h: SPARC and IA64 also
624         have preadv/pwritev in 2.6.30.
625
626 2009-04-08  Ulrich Drepper  <drepper@redhat.com>
627
628         * malloc/malloc.c (malloc_info): New function.
629         * malloc/malloc.h: Declare it.
630         * malloc/Versions: Export malloc_info for GLIBC_2.10.
631
632         * sysdeps/unix/sysv/linux/preadv64.c (PREAD): Use __libc_pread64
633         to avoid PLT slot.
634
635         * malloc/malloc.c (_int_realloc): Add parameter with old block
636         size.  Remove duplicated test.  Don't handle mmap'ed blocks here.
637         Adjust all callers.
638         * malloc/hooks.c (realloc_check): Adjust _int_realloc call.
639
640 2009-04-07  Ulrich Drepper  <drepper@redhat.com>
641
642         * sysdeps/x86_64/strchrnul.S: New file.
643
644         * crypt/Makefile (LDLIBS-crypt.so): Use this variable instead of
645         depending libcrypt on -lfreebl3.
646
647         * sysdeps/unix/sysv/linux/kernel-features.h: Power also has
648         preadv/pwritev in 2.6.30.
649
650         * resolv/nss_dns/dns-host.c (getanswer_r): Use strcasecmp
651         instead of __strcasecmp.
652
653         * string/stratcliff.c (do_test): Add memchr tests..
654         * wcsmbs/wcsatcliff.c (MEMCHR): Define.
655         * sysdeps/x86_64/memchr.S: Fix handling of end of buffer after
656         first read quad word.
657
658 2009-04-06  Ulrich Drepper  <drepper@redhat.com>
659
660         * string/strverscmp.c (__strverscmp): Fix last cleanups.
661         * string/tst-svc.input: Add new test case.
662         * string/tst-svc.expect: Adjust.
663         * string/Makefile: Don't ignore tst-svc error.
664
665         * sysdeps/x86_64/memchr.S: New file.
666
667         * resolv/resolv.h (RES_SNGLKUP): Define.
668         * resolv/res_init.c (res_setoptions): Recognize single-request option.
669         * resolv/res_send.c (send_dg): If we sent two requests at once and
670         only get one reply before timeout switch to mode where we send the
671         second request only after the first answer has been received.
672
673 2009-04-05  Ulrich Drepper  <drepper@redhat.com>
674
675         * sysdeps/x86_64/strlen.S: Optimize by using SSE2 instructions.
676         * sysdeps/x86_64/strchr.S: Likewise.
677
678 2009-04-03  Ulrich Drepper  <drepper@redhat.com>
679
680         * configure.in: We need to test for the compiler earlier.
681
682         * misc/Makefile (routines): Add preadv, preadv64, pwritev, pwritev64.
683         * misc/Versions: Export preadv, preadv64, pwritev, pwritev64 for
684         GLIBC_2.10.
685         * misc/sys/uio.h: Declare preadv, preadv64, pwritev, pwritev64.
686         * sysdeps/unix/sysv/linux/kernel-features.h: Add entries for preadv
687         and pwritev.
688         * misc/preadv.c: New file.
689         * misc/preadv64.c: New file.
690         * misc/pwritev.c: New file.
691         * misc/pwritev64.c: New file.
692         * sysdeps/posx/preadv.c: New file.
693         * sysdeps/posx/preadv64.c: New file.
694         * sysdeps/posx/pwritev.c: New file.
695         * sysdeps/posx/pwritev64.c: New file.
696         * sysdeps/unix/sysv/linux/preadv.c: New file.
697         * sysdeps/unix/sysv/linux/preadv64.c: New file.
698         * sysdeps/unix/sysv/linux/pwritev.c: New file.
699         * sysdeps/unix/sysv/linux/pwritev64.c: New file.
700         * sysdeps/unix/sysv/linux/wordsize-64/preadv64.c: New file.
701         * sysdeps/unix/sysv/linux/wordsize-64/pwritev64.c: New file.
702
703         * sysdeps/unix/sysv/linux/readv.c (__libc_readv): Fix calling of
704         compatibility code.
705         * sysdeps/unix/sysv/linux/writev.c (__libc_writev): Likewise.
706
707         * sysdeps/unix/sysv/linux/kernel-features.h: Define
708         __ASSUME_COMPLETE_READV_WRITEV.
709         * sysdeps/unix/sysv/linux/readv.c: No need for userlevel fallback
710         with modern kernels.
711         * sysdeps/unix/sysv/linux/writev.c: Likewise.
712
713         * sysdeps/posix/readv.c: Since read is a cancellation point we have
714         to free a possible malloced buffer in case of cancellation.
715         * sysdeps/posix/writev.c: Likewise for write.
716
717 2009-04-02  Ulrich Drepper  <drepper@redhat.com>
718
719         * sysdeps/unix/sysv/linux/bits/socket.h: Add missing protocol numbers.
720
721         * configure.in: Recognize --enable-nss-crypt.
722         * config.make.in: Add nss-crypt entry.
723         * crypt/Makefile: If nss-crypt==yes, don't build md5.c, sha256.c,
724         sha512.c.  Don't run md5test, sha256test, sha512test.  Pass -DUSE_NSS
725         and include path for NSS directory to compiler for md5-crypt,
726         sha256-crypt, sha512-crypt.  Link libcrypt.so with -lfreebl3.
727         * crypt/md5-crypt.c: If USE_NSS is defined, don't use local hash
728         function implementation, use NSS.  Introduce wrappers around the
729         hash function calls.  Little code size optimization.
730         * crypt/sha256-crypt.c: Likewise.
731         * crypt/sha512-crypt.c: Likewise.
732         * scripts/check-local-headers.sh: Ignore nss3 directory.
733
734         * configure.in: Rename pic_default to libc_cv_pic_default.
735         * config.make.in: Likewise.
736
737 2009-04-01  Roland McGrath  <roland@redhat.com>
738
739         * elf/elf.h (R_SPARC_GLOB_JMP): New macro.
740         (R_SPARC_GOTDATA_HIX22, R_SPARC_GOTDATA_LOX10): New macros.
741         (R_SPARC_GOTDATA_OP_HIX22, R_SPARC_GOTDATA_OP_LOX10): Likewise.
742         (R_SPARC_GOTDATA_OP, R_SPARC_H34): Likewise.
743         (R_SPARC_SIZE32, R_SPARC_SIZE64): Likewise.
744         (R_SPARC_GNU_VTINHERIT, R_SPARC_GNU_VTENTRY, R_SPARC_REV32): Likewise.
745         (R_SPARC_NUM): Update.
746         From Dave Miller <davem@davemloft.net>.
747
748 2009-04-01  Ulrich Drepper  <drepper@redhat.com>
749
750         * sysdeps/unix/sysv/linux/sys/eventfd.h (EFD_SEMAPHORE): Define.
751
752 2009-03-31  Ulrich Drepper  <drepper@redhat.com>
753
754         * elf/dl-open.c: Keep track of used name spaces and only iterate over
755         those which are used.
756         * elf/dl-addr.c: Likewise.
757         * elf/dl-caller.c: Likewise.
758         * elf/dl-fini.c: Likewise.
759         * elf/dl-iteratephdr.c: Likewise.
760         * elf/dl-libc.c: Likewise.
761         * elf/dl-load.c: Likewise.
762         * elf/dl-support.c: Likewise.
763         * elf/dl-sym.c: Likewise.
764         * elf/rtld.c: Likewise.
765         * sysdeps/generic/ldsodefs.h: Likewise.
766
767         * elf/dl-load.c: Remove support for systems without MAP_ANON.
768         * elf/dl-minimal.c: Likewise.
769         * elf/dl-misc.c: Likewise.
770         * elf/rtld.c: Likewise.
771         * sysdeps/generic/ldsodefs.h: Likewise.
772
773 2009-03-30  Ulrich Drepper  <drepper@redhat.com>
774
775         * elf/do-lookup.h (do_lookup_x): Minor optimization and cleanup.
776         Avoid reuse of complex expression.
777
778         * po/fr.po: Update from translation team.
779
780 2009-03-16  Ulrich Drepper  <drepper@redhat.com>
781
782         * include/dirent.h: Yet more changes to match sort function type
783         change.
784         * sysdeps/unix/sysv/linux/i386/alphasort64.c: Likewise.
785         * sysdeps/unix/sysv/linux/i386/olddirent.h: Likewise.
786         * sysdeps/unix/sysv/linux/i386/versionsort64.c: Likewise.
787
788 2009-03-16  Thomas Schwinge  <tschwinge@gnu.org>
789
790         * dirent/scandir64.c (scandir64): Adjust declaration to type change.
791
792 2009-03-16  Ulrich Drepper  <drepper@redhat.com>
793
794         * nscd/connections.c (restart): Try to preserve the process name
795         by reading the /proc/self/exe symlink and using the return name.
796         Patch by Jeff Bastian <jbastian@redhat.com>.
797
798 2009-03-15  Ulrich Drepper  <drepper@redhat.com>
799
800         [BZ #9733]
801         * elf/dl-load.c (_dl_map_object_from_fd): Only call audit hooks
802         if we are not loading a new audit library.
803         * elf/dl-reloc (_dl_relocate_object): Third parameter is now a bitmask.
804         Only use profiling trampoline for auditing if we are not relocating
805         an audit library.
806         * elf/dl-open.c (dl_open_worker): Adjust _dl_relocate_object call.
807         * elf/rtld.c: Likewise.
808         * sysdeps/generic/ldsodefs.h: Adjust _dl_relocate_object prototype.
809
810         * elf/rtld.c (dl_main): Extend help message for --audit option.
811
812         [BZ #9759]
813         * dirent/dirent.h: Adjust prototypes of scandir, scandir64, alphasort,
814         alphasort64, versionsort, and versionsort64 to POSIX 2008.
815         * dirent/alphasort.c: Adjust implementation to type change.
816         * dirent/alphasort64.c: Likewise.
817         * dirent/scandir.c: Likewise.
818         * dirent/versionsort.c: Likewise.
819         * dirent/versionsort64.c: Likewise.
820         * sysdeps/wordsize-64/alphasort.c: Add hack to hide alphasort64
821         declaration.
822         * sysdeps/wordsize-64/versionsort.c: Add hack to hide versionsort64
823         declaration.
824
825         [BZ #9880]
826         * inet/inet6_rth.c (inet6_rth_reverse): Compute number of segments
827         correctly.  Set segleft member in output as required.
828         Patch partly by Yang Hongyang <yanghy@cn.fujitsu.com>.
829         * inet/tst-inet6_rth.c (do_test): Add tests for inet6_rth_reverse.
830
831         [BZ #9881]
832         * inet/inet6_rth.c (inet6_rth_add): Add some error checking.
833         Patch mostly by Yang Hongyang <yanghy@cn.fujitsu.com>.
834         * inet/Makefile (tests): Add tst-inet6_rth.
835         * inet/tst-inet6_rth.c: New file.
836
837         [BZ #5807]
838         * string/strlen.c (strlen): Fix omission in the expression to test
839         for NUL bytes.
840
841 2009-03-14  Ulrich Drepper  <drepper@redhat.com>
842
843         * crypt/sha256test.c (main): Perform 100,000 'a' test in a second way.
844
845         * elf/dl-runtime.c (reloc_offset): Define.
846         (reloc_index): Define.
847         (_dl_fixup): Rename reloc_offset parameter to reloc_arg.
848         (_dl_fixup_profile): Likewise.  Use reloc_index instead of
849         computing index from reloc_offset.
850         (_dl_call_pltexit): Likewise.
851         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve): Just pass
852         the relocation index to _dl_fixup.
853         (_dl_runtime_profile): Likewise for _dl_fixup_profile and
854         _dl_call_pltexit.
855         * sysdeps/x86_64/dl-runtime.c: New file.
856
857         [BZ #9893]
858         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix
859         alignment of La_x86_64_regs.  Store xmm parameters.
860         Patch mostly by Jiri Olsa <olsajiri@gmail.com>.
861
862         [BZ #9913]
863         * string/strverscmp.c (__strverscmp): Fix case of different digits
864         in fractional part of string.
865         Patch by Jingyu Liu <jyliu@fortinet.com>.
866         * string/Makefile (tests): Add tst-svc2.
867         * string/tst-svc2.c: New file.
868
869         * string/strverscmp.c (__strverscmp): Optimize size of tables.
870
871         * locale/iso-639.def: Add Min Nan.
872
873 2009-03-11  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
874
875         [BZ #9948]
876         * elf/dl-sysdep.c (_dl_show_auxv): Add support for AT_BASE_PLATFORM.
877
878 2009-03-14  Ulrich Drepper  <drepper@redhat.com>
879
880         * elf/dl-sysdep.c (auxvars): Compress data structure.
881
882         * sysdeps/i386/dl-machine.h (elf_machine_rel): Implement
883         STT_GNU_IFUNC handling.
884         (elf_machine_rela): Likewise.
885
886 2009-03-13  Ulrich Drepper  <drepper@redhat.com>
887
888         * config.h.in (USE_MULTIARCH): Define.
889         * configure.in: Handle --enable-multi-arch.
890         * elf/dl-runtime.c (_dl_fixup): Handle STT_GNU_IFUNC.
891         (_dl_fixup_profile): Likewise.
892         * elf/do-lookup.c (dl_lookup_x): Likewise.
893         * sysdeps/x86_64/dl-machine.h: Handle STT_GNU_IFUNC.
894         * elf/elf.h (STT_GNU_IFUNC): Define.
895         * include/libc-symbols.h (libc_ifunc): Define.
896         * sysdeps/x86_64/cacheinfo.c: If USE_MULTIARCH is defined, use the
897         framework in init-arch.h to get CPUID values.
898         * sysdeps/x86_64/multiarch/Makefile: New file.
899         * sysdeps/x86_64/multiarch/init-arch.c: New file.
900         * sysdeps/x86_64/multiarch/init-arch.h: New file.
901         * sysdeps/x86_64/multiarch/sched_cpucount.c: New file.
902
903         * config.make.in (experimental-malloc): Define.
904         * configure.in: Handle --enable-experimental-malloc.
905         * malloc/Makefile: Handle experimental-malloc flag.
906         * malloc/malloc.c: Implement PER_THREAD and ATOMIC_FASTBINS features.
907         * malloc/arena.c: Likewise.
908         * malloc/hooks.c: Likewise.
909         * malloc/malloc.h: Define M_ARENA_TEST and M_ARENA_MAX.
910
911 2009-03-11  Ulrich Drepper  <drepper@redhat.com>
912
913         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Add branch
914         prediction.  A few size optimizations.
915
916 2009-03-10  Ulrich Drepper  <drepper@redhat.com>
917
918         * time/tzset.c: Optimize a bit for size.
919
920 2009-03-10  Jakub Jelinek  <jakub@redhat.com>
921
922         * include/stdio.h (fmemopen): Add libc_hidden_proto.
923         * libio/fmemopen.c (fmemopen): Add libc_hidden_def.
924
925         * elf/sprof.c: Avoid warning about multi-line comment.
926
927 2009-03-10  Ulrich Drepper  <drepper@redhat.com>
928
929         * time/tzset.c (__tzset_parse_tz): Use correct string when parsing
930         DST name.
931         * time/tst-posixtz.c: Add tests for quoted timezone names.
932
933 2009-03-10  Jakub Jelinek  <jakub@redhat.com>
934
935         * posix/unistd.h (_POSIX_VERSION, _POSIX2_VERSION, _POSIX2_C_BIND,
936         _POSIX2_C_DEV, _POSIX2_SW_DEV, _POSIX2_LOCALEDEF): Define to
937         200809L instead of 200112L.
938         (_XOPEN_VERSION): For __USE_XOPEN2K8 define to 700.
939         * posix/tst-sysconf.c (STDVER): Define to 200809L instead of 200112L.
940
941         * stdlib/quick_exit.c (quick_exit): Pass &__quick_exit_funcs
942         instead of __quick_exit_funcs to __run_exit_handlers.
943         * stdlib/at_quick_exit.c (at_quick_exit): Add attribute_hidden.
944         * stdlib/exit.h (__run_exit_handlers): Add noreturn attribute.
945         (__cxa_at_quick_exit): Remove attribute_hidden.
946         * stdlib/exit.c (exit): Pass &__exit_funcs instead of __exit_funcs
947         to __run_exit_handlers.
948         * stdlib/cxa_at_quick_exit.c (__cxa_at_quick_exit): Remove
949         attribute_hidden.
950
951 2009-03-10  Ulrich Drepper  <drepper@redhat.com>
952
953         * po/id.po: Update from translation team.
954
955 2009-02-18  Jakub Jelinek  <jakub@redhat.com>
956
957         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S: Use
958         .machine push; .machine "power6" and .machine pop around mtfsf
959         insns outside of _ARCH_PWR6 define.
960         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S: Likewise.
961         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S:
962         Likewise.
963         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S:
964         Likewise.
965         * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (_SET_DI_FPSCR): Likewise.
966         * sysdeps/powerpc/fpu/fenv_libc.h (fesetenv_register,
967         relax_fenv_state): Likewise.
968
969 2009-03-08  Ulrich Drepper  <drepper@redhat.com>
970
971         * stdlib/Makefile (routines): Add quick_exit, at_quick_exit, and
972         cxa_at_quick_exit.
973         (static-only-routines): Add at_quick_exit.
974         * stdlib/Versions: Export quick_exit and __cxa_at_quick_exit for
975         GLIBC_2.10.
976         * stdlib/quick_exit.c: New file.
977         * stdlib/at_quick_exit.c: New file.
978         * stdlib/cxa_at_quick_exit.c: New file.
979         * stdlib/cxa_atexit.c (__cxa_atexit): Move body to new function.  Call
980         it appropriately.
981         (__internal_atexit): New function.
982         (__new_exitfn): Now takes parameter to point to the list to use.
983         * stdlib/cxa_finalize.c: Remove quick_exit handlers, don't call them.
984         * stdlib/exit.c (__run_exit_handlers): New function.  Split from...
985         (exit): ...here.  Just call __run_exit_handlers appropriately.
986         * stdlib/exit.h: Declare __quick_exit_funcs, __run_exit_handlers,
987         __internal_atexit, __cxa_at_quick_exit.  Adjust __new_exitfn.
988         * stdlib/on_exit.c: Adjust call to __new_exitfn.
989         * stdlib/stdlib.h: Declare at_quick_exit and quick_exit.
990
991         * po/id.po: Update from translation team.
992
993 2009-03-07  Ulrich Drepper  <drepper@redhat.com>
994
995         * po/ru.po: Update from translation team.
996
997 2009-03-04  Ulrich Drepper  <drepper@redhat.com>
998
999         * po/nl.po: Update from translation team.
1000
1001 2009-03-03  Ulrich Drepper  <drepper@redhat.com>
1002
1003         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Declare fallocate{,64}.
1004         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
1005         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
1006         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
1007         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
1008         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
1009         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
1010
1011         * po/pl.po: Update from translation team.
1012
1013 2009-03-02  Ulrich Drepper  <drepper@redhat.com>
1014
1015         [BZ #7083]
1016         * sysdeps/unix/sysv/linux/fallocate.c: New file.
1017         * sysdeps/unix/sysv/linux/fallocate64.c: New file.
1018         * sysdeps/unix/sysv/linux/wordsize-64/fallocate64.c: New file.
1019         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: New file.
1020         * sysdeps/unix/sysv/linux/i386/fallocate64.c: New file.
1021         * sysdeps/unix/sysv/linux/i386/fallocate.c: New file.
1022         * sysdeps/unix/sysv/linux/Versions: Export fallocate and fallocate64
1023         for GLIBC_2.10.
1024         * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
1025         Add fallocate and fallocate64.
1026
1027         * io/fcntl.h: Pretty printing.
1028
1029 2009-03-02  Richard Guenther  <rguenther@suse.de>
1030
1031         * misc/sys/cdefs.h (__extern_always_inline): Add __artificial__
1032         attribute also for non-C99 inline semantics variant.
1033
1034 2009-02-12  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
1035
1036         * sysdeps/powerpc/powerpc32/power7/fpu/Implies: New file.
1037         * sysdeps/powerpc/powerpc32/power7/Implies: Likewise.
1038         * sysdeps/powerpc/powerpc64/power7/fpu/Implies: Likewise.
1039         * sysdeps/powerpc/powerpc64/power7/Implies: Likewise.
1040         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/fpu/Implies:
1041         Likewise.
1042         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/fpu/Implies:
1043         Likewise.
1044
1045 2009-03-02  Ulrich Drepper  <drepper@redhat.com>
1046
1047         * po/cs.po: Update from translation team.
1048
1049 2009-02-28  Ulrich Drepper  <drepper@redhat.com>
1050
1051         * po/bg.po: Update from translation team.
1052         * po/sv.po: Likewise.
1053         * po/fi.po: Likewise.
1054         * po/vi.po: Likewise.
1055
1056 2009-02-27  Roland McGrath  <roland@redhat.com>
1057
1058         * Makeconfig (%.v.i): Depend on Makeconfig.
1059         Exclude % lines from initial #-comment removal.
1060
1061 2009-02-27  Ulrich Drepper  <drepper@redhat.com>
1062
1063         * po/ko.po: Update from translation team.
1064
1065 2009-02-26  Roland McGrath  <roland@redhat.com>
1066
1067         * shadow/lckpwdf.c (__lckpwdf): Move FLAGS inside block using it,
1068         avoids unused warning.
1069
1070 2009-02-26  Andrew Stubbs  <ams@codesourcery.com>
1071             SUGIOKA Toshinobu  <sugioka@itonet.co.jp>
1072
1073         * sysdeps/unix/sysv/linux/sh/sys/procfs.h: Don't include signal.h,
1074         sys/ucontext.h and asm/elf.h.  Include sys/user.h.
1075         * sysdeps/unix/sysv/linux/sh/sys/user.h: Don't include features.h
1076         and asm/user.h.  Include asm/ptrace.h.
1077         (PTRACE_GETREGS, PTRACE_SETREGS, PTRACE_GETFPREGS,
1078         PTRACE_SETFPREGS, PTRACE_GETFDPIC, PTRACE_GETFDPIC_EXEC,
1079         PTRACE_GETFDPIC_INTERP, PTRACE_GETDSPREGS, PTRACE_SETDSPREGS):
1080         Undefine.
1081         (start_thread): Don't undefine.
1082         (elf_greg_t, ELF_NGREG, elf_fpregset_t, user_fpu_struct, user):
1083         Define.
1084
1085 2009-02-26  Ulrich Drepper  <drepper@redhat.com>
1086
1087         * wctype/wctype.h: The *_l functions are in POSIX 2008.
1088         * wcsmbs/wchar.h: mbsnrtowcs, open_wmemstream, wcpcpy, wcpncpy,
1089         wcscasecmp, wcsdup, wcsncasecmp, wcsnlen, wcsnrtombs,
1090         wcscasecmp_l, wcsncasecmp_l, wcscoll_l, and wcsxfrm_l.
1091         * sysdeps/mach/hurd/bits/posix_opt.h: Reset value of macros from
1092         200112L to 200809L.
1093         * sysdeps/unix/sysv/linux/bits/posix_opt.h: Likewise.
1094         * posix/getconf.c (vars): Add _SC_THREAD_ROBUST_PRIO_INHERIT and
1095         _SC_THREAD_ROBUST_PRIO_PROTECT entries.
1096         * bits/confname.h: Add _SC_THREAD_ROBUST_PRIO_INHERIT and
1097         _SC_THREAD_ROBUST_PRIO_PROTECT.
1098         * posix/unistd.h: fexecve is in POSIX 2008.
1099         * time/time.h: strftime_l is in POSIX 2008.
1100         * io/sys/stat.h: futimens is in POSIX 2008.
1101         * string/strings.h: strcasecmp_l and strncasecmp_l are in POSIX 2008.
1102         * string/string.h: stpcpy, stpncpy, strndup, strnlen, strsignal,
1103         strcoll_l, strerror_l, and strxfrm_l are in POSIX 2008.
1104         * stdlib/stdlib.h: mkdtemp is in POSIX 2008.
1105         * libio/stdio.h: dprintf, fmemopen, getdelim, getline,
1106         open_memstream, and vdprintf are in POSIX 2008.
1107
1108 2009-02-25  Ulrich Drepper  <drepper@redhat.com>
1109
1110         * include/features.h: Define macros for XPG7/POSIX 2008.
1111         * ctype/ctype.h: The *_l functions are in POSIX 2008.
1112         * dirent/dirent.h: alphasort, dirfd, scandir, and fdopendir are in
1113         POSIX 2008.
1114         * locale/langinfo.h: nl_langinfo_l is in POSIX 2008.
1115         * locale/xlocale.h: Define locale_t type.
1116         * locale/locale.h: duplocale, freelocale, newlocale, uselocale are
1117         in POSIX 2008.  Don't define locale_t here.
1118         * stdlib/monetary.h: strfmon_l is in POSIX 2008.
1119         * sysdeps/unix/sysv/linux/bits/stat.h: Protect UTIME_NOW and
1120         UTIME_OMIT only with __USE_ATFILE.
1121         * signal/signal.h: Declare psignal and psiginfo for POSIX 2008.
1122         * stdio-common/psiginfo.c: New file.
1123         * stdio-common/psiginfo-data.h: New file.
1124         * stdio-common/psiginfo-define.h: New file.
1125         * stdio-common/Makefile (routines): Add psiginfo.
1126         * stdio-common/Versions: Export psiginfo for GLIBC_2.10.
1127         * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
1128         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Likewise.
1129         * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
1130         * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
1131         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
1132         * io/sys/stat.h: Move mknodat definition into same conditional as
1133         mknod.
1134         * time/sys/time.h: futimesat is not among the functions accepted
1135         into the POSIX standard.
1136
1137         * include/features.h: If no feature selection given and we select
1138         by default a POSIX mode, also define __USE_POSIX_IMPLICITLY.
1139         * posix/Versions: Export __posix_getopt.
1140         * posix/getopt.c (_getopt_initialize): Take additional parameter.
1141         Use it to alternatively initialize __posixly_correct.
1142         (_getopt_internal_r): Take addition parameter.  Pass on to
1143         _getopt_initialize.
1144         (_getopt_internal): Take addition parameter.  Pass on to
1145         _getopt_internal_r.
1146         (getopt): Pass additional zero to _getopt_internal.
1147         (__posix_getopt): New function.
1148         * posix/getopt.h: Add redirection for getopt.
1149         * posix/getopt1.c (getopt_long): Pass additional zero to
1150         _getopt_internal.
1151         (getopt_long_only): Likewise.
1152         (_getopt_long_r): Pass additional zero to _getopt_internal_r.
1153         (_getopt_long_only_r): Likewise.
1154         * posix/getopt_int.h: Adjust declarations of _getopt_internal and
1155         _getopt_internal_r.
1156
1157 2009-02-24  Ulrich Drepper  <drepper@redhat.com>
1158
1159         * bits/confname.h: Define _SC_TRACE_EVENT_NAME_MAX, _SC_TRACE_NAME_MAX,
1160         _SC_TRACE_SYS_MAX, _SC_TRACE_USER_EVENT_MAX, _SC_XOPEN_STREAMS.
1161         * sysdeps/posix/sysconf.c (__sysconf): Handle
1162         _SC_TRACE_EVENT_NAME_MAX, _SC_TRACE_NAME_MAX, _SC_TRACE_SYS_MAX,
1163         _SC_TRACE_USER_EVENT_MAX, _SC_XOPEN_STREAMS.
1164
1165 2009-02-24  Roland McGrath  <roland@redhat.com>
1166
1167         [BZ #9895]
1168         * README.template: Reworded not to use substituted version number.
1169         Renamed to ...
1170         * README: ... here (no longer generated).
1171         * Makefile (README): Target removed.
1172
1173 2009-02-24  Ulrich Drepper  <drepper@redhat.com>
1174
1175         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf):
1176         /proc/sys/kernel/rtsig_max doesn't exist anymore, use getrlimit
1177         instead.
1178
1179         * io/sys/stat.h: The lstat functions have been mandatory since 2001.
1180
1181         * time/tzset.c (tzset_internal): Correct parsing of TZ envvar.
1182
1183 2009-02-22  Ulrich Drepper  <drepper@redhat.com>
1184
1185         * po/bg.po: Update from translation team.
1186
1187 2009-02-16  Jakub Jelinek  <jakub@redhat.com>
1188
1189         * stdlib/monetary.h: Uglify function parameter names.
1190         * sunrpc/rpc/pmap_clnt.h: Likewise.
1191         * sunrpc/rpc/svc.h: Likewise.
1192         * sunrpc/rpc/xdr.h: Likewise.
1193         * sunrpc/rpc/clnt.h: Likewise.
1194         * resolv/netdb.h: Likewise.
1195         * resolv/arpa/nameser.h: Likewise.
1196         * resolv/resolv.h: Likewise.
1197         * argp/argp.h: Likewise.
1198         * locale/langinfo.h: Likewise.
1199         * io/sys/stat.h: Likewise.
1200         * posix/spawn.h: Likewise.
1201         * nis/rpcsvc/nislib.h: Likewise.
1202         * malloc/obstack.h: Likewise.
1203         * sysdeps/ia64/bits/link.h: Likewise.
1204         * sysdeps/i386/bits/link.h: Likewise.
1205         * sysdeps/s390/bits/link.h: Likewise.
1206         * sysdeps/powerpc/bits/link.h: Likewise.
1207         * sysdeps/x86_64/bits/link.h: Likewise.
1208         * sysdeps/sparc/bits/link.h: Likewise.
1209         * sysdeps/sh/bits/link.h: Likewise.
1210         * sysdeps/unix/sysv/linux/i386/sys/io.h: Likewise.
1211         * sysdeps/unix/sysv/linux/x86_64/sys/io.h: Likewise.
1212         * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: Likewise.
1213         * sysdeps/unix/sysv/linux/sys/eventfd.h: Likewise.
1214
1215 2008-12-01  Fredrik Unger  <fred@tree.se>
1216
1217         * soft-fp/double.h [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_SEMIRAW_D,
1218         FP_UNPACK_SEMIRAW_DP): Use _FP_UNPACK_RAW_1 instead of
1219         _FP_UNPACK_RAW_2, fix up first argument.
1220
1221 2009-02-15  Ulrich Drepper  <drepper@redhat.com>
1222
1223         * sysdeps/unix/sysv/linux/getsysstats.c (next_line): New function.
1224         (GET_NPROCS_PARSER): Change parameters and use next_line.
1225         (__get_nprocs): Rewrite to not use stdio routines.
1226         * sysdeps/unix/sysv/linux/sparc/getsysstats.c (GET_NPROCS_PARSER):
1227         Change parameters and use next_line.
1228
1229 2009-02-13  Ulrich Drepper  <drepper@redhat.com>
1230
1231         [BZ #5381]
1232         * nscd/nscd.h: Remove definitions and declarations for mem_in_flight.
1233         Change mempool_alloc prototype.
1234         * nscd/mem.c (gc): Don't handle mem_in_flight.
1235         (mempool_alloc): Third parameter now only indicates whether this is the
1236         first call (to allocate data) or not.  If it is, get db rdlock.
1237         Release it on error.  Don't handle mem_in_flight.
1238         * nscd/aicache.c (addhstaiX): Mark he parameter as const.
1239         Adjust third parameter of mempool_alloc calls.
1240         Nothing to do here in case mempool_alloc fails.
1241         Avoid local variable shadowing parameter.  No need to get db rdlock
1242         before calling cache_add.
1243         * nscd/cache.c (cache_add): Adjust call to mempool_alloc.  There is
1244         no mem_in_flight array anymore.
1245         * nscd/connections.c: Remove definition and handling of mem_in_flight.
1246         * nscd/grpcache.c (cache_addgr): Adjust third parameter of
1247         mempool_alloc calls.  Mark he parameter as const.  Nothing to do here
1248         in case mempool_alloc fails. No need to get db rdlock before calling
1249         cache_add.
1250         * nscd/hstcache.c (cache_addhst): Likewise.
1251         * nscd/initgrcache.c (addinitgroupsX): Likewise.
1252         * nscd/servicescache.c (cache_addserv): Likewise.
1253         * nscd/pwdcache.c (cache_addpw): Likewise.  Remove some debugging code.
1254
1255 2009-02-11  Ulrich Drepper  <drepper@redhat.com>
1256
1257         * po/lt.po: Update from translation team.
1258
1259 2009-02-10  Ulrich Drepper  <drepper@redhat.com>
1260
1261         * elf/dl-load.c (open_verify): In case VALID_ELF_HEADER is
1262         defined, allow additional data to be added using the optional
1263         MORE_ELF_HEADER_DATA macro.
1264         * sysdeps/unix/sysv/linux/ldsodefs.h (VALID_ELF_HEADER,
1265         VALID_ELF_OSABI, VALID_ELF_ABIVERSION, MORE_ELF_HEADER_DATA): Define.
1266
1267 2009-02-08  Ulrich Drepper  <drepper@redhat.com>
1268
1269         * include/atomic.h: Define catomic_and if not already defined.
1270         * sysdeps/x86_64/bits/atomic.h: Define catomic_and.
1271         * sysdeps/i386/i486/bits/atomic.h: Likewise.
1272
1273 2009-02-07  Ulrich Drepper  <drepper@redhat.com>
1274
1275         * malloc/malloc.c (_int_free): Second argument is now mchunkptr.
1276         Change all callers.
1277         (_int_realloc): Likewise.  Third argument is now padded size
1278         All _int_* functions are now static.
1279
1280         * malloc/hooks.c: Change all callers to _int_free and _int_realloc.
1281         * malloc/arena.c: Likewise.
1282         * include/malloc.h: Remove now unnecessary declarations of the _int_*
1283         functions.
1284
1285         * sunrpc/rpc_common.c: We cannot move _null_auth into .rodata that
1286         easily.
1287
1288         * malloc/malloc.c: Add branch prediction for use of the hooks.
1289
1290         * grp/compat-initgroups.c [NOT_IN_libc] (__libc_use_alloca): Define.
1291
1292 2009-02-06  Ulrich Drepper  <drepper@redhat.com>
1293
1294         [BZ #7095]
1295         * bits/confname.h: Add SUSv7 macros for getconf environments.
1296         * bits/environments.h: Likewise.
1297         * sysdeps/unix/sysv/linux/i386/bits/environments.h: Likewise.
1298         * sysdeps/unix/sysv/linux/powerpc/bits/environments.h: Likewise.
1299         * sysdeps/unix/sysv/linux/s390/bits/environments.h: Likewise.
1300         * sysdeps/unix/sysv/linux/sparc/bits/environments.h: Likewise.
1301         * sysdeps/unix/sysv/linux/x86_64/bits/environments.h: Likewise.
1302         * posix/confstr.c: Handle SUSv5 and SUSv7 environments.
1303         * posix/getconf.c: Likewise.
1304         * posix/sysconf.c: Likewise.
1305         * sysdeps/posix/sysconf.c: Likewise.
1306         * posix/Makefile (getconf.speclist): Also collect SUSv5 and SUSv7
1307         environments.
1308
1309 2009-01-16  Petr Baudis  <pasky@suse.cz>
1310
1311         [BZ #9753]
1312         * resolv/res_libc.c (__res_maybe_init): Call __res_vinit()
1313         even if we currently have zero nscount.
1314
1315 2009-02-06  Ulrich Drepper  <drepper@redhat.com>
1316
1317         [BZ #9781]
1318         * grp/compat-initgroups.c (compat_call): Switch to use malloc when
1319         the input line is too long.
1320
1321         * po/Makefile (libc.pot): Add f_print as function taking c-format
1322         parameter.
1323
1324         * debug/xtrace.sh: Unify translatable messages.
1325         * elf/ldd.bash.in: Likewise.
1326         * elf/sprof.c: Likewise.
1327         * locale/programs/locale.c: Likewise.
1328         * malloc/memusage.sh: Likewise.
1329         * nss/getent.c: Likewise.
1330
1331 2009-02-06  Joseph Myers  <joseph@codesourcery.com>
1332
1333         * debug/pcprofiledump.c (print_version,
1334         argp_program_version_hook): New function.
1335         * elf/ldconfig.c (more_help): New function.
1336         (argp): Use it.
1337         * elf/sln.c (usage): New function.
1338         (main): Support --help and --version.
1339         * malloc/memusagestat.c (print_version): New function.
1340         (argp_program_version_hook): New variable.
1341         * nscd/nscd.c (more_help): New function.
1342         (argp): Use it.
1343         * posix/getconf.c (main): Send --version output to stdout.
1344         Support --help.
1345         * sunrpc/rpc_main.c (usage, options_usage): Take STREAM and STATUS
1346         arguments.  All callers changed.
1347         (print_version): New function.
1348         (parseargs): Support --help and --version.
1349         * sunrpc/rpcinfo.c (usage): Take STREAM argument.  All callers
1350         changed.
1351         (print_version): New function.
1352         (main): Use getopt_long.  Support --help and --version.
1353         * sysdeps/unix/sysv/linux/lddlibc4.c (main): Support --help and
1354         --version.
1355
1356 2009-02-06  Ulrich Drepper  <drepper@redhat.com>
1357
1358         * malloc/memusage.c (DEFAULT_BUFFER_SIZE): Change to 32768.
1359         (update_data): Fix handling of wrapping back
1360         to the beginning of the buffer.
1361
1362         [BZ #9823]
1363         * stdio-common/psignal.c (psignal): Fix test for empty string.
1364
1365 2009-02-05  Ulrich Drepper  <drepper@redhat.com>
1366
1367         * include/rpc/auth.h: Use libc_hidden_proto for _null_auth.
1368         * sunrpc/rpc_common.c: Add libc_hidden_def for _null_auth.  Also
1369         move _null_auth to .rodata.
1370
1371         * time/tzset.c (__tzset_parse_tz): DST offset must also allow hour
1372         value of 24.
1373
1374         * intl/dcigettext.c (DCIGETTEXT): Avoid some code duplication.
1375
1376         * sysdeps/unix/opendir.c (__alloc_dir): We have a lot more memory
1377         today than when the original code was written.  Use larger
1378         buffers.  This also makes it unnecessary to have stat information,
1379         if this causes extra efforts.
1380         (__opendir): In case O_DIRECTORY works, don't call fstat just for
1381         __alloc_dir.
1382
1383 2009-02-03  Andrew Stubbs  <ams@codesourcery.com>
1384
1385         * sysdeps/sh/sh4/dl-trampoline.S: Only set HAVE_FPU if __SH_FPU_ANY__
1386         is set.
1387         * sysdeps/sh/sh4/setjmp.S: Support SH4-NOFPU.
1388         * sysdeps/sh/sh4/__longjmp.S: Likewise.
1389         * sysdeps/unix/sysv/linux/sh/sh4/getcontext.S: Likewise.
1390         * sysdeps/unix/sysv/linux/sh/sh4/setcontext.S: Likewise.
1391         * sysdeps/unix/sysv/linux/sh/sh4/swapcontext.S: Likewise.
1392         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Likewise.
1393
1394 2009-02-04  Ulrich Drepper  <drepper@redhat.com>
1395
1396         * po/ru.po: Update from translation team.
1397
1398 2008-11-17  Nathan Sidwell  <nathan@codesourcery.com>
1399
1400         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (struct sigevent):
1401         Add _tid slot to maintain consistency with kernel.
1402
1403 2009-02-04  Ulrich Drepper  <drepper@redhat.com>
1404
1405         * libio/wfileops.c (_IO_wfile_underflow): Fix handling of
1406         incomplete characters at end of input buffer.
1407         * libio/Makefile (tests): Add tst-fgetwc.
1408         * libio/tst-fgetwc.c: New file.
1409         * libio/tst-fgetwc.input: New file.
1410
1411 2009-02-02  Andrew Stubbs  <ams@codesourcery.com>
1412
1413         * sysdeps/unix/sysv/linux/sh/Makefile (libm.so-no-z-defs): Define.
1414
1415 2009-02-02  Ulrich Drepper  <drepper@redhat.com>
1416
1417         [BZ #9793]
1418         * iconv/gconv_trans.c (__gconv_transliterate): Don't change
1419         *OUTBUFSTART unless the whole output fit into the buffer.
1420         * iconv/Makefile (tests): Add tst-iconv4.
1421         * iconv/tst-iconv4.c: New file.
1422
1423 2009-02-01  Ulrich Drepper  <drepper@redhat.com>
1424
1425         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Add new descriptors.
1426         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
1427
1428 2009-01-29  Andrew Stubbs  <ams@codesourcery.com>
1429
1430         * elf/Makefile (ld.so): Adjust the sed script to insert _begin in to
1431         newer linker scripts.
1432
1433 2009-01-30  Ulrich Drepper  <drepper@redhat.com>
1434
1435         [BZ #7040]
1436         * sysdeps/unix/sysv/linux/sys/inotify.h: Second parameter of
1437         inotify_rm_watch should have type int.
1438
1439 2009-01-06  Steven Munroe  <sjmunroe@us.ibm.com>
1440
1441         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp):
1442         Make aligned_restore_vmx a local symbol.
1443         * sysdeps/powerpc/powerpc64/__longjmp-common.S (__longjmp):
1444         Likewise.
1445
1446 2009-01-30  Andreas Jaeger  <aj@suse.de>
1447
1448         * sysdeps/unix/sysv/linux/bits/shm.h (SHM_EXEC): Define.
1449         * sysdeps/unix/sysv/linux/ia64/bits/shm.h (SHM_EXEC): Define.
1450         * sysdeps/unix/sysv/linux/powerpc/bits/shm.h (SHM_EXEC): Define.
1451         * sysdeps/unix/sysv/linux/s390/bits/shm.h (SHM_EXEC): Define.
1452         * sysdeps/unix/sysv/linux/sh/bits/shm.h (SHM_EXEC): Define.
1453         * sysdeps/unix/sysv/linux/sparc/bits/shm.h (SHM_EXEC): Define.
1454         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h (SHM_EXEC): Define.
1455
1456 2009-01-11  Ryan S. Arnold  <rsa@us.ibm.com>
1457
1458         [BZ #9726]
1459         * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (_SET_DI_FPSCR,
1460         _SET_SI_FPSCR): Clobber fp0 to prevent erroneous test-case passes.
1461
1462 2009-01-08  Ryan S. Arnold  <rsa@us.ibm.com>
1463
1464         [BZ #9726]
1465         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S
1466         (__CONTEXT_FUNC_NAME): Fix mtfsf to use fp31 instead of fp0.
1467         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S
1468         (__CONTEXT_FUNC_NAME): Fix mtfsf to use fp31 instead of fp0.
1469
1470 2009-01-11  Thomas Schwinge  <tschwinge@gnu.org>
1471
1472         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Use
1473         memcpy instead of memcmp.
1474         (_dl_setup_pointer_guard): Likewise.
1475
1476 2009-01-30  Ulrich Drepper  <drepper@redhat.com>
1477
1478         * malloc/malloc.c (sYSMALLOc): Don't use assert when detecting
1479         manipulated brk, use malloc_printerr.
1480         * misc/sbrk.c (__sbrk): Better error handling for nonsense
1481         requests.
1482
1483 2009-01-30  Jakub Jelinek  <jakub@redhat.com>
1484
1485         * string/string.h (memchr, strchr, strrchr, strpbrk, strstr, index,
1486         rindex): For C++ add inlines so that they can be recognized as
1487         builtins.
1488         * string/strings.h: Define correct C++ prototypes for gcc 4.4.
1489
1490 2009-01-29  Ulrich Drepper  <drepper@redhat.com>
1491             Jakub Jelinek  <jakub@redhat.com>
1492
1493         * string/string.h: Define correct C++ prototypes for gcc 4.4.
1494         * wcsmbs/wchar.h: Likewise.
1495
1496 2009-01-29  Ulrich Drepper  <drepper@redhat.com>
1497
1498         * sysdeps/i386/stackinfo.h (stackinfo_get_sp): Define.
1499         (stackinfo_sub_sp): Define.
1500
1501 2009-01-28  Ulrich Drepper  <drepper@redhat.com>
1502
1503         [BZ #9750]
1504         * nscd/mem.c (gc): Use alloca_count to get the real stack usage.
1505         * include/alloca.h (alloca_account): Define.
1506         * sysdeps/x86_64/stackinfo.h (stackinfo_get_sp): Define.
1507         (stackinfo_sub_sp): Define.
1508
1509         * nscd/connections.c (nscd_init): If database file access fails
1510         check whether this is due to permission problems and bail in that
1511         case.
1512
1513         [BZ #9741]
1514         * nscd/mem.c (gc): Fix assignment of he_data in case malloc is used.
1515         Reported by Jun'ichi Nomura <j-nomura@ce.jp.nec.com>.
1516
1517 2009-01-14  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
1518
1519         * sysdeps/unix/sysv/linux/sh/sysdep.h (INTERNAL_SYSCALL):
1520         Add "t" to clobber list.
1521         (INTERNAL_SYSCALL_NCS): Likewise.
1522
1523 2009-01-28  Ulrich Drepper  <drepper@redhat.com>
1524
1525         * nss/getent.c (print_networks): Don't print comma between aliases.
1526
1527 2009-01-23  Ulrich Drepper  <drepper@redhat.com>
1528
1529         * sysdeps/unix/sysv/linux/tst-clone.c (do_test): Avoid warning.
1530
1531         * misc/hsearch_r.c (hcreate_r): We need at least three elements in
1532         the hash table.
1533         * misc/Makefile (tests): Add bug-hsearch1.
1534         * misc/bug-hsearch1.c: New file.
1535
1536 2009-01-22  Roland McGrath  <roland@redhat.com>
1537
1538         * Makeconfig (%.v.i): Strip trailing # comments,
1539         not only whole-line comments.
1540
1541 2009-01-10  Ulrich Drepper  <drepper@redhat.com>
1542
1543         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Take
1544         one parameter.  If non-NULL use it to initialize return value.
1545         (_dl_setup_pointer_guard): New function.
1546         * sysdeps/unix/sysv/linux/dl-osinfo.h: Likewise.
1547         * sysdeps/generic/ldsodefs.h: Declare _dl_random.
1548         * elf/rtld.c (security_init): Pass _dl_random to
1549         _dl_setup_stack_chk_guard.  Call _dl_setup_pointer_guard to initialize
1550         pointer_chk_guard.
1551         * elf/dl-sysdep.c (_dl_random): New variable.
1552         (_dl_sysdep_start): Handle AT_RANDOM.
1553         (_dl_show_auxv): Likewise.
1554         * elf/dl-support.c (_dl_random): New variable.
1555         (_dl_aux_init): Handle AT_RANDOM.
1556         * csu/libc-start.c [!SHARED] (libc_start_main): Pass _dl_random
1557         to _dl_setup_stack_chk_guard.
1558
1559         * elf/elf.h (AT_RANDOM): Define AT_BASE_PLATFORM and AT_RANDOM.
1560
1561 2009-01-10  Roland McGrath  <roland@redhat.com>
1562
1563         * nscd/nscd.c (parse_opt): Use argp_error for bad -i argument.
1564
1565 2009-01-08  Ulrich Drepper  <drepper@redhat.com>
1566
1567         * sysdeps/i386/fpu/libm-test-ulps: Adjust expm1 errors.
1568
1569         [BZ #9706]
1570         * nss/nss_files/files-parse.c (strtou32): New function.
1571         (INT_FIELD): Use strotu32 instead of strtoul to unify behavior
1572         across 32-bit and 64-bit platforms.
1573         (INT_FIELD_MAYBE_NULL): Likewise.
1574
1575 2009-01-08  Jakub Jelinek  <jakub@redhat.com>
1576
1577         [BZ #9720]
1578         * sysdeps/unix/sysv/linux/bits/resource.h (enum __rusage_who): Avoid
1579         comma after RUSAGE_CHILDREN if not -D_GNU_SOURCE.
1580         * sysdeps/unix/sysv/linux/sparc/bits/resource.h (enum __rusage_who):
1581         Likewise.
1582
1583 2009-01-05  Paolo Bonzini  <bonzini@gnu.org>
1584
1585         [BZ #697]
1586         * posix/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
1587         being NULL also if there are no backreferences.
1588         * posix/rxspencer/tests: Add testcases.
1589
1590 2009-01-04  Paolo Bonzini  <bonzini@gnu.org>
1591
1592         [BZ #9697]
1593         * posix/bug-regex17.c: Add testcases.
1594         * posix/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
1595         handling.
1596
1597 2009-01-05  Martin Schwidefsky  <schwidefsky@de.ibm.com>
1598
1599         * sysdeps/unix/sysv/linux/s390/bits/libc-vdso.h: New file.
1600         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: New file.
1601         * sysdeps/unix/sysv/linux/s390/init-first.c: New file.
1602         * sysdeps/unix/sysv/linux/s390/Makefile (sysdep_routines): Add dl-vdso
1603         for elf subdir.
1604         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (INLINE_VSYSCALL,
1605         INTERNAL_VSYSCALL, INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK,
1606         INTERNAL_SYSCALL_NCS, HAVE_CLOCK_GETRES_VSYSCALL and
1607         HAVE_CLOCK_GETTIME_VSYSCALL: Define.
1608         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
1609         * sysdeps/unix/sysv/linux/s390/Versions: New file.
1610
1611 2008-12-31  Paolo Bonzini  <bonzini@gnu.org>
1612
1613         * posix/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
1614         * posix/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
1615         re_string_skip_chars, re_string_reconstruct): Likewise.
1616         * posix/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
1617
1618 2008-12-31  Rafael Avila de Espindola  <espindola@google.com>
1619
1620         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr2_r): Check and
1621         adjust the buffer alignment.
1622
1623 2009-01-07  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1624
1625         * sysdeps/mach/hurd/Makefile (sysdep_headers) [subdir=socket]:
1626         Add net/ethernet.h net/if_arp.h net/if_ether.h net/if_ppp.h
1627         net/route.h.
1628
1629         * hurd/report-wait.c (describe_number): Use __stpcpy to prepend
1630         flavor to description only when flavor is not NULL.
1631
1632         * hurd/hurdsig.c (signal_allowed): Unlock _hurd_dtable_lock
1633         mutex after SIGIO/SIGURG lookup loop.
1634
1635 2009-01-03  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1636
1637         * bits/resource.h (PRIO_PROCESS, PRIO_PGRP, PRIO_USER): Add macros.
1638
1639 2009-01-03  Ulrich Drepper  <drepper@redhat.com>
1640
1641         * sysdeps/unix/sysv/linux/i386/sysdep.h: Describe 6th argument
1642         handling.
1643
1644 2009-01-02  Ulrich Drepper  <drepper@redhat.com>
1645
1646         * sysdeps/unix/sysv/linux/kernel-features.h
1647         (__ASSUME_FUTEX_CLOCK_REALTIME): Define.
1648
1649         * wcsmbs/wcsnrtombs.c (__wcsnrtombs): Create temporary state object
1650         if no output is written.
1651
1652         * version.h: Bump to 2.10 development.
1653
1654         * posix/getconf.c: Update copyright year.
1655         * nss/getent.c: Likewise.
1656         * iconv/iconvconfig.c: Likewise.
1657         * iconv/iconv_prog.c: Likewise.
1658         * elf/ldconfig.c: Likewise.
1659         * catgets/gencat.c: Likewise.
1660         * csu/version.c: Likewise.
1661         * elf/ldd.bash.in: Likewise.
1662         * elf/sprof.c (print_version): Likewise.
1663         * locale/programs/locale.c: Likewise.
1664         * locale/programs/localedef.c: Likewise.
1665         * nscd/nscd.c (print_version): Likewise.
1666         * debug/xtrace.sh: Likewise.
1667         * malloc/memusage.sh: Likewise.
1668         * malloc/mtrace.pl: Likewise.
1669         * debug/catchsegv.sh: Likewise.
1670
1671 2008-12-29  Mike Frysinger  <vapier@gentoo.org>
1672
1673         * iconvdata/Makefile (iconv-rules): Use LC_ALL=C when running awk
1674         script.
1675
1676 2008-12-29  Ulrich Drepper  <drepper@redhat.com>
1677
1678         * sysdeps/posix/getaddrinfo.c (gaih_inet): When the
1679         gethostbyname4_r function call succeeded, just leave the loop.
1680
1681         [BZ #9694]
1682         * wcsmbs/wchar.h: Move undefs for local __need_* constants to the
1683         very end.
1684         * wctype/wctype.h: Get wint_t definition directly from <stddef.h>.
1685         * wctype/Makefile (tests): Add bug-wctypeh.
1686         * wctype/bug-wctypeh.c: New file.
1687
1688         * nscd/nscd_gethst_r.c (nscd_gethst_r): Don't use nscd if
1689         LOCALDOMAIN is defined.
1690         * nscd/nscd_getai.c (__nscd_getai): Likewise.
1691
1692         * sysdeps/x86_64/bits/select.h: New file.
1693
1694         * resolv/res_init.c (__res_vinit): Count all servers in statp->nscount.
1695
1696 2008-12-21  Bruno Haible  <bruno@clisp.org>
1697
1698         [BZ #9677]
1699         * wcsmbs/mbsnrtowcs.c (__mbsnrtowcs): Create temporary state object
1700         if no output is written.
1701
1702 2008-12-13  Klaus Dittrich  <kladit@arcor.de>
1703
1704         * login/utmp_file.c (pututline_file): Replace call to dup2 with
1705         libc internal symbol __dup2 to avoid access through the PLT.
1706
1707 2008-12-08  Ulrich Drepper  <drepper@redhat.com>
1708
1709         [BZ #6545]
1710         * sysdeps/unix/sysv/linux/bits/socket.h (SCM_CREDENTIALS): Make
1711         available only for __USE_GNU.
1712
1713         * inet/Makefile (tests): Add tst-getni2.
1714         * inet/tst-getni2.c: New file.
1715
1716         [BZ #7080]
1717         * inet/getnameinfo.c (getnameinfo): Check for output buffers being
1718         NULL when NI_NAMEREQD is set.
1719         Patch mostly by Yang Hongyang <yanghy@cn.fujitsu.com>.
1720         * inet/Makefile (tests): Add tst-getni1.
1721         * inet/tst-getni1.c: New file.
1722
1723 2008-12-03  Petr Baudis  <pasky@suse.cz>
1724
1725         [BZ #7067]
1726         * nscd/connections.c (invalidate_cache): Use prune_run_lock
1727         instead of prune_lock.
1728         (nscd_run_prune): Before calling prune_cache, take prune_run_lock.
1729         * nscd/nscd.h (database_dyn): Add prune_run_cache.
1730
1731 2008-12-07  Ulrich Drepper  <drepper@redhat.com>
1732
1733         * resolv/res_send.c (send_dg): Use correct guards for SOCK_CLOEXEC
1734         use.
1735
1736         * sysdeps/unix/sysv/linux/kernel-features.h: Fix typo in accept4
1737         handling.
1738
1739         * resolv/res_init.c (__res_vinit): Always assign to statp->nscount
1740         after reading name server list.
1741
1742         [BZ #7058]
1743         * nis/nss_nis/nis-hosts.c (_nss_nis_gethostbyname4_r): Fix memory
1744         handling for host name aliases.
1745
1746 2008-11-24  Arkadiusz MiÅ›kiewicz  <arekm@maven.pl>
1747
1748         * sysdeps/i386/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Use LOAD_PIC_REG
1749         instead of doing things manually.
1750
1751 2008-11-26  Chris Steel  <chris.steel.lnx@googlemail.com>
1752
1753         * posix/regex_internal.h (build_wcs_upper_buffer):
1754         Return type is reg_error_t.
1755
1756 2008-12-05  Ulrich Drepper  <drepper@redhat.com>
1757
1758         * posix/globtest.sh: Use mktemp to create temporary file and
1759         directory.
1760
1761         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_SET_S): Handle large
1762         sets correctly.
1763         (__CPU_CLR_S): Likewise.
1764         (__CPU_ISSET_S): Likewise.
1765
1766 2008-12-05  Joseph Myers  <joseph@codesourcery.com>
1767             Ulrich Drepper  <drepper@redhat.com>
1768
1769         * scripts/firstversion.awk: Use custom comparison function to compare
1770         version numbers.
1771         * scripts/versions.awk: Use sort invocation which can handle
1772         multi-digit sub-version numbers.
1773
1774 2008-12-04  Ulrich Drepper  <drepper@redhat.com>
1775
1776         * locale/programs/ld-address.c (DEFINE_LANGUAGE_CODE2): Define.
1777         * locale/iso-639.def: Add Chhattisgarhi entry.
1778
1779 2008-12-02  Ulrich Drepper  <drepper@redhat.com>
1780
1781         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname3_r): Recognize
1782         ESRCH return value.
1783         (_nss_dns_gethostbyname4_r): Likewise.
1784         * resolv/res_init.c (__res_vinit): Initialize nscount to zero.
1785         * sysdeps/posix/getaddrinfo.c (gaih_inet): In case we use
1786         gethostbyname4_r, we don't have a separate IPv6 status, so copy
1787         the no_data variable.
1788
1789         * resolv/res_init.c (__res_vinit): Fill in IPv4 name server
1790         information at the correct index.
1791
1792         * socket/sys/socket.h: Declare accept4.
1793         * socket/accept4.c: New file.
1794         * sysdeps/unix/sysv/linux/accept4.c: New file.
1795         * sysdeps/unix/sysv/linux/i386/accept4.S: New file.
1796         * socket/Makefile (routines): Add accept4.
1797         * socket/Versions: Export accept4 with version GLIBC_2.10.
1798         * socket/paccept.c: Removed.
1799         * sysdeps/unix/sysv/linux/paccept.c: Removed.
1800         * sysdeps/unix/sysv/linux/i386/paccept.S: Removed.
1801         * Versions.def: Define GLIBC_2.10 for libc.
1802         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_ACCEPT4.
1803
1804         * nscd/connections.c: Use accept4.
1805
1806         * sysdeps/unix/sysv/linux/i386/socket.S: Fix comment.
1807
1808 2008-12-01  Ulrich Drepper  <drepper@redhat.com>
1809
1810         * resolv/res_send.c (send_dg): Create sockets with non-blocking
1811         flag already set.
1812
1813         * stdlib/setenv.c (unsetenv): Don't search environment if it does
1814         not exist.
1815         * stdlib/Makefile (tests): Add tst-unsetenv1.
1816         * stdlib/tst-unsetenv1.c: New file.
1817
1818 2008-11-29  Ulrich Drepper  <drepper@redhat.com>
1819
1820         * login/utmp_file.c (file_writable): New variable.
1821         (setutent_file): Don't try to open file for writing.
1822         (pututline_file): Before writing, make descriptor writable if
1823         necessary.
1824
1825 2008-11-26  Ulrich Drepper  <drepper@redhat.com>
1826
1827         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Only restrict search
1828         to IPv4 or IPv6 if an interface has been found.
1829
1830 2008-11-26  Roland McGrath  <roland@redhat.com>
1831
1832         * sysdeps/unix/sysv/linux/alpha/ipc_priv.h: Renamed to ...
1833         * sysdeps/unix/sysv/linux/powerpc/ipc_priv.h: ... here.
1834
1835         * sysdeps/unix/sysv/linux/alpha/wordexp.c: Renamed to ...
1836         * sysdeps/unix/sysv/linux/ia64/wordexp.c: ... here.
1837         * sysdeps/unix/sysv/linux/sparc/sparc64/wordexp.c: Change #include.
1838
1839         * elf/elf.h (NT_386_IOPERM): New macro.
1840         (NT_PPC_VSX): New macro.
1841
1842 2008-11-25  Roland McGrath  <roland@redhat.com>
1843
1844         * sysdeps/alpha, sysdeps/unix/bsd/osf/alpha,
1845         sysdeps/unix/bsd/Attic/osf1/alpha, sysdeps/unix/sysv/linux/alpha,
1846         sysdeps/unix/sysv/linux/alpha/alpha, sysdeps/unix/alpha,
1847         sysdeps/mach/alpha, sysdeps/mach/hurd/alpha:
1848         Subdirectories moved to ports repository.
1849         * configure.in (base_machine): Remove alpha case.
1850
1851 2008-11-25  Thomas Schwinge  <tschwinge@gnu.org>
1852
1853         * sysdeps/mach/strerror_l.c: New file.
1854
1855 2008-11-13  Ryan S. Arnold  <rsa@us.ibm.com>
1856
1857         [BZ #6411]
1858         * sysdeps/powerpc/fpu/Makefile: Added test case tst-setcontext-fpscr.
1859         * sysdeps/powerpc/fpu/feholdexcpt.c (_FPU_MASK_ALL): Define to replace
1860         magic numbers.
1861         * sysdeps/powerpc/fpu/fenv_libc.h (fesetenv_register): Dynamically
1862         choose mtfsf insn based on PPC_FEATURE_HAS_DFP.
1863         (relax_fenv_state): Same as above.
1864         (FPSCR_29): Reserve bit in ISA 2.05.
1865         (FPSCR_NI): Provide define for compat.
1866         * sysdeps/powerpc/fpu/fesetenv.c (_FPU_MASK_ALL): Define to replace
1867         magic numbers.
1868         * sysdeps/powerpc/fpu/feupdateenv.c (_FPU_MASK_ALL): Define to replace
1869         magic numbers.
1870         * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c: New file.  Test case to
1871         test setcontext and swapcontext with dynamic 64-bit FPSCR detection.
1872         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp): Adjust
1873         access to hwcap to account for hwcap size increase to uint64_t.
1874         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S (__sigsetjmp ):
1875         Likewise.
1876         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S
1877         (*setcontext): Likewise.
1878         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/setcontext.S:
1879         New file.
1880         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/swapcontext.S:
1881         New file.
1882         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S
1883         (*setcontext): dynamically select mtfsf insn based on
1884         PPC_FEATURE_HAS_DFP. Adjust access to hwcap to account for hwcap size
1885         increase to uint64_t.
1886         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S
1887         (*swapcontext): dynamically select mtfsf insn based on
1888         PPC_FEATURE_HAS_DFP.  Adjust access to hwcap to account for hwcap size
1889         increase to uint64_t.
1890         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/setcontext.S:
1891         New file.
1892         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/swapcontext.S:
1893         New file.
1894         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
1895         (*setcontext): dynamically select mtfsf insn based on
1896         PPC_FEATURE_HAS_DFP.
1897         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
1898         (*swapcontext): dynamically select mtfsf insn based on
1899         PPC_FEATURE_HAS_DFP.
1900
1901 2008-11-13  Ulrich Drepper  <drepper@redhat.com>
1902
1903         * version.h: Bump for 2.9 release.
1904         * include/features.h (__GLIBC_MINOR__): Bump to 9.
1905
1906         [BZ #7029]
1907         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_ALLOC_SIZE):
1908         Multiply with sizeof of __cpu_mask, not 8 unconditionally after
1909         all the rounding.
1910
1911 2008-11-11  Ulrich Drepper  <drepper@redhat.com>
1912
1913         [BZ #7009]
1914         * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): Don't abort for
1915         unknown request types for now.
1916
1917 2008-11-11  Roland McGrath  <roland@redhat.com>
1918
1919         * sysdeps/x86_64/configure: New file.
1920
1921         * configure.in: Add AC_SUBST(libc_cv_cpp_asm_debuginfo).
1922         * configure: Regenerated.
1923
1924 2008-11-03  Martin Schwidefsky  <schwidefsky@de.ibm.com>
1925
1926         * sysdeps/s390/s390-64/dl-trampoline.S (_dl_runtime_profile): Use the
1927         correct instruction to remove the stack frame.
1928
1929 2008-11-03  Michael Matz  <matz@suse.de>
1930
1931         * sysdeps/s390/bits/atomic.h (__arch_compare_and_exchange_val_32_acq,
1932         __arch_compare_and_exchange_val_64_acq): Add "memory" clobber.
1933
1934 2008-11-07  Jakub Jelinek  <jakub@redhat.com>
1935
1936         * include/stdio.h (__builtin_fwrite, __builtin_fwrite_unlocked):
1937         Remove.
1938
1939         * bits/libc-tsd.h (__libc_tsd_define, __libc_tsd_address,
1940         __libc_tsd_get, __libc_tsd_set): Add TYPE argument, use it as the type
1941         of the thread variable instead of void *.
1942         * sysdeps/mach/hurd/bits/libc-tsd.h (__libc_tsd_define,
1943         __libc_tsd_address, __libc_tsd_get, __libc_tsd_set): Likewise.
1944         * include/ctype.h (CTYPE_B, CTYPE_TOUPPER, CTYPE_TOLOWER): Adjust
1945         __libc_tsd_define arguments.
1946         (__ctype_b_loc, __ctype_toupper_loc, __ctype_tolower_loc): Adjust
1947         __libc_tsd_address arguments.  Remove union hack.
1948         * include/rpc/rpc.h (RPC_VARS): Adjust __libc_tsd_define arguments.
1949         * sunrpc/rpc_thread.c (RPC_VARS): Likewise.
1950         (__rpc_thread_destroy, rpc_thread_multi, __rpc_thread_variables):
1951         Adjust __libc_tsd_{set,get} arguments.
1952         * ctype/ctype-info.c (CTYPE_B, CTYPE_TOUPPER, CTYPE_TOLOWER): Adjust
1953         __libc_tsd_define arguments.
1954         * locale/uselocale.c (__uselocale): Adjust __libc_tsd_{set,get}
1955         arguments.
1956         * locale/lc-ctype.c (_nl_postload_ctype): Likewise.
1957         * locale/global-locale.c (__libc_tsd_LOCALE): Adjust type.
1958         (LOCALE): Adjust __libc_tsd_define arguments.
1959         * locale/localeinfo.h (_NL_CURRENT_LOCALE): Adjust __libc_tsd_get
1960         arguments.
1961         (LOCALE): Adjust __libc_tsd_define arguments.
1962         * sysdeps/mach/hurd/malloc-machine.h (MALLOC): Adjust __libc_tsd_define
1963         arguments.
1964         (tsd_setspecific, tsd_getspecific): Adjust __libc_tsd_{set,get}
1965         arguments.
1966
1967 2008-11-02  Ulrich Drepper  <drepper@redhat.com>
1968
1969         * malloc/malloc.c (public_rEALLOc): When new arena is used, copy
1970         really all bytes.  Patch by Denys Vlasenko <dvlasenk@redhat.com>.
1971
1972 2008-11-01  Ulrich Drepper  <drepper@redhat.com>
1973
1974         [BZ #6966]
1975         * misc/hsearch_r.c (hsearch_r): Fix secondary hash function.
1976
1977 2008-10-24  Joseph Myers  <joseph@codesourcery.com>
1978             Ulrich Drepper  <drepper@redhat.com>
1979
1980         * math/tgmath.h (__floating_type): Use __builtin_classify_type in
1981         definition for GCC 3.1 and later.
1982
1983 2008-10-31  Jakub Jelinek  <jakub@redhat.com>
1984
1985         * elf/dl-tls.c (__tls_get_addr): After calling _dl_update_slotinfo
1986         refetch dtv, as it might have changed.
1987         * elf/Makefile: Add rules to build and run tst-tls18.
1988         * elf/tst-tls18.c: New test.
1989         * elf/tst-tlsmod18a.c: New file.
1990
1991 2008-09-09  Aurelien Jarno  <aurelien@aurel32.net>
1992
1993         [BZ #6875]
1994         * iconvdata/gconv-modules: Add LATIN9 as an alias to ISO-8859-15.
1995
1996 2008-10-31  Ulrich Drepper  <drepper@redhat.com>
1997
1998         [BZ #6867]
1999         * sysdeps/powerpc/elf/rtld-global-offsets.sym: Fix typo.
2000
2001         [BZ #6919]
2002         * posix/spawnattr_getschedparam.c (posix_spawnattr_getschedparam):
2003         Fix length of copy operation.
2004
2005 2008-10-02  Pierre Habouzit <madcoder@debian.org>
2006
2007         * sysdeps/unix/sysv/linux/eventfd.c (eventfd): Use the eventfd2 syscall
2008         and fix its calling convention.
2009
2010 2008-10-07  Andreas Schwab  <schwab@suse.de>
2011
2012         [BZ #6942]
2013         * resolv/res_send.c (send_vc): Fix last change.
2014         (send_dg): Align here as well.
2015
2016 2008-10-31  Ulrich Drepper  <drepper@redhat.com>
2017
2018         * sysdeps/unix/sysv/linux/ulimit.c (__ulimit): Handle UL_GETFSIZE
2019         return value in case rlimit is RLIM_INFINITY.
2020
2021         [BZ #6947]
2022         * sysdeps/unix/sysv/linux/ulimit.c (__ulimit): Fix return value
2023         for UL_SETFSIZE.
2024         * resource/Makefile (tests): Add bug-ulimit1.
2025         * resource/bug-ulimit1.c: New file.
2026
2027         [BZ #6974]
2028         * sunrpc/rpc_main.c (mkfile_output): Properly handle filename
2029         without dot.  Properly terminate the string with a null byte.
2030         Based on a patch by Aurelien Jarno <aurelien@aurel32.net>.
2031
2032         [BZ #6980]
2033         * debug/getgroups_chk.c (__getgroups_chk): Return EINVAL error for
2034         negative sizees.
2035         * posix/bits/unistd.h (getgroups): Call __getgroups_chk for
2036         negative __size.
2037
2038         [BZ #6995]
2039         * sysdeps/powerpc/powerpc32/dl-machine.c: Fix typo in message.
2040
2041 2008-10-30  Ulrich Drepper  <drepper@redhat.com>
2042
2043         * grp/initgroups.c (internal_getgrouplist): Don't prematurely
2044         abort if there is no initgroups_dyn function.
2045
2046         * resolv/res_send.c (send_dg): On timeout, only return nonzero
2047         result if any of the queries really provided an answer.
2048
2049 2008-10-28  Ulrich Drepper  <drepper@redhat.com>
2050
2051         * po/lt.po: Update from translation team.
2052
2053 2008-10-26  Ulrich Drepper  <drepper@redhat.com>
2054
2055         * po/id.po: Update from translation team.
2056
2057 2008-10-24  Ulrich Drepper  <drepper@redhat.com>
2058
2059         * resolv/res_query.c (__libc_res_nquery): Add a few casts.
2060         Fix tests for existence of second reply.
2061
2062 2008-10-23  Ulrich Drepper  <drepper@redhat.com>
2063
2064         * po/id.po: New file.
2065         Contributed by the Indonesian translation team.
2066
2067 2008-10-22  Dmitry V. Levin  <ldv@altlinux.org>
2068
2069         * misc/syslog.c (openlog_internal): Fix __have_sock_cloexec
2070         initialization.
2071
2072 2008-10-17  Jakub Jelinek  <jakub@redhat.com>
2073
2074         * elf/Makefile: Add rules to build and run tst-tls17.
2075         * elf/tst-tls17.c: New test.
2076         * elf/tst-tlsmod17a.c: New file.
2077         * elf/tst-tlsmod17b.c: Likewise.
2078
2079 2008-10-17  Ulrich Drepper  <drepper@redhat.com>
2080
2081         * stdlib/divmod_1.c: Use correct type for dummy variable.
2082         * stdlib/mod_1.c: Likewise.
2083
2084 2008-10-16  Ulrich Drepper  <drepper@redhat.com>
2085
2086         * elf/dl-tls.c (_dl_update_slotinfo): Copy all of the initial DTV.
2087
2088 2008-10-16  Jakub Jelinek  <jakub@redhat.com>
2089
2090         * sysdeps/unix/sysv/linux/sys/signalfd.h (signalfd): Fix __THROW vs.
2091         __nonnull order for C++.
2092         * sysdeps/unix/sysv/linux/alpha/sys/signalfd.h (signalfd): Likewise.
2093         * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h (signalfd): Likewise.
2094
2095 2008-10-01  Daniel Jacobowitz  <dan@codesourcery.com>
2096
2097         * stdlib/longlong.h: Update from GCC.
2098
2099 2008-10-09  Jakub Jelinek <jakub@redhat.com>
2100             David S. Miller  <davem@davemloft.net>
2101
2102         * sysdeps/sparc/sparc64/sparcv9v/memcpy.S: When not USE_BPR,
2103         make sure any registers used with 64-bit 'branch-on-register'
2104         instructions have their top 32-bits clear.
2105         * sysdeps/sparc/sparc64/sparcv9v/memset.S: Likewise.
2106         * sysdeps/sparc/sparc64/sparcv9v2/memcpy.S: Likewise.
2107
2108 2008-09-18  Andreas Schwab  <schwab@suse.de>
2109
2110         [BZ #6942]
2111         * resolv/res_send.c (send_vc): Fix use of unaligned address.
2112         Properly handle partial reads.
2113
2114 2008-10-01  Mark Shinwell  <shinwell@codesourcery.com>
2115
2116         * elf/elf.h (STO_MIPS_PLT): New.
2117         (R_MIPS_COPY): New.
2118         (R_MIPS_JUMP_SLOT): New.
2119         (R_MIPS_NUM): Redefine to 128.
2120         (DT_MIPS_PLTGOT): New.
2121         (DT_MIPS_RWPLT): New.
2122         (DT_MIPS_NUM): Redefine to 0x35.
2123
2124 2008-10-01  Ulrich Drepper  <drepper@redhat.com>
2125
2126         * timezone/africa: Update from tzdata2008f.
2127         * timezone/asia: Likewise.
2128         * timezone/australasia: Likewise.
2129         * timezone/europe: Likewise.
2130         * timezone/leapseconds: Likewise.
2131         * timezone/northamerica: Likewise.
2132         * timezone/southamerica: Likewise.
2133         * timezone/zone.tab: Likewise.
2134
2135 2008-09-30  Ulrich Drepper  <drepper@redhat.com>
2136
2137         * nscd/connections.c: Disable use of paccept for now.
2138
2139 2008-09-29  Ulrich Drepper  <drepper@redhat.com>
2140
2141         * socket/Versions: Remove paccept export for GLIBC_2.9.
2142         * socket/Makefile (routines): Remove paccept.
2143         * socket/sys/socket.h: Remove paccept declaration.
2144
2145         * po/sv.po: Update from translation team.
2146
2147 2008-09-22  Deborah S. Townsend  <dstownse@us.ibm.com>
2148
2149         * sysdeps/s390/s390-64/s390x-mcount.S: Replace ahi with aghi.
2150         * sysdeps/unix/sysv/linux/s390/s390-64/socket.S: Likewise.
2151
2152 2008-09-16  Ulrich Drepper  <drepper@redhat.com>
2153
2154         * dlfcn/dlopen.c (dlopen_doit): Allow __RTLD_SPROF flag.
2155         Patch by Olivier Fourdan <ofourdan@redhat.com>.
2156
2157 2008-09-15  Ulrich Drepper  <drepper@redhat.com>
2158
2159         * sunrpc/rpc/svc.h: Declare svcfd_create.
2160         Patch by Michael Solberg <msolberg@redhat.com>.
2161
2162 2008-09-12  Flavio Leitner  <fleitner@redhat.com>
2163             Ulrich Drepper  <drepper@redhat.com>
2164
2165         * malloc/malloc.c (public_vALLOc): Try other arenas in case
2166         _int_valloc fails.
2167         (public_pVALLOc): Likewise.
2168
2169 2008-09-02  Andreas Jaeger  <aj@suse.de>
2170
2171         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: Fix last
2172         commit.
2173
2174 2008-08-26  Aurelien Jarno  <aurelien@aurel32.net>
2175
2176         [BZ #6860]
2177         * hurd/hurd/signal.h (HURD_MSGPORT_RPC): Fix a typo.
2178
2179 2008-07-18  Daniel Jacobowitz  <dan@codesourcery.com>
2180
2181         * Makefile (check-data): Check data directory in add-ons.
2182         * elf/Makefile (check-data): Likewise.
2183
2184 2008-08-18  Roland McGrath  <roland@redhat.com>
2185
2186         * configure.in (--with-cpu): Check compiler support for -march/-mcpu.
2187         * configure: Regenerated.
2188         * config.make.in (cflags-cpu): New substituted variable.
2189         (with-cpu): Variable removed.
2190         * Makeconfig (+cflags): Use $(cflags-cpu), not $(with-cpu).
2191
2192 2008-08-14  Ryan S. Arnold  <rsa@us.ibm.com>
2193
2194         [BZ #6845]
2195         * sysdeps/powerpc/fpu/bits/mathinline.h (__signbitl): Copy new
2196         __signbitl definition and __LONG_DOUBLE_128__ guard from:
2197         * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h: Remove as
2198         redundant.  Functions which call floating point assembler operations
2199         should go into a sysdeps powerpc/fpu directory.
2200
2201 2008-08-15  Ulrich Drepper  <drepper@redhat.com>
2202
2203         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Define MAP_STACK.
2204         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Likewise.
2205
2206 2008-08-14  Ulrich Drepper  <drepper@redhat.com>
2207
2208         * sysdeps/x86_64/memset.S: Reduce size of tables for PIC.
2209
2210         * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): Undo all
2211         change related to AT_EXECFN.  We cannot use that string.
2212         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Remove
2213         _dl_execfn member.
2214         * elf/dl-support.c: Remove _dl_execfn variable.
2215         (_dl_aux_init): Remove handling of AT_EXECFN.
2216         * elf/dl-sysdep.c (_dl_sysdep_start): Remove handling of AT_EXECFN.
2217         * elf/rtld.c (process_envvars): Remove use of __ASSUME_AT_EXECFN.
2218
2219 2008-08-13  Ulrich Drepper  <drepper@redhat.com>
2220
2221         [BZ #6544]
2222         * libio/fmemopen.c: Implement binary mode.  In this mode no NUL
2223         byte gets added to writes and seeks from the end use the length of
2224         the buffer and not the currently terminating NUL byte.
2225
2226         [BZ #6634]
2227         * login/utmp_file.c (getutent_r_file): Take additional parameter.
2228         Set to true if locking failed.
2229         (getutid_r_file): Adjust caller.
2230         (pututline_file): Likewise.  Return NULL in this case.
2231         Patch mostly by halesh.s@gmail.com.
2232
2233 2008-08-12  Ulrich Drepper  <drepper@redhat.com>
2234
2235         [BZ #6589]
2236         * sysdeps/unix/sysv/linux/ifaddrs.c (struct sockaddr_ll_max):
2237         Define.
2238         (struct ifaddrs_storage): Use it instead of sockaddr_ll.
2239
2240 2008-08-12  Ryan S. Arnold  <rsa@us.ibm.com>
2241
2242         [BZ #6839]
2243         * sysdeps/powerpc/powerpc32/dl-machine.c (CHECK_STATIC_TLS): Remove
2244         macro since it is now available in elf/dynamic-link.h.
2245
2246 2008-08-12  Roland McGrath  <roland@frob.com>
2247
2248         * hurd/hurd/signal.h (HURD_MSGPORT_RPC): Avoid -Wparenthesis triggers,
2249         in case used outside of libc.
2250         Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>
2251
2252 2008-08-11  Ulrich Drepper  <drepper@redhat.com>
2253
2254         * resolv/res_mkquery.c (res_nmkquery): Call ns_name_compress
2255         directly instead of going through dn_comp.
2256
2257 2008-08-11  Aurelien Jarno  <aurel32@debian.org>
2258
2259         * sysdeps/mach/i386/machine-lock.h (__spin_unlock, __spin_try_lock):
2260         Fix asm constraints.
2261
2262 2008-08-07  Ulrich Drepper  <drepper@redhat.com>
2263
2264         [BZ #6790]
2265         * sysdeps/unix/sysv/linux/bits/in.h (IP_PMTUDISC_PROBE): Define.
2266         (IPV6_PMTUDISC_PROBE): Likewise.
2267
2268 2008-08-07  Pete Eberlein  <eberlein@us.ibm.com>
2269
2270         [BZ #6791]
2271         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h (PROT_SAO): Define.
2272
2273 2008-08-01  Steven Munroe  <sjmunroe@us.ibm.com>
2274             Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
2275
2276         [BZ #6817]
2277         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags):
2278         Added the members 'vsx' and 'arch_2_06'.
2279         (_dl_powerpc_platforms): Add the member 'power7'.
2280         * sysdeps/powerpc/dl-procinfo.h: Modify _DL_HWCAP_FIRST
2281         to reflect the changes required by VSX and ISA 2.06.
2282         Modify _DL_PLATFORMS_COUNT to reflect the addition of
2283         'power7'.
2284         Defined PPC_PLATFORM_POWER7.
2285         (_dl_string_platform): Add support for POWER7.
2286         * sysdeps/powerpc/sysdep.h: Define bit masks for VSX
2287         capability and ISA 2.06.
2288
2289 2008-08-07  Ulrich Drepper  <drepper@redhat.com>
2290
2291         [BZ #6824]
2292         * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h: Use correct
2293         macro to detect use of 128 bit long double.
2294         Patch by Ryan S. Arnold <rsa@us.ibm.com>.
2295
2296 2008-08-05  Ulrich Drepper  <drepper@redhat.com>
2297
2298         * scripts/gen-as-const.awk: Use 32-bit values on 32-bit platforms.
2299
2300         [BZ #5794]
2301         * sysdeps/i386/fpu/s_expm1l.S: Simply use exp implementation for large
2302         parameters.
2303         * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
2304         Patch by Denys Vlasenko <dvlasenk@redhat.com>.
2305
2306 2008-08-03  Ulrich Drepper  <drepper@redhat.com>
2307
2308         * nscd/connections.c (main_loop_poll): Pass a buffer which is
2309         guaranteed to be large enough to read inotify event.  Ignore
2310         EAGAIN error.  Better error message.  Add branch predicition.
2311         (main_loop_epoll): Likewise.
2312
2313 2008-08-02  Roland McGrath  <roland@frob.com>
2314
2315         * sysdeps/mach/i386/machine-lock.h (__spin_unlock, __spin_try_lock):
2316         Add memory clobbers.
2317
2318 2008-08-02  Ulrich Drepper  <drepper@redhat.com>
2319
2320         * manual/arith.texi: Avoid @strong{Note:}.
2321         * manual/creature.texi: Likewise.
2322         * manual/filesys.texi: Likewise.
2323         * manual/math.texi: Likewise.
2324         * manual/memory.texi: Likewise.
2325         * manual/resource.texi: Likewise.
2326         * manual/syslog.texi: Likewise.
2327         * manual/time.texi: Likewise.
2328
2329         * sysdeps/posix/clock_getres.c (hp_timing_getres): Remove inline
2330         to prevent warning.
2331
2332 2008-08-01  Ulrich Drepper  <drepper@redhat.com>
2333
2334         * sysdeps/unix/sysv/linux/Versions: Fix changes due to old patch for
2335         new epoll_create1 interface.
2336         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
2337         * sysdeps/unix/sysv/linux/sys/epoll.h: Likewise.
2338         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
2339
2340         * include/arpa/nameser.h (NS_GET16): Use const pointer.
2341         (NS_GET32): Likewise.
2342
2343         * sysdeps/unix/sysv/linux/kernel-features.h: s390 has the new
2344         syscalls, too.
2345
2346         * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): We cannot
2347         use the AT_EXECFN value if it is no absolute path.
2348         * sysdeps/unix/sysv/linux/kernel-features.h: Never define
2349         __ASSUME_AT_EXECFN.
2350
2351         * Versions.def: Add GLIBC_2.9 to libresolv.
2352         * include/resolv.h: Remove hidden proto declarations for __ns_*
2353         functions.  Add them for __dn_count_labels and __p_secstodate.
2354         * include/arpa/nameser.h: Add a number of hidden proto declarations.
2355         Define ns_msg_getflags macro here.
2356         * resolv/res_debug.c: Add hidden definition for __dn_count_labels
2357         and __p_secstodate.
2358         * resolv/Versions: Export functions from <arpa/nameser.h> from
2359         libresolv in version GLIBC_2.9.
2360         * resolv/ns_name.c: Integrate changes from bind 9.5.0.  Add necessary
2361         hidden definitions.
2362         * resolv/ns_netint.c: Likewise.
2363         * resolv/ns_parse.c: Likewise.
2364         * resolv/ns_print.c: Likewise.
2365         * resolv/ns_samedomain.c: Likewise.
2366         * resolv/ns_ttl.c: Likewise.
2367         * resolv/arpa/nameser_compat.h: Likewise.
2368         * resolv/arpa/nameser.h: Likewise.  Remove macros which redirect
2369         function calls.
2370         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Use __ns_get16
2371         instead of ns_get16.
2372         * resolv/nss_dns/dns-host.c (getanswer_r): Use __ns_get16 and
2373         __ns_get32 instead of ns_get16 and ns_get32 respectively.
2374         (gaih_getanswer_slice): Likewise.
2375         * resolv/Makefile (libresolv-routines): Add ns_date.
2376         * resolv/ns_date.c: New file.
2377
2378         * elf/Makefile (check-localplt.out): Also check libresolv and
2379         libcrypt.
2380
2381 2008-07-31  Ulrich Drepper  <drepper@redhat.com>
2382
2383         * sysdeps/unix/sysv/linux/kernel-features.h: Define
2384         __ASSUME_O_CLOEXEC.
2385
2386 2008-07-30  Ulrich Drepper  <drepper@redhat.com>
2387
2388         * sysdeps/posix/getaddrinfo.c (gaih_inet): Raise size of initial
2389         buffer passed to NSS functions.
2390
2391         * nscd/connections.c (nscd_init): Typo in preprocessor directive.
2392
2393         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PACCEPT):
2394         Define.
2395
2396         * misc/syslog.c (openlog_internal): Fix compile problem.
2397
2398 2008-07-28  Roland McGrath  <roland@redhat.com>
2399
2400         * elf/dl-sysdep.c (_dl_show_auxv): Add AT_EXECFN to the table.
2401
2402 2008-07-28  Ulrich Drepper  <drepper@redhat.com>
2403
2404         * io/ftw.c (add_object): Remove inline to avoid warning.
2405
2406         * sysdeps/unix/sysv/linux/paccept.c: Fix compile problem.
2407
2408         * resolv/res_send.c (__libc_res_nsend): Take additional parameter.
2409         Use it instead of locally defined resplen2 variable.
2410         (res_nsend): Adjust for __libc_res_nsend interface change.
2411         (send_vc): Initialize *resplen2 if necessary.  Read length of
2412         package into an appropriately aligned variable.  Store converted length
2413         in new variable and use it appropriately.
2414         Add branch prediction help.
2415         * resolv/res_query.c (__libc_res_nquery): Take additional parameter
2416         and pass it on to __libc_res_nsend.  Adjust all callers.
2417         (__libc_res_nsearch): Likewise.
2418         (__libc_res_nqeurydomain): Likewise.
2419         * resolv/nss_dns/dns-host.c: Adjust for __libc_res_nsearch interface
2420         change.
2421         (_nss_dns_gethostbyname4): Don't unconditionally allocate tmp array.
2422         Define resplen2 variable and pass it to __libc_res_nsearch and then
2423         to gaih_getanswer.
2424         (getanswer_r): In case of incorrect DNS data don't overread buffer.
2425         Add branch prediction.
2426         (gaih_getanswer_slice): Likewise.  Check for invalid data types.
2427         (gaih_getanswer): Don't decode second slice if first one failed due
2428         to a too small buffer.  Don't let not found status of second
2429         decoder shadow results of the first.
2430         * resolv/gethnamaddr.c (gethostbyname2): Adjust for __libc_res_nsearch
2431         and __libc_res_nquery interface changes
2432         (gethostbyaddr): Adjust for __libc_res_nquery interface change.
2433         * include/resolv.h: Adjust prototypes for __libc_res_nquery,
2434         __libc_res_nsearch, and __libc_res_nsend.
2435         * resolv/nss_dns/dns-canon.c: Adjust for __libc_res_nquery interface
2436         change.
2437         * resolv/nss_dns/dns-network.c: Adjust for __libc_res_nquery and
2438         __libc_res_nsearch interface changes.
2439
2440 2008-07-27  Ulrich Drepper  <drepper@redhat.com>
2441
2442         * libio/iopopen.c (_IO_new_proc_open): Remove unnecessary volatile.
2443
2444         * posix/wordexp.c (exec_comm): Use pipe2 if possible to create
2445         file descriptors with close-on-exec set.
2446         (exec_comm_child): Fix the case where the write end of the pipe is
2447         STDOUT_FILENO already.  In case it is, clear close-on-exec.
2448
2449         * sysdeps/unix/sysv/linux/syscalls.list: Add __pipe2 alias.
2450         * io/pipe2.c: Likewise.
2451         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_PIPE2
2452         instead of __ASSUME_PACCEPT.
2453         * include/unistd.h: Declare __have_pipe2.
2454         * libio/iopopen.c: Implement "e" flag.
2455         * libio/Makefile (tests): Add tst-popen1.
2456         * libio/tst-popen1.c: New file.
2457
2458         * sysdeps/unix/sysv/linux/bits/socket.h: Define PF_ISDN and AF_ISDN.
2459         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
2460
2461 2008-07-26  Ulrich Drepper  <drepper@redhat.com>
2462
2463         [BZ #6771]
2464         * libio/fileops.c (_IO_new_file_attach): Preserve errno around
2465         success call of _IO_SEEKOFF or calls which failed because the
2466         descriptor is for a pipe.
2467
2468         * sunrpc/key_call.c (getkeyserv_handle): Use FD_CLOEXEC instead of
2469         magic number.
2470
2471         * misc/syslog.c (openlog_internal): Use SOCK_CLOEXEC if possible.
2472
2473         * malloc/mtrace.c (mtrace): Use 'e' flag in fopen call.  Drop
2474         F_SETFD use if we know fopen set the flag.
2475
2476         * login/utmp_file.c (setutent_file): Minor optimization in case
2477         O_CLOEXEC is available.
2478
2479 2008-07-24  Tom "spot" Callaway  <tcallawa@redhat.com>
2480
2481         * Makeconfig: Define pie-ccflag and PIE-ccflag variables.
2482         * elf/Makefile: Use pie-ccflag variable.
2483         * nscd/Makefile: Likewise.
2484         * sysdeps/sparc/Makefile: Set $(pie-ccflag) to -fPIE.
2485
2486 2008-07-21  Andreas Krebbel  <krebbel1@de.ibm.com>
2487
2488         [BZ #6724]
2489         * Versions.def: Add GLIBC_2.9 version tag for libutil.
2490         * sysdeps/unix/sysv/linux/s390/bits/utmp.h: Copy of
2491         gnu/bits/utmp.h.  Check for __WORDSIZE_COMPAT32 removed.
2492         * sysdeps/unix/sysv/linux/s390/bits/utmpx.h: Copy of
2493         gnu/bits/utmpx.h.  Check for __WORDSIZE_COMPAT32 removed.
2494         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Add new files
2495         utmp32, utmpx32 and login32.
2496         * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Add 2.9
2497         versions of struct utmp functions to libc and libutil.
2498         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-compat.h: New file.
2499         * sysdeps/unix/sysv/linux/s390/s390-32/getutent.c: New file.
2500         * sysdeps/unix/sysv/linux/s390/s390-32/getutent_r.c: New file.
2501         * sysdeps/unix/sysv/linux/s390/s390-32/getutid.c: New file.
2502         * sysdeps/unix/sysv/linux/s390/s390-32/getutid_r.c: New file.
2503         * sysdeps/unix/sysv/linux/s390/s390-32/getutline.c: New file.
2504         * sysdeps/unix/sysv/linux/s390/s390-32/getutline_r.c: New file.
2505         * sysdeps/unix/sysv/linux/s390/s390-32/getutmp.c: New file.
2506         * sysdeps/unix/sysv/linux/s390/s390-32/getutxent.c: New file.
2507         * sysdeps/unix/sysv/linux/s390/s390-32/getutxid.c: New file.
2508         * sysdeps/unix/sysv/linux/s390/s390-32/getutxline.c: New file.
2509         * sysdeps/unix/sysv/linux/s390/s390-32/login.c: New file.
2510         * sysdeps/unix/sysv/linux/s390/s390-32/login32.c: New file.
2511         * sysdeps/unix/sysv/linux/s390/s390-32/pututxline.c: New file.
2512         * sysdeps/unix/sysv/linux/s390/s390-32/updwtmp.c: New file.
2513         * sysdeps/unix/sysv/linux/s390/s390-32/updwtmpx.c: New file.
2514         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: New file.
2515         * sysdeps/unix/sysv/linux/s390/s390-32/utmp32.c: New file.
2516         * sysdeps/unix/sysv/linux/s390/s390-32/utmp32.h: New file.
2517         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx-convert.h: New file.
2518         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.c: New file.
2519         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: New file.
2520
2521 2008-07-26  Ulrich Drepper  <drepper@redhat.com>
2522
2523         * scripts/gen-as-const.awk: Generate more widely usable code by
2524         using 64-bit arithmetic.
2525
2526         * stdio-common/printf_fp.c (___printf_fp): Give wide outout code
2527         the same treatment as narrow output code in last patch.
2528
2529         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Namespace cleanup.
2530
2531         [BZ #6763]
2532         * elf/dl-load.c (local_strdup): Remove inline.
2533         (_dl_map_object_from_fd): Don't allocate l_symbolic_searchlist.r_list.
2534         * elf/dl-object.c (_dl_new_object): Allocate symbolic searchlist as
2535         part of the object.
2536
2537         * sysdeps/unix/sysv/linux/dl-origin.c: Add const to avoid warning.
2538
2539 2008-07-25  Ulrich Drepper  <drepper@redhat.com>
2540
2541         * sysdeps/unix/sysv/linux/kernel-features.h: IA-64 and SPARC have
2542         the new syscalls, too.
2543
2544         * sysdeps/i386/i686/memcmp.S: Fix unwind information.
2545         Reported by Paul Pluzhnikov <ppluzhnikov@google.com>.
2546
2547         [BZ #6698]
2548         * stdio-common/_i18n_number.h (_i18n_number_rewrite): Take additional
2549         parameter for end of buffer.  If temporary copy is too large use
2550         malloc.
2551         * stdio-common/vfprintf.c: Adjust for _i18n_number_rewrite
2552         interface change.
2553         * stdio-common/printf_fp.c (__printf_fp): Likewise..  Account for
2554         string rewrite when allocating buffer.
2555
2556         * sysdeps/unix/sysv/linux/kernel-features.h: PPC has the new
2557         syscalls, too.
2558
2559         * nscd/connections.c (nscd_init): Clean up fcntl call.
2560
2561         * nscd/nscd_helper.c (open_socket): Use SOCK_CLOEXEC and
2562         SOCK_NONBLOCK if possible.
2563
2564         * sysdeps/unix/sysv/linux/opensock.c (__opensock): Use
2565         SOCK_CLOEXEC if available.
2566
2567         * include/rpc/clnt.h: Declare __libc_clntudp_bufcreate and
2568         __libc_clntudp_bufcreate_internal.
2569         * include/sys/socket.h: Declare __have_sock_cloexec.
2570         * socket/Makefile (aux): Add have_sock_cloexec.
2571         * socket/have_sock_cloexec.c: New file.
2572         * sunrpc/clnt_udp.h (clntudp_bufcreate): Now a wrapper around
2573         __libc_clntudp_bufcreate.
2574         (__libc_clntudp_bufcreate): Former implementation of clntudp_bufcreate
2575         which takes an additional parameter.  Create socket with non-blocking
2576         mode and close-on-exec flag set, if wanted.
2577         * sunrpc/Versions: Export __libc_clntudp_bufcreate@GLIBC_PRIVATE.
2578         * nis/ypclnt.c (yp_bind_client_create): Use __libc_clntpudp_bufcreate
2579         instead of clntudp_create.  The socket has already the close-on-exec
2580         flag set if SOCK_CLOEXEC is defined.
2581
2582 2008-07-24  Ulrich Drepper  <drepper@redhat.com>
2583
2584         * sysdeps/unix/sysv/linux/kernel-features.h: Define
2585         __ASSUME_PACCEPT, __ASSUME_IN_NONBLOCK, and __ASSUME_PACCEPT if
2586         appropriate.
2587         * nscd/connections.c: Avoid fcntl calls to set close-on-exec flag and
2588         non-blocking mode by using socket, paccept, and inotify_init1.
2589
2590         * Versions.def (glibc): Add GLIBC_2.9.
2591         * io/Makefile (routines): Add dup3 and pipe2.
2592         * io/Versions [glibc] (GLIBC_2.9): Add dup3 and pipe2.
2593         * io/dup3.c: New file.
2594         * io/pipe2.c: New file.
2595         * posix/unistd.h: Declare dup3 and pipe2.
2596         * socket/Makefile (routines): Add paccept.
2597         * socket/Versions [glibc] (GLIBC_2.9): Add paccept.
2598         * socket/paccept.c: New file.
2599         * socket/sys/socket.h: Declare paccept.
2600         * sysdeps/unix/syscalls.list: Add entry for dup3.
2601         * sysdeps/unix/sysv/linux/Versions [glibc] (GLIBC_2.9): Add
2602         epoll_create2 and inotify_init1.
2603         * sysdeps/unix/sysv/linux/eventfd.c: Use eventfd1 syscall if possible.
2604         * sysdeps/unix/sysv/linux/paccept.c: New file.
2605         * sysdeps/unix/sysv/linux/signalfd.c: Use signalfd4 syscall if
2606         possible.
2607         * sysdeps/unix/sysv/linux/socketcall.h: Add SOCKOP_paccept.
2608         * sysdeps/unix/sysv/linux/syscalls.list: Add epoll_create2,
2609         inotify_init1, and pipe2 entries.
2610         * sysdeps/unix/sysv/linux/alpha/sys/epoll.h: New file.
2611         * sysdeps/unix/sysv/linux/alpha/sys/eventfd.h: New file.
2612         * sysdeps/unix/sysv/linux/alpha/sys/inotify.h: New file.
2613         * sysdeps/unix/sysv/linux/alpha/sys/signalfd.h: New file.
2614         * sysdeps/unix/sysv/linux/alpha/sys/timerfd.h: New file.
2615         * sysdeps/unix/sysv/linux/bits/socket.h: Define SOCK_CLOEXEC and
2616         SOCK_NONBLOCK.
2617         * sysdeps/unix/sysv/linux/i386/paccept.S: New file.
2618         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: New file.
2619         * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: New file.
2620         * sysdeps/unix/sysv/linux/sparc/sys/inotify.h: New file.
2621         * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h: New file.
2622         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: New file.
2623         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: New file.
2624         * sysdeps/unix/sysv/linux/sys/epoll.h: Define EPOLL_CLOEXEC and
2625         EPOLL_NONBLOCK.  Declare epoll_create2.
2626         * sysdeps/unix/sysv/linux/sys/eventfd.h: Define EFD_CLOEXEC and
2627         EFD_NONBLOCK.
2628         * sysdeps/unix/sysv/linux/sys/inotify.h: Define IN_CLOEXEC and
2629         IN_NONBLOCK.  Declare inotify_init1.
2630         * sysdeps/unix/sysv/linux/sys/signalfd.h: Define SFD_CLOEXEC and
2631         SFD_NONBLOCK.
2632         * sysdeps/unix/sysv/linux/sys/timerfd.h: Define TFD_CLOEXEC and
2633         TFD_NONBLOCK.
2634
2635         * elf/elf.h: Define AT_EXECFN.
2636         * elf/rtld.c [!__ASSUME_AT_EXECFN] (process_envvars): Don't handle
2637         LD_ORIGIN_PATH.
2638         * elf/dl-sysdep.c (_dl_sysdep_start): Handle AT_EXECFN.
2639         * elf/dl-support.c: Define _dl_execfn.  Don't define _dl_origin_path
2640         if __ASSUME_AT_EXECFN is defined.
2641         (_dl_aux_init): Handle AT_EXECFN.
2642         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_AT_EXECFN
2643         for 2.6.27 and up.
2644         * sysdeps/generic/ldsodefs.h (rtld_global_ro): Add _dl_execfn.
2645         Don't define _dl_origin_path if __ASSUME_AT_EXECFN is defined.
2646         * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): Use
2647         _dl_execfn if available and avoid compatibility code if
2648         __ASSUME_AT_EXECFN is defined.
2649
2650         * sysdeps/unix/sysv/linux/dl-sysdep.h: Don't declare
2651         _dl_discover_osversion only for older kernels.
2652
2653 2008-07-22  Roland McGrath  <roland@frob.com>
2654
2655         * hurd/fd-read.c (_hurd_fd_read): Fix last change.
2656
2657 2008-07-21  Roland McGrath  <roland@frob.com>
2658
2659         * hurd/fd-read.c (_hurd_fd_read): Return EGRATUITOUS if the server
2660         returned too much data out of line.
2661
2662 2008-07-20  Ulrich Drepper  <drepper@redhat.com>
2663
2664         * locale/setlocale.c (setname): Remove inline to avoid compiler
2665         warning.
2666
2667         [BZ #6712]
2668         * locale/setlocale.c (setlocale): Take the setlocale lock earlier.
2669
2670 2008-07-15  Ulrich Drepper  <drepper@redhat.com>
2671
2672         * stdio-common/vfprintf.c (_IO_helper_overflow): In case _IO_sputn
2673         doesn't manage to write anything, fail.
2674
2675         * malloc/hooks.c (__malloc_check_init): Remove printf.
2676
2677 2008-07-14  Samuel Thibault  <samuel.thibault@ens-lyon.org>
2678
2679         * sysdeps/mach/hurd/bits/fcntl.h: Include <sys/types.h>.
2680
2681 2008-07-12  Ulrich Drepper  <drepper@redhat.com>
2682
2683         * nscd/connections.c (main_loop_poll): Fix handling of read errors
2684         from inotify.
2685         (main_loop_epoll): Likewise.
2686
2687 2008-07-09  Ulrich Drepper  <drepper@redhat.com>
2688
2689         * resolv/res_send.c: Remove unnecessary res_pquery prototype.
2690
2691         * resolv/res_query.c (__libc_res_nquery): Issue debug message only
2692         if DEBUG is defined.
2693
2694         * resolv/res_query.c (__libc_res_nquery): Align buffer for T_AAAA
2695         query.  Adjust buffer size computation for padding.
2696
2697 2008-07-08  Ulrich Drepper  <drepper@redhat.com>
2698
2699         * stdio-common/Makefile: Add rules to build and run tst-setvbuf1.
2700         * stdio-common/tst-setvbuf1.c: New file.
2701         * stdio-common/tst-setvbuf1.expect: New file.
2702
2703         [BZ #6719]
2704         * libio/iosetvbuf.c (_IO_setvbuf): Correctly clear buffering flags
2705         when selecting fully-buffered stream.
2706         Patch by Wang Xin <wxinee@gmail.com>.
2707
2708 2008-07-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
2709
2710         * sysdeps/mach/hurd/open.c: Include <stdio.h>.
2711         (__open_2): New function.
2712         (__open64_2): New alias to __open_2.
2713         * sysdeps/mach/hurd/openat.c: Include <stdio.h>.
2714         (__openat_2): New function.
2715         (__openat64_2): New alias to __openat_2.
2716
2717 2008-07-06  Ulrich Drepper  <drepper@redhat.com>
2718
2719         [BZ #6723]
2720         * time/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
2721
2722 2008-07-01  Samuel Thibault  <samuel.thibault@ens-lyon.org>
2723
2724         * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Define MSG_NOSIGNAL.
2725         * hurd/hurd/fd.h (__hurd_sockfail): Add extern inline function.
2726         * sysdeps/mach/hurd/recv.c (__recv): Use __hurd_sockfail instead of
2727         __hurd_dfail.
2728         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Likewise.
2729         * sysdeps/mach/hurd/recvmsg.c (__recvmsg): Likewise.
2730         * sysdeps/mach/hurd/send.c (__send): Likewise.
2731         * sysdeps/mach/hurd/sendto.c (__sendfrom): Likewise.
2732         * sysdeps/mach/hurd/sendmsg.c (__sendmsg): Likewise.
2733
2734 2008-03-04  Samuel Thibault  <samuel.thibault@ens-lyon.org>
2735
2736         * sysdeps/mach/hurd/recv.c (__recv): Initialize NPORTS.
2737         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Likewise.
2738         * sysdeps/mach/hurd/recvmsg.c (__recvmsg): Likewise.
2739         * hurd/fd-read.c (_hurd_fd_read): Initialize NREAD.
2740         * hurd/get-host.c (_hurd_get_host_config): Likewise.
2741         * sysdeps/mach/hurd/dl-sysdep.c (__libc_read): Likewise.
2742
2743 2008-06-27  Ulrich Drepper  <drepper@redhat.com>
2744
2745         [BZ #6657]
2746         * time/strptime_l.c: Don't clear s.era_cnt after successful match
2747         of %EY.
2748         Patch by Petr Baudis.
2749
2750 2008-06-26  Ulrich Drepper  <drepper@redhat.com>
2751
2752         * resolv/res_debug.c (__p_type_syms): Add ns_t_dname entry.
2753         Patch by Peter Jones <pjones@redhat.com>.
2754
2755 2008-06-25  Ulrich Drepper  <drepper@redhat.com>
2756
2757         [BZ #6654]
2758         * stdlib/canonicalize.c (__realpath): readlink can write too much
2759         into the buffer on platforms without PATH_MAX.
2760
2761 2008-06-17  Carlos O'Donell  <carlos@codesourcery.com>
2762
2763         [BZ #6653]
2764         * posix/tst-regex.c (main): Rename to...
2765         (do_test): ... this. Remove cmdline option processing.
2766         (TIMEOUT): Define.
2767         (TEST_FUNCTION): Define.
2768         (CMDLINE_OPTIONS): Define.
2769
2770 2008-06-25  Ulrich Drepper  <drepper@redhat.com>
2771
2772         [BZ #5210]
2773         * configure.in: Add -Werror to -fstack-protector test to catch
2774         unsupported architectures.
2775         Patch by Gilles Esponasse <g.esp@free.fr>.
2776
2777 2008-06-17  Joseph Myers  <joseph@codesourcery.com>
2778
2779         * stdlib/tst-setcontext.c: Set back_in_main before exit if
2780         getcontext returns ENOSYS.
2781
2782 2008-06-18  Ulrich Drepper  <drepper@redhat.com>
2783
2784         * nscd/connections.c (main_loop_poll): Fix test for read error.
2785         (main_loop_epoll): Likewise.
2786
2787 2008-06-13  Ulrich Drepper  <drepper@redhat.com>
2788
2789         * sysdeps/posix/getaddrinfo.c: Move _res_hconf_init call to a
2790         better place so it is not called when nscd is used.
2791
2792         * nscd/connections.c: Also recognize and handle changes to the
2793         resolver configuration file.
2794
2795 2008-06-12  Ulrich Drepper  <drepper@redhat.com>
2796
2797         * time/strftime.c: Pass reference to tzset_called around to handle
2798         recursive calls.
2799
2800         [BZ #6612]
2801         * time/strftime.c (__strftime_internal): Call tzset() only
2802         when printing timezone-dependent values.
2803         Based on a patch by Petr Baudis <pasky@suse.cz>.
2804
2805         * resolv/nss_dns/dns-host.c (gaih_getanswer): Don't
2806         unconditionally use second gaih_getanswer_slice result.
2807
2808         * sysdeps/posix/getaddrinfo.c (gai_inet): Remove unnecessary test.
2809         (getaddrinfo): RES must always be non-NULL.
2810
2811 2008-06-12  Jakub Jelinek  <jakub@redhat.com>
2812
2813         * sysdeps/powerpc/powerpc64/fpu/s_llround.S (__llround): Avoid using
2814         cr[34] registers.
2815         * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S (__llroundf): Likewise.
2816         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S (__llround):
2817         Likewise.
2818         * sysdeps/powerpc/powerpc32/fpu/s_lround.S (__lround): Avoid using cr3
2819         register.
2820
2821 2008-06-12  Ulrich Drepper  <drepper@redhat.com>
2822
2823         * nscd/nscd.h (struct database_dyn): Add inotify_descr and clear_cache
2824         fields.
2825         * nscd/connections.c (inotify_fd): New variable.
2826         (nscd_init): Try to open an inotify descriptor.
2827         If successful, watch files for databases using inotify instead of
2828         having prune threads stat the files.
2829         (nscd_run_prune): Recognize clear_cache flag being set and call
2830         prune_cache appropriately.
2831         (main_loop_poll): Add inotify descriptor to wait set and handle the
2832         reported changes.
2833         (main_loop_epoll): Likewise.
2834         * nscd/cache.c (prune_cache): Don't stat files for databases if
2835         inotify is used.
2836         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd]
2837         (CFLAGS-connections.c): Add -DHAVE_INOTIFY.
2838
2839         * nscd/grpcache.c (cache_addgr): Correctly compute size of
2840         fixed-size portion of the record.
2841         * nscd/servicescache.c (cache_addserv): Likewise.
2842         * nscd/pwdcache.c (cache_addpw): Likewise.
2843         * nscd/initgrcache.c (addinitgroupsX): Likewise.
2844
2845 2008-06-11  Ulrich Drepper  <drepper@redhat.com>
2846
2847         * nscd/mem.c (gc): Initialize obstack earlier so that if we jump
2848         out we don't use uninitialized memory.
2849
2850         * nscd/hstcache.c (cache_addhst): Send correct number of bytes to
2851         the client.
2852
2853 2008-06-10  Ulrich Drepper  <drepper@redhat.com>
2854
2855         * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): Also log and
2856         ignore T_DNAME messages.
2857         * resolv/arpa/nameser_compat.h (T_DNAME): Define.
2858
2859 2008-06-05  Jakub Jelinek  <jakub@redhat.com>
2860
2861         * misc/regexp.h (compile): Use __REPB_PREFIX macro.
2862         Avoid segfault if first GETC returns eof/'\0'/'\n'.
2863
2864 2008-06-03  Jakub Jelinek  <jakub@redhat.com>
2865
2866         * nscd/nscd_getserv_r.c (__nscd_getservbyport_r): Pass cp
2867         instead of portstr to nscd_getserv_r.  Patch by
2868         Roman Kagan <rkagan@mail.ru>.
2869
2870 2008-05-26  Jim Meyering  <meyering@redhat.com>
2871
2872         Remove more useless "if" tests before "free".
2873         * include/inline-hashtab.h (htab_delete): Likewise.
2874         * libio/freopen.c (freopen): Likewise.
2875         * libio/freopen64.c (freopen64): Likewise.
2876         * locale/programs/ld-collate.c (collate_read): Likewise.
2877         * misc/fstab.c (libc_freeres_fn): Likewise.
2878         * posix/glob.c (globfree): Likewise.
2879
2880 2008-05-24  Ulrich Drepper  <drepper@redhat.com>
2881
2882         * string/Makefile (strop-tests): Add memmem.
2883         * string/test-memmem.c: New file.
2884         * string/test-string.h (BUF1PAGES): Define to 1 if undefined.
2885         (test_init): Size buf1 according to BUF1PAGES.
2886
2887 2008-05-24  Jakub Jelinek  <jakub@redhat.com>
2888
2889         * libio/stdio.h (vscanf): Fix -std=c99 redirect.
2890         * stdio-common/Makefile (tests): Add scanf16 and scanf17.
2891         (CFLAGS-scanf17.c): New.
2892         * stdio-common/scanf14.c (main): Add fscanf and scanf tests.
2893         * stdio-common/scanf15.c (main): Likewise.
2894         * stdio-common/scanf16.c: New file.
2895         * stdio-common/scanf17.c: New file.
2896
2897 2008-05-24  Ulrich Drepper  <drepper@redhat.com>
2898
2899         * resolv/res_send.c (send_dg): If we already have one of two
2900         answers and the server reports SERVFAIL, NOTIMP, or REFUSED, then
2901         use the one answer insted of failing.
2902
2903 2008-02-20  Ryan S. Arnold  <rsa@us.ibm.com>
2904
2905         * math/libm-test.inc (exp_test): Exclude expl(1000.0L) from
2906         being executed on PowerPC as the expected result exceeds IBM
2907         long double 128 __LDBL_MAX__.
2908
2909 2008-05-21  Roland McGrath  <roland@redhat.com>
2910
2911         * shlib-versions (sparc.*-.*-.*, sparc64.*-.*-.*): Add ABI lines.
2912
2913         * Makefile (check-data): Use $(abi-name) before other guesses.
2914         Look in $(add-ons) dirs before scripts/data/.
2915         * elf/Makefile (check-data): Likewise.
2916
2917         * scripts/soversions.awk: Grok ABI line.
2918         * Makeconfig ($(common-objpfx)soversions.mk): Likewise.
2919         Emit definition for abi-name variable.
2920
2921 2008-05-21  Ulrich Drepper  <drepper@redhat.com>
2922
2923         * string/endian.h: Define new fixed-size hto* and *toh macros only
2924         if [__USE_BSD].
2925
2926         * iconvdata/Depend: Add localedata.
2927
2928 2008-05-21  Samuel Thibault  <samuel.thibault@ens-lyon.org>
2929
2930         * bits/termios.h (ONLCR): Define under [__USE_XOPEN] too.
2931
2932 2008-05-08  David S. Miller  <davem@davemloft.net>
2933
2934         * sysdeps/unix/sysv/linux/sparc/sparc32/setcontext.S: Use
2935         HIDDEN_JUMPTARGET.
2936         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
2937         (__SYSCALL_CLOBBERS): Remove %g* registers.
2938         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
2939         (__SYSCALL_CLOBBERS): Likewise.
2940         * scripts/data/localplt-sparc-linux-gnu.data: New file.
2941         * scripts/data/localplt-sparc64-linux-gnu.data: New file.
2942
2943 2008-05-21  Jakub Jelinek  <jakub@redhat.com>
2944
2945         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
2946         (CALL_ERRNO_LOCATION): Define.
2947         (__SYSCALL_STRING, __CLONE_SYSCALL_STRING): Use it.
2948         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
2949         (CALL_ERRNO_LOCATION): Define.
2950         (__SYSCALL_STRING, __CLONE_SYSCALL_STRING): Use it.
2951         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S (__brk): Use
2952         HIDDEN_JUMPTARGET for __errno_location call in libc.so.
2953
2954 2008-05-20  Ulrich Drepper  <drepper@redhat.com>
2955
2956         * include/inline-hashtab.h (higher_prime_number): Fix type of mid
2957         variable.
2958
2959 2008-05-20  Jakub Jelinek  <jakub@redhat.com>
2960
2961         * sysdeps/unix/sysv/linux/sparc/sparc32/sigcontextinfo.h
2962         (FIRST_FRAME_POINTER): Define.
2963
2964 2008-05-09  David S. Miller  <davem@davemloft.net>
2965
2966         * sysdeps/sparc/sparc64/backtrace.c: New file.
2967
2968 2008-05-14  David S. Miller  <davem@davemloft.net>
2969
2970         * sysdeps/sparc/machine-gmon.h: New file.
2971         * sysdeps/sparc/sparc-mcount.S: Likewise.
2972         * sysdeps/sparc/Makefile: Add sparc-mcount target to
2973         sysdep_routines in gmon directory.
2974
2975 2008-05-19  Jakub Jelinek  <jakub@redhat.com>
2976
2977         * elf/soinit.c (__EH_FRAME_BEGIN__): Remove.
2978
2979 2008-05-19  Ulrich Drepper  <drepper@redhat.com>
2980
2981         * resolv/res_query.c (__libc_res_nquery): In case one of two
2982         answer was too short don't try to read that answer's header.
2983
2984         * resolv/res_send.c (send_dg): In case of timeout and there are
2985         two queries and one has been answered, return value indicating
2986         success.
2987
2988 2008-05-18  Ulrich Drepper  <drepper@redhat.com>
2989
2990         * nscd/cache.c (cache_add): Take additional parameter specifying
2991         whether this is in response of a cache refill.  Check alignment
2992         of package data.  Revamp waking of pruning thread.
2993         (prune_cache): Small optimization.
2994         * nscd/nscd.h: Adjust cache_add prototypes.
2995         * nscd/aicache.c: Adjust cache_add calls.
2996         * nscd/grpcache.c: Likewise.
2997         * nscd/hstcache.c: Likewise.
2998         * nscd/initgrcache.c: Likewise.
2999         * nscd/pwdcache.c: Likewise.
3000         * nscd/servicescache.c: Likewise.
3001         * nscd/connections.c (restart): Really disable cache use before
3002         exec attempt.  If it fails, reenable cache.
3003         (nscd_run_prune): Initialize wakeup_time.  After wakeup, set wakeup
3004         time to max to be able to notice concurrent cache additions.  Unlock
3005         prune_lock while performing gc.  Afterwards compute wakeup time with
3006         current wakeup_time value in mind.
3007
3008 2008-05-17  Ulrich Drepper  <drepper@redhat.com>
3009
3010         * nscd/mem.c (gc): Avoid stack overflow when allocating move list.
3011
3012         * nscd/mem.c (gc): Correctly determine highest used array element
3013         in mark.
3014
3015         * nscd/mem.c (markrange): Add assert to check entries are all
3016         aligned.  Small cleanup in bitmap use.
3017
3018         * nscd/nscd.h (mem_in_flight): Replace blockaddr field with
3019         blockoff of type nscd_ssize_t.
3020         * nscd/mem.c (gc): Simplify markrange call for on-flight blocks.
3021         (mempoll_alloc): Record block offset and not address.
3022
3023         * nscd/mem.c (gc): Fix test for stack overuse.
3024
3025         * nscd/aicache.c (addhstaiX): Fix a few small problems, cleanups,
3026         more asserts.
3027
3028         * sysdeps/posix/getaddrinfo.c (gaih_inet): If nscd reports no
3029         entry is available, believe it.
3030
3031         * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): If there are
3032         no answers return NSS_STATUS_NOTFOUND.
3033         (gaih_getanswer): Don't call gaih_getanswer_slice if the answer
3034         buffer does not have any content.
3035
3036 2008-05-16  Ulrich Drepper  <drepper@redhat.com>
3037
3038         * string/strcasestr.c (CMP_FUNC): Use __strncasecmp, not strncasecmp.
3039
3040         * sysdeps/posix/getaddrinfo.c (gaih_inet): After gethostbyname4_r
3041         lookup, don't assign canon unconditionally.
3042
3043 2008-05-14  Ulrich Drepper  <drepper@redhat.com>
3044
3045         * string/Makefile (distribute): Add str-two-way.h.
3046
3047 2008-03-29  Eric Blake  <ebb9@byu.net>
3048
3049         Rewrite string searches to O(n) rather than O(n^2).
3050         * string/str-two-way.h: New file.  For linear fixed-allocation
3051         string searching.
3052         * string/memmem.c: New implementation.
3053         * string/strstr.c: New implementation.
3054         * string/strcasestr.c: New implementation.
3055
3056 2008-04-11  Paolo Bonzini  <bonzini@gnu.org>
3057
3058         * posix/regcomp.c (optimize_utf8): Add a note on why we test
3059         opr.ctx_type.
3060         (calc_first): Initialize constraint field.
3061         (duplicate_node_closure): Use it instead of special casing ANCHORS.
3062         Use search_duplicated_node to avoid loops.  Fix grammar.
3063         (duplicate_node): Merge constraint field for all node types.
3064         (calc_eclosure_iter): Look at constraint field for all node types.
3065         * posix/regex_internal.c (create_cd_newstate): Don't look at
3066         create_cd_newstate.
3067
3068 2008-05-14  Ulrich Drepper  <drepper@redhat.com>
3069
3070         [BZ #6428]
3071         * configure.in: Don't use $CFLAGS when assembling, use $ASFLAGS.
3072
3073         [BZ #6442]
3074         * string/endian.h: Add macros for fixed-size endian conversion.
3075         * bits/byteswap.h: Allow inclusion from <endian.h>.
3076         * sysdeps/i386/bits/byteswap.h: Likewise.
3077         * sysdeps/ia64/bits/byteswap.h: Likewise.
3078         * sysdeps/s390/bits/byteswap.h: Likewise.
3079         * sysdeps/x86_64/bits/byteswap.h: Likewise.
3080         * string/Makefile (tests): Add tst-endian.
3081         * string/tst-endian.c: New file.
3082
3083         * iconvdata/run-iconv-test.sh: Use = instead of == in test.
3084         Patch by Reuben Thomas.
3085
3086 2008-05-14  Joseph Myers  <joseph@codesourcery.com>
3087
3088         * iconvdata/Makefile (bug-iconv6-ENV, tst-iconv7-ENV): Define.
3089
3090 2008-05-14  Ulrich Drepper  <drepper@redhat.com>
3091
3092         * iconvdata/bug-iconv6.c (do_test): Use de_DE.UTF-8 locale.
3093
3094         [BZ #6461]
3095         * iconv/gconv_simple.c (BODY for __gconv_transform_ascii_internal):
3096         Add missing braces.
3097         (BODY for __gconv_transform_internal_ascii): Likewise.
3098
3099         [BZ #6472]
3100         * sysdeps/posix/getaddrinfo.c (get_scope): Loopback addresses have
3101         to be treated like link-local addresses.
3102         (match_prefix): Don't treat IPv4 loopback address special when
3103         converting to v4 mapped addressed.
3104
3105         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Call _res_hconf_init
3106         if necessary.
3107         * posix/tst-rfc3484.c: Add dummy definition of _res_hconf_init.
3108         * posix/tst-rfc3484-2.c: Likewise.
3109         * posix/tst-rfc3484-3.c: Likewise.
3110
3111         * sysdeps/posix/getaddrinfo.c: Implement handling of DCCP, UDPlite,
3112         and SCTP.
3113
3114         * nss/getent.c (ahosts_keys_int): Handle all known socket types.
3115
3116         * inet/netinet/in.h (IPPIPPROTO_DCCP, IPPROTO_UDPLITE): Define.
3117
3118         * sysdeps/unix/sysv/linux/bits/socket.h (SOCK_DCCP): Define.
3119
3120 2008-05-13  Ulrich Drepper  <drepper@redhat.com>
3121
3122         * po/lt.po: New file.  From Lituanian translation team.
3123
3124 2008-01-30  Alexandre Oliva  <aoliva@redhat.com>
3125
3126         Introduce TLS descriptors for i386 and x86_64.
3127         * include/inline-hashtab.h: New file, copied from 2005's
3128         libiberty, with fix for memory leak imported afterwards by
3129         Glauber de Oliveira Costa.
3130         * elf/tlsdeschtab.h: New file.
3131         * elf/dl-reloc.c (_dl_try_allocate_static_tls): Extract from...
3132         (_dl_allocate_static_tls): ... here.  Rearrange failure path.
3133         (CHECK_STATIC_TLS): Move to...
3134         * elf/dynamic-link.h: ... this file.
3135         (TRY_STATIC_TLS): New macro.
3136         * elf/dl-conflict.c (CHECK_STATIC_TLS, TRY_STATIC_TLS): Override.
3137         * elf/elf.h (R_386_TLS_GOTDESC, R_386_TLS_DESC_CALL,
3138         R_386_TLS_DESC): Define.
3139         (R_X86_64_PC64, R_X86_GOTOFF64, R_X86_64_GOTPC32): Merge from
3140         binutils.
3141         (R_X86_64_GOTPC32_TLSDESC, R_X86_64_TLSDESC_CALL,
3142         R_X86_64_TLSDESC): Define.
3143         (R_386_NUM, R_X86_64_NUM): Adjust.
3144         * sysdeps/i386/Makefile (sysdep-dl-routines, sysdep_routines,
3145         sysdep-rtld-routines): Add tlsdesc and dl-tlsdesc for elf subdir.
3146         (gen-as-const-headers): Add tlsdesc.sym to csu subdir.
3147         * sysdeps/i386/dl-lookupcfg.h: New file.  Introduce _dl_unmap to
3148         release tlsdesc_table.
3149         * sysdeps/i386/dl-machine.h: Include dl-tlsdesc.h.
3150         (elf_machine_type_class): Mark R_386_TLS_DESC as PLT class.
3151         (elf_machine_rel): Handle R_386_TLS_DESC.
3152         (elf_machine_rela): Likewise.
3153         (elf_machine_lazy_rel): Likewise.
3154         (elf_machine_lazy_rela): Likewise.
3155         * sysdeps/i386/dl-tls.h (struct dl_tls_index): Name it.
3156         * sysdeps/i386/dl-tlsdesc.S: New file.
3157         * sysdeps/i386/dl-tlsdesc.h: New file.
3158         * sysdeps/i386/tlsdesc.c: New file.
3159         * sysdeps/i386/tlsdesc.sym: New file.
3160         * sysdeps/i386/bits/linkmap.h (struct link_map_machine): Add
3161         tlsdesc_table.
3162         * sysdeps/x86_64/Makefile (sysdep-dl-routines, sysdep_routines,
3163         sysdep-rtld-routines): Add tlsdesc and dl-tlsdesc for elf subdir.
3164         (gen-as-const-headers): Add tlsdesc.sym to csu subdir.
3165         * sysdeps/x86_64/dl-lookupcfg.h: New file.  Introduce _dl_unmap to
3166         release tlsdesc_table.
3167         * sysdeps/x86_64/dl-machine.h: Include dl-tlsdesc.h.
3168         (elf_machine_runtime_setup): Set up lazy TLSDESC GOT entry.
3169         (elf_machine_type_class): Mark R_X86_64_TLSDESC as PLT class.
3170         (elf_machine_rel): Handle R_X86_64_TLSDESC.
3171         (elf_machine_rela): Likewise.
3172         (elf_machine_lazy_rel): Likewise.
3173         * sysdeps/x86_64/dl-tls.h (struct dl_tls_index): Name it.
3174         (__tls_get_addr): Do not declare for non-shared compiles.
3175         * sysdeps/x86_64/dl-tlsdesc.S: New file.
3176         * sysdeps/x86_64/dl-tlsdesc.h: New file.
3177         * sysdeps/x86_64/tlsdesc.c: New file.
3178         * sysdeps/x86_64/tlsdesc.sym: New file.
3179         * sysdeps/x86_64/bits/linkmap.h (struct link_map_machine): Add
3180         tlsdesc_table for both 32- and 64-bit structs.
3181
3182 2008-05-11  Ulrich Drepper  <drepper@redhat.com>
3183
3184         * elf/dl-tls.c (__tls_get_addr): Optimize by moving slow path in
3185         its own function.  This reduces the frame setup costs and more.
3186
3187 2008-02-11  Joseph Myers  <joseph@codesourcery.com>
3188
3189         [BZ #3406]
3190         * sysdeps/ieee754/flt-32/w_expf.c (o_threshold): Correct value.
3191         * math/libm-test.inc (exp_test): Test 88.72269439697265625.
3192
3193 2008-05-11  Ulrich Drepper  <drepper@redhat.com>
3194
3195         * io/openat.c (__openat_2): Also pass fd to __openat.
3196         * io/openat64.c (__openat64_2): Also pass fd to __openat64.
3197         Patch by Kristian Van Der Vliet <vanders@liqwyd.com>.
3198
3199         * string/tester.c (test_memcmp): Add a few more tests.
3200         Patch by Mats Erik Andersson <ynglingatal@comhem.se>.
3201
3202 2008-05-10  Ulrich Drepper  <drepper@redhat.com>
3203
3204         * nscd/cache.c (cache_add): Before returning with failure and this
3205         is the first use of the record, mark it as unusable.
3206         * nscd/aicache.c: Don't touch the dataset after cache_add returns
3207         reporting a failure.
3208         * nscd/grpcache.c: Likewise
3209         * nscd/hstcache.c: Likewise.
3210         * nscd/initgrcache.c: Likewise.
3211         * nscd/pwdcache.c: Likewise.
3212         * nscd/servicescache.c: Likewise.
3213
3214 2008-05-10  Roland McGrath  <roland@redhat.com>
3215
3216         [BZ #6505]
3217         * sysdeps/unix/sysv/linux/sys/user.h: Replace with #error stub.
3218
3219 2008-05-08  David S. Miller  <davem@davemloft.net>
3220
3221         * misc/truncate64.c (truncate64): Use __truncate not truncate.
3222
3223         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee751_j0l): Use __finitel.
3224         (__ieee754_y0l): Likewise.
3225         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Likewise.
3226         (__ieee754_y1l): Likewise.
3227         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Use __ldexpl.
3228         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Kill bogus prototypes for
3229         frexpl and ldexpl.  math_private.h provides them and the latter
3230         is not even used.
3231         (__log1pl): Use __frexpl.
3232
3233 2008-05-10  Ulrich Drepper  <drepper@redhat.com>
3234
3235         * include/resolv.h: Adjust __libc_res_nquery and __libc_res_nsend
3236         prototypes.
3237         * include/arpa/nameser_compat.h: Define T_UNSPEC.
3238         * nis/Versions (libnss_nis): Export _nss_nis_gethostbyname4_r.
3239         (libnss_nisplus): Export _nss_nisplus_gethostbyname4_r.
3240         * nis/nss_nis/nis-hosts.c (LINE_PARSER): Change to also handle
3241         af==AF_UNSPEC.
3242         (_nss_nis_gethostbyname4_r): New function.
3243         * nis/nss_nisplus/nisplus-hosts.c (_nss_nisplus_parse_hostent):
3244         Change to also handle af==AF_UNSPEC.
3245         (get_tablename): New function.  Use it to avoid duplication.
3246         (_nss_nisplus_gethostbyname4_r): New function.
3247         * nscd/aicache.c (addhstaiX): Use gethostbyname4_r function is
3248         available.
3249         * nss/Versions (libnss_files): Export _nss_files_gethostbyname4_r.
3250         * nss/nss.h: Define struct gaih_addrtuple.
3251         * nss/nss_files/files-hosts.c (LINE_PARSER): Change to also handle
3252         af==AF_UNSPEC.
3253         (_nss_files_gethostbyname4_r): New function.
3254         * resolv/Versions (libnss_dns): Export _nss_dns_gethostbyname4_r.
3255         * resolv/gethnmaddr.c: Adjust __libc_res_nsearch and __libc_res_nquery
3256         calls.
3257         * resolv/res_query.c (__libc_res_nquery): Take two additional
3258         parameters for second answer buffer.  Handle type=T_UNSPEC to mean
3259         look up IPv4 and IPv6.
3260         Change all callers.
3261         * resolv/res_send.c (__libc_res_nsend): Take five aditional parameters
3262         for an additional query and answer buffer.  Pass to send_vc and
3263         send_dg.
3264         (send_vc): Send possibly two requests and receive two answers.
3265         (send_dg): Likewise.
3266         * resolv/nss_dns/dns-host.c: Adjust calls to __libc_res_nsearch and
3267         __libc_res_nquery.
3268         (_nss_dns_gethostbyname4_r): New function.
3269         (gaih_getanswer_slice): Likewise.
3270         (gaih_getanswer): Likewise.
3271         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Adjust
3272         __libc_res_nquery call.
3273         * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r): Likewise.
3274         (_nss_dns_getnetbyname_r): Adjust __libc_res_nsearch call.
3275         * sysdeps/posix/getaddrinfo.c: Use gethostbyname4_r function is
3276         available.
3277
3278 2008-05-05  David S. Miller  <davem@davemloft.net>
3279
3280         * sysdeps/sparc/sparc32/Makefile: Use -mcpu=v7 for initfini.s build.
3281         * sysdeps/sparc/sparc64/Makefile: Use -mcpu=v9 for initfini.s build.
3282
3283 2007-09-14  Samuel Thibault  <samuel.thibault@ens-lyon.org>
3284
3285         Fix termios bit macros.
3286         Move *DLY definitions where they belong, in termios.h.
3287         Add *[0-3] definitions.
3288         Fixes confusion between VT and FF.
3289         * sysdeps/mach/hurd/bits/ioctls.h (NL0, NL1, TAB0, TAB1, TAB2, CR0,
3290         CR1, CR2, CR3, FF0, FF1, BS0, BS1): Undefine these at start if they
3291         are already defined to avoid collision with termios.h.
3292         (NLDLY, TABDLY, TAB3, CRDLY, VTDLY, BSDLY): Remove macros.
3293         * bits/termios.h [__USE_MISC || __USE_XOPEN] (NL0, NL1, TAB0,
3294         TAB1, TAB2, CR0, CR1, CR2, CR3, FF0, FF1, BS0, BS1): Likewise.
3295         [__USE_BSD || __USE_XOPEN] (OCRNL, ONOCR, ONLRET): New macros.
3296         [__USE_MISC || __USE_XOPEN] (NLDLY, NL0, NL1, TABDLY, TAB0, TAB1, TAB2,
3297         TAB3, CRDLY, CR0, CR1, CR2, CR3, FFDLY, FF0, FF1, BSDLY, BS0, BS1,
3298         VTDLY, VT0, VT1): New macros.
3299         [__USE_GNU] (OLCUC): Change value of macro.
3300         [__USE_XOPEN] (OFILL): New macro.
3301         [__USE_BSD] (CRTSCTS): Change value.
3302         (CRTS_IFLOW, CCTS_OFLOW): Change into compatibility macros.
3303         [__USE_BSD] (CDTRCTS, CHWFLOW): New macros.
3304         (B7200, B14400, B28800, B76800): New macros.
3305
3306 2008-05-01  David S. Miller  <davem@davemloft.net>
3307
3308         * sysdeps/unix/sysv/linux/sparc/sparc32/ucontext_i.sym: New file.
3309         * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile [$(subdir) = stdlib]:
3310         (gen-as-const-headers): Add it.
3311         * sysdeps/unix/sysv/linux/sparc/sparc32/getcontext.S: New file.
3312         * sysdeps/unix/sysv/linux/sparc/sparc32/makecontext.c: Likewise.
3313         * sysdeps/unix/sysv/linux/sparc/sparc32/setcontext.S: Likewise.
3314         * sysdeps/unix/sysv/linux/sparc/sparc32/swapcontext.S: Likewise.
3315
3316         * sysdeps/unix/sysv/linux/sparc/sparc32/syscall.S: Add support for
3317         six system call parameters.
3318         * sysdeps/unix/sysv/linux/sparc/sparc64/syscall.S: Likewise.
3319
3320 2008-04-30  Ulrich Drepper  <drepper@redhat.com>
3321
3322         * sysdeps/unix/sysv/linux/bits/resource.h: Define RUSAGE_THREAD and
3323         RUSAGE_LWP.
3324         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
3325         * sysdeps/unix/sysv/linux/alpha/bits/resource.h: Likewise.
3326
3327 2008-04-30  Jakub Jelinek  <jakub@redhat.com>
3328
3329         * stdlib/tst-setcontext.c: Include unistd.h.
3330
3331 2008-04-25  David S. Miller  <davem@davemloft.net>
3332
3333         * sysdeps/unix/sysv/linux/sparc/sparc64/semctl.c (semctl):
3334         Pass "union semun" properly in to sys_ipc, it must be passed
3335         by value, not by reference.
3336
3337 2008-04-22  Jakub Jelinek  <jakub@redhat.com>
3338
3339         * nscd/Makefile (nscd-cflags): Set back to -fpie.
3340         * nscd/nscd.h (mem_in_flight): Add attribute_tls_model_ie.
3341         * nscd/connections.c (mem_in_flight): Likewise.
3342
3343         * nscd/nscd.h (dbs): Make hidden.
3344
3345         * sysdeps/unix/sysv/linux/times.c (__times): Fix check for EFAULT.
3346         Avoid returning -1, return 0 instead.
3347
3348 2008-04-19  Ulrich Drepper  <drepper@redhat.com>
3349
3350         * resolv/res_mkquery.c (__res_nopt): Use NS_PUT16 instead of ns_put16.
3351
3352 2008-04-15  Ulrich Drepper  <drepper@redhat.com>
3353
3354         [BZ #5209]
3355         * sysdeps/unix/sysv/linux/times.c: New file.
3356
3357         [BZ #5381]
3358         * nscd/nscd.h: Define enum in_flight, mem_in_flight, and
3359         mem_in_flight_list variables.  Add new parameter to mempool_alloc
3360         prototype.
3361         * nscd/mem.c (mempool_alloc): Take additional parameter.  Initialize
3362         appropriate mem_in_flight element.
3363         (gc): Take allocations which have not yet been committed to the
3364         database into account.
3365         * nscd/cache.c (cache_add): Add new parameter to mempool_alloc call.
3366         Reset mem_in_flight before returning.
3367         * nscd/connections.c (nscd_run_worker): Initialize mem_in_flight and
3368         cue it up in mem_in_flight_list.
3369         * nscd/aicache.c: Adjust mempool_alloc call.
3370         * nscd/grpcache.c: Likewise.
3371         * nscd/hstcache.c: Likewise.
3372         * nscd/initgrcache.c: Likewise.
3373         * nscd/pwdcache.c: Likewise.
3374         * nscd/servicescache.c: Likewise.
3375         * nscd/Makefile (nscd-flags): Until ld is fixed, use -fpic instead
3376         of -fpie.
3377
3378         * nscd/connections.c (handle_request): Provide better error message
3379         in case SELinux forbids the service.
3380
3381         * version.h (VERSION): Bump to 2.8.90.
3382
3383 2008-04-17  Jakub Jelinek  <jakub@redhat.com>
3384
3385         * sysdeps/unix/sysv/linux/dl-osinfo.h: Include fcntl.h.
3386
3387 2008-04-11  Ulrich Drepper  <drepper@redhat.com>
3388
3389         * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h (__signbitl):
3390         Also use for 32-bit.
3391         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c (__nearbyintl): Use
3392         __nextafter instead of nextafter to avoid local PLT.
3393         * sysdeps/powerpc/fpu/e_sqrt.c: Avoid call to fetestexcept.
3394         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
3395
3396         * scripts/data/localplt-powerpc64-linux-gnu.data: New file.
3397
3398         * sysdeps/powerpc/fpu/fenv_libc.h: Add libm_hidden_proto for
3399         __fe_nomask_env.
3400         * sysdeps/powerpc/fpu/fe_nomask.c: Add libm_hidden_def.  Include
3401         <fenv_libc.h> instead of <fenv.h>.
3402         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c: Likewise.
3403         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c: Likewise.
3404
3405         * sysdeps/powerpc/bits/fenv.h: Make safe for C++.
3406
3407         * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h: New file.
3408         * sysdeps/powerpc/fpu/fegetexcept.c (__fegetexcept): Rename
3409         function from fegetexcept and make old name weak alias.
3410         * include/fenv.h: Declare __fegetexcept.
3411         * sysdeps/powerpc/fpu/fedisblxcpt.c: Use __fegetexcept instead of
3412         fegetexcept.
3413         * sysdeps/powerpc/fpu/feenablxcpt.c: Likewise.
3414         * sysdeps/powerpc/fpu/fraiseexcpt.c (__feraiseexcept): Avoid call
3415         to fetestexcept.
3416         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Use __frexpl
3417         instead of frexpl to avoid local PLT.
3418         * math/s_significandl.c (__significandl): Use __ilogbl instead of
3419         ilogbl to avoid local PLT.
3420         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Use __ldexpl
3421         instead of ldexpl to avoid local PLT.
3422         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (__ieee754_expl): Use
3423         __roundl not roundl to avoid local PLT.
3424         * sysdeps/ieee754/ldbl-128/e_j0l.c: Use function names which avoid
3425         local PLTs.  Use __sincosl instead of separate sinl and cosl
3426         calls.
3427         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
3428
3429         * sysdeps/unix/sysv/linux/configure.in: Bump minimal kernel
3430         version for ppc64 to 2.4.21 since without it makecontext will fail.
3431
3432         * elf/tls-macros.h [__powerpc64__] (__TLS_GET_ADDR): Define according
3433         to the ABI in use.
3434         [__powerpc64__] (TLS_LD): Use __TLS_GET_ADDR instead of
3435         .__tls_get_addr.
3436         [__powerpc64__] (TLS_GD): Likewise.
3437
3438 2007-11-20  Ryan S. Arnold  <rsa@us.ibm.com>
3439
3440         [BZ #4997]
3441         * sysdeps/powerpc/powerpc32/fpu/s_lround.S (__lround): Fixed erroneous
3442         result when x is +/-nextafter(+/-0.5,-/+1) i.e. all 1's in the
3443         mantissa.
3444         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S (__llround):
3445         Likewise.  Also account for when x is an odd number between 2^52
3446         and 2^53-1.
3447         * sysdeps/powerpc/powerpc64/fpu/s_llround.S (__llround): Likewise.
3448         * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S (__llroundf): Likewise.
3449         * math/libm-test.inc (lround_test, llround_test): Added test cases to
3450         detect aforementioned erroneous conditions.
3451
3452 2008-04-11  Jakub Jelinek  <jakub@redhat.com>
3453
3454         * configure.in: Check for -fno-section-anchors in addition to
3455         -fno-toplevel-reorder.
3456
3457 2008-04-11  Ulrich Drepper  <drepper@redhat.com>
3458
3459         * include/features.h (__GLIBC_MINOR__): Bump to 8.
3460
3461         * sysdeps/powerpc/powerpc32/fpu/s_lroundf.S: Remove duplicate comment.
3462         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llroundf.S: Likewise.
3463         * sysdeps/powerpc/powerpc32/power6/fpu/s_llroundf.S: Likewise.
3464         * sysdeps/powerpc/powerpc64/fpu/s_lrint.S: Likewise.
3465         * sysdeps/powerpc/powerpc64/fpu/s_lround.S: Likewise.
3466         * sysdeps/powerpc/powerpc64/fpu/s_lroundf.S: Likewise.
3467
3468 2008-04-11  Jakub Jelinek  <jakub@redhat.com>
3469
3470         [BZ #5443]
3471         * time/era.c: Transform __libc_setlocale_lock into rwlock.
3472         * time/alt_digit.c: Likewise.
3473         * wcsmbs/wcsmbsload.c: Likewise.
3474
3475 2008-04-10  Ulrich Drepper  <drepper@redhat.com>
3476
3477         * version.h (VERSION): Bump to 2.8.
3478
3479         * timzeone/asia: Update from tzdata2008b.
3480         * timezone/backward: Likewise.
3481         * timezone/europe: Likewise.
3482         * timezone/northamerica: Likewise.
3483         * timezone/southamerica: Likewise.
3484         * timezone/iso3166.tab: Likewise.
3485         * timezone/leapseconds: Likewise.
3486         * timezone/zone.tab: Likewise.
3487         * timezone/private.h: Update from tzcode2008a.
3488         * timezone/zdump.c: Likewise.
3489         * timezone/zic.c: Likewise.
3490
3491 2008-01-24  Steven Munroe  <sjmunroe@us.ibm.com>
3492
3493         [BZ #5741]
3494         * sysdeps/powerpc/powerpc64/dl-machine.h (PPC_DCBT, PPC_DCBF):
3495         Define additonal Data Cache Block instruction macros.
3496         (elf_machine_fixup_plt): Add dcbt for opd and plt entries.
3497         Replace dcbst with dcbf and sync with sync/isync.
3498
3499 2008-02-21  Alan Modra  <amodra@bigpond.net.au>
3500
3501         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_type_class):
3502         Always set ELF_RTYPE_CLASS_PLT.
3503         (elf_machine_lookup_noexec_p, elf_machine_lookup_noplt_p): Delete.
3504
3505 2008-04-03  Steven Munroe  <sjmunroe@us.ibm.com>
3506
3507         * sysdeps/powerpc/powerpc32/power4/hp-timing.c: New file.
3508         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: New file.
3509         * sysdeps/powerpc/powerpc64/hp-timing.h [_ARCH_PWR4] (HP_TIMING_NOW):
3510         For ISA 2.01 and later replace mftb with mfspr 268.
3511
3512 2008-02-19  Steven Munroe  <sjmunroe@us.ibm.com>
3513
3514         [BZ #5768]
3515         * sysdeps/powerpc/fpu/Makefile (libm-tests): Add test-powerpc-snan.
3516         * sysdeps/powerpc/fpu/test-powerpc-snan.c: New file.
3517
3518 2008-02-18  Steven Munroe  <sjmunroe@us.ibm.com>
3519
3520         [BZ #5768]
3521         * sysdeps/powerpc/powerpc32/fpu/s_isnan.S: New file.
3522         * sysdeps/powerpc/powerpc32/fpu/s_isnan.c: Removed.
3523         * sysdeps/powerpc/powerpc64/fpu/s_isnan.S: New file.
3524         * sysdeps/powerpc/powerpc64/fpu/s_isnan.c: Removed.
3525
3526 2008-04-10  Jakub Jelinek  <jakub@redhat.com>
3527
3528         * stdlib/tst-makecontext.c (othervar): New variable.
3529         (cf): Test sign extending the argument to long.
3530
3531 2008-03-03  Steven Munroe  <sjmunroe@us.ibm.com>
3532
3533         * sysdeps/powerpc/powerpc32/power5/fpu/s_isnan.S: New file.
3534         * sysdeps/powerpc/powerpc32/power5/fpu/s_isnanf.S: New file.
3535         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnan.S: New file.
3536         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S: New file.
3537         * sysdeps/powerpc/powerpc64/power5/fpu/s_isnan.S: New file.
3538         * sysdeps/powerpc/powerpc64/power6/fpu/s_isnan.S: New file.
3539         * sysdeps/powerpc/powerpc64/power6x/fpu/s_isnan.S: New file.
3540
3541 2008-02-22  Alan Modra  <amodra@bigpond.net.au>
3542
3543         * elf/Makefile (tests): Substitute tests-vis-yes here.
3544         (tests-vis-yes): Delete.
3545         (modules-name, modules-vis-yes): Similarly.
3546
3547 2008-02-12  Pete Eberlein  <eberlein@us.ibm.com>
3548
3549         [BZ #4407]
3550         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
3551         Preserve sign in signgamp when x is zero.
3552
3553 2007-10-26  Steven Munroe  <sjmunroe@us.ibm.com>
3554
3555         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: New File.
3556         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.c: Removed.
3557         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: New File.
3558         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.c: Removed.
3559         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: New File.
3560         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: New File.
3561
3562 2008-04-09  Ulrich Drepper  <drepper@redhat.com>
3563
3564         [BZ #4314]
3565         * sysdeps/i386/i686/memcpy.S: Optimize copying of equally aligned
3566         buffers.
3567
3568         [BZ #5209]
3569         * sysdeps/unix/sysv/syscalls.list: The times syscall doesn't have
3570         a reserved error value.
3571
3572         * stdlib/tst-makecontext.c: Change parameter to cf to negative
3573         value to check for correct sign extension.
3574
3575         [BZ #5436]
3576         * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
3577         Copy 64-bit parameter values even though this is not required in
3578         the standard.
3579
3580         * sysdeps/unix/sysv/linux/x86_64/vfork.S (__vfork): Record return
3581         PC save.
3582
3583 2008-02-14  Daniel Jacobowitz  <dan@codesourcery.com>
3584
3585         * sysdeps/unix/sysv/linux/i386/vfork.S (__vfork): Record return
3586         PC save.
3587
3588 2008-04-09  Jakub Jelinek  <jakub@redhat.com>
3589
3590         * nss_files/files-XXX.c (_nss_files_getXXent_r): Restore saved errno.
3591
3592 2008-04-09  Ulrich Drepper  <drepper@redhat.com>
3593
3594         [BZ #5998]
3595         * libio/iofwrite.c (_IO_fwrite): Return correct count if flushing
3596         in line-buffered stream failed.
3597         * libio/iofwrite_u.c (fwrite_unlocked): Likewise.
3598
3599 2008-04-08  Ulrich Drepper  <drepper@redhat.com>
3600
3601         [BZ #6024]
3602         * scripts/abi-versions.awk: If the version specified by
3603         --enable-oldest-abi is older than the first version for this
3604         architecture, use the default version.
3605
3606         * locale/programs/ld-collate.c (collate_read): Ignore script lines
3607         as well when ignoring the whole category.
3608
3609 2008-04-07  Ulrich Drepper  <drepper@redhat.com>
3610
3611         [BZ #6042]
3612         * sysdeps/unix/sysv/linux/net/ethernet.h: Add a few more
3613         ETHERTYPE_* definitions.
3614         Patch partly by Aurelien Jarno <aurelien@aurel32.net>.
3615
3616 2008-04-07  Jakub Jelinek  <jakub@redhat.com>
3617
3618         * stdlib/mbtowc.c (__no_r_state): Remove.
3619         (mbtowc): New static state variable.  Use it instead of
3620         __no_r_state.
3621         * stdlib/wctomb.c (__no_r_state): Remove extern decl.
3622         (__wctomb_state): New hidden variable.
3623         (wctomb): Use __wctomb_state instead of __no_r_state.
3624         * debug/wctomb_chk.c (__no_r_state): Remove extern decl.
3625         (__wctomb_state): New extern decl.
3626         (__wctomb_chk): Use __wctomb_state instead of __no_r_state.
3627
3628 2008-04-07  Ulrich Drepper  <drepper@redhat.com>
3629
3630         [BZ #5475]
3631         * resolv/res_init.c: Handle scope IDs in resolv.conf.
3632
3633 2008-04-07  Jakub Jelinek  <jakub@redhat.com>
3634
3635         * malloc/mtrace.pl: Use $@ instead of $* to keep perl 5.10 quiet.
3636
3637 2008-04-06  Ulrich Drepper  <drepper@redhat.com>
3638
3639         * po/nl.po: Update from translation team.
3640
3641 2008-03-31  Ulrich Drepper  <drepper@redhat.com>
3642
3643         [BZ #6007]
3644         * string/strfry.c: Handle empty strings again.
3645
3646 2008-03-30  Ulrich Drepper  <drepper@redhat.com>
3647
3648         [BZ #5443]
3649         * intl/dcigettext.c (__dcigettext): Get reader lock for locale data
3650         before looking for translation.
3651         * locale/duplocale.c: Transform __libc_setlocale_lock into rwlock.
3652         * locale/freelocale.c: Likewise.
3653         * locale/newlocale.c: Likewise.
3654         * locale/setlocale.c: Likewise.
3655         Based partially on a patch by ryo@np.css.fujitsu.com.
3656
3657 2008-03-30  Jakub Jelinek  <jakub@redhat.com>
3658
3659         * intl/dcigettext.c (_nl_find_msg): Reread nconversions after
3660         acquiring wrlock.  Do conv_tab allocation while holding lock.
3661         * intl/Makefile: Add rules to build and run tst-gettext6.
3662         * intl/tst-gettext6.c: New test.
3663         * intl/tst-gettext6.sh: New file.
3664
3665 2008-03-30  Ulrich Drepper  <drepper@redhat.com>
3666
3667         * po/nl.po: Update from translation team.
3668
3669         * sysdeps/unix/opendir.c (__alloc_dir): If allocation fails for size
3670         provided through st_blksize, try the default size before giving up.
3671
3672 2008-03-29  Ulrich Drepper  <drepper@redhat.com>
3673
3674         * stdio-common/vfprintf.c (vfprintf): Correct overflow test.
3675
3676         [BZ #5939]
3677         * sysdeps/posix/tempname.c (__gen_tempname): Correct flag selection.
3678
3679         * posix/getopt.c (_getopt_internal_r): Remove old POSIX-demanded
3680         error message.  POSIX today does not require the messages to be in
3681         a specific form.  Suggested by Jim Meyering <jim@meyering.net>.
3682
3683         [BZ #5979]
3684         * sunrpc/auth_unix.c: Unify printed strings.
3685         * sunrpc/clnt_tcp.c: Likewise.
3686         * sunrpc/clnt_udp.c: Likewise.
3687         * sunrpc/clnt_unix.c: Likewise.
3688         * sunrpc/svc_tcp.c: Likewise.
3689         * sunrpc/svc_udp.c: Likewise.
3690         * sunrpc/svc_unix.c: Likewise.
3691         * sunrpc/xdr.c: Likewise.
3692         * sunrpc/xdr_array.c: Likewise.
3693         * sunrpc/xdr_rec.c: Likewise.
3694         * sunrpc/xdr_ref.c: Likewise.
3695         * locale/programs/ld-time.c (time_finish): Unify messages.
3696         * locale/programs/locfile.c (handle_copy): Fix typo.
3697         * nscd/nscd.c (options): Fix typo.
3698
3699         [BZ #5995]
3700         * stdlib/strtod_l.c: Use correct sign for result in one more
3701         underflow case.
3702         Patch by Eric Blake <ebb9@byu.net>.
3703
3704 2008-03-27  Jakub Jelinek  <jakub@redhat.com>
3705
3706         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Add open
3707         and creat system calls.
3708         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove open system
3709         call.
3710         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Remove open and creat
3711         system calls.
3712         * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Likewise.
3713         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
3714         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
3715
3716 2008-03-27  Ulrich Drepper  <drepper@redhat.com>
3717
3718         * sysdeps/unix/sysv/linux/bits/local_lim.h: Undefined ARG_MAX if
3719         <linux/limits.h> has defined it.
3720         * sysdeps/unix/sysv/linux/sys/param.h: Define NCARGS to the legacy
3721         ARG_MAX value and prevent ARG_MAX from being defined by the kernel
3722         headers.
3723         * sysdeps/unix/sysv/linux/sysconf.c: Define legacy_ARG_MAX and use
3724         it instead of ARG_MAX.
3725
3726 2008-03-25  Jakub Jelinek  <jakub@redhat.com>
3727
3728         * posix/gai.conf: Fix comment for scope nullbits.
3729         * sysdeps/posix/getaddrinfo.c (gaiconf_init): If /bits is not present,
3730         default to 128 bits for v4 mapped addresses.
3731
3732 2008-03-07  Martin Schwidefsky  <schwidefsky@de.ibm.com>
3733
3734         * sysdeps/s390/fpu/fegetenv.c (fegetenv): Remove PTRACE_PEEKUSER
3735         ptrace call to get the ieee_instruction_pointer from the kernel.
3736         * sysdeps/s390/fpu/fesetenv.c (fesetenv): Remove PTRACE_POKEUSER
3737         ptrace call to set the ieee_instructtion_pointer.
3738         * sysdeps/unix/sysv/linux/s390/sys/user.h (struct _user_regs_struct):
3739         Add comment that ieee_instruction_pointer is always 0.
3740
3741 2008-03-09  Andreas Jaeger  <aj@suse.de>
3742
3743         [BZ #5857]
3744         * sysdeps/ieee754/dbl-64/s_rint.c (__rint): Handle j0==18.
3745         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Likewise.
3746         Patch by Mark Elliott <mark.h.elliott@lmco.com>.
3747
3748         * math/libm-test.inc (nearbyint_test): Add new test cases from #5857.
3749         (rint_test): Likewise.
3750
3751 2008-03-24  Ulrich Drepper  <drepper@redhat.com>
3752
3753         * nis/nis_call.c (nis_server_cache_search): Save errno around stat
3754         call.
3755         (__nisfind_server): Similar for open readColdStartFile call.
3756         Patch partially by Jim Meyering.
3757         * nss/nss_files/files-XXX.c (_nss_files_getXXent_r): Save errno
3758         around internal_setent call.
3759
3760         * po/vi.po: New Vietnamese translation.
3761
3762         * sysdeps/unix/sysv/linux/adjtime.c: Correctly use
3763         ADJ_OFFSET_SS_READ.
3764
3765         * sysdeps/unix/sysv/linux/bits/sched.h: Add new CLONE_* flags,
3766         remove CLONE_STOPPED.
3767
3768 2008-02-10  Jim Meyering  <meyering@redhat.com>
3769
3770         Remove useless "if" before "free":
3771         * elf/ldconfig.c (parse_conf_include): Likewise.
3772         * gmon/gmon.c (weak_alias): Likewise.
3773         * iconv/gconv_conf.c (__gconv_get_path): Likewise.
3774         * inet/rcmd.c (__validuser2_sa): Likewise.
3775         * intl/bindtextdom.c (set_binding_values): Likewise.
3776         * intl/loadmsgcat.c (_nl_load_domain, _nl_unload_domain): Likewise.
3777         * libio/genops.c (save_for_backup): Likewise.
3778         * libio/wgenops.c (save_for_wbackup): Likewise.
3779         * locale/programs/ld-collate.c (collate_read): Likewise.
3780         * locale/programs/linereader.c (get_string): Likewise.
3781         * nis/nss_compat/compat-pwd.c (give_pwd_free): Likewise.
3782         * nis/nss_compat/compat-spwd.c (give_spwd_free): Likewise.
3783         * resolv/res_debug.c (do_section): Likewise.
3784         * sunrpc/xdr_sizeof.c (x_inline, xdr_sizeof): Likewise.
3785         * sysdeps/mach/hurd/if_index.c (libc_hidden_def): Likewise.
3786         * sysdeps/posix/sprofil.c (__sprofil): Likewise.
3787         * time/lc-time-cleanup.c (_nl_cleanup_time): Likewise.
3788         * time/tzset.c (tzset_internal): Likewise.
3789
3790 2008-03-18  Jakub Jelinek  <jakub@redhat.com>
3791
3792         * sysdeps/unix/sysv/linux/dl-sysdep.h: Use __ASSEMBLER__ instead
3793         of ASSEMBLER.
3794
3795 2008-03-11  Ulrich Drepper  <drepper@redhat.com>
3796
3797         [BZ #5903]
3798         * iconv/iconv_charmap.c (charmap_conversion): Pass name of output file
3799         not stream for output file.  Open output file here.
3800         * iconv/iconv_prog.c (process_lock): Take pointer to output stream
3801         and output file name.
3802         (process_fd): Likewise.
3803         (process_file): Likewise.
3804         (main): Adjust callers of changed functions.
3805         * iconv/iconv_prog.h: Adjust prototype.
3806
3807 2008-03-09  Andreas Jaeger  <aj@suse.de>
3808
3809         [BZ #5753]
3810         * sysdeps/ia64/ieee754.h: Use protected namespace
3811         __BIG_ENDIAN/__LITTLE_ENDIAN.
3812         * sysdeps/ieee754/ieee754.h: Likewise.
3813         Patch by Aurelien Jarno <aurelien@aurel32.net>.
3814
3815 2008-03-08  Roland McGrath  <roland@frob.com>
3816
3817         * hurd/hurdsig.c (_hurd_internal_post_signal): When normal rules would
3818         ignore a signal that came from a machine exception, treat it as a
3819         fatal core-dump signal instead.
3820         Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
3821
3822         * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler):
3823         Clear DF bit in thread state's eflags.
3824         Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
3825
3826 2008-03-08  Ulrich Drepper  <drepper@redhat.com>
3827
3828         [BZ #5774]
3829         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Consume closing brace
3830         of NAN(...) sequence.
3831         * stdlib/Makefile (tests): Add tst-strtod6.
3832         * stdlib/tst-strtod6.c: New file.
3833
3834         * inet/inet6_opt.c (inet6_opt_init): Check extlen for overflow.
3835
3836         [BZ #5762]
3837         * posix/getopt.c (_getopt_internal_r): Clarify error message by
3838         putting offending option character in quotes.  Clean up error
3839         messages.
3840         * po/be.po: Adjust msgstr in translation file.
3841         * po/bg.po: Likewise.
3842         * po/ca.po: Likewise.
3843         * po/cs.po: Likewise.
3844         * po/da.po: Likewise.
3845         * po/de.po: Likewise.
3846         * po/es.po: Likewise.
3847         * po/fr.po: Likewise.
3848         * po/hr.po: Likewise.
3849         * po/ko.po: Likewise.
3850         * po/nl.po: Likewise.
3851         * po/rw.po: Likewise.
3852         * po/sk.po: Likewise.
3853         * po/sv.po: Likewise.
3854         * po/tr.po: Likewise.
3855         * po/zh_CN.po: Likewise.
3856         * po/zh_TW.po: Likewise.
3857
3858         [BZ #5760]
3859         * inet/inet6_opt.c (inet6_opt_init): Fix ip6h_len computation.
3860         Patch by Roland Bless <roland@bless.de>.
3861
3862         * sysdeps/unix/sysv/linux/dl-sysdep.c: Avoid unnecessary code for
3863         .o file.
3864         * elf/Makefile (routines): Add dl-sysdep.
3865         (elide-routines.os): Likewise.
3866
3867 2008-03-07  Ulrich Drepper  <drepper@redhat.com>
3868
3869         [BZ #5786]
3870         * elf/dl-sysdep.c: Undefine ROUND after use.
3871         * sysdeps/generic/ldsodefs.h [HAVE_DL_DISCOVER_OSVERSION]
3872         (struct rtld_global_ro): Add _dl_tls_get_addr_soft element.
3873         * elf/rtld.c (rtld_global_ro): Initialize _dl_discover_osversion.
3874         * sysdeps/unix/sysv/linux/dl-osinfo.h: Move _dl_discover_osversion
3875         to ...
3876         * sysdeps/unix/sysv/linux/dl-sysdep.c: ...here.
3877         * sysdeps/unix/sysv/linux/dl-sysdep.h: Declare _dl_discover_osversion
3878         if necessary.
3879         * sysdeps/unix/sysv/linux/sysconf.c: Handle _SC_ARG_MAX here.
3880
3881         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Add
3882         _dl_tls_get_addr_soft element.
3883         * elf/rtld.c (rtld_global_ro): Initialize _dl_tls_get_addr_soft.
3884         * elf/Versions (ld): Don't export _dl_tls_get_addr_soft.
3885         * dlfcn/dlinfo.c (dlinfo_doit): Access dl_tls_get_addr_soft through
3886         GLRO.
3887         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise.
3888         * elf/dl-tls.c (_dl_tls_get_addr_soft): Use attribute_hidden instead
3889         of internal_function.
3890
3891         * stdlib/Makefile (aux): Add tens_in_limb.
3892         * stdlib/strtod_l.c: Move _tens_in_limb definition to...
3893         * stdlib/tens_in_limb.c: ...here.  New file.
3894
3895         [BZ #5778]
3896         * sysdeps/unix/sysv/linux/pathconf.h: Declare
3897         __statfs_chown_restricted.
3898         * sysdeps/unix/sysv/linux/fpathconf.c: Call __statfs_chown_restricted
3899         for _PC_CHOWN_RESTRICTED.
3900         * sysdeps/unix/sysv/linux/pathconf.c: Likewise.
3901         Implement __statfs_chown_restricted.
3902         * sysdeps/unix/sysv/linux/bits/posix_opt.h: Change
3903         _POSIX_CHOWN_RESTRICTED value to zero.
3904         * io/tst-fchownat.c: Correctly handle _POSIX_CHOWN_RESTRICTED
3905         defined to zero.
3906
3907         * sysdeps/x86_64/rtld-memset.c: New file.
3908
3909 2008-02-26  Harsha Jagasia  <harsha.jagasia@amd.com>
3910
3911         * sysdeps/x86_64/cacheinfo.c (NOT_USED_RIGHT_NOW): Remove ifdef guards.
3912
3913         * sysdeps/x86_64/memset.S: Rewrite non-SSE code path as tuned for AMD
3914         Barcelona machine.  Make default fall through branch of
3915         __x86_64_preferred_memory_instruction check as the integer code path.
3916
3917 2007-10-15  H.J. Lu  <hongjiu.lu@intel.com>
3918
3919         * sysdeps/x86_64/cacheinfo.c
3920         (__x86_64_preferred_memory_instruction): New variable.
3921         (init_cacheinfo): Initialize __x86_64_preferred_memory_instruction.
3922
3923         * sysdeps/x86_64/memset.S: Rewrite.
3924
3925 2008-03-04  Jakub Jelinek  <jakub@redhat.com>
3926
3927         * include/stdio.h (__asprintf_chk, __dprintf_chk,
3928         __obstack_printf_chk): New prototypes.
3929         (__vasprintf_chk, __vdprintf_chk,
3930         __obstack_vprintf_chk): Likewise.
3931         Add libc_hidden_proto.
3932         * libio/obprintf.c
3933         (_IO_obstack_jumps): No longer static, add attribute_hidden.
3934         * libio/bits/stdio-ldbl.h (__asprintf_chk, __dprintf_chk,
3935         __obstack_printf_chk, __vasprintf_chk, __vdprintf_chk,
3936         __obstack_vprintf_chk): Add __LDBL_REDIR_DECL.
3937         * libio/bits/stdio2.h (__asprintf_chk, __dprintf_chk,
3938         __obstack_printf_chk, __vasprintf_chk, __vdprintf_chk,
3939         __obstack_vprintf_chk): New prototypes.
3940         (asprintf, __asprintf, dprintf, obstack_printf, vasprintf, vdprintf,
3941         obstack_vprintf): New inlines.
3942         * debug/dprintf_chk.c: New file.
3943         * debug/vdprintf_chk.c: New file.
3944         * debug/asprintf_chk.c: New file.
3945         * debug/vasprintf_chk.c: New file.
3946         * debug/obprintf_chk.c: New file.
3947         * debug/tst-chk1.c (do_test): Add asprintf and obstack_printf tests.
3948         * debug/Versions (__asprintf_chk, __dprintf_chk, __obstack_printf_chk,
3949         __vasprintf_chk, __vdprintf_chk, __obstack_vprintf_chk): Export
3950         @@GLIBC_2.8.
3951         * debug/Makefile: Build asprintf_chk, vasprintf_chk, dprintf_chk,
3952         vdprintf_chk and obprintf_chk, set CFLAGS for them.
3953         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c (__nldbl___vasprintf_chk,
3954         __nldbl___vdprintf_chk, __nldbl___obstack_vprintf_chk): Add
3955         libc_hidden_proto.
3956         * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl___vasprintf_chk,
3957         __nldbl___vdprintf_chk, __nldbl___obstack_vprintf_chk): New prototypes.
3958         * sysdeps/ieee754/ldbl-opt/Versions (__nldbl___asprintf_chk,
3959         __nldbl___vasprintf_chk, __nldbl___dprintf_chk, __nldbl___vdprintf_chk,
3960         __nldbl___obstack_printf_chk, __nldbl___obstack_vprintf_chk): Export
3961         @@GLIBC_2.8.
3962         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add asprintf_chk,
3963         vasprintf_chk, dprintf_chk, vdprintf_chk, obstack_printf_chk and
3964         obstack_vprintf_chk.
3965         * sysdeps/ieee754/ldbl-opt/nldbl-obstack_vprintf_chk.c: New file.
3966         * sysdeps/ieee754/ldbl-opt/nldbl-dprintf_chk.c: New file.
3967         * sysdeps/ieee754/ldbl-opt/nldbl-obstack_printf_chk.c: New file.
3968         * sysdeps/ieee754/ldbl-opt/nldbl-asprintf_chk.c: New file.
3969         * sysdeps/ieee754/ldbl-opt/nldbl-vdprintf_chk.c: New file.
3970         * sysdeps/ieee754/ldbl-opt/nldbl-vasprintf_chk.c: New file.
3971
3972 2008-03-04  Ulrich Drepper  <drepper@redhat.com>
3973
3974         [BZ #5779]
3975         * misc/sys/queue.h: Add STAILQ_CONCAT and TAILQ_CONCAT definitions.
3976         Patch by Roy Marples <roy@marples.name>.
3977
3978         [BZ #5736]
3979         * malloc/malloc.c: Fix typo in comment.
3980
3981         [BZ #5627]
3982         * locale/iso-639.def: Add Shuswap.
3983
3984 2008-02-25  Jakub Jelinek  <jakub@redhat.com>
3985
3986         [BZ #5790]
3987         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr2_r): Don't
3988         overwrite *h_errnop/*errnop values from getanswer_r in case of
3989         failure.
3990
3991 2008-03-03  Ulrich Drepper  <drepper@redhat.com>
3992
3993         [BZ #5818]
3994         * nscd/connections.c (dbs): Add initializers for .suggested_module.
3995         (verify_persistent_db): Remove one unnecessary test and add a new one
3996         for bad configuration.
3997         (nscd_init): Improve error reported when persistent database cannot
3998         be reused.
3999         * nscd/nscd.h (DEFAULT_SUGGESTED_MODULE): Define.
4000         * nscd/nscd_conf.c (nscd_parse_file): Provide default values for
4001         .suggested_module and .max_db_size and case config file says the
4002         values are zero.
4003         * nscd/nscd_helper.c (get_mapping): Fail if hash table module is zero.
4004
4005         [BZ #5854]
4006         * nis/ypclnt.c (yp_order): Fix handling of return value of
4007         do_ypcall_tr call.
4008         Patch by Jeff Moyer <jmoyer@redhat.com>.
4009
4010         * po/fr.po: Update from translation team.
4011
4012 2008-02-22  Andreas Jaeger  <aj@suse.de>,
4013             Carlos O'Donell <carlos@systemhalted.org>
4014
4015         [BZ #5012]
4016         * FAQ.in: Describe why glibc needs to be compiled with
4017         optimization.
4018
4019 2008-02-19  Roland McGrath  <roland@redhat.com>
4020
4021         * elf/elf.h (SHT_GNU_ATTRIBUTES): New macro.
4022
4023 2008-02-15  Ulrich Drepper  <drepper@redhat.com>
4024
4025         [BZ #5737]
4026         * resolv/netdb.h: Make NI_MAXHOST and NI_MAXSERV available when
4027         __USE_MISC is defined.
4028
4029 2008-02-10  Ulrich Drepper  <drepper@redhat.com>
4030
4031         * sysdeps/unix/sysv/linux/sys/timerfd.h: New file.
4032         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers): Add
4033         sys/timerfd.h.
4034         * sysdeps/unix/sysv/linux/syscalls.list: Add timerfd_create,
4035         timerfd_gettime, timerfd_settime.
4036         * sysdeps/unix/sysv/linux/Versions: Add timerfd_create,
4037         timerfd_gettime, timerfd_settime for GLIBC_2.8.
4038
4039 2008-02-08  Roland McGrath  <roland@redhat.com>
4040
4041         * elf/elf.h (NT_PPC_SPE): New macro.
4042
4043 2008-02-06  Roland McGrath  <roland@redhat.com>
4044
4045         * Makerules ($(common-objpfx)sysd-rules):
4046         Depend on $(sysdep-makeconfigs).
4047
4048 2008-01-31  Roland McGrath  <roland@redhat.com>
4049
4050         [BZ #5442]
4051         * configure.in: Use -print-file-name if it yields a directory,
4052         for each of include and include-fixed.
4053         * configure: Regenerated.
4054
4055         * Makeconfig (sysd-rules-targets): New variable.
4056         * sysdeps/unix/make-syscalls.sh: Use it in the rules emitted.
4057         * sysdeps/unix/Makefile (omit-deps): Append variants for each target.
4058
4059 2008-01-30  Roland McGrath  <roland@redhat.com>
4060
4061         * manual/libc.texinfo: Update back-cover text.
4062
4063         * elf/elf.h (NT_386_TLS): New macro.
4064
4065 2008-01-29  Roland McGrath  <roland@redhat.com>
4066
4067         * Makeconfig (sysd-rules-patterns): New variable.
4068         * Makerules ($(common-objpfx)sysd-rules): Drive the loop from that.
4069         (check-inhibit-asm): New canned sequence, replaces ...
4070         (open-check-inhibit-asm, close-check-inhibit-asm): ... these, removed.
4071         * elf/rtld-Rules ($(objpfx)rtld-%.os): Use $(rtld-CPPFLAGS) in commands.
4072         (rtld-CPPFLAGS): Renamed from CPPFLAGS-rtld.
4073         (CFLAGS-rtld): Variable removed.
4074
4075 2008-01-24  Roland McGrath  <roland@redhat.com>
4076
4077         * configure.in: Let configure fragments set base_os.
4078         * configure: Regenerated.
4079
4080 2008-01-22  Ulrich Drepper  <drepper@redhat.com>
4081
4082         * po/ko.po: Update from translation team.
4083
4084 2008-01-12  H.J. Lu  <hongjiu.lu@intel.com>
4085
4086         * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Use short for fnstsw.
4087
4088 2008-01-12  Andreas Jaeger  <aj@suse.de>
4089
4090         [BZ #5040]
4091         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h (enum EPOLL_EVENTS):
4092         Add EPOLLRDHUP.
4093
4094 2008-01-20  Samuel Thibault  <samuel.thibault@ens-lyon.org>
4095
4096         * hurd/hurdsock.c (_hurd_socket_server): Return the standard
4097         error EAFNOSUPPORT rather than non-standard EPFNOSUPPORT.
4098         * sunrpc/bindrsvprt.c (bindresvport): Likewise.
4099
4100 2007-10-23  Alexandre Oliva  <aoliva@redhat.com>
4101
4102         * include/link.h (FORCED_DYNAMIC_TLS_OFFSET): Define.
4103         * elf/dl-close.c (_dl_close): Check for it.
4104         * elf/dl-reloc.c (CHECK_STATIC_TLS): Likewise.
4105         (_dl_allocate_static_tls): Likewise.
4106         * elf/dl-tls.c (_dl_allocate_tls_init): Likewise.
4107         (__tls_get_addr): Protect from race conditions in setting l_tls_offset
4108         to it.
4109         * elf/tst-tls16.c: New file.
4110         * elf/tst-tlsmod16a.c: New file.
4111         * elf/tst-tlsmod16b.c: New file.
4112         * elf/Makefile: Add rules to build and run tst-tls16.
4113
4114 2008-01-16  Ulrich Drepper  <drepper@redhat.com>
4115
4116         [BZ #5628]
4117         * bits/shm.h: Fix comment describing shmid_ds.
4118         * sysdeps/gnu/bits/shm.h: Likewise.
4119         * sysdeps/unix/sysv/linux/alpha/bits/shm.h: Likewise.
4120         * sysdeps/unix/sysv/linux/bits/shm.h: Likewise.
4121         * sysdeps/unix/sysv/linux/ia64/bits/shm.h: Likewise.
4122         * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
4123         * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
4124         * sysdeps/unix/sysv/linux/sh/bits/shm.h: Likewise.
4125         * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
4126         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Likewise.
4127         Patch by Hareesh Nagarajan <hareesh.nagarajan@gmail.com>.
4128
4129         [BZ #5607]
4130         * conform/data/fcntl.h-data: Fix posix_fadvise and posix_fallocate
4131         prototypes.
4132         * conform/data/limits.h-data: Adjust limits changed in v6 and add
4133         additional suffixes.
4134         * conform/data/mqueue.h-data: Fix typo in mq_curmsgs entry.
4135         Add optional functions mq_timedreceive and mq_timedsend.
4136         * conform/data/netdb.h-data: Add more AI_* and EAI_* constants.
4137         * conform/data/pthread.h-data: Fix prototype of
4138         pthread_condattr_setclock.  pthread_sigmask is not required in v6.
4139         * conform/data/semaphore.h-data: Allow time.h definitions.
4140         * conform/data/signal.h-data: Likewise.
4141         * conform/data/stdio.h-data: getw and putw are not required in v6.
4142         * conform/data/stdlib.h-data: Change setstate prototype.
4143         * conform/data/string.h-data: Fix strerror_r prototype.
4144         * conform/data/time.h-data: Fix typo in TIMER_ABSTIME definition.
4145         * conform/data/unistd.h-data: pthread_atfork not required in v6.
4146         Fix readlink prototype.
4147         * conform/data/netinet/in.h-data: Add const to in6addr_any and
4148         in6addr_loopback.
4149         * inet/netinet/in.h: Cleanup namespace.
4150         * posix/regex.h: Likewise.
4151         * resolv/netdb.h: Likewise.
4152         * sysdeps/unix/sysv/linux/bits/in.h: Likewise.
4153         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
4154         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
4155         * sysdeps/posix/getaddrinfo.c (default_labels): Adjust for change
4156         of names of in in6_addr.
4157         (default_precedence): Likewise.
4158         * sysdeps/unix/sysv/linux/cmsg_nxthdr.c: Include <stddef.h> for
4159         NULL definition.
4160
4161 2008-01-15  Ulrich Drepper  <drepper@redhat.com>
4162
4163         * conform/data/fmtmsg.h-data: Add missing allows.
4164         * conform/data/ftw.h-data: Likewise.
4165         * conform/data/inttypes.h-data: Likewise.
4166         * conform/data/math.h-data: Likewise.
4167         * conform/data/signal.h-data: Likewise.
4168         * conform/data/net/if.h-data: Likewise.
4169         * conform/data/netinet/in.h-data: Likewise.
4170         * conform/data/sys/socket.h-data: Likewise.
4171
4172         [BZ #5614]
4173         * string/bits/string2.h (__strtok_r_1c): Always update *__NEXTP.
4174         (__strtok_r): Simplify.
4175         * string/tester.c (test_strtok_r): Add test case for futile search
4176         with single-character seach string.
4177
4178 2008-01-12  Ulrich Drepper  <drepper@redhat.com>
4179
4180         * po/ko.po: Update from translation team.
4181
4182 2008-01-11  Andreas Jaeger  <aj@suse.de>
4183
4184         [BZ #5600]
4185         * sysdeps/unix/sysv/linux/sys/signalfd.h (struct
4186         signalfd_siginfo): Use 64-bit type for ssi_ptr to sync with Linux
4187         kernel header.
4188
4189 2008-01-10  Ulrich Drepper  <drepper@redhat.com>
4190
4191         * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Store result of
4192         native interface lookup in all the relevant places.
4193
4194 2008-01-10  Jakub Jelinek  <jakub@redhat.com>
4195             Ulrich Drepper  <drepper@redhat.com>
4196
4197         * sysdeps/posix/getaddrinfo.c (sort_results): Remove service_order
4198         field.  Use sockaddr_in6 for source_addr.
4199         (get_scope): Change type of parameter to sockaddr_in6.  Adjust.
4200         (match_prefix): Likewise.
4201         (get_label): Likewise.
4202         (get_precedence): Likewise.
4203         (rfc3484_sort): Change to use indirect access to results array.
4204         Adjust to use of sockaddr_in6.  Replace service_order test with
4205         simple index comparison.
4206         (getaddrinfo): Define order array.  Initialize it.  Don't initialize
4207         service_order field.  Adjust qsort_t calls.  Access sorted result
4208         array indirectly through order array.
4209         * posix/tst-rfc3484.c: Adjust for change of rfc3484_sort.
4210         * posix/tst-rfc3484-2.c: Likewise.
4211         * posix/tst-rfc3484-3.c: Likewise.
4212
4213 2008-01-09  Ulrich Drepper  <drepper@redhat.com>
4214
4215         [BZ #5541]
4216         * sunrpc/rpc_thread.c (__rpc_thread_destroy): Also free xports and
4217         pollfd structures.
4218         Patch by André Cruz.
4219
4220         [BZ #5545]
4221         * sunrpc/clnt_perr.c (clnt_sperror): Don't use fixed size buffer.
4222         (clnt_spcreateerror): Likewise.
4223
4224         [BZ #5553]
4225         * malloc/malloc.c (public_mALLOc): Set ar_ptr when trying main_arena.
4226         (public_mEMALIGn): Likewise.
4227         Patch mostly by Daniel Jacobowitz.
4228
4229 2008-01-09  Jakub Jelinek  <jakub@redhat.com>
4230
4231         * sysdeps/unix/sysv/linux/i386/makecontext.S (__makecontext): Avoid
4232         clobbering memory at or above uc_stack.ss_sp + uc_stack.ss_size.
4233         * stdlib/Makefile: Add rules to build and run tst-makecontext2.
4234         * stdlib/tst-makecontext2.c: New test.
4235
4236 2008-01-08  Jakub Jelinek  <jakub@redhat.com>
4237
4238         * iconv/loop.c (UPDATE_PARAMS): Define to empty statement if not
4239         defined.
4240         (REINIT_PARAMS): Likewise.  Undefine before end of file.
4241         (STANDARD_TO_LOOP_ERR_HANDLER): Use UPDATE_PARAMS before calling
4242         transliteration hooks and REINIT_PARAMS afterwards.
4243         * iconvdata/iso-2022-jp.c (BODY): Use a separate variable for
4244         status.
4245         (REINIT_PARAMS): Define.
4246         * iconvdata/ibm1364.c (REINIT_PARAMS): Likewise.
4247         * iconvdata/ibm930.c (REINIT_PARAMS): Likewise.
4248         * iconvdata/ibm933.c (REINIT_PARAMS): Likewise.
4249         * iconvdata/ibm935.c (REINIT_PARAMS): Likewise.
4250         * iconvdata/ibm937.c (REINIT_PARAMS): Likewise.
4251         * iconvdata/ibm939.c (REINIT_PARAMS): Likewise.
4252         * iconvdata/iso-2022-cn.c (REINIT_PARAMS): Likewise.
4253         * iconvdata/iso-2022-cn-ext.c (REINIT_PARAMS): Likewise.
4254         * iconvdata/iso-2022-jp-3.c (REINIT_PARAMS): Likewise.
4255         * iconvdata/iso-2022-kr.c (REINIT_PARAMS): Likewise.
4256         * iconvdata/Makefile: Add rules to build and run tst-iconv7.c.
4257         * iconvdata/tst-iconv7.c: New test.
4258
4259 2008-01-07  Ulrich Drepper  <drepper@redhat.com>
4260
4261         * libio/stdio.h (vscanf): Fix definition for loser compilers.
4262
4263 2008-01-05  Jakub Jelinek  <jakub@redhat.com>
4264
4265         [BZ #5112]
4266         * nscd/connections.c (restart): Fix condition.
4267
4268 2008-01-03  Jakub Jelinek  <jakub@redhat.com>
4269
4270         * ctype/ctype.h (__ctype_b_loc, __ctype_tolower_loc,
4271         __ctype_toupper_loc): Add __THROW.
4272
4273 2008-01-02  Ulrich Drepper  <drepper@redhat.com>
4274
4275         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Fix
4276         recognition of interface family.
4277
4278         * posix/getconf.c: Update copyright year.
4279         * nss/getent.c: Likewise.
4280         * iconv/iconvconfig.c: Likewise.
4281         * iconv/iconv_prog.c: Likewise.
4282         * elf/ldconfig.c: Likewise.
4283         * catgets/gencat.c: Likewise.
4284         * csu/version.c: Likewise.
4285         * elf/ldd.bash.in: Likewise.
4286         * elf/sprof.c (print_version): Likewise.
4287         * locale/programs/locale.c: Likewise.
4288         * locale/programs/localedef.c: Likewise.
4289         * nscd/nscd.c (print_version): Likewise.
4290         * debug/xtrace.sh: Likewise.
4291         * malloc/memusage.sh: Likewise.
4292         * malloc/mtrace.pl: Likewise.
4293         * debug/catchsegv.sh: Likewise.
4294
4295 2007-12-26  Ulrich Drepper  <drepper@redhat.com>
4296
4297         * nss/nsswitch.c (__nss_lookup): Actually use alternative name in
4298         second lookup.
4299
4300 2007-12-23  Ulrich Drepper  <drepper@redhat.com>
4301
4302         * sysdeps/x86_64/cacheinfo.c (intel_02_known): New entry 0x3f.
4303         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
4304
4305 2007-12-17  Roland McGrath  <roland@redhat.com>
4306
4307         * inet/ether_line.c (ether_line): Remove unused variable.
4308
4309 2007-12-17  Samuel Thibault  <samuel.thibault@ens-lyon.org>
4310
4311         * login/forkpty.c (forkpty): Add const qualifier to parameters termp
4312         and winp.
4313         * login/openpty.c (openpty): Likewise.
4314         * login/pty.h (openpty, forkpty): Likewise.
4315         * manual/terminal.texi (openpty, forkpty): Likewise.
4316
4317 2007-12-17  Ulrich Drepper  <drepper@redhat.com>
4318
4319         * malloc/malloc.c (public_cALLOc): For arenas other than
4320         main_arena, count all bytes inside the mprotect_size range of the
4321         heap as uninitialized.
4322
4323 2007-12-16  Ulrich Drepper  <drepper@redhat.com>
4324
4325         * elf/tst-execstack.c (do_test): Don't fail if SELinux forbids
4326         executable stacks.
4327
4328         * malloc/malloc.c (public_mTRIm): Iterate over all arenas and call
4329         mTRIm for all of them.
4330         (mTRIm): Additionally iterate over all free blocks and use madvise
4331         to free memory for all those blocks which contain at least one
4332         memory page.
4333         * malloc/tst-trim1.c: New file.
4334         * malloc/Makefile (tests): Add tst-trim1.
4335
4336         * malloc/malloc.c (do_check_malloc_state): Minimal cleanups.
4337
4338 2007-12-14  Ulrich Drepper  <drepper@redhat.com>
4339
4340         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INTERNAL_SYSCALL_ERROR_P):
4341         First cast argument to long
4342         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_gettimeofday):
4343         Return long.
4344         (__vdso_clock_gettime): Likewise.
4345         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Functions
4346         return long.
4347
4348 2007-12-13  Ulrich Drepper  <drepper@redhat.com>
4349
4350         * locale/nl_langinfo.c (nl_langinfo): Just call __nl_langinfo_l.
4351         * locale/nl_langinfo_l.c: Real implementation, copied from
4352         nl_langinfo.c.
4353         * include/langinfo.h: Add libc_hidden_proto for __nl_langinfo_l.
4354
4355 2007-12-01  Jim Meyering  <meyering@redhat.com>
4356
4357         * posix/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
4358         that would inhibit utf8-optimization of a regexp containing line-
4359         or buffer-anchors, e.g., `^', `$'.
4360
4361 2007-12-12  Ulrich Drepper  <drepper@redhat.com>
4362
4363         * time/bug-getdate1.c (do_test): Don't use century values which
4364         aren't valid on 32-bit systems.
4365
4366 2007-12-12  Jakub Jelinek  <jakub@redhat.com>
4367
4368         * sysdeps/i386/i486/bits/string.h (memmove): Define as macro.
4369         (memmove): Rename to __memmove_g, with __asm__ ("memmove").
4370         * sysdeps/s390/bits/string.h (__strlen_g, __strcpy_g, __strncpy_g,
4371         __strcat_g, __strncat_g): Add __asm__.
4372
4373 2007-12-12  Ulrich Drepper  <drepper@redhat.com>
4374
4375         [BZ #5477]
4376         * io/fchmodat.c: Fix typo in stub_warning use.
4377         Patch by Petr Salinger.
4378
4379 2007-12-11  Ulrich Drepper  <drepper@redhat.com>
4380
4381         * iconvdata/hp-thai8.c: New file.
4382         * iconvdata/Makefile: Add rules for hp-thai8.c.
4383         * iconvdata/tst-tables.sh: Add entry for HP-THAI8.
4384         * iconvdata/gconv-modules: Likewise.
4385
4386         [BZ #5464]
4387         * iconvdata/hp-greek8.c: New file.
4388         * iconvdata/Makefile: Add rules for hp-greek8.c.
4389         * iconvdata/tst-tables.sh: Add entry for HP-GREEK8.
4390         * iconvdata/gconv-modules: Likewise.
4391
4392         [BZ #5463]
4393         * iconvdata/hp-turkish8.c: New file.
4394         * iconvdata/Makefile: Add rules for hp-turkish8.c.
4395         * iconvdata/tst-tables.sh: Add entry for HP-TURKISH8.
4396         * iconvdata/gconv-modules: Likewise.
4397
4398         * malloc/arena.c (grow_heap): Split out code to shrink heap into...
4399         (shrink_heap): ... this new function.
4400         (heap_trim): Call shrink_heap instead of grow_heap.
4401
4402         * malloc/malloc.c (_int_malloc): sYSMALLOc might fail, in this
4403         case don't call alloc_perturb.
4404
4405 2007-12-10  Ulrich Drepper  <drepper@redhat.com>
4406
4407         * sysdeps/unix/sysv/linux/adjtime.c: Use ADJ_OFFSET_SS_READ if
4408         possible.
4409         * sysdeps/unix/sysv/linux/kernel-features.h
4410         (__ASSUME_ADJ_OFFSET_SS_READ): Define for 2.6.24.
4411         * sysdeps/unix/sysv/linux/sys/timex.h (ADJ_OFFSET_SS_READ): Define.
4412
4413 2007-12-08  Ulrich Drepper  <drepper@redhat.com>
4414
4415         [BZ #5424]
4416         * stdio-common/vfprintf.c: Do not overflow when adding to done.
4417         * stdio-common/Makefile (tests): Add bug22.
4418         * stdio-common/bug22.c: New file.
4419
4420         [BZ #5451]
4421         * time/getdate.c: Fix filling in default values.
4422         * time/bug-getdate1.c: New file.
4423         * time/Makefile: Add rules to build and run bug-getdate1.
4424
4425         * iconvdata/ebcdic-is-friss.c: Use 8bit-gap instead of 8bit-generic.
4426         * iconvdata/ebcdic-es.c: Likewise.
4427         * iconvdata/ebcdic-es-a.c: Likewise.
4428         * iconvdata/ebcdic-uk.c: Likewise.
4429         * iconvdata/iso8859-16.c: Likewise.
4430         * iconvdata/viscii.c: Likewise.
4431         * iconvdata/iso8859-9e.c: Likewise.
4432         * iconvdata/Makefile: Adjust appropriately.
4433
4434         [BZ #5428]
4435         * wcsmbs/wchar.h: Unconditionally undefine __need_mbstate and
4436         __need_wint_t.
4437
4438 2007-12-07  Ulrich Drepper  <drepper@redhat.com>
4439
4440         [BZ #5427]
4441         * iconvdata/hp-roman9.c: New file.
4442         * iconvdata/Makefile: Add rules for hp-roman9.c.
4443         * iconvdata/tst-tables.sh: Add HP-ROMAN9.
4444         * iconvdata/gconv-modules: Likewise.
4445
4446         * iconvdata/hp-roman8.c: Use 8bit-gap instead of 8bit-generic.
4447         * iconvdata/Makefile: Adjust appropriately.
4448
4449         [BZ #5441]
4450         * stdio-common/vfscanf.c (_IO_vfwscanf): Don't free ptrs_to_free
4451         structure, it's allocated with alloca.
4452         * stdio-common/Makefile (tests): Add bug21.
4453         * stdio-common/bug21.c: New file.
4454
4455 2007-12-06  Aurelien Jarno  <aurelien@aurel32.net>
4456
4457         [BZ #5452]
4458         * sysdeps/unix/sysv/linux/bits/sched.h: Use __extension__
4459         keyword for gcc's braced-groups.
4460
4461 2007-12-07  Ulrich Drepper  <drepper@redhat.com>
4462
4463         [BZ #5454]
4464         * inet/ether_line.c: Strip hostname of whitespaces.
4465         * inet/Makefile (tests): Add tst-ether_line.
4466         * inet/tst-ether_line.c: New file.
4467
4468 2007-12-03  Ulrich Drepper  <drepper@redhat.com>
4469
4470         [BZ #5439]
4471         * sysdeps/unix/sysv/linux/sys/signalfd.h: Fix use of __nonnull.
4472
4473         [BZ #5435]
4474         * sysdeps/unix/sysv/linux/i386/makecontext.S: Align stack.
4475
4476         * stdlib/tst-setcontext.c: Catch the case where the links gets
4477         messed up and we do not reach main again.
4478
4479         * po/ca.po: Update from translation team.
4480
4481 2007-11-26  Ulrich Drepper  <drepper@redhat.com>
4482
4483         * posix/unistd.h: Declare fsync also for __USE_XOPEN2K.
4484         * posix/regex.h (REG_ENOSYS): Likewise.
4485         * wcsmbs/wchar.h: Define __need_file also for __USE_XOPEN2K.
4486
4487 2007-11-25  Ulrich Drepper  <drepper@redhat.com>
4488
4489         * nscd/nscd.h (MAX_STACK_USE): Define.
4490         * nscd/mem.c (MAX_STACK_USE): Remove definition here.
4491         (gc): Initialize stack_used based on allocation in prune_cache.
4492         * nscd/cache.c (prune_cache): Use heap for mark array if necessary.
4493         Clear array before use.
4494
4495         * nscd/aicache.c (addhstaiX): Update statistics counter in case
4496         memory allocation failed.
4497         * nscd/hstcache.c (cache_addhst): Likewise.
4498         * nscd/grpcache.c (cache_addgr): Likewise.
4499         * nscd/servicescache.c (cache_addserv): Likewise.
4500         * nscd/pwdcache.c (cache_addpw): Likewise.
4501         * nscd/initgrcache.c (addinitgroupsX): Likewise.
4502
4503 2007-11-23  Ulrich Drepper  <drepper@redhat.com>
4504
4505         * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Add open
4506         and creat system calls.
4507
4508         * sysdeps/unix/sysv/linux/check_native.c: Include <asm/types.h>.
4509
4510 2007-11-23  Martin Schwidefsky  <schwidefsky@de.ibm.com>
4511
4512         * sysdeps/unix/sysv/linux/Makefile [subdir=inet] (sysdep_headers):
4513         Add netiucv/iucv.h.
4514         * sysdeps/unix/sysv/linux/netiucv/iucv.h: New file.
4515         * sysdeps/unix/sysv/linux/opensock.c (__opensock): Add AF_IUCV
4516         protocol.
4517         * sysdeps/unix/sysv/linux/sa_len.c (__libc_sa_len): Likewise.
4518         * sysdeps/unix/sysv/linux/s390/opensock.c: New file.
4519         * sysdeps/unix/sysv/linux/s390/sa_len.c: New file.
4520
4521 2007-11-22  Martin Schwidefsky  <schwidefsky@de.ibm.com>
4522
4523         * sysdeps/s390/bits/string.h (strlen, strcpy, strncpy, strcat,
4524         strncat): Define as macros to avoid compile errors.
4525
4526         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list:  Add open and
4527         creat entries.
4528
4529 2007-11-22  Ulrich Drepper  <drepper@redhat.com>
4530
4531         [BZ #5382]
4532         * nscd/nscd.h (NSCD_THREAD_STACKSIZE): Define.
4533         * nscd/connections.c (start_threads): Use NSCD_THREAD_STACKSIZE.
4534         * nscd/mem.c (gc): Don't allocate arrays on the stack if they can
4535         overflow it.
4536         Partially based on a patch by Petr Baudis <pasky@suse.cz>.
4537
4538         * sysdeps/unix/sysv/linux/nscd_setup_thread.c (setup_thread):
4539         Return zero in case the thread library is not NPTL.
4540
4541         [BZ #5375]
4542         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix locking when
4543         initializing interface list.
4544
4545         [BZ #5378]
4546         * nis/nss_compat/compat-initgroups.c (getgrent_next_nss): Don't
4547         use result of nss_getgrgid_r if nothing was found.  For other
4548         error return with a failure.
4549         Partially based on a patch by Petr Baudis <pasky@suse.cz>.
4550
4551         * locale/programs/ld-collate.c (collate_read): Fix loop to match
4552         macro name.
4553
4554 2007-11-19  Ulrich Drepper  <drepper@redhat.com>
4555
4556         * sysdeps/posix/getaddrinfo.c (defaults_scopes, scopes): New variables.
4557         (get_scope): For IPv4 scope, use scopes table.
4558         (fini): Free scopes table if necessary.
4559         (free_scopelist): New function.
4560         (scopecmp): New function.
4561         (gaiconf_init): Also handle scopev4 entries.
4562         * posix/tst-rfc3484.c (do_test): Initialize scopes.
4563         * posix/tst-rfc3484-2.c (do_test): Likewise.
4564         * posix/gai.conf: Document scopev4 defaults.
4565         * posix/Makefile (tests): Add tst-rfc3484-3.
4566         * posix/tst-rfc3484-3.c: New file.
4567
4568         * sysdeps/posix/getaddrinfo.c (default_labels): Describe entry for
4569         Teredo tunnels.
4570         * posix/gai.conf: Update for current default tables.
4571
4572 2007-11-19  Ulrich Drepper  <drepper@redhat.com>
4573
4574         * po/tr.po: Update from translation team.
4575
4576 2007-11-18  Roland McGrath  <roland@frob.com>
4577
4578         * manual/arith.texi (Remainder Functions): Spelling fix.
4579         From Shaun Silk <genix@mysoul.com.au>.
4580
4581         * sysdeps/mach/hurd/bits/fcntl.h (O_CLOEXEC): Fix value.
4582
4583 2007-11-17  Ulrich Drepper  <drepper@redhat.com>
4584
4585         * po/zh_CN.po: Update from translation team.
4586
4587         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
4588         Add sys/signalfd.h and sys/eventfd.h.
4589
4590 2007-11-15  Bruno Haible  <bruno@clisp.org>
4591
4592         [BZ #5346]
4593         * intl/dcigettext.c (struct known_translation_t): Turn msgid into a
4594         union.
4595         (transcmp): Use the appropriate part of s1->msgid and s2->msgid.
4596         (DCIGETTEXT): Change the allocation of the 'search' variable so that
4597         it needs only fixed stack space. Delay the initialization of
4598         msgid_len until it is needed.
4599
4600 2007-11-15  Andreas Jaeger  <aj@suse.de>
4601
4602         * sysdeps/ieee754/dbl-64/sincos.tbl: Fix size of union.
4603         Reported by Christoph Quirin Lauter <christoph.lauter@ens-lyon.fr>.
4604
4605 2007-11-15  Ulrich Drepper  <drepper@redhat.com>
4606
4607         * po/ko.po: Update from translation team.
4608
4609 2007-11-14  Ulrich Drepper  <drepper@redhat.com>
4610
4611         * sysdeps/unix/sysv/linux/check_native.c (__check_native): Simplify
4612         significantly.  The device type is also part of the ifinfomsg data.
4613
4614         * po/sv.po: Update from translation team.
4615         * po/nl.po: Likewise.
4616
4617         * nscd/cache.c (prune_cache): If cache is empty, instruct caller
4618         to wake up in 24 hours.
4619
4620         * nscd/gai.c (__ioctl): Define.  Include check_native.c.
4621
4622 2007-11-13  Ulrich Drepper  <drepper@redhat.com>
4623
4624         * po/cs.po: Update from translation team.
4625         * po/pl.po: Likewise.
4626
4627         * include/ifaddrs.h: Remove in6ai_temporary.
4628         (struct in6addrinfo): Add index element.
4629         Declare __check_native.
4630         * inet/Makefile (aux): Add check_native.
4631         * sysdeps/unix/sysv/linux/check_native.c: New file.
4632         * sysdeps/unix/sysv/linux/check_pf.c: No need to recognize
4633         IFA_F_TEMPORARY.  Pass back ifa_index.
4634         * sysdeps/posix/getaddrinfo.c: Remove netlink compatibility code.
4635         (rfc3484_sort): Add new parameter.  Implement rule 7 correctly:
4636         call __check_native if necessary.
4637         (getaddrinfo): Fill in index field.  Use qsort_r instead of qsort
4638         to sort addresses.  Pass information about the results.
4639         * posix/tst-rfc3484.c: Adjust for addition of index field and change
4640         of rfc3484_sort interface.
4641         * posix/tst-rfc3484-2.c: Likewise.
4642
4643         * stdlib/stdlib.h: Define __compar_d_fn_t.  Declare qsort_r.
4644         * include/stdlib.h: Add hidden_proto for qsort_t and adjust protoype
4645         for _quicksort.
4646         * stdlib/msort.c (qsort): Now a wrapper around qsort_r.
4647         (qsort_r): Renamed from qsort.  Take additional parameter and pass it
4648         on as third parameter to compare function and _quicksort.
4649         * stdlib/qsort.c (_quicksort): Take additional parameter and pass on
4650         to the compare function.
4651         * stdlib/Versions [libc] (GLIBC_2.8): Add qsort_r.
4652         * Versions.def: Add GLIBC_2.8 for libc.
4653
4654         * posix/tst-rfc3484.c: Adjust for addition of prefixlen field.
4655         * posix/tst-rfc3484-2.c: Likewise.
4656
4657         * include/kernel-features.h: Moved to...
4658         * sysdeps/mach/hurd/kernel-features.h: ...here.
4659
4660 2007-09-13  H.J. Lu  <hongjiu.lu@intel.com>
4661
4662         * sysdeps/i386/i586/memcpy_chk.S: New file.
4663         * sysdeps/i386/i586/mempcpy_chk.S: Likewise.
4664         * sysdeps/i386/i586/memset_chk.S: Likewise.
4665
4666 2007-11-12  Ulrich Drepper  <drepper@redhat.com>
4667
4668         * include/ifaddrs.c (struct in6addrinfo): Add prefixlen field.
4669         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Always return
4670         list of interfaces.  Also store prefix length.
4671         * sysdeps/posix/getaddrinfo.c (sort_result): Add prefixlen element.
4672         (rfc3484_sort): In rule 9, for IPv4 addresses count only matching
4673         prefix if source and destination address are in the same subnet.
4674         (getaddrinfo): Always call __check_pf.  Fill in prefixlen field.
4675         Always look for matching record in in6ai list.
4676         Correct source_addr_len value for IPv6->IPv4 converted records.
4677
4678 2007-11-11  Roland McGrath  <roland@frob.com>
4679
4680         * include/kernel-features.h: New file.
4681
4682 2007-11-10  Ulrich Drepper  <drepper@redhat.com>
4683
4684         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Avoid unnecessary
4685         complications for 64-bit platforms.
4686
4687         * sysdeps/unix/sysv/linux/open64.c: Move __open64_2 implementation to..
4688         * sysdeps/unix/sysv/linux/open64_2.c: ...here.  New file.
4689         * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines): Add
4690         open64_2.
4691         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Add open and creat
4692         entries.
4693         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
4694         * sysdeps/wordsize-64/alphasort.c: New file.
4695         * sysdeps/wordsize-64/alphasort64.c: New file.
4696         * sysdeps/wordsize-64/fseeko.c: New file.
4697         * sysdeps/wordsize-64/fseeko64.c: New file.
4698         * sysdeps/wordsize-64/ftello.c: New file.
4699         * sysdeps/wordsize-64/ftello64.c: New file.
4700         * sysdeps/wordsize-64/ftw.c: New file.
4701         * sysdeps/wordsize-64/ftw64.c: New file.
4702         * sysdeps/wordsize-64/iofgetpos.c: New file.
4703         * sysdeps/wordsize-64/iofgetpos64.c: New file.
4704         * sysdeps/wordsize-64/iofopen.c: New file.
4705         * sysdeps/wordsize-64/iofopen64.c: New file.
4706         * sysdeps/wordsize-64/iofsetpos.c: New file.
4707         * sysdeps/wordsize-64/iofsetpos64.c: New file.
4708         * sysdeps/wordsize-64/lockf.c: New file.
4709         * sysdeps/wordsize-64/lockf64.c: New file.
4710         * sysdeps/wordsize-64/mkostemp.c: New file.
4711         * sysdeps/wordsize-64/mkostemp64.c: New file.
4712         * sysdeps/wordsize-64/mkstemp.c: New file.
4713         * sysdeps/wordsize-64/mkstemp64.c: New file.
4714         * sysdeps/wordsize-64/scandir.c: New file.
4715         * sysdeps/wordsize-64/scandir64.c: New file.
4716         * sysdeps/wordsize-64/tmpfile.c: New file.
4717         * sysdeps/wordsize-64/tmpfile64.c: New file.
4718         * sysdeps/wordsize-64/versionsort.c: New file.
4719         * sysdeps/wordsize-64/versionsort64.c: New file.
4720         * sysdeps/unix/sysv/linux/wordsize-64/aio_read.c: New file.
4721         * sysdeps/unix/sysv/linux/wordsize-64/aio_read64.c: New file.
4722         * sysdeps/unix/sysv/linux/wordsize-64/aio_write.c: New file.
4723         * sysdeps/unix/sysv/linux/wordsize-64/aio_write64.c: New file.
4724         * sysdeps/unix/sysv/linux/wordsize-64/creat64.c: New file.
4725         * sysdeps/unix/sysv/linux/wordsize-64/getdirentries.c: New file.
4726         * sysdeps/unix/sysv/linux/wordsize-64/getdirentries64.c: New file.
4727         * sysdeps/unix/sysv/linux/wordsize-64/lio_listio.c: New file.
4728         * sysdeps/unix/sysv/linux/wordsize-64/lio_listio64.c: New file.
4729         * sysdeps/unix/sysv/linux/wordsize-64/open64.c: New file.
4730         * sysdeps/unix/sysv/linux/wordsize-64/openat.c: New file.
4731         * sysdeps/unix/sysv/linux/wordsize-64/openat64.c: New file.
4732
4733         * crypt/sha256-crypt.c: Fix a comment.
4734         * crypt/sha512-crypt.c: Likewise.
4735
4736 2007-11-07  H.J. Lu  <hongjiu.lu@intel.com>
4737
4738         * sysdeps/x86_64/memset.S: Add sfence after movnti.
4739
4740 2007-11-07  Ulrich Drepper  <drepper@redhat.com>
4741
4742         [BZ #5277]
4743         * iconv/loop.c (STANDARD_TO_LOOP_ERR_HANDLER): If conversion failed
4744         because output buffer is too small break, don't loop.
4745         * iconvdata/Makefile (tests): Add bug-iconv6.
4746         * iconvdata/bug-iconv6.c: New file.
4747
4748 2007-11-06  Ulrich Drepper  <drepper@redhat.com>
4749
4750         * stdio-common/vfprintf.c (vfprintf): Compute necessary buffer size
4751         with size_t type.
4752         * stdio-common/printf_fp.c (__print_fp): Change chars_needed type to
4753         size_t.  Add casts where needed.
4754
4755         * nscd/selinux.c (nscd_request_avc_has_perm): When compiled with
4756         old headers, don't call avc_has_perm if we don't have the
4757         permission information.
4758
4759 2007-11-05  Daniel Jacobowitz  <dan@codesourcery.com>
4760
4761         * elf/rtld.c (dl_main): Use the page size to find the map start.
4762
4763 2007-11-05  Ulrich Drepper  <drepper@redhat.com>
4764
4765         * time/tzfile.c (__tzfile_read): Fix check for version 0 data files.
4766         Patch by Szymon Siwek <sls@poczta.wp.pl>.
4767
4768         * nscd/aicache.c (addhstaiX): Check herrno after IPv4 lookup only
4769         when the lookup call failed.
4770
4771         * nscd/nscd.h (struct database_dyn): Rename prunelock to prune_lock.
4772         Add prune_cond and wakeup_time.
4773         (CACHE_PRUNE_INTERNAL): Define.
4774         Update declarations of prune_cache and setup_thread.
4775         * nscd/connections.c (dbs): Update initializers.
4776         (CACHE_PRUNE_INTERNAL): Moved to nscd.h.
4777         (nscd_init): Default number of threads is now 4.
4778         (invalidate_cache): Take lock before calling prune_cache.
4779         (handle_request): If SELinux forbids the request, say so.
4780         (readylist_cond): Use static initializer.
4781         (nscd_run_prune): New function.  Used only by pruning threads.
4782         (nscd_run_worder): Renamed from nscd_run.  Remove support for pruning
4783         here.
4784         (fd_ready): Update nscd_run reference.
4785         (start_threads): No need to initialize readylist_cond.
4786         Start pruning threads separately.
4787         * nscd/nscd_setup_thread.c: Change return value type to int and always
4788         return 0.
4789         * sysdeps/unix/sysv/linux/nscd_setup_thread.c: Change return value type
4790         to int and return nonzero value if we can use the TID address hack.
4791         * nscd/cache.c (cache_add): If next wakeup time of cleanup thread for
4792         the database is later than the new entry's timeout, update the
4793         wakeup time and wake the cleanup thread.
4794         (prune_cache): Return seconds the next entry in the database is still
4795         valid.  Remove locking for pruning here.
4796         * nscd/nscd.conf: Document default number of threads.
4797
4798 2007-10-31  Ulrich Drepper  <drepper@redhat.com>
4799
4800         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Make sure
4801         stack is properly aligned for the target function.
4802         Correct unwind info.
4803
4804         * elf/rtld.c (dl_main): Initialize stack and pointer guard early
4805         when using auditing libraries.
4806
4807 2007-10-29  Ulrich Drepper  <drepper@redhat.com>
4808
4809         * resolv/Versions [libresolv] (GLIBC_PRIVATE): Add
4810         _nss_dns_getnetbyaddr2_r.
4811         * resolv/nss_dns/dns-host.c: Define _nss_dns_getnetbyaddr2_r.  Pass
4812         extra parameter to getanswer_r.
4813         (_nss_dns_getnetbyaddr_r): Now a wrapper around
4814         _nss_dns_getnetbyaddr2_r.
4815
4816         * nscd/Makefile (nscd-modules): Replace gethstbynm2_r with
4817         gethstbynm3_r.
4818         * nscd/gethstbynm2_r.c: Remove.
4819         * nscd/gethstbynm3_r.c: New file.
4820         * nscd/aicache.c (addhstaiX): Use __gethostbyaddr2_r instead of
4821         __gethostbyaddr_r.
4822         * nscd/gethstbyad_r.c: Generate __gethostbyaddr2_r function.  Define
4823         __gethostbyaddr_r compatibility wrapper.
4824         * nscd/hstcache.c (cache_addhst): Add ttl parameter.  Use it when
4825         determining timeout of entry.
4826         (lookup): Take new parameter and pass it to __gethostbyname3_r and
4827         __gethostbyaddr2_r.
4828         (addhstbyX): Pass reference to variable for TTL to lookup and
4829         cache_addhst.
4830         * nss/Versions [glibc] (GLIBC_PRIVATE): Export __nss_passwd_lookup2,
4831         __nss_group_lookup2, __nss_hosts_lookup2, __nss_services_lookup2,
4832         and __nss_next2.  Remove __nss_services_lookup.
4833         * nss/XXX-lookup.c: Name function now *_lookup2.  Add new parameter.
4834         Add compat wrapper.
4835         * nss/getXXbyYY_r.c: Changes to call new *_lookup2 functions and
4836         __nss_next2.
4837         * nss/getXXent_r.c: Likewise.
4838         * nss/getnssent_r.c: Likewise.
4839         * nss/nsswitch.c (__nss_lookup): Add new parameter.  If first function
4840         does not exist in module, try the optional second name.
4841         (__nss_next2): New function.
4842         (__nss_next): Now wrapper around __nss_next2.
4843         * nss/nsswitch.h: Adjust __nss_lookup prototype.
4844         Declare __nss_next2.
4845         Adjust definition of db_lookup_function type.
4846         * nss/service-lookup.c: Define NO_COMPAT.
4847         * include/netdb.h: Declare __gethostbyaddr2_r and __gethostbyname3_r.
4848         * inet/ether_hton.c: Use __nss_next2 instead of __nss_next.
4849         * inet/ether_ntoh.c: Likewise.
4850         * sunrpc/netname.c: Likewise.
4851         * sunrpc/publickey.c: Likewise.
4852         * inet/getnetgrent.c: Likewise.  Adjust calls to __nss_lookup.
4853         * inet/gethstbyad_r.c (DB_LOOKUP_FCT): Change to __nss_hosts_lookup2.
4854         * inet/gethstbynm2_r.c (DB_LOOKUP_FCT): Likewise.
4855         * inet/gethstbynm_r.c (DB_LOOKUP_FCT): Likewise.
4856         * inet/gethstent_r.c (DB_LOOKUP_FCT): Likewise.
4857
4858         * nscd/aicache.c (addhstaiX): Fix default TTL handling.
4859
4860         * inet/getnetgrent_r.c (setup): Encrypt static pointer.
4861
4862 2007-10-28  Ulrich Drepper  <drepper@redhat.com>
4863
4864         [BZ #5204]
4865         * crypt/sha256c-test.c: Define TIMEOUT to 6 for ancient hardware.
4866         * crypt/sha512c-test.c: Likewise.
4867
4868         [BZ #5225]
4869         * stdio-common/vfscanf.c (_IO_vfwscanf): Don't misuse wp pointer
4870         to keep track of end of %[ format string element.
4871         * stdio-common/Makefile (tests): Add bug20.
4872         * stdio-common/bug20.c: New file.
4873
4874         [BZ #5222]
4875         * elf/dl-load.c (_dl_rtld_di_serinfo): Correct handling of short
4876         path elements in counting mode.
4877
4878 2007-10-27  Andreas Jaeger  <aj@suse.de>
4879
4880         [BZ #5040]
4881         * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLRDHUP): Add value.
4882
4883         [BZ #3112]
4884         * sysdeps/ia64/backtrace.c (init): Free shared library if incorrect.
4885         (__cleanup): Free shared library when exiting.
4886         * sysdeps/i386/backtrace.c (init): Free shared library if incorrect.
4887         (__cleanup): Free shared library when exiting.
4888
4889 2006-04-14  H.J. Lu  <hongjiu.lu@intel.com>
4890
4891         [BZ #2549]
4892         * math/libm-test.inc (check_float_internal): Support
4893         denormalized return.
4894
4895 2007-10-23  Andreas Jaeger  <aj@suse.de>
4896
4897         [BZ #5208]
4898         * sysdeps/unix/sysv/linux/readahead.c (__readahead): Use
4899         __LONG_LONG_PAIR to handle little endian byte order.
4900         Suggested by abhishekrai@google.com
4901
4902 2007-10-27  Ulrich Drepper  <drepper@redhat.com>
4903
4904         * malloc/arena.c [!NO_THREADS]: Use ATFORK_MEM if defined.
4905
4906 2007-10-26  Ulrich Drepper  <drepper@redhat.com>
4907
4908         * nscd/cache.c (prune_cache): Move test for modified file outside
4909         of locking.
4910
4911 2007-10-21  Andreas Jaeger  <aj@suse.de>
4912
4913         * manual/texinfo.tex: Update to latest version.
4914
4915         * manual/sysinfo.texi (System Parameters): Fix Formatting.
4916
4917         * manual/arith.texi (Status bit operations): Fix formatting.
4918
4919         * manual/errno.texi (Error Messages): Fix formatting.
4920
4921         * manual/sysinfo.texi (System Parameters): Fix formatting.
4922
4923         * manual/libc.texinfo: Update VERSION and UPDATED.
4924
4925 2007-10-19  Roland McGrath  <roland@redhat.com>
4926
4927         * elf/Makefile ($(objpfx)ld.so): Use $(AWK).
4928
4929 2007-10-06  David S. Miller  <davem@davemloft.net>
4930
4931         * configure.in: Add sparcv9v2 and sparc64v2.
4932         * scripts/config.sub: Likewise.
4933         * configure: Regenerate.
4934         * elf/elf.h (HWCAP_SPARC_N2): New.
4935         * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Bump to 8.
4936         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add 'v9v2'.
4937         (HWCAP_IMPORTANT): Add HWCAP_SPARC_N2.
4938         * sysdeps/sparc/sparc32/sparcv9/sparcv9v2/memcpy.S: New file.
4939         * sysdeps/sparc/sparc32/sparcv9/sparcv9v2/memset.S: New file.
4940         * sysdeps/sparc/sparc64/sparcv9v2/memcpy.S: New file.
4941         * sysdeps/sparc/sparc64/sparcv9v2/memset.S: New file.
4942
4943 2007-10-18  Ulrich Drepper  <drepper@redhat.com>
4944
4945         * sunrpc/clnt_udp.c (clntudp_call): Don't block in recvfrom call
4946         even if the poll result indicates there is data to read.
4947         Patch by Jeff Moyer <jmoyer@redhat.com>.
4948
4949 2007-10-18  Roland McGrath  <roland@redhat.com>
4950
4951         * elf/elf.h (NT_PPC_VMX): New macro.
4952
4953 2007-10-17  Ulrich Drepper  <drepper@redhat.com>
4954
4955         * version.h (VERSION): Set to 2.7.90.
4956
4957 2007-10-17  Jakub Jelinek  <jakub@redhat.com>
4958
4959         * sysdeps/x86_64/memset.S (bzero): Renamed to __bzero.  Add
4960         weak_alias.
4961
4962 2007-10-17  Roland McGrath  <roland@frob.com>
4963
4964         * sysdeps/mach/hurd/bits/fcntl.h [__USE_GNU__] (F_DUPFD_CLOEXEC): New.
4965         * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Implement it.
4966
4967 2007-10-17  Ulrich Drepper  <drepper@redhat.com>
4968
4969         * version.h (VERSION): Bump to 2.7.
4970         * include/features.h (__GLIBC_MINOR__): Bump to 7.
4971
4972         [BZ #5186]
4973         * time/tzset.c (__tz_convert): Don't force testing for a change of
4974         TZ if not called from localtime.  But then also see whether the
4975         file changed, in case __use_tzfile is set.
4976
4977         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define F_DUPFD_CLOEXEC.
4978         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
4979         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
4980         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
4981         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
4982         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
4983         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h:  Likewise.
4984         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
4985
4986 2007-10-17  Jakub Jelinek  <jakub@redhat.com>
4987
4988         * sysdeps/posix/getaddrinfo.c (getaddrinfo): When sorting addresses
4989         and admin selects to be able to replace the gai.conf file, lock
4990         data structures around the qsort call.
4991
4992 2007-10-17  Ulrich Drepper  <drepper@redhat.com>
4993
4994         * sysdeps/x86_64/cacheinfo.c: Comment out code added in support of
4995         new memset.
4996         * sysdeps/x86_64/memset.S: Revert to old version for now.  The cost is
4997         too high for the improvements.  Implement bzero unconditionally for
4998         use in libc.
4999
5000 2007-10-17  Ulrich Drepper  <drepper@redhat.com>
5001             Jakub Jelinek  <jakub@redhat.com>
5002
5003         * time/tzfile.c (__tzfile_read): Read POSIX TZ string if available
5004         even when time_t is 32-bit.
5005         (__tzfile_compute): Override POSIX TZ string STD/DST zone names if
5006         timezone data read by __tzfile_default.  Ensure __tzname[0] is
5007         always set after the search.
5008
5009 2007-10-16  Ulrich Drepper  <drepper@redhat.com>
5010
5011         * time/tzfile.c (__tzfile_read): Help the compiler recognize
5012         unreachable code on 32-bit machines.
5013
5014 2007-10-16  Jakub Jelinek  <jakub@redhat.com>
5015
5016         [BZ #5184]
5017         * time/strftime_l.c: Include stdbool.h.
5018         (my_strftime): New wrapper, old function renamed to...
5019         (__strftime_internal): ... new function.  Add tzset_called
5020         argument, pass it down to recursive calls, don't call tzset ()
5021         if already true, set to true after call to tzset ().
5022
5023 2007-10-16  Ulrich Drepper  <drepper@redhat.com>
5024
5025         * time/tzfile.c (__tzfile_read): Take extra memory requested by caller
5026         into account when copying TZ string.
5027
5028 2007-10-16  Jakub Jelinek  <jakub@redhat.com>
5029
5030         * time/tzfile.c (__tzfile_compute): For use_last case set i to
5031         num_transition rather than num_transitions - 1.
5032
5033 2007-10-16  Jakub Jelinek  <jakub@redhat.com>
5034
5035         * sysdeps/x86_64/memset.S (memset): Fix sse2_nt_move
5036         PIC indirect jump.
5037
5038         * sysdeps/x86_64/memset.S: Jump from bzero to memset using
5039         a local label rather than HIDDEN_JUMPTARGET.
5040
5041 2007-10-15  Ulrich Drepper  <drepper@redhat.com>
5042
5043         * sysdeps/x86_64/cacheinfo.c (__x86_64_shared_cache_size): Define.
5044         (init_cacheinfo): Initialize it.
5045         * sysdeps/x86_64/memset.S: Use __x86_64_shared_cache_size.
5046         Always define bzero.
5047         Remove non-glibc code.
5048         * sysdeps/x86_64/bzero.S: Make an empty file.
5049
5050 2007-10-15  H.J. Lu  <hongjiu.lu@intel.com>
5051
5052         * sysdeps/x86_64/cacheinfo.c
5053         (__x86_64_preferred_memory_instruction): New.
5054         (init_cacheinfo): Initialize __x86_64_preferred_memory_instruction.
5055
5056         * sysdeps/x86_64/memset.S: Rewrite.
5057
5058 2007-10-15  Roland McGrath  <roland@redhat.com>
5059
5060         * po/libc.pot: Regenerated.
5061
5062 2007-10-15  Ulrich Drepper  <drepper@redhat.com>
5063
5064         * nss/getXXbyYY_r.c (REENTRANT_NAME): Mangle startp and start_fct
5065         pointers.
5066
5067         [BZ #3425]
5068         * resolv/nss_dns/dns-host.c (getanswer_r): Fail with
5069         NSS_STATUS_NOTFOUND if the server replied with only a CNAME and no
5070         address record to T_A/T_AAAA requests.
5071
5072 2007-10-14  Ulrich Drepper  <drepper@redhat.com>
5073
5074         * posix/glob.c: Reimplement link_exists_p to use fstatat64.
5075
5076         * posix/glob.c: Add some branch prediction throughout.
5077
5078         * nscd/nscd_getgr_r.c (nscd_getgr_r): Store result of successful
5079         read from nscd.
5080
5081         * sysdeps/posix/getaddrinfo.c (struct sort_result): Add
5082         service_order.
5083         (rfc3484_sort): Make sure that even if qsort doesn't support
5084         stable sorting out sorting here is stable by comparing service_order.
5085         (getaddrinfo): Initialize service_order.
5086         * posix/tst-rfc3484.c (do_test): Adjust for addition of
5087         service_order field to sorting structure.
5088         * posix/tst-rfc3484-2.c (do_test): Likewise.
5089
5090         * include/time.h: Declare __tzset_parse_tz and __tzset_compute.
5091         * time/tzset.c (tzset_internal): Break TZ string parsing out into
5092         __tzset_parse_tz and updating of daylight, timezone, tzname into
5093         update_vars.
5094         (__tz_compute): Renamed from tz_compute.  Take additional parameters.
5095         (__tz_convert): Updating of tm_isdst, tm_zone, and tm_gmtoff now
5096         happens in __tz_compute.
5097         * time/tzfile.c (__tzfile_read): Also read TZ string.
5098         (find_transition): Fold into __tzfile_compute.
5099         (__tzfile_compute): For times beyond the last transition try to
5100         use the TZ string.
5101         * timezone/tst-timezone.c: Information in daylight and tzname does
5102         change for Asia/Tokyo timezone with more concrete information.
5103         Remove the test.
5104
5105         * include/stdio.h: Add libc_hidden_proto for ftello.
5106         * libio/ftello.c: Add libc_hidden_def.
5107
5108         [BZ #1140]
5109         * time/tzfile.c (__tzfile_compute): Compute tzname[] values based
5110         on the specified time and not the last entries in the file.  Move
5111         code to determine tzname[] to...
5112         (find_transition): ...here.  Add ugly guess for times before the
5113         first transition.
5114
5115 2007-10-13  Ulrich Drepper  <drepper@redhat.com>
5116
5117         [BZ #3195]
5118         * nscd/nscd_getai.c (__nscd_getai): Set errno to 0 in case we found
5119         no entry.
5120         * nscd/nscd_getgr.c (nscd_getgr_r): Likewise.
5121         * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
5122         * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
5123         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
5124
5125         * nscd/nscd_getgr_r.c (nscd_getgr_r): Optimize a bit: use simpler
5126         read mechanism when there are no group members and avoid no-op
5127         read syscall in this case.
5128
5129         [BZ #3242]
5130         * nscd/nscd_helper.c (wait_on_socket): Take timeout as parameter.
5131         (__readall): If reading failed due to EAGAIN error wait a bit
5132         and possibly try again.
5133         (__readvall): Likewise.
5134
5135 2007-10-13  Bruno Haible  <bruno@clisp.org>
5136
5137         * intl/dcigettext.c (_nl_find_msg): Unlock the conversions_lock
5138         when we cannot recode the message.
5139
5140 2007-10-13  Ulrich Drepper  <drepper@redhat.com>
5141
5142         [BZ #4359]
5143         * libio/__freading.c (__freading): Don't return true for
5144         write-only streams.  For read/write streams, check whether we
5145         performed a read operation already.
5146         * libio/Makefile (tests): Add tst-ext2.
5147         * libio/tst-ext2.c: New file.
5148
5149 2007-10-12  Ulrich Drepper  <drepper@redhat.com>
5150
5151         * locale/programs/repertoire.c (repertoire_read): Always free
5152         memory for repertoire file name [Coverity CID 270].
5153
5154         * elf/cache.c (save_aux_cache): Free memory allocated for
5155         temporary file name [Coverity CID 267].
5156
5157 2007-10-12  Jakub Jelinek  <jakub@redhat.com>
5158
5159         * misc/Makefile (headers): Add bits/error.h.
5160
5161 2007-10-12  Ulrich Drepper  <drepper@redhat.com>
5162
5163         * posix/fnmatch_loop.c: Take rule index returned as part of
5164         findidx return value into account when accessing weights.
5165         * posix/regcomp.c: Likewise.
5166         * posix/regexec.c: Likewise.
5167
5168         * locale/programs/ld-collate.c (collate_read): Optimize a bit.
5169         (skip_to): Fix problems with parameter of elifdef/elifndef.
5170
5171 2007-10-11  Ulrich Drepper  <drepper@redhat.com>
5172
5173         * iconv/gconv_simple.c: Add some branch prediction.
5174
5175 2007-10-12  Jakub Jelinek  <jakub@redhat.com>
5176
5177         * locale/programs/ld-collate.c (collate_read): If ignore_content
5178         and nowtok is tok_define, eat any tok_eol tokens.
5179
5180 2007-10-11  Jakub Jelinek  <jakub@redhat.com>
5181
5182         * sysdeps/gnu/netinet/tcp.h: Include sys/socket.h if __USE_MISC.
5183         (struct tcp_md5sig): Change tcpm_addr type to struct sockaddr_storage.
5184
5185         * inet/netinet/in.h: Don't include bits/socket.h.
5186         * sysdeps/unix/sysv/linux/bits/socket.h: Only check _SYS_SOCKET_H
5187         macro.
5188         * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Likewise.
5189
5190 2007-10-10  Ulrich Drepper  <drepper@redhat.com>
5191
5192         * locale/programs/locfile-token.h: Remove tok_elif, add tok_elifdef
5193         and tok_elifndef.
5194         * locale/programs/locfile-kw.gperf: Likewise.
5195         * locale/programs/ld-collate.c: Implement primitive preprocessor.
5196
5197 2007-10-10  Jakub Jelinek  <jakub@redhat.com>
5198
5199         * stdio-common/printf-parse.h: Include string.h and wchar.h.
5200         (__find_specwc): Change into __extern_always_inline function.
5201         (__find_specmb): Likewise.  Remove ps argument.  Use __strchrnul.
5202         (__parse_one_specmb): Remove ps argument.
5203         * stdio-common/vfprintf.c (vfprintf): Remove mbstate variable.
5204         Adjust __find_specmb and __parse_one_specmb callers.
5205         * stdio-common/printf-prs.c (parse_printf_format): Likewise.
5206         * stdio-common/printf-parsemb.c (__find_specwc, __find_specmb):
5207         Removed.
5208         (__parse_one_specmb): Remove ps argument, adjust __find_specmb
5209         caller.
5210
5211 2007-10-09  Ulrich Drepper  <drepper@redhat.com>
5212
5213         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Work around problem
5214         with some Pentium Ds.
5215
5216 2007-10-08  Ulrich Drepper  <drepper@redhat.com>
5217
5218         * sysdeps/unix/sysv/linux/eventfd_read.c (eventfd_read): Use
5219         __read not read.
5220         * sysdeps/unix/sysv/linux/eventfd_write.c (eventfd_write): Use
5221         __write not write.
5222
5223 2007-10-07  Ulrich Drepper  <drepper@redhat.com>
5224
5225         [BZ #181]
5226         * locale/C-time.c: Set week_1stday data to 19971201.
5227         * locale/programs/ld-time.c (time_finish): Default for
5228         first_workday is Monday.
5229
5230         [BZ #2633]
5231         * wcsmbs/wchar.h: Move many C99 functions into std namespace.
5232
5233         [BZ #5103]
5234         * posix/glob.c (glob): Recognize patterns starting \/.
5235         * posix/tst-gnuglob.c (find_file): Handle absolute path names.
5236         (main): Add test for pattern starting \/.
5237
5238         * misc/error.h: Use __const instead of const.
5239         * misc/bits/error.h: Likewise.
5240
5241 2007-10-07  Andreas Jaeger  <aj@suse.de>
5242
5243         * include/bits/error.h: New file.
5244
5245         * misc/bits/error.h (error_at_line): Fix prototype.
5246
5247 2007-10-06  Ulrich Drepper  <drepper@redhat.com>
5248
5249         [BZ #3924]
5250         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix a few
5251         more little bugs in creating the stack frame when pltexit has to
5252         be called.
5253
5254         * nscd/nscd_helper.c (__nscd_cache_search): Prevent endless loops.
5255         * nscd/connections.c (verify_persistent_db): Recognize circular lists.
5256
5257         [BZ #4407]
5258         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Fix *signgamp for -0.0.
5259         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
5260         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
5261         * math/libm-test.inc: Add test for this case.
5262
5263         [BZ #5010]
5264         * sunrpc/svc.c (struct svc_callout): Add sc_mapped element.
5265         (svc_register): Initialize sc_mapped.  Set to TRUE if call to
5266         map service succeeded.
5267         (svc_is_mapped): New function.
5268         (svc_unregister): Use it before trying to unmap service.
5269
5270 2007-10-05  Ulrich Drepper  <drepper@redhat.com>
5271
5272         * timezone/zic.c: Update from tzcode2007h.
5273
5274         [BZ #5063]
5275         * timezone/africa: Update from tzdata2007h.
5276         * timezone/antarctica: Likewise.
5277         * timezone/asia: Likewise.
5278         * timezone/australasia: Likewise.
5279         * timezone/europe: Likewise.
5280         * timezone/leapseconds: Likewise.
5281         * timezone/northamerica: Likewise.
5282         * timezone/southamerica: Likewise.
5283         * timzeone/zone.tab: Likewise.
5284
5285         [BZ #5104]
5286         * elf/do-lookup.h (do_lookup_x): Don't ignore STT_COMMON symbols.
5287
5288         [BZ #5113]
5289         * string/bits/string2.h (__strdup): Cast parameters to calloc to
5290         avoid warning with -Wconversion.
5291         (__strndup): Likewise.
5292         Half the patch by Christian Iseli <christian.iseli@licr.org>.
5293
5294         [BZ #5112]
5295         * nscd/connections.c (restart): Don't resync if database is
5296         disabled.  Patch mostly by Brian De Wolf <bldewolf@csupomona.edu>.
5297
5298         * sysdeps/gnu/netinet/tcp.h: Define TCP_MD5SIG, TCP_MD5SIG_MAXKEYLEN,
5299         struct tcp_md5sig.  Extend struct tcp_info according to recent kernels.
5300
5301         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add eventfd,
5302         evetnfd_read, eventfd_write.
5303         * sysdeps/unix/sysv/linux/eventfd.c: New file.
5304         * sysdeps/unix/sysv/linux/eventfd_read.c: New file.
5305         * sysdeps/unix/sysv/linux/eventfd_write.c: New file.
5306         * sysdeps/unix/sysv/linux/sys/eventfd.h: New file.
5307         * sysdeps/unix/sysv/linux/Versions: Export eventfd, eventfd_read,
5308         eventfd_write for GLIBC_2.7.
5309
5310         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add signalfd.
5311         * sysdeps/unix/sysv/linux/signalfd.c: New file.
5312         * sysdeps/unix/sysv/linux/sys/signalfd.h: New file.
5313         * sysdeps/unix/sysv/linux/Versions: Export signalfd for GLIBC_2.7.
5314
5315 2007-10-04  Jakub Jelinek  <jakub@redhat.com>
5316
5317         * stdlib/msort.c: Include stdint.h.
5318         (struct msort_param): New type.
5319         (msort_with_tmp): Use struct msort_param pointer for unchanging
5320         parameters.  Add optimized handling for several common sizes
5321         and indirect sorting mode.
5322         (qsort): Adjust msort_with_tmp callers.  For big S use indirect
5323         sorting.
5324         Suggested by Belazougui Djamel .
5325
5326         * stdlib/Makefile (tests): Add tst-qsort2.
5327         * stdlib/tst-qsort2.c: New test.
5328
5329 2007-10-04  Ulrich Drepper  <drepper@redhat.com>
5330
5331         * login/login_tty.c (login_tty): The Linux kernel can return EBUSY
5332         for dup2 in case another thread races with the current one.  Retry
5333         in this case.
5334
5335         * misc/error.h: Remove support for use outside of libc.  We have to
5336         include <features.h> now.  Include <bits/error.h> if possible.
5337         * misc/bits/error.h: New file.
5338
5339 2007-10-03  Jakub Jelinek  <jakub@redhat.com>
5340
5341         * string/bits/string3.h (memcpy, memmove, mempcpy, memset, bcopy,
5342         bzero, strcpy, stpcpy, strncpy, strcat, strncat): Use
5343         __extern_always_inline functions unconditionally, drop macros.
5344
5345         * misc/sys/cdefs.h (__REDIRECT_LDBL, __REDIRECT_NTH_LDBL): New macros.
5346         * wcsmbs/bits/wchar2.h (__swprintf_alias, __vswprintf_alias): Use
5347         __REDIRECT_NTH_LDBL macro rather than __REDIRECT_NTH.
5348
5349         * misc/sys/cdefs.h (__extern_always_inline): For GCC 4.3+
5350         add __artificial__ attribute.
5351
5352 2007-10-02  Ulrich Drepper  <drepper@redhat.com>
5353
5354         * string/strcoll_l.c (STRCOLL): Correct handling of switching from
5355         backward to forward direction.
5356
5357         * string/strcoll_l.c (STRCOLL): Correct test for alloca use.
5358
5359         [BZ #645]
5360         * locale/programs/ld-collate.c (collate_finish): Compare against last
5361         used section which is known to have rules defined.
5362         (collate_read): After order_start, correctly record order of sections
5363         and queue sections up.
5364
5365 2007-10-01  Ulrich Drepper  <drepper@redhat.com>
5366
5367         [BZ #5071]
5368         * malloc/malloc.c (mremap_chunk): Avoid resizing of new block has
5369         the same number of pages.
5370         Patch by Tomash Brechko <tomash.brechko@gmail.com>.
5371
5372         * locale/programs/ld-collate.c (collate_read): After initial copy
5373         statement, continue in state 0.
5374
5375         * include/stdio_ext.h (__fsetlocking): Define as macro.
5376
5377 2007-09-30  Ulrich Drepper  <drepper@redhat.com>
5378
5379         * locale/programs/ld-collate.c (collate_finish): Compare all bytes
5380         of section order.
5381
5382         * po/pt_BR.po: Fix typo.
5383
5384 2007-09-29  Ulrich Drepper  <drepper@redhat.com>
5385
5386         * iconvdata/Makefile (modules): Add ISO8859-9E.
5387         (distribute): Add iso8859-9e.c.
5388         (gen-8bit-gap-modules): Add iso8859-9e.
5389         * iconvdata/iso8859-9e.c: New file.
5390         * iconvdata/gconv-modules: Add entries for ISO-8859-9E.
5391         * iconvdata/TESTS: Likewise.
5392         * iconvdata/tst-tables.sh: Likewise.
5393
5394         * iconvdata/koi8-r.c (HAS_HOLES): Define to 0.
5395
5396         * locale/iso-639.def: Add several new entries.
5397
5398 2007-09-24  Jakub Jelinek  <jakub@redhat.com>
5399
5400         * sysdeps/generic/ldsodefs.h (struct dl_scope_free_list): Store
5401         void * pointers instead of struct link_map **.
5402         (_dl_scope_free): Change argument type to void *.
5403         * include/link.h (struct link_map): Change type of l_reldeps
5404         to struct link_map_reldeps, move l_reldepsact into that
5405         struct too.
5406         * elf/dl-deps.c: Include atomic.h.
5407         (_dl_map_object_deps): Only change l->l_initfini when it is
5408         fully populated, use _dl_scope_free for freeing it.  Optimize
5409         removal of libs from reldeps by using l_reserved flag, when
5410         some removal is needed, allocate a new list instead of
5411         reallocating and free the old with _dl_scope_free.  Adjust
5412         for l_reldeps and l_reldepsact changes.
5413         * elf/dl-lookup.c (add_dependency): Likewise.  Reorganize to allow
5414         searching in l_initfini and l_reldeps without holding dl_load_lock.
5415         * elf/dl-fini.c (_dl_sort_fini): Adjust for l_reldeps and
5416         l_reldepsact changes.
5417         * elf/dl-close.c (_dl_close_worker): Likewise.
5418         * elf/dl-open.c (_dl_scope_free): Change argument type to void *.
5419
5420 2007-09-28  Ulrich Drepper  <drepper@redhat.com>
5421
5422         * iconvdata/Makefile (modules): Add KOI8-RU.
5423         (distribute): Add koi8-ru.c.
5424         (gen-8bit-gap-modules): Add koi8-ru.
5425         * iconvdata/koi8-ru.c: New file.
5426         * iconvdata/gconv-modules: Add entries for KOI8-RU.
5427         * iconvdata/TESTS: Likewise.
5428         * iconvdata/tst-tables.sh: Likewise.
5429
5430         * iconvdata/koi8-r.c (HAS_HOLES): Define to 0.
5431
5432 2007-09-26  Jakub Jelinek  <jakub@redhat.com>
5433
5434         * misc/sys/cdefs.h (__warndecl, __errordecl): For GCC 4.3+ define
5435         with __warning__/__error__ attributes.
5436         (__warnattr): Define.
5437         * stdlib/bits/stdlib.h (__realpath_chk_warn, __ptsname_r_chk_warn,
5438         __mbstowcs_chk_warn, __wcstombs_chk_warn): New aliases with
5439         __warnattr.
5440         (realpath, ptsname_r, mbstowcs, wcstombs): Call __*_chk_warn instead
5441         of __*_chk if compile time detectable overflow is found.
5442         * libio/bits/stdio2.h (__fgets_chk_warn, __fread_chk_warn,
5443         __fgets_unlocked_chk_warn, __fread_unlocked_chk_warn): New aliases
5444         with __warnattr.
5445         (fgets, fread, fgets_unlocked, fread_unlocked): Call __*_chk_warn
5446         instead of __*_chk if compile time detectable overflow is found.
5447         (__gets_alias): Rename to...
5448         (__gets_warn): ... this.  Add __warnattr.
5449         (gets): Call __gets_warn instead of __gets_alias.
5450         * socket/bits/socket2.h (__recv_chk_warn, __recvfrom_chk_warn): New
5451         aliases with __warnattr.
5452         (recv, recvfrom): Call __*_chk_warn instead of __*_chk if compile
5453         time detectable overflow is found.
5454         * posix/bits/unistd.h (__read_chk_warn, __pread_chk_warn,
5455         __pread64_chk_warn, __readlink_chk_warn, __readlinkat_chk_warn,
5456         __getcwd_chk_warn, __confstr_chk_warn, __getgroups_chk_warn,
5457         __ttyname_r_chk_warn, __getlogin_r_chk_warn, __gethostname_chk_warn,
5458         __getdomainname_chk_warn): New aliases with __warnattr.
5459         (read, pread, pread64, readlink, readlinkat, getcwd, confstr,
5460         getgroups, ttyname_r, getlogin_r, gethostname, getdomainname): Call
5461         __*_chk_warn instead of __*_chk if compile time detectable overflow
5462         is found.
5463         (__getgroups_chk): Rename argument to __listlen from listlen.
5464         (__getwd_alias): Rename to...
5465         (__getwd_warn): ... this.  Add __warnattr.
5466         (getwd): Call __getwd_warn instead of __getwd_alias.
5467         * wcsmbs/bits/wchar2.h (__wmemcpy_chk_warn, __wmemmove_chk_warn,
5468         __wmempcpy_chk_warn, __wmemset_chk_warn, __wcsncpy_chk_warn,
5469         __wcpncpy_chk_warn, __fgetws_chk_warn, __fgetws_unlocked_chk_warn,
5470         __mbsrtowcs_chk_warn, __wcsrtombs_chk_warn, __mbsnrtowcs_chk_warn,
5471         __wcsnrtombs_chk_warn): New aliases with __warnattr.
5472         (wmemcpy, wmemmove, wmempcpy, wmemset, mbsrtowcs, wcsrtombs,
5473         mbsnrtowcs, wcsnrtombs): Call __*_chk_warn instead of __*_chk if
5474         compile time detectable overflow is found.
5475         (wcsncpy, wcpncpy): Likewise.  For constant __n fix check whether
5476         to use __*_chk or not.
5477         (fgetws, fgetws_unlocked): Divide __bos by sizeof (wchar_t), both
5478         in comparisons which function should be called and in __*_chk*
5479         arguments.  Call __*_chk_warn instead of __*_chk if compile time
5480         detectable overflow is found.
5481         (swprintf, vswprintf): Divide __bos by sizeof (wchar_t) in
5482         __*_chk argument.
5483         * debug/tst-chk1.c (do_test): Add a few more tests.
5484
5485 2007-09-24  Ulrich Drepper  <drepper@redhat.com>
5486
5487         [BZ #5058]
5488         * intl/gettextP.h (struct loaded_domain): Add conversions_lock member.
5489         * intl/loadmsgcat.c (_nl_load_domain): Initialize conversions_lock.
5490         (_nl_unload_domain): Finalize conversions_lock.
5491         * intl/dcigettext.c (_nl_find_msg): Take conversions_lock before
5492         handling table of known conversions.
5493
5494 2007-09-24  Jakub Jelinek  <jakub@redhat.com>
5495
5496         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Use
5497         close_not_cancel_no_status instead of close.
5498
5499 2007-09-13  Aurelien Jarno  <aurelien@aurel32.net>
5500
5501         [BZ #5028]
5502         * posix/regcomp.c (lookup_collation_sequence_value): Check that
5503         nrules != 0 for multibyte chars.
5504
5505 2007-09-23  Ulrich Drepper  <drepper@redhat.com>
5506
5507         * resolv/ns_print.c (ns_sprintrrf): Handle ns_t_a6 and ns_t_opt.
5508         Provide better error message in case the type is unknown.
5509
5510         [BZ #4963]
5511         * wcsmbs/wcsnlen.c: Don't reference before checking the length.
5512         * string/stratcliff.c: Make usable to test wide char functions.
5513         * wcsmbs/wcsatcliff.c: New file.
5514         * wcsmbs/Makefiel (tests): Add wcsatcliff.
5515
5516         [BZ #4972]
5517         * iconvdata/Makefile (modules): Add MAC-CENTRALEUROPE.
5518         (distribute): Add mac-centraleurope.c.
5519         (gen-8bit-gap-modules): Add mac-centraleurope.
5520         * iconvdata/mac-centraleurope.c: New file.
5521         * iconvdata/gconv-modules: Add entries for MAC-CENTRALEUROPE.
5522         * iconvdata/TESTS: Likewise.
5523         * iconvdata/tst-tables.sh: Likewise.
5524
5525         [BZ #5043]
5526         * iconv/iconv_open.c (iconv_open): For large codeset names use malloc.
5527
5528 2007-09-21  Ulrich Drepper  <drepper@redhat.com>
5529
5530         * sysdeps/x86_64/cacheinfo.c (__x86_64_data_cache_size_half): Renamed
5531         from __x86_64_core_cache_size_half.
5532         (init_cacheinfo): Compute shared cache size for AMD processors with
5533         shared L3 correctly.
5534         * sysdeps/x86_64/memcpy.S: Adjust for __x86_64_data_cache_size_half
5535         name change.
5536         Patch in large parts by Evandro Menezes.
5537
5538 2007-09-19  Ulrich Drepper  <drepper@redhat.com>
5539
5540         * elf/dl-lookup.c (add_dependency): Handle failing memory
5541         allocation for dependency list.  Remove unnecessary check.
5542
5543         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid unnecessary
5544         open/close when determining source addresses.
5545
5546         * crypt/Makefile (libcrypt-routines): Add sha256-crypt, sha256,
5547         sha512-crypt, and sha512.
5548         (tests): Add sha256test, sha256c-test, sha512test, and sha512c-test.
5549         (distribute): Add sha256.h and sha512.h.
5550         * crypt/crypt-entry.c (crypt): Recognize the new $5$ and $6$ prefixes
5551         and call the appropriate code.
5552         * crypt/sha256-crypt.c: New file.
5553         * crypt/sha256.c: New file.
5554         * crypt/sha256.h: New file.
5555         * crypt/sha256c-test.c: New file.
5556         * crypt/sha256test.c: New file.
5557         * crypt/sha512-crypt.c: New file.
5558         * crypt/sha512.c: New file.
5559         * crypt/sha512.h: New file.
5560         * crypt/sha512c-test.c: New file.
5561         * crypt/sha512test.c: New file.
5562
5563 2007-09-19  Jakub Jelinek  <jakub@redhat.com>
5564
5565         * misc/bits/syslog.h (syslog): Remove extraneous argument from
5566         the inline, pass __USE_FORTIFY_LEVEL - 1 as second argument to
5567         __syslog_chk.
5568
5569 2007-09-18  Jakub Jelinek  <jakub@redhat.com>
5570
5571         * locale/programs/charmap-dir.c (charmap_aliases): Use %ms instead of
5572         %as in fscanf format strings.
5573
5574         * sysdeps/sparc/sparc32/elf/start.S: Remove cfi_* markup.
5575         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
5576         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__thread_start):
5577         Likewise.
5578         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__thread_start):
5579         Likewise.
5580
5581         * sysdeps/generic/ldsodefs.h (DL_LOOKUP_GSCOPE_LOCK): New definition.
5582         * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Or in
5583         DL_LOOKUP_GSCOPE_LOCK into flags after THREAD_GSCOPE_SET_FLAG ().
5584         * elf/dl-sym.c (do_sym): Likewise.
5585         * include/link.h (struct link_map): Add l_serial field.
5586         * elf/dl-object.c (_dl_new_object): Initialize l_serial.
5587         * elf/dl-lookup.c (add_dependency): Add flags argument.
5588         Remember map->l_serial, if DL_LOOKUP_GSCOPE_LOCK is among
5589         flags, use THREAD_GSCOPE_RESET_FLAG before and
5590         THREAD_GSCOPE_SET_FLAG after
5591         __rtld_lock_lock_recursive (GL(dl_load_lock)) to avoid deadlock.
5592         Don't dereference map until it has been found on some list.
5593         If map->l_serial changed, return -1.
5594
5595 2007-09-17  Jakub Jelinek  <jakub@redhat.com>
5596
5597         * include/stdio.h (__isoc99_fscanf, __isoc99_scanf,
5598         __isoc99_sscanf, __isoc99_vscanf): New prototypes.
5599         (__isoc99_vsscanf, __isoc99_vfscanf): New prototypes, add
5600         libc_hidden_proto.
5601         * include/wchar.h (__isoc99_fwscanf, __isoc99_wscanf,
5602         __isoc99_swscanf, __isoc99_vwscanf): New prototypes.
5603         (__isoc99_vswscanf, __isoc99_vfwscanf): New prototypes,
5604         add libc_hidden_proto.
5605         * libio/stdio.h (fscanf, scanf, sscanf, vfscanf, vscanf,
5606         vsscanf): Redirect to __isoc99_* if strict ISO C99 or POSIX
5607         conformance requested.
5608         * wcsmbs/wchar.h (fwscanf, wscanf, swscanf, vfwscanf, vwscanf,
5609         vswscanf): Redirect to __isoc99_* if strict ISO C99 or POSIX
5610         conformance requested.
5611         * libio/bits/stdio-ldbl.h (fscanf, scanf, sscanf, vfscanf, vscanf,
5612         vsscanf): Redirect to __nldbl___isoc99_* if strict ISO C99 or POSIX
5613         conformance requested.
5614         * wcsmbs/bits/wchar-ldbl.h (fwscanf, wscanf, swscanf, vfwscanf,
5615         vwscanf, vswscanf): Redirect to __nldbl___isoc99_* if strict
5616         ISO C99 or POSIX conformance requested.
5617         * stdio-common/Versions (libc): Export __isoc99_scanf@@GLIBC_2.7,
5618         __isoc99_vscanf@@GLIBC_2.7, __isoc99_fscanf@@GLIBC_2.7,
5619         __isoc99_vfscanf@@GLIBC_2.7, __isoc99_sscanf@@GLIBC_2.7
5620         and __isoc99_vsscanf@@GLIBC_2.7.
5621         * stdio-common/Makefile (routines): Add isoc99_scanf, isoc99_vscanf,
5622         isoc99_fscanf, isoc99_vfscanf, isoc99_sscanf and isoc99_vsscanf.
5623         (tests): Add scanf14.
5624         (CFLAGS-vfprintf.c, CFLAGS-fprintf.c, CFLAGS-printf.c,
5625         CFLAGS-vfwprintf.c, CFLAGS-vfscanf.c, CFLAGS-vfwscanf.c,
5626         CFLAGS-fscanf.c, CFLAGS-scanf.c, CFLAGS-isoc99_vfscanf.c,
5627         CFLAGS-isoc99_vscanf.c, CFLAGS-isoc99_fscanf.c,
5628         CFLAGS-isoc99_scanf.c): Add $(exceptions).
5629         (CFLAGS-scanf15.c): Add various -I paths to prevent the compiler
5630         from using internal headers.
5631         * wcsmbs/Versions (libc): Export __isoc99_wscanf@@GLIBC_2.7,
5632         __isoc99_vwscanf@@GLIBC_2.7, __isoc99_fwscanf@@GLIBC_2.7,
5633         __isoc99_vfwscanf@@GLIBC_2.7, __isoc99_swscanf@@GLIBC_2.7
5634         and __isoc99_vswscanf@@GLIBC_2.7.
5635         * wcsmbs/Makefile (routines): Add isoc99_wscanf, isoc99_vwscanf,
5636         isoc99_fwscanf, isoc99_vfwscanf, isoc99_swscanf and isoc99_vswscanf.
5637         (CFLAGS-isoc99_wscanf.c, CFLAGS-isoc99_fwscanf.c,
5638         CFLAGS-isoc99_vwscanf.c, CFLAGS-isoc99_vfwscanf.c): Add $(exceptions).
5639         (CPPFLAGS): Add -D_IO_MTSAFE_IO if needed.
5640         * stdio-common/isoc99_scanf.c: New file.
5641         * stdio-common/isoc99_vsscanf.c: New file.
5642         * stdio-common/isoc99_vscanf.c: New file.
5643         * stdio-common/isoc99_vfscanf.c: New file.
5644         * stdio-common/isoc99_fscanf.c: New file.
5645         * stdio-common/isoc99_sscanf.c: New file.
5646         * wcsmbs/isoc99_fwscanf.c: New file.
5647         * wcsmbs/isoc99_vswscanf.c: New file.
5648         * wcsmbs/isoc99_swscanf.c: New file.
5649         * wcsmbs/isoc99_wscanf.c: New file.
5650         * wcsmbs/isoc99_vwscanf.c: New file.
5651         * wcsmbs/isoc99_vfwscanf.c: New file.
5652         * libio/libio.h (_IO_FLAGS2_SCANF_STD): Define.
5653         * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): Also
5654         clear _IO_FLAGS2_SCANF_STD bit from _flags2.
5655         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Don't
5656         handle %as, %aS and %a[ if _IO_FLAGS2_SCANF_STD is set in _flags2.
5657         * stdio-common/scanf14.c: New test.
5658         * stdio-common/scanf15.c: New test.
5659         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add
5660         isoc99_scanf, isoc99_fscanf, isoc99_sscanf,
5661         isoc99_vscanf, isoc99_vfscanf, isoc99_vsscanf,
5662         isoc99_wscanf, isoc99_fwscanf, isoc99_swscanf,
5663         isoc99_vwscanf, isoc99_vfwscanf and isoc99_vswscanf.
5664         * sysdeps/ieee754/ldbl-opt/Versions (libc): Export
5665         __nldbl___isoc99_scanf@@GLIBC_2.7,
5666         __nldbl___isoc99_fscanf@@GLIBC_2.7,
5667         __nldbl___isoc99_sscanf@@GLIBC_2.7,
5668         __nldbl___isoc99_vscanf@@GLIBC_2.7,
5669         __nldbl___isoc99_vfscanf@@GLIBC_2.7,
5670         __nldbl___isoc99_vsscanf@@GLIBC_2.7,
5671         __nldbl___isoc99_wscanf@@GLIBC_2.7,
5672         __nldbl___isoc99_fwscanf@@GLIBC_2.7,
5673         __nldbl___isoc99_swscanf@@GLIBC_2.7,
5674         __nldbl___isoc99_vwscanf@@GLIBC_2.7,
5675         __nldbl___isoc99_vfwscanf@@GLIBC_2.7
5676         and __nldbl___isoc99_vswscanf@@GLIBC_2.7.
5677         * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__isoc99_scanf,
5678         __isoc99_fscanf, __isoc99_sscanf, __isoc99_vscanf,
5679         __isoc99_vfscanf, __isoc99_vsscanf, __isoc99_wscanf,
5680         __isoc99_fwscanf, __isoc99_swscanf, __isoc99_vwscanf,
5681         __isoc99_vfwscanf, __isoc99_vswscanf): Add NLDBL_DECL.
5682         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
5683         (__nldbl___isoc99_scanf, __nldbl___isoc99_fscanf,
5684         __nldbl___isoc99_sscanf, __nldbl___isoc99_vscanf,
5685         __nldbl___isoc99_vfscanf, __nldbl___isoc99_vsscanf,
5686         __nldbl___isoc99_wscanf, __nldbl___isoc99_fwscanf,
5687         __nldbl___isoc99_swscanf, __nldbl___isoc99_vwscanf,
5688         __nldbl___isoc99_vfwscanf, __nldbl___isoc99_vswscanf): New
5689         functions.
5690         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vfscanf.c: New file.
5691         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_swscanf.c: New file.
5692         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vwscanf.c: New file.
5693         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_wscanf.c: New file.
5694         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_scanf.c: New file.
5695         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_sscanf.c: New file.
5696         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vsscanf.c: New file.
5697         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_fwscanf.c: New file.
5698         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vfwscanf.c: New file.
5699         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vswscanf.c: New file.
5700         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vscanf.c: New file.
5701         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_fscanf.c: New file.
5702
5703         * stdio-common/Makefile (tests): Add scanf13.
5704         (scanf13-ENV): New.
5705         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Handle
5706         m modifier followed by l.
5707         (STRING_ARG): Add width argument.
5708         (_IO_vfscanf_internal) <case L_('c')>: Handle %mc.
5709         <case L_('C')>: Handle %mlc and %mC.
5710         <case L_('s'), case L_('S'), case L_('[')>: Adjust STRING_ARG
5711         arguments.
5712         * stdio-common/scanf13.c: New test.
5713
5714         * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): Clear
5715         the _IO_FLAGS2_FORTIFY bit from _flags2 rather than _flags.
5716
5717 2007-09-18  Ulrich Drepper  <drepper@redhat.com>
5718
5719         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Correct return value
5720         type and __THROW marker of splice, vmsplice, and tee.
5721         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
5722         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
5723         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
5724         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
5725         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
5726         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
5727         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
5728         * sysdeps/unix/sysv/linux/syscalls.list: Mark splice, vmsplice, and tee
5729         as cancellation points.
5730
5731 2003-11-01  Daniel Jacobowitz  <dan@debian.org>
5732
5733         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_discover_osversion): Don't
5734         parse more than three parts of the version number.
5735
5736 2007-09-15  Ulrich Drepper  <drepper@redhat.com>
5737
5738         * stdio-common/vfscanf.c (_IO_vfwscanf): Add support for 'm'
5739         modifier.  Patch by Jakub Jelinek.
5740
5741 2007-08-26  Jakub Jelinek  <jakub@redhat.com>
5742
5743         * sysdeps/unix/sysv/linux/i386/Makefile (sysdep_routines): Add
5744         call_fallocate in misc subdir.
5745         * sysdeps/unix/sysv/linux/i386/call_fallocate.S: New file.
5746         * sysdeps/unix/sysv/linux/i386/syscalls.list (fallocate64): Remove.
5747         * sysdeps/unix/sysv/linux/i386/posix_fallocate.c: Use __call_fallocate
5748         instead of __fallocate64.
5749         * sysdeps/unix/sysv/linux/i386/posix_fallocate64.c: Likewise.
5750
5751 2007-09-15  Jakub Jelinek  <jakub@redhat.com>
5752
5753         * rt/Versions (librt): Export __mq_open_2@@GLIBC_2.7.
5754         * rt/Makefile (headers): Add bits/mqueue2.h.
5755         * rt/mqueue.h: Include bits/mqueue2.h if -D_FORTIFY_SOURCE=2,
5756         optimizing with GCC and __va_arg_pack_len is defined.
5757         * rt/bits/mqueue2.h: New file.
5758         * rt/mq_open.c (__mq_open): Renamed from mq_open.
5759         (mq_open): New strong_alias.
5760         (__mq_open_2): New function.
5761         * sysdeps/unix/sysv/linux/mq_open.c (__mq_open): Renamed from mq_open.
5762         (mq_open): New strong_alias.
5763         (__mq_open_2): New function.
5764         * debug/Versions (libc): Export __fortify_fail@@GLIBC_PRIVATE.
5765         * Versions.def (librt): Add GLIBC_2.7 version.
5766         * debug/fortify_fail.c (__fortify_fail): Add libc_hidden_def.
5767         * include/stdio.h (__fortify_fail): Add libc_hidden_proto.
5768
5769         * misc/sys/cdefs.h (__errordecl, __va_arg_pack_len): Define.
5770         * io/fcntl.h: Include bits/fcntl2.h when __va_arg_pack_len
5771         is defined rather than when not C++.
5772         * io/bits/fcntl2.h (__open_alias, __open64_alias, __openat_alias,
5773         __openat64_alias): New redirects.
5774         (__open_too_many_args, __open_missing_mode, __open64_too_many_args,
5775         __open64_missing_mode, __openat_too_many_args, __openat_missing_mode,
5776         __openat64_too_many_args, __openat64_missing_mode): New __errordecls.
5777         (open, open64, openat, openat64): Rewrite as __extern_always_inline
5778         functions instead of function-like macros.
5779
5780 2007-09-14  H.J. Lu  <hongjiu.lu@intel.com>
5781
5782         * sysdeps/i386/i586/memcpy.S (__memcpy_chk): New definition.
5783         * sysdeps/i386/i586/mempcpy.S (__memcpy_chk): New definition.
5784         * sysdeps/i386/i586/memset.S (__memset_chk): New definition.
5785
5786 2007-09-15  Mike Frysinger  <vapier@gentoo.org>
5787
5788         * inet/inet_net.c: Reset digit to 0 for inputs starting with "0x".
5789         * inet/tst-network.c (tests): Add edge case tests for "0", "0x", "0x0".
5790
5791 2007-09-14  Mike Frysinger  <vapier@gentoo.org>
5792
5793         * inet/tst-network.c: Increment ERRORS for failing tests.
5794
5795 2007-09-07  Jakub Jelinek  <jakub@redhat.com>
5796
5797         * misc/sys/cdefs.h (__va_arg_pack): Define for GCC 4.3+.
5798         * misc/bits/syslog.h (syslog): When __va_arg_pack is defined,
5799         implement as __extern_always_inline function.
5800         (vsyslog): Define as __extern_always_inline function unconditionally.
5801         * libio/bits/stdio2.h (sprintf, snprintf, printf, fprintf):
5802         When __va_arg_pack is defined, implement as __extern_always_inline
5803         functions.
5804         (vsprintf, vsnprintf, vprintf, vfprintf): Define as
5805         __extern_always_inline functions unconditionally.
5806         * libio/bits/stdio.h (vprintf): Ifdef out the inline when
5807         bits/stdio2.h will be included.
5808         * wcsmbs/bits/wchar2.h (__swprintf_alias): New redirect.
5809         (swprintf, wprintf, fwprintf): When __va_arg_pack is defined,
5810         implement as __extern_always_inline functions.
5811         (vswprintf, vwprintf, vfwprintf): Define as
5812         __extern_always_inline functions unconditionally.
5813         * debug/tst-chk1.c (do_test): Enable remaining tests for C++.
5814
5815 2007-09-03  Jakub Jelinek  <jakub@redhat.com>
5816
5817         * misc/sys/cdefs.h (__extern_inline, __extern_always_inline): Only
5818         define in C++ for GCC 4.3+, in C++ always use __gnu_inline__
5819         attribute.
5820         * include/features.h (__USE_EXTERN_INLINES): Define only when
5821         __extern_inline is defined.
5822         * stdlib/stdlib.h: Include bits/stdlib.h when __extern_always_inline
5823         is defined instead of when not __cplusplus.
5824         * misc/sys/syslog.h: Include bits/syslog.h when __extern_always_inline
5825         is defined instead of when not __cplusplus.
5826         * socket/sys/socket.h: Include bits/socket2.h when
5827         __extern_always_inline is defined instead of when not __cplusplus.
5828         * libio/stdio.h: Include bits/stdio2.h when __extern_always_inline
5829         is defined instead of when not __cplusplus.
5830         * posix/unistd.h: Include bits/unistd.h when __extern_always_inline
5831         is defined instead of when not __cplusplus.
5832         * string/string.h: Include bits/string3.h when __extern_always_inline
5833         is defined instead of when not __cplusplus.
5834         * wcsmbs/wchar.h: Include bits/wchar2.h when __extern_always_inline
5835         is defined instead of when not __cplusplus.
5836         (btowc, wctob): Don't guard the inlines with ifndef __cplusplus.
5837         * io/fcntl.h: Don't include bits/fcntl2.h if __extern_always_inline
5838         is not defined.
5839         * misc/bits/syslog-ldbl.h: Guard *_chk stuff with
5840         defined __extern_always_inline instead of !defined __cplusplus.
5841         * libio/bits/stdio-ldbl.h: Likewise.
5842         * wcsmbs/bits/wchar-ldbl.h: Likewise.
5843         * misc/bits/syslog.h (syslog): Don't define for C++.
5844         (vsyslog): Use __extern_always_inline function for C++ instead of
5845         a macro.
5846         * libio/bits/stdio.h (__STDIO_INLINE): Define to __extern_inline
5847         whenever that macro is defined.
5848         (vprintf): Don't provide the inline for C++.
5849         (fread_unlocked, fwrite_unlocked): Don't define the macros for C++.
5850         * libio/bits/stdio2.h (sprintf, snprintf, printf, fprintf): Don't
5851         define the macros for C++.
5852         (vsprintf, vsnprintf, vprintf, vfprintf): Define as
5853         __extern_always_inline functions for C++.
5854         * io/sys/stat.h (stat, lstat, fstat, fstatat, mknod, mknodat,
5855         stat64, lstat64, fstat64, fstatat64): Don't define if not
5856         __USE_EXTERN_INLINES.
5857         * wcsmbs/bits/wchar2.h: Fix #error message.
5858         (swprintf, wprintf, fwprintf): Don't define the macros for C++.
5859         (vswprintf, vwprintf, vfwprintf): Define using
5860         __extern_always_inline functions for C++.
5861         * string/bits/string3.h: Don't #undef macros if __cplusplus.
5862         (memcpy, memmove, mempcpy, memset, bcopy, bzero, strcpy, stpcpy,
5863         strncpy, strcat, strncat): Define as __extern_always_inline
5864         functions instead of macros for C++.
5865         * math/bits/cmathcalls.h: Guard __extern_inline routines with
5866         defined __extern_inline.
5867         * sysdeps/alpha/fpu/bits/mathinline.h (__MATH_INLINE): Define
5868         to __extern_inline whenever that macro is defined.
5869         * sysdeps/ia64/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
5870         * sysdeps/i386/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
5871         * sysdeps/i386/i486/bits/string.h (__STRING_INLINE): Likewise.
5872         * sysdeps/s390/bits/string.h (__STRING_INLINE): Likewise.
5873         * sysdeps/s390/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
5874         * sysdeps/powerpc/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
5875         * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
5876         * sysdeps/sparc/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
5877         * sysdeps/unix/sysv/linux/sys/sysmacros.h (gnu_dev_major,
5878         gnu_dev_minor, gnu_dev_makedev): Remove __extern_inline from
5879         prototypes.  Only provide __extern_inline routines if
5880         __USE_EXTERN_INLINES.
5881         * debug/Makefile: Add rules to build and run tst-{,lfs}chk{4,5,6}
5882         tests.
5883         * debug/tst-chk1.c (do_prepare, do_test): Allow compilation as C++.
5884         For now avoid some *printf tests in C++.  Skip all testing
5885         if __USE_FORTIFY_LEVEL is defined, but __extern_always_inline macro
5886         is not.
5887         * debug/tst-chk4.cc: New file.
5888         * debug/tst-chk5.cc: New file.
5889         * debug/tst-chk6.cc: New file.
5890         * debug/tst-lfschk4.cc: New file.
5891         * debug/tst-lfschk5.cc: New file.
5892         * debug/tst-lfschk6.cc: New file.
5893         * include/wchar.h (__vfwprintf_chk, __vswprintf_chk): Avoid
5894         prototypes in C++.
5895         * include/stdio.h (__sprintf_chk, __snprintf_chk, __vsprintf_chk,
5896         __vsnprintf_chk, __printf_chk, __fprintf_chk, __vprintf_chk,
5897         __vfprintf_chk, __fgets_unlocked_chk, __fgets_chk): Likewise.
5898
5899 2007-09-13  Ulrich Drepper  <drepper@redhat.com>
5900
5901         * po/cs.po: Update from translation team.
5902
5903 2007-09-11  Roland McGrath  <roland@redhat.com>
5904
5905         * posix/Makefile ($(objpfx)getconf.speclist): Make it empty if cross
5906         compiling.
5907
5908 2007-09-07  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5909
5910         * sysdeps/mach/hurd/bits/ioctls.h (TAB3): New macro.
5911
5912 2007-09-05  Roland McGrath  <roland@redhat.com>
5913
5914         * manual/signal.texi (Signaling Another Process): Typo fix.
5915         From Karl Berry <karl@freefriends.org>.
5916
5917 2007-08-29  Ulrich Drepper  <drepper@redhat.com>
5918
5919         * sysdeps/unix/sysv/linux/check_pf.c (IFA_F_OPTIMISTIC): Define to
5920         zero if not defined.
5921         (make_request): Recognize optimistic addresses and treat them like
5922         deprecated addresses.
5923         Reported by Neil Horman <nhorman@redhat.com>.
5924
5925 2007-08-28  Ulrich Drepper  <drepper@redhat.com>
5926
5927         * nscd/connections.c (send_ro_fd): Also transfer file size.
5928         * nscd/nscd_helper.c (get_mapping): If nscd also transfers the
5929         file size don't call fstat.
5930
5931         * nscd/nscd_helper.c (get_mapping): Avoid the pread call, just go
5932         ahead and map the file.  This should always be correct and we can
5933         catch problems later.
5934
5935 2007-08-28  Jakub Jelinek  <jakub@redhat.com>
5936
5937         * libio/bits/stdio2.h (__fread_chk, __fread_unlocked_chk): New
5938         prototypes.
5939         (__fread_alias, __fread_unlocked_alias): New aliases.
5940         (fread): New extern inline.
5941         (fread_unlocked): Likewise.  Undef macro before definition of
5942         the inline function.
5943         * debug/Makefile (routines): Add fread_chk and fread_u_chk.
5944         (CFLAGS-fread_chk.c, CFLAGS-fread_u_chk.c): Add.
5945         * debug/Versions (libc): Export __fread_chk@@GLIBC_2.7
5946         and __fread_unlocked_chk@@GLIBC_2.7.
5947         * debug/fread_chk.c: New file.
5948         * debug/fread_u_chk.c: New file.
5949         * debug/tst-chk1.c (do_test): Add fread and fread_unlocked tests.
5950
5951 2007-08-27  Jakub Jelinek  <jakub@redhat.com>
5952
5953         * sysdeps/unix/sysv/linux/syscalls.list
5954         (personality): Change caller to EXTRA.
5955
5956 2007-08-25  Ulrich Drepper  <drepper@redhat.com>
5957
5958         * iconvdata/iso-2022-kr.c (BODY): Fake initialization of array buf
5959         to keep gcc quiet.
5960         * iconvdata/iso-2022-cn.c (BODY): Likewise.
5961
5962         * locale/programs/ld-collate.c (collate_output): Avoid warning if
5963         NDEBUG is defined.
5964
5965         * Makerules: Use -p option with mkdir.
5966
5967         * sunrpc/key_prot.c (xdr_unixcred): Work around gcc alias warning.
5968         * nis/nis_xdr.c (_xdr_nis_server): Likewise.
5969         (_xdr_directory_obj): Likewise.
5970         (xdr_entry_obj): Likewise.
5971         (xdr_group_obj): Likewise.
5972         (xdr_link_obj): Likewise.
5973         (xdr_table_obj): Likewise.
5974         (_xdr_nis_result): Likewise.
5975         (_xdr_ns_request): Likewise.
5976         (_xdr_ib_request): Likewise.
5977         (_xdr_nis_taglist): Likewise.
5978         (xdr_cback_data): Likewise.
5979         * nis/yp_xdr.c (xdr_ypmaplist): Likewise.
5980         (xdr_ypresp_maplist): Likewise.
5981
5982         * stdio-common/Makefile: Avoid format string warning for tst-sprint.
5983
5984         * posix/regex_internal.h: Prevent some declarations and definitions
5985         to be seen when used in tests.
5986
5987         * posix/tst-rfc3484.c (__idna_to_unicode_lzlz): Initialize *OUTPUT.
5988         * posix/tst-rfc3484-2.c (__idna_to_unicode_lzlz): Likewise.
5989
5990         * debug/Makefile: Disable format checking when compiling tst-chk?.c.
5991
5992         * config.make.in (datarootdir): Add to shut up configure.
5993
5994         * sysdeps/x86_64/cacheinfo.c (handle_amd): Fix computation of
5995         associativity for fully-associative caches.
5996
5997         * sysdeps/x86_64/cacheinfo.c (handle_amd): Handle L3 cache
5998         requests.  Fill on more associativity values for L2.
5999         Patch mostly by Evandro Menezes.
6000
6001 2007-08-24  Ulrich Drepper  <drepper@redhat.com>
6002
6003         * sysdeps/unix/sysv/linux/x86_64/init-first.c
6004         (_libc_vdso_platform_setup): Avoid using exported variable by using
6005         alias.
6006
6007         * resolv/arpa/nameser.h (NS_OPT_DNSSEC_OK): Define.
6008
6009         * sysdeps/unix/sysv/linux/i386/syscalls.list: No reason to mark
6010         fallocate64 as EXTRA.  It is not referenced if the symbol isn't
6011         defined.
6012
6013 2007-08-23  Ulrich Drepper  <drepper@redhat.com>
6014
6015         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Correctly
6016         align stack for call if pltexit is to be used.
6017
6018         [BZ #3924]
6019         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Correctly
6020         align for function call in case pltexit has to be called later.
6021
6022         * sysdeps/i386/dl-trampoline.S (_dl_runtime_resolve): Avoid
6023         implicit atomic operation when storing function pointer.
6024         (_dl_runtime_profile): Likewise.
6025
6026 2007-08-17  Jakub Jelinek  <jakub@redhat.com>
6027
6028         * nis/nis_table.c (nis_list): Don't fail if __follow_path returned
6029         NIS_NOTFOUND.
6030
6031 2007-08-21  Ulrich Drepper  <drepper@redhat.com>
6032
6033         [BZ #4566]
6034         * string/strtok.c: Fix typo in comment.
6035
6036         [BZ #4582]
6037         * debug/segfault.c: Fix typos in comments.
6038
6039         [BZ #4588]
6040         * stdio-common/tempnam.c: Fix comment, it is not checked that
6041         TMPDIR points to a writable directory.
6042
6043         [BZ #4726]
6044         * resolv/res_send.c (__libc_res_nsend): Initialize all of the
6045         memory allocated for the name server address.
6046
6047         [BZ #4946]
6048         * nscd/connections.c (handle_request): Using sendfile always
6049         requires that mmap is used for the database.
6050         Patch by Petr Baudis <pasky@suse.cz>.
6051
6052         [BZ #4905]
6053         * nscd/hstcache.c (cache_addhst): When reloading an entry which
6054         suddenly has two or more addresses, ignore it and remove the old
6055         entry.
6056
6057         [BZ #4814]
6058         * resolv/res_hconf.c: Prepare for compiling outside libc.
6059         * nscd/res_hconf.c: New file.
6060         * nscd/Makefile (nscd-modules): Add res_hconf.  Add rules to build
6061         the new file.
6062         * nscd/gethstbynm2_r.c (NEED__RES_HCONF): Define.
6063         * nscd/gethstbyad_r.c (NEED__RES_HCONF): Likewise.
6064
6065         * nscd/hstcache.c (cache_addhst): Minimal optimization.
6066
6067         [BZ #4925]
6068         * debug/pcprofiledump.c: Turn on internationalization by calling
6069         setlocale.  Patch mostly by Benno Schulenberg.
6070
6071         [BZ #4936]
6072         * iconv/gconv.c (__gconv): If flush was successful, clear rest of
6073         the state.
6074         * iconvdata/Makefile: Add rules to build and run bug-iconv5.
6075         * iconvdata/bug-iconv5.c: New file.
6076
6077 2007-08-04  Carlos O'Donell  <carlos@systemhalted.org>
6078
6079         [BZ #4896]
6080         * elf/elf.h: Define R_PARISC_PLABEL21L, R_PARISC_PLABEL14R,
6081         R_PARISC_GNU_VTENTRY, R_PARISC_GNU_VTINHERIT, R_PARISC_TLS_GD21L,
6082         R_PARISC_TLS_GD14R, R_PARISC_TLS_GDCALL, R_PARISC_TLS_LDM21L,
6083         R_PARISC_TLS_LDM14R, R_PARISC_TLS_LDMCALL, R_PARISC_TLS_LDO21L,
6084         R_PARISC_TLS_LDO14R, R_PARISC_TLS_DTPMOD32, R_PARISC_TLS_DTPMOD64,
6085         R_PARISC_TLS_DTPOFF32, R_PARISC_TLS_DTPOFF64, R_PARISC_TLS_LE21L,
6086         R_PARISC_TLS_LE14R, R_PARISC_TLS_IE21L, R_PARISC_TLS_IE14R,
6087         R_PARISC_TLS_TPREL32, R_PARISC_TLS_TPREL64.
6088
6089 2007-08-21  Ulrich Drepper  <drepper@redhat.com>
6090
6091         [BZ #4937]
6092         * elf/do-lookup.h (do_lookup_x): Minimal improvement in hash
6093         lookup loop.  Suggested by John Reiser.
6094
6095 2007-08-21  Jakub Jelinek  <jakub@redhat.com>
6096
6097         * sysdeps/unix/sysv/linux/alpha/sysdep.h: Include tls.h.
6098
6099 2007-08-20  Ulrich Drepper  <drepper@redhat.com>
6100
6101         * csu/libc-start.c: Don't handle VDSO_SETUP here.
6102         * sysdeps/unix/sysv/linux/init-first.c: Handle it here instead.
6103         * sysdeps/unix/sysv/linux/x86_64/libc-start.c: Renamed to...
6104         * sysdeps/unix/sysv/linux/x86_64/init-first.c: ...this.  New file.
6105         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Move VDSO_SETUP code
6106         to...
6107         * sysdeps/unix/sysv/linux/x86_64/init-first.c: ...here.  New file.
6108
6109 2007-08-18  Ulrich Drepper  <drepper@redhat.com>
6110
6111         * po/nl.po: Update from translation team.
6112
6113 2007-08-16  Andreas Jaeger  <aj@suse.de>
6114
6115         * locale/localeinfo.h: Make _nl_category_name_idxs extern.
6116         Reported by Peter Festner <peter.festner@ewetel.net>.
6117
6118 2007-08-17  Jakub Jelinek  <jakub@redhat.com>
6119
6120         * login/tst-grantpt.c (test_einval): Add 3rd argument to open.
6121
6122 2007-08-16  Jakub Jelinek  <jakub@redhat.com>
6123
6124         * elf/Makefile ($(objpfx)ld.so): Use readelf -s and awk instead of nm -u
6125         to check for undefined symbols.
6126
6127         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone):
6128         If the syscall fails, set errno to the actual returned error number
6129         rather than EINVAL.
6130         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__clone): If
6131         arguments are incorrect, set errno to EINVAL, if the syscall
6132         fails, set errno to the actual returned error number.
6133
6134         * stdlib/bits/stdlib-ldbl.h (__strtold_internal): Remove.
6135         * wcsmbs/bits/wchar-ldbl.h (__wcstold_internal): Remove.
6136
6137         * sysdeps/sparc/sparc32/sparcv9b/memcpy.S: Moved to...
6138         * sysdeps/sparc/sparc32/sparcv9/sparcv9b/memcpy.S: ... here.  New
6139         file.
6140         (ASI_PNF, ASI_BLK_P): Don't define.
6141         * sysdeps/sparc/sparc32/sparcv9v/memcpy.S: Moved to...
6142         * sysdeps/sparc/sparc32/sparcv9/sparcv9v/memcpy.S: ... here.  New
6143         file.
6144         * sysdeps/sparc/sparc32/sparcv9v/memset.S: Moved to...
6145         * sysdeps/sparc/sparc32/sparcv9/sparcv9v/memset.S: ... here.  New
6146         file.
6147
6148 2007-08-15  Jakub Jelinek  <jakub@redhat.com>
6149
6150         * sysdeps/sparc/fpu/fraiseexcpt.c (__feraiseexcept): Fix raising
6151         FE_UNDERFLOW on Niagara CPUs.
6152
6153         * sysdeps/sparc/fpu/feholdexcpt.c (feholdexcept): Clear all
6154         exceptions.
6155
6156 2007-08-14  Jakub Jelinek  <jakub@redhat.com>
6157
6158         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_runtime_setup): No
6159         need to check GLRO(dl_hwcap) & HWCAP_SPARC_FLUSH on sparcv9.
6160         (sparc_fixup_plt): Add do_flush argument instead of figuring whether
6161         flush should be used or not inside of the function.
6162         (elf_machine_fixup_plt, elf_machine_rela): Adjust caller.
6163
6164         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone,
6165         __thread_start): Use HIDDEN_JUMPTARGET.
6166         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__clone,
6167         __thread_start): Likewise.
6168         * sysdeps/unix/sysv/linux/sparc/sysdep.h (JUMPTARGET): Define.
6169
6170         * sysdeps/ieee754/ldbl-64-128/strtold_l.c (__STRTOF): Declare.
6171         Add libc_hidden_proto.
6172         (STRTOF): Add libc_hidden_proto.
6173         (___new_strtold_l, ___new_wcstold_l): New weak aliases.
6174         (strtold_l, wcstold_l): Use them as second argument for
6175         long_double_symbol.
6176
6177 2007-08-14  Ulrich Drepper  <drepper@redhat.com>
6178
6179         * elf/dl-misc.c: Undo last change.  The kernel won't allow it.
6180
6181 2007-08-13  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
6182
6183         * stdlib/strtold_l.c: Include wchar.h if needed.  Add libc_hidden_def.
6184
6185 2007-08-14  Ulrich Drepper  <drepper@redhat.com>
6186
6187         * po/bg.po: New file.  From the translation team.
6188
6189 2007-08-13  Jakub Jelinek  <jakub@redhat.com>
6190
6191         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PSELECT,
6192         __ASSUME_PPOLL, __ASSUME_ATFCTS, __ASSUME_SET_ROBUST_LIST,
6193         __ASSUME_UTIMENSAT, __ASSUME_FALLOCATE): Update per-arch conditions
6194         when each feature was introduced.
6195
6196         * sysdeps/unix/sysv/linux/dl-vdso.c: Don't include dl-hash.h.
6197         * sysdeps/unix/sysv/linux/dl-vdso.h: Don't include dl-hash.h if NDEBUG.
6198         (CHECK_HASH): New macro.
6199         (PREPARE_VERSION): Use it.
6200
6201         * sysdeps/unix/sysv/linux/pselect.c (__generic_pselect): Only provide
6202         prototype if not __ASSUME_PSELECT.
6203         * sysdeps/unix/sysv/linux/ppoll.c (__generic_ppoll): Only provide
6204         prototype if not __ASSUME_PPOLL.
6205
6206         * sysdeps/unix/sysv/linux/dl-osinfo.h (ROUND): #undef after use.
6207
6208         * sysdeps/unix/clock_settime.c (freq, __pthread_clock_settime,
6209         hp_timing_settime): Don't define or declare if HANDLED_CPUTIME
6210         is defined.
6211
6212 2007-08-13  Ulrich Drepper  <drepper@redhat.com>
6213
6214         * sysdeps/unix/sysv/linux/x86_64/libc-start.c
6215         (_libc_vdso_platform_setup): If vDSO is not available point
6216         __vdso_gettimeofday to the vsyscall.
6217         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S [SHARED]: Use
6218         __vdso_gettimeofday instead of vsyscall.
6219
6220 2007-08-13  Jakub Jelinek  <jakub@redhat.com>
6221
6222         * nscd/servicescache.c: Include kernel-features.h.
6223         * nscd/gai.c: Likewise.
6224         * sysdeps/unix/sysv/linux/statfs64.c: Likewise.
6225         * sysdeps/unix/sysv/linux/fstatfs64.c: Likewise.
6226         * sysdeps/unix/sysv/linux/fxstatat.c: Likewise.
6227         * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S: Likewise.
6228         * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S: Likewise.
6229         * sysdeps/unix/sysv/linux/xstatconv.c: Likewise.
6230         * sysdeps/unix/sysv/linux/if_index.c: Likewise.
6231         * sysdeps/unix/sysv/linux/sparc/sparc64/xstat.c: Likewise.
6232         * sysdeps/unix/sysv/linux/ifaddrs.c: Likewise.
6233
6234 2007-08-12  Ulrich Drepper  <drepper@redhat.com>
6235
6236         * elf/dl-dst.h: No need for _dl_dst_count, _dl_dst_substitute,
6237         and _dl_get_origin defines anymore.
6238
6239         * sysdeps/unix/sysv/linux/clock_gettime.c (maybe_syscall_gettime_cpu):
6240         Build fix for systems which might lack POSIX timer support.
6241
6242         * sysdeps/unix/sysv/linux/x86_64/libc-start.c
6243         (_libc_vdso_platform_setup): Mangle function pointers before storing
6244         them.
6245         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_VSYSCALL):
6246         Demangle vdso pointer before use.
6247         (INTERNAL_VSYSCALL): Likewise.
6248
6249         * elf/cache.c (primes): Mark as const.
6250         Noted by Roland McGrath.
6251
6252 2007-08-01  Andreas Jaeger  <aj@suse.de>
6253             Jakub Jelinek  <jakub@redhat.com>
6254
6255         * elf/ldconfig.c (opt_ignore_aux_cache): Add new option.
6256         (options): Add option.
6257         (parse_opt): Handle option.
6258         (manual_link): Adjust process_file caller.  Call implicit_soname.
6259         (search_dir): Formatting.  Use and populate auxiliary cache.
6260         (main): Load and save auxiliary cache.
6261         * elf/readlib.c (process_file): Add stat_buf argument.  Pass struct
6262         stat64 from fstat64 to caller.
6263         (implicit_soname): New function.
6264         * elf/readelflib.c (process_elf_file): If DT_SONAME is not present,
6265         leave *soname as NULL.
6266         * elf/cache.c: Include libgen.h.
6267         (print_entry, print_cache, compare, save_cache, add_to_cache):
6268         Formatting and cleanups.
6269         (aux_cache_entry_id, aux_cache_entry, aux_cache_file_entry,
6270         aux_cache_file): New structures.
6271         (AUX_CACHEMAGIC): Define.
6272         (primes): New array.
6273         (aux_hash_size, aux_hash): New variables.
6274         (aux_cache_entry_id_hash, nextprime, init_aux_cache,
6275         search_aux_cache, insert_to_aux_cache, add_to_aux_cache,
6276         load_aux_cache, save_aux_cache): New functions.
6277         * sysdeps/generic/ldconfig.h (_PATH_LDCONFIG_AUX_CACHE): Define.
6278         (init_aux_cache, search_aux_cache, add_to_aux_cache,
6279         load_aux_cache, save_aux_cache, implicit_soname): New prototypes.
6280         (process_file): Adjust prototype.
6281
6282 2007-08-12  Jakub Jelinek  <jakub@redhat.com>
6283
6284         * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h: Include stddef.h
6285         with __need_size_t.
6286
6287 2007-08-12  Ulrich Drepper  <drepper@redhat.com>
6288
6289         * sysdeps/unix/sysv/linux/dl-vdso.c (_dl_vdso_vsym): Expect
6290         r_found_version structure as second parameter.
6291         * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION): Define.
6292         (_dl_vdso_vsym): Change type of second parameter accordingly.
6293         * sysdeps/unix/sysv/linux/x86-64/libc-start.c
6294         (_libc_vdso_platform_setup): Adjust.
6295         * sysdeps/unix/sysv/linux/powerpc/libc-start.c
6296         (_libc_vdso_platform_setup): Likewise.
6297
6298         * sysdeps/unix/sysv/linux/powerpc/dl-vdso.c: Move to...
6299         * sysdeps/unix/sysv/linux/dl-vdso.c: ...here.
6300         * sysdeps/unix/sysv/linux/powerpc/dl-vdso.h: Move to...
6301         * sysdeps/unix/sysv/linux/dl-vdso.h: ...here.
6302         * csu/libc-start.c: Pretty printing.
6303         Use VDSO_SETUP if defined.
6304         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Define VDSO_SETUP
6305         and let generic code call into _libc_vdso_platform_setup.
6306         * sysdeps/unix/sysv/linux/x86_64/libc-start.c: New file.
6307         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: New file.
6308         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Pretty printing.
6309         Define INLINE_VSYSCALL and INTERNAL_VSYSCALL.
6310         * sysdeps/unix/sysv/linux/x86_64/Versions: Export __vdso_clock_gettime
6311         for GLIBC_PRIVATE.
6312         * sysdeps/unix/sysv/linux/x86_64/Makefile [subdir=elf]
6313         (sysdep_rountines): Add dl-vdso.
6314
6315         * sysdeps/unix/sysv/linux/powerpc/Makefile: Use sysdep_routines instead
6316         of routines.
6317
6318         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Add
6319         attribute_hidden to __vdso_gettimeofday prototype.
6320
6321 2007-08-12  Roland McGrath  <roland@redhat.com>
6322
6323         * manual/stdio.texi (Variable Arguments Output): Fix xref to gcc manual.
6324         From: Karl Berry <karl@freefriends.org>.
6325
6326 2007-08-11  Ulrich Drepper  <drepper@redhat.com>
6327
6328         * elf/dl-misc.c (_dl_sysdep_read_whole_file): We really don't need
6329         an atime update for the files we read.
6330
6331 2007-08-10  Ulrich Drepper  <drepper@redhat.com>
6332
6333         * shadow/lckpwdf.c (__lckpwdf): Use O_CLOEXEC if possible.
6334
6335         * nscd/connections.c: Use O_CLOEXEC if possible.  Use mkostemp
6336         instead of mkstemp.
6337
6338         * misc/Makefile (routines): Add mkostemp and mkostemp64.
6339         * misc/Versions: Export mkostemp and mkostemp64 for GLIBC_2.7.
6340         * misc/mkostemp.c: New file.
6341         * misc/mkostemp64.c: New file.
6342         * stdlib/stdlib.h: Declare the new functions.
6343         * sysdeps/posix/tempname.c: Add new parameter which is added to
6344         the flags for open.  Remove __GT_BIGFILE handling.
6345         * stdio-common/tempname.c: Likewise.
6346         * include/stdio.h: Adjust __gen_tempname prototype.
6347         Renumber __GT_* constants.
6348         * libio/oldtmpfile.c: Adjust for __gen_tempname interface change.
6349         * misc/mkdtemp.c: Likewise.
6350         * misc/mkstemp.c: Likewise.
6351         * misc/mkstemp64.c: Likewise.
6352         * misc/mktemp.c: Likewise.
6353         * stdio-common/tempnam.c: Likewise.
6354         * stdio-common/tmpfile.c: Likewise.
6355         * stdio-common/tmpfile64.c: Likewise.
6356         * stdio-common/tmpnam.c: Likewise.
6357         * stdio-common/tmpnam_r.c: Likewise.
6358
6359 2007-08-10  Roland McGrath  <roland@frob.com>
6360
6361         * sysdeps/mach/hurd/bits/ioctls.h (NLDLY, TABDLY, BSDLY, VTDLY):
6362         New macros.
6363         (NLDELAY, CRDELAY, TBDELAY, BSDELAY, VTDELAY): Define to those.
6364         Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
6365
6366 2007-08-10  Ulrich Drepper  <drepper@redhat.com>
6367
6368         * nss/nss_files/files-XXX.c (internal_setent): Use O_CLOEXEC if
6369         possible.
6370         * nss/nss_files/files-alias.c (internal_setent): Likewise.
6371         * nss/Makefile (libnss_files-routines): Add files-have_o_cloexec.
6372         * nss/nss_files/files-have_o_cloexec.c: New file.
6373
6374         * sysdeps/unix/sysv/linux/shm_open.c (shm_open): Use O_CLOEXEC if
6375         available.
6376
6377 2007-08-10  Jakub Jelinek  <jakub@redhat.com>
6378
6379         * sysdeps/ieee754/ldbl-128ibm/strtold_l.c (___new_strtold_l,
6380         ___new_wcstold_l): New weak aliases.
6381         (strtold_l, wcstold_l): Use them as second argument for
6382         long_double_symbol.
6383
6384 2007-08-09  Ulrich Drepper  <drepper@redhat.com>
6385
6386         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Use correct
6387         register in test for error.
6388
6389         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_CLOEXEC): Define.
6390         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (O_CLOEXEC): Likewise.
6391
6392         * po/sv.po: Update from translation team.
6393
6394 2007-08-06  Roland McGrath  <roland@redhat.com>
6395
6396         * include/stdlib.h: Add libc_hidden_proto for strto*, __strto*_l.
6397         Remove __strto*_l inlines.
6398         * include/wchar.h: Add libc_hidden_proto for wcsto*, __wcsto*_l.
6399         * stdlib/strtod.c: Add libc_hidden_def.
6400         * stdlib/strtod_l.c: Likewise.
6401         * stdlib/strtold.c [__LONG_DOUBLE_MATH_OPTIONAL]: Add libc_hidden_proto
6402         for __new_strtold and __new_wcstold.
6403         * sysdeps/ieee754/ldbl-128ibm/strtold_l.c: Add libc_hidden_proto for
6404         __STRTOF, STRTOF.
6405         * stdlib/strtol.c: Add libc_hidden_def.
6406         * stdlib/strtol_l.c: Likewise.
6407         * sysdeps/wordsize-64/strtol.c: Add libc_hidden_ver for strtoll and
6408         strtoq.
6409
6410         * scripts/data/localplt-powerpc-linux-gnu.data: New file.
6411
6412         * scripts/data/localplt-x86_64-linux-gnu.data: File renamed to ...
6413         * scripts/data/localplt-generic.data: ... here.
6414         * elf/Makefile (check-data): Get generic file if no other.
6415         ($(objpfx)check-localplt.out): Make target unconditional.
6416
6417         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_discover_osversion):
6418         Use ElfW(Nhdr).
6419
6420 2007-08-05  Ulrich Drepper  <drepper@redhat.com>
6421
6422         * po/zh_CN.po: Updated translation from translation team.
6423
6424 2007-08-05  Jakub Jelinek  <jakub@redhat.com>
6425
6426         * sysdeps/unix/sysv/linux/powerpc/powerpc32/socket.S (__socket):
6427         Don't use CGOTSETUP and CGOTRESTORE macros.
6428
6429 2007-08-04  Roland McGrath  <roland@redhat.com>
6430
6431         * posix/Makefile ($(objpfx)getconf.speclist): Fix typo.
6432
6433 2007-08-04  Jakub Jelinek  <jakub@redhat.com>
6434
6435         * io/bits/fcntl2.h (open, open64, openat, openat64): Add
6436         __extension__ around the whole statement expression.
6437
6438 2007-08-04  Ulrich Drepper  <drepper@redhat.com>
6439
6440         * sysdeps/unix/opendir.c (__alloc_dir): Correct order of DIR
6441         elements during initialization.
6442
6443         * po/pl.po: Updated translation from translation team.
6444         * po/tr.po: Likewise.
6445         * po/nl.po: Likewise.
6446
6447 2007-08-03  Ulrich Drepper  <drepper@redhat.com>
6448
6449         * rt/aio.h: Add __nonnull attributes.
6450
6451 2007-08-03  Jakub Jelinek  <jakub@redhat.com>
6452
6453         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Properly handle -0.
6454         * stdlib/Makefile (tests): Add tst-strtod5.
6455         (tst-strtod5-ENV): New.
6456         * stdlib/tst-strtod5.c: New file.
6457
6458         * intl/dcigettext.c (_nl_find_msg): Free encoding if __gconv_open
6459         failed.
6460         * intl/finddomain.c (_nl_find_domain): Free normalized_codeset
6461         on failure.
6462
6463         * elf/dl-load.c (decompose_rpath): Free copy if result couldn't be
6464         allocated.
6465
6466 2007-08-03  Jakub Jelinek  <jakub@redhat.com>
6467
6468         * rt/mqueue.h (mq_timedreceive, mq_timedsend): Fix nonnull argument
6469         numbers.
6470
6471 2007-08-02  Ulrich Drepper  <drepper@redhat.com>
6472
6473         * io/Makefile (aux): Add have_o_cloexec.
6474         * include/fcntl.h: Declare __have_o_cloexec.
6475         * io/have_o_cloexec.c: New file.
6476         * sysdeps/unix/opendir.c (__opendir): Use O_CLOEXEC is available.
6477         (__alloc_dir): If O_CLOEXEC has been used, don't duplicate the
6478         fcntl call if not necessary.
6479         * login/utmp_file.c (setutent_file): Use __have_o_cloexec instead
6480         of local variable.
6481
6482         * sysdeps/unix/opendir.c (__alloc_dir): Don't initialize ->data.
6483         Avoid memset, add explicit initialization.
6484         * sysdeps/unix/dirstream.h (struct __dirstream): Move data elemtn
6485         to the end and change into zero-sized array.
6486         Move lock member to fill a hole on 64-bit platforms.
6487
6488         * stdlib/stdlib.h: Remove __strto*_internal prototypes and strto*
6489         inline functions.
6490         * include/stdlib.h: Add __strto*_internal prototypes here.
6491         * wcsmbs/wchar.h: Remove __wcsto*_internal prototypes and wcsto*
6492         inline functions.
6493         * include/wchar.h: Add __wcsto*_internal prototypes.
6494         * sysdeps/generic/inttypes.h: No need to protect the declaration
6495         of the __strto*_internal and __wcsto*_internal members here.
6496
6497         * rt/mqueue.h: Change const to __const and add nonnull attributes.
6498
6499 2007-08-02  Roland McGrath  <roland@redhat.com>
6500
6501         * posix/Makefile ($(inst_libexecdir)/getconf): Make hard links to
6502         $(inst_bindir)/getconf if possible.
6503
6504         * posix/Makefile ($(objpfx)getconf.speclist): New target.
6505         (generated): Add it.
6506         ($(inst_libexecdir)/getconf): Use it.
6507
6508 2007-08-01  Ulrich Drepper  <drepper@redhat.com>
6509
6510         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Using
6511         /proc is faster and sufficient.  /sys is still needed for
6512         __get_nprocs_conf.
6513
6514 2007-08-01  Jakub Jelinek  <jakub@redhat.com>
6515
6516         * sysdeps/unix/sysv/linux/i386/syscalls.list (fallocate): Add fallocate
6517         syscall as __fallocate64.
6518         * sysdeps/unix/sysv/linux/i386/posix_fallocate.c: New file.
6519         * sysdeps/unix/sysv/linux/i386/posix_fallocate64.c: New file.
6520
6521 2007-07-30  Jakub Jelinek  <jakub@redhat.com>
6522
6523         * stdlib/tst-strtod2.c (do_test): Use %tu in fmt string for ptrdiff_t
6524         value.
6525
6526         * stdio-common/tst-fmemopen2.c (do_test): Avoid fmt string warning
6527         if off_t is different rank from size_t.
6528
6529         * sysdeps/generic/unwind-dw2.c (extract_cie_info, execute_cfa_program,
6530         uw_frame_state_for): Avoid type punning warnings.
6531         * sysdeps/generic/unwind-dw2-fde-glibc.c
6532         (_Unwind_IteratePhdrCallback): Likewise.
6533         * sysdeps/generic/unwind-dw2-fde.c (_Unwind_Find_FDE): Likewise.
6534         (binary_search_single_encoding_fdes, binary_search_mixed_encoding_fdes,
6535         get_cie_encoding, linear_search_fdes): Don't mix char and unsigned char
6536         pointers.
6537
6538 2007-07-31  Ulrich Drepper  <drepper@redhat.com>
6539
6540         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs_conf): Count
6541         total processors using sysfs.
6542         (__get_nprocs): Use sysfs to determine which processors are online.
6543
6544 2007-07-31  Jakub Jelinek  <jakub@redhat.com>
6545
6546         * sysdeps/unix/sysv/linux/posix_fallocate.c (posix_fallocate): Fix
6547         syscall arguments count.
6548
6549         * stdio-common/tfformat.c (sprint_doubles): Add 12 new tests.
6550
6551 2007-07-30  Roland McGrath  <roland@redhat.com>
6552
6553         * manual/libc.texinfo: Update copyrights, formatting magic, and
6554         @dircategory.  From Karl Berry <karl@freefriends.org>.
6555
6556 2007-07-29  Ulrich Drepper  <drepper@redhat.com>
6557
6558         [BZ #4860]
6559         * io/Makefile (headers): Add bits/fcntl2.h.
6560
6561         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_ZERO_S): Optimize
6562         using gcc builtin.
6563         (__CPU_EQUAL_S): Likewise.
6564
6565         * posix/Makefile (routines): Add sched_cpualloc and sched_cpufree.
6566         (tests): Add tst-cpuset.
6567         * posix/sched_cpualloc.c: New file.
6568         * posix/sched_cpufree.c: New file.
6569         * posix/tst-cpuset.c: New file.
6570         * posix/Versions: Export __sched_cpualloc and __sched_cpufree for
6571         GLIBC_2.7.
6572         * sysdeps/unix/sysv/linux/bits/sched.h: Define __CPU_*_S macros.
6573         * posix/sched.h: Define old CPU_* macros in temers of __CPU_*_S
6574         macros.  Define CPU_*_S macros.
6575
6576 2007-07-28  Ulrich Drepper  <drepper@redhat.com>
6577
6578         * posix/getconf.c (vars): Add missing _SC_LEVEL4_CACHE_LINESIZE
6579         entry.
6580
6581         [BZ #4858]
6582         * stdio-common/printf_fp.c (___printf_fp): Fix special case of
6583         #.0g and value rounded to 1.0.
6584         * stdio-common/tfformat.c (sprint_doubles): Add two new tests.
6585
6586 2007-07-26  Jakub Jelinek  <jakub@redhat.com>
6587
6588         * locale/programs/ld-monetary.c (monetary_finish): Avoid range check
6589         for int_frac_digits and frac_digits.
6590
6591         * login/logout.c (logout): Avoid aliasing violation.
6592         * login/logwtmp.c (logwtmp): Likewise.
6593
6594         * libio/genops.c (_IO_un_link): Avoid aliasing violation.
6595
6596         * nscd/selinux.c (preserve_capabilities): Initialize new_caps
6597         to avoid warning.
6598         * iconv/gconv_open.c (__gconv_open): Initialize ptr to avoid
6599         warning.
6600         * nis/nis_subr.c (nis_getnames): Initialize saveptr to avoid
6601         warning.
6602         * resolv/inet_ntop.c (inet_ntop6): Initialize best.len and cur.len
6603         to avoid warnings.
6604
6605         * nss/nsswitch.c (__nss_lookup_function): Don't cast &ni->known to
6606         void **.
6607         * nss/nsswitch.h (service_user): Use void * type for KNOWN field.
6608
6609         * nss/nss_files/files-hosts.c (LINE_PARSER): Cast host_addr to
6610         char * to avoid warning.
6611         * nis/nss_nis/nis-hosts.c (LINE_PARSER): Likewise.
6612
6613         * timezone/Makefile (CFLAGS-zdump.c): Add -fwrapv.
6614
6615         * locale/programs/ld-ctype.c (ctype_finish, set_class_defaults,
6616         allocate_arrays): Cast second argument to charmap_find_symbol
6617         to char * to avoid warnings.
6618
6619         * locale/programs/repertoire.c (repertoire_new_char): Change
6620         from_nr, to_nr and cnt to unsigned long, adjust printf format
6621         string.
6622
6623         * locale/programs/ld-collate.c (insert_value, handle_ellipsis):
6624         Cast second argument to new_element to char * to avoid warnings.
6625
6626         * locale/weightwc.h (findidx): Cast &extra[-i] to const int32_t *.
6627
6628         * intl/gettextP.h (struct loaded_domain): Change plural to const
6629         struct expression *.
6630         * intl/plural-eval.c (plural_eval): Change first argument to
6631         const struct expression *.
6632         * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Change first
6633         argument to const struct expression **.
6634         * intl/plural-exp.h (EXTRACT_PLURAL_EXPRESSION, plural_eval): Adjust
6635         prototypes.
6636         * intl/loadmsgcat (_nl_unload_domain): Cast away const
6637         in call to __gettext_free_exp.
6638
6639         * posix/fnmatch.c (fnmatch): Rearrange code to avoid maybe
6640         unitialized wstring/wpattern var warnings.
6641
6642         * posix/runtests.c (struct a_test): Make data field const char *.
6643
6644         * stdio-common/tst-sprintf2.c (main): Don't declere u, v and buf
6645         vars if not LDBL_MANT_DIG >= 106.
6646
6647         * stdio-common/Makefile (CFLAGS-vfwprintf.c): Add -Wno-unitialized.
6648
6649         * stdio-common/vfprintf.c (vfprintf): Cast first arugment to
6650         __find_specmb to avoid warning.
6651
6652         * rt/tst-mqueue1.c (do_one_test): Add casts to avoid warnings.
6653
6654         * debug/test-strcpy_chk.c (do_tests, do_random_tests): Add casts
6655         to avoid warnings.
6656
6657         * sysdeps/ieee754/ldbl-96/s_roundl.c (huge): Add L suffix to
6658         initializer.
6659
6660         * sysdeps/unix/clock_gettime.c (clock_gettime): Only define
6661         tv var when it will be actually used.
6662
6663         * sunrpc/rpc_cmsg.c (xdr_callmsg): Cast IXDR_PUT_* to void
6664         to avoid warnings.
6665
6666         * iconvdata/gbk.c (BODY): Make buf and cp char instead of unsigned
6667         char array resp. pointer.
6668         * iconvdata/iso-2022-kr.c (BODY): Make buf unsigned char instead of
6669         char array.
6670         * iconvdata/cns11643.h (cns11643_to_ucs4): Change first argument
6671         to const unsigned char **.
6672         (ucs4_to_cns11643): Change second argument to unsigned char *.
6673         * iconvdata/euc-tw.c (BODY): Change endp type to
6674         const unsigned char *.
6675         * iconvdata/iso-ir-165.h (ucs4_to_isoir165): Change second argument
6676         to unsigned char *.
6677         * iconvdata/ibm1008_420.c (LOOP_NEED_FLAGS): Don't define.
6678         * iconvdata/iso-2022-cn.c (BODY): Change buf to unsigned char array.
6679         * iconvdata/iso-2022-cn-ext.c (BODY): Change buf, tmpbuf, tmp
6680         types to unsigned char pointers/arrays instead of char.
6681         * iconvdata/jis0201.h (ucs4_to_jisx0201): Change second argument
6682         to unsigned char *.
6683         * iconvdata/jis0208.h (ucs4_to_jisx0208): Likewise.
6684         * iconvdata/jis0212.h: Include assert.h.
6685         (ucs4_to_jisx0212): Change second argument to unsigned char *.
6686         assert that if cp[0] is not '\0', cp[1] is not '\0' either instead
6687         of trying to handle that.
6688         * iconvdata/euc-kr.c (euckr_from_ucs4): Initialize also cp[1] to
6689         shut up a warning.
6690         * iconvdata/euc-jp-ms.c (from_ucs4_lat1, from_ucs4_greek,
6691         from_ucs4_cjk, from_ucs4_cjkcpt, from_ucs4_extra): Change type to
6692         two dimensional const unsigned char arrays.
6693         (BODY): Cast "" to (const unsigned char *) for assignment to cp.
6694         Initialize endp to inptr to shut up a warning.
6695
6696 2007-07-20  Jakub Jelinek  <jakub@redhat.com>
6697
6698         [BZ #4772]
6699         * time/strptime_l.c (__strptime_internal): Silently ignore
6700         strftime modifiers and field width in recursive calls.
6701
6702         * include/time.h (enum ptime_locale_status): Remove.
6703         (__strptime_internal): Remove decided and era_cnt arguments,
6704         add statep argument.
6705         * time/strptime_l.c (__strptime_internal): Remove decided
6706         and era_cnt arguments, add statep argument.  Don't recompute
6707         any fields in recursive calls, only update caller's tm
6708         and state, if recursive call fails, don't change tm nor
6709         any state.
6710         (get_alt_number): Adjust.
6711         (recursive): Adjust caller.
6712         (strptime): Likewise.
6713         * time/strptime.c (strptime): Likewise.
6714
6715 2007-07-19  Jakub Jelinek  <jakub@redhat.com>
6716
6717         * iconv/gconv_int.h (__GCONV_NULCONV): New internal only error code.
6718         * iconv/gconv_cache.c (__gconv_lookup_cache): Return __GCONV_NULCONV
6719         if from and to charsets are the same.
6720         * iconv/gconv_db.c (__gconv_find_transform): Likewise.
6721         * intl/dcigettext.c (_nl_find_msg): Return NULL even if __gconv_open
6722         returns __GCONV_NOCONV, but not for __GCONV_NULCONV.
6723
6724 2007-07-17  Jakub Jelinek  <jakub@redhat.com>
6725
6726         * wcsmbs/wchar.h: Only define wint_t if __need_wint_t.
6727         Don't define wint_t when __need_mbstate_t unless it
6728         is necessary.
6729         (__mbstate_t): Use __WINT_TYPE__ rather than wint_t
6730         in the typedef if possible.
6731         * wctype/wctype.h (wint_t): Define by including
6732         wchar.h with __need_wint_t instead of including stddef.h
6733         with __need_wint_t and as fallback definining it ourselves.
6734         * iconv/gconv.h (__need_wint_t): Define before including
6735         wchar.h.
6736         * sysdeps/gnu/_G_config.h: Don't include gconv.h if not _LIBC
6737         or _GLIBCPP_USE_WCHAR_T.
6738         (__need_wchar_t): Don't define
6739         if not _LIBC or _GLIBCPP_USE_WCHAR_T.
6740         (__need_wint_t): Don't define before including stddef.h,
6741         define before including wchar.h only if _LIBC or
6742         _GLIBCPP_USE_WCHAR_T.
6743         (_G_iconv_t): Don't define if not _LIBC or _GLIBCPP_USE_WCHAR_T.
6744         * sysdeps/mach/hurd/_G_config.h: Likewise.
6745         * sysdeps/generic/_G_config.h: Likewise.
6746         * libio/libio.h (__wunderflow, __wuflow, __woverflow): Only
6747         prototype if _LIBC or _GLIBCPP_USE_WCHAR_T.
6748         (_IO_getwc_unlocked, _IO_putwc_unlocked): Only define
6749         if _LIBC or _GLIBCPP_USE_WCHAR_T.
6750
6751 2007-07-28  Ulrich Drepper  <drepper@redhat.com>
6752
6753         * sysdeps/posix/posix_fallocate64.c: Undefine
6754         __posix_fallocate64_l64 before alias handling.
6755         * sysdeps/unix/sysv/linux/posix_fallocate.c: New file.
6756         * sysdeps/unix/sysv/linux/posix_fallocate64.c: New file.
6757         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c: New file.
6758         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate64.c: New file.
6759
6760         * io/tst-posix_fallocate.c: Include <fcntl.h>.
6761
6762 2007-07-23  Jakub Jelinek  <jakub@redhat.com>
6763
6764         * locale/programs/ld-collate.c (atwc): New variable.
6765         (add_to_tablewc): New toplevel function, moved from collate_output.
6766         (collate_output): Remove add_to_tablewc nested function.
6767
6768         * iconv/iconvconfig.c (hash_table, hash_size): New toplevel vars.
6769         (name_insert): New function.
6770         (write_output): Remove hash_table and hash_size vars and name_insert
6771         nested function.
6772
6773 2007-07-24  Roland McGrath  <roland@redhat.com>
6774
6775         * Makerules (install-others-programs-nosubdir): New target.
6776         (install-no-libc.a-nosubdir): Depend on it.
6777
6778         * iconv/Makefile (install-others-programs): Set this instead of
6779         install-others.
6780         * login/Makefile (install-others-programs): Likewise.
6781         * posix/Makefile (install-others-programs): Likewise.
6782
6783         * Makerules (install-no-libc.a-nosubdir): Clean up conditional
6784         dependencies.
6785
6786 2007-07-23  Ulrich Drepper  <drepper@redhat.com>
6787
6788         * io/Makefile (tests): Add tst-posix_fallocate.
6789         * io/tst-posix_fallocate.c: New file.
6790
6791         * sysdeps/unix/sysv/linux/kernel-features.h: Define
6792         __ASSUME_FALLOCATE.
6793
6794 2007-07-22  Roland McGrath  <roland@frob.com>
6795
6796         * hurd/getdport.c: Add missing copyright year update.
6797
6798         * sysdeps/mach/hurd/bits/fcntl.h [__USE_GNU] (O_CLOEXEC): New macro.
6799         * hurd/port2fd.c (_hurd_port2fd): Implement O_CLOEXEC.
6800
6801 2007-07-22  Ulrich Drepper  <drepper@redhat.com>
6802
6803         * login/utmp_file.c (setutent_file): Use O_CLOEXEC if possible.
6804
6805         * libio/fileops.c (_IO_new_file_fopen): Recognize 'e' flag and set
6806         O_CLOEXEC is needed.
6807         * nis/nss_compat/compat-grp.c: Use 'e' flag when opening file.
6808         Avoid additional fcntl to set O_CLOEXEC if not needed.
6809         * nis/nss_compat/compat-initgroups.c: Likewise.
6810         * nis/nss_compat/compat-pwd.c: Likewise.
6811         * nis/nss_compat/compat-spwd.c: Likewise.
6812
6813 2007-07-21  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6814
6815         [BZ #3665]
6816         * manual/errno.texi: Change ECANCELED value to 119.
6817
6818         [BZ #4610]
6819         * mach/lock-intern.h: Include <sys/cdefs.h>.
6820
6821         [BZ #4178]
6822         * sysdeps/mach/hurd/sigaction.c (__sigaction): Check ACT != NULL before
6823         reading A.
6824
6825         [BZ #4126]
6826         * sysdeps/mach/hurd/sigsuspend.c (sigsuspend_not_cancel): Define alias
6827         to __sigsuspend.
6828
6829         * sysdeps/mach/i386/sysdep.h: Include <dl-sysdep.h> and <tls.h>.
6830
6831 2006-06-13  Thomas Schwinge  <tschwinge@gnu.org>
6832
6833         * sysdeps/mach/hurd/tls.h: Change `ASSEMBLER' conditional to
6834         `__ASSEMBLER__'.
6835         * sysdeps/mach/hurd/i386/tls.h: Likewise.
6836
6837 2007-07-21  Ulrich Drepper  <drepper@redhat.com>
6838
6839         * nscd/nscd_helper.c (get_mapping): Use MSG_CMSG_CLOEXEC for
6840         descriptor received from nscd.
6841
6842         * sysdeps/unix/sysv/linux/bits/socket.h: Define MSG_CMSG_CLOEXEC.
6843
6844         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_CLOEXEC.
6845         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
6846         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
6847         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
6848         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
6849         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
6850
6851 2007-07-20  Jakub Jelinek  <jakub@redhat.com>
6852
6853         [BZ #4816]
6854         * manual/signal.texi (Non-atomic Example): Make memory var volatile.
6855
6856         [BZ #4813]
6857         * login/forkpty.c (forkpty): Close master and slave fds on
6858         fork failure.  Patch by
6859         Mikulas Patocka <mikulas@artax.karlin.mff.cuni.cz>.
6860
6861 2007-07-18  Jakub Jelinek  <jakub@redhat.com>
6862
6863         * include/features.h (__USE_ISOC95): New define.
6864         * wcsmbs/wchar.h (fwprintf, fwscanf, wprintf, wscanf, swprintf,
6865         swscanf, vfwprintf, vwprintf, vswprintf, fwide): Define even
6866         for -std=iso9899:199409.
6867         * CONFORMANCE: Remove comments about unsupported AMD1.
6868
6869 2007-07-17  Jakub Jelinek  <jakub@redhat.com>
6870
6871         * sysdeps/ia64/sched_cpucount.c: New file.
6872         * sysdeps/powerpc/sched_cpucount.c: New file.
6873
6874         * sysdeps/unix/sysv/linux/bits/sched.h (__sched_cpucount): Add
6875         __BEGIN_DECLS/__END_DECLS around the prototype.
6876         * bits/sched.h (__sched_cpucount): Likewise.  Make second argument
6877         pointer to const cpu_set_t.
6878
6879         * bits/types.h: Don't include stddef.h, don't define __need_size_t.
6880         * signal/signal.h <__USE_BSD || __USE_XOPEN_EXTENDED>: Define
6881         __need_size_t and include stddef.h.
6882         * sysvipc/sys/msg.h: Likewise.
6883         * posix/sched.h: Likewise.
6884         * hurd/hurd/signal.h (__need_size_t): Define.
6885
6886         * CONFORMANCE: ctype.h and wctype.h no longer define size_t,
6887         neither does signal.h in pedantic ISO C namespaces.  stdio.h
6888         no longer defines wint_t or wchar_t.
6889
6890         * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): New function.
6891         * debug/vfwprintf_chk.c (__vfwprintf_chk): Use
6892         _IO_acquire_lock_clear_flags2 instead of _IO_acquire_lock.
6893         * debug/vprintf_chk.c (__vprintf_chk): Likewise.
6894         * debug/vwprintf_chk.c (__vwprintf_chk): Likewise.
6895         * debug/vfprintf_chk.c (__vfprintf_chk): Likewise.
6896         * debug/fwprintf_chk.c (__fwprintf_chk): Likewise.
6897         * debug/printf_chk.c (__printf_chk): Likewise.
6898         * debug/fprintf_chk.c (__fprintf_chk): Likewise.
6899         * debug/wprintf_chk.c (__wprintf_chk): Likewise.
6900
6901         * sysdeps/pthread/bits/stdio-lock.h (_IO_acquire_lock_clear_flags2):
6902         Define.
6903
6904         * bits/confname.h (_CS_POSIX_V6_WIDTH_RESTRICTED_ENVS): Define.
6905         * posix/getconf.c (vars): Add POSIX_V6_WIDTH_RESTRICTED_ENVS.
6906
6907 2007-07-16  Jakub Jelinek  <jakub@redhat.com>
6908
6909         [BZ #4792]
6910         * stdlib/stdlib.h (realloc): Remove __attribute_malloc__.
6911         * malloc/malloc.h (realloc): Likewise.
6912
6913         * libio/iopopen.c (_IO_new_proc_open): Don't close child_std_end
6914         if one of proc_file_chain streams has that fileno.
6915         * stdio-common/Makefile (tests): Add tst-popen2.
6916         * stdio-common/tst-popen2.c: New test.
6917
6918 2007-07-14  Jakub Jelinek  <jakub@redhat.com>
6919
6920         * elf/ldconfig.c: Allow GPLv2 or any later version.
6921         * elf/readlib.c: Likewise.
6922         * elf/chroot_canon.c: Likewise.
6923         * elf/cache.c: Likewise.
6924         * nscd/mem.c: Likewise.
6925         * nscd/getpwuid_r.c: Likewise.
6926         * nscd/grpcache.c: Likewise.
6927         * nscd/aicache.c: Likewise.
6928         * nscd/getsrvbynm_r.c: Likewise.
6929         * nscd/nscd.c: Likewise.
6930         * nscd/servicescache.c: Likewise.
6931         * nscd/getsrvbypt_r.c: Likewise.
6932         * nscd/initgrcache.c: Likewise.
6933         * nscd/gethstbyad_r.c: Likewise.
6934         * nscd/gethstbynm2_r.c: Likewise.
6935         * nscd/getgrnam_r.c: Likewise.
6936         * nscd/nscd_setup_thread.c: Likewise.
6937         * nscd/getpwnam_r.c: Likewise.
6938         * nscd/gai.c: Likewise.
6939         * nscd/connections.c: Likewise.
6940         * nscd/dbg_log.c: Likewise.
6941         * nscd/cache.c: Likewise.
6942         * nscd/hstcache.c: Likewise.
6943         * nscd/nscd_conf.c: Likewise.
6944         * nscd/getgrgid_r.c: Likewise.
6945         * nscd/pwdcache.c: Likewise.
6946         * catgets/gencat.c: Likewise.
6947         * locale/programs/linereader.h: Likewise.
6948         * locale/programs/locarchive.c: Likewise.
6949         * locale/programs/ld-paper.c: Likewise.
6950         * locale/programs/locfile-kw.h: Likewise.
6951         * locale/programs/ld-address.c: Likewise.
6952         * locale/programs/xmalloc.c: Likewise.
6953         * locale/programs/ld-time.c: Likewise.
6954         * locale/programs/localedef.c: Likewise.
6955         * locale/programs/simple-hash.c: Likewise.
6956         * locale/programs/xstrdup.c: Likewise.
6957         * locale/programs/ld-numeric.c: Likewise.
6958         * locale/programs/locfile-kw.gperf: Likewise.
6959         * locale/programs/ld-collate.c: Likewise.
6960         * locale/programs/charmap-kw.gperf: Likewise.
6961         * locale/programs/charmap.h: Likewise.
6962         * locale/programs/charmap-kw.h: Likewise.
6963         * locale/programs/config.h: Likewise.
6964         * locale/programs/locfile.c: Likewise.
6965         * locale/programs/ld-ctype.c: Likewise.
6966         * locale/programs/charmap.c: Likewise.
6967         * locale/programs/ld-messages.c: Likewise.
6968         * locale/programs/repertoire.h: Likewise.
6969         * locale/programs/locale.c: Likewise.
6970         * locale/programs/ld-name.c: Likewise.
6971         * locale/programs/linereader.c: Likewise.
6972         * locale/programs/locfile.h: Likewise.
6973         * locale/programs/3level.h: Likewise.
6974         * locale/programs/ld-monetary.c: Likewise.
6975         * locale/programs/ld-measurement.c: Likewise.
6976         * locale/programs/charmap-dir.c: Likewise.
6977         * locale/programs/ld-identification.c: Likewise.
6978         * locale/programs/localedef.h: Likewise.
6979         * locale/programs/charmap-dir.h: Likewise.
6980         * locale/programs/repertoire.c: Likewise.
6981         * locale/programs/simple-hash.h: Likewise.
6982         * locale/programs/ld-telephone.c: Likewise.
6983         * locale/programs/locale-spec.c: Likewise.
6984         * locale/programs/locfile-token.h: Likewise.
6985         * posix/getconf.c: Likewise.
6986         * iconv/dummy-repertoire.c: Likewise.
6987         * iconv/iconv_charmap.c: Likewise.
6988         * iconv/iconvconfig.c: Likewise.
6989         * iconv/iconv_prog.c: Likewise.
6990         * malloc/memusagestat.c: Likewise.
6991         * sysdeps/unix/sysv/linux/nscd_setup_thread.c: Likewise.
6992
6993 2007-07-06  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
6994
6995         * sysdeps/sh/bsd-setjmp.S (setjmp): Use correct argument registers.
6996         * sysdeps/sh/bsd-_setjmp.S (_setjmp): Likewise.
6997         * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Do correct sanity
6998         check for the first argument.
6999
7000 2007-07-12  Jakub Jelinek  <jakub@redhat.com>
7001
7002         [BZ #4775]
7003         * math/tgmath.h (__tgmath_real_type_sub): Formatting.
7004         (__tgmath_real_type): Fix if expr is const int or other const
7005         qualified integral type.
7006         (__TGMATH_UNARY_REAL_ONLY): Rewritten to avoid using statement
7007         expressions and handle const qualified arguments.
7008         (__TGMATH_BINARY_FIRST_REAL_ONLY, __TGMATH_UNARY_REAL_IMAG,
7009         __TGMATH_UNARY_REAL_IMAG_RET_REAL): Likewise.
7010         (__TGMATH_UNARY_REAL_RET_ONLY): Rewritten to avoid using
7011         statement expressions.
7012         (__TGMATH_BINARY_REAL_ONLY, __TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY,
7013         __TGMATH_TERNARY_REAL_ONLY, __TGMATH_BINARY_REAL_IMAG): Likewise.
7014         (__TGMATH_UNARY_IMAG): Define.
7015         (conj, cproj): Use __TGMATH_UNARY_IMAG macro.
7016         * math/Makefile (tests): Add test-tgmath2.
7017         (CFLAGS-test-tgmath2.c): Add.
7018         * math/test-tgmath.c (fy, dy, ly, fz, dz, lz, count_cdouble,
7019         count_cfloat, count_cldouble): New variables.
7020         (NCCALLS): Define.
7021         (main): Check number of complex calls as well.
7022         (F(compile_test)): Add complex tests and tests with const qualified
7023         arguments.
7024         (y, z, ccount): Define.
7025         (F(cacos), F(casin), F(catan), F(ccos), F(csin), F(ctan), F(cacosh),
7026         F(casinh), F(catanh), F(ccosh), F(csinh), F(ctanh), F(cexp), F(clog),
7027         F(csqrt), F(cpow), F(cabs), F(carg), F(creal), F(cimag), F(conj),
7028         F(cproj)): New functions.
7029         * math/test-tgmath2.c: New test.
7030
7031 2007-07-11  Jakub Jelinek  <jakub@redhat.com>
7032
7033         [BZ #4776]
7034         * elf/dl-load.c (_dl_rtld_di_serinfo): Output / in LD_LIBRARY_PATH,
7035         RPATH etc. as "/" rather than "", don't segfault on empty paths,
7036         instead output ".".
7037         * dlfcn/Makefile (distribute): Add glreflib3.c.
7038         (module-names): Add glreflib3.
7039         ($(objpfx)tst-dlinfo.out): Depend on glreflib3.so rather than
7040         glreflib1.so.
7041         (LDFLAGS_glreflib3.so): New.
7042         * dlfcn/tst-dlinfo.c (do_test): Load glreflib3.so instead of
7043         glreflib1.so.
7044         * dlfcn/glreflib3.c: New file.
7045
7046         * intl/finddomain.c (_nl_find_domain): If _nl_explode_name
7047         returned -1, return NULL.
7048         * intl/explodename.c (_nl_explode_name): Return -1 if
7049         _nl_normalize_codeset failed.
7050
7051 2007-07-07  Steven Munroe  <sjmunroe@us.ibm.com>
7052
7053         * sysdeps/powerpc/powerpc32/power6/memset.S: Update comments.
7054         Specify .machine power6 to get ISA-V2.0 branch hints.  Unroll loops
7055         and avoid branch misspredicts for > 31 bytes memset case.
7056         * sysdeps/powerpc/powerpc64/power6/memset.S: Likewise.
7057         Remove toc ref to __cache_line_size.
7058
7059         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Specify .machine power4
7060         to get ISA-V2.0 branch hints.
7061         * sysdeps/powerpc/powerpc32/power4/memcpy.S: Likewise
7062         * sysdeps/powerpc/powerpc32/power4/memset.S: Likewise
7063         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
7064         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
7065         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
7066         * sysdeps/powerpc/powerpc64/power4/memset.S: Likewise.
7067         Remove toc ref to __cache_line_size.
7068
7069         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S:
7070         Include math_ldbl_opt.h.
7071
7072 2007-07-10  Ulrich Drepper  <drepper@redhat.com>
7073
7074         [BZ #4773]
7075         * time/strptime_l.c (__strptime_internal): Implement greedy
7076         matching of weekday and month names.
7077
7078 2007-07-09  Roland McGrath  <roland@redhat.com>
7079
7080         * elf/elf.h (NT_GNU_ABI_TAG): New macro.
7081         (ELF_NOTE_ABI): Use it.
7082         (NT_GNU_HWCAP, NT_GNU_BUILD_ID): New macros.
7083
7084 2007-07-09  Ulrich Drepper  <drepper@redhat.com>
7085
7086         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Add new entries.
7087         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
7088
7089 2007-07-07  Ulrich Drepper  <drepper@redhat.com>
7090
7091         [BZ #4745]
7092         * stdio-common/vfscanf.c (_IO_vfscanf): Add additional test for EOF
7093         in loop to look for conversion specifier to avoid testing of
7094         wrong errno value.
7095         * stdio-common/Makefile (tests): Add bug18, bug18a, bug19, bug19a.
7096         * stdio-common/bug18.c: New file.
7097         * stdio-common/bug18a.c: New file.
7098         * stdio-common/bug19.c: New file.
7099         * stdio-common/bug19a.c: New file.
7100
7101 2007-07-05  Mike Frysinger  <vapier@gentoo.org>
7102
7103         * Makeconfig ($(common-objpfx)gnu/lib-names.stmp): Use LC_ALL=C when
7104         running awk script.
7105
7106 2007-07-01  Jakub Jelinek  <jakub@redhat.com>
7107
7108         * elf/dl-sysdep.c (_dl_important_hwcaps): Add integer overflow check.
7109         * elf/dl-minimal.c (__libc_memalign): Likewise.  Handle malloc (0).
7110         Return NULL if mmap failed instead of asserting it does not.
7111         (calloc): Check for integer overflow.
7112
7113         * elf/dl-minimal.c (__strtoul_internal): Fix parsing of numbers bigger
7114         than LONG_MAX / 10.
7115
7116 2007-07-03  Jakub Jelinek  <jakub@redhat.com>
7117
7118         [BZ #4702]
7119         * nis/nss-default.c: Include errno.h.
7120         (init): Preserve errno.
7121
7122 2007-07-02  Ulrich Drepper  <drepper@redhat.com>
7123
7124         * sysdeps/unix/sysv/linux/bits/socket.h (PF_UNIX): Update comment.
7125
7126 2007-06-30  Ulrich Drepper  <drepper@redhat.com>
7127
7128         * sysdeps/unix/sysv/linux/bits/socket.h: Add PF_RXRPC and AF_RXRPC.
7129
7130 2007-06-29  Martin Schwidefsky  <schwidefsky@de.ibm.com>
7131
7132         * sysdeps/unix/sysv/linux/bits/socket.h: Add PF_IUCV and AF_IUCV.
7133
7134 2007-06-29  Martin Schwidefsky  <schwidefsky@de.ibm.com>
7135
7136         * sysdeps/s390/dl-procinfo.c: New file.
7137         * sysdeps/s390/dl-procinfo.h: New file.
7138         * sysdeps/unix/sysv/linux/s390/dl-procinfo.h: New file.
7139
7140 2007-06-29  Jakub Jelinek  <jakub@redhat.com>
7141
7142         * elf/dl-load.c (open_verify): Find .note.ABI-tag notes even
7143         in PT_NOTE segments with multiple notes.
7144         * elf/readelflib.c (process_elf_file): Likewise.
7145
7146 2007-06-22  Ulrich Drepper  <drepper@redhat.com>
7147
7148         * nis/nis_domain_of.c (__nis_domain_of): Make the code a bit more
7149         ISO C compliant.
7150
7151 2007-06-19  Ulrich Drepper  <drepper@redhat.com>
7152
7153         * elf/dl-close.c (free_mem): Free _dl_scope_free_list.
7154
7155 2007-06-13  Jakub Jelinek  <jakub@redhat.com>
7156
7157         * include/link.h: Don't include rtld-lowlevel.h.
7158         (struct link_map): Remove l_scope_lock.
7159         * sysdeps/generic/ldsodefs.h: Don't include rtld-lowlevel.h.
7160         (_dl_scope_free_list): New field (variable) in _rtld_global.
7161         (DL_LOOKUP_SCOPE_LOCK): Remove.
7162         (_dl_scope_free): New prototype.
7163         * elf/dl-runtime.c (_dl_fixup): Don't use __rtld_mrlock_*lock.
7164         Don't pass DL_LOOKUP_SCOPE_LOCK to _dl_lookup_symbol_x.
7165         (_dl_profile_fixup): Likewise.
7166         * elf/dl-sym.c (do_sym): Likewise.  Use wrapped _dl_lookup_symbol_x
7167         whenever !RTLD_SINGLE_THREAD_P, use THREAD_GSCOPE_SET_FLAG and
7168         THREAD_GSCOPE_RESET_FLAG around it.
7169         * elf/dl-close.c (_dl_close_worker): Don't use
7170         __rtld_mrlock_{change,done}.  Call _dl_scope_free on the old
7171         scope.  Make sure THREAD_GSCOPE_WAIT () happens if any old
7172         scopes were queued or if l_scope_mem has been abandoned.
7173         * elf/dl-open.c (_dl_scope_free): New function.
7174         (dl_open_worker): Use it.  Don't use __rtld_mrlock_{change,done}.
7175         * elf/dl-support.c (_dl_scope_free_list): New variable.
7176         * elf/dl-lookup.c (add_dependency): Remove flags argument.
7177         Remove DL_LOOKUP_SCOPE_LOCK handling.
7178         (_dl_lookup_symbol_x): Adjust caller.  Remove DL_LOOKUP_SCOPE_LOCK
7179         handling.
7180         * elf/dl-object.c (_dl_new_object): Don't use
7181         __rtld_mrlock_initialize.
7182
7183 2007-06-19  Ulrich Drepper  <drepper@redhat.com>
7184
7185         * sysdeps/generic/ldsodefs.h (rtld_global): Reorder some elements
7186         to fill in holes
7187         (rtld_global_ro): Likewise.
7188
7189 2007-06-18  Jakub Jelinek  <jakub@redhat.com>
7190
7191         * elf/dl-addr.c (_dl_addr): Skip PT_LOAD checking if l_contiguous.
7192         Move PT_LOAD checking to...
7193         (_dl_addr_inside_object): ... here, new function.
7194         * elf/dl-sym.c (do_sym): If not l_contiguous,
7195         call _dl_addr_inside_object.
7196         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise.
7197         * dlfcn/dlinfo.c (dlinfo_doit): Likewise.
7198         * elf/dl-open.c (dl_open_worker): Likewise.
7199         (_dl_addr_inside_object): New function if IS_IN_rtld.
7200         * elf/dl-load.c (_dl_map_object_from_fd): Set l_contiguous if no
7201         holes are present or are PROT_NONE protected.
7202         * include/link.h (struct link_map): Add l_contiguous field.
7203         * sysdeps/generic/ldsodefs.h (_dl_addr_inside_object): New prototype.
7204
7205 2007-06-18  Jakub Jelinek  <jakub@redhat.com>
7206             Tomas Janousek  <tjanouse@redhat.com>
7207             Ulrich Drepper  <drepper@redhat.com>
7208
7209         [BZ #4647]
7210         * resolv/res_send.c (send_dg): Remove socket_pf.  Use ipv6_unavail
7211         member in __res_state, only convaddr4to6 if nssocks[ns] is a PF_INET6
7212         socket.
7213         * resolv/resolv.h (__res_state): Add ipv6_unavail member.  Make
7214         unused member a bitmap.
7215         * resolv/res_init.c (__res_vinit): Reset ipv6_unavail if IPv6
7216         servers are configured.
7217
7218 2007-06-18  Jakub Jelinek  <jakub@redhat.com>
7219
7220         * elf/rtld.c (dl_main): Don't call init_tls more than once.
7221
7222 2007-06-17  Andreas Schwab  <schwab@suse.de>
7223
7224         * sysdeps/generic/initfini.c: Tell gcc about the nonstandard sections.
7225
7226 2007-06-16  Andreas Jaeger  <aj@suse.de>
7227
7228         [BZ #4125]
7229         * sysdeps/unix/sysv/linux/sys/ptrace.h
7230         (PTRACE_O_TRACESYSGOOD, PTRACE_O_TRACEFORK,
7231         PTRACE_O_TRACEVFORK, PTRACE_O_TRACECLONE, PTRACE_O_TRACEEXEC,
7232         PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT, PTRACE_O_MASK,
7233         PTRACE_EVENT_FORK, PTRACE_EVENT_VFORK, PTRACE_EVENT_CLONE,
7234         PTRACE_EVENT_EXEC, PTRACE_EVENT_VFORK_DONE, PTRACE_EVENT_EXIT):
7235         Define.
7236         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
7237         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
7238         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
7239         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
7240
7241 2007-06-16  Ulrich Drepper  <drepper@redhat.com>
7242
7243         [BZ #4599]
7244         * sysdeps/unix/sysv/linux/check_pf.c (make_request): When
7245         determining whether there are IPv4/IPv6 addresses, ignore loopback
7246         addresses.
7247
7248 2007-06-14 Uros Bizjak <ubizjak@gmail.com>
7249
7250         * soft-fp/soft-fp.h (CMPtype): Define to "int" if undefined.
7251         * soft-fp/eqdf2.c (__eqdf2): Use CMPtype instead of int
7252         as the return type.  Change type of "r" variable to CMPtype.
7253         * soft-fp/eqsf2.c (__eqsf2): Likewise.
7254         * soft-fp/eqtf2.c (__eqtf2): Likewise.
7255         * soft-fp/gedf2.c (__gedf2): Likewise.
7256         * soft-fp/gesf2.c (__gesf2): Likewise.
7257         * soft-fp/getf2.c (__getf2): Likewise.
7258         * soft-fp/ledf2.c (__ledf2): Likewise.
7259         * soft-fp/lesf2.c (__lesf2): Likewise.
7260         * soft-fp/letf2.c (__letf2): Likewise.
7261         * soft-fp/unorddf2 (__unorddf2): Likewise.
7262         * soft-fp/unordsf2 (__unordsf2): Likewise.
7263         * soft-fp/unordtf2 (__unordtf2): Likewise.
7264
7265 2007-06-09  Ulrich Drepper  <drepper@redhat.com>
7266
7267         * elf/do-lookup.h (do_lookup_x): Read r_nlist before r_list and
7268         make sure gcc doesn't mess around with this.
7269
7270 2007-06-08  Ulrich Drepper  <drepper@redhat.com>
7271
7272         * elf/dl-lookup.c (_dl_lookup_symbol_x): Remove use of r_nlist.
7273
7274 2007-06-08  Jakub Jelinek  <jakub@redhat.com>
7275
7276         * elf/dl-close.c (_dl_close_worker): Remove all to be removed
7277         libraries from the global scope at once and call THREAD_GSCOPE_WAIT
7278         at most once per _dl_close_worker.
7279
7280 2007-06-08  Ulrich Drepper  <drepper@redhat.com>
7281
7282         * sysdeps/unix/sysv/linux/bits/sched.h: Make second parameter of
7283         __sched_cpucount as const.
7284         * posix/sched_cpucount.c: Adjust.
7285
7286         * posix/sched_cpucount.c (__sched_cpucount): Allow using special
7287         instruction for counting bits.
7288         * sysdeps/x86_64/sched_cpucount.c: New file.
7289
7290 2007-06-07  Ulrich Drepper  <drepper@redhat.com>
7291
7292         * configure.in: Avoid variable named BASH.
7293         * config.make.in: Likewise.
7294         Patch in part by Mike Frysinger.
7295
7296 2007-06-06  Jakub Jelinek  <jakub@redhat.com>
7297
7298         [BZ #4586]
7299         * sysdeps/i386/ldbl2mpn.c (__mpn_extract_long_double): Treat
7300         pseudo-zeros as zero.
7301         * sysdeps/x86_64/ldbl2mpn.c: New file.
7302         * sysdeps/ia64/ldbl2mpn.c: New file.
7303
7304 2007-06-04  Jakub Jelinek  <jakub@redhat.com>
7305
7306         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (nextafterl): Remove
7307         unused ily variable.  Fix nextafterl on +-__LDBL_MAX__ and +-Inf.
7308         Remove unreachable code at the end.
7309
7310 2007-06-01  Steven Munroe  <sjmunroe@us.ibm.com>
7311
7312         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Correct description of
7313         ldbl-128ibm in comment.
7314         (fpclassifyl): Correct classification of denormals.
7315         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (nextafterl): Correct
7316         return value for MIN denormal. Rewrite using long double math too
7317         correctly handle denormals and canonicalize the results.
7318
7319 2007-06-05  Jakub Jelinek  <jakub@redhat.com>
7320
7321         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c
7322         (__mpn_construct_long_double): Fix conversion where result ought
7323         to be smaller than __LDBL_MIN__, or the low double should be
7324         denormal.  Fix decision where to negate low double - honor round
7325         to even rules.
7326         * stdio-common/tst-sprintf2.c: Include string.h.
7327         (COMPARE_LDBL): Define.
7328         (TEST): Also test whether a string hexadecimal float representation
7329         can be parsed back to the number.
7330         (main): Add a couple of further tests.
7331
7332 2007-06-04  Jakub Jelinek  <jakub@redhat.com>
7333
7334         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c
7335         (PRINT_FPHEX_LONG_DOUBLE): Fix printing numbers where lower double
7336         is non-zero, but smaller than 2 * __DBL_MIN__.
7337         * stdio-common/tst-sprintf2.c: New test.
7338         * stdio-common/Makefile (tests): Add tst-sprintf2.
7339
7340         * math/test-misc.c (main): Don't run last batch of tests with
7341         IBM long double format.
7342
7343 2007-05-31  Steven Munroe  <sjmunroe@us.ibm.com>
7344
7345         * sysdeps/powerpc/powerpc32/970/fpu/Implies: New file.
7346         * sysdeps/powerpc/powerpc32/power5/fpu/Implies: New file.
7347         * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: New file.
7348         * sysdeps/powerpc/powerpc32/power6/fpu/Implies: New file.
7349         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: New file.
7350         * sysdeps/powerpc/powerpc64/970/fpu/Implies: New file.
7351         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: New file.
7352         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: New file.
7353         * sysdeps/powerpc/powerpc64/power6/fpu/Implies: New file.
7354         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: New file.
7355         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: New file.
7356         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies:
7357         New file.
7358         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies:
7359         New file.
7360         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies:
7361         New file.
7362         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies:
7363         New file.
7364         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies:
7365         New file.
7366         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: New file.
7367         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies:
7368         New file.
7369         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies:
7370         New file.
7371         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies:
7372         New file.
7373         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies:
7374         New file.
7375         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies:
7376         New file.
7377
7378 2007-05-31  Steven Munroe  <sjmunroe@us.ibm.com>
7379
7380         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S: Move.
7381         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: To here.
7382         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrintf.S: Move.
7383         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: To here.
7384         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llround.S: Move.
7385         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: To here.
7386         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llroundf.S: Move.
7387         * sysdeps/powerpc/powerpc32/power4/fpu/s_llroundf.S: To here.
7388
7389 2007-05-22  Steven Munroe  <sjmunroe@us.ibm.com>
7390
7391         * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S
7392         (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
7393         * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S
7394         (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
7395         * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S
7396         (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
7397         * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S
7398         (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
7399
7400 2007-05-21  Steven Munroe  <sjmunroe@us.ibm.com>
7401
7402         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: New file.
7403         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.c: New file.
7404         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: New file.
7405         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: New file.
7406
7407 2007-03-15  Steven Munroe  <sjmunroe@us.ibm.com>
7408
7409         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S
7410         [LONG_DOUBLE_COMPAT]: Add compat_symbol for llrintl@@GLIBC_2_1.
7411
7412 2006-02-13  Steven Munroe  <sjmunroe@us.ibm.com>
7413
7414         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: New File
7415         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: New File
7416         * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: New File
7417         * sysdeps/powerpc/powerpc32/power6/fpu/s_llroundf.S: New File
7418
7419 2006-10-20  Steven Munroe  <sjmunroe@us.ibm.com>
7420
7421         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: New file.
7422         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: New file.
7423
7424 2006-10-03  Steven Munroe  <sjmunroe@us.ibm.com>
7425
7426         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llround.S: New file.
7427         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llroundf.S: New file.
7428
7429         * sysdeps/powerpc/powerpc32/powerpc64/fpu/Makefile: Moved.
7430         * sysdeps/powerpc/powerpc32/powerpc64/fpu/mpa.c: Likewise.
7431         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile: To here.
7432         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
7433
7434 2006-09-29  Steven Munroe  <sjmunroe@us.ibm.com>
7435
7436         * sysdeps/powerpc/powerpc32/power6x/fpu/s_lrint.S: New file.
7437         * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: New file.
7438         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: New file.
7439         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: New file.
7440
7441 2006-09-28  Steven Munroe  <sjmunroe@us.ibm.com>
7442
7443         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: New file.
7444         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llroundf.S: New file.
7445         * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: New file.
7446         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: New file.
7447         * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: New file.
7448         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: New file.
7449
7450 2006-08-31  Steven Munroe  <sjmunroe@us.ibm.com>
7451
7452         * sysdeps/powerpc/powerpc32/powerpc64/fpu/Makefile: New file.
7453         * sysdeps/powerpc/powerpc32/powerpc64/fpu/mpa.c: New file.
7454         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile: New file.
7455         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: New file.
7456
7457 2006-06-15  Steven Munroe  <sjmunroe@us.ibm.com>
7458
7459         * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceil.S: New file.
7460         * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceilf.S: New file.
7461         * sysdeps/powerpc/powerpc32/power5+/fpu/s_floor.S: New file.
7462         * sysdeps/powerpc/powerpc32/power5+/fpu/s_floorf.S: New file.
7463         * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S: New file.
7464         * sysdeps/powerpc/powerpc32/power5+/fpu/s_roundf.S: New file.
7465         * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S: New file.
7466         * sysdeps/powerpc/powerpc32/power5+/fpu/s_truncf.S: New file.
7467         * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceil.S: New file.
7468         * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceilf.S: New file.
7469         * sysdeps/powerpc/powerpc64/power5+/fpu/s_floor.S: New file.
7470         * sysdeps/powerpc/powerpc64/power5+/fpu/s_floorf.S: New file.
7471         * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S: New file.
7472         * sysdeps/powerpc/powerpc64/power5+/fpu/s_roundf.S: New file.
7473         * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S: New file.
7474         * sysdeps/powerpc/powerpc64/power5+/fpu/s_truncf.S: New file.
7475
7476 2006-03-20  Steven Munroe  <sjmunroe@us.ibm.com>
7477
7478         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S: New file.
7479         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrintf.S: New file.
7480
7481 2007-06-01  Steven Munroe  <sjmunroe@us.ibm.com>
7482
7483         * sysdeps/powerpc/powerpc32/power6/memset.S: New file.
7484         * sysdeps/powerpc/powerpc64/power6/memset.S: New file.
7485
7486 2007-05-31  Steven Munroe  <sjmunroe@us.ibm.com>
7487
7488         * sysdeps/powerpc/powerpc32/970/Implies: New file.
7489         * sysdeps/powerpc/powerpc32/power5/Implies: New file.
7490         * sysdeps/powerpc/powerpc32/power5+/Implies: New file.
7491         * sysdeps/powerpc/powerpc32/power6/Implies: New file.
7492         * sysdeps/powerpc/powerpc32/power6x/Implies: New file.
7493         * sysdeps/powerpc/powerpc64/970/Implies: New file.
7494         * sysdeps/powerpc/powerpc64/power5/Implies: New file.
7495         * sysdeps/powerpc/powerpc64/power5+/Implies: New file.
7496         * sysdeps/powerpc/powerpc64/power6/Implies: New file.
7497         * sysdeps/powerpc/powerpc64/power6x/Implies: New file.
7498
7499 2007-05-21  Steven Munroe  <sjmunroe@us.ibm.com>
7500
7501         * sysdeps/powerpc/powerpc32/power4/memset.S: New file
7502
7503 2007-03-13  Steven Munroe  <sjmunroe@us.ibm.com>
7504
7505         * sysdeps/powerpc/powerpc64/memcpy.S: Improve aligned loop to minimize
7506         branch miss-predicts. Ensure that cache line crossing does not impact
7507         dispatch grouping.
7508
7509 2006-12-13  Steven Munroe  <sjmunroe@us.ibm.com>
7510
7511         * sysdeps/powerpc/powerpc64/power4/memcopy.h: Replace with include
7512         "../../powerpc32/power4/memcopy.h".
7513         * sysdeps/powerpc/powerpc64/power4/wordcopy.c: Replace with include
7514         "../../powerpc32/power4/wordcopy.c".
7515
7516 2006-10-03  Steven Munroe  <sjmunroe@us.ibm.com>
7517
7518         * sysdeps/powerpc/powerpc32/powerpc64/Makefile: Moved.
7519         * sysdeps/powerpc/powerpc32/powerpc64/memcopy.h: Likewise.
7520         * sysdeps/powerpc/powerpc32/powerpc64/wordcopy.c: Likewise.
7521         * sysdeps/powerpc/powerpc32/power4/Makefile: To here.
7522         * sysdeps/powerpc/powerpc32/power4/memcopy.h: Likewise.
7523         * sysdeps/powerpc/powerpc32/power4/wordcopy.c: Likewise.
7524
7525 2006-09-10  Steven Munroe  <sjmunroe@us.ibm.com>
7526
7527         * sysdeps/powerpc/powerpc32/power6/memcpy.S: New file.
7528
7529 2006-08-31  Steven Munroe  <sjmunroe@us.ibm.com>
7530
7531         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: New file.
7532         * sysdeps/powerpc/powerpc32/powerpc64/Makefile: New file.
7533         * sysdeps/powerpc/powerpc32/powerpc64/memcopy.h: New file.
7534         * sysdeps/powerpc/powerpc32/powerpc64/wordcopy.c: New file.
7535         * sysdeps/powerpc/powerpc64/power4/Makefile: New file.
7536         * sysdeps/powerpc/powerpc64/power4/memcopy.h: New file.
7537         * sysdeps/powerpc/powerpc64/power4/wordcopy.c: New file.
7538         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: New file.
7539
7540 2006-07-06  Steven Munroe  <sjmunroe@us.ibm.com>
7541
7542         * sysdeps/powerpc/powerpc64/power6/memcpy.S: New file.
7543
7544 2006-03-20  Steven Munroe  <sjmunroe@us.ibm.com>
7545
7546         * sysdeps/powerpc/powerpc32/power4/memcmp.S: New file.
7547         * sysdeps/powerpc/powerpc32/power4/memcpy.S: New file.
7548         * sysdeps/powerpc/powerpc32/power4/memset.S: New file.
7549         * sysdeps/powerpc/powerpc32/power4/strncmp.S: New file.
7550         * sysdeps/powerpc/powerpc64/power4/memcmp.S: New file.
7551         * sysdeps/powerpc/powerpc64/power4/memcpy.S: New file.
7552         * sysdeps/powerpc/powerpc64/power4/strncmp.S: New file.
7553
7554 2007-05-29  Roland McGrath  <roland@redhat.com>
7555
7556         * po/Makefile (po-sed-cmd): New variable.
7557         (libc.pot.files): Move sed command text in there, avoid \ inside ''.
7558
7559 2007-05-29  Ulrich Drepper  <drepper@redhat.com>
7560
7561         * crypt/md5-crypt.c: Fix comment.
7562
7563         * nscd/nscd_helper.c (get_mapping): Handle short replies instead
7564         of crashing.  When this is the case or if the reply is malformed,
7565         don't try to close the new file descriptor since it does not
7566         exist.
7567         Patch in part by Guillaume Chazarain <guichaz@yahoo.fr>.
7568
7569 2007-05-28  Jakub Jelinek  <jakub@redhat.com>
7570
7571         * sysdeps/unix/sysv/linux/futimes.c (miss_utimensat): Don't define
7572         if __NR_utimensat is not defined.
7573
7574 2007-05-26  Ulrich Drepper  <drepper@redhat.com>
7575
7576         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Include <sysdep.h>.
7577
7578 2007-05-25  Jakub Jelinek  <jakub@redhat.com>
7579
7580         * io/bits/fcntl2.h (__open_2): Add nonnull attribute.
7581         (open): Fix comment typos.  Don't call __open_2 if flags
7582         is a compile time constant without O_CREAT.
7583         (__open64_2): Add nonnull attribute.
7584         (open64): Fix comment typos.  Don't call __open64_2 if flags
7585         is a compile time constant without O_CREAT.
7586         (__openat_2): Add nonnull attribute, fix nonnull attribute
7587         on redirect.
7588         (openat): Fix comment typos.  Don't call __openat_2 if flags
7589         is a compile time constant without O_CREAT.
7590         (__openat64_2): Add nonnull attribute, fix nonnull attribute
7591         on redirect.
7592         (openat64): Fix comment typos.  Don't call __openat64_2 if flags
7593         is a compile time constant without O_CREAT.
7594
7595 2007-05-24  Ulrich Drepper  <drepper@redhat.com>
7596
7597         * Makerules (sysd-rules): Define PTW for ptw-* files.
7598         * Versions: Define GLIBC_2.7 for libc.
7599         * include/stdio.h: Declare __fortify_fail.
7600         * debug/fortify_fail.c: New file.
7601         * debug/Makefile (routines): Add fortify_fail.
7602         * debug/chk_fail.c: Use __fortify_fail.
7603         * debug/stack_chk_fail.c: Likewise.
7604         * io/Versions: Export __open_2, __open64_2, __openat_2, and
7605         __openat64_2 for GLIBC_2.7.
7606         * io/fcntl.h: When compiling with fortification, include bits/fcntl2.h.
7607         * io/open.c: Define *_2 variant of function which checks for O_CREAT
7608         and fails if necessary.
7609         * io/open64.c: Likewise.
7610         * io/openat.c: Likewise.
7611         * io/openat64.c: Likewise.
7612         * sysdeps/unix/sysv/linux/open64.c: Likewise.
7613         * sysdeps/unix/sysv/linux/openat.c: Likewise.
7614         * sysdeps/unix/sysv/linux/openat64.c: Likewise.
7615         * io/bits/fcntl2.h: New file.
7616         * include/fcntl.h: Declare __open_2, __open64_2, __openat_2, and
7617         __openat64_2.
7618         * include/bits/fcntl2.h: New file.
7619         * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
7620         Add open_2.
7621         * sysdeps/unix/sysv/linux/open_2.c: New file.
7622
7623 2007-05-21  Ulrich Drepper  <drepper@redhat.com>
7624
7625         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Pass correct value
7626         as second parameter to handle_intel.
7627
7628         * nscd/aicache.c (addhstaiX): If reported TTL is zero don't cache
7629         the entry.
7630
7631         * sysdeps/unix/sysv/linux/x86_64/sysconf.c: Move cache information
7632         handling to ...
7633         * sysdeps/x86_64/cacheinfo.c: ... here.  New file.
7634         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
7635         cacheinfo.
7636         * sysdeps/x86_64/memcpy.S: Complete rewrite.
7637         * sysdeps/x86_64/mempcpy.S: Adjust appropriately.
7638         Patch by Evandro Menezes <evandro.menezes@amd.com>.
7639
7640         * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: New file.
7641
7642 2007-05-21  Jakub Jelinek  <jakub@redhat.com>
7643
7644         [BZ #4525]
7645         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add epoll_pwait.
7646         * sysdeps/unix/sysv/linux/epoll_pwait.c: New file.
7647         * sysdeps/unix/sysv/linux/syscalls.list (epoll_pwait): Remove.
7648
7649         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h (epoll_pwait): Declare.
7650
7651         [BZ #4514]
7652         * stdio-common/vfprintf.c (vfprintf): Don't shadow workstart variable,
7653         reinitialize workend at the start of each do_positional format spec
7654         loop, free workstart before do_positional loops.
7655         (printf_unknown): Fix size of work_buffer.
7656         * stdio-common/tst-sprintf.c (main): Add 3 new testcases.
7657
7658         * malloc/hooks.c (MALLOC_STATE_VERSION): Bump.
7659         (public_sET_STATe): If ms->version < 3, put all chunks into
7660         unsorted chunks and clear {fd,bk}_nextsize fields of largebin
7661         chunks.
7662
7663         * malloc/malloc.c [MALLOC_DEBUG]: Revert 2007-05-13 changes.
7664         * malloc/hooks.c: Likewise.
7665         * malloc/arena.c: Likewise.
7666         * malloc/malloc.c (do_check_malloc_state): Don't assert
7667         n_mmaps is not greater than n_mmaps_max.  This removes the need
7668         for the previous change.
7669
7670         * malloc/Makefile (CFLAGS-malloc.c): Revert accidental
7671         2007-05-07 commit.
7672
7673 2007-05-19  Ulrich Drepper  <drepper@redhat.com>
7674
7675         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PRIVATE_FUTEX):
7676         Define for kernel >= 2.6.22.
7677
7678 2007-05-18  Ulrich Drepper  <drepper@redhat.com>
7679
7680         * elf/dl-close.c (_dl_close_worker): When removing object from
7681         global scope, wait for all lookups to finish afterwards.
7682         * elf/dl-open.c (add_to_global): When global scope array must
7683         grow, allocate a new one and free old array only after all
7684         lookups finish.
7685         * elf/dl-runtime.c (_dl_fixup): Protect using global scope.
7686         (_dl_lookup_symbol_x): Likewise.
7687         * elf/dl-support.c: Define _dl_wait_lookup_done.
7688         * sysdeps/generic/ldsodefs.h (struct rtld_global): Add
7689         _dl_wait_lookup_done.
7690
7691         * malloc/malloc.c (do_check_chunk): Correct check for mmaped block
7692         not overlapping with arena.
7693
7694         * malloc/mcheck.c (reallochook): If size==0, free the block.
7695
7696         * rt/tst-shm.c: Use fstat64 instead of fstat.
7697
7698         * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Fix case where
7699         __NR_sync_file_range is not defined.
7700
7701 2007-05-17  Ulrich Drepper  <drepper@redhat.com>
7702
7703         Dummy files to prevent stub versions from being used.
7704         * sysdeps/x86_64/fpu/k_cosl.c: New file.
7705         * sysdeps/x86_64/fpu/k_rem_pio2l.c: New file.
7706         * sysdeps/x86_64/fpu/k_sinl.c: New file.
7707         * sysdeps/x86_64/fpu/k_tanl.c: New file.
7708
7709         * version.h (VERSION): Set to 2.6.90.
7710
7711 2007-05-14  Ulrich Drepper  <drepper@redhat.com>
7712
7713         * version.h (VERSION): Define to 2.6.
7714         * include/features.h (__GLIBC_MINOR__): Define to 6.
7715
7716         * malloc/malloc.c: Use all small bin slots on 64-bit archs.
7717
7718         * malloc/malloc.c (largebin_index): Really have 32 buckets with 64
7719         sizes.
7720
7721 2007-05-13  Ulrich Drepper  <drepper@redhat.com>
7722
7723         * malloc/malloc.c [MALLOC_DEBUG]: Keep track of current maximum
7724         number of mmaps.  n_mmaps_max is the target.
7725         * malloc/hooks.c: Likewise.
7726         * malloc/arena.c: Likewise.
7727
7728 2007-05-12  Andreas Jaeger  <aj@suse.de>
7729
7730         * sysdeps/unix/sysv/linux/tst-getcpu.c: Include <unistd.h> for
7731         getpid.
7732
7733 2007-05-11  Ulrich Drepper  <drepper@redhat.com>
7734
7735         * elf/dl-close.c (_dl_close_worker): Help gcc to optimize by
7736         adding new variables.
7737
7738         * elf/dl-open.c (add_to_global): Introduce variable ns to help gcc
7739         optimize.  Completely extend global scope array before making the
7740         new entries visible.
7741
7742 2007-05-10  Ulrich Drepper  <drepper@redhat.com>
7743
7744         * sysdeps/unix/sysv/linux/tst-getcpu.c: New file.
7745         * sysdeps/unix/sysv/linux/Makefile [subdir=posix] (tests): Add
7746         tst-getcpu.
7747
7748         * include/link.h: Move l_version and l_nversion members around to
7749         fill gaps.
7750
7751         * scripts/check-c++-types.sh: Don't use -fnu89-inline option.
7752
7753         * sysdeps/unix/sysv/linux/sched_setaffinity.c
7754         (__sched_setaffinity_new): If syscall was successful and
7755         RESET_VGETCPU_CACHE is defined, use it before returning.
7756         * sysdeps/unix/sysv/linux/x86_64/sched_setaffinity.c: New file.
7757
7758         * io/sys/stat.h: Make sure struct timespec is defined for
7759         __USE_ATFILE.
7760
7761         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Define UTIME_NOW and
7762         UTIME_OMIT.
7763         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
7764         * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
7765         * sysdeps/unix/sysv/linux/alpha/bits/stat.h: Likewise.
7766         * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
7767         * sysdeps/unix/sysv/linux/bits/stat.h: Likewise.
7768         * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
7769         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_UTIMENSAT.
7770         * io/sys/stat.h: Declare utimensat, futimens.
7771         * io/utimensat.c: New file.
7772         * io/futimens.c: New file.
7773         * sysdeps/unix/sysv/linux/utimensat.c: New file.
7774         * sysdeps/unix/sysv/linux/futimens.c: New file.
7775         * io/Makefile (routines): Add utimensat, futimens.
7776         * io/Versions: Add utimensat, futimens to GLIBC_2.6.
7777         * sysdeps/unix/sysv/linux/lutimes.c: New file.
7778         * sysdeps/unix/sysv/linux/futimes.c: Use utimensat syscall if
7779         available.
7780
7781         * include/sys/cdefs.h: Redefine __nonnull so that test for
7782         incorrect parameters in the libc code itself are not omitted.
7783
7784 2007-05-09  Jakub Jelinek  <jakub@redhat.com>
7785
7786         * sysdeps/ia64/fpu/fraiseexcpt.c (feraiseexcept): Don't raise overflow
7787         exception in addition to inexact when asked to raise only FE_INEXACT.
7788
7789         [BZ #3427]
7790         * sysdeps/s390/fpu/feholdexcpt.c (feholdexcept): Don't clear exceptions
7791         in *envp.
7792
7793 2007-05-07  Ulrich Drepper  <drepper@redhat.com>
7794
7795         [BZ #4403]
7796         * string/strfry.c (strfry): Make result more random.
7797
7798 2007-05-07  Richard Henderson  <rth@redhat.com>
7799
7800         * sysdeps/alpha/fpu/bits/mathinline.h (__isnanl): Don't define
7801         if __NO_LONG_DOUBLE_MATH.
7802         * sysdeps/unix/sysv/linux/alpha/ioperm.c: If BWX insns not
7803         available in the compiler, add .arch directive to the assembly.
7804
7805 2007-05-07  Jakub Jelinek  <jakub@redhat.com>
7806
7807         * sysdeps/alpha/fpu/s_nearbyint.c (nearbyintl): Fix version on
7808         compat_symbol to GLIBC_2_1.
7809         * sysdeps/alpha/fpu/s_fmin.S (fminl): Likewise.
7810         * sysdeps/alpha/fpu/s_trunc.c (truncl): Likewise.
7811         * sysdeps/alpha/fpu/s_fmax.S (fmaxl): Likewise.
7812         * sysdeps/alpha/fpu/s_lrint.c (lrintl, llrintl): Likewise.
7813         * sysdeps/alpha/fpu/s_lround.c (lroundl, llroundl): Likewise.
7814         * sysdeps/alpha/fpu/s_round.c (roundl): Likewise.
7815         * sysdeps/alpha/fpu/s_isnan.c (isnanl): Provide compat_symbol in
7816         libc, not libm.
7817         (__isnanl): New compat_symbol.
7818
7819 2007-05-07  Ulrich Drepper  <drepper@redhat.com>
7820             Jakub Jelinek  <jakub@redhat.com>
7821
7822         * malloc/arena.c (heap_info): Add mprotect_size field, adjust pad.
7823         (new_heap): Initialize mprotect_size.
7824         (grow_heap): When growing, only mprotect from mprotect_size till
7825         new_size if mprotect_size is smaller.  When shrinking, use PROT_NONE
7826         MMAP for __libc_enable_secure only, otherwise use MADV_DONTNEED.
7827
7828 2007-04-30  Steven Munroe  <sjmunroe@us.ibm.com>
7829             Peter Bergner  <bergner@us.ibm.com>
7830
7831         * sysdeps/powerpc/bits/fenv.h: Declare __fe_mask_env extern.
7832         Define FE_NOMASK_ENV as FE_EANBLED_ENV.  Define FE_MASK_ENV.
7833         * sysdeps/powerpc/fpu/Makefile: Add fe_mask to libm-support.
7834         * sysdeps/powerpc/fpu/fe_mask.c: New file.
7835         * sysdeps/powerpc/fpu/fe_nomask.c: Correct comment.
7836         * sysdeps/powerpc/fpu/fedisblxcpt.c (fedisableexcept):
7837         Call __fe_mask_env() if all FP exceptions disabled.
7838         * sysdeps/powerpc/fpu/feholdexcpt.c (feholdexcept): Copy high 32-bits
7839         from old FPSCR to new fenv to propagate DFP rounding modes.
7840         Call __fe_mask_env() if FP exceptions previously enabled.
7841         * sysdeps/powerpc/fpu/fesetenv.c (fesetenv): Change mask to merge
7842         exceptions from env.  Use __fe_nomask_env() or __fe_mask_env() when
7843         transitioning from all exceptions disabled to any exception enabled
7844         or visa versa.
7845         * sysdeps/powerpc/fpu/feupdateenv.c (__feupdateenv): Change mask to
7846         merge exceptions from env.  Call __fe_nomask_env or __fe_mask_env
7847         when transitioning from all exceptions disabled to any exception
7848         enabled or visa versa.
7849         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fe_nomask.c: Moved to...
7850         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c: ...here.
7851         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c: Moved to...
7852         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c: ...here.
7853         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c: New file.
7854         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c: New file.
7855
7856 2007-05-06  Ulrich Drepper  <drepper@redhat.com>
7857
7858         [BZ #4465]
7859         * posix/unistd.h: Remove __THROW from fdatasync.
7860
7861 2007-05-06  Mike Frysinger  <vapier@gentoo.org>
7862
7863         [BZ #4465]
7864         * sysdeps/unix/sysv/linux/syscalls.list (fdatasync): Add "C" to args.
7865
7866 2007-05-06  Ulrich Drepper  <drepper@redhat.com>
7867
7868         * stdio-common/vfprintf.c (process_string_arg): Optimize
7869         ridiculous precision in wide char code printing multi-byte string.
7870         Reported by Jim Meyering <jim@meyering.net>.
7871
7872         [BZ #4131]
7873         * elf/dl-addr.c (_dl_addr): Compare address with actual segment
7874         boundaries to work around systems with overlapping binary loading.
7875         Based on a patch by Suzuki <suzuki@in.ibm.com>.
7876
7877 2007-05-04  Ulrich Drepper  <drepper@redhat.com>
7878
7879         * stdio-common/vfprintf.c (process_string_arg): Adjust call to
7880         __mbsnrtowcs after last change.
7881
7882         * locale/programs/linereader.c (get_symname): Fix adding final NUL.
7883         (get_ident): Likewise.
7884
7885 2007-05-03  Jakub Jelinek  <jakub@redhat.com>
7886
7887         * soft-fp/op-common.h (FP_TRUNC): Replace raising of FP_EX_INEXACT
7888         with setting the sticky bit.
7889         * math/test-misc.c (main): Add more truncation tests.
7890
7891 2007-04-14  Uros Bizjak  <ubizjak@gmail.com>
7892
7893         * soft-fp/floatunsidf.c (__floatunsidf): Use DFtype instead of
7894         double in the function declaration.
7895         * soft-fp/floatundidf.c (__floatundidf): Use DFtype instead of
7896         double in the function declaration.
7897         * soft-fp/floatunsisf.c (__floatunsisf): Use SFtype instead of
7898         float in the function declaration.
7899         * soft-fp/floatunsisf.c (__floatunsisf): Use SFtype instead of
7900         float in the function declaration.
7901
7902         * soft-fp/extended.h (FP_UNPACK_RAW_E): Do not increase X##_e for
7903         denormal operands.  Do not generate FP_EX_DENORM exception.
7904         (FP_UNPACK_RAW_EP): Ditto.
7905         (FP_UNPACK_SEMIRAW_E): Use FP_UNPACK_RAW_E instead of
7906         undefined _FP_UNPACK_RAW_E.
7907         (FP_UNPACK_SEMIRAW_EP): Use FP_UNPACK_RAW_EP instead of
7908         undefined _FP_UNPACK_RAW_EP.
7909         (FP_PACK_SEMIRAW_E): Use FP_PACK_RAW_E instead of
7910         undefined _FP_PACK_RAW_E.
7911         (FP_PACK_SEMIRAW_EP): Use FP_PACK_RAW_EP instead of
7912         undefined _FP_PACK_RAW_EP.
7913
7914         * soft-fp/op-2.h (_FP_FRAC_COPY_2_2): Define as alias to
7915         _FP_FRAC_COPY_2.
7916         * soft-fp/op-4.h (_FP_FRAC_COPY_2_2): Define as alias to
7917         _FP_FRAC_COPY_4.
7918
7919 2007-04-16  Uros Bizjak  <ubizjak@gmail.com>
7920             Jakub Jelinek  <jakub@redhat.com>
7921
7922         * soft-fp/op-common.h (FP_EXTEND): Do not abort when
7923         _FP_EXPBIAS_##dfs == _FP_EXPBIAS_##sfs.  Handle denormals for
7924         this case.
7925         * soft-fp/op-common.h (FP_TRUNC): Ditto.
7926
7927 2007-05-03  Jakub Jelinek  <jakub@redhat.com>
7928
7929         * math/test-misc.c (main): Add tests for rounding long double
7930         values close to smallest double denormalized value to double.
7931
7932 2007-04-30  Joseph Myers  <joseph@codesourcery.com>
7933
7934         * soft-fp/op-common.h (FP_TRUNC): Correct off-by-one error in
7935         condition for truncating to 0.  Set sticky bit for such
7936         truncation.
7937
7938 2007-05-02  Jakub Jelinek  <jakub@redhat.com>
7939
7940         * stdio-common/vfprintf.c (process_string_arg): Use a VLA rather than
7941         fixed length array for ignore.
7942
7943 2007-04-30  Ulrich Drepper  <drepper@redhat.com>
7944
7945         [BZ #4438]
7946         * stdio-common/vfprintf.c (process_string_arg): Don't overflow the
7947         stack for large precisions.
7948         * stdio-common/test-vfprintf.c (main): Add test for large
7949         precision.
7950
7951 2007-04-30  Jakub Jelinek  <jakub@redhat.com>
7952
7953         * stdio-common/printf_fp.c (___printf_fp): Don't print negative sign
7954         for exponent 0.
7955         * stdio-common/tfformat.c (sprint_doubles): Add a new test.
7956
7957         [BZ #4439]
7958         * resolv/inet_ntop.c (inet_ntop4): Take terminating '\0' into
7959         account in the size check.
7960         * resolv/tst-inet_ntop.c: New test.
7961         * resolv/Makefile (tests): Add tst-inet_ntop.
7962
7963 2007-04-30  Ulrich Drepper  <drepper@redhat.com>
7964             Jakub Jelinek  <jakub@redhat.com>
7965
7966         [BZ #4349]
7967         * malloc/malloc.c: Keep separate list for first blocks on the bin
7968         lists with a given size.  This helps skipping over list elements
7969         we know won't fit in two places.
7970         Inspired by a patch by Tomash Brechko <tomash.brechko@gmail.com>.
7971
7972 2007-04-28  Ulrich Drepper  <drepper@redhat.com>
7973
7974         [BZ #4102]
7975         * sysdeps/posix/getaddrinfo.c (default_labels): Assign separate
7976         label to Teredo tunnel addresses 2001://32.
7977
7978 2007-04-27  Ulrich Drepper  <drepper@redhat.com>
7979
7980         * locale/programs/ld-collate.c (collate_read): Allow order_start
7981         after copy.
7982
7983         * locale/programs/ld-collate.c (collate_read): Fix printing of
7984         error message.
7985
7986         [BZ #3213]
7987         * locale/C-translit.h.in: Add entry for U2044.
7988
7989         [BZ #4342]
7990         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Allow
7991         hexa-decimal floats without exponent.
7992         * stdio-common/tstscanf.c (main): Adjust Test 8 test for success.
7993
7994 2007-04-25  Ulrich Drepper  <drepper@redhat.com>
7995
7996         * sysdeps/unix/sysv/linux/bits/sched.h: Declare sched_getcpu.
7997         * sysdeps/unix/sysv/linux/sched_getcpu.c: New file.
7998         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: New file.
7999         * sysdeps/unix/sysv/linux/Versions: Export sched_getcpu for
8000         GLIBC_2.6.
8001         * sysdeps/unix/sysv/linux/Makefile [subdir=posix] (sysdep_routines):
8002         Add sched_getcpu.
8003
8004 2007-04-25  Jakub Jelinek  <jakub@redhat.com>
8005
8006         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Return -1 instead
8007         of 0 after the out_fail label.
8008
8009 2007-04-25  Ulrich Drepper  <drepper@redhat.com>
8010
8011         [BZ #4406]
8012         * iconv/gconv_charset.h (strip): Allow ':'.
8013         * iconv/iconv_open.c (iconv_open): Adjust comment.
8014
8015 2007-04-25  Jakub Jelinek  <jakub@redhat.com>
8016
8017         * libio/bits/stdio.h (fgetc_unlocked): Add extern inline optimized
8018         version.
8019
8020 2007-04-23  Jakub Jelinek  <jakub@redhat.com>
8021
8022         [BZ #4381]
8023         * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Ensure sufficient
8024         alignment of buffer and tmp_buffer.
8025         * nis/nss_nis/nis-hosts.c (internal_nis_gethostent_r,
8026         internal_gethostbyname2_r, _nss_nis_gethostbyaddr_r): Ensure sufficient
8027         alignment of buffer.
8028         * resolv/nss_dns/dns-hosts.c (getanswer_r): Likewise.  Handle buflen
8029         bigger than INT_MAX.
8030         * resolv/nss_dns/dns-network.c (getanswer_r): Likewise.  Add errnop and
8031         h_errnop arguments.  Fail if buflen is too small.
8032         (_nss_dns_getnetbyname_r, _nss_dns_getnetbyaddr_r): Adjust callers.
8033
8034 2007-04-23  Jakub Jelinek  <jakub@redhat.com>
8035
8036         [BZ #4405]
8037         * iconvdata/gconv-modules (E13B): Add a missing slash to the alias
8038         name.  Patch by Aurelien Jarno <aurelien@aurel32.net>.
8039
8040 2007-04-22  Roland McGrath  <roland@redhat.com>
8041
8042         * elf/elf.h (NT_PRXFPREG): New macro.
8043
8044 2007-04-19  Andreas Jaeger  <aj@suse.de>
8045
8046         [BZ #3905]
8047         * bits/in.h (IPV6_ROUTER_ALERT, IPV6_MTU_DISCOVER, IPV6_MTU,
8048         IPV6_RECVERR, IPV6_V6ONLY, IPV6_JOIN_ANYCAST, IPV6_LEAVE_ANYCAST):
8049         Added.
8050
8051 2007-04-19  Ulrich Drepper  <drepper@redhat.com>
8052
8053         * include/sys/mman.h: Mark madvise hidden.
8054         * misc/madvise.c: Add libc_hidden_def.
8055
8056 2007-04-06  Jakub Jelinek  <jakub@redhat.com>
8057
8058         * nis/nis_domain_of.c (__nis_domain_of): New function.
8059         * include/rpcsvc/nislib.h (__nis_domain_of): New prototype.
8060         * nis/nis_lookup.c (nis_lookup): Use __nis_domain_of.
8061         * nis/nis_call.c (rec_dirsearch): Likewise.
8062         (first_shoot): Likewise.  Remove search_parent_first argument.
8063         (struct nis_server_cache): Rename search_parent_first field
8064         to search_parent.
8065         (nis_server_cache_search, nis_server_cache_add): Rename
8066         search_parent_first argument to search_parent.
8067         (__nisfind_server): Likewise.  If search_parent, call
8068         __nis_domain_of.
8069
8070 2007-04-18  Ulrich Drepper  <drepper@redhat.com>
8071
8072         * sysdeps/posix/getaddrinfo.c: Remove commented-out code.
8073
8074 2007-04-17  Ulrich Drepper  <drepper@redhat.com>
8075
8076         [BZ #4368]
8077         * stdlib/stdlib.h: Remove obsolete part of comment for realpath.
8078
8079 2007-04-16  Ulrich Drepper  <drepper@redhat.com>
8080
8081         [BZ #4364]
8082         * posix/unistd.h (_XOPEN_VERSION): Define appropriately for SUSv3.
8083
8084 2007-04-15  Jakub Jelinek  <jakub@redhat.com>
8085
8086         * locale/programs/locarchive.c (INITIAL_NUM_NAMES,
8087         INITIAL_SIZE_STRINGS, INITIAL_NUM_LOCREC): Update to accomodate
8088         current number of locales in SUPPORTED.
8089         (create_archive): Initialize serial.
8090         (enlarge_archive): Preserve aliases rather than duplicating
8091         their locrecs.
8092
8093 2007-04-13  Jakub Jelinek  <jakub@redhat.com>
8094
8095         * libio/genops.c (_IO_default_finish): Call _IO_lock_fini
8096         after _IO_un_link, not before it.
8097
8098         * stdio-common/printf_fp.c (___printf_fp): Fix exponent -4
8099         special case handling when wcp == wstartp + 1.  Fix a comment typo.
8100         * stdio-common/tfformat.c (sprint_doubles): Add a new testcase.
8101
8102 2007-03-30  Jakub Jelinek  <jakub@redhat.com>
8103
8104         * libio/libio.h (__underflow, __uflow, __overflow, __wunderflow,
8105         __wuflow, __woverflow, _IO_getc, _IO_putc, _IO_peekc_locked, _IO_padn,
8106         _IO_sgetn, _IO_seekoff, _IO_seekpos, _IO_getwc, _IO_putwc, _IO_wpadn):
8107         Remove __THROW.
8108         * libio/fileops.c (new_do_write, _IO_file_xsgetn_mmap,
8109         _IO_file_xsgetn_maybe_mmap): Likewise.
8110         * libio/oldfileops.c (old_do_write): Likewise.
8111         * libio/libioP.h (_IO_switch_to_get_mode, _IO_switch_to_wget_mode,
8112         _IO_init_marker, _IO_init_wmarker, _IO_default_uflow,
8113         _IO_wdefault_uflow, _IO_default_setbuf, _IO_default_seekpos,
8114         _IO_do_write, _IO_new_do_write, _IO_old_do_write, _IO_wdo_write,
8115         _IO_flush_all_lockp, _IO_flush_all, _IO_cleanup,
8116         _IO_flush_all_linebuffered, _IO_new_fgetpos, _IO_old_fgetpos,
8117         _IO_new_fsetpos, _IO_old_fsetpos, _IO_new_fgetpos64,
8118         _IO_old_fgetpos64, _IO_new_fsetpos64, _IO_old_fsetpos64,
8119         _IO_file_setbuf, _IO_file_seekoff, _IO_file_xsputn, _IO_file_xsgetn,
8120         _IO_file_underflow, _IO_file_underflow_mmap,
8121         _IO_file_underflow_maybe_mmap, _IO_file_overflow, _IO_file_attach,
8122         _IO_file_open, _IO_file_fopen, _IO_file_write, _IO_file_read,
8123         _IO_file_sync, _IO_file_close_it, _IO_file_finish,
8124         _IO_new_file_attach, _IO_new_file_close_it, _IO_new_file_finish,
8125         _IO_new_file_fopen, _IO_new_file_setbuf, _IO_file_setbuf_mmap,
8126         _IO_new_file_sync, _IO_new_file_underflow, _IO_new_file_overflow,
8127         _IO_new_file_seekoff, _IO_new_file_write, _IO_new_file_xsputn,
8128         _IO_old_file_setbuf, _IO_old_file_seekoff, _IO_old_file_xsputn,
8129         _IO_old_file_underflow, _IO_old_file_overflow, _IO_old_file_attach,
8130         _IO_old_file_fopen, _IO_old_file_write, _IO_old_file_sync,
8131         _IO_old_file_close_it, _IO_old_file_finish, _IO_wfile_xsputn,
8132         _IO_wfile_setbuf, _IO_wfile_sync, _IO_wfile_underflow,
8133         _IO_wfile_overflow, _IO_wfile_seekoff, _IO_old_proc_open,
8134         _IO_old_proc_close, _IO_getdelim, _IO_flush_all_internal,
8135         _IO_adjust_column_internal, _IO_default_uflow_internal,
8136         _IO_default_xsgetn_internal, _IO_wdefault_xsputn_internal,
8137         _IO_wdefault_xsgetn_internal, _IO_wdefault_uflow_internal,
8138         _IO_file_setbuf_internal, _IO_file_seekoff_internal,
8139         _IO_file_xsputn_internal, _IO_file_xsgetn_internal,
8140         _IO_file_close_it_internal, _IO_file_underflow_internal,
8141         _IO_file_overflow_internal, _IO_file_attach_internal,
8142         _IO_file_fopen_internal, _IO_file_sync_internal,
8143         _IO_file_finish_internal, _IO_wfile_xsputn_internal,
8144         _IO_wfile_seekoff_internal, _IO_wfile_sync_internal,
8145         _IO_switch_to_wget_mode_internal, _IO_padn_internal,
8146         _IO_switch_to_get_mode_internal, _IO_seekoff_unlocked,
8147         _IO_seekpos_unlocked): Likewise.
8148         (_IO_strtod, _IO_dtoa, _IO_outfloat, _IO_read, _IO_write,
8149         _IO_lseek, _IO_close, _IO_fstat): Remove unused prototypes.
8150
8151 2007-04-16  Jakub Jelinek  <jakub@redhat.com>
8152
8153         * locale/programs/locarchive.c (show_archive_content): Fix sizeof
8154         argument in xmalloc size computation.
8155
8156 2007-04-01  Jakub Jelinek  <jakub@redhat.com>
8157
8158         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl): Use
8159         math_opt_barrier and math_force_eval macros.
8160
8161 2007-03-27  Jakub Jelinek  <jakub@redhat.com>
8162
8163         [BZ #3306]
8164         * math/math_private.h (math_opt_barrier, math_force_eval): Define.
8165         * sysdeps/i386/fpu/math_private.h: New file.
8166         * sysdeps/x86_64/fpu/math_private.h: New file.
8167         * math/s_nexttowardf.c (__nexttowardf): Use math_opt_barrier and
8168         math_force_eval macros.  Use "+m" constraint on asm rather than
8169         "=m" and "m".
8170         * math/s_nextafter.c (__nextafter): Likewise.
8171         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c (__nexttoward):
8172         Likewise.
8173         * sysdeps/ieee754/flt-32/s_nextafterf.c (__nextafterf): Likewise.
8174         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward): Likewise.
8175         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
8176         * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Use
8177         math_opt_barrier and math_force_eval macros.
8178         * sysdeps/ieee754/ldbl-128/s_nextafterl.c (__nextafterl): Likewise.
8179         * sysdeps/ieee754/ldbl-96/s_nextafterl.c (__nextafterl): Likewise.
8180         * sysdeps/i386/fpu/s_nexttoward.c: Include float.h.
8181         (__nexttoward): Use math_opt_barrier and
8182         math_force_eval macros.  Use "+m" constraint on asm rather than
8183         "=m" and "m".  Only use asm to force double result if
8184         FLT_EVAL_METHOD is 2.
8185         * sysdeps/i386/fpu/s_nexttowardf.c: Include float.h.
8186         (__nexttowardf): Use math_opt_barrier and
8187         math_force_eval macros.  Use "+m" constraint on asm rather than
8188         "=m" and "m".  Only use asm to force double result if
8189         FLT_EVAL_METHOD is not 0.
8190         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Include float.h.
8191         (__nexttowardf): Use math_opt_barrier and
8192         math_force_eval macros.  If FLT_EVAL_METHOD is not 0, force
8193         x to float using asm.
8194         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c: Include float.h.
8195         (__nldbl_nexttowardf): Use math_opt_barrier and
8196         math_force_eval macros.  If FLT_EVAL_METHOD is not 0, force
8197         x to float using asm.
8198         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Include float.h.
8199         (__nexttowardf): Use math_opt_barrier and math_force_eval
8200         macros.  If FLT_EVAL_METHOD is not 0, force x to float using asm.
8201         * math/bug-nextafter.c (zero, inf): New variables.
8202         (main): Add new tests.
8203         * math/bug-nexttoward.c (zero, inf): New variables.
8204         (main): Add new tests.
8205
8206 2007-03-22  Jakub Jelinek  <jakub@redhat.com>
8207
8208         [BZ #3427]
8209         * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Clear all
8210         exceptions both in SW and MXCSR.
8211         * sysdeps/x86_64/fpu/feupdateenv.c: New file.
8212         * sysdeps/x86_64/fpu/feenablxcpt.c (feenableexcept): Remove dead code.
8213         * sysdeps/x86_64/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
8214         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions
8215         in MXCSR if SSE is available.
8216         * sysdeps/i386/fpu/feupdateenv.c: Include unistd.h, dl-procinfo.h
8217         and ldsodefs.h.
8218         (__feupdateenv): Query exceptions also from MXCSR if SSE is available.
8219         Fix comment typo.
8220         * sysdeps/ia64/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions.
8221         Return 0 rather than 1.
8222         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Fix comment typo.
8223         Remove incorrect part of a comment.  Fix argument to feraiseexcept.
8224         * math/test-fenv.c (feholdexcept_tests): New function.
8225         (main): Call it.
8226
8227 2007-01-05  Richard B. Kreckel  <kreckel@ginac.de>
8228
8229         [BZ #3427]
8230         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions
8231         in SW.
8232
8233 2007-04-13  Jakub Jelinek  <jakub@redhat.com>
8234
8235         [BZ #4344]
8236         * elf/ldconfig.c (search_dir): Fix 2 off-by-2 errors.
8237         Reported by David Anderson <davea42@earthlink.net>.
8238
8239 2007-04-07  Ulrich Drepper  <drepper@redhat.com>
8240
8241         * posix/sys/wait.h: Remove unnecessary forward declaration.
8242
8243 2007-04-05  Jakub Jelinek  <jakub@redhat.com>
8244
8245         * nis/nis_call.c (__nisfind_server): Replace (*dir)->do_servers
8246         with obj->do_servers after first_shoot.
8247
8248 2007-04-03  Ulrich Drepper  <drepper@redhat.com>
8249
8250         * posix/Makefile (routines): Add sched_cpucount.
8251         (tests): Add tst-cpucount.
8252         * posix/sched_cpucount.c: New file.
8253         * posix/tst-cpucount.c: New file.
8254         * posix/Versions: Export __sched_cpucount with version GLIBC_2.6.
8255         * bits/sched.h: Define __CPU_COUNT.  Declare __sched_cpucount.
8256         * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
8257         * posix/sched.h: Define CPU_COUNT.
8258
8259 2007-03-27  Jakub Jelinek  <jakub@redhat.com>
8260
8261         * posix/fnmatch.c (STRUCT): Define.
8262         (fnmatch): Pass NULL as last argument to internal_fn{,w}match.
8263         * posix/fnmatch_loop.c (struct STRUCT): New type.
8264         (FCT): Add ends argument.  If ends != NULL and normal * is
8265         seen in the pattern, store current pattern and string pointers
8266         and return.  Adjust recursive calls.
8267         (EXT): Adjust FCT callers.
8268         (STRUCT): Undef at the end of the file.
8269         * posix/Makefile (tests): Add tst-fnmatch2.
8270         * posix/tst-fnmatch2.c: New test.
8271
8272 2007-04-01  Jakub Jelinek  <jakub@redhat.com>
8273
8274         * sysdeps/ia64/fpu/fesetround.c (fesetround): Return 0 on success
8275         and 1 on failure.
8276
8277         * sysdeps/unix/sysv/linux/sync_file_range.c (sync_file_range):
8278         Change last argument to unsigned int.
8279
8280 2007-03-23  Jakub Jelinek  <jakub@redhat.com>
8281
8282         * scripts/check-local-headers.sh: Filter out sys/capability.h.
8283
8284 2007-03-22  Jakub Jelinek  <jakub@redhat.com>
8285
8286         * config.h.in (HAVE_LIBCAP): Add.
8287         * nscd/selinux.h: Include sys/capability.h rather than non-existent
8288         sys/capabilities.h.
8289         * nscd/selinux.c (preserve_capabilities): Use cap_free instead of
8290         free_caps.  Cast away const from 4th cap_set_flag argument.
8291
8292 2007-03-26  Ulrich Drepper  <drepper@redhat.com>
8293
8294         * sysdeps/unix/sysv/linux/Versions: Move sync_file_range to
8295         GLIBC_2.6.
8296         * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
8297         Add sync_file_range.
8298         Reported by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
8299
8300 2007-03-19  Steven Munroe  <sjmunroe@us.ibm.com>
8301
8302         * sysdeps/powerpc/bits/atomic.h
8303         [!MUTEX_HINT_ACQ]: Define MUTEX_HINT_ACQ.
8304         [!MUTEX_HINT_REL]: Define MUTEX_HINT_REL.
8305         (__arch_compare_and_exchange_val_32_acq): Add MUTEX_HINT_ACQ to lwarx.
8306         (__arch_compare_and_exchange_val_32_rel): Add MUTEX_HINT_REL to lwarx.
8307         (__arch_atomic_exchange_val_32_acq): Add MUTEX_HINT_ACQ to lwarx.
8308         (__arch_atomic_exchange_rel_32_rel): Add MUTEX_HINT_REL to lwarx.
8309         * sysdeps/powerpc/powerpc32/bits/atomic.h [_ARCH_PWR6 || _ARCH_PWR6X]:
8310         Define MUTEX_HINT_ACQ as ",1" and MUTEX_HINT_REL as ",0".
8311         (__arch_compare_and_exchange_bool_32_acq): Add MUTEX_HINT_ACQ to lwarx.
8312         (__arch_compare_and_exchange_bool_32_rel): Add MUTEX_HINT_REL to lwarx.
8313         * sysdeps/powerpc/powerpc64/bits/atomic.h [_ARCH_PWR6 || _ARCH_PWR6D]:
8314         Define MUTEX_HINT_ACQ as ",1" and MUTEX_HINT_REL as ",0".
8315         (__arch_compare_and_exchange_bool_32_acq): Add MUTEX_HINT_ACQ to lwarx.
8316         (__arch_compare_and_exchange_bool_32_rel): Add MUTEX_HINT_REL to lwarx.
8317         (__arch_compare_and_exchange_bool_64_acq): Add MUTEX_HINT_ACQ to lwarx.
8318         (__arch_compare_and_exchange_bool_64_rel): Add MUTEX_HINT_REL to lwarx.
8319         (__arch_compare_and_exchange_val_64_acq): Add MUTEX_HINT_ACQ to lwarx.
8320         (__arch_compare_and_exchange_val_64_rel): Add MUTEX_HINT_REL to lwarx.
8321         (__arch_atomic_exchange_val_64_acq): Add MUTEX_HINT_ACQ to lwarx.
8322         (__arch_atomic_exchange_rel_64_rel): Add MUTEX_HINT_REL to lwarx.
8323
8324 2007-03-20  Jakub Jelinek  <jakub@redhat.com>
8325
8326         * sysdeps/unix/sysv/linux/powerpc/libc-start.c
8327         (__cache_line_size): Define the variable here.  Add
8328         attribute_hidden, remove weak_extern.
8329         (__libc_start_main): Set __cache_line_size
8330         unconditionally.
8331         * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
8332         (__cache_line_size): Define the variable here.  Add
8333         attribute_hidden, remove weak_extern.
8334         (DL_PLATFORM_AUXV): Set __cache_line_size
8335         unconditionally.
8336         * sysdeps/powerpc/powerpc32/dl-machine.c (__cache_line_size): Remove
8337         weak_extern, add attribute_hidden.
8338         (__elf_machine_runtime_setup): Assume __cache_line_size is always
8339         defined in ld.so.
8340         * sysdeps/powerpc/powerpc32/memset.S (__cache_line_size): Remove
8341         definition.
8342         * sysdeps/powerpc/powerpc64/memset.S (__cache_line_size): Likewise.
8343
8344 2007-03-26  Jakub Jelinek  <jakub@redhat.com>
8345
8346         [BZ #4276]
8347         * timezone/africa: Update from tzdata2007d.
8348         * timezone/asia: Likewise.
8349         * timezone/australasia: Likewise.
8350         * timezone/backward: Likewise.
8351         * timezone/europe: Likewise.
8352         * timezone/iso3166.tab: Likewise.
8353         * timezone/leapseconds: Likewise.
8354         * timezone/northamerica: Likewise.
8355         * timezone/southamerica: Likewise.
8356         * timezone/zone.tab: Likewise.
8357
8358         * timezone/private.h: Update from tzcode2007d.
8359         * timezone/zdump.c: Likewise.
8360         * timezone/zic.c: Likewise.
8361
8362 2007-03-21  Jakub Jelinek  <jakub@redhat.com>
8363
8364         * nis/nis_call.c: Include bits/libc-lock.h, sys/stat.h, unistd.h.
8365         (nis_server_cache, nis_server_cache_lock, nis_cold_start_mtime): New
8366         variables.
8367         (nis_server_cache_search, nis_server_cache_add): New functions.
8368         (__nisfind_server): Use them.  Add dbp and flags argument, if
8369         call __nisbind_create.
8370         (__nisbind_create): Add server_used and current_ep arguments,
8371         only call __nis_findfastest if server_used is ~0.
8372         (__do_niscall2, __prepare_niscall): Adjust callers.
8373         (ckey_cache, ckey_cache_size, ckey_cache_allocated, ckey_cache_pid,
8374         ckey_cache_euid, ckey_cache_lock): New variables.
8375         (get_ckey): New function.
8376         (__nisbind_connect): If not dbp->use_udp, pass IPPROTO_TCP to
8377         __pmap_getnisport.  Save __pmap_getnisport result in
8378         dbp->addr.sin_port if non-zero.  Use get_ckey to create conversation
8379         key.
8380         * nis/nis_lookup.c (nis_lookup): Likewise.
8381         * nis/nis_table.c (nis_list): Likewise.
8382         * nis/rpcsvc/nislib.h (__nisbind_create, __nisfind_server): Adjust
8383         prototypes.
8384
8385         * nis/nss_nisplus/nisplus-pwd.c (_nss_nisplus_getpwnam_r,
8386         _nss_nisplus_getpwuid_r): Pass USE_DGRAM flag to nis_list.
8387         * nis/nss_nisplus/nisplus-service.c (_nss_nisplus_getservbyname_r,
8388         _nss_nisplus_getservbyport_r): Likewise.
8389         * nis/nss_nisplus/nisplus-network.c (_nss_nisplus_getnetbyname_r,
8390         _nss_nisplus_getnetbyaddr_r): Likewise.
8391         * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_getspnam_r): Likewise.
8392         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_gethostton_r,
8393         _nss_nisplus_getntohost_r): Likewise.
8394         * nis/nss_nisplus/nisplus-rpc.c (_nss_nisplus_getrpcbyname_r,
8395         _nss_nisplus_getrpcbynumber_r): Likewise.
8396
8397 2007-03-20  Jakub Jelinek  <jakub@redhat.com>
8398
8399         * configure.in (libc_cv_gnu89_inline): Only do compile test.
8400         * configure: Rebuilt.
8401
8402         * soft-fp/double.h (_FP_UNION_D): Use _FP_W_TYPE for frac
8403         bit-fields.
8404         * soft-fp/extended.h (_FP_UNION_E): Likewise.
8405
8406 2006-06-07  Joseph Myers  <joseph@codesourcery.com>
8407
8408         [BZ #2831]
8409         * soft-fp/quad.h (_FP_UNION_Q): Use _FP_W_TYPE for frac
8410         bit-fields.
8411
8412 2007-03-18  Jakub Jelinek  <jakub@redhat.com>
8413
8414         * nscd/gai.c: Include alloca.h.
8415         (__libc_use_alloca): Define.
8416
8417 2007-03-16  Jakub Jelinek  <jakub@redhat.com>
8418
8419         * elf/dl-open.c (dl_open_worker): Declare l in 2 different
8420         smaller scopes.
8421         * elf/dl-dst.h (DL_DST_REQ_STATIC): Add l as macro argument.
8422         (DL_DST_REQUIRED): Adjust user.
8423
8424         * include/dlfcn.h (struct link_map): New forward decl.
8425
8426         * inet/getnameinfo.c: Include stddef.h.
8427         (getnameinfo): Use offsetof.
8428
8429         * time/tst-mktime2.c (do_test): Don't rely on signed wrap.
8430
8431         * stdio-common/vfprintf.c (_itoa): Undef before redefining.
8432
8433         * string/strerror_l.c: Include stdlib.h.
8434
8435         * configure.in (libc_cv_gnu89_inline): Test for -fgnu89-inline.
8436         * config.make.in (gnu89-inline-CFLAGS): New variable.
8437         * Makeconfig (CFLAGS): Use $(gnu89-inline-CFLAGS) together with
8438         -std=gnu99.
8439         * misc/sys/cdefs.h (__extern_inline, __extern_always_inline): Define.
8440         * argp/argp.h: Use it.
8441         * bits/mathinline.h: Likewise.
8442         * bits/sigset.h: Likewise.
8443         * bits/string.h: Likewise.
8444         * ctype/ctype.h: Likewise.
8445         * hurd/hurd.h: Likewise.
8446         * hurd/hurd/fd.h: Likewise.
8447         * hurd/hurd/port.h: Likewise.
8448         * hurd/hurd/signal.h: Likewise.
8449         * hurd/hurd/threadvar.h: Likewise.
8450         * hurd/hurd/userlink.h: Likewise.
8451         * io/sys/stat.h: Likewise.
8452         * libio/bits/stdio.h: Likewise.
8453         * libio/bits/stdio2.h: Likewise.
8454         * mach/lock-intern.h: Likewise.
8455         * mach/mach/mig_support.h: Likewise.
8456         * math/bits/cmathcalls.h: Likewise.
8457         * posix/bits/unistd.h: Likewise.
8458         * socket/bits/socket2.h: Likewise.
8459         * stdlib/bits/stdlib.h: Likewise.
8460         * stdlib/stdlib.h: Likewise.
8461         * string/argz.h: Likewise.
8462         * string/bits/string2.h: Likewise.
8463         * string/bits/string3.h: Likewise.
8464         * sysdeps/alpha/fpu/bits/mathinline.h: Likewise.
8465         * sysdeps/generic/inttypes.h: Likewise.
8466         * sysdeps/generic/machine-lock.h: Likewise.
8467         * sysdeps/generic/machine-sp.h: Likewise.
8468         * sysdeps/i386/fpu/bits/mathinline.h: Likewise.
8469         * sysdeps/i386/i486/bits/string.h: Likewise.
8470         * sysdeps/ia64/fpu/bits/mathinline.h: Likewise.
8471         * sysdeps/mach/alpha/machine-lock.h: Likewise.
8472         * sysdeps/mach/alpha/machine-sp.h: Likewise.
8473         * sysdeps/mach/i386/machine-lock.h: Likewise.
8474         * sysdeps/mach/powerpc/machine-lock.h: Likewise.
8475         * sysdeps/mach/powerpc/machine-sp.h: Likewise.
8476         * sysdeps/powerpc/fpu/bits/mathinline.h: Likewise.
8477         * sysdeps/s390/bits/string.h: Likewise.
8478         * sysdeps/s390/fpu/bits/mathinline.h: Likewise.
8479         * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
8480         * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Likewise.
8481         * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
8482         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
8483         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Likewise.
8484         * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
8485         * wcsmbs/bits/wchar2.h: Likewise.
8486         * wcsmbs/wchar.h: Likewise.
8487         * stdlib/gmp.h: Likewise.  Include <features.h> to get
8488         __extern_inline definition.
8489
8490 2007-03-15  Jakub Jelinek  <jakub@redhat.com>
8491
8492         * locale/programs/ld-ctype.c (find_translit): Return NULL if ctype is
8493         NULL.
8494
8495         [BZ #3919]
8496         * math/libm-test.inc (log_test): Test -Inf and NaN.
8497         (log10_test, log1p_test, log2_test): Test -Inf.
8498         * sysdeps/i386/fpu/e_log.S (__ieee754_log): Don't raise
8499         FE_INVALID when argument is qNaN.
8500         * sysdeps/i386/fpu/e_logl.S (__ieee754_logl): Likewise.
8501         * sysdeps/i386/fpu/e_logf.S (__ieee754_logf): Likewise.
8502         * sysdeps/x86_64/fpu/e_logl.S (__ieee754_logl): Likewise.
8503         * sysdeps/x86_64/fpu/e_log10l.S (__ieee754_log10l): Replace
8504         andb $1, %ah with testb $1, %ah, don't test for parity, instead
8505         testb $4, %ah and jump if non-zero.
8506         * sysdeps/x86_64/fpu/e_log2l.S (__ieee754_log2l): Likewise.
8507         * sysdeps/x86_64/fpu/s_log1pl.S (__log1pl): Likewise.
8508
8509         [BZ #4101]
8510         * argp/argp-help.c (hol_cluster_cmp): Fix comparisons used to find
8511         ancestors with the same depths.
8512         Patch by Niels Moeller <nisse@lysator.liu.se>.
8513         (filter_doc): Don't crash if argp is NULL.
8514         * argp/Makefile (tests): Add tst-argp2.
8515         * argp/tst-argp2.c: New test.
8516
8517         [BZ #4130]
8518         * login/utmp_file.c (setutent_file): Use O_LARGEFILE for
8519         open_not_cancel_2.
8520         (updwtmp_file): Likewise.
8521
8522         [BZ #4181]
8523         * inet/inet6_opt.c (add_padding): Only insert padding if npad > 0.
8524         (inet6_opt_append): Don't check extlen is big enough if extbuf
8525         is NULL.
8526         (inet6_opt_finish): Likewise.
8527         * inet/Makefile (tests): Add test-inet6_opt.
8528         * inet/test-inet6_opt.c: New test.
8529
8530         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Never
8531         reallocate the buffer, instead fail for MSG_TRUNC or for EBUSY
8532         NLMSG_ERR.  Instead use a page sized buffer.
8533         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Use page sized
8534         buffer.
8535
8536 2007-03-14  Richard Henderson  <rth@redhat.com>
8537
8538         * sysdeps/alpha/fpu/s_llround.c: New file.
8539         * sysdeps/alpha/fpu/s_llroundf.c: New file.
8540         * sysdeps/alpha/fpu/s_lround.c: New file.
8541         * sysdeps/alpha/fpu/s_lroundf.c: New file.
8542         * sysdeps/alpha/fpu/s_round.c: New file.
8543         * sysdeps/alpha/fpu/s_roundf.c: New file.
8544         * sysdeps/alpha/fpu/s_trunc.c: New file.
8545         * sysdeps/alpha/fpu/s_truncf.c: New file.
8546
8547         * sysdeps/alpha/fpu/s_ceil.c: Rewrite without branches.
8548         * sysdeps/alpha/fpu/s_ceilf.c: Likewise.
8549         * sysdeps/alpha/fpu/s_floor.c: Likewise.
8550         * sysdeps/alpha/fpu/s_floorf.c: Likewise.
8551         * sysdeps/alpha/fpu/s_rint.c: Likewise.
8552         * sysdeps/alpha/fpu/s_rintf.c: Likewise.
8553
8554         * sysdeps/alpha/fpu/s_fmax.S: New file.
8555         * sysdeps/alpha/fpu/s_fmaxf.S: New file.
8556         * sysdeps/alpha/fpu/s_fmin.S: New file.
8557         * sysdeps/alpha/fpu/s_fminf.S: New file.
8558         * sysdeps/alpha/fpu/s_isnan.c: New file.
8559         * sysdeps/alpha/fpu/s_isnanf.c: New file.
8560         * sysdeps/alpha/fpu/s_llrint.c: New file.
8561         * sysdeps/alpha/fpu/s_llrintf.c: New file.
8562         * sysdeps/alpha/fpu/s_lrint.c: New file.
8563         * sysdeps/alpha/fpu/s_lrintf.c: New file.
8564         * sysdeps/alpha/fpu/s_nearbyint.c: New file.
8565         * sysdeps/alpha/fpu/s_nearbyintf.c: New file.
8566
8567         * sysdeps/alpha/fpu/bits/mathinline.h (__floorf, __floor): Remove.
8568         (__fdimf, fdimf, __fdim, fdim): Remove.
8569         (__signbitf, __signbit, __signbitl): Use gcc builtin if available.
8570         (__isnanf, __isnan, __isnanl): New.
8571
8572 2007-03-13  Richard Henderson  <rth@redhat.com>
8573
8574         * sysdeps/ieee754/ldbl-128/Makefile: New file.
8575
8576 2007-03-13  Richard Henderson  <rth@redhat.com>
8577
8578         * sysdeps/alpha/Makefile (sysdep-CFLAGS): Force dynamic rounding.
8579         * sysdeps/alpha/fpu/bits/mathinline.h (__signbitl): New.
8580         * sysdeps/alpha/fpu/libm-test-ulps: Regenerate.
8581         * sysdeps/unix/sysv/linux/alpha/alphaev6/fpu/Implies: New file.
8582         * sysdeps/unix/sysv/linux/alpha/alphaev67/fpu/Implies: New file.
8583         * sysdeps/unix/sysv/linux/alpha/fpu/Implies: New file.
8584
8585 2007-03-13  Richard Henderson  <rth@redhat.com>
8586
8587         * elf/dl-support.c (_dl_aux_init): Honor DL_PLATFORM_AUXV.
8588         * sysdeps/unix/sysv/linux/alpha/dl-auxv.h: New file.
8589         * sysdeps/unix/sysv/linux/alpha/dl-support.c: New file.
8590         * sysdeps/unix/sysv/linux/alpha/dl-sysdep.c (__libc_alpha_cache_shape):
8591         Move to dl-auxv.h; initialize instead of extern weak.
8592         (DL_PLATFORM_AUXV): Move to dl-auxv.h; don't test for undef
8593         weak symbol.
8594         * sysdeps/unix/sysv/linux/alpha/sysconf.c (__libc_alpha_cache_shape):
8595         Extern instead of initialized.
8596
8597 2007-03-13  Richard Henderson  <rth@redhat.com>
8598
8599         * sysdeps/unix/sysv/linux/alpha/sigsuspend.S: Add support for
8600         __sigsuspend_nocancel.
8601
8602 2007-03-06  Ulrich Drepper  <drepper@redhat.com>
8603
8604         * sysdeps/posix/getaddrinfo.c (get_scope): Correct test for
8605         172.16/12 address range.
8606
8607 2007-03-02  Jakub Jelinek  <jakub@redhat.com>
8608
8609         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Retry with
8610         a new netlink socket if NLMSG_ERR -EBUSY is seen after some MSG_TRUNC
8611         message.
8612
8613 2007-03-01  Jakub Jelinek  <jakub@redhat.com>
8614
8615         [BZ #4069]
8616         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Check for NaN
8617         earlier.
8618         * math/libm-test.inc (pow_test): Add more tests involving NaNs.
8619
8620         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Avoid invalid exception
8621         for x qNaN and y either +-inf or non-integer value.
8622         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Likewise.
8623         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.
8624         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
8625
8626 2007-02-10  Mike Frysinger  <vapier@gentoo.org>
8627
8628         * sysdeps/unix/sysv/linux/sh/Makefile: Remove sys/io.h
8629         from sysdep_headers.
8630
8631 2007-02-28  Jakub Jelinek  <jakub@redhat.com>
8632
8633         * time/tzfile.c (find_transition): Instead of a linear search try to
8634         guess the transition index, use a linear search if the result is at
8635         most 10 transitions away from the guess or binary search otherwise.
8636
8637 2007-02-27  Jakub Jelinek  <jakub@redhat.com>
8638
8639         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Fix
8640         memory reallocation.
8641
8642 2007-02-21  Ulrich Drepper  <drepper@redhat.com>
8643
8644         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Add branch predictions
8645         and fix some typos.
8646         Optimize use of TOLOWER.
8647
8648         [BZ #3325]
8649         * sysdeps/i386/fpu/e_fmodf.S: Revert last changes, keep using fprem.
8650         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
8651         * sysdeps/i386/fpu/e_fmod.S: Likewise.
8652
8653         [BZ #3458]
8654         * sysdeps/unix/sysv/linux/posix_madvise.c: New file.
8655         * sysdeps/unix/sysv/linux/syscalls.list: Remove posix_madvise entry.
8656
8657         [BZ #4076]
8658         * io/ftw.c (ftw_startup): Handle special case of FTW_CHDIR in /.
8659         (open_dir_stream): Likewise.
8660         * io/Makefile (tests): Add bug-ftw5.
8661         * io/bug-ftw5.c: New file.
8662
8663         * nscd/hstcache.c (cache_addhst): Remove unnecessary conditional.
8664         * nscd/servicescache.c (cache_addserv): Likewise.
8665
8666         * nscd/grpcache.c (cache_addgr): In case a record changed on
8667         refresh, adjust key_copy.
8668
8669         [BZ #4074]
8670         * nscd/pwdcache.c (cache_addpw): In case a record changed on
8671         refresh, adjust key_copy.
8672
8673         [BZ #4070]
8674         * stdio-common/printf_fp.c (___printf_fp): Handle a few more
8675         special cases.
8676         * stdio-common/tfformat.c (sprint_doubles): Some more tests.
8677
8678 2007-02-19  Ulrich Drepper  <drepper@redhat.com>
8679
8680         * stdio-common/printf_fp.c (___printf_fp): Cleanups and minor
8681         optimization.
8682
8683         * stdio-common/vfscanf.c: Small cleanups throughout.
8684
8685 2007-02-18  Ulrich Drepper  <drepper@redhat.com>
8686
8687         [BZ #3325]
8688         * sysdeps/i386/fpu/e_fmodf.S: Use fprem1 instead of fprem.
8689         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
8690         * sysdeps/i386/fpu/e_fmod.S: Likewise.
8691         Patch by Jared Casper <jaredcasper@gmail.com>.
8692
8693         * sysdeps/unix/closedir.c: Outside libc don't use locking.
8694         * sysdeps/unix/opendir.c: Likewise.
8695         * sysdeps/unix/readdir.c: Likewise.
8696
8697         [BZ #2211]
8698         * stdio-common/vfscanf.c: Handle localized digits etc for floating
8699         point numbers.
8700         Patch mostly by Hamed Malek <hamed@farsiweb.info>.
8701
8702         * stdio-common/vfscanf.c: Fix problems in width accounting.
8703         * stdio-common/tst-sscanf.c (double_tests): New tests.
8704         (main): Hook them up.
8705
8706         * stdio-common/vfscanf.c: Remove unused WIDTH handling.
8707         More simplifications of floating-point reader.
8708
8709         * stdio-common/Makefile (tests): Add tst-swscanf.
8710         * stdio-common/tst-sscanf.c: Make tests usable for swscanf
8711         testing.
8712         * stdio-common/tst-swscanf.c: New file.
8713
8714 2007-02-17  Ulrich Drepper  <drepper@redhat.com>
8715
8716         [BZ #2633]
8717         * libio/stdio.h: Define struct _IO_FILE in global namespace.
8718         * setjmp/setjmp.h: Define __jmp_buf_tag in global namespace.
8719         Remove using for __jmp_buf_tag.
8720         * locale/locale.h (struct lconv): Also define in std namespace.
8721         * wcsmbs/wchar.h: Move using declaration for tm out of namespace.
8722
8723         [BZ #3842]
8724         * sysdeps/posix/euidaccess.c [_LIBC] (euidaccess): Remove shortcut
8725         using __libc_enable_secure.
8726
8727         [BZ #3818]
8728         * sysdeps/unix/sysv/linux/sys/acct.h (struct acct_v3): Define.
8729
8730         [BZ #3745]
8731         * locale/programs/ld-collate.c (handle_ellipsis): Fix generation
8732         of names for ellipsises.
8733
8734         [BZ #3348]
8735         * malloc/memusage.sh: Cleanups.
8736         * debug/xtrace.sh: Quoting and trap changes.
8737
8738 2007-02-16  Ulrich Drepper  <drepper@redhat.com>
8739
8740         * locale/iso-3166.def: Add Jersey, Guernsey, and Isle Of Man entries.
8741
8742         * locale/iso-3166.def: Update entry for Serbia.
8743         * locale/iso-4217.def: Define RSD, remove CSD.
8744
8745         * sysdeps/x86_64/bits/atomic.h: One more change, this time for 16-
8746         and 64-bit operations.
8747
8748         [BZ #4040]
8749         * sysdeps/i386/i486/bits/atomic.h: One more change, this time for
8750         16-bit operations.
8751
8752         * nscd/nscd.c (parse_opt): One more conversion to use send instead
8753         of writev.
8754
8755 2007-02-15  Ulrich Drepper  <drepper@redhat.com>
8756
8757         [BZ #3991]
8758         * assert/assert.h (assert): Simplify.
8759         (assert_perror): Likewise.
8760         Patch by Israel G. Lugo <ilugo@bridonsecurity.com>.
8761
8762         * nscd/nscd_helper.c (open_socket): Don't send padding bytes from
8763         reqdata.
8764
8765         * sysdeps/unix/sysv/linux/x86_64/send.c (__libc_send): Cosmetic
8766         change: don't pass NULL in place of an integer.
8767
8768 2007-02-02  Bruno Haible  <bruno@clisp.org>
8769
8770         [BZ #3954]
8771         * iconvdata/ksc5601.c (__ksc5601_sym_to_ucs, __ksc5601_sym_from_ucs):
8772         Add mapping for U+327E.
8773         * iconvdata/ksc5601.h (KSC5601_SYMBOL): Increment.
8774         * iconvdata/johab.c (BODY for FROM_LOOP, BODY for TO_LOOP): Enable
8775         mapping of 0xD9 0xE8.
8776         * iconvdata/uhc.c (BODY for FROM_LOOP, BODY for TO_LOOP): Disable
8777         mapping of U+327E.
8778         Reported by Jungshik Shin <jungshik@google.com>.
8779
8780         [BZ #3955]
8781         * iconvdata/johab.c (BODY for FROM_LOOP, BODY for TO_LOOP): Enable
8782         mapping of 0xD9 0xE6 and of 0xD9 0xE7.
8783         Reported by Jungshik Shin <jungshik@google.com>.
8784
8785 2007-02-14  Ulrich Drepper  <drepper@redhat.com>
8786
8787         * sysdeps/x86_64/bits/atomic;h: Fix asm parameters for some
8788         byte variants.
8789
8790         [BZ #4040]
8791         * sysdeps/i386/i486/bits/atomic.h: Fix asm parameters for some
8792         byte variants.  Patch mostly be tom@tommay.net.
8793
8794 2007-02-14  Jakub Jelinek  <jakub@redhat.com>
8795
8796         [BZ #3996]
8797         * posix/glob.c (attribute_hidden): Define if not defined.
8798         (glob): Unescape dirname, filename or username when needed and not
8799         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
8800         is NULL.  Handle unescaped [ in pattern without closing ].
8801         Don't pass GLOB_CHECK down to recursive glob for directories.
8802         (__glob_pattern_type): New function.
8803         (__glob_pattern_p): Implement using __glob_pattern_type.
8804         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
8805         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
8806         Remove unreachable code.
8807         * posix/globtest.sh: Add a couple of new tests.
8808
8809 2007-02-13  Ulrich Drepper  <drepper@redhat.com>
8810
8811         * po/ru.po: Update from translation team.
8812
8813 2007-02-12  Jakub Jelinek  <jakub@redhat.com>
8814
8815         * sysdeps/i386/bits/byteswap.h (__bswap_32): Add __amdfam10__
8816         to the list of i486+ CPUs.
8817         * sysdeps/x86_64/bits/byteswap.h (__bswap_32): Likewise.
8818
8819 2007-02-12  Ulrich Drepper  <drepper@redhat.com>
8820
8821         * elf/rtld.c (RESOLVE_MAP): Always return bootstrap_map reference.
8822         * elf/Makefile ($(objpfx)ld.so): Check that ld.so has no undefined
8823         references.
8824
8825 2007-02-09  Ulrich Drepper  <drepper@redhat.com>
8826
8827         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Remove incorrect comment.
8828
8829         * resolv/res_init.c (res_setoptions): Recognize edns0 option.
8830         * resolv/res_mkquery.c: Define __res_nopt.
8831         * resolv/res_query.c (__libc_res_nquery): If RES_USE_EDNS0 is set
8832         try adding EDNS0 record.
8833         * resolv/res_send.c (send_dg): If request failed with FORMERR and
8834         EDNS0 record was send make sure we don't try it again.
8835         * resolv/resolv.h: Define RES_F_EDNS0ERR and RES_USE_EDNS0.
8836         * include/resolv.h: Declare __res_nopt.
8837
8838 2007-02-08  Jakub Jelinek  <jakub@redhat.com>
8839
8840         [BZ #3944]
8841         * time/strptime_l.c (__strptime_internal): Set have_mon for
8842         %b/%B/%h.  Set have_mon and have_mday if tm_mon and tm_mday
8843         have been computed from tm_yday and tm_year.  Don't crash
8844         in day_of_the_week or day_of_the_year if not have_mon
8845         and tm_mon contains bogus value.
8846         * time/Makefile (tests): Add tst-strptime3.
8847         * time/tst-strptime3.c: New test.
8848
8849 2007-02-05  Jakub Jelinek  <jakub@redhat.com>
8850
8851         [BZ #3957]
8852         * posix/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
8853         bit for RE_HAT_LISTS_NOT_NEWLINE.
8854         (build_charclass_op): Remove bogus comment.
8855         * posix/Makefile (tests): Add bug-regex27 and bug-regex28.
8856         * posix/bug-regex27.c: New test.
8857         * posix/bug-regex28.c: New test.
8858
8859 2007-02-03  Ulrich Drepper  <drepper@redhat.com>
8860
8861         * po/sv.po: Update from translation team.
8862
8863 2007-02-02  Ulrich Drepper  <drepper@redhat.com>
8864
8865         * nscd/nscd_helper.c (open_socket): Minor size optimization.
8866
8867 2007-02-02  Jakub Jelinek  <jakub@redhat.com>
8868
8869         * include/locale.h (__uselocale): Add libc_hidden_proto.
8870         * locale/uselocale.c (__uselocale): Add libc_hidden_def.
8871
8872         * nscd/nscd_helper.c (open_socket): Use __gettimeofday instead of
8873         gettimeofday.
8874
8875 2007-02-01  Ulrich Drepper  <drepper@redhat.com>
8876
8877         * sysdeps/unix/sysv/linux/i386/sysdep.h (PTR_MANGLE): Roll value before
8878         returning.
8879         (PTR_DEMANGLE): Real definition now that it's not the same as
8880         PRT_MANGLE anymore.
8881         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
8882
8883         * string/strerror_l.c: New file.
8884         * string/Makefile (routines): Add strerror_l.
8885         * string/string.h: Declare strerror_l.
8886         * string/Versions: Export strerror_l for GLIBC_2.6.
8887
8888 2007-01-31  Ulrich Drepper  <drepper@redhat.com>
8889
8890         * nscd/nscd_helper.c (open_socket): Now takes request type and key
8891         as parameter.  Construct request record.  Try sending request
8892         before the first poll use, it usually succeeds.  Adjust all
8893         callers.
8894         * nscd/nscd-client.h: Define MAXKEYLEN.
8895         * nscd/connections.c (nscd_run): Don't define MAXKEYLEN here.
8896
8897 2007-01-31  Jakub Jelinek  <jakub@redhat.com>
8898
8899         * nscd/nscd-client.h (__nscd_cache_search): Remove const qualifier
8900         from return value.
8901         * nscd/nscd_helper.c: Include string.h.
8902         (__nscd_cache_search): Remove const qualifier from return value.
8903         On strict alignment architectures check hash entry and data head
8904         alignment.
8905         * nscd/nscd_getpw_r.c (nscd_getpw_r): Don't crash or fail because
8906         mmapped data during GC cycle contains garbage.  If
8907         __nscd_drop_map_ref fails, decrement mapped->counter when returning
8908         error or if retrying with NO_MAPPING, only __nscd_unmap if counter
8909         dropped to 0.
8910         * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
8911         * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
8912         * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
8913         * nscd/nscd_getai.c (__nscd_getai): Likewise.
8914         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
8915
8916 2007-01-30  Ulrich Drepper  <drepper@redhat.com>
8917
8918         * misc/hsearch_r.c (hdestroy_r): Remove unnecessary test.
8919
8920 2007-01-26  Ulrich Drepper  <drepper@redhat.com>
8921
8922         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Use register
8923         names not numbers in cfi_*.
8924
8925 2007-01-26  Andreas Jaeger  <aj@suse.de>
8926
8927         * sysdeps/unix/sysv/linux/sys/personality.h (ADDR_NO_RANDOMIZE,
8928         ADDR_LIMIT_3GB, PER_LINUX_32BIT, PER_LINUX32_3GB): Add.
8929         Correct values of PER_HPUX and PER_OSF4.
8930
8931 2007-01-24  Ulrich Drepper  <drepper@redhat.com>
8932
8933         * elf/dl-minimal.c: Undefine _itoa first.
8934         * stdio-common/_itoa.h: Define _itoa and _fitoa for 64-bit platforms.
8935         * malloc/mtrace.c: Revert last change.
8936         * posix/wordexp.c: Likewise.
8937
8938 2007-01-24  Jakub Jelinek  <jakub@redhat.com>
8939
8940         * sysdeps/i386/bits/byteswap.h (__bswap_32): Add __nocona__, __core2__
8941         and __geode__ to the list of i486+ CPUs.
8942         * sysdeps/x86_64/bits/byteswap.h (__bswap_32): Likewise.
8943
8944 2007-01-23  Ulrich Drepper  <drepper@redhat.com>
8945
8946         * stdio-common/_itoa.c: Include <limits.h>.
8947         * stdio-common/_itowa.c: Likewise.
8948
8949 2007-01-22  Ulrich Drepper  <drepper@redhat.com>
8950
8951         * stdio-common/_itowa.c: Don't compile _itowa for 64-bit
8952         platforms.
8953         * stdio-common/_itoa.c: Don't compile in _itoa and _fitoa for
8954         64-bit platforms.
8955         * malloc/mtrace.c (tr_where): Use _fitoa_word instead of _fitoa if
8956         possible.
8957         * posix/wordexp.c (parse_arith): Use _itoa_word instead of _itoa
8958         if possible.
8959
8960         [BZ #3902]
8961         * stdio-common/_itoa.c (_itoa): Make sure at least a zero is emitted.
8962         * stdio-common/Makefile (tests): Add bug17.
8963         * stdio-common/bug17.c: New file.
8964
8965 2007-01-19  Ulrich Drepper  <drepper@redhat.com>
8966
8967         * iconvdata/brf.c: New file.
8968         * iconvdata/testdata/BRF: New file.
8969         * iconvdata/testdata/BRF..UTF8: New file.
8970         Contributed by Samuel Thibault <samuel.thibault@ens-lyon.org>.
8971         * iconvdata/Makefile: Add rules to build BRF.
8972         * iconvdata/TESTS: Add BRF entry.
8973         * iconvdata/gconv-modules: Likewise.
8974         * iconvdata/tst-tables.sh: Likewise.
8975
8976 2007-01-18  Anton Nikishaev  <anton.nik@gmail.com>
8977
8978         * wcsmbs/wchar.h (wcstoll): Fix comment, function returns value of
8979         type `long long int', not `long int'.
8980         (wcstoq): Likewise.
8981
8982 2007-01-18  Ulrich Drepper  <drepper@redhat.com>
8983
8984         * scripts/gen-as-const.awk: Add cast to long to avoid int promotion
8985         of values on 64-bit platforms which are too large.
8986
8987 2007-01-12  Steven Munroe  <sjmunroe@us.ibm.com>
8988             Joe Kerian  <jkerian@us.us.ibm.com>
8989
8990         [BZ #2749]
8991         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Include
8992         <math_ldbl_opt.h>.  Remove weak_alias.  Use long_double_symbol macro.
8993         (__copysignl): Use signbit() for comparison.
8994         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Correct parms for
8995         SET_LDOUBLE_WORDS64.
8996
8997         [BZ #2423, #2749]
8998         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Don't include <fenv_libc.h>.
8999         (__ceill): Remove calls to fegetround(), fesetround().
9000         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
9001         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
9002         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
9003
9004 2007-01-17  Jakub Jelinek  <jakub@redhat.com>
9005
9006         * nscd/nscd_getserv_r.c (nscd_getserv_r): Fix pastos.
9007
9008         * sysdeps/unix/sysv/linux/getdents.c (offsetof): Remove.
9009
9010 2007-01-17  Ulrich Drepper  <drepper@redhat.com>
9011
9012         * sysdeps/unix/sysv/linux/fatal-prepare.h: Use PTHFCT_CALL to
9013         demangle pointer.
9014         * csu/libc-start.c: Likewise.
9015
9016 2007-01-16  Ulrich Drepper  <drepper@redhat.com>
9017
9018         * sysdeps/posix/system.c: Remove NO_WAITPID support, it cannot
9019         really work anyway.
9020
9021 2007-01-15  Ulrich Drepper  <drepper@redhat.com>
9022
9023         * nscd/connections.c (servinfo): Renamed to reqinfo.  Change all
9024         users.
9025         (handle_request): Remove unnecessary tests.
9026
9027         * nscd/cache.c (cache_add): Record the failure to add to the cache.
9028
9029 2007-01-15  Jakub Jelinek  <jakub@redhat.com>
9030
9031         * soft-fp/op-common.h (FP_TRUNC): When truncating a NaN, clear
9032         workbits in semi-raw fraction.
9033
9034         * math/test-misc.c: Add new tests.
9035
9036 2007-01-14  Steven Munroe  <sjmunroe@us.ibm.com>
9037
9038         * math/basic-test.c: Include test-skeleton.c.
9039         (TEST_TRUNC): Define.
9040         (truncdfsf_test, trunctfsf_test, trunctfdf_test): New.
9041         (main): Rename to ...
9042         (do_test): ...this.  Run new tests.
9043         (TEST_FUNCTION): Define.
9044
9045 2006-10-05  Steven Munroe  <sjmunroe@us.ibm.com>
9046             Joe Kerian  <jkerian@us.us.ibm.com>
9047
9048         [BZ #2749]
9049         * soft-fp/op-4.h (__FP_FRAC_SUB_3, __FP_FRAC_SUB_4): Correct borrow
9050         handling for high words.
9051         * soft-fp/op-common.h (_FP_OVERFLOW_SEMIRAW): Always set inexact
9052         and overflow for infinity.
9053
9054 2007-01-15  Ulrich Drepper  <drepper@redhat.com>
9055
9056         * nscd/connections.c (handle_request): Add a __builtin_expect.
9057
9058         * nscd/connections.c (serv2db): Change type into structure which
9059         also says whether this is a request for data.  Renamed to
9060         servinfo.  All users changed.
9061         (handle_request): Much simpler test whether we should search the cache.
9062
9063         * nscd/connections.c (handle_request): Fix thinko in selinux test
9064         invocation.
9065
9066         * sysdeps/generic/ldsodefs.h: Define DL_LOOKUP_SCOPE_LOCK.
9067         * elf/dl-lookup.c (add_dependency): If scope map is locked, unlock
9068         it before getting dl_load_lock and then relock.
9069         (_dl_lookup_symbol_x): Pass flags to add_dependency.
9070         When rerunning _dl_lookup_symbol_x, compute symbol_scope again in
9071         case we unlocked the scope.
9072         * elf/dl-runtime.c (_dl_fixup): Pass DL_LOOKUP_SCOPE_LOCK to
9073         _dl_lookup_symbol_x in case we locked the scope.
9074         (_dl_profile_fixup): Likewise.
9075         * elf/dl-sym.c (do_sym): In flags passed to call_dl_lookup, also
9076         set DL_LOOKUP_SCOPE_LOCK.
9077
9078 2007-01-13  Ulrich Drepper  <drepper@redhat.com>
9079
9080         * inet/Makefile: Define CFLAGS-getsrvbynm_r.c and
9081         CFLAGS-getsrvbynpt_r.c.
9082         * nscd/getsrvbynm_r.c: New file.
9083         * nscd/getsrvbypt_r.c: New file.
9084         * nscd/nscd_getserv_r.c: New file.
9085         * nscd/servicescache.c: New file.
9086         * nscd/Makefile (routines): Add nscd_getserv_r.
9087         (nscd-modules): Add getsrvbynm_r, getsrvbypt_r, and servicescache.
9088         Define CFLAGS-servicescache.c, CFLAGS-getsrvbynm_r.c, and
9089         CFLAGS-getsrvbypt_r.c.
9090         * nscd/cache.c (prune_cache): Rewrite to get re-add function from
9091         table.  Add entries for services database.
9092         * nscd/connections.c (serv2str): Mark as const.  Add entries for
9093         services database.
9094         (dbs): Add .reset_res and servdb initialization.
9095         (serv2db): Add entries for services database.
9096         (verify_persistent_db): Accept dbnr == servdb.
9097         (invalidate_cache): Rewrite database name recognition to use a table.
9098         Call res_init() if .reset_res is set for database.
9099         (handle_request): Add code to handle services database.
9100         * nscd/gai.c: Don't define __getservbyname_r.
9101         * nscd/nscd-client.h (request_type): Remove LASTDBREQ, add
9102         GETSERVBYNAME, GETSERVBYPORT, GETFDSERV.
9103         (serv_response_header): Define.
9104         (struct datahead): Add serv_response_header member.
9105         * nscd/nscd.c (parse_opt): Rewrite parsing of -i parameter value
9106         using table.
9107         * nscd/nscd.conf: Add entries for services database.
9108         * nscd/nscd.h: Adjust declaration of dbnames and serv2str.
9109         Declare serv_iov_disabled.
9110         Declare addservbyname, readdservbyname, addservbyport, and
9111         readdservbyport.
9112         * nscd/nscd_conf.c (dbnames): Mark as const.  Add services entry.
9113         (find_db): Fix error message.
9114         * nscd/nscd_proto.h: Declare __nss_not_use_nscd_services,
9115         __nscd_getservbyname_r, and __nscd_getservbyport_r.
9116         * nscd/selinux.c (perms): Add entries for services database.
9117         * nss/Versions: Export __nss_services_lookup with GLIBC_PRIVATE.
9118         * nss/nsswitch.c (__nss_disable_nscd): Also disable services database.
9119
9120         * nscd/grpcache.c: Remove obsolete code.  Cleanups.
9121         * nscd/hstcache.c: Likewise.
9122         * nscd/pwdcache.c: Likewise.
9123
9124         * nis/nss_nis/nis-service.c (_nss_nis_getservbyname_r): Correct
9125         computation of keylen.
9126
9127         * include/string.h: Only redefine strndupa if this is really for
9128         libc code.
9129
9130 2007-01-12  Ulrich Drepper  <drepper@redhat.com>
9131
9132         * nscd/nscd_gethst_r.c: Minor cleanups.
9133
9134         * nscd/connections.c (handle_request): Check selinux permissions
9135         for all non-admin commands.
9136
9137         * sysdeps/i386/i486/bits/atomic.h: Define
9138         atomic_compare_and_exchange_val_acq,
9139         atomic_compare_and_exchange_bool_acq, and atomic_exchange_and_add
9140         using __sync_* built-ins for gcc >= 4.1.
9141         * sysdeps/x86_64/bits/atomic.h: Likewise.
9142
9143         [BZ #3840]
9144         * scripts/check-local-headers.sh: Restrict to testing .o.d, .os.d,
9145         and .oS.d files.
9146
9147 2007-01-05  Steven Munroe  <sjmunroe@us.ibm.com>
9148
9149         * stdlib/tst-makecontext.c: Include errno.h.  Change main()
9150         to do_test().  Define TEST_FUNCTION. Include test-skeleton.c.
9151         (do_test): Check errno and exit(0) if ENOSYS.
9152
9153 2007-01-11  Jakub Jelinek  <jakub@redhat.com>
9154
9155         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix handling of multi-byte
9156         thousands separators.
9157         * stdlib/Makefile: Add rules to build and run tst-strtod4.
9158         * stdlib/tst-strtod4.c: New test.
9159
9160         [BZ #3855]
9161         * stdlib/strtod_l.c (____STRTOF_INTERNAL): 0x. not followed by
9162         hexadecimal digit should accept just the initial 0.
9163         * stdlib/tst-strtod2.c (tests): New variable.
9164         (do_test): Run several tests rather than just one.
9165
9166 2007-01-11  Jakub Jelinek  <jakub@redhat.com>
9167
9168         * sysdeps/i386/soft-fp/sfp-machine.h: Remove.
9169         * sysdeps/x86_64/soft-fp/sfp-machine.h: Likewise.
9170
9171 2007-01-10  Ulrich Drepper  <drepper@redhat.com>
9172
9173         * io/fts.c: Make sure fts_cur is always valid after return from
9174         fts_read.
9175         Patch by Miloslav Trmac <mitr@redhat.com>.
9176
9177 2006-10-27  Richard Sandiford  <richard@codesourcery.com>
9178
9179         * elf/elf.h (R_MIPS_GLOB_DAT): Define.
9180         (R_MIPS_NUM): Bump by 1.
9181
9182 2007-01-03  Jakub Jelinek  <jakub@redhat.com>
9183
9184         * posix/execvp.c: Include alloca.h.
9185         (allocate_scripts_argv): Renamed to...
9186         (scripts_argv): ... this.  Don't allocate buffer here nor count
9187         arguments.
9188         (execvp): Use alloca if possible.
9189         * posix/Makefile: Add rules to build and run tst-vfork3 test.
9190         * posix/tst-vfork3.c: New test.
9191
9192 2007-01-03  Ulrich Drepper  <drepper@redhat.com>
9193
9194         * string/Makefile (tst-strxfrm2-ENV): Define.
9195         * stdlib/Makefile (tst-strtod3-ENV): Define.
9196
9197 2007-01-02  Ulrich Drepper  <drepper@redhat.com>
9198
9199         * posix/getconf.c: Update copyright year.
9200         * nss/getent.c: Likewise.
9201         * iconv/iconvconfig.c: Likewise.
9202         * iconv/iconv_prog.c: Likewise.
9203         * elf/ldconfig.c: Likewise.
9204         * catgets/gencat.c: Likewise.
9205         * csu/version.c: Likewise.
9206         * elf/ldd.bash.in: Likewise.
9207         * elf/sprof.c (print_version): Likewise.
9208         * locale/programs/locale.c: Likewise.
9209         * locale/programs/localedef.c: Likewise.
9210         * nscd/nscd.c (print_version): Likewise.
9211         * debug/xtrace.sh: Likewise.
9212         * malloc/memusage.sh: Likewise.
9213         * malloc/mtrace.pl: Likewise.
9214         * debug/catchsegv.sh: Likewise.
9215
9216 2006-12-24  Ulrich Drepper  <drepper@redhat.com>
9217
9218         * malloc/malloc.c (sYSMALLOc): Remove some unnecessary alignment
9219         attempts.
9220
9221 2006-12-23  Ulrich Drepper  <drepper@redhat.com>
9222
9223         * posix/wordexp.c: Remove some unnecessary tests.
9224
9225 2006-12-22  Gavin Romig-Koch  <gavin@redhat.com>
9226
9227         * nis/nss_compat/compat-grp.c (internal_getgrgid_r): Don't
9228         blacklist the group till after we look it up.
9229
9230 2006-12-21  Ulrich Drepper  <drepper@redhat.com>
9231
9232         * include/atomic.h (atomic_forced_read): New macro.
9233
9234 2006-12-20  SUGIOKA Toshinobu  <sugioka@itonet.co.jp>
9235
9236         * sysdeps/unix/sysv/linux/sh/bits/shm.h: New file.
9237
9238 2006-12-19  Jakub Jelinek  <jakub@redhat.com>
9239
9240         * nss/getXXbyYY_r.c: Include atomic.h.
9241         (INTERNAL (REENTRANT_NAME)): Write startp after start_fct,
9242         add atomic_write_barrier () in between.
9243
9244         * stdlib/Makefile (tests): Add tst-makecontext.
9245         * stdlib/tst-makecontext.c: New test.
9246
9247         * sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S
9248         (__makecontext): Don't realign uc_mcontext.uc_regs.
9249
9250 2006-11-28  Jakub Jelinek  <jakub@redhat.com>
9251
9252         * elf/dl-support.c: Include dl-procinfo.h.
9253         * sysdeps/powerpc/dl-procinfo.h (PPC_PLATFORM_POWER4,
9254         PPC_PLATFORM_PPC970, PPC_PLATFORM_POWER5, PPC_PLATFORM_POWER5_PLUS,
9255         PPC_PLATFORM_POWER6, PPC_PLATFORM_CELL_BE, PPC_PLATFORM_POWER6X):
9256         Define.
9257         (_dl_string_platform): Use PPC_PLATFORM_* macros instead of
9258         hardcoded constants.
9259         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_platform): Use
9260         PPC_PLATFORM_* macros for array designators.
9261
9262 2006-11-11  Steven Munroe  <sjmunroe@us.ibm.com>
9263
9264         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add 3 new cap
9265         names to the beginning.
9266         (_dl_powerpc_platforms): Add "power6x".
9267         * sysdeps/powerpc/dl-procinfo.h (_DL_HWCAP_FIRST): Decrease.
9268         (HWCAP_IMPORTANT): Add PPC_FEATURE_HAS_DFP.
9269         (_DL_PLATFORMS_COUNT): Increase.
9270         (_dl_string_platform): Handle power6x case.
9271         * sysdeps/powerpc/sysdep.h (PPC_FEATURE_PA6T, PPC_FEATURE_HAS_DFP,
9272         PPC_FEATURE_POWER6_EXT): Define.
9273         (PPC_FEATURE_POWER5, PPC_FEATURE_POWER5_PLUS): Correct Comment.
9274
9275 2006-12-18  Jakub Jelinek  <jakub@redhat.com>
9276
9277         [BZ #3747]
9278         * stdlib/jrand48_r.c (__jrand48_r): Make sure result is in the
9279         [-2^31 .. 2^31) range.
9280         * stdlib/tst-rand48.c (main): Fix expected values for 64-bit
9281         targets.
9282         * stdlib/tst-rand48-2.c: New test.
9283         * stdlib/Makefile (tests): Add tst-rand48-2.
9284
9285 2006-12-14  Jakub Jelinek  <jakub@redhat.com>
9286
9287         * misc/tst-pselect.c (do_test): Fix sigblock argument.
9288
9289 2006-12-14  Ulrich Drepper  <drepper@redhat.com>
9290
9291         * misc/tst-pselect.c (do_test): Make sure the helper process is
9292         terminating when the test is aborted.
9293
9294 2006-12-13  Ulrich Drepper  <drepper@redhat.com>
9295
9296         * sysdeps/unix/sysv/linux/bits/statvfs.h: Define ST_RELATIME.
9297         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
9298         Handle relatime mount option.
9299
9300         [BZ #2337]
9301         * libio/Makefile (tests): Add tst-setvbuf1.
9302         * libio/tst-setvbuf1.c: New file.
9303
9304 2006-12-08  Jakub Jelinek  <jakub@redhat.com>
9305
9306         [BZ #2337]
9307         * libio/genops.c (__uflow): Fix a typo.
9308         * libio/wfiledoalloc.c (_IO_wfile_doallocate): Don't stat
9309         nor set _IO_LINE_BUF bit here.  Size the wide buffer based on
9310         the narrow buffer size.
9311
9312 2006-11-24  Jakub Jelinek  <jakub@redhat.com>
9313
9314         [BZ #2337]
9315         * libio/libio.h (_IO_FLAGS2_USER_WBUF): Define.
9316         * libio/wgenops.c (_IO_wsetb, _IO_wdefault_finish): Test and set
9317         _IO_FLAGS2_USER_WBUF bit in _flags2 instead of _IO_USER_BUF bit
9318         in _flags.
9319         * libio/wstrops.c (_IO_wstr_overflow, enlarge_userbuf,
9320         _IO_wstr_finish): Likewise.
9321         * libio/wmemstream.c (open_wmemstream): Likewise.
9322         * libio/fileops.c (_IO_new_file_close_it): Call _IO_set[bgp]
9323         even for wide streams.
9324
9325 2006-12-13  Jakub Jelinek  <jakub@redhat.com>
9326
9327         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: Include
9328         kernel-features.h.
9329
9330 2006-12-11  Ulrich Drepper  <drepper@redhat.com>
9331
9332         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Parse thousand
9333         separators also if no non-zero digits found.
9334         * stdlib/Makefile (tests): Add tst-strtod3.
9335
9336 2006-12-09  Ulrich Drepper  <drepper@redhat.com>
9337
9338         [BZ #3632]
9339         * include/features.h: Fix comment about default value for
9340         _POSIX_C_SOURCE.
9341
9342         [BZ #3664]
9343         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix test to recognize
9344         empty parsed strings.
9345         * stdlib/Makefile (tests): Add tst-strtod2.
9346         * stdlib/tst-strtod2.c: New file.
9347
9348         [BZ #3673]
9349         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix exp_limit
9350         computation.
9351         * stdlib/Makefile (tests): Add tst-atof2.
9352         * stdlib/tst-atof2.c: New file.
9353
9354         [BZ #3674]
9355         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Adjust exponent value
9356         correctly if removing trailing zero of hex-float.
9357         * stdlib/Makefile (tests): Add tst-atof1.
9358         * stdlib/tst-atof1.c: New file.
9359
9360 2006-12-09  Jakub Jelinek  <jakub@redhat.com>
9361
9362         * misc/mntent_r.c (__hasmntopt): Check p[optlen] even when p == rest.
9363         Start searching for next comma at p rather than rest.
9364         * misc/Makefile (tests): Add tst-mntent2.
9365         * misc/tst-mntent2.c: New test.
9366
9367         * misc/getusershell.c (initshells): Check for integer overflows.
9368         Make strings buffer one bigger as fgets always succeeds when second
9369         argument is 1.  Don't use calloc for shells array.  Disallow
9370         / as shell.
9371
9372 2006-12-08  Ulrich Drepper  <drepper@redhat.com>
9373
9374         * malloc/memusage.c: Handle realloc with new size of zero and
9375         non-NULL pointer correctly.
9376         (me): Really write first record twice.
9377         (struct entry): Make format bi-arch safe.
9378         (dest): Write out more realloc statistics.
9379         * malloc/memusagestat.c (struct entry): Make format bi-arch safe.
9380
9381 2006-12-05  Jakub Jelinek  <jakub@redhat.com>
9382
9383         * nis/nis_subr.c (nis_getnames): Revert last change.
9384
9385 2006-12-04  Jakub Jelinek  <jakub@redhat.com>
9386
9387         * sysdeps/unix/sysv/linux/ttyname.c: Include termios.h.
9388         (ttyname): Use tcgetattr instead of isatty, don't set errno to ENOTTY.
9389         * sysdeps/unix/sysv/linux/ttyname_r.c: Include termios.h.
9390         (__ttyname_r): Use tcgetattr instead of isatty, don't set errno to
9391         ENOTTY.
9392         * io/Makefile: Add rules to build and run tst-ttyname_r test.
9393         * io/tst-ttyname_r.c: New test.
9394
9395 2006-12-03  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
9396
9397         * sysdeps/unix/sysv/linux/sh/sys/io.h: Removed.
9398
9399 2006-11-30  H.J. Lu  <hongjiu.lu@intel.com>
9400
9401         * sysdeps/i386/i686/memcmp.S: Use jump table as the base of
9402         jump table entries.
9403
9404 2006-11-30  Jan Kratochvil  <jan.kratochvil@redhat.com>
9405
9406         * sysdeps/unix/sysv/linux/i386/clone.S: Provide CFI for the outermost
9407         `clone' function to ensure proper unwinding stop of gdb.
9408         * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
9409
9410 2006-12-01  Ulrich Drepper  <drepper@redhat.com>
9411
9412         * nscd/nscd.init: Remove obsolete and commented-out -S option
9413         handling.
9414
9415 2006-11-23  Jakub Jelinek  <jakub@redhat.com>
9416
9417         [BZ #3514]
9418         * manual/string.texi (strncmp): Fix pastos from wcscmp description.
9419
9420         [BZ #3515]
9421         * manual/string.texi (strtok): Remove duplicate paragraph.
9422
9423 2006-12-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
9424
9425         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Fix compatibility with
9426         libgcc not supporting `rflags' unwinding (register # >= 17).
9427
9428 2006-11-30  Jakub Jelinek  <jakub@redhat.com>
9429
9430         * sunrpc/svc_run.c (svc_run): Set my_pollfd to new_pollfd if realloc
9431         succeeded.
9432
9433 2006-11-29  Daniel Jacobowitz  <dan@codesourcery.com>
9434             Jakub Jelinek  <jakub@redhat.com>
9435             Jan Kratochvil  <jan.kratochvil@redhat.com>
9436
9437         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (restore_rt): Add correct
9438         unwind information.
9439         * sysdeps/unix/sysv/linux/x86_64/Makefile: Provide symbols for
9440         'restore_rt' even in the 'signal' directory.
9441         * sysdeps/unix/sysv/linux/x86_64/ucontext_i.sym: Extend the regs list.
9442
9443 2006-11-27  Jakub Jelinek  <jakub@redhat.com>
9444
9445         [BZ #3559]
9446         * sunrpc/svc_run.c (svc_run): Fail instead of segfaulting if
9447         malloc crashed.  Don't allocate memory unnecessarily in each
9448         loop.
9449
9450 2006-10-21  Jakub Jelinek  <jakub@redhat.com>
9451
9452         * resolv/mapv4v6addr.h (map_v4v6_address): Fix last change.
9453
9454 2006-11-20  Ulrich Drepper  <drepper@redhat.com>
9455
9456         * resolv/mapv4v6addr.h (map_v4v6_address): Optimize a bit.
9457
9458 2006-11-18  Bruno Haible  <bruno@clisp.org>
9459
9460         * sysdeps/unix/sysv/linux/i386/getgroups.c (__getgroups): Invoke
9461         __sysconf only after having tried to call getgroups32.
9462
9463 2006-11-19  Ulrich Drepper  <drepper@redhat.com>
9464
9465         * nss/nss_files/files-hosts.c (LINE_PARSER): Support IPv6-style
9466         addresses for IPv4 queries if they can be mapped.
9467
9468 2006-11-16  Jakub Jelinek  <jakub@redhat.com>
9469
9470         * sysdeps/x86_64/fpu/s_copysignf.S (__copysignf): Switch to .text.
9471         * sysdeps/x86_64/fpu/s_copysign.S (__copysign): Likewise.
9472         (signmask): Add .size directive.
9473         (othermask): Add .type directive.
9474
9475 2006-11-14  Ulrich Drepper  <drepper@redhat.com>
9476
9477         * po/nl.po: Update from translation team.
9478
9479         * timezone/zdump.c: Redo fix for BZ #3137.
9480
9481 2006-11-14  Jakub Jelinek  <jakub@redhat.com>
9482
9483         * nss/nss_files/files-alias.c (get_next_alias): Set line back
9484         to first_unused after parsing :include: file.
9485
9486 2006-11-10  Ulrich Drepper  <drepper@redhat.com>
9487
9488         * timezone/africa: Update from tzdata2006o.
9489         * timezone/antarctica: Likewise.
9490         * timezone/asia: Likewise.
9491         * timezone/australasia: Likewise.
9492         * timezone/backward: Likewise.
9493         * timezone/europe: Likewise.
9494         * timezone/iso3166.tab: Likewise.
9495         * timezone/northamerica: Likewise.
9496         * timezone/southamerica: Likewise.
9497         * timezone/zone.tab: Likewise.
9498
9499         * time/tzfile.c (__tzfile_read): Extend to handle new file format
9500         on machines with 64-bit time_t.
9501
9502         * timezone/checktab.awk: Update from tzcode2006o.
9503         * timezone/ialloc.c: Likewise.
9504         * timezone/private.h: Likewise.
9505         * timezone/scheck.c: Likewise.
9506         * timezone/tzfile.h: Likewise.
9507         * timezone/tzselect.ksh: Likewise.
9508         * timezone/zdump.c: Likewise.
9509         * timezone/zic.c: Likewise.
9510
9511         [BZ #3483]
9512         * elf/ldconfig.c (main): Call setlocale and textdomain.
9513         Patch mostly by Benno Schulenberg <bensberg@justemail.net>.
9514
9515         [BZ #3480]
9516         * manual/argp.texi: Fix typos.
9517         * manual/charset.texi: Likewise.
9518         * manual/errno.texi: Likewise.
9519         * manual/filesys.texi: Likewise.
9520         * manual/lang.texi: Likewise.
9521         * manual/maint.texi: Likewise.
9522         * manual/memory.texi: Likewise.
9523         * manual/message.texi: Likewise.
9524         * manual/resource.texi: Likewise.
9525         * manual/search.texi: Likewise.
9526         * manual/signal.texi: Likewise.
9527         * manual/startup.texi: Likewise.
9528         * manual/stdio.texi: Likewise.
9529         * manual/sysinfo.texi: Likewise.
9530         * manual/syslog.texi: Likewise.
9531         * manual/time.texi: Likewise.
9532         Patch by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
9533
9534         [BZ #3465]
9535         * sunrpc/clnt_raw.c: Minimal message improvements.
9536         * sunrpc/pm_getmaps.c: Likewise.
9537         * nis/nss_nisplus/nisplus-publickey.c: Likewise.
9538         * nis/nis_print_group_entry.c: Likewise.
9539         * locale/programs/repertoire.c: Likewise.
9540         * locale/programs/charmap.c: Likewise.
9541         * malloc/memusage.sh: Likewise.
9542         * elf/dl-deps.c: Likewise.
9543         * locale/programs/ld-collate.c: Likewise.
9544         * libio/vswprintf.c: Likewise.
9545         * malloc/memusagestat.c: Likewise.
9546         * sunrpc/auth_unix.c: Likewise.
9547         * sunrpc/rpc_main.c: Likewise.
9548         * nscd/cache.c: Likewise.
9549         * locale/programs/repertoire.c: Unify output messages.
9550         * locale/programs/charmap.c: Likewise.
9551         * locale/programs/ld-ctype.c: Likewise.
9552         * locale/programs/ld-monetary.c: Likewise.
9553         * locale/programs/ld-numeric.c: Likewise.
9554         * locale/programs/ld-time.c: Likewise.
9555         * elf/ldconfig.c: Likewise.
9556         * nscd/selinux.c: Likewise.
9557         * elf/cache.c: Likewise.
9558         Patch mostly by Benno Schulenberg <bensberg@justemail.net>.
9559
9560         [BZ #3451]
9561         * sysdeps/i386/fpu/bits/mathinline.h (floor): Make rounding mode
9562         change atomic.
9563         (ceil): Likewise.
9564
9565 2006-11-10  Jakub Jelinek  <jakub@redhat.com>
9566
9567         * string/strxfrm_l.c (STRXFRM): Fix trailing \1 optimization
9568         if N is one bigger than return value.
9569         * string/tst-strxfrm2.c (do_test): Also test strxfrm with l1 + 1
9570         and l1 last arguments, if buf is defined, verify the return value
9571         equals to strlen (buf) and verify no byte beyond passed length
9572         is modified.
9573
9574 2006-11-10  Ulrich Drepper  <drepper@redhat.com>
9575
9576         * po/sv.po: Update from translation team.
9577
9578 2006-11-09  Ulrich Drepper  <drepper@redhat.com>
9579
9580         * sysdeps/unix/sysv/linux/x86_64/sysconf.c (intel_check_word): Add
9581         noinline attribute.
9582
9583 2006-11-10  Jakub Jelinek  <jakub@redhat.com>
9584
9585         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Add
9586         noinline attribute.
9587
9588         * sysdeps/gnu/siglist.c (__old_sys_siglist, __old_sys_sigabbrev):
9589         Use __new_sys_siglist instead of _sys_siglist_internal as
9590         second macro argument.
9591         (_old_sys_siglist): Use declare_symbol_alias macro instead of
9592         strong_alias.
9593
9594 2006-11-09  Ulrich Drepper  <drepper@redhat.com>
9595
9596         [BZ #3493]
9597         * posix/unistd.h (sysconf): Remove const attribute.
9598
9599         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Fix test for
9600         temporary or deprecated addresses.
9601         Patch by Sridhar Samudrala <sri@us.ibm.com>.
9602
9603         * string/Makefile (tests): Add tst-strxfrm2.
9604         * string/tst-strxfrm2.c: New file.
9605
9606 2006-10-09  Jakub Jelinek  <jakub@redhat.com>
9607
9608         * elf/dl-debug.c (_dl_debug_initialize): Check r->r_map for 0
9609         rather than r->r_brk.
9610
9611 2006-11-08  Jakub Jelinek  <jakub@redhat.com>
9612
9613         * string/strxfrm_l.c (STRXFRM): Do the trailing \1 removal
9614         optimization even if needed > n.
9615
9616         * elf/dl-load.c (decompose_rpath): Return bool rather than void.
9617         If l->l_name is on inhibit_rpath list, set sps->dirs to -1 and
9618         return false, otherwise return true.
9619         (cache_rpath): Return decompose_rpath return value.
9620
9621 2006-11-07  Jakub Jelinek  <jakub@redhat.com>
9622
9623         * include/libc-symbols.h (declare_symbol): Rename to...
9624         (declare_symbol_alias): ... this.  Add ORIGINAL argument, imply
9625         strong_alias (ORIGINAL, SYMBOL) in asm to make sure it preceedes
9626         .size directive.
9627         * sysdeps/gnu/errlist-compat.awk: Adjust for declare_symbol_alias
9628         changes.
9629         * sysdeps/gnu/siglist.c: Likewise.
9630
9631 2006-11-03  Steven Munroe  <sjmunroe@us.ibm.com>
9632
9633         * sysdeps/powerpc/fpu/bits/mathinline.h
9634         [__LIBC_INTERNAL_MATH_INLINES]: Moved to ...
9635         * sysdeps/powerpc/fpu/math_private.h: ...here.  New file.
9636
9637 2006-11-05  Ulrich Drepper  <drepper@redhat.com>
9638
9639         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
9640         Update handling of cache descriptor 0x49 for new models.
9641         * sysdeps/unix/sysv/linux/x86_64/sysconf.c (intel_check_word):
9642         Likewise.
9643
9644 2006-11-02  Jakub Jelinek  <jakub@redhat.com>
9645
9646         * malloc/memusage.c (dest): Reset not_me back to false after
9647         printing statistics.
9648
9649 2006-11-02  Ulrich Drepper  <drepper@redhat.com>
9650
9651         * configure.in: Work around ld --help change and avoid -z relro
9652         test completely if the architecture doesn't care about security.
9653
9654 2006-11-01  Ulrich Drepper  <drepper@redhat.com>
9655
9656         * po/sv.po: Update from translation team.
9657
9658 2006-10-31  Ulrich Drepper  <drepper@redhat.com>
9659
9660         * stdlib/atexit.c (atexit): Don't mark as hidden when used to
9661         generate compatibility version.
9662
9663 2006-10-29  Ulrich Drepper  <drepper@redhat.com>
9664
9665         * configure.in: Relax -z relro requirement a bit.
9666
9667         * po/sv.po: Update from translation team.
9668
9669 2006-10-29  Jakub Jelinek  <jakub@redhat.com>
9670
9671         * elf/dl-sym.c (do_sym): Use RTLD_SINGLE_THREAD_P.
9672         * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Likewise.
9673         * elf/dl-close.c (_dl_close_worker): Likewise.
9674         * elf/dl-open.c (_dl_open_worker): Likewise.
9675         * sysdeps/generic/sysdep-cancel.h (RTLD_SINGLE_THREAD_P): Define.
9676
9677 2006-10-27  Ulrich Drepper  <drepper@redhat.com>
9678
9679         * configure.in: Require assembler support for visibility, compiler
9680         support for visibility and aliases, linker support for various -z
9681         options.
9682         * Makeconfig: Remove conditional code which now is unnecessary.
9683         * config.h.in: Likewise.
9684         * config.make.in: Likewise.
9685         * dlfcn/Makefile: Likewise.
9686         * elf/Makefile: Likewise.
9687         * elf/dl-load.c: Likewise.
9688         * elf/rtld.c: Likewise.
9689         * include/libc-symbols.h: Likewise.
9690         * include/stdio.h: Likewise.
9691         * io/Makefile: Likewise.
9692         * io/fstat.c: Likewise.
9693         * io/fstat64.c: Likewise.
9694         * io/fstatat.c: Likewise.
9695         * io/fstatat64.c: Likewise.
9696         * io/lstat.c: Likewise.
9697         * io/lstat64.c: Likewise.
9698         * io/mknod.c: Likewise.
9699         * io/mknodat.c: Likewise.
9700         * io/stat.c: Likewise.
9701         * io/stat64.c: Likewise.
9702         * libio/stdio.c: Likewise.
9703         * nscd/Makefile: Likewise.
9704         * stdlib/Makefile: Likewise.
9705         * stdlib/atexit.c: Likewise.
9706         * sysdeps/generic/ldsodefs.h: Likewise.
9707         * sysdeps/i386/dl-machine.h: Likewise.
9708         * sysdeps/i386/sysdep.h: Likewise.
9709         * sysdeps/i386/i686/memcmp.S: Likewise.
9710         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
9711         * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
9712         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
9713
9714         * Makerules: USE_TLS support is now default.
9715         * tls.make.c: Likewise.
9716         * csu/Versions: Likewise.
9717         * csu/libc-start.c: Likewise.
9718         * csu/libc-tls.c: Likewise.
9719         * csu/version.c: Likewise.
9720         * dlfcn/dlinfo.c: Likewise.
9721         * elf/dl-addr.c: Likewise.
9722         * elf/dl-cache.c: Likewise.
9723         * elf/dl-close.c: Likewise.
9724         * elf/dl-iteratephdr.c: Likewise.
9725         * elf/dl-load.c: Likewise.
9726         * elf/dl-lookup.c: Likewise.
9727         * elf/dl-object.c: Likewise.
9728         * elf/dl-open.c: Likewise.
9729         * elf/dl-reloc.c: Likewise.
9730         * elf/dl-support.c: Likewise.
9731         * elf/dl-sym.c: Likewise.
9732         * elf/dl-sysdep.c: Likewise.
9733         * elf/dl-tls.c: Likewise.
9734         * elf/ldconfig.c: Likewise.
9735         * elf/rtld.c: Likewise.
9736         * elf/tst-tls-dlinfo.c: Likewise.
9737         * elf/tst-tls1.c: Likewise.
9738         * elf/tst-tls10.h: Likewise.
9739         * elf/tst-tls14.c: Likewise.
9740         * elf/tst-tls2.c: Likewise.
9741         * elf/tst-tls3.c: Likewise.
9742         * elf/tst-tls4.c: Likewise.
9743         * elf/tst-tls5.c: Likewise.
9744         * elf/tst-tls6.c: Likewise.
9745         * elf/tst-tls7.c: Likewise.
9746         * elf/tst-tls8.c: Likewise.
9747         * elf/tst-tls9.c: Likewise.
9748         * elf/tst-tlsmod1.c: Likewise.
9749         * elf/tst-tlsmod13.c: Likewise.
9750         * elf/tst-tlsmod13a.c: Likewise.
9751         * elf/tst-tlsmod14a.c: Likewise.
9752         * elf/tst-tlsmod2.c: Likewise.
9753         * elf/tst-tlsmod3.c: Likewise.
9754         * elf/tst-tlsmod4.c: Likewise.
9755         * elf/tst-tlsmod5.c: Likewise.
9756         * elf/tst-tlsmod6.c: Likewise.
9757         * include/errno.h: Likewise.
9758         * include/link.h: Likewise.
9759         * include/tls.h: Likewise.
9760         * locale/global-locale.c: Likewise.
9761         * locale/localeinfo.h: Likewise.
9762         * malloc/arena.c: Likewise.
9763         * malloc/hooks.c: Likewise.
9764         * malloc/malloc.c: Likewise.
9765         * resolv/Versions: Likewise.
9766         * sysdeps/alpha/dl-machine.h: Likewise.
9767         * sysdeps/alpha/libc-tls.c: Likewise.
9768         * sysdeps/generic/ldsodefs.h: Likewise.
9769         * sysdeps/generic/tls.h: Likewise.
9770         * sysdeps/i386/dl-machine.h: Likewise.
9771         * sysdeps/ia64/dl-machine.h: Likewise.
9772         * sysdeps/ia64/libc-tls.c: Likewise.
9773         * sysdeps/mach/hurd/fork.c: Likewise.
9774         * sysdeps/mach/hurd/i386/tls.h: Likewise.
9775         * sysdeps/powerpc/powerpc32/dl-machine.c: Likwise.
9776         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
9777         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
9778         * sysdeps/s390/libc-tls.c: Likewise.
9779         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
9780         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
9781         * sysdeps/sh/dl-machine.h: Likewise.
9782         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
9783         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
9784         * sysdeps/x86_64/dl-machine.h: Likewise.
9785
9786         * elf/dl-close.c (_dl_close_worker): Renamed from _dl_close and
9787         split out locking and parameter checking.
9788         (_dl_close): Call _dl_close_worker after locking and checking.
9789         * elf/dl-open.c (_dl_open): Call _dl_close_worker instead of
9790         _dl_close.
9791         * elf/Makefile: Add rules to build and run tst-thrlock.
9792         * elf/tst-thrlock.c:  New file.
9793
9794         [BZ #3426]
9795         * stdlib/stdlib.h: Adjust comment for canonicalize_file_name to
9796         reality.
9797
9798         [BZ #3429]
9799         * elf/dl-open.c (dl_open_worker): Keep holding dl_load_lock until
9800         we are sure we do not need it anymore for _dl_close.  Also move
9801         the asserts inside the lock region.
9802         Patch mostly by Suzuki <suzuki@in.ibm.com>.
9803
9804 2006-10-27  Jakub Jelinek  <jakub@redhat.com>
9805
9806         * elf/dl-lookup.c (_dl_debug_bindings): Remove unused symbol_scope
9807         argument.
9808         (_dl_lookup_symbol_x): Adjust caller.
9809
9810         * sysdeps/generic/ldsodefs.h (struct link_namespaces): Remove
9811         _ns_global_scope.
9812         * elf/rtld.c (dl_main): Don't initialize _ns_global_scope.
9813
9814         * elf/dl-libc.c: Revert l_scope name changes.
9815         * elf/dl-load.c: Likewise.
9816         * elf/dl-object.c: Likewise.
9817         * elf/rtld.c: Likewise.
9818         * elf/dl-close.c (_dl_close): Likewise.
9819         * elf/dl-open.c (dl_open_worker): Likewise.  If not SINGLE_THREAD_P,
9820         always use __rtld_mrlock_{change,done}.  Always free old scope list
9821         here if not l_scope_mem.
9822         * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Revert l_scope name
9823         change.  Never free scope list here.  Just __rtld_mrlock_lock before
9824         the lookup and __rtld_mrlock_unlock it after the lookup.
9825         * elf/dl-sym.c: Likewise.
9826         * include/link.h (struct r_scoperec): Remove.
9827         (struct link_map): Replace l_scoperec with l_scope, l_scoperec_mem
9828         with l_scope_mem and l_scoperec_lock with l_scope_lock.
9829
9830 2006-10-25  Ulrich Drepper  <drepper@redhat.com>
9831
9832         * sysdeps/gnu/netinet/tcp.h: Define TCP_CONGESTION.
9833
9834 2006-10-18  Ulrich Drepper  <drepper@redhat.com>
9835
9836         * configure.in: Disable building profile libraries by default.
9837
9838 2006-10-17  Jakub Jelinek  <jakub@redhat.com>
9839
9840         * sunrpc/xdr_mem.c (xdrmem_setpos): Don't compare addresses
9841         as signed longs, check for x_base + pos overflow.
9842         * sunrpc/Makefile (tests): Add tst-xdrmem2.
9843         * sunrpc/tst-xdrmem2.c: New test.
9844
9845 2006-10-18  Ulrich Drepper  <drepper@redhat.com>
9846
9847         * elf/dl-lookup.c (_dl_lookup_symbol_x): Add warning to
9848         _dl_lookup_symbol_x code.
9849
9850 2006-10-17  Jakub Jelinek  <jakub@redhat.com>
9851
9852         * elf/dl-runtime.c: Include sysdep-cancel.h.
9853         (_dl_fixup, _dl_profile_fixup): Use __rtld_mrlock_* and
9854         scoperec->nusers only if !SINGLE_THREAD_P.  Use atomic_*
9855         instead of catomic_* macros.
9856         * elf/dl-sym.c: Include sysdep-cancel.h.
9857         (do_sym): Use __rtld_mrlock_* and scoperec->nusers only
9858         if !SINGLE_THREAD_P.  Use atomic_* instead of catomic_* macros.
9859         * elf/dl-close.c: Include sysdep-cancel.h.
9860         (_dl_close): Use __rtld_mrlock_* and scoperec->nusers only
9861         if !SINGLE_THREAD_P.  Use atomic_* instead of catomic_* macros.
9862         * elf/dl-open.c: Include sysdep-cancel.h.
9863         (dl_open_worker): Use __rtld_mrlock_* and scoperec->nusers only
9864         if !SINGLE_THREAD_P.  Use atomic_* instead of catomic_* macros.
9865
9866 2006-10-17  Jakub Jelinek  <jakub@redhat.com>
9867
9868         [BZ #3313]
9869         * malloc/malloc.c (malloc_consolidate): Set maxfb to address of last
9870         fastbin rather than end of fastbin array.
9871
9872 2006-10-18  Ulrich Drepper  <drepper@redhat.com>
9873
9874         * sysdeps/i386/i486/bits/atomic.h (catomic_decrement): Use correct
9875         body macro.
9876         * sysdeps/x86_64/bits/atomic.h
9877         (__arch_c_compare_and_exchange_val_64_acq): Add missing casts.
9878         (catomic_decrement): Use correct body macro.
9879
9880 2006-10-17  Jakub Jelinek  <jakub@redhat.com>
9881
9882         * include/atomic.h: Add a unique prefix to all local variables
9883         in macros.
9884         * csu/tst-atomic.c (do_test): Test also catomic_* macros.
9885
9886 2006-10-16  Ulrich Drepper  <drepper@redhat.com>
9887
9888         [BZ #3369]
9889         * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Fix typos in rules 4
9890         and 7.
9891
9892 2006-10-14  Ulrich Drepper  <drepper@redhat.com>
9893
9894         * resolv/arpa/nameser.h: Document that ns_t_a6 is deprecated.
9895
9896 2006-10-13  Ulrich Drepper  <drepper@redhat.com>
9897
9898         [BZ #3313]
9899         * malloc/malloc.c (malloc_consolidate): Don't use get_fast_max to
9900         determine highest fast bin to consolidate, always look into all of
9901         them.
9902         (do_check_malloc_state): Only require for empty bins for large
9903         sizes in main arena.
9904
9905         * libio/stdio.h: Add more __wur attributes.
9906
9907         * elf/dl-minimal.c (realloc): Optimize last patch.
9908
9909 2006-10-12  Richard Sandiford  <richard@codesourcery.com>
9910
9911         [BZ #3352]
9912         * elf/dl-minimal.c (realloc): Let malloc() return a new pointer,
9913         and use memcpy() if it does.
9914
9915 2006-11-12  Andreas Jaeger  <aj@suse.de>
9916
9917         [BZ #2510]
9918         * manual/search.texi (Hash Search Function): Clarify.
9919         (Array Search Function): Clarify.
9920
9921 2006-11-12  Joseph Myers  <joseph@codesourcery.com>
9922
9923         [BZ #2830]
9924         * math/atest-exp.c (main): Cast hex value to mp_limb_t before
9925         shifting.
9926         * math/atest-exp2.c (read_mpn_hex): Likewise.
9927         * math/atest-sincos.c (main): Likewise.
9928
9929 2006-10-11  Ulrich Drepper  <drepper@redhat.com>
9930
9931         * sysdeps/unix/sysv/linux/syscalls.list: Add epoll_pwait.
9932         * sysdeps/unix/sysv/linux/sys/epoll.h: Declare epoll_pwait.
9933         * sysdeps/unix/sysv/linux/Versions (libc): Add epoll_pwait for
9934         version GLIBC_2.6.
9935         * Versions.def: Add GLIBC_2.6 for libc.
9936
9937         * sysdeps/unix/sysv/linux/i386/sysdep.h (DOARGS_6): Fix offset.
9938
9939         * sysdeps/i386/i486/bits/atomic.h: Add catomic_* support.
9940
9941 2006-10-11  Jakub Jelinek  <jakub@redhat.com>
9942
9943         * malloc/malloc.c (_int_malloc): Remove unused any_larger variable.
9944
9945         * nis/nis_defaults.c (__nis_default_access): Don't call getenv twice.
9946
9947         * nis/nis_subr.c (nis_getnames): Use __secure_getenv instead of getenv.
9948         * sysdeps/generic/unsecvars.h: Add NIS_PATH.
9949
9950 2006-10-11  Ulrich Drepper  <drepper@redhat.com>
9951
9952         * include/atomic.c: Define catomic_* operations.
9953         * sysdeps/x86_64/bits/atomic.h: Likewise.  Fix a few minor problems.
9954         * stdlib/cxa_finalize.c: Use catomic_* operations instead of atomic_*.
9955         * malloc/memusage.c: Likewise.
9956         * gmon/mcount.c: Likewise.
9957         * elf/dl-close.c: Likewise.
9958         * elf/dl-open.c: Likewise.
9959         * elf/dl-profile.c: Likewise.
9960         * elf/dl-sym.c: Likewise.
9961         * elf/dl-runtime.c: Likewise.
9962         * elf/dl-fptr.c: Likewise.
9963         * resolv/res_libc.c: Likewise.
9964
9965 2006-10-10  Ulrich Drepper  <drepper@redhat.com>
9966
9967         * nis/nis_subr.c (nis_getnames): Add trailing dot to NIS_PATH
9968         components which lack them.
9969
9970         * nis/nis_subr.c (nis_getnames): Make sure that we always return
9971         at least one entry consisting of the parameter concatenated with
9972         the domain.
9973
9974 2006-10-10  Roland McGrath  <roland@frob.com>
9975
9976         * sysdeps/mach/hurd/utimes.c: Use a union to avoid an improper cast.
9977         * sysdeps/mach/hurd/futimes.c: Likewise.
9978         * sysdeps/mach/hurd/lutimes.c: Likewise.
9979
9980 2006-10-09  Ulrich Drepper  <drepper@redhat.com>
9981             Jakub Jelinek  <jakub@redhat.com>
9982
9983         Implement reference counting of scope records.
9984         * elf/dl-close.c (_dl_close): Remove all scopes from removed objects
9985         from the list in objects which remain.  Always allocate new scope
9986         record.
9987         * elf/dl-open.c (dl_open_worker): When growing array for scopes,
9988         don't resize, allocate a new one.
9989         * elf/dl-runtime.c: Update reference counters before using a scope
9990         array.
9991         * elf/dl-sym.c: Likewise.
9992         * elf/dl-libc.c: Adjust for l_scope name change.
9993         * elf/dl-load.c: Likewise.
9994         * elf/dl-object.c: Likewise.
9995         * elf/rtld.c: Likewise.
9996         * include/link.h: Include <rtld-lowlevel.h>.  Define struct
9997         r_scoperec.  Replace r_scope with pointer to r_scoperec structure.
9998         Add l_scoperec_lock.
9999         * sysdeps/generic/ldsodefs.h: Include <rtld-lowlevel.h>.
10000         * sysdeps/generic/rtld-lowlevel.h: New file.
10001
10002         * include/atomic.h: Rename atomic_and to atomic_and_val and
10003         atomic_or to atomic_or_val.  Define new macros atomic_and and
10004         atomic_or which do not return values.
10005         * sysdeps/x86_64/bits/atomic.h: Define atomic_and and atomic_or.
10006         Various cleanups.
10007         * sysdeps/i386/i486/bits/atomic.h: Likewise.
10008
10009         * po/sv.po: Update from translation team.
10010
10011 2006-10-07  Ulrich Drepper  <drepper@redhat.com>
10012
10013         * Versions.def: Add GLIBC_2.6 to libpthread.
10014
10015         * include/shlib-compat.h (SHLIB_COMPAT): Expand parameters before use.
10016         (versioned_symbol): Likewise.
10017         (compat_symbol): Likewise.
10018
10019         * po/tr.po: Update from translation team.
10020
10021 2006-10-06  Ulrich Drepper  <drepper@redhat.com>
10022
10023         * nis/Banner: Removed.  It's been integral part forever and the
10024         author info is incomplete anyway.
10025         * libio/Banner: Likewise.
10026
10027         * nis/nis_table.c (nis_list): If __follow_path fails in the new
10028         code, make sure the nis_freeresult call doesn't crash and that the
10029         result is reported correctly.
10030
10031 2006-09-27  Jakub Jelinek  <jakub@redhat.com>
10032
10033         * nis/nis_table.c (nis_list): Handle FOLLOW_PATH | ALL_RESULTS
10034         when callback is NULL.
10035
10036         * nis/Versions (libnss_nisplus): Add
10037         _nss_nisplus_initgroups_dyn@@GLIBC_PRIVATE.
10038         * nis/Makefile (libnss_nisplus-routines): Add nisplus-initgroups.
10039         * nis/nss_nisplus/nisplus-grp.c (tablename_val, tablename_len,
10040         _nss_create_tablename): Rename to...
10041         (grp_tablename_val, grp_tablename_len, _nss_grp_create_tablename):
10042         ... these.  No longer static.
10043         (internal_setgrent): Adjust users.
10044         (_nss_nisplus_getgrnam_r, _nss_nisplus_getgrgid_r): Likewise.
10045         Don't use locking around _nss_grp_create_tablename call.
10046         * nis/nss_nisplus/nisplus-initgroups.c: New file.
10047
10048 2006-10-06  Ulrich Drepper  <drepper@redhat.com>
10049
10050         * version.h (VERSION): Bump to 2.5.90 for new development tree.
10051
10052 2006-10-06  Andreas Jaeger  <aj@suse.de>
10053
10054         * include/features.h (__GLIBC_MINOR__): It's glibc 2.5 now.
10055
10056 2006-10-06  Ulrich Drepper  <drepper@redhat.com>
10057
10058         * po/pl.po: Update from translation team.
10059
10060         * nscd/nscd.c (main): Fix typo in message.
10061         Patch by Jakub Bogsz <qboosh@pld-linux.org>.
10062
10063 2006-10-02  Jakub Jelinek  <jakub@redhat.com>
10064
10065         [BZ #3291]
10066         * sysdeps/unix/sysv/linux/sparc/sparc64/pause.c: Include
10067         errno.h, signal.h, unistd.h and sysdep-cancel.h.
10068         (__sigprocmask): Define.
10069
10070 2006-10-02  Ulrich Drepper  <drepper@redhat.com>
10071
10072         * elf/rtld.c (dl_main): Don't use prelinking if LD_DYNAMIC_WEAK is
10073         used.
10074
10075 2006-10-02  Jakub Jelinek  <jakub@redhat.com>
10076
10077         * nscd/mem.c (mempool_alloc): Round array size to 16 bytes
10078         in oldtotal and newtotal calculation.
10079         * nscd/nscd-client.h (struct mapped_database): Add datasize
10080         field.
10081         * nscd/nscd_helper.c (get_mapping): Initialize datasize field.
10082         (__nscd_get_map_ref): Get a new mapping even if mapping's data_size
10083         increased.
10084         (__nscd_cache_search): Add checks to make sure we never reference
10085         data beyond the current mapping.
10086
10087 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
10088
10089         * sysdeps/posix/getaddrinfo.c (match_prefix): Make mask and val
10090         variables const to avoid compiler warnings.
10091
10092         * io/fts.c (fts_close): Remove redundant checks.
10093         (fts_build): Likewise.
10094         (fts_palloc): Likewise.
10095
10096         * manual/message.texi (Advanced gettext functions,
10097         Using gettextized software): Fix typos.
10098
10099 2006-09-30  Ulrich Drepper  <drepper@redhat.com>
10100
10101         * posix/glob.c (glob_in_dir): Add some comments and asserts to
10102         explain why there are no leaks.
10103
10104 2006-09-29  Ulrich Drepper  <drepper@redhat.com>
10105
10106         * libio/wmemstream.c: Include <wchar.h>.
10107         * libio/bug-wmemstream1.c: Likewise.
10108         * libio/tst-wmemstream1.c: Likewise.
10109         * libio/tst-wmemstream2.c: Likewise.
10110
10111         * version.h (RELEASE): Bump to 2.5.
10112         * README: Regenerated.
10113
10114         * locale/iso-3166.def: Add Aaland Islands and Montenegro.
10115
10116         [BZ #3273]
10117         * nscd/nscd_initgroups.c (__nscd_getgrouplist): It is OK to have
10118         found no group members.
10119         Patch by Petr Baudis.
10120
10121 2006-09-29  Jakub Jelinek  <jakub@redhat.com>
10122
10123         * elf/rtld.c (_dl_start_final): If not USE___THREAD, don't
10124         assert bootstrap_map.l_tls_modid is zero.
10125         (_dl_start): Initialize bootstrap_map.l_tls_modid to 0
10126         if USE___THREAD.
10127
10128 2006-09-27  Ulrich Drepper  <drepper@redhat.com>
10129
10130         * libio/stdio.h: Move open_wmemstream prototype to ...
10131         * wcsmbs/wchar.h: ... here.
10132
10133 2006-09-25  Jakub Jelinek  <jakub@redhat.com>
10134
10135         [BZ #3252]
10136         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat): Handle only
10137         fchownat syscall and __ASSUME_LCHOWN_SYSCALL case inline, call
10138         __{,l}chown to handle the rest.
10139         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Handle only
10140         fchownat syscall and __ASSUME_32BITUIDS case inline, call
10141         __{,l}chown to handle the rest.
10142         * sysdeps/unix/sysv/linux/sparc/sparc32/fchownat.c: Include
10143         i386/fchownat.c.
10144         * sysdeps/unix/sysv/linux/s390/s390-32/fchownat.c: Likewise.
10145         * sysdeps/unix/sysv/linux/sh/fchownat.c: Likewise.
10146
10147         [BZ #3253]
10148         * posix/glob.c (glob_in_dir): Don't alloca one struct globlink at a
10149         time, rather allocate increasingly bigger arrays of pointers, if
10150         possible with alloca, if too large with malloc.
10151
10152 2006-09-24  Jakub Jelinek  <jakub@redhat.com>
10153
10154         * sysdeps/powerpc/fpu/libm-test-ulps: Updated.
10155
10156         * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Fix 2 typos.
10157
10158 2006-09-24  Ulrich Drepper  <drepper@redhat.com>
10159
10160         * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Implement rule 4,
10161         home addresses.
10162         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Recognize
10163         IFA_F_HOMEADDRESS flag for interfaces.
10164         * include/ifaddrs.h (struct in6addrinfo): Define
10165         in6ai_homeaddress.
10166
10167 2006-09-21  Jakub Jelinek  <jakub@redhat.com>
10168
10169         [BZ #3225]
10170         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (PTR_MANGLE3,
10171         PTR_DEMANGLE3): Define.
10172         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h (PTR_MANGLE3,
10173         PTR_DEMANGLE3): Likewise.
10174         * sysdeps/powerpc/powerpc32/__longjmp-common.S (__longjmp): Use them.
10175         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp):
10176         Likewise.
10177         * sysdeps/powerpc/powerpc64/__longjmp-common.S (__longjmp): Likewise.
10178
10179 2006-09-20  Jakub Jelinek  <jakub@redhat.com>
10180
10181         * po/libc.pot: Regenerated.
10182         * po/be.po: Updated.
10183         * po/ca.po: Likewise.
10184         * po/cs.po: Likewise.
10185         * po/da.po: Likewise.
10186         * po/de.po: Likewise.
10187         * po/el.po: Likewise.
10188         * po/en_GB.po: Likewise.
10189         * po/es.po: Likewise.
10190         * po/fi.po: Likewise.
10191         * po/fr.po: Likewise.
10192         * po/gl.po: Likewise.
10193         * po/hr.po: Likewise.
10194         * po/hu.po: Likewise.
10195         * po/ja.po: Likewise.
10196         * po/ko.po: Likewise.
10197         * po/nb.po: Likewise.
10198         * po/nl.po: Likewise.
10199         * po/pl.po: Likewise.
10200         * po/pt_BR.po: Likewise.
10201         * po/ru.po: Likewise.
10202         * po/rw.po: Likewise.
10203         * po/sk.po: Likewise.
10204         * po/sv.po: Likewise.
10205         * po/tr.po: Likewise.
10206         * po/zh_CN.po: Likewise.
10207         * po/zh_TW.po: Likewise.
10208
10209         [BZ #3137]
10210         * iconv/iconv_prog.c (main): Fix spelling in error message.
10211         * iconv/iconvconfig.c (main): Likewise.
10212         * locale/programs/ld-collate.c (handle_ellipsis): Likewise.
10213         * locale/programs/ld-ctype.c (charclass_symbolic_ellipsis): Likewise.
10214         * locale/programs/localedef.c (main): Likewise.
10215         * locale/programs/repertoire.c (repertoire_read): Likewise.
10216         * timezone/zdump.c (main): Likewise.
10217         * nscd/connections.c (handle_request): Fix spelling in log message.
10218         Patch by Malcolm Parsons <malcolm.parsons@gmail.com>.
10219
10220 2006-09-20  Ulrich Drepper  <drepper@redhat.com>
10221
10222         * inet/inet6_option.c: Also emit linker warnings for the RFC 2292
10223         interfaces.
10224
10225 2006-09-20  Andreas Jaeger  <aj@suse.de>
10226
10227         * math/libm-test.inc (lrint_test_upward): Fix typo.
10228
10229 2006-06-17  Joseph S. Myers  <joseph@codesourcery.com>
10230
10231         [BZ #2592]
10232         * math/libm-test.inc (lrint_test_tonearest): New function.
10233         (lrint_test_towardzero): New function.
10234         (lrint_test_downward): New function.
10235         (lrint_test_upward): New function.
10236         (main): Run these new tests.
10237         * sysdeps/ieee754/dbl-64/s_llrint.c (__llrint): Correct rounding
10238         of values near to 0.
10239         (two52): Use double not long double.
10240         * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Likewise.
10241         * sysdeps/ieee754/flt-32/s_llrintf.c (__llrintf): Likewise.
10242         (two23): Use float not double.
10243         * sysdeps/ieee754/flt-32/s_lrintf.c (__lrintf): Likewise.
10244         (two23): Use float not double.
10245         * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl): Likewise.
10246         * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Likewise.
10247         * sysdeps/ieee754/ldbl-96/s_llrintl.c (__llrintl): Likewise.
10248         * sysdeps/ieee754/ldbl-96/s_lrintl.c (__lrintl): Likewise.
10249
10250 2006-09-20  Martin Schwidefsky  <schwidefsky@de.ibm.com>
10251
10252         * sysdeps/unix/sysv/linux/s390/s390-32/makecontext.c (__makecontext):
10253         Cast sp to unsigned long to avoid compiler warning.
10254         Use __makecontext_ret function instead of a trampoline on the stack.
10255         (__makecontext_ret): New function.
10256         * sysdeps/unix/sysv/linux/s390/s390-64/makecontext.c: Likewise.
10257
10258 2006-09-19  Jakub Jelinek  <jakub@redhat.com>
10259
10260         * elf/dl-cache.c (HWCAP_CHECK): If _DL_PLATFORMS_COUNT, but
10261         platform == -1, reject any libs with non-zero _DL_HWCAP_PLATFORM
10262         bits.
10263
10264 2006-09-19  Ulrich Drepper  <drepper@redhat.com>
10265
10266         * elf/dl-close.c (_dl_close): If dependency is not unloaded make
10267         sure no reference to the unloaded map's search list remains in the
10268         dependency's scope.
10269
10270 2006-09-16  Jakub Jelinek  <jakub@redhat.com>
10271
10272         * elf/Makefile: Add rules to build and run unload7 test.
10273         * elf/unload7.c: New test.
10274         * elf/unload7mod1.c: New file.
10275         * elf/unload7mod2.c: New file.
10276
10277 2006-09-18  Jakub Jelinek  <jakub@redhat.com>
10278
10279         * sysdeps/unix/sysv/linux/sys/ptrace.h (PT_GETEVENTMSG): Fix pasto.
10280         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h (PTRACE_SETOPTIONS,
10281         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
10282         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h (PTRACE_SETOPTIONS,
10283         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Likewise.
10284         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h (PTRACE_SETOPTIONS,
10285         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Likewise.
10286         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h (PTRACE_SETOPTIONS,
10287         PTRACE_GETEVENTMSG): Likewise.
10288         (PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Change to the arch independent
10289         values.
10290
10291 2006-09-17  Mike Frysinger  <vapier@gentoo.org>
10292
10293         * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_SETOPTIONS,
10294         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
10295         * sysdeps/unix/sysv/linux/ptrace.c (ptrace): Check PTRACE_SETOPTIONS,
10296         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO and PTRACE_SETSIGINFO.
10297
10298 2006-09-16  Jakub Jelinek  <jakub@redhat.com>
10299
10300         * sysdeps/powerpc/powerpc32/register-dump.h (register_dump): Don't
10301         write '\0' to the fd.
10302         * sysdeps/mach/hurd/powerpc/register-dump.h (register_dump): Likewise.
10303         * sysdeps/powerpc/powerpc64/register-dump.h (register_dump): Likewise.
10304         Change regs to unsigned long pointer from unsigned int, fix fscr
10305         offset.
10306
10307 2006-09-14  Jakub Jelinek  <jakub@redhat.com>
10308
10309         * io/Makefile (CFLAGS-fstatat.c): Set.
10310         (CFLAGS-fstatat64.c): Likewise.
10311         (CFLAGS-mknodat.c): Likewise.
10312
10313         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Comment fixes.
10314         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
10315         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Rewritten.
10316         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Rewritten.
10317
10318 2006-09-14  Jakub Jelinek  <jakub@redhat.com>
10319             Steven Munroe  <sjmunroe@us.ibm.com>
10320
10321         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add 4 new cap
10322         names to the beginning.  Rename "cell" to "cellbe".
10323         (_dl_powerpc_platforms): New.
10324         * sysdeps/powerpc/dl-procinfo.h (_DL_HWCAP_FIRST): Decrease.
10325         (HWCAP_IMPORTANT): Remove power{4,5,5+} and cell.
10326         (_DL_PLATFORMS_COUNT, _DL_FIRST_PLATFORM): Define.
10327         (_DL_HWCAP_PLATFORM): Define to new mask.
10328         (_dl_platform_string, _dl_string_platform): New functions.
10329         * sysdeps/powerpc/sysdep.h (PPC_FEATURE_BOOKE, PPC_FEATURE_SMT,
10330         PPC_FEATURE_ICACHE_SNOOP, PPC_FEATURE_ARCH_2_05): Define.
10331
10332 2006-09-12  Jakub Jelinek  <jakub@redhat.com>
10333
10334         [BZ #2526]
10335         * README.libm: Fix a thinko in sqrt algorithm description.
10336
10337         [BZ #3143]
10338         * manual/string.texi (argz_delete): Fix prototype.
10339         Patch by <alpt@freaknet.org>.
10340
10341 2006-08-26  Joseph Myers  <joseph@codesourcery.com>
10342
10343         [BZ #3138]
10344         * io/test-lfs.c (do_prepare): Give name_len type size_t.
10345         * io/tst-fcntl.c (do_prepare): Likewise.
10346         * posix/tst-exec.c (do_prepare): Likewise.
10347         * posix/tst-preadwrite.c (do_prepare): Likewise.
10348         * posix/tst-spawn.c (do_prepare): Likewise.
10349         * posix/tst-truncate.c (do_prepare): Likewise.
10350         * rt/tst-aio.c (do_prepare): Likewise.
10351         * rt/tst-aio64.c (do_prepare): Likewise.
10352         * stdlib/test-canon2.c (do_prepare): Give test_dir_len type
10353         size_t.
10354
10355 2006-09-09  Ulrich Drepper  <drepper@redhat.com>
10356
10357         [BZ #2821]
10358         * time/mktime.c (guess_time_tm): Fix overflow detection.
10359         * time/Makefile (tests): Add bug-mktime1.
10360         * time/bug-mktime1.c: New file.
10361
10362         [BZ #3189, #3188]
10363         * misc/sys/mman.h (remap_file_pages): Make available for _GNU_SOURCE.
10364         (mremap): Likewise.
10365
10366 2006-09-07  Jakub Jelinek  <jakub@redhat.com>
10367
10368         [BZ #1006]
10369         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela):
10370         Ensure relocation doesn't clobber any bits outside of the
10371         immediate field for R_SPARC_TLS_LE_HIX22, R_SPARC_WDISP30,
10372         R_SPARC_HI22 and R_SPARC_H44.
10373
10374         [BZ #2775]
10375         * malloc/malloc.c (sYSMALLOc): Only call grow_heap if
10376         (long) (MINSIZE + nb - old_size) is positive.
10377
10378         * malloc/arena.c (grow_heap): When growing bail even if new_size
10379         is negative.
10380
10381         [BZ #3155]
10382         * sysdeps/powerpc/powerpc32/fpu/s_lrint.S (__lrint): Don't access
10383         stack below r1.
10384
10385 2006-09-06  Jakub Jelinek  <jakub@redhat.com>
10386
10387         * posix/regex_internal.c (re_string_reconstruct): Handle
10388         offset < pstr->valid_raw_len && pstr->offsets_needed case.
10389         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
10390         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
10391         re_string_context_at.
10392         * posix/Makefile: Add rules to build and run bug-regex26 test.
10393         * posix/bug-regex26.c: New test.
10394
10395         * locale/programs/ld-collate.c (collate_read): Goto sym_equiv_free
10396         rather than col_sym_free.  Move seqp declaration earlier.
10397
10398         * resolv/gai_suspend.c (gai_suspend): Make sure result is initialized.
10399
10400 2006-09-05  Jakub Jelinek  <jakub@redhat.com>
10401
10402         * nscd/initgrcache.c (addinitgroupsX): Move any_success
10403         decl before first goto out.
10404
10405 2006-09-04  Jakub Jelinek  <jakub@redhat.com>
10406
10407         * Makerules (shlib.lds): If have-hash-style, put .hash section
10408         at the end of the RO segment.
10409
10410 2006-09-04  Ulrich Drepper  <drepper@redhat.com>
10411
10412         * elf/do-lookup.h (do_lookup_x): Initialize symidx in case the new
10413         style hash table format is used.
10414
10415 2006-09-04  Jakub Jelinek  <jakub@redhat.com>
10416
10417         * resolv/res_mkquery.c (res_nmkquery): Set hp->id to statp->id after
10418         randomization rather than before.
10419         * resolv/res_init.c (res_randomid): Don't call gettimeofday here.
10420
10421 2006-08-31  Jakub Jelinek  <jakub@redhat.com>
10422
10423         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Add ld.so.
10424
10425         * malloc/malloc.c (_int_malloc): Use full list insert and not
10426         shortcut which assumes the list is empty for large requests
10427         too.
10428
10429         * elf/tst-addr1.c (do_test): Allow i.dli_sname "_IO_printf".
10430
10431 2006-08-30  Jakub Jelinek  <jakub@redhat.com>
10432
10433         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (splice): Add offin
10434         and offout arguments to the prototype.
10435         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (splice): Likewise.
10436         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h (splice): Likewise.
10437         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (splice): Likewise.
10438         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h (splice): Likewise.
10439         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h (splice): Likewise.
10440         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (splice): Likewise.
10441         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h (splice): Likewise.
10442         * sysdeps/unix/sysv/linux/syscalls.list (splice): Adjust args string.
10443
10444 2006-08-28  Ulrich Drepper  <drepper@redhat.com>
10445
10446         * elf/dl-load.c (_dl_init_paths): Expand DSTs.
10447
10448         * elf/dl-open.c (dl_open_worker): Allow $LIB and $PLATFORM in
10449         dlopen parameters.
10450
10451 2006-08-28  Jakub Jelinek  <jakub@redhat.com>
10452
10453         * inet/getnameinfo.c (getnameinfo): For AF_INET, check errno
10454         only if herrno is NETDB_INTERNAL.  Handle errors other than
10455         ERANGE outside of the loops, handle TRY_AGAIN.
10456
10457         * locale/programs/ld-ctype.c (translit_flatten): Issue error
10458         if other's ctype category was missing.
10459         * locale/programs/ld-collate.c (collate_read): Return if
10460         copy_locale's collate category is missing.
10461
10462 2006-08-27  Ulrich Drepper  <drepper@redhat.com>
10463
10464         [BZ #2684]
10465         * malloc/malloc.c (public_rEALLOc): Try harder by using other
10466         arenas if allocation failed.
10467         Patch mostly by Jan Edler <jan.edler@indexengines.com>.
10468
10469 2006-08-26  Ulrich Drepper  <drepper@redhat.com>
10470
10471         * malloc/malloc.c (bin_at): Rewrite to be more clear and to not
10472         waste bins[0..1].
10473         (malloc_state): Reduce bins size by 2.
10474         (_int_malloc): Fix test for large enough buffer for early termination.
10475         When no unsorted block matches perfectly and an exiting block has
10476         to be split, use full list insert and not shortcut which assumes
10477         the list is empty.
10478
10479         * locale/programs/ld-ctype.c (ctype_read): Better patch for read
10480         failure.
10481
10482 2006-08-24  Ulrich Drepper  <drepper@redhat.com>
10483
10484         * locale/programs/ld-ctype.c (ctype_read): If CTYPE is NULL, don't
10485         do anything.
10486
10487         * sysdeps/generic/ldsodefs.h (DL_ADDR_SYM_MATCH): For undefined
10488         symbol require exact match (these are PLTs).
10489         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ldsodefs.h
10490         (_dl_ppc64_addr_sym_match): Likewise.
10491
10492         [BZ #2683]
10493         * elf/dl-addr.c (_dl_addr): Don't ignore all undefined symbols.
10494         If symbol has a value use it.
10495         * elf/tst-dladdr1.c: New file.
10496         * elf/Makefile: Add rules to build and run tst-addr1.
10497
10498 2006-08-24  Jakub Jelinek  <jakub@redhat.com>
10499
10500         * malloc/malloc.c (sYSMALLOc): Avoid infinite loop if MMAP
10501         keeps failing and heap growth or new heap creation isn't
10502         successful either.
10503         * malloc/tst-malloc.c (main): Add new tests.
10504
10505 2006-08-24  Ulrich Drepper  <drepper@redhat.com>
10506
10507         [BZ #2734]
10508         * sysdeps/i386/bits/byteswap.h (__bswap_32): Use same conditions
10509         as in the x86-64 code to use bswap.
10510
10511 2006-05-21  Joseph S. Myers  <joseph@codesourcery.com>
10512
10513         [BZ #2680]
10514         * posix/unistd.h (getlogin_r): Condition on __USE_POSIX199506, not
10515         __USE_UNIX98.
10516         * posix/bits/unistd.h: Likewise.
10517
10518 2006-05-15  Mike Frysinger  <vapier@gentoo.org>
10519
10520         [BZ #2751]
10521         * string/strchr.c: Add cast to avoid warning.
10522
10523 2006-08-21  Ulrich Drepper  <drepper@redhat.com>
10524
10525         * malloc/malloc.c (DEFAULT_MMAP_THRESHOLD_MAX): For 32-bit
10526         platforms define as 512K.  For 64-bit platforms as 32MB.  The lower
10527         limit is needed to avoid the exploding of the address space
10528         requirement for secondary heaps.
10529         * malloc/arena.c (HEAP_MAX_SIZE): Define using
10530         DEFAULT_MMAP_THRESHOLD_MAX if it is defined.
10531
10532 2006-07-30  Joseph S. Myers  <joseph@codesourcery.com>
10533
10534         [BZ #3018]
10535         * Makerules (depfiles): Handle extra-test-objs the same as
10536         extra-objs.
10537         (common-mostlyclean): Likewise.
10538         * dlfcn/Makefile (extra-objs): Add modules to extra-test-objs
10539         instead.
10540         * elf/Makefile (extra-objs): Likewise.
10541         * stdlib/Makefile (extra-objs): Likewise.
10542
10543 2006-08-14  Eric Blake  <ebb9@byu.net>
10544
10545         [BZ #3044]
10546         * misc/error.h: Assume C89 or better.
10547         * misc/error.c: Likewise.
10548
10549 2006-08-21  Ulrich Drepper  <drepper@redhat.com>
10550
10551         [BZ #3040]
10552         * sysdeps/unix/sysv/linux/openat.c: Fix compilation if
10553         __ASSUME_ATFCTS is defined.
10554
10555 2006-08-19  Ulrich Drepper  <drepper@redhat.com>
10556
10557         * malloc/malloc.c (_int_malloc): Limit number of unsorted blocks
10558         to sort in each call.
10559
10560         * nis/nss_nis/nis-service.c (internal_nis_getservent_r): . If map
10561         is empty simply return and use next service.
10562         * nis/nss_nis/nis-rpc.c (internal_nis_getrpcent_r): Likewise.
10563
10564         * locale/programs/charmap.c (charmap_read): Add new parameter.  It
10565         tells us when not finding a charmap file is an error.
10566         * locale/programs/charmap.h: Adjust charmap_read prototype.
10567         * iconv/iconv_prog.c (main): Tell charmap_read it's no error if we
10568         cannot find a charmap.
10569         * locale/programs/localedef.c (main): Adjust charmap_read call.
10570
10571 2006-08-15  Jakub Jelinek  <jakub@redhat.com>
10572
10573         * sysdeps/unix/sysv/linux/sparc/sparc64/pause.c: Use
10574         sysdeps/posix/pause.c implementation instead.
10575
10576 2006-08-09  Jakub Jelinek  <jakub@redhat.com>
10577
10578         * sysdeps/unix/nice.c (nice): Transform EACCES errno from setpriority
10579         to EPERM.
10580
10581 2006-08-13  Andreas Schwab  <schwab@suse.de>
10582
10583         * sysdeps/powerpc/powerpc32/dl-trampoline.S (_dl_runtime_resolve):
10584         Don't clobber caller's LRSAVE.
10585         (_dl_prof_resolve): Likewise.
10586
10587 2006-08-14  Ulrich Drepper  <drepper@redhat.com>
10588
10589         [BZ #1996]
10590         * libio/memstream.c (open_memstream): Allocate initial buffer with
10591         calloc.
10592         * libio/wmemstream.c (open_wmemstream): Likewise.
10593         * libio/strops.c: Pretty printing.
10594         (_IO_str_overflow): Clear uninitialized part of the new buffer.
10595         (enlarge_userbuf): New function.
10596         (_IO_str_seekoff): Call it if seek position is larger than current
10597         buffer.
10598         * libio/wstrops.c: Likewise.
10599         * libio/vasprintf.c: Add comment as to why we do not have to use
10600         calloc instead of malloc to allocate initial buffer.
10601         * libio/Makefile (tests): Add bug-memstream1 and bug-wmemstream1.
10602         * libio/bug-memstream1.c: New file.
10603         * libio/bug-wmemstream1.c: New file.
10604
10605 2006-08-13  Ulrich Drepper  <drepper@redhat.com>
10606
10607         * libio/wstrops.c: Remove dead macro definitions and comments.
10608         * libio/strops.c: Likewise.
10609
10610         [BZ #2764]
10611         * login/utmpname.c (__utmpname): Remove unnecessary test.
10612
10613 2006-06-08  Joseph Myers  <jsm28@gcc.gnu.org>
10614
10615         [BZ #2832]
10616         * math/gen-libm-test.pl (clean_up_number): Do not remove trailing
10617         0s from integers.
10618
10619 2006-08-13  Ulrich Drepper  <drepper@redhat.com>
10620
10621         [BZ #2987]
10622         * sysdeps/unix/sysv/linux/clock_settime.c: Add code to use syscall
10623         for CPU clocks.
10624         * sysdeps/unix/clock_settime.c: Add support for platform-specific
10625         setting of CPU clocks.
10626
10627 2006-06-23  Paul Eggert  <eggert@cs.ucla.edu>
10628
10629         [BZ #2841]
10630         * sysdeps/generic/stdint.h (UINT8_C, UINT16_C): Don't append 'U',
10631         since C99 requires the result to promote to 'int' when uint_least8_t
10632         and uint_least16_t promote to 'int'.
10633
10634 2006-08-12  Ulrich Drepper  <drepper@redhat.com>
10635
10636         [BZ #3013]
10637         * locale/programs/ld-ctype.c (ctype_output): Adjust alignments, fix
10638         lenght of one output field, correct bitmask creation.
10639         * locale/programs/ld-time.c: Add alignment.
10640
10641         [BZ #2997]
10642         * misc/error.c: Add space between program name and message if file
10643         name is missing.
10644
10645 2006-08-03  Eric Blake  <ebb9@byu.net>
10646
10647         [BZ #2998]
10648         * misc/error.c (error_tail) [_LIBC]: Avoid invalid free.
10649
10650 2006-08-09  Ulrich Drepper  <drepper@redhat.com>
10651
10652         * malloc/memusagestat.c: Silence warnings.
10653
10654         * malloc/malloc.c: Dynamically size mmap treshold if the program
10655         frees mmaped blocks.
10656         Patch by Valerie Henson and Arjan van de Ven.
10657
10658 2006-08-08  Jakub Jelinek  <jakub@redhat.com>
10659
10660         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (O_DIRECT): Protect with
10661         __USE_GNU.
10662
10663         * stdlib/strtol_l.c (__strtol_ul_max_tab, __strtol_ul_rem_tab,
10664         __strtol_ull_max_tab, __strtol_ull_rem_tab): Declare.
10665         (DEF): Don't put the var into .gnu.linkonce.r.* section.
10666         Only provide var definitions in strtol_l (or for *ull*
10667         in strtoll_l).
10668
10669         * stdio-common/bug16.c (tests): New array.
10670         (do_tests): Allow the first hexadecimal digit
10671         to be 1, 2, 4 or 8.  Do 3 additional tests.
10672
10673         * sysdeps/s390/fpu/libm-test-ulps: Update.
10674
10675         * sysdeps/unix/sysv/linux/s390/s390-32/fchownat.c (fchownat): Use
10676         fchownat syscall if available.
10677         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat): Likewise.
10678         * sysdeps/unix/sysv/linux/sh/fchownat.c (fchownat): Likewise.
10679         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Likewise.
10680
10681 2006-08-07  Ulrich Drepper  <drepper@redhat.com>
10682
10683         * nis/nis_xdr.c: Avoid some function calls.
10684
10685 2006-08-07  Jakub Jelinek  <jakub@redhat.com>
10686             Ulrich Drepper  <drepper@redhat.com>
10687
10688         * nis/nis_call.c (rec_dirsearch) [case LOWER_NAME]: Don't take
10689         short cut if only one name component is stripped away.
10690
10691 2006-08-07  Ulrich Drepper  <drepper@redhat.com>
10692
10693         * nis/nis_call.c: Minor cleanups throughout.
10694         (rec_dirsearch) [case HIGHER_NAME]: Correctly size ndomain array.
10695         (first_shoot): Add search_parent_first parameter.  Only if it is set
10696         search parent server first.
10697         If directory for table found through cold start cache is not the same
10698         as referenced in the cache, don't use it.
10699         (__nisfind_server): Take additional parameter.  Pass it on to
10700         first_shoot.
10701         (__prepare_niscall): Adjust __nisfind_server call.
10702         * nis/rpcsvc/nislib.h: Adjust __nisfind_server prototype.
10703         * nis/nis_table.c: Adjust __nisfind_server call.
10704         * nis/nis_lookup.c: Likewise.
10705         (nis_lookup): Don't loop endlessly if name is reduced to ".".
10706
10707 2006-08-03  Ulrich Drepper  <drepper@redhat.com>
10708
10709         [BZ #2182]
10710         * math/s_cacosh.c: Return values from positive branch.
10711         * math/s_cacoshf.c: Likewise.
10712         * math/s_cacoshl.c: Likewise.
10713
10714         [BZ #2883]
10715         * sysvipc/sys/msg.h: Change return value to ssize_t.
10716         * sysdeps/unix/sysv/linux/msgrcv.c: Likewise.
10717         * sysvipc/msgrcv.c: Likewise.
10718         * include/sys/msg.h: Likewise.
10719
10720         * grp/initgroups.c (internal_getgrouplist): Remove unnecessary
10721         test introduced in patch for bz #661.
10722         (getgrouplist): Simplify code a bit.  Don't allocate one additional
10723         element for NEWGROUPS.
10724
10725         [BZ #2908]
10726         * stdio-common/printf_fphex.c (__printf_fphex): When rounding up
10727         'f', use '1' as leading digit not '\1'.
10728         * stdio-common/Makefile (tests): Add bug16.
10729         * stdio-common/bug16.c: New file.
10730
10731         [BZ #2914]
10732         * sysdeps/unix/sysv/linux/gethostid.c: Don't define OLD_HOSTIDFILE
10733         and don't try to open it.  The patch introducing the macro
10734         contained a bug and used the same file name as the new file
10735         instead of using /var/adm/hostid.  Nobody complaint so I'm taking
10736         this out completely.
10737
10738         [BZ #2926]
10739         * assert/assert.h: Move cast to void inside ?: to quiet gcc.
10740         Patch by Jerry James <Jerry.James@usu.edu>.
10741
10742         * rt/Makefile (tests): Add tst-clock2.
10743         * rt/tst-clock2.c: New file.
10744
10745         [BZ #2978]
10746         * resolv/gai_notify.c (__gai_notify_only): Copy memory for thread
10747         function and its parameters and pass it to new thread.
10748         (__gai_notify): Add support for alternative waiting for completion.
10749         * resolv/gai_suspend.c (gai_suspend): Add support for alternative
10750         waiting for completion.
10751         * resolv/getaddrinfo_a.c: Likewise.
10752         * resolv/gai_misc.h (struct waitlist): Don't add cond if alternative
10753         waiting for completion is used.
10754         * resolv/gai_misc.c: Allow overwriting code to start helper thread.
10755         * resolv/gai_cancel.c: Include <gai_misc.h> not "gai_misc.h".
10756         * resolv/gai_error.c: Likewise.
10757         * resolv/gai_sigqueue.c: Likewise.
10758
10759 2006-08-02  Thomas Schwinge  <tschwinge@gnu.org>
10760
10761         * hurd/getdport.c (__getdport): Don't return EBADF; instead set
10762         errno to EBADF and return MACH_PORT_NULL.
10763
10764 2006-06-23  Joseph Myers  <joseph@codesourcery.com>
10765
10766         [BZ #2980]
10767         * posix/Makefile (CFLAGS-waitid.c): Add -fasynchronous-unwind-tables.
10768
10769 2006-08-02  Ulrich Drepper  <drepper@redhat.com>
10770
10771         * elf/dl-addr.c (_dl_addr): If GNU-style hash tables are present,
10772         walk them instead of the symbol table.
10773
10774 2006-08-01  Ulrich Drepper  <drepper@redhat.com>
10775
10776         [BZ #2098]
10777         * nscd/initgrcache.c (addinitgroupsX): Judge successful lookups by
10778         status of NSS calls, not the number of returned entries.
10779
10780         * sysdeps/unix/sysv/linux/syscalls.list: Remove add_key,
10781         request_key, keyctl.
10782
10783 2006-07-31  Ulrich Drepper  <drepper@redhat.com>
10784
10785         * sysdeps/unix/sysv/linux/dl-osinfo.h: Remove unnecessary include.
10786
10787 2006-07-16  Jeff Bailey  <jbailey@ubuntu.com>
10788
10789         * elf/tst-auditmod1.c: Fix typo in #error.
10790
10791 2006-07-31  Ulrich Drepper  <drepper@redhat.com>
10792
10793         * elf/tst-auditmod1.c: Remove code for unsupported architectures.
10794
10795         * iconvdata/run-iconv-test.sh: Run cmp in C locale.
10796
10797 2006-07-20  Adam Nemet  <anemet@caviumnetworks.com>
10798
10799         * stdlib/test-canon.c (do_test): Close fd before unlinking file so
10800         that the directory is empty even on non-POSIX filesystems.
10801
10802 2006-07-31  Ulrich Drepper  <drepper@redhat.com>
10803
10804         * elf/dl-open.c (dl_open_worker): Add branch prediction.
10805
10806         * nis/nss_compat/compat-grp.c: Avoid unnecessary setgrent calls into
10807         the backend NSS module.  If backend setgrent call failed, don't have
10808         internal_setgrent fail.  Just remember this until it is needed.
10809         * nis/nss_compat/compat-pwd.c: Likewise.
10810         * nis/nss_compat/compat-spwd.c: Likewise.
10811
10812 2006-07-30  Roland McGrath  <roland@redhat.com>
10813
10814         * sysdeps/unix/sysv/linux/ia64/sigsuspend.c: File removed.
10815         * sysdeps/unix/sysv/linux/x86_64/sigsuspend.c: File removed.
10816         * sysdeps/unix/sysv/linux/s390/s390-64/sigsuspend.c: File removed.
10817         * sysdeps/unix/sysv/linux/sparc/sparc64/sigsuspend.c: File removed.
10818
10819         * sysdeps/unix/sysv/linux/not-cancel.h (pause_not_cancel): New macro.
10820         (nanosleep_not_cancel): New macro.
10821         (sigsuspend_not_cancel): new macro.
10822         * sysdeps/unix/sysv/linux/sigsuspend.c [__ASSUME_REALTIME_SIGNALS]
10823         (do_sigsuspend): Define as inline.
10824         (__sigsuspend): Always use do_sigsuspend.
10825         [! NO_CANCELLATION] (__sigsuspend_nocancel): New function.
10826         * include/signal.h: Declare __sigsuspend_nocancel.
10827         * sysdeps/posix/pause.c
10828         [! NO_CANCELLATION] (__pause_nocancel): New function.
10829
10830         * include/unistd.h (__pause_nocancel): Add attribute_hidden.
10831         * include/time.h (__nanosleep_nocancel): Likewise.
10832
10833 2006-07-30  Ulrich Drepper  <drepper@redhat.com>
10834
10835         * locale/programs/localedef.c (add_to_readlist): Rename local
10836         variables to avoid confusion.
10837
10838         * locale/programs/charmap.c (charmap_read): Emit error message if
10839         charmap couldn't be found or read.
10840
10841 2006-07-28  Ulrich Drepper  <drepper@redhat.com>
10842
10843         * sysdeps/unix/sysv/linux/kernel-features.h: Define
10844         __ASSUME_FUTEX_LOCK_PI.
10845         * include/time.h: Declare __nanosleep_nocancel.
10846         * include/unistd.h: Declare __pause_nocancel.
10847
10848         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Use this instead of
10849         LDFLAGS.  Add -lgcc_eh and libc_nonshared (again) to make sure we
10850         get the __stack_chk_fail_local definition when it's needed.
10851
10852 2006-07-26  Ulrich Drepper  <drepper@redhat.com>
10853
10854         * dlfcn/Makefile: Add rules to build and run bug-atexit3.
10855         * dlfcn/bug-atexit3.c: New file.
10856         * dlfcn/bug-atexit3-lib.cc: New file.
10857
10858         * dlfcn/dlmopen.c (dlmopen_doit): Don't allow RTLD_GLOBAL to be
10859         used when the namespace is not the base namespace.
10860
10861 2006-07-26  Gavin Romig-Koch  <gavin@redhat.com>
10862
10863         * stdlib/cxa_atexit.c (__new_exitfn_called): New variable.
10864         (__new_exitfn): Bump it in every successful call.
10865         * stdlib/cxa_finalize.c (__cxa_finalize): If destructor registered
10866         more exit handlers, call them right away.
10867         * stdlib/exit.h: Declare __new_exitfn_called.
10868
10869 2006-07-25  Ulrich Drepper  <drepper@redhat.com>
10870
10871         * stdlib/cxa_finalize.c (__cxa_finalize): Fix race condition when
10872         calling registered handler.
10873
10874         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Fix comment.
10875         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
10876         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
10877         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
10878         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
10879         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
10880         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
10881         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
10882
10883 2006-07-10  Ulrich Drepper  <drepper@redhat.com>
10884
10885         * elf/dl-lookup.c (dl_new_hash): New functions.
10886         (_dl_lookup_symbol_x): Rename hash to old_hash and don't compute
10887         value here.  Compute new-style hash value.  Pass new hash value
10888         and reference to variable with the old value to do_lookup_x.
10889         (_dl_setup_hash): If DT_GNU_HASH is defined, use it and not
10890         old-style hash table.
10891         (_dl_debug_bindings): Pass new hash value and reference to variable
10892         with the old value to do_lookup_x.
10893         * elf/do-lookup.h (do_lookup_x): Accept additional parameter with
10894         new-style hash value and change old-style hash value parameter to
10895         be a reference.  Reoganize functions to determine whether
10896         new-style hash table is available.  Only fall back on old-style
10897         table.  If old-style hash value is needed, compute it here.
10898         * elf/dynamic-link.h (elf_get_dynamic_info): Relocate DT_GNU_HASH
10899         entry.
10900         * elf/elf.h: Define SHT_GNU_HASH, DT_GNU_HASH, DT_TLSDEC_PLT,
10901         DT_TLSDEC_GOT.  Adjust DT_ADDRNUM.
10902         * include/link.h (struct link_map): Add l_gnu_bitmask_idxbits,
10903         l_gnu_shift, l_gnu_bitmask, l_gnu_buckets and l_gnu_chain_zero.
10904         * Makeconfig: If linker supports --hash-style option add it to all
10905         linker command lines to build DSOs.
10906         * config.make.in: Define have-hash-style.
10907         * configure.in: Test whether linker supports --hash-style option.
10908
10909         * elf/dl-misc.c (_dl_name_match_p): Make MAP parameter const.
10910         * sysdeps/generic/ldsodefs.h: Adjust prototype.
10911
10912 2006-06-27  Ulrich Drepper  <drepper@redhat.com>
10913
10914         * elf/dl-load.c (open_path): Fix test to determine whether DSO is
10915         auditing.
10916
10917         * elf/dl-load.c (_dl_map_object): Try harder to avoid looking at
10918         RPATH of main map twice.
10919
10920 2006-06-22  Ulrich Drepper  <drepper@redhat.com>
10921
10922         * intl/dcigettext.c (DCIGETTEXT): If _nl_find_msg returns -1 don't
10923         look further, return original strings.
10924         (_nl_find_msg): Do not return found translation if the conversion
10925         failed.  Either signal the string is unusable or that something went
10926         wrong and the original should be used.
10927
10928 2006-06-21  Ulrich Drepper  <drepper@redhat.com>
10929
10930         * string/_strerror.c (__strerror_r): Add __builtin_expect.
10931
10932 2006-06-14  Jakub Jelinek  <jakub@redhat.com>
10933
10934         [BZ #2766]
10935         * misc/insremque.c (insque): Handle prev == NULL.
10936         * misc/Makefile (tests): Add tst-insremque.
10937         * misc/tst-insremque.c: New test.
10938
10939 2006-06-17  Ulrich Drepper  <drepper@redhat.com>
10940
10941         [BZ #2792]
10942         * elf/dl-deps.c (expand_dst): Rename __cnt variable to not
10943         conflict with DL_DST_REQUIRED.
10944
10945 2006-06-16  Ulrich Drepper  <drepper@redhat.com>
10946
10947         * nis/nis_subr.c (nis_getnames): Fix the implementation to better
10948         match what Solaris does.
10949
10950 2006-06-04  Ulrich Drepper  <drepper@redhat.com>
10951
10952         * sysdeps/posix/spawni.c (__spawni): Use local_seteuid and
10953         local_setegid instead of seteuid and setegid.
10954         * sysdeps/generic/local-setxid.h: New file.
10955         * sysdeps/unix/sysv/linux/local-setxid.h: New file.
10956
10957         * sysdeps/posix/spawni.c (__spawni): Use non-cancelable interfaces.
10958
10959         * string/Makefile (tests): Add bug-envz1.
10960         * string/bug-envz1.c: New file.
10961
10962 2006-06-02  Jakub Jelinek  <jakub@redhat.com>
10963
10964         * posix/regex_internal.c (re_string_skip_chars): If no character has
10965         been converted at all, set *last_wc to WEOF.  If mbrtowc failed, set wc
10966         to the byte which couldn't be converted.
10967         (re_string_reconstruct): Don't clear valid_raw_len before calling
10968         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
10969         tip_context using re_string_context_at.
10970         * posix/Makefile: Add rules to build and run bug-regex25 test.
10971         * posix/bug-regex25.c: New test.
10972
10973 2006-06-02  Ryan S. Arnold  <rsa@us.ibm.com>
10974
10975         [BZ #2703]
10976         * string/envz.c (envz_strip): Correct erroneously reversed src
10977         and dest parameters to memmove() invocation.
10978
10979 2006-05-30  Jakub Jelinek  <jakub@redhat.com>
10980
10981         * nscd/nscd.h (prune_cache): Add fd argument to prototype.
10982         * nscd/nscd.c (parse_opt): Read response from INVALIDATE request
10983         to make sure the database has been already invalidated.
10984         * nscd/cache.c (prune_cache): Add fd argument.  Write response to fd
10985         after the cache has been invalidated.  Use pthread_mutex_lock rather
10986         than pthread_mutex_trylock if fd != -1.
10987         * nscd/connections.c (invalidate_cache): Add fd argument, write
10988         response to fd if not calling prune_cache, pass fd to prune_cache.
10989         (handle_request): Adjust invalidate_cache caller.
10990         (nscd_run): Pass -1 as fd to prune_cache.
10991
10992 2006-05-30  Ulrich Drepper  <drepper@redhat.com>
10993
10994         * sysdeps/posix/getaddrinfo.c (gaiconf_init): Initialize bits in
10995         the correct place.
10996
10997 2006-05-29  Ulrich Drepper  <drepper@redhat.com>
10998
10999         * nscd/nscd.h (struct database_dyn): Add prunelock field.
11000         * nscd/cache.c (prune_cache): Take prunelock before starting the
11001         work.  Just return in case it is already taken.
11002         * nscd/connections.c (dbs): Initialize .prunelock.
11003
11004 2006-05-25  Ulrich Drepper  <drepper@redhat.com>
11005
11006         * nis/nis_removemember.c (nis_removemember): Avoid unnecessary
11007         copying.  No need to allocate new array for group members.  Just
11008         move the pointers and update the size.
11009
11010         * nis/nis_addmember.c (nis_addmember): Avoid unnecessary copying.
11011         Avoid memory leak in case realloc fails.  Simplification for
11012         better code generation.
11013
11014         Avoid deprecation warning because of libc_hidden_proto for
11015         inet6_option_alloc.
11016         * inet/inet6_option.c (option_alloc): Renamed from
11017         inet6_option_alloc.  Made static.
11018         (inet6_option_alloc): Now a simple wrapper around option_alloc.
11019         (inet6_option_append): Call option_alloc.
11020         * include/netinet/in.h: Remove libc_hidden_proto for
11021         inet6_option_alloc.
11022
11023         * nis/nis_callback.c (__nis_create_callback): Always call xdr_free
11024         for cleanup when cb!=NULL [Coverity CID 233].
11025
11026 2006-05-24  Ulrich Drepper  <drepper@redhat.com>
11027
11028         [BZ #2693]
11029         * inet/Makefile (routines): Add inet6_opt and inet6_rth.
11030         * inet/Versions (libc, GLIBC_2.5): Add inet6_opt_init,
11031         inet6_opt_append, inet6_opt_finish, inet6_opt_set_val, inet6_opt_next,
11032         inet6_opt_find, inet6_opt_get_val, inet6_rth_space, inet6_rth_init,
11033         inet6_rth_add, inet6_rth_reverse, inet6_rth_segments,
11034         and inet6_rth_getaddr.
11035         * inet/netinet/ip6.h (struct ip6_rthdr0): Make ip6r0_addr a flexible
11036         array.
11037         * inet/netinet/in.h (struct ip6_mtuinfo): Define.
11038         Mark inet6_option_* interfaces as deprecated.
11039         Declare inet6_opt_init, inet6_opt_append, inet6_opt_finish,
11040         inet6_opt_set_val, inet6_opt_next, inet6_opt_find, inet6_opt_get_val,
11041         inet6_rth_space, inet6_rth_init, inet6_rth_add, inet6_rth_reverse,
11042         inet6_rth_segments, and inet6_rth_getaddr.
11043         * inet/inet6_opt.c: New file.
11044         * inet/inet6_rth.c: New file.
11045
11046         * inet/netinet/icmp6.h: Pretty printing.
11047
11048         [BZ #2683]
11049         * elf/dl-addr.c (_dl_addr): Don't match undefined references.
11050
11051 2006-05-23  Ulrich Drepper  <drepper@redhat.com>
11052
11053         * nis/nis_lookup.c (nis_lookup): Use __prepare_niscall instead of
11054         doing it all here.  When server does not know the answer do not
11055         fail immediate, try parent first.
11056
11057         * nis/nis_domain_of_r.c (nis_domain_of_r): Add missing buffer
11058         overflow test.
11059
11060 2006-05-20  Ulrich Drepper  <drepper@redhat.com>
11061
11062         * nis/nis_call.c (__prepare_niscall): New function.  Split out
11063         from __do_niscall.
11064         * nis/nis_table.c (__create_ib_request): Renamed from create_ib_request
11065         and exported.
11066         (__follow_path): New function.  Split out from nis_list.
11067         * nis/nis_xdr.h: Add libnsl_hidden_proto for _xdr_ib_request and
11068         _xdr_nis_result.
11069         * nis/nis_xdr.c: Add libnsl_hidden_def for _xdr_ib_request and
11070         _xdr_nis_result.
11071         * nis/libnsl.h: Declare __prepare_niscall, __create_ib_request,
11072         and __follow_path.
11073         * nis/Versions: Export __prepare_niscall, __create_ib_request,
11074         __follow_path, __do_niscall3, _xdr_ib_request, and _xdr_nis_result
11075         from libnsl for version GLIBC_PRIVATE.
11076         * nis/nisplus-parser.h: Remove _nss_nisplus_parse_pwent_chk.
11077         Remove entry parameter from _nss_nisplus_parse_pwent and
11078         _nss_nisplus_parse_grent.
11079         * nis/nss_nisplus/nisplus-parser.c: Likewise.
11080         * nis/nss_nisplus/nisplus-pwd.c: Remove support for SETENT_BATCH_READ
11081         again.  Rewrite getpwent handling to not use nis_first_entry and
11082         nis_next_entry.  Roll out own niscall handling.
11083         * nis/nss_nisplus/nisplus-grp.c: Likewise.
11084
11085         * sunrpc/xdr_rec.c: Fix typo in comment.
11086
11087 2006-05-19  Ulrich Drepper  <drepper@redhat.com>
11088
11089         * nis/nis_call.c (__do_niscall3): Avoid code duplication in error
11090         handling.
11091
11092         * nis/nis_callback.c (internal_nis_do_callback): Don't use malloc
11093         to allocate memory for my_pollfd.  Better initialization of
11094         cb_is_running.  Use TEMP_FAILURE_RETRY.
11095
11096         * malloc/memusage.sh (memusageso): Add quotes.
11097         (memusagestat): Likewise.
11098         * debug/xtrace.sh (pcprofileso): Likewise.
11099         (pcprofiledump): Likewise.
11100         * debug/Makefile ($(objpfx)xtrace): Use $LIB in SLIBDIR
11101         replacement.
11102         * malloc/Makefile ($(objpfx)memusage): Likewise.
11103
11104         * nis/nis_callback.c (__nis_create_callback): Calls to
11105         svcudp_bufcreate and svctcp_create can fail.  Free ->xprt if
11106         asprintf call fails.
11107
11108         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_sendreq): Make sure
11109         no uninitialized memory is passed to sendto.
11110
11111 2006-05-18  Ulrich Drepper  <drepper@redhat.com>
11112
11113         * nis/nis_callback.c (__nis_create_callback): Use asprinf instead
11114         of snprintf+strdup.  Handle OOM.
11115         * nis/nis_callback.c (__nis_create_callback): Allocate cb and
11116         cb->serv together.  Remove now obsolete free calls.
11117         (__nis_destroy_callback): Remove now obsolete free call.
11118
11119 2006-05-18  David Woodhouse  <dwmw2@redhat.com>
11120
11121         * sysdeps/posix/getaddrinfo.c: Add unique labels to the default
11122         RFC3484 precedence table for fec0::/10 and fc00::/7 (site-local
11123         and ULA respectively). Set precedence for IPv4 address to 10 as
11124         defined in RFC3484 for preferring IPv6.
11125         * posix/gai.conf: Update to match the new default tables.
11126
11127 2006-05-18  Jakub Jelinek  <jakub@redhat.com>
11128
11129         * nis/nss_compat/compat-pwd.c (internal_setpwent): If nss_set*ent
11130         returned NSS_STATUS_UNAVAIL, still return NSS_STATUS_SUCCESS.
11131         * nis/nss_compat/compat-spwd.c (internal_setspent): Likewise.
11132         * nis/nss_compat/compat-grp.c (internal_setgrent): Likewise.
11133
11134         * nis/nss_compat/compat-initgroups.c (nss_setgrent, nss_endgrent):
11135         Removed.
11136         (init_nss_interface): Remove initialization of these variables.
11137
11138 2006-05-18  Ulrich Drepper  <drepper@redhat.com>
11139
11140         * nis/nis_call.c (rec_dirsearch): Little optimization: pull
11141         nis_free_directory forward to avoid duplication.
11142
11143 2006-05-17  Ulrich Drepper  <drepper@redhat.com>
11144
11145         * nis/nis_call.c (rec_dirsearch): Handle __nis_finddirectory and
11146         rec_dirsearch returning NULL.
11147         (first_shoot): Handle __nis_finddirectory returning NULL.
11148         (__nisfind_server): Fix leak when rec_dirsearch returns NULL.
11149
11150         * sysdeps/unix/sysv/linux/sys/inotify.h: Define IN_CLOSE, IN_MOVE,
11151         IN_ONLYDIR, IN_DONT_FOLLOW, and IN_MASK_ADD.
11152
11153 2006-05-17  Jakub Jelinek  <jakub@redhat.com>
11154
11155         * sunrpc/key_call.c (getkeyserv_handle): Call auth_destroy if
11156         pid changed.
11157
11158 2006-05-15  Ulrich Drepper  <drepper@redhat.com>
11159
11160         * include/rpc/pmap_prot.h: Mark all functions as hidden.
11161
11162         * nscd/nscd_initgroups.c: Mark __gr_map_handle as hidden.
11163         * nscd/nscd_getgr_r.c: Likewise.
11164
11165         * include/rpc/pmap_rmt.h: Mark all functions as hidden.
11166
11167         * nscd/nscd_getai.c (__hst_map_handle): Mark as hidden.
11168         * nscd/nscd_gethst_r.c (__hst_map_handle): Likewise.
11169
11170         * stdlib/longlong.h (__clz_tab): Mark as hidden.
11171
11172         * iconv/gconv_int.h: Mark __gconv_lock as hidden.
11173
11174         * include/rpc/key_prot.h: Mark all _internal functions as hidden.
11175
11176         * include/rpc/auth.h: Mark xdr_des_block_internal and
11177         xdr_opaque_auth_internal as hidden.
11178
11179         * sysdeps/unix/sysv/linux/getdents.c: Mark __have_no_getdents64 as
11180         hidden.
11181
11182         * include/rpc/xdr.h: Mark all _internal functions as hidden.
11183
11184         * misc/getusershell.c (okshells): Don't use static initializers,
11185         do it dynamically.
11186
11187         * stdlib/fmtmsg.c (keywords): Change type of len element to
11188         uint32_t to not waste space on 64bit machines.
11189
11190         * locale/setlocale.c: Change _nl_category_names into a string.
11191         Add new _nl_category_name_idxs.  Change all users.
11192         * locale/localeinfo.h: Adjust declaration of _nl_category_names.
11193         Declare _nl_category_name_idxs.
11194         * locale/findlocale.c: Adjust for _nl_category_names change.
11195         * locale/loadlocale.c: Likewise.
11196         * locale/newlocale.c: Likewise.
11197         * intl/dcigettext.c: Likewise.
11198
11199         * iconv/gconv_conf.c (add_alias): Move actual alias handling to...
11200         (add_alias2): ...here.  New function.
11201         (__gconv_read_conf): Simplify builtin alias handling.
11202         (builtin_aliases): Convert to string to avoid relocations.
11203         * iconv/gconv_builtin.h: Add comment about correct formatting.
11204
11205 2006-05-15  Jakub Jelinek  <jakub@redhat.com>
11206
11207         * resolv/res_debug.c (loc_ntoa): Make error const.
11208
11209 2006-05-14  Andreas Schwab  <schwab@suse.de>
11210
11211         * math/complex.h [__LDBL_COMPAT]: Use __REDIRECT_NTH.
11212
11213 2006-05-12  Jakub Jelinek  <jakub@redhat.com>
11214
11215         * sysdeps/unix/sysv/linux/sched_getaffinity.c: Include sys/param.h.
11216         (__sched_getaffinity_new): Don't crash if cpusetsize is smaller than
11217         sizeof (cpu_set_t).
11218
11219 2006-05-11  Ulrich Drepper  <drepper@redhat.com>
11220
11221         * resolv/res_debug.c (loc_ntoa): Define error as array, not pointer.
11222
11223         * include/arpa/nameser.h: Declare _ns_flagdata as hidden.
11224
11225         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_master.
11226         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_master.
11227
11228         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypbind_resp.
11229         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypbind_resp.
11230
11231         * nis/nis_xdr.c: Add libnsl_hidden_def for xdr_cback_data.
11232         * include/rpcsvc/nis_callback.h: Add libnsl_hidden_proto for
11233         xdr_cback_data.
11234
11235         * nis/ypupdate_xdr.c: Add libnsl_hidden_def for xdr_ypupdate_args.
11236         * include/rpcsvc/ypupd.h: Add libnsl_hidden_proto for
11237         xdr_ypupdate_args.
11238
11239         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_order.
11240         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_order.
11241
11242         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_maplist.
11243         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_maplist.
11244
11245         * nis/nis_xdr.c: Add libnsl_hidden_def for xdr_obj_p.
11246         * include/rpcsvc/nis_callback.h: New file.
11247
11248         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_val.
11249         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_val.
11250
11251         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypreq_nokey.
11252         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypreq_nokey.
11253
11254         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypmaplist.
11255         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypmaplist.
11256
11257         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypreq_nokey.
11258         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypreq_nokey.
11259
11260         * nis/ypupdate_xdr.c: Add libnsl_hidden_def for xdr_ypdelete_args.
11261         * include/rpcsvc/ypupd.h: Add libnsl_hidden_proto for
11262         xdr_ypdelete_args.
11263
11264         * nis/nis_xdr.h: Mark all functions as hidden.  Remove
11265         __BEGIN_DECLS and __END_DECLS, the header is not installed.
11266
11267         * nis/nis_error.c: Remove table of strings.  Use position
11268         independent mechanism.
11269         * nis/nis_error.h: New file.
11270
11271 2006-05-11  Jakub Jelinek  <jakub@redhat.com>
11272
11273         * locale/programs/ld-time.c (time_finish): If wide era name or
11274         format aren't provided, set both wname and wformat to L"".
11275
11276 2006-05-10  Ulrich Drepper  <drepper@redhat.com>
11277
11278         * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Only store
11279         results if the call was succesful.
11280
11281         * nis/nss-nis.h: Mark __yperr2nss_tab and __yperr2nss_count as hidden.
11282
11283         * nis/nss-nisplus.h: Mark __niserr2nss_tab and __niserr2nss_count
11284         as hidden.
11285
11286 2006-05-10  Jakub Jelinek  <jakub@redhat.com>
11287
11288         * misc/sys/queue.h: Remove uses of all QUEUEDEBUG_* macros.
11289
11290 2006-05-10  Ulrich Drepper  <drepper@redhat.com>
11291
11292         * posix/wordexp.c (parse_glob): No need to check ifs for NULL, the
11293         caller makes sure this is not the case.
11294         (wordexp): Simplify ifs_white creation.  [Coverity CID 231]
11295
11296 2006-05-09  Ulrich Drepper  <drepper@redhat.com>
11297
11298         * posix/wordexp.c: Remove numerous NULL pointer tests before FREE
11299         calls.
11300
11301         * io/ftw.c (open_dir_stream): Return right away if REALLOC fails.
11302         [Coverity CID 229, 230]
11303
11304         * argp/argp-help.c (hol_entry_help): Handle STATE==NULL in ARG and
11305         DGETTEXT calls.
11306         (hol_help): Likewise.  [Coverity CID 226, 227]
11307
11308         * string/argz-replace.c (__argz_replace): Unconditionally call
11309         free on SRC.  [Coverity CID 225]
11310
11311         * nis/nis_creategroup.c (nis_creategroup): No need to duplicate
11312         the return value of __nis_default_owner and __nis_default_group,
11313         it has been especially allocated.  [Coverity CID 224]
11314
11315         * nis/nis_defaults.c (searchXYX): New functions.  Used by both
11316         searchgroup and searchowner.  Significantly simplified.
11317         (__nis_default_owner): Remove duplication.  Do not locally copy the
11318         string before duplicating it.
11319         (__nis_default_group): Likewise.
11320
11321         * nis/nis_lookup.c (nis_lookup): After calling nis_free_directory,
11322         we must clear the variable before calling __nisfind_server.
11323
11324         * nis/nis_lookup.c (nis_lookup): Always free memory allocated with
11325         nis_getnames.  [Coverity CID 223]
11326
11327         * locale/programs/locfile.c (locfile_read): Use alloca instead of
11328         xmalloc to allocate local repertoire name.  [Coverity CID 222]
11329
11330         * iconv/iconv_charmap.c (use_to_charmap): No need to dynamically
11331         allocate memory for the input to add_bytes.  [Coverity CID 221]
11332
11333         * posix/wordexp.c (w_addword): Free word if realloc fails and it
11334         was allocated here.  [Coverity CID 219, 220]
11335
11336         * posix/getconf.c (print_all): Free confstr data after printing.
11337         [Coverity CID 218]
11338
11339         * sysdeps/posix/getaddrinfo.c (gaih_inet): Free canon string if
11340         list allocation fails.  [Coverity CID 215]
11341
11342         * nss/nsswitch.c (__nss_configure_lookup): Fix loop end condition.
11343         [Coverity CID 213]
11344
11345         * argp/argp-help.c (hol_entry_cmp): Don't call canon_doc_option if
11346         string is NULL.  [Coverity CID 212]
11347         * argp/Makefile: Add rules to build and run bug-argp1.
11348         * argp/bug-argp1.c: New file.
11349
11350         * io/ftw.c (ftw_dir): Use __rawmemchr instead of strchr to find
11351         end of string.
11352         * stdlib/canonicalize.c (__realpath): Likewise.
11353
11354         * locale/programs/ld-time.c (time_finish): Don't dereference NULL
11355         pointer.  [Coverity CID 206]
11356
11357         * elf/dl-dst.h (DL_DST_REQUIRED): Be prepared for missing link map
11358         in statically linked code.
11359         * elf/dl-load.c (_dl_dst_substitute): When replacing ORIGIN in
11360         statically built code, be prepared to have no link map.
11361         [Coverity CID 205]
11362
11363         * argp/argp-help.c (fill_in_uparams): Handle STATE==NULL in
11364         dgettext calls. [Coverity CID 204]
11365
11366         * argp/argp-help.c (struct uparams): Remove valid member.  Change
11367         the one user.
11368         (uparam_names): Reduce size.  Avoid relative relocations.
11369         Moved to read-only segment.
11370         (fill_in_uparams): Update for new layout.
11371
11372         * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs): Parameter can be
11373         assumed to always be != NULL. [Coverity CID 202]
11374
11375         * argp/argp-help.c (hol_entry_help): Remove some dead code
11376         [Coverity CID 200].
11377
11378         * nis/nss_nis/nis-service.c (_nss_nis_getservbyport_r): Optimize
11379         away a few more unconditional yperr2nss calls.
11380         (_nss_nis_getservbyname_r): Likewise.
11381
11382 2006-05-06  Ulrich Drepper  <drepper@redhat.com>
11383
11384         * sysdeps/generic/ldsodefs.h: Remove support for non-core
11385         architectures.
11386
11387         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Make sure
11388         that unused memory passed to sendto is nevertheless initialized.
11389
11390         [BZ #2499]
11391         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Avoid
11392         possibly unaligned memory accesses.
11393
11394         * include/arpa/nameser.h: Also optimize NS_PUT16 and NS_PUT32.
11395         * resolv/res_mkquery.c: Use NS_PUT16 and NS_PUT32 instead of __putshort
11396         and __putlong respectively.  Correct buffer overflow check for
11397         NS_NOTIFY_OP.
11398
11399         * resolv/res_send.c (send_vc): Use ns_put16 instead of putshort.
11400
11401         * resolv/res_send.c (res_queriesmatch): Fix typo in comment.
11402         (send_dg): Rewrite error handling to be more compact and avoid
11403         double recomputation of timeouts.  Pass MSG_NOSIGNAL to send.
11404
11405         * include/arpa/nameser.h: Add optimizations for NS_GET16 and NS_GET32.
11406
11407         * resolv/res_send.c (res_nameinquery): Use NS_GET16 directly
11408         instead of ns_get16.
11409         (res_queriesmatch): Likewise.  Minor optimization.
11410
11411         [BZ #2499]
11412         * resolv/res_query.c (__libc_res_nquery): If answerp != NULL,
11413         __libc_res_nsend might reallocate the buffer for the answer.  In
11414         this case we have to reload the HP pointer.
11415
11416 2006-05-05  Ulrich Drepper  <drepper@redhat.com>
11417
11418         * stdio-common/vfscanf.c (memory_error): Remove definition.  Add
11419         some branch prediction hints.
11420
11421         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Define SPLICE_F_*.
11422         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
11423         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
11424         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
11425         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
11426         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
11427         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
11428         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
11429
11430 2006-05-05  Martin Schwidefsky  <schwidefsky@de.ibm.com>
11431
11432         * sysdeps/s390/s390-32/elf/start.S: Replace pc relative relocation
11433         by a GOT relocation to make Scrt1.o position independent.
11434         * sysdeps/s390/s390-64/elf/start.S: Likewise.
11435
11436         * sysdeps/unix/sysv/linux/s390/s390-32/syscall.S: Add support for
11437         six system call parameters.
11438         * sysdeps/unix/sysv/linux/s390/s390-64/syscall.S: Likewise.
11439
11440 2006-05-05  Ulrich Drepper  <drepper@redhat.com>
11441
11442         * sunrpc/svcauth_des.c (cache_init): Use calloc instead of
11443         malloc&bzero.
11444
11445         * sunrpc/svc_udp.c (BZERO): Remove definition.
11446         (CALLOC): Define.
11447         (svc_enablecache): Use CALLOC instead of ALLOC&BZERO.
11448
11449         * sunrpc/des_impl.c: Remove ALT_ECB support.  We never used it.
11450         (des_SPtrans): Use uint32_t type.
11451         (des_skb): Likewise.
11452
11453         * sunrpc/xdr_ref.c (xdr_reference): Use calloc instead of malloc&bzero.
11454
11455 2006-05-05  Jakub Jelinek  <jakub@redhat.com>
11456
11457         [BZ #2509]
11458         * stdio-common/tst-printf.sh: Adjust for tst-printf.c change even
11459         on 32-bit arches.
11460
11461 2006-05-05  Ulrich Drepper  <drepper@redhat.com>
11462
11463         * locale/programs/ld-address.c (address_finish): Fix one more
11464         place where the iso639 array might be accessed beyond the limits.
11465
11466 2006-05-04  Ulrich Drepper  <drepper@redhat.com>
11467
11468         * nis/nis_table.c (nis_list): Avoid clearing res twice before
11469         filling it for the first time.
11470
11471         * nis/nis_table.c (get_tablepath): Renamed from __get_tablepath.
11472         Adjust all callers.
11473         Free res object content before returning.
11474
11475         * sunrpc/xdr_array.c (xdr_array): Use calloc instead of malloc&bzero.
11476
11477         * sunrpc/key_call.c (__rpc_thread_key_cleanup): Also free
11478         client->cl_auth.
11479
11480         * sunrpc/rpc_thread.c (__rpc_thread_destroy): Don't skip entire
11481         cleanup for initial thread, just the free call on TVP.
11482
11483         * nscd/gai.c (__getline): Define.
11484
11485
11486 See ChangeLog.16 for earlier changes.