Sun agreed to a change of the license for the RPC code to a BSD-like license.
[platform/upstream/glibc.git] / ChangeLog
1 2009-05-20  Ulrich Drepper  <drepper@redhat.com>
2
3         Sun approved the change of the license.
4         * sunrpc/auth_des.c: Replace license text.
5         * sunrpc/auth_none.c: Likewise.
6         * sunrpc/auth_unix.c: Likewise.
7         * sunrpc/authdes_prot.c: Likewise.
8         * sunrpc/authuxprot.c: Likewise.
9         * sunrpc/bindrsvprt.c: Likewise.
10         * sunrpc/clnt_gen.c: Likewise.
11         * sunrpc/clnt_perr.c: Likewise.
12         * sunrpc/clnt_raw.c: Likewise.
13         * sunrpc/clnt_simp.c: Likewise.
14         * sunrpc/clnt_tcp.c: Likewise.
15         * sunrpc/clnt_udp.c: Likewise.
16         * sunrpc/clnt_unix.c: Likewise.
17         * sunrpc/des_crypt.c: Likewise.
18         * sunrpc/des_soft.c: Likewise.
19         * sunrpc/get_myaddr.c: Likewise.
20         * sunrpc/getrpcport.c: Likewise.
21         * sunrpc/key_call.c: Likewise.
22         * sunrpc/key_prot.c: Likewise.
23         * sunrpc/openchild.c: Likewise.
24         * sunrpc/pm_getmaps.c: Likewise.
25         * sunrpc/pm_getport.c: Likewise.
26         * sunrpc/pmap_clnt.c: Likewise.
27         * sunrpc/pmap_prot.c: Likewise.
28         * sunrpc/pmap_prot2.c: Likewise.
29         * sunrpc/pmap_rmt.c: Likewise.
30         * sunrpc/rpc/auth.h: Likewise.
31         * sunrpc/rpc/auth_unix.h: Likewise.
32         * sunrpc/rpc/clnt.h: Likewise.
33         * sunrpc/rpc/des_crypt.h: Likewise.
34         * sunrpc/rpc/key_prot.h: Likewise.
35         * sunrpc/rpc/netdb.h: Likewise.
36         * sunrpc/rpc/pmap_clnt.h: Likewise.
37         * sunrpc/rpc/pmap_prot.h: Likewise.
38         * sunrpc/rpc/pmap_rmt.h: Likewise.
39         * sunrpc/rpc/rpc.h: Likewise.
40         * sunrpc/rpc/rpc_des.h: Likewise.
41         * sunrpc/rpc/rpc_msg.h: Likewise.
42         * sunrpc/rpc/svc.h: Likewise.
43         * sunrpc/rpc/svc_auth.h: Likewise.
44         * sunrpc/rpc/types.h: Likewise.
45         * sunrpc/rpc/xdr.h: Likewise.
46         * sunrpc/rpc_clntout.c: Likewise.
47         * sunrpc/rpc_cmsg.c: Likewise.
48         * sunrpc/rpc_common.c: Likewise.
49         * sunrpc/rpc_cout.c: Likewise.
50         * sunrpc/rpc_dtable.c: Likewise.
51         * sunrpc/rpc_hout.c: Likewise.
52         * sunrpc/rpc_main.c: Likewise.
53         * sunrpc/rpc_parse.c: Likewise.
54         * sunrpc/rpc_parse.h: Likewise.
55         * sunrpc/rpc_prot.c: Likewise.
56         * sunrpc/rpc_sample.c: Likewise.
57         * sunrpc/rpc_scan.c: Likewise.
58         * sunrpc/rpc_scan.h: Likewise.
59         * sunrpc/rpc_svcout.c: Likewise.
60         * sunrpc/rpc_tblout.c: Likewise.
61         * sunrpc/rpc_util.c: Likewise.
62         * sunrpc/rpc_util.h: Likewise.
63         * sunrpc/rpcinfo.c: Likewise.
64         * sunrpc/rpcsvc/bootparam_prot.x: Likewise.
65         * sunrpc/rpcsvc/key_prot.x: Likewise.
66         * sunrpc/rpcsvc/klm_prot.x: Likewise.
67         * sunrpc/rpcsvc/mount.x: Likewise.
68         * sunrpc/rpcsvc/nfs_prot.x: Likewise.
69         * sunrpc/rpcsvc/rex.x: Likewise.
70         * sunrpc/rpcsvc/rstat.x: Likewise.
71         * sunrpc/rpcsvc/rusers.x: Likewise.
72         * sunrpc/rpcsvc/sm_inter.x: Likewise.
73         * sunrpc/rpcsvc/spray.x: Likewise.
74         * sunrpc/rpcsvc/yppasswd.x: Likewise.
75         * sunrpc/rtime.c: Likewise.
76         * sunrpc/svc.c: Likewise.
77         * sunrpc/svc_auth.c: Likewise.
78         * sunrpc/svc_authux.c: Likewise.
79         * sunrpc/svc_raw.c: Likewise.
80         * sunrpc/svc_run.c: Likewise.
81         * sunrpc/svc_simple.c: Likewise.
82         * sunrpc/svc_tcp.c: Likewise.
83         * sunrpc/svc_udp.c: Likewise.
84         * sunrpc/svc_unix.c: Likewise.
85         * sunrpc/svcauth_des.c: Likewise.
86         * sunrpc/xcrypt.c: Likewise.
87         * sunrpc/xdr.c: Likewise.
88         * sunrpc/xdr_array.c: Likewise.
89         * sunrpc/xdr_float.c: Likewise.
90         * sunrpc/xdr_mem.c: Likewise.
91         * sunrpc/xdr_rec.c: Likewise.
92         * sunrpc/xdr_ref.c: Likewise.
93         * sunrpc/xdr_sizeof.c: Likewise.
94         * sunrpc/xdr_stdio.c: Likewise.
95
96         * po/da.po: Update from translation team.
97
98 2009-05-18  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
99
100         * sysdeps/sh/____longjmp_chk.S: New file.
101         * sysdeps/sh/sh3/__longjmp.S: If CHECK_SP is defined, use it.
102         * sysdeps/sh/sh4/__longjmp.S: Likewise.
103                         
104 2009-05-18  Jakub Jelinek  <jakub@redhat.com>
105             Ulrich Drepper  <drepper@redhat.com>
106
107         * nscd/nscd_helper.c (MINIMUM_HASHENTRY_SIZE): Define.
108         (__nscd_cache_search): Assume each entry in the
109         hash chain needs one hashentry and half of datahead.  Use
110         MINIMUM_HASHENTRY_SIZE instead of sizeof(hashentry).
111
112 2009-05-16  Ulrich Drepper  <drepper@redhat.com>
113
114         * posix/sys/wait.h: Fix typos.  Pretty printing.
115         * stdlib/stdlib.h: Likewise.  Correct comments.
116
117         [BZ #10159]
118         * stdlib/stdlib.h (__WAIT_INT): Match the definition in <sys/wait.h>.
119
120         * nscd/nscd_helper.c (__nscd_cache_search): Fix exit condition in last
121         patch.
122
123 2009-05-15  Ulrich Drepper  <drepper@redhat.com>
124
125         * nscd/nscd_helper.c (__nscd_cache_search): Introduce loop counter.
126         Use it if we absolutely cannot reach any more correct list elements
127         because that many do not fit into the currently mapped database.
128
129 2009-05-14  Jakub Jelinek  <jakub@redhat.com>
130
131         * nscd/nscd_helper.c: Include stddef.h.
132         (__nscd_cache_search): Add datalen argument.  Use atomic_forced_read
133         in a couple of places.  Return NULL if trail is not less than
134         datasize, don't consider dataheads with length smaller than
135         offsetof (struct datahead, data) + datalen.
136         * nscd/nscd_client.h (__nscd_cache_search): Adjust prototype.
137         * nscd/nscd_gethst_r.c (nscd_gethst_r): Adjust callers.
138         * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
139         * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
140         * nscd/nscd_getai.c (__nscd_getai): Likewise.
141         * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
142         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
143
144         * sysdeps/unix/sysv/linux/i386/fallocate64.c (__fallocate64_l64):
145         Rename ...
146         (fallocate64): ... to this.
147         * sysdeps/unix/sysv/linux/fallocate64.c (__fallocate64_l64):
148         Rename ...
149         (fallocate64): ... to this.
150         * sysdeps/unix/sysv/linux/Versions (libc): Remove fallocate64.
151         * sysdeps/unix/sysv/linux/wordsize-64/Versions (libc): Add
152         fallocate64@@GLIBC_2.10.
153         * sysdeps/unix/sysv/linux/i386/Versions (libc): Add
154         fallocate64@@GLIBC_2.11.
155         * sysdeps/unix/sysv/linux/s390/s390-32/Versions (libc): Likewise.
156         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions (libc): Likewise.
157         * sysdeps/unix/sysv/linux/sparc/sparc32/Versions (libc): Likewise.
158         * sysdeps/unix/sysv/linux/sh/Versions (libc): Likewise.
159
160         * nscd/selinux.c (nscd_avc_destroy): Removed.
161         * nscd/selinux.h (nscd_avc_destroy): Likewise.
162         * nscd/nscd.c (termination_handler): Don't call
163         nscd_avc_destroy.
164
165 2009-05-12  Jakub Jelinek  <jakub@redhat.com>
166
167         * include/atomic.h: Formatting.
168         (catomic_compare_and_exchange_val_acq): Don't define if already
169         defined by bits/atomic.h.
170
171 2009-05-15  Ulrich Drepper  <drepper@redhat.com>
172
173         * math/libm-test.inc (expm1_test): Add test for range error.
174
175         * Versions.def: Add GLIBC_2.11 for libc.
176         * debug/Makefile (routines): Add longjmp_chk.
177         Add rules to build and run tst-longjmp_chk.
178         * debug/Versions: Export __longjmp_chk for GLIBC_2.11.
179         * debug/longjmp_chk.c: New file.
180         * debug/tst-longjmp_chk.c: New file.
181         * include/bits/setjmp2.: New file.
182         * include/stdio.h: Mark __fortify_fail as internal_function.
183         * setjmp/Makefile (headers): Add bits/setjmp2.h.
184         * setjmp/bits/setjmp2.h: New file.
185         * setjmp/longjmp.c: If __libc_siglongjmp is defined, don't define any
186         of the aliases.
187         * setjmp/setjmp.h: Include <bits/setjmp2.h> if _FORTIFY_SOURCE is
188         defined.
189         * sysdeps/i386/____longjmp_chk.S: New file.
190         * sysdeps/x86_64/____longjmp_chk.S: New file.
191         * sysdeps/i386/__longjmp.S: If CHECK_ESP is defined, use it.
192         * sysdeps/x86_64/__longjmp.S: Likewise.
193
194         * version.h: Bump for 2.11 development.
195
196         * elf/check-execstack.c: New file.
197         * elf/Makefile: Add rules to build and run check-execstack.
198
199 2009-05-10  Ulrich Drepper  <drepper@redhat.com>
200
201         * version.h (VERSION): Bump to 2.10.1.
202
203         * nss/getXXbyYY_r.c: If NO_COMPAT_NEEDED is defined don't define any
204         compatibility functions.
205         * nss/getXXent_r.c: Likewise.
206         * gshadow/getsgent_r.c: Define NO_COMPAT_NEEDED.
207         * gshadow/getsgnam_r.c: Likewise.
208         * gshadow/Version: Remove duplicate entries.
209
210         * sysdeps/x86_64/cacheinfo.c (intel_02_cache_info): Add missing entries
211         for recent processor.
212         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_cache_info):
213         Likewise.
214
215 2009-05-09  Ulrich Drepper  <drepper@redhat.com>
216
217         * version.h (VERSION): Bump for 2.10 release.
218         * include/features.h (__GLIBC_MINOR__): Bump to 10.
219
220         * Makeconfig: Undo last change.  Add asflags-cpu to ASFLAGS in the
221         same place we add ASFLAGS-config.
222
223 2009-05-05  Aurelien Jarno  <aurelien@aurel32.net>
224
225         [BZ #10128]
226         * resolv/res_query.c (__libc_res_nquery): If one query returns NOTIMP
227         or FORMERR and the other NOERROR, don't raise an error.
228
229 2009-05-06  Ryan S. Arnold  <rsa@us.ibm.com>
230
231         [BZ #10118]
232         * Makeconfig (+asflags): New variable based upon ASFLAG or
233         asflags-cpu.
234         (ASFLAGS): Add override to set ASFLAGS to +asflags.
235         * config.make.in (asflags-cpu): Add variable based upon
236         @libc_cv_cc_submachine@ to propagate -mcpu=CPU from --with-cpu=CPU to
237         the assembler.
238         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/setcontext.S:
239         Remove unneeded file now that the assembler emits _ARCH_PWR6 and
240         recognizes power6 instruction set due to passing -mcpu=power6 from
241         --with-cpu=power6 when compiling .S files.
242         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/swapcontext.S:
243         Likewise.
244         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/setcontext.S:
245         Likewise.
246         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/swapcontext.S:
247         Likewise.
248
249 2009-05-09  Jakub Jelinek  <jakub@redhat.com>
250
251         * string/stratcliff.c (do_test): Test for zero length
252         STRNLEN, MEMCHR, STRNCPY, STPNCPY, MEMCPY, MEMPCPY and memccpy
253         at the end of the page.
254
255 2009-05-08  Ulrich Drepper  <drepper@redhat.com>
256
257         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_AT_RANDOM.
258
259         * sysdeps/x86_64/memchr.S: Handle invalid buffer pointers when
260         count is zero.
261
262         * po/da.po: Update from translation team.
263
264 2009-05-05  Jakub Jelinek  <jakub@redhat.com>
265
266         * io/sys/stat.h (fstatat64): Guard prototype with __USE_LARGEFILE64,
267         guard __extern_inline wrapper with __USE_ATFILE instead of __USE_GNU.
268
269 2009-05-05  Ulrich Drepper  <drepper@redhat.com>
270
271         * sysdeps/unix/sysv/linux/sys/personality.h: Add ADDR_COMPAT_LAYOUT
272         and READ_IMPLIES_EXEC.
273
274 2009-05-04  Ulrich Drepper  <drepper@redhat.com>
275
276         * po/da.po: Update from translation team.
277
278 2009-04-29  Jakub Jelinek  <jakub@redhat.com>
279
280         * sysdeps/unix/sysv/linux/ifaddrs.c: Revert unintended 2008-08-12
281         comment change.
282
283 2009-04-27  Jakub Jelinek  <jakub@redhat.com>
284
285         * locale/programs/locarchive.c (create_archive): Add MAP_PRIVATE
286         to MAP_ANON in PROT_NONE mmap64 call.
287         (open_archive): Likewise.
288         (file_data_available_p): Use mmap64 instead of mremap.
289         (enlarge_archive): Likewise.  Update head if ah->addr changed.
290         Attempt to reserve address space after mmap64 region.
291
292 2009-04-26  Ulrich Drepper  <drepper@redhat.com>
293
294         * sysdeps/ieee754/dbl-64/s_expm1.c: Set errno for overflow.
295         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
296         * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
297
298         * sysdeps/ieee754/k_standard.c (__kernel_standard): Pole errors in
299         atanh should set ERANGE.
300
301         [BZ #10087]
302         * elf/dl-runtime.c (_dl_fixup): Use DL_FIXUP_VALUE_ADDR to access
303         result of lookup to make call to implement STT_GNU_IFUNC.
304         (_dl_profile_fixup): Likewise.
305         Patch by H.J. Lu <hjl.tools@gmail.com>.
306
307         * nscd/connections.c (send_ro_fd): Define temporary variable to avoid
308         warning.
309
310         * sysdeps/unix/sysv/linux/dl-osinfo.h (dl_fatal): Remove inline
311         from definition.
312
313         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Don't define
314         label if it is not used.
315
316         * elf/dl-profile.c (_dl_start_profile): Define real-type variant
317         of gmon_hist_hdr and gmon_hdr structures and use them.
318         * elf/sprof.c: Likewise.
319
320         * elf/dl-load.c (open_verify): Add temporary variable to avoid
321         warning.
322
323         * nscd/nscd_helper.c (get_mapping): Avoid casts to avoid warnings.
324
325         * sunrpc/clnt_raw.c (clntraw_private_s): Use union in definition
326         to avoid cast.
327
328         * inet/rexec.c (rexec_af): Make sa2 a union to avoid warnings.
329         * inet/rcmd.c (rcmd_af): Make from a union of the various needed types
330         to avoid warnings.
331         (iruserok_af): Use ss_family instead of casts.
332
333         * gmon/gmon.c (write_hist): Define real-type variant of
334         gmon_hist_hdr structure and use it.
335         (write_gmon): Likewise for gmon_hdr.
336
337         * sysdeps/unix/sysv/linux/readv.c: Avoid declaration of replacement
338         function if we are not going to define it.
339         * sysdeps/unix/sysv/linux/writev.c: Likewise.
340
341         * inet/inet6_option.c (option_alloc): Add temporary variable to
342         avoid warning.
343
344         * libio/strfile.h (struct _IO_streambuf): Use correct type and
345         name of VTable element.
346         * libio/iovsprintf.c: Avoid casts to avoid warnings.
347         * libio/iovsscanf.c: Likewise.
348         * libio/vasprintf.c: Likewise.
349         * libio/vsnprintf.c: Likewise.
350         * stdio-common/isoc99_vsscanf.c: Likewise.
351         * stdlib/strfmon_l.c: Likewise.
352         * debug/vasprintf_chk.c: Likewise.
353         * debug/vsnprintf_chk.c: Likewise.
354         * debug/vsprintf_chk.c: Likewise.
355
356         * nss/nsswitch.c (__nss_lookup_function): En/Decrypt cached
357         function pointers.
358
359 2009-04-26  Jakub Jelinek  <jakub@redhat.com>
360
361         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Fix -Wsequence-point warnings.
362
363 2009-04-25  Ulrich Drepper  <drepper@redhat.com>
364
365         * posix/bits/posix1_lim.h: Cleanup namespace a bit.
366
367         * sysdeps/i386/fpu/s_tan.S: Set errno for Â±Inf.
368         * sysdeps/i386/fpu/s_tanf.S: Likewise.
369         * sysdeps/i386/fpu/s_tanl.S: Likewise.
370         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
371         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
372         * sysdeps/x86_64/fpu/s_tanl.S: Likewise.
373         * math/libm-test.inc: Add tests for errno after tan calls with
374         Â±Inf.
375
376         * sysdeps/ieee754/k_standard.c (__kernel_standard): Use correct
377         errno value vor pow(+-0,neg).
378         * math/libm-test.inc (pow_test): Add tests for errno value for
379         pole errors.
380
381         * math/w_fmod.c: Also handle x=±Inf as error.
382         * math/w_fmodf.c: Likewise.
383         * math/w_fmodl.c: Likewise.
384         * math/libm-test.inc (fmod_test): Add tests for errno after calls for
385         x=±Inf or y=0.
386
387         * sysdeps/i386/fpu/s_cos.S: Set errno for Â±Inf.
388         * sysdeps/i386/fpu/s_cosf.S: Likewise.
389         * sysdeps/i386/fpu/s_cosl.S: Likewise.
390         * sysdeps/i386/fpu/s_sin.S: Likewise.
391         * sysdeps/i386/fpu/s_sinf.S: Likewise.
392         * sysdeps/i386/fpu/s_sinl.S: Likewise.
393         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
394         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
395         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
396         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
397         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
398         * sysdeps/x86_64/fpu/s_cosl.S: Likewise.
399         * sysdeps/x86_64/fpu/s_sinl.S: Likewise.
400         * math/libm-test.inc: Add tests for errno after sin/cos calls with
401         Â±Inf.
402
403         * stdlib/strtod_l.c (round_and_return): We have to set errno to
404         ERANGE for underflows.
405         * stdlib/tst-strtod.c (tests): Two tests should set errno to ERANGE.
406
407         * stdio-common/stdio_lim.h.in (L_cuserid): Not part of POSIX since
408         the 2001 revision.
409
410         * libio/tst-widetext.input: Remove surrogates.
411
412         * include/features.h: _POSIX_C_SOURCE >= 200112L implies C99.
413
414         * sysdeps/ieee754/k_standard.c (__kernel_standard): Pole errors
415         for lgamma should set errno to ERANGE, not EDOM.
416         * math/libm-test.inc (lgamma_test): Check errno for pole errors.
417
418 2009-04-24  Ulrich Drepper  <drepper@redhat.com>
419
420         [BZ #10093]
421         * iconv/gconv_simple.c (BODY for UTF-8 to INTERNAL): Don't accept
422         UTF-16 surrogates.
423
424         * locale/programs/locarchive.c (enlarge_archive): Conserve address
425         space when temporarily mapping the whole content of the old file.
426
427         [BZ #10100]
428         * misc/hsearch_r.c (hsearch_r): Add back ensurance that hval is
429         not zero.
430
431 2009-04-24  Jakub Jelinek  <jakub@redhat.com>
432
433         * iconvdata/sjis.c (BODY): Don't advance inptr before
434         STANDARD_FROM_LOOP_ERR_HANDLER (2) for 2 byte invalid input.
435         Use STANDARD_FROM_LOOP_ERR_HANDLER with 2 instead of 1 for
436         two byte chars.
437
438 2009-04-24  Ulrich Drepper  <drepper@redhat.com>
439
440         * locale/locarchive.h (struct locarhandle): Rename len field to
441         mmaped and add new reserved field.
442         * locale/programs/locarchive.c (RESERVE_MMAP_SIZE): Define.
443         (create_archive): Reserve address space and then map file into it.
444         (open_archive): Likewise.
445         (file_data_available_p): New function.
446         (compare_from_file): New function.
447         (close_archive): Adjust to member name changes.
448         (add_locale): Before comparing locale data, check it is mapped.
449         Otherwise fall back to reading from the file.
450
451 2009-04-23  H.J. Lu  <hongjiu.lu@intel.com>
452
453         * stdio-common/psiginfo.c: Include <errno.h>.
454
455 2009-04-23  Ulrich Drepper  <drepper@redhat.com>
456
457         [BZ #9920]
458         * stdlib/random_r.c (__srandom_r): Change type of word to int32_t
459         to get consistency between 32 and 64 bit architectures.
460
461         [BZ #10052]
462         * sysdeps/unix/make-syscalls.sh: Add rule to create target
463         directory for dummy syscall rules.
464         Patch by Chris Steinbroner <hesh@pobox.com>.
465
466 2009-04-23  Aurelien Jarno  <aurelien@aurel32.net>
467
468         [BZ #10092]
469         * sysdeps/unix/sysv/linux/sys/mount.h: Define MNT_DETACH and
470         MNT_EXPIRE.
471
472 2009-04-23  Ulrich Drepper  <drepper@redhat.com>
473
474         * sysdeps/unix/sysv/linux/preadv.c: The kernel API changed.  Adjust.
475         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
476
477 2009-04-23  Jakub Jelinek  <jakub@redhat.com>
478
479         * sysdeps/posix/pwritev.c (PWRITEV): Fix up comment.  Copy
480         data from vector to temporary buffer and call PWRITEV after it
481         instead of vice versa.
482         * sysdeps/posix/preadv.c: Fix up comment.
483         * misc/preadv.c: Likewise.
484         * misc/preadv64.c: Likewise.
485         * misc/pwritev.c: Likewise.
486         * misc/pwritev64.c: Likewise.
487         * misc/sys/uio.h (preadv, pwritev, preadv64, pwritev64): Likewise.
488
489 2009-04-23  Ulrich Drepper  <drepper@redhat.com>
490
491         * shadow/sgetspent_r.c (__sgetspent_r): Recognize too small buffers.
492
493         * shadow/Makefile (tests): Add tst-shadow.
494         * shadow/tst-shadow.c: New file.
495
496         [BZ #9955]
497         * gshadow/Makefile: New file.
498         * gshadow/Versions: New file.
499         * gshadow/fgetsgent.c: New file.
500         * gshadow/fgetsgent_r.c: New file.
501         * gshadow/getsgent.c: New file.
502         * gshadow/getsgent_r.c: New file.
503         * gshadow/getsgnam.c: New file.
504         * gshadow/getsgnam_r.c: New file.
505         * gshadow/gshadow.h: New file.
506         * gshadow/putsgent.c: New file.
507         * gshadow/sgetsgent.c: New file.
508         * gshadow/sgetsgent_r.c: New file.
509         * gshadow/tst-gshadow.c: New file.
510         * include/gshadow.h: New file.
511         * Makeconfig (all-subdirs): Add gshadow.
512         * Makefile (installed-headers): Add gshadow/gshadow.h.
513         * nss/Makefile (databases): Add sgrp.
514         * nss/Versions: Add gshadow functions as private exports.
515         * nss/nsswitch.conf: Add gshadow entry.
516         * nss/sgrp-lookup.c: New file.
517         * nss/nss_files/files-parse.c: Add STRING_LIST macro.  Rewrite
518         parse_list to handle STRING_LIST and TRAILING_LIST_PARSER.
519         * nss/nss_files/files-sgrp.c: New file.
520         * sysdeps/generic/paths.h: Add _PATH_GSHADOW.
521         * sysdeps/unix/sysv/linux/paths.h: Likewise.
522
523 2009-04-22  Ulrich Drepper  <drepper@redhat.com>
524
525         * stdio-common/printf.h: Add missing const to register_printf_modifier.
526         * stdio-common/reg-modifier.c: Likewise.
527
528 2009-04-22  Andrew Stubbs  <ams@codesourcery.com>
529
530         * sysdeps/sh/sh4/setjmp.S (__sigsetjmp): Adjust JB_SIZE when there
531         is no FPU.
532
533 2009-04-20  Ulrich Drepper  <drepper@redhat.com>
534
535         [BZ #10086]
536         * sysdeps/unix/sysv/linux/sys/timex.h: Add definitions from kernel
537         headers up to 2.6.30.
538
539         * po/ca.po: Update from translation team.
540
541 2009-04-19  Ulrich Drepper  <drepper@redhat.com>
542
543         [BZ #10069]
544         * elf/dl-open.c (dl_open_worker): We cannot guarantee that we can load
545         an object that uses static TLS if the TLS modid is higher than the
546         reserve we always allocate.  At least for multi-threaded code.
547
548 2009-04-18  Ulrich Drepper  <drepper@redhat.com>
549
550         * stdlib/strfmon_l.c (__vstrfmon_l): Don't wrap when computing width.
551         Numerically stable check for valid width.
552
553         * locale/programs/locarchive.c (open_archive): Map the entire file
554         and not just the administrative data.
555         (add_locale): When we find a hash sum match compare the content
556         to be sure.
557
558         * malloc/malloc.c (malloc_info): Output address space information.
559
560 2009-04-17  Ulrich Drepper  <drepper@redhat.com>
561
562         * malloc/malloc.c (malloc_info): Also output system memory information.
563
564         * sysdeps/unix/sysv/linux/kernel-features.h: All supported
565         architectures have preadv/pwritev in 2.6.30.
566
567         * sysdeps/posix/preadv.c: Reading of zero bytes is no error.
568         * sysdeps/posix/readv.c: Likewise.
569         Reported by Markus Armbruster <armbru@redhat.com>.
570
571         * malloc/hooks.c (top_check): Force hook value into register.
572
573 2009-04-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
574
575         * elf/rtld.c (dl_main): Really call _dl_sysdep_start_cleanup after all
576         calls to _dl_relocate_object.
577
578 2009-04-16  Ulrich Drepper  <drepper@redhat.com>
579
580         [BZ #9957]
581         * malloc/malloc.c (force_reg): Define.
582         (sYSMALLOc): Load hook variable into variable
583         before test and force into register.
584         (sYSTRIm): Likewise.
585         (public_mALLOc): Force hook value into register.
586         (public_fREe): Likewise.
587         (public_rEALLOc): Likewise.
588         (public_mEMALIGn): Likewise.
589         (public_vALLOc): Likewise.
590         (public_pVALLOc): Likewise.
591         (public_cALLOc): Likewise.
592         (__posix_memalign): Likewise.
593         * malloc/arena.c (ptmalloc_init): Load hook variable into variable
594         before test and force into register.
595         * malloc/hooks.c (top_check): Likewise.
596         (public_sET_STATe): Pretty printing.
597
598         * resolv/res_send.c (send_dg): Don't just ignore the result we got
599         in case we only receive one reply in single-request mode.
600
601 2009-04-16  Jakub Jelinek  <jakub@redhat.com>
602
603         * elf/dl-open.c (_dl_open): Bump GL(dl_nns) to 1 if no libraries
604         are dlopened in statically linked program even for __LM_ID_CALLER.
605
606 2009-04-16  Ulrich Drepper  <drepper@redhat.com>
607
608         * resolv/res_send.c (send_dg): Don't switch into single-request
609         mode if we already are in it.
610
611 2009-04-15  Ulrich Drepper  <drepper@redhat.com>
612
613         * sysdeps/unix/sysv/linux/getsysstats.c (next_line): Make sure there
614         are always at least 4 bytes in the returned line.
615
616 2009-04-15  Jakub Jelinek  <jakub@redhat.com>
617
618         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Check
619         __libc_use_alloca (8192), if the stack is too small use 512 bytes
620         instead of 8K.  Stop searching in /proc/stat after hitting first
621         line not starting with cpu.
622         (next_line): Truncate too long
623         lines at buffer size * 3/4 instead of pretending there were line
624         breaks inside of large lines.
625
626 2009-04-14  Ulrich Drepper  <drepper@redhat.com>
627
628         * sysdeps/x86_64/mp_clz_tab.c: New file.
629
630 2009-03-17  Ryan S. Arnold  <rsa@us.ibm.com>
631             Ulrich Drepper  <drepper@redhat.com>
632
633         * sysdeps/unix/sysv/linux/fallocate.c: Handle old kernel headers.
634         * sysdeps/unix/sysv/linux/fallocate64.c: Likewise.
635         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: Likewise.
636
637 2009-03-25  Andrew Stubbs  <ams@codesourcery.com>
638
639         * sysdeps/sh/libc-tls.c: New file.
640
641         * sysdeps/sh/bits/setjmp.h (__jmp_buf): Give name to structure type.
642
643 2009-04-14  Roland McGrath  <roland@redhat.com>
644
645         * elf/elf.h: Add various missing ARM constants, to match binutils.
646
647 2009-04-14  Ulrich Drepper  <drepper@redhat.com>
648
649         Optimizations from GMP.
650         * sysdeps/x86_64/add_n.S: New file.
651         * sysdeps/x86_64/addmul_1.S: New file.
652         * sysdeps/x86_64/lshift.S: New file.
653         * sysdeps/x86_64/mul_1.S: New file.
654         * sysdeps/x86_64/rshift.S: New file.
655         * sysdeps/x86_64/sub_n.S: New file.
656         * sysdeps/x86_64/submul_1.S: New file.
657
658 2009-04-14  Jakub Jelinek  <jakub@redhat.com>
659
660         * sysdeps/powerpc/powerpc32/elf/start.S: Ensure .data is non-empty.
661         * sysdeps/powerpc/powerpc64/elf/start.S: Likewise.
662         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
663         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
664
665 2009-04-14  Ulrich Drepper  <drepper@redhat.com>
666
667         * sysdeps/unix/sysv/linux/kernel-features.h: SH also has
668         preadv/pwritev.
669
670 2009-04-13  Ulrich Drepper  <drepper@redhat.com>
671
672         * sysdeps/x86-64/strrchr.S: New file.
673
674 2009-04-10  Ulrich Drepper  <drepper@redhat.com>
675
676         * stdio-common/printf.h (struct printf_info): Add user element.
677         New types printf_arginfo_size_function, printf_va_arg_function.
678         Declare register_printf_specifier, register_printf_modifier,
679         register_printf_type.
680         * stdio-common/printf-parse.h (struct printf_spec): Add size element.
681         (union printf_arg): Add pa_user element.
682         Adjust __printf_arginfo_table type.
683         Add __printf_va_arg_table, __printf_modifier_table,
684         __handle_registered_modifier_mb, and __handle_registered_modifier_wc
685         declarations.
686         * stdio-common/printf-parsemb.c: Recognize registered modifiers.
687         If registered arginfo call failed try normal specifier.
688         * stdio-common/printf-prs.c: Pass additional parameter to arginfo
689         function.
690         * stdio-common/Makefile (routines): Add reg-modifier and reg-type.
691         * stdio-common/Versions: Export register_printf_modifier,
692         register_printf_type, and register_printf_specifier for GLIBC_2.10.
693         * stdio-common/reg-modifier.c: New file.
694         * stdio-common/reg-type.c: New file.
695         * stdio-common/reg-printf.c (__register_printf_specifier): New
696         function.  Mostly the old __register_printf_function function but
697         uses locking and type of third parameter changed.
698         (__register_printf_function): Implement using
699         __register_printf_specifier.
700         * stdio-common/vfprintf.c (vfprintf): Collect argument sizes in
701         calls to arginfo functions.  Allocate enough memory for user-defined
702         types.  Call new va_arg functions to get user-defined types.
703         Try installed handlers even for existing format specifiers first.
704
705 2009-04-09  Ulrich Drepper  <drepper@redhat.com>
706
707         * sysdeps/x86_64/rawmemchr.S: New file.
708
709         * stdio-common/vfprintf.c (vfprintf): Slightly more compact code.
710         Simplified code and possible copy problem fixed.
711
712         * sysdeps/unix/sysv/linux/preadv.c: Avoid prototype for static
713         function if it is not defined.  Add some necessary casts.
714         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
715
716         * sysdeps/unix/sysv/linux/kernel-features.h: SPARC and IA64 also
717         have preadv/pwritev in 2.6.30.
718
719 2009-04-08  Ulrich Drepper  <drepper@redhat.com>
720
721         * malloc/malloc.c (malloc_info): New function.
722         * malloc/malloc.h: Declare it.
723         * malloc/Versions: Export malloc_info for GLIBC_2.10.
724
725         * sysdeps/unix/sysv/linux/preadv64.c (PREAD): Use __libc_pread64
726         to avoid PLT slot.
727
728         * malloc/malloc.c (_int_realloc): Add parameter with old block
729         size.  Remove duplicated test.  Don't handle mmap'ed blocks here.
730         Adjust all callers.
731         * malloc/hooks.c (realloc_check): Adjust _int_realloc call.
732
733 2009-04-07  Ulrich Drepper  <drepper@redhat.com>
734
735         * sysdeps/x86_64/strchrnul.S: New file.
736
737         * crypt/Makefile (LDLIBS-crypt.so): Use this variable instead of
738         depending libcrypt on -lfreebl3.
739
740         * sysdeps/unix/sysv/linux/kernel-features.h: Power also has
741         preadv/pwritev in 2.6.30.
742
743         * resolv/nss_dns/dns-host.c (getanswer_r): Use strcasecmp
744         instead of __strcasecmp.
745
746         * string/stratcliff.c (do_test): Add memchr tests..
747         * wcsmbs/wcsatcliff.c (MEMCHR): Define.
748         * sysdeps/x86_64/memchr.S: Fix handling of end of buffer after
749         first read quad word.
750
751 2009-04-06  Ulrich Drepper  <drepper@redhat.com>
752
753         * string/strverscmp.c (__strverscmp): Fix last cleanups.
754         * string/tst-svc.input: Add new test case.
755         * string/tst-svc.expect: Adjust.
756         * string/Makefile: Don't ignore tst-svc error.
757
758         * sysdeps/x86_64/memchr.S: New file.
759
760         * resolv/resolv.h (RES_SNGLKUP): Define.
761         * resolv/res_init.c (res_setoptions): Recognize single-request option.
762         * resolv/res_send.c (send_dg): If we sent two requests at once and
763         only get one reply before timeout switch to mode where we send the
764         second request only after the first answer has been received.
765
766 2009-04-05  Ulrich Drepper  <drepper@redhat.com>
767
768         * sysdeps/x86_64/strlen.S: Optimize by using SSE2 instructions.
769         * sysdeps/x86_64/strchr.S: Likewise.
770
771 2009-04-03  Ulrich Drepper  <drepper@redhat.com>
772
773         * configure.in: We need to test for the compiler earlier.
774
775         * misc/Makefile (routines): Add preadv, preadv64, pwritev, pwritev64.
776         * misc/Versions: Export preadv, preadv64, pwritev, pwritev64 for
777         GLIBC_2.10.
778         * misc/sys/uio.h: Declare preadv, preadv64, pwritev, pwritev64.
779         * sysdeps/unix/sysv/linux/kernel-features.h: Add entries for preadv
780         and pwritev.
781         * misc/preadv.c: New file.
782         * misc/preadv64.c: New file.
783         * misc/pwritev.c: New file.
784         * misc/pwritev64.c: New file.
785         * sysdeps/posx/preadv.c: New file.
786         * sysdeps/posx/preadv64.c: New file.
787         * sysdeps/posx/pwritev.c: New file.
788         * sysdeps/posx/pwritev64.c: New file.
789         * sysdeps/unix/sysv/linux/preadv.c: New file.
790         * sysdeps/unix/sysv/linux/preadv64.c: New file.
791         * sysdeps/unix/sysv/linux/pwritev.c: New file.
792         * sysdeps/unix/sysv/linux/pwritev64.c: New file.
793         * sysdeps/unix/sysv/linux/wordsize-64/preadv64.c: New file.
794         * sysdeps/unix/sysv/linux/wordsize-64/pwritev64.c: New file.
795
796         * sysdeps/unix/sysv/linux/readv.c (__libc_readv): Fix calling of
797         compatibility code.
798         * sysdeps/unix/sysv/linux/writev.c (__libc_writev): Likewise.
799
800         * sysdeps/unix/sysv/linux/kernel-features.h: Define
801         __ASSUME_COMPLETE_READV_WRITEV.
802         * sysdeps/unix/sysv/linux/readv.c: No need for userlevel fallback
803         with modern kernels.
804         * sysdeps/unix/sysv/linux/writev.c: Likewise.
805
806         * sysdeps/posix/readv.c: Since read is a cancellation point we have
807         to free a possible malloced buffer in case of cancellation.
808         * sysdeps/posix/writev.c: Likewise for write.
809
810 2009-04-02  Ulrich Drepper  <drepper@redhat.com>
811
812         * sysdeps/unix/sysv/linux/bits/socket.h: Add missing protocol numbers.
813
814         * configure.in: Recognize --enable-nss-crypt.
815         * config.make.in: Add nss-crypt entry.
816         * crypt/Makefile: If nss-crypt==yes, don't build md5.c, sha256.c,
817         sha512.c.  Don't run md5test, sha256test, sha512test.  Pass -DUSE_NSS
818         and include path for NSS directory to compiler for md5-crypt,
819         sha256-crypt, sha512-crypt.  Link libcrypt.so with -lfreebl3.
820         * crypt/md5-crypt.c: If USE_NSS is defined, don't use local hash
821         function implementation, use NSS.  Introduce wrappers around the
822         hash function calls.  Little code size optimization.
823         * crypt/sha256-crypt.c: Likewise.
824         * crypt/sha512-crypt.c: Likewise.
825         * scripts/check-local-headers.sh: Ignore nss3 directory.
826
827         * configure.in: Rename pic_default to libc_cv_pic_default.
828         * config.make.in: Likewise.
829
830 2009-04-01  Roland McGrath  <roland@redhat.com>
831
832         * elf/elf.h (R_SPARC_GLOB_JMP): New macro.
833         (R_SPARC_GOTDATA_HIX22, R_SPARC_GOTDATA_LOX10): New macros.
834         (R_SPARC_GOTDATA_OP_HIX22, R_SPARC_GOTDATA_OP_LOX10): Likewise.
835         (R_SPARC_GOTDATA_OP, R_SPARC_H34): Likewise.
836         (R_SPARC_SIZE32, R_SPARC_SIZE64): Likewise.
837         (R_SPARC_GNU_VTINHERIT, R_SPARC_GNU_VTENTRY, R_SPARC_REV32): Likewise.
838         (R_SPARC_NUM): Update.
839         From Dave Miller <davem@davemloft.net>.
840
841 2009-04-01  Ulrich Drepper  <drepper@redhat.com>
842
843         * sysdeps/unix/sysv/linux/sys/eventfd.h (EFD_SEMAPHORE): Define.
844
845 2009-03-31  Ulrich Drepper  <drepper@redhat.com>
846
847         * elf/dl-open.c: Keep track of used name spaces and only iterate over
848         those which are used.
849         * elf/dl-addr.c: Likewise.
850         * elf/dl-caller.c: Likewise.
851         * elf/dl-fini.c: Likewise.
852         * elf/dl-iteratephdr.c: Likewise.
853         * elf/dl-libc.c: Likewise.
854         * elf/dl-load.c: Likewise.
855         * elf/dl-support.c: Likewise.
856         * elf/dl-sym.c: Likewise.
857         * elf/rtld.c: Likewise.
858         * sysdeps/generic/ldsodefs.h: Likewise.
859
860         * elf/dl-load.c: Remove support for systems without MAP_ANON.
861         * elf/dl-minimal.c: Likewise.
862         * elf/dl-misc.c: Likewise.
863         * elf/rtld.c: Likewise.
864         * sysdeps/generic/ldsodefs.h: Likewise.
865
866 2009-03-30  Ulrich Drepper  <drepper@redhat.com>
867
868         * elf/do-lookup.h (do_lookup_x): Minor optimization and cleanup.
869         Avoid reuse of complex expression.
870
871         * po/fr.po: Update from translation team.
872
873 2009-03-16  Ulrich Drepper  <drepper@redhat.com>
874
875         * include/dirent.h: Yet more changes to match sort function type
876         change.
877         * sysdeps/unix/sysv/linux/i386/alphasort64.c: Likewise.
878         * sysdeps/unix/sysv/linux/i386/olddirent.h: Likewise.
879         * sysdeps/unix/sysv/linux/i386/versionsort64.c: Likewise.
880
881 2009-03-16  Thomas Schwinge  <tschwinge@gnu.org>
882
883         * dirent/scandir64.c (scandir64): Adjust declaration to type change.
884
885 2009-03-16  Ulrich Drepper  <drepper@redhat.com>
886
887         * nscd/connections.c (restart): Try to preserve the process name
888         by reading the /proc/self/exe symlink and using the return name.
889         Patch by Jeff Bastian <jbastian@redhat.com>.
890
891 2009-03-15  Ulrich Drepper  <drepper@redhat.com>
892
893         [BZ #9733]
894         * elf/dl-load.c (_dl_map_object_from_fd): Only call audit hooks
895         if we are not loading a new audit library.
896         * elf/dl-reloc (_dl_relocate_object): Third parameter is now a bitmask.
897         Only use profiling trampoline for auditing if we are not relocating
898         an audit library.
899         * elf/dl-open.c (dl_open_worker): Adjust _dl_relocate_object call.
900         * elf/rtld.c: Likewise.
901         * sysdeps/generic/ldsodefs.h: Adjust _dl_relocate_object prototype.
902
903         * elf/rtld.c (dl_main): Extend help message for --audit option.
904
905         [BZ #9759]
906         * dirent/dirent.h: Adjust prototypes of scandir, scandir64, alphasort,
907         alphasort64, versionsort, and versionsort64 to POSIX 2008.
908         * dirent/alphasort.c: Adjust implementation to type change.
909         * dirent/alphasort64.c: Likewise.
910         * dirent/scandir.c: Likewise.
911         * dirent/versionsort.c: Likewise.
912         * dirent/versionsort64.c: Likewise.
913         * sysdeps/wordsize-64/alphasort.c: Add hack to hide alphasort64
914         declaration.
915         * sysdeps/wordsize-64/versionsort.c: Add hack to hide versionsort64
916         declaration.
917
918         [BZ #9880]
919         * inet/inet6_rth.c (inet6_rth_reverse): Compute number of segments
920         correctly.  Set segleft member in output as required.
921         Patch partly by Yang Hongyang <yanghy@cn.fujitsu.com>.
922         * inet/tst-inet6_rth.c (do_test): Add tests for inet6_rth_reverse.
923
924         [BZ #9881]
925         * inet/inet6_rth.c (inet6_rth_add): Add some error checking.
926         Patch mostly by Yang Hongyang <yanghy@cn.fujitsu.com>.
927         * inet/Makefile (tests): Add tst-inet6_rth.
928         * inet/tst-inet6_rth.c: New file.
929
930         [BZ #5807]
931         * string/strlen.c (strlen): Fix omission in the expression to test
932         for NUL bytes.
933
934 2009-03-14  Ulrich Drepper  <drepper@redhat.com>
935
936         * crypt/sha256test.c (main): Perform 100,000 'a' test in a second way.
937
938         * elf/dl-runtime.c (reloc_offset): Define.
939         (reloc_index): Define.
940         (_dl_fixup): Rename reloc_offset parameter to reloc_arg.
941         (_dl_fixup_profile): Likewise.  Use reloc_index instead of
942         computing index from reloc_offset.
943         (_dl_call_pltexit): Likewise.
944         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve): Just pass
945         the relocation index to _dl_fixup.
946         (_dl_runtime_profile): Likewise for _dl_fixup_profile and
947         _dl_call_pltexit.
948         * sysdeps/x86_64/dl-runtime.c: New file.
949
950         [BZ #9893]
951         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix
952         alignment of La_x86_64_regs.  Store xmm parameters.
953         Patch mostly by Jiri Olsa <olsajiri@gmail.com>.
954
955         [BZ #9913]
956         * string/strverscmp.c (__strverscmp): Fix case of different digits
957         in fractional part of string.
958         Patch by Jingyu Liu <jyliu@fortinet.com>.
959         * string/Makefile (tests): Add tst-svc2.
960         * string/tst-svc2.c: New file.
961
962         * string/strverscmp.c (__strverscmp): Optimize size of tables.
963
964         * locale/iso-639.def: Add Min Nan.
965
966 2009-03-11  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
967
968         [BZ #9948]
969         * elf/dl-sysdep.c (_dl_show_auxv): Add support for AT_BASE_PLATFORM.
970
971 2009-03-14  Ulrich Drepper  <drepper@redhat.com>
972
973         * elf/dl-sysdep.c (auxvars): Compress data structure.
974
975         * sysdeps/i386/dl-machine.h (elf_machine_rel): Implement
976         STT_GNU_IFUNC handling.
977         (elf_machine_rela): Likewise.
978
979 2009-03-13  Ulrich Drepper  <drepper@redhat.com>
980
981         * config.h.in (USE_MULTIARCH): Define.
982         * configure.in: Handle --enable-multi-arch.
983         * elf/dl-runtime.c (_dl_fixup): Handle STT_GNU_IFUNC.
984         (_dl_fixup_profile): Likewise.
985         * elf/do-lookup.c (dl_lookup_x): Likewise.
986         * sysdeps/x86_64/dl-machine.h: Handle STT_GNU_IFUNC.
987         * elf/elf.h (STT_GNU_IFUNC): Define.
988         * include/libc-symbols.h (libc_ifunc): Define.
989         * sysdeps/x86_64/cacheinfo.c: If USE_MULTIARCH is defined, use the
990         framework in init-arch.h to get CPUID values.
991         * sysdeps/x86_64/multiarch/Makefile: New file.
992         * sysdeps/x86_64/multiarch/init-arch.c: New file.
993         * sysdeps/x86_64/multiarch/init-arch.h: New file.
994         * sysdeps/x86_64/multiarch/sched_cpucount.c: New file.
995
996         * config.make.in (experimental-malloc): Define.
997         * configure.in: Handle --enable-experimental-malloc.
998         * malloc/Makefile: Handle experimental-malloc flag.
999         * malloc/malloc.c: Implement PER_THREAD and ATOMIC_FASTBINS features.
1000         * malloc/arena.c: Likewise.
1001         * malloc/hooks.c: Likewise.
1002         * malloc/malloc.h: Define M_ARENA_TEST and M_ARENA_MAX.
1003
1004 2009-03-11  Ulrich Drepper  <drepper@redhat.com>
1005
1006         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Add branch
1007         prediction.  A few size optimizations.
1008
1009 2009-03-10  Ulrich Drepper  <drepper@redhat.com>
1010
1011         * time/tzset.c: Optimize a bit for size.
1012
1013 2009-03-10  Jakub Jelinek  <jakub@redhat.com>
1014
1015         * include/stdio.h (fmemopen): Add libc_hidden_proto.
1016         * libio/fmemopen.c (fmemopen): Add libc_hidden_def.
1017
1018         * elf/sprof.c: Avoid warning about multi-line comment.
1019
1020 2009-03-10  Ulrich Drepper  <drepper@redhat.com>
1021
1022         * time/tzset.c (__tzset_parse_tz): Use correct string when parsing
1023         DST name.
1024         * time/tst-posixtz.c: Add tests for quoted timezone names.
1025
1026 2009-03-10  Jakub Jelinek  <jakub@redhat.com>
1027
1028         * posix/unistd.h (_POSIX_VERSION, _POSIX2_VERSION, _POSIX2_C_BIND,
1029         _POSIX2_C_DEV, _POSIX2_SW_DEV, _POSIX2_LOCALEDEF): Define to
1030         200809L instead of 200112L.
1031         (_XOPEN_VERSION): For __USE_XOPEN2K8 define to 700.
1032         * posix/tst-sysconf.c (STDVER): Define to 200809L instead of 200112L.
1033
1034         * stdlib/quick_exit.c (quick_exit): Pass &__quick_exit_funcs
1035         instead of __quick_exit_funcs to __run_exit_handlers.
1036         * stdlib/at_quick_exit.c (at_quick_exit): Add attribute_hidden.
1037         * stdlib/exit.h (__run_exit_handlers): Add noreturn attribute.
1038         (__cxa_at_quick_exit): Remove attribute_hidden.
1039         * stdlib/exit.c (exit): Pass &__exit_funcs instead of __exit_funcs
1040         to __run_exit_handlers.
1041         * stdlib/cxa_at_quick_exit.c (__cxa_at_quick_exit): Remove
1042         attribute_hidden.
1043
1044 2009-03-10  Ulrich Drepper  <drepper@redhat.com>
1045
1046         * po/id.po: Update from translation team.
1047
1048 2009-02-18  Jakub Jelinek  <jakub@redhat.com>
1049
1050         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S: Use
1051         .machine push; .machine "power6" and .machine pop around mtfsf
1052         insns outside of _ARCH_PWR6 define.
1053         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S: Likewise.
1054         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S:
1055         Likewise.
1056         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S:
1057         Likewise.
1058         * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (_SET_DI_FPSCR): Likewise.
1059         * sysdeps/powerpc/fpu/fenv_libc.h (fesetenv_register,
1060         relax_fenv_state): Likewise.
1061
1062 2009-03-08  Ulrich Drepper  <drepper@redhat.com>
1063
1064         * stdlib/Makefile (routines): Add quick_exit, at_quick_exit, and
1065         cxa_at_quick_exit.
1066         (static-only-routines): Add at_quick_exit.
1067         * stdlib/Versions: Export quick_exit and __cxa_at_quick_exit for
1068         GLIBC_2.10.
1069         * stdlib/quick_exit.c: New file.
1070         * stdlib/at_quick_exit.c: New file.
1071         * stdlib/cxa_at_quick_exit.c: New file.
1072         * stdlib/cxa_atexit.c (__cxa_atexit): Move body to new function.  Call
1073         it appropriately.
1074         (__internal_atexit): New function.
1075         (__new_exitfn): Now takes parameter to point to the list to use.
1076         * stdlib/cxa_finalize.c: Remove quick_exit handlers, don't call them.
1077         * stdlib/exit.c (__run_exit_handlers): New function.  Split from...
1078         (exit): ...here.  Just call __run_exit_handlers appropriately.
1079         * stdlib/exit.h: Declare __quick_exit_funcs, __run_exit_handlers,
1080         __internal_atexit, __cxa_at_quick_exit.  Adjust __new_exitfn.
1081         * stdlib/on_exit.c: Adjust call to __new_exitfn.
1082         * stdlib/stdlib.h: Declare at_quick_exit and quick_exit.
1083
1084         * po/id.po: Update from translation team.
1085
1086 2009-03-07  Ulrich Drepper  <drepper@redhat.com>
1087
1088         * po/ru.po: Update from translation team.
1089
1090 2009-03-04  Ulrich Drepper  <drepper@redhat.com>
1091
1092         * po/nl.po: Update from translation team.
1093
1094 2009-03-03  Ulrich Drepper  <drepper@redhat.com>
1095
1096         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Declare fallocate{,64}.
1097         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
1098         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
1099         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
1100         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
1101         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
1102         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
1103
1104         * po/pl.po: Update from translation team.
1105
1106 2009-03-02  Ulrich Drepper  <drepper@redhat.com>
1107
1108         [BZ #7083]
1109         * sysdeps/unix/sysv/linux/fallocate.c: New file.
1110         * sysdeps/unix/sysv/linux/fallocate64.c: New file.
1111         * sysdeps/unix/sysv/linux/wordsize-64/fallocate64.c: New file.
1112         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: New file.
1113         * sysdeps/unix/sysv/linux/i386/fallocate64.c: New file.
1114         * sysdeps/unix/sysv/linux/i386/fallocate.c: New file.
1115         * sysdeps/unix/sysv/linux/Versions: Export fallocate and fallocate64
1116         for GLIBC_2.10.
1117         * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
1118         Add fallocate and fallocate64.
1119
1120         * io/fcntl.h: Pretty printing.
1121
1122 2009-03-02  Richard Guenther  <rguenther@suse.de>
1123
1124         * misc/sys/cdefs.h (__extern_always_inline): Add __artificial__
1125         attribute also for non-C99 inline semantics variant.
1126
1127 2009-02-12  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
1128
1129         * sysdeps/powerpc/powerpc32/power7/fpu/Implies: New file.
1130         * sysdeps/powerpc/powerpc32/power7/Implies: Likewise.
1131         * sysdeps/powerpc/powerpc64/power7/fpu/Implies: Likewise.
1132         * sysdeps/powerpc/powerpc64/power7/Implies: Likewise.
1133         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/fpu/Implies:
1134         Likewise.
1135         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/fpu/Implies:
1136         Likewise.
1137
1138 2009-03-02  Ulrich Drepper  <drepper@redhat.com>
1139
1140         * po/cs.po: Update from translation team.
1141
1142 2009-02-28  Ulrich Drepper  <drepper@redhat.com>
1143
1144         * po/bg.po: Update from translation team.
1145         * po/sv.po: Likewise.
1146         * po/fi.po: Likewise.
1147         * po/vi.po: Likewise.
1148
1149 2009-02-27  Roland McGrath  <roland@redhat.com>
1150
1151         * Makeconfig (%.v.i): Depend on Makeconfig.
1152         Exclude % lines from initial #-comment removal.
1153
1154 2009-02-27  Ulrich Drepper  <drepper@redhat.com>
1155
1156         * po/ko.po: Update from translation team.
1157
1158 2009-02-26  Roland McGrath  <roland@redhat.com>
1159
1160         * shadow/lckpwdf.c (__lckpwdf): Move FLAGS inside block using it,
1161         avoids unused warning.
1162
1163 2009-02-26  Andrew Stubbs  <ams@codesourcery.com>
1164             SUGIOKA Toshinobu  <sugioka@itonet.co.jp>
1165
1166         * sysdeps/unix/sysv/linux/sh/sys/procfs.h: Don't include signal.h,
1167         sys/ucontext.h and asm/elf.h.  Include sys/user.h.
1168         * sysdeps/unix/sysv/linux/sh/sys/user.h: Don't include features.h
1169         and asm/user.h.  Include asm/ptrace.h.
1170         (PTRACE_GETREGS, PTRACE_SETREGS, PTRACE_GETFPREGS,
1171         PTRACE_SETFPREGS, PTRACE_GETFDPIC, PTRACE_GETFDPIC_EXEC,
1172         PTRACE_GETFDPIC_INTERP, PTRACE_GETDSPREGS, PTRACE_SETDSPREGS):
1173         Undefine.
1174         (start_thread): Don't undefine.
1175         (elf_greg_t, ELF_NGREG, elf_fpregset_t, user_fpu_struct, user):
1176         Define.
1177
1178 2009-02-26  Ulrich Drepper  <drepper@redhat.com>
1179
1180         * wctype/wctype.h: The *_l functions are in POSIX 2008.
1181         * wcsmbs/wchar.h: mbsnrtowcs, open_wmemstream, wcpcpy, wcpncpy,
1182         wcscasecmp, wcsdup, wcsncasecmp, wcsnlen, wcsnrtombs,
1183         wcscasecmp_l, wcsncasecmp_l, wcscoll_l, and wcsxfrm_l.
1184         * sysdeps/mach/hurd/bits/posix_opt.h: Reset value of macros from
1185         200112L to 200809L.
1186         * sysdeps/unix/sysv/linux/bits/posix_opt.h: Likewise.
1187         * posix/getconf.c (vars): Add _SC_THREAD_ROBUST_PRIO_INHERIT and
1188         _SC_THREAD_ROBUST_PRIO_PROTECT entries.
1189         * bits/confname.h: Add _SC_THREAD_ROBUST_PRIO_INHERIT and
1190         _SC_THREAD_ROBUST_PRIO_PROTECT.
1191         * posix/unistd.h: fexecve is in POSIX 2008.
1192         * time/time.h: strftime_l is in POSIX 2008.
1193         * io/sys/stat.h: futimens is in POSIX 2008.
1194         * string/strings.h: strcasecmp_l and strncasecmp_l are in POSIX 2008.
1195         * string/string.h: stpcpy, stpncpy, strndup, strnlen, strsignal,
1196         strcoll_l, strerror_l, and strxfrm_l are in POSIX 2008.
1197         * stdlib/stdlib.h: mkdtemp is in POSIX 2008.
1198         * libio/stdio.h: dprintf, fmemopen, getdelim, getline,
1199         open_memstream, and vdprintf are in POSIX 2008.
1200
1201 2009-02-25  Ulrich Drepper  <drepper@redhat.com>
1202
1203         * include/features.h: Define macros for XPG7/POSIX 2008.
1204         * ctype/ctype.h: The *_l functions are in POSIX 2008.
1205         * dirent/dirent.h: alphasort, dirfd, scandir, and fdopendir are in
1206         POSIX 2008.
1207         * locale/langinfo.h: nl_langinfo_l is in POSIX 2008.
1208         * locale/xlocale.h: Define locale_t type.
1209         * locale/locale.h: duplocale, freelocale, newlocale, uselocale are
1210         in POSIX 2008.  Don't define locale_t here.
1211         * stdlib/monetary.h: strfmon_l is in POSIX 2008.
1212         * sysdeps/unix/sysv/linux/bits/stat.h: Protect UTIME_NOW and
1213         UTIME_OMIT only with __USE_ATFILE.
1214         * signal/signal.h: Declare psignal and psiginfo for POSIX 2008.
1215         * stdio-common/psiginfo.c: New file.
1216         * stdio-common/psiginfo-data.h: New file.
1217         * stdio-common/psiginfo-define.h: New file.
1218         * stdio-common/Makefile (routines): Add psiginfo.
1219         * stdio-common/Versions: Export psiginfo for GLIBC_2.10.
1220         * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
1221         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Likewise.
1222         * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
1223         * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
1224         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
1225         * io/sys/stat.h: Move mknodat definition into same conditional as
1226         mknod.
1227         * time/sys/time.h: futimesat is not among the functions accepted
1228         into the POSIX standard.
1229
1230         * include/features.h: If no feature selection given and we select
1231         by default a POSIX mode, also define __USE_POSIX_IMPLICITLY.
1232         * posix/Versions: Export __posix_getopt.
1233         * posix/getopt.c (_getopt_initialize): Take additional parameter.
1234         Use it to alternatively initialize __posixly_correct.
1235         (_getopt_internal_r): Take addition parameter.  Pass on to
1236         _getopt_initialize.
1237         (_getopt_internal): Take addition parameter.  Pass on to
1238         _getopt_internal_r.
1239         (getopt): Pass additional zero to _getopt_internal.
1240         (__posix_getopt): New function.
1241         * posix/getopt.h: Add redirection for getopt.
1242         * posix/getopt1.c (getopt_long): Pass additional zero to
1243         _getopt_internal.
1244         (getopt_long_only): Likewise.
1245         (_getopt_long_r): Pass additional zero to _getopt_internal_r.
1246         (_getopt_long_only_r): Likewise.
1247         * posix/getopt_int.h: Adjust declarations of _getopt_internal and
1248         _getopt_internal_r.
1249
1250 2009-02-24  Ulrich Drepper  <drepper@redhat.com>
1251
1252         * bits/confname.h: Define _SC_TRACE_EVENT_NAME_MAX, _SC_TRACE_NAME_MAX,
1253         _SC_TRACE_SYS_MAX, _SC_TRACE_USER_EVENT_MAX, _SC_XOPEN_STREAMS.
1254         * sysdeps/posix/sysconf.c (__sysconf): Handle
1255         _SC_TRACE_EVENT_NAME_MAX, _SC_TRACE_NAME_MAX, _SC_TRACE_SYS_MAX,
1256         _SC_TRACE_USER_EVENT_MAX, _SC_XOPEN_STREAMS.
1257
1258 2009-02-24  Roland McGrath  <roland@redhat.com>
1259
1260         [BZ #9895]
1261         * README.template: Reworded not to use substituted version number.
1262         Renamed to ...
1263         * README: ... here (no longer generated).
1264         * Makefile (README): Target removed.
1265
1266 2009-02-24  Ulrich Drepper  <drepper@redhat.com>
1267
1268         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf):
1269         /proc/sys/kernel/rtsig_max doesn't exist anymore, use getrlimit
1270         instead.
1271
1272         * io/sys/stat.h: The lstat functions have been mandatory since 2001.
1273
1274         * time/tzset.c (tzset_internal): Correct parsing of TZ envvar.
1275
1276 2009-02-22  Ulrich Drepper  <drepper@redhat.com>
1277
1278         * po/bg.po: Update from translation team.
1279
1280 2009-02-16  Jakub Jelinek  <jakub@redhat.com>
1281
1282         * stdlib/monetary.h: Uglify function parameter names.
1283         * sunrpc/rpc/pmap_clnt.h: Likewise.
1284         * sunrpc/rpc/svc.h: Likewise.
1285         * sunrpc/rpc/xdr.h: Likewise.
1286         * sunrpc/rpc/clnt.h: Likewise.
1287         * resolv/netdb.h: Likewise.
1288         * resolv/arpa/nameser.h: Likewise.
1289         * resolv/resolv.h: Likewise.
1290         * argp/argp.h: Likewise.
1291         * locale/langinfo.h: Likewise.
1292         * io/sys/stat.h: Likewise.
1293         * posix/spawn.h: Likewise.
1294         * nis/rpcsvc/nislib.h: Likewise.
1295         * malloc/obstack.h: Likewise.
1296         * sysdeps/ia64/bits/link.h: Likewise.
1297         * sysdeps/i386/bits/link.h: Likewise.
1298         * sysdeps/s390/bits/link.h: Likewise.
1299         * sysdeps/powerpc/bits/link.h: Likewise.
1300         * sysdeps/x86_64/bits/link.h: Likewise.
1301         * sysdeps/sparc/bits/link.h: Likewise.
1302         * sysdeps/sh/bits/link.h: Likewise.
1303         * sysdeps/unix/sysv/linux/i386/sys/io.h: Likewise.
1304         * sysdeps/unix/sysv/linux/x86_64/sys/io.h: Likewise.
1305         * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: Likewise.
1306         * sysdeps/unix/sysv/linux/sys/eventfd.h: Likewise.
1307
1308 2008-12-01  Fredrik Unger  <fred@tree.se>
1309
1310         * soft-fp/double.h [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_SEMIRAW_D,
1311         FP_UNPACK_SEMIRAW_DP): Use _FP_UNPACK_RAW_1 instead of
1312         _FP_UNPACK_RAW_2, fix up first argument.
1313
1314 2009-02-15  Ulrich Drepper  <drepper@redhat.com>
1315
1316         * sysdeps/unix/sysv/linux/getsysstats.c (next_line): New function.
1317         (GET_NPROCS_PARSER): Change parameters and use next_line.
1318         (__get_nprocs): Rewrite to not use stdio routines.
1319         * sysdeps/unix/sysv/linux/sparc/getsysstats.c (GET_NPROCS_PARSER):
1320         Change parameters and use next_line.
1321
1322 2009-02-13  Ulrich Drepper  <drepper@redhat.com>
1323
1324         [BZ #5381]
1325         * nscd/nscd.h: Remove definitions and declarations for mem_in_flight.
1326         Change mempool_alloc prototype.
1327         * nscd/mem.c (gc): Don't handle mem_in_flight.
1328         (mempool_alloc): Third parameter now only indicates whether this is the
1329         first call (to allocate data) or not.  If it is, get db rdlock.
1330         Release it on error.  Don't handle mem_in_flight.
1331         * nscd/aicache.c (addhstaiX): Mark he parameter as const.
1332         Adjust third parameter of mempool_alloc calls.
1333         Nothing to do here in case mempool_alloc fails.
1334         Avoid local variable shadowing parameter.  No need to get db rdlock
1335         before calling cache_add.
1336         * nscd/cache.c (cache_add): Adjust call to mempool_alloc.  There is
1337         no mem_in_flight array anymore.
1338         * nscd/connections.c: Remove definition and handling of mem_in_flight.
1339         * nscd/grpcache.c (cache_addgr): Adjust third parameter of
1340         mempool_alloc calls.  Mark he parameter as const.  Nothing to do here
1341         in case mempool_alloc fails. No need to get db rdlock before calling
1342         cache_add.
1343         * nscd/hstcache.c (cache_addhst): Likewise.
1344         * nscd/initgrcache.c (addinitgroupsX): Likewise.
1345         * nscd/servicescache.c (cache_addserv): Likewise.
1346         * nscd/pwdcache.c (cache_addpw): Likewise.  Remove some debugging code.
1347
1348 2009-02-11  Ulrich Drepper  <drepper@redhat.com>
1349
1350         * po/lt.po: Update from translation team.
1351
1352 2009-02-10  Ulrich Drepper  <drepper@redhat.com>
1353
1354         * elf/dl-load.c (open_verify): In case VALID_ELF_HEADER is
1355         defined, allow additional data to be added using the optional
1356         MORE_ELF_HEADER_DATA macro.
1357         * sysdeps/unix/sysv/linux/ldsodefs.h (VALID_ELF_HEADER,
1358         VALID_ELF_OSABI, VALID_ELF_ABIVERSION, MORE_ELF_HEADER_DATA): Define.
1359
1360 2009-02-08  Ulrich Drepper  <drepper@redhat.com>
1361
1362         * include/atomic.h: Define catomic_and if not already defined.
1363         * sysdeps/x86_64/bits/atomic.h: Define catomic_and.
1364         * sysdeps/i386/i486/bits/atomic.h: Likewise.
1365
1366 2009-02-07  Ulrich Drepper  <drepper@redhat.com>
1367
1368         * malloc/malloc.c (_int_free): Second argument is now mchunkptr.
1369         Change all callers.
1370         (_int_realloc): Likewise.  Third argument is now padded size
1371         All _int_* functions are now static.
1372
1373         * malloc/hooks.c: Change all callers to _int_free and _int_realloc.
1374         * malloc/arena.c: Likewise.
1375         * include/malloc.h: Remove now unnecessary declarations of the _int_*
1376         functions.
1377
1378         * sunrpc/rpc_common.c: We cannot move _null_auth into .rodata that
1379         easily.
1380
1381         * malloc/malloc.c: Add branch prediction for use of the hooks.
1382
1383         * grp/compat-initgroups.c [NOT_IN_libc] (__libc_use_alloca): Define.
1384
1385 2009-02-06  Ulrich Drepper  <drepper@redhat.com>
1386
1387         [BZ #7095]
1388         * bits/confname.h: Add SUSv7 macros for getconf environments.
1389         * bits/environments.h: Likewise.
1390         * sysdeps/unix/sysv/linux/i386/bits/environments.h: Likewise.
1391         * sysdeps/unix/sysv/linux/powerpc/bits/environments.h: Likewise.
1392         * sysdeps/unix/sysv/linux/s390/bits/environments.h: Likewise.
1393         * sysdeps/unix/sysv/linux/sparc/bits/environments.h: Likewise.
1394         * sysdeps/unix/sysv/linux/x86_64/bits/environments.h: Likewise.
1395         * posix/confstr.c: Handle SUSv5 and SUSv7 environments.
1396         * posix/getconf.c: Likewise.
1397         * posix/sysconf.c: Likewise.
1398         * sysdeps/posix/sysconf.c: Likewise.
1399         * posix/Makefile (getconf.speclist): Also collect SUSv5 and SUSv7
1400         environments.
1401
1402 2009-01-16  Petr Baudis  <pasky@suse.cz>
1403
1404         [BZ #9753]
1405         * resolv/res_libc.c (__res_maybe_init): Call __res_vinit()
1406         even if we currently have zero nscount.
1407
1408 2009-02-06  Ulrich Drepper  <drepper@redhat.com>
1409
1410         [BZ #9781]
1411         * grp/compat-initgroups.c (compat_call): Switch to use malloc when
1412         the input line is too long.
1413
1414         * po/Makefile (libc.pot): Add f_print as function taking c-format
1415         parameter.
1416
1417         * debug/xtrace.sh: Unify translatable messages.
1418         * elf/ldd.bash.in: Likewise.
1419         * elf/sprof.c: Likewise.
1420         * locale/programs/locale.c: Likewise.
1421         * malloc/memusage.sh: Likewise.
1422         * nss/getent.c: Likewise.
1423
1424 2009-02-06  Joseph Myers  <joseph@codesourcery.com>
1425
1426         * debug/pcprofiledump.c (print_version,
1427         argp_program_version_hook): New function.
1428         * elf/ldconfig.c (more_help): New function.
1429         (argp): Use it.
1430         * elf/sln.c (usage): New function.
1431         (main): Support --help and --version.
1432         * malloc/memusagestat.c (print_version): New function.
1433         (argp_program_version_hook): New variable.
1434         * nscd/nscd.c (more_help): New function.
1435         (argp): Use it.
1436         * posix/getconf.c (main): Send --version output to stdout.
1437         Support --help.
1438         * sunrpc/rpc_main.c (usage, options_usage): Take STREAM and STATUS
1439         arguments.  All callers changed.
1440         (print_version): New function.
1441         (parseargs): Support --help and --version.
1442         * sunrpc/rpcinfo.c (usage): Take STREAM argument.  All callers
1443         changed.
1444         (print_version): New function.
1445         (main): Use getopt_long.  Support --help and --version.
1446         * sysdeps/unix/sysv/linux/lddlibc4.c (main): Support --help and
1447         --version.
1448
1449 2009-02-06  Ulrich Drepper  <drepper@redhat.com>
1450
1451         * malloc/memusage.c (DEFAULT_BUFFER_SIZE): Change to 32768.
1452         (update_data): Fix handling of wrapping back
1453         to the beginning of the buffer.
1454
1455         [BZ #9823]
1456         * stdio-common/psignal.c (psignal): Fix test for empty string.
1457
1458 2009-02-05  Ulrich Drepper  <drepper@redhat.com>
1459
1460         * include/rpc/auth.h: Use libc_hidden_proto for _null_auth.
1461         * sunrpc/rpc_common.c: Add libc_hidden_def for _null_auth.  Also
1462         move _null_auth to .rodata.
1463
1464         * time/tzset.c (__tzset_parse_tz): DST offset must also allow hour
1465         value of 24.
1466
1467         * intl/dcigettext.c (DCIGETTEXT): Avoid some code duplication.
1468
1469         * sysdeps/unix/opendir.c (__alloc_dir): We have a lot more memory
1470         today than when the original code was written.  Use larger
1471         buffers.  This also makes it unnecessary to have stat information,
1472         if this causes extra efforts.
1473         (__opendir): In case O_DIRECTORY works, don't call fstat just for
1474         __alloc_dir.
1475
1476 2009-02-03  Andrew Stubbs  <ams@codesourcery.com>
1477
1478         * sysdeps/sh/sh4/dl-trampoline.S: Only set HAVE_FPU if __SH_FPU_ANY__
1479         is set.
1480         * sysdeps/sh/sh4/setjmp.S: Support SH4-NOFPU.
1481         * sysdeps/sh/sh4/__longjmp.S: Likewise.
1482         * sysdeps/unix/sysv/linux/sh/sh4/getcontext.S: Likewise.
1483         * sysdeps/unix/sysv/linux/sh/sh4/setcontext.S: Likewise.
1484         * sysdeps/unix/sysv/linux/sh/sh4/swapcontext.S: Likewise.
1485         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Likewise.
1486
1487 2009-02-04  Ulrich Drepper  <drepper@redhat.com>
1488
1489         * po/ru.po: Update from translation team.
1490
1491 2008-11-17  Nathan Sidwell  <nathan@codesourcery.com>
1492
1493         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (struct sigevent):
1494         Add _tid slot to maintain consistency with kernel.
1495
1496 2009-02-04  Ulrich Drepper  <drepper@redhat.com>
1497
1498         * libio/wfileops.c (_IO_wfile_underflow): Fix handling of
1499         incomplete characters at end of input buffer.
1500         * libio/Makefile (tests): Add tst-fgetwc.
1501         * libio/tst-fgetwc.c: New file.
1502         * libio/tst-fgetwc.input: New file.
1503
1504 2009-02-02  Andrew Stubbs  <ams@codesourcery.com>
1505
1506         * sysdeps/unix/sysv/linux/sh/Makefile (libm.so-no-z-defs): Define.
1507
1508 2009-02-02  Ulrich Drepper  <drepper@redhat.com>
1509
1510         [BZ #9793]
1511         * iconv/gconv_trans.c (__gconv_transliterate): Don't change
1512         *OUTBUFSTART unless the whole output fit into the buffer.
1513         * iconv/Makefile (tests): Add tst-iconv4.
1514         * iconv/tst-iconv4.c: New file.
1515
1516 2009-02-01  Ulrich Drepper  <drepper@redhat.com>
1517
1518         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Add new descriptors.
1519         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
1520
1521 2009-01-29  Andrew Stubbs  <ams@codesourcery.com>
1522
1523         * elf/Makefile (ld.so): Adjust the sed script to insert _begin in to
1524         newer linker scripts.
1525
1526 2009-01-30  Ulrich Drepper  <drepper@redhat.com>
1527
1528         [BZ #7040]
1529         * sysdeps/unix/sysv/linux/sys/inotify.h: Second parameter of
1530         inotify_rm_watch should have type int.
1531
1532 2009-01-06  Steven Munroe  <sjmunroe@us.ibm.com>
1533
1534         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp):
1535         Make aligned_restore_vmx a local symbol.
1536         * sysdeps/powerpc/powerpc64/__longjmp-common.S (__longjmp):
1537         Likewise.
1538
1539 2009-01-30  Andreas Jaeger  <aj@suse.de>
1540
1541         * sysdeps/unix/sysv/linux/bits/shm.h (SHM_EXEC): Define.
1542         * sysdeps/unix/sysv/linux/ia64/bits/shm.h (SHM_EXEC): Define.
1543         * sysdeps/unix/sysv/linux/powerpc/bits/shm.h (SHM_EXEC): Define.
1544         * sysdeps/unix/sysv/linux/s390/bits/shm.h (SHM_EXEC): Define.
1545         * sysdeps/unix/sysv/linux/sh/bits/shm.h (SHM_EXEC): Define.
1546         * sysdeps/unix/sysv/linux/sparc/bits/shm.h (SHM_EXEC): Define.
1547         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h (SHM_EXEC): Define.
1548
1549 2009-01-11  Ryan S. Arnold  <rsa@us.ibm.com>
1550
1551         [BZ #9726]
1552         * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (_SET_DI_FPSCR,
1553         _SET_SI_FPSCR): Clobber fp0 to prevent erroneous test-case passes.
1554
1555 2009-01-08  Ryan S. Arnold  <rsa@us.ibm.com>
1556
1557         [BZ #9726]
1558         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S
1559         (__CONTEXT_FUNC_NAME): Fix mtfsf to use fp31 instead of fp0.
1560         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S
1561         (__CONTEXT_FUNC_NAME): Fix mtfsf to use fp31 instead of fp0.
1562
1563 2009-01-11  Thomas Schwinge  <tschwinge@gnu.org>
1564
1565         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Use
1566         memcpy instead of memcmp.
1567         (_dl_setup_pointer_guard): Likewise.
1568
1569 2009-01-30  Ulrich Drepper  <drepper@redhat.com>
1570
1571         * malloc/malloc.c (sYSMALLOc): Don't use assert when detecting
1572         manipulated brk, use malloc_printerr.
1573         * misc/sbrk.c (__sbrk): Better error handling for nonsense
1574         requests.
1575
1576 2009-01-30  Jakub Jelinek  <jakub@redhat.com>
1577
1578         * string/string.h (memchr, strchr, strrchr, strpbrk, strstr, index,
1579         rindex): For C++ add inlines so that they can be recognized as
1580         builtins.
1581         * string/strings.h: Define correct C++ prototypes for gcc 4.4.
1582
1583 2009-01-29  Ulrich Drepper  <drepper@redhat.com>
1584             Jakub Jelinek  <jakub@redhat.com>
1585
1586         * string/string.h: Define correct C++ prototypes for gcc 4.4.
1587         * wcsmbs/wchar.h: Likewise.
1588
1589 2009-01-29  Ulrich Drepper  <drepper@redhat.com>
1590
1591         * sysdeps/i386/stackinfo.h (stackinfo_get_sp): Define.
1592         (stackinfo_sub_sp): Define.
1593
1594 2009-01-28  Ulrich Drepper  <drepper@redhat.com>
1595
1596         [BZ #9750]
1597         * nscd/mem.c (gc): Use alloca_count to get the real stack usage.
1598         * include/alloca.h (alloca_account): Define.
1599         * sysdeps/x86_64/stackinfo.h (stackinfo_get_sp): Define.
1600         (stackinfo_sub_sp): Define.
1601
1602         * nscd/connections.c (nscd_init): If database file access fails
1603         check whether this is due to permission problems and bail in that
1604         case.
1605
1606         [BZ #9741]
1607         * nscd/mem.c (gc): Fix assignment of he_data in case malloc is used.
1608         Reported by Jun'ichi Nomura <j-nomura@ce.jp.nec.com>.
1609
1610 2009-01-14  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
1611
1612         * sysdeps/unix/sysv/linux/sh/sysdep.h (INTERNAL_SYSCALL):
1613         Add "t" to clobber list.
1614         (INTERNAL_SYSCALL_NCS): Likewise.
1615
1616 2009-01-28  Ulrich Drepper  <drepper@redhat.com>
1617
1618         * nss/getent.c (print_networks): Don't print comma between aliases.
1619
1620 2009-01-23  Ulrich Drepper  <drepper@redhat.com>
1621
1622         * sysdeps/unix/sysv/linux/tst-clone.c (do_test): Avoid warning.
1623
1624         * misc/hsearch_r.c (hcreate_r): We need at least three elements in
1625         the hash table.
1626         * misc/Makefile (tests): Add bug-hsearch1.
1627         * misc/bug-hsearch1.c: New file.
1628
1629 2009-01-22  Roland McGrath  <roland@redhat.com>
1630
1631         * Makeconfig (%.v.i): Strip trailing # comments,
1632         not only whole-line comments.
1633
1634 2009-01-10  Ulrich Drepper  <drepper@redhat.com>
1635
1636         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Take
1637         one parameter.  If non-NULL use it to initialize return value.
1638         (_dl_setup_pointer_guard): New function.
1639         * sysdeps/unix/sysv/linux/dl-osinfo.h: Likewise.
1640         * sysdeps/generic/ldsodefs.h: Declare _dl_random.
1641         * elf/rtld.c (security_init): Pass _dl_random to
1642         _dl_setup_stack_chk_guard.  Call _dl_setup_pointer_guard to initialize
1643         pointer_chk_guard.
1644         * elf/dl-sysdep.c (_dl_random): New variable.
1645         (_dl_sysdep_start): Handle AT_RANDOM.
1646         (_dl_show_auxv): Likewise.
1647         * elf/dl-support.c (_dl_random): New variable.
1648         (_dl_aux_init): Handle AT_RANDOM.
1649         * csu/libc-start.c [!SHARED] (libc_start_main): Pass _dl_random
1650         to _dl_setup_stack_chk_guard.
1651
1652         * elf/elf.h (AT_RANDOM): Define AT_BASE_PLATFORM and AT_RANDOM.
1653
1654 2009-01-10  Roland McGrath  <roland@redhat.com>
1655
1656         * nscd/nscd.c (parse_opt): Use argp_error for bad -i argument.
1657
1658 2009-01-08  Ulrich Drepper  <drepper@redhat.com>
1659
1660         * sysdeps/i386/fpu/libm-test-ulps: Adjust expm1 errors.
1661
1662         [BZ #9706]
1663         * nss/nss_files/files-parse.c (strtou32): New function.
1664         (INT_FIELD): Use strotu32 instead of strtoul to unify behavior
1665         across 32-bit and 64-bit platforms.
1666         (INT_FIELD_MAYBE_NULL): Likewise.
1667
1668 2009-01-08  Jakub Jelinek  <jakub@redhat.com>
1669
1670         [BZ #9720]
1671         * sysdeps/unix/sysv/linux/bits/resource.h (enum __rusage_who): Avoid
1672         comma after RUSAGE_CHILDREN if not -D_GNU_SOURCE.
1673         * sysdeps/unix/sysv/linux/sparc/bits/resource.h (enum __rusage_who):
1674         Likewise.
1675
1676 2009-01-05  Paolo Bonzini  <bonzini@gnu.org>
1677
1678         [BZ #697]
1679         * posix/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
1680         being NULL also if there are no backreferences.
1681         * posix/rxspencer/tests: Add testcases.
1682
1683 2009-01-04  Paolo Bonzini  <bonzini@gnu.org>
1684
1685         [BZ #9697]
1686         * posix/bug-regex17.c: Add testcases.
1687         * posix/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
1688         handling.
1689
1690 2009-01-05  Martin Schwidefsky  <schwidefsky@de.ibm.com>
1691
1692         * sysdeps/unix/sysv/linux/s390/bits/libc-vdso.h: New file.
1693         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: New file.
1694         * sysdeps/unix/sysv/linux/s390/init-first.c: New file.
1695         * sysdeps/unix/sysv/linux/s390/Makefile (sysdep_routines): Add dl-vdso
1696         for elf subdir.
1697         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (INLINE_VSYSCALL,
1698         INTERNAL_VSYSCALL, INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK,
1699         INTERNAL_SYSCALL_NCS, HAVE_CLOCK_GETRES_VSYSCALL and
1700         HAVE_CLOCK_GETTIME_VSYSCALL: Define.
1701         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
1702         * sysdeps/unix/sysv/linux/s390/Versions: New file.
1703
1704 2008-12-31  Paolo Bonzini  <bonzini@gnu.org>
1705
1706         * posix/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
1707         * posix/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
1708         re_string_skip_chars, re_string_reconstruct): Likewise.
1709         * posix/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
1710
1711 2008-12-31  Rafael Avila de Espindola  <espindola@google.com>
1712
1713         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr2_r): Check and
1714         adjust the buffer alignment.
1715
1716 2009-01-07  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1717
1718         * sysdeps/mach/hurd/Makefile (sysdep_headers) [subdir=socket]:
1719         Add net/ethernet.h net/if_arp.h net/if_ether.h net/if_ppp.h
1720         net/route.h.
1721
1722         * hurd/report-wait.c (describe_number): Use __stpcpy to prepend
1723         flavor to description only when flavor is not NULL.
1724
1725         * hurd/hurdsig.c (signal_allowed): Unlock _hurd_dtable_lock
1726         mutex after SIGIO/SIGURG lookup loop.
1727
1728 2009-01-03  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1729
1730         * bits/resource.h (PRIO_PROCESS, PRIO_PGRP, PRIO_USER): Add macros.
1731
1732 2009-01-03  Ulrich Drepper  <drepper@redhat.com>
1733
1734         * sysdeps/unix/sysv/linux/i386/sysdep.h: Describe 6th argument
1735         handling.
1736
1737 2009-01-02  Ulrich Drepper  <drepper@redhat.com>
1738
1739         * sysdeps/unix/sysv/linux/kernel-features.h
1740         (__ASSUME_FUTEX_CLOCK_REALTIME): Define.
1741
1742         * wcsmbs/wcsnrtombs.c (__wcsnrtombs): Create temporary state object
1743         if no output is written.
1744
1745         * version.h: Bump to 2.10 development.
1746
1747         * posix/getconf.c: Update copyright year.
1748         * nss/getent.c: Likewise.
1749         * iconv/iconvconfig.c: Likewise.
1750         * iconv/iconv_prog.c: Likewise.
1751         * elf/ldconfig.c: Likewise.
1752         * catgets/gencat.c: Likewise.
1753         * csu/version.c: Likewise.
1754         * elf/ldd.bash.in: Likewise.
1755         * elf/sprof.c (print_version): Likewise.
1756         * locale/programs/locale.c: Likewise.
1757         * locale/programs/localedef.c: Likewise.
1758         * nscd/nscd.c (print_version): Likewise.
1759         * debug/xtrace.sh: Likewise.
1760         * malloc/memusage.sh: Likewise.
1761         * malloc/mtrace.pl: Likewise.
1762         * debug/catchsegv.sh: Likewise.
1763
1764 2008-12-29  Mike Frysinger  <vapier@gentoo.org>
1765
1766         * iconvdata/Makefile (iconv-rules): Use LC_ALL=C when running awk
1767         script.
1768
1769 2008-12-29  Ulrich Drepper  <drepper@redhat.com>
1770
1771         * sysdeps/posix/getaddrinfo.c (gaih_inet): When the
1772         gethostbyname4_r function call succeeded, just leave the loop.
1773
1774         [BZ #9694]
1775         * wcsmbs/wchar.h: Move undefs for local __need_* constants to the
1776         very end.
1777         * wctype/wctype.h: Get wint_t definition directly from <stddef.h>.
1778         * wctype/Makefile (tests): Add bug-wctypeh.
1779         * wctype/bug-wctypeh.c: New file.
1780
1781         * nscd/nscd_gethst_r.c (nscd_gethst_r): Don't use nscd if
1782         LOCALDOMAIN is defined.
1783         * nscd/nscd_getai.c (__nscd_getai): Likewise.
1784
1785         * sysdeps/x86_64/bits/select.h: New file.
1786
1787         * resolv/res_init.c (__res_vinit): Count all servers in statp->nscount.
1788
1789 2008-12-21  Bruno Haible  <bruno@clisp.org>
1790
1791         [BZ #9677]
1792         * wcsmbs/mbsnrtowcs.c (__mbsnrtowcs): Create temporary state object
1793         if no output is written.
1794
1795 2008-12-13  Klaus Dittrich  <kladit@arcor.de>
1796
1797         * login/utmp_file.c (pututline_file): Replace call to dup2 with
1798         libc internal symbol __dup2 to avoid access through the PLT.
1799
1800 2008-12-08  Ulrich Drepper  <drepper@redhat.com>
1801
1802         [BZ #6545]
1803         * sysdeps/unix/sysv/linux/bits/socket.h (SCM_CREDENTIALS): Make
1804         available only for __USE_GNU.
1805
1806         * inet/Makefile (tests): Add tst-getni2.
1807         * inet/tst-getni2.c: New file.
1808
1809         [BZ #7080]
1810         * inet/getnameinfo.c (getnameinfo): Check for output buffers being
1811         NULL when NI_NAMEREQD is set.
1812         Patch mostly by Yang Hongyang <yanghy@cn.fujitsu.com>.
1813         * inet/Makefile (tests): Add tst-getni1.
1814         * inet/tst-getni1.c: New file.
1815
1816 2008-12-03  Petr Baudis  <pasky@suse.cz>
1817
1818         [BZ #7067]
1819         * nscd/connections.c (invalidate_cache): Use prune_run_lock
1820         instead of prune_lock.
1821         (nscd_run_prune): Before calling prune_cache, take prune_run_lock.
1822         * nscd/nscd.h (database_dyn): Add prune_run_cache.
1823
1824 2008-12-07  Ulrich Drepper  <drepper@redhat.com>
1825
1826         * resolv/res_send.c (send_dg): Use correct guards for SOCK_CLOEXEC
1827         use.
1828
1829         * sysdeps/unix/sysv/linux/kernel-features.h: Fix typo in accept4
1830         handling.
1831
1832         * resolv/res_init.c (__res_vinit): Always assign to statp->nscount
1833         after reading name server list.
1834
1835         [BZ #7058]
1836         * nis/nss_nis/nis-hosts.c (_nss_nis_gethostbyname4_r): Fix memory
1837         handling for host name aliases.
1838
1839 2008-11-24  Arkadiusz MiÅ›kiewicz  <arekm@maven.pl>
1840
1841         * sysdeps/i386/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Use LOAD_PIC_REG
1842         instead of doing things manually.
1843
1844 2008-11-26  Chris Steel  <chris.steel.lnx@googlemail.com>
1845
1846         * posix/regex_internal.h (build_wcs_upper_buffer):
1847         Return type is reg_error_t.
1848
1849 2008-12-05  Ulrich Drepper  <drepper@redhat.com>
1850
1851         * posix/globtest.sh: Use mktemp to create temporary file and
1852         directory.
1853
1854         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_SET_S): Handle large
1855         sets correctly.
1856         (__CPU_CLR_S): Likewise.
1857         (__CPU_ISSET_S): Likewise.
1858
1859 2008-12-05  Joseph Myers  <joseph@codesourcery.com>
1860             Ulrich Drepper  <drepper@redhat.com>
1861
1862         * scripts/firstversion.awk: Use custom comparison function to compare
1863         version numbers.
1864         * scripts/versions.awk: Use sort invocation which can handle
1865         multi-digit sub-version numbers.
1866
1867 2008-12-04  Ulrich Drepper  <drepper@redhat.com>
1868
1869         * locale/programs/ld-address.c (DEFINE_LANGUAGE_CODE2): Define.
1870         * locale/iso-639.def: Add Chhattisgarhi entry.
1871
1872 2008-12-02  Ulrich Drepper  <drepper@redhat.com>
1873
1874         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname3_r): Recognize
1875         ESRCH return value.
1876         (_nss_dns_gethostbyname4_r): Likewise.
1877         * resolv/res_init.c (__res_vinit): Initialize nscount to zero.
1878         * sysdeps/posix/getaddrinfo.c (gaih_inet): In case we use
1879         gethostbyname4_r, we don't have a separate IPv6 status, so copy
1880         the no_data variable.
1881
1882         * resolv/res_init.c (__res_vinit): Fill in IPv4 name server
1883         information at the correct index.
1884
1885         * socket/sys/socket.h: Declare accept4.
1886         * socket/accept4.c: New file.
1887         * sysdeps/unix/sysv/linux/accept4.c: New file.
1888         * sysdeps/unix/sysv/linux/i386/accept4.S: New file.
1889         * socket/Makefile (routines): Add accept4.
1890         * socket/Versions: Export accept4 with version GLIBC_2.10.
1891         * socket/paccept.c: Removed.
1892         * sysdeps/unix/sysv/linux/paccept.c: Removed.
1893         * sysdeps/unix/sysv/linux/i386/paccept.S: Removed.
1894         * Versions.def: Define GLIBC_2.10 for libc.
1895         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_ACCEPT4.
1896
1897         * nscd/connections.c: Use accept4.
1898
1899         * sysdeps/unix/sysv/linux/i386/socket.S: Fix comment.
1900
1901 2008-12-01  Ulrich Drepper  <drepper@redhat.com>
1902
1903         * resolv/res_send.c (send_dg): Create sockets with non-blocking
1904         flag already set.
1905
1906         * stdlib/setenv.c (unsetenv): Don't search environment if it does
1907         not exist.
1908         * stdlib/Makefile (tests): Add tst-unsetenv1.
1909         * stdlib/tst-unsetenv1.c: New file.
1910
1911 2008-11-29  Ulrich Drepper  <drepper@redhat.com>
1912
1913         * login/utmp_file.c (file_writable): New variable.
1914         (setutent_file): Don't try to open file for writing.
1915         (pututline_file): Before writing, make descriptor writable if
1916         necessary.
1917
1918 2008-11-26  Ulrich Drepper  <drepper@redhat.com>
1919
1920         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Only restrict search
1921         to IPv4 or IPv6 if an interface has been found.
1922
1923 2008-11-26  Roland McGrath  <roland@redhat.com>
1924
1925         * sysdeps/unix/sysv/linux/alpha/ipc_priv.h: Renamed to ...
1926         * sysdeps/unix/sysv/linux/powerpc/ipc_priv.h: ... here.
1927
1928         * sysdeps/unix/sysv/linux/alpha/wordexp.c: Renamed to ...
1929         * sysdeps/unix/sysv/linux/ia64/wordexp.c: ... here.
1930         * sysdeps/unix/sysv/linux/sparc/sparc64/wordexp.c: Change #include.
1931
1932         * elf/elf.h (NT_386_IOPERM): New macro.
1933         (NT_PPC_VSX): New macro.
1934
1935 2008-11-25  Roland McGrath  <roland@redhat.com>
1936
1937         * sysdeps/alpha, sysdeps/unix/bsd/osf/alpha,
1938         sysdeps/unix/bsd/Attic/osf1/alpha, sysdeps/unix/sysv/linux/alpha,
1939         sysdeps/unix/sysv/linux/alpha/alpha, sysdeps/unix/alpha,
1940         sysdeps/mach/alpha, sysdeps/mach/hurd/alpha:
1941         Subdirectories moved to ports repository.
1942         * configure.in (base_machine): Remove alpha case.
1943
1944 2008-11-25  Thomas Schwinge  <tschwinge@gnu.org>
1945
1946         * sysdeps/mach/strerror_l.c: New file.
1947
1948 2008-11-13  Ryan S. Arnold  <rsa@us.ibm.com>
1949
1950         [BZ #6411]
1951         * sysdeps/powerpc/fpu/Makefile: Added test case tst-setcontext-fpscr.
1952         * sysdeps/powerpc/fpu/feholdexcpt.c (_FPU_MASK_ALL): Define to replace
1953         magic numbers.
1954         * sysdeps/powerpc/fpu/fenv_libc.h (fesetenv_register): Dynamically
1955         choose mtfsf insn based on PPC_FEATURE_HAS_DFP.
1956         (relax_fenv_state): Same as above.
1957         (FPSCR_29): Reserve bit in ISA 2.05.
1958         (FPSCR_NI): Provide define for compat.
1959         * sysdeps/powerpc/fpu/fesetenv.c (_FPU_MASK_ALL): Define to replace
1960         magic numbers.
1961         * sysdeps/powerpc/fpu/feupdateenv.c (_FPU_MASK_ALL): Define to replace
1962         magic numbers.
1963         * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c: New file.  Test case to
1964         test setcontext and swapcontext with dynamic 64-bit FPSCR detection.
1965         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp): Adjust
1966         access to hwcap to account for hwcap size increase to uint64_t.
1967         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S (__sigsetjmp ):
1968         Likewise.
1969         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S
1970         (*setcontext): Likewise.
1971         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/setcontext.S:
1972         New file.
1973         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/swapcontext.S:
1974         New file.
1975         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S
1976         (*setcontext): dynamically select mtfsf insn based on
1977         PPC_FEATURE_HAS_DFP. Adjust access to hwcap to account for hwcap size
1978         increase to uint64_t.
1979         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S
1980         (*swapcontext): dynamically select mtfsf insn based on
1981         PPC_FEATURE_HAS_DFP.  Adjust access to hwcap to account for hwcap size
1982         increase to uint64_t.
1983         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/setcontext.S:
1984         New file.
1985         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/swapcontext.S:
1986         New file.
1987         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
1988         (*setcontext): dynamically select mtfsf insn based on
1989         PPC_FEATURE_HAS_DFP.
1990         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
1991         (*swapcontext): dynamically select mtfsf insn based on
1992         PPC_FEATURE_HAS_DFP.
1993
1994 2008-11-13  Ulrich Drepper  <drepper@redhat.com>
1995
1996         * version.h: Bump for 2.9 release.
1997         * include/features.h (__GLIBC_MINOR__): Bump to 9.
1998
1999         [BZ #7029]
2000         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_ALLOC_SIZE):
2001         Multiply with sizeof of __cpu_mask, not 8 unconditionally after
2002         all the rounding.
2003
2004 2008-11-11  Ulrich Drepper  <drepper@redhat.com>
2005
2006         [BZ #7009]
2007         * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): Don't abort for
2008         unknown request types for now.
2009
2010 2008-11-11  Roland McGrath  <roland@redhat.com>
2011
2012         * sysdeps/x86_64/configure: New file.
2013
2014         * configure.in: Add AC_SUBST(libc_cv_cpp_asm_debuginfo).
2015         * configure: Regenerated.
2016
2017 2008-11-03  Martin Schwidefsky  <schwidefsky@de.ibm.com>
2018
2019         * sysdeps/s390/s390-64/dl-trampoline.S (_dl_runtime_profile): Use the
2020         correct instruction to remove the stack frame.
2021
2022 2008-11-03  Michael Matz  <matz@suse.de>
2023
2024         * sysdeps/s390/bits/atomic.h (__arch_compare_and_exchange_val_32_acq,
2025         __arch_compare_and_exchange_val_64_acq): Add "memory" clobber.
2026
2027 2008-11-07  Jakub Jelinek  <jakub@redhat.com>
2028
2029         * include/stdio.h (__builtin_fwrite, __builtin_fwrite_unlocked):
2030         Remove.
2031
2032         * bits/libc-tsd.h (__libc_tsd_define, __libc_tsd_address,
2033         __libc_tsd_get, __libc_tsd_set): Add TYPE argument, use it as the type
2034         of the thread variable instead of void *.
2035         * sysdeps/mach/hurd/bits/libc-tsd.h (__libc_tsd_define,
2036         __libc_tsd_address, __libc_tsd_get, __libc_tsd_set): Likewise.
2037         * include/ctype.h (CTYPE_B, CTYPE_TOUPPER, CTYPE_TOLOWER): Adjust
2038         __libc_tsd_define arguments.
2039         (__ctype_b_loc, __ctype_toupper_loc, __ctype_tolower_loc): Adjust
2040         __libc_tsd_address arguments.  Remove union hack.
2041         * include/rpc/rpc.h (RPC_VARS): Adjust __libc_tsd_define arguments.
2042         * sunrpc/rpc_thread.c (RPC_VARS): Likewise.
2043         (__rpc_thread_destroy, rpc_thread_multi, __rpc_thread_variables):
2044         Adjust __libc_tsd_{set,get} arguments.
2045         * ctype/ctype-info.c (CTYPE_B, CTYPE_TOUPPER, CTYPE_TOLOWER): Adjust
2046         __libc_tsd_define arguments.
2047         * locale/uselocale.c (__uselocale): Adjust __libc_tsd_{set,get}
2048         arguments.
2049         * locale/lc-ctype.c (_nl_postload_ctype): Likewise.
2050         * locale/global-locale.c (__libc_tsd_LOCALE): Adjust type.
2051         (LOCALE): Adjust __libc_tsd_define arguments.
2052         * locale/localeinfo.h (_NL_CURRENT_LOCALE): Adjust __libc_tsd_get
2053         arguments.
2054         (LOCALE): Adjust __libc_tsd_define arguments.
2055         * sysdeps/mach/hurd/malloc-machine.h (MALLOC): Adjust __libc_tsd_define
2056         arguments.
2057         (tsd_setspecific, tsd_getspecific): Adjust __libc_tsd_{set,get}
2058         arguments.
2059
2060 2008-11-02  Ulrich Drepper  <drepper@redhat.com>
2061
2062         * malloc/malloc.c (public_rEALLOc): When new arena is used, copy
2063         really all bytes.  Patch by Denys Vlasenko <dvlasenk@redhat.com>.
2064
2065 2008-11-01  Ulrich Drepper  <drepper@redhat.com>
2066
2067         [BZ #6966]
2068         * misc/hsearch_r.c (hsearch_r): Fix secondary hash function.
2069
2070 2008-10-24  Joseph Myers  <joseph@codesourcery.com>
2071             Ulrich Drepper  <drepper@redhat.com>
2072
2073         * math/tgmath.h (__floating_type): Use __builtin_classify_type in
2074         definition for GCC 3.1 and later.
2075
2076 2008-10-31  Jakub Jelinek  <jakub@redhat.com>
2077
2078         * elf/dl-tls.c (__tls_get_addr): After calling _dl_update_slotinfo
2079         refetch dtv, as it might have changed.
2080         * elf/Makefile: Add rules to build and run tst-tls18.
2081         * elf/tst-tls18.c: New test.
2082         * elf/tst-tlsmod18a.c: New file.
2083
2084 2008-09-09  Aurelien Jarno  <aurelien@aurel32.net>
2085
2086         [BZ #6875]
2087         * iconvdata/gconv-modules: Add LATIN9 as an alias to ISO-8859-15.
2088
2089 2008-10-31  Ulrich Drepper  <drepper@redhat.com>
2090
2091         [BZ #6867]
2092         * sysdeps/powerpc/elf/rtld-global-offsets.sym: Fix typo.
2093
2094         [BZ #6919]
2095         * posix/spawnattr_getschedparam.c (posix_spawnattr_getschedparam):
2096         Fix length of copy operation.
2097
2098 2008-10-02  Pierre Habouzit <madcoder@debian.org>
2099
2100         * sysdeps/unix/sysv/linux/eventfd.c (eventfd): Use the eventfd2 syscall
2101         and fix its calling convention.
2102
2103 2008-10-07  Andreas Schwab  <schwab@suse.de>
2104
2105         [BZ #6942]
2106         * resolv/res_send.c (send_vc): Fix last change.
2107         (send_dg): Align here as well.
2108
2109 2008-10-31  Ulrich Drepper  <drepper@redhat.com>
2110
2111         * sysdeps/unix/sysv/linux/ulimit.c (__ulimit): Handle UL_GETFSIZE
2112         return value in case rlimit is RLIM_INFINITY.
2113
2114         [BZ #6947]
2115         * sysdeps/unix/sysv/linux/ulimit.c (__ulimit): Fix return value
2116         for UL_SETFSIZE.
2117         * resource/Makefile (tests): Add bug-ulimit1.
2118         * resource/bug-ulimit1.c: New file.
2119
2120         [BZ #6974]
2121         * sunrpc/rpc_main.c (mkfile_output): Properly handle filename
2122         without dot.  Properly terminate the string with a null byte.
2123         Based on a patch by Aurelien Jarno <aurelien@aurel32.net>.
2124
2125         [BZ #6980]
2126         * debug/getgroups_chk.c (__getgroups_chk): Return EINVAL error for
2127         negative sizees.
2128         * posix/bits/unistd.h (getgroups): Call __getgroups_chk for
2129         negative __size.
2130
2131         [BZ #6995]
2132         * sysdeps/powerpc/powerpc32/dl-machine.c: Fix typo in message.
2133
2134 2008-10-30  Ulrich Drepper  <drepper@redhat.com>
2135
2136         * grp/initgroups.c (internal_getgrouplist): Don't prematurely
2137         abort if there is no initgroups_dyn function.
2138
2139         * resolv/res_send.c (send_dg): On timeout, only return nonzero
2140         result if any of the queries really provided an answer.
2141
2142 2008-10-28  Ulrich Drepper  <drepper@redhat.com>
2143
2144         * po/lt.po: Update from translation team.
2145
2146 2008-10-26  Ulrich Drepper  <drepper@redhat.com>
2147
2148         * po/id.po: Update from translation team.
2149
2150 2008-10-24  Ulrich Drepper  <drepper@redhat.com>
2151
2152         * resolv/res_query.c (__libc_res_nquery): Add a few casts.
2153         Fix tests for existence of second reply.
2154
2155 2008-10-23  Ulrich Drepper  <drepper@redhat.com>
2156
2157         * po/id.po: New file.
2158         Contributed by the Indonesian translation team.
2159
2160 2008-10-22  Dmitry V. Levin  <ldv@altlinux.org>
2161
2162         * misc/syslog.c (openlog_internal): Fix __have_sock_cloexec
2163         initialization.
2164
2165 2008-10-17  Jakub Jelinek  <jakub@redhat.com>
2166
2167         * elf/Makefile: Add rules to build and run tst-tls17.
2168         * elf/tst-tls17.c: New test.
2169         * elf/tst-tlsmod17a.c: New file.
2170         * elf/tst-tlsmod17b.c: Likewise.
2171
2172 2008-10-17  Ulrich Drepper  <drepper@redhat.com>
2173
2174         * stdlib/divmod_1.c: Use correct type for dummy variable.
2175         * stdlib/mod_1.c: Likewise.
2176
2177 2008-10-16  Ulrich Drepper  <drepper@redhat.com>
2178
2179         * elf/dl-tls.c (_dl_update_slotinfo): Copy all of the initial DTV.
2180
2181 2008-10-16  Jakub Jelinek  <jakub@redhat.com>
2182
2183         * sysdeps/unix/sysv/linux/sys/signalfd.h (signalfd): Fix __THROW vs.
2184         __nonnull order for C++.
2185         * sysdeps/unix/sysv/linux/alpha/sys/signalfd.h (signalfd): Likewise.
2186         * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h (signalfd): Likewise.
2187
2188 2008-10-01  Daniel Jacobowitz  <dan@codesourcery.com>
2189
2190         * stdlib/longlong.h: Update from GCC.
2191
2192 2008-10-09  Jakub Jelinek <jakub@redhat.com>
2193             David S. Miller  <davem@davemloft.net>
2194
2195         * sysdeps/sparc/sparc64/sparcv9v/memcpy.S: When not USE_BPR,
2196         make sure any registers used with 64-bit 'branch-on-register'
2197         instructions have their top 32-bits clear.
2198         * sysdeps/sparc/sparc64/sparcv9v/memset.S: Likewise.
2199         * sysdeps/sparc/sparc64/sparcv9v2/memcpy.S: Likewise.
2200
2201 2008-09-18  Andreas Schwab  <schwab@suse.de>
2202
2203         [BZ #6942]
2204         * resolv/res_send.c (send_vc): Fix use of unaligned address.
2205         Properly handle partial reads.
2206
2207 2008-10-01  Mark Shinwell  <shinwell@codesourcery.com>
2208
2209         * elf/elf.h (STO_MIPS_PLT): New.
2210         (R_MIPS_COPY): New.
2211         (R_MIPS_JUMP_SLOT): New.
2212         (R_MIPS_NUM): Redefine to 128.
2213         (DT_MIPS_PLTGOT): New.
2214         (DT_MIPS_RWPLT): New.
2215         (DT_MIPS_NUM): Redefine to 0x35.
2216
2217 2008-10-01  Ulrich Drepper  <drepper@redhat.com>
2218
2219         * timezone/africa: Update from tzdata2008f.
2220         * timezone/asia: Likewise.
2221         * timezone/australasia: Likewise.
2222         * timezone/europe: Likewise.
2223         * timezone/leapseconds: Likewise.
2224         * timezone/northamerica: Likewise.
2225         * timezone/southamerica: Likewise.
2226         * timezone/zone.tab: Likewise.
2227
2228 2008-09-30  Ulrich Drepper  <drepper@redhat.com>
2229
2230         * nscd/connections.c: Disable use of paccept for now.
2231
2232 2008-09-29  Ulrich Drepper  <drepper@redhat.com>
2233
2234         * socket/Versions: Remove paccept export for GLIBC_2.9.
2235         * socket/Makefile (routines): Remove paccept.
2236         * socket/sys/socket.h: Remove paccept declaration.
2237
2238         * po/sv.po: Update from translation team.
2239
2240 2008-09-22  Deborah S. Townsend  <dstownse@us.ibm.com>
2241
2242         * sysdeps/s390/s390-64/s390x-mcount.S: Replace ahi with aghi.
2243         * sysdeps/unix/sysv/linux/s390/s390-64/socket.S: Likewise.
2244
2245 2008-09-16  Ulrich Drepper  <drepper@redhat.com>
2246
2247         * dlfcn/dlopen.c (dlopen_doit): Allow __RTLD_SPROF flag.
2248         Patch by Olivier Fourdan <ofourdan@redhat.com>.
2249
2250 2008-09-15  Ulrich Drepper  <drepper@redhat.com>
2251
2252         * sunrpc/rpc/svc.h: Declare svcfd_create.
2253         Patch by Michael Solberg <msolberg@redhat.com>.
2254
2255 2008-09-12  Flavio Leitner  <fleitner@redhat.com>
2256             Ulrich Drepper  <drepper@redhat.com>
2257
2258         * malloc/malloc.c (public_vALLOc): Try other arenas in case
2259         _int_valloc fails.
2260         (public_pVALLOc): Likewise.
2261
2262 2008-09-02  Andreas Jaeger  <aj@suse.de>
2263
2264         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: Fix last
2265         commit.
2266
2267 2008-08-26  Aurelien Jarno  <aurelien@aurel32.net>
2268
2269         [BZ #6860]
2270         * hurd/hurd/signal.h (HURD_MSGPORT_RPC): Fix a typo.
2271
2272 2008-07-18  Daniel Jacobowitz  <dan@codesourcery.com>
2273
2274         * Makefile (check-data): Check data directory in add-ons.
2275         * elf/Makefile (check-data): Likewise.
2276
2277 2008-08-18  Roland McGrath  <roland@redhat.com>
2278
2279         * configure.in (--with-cpu): Check compiler support for -march/-mcpu.
2280         * configure: Regenerated.
2281         * config.make.in (cflags-cpu): New substituted variable.
2282         (with-cpu): Variable removed.
2283         * Makeconfig (+cflags): Use $(cflags-cpu), not $(with-cpu).
2284
2285 2008-08-14  Ryan S. Arnold  <rsa@us.ibm.com>
2286
2287         [BZ #6845]
2288         * sysdeps/powerpc/fpu/bits/mathinline.h (__signbitl): Copy new
2289         __signbitl definition and __LONG_DOUBLE_128__ guard from:
2290         * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h: Remove as
2291         redundant.  Functions which call floating point assembler operations
2292         should go into a sysdeps powerpc/fpu directory.
2293
2294 2008-08-15  Ulrich Drepper  <drepper@redhat.com>
2295
2296         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Define MAP_STACK.
2297         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Likewise.
2298
2299 2008-08-14  Ulrich Drepper  <drepper@redhat.com>
2300
2301         * sysdeps/x86_64/memset.S: Reduce size of tables for PIC.
2302
2303         * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): Undo all
2304         change related to AT_EXECFN.  We cannot use that string.
2305         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Remove
2306         _dl_execfn member.
2307         * elf/dl-support.c: Remove _dl_execfn variable.
2308         (_dl_aux_init): Remove handling of AT_EXECFN.
2309         * elf/dl-sysdep.c (_dl_sysdep_start): Remove handling of AT_EXECFN.
2310         * elf/rtld.c (process_envvars): Remove use of __ASSUME_AT_EXECFN.
2311
2312 2008-08-13  Ulrich Drepper  <drepper@redhat.com>
2313
2314         [BZ #6544]
2315         * libio/fmemopen.c: Implement binary mode.  In this mode no NUL
2316         byte gets added to writes and seeks from the end use the length of
2317         the buffer and not the currently terminating NUL byte.
2318
2319         [BZ #6634]
2320         * login/utmp_file.c (getutent_r_file): Take additional parameter.
2321         Set to true if locking failed.
2322         (getutid_r_file): Adjust caller.
2323         (pututline_file): Likewise.  Return NULL in this case.
2324         Patch mostly by halesh.s@gmail.com.
2325
2326 2008-08-12  Ulrich Drepper  <drepper@redhat.com>
2327
2328         [BZ #6589]
2329         * sysdeps/unix/sysv/linux/ifaddrs.c (struct sockaddr_ll_max):
2330         Define.
2331         (struct ifaddrs_storage): Use it instead of sockaddr_ll.
2332
2333 2008-08-12  Ryan S. Arnold  <rsa@us.ibm.com>
2334
2335         [BZ #6839]
2336         * sysdeps/powerpc/powerpc32/dl-machine.c (CHECK_STATIC_TLS): Remove
2337         macro since it is now available in elf/dynamic-link.h.
2338
2339 2008-08-12  Roland McGrath  <roland@frob.com>
2340
2341         * hurd/hurd/signal.h (HURD_MSGPORT_RPC): Avoid -Wparenthesis triggers,
2342         in case used outside of libc.
2343         Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>
2344
2345 2008-08-11  Ulrich Drepper  <drepper@redhat.com>
2346
2347         * resolv/res_mkquery.c (res_nmkquery): Call ns_name_compress
2348         directly instead of going through dn_comp.
2349
2350 2008-08-11  Aurelien Jarno  <aurel32@debian.org>
2351
2352         * sysdeps/mach/i386/machine-lock.h (__spin_unlock, __spin_try_lock):
2353         Fix asm constraints.
2354
2355 2008-08-07  Ulrich Drepper  <drepper@redhat.com>
2356
2357         [BZ #6790]
2358         * sysdeps/unix/sysv/linux/bits/in.h (IP_PMTUDISC_PROBE): Define.
2359         (IPV6_PMTUDISC_PROBE): Likewise.
2360
2361 2008-08-07  Pete Eberlein  <eberlein@us.ibm.com>
2362
2363         [BZ #6791]
2364         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h (PROT_SAO): Define.
2365
2366 2008-08-01  Steven Munroe  <sjmunroe@us.ibm.com>
2367             Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
2368
2369         [BZ #6817]
2370         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags):
2371         Added the members 'vsx' and 'arch_2_06'.
2372         (_dl_powerpc_platforms): Add the member 'power7'.
2373         * sysdeps/powerpc/dl-procinfo.h: Modify _DL_HWCAP_FIRST
2374         to reflect the changes required by VSX and ISA 2.06.
2375         Modify _DL_PLATFORMS_COUNT to reflect the addition of
2376         'power7'.
2377         Defined PPC_PLATFORM_POWER7.
2378         (_dl_string_platform): Add support for POWER7.
2379         * sysdeps/powerpc/sysdep.h: Define bit masks for VSX
2380         capability and ISA 2.06.
2381
2382 2008-08-07  Ulrich Drepper  <drepper@redhat.com>
2383
2384         [BZ #6824]
2385         * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h: Use correct
2386         macro to detect use of 128 bit long double.
2387         Patch by Ryan S. Arnold <rsa@us.ibm.com>.
2388
2389 2008-08-05  Ulrich Drepper  <drepper@redhat.com>
2390
2391         * scripts/gen-as-const.awk: Use 32-bit values on 32-bit platforms.
2392
2393         [BZ #5794]
2394         * sysdeps/i386/fpu/s_expm1l.S: Simply use exp implementation for large
2395         parameters.
2396         * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
2397         Patch by Denys Vlasenko <dvlasenk@redhat.com>.
2398
2399 2008-08-03  Ulrich Drepper  <drepper@redhat.com>
2400
2401         * nscd/connections.c (main_loop_poll): Pass a buffer which is
2402         guaranteed to be large enough to read inotify event.  Ignore
2403         EAGAIN error.  Better error message.  Add branch predicition.
2404         (main_loop_epoll): Likewise.
2405
2406 2008-08-02  Roland McGrath  <roland@frob.com>
2407
2408         * sysdeps/mach/i386/machine-lock.h (__spin_unlock, __spin_try_lock):
2409         Add memory clobbers.
2410
2411 2008-08-02  Ulrich Drepper  <drepper@redhat.com>
2412
2413         * manual/arith.texi: Avoid @strong{Note:}.
2414         * manual/creature.texi: Likewise.
2415         * manual/filesys.texi: Likewise.
2416         * manual/math.texi: Likewise.
2417         * manual/memory.texi: Likewise.
2418         * manual/resource.texi: Likewise.
2419         * manual/syslog.texi: Likewise.
2420         * manual/time.texi: Likewise.
2421
2422         * sysdeps/posix/clock_getres.c (hp_timing_getres): Remove inline
2423         to prevent warning.
2424
2425 2008-08-01  Ulrich Drepper  <drepper@redhat.com>
2426
2427         * sysdeps/unix/sysv/linux/Versions: Fix changes due to old patch for
2428         new epoll_create1 interface.
2429         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
2430         * sysdeps/unix/sysv/linux/sys/epoll.h: Likewise.
2431         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
2432
2433         * include/arpa/nameser.h (NS_GET16): Use const pointer.
2434         (NS_GET32): Likewise.
2435
2436         * sysdeps/unix/sysv/linux/kernel-features.h: s390 has the new
2437         syscalls, too.
2438
2439         * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): We cannot
2440         use the AT_EXECFN value if it is no absolute path.
2441         * sysdeps/unix/sysv/linux/kernel-features.h: Never define
2442         __ASSUME_AT_EXECFN.
2443
2444         * Versions.def: Add GLIBC_2.9 to libresolv.
2445         * include/resolv.h: Remove hidden proto declarations for __ns_*
2446         functions.  Add them for __dn_count_labels and __p_secstodate.
2447         * include/arpa/nameser.h: Add a number of hidden proto declarations.
2448         Define ns_msg_getflags macro here.
2449         * resolv/res_debug.c: Add hidden definition for __dn_count_labels
2450         and __p_secstodate.
2451         * resolv/Versions: Export functions from <arpa/nameser.h> from
2452         libresolv in version GLIBC_2.9.
2453         * resolv/ns_name.c: Integrate changes from bind 9.5.0.  Add necessary
2454         hidden definitions.
2455         * resolv/ns_netint.c: Likewise.
2456         * resolv/ns_parse.c: Likewise.
2457         * resolv/ns_print.c: Likewise.
2458         * resolv/ns_samedomain.c: Likewise.
2459         * resolv/ns_ttl.c: Likewise.
2460         * resolv/arpa/nameser_compat.h: Likewise.
2461         * resolv/arpa/nameser.h: Likewise.  Remove macros which redirect
2462         function calls.
2463         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Use __ns_get16
2464         instead of ns_get16.
2465         * resolv/nss_dns/dns-host.c (getanswer_r): Use __ns_get16 and
2466         __ns_get32 instead of ns_get16 and ns_get32 respectively.
2467         (gaih_getanswer_slice): Likewise.
2468         * resolv/Makefile (libresolv-routines): Add ns_date.
2469         * resolv/ns_date.c: New file.
2470
2471         * elf/Makefile (check-localplt.out): Also check libresolv and
2472         libcrypt.
2473
2474 2008-07-31  Ulrich Drepper  <drepper@redhat.com>
2475
2476         * sysdeps/unix/sysv/linux/kernel-features.h: Define
2477         __ASSUME_O_CLOEXEC.
2478
2479 2008-07-30  Ulrich Drepper  <drepper@redhat.com>
2480
2481         * sysdeps/posix/getaddrinfo.c (gaih_inet): Raise size of initial
2482         buffer passed to NSS functions.
2483
2484         * nscd/connections.c (nscd_init): Typo in preprocessor directive.
2485
2486         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PACCEPT):
2487         Define.
2488
2489         * misc/syslog.c (openlog_internal): Fix compile problem.
2490
2491 2008-07-28  Roland McGrath  <roland@redhat.com>
2492
2493         * elf/dl-sysdep.c (_dl_show_auxv): Add AT_EXECFN to the table.
2494
2495 2008-07-28  Ulrich Drepper  <drepper@redhat.com>
2496
2497         * io/ftw.c (add_object): Remove inline to avoid warning.
2498
2499         * sysdeps/unix/sysv/linux/paccept.c: Fix compile problem.
2500
2501         * resolv/res_send.c (__libc_res_nsend): Take additional parameter.
2502         Use it instead of locally defined resplen2 variable.
2503         (res_nsend): Adjust for __libc_res_nsend interface change.
2504         (send_vc): Initialize *resplen2 if necessary.  Read length of
2505         package into an appropriately aligned variable.  Store converted length
2506         in new variable and use it appropriately.
2507         Add branch prediction help.
2508         * resolv/res_query.c (__libc_res_nquery): Take additional parameter
2509         and pass it on to __libc_res_nsend.  Adjust all callers.
2510         (__libc_res_nsearch): Likewise.
2511         (__libc_res_nqeurydomain): Likewise.
2512         * resolv/nss_dns/dns-host.c: Adjust for __libc_res_nsearch interface
2513         change.
2514         (_nss_dns_gethostbyname4): Don't unconditionally allocate tmp array.
2515         Define resplen2 variable and pass it to __libc_res_nsearch and then
2516         to gaih_getanswer.
2517         (getanswer_r): In case of incorrect DNS data don't overread buffer.
2518         Add branch prediction.
2519         (gaih_getanswer_slice): Likewise.  Check for invalid data types.
2520         (gaih_getanswer): Don't decode second slice if first one failed due
2521         to a too small buffer.  Don't let not found status of second
2522         decoder shadow results of the first.
2523         * resolv/gethnamaddr.c (gethostbyname2): Adjust for __libc_res_nsearch
2524         and __libc_res_nquery interface changes
2525         (gethostbyaddr): Adjust for __libc_res_nquery interface change.
2526         * include/resolv.h: Adjust prototypes for __libc_res_nquery,
2527         __libc_res_nsearch, and __libc_res_nsend.
2528         * resolv/nss_dns/dns-canon.c: Adjust for __libc_res_nquery interface
2529         change.
2530         * resolv/nss_dns/dns-network.c: Adjust for __libc_res_nquery and
2531         __libc_res_nsearch interface changes.
2532
2533 2008-07-27  Ulrich Drepper  <drepper@redhat.com>
2534
2535         * libio/iopopen.c (_IO_new_proc_open): Remove unnecessary volatile.
2536
2537         * posix/wordexp.c (exec_comm): Use pipe2 if possible to create
2538         file descriptors with close-on-exec set.
2539         (exec_comm_child): Fix the case where the write end of the pipe is
2540         STDOUT_FILENO already.  In case it is, clear close-on-exec.
2541
2542         * sysdeps/unix/sysv/linux/syscalls.list: Add __pipe2 alias.
2543         * io/pipe2.c: Likewise.
2544         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_PIPE2
2545         instead of __ASSUME_PACCEPT.
2546         * include/unistd.h: Declare __have_pipe2.
2547         * libio/iopopen.c: Implement "e" flag.
2548         * libio/Makefile (tests): Add tst-popen1.
2549         * libio/tst-popen1.c: New file.
2550
2551         * sysdeps/unix/sysv/linux/bits/socket.h: Define PF_ISDN and AF_ISDN.
2552         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
2553
2554 2008-07-26  Ulrich Drepper  <drepper@redhat.com>
2555
2556         [BZ #6771]
2557         * libio/fileops.c (_IO_new_file_attach): Preserve errno around
2558         success call of _IO_SEEKOFF or calls which failed because the
2559         descriptor is for a pipe.
2560
2561         * sunrpc/key_call.c (getkeyserv_handle): Use FD_CLOEXEC instead of
2562         magic number.
2563
2564         * misc/syslog.c (openlog_internal): Use SOCK_CLOEXEC if possible.
2565
2566         * malloc/mtrace.c (mtrace): Use 'e' flag in fopen call.  Drop
2567         F_SETFD use if we know fopen set the flag.
2568
2569         * login/utmp_file.c (setutent_file): Minor optimization in case
2570         O_CLOEXEC is available.
2571
2572 2008-07-24  Tom "spot" Callaway  <tcallawa@redhat.com>
2573
2574         * Makeconfig: Define pie-ccflag and PIE-ccflag variables.
2575         * elf/Makefile: Use pie-ccflag variable.
2576         * nscd/Makefile: Likewise.
2577         * sysdeps/sparc/Makefile: Set $(pie-ccflag) to -fPIE.
2578
2579 2008-07-21  Andreas Krebbel  <krebbel1@de.ibm.com>
2580
2581         [BZ #6724]
2582         * Versions.def: Add GLIBC_2.9 version tag for libutil.
2583         * sysdeps/unix/sysv/linux/s390/bits/utmp.h: Copy of
2584         gnu/bits/utmp.h.  Check for __WORDSIZE_COMPAT32 removed.
2585         * sysdeps/unix/sysv/linux/s390/bits/utmpx.h: Copy of
2586         gnu/bits/utmpx.h.  Check for __WORDSIZE_COMPAT32 removed.
2587         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Add new files
2588         utmp32, utmpx32 and login32.
2589         * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Add 2.9
2590         versions of struct utmp functions to libc and libutil.
2591         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-compat.h: New file.
2592         * sysdeps/unix/sysv/linux/s390/s390-32/getutent.c: New file.
2593         * sysdeps/unix/sysv/linux/s390/s390-32/getutent_r.c: New file.
2594         * sysdeps/unix/sysv/linux/s390/s390-32/getutid.c: New file.
2595         * sysdeps/unix/sysv/linux/s390/s390-32/getutid_r.c: New file.
2596         * sysdeps/unix/sysv/linux/s390/s390-32/getutline.c: New file.
2597         * sysdeps/unix/sysv/linux/s390/s390-32/getutline_r.c: New file.
2598         * sysdeps/unix/sysv/linux/s390/s390-32/getutmp.c: New file.
2599         * sysdeps/unix/sysv/linux/s390/s390-32/getutxent.c: New file.
2600         * sysdeps/unix/sysv/linux/s390/s390-32/getutxid.c: New file.
2601         * sysdeps/unix/sysv/linux/s390/s390-32/getutxline.c: New file.
2602         * sysdeps/unix/sysv/linux/s390/s390-32/login.c: New file.
2603         * sysdeps/unix/sysv/linux/s390/s390-32/login32.c: New file.
2604         * sysdeps/unix/sysv/linux/s390/s390-32/pututxline.c: New file.
2605         * sysdeps/unix/sysv/linux/s390/s390-32/updwtmp.c: New file.
2606         * sysdeps/unix/sysv/linux/s390/s390-32/updwtmpx.c: New file.
2607         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: New file.
2608         * sysdeps/unix/sysv/linux/s390/s390-32/utmp32.c: New file.
2609         * sysdeps/unix/sysv/linux/s390/s390-32/utmp32.h: New file.
2610         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx-convert.h: New file.
2611         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.c: New file.
2612         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: New file.
2613
2614 2008-07-26  Ulrich Drepper  <drepper@redhat.com>
2615
2616         * scripts/gen-as-const.awk: Generate more widely usable code by
2617         using 64-bit arithmetic.
2618
2619         * stdio-common/printf_fp.c (___printf_fp): Give wide outout code
2620         the same treatment as narrow output code in last patch.
2621
2622         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Namespace cleanup.
2623
2624         [BZ #6763]
2625         * elf/dl-load.c (local_strdup): Remove inline.
2626         (_dl_map_object_from_fd): Don't allocate l_symbolic_searchlist.r_list.
2627         * elf/dl-object.c (_dl_new_object): Allocate symbolic searchlist as
2628         part of the object.
2629
2630         * sysdeps/unix/sysv/linux/dl-origin.c: Add const to avoid warning.
2631
2632 2008-07-25  Ulrich Drepper  <drepper@redhat.com>
2633
2634         * sysdeps/unix/sysv/linux/kernel-features.h: IA-64 and SPARC have
2635         the new syscalls, too.
2636
2637         * sysdeps/i386/i686/memcmp.S: Fix unwind information.
2638         Reported by Paul Pluzhnikov <ppluzhnikov@google.com>.
2639
2640         [BZ #6698]
2641         * stdio-common/_i18n_number.h (_i18n_number_rewrite): Take additional
2642         parameter for end of buffer.  If temporary copy is too large use
2643         malloc.
2644         * stdio-common/vfprintf.c: Adjust for _i18n_number_rewrite
2645         interface change.
2646         * stdio-common/printf_fp.c (__printf_fp): Likewise..  Account for
2647         string rewrite when allocating buffer.
2648
2649         * sysdeps/unix/sysv/linux/kernel-features.h: PPC has the new
2650         syscalls, too.
2651
2652         * nscd/connections.c (nscd_init): Clean up fcntl call.
2653
2654         * nscd/nscd_helper.c (open_socket): Use SOCK_CLOEXEC and
2655         SOCK_NONBLOCK if possible.
2656
2657         * sysdeps/unix/sysv/linux/opensock.c (__opensock): Use
2658         SOCK_CLOEXEC if available.
2659
2660         * include/rpc/clnt.h: Declare __libc_clntudp_bufcreate and
2661         __libc_clntudp_bufcreate_internal.
2662         * include/sys/socket.h: Declare __have_sock_cloexec.
2663         * socket/Makefile (aux): Add have_sock_cloexec.
2664         * socket/have_sock_cloexec.c: New file.
2665         * sunrpc/clnt_udp.h (clntudp_bufcreate): Now a wrapper around
2666         __libc_clntudp_bufcreate.
2667         (__libc_clntudp_bufcreate): Former implementation of clntudp_bufcreate
2668         which takes an additional parameter.  Create socket with non-blocking
2669         mode and close-on-exec flag set, if wanted.
2670         * sunrpc/Versions: Export __libc_clntudp_bufcreate@GLIBC_PRIVATE.
2671         * nis/ypclnt.c (yp_bind_client_create): Use __libc_clntpudp_bufcreate
2672         instead of clntudp_create.  The socket has already the close-on-exec
2673         flag set if SOCK_CLOEXEC is defined.
2674
2675 2008-07-24  Ulrich Drepper  <drepper@redhat.com>
2676
2677         * sysdeps/unix/sysv/linux/kernel-features.h: Define
2678         __ASSUME_PACCEPT, __ASSUME_IN_NONBLOCK, and __ASSUME_PACCEPT if
2679         appropriate.
2680         * nscd/connections.c: Avoid fcntl calls to set close-on-exec flag and
2681         non-blocking mode by using socket, paccept, and inotify_init1.
2682
2683         * Versions.def (glibc): Add GLIBC_2.9.
2684         * io/Makefile (routines): Add dup3 and pipe2.
2685         * io/Versions [glibc] (GLIBC_2.9): Add dup3 and pipe2.
2686         * io/dup3.c: New file.
2687         * io/pipe2.c: New file.
2688         * posix/unistd.h: Declare dup3 and pipe2.
2689         * socket/Makefile (routines): Add paccept.
2690         * socket/Versions [glibc] (GLIBC_2.9): Add paccept.
2691         * socket/paccept.c: New file.
2692         * socket/sys/socket.h: Declare paccept.
2693         * sysdeps/unix/syscalls.list: Add entry for dup3.
2694         * sysdeps/unix/sysv/linux/Versions [glibc] (GLIBC_2.9): Add
2695         epoll_create2 and inotify_init1.
2696         * sysdeps/unix/sysv/linux/eventfd.c: Use eventfd1 syscall if possible.
2697         * sysdeps/unix/sysv/linux/paccept.c: New file.
2698         * sysdeps/unix/sysv/linux/signalfd.c: Use signalfd4 syscall if
2699         possible.
2700         * sysdeps/unix/sysv/linux/socketcall.h: Add SOCKOP_paccept.
2701         * sysdeps/unix/sysv/linux/syscalls.list: Add epoll_create2,
2702         inotify_init1, and pipe2 entries.
2703         * sysdeps/unix/sysv/linux/alpha/sys/epoll.h: New file.
2704         * sysdeps/unix/sysv/linux/alpha/sys/eventfd.h: New file.
2705         * sysdeps/unix/sysv/linux/alpha/sys/inotify.h: New file.
2706         * sysdeps/unix/sysv/linux/alpha/sys/signalfd.h: New file.
2707         * sysdeps/unix/sysv/linux/alpha/sys/timerfd.h: New file.
2708         * sysdeps/unix/sysv/linux/bits/socket.h: Define SOCK_CLOEXEC and
2709         SOCK_NONBLOCK.
2710         * sysdeps/unix/sysv/linux/i386/paccept.S: New file.
2711         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: New file.
2712         * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: New file.
2713         * sysdeps/unix/sysv/linux/sparc/sys/inotify.h: New file.
2714         * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h: New file.
2715         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: New file.
2716         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: New file.
2717         * sysdeps/unix/sysv/linux/sys/epoll.h: Define EPOLL_CLOEXEC and
2718         EPOLL_NONBLOCK.  Declare epoll_create2.
2719         * sysdeps/unix/sysv/linux/sys/eventfd.h: Define EFD_CLOEXEC and
2720         EFD_NONBLOCK.
2721         * sysdeps/unix/sysv/linux/sys/inotify.h: Define IN_CLOEXEC and
2722         IN_NONBLOCK.  Declare inotify_init1.
2723         * sysdeps/unix/sysv/linux/sys/signalfd.h: Define SFD_CLOEXEC and
2724         SFD_NONBLOCK.
2725         * sysdeps/unix/sysv/linux/sys/timerfd.h: Define TFD_CLOEXEC and
2726         TFD_NONBLOCK.
2727
2728         * elf/elf.h: Define AT_EXECFN.
2729         * elf/rtld.c [!__ASSUME_AT_EXECFN] (process_envvars): Don't handle
2730         LD_ORIGIN_PATH.
2731         * elf/dl-sysdep.c (_dl_sysdep_start): Handle AT_EXECFN.
2732         * elf/dl-support.c: Define _dl_execfn.  Don't define _dl_origin_path
2733         if __ASSUME_AT_EXECFN is defined.
2734         (_dl_aux_init): Handle AT_EXECFN.
2735         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_AT_EXECFN
2736         for 2.6.27 and up.
2737         * sysdeps/generic/ldsodefs.h (rtld_global_ro): Add _dl_execfn.
2738         Don't define _dl_origin_path if __ASSUME_AT_EXECFN is defined.
2739         * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): Use
2740         _dl_execfn if available and avoid compatibility code if
2741         __ASSUME_AT_EXECFN is defined.
2742
2743         * sysdeps/unix/sysv/linux/dl-sysdep.h: Don't declare
2744         _dl_discover_osversion only for older kernels.
2745
2746 2008-07-22  Roland McGrath  <roland@frob.com>
2747
2748         * hurd/fd-read.c (_hurd_fd_read): Fix last change.
2749
2750 2008-07-21  Roland McGrath  <roland@frob.com>
2751
2752         * hurd/fd-read.c (_hurd_fd_read): Return EGRATUITOUS if the server
2753         returned too much data out of line.
2754
2755 2008-07-20  Ulrich Drepper  <drepper@redhat.com>
2756
2757         * locale/setlocale.c (setname): Remove inline to avoid compiler
2758         warning.
2759
2760         [BZ #6712]
2761         * locale/setlocale.c (setlocale): Take the setlocale lock earlier.
2762
2763 2008-07-15  Ulrich Drepper  <drepper@redhat.com>
2764
2765         * stdio-common/vfprintf.c (_IO_helper_overflow): In case _IO_sputn
2766         doesn't manage to write anything, fail.
2767
2768         * malloc/hooks.c (__malloc_check_init): Remove printf.
2769
2770 2008-07-14  Samuel Thibault  <samuel.thibault@ens-lyon.org>
2771
2772         * sysdeps/mach/hurd/bits/fcntl.h: Include <sys/types.h>.
2773
2774 2008-07-12  Ulrich Drepper  <drepper@redhat.com>
2775
2776         * nscd/connections.c (main_loop_poll): Fix handling of read errors
2777         from inotify.
2778         (main_loop_epoll): Likewise.
2779
2780 2008-07-09  Ulrich Drepper  <drepper@redhat.com>
2781
2782         * resolv/res_send.c: Remove unnecessary res_pquery prototype.
2783
2784         * resolv/res_query.c (__libc_res_nquery): Issue debug message only
2785         if DEBUG is defined.
2786
2787         * resolv/res_query.c (__libc_res_nquery): Align buffer for T_AAAA
2788         query.  Adjust buffer size computation for padding.
2789
2790 2008-07-08  Ulrich Drepper  <drepper@redhat.com>
2791
2792         * stdio-common/Makefile: Add rules to build and run tst-setvbuf1.
2793         * stdio-common/tst-setvbuf1.c: New file.
2794         * stdio-common/tst-setvbuf1.expect: New file.
2795
2796         [BZ #6719]
2797         * libio/iosetvbuf.c (_IO_setvbuf): Correctly clear buffering flags
2798         when selecting fully-buffered stream.
2799         Patch by Wang Xin <wxinee@gmail.com>.
2800
2801 2008-07-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
2802
2803         * sysdeps/mach/hurd/open.c: Include <stdio.h>.
2804         (__open_2): New function.
2805         (__open64_2): New alias to __open_2.
2806         * sysdeps/mach/hurd/openat.c: Include <stdio.h>.
2807         (__openat_2): New function.
2808         (__openat64_2): New alias to __openat_2.
2809
2810 2008-07-06  Ulrich Drepper  <drepper@redhat.com>
2811
2812         [BZ #6723]
2813         * time/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
2814
2815 2008-07-01  Samuel Thibault  <samuel.thibault@ens-lyon.org>
2816
2817         * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Define MSG_NOSIGNAL.
2818         * hurd/hurd/fd.h (__hurd_sockfail): Add extern inline function.
2819         * sysdeps/mach/hurd/recv.c (__recv): Use __hurd_sockfail instead of
2820         __hurd_dfail.
2821         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Likewise.
2822         * sysdeps/mach/hurd/recvmsg.c (__recvmsg): Likewise.
2823         * sysdeps/mach/hurd/send.c (__send): Likewise.
2824         * sysdeps/mach/hurd/sendto.c (__sendfrom): Likewise.
2825         * sysdeps/mach/hurd/sendmsg.c (__sendmsg): Likewise.
2826
2827 2008-03-04  Samuel Thibault  <samuel.thibault@ens-lyon.org>
2828
2829         * sysdeps/mach/hurd/recv.c (__recv): Initialize NPORTS.
2830         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Likewise.
2831         * sysdeps/mach/hurd/recvmsg.c (__recvmsg): Likewise.
2832         * hurd/fd-read.c (_hurd_fd_read): Initialize NREAD.
2833         * hurd/get-host.c (_hurd_get_host_config): Likewise.
2834         * sysdeps/mach/hurd/dl-sysdep.c (__libc_read): Likewise.
2835
2836 2008-06-27  Ulrich Drepper  <drepper@redhat.com>
2837
2838         [BZ #6657]
2839         * time/strptime_l.c: Don't clear s.era_cnt after successful match
2840         of %EY.
2841         Patch by Petr Baudis.
2842
2843 2008-06-26  Ulrich Drepper  <drepper@redhat.com>
2844
2845         * resolv/res_debug.c (__p_type_syms): Add ns_t_dname entry.
2846         Patch by Peter Jones <pjones@redhat.com>.
2847
2848 2008-06-25  Ulrich Drepper  <drepper@redhat.com>
2849
2850         [BZ #6654]
2851         * stdlib/canonicalize.c (__realpath): readlink can write too much
2852         into the buffer on platforms without PATH_MAX.
2853
2854 2008-06-17  Carlos O'Donell  <carlos@codesourcery.com>
2855
2856         [BZ #6653]
2857         * posix/tst-regex.c (main): Rename to...
2858         (do_test): ... this. Remove cmdline option processing.
2859         (TIMEOUT): Define.
2860         (TEST_FUNCTION): Define.
2861         (CMDLINE_OPTIONS): Define.
2862
2863 2008-06-25  Ulrich Drepper  <drepper@redhat.com>
2864
2865         [BZ #5210]
2866         * configure.in: Add -Werror to -fstack-protector test to catch
2867         unsupported architectures.
2868         Patch by Gilles Esponasse <g.esp@free.fr>.
2869
2870 2008-06-17  Joseph Myers  <joseph@codesourcery.com>
2871
2872         * stdlib/tst-setcontext.c: Set back_in_main before exit if
2873         getcontext returns ENOSYS.
2874
2875 2008-06-18  Ulrich Drepper  <drepper@redhat.com>
2876
2877         * nscd/connections.c (main_loop_poll): Fix test for read error.
2878         (main_loop_epoll): Likewise.
2879
2880 2008-06-13  Ulrich Drepper  <drepper@redhat.com>
2881
2882         * sysdeps/posix/getaddrinfo.c: Move _res_hconf_init call to a
2883         better place so it is not called when nscd is used.
2884
2885         * nscd/connections.c: Also recognize and handle changes to the
2886         resolver configuration file.
2887
2888 2008-06-12  Ulrich Drepper  <drepper@redhat.com>
2889
2890         * time/strftime.c: Pass reference to tzset_called around to handle
2891         recursive calls.
2892
2893         [BZ #6612]
2894         * time/strftime.c (__strftime_internal): Call tzset() only
2895         when printing timezone-dependent values.
2896         Based on a patch by Petr Baudis <pasky@suse.cz>.
2897
2898         * resolv/nss_dns/dns-host.c (gaih_getanswer): Don't
2899         unconditionally use second gaih_getanswer_slice result.
2900
2901         * sysdeps/posix/getaddrinfo.c (gai_inet): Remove unnecessary test.
2902         (getaddrinfo): RES must always be non-NULL.
2903
2904 2008-06-12  Jakub Jelinek  <jakub@redhat.com>
2905
2906         * sysdeps/powerpc/powerpc64/fpu/s_llround.S (__llround): Avoid using
2907         cr[34] registers.
2908         * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S (__llroundf): Likewise.
2909         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S (__llround):
2910         Likewise.
2911         * sysdeps/powerpc/powerpc32/fpu/s_lround.S (__lround): Avoid using cr3
2912         register.
2913
2914 2008-06-12  Ulrich Drepper  <drepper@redhat.com>
2915
2916         * nscd/nscd.h (struct database_dyn): Add inotify_descr and clear_cache
2917         fields.
2918         * nscd/connections.c (inotify_fd): New variable.
2919         (nscd_init): Try to open an inotify descriptor.
2920         If successful, watch files for databases using inotify instead of
2921         having prune threads stat the files.
2922         (nscd_run_prune): Recognize clear_cache flag being set and call
2923         prune_cache appropriately.
2924         (main_loop_poll): Add inotify descriptor to wait set and handle the
2925         reported changes.
2926         (main_loop_epoll): Likewise.
2927         * nscd/cache.c (prune_cache): Don't stat files for databases if
2928         inotify is used.
2929         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd]
2930         (CFLAGS-connections.c): Add -DHAVE_INOTIFY.
2931
2932         * nscd/grpcache.c (cache_addgr): Correctly compute size of
2933         fixed-size portion of the record.
2934         * nscd/servicescache.c (cache_addserv): Likewise.
2935         * nscd/pwdcache.c (cache_addpw): Likewise.
2936         * nscd/initgrcache.c (addinitgroupsX): Likewise.
2937
2938 2008-06-11  Ulrich Drepper  <drepper@redhat.com>
2939
2940         * nscd/mem.c (gc): Initialize obstack earlier so that if we jump
2941         out we don't use uninitialized memory.
2942
2943         * nscd/hstcache.c (cache_addhst): Send correct number of bytes to
2944         the client.
2945
2946 2008-06-10  Ulrich Drepper  <drepper@redhat.com>
2947
2948         * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): Also log and
2949         ignore T_DNAME messages.
2950         * resolv/arpa/nameser_compat.h (T_DNAME): Define.
2951
2952 2008-06-05  Jakub Jelinek  <jakub@redhat.com>
2953
2954         * misc/regexp.h (compile): Use __REPB_PREFIX macro.
2955         Avoid segfault if first GETC returns eof/'\0'/'\n'.
2956
2957 2008-06-03  Jakub Jelinek  <jakub@redhat.com>
2958
2959         * nscd/nscd_getserv_r.c (__nscd_getservbyport_r): Pass cp
2960         instead of portstr to nscd_getserv_r.  Patch by
2961         Roman Kagan <rkagan@mail.ru>.
2962
2963 2008-05-26  Jim Meyering  <meyering@redhat.com>
2964
2965         Remove more useless "if" tests before "free".
2966         * include/inline-hashtab.h (htab_delete): Likewise.
2967         * libio/freopen.c (freopen): Likewise.
2968         * libio/freopen64.c (freopen64): Likewise.
2969         * locale/programs/ld-collate.c (collate_read): Likewise.
2970         * misc/fstab.c (libc_freeres_fn): Likewise.
2971         * posix/glob.c (globfree): Likewise.
2972
2973 2008-05-24  Ulrich Drepper  <drepper@redhat.com>
2974
2975         * string/Makefile (strop-tests): Add memmem.
2976         * string/test-memmem.c: New file.
2977         * string/test-string.h (BUF1PAGES): Define to 1 if undefined.
2978         (test_init): Size buf1 according to BUF1PAGES.
2979
2980 2008-05-24  Jakub Jelinek  <jakub@redhat.com>
2981
2982         * libio/stdio.h (vscanf): Fix -std=c99 redirect.
2983         * stdio-common/Makefile (tests): Add scanf16 and scanf17.
2984         (CFLAGS-scanf17.c): New.
2985         * stdio-common/scanf14.c (main): Add fscanf and scanf tests.
2986         * stdio-common/scanf15.c (main): Likewise.
2987         * stdio-common/scanf16.c: New file.
2988         * stdio-common/scanf17.c: New file.
2989
2990 2008-05-24  Ulrich Drepper  <drepper@redhat.com>
2991
2992         * resolv/res_send.c (send_dg): If we already have one of two
2993         answers and the server reports SERVFAIL, NOTIMP, or REFUSED, then
2994         use the one answer insted of failing.
2995
2996 2008-02-20  Ryan S. Arnold  <rsa@us.ibm.com>
2997
2998         * math/libm-test.inc (exp_test): Exclude expl(1000.0L) from
2999         being executed on PowerPC as the expected result exceeds IBM
3000         long double 128 __LDBL_MAX__.
3001
3002 2008-05-21  Roland McGrath  <roland@redhat.com>
3003
3004         * shlib-versions (sparc.*-.*-.*, sparc64.*-.*-.*): Add ABI lines.
3005
3006         * Makefile (check-data): Use $(abi-name) before other guesses.
3007         Look in $(add-ons) dirs before scripts/data/.
3008         * elf/Makefile (check-data): Likewise.
3009
3010         * scripts/soversions.awk: Grok ABI line.
3011         * Makeconfig ($(common-objpfx)soversions.mk): Likewise.
3012         Emit definition for abi-name variable.
3013
3014 2008-05-21  Ulrich Drepper  <drepper@redhat.com>
3015
3016         * string/endian.h: Define new fixed-size hto* and *toh macros only
3017         if [__USE_BSD].
3018
3019         * iconvdata/Depend: Add localedata.
3020
3021 2008-05-21  Samuel Thibault  <samuel.thibault@ens-lyon.org>
3022
3023         * bits/termios.h (ONLCR): Define under [__USE_XOPEN] too.
3024
3025 2008-05-08  David S. Miller  <davem@davemloft.net>
3026
3027         * sysdeps/unix/sysv/linux/sparc/sparc32/setcontext.S: Use
3028         HIDDEN_JUMPTARGET.
3029         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
3030         (__SYSCALL_CLOBBERS): Remove %g* registers.
3031         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
3032         (__SYSCALL_CLOBBERS): Likewise.
3033         * scripts/data/localplt-sparc-linux-gnu.data: New file.
3034         * scripts/data/localplt-sparc64-linux-gnu.data: New file.
3035
3036 2008-05-21  Jakub Jelinek  <jakub@redhat.com>
3037
3038         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
3039         (CALL_ERRNO_LOCATION): Define.
3040         (__SYSCALL_STRING, __CLONE_SYSCALL_STRING): Use it.
3041         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
3042         (CALL_ERRNO_LOCATION): Define.
3043         (__SYSCALL_STRING, __CLONE_SYSCALL_STRING): Use it.
3044         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S (__brk): Use
3045         HIDDEN_JUMPTARGET for __errno_location call in libc.so.
3046
3047 2008-05-20  Ulrich Drepper  <drepper@redhat.com>
3048
3049         * include/inline-hashtab.h (higher_prime_number): Fix type of mid
3050         variable.
3051
3052 2008-05-20  Jakub Jelinek  <jakub@redhat.com>
3053
3054         * sysdeps/unix/sysv/linux/sparc/sparc32/sigcontextinfo.h
3055         (FIRST_FRAME_POINTER): Define.
3056
3057 2008-05-09  David S. Miller  <davem@davemloft.net>
3058
3059         * sysdeps/sparc/sparc64/backtrace.c: New file.
3060
3061 2008-05-14  David S. Miller  <davem@davemloft.net>
3062
3063         * sysdeps/sparc/machine-gmon.h: New file.
3064         * sysdeps/sparc/sparc-mcount.S: Likewise.
3065         * sysdeps/sparc/Makefile: Add sparc-mcount target to
3066         sysdep_routines in gmon directory.
3067
3068 2008-05-19  Jakub Jelinek  <jakub@redhat.com>
3069
3070         * elf/soinit.c (__EH_FRAME_BEGIN__): Remove.
3071
3072 2008-05-19  Ulrich Drepper  <drepper@redhat.com>
3073
3074         * resolv/res_query.c (__libc_res_nquery): In case one of two
3075         answer was too short don't try to read that answer's header.
3076
3077         * resolv/res_send.c (send_dg): In case of timeout and there are
3078         two queries and one has been answered, return value indicating
3079         success.
3080
3081 2008-05-18  Ulrich Drepper  <drepper@redhat.com>
3082
3083         * nscd/cache.c (cache_add): Take additional parameter specifying
3084         whether this is in response of a cache refill.  Check alignment
3085         of package data.  Revamp waking of pruning thread.
3086         (prune_cache): Small optimization.
3087         * nscd/nscd.h: Adjust cache_add prototypes.
3088         * nscd/aicache.c: Adjust cache_add calls.
3089         * nscd/grpcache.c: Likewise.
3090         * nscd/hstcache.c: Likewise.
3091         * nscd/initgrcache.c: Likewise.
3092         * nscd/pwdcache.c: Likewise.
3093         * nscd/servicescache.c: Likewise.
3094         * nscd/connections.c (restart): Really disable cache use before
3095         exec attempt.  If it fails, reenable cache.
3096         (nscd_run_prune): Initialize wakeup_time.  After wakeup, set wakeup
3097         time to max to be able to notice concurrent cache additions.  Unlock
3098         prune_lock while performing gc.  Afterwards compute wakeup time with
3099         current wakeup_time value in mind.
3100
3101 2008-05-17  Ulrich Drepper  <drepper@redhat.com>
3102
3103         * nscd/mem.c (gc): Avoid stack overflow when allocating move list.
3104
3105         * nscd/mem.c (gc): Correctly determine highest used array element
3106         in mark.
3107
3108         * nscd/mem.c (markrange): Add assert to check entries are all
3109         aligned.  Small cleanup in bitmap use.
3110
3111         * nscd/nscd.h (mem_in_flight): Replace blockaddr field with
3112         blockoff of type nscd_ssize_t.
3113         * nscd/mem.c (gc): Simplify markrange call for on-flight blocks.
3114         (mempoll_alloc): Record block offset and not address.
3115
3116         * nscd/mem.c (gc): Fix test for stack overuse.
3117
3118         * nscd/aicache.c (addhstaiX): Fix a few small problems, cleanups,
3119         more asserts.
3120
3121         * sysdeps/posix/getaddrinfo.c (gaih_inet): If nscd reports no
3122         entry is available, believe it.
3123
3124         * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): If there are
3125         no answers return NSS_STATUS_NOTFOUND.
3126         (gaih_getanswer): Don't call gaih_getanswer_slice if the answer
3127         buffer does not have any content.
3128
3129 2008-05-16  Ulrich Drepper  <drepper@redhat.com>
3130
3131         * string/strcasestr.c (CMP_FUNC): Use __strncasecmp, not strncasecmp.
3132
3133         * sysdeps/posix/getaddrinfo.c (gaih_inet): After gethostbyname4_r
3134         lookup, don't assign canon unconditionally.
3135
3136 2008-05-14  Ulrich Drepper  <drepper@redhat.com>
3137
3138         * string/Makefile (distribute): Add str-two-way.h.
3139
3140 2008-03-29  Eric Blake  <ebb9@byu.net>
3141
3142         Rewrite string searches to O(n) rather than O(n^2).
3143         * string/str-two-way.h: New file.  For linear fixed-allocation
3144         string searching.
3145         * string/memmem.c: New implementation.
3146         * string/strstr.c: New implementation.
3147         * string/strcasestr.c: New implementation.
3148
3149 2008-04-11  Paolo Bonzini  <bonzini@gnu.org>
3150
3151         * posix/regcomp.c (optimize_utf8): Add a note on why we test
3152         opr.ctx_type.
3153         (calc_first): Initialize constraint field.
3154         (duplicate_node_closure): Use it instead of special casing ANCHORS.
3155         Use search_duplicated_node to avoid loops.  Fix grammar.
3156         (duplicate_node): Merge constraint field for all node types.
3157         (calc_eclosure_iter): Look at constraint field for all node types.
3158         * posix/regex_internal.c (create_cd_newstate): Don't look at
3159         create_cd_newstate.
3160
3161 2008-05-14  Ulrich Drepper  <drepper@redhat.com>
3162
3163         [BZ #6428]
3164         * configure.in: Don't use $CFLAGS when assembling, use $ASFLAGS.
3165
3166         [BZ #6442]
3167         * string/endian.h: Add macros for fixed-size endian conversion.
3168         * bits/byteswap.h: Allow inclusion from <endian.h>.
3169         * sysdeps/i386/bits/byteswap.h: Likewise.
3170         * sysdeps/ia64/bits/byteswap.h: Likewise.
3171         * sysdeps/s390/bits/byteswap.h: Likewise.
3172         * sysdeps/x86_64/bits/byteswap.h: Likewise.
3173         * string/Makefile (tests): Add tst-endian.
3174         * string/tst-endian.c: New file.
3175
3176         * iconvdata/run-iconv-test.sh: Use = instead of == in test.
3177         Patch by Reuben Thomas.
3178
3179 2008-05-14  Joseph Myers  <joseph@codesourcery.com>
3180
3181         * iconvdata/Makefile (bug-iconv6-ENV, tst-iconv7-ENV): Define.
3182
3183 2008-05-14  Ulrich Drepper  <drepper@redhat.com>
3184
3185         * iconvdata/bug-iconv6.c (do_test): Use de_DE.UTF-8 locale.
3186
3187         [BZ #6461]
3188         * iconv/gconv_simple.c (BODY for __gconv_transform_ascii_internal):
3189         Add missing braces.
3190         (BODY for __gconv_transform_internal_ascii): Likewise.
3191
3192         [BZ #6472]
3193         * sysdeps/posix/getaddrinfo.c (get_scope): Loopback addresses have
3194         to be treated like link-local addresses.
3195         (match_prefix): Don't treat IPv4 loopback address special when
3196         converting to v4 mapped addressed.
3197
3198         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Call _res_hconf_init
3199         if necessary.
3200         * posix/tst-rfc3484.c: Add dummy definition of _res_hconf_init.
3201         * posix/tst-rfc3484-2.c: Likewise.
3202         * posix/tst-rfc3484-3.c: Likewise.
3203
3204         * sysdeps/posix/getaddrinfo.c: Implement handling of DCCP, UDPlite,
3205         and SCTP.
3206
3207         * nss/getent.c (ahosts_keys_int): Handle all known socket types.
3208
3209         * inet/netinet/in.h (IPPIPPROTO_DCCP, IPPROTO_UDPLITE): Define.
3210
3211         * sysdeps/unix/sysv/linux/bits/socket.h (SOCK_DCCP): Define.
3212
3213 2008-05-13  Ulrich Drepper  <drepper@redhat.com>
3214
3215         * po/lt.po: New file.  From Lituanian translation team.
3216
3217 2008-01-30  Alexandre Oliva  <aoliva@redhat.com>
3218
3219         Introduce TLS descriptors for i386 and x86_64.
3220         * include/inline-hashtab.h: New file, copied from 2005's
3221         libiberty, with fix for memory leak imported afterwards by
3222         Glauber de Oliveira Costa.
3223         * elf/tlsdeschtab.h: New file.
3224         * elf/dl-reloc.c (_dl_try_allocate_static_tls): Extract from...
3225         (_dl_allocate_static_tls): ... here.  Rearrange failure path.
3226         (CHECK_STATIC_TLS): Move to...
3227         * elf/dynamic-link.h: ... this file.
3228         (TRY_STATIC_TLS): New macro.
3229         * elf/dl-conflict.c (CHECK_STATIC_TLS, TRY_STATIC_TLS): Override.
3230         * elf/elf.h (R_386_TLS_GOTDESC, R_386_TLS_DESC_CALL,
3231         R_386_TLS_DESC): Define.
3232         (R_X86_64_PC64, R_X86_GOTOFF64, R_X86_64_GOTPC32): Merge from
3233         binutils.
3234         (R_X86_64_GOTPC32_TLSDESC, R_X86_64_TLSDESC_CALL,
3235         R_X86_64_TLSDESC): Define.
3236         (R_386_NUM, R_X86_64_NUM): Adjust.
3237         * sysdeps/i386/Makefile (sysdep-dl-routines, sysdep_routines,
3238         sysdep-rtld-routines): Add tlsdesc and dl-tlsdesc for elf subdir.
3239         (gen-as-const-headers): Add tlsdesc.sym to csu subdir.
3240         * sysdeps/i386/dl-lookupcfg.h: New file.  Introduce _dl_unmap to
3241         release tlsdesc_table.
3242         * sysdeps/i386/dl-machine.h: Include dl-tlsdesc.h.
3243         (elf_machine_type_class): Mark R_386_TLS_DESC as PLT class.
3244         (elf_machine_rel): Handle R_386_TLS_DESC.
3245         (elf_machine_rela): Likewise.
3246         (elf_machine_lazy_rel): Likewise.
3247         (elf_machine_lazy_rela): Likewise.
3248         * sysdeps/i386/dl-tls.h (struct dl_tls_index): Name it.
3249         * sysdeps/i386/dl-tlsdesc.S: New file.
3250         * sysdeps/i386/dl-tlsdesc.h: New file.
3251         * sysdeps/i386/tlsdesc.c: New file.
3252         * sysdeps/i386/tlsdesc.sym: New file.
3253         * sysdeps/i386/bits/linkmap.h (struct link_map_machine): Add
3254         tlsdesc_table.
3255         * sysdeps/x86_64/Makefile (sysdep-dl-routines, sysdep_routines,
3256         sysdep-rtld-routines): Add tlsdesc and dl-tlsdesc for elf subdir.
3257         (gen-as-const-headers): Add tlsdesc.sym to csu subdir.
3258         * sysdeps/x86_64/dl-lookupcfg.h: New file.  Introduce _dl_unmap to
3259         release tlsdesc_table.
3260         * sysdeps/x86_64/dl-machine.h: Include dl-tlsdesc.h.
3261         (elf_machine_runtime_setup): Set up lazy TLSDESC GOT entry.
3262         (elf_machine_type_class): Mark R_X86_64_TLSDESC as PLT class.
3263         (elf_machine_rel): Handle R_X86_64_TLSDESC.
3264         (elf_machine_rela): Likewise.
3265         (elf_machine_lazy_rel): Likewise.
3266         * sysdeps/x86_64/dl-tls.h (struct dl_tls_index): Name it.
3267         (__tls_get_addr): Do not declare for non-shared compiles.
3268         * sysdeps/x86_64/dl-tlsdesc.S: New file.
3269         * sysdeps/x86_64/dl-tlsdesc.h: New file.
3270         * sysdeps/x86_64/tlsdesc.c: New file.
3271         * sysdeps/x86_64/tlsdesc.sym: New file.
3272         * sysdeps/x86_64/bits/linkmap.h (struct link_map_machine): Add
3273         tlsdesc_table for both 32- and 64-bit structs.
3274
3275 2008-05-11  Ulrich Drepper  <drepper@redhat.com>
3276
3277         * elf/dl-tls.c (__tls_get_addr): Optimize by moving slow path in
3278         its own function.  This reduces the frame setup costs and more.
3279
3280 2008-02-11  Joseph Myers  <joseph@codesourcery.com>
3281
3282         [BZ #3406]
3283         * sysdeps/ieee754/flt-32/w_expf.c (o_threshold): Correct value.
3284         * math/libm-test.inc (exp_test): Test 88.72269439697265625.
3285
3286 2008-05-11  Ulrich Drepper  <drepper@redhat.com>
3287
3288         * io/openat.c (__openat_2): Also pass fd to __openat.
3289         * io/openat64.c (__openat64_2): Also pass fd to __openat64.
3290         Patch by Kristian Van Der Vliet <vanders@liqwyd.com>.
3291
3292         * string/tester.c (test_memcmp): Add a few more tests.
3293         Patch by Mats Erik Andersson <ynglingatal@comhem.se>.
3294
3295 2008-05-10  Ulrich Drepper  <drepper@redhat.com>
3296
3297         * nscd/cache.c (cache_add): Before returning with failure and this
3298         is the first use of the record, mark it as unusable.
3299         * nscd/aicache.c: Don't touch the dataset after cache_add returns
3300         reporting a failure.
3301         * nscd/grpcache.c: Likewise
3302         * nscd/hstcache.c: Likewise.
3303         * nscd/initgrcache.c: Likewise.
3304         * nscd/pwdcache.c: Likewise.
3305         * nscd/servicescache.c: Likewise.
3306
3307 2008-05-10  Roland McGrath  <roland@redhat.com>
3308
3309         [BZ #6505]
3310         * sysdeps/unix/sysv/linux/sys/user.h: Replace with #error stub.
3311
3312 2008-05-08  David S. Miller  <davem@davemloft.net>
3313
3314         * misc/truncate64.c (truncate64): Use __truncate not truncate.
3315
3316         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee751_j0l): Use __finitel.
3317         (__ieee754_y0l): Likewise.
3318         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Likewise.
3319         (__ieee754_y1l): Likewise.
3320         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Use __ldexpl.
3321         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Kill bogus prototypes for
3322         frexpl and ldexpl.  math_private.h provides them and the latter
3323         is not even used.
3324         (__log1pl): Use __frexpl.
3325
3326 2008-05-10  Ulrich Drepper  <drepper@redhat.com>
3327
3328         * include/resolv.h: Adjust __libc_res_nquery and __libc_res_nsend
3329         prototypes.
3330         * include/arpa/nameser_compat.h: Define T_UNSPEC.
3331         * nis/Versions (libnss_nis): Export _nss_nis_gethostbyname4_r.
3332         (libnss_nisplus): Export _nss_nisplus_gethostbyname4_r.
3333         * nis/nss_nis/nis-hosts.c (LINE_PARSER): Change to also handle
3334         af==AF_UNSPEC.
3335         (_nss_nis_gethostbyname4_r): New function.
3336         * nis/nss_nisplus/nisplus-hosts.c (_nss_nisplus_parse_hostent):
3337         Change to also handle af==AF_UNSPEC.
3338         (get_tablename): New function.  Use it to avoid duplication.
3339         (_nss_nisplus_gethostbyname4_r): New function.
3340         * nscd/aicache.c (addhstaiX): Use gethostbyname4_r function is
3341         available.
3342         * nss/Versions (libnss_files): Export _nss_files_gethostbyname4_r.
3343         * nss/nss.h: Define struct gaih_addrtuple.
3344         * nss/nss_files/files-hosts.c (LINE_PARSER): Change to also handle
3345         af==AF_UNSPEC.
3346         (_nss_files_gethostbyname4_r): New function.
3347         * resolv/Versions (libnss_dns): Export _nss_dns_gethostbyname4_r.
3348         * resolv/gethnmaddr.c: Adjust __libc_res_nsearch and __libc_res_nquery
3349         calls.
3350         * resolv/res_query.c (__libc_res_nquery): Take two additional
3351         parameters for second answer buffer.  Handle type=T_UNSPEC to mean
3352         look up IPv4 and IPv6.
3353         Change all callers.
3354         * resolv/res_send.c (__libc_res_nsend): Take five aditional parameters
3355         for an additional query and answer buffer.  Pass to send_vc and
3356         send_dg.
3357         (send_vc): Send possibly two requests and receive two answers.
3358         (send_dg): Likewise.
3359         * resolv/nss_dns/dns-host.c: Adjust calls to __libc_res_nsearch and
3360         __libc_res_nquery.
3361         (_nss_dns_gethostbyname4_r): New function.
3362         (gaih_getanswer_slice): Likewise.
3363         (gaih_getanswer): Likewise.
3364         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Adjust
3365         __libc_res_nquery call.
3366         * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r): Likewise.
3367         (_nss_dns_getnetbyname_r): Adjust __libc_res_nsearch call.
3368         * sysdeps/posix/getaddrinfo.c: Use gethostbyname4_r function is
3369         available.
3370
3371 2008-05-05  David S. Miller  <davem@davemloft.net>
3372
3373         * sysdeps/sparc/sparc32/Makefile: Use -mcpu=v7 for initfini.s build.
3374         * sysdeps/sparc/sparc64/Makefile: Use -mcpu=v9 for initfini.s build.
3375
3376 2007-09-14  Samuel Thibault  <samuel.thibault@ens-lyon.org>
3377
3378         Fix termios bit macros.
3379         Move *DLY definitions where they belong, in termios.h.
3380         Add *[0-3] definitions.
3381         Fixes confusion between VT and FF.
3382         * sysdeps/mach/hurd/bits/ioctls.h (NL0, NL1, TAB0, TAB1, TAB2, CR0,
3383         CR1, CR2, CR3, FF0, FF1, BS0, BS1): Undefine these at start if they
3384         are already defined to avoid collision with termios.h.
3385         (NLDLY, TABDLY, TAB3, CRDLY, VTDLY, BSDLY): Remove macros.
3386         * bits/termios.h [__USE_MISC || __USE_XOPEN] (NL0, NL1, TAB0,
3387         TAB1, TAB2, CR0, CR1, CR2, CR3, FF0, FF1, BS0, BS1): Likewise.
3388         [__USE_BSD || __USE_XOPEN] (OCRNL, ONOCR, ONLRET): New macros.
3389         [__USE_MISC || __USE_XOPEN] (NLDLY, NL0, NL1, TABDLY, TAB0, TAB1, TAB2,
3390         TAB3, CRDLY, CR0, CR1, CR2, CR3, FFDLY, FF0, FF1, BSDLY, BS0, BS1,
3391         VTDLY, VT0, VT1): New macros.
3392         [__USE_GNU] (OLCUC): Change value of macro.
3393         [__USE_XOPEN] (OFILL): New macro.
3394         [__USE_BSD] (CRTSCTS): Change value.
3395         (CRTS_IFLOW, CCTS_OFLOW): Change into compatibility macros.
3396         [__USE_BSD] (CDTRCTS, CHWFLOW): New macros.
3397         (B7200, B14400, B28800, B76800): New macros.
3398
3399 2008-05-01  David S. Miller  <davem@davemloft.net>
3400
3401         * sysdeps/unix/sysv/linux/sparc/sparc32/ucontext_i.sym: New file.
3402         * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile [$(subdir) = stdlib]:
3403         (gen-as-const-headers): Add it.
3404         * sysdeps/unix/sysv/linux/sparc/sparc32/getcontext.S: New file.
3405         * sysdeps/unix/sysv/linux/sparc/sparc32/makecontext.c: Likewise.
3406         * sysdeps/unix/sysv/linux/sparc/sparc32/setcontext.S: Likewise.
3407         * sysdeps/unix/sysv/linux/sparc/sparc32/swapcontext.S: Likewise.
3408
3409         * sysdeps/unix/sysv/linux/sparc/sparc32/syscall.S: Add support for
3410         six system call parameters.
3411         * sysdeps/unix/sysv/linux/sparc/sparc64/syscall.S: Likewise.
3412
3413 2008-04-30  Ulrich Drepper  <drepper@redhat.com>
3414
3415         * sysdeps/unix/sysv/linux/bits/resource.h: Define RUSAGE_THREAD and
3416         RUSAGE_LWP.
3417         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
3418         * sysdeps/unix/sysv/linux/alpha/bits/resource.h: Likewise.
3419
3420 2008-04-30  Jakub Jelinek  <jakub@redhat.com>
3421
3422         * stdlib/tst-setcontext.c: Include unistd.h.
3423
3424 2008-04-25  David S. Miller  <davem@davemloft.net>
3425
3426         * sysdeps/unix/sysv/linux/sparc/sparc64/semctl.c (semctl):
3427         Pass "union semun" properly in to sys_ipc, it must be passed
3428         by value, not by reference.
3429
3430 2008-04-22  Jakub Jelinek  <jakub@redhat.com>
3431
3432         * nscd/Makefile (nscd-cflags): Set back to -fpie.
3433         * nscd/nscd.h (mem_in_flight): Add attribute_tls_model_ie.
3434         * nscd/connections.c (mem_in_flight): Likewise.
3435
3436         * nscd/nscd.h (dbs): Make hidden.
3437
3438         * sysdeps/unix/sysv/linux/times.c (__times): Fix check for EFAULT.
3439         Avoid returning -1, return 0 instead.
3440
3441 2008-04-19  Ulrich Drepper  <drepper@redhat.com>
3442
3443         * resolv/res_mkquery.c (__res_nopt): Use NS_PUT16 instead of ns_put16.
3444
3445 2008-04-15  Ulrich Drepper  <drepper@redhat.com>
3446
3447         [BZ #5209]
3448         * sysdeps/unix/sysv/linux/times.c: New file.
3449
3450         [BZ #5381]
3451         * nscd/nscd.h: Define enum in_flight, mem_in_flight, and
3452         mem_in_flight_list variables.  Add new parameter to mempool_alloc
3453         prototype.
3454         * nscd/mem.c (mempool_alloc): Take additional parameter.  Initialize
3455         appropriate mem_in_flight element.
3456         (gc): Take allocations which have not yet been committed to the
3457         database into account.
3458         * nscd/cache.c (cache_add): Add new parameter to mempool_alloc call.
3459         Reset mem_in_flight before returning.
3460         * nscd/connections.c (nscd_run_worker): Initialize mem_in_flight and
3461         cue it up in mem_in_flight_list.
3462         * nscd/aicache.c: Adjust mempool_alloc call.
3463         * nscd/grpcache.c: Likewise.
3464         * nscd/hstcache.c: Likewise.
3465         * nscd/initgrcache.c: Likewise.
3466         * nscd/pwdcache.c: Likewise.
3467         * nscd/servicescache.c: Likewise.
3468         * nscd/Makefile (nscd-flags): Until ld is fixed, use -fpic instead
3469         of -fpie.
3470
3471         * nscd/connections.c (handle_request): Provide better error message
3472         in case SELinux forbids the service.
3473
3474         * version.h (VERSION): Bump to 2.8.90.
3475
3476 2008-04-17  Jakub Jelinek  <jakub@redhat.com>
3477
3478         * sysdeps/unix/sysv/linux/dl-osinfo.h: Include fcntl.h.
3479
3480 2008-04-11  Ulrich Drepper  <drepper@redhat.com>
3481
3482         * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h (__signbitl):
3483         Also use for 32-bit.
3484         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c (__nearbyintl): Use
3485         __nextafter instead of nextafter to avoid local PLT.
3486         * sysdeps/powerpc/fpu/e_sqrt.c: Avoid call to fetestexcept.
3487         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
3488
3489         * scripts/data/localplt-powerpc64-linux-gnu.data: New file.
3490
3491         * sysdeps/powerpc/fpu/fenv_libc.h: Add libm_hidden_proto for
3492         __fe_nomask_env.
3493         * sysdeps/powerpc/fpu/fe_nomask.c: Add libm_hidden_def.  Include
3494         <fenv_libc.h> instead of <fenv.h>.
3495         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c: Likewise.
3496         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c: Likewise.
3497
3498         * sysdeps/powerpc/bits/fenv.h: Make safe for C++.
3499
3500         * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h: New file.
3501         * sysdeps/powerpc/fpu/fegetexcept.c (__fegetexcept): Rename
3502         function from fegetexcept and make old name weak alias.
3503         * include/fenv.h: Declare __fegetexcept.
3504         * sysdeps/powerpc/fpu/fedisblxcpt.c: Use __fegetexcept instead of
3505         fegetexcept.
3506         * sysdeps/powerpc/fpu/feenablxcpt.c: Likewise.
3507         * sysdeps/powerpc/fpu/fraiseexcpt.c (__feraiseexcept): Avoid call
3508         to fetestexcept.
3509         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Use __frexpl
3510         instead of frexpl to avoid local PLT.
3511         * math/s_significandl.c (__significandl): Use __ilogbl instead of
3512         ilogbl to avoid local PLT.
3513         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Use __ldexpl
3514         instead of ldexpl to avoid local PLT.
3515         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (__ieee754_expl): Use
3516         __roundl not roundl to avoid local PLT.
3517         * sysdeps/ieee754/ldbl-128/e_j0l.c: Use function names which avoid
3518         local PLTs.  Use __sincosl instead of separate sinl and cosl
3519         calls.
3520         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
3521
3522         * sysdeps/unix/sysv/linux/configure.in: Bump minimal kernel
3523         version for ppc64 to 2.4.21 since without it makecontext will fail.
3524
3525         * elf/tls-macros.h [__powerpc64__] (__TLS_GET_ADDR): Define according
3526         to the ABI in use.
3527         [__powerpc64__] (TLS_LD): Use __TLS_GET_ADDR instead of
3528         .__tls_get_addr.
3529         [__powerpc64__] (TLS_GD): Likewise.
3530
3531 2007-11-20  Ryan S. Arnold  <rsa@us.ibm.com>
3532
3533         [BZ #4997]
3534         * sysdeps/powerpc/powerpc32/fpu/s_lround.S (__lround): Fixed erroneous
3535         result when x is +/-nextafter(+/-0.5,-/+1) i.e. all 1's in the
3536         mantissa.
3537         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S (__llround):
3538         Likewise.  Also account for when x is an odd number between 2^52
3539         and 2^53-1.
3540         * sysdeps/powerpc/powerpc64/fpu/s_llround.S (__llround): Likewise.
3541         * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S (__llroundf): Likewise.
3542         * math/libm-test.inc (lround_test, llround_test): Added test cases to
3543         detect aforementioned erroneous conditions.
3544
3545 2008-04-11  Jakub Jelinek  <jakub@redhat.com>
3546
3547         * configure.in: Check for -fno-section-anchors in addition to
3548         -fno-toplevel-reorder.
3549
3550 2008-04-11  Ulrich Drepper  <drepper@redhat.com>
3551
3552         * include/features.h (__GLIBC_MINOR__): Bump to 8.
3553
3554         * sysdeps/powerpc/powerpc32/fpu/s_lroundf.S: Remove duplicate comment.
3555         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llroundf.S: Likewise.
3556         * sysdeps/powerpc/powerpc32/power6/fpu/s_llroundf.S: Likewise.
3557         * sysdeps/powerpc/powerpc64/fpu/s_lrint.S: Likewise.
3558         * sysdeps/powerpc/powerpc64/fpu/s_lround.S: Likewise.
3559         * sysdeps/powerpc/powerpc64/fpu/s_lroundf.S: Likewise.
3560
3561 2008-04-11  Jakub Jelinek  <jakub@redhat.com>
3562
3563         [BZ #5443]
3564         * time/era.c: Transform __libc_setlocale_lock into rwlock.
3565         * time/alt_digit.c: Likewise.
3566         * wcsmbs/wcsmbsload.c: Likewise.
3567
3568 2008-04-10  Ulrich Drepper  <drepper@redhat.com>
3569
3570         * version.h (VERSION): Bump to 2.8.
3571
3572         * timzeone/asia: Update from tzdata2008b.
3573         * timezone/backward: Likewise.
3574         * timezone/europe: Likewise.
3575         * timezone/northamerica: Likewise.
3576         * timezone/southamerica: Likewise.
3577         * timezone/iso3166.tab: Likewise.
3578         * timezone/leapseconds: Likewise.
3579         * timezone/zone.tab: Likewise.
3580         * timezone/private.h: Update from tzcode2008a.
3581         * timezone/zdump.c: Likewise.
3582         * timezone/zic.c: Likewise.
3583
3584 2008-01-24  Steven Munroe  <sjmunroe@us.ibm.com>
3585
3586         [BZ #5741]
3587         * sysdeps/powerpc/powerpc64/dl-machine.h (PPC_DCBT, PPC_DCBF):
3588         Define additonal Data Cache Block instruction macros.
3589         (elf_machine_fixup_plt): Add dcbt for opd and plt entries.
3590         Replace dcbst with dcbf and sync with sync/isync.
3591
3592 2008-02-21  Alan Modra  <amodra@bigpond.net.au>
3593
3594         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_type_class):
3595         Always set ELF_RTYPE_CLASS_PLT.
3596         (elf_machine_lookup_noexec_p, elf_machine_lookup_noplt_p): Delete.
3597
3598 2008-04-03  Steven Munroe  <sjmunroe@us.ibm.com>
3599
3600         * sysdeps/powerpc/powerpc32/power4/hp-timing.c: New file.
3601         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: New file.
3602         * sysdeps/powerpc/powerpc64/hp-timing.h [_ARCH_PWR4] (HP_TIMING_NOW):
3603         For ISA 2.01 and later replace mftb with mfspr 268.
3604
3605 2008-02-19  Steven Munroe  <sjmunroe@us.ibm.com>
3606
3607         [BZ #5768]
3608         * sysdeps/powerpc/fpu/Makefile (libm-tests): Add test-powerpc-snan.
3609         * sysdeps/powerpc/fpu/test-powerpc-snan.c: New file.
3610
3611 2008-02-18  Steven Munroe  <sjmunroe@us.ibm.com>
3612
3613         [BZ #5768]
3614         * sysdeps/powerpc/powerpc32/fpu/s_isnan.S: New file.
3615         * sysdeps/powerpc/powerpc32/fpu/s_isnan.c: Removed.
3616         * sysdeps/powerpc/powerpc64/fpu/s_isnan.S: New file.
3617         * sysdeps/powerpc/powerpc64/fpu/s_isnan.c: Removed.
3618
3619 2008-04-10  Jakub Jelinek  <jakub@redhat.com>
3620
3621         * stdlib/tst-makecontext.c (othervar): New variable.
3622         (cf): Test sign extending the argument to long.
3623
3624 2008-03-03  Steven Munroe  <sjmunroe@us.ibm.com>
3625
3626         * sysdeps/powerpc/powerpc32/power5/fpu/s_isnan.S: New file.
3627         * sysdeps/powerpc/powerpc32/power5/fpu/s_isnanf.S: New file.
3628         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnan.S: New file.
3629         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S: New file.
3630         * sysdeps/powerpc/powerpc64/power5/fpu/s_isnan.S: New file.
3631         * sysdeps/powerpc/powerpc64/power6/fpu/s_isnan.S: New file.
3632         * sysdeps/powerpc/powerpc64/power6x/fpu/s_isnan.S: New file.
3633
3634 2008-02-22  Alan Modra  <amodra@bigpond.net.au>
3635
3636         * elf/Makefile (tests): Substitute tests-vis-yes here.
3637         (tests-vis-yes): Delete.
3638         (modules-name, modules-vis-yes): Similarly.
3639
3640 2008-02-12  Pete Eberlein  <eberlein@us.ibm.com>
3641
3642         [BZ #4407]
3643         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
3644         Preserve sign in signgamp when x is zero.
3645
3646 2007-10-26  Steven Munroe  <sjmunroe@us.ibm.com>
3647
3648         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: New File.
3649         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.c: Removed.
3650         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: New File.
3651         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.c: Removed.
3652         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: New File.
3653         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: New File.
3654
3655 2008-04-09  Ulrich Drepper  <drepper@redhat.com>
3656
3657         [BZ #4314]
3658         * sysdeps/i386/i686/memcpy.S: Optimize copying of equally aligned
3659         buffers.
3660
3661         [BZ #5209]
3662         * sysdeps/unix/sysv/syscalls.list: The times syscall doesn't have
3663         a reserved error value.
3664
3665         * stdlib/tst-makecontext.c: Change parameter to cf to negative
3666         value to check for correct sign extension.
3667
3668         [BZ #5436]
3669         * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
3670         Copy 64-bit parameter values even though this is not required in
3671         the standard.
3672
3673         * sysdeps/unix/sysv/linux/x86_64/vfork.S (__vfork): Record return
3674         PC save.
3675
3676 2008-02-14  Daniel Jacobowitz  <dan@codesourcery.com>
3677
3678         * sysdeps/unix/sysv/linux/i386/vfork.S (__vfork): Record return
3679         PC save.
3680
3681 2008-04-09  Jakub Jelinek  <jakub@redhat.com>
3682
3683         * nss_files/files-XXX.c (_nss_files_getXXent_r): Restore saved errno.
3684
3685 2008-04-09  Ulrich Drepper  <drepper@redhat.com>
3686
3687         [BZ #5998]
3688         * libio/iofwrite.c (_IO_fwrite): Return correct count if flushing
3689         in line-buffered stream failed.
3690         * libio/iofwrite_u.c (fwrite_unlocked): Likewise.
3691
3692 2008-04-08  Ulrich Drepper  <drepper@redhat.com>
3693
3694         [BZ #6024]
3695         * scripts/abi-versions.awk: If the version specified by
3696         --enable-oldest-abi is older than the first version for this
3697         architecture, use the default version.
3698
3699         * locale/programs/ld-collate.c (collate_read): Ignore script lines
3700         as well when ignoring the whole category.
3701
3702 2008-04-07  Ulrich Drepper  <drepper@redhat.com>
3703
3704         [BZ #6042]
3705         * sysdeps/unix/sysv/linux/net/ethernet.h: Add a few more
3706         ETHERTYPE_* definitions.
3707         Patch partly by Aurelien Jarno <aurelien@aurel32.net>.
3708
3709 2008-04-07  Jakub Jelinek  <jakub@redhat.com>
3710
3711         * stdlib/mbtowc.c (__no_r_state): Remove.
3712         (mbtowc): New static state variable.  Use it instead of
3713         __no_r_state.
3714         * stdlib/wctomb.c (__no_r_state): Remove extern decl.
3715         (__wctomb_state): New hidden variable.
3716         (wctomb): Use __wctomb_state instead of __no_r_state.
3717         * debug/wctomb_chk.c (__no_r_state): Remove extern decl.
3718         (__wctomb_state): New extern decl.
3719         (__wctomb_chk): Use __wctomb_state instead of __no_r_state.
3720
3721 2008-04-07  Ulrich Drepper  <drepper@redhat.com>
3722
3723         [BZ #5475]
3724         * resolv/res_init.c: Handle scope IDs in resolv.conf.
3725
3726 2008-04-07  Jakub Jelinek  <jakub@redhat.com>
3727
3728         * malloc/mtrace.pl: Use $@ instead of $* to keep perl 5.10 quiet.
3729
3730 2008-04-06  Ulrich Drepper  <drepper@redhat.com>
3731
3732         * po/nl.po: Update from translation team.
3733
3734 2008-03-31  Ulrich Drepper  <drepper@redhat.com>
3735
3736         [BZ #6007]
3737         * string/strfry.c: Handle empty strings again.
3738
3739 2008-03-30  Ulrich Drepper  <drepper@redhat.com>
3740
3741         [BZ #5443]
3742         * intl/dcigettext.c (__dcigettext): Get reader lock for locale data
3743         before looking for translation.
3744         * locale/duplocale.c: Transform __libc_setlocale_lock into rwlock.
3745         * locale/freelocale.c: Likewise.
3746         * locale/newlocale.c: Likewise.
3747         * locale/setlocale.c: Likewise.
3748         Based partially on a patch by ryo@np.css.fujitsu.com.
3749
3750 2008-03-30  Jakub Jelinek  <jakub@redhat.com>
3751
3752         * intl/dcigettext.c (_nl_find_msg): Reread nconversions after
3753         acquiring wrlock.  Do conv_tab allocation while holding lock.
3754         * intl/Makefile: Add rules to build and run tst-gettext6.
3755         * intl/tst-gettext6.c: New test.
3756         * intl/tst-gettext6.sh: New file.
3757
3758 2008-03-30  Ulrich Drepper  <drepper@redhat.com>
3759
3760         * po/nl.po: Update from translation team.
3761
3762         * sysdeps/unix/opendir.c (__alloc_dir): If allocation fails for size
3763         provided through st_blksize, try the default size before giving up.
3764
3765 2008-03-29  Ulrich Drepper  <drepper@redhat.com>
3766
3767         * stdio-common/vfprintf.c (vfprintf): Correct overflow test.
3768
3769         [BZ #5939]
3770         * sysdeps/posix/tempname.c (__gen_tempname): Correct flag selection.
3771
3772         * posix/getopt.c (_getopt_internal_r): Remove old POSIX-demanded
3773         error message.  POSIX today does not require the messages to be in
3774         a specific form.  Suggested by Jim Meyering <jim@meyering.net>.
3775
3776         [BZ #5979]
3777         * sunrpc/auth_unix.c: Unify printed strings.
3778         * sunrpc/clnt_tcp.c: Likewise.
3779         * sunrpc/clnt_udp.c: Likewise.
3780         * sunrpc/clnt_unix.c: Likewise.
3781         * sunrpc/svc_tcp.c: Likewise.
3782         * sunrpc/svc_udp.c: Likewise.
3783         * sunrpc/svc_unix.c: Likewise.
3784         * sunrpc/xdr.c: Likewise.
3785         * sunrpc/xdr_array.c: Likewise.
3786         * sunrpc/xdr_rec.c: Likewise.
3787         * sunrpc/xdr_ref.c: Likewise.
3788         * locale/programs/ld-time.c (time_finish): Unify messages.
3789         * locale/programs/locfile.c (handle_copy): Fix typo.
3790         * nscd/nscd.c (options): Fix typo.
3791
3792         [BZ #5995]
3793         * stdlib/strtod_l.c: Use correct sign for result in one more
3794         underflow case.
3795         Patch by Eric Blake <ebb9@byu.net>.
3796
3797 2008-03-27  Jakub Jelinek  <jakub@redhat.com>
3798
3799         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Add open
3800         and creat system calls.
3801         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove open system
3802         call.
3803         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Remove open and creat
3804         system calls.
3805         * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Likewise.
3806         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
3807         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
3808
3809 2008-03-27  Ulrich Drepper  <drepper@redhat.com>
3810
3811         * sysdeps/unix/sysv/linux/bits/local_lim.h: Undefined ARG_MAX if
3812         <linux/limits.h> has defined it.
3813         * sysdeps/unix/sysv/linux/sys/param.h: Define NCARGS to the legacy
3814         ARG_MAX value and prevent ARG_MAX from being defined by the kernel
3815         headers.
3816         * sysdeps/unix/sysv/linux/sysconf.c: Define legacy_ARG_MAX and use
3817         it instead of ARG_MAX.
3818
3819 2008-03-25  Jakub Jelinek  <jakub@redhat.com>
3820
3821         * posix/gai.conf: Fix comment for scope nullbits.
3822         * sysdeps/posix/getaddrinfo.c (gaiconf_init): If /bits is not present,
3823         default to 128 bits for v4 mapped addresses.
3824
3825 2008-03-07  Martin Schwidefsky  <schwidefsky@de.ibm.com>
3826
3827         * sysdeps/s390/fpu/fegetenv.c (fegetenv): Remove PTRACE_PEEKUSER
3828         ptrace call to get the ieee_instruction_pointer from the kernel.
3829         * sysdeps/s390/fpu/fesetenv.c (fesetenv): Remove PTRACE_POKEUSER
3830         ptrace call to set the ieee_instructtion_pointer.
3831         * sysdeps/unix/sysv/linux/s390/sys/user.h (struct _user_regs_struct):
3832         Add comment that ieee_instruction_pointer is always 0.
3833
3834 2008-03-09  Andreas Jaeger  <aj@suse.de>
3835
3836         [BZ #5857]
3837         * sysdeps/ieee754/dbl-64/s_rint.c (__rint): Handle j0==18.
3838         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Likewise.
3839         Patch by Mark Elliott <mark.h.elliott@lmco.com>.
3840
3841         * math/libm-test.inc (nearbyint_test): Add new test cases from #5857.
3842         (rint_test): Likewise.
3843
3844 2008-03-24  Ulrich Drepper  <drepper@redhat.com>
3845
3846         * nis/nis_call.c (nis_server_cache_search): Save errno around stat
3847         call.
3848         (__nisfind_server): Similar for open readColdStartFile call.
3849         Patch partially by Jim Meyering.
3850         * nss/nss_files/files-XXX.c (_nss_files_getXXent_r): Save errno
3851         around internal_setent call.
3852
3853         * po/vi.po: New Vietnamese translation.
3854
3855         * sysdeps/unix/sysv/linux/adjtime.c: Correctly use
3856         ADJ_OFFSET_SS_READ.
3857
3858         * sysdeps/unix/sysv/linux/bits/sched.h: Add new CLONE_* flags,
3859         remove CLONE_STOPPED.
3860
3861 2008-02-10  Jim Meyering  <meyering@redhat.com>
3862
3863         Remove useless "if" before "free":
3864         * elf/ldconfig.c (parse_conf_include): Likewise.
3865         * gmon/gmon.c (weak_alias): Likewise.
3866         * iconv/gconv_conf.c (__gconv_get_path): Likewise.
3867         * inet/rcmd.c (__validuser2_sa): Likewise.
3868         * intl/bindtextdom.c (set_binding_values): Likewise.
3869         * intl/loadmsgcat.c (_nl_load_domain, _nl_unload_domain): Likewise.
3870         * libio/genops.c (save_for_backup): Likewise.
3871         * libio/wgenops.c (save_for_wbackup): Likewise.
3872         * locale/programs/ld-collate.c (collate_read): Likewise.
3873         * locale/programs/linereader.c (get_string): Likewise.
3874         * nis/nss_compat/compat-pwd.c (give_pwd_free): Likewise.
3875         * nis/nss_compat/compat-spwd.c (give_spwd_free): Likewise.
3876         * resolv/res_debug.c (do_section): Likewise.
3877         * sunrpc/xdr_sizeof.c (x_inline, xdr_sizeof): Likewise.
3878         * sysdeps/mach/hurd/if_index.c (libc_hidden_def): Likewise.
3879         * sysdeps/posix/sprofil.c (__sprofil): Likewise.
3880         * time/lc-time-cleanup.c (_nl_cleanup_time): Likewise.
3881         * time/tzset.c (tzset_internal): Likewise.
3882
3883 2008-03-18  Jakub Jelinek  <jakub@redhat.com>
3884
3885         * sysdeps/unix/sysv/linux/dl-sysdep.h: Use __ASSEMBLER__ instead
3886         of ASSEMBLER.
3887
3888 2008-03-11  Ulrich Drepper  <drepper@redhat.com>
3889
3890         [BZ #5903]
3891         * iconv/iconv_charmap.c (charmap_conversion): Pass name of output file
3892         not stream for output file.  Open output file here.
3893         * iconv/iconv_prog.c (process_lock): Take pointer to output stream
3894         and output file name.
3895         (process_fd): Likewise.
3896         (process_file): Likewise.
3897         (main): Adjust callers of changed functions.
3898         * iconv/iconv_prog.h: Adjust prototype.
3899
3900 2008-03-09  Andreas Jaeger  <aj@suse.de>
3901
3902         [BZ #5753]
3903         * sysdeps/ia64/ieee754.h: Use protected namespace
3904         __BIG_ENDIAN/__LITTLE_ENDIAN.
3905         * sysdeps/ieee754/ieee754.h: Likewise.
3906         Patch by Aurelien Jarno <aurelien@aurel32.net>.
3907
3908 2008-03-08  Roland McGrath  <roland@frob.com>
3909
3910         * hurd/hurdsig.c (_hurd_internal_post_signal): When normal rules would
3911         ignore a signal that came from a machine exception, treat it as a
3912         fatal core-dump signal instead.
3913         Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
3914
3915         * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler):
3916         Clear DF bit in thread state's eflags.
3917         Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
3918
3919 2008-03-08  Ulrich Drepper  <drepper@redhat.com>
3920
3921         [BZ #5774]
3922         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Consume closing brace
3923         of NAN(...) sequence.
3924         * stdlib/Makefile (tests): Add tst-strtod6.
3925         * stdlib/tst-strtod6.c: New file.
3926
3927         * inet/inet6_opt.c (inet6_opt_init): Check extlen for overflow.
3928
3929         [BZ #5762]
3930         * posix/getopt.c (_getopt_internal_r): Clarify error message by
3931         putting offending option character in quotes.  Clean up error
3932         messages.
3933         * po/be.po: Adjust msgstr in translation file.
3934         * po/bg.po: Likewise.
3935         * po/ca.po: Likewise.
3936         * po/cs.po: Likewise.
3937         * po/da.po: Likewise.
3938         * po/de.po: Likewise.
3939         * po/es.po: Likewise.
3940         * po/fr.po: Likewise.
3941         * po/hr.po: Likewise.
3942         * po/ko.po: Likewise.
3943         * po/nl.po: Likewise.
3944         * po/rw.po: Likewise.
3945         * po/sk.po: Likewise.
3946         * po/sv.po: Likewise.
3947         * po/tr.po: Likewise.
3948         * po/zh_CN.po: Likewise.
3949         * po/zh_TW.po: Likewise.
3950
3951         [BZ #5760]
3952         * inet/inet6_opt.c (inet6_opt_init): Fix ip6h_len computation.
3953         Patch by Roland Bless <roland@bless.de>.
3954
3955         * sysdeps/unix/sysv/linux/dl-sysdep.c: Avoid unnecessary code for
3956         .o file.
3957         * elf/Makefile (routines): Add dl-sysdep.
3958         (elide-routines.os): Likewise.
3959
3960 2008-03-07  Ulrich Drepper  <drepper@redhat.com>
3961
3962         [BZ #5786]
3963         * elf/dl-sysdep.c: Undefine ROUND after use.
3964         * sysdeps/generic/ldsodefs.h [HAVE_DL_DISCOVER_OSVERSION]
3965         (struct rtld_global_ro): Add _dl_tls_get_addr_soft element.
3966         * elf/rtld.c (rtld_global_ro): Initialize _dl_discover_osversion.
3967         * sysdeps/unix/sysv/linux/dl-osinfo.h: Move _dl_discover_osversion
3968         to ...
3969         * sysdeps/unix/sysv/linux/dl-sysdep.c: ...here.
3970         * sysdeps/unix/sysv/linux/dl-sysdep.h: Declare _dl_discover_osversion
3971         if necessary.
3972         * sysdeps/unix/sysv/linux/sysconf.c: Handle _SC_ARG_MAX here.
3973
3974         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Add
3975         _dl_tls_get_addr_soft element.
3976         * elf/rtld.c (rtld_global_ro): Initialize _dl_tls_get_addr_soft.
3977         * elf/Versions (ld): Don't export _dl_tls_get_addr_soft.
3978         * dlfcn/dlinfo.c (dlinfo_doit): Access dl_tls_get_addr_soft through
3979         GLRO.
3980         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise.
3981         * elf/dl-tls.c (_dl_tls_get_addr_soft): Use attribute_hidden instead
3982         of internal_function.
3983
3984         * stdlib/Makefile (aux): Add tens_in_limb.
3985         * stdlib/strtod_l.c: Move _tens_in_limb definition to...
3986         * stdlib/tens_in_limb.c: ...here.  New file.
3987
3988         [BZ #5778]
3989         * sysdeps/unix/sysv/linux/pathconf.h: Declare
3990         __statfs_chown_restricted.
3991         * sysdeps/unix/sysv/linux/fpathconf.c: Call __statfs_chown_restricted
3992         for _PC_CHOWN_RESTRICTED.
3993         * sysdeps/unix/sysv/linux/pathconf.c: Likewise.
3994         Implement __statfs_chown_restricted.
3995         * sysdeps/unix/sysv/linux/bits/posix_opt.h: Change
3996         _POSIX_CHOWN_RESTRICTED value to zero.
3997         * io/tst-fchownat.c: Correctly handle _POSIX_CHOWN_RESTRICTED
3998         defined to zero.
3999
4000         * sysdeps/x86_64/rtld-memset.c: New file.
4001
4002 2008-02-26  Harsha Jagasia  <harsha.jagasia@amd.com>
4003
4004         * sysdeps/x86_64/cacheinfo.c (NOT_USED_RIGHT_NOW): Remove ifdef guards.
4005
4006         * sysdeps/x86_64/memset.S: Rewrite non-SSE code path as tuned for AMD
4007         Barcelona machine.  Make default fall through branch of
4008         __x86_64_preferred_memory_instruction check as the integer code path.
4009
4010 2007-10-15  H.J. Lu  <hongjiu.lu@intel.com>
4011
4012         * sysdeps/x86_64/cacheinfo.c
4013         (__x86_64_preferred_memory_instruction): New variable.
4014         (init_cacheinfo): Initialize __x86_64_preferred_memory_instruction.
4015
4016         * sysdeps/x86_64/memset.S: Rewrite.
4017
4018 2008-03-04  Jakub Jelinek  <jakub@redhat.com>
4019
4020         * include/stdio.h (__asprintf_chk, __dprintf_chk,
4021         __obstack_printf_chk): New prototypes.
4022         (__vasprintf_chk, __vdprintf_chk,
4023         __obstack_vprintf_chk): Likewise.
4024         Add libc_hidden_proto.
4025         * libio/obprintf.c
4026         (_IO_obstack_jumps): No longer static, add attribute_hidden.
4027         * libio/bits/stdio-ldbl.h (__asprintf_chk, __dprintf_chk,
4028         __obstack_printf_chk, __vasprintf_chk, __vdprintf_chk,
4029         __obstack_vprintf_chk): Add __LDBL_REDIR_DECL.
4030         * libio/bits/stdio2.h (__asprintf_chk, __dprintf_chk,
4031         __obstack_printf_chk, __vasprintf_chk, __vdprintf_chk,
4032         __obstack_vprintf_chk): New prototypes.
4033         (asprintf, __asprintf, dprintf, obstack_printf, vasprintf, vdprintf,
4034         obstack_vprintf): New inlines.
4035         * debug/dprintf_chk.c: New file.
4036         * debug/vdprintf_chk.c: New file.
4037         * debug/asprintf_chk.c: New file.
4038         * debug/vasprintf_chk.c: New file.
4039         * debug/obprintf_chk.c: New file.
4040         * debug/tst-chk1.c (do_test): Add asprintf and obstack_printf tests.
4041         * debug/Versions (__asprintf_chk, __dprintf_chk, __obstack_printf_chk,
4042         __vasprintf_chk, __vdprintf_chk, __obstack_vprintf_chk): Export
4043         @@GLIBC_2.8.
4044         * debug/Makefile: Build asprintf_chk, vasprintf_chk, dprintf_chk,
4045         vdprintf_chk and obprintf_chk, set CFLAGS for them.
4046         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c (__nldbl___vasprintf_chk,
4047         __nldbl___vdprintf_chk, __nldbl___obstack_vprintf_chk): Add
4048         libc_hidden_proto.
4049         * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl___vasprintf_chk,
4050         __nldbl___vdprintf_chk, __nldbl___obstack_vprintf_chk): New prototypes.
4051         * sysdeps/ieee754/ldbl-opt/Versions (__nldbl___asprintf_chk,
4052         __nldbl___vasprintf_chk, __nldbl___dprintf_chk, __nldbl___vdprintf_chk,
4053         __nldbl___obstack_printf_chk, __nldbl___obstack_vprintf_chk): Export
4054         @@GLIBC_2.8.
4055         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add asprintf_chk,
4056         vasprintf_chk, dprintf_chk, vdprintf_chk, obstack_printf_chk and
4057         obstack_vprintf_chk.
4058         * sysdeps/ieee754/ldbl-opt/nldbl-obstack_vprintf_chk.c: New file.
4059         * sysdeps/ieee754/ldbl-opt/nldbl-dprintf_chk.c: New file.
4060         * sysdeps/ieee754/ldbl-opt/nldbl-obstack_printf_chk.c: New file.
4061         * sysdeps/ieee754/ldbl-opt/nldbl-asprintf_chk.c: New file.
4062         * sysdeps/ieee754/ldbl-opt/nldbl-vdprintf_chk.c: New file.
4063         * sysdeps/ieee754/ldbl-opt/nldbl-vasprintf_chk.c: New file.
4064
4065 2008-03-04  Ulrich Drepper  <drepper@redhat.com>
4066
4067         [BZ #5779]
4068         * misc/sys/queue.h: Add STAILQ_CONCAT and TAILQ_CONCAT definitions.
4069         Patch by Roy Marples <roy@marples.name>.
4070
4071         [BZ #5736]
4072         * malloc/malloc.c: Fix typo in comment.
4073
4074         [BZ #5627]
4075         * locale/iso-639.def: Add Shuswap.
4076
4077 2008-02-25  Jakub Jelinek  <jakub@redhat.com>
4078
4079         [BZ #5790]
4080         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr2_r): Don't
4081         overwrite *h_errnop/*errnop values from getanswer_r in case of
4082         failure.
4083
4084 2008-03-03  Ulrich Drepper  <drepper@redhat.com>
4085
4086         [BZ #5818]
4087         * nscd/connections.c (dbs): Add initializers for .suggested_module.
4088         (verify_persistent_db): Remove one unnecessary test and add a new one
4089         for bad configuration.
4090         (nscd_init): Improve error reported when persistent database cannot
4091         be reused.
4092         * nscd/nscd.h (DEFAULT_SUGGESTED_MODULE): Define.
4093         * nscd/nscd_conf.c (nscd_parse_file): Provide default values for
4094         .suggested_module and .max_db_size and case config file says the
4095         values are zero.
4096         * nscd/nscd_helper.c (get_mapping): Fail if hash table module is zero.
4097
4098         [BZ #5854]
4099         * nis/ypclnt.c (yp_order): Fix handling of return value of
4100         do_ypcall_tr call.
4101         Patch by Jeff Moyer <jmoyer@redhat.com>.
4102
4103         * po/fr.po: Update from translation team.
4104
4105 2008-02-22  Andreas Jaeger  <aj@suse.de>,
4106             Carlos O'Donell <carlos@systemhalted.org>
4107
4108         [BZ #5012]
4109         * FAQ.in: Describe why glibc needs to be compiled with
4110         optimization.
4111
4112 2008-02-19  Roland McGrath  <roland@redhat.com>
4113
4114         * elf/elf.h (SHT_GNU_ATTRIBUTES): New macro.
4115
4116 2008-02-15  Ulrich Drepper  <drepper@redhat.com>
4117
4118         [BZ #5737]
4119         * resolv/netdb.h: Make NI_MAXHOST and NI_MAXSERV available when
4120         __USE_MISC is defined.
4121
4122 2008-02-10  Ulrich Drepper  <drepper@redhat.com>
4123
4124         * sysdeps/unix/sysv/linux/sys/timerfd.h: New file.
4125         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers): Add
4126         sys/timerfd.h.
4127         * sysdeps/unix/sysv/linux/syscalls.list: Add timerfd_create,
4128         timerfd_gettime, timerfd_settime.
4129         * sysdeps/unix/sysv/linux/Versions: Add timerfd_create,
4130         timerfd_gettime, timerfd_settime for GLIBC_2.8.
4131
4132 2008-02-08  Roland McGrath  <roland@redhat.com>
4133
4134         * elf/elf.h (NT_PPC_SPE): New macro.
4135
4136 2008-02-06  Roland McGrath  <roland@redhat.com>
4137
4138         * Makerules ($(common-objpfx)sysd-rules):
4139         Depend on $(sysdep-makeconfigs).
4140
4141 2008-01-31  Roland McGrath  <roland@redhat.com>
4142
4143         [BZ #5442]
4144         * configure.in: Use -print-file-name if it yields a directory,
4145         for each of include and include-fixed.
4146         * configure: Regenerated.
4147
4148         * Makeconfig (sysd-rules-targets): New variable.
4149         * sysdeps/unix/make-syscalls.sh: Use it in the rules emitted.
4150         * sysdeps/unix/Makefile (omit-deps): Append variants for each target.
4151
4152 2008-01-30  Roland McGrath  <roland@redhat.com>
4153
4154         * manual/libc.texinfo: Update back-cover text.
4155
4156         * elf/elf.h (NT_386_TLS): New macro.
4157
4158 2008-01-29  Roland McGrath  <roland@redhat.com>
4159
4160         * Makeconfig (sysd-rules-patterns): New variable.
4161         * Makerules ($(common-objpfx)sysd-rules): Drive the loop from that.
4162         (check-inhibit-asm): New canned sequence, replaces ...
4163         (open-check-inhibit-asm, close-check-inhibit-asm): ... these, removed.
4164         * elf/rtld-Rules ($(objpfx)rtld-%.os): Use $(rtld-CPPFLAGS) in commands.
4165         (rtld-CPPFLAGS): Renamed from CPPFLAGS-rtld.
4166         (CFLAGS-rtld): Variable removed.
4167
4168 2008-01-24  Roland McGrath  <roland@redhat.com>
4169
4170         * configure.in: Let configure fragments set base_os.
4171         * configure: Regenerated.
4172
4173 2008-01-22  Ulrich Drepper  <drepper@redhat.com>
4174
4175         * po/ko.po: Update from translation team.
4176
4177 2008-01-12  H.J. Lu  <hongjiu.lu@intel.com>
4178
4179         * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Use short for fnstsw.
4180
4181 2008-01-12  Andreas Jaeger  <aj@suse.de>
4182
4183         [BZ #5040]
4184         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h (enum EPOLL_EVENTS):
4185         Add EPOLLRDHUP.
4186
4187 2008-01-20  Samuel Thibault  <samuel.thibault@ens-lyon.org>
4188
4189         * hurd/hurdsock.c (_hurd_socket_server): Return the standard
4190         error EAFNOSUPPORT rather than non-standard EPFNOSUPPORT.
4191         * sunrpc/bindrsvprt.c (bindresvport): Likewise.
4192
4193 2007-10-23  Alexandre Oliva  <aoliva@redhat.com>
4194
4195         * include/link.h (FORCED_DYNAMIC_TLS_OFFSET): Define.
4196         * elf/dl-close.c (_dl_close): Check for it.
4197         * elf/dl-reloc.c (CHECK_STATIC_TLS): Likewise.
4198         (_dl_allocate_static_tls): Likewise.
4199         * elf/dl-tls.c (_dl_allocate_tls_init): Likewise.
4200         (__tls_get_addr): Protect from race conditions in setting l_tls_offset
4201         to it.
4202         * elf/tst-tls16.c: New file.
4203         * elf/tst-tlsmod16a.c: New file.
4204         * elf/tst-tlsmod16b.c: New file.
4205         * elf/Makefile: Add rules to build and run tst-tls16.
4206
4207 2008-01-16  Ulrich Drepper  <drepper@redhat.com>
4208
4209         [BZ #5628]
4210         * bits/shm.h: Fix comment describing shmid_ds.
4211         * sysdeps/gnu/bits/shm.h: Likewise.
4212         * sysdeps/unix/sysv/linux/alpha/bits/shm.h: Likewise.
4213         * sysdeps/unix/sysv/linux/bits/shm.h: Likewise.
4214         * sysdeps/unix/sysv/linux/ia64/bits/shm.h: Likewise.
4215         * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
4216         * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
4217         * sysdeps/unix/sysv/linux/sh/bits/shm.h: Likewise.
4218         * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
4219         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Likewise.
4220         Patch by Hareesh Nagarajan <hareesh.nagarajan@gmail.com>.
4221
4222         [BZ #5607]
4223         * conform/data/fcntl.h-data: Fix posix_fadvise and posix_fallocate
4224         prototypes.
4225         * conform/data/limits.h-data: Adjust limits changed in v6 and add
4226         additional suffixes.
4227         * conform/data/mqueue.h-data: Fix typo in mq_curmsgs entry.
4228         Add optional functions mq_timedreceive and mq_timedsend.
4229         * conform/data/netdb.h-data: Add more AI_* and EAI_* constants.
4230         * conform/data/pthread.h-data: Fix prototype of
4231         pthread_condattr_setclock.  pthread_sigmask is not required in v6.
4232         * conform/data/semaphore.h-data: Allow time.h definitions.
4233         * conform/data/signal.h-data: Likewise.
4234         * conform/data/stdio.h-data: getw and putw are not required in v6.
4235         * conform/data/stdlib.h-data: Change setstate prototype.
4236         * conform/data/string.h-data: Fix strerror_r prototype.
4237         * conform/data/time.h-data: Fix typo in TIMER_ABSTIME definition.
4238         * conform/data/unistd.h-data: pthread_atfork not required in v6.
4239         Fix readlink prototype.
4240         * conform/data/netinet/in.h-data: Add const to in6addr_any and
4241         in6addr_loopback.
4242         * inet/netinet/in.h: Cleanup namespace.
4243         * posix/regex.h: Likewise.
4244         * resolv/netdb.h: Likewise.
4245         * sysdeps/unix/sysv/linux/bits/in.h: Likewise.
4246         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
4247         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
4248         * sysdeps/posix/getaddrinfo.c (default_labels): Adjust for change
4249         of names of in in6_addr.
4250         (default_precedence): Likewise.
4251         * sysdeps/unix/sysv/linux/cmsg_nxthdr.c: Include <stddef.h> for
4252         NULL definition.
4253
4254 2008-01-15  Ulrich Drepper  <drepper@redhat.com>
4255
4256         * conform/data/fmtmsg.h-data: Add missing allows.
4257         * conform/data/ftw.h-data: Likewise.
4258         * conform/data/inttypes.h-data: Likewise.
4259         * conform/data/math.h-data: Likewise.
4260         * conform/data/signal.h-data: Likewise.
4261         * conform/data/net/if.h-data: Likewise.
4262         * conform/data/netinet/in.h-data: Likewise.
4263         * conform/data/sys/socket.h-data: Likewise.
4264
4265         [BZ #5614]
4266         * string/bits/string2.h (__strtok_r_1c): Always update *__NEXTP.
4267         (__strtok_r): Simplify.
4268         * string/tester.c (test_strtok_r): Add test case for futile search
4269         with single-character seach string.
4270
4271 2008-01-12  Ulrich Drepper  <drepper@redhat.com>
4272
4273         * po/ko.po: Update from translation team.
4274
4275 2008-01-11  Andreas Jaeger  <aj@suse.de>
4276
4277         [BZ #5600]
4278         * sysdeps/unix/sysv/linux/sys/signalfd.h (struct
4279         signalfd_siginfo): Use 64-bit type for ssi_ptr to sync with Linux
4280         kernel header.
4281
4282 2008-01-10  Ulrich Drepper  <drepper@redhat.com>
4283
4284         * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Store result of
4285         native interface lookup in all the relevant places.
4286
4287 2008-01-10  Jakub Jelinek  <jakub@redhat.com>
4288             Ulrich Drepper  <drepper@redhat.com>
4289
4290         * sysdeps/posix/getaddrinfo.c (sort_results): Remove service_order
4291         field.  Use sockaddr_in6 for source_addr.
4292         (get_scope): Change type of parameter to sockaddr_in6.  Adjust.
4293         (match_prefix): Likewise.
4294         (get_label): Likewise.
4295         (get_precedence): Likewise.
4296         (rfc3484_sort): Change to use indirect access to results array.
4297         Adjust to use of sockaddr_in6.  Replace service_order test with
4298         simple index comparison.
4299         (getaddrinfo): Define order array.  Initialize it.  Don't initialize
4300         service_order field.  Adjust qsort_t calls.  Access sorted result
4301         array indirectly through order array.
4302         * posix/tst-rfc3484.c: Adjust for change of rfc3484_sort.
4303         * posix/tst-rfc3484-2.c: Likewise.
4304         * posix/tst-rfc3484-3.c: Likewise.
4305
4306 2008-01-09  Ulrich Drepper  <drepper@redhat.com>
4307
4308         [BZ #5541]
4309         * sunrpc/rpc_thread.c (__rpc_thread_destroy): Also free xports and
4310         pollfd structures.
4311         Patch by André Cruz.
4312
4313         [BZ #5545]
4314         * sunrpc/clnt_perr.c (clnt_sperror): Don't use fixed size buffer.
4315         (clnt_spcreateerror): Likewise.
4316
4317         [BZ #5553]
4318         * malloc/malloc.c (public_mALLOc): Set ar_ptr when trying main_arena.
4319         (public_mEMALIGn): Likewise.
4320         Patch mostly by Daniel Jacobowitz.
4321
4322 2008-01-09  Jakub Jelinek  <jakub@redhat.com>
4323
4324         * sysdeps/unix/sysv/linux/i386/makecontext.S (__makecontext): Avoid
4325         clobbering memory at or above uc_stack.ss_sp + uc_stack.ss_size.
4326         * stdlib/Makefile: Add rules to build and run tst-makecontext2.
4327         * stdlib/tst-makecontext2.c: New test.
4328
4329 2008-01-08  Jakub Jelinek  <jakub@redhat.com>
4330
4331         * iconv/loop.c (UPDATE_PARAMS): Define to empty statement if not
4332         defined.
4333         (REINIT_PARAMS): Likewise.  Undefine before end of file.
4334         (STANDARD_TO_LOOP_ERR_HANDLER): Use UPDATE_PARAMS before calling
4335         transliteration hooks and REINIT_PARAMS afterwards.
4336         * iconvdata/iso-2022-jp.c (BODY): Use a separate variable for
4337         status.
4338         (REINIT_PARAMS): Define.
4339         * iconvdata/ibm1364.c (REINIT_PARAMS): Likewise.
4340         * iconvdata/ibm930.c (REINIT_PARAMS): Likewise.
4341         * iconvdata/ibm933.c (REINIT_PARAMS): Likewise.
4342         * iconvdata/ibm935.c (REINIT_PARAMS): Likewise.
4343         * iconvdata/ibm937.c (REINIT_PARAMS): Likewise.
4344         * iconvdata/ibm939.c (REINIT_PARAMS): Likewise.
4345         * iconvdata/iso-2022-cn.c (REINIT_PARAMS): Likewise.
4346         * iconvdata/iso-2022-cn-ext.c (REINIT_PARAMS): Likewise.
4347         * iconvdata/iso-2022-jp-3.c (REINIT_PARAMS): Likewise.
4348         * iconvdata/iso-2022-kr.c (REINIT_PARAMS): Likewise.
4349         * iconvdata/Makefile: Add rules to build and run tst-iconv7.c.
4350         * iconvdata/tst-iconv7.c: New test.
4351
4352 2008-01-07  Ulrich Drepper  <drepper@redhat.com>
4353
4354         * libio/stdio.h (vscanf): Fix definition for loser compilers.
4355
4356 2008-01-05  Jakub Jelinek  <jakub@redhat.com>
4357
4358         [BZ #5112]
4359         * nscd/connections.c (restart): Fix condition.
4360
4361 2008-01-03  Jakub Jelinek  <jakub@redhat.com>
4362
4363         * ctype/ctype.h (__ctype_b_loc, __ctype_tolower_loc,
4364         __ctype_toupper_loc): Add __THROW.
4365
4366 2008-01-02  Ulrich Drepper  <drepper@redhat.com>
4367
4368         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Fix
4369         recognition of interface family.
4370
4371         * posix/getconf.c: Update copyright year.
4372         * nss/getent.c: Likewise.
4373         * iconv/iconvconfig.c: Likewise.
4374         * iconv/iconv_prog.c: Likewise.
4375         * elf/ldconfig.c: Likewise.
4376         * catgets/gencat.c: Likewise.
4377         * csu/version.c: Likewise.
4378         * elf/ldd.bash.in: Likewise.
4379         * elf/sprof.c (print_version): Likewise.
4380         * locale/programs/locale.c: Likewise.
4381         * locale/programs/localedef.c: Likewise.
4382         * nscd/nscd.c (print_version): Likewise.
4383         * debug/xtrace.sh: Likewise.
4384         * malloc/memusage.sh: Likewise.
4385         * malloc/mtrace.pl: Likewise.
4386         * debug/catchsegv.sh: Likewise.
4387
4388 2007-12-26  Ulrich Drepper  <drepper@redhat.com>
4389
4390         * nss/nsswitch.c (__nss_lookup): Actually use alternative name in
4391         second lookup.
4392
4393 2007-12-23  Ulrich Drepper  <drepper@redhat.com>
4394
4395         * sysdeps/x86_64/cacheinfo.c (intel_02_known): New entry 0x3f.
4396         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
4397
4398 2007-12-17  Roland McGrath  <roland@redhat.com>
4399
4400         * inet/ether_line.c (ether_line): Remove unused variable.
4401
4402 2007-12-17  Samuel Thibault  <samuel.thibault@ens-lyon.org>
4403
4404         * login/forkpty.c (forkpty): Add const qualifier to parameters termp
4405         and winp.
4406         * login/openpty.c (openpty): Likewise.
4407         * login/pty.h (openpty, forkpty): Likewise.
4408         * manual/terminal.texi (openpty, forkpty): Likewise.
4409
4410 2007-12-17  Ulrich Drepper  <drepper@redhat.com>
4411
4412         * malloc/malloc.c (public_cALLOc): For arenas other than
4413         main_arena, count all bytes inside the mprotect_size range of the
4414         heap as uninitialized.
4415
4416 2007-12-16  Ulrich Drepper  <drepper@redhat.com>
4417
4418         * elf/tst-execstack.c (do_test): Don't fail if SELinux forbids
4419         executable stacks.
4420
4421         * malloc/malloc.c (public_mTRIm): Iterate over all arenas and call
4422         mTRIm for all of them.
4423         (mTRIm): Additionally iterate over all free blocks and use madvise
4424         to free memory for all those blocks which contain at least one
4425         memory page.
4426         * malloc/tst-trim1.c: New file.
4427         * malloc/Makefile (tests): Add tst-trim1.
4428
4429         * malloc/malloc.c (do_check_malloc_state): Minimal cleanups.
4430
4431 2007-12-14  Ulrich Drepper  <drepper@redhat.com>
4432
4433         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INTERNAL_SYSCALL_ERROR_P):
4434         First cast argument to long
4435         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_gettimeofday):
4436         Return long.
4437         (__vdso_clock_gettime): Likewise.
4438         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Functions
4439         return long.
4440
4441 2007-12-13  Ulrich Drepper  <drepper@redhat.com>
4442
4443         * locale/nl_langinfo.c (nl_langinfo): Just call __nl_langinfo_l.
4444         * locale/nl_langinfo_l.c: Real implementation, copied from
4445         nl_langinfo.c.
4446         * include/langinfo.h: Add libc_hidden_proto for __nl_langinfo_l.
4447
4448 2007-12-01  Jim Meyering  <meyering@redhat.com>
4449
4450         * posix/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
4451         that would inhibit utf8-optimization of a regexp containing line-
4452         or buffer-anchors, e.g., `^', `$'.
4453
4454 2007-12-12  Ulrich Drepper  <drepper@redhat.com>
4455
4456         * time/bug-getdate1.c (do_test): Don't use century values which
4457         aren't valid on 32-bit systems.
4458
4459 2007-12-12  Jakub Jelinek  <jakub@redhat.com>
4460
4461         * sysdeps/i386/i486/bits/string.h (memmove): Define as macro.
4462         (memmove): Rename to __memmove_g, with __asm__ ("memmove").
4463         * sysdeps/s390/bits/string.h (__strlen_g, __strcpy_g, __strncpy_g,
4464         __strcat_g, __strncat_g): Add __asm__.
4465
4466 2007-12-12  Ulrich Drepper  <drepper@redhat.com>
4467
4468         [BZ #5477]
4469         * io/fchmodat.c: Fix typo in stub_warning use.
4470         Patch by Petr Salinger.
4471
4472 2007-12-11  Ulrich Drepper  <drepper@redhat.com>
4473
4474         * iconvdata/hp-thai8.c: New file.
4475         * iconvdata/Makefile: Add rules for hp-thai8.c.
4476         * iconvdata/tst-tables.sh: Add entry for HP-THAI8.
4477         * iconvdata/gconv-modules: Likewise.
4478
4479         [BZ #5464]
4480         * iconvdata/hp-greek8.c: New file.
4481         * iconvdata/Makefile: Add rules for hp-greek8.c.
4482         * iconvdata/tst-tables.sh: Add entry for HP-GREEK8.
4483         * iconvdata/gconv-modules: Likewise.
4484
4485         [BZ #5463]
4486         * iconvdata/hp-turkish8.c: New file.
4487         * iconvdata/Makefile: Add rules for hp-turkish8.c.
4488         * iconvdata/tst-tables.sh: Add entry for HP-TURKISH8.
4489         * iconvdata/gconv-modules: Likewise.
4490
4491         * malloc/arena.c (grow_heap): Split out code to shrink heap into...
4492         (shrink_heap): ... this new function.
4493         (heap_trim): Call shrink_heap instead of grow_heap.
4494
4495         * malloc/malloc.c (_int_malloc): sYSMALLOc might fail, in this
4496         case don't call alloc_perturb.
4497
4498 2007-12-10  Ulrich Drepper  <drepper@redhat.com>
4499
4500         * sysdeps/unix/sysv/linux/adjtime.c: Use ADJ_OFFSET_SS_READ if
4501         possible.
4502         * sysdeps/unix/sysv/linux/kernel-features.h
4503         (__ASSUME_ADJ_OFFSET_SS_READ): Define for 2.6.24.
4504         * sysdeps/unix/sysv/linux/sys/timex.h (ADJ_OFFSET_SS_READ): Define.
4505
4506 2007-12-08  Ulrich Drepper  <drepper@redhat.com>
4507
4508         [BZ #5424]
4509         * stdio-common/vfprintf.c: Do not overflow when adding to done.
4510         * stdio-common/Makefile (tests): Add bug22.
4511         * stdio-common/bug22.c: New file.
4512
4513         [BZ #5451]
4514         * time/getdate.c: Fix filling in default values.
4515         * time/bug-getdate1.c: New file.
4516         * time/Makefile: Add rules to build and run bug-getdate1.
4517
4518         * iconvdata/ebcdic-is-friss.c: Use 8bit-gap instead of 8bit-generic.
4519         * iconvdata/ebcdic-es.c: Likewise.
4520         * iconvdata/ebcdic-es-a.c: Likewise.
4521         * iconvdata/ebcdic-uk.c: Likewise.
4522         * iconvdata/iso8859-16.c: Likewise.
4523         * iconvdata/viscii.c: Likewise.
4524         * iconvdata/iso8859-9e.c: Likewise.
4525         * iconvdata/Makefile: Adjust appropriately.
4526
4527         [BZ #5428]
4528         * wcsmbs/wchar.h: Unconditionally undefine __need_mbstate and
4529         __need_wint_t.
4530
4531 2007-12-07  Ulrich Drepper  <drepper@redhat.com>
4532
4533         [BZ #5427]
4534         * iconvdata/hp-roman9.c: New file.
4535         * iconvdata/Makefile: Add rules for hp-roman9.c.
4536         * iconvdata/tst-tables.sh: Add HP-ROMAN9.
4537         * iconvdata/gconv-modules: Likewise.
4538
4539         * iconvdata/hp-roman8.c: Use 8bit-gap instead of 8bit-generic.
4540         * iconvdata/Makefile: Adjust appropriately.
4541
4542         [BZ #5441]
4543         * stdio-common/vfscanf.c (_IO_vfwscanf): Don't free ptrs_to_free
4544         structure, it's allocated with alloca.
4545         * stdio-common/Makefile (tests): Add bug21.
4546         * stdio-common/bug21.c: New file.
4547
4548 2007-12-06  Aurelien Jarno  <aurelien@aurel32.net>
4549
4550         [BZ #5452]
4551         * sysdeps/unix/sysv/linux/bits/sched.h: Use __extension__
4552         keyword for gcc's braced-groups.
4553
4554 2007-12-07  Ulrich Drepper  <drepper@redhat.com>
4555
4556         [BZ #5454]
4557         * inet/ether_line.c: Strip hostname of whitespaces.
4558         * inet/Makefile (tests): Add tst-ether_line.
4559         * inet/tst-ether_line.c: New file.
4560
4561 2007-12-03  Ulrich Drepper  <drepper@redhat.com>
4562
4563         [BZ #5439]
4564         * sysdeps/unix/sysv/linux/sys/signalfd.h: Fix use of __nonnull.
4565
4566         [BZ #5435]
4567         * sysdeps/unix/sysv/linux/i386/makecontext.S: Align stack.
4568
4569         * stdlib/tst-setcontext.c: Catch the case where the links gets
4570         messed up and we do not reach main again.
4571
4572         * po/ca.po: Update from translation team.
4573
4574 2007-11-26  Ulrich Drepper  <drepper@redhat.com>
4575
4576         * posix/unistd.h: Declare fsync also for __USE_XOPEN2K.
4577         * posix/regex.h (REG_ENOSYS): Likewise.
4578         * wcsmbs/wchar.h: Define __need_file also for __USE_XOPEN2K.
4579
4580 2007-11-25  Ulrich Drepper  <drepper@redhat.com>
4581
4582         * nscd/nscd.h (MAX_STACK_USE): Define.
4583         * nscd/mem.c (MAX_STACK_USE): Remove definition here.
4584         (gc): Initialize stack_used based on allocation in prune_cache.
4585         * nscd/cache.c (prune_cache): Use heap for mark array if necessary.
4586         Clear array before use.
4587
4588         * nscd/aicache.c (addhstaiX): Update statistics counter in case
4589         memory allocation failed.
4590         * nscd/hstcache.c (cache_addhst): Likewise.
4591         * nscd/grpcache.c (cache_addgr): Likewise.
4592         * nscd/servicescache.c (cache_addserv): Likewise.
4593         * nscd/pwdcache.c (cache_addpw): Likewise.
4594         * nscd/initgrcache.c (addinitgroupsX): Likewise.
4595
4596 2007-11-23  Ulrich Drepper  <drepper@redhat.com>
4597
4598         * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Add open
4599         and creat system calls.
4600
4601         * sysdeps/unix/sysv/linux/check_native.c: Include <asm/types.h>.
4602
4603 2007-11-23  Martin Schwidefsky  <schwidefsky@de.ibm.com>
4604
4605         * sysdeps/unix/sysv/linux/Makefile [subdir=inet] (sysdep_headers):
4606         Add netiucv/iucv.h.
4607         * sysdeps/unix/sysv/linux/netiucv/iucv.h: New file.
4608         * sysdeps/unix/sysv/linux/opensock.c (__opensock): Add AF_IUCV
4609         protocol.
4610         * sysdeps/unix/sysv/linux/sa_len.c (__libc_sa_len): Likewise.
4611         * sysdeps/unix/sysv/linux/s390/opensock.c: New file.
4612         * sysdeps/unix/sysv/linux/s390/sa_len.c: New file.
4613
4614 2007-11-22  Martin Schwidefsky  <schwidefsky@de.ibm.com>
4615
4616         * sysdeps/s390/bits/string.h (strlen, strcpy, strncpy, strcat,
4617         strncat): Define as macros to avoid compile errors.
4618
4619         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list:  Add open and
4620         creat entries.
4621
4622 2007-11-22  Ulrich Drepper  <drepper@redhat.com>
4623
4624         [BZ #5382]
4625         * nscd/nscd.h (NSCD_THREAD_STACKSIZE): Define.
4626         * nscd/connections.c (start_threads): Use NSCD_THREAD_STACKSIZE.
4627         * nscd/mem.c (gc): Don't allocate arrays on the stack if they can
4628         overflow it.
4629         Partially based on a patch by Petr Baudis <pasky@suse.cz>.
4630
4631         * sysdeps/unix/sysv/linux/nscd_setup_thread.c (setup_thread):
4632         Return zero in case the thread library is not NPTL.
4633
4634         [BZ #5375]
4635         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix locking when
4636         initializing interface list.
4637
4638         [BZ #5378]
4639         * nis/nss_compat/compat-initgroups.c (getgrent_next_nss): Don't
4640         use result of nss_getgrgid_r if nothing was found.  For other
4641         error return with a failure.
4642         Partially based on a patch by Petr Baudis <pasky@suse.cz>.
4643
4644         * locale/programs/ld-collate.c (collate_read): Fix loop to match
4645         macro name.
4646
4647 2007-11-19  Ulrich Drepper  <drepper@redhat.com>
4648
4649         * sysdeps/posix/getaddrinfo.c (defaults_scopes, scopes): New variables.
4650         (get_scope): For IPv4 scope, use scopes table.
4651         (fini): Free scopes table if necessary.
4652         (free_scopelist): New function.
4653         (scopecmp): New function.
4654         (gaiconf_init): Also handle scopev4 entries.
4655         * posix/tst-rfc3484.c (do_test): Initialize scopes.
4656         * posix/tst-rfc3484-2.c (do_test): Likewise.
4657         * posix/gai.conf: Document scopev4 defaults.
4658         * posix/Makefile (tests): Add tst-rfc3484-3.
4659         * posix/tst-rfc3484-3.c: New file.
4660
4661         * sysdeps/posix/getaddrinfo.c (default_labels): Describe entry for
4662         Teredo tunnels.
4663         * posix/gai.conf: Update for current default tables.
4664
4665 2007-11-19  Ulrich Drepper  <drepper@redhat.com>
4666
4667         * po/tr.po: Update from translation team.
4668
4669 2007-11-18  Roland McGrath  <roland@frob.com>
4670
4671         * manual/arith.texi (Remainder Functions): Spelling fix.
4672         From Shaun Silk <genix@mysoul.com.au>.
4673
4674         * sysdeps/mach/hurd/bits/fcntl.h (O_CLOEXEC): Fix value.
4675
4676 2007-11-17  Ulrich Drepper  <drepper@redhat.com>
4677
4678         * po/zh_CN.po: Update from translation team.
4679
4680         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
4681         Add sys/signalfd.h and sys/eventfd.h.
4682
4683 2007-11-15  Bruno Haible  <bruno@clisp.org>
4684
4685         [BZ #5346]
4686         * intl/dcigettext.c (struct known_translation_t): Turn msgid into a
4687         union.
4688         (transcmp): Use the appropriate part of s1->msgid and s2->msgid.
4689         (DCIGETTEXT): Change the allocation of the 'search' variable so that
4690         it needs only fixed stack space. Delay the initialization of
4691         msgid_len until it is needed.
4692
4693 2007-11-15  Andreas Jaeger  <aj@suse.de>
4694
4695         * sysdeps/ieee754/dbl-64/sincos.tbl: Fix size of union.
4696         Reported by Christoph Quirin Lauter <christoph.lauter@ens-lyon.fr>.
4697
4698 2007-11-15  Ulrich Drepper  <drepper@redhat.com>
4699
4700         * po/ko.po: Update from translation team.
4701
4702 2007-11-14  Ulrich Drepper  <drepper@redhat.com>
4703
4704         * sysdeps/unix/sysv/linux/check_native.c (__check_native): Simplify
4705         significantly.  The device type is also part of the ifinfomsg data.
4706
4707         * po/sv.po: Update from translation team.
4708         * po/nl.po: Likewise.
4709
4710         * nscd/cache.c (prune_cache): If cache is empty, instruct caller
4711         to wake up in 24 hours.
4712
4713         * nscd/gai.c (__ioctl): Define.  Include check_native.c.
4714
4715 2007-11-13  Ulrich Drepper  <drepper@redhat.com>
4716
4717         * po/cs.po: Update from translation team.
4718         * po/pl.po: Likewise.
4719
4720         * include/ifaddrs.h: Remove in6ai_temporary.
4721         (struct in6addrinfo): Add index element.
4722         Declare __check_native.
4723         * inet/Makefile (aux): Add check_native.
4724         * sysdeps/unix/sysv/linux/check_native.c: New file.
4725         * sysdeps/unix/sysv/linux/check_pf.c: No need to recognize
4726         IFA_F_TEMPORARY.  Pass back ifa_index.
4727         * sysdeps/posix/getaddrinfo.c: Remove netlink compatibility code.
4728         (rfc3484_sort): Add new parameter.  Implement rule 7 correctly:
4729         call __check_native if necessary.
4730         (getaddrinfo): Fill in index field.  Use qsort_r instead of qsort
4731         to sort addresses.  Pass information about the results.
4732         * posix/tst-rfc3484.c: Adjust for addition of index field and change
4733         of rfc3484_sort interface.
4734         * posix/tst-rfc3484-2.c: Likewise.
4735
4736         * stdlib/stdlib.h: Define __compar_d_fn_t.  Declare qsort_r.
4737         * include/stdlib.h: Add hidden_proto for qsort_t and adjust protoype
4738         for _quicksort.
4739         * stdlib/msort.c (qsort): Now a wrapper around qsort_r.
4740         (qsort_r): Renamed from qsort.  Take additional parameter and pass it
4741         on as third parameter to compare function and _quicksort.
4742         * stdlib/qsort.c (_quicksort): Take additional parameter and pass on
4743         to the compare function.
4744         * stdlib/Versions [libc] (GLIBC_2.8): Add qsort_r.
4745         * Versions.def: Add GLIBC_2.8 for libc.
4746
4747         * posix/tst-rfc3484.c: Adjust for addition of prefixlen field.
4748         * posix/tst-rfc3484-2.c: Likewise.
4749
4750         * include/kernel-features.h: Moved to...
4751         * sysdeps/mach/hurd/kernel-features.h: ...here.
4752
4753 2007-09-13  H.J. Lu  <hongjiu.lu@intel.com>
4754
4755         * sysdeps/i386/i586/memcpy_chk.S: New file.
4756         * sysdeps/i386/i586/mempcpy_chk.S: Likewise.
4757         * sysdeps/i386/i586/memset_chk.S: Likewise.
4758
4759 2007-11-12  Ulrich Drepper  <drepper@redhat.com>
4760
4761         * include/ifaddrs.c (struct in6addrinfo): Add prefixlen field.
4762         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Always return
4763         list of interfaces.  Also store prefix length.
4764         * sysdeps/posix/getaddrinfo.c (sort_result): Add prefixlen element.
4765         (rfc3484_sort): In rule 9, for IPv4 addresses count only matching
4766         prefix if source and destination address are in the same subnet.
4767         (getaddrinfo): Always call __check_pf.  Fill in prefixlen field.
4768         Always look for matching record in in6ai list.
4769         Correct source_addr_len value for IPv6->IPv4 converted records.
4770
4771 2007-11-11  Roland McGrath  <roland@frob.com>
4772
4773         * include/kernel-features.h: New file.
4774
4775 2007-11-10  Ulrich Drepper  <drepper@redhat.com>
4776
4777         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Avoid unnecessary
4778         complications for 64-bit platforms.
4779
4780         * sysdeps/unix/sysv/linux/open64.c: Move __open64_2 implementation to..
4781         * sysdeps/unix/sysv/linux/open64_2.c: ...here.  New file.
4782         * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines): Add
4783         open64_2.
4784         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Add open and creat
4785         entries.
4786         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
4787         * sysdeps/wordsize-64/alphasort.c: New file.
4788         * sysdeps/wordsize-64/alphasort64.c: New file.
4789         * sysdeps/wordsize-64/fseeko.c: New file.
4790         * sysdeps/wordsize-64/fseeko64.c: New file.
4791         * sysdeps/wordsize-64/ftello.c: New file.
4792         * sysdeps/wordsize-64/ftello64.c: New file.
4793         * sysdeps/wordsize-64/ftw.c: New file.
4794         * sysdeps/wordsize-64/ftw64.c: New file.
4795         * sysdeps/wordsize-64/iofgetpos.c: New file.
4796         * sysdeps/wordsize-64/iofgetpos64.c: New file.
4797         * sysdeps/wordsize-64/iofopen.c: New file.
4798         * sysdeps/wordsize-64/iofopen64.c: New file.
4799         * sysdeps/wordsize-64/iofsetpos.c: New file.
4800         * sysdeps/wordsize-64/iofsetpos64.c: New file.
4801         * sysdeps/wordsize-64/lockf.c: New file.
4802         * sysdeps/wordsize-64/lockf64.c: New file.
4803         * sysdeps/wordsize-64/mkostemp.c: New file.
4804         * sysdeps/wordsize-64/mkostemp64.c: New file.
4805         * sysdeps/wordsize-64/mkstemp.c: New file.
4806         * sysdeps/wordsize-64/mkstemp64.c: New file.
4807         * sysdeps/wordsize-64/scandir.c: New file.
4808         * sysdeps/wordsize-64/scandir64.c: New file.
4809         * sysdeps/wordsize-64/tmpfile.c: New file.
4810         * sysdeps/wordsize-64/tmpfile64.c: New file.
4811         * sysdeps/wordsize-64/versionsort.c: New file.
4812         * sysdeps/wordsize-64/versionsort64.c: New file.
4813         * sysdeps/unix/sysv/linux/wordsize-64/aio_read.c: New file.
4814         * sysdeps/unix/sysv/linux/wordsize-64/aio_read64.c: New file.
4815         * sysdeps/unix/sysv/linux/wordsize-64/aio_write.c: New file.
4816         * sysdeps/unix/sysv/linux/wordsize-64/aio_write64.c: New file.
4817         * sysdeps/unix/sysv/linux/wordsize-64/creat64.c: New file.
4818         * sysdeps/unix/sysv/linux/wordsize-64/getdirentries.c: New file.
4819         * sysdeps/unix/sysv/linux/wordsize-64/getdirentries64.c: New file.
4820         * sysdeps/unix/sysv/linux/wordsize-64/lio_listio.c: New file.
4821         * sysdeps/unix/sysv/linux/wordsize-64/lio_listio64.c: New file.
4822         * sysdeps/unix/sysv/linux/wordsize-64/open64.c: New file.
4823         * sysdeps/unix/sysv/linux/wordsize-64/openat.c: New file.
4824         * sysdeps/unix/sysv/linux/wordsize-64/openat64.c: New file.
4825
4826         * crypt/sha256-crypt.c: Fix a comment.
4827         * crypt/sha512-crypt.c: Likewise.
4828
4829 2007-11-07  H.J. Lu  <hongjiu.lu@intel.com>
4830
4831         * sysdeps/x86_64/memset.S: Add sfence after movnti.
4832
4833 2007-11-07  Ulrich Drepper  <drepper@redhat.com>
4834
4835         [BZ #5277]
4836         * iconv/loop.c (STANDARD_TO_LOOP_ERR_HANDLER): If conversion failed
4837         because output buffer is too small break, don't loop.
4838         * iconvdata/Makefile (tests): Add bug-iconv6.
4839         * iconvdata/bug-iconv6.c: New file.
4840
4841 2007-11-06  Ulrich Drepper  <drepper@redhat.com>
4842
4843         * stdio-common/vfprintf.c (vfprintf): Compute necessary buffer size
4844         with size_t type.
4845         * stdio-common/printf_fp.c (__print_fp): Change chars_needed type to
4846         size_t.  Add casts where needed.
4847
4848         * nscd/selinux.c (nscd_request_avc_has_perm): When compiled with
4849         old headers, don't call avc_has_perm if we don't have the
4850         permission information.
4851
4852 2007-11-05  Daniel Jacobowitz  <dan@codesourcery.com>
4853
4854         * elf/rtld.c (dl_main): Use the page size to find the map start.
4855
4856 2007-11-05  Ulrich Drepper  <drepper@redhat.com>
4857
4858         * time/tzfile.c (__tzfile_read): Fix check for version 0 data files.
4859         Patch by Szymon Siwek <sls@poczta.wp.pl>.
4860
4861         * nscd/aicache.c (addhstaiX): Check herrno after IPv4 lookup only
4862         when the lookup call failed.
4863
4864         * nscd/nscd.h (struct database_dyn): Rename prunelock to prune_lock.
4865         Add prune_cond and wakeup_time.
4866         (CACHE_PRUNE_INTERNAL): Define.
4867         Update declarations of prune_cache and setup_thread.
4868         * nscd/connections.c (dbs): Update initializers.
4869         (CACHE_PRUNE_INTERNAL): Moved to nscd.h.
4870         (nscd_init): Default number of threads is now 4.
4871         (invalidate_cache): Take lock before calling prune_cache.
4872         (handle_request): If SELinux forbids the request, say so.
4873         (readylist_cond): Use static initializer.
4874         (nscd_run_prune): New function.  Used only by pruning threads.
4875         (nscd_run_worder): Renamed from nscd_run.  Remove support for pruning
4876         here.
4877         (fd_ready): Update nscd_run reference.
4878         (start_threads): No need to initialize readylist_cond.
4879         Start pruning threads separately.
4880         * nscd/nscd_setup_thread.c: Change return value type to int and always
4881         return 0.
4882         * sysdeps/unix/sysv/linux/nscd_setup_thread.c: Change return value type
4883         to int and return nonzero value if we can use the TID address hack.
4884         * nscd/cache.c (cache_add): If next wakeup time of cleanup thread for
4885         the database is later than the new entry's timeout, update the
4886         wakeup time and wake the cleanup thread.
4887         (prune_cache): Return seconds the next entry in the database is still
4888         valid.  Remove locking for pruning here.
4889         * nscd/nscd.conf: Document default number of threads.
4890
4891 2007-10-31  Ulrich Drepper  <drepper@redhat.com>
4892
4893         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Make sure
4894         stack is properly aligned for the target function.
4895         Correct unwind info.
4896
4897         * elf/rtld.c (dl_main): Initialize stack and pointer guard early
4898         when using auditing libraries.
4899
4900 2007-10-29  Ulrich Drepper  <drepper@redhat.com>
4901
4902         * resolv/Versions [libresolv] (GLIBC_PRIVATE): Add
4903         _nss_dns_getnetbyaddr2_r.
4904         * resolv/nss_dns/dns-host.c: Define _nss_dns_getnetbyaddr2_r.  Pass
4905         extra parameter to getanswer_r.
4906         (_nss_dns_getnetbyaddr_r): Now a wrapper around
4907         _nss_dns_getnetbyaddr2_r.
4908
4909         * nscd/Makefile (nscd-modules): Replace gethstbynm2_r with
4910         gethstbynm3_r.
4911         * nscd/gethstbynm2_r.c: Remove.
4912         * nscd/gethstbynm3_r.c: New file.
4913         * nscd/aicache.c (addhstaiX): Use __gethostbyaddr2_r instead of
4914         __gethostbyaddr_r.
4915         * nscd/gethstbyad_r.c: Generate __gethostbyaddr2_r function.  Define
4916         __gethostbyaddr_r compatibility wrapper.
4917         * nscd/hstcache.c (cache_addhst): Add ttl parameter.  Use it when
4918         determining timeout of entry.
4919         (lookup): Take new parameter and pass it to __gethostbyname3_r and
4920         __gethostbyaddr2_r.
4921         (addhstbyX): Pass reference to variable for TTL to lookup and
4922         cache_addhst.
4923         * nss/Versions [glibc] (GLIBC_PRIVATE): Export __nss_passwd_lookup2,
4924         __nss_group_lookup2, __nss_hosts_lookup2, __nss_services_lookup2,
4925         and __nss_next2.  Remove __nss_services_lookup.
4926         * nss/XXX-lookup.c: Name function now *_lookup2.  Add new parameter.
4927         Add compat wrapper.
4928         * nss/getXXbyYY_r.c: Changes to call new *_lookup2 functions and
4929         __nss_next2.
4930         * nss/getXXent_r.c: Likewise.
4931         * nss/getnssent_r.c: Likewise.
4932         * nss/nsswitch.c (__nss_lookup): Add new parameter.  If first function
4933         does not exist in module, try the optional second name.
4934         (__nss_next2): New function.
4935         (__nss_next): Now wrapper around __nss_next2.
4936         * nss/nsswitch.h: Adjust __nss_lookup prototype.
4937         Declare __nss_next2.
4938         Adjust definition of db_lookup_function type.
4939         * nss/service-lookup.c: Define NO_COMPAT.
4940         * include/netdb.h: Declare __gethostbyaddr2_r and __gethostbyname3_r.
4941         * inet/ether_hton.c: Use __nss_next2 instead of __nss_next.
4942         * inet/ether_ntoh.c: Likewise.
4943         * sunrpc/netname.c: Likewise.
4944         * sunrpc/publickey.c: Likewise.
4945         * inet/getnetgrent.c: Likewise.  Adjust calls to __nss_lookup.
4946         * inet/gethstbyad_r.c (DB_LOOKUP_FCT): Change to __nss_hosts_lookup2.
4947         * inet/gethstbynm2_r.c (DB_LOOKUP_FCT): Likewise.
4948         * inet/gethstbynm_r.c (DB_LOOKUP_FCT): Likewise.
4949         * inet/gethstent_r.c (DB_LOOKUP_FCT): Likewise.
4950
4951         * nscd/aicache.c (addhstaiX): Fix default TTL handling.
4952
4953         * inet/getnetgrent_r.c (setup): Encrypt static pointer.
4954
4955 2007-10-28  Ulrich Drepper  <drepper@redhat.com>
4956
4957         [BZ #5204]
4958         * crypt/sha256c-test.c: Define TIMEOUT to 6 for ancient hardware.
4959         * crypt/sha512c-test.c: Likewise.
4960
4961         [BZ #5225]
4962         * stdio-common/vfscanf.c (_IO_vfwscanf): Don't misuse wp pointer
4963         to keep track of end of %[ format string element.
4964         * stdio-common/Makefile (tests): Add bug20.
4965         * stdio-common/bug20.c: New file.
4966
4967         [BZ #5222]
4968         * elf/dl-load.c (_dl_rtld_di_serinfo): Correct handling of short
4969         path elements in counting mode.
4970
4971 2007-10-27  Andreas Jaeger  <aj@suse.de>
4972
4973         [BZ #5040]
4974         * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLRDHUP): Add value.
4975
4976         [BZ #3112]
4977         * sysdeps/ia64/backtrace.c (init): Free shared library if incorrect.
4978         (__cleanup): Free shared library when exiting.
4979         * sysdeps/i386/backtrace.c (init): Free shared library if incorrect.
4980         (__cleanup): Free shared library when exiting.
4981
4982 2006-04-14  H.J. Lu  <hongjiu.lu@intel.com>
4983
4984         [BZ #2549]
4985         * math/libm-test.inc (check_float_internal): Support
4986         denormalized return.
4987
4988 2007-10-23  Andreas Jaeger  <aj@suse.de>
4989
4990         [BZ #5208]
4991         * sysdeps/unix/sysv/linux/readahead.c (__readahead): Use
4992         __LONG_LONG_PAIR to handle little endian byte order.
4993         Suggested by abhishekrai@google.com
4994
4995 2007-10-27  Ulrich Drepper  <drepper@redhat.com>
4996
4997         * malloc/arena.c [!NO_THREADS]: Use ATFORK_MEM if defined.
4998
4999 2007-10-26  Ulrich Drepper  <drepper@redhat.com>
5000
5001         * nscd/cache.c (prune_cache): Move test for modified file outside
5002         of locking.
5003
5004 2007-10-21  Andreas Jaeger  <aj@suse.de>
5005
5006         * manual/texinfo.tex: Update to latest version.
5007
5008         * manual/sysinfo.texi (System Parameters): Fix Formatting.
5009
5010         * manual/arith.texi (Status bit operations): Fix formatting.
5011
5012         * manual/errno.texi (Error Messages): Fix formatting.
5013
5014         * manual/sysinfo.texi (System Parameters): Fix formatting.
5015
5016         * manual/libc.texinfo: Update VERSION and UPDATED.
5017
5018 2007-10-19  Roland McGrath  <roland@redhat.com>
5019
5020         * elf/Makefile ($(objpfx)ld.so): Use $(AWK).
5021
5022 2007-10-06  David S. Miller  <davem@davemloft.net>
5023
5024         * configure.in: Add sparcv9v2 and sparc64v2.
5025         * scripts/config.sub: Likewise.
5026         * configure: Regenerate.
5027         * elf/elf.h (HWCAP_SPARC_N2): New.
5028         * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Bump to 8.
5029         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add 'v9v2'.
5030         (HWCAP_IMPORTANT): Add HWCAP_SPARC_N2.
5031         * sysdeps/sparc/sparc32/sparcv9/sparcv9v2/memcpy.S: New file.
5032         * sysdeps/sparc/sparc32/sparcv9/sparcv9v2/memset.S: New file.
5033         * sysdeps/sparc/sparc64/sparcv9v2/memcpy.S: New file.
5034         * sysdeps/sparc/sparc64/sparcv9v2/memset.S: New file.
5035
5036 2007-10-18  Ulrich Drepper  <drepper@redhat.com>
5037
5038         * sunrpc/clnt_udp.c (clntudp_call): Don't block in recvfrom call
5039         even if the poll result indicates there is data to read.
5040         Patch by Jeff Moyer <jmoyer@redhat.com>.
5041
5042 2007-10-18  Roland McGrath  <roland@redhat.com>
5043
5044         * elf/elf.h (NT_PPC_VMX): New macro.
5045
5046 2007-10-17  Ulrich Drepper  <drepper@redhat.com>
5047
5048         * version.h (VERSION): Set to 2.7.90.
5049
5050 2007-10-17  Jakub Jelinek  <jakub@redhat.com>
5051
5052         * sysdeps/x86_64/memset.S (bzero): Renamed to __bzero.  Add
5053         weak_alias.
5054
5055 2007-10-17  Roland McGrath  <roland@frob.com>
5056
5057         * sysdeps/mach/hurd/bits/fcntl.h [__USE_GNU__] (F_DUPFD_CLOEXEC): New.
5058         * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Implement it.
5059
5060 2007-10-17  Ulrich Drepper  <drepper@redhat.com>
5061
5062         * version.h (VERSION): Bump to 2.7.
5063         * include/features.h (__GLIBC_MINOR__): Bump to 7.
5064
5065         [BZ #5186]
5066         * time/tzset.c (__tz_convert): Don't force testing for a change of
5067         TZ if not called from localtime.  But then also see whether the
5068         file changed, in case __use_tzfile is set.
5069
5070         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define F_DUPFD_CLOEXEC.
5071         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
5072         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
5073         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
5074         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
5075         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
5076         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h:  Likewise.
5077         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
5078
5079 2007-10-17  Jakub Jelinek  <jakub@redhat.com>
5080
5081         * sysdeps/posix/getaddrinfo.c (getaddrinfo): When sorting addresses
5082         and admin selects to be able to replace the gai.conf file, lock
5083         data structures around the qsort call.
5084
5085 2007-10-17  Ulrich Drepper  <drepper@redhat.com>
5086
5087         * sysdeps/x86_64/cacheinfo.c: Comment out code added in support of
5088         new memset.
5089         * sysdeps/x86_64/memset.S: Revert to old version for now.  The cost is
5090         too high for the improvements.  Implement bzero unconditionally for
5091         use in libc.
5092
5093 2007-10-17  Ulrich Drepper  <drepper@redhat.com>
5094             Jakub Jelinek  <jakub@redhat.com>
5095
5096         * time/tzfile.c (__tzfile_read): Read POSIX TZ string if available
5097         even when time_t is 32-bit.
5098         (__tzfile_compute): Override POSIX TZ string STD/DST zone names if
5099         timezone data read by __tzfile_default.  Ensure __tzname[0] is
5100         always set after the search.
5101
5102 2007-10-16  Ulrich Drepper  <drepper@redhat.com>
5103
5104         * time/tzfile.c (__tzfile_read): Help the compiler recognize
5105         unreachable code on 32-bit machines.
5106
5107 2007-10-16  Jakub Jelinek  <jakub@redhat.com>
5108
5109         [BZ #5184]
5110         * time/strftime_l.c: Include stdbool.h.
5111         (my_strftime): New wrapper, old function renamed to...
5112         (__strftime_internal): ... new function.  Add tzset_called
5113         argument, pass it down to recursive calls, don't call tzset ()
5114         if already true, set to true after call to tzset ().
5115
5116 2007-10-16  Ulrich Drepper  <drepper@redhat.com>
5117
5118         * time/tzfile.c (__tzfile_read): Take extra memory requested by caller
5119         into account when copying TZ string.
5120
5121 2007-10-16  Jakub Jelinek  <jakub@redhat.com>
5122
5123         * time/tzfile.c (__tzfile_compute): For use_last case set i to
5124         num_transition rather than num_transitions - 1.
5125
5126 2007-10-16  Jakub Jelinek  <jakub@redhat.com>
5127
5128         * sysdeps/x86_64/memset.S (memset): Fix sse2_nt_move
5129         PIC indirect jump.
5130
5131         * sysdeps/x86_64/memset.S: Jump from bzero to memset using
5132         a local label rather than HIDDEN_JUMPTARGET.
5133
5134 2007-10-15  Ulrich Drepper  <drepper@redhat.com>
5135
5136         * sysdeps/x86_64/cacheinfo.c (__x86_64_shared_cache_size): Define.
5137         (init_cacheinfo): Initialize it.
5138         * sysdeps/x86_64/memset.S: Use __x86_64_shared_cache_size.
5139         Always define bzero.
5140         Remove non-glibc code.
5141         * sysdeps/x86_64/bzero.S: Make an empty file.
5142
5143 2007-10-15  H.J. Lu  <hongjiu.lu@intel.com>
5144
5145         * sysdeps/x86_64/cacheinfo.c
5146         (__x86_64_preferred_memory_instruction): New.
5147         (init_cacheinfo): Initialize __x86_64_preferred_memory_instruction.
5148
5149         * sysdeps/x86_64/memset.S: Rewrite.
5150
5151 2007-10-15  Roland McGrath  <roland@redhat.com>
5152
5153         * po/libc.pot: Regenerated.
5154
5155 2007-10-15  Ulrich Drepper  <drepper@redhat.com>
5156
5157         * nss/getXXbyYY_r.c (REENTRANT_NAME): Mangle startp and start_fct
5158         pointers.
5159
5160         [BZ #3425]
5161         * resolv/nss_dns/dns-host.c (getanswer_r): Fail with
5162         NSS_STATUS_NOTFOUND if the server replied with only a CNAME and no
5163         address record to T_A/T_AAAA requests.
5164
5165 2007-10-14  Ulrich Drepper  <drepper@redhat.com>
5166
5167         * posix/glob.c: Reimplement link_exists_p to use fstatat64.
5168
5169         * posix/glob.c: Add some branch prediction throughout.
5170
5171         * nscd/nscd_getgr_r.c (nscd_getgr_r): Store result of successful
5172         read from nscd.
5173
5174         * sysdeps/posix/getaddrinfo.c (struct sort_result): Add
5175         service_order.
5176         (rfc3484_sort): Make sure that even if qsort doesn't support
5177         stable sorting out sorting here is stable by comparing service_order.
5178         (getaddrinfo): Initialize service_order.
5179         * posix/tst-rfc3484.c (do_test): Adjust for addition of
5180         service_order field to sorting structure.
5181         * posix/tst-rfc3484-2.c (do_test): Likewise.
5182
5183         * include/time.h: Declare __tzset_parse_tz and __tzset_compute.
5184         * time/tzset.c (tzset_internal): Break TZ string parsing out into
5185         __tzset_parse_tz and updating of daylight, timezone, tzname into
5186         update_vars.
5187         (__tz_compute): Renamed from tz_compute.  Take additional parameters.
5188         (__tz_convert): Updating of tm_isdst, tm_zone, and tm_gmtoff now
5189         happens in __tz_compute.
5190         * time/tzfile.c (__tzfile_read): Also read TZ string.
5191         (find_transition): Fold into __tzfile_compute.
5192         (__tzfile_compute): For times beyond the last transition try to
5193         use the TZ string.
5194         * timezone/tst-timezone.c: Information in daylight and tzname does
5195         change for Asia/Tokyo timezone with more concrete information.
5196         Remove the test.
5197
5198         * include/stdio.h: Add libc_hidden_proto for ftello.
5199         * libio/ftello.c: Add libc_hidden_def.
5200
5201         [BZ #1140]
5202         * time/tzfile.c (__tzfile_compute): Compute tzname[] values based
5203         on the specified time and not the last entries in the file.  Move
5204         code to determine tzname[] to...
5205         (find_transition): ...here.  Add ugly guess for times before the
5206         first transition.
5207
5208 2007-10-13  Ulrich Drepper  <drepper@redhat.com>
5209
5210         [BZ #3195]
5211         * nscd/nscd_getai.c (__nscd_getai): Set errno to 0 in case we found
5212         no entry.
5213         * nscd/nscd_getgr.c (nscd_getgr_r): Likewise.
5214         * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
5215         * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
5216         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
5217
5218         * nscd/nscd_getgr_r.c (nscd_getgr_r): Optimize a bit: use simpler
5219         read mechanism when there are no group members and avoid no-op
5220         read syscall in this case.
5221
5222         [BZ #3242]
5223         * nscd/nscd_helper.c (wait_on_socket): Take timeout as parameter.
5224         (__readall): If reading failed due to EAGAIN error wait a bit
5225         and possibly try again.
5226         (__readvall): Likewise.
5227
5228 2007-10-13  Bruno Haible  <bruno@clisp.org>
5229
5230         * intl/dcigettext.c (_nl_find_msg): Unlock the conversions_lock
5231         when we cannot recode the message.
5232
5233 2007-10-13  Ulrich Drepper  <drepper@redhat.com>
5234
5235         [BZ #4359]
5236         * libio/__freading.c (__freading): Don't return true for
5237         write-only streams.  For read/write streams, check whether we
5238         performed a read operation already.
5239         * libio/Makefile (tests): Add tst-ext2.
5240         * libio/tst-ext2.c: New file.
5241
5242 2007-10-12  Ulrich Drepper  <drepper@redhat.com>
5243
5244         * locale/programs/repertoire.c (repertoire_read): Always free
5245         memory for repertoire file name [Coverity CID 270].
5246
5247         * elf/cache.c (save_aux_cache): Free memory allocated for
5248         temporary file name [Coverity CID 267].
5249
5250 2007-10-12  Jakub Jelinek  <jakub@redhat.com>
5251
5252         * misc/Makefile (headers): Add bits/error.h.
5253
5254 2007-10-12  Ulrich Drepper  <drepper@redhat.com>
5255
5256         * posix/fnmatch_loop.c: Take rule index returned as part of
5257         findidx return value into account when accessing weights.
5258         * posix/regcomp.c: Likewise.
5259         * posix/regexec.c: Likewise.
5260
5261         * locale/programs/ld-collate.c (collate_read): Optimize a bit.
5262         (skip_to): Fix problems with parameter of elifdef/elifndef.
5263
5264 2007-10-11  Ulrich Drepper  <drepper@redhat.com>
5265
5266         * iconv/gconv_simple.c: Add some branch prediction.
5267
5268 2007-10-12  Jakub Jelinek  <jakub@redhat.com>
5269
5270         * locale/programs/ld-collate.c (collate_read): If ignore_content
5271         and nowtok is tok_define, eat any tok_eol tokens.
5272
5273 2007-10-11  Jakub Jelinek  <jakub@redhat.com>
5274
5275         * sysdeps/gnu/netinet/tcp.h: Include sys/socket.h if __USE_MISC.
5276         (struct tcp_md5sig): Change tcpm_addr type to struct sockaddr_storage.
5277
5278         * inet/netinet/in.h: Don't include bits/socket.h.
5279         * sysdeps/unix/sysv/linux/bits/socket.h: Only check _SYS_SOCKET_H
5280         macro.
5281         * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Likewise.
5282
5283 2007-10-10  Ulrich Drepper  <drepper@redhat.com>
5284
5285         * locale/programs/locfile-token.h: Remove tok_elif, add tok_elifdef
5286         and tok_elifndef.
5287         * locale/programs/locfile-kw.gperf: Likewise.
5288         * locale/programs/ld-collate.c: Implement primitive preprocessor.
5289
5290 2007-10-10  Jakub Jelinek  <jakub@redhat.com>
5291
5292         * stdio-common/printf-parse.h: Include string.h and wchar.h.
5293         (__find_specwc): Change into __extern_always_inline function.
5294         (__find_specmb): Likewise.  Remove ps argument.  Use __strchrnul.
5295         (__parse_one_specmb): Remove ps argument.
5296         * stdio-common/vfprintf.c (vfprintf): Remove mbstate variable.
5297         Adjust __find_specmb and __parse_one_specmb callers.
5298         * stdio-common/printf-prs.c (parse_printf_format): Likewise.
5299         * stdio-common/printf-parsemb.c (__find_specwc, __find_specmb):
5300         Removed.
5301         (__parse_one_specmb): Remove ps argument, adjust __find_specmb
5302         caller.
5303
5304 2007-10-09  Ulrich Drepper  <drepper@redhat.com>
5305
5306         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Work around problem
5307         with some Pentium Ds.
5308
5309 2007-10-08  Ulrich Drepper  <drepper@redhat.com>
5310
5311         * sysdeps/unix/sysv/linux/eventfd_read.c (eventfd_read): Use
5312         __read not read.
5313         * sysdeps/unix/sysv/linux/eventfd_write.c (eventfd_write): Use
5314         __write not write.
5315
5316 2007-10-07  Ulrich Drepper  <drepper@redhat.com>
5317
5318         [BZ #181]
5319         * locale/C-time.c: Set week_1stday data to 19971201.
5320         * locale/programs/ld-time.c (time_finish): Default for
5321         first_workday is Monday.
5322
5323         [BZ #2633]
5324         * wcsmbs/wchar.h: Move many C99 functions into std namespace.
5325
5326         [BZ #5103]
5327         * posix/glob.c (glob): Recognize patterns starting \/.
5328         * posix/tst-gnuglob.c (find_file): Handle absolute path names.
5329         (main): Add test for pattern starting \/.
5330
5331         * misc/error.h: Use __const instead of const.
5332         * misc/bits/error.h: Likewise.
5333
5334 2007-10-07  Andreas Jaeger  <aj@suse.de>
5335
5336         * include/bits/error.h: New file.
5337
5338         * misc/bits/error.h (error_at_line): Fix prototype.
5339
5340 2007-10-06  Ulrich Drepper  <drepper@redhat.com>
5341
5342         [BZ #3924]
5343         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix a few
5344         more little bugs in creating the stack frame when pltexit has to
5345         be called.
5346
5347         * nscd/nscd_helper.c (__nscd_cache_search): Prevent endless loops.
5348         * nscd/connections.c (verify_persistent_db): Recognize circular lists.
5349
5350         [BZ #4407]
5351         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Fix *signgamp for -0.0.
5352         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
5353         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
5354         * math/libm-test.inc: Add test for this case.
5355
5356         [BZ #5010]
5357         * sunrpc/svc.c (struct svc_callout): Add sc_mapped element.
5358         (svc_register): Initialize sc_mapped.  Set to TRUE if call to
5359         map service succeeded.
5360         (svc_is_mapped): New function.
5361         (svc_unregister): Use it before trying to unmap service.
5362
5363 2007-10-05  Ulrich Drepper  <drepper@redhat.com>
5364
5365         * timezone/zic.c: Update from tzcode2007h.
5366
5367         [BZ #5063]
5368         * timezone/africa: Update from tzdata2007h.
5369         * timezone/antarctica: Likewise.
5370         * timezone/asia: Likewise.
5371         * timezone/australasia: Likewise.
5372         * timezone/europe: Likewise.
5373         * timezone/leapseconds: Likewise.
5374         * timezone/northamerica: Likewise.
5375         * timezone/southamerica: Likewise.
5376         * timzeone/zone.tab: Likewise.
5377
5378         [BZ #5104]
5379         * elf/do-lookup.h (do_lookup_x): Don't ignore STT_COMMON symbols.
5380
5381         [BZ #5113]
5382         * string/bits/string2.h (__strdup): Cast parameters to calloc to
5383         avoid warning with -Wconversion.
5384         (__strndup): Likewise.
5385         Half the patch by Christian Iseli <christian.iseli@licr.org>.
5386
5387         [BZ #5112]
5388         * nscd/connections.c (restart): Don't resync if database is
5389         disabled.  Patch mostly by Brian De Wolf <bldewolf@csupomona.edu>.
5390
5391         * sysdeps/gnu/netinet/tcp.h: Define TCP_MD5SIG, TCP_MD5SIG_MAXKEYLEN,
5392         struct tcp_md5sig.  Extend struct tcp_info according to recent kernels.
5393
5394         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add eventfd,
5395         evetnfd_read, eventfd_write.
5396         * sysdeps/unix/sysv/linux/eventfd.c: New file.
5397         * sysdeps/unix/sysv/linux/eventfd_read.c: New file.
5398         * sysdeps/unix/sysv/linux/eventfd_write.c: New file.
5399         * sysdeps/unix/sysv/linux/sys/eventfd.h: New file.
5400         * sysdeps/unix/sysv/linux/Versions: Export eventfd, eventfd_read,
5401         eventfd_write for GLIBC_2.7.
5402
5403         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add signalfd.
5404         * sysdeps/unix/sysv/linux/signalfd.c: New file.
5405         * sysdeps/unix/sysv/linux/sys/signalfd.h: New file.
5406         * sysdeps/unix/sysv/linux/Versions: Export signalfd for GLIBC_2.7.
5407
5408 2007-10-04  Jakub Jelinek  <jakub@redhat.com>
5409
5410         * stdlib/msort.c: Include stdint.h.
5411         (struct msort_param): New type.
5412         (msort_with_tmp): Use struct msort_param pointer for unchanging
5413         parameters.  Add optimized handling for several common sizes
5414         and indirect sorting mode.
5415         (qsort): Adjust msort_with_tmp callers.  For big S use indirect
5416         sorting.
5417         Suggested by Belazougui Djamel .
5418
5419         * stdlib/Makefile (tests): Add tst-qsort2.
5420         * stdlib/tst-qsort2.c: New test.
5421
5422 2007-10-04  Ulrich Drepper  <drepper@redhat.com>
5423
5424         * login/login_tty.c (login_tty): The Linux kernel can return EBUSY
5425         for dup2 in case another thread races with the current one.  Retry
5426         in this case.
5427
5428         * misc/error.h: Remove support for use outside of libc.  We have to
5429         include <features.h> now.  Include <bits/error.h> if possible.
5430         * misc/bits/error.h: New file.
5431
5432 2007-10-03  Jakub Jelinek  <jakub@redhat.com>
5433
5434         * string/bits/string3.h (memcpy, memmove, mempcpy, memset, bcopy,
5435         bzero, strcpy, stpcpy, strncpy, strcat, strncat): Use
5436         __extern_always_inline functions unconditionally, drop macros.
5437
5438         * misc/sys/cdefs.h (__REDIRECT_LDBL, __REDIRECT_NTH_LDBL): New macros.
5439         * wcsmbs/bits/wchar2.h (__swprintf_alias, __vswprintf_alias): Use
5440         __REDIRECT_NTH_LDBL macro rather than __REDIRECT_NTH.
5441
5442         * misc/sys/cdefs.h (__extern_always_inline): For GCC 4.3+
5443         add __artificial__ attribute.
5444
5445 2007-10-02  Ulrich Drepper  <drepper@redhat.com>
5446
5447         * string/strcoll_l.c (STRCOLL): Correct handling of switching from
5448         backward to forward direction.
5449
5450         * string/strcoll_l.c (STRCOLL): Correct test for alloca use.
5451
5452         [BZ #645]
5453         * locale/programs/ld-collate.c (collate_finish): Compare against last
5454         used section which is known to have rules defined.
5455         (collate_read): After order_start, correctly record order of sections
5456         and queue sections up.
5457
5458 2007-10-01  Ulrich Drepper  <drepper@redhat.com>
5459
5460         [BZ #5071]
5461         * malloc/malloc.c (mremap_chunk): Avoid resizing of new block has
5462         the same number of pages.
5463         Patch by Tomash Brechko <tomash.brechko@gmail.com>.
5464
5465         * locale/programs/ld-collate.c (collate_read): After initial copy
5466         statement, continue in state 0.
5467
5468         * include/stdio_ext.h (__fsetlocking): Define as macro.
5469
5470 2007-09-30  Ulrich Drepper  <drepper@redhat.com>
5471
5472         * locale/programs/ld-collate.c (collate_finish): Compare all bytes
5473         of section order.
5474
5475         * po/pt_BR.po: Fix typo.
5476
5477 2007-09-29  Ulrich Drepper  <drepper@redhat.com>
5478
5479         * iconvdata/Makefile (modules): Add ISO8859-9E.
5480         (distribute): Add iso8859-9e.c.
5481         (gen-8bit-gap-modules): Add iso8859-9e.
5482         * iconvdata/iso8859-9e.c: New file.
5483         * iconvdata/gconv-modules: Add entries for ISO-8859-9E.
5484         * iconvdata/TESTS: Likewise.
5485         * iconvdata/tst-tables.sh: Likewise.
5486
5487         * iconvdata/koi8-r.c (HAS_HOLES): Define to 0.
5488
5489         * locale/iso-639.def: Add several new entries.
5490
5491 2007-09-24  Jakub Jelinek  <jakub@redhat.com>
5492
5493         * sysdeps/generic/ldsodefs.h (struct dl_scope_free_list): Store
5494         void * pointers instead of struct link_map **.
5495         (_dl_scope_free): Change argument type to void *.
5496         * include/link.h (struct link_map): Change type of l_reldeps
5497         to struct link_map_reldeps, move l_reldepsact into that
5498         struct too.
5499         * elf/dl-deps.c: Include atomic.h.
5500         (_dl_map_object_deps): Only change l->l_initfini when it is
5501         fully populated, use _dl_scope_free for freeing it.  Optimize
5502         removal of libs from reldeps by using l_reserved flag, when
5503         some removal is needed, allocate a new list instead of
5504         reallocating and free the old with _dl_scope_free.  Adjust
5505         for l_reldeps and l_reldepsact changes.
5506         * elf/dl-lookup.c (add_dependency): Likewise.  Reorganize to allow
5507         searching in l_initfini and l_reldeps without holding dl_load_lock.
5508         * elf/dl-fini.c (_dl_sort_fini): Adjust for l_reldeps and
5509         l_reldepsact changes.
5510         * elf/dl-close.c (_dl_close_worker): Likewise.
5511         * elf/dl-open.c (_dl_scope_free): Change argument type to void *.
5512
5513 2007-09-28  Ulrich Drepper  <drepper@redhat.com>
5514
5515         * iconvdata/Makefile (modules): Add KOI8-RU.
5516         (distribute): Add koi8-ru.c.
5517         (gen-8bit-gap-modules): Add koi8-ru.
5518         * iconvdata/koi8-ru.c: New file.
5519         * iconvdata/gconv-modules: Add entries for KOI8-RU.
5520         * iconvdata/TESTS: Likewise.
5521         * iconvdata/tst-tables.sh: Likewise.
5522
5523         * iconvdata/koi8-r.c (HAS_HOLES): Define to 0.
5524
5525 2007-09-26  Jakub Jelinek  <jakub@redhat.com>
5526
5527         * misc/sys/cdefs.h (__warndecl, __errordecl): For GCC 4.3+ define
5528         with __warning__/__error__ attributes.
5529         (__warnattr): Define.
5530         * stdlib/bits/stdlib.h (__realpath_chk_warn, __ptsname_r_chk_warn,
5531         __mbstowcs_chk_warn, __wcstombs_chk_warn): New aliases with
5532         __warnattr.
5533         (realpath, ptsname_r, mbstowcs, wcstombs): Call __*_chk_warn instead
5534         of __*_chk if compile time detectable overflow is found.
5535         * libio/bits/stdio2.h (__fgets_chk_warn, __fread_chk_warn,
5536         __fgets_unlocked_chk_warn, __fread_unlocked_chk_warn): New aliases
5537         with __warnattr.
5538         (fgets, fread, fgets_unlocked, fread_unlocked): Call __*_chk_warn
5539         instead of __*_chk if compile time detectable overflow is found.
5540         (__gets_alias): Rename to...
5541         (__gets_warn): ... this.  Add __warnattr.
5542         (gets): Call __gets_warn instead of __gets_alias.
5543         * socket/bits/socket2.h (__recv_chk_warn, __recvfrom_chk_warn): New
5544         aliases with __warnattr.
5545         (recv, recvfrom): Call __*_chk_warn instead of __*_chk if compile
5546         time detectable overflow is found.
5547         * posix/bits/unistd.h (__read_chk_warn, __pread_chk_warn,
5548         __pread64_chk_warn, __readlink_chk_warn, __readlinkat_chk_warn,
5549         __getcwd_chk_warn, __confstr_chk_warn, __getgroups_chk_warn,
5550         __ttyname_r_chk_warn, __getlogin_r_chk_warn, __gethostname_chk_warn,
5551         __getdomainname_chk_warn): New aliases with __warnattr.
5552         (read, pread, pread64, readlink, readlinkat, getcwd, confstr,
5553         getgroups, ttyname_r, getlogin_r, gethostname, getdomainname): Call
5554         __*_chk_warn instead of __*_chk if compile time detectable overflow
5555         is found.
5556         (__getgroups_chk): Rename argument to __listlen from listlen.
5557         (__getwd_alias): Rename to...
5558         (__getwd_warn): ... this.  Add __warnattr.
5559         (getwd): Call __getwd_warn instead of __getwd_alias.
5560         * wcsmbs/bits/wchar2.h (__wmemcpy_chk_warn, __wmemmove_chk_warn,
5561         __wmempcpy_chk_warn, __wmemset_chk_warn, __wcsncpy_chk_warn,
5562         __wcpncpy_chk_warn, __fgetws_chk_warn, __fgetws_unlocked_chk_warn,
5563         __mbsrtowcs_chk_warn, __wcsrtombs_chk_warn, __mbsnrtowcs_chk_warn,
5564         __wcsnrtombs_chk_warn): New aliases with __warnattr.
5565         (wmemcpy, wmemmove, wmempcpy, wmemset, mbsrtowcs, wcsrtombs,
5566         mbsnrtowcs, wcsnrtombs): Call __*_chk_warn instead of __*_chk if
5567         compile time detectable overflow is found.
5568         (wcsncpy, wcpncpy): Likewise.  For constant __n fix check whether
5569         to use __*_chk or not.
5570         (fgetws, fgetws_unlocked): Divide __bos by sizeof (wchar_t), both
5571         in comparisons which function should be called and in __*_chk*
5572         arguments.  Call __*_chk_warn instead of __*_chk if compile time
5573         detectable overflow is found.
5574         (swprintf, vswprintf): Divide __bos by sizeof (wchar_t) in
5575         __*_chk argument.
5576         * debug/tst-chk1.c (do_test): Add a few more tests.
5577
5578 2007-09-24  Ulrich Drepper  <drepper@redhat.com>
5579
5580         [BZ #5058]
5581         * intl/gettextP.h (struct loaded_domain): Add conversions_lock member.
5582         * intl/loadmsgcat.c (_nl_load_domain): Initialize conversions_lock.
5583         (_nl_unload_domain): Finalize conversions_lock.
5584         * intl/dcigettext.c (_nl_find_msg): Take conversions_lock before
5585         handling table of known conversions.
5586
5587 2007-09-24  Jakub Jelinek  <jakub@redhat.com>
5588
5589         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Use
5590         close_not_cancel_no_status instead of close.
5591
5592 2007-09-13  Aurelien Jarno  <aurelien@aurel32.net>
5593
5594         [BZ #5028]
5595         * posix/regcomp.c (lookup_collation_sequence_value): Check that
5596         nrules != 0 for multibyte chars.
5597
5598 2007-09-23  Ulrich Drepper  <drepper@redhat.com>
5599
5600         * resolv/ns_print.c (ns_sprintrrf): Handle ns_t_a6 and ns_t_opt.
5601         Provide better error message in case the type is unknown.
5602
5603         [BZ #4963]
5604         * wcsmbs/wcsnlen.c: Don't reference before checking the length.
5605         * string/stratcliff.c: Make usable to test wide char functions.
5606         * wcsmbs/wcsatcliff.c: New file.
5607         * wcsmbs/Makefiel (tests): Add wcsatcliff.
5608
5609         [BZ #4972]
5610         * iconvdata/Makefile (modules): Add MAC-CENTRALEUROPE.
5611         (distribute): Add mac-centraleurope.c.
5612         (gen-8bit-gap-modules): Add mac-centraleurope.
5613         * iconvdata/mac-centraleurope.c: New file.
5614         * iconvdata/gconv-modules: Add entries for MAC-CENTRALEUROPE.
5615         * iconvdata/TESTS: Likewise.
5616         * iconvdata/tst-tables.sh: Likewise.
5617
5618         [BZ #5043]
5619         * iconv/iconv_open.c (iconv_open): For large codeset names use malloc.
5620
5621 2007-09-21  Ulrich Drepper  <drepper@redhat.com>
5622
5623         * sysdeps/x86_64/cacheinfo.c (__x86_64_data_cache_size_half): Renamed
5624         from __x86_64_core_cache_size_half.
5625         (init_cacheinfo): Compute shared cache size for AMD processors with
5626         shared L3 correctly.
5627         * sysdeps/x86_64/memcpy.S: Adjust for __x86_64_data_cache_size_half
5628         name change.
5629         Patch in large parts by Evandro Menezes.
5630
5631 2007-09-19  Ulrich Drepper  <drepper@redhat.com>
5632
5633         * elf/dl-lookup.c (add_dependency): Handle failing memory
5634         allocation for dependency list.  Remove unnecessary check.
5635
5636         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid unnecessary
5637         open/close when determining source addresses.
5638
5639         * crypt/Makefile (libcrypt-routines): Add sha256-crypt, sha256,
5640         sha512-crypt, and sha512.
5641         (tests): Add sha256test, sha256c-test, sha512test, and sha512c-test.
5642         (distribute): Add sha256.h and sha512.h.
5643         * crypt/crypt-entry.c (crypt): Recognize the new $5$ and $6$ prefixes
5644         and call the appropriate code.
5645         * crypt/sha256-crypt.c: New file.
5646         * crypt/sha256.c: New file.
5647         * crypt/sha256.h: New file.
5648         * crypt/sha256c-test.c: New file.
5649         * crypt/sha256test.c: New file.
5650         * crypt/sha512-crypt.c: New file.
5651         * crypt/sha512.c: New file.
5652         * crypt/sha512.h: New file.
5653         * crypt/sha512c-test.c: New file.
5654         * crypt/sha512test.c: New file.
5655
5656 2007-09-19  Jakub Jelinek  <jakub@redhat.com>
5657
5658         * misc/bits/syslog.h (syslog): Remove extraneous argument from
5659         the inline, pass __USE_FORTIFY_LEVEL - 1 as second argument to
5660         __syslog_chk.
5661
5662 2007-09-18  Jakub Jelinek  <jakub@redhat.com>
5663
5664         * locale/programs/charmap-dir.c (charmap_aliases): Use %ms instead of
5665         %as in fscanf format strings.
5666
5667         * sysdeps/sparc/sparc32/elf/start.S: Remove cfi_* markup.
5668         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
5669         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__thread_start):
5670         Likewise.
5671         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__thread_start):
5672         Likewise.
5673
5674         * sysdeps/generic/ldsodefs.h (DL_LOOKUP_GSCOPE_LOCK): New definition.
5675         * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Or in
5676         DL_LOOKUP_GSCOPE_LOCK into flags after THREAD_GSCOPE_SET_FLAG ().
5677         * elf/dl-sym.c (do_sym): Likewise.
5678         * include/link.h (struct link_map): Add l_serial field.
5679         * elf/dl-object.c (_dl_new_object): Initialize l_serial.
5680         * elf/dl-lookup.c (add_dependency): Add flags argument.
5681         Remember map->l_serial, if DL_LOOKUP_GSCOPE_LOCK is among
5682         flags, use THREAD_GSCOPE_RESET_FLAG before and
5683         THREAD_GSCOPE_SET_FLAG after
5684         __rtld_lock_lock_recursive (GL(dl_load_lock)) to avoid deadlock.
5685         Don't dereference map until it has been found on some list.
5686         If map->l_serial changed, return -1.
5687
5688 2007-09-17  Jakub Jelinek  <jakub@redhat.com>
5689
5690         * include/stdio.h (__isoc99_fscanf, __isoc99_scanf,
5691         __isoc99_sscanf, __isoc99_vscanf): New prototypes.
5692         (__isoc99_vsscanf, __isoc99_vfscanf): New prototypes, add
5693         libc_hidden_proto.
5694         * include/wchar.h (__isoc99_fwscanf, __isoc99_wscanf,
5695         __isoc99_swscanf, __isoc99_vwscanf): New prototypes.
5696         (__isoc99_vswscanf, __isoc99_vfwscanf): New prototypes,
5697         add libc_hidden_proto.
5698         * libio/stdio.h (fscanf, scanf, sscanf, vfscanf, vscanf,
5699         vsscanf): Redirect to __isoc99_* if strict ISO C99 or POSIX
5700         conformance requested.
5701         * wcsmbs/wchar.h (fwscanf, wscanf, swscanf, vfwscanf, vwscanf,
5702         vswscanf): Redirect to __isoc99_* if strict ISO C99 or POSIX
5703         conformance requested.
5704         * libio/bits/stdio-ldbl.h (fscanf, scanf, sscanf, vfscanf, vscanf,
5705         vsscanf): Redirect to __nldbl___isoc99_* if strict ISO C99 or POSIX
5706         conformance requested.
5707         * wcsmbs/bits/wchar-ldbl.h (fwscanf, wscanf, swscanf, vfwscanf,
5708         vwscanf, vswscanf): Redirect to __nldbl___isoc99_* if strict
5709         ISO C99 or POSIX conformance requested.
5710         * stdio-common/Versions (libc): Export __isoc99_scanf@@GLIBC_2.7,
5711         __isoc99_vscanf@@GLIBC_2.7, __isoc99_fscanf@@GLIBC_2.7,
5712         __isoc99_vfscanf@@GLIBC_2.7, __isoc99_sscanf@@GLIBC_2.7
5713         and __isoc99_vsscanf@@GLIBC_2.7.
5714         * stdio-common/Makefile (routines): Add isoc99_scanf, isoc99_vscanf,
5715         isoc99_fscanf, isoc99_vfscanf, isoc99_sscanf and isoc99_vsscanf.
5716         (tests): Add scanf14.
5717         (CFLAGS-vfprintf.c, CFLAGS-fprintf.c, CFLAGS-printf.c,
5718         CFLAGS-vfwprintf.c, CFLAGS-vfscanf.c, CFLAGS-vfwscanf.c,
5719         CFLAGS-fscanf.c, CFLAGS-scanf.c, CFLAGS-isoc99_vfscanf.c,
5720         CFLAGS-isoc99_vscanf.c, CFLAGS-isoc99_fscanf.c,
5721         CFLAGS-isoc99_scanf.c): Add $(exceptions).
5722         (CFLAGS-scanf15.c): Add various -I paths to prevent the compiler
5723         from using internal headers.
5724         * wcsmbs/Versions (libc): Export __isoc99_wscanf@@GLIBC_2.7,
5725         __isoc99_vwscanf@@GLIBC_2.7, __isoc99_fwscanf@@GLIBC_2.7,
5726         __isoc99_vfwscanf@@GLIBC_2.7, __isoc99_swscanf@@GLIBC_2.7
5727         and __isoc99_vswscanf@@GLIBC_2.7.
5728         * wcsmbs/Makefile (routines): Add isoc99_wscanf, isoc99_vwscanf,
5729         isoc99_fwscanf, isoc99_vfwscanf, isoc99_swscanf and isoc99_vswscanf.
5730         (CFLAGS-isoc99_wscanf.c, CFLAGS-isoc99_fwscanf.c,
5731         CFLAGS-isoc99_vwscanf.c, CFLAGS-isoc99_vfwscanf.c): Add $(exceptions).
5732         (CPPFLAGS): Add -D_IO_MTSAFE_IO if needed.
5733         * stdio-common/isoc99_scanf.c: New file.
5734         * stdio-common/isoc99_vsscanf.c: New file.
5735         * stdio-common/isoc99_vscanf.c: New file.
5736         * stdio-common/isoc99_vfscanf.c: New file.
5737         * stdio-common/isoc99_fscanf.c: New file.
5738         * stdio-common/isoc99_sscanf.c: New file.
5739         * wcsmbs/isoc99_fwscanf.c: New file.
5740         * wcsmbs/isoc99_vswscanf.c: New file.
5741         * wcsmbs/isoc99_swscanf.c: New file.
5742         * wcsmbs/isoc99_wscanf.c: New file.
5743         * wcsmbs/isoc99_vwscanf.c: New file.
5744         * wcsmbs/isoc99_vfwscanf.c: New file.
5745         * libio/libio.h (_IO_FLAGS2_SCANF_STD): Define.
5746         * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): Also
5747         clear _IO_FLAGS2_SCANF_STD bit from _flags2.
5748         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Don't
5749         handle %as, %aS and %a[ if _IO_FLAGS2_SCANF_STD is set in _flags2.
5750         * stdio-common/scanf14.c: New test.
5751         * stdio-common/scanf15.c: New test.
5752         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add
5753         isoc99_scanf, isoc99_fscanf, isoc99_sscanf,
5754         isoc99_vscanf, isoc99_vfscanf, isoc99_vsscanf,
5755         isoc99_wscanf, isoc99_fwscanf, isoc99_swscanf,
5756         isoc99_vwscanf, isoc99_vfwscanf and isoc99_vswscanf.
5757         * sysdeps/ieee754/ldbl-opt/Versions (libc): Export
5758         __nldbl___isoc99_scanf@@GLIBC_2.7,
5759         __nldbl___isoc99_fscanf@@GLIBC_2.7,
5760         __nldbl___isoc99_sscanf@@GLIBC_2.7,
5761         __nldbl___isoc99_vscanf@@GLIBC_2.7,
5762         __nldbl___isoc99_vfscanf@@GLIBC_2.7,
5763         __nldbl___isoc99_vsscanf@@GLIBC_2.7,
5764         __nldbl___isoc99_wscanf@@GLIBC_2.7,
5765         __nldbl___isoc99_fwscanf@@GLIBC_2.7,
5766         __nldbl___isoc99_swscanf@@GLIBC_2.7,
5767         __nldbl___isoc99_vwscanf@@GLIBC_2.7,
5768         __nldbl___isoc99_vfwscanf@@GLIBC_2.7
5769         and __nldbl___isoc99_vswscanf@@GLIBC_2.7.
5770         * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__isoc99_scanf,
5771         __isoc99_fscanf, __isoc99_sscanf, __isoc99_vscanf,
5772         __isoc99_vfscanf, __isoc99_vsscanf, __isoc99_wscanf,
5773         __isoc99_fwscanf, __isoc99_swscanf, __isoc99_vwscanf,
5774         __isoc99_vfwscanf, __isoc99_vswscanf): Add NLDBL_DECL.
5775         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
5776         (__nldbl___isoc99_scanf, __nldbl___isoc99_fscanf,
5777         __nldbl___isoc99_sscanf, __nldbl___isoc99_vscanf,
5778         __nldbl___isoc99_vfscanf, __nldbl___isoc99_vsscanf,
5779         __nldbl___isoc99_wscanf, __nldbl___isoc99_fwscanf,
5780         __nldbl___isoc99_swscanf, __nldbl___isoc99_vwscanf,
5781         __nldbl___isoc99_vfwscanf, __nldbl___isoc99_vswscanf): New
5782         functions.
5783         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vfscanf.c: New file.
5784         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_swscanf.c: New file.
5785         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vwscanf.c: New file.
5786         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_wscanf.c: New file.
5787         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_scanf.c: New file.
5788         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_sscanf.c: New file.
5789         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vsscanf.c: New file.
5790         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_fwscanf.c: New file.
5791         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vfwscanf.c: New file.
5792         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vswscanf.c: New file.
5793         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vscanf.c: New file.
5794         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_fscanf.c: New file.
5795
5796         * stdio-common/Makefile (tests): Add scanf13.
5797         (scanf13-ENV): New.
5798         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Handle
5799         m modifier followed by l.
5800         (STRING_ARG): Add width argument.
5801         (_IO_vfscanf_internal) <case L_('c')>: Handle %mc.
5802         <case L_('C')>: Handle %mlc and %mC.
5803         <case L_('s'), case L_('S'), case L_('[')>: Adjust STRING_ARG
5804         arguments.
5805         * stdio-common/scanf13.c: New test.
5806
5807         * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): Clear
5808         the _IO_FLAGS2_FORTIFY bit from _flags2 rather than _flags.
5809
5810 2007-09-18  Ulrich Drepper  <drepper@redhat.com>
5811
5812         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Correct return value
5813         type and __THROW marker of splice, vmsplice, and tee.
5814         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
5815         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
5816         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
5817         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
5818         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
5819         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
5820         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
5821         * sysdeps/unix/sysv/linux/syscalls.list: Mark splice, vmsplice, and tee
5822         as cancellation points.
5823
5824 2003-11-01  Daniel Jacobowitz  <dan@debian.org>
5825
5826         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_discover_osversion): Don't
5827         parse more than three parts of the version number.
5828
5829 2007-09-15  Ulrich Drepper  <drepper@redhat.com>
5830
5831         * stdio-common/vfscanf.c (_IO_vfwscanf): Add support for 'm'
5832         modifier.  Patch by Jakub Jelinek.
5833
5834 2007-08-26  Jakub Jelinek  <jakub@redhat.com>
5835
5836         * sysdeps/unix/sysv/linux/i386/Makefile (sysdep_routines): Add
5837         call_fallocate in misc subdir.
5838         * sysdeps/unix/sysv/linux/i386/call_fallocate.S: New file.
5839         * sysdeps/unix/sysv/linux/i386/syscalls.list (fallocate64): Remove.
5840         * sysdeps/unix/sysv/linux/i386/posix_fallocate.c: Use __call_fallocate
5841         instead of __fallocate64.
5842         * sysdeps/unix/sysv/linux/i386/posix_fallocate64.c: Likewise.
5843
5844 2007-09-15  Jakub Jelinek  <jakub@redhat.com>
5845
5846         * rt/Versions (librt): Export __mq_open_2@@GLIBC_2.7.
5847         * rt/Makefile (headers): Add bits/mqueue2.h.
5848         * rt/mqueue.h: Include bits/mqueue2.h if -D_FORTIFY_SOURCE=2,
5849         optimizing with GCC and __va_arg_pack_len is defined.
5850         * rt/bits/mqueue2.h: New file.
5851         * rt/mq_open.c (__mq_open): Renamed from mq_open.
5852         (mq_open): New strong_alias.
5853         (__mq_open_2): New function.
5854         * sysdeps/unix/sysv/linux/mq_open.c (__mq_open): Renamed from mq_open.
5855         (mq_open): New strong_alias.
5856         (__mq_open_2): New function.
5857         * debug/Versions (libc): Export __fortify_fail@@GLIBC_PRIVATE.
5858         * Versions.def (librt): Add GLIBC_2.7 version.
5859         * debug/fortify_fail.c (__fortify_fail): Add libc_hidden_def.
5860         * include/stdio.h (__fortify_fail): Add libc_hidden_proto.
5861
5862         * misc/sys/cdefs.h (__errordecl, __va_arg_pack_len): Define.
5863         * io/fcntl.h: Include bits/fcntl2.h when __va_arg_pack_len
5864         is defined rather than when not C++.
5865         * io/bits/fcntl2.h (__open_alias, __open64_alias, __openat_alias,
5866         __openat64_alias): New redirects.
5867         (__open_too_many_args, __open_missing_mode, __open64_too_many_args,
5868         __open64_missing_mode, __openat_too_many_args, __openat_missing_mode,
5869         __openat64_too_many_args, __openat64_missing_mode): New __errordecls.
5870         (open, open64, openat, openat64): Rewrite as __extern_always_inline
5871         functions instead of function-like macros.
5872
5873 2007-09-14  H.J. Lu  <hongjiu.lu@intel.com>
5874
5875         * sysdeps/i386/i586/memcpy.S (__memcpy_chk): New definition.
5876         * sysdeps/i386/i586/mempcpy.S (__memcpy_chk): New definition.
5877         * sysdeps/i386/i586/memset.S (__memset_chk): New definition.
5878
5879 2007-09-15  Mike Frysinger  <vapier@gentoo.org>
5880
5881         * inet/inet_net.c: Reset digit to 0 for inputs starting with "0x".
5882         * inet/tst-network.c (tests): Add edge case tests for "0", "0x", "0x0".
5883
5884 2007-09-14  Mike Frysinger  <vapier@gentoo.org>
5885
5886         * inet/tst-network.c: Increment ERRORS for failing tests.
5887
5888 2007-09-07  Jakub Jelinek  <jakub@redhat.com>
5889
5890         * misc/sys/cdefs.h (__va_arg_pack): Define for GCC 4.3+.
5891         * misc/bits/syslog.h (syslog): When __va_arg_pack is defined,
5892         implement as __extern_always_inline function.
5893         (vsyslog): Define as __extern_always_inline function unconditionally.
5894         * libio/bits/stdio2.h (sprintf, snprintf, printf, fprintf):
5895         When __va_arg_pack is defined, implement as __extern_always_inline
5896         functions.
5897         (vsprintf, vsnprintf, vprintf, vfprintf): Define as
5898         __extern_always_inline functions unconditionally.
5899         * libio/bits/stdio.h (vprintf): Ifdef out the inline when
5900         bits/stdio2.h will be included.
5901         * wcsmbs/bits/wchar2.h (__swprintf_alias): New redirect.
5902         (swprintf, wprintf, fwprintf): When __va_arg_pack is defined,
5903         implement as __extern_always_inline functions.
5904         (vswprintf, vwprintf, vfwprintf): Define as
5905         __extern_always_inline functions unconditionally.
5906         * debug/tst-chk1.c (do_test): Enable remaining tests for C++.
5907
5908 2007-09-03  Jakub Jelinek  <jakub@redhat.com>
5909
5910         * misc/sys/cdefs.h (__extern_inline, __extern_always_inline): Only
5911         define in C++ for GCC 4.3+, in C++ always use __gnu_inline__
5912         attribute.
5913         * include/features.h (__USE_EXTERN_INLINES): Define only when
5914         __extern_inline is defined.
5915         * stdlib/stdlib.h: Include bits/stdlib.h when __extern_always_inline
5916         is defined instead of when not __cplusplus.
5917         * misc/sys/syslog.h: Include bits/syslog.h when __extern_always_inline
5918         is defined instead of when not __cplusplus.
5919         * socket/sys/socket.h: Include bits/socket2.h when
5920         __extern_always_inline is defined instead of when not __cplusplus.
5921         * libio/stdio.h: Include bits/stdio2.h when __extern_always_inline
5922         is defined instead of when not __cplusplus.
5923         * posix/unistd.h: Include bits/unistd.h when __extern_always_inline
5924         is defined instead of when not __cplusplus.
5925         * string/string.h: Include bits/string3.h when __extern_always_inline
5926         is defined instead of when not __cplusplus.
5927         * wcsmbs/wchar.h: Include bits/wchar2.h when __extern_always_inline
5928         is defined instead of when not __cplusplus.
5929         (btowc, wctob): Don't guard the inlines with ifndef __cplusplus.
5930         * io/fcntl.h: Don't include bits/fcntl2.h if __extern_always_inline
5931         is not defined.
5932         * misc/bits/syslog-ldbl.h: Guard *_chk stuff with
5933         defined __extern_always_inline instead of !defined __cplusplus.
5934         * libio/bits/stdio-ldbl.h: Likewise.
5935         * wcsmbs/bits/wchar-ldbl.h: Likewise.
5936         * misc/bits/syslog.h (syslog): Don't define for C++.
5937         (vsyslog): Use __extern_always_inline function for C++ instead of
5938         a macro.
5939         * libio/bits/stdio.h (__STDIO_INLINE): Define to __extern_inline
5940         whenever that macro is defined.
5941         (vprintf): Don't provide the inline for C++.
5942         (fread_unlocked, fwrite_unlocked): Don't define the macros for C++.
5943         * libio/bits/stdio2.h (sprintf, snprintf, printf, fprintf): Don't
5944         define the macros for C++.
5945         (vsprintf, vsnprintf, vprintf, vfprintf): Define as
5946         __extern_always_inline functions for C++.
5947         * io/sys/stat.h (stat, lstat, fstat, fstatat, mknod, mknodat,
5948         stat64, lstat64, fstat64, fstatat64): Don't define if not
5949         __USE_EXTERN_INLINES.
5950         * wcsmbs/bits/wchar2.h: Fix #error message.
5951         (swprintf, wprintf, fwprintf): Don't define the macros for C++.
5952         (vswprintf, vwprintf, vfwprintf): Define using
5953         __extern_always_inline functions for C++.
5954         * string/bits/string3.h: Don't #undef macros if __cplusplus.
5955         (memcpy, memmove, mempcpy, memset, bcopy, bzero, strcpy, stpcpy,
5956         strncpy, strcat, strncat): Define as __extern_always_inline
5957         functions instead of macros for C++.
5958         * math/bits/cmathcalls.h: Guard __extern_inline routines with
5959         defined __extern_inline.
5960         * sysdeps/alpha/fpu/bits/mathinline.h (__MATH_INLINE): Define
5961         to __extern_inline whenever that macro is defined.
5962         * sysdeps/ia64/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
5963         * sysdeps/i386/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
5964         * sysdeps/i386/i486/bits/string.h (__STRING_INLINE): Likewise.
5965         * sysdeps/s390/bits/string.h (__STRING_INLINE): Likewise.
5966         * sysdeps/s390/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
5967         * sysdeps/powerpc/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
5968         * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
5969         * sysdeps/sparc/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
5970         * sysdeps/unix/sysv/linux/sys/sysmacros.h (gnu_dev_major,
5971         gnu_dev_minor, gnu_dev_makedev): Remove __extern_inline from
5972         prototypes.  Only provide __extern_inline routines if
5973         __USE_EXTERN_INLINES.
5974         * debug/Makefile: Add rules to build and run tst-{,lfs}chk{4,5,6}
5975         tests.
5976         * debug/tst-chk1.c (do_prepare, do_test): Allow compilation as C++.
5977         For now avoid some *printf tests in C++.  Skip all testing
5978         if __USE_FORTIFY_LEVEL is defined, but __extern_always_inline macro
5979         is not.
5980         * debug/tst-chk4.cc: New file.
5981         * debug/tst-chk5.cc: New file.
5982         * debug/tst-chk6.cc: New file.
5983         * debug/tst-lfschk4.cc: New file.
5984         * debug/tst-lfschk5.cc: New file.
5985         * debug/tst-lfschk6.cc: New file.
5986         * include/wchar.h (__vfwprintf_chk, __vswprintf_chk): Avoid
5987         prototypes in C++.
5988         * include/stdio.h (__sprintf_chk, __snprintf_chk, __vsprintf_chk,
5989         __vsnprintf_chk, __printf_chk, __fprintf_chk, __vprintf_chk,
5990         __vfprintf_chk, __fgets_unlocked_chk, __fgets_chk): Likewise.
5991
5992 2007-09-13  Ulrich Drepper  <drepper@redhat.com>
5993
5994         * po/cs.po: Update from translation team.
5995
5996 2007-09-11  Roland McGrath  <roland@redhat.com>
5997
5998         * posix/Makefile ($(objpfx)getconf.speclist): Make it empty if cross
5999         compiling.
6000
6001 2007-09-07  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6002
6003         * sysdeps/mach/hurd/bits/ioctls.h (TAB3): New macro.
6004
6005 2007-09-05  Roland McGrath  <roland@redhat.com>
6006
6007         * manual/signal.texi (Signaling Another Process): Typo fix.
6008         From Karl Berry <karl@freefriends.org>.
6009
6010 2007-08-29  Ulrich Drepper  <drepper@redhat.com>
6011
6012         * sysdeps/unix/sysv/linux/check_pf.c (IFA_F_OPTIMISTIC): Define to
6013         zero if not defined.
6014         (make_request): Recognize optimistic addresses and treat them like
6015         deprecated addresses.
6016         Reported by Neil Horman <nhorman@redhat.com>.
6017
6018 2007-08-28  Ulrich Drepper  <drepper@redhat.com>
6019
6020         * nscd/connections.c (send_ro_fd): Also transfer file size.
6021         * nscd/nscd_helper.c (get_mapping): If nscd also transfers the
6022         file size don't call fstat.
6023
6024         * nscd/nscd_helper.c (get_mapping): Avoid the pread call, just go
6025         ahead and map the file.  This should always be correct and we can
6026         catch problems later.
6027
6028 2007-08-28  Jakub Jelinek  <jakub@redhat.com>
6029
6030         * libio/bits/stdio2.h (__fread_chk, __fread_unlocked_chk): New
6031         prototypes.
6032         (__fread_alias, __fread_unlocked_alias): New aliases.
6033         (fread): New extern inline.
6034         (fread_unlocked): Likewise.  Undef macro before definition of
6035         the inline function.
6036         * debug/Makefile (routines): Add fread_chk and fread_u_chk.
6037         (CFLAGS-fread_chk.c, CFLAGS-fread_u_chk.c): Add.
6038         * debug/Versions (libc): Export __fread_chk@@GLIBC_2.7
6039         and __fread_unlocked_chk@@GLIBC_2.7.
6040         * debug/fread_chk.c: New file.
6041         * debug/fread_u_chk.c: New file.
6042         * debug/tst-chk1.c (do_test): Add fread and fread_unlocked tests.
6043
6044 2007-08-27  Jakub Jelinek  <jakub@redhat.com>
6045
6046         * sysdeps/unix/sysv/linux/syscalls.list
6047         (personality): Change caller to EXTRA.
6048
6049 2007-08-25  Ulrich Drepper  <drepper@redhat.com>
6050
6051         * iconvdata/iso-2022-kr.c (BODY): Fake initialization of array buf
6052         to keep gcc quiet.
6053         * iconvdata/iso-2022-cn.c (BODY): Likewise.
6054
6055         * locale/programs/ld-collate.c (collate_output): Avoid warning if
6056         NDEBUG is defined.
6057
6058         * Makerules: Use -p option with mkdir.
6059
6060         * sunrpc/key_prot.c (xdr_unixcred): Work around gcc alias warning.
6061         * nis/nis_xdr.c (_xdr_nis_server): Likewise.
6062         (_xdr_directory_obj): Likewise.
6063         (xdr_entry_obj): Likewise.
6064         (xdr_group_obj): Likewise.
6065         (xdr_link_obj): Likewise.
6066         (xdr_table_obj): Likewise.
6067         (_xdr_nis_result): Likewise.
6068         (_xdr_ns_request): Likewise.
6069         (_xdr_ib_request): Likewise.
6070         (_xdr_nis_taglist): Likewise.
6071         (xdr_cback_data): Likewise.
6072         * nis/yp_xdr.c (xdr_ypmaplist): Likewise.
6073         (xdr_ypresp_maplist): Likewise.
6074
6075         * stdio-common/Makefile: Avoid format string warning for tst-sprint.
6076
6077         * posix/regex_internal.h: Prevent some declarations and definitions
6078         to be seen when used in tests.
6079
6080         * posix/tst-rfc3484.c (__idna_to_unicode_lzlz): Initialize *OUTPUT.
6081         * posix/tst-rfc3484-2.c (__idna_to_unicode_lzlz): Likewise.
6082
6083         * debug/Makefile: Disable format checking when compiling tst-chk?.c.
6084
6085         * config.make.in (datarootdir): Add to shut up configure.
6086
6087         * sysdeps/x86_64/cacheinfo.c (handle_amd): Fix computation of
6088         associativity for fully-associative caches.
6089
6090         * sysdeps/x86_64/cacheinfo.c (handle_amd): Handle L3 cache
6091         requests.  Fill on more associativity values for L2.
6092         Patch mostly by Evandro Menezes.
6093
6094 2007-08-24  Ulrich Drepper  <drepper@redhat.com>
6095
6096         * sysdeps/unix/sysv/linux/x86_64/init-first.c
6097         (_libc_vdso_platform_setup): Avoid using exported variable by using
6098         alias.
6099
6100         * resolv/arpa/nameser.h (NS_OPT_DNSSEC_OK): Define.
6101
6102         * sysdeps/unix/sysv/linux/i386/syscalls.list: No reason to mark
6103         fallocate64 as EXTRA.  It is not referenced if the symbol isn't
6104         defined.
6105
6106 2007-08-23  Ulrich Drepper  <drepper@redhat.com>
6107
6108         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Correctly
6109         align stack for call if pltexit is to be used.
6110
6111         [BZ #3924]
6112         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Correctly
6113         align for function call in case pltexit has to be called later.
6114
6115         * sysdeps/i386/dl-trampoline.S (_dl_runtime_resolve): Avoid
6116         implicit atomic operation when storing function pointer.
6117         (_dl_runtime_profile): Likewise.
6118
6119 2007-08-17  Jakub Jelinek  <jakub@redhat.com>
6120
6121         * nis/nis_table.c (nis_list): Don't fail if __follow_path returned
6122         NIS_NOTFOUND.
6123
6124 2007-08-21  Ulrich Drepper  <drepper@redhat.com>
6125
6126         [BZ #4566]
6127         * string/strtok.c: Fix typo in comment.
6128
6129         [BZ #4582]
6130         * debug/segfault.c: Fix typos in comments.
6131
6132         [BZ #4588]
6133         * stdio-common/tempnam.c: Fix comment, it is not checked that
6134         TMPDIR points to a writable directory.
6135
6136         [BZ #4726]
6137         * resolv/res_send.c (__libc_res_nsend): Initialize all of the
6138         memory allocated for the name server address.
6139
6140         [BZ #4946]
6141         * nscd/connections.c (handle_request): Using sendfile always
6142         requires that mmap is used for the database.
6143         Patch by Petr Baudis <pasky@suse.cz>.
6144
6145         [BZ #4905]
6146         * nscd/hstcache.c (cache_addhst): When reloading an entry which
6147         suddenly has two or more addresses, ignore it and remove the old
6148         entry.
6149
6150         [BZ #4814]
6151         * resolv/res_hconf.c: Prepare for compiling outside libc.
6152         * nscd/res_hconf.c: New file.
6153         * nscd/Makefile (nscd-modules): Add res_hconf.  Add rules to build
6154         the new file.
6155         * nscd/gethstbynm2_r.c (NEED__RES_HCONF): Define.
6156         * nscd/gethstbyad_r.c (NEED__RES_HCONF): Likewise.
6157
6158         * nscd/hstcache.c (cache_addhst): Minimal optimization.
6159
6160         [BZ #4925]
6161         * debug/pcprofiledump.c: Turn on internationalization by calling
6162         setlocale.  Patch mostly by Benno Schulenberg.
6163
6164         [BZ #4936]
6165         * iconv/gconv.c (__gconv): If flush was successful, clear rest of
6166         the state.
6167         * iconvdata/Makefile: Add rules to build and run bug-iconv5.
6168         * iconvdata/bug-iconv5.c: New file.
6169
6170 2007-08-04  Carlos O'Donell  <carlos@systemhalted.org>
6171
6172         [BZ #4896]
6173         * elf/elf.h: Define R_PARISC_PLABEL21L, R_PARISC_PLABEL14R,
6174         R_PARISC_GNU_VTENTRY, R_PARISC_GNU_VTINHERIT, R_PARISC_TLS_GD21L,
6175         R_PARISC_TLS_GD14R, R_PARISC_TLS_GDCALL, R_PARISC_TLS_LDM21L,
6176         R_PARISC_TLS_LDM14R, R_PARISC_TLS_LDMCALL, R_PARISC_TLS_LDO21L,
6177         R_PARISC_TLS_LDO14R, R_PARISC_TLS_DTPMOD32, R_PARISC_TLS_DTPMOD64,
6178         R_PARISC_TLS_DTPOFF32, R_PARISC_TLS_DTPOFF64, R_PARISC_TLS_LE21L,
6179         R_PARISC_TLS_LE14R, R_PARISC_TLS_IE21L, R_PARISC_TLS_IE14R,
6180         R_PARISC_TLS_TPREL32, R_PARISC_TLS_TPREL64.
6181
6182 2007-08-21  Ulrich Drepper  <drepper@redhat.com>
6183
6184         [BZ #4937]
6185         * elf/do-lookup.h (do_lookup_x): Minimal improvement in hash
6186         lookup loop.  Suggested by John Reiser.
6187
6188 2007-08-21  Jakub Jelinek  <jakub@redhat.com>
6189
6190         * sysdeps/unix/sysv/linux/alpha/sysdep.h: Include tls.h.
6191
6192 2007-08-20  Ulrich Drepper  <drepper@redhat.com>
6193
6194         * csu/libc-start.c: Don't handle VDSO_SETUP here.
6195         * sysdeps/unix/sysv/linux/init-first.c: Handle it here instead.
6196         * sysdeps/unix/sysv/linux/x86_64/libc-start.c: Renamed to...
6197         * sysdeps/unix/sysv/linux/x86_64/init-first.c: ...this.  New file.
6198         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Move VDSO_SETUP code
6199         to...
6200         * sysdeps/unix/sysv/linux/x86_64/init-first.c: ...here.  New file.
6201
6202 2007-08-18  Ulrich Drepper  <drepper@redhat.com>
6203
6204         * po/nl.po: Update from translation team.
6205
6206 2007-08-16  Andreas Jaeger  <aj@suse.de>
6207
6208         * locale/localeinfo.h: Make _nl_category_name_idxs extern.
6209         Reported by Peter Festner <peter.festner@ewetel.net>.
6210
6211 2007-08-17  Jakub Jelinek  <jakub@redhat.com>
6212
6213         * login/tst-grantpt.c (test_einval): Add 3rd argument to open.
6214
6215 2007-08-16  Jakub Jelinek  <jakub@redhat.com>
6216
6217         * elf/Makefile ($(objpfx)ld.so): Use readelf -s and awk instead of nm -u
6218         to check for undefined symbols.
6219
6220         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone):
6221         If the syscall fails, set errno to the actual returned error number
6222         rather than EINVAL.
6223         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__clone): If
6224         arguments are incorrect, set errno to EINVAL, if the syscall
6225         fails, set errno to the actual returned error number.
6226
6227         * stdlib/bits/stdlib-ldbl.h (__strtold_internal): Remove.
6228         * wcsmbs/bits/wchar-ldbl.h (__wcstold_internal): Remove.
6229
6230         * sysdeps/sparc/sparc32/sparcv9b/memcpy.S: Moved to...
6231         * sysdeps/sparc/sparc32/sparcv9/sparcv9b/memcpy.S: ... here.  New
6232         file.
6233         (ASI_PNF, ASI_BLK_P): Don't define.
6234         * sysdeps/sparc/sparc32/sparcv9v/memcpy.S: Moved to...
6235         * sysdeps/sparc/sparc32/sparcv9/sparcv9v/memcpy.S: ... here.  New
6236         file.
6237         * sysdeps/sparc/sparc32/sparcv9v/memset.S: Moved to...
6238         * sysdeps/sparc/sparc32/sparcv9/sparcv9v/memset.S: ... here.  New
6239         file.
6240
6241 2007-08-15  Jakub Jelinek  <jakub@redhat.com>
6242
6243         * sysdeps/sparc/fpu/fraiseexcpt.c (__feraiseexcept): Fix raising
6244         FE_UNDERFLOW on Niagara CPUs.
6245
6246         * sysdeps/sparc/fpu/feholdexcpt.c (feholdexcept): Clear all
6247         exceptions.
6248
6249 2007-08-14  Jakub Jelinek  <jakub@redhat.com>
6250
6251         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_runtime_setup): No
6252         need to check GLRO(dl_hwcap) & HWCAP_SPARC_FLUSH on sparcv9.
6253         (sparc_fixup_plt): Add do_flush argument instead of figuring whether
6254         flush should be used or not inside of the function.
6255         (elf_machine_fixup_plt, elf_machine_rela): Adjust caller.
6256
6257         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone,
6258         __thread_start): Use HIDDEN_JUMPTARGET.
6259         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__clone,
6260         __thread_start): Likewise.
6261         * sysdeps/unix/sysv/linux/sparc/sysdep.h (JUMPTARGET): Define.
6262
6263         * sysdeps/ieee754/ldbl-64-128/strtold_l.c (__STRTOF): Declare.
6264         Add libc_hidden_proto.
6265         (STRTOF): Add libc_hidden_proto.
6266         (___new_strtold_l, ___new_wcstold_l): New weak aliases.
6267         (strtold_l, wcstold_l): Use them as second argument for
6268         long_double_symbol.
6269
6270 2007-08-14  Ulrich Drepper  <drepper@redhat.com>
6271
6272         * elf/dl-misc.c: Undo last change.  The kernel won't allow it.
6273
6274 2007-08-13  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
6275
6276         * stdlib/strtold_l.c: Include wchar.h if needed.  Add libc_hidden_def.
6277
6278 2007-08-14  Ulrich Drepper  <drepper@redhat.com>
6279
6280         * po/bg.po: New file.  From the translation team.
6281
6282 2007-08-13  Jakub Jelinek  <jakub@redhat.com>
6283
6284         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PSELECT,
6285         __ASSUME_PPOLL, __ASSUME_ATFCTS, __ASSUME_SET_ROBUST_LIST,
6286         __ASSUME_UTIMENSAT, __ASSUME_FALLOCATE): Update per-arch conditions
6287         when each feature was introduced.
6288
6289         * sysdeps/unix/sysv/linux/dl-vdso.c: Don't include dl-hash.h.
6290         * sysdeps/unix/sysv/linux/dl-vdso.h: Don't include dl-hash.h if NDEBUG.
6291         (CHECK_HASH): New macro.
6292         (PREPARE_VERSION): Use it.
6293
6294         * sysdeps/unix/sysv/linux/pselect.c (__generic_pselect): Only provide
6295         prototype if not __ASSUME_PSELECT.
6296         * sysdeps/unix/sysv/linux/ppoll.c (__generic_ppoll): Only provide
6297         prototype if not __ASSUME_PPOLL.
6298
6299         * sysdeps/unix/sysv/linux/dl-osinfo.h (ROUND): #undef after use.
6300
6301         * sysdeps/unix/clock_settime.c (freq, __pthread_clock_settime,
6302         hp_timing_settime): Don't define or declare if HANDLED_CPUTIME
6303         is defined.
6304
6305 2007-08-13  Ulrich Drepper  <drepper@redhat.com>
6306
6307         * sysdeps/unix/sysv/linux/x86_64/libc-start.c
6308         (_libc_vdso_platform_setup): If vDSO is not available point
6309         __vdso_gettimeofday to the vsyscall.
6310         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S [SHARED]: Use
6311         __vdso_gettimeofday instead of vsyscall.
6312
6313 2007-08-13  Jakub Jelinek  <jakub@redhat.com>
6314
6315         * nscd/servicescache.c: Include kernel-features.h.
6316         * nscd/gai.c: Likewise.
6317         * sysdeps/unix/sysv/linux/statfs64.c: Likewise.
6318         * sysdeps/unix/sysv/linux/fstatfs64.c: Likewise.
6319         * sysdeps/unix/sysv/linux/fxstatat.c: Likewise.
6320         * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S: Likewise.
6321         * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S: Likewise.
6322         * sysdeps/unix/sysv/linux/xstatconv.c: Likewise.
6323         * sysdeps/unix/sysv/linux/if_index.c: Likewise.
6324         * sysdeps/unix/sysv/linux/sparc/sparc64/xstat.c: Likewise.
6325         * sysdeps/unix/sysv/linux/ifaddrs.c: Likewise.
6326
6327 2007-08-12  Ulrich Drepper  <drepper@redhat.com>
6328
6329         * elf/dl-dst.h: No need for _dl_dst_count, _dl_dst_substitute,
6330         and _dl_get_origin defines anymore.
6331
6332         * sysdeps/unix/sysv/linux/clock_gettime.c (maybe_syscall_gettime_cpu):
6333         Build fix for systems which might lack POSIX timer support.
6334
6335         * sysdeps/unix/sysv/linux/x86_64/libc-start.c
6336         (_libc_vdso_platform_setup): Mangle function pointers before storing
6337         them.
6338         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_VSYSCALL):
6339         Demangle vdso pointer before use.
6340         (INTERNAL_VSYSCALL): Likewise.
6341
6342         * elf/cache.c (primes): Mark as const.
6343         Noted by Roland McGrath.
6344
6345 2007-08-01  Andreas Jaeger  <aj@suse.de>
6346             Jakub Jelinek  <jakub@redhat.com>
6347
6348         * elf/ldconfig.c (opt_ignore_aux_cache): Add new option.
6349         (options): Add option.
6350         (parse_opt): Handle option.
6351         (manual_link): Adjust process_file caller.  Call implicit_soname.
6352         (search_dir): Formatting.  Use and populate auxiliary cache.
6353         (main): Load and save auxiliary cache.
6354         * elf/readlib.c (process_file): Add stat_buf argument.  Pass struct
6355         stat64 from fstat64 to caller.
6356         (implicit_soname): New function.
6357         * elf/readelflib.c (process_elf_file): If DT_SONAME is not present,
6358         leave *soname as NULL.
6359         * elf/cache.c: Include libgen.h.
6360         (print_entry, print_cache, compare, save_cache, add_to_cache):
6361         Formatting and cleanups.
6362         (aux_cache_entry_id, aux_cache_entry, aux_cache_file_entry,
6363         aux_cache_file): New structures.
6364         (AUX_CACHEMAGIC): Define.
6365         (primes): New array.
6366         (aux_hash_size, aux_hash): New variables.
6367         (aux_cache_entry_id_hash, nextprime, init_aux_cache,
6368         search_aux_cache, insert_to_aux_cache, add_to_aux_cache,
6369         load_aux_cache, save_aux_cache): New functions.
6370         * sysdeps/generic/ldconfig.h (_PATH_LDCONFIG_AUX_CACHE): Define.
6371         (init_aux_cache, search_aux_cache, add_to_aux_cache,
6372         load_aux_cache, save_aux_cache, implicit_soname): New prototypes.
6373         (process_file): Adjust prototype.
6374
6375 2007-08-12  Jakub Jelinek  <jakub@redhat.com>
6376
6377         * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h: Include stddef.h
6378         with __need_size_t.
6379
6380 2007-08-12  Ulrich Drepper  <drepper@redhat.com>
6381
6382         * sysdeps/unix/sysv/linux/dl-vdso.c (_dl_vdso_vsym): Expect
6383         r_found_version structure as second parameter.
6384         * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION): Define.
6385         (_dl_vdso_vsym): Change type of second parameter accordingly.
6386         * sysdeps/unix/sysv/linux/x86-64/libc-start.c
6387         (_libc_vdso_platform_setup): Adjust.
6388         * sysdeps/unix/sysv/linux/powerpc/libc-start.c
6389         (_libc_vdso_platform_setup): Likewise.
6390
6391         * sysdeps/unix/sysv/linux/powerpc/dl-vdso.c: Move to...
6392         * sysdeps/unix/sysv/linux/dl-vdso.c: ...here.
6393         * sysdeps/unix/sysv/linux/powerpc/dl-vdso.h: Move to...
6394         * sysdeps/unix/sysv/linux/dl-vdso.h: ...here.
6395         * csu/libc-start.c: Pretty printing.
6396         Use VDSO_SETUP if defined.
6397         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Define VDSO_SETUP
6398         and let generic code call into _libc_vdso_platform_setup.
6399         * sysdeps/unix/sysv/linux/x86_64/libc-start.c: New file.
6400         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: New file.
6401         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Pretty printing.
6402         Define INLINE_VSYSCALL and INTERNAL_VSYSCALL.
6403         * sysdeps/unix/sysv/linux/x86_64/Versions: Export __vdso_clock_gettime
6404         for GLIBC_PRIVATE.
6405         * sysdeps/unix/sysv/linux/x86_64/Makefile [subdir=elf]
6406         (sysdep_rountines): Add dl-vdso.
6407
6408         * sysdeps/unix/sysv/linux/powerpc/Makefile: Use sysdep_routines instead
6409         of routines.
6410
6411         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Add
6412         attribute_hidden to __vdso_gettimeofday prototype.
6413
6414 2007-08-12  Roland McGrath  <roland@redhat.com>
6415
6416         * manual/stdio.texi (Variable Arguments Output): Fix xref to gcc manual.
6417         From: Karl Berry <karl@freefriends.org>.
6418
6419 2007-08-11  Ulrich Drepper  <drepper@redhat.com>
6420
6421         * elf/dl-misc.c (_dl_sysdep_read_whole_file): We really don't need
6422         an atime update for the files we read.
6423
6424 2007-08-10  Ulrich Drepper  <drepper@redhat.com>
6425
6426         * shadow/lckpwdf.c (__lckpwdf): Use O_CLOEXEC if possible.
6427
6428         * nscd/connections.c: Use O_CLOEXEC if possible.  Use mkostemp
6429         instead of mkstemp.
6430
6431         * misc/Makefile (routines): Add mkostemp and mkostemp64.
6432         * misc/Versions: Export mkostemp and mkostemp64 for GLIBC_2.7.
6433         * misc/mkostemp.c: New file.
6434         * misc/mkostemp64.c: New file.
6435         * stdlib/stdlib.h: Declare the new functions.
6436         * sysdeps/posix/tempname.c: Add new parameter which is added to
6437         the flags for open.  Remove __GT_BIGFILE handling.
6438         * stdio-common/tempname.c: Likewise.
6439         * include/stdio.h: Adjust __gen_tempname prototype.
6440         Renumber __GT_* constants.
6441         * libio/oldtmpfile.c: Adjust for __gen_tempname interface change.
6442         * misc/mkdtemp.c: Likewise.
6443         * misc/mkstemp.c: Likewise.
6444         * misc/mkstemp64.c: Likewise.
6445         * misc/mktemp.c: Likewise.
6446         * stdio-common/tempnam.c: Likewise.
6447         * stdio-common/tmpfile.c: Likewise.
6448         * stdio-common/tmpfile64.c: Likewise.
6449         * stdio-common/tmpnam.c: Likewise.
6450         * stdio-common/tmpnam_r.c: Likewise.
6451
6452 2007-08-10  Roland McGrath  <roland@frob.com>
6453
6454         * sysdeps/mach/hurd/bits/ioctls.h (NLDLY, TABDLY, BSDLY, VTDLY):
6455         New macros.
6456         (NLDELAY, CRDELAY, TBDELAY, BSDELAY, VTDELAY): Define to those.
6457         Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
6458
6459 2007-08-10  Ulrich Drepper  <drepper@redhat.com>
6460
6461         * nss/nss_files/files-XXX.c (internal_setent): Use O_CLOEXEC if
6462         possible.
6463         * nss/nss_files/files-alias.c (internal_setent): Likewise.
6464         * nss/Makefile (libnss_files-routines): Add files-have_o_cloexec.
6465         * nss/nss_files/files-have_o_cloexec.c: New file.
6466
6467         * sysdeps/unix/sysv/linux/shm_open.c (shm_open): Use O_CLOEXEC if
6468         available.
6469
6470 2007-08-10  Jakub Jelinek  <jakub@redhat.com>
6471
6472         * sysdeps/ieee754/ldbl-128ibm/strtold_l.c (___new_strtold_l,
6473         ___new_wcstold_l): New weak aliases.
6474         (strtold_l, wcstold_l): Use them as second argument for
6475         long_double_symbol.
6476
6477 2007-08-09  Ulrich Drepper  <drepper@redhat.com>
6478
6479         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Use correct
6480         register in test for error.
6481
6482         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_CLOEXEC): Define.
6483         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (O_CLOEXEC): Likewise.
6484
6485         * po/sv.po: Update from translation team.
6486
6487 2007-08-06  Roland McGrath  <roland@redhat.com>
6488
6489         * include/stdlib.h: Add libc_hidden_proto for strto*, __strto*_l.
6490         Remove __strto*_l inlines.
6491         * include/wchar.h: Add libc_hidden_proto for wcsto*, __wcsto*_l.
6492         * stdlib/strtod.c: Add libc_hidden_def.
6493         * stdlib/strtod_l.c: Likewise.
6494         * stdlib/strtold.c [__LONG_DOUBLE_MATH_OPTIONAL]: Add libc_hidden_proto
6495         for __new_strtold and __new_wcstold.
6496         * sysdeps/ieee754/ldbl-128ibm/strtold_l.c: Add libc_hidden_proto for
6497         __STRTOF, STRTOF.
6498         * stdlib/strtol.c: Add libc_hidden_def.
6499         * stdlib/strtol_l.c: Likewise.
6500         * sysdeps/wordsize-64/strtol.c: Add libc_hidden_ver for strtoll and
6501         strtoq.
6502
6503         * scripts/data/localplt-powerpc-linux-gnu.data: New file.
6504
6505         * scripts/data/localplt-x86_64-linux-gnu.data: File renamed to ...
6506         * scripts/data/localplt-generic.data: ... here.
6507         * elf/Makefile (check-data): Get generic file if no other.
6508         ($(objpfx)check-localplt.out): Make target unconditional.
6509
6510         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_discover_osversion):
6511         Use ElfW(Nhdr).
6512
6513 2007-08-05  Ulrich Drepper  <drepper@redhat.com>
6514
6515         * po/zh_CN.po: Updated translation from translation team.
6516
6517 2007-08-05  Jakub Jelinek  <jakub@redhat.com>
6518
6519         * sysdeps/unix/sysv/linux/powerpc/powerpc32/socket.S (__socket):
6520         Don't use CGOTSETUP and CGOTRESTORE macros.
6521
6522 2007-08-04  Roland McGrath  <roland@redhat.com>
6523
6524         * posix/Makefile ($(objpfx)getconf.speclist): Fix typo.
6525
6526 2007-08-04  Jakub Jelinek  <jakub@redhat.com>
6527
6528         * io/bits/fcntl2.h (open, open64, openat, openat64): Add
6529         __extension__ around the whole statement expression.
6530
6531 2007-08-04  Ulrich Drepper  <drepper@redhat.com>
6532
6533         * sysdeps/unix/opendir.c (__alloc_dir): Correct order of DIR
6534         elements during initialization.
6535
6536         * po/pl.po: Updated translation from translation team.
6537         * po/tr.po: Likewise.
6538         * po/nl.po: Likewise.
6539
6540 2007-08-03  Ulrich Drepper  <drepper@redhat.com>
6541
6542         * rt/aio.h: Add __nonnull attributes.
6543
6544 2007-08-03  Jakub Jelinek  <jakub@redhat.com>
6545
6546         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Properly handle -0.
6547         * stdlib/Makefile (tests): Add tst-strtod5.
6548         (tst-strtod5-ENV): New.
6549         * stdlib/tst-strtod5.c: New file.
6550
6551         * intl/dcigettext.c (_nl_find_msg): Free encoding if __gconv_open
6552         failed.
6553         * intl/finddomain.c (_nl_find_domain): Free normalized_codeset
6554         on failure.
6555
6556         * elf/dl-load.c (decompose_rpath): Free copy if result couldn't be
6557         allocated.
6558
6559 2007-08-03  Jakub Jelinek  <jakub@redhat.com>
6560
6561         * rt/mqueue.h (mq_timedreceive, mq_timedsend): Fix nonnull argument
6562         numbers.
6563
6564 2007-08-02  Ulrich Drepper  <drepper@redhat.com>
6565
6566         * io/Makefile (aux): Add have_o_cloexec.
6567         * include/fcntl.h: Declare __have_o_cloexec.
6568         * io/have_o_cloexec.c: New file.
6569         * sysdeps/unix/opendir.c (__opendir): Use O_CLOEXEC is available.
6570         (__alloc_dir): If O_CLOEXEC has been used, don't duplicate the
6571         fcntl call if not necessary.
6572         * login/utmp_file.c (setutent_file): Use __have_o_cloexec instead
6573         of local variable.
6574
6575         * sysdeps/unix/opendir.c (__alloc_dir): Don't initialize ->data.
6576         Avoid memset, add explicit initialization.
6577         * sysdeps/unix/dirstream.h (struct __dirstream): Move data elemtn
6578         to the end and change into zero-sized array.
6579         Move lock member to fill a hole on 64-bit platforms.
6580
6581         * stdlib/stdlib.h: Remove __strto*_internal prototypes and strto*
6582         inline functions.
6583         * include/stdlib.h: Add __strto*_internal prototypes here.
6584         * wcsmbs/wchar.h: Remove __wcsto*_internal prototypes and wcsto*
6585         inline functions.
6586         * include/wchar.h: Add __wcsto*_internal prototypes.
6587         * sysdeps/generic/inttypes.h: No need to protect the declaration
6588         of the __strto*_internal and __wcsto*_internal members here.
6589
6590         * rt/mqueue.h: Change const to __const and add nonnull attributes.
6591
6592 2007-08-02  Roland McGrath  <roland@redhat.com>
6593
6594         * posix/Makefile ($(inst_libexecdir)/getconf): Make hard links to
6595         $(inst_bindir)/getconf if possible.
6596
6597         * posix/Makefile ($(objpfx)getconf.speclist): New target.
6598         (generated): Add it.
6599         ($(inst_libexecdir)/getconf): Use it.
6600
6601 2007-08-01  Ulrich Drepper  <drepper@redhat.com>
6602
6603         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Using
6604         /proc is faster and sufficient.  /sys is still needed for
6605         __get_nprocs_conf.
6606
6607 2007-08-01  Jakub Jelinek  <jakub@redhat.com>
6608
6609         * sysdeps/unix/sysv/linux/i386/syscalls.list (fallocate): Add fallocate
6610         syscall as __fallocate64.
6611         * sysdeps/unix/sysv/linux/i386/posix_fallocate.c: New file.
6612         * sysdeps/unix/sysv/linux/i386/posix_fallocate64.c: New file.
6613
6614 2007-07-30  Jakub Jelinek  <jakub@redhat.com>
6615
6616         * stdlib/tst-strtod2.c (do_test): Use %tu in fmt string for ptrdiff_t
6617         value.
6618
6619         * stdio-common/tst-fmemopen2.c (do_test): Avoid fmt string warning
6620         if off_t is different rank from size_t.
6621
6622         * sysdeps/generic/unwind-dw2.c (extract_cie_info, execute_cfa_program,
6623         uw_frame_state_for): Avoid type punning warnings.
6624         * sysdeps/generic/unwind-dw2-fde-glibc.c
6625         (_Unwind_IteratePhdrCallback): Likewise.
6626         * sysdeps/generic/unwind-dw2-fde.c (_Unwind_Find_FDE): Likewise.
6627         (binary_search_single_encoding_fdes, binary_search_mixed_encoding_fdes,
6628         get_cie_encoding, linear_search_fdes): Don't mix char and unsigned char
6629         pointers.
6630
6631 2007-07-31  Ulrich Drepper  <drepper@redhat.com>
6632
6633         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs_conf): Count
6634         total processors using sysfs.
6635         (__get_nprocs): Use sysfs to determine which processors are online.
6636
6637 2007-07-31  Jakub Jelinek  <jakub@redhat.com>
6638
6639         * sysdeps/unix/sysv/linux/posix_fallocate.c (posix_fallocate): Fix
6640         syscall arguments count.
6641
6642         * stdio-common/tfformat.c (sprint_doubles): Add 12 new tests.
6643
6644 2007-07-30  Roland McGrath  <roland@redhat.com>
6645
6646         * manual/libc.texinfo: Update copyrights, formatting magic, and
6647         @dircategory.  From Karl Berry <karl@freefriends.org>.
6648
6649 2007-07-29  Ulrich Drepper  <drepper@redhat.com>
6650
6651         [BZ #4860]
6652         * io/Makefile (headers): Add bits/fcntl2.h.
6653
6654         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_ZERO_S): Optimize
6655         using gcc builtin.
6656         (__CPU_EQUAL_S): Likewise.
6657
6658         * posix/Makefile (routines): Add sched_cpualloc and sched_cpufree.
6659         (tests): Add tst-cpuset.
6660         * posix/sched_cpualloc.c: New file.
6661         * posix/sched_cpufree.c: New file.
6662         * posix/tst-cpuset.c: New file.
6663         * posix/Versions: Export __sched_cpualloc and __sched_cpufree for
6664         GLIBC_2.7.
6665         * sysdeps/unix/sysv/linux/bits/sched.h: Define __CPU_*_S macros.
6666         * posix/sched.h: Define old CPU_* macros in temers of __CPU_*_S
6667         macros.  Define CPU_*_S macros.
6668
6669 2007-07-28  Ulrich Drepper  <drepper@redhat.com>
6670
6671         * posix/getconf.c (vars): Add missing _SC_LEVEL4_CACHE_LINESIZE
6672         entry.
6673
6674         [BZ #4858]
6675         * stdio-common/printf_fp.c (___printf_fp): Fix special case of
6676         #.0g and value rounded to 1.0.
6677         * stdio-common/tfformat.c (sprint_doubles): Add two new tests.
6678
6679 2007-07-26  Jakub Jelinek  <jakub@redhat.com>
6680
6681         * locale/programs/ld-monetary.c (monetary_finish): Avoid range check
6682         for int_frac_digits and frac_digits.
6683
6684         * login/logout.c (logout): Avoid aliasing violation.
6685         * login/logwtmp.c (logwtmp): Likewise.
6686
6687         * libio/genops.c (_IO_un_link): Avoid aliasing violation.
6688
6689         * nscd/selinux.c (preserve_capabilities): Initialize new_caps
6690         to avoid warning.
6691         * iconv/gconv_open.c (__gconv_open): Initialize ptr to avoid
6692         warning.
6693         * nis/nis_subr.c (nis_getnames): Initialize saveptr to avoid
6694         warning.
6695         * resolv/inet_ntop.c (inet_ntop6): Initialize best.len and cur.len
6696         to avoid warnings.
6697
6698         * nss/nsswitch.c (__nss_lookup_function): Don't cast &ni->known to
6699         void **.
6700         * nss/nsswitch.h (service_user): Use void * type for KNOWN field.
6701
6702         * nss/nss_files/files-hosts.c (LINE_PARSER): Cast host_addr to
6703         char * to avoid warning.
6704         * nis/nss_nis/nis-hosts.c (LINE_PARSER): Likewise.
6705
6706         * timezone/Makefile (CFLAGS-zdump.c): Add -fwrapv.
6707
6708         * locale/programs/ld-ctype.c (ctype_finish, set_class_defaults,
6709         allocate_arrays): Cast second argument to charmap_find_symbol
6710         to char * to avoid warnings.
6711
6712         * locale/programs/repertoire.c (repertoire_new_char): Change
6713         from_nr, to_nr and cnt to unsigned long, adjust printf format
6714         string.
6715
6716         * locale/programs/ld-collate.c (insert_value, handle_ellipsis):
6717         Cast second argument to new_element to char * to avoid warnings.
6718
6719         * locale/weightwc.h (findidx): Cast &extra[-i] to const int32_t *.
6720
6721         * intl/gettextP.h (struct loaded_domain): Change plural to const
6722         struct expression *.
6723         * intl/plural-eval.c (plural_eval): Change first argument to
6724         const struct expression *.
6725         * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Change first
6726         argument to const struct expression **.
6727         * intl/plural-exp.h (EXTRACT_PLURAL_EXPRESSION, plural_eval): Adjust
6728         prototypes.
6729         * intl/loadmsgcat (_nl_unload_domain): Cast away const
6730         in call to __gettext_free_exp.
6731
6732         * posix/fnmatch.c (fnmatch): Rearrange code to avoid maybe
6733         unitialized wstring/wpattern var warnings.
6734
6735         * posix/runtests.c (struct a_test): Make data field const char *.
6736
6737         * stdio-common/tst-sprintf2.c (main): Don't declere u, v and buf
6738         vars if not LDBL_MANT_DIG >= 106.
6739
6740         * stdio-common/Makefile (CFLAGS-vfwprintf.c): Add -Wno-unitialized.
6741
6742         * stdio-common/vfprintf.c (vfprintf): Cast first arugment to
6743         __find_specmb to avoid warning.
6744
6745         * rt/tst-mqueue1.c (do_one_test): Add casts to avoid warnings.
6746
6747         * debug/test-strcpy_chk.c (do_tests, do_random_tests): Add casts
6748         to avoid warnings.
6749
6750         * sysdeps/ieee754/ldbl-96/s_roundl.c (huge): Add L suffix to
6751         initializer.
6752
6753         * sysdeps/unix/clock_gettime.c (clock_gettime): Only define
6754         tv var when it will be actually used.
6755
6756         * sunrpc/rpc_cmsg.c (xdr_callmsg): Cast IXDR_PUT_* to void
6757         to avoid warnings.
6758
6759         * iconvdata/gbk.c (BODY): Make buf and cp char instead of unsigned
6760         char array resp. pointer.
6761         * iconvdata/iso-2022-kr.c (BODY): Make buf unsigned char instead of
6762         char array.
6763         * iconvdata/cns11643.h (cns11643_to_ucs4): Change first argument
6764         to const unsigned char **.
6765         (ucs4_to_cns11643): Change second argument to unsigned char *.
6766         * iconvdata/euc-tw.c (BODY): Change endp type to
6767         const unsigned char *.
6768         * iconvdata/iso-ir-165.h (ucs4_to_isoir165): Change second argument
6769         to unsigned char *.
6770         * iconvdata/ibm1008_420.c (LOOP_NEED_FLAGS): Don't define.
6771         * iconvdata/iso-2022-cn.c (BODY): Change buf to unsigned char array.
6772         * iconvdata/iso-2022-cn-ext.c (BODY): Change buf, tmpbuf, tmp
6773         types to unsigned char pointers/arrays instead of char.
6774         * iconvdata/jis0201.h (ucs4_to_jisx0201): Change second argument
6775         to unsigned char *.
6776         * iconvdata/jis0208.h (ucs4_to_jisx0208): Likewise.
6777         * iconvdata/jis0212.h: Include assert.h.
6778         (ucs4_to_jisx0212): Change second argument to unsigned char *.
6779         assert that if cp[0] is not '\0', cp[1] is not '\0' either instead
6780         of trying to handle that.
6781         * iconvdata/euc-kr.c (euckr_from_ucs4): Initialize also cp[1] to
6782         shut up a warning.
6783         * iconvdata/euc-jp-ms.c (from_ucs4_lat1, from_ucs4_greek,
6784         from_ucs4_cjk, from_ucs4_cjkcpt, from_ucs4_extra): Change type to
6785         two dimensional const unsigned char arrays.
6786         (BODY): Cast "" to (const unsigned char *) for assignment to cp.
6787         Initialize endp to inptr to shut up a warning.
6788
6789 2007-07-20  Jakub Jelinek  <jakub@redhat.com>
6790
6791         [BZ #4772]
6792         * time/strptime_l.c (__strptime_internal): Silently ignore
6793         strftime modifiers and field width in recursive calls.
6794
6795         * include/time.h (enum ptime_locale_status): Remove.
6796         (__strptime_internal): Remove decided and era_cnt arguments,
6797         add statep argument.
6798         * time/strptime_l.c (__strptime_internal): Remove decided
6799         and era_cnt arguments, add statep argument.  Don't recompute
6800         any fields in recursive calls, only update caller's tm
6801         and state, if recursive call fails, don't change tm nor
6802         any state.
6803         (get_alt_number): Adjust.
6804         (recursive): Adjust caller.
6805         (strptime): Likewise.
6806         * time/strptime.c (strptime): Likewise.
6807
6808 2007-07-19  Jakub Jelinek  <jakub@redhat.com>
6809
6810         * iconv/gconv_int.h (__GCONV_NULCONV): New internal only error code.
6811         * iconv/gconv_cache.c (__gconv_lookup_cache): Return __GCONV_NULCONV
6812         if from and to charsets are the same.
6813         * iconv/gconv_db.c (__gconv_find_transform): Likewise.
6814         * intl/dcigettext.c (_nl_find_msg): Return NULL even if __gconv_open
6815         returns __GCONV_NOCONV, but not for __GCONV_NULCONV.
6816
6817 2007-07-17  Jakub Jelinek  <jakub@redhat.com>
6818
6819         * wcsmbs/wchar.h: Only define wint_t if __need_wint_t.
6820         Don't define wint_t when __need_mbstate_t unless it
6821         is necessary.
6822         (__mbstate_t): Use __WINT_TYPE__ rather than wint_t
6823         in the typedef if possible.
6824         * wctype/wctype.h (wint_t): Define by including
6825         wchar.h with __need_wint_t instead of including stddef.h
6826         with __need_wint_t and as fallback definining it ourselves.
6827         * iconv/gconv.h (__need_wint_t): Define before including
6828         wchar.h.
6829         * sysdeps/gnu/_G_config.h: Don't include gconv.h if not _LIBC
6830         or _GLIBCPP_USE_WCHAR_T.
6831         (__need_wchar_t): Don't define
6832         if not _LIBC or _GLIBCPP_USE_WCHAR_T.
6833         (__need_wint_t): Don't define before including stddef.h,
6834         define before including wchar.h only if _LIBC or
6835         _GLIBCPP_USE_WCHAR_T.
6836         (_G_iconv_t): Don't define if not _LIBC or _GLIBCPP_USE_WCHAR_T.
6837         * sysdeps/mach/hurd/_G_config.h: Likewise.
6838         * sysdeps/generic/_G_config.h: Likewise.
6839         * libio/libio.h (__wunderflow, __wuflow, __woverflow): Only
6840         prototype if _LIBC or _GLIBCPP_USE_WCHAR_T.
6841         (_IO_getwc_unlocked, _IO_putwc_unlocked): Only define
6842         if _LIBC or _GLIBCPP_USE_WCHAR_T.
6843
6844 2007-07-28  Ulrich Drepper  <drepper@redhat.com>
6845
6846         * sysdeps/posix/posix_fallocate64.c: Undefine
6847         __posix_fallocate64_l64 before alias handling.
6848         * sysdeps/unix/sysv/linux/posix_fallocate.c: New file.
6849         * sysdeps/unix/sysv/linux/posix_fallocate64.c: New file.
6850         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c: New file.
6851         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate64.c: New file.
6852
6853         * io/tst-posix_fallocate.c: Include <fcntl.h>.
6854
6855 2007-07-23  Jakub Jelinek  <jakub@redhat.com>
6856
6857         * locale/programs/ld-collate.c (atwc): New variable.
6858         (add_to_tablewc): New toplevel function, moved from collate_output.
6859         (collate_output): Remove add_to_tablewc nested function.
6860
6861         * iconv/iconvconfig.c (hash_table, hash_size): New toplevel vars.
6862         (name_insert): New function.
6863         (write_output): Remove hash_table and hash_size vars and name_insert
6864         nested function.
6865
6866 2007-07-24  Roland McGrath  <roland@redhat.com>
6867
6868         * Makerules (install-others-programs-nosubdir): New target.
6869         (install-no-libc.a-nosubdir): Depend on it.
6870
6871         * iconv/Makefile (install-others-programs): Set this instead of
6872         install-others.
6873         * login/Makefile (install-others-programs): Likewise.
6874         * posix/Makefile (install-others-programs): Likewise.
6875
6876         * Makerules (install-no-libc.a-nosubdir): Clean up conditional
6877         dependencies.
6878
6879 2007-07-23  Ulrich Drepper  <drepper@redhat.com>
6880
6881         * io/Makefile (tests): Add tst-posix_fallocate.
6882         * io/tst-posix_fallocate.c: New file.
6883
6884         * sysdeps/unix/sysv/linux/kernel-features.h: Define
6885         __ASSUME_FALLOCATE.
6886
6887 2007-07-22  Roland McGrath  <roland@frob.com>
6888
6889         * hurd/getdport.c: Add missing copyright year update.
6890
6891         * sysdeps/mach/hurd/bits/fcntl.h [__USE_GNU] (O_CLOEXEC): New macro.
6892         * hurd/port2fd.c (_hurd_port2fd): Implement O_CLOEXEC.
6893
6894 2007-07-22  Ulrich Drepper  <drepper@redhat.com>
6895
6896         * login/utmp_file.c (setutent_file): Use O_CLOEXEC if possible.
6897
6898         * libio/fileops.c (_IO_new_file_fopen): Recognize 'e' flag and set
6899         O_CLOEXEC is needed.
6900         * nis/nss_compat/compat-grp.c: Use 'e' flag when opening file.
6901         Avoid additional fcntl to set O_CLOEXEC if not needed.
6902         * nis/nss_compat/compat-initgroups.c: Likewise.
6903         * nis/nss_compat/compat-pwd.c: Likewise.
6904         * nis/nss_compat/compat-spwd.c: Likewise.
6905
6906 2007-07-21  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6907
6908         [BZ #3665]
6909         * manual/errno.texi: Change ECANCELED value to 119.
6910
6911         [BZ #4610]
6912         * mach/lock-intern.h: Include <sys/cdefs.h>.
6913
6914         [BZ #4178]
6915         * sysdeps/mach/hurd/sigaction.c (__sigaction): Check ACT != NULL before
6916         reading A.
6917
6918         [BZ #4126]
6919         * sysdeps/mach/hurd/sigsuspend.c (sigsuspend_not_cancel): Define alias
6920         to __sigsuspend.
6921
6922         * sysdeps/mach/i386/sysdep.h: Include <dl-sysdep.h> and <tls.h>.
6923
6924 2006-06-13  Thomas Schwinge  <tschwinge@gnu.org>
6925
6926         * sysdeps/mach/hurd/tls.h: Change `ASSEMBLER' conditional to
6927         `__ASSEMBLER__'.
6928         * sysdeps/mach/hurd/i386/tls.h: Likewise.
6929
6930 2007-07-21  Ulrich Drepper  <drepper@redhat.com>
6931
6932         * nscd/nscd_helper.c (get_mapping): Use MSG_CMSG_CLOEXEC for
6933         descriptor received from nscd.
6934
6935         * sysdeps/unix/sysv/linux/bits/socket.h: Define MSG_CMSG_CLOEXEC.
6936
6937         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_CLOEXEC.
6938         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
6939         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
6940         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
6941         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
6942         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
6943
6944 2007-07-20  Jakub Jelinek  <jakub@redhat.com>
6945
6946         [BZ #4816]
6947         * manual/signal.texi (Non-atomic Example): Make memory var volatile.
6948
6949         [BZ #4813]
6950         * login/forkpty.c (forkpty): Close master and slave fds on
6951         fork failure.  Patch by
6952         Mikulas Patocka <mikulas@artax.karlin.mff.cuni.cz>.
6953
6954 2007-07-18  Jakub Jelinek  <jakub@redhat.com>
6955
6956         * include/features.h (__USE_ISOC95): New define.
6957         * wcsmbs/wchar.h (fwprintf, fwscanf, wprintf, wscanf, swprintf,
6958         swscanf, vfwprintf, vwprintf, vswprintf, fwide): Define even
6959         for -std=iso9899:199409.
6960         * CONFORMANCE: Remove comments about unsupported AMD1.
6961
6962 2007-07-17  Jakub Jelinek  <jakub@redhat.com>
6963
6964         * sysdeps/ia64/sched_cpucount.c: New file.
6965         * sysdeps/powerpc/sched_cpucount.c: New file.
6966
6967         * sysdeps/unix/sysv/linux/bits/sched.h (__sched_cpucount): Add
6968         __BEGIN_DECLS/__END_DECLS around the prototype.
6969         * bits/sched.h (__sched_cpucount): Likewise.  Make second argument
6970         pointer to const cpu_set_t.
6971
6972         * bits/types.h: Don't include stddef.h, don't define __need_size_t.
6973         * signal/signal.h <__USE_BSD || __USE_XOPEN_EXTENDED>: Define
6974         __need_size_t and include stddef.h.
6975         * sysvipc/sys/msg.h: Likewise.
6976         * posix/sched.h: Likewise.
6977         * hurd/hurd/signal.h (__need_size_t): Define.
6978
6979         * CONFORMANCE: ctype.h and wctype.h no longer define size_t,
6980         neither does signal.h in pedantic ISO C namespaces.  stdio.h
6981         no longer defines wint_t or wchar_t.
6982
6983         * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): New function.
6984         * debug/vfwprintf_chk.c (__vfwprintf_chk): Use
6985         _IO_acquire_lock_clear_flags2 instead of _IO_acquire_lock.
6986         * debug/vprintf_chk.c (__vprintf_chk): Likewise.
6987         * debug/vwprintf_chk.c (__vwprintf_chk): Likewise.
6988         * debug/vfprintf_chk.c (__vfprintf_chk): Likewise.
6989         * debug/fwprintf_chk.c (__fwprintf_chk): Likewise.
6990         * debug/printf_chk.c (__printf_chk): Likewise.
6991         * debug/fprintf_chk.c (__fprintf_chk): Likewise.
6992         * debug/wprintf_chk.c (__wprintf_chk): Likewise.
6993
6994         * sysdeps/pthread/bits/stdio-lock.h (_IO_acquire_lock_clear_flags2):
6995         Define.
6996
6997         * bits/confname.h (_CS_POSIX_V6_WIDTH_RESTRICTED_ENVS): Define.
6998         * posix/getconf.c (vars): Add POSIX_V6_WIDTH_RESTRICTED_ENVS.
6999
7000 2007-07-16  Jakub Jelinek  <jakub@redhat.com>
7001
7002         [BZ #4792]
7003         * stdlib/stdlib.h (realloc): Remove __attribute_malloc__.
7004         * malloc/malloc.h (realloc): Likewise.
7005
7006         * libio/iopopen.c (_IO_new_proc_open): Don't close child_std_end
7007         if one of proc_file_chain streams has that fileno.
7008         * stdio-common/Makefile (tests): Add tst-popen2.
7009         * stdio-common/tst-popen2.c: New test.
7010
7011 2007-07-14  Jakub Jelinek  <jakub@redhat.com>
7012
7013         * elf/ldconfig.c: Allow GPLv2 or any later version.
7014         * elf/readlib.c: Likewise.
7015         * elf/chroot_canon.c: Likewise.
7016         * elf/cache.c: Likewise.
7017         * nscd/mem.c: Likewise.
7018         * nscd/getpwuid_r.c: Likewise.
7019         * nscd/grpcache.c: Likewise.
7020         * nscd/aicache.c: Likewise.
7021         * nscd/getsrvbynm_r.c: Likewise.
7022         * nscd/nscd.c: Likewise.
7023         * nscd/servicescache.c: Likewise.
7024         * nscd/getsrvbypt_r.c: Likewise.
7025         * nscd/initgrcache.c: Likewise.
7026         * nscd/gethstbyad_r.c: Likewise.
7027         * nscd/gethstbynm2_r.c: Likewise.
7028         * nscd/getgrnam_r.c: Likewise.
7029         * nscd/nscd_setup_thread.c: Likewise.
7030         * nscd/getpwnam_r.c: Likewise.
7031         * nscd/gai.c: Likewise.
7032         * nscd/connections.c: Likewise.
7033         * nscd/dbg_log.c: Likewise.
7034         * nscd/cache.c: Likewise.
7035         * nscd/hstcache.c: Likewise.
7036         * nscd/nscd_conf.c: Likewise.
7037         * nscd/getgrgid_r.c: Likewise.
7038         * nscd/pwdcache.c: Likewise.
7039         * catgets/gencat.c: Likewise.
7040         * locale/programs/linereader.h: Likewise.
7041         * locale/programs/locarchive.c: Likewise.
7042         * locale/programs/ld-paper.c: Likewise.
7043         * locale/programs/locfile-kw.h: Likewise.
7044         * locale/programs/ld-address.c: Likewise.
7045         * locale/programs/xmalloc.c: Likewise.
7046         * locale/programs/ld-time.c: Likewise.
7047         * locale/programs/localedef.c: Likewise.
7048         * locale/programs/simple-hash.c: Likewise.
7049         * locale/programs/xstrdup.c: Likewise.
7050         * locale/programs/ld-numeric.c: Likewise.
7051         * locale/programs/locfile-kw.gperf: Likewise.
7052         * locale/programs/ld-collate.c: Likewise.
7053         * locale/programs/charmap-kw.gperf: Likewise.
7054         * locale/programs/charmap.h: Likewise.
7055         * locale/programs/charmap-kw.h: Likewise.
7056         * locale/programs/config.h: Likewise.
7057         * locale/programs/locfile.c: Likewise.
7058         * locale/programs/ld-ctype.c: Likewise.
7059         * locale/programs/charmap.c: Likewise.
7060         * locale/programs/ld-messages.c: Likewise.
7061         * locale/programs/repertoire.h: Likewise.
7062         * locale/programs/locale.c: Likewise.
7063         * locale/programs/ld-name.c: Likewise.
7064         * locale/programs/linereader.c: Likewise.
7065         * locale/programs/locfile.h: Likewise.
7066         * locale/programs/3level.h: Likewise.
7067         * locale/programs/ld-monetary.c: Likewise.
7068         * locale/programs/ld-measurement.c: Likewise.
7069         * locale/programs/charmap-dir.c: Likewise.
7070         * locale/programs/ld-identification.c: Likewise.
7071         * locale/programs/localedef.h: Likewise.
7072         * locale/programs/charmap-dir.h: Likewise.
7073         * locale/programs/repertoire.c: Likewise.
7074         * locale/programs/simple-hash.h: Likewise.
7075         * locale/programs/ld-telephone.c: Likewise.
7076         * locale/programs/locale-spec.c: Likewise.
7077         * locale/programs/locfile-token.h: Likewise.
7078         * posix/getconf.c: Likewise.
7079         * iconv/dummy-repertoire.c: Likewise.
7080         * iconv/iconv_charmap.c: Likewise.
7081         * iconv/iconvconfig.c: Likewise.
7082         * iconv/iconv_prog.c: Likewise.
7083         * malloc/memusagestat.c: Likewise.
7084         * sysdeps/unix/sysv/linux/nscd_setup_thread.c: Likewise.
7085
7086 2007-07-06  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
7087
7088         * sysdeps/sh/bsd-setjmp.S (setjmp): Use correct argument registers.
7089         * sysdeps/sh/bsd-_setjmp.S (_setjmp): Likewise.
7090         * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Do correct sanity
7091         check for the first argument.
7092
7093 2007-07-12  Jakub Jelinek  <jakub@redhat.com>
7094
7095         [BZ #4775]
7096         * math/tgmath.h (__tgmath_real_type_sub): Formatting.
7097         (__tgmath_real_type): Fix if expr is const int or other const
7098         qualified integral type.
7099         (__TGMATH_UNARY_REAL_ONLY): Rewritten to avoid using statement
7100         expressions and handle const qualified arguments.
7101         (__TGMATH_BINARY_FIRST_REAL_ONLY, __TGMATH_UNARY_REAL_IMAG,
7102         __TGMATH_UNARY_REAL_IMAG_RET_REAL): Likewise.
7103         (__TGMATH_UNARY_REAL_RET_ONLY): Rewritten to avoid using
7104         statement expressions.
7105         (__TGMATH_BINARY_REAL_ONLY, __TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY,
7106         __TGMATH_TERNARY_REAL_ONLY, __TGMATH_BINARY_REAL_IMAG): Likewise.
7107         (__TGMATH_UNARY_IMAG): Define.
7108         (conj, cproj): Use __TGMATH_UNARY_IMAG macro.
7109         * math/Makefile (tests): Add test-tgmath2.
7110         (CFLAGS-test-tgmath2.c): Add.
7111         * math/test-tgmath.c (fy, dy, ly, fz, dz, lz, count_cdouble,
7112         count_cfloat, count_cldouble): New variables.
7113         (NCCALLS): Define.
7114         (main): Check number of complex calls as well.
7115         (F(compile_test)): Add complex tests and tests with const qualified
7116         arguments.
7117         (y, z, ccount): Define.
7118         (F(cacos), F(casin), F(catan), F(ccos), F(csin), F(ctan), F(cacosh),
7119         F(casinh), F(catanh), F(ccosh), F(csinh), F(ctanh), F(cexp), F(clog),
7120         F(csqrt), F(cpow), F(cabs), F(carg), F(creal), F(cimag), F(conj),
7121         F(cproj)): New functions.
7122         * math/test-tgmath2.c: New test.
7123
7124 2007-07-11  Jakub Jelinek  <jakub@redhat.com>
7125
7126         [BZ #4776]
7127         * elf/dl-load.c (_dl_rtld_di_serinfo): Output / in LD_LIBRARY_PATH,
7128         RPATH etc. as "/" rather than "", don't segfault on empty paths,
7129         instead output ".".
7130         * dlfcn/Makefile (distribute): Add glreflib3.c.
7131         (module-names): Add glreflib3.
7132         ($(objpfx)tst-dlinfo.out): Depend on glreflib3.so rather than
7133         glreflib1.so.
7134         (LDFLAGS_glreflib3.so): New.
7135         * dlfcn/tst-dlinfo.c (do_test): Load glreflib3.so instead of
7136         glreflib1.so.
7137         * dlfcn/glreflib3.c: New file.
7138
7139         * intl/finddomain.c (_nl_find_domain): If _nl_explode_name
7140         returned -1, return NULL.
7141         * intl/explodename.c (_nl_explode_name): Return -1 if
7142         _nl_normalize_codeset failed.
7143
7144 2007-07-07  Steven Munroe  <sjmunroe@us.ibm.com>
7145
7146         * sysdeps/powerpc/powerpc32/power6/memset.S: Update comments.
7147         Specify .machine power6 to get ISA-V2.0 branch hints.  Unroll loops
7148         and avoid branch misspredicts for > 31 bytes memset case.
7149         * sysdeps/powerpc/powerpc64/power6/memset.S: Likewise.
7150         Remove toc ref to __cache_line_size.
7151
7152         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Specify .machine power4
7153         to get ISA-V2.0 branch hints.
7154         * sysdeps/powerpc/powerpc32/power4/memcpy.S: Likewise
7155         * sysdeps/powerpc/powerpc32/power4/memset.S: Likewise
7156         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
7157         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
7158         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
7159         * sysdeps/powerpc/powerpc64/power4/memset.S: Likewise.
7160         Remove toc ref to __cache_line_size.
7161
7162         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S:
7163         Include math_ldbl_opt.h.
7164
7165 2007-07-10  Ulrich Drepper  <drepper@redhat.com>
7166
7167         [BZ #4773]
7168         * time/strptime_l.c (__strptime_internal): Implement greedy
7169         matching of weekday and month names.
7170
7171 2007-07-09  Roland McGrath  <roland@redhat.com>
7172
7173         * elf/elf.h (NT_GNU_ABI_TAG): New macro.
7174         (ELF_NOTE_ABI): Use it.
7175         (NT_GNU_HWCAP, NT_GNU_BUILD_ID): New macros.
7176
7177 2007-07-09  Ulrich Drepper  <drepper@redhat.com>
7178
7179         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Add new entries.
7180         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
7181
7182 2007-07-07  Ulrich Drepper  <drepper@redhat.com>
7183
7184         [BZ #4745]
7185         * stdio-common/vfscanf.c (_IO_vfscanf): Add additional test for EOF
7186         in loop to look for conversion specifier to avoid testing of
7187         wrong errno value.
7188         * stdio-common/Makefile (tests): Add bug18, bug18a, bug19, bug19a.
7189         * stdio-common/bug18.c: New file.
7190         * stdio-common/bug18a.c: New file.
7191         * stdio-common/bug19.c: New file.
7192         * stdio-common/bug19a.c: New file.
7193
7194 2007-07-05  Mike Frysinger  <vapier@gentoo.org>
7195
7196         * Makeconfig ($(common-objpfx)gnu/lib-names.stmp): Use LC_ALL=C when
7197         running awk script.
7198
7199 2007-07-01  Jakub Jelinek  <jakub@redhat.com>
7200
7201         * elf/dl-sysdep.c (_dl_important_hwcaps): Add integer overflow check.
7202         * elf/dl-minimal.c (__libc_memalign): Likewise.  Handle malloc (0).
7203         Return NULL if mmap failed instead of asserting it does not.
7204         (calloc): Check for integer overflow.
7205
7206         * elf/dl-minimal.c (__strtoul_internal): Fix parsing of numbers bigger
7207         than LONG_MAX / 10.
7208
7209 2007-07-03  Jakub Jelinek  <jakub@redhat.com>
7210
7211         [BZ #4702]
7212         * nis/nss-default.c: Include errno.h.
7213         (init): Preserve errno.
7214
7215 2007-07-02  Ulrich Drepper  <drepper@redhat.com>
7216
7217         * sysdeps/unix/sysv/linux/bits/socket.h (PF_UNIX): Update comment.
7218
7219 2007-06-30  Ulrich Drepper  <drepper@redhat.com>
7220
7221         * sysdeps/unix/sysv/linux/bits/socket.h: Add PF_RXRPC and AF_RXRPC.
7222
7223 2007-06-29  Martin Schwidefsky  <schwidefsky@de.ibm.com>
7224
7225         * sysdeps/unix/sysv/linux/bits/socket.h: Add PF_IUCV and AF_IUCV.
7226
7227 2007-06-29  Martin Schwidefsky  <schwidefsky@de.ibm.com>
7228
7229         * sysdeps/s390/dl-procinfo.c: New file.
7230         * sysdeps/s390/dl-procinfo.h: New file.
7231         * sysdeps/unix/sysv/linux/s390/dl-procinfo.h: New file.
7232
7233 2007-06-29  Jakub Jelinek  <jakub@redhat.com>
7234
7235         * elf/dl-load.c (open_verify): Find .note.ABI-tag notes even
7236         in PT_NOTE segments with multiple notes.
7237         * elf/readelflib.c (process_elf_file): Likewise.
7238
7239 2007-06-22  Ulrich Drepper  <drepper@redhat.com>
7240
7241         * nis/nis_domain_of.c (__nis_domain_of): Make the code a bit more
7242         ISO C compliant.
7243
7244 2007-06-19  Ulrich Drepper  <drepper@redhat.com>
7245
7246         * elf/dl-close.c (free_mem): Free _dl_scope_free_list.
7247
7248 2007-06-13  Jakub Jelinek  <jakub@redhat.com>
7249
7250         * include/link.h: Don't include rtld-lowlevel.h.
7251         (struct link_map): Remove l_scope_lock.
7252         * sysdeps/generic/ldsodefs.h: Don't include rtld-lowlevel.h.
7253         (_dl_scope_free_list): New field (variable) in _rtld_global.
7254         (DL_LOOKUP_SCOPE_LOCK): Remove.
7255         (_dl_scope_free): New prototype.
7256         * elf/dl-runtime.c (_dl_fixup): Don't use __rtld_mrlock_*lock.
7257         Don't pass DL_LOOKUP_SCOPE_LOCK to _dl_lookup_symbol_x.
7258         (_dl_profile_fixup): Likewise.
7259         * elf/dl-sym.c (do_sym): Likewise.  Use wrapped _dl_lookup_symbol_x
7260         whenever !RTLD_SINGLE_THREAD_P, use THREAD_GSCOPE_SET_FLAG and
7261         THREAD_GSCOPE_RESET_FLAG around it.
7262         * elf/dl-close.c (_dl_close_worker): Don't use
7263         __rtld_mrlock_{change,done}.  Call _dl_scope_free on the old
7264         scope.  Make sure THREAD_GSCOPE_WAIT () happens if any old
7265         scopes were queued or if l_scope_mem has been abandoned.
7266         * elf/dl-open.c (_dl_scope_free): New function.
7267         (dl_open_worker): Use it.  Don't use __rtld_mrlock_{change,done}.
7268         * elf/dl-support.c (_dl_scope_free_list): New variable.
7269         * elf/dl-lookup.c (add_dependency): Remove flags argument.
7270         Remove DL_LOOKUP_SCOPE_LOCK handling.
7271         (_dl_lookup_symbol_x): Adjust caller.  Remove DL_LOOKUP_SCOPE_LOCK
7272         handling.
7273         * elf/dl-object.c (_dl_new_object): Don't use
7274         __rtld_mrlock_initialize.
7275
7276 2007-06-19  Ulrich Drepper  <drepper@redhat.com>
7277
7278         * sysdeps/generic/ldsodefs.h (rtld_global): Reorder some elements
7279         to fill in holes
7280         (rtld_global_ro): Likewise.
7281
7282 2007-06-18  Jakub Jelinek  <jakub@redhat.com>
7283
7284         * elf/dl-addr.c (_dl_addr): Skip PT_LOAD checking if l_contiguous.
7285         Move PT_LOAD checking to...
7286         (_dl_addr_inside_object): ... here, new function.
7287         * elf/dl-sym.c (do_sym): If not l_contiguous,
7288         call _dl_addr_inside_object.
7289         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise.
7290         * dlfcn/dlinfo.c (dlinfo_doit): Likewise.
7291         * elf/dl-open.c (dl_open_worker): Likewise.
7292         (_dl_addr_inside_object): New function if IS_IN_rtld.
7293         * elf/dl-load.c (_dl_map_object_from_fd): Set l_contiguous if no
7294         holes are present or are PROT_NONE protected.
7295         * include/link.h (struct link_map): Add l_contiguous field.
7296         * sysdeps/generic/ldsodefs.h (_dl_addr_inside_object): New prototype.
7297
7298 2007-06-18  Jakub Jelinek  <jakub@redhat.com>
7299             Tomas Janousek  <tjanouse@redhat.com>
7300             Ulrich Drepper  <drepper@redhat.com>
7301
7302         [BZ #4647]
7303         * resolv/res_send.c (send_dg): Remove socket_pf.  Use ipv6_unavail
7304         member in __res_state, only convaddr4to6 if nssocks[ns] is a PF_INET6
7305         socket.
7306         * resolv/resolv.h (__res_state): Add ipv6_unavail member.  Make
7307         unused member a bitmap.
7308         * resolv/res_init.c (__res_vinit): Reset ipv6_unavail if IPv6
7309         servers are configured.
7310
7311 2007-06-18  Jakub Jelinek  <jakub@redhat.com>
7312
7313         * elf/rtld.c (dl_main): Don't call init_tls more than once.
7314
7315 2007-06-17  Andreas Schwab  <schwab@suse.de>
7316
7317         * sysdeps/generic/initfini.c: Tell gcc about the nonstandard sections.
7318
7319 2007-06-16  Andreas Jaeger  <aj@suse.de>
7320
7321         [BZ #4125]
7322         * sysdeps/unix/sysv/linux/sys/ptrace.h
7323         (PTRACE_O_TRACESYSGOOD, PTRACE_O_TRACEFORK,
7324         PTRACE_O_TRACEVFORK, PTRACE_O_TRACECLONE, PTRACE_O_TRACEEXEC,
7325         PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT, PTRACE_O_MASK,
7326         PTRACE_EVENT_FORK, PTRACE_EVENT_VFORK, PTRACE_EVENT_CLONE,
7327         PTRACE_EVENT_EXEC, PTRACE_EVENT_VFORK_DONE, PTRACE_EVENT_EXIT):
7328         Define.
7329         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
7330         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
7331         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
7332         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
7333
7334 2007-06-16  Ulrich Drepper  <drepper@redhat.com>
7335
7336         [BZ #4599]
7337         * sysdeps/unix/sysv/linux/check_pf.c (make_request): When
7338         determining whether there are IPv4/IPv6 addresses, ignore loopback
7339         addresses.
7340
7341 2007-06-14 Uros Bizjak <ubizjak@gmail.com>
7342
7343         * soft-fp/soft-fp.h (CMPtype): Define to "int" if undefined.
7344         * soft-fp/eqdf2.c (__eqdf2): Use CMPtype instead of int
7345         as the return type.  Change type of "r" variable to CMPtype.
7346         * soft-fp/eqsf2.c (__eqsf2): Likewise.
7347         * soft-fp/eqtf2.c (__eqtf2): Likewise.
7348         * soft-fp/gedf2.c (__gedf2): Likewise.
7349         * soft-fp/gesf2.c (__gesf2): Likewise.
7350         * soft-fp/getf2.c (__getf2): Likewise.
7351         * soft-fp/ledf2.c (__ledf2): Likewise.
7352         * soft-fp/lesf2.c (__lesf2): Likewise.
7353         * soft-fp/letf2.c (__letf2): Likewise.
7354         * soft-fp/unorddf2 (__unorddf2): Likewise.
7355         * soft-fp/unordsf2 (__unordsf2): Likewise.
7356         * soft-fp/unordtf2 (__unordtf2): Likewise.
7357
7358 2007-06-09  Ulrich Drepper  <drepper@redhat.com>
7359
7360         * elf/do-lookup.h (do_lookup_x): Read r_nlist before r_list and
7361         make sure gcc doesn't mess around with this.
7362
7363 2007-06-08  Ulrich Drepper  <drepper@redhat.com>
7364
7365         * elf/dl-lookup.c (_dl_lookup_symbol_x): Remove use of r_nlist.
7366
7367 2007-06-08  Jakub Jelinek  <jakub@redhat.com>
7368
7369         * elf/dl-close.c (_dl_close_worker): Remove all to be removed
7370         libraries from the global scope at once and call THREAD_GSCOPE_WAIT
7371         at most once per _dl_close_worker.
7372
7373 2007-06-08  Ulrich Drepper  <drepper@redhat.com>
7374
7375         * sysdeps/unix/sysv/linux/bits/sched.h: Make second parameter of
7376         __sched_cpucount as const.
7377         * posix/sched_cpucount.c: Adjust.
7378
7379         * posix/sched_cpucount.c (__sched_cpucount): Allow using special
7380         instruction for counting bits.
7381         * sysdeps/x86_64/sched_cpucount.c: New file.
7382
7383 2007-06-07  Ulrich Drepper  <drepper@redhat.com>
7384
7385         * configure.in: Avoid variable named BASH.
7386         * config.make.in: Likewise.
7387         Patch in part by Mike Frysinger.
7388
7389 2007-06-06  Jakub Jelinek  <jakub@redhat.com>
7390
7391         [BZ #4586]
7392         * sysdeps/i386/ldbl2mpn.c (__mpn_extract_long_double): Treat
7393         pseudo-zeros as zero.
7394         * sysdeps/x86_64/ldbl2mpn.c: New file.
7395         * sysdeps/ia64/ldbl2mpn.c: New file.
7396
7397 2007-06-04  Jakub Jelinek  <jakub@redhat.com>
7398
7399         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (nextafterl): Remove
7400         unused ily variable.  Fix nextafterl on +-__LDBL_MAX__ and +-Inf.
7401         Remove unreachable code at the end.
7402
7403 2007-06-01  Steven Munroe  <sjmunroe@us.ibm.com>
7404
7405         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Correct description of
7406         ldbl-128ibm in comment.
7407         (fpclassifyl): Correct classification of denormals.
7408         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (nextafterl): Correct
7409         return value for MIN denormal. Rewrite using long double math too
7410         correctly handle denormals and canonicalize the results.
7411
7412 2007-06-05  Jakub Jelinek  <jakub@redhat.com>
7413
7414         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c
7415         (__mpn_construct_long_double): Fix conversion where result ought
7416         to be smaller than __LDBL_MIN__, or the low double should be
7417         denormal.  Fix decision where to negate low double - honor round
7418         to even rules.
7419         * stdio-common/tst-sprintf2.c: Include string.h.
7420         (COMPARE_LDBL): Define.
7421         (TEST): Also test whether a string hexadecimal float representation
7422         can be parsed back to the number.
7423         (main): Add a couple of further tests.
7424
7425 2007-06-04  Jakub Jelinek  <jakub@redhat.com>
7426
7427         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c
7428         (PRINT_FPHEX_LONG_DOUBLE): Fix printing numbers where lower double
7429         is non-zero, but smaller than 2 * __DBL_MIN__.
7430         * stdio-common/tst-sprintf2.c: New test.
7431         * stdio-common/Makefile (tests): Add tst-sprintf2.
7432
7433         * math/test-misc.c (main): Don't run last batch of tests with
7434         IBM long double format.
7435
7436 2007-05-31  Steven Munroe  <sjmunroe@us.ibm.com>
7437
7438         * sysdeps/powerpc/powerpc32/970/fpu/Implies: New file.
7439         * sysdeps/powerpc/powerpc32/power5/fpu/Implies: New file.
7440         * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: New file.
7441         * sysdeps/powerpc/powerpc32/power6/fpu/Implies: New file.
7442         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: New file.
7443         * sysdeps/powerpc/powerpc64/970/fpu/Implies: New file.
7444         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: New file.
7445         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: New file.
7446         * sysdeps/powerpc/powerpc64/power6/fpu/Implies: New file.
7447         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: New file.
7448         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: New file.
7449         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies:
7450         New file.
7451         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies:
7452         New file.
7453         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies:
7454         New file.
7455         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies:
7456         New file.
7457         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies:
7458         New file.
7459         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: New file.
7460         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies:
7461         New file.
7462         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies:
7463         New file.
7464         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies:
7465         New file.
7466         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies:
7467         New file.
7468         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies:
7469         New file.
7470
7471 2007-05-31  Steven Munroe  <sjmunroe@us.ibm.com>
7472
7473         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S: Move.
7474         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: To here.
7475         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrintf.S: Move.
7476         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: To here.
7477         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llround.S: Move.
7478         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: To here.
7479         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llroundf.S: Move.
7480         * sysdeps/powerpc/powerpc32/power4/fpu/s_llroundf.S: To here.
7481
7482 2007-05-22  Steven Munroe  <sjmunroe@us.ibm.com>
7483
7484         * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S
7485         (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
7486         * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S
7487         (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
7488         * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S
7489         (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
7490         * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S
7491         (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
7492
7493 2007-05-21  Steven Munroe  <sjmunroe@us.ibm.com>
7494
7495         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: New file.
7496         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.c: New file.
7497         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: New file.
7498         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: New file.
7499
7500 2007-03-15  Steven Munroe  <sjmunroe@us.ibm.com>
7501
7502         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S
7503         [LONG_DOUBLE_COMPAT]: Add compat_symbol for llrintl@@GLIBC_2_1.
7504
7505 2006-02-13  Steven Munroe  <sjmunroe@us.ibm.com>
7506
7507         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: New File
7508         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: New File
7509         * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: New File
7510         * sysdeps/powerpc/powerpc32/power6/fpu/s_llroundf.S: New File
7511
7512 2006-10-20  Steven Munroe  <sjmunroe@us.ibm.com>
7513
7514         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: New file.
7515         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: New file.
7516
7517 2006-10-03  Steven Munroe  <sjmunroe@us.ibm.com>
7518
7519         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llround.S: New file.
7520         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llroundf.S: New file.
7521
7522         * sysdeps/powerpc/powerpc32/powerpc64/fpu/Makefile: Moved.
7523         * sysdeps/powerpc/powerpc32/powerpc64/fpu/mpa.c: Likewise.
7524         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile: To here.
7525         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
7526
7527 2006-09-29  Steven Munroe  <sjmunroe@us.ibm.com>
7528
7529         * sysdeps/powerpc/powerpc32/power6x/fpu/s_lrint.S: New file.
7530         * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: New file.
7531         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: New file.
7532         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: New file.
7533
7534 2006-09-28  Steven Munroe  <sjmunroe@us.ibm.com>
7535
7536         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: New file.
7537         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llroundf.S: New file.
7538         * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: New file.
7539         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: New file.
7540         * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: New file.
7541         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: New file.
7542
7543 2006-08-31  Steven Munroe  <sjmunroe@us.ibm.com>
7544
7545         * sysdeps/powerpc/powerpc32/powerpc64/fpu/Makefile: New file.
7546         * sysdeps/powerpc/powerpc32/powerpc64/fpu/mpa.c: New file.
7547         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile: New file.
7548         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: New file.
7549
7550 2006-06-15  Steven Munroe  <sjmunroe@us.ibm.com>
7551
7552         * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceil.S: New file.
7553         * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceilf.S: New file.
7554         * sysdeps/powerpc/powerpc32/power5+/fpu/s_floor.S: New file.
7555         * sysdeps/powerpc/powerpc32/power5+/fpu/s_floorf.S: New file.
7556         * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S: New file.
7557         * sysdeps/powerpc/powerpc32/power5+/fpu/s_roundf.S: New file.
7558         * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S: New file.
7559         * sysdeps/powerpc/powerpc32/power5+/fpu/s_truncf.S: New file.
7560         * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceil.S: New file.
7561         * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceilf.S: New file.
7562         * sysdeps/powerpc/powerpc64/power5+/fpu/s_floor.S: New file.
7563         * sysdeps/powerpc/powerpc64/power5+/fpu/s_floorf.S: New file.
7564         * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S: New file.
7565         * sysdeps/powerpc/powerpc64/power5+/fpu/s_roundf.S: New file.
7566         * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S: New file.
7567         * sysdeps/powerpc/powerpc64/power5+/fpu/s_truncf.S: New file.
7568
7569 2006-03-20  Steven Munroe  <sjmunroe@us.ibm.com>
7570
7571         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S: New file.
7572         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrintf.S: New file.
7573
7574 2007-06-01  Steven Munroe  <sjmunroe@us.ibm.com>
7575
7576         * sysdeps/powerpc/powerpc32/power6/memset.S: New file.
7577         * sysdeps/powerpc/powerpc64/power6/memset.S: New file.
7578
7579 2007-05-31  Steven Munroe  <sjmunroe@us.ibm.com>
7580
7581         * sysdeps/powerpc/powerpc32/970/Implies: New file.
7582         * sysdeps/powerpc/powerpc32/power5/Implies: New file.
7583         * sysdeps/powerpc/powerpc32/power5+/Implies: New file.
7584         * sysdeps/powerpc/powerpc32/power6/Implies: New file.
7585         * sysdeps/powerpc/powerpc32/power6x/Implies: New file.
7586         * sysdeps/powerpc/powerpc64/970/Implies: New file.
7587         * sysdeps/powerpc/powerpc64/power5/Implies: New file.
7588         * sysdeps/powerpc/powerpc64/power5+/Implies: New file.
7589         * sysdeps/powerpc/powerpc64/power6/Implies: New file.
7590         * sysdeps/powerpc/powerpc64/power6x/Implies: New file.
7591
7592 2007-05-21  Steven Munroe  <sjmunroe@us.ibm.com>
7593
7594         * sysdeps/powerpc/powerpc32/power4/memset.S: New file
7595
7596 2007-03-13  Steven Munroe  <sjmunroe@us.ibm.com>
7597
7598         * sysdeps/powerpc/powerpc64/memcpy.S: Improve aligned loop to minimize
7599         branch miss-predicts. Ensure that cache line crossing does not impact
7600         dispatch grouping.
7601
7602 2006-12-13  Steven Munroe  <sjmunroe@us.ibm.com>
7603
7604         * sysdeps/powerpc/powerpc64/power4/memcopy.h: Replace with include
7605         "../../powerpc32/power4/memcopy.h".
7606         * sysdeps/powerpc/powerpc64/power4/wordcopy.c: Replace with include
7607         "../../powerpc32/power4/wordcopy.c".
7608
7609 2006-10-03  Steven Munroe  <sjmunroe@us.ibm.com>
7610
7611         * sysdeps/powerpc/powerpc32/powerpc64/Makefile: Moved.
7612         * sysdeps/powerpc/powerpc32/powerpc64/memcopy.h: Likewise.
7613         * sysdeps/powerpc/powerpc32/powerpc64/wordcopy.c: Likewise.
7614         * sysdeps/powerpc/powerpc32/power4/Makefile: To here.
7615         * sysdeps/powerpc/powerpc32/power4/memcopy.h: Likewise.
7616         * sysdeps/powerpc/powerpc32/power4/wordcopy.c: Likewise.
7617
7618 2006-09-10  Steven Munroe  <sjmunroe@us.ibm.com>
7619
7620         * sysdeps/powerpc/powerpc32/power6/memcpy.S: New file.
7621
7622 2006-08-31  Steven Munroe  <sjmunroe@us.ibm.com>
7623
7624         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: New file.
7625         * sysdeps/powerpc/powerpc32/powerpc64/Makefile: New file.
7626         * sysdeps/powerpc/powerpc32/powerpc64/memcopy.h: New file.
7627         * sysdeps/powerpc/powerpc32/powerpc64/wordcopy.c: New file.
7628         * sysdeps/powerpc/powerpc64/power4/Makefile: New file.
7629         * sysdeps/powerpc/powerpc64/power4/memcopy.h: New file.
7630         * sysdeps/powerpc/powerpc64/power4/wordcopy.c: New file.
7631         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: New file.
7632
7633 2006-07-06  Steven Munroe  <sjmunroe@us.ibm.com>
7634
7635         * sysdeps/powerpc/powerpc64/power6/memcpy.S: New file.
7636
7637 2006-03-20  Steven Munroe  <sjmunroe@us.ibm.com>
7638
7639         * sysdeps/powerpc/powerpc32/power4/memcmp.S: New file.
7640         * sysdeps/powerpc/powerpc32/power4/memcpy.S: New file.
7641         * sysdeps/powerpc/powerpc32/power4/memset.S: New file.
7642         * sysdeps/powerpc/powerpc32/power4/strncmp.S: New file.
7643         * sysdeps/powerpc/powerpc64/power4/memcmp.S: New file.
7644         * sysdeps/powerpc/powerpc64/power4/memcpy.S: New file.
7645         * sysdeps/powerpc/powerpc64/power4/strncmp.S: New file.
7646
7647 2007-05-29  Roland McGrath  <roland@redhat.com>
7648
7649         * po/Makefile (po-sed-cmd): New variable.
7650         (libc.pot.files): Move sed command text in there, avoid \ inside ''.
7651
7652 2007-05-29  Ulrich Drepper  <drepper@redhat.com>
7653
7654         * crypt/md5-crypt.c: Fix comment.
7655
7656         * nscd/nscd_helper.c (get_mapping): Handle short replies instead
7657         of crashing.  When this is the case or if the reply is malformed,
7658         don't try to close the new file descriptor since it does not
7659         exist.
7660         Patch in part by Guillaume Chazarain <guichaz@yahoo.fr>.
7661
7662 2007-05-28  Jakub Jelinek  <jakub@redhat.com>
7663
7664         * sysdeps/unix/sysv/linux/futimes.c (miss_utimensat): Don't define
7665         if __NR_utimensat is not defined.
7666
7667 2007-05-26  Ulrich Drepper  <drepper@redhat.com>
7668
7669         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Include <sysdep.h>.
7670
7671 2007-05-25  Jakub Jelinek  <jakub@redhat.com>
7672
7673         * io/bits/fcntl2.h (__open_2): Add nonnull attribute.
7674         (open): Fix comment typos.  Don't call __open_2 if flags
7675         is a compile time constant without O_CREAT.
7676         (__open64_2): Add nonnull attribute.
7677         (open64): Fix comment typos.  Don't call __open64_2 if flags
7678         is a compile time constant without O_CREAT.
7679         (__openat_2): Add nonnull attribute, fix nonnull attribute
7680         on redirect.
7681         (openat): Fix comment typos.  Don't call __openat_2 if flags
7682         is a compile time constant without O_CREAT.
7683         (__openat64_2): Add nonnull attribute, fix nonnull attribute
7684         on redirect.
7685         (openat64): Fix comment typos.  Don't call __openat64_2 if flags
7686         is a compile time constant without O_CREAT.
7687
7688 2007-05-24  Ulrich Drepper  <drepper@redhat.com>
7689
7690         * Makerules (sysd-rules): Define PTW for ptw-* files.
7691         * Versions: Define GLIBC_2.7 for libc.
7692         * include/stdio.h: Declare __fortify_fail.
7693         * debug/fortify_fail.c: New file.
7694         * debug/Makefile (routines): Add fortify_fail.
7695         * debug/chk_fail.c: Use __fortify_fail.
7696         * debug/stack_chk_fail.c: Likewise.
7697         * io/Versions: Export __open_2, __open64_2, __openat_2, and
7698         __openat64_2 for GLIBC_2.7.
7699         * io/fcntl.h: When compiling with fortification, include bits/fcntl2.h.
7700         * io/open.c: Define *_2 variant of function which checks for O_CREAT
7701         and fails if necessary.
7702         * io/open64.c: Likewise.
7703         * io/openat.c: Likewise.
7704         * io/openat64.c: Likewise.
7705         * sysdeps/unix/sysv/linux/open64.c: Likewise.
7706         * sysdeps/unix/sysv/linux/openat.c: Likewise.
7707         * sysdeps/unix/sysv/linux/openat64.c: Likewise.
7708         * io/bits/fcntl2.h: New file.
7709         * include/fcntl.h: Declare __open_2, __open64_2, __openat_2, and
7710         __openat64_2.
7711         * include/bits/fcntl2.h: New file.
7712         * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
7713         Add open_2.
7714         * sysdeps/unix/sysv/linux/open_2.c: New file.
7715
7716 2007-05-21  Ulrich Drepper  <drepper@redhat.com>
7717
7718         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Pass correct value
7719         as second parameter to handle_intel.
7720
7721         * nscd/aicache.c (addhstaiX): If reported TTL is zero don't cache
7722         the entry.
7723
7724         * sysdeps/unix/sysv/linux/x86_64/sysconf.c: Move cache information
7725         handling to ...
7726         * sysdeps/x86_64/cacheinfo.c: ... here.  New file.
7727         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
7728         cacheinfo.
7729         * sysdeps/x86_64/memcpy.S: Complete rewrite.
7730         * sysdeps/x86_64/mempcpy.S: Adjust appropriately.
7731         Patch by Evandro Menezes <evandro.menezes@amd.com>.
7732
7733         * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: New file.
7734
7735 2007-05-21  Jakub Jelinek  <jakub@redhat.com>
7736
7737         [BZ #4525]
7738         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add epoll_pwait.
7739         * sysdeps/unix/sysv/linux/epoll_pwait.c: New file.
7740         * sysdeps/unix/sysv/linux/syscalls.list (epoll_pwait): Remove.
7741
7742         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h (epoll_pwait): Declare.
7743
7744         [BZ #4514]
7745         * stdio-common/vfprintf.c (vfprintf): Don't shadow workstart variable,
7746         reinitialize workend at the start of each do_positional format spec
7747         loop, free workstart before do_positional loops.
7748         (printf_unknown): Fix size of work_buffer.
7749         * stdio-common/tst-sprintf.c (main): Add 3 new testcases.
7750
7751         * malloc/hooks.c (MALLOC_STATE_VERSION): Bump.
7752         (public_sET_STATe): If ms->version < 3, put all chunks into
7753         unsorted chunks and clear {fd,bk}_nextsize fields of largebin
7754         chunks.
7755
7756         * malloc/malloc.c [MALLOC_DEBUG]: Revert 2007-05-13 changes.
7757         * malloc/hooks.c: Likewise.
7758         * malloc/arena.c: Likewise.
7759         * malloc/malloc.c (do_check_malloc_state): Don't assert
7760         n_mmaps is not greater than n_mmaps_max.  This removes the need
7761         for the previous change.
7762
7763         * malloc/Makefile (CFLAGS-malloc.c): Revert accidental
7764         2007-05-07 commit.
7765
7766 2007-05-19  Ulrich Drepper  <drepper@redhat.com>
7767
7768         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PRIVATE_FUTEX):
7769         Define for kernel >= 2.6.22.
7770
7771 2007-05-18  Ulrich Drepper  <drepper@redhat.com>
7772
7773         * elf/dl-close.c (_dl_close_worker): When removing object from
7774         global scope, wait for all lookups to finish afterwards.
7775         * elf/dl-open.c (add_to_global): When global scope array must
7776         grow, allocate a new one and free old array only after all
7777         lookups finish.
7778         * elf/dl-runtime.c (_dl_fixup): Protect using global scope.
7779         (_dl_lookup_symbol_x): Likewise.
7780         * elf/dl-support.c: Define _dl_wait_lookup_done.
7781         * sysdeps/generic/ldsodefs.h (struct rtld_global): Add
7782         _dl_wait_lookup_done.
7783
7784         * malloc/malloc.c (do_check_chunk): Correct check for mmaped block
7785         not overlapping with arena.
7786
7787         * malloc/mcheck.c (reallochook): If size==0, free the block.
7788
7789         * rt/tst-shm.c: Use fstat64 instead of fstat.
7790
7791         * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Fix case where
7792         __NR_sync_file_range is not defined.
7793
7794 2007-05-17  Ulrich Drepper  <drepper@redhat.com>
7795
7796         Dummy files to prevent stub versions from being used.
7797         * sysdeps/x86_64/fpu/k_cosl.c: New file.
7798         * sysdeps/x86_64/fpu/k_rem_pio2l.c: New file.
7799         * sysdeps/x86_64/fpu/k_sinl.c: New file.
7800         * sysdeps/x86_64/fpu/k_tanl.c: New file.
7801
7802         * version.h (VERSION): Set to 2.6.90.
7803
7804 2007-05-14  Ulrich Drepper  <drepper@redhat.com>
7805
7806         * version.h (VERSION): Define to 2.6.
7807         * include/features.h (__GLIBC_MINOR__): Define to 6.
7808
7809         * malloc/malloc.c: Use all small bin slots on 64-bit archs.
7810
7811         * malloc/malloc.c (largebin_index): Really have 32 buckets with 64
7812         sizes.
7813
7814 2007-05-13  Ulrich Drepper  <drepper@redhat.com>
7815
7816         * malloc/malloc.c [MALLOC_DEBUG]: Keep track of current maximum
7817         number of mmaps.  n_mmaps_max is the target.
7818         * malloc/hooks.c: Likewise.
7819         * malloc/arena.c: Likewise.
7820
7821 2007-05-12  Andreas Jaeger  <aj@suse.de>
7822
7823         * sysdeps/unix/sysv/linux/tst-getcpu.c: Include <unistd.h> for
7824         getpid.
7825
7826 2007-05-11  Ulrich Drepper  <drepper@redhat.com>
7827
7828         * elf/dl-close.c (_dl_close_worker): Help gcc to optimize by
7829         adding new variables.
7830
7831         * elf/dl-open.c (add_to_global): Introduce variable ns to help gcc
7832         optimize.  Completely extend global scope array before making the
7833         new entries visible.
7834
7835 2007-05-10  Ulrich Drepper  <drepper@redhat.com>
7836
7837         * sysdeps/unix/sysv/linux/tst-getcpu.c: New file.
7838         * sysdeps/unix/sysv/linux/Makefile [subdir=posix] (tests): Add
7839         tst-getcpu.
7840
7841         * include/link.h: Move l_version and l_nversion members around to
7842         fill gaps.
7843
7844         * scripts/check-c++-types.sh: Don't use -fnu89-inline option.
7845
7846         * sysdeps/unix/sysv/linux/sched_setaffinity.c
7847         (__sched_setaffinity_new): If syscall was successful and
7848         RESET_VGETCPU_CACHE is defined, use it before returning.
7849         * sysdeps/unix/sysv/linux/x86_64/sched_setaffinity.c: New file.
7850
7851         * io/sys/stat.h: Make sure struct timespec is defined for
7852         __USE_ATFILE.
7853
7854         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Define UTIME_NOW and
7855         UTIME_OMIT.
7856         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
7857         * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
7858         * sysdeps/unix/sysv/linux/alpha/bits/stat.h: Likewise.
7859         * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
7860         * sysdeps/unix/sysv/linux/bits/stat.h: Likewise.
7861         * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
7862         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_UTIMENSAT.
7863         * io/sys/stat.h: Declare utimensat, futimens.
7864         * io/utimensat.c: New file.
7865         * io/futimens.c: New file.
7866         * sysdeps/unix/sysv/linux/utimensat.c: New file.
7867         * sysdeps/unix/sysv/linux/futimens.c: New file.
7868         * io/Makefile (routines): Add utimensat, futimens.
7869         * io/Versions: Add utimensat, futimens to GLIBC_2.6.
7870         * sysdeps/unix/sysv/linux/lutimes.c: New file.
7871         * sysdeps/unix/sysv/linux/futimes.c: Use utimensat syscall if
7872         available.
7873
7874         * include/sys/cdefs.h: Redefine __nonnull so that test for
7875         incorrect parameters in the libc code itself are not omitted.
7876
7877 2007-05-09  Jakub Jelinek  <jakub@redhat.com>
7878
7879         * sysdeps/ia64/fpu/fraiseexcpt.c (feraiseexcept): Don't raise overflow
7880         exception in addition to inexact when asked to raise only FE_INEXACT.
7881
7882         [BZ #3427]
7883         * sysdeps/s390/fpu/feholdexcpt.c (feholdexcept): Don't clear exceptions
7884         in *envp.
7885
7886 2007-05-07  Ulrich Drepper  <drepper@redhat.com>
7887
7888         [BZ #4403]
7889         * string/strfry.c (strfry): Make result more random.
7890
7891 2007-05-07  Richard Henderson  <rth@redhat.com>
7892
7893         * sysdeps/alpha/fpu/bits/mathinline.h (__isnanl): Don't define
7894         if __NO_LONG_DOUBLE_MATH.
7895         * sysdeps/unix/sysv/linux/alpha/ioperm.c: If BWX insns not
7896         available in the compiler, add .arch directive to the assembly.
7897
7898 2007-05-07  Jakub Jelinek  <jakub@redhat.com>
7899
7900         * sysdeps/alpha/fpu/s_nearbyint.c (nearbyintl): Fix version on
7901         compat_symbol to GLIBC_2_1.
7902         * sysdeps/alpha/fpu/s_fmin.S (fminl): Likewise.
7903         * sysdeps/alpha/fpu/s_trunc.c (truncl): Likewise.
7904         * sysdeps/alpha/fpu/s_fmax.S (fmaxl): Likewise.
7905         * sysdeps/alpha/fpu/s_lrint.c (lrintl, llrintl): Likewise.
7906         * sysdeps/alpha/fpu/s_lround.c (lroundl, llroundl): Likewise.
7907         * sysdeps/alpha/fpu/s_round.c (roundl): Likewise.
7908         * sysdeps/alpha/fpu/s_isnan.c (isnanl): Provide compat_symbol in
7909         libc, not libm.
7910         (__isnanl): New compat_symbol.
7911
7912 2007-05-07  Ulrich Drepper  <drepper@redhat.com>
7913             Jakub Jelinek  <jakub@redhat.com>
7914
7915         * malloc/arena.c (heap_info): Add mprotect_size field, adjust pad.
7916         (new_heap): Initialize mprotect_size.
7917         (grow_heap): When growing, only mprotect from mprotect_size till
7918         new_size if mprotect_size is smaller.  When shrinking, use PROT_NONE
7919         MMAP for __libc_enable_secure only, otherwise use MADV_DONTNEED.
7920
7921 2007-04-30  Steven Munroe  <sjmunroe@us.ibm.com>
7922             Peter Bergner  <bergner@us.ibm.com>
7923
7924         * sysdeps/powerpc/bits/fenv.h: Declare __fe_mask_env extern.
7925         Define FE_NOMASK_ENV as FE_EANBLED_ENV.  Define FE_MASK_ENV.
7926         * sysdeps/powerpc/fpu/Makefile: Add fe_mask to libm-support.
7927         * sysdeps/powerpc/fpu/fe_mask.c: New file.
7928         * sysdeps/powerpc/fpu/fe_nomask.c: Correct comment.
7929         * sysdeps/powerpc/fpu/fedisblxcpt.c (fedisableexcept):
7930         Call __fe_mask_env() if all FP exceptions disabled.
7931         * sysdeps/powerpc/fpu/feholdexcpt.c (feholdexcept): Copy high 32-bits
7932         from old FPSCR to new fenv to propagate DFP rounding modes.
7933         Call __fe_mask_env() if FP exceptions previously enabled.
7934         * sysdeps/powerpc/fpu/fesetenv.c (fesetenv): Change mask to merge
7935         exceptions from env.  Use __fe_nomask_env() or __fe_mask_env() when
7936         transitioning from all exceptions disabled to any exception enabled
7937         or visa versa.
7938         * sysdeps/powerpc/fpu/feupdateenv.c (__feupdateenv): Change mask to
7939         merge exceptions from env.  Call __fe_nomask_env or __fe_mask_env
7940         when transitioning from all exceptions disabled to any exception
7941         enabled or visa versa.
7942         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fe_nomask.c: Moved to...
7943         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c: ...here.
7944         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c: Moved to...
7945         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c: ...here.
7946         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c: New file.
7947         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c: New file.
7948
7949 2007-05-06  Ulrich Drepper  <drepper@redhat.com>
7950
7951         [BZ #4465]
7952         * posix/unistd.h: Remove __THROW from fdatasync.
7953
7954 2007-05-06  Mike Frysinger  <vapier@gentoo.org>
7955
7956         [BZ #4465]
7957         * sysdeps/unix/sysv/linux/syscalls.list (fdatasync): Add "C" to args.
7958
7959 2007-05-06  Ulrich Drepper  <drepper@redhat.com>
7960
7961         * stdio-common/vfprintf.c (process_string_arg): Optimize
7962         ridiculous precision in wide char code printing multi-byte string.
7963         Reported by Jim Meyering <jim@meyering.net>.
7964
7965         [BZ #4131]
7966         * elf/dl-addr.c (_dl_addr): Compare address with actual segment
7967         boundaries to work around systems with overlapping binary loading.
7968         Based on a patch by Suzuki <suzuki@in.ibm.com>.
7969
7970 2007-05-04  Ulrich Drepper  <drepper@redhat.com>
7971
7972         * stdio-common/vfprintf.c (process_string_arg): Adjust call to
7973         __mbsnrtowcs after last change.
7974
7975         * locale/programs/linereader.c (get_symname): Fix adding final NUL.
7976         (get_ident): Likewise.
7977
7978 2007-05-03  Jakub Jelinek  <jakub@redhat.com>
7979
7980         * soft-fp/op-common.h (FP_TRUNC): Replace raising of FP_EX_INEXACT
7981         with setting the sticky bit.
7982         * math/test-misc.c (main): Add more truncation tests.
7983
7984 2007-04-14  Uros Bizjak  <ubizjak@gmail.com>
7985
7986         * soft-fp/floatunsidf.c (__floatunsidf): Use DFtype instead of
7987         double in the function declaration.
7988         * soft-fp/floatundidf.c (__floatundidf): Use DFtype instead of
7989         double in the function declaration.
7990         * soft-fp/floatunsisf.c (__floatunsisf): Use SFtype instead of
7991         float in the function declaration.
7992         * soft-fp/floatunsisf.c (__floatunsisf): Use SFtype instead of
7993         float in the function declaration.
7994
7995         * soft-fp/extended.h (FP_UNPACK_RAW_E): Do not increase X##_e for
7996         denormal operands.  Do not generate FP_EX_DENORM exception.
7997         (FP_UNPACK_RAW_EP): Ditto.
7998         (FP_UNPACK_SEMIRAW_E): Use FP_UNPACK_RAW_E instead of
7999         undefined _FP_UNPACK_RAW_E.
8000         (FP_UNPACK_SEMIRAW_EP): Use FP_UNPACK_RAW_EP instead of
8001         undefined _FP_UNPACK_RAW_EP.
8002         (FP_PACK_SEMIRAW_E): Use FP_PACK_RAW_E instead of
8003         undefined _FP_PACK_RAW_E.
8004         (FP_PACK_SEMIRAW_EP): Use FP_PACK_RAW_EP instead of
8005         undefined _FP_PACK_RAW_EP.
8006
8007         * soft-fp/op-2.h (_FP_FRAC_COPY_2_2): Define as alias to
8008         _FP_FRAC_COPY_2.
8009         * soft-fp/op-4.h (_FP_FRAC_COPY_2_2): Define as alias to
8010         _FP_FRAC_COPY_4.
8011
8012 2007-04-16  Uros Bizjak  <ubizjak@gmail.com>
8013             Jakub Jelinek  <jakub@redhat.com>
8014
8015         * soft-fp/op-common.h (FP_EXTEND): Do not abort when
8016         _FP_EXPBIAS_##dfs == _FP_EXPBIAS_##sfs.  Handle denormals for
8017         this case.
8018         * soft-fp/op-common.h (FP_TRUNC): Ditto.
8019
8020 2007-05-03  Jakub Jelinek  <jakub@redhat.com>
8021
8022         * math/test-misc.c (main): Add tests for rounding long double
8023         values close to smallest double denormalized value to double.
8024
8025 2007-04-30  Joseph Myers  <joseph@codesourcery.com>
8026
8027         * soft-fp/op-common.h (FP_TRUNC): Correct off-by-one error in
8028         condition for truncating to 0.  Set sticky bit for such
8029         truncation.
8030
8031 2007-05-02  Jakub Jelinek  <jakub@redhat.com>
8032
8033         * stdio-common/vfprintf.c (process_string_arg): Use a VLA rather than
8034         fixed length array for ignore.
8035
8036 2007-04-30  Ulrich Drepper  <drepper@redhat.com>
8037
8038         [BZ #4438]
8039         * stdio-common/vfprintf.c (process_string_arg): Don't overflow the
8040         stack for large precisions.
8041         * stdio-common/test-vfprintf.c (main): Add test for large
8042         precision.
8043
8044 2007-04-30  Jakub Jelinek  <jakub@redhat.com>
8045
8046         * stdio-common/printf_fp.c (___printf_fp): Don't print negative sign
8047         for exponent 0.
8048         * stdio-common/tfformat.c (sprint_doubles): Add a new test.
8049
8050         [BZ #4439]
8051         * resolv/inet_ntop.c (inet_ntop4): Take terminating '\0' into
8052         account in the size check.
8053         * resolv/tst-inet_ntop.c: New test.
8054         * resolv/Makefile (tests): Add tst-inet_ntop.
8055
8056 2007-04-30  Ulrich Drepper  <drepper@redhat.com>
8057             Jakub Jelinek  <jakub@redhat.com>
8058
8059         [BZ #4349]
8060         * malloc/malloc.c: Keep separate list for first blocks on the bin
8061         lists with a given size.  This helps skipping over list elements
8062         we know won't fit in two places.
8063         Inspired by a patch by Tomash Brechko <tomash.brechko@gmail.com>.
8064
8065 2007-04-28  Ulrich Drepper  <drepper@redhat.com>
8066
8067         [BZ #4102]
8068         * sysdeps/posix/getaddrinfo.c (default_labels): Assign separate
8069         label to Teredo tunnel addresses 2001://32.
8070
8071 2007-04-27  Ulrich Drepper  <drepper@redhat.com>
8072
8073         * locale/programs/ld-collate.c (collate_read): Allow order_start
8074         after copy.
8075
8076         * locale/programs/ld-collate.c (collate_read): Fix printing of
8077         error message.
8078
8079         [BZ #3213]
8080         * locale/C-translit.h.in: Add entry for U2044.
8081
8082         [BZ #4342]
8083         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Allow
8084         hexa-decimal floats without exponent.
8085         * stdio-common/tstscanf.c (main): Adjust Test 8 test for success.
8086
8087 2007-04-25  Ulrich Drepper  <drepper@redhat.com>
8088
8089         * sysdeps/unix/sysv/linux/bits/sched.h: Declare sched_getcpu.
8090         * sysdeps/unix/sysv/linux/sched_getcpu.c: New file.
8091         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: New file.
8092         * sysdeps/unix/sysv/linux/Versions: Export sched_getcpu for
8093         GLIBC_2.6.
8094         * sysdeps/unix/sysv/linux/Makefile [subdir=posix] (sysdep_routines):
8095         Add sched_getcpu.
8096
8097 2007-04-25  Jakub Jelinek  <jakub@redhat.com>
8098
8099         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Return -1 instead
8100         of 0 after the out_fail label.
8101
8102 2007-04-25  Ulrich Drepper  <drepper@redhat.com>
8103
8104         [BZ #4406]
8105         * iconv/gconv_charset.h (strip): Allow ':'.
8106         * iconv/iconv_open.c (iconv_open): Adjust comment.
8107
8108 2007-04-25  Jakub Jelinek  <jakub@redhat.com>
8109
8110         * libio/bits/stdio.h (fgetc_unlocked): Add extern inline optimized
8111         version.
8112
8113 2007-04-23  Jakub Jelinek  <jakub@redhat.com>
8114
8115         [BZ #4381]
8116         * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Ensure sufficient
8117         alignment of buffer and tmp_buffer.
8118         * nis/nss_nis/nis-hosts.c (internal_nis_gethostent_r,
8119         internal_gethostbyname2_r, _nss_nis_gethostbyaddr_r): Ensure sufficient
8120         alignment of buffer.
8121         * resolv/nss_dns/dns-hosts.c (getanswer_r): Likewise.  Handle buflen
8122         bigger than INT_MAX.
8123         * resolv/nss_dns/dns-network.c (getanswer_r): Likewise.  Add errnop and
8124         h_errnop arguments.  Fail if buflen is too small.
8125         (_nss_dns_getnetbyname_r, _nss_dns_getnetbyaddr_r): Adjust callers.
8126
8127 2007-04-23  Jakub Jelinek  <jakub@redhat.com>
8128
8129         [BZ #4405]
8130         * iconvdata/gconv-modules (E13B): Add a missing slash to the alias
8131         name.  Patch by Aurelien Jarno <aurelien@aurel32.net>.
8132
8133 2007-04-22  Roland McGrath  <roland@redhat.com>
8134
8135         * elf/elf.h (NT_PRXFPREG): New macro.
8136
8137 2007-04-19  Andreas Jaeger  <aj@suse.de>
8138
8139         [BZ #3905]
8140         * bits/in.h (IPV6_ROUTER_ALERT, IPV6_MTU_DISCOVER, IPV6_MTU,
8141         IPV6_RECVERR, IPV6_V6ONLY, IPV6_JOIN_ANYCAST, IPV6_LEAVE_ANYCAST):
8142         Added.
8143
8144 2007-04-19  Ulrich Drepper  <drepper@redhat.com>
8145
8146         * include/sys/mman.h: Mark madvise hidden.
8147         * misc/madvise.c: Add libc_hidden_def.
8148
8149 2007-04-06  Jakub Jelinek  <jakub@redhat.com>
8150
8151         * nis/nis_domain_of.c (__nis_domain_of): New function.
8152         * include/rpcsvc/nislib.h (__nis_domain_of): New prototype.
8153         * nis/nis_lookup.c (nis_lookup): Use __nis_domain_of.
8154         * nis/nis_call.c (rec_dirsearch): Likewise.
8155         (first_shoot): Likewise.  Remove search_parent_first argument.
8156         (struct nis_server_cache): Rename search_parent_first field
8157         to search_parent.
8158         (nis_server_cache_search, nis_server_cache_add): Rename
8159         search_parent_first argument to search_parent.
8160         (__nisfind_server): Likewise.  If search_parent, call
8161         __nis_domain_of.
8162
8163 2007-04-18  Ulrich Drepper  <drepper@redhat.com>
8164
8165         * sysdeps/posix/getaddrinfo.c: Remove commented-out code.
8166
8167 2007-04-17  Ulrich Drepper  <drepper@redhat.com>
8168
8169         [BZ #4368]
8170         * stdlib/stdlib.h: Remove obsolete part of comment for realpath.
8171
8172 2007-04-16  Ulrich Drepper  <drepper@redhat.com>
8173
8174         [BZ #4364]
8175         * posix/unistd.h (_XOPEN_VERSION): Define appropriately for SUSv3.
8176
8177 2007-04-15  Jakub Jelinek  <jakub@redhat.com>
8178
8179         * locale/programs/locarchive.c (INITIAL_NUM_NAMES,
8180         INITIAL_SIZE_STRINGS, INITIAL_NUM_LOCREC): Update to accomodate
8181         current number of locales in SUPPORTED.
8182         (create_archive): Initialize serial.
8183         (enlarge_archive): Preserve aliases rather than duplicating
8184         their locrecs.
8185
8186 2007-04-13  Jakub Jelinek  <jakub@redhat.com>
8187
8188         * libio/genops.c (_IO_default_finish): Call _IO_lock_fini
8189         after _IO_un_link, not before it.
8190
8191         * stdio-common/printf_fp.c (___printf_fp): Fix exponent -4
8192         special case handling when wcp == wstartp + 1.  Fix a comment typo.
8193         * stdio-common/tfformat.c (sprint_doubles): Add a new testcase.
8194
8195 2007-03-30  Jakub Jelinek  <jakub@redhat.com>
8196
8197         * libio/libio.h (__underflow, __uflow, __overflow, __wunderflow,
8198         __wuflow, __woverflow, _IO_getc, _IO_putc, _IO_peekc_locked, _IO_padn,
8199         _IO_sgetn, _IO_seekoff, _IO_seekpos, _IO_getwc, _IO_putwc, _IO_wpadn):
8200         Remove __THROW.
8201         * libio/fileops.c (new_do_write, _IO_file_xsgetn_mmap,
8202         _IO_file_xsgetn_maybe_mmap): Likewise.
8203         * libio/oldfileops.c (old_do_write): Likewise.
8204         * libio/libioP.h (_IO_switch_to_get_mode, _IO_switch_to_wget_mode,
8205         _IO_init_marker, _IO_init_wmarker, _IO_default_uflow,
8206         _IO_wdefault_uflow, _IO_default_setbuf, _IO_default_seekpos,
8207         _IO_do_write, _IO_new_do_write, _IO_old_do_write, _IO_wdo_write,
8208         _IO_flush_all_lockp, _IO_flush_all, _IO_cleanup,
8209         _IO_flush_all_linebuffered, _IO_new_fgetpos, _IO_old_fgetpos,
8210         _IO_new_fsetpos, _IO_old_fsetpos, _IO_new_fgetpos64,
8211         _IO_old_fgetpos64, _IO_new_fsetpos64, _IO_old_fsetpos64,
8212         _IO_file_setbuf, _IO_file_seekoff, _IO_file_xsputn, _IO_file_xsgetn,
8213         _IO_file_underflow, _IO_file_underflow_mmap,
8214         _IO_file_underflow_maybe_mmap, _IO_file_overflow, _IO_file_attach,
8215         _IO_file_open, _IO_file_fopen, _IO_file_write, _IO_file_read,
8216         _IO_file_sync, _IO_file_close_it, _IO_file_finish,
8217         _IO_new_file_attach, _IO_new_file_close_it, _IO_new_file_finish,
8218         _IO_new_file_fopen, _IO_new_file_setbuf, _IO_file_setbuf_mmap,
8219         _IO_new_file_sync, _IO_new_file_underflow, _IO_new_file_overflow,
8220         _IO_new_file_seekoff, _IO_new_file_write, _IO_new_file_xsputn,
8221         _IO_old_file_setbuf, _IO_old_file_seekoff, _IO_old_file_xsputn,
8222         _IO_old_file_underflow, _IO_old_file_overflow, _IO_old_file_attach,
8223         _IO_old_file_fopen, _IO_old_file_write, _IO_old_file_sync,
8224         _IO_old_file_close_it, _IO_old_file_finish, _IO_wfile_xsputn,
8225         _IO_wfile_setbuf, _IO_wfile_sync, _IO_wfile_underflow,
8226         _IO_wfile_overflow, _IO_wfile_seekoff, _IO_old_proc_open,
8227         _IO_old_proc_close, _IO_getdelim, _IO_flush_all_internal,
8228         _IO_adjust_column_internal, _IO_default_uflow_internal,
8229         _IO_default_xsgetn_internal, _IO_wdefault_xsputn_internal,
8230         _IO_wdefault_xsgetn_internal, _IO_wdefault_uflow_internal,
8231         _IO_file_setbuf_internal, _IO_file_seekoff_internal,
8232         _IO_file_xsputn_internal, _IO_file_xsgetn_internal,
8233         _IO_file_close_it_internal, _IO_file_underflow_internal,
8234         _IO_file_overflow_internal, _IO_file_attach_internal,
8235         _IO_file_fopen_internal, _IO_file_sync_internal,
8236         _IO_file_finish_internal, _IO_wfile_xsputn_internal,
8237         _IO_wfile_seekoff_internal, _IO_wfile_sync_internal,
8238         _IO_switch_to_wget_mode_internal, _IO_padn_internal,
8239         _IO_switch_to_get_mode_internal, _IO_seekoff_unlocked,
8240         _IO_seekpos_unlocked): Likewise.
8241         (_IO_strtod, _IO_dtoa, _IO_outfloat, _IO_read, _IO_write,
8242         _IO_lseek, _IO_close, _IO_fstat): Remove unused prototypes.
8243
8244 2007-04-16  Jakub Jelinek  <jakub@redhat.com>
8245
8246         * locale/programs/locarchive.c (show_archive_content): Fix sizeof
8247         argument in xmalloc size computation.
8248
8249 2007-04-01  Jakub Jelinek  <jakub@redhat.com>
8250
8251         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl): Use
8252         math_opt_barrier and math_force_eval macros.
8253
8254 2007-03-27  Jakub Jelinek  <jakub@redhat.com>
8255
8256         [BZ #3306]
8257         * math/math_private.h (math_opt_barrier, math_force_eval): Define.
8258         * sysdeps/i386/fpu/math_private.h: New file.
8259         * sysdeps/x86_64/fpu/math_private.h: New file.
8260         * math/s_nexttowardf.c (__nexttowardf): Use math_opt_barrier and
8261         math_force_eval macros.  Use "+m" constraint on asm rather than
8262         "=m" and "m".
8263         * math/s_nextafter.c (__nextafter): Likewise.
8264         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c (__nexttoward):
8265         Likewise.
8266         * sysdeps/ieee754/flt-32/s_nextafterf.c (__nextafterf): Likewise.
8267         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward): Likewise.
8268         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
8269         * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Use
8270         math_opt_barrier and math_force_eval macros.
8271         * sysdeps/ieee754/ldbl-128/s_nextafterl.c (__nextafterl): Likewise.
8272         * sysdeps/ieee754/ldbl-96/s_nextafterl.c (__nextafterl): Likewise.
8273         * sysdeps/i386/fpu/s_nexttoward.c: Include float.h.
8274         (__nexttoward): Use math_opt_barrier and
8275         math_force_eval macros.  Use "+m" constraint on asm rather than
8276         "=m" and "m".  Only use asm to force double result if
8277         FLT_EVAL_METHOD is 2.
8278         * sysdeps/i386/fpu/s_nexttowardf.c: Include float.h.
8279         (__nexttowardf): Use math_opt_barrier and
8280         math_force_eval macros.  Use "+m" constraint on asm rather than
8281         "=m" and "m".  Only use asm to force double result if
8282         FLT_EVAL_METHOD is not 0.
8283         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Include float.h.
8284         (__nexttowardf): Use math_opt_barrier and
8285         math_force_eval macros.  If FLT_EVAL_METHOD is not 0, force
8286         x to float using asm.
8287         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c: Include float.h.
8288         (__nldbl_nexttowardf): Use math_opt_barrier and
8289         math_force_eval macros.  If FLT_EVAL_METHOD is not 0, force
8290         x to float using asm.
8291         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Include float.h.
8292         (__nexttowardf): Use math_opt_barrier and math_force_eval
8293         macros.  If FLT_EVAL_METHOD is not 0, force x to float using asm.
8294         * math/bug-nextafter.c (zero, inf): New variables.
8295         (main): Add new tests.
8296         * math/bug-nexttoward.c (zero, inf): New variables.
8297         (main): Add new tests.
8298
8299 2007-03-22  Jakub Jelinek  <jakub@redhat.com>
8300
8301         [BZ #3427]
8302         * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Clear all
8303         exceptions both in SW and MXCSR.
8304         * sysdeps/x86_64/fpu/feupdateenv.c: New file.
8305         * sysdeps/x86_64/fpu/feenablxcpt.c (feenableexcept): Remove dead code.
8306         * sysdeps/x86_64/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
8307         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions
8308         in MXCSR if SSE is available.
8309         * sysdeps/i386/fpu/feupdateenv.c: Include unistd.h, dl-procinfo.h
8310         and ldsodefs.h.
8311         (__feupdateenv): Query exceptions also from MXCSR if SSE is available.
8312         Fix comment typo.
8313         * sysdeps/ia64/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions.
8314         Return 0 rather than 1.
8315         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Fix comment typo.
8316         Remove incorrect part of a comment.  Fix argument to feraiseexcept.
8317         * math/test-fenv.c (feholdexcept_tests): New function.
8318         (main): Call it.
8319
8320 2007-01-05  Richard B. Kreckel  <kreckel@ginac.de>
8321
8322         [BZ #3427]
8323         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions
8324         in SW.
8325
8326 2007-04-13  Jakub Jelinek  <jakub@redhat.com>
8327
8328         [BZ #4344]
8329         * elf/ldconfig.c (search_dir): Fix 2 off-by-2 errors.
8330         Reported by David Anderson <davea42@earthlink.net>.
8331
8332 2007-04-07  Ulrich Drepper  <drepper@redhat.com>
8333
8334         * posix/sys/wait.h: Remove unnecessary forward declaration.
8335
8336 2007-04-05  Jakub Jelinek  <jakub@redhat.com>
8337
8338         * nis/nis_call.c (__nisfind_server): Replace (*dir)->do_servers
8339         with obj->do_servers after first_shoot.
8340
8341 2007-04-03  Ulrich Drepper  <drepper@redhat.com>
8342
8343         * posix/Makefile (routines): Add sched_cpucount.
8344         (tests): Add tst-cpucount.
8345         * posix/sched_cpucount.c: New file.
8346         * posix/tst-cpucount.c: New file.
8347         * posix/Versions: Export __sched_cpucount with version GLIBC_2.6.
8348         * bits/sched.h: Define __CPU_COUNT.  Declare __sched_cpucount.
8349         * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
8350         * posix/sched.h: Define CPU_COUNT.
8351
8352 2007-03-27  Jakub Jelinek  <jakub@redhat.com>
8353
8354         * posix/fnmatch.c (STRUCT): Define.
8355         (fnmatch): Pass NULL as last argument to internal_fn{,w}match.
8356         * posix/fnmatch_loop.c (struct STRUCT): New type.
8357         (FCT): Add ends argument.  If ends != NULL and normal * is
8358         seen in the pattern, store current pattern and string pointers
8359         and return.  Adjust recursive calls.
8360         (EXT): Adjust FCT callers.
8361         (STRUCT): Undef at the end of the file.
8362         * posix/Makefile (tests): Add tst-fnmatch2.
8363         * posix/tst-fnmatch2.c: New test.
8364
8365 2007-04-01  Jakub Jelinek  <jakub@redhat.com>
8366
8367         * sysdeps/ia64/fpu/fesetround.c (fesetround): Return 0 on success
8368         and 1 on failure.
8369
8370         * sysdeps/unix/sysv/linux/sync_file_range.c (sync_file_range):
8371         Change last argument to unsigned int.
8372
8373 2007-03-23  Jakub Jelinek  <jakub@redhat.com>
8374
8375         * scripts/check-local-headers.sh: Filter out sys/capability.h.
8376
8377 2007-03-22  Jakub Jelinek  <jakub@redhat.com>
8378
8379         * config.h.in (HAVE_LIBCAP): Add.
8380         * nscd/selinux.h: Include sys/capability.h rather than non-existent
8381         sys/capabilities.h.
8382         * nscd/selinux.c (preserve_capabilities): Use cap_free instead of
8383         free_caps.  Cast away const from 4th cap_set_flag argument.
8384
8385 2007-03-26  Ulrich Drepper  <drepper@redhat.com>
8386
8387         * sysdeps/unix/sysv/linux/Versions: Move sync_file_range to
8388         GLIBC_2.6.
8389         * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
8390         Add sync_file_range.
8391         Reported by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
8392
8393 2007-03-19  Steven Munroe  <sjmunroe@us.ibm.com>
8394
8395         * sysdeps/powerpc/bits/atomic.h
8396         [!MUTEX_HINT_ACQ]: Define MUTEX_HINT_ACQ.
8397         [!MUTEX_HINT_REL]: Define MUTEX_HINT_REL.
8398         (__arch_compare_and_exchange_val_32_acq): Add MUTEX_HINT_ACQ to lwarx.
8399         (__arch_compare_and_exchange_val_32_rel): Add MUTEX_HINT_REL to lwarx.
8400         (__arch_atomic_exchange_val_32_acq): Add MUTEX_HINT_ACQ to lwarx.
8401         (__arch_atomic_exchange_rel_32_rel): Add MUTEX_HINT_REL to lwarx.
8402         * sysdeps/powerpc/powerpc32/bits/atomic.h [_ARCH_PWR6 || _ARCH_PWR6X]:
8403         Define MUTEX_HINT_ACQ as ",1" and MUTEX_HINT_REL as ",0".
8404         (__arch_compare_and_exchange_bool_32_acq): Add MUTEX_HINT_ACQ to lwarx.
8405         (__arch_compare_and_exchange_bool_32_rel): Add MUTEX_HINT_REL to lwarx.
8406         * sysdeps/powerpc/powerpc64/bits/atomic.h [_ARCH_PWR6 || _ARCH_PWR6D]:
8407         Define MUTEX_HINT_ACQ as ",1" and MUTEX_HINT_REL as ",0".
8408         (__arch_compare_and_exchange_bool_32_acq): Add MUTEX_HINT_ACQ to lwarx.
8409         (__arch_compare_and_exchange_bool_32_rel): Add MUTEX_HINT_REL to lwarx.
8410         (__arch_compare_and_exchange_bool_64_acq): Add MUTEX_HINT_ACQ to lwarx.
8411         (__arch_compare_and_exchange_bool_64_rel): Add MUTEX_HINT_REL to lwarx.
8412         (__arch_compare_and_exchange_val_64_acq): Add MUTEX_HINT_ACQ to lwarx.
8413         (__arch_compare_and_exchange_val_64_rel): Add MUTEX_HINT_REL to lwarx.
8414         (__arch_atomic_exchange_val_64_acq): Add MUTEX_HINT_ACQ to lwarx.
8415         (__arch_atomic_exchange_rel_64_rel): Add MUTEX_HINT_REL to lwarx.
8416
8417 2007-03-20  Jakub Jelinek  <jakub@redhat.com>
8418
8419         * sysdeps/unix/sysv/linux/powerpc/libc-start.c
8420         (__cache_line_size): Define the variable here.  Add
8421         attribute_hidden, remove weak_extern.
8422         (__libc_start_main): Set __cache_line_size
8423         unconditionally.
8424         * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
8425         (__cache_line_size): Define the variable here.  Add
8426         attribute_hidden, remove weak_extern.
8427         (DL_PLATFORM_AUXV): Set __cache_line_size
8428         unconditionally.
8429         * sysdeps/powerpc/powerpc32/dl-machine.c (__cache_line_size): Remove
8430         weak_extern, add attribute_hidden.
8431         (__elf_machine_runtime_setup): Assume __cache_line_size is always
8432         defined in ld.so.
8433         * sysdeps/powerpc/powerpc32/memset.S (__cache_line_size): Remove
8434         definition.
8435         * sysdeps/powerpc/powerpc64/memset.S (__cache_line_size): Likewise.
8436
8437 2007-03-26  Jakub Jelinek  <jakub@redhat.com>
8438
8439         [BZ #4276]
8440         * timezone/africa: Update from tzdata2007d.
8441         * timezone/asia: Likewise.
8442         * timezone/australasia: Likewise.
8443         * timezone/backward: Likewise.
8444         * timezone/europe: Likewise.
8445         * timezone/iso3166.tab: Likewise.
8446         * timezone/leapseconds: Likewise.
8447         * timezone/northamerica: Likewise.
8448         * timezone/southamerica: Likewise.
8449         * timezone/zone.tab: Likewise.
8450
8451         * timezone/private.h: Update from tzcode2007d.
8452         * timezone/zdump.c: Likewise.
8453         * timezone/zic.c: Likewise.
8454
8455 2007-03-21  Jakub Jelinek  <jakub@redhat.com>
8456
8457         * nis/nis_call.c: Include bits/libc-lock.h, sys/stat.h, unistd.h.
8458         (nis_server_cache, nis_server_cache_lock, nis_cold_start_mtime): New
8459         variables.
8460         (nis_server_cache_search, nis_server_cache_add): New functions.
8461         (__nisfind_server): Use them.  Add dbp and flags argument, if
8462         call __nisbind_create.
8463         (__nisbind_create): Add server_used and current_ep arguments,
8464         only call __nis_findfastest if server_used is ~0.
8465         (__do_niscall2, __prepare_niscall): Adjust callers.
8466         (ckey_cache, ckey_cache_size, ckey_cache_allocated, ckey_cache_pid,
8467         ckey_cache_euid, ckey_cache_lock): New variables.
8468         (get_ckey): New function.
8469         (__nisbind_connect): If not dbp->use_udp, pass IPPROTO_TCP to
8470         __pmap_getnisport.  Save __pmap_getnisport result in
8471         dbp->addr.sin_port if non-zero.  Use get_ckey to create conversation
8472         key.
8473         * nis/nis_lookup.c (nis_lookup): Likewise.
8474         * nis/nis_table.c (nis_list): Likewise.
8475         * nis/rpcsvc/nislib.h (__nisbind_create, __nisfind_server): Adjust
8476         prototypes.
8477
8478         * nis/nss_nisplus/nisplus-pwd.c (_nss_nisplus_getpwnam_r,
8479         _nss_nisplus_getpwuid_r): Pass USE_DGRAM flag to nis_list.
8480         * nis/nss_nisplus/nisplus-service.c (_nss_nisplus_getservbyname_r,
8481         _nss_nisplus_getservbyport_r): Likewise.
8482         * nis/nss_nisplus/nisplus-network.c (_nss_nisplus_getnetbyname_r,
8483         _nss_nisplus_getnetbyaddr_r): Likewise.
8484         * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_getspnam_r): Likewise.
8485         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_gethostton_r,
8486         _nss_nisplus_getntohost_r): Likewise.
8487         * nis/nss_nisplus/nisplus-rpc.c (_nss_nisplus_getrpcbyname_r,
8488         _nss_nisplus_getrpcbynumber_r): Likewise.
8489
8490 2007-03-20  Jakub Jelinek  <jakub@redhat.com>
8491
8492         * configure.in (libc_cv_gnu89_inline): Only do compile test.
8493         * configure: Rebuilt.
8494
8495         * soft-fp/double.h (_FP_UNION_D): Use _FP_W_TYPE for frac
8496         bit-fields.
8497         * soft-fp/extended.h (_FP_UNION_E): Likewise.
8498
8499 2006-06-07  Joseph Myers  <joseph@codesourcery.com>
8500
8501         [BZ #2831]
8502         * soft-fp/quad.h (_FP_UNION_Q): Use _FP_W_TYPE for frac
8503         bit-fields.
8504
8505 2007-03-18  Jakub Jelinek  <jakub@redhat.com>
8506
8507         * nscd/gai.c: Include alloca.h.
8508         (__libc_use_alloca): Define.
8509
8510 2007-03-16  Jakub Jelinek  <jakub@redhat.com>
8511
8512         * elf/dl-open.c (dl_open_worker): Declare l in 2 different
8513         smaller scopes.
8514         * elf/dl-dst.h (DL_DST_REQ_STATIC): Add l as macro argument.
8515         (DL_DST_REQUIRED): Adjust user.
8516
8517         * include/dlfcn.h (struct link_map): New forward decl.
8518
8519         * inet/getnameinfo.c: Include stddef.h.
8520         (getnameinfo): Use offsetof.
8521
8522         * time/tst-mktime2.c (do_test): Don't rely on signed wrap.
8523
8524         * stdio-common/vfprintf.c (_itoa): Undef before redefining.
8525
8526         * string/strerror_l.c: Include stdlib.h.
8527
8528         * configure.in (libc_cv_gnu89_inline): Test for -fgnu89-inline.
8529         * config.make.in (gnu89-inline-CFLAGS): New variable.
8530         * Makeconfig (CFLAGS): Use $(gnu89-inline-CFLAGS) together with
8531         -std=gnu99.
8532         * misc/sys/cdefs.h (__extern_inline, __extern_always_inline): Define.
8533         * argp/argp.h: Use it.
8534         * bits/mathinline.h: Likewise.
8535         * bits/sigset.h: Likewise.
8536         * bits/string.h: Likewise.
8537         * ctype/ctype.h: Likewise.
8538         * hurd/hurd.h: Likewise.
8539         * hurd/hurd/fd.h: Likewise.
8540         * hurd/hurd/port.h: Likewise.
8541         * hurd/hurd/signal.h: Likewise.
8542         * hurd/hurd/threadvar.h: Likewise.
8543         * hurd/hurd/userlink.h: Likewise.
8544         * io/sys/stat.h: Likewise.
8545         * libio/bits/stdio.h: Likewise.
8546         * libio/bits/stdio2.h: Likewise.
8547         * mach/lock-intern.h: Likewise.
8548         * mach/mach/mig_support.h: Likewise.
8549         * math/bits/cmathcalls.h: Likewise.
8550         * posix/bits/unistd.h: Likewise.
8551         * socket/bits/socket2.h: Likewise.
8552         * stdlib/bits/stdlib.h: Likewise.
8553         * stdlib/stdlib.h: Likewise.
8554         * string/argz.h: Likewise.
8555         * string/bits/string2.h: Likewise.
8556         * string/bits/string3.h: Likewise.
8557         * sysdeps/alpha/fpu/bits/mathinline.h: Likewise.
8558         * sysdeps/generic/inttypes.h: Likewise.
8559         * sysdeps/generic/machine-lock.h: Likewise.
8560         * sysdeps/generic/machine-sp.h: Likewise.
8561         * sysdeps/i386/fpu/bits/mathinline.h: Likewise.
8562         * sysdeps/i386/i486/bits/string.h: Likewise.
8563         * sysdeps/ia64/fpu/bits/mathinline.h: Likewise.
8564         * sysdeps/mach/alpha/machine-lock.h: Likewise.
8565         * sysdeps/mach/alpha/machine-sp.h: Likewise.
8566         * sysdeps/mach/i386/machine-lock.h: Likewise.
8567         * sysdeps/mach/powerpc/machine-lock.h: Likewise.
8568         * sysdeps/mach/powerpc/machine-sp.h: Likewise.
8569         * sysdeps/powerpc/fpu/bits/mathinline.h: Likewise.
8570         * sysdeps/s390/bits/string.h: Likewise.
8571         * sysdeps/s390/fpu/bits/mathinline.h: Likewise.
8572         * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
8573         * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Likewise.
8574         * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
8575         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
8576         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Likewise.
8577         * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
8578         * wcsmbs/bits/wchar2.h: Likewise.
8579         * wcsmbs/wchar.h: Likewise.
8580         * stdlib/gmp.h: Likewise.  Include <features.h> to get
8581         __extern_inline definition.
8582
8583 2007-03-15  Jakub Jelinek  <jakub@redhat.com>
8584
8585         * locale/programs/ld-ctype.c (find_translit): Return NULL if ctype is
8586         NULL.
8587
8588         [BZ #3919]
8589         * math/libm-test.inc (log_test): Test -Inf and NaN.
8590         (log10_test, log1p_test, log2_test): Test -Inf.
8591         * sysdeps/i386/fpu/e_log.S (__ieee754_log): Don't raise
8592         FE_INVALID when argument is qNaN.
8593         * sysdeps/i386/fpu/e_logl.S (__ieee754_logl): Likewise.
8594         * sysdeps/i386/fpu/e_logf.S (__ieee754_logf): Likewise.
8595         * sysdeps/x86_64/fpu/e_logl.S (__ieee754_logl): Likewise.
8596         * sysdeps/x86_64/fpu/e_log10l.S (__ieee754_log10l): Replace
8597         andb $1, %ah with testb $1, %ah, don't test for parity, instead
8598         testb $4, %ah and jump if non-zero.
8599         * sysdeps/x86_64/fpu/e_log2l.S (__ieee754_log2l): Likewise.
8600         * sysdeps/x86_64/fpu/s_log1pl.S (__log1pl): Likewise.
8601
8602         [BZ #4101]
8603         * argp/argp-help.c (hol_cluster_cmp): Fix comparisons used to find
8604         ancestors with the same depths.
8605         Patch by Niels Moeller <nisse@lysator.liu.se>.
8606         (filter_doc): Don't crash if argp is NULL.
8607         * argp/Makefile (tests): Add tst-argp2.
8608         * argp/tst-argp2.c: New test.
8609
8610         [BZ #4130]
8611         * login/utmp_file.c (setutent_file): Use O_LARGEFILE for
8612         open_not_cancel_2.
8613         (updwtmp_file): Likewise.
8614
8615         [BZ #4181]
8616         * inet/inet6_opt.c (add_padding): Only insert padding if npad > 0.
8617         (inet6_opt_append): Don't check extlen is big enough if extbuf
8618         is NULL.
8619         (inet6_opt_finish): Likewise.
8620         * inet/Makefile (tests): Add test-inet6_opt.
8621         * inet/test-inet6_opt.c: New test.
8622
8623         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Never
8624         reallocate the buffer, instead fail for MSG_TRUNC or for EBUSY
8625         NLMSG_ERR.  Instead use a page sized buffer.
8626         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Use page sized
8627         buffer.
8628
8629 2007-03-14  Richard Henderson  <rth@redhat.com>
8630
8631         * sysdeps/alpha/fpu/s_llround.c: New file.
8632         * sysdeps/alpha/fpu/s_llroundf.c: New file.
8633         * sysdeps/alpha/fpu/s_lround.c: New file.
8634         * sysdeps/alpha/fpu/s_lroundf.c: New file.
8635         * sysdeps/alpha/fpu/s_round.c: New file.
8636         * sysdeps/alpha/fpu/s_roundf.c: New file.
8637         * sysdeps/alpha/fpu/s_trunc.c: New file.
8638         * sysdeps/alpha/fpu/s_truncf.c: New file.
8639
8640         * sysdeps/alpha/fpu/s_ceil.c: Rewrite without branches.
8641         * sysdeps/alpha/fpu/s_ceilf.c: Likewise.
8642         * sysdeps/alpha/fpu/s_floor.c: Likewise.
8643         * sysdeps/alpha/fpu/s_floorf.c: Likewise.
8644         * sysdeps/alpha/fpu/s_rint.c: Likewise.
8645         * sysdeps/alpha/fpu/s_rintf.c: Likewise.
8646
8647         * sysdeps/alpha/fpu/s_fmax.S: New file.
8648         * sysdeps/alpha/fpu/s_fmaxf.S: New file.
8649         * sysdeps/alpha/fpu/s_fmin.S: New file.
8650         * sysdeps/alpha/fpu/s_fminf.S: New file.
8651         * sysdeps/alpha/fpu/s_isnan.c: New file.
8652         * sysdeps/alpha/fpu/s_isnanf.c: New file.
8653         * sysdeps/alpha/fpu/s_llrint.c: New file.
8654         * sysdeps/alpha/fpu/s_llrintf.c: New file.
8655         * sysdeps/alpha/fpu/s_lrint.c: New file.
8656         * sysdeps/alpha/fpu/s_lrintf.c: New file.
8657         * sysdeps/alpha/fpu/s_nearbyint.c: New file.
8658         * sysdeps/alpha/fpu/s_nearbyintf.c: New file.
8659
8660         * sysdeps/alpha/fpu/bits/mathinline.h (__floorf, __floor): Remove.
8661         (__fdimf, fdimf, __fdim, fdim): Remove.
8662         (__signbitf, __signbit, __signbitl): Use gcc builtin if available.
8663         (__isnanf, __isnan, __isnanl): New.
8664
8665 2007-03-13  Richard Henderson  <rth@redhat.com>
8666
8667         * sysdeps/ieee754/ldbl-128/Makefile: New file.
8668
8669 2007-03-13  Richard Henderson  <rth@redhat.com>
8670
8671         * sysdeps/alpha/Makefile (sysdep-CFLAGS): Force dynamic rounding.
8672         * sysdeps/alpha/fpu/bits/mathinline.h (__signbitl): New.
8673         * sysdeps/alpha/fpu/libm-test-ulps: Regenerate.
8674         * sysdeps/unix/sysv/linux/alpha/alphaev6/fpu/Implies: New file.
8675         * sysdeps/unix/sysv/linux/alpha/alphaev67/fpu/Implies: New file.
8676         * sysdeps/unix/sysv/linux/alpha/fpu/Implies: New file.
8677
8678 2007-03-13  Richard Henderson  <rth@redhat.com>
8679
8680         * elf/dl-support.c (_dl_aux_init): Honor DL_PLATFORM_AUXV.
8681         * sysdeps/unix/sysv/linux/alpha/dl-auxv.h: New file.
8682         * sysdeps/unix/sysv/linux/alpha/dl-support.c: New file.
8683         * sysdeps/unix/sysv/linux/alpha/dl-sysdep.c (__libc_alpha_cache_shape):
8684         Move to dl-auxv.h; initialize instead of extern weak.
8685         (DL_PLATFORM_AUXV): Move to dl-auxv.h; don't test for undef
8686         weak symbol.
8687         * sysdeps/unix/sysv/linux/alpha/sysconf.c (__libc_alpha_cache_shape):
8688         Extern instead of initialized.
8689
8690 2007-03-13  Richard Henderson  <rth@redhat.com>
8691
8692         * sysdeps/unix/sysv/linux/alpha/sigsuspend.S: Add support for
8693         __sigsuspend_nocancel.
8694
8695 2007-03-06  Ulrich Drepper  <drepper@redhat.com>
8696
8697         * sysdeps/posix/getaddrinfo.c (get_scope): Correct test for
8698         172.16/12 address range.
8699
8700 2007-03-02  Jakub Jelinek  <jakub@redhat.com>
8701
8702         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Retry with
8703         a new netlink socket if NLMSG_ERR -EBUSY is seen after some MSG_TRUNC
8704         message.
8705
8706 2007-03-01  Jakub Jelinek  <jakub@redhat.com>
8707
8708         [BZ #4069]
8709         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Check for NaN
8710         earlier.
8711         * math/libm-test.inc (pow_test): Add more tests involving NaNs.
8712
8713         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Avoid invalid exception
8714         for x qNaN and y either +-inf or non-integer value.
8715         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Likewise.
8716         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.
8717         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
8718
8719 2007-02-10  Mike Frysinger  <vapier@gentoo.org>
8720
8721         * sysdeps/unix/sysv/linux/sh/Makefile: Remove sys/io.h
8722         from sysdep_headers.
8723
8724 2007-02-28  Jakub Jelinek  <jakub@redhat.com>
8725
8726         * time/tzfile.c (find_transition): Instead of a linear search try to
8727         guess the transition index, use a linear search if the result is at
8728         most 10 transitions away from the guess or binary search otherwise.
8729
8730 2007-02-27  Jakub Jelinek  <jakub@redhat.com>
8731
8732         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Fix
8733         memory reallocation.
8734
8735 2007-02-21  Ulrich Drepper  <drepper@redhat.com>
8736
8737         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Add branch predictions
8738         and fix some typos.
8739         Optimize use of TOLOWER.
8740
8741         [BZ #3325]
8742         * sysdeps/i386/fpu/e_fmodf.S: Revert last changes, keep using fprem.
8743         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
8744         * sysdeps/i386/fpu/e_fmod.S: Likewise.
8745
8746         [BZ #3458]
8747         * sysdeps/unix/sysv/linux/posix_madvise.c: New file.
8748         * sysdeps/unix/sysv/linux/syscalls.list: Remove posix_madvise entry.
8749
8750         [BZ #4076]
8751         * io/ftw.c (ftw_startup): Handle special case of FTW_CHDIR in /.
8752         (open_dir_stream): Likewise.
8753         * io/Makefile (tests): Add bug-ftw5.
8754         * io/bug-ftw5.c: New file.
8755
8756         * nscd/hstcache.c (cache_addhst): Remove unnecessary conditional.
8757         * nscd/servicescache.c (cache_addserv): Likewise.
8758
8759         * nscd/grpcache.c (cache_addgr): In case a record changed on
8760         refresh, adjust key_copy.
8761
8762         [BZ #4074]
8763         * nscd/pwdcache.c (cache_addpw): In case a record changed on
8764         refresh, adjust key_copy.
8765
8766         [BZ #4070]
8767         * stdio-common/printf_fp.c (___printf_fp): Handle a few more
8768         special cases.
8769         * stdio-common/tfformat.c (sprint_doubles): Some more tests.
8770
8771 2007-02-19  Ulrich Drepper  <drepper@redhat.com>
8772
8773         * stdio-common/printf_fp.c (___printf_fp): Cleanups and minor
8774         optimization.
8775
8776         * stdio-common/vfscanf.c: Small cleanups throughout.
8777
8778 2007-02-18  Ulrich Drepper  <drepper@redhat.com>
8779
8780         [BZ #3325]
8781         * sysdeps/i386/fpu/e_fmodf.S: Use fprem1 instead of fprem.
8782         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
8783         * sysdeps/i386/fpu/e_fmod.S: Likewise.
8784         Patch by Jared Casper <jaredcasper@gmail.com>.
8785
8786         * sysdeps/unix/closedir.c: Outside libc don't use locking.
8787         * sysdeps/unix/opendir.c: Likewise.
8788         * sysdeps/unix/readdir.c: Likewise.
8789
8790         [BZ #2211]
8791         * stdio-common/vfscanf.c: Handle localized digits etc for floating
8792         point numbers.
8793         Patch mostly by Hamed Malek <hamed@farsiweb.info>.
8794
8795         * stdio-common/vfscanf.c: Fix problems in width accounting.
8796         * stdio-common/tst-sscanf.c (double_tests): New tests.
8797         (main): Hook them up.
8798
8799         * stdio-common/vfscanf.c: Remove unused WIDTH handling.
8800         More simplifications of floating-point reader.
8801
8802         * stdio-common/Makefile (tests): Add tst-swscanf.
8803         * stdio-common/tst-sscanf.c: Make tests usable for swscanf
8804         testing.
8805         * stdio-common/tst-swscanf.c: New file.
8806
8807 2007-02-17  Ulrich Drepper  <drepper@redhat.com>
8808
8809         [BZ #2633]
8810         * libio/stdio.h: Define struct _IO_FILE in global namespace.
8811         * setjmp/setjmp.h: Define __jmp_buf_tag in global namespace.
8812         Remove using for __jmp_buf_tag.
8813         * locale/locale.h (struct lconv): Also define in std namespace.
8814         * wcsmbs/wchar.h: Move using declaration for tm out of namespace.
8815
8816         [BZ #3842]
8817         * sysdeps/posix/euidaccess.c [_LIBC] (euidaccess): Remove shortcut
8818         using __libc_enable_secure.
8819
8820         [BZ #3818]
8821         * sysdeps/unix/sysv/linux/sys/acct.h (struct acct_v3): Define.
8822
8823         [BZ #3745]
8824         * locale/programs/ld-collate.c (handle_ellipsis): Fix generation
8825         of names for ellipsises.
8826
8827         [BZ #3348]
8828         * malloc/memusage.sh: Cleanups.
8829         * debug/xtrace.sh: Quoting and trap changes.
8830
8831 2007-02-16  Ulrich Drepper  <drepper@redhat.com>
8832
8833         * locale/iso-3166.def: Add Jersey, Guernsey, and Isle Of Man entries.
8834
8835         * locale/iso-3166.def: Update entry for Serbia.
8836         * locale/iso-4217.def: Define RSD, remove CSD.
8837
8838         * sysdeps/x86_64/bits/atomic.h: One more change, this time for 16-
8839         and 64-bit operations.
8840
8841         [BZ #4040]
8842         * sysdeps/i386/i486/bits/atomic.h: One more change, this time for
8843         16-bit operations.
8844
8845         * nscd/nscd.c (parse_opt): One more conversion to use send instead
8846         of writev.
8847
8848 2007-02-15  Ulrich Drepper  <drepper@redhat.com>
8849
8850         [BZ #3991]
8851         * assert/assert.h (assert): Simplify.
8852         (assert_perror): Likewise.
8853         Patch by Israel G. Lugo <ilugo@bridonsecurity.com>.
8854
8855         * nscd/nscd_helper.c (open_socket): Don't send padding bytes from
8856         reqdata.
8857
8858         * sysdeps/unix/sysv/linux/x86_64/send.c (__libc_send): Cosmetic
8859         change: don't pass NULL in place of an integer.
8860
8861 2007-02-02  Bruno Haible  <bruno@clisp.org>
8862
8863         [BZ #3954]
8864         * iconvdata/ksc5601.c (__ksc5601_sym_to_ucs, __ksc5601_sym_from_ucs):
8865         Add mapping for U+327E.
8866         * iconvdata/ksc5601.h (KSC5601_SYMBOL): Increment.
8867         * iconvdata/johab.c (BODY for FROM_LOOP, BODY for TO_LOOP): Enable
8868         mapping of 0xD9 0xE8.
8869         * iconvdata/uhc.c (BODY for FROM_LOOP, BODY for TO_LOOP): Disable
8870         mapping of U+327E.
8871         Reported by Jungshik Shin <jungshik@google.com>.
8872
8873         [BZ #3955]
8874         * iconvdata/johab.c (BODY for FROM_LOOP, BODY for TO_LOOP): Enable
8875         mapping of 0xD9 0xE6 and of 0xD9 0xE7.
8876         Reported by Jungshik Shin <jungshik@google.com>.
8877
8878 2007-02-14  Ulrich Drepper  <drepper@redhat.com>
8879
8880         * sysdeps/x86_64/bits/atomic;h: Fix asm parameters for some
8881         byte variants.
8882
8883         [BZ #4040]
8884         * sysdeps/i386/i486/bits/atomic.h: Fix asm parameters for some
8885         byte variants.  Patch mostly be tom@tommay.net.
8886
8887 2007-02-14  Jakub Jelinek  <jakub@redhat.com>
8888
8889         [BZ #3996]
8890         * posix/glob.c (attribute_hidden): Define if not defined.
8891         (glob): Unescape dirname, filename or username when needed and not
8892         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
8893         is NULL.  Handle unescaped [ in pattern without closing ].
8894         Don't pass GLOB_CHECK down to recursive glob for directories.
8895         (__glob_pattern_type): New function.
8896         (__glob_pattern_p): Implement using __glob_pattern_type.
8897         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
8898         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
8899         Remove unreachable code.
8900         * posix/globtest.sh: Add a couple of new tests.
8901
8902 2007-02-13  Ulrich Drepper  <drepper@redhat.com>
8903
8904         * po/ru.po: Update from translation team.
8905
8906 2007-02-12  Jakub Jelinek  <jakub@redhat.com>
8907
8908         * sysdeps/i386/bits/byteswap.h (__bswap_32): Add __amdfam10__
8909         to the list of i486+ CPUs.
8910         * sysdeps/x86_64/bits/byteswap.h (__bswap_32): Likewise.
8911
8912 2007-02-12  Ulrich Drepper  <drepper@redhat.com>
8913
8914         * elf/rtld.c (RESOLVE_MAP): Always return bootstrap_map reference.
8915         * elf/Makefile ($(objpfx)ld.so): Check that ld.so has no undefined
8916         references.
8917
8918 2007-02-09  Ulrich Drepper  <drepper@redhat.com>
8919
8920         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Remove incorrect comment.
8921
8922         * resolv/res_init.c (res_setoptions): Recognize edns0 option.
8923         * resolv/res_mkquery.c: Define __res_nopt.
8924         * resolv/res_query.c (__libc_res_nquery): If RES_USE_EDNS0 is set
8925         try adding EDNS0 record.
8926         * resolv/res_send.c (send_dg): If request failed with FORMERR and
8927         EDNS0 record was send make sure we don't try it again.
8928         * resolv/resolv.h: Define RES_F_EDNS0ERR and RES_USE_EDNS0.
8929         * include/resolv.h: Declare __res_nopt.
8930
8931 2007-02-08  Jakub Jelinek  <jakub@redhat.com>
8932
8933         [BZ #3944]
8934         * time/strptime_l.c (__strptime_internal): Set have_mon for
8935         %b/%B/%h.  Set have_mon and have_mday if tm_mon and tm_mday
8936         have been computed from tm_yday and tm_year.  Don't crash
8937         in day_of_the_week or day_of_the_year if not have_mon
8938         and tm_mon contains bogus value.
8939         * time/Makefile (tests): Add tst-strptime3.
8940         * time/tst-strptime3.c: New test.
8941
8942 2007-02-05  Jakub Jelinek  <jakub@redhat.com>
8943
8944         [BZ #3957]
8945         * posix/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
8946         bit for RE_HAT_LISTS_NOT_NEWLINE.
8947         (build_charclass_op): Remove bogus comment.
8948         * posix/Makefile (tests): Add bug-regex27 and bug-regex28.
8949         * posix/bug-regex27.c: New test.
8950         * posix/bug-regex28.c: New test.
8951
8952 2007-02-03  Ulrich Drepper  <drepper@redhat.com>
8953
8954         * po/sv.po: Update from translation team.
8955
8956 2007-02-02  Ulrich Drepper  <drepper@redhat.com>
8957
8958         * nscd/nscd_helper.c (open_socket): Minor size optimization.
8959
8960 2007-02-02  Jakub Jelinek  <jakub@redhat.com>
8961
8962         * include/locale.h (__uselocale): Add libc_hidden_proto.
8963         * locale/uselocale.c (__uselocale): Add libc_hidden_def.
8964
8965         * nscd/nscd_helper.c (open_socket): Use __gettimeofday instead of
8966         gettimeofday.
8967
8968 2007-02-01  Ulrich Drepper  <drepper@redhat.com>
8969
8970         * sysdeps/unix/sysv/linux/i386/sysdep.h (PTR_MANGLE): Roll value before
8971         returning.
8972         (PTR_DEMANGLE): Real definition now that it's not the same as
8973         PRT_MANGLE anymore.
8974         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
8975
8976         * string/strerror_l.c: New file.
8977         * string/Makefile (routines): Add strerror_l.
8978         * string/string.h: Declare strerror_l.
8979         * string/Versions: Export strerror_l for GLIBC_2.6.
8980
8981 2007-01-31  Ulrich Drepper  <drepper@redhat.com>
8982
8983         * nscd/nscd_helper.c (open_socket): Now takes request type and key
8984         as parameter.  Construct request record.  Try sending request
8985         before the first poll use, it usually succeeds.  Adjust all
8986         callers.
8987         * nscd/nscd-client.h: Define MAXKEYLEN.
8988         * nscd/connections.c (nscd_run): Don't define MAXKEYLEN here.
8989
8990 2007-01-31  Jakub Jelinek  <jakub@redhat.com>
8991
8992         * nscd/nscd-client.h (__nscd_cache_search): Remove const qualifier
8993         from return value.
8994         * nscd/nscd_helper.c: Include string.h.
8995         (__nscd_cache_search): Remove const qualifier from return value.
8996         On strict alignment architectures check hash entry and data head
8997         alignment.
8998         * nscd/nscd_getpw_r.c (nscd_getpw_r): Don't crash or fail because
8999         mmapped data during GC cycle contains garbage.  If
9000         __nscd_drop_map_ref fails, decrement mapped->counter when returning
9001         error or if retrying with NO_MAPPING, only __nscd_unmap if counter
9002         dropped to 0.
9003         * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
9004         * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
9005         * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
9006         * nscd/nscd_getai.c (__nscd_getai): Likewise.
9007         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
9008
9009 2007-01-30  Ulrich Drepper  <drepper@redhat.com>
9010
9011         * misc/hsearch_r.c (hdestroy_r): Remove unnecessary test.
9012
9013 2007-01-26  Ulrich Drepper  <drepper@redhat.com>
9014
9015         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Use register
9016         names not numbers in cfi_*.
9017
9018 2007-01-26  Andreas Jaeger  <aj@suse.de>
9019
9020         * sysdeps/unix/sysv/linux/sys/personality.h (ADDR_NO_RANDOMIZE,
9021         ADDR_LIMIT_3GB, PER_LINUX_32BIT, PER_LINUX32_3GB): Add.
9022         Correct values of PER_HPUX and PER_OSF4.
9023
9024 2007-01-24  Ulrich Drepper  <drepper@redhat.com>
9025
9026         * elf/dl-minimal.c: Undefine _itoa first.
9027         * stdio-common/_itoa.h: Define _itoa and _fitoa for 64-bit platforms.
9028         * malloc/mtrace.c: Revert last change.
9029         * posix/wordexp.c: Likewise.
9030
9031 2007-01-24  Jakub Jelinek  <jakub@redhat.com>
9032
9033         * sysdeps/i386/bits/byteswap.h (__bswap_32): Add __nocona__, __core2__
9034         and __geode__ to the list of i486+ CPUs.
9035         * sysdeps/x86_64/bits/byteswap.h (__bswap_32): Likewise.
9036
9037 2007-01-23  Ulrich Drepper  <drepper@redhat.com>
9038
9039         * stdio-common/_itoa.c: Include <limits.h>.
9040         * stdio-common/_itowa.c: Likewise.
9041
9042 2007-01-22  Ulrich Drepper  <drepper@redhat.com>
9043
9044         * stdio-common/_itowa.c: Don't compile _itowa for 64-bit
9045         platforms.
9046         * stdio-common/_itoa.c: Don't compile in _itoa and _fitoa for
9047         64-bit platforms.
9048         * malloc/mtrace.c (tr_where): Use _fitoa_word instead of _fitoa if
9049         possible.
9050         * posix/wordexp.c (parse_arith): Use _itoa_word instead of _itoa
9051         if possible.
9052
9053         [BZ #3902]
9054         * stdio-common/_itoa.c (_itoa): Make sure at least a zero is emitted.
9055         * stdio-common/Makefile (tests): Add bug17.
9056         * stdio-common/bug17.c: New file.
9057
9058 2007-01-19  Ulrich Drepper  <drepper@redhat.com>
9059
9060         * iconvdata/brf.c: New file.
9061         * iconvdata/testdata/BRF: New file.
9062         * iconvdata/testdata/BRF..UTF8: New file.
9063         Contributed by Samuel Thibault <samuel.thibault@ens-lyon.org>.
9064         * iconvdata/Makefile: Add rules to build BRF.
9065         * iconvdata/TESTS: Add BRF entry.
9066         * iconvdata/gconv-modules: Likewise.
9067         * iconvdata/tst-tables.sh: Likewise.
9068
9069 2007-01-18  Anton Nikishaev  <anton.nik@gmail.com>
9070
9071         * wcsmbs/wchar.h (wcstoll): Fix comment, function returns value of
9072         type `long long int', not `long int'.
9073         (wcstoq): Likewise.
9074
9075 2007-01-18  Ulrich Drepper  <drepper@redhat.com>
9076
9077         * scripts/gen-as-const.awk: Add cast to long to avoid int promotion
9078         of values on 64-bit platforms which are too large.
9079
9080 2007-01-12  Steven Munroe  <sjmunroe@us.ibm.com>
9081             Joe Kerian  <jkerian@us.us.ibm.com>
9082
9083         [BZ #2749]
9084         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Include
9085         <math_ldbl_opt.h>.  Remove weak_alias.  Use long_double_symbol macro.
9086         (__copysignl): Use signbit() for comparison.
9087         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Correct parms for
9088         SET_LDOUBLE_WORDS64.
9089
9090         [BZ #2423, #2749]
9091         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Don't include <fenv_libc.h>.
9092         (__ceill): Remove calls to fegetround(), fesetround().
9093         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
9094         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
9095         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
9096
9097 2007-01-17  Jakub Jelinek  <jakub@redhat.com>
9098
9099         * nscd/nscd_getserv_r.c (nscd_getserv_r): Fix pastos.
9100
9101         * sysdeps/unix/sysv/linux/getdents.c (offsetof): Remove.
9102
9103 2007-01-17  Ulrich Drepper  <drepper@redhat.com>
9104
9105         * sysdeps/unix/sysv/linux/fatal-prepare.h: Use PTHFCT_CALL to
9106         demangle pointer.
9107         * csu/libc-start.c: Likewise.
9108
9109 2007-01-16  Ulrich Drepper  <drepper@redhat.com>
9110
9111         * sysdeps/posix/system.c: Remove NO_WAITPID support, it cannot
9112         really work anyway.
9113
9114 2007-01-15  Ulrich Drepper  <drepper@redhat.com>
9115
9116         * nscd/connections.c (servinfo): Renamed to reqinfo.  Change all
9117         users.
9118         (handle_request): Remove unnecessary tests.
9119
9120         * nscd/cache.c (cache_add): Record the failure to add to the cache.
9121
9122 2007-01-15  Jakub Jelinek  <jakub@redhat.com>
9123
9124         * soft-fp/op-common.h (FP_TRUNC): When truncating a NaN, clear
9125         workbits in semi-raw fraction.
9126
9127         * math/test-misc.c: Add new tests.
9128
9129 2007-01-14  Steven Munroe  <sjmunroe@us.ibm.com>
9130
9131         * math/basic-test.c: Include test-skeleton.c.
9132         (TEST_TRUNC): Define.
9133         (truncdfsf_test, trunctfsf_test, trunctfdf_test): New.
9134         (main): Rename to ...
9135         (do_test): ...this.  Run new tests.
9136         (TEST_FUNCTION): Define.
9137
9138 2006-10-05  Steven Munroe  <sjmunroe@us.ibm.com>
9139             Joe Kerian  <jkerian@us.us.ibm.com>
9140
9141         [BZ #2749]
9142         * soft-fp/op-4.h (__FP_FRAC_SUB_3, __FP_FRAC_SUB_4): Correct borrow
9143         handling for high words.
9144         * soft-fp/op-common.h (_FP_OVERFLOW_SEMIRAW): Always set inexact
9145         and overflow for infinity.
9146
9147 2007-01-15  Ulrich Drepper  <drepper@redhat.com>
9148
9149         * nscd/connections.c (handle_request): Add a __builtin_expect.
9150
9151         * nscd/connections.c (serv2db): Change type into structure which
9152         also says whether this is a request for data.  Renamed to
9153         servinfo.  All users changed.
9154         (handle_request): Much simpler test whether we should search the cache.
9155
9156         * nscd/connections.c (handle_request): Fix thinko in selinux test
9157         invocation.
9158
9159         * sysdeps/generic/ldsodefs.h: Define DL_LOOKUP_SCOPE_LOCK.
9160         * elf/dl-lookup.c (add_dependency): If scope map is locked, unlock
9161         it before getting dl_load_lock and then relock.
9162         (_dl_lookup_symbol_x): Pass flags to add_dependency.
9163         When rerunning _dl_lookup_symbol_x, compute symbol_scope again in
9164         case we unlocked the scope.
9165         * elf/dl-runtime.c (_dl_fixup): Pass DL_LOOKUP_SCOPE_LOCK to
9166         _dl_lookup_symbol_x in case we locked the scope.
9167         (_dl_profile_fixup): Likewise.
9168         * elf/dl-sym.c (do_sym): In flags passed to call_dl_lookup, also
9169         set DL_LOOKUP_SCOPE_LOCK.
9170
9171 2007-01-13  Ulrich Drepper  <drepper@redhat.com>
9172
9173         * inet/Makefile: Define CFLAGS-getsrvbynm_r.c and
9174         CFLAGS-getsrvbynpt_r.c.
9175         * nscd/getsrvbynm_r.c: New file.
9176         * nscd/getsrvbypt_r.c: New file.
9177         * nscd/nscd_getserv_r.c: New file.
9178         * nscd/servicescache.c: New file.
9179         * nscd/Makefile (routines): Add nscd_getserv_r.
9180         (nscd-modules): Add getsrvbynm_r, getsrvbypt_r, and servicescache.
9181         Define CFLAGS-servicescache.c, CFLAGS-getsrvbynm_r.c, and
9182         CFLAGS-getsrvbypt_r.c.
9183         * nscd/cache.c (prune_cache): Rewrite to get re-add function from
9184         table.  Add entries for services database.
9185         * nscd/connections.c (serv2str): Mark as const.  Add entries for
9186         services database.
9187         (dbs): Add .reset_res and servdb initialization.
9188         (serv2db): Add entries for services database.
9189         (verify_persistent_db): Accept dbnr == servdb.
9190         (invalidate_cache): Rewrite database name recognition to use a table.
9191         Call res_init() if .reset_res is set for database.
9192         (handle_request): Add code to handle services database.
9193         * nscd/gai.c: Don't define __getservbyname_r.
9194         * nscd/nscd-client.h (request_type): Remove LASTDBREQ, add
9195         GETSERVBYNAME, GETSERVBYPORT, GETFDSERV.
9196         (serv_response_header): Define.
9197         (struct datahead): Add serv_response_header member.
9198         * nscd/nscd.c (parse_opt): Rewrite parsing of -i parameter value
9199         using table.
9200         * nscd/nscd.conf: Add entries for services database.
9201         * nscd/nscd.h: Adjust declaration of dbnames and serv2str.
9202         Declare serv_iov_disabled.
9203         Declare addservbyname, readdservbyname, addservbyport, and
9204         readdservbyport.
9205         * nscd/nscd_conf.c (dbnames): Mark as const.  Add services entry.
9206         (find_db): Fix error message.
9207         * nscd/nscd_proto.h: Declare __nss_not_use_nscd_services,
9208         __nscd_getservbyname_r, and __nscd_getservbyport_r.
9209         * nscd/selinux.c (perms): Add entries for services database.
9210         * nss/Versions: Export __nss_services_lookup with GLIBC_PRIVATE.
9211         * nss/nsswitch.c (__nss_disable_nscd): Also disable services database.
9212
9213         * nscd/grpcache.c: Remove obsolete code.  Cleanups.
9214         * nscd/hstcache.c: Likewise.
9215         * nscd/pwdcache.c: Likewise.
9216
9217         * nis/nss_nis/nis-service.c (_nss_nis_getservbyname_r): Correct
9218         computation of keylen.
9219
9220         * include/string.h: Only redefine strndupa if this is really for
9221         libc code.
9222
9223 2007-01-12  Ulrich Drepper  <drepper@redhat.com>
9224
9225         * nscd/nscd_gethst_r.c: Minor cleanups.
9226
9227         * nscd/connections.c (handle_request): Check selinux permissions
9228         for all non-admin commands.
9229
9230         * sysdeps/i386/i486/bits/atomic.h: Define
9231         atomic_compare_and_exchange_val_acq,
9232         atomic_compare_and_exchange_bool_acq, and atomic_exchange_and_add
9233         using __sync_* built-ins for gcc >= 4.1.
9234         * sysdeps/x86_64/bits/atomic.h: Likewise.
9235
9236         [BZ #3840]
9237         * scripts/check-local-headers.sh: Restrict to testing .o.d, .os.d,
9238         and .oS.d files.
9239
9240 2007-01-05  Steven Munroe  <sjmunroe@us.ibm.com>
9241
9242         * stdlib/tst-makecontext.c: Include errno.h.  Change main()
9243         to do_test().  Define TEST_FUNCTION. Include test-skeleton.c.
9244         (do_test): Check errno and exit(0) if ENOSYS.
9245
9246 2007-01-11  Jakub Jelinek  <jakub@redhat.com>
9247
9248         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix handling of multi-byte
9249         thousands separators.
9250         * stdlib/Makefile: Add rules to build and run tst-strtod4.
9251         * stdlib/tst-strtod4.c: New test.
9252
9253         [BZ #3855]
9254         * stdlib/strtod_l.c (____STRTOF_INTERNAL): 0x. not followed by
9255         hexadecimal digit should accept just the initial 0.
9256         * stdlib/tst-strtod2.c (tests): New variable.
9257         (do_test): Run several tests rather than just one.
9258
9259 2007-01-11  Jakub Jelinek  <jakub@redhat.com>
9260
9261         * sysdeps/i386/soft-fp/sfp-machine.h: Remove.
9262         * sysdeps/x86_64/soft-fp/sfp-machine.h: Likewise.
9263
9264 2007-01-10  Ulrich Drepper  <drepper@redhat.com>
9265
9266         * io/fts.c: Make sure fts_cur is always valid after return from
9267         fts_read.
9268         Patch by Miloslav Trmac <mitr@redhat.com>.
9269
9270 2006-10-27  Richard Sandiford  <richard@codesourcery.com>
9271
9272         * elf/elf.h (R_MIPS_GLOB_DAT): Define.
9273         (R_MIPS_NUM): Bump by 1.
9274
9275 2007-01-03  Jakub Jelinek  <jakub@redhat.com>
9276
9277         * posix/execvp.c: Include alloca.h.
9278         (allocate_scripts_argv): Renamed to...
9279         (scripts_argv): ... this.  Don't allocate buffer here nor count
9280         arguments.
9281         (execvp): Use alloca if possible.
9282         * posix/Makefile: Add rules to build and run tst-vfork3 test.
9283         * posix/tst-vfork3.c: New test.
9284
9285 2007-01-03  Ulrich Drepper  <drepper@redhat.com>
9286
9287         * string/Makefile (tst-strxfrm2-ENV): Define.
9288         * stdlib/Makefile (tst-strtod3-ENV): Define.
9289
9290 2007-01-02  Ulrich Drepper  <drepper@redhat.com>
9291
9292         * posix/getconf.c: Update copyright year.
9293         * nss/getent.c: Likewise.
9294         * iconv/iconvconfig.c: Likewise.
9295         * iconv/iconv_prog.c: Likewise.
9296         * elf/ldconfig.c: Likewise.
9297         * catgets/gencat.c: Likewise.
9298         * csu/version.c: Likewise.
9299         * elf/ldd.bash.in: Likewise.
9300         * elf/sprof.c (print_version): Likewise.
9301         * locale/programs/locale.c: Likewise.
9302         * locale/programs/localedef.c: Likewise.
9303         * nscd/nscd.c (print_version): Likewise.
9304         * debug/xtrace.sh: Likewise.
9305         * malloc/memusage.sh: Likewise.
9306         * malloc/mtrace.pl: Likewise.
9307         * debug/catchsegv.sh: Likewise.
9308
9309 2006-12-24  Ulrich Drepper  <drepper@redhat.com>
9310
9311         * malloc/malloc.c (sYSMALLOc): Remove some unnecessary alignment
9312         attempts.
9313
9314 2006-12-23  Ulrich Drepper  <drepper@redhat.com>
9315
9316         * posix/wordexp.c: Remove some unnecessary tests.
9317
9318 2006-12-22  Gavin Romig-Koch  <gavin@redhat.com>
9319
9320         * nis/nss_compat/compat-grp.c (internal_getgrgid_r): Don't
9321         blacklist the group till after we look it up.
9322
9323 2006-12-21  Ulrich Drepper  <drepper@redhat.com>
9324
9325         * include/atomic.h (atomic_forced_read): New macro.
9326
9327 2006-12-20  SUGIOKA Toshinobu  <sugioka@itonet.co.jp>
9328
9329         * sysdeps/unix/sysv/linux/sh/bits/shm.h: New file.
9330
9331 2006-12-19  Jakub Jelinek  <jakub@redhat.com>
9332
9333         * nss/getXXbyYY_r.c: Include atomic.h.
9334         (INTERNAL (REENTRANT_NAME)): Write startp after start_fct,
9335         add atomic_write_barrier () in between.
9336
9337         * stdlib/Makefile (tests): Add tst-makecontext.
9338         * stdlib/tst-makecontext.c: New test.
9339
9340         * sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S
9341         (__makecontext): Don't realign uc_mcontext.uc_regs.
9342
9343 2006-11-28  Jakub Jelinek  <jakub@redhat.com>
9344
9345         * elf/dl-support.c: Include dl-procinfo.h.
9346         * sysdeps/powerpc/dl-procinfo.h (PPC_PLATFORM_POWER4,
9347         PPC_PLATFORM_PPC970, PPC_PLATFORM_POWER5, PPC_PLATFORM_POWER5_PLUS,
9348         PPC_PLATFORM_POWER6, PPC_PLATFORM_CELL_BE, PPC_PLATFORM_POWER6X):
9349         Define.
9350         (_dl_string_platform): Use PPC_PLATFORM_* macros instead of
9351         hardcoded constants.
9352         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_platform): Use
9353         PPC_PLATFORM_* macros for array designators.
9354
9355 2006-11-11  Steven Munroe  <sjmunroe@us.ibm.com>
9356
9357         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add 3 new cap
9358         names to the beginning.
9359         (_dl_powerpc_platforms): Add "power6x".
9360         * sysdeps/powerpc/dl-procinfo.h (_DL_HWCAP_FIRST): Decrease.
9361         (HWCAP_IMPORTANT): Add PPC_FEATURE_HAS_DFP.
9362         (_DL_PLATFORMS_COUNT): Increase.
9363         (_dl_string_platform): Handle power6x case.
9364         * sysdeps/powerpc/sysdep.h (PPC_FEATURE_PA6T, PPC_FEATURE_HAS_DFP,
9365         PPC_FEATURE_POWER6_EXT): Define.
9366         (PPC_FEATURE_POWER5, PPC_FEATURE_POWER5_PLUS): Correct Comment.
9367
9368 2006-12-18  Jakub Jelinek  <jakub@redhat.com>
9369
9370         [BZ #3747]
9371         * stdlib/jrand48_r.c (__jrand48_r): Make sure result is in the
9372         [-2^31 .. 2^31) range.
9373         * stdlib/tst-rand48.c (main): Fix expected values for 64-bit
9374         targets.
9375         * stdlib/tst-rand48-2.c: New test.
9376         * stdlib/Makefile (tests): Add tst-rand48-2.
9377
9378 2006-12-14  Jakub Jelinek  <jakub@redhat.com>
9379
9380         * misc/tst-pselect.c (do_test): Fix sigblock argument.
9381
9382 2006-12-14  Ulrich Drepper  <drepper@redhat.com>
9383
9384         * misc/tst-pselect.c (do_test): Make sure the helper process is
9385         terminating when the test is aborted.
9386
9387 2006-12-13  Ulrich Drepper  <drepper@redhat.com>
9388
9389         * sysdeps/unix/sysv/linux/bits/statvfs.h: Define ST_RELATIME.
9390         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
9391         Handle relatime mount option.
9392
9393         [BZ #2337]
9394         * libio/Makefile (tests): Add tst-setvbuf1.
9395         * libio/tst-setvbuf1.c: New file.
9396
9397 2006-12-08  Jakub Jelinek  <jakub@redhat.com>
9398
9399         [BZ #2337]
9400         * libio/genops.c (__uflow): Fix a typo.
9401         * libio/wfiledoalloc.c (_IO_wfile_doallocate): Don't stat
9402         nor set _IO_LINE_BUF bit here.  Size the wide buffer based on
9403         the narrow buffer size.
9404
9405 2006-11-24  Jakub Jelinek  <jakub@redhat.com>
9406
9407         [BZ #2337]
9408         * libio/libio.h (_IO_FLAGS2_USER_WBUF): Define.
9409         * libio/wgenops.c (_IO_wsetb, _IO_wdefault_finish): Test and set
9410         _IO_FLAGS2_USER_WBUF bit in _flags2 instead of _IO_USER_BUF bit
9411         in _flags.
9412         * libio/wstrops.c (_IO_wstr_overflow, enlarge_userbuf,
9413         _IO_wstr_finish): Likewise.
9414         * libio/wmemstream.c (open_wmemstream): Likewise.
9415         * libio/fileops.c (_IO_new_file_close_it): Call _IO_set[bgp]
9416         even for wide streams.
9417
9418 2006-12-13  Jakub Jelinek  <jakub@redhat.com>
9419
9420         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: Include
9421         kernel-features.h.
9422
9423 2006-12-11  Ulrich Drepper  <drepper@redhat.com>
9424
9425         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Parse thousand
9426         separators also if no non-zero digits found.
9427         * stdlib/Makefile (tests): Add tst-strtod3.
9428
9429 2006-12-09  Ulrich Drepper  <drepper@redhat.com>
9430
9431         [BZ #3632]
9432         * include/features.h: Fix comment about default value for
9433         _POSIX_C_SOURCE.
9434
9435         [BZ #3664]
9436         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix test to recognize
9437         empty parsed strings.
9438         * stdlib/Makefile (tests): Add tst-strtod2.
9439         * stdlib/tst-strtod2.c: New file.
9440
9441         [BZ #3673]
9442         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix exp_limit
9443         computation.
9444         * stdlib/Makefile (tests): Add tst-atof2.
9445         * stdlib/tst-atof2.c: New file.
9446
9447         [BZ #3674]
9448         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Adjust exponent value
9449         correctly if removing trailing zero of hex-float.
9450         * stdlib/Makefile (tests): Add tst-atof1.
9451         * stdlib/tst-atof1.c: New file.
9452
9453 2006-12-09  Jakub Jelinek  <jakub@redhat.com>
9454
9455         * misc/mntent_r.c (__hasmntopt): Check p[optlen] even when p == rest.
9456         Start searching for next comma at p rather than rest.
9457         * misc/Makefile (tests): Add tst-mntent2.
9458         * misc/tst-mntent2.c: New test.
9459
9460         * misc/getusershell.c (initshells): Check for integer overflows.
9461         Make strings buffer one bigger as fgets always succeeds when second
9462         argument is 1.  Don't use calloc for shells array.  Disallow
9463         / as shell.
9464
9465 2006-12-08  Ulrich Drepper  <drepper@redhat.com>
9466
9467         * malloc/memusage.c: Handle realloc with new size of zero and
9468         non-NULL pointer correctly.
9469         (me): Really write first record twice.
9470         (struct entry): Make format bi-arch safe.
9471         (dest): Write out more realloc statistics.
9472         * malloc/memusagestat.c (struct entry): Make format bi-arch safe.
9473
9474 2006-12-05  Jakub Jelinek  <jakub@redhat.com>
9475
9476         * nis/nis_subr.c (nis_getnames): Revert last change.
9477
9478 2006-12-04  Jakub Jelinek  <jakub@redhat.com>
9479
9480         * sysdeps/unix/sysv/linux/ttyname.c: Include termios.h.
9481         (ttyname): Use tcgetattr instead of isatty, don't set errno to ENOTTY.
9482         * sysdeps/unix/sysv/linux/ttyname_r.c: Include termios.h.
9483         (__ttyname_r): Use tcgetattr instead of isatty, don't set errno to
9484         ENOTTY.
9485         * io/Makefile: Add rules to build and run tst-ttyname_r test.
9486         * io/tst-ttyname_r.c: New test.
9487
9488 2006-12-03  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
9489
9490         * sysdeps/unix/sysv/linux/sh/sys/io.h: Removed.
9491
9492 2006-11-30  H.J. Lu  <hongjiu.lu@intel.com>
9493
9494         * sysdeps/i386/i686/memcmp.S: Use jump table as the base of
9495         jump table entries.
9496
9497 2006-11-30  Jan Kratochvil  <jan.kratochvil@redhat.com>
9498
9499         * sysdeps/unix/sysv/linux/i386/clone.S: Provide CFI for the outermost
9500         `clone' function to ensure proper unwinding stop of gdb.
9501         * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
9502
9503 2006-12-01  Ulrich Drepper  <drepper@redhat.com>
9504
9505         * nscd/nscd.init: Remove obsolete and commented-out -S option
9506         handling.
9507
9508 2006-11-23  Jakub Jelinek  <jakub@redhat.com>
9509
9510         [BZ #3514]
9511         * manual/string.texi (strncmp): Fix pastos from wcscmp description.
9512
9513         [BZ #3515]
9514         * manual/string.texi (strtok): Remove duplicate paragraph.
9515
9516 2006-12-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
9517
9518         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Fix compatibility with
9519         libgcc not supporting `rflags' unwinding (register # >= 17).
9520
9521 2006-11-30  Jakub Jelinek  <jakub@redhat.com>
9522
9523         * sunrpc/svc_run.c (svc_run): Set my_pollfd to new_pollfd if realloc
9524         succeeded.
9525
9526 2006-11-29  Daniel Jacobowitz  <dan@codesourcery.com>
9527             Jakub Jelinek  <jakub@redhat.com>
9528             Jan Kratochvil  <jan.kratochvil@redhat.com>
9529
9530         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (restore_rt): Add correct
9531         unwind information.
9532         * sysdeps/unix/sysv/linux/x86_64/Makefile: Provide symbols for
9533         'restore_rt' even in the 'signal' directory.
9534         * sysdeps/unix/sysv/linux/x86_64/ucontext_i.sym: Extend the regs list.
9535
9536 2006-11-27  Jakub Jelinek  <jakub@redhat.com>
9537
9538         [BZ #3559]
9539         * sunrpc/svc_run.c (svc_run): Fail instead of segfaulting if
9540         malloc crashed.  Don't allocate memory unnecessarily in each
9541         loop.
9542
9543 2006-10-21  Jakub Jelinek  <jakub@redhat.com>
9544
9545         * resolv/mapv4v6addr.h (map_v4v6_address): Fix last change.
9546
9547 2006-11-20  Ulrich Drepper  <drepper@redhat.com>
9548
9549         * resolv/mapv4v6addr.h (map_v4v6_address): Optimize a bit.
9550
9551 2006-11-18  Bruno Haible  <bruno@clisp.org>
9552
9553         * sysdeps/unix/sysv/linux/i386/getgroups.c (__getgroups): Invoke
9554         __sysconf only after having tried to call getgroups32.
9555
9556 2006-11-19  Ulrich Drepper  <drepper@redhat.com>
9557
9558         * nss/nss_files/files-hosts.c (LINE_PARSER): Support IPv6-style
9559         addresses for IPv4 queries if they can be mapped.
9560
9561 2006-11-16  Jakub Jelinek  <jakub@redhat.com>
9562
9563         * sysdeps/x86_64/fpu/s_copysignf.S (__copysignf): Switch to .text.
9564         * sysdeps/x86_64/fpu/s_copysign.S (__copysign): Likewise.
9565         (signmask): Add .size directive.
9566         (othermask): Add .type directive.
9567
9568 2006-11-14  Ulrich Drepper  <drepper@redhat.com>
9569
9570         * po/nl.po: Update from translation team.
9571
9572         * timezone/zdump.c: Redo fix for BZ #3137.
9573
9574 2006-11-14  Jakub Jelinek  <jakub@redhat.com>
9575
9576         * nss/nss_files/files-alias.c (get_next_alias): Set line back
9577         to first_unused after parsing :include: file.
9578
9579 2006-11-10  Ulrich Drepper  <drepper@redhat.com>
9580
9581         * timezone/africa: Update from tzdata2006o.
9582         * timezone/antarctica: Likewise.
9583         * timezone/asia: Likewise.
9584         * timezone/australasia: Likewise.
9585         * timezone/backward: Likewise.
9586         * timezone/europe: Likewise.
9587         * timezone/iso3166.tab: Likewise.
9588         * timezone/northamerica: Likewise.
9589         * timezone/southamerica: Likewise.
9590         * timezone/zone.tab: Likewise.
9591
9592         * time/tzfile.c (__tzfile_read): Extend to handle new file format
9593         on machines with 64-bit time_t.
9594
9595         * timezone/checktab.awk: Update from tzcode2006o.
9596         * timezone/ialloc.c: Likewise.
9597         * timezone/private.h: Likewise.
9598         * timezone/scheck.c: Likewise.
9599         * timezone/tzfile.h: Likewise.
9600         * timezone/tzselect.ksh: Likewise.
9601         * timezone/zdump.c: Likewise.
9602         * timezone/zic.c: Likewise.
9603
9604         [BZ #3483]
9605         * elf/ldconfig.c (main): Call setlocale and textdomain.
9606         Patch mostly by Benno Schulenberg <bensberg@justemail.net>.
9607
9608         [BZ #3480]
9609         * manual/argp.texi: Fix typos.
9610         * manual/charset.texi: Likewise.
9611         * manual/errno.texi: Likewise.
9612         * manual/filesys.texi: Likewise.
9613         * manual/lang.texi: Likewise.
9614         * manual/maint.texi: Likewise.
9615         * manual/memory.texi: Likewise.
9616         * manual/message.texi: Likewise.
9617         * manual/resource.texi: Likewise.
9618         * manual/search.texi: Likewise.
9619         * manual/signal.texi: Likewise.
9620         * manual/startup.texi: Likewise.
9621         * manual/stdio.texi: Likewise.
9622         * manual/sysinfo.texi: Likewise.
9623         * manual/syslog.texi: Likewise.
9624         * manual/time.texi: Likewise.
9625         Patch by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
9626
9627         [BZ #3465]
9628         * sunrpc/clnt_raw.c: Minimal message improvements.
9629         * sunrpc/pm_getmaps.c: Likewise.
9630         * nis/nss_nisplus/nisplus-publickey.c: Likewise.
9631         * nis/nis_print_group_entry.c: Likewise.
9632         * locale/programs/repertoire.c: Likewise.
9633         * locale/programs/charmap.c: Likewise.
9634         * malloc/memusage.sh: Likewise.
9635         * elf/dl-deps.c: Likewise.
9636         * locale/programs/ld-collate.c: Likewise.
9637         * libio/vswprintf.c: Likewise.
9638         * malloc/memusagestat.c: Likewise.
9639         * sunrpc/auth_unix.c: Likewise.
9640         * sunrpc/rpc_main.c: Likewise.
9641         * nscd/cache.c: Likewise.
9642         * locale/programs/repertoire.c: Unify output messages.
9643         * locale/programs/charmap.c: Likewise.
9644         * locale/programs/ld-ctype.c: Likewise.
9645         * locale/programs/ld-monetary.c: Likewise.
9646         * locale/programs/ld-numeric.c: Likewise.
9647         * locale/programs/ld-time.c: Likewise.
9648         * elf/ldconfig.c: Likewise.
9649         * nscd/selinux.c: Likewise.
9650         * elf/cache.c: Likewise.
9651         Patch mostly by Benno Schulenberg <bensberg@justemail.net>.
9652
9653         [BZ #3451]
9654         * sysdeps/i386/fpu/bits/mathinline.h (floor): Make rounding mode
9655         change atomic.
9656         (ceil): Likewise.
9657
9658 2006-11-10  Jakub Jelinek  <jakub@redhat.com>
9659
9660         * string/strxfrm_l.c (STRXFRM): Fix trailing \1 optimization
9661         if N is one bigger than return value.
9662         * string/tst-strxfrm2.c (do_test): Also test strxfrm with l1 + 1
9663         and l1 last arguments, if buf is defined, verify the return value
9664         equals to strlen (buf) and verify no byte beyond passed length
9665         is modified.
9666
9667 2006-11-10  Ulrich Drepper  <drepper@redhat.com>
9668
9669         * po/sv.po: Update from translation team.
9670
9671 2006-11-09  Ulrich Drepper  <drepper@redhat.com>
9672
9673         * sysdeps/unix/sysv/linux/x86_64/sysconf.c (intel_check_word): Add
9674         noinline attribute.
9675
9676 2006-11-10  Jakub Jelinek  <jakub@redhat.com>
9677
9678         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Add
9679         noinline attribute.
9680
9681         * sysdeps/gnu/siglist.c (__old_sys_siglist, __old_sys_sigabbrev):
9682         Use __new_sys_siglist instead of _sys_siglist_internal as
9683         second macro argument.
9684         (_old_sys_siglist): Use declare_symbol_alias macro instead of
9685         strong_alias.
9686
9687 2006-11-09  Ulrich Drepper  <drepper@redhat.com>
9688
9689         [BZ #3493]
9690         * posix/unistd.h (sysconf): Remove const attribute.
9691
9692         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Fix test for
9693         temporary or deprecated addresses.
9694         Patch by Sridhar Samudrala <sri@us.ibm.com>.
9695
9696         * string/Makefile (tests): Add tst-strxfrm2.
9697         * string/tst-strxfrm2.c: New file.
9698
9699 2006-10-09  Jakub Jelinek  <jakub@redhat.com>
9700
9701         * elf/dl-debug.c (_dl_debug_initialize): Check r->r_map for 0
9702         rather than r->r_brk.
9703
9704 2006-11-08  Jakub Jelinek  <jakub@redhat.com>
9705
9706         * string/strxfrm_l.c (STRXFRM): Do the trailing \1 removal
9707         optimization even if needed > n.
9708
9709         * elf/dl-load.c (decompose_rpath): Return bool rather than void.
9710         If l->l_name is on inhibit_rpath list, set sps->dirs to -1 and
9711         return false, otherwise return true.
9712         (cache_rpath): Return decompose_rpath return value.
9713
9714 2006-11-07  Jakub Jelinek  <jakub@redhat.com>
9715
9716         * include/libc-symbols.h (declare_symbol): Rename to...
9717         (declare_symbol_alias): ... this.  Add ORIGINAL argument, imply
9718         strong_alias (ORIGINAL, SYMBOL) in asm to make sure it preceedes
9719         .size directive.
9720         * sysdeps/gnu/errlist-compat.awk: Adjust for declare_symbol_alias
9721         changes.
9722         * sysdeps/gnu/siglist.c: Likewise.
9723
9724 2006-11-03  Steven Munroe  <sjmunroe@us.ibm.com>
9725
9726         * sysdeps/powerpc/fpu/bits/mathinline.h
9727         [__LIBC_INTERNAL_MATH_INLINES]: Moved to ...
9728         * sysdeps/powerpc/fpu/math_private.h: ...here.  New file.
9729
9730 2006-11-05  Ulrich Drepper  <drepper@redhat.com>
9731
9732         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
9733         Update handling of cache descriptor 0x49 for new models.
9734         * sysdeps/unix/sysv/linux/x86_64/sysconf.c (intel_check_word):
9735         Likewise.
9736
9737 2006-11-02  Jakub Jelinek  <jakub@redhat.com>
9738
9739         * malloc/memusage.c (dest): Reset not_me back to false after
9740         printing statistics.
9741
9742 2006-11-02  Ulrich Drepper  <drepper@redhat.com>
9743
9744         * configure.in: Work around ld --help change and avoid -z relro
9745         test completely if the architecture doesn't care about security.
9746
9747 2006-11-01  Ulrich Drepper  <drepper@redhat.com>
9748
9749         * po/sv.po: Update from translation team.
9750
9751 2006-10-31  Ulrich Drepper  <drepper@redhat.com>
9752
9753         * stdlib/atexit.c (atexit): Don't mark as hidden when used to
9754         generate compatibility version.
9755
9756 2006-10-29  Ulrich Drepper  <drepper@redhat.com>
9757
9758         * configure.in: Relax -z relro requirement a bit.
9759
9760         * po/sv.po: Update from translation team.
9761
9762 2006-10-29  Jakub Jelinek  <jakub@redhat.com>
9763
9764         * elf/dl-sym.c (do_sym): Use RTLD_SINGLE_THREAD_P.
9765         * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Likewise.
9766         * elf/dl-close.c (_dl_close_worker): Likewise.
9767         * elf/dl-open.c (_dl_open_worker): Likewise.
9768         * sysdeps/generic/sysdep-cancel.h (RTLD_SINGLE_THREAD_P): Define.
9769
9770 2006-10-27  Ulrich Drepper  <drepper@redhat.com>
9771
9772         * configure.in: Require assembler support for visibility, compiler
9773         support for visibility and aliases, linker support for various -z
9774         options.
9775         * Makeconfig: Remove conditional code which now is unnecessary.
9776         * config.h.in: Likewise.
9777         * config.make.in: Likewise.
9778         * dlfcn/Makefile: Likewise.
9779         * elf/Makefile: Likewise.
9780         * elf/dl-load.c: Likewise.
9781         * elf/rtld.c: Likewise.
9782         * include/libc-symbols.h: Likewise.
9783         * include/stdio.h: Likewise.
9784         * io/Makefile: Likewise.
9785         * io/fstat.c: Likewise.
9786         * io/fstat64.c: Likewise.
9787         * io/fstatat.c: Likewise.
9788         * io/fstatat64.c: Likewise.
9789         * io/lstat.c: Likewise.
9790         * io/lstat64.c: Likewise.
9791         * io/mknod.c: Likewise.
9792         * io/mknodat.c: Likewise.
9793         * io/stat.c: Likewise.
9794         * io/stat64.c: Likewise.
9795         * libio/stdio.c: Likewise.
9796         * nscd/Makefile: Likewise.
9797         * stdlib/Makefile: Likewise.
9798         * stdlib/atexit.c: Likewise.
9799         * sysdeps/generic/ldsodefs.h: Likewise.
9800         * sysdeps/i386/dl-machine.h: Likewise.
9801         * sysdeps/i386/sysdep.h: Likewise.
9802         * sysdeps/i386/i686/memcmp.S: Likewise.
9803         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
9804         * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
9805         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
9806
9807         * Makerules: USE_TLS support is now default.
9808         * tls.make.c: Likewise.
9809         * csu/Versions: Likewise.
9810         * csu/libc-start.c: Likewise.
9811         * csu/libc-tls.c: Likewise.
9812         * csu/version.c: Likewise.
9813         * dlfcn/dlinfo.c: Likewise.
9814         * elf/dl-addr.c: Likewise.
9815         * elf/dl-cache.c: Likewise.
9816         * elf/dl-close.c: Likewise.
9817         * elf/dl-iteratephdr.c: Likewise.
9818         * elf/dl-load.c: Likewise.
9819         * elf/dl-lookup.c: Likewise.
9820         * elf/dl-object.c: Likewise.
9821         * elf/dl-open.c: Likewise.
9822         * elf/dl-reloc.c: Likewise.
9823         * elf/dl-support.c: Likewise.
9824         * elf/dl-sym.c: Likewise.
9825         * elf/dl-sysdep.c: Likewise.
9826         * elf/dl-tls.c: Likewise.
9827         * elf/ldconfig.c: Likewise.
9828         * elf/rtld.c: Likewise.
9829         * elf/tst-tls-dlinfo.c: Likewise.
9830         * elf/tst-tls1.c: Likewise.
9831         * elf/tst-tls10.h: Likewise.
9832         * elf/tst-tls14.c: Likewise.
9833         * elf/tst-tls2.c: Likewise.
9834         * elf/tst-tls3.c: Likewise.
9835         * elf/tst-tls4.c: Likewise.
9836         * elf/tst-tls5.c: Likewise.
9837         * elf/tst-tls6.c: Likewise.
9838         * elf/tst-tls7.c: Likewise.
9839         * elf/tst-tls8.c: Likewise.
9840         * elf/tst-tls9.c: Likewise.
9841         * elf/tst-tlsmod1.c: Likewise.
9842         * elf/tst-tlsmod13.c: Likewise.
9843         * elf/tst-tlsmod13a.c: Likewise.
9844         * elf/tst-tlsmod14a.c: Likewise.
9845         * elf/tst-tlsmod2.c: Likewise.
9846         * elf/tst-tlsmod3.c: Likewise.
9847         * elf/tst-tlsmod4.c: Likewise.
9848         * elf/tst-tlsmod5.c: Likewise.
9849         * elf/tst-tlsmod6.c: Likewise.
9850         * include/errno.h: Likewise.
9851         * include/link.h: Likewise.
9852         * include/tls.h: Likewise.
9853         * locale/global-locale.c: Likewise.
9854         * locale/localeinfo.h: Likewise.
9855         * malloc/arena.c: Likewise.
9856         * malloc/hooks.c: Likewise.
9857         * malloc/malloc.c: Likewise.
9858         * resolv/Versions: Likewise.
9859         * sysdeps/alpha/dl-machine.h: Likewise.
9860         * sysdeps/alpha/libc-tls.c: Likewise.
9861         * sysdeps/generic/ldsodefs.h: Likewise.
9862         * sysdeps/generic/tls.h: Likewise.
9863         * sysdeps/i386/dl-machine.h: Likewise.
9864         * sysdeps/ia64/dl-machine.h: Likewise.
9865         * sysdeps/ia64/libc-tls.c: Likewise.
9866         * sysdeps/mach/hurd/fork.c: Likewise.
9867         * sysdeps/mach/hurd/i386/tls.h: Likewise.
9868         * sysdeps/powerpc/powerpc32/dl-machine.c: Likwise.
9869         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
9870         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
9871         * sysdeps/s390/libc-tls.c: Likewise.
9872         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
9873         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
9874         * sysdeps/sh/dl-machine.h: Likewise.
9875         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
9876         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
9877         * sysdeps/x86_64/dl-machine.h: Likewise.
9878
9879         * elf/dl-close.c (_dl_close_worker): Renamed from _dl_close and
9880         split out locking and parameter checking.
9881         (_dl_close): Call _dl_close_worker after locking and checking.
9882         * elf/dl-open.c (_dl_open): Call _dl_close_worker instead of
9883         _dl_close.
9884         * elf/Makefile: Add rules to build and run tst-thrlock.
9885         * elf/tst-thrlock.c:  New file.
9886
9887         [BZ #3426]
9888         * stdlib/stdlib.h: Adjust comment for canonicalize_file_name to
9889         reality.
9890
9891         [BZ #3429]
9892         * elf/dl-open.c (dl_open_worker): Keep holding dl_load_lock until
9893         we are sure we do not need it anymore for _dl_close.  Also move
9894         the asserts inside the lock region.
9895         Patch mostly by Suzuki <suzuki@in.ibm.com>.
9896
9897 2006-10-27  Jakub Jelinek  <jakub@redhat.com>
9898
9899         * elf/dl-lookup.c (_dl_debug_bindings): Remove unused symbol_scope
9900         argument.
9901         (_dl_lookup_symbol_x): Adjust caller.
9902
9903         * sysdeps/generic/ldsodefs.h (struct link_namespaces): Remove
9904         _ns_global_scope.
9905         * elf/rtld.c (dl_main): Don't initialize _ns_global_scope.
9906
9907         * elf/dl-libc.c: Revert l_scope name changes.
9908         * elf/dl-load.c: Likewise.
9909         * elf/dl-object.c: Likewise.
9910         * elf/rtld.c: Likewise.
9911         * elf/dl-close.c (_dl_close): Likewise.
9912         * elf/dl-open.c (dl_open_worker): Likewise.  If not SINGLE_THREAD_P,
9913         always use __rtld_mrlock_{change,done}.  Always free old scope list
9914         here if not l_scope_mem.
9915         * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Revert l_scope name
9916         change.  Never free scope list here.  Just __rtld_mrlock_lock before
9917         the lookup and __rtld_mrlock_unlock it after the lookup.
9918         * elf/dl-sym.c: Likewise.
9919         * include/link.h (struct r_scoperec): Remove.
9920         (struct link_map): Replace l_scoperec with l_scope, l_scoperec_mem
9921         with l_scope_mem and l_scoperec_lock with l_scope_lock.
9922
9923 2006-10-25  Ulrich Drepper  <drepper@redhat.com>
9924
9925         * sysdeps/gnu/netinet/tcp.h: Define TCP_CONGESTION.
9926
9927 2006-10-18  Ulrich Drepper  <drepper@redhat.com>
9928
9929         * configure.in: Disable building profile libraries by default.
9930
9931 2006-10-17  Jakub Jelinek  <jakub@redhat.com>
9932
9933         * sunrpc/xdr_mem.c (xdrmem_setpos): Don't compare addresses
9934         as signed longs, check for x_base + pos overflow.
9935         * sunrpc/Makefile (tests): Add tst-xdrmem2.
9936         * sunrpc/tst-xdrmem2.c: New test.
9937
9938 2006-10-18  Ulrich Drepper  <drepper@redhat.com>
9939
9940         * elf/dl-lookup.c (_dl_lookup_symbol_x): Add warning to
9941         _dl_lookup_symbol_x code.
9942
9943 2006-10-17  Jakub Jelinek  <jakub@redhat.com>
9944
9945         * elf/dl-runtime.c: Include sysdep-cancel.h.
9946         (_dl_fixup, _dl_profile_fixup): Use __rtld_mrlock_* and
9947         scoperec->nusers only if !SINGLE_THREAD_P.  Use atomic_*
9948         instead of catomic_* macros.
9949         * elf/dl-sym.c: Include sysdep-cancel.h.
9950         (do_sym): Use __rtld_mrlock_* and scoperec->nusers only
9951         if !SINGLE_THREAD_P.  Use atomic_* instead of catomic_* macros.
9952         * elf/dl-close.c: Include sysdep-cancel.h.
9953         (_dl_close): Use __rtld_mrlock_* and scoperec->nusers only
9954         if !SINGLE_THREAD_P.  Use atomic_* instead of catomic_* macros.
9955         * elf/dl-open.c: Include sysdep-cancel.h.
9956         (dl_open_worker): Use __rtld_mrlock_* and scoperec->nusers only
9957         if !SINGLE_THREAD_P.  Use atomic_* instead of catomic_* macros.
9958
9959 2006-10-17  Jakub Jelinek  <jakub@redhat.com>
9960
9961         [BZ #3313]
9962         * malloc/malloc.c (malloc_consolidate): Set maxfb to address of last
9963         fastbin rather than end of fastbin array.
9964
9965 2006-10-18  Ulrich Drepper  <drepper@redhat.com>
9966
9967         * sysdeps/i386/i486/bits/atomic.h (catomic_decrement): Use correct
9968         body macro.
9969         * sysdeps/x86_64/bits/atomic.h
9970         (__arch_c_compare_and_exchange_val_64_acq): Add missing casts.
9971         (catomic_decrement): Use correct body macro.
9972
9973 2006-10-17  Jakub Jelinek  <jakub@redhat.com>
9974
9975         * include/atomic.h: Add a unique prefix to all local variables
9976         in macros.
9977         * csu/tst-atomic.c (do_test): Test also catomic_* macros.
9978
9979 2006-10-16  Ulrich Drepper  <drepper@redhat.com>
9980
9981         [BZ #3369]
9982         * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Fix typos in rules 4
9983         and 7.
9984
9985 2006-10-14  Ulrich Drepper  <drepper@redhat.com>
9986
9987         * resolv/arpa/nameser.h: Document that ns_t_a6 is deprecated.
9988
9989 2006-10-13  Ulrich Drepper  <drepper@redhat.com>
9990
9991         [BZ #3313]
9992         * malloc/malloc.c (malloc_consolidate): Don't use get_fast_max to
9993         determine highest fast bin to consolidate, always look into all of
9994         them.
9995         (do_check_malloc_state): Only require for empty bins for large
9996         sizes in main arena.
9997
9998         * libio/stdio.h: Add more __wur attributes.
9999
10000         * elf/dl-minimal.c (realloc): Optimize last patch.
10001
10002 2006-10-12  Richard Sandiford  <richard@codesourcery.com>
10003
10004         [BZ #3352]
10005         * elf/dl-minimal.c (realloc): Let malloc() return a new pointer,
10006         and use memcpy() if it does.
10007
10008 2006-11-12  Andreas Jaeger  <aj@suse.de>
10009
10010         [BZ #2510]
10011         * manual/search.texi (Hash Search Function): Clarify.
10012         (Array Search Function): Clarify.
10013
10014 2006-11-12  Joseph Myers  <joseph@codesourcery.com>
10015
10016         [BZ #2830]
10017         * math/atest-exp.c (main): Cast hex value to mp_limb_t before
10018         shifting.
10019         * math/atest-exp2.c (read_mpn_hex): Likewise.
10020         * math/atest-sincos.c (main): Likewise.
10021
10022 2006-10-11  Ulrich Drepper  <drepper@redhat.com>
10023
10024         * sysdeps/unix/sysv/linux/syscalls.list: Add epoll_pwait.
10025         * sysdeps/unix/sysv/linux/sys/epoll.h: Declare epoll_pwait.
10026         * sysdeps/unix/sysv/linux/Versions (libc): Add epoll_pwait for
10027         version GLIBC_2.6.
10028         * Versions.def: Add GLIBC_2.6 for libc.
10029
10030         * sysdeps/unix/sysv/linux/i386/sysdep.h (DOARGS_6): Fix offset.
10031
10032         * sysdeps/i386/i486/bits/atomic.h: Add catomic_* support.
10033
10034 2006-10-11  Jakub Jelinek  <jakub@redhat.com>
10035
10036         * malloc/malloc.c (_int_malloc): Remove unused any_larger variable.
10037
10038         * nis/nis_defaults.c (__nis_default_access): Don't call getenv twice.
10039
10040         * nis/nis_subr.c (nis_getnames): Use __secure_getenv instead of getenv.
10041         * sysdeps/generic/unsecvars.h: Add NIS_PATH.
10042
10043 2006-10-11  Ulrich Drepper  <drepper@redhat.com>
10044
10045         * include/atomic.c: Define catomic_* operations.
10046         * sysdeps/x86_64/bits/atomic.h: Likewise.  Fix a few minor problems.
10047         * stdlib/cxa_finalize.c: Use catomic_* operations instead of atomic_*.
10048         * malloc/memusage.c: Likewise.
10049         * gmon/mcount.c: Likewise.
10050         * elf/dl-close.c: Likewise.
10051         * elf/dl-open.c: Likewise.
10052         * elf/dl-profile.c: Likewise.
10053         * elf/dl-sym.c: Likewise.
10054         * elf/dl-runtime.c: Likewise.
10055         * elf/dl-fptr.c: Likewise.
10056         * resolv/res_libc.c: Likewise.
10057
10058 2006-10-10  Ulrich Drepper  <drepper@redhat.com>
10059
10060         * nis/nis_subr.c (nis_getnames): Add trailing dot to NIS_PATH
10061         components which lack them.
10062
10063         * nis/nis_subr.c (nis_getnames): Make sure that we always return
10064         at least one entry consisting of the parameter concatenated with
10065         the domain.
10066
10067 2006-10-10  Roland McGrath  <roland@frob.com>
10068
10069         * sysdeps/mach/hurd/utimes.c: Use a union to avoid an improper cast.
10070         * sysdeps/mach/hurd/futimes.c: Likewise.
10071         * sysdeps/mach/hurd/lutimes.c: Likewise.
10072
10073 2006-10-09  Ulrich Drepper  <drepper@redhat.com>
10074             Jakub Jelinek  <jakub@redhat.com>
10075
10076         Implement reference counting of scope records.
10077         * elf/dl-close.c (_dl_close): Remove all scopes from removed objects
10078         from the list in objects which remain.  Always allocate new scope
10079         record.
10080         * elf/dl-open.c (dl_open_worker): When growing array for scopes,
10081         don't resize, allocate a new one.
10082         * elf/dl-runtime.c: Update reference counters before using a scope
10083         array.
10084         * elf/dl-sym.c: Likewise.
10085         * elf/dl-libc.c: Adjust for l_scope name change.
10086         * elf/dl-load.c: Likewise.
10087         * elf/dl-object.c: Likewise.
10088         * elf/rtld.c: Likewise.
10089         * include/link.h: Include <rtld-lowlevel.h>.  Define struct
10090         r_scoperec.  Replace r_scope with pointer to r_scoperec structure.
10091         Add l_scoperec_lock.
10092         * sysdeps/generic/ldsodefs.h: Include <rtld-lowlevel.h>.
10093         * sysdeps/generic/rtld-lowlevel.h: New file.
10094
10095         * include/atomic.h: Rename atomic_and to atomic_and_val and
10096         atomic_or to atomic_or_val.  Define new macros atomic_and and
10097         atomic_or which do not return values.
10098         * sysdeps/x86_64/bits/atomic.h: Define atomic_and and atomic_or.
10099         Various cleanups.
10100         * sysdeps/i386/i486/bits/atomic.h: Likewise.
10101
10102         * po/sv.po: Update from translation team.
10103
10104 2006-10-07  Ulrich Drepper  <drepper@redhat.com>
10105
10106         * Versions.def: Add GLIBC_2.6 to libpthread.
10107
10108         * include/shlib-compat.h (SHLIB_COMPAT): Expand parameters before use.
10109         (versioned_symbol): Likewise.
10110         (compat_symbol): Likewise.
10111
10112         * po/tr.po: Update from translation team.
10113
10114 2006-10-06  Ulrich Drepper  <drepper@redhat.com>
10115
10116         * nis/Banner: Removed.  It's been integral part forever and the
10117         author info is incomplete anyway.
10118         * libio/Banner: Likewise.
10119
10120         * nis/nis_table.c (nis_list): If __follow_path fails in the new
10121         code, make sure the nis_freeresult call doesn't crash and that the
10122         result is reported correctly.
10123
10124 2006-09-27  Jakub Jelinek  <jakub@redhat.com>
10125
10126         * nis/nis_table.c (nis_list): Handle FOLLOW_PATH | ALL_RESULTS
10127         when callback is NULL.
10128
10129         * nis/Versions (libnss_nisplus): Add
10130         _nss_nisplus_initgroups_dyn@@GLIBC_PRIVATE.
10131         * nis/Makefile (libnss_nisplus-routines): Add nisplus-initgroups.
10132         * nis/nss_nisplus/nisplus-grp.c (tablename_val, tablename_len,
10133         _nss_create_tablename): Rename to...
10134         (grp_tablename_val, grp_tablename_len, _nss_grp_create_tablename):
10135         ... these.  No longer static.
10136         (internal_setgrent): Adjust users.
10137         (_nss_nisplus_getgrnam_r, _nss_nisplus_getgrgid_r): Likewise.
10138         Don't use locking around _nss_grp_create_tablename call.
10139         * nis/nss_nisplus/nisplus-initgroups.c: New file.
10140
10141 2006-10-06  Ulrich Drepper  <drepper@redhat.com>
10142
10143         * version.h (VERSION): Bump to 2.5.90 for new development tree.
10144
10145 2006-10-06  Andreas Jaeger  <aj@suse.de>
10146
10147         * include/features.h (__GLIBC_MINOR__): It's glibc 2.5 now.
10148
10149 2006-10-06  Ulrich Drepper  <drepper@redhat.com>
10150
10151         * po/pl.po: Update from translation team.
10152
10153         * nscd/nscd.c (main): Fix typo in message.
10154         Patch by Jakub Bogsz <qboosh@pld-linux.org>.
10155
10156 2006-10-02  Jakub Jelinek  <jakub@redhat.com>
10157
10158         [BZ #3291]
10159         * sysdeps/unix/sysv/linux/sparc/sparc64/pause.c: Include
10160         errno.h, signal.h, unistd.h and sysdep-cancel.h.
10161         (__sigprocmask): Define.
10162
10163 2006-10-02  Ulrich Drepper  <drepper@redhat.com>
10164
10165         * elf/rtld.c (dl_main): Don't use prelinking if LD_DYNAMIC_WEAK is
10166         used.
10167
10168 2006-10-02  Jakub Jelinek  <jakub@redhat.com>
10169
10170         * nscd/mem.c (mempool_alloc): Round array size to 16 bytes
10171         in oldtotal and newtotal calculation.
10172         * nscd/nscd-client.h (struct mapped_database): Add datasize
10173         field.
10174         * nscd/nscd_helper.c (get_mapping): Initialize datasize field.
10175         (__nscd_get_map_ref): Get a new mapping even if mapping's data_size
10176         increased.
10177         (__nscd_cache_search): Add checks to make sure we never reference
10178         data beyond the current mapping.
10179
10180 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
10181
10182         * sysdeps/posix/getaddrinfo.c (match_prefix): Make mask and val
10183         variables const to avoid compiler warnings.
10184
10185         * io/fts.c (fts_close): Remove redundant checks.
10186         (fts_build): Likewise.
10187         (fts_palloc): Likewise.
10188
10189         * manual/message.texi (Advanced gettext functions,
10190         Using gettextized software): Fix typos.
10191
10192 2006-09-30  Ulrich Drepper  <drepper@redhat.com>
10193
10194         * posix/glob.c (glob_in_dir): Add some comments and asserts to
10195         explain why there are no leaks.
10196
10197 2006-09-29  Ulrich Drepper  <drepper@redhat.com>
10198
10199         * libio/wmemstream.c: Include <wchar.h>.
10200         * libio/bug-wmemstream1.c: Likewise.
10201         * libio/tst-wmemstream1.c: Likewise.
10202         * libio/tst-wmemstream2.c: Likewise.
10203
10204         * version.h (RELEASE): Bump to 2.5.
10205         * README: Regenerated.
10206
10207         * locale/iso-3166.def: Add Aaland Islands and Montenegro.
10208
10209         [BZ #3273]
10210         * nscd/nscd_initgroups.c (__nscd_getgrouplist): It is OK to have
10211         found no group members.
10212         Patch by Petr Baudis.
10213
10214 2006-09-29  Jakub Jelinek  <jakub@redhat.com>
10215
10216         * elf/rtld.c (_dl_start_final): If not USE___THREAD, don't
10217         assert bootstrap_map.l_tls_modid is zero.
10218         (_dl_start): Initialize bootstrap_map.l_tls_modid to 0
10219         if USE___THREAD.
10220
10221 2006-09-27  Ulrich Drepper  <drepper@redhat.com>
10222
10223         * libio/stdio.h: Move open_wmemstream prototype to ...
10224         * wcsmbs/wchar.h: ... here.
10225
10226 2006-09-25  Jakub Jelinek  <jakub@redhat.com>
10227
10228         [BZ #3252]
10229         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat): Handle only
10230         fchownat syscall and __ASSUME_LCHOWN_SYSCALL case inline, call
10231         __{,l}chown to handle the rest.
10232         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Handle only
10233         fchownat syscall and __ASSUME_32BITUIDS case inline, call
10234         __{,l}chown to handle the rest.
10235         * sysdeps/unix/sysv/linux/sparc/sparc32/fchownat.c: Include
10236         i386/fchownat.c.
10237         * sysdeps/unix/sysv/linux/s390/s390-32/fchownat.c: Likewise.
10238         * sysdeps/unix/sysv/linux/sh/fchownat.c: Likewise.
10239
10240         [BZ #3253]
10241         * posix/glob.c (glob_in_dir): Don't alloca one struct globlink at a
10242         time, rather allocate increasingly bigger arrays of pointers, if
10243         possible with alloca, if too large with malloc.
10244
10245 2006-09-24  Jakub Jelinek  <jakub@redhat.com>
10246
10247         * sysdeps/powerpc/fpu/libm-test-ulps: Updated.
10248
10249         * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Fix 2 typos.
10250
10251 2006-09-24  Ulrich Drepper  <drepper@redhat.com>
10252
10253         * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Implement rule 4,
10254         home addresses.
10255         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Recognize
10256         IFA_F_HOMEADDRESS flag for interfaces.
10257         * include/ifaddrs.h (struct in6addrinfo): Define
10258         in6ai_homeaddress.
10259
10260 2006-09-21  Jakub Jelinek  <jakub@redhat.com>
10261
10262         [BZ #3225]
10263         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (PTR_MANGLE3,
10264         PTR_DEMANGLE3): Define.
10265         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h (PTR_MANGLE3,
10266         PTR_DEMANGLE3): Likewise.
10267         * sysdeps/powerpc/powerpc32/__longjmp-common.S (__longjmp): Use them.
10268         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp):
10269         Likewise.
10270         * sysdeps/powerpc/powerpc64/__longjmp-common.S (__longjmp): Likewise.
10271
10272 2006-09-20  Jakub Jelinek  <jakub@redhat.com>
10273
10274         * po/libc.pot: Regenerated.
10275         * po/be.po: Updated.
10276         * po/ca.po: Likewise.
10277         * po/cs.po: Likewise.
10278         * po/da.po: Likewise.
10279         * po/de.po: Likewise.
10280         * po/el.po: Likewise.
10281         * po/en_GB.po: Likewise.
10282         * po/es.po: Likewise.
10283         * po/fi.po: Likewise.
10284         * po/fr.po: Likewise.
10285         * po/gl.po: Likewise.
10286         * po/hr.po: Likewise.
10287         * po/hu.po: Likewise.
10288         * po/ja.po: Likewise.
10289         * po/ko.po: Likewise.
10290         * po/nb.po: Likewise.
10291         * po/nl.po: Likewise.
10292         * po/pl.po: Likewise.
10293         * po/pt_BR.po: Likewise.
10294         * po/ru.po: Likewise.
10295         * po/rw.po: Likewise.
10296         * po/sk.po: Likewise.
10297         * po/sv.po: Likewise.
10298         * po/tr.po: Likewise.
10299         * po/zh_CN.po: Likewise.
10300         * po/zh_TW.po: Likewise.
10301
10302         [BZ #3137]
10303         * iconv/iconv_prog.c (main): Fix spelling in error message.
10304         * iconv/iconvconfig.c (main): Likewise.
10305         * locale/programs/ld-collate.c (handle_ellipsis): Likewise.
10306         * locale/programs/ld-ctype.c (charclass_symbolic_ellipsis): Likewise.
10307         * locale/programs/localedef.c (main): Likewise.
10308         * locale/programs/repertoire.c (repertoire_read): Likewise.
10309         * timezone/zdump.c (main): Likewise.
10310         * nscd/connections.c (handle_request): Fix spelling in log message.
10311         Patch by Malcolm Parsons <malcolm.parsons@gmail.com>.
10312
10313 2006-09-20  Ulrich Drepper  <drepper@redhat.com>
10314
10315         * inet/inet6_option.c: Also emit linker warnings for the RFC 2292
10316         interfaces.
10317
10318 2006-09-20  Andreas Jaeger  <aj@suse.de>
10319
10320         * math/libm-test.inc (lrint_test_upward): Fix typo.
10321
10322 2006-06-17  Joseph S. Myers  <joseph@codesourcery.com>
10323
10324         [BZ #2592]
10325         * math/libm-test.inc (lrint_test_tonearest): New function.
10326         (lrint_test_towardzero): New function.
10327         (lrint_test_downward): New function.
10328         (lrint_test_upward): New function.
10329         (main): Run these new tests.
10330         * sysdeps/ieee754/dbl-64/s_llrint.c (__llrint): Correct rounding
10331         of values near to 0.
10332         (two52): Use double not long double.
10333         * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Likewise.
10334         * sysdeps/ieee754/flt-32/s_llrintf.c (__llrintf): Likewise.
10335         (two23): Use float not double.
10336         * sysdeps/ieee754/flt-32/s_lrintf.c (__lrintf): Likewise.
10337         (two23): Use float not double.
10338         * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl): Likewise.
10339         * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Likewise.
10340         * sysdeps/ieee754/ldbl-96/s_llrintl.c (__llrintl): Likewise.
10341         * sysdeps/ieee754/ldbl-96/s_lrintl.c (__lrintl): Likewise.
10342
10343 2006-09-20  Martin Schwidefsky  <schwidefsky@de.ibm.com>
10344
10345         * sysdeps/unix/sysv/linux/s390/s390-32/makecontext.c (__makecontext):
10346         Cast sp to unsigned long to avoid compiler warning.
10347         Use __makecontext_ret function instead of a trampoline on the stack.
10348         (__makecontext_ret): New function.
10349         * sysdeps/unix/sysv/linux/s390/s390-64/makecontext.c: Likewise.
10350
10351 2006-09-19  Jakub Jelinek  <jakub@redhat.com>
10352
10353         * elf/dl-cache.c (HWCAP_CHECK): If _DL_PLATFORMS_COUNT, but
10354         platform == -1, reject any libs with non-zero _DL_HWCAP_PLATFORM
10355         bits.
10356
10357 2006-09-19  Ulrich Drepper  <drepper@redhat.com>
10358
10359         * elf/dl-close.c (_dl_close): If dependency is not unloaded make
10360         sure no reference to the unloaded map's search list remains in the
10361         dependency's scope.
10362
10363 2006-09-16  Jakub Jelinek  <jakub@redhat.com>
10364
10365         * elf/Makefile: Add rules to build and run unload7 test.
10366         * elf/unload7.c: New test.
10367         * elf/unload7mod1.c: New file.
10368         * elf/unload7mod2.c: New file.
10369
10370 2006-09-18  Jakub Jelinek  <jakub@redhat.com>
10371
10372         * sysdeps/unix/sysv/linux/sys/ptrace.h (PT_GETEVENTMSG): Fix pasto.
10373         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h (PTRACE_SETOPTIONS,
10374         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
10375         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h (PTRACE_SETOPTIONS,
10376         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Likewise.
10377         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h (PTRACE_SETOPTIONS,
10378         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Likewise.
10379         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h (PTRACE_SETOPTIONS,
10380         PTRACE_GETEVENTMSG): Likewise.
10381         (PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Change to the arch independent
10382         values.
10383
10384 2006-09-17  Mike Frysinger  <vapier@gentoo.org>
10385
10386         * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_SETOPTIONS,
10387         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
10388         * sysdeps/unix/sysv/linux/ptrace.c (ptrace): Check PTRACE_SETOPTIONS,
10389         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO and PTRACE_SETSIGINFO.
10390
10391 2006-09-16  Jakub Jelinek  <jakub@redhat.com>
10392
10393         * sysdeps/powerpc/powerpc32/register-dump.h (register_dump): Don't
10394         write '\0' to the fd.
10395         * sysdeps/mach/hurd/powerpc/register-dump.h (register_dump): Likewise.
10396         * sysdeps/powerpc/powerpc64/register-dump.h (register_dump): Likewise.
10397         Change regs to unsigned long pointer from unsigned int, fix fscr
10398         offset.
10399
10400 2006-09-14  Jakub Jelinek  <jakub@redhat.com>
10401
10402         * io/Makefile (CFLAGS-fstatat.c): Set.
10403         (CFLAGS-fstatat64.c): Likewise.
10404         (CFLAGS-mknodat.c): Likewise.
10405
10406         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Comment fixes.
10407         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
10408         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Rewritten.
10409         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Rewritten.
10410
10411 2006-09-14  Jakub Jelinek  <jakub@redhat.com>
10412             Steven Munroe  <sjmunroe@us.ibm.com>
10413
10414         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add 4 new cap
10415         names to the beginning.  Rename "cell" to "cellbe".
10416         (_dl_powerpc_platforms): New.
10417         * sysdeps/powerpc/dl-procinfo.h (_DL_HWCAP_FIRST): Decrease.
10418         (HWCAP_IMPORTANT): Remove power{4,5,5+} and cell.
10419         (_DL_PLATFORMS_COUNT, _DL_FIRST_PLATFORM): Define.
10420         (_DL_HWCAP_PLATFORM): Define to new mask.
10421         (_dl_platform_string, _dl_string_platform): New functions.
10422         * sysdeps/powerpc/sysdep.h (PPC_FEATURE_BOOKE, PPC_FEATURE_SMT,
10423         PPC_FEATURE_ICACHE_SNOOP, PPC_FEATURE_ARCH_2_05): Define.
10424
10425 2006-09-12  Jakub Jelinek  <jakub@redhat.com>
10426
10427         [BZ #2526]
10428         * README.libm: Fix a thinko in sqrt algorithm description.
10429
10430         [BZ #3143]
10431         * manual/string.texi (argz_delete): Fix prototype.
10432         Patch by <alpt@freaknet.org>.
10433
10434 2006-08-26  Joseph Myers  <joseph@codesourcery.com>
10435
10436         [BZ #3138]
10437         * io/test-lfs.c (do_prepare): Give name_len type size_t.
10438         * io/tst-fcntl.c (do_prepare): Likewise.
10439         * posix/tst-exec.c (do_prepare): Likewise.
10440         * posix/tst-preadwrite.c (do_prepare): Likewise.
10441         * posix/tst-spawn.c (do_prepare): Likewise.
10442         * posix/tst-truncate.c (do_prepare): Likewise.
10443         * rt/tst-aio.c (do_prepare): Likewise.
10444         * rt/tst-aio64.c (do_prepare): Likewise.
10445         * stdlib/test-canon2.c (do_prepare): Give test_dir_len type
10446         size_t.
10447
10448 2006-09-09  Ulrich Drepper  <drepper@redhat.com>
10449
10450         [BZ #2821]
10451         * time/mktime.c (guess_time_tm): Fix overflow detection.
10452         * time/Makefile (tests): Add bug-mktime1.
10453         * time/bug-mktime1.c: New file.
10454
10455         [BZ #3189, #3188]
10456         * misc/sys/mman.h (remap_file_pages): Make available for _GNU_SOURCE.
10457         (mremap): Likewise.
10458
10459 2006-09-07  Jakub Jelinek  <jakub@redhat.com>
10460
10461         [BZ #1006]
10462         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela):
10463         Ensure relocation doesn't clobber any bits outside of the
10464         immediate field for R_SPARC_TLS_LE_HIX22, R_SPARC_WDISP30,
10465         R_SPARC_HI22 and R_SPARC_H44.
10466
10467         [BZ #2775]
10468         * malloc/malloc.c (sYSMALLOc): Only call grow_heap if
10469         (long) (MINSIZE + nb - old_size) is positive.
10470
10471         * malloc/arena.c (grow_heap): When growing bail even if new_size
10472         is negative.
10473
10474         [BZ #3155]
10475         * sysdeps/powerpc/powerpc32/fpu/s_lrint.S (__lrint): Don't access
10476         stack below r1.
10477
10478 2006-09-06  Jakub Jelinek  <jakub@redhat.com>
10479
10480         * posix/regex_internal.c (re_string_reconstruct): Handle
10481         offset < pstr->valid_raw_len && pstr->offsets_needed case.
10482         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
10483         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
10484         re_string_context_at.
10485         * posix/Makefile: Add rules to build and run bug-regex26 test.
10486         * posix/bug-regex26.c: New test.
10487
10488         * locale/programs/ld-collate.c (collate_read): Goto sym_equiv_free
10489         rather than col_sym_free.  Move seqp declaration earlier.
10490
10491         * resolv/gai_suspend.c (gai_suspend): Make sure result is initialized.
10492
10493 2006-09-05  Jakub Jelinek  <jakub@redhat.com>
10494
10495         * nscd/initgrcache.c (addinitgroupsX): Move any_success
10496         decl before first goto out.
10497
10498 2006-09-04  Jakub Jelinek  <jakub@redhat.com>
10499
10500         * Makerules (shlib.lds): If have-hash-style, put .hash section
10501         at the end of the RO segment.
10502
10503 2006-09-04  Ulrich Drepper  <drepper@redhat.com>
10504
10505         * elf/do-lookup.h (do_lookup_x): Initialize symidx in case the new
10506         style hash table format is used.
10507
10508 2006-09-04  Jakub Jelinek  <jakub@redhat.com>
10509
10510         * resolv/res_mkquery.c (res_nmkquery): Set hp->id to statp->id after
10511         randomization rather than before.
10512         * resolv/res_init.c (res_randomid): Don't call gettimeofday here.
10513
10514 2006-08-31  Jakub Jelinek  <jakub@redhat.com>
10515
10516         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Add ld.so.
10517
10518         * malloc/malloc.c (_int_malloc): Use full list insert and not
10519         shortcut which assumes the list is empty for large requests
10520         too.
10521
10522         * elf/tst-addr1.c (do_test): Allow i.dli_sname "_IO_printf".
10523
10524 2006-08-30  Jakub Jelinek  <jakub@redhat.com>
10525
10526         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (splice): Add offin
10527         and offout arguments to the prototype.
10528         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (splice): Likewise.
10529         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h (splice): Likewise.
10530         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (splice): Likewise.
10531         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h (splice): Likewise.
10532         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h (splice): Likewise.
10533         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (splice): Likewise.
10534         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h (splice): Likewise.
10535         * sysdeps/unix/sysv/linux/syscalls.list (splice): Adjust args string.
10536
10537 2006-08-28  Ulrich Drepper  <drepper@redhat.com>
10538
10539         * elf/dl-load.c (_dl_init_paths): Expand DSTs.
10540
10541         * elf/dl-open.c (dl_open_worker): Allow $LIB and $PLATFORM in
10542         dlopen parameters.
10543
10544 2006-08-28  Jakub Jelinek  <jakub@redhat.com>
10545
10546         * inet/getnameinfo.c (getnameinfo): For AF_INET, check errno
10547         only if herrno is NETDB_INTERNAL.  Handle errors other than
10548         ERANGE outside of the loops, handle TRY_AGAIN.
10549
10550         * locale/programs/ld-ctype.c (translit_flatten): Issue error
10551         if other's ctype category was missing.
10552         * locale/programs/ld-collate.c (collate_read): Return if
10553         copy_locale's collate category is missing.
10554
10555 2006-08-27  Ulrich Drepper  <drepper@redhat.com>
10556
10557         [BZ #2684]
10558         * malloc/malloc.c (public_rEALLOc): Try harder by using other
10559         arenas if allocation failed.
10560         Patch mostly by Jan Edler <jan.edler@indexengines.com>.
10561
10562 2006-08-26  Ulrich Drepper  <drepper@redhat.com>
10563
10564         * malloc/malloc.c (bin_at): Rewrite to be more clear and to not
10565         waste bins[0..1].
10566         (malloc_state): Reduce bins size by 2.
10567         (_int_malloc): Fix test for large enough buffer for early termination.
10568         When no unsorted block matches perfectly and an exiting block has
10569         to be split, use full list insert and not shortcut which assumes
10570         the list is empty.
10571
10572         * locale/programs/ld-ctype.c (ctype_read): Better patch for read
10573         failure.
10574
10575 2006-08-24  Ulrich Drepper  <drepper@redhat.com>
10576
10577         * locale/programs/ld-ctype.c (ctype_read): If CTYPE is NULL, don't
10578         do anything.
10579
10580         * sysdeps/generic/ldsodefs.h (DL_ADDR_SYM_MATCH): For undefined
10581         symbol require exact match (these are PLTs).
10582         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ldsodefs.h
10583         (_dl_ppc64_addr_sym_match): Likewise.
10584
10585         [BZ #2683]
10586         * elf/dl-addr.c (_dl_addr): Don't ignore all undefined symbols.
10587         If symbol has a value use it.
10588         * elf/tst-dladdr1.c: New file.
10589         * elf/Makefile: Add rules to build and run tst-addr1.
10590
10591 2006-08-24  Jakub Jelinek  <jakub@redhat.com>
10592
10593         * malloc/malloc.c (sYSMALLOc): Avoid infinite loop if MMAP
10594         keeps failing and heap growth or new heap creation isn't
10595         successful either.
10596         * malloc/tst-malloc.c (main): Add new tests.
10597
10598 2006-08-24  Ulrich Drepper  <drepper@redhat.com>
10599
10600         [BZ #2734]
10601         * sysdeps/i386/bits/byteswap.h (__bswap_32): Use same conditions
10602         as in the x86-64 code to use bswap.
10603
10604 2006-05-21  Joseph S. Myers  <joseph@codesourcery.com>
10605
10606         [BZ #2680]
10607         * posix/unistd.h (getlogin_r): Condition on __USE_POSIX199506, not
10608         __USE_UNIX98.
10609         * posix/bits/unistd.h: Likewise.
10610
10611 2006-05-15  Mike Frysinger  <vapier@gentoo.org>
10612
10613         [BZ #2751]
10614         * string/strchr.c: Add cast to avoid warning.
10615
10616 2006-08-21  Ulrich Drepper  <drepper@redhat.com>
10617
10618         * malloc/malloc.c (DEFAULT_MMAP_THRESHOLD_MAX): For 32-bit
10619         platforms define as 512K.  For 64-bit platforms as 32MB.  The lower
10620         limit is needed to avoid the exploding of the address space
10621         requirement for secondary heaps.
10622         * malloc/arena.c (HEAP_MAX_SIZE): Define using
10623         DEFAULT_MMAP_THRESHOLD_MAX if it is defined.
10624
10625 2006-07-30  Joseph S. Myers  <joseph@codesourcery.com>
10626
10627         [BZ #3018]
10628         * Makerules (depfiles): Handle extra-test-objs the same as
10629         extra-objs.
10630         (common-mostlyclean): Likewise.
10631         * dlfcn/Makefile (extra-objs): Add modules to extra-test-objs
10632         instead.
10633         * elf/Makefile (extra-objs): Likewise.
10634         * stdlib/Makefile (extra-objs): Likewise.
10635
10636 2006-08-14  Eric Blake  <ebb9@byu.net>
10637
10638         [BZ #3044]
10639         * misc/error.h: Assume C89 or better.
10640         * misc/error.c: Likewise.
10641
10642 2006-08-21  Ulrich Drepper  <drepper@redhat.com>
10643
10644         [BZ #3040]
10645         * sysdeps/unix/sysv/linux/openat.c: Fix compilation if
10646         __ASSUME_ATFCTS is defined.
10647
10648 2006-08-19  Ulrich Drepper  <drepper@redhat.com>
10649
10650         * malloc/malloc.c (_int_malloc): Limit number of unsorted blocks
10651         to sort in each call.
10652
10653         * nis/nss_nis/nis-service.c (internal_nis_getservent_r): . If map
10654         is empty simply return and use next service.
10655         * nis/nss_nis/nis-rpc.c (internal_nis_getrpcent_r): Likewise.
10656
10657         * locale/programs/charmap.c (charmap_read): Add new parameter.  It
10658         tells us when not finding a charmap file is an error.
10659         * locale/programs/charmap.h: Adjust charmap_read prototype.
10660         * iconv/iconv_prog.c (main): Tell charmap_read it's no error if we
10661         cannot find a charmap.
10662         * locale/programs/localedef.c (main): Adjust charmap_read call.
10663
10664 2006-08-15  Jakub Jelinek  <jakub@redhat.com>
10665
10666         * sysdeps/unix/sysv/linux/sparc/sparc64/pause.c: Use
10667         sysdeps/posix/pause.c implementation instead.
10668
10669 2006-08-09  Jakub Jelinek  <jakub@redhat.com>
10670
10671         * sysdeps/unix/nice.c (nice): Transform EACCES errno from setpriority
10672         to EPERM.
10673
10674 2006-08-13  Andreas Schwab  <schwab@suse.de>
10675
10676         * sysdeps/powerpc/powerpc32/dl-trampoline.S (_dl_runtime_resolve):
10677         Don't clobber caller's LRSAVE.
10678         (_dl_prof_resolve): Likewise.
10679
10680 2006-08-14  Ulrich Drepper  <drepper@redhat.com>
10681
10682         [BZ #1996]
10683         * libio/memstream.c (open_memstream): Allocate initial buffer with
10684         calloc.
10685         * libio/wmemstream.c (open_wmemstream): Likewise.
10686         * libio/strops.c: Pretty printing.
10687         (_IO_str_overflow): Clear uninitialized part of the new buffer.
10688         (enlarge_userbuf): New function.
10689         (_IO_str_seekoff): Call it if seek position is larger than current
10690         buffer.
10691         * libio/wstrops.c: Likewise.
10692         * libio/vasprintf.c: Add comment as to why we do not have to use
10693         calloc instead of malloc to allocate initial buffer.
10694         * libio/Makefile (tests): Add bug-memstream1 and bug-wmemstream1.
10695         * libio/bug-memstream1.c: New file.
10696         * libio/bug-wmemstream1.c: New file.
10697
10698 2006-08-13  Ulrich Drepper  <drepper@redhat.com>
10699
10700         * libio/wstrops.c: Remove dead macro definitions and comments.
10701         * libio/strops.c: Likewise.
10702
10703         [BZ #2764]
10704         * login/utmpname.c (__utmpname): Remove unnecessary test.
10705
10706 2006-06-08  Joseph Myers  <jsm28@gcc.gnu.org>
10707
10708         [BZ #2832]
10709         * math/gen-libm-test.pl (clean_up_number): Do not remove trailing
10710         0s from integers.
10711
10712 2006-08-13  Ulrich Drepper  <drepper@redhat.com>
10713
10714         [BZ #2987]
10715         * sysdeps/unix/sysv/linux/clock_settime.c: Add code to use syscall
10716         for CPU clocks.
10717         * sysdeps/unix/clock_settime.c: Add support for platform-specific
10718         setting of CPU clocks.
10719
10720 2006-06-23  Paul Eggert  <eggert@cs.ucla.edu>
10721
10722         [BZ #2841]
10723         * sysdeps/generic/stdint.h (UINT8_C, UINT16_C): Don't append 'U',
10724         since C99 requires the result to promote to 'int' when uint_least8_t
10725         and uint_least16_t promote to 'int'.
10726
10727 2006-08-12  Ulrich Drepper  <drepper@redhat.com>
10728
10729         [BZ #3013]
10730         * locale/programs/ld-ctype.c (ctype_output): Adjust alignments, fix
10731         lenght of one output field, correct bitmask creation.
10732         * locale/programs/ld-time.c: Add alignment.
10733
10734         [BZ #2997]
10735         * misc/error.c: Add space between program name and message if file
10736         name is missing.
10737
10738 2006-08-03  Eric Blake  <ebb9@byu.net>
10739
10740         [BZ #2998]
10741         * misc/error.c (error_tail) [_LIBC]: Avoid invalid free.
10742
10743 2006-08-09  Ulrich Drepper  <drepper@redhat.com>
10744
10745         * malloc/memusagestat.c: Silence warnings.
10746
10747         * malloc/malloc.c: Dynamically size mmap treshold if the program
10748         frees mmaped blocks.
10749         Patch by Valerie Henson and Arjan van de Ven.
10750
10751 2006-08-08  Jakub Jelinek  <jakub@redhat.com>
10752
10753         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (O_DIRECT): Protect with
10754         __USE_GNU.
10755
10756         * stdlib/strtol_l.c (__strtol_ul_max_tab, __strtol_ul_rem_tab,
10757         __strtol_ull_max_tab, __strtol_ull_rem_tab): Declare.
10758         (DEF): Don't put the var into .gnu.linkonce.r.* section.
10759         Only provide var definitions in strtol_l (or for *ull*
10760         in strtoll_l).
10761
10762         * stdio-common/bug16.c (tests): New array.
10763         (do_tests): Allow the first hexadecimal digit
10764         to be 1, 2, 4 or 8.  Do 3 additional tests.
10765
10766         * sysdeps/s390/fpu/libm-test-ulps: Update.
10767
10768         * sysdeps/unix/sysv/linux/s390/s390-32/fchownat.c (fchownat): Use
10769         fchownat syscall if available.
10770         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat): Likewise.
10771         * sysdeps/unix/sysv/linux/sh/fchownat.c (fchownat): Likewise.
10772         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Likewise.
10773
10774 2006-08-07  Ulrich Drepper  <drepper@redhat.com>
10775
10776         * nis/nis_xdr.c: Avoid some function calls.
10777
10778 2006-08-07  Jakub Jelinek  <jakub@redhat.com>
10779             Ulrich Drepper  <drepper@redhat.com>
10780
10781         * nis/nis_call.c (rec_dirsearch) [case LOWER_NAME]: Don't take
10782         short cut if only one name component is stripped away.
10783
10784 2006-08-07  Ulrich Drepper  <drepper@redhat.com>
10785
10786         * nis/nis_call.c: Minor cleanups throughout.
10787         (rec_dirsearch) [case HIGHER_NAME]: Correctly size ndomain array.
10788         (first_shoot): Add search_parent_first parameter.  Only if it is set
10789         search parent server first.
10790         If directory for table found through cold start cache is not the same
10791         as referenced in the cache, don't use it.
10792         (__nisfind_server): Take additional parameter.  Pass it on to
10793         first_shoot.
10794         (__prepare_niscall): Adjust __nisfind_server call.
10795         * nis/rpcsvc/nislib.h: Adjust __nisfind_server prototype.
10796         * nis/nis_table.c: Adjust __nisfind_server call.
10797         * nis/nis_lookup.c: Likewise.
10798         (nis_lookup): Don't loop endlessly if name is reduced to ".".
10799
10800 2006-08-03  Ulrich Drepper  <drepper@redhat.com>
10801
10802         [BZ #2182]
10803         * math/s_cacosh.c: Return values from positive branch.
10804         * math/s_cacoshf.c: Likewise.
10805         * math/s_cacoshl.c: Likewise.
10806
10807         [BZ #2883]
10808         * sysvipc/sys/msg.h: Change return value to ssize_t.
10809         * sysdeps/unix/sysv/linux/msgrcv.c: Likewise.
10810         * sysvipc/msgrcv.c: Likewise.
10811         * include/sys/msg.h: Likewise.
10812
10813         * grp/initgroups.c (internal_getgrouplist): Remove unnecessary
10814         test introduced in patch for bz #661.
10815         (getgrouplist): Simplify code a bit.  Don't allocate one additional
10816         element for NEWGROUPS.
10817
10818         [BZ #2908]
10819         * stdio-common/printf_fphex.c (__printf_fphex): When rounding up
10820         'f', use '1' as leading digit not '\1'.
10821         * stdio-common/Makefile (tests): Add bug16.
10822         * stdio-common/bug16.c: New file.
10823
10824         [BZ #2914]
10825         * sysdeps/unix/sysv/linux/gethostid.c: Don't define OLD_HOSTIDFILE
10826         and don't try to open it.  The patch introducing the macro
10827         contained a bug and used the same file name as the new file
10828         instead of using /var/adm/hostid.  Nobody complaint so I'm taking
10829         this out completely.
10830
10831         [BZ #2926]
10832         * assert/assert.h: Move cast to void inside ?: to quiet gcc.
10833         Patch by Jerry James <Jerry.James@usu.edu>.
10834
10835         * rt/Makefile (tests): Add tst-clock2.
10836         * rt/tst-clock2.c: New file.
10837
10838         [BZ #2978]
10839         * resolv/gai_notify.c (__gai_notify_only): Copy memory for thread
10840         function and its parameters and pass it to new thread.
10841         (__gai_notify): Add support for alternative waiting for completion.
10842         * resolv/gai_suspend.c (gai_suspend): Add support for alternative
10843         waiting for completion.
10844         * resolv/getaddrinfo_a.c: Likewise.
10845         * resolv/gai_misc.h (struct waitlist): Don't add cond if alternative
10846         waiting for completion is used.
10847         * resolv/gai_misc.c: Allow overwriting code to start helper thread.
10848         * resolv/gai_cancel.c: Include <gai_misc.h> not "gai_misc.h".
10849         * resolv/gai_error.c: Likewise.
10850         * resolv/gai_sigqueue.c: Likewise.
10851
10852 2006-08-02  Thomas Schwinge  <tschwinge@gnu.org>
10853
10854         * hurd/getdport.c (__getdport): Don't return EBADF; instead set
10855         errno to EBADF and return MACH_PORT_NULL.
10856
10857 2006-06-23  Joseph Myers  <joseph@codesourcery.com>
10858
10859         [BZ #2980]
10860         * posix/Makefile (CFLAGS-waitid.c): Add -fasynchronous-unwind-tables.
10861
10862 2006-08-02  Ulrich Drepper  <drepper@redhat.com>
10863
10864         * elf/dl-addr.c (_dl_addr): If GNU-style hash tables are present,
10865         walk them instead of the symbol table.
10866
10867 2006-08-01  Ulrich Drepper  <drepper@redhat.com>
10868
10869         [BZ #2098]
10870         * nscd/initgrcache.c (addinitgroupsX): Judge successful lookups by
10871         status of NSS calls, not the number of returned entries.
10872
10873         * sysdeps/unix/sysv/linux/syscalls.list: Remove add_key,
10874         request_key, keyctl.
10875
10876 2006-07-31  Ulrich Drepper  <drepper@redhat.com>
10877
10878         * sysdeps/unix/sysv/linux/dl-osinfo.h: Remove unnecessary include.
10879
10880 2006-07-16  Jeff Bailey  <jbailey@ubuntu.com>
10881
10882         * elf/tst-auditmod1.c: Fix typo in #error.
10883
10884 2006-07-31  Ulrich Drepper  <drepper@redhat.com>
10885
10886         * elf/tst-auditmod1.c: Remove code for unsupported architectures.
10887
10888         * iconvdata/run-iconv-test.sh: Run cmp in C locale.
10889
10890 2006-07-20  Adam Nemet  <anemet@caviumnetworks.com>
10891
10892         * stdlib/test-canon.c (do_test): Close fd before unlinking file so
10893         that the directory is empty even on non-POSIX filesystems.
10894
10895 2006-07-31  Ulrich Drepper  <drepper@redhat.com>
10896
10897         * elf/dl-open.c (dl_open_worker): Add branch prediction.
10898
10899         * nis/nss_compat/compat-grp.c: Avoid unnecessary setgrent calls into
10900         the backend NSS module.  If backend setgrent call failed, don't have
10901         internal_setgrent fail.  Just remember this until it is needed.
10902         * nis/nss_compat/compat-pwd.c: Likewise.
10903         * nis/nss_compat/compat-spwd.c: Likewise.
10904
10905 2006-07-30  Roland McGrath  <roland@redhat.com>
10906
10907         * sysdeps/unix/sysv/linux/ia64/sigsuspend.c: File removed.
10908         * sysdeps/unix/sysv/linux/x86_64/sigsuspend.c: File removed.
10909         * sysdeps/unix/sysv/linux/s390/s390-64/sigsuspend.c: File removed.
10910         * sysdeps/unix/sysv/linux/sparc/sparc64/sigsuspend.c: File removed.
10911
10912         * sysdeps/unix/sysv/linux/not-cancel.h (pause_not_cancel): New macro.
10913         (nanosleep_not_cancel): New macro.
10914         (sigsuspend_not_cancel): new macro.
10915         * sysdeps/unix/sysv/linux/sigsuspend.c [__ASSUME_REALTIME_SIGNALS]
10916         (do_sigsuspend): Define as inline.
10917         (__sigsuspend): Always use do_sigsuspend.
10918         [! NO_CANCELLATION] (__sigsuspend_nocancel): New function.
10919         * include/signal.h: Declare __sigsuspend_nocancel.
10920         * sysdeps/posix/pause.c
10921         [! NO_CANCELLATION] (__pause_nocancel): New function.
10922
10923         * include/unistd.h (__pause_nocancel): Add attribute_hidden.
10924         * include/time.h (__nanosleep_nocancel): Likewise.
10925
10926 2006-07-30  Ulrich Drepper  <drepper@redhat.com>
10927
10928         * locale/programs/localedef.c (add_to_readlist): Rename local
10929         variables to avoid confusion.
10930
10931         * locale/programs/charmap.c (charmap_read): Emit error message if
10932         charmap couldn't be found or read.
10933
10934 2006-07-28  Ulrich Drepper  <drepper@redhat.com>
10935
10936         * sysdeps/unix/sysv/linux/kernel-features.h: Define
10937         __ASSUME_FUTEX_LOCK_PI.
10938         * include/time.h: Declare __nanosleep_nocancel.
10939         * include/unistd.h: Declare __pause_nocancel.
10940
10941         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Use this instead of
10942         LDFLAGS.  Add -lgcc_eh and libc_nonshared (again) to make sure we
10943         get the __stack_chk_fail_local definition when it's needed.
10944
10945 2006-07-26  Ulrich Drepper  <drepper@redhat.com>
10946
10947         * dlfcn/Makefile: Add rules to build and run bug-atexit3.
10948         * dlfcn/bug-atexit3.c: New file.
10949         * dlfcn/bug-atexit3-lib.cc: New file.
10950
10951         * dlfcn/dlmopen.c (dlmopen_doit): Don't allow RTLD_GLOBAL to be
10952         used when the namespace is not the base namespace.
10953
10954 2006-07-26  Gavin Romig-Koch  <gavin@redhat.com>
10955
10956         * stdlib/cxa_atexit.c (__new_exitfn_called): New variable.
10957         (__new_exitfn): Bump it in every successful call.
10958         * stdlib/cxa_finalize.c (__cxa_finalize): If destructor registered
10959         more exit handlers, call them right away.
10960         * stdlib/exit.h: Declare __new_exitfn_called.
10961
10962 2006-07-25  Ulrich Drepper  <drepper@redhat.com>
10963
10964         * stdlib/cxa_finalize.c (__cxa_finalize): Fix race condition when
10965         calling registered handler.
10966
10967         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Fix comment.
10968         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
10969         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
10970         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
10971         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
10972         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
10973         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
10974         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
10975
10976 2006-07-10  Ulrich Drepper  <drepper@redhat.com>
10977
10978         * elf/dl-lookup.c (dl_new_hash): New functions.
10979         (_dl_lookup_symbol_x): Rename hash to old_hash and don't compute
10980         value here.  Compute new-style hash value.  Pass new hash value
10981         and reference to variable with the old value to do_lookup_x.
10982         (_dl_setup_hash): If DT_GNU_HASH is defined, use it and not
10983         old-style hash table.
10984         (_dl_debug_bindings): Pass new hash value and reference to variable
10985         with the old value to do_lookup_x.
10986         * elf/do-lookup.h (do_lookup_x): Accept additional parameter with
10987         new-style hash value and change old-style hash value parameter to
10988         be a reference.  Reoganize functions to determine whether
10989         new-style hash table is available.  Only fall back on old-style
10990         table.  If old-style hash value is needed, compute it here.
10991         * elf/dynamic-link.h (elf_get_dynamic_info): Relocate DT_GNU_HASH
10992         entry.
10993         * elf/elf.h: Define SHT_GNU_HASH, DT_GNU_HASH, DT_TLSDEC_PLT,
10994         DT_TLSDEC_GOT.  Adjust DT_ADDRNUM.
10995         * include/link.h (struct link_map): Add l_gnu_bitmask_idxbits,
10996         l_gnu_shift, l_gnu_bitmask, l_gnu_buckets and l_gnu_chain_zero.
10997         * Makeconfig: If linker supports --hash-style option add it to all
10998         linker command lines to build DSOs.
10999         * config.make.in: Define have-hash-style.
11000         * configure.in: Test whether linker supports --hash-style option.
11001
11002         * elf/dl-misc.c (_dl_name_match_p): Make MAP parameter const.
11003         * sysdeps/generic/ldsodefs.h: Adjust prototype.
11004
11005 2006-06-27  Ulrich Drepper  <drepper@redhat.com>
11006
11007         * elf/dl-load.c (open_path): Fix test to determine whether DSO is
11008         auditing.
11009
11010         * elf/dl-load.c (_dl_map_object): Try harder to avoid looking at
11011         RPATH of main map twice.
11012
11013 2006-06-22  Ulrich Drepper  <drepper@redhat.com>
11014
11015         * intl/dcigettext.c (DCIGETTEXT): If _nl_find_msg returns -1 don't
11016         look further, return original strings.
11017         (_nl_find_msg): Do not return found translation if the conversion
11018         failed.  Either signal the string is unusable or that something went
11019         wrong and the original should be used.
11020
11021 2006-06-21  Ulrich Drepper  <drepper@redhat.com>
11022
11023         * string/_strerror.c (__strerror_r): Add __builtin_expect.
11024
11025 2006-06-14  Jakub Jelinek  <jakub@redhat.com>
11026
11027         [BZ #2766]
11028         * misc/insremque.c (insque): Handle prev == NULL.
11029         * misc/Makefile (tests): Add tst-insremque.
11030         * misc/tst-insremque.c: New test.
11031
11032 2006-06-17  Ulrich Drepper  <drepper@redhat.com>
11033
11034         [BZ #2792]
11035         * elf/dl-deps.c (expand_dst): Rename __cnt variable to not
11036         conflict with DL_DST_REQUIRED.
11037
11038 2006-06-16  Ulrich Drepper  <drepper@redhat.com>
11039
11040         * nis/nis_subr.c (nis_getnames): Fix the implementation to better
11041         match what Solaris does.
11042
11043 2006-06-04  Ulrich Drepper  <drepper@redhat.com>
11044
11045         * sysdeps/posix/spawni.c (__spawni): Use local_seteuid and
11046         local_setegid instead of seteuid and setegid.
11047         * sysdeps/generic/local-setxid.h: New file.
11048         * sysdeps/unix/sysv/linux/local-setxid.h: New file.
11049
11050         * sysdeps/posix/spawni.c (__spawni): Use non-cancelable interfaces.
11051
11052         * string/Makefile (tests): Add bug-envz1.
11053         * string/bug-envz1.c: New file.
11054
11055 2006-06-02  Jakub Jelinek  <jakub@redhat.com>
11056
11057         * posix/regex_internal.c (re_string_skip_chars): If no character has
11058         been converted at all, set *last_wc to WEOF.  If mbrtowc failed, set wc
11059         to the byte which couldn't be converted.
11060         (re_string_reconstruct): Don't clear valid_raw_len before calling
11061         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
11062         tip_context using re_string_context_at.
11063         * posix/Makefile: Add rules to build and run bug-regex25 test.
11064         * posix/bug-regex25.c: New test.
11065
11066 2006-06-02  Ryan S. Arnold  <rsa@us.ibm.com>
11067
11068         [BZ #2703]
11069         * string/envz.c (envz_strip): Correct erroneously reversed src
11070         and dest parameters to memmove() invocation.
11071
11072 2006-05-30  Jakub Jelinek  <jakub@redhat.com>
11073
11074         * nscd/nscd.h (prune_cache): Add fd argument to prototype.
11075         * nscd/nscd.c (parse_opt): Read response from INVALIDATE request
11076         to make sure the database has been already invalidated.
11077         * nscd/cache.c (prune_cache): Add fd argument.  Write response to fd
11078         after the cache has been invalidated.  Use pthread_mutex_lock rather
11079         than pthread_mutex_trylock if fd != -1.
11080         * nscd/connections.c (invalidate_cache): Add fd argument, write
11081         response to fd if not calling prune_cache, pass fd to prune_cache.
11082         (handle_request): Adjust invalidate_cache caller.
11083         (nscd_run): Pass -1 as fd to prune_cache.
11084
11085 2006-05-30  Ulrich Drepper  <drepper@redhat.com>
11086
11087         * sysdeps/posix/getaddrinfo.c (gaiconf_init): Initialize bits in
11088         the correct place.
11089
11090 2006-05-29  Ulrich Drepper  <drepper@redhat.com>
11091
11092         * nscd/nscd.h (struct database_dyn): Add prunelock field.
11093         * nscd/cache.c (prune_cache): Take prunelock before starting the
11094         work.  Just return in case it is already taken.
11095         * nscd/connections.c (dbs): Initialize .prunelock.
11096
11097 2006-05-25  Ulrich Drepper  <drepper@redhat.com>
11098
11099         * nis/nis_removemember.c (nis_removemember): Avoid unnecessary
11100         copying.  No need to allocate new array for group members.  Just
11101         move the pointers and update the size.
11102
11103         * nis/nis_addmember.c (nis_addmember): Avoid unnecessary copying.
11104         Avoid memory leak in case realloc fails.  Simplification for
11105         better code generation.
11106
11107         Avoid deprecation warning because of libc_hidden_proto for
11108         inet6_option_alloc.
11109         * inet/inet6_option.c (option_alloc): Renamed from
11110         inet6_option_alloc.  Made static.
11111         (inet6_option_alloc): Now a simple wrapper around option_alloc.
11112         (inet6_option_append): Call option_alloc.
11113         * include/netinet/in.h: Remove libc_hidden_proto for
11114         inet6_option_alloc.
11115
11116         * nis/nis_callback.c (__nis_create_callback): Always call xdr_free
11117         for cleanup when cb!=NULL [Coverity CID 233].
11118
11119 2006-05-24  Ulrich Drepper  <drepper@redhat.com>
11120
11121         [BZ #2693]
11122         * inet/Makefile (routines): Add inet6_opt and inet6_rth.
11123         * inet/Versions (libc, GLIBC_2.5): Add inet6_opt_init,
11124         inet6_opt_append, inet6_opt_finish, inet6_opt_set_val, inet6_opt_next,
11125         inet6_opt_find, inet6_opt_get_val, inet6_rth_space, inet6_rth_init,
11126         inet6_rth_add, inet6_rth_reverse, inet6_rth_segments,
11127         and inet6_rth_getaddr.
11128         * inet/netinet/ip6.h (struct ip6_rthdr0): Make ip6r0_addr a flexible
11129         array.
11130         * inet/netinet/in.h (struct ip6_mtuinfo): Define.
11131         Mark inet6_option_* interfaces as deprecated.
11132         Declare inet6_opt_init, inet6_opt_append, inet6_opt_finish,
11133         inet6_opt_set_val, inet6_opt_next, inet6_opt_find, inet6_opt_get_val,
11134         inet6_rth_space, inet6_rth_init, inet6_rth_add, inet6_rth_reverse,
11135         inet6_rth_segments, and inet6_rth_getaddr.
11136         * inet/inet6_opt.c: New file.
11137         * inet/inet6_rth.c: New file.
11138
11139         * inet/netinet/icmp6.h: Pretty printing.
11140
11141         [BZ #2683]
11142         * elf/dl-addr.c (_dl_addr): Don't match undefined references.
11143
11144 2006-05-23  Ulrich Drepper  <drepper@redhat.com>
11145
11146         * nis/nis_lookup.c (nis_lookup): Use __prepare_niscall instead of
11147         doing it all here.  When server does not know the answer do not
11148         fail immediate, try parent first.
11149
11150         * nis/nis_domain_of_r.c (nis_domain_of_r): Add missing buffer
11151         overflow test.
11152
11153 2006-05-20  Ulrich Drepper  <drepper@redhat.com>
11154
11155         * nis/nis_call.c (__prepare_niscall): New function.  Split out
11156         from __do_niscall.
11157         * nis/nis_table.c (__create_ib_request): Renamed from create_ib_request
11158         and exported.
11159         (__follow_path): New function.  Split out from nis_list.
11160         * nis/nis_xdr.h: Add libnsl_hidden_proto for _xdr_ib_request and
11161         _xdr_nis_result.
11162         * nis/nis_xdr.c: Add libnsl_hidden_def for _xdr_ib_request and
11163         _xdr_nis_result.
11164         * nis/libnsl.h: Declare __prepare_niscall, __create_ib_request,
11165         and __follow_path.
11166         * nis/Versions: Export __prepare_niscall, __create_ib_request,
11167         __follow_path, __do_niscall3, _xdr_ib_request, and _xdr_nis_result
11168         from libnsl for version GLIBC_PRIVATE.
11169         * nis/nisplus-parser.h: Remove _nss_nisplus_parse_pwent_chk.
11170         Remove entry parameter from _nss_nisplus_parse_pwent and
11171         _nss_nisplus_parse_grent.
11172         * nis/nss_nisplus/nisplus-parser.c: Likewise.
11173         * nis/nss_nisplus/nisplus-pwd.c: Remove support for SETENT_BATCH_READ
11174         again.  Rewrite getpwent handling to not use nis_first_entry and
11175         nis_next_entry.  Roll out own niscall handling.
11176         * nis/nss_nisplus/nisplus-grp.c: Likewise.
11177
11178         * sunrpc/xdr_rec.c: Fix typo in comment.
11179
11180 2006-05-19  Ulrich Drepper  <drepper@redhat.com>
11181
11182         * nis/nis_call.c (__do_niscall3): Avoid code duplication in error
11183         handling.
11184
11185         * nis/nis_callback.c (internal_nis_do_callback): Don't use malloc
11186         to allocate memory for my_pollfd.  Better initialization of
11187         cb_is_running.  Use TEMP_FAILURE_RETRY.
11188
11189         * malloc/memusage.sh (memusageso): Add quotes.
11190         (memusagestat): Likewise.
11191         * debug/xtrace.sh (pcprofileso): Likewise.
11192         (pcprofiledump): Likewise.
11193         * debug/Makefile ($(objpfx)xtrace): Use $LIB in SLIBDIR
11194         replacement.
11195         * malloc/Makefile ($(objpfx)memusage): Likewise.
11196
11197         * nis/nis_callback.c (__nis_create_callback): Calls to
11198         svcudp_bufcreate and svctcp_create can fail.  Free ->xprt if
11199         asprintf call fails.
11200
11201         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_sendreq): Make sure
11202         no uninitialized memory is passed to sendto.
11203
11204 2006-05-18  Ulrich Drepper  <drepper@redhat.com>
11205
11206         * nis/nis_callback.c (__nis_create_callback): Use asprinf instead
11207         of snprintf+strdup.  Handle OOM.
11208         * nis/nis_callback.c (__nis_create_callback): Allocate cb and
11209         cb->serv together.  Remove now obsolete free calls.
11210         (__nis_destroy_callback): Remove now obsolete free call.
11211
11212 2006-05-18  David Woodhouse  <dwmw2@redhat.com>
11213
11214         * sysdeps/posix/getaddrinfo.c: Add unique labels to the default
11215         RFC3484 precedence table for fec0::/10 and fc00::/7 (site-local
11216         and ULA respectively). Set precedence for IPv4 address to 10 as
11217         defined in RFC3484 for preferring IPv6.
11218         * posix/gai.conf: Update to match the new default tables.
11219
11220 2006-05-18  Jakub Jelinek  <jakub@redhat.com>
11221
11222         * nis/nss_compat/compat-pwd.c (internal_setpwent): If nss_set*ent
11223         returned NSS_STATUS_UNAVAIL, still return NSS_STATUS_SUCCESS.
11224         * nis/nss_compat/compat-spwd.c (internal_setspent): Likewise.
11225         * nis/nss_compat/compat-grp.c (internal_setgrent): Likewise.
11226
11227         * nis/nss_compat/compat-initgroups.c (nss_setgrent, nss_endgrent):
11228         Removed.
11229         (init_nss_interface): Remove initialization of these variables.
11230
11231 2006-05-18  Ulrich Drepper  <drepper@redhat.com>
11232
11233         * nis/nis_call.c (rec_dirsearch): Little optimization: pull
11234         nis_free_directory forward to avoid duplication.
11235
11236 2006-05-17  Ulrich Drepper  <drepper@redhat.com>
11237
11238         * nis/nis_call.c (rec_dirsearch): Handle __nis_finddirectory and
11239         rec_dirsearch returning NULL.
11240         (first_shoot): Handle __nis_finddirectory returning NULL.
11241         (__nisfind_server): Fix leak when rec_dirsearch returns NULL.
11242
11243         * sysdeps/unix/sysv/linux/sys/inotify.h: Define IN_CLOSE, IN_MOVE,
11244         IN_ONLYDIR, IN_DONT_FOLLOW, and IN_MASK_ADD.
11245
11246 2006-05-17  Jakub Jelinek  <jakub@redhat.com>
11247
11248         * sunrpc/key_call.c (getkeyserv_handle): Call auth_destroy if
11249         pid changed.
11250
11251 2006-05-15  Ulrich Drepper  <drepper@redhat.com>
11252
11253         * include/rpc/pmap_prot.h: Mark all functions as hidden.
11254
11255         * nscd/nscd_initgroups.c: Mark __gr_map_handle as hidden.
11256         * nscd/nscd_getgr_r.c: Likewise.
11257
11258         * include/rpc/pmap_rmt.h: Mark all functions as hidden.
11259
11260         * nscd/nscd_getai.c (__hst_map_handle): Mark as hidden.
11261         * nscd/nscd_gethst_r.c (__hst_map_handle): Likewise.
11262
11263         * stdlib/longlong.h (__clz_tab): Mark as hidden.
11264
11265         * iconv/gconv_int.h: Mark __gconv_lock as hidden.
11266
11267         * include/rpc/key_prot.h: Mark all _internal functions as hidden.
11268
11269         * include/rpc/auth.h: Mark xdr_des_block_internal and
11270         xdr_opaque_auth_internal as hidden.
11271
11272         * sysdeps/unix/sysv/linux/getdents.c: Mark __have_no_getdents64 as
11273         hidden.
11274
11275         * include/rpc/xdr.h: Mark all _internal functions as hidden.
11276
11277         * misc/getusershell.c (okshells): Don't use static initializers,
11278         do it dynamically.
11279
11280         * stdlib/fmtmsg.c (keywords): Change type of len element to
11281         uint32_t to not waste space on 64bit machines.
11282
11283         * locale/setlocale.c: Change _nl_category_names into a string.
11284         Add new _nl_category_name_idxs.  Change all users.
11285         * locale/localeinfo.h: Adjust declaration of _nl_category_names.
11286         Declare _nl_category_name_idxs.
11287         * locale/findlocale.c: Adjust for _nl_category_names change.
11288         * locale/loadlocale.c: Likewise.
11289         * locale/newlocale.c: Likewise.
11290         * intl/dcigettext.c: Likewise.
11291
11292         * iconv/gconv_conf.c (add_alias): Move actual alias handling to...
11293         (add_alias2): ...here.  New function.
11294         (__gconv_read_conf): Simplify builtin alias handling.
11295         (builtin_aliases): Convert to string to avoid relocations.
11296         * iconv/gconv_builtin.h: Add comment about correct formatting.
11297
11298 2006-05-15  Jakub Jelinek  <jakub@redhat.com>
11299
11300         * resolv/res_debug.c (loc_ntoa): Make error const.
11301
11302 2006-05-14  Andreas Schwab  <schwab@suse.de>
11303
11304         * math/complex.h [__LDBL_COMPAT]: Use __REDIRECT_NTH.
11305
11306 2006-05-12  Jakub Jelinek  <jakub@redhat.com>
11307
11308         * sysdeps/unix/sysv/linux/sched_getaffinity.c: Include sys/param.h.
11309         (__sched_getaffinity_new): Don't crash if cpusetsize is smaller than
11310         sizeof (cpu_set_t).
11311
11312 2006-05-11  Ulrich Drepper  <drepper@redhat.com>
11313
11314         * resolv/res_debug.c (loc_ntoa): Define error as array, not pointer.
11315
11316         * include/arpa/nameser.h: Declare _ns_flagdata as hidden.
11317
11318         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_master.
11319         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_master.
11320
11321         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypbind_resp.
11322         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypbind_resp.
11323
11324         * nis/nis_xdr.c: Add libnsl_hidden_def for xdr_cback_data.
11325         * include/rpcsvc/nis_callback.h: Add libnsl_hidden_proto for
11326         xdr_cback_data.
11327
11328         * nis/ypupdate_xdr.c: Add libnsl_hidden_def for xdr_ypupdate_args.
11329         * include/rpcsvc/ypupd.h: Add libnsl_hidden_proto for
11330         xdr_ypupdate_args.
11331
11332         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_order.
11333         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_order.
11334
11335         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_maplist.
11336         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_maplist.
11337
11338         * nis/nis_xdr.c: Add libnsl_hidden_def for xdr_obj_p.
11339         * include/rpcsvc/nis_callback.h: New file.
11340
11341         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_val.
11342         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_val.
11343
11344         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypreq_nokey.
11345         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypreq_nokey.
11346
11347         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypmaplist.
11348         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypmaplist.
11349
11350         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypreq_nokey.
11351         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypreq_nokey.
11352
11353         * nis/ypupdate_xdr.c: Add libnsl_hidden_def for xdr_ypdelete_args.
11354         * include/rpcsvc/ypupd.h: Add libnsl_hidden_proto for
11355         xdr_ypdelete_args.
11356
11357         * nis/nis_xdr.h: Mark all functions as hidden.  Remove
11358         __BEGIN_DECLS and __END_DECLS, the header is not installed.
11359
11360         * nis/nis_error.c: Remove table of strings.  Use position
11361         independent mechanism.
11362         * nis/nis_error.h: New file.
11363
11364 2006-05-11  Jakub Jelinek  <jakub@redhat.com>
11365
11366         * locale/programs/ld-time.c (time_finish): If wide era name or
11367         format aren't provided, set both wname and wformat to L"".
11368
11369 2006-05-10  Ulrich Drepper  <drepper@redhat.com>
11370
11371         * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Only store
11372         results if the call was succesful.
11373
11374         * nis/nss-nis.h: Mark __yperr2nss_tab and __yperr2nss_count as hidden.
11375
11376         * nis/nss-nisplus.h: Mark __niserr2nss_tab and __niserr2nss_count
11377         as hidden.
11378
11379 2006-05-10  Jakub Jelinek  <jakub@redhat.com>
11380
11381         * misc/sys/queue.h: Remove uses of all QUEUEDEBUG_* macros.
11382
11383 2006-05-10  Ulrich Drepper  <drepper@redhat.com>
11384
11385         * posix/wordexp.c (parse_glob): No need to check ifs for NULL, the
11386         caller makes sure this is not the case.
11387         (wordexp): Simplify ifs_white creation.  [Coverity CID 231]
11388
11389 2006-05-09  Ulrich Drepper  <drepper@redhat.com>
11390
11391         * posix/wordexp.c: Remove numerous NULL pointer tests before FREE
11392         calls.
11393
11394         * io/ftw.c (open_dir_stream): Return right away if REALLOC fails.
11395         [Coverity CID 229, 230]
11396
11397         * argp/argp-help.c (hol_entry_help): Handle STATE==NULL in ARG and
11398         DGETTEXT calls.
11399         (hol_help): Likewise.  [Coverity CID 226, 227]
11400
11401         * string/argz-replace.c (__argz_replace): Unconditionally call
11402         free on SRC.  [Coverity CID 225]
11403
11404         * nis/nis_creategroup.c (nis_creategroup): No need to duplicate
11405         the return value of __nis_default_owner and __nis_default_group,
11406         it has been especially allocated.  [Coverity CID 224]
11407
11408         * nis/nis_defaults.c (searchXYX): New functions.  Used by both
11409         searchgroup and searchowner.  Significantly simplified.
11410         (__nis_default_owner): Remove duplication.  Do not locally copy the
11411         string before duplicating it.
11412         (__nis_default_group): Likewise.
11413
11414         * nis/nis_lookup.c (nis_lookup): After calling nis_free_directory,
11415         we must clear the variable before calling __nisfind_server.
11416
11417         * nis/nis_lookup.c (nis_lookup): Always free memory allocated with
11418         nis_getnames.  [Coverity CID 223]
11419
11420         * locale/programs/locfile.c (locfile_read): Use alloca instead of
11421         xmalloc to allocate local repertoire name.  [Coverity CID 222]
11422
11423         * iconv/iconv_charmap.c (use_to_charmap): No need to dynamically
11424         allocate memory for the input to add_bytes.  [Coverity CID 221]
11425
11426         * posix/wordexp.c (w_addword): Free word if realloc fails and it
11427         was allocated here.  [Coverity CID 219, 220]
11428
11429         * posix/getconf.c (print_all): Free confstr data after printing.
11430         [Coverity CID 218]
11431
11432         * sysdeps/posix/getaddrinfo.c (gaih_inet): Free canon string if
11433         list allocation fails.  [Coverity CID 215]
11434
11435         * nss/nsswitch.c (__nss_configure_lookup): Fix loop end condition.
11436         [Coverity CID 213]
11437
11438         * argp/argp-help.c (hol_entry_cmp): Don't call canon_doc_option if
11439         string is NULL.  [Coverity CID 212]
11440         * argp/Makefile: Add rules to build and run bug-argp1.
11441         * argp/bug-argp1.c: New file.
11442
11443         * io/ftw.c (ftw_dir): Use __rawmemchr instead of strchr to find
11444         end of string.
11445         * stdlib/canonicalize.c (__realpath): Likewise.
11446
11447         * locale/programs/ld-time.c (time_finish): Don't dereference NULL
11448         pointer.  [Coverity CID 206]
11449
11450         * elf/dl-dst.h (DL_DST_REQUIRED): Be prepared for missing link map
11451         in statically linked code.
11452         * elf/dl-load.c (_dl_dst_substitute): When replacing ORIGIN in
11453         statically built code, be prepared to have no link map.
11454         [Coverity CID 205]
11455
11456         * argp/argp-help.c (fill_in_uparams): Handle STATE==NULL in
11457         dgettext calls. [Coverity CID 204]
11458
11459         * argp/argp-help.c (struct uparams): Remove valid member.  Change
11460         the one user.
11461         (uparam_names): Reduce size.  Avoid relative relocations.
11462         Moved to read-only segment.
11463         (fill_in_uparams): Update for new layout.
11464
11465         * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs): Parameter can be
11466         assumed to always be != NULL. [Coverity CID 202]
11467
11468         * argp/argp-help.c (hol_entry_help): Remove some dead code
11469         [Coverity CID 200].
11470
11471         * nis/nss_nis/nis-service.c (_nss_nis_getservbyport_r): Optimize
11472         away a few more unconditional yperr2nss calls.
11473         (_nss_nis_getservbyname_r): Likewise.
11474
11475 2006-05-06  Ulrich Drepper  <drepper@redhat.com>
11476
11477         * sysdeps/generic/ldsodefs.h: Remove support for non-core
11478         architectures.
11479
11480         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Make sure
11481         that unused memory passed to sendto is nevertheless initialized.
11482
11483         [BZ #2499]
11484         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Avoid
11485         possibly unaligned memory accesses.
11486
11487         * include/arpa/nameser.h: Also optimize NS_PUT16 and NS_PUT32.
11488         * resolv/res_mkquery.c: Use NS_PUT16 and NS_PUT32 instead of __putshort
11489         and __putlong respectively.  Correct buffer overflow check for
11490         NS_NOTIFY_OP.
11491
11492         * resolv/res_send.c (send_vc): Use ns_put16 instead of putshort.
11493
11494         * resolv/res_send.c (res_queriesmatch): Fix typo in comment.
11495         (send_dg): Rewrite error handling to be more compact and avoid
11496         double recomputation of timeouts.  Pass MSG_NOSIGNAL to send.
11497
11498         * include/arpa/nameser.h: Add optimizations for NS_GET16 and NS_GET32.
11499
11500         * resolv/res_send.c (res_nameinquery): Use NS_GET16 directly
11501         instead of ns_get16.
11502         (res_queriesmatch): Likewise.  Minor optimization.
11503
11504         [BZ #2499]
11505         * resolv/res_query.c (__libc_res_nquery): If answerp != NULL,
11506         __libc_res_nsend might reallocate the buffer for the answer.  In
11507         this case we have to reload the HP pointer.
11508
11509 2006-05-05  Ulrich Drepper  <drepper@redhat.com>
11510
11511         * stdio-common/vfscanf.c (memory_error): Remove definition.  Add
11512         some branch prediction hints.
11513
11514         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Define SPLICE_F_*.
11515         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
11516         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
11517         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
11518         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
11519         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
11520         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
11521         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
11522
11523 2006-05-05  Martin Schwidefsky  <schwidefsky@de.ibm.com>
11524
11525         * sysdeps/s390/s390-32/elf/start.S: Replace pc relative relocation
11526         by a GOT relocation to make Scrt1.o position independent.
11527         * sysdeps/s390/s390-64/elf/start.S: Likewise.
11528
11529         * sysdeps/unix/sysv/linux/s390/s390-32/syscall.S: Add support for
11530         six system call parameters.
11531         * sysdeps/unix/sysv/linux/s390/s390-64/syscall.S: Likewise.
11532
11533 2006-05-05  Ulrich Drepper  <drepper@redhat.com>
11534
11535         * sunrpc/svcauth_des.c (cache_init): Use calloc instead of
11536         malloc&bzero.
11537
11538         * sunrpc/svc_udp.c (BZERO): Remove definition.
11539         (CALLOC): Define.
11540         (svc_enablecache): Use CALLOC instead of ALLOC&BZERO.
11541
11542         * sunrpc/des_impl.c: Remove ALT_ECB support.  We never used it.
11543         (des_SPtrans): Use uint32_t type.
11544         (des_skb): Likewise.
11545
11546         * sunrpc/xdr_ref.c (xdr_reference): Use calloc instead of malloc&bzero.
11547
11548 2006-05-05  Jakub Jelinek  <jakub@redhat.com>
11549
11550         [BZ #2509]
11551         * stdio-common/tst-printf.sh: Adjust for tst-printf.c change even
11552         on 32-bit arches.
11553
11554 2006-05-05  Ulrich Drepper  <drepper@redhat.com>
11555
11556         * locale/programs/ld-address.c (address_finish): Fix one more
11557         place where the iso639 array might be accessed beyond the limits.
11558
11559 2006-05-04  Ulrich Drepper  <drepper@redhat.com>
11560
11561         * nis/nis_table.c (nis_list): Avoid clearing res twice before
11562         filling it for the first time.
11563
11564         * nis/nis_table.c (get_tablepath): Renamed from __get_tablepath.
11565         Adjust all callers.
11566         Free res object content before returning.
11567
11568         * sunrpc/xdr_array.c (xdr_array): Use calloc instead of malloc&bzero.
11569
11570         * sunrpc/key_call.c (__rpc_thread_key_cleanup): Also free
11571         client->cl_auth.
11572
11573         * sunrpc/rpc_thread.c (__rpc_thread_destroy): Don't skip entire
11574         cleanup for initial thread, just the free call on TVP.
11575
11576         * nscd/gai.c (__getline): Define.
11577
11578
11579 See ChangeLog.16 for earlier changes.