1 2009-05-22 Jakub Jelinek <jakub@redhat.com>
3 * sysdeps/unix/sysv/linux/accept4.c: Include kernel-features.h.
4 (accept4): If __NR_accept4 is not defined, but __NR_socketcall
5 is, either do nothing at all if __ASSUME_ACCEPT4, or
6 call __internal_accept4 and handle EINVAL -> ENOSYS translation.
7 * sysdeps/unix/sysv/linux/internal_accept4.S: New file.
8 * sysdeps/unix/sysv/linux/i386/accept4.S (SOCKOP_accept4): Don't
10 * sysdeps/unix/sysv/linux/i386/internal_accept4.S: New file.
11 * sysdeps/unix/sysv/linux/Makefile (sysdep-routines): Add
12 internal_accept4 in socket directory.
14 2009-05-20 H.J. Lu <hongjiu.lu@intel.com>
16 * sysdeps/ia64/configure.in: New file.
18 2009-05-21 H.J. Lu <hongjiu.lu@intel.com>
21 * sysdeps/ia64/memchr.S: Use speculative load.
23 * sysdeps/unix/sysv/linux/ia64/____longjmp_chk.S: New file.
24 * sysdeps/unix/sysv/linux/ia64/__longjmp.S: If CHECK_RSP is defined,
27 * sysdeps/i386/__longjmp.S: Add .text.
28 * sysdeps/x86_64/__longjmp.S: Likewise.
30 2009-05-21 Ulrich Drepper <drepper@redhat.com>
32 * sysdeps/unix/sysv/linux/kernel-features.h: Don't define
33 __ASSUME_ACCEPT4 for IA-64.
35 2009-05-21 Jakub Jelinek <jakub@redhat.com>
37 * sysdeps/unix/sysv/linux/accept4.c (__NR_accept4): Don't define.
39 * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_paccept): Remove.
40 (SOCKOP_accept4): Define.
42 2009-05-20 Ulrich Drepper <drepper@redhat.com>
44 Sun approved the change of the license.
45 * sunrpc/auth_des.c: Replace license text.
46 * sunrpc/auth_none.c: Likewise.
47 * sunrpc/auth_unix.c: Likewise.
48 * sunrpc/authdes_prot.c: Likewise.
49 * sunrpc/authuxprot.c: Likewise.
50 * sunrpc/bindrsvprt.c: Likewise.
51 * sunrpc/clnt_gen.c: Likewise.
52 * sunrpc/clnt_perr.c: Likewise.
53 * sunrpc/clnt_raw.c: Likewise.
54 * sunrpc/clnt_simp.c: Likewise.
55 * sunrpc/clnt_tcp.c: Likewise.
56 * sunrpc/clnt_udp.c: Likewise.
57 * sunrpc/clnt_unix.c: Likewise.
58 * sunrpc/des_crypt.c: Likewise.
59 * sunrpc/des_soft.c: Likewise.
60 * sunrpc/get_myaddr.c: Likewise.
61 * sunrpc/getrpcport.c: Likewise.
62 * sunrpc/key_call.c: Likewise.
63 * sunrpc/key_prot.c: Likewise.
64 * sunrpc/openchild.c: Likewise.
65 * sunrpc/pm_getmaps.c: Likewise.
66 * sunrpc/pm_getport.c: Likewise.
67 * sunrpc/pmap_clnt.c: Likewise.
68 * sunrpc/pmap_prot.c: Likewise.
69 * sunrpc/pmap_prot2.c: Likewise.
70 * sunrpc/pmap_rmt.c: Likewise.
71 * sunrpc/rpc/auth.h: Likewise.
72 * sunrpc/rpc/auth_unix.h: Likewise.
73 * sunrpc/rpc/clnt.h: Likewise.
74 * sunrpc/rpc/des_crypt.h: Likewise.
75 * sunrpc/rpc/key_prot.h: Likewise.
76 * sunrpc/rpc/netdb.h: Likewise.
77 * sunrpc/rpc/pmap_clnt.h: Likewise.
78 * sunrpc/rpc/pmap_prot.h: Likewise.
79 * sunrpc/rpc/pmap_rmt.h: Likewise.
80 * sunrpc/rpc/rpc.h: Likewise.
81 * sunrpc/rpc/rpc_des.h: Likewise.
82 * sunrpc/rpc/rpc_msg.h: Likewise.
83 * sunrpc/rpc/svc.h: Likewise.
84 * sunrpc/rpc/svc_auth.h: Likewise.
85 * sunrpc/rpc/types.h: Likewise.
86 * sunrpc/rpc/xdr.h: Likewise.
87 * sunrpc/rpc_clntout.c: Likewise.
88 * sunrpc/rpc_cmsg.c: Likewise.
89 * sunrpc/rpc_common.c: Likewise.
90 * sunrpc/rpc_cout.c: Likewise.
91 * sunrpc/rpc_dtable.c: Likewise.
92 * sunrpc/rpc_hout.c: Likewise.
93 * sunrpc/rpc_main.c: Likewise.
94 * sunrpc/rpc_parse.c: Likewise.
95 * sunrpc/rpc_parse.h: Likewise.
96 * sunrpc/rpc_prot.c: Likewise.
97 * sunrpc/rpc_sample.c: Likewise.
98 * sunrpc/rpc_scan.c: Likewise.
99 * sunrpc/rpc_scan.h: Likewise.
100 * sunrpc/rpc_svcout.c: Likewise.
101 * sunrpc/rpc_tblout.c: Likewise.
102 * sunrpc/rpc_util.c: Likewise.
103 * sunrpc/rpc_util.h: Likewise.
104 * sunrpc/rpcinfo.c: Likewise.
105 * sunrpc/rpcsvc/bootparam_prot.x: Likewise.
106 * sunrpc/rpcsvc/key_prot.x: Likewise.
107 * sunrpc/rpcsvc/klm_prot.x: Likewise.
108 * sunrpc/rpcsvc/mount.x: Likewise.
109 * sunrpc/rpcsvc/nfs_prot.x: Likewise.
110 * sunrpc/rpcsvc/rex.x: Likewise.
111 * sunrpc/rpcsvc/rstat.x: Likewise.
112 * sunrpc/rpcsvc/rusers.x: Likewise.
113 * sunrpc/rpcsvc/sm_inter.x: Likewise.
114 * sunrpc/rpcsvc/spray.x: Likewise.
115 * sunrpc/rpcsvc/yppasswd.x: Likewise.
116 * sunrpc/rtime.c: Likewise.
117 * sunrpc/svc.c: Likewise.
118 * sunrpc/svc_auth.c: Likewise.
119 * sunrpc/svc_authux.c: Likewise.
120 * sunrpc/svc_raw.c: Likewise.
121 * sunrpc/svc_run.c: Likewise.
122 * sunrpc/svc_simple.c: Likewise.
123 * sunrpc/svc_tcp.c: Likewise.
124 * sunrpc/svc_udp.c: Likewise.
125 * sunrpc/svc_unix.c: Likewise.
126 * sunrpc/svcauth_des.c: Likewise.
127 * sunrpc/xcrypt.c: Likewise.
128 * sunrpc/xdr.c: Likewise.
129 * sunrpc/xdr_array.c: Likewise.
130 * sunrpc/xdr_float.c: Likewise.
131 * sunrpc/xdr_mem.c: Likewise.
132 * sunrpc/xdr_rec.c: Likewise.
133 * sunrpc/xdr_ref.c: Likewise.
134 * sunrpc/xdr_sizeof.c: Likewise.
135 * sunrpc/xdr_stdio.c: Likewise.
137 * po/da.po: Update from translation team.
139 2009-05-18 Kaz Kojima <kkojima@rr.iij4u.or.jp>
141 * sysdeps/sh/____longjmp_chk.S: New file.
142 * sysdeps/sh/sh3/__longjmp.S: If CHECK_SP is defined, use it.
143 * sysdeps/sh/sh4/__longjmp.S: Likewise.
145 2009-05-18 Jakub Jelinek <jakub@redhat.com>
146 Ulrich Drepper <drepper@redhat.com>
148 * nscd/nscd_helper.c (MINIMUM_HASHENTRY_SIZE): Define.
149 (__nscd_cache_search): Assume each entry in the
150 hash chain needs one hashentry and half of datahead. Use
151 MINIMUM_HASHENTRY_SIZE instead of sizeof(hashentry).
153 2009-05-16 Ulrich Drepper <drepper@redhat.com>
155 * posix/sys/wait.h: Fix typos. Pretty printing.
156 * stdlib/stdlib.h: Likewise. Correct comments.
159 * stdlib/stdlib.h (__WAIT_INT): Match the definition in <sys/wait.h>.
161 * nscd/nscd_helper.c (__nscd_cache_search): Fix exit condition in last
164 2009-05-15 Ulrich Drepper <drepper@redhat.com>
166 * nscd/nscd_helper.c (__nscd_cache_search): Introduce loop counter.
167 Use it if we absolutely cannot reach any more correct list elements
168 because that many do not fit into the currently mapped database.
170 2009-05-14 Jakub Jelinek <jakub@redhat.com>
172 * nscd/nscd_helper.c: Include stddef.h.
173 (__nscd_cache_search): Add datalen argument. Use atomic_forced_read
174 in a couple of places. Return NULL if trail is not less than
175 datasize, don't consider dataheads with length smaller than
176 offsetof (struct datahead, data) + datalen.
177 * nscd/nscd_client.h (__nscd_cache_search): Adjust prototype.
178 * nscd/nscd_gethst_r.c (nscd_gethst_r): Adjust callers.
179 * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
180 * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
181 * nscd/nscd_getai.c (__nscd_getai): Likewise.
182 * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
183 * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
185 * sysdeps/unix/sysv/linux/i386/fallocate64.c (__fallocate64_l64):
187 (fallocate64): ... to this.
188 * sysdeps/unix/sysv/linux/fallocate64.c (__fallocate64_l64):
190 (fallocate64): ... to this.
191 * sysdeps/unix/sysv/linux/Versions (libc): Remove fallocate64.
192 * sysdeps/unix/sysv/linux/wordsize-64/Versions (libc): Add
193 fallocate64@@GLIBC_2.10.
194 * sysdeps/unix/sysv/linux/i386/Versions (libc): Add
195 fallocate64@@GLIBC_2.11.
196 * sysdeps/unix/sysv/linux/s390/s390-32/Versions (libc): Likewise.
197 * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions (libc): Likewise.
198 * sysdeps/unix/sysv/linux/sparc/sparc32/Versions (libc): Likewise.
199 * sysdeps/unix/sysv/linux/sh/Versions (libc): Likewise.
201 * nscd/selinux.c (nscd_avc_destroy): Removed.
202 * nscd/selinux.h (nscd_avc_destroy): Likewise.
203 * nscd/nscd.c (termination_handler): Don't call
206 2009-05-12 Jakub Jelinek <jakub@redhat.com>
208 * include/atomic.h: Formatting.
209 (catomic_compare_and_exchange_val_acq): Don't define if already
210 defined by bits/atomic.h.
212 2009-05-15 Ulrich Drepper <drepper@redhat.com>
214 * math/libm-test.inc (expm1_test): Add test for range error.
216 * Versions.def: Add GLIBC_2.11 for libc.
217 * debug/Makefile (routines): Add longjmp_chk.
218 Add rules to build and run tst-longjmp_chk.
219 * debug/Versions: Export __longjmp_chk for GLIBC_2.11.
220 * debug/longjmp_chk.c: New file.
221 * debug/tst-longjmp_chk.c: New file.
222 * include/bits/setjmp2.: New file.
223 * include/stdio.h: Mark __fortify_fail as internal_function.
224 * setjmp/Makefile (headers): Add bits/setjmp2.h.
225 * setjmp/bits/setjmp2.h: New file.
226 * setjmp/longjmp.c: If __libc_siglongjmp is defined, don't define any
228 * setjmp/setjmp.h: Include <bits/setjmp2.h> if _FORTIFY_SOURCE is
230 * sysdeps/i386/____longjmp_chk.S: New file.
231 * sysdeps/x86_64/____longjmp_chk.S: New file.
232 * sysdeps/i386/__longjmp.S: If CHECK_ESP is defined, use it.
233 * sysdeps/x86_64/__longjmp.S: Likewise.
235 * version.h: Bump for 2.11 development.
237 * elf/check-execstack.c: New file.
238 * elf/Makefile: Add rules to build and run check-execstack.
240 2009-05-10 Ulrich Drepper <drepper@redhat.com>
242 * version.h (VERSION): Bump to 2.10.1.
244 * nss/getXXbyYY_r.c: If NO_COMPAT_NEEDED is defined don't define any
245 compatibility functions.
246 * nss/getXXent_r.c: Likewise.
247 * gshadow/getsgent_r.c: Define NO_COMPAT_NEEDED.
248 * gshadow/getsgnam_r.c: Likewise.
249 * gshadow/Version: Remove duplicate entries.
251 * sysdeps/x86_64/cacheinfo.c (intel_02_cache_info): Add missing entries
252 for recent processor.
253 * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_cache_info):
256 2009-05-09 Ulrich Drepper <drepper@redhat.com>
258 * version.h (VERSION): Bump for 2.10 release.
259 * include/features.h (__GLIBC_MINOR__): Bump to 10.
261 * Makeconfig: Undo last change. Add asflags-cpu to ASFLAGS in the
262 same place we add ASFLAGS-config.
264 2009-05-05 Aurelien Jarno <aurelien@aurel32.net>
267 * resolv/res_query.c (__libc_res_nquery): If one query returns NOTIMP
268 or FORMERR and the other NOERROR, don't raise an error.
270 2009-05-06 Ryan S. Arnold <rsa@us.ibm.com>
273 * Makeconfig (+asflags): New variable based upon ASFLAG or
275 (ASFLAGS): Add override to set ASFLAGS to +asflags.
276 * config.make.in (asflags-cpu): Add variable based upon
277 @libc_cv_cc_submachine@ to propagate -mcpu=CPU from --with-cpu=CPU to
279 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/setcontext.S:
280 Remove unneeded file now that the assembler emits _ARCH_PWR6 and
281 recognizes power6 instruction set due to passing -mcpu=power6 from
282 --with-cpu=power6 when compiling .S files.
283 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/swapcontext.S:
285 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/setcontext.S:
287 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/swapcontext.S:
290 2009-05-09 Jakub Jelinek <jakub@redhat.com>
292 * string/stratcliff.c (do_test): Test for zero length
293 STRNLEN, MEMCHR, STRNCPY, STPNCPY, MEMCPY, MEMPCPY and memccpy
294 at the end of the page.
296 2009-05-08 Ulrich Drepper <drepper@redhat.com>
298 * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_AT_RANDOM.
300 * sysdeps/x86_64/memchr.S: Handle invalid buffer pointers when
303 * po/da.po: Update from translation team.
305 2009-05-05 Jakub Jelinek <jakub@redhat.com>
307 * io/sys/stat.h (fstatat64): Guard prototype with __USE_LARGEFILE64,
308 guard __extern_inline wrapper with __USE_ATFILE instead of __USE_GNU.
310 2009-05-05 Ulrich Drepper <drepper@redhat.com>
312 * sysdeps/unix/sysv/linux/sys/personality.h: Add ADDR_COMPAT_LAYOUT
313 and READ_IMPLIES_EXEC.
315 2009-05-04 Ulrich Drepper <drepper@redhat.com>
317 * po/da.po: Update from translation team.
319 2009-04-29 Jakub Jelinek <jakub@redhat.com>
321 * sysdeps/unix/sysv/linux/ifaddrs.c: Revert unintended 2008-08-12
324 2009-04-27 Jakub Jelinek <jakub@redhat.com>
326 * locale/programs/locarchive.c (create_archive): Add MAP_PRIVATE
327 to MAP_ANON in PROT_NONE mmap64 call.
328 (open_archive): Likewise.
329 (file_data_available_p): Use mmap64 instead of mremap.
330 (enlarge_archive): Likewise. Update head if ah->addr changed.
331 Attempt to reserve address space after mmap64 region.
333 2009-04-26 Ulrich Drepper <drepper@redhat.com>
335 * sysdeps/ieee754/dbl-64/s_expm1.c: Set errno for overflow.
336 * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
337 * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
339 * sysdeps/ieee754/k_standard.c (__kernel_standard): Pole errors in
340 atanh should set ERANGE.
343 * elf/dl-runtime.c (_dl_fixup): Use DL_FIXUP_VALUE_ADDR to access
344 result of lookup to make call to implement STT_GNU_IFUNC.
345 (_dl_profile_fixup): Likewise.
346 Patch by H.J. Lu <hjl.tools@gmail.com>.
348 * nscd/connections.c (send_ro_fd): Define temporary variable to avoid
351 * sysdeps/unix/sysv/linux/dl-osinfo.h (dl_fatal): Remove inline
354 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Don't define
355 label if it is not used.
357 * elf/dl-profile.c (_dl_start_profile): Define real-type variant
358 of gmon_hist_hdr and gmon_hdr structures and use them.
359 * elf/sprof.c: Likewise.
361 * elf/dl-load.c (open_verify): Add temporary variable to avoid
364 * nscd/nscd_helper.c (get_mapping): Avoid casts to avoid warnings.
366 * sunrpc/clnt_raw.c (clntraw_private_s): Use union in definition
369 * inet/rexec.c (rexec_af): Make sa2 a union to avoid warnings.
370 * inet/rcmd.c (rcmd_af): Make from a union of the various needed types
372 (iruserok_af): Use ss_family instead of casts.
374 * gmon/gmon.c (write_hist): Define real-type variant of
375 gmon_hist_hdr structure and use it.
376 (write_gmon): Likewise for gmon_hdr.
378 * sysdeps/unix/sysv/linux/readv.c: Avoid declaration of replacement
379 function if we are not going to define it.
380 * sysdeps/unix/sysv/linux/writev.c: Likewise.
382 * inet/inet6_option.c (option_alloc): Add temporary variable to
385 * libio/strfile.h (struct _IO_streambuf): Use correct type and
386 name of VTable element.
387 * libio/iovsprintf.c: Avoid casts to avoid warnings.
388 * libio/iovsscanf.c: Likewise.
389 * libio/vasprintf.c: Likewise.
390 * libio/vsnprintf.c: Likewise.
391 * stdio-common/isoc99_vsscanf.c: Likewise.
392 * stdlib/strfmon_l.c: Likewise.
393 * debug/vasprintf_chk.c: Likewise.
394 * debug/vsnprintf_chk.c: Likewise.
395 * debug/vsprintf_chk.c: Likewise.
397 * nss/nsswitch.c (__nss_lookup_function): En/Decrypt cached
400 2009-04-26 Jakub Jelinek <jakub@redhat.com>
402 * sysdeps/ieee754/dbl-64/s_tan.c (tan): Fix -Wsequence-point warnings.
404 2009-04-25 Ulrich Drepper <drepper@redhat.com>
406 * posix/bits/posix1_lim.h: Cleanup namespace a bit.
408 * sysdeps/i386/fpu/s_tan.S: Set errno for ±Inf.
409 * sysdeps/i386/fpu/s_tanf.S: Likewise.
410 * sysdeps/i386/fpu/s_tanl.S: Likewise.
411 * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
412 * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
413 * sysdeps/x86_64/fpu/s_tanl.S: Likewise.
414 * math/libm-test.inc: Add tests for errno after tan calls with
417 * sysdeps/ieee754/k_standard.c (__kernel_standard): Use correct
418 errno value vor pow(+-0,neg).
419 * math/libm-test.inc (pow_test): Add tests for errno value for
422 * math/w_fmod.c: Also handle x=±Inf as error.
423 * math/w_fmodf.c: Likewise.
424 * math/w_fmodl.c: Likewise.
425 * math/libm-test.inc (fmod_test): Add tests for errno after calls for
428 * sysdeps/i386/fpu/s_cos.S: Set errno for ±Inf.
429 * sysdeps/i386/fpu/s_cosf.S: Likewise.
430 * sysdeps/i386/fpu/s_cosl.S: Likewise.
431 * sysdeps/i386/fpu/s_sin.S: Likewise.
432 * sysdeps/i386/fpu/s_sinf.S: Likewise.
433 * sysdeps/i386/fpu/s_sinl.S: Likewise.
434 * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
435 * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
436 * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
437 * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
438 * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
439 * sysdeps/x86_64/fpu/s_cosl.S: Likewise.
440 * sysdeps/x86_64/fpu/s_sinl.S: Likewise.
441 * math/libm-test.inc: Add tests for errno after sin/cos calls with
444 * stdlib/strtod_l.c (round_and_return): We have to set errno to
445 ERANGE for underflows.
446 * stdlib/tst-strtod.c (tests): Two tests should set errno to ERANGE.
448 * stdio-common/stdio_lim.h.in (L_cuserid): Not part of POSIX since
451 * libio/tst-widetext.input: Remove surrogates.
453 * include/features.h: _POSIX_C_SOURCE >= 200112L implies C99.
455 * sysdeps/ieee754/k_standard.c (__kernel_standard): Pole errors
456 for lgamma should set errno to ERANGE, not EDOM.
457 * math/libm-test.inc (lgamma_test): Check errno for pole errors.
459 2009-04-24 Ulrich Drepper <drepper@redhat.com>
462 * iconv/gconv_simple.c (BODY for UTF-8 to INTERNAL): Don't accept
465 * locale/programs/locarchive.c (enlarge_archive): Conserve address
466 space when temporarily mapping the whole content of the old file.
469 * misc/hsearch_r.c (hsearch_r): Add back ensurance that hval is
472 2009-04-24 Jakub Jelinek <jakub@redhat.com>
474 * iconvdata/sjis.c (BODY): Don't advance inptr before
475 STANDARD_FROM_LOOP_ERR_HANDLER (2) for 2 byte invalid input.
476 Use STANDARD_FROM_LOOP_ERR_HANDLER with 2 instead of 1 for
479 2009-04-24 Ulrich Drepper <drepper@redhat.com>
481 * locale/locarchive.h (struct locarhandle): Rename len field to
482 mmaped and add new reserved field.
483 * locale/programs/locarchive.c (RESERVE_MMAP_SIZE): Define.
484 (create_archive): Reserve address space and then map file into it.
485 (open_archive): Likewise.
486 (file_data_available_p): New function.
487 (compare_from_file): New function.
488 (close_archive): Adjust to member name changes.
489 (add_locale): Before comparing locale data, check it is mapped.
490 Otherwise fall back to reading from the file.
492 2009-04-23 H.J. Lu <hongjiu.lu@intel.com>
494 * stdio-common/psiginfo.c: Include <errno.h>.
496 2009-04-23 Ulrich Drepper <drepper@redhat.com>
499 * stdlib/random_r.c (__srandom_r): Change type of word to int32_t
500 to get consistency between 32 and 64 bit architectures.
503 * sysdeps/unix/make-syscalls.sh: Add rule to create target
504 directory for dummy syscall rules.
505 Patch by Chris Steinbroner <hesh@pobox.com>.
507 2009-04-23 Aurelien Jarno <aurelien@aurel32.net>
510 * sysdeps/unix/sysv/linux/sys/mount.h: Define MNT_DETACH and
513 2009-04-23 Ulrich Drepper <drepper@redhat.com>
515 * sysdeps/unix/sysv/linux/preadv.c: The kernel API changed. Adjust.
516 * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
518 2009-04-23 Jakub Jelinek <jakub@redhat.com>
520 * sysdeps/posix/pwritev.c (PWRITEV): Fix up comment. Copy
521 data from vector to temporary buffer and call PWRITEV after it
522 instead of vice versa.
523 * sysdeps/posix/preadv.c: Fix up comment.
524 * misc/preadv.c: Likewise.
525 * misc/preadv64.c: Likewise.
526 * misc/pwritev.c: Likewise.
527 * misc/pwritev64.c: Likewise.
528 * misc/sys/uio.h (preadv, pwritev, preadv64, pwritev64): Likewise.
530 2009-04-23 Ulrich Drepper <drepper@redhat.com>
532 * shadow/sgetspent_r.c (__sgetspent_r): Recognize too small buffers.
534 * shadow/Makefile (tests): Add tst-shadow.
535 * shadow/tst-shadow.c: New file.
538 * gshadow/Makefile: New file.
539 * gshadow/Versions: New file.
540 * gshadow/fgetsgent.c: New file.
541 * gshadow/fgetsgent_r.c: New file.
542 * gshadow/getsgent.c: New file.
543 * gshadow/getsgent_r.c: New file.
544 * gshadow/getsgnam.c: New file.
545 * gshadow/getsgnam_r.c: New file.
546 * gshadow/gshadow.h: New file.
547 * gshadow/putsgent.c: New file.
548 * gshadow/sgetsgent.c: New file.
549 * gshadow/sgetsgent_r.c: New file.
550 * gshadow/tst-gshadow.c: New file.
551 * include/gshadow.h: New file.
552 * Makeconfig (all-subdirs): Add gshadow.
553 * Makefile (installed-headers): Add gshadow/gshadow.h.
554 * nss/Makefile (databases): Add sgrp.
555 * nss/Versions: Add gshadow functions as private exports.
556 * nss/nsswitch.conf: Add gshadow entry.
557 * nss/sgrp-lookup.c: New file.
558 * nss/nss_files/files-parse.c: Add STRING_LIST macro. Rewrite
559 parse_list to handle STRING_LIST and TRAILING_LIST_PARSER.
560 * nss/nss_files/files-sgrp.c: New file.
561 * sysdeps/generic/paths.h: Add _PATH_GSHADOW.
562 * sysdeps/unix/sysv/linux/paths.h: Likewise.
564 2009-04-22 Ulrich Drepper <drepper@redhat.com>
566 * stdio-common/printf.h: Add missing const to register_printf_modifier.
567 * stdio-common/reg-modifier.c: Likewise.
569 2009-04-22 Andrew Stubbs <ams@codesourcery.com>
571 * sysdeps/sh/sh4/setjmp.S (__sigsetjmp): Adjust JB_SIZE when there
574 2009-04-20 Ulrich Drepper <drepper@redhat.com>
577 * sysdeps/unix/sysv/linux/sys/timex.h: Add definitions from kernel
578 headers up to 2.6.30.
580 * po/ca.po: Update from translation team.
582 2009-04-19 Ulrich Drepper <drepper@redhat.com>
585 * elf/dl-open.c (dl_open_worker): We cannot guarantee that we can load
586 an object that uses static TLS if the TLS modid is higher than the
587 reserve we always allocate. At least for multi-threaded code.
589 2009-04-18 Ulrich Drepper <drepper@redhat.com>
591 * stdlib/strfmon_l.c (__vstrfmon_l): Don't wrap when computing width.
592 Numerically stable check for valid width.
594 * locale/programs/locarchive.c (open_archive): Map the entire file
595 and not just the administrative data.
596 (add_locale): When we find a hash sum match compare the content
599 * malloc/malloc.c (malloc_info): Output address space information.
601 2009-04-17 Ulrich Drepper <drepper@redhat.com>
603 * malloc/malloc.c (malloc_info): Also output system memory information.
605 * sysdeps/unix/sysv/linux/kernel-features.h: All supported
606 architectures have preadv/pwritev in 2.6.30.
608 * sysdeps/posix/preadv.c: Reading of zero bytes is no error.
609 * sysdeps/posix/readv.c: Likewise.
610 Reported by Markus Armbruster <armbru@redhat.com>.
612 * malloc/hooks.c (top_check): Force hook value into register.
614 2009-04-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
616 * elf/rtld.c (dl_main): Really call _dl_sysdep_start_cleanup after all
617 calls to _dl_relocate_object.
619 2009-04-16 Ulrich Drepper <drepper@redhat.com>
622 * malloc/malloc.c (force_reg): Define.
623 (sYSMALLOc): Load hook variable into variable
624 before test and force into register.
626 (public_mALLOc): Force hook value into register.
627 (public_fREe): Likewise.
628 (public_rEALLOc): Likewise.
629 (public_mEMALIGn): Likewise.
630 (public_vALLOc): Likewise.
631 (public_pVALLOc): Likewise.
632 (public_cALLOc): Likewise.
633 (__posix_memalign): Likewise.
634 * malloc/arena.c (ptmalloc_init): Load hook variable into variable
635 before test and force into register.
636 * malloc/hooks.c (top_check): Likewise.
637 (public_sET_STATe): Pretty printing.
639 * resolv/res_send.c (send_dg): Don't just ignore the result we got
640 in case we only receive one reply in single-request mode.
642 2009-04-16 Jakub Jelinek <jakub@redhat.com>
644 * elf/dl-open.c (_dl_open): Bump GL(dl_nns) to 1 if no libraries
645 are dlopened in statically linked program even for __LM_ID_CALLER.
647 2009-04-16 Ulrich Drepper <drepper@redhat.com>
649 * resolv/res_send.c (send_dg): Don't switch into single-request
650 mode if we already are in it.
652 2009-04-15 Ulrich Drepper <drepper@redhat.com>
654 * sysdeps/unix/sysv/linux/getsysstats.c (next_line): Make sure there
655 are always at least 4 bytes in the returned line.
657 2009-04-15 Jakub Jelinek <jakub@redhat.com>
659 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Check
660 __libc_use_alloca (8192), if the stack is too small use 512 bytes
661 instead of 8K. Stop searching in /proc/stat after hitting first
662 line not starting with cpu.
663 (next_line): Truncate too long
664 lines at buffer size * 3/4 instead of pretending there were line
665 breaks inside of large lines.
667 2009-04-14 Ulrich Drepper <drepper@redhat.com>
669 * sysdeps/x86_64/mp_clz_tab.c: New file.
671 2009-03-17 Ryan S. Arnold <rsa@us.ibm.com>
672 Ulrich Drepper <drepper@redhat.com>
674 * sysdeps/unix/sysv/linux/fallocate.c: Handle old kernel headers.
675 * sysdeps/unix/sysv/linux/fallocate64.c: Likewise.
676 * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: Likewise.
678 2009-03-25 Andrew Stubbs <ams@codesourcery.com>
680 * sysdeps/sh/libc-tls.c: New file.
682 * sysdeps/sh/bits/setjmp.h (__jmp_buf): Give name to structure type.
684 2009-04-14 Roland McGrath <roland@redhat.com>
686 * elf/elf.h: Add various missing ARM constants, to match binutils.
688 2009-04-14 Ulrich Drepper <drepper@redhat.com>
690 Optimizations from GMP.
691 * sysdeps/x86_64/add_n.S: New file.
692 * sysdeps/x86_64/addmul_1.S: New file.
693 * sysdeps/x86_64/lshift.S: New file.
694 * sysdeps/x86_64/mul_1.S: New file.
695 * sysdeps/x86_64/rshift.S: New file.
696 * sysdeps/x86_64/sub_n.S: New file.
697 * sysdeps/x86_64/submul_1.S: New file.
699 2009-04-14 Jakub Jelinek <jakub@redhat.com>
701 * sysdeps/powerpc/powerpc32/elf/start.S: Ensure .data is non-empty.
702 * sysdeps/powerpc/powerpc64/elf/start.S: Likewise.
703 * sysdeps/sparc/sparc32/elf/start.S: Likewise.
704 * sysdeps/sparc/sparc64/elf/start.S: Likewise.
706 2009-04-14 Ulrich Drepper <drepper@redhat.com>
708 * sysdeps/unix/sysv/linux/kernel-features.h: SH also has
711 2009-04-13 Ulrich Drepper <drepper@redhat.com>
713 * sysdeps/x86-64/strrchr.S: New file.
715 2009-04-10 Ulrich Drepper <drepper@redhat.com>
717 * stdio-common/printf.h (struct printf_info): Add user element.
718 New types printf_arginfo_size_function, printf_va_arg_function.
719 Declare register_printf_specifier, register_printf_modifier,
720 register_printf_type.
721 * stdio-common/printf-parse.h (struct printf_spec): Add size element.
722 (union printf_arg): Add pa_user element.
723 Adjust __printf_arginfo_table type.
724 Add __printf_va_arg_table, __printf_modifier_table,
725 __handle_registered_modifier_mb, and __handle_registered_modifier_wc
727 * stdio-common/printf-parsemb.c: Recognize registered modifiers.
728 If registered arginfo call failed try normal specifier.
729 * stdio-common/printf-prs.c: Pass additional parameter to arginfo
731 * stdio-common/Makefile (routines): Add reg-modifier and reg-type.
732 * stdio-common/Versions: Export register_printf_modifier,
733 register_printf_type, and register_printf_specifier for GLIBC_2.10.
734 * stdio-common/reg-modifier.c: New file.
735 * stdio-common/reg-type.c: New file.
736 * stdio-common/reg-printf.c (__register_printf_specifier): New
737 function. Mostly the old __register_printf_function function but
738 uses locking and type of third parameter changed.
739 (__register_printf_function): Implement using
740 __register_printf_specifier.
741 * stdio-common/vfprintf.c (vfprintf): Collect argument sizes in
742 calls to arginfo functions. Allocate enough memory for user-defined
743 types. Call new va_arg functions to get user-defined types.
744 Try installed handlers even for existing format specifiers first.
746 2009-04-09 Ulrich Drepper <drepper@redhat.com>
748 * sysdeps/x86_64/rawmemchr.S: New file.
750 * stdio-common/vfprintf.c (vfprintf): Slightly more compact code.
751 Simplified code and possible copy problem fixed.
753 * sysdeps/unix/sysv/linux/preadv.c: Avoid prototype for static
754 function if it is not defined. Add some necessary casts.
755 * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
757 * sysdeps/unix/sysv/linux/kernel-features.h: SPARC and IA64 also
758 have preadv/pwritev in 2.6.30.
760 2009-04-08 Ulrich Drepper <drepper@redhat.com>
762 * malloc/malloc.c (malloc_info): New function.
763 * malloc/malloc.h: Declare it.
764 * malloc/Versions: Export malloc_info for GLIBC_2.10.
766 * sysdeps/unix/sysv/linux/preadv64.c (PREAD): Use __libc_pread64
769 * malloc/malloc.c (_int_realloc): Add parameter with old block
770 size. Remove duplicated test. Don't handle mmap'ed blocks here.
772 * malloc/hooks.c (realloc_check): Adjust _int_realloc call.
774 2009-04-07 Ulrich Drepper <drepper@redhat.com>
776 * sysdeps/x86_64/strchrnul.S: New file.
778 * crypt/Makefile (LDLIBS-crypt.so): Use this variable instead of
779 depending libcrypt on -lfreebl3.
781 * sysdeps/unix/sysv/linux/kernel-features.h: Power also has
782 preadv/pwritev in 2.6.30.
784 * resolv/nss_dns/dns-host.c (getanswer_r): Use strcasecmp
785 instead of __strcasecmp.
787 * string/stratcliff.c (do_test): Add memchr tests..
788 * wcsmbs/wcsatcliff.c (MEMCHR): Define.
789 * sysdeps/x86_64/memchr.S: Fix handling of end of buffer after
790 first read quad word.
792 2009-04-06 Ulrich Drepper <drepper@redhat.com>
794 * string/strverscmp.c (__strverscmp): Fix last cleanups.
795 * string/tst-svc.input: Add new test case.
796 * string/tst-svc.expect: Adjust.
797 * string/Makefile: Don't ignore tst-svc error.
799 * sysdeps/x86_64/memchr.S: New file.
801 * resolv/resolv.h (RES_SNGLKUP): Define.
802 * resolv/res_init.c (res_setoptions): Recognize single-request option.
803 * resolv/res_send.c (send_dg): If we sent two requests at once and
804 only get one reply before timeout switch to mode where we send the
805 second request only after the first answer has been received.
807 2009-04-05 Ulrich Drepper <drepper@redhat.com>
809 * sysdeps/x86_64/strlen.S: Optimize by using SSE2 instructions.
810 * sysdeps/x86_64/strchr.S: Likewise.
812 2009-04-03 Ulrich Drepper <drepper@redhat.com>
814 * configure.in: We need to test for the compiler earlier.
816 * misc/Makefile (routines): Add preadv, preadv64, pwritev, pwritev64.
817 * misc/Versions: Export preadv, preadv64, pwritev, pwritev64 for
819 * misc/sys/uio.h: Declare preadv, preadv64, pwritev, pwritev64.
820 * sysdeps/unix/sysv/linux/kernel-features.h: Add entries for preadv
822 * misc/preadv.c: New file.
823 * misc/preadv64.c: New file.
824 * misc/pwritev.c: New file.
825 * misc/pwritev64.c: New file.
826 * sysdeps/posx/preadv.c: New file.
827 * sysdeps/posx/preadv64.c: New file.
828 * sysdeps/posx/pwritev.c: New file.
829 * sysdeps/posx/pwritev64.c: New file.
830 * sysdeps/unix/sysv/linux/preadv.c: New file.
831 * sysdeps/unix/sysv/linux/preadv64.c: New file.
832 * sysdeps/unix/sysv/linux/pwritev.c: New file.
833 * sysdeps/unix/sysv/linux/pwritev64.c: New file.
834 * sysdeps/unix/sysv/linux/wordsize-64/preadv64.c: New file.
835 * sysdeps/unix/sysv/linux/wordsize-64/pwritev64.c: New file.
837 * sysdeps/unix/sysv/linux/readv.c (__libc_readv): Fix calling of
839 * sysdeps/unix/sysv/linux/writev.c (__libc_writev): Likewise.
841 * sysdeps/unix/sysv/linux/kernel-features.h: Define
842 __ASSUME_COMPLETE_READV_WRITEV.
843 * sysdeps/unix/sysv/linux/readv.c: No need for userlevel fallback
845 * sysdeps/unix/sysv/linux/writev.c: Likewise.
847 * sysdeps/posix/readv.c: Since read is a cancellation point we have
848 to free a possible malloced buffer in case of cancellation.
849 * sysdeps/posix/writev.c: Likewise for write.
851 2009-04-02 Ulrich Drepper <drepper@redhat.com>
853 * sysdeps/unix/sysv/linux/bits/socket.h: Add missing protocol numbers.
855 * configure.in: Recognize --enable-nss-crypt.
856 * config.make.in: Add nss-crypt entry.
857 * crypt/Makefile: If nss-crypt==yes, don't build md5.c, sha256.c,
858 sha512.c. Don't run md5test, sha256test, sha512test. Pass -DUSE_NSS
859 and include path for NSS directory to compiler for md5-crypt,
860 sha256-crypt, sha512-crypt. Link libcrypt.so with -lfreebl3.
861 * crypt/md5-crypt.c: If USE_NSS is defined, don't use local hash
862 function implementation, use NSS. Introduce wrappers around the
863 hash function calls. Little code size optimization.
864 * crypt/sha256-crypt.c: Likewise.
865 * crypt/sha512-crypt.c: Likewise.
866 * scripts/check-local-headers.sh: Ignore nss3 directory.
868 * configure.in: Rename pic_default to libc_cv_pic_default.
869 * config.make.in: Likewise.
871 2009-04-01 Roland McGrath <roland@redhat.com>
873 * elf/elf.h (R_SPARC_GLOB_JMP): New macro.
874 (R_SPARC_GOTDATA_HIX22, R_SPARC_GOTDATA_LOX10): New macros.
875 (R_SPARC_GOTDATA_OP_HIX22, R_SPARC_GOTDATA_OP_LOX10): Likewise.
876 (R_SPARC_GOTDATA_OP, R_SPARC_H34): Likewise.
877 (R_SPARC_SIZE32, R_SPARC_SIZE64): Likewise.
878 (R_SPARC_GNU_VTINHERIT, R_SPARC_GNU_VTENTRY, R_SPARC_REV32): Likewise.
879 (R_SPARC_NUM): Update.
880 From Dave Miller <davem@davemloft.net>.
882 2009-04-01 Ulrich Drepper <drepper@redhat.com>
884 * sysdeps/unix/sysv/linux/sys/eventfd.h (EFD_SEMAPHORE): Define.
886 2009-03-31 Ulrich Drepper <drepper@redhat.com>
888 * elf/dl-open.c: Keep track of used name spaces and only iterate over
889 those which are used.
890 * elf/dl-addr.c: Likewise.
891 * elf/dl-caller.c: Likewise.
892 * elf/dl-fini.c: Likewise.
893 * elf/dl-iteratephdr.c: Likewise.
894 * elf/dl-libc.c: Likewise.
895 * elf/dl-load.c: Likewise.
896 * elf/dl-support.c: Likewise.
897 * elf/dl-sym.c: Likewise.
898 * elf/rtld.c: Likewise.
899 * sysdeps/generic/ldsodefs.h: Likewise.
901 * elf/dl-load.c: Remove support for systems without MAP_ANON.
902 * elf/dl-minimal.c: Likewise.
903 * elf/dl-misc.c: Likewise.
904 * elf/rtld.c: Likewise.
905 * sysdeps/generic/ldsodefs.h: Likewise.
907 2009-03-30 Ulrich Drepper <drepper@redhat.com>
909 * elf/do-lookup.h (do_lookup_x): Minor optimization and cleanup.
910 Avoid reuse of complex expression.
912 * po/fr.po: Update from translation team.
914 2009-03-16 Ulrich Drepper <drepper@redhat.com>
916 * include/dirent.h: Yet more changes to match sort function type
918 * sysdeps/unix/sysv/linux/i386/alphasort64.c: Likewise.
919 * sysdeps/unix/sysv/linux/i386/olddirent.h: Likewise.
920 * sysdeps/unix/sysv/linux/i386/versionsort64.c: Likewise.
922 2009-03-16 Thomas Schwinge <tschwinge@gnu.org>
924 * dirent/scandir64.c (scandir64): Adjust declaration to type change.
926 2009-03-16 Ulrich Drepper <drepper@redhat.com>
928 * nscd/connections.c (restart): Try to preserve the process name
929 by reading the /proc/self/exe symlink and using the return name.
930 Patch by Jeff Bastian <jbastian@redhat.com>.
932 2009-03-15 Ulrich Drepper <drepper@redhat.com>
935 * elf/dl-load.c (_dl_map_object_from_fd): Only call audit hooks
936 if we are not loading a new audit library.
937 * elf/dl-reloc (_dl_relocate_object): Third parameter is now a bitmask.
938 Only use profiling trampoline for auditing if we are not relocating
940 * elf/dl-open.c (dl_open_worker): Adjust _dl_relocate_object call.
941 * elf/rtld.c: Likewise.
942 * sysdeps/generic/ldsodefs.h: Adjust _dl_relocate_object prototype.
944 * elf/rtld.c (dl_main): Extend help message for --audit option.
947 * dirent/dirent.h: Adjust prototypes of scandir, scandir64, alphasort,
948 alphasort64, versionsort, and versionsort64 to POSIX 2008.
949 * dirent/alphasort.c: Adjust implementation to type change.
950 * dirent/alphasort64.c: Likewise.
951 * dirent/scandir.c: Likewise.
952 * dirent/versionsort.c: Likewise.
953 * dirent/versionsort64.c: Likewise.
954 * sysdeps/wordsize-64/alphasort.c: Add hack to hide alphasort64
956 * sysdeps/wordsize-64/versionsort.c: Add hack to hide versionsort64
960 * inet/inet6_rth.c (inet6_rth_reverse): Compute number of segments
961 correctly. Set segleft member in output as required.
962 Patch partly by Yang Hongyang <yanghy@cn.fujitsu.com>.
963 * inet/tst-inet6_rth.c (do_test): Add tests for inet6_rth_reverse.
966 * inet/inet6_rth.c (inet6_rth_add): Add some error checking.
967 Patch mostly by Yang Hongyang <yanghy@cn.fujitsu.com>.
968 * inet/Makefile (tests): Add tst-inet6_rth.
969 * inet/tst-inet6_rth.c: New file.
972 * string/strlen.c (strlen): Fix omission in the expression to test
975 2009-03-14 Ulrich Drepper <drepper@redhat.com>
977 * crypt/sha256test.c (main): Perform 100,000 'a' test in a second way.
979 * elf/dl-runtime.c (reloc_offset): Define.
980 (reloc_index): Define.
981 (_dl_fixup): Rename reloc_offset parameter to reloc_arg.
982 (_dl_fixup_profile): Likewise. Use reloc_index instead of
983 computing index from reloc_offset.
984 (_dl_call_pltexit): Likewise.
985 * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve): Just pass
986 the relocation index to _dl_fixup.
987 (_dl_runtime_profile): Likewise for _dl_fixup_profile and
989 * sysdeps/x86_64/dl-runtime.c: New file.
992 * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix
993 alignment of La_x86_64_regs. Store xmm parameters.
994 Patch mostly by Jiri Olsa <olsajiri@gmail.com>.
997 * string/strverscmp.c (__strverscmp): Fix case of different digits
998 in fractional part of string.
999 Patch by Jingyu Liu <jyliu@fortinet.com>.
1000 * string/Makefile (tests): Add tst-svc2.
1001 * string/tst-svc2.c: New file.
1003 * string/strverscmp.c (__strverscmp): Optimize size of tables.
1005 * locale/iso-639.def: Add Min Nan.
1007 2009-03-11 Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
1010 * elf/dl-sysdep.c (_dl_show_auxv): Add support for AT_BASE_PLATFORM.
1012 2009-03-14 Ulrich Drepper <drepper@redhat.com>
1014 * elf/dl-sysdep.c (auxvars): Compress data structure.
1016 * sysdeps/i386/dl-machine.h (elf_machine_rel): Implement
1017 STT_GNU_IFUNC handling.
1018 (elf_machine_rela): Likewise.
1020 2009-03-13 Ulrich Drepper <drepper@redhat.com>
1022 * config.h.in (USE_MULTIARCH): Define.
1023 * configure.in: Handle --enable-multi-arch.
1024 * elf/dl-runtime.c (_dl_fixup): Handle STT_GNU_IFUNC.
1025 (_dl_fixup_profile): Likewise.
1026 * elf/do-lookup.c (dl_lookup_x): Likewise.
1027 * sysdeps/x86_64/dl-machine.h: Handle STT_GNU_IFUNC.
1028 * elf/elf.h (STT_GNU_IFUNC): Define.
1029 * include/libc-symbols.h (libc_ifunc): Define.
1030 * sysdeps/x86_64/cacheinfo.c: If USE_MULTIARCH is defined, use the
1031 framework in init-arch.h to get CPUID values.
1032 * sysdeps/x86_64/multiarch/Makefile: New file.
1033 * sysdeps/x86_64/multiarch/init-arch.c: New file.
1034 * sysdeps/x86_64/multiarch/init-arch.h: New file.
1035 * sysdeps/x86_64/multiarch/sched_cpucount.c: New file.
1037 * config.make.in (experimental-malloc): Define.
1038 * configure.in: Handle --enable-experimental-malloc.
1039 * malloc/Makefile: Handle experimental-malloc flag.
1040 * malloc/malloc.c: Implement PER_THREAD and ATOMIC_FASTBINS features.
1041 * malloc/arena.c: Likewise.
1042 * malloc/hooks.c: Likewise.
1043 * malloc/malloc.h: Define M_ARENA_TEST and M_ARENA_MAX.
1045 2009-03-11 Ulrich Drepper <drepper@redhat.com>
1047 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Add branch
1048 prediction. A few size optimizations.
1050 2009-03-10 Ulrich Drepper <drepper@redhat.com>
1052 * time/tzset.c: Optimize a bit for size.
1054 2009-03-10 Jakub Jelinek <jakub@redhat.com>
1056 * include/stdio.h (fmemopen): Add libc_hidden_proto.
1057 * libio/fmemopen.c (fmemopen): Add libc_hidden_def.
1059 * elf/sprof.c: Avoid warning about multi-line comment.
1061 2009-03-10 Ulrich Drepper <drepper@redhat.com>
1063 * time/tzset.c (__tzset_parse_tz): Use correct string when parsing
1065 * time/tst-posixtz.c: Add tests for quoted timezone names.
1067 2009-03-10 Jakub Jelinek <jakub@redhat.com>
1069 * posix/unistd.h (_POSIX_VERSION, _POSIX2_VERSION, _POSIX2_C_BIND,
1070 _POSIX2_C_DEV, _POSIX2_SW_DEV, _POSIX2_LOCALEDEF): Define to
1071 200809L instead of 200112L.
1072 (_XOPEN_VERSION): For __USE_XOPEN2K8 define to 700.
1073 * posix/tst-sysconf.c (STDVER): Define to 200809L instead of 200112L.
1075 * stdlib/quick_exit.c (quick_exit): Pass &__quick_exit_funcs
1076 instead of __quick_exit_funcs to __run_exit_handlers.
1077 * stdlib/at_quick_exit.c (at_quick_exit): Add attribute_hidden.
1078 * stdlib/exit.h (__run_exit_handlers): Add noreturn attribute.
1079 (__cxa_at_quick_exit): Remove attribute_hidden.
1080 * stdlib/exit.c (exit): Pass &__exit_funcs instead of __exit_funcs
1081 to __run_exit_handlers.
1082 * stdlib/cxa_at_quick_exit.c (__cxa_at_quick_exit): Remove
1085 2009-03-10 Ulrich Drepper <drepper@redhat.com>
1087 * po/id.po: Update from translation team.
1089 2009-02-18 Jakub Jelinek <jakub@redhat.com>
1091 * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S: Use
1092 .machine push; .machine "power6" and .machine pop around mtfsf
1093 insns outside of _ARCH_PWR6 define.
1094 * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S: Likewise.
1095 * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S:
1097 * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S:
1099 * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (_SET_DI_FPSCR): Likewise.
1100 * sysdeps/powerpc/fpu/fenv_libc.h (fesetenv_register,
1101 relax_fenv_state): Likewise.
1103 2009-03-08 Ulrich Drepper <drepper@redhat.com>
1105 * stdlib/Makefile (routines): Add quick_exit, at_quick_exit, and
1107 (static-only-routines): Add at_quick_exit.
1108 * stdlib/Versions: Export quick_exit and __cxa_at_quick_exit for
1110 * stdlib/quick_exit.c: New file.
1111 * stdlib/at_quick_exit.c: New file.
1112 * stdlib/cxa_at_quick_exit.c: New file.
1113 * stdlib/cxa_atexit.c (__cxa_atexit): Move body to new function. Call
1115 (__internal_atexit): New function.
1116 (__new_exitfn): Now takes parameter to point to the list to use.
1117 * stdlib/cxa_finalize.c: Remove quick_exit handlers, don't call them.
1118 * stdlib/exit.c (__run_exit_handlers): New function. Split from...
1119 (exit): ...here. Just call __run_exit_handlers appropriately.
1120 * stdlib/exit.h: Declare __quick_exit_funcs, __run_exit_handlers,
1121 __internal_atexit, __cxa_at_quick_exit. Adjust __new_exitfn.
1122 * stdlib/on_exit.c: Adjust call to __new_exitfn.
1123 * stdlib/stdlib.h: Declare at_quick_exit and quick_exit.
1125 * po/id.po: Update from translation team.
1127 2009-03-07 Ulrich Drepper <drepper@redhat.com>
1129 * po/ru.po: Update from translation team.
1131 2009-03-04 Ulrich Drepper <drepper@redhat.com>
1133 * po/nl.po: Update from translation team.
1135 2009-03-03 Ulrich Drepper <drepper@redhat.com>
1137 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Declare fallocate{,64}.
1138 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
1139 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
1140 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
1141 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
1142 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
1143 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
1145 * po/pl.po: Update from translation team.
1147 2009-03-02 Ulrich Drepper <drepper@redhat.com>
1150 * sysdeps/unix/sysv/linux/fallocate.c: New file.
1151 * sysdeps/unix/sysv/linux/fallocate64.c: New file.
1152 * sysdeps/unix/sysv/linux/wordsize-64/fallocate64.c: New file.
1153 * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: New file.
1154 * sysdeps/unix/sysv/linux/i386/fallocate64.c: New file.
1155 * sysdeps/unix/sysv/linux/i386/fallocate.c: New file.
1156 * sysdeps/unix/sysv/linux/Versions: Export fallocate and fallocate64
1158 * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
1159 Add fallocate and fallocate64.
1161 * io/fcntl.h: Pretty printing.
1163 2009-03-02 Richard Guenther <rguenther@suse.de>
1165 * misc/sys/cdefs.h (__extern_always_inline): Add __artificial__
1166 attribute also for non-C99 inline semantics variant.
1168 2009-02-12 Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
1170 * sysdeps/powerpc/powerpc32/power7/fpu/Implies: New file.
1171 * sysdeps/powerpc/powerpc32/power7/Implies: Likewise.
1172 * sysdeps/powerpc/powerpc64/power7/fpu/Implies: Likewise.
1173 * sysdeps/powerpc/powerpc64/power7/Implies: Likewise.
1174 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/fpu/Implies:
1176 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/fpu/Implies:
1179 2009-03-02 Ulrich Drepper <drepper@redhat.com>
1181 * po/cs.po: Update from translation team.
1183 2009-02-28 Ulrich Drepper <drepper@redhat.com>
1185 * po/bg.po: Update from translation team.
1186 * po/sv.po: Likewise.
1187 * po/fi.po: Likewise.
1188 * po/vi.po: Likewise.
1190 2009-02-27 Roland McGrath <roland@redhat.com>
1192 * Makeconfig (%.v.i): Depend on Makeconfig.
1193 Exclude % lines from initial #-comment removal.
1195 2009-02-27 Ulrich Drepper <drepper@redhat.com>
1197 * po/ko.po: Update from translation team.
1199 2009-02-26 Roland McGrath <roland@redhat.com>
1201 * shadow/lckpwdf.c (__lckpwdf): Move FLAGS inside block using it,
1202 avoids unused warning.
1204 2009-02-26 Andrew Stubbs <ams@codesourcery.com>
1205 SUGIOKA Toshinobu <sugioka@itonet.co.jp>
1207 * sysdeps/unix/sysv/linux/sh/sys/procfs.h: Don't include signal.h,
1208 sys/ucontext.h and asm/elf.h. Include sys/user.h.
1209 * sysdeps/unix/sysv/linux/sh/sys/user.h: Don't include features.h
1210 and asm/user.h. Include asm/ptrace.h.
1211 (PTRACE_GETREGS, PTRACE_SETREGS, PTRACE_GETFPREGS,
1212 PTRACE_SETFPREGS, PTRACE_GETFDPIC, PTRACE_GETFDPIC_EXEC,
1213 PTRACE_GETFDPIC_INTERP, PTRACE_GETDSPREGS, PTRACE_SETDSPREGS):
1215 (start_thread): Don't undefine.
1216 (elf_greg_t, ELF_NGREG, elf_fpregset_t, user_fpu_struct, user):
1219 2009-02-26 Ulrich Drepper <drepper@redhat.com>
1221 * wctype/wctype.h: The *_l functions are in POSIX 2008.
1222 * wcsmbs/wchar.h: mbsnrtowcs, open_wmemstream, wcpcpy, wcpncpy,
1223 wcscasecmp, wcsdup, wcsncasecmp, wcsnlen, wcsnrtombs,
1224 wcscasecmp_l, wcsncasecmp_l, wcscoll_l, and wcsxfrm_l.
1225 * sysdeps/mach/hurd/bits/posix_opt.h: Reset value of macros from
1227 * sysdeps/unix/sysv/linux/bits/posix_opt.h: Likewise.
1228 * posix/getconf.c (vars): Add _SC_THREAD_ROBUST_PRIO_INHERIT and
1229 _SC_THREAD_ROBUST_PRIO_PROTECT entries.
1230 * bits/confname.h: Add _SC_THREAD_ROBUST_PRIO_INHERIT and
1231 _SC_THREAD_ROBUST_PRIO_PROTECT.
1232 * posix/unistd.h: fexecve is in POSIX 2008.
1233 * time/time.h: strftime_l is in POSIX 2008.
1234 * io/sys/stat.h: futimens is in POSIX 2008.
1235 * string/strings.h: strcasecmp_l and strncasecmp_l are in POSIX 2008.
1236 * string/string.h: stpcpy, stpncpy, strndup, strnlen, strsignal,
1237 strcoll_l, strerror_l, and strxfrm_l are in POSIX 2008.
1238 * stdlib/stdlib.h: mkdtemp is in POSIX 2008.
1239 * libio/stdio.h: dprintf, fmemopen, getdelim, getline,
1240 open_memstream, and vdprintf are in POSIX 2008.
1242 2009-02-25 Ulrich Drepper <drepper@redhat.com>
1244 * include/features.h: Define macros for XPG7/POSIX 2008.
1245 * ctype/ctype.h: The *_l functions are in POSIX 2008.
1246 * dirent/dirent.h: alphasort, dirfd, scandir, and fdopendir are in
1248 * locale/langinfo.h: nl_langinfo_l is in POSIX 2008.
1249 * locale/xlocale.h: Define locale_t type.
1250 * locale/locale.h: duplocale, freelocale, newlocale, uselocale are
1251 in POSIX 2008. Don't define locale_t here.
1252 * stdlib/monetary.h: strfmon_l is in POSIX 2008.
1253 * sysdeps/unix/sysv/linux/bits/stat.h: Protect UTIME_NOW and
1254 UTIME_OMIT only with __USE_ATFILE.
1255 * signal/signal.h: Declare psignal and psiginfo for POSIX 2008.
1256 * stdio-common/psiginfo.c: New file.
1257 * stdio-common/psiginfo-data.h: New file.
1258 * stdio-common/psiginfo-define.h: New file.
1259 * stdio-common/Makefile (routines): Add psiginfo.
1260 * stdio-common/Versions: Export psiginfo for GLIBC_2.10.
1261 * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
1262 * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Likewise.
1263 * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
1264 * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
1265 * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
1266 * io/sys/stat.h: Move mknodat definition into same conditional as
1268 * time/sys/time.h: futimesat is not among the functions accepted
1269 into the POSIX standard.
1271 * include/features.h: If no feature selection given and we select
1272 by default a POSIX mode, also define __USE_POSIX_IMPLICITLY.
1273 * posix/Versions: Export __posix_getopt.
1274 * posix/getopt.c (_getopt_initialize): Take additional parameter.
1275 Use it to alternatively initialize __posixly_correct.
1276 (_getopt_internal_r): Take addition parameter. Pass on to
1278 (_getopt_internal): Take addition parameter. Pass on to
1280 (getopt): Pass additional zero to _getopt_internal.
1281 (__posix_getopt): New function.
1282 * posix/getopt.h: Add redirection for getopt.
1283 * posix/getopt1.c (getopt_long): Pass additional zero to
1285 (getopt_long_only): Likewise.
1286 (_getopt_long_r): Pass additional zero to _getopt_internal_r.
1287 (_getopt_long_only_r): Likewise.
1288 * posix/getopt_int.h: Adjust declarations of _getopt_internal and
1291 2009-02-24 Ulrich Drepper <drepper@redhat.com>
1293 * bits/confname.h: Define _SC_TRACE_EVENT_NAME_MAX, _SC_TRACE_NAME_MAX,
1294 _SC_TRACE_SYS_MAX, _SC_TRACE_USER_EVENT_MAX, _SC_XOPEN_STREAMS.
1295 * sysdeps/posix/sysconf.c (__sysconf): Handle
1296 _SC_TRACE_EVENT_NAME_MAX, _SC_TRACE_NAME_MAX, _SC_TRACE_SYS_MAX,
1297 _SC_TRACE_USER_EVENT_MAX, _SC_XOPEN_STREAMS.
1299 2009-02-24 Roland McGrath <roland@redhat.com>
1302 * README.template: Reworded not to use substituted version number.
1304 * README: ... here (no longer generated).
1305 * Makefile (README): Target removed.
1307 2009-02-24 Ulrich Drepper <drepper@redhat.com>
1309 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf):
1310 /proc/sys/kernel/rtsig_max doesn't exist anymore, use getrlimit
1313 * io/sys/stat.h: The lstat functions have been mandatory since 2001.
1315 * time/tzset.c (tzset_internal): Correct parsing of TZ envvar.
1317 2009-02-22 Ulrich Drepper <drepper@redhat.com>
1319 * po/bg.po: Update from translation team.
1321 2009-02-16 Jakub Jelinek <jakub@redhat.com>
1323 * stdlib/monetary.h: Uglify function parameter names.
1324 * sunrpc/rpc/pmap_clnt.h: Likewise.
1325 * sunrpc/rpc/svc.h: Likewise.
1326 * sunrpc/rpc/xdr.h: Likewise.
1327 * sunrpc/rpc/clnt.h: Likewise.
1328 * resolv/netdb.h: Likewise.
1329 * resolv/arpa/nameser.h: Likewise.
1330 * resolv/resolv.h: Likewise.
1331 * argp/argp.h: Likewise.
1332 * locale/langinfo.h: Likewise.
1333 * io/sys/stat.h: Likewise.
1334 * posix/spawn.h: Likewise.
1335 * nis/rpcsvc/nislib.h: Likewise.
1336 * malloc/obstack.h: Likewise.
1337 * sysdeps/ia64/bits/link.h: Likewise.
1338 * sysdeps/i386/bits/link.h: Likewise.
1339 * sysdeps/s390/bits/link.h: Likewise.
1340 * sysdeps/powerpc/bits/link.h: Likewise.
1341 * sysdeps/x86_64/bits/link.h: Likewise.
1342 * sysdeps/sparc/bits/link.h: Likewise.
1343 * sysdeps/sh/bits/link.h: Likewise.
1344 * sysdeps/unix/sysv/linux/i386/sys/io.h: Likewise.
1345 * sysdeps/unix/sysv/linux/x86_64/sys/io.h: Likewise.
1346 * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: Likewise.
1347 * sysdeps/unix/sysv/linux/sys/eventfd.h: Likewise.
1349 2008-12-01 Fredrik Unger <fred@tree.se>
1351 * soft-fp/double.h [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_SEMIRAW_D,
1352 FP_UNPACK_SEMIRAW_DP): Use _FP_UNPACK_RAW_1 instead of
1353 _FP_UNPACK_RAW_2, fix up first argument.
1355 2009-02-15 Ulrich Drepper <drepper@redhat.com>
1357 * sysdeps/unix/sysv/linux/getsysstats.c (next_line): New function.
1358 (GET_NPROCS_PARSER): Change parameters and use next_line.
1359 (__get_nprocs): Rewrite to not use stdio routines.
1360 * sysdeps/unix/sysv/linux/sparc/getsysstats.c (GET_NPROCS_PARSER):
1361 Change parameters and use next_line.
1363 2009-02-13 Ulrich Drepper <drepper@redhat.com>
1366 * nscd/nscd.h: Remove definitions and declarations for mem_in_flight.
1367 Change mempool_alloc prototype.
1368 * nscd/mem.c (gc): Don't handle mem_in_flight.
1369 (mempool_alloc): Third parameter now only indicates whether this is the
1370 first call (to allocate data) or not. If it is, get db rdlock.
1371 Release it on error. Don't handle mem_in_flight.
1372 * nscd/aicache.c (addhstaiX): Mark he parameter as const.
1373 Adjust third parameter of mempool_alloc calls.
1374 Nothing to do here in case mempool_alloc fails.
1375 Avoid local variable shadowing parameter. No need to get db rdlock
1376 before calling cache_add.
1377 * nscd/cache.c (cache_add): Adjust call to mempool_alloc. There is
1378 no mem_in_flight array anymore.
1379 * nscd/connections.c: Remove definition and handling of mem_in_flight.
1380 * nscd/grpcache.c (cache_addgr): Adjust third parameter of
1381 mempool_alloc calls. Mark he parameter as const. Nothing to do here
1382 in case mempool_alloc fails. No need to get db rdlock before calling
1384 * nscd/hstcache.c (cache_addhst): Likewise.
1385 * nscd/initgrcache.c (addinitgroupsX): Likewise.
1386 * nscd/servicescache.c (cache_addserv): Likewise.
1387 * nscd/pwdcache.c (cache_addpw): Likewise. Remove some debugging code.
1389 2009-02-11 Ulrich Drepper <drepper@redhat.com>
1391 * po/lt.po: Update from translation team.
1393 2009-02-10 Ulrich Drepper <drepper@redhat.com>
1395 * elf/dl-load.c (open_verify): In case VALID_ELF_HEADER is
1396 defined, allow additional data to be added using the optional
1397 MORE_ELF_HEADER_DATA macro.
1398 * sysdeps/unix/sysv/linux/ldsodefs.h (VALID_ELF_HEADER,
1399 VALID_ELF_OSABI, VALID_ELF_ABIVERSION, MORE_ELF_HEADER_DATA): Define.
1401 2009-02-08 Ulrich Drepper <drepper@redhat.com>
1403 * include/atomic.h: Define catomic_and if not already defined.
1404 * sysdeps/x86_64/bits/atomic.h: Define catomic_and.
1405 * sysdeps/i386/i486/bits/atomic.h: Likewise.
1407 2009-02-07 Ulrich Drepper <drepper@redhat.com>
1409 * malloc/malloc.c (_int_free): Second argument is now mchunkptr.
1411 (_int_realloc): Likewise. Third argument is now padded size
1412 All _int_* functions are now static.
1414 * malloc/hooks.c: Change all callers to _int_free and _int_realloc.
1415 * malloc/arena.c: Likewise.
1416 * include/malloc.h: Remove now unnecessary declarations of the _int_*
1419 * sunrpc/rpc_common.c: We cannot move _null_auth into .rodata that
1422 * malloc/malloc.c: Add branch prediction for use of the hooks.
1424 * grp/compat-initgroups.c [NOT_IN_libc] (__libc_use_alloca): Define.
1426 2009-02-06 Ulrich Drepper <drepper@redhat.com>
1429 * bits/confname.h: Add SUSv7 macros for getconf environments.
1430 * bits/environments.h: Likewise.
1431 * sysdeps/unix/sysv/linux/i386/bits/environments.h: Likewise.
1432 * sysdeps/unix/sysv/linux/powerpc/bits/environments.h: Likewise.
1433 * sysdeps/unix/sysv/linux/s390/bits/environments.h: Likewise.
1434 * sysdeps/unix/sysv/linux/sparc/bits/environments.h: Likewise.
1435 * sysdeps/unix/sysv/linux/x86_64/bits/environments.h: Likewise.
1436 * posix/confstr.c: Handle SUSv5 and SUSv7 environments.
1437 * posix/getconf.c: Likewise.
1438 * posix/sysconf.c: Likewise.
1439 * sysdeps/posix/sysconf.c: Likewise.
1440 * posix/Makefile (getconf.speclist): Also collect SUSv5 and SUSv7
1443 2009-01-16 Petr Baudis <pasky@suse.cz>
1446 * resolv/res_libc.c (__res_maybe_init): Call __res_vinit()
1447 even if we currently have zero nscount.
1449 2009-02-06 Ulrich Drepper <drepper@redhat.com>
1452 * grp/compat-initgroups.c (compat_call): Switch to use malloc when
1453 the input line is too long.
1455 * po/Makefile (libc.pot): Add f_print as function taking c-format
1458 * debug/xtrace.sh: Unify translatable messages.
1459 * elf/ldd.bash.in: Likewise.
1460 * elf/sprof.c: Likewise.
1461 * locale/programs/locale.c: Likewise.
1462 * malloc/memusage.sh: Likewise.
1463 * nss/getent.c: Likewise.
1465 2009-02-06 Joseph Myers <joseph@codesourcery.com>
1467 * debug/pcprofiledump.c (print_version,
1468 argp_program_version_hook): New function.
1469 * elf/ldconfig.c (more_help): New function.
1471 * elf/sln.c (usage): New function.
1472 (main): Support --help and --version.
1473 * malloc/memusagestat.c (print_version): New function.
1474 (argp_program_version_hook): New variable.
1475 * nscd/nscd.c (more_help): New function.
1477 * posix/getconf.c (main): Send --version output to stdout.
1479 * sunrpc/rpc_main.c (usage, options_usage): Take STREAM and STATUS
1480 arguments. All callers changed.
1481 (print_version): New function.
1482 (parseargs): Support --help and --version.
1483 * sunrpc/rpcinfo.c (usage): Take STREAM argument. All callers
1485 (print_version): New function.
1486 (main): Use getopt_long. Support --help and --version.
1487 * sysdeps/unix/sysv/linux/lddlibc4.c (main): Support --help and
1490 2009-02-06 Ulrich Drepper <drepper@redhat.com>
1492 * malloc/memusage.c (DEFAULT_BUFFER_SIZE): Change to 32768.
1493 (update_data): Fix handling of wrapping back
1494 to the beginning of the buffer.
1497 * stdio-common/psignal.c (psignal): Fix test for empty string.
1499 2009-02-05 Ulrich Drepper <drepper@redhat.com>
1501 * include/rpc/auth.h: Use libc_hidden_proto for _null_auth.
1502 * sunrpc/rpc_common.c: Add libc_hidden_def for _null_auth. Also
1503 move _null_auth to .rodata.
1505 * time/tzset.c (__tzset_parse_tz): DST offset must also allow hour
1508 * intl/dcigettext.c (DCIGETTEXT): Avoid some code duplication.
1510 * sysdeps/unix/opendir.c (__alloc_dir): We have a lot more memory
1511 today than when the original code was written. Use larger
1512 buffers. This also makes it unnecessary to have stat information,
1513 if this causes extra efforts.
1514 (__opendir): In case O_DIRECTORY works, don't call fstat just for
1517 2009-02-03 Andrew Stubbs <ams@codesourcery.com>
1519 * sysdeps/sh/sh4/dl-trampoline.S: Only set HAVE_FPU if __SH_FPU_ANY__
1521 * sysdeps/sh/sh4/setjmp.S: Support SH4-NOFPU.
1522 * sysdeps/sh/sh4/__longjmp.S: Likewise.
1523 * sysdeps/unix/sysv/linux/sh/sh4/getcontext.S: Likewise.
1524 * sysdeps/unix/sysv/linux/sh/sh4/setcontext.S: Likewise.
1525 * sysdeps/unix/sysv/linux/sh/sh4/swapcontext.S: Likewise.
1526 * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Likewise.
1528 2009-02-04 Ulrich Drepper <drepper@redhat.com>
1530 * po/ru.po: Update from translation team.
1532 2008-11-17 Nathan Sidwell <nathan@codesourcery.com>
1534 * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (struct sigevent):
1535 Add _tid slot to maintain consistency with kernel.
1537 2009-02-04 Ulrich Drepper <drepper@redhat.com>
1539 * libio/wfileops.c (_IO_wfile_underflow): Fix handling of
1540 incomplete characters at end of input buffer.
1541 * libio/Makefile (tests): Add tst-fgetwc.
1542 * libio/tst-fgetwc.c: New file.
1543 * libio/tst-fgetwc.input: New file.
1545 2009-02-02 Andrew Stubbs <ams@codesourcery.com>
1547 * sysdeps/unix/sysv/linux/sh/Makefile (libm.so-no-z-defs): Define.
1549 2009-02-02 Ulrich Drepper <drepper@redhat.com>
1552 * iconv/gconv_trans.c (__gconv_transliterate): Don't change
1553 *OUTBUFSTART unless the whole output fit into the buffer.
1554 * iconv/Makefile (tests): Add tst-iconv4.
1555 * iconv/tst-iconv4.c: New file.
1557 2009-02-01 Ulrich Drepper <drepper@redhat.com>
1559 * sysdeps/x86_64/cacheinfo.c (intel_02_known): Add new descriptors.
1560 * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
1562 2009-01-29 Andrew Stubbs <ams@codesourcery.com>
1564 * elf/Makefile (ld.so): Adjust the sed script to insert _begin in to
1565 newer linker scripts.
1567 2009-01-30 Ulrich Drepper <drepper@redhat.com>
1570 * sysdeps/unix/sysv/linux/sys/inotify.h: Second parameter of
1571 inotify_rm_watch should have type int.
1573 2009-01-06 Steven Munroe <sjmunroe@us.ibm.com>
1575 * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp):
1576 Make aligned_restore_vmx a local symbol.
1577 * sysdeps/powerpc/powerpc64/__longjmp-common.S (__longjmp):
1580 2009-01-30 Andreas Jaeger <aj@suse.de>
1582 * sysdeps/unix/sysv/linux/bits/shm.h (SHM_EXEC): Define.
1583 * sysdeps/unix/sysv/linux/ia64/bits/shm.h (SHM_EXEC): Define.
1584 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h (SHM_EXEC): Define.
1585 * sysdeps/unix/sysv/linux/s390/bits/shm.h (SHM_EXEC): Define.
1586 * sysdeps/unix/sysv/linux/sh/bits/shm.h (SHM_EXEC): Define.
1587 * sysdeps/unix/sysv/linux/sparc/bits/shm.h (SHM_EXEC): Define.
1588 * sysdeps/unix/sysv/linux/x86_64/bits/shm.h (SHM_EXEC): Define.
1590 2009-01-11 Ryan S. Arnold <rsa@us.ibm.com>
1593 * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (_SET_DI_FPSCR,
1594 _SET_SI_FPSCR): Clobber fp0 to prevent erroneous test-case passes.
1596 2009-01-08 Ryan S. Arnold <rsa@us.ibm.com>
1599 * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S
1600 (__CONTEXT_FUNC_NAME): Fix mtfsf to use fp31 instead of fp0.
1601 * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S
1602 (__CONTEXT_FUNC_NAME): Fix mtfsf to use fp31 instead of fp0.
1604 2009-01-11 Thomas Schwinge <tschwinge@gnu.org>
1606 * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Use
1607 memcpy instead of memcmp.
1608 (_dl_setup_pointer_guard): Likewise.
1610 2009-01-30 Ulrich Drepper <drepper@redhat.com>
1612 * malloc/malloc.c (sYSMALLOc): Don't use assert when detecting
1613 manipulated brk, use malloc_printerr.
1614 * misc/sbrk.c (__sbrk): Better error handling for nonsense
1617 2009-01-30 Jakub Jelinek <jakub@redhat.com>
1619 * string/string.h (memchr, strchr, strrchr, strpbrk, strstr, index,
1620 rindex): For C++ add inlines so that they can be recognized as
1622 * string/strings.h: Define correct C++ prototypes for gcc 4.4.
1624 2009-01-29 Ulrich Drepper <drepper@redhat.com>
1625 Jakub Jelinek <jakub@redhat.com>
1627 * string/string.h: Define correct C++ prototypes for gcc 4.4.
1628 * wcsmbs/wchar.h: Likewise.
1630 2009-01-29 Ulrich Drepper <drepper@redhat.com>
1632 * sysdeps/i386/stackinfo.h (stackinfo_get_sp): Define.
1633 (stackinfo_sub_sp): Define.
1635 2009-01-28 Ulrich Drepper <drepper@redhat.com>
1638 * nscd/mem.c (gc): Use alloca_count to get the real stack usage.
1639 * include/alloca.h (alloca_account): Define.
1640 * sysdeps/x86_64/stackinfo.h (stackinfo_get_sp): Define.
1641 (stackinfo_sub_sp): Define.
1643 * nscd/connections.c (nscd_init): If database file access fails
1644 check whether this is due to permission problems and bail in that
1648 * nscd/mem.c (gc): Fix assignment of he_data in case malloc is used.
1649 Reported by Jun'ichi Nomura <j-nomura@ce.jp.nec.com>.
1651 2009-01-14 Kaz Kojima <kkojima@rr.iij4u.or.jp>
1653 * sysdeps/unix/sysv/linux/sh/sysdep.h (INTERNAL_SYSCALL):
1654 Add "t" to clobber list.
1655 (INTERNAL_SYSCALL_NCS): Likewise.
1657 2009-01-28 Ulrich Drepper <drepper@redhat.com>
1659 * nss/getent.c (print_networks): Don't print comma between aliases.
1661 2009-01-23 Ulrich Drepper <drepper@redhat.com>
1663 * sysdeps/unix/sysv/linux/tst-clone.c (do_test): Avoid warning.
1665 * misc/hsearch_r.c (hcreate_r): We need at least three elements in
1667 * misc/Makefile (tests): Add bug-hsearch1.
1668 * misc/bug-hsearch1.c: New file.
1670 2009-01-22 Roland McGrath <roland@redhat.com>
1672 * Makeconfig (%.v.i): Strip trailing # comments,
1673 not only whole-line comments.
1675 2009-01-10 Ulrich Drepper <drepper@redhat.com>
1677 * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Take
1678 one parameter. If non-NULL use it to initialize return value.
1679 (_dl_setup_pointer_guard): New function.
1680 * sysdeps/unix/sysv/linux/dl-osinfo.h: Likewise.
1681 * sysdeps/generic/ldsodefs.h: Declare _dl_random.
1682 * elf/rtld.c (security_init): Pass _dl_random to
1683 _dl_setup_stack_chk_guard. Call _dl_setup_pointer_guard to initialize
1685 * elf/dl-sysdep.c (_dl_random): New variable.
1686 (_dl_sysdep_start): Handle AT_RANDOM.
1687 (_dl_show_auxv): Likewise.
1688 * elf/dl-support.c (_dl_random): New variable.
1689 (_dl_aux_init): Handle AT_RANDOM.
1690 * csu/libc-start.c [!SHARED] (libc_start_main): Pass _dl_random
1691 to _dl_setup_stack_chk_guard.
1693 * elf/elf.h (AT_RANDOM): Define AT_BASE_PLATFORM and AT_RANDOM.
1695 2009-01-10 Roland McGrath <roland@redhat.com>
1697 * nscd/nscd.c (parse_opt): Use argp_error for bad -i argument.
1699 2009-01-08 Ulrich Drepper <drepper@redhat.com>
1701 * sysdeps/i386/fpu/libm-test-ulps: Adjust expm1 errors.
1704 * nss/nss_files/files-parse.c (strtou32): New function.
1705 (INT_FIELD): Use strotu32 instead of strtoul to unify behavior
1706 across 32-bit and 64-bit platforms.
1707 (INT_FIELD_MAYBE_NULL): Likewise.
1709 2009-01-08 Jakub Jelinek <jakub@redhat.com>
1712 * sysdeps/unix/sysv/linux/bits/resource.h (enum __rusage_who): Avoid
1713 comma after RUSAGE_CHILDREN if not -D_GNU_SOURCE.
1714 * sysdeps/unix/sysv/linux/sparc/bits/resource.h (enum __rusage_who):
1717 2009-01-05 Paolo Bonzini <bonzini@gnu.org>
1720 * posix/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
1721 being NULL also if there are no backreferences.
1722 * posix/rxspencer/tests: Add testcases.
1724 2009-01-04 Paolo Bonzini <bonzini@gnu.org>
1727 * posix/bug-regex17.c: Add testcases.
1728 * posix/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
1731 2009-01-05 Martin Schwidefsky <schwidefsky@de.ibm.com>
1733 * sysdeps/unix/sysv/linux/s390/bits/libc-vdso.h: New file.
1734 * sysdeps/unix/sysv/linux/s390/gettimeofday.c: New file.
1735 * sysdeps/unix/sysv/linux/s390/init-first.c: New file.
1736 * sysdeps/unix/sysv/linux/s390/Makefile (sysdep_routines): Add dl-vdso
1738 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (INLINE_VSYSCALL,
1739 INTERNAL_VSYSCALL, INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK,
1740 INTERNAL_SYSCALL_NCS, HAVE_CLOCK_GETRES_VSYSCALL and
1741 HAVE_CLOCK_GETTIME_VSYSCALL: Define.
1742 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
1743 * sysdeps/unix/sysv/linux/s390/Versions: New file.
1745 2008-12-31 Paolo Bonzini <bonzini@gnu.org>
1747 * posix/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
1748 * posix/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
1749 re_string_skip_chars, re_string_reconstruct): Likewise.
1750 * posix/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
1752 2008-12-31 Rafael Avila de Espindola <espindola@google.com>
1754 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr2_r): Check and
1755 adjust the buffer alignment.
1757 2009-01-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
1759 * sysdeps/mach/hurd/Makefile (sysdep_headers) [subdir=socket]:
1760 Add net/ethernet.h net/if_arp.h net/if_ether.h net/if_ppp.h
1763 * hurd/report-wait.c (describe_number): Use __stpcpy to prepend
1764 flavor to description only when flavor is not NULL.
1766 * hurd/hurdsig.c (signal_allowed): Unlock _hurd_dtable_lock
1767 mutex after SIGIO/SIGURG lookup loop.
1769 2009-01-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
1771 * bits/resource.h (PRIO_PROCESS, PRIO_PGRP, PRIO_USER): Add macros.
1773 2009-01-03 Ulrich Drepper <drepper@redhat.com>
1775 * sysdeps/unix/sysv/linux/i386/sysdep.h: Describe 6th argument
1778 2009-01-02 Ulrich Drepper <drepper@redhat.com>
1780 * sysdeps/unix/sysv/linux/kernel-features.h
1781 (__ASSUME_FUTEX_CLOCK_REALTIME): Define.
1783 * wcsmbs/wcsnrtombs.c (__wcsnrtombs): Create temporary state object
1784 if no output is written.
1786 * version.h: Bump to 2.10 development.
1788 * posix/getconf.c: Update copyright year.
1789 * nss/getent.c: Likewise.
1790 * iconv/iconvconfig.c: Likewise.
1791 * iconv/iconv_prog.c: Likewise.
1792 * elf/ldconfig.c: Likewise.
1793 * catgets/gencat.c: Likewise.
1794 * csu/version.c: Likewise.
1795 * elf/ldd.bash.in: Likewise.
1796 * elf/sprof.c (print_version): Likewise.
1797 * locale/programs/locale.c: Likewise.
1798 * locale/programs/localedef.c: Likewise.
1799 * nscd/nscd.c (print_version): Likewise.
1800 * debug/xtrace.sh: Likewise.
1801 * malloc/memusage.sh: Likewise.
1802 * malloc/mtrace.pl: Likewise.
1803 * debug/catchsegv.sh: Likewise.
1805 2008-12-29 Mike Frysinger <vapier@gentoo.org>
1807 * iconvdata/Makefile (iconv-rules): Use LC_ALL=C when running awk
1810 2008-12-29 Ulrich Drepper <drepper@redhat.com>
1812 * sysdeps/posix/getaddrinfo.c (gaih_inet): When the
1813 gethostbyname4_r function call succeeded, just leave the loop.
1816 * wcsmbs/wchar.h: Move undefs for local __need_* constants to the
1818 * wctype/wctype.h: Get wint_t definition directly from <stddef.h>.
1819 * wctype/Makefile (tests): Add bug-wctypeh.
1820 * wctype/bug-wctypeh.c: New file.
1822 * nscd/nscd_gethst_r.c (nscd_gethst_r): Don't use nscd if
1823 LOCALDOMAIN is defined.
1824 * nscd/nscd_getai.c (__nscd_getai): Likewise.
1826 * sysdeps/x86_64/bits/select.h: New file.
1828 * resolv/res_init.c (__res_vinit): Count all servers in statp->nscount.
1830 2008-12-21 Bruno Haible <bruno@clisp.org>
1833 * wcsmbs/mbsnrtowcs.c (__mbsnrtowcs): Create temporary state object
1834 if no output is written.
1836 2008-12-13 Klaus Dittrich <kladit@arcor.de>
1838 * login/utmp_file.c (pututline_file): Replace call to dup2 with
1839 libc internal symbol __dup2 to avoid access through the PLT.
1841 2008-12-08 Ulrich Drepper <drepper@redhat.com>
1844 * sysdeps/unix/sysv/linux/bits/socket.h (SCM_CREDENTIALS): Make
1845 available only for __USE_GNU.
1847 * inet/Makefile (tests): Add tst-getni2.
1848 * inet/tst-getni2.c: New file.
1851 * inet/getnameinfo.c (getnameinfo): Check for output buffers being
1852 NULL when NI_NAMEREQD is set.
1853 Patch mostly by Yang Hongyang <yanghy@cn.fujitsu.com>.
1854 * inet/Makefile (tests): Add tst-getni1.
1855 * inet/tst-getni1.c: New file.
1857 2008-12-03 Petr Baudis <pasky@suse.cz>
1860 * nscd/connections.c (invalidate_cache): Use prune_run_lock
1861 instead of prune_lock.
1862 (nscd_run_prune): Before calling prune_cache, take prune_run_lock.
1863 * nscd/nscd.h (database_dyn): Add prune_run_cache.
1865 2008-12-07 Ulrich Drepper <drepper@redhat.com>
1867 * resolv/res_send.c (send_dg): Use correct guards for SOCK_CLOEXEC
1870 * sysdeps/unix/sysv/linux/kernel-features.h: Fix typo in accept4
1873 * resolv/res_init.c (__res_vinit): Always assign to statp->nscount
1874 after reading name server list.
1877 * nis/nss_nis/nis-hosts.c (_nss_nis_gethostbyname4_r): Fix memory
1878 handling for host name aliases.
1880 2008-11-24 Arkadiusz Miśkiewicz <arekm@maven.pl>
1882 * sysdeps/i386/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Use LOAD_PIC_REG
1883 instead of doing things manually.
1885 2008-11-26 Chris Steel <chris.steel.lnx@googlemail.com>
1887 * posix/regex_internal.h (build_wcs_upper_buffer):
1888 Return type is reg_error_t.
1890 2008-12-05 Ulrich Drepper <drepper@redhat.com>
1892 * posix/globtest.sh: Use mktemp to create temporary file and
1895 * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_SET_S): Handle large
1897 (__CPU_CLR_S): Likewise.
1898 (__CPU_ISSET_S): Likewise.
1900 2008-12-05 Joseph Myers <joseph@codesourcery.com>
1901 Ulrich Drepper <drepper@redhat.com>
1903 * scripts/firstversion.awk: Use custom comparison function to compare
1905 * scripts/versions.awk: Use sort invocation which can handle
1906 multi-digit sub-version numbers.
1908 2008-12-04 Ulrich Drepper <drepper@redhat.com>
1910 * locale/programs/ld-address.c (DEFINE_LANGUAGE_CODE2): Define.
1911 * locale/iso-639.def: Add Chhattisgarhi entry.
1913 2008-12-02 Ulrich Drepper <drepper@redhat.com>
1915 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname3_r): Recognize
1917 (_nss_dns_gethostbyname4_r): Likewise.
1918 * resolv/res_init.c (__res_vinit): Initialize nscount to zero.
1919 * sysdeps/posix/getaddrinfo.c (gaih_inet): In case we use
1920 gethostbyname4_r, we don't have a separate IPv6 status, so copy
1921 the no_data variable.
1923 * resolv/res_init.c (__res_vinit): Fill in IPv4 name server
1924 information at the correct index.
1926 * socket/sys/socket.h: Declare accept4.
1927 * socket/accept4.c: New file.
1928 * sysdeps/unix/sysv/linux/accept4.c: New file.
1929 * sysdeps/unix/sysv/linux/i386/accept4.S: New file.
1930 * socket/Makefile (routines): Add accept4.
1931 * socket/Versions: Export accept4 with version GLIBC_2.10.
1932 * socket/paccept.c: Removed.
1933 * sysdeps/unix/sysv/linux/paccept.c: Removed.
1934 * sysdeps/unix/sysv/linux/i386/paccept.S: Removed.
1935 * Versions.def: Define GLIBC_2.10 for libc.
1936 * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_ACCEPT4.
1938 * nscd/connections.c: Use accept4.
1940 * sysdeps/unix/sysv/linux/i386/socket.S: Fix comment.
1942 2008-12-01 Ulrich Drepper <drepper@redhat.com>
1944 * resolv/res_send.c (send_dg): Create sockets with non-blocking
1947 * stdlib/setenv.c (unsetenv): Don't search environment if it does
1949 * stdlib/Makefile (tests): Add tst-unsetenv1.
1950 * stdlib/tst-unsetenv1.c: New file.
1952 2008-11-29 Ulrich Drepper <drepper@redhat.com>
1954 * login/utmp_file.c (file_writable): New variable.
1955 (setutent_file): Don't try to open file for writing.
1956 (pututline_file): Before writing, make descriptor writable if
1959 2008-11-26 Ulrich Drepper <drepper@redhat.com>
1961 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Only restrict search
1962 to IPv4 or IPv6 if an interface has been found.
1964 2008-11-26 Roland McGrath <roland@redhat.com>
1966 * sysdeps/unix/sysv/linux/alpha/ipc_priv.h: Renamed to ...
1967 * sysdeps/unix/sysv/linux/powerpc/ipc_priv.h: ... here.
1969 * sysdeps/unix/sysv/linux/alpha/wordexp.c: Renamed to ...
1970 * sysdeps/unix/sysv/linux/ia64/wordexp.c: ... here.
1971 * sysdeps/unix/sysv/linux/sparc/sparc64/wordexp.c: Change #include.
1973 * elf/elf.h (NT_386_IOPERM): New macro.
1974 (NT_PPC_VSX): New macro.
1976 2008-11-25 Roland McGrath <roland@redhat.com>
1978 * sysdeps/alpha, sysdeps/unix/bsd/osf/alpha,
1979 sysdeps/unix/bsd/Attic/osf1/alpha, sysdeps/unix/sysv/linux/alpha,
1980 sysdeps/unix/sysv/linux/alpha/alpha, sysdeps/unix/alpha,
1981 sysdeps/mach/alpha, sysdeps/mach/hurd/alpha:
1982 Subdirectories moved to ports repository.
1983 * configure.in (base_machine): Remove alpha case.
1985 2008-11-25 Thomas Schwinge <tschwinge@gnu.org>
1987 * sysdeps/mach/strerror_l.c: New file.
1989 2008-11-13 Ryan S. Arnold <rsa@us.ibm.com>
1992 * sysdeps/powerpc/fpu/Makefile: Added test case tst-setcontext-fpscr.
1993 * sysdeps/powerpc/fpu/feholdexcpt.c (_FPU_MASK_ALL): Define to replace
1995 * sysdeps/powerpc/fpu/fenv_libc.h (fesetenv_register): Dynamically
1996 choose mtfsf insn based on PPC_FEATURE_HAS_DFP.
1997 (relax_fenv_state): Same as above.
1998 (FPSCR_29): Reserve bit in ISA 2.05.
1999 (FPSCR_NI): Provide define for compat.
2000 * sysdeps/powerpc/fpu/fesetenv.c (_FPU_MASK_ALL): Define to replace
2002 * sysdeps/powerpc/fpu/feupdateenv.c (_FPU_MASK_ALL): Define to replace
2004 * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c: New file. Test case to
2005 test setcontext and swapcontext with dynamic 64-bit FPSCR detection.
2006 * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp): Adjust
2007 access to hwcap to account for hwcap size increase to uint64_t.
2008 * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S (__sigsetjmp ):
2010 * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S
2011 (*setcontext): Likewise.
2012 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/setcontext.S:
2014 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/swapcontext.S:
2016 * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S
2017 (*setcontext): dynamically select mtfsf insn based on
2018 PPC_FEATURE_HAS_DFP. Adjust access to hwcap to account for hwcap size
2019 increase to uint64_t.
2020 * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S
2021 (*swapcontext): dynamically select mtfsf insn based on
2022 PPC_FEATURE_HAS_DFP. Adjust access to hwcap to account for hwcap size
2023 increase to uint64_t.
2024 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/setcontext.S:
2026 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/swapcontext.S:
2028 * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
2029 (*setcontext): dynamically select mtfsf insn based on
2030 PPC_FEATURE_HAS_DFP.
2031 * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
2032 (*swapcontext): dynamically select mtfsf insn based on
2033 PPC_FEATURE_HAS_DFP.
2035 2008-11-13 Ulrich Drepper <drepper@redhat.com>
2037 * version.h: Bump for 2.9 release.
2038 * include/features.h (__GLIBC_MINOR__): Bump to 9.
2041 * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_ALLOC_SIZE):
2042 Multiply with sizeof of __cpu_mask, not 8 unconditionally after
2045 2008-11-11 Ulrich Drepper <drepper@redhat.com>
2048 * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): Don't abort for
2049 unknown request types for now.
2051 2008-11-11 Roland McGrath <roland@redhat.com>
2053 * sysdeps/x86_64/configure: New file.
2055 * configure.in: Add AC_SUBST(libc_cv_cpp_asm_debuginfo).
2056 * configure: Regenerated.
2058 2008-11-03 Martin Schwidefsky <schwidefsky@de.ibm.com>
2060 * sysdeps/s390/s390-64/dl-trampoline.S (_dl_runtime_profile): Use the
2061 correct instruction to remove the stack frame.
2063 2008-11-03 Michael Matz <matz@suse.de>
2065 * sysdeps/s390/bits/atomic.h (__arch_compare_and_exchange_val_32_acq,
2066 __arch_compare_and_exchange_val_64_acq): Add "memory" clobber.
2068 2008-11-07 Jakub Jelinek <jakub@redhat.com>
2070 * include/stdio.h (__builtin_fwrite, __builtin_fwrite_unlocked):
2073 * bits/libc-tsd.h (__libc_tsd_define, __libc_tsd_address,
2074 __libc_tsd_get, __libc_tsd_set): Add TYPE argument, use it as the type
2075 of the thread variable instead of void *.
2076 * sysdeps/mach/hurd/bits/libc-tsd.h (__libc_tsd_define,
2077 __libc_tsd_address, __libc_tsd_get, __libc_tsd_set): Likewise.
2078 * include/ctype.h (CTYPE_B, CTYPE_TOUPPER, CTYPE_TOLOWER): Adjust
2079 __libc_tsd_define arguments.
2080 (__ctype_b_loc, __ctype_toupper_loc, __ctype_tolower_loc): Adjust
2081 __libc_tsd_address arguments. Remove union hack.
2082 * include/rpc/rpc.h (RPC_VARS): Adjust __libc_tsd_define arguments.
2083 * sunrpc/rpc_thread.c (RPC_VARS): Likewise.
2084 (__rpc_thread_destroy, rpc_thread_multi, __rpc_thread_variables):
2085 Adjust __libc_tsd_{set,get} arguments.
2086 * ctype/ctype-info.c (CTYPE_B, CTYPE_TOUPPER, CTYPE_TOLOWER): Adjust
2087 __libc_tsd_define arguments.
2088 * locale/uselocale.c (__uselocale): Adjust __libc_tsd_{set,get}
2090 * locale/lc-ctype.c (_nl_postload_ctype): Likewise.
2091 * locale/global-locale.c (__libc_tsd_LOCALE): Adjust type.
2092 (LOCALE): Adjust __libc_tsd_define arguments.
2093 * locale/localeinfo.h (_NL_CURRENT_LOCALE): Adjust __libc_tsd_get
2095 (LOCALE): Adjust __libc_tsd_define arguments.
2096 * sysdeps/mach/hurd/malloc-machine.h (MALLOC): Adjust __libc_tsd_define
2098 (tsd_setspecific, tsd_getspecific): Adjust __libc_tsd_{set,get}
2101 2008-11-02 Ulrich Drepper <drepper@redhat.com>
2103 * malloc/malloc.c (public_rEALLOc): When new arena is used, copy
2104 really all bytes. Patch by Denys Vlasenko <dvlasenk@redhat.com>.
2106 2008-11-01 Ulrich Drepper <drepper@redhat.com>
2109 * misc/hsearch_r.c (hsearch_r): Fix secondary hash function.
2111 2008-10-24 Joseph Myers <joseph@codesourcery.com>
2112 Ulrich Drepper <drepper@redhat.com>
2114 * math/tgmath.h (__floating_type): Use __builtin_classify_type in
2115 definition for GCC 3.1 and later.
2117 2008-10-31 Jakub Jelinek <jakub@redhat.com>
2119 * elf/dl-tls.c (__tls_get_addr): After calling _dl_update_slotinfo
2120 refetch dtv, as it might have changed.
2121 * elf/Makefile: Add rules to build and run tst-tls18.
2122 * elf/tst-tls18.c: New test.
2123 * elf/tst-tlsmod18a.c: New file.
2125 2008-09-09 Aurelien Jarno <aurelien@aurel32.net>
2128 * iconvdata/gconv-modules: Add LATIN9 as an alias to ISO-8859-15.
2130 2008-10-31 Ulrich Drepper <drepper@redhat.com>
2133 * sysdeps/powerpc/elf/rtld-global-offsets.sym: Fix typo.
2136 * posix/spawnattr_getschedparam.c (posix_spawnattr_getschedparam):
2137 Fix length of copy operation.
2139 2008-10-02 Pierre Habouzit <madcoder@debian.org>
2141 * sysdeps/unix/sysv/linux/eventfd.c (eventfd): Use the eventfd2 syscall
2142 and fix its calling convention.
2144 2008-10-07 Andreas Schwab <schwab@suse.de>
2147 * resolv/res_send.c (send_vc): Fix last change.
2148 (send_dg): Align here as well.
2150 2008-10-31 Ulrich Drepper <drepper@redhat.com>
2152 * sysdeps/unix/sysv/linux/ulimit.c (__ulimit): Handle UL_GETFSIZE
2153 return value in case rlimit is RLIM_INFINITY.
2156 * sysdeps/unix/sysv/linux/ulimit.c (__ulimit): Fix return value
2158 * resource/Makefile (tests): Add bug-ulimit1.
2159 * resource/bug-ulimit1.c: New file.
2162 * sunrpc/rpc_main.c (mkfile_output): Properly handle filename
2163 without dot. Properly terminate the string with a null byte.
2164 Based on a patch by Aurelien Jarno <aurelien@aurel32.net>.
2167 * debug/getgroups_chk.c (__getgroups_chk): Return EINVAL error for
2169 * posix/bits/unistd.h (getgroups): Call __getgroups_chk for
2173 * sysdeps/powerpc/powerpc32/dl-machine.c: Fix typo in message.
2175 2008-10-30 Ulrich Drepper <drepper@redhat.com>
2177 * grp/initgroups.c (internal_getgrouplist): Don't prematurely
2178 abort if there is no initgroups_dyn function.
2180 * resolv/res_send.c (send_dg): On timeout, only return nonzero
2181 result if any of the queries really provided an answer.
2183 2008-10-28 Ulrich Drepper <drepper@redhat.com>
2185 * po/lt.po: Update from translation team.
2187 2008-10-26 Ulrich Drepper <drepper@redhat.com>
2189 * po/id.po: Update from translation team.
2191 2008-10-24 Ulrich Drepper <drepper@redhat.com>
2193 * resolv/res_query.c (__libc_res_nquery): Add a few casts.
2194 Fix tests for existence of second reply.
2196 2008-10-23 Ulrich Drepper <drepper@redhat.com>
2198 * po/id.po: New file.
2199 Contributed by the Indonesian translation team.
2201 2008-10-22 Dmitry V. Levin <ldv@altlinux.org>
2203 * misc/syslog.c (openlog_internal): Fix __have_sock_cloexec
2206 2008-10-17 Jakub Jelinek <jakub@redhat.com>
2208 * elf/Makefile: Add rules to build and run tst-tls17.
2209 * elf/tst-tls17.c: New test.
2210 * elf/tst-tlsmod17a.c: New file.
2211 * elf/tst-tlsmod17b.c: Likewise.
2213 2008-10-17 Ulrich Drepper <drepper@redhat.com>
2215 * stdlib/divmod_1.c: Use correct type for dummy variable.
2216 * stdlib/mod_1.c: Likewise.
2218 2008-10-16 Ulrich Drepper <drepper@redhat.com>
2220 * elf/dl-tls.c (_dl_update_slotinfo): Copy all of the initial DTV.
2222 2008-10-16 Jakub Jelinek <jakub@redhat.com>
2224 * sysdeps/unix/sysv/linux/sys/signalfd.h (signalfd): Fix __THROW vs.
2225 __nonnull order for C++.
2226 * sysdeps/unix/sysv/linux/alpha/sys/signalfd.h (signalfd): Likewise.
2227 * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h (signalfd): Likewise.
2229 2008-10-01 Daniel Jacobowitz <dan@codesourcery.com>
2231 * stdlib/longlong.h: Update from GCC.
2233 2008-10-09 Jakub Jelinek <jakub@redhat.com>
2234 David S. Miller <davem@davemloft.net>
2236 * sysdeps/sparc/sparc64/sparcv9v/memcpy.S: When not USE_BPR,
2237 make sure any registers used with 64-bit 'branch-on-register'
2238 instructions have their top 32-bits clear.
2239 * sysdeps/sparc/sparc64/sparcv9v/memset.S: Likewise.
2240 * sysdeps/sparc/sparc64/sparcv9v2/memcpy.S: Likewise.
2242 2008-09-18 Andreas Schwab <schwab@suse.de>
2245 * resolv/res_send.c (send_vc): Fix use of unaligned address.
2246 Properly handle partial reads.
2248 2008-10-01 Mark Shinwell <shinwell@codesourcery.com>
2250 * elf/elf.h (STO_MIPS_PLT): New.
2252 (R_MIPS_JUMP_SLOT): New.
2253 (R_MIPS_NUM): Redefine to 128.
2254 (DT_MIPS_PLTGOT): New.
2255 (DT_MIPS_RWPLT): New.
2256 (DT_MIPS_NUM): Redefine to 0x35.
2258 2008-10-01 Ulrich Drepper <drepper@redhat.com>
2260 * timezone/africa: Update from tzdata2008f.
2261 * timezone/asia: Likewise.
2262 * timezone/australasia: Likewise.
2263 * timezone/europe: Likewise.
2264 * timezone/leapseconds: Likewise.
2265 * timezone/northamerica: Likewise.
2266 * timezone/southamerica: Likewise.
2267 * timezone/zone.tab: Likewise.
2269 2008-09-30 Ulrich Drepper <drepper@redhat.com>
2271 * nscd/connections.c: Disable use of paccept for now.
2273 2008-09-29 Ulrich Drepper <drepper@redhat.com>
2275 * socket/Versions: Remove paccept export for GLIBC_2.9.
2276 * socket/Makefile (routines): Remove paccept.
2277 * socket/sys/socket.h: Remove paccept declaration.
2279 * po/sv.po: Update from translation team.
2281 2008-09-22 Deborah S. Townsend <dstownse@us.ibm.com>
2283 * sysdeps/s390/s390-64/s390x-mcount.S: Replace ahi with aghi.
2284 * sysdeps/unix/sysv/linux/s390/s390-64/socket.S: Likewise.
2286 2008-09-16 Ulrich Drepper <drepper@redhat.com>
2288 * dlfcn/dlopen.c (dlopen_doit): Allow __RTLD_SPROF flag.
2289 Patch by Olivier Fourdan <ofourdan@redhat.com>.
2291 2008-09-15 Ulrich Drepper <drepper@redhat.com>
2293 * sunrpc/rpc/svc.h: Declare svcfd_create.
2294 Patch by Michael Solberg <msolberg@redhat.com>.
2296 2008-09-12 Flavio Leitner <fleitner@redhat.com>
2297 Ulrich Drepper <drepper@redhat.com>
2299 * malloc/malloc.c (public_vALLOc): Try other arenas in case
2301 (public_pVALLOc): Likewise.
2303 2008-09-02 Andreas Jaeger <aj@suse.de>
2305 * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: Fix last
2308 2008-08-26 Aurelien Jarno <aurelien@aurel32.net>
2311 * hurd/hurd/signal.h (HURD_MSGPORT_RPC): Fix a typo.
2313 2008-07-18 Daniel Jacobowitz <dan@codesourcery.com>
2315 * Makefile (check-data): Check data directory in add-ons.
2316 * elf/Makefile (check-data): Likewise.
2318 2008-08-18 Roland McGrath <roland@redhat.com>
2320 * configure.in (--with-cpu): Check compiler support for -march/-mcpu.
2321 * configure: Regenerated.
2322 * config.make.in (cflags-cpu): New substituted variable.
2323 (with-cpu): Variable removed.
2324 * Makeconfig (+cflags): Use $(cflags-cpu), not $(with-cpu).
2326 2008-08-14 Ryan S. Arnold <rsa@us.ibm.com>
2329 * sysdeps/powerpc/fpu/bits/mathinline.h (__signbitl): Copy new
2330 __signbitl definition and __LONG_DOUBLE_128__ guard from:
2331 * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h: Remove as
2332 redundant. Functions which call floating point assembler operations
2333 should go into a sysdeps powerpc/fpu directory.
2335 2008-08-15 Ulrich Drepper <drepper@redhat.com>
2337 * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Define MAP_STACK.
2338 * sysdeps/unix/sysv/linux/i386/bits/mman.h: Likewise.
2340 2008-08-14 Ulrich Drepper <drepper@redhat.com>
2342 * sysdeps/x86_64/memset.S: Reduce size of tables for PIC.
2344 * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): Undo all
2345 change related to AT_EXECFN. We cannot use that string.
2346 * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Remove
2348 * elf/dl-support.c: Remove _dl_execfn variable.
2349 (_dl_aux_init): Remove handling of AT_EXECFN.
2350 * elf/dl-sysdep.c (_dl_sysdep_start): Remove handling of AT_EXECFN.
2351 * elf/rtld.c (process_envvars): Remove use of __ASSUME_AT_EXECFN.
2353 2008-08-13 Ulrich Drepper <drepper@redhat.com>
2356 * libio/fmemopen.c: Implement binary mode. In this mode no NUL
2357 byte gets added to writes and seeks from the end use the length of
2358 the buffer and not the currently terminating NUL byte.
2361 * login/utmp_file.c (getutent_r_file): Take additional parameter.
2362 Set to true if locking failed.
2363 (getutid_r_file): Adjust caller.
2364 (pututline_file): Likewise. Return NULL in this case.
2365 Patch mostly by halesh.s@gmail.com.
2367 2008-08-12 Ulrich Drepper <drepper@redhat.com>
2370 * sysdeps/unix/sysv/linux/ifaddrs.c (struct sockaddr_ll_max):
2372 (struct ifaddrs_storage): Use it instead of sockaddr_ll.
2374 2008-08-12 Ryan S. Arnold <rsa@us.ibm.com>
2377 * sysdeps/powerpc/powerpc32/dl-machine.c (CHECK_STATIC_TLS): Remove
2378 macro since it is now available in elf/dynamic-link.h.
2380 2008-08-12 Roland McGrath <roland@frob.com>
2382 * hurd/hurd/signal.h (HURD_MSGPORT_RPC): Avoid -Wparenthesis triggers,
2383 in case used outside of libc.
2384 Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>
2386 2008-08-11 Ulrich Drepper <drepper@redhat.com>
2388 * resolv/res_mkquery.c (res_nmkquery): Call ns_name_compress
2389 directly instead of going through dn_comp.
2391 2008-08-11 Aurelien Jarno <aurel32@debian.org>
2393 * sysdeps/mach/i386/machine-lock.h (__spin_unlock, __spin_try_lock):
2394 Fix asm constraints.
2396 2008-08-07 Ulrich Drepper <drepper@redhat.com>
2399 * sysdeps/unix/sysv/linux/bits/in.h (IP_PMTUDISC_PROBE): Define.
2400 (IPV6_PMTUDISC_PROBE): Likewise.
2402 2008-08-07 Pete Eberlein <eberlein@us.ibm.com>
2405 * sysdeps/unix/sysv/linux/powerpc/bits/mman.h (PROT_SAO): Define.
2407 2008-08-01 Steven Munroe <sjmunroe@us.ibm.com>
2408 Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
2411 * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags):
2412 Added the members 'vsx' and 'arch_2_06'.
2413 (_dl_powerpc_platforms): Add the member 'power7'.
2414 * sysdeps/powerpc/dl-procinfo.h: Modify _DL_HWCAP_FIRST
2415 to reflect the changes required by VSX and ISA 2.06.
2416 Modify _DL_PLATFORMS_COUNT to reflect the addition of
2418 Defined PPC_PLATFORM_POWER7.
2419 (_dl_string_platform): Add support for POWER7.
2420 * sysdeps/powerpc/sysdep.h: Define bit masks for VSX
2421 capability and ISA 2.06.
2423 2008-08-07 Ulrich Drepper <drepper@redhat.com>
2426 * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h: Use correct
2427 macro to detect use of 128 bit long double.
2428 Patch by Ryan S. Arnold <rsa@us.ibm.com>.
2430 2008-08-05 Ulrich Drepper <drepper@redhat.com>
2432 * scripts/gen-as-const.awk: Use 32-bit values on 32-bit platforms.
2435 * sysdeps/i386/fpu/s_expm1l.S: Simply use exp implementation for large
2437 * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
2438 Patch by Denys Vlasenko <dvlasenk@redhat.com>.
2440 2008-08-03 Ulrich Drepper <drepper@redhat.com>
2442 * nscd/connections.c (main_loop_poll): Pass a buffer which is
2443 guaranteed to be large enough to read inotify event. Ignore
2444 EAGAIN error. Better error message. Add branch predicition.
2445 (main_loop_epoll): Likewise.
2447 2008-08-02 Roland McGrath <roland@frob.com>
2449 * sysdeps/mach/i386/machine-lock.h (__spin_unlock, __spin_try_lock):
2450 Add memory clobbers.
2452 2008-08-02 Ulrich Drepper <drepper@redhat.com>
2454 * manual/arith.texi: Avoid @strong{Note:}.
2455 * manual/creature.texi: Likewise.
2456 * manual/filesys.texi: Likewise.
2457 * manual/math.texi: Likewise.
2458 * manual/memory.texi: Likewise.
2459 * manual/resource.texi: Likewise.
2460 * manual/syslog.texi: Likewise.
2461 * manual/time.texi: Likewise.
2463 * sysdeps/posix/clock_getres.c (hp_timing_getres): Remove inline
2466 2008-08-01 Ulrich Drepper <drepper@redhat.com>
2468 * sysdeps/unix/sysv/linux/Versions: Fix changes due to old patch for
2469 new epoll_create1 interface.
2470 * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
2471 * sysdeps/unix/sysv/linux/sys/epoll.h: Likewise.
2472 * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
2474 * include/arpa/nameser.h (NS_GET16): Use const pointer.
2475 (NS_GET32): Likewise.
2477 * sysdeps/unix/sysv/linux/kernel-features.h: s390 has the new
2480 * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): We cannot
2481 use the AT_EXECFN value if it is no absolute path.
2482 * sysdeps/unix/sysv/linux/kernel-features.h: Never define
2485 * Versions.def: Add GLIBC_2.9 to libresolv.
2486 * include/resolv.h: Remove hidden proto declarations for __ns_*
2487 functions. Add them for __dn_count_labels and __p_secstodate.
2488 * include/arpa/nameser.h: Add a number of hidden proto declarations.
2489 Define ns_msg_getflags macro here.
2490 * resolv/res_debug.c: Add hidden definition for __dn_count_labels
2492 * resolv/Versions: Export functions from <arpa/nameser.h> from
2493 libresolv in version GLIBC_2.9.
2494 * resolv/ns_name.c: Integrate changes from bind 9.5.0. Add necessary
2496 * resolv/ns_netint.c: Likewise.
2497 * resolv/ns_parse.c: Likewise.
2498 * resolv/ns_print.c: Likewise.
2499 * resolv/ns_samedomain.c: Likewise.
2500 * resolv/ns_ttl.c: Likewise.
2501 * resolv/arpa/nameser_compat.h: Likewise.
2502 * resolv/arpa/nameser.h: Likewise. Remove macros which redirect
2504 * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Use __ns_get16
2505 instead of ns_get16.
2506 * resolv/nss_dns/dns-host.c (getanswer_r): Use __ns_get16 and
2507 __ns_get32 instead of ns_get16 and ns_get32 respectively.
2508 (gaih_getanswer_slice): Likewise.
2509 * resolv/Makefile (libresolv-routines): Add ns_date.
2510 * resolv/ns_date.c: New file.
2512 * elf/Makefile (check-localplt.out): Also check libresolv and
2515 2008-07-31 Ulrich Drepper <drepper@redhat.com>
2517 * sysdeps/unix/sysv/linux/kernel-features.h: Define
2520 2008-07-30 Ulrich Drepper <drepper@redhat.com>
2522 * sysdeps/posix/getaddrinfo.c (gaih_inet): Raise size of initial
2523 buffer passed to NSS functions.
2525 * nscd/connections.c (nscd_init): Typo in preprocessor directive.
2527 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PACCEPT):
2530 * misc/syslog.c (openlog_internal): Fix compile problem.
2532 2008-07-28 Roland McGrath <roland@redhat.com>
2534 * elf/dl-sysdep.c (_dl_show_auxv): Add AT_EXECFN to the table.
2536 2008-07-28 Ulrich Drepper <drepper@redhat.com>
2538 * io/ftw.c (add_object): Remove inline to avoid warning.
2540 * sysdeps/unix/sysv/linux/paccept.c: Fix compile problem.
2542 * resolv/res_send.c (__libc_res_nsend): Take additional parameter.
2543 Use it instead of locally defined resplen2 variable.
2544 (res_nsend): Adjust for __libc_res_nsend interface change.
2545 (send_vc): Initialize *resplen2 if necessary. Read length of
2546 package into an appropriately aligned variable. Store converted length
2547 in new variable and use it appropriately.
2548 Add branch prediction help.
2549 * resolv/res_query.c (__libc_res_nquery): Take additional parameter
2550 and pass it on to __libc_res_nsend. Adjust all callers.
2551 (__libc_res_nsearch): Likewise.
2552 (__libc_res_nqeurydomain): Likewise.
2553 * resolv/nss_dns/dns-host.c: Adjust for __libc_res_nsearch interface
2555 (_nss_dns_gethostbyname4): Don't unconditionally allocate tmp array.
2556 Define resplen2 variable and pass it to __libc_res_nsearch and then
2558 (getanswer_r): In case of incorrect DNS data don't overread buffer.
2559 Add branch prediction.
2560 (gaih_getanswer_slice): Likewise. Check for invalid data types.
2561 (gaih_getanswer): Don't decode second slice if first one failed due
2562 to a too small buffer. Don't let not found status of second
2563 decoder shadow results of the first.
2564 * resolv/gethnamaddr.c (gethostbyname2): Adjust for __libc_res_nsearch
2565 and __libc_res_nquery interface changes
2566 (gethostbyaddr): Adjust for __libc_res_nquery interface change.
2567 * include/resolv.h: Adjust prototypes for __libc_res_nquery,
2568 __libc_res_nsearch, and __libc_res_nsend.
2569 * resolv/nss_dns/dns-canon.c: Adjust for __libc_res_nquery interface
2571 * resolv/nss_dns/dns-network.c: Adjust for __libc_res_nquery and
2572 __libc_res_nsearch interface changes.
2574 2008-07-27 Ulrich Drepper <drepper@redhat.com>
2576 * libio/iopopen.c (_IO_new_proc_open): Remove unnecessary volatile.
2578 * posix/wordexp.c (exec_comm): Use pipe2 if possible to create
2579 file descriptors with close-on-exec set.
2580 (exec_comm_child): Fix the case where the write end of the pipe is
2581 STDOUT_FILENO already. In case it is, clear close-on-exec.
2583 * sysdeps/unix/sysv/linux/syscalls.list: Add __pipe2 alias.
2584 * io/pipe2.c: Likewise.
2585 * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_PIPE2
2586 instead of __ASSUME_PACCEPT.
2587 * include/unistd.h: Declare __have_pipe2.
2588 * libio/iopopen.c: Implement "e" flag.
2589 * libio/Makefile (tests): Add tst-popen1.
2590 * libio/tst-popen1.c: New file.
2592 * sysdeps/unix/sysv/linux/bits/socket.h: Define PF_ISDN and AF_ISDN.
2593 * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
2595 2008-07-26 Ulrich Drepper <drepper@redhat.com>
2598 * libio/fileops.c (_IO_new_file_attach): Preserve errno around
2599 success call of _IO_SEEKOFF or calls which failed because the
2600 descriptor is for a pipe.
2602 * sunrpc/key_call.c (getkeyserv_handle): Use FD_CLOEXEC instead of
2605 * misc/syslog.c (openlog_internal): Use SOCK_CLOEXEC if possible.
2607 * malloc/mtrace.c (mtrace): Use 'e' flag in fopen call. Drop
2608 F_SETFD use if we know fopen set the flag.
2610 * login/utmp_file.c (setutent_file): Minor optimization in case
2611 O_CLOEXEC is available.
2613 2008-07-24 Tom "spot" Callaway <tcallawa@redhat.com>
2615 * Makeconfig: Define pie-ccflag and PIE-ccflag variables.
2616 * elf/Makefile: Use pie-ccflag variable.
2617 * nscd/Makefile: Likewise.
2618 * sysdeps/sparc/Makefile: Set $(pie-ccflag) to -fPIE.
2620 2008-07-21 Andreas Krebbel <krebbel1@de.ibm.com>
2623 * Versions.def: Add GLIBC_2.9 version tag for libutil.
2624 * sysdeps/unix/sysv/linux/s390/bits/utmp.h: Copy of
2625 gnu/bits/utmp.h. Check for __WORDSIZE_COMPAT32 removed.
2626 * sysdeps/unix/sysv/linux/s390/bits/utmpx.h: Copy of
2627 gnu/bits/utmpx.h. Check for __WORDSIZE_COMPAT32 removed.
2628 * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Add new files
2629 utmp32, utmpx32 and login32.
2630 * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Add 2.9
2631 versions of struct utmp functions to libc and libutil.
2632 * sysdeps/unix/sysv/linux/s390/s390-32/utmp-compat.h: New file.
2633 * sysdeps/unix/sysv/linux/s390/s390-32/getutent.c: New file.
2634 * sysdeps/unix/sysv/linux/s390/s390-32/getutent_r.c: New file.
2635 * sysdeps/unix/sysv/linux/s390/s390-32/getutid.c: New file.
2636 * sysdeps/unix/sysv/linux/s390/s390-32/getutid_r.c: New file.
2637 * sysdeps/unix/sysv/linux/s390/s390-32/getutline.c: New file.
2638 * sysdeps/unix/sysv/linux/s390/s390-32/getutline_r.c: New file.
2639 * sysdeps/unix/sysv/linux/s390/s390-32/getutmp.c: New file.
2640 * sysdeps/unix/sysv/linux/s390/s390-32/getutxent.c: New file.
2641 * sysdeps/unix/sysv/linux/s390/s390-32/getutxid.c: New file.
2642 * sysdeps/unix/sysv/linux/s390/s390-32/getutxline.c: New file.
2643 * sysdeps/unix/sysv/linux/s390/s390-32/login.c: New file.
2644 * sysdeps/unix/sysv/linux/s390/s390-32/login32.c: New file.
2645 * sysdeps/unix/sysv/linux/s390/s390-32/pututxline.c: New file.
2646 * sysdeps/unix/sysv/linux/s390/s390-32/updwtmp.c: New file.
2647 * sysdeps/unix/sysv/linux/s390/s390-32/updwtmpx.c: New file.
2648 * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: New file.
2649 * sysdeps/unix/sysv/linux/s390/s390-32/utmp32.c: New file.
2650 * sysdeps/unix/sysv/linux/s390/s390-32/utmp32.h: New file.
2651 * sysdeps/unix/sysv/linux/s390/s390-32/utmpx-convert.h: New file.
2652 * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.c: New file.
2653 * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: New file.
2655 2008-07-26 Ulrich Drepper <drepper@redhat.com>
2657 * scripts/gen-as-const.awk: Generate more widely usable code by
2658 using 64-bit arithmetic.
2660 * stdio-common/printf_fp.c (___printf_fp): Give wide outout code
2661 the same treatment as narrow output code in last patch.
2663 * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Namespace cleanup.
2666 * elf/dl-load.c (local_strdup): Remove inline.
2667 (_dl_map_object_from_fd): Don't allocate l_symbolic_searchlist.r_list.
2668 * elf/dl-object.c (_dl_new_object): Allocate symbolic searchlist as
2671 * sysdeps/unix/sysv/linux/dl-origin.c: Add const to avoid warning.
2673 2008-07-25 Ulrich Drepper <drepper@redhat.com>
2675 * sysdeps/unix/sysv/linux/kernel-features.h: IA-64 and SPARC have
2676 the new syscalls, too.
2678 * sysdeps/i386/i686/memcmp.S: Fix unwind information.
2679 Reported by Paul Pluzhnikov <ppluzhnikov@google.com>.
2682 * stdio-common/_i18n_number.h (_i18n_number_rewrite): Take additional
2683 parameter for end of buffer. If temporary copy is too large use
2685 * stdio-common/vfprintf.c: Adjust for _i18n_number_rewrite
2687 * stdio-common/printf_fp.c (__printf_fp): Likewise.. Account for
2688 string rewrite when allocating buffer.
2690 * sysdeps/unix/sysv/linux/kernel-features.h: PPC has the new
2693 * nscd/connections.c (nscd_init): Clean up fcntl call.
2695 * nscd/nscd_helper.c (open_socket): Use SOCK_CLOEXEC and
2696 SOCK_NONBLOCK if possible.
2698 * sysdeps/unix/sysv/linux/opensock.c (__opensock): Use
2699 SOCK_CLOEXEC if available.
2701 * include/rpc/clnt.h: Declare __libc_clntudp_bufcreate and
2702 __libc_clntudp_bufcreate_internal.
2703 * include/sys/socket.h: Declare __have_sock_cloexec.
2704 * socket/Makefile (aux): Add have_sock_cloexec.
2705 * socket/have_sock_cloexec.c: New file.
2706 * sunrpc/clnt_udp.h (clntudp_bufcreate): Now a wrapper around
2707 __libc_clntudp_bufcreate.
2708 (__libc_clntudp_bufcreate): Former implementation of clntudp_bufcreate
2709 which takes an additional parameter. Create socket with non-blocking
2710 mode and close-on-exec flag set, if wanted.
2711 * sunrpc/Versions: Export __libc_clntudp_bufcreate@GLIBC_PRIVATE.
2712 * nis/ypclnt.c (yp_bind_client_create): Use __libc_clntpudp_bufcreate
2713 instead of clntudp_create. The socket has already the close-on-exec
2714 flag set if SOCK_CLOEXEC is defined.
2716 2008-07-24 Ulrich Drepper <drepper@redhat.com>
2718 * sysdeps/unix/sysv/linux/kernel-features.h: Define
2719 __ASSUME_PACCEPT, __ASSUME_IN_NONBLOCK, and __ASSUME_PACCEPT if
2721 * nscd/connections.c: Avoid fcntl calls to set close-on-exec flag and
2722 non-blocking mode by using socket, paccept, and inotify_init1.
2724 * Versions.def (glibc): Add GLIBC_2.9.
2725 * io/Makefile (routines): Add dup3 and pipe2.
2726 * io/Versions [glibc] (GLIBC_2.9): Add dup3 and pipe2.
2727 * io/dup3.c: New file.
2728 * io/pipe2.c: New file.
2729 * posix/unistd.h: Declare dup3 and pipe2.
2730 * socket/Makefile (routines): Add paccept.
2731 * socket/Versions [glibc] (GLIBC_2.9): Add paccept.
2732 * socket/paccept.c: New file.
2733 * socket/sys/socket.h: Declare paccept.
2734 * sysdeps/unix/syscalls.list: Add entry for dup3.
2735 * sysdeps/unix/sysv/linux/Versions [glibc] (GLIBC_2.9): Add
2736 epoll_create2 and inotify_init1.
2737 * sysdeps/unix/sysv/linux/eventfd.c: Use eventfd1 syscall if possible.
2738 * sysdeps/unix/sysv/linux/paccept.c: New file.
2739 * sysdeps/unix/sysv/linux/signalfd.c: Use signalfd4 syscall if
2741 * sysdeps/unix/sysv/linux/socketcall.h: Add SOCKOP_paccept.
2742 * sysdeps/unix/sysv/linux/syscalls.list: Add epoll_create2,
2743 inotify_init1, and pipe2 entries.
2744 * sysdeps/unix/sysv/linux/alpha/sys/epoll.h: New file.
2745 * sysdeps/unix/sysv/linux/alpha/sys/eventfd.h: New file.
2746 * sysdeps/unix/sysv/linux/alpha/sys/inotify.h: New file.
2747 * sysdeps/unix/sysv/linux/alpha/sys/signalfd.h: New file.
2748 * sysdeps/unix/sysv/linux/alpha/sys/timerfd.h: New file.
2749 * sysdeps/unix/sysv/linux/bits/socket.h: Define SOCK_CLOEXEC and
2751 * sysdeps/unix/sysv/linux/i386/paccept.S: New file.
2752 * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: New file.
2753 * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: New file.
2754 * sysdeps/unix/sysv/linux/sparc/sys/inotify.h: New file.
2755 * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h: New file.
2756 * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: New file.
2757 * sysdeps/unix/sysv/linux/sparc/bits/socket.h: New file.
2758 * sysdeps/unix/sysv/linux/sys/epoll.h: Define EPOLL_CLOEXEC and
2759 EPOLL_NONBLOCK. Declare epoll_create2.
2760 * sysdeps/unix/sysv/linux/sys/eventfd.h: Define EFD_CLOEXEC and
2762 * sysdeps/unix/sysv/linux/sys/inotify.h: Define IN_CLOEXEC and
2763 IN_NONBLOCK. Declare inotify_init1.
2764 * sysdeps/unix/sysv/linux/sys/signalfd.h: Define SFD_CLOEXEC and
2766 * sysdeps/unix/sysv/linux/sys/timerfd.h: Define TFD_CLOEXEC and
2769 * elf/elf.h: Define AT_EXECFN.
2770 * elf/rtld.c [!__ASSUME_AT_EXECFN] (process_envvars): Don't handle
2772 * elf/dl-sysdep.c (_dl_sysdep_start): Handle AT_EXECFN.
2773 * elf/dl-support.c: Define _dl_execfn. Don't define _dl_origin_path
2774 if __ASSUME_AT_EXECFN is defined.
2775 (_dl_aux_init): Handle AT_EXECFN.
2776 * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_AT_EXECFN
2778 * sysdeps/generic/ldsodefs.h (rtld_global_ro): Add _dl_execfn.
2779 Don't define _dl_origin_path if __ASSUME_AT_EXECFN is defined.
2780 * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): Use
2781 _dl_execfn if available and avoid compatibility code if
2782 __ASSUME_AT_EXECFN is defined.
2784 * sysdeps/unix/sysv/linux/dl-sysdep.h: Don't declare
2785 _dl_discover_osversion only for older kernels.
2787 2008-07-22 Roland McGrath <roland@frob.com>
2789 * hurd/fd-read.c (_hurd_fd_read): Fix last change.
2791 2008-07-21 Roland McGrath <roland@frob.com>
2793 * hurd/fd-read.c (_hurd_fd_read): Return EGRATUITOUS if the server
2794 returned too much data out of line.
2796 2008-07-20 Ulrich Drepper <drepper@redhat.com>
2798 * locale/setlocale.c (setname): Remove inline to avoid compiler
2802 * locale/setlocale.c (setlocale): Take the setlocale lock earlier.
2804 2008-07-15 Ulrich Drepper <drepper@redhat.com>
2806 * stdio-common/vfprintf.c (_IO_helper_overflow): In case _IO_sputn
2807 doesn't manage to write anything, fail.
2809 * malloc/hooks.c (__malloc_check_init): Remove printf.
2811 2008-07-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
2813 * sysdeps/mach/hurd/bits/fcntl.h: Include <sys/types.h>.
2815 2008-07-12 Ulrich Drepper <drepper@redhat.com>
2817 * nscd/connections.c (main_loop_poll): Fix handling of read errors
2819 (main_loop_epoll): Likewise.
2821 2008-07-09 Ulrich Drepper <drepper@redhat.com>
2823 * resolv/res_send.c: Remove unnecessary res_pquery prototype.
2825 * resolv/res_query.c (__libc_res_nquery): Issue debug message only
2826 if DEBUG is defined.
2828 * resolv/res_query.c (__libc_res_nquery): Align buffer for T_AAAA
2829 query. Adjust buffer size computation for padding.
2831 2008-07-08 Ulrich Drepper <drepper@redhat.com>
2833 * stdio-common/Makefile: Add rules to build and run tst-setvbuf1.
2834 * stdio-common/tst-setvbuf1.c: New file.
2835 * stdio-common/tst-setvbuf1.expect: New file.
2838 * libio/iosetvbuf.c (_IO_setvbuf): Correctly clear buffering flags
2839 when selecting fully-buffered stream.
2840 Patch by Wang Xin <wxinee@gmail.com>.
2842 2008-07-06 Samuel Thibault <samuel.thibault@ens-lyon.org>
2844 * sysdeps/mach/hurd/open.c: Include <stdio.h>.
2845 (__open_2): New function.
2846 (__open64_2): New alias to __open_2.
2847 * sysdeps/mach/hurd/openat.c: Include <stdio.h>.
2848 (__openat_2): New function.
2849 (__openat64_2): New alias to __openat_2.
2851 2008-07-06 Ulrich Drepper <drepper@redhat.com>
2854 * time/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
2856 2008-07-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
2858 * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Define MSG_NOSIGNAL.
2859 * hurd/hurd/fd.h (__hurd_sockfail): Add extern inline function.
2860 * sysdeps/mach/hurd/recv.c (__recv): Use __hurd_sockfail instead of
2862 * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Likewise.
2863 * sysdeps/mach/hurd/recvmsg.c (__recvmsg): Likewise.
2864 * sysdeps/mach/hurd/send.c (__send): Likewise.
2865 * sysdeps/mach/hurd/sendto.c (__sendfrom): Likewise.
2866 * sysdeps/mach/hurd/sendmsg.c (__sendmsg): Likewise.
2868 2008-03-04 Samuel Thibault <samuel.thibault@ens-lyon.org>
2870 * sysdeps/mach/hurd/recv.c (__recv): Initialize NPORTS.
2871 * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Likewise.
2872 * sysdeps/mach/hurd/recvmsg.c (__recvmsg): Likewise.
2873 * hurd/fd-read.c (_hurd_fd_read): Initialize NREAD.
2874 * hurd/get-host.c (_hurd_get_host_config): Likewise.
2875 * sysdeps/mach/hurd/dl-sysdep.c (__libc_read): Likewise.
2877 2008-06-27 Ulrich Drepper <drepper@redhat.com>
2880 * time/strptime_l.c: Don't clear s.era_cnt after successful match
2882 Patch by Petr Baudis.
2884 2008-06-26 Ulrich Drepper <drepper@redhat.com>
2886 * resolv/res_debug.c (__p_type_syms): Add ns_t_dname entry.
2887 Patch by Peter Jones <pjones@redhat.com>.
2889 2008-06-25 Ulrich Drepper <drepper@redhat.com>
2892 * stdlib/canonicalize.c (__realpath): readlink can write too much
2893 into the buffer on platforms without PATH_MAX.
2895 2008-06-17 Carlos O'Donell <carlos@codesourcery.com>
2898 * posix/tst-regex.c (main): Rename to...
2899 (do_test): ... this. Remove cmdline option processing.
2901 (TEST_FUNCTION): Define.
2902 (CMDLINE_OPTIONS): Define.
2904 2008-06-25 Ulrich Drepper <drepper@redhat.com>
2907 * configure.in: Add -Werror to -fstack-protector test to catch
2908 unsupported architectures.
2909 Patch by Gilles Esponasse <g.esp@free.fr>.
2911 2008-06-17 Joseph Myers <joseph@codesourcery.com>
2913 * stdlib/tst-setcontext.c: Set back_in_main before exit if
2914 getcontext returns ENOSYS.
2916 2008-06-18 Ulrich Drepper <drepper@redhat.com>
2918 * nscd/connections.c (main_loop_poll): Fix test for read error.
2919 (main_loop_epoll): Likewise.
2921 2008-06-13 Ulrich Drepper <drepper@redhat.com>
2923 * sysdeps/posix/getaddrinfo.c: Move _res_hconf_init call to a
2924 better place so it is not called when nscd is used.
2926 * nscd/connections.c: Also recognize and handle changes to the
2927 resolver configuration file.
2929 2008-06-12 Ulrich Drepper <drepper@redhat.com>
2931 * time/strftime.c: Pass reference to tzset_called around to handle
2935 * time/strftime.c (__strftime_internal): Call tzset() only
2936 when printing timezone-dependent values.
2937 Based on a patch by Petr Baudis <pasky@suse.cz>.
2939 * resolv/nss_dns/dns-host.c (gaih_getanswer): Don't
2940 unconditionally use second gaih_getanswer_slice result.
2942 * sysdeps/posix/getaddrinfo.c (gai_inet): Remove unnecessary test.
2943 (getaddrinfo): RES must always be non-NULL.
2945 2008-06-12 Jakub Jelinek <jakub@redhat.com>
2947 * sysdeps/powerpc/powerpc64/fpu/s_llround.S (__llround): Avoid using
2949 * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S (__llroundf): Likewise.
2950 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S (__llround):
2952 * sysdeps/powerpc/powerpc32/fpu/s_lround.S (__lround): Avoid using cr3
2955 2008-06-12 Ulrich Drepper <drepper@redhat.com>
2957 * nscd/nscd.h (struct database_dyn): Add inotify_descr and clear_cache
2959 * nscd/connections.c (inotify_fd): New variable.
2960 (nscd_init): Try to open an inotify descriptor.
2961 If successful, watch files for databases using inotify instead of
2962 having prune threads stat the files.
2963 (nscd_run_prune): Recognize clear_cache flag being set and call
2964 prune_cache appropriately.
2965 (main_loop_poll): Add inotify descriptor to wait set and handle the
2967 (main_loop_epoll): Likewise.
2968 * nscd/cache.c (prune_cache): Don't stat files for databases if
2970 * sysdeps/unix/sysv/linux/Makefile [subdir=nscd]
2971 (CFLAGS-connections.c): Add -DHAVE_INOTIFY.
2973 * nscd/grpcache.c (cache_addgr): Correctly compute size of
2974 fixed-size portion of the record.
2975 * nscd/servicescache.c (cache_addserv): Likewise.
2976 * nscd/pwdcache.c (cache_addpw): Likewise.
2977 * nscd/initgrcache.c (addinitgroupsX): Likewise.
2979 2008-06-11 Ulrich Drepper <drepper@redhat.com>
2981 * nscd/mem.c (gc): Initialize obstack earlier so that if we jump
2982 out we don't use uninitialized memory.
2984 * nscd/hstcache.c (cache_addhst): Send correct number of bytes to
2987 2008-06-10 Ulrich Drepper <drepper@redhat.com>
2989 * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): Also log and
2990 ignore T_DNAME messages.
2991 * resolv/arpa/nameser_compat.h (T_DNAME): Define.
2993 2008-06-05 Jakub Jelinek <jakub@redhat.com>
2995 * misc/regexp.h (compile): Use __REPB_PREFIX macro.
2996 Avoid segfault if first GETC returns eof/'\0'/'\n'.
2998 2008-06-03 Jakub Jelinek <jakub@redhat.com>
3000 * nscd/nscd_getserv_r.c (__nscd_getservbyport_r): Pass cp
3001 instead of portstr to nscd_getserv_r. Patch by
3002 Roman Kagan <rkagan@mail.ru>.
3004 2008-05-26 Jim Meyering <meyering@redhat.com>
3006 Remove more useless "if" tests before "free".
3007 * include/inline-hashtab.h (htab_delete): Likewise.
3008 * libio/freopen.c (freopen): Likewise.
3009 * libio/freopen64.c (freopen64): Likewise.
3010 * locale/programs/ld-collate.c (collate_read): Likewise.
3011 * misc/fstab.c (libc_freeres_fn): Likewise.
3012 * posix/glob.c (globfree): Likewise.
3014 2008-05-24 Ulrich Drepper <drepper@redhat.com>
3016 * string/Makefile (strop-tests): Add memmem.
3017 * string/test-memmem.c: New file.
3018 * string/test-string.h (BUF1PAGES): Define to 1 if undefined.
3019 (test_init): Size buf1 according to BUF1PAGES.
3021 2008-05-24 Jakub Jelinek <jakub@redhat.com>
3023 * libio/stdio.h (vscanf): Fix -std=c99 redirect.
3024 * stdio-common/Makefile (tests): Add scanf16 and scanf17.
3025 (CFLAGS-scanf17.c): New.
3026 * stdio-common/scanf14.c (main): Add fscanf and scanf tests.
3027 * stdio-common/scanf15.c (main): Likewise.
3028 * stdio-common/scanf16.c: New file.
3029 * stdio-common/scanf17.c: New file.
3031 2008-05-24 Ulrich Drepper <drepper@redhat.com>
3033 * resolv/res_send.c (send_dg): If we already have one of two
3034 answers and the server reports SERVFAIL, NOTIMP, or REFUSED, then
3035 use the one answer insted of failing.
3037 2008-02-20 Ryan S. Arnold <rsa@us.ibm.com>
3039 * math/libm-test.inc (exp_test): Exclude expl(1000.0L) from
3040 being executed on PowerPC as the expected result exceeds IBM
3041 long double 128 __LDBL_MAX__.
3043 2008-05-21 Roland McGrath <roland@redhat.com>
3045 * shlib-versions (sparc.*-.*-.*, sparc64.*-.*-.*): Add ABI lines.
3047 * Makefile (check-data): Use $(abi-name) before other guesses.
3048 Look in $(add-ons) dirs before scripts/data/.
3049 * elf/Makefile (check-data): Likewise.
3051 * scripts/soversions.awk: Grok ABI line.
3052 * Makeconfig ($(common-objpfx)soversions.mk): Likewise.
3053 Emit definition for abi-name variable.
3055 2008-05-21 Ulrich Drepper <drepper@redhat.com>
3057 * string/endian.h: Define new fixed-size hto* and *toh macros only
3060 * iconvdata/Depend: Add localedata.
3062 2008-05-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
3064 * bits/termios.h (ONLCR): Define under [__USE_XOPEN] too.
3066 2008-05-08 David S. Miller <davem@davemloft.net>
3068 * sysdeps/unix/sysv/linux/sparc/sparc32/setcontext.S: Use
3070 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
3071 (__SYSCALL_CLOBBERS): Remove %g* registers.
3072 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
3073 (__SYSCALL_CLOBBERS): Likewise.
3074 * scripts/data/localplt-sparc-linux-gnu.data: New file.
3075 * scripts/data/localplt-sparc64-linux-gnu.data: New file.
3077 2008-05-21 Jakub Jelinek <jakub@redhat.com>
3079 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
3080 (CALL_ERRNO_LOCATION): Define.
3081 (__SYSCALL_STRING, __CLONE_SYSCALL_STRING): Use it.
3082 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
3083 (CALL_ERRNO_LOCATION): Define.
3084 (__SYSCALL_STRING, __CLONE_SYSCALL_STRING): Use it.
3085 * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S (__brk): Use
3086 HIDDEN_JUMPTARGET for __errno_location call in libc.so.
3088 2008-05-20 Ulrich Drepper <drepper@redhat.com>
3090 * include/inline-hashtab.h (higher_prime_number): Fix type of mid
3093 2008-05-20 Jakub Jelinek <jakub@redhat.com>
3095 * sysdeps/unix/sysv/linux/sparc/sparc32/sigcontextinfo.h
3096 (FIRST_FRAME_POINTER): Define.
3098 2008-05-09 David S. Miller <davem@davemloft.net>
3100 * sysdeps/sparc/sparc64/backtrace.c: New file.
3102 2008-05-14 David S. Miller <davem@davemloft.net>
3104 * sysdeps/sparc/machine-gmon.h: New file.
3105 * sysdeps/sparc/sparc-mcount.S: Likewise.
3106 * sysdeps/sparc/Makefile: Add sparc-mcount target to
3107 sysdep_routines in gmon directory.
3109 2008-05-19 Jakub Jelinek <jakub@redhat.com>
3111 * elf/soinit.c (__EH_FRAME_BEGIN__): Remove.
3113 2008-05-19 Ulrich Drepper <drepper@redhat.com>
3115 * resolv/res_query.c (__libc_res_nquery): In case one of two
3116 answer was too short don't try to read that answer's header.
3118 * resolv/res_send.c (send_dg): In case of timeout and there are
3119 two queries and one has been answered, return value indicating
3122 2008-05-18 Ulrich Drepper <drepper@redhat.com>
3124 * nscd/cache.c (cache_add): Take additional parameter specifying
3125 whether this is in response of a cache refill. Check alignment
3126 of package data. Revamp waking of pruning thread.
3127 (prune_cache): Small optimization.
3128 * nscd/nscd.h: Adjust cache_add prototypes.
3129 * nscd/aicache.c: Adjust cache_add calls.
3130 * nscd/grpcache.c: Likewise.
3131 * nscd/hstcache.c: Likewise.
3132 * nscd/initgrcache.c: Likewise.
3133 * nscd/pwdcache.c: Likewise.
3134 * nscd/servicescache.c: Likewise.
3135 * nscd/connections.c (restart): Really disable cache use before
3136 exec attempt. If it fails, reenable cache.
3137 (nscd_run_prune): Initialize wakeup_time. After wakeup, set wakeup
3138 time to max to be able to notice concurrent cache additions. Unlock
3139 prune_lock while performing gc. Afterwards compute wakeup time with
3140 current wakeup_time value in mind.
3142 2008-05-17 Ulrich Drepper <drepper@redhat.com>
3144 * nscd/mem.c (gc): Avoid stack overflow when allocating move list.
3146 * nscd/mem.c (gc): Correctly determine highest used array element
3149 * nscd/mem.c (markrange): Add assert to check entries are all
3150 aligned. Small cleanup in bitmap use.
3152 * nscd/nscd.h (mem_in_flight): Replace blockaddr field with
3153 blockoff of type nscd_ssize_t.
3154 * nscd/mem.c (gc): Simplify markrange call for on-flight blocks.
3155 (mempoll_alloc): Record block offset and not address.
3157 * nscd/mem.c (gc): Fix test for stack overuse.
3159 * nscd/aicache.c (addhstaiX): Fix a few small problems, cleanups,
3162 * sysdeps/posix/getaddrinfo.c (gaih_inet): If nscd reports no
3163 entry is available, believe it.
3165 * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): If there are
3166 no answers return NSS_STATUS_NOTFOUND.
3167 (gaih_getanswer): Don't call gaih_getanswer_slice if the answer
3168 buffer does not have any content.
3170 2008-05-16 Ulrich Drepper <drepper@redhat.com>
3172 * string/strcasestr.c (CMP_FUNC): Use __strncasecmp, not strncasecmp.
3174 * sysdeps/posix/getaddrinfo.c (gaih_inet): After gethostbyname4_r
3175 lookup, don't assign canon unconditionally.
3177 2008-05-14 Ulrich Drepper <drepper@redhat.com>
3179 * string/Makefile (distribute): Add str-two-way.h.
3181 2008-03-29 Eric Blake <ebb9@byu.net>
3183 Rewrite string searches to O(n) rather than O(n^2).
3184 * string/str-two-way.h: New file. For linear fixed-allocation
3186 * string/memmem.c: New implementation.
3187 * string/strstr.c: New implementation.
3188 * string/strcasestr.c: New implementation.
3190 2008-04-11 Paolo Bonzini <bonzini@gnu.org>
3192 * posix/regcomp.c (optimize_utf8): Add a note on why we test
3194 (calc_first): Initialize constraint field.
3195 (duplicate_node_closure): Use it instead of special casing ANCHORS.
3196 Use search_duplicated_node to avoid loops. Fix grammar.
3197 (duplicate_node): Merge constraint field for all node types.
3198 (calc_eclosure_iter): Look at constraint field for all node types.
3199 * posix/regex_internal.c (create_cd_newstate): Don't look at
3202 2008-05-14 Ulrich Drepper <drepper@redhat.com>
3205 * configure.in: Don't use $CFLAGS when assembling, use $ASFLAGS.
3208 * string/endian.h: Add macros for fixed-size endian conversion.
3209 * bits/byteswap.h: Allow inclusion from <endian.h>.
3210 * sysdeps/i386/bits/byteswap.h: Likewise.
3211 * sysdeps/ia64/bits/byteswap.h: Likewise.
3212 * sysdeps/s390/bits/byteswap.h: Likewise.
3213 * sysdeps/x86_64/bits/byteswap.h: Likewise.
3214 * string/Makefile (tests): Add tst-endian.
3215 * string/tst-endian.c: New file.
3217 * iconvdata/run-iconv-test.sh: Use = instead of == in test.
3218 Patch by Reuben Thomas.
3220 2008-05-14 Joseph Myers <joseph@codesourcery.com>
3222 * iconvdata/Makefile (bug-iconv6-ENV, tst-iconv7-ENV): Define.
3224 2008-05-14 Ulrich Drepper <drepper@redhat.com>
3226 * iconvdata/bug-iconv6.c (do_test): Use de_DE.UTF-8 locale.
3229 * iconv/gconv_simple.c (BODY for __gconv_transform_ascii_internal):
3231 (BODY for __gconv_transform_internal_ascii): Likewise.
3234 * sysdeps/posix/getaddrinfo.c (get_scope): Loopback addresses have
3235 to be treated like link-local addresses.
3236 (match_prefix): Don't treat IPv4 loopback address special when
3237 converting to v4 mapped addressed.
3239 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Call _res_hconf_init
3241 * posix/tst-rfc3484.c: Add dummy definition of _res_hconf_init.
3242 * posix/tst-rfc3484-2.c: Likewise.
3243 * posix/tst-rfc3484-3.c: Likewise.
3245 * sysdeps/posix/getaddrinfo.c: Implement handling of DCCP, UDPlite,
3248 * nss/getent.c (ahosts_keys_int): Handle all known socket types.
3250 * inet/netinet/in.h (IPPIPPROTO_DCCP, IPPROTO_UDPLITE): Define.
3252 * sysdeps/unix/sysv/linux/bits/socket.h (SOCK_DCCP): Define.
3254 2008-05-13 Ulrich Drepper <drepper@redhat.com>
3256 * po/lt.po: New file. From Lituanian translation team.
3258 2008-01-30 Alexandre Oliva <aoliva@redhat.com>
3260 Introduce TLS descriptors for i386 and x86_64.
3261 * include/inline-hashtab.h: New file, copied from 2005's
3262 libiberty, with fix for memory leak imported afterwards by
3263 Glauber de Oliveira Costa.
3264 * elf/tlsdeschtab.h: New file.
3265 * elf/dl-reloc.c (_dl_try_allocate_static_tls): Extract from...
3266 (_dl_allocate_static_tls): ... here. Rearrange failure path.
3267 (CHECK_STATIC_TLS): Move to...
3268 * elf/dynamic-link.h: ... this file.
3269 (TRY_STATIC_TLS): New macro.
3270 * elf/dl-conflict.c (CHECK_STATIC_TLS, TRY_STATIC_TLS): Override.
3271 * elf/elf.h (R_386_TLS_GOTDESC, R_386_TLS_DESC_CALL,
3272 R_386_TLS_DESC): Define.
3273 (R_X86_64_PC64, R_X86_GOTOFF64, R_X86_64_GOTPC32): Merge from
3275 (R_X86_64_GOTPC32_TLSDESC, R_X86_64_TLSDESC_CALL,
3276 R_X86_64_TLSDESC): Define.
3277 (R_386_NUM, R_X86_64_NUM): Adjust.
3278 * sysdeps/i386/Makefile (sysdep-dl-routines, sysdep_routines,
3279 sysdep-rtld-routines): Add tlsdesc and dl-tlsdesc for elf subdir.
3280 (gen-as-const-headers): Add tlsdesc.sym to csu subdir.
3281 * sysdeps/i386/dl-lookupcfg.h: New file. Introduce _dl_unmap to
3282 release tlsdesc_table.
3283 * sysdeps/i386/dl-machine.h: Include dl-tlsdesc.h.
3284 (elf_machine_type_class): Mark R_386_TLS_DESC as PLT class.
3285 (elf_machine_rel): Handle R_386_TLS_DESC.
3286 (elf_machine_rela): Likewise.
3287 (elf_machine_lazy_rel): Likewise.
3288 (elf_machine_lazy_rela): Likewise.
3289 * sysdeps/i386/dl-tls.h (struct dl_tls_index): Name it.
3290 * sysdeps/i386/dl-tlsdesc.S: New file.
3291 * sysdeps/i386/dl-tlsdesc.h: New file.
3292 * sysdeps/i386/tlsdesc.c: New file.
3293 * sysdeps/i386/tlsdesc.sym: New file.
3294 * sysdeps/i386/bits/linkmap.h (struct link_map_machine): Add
3296 * sysdeps/x86_64/Makefile (sysdep-dl-routines, sysdep_routines,
3297 sysdep-rtld-routines): Add tlsdesc and dl-tlsdesc for elf subdir.
3298 (gen-as-const-headers): Add tlsdesc.sym to csu subdir.
3299 * sysdeps/x86_64/dl-lookupcfg.h: New file. Introduce _dl_unmap to
3300 release tlsdesc_table.
3301 * sysdeps/x86_64/dl-machine.h: Include dl-tlsdesc.h.
3302 (elf_machine_runtime_setup): Set up lazy TLSDESC GOT entry.
3303 (elf_machine_type_class): Mark R_X86_64_TLSDESC as PLT class.
3304 (elf_machine_rel): Handle R_X86_64_TLSDESC.
3305 (elf_machine_rela): Likewise.
3306 (elf_machine_lazy_rel): Likewise.
3307 * sysdeps/x86_64/dl-tls.h (struct dl_tls_index): Name it.
3308 (__tls_get_addr): Do not declare for non-shared compiles.
3309 * sysdeps/x86_64/dl-tlsdesc.S: New file.
3310 * sysdeps/x86_64/dl-tlsdesc.h: New file.
3311 * sysdeps/x86_64/tlsdesc.c: New file.
3312 * sysdeps/x86_64/tlsdesc.sym: New file.
3313 * sysdeps/x86_64/bits/linkmap.h (struct link_map_machine): Add
3314 tlsdesc_table for both 32- and 64-bit structs.
3316 2008-05-11 Ulrich Drepper <drepper@redhat.com>
3318 * elf/dl-tls.c (__tls_get_addr): Optimize by moving slow path in
3319 its own function. This reduces the frame setup costs and more.
3321 2008-02-11 Joseph Myers <joseph@codesourcery.com>
3324 * sysdeps/ieee754/flt-32/w_expf.c (o_threshold): Correct value.
3325 * math/libm-test.inc (exp_test): Test 88.72269439697265625.
3327 2008-05-11 Ulrich Drepper <drepper@redhat.com>
3329 * io/openat.c (__openat_2): Also pass fd to __openat.
3330 * io/openat64.c (__openat64_2): Also pass fd to __openat64.
3331 Patch by Kristian Van Der Vliet <vanders@liqwyd.com>.
3333 * string/tester.c (test_memcmp): Add a few more tests.
3334 Patch by Mats Erik Andersson <ynglingatal@comhem.se>.
3336 2008-05-10 Ulrich Drepper <drepper@redhat.com>
3338 * nscd/cache.c (cache_add): Before returning with failure and this
3339 is the first use of the record, mark it as unusable.
3340 * nscd/aicache.c: Don't touch the dataset after cache_add returns
3341 reporting a failure.
3342 * nscd/grpcache.c: Likewise
3343 * nscd/hstcache.c: Likewise.
3344 * nscd/initgrcache.c: Likewise.
3345 * nscd/pwdcache.c: Likewise.
3346 * nscd/servicescache.c: Likewise.
3348 2008-05-10 Roland McGrath <roland@redhat.com>
3351 * sysdeps/unix/sysv/linux/sys/user.h: Replace with #error stub.
3353 2008-05-08 David S. Miller <davem@davemloft.net>
3355 * misc/truncate64.c (truncate64): Use __truncate not truncate.
3357 * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee751_j0l): Use __finitel.
3358 (__ieee754_y0l): Likewise.
3359 * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Likewise.
3360 (__ieee754_y1l): Likewise.
3361 * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Use __ldexpl.
3362 * sysdeps/ieee754/ldbl-128/s_log1pl.c: Kill bogus prototypes for
3363 frexpl and ldexpl. math_private.h provides them and the latter
3365 (__log1pl): Use __frexpl.
3367 2008-05-10 Ulrich Drepper <drepper@redhat.com>
3369 * include/resolv.h: Adjust __libc_res_nquery and __libc_res_nsend
3371 * include/arpa/nameser_compat.h: Define T_UNSPEC.
3372 * nis/Versions (libnss_nis): Export _nss_nis_gethostbyname4_r.
3373 (libnss_nisplus): Export _nss_nisplus_gethostbyname4_r.
3374 * nis/nss_nis/nis-hosts.c (LINE_PARSER): Change to also handle
3376 (_nss_nis_gethostbyname4_r): New function.
3377 * nis/nss_nisplus/nisplus-hosts.c (_nss_nisplus_parse_hostent):
3378 Change to also handle af==AF_UNSPEC.
3379 (get_tablename): New function. Use it to avoid duplication.
3380 (_nss_nisplus_gethostbyname4_r): New function.
3381 * nscd/aicache.c (addhstaiX): Use gethostbyname4_r function is
3383 * nss/Versions (libnss_files): Export _nss_files_gethostbyname4_r.
3384 * nss/nss.h: Define struct gaih_addrtuple.
3385 * nss/nss_files/files-hosts.c (LINE_PARSER): Change to also handle
3387 (_nss_files_gethostbyname4_r): New function.
3388 * resolv/Versions (libnss_dns): Export _nss_dns_gethostbyname4_r.
3389 * resolv/gethnmaddr.c: Adjust __libc_res_nsearch and __libc_res_nquery
3391 * resolv/res_query.c (__libc_res_nquery): Take two additional
3392 parameters for second answer buffer. Handle type=T_UNSPEC to mean
3393 look up IPv4 and IPv6.
3395 * resolv/res_send.c (__libc_res_nsend): Take five aditional parameters
3396 for an additional query and answer buffer. Pass to send_vc and
3398 (send_vc): Send possibly two requests and receive two answers.
3399 (send_dg): Likewise.
3400 * resolv/nss_dns/dns-host.c: Adjust calls to __libc_res_nsearch and
3402 (_nss_dns_gethostbyname4_r): New function.
3403 (gaih_getanswer_slice): Likewise.
3404 (gaih_getanswer): Likewise.
3405 * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Adjust
3406 __libc_res_nquery call.
3407 * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r): Likewise.
3408 (_nss_dns_getnetbyname_r): Adjust __libc_res_nsearch call.
3409 * sysdeps/posix/getaddrinfo.c: Use gethostbyname4_r function is
3412 2008-05-05 David S. Miller <davem@davemloft.net>
3414 * sysdeps/sparc/sparc32/Makefile: Use -mcpu=v7 for initfini.s build.
3415 * sysdeps/sparc/sparc64/Makefile: Use -mcpu=v9 for initfini.s build.
3417 2007-09-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
3419 Fix termios bit macros.
3420 Move *DLY definitions where they belong, in termios.h.
3421 Add *[0-3] definitions.
3422 Fixes confusion between VT and FF.
3423 * sysdeps/mach/hurd/bits/ioctls.h (NL0, NL1, TAB0, TAB1, TAB2, CR0,
3424 CR1, CR2, CR3, FF0, FF1, BS0, BS1): Undefine these at start if they
3425 are already defined to avoid collision with termios.h.
3426 (NLDLY, TABDLY, TAB3, CRDLY, VTDLY, BSDLY): Remove macros.
3427 * bits/termios.h [__USE_MISC || __USE_XOPEN] (NL0, NL1, TAB0,
3428 TAB1, TAB2, CR0, CR1, CR2, CR3, FF0, FF1, BS0, BS1): Likewise.
3429 [__USE_BSD || __USE_XOPEN] (OCRNL, ONOCR, ONLRET): New macros.
3430 [__USE_MISC || __USE_XOPEN] (NLDLY, NL0, NL1, TABDLY, TAB0, TAB1, TAB2,
3431 TAB3, CRDLY, CR0, CR1, CR2, CR3, FFDLY, FF0, FF1, BSDLY, BS0, BS1,
3432 VTDLY, VT0, VT1): New macros.
3433 [__USE_GNU] (OLCUC): Change value of macro.
3434 [__USE_XOPEN] (OFILL): New macro.
3435 [__USE_BSD] (CRTSCTS): Change value.
3436 (CRTS_IFLOW, CCTS_OFLOW): Change into compatibility macros.
3437 [__USE_BSD] (CDTRCTS, CHWFLOW): New macros.
3438 (B7200, B14400, B28800, B76800): New macros.
3440 2008-05-01 David S. Miller <davem@davemloft.net>
3442 * sysdeps/unix/sysv/linux/sparc/sparc32/ucontext_i.sym: New file.
3443 * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile [$(subdir) = stdlib]:
3444 (gen-as-const-headers): Add it.
3445 * sysdeps/unix/sysv/linux/sparc/sparc32/getcontext.S: New file.
3446 * sysdeps/unix/sysv/linux/sparc/sparc32/makecontext.c: Likewise.
3447 * sysdeps/unix/sysv/linux/sparc/sparc32/setcontext.S: Likewise.
3448 * sysdeps/unix/sysv/linux/sparc/sparc32/swapcontext.S: Likewise.
3450 * sysdeps/unix/sysv/linux/sparc/sparc32/syscall.S: Add support for
3451 six system call parameters.
3452 * sysdeps/unix/sysv/linux/sparc/sparc64/syscall.S: Likewise.
3454 2008-04-30 Ulrich Drepper <drepper@redhat.com>
3456 * sysdeps/unix/sysv/linux/bits/resource.h: Define RUSAGE_THREAD and
3458 * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
3459 * sysdeps/unix/sysv/linux/alpha/bits/resource.h: Likewise.
3461 2008-04-30 Jakub Jelinek <jakub@redhat.com>
3463 * stdlib/tst-setcontext.c: Include unistd.h.
3465 2008-04-25 David S. Miller <davem@davemloft.net>
3467 * sysdeps/unix/sysv/linux/sparc/sparc64/semctl.c (semctl):
3468 Pass "union semun" properly in to sys_ipc, it must be passed
3469 by value, not by reference.
3471 2008-04-22 Jakub Jelinek <jakub@redhat.com>
3473 * nscd/Makefile (nscd-cflags): Set back to -fpie.
3474 * nscd/nscd.h (mem_in_flight): Add attribute_tls_model_ie.
3475 * nscd/connections.c (mem_in_flight): Likewise.
3477 * nscd/nscd.h (dbs): Make hidden.
3479 * sysdeps/unix/sysv/linux/times.c (__times): Fix check for EFAULT.
3480 Avoid returning -1, return 0 instead.
3482 2008-04-19 Ulrich Drepper <drepper@redhat.com>
3484 * resolv/res_mkquery.c (__res_nopt): Use NS_PUT16 instead of ns_put16.
3486 2008-04-15 Ulrich Drepper <drepper@redhat.com>
3489 * sysdeps/unix/sysv/linux/times.c: New file.
3492 * nscd/nscd.h: Define enum in_flight, mem_in_flight, and
3493 mem_in_flight_list variables. Add new parameter to mempool_alloc
3495 * nscd/mem.c (mempool_alloc): Take additional parameter. Initialize
3496 appropriate mem_in_flight element.
3497 (gc): Take allocations which have not yet been committed to the
3498 database into account.
3499 * nscd/cache.c (cache_add): Add new parameter to mempool_alloc call.
3500 Reset mem_in_flight before returning.
3501 * nscd/connections.c (nscd_run_worker): Initialize mem_in_flight and
3502 cue it up in mem_in_flight_list.
3503 * nscd/aicache.c: Adjust mempool_alloc call.
3504 * nscd/grpcache.c: Likewise.
3505 * nscd/hstcache.c: Likewise.
3506 * nscd/initgrcache.c: Likewise.
3507 * nscd/pwdcache.c: Likewise.
3508 * nscd/servicescache.c: Likewise.
3509 * nscd/Makefile (nscd-flags): Until ld is fixed, use -fpic instead
3512 * nscd/connections.c (handle_request): Provide better error message
3513 in case SELinux forbids the service.
3515 * version.h (VERSION): Bump to 2.8.90.
3517 2008-04-17 Jakub Jelinek <jakub@redhat.com>
3519 * sysdeps/unix/sysv/linux/dl-osinfo.h: Include fcntl.h.
3521 2008-04-11 Ulrich Drepper <drepper@redhat.com>
3523 * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h (__signbitl):
3524 Also use for 32-bit.
3525 * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c (__nearbyintl): Use
3526 __nextafter instead of nextafter to avoid local PLT.
3527 * sysdeps/powerpc/fpu/e_sqrt.c: Avoid call to fetestexcept.
3528 * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
3530 * scripts/data/localplt-powerpc64-linux-gnu.data: New file.
3532 * sysdeps/powerpc/fpu/fenv_libc.h: Add libm_hidden_proto for
3534 * sysdeps/powerpc/fpu/fe_nomask.c: Add libm_hidden_def. Include
3535 <fenv_libc.h> instead of <fenv.h>.
3536 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c: Likewise.
3537 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c: Likewise.
3539 * sysdeps/powerpc/bits/fenv.h: Make safe for C++.
3541 * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h: New file.
3542 * sysdeps/powerpc/fpu/fegetexcept.c (__fegetexcept): Rename
3543 function from fegetexcept and make old name weak alias.
3544 * include/fenv.h: Declare __fegetexcept.
3545 * sysdeps/powerpc/fpu/fedisblxcpt.c: Use __fegetexcept instead of
3547 * sysdeps/powerpc/fpu/feenablxcpt.c: Likewise.
3548 * sysdeps/powerpc/fpu/fraiseexcpt.c (__feraiseexcept): Avoid call
3550 * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Use __frexpl
3551 instead of frexpl to avoid local PLT.
3552 * math/s_significandl.c (__significandl): Use __ilogbl instead of
3553 ilogbl to avoid local PLT.
3554 * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Use __ldexpl
3555 instead of ldexpl to avoid local PLT.
3556 * sysdeps/ieee754/ldbl-128ibm/e_expl.c (__ieee754_expl): Use
3557 __roundl not roundl to avoid local PLT.
3558 * sysdeps/ieee754/ldbl-128/e_j0l.c: Use function names which avoid
3559 local PLTs. Use __sincosl instead of separate sinl and cosl
3561 * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
3563 * sysdeps/unix/sysv/linux/configure.in: Bump minimal kernel
3564 version for ppc64 to 2.4.21 since without it makecontext will fail.
3566 * elf/tls-macros.h [__powerpc64__] (__TLS_GET_ADDR): Define according
3568 [__powerpc64__] (TLS_LD): Use __TLS_GET_ADDR instead of
3570 [__powerpc64__] (TLS_GD): Likewise.
3572 2007-11-20 Ryan S. Arnold <rsa@us.ibm.com>
3575 * sysdeps/powerpc/powerpc32/fpu/s_lround.S (__lround): Fixed erroneous
3576 result when x is +/-nextafter(+/-0.5,-/+1) i.e. all 1's in the
3578 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S (__llround):
3579 Likewise. Also account for when x is an odd number between 2^52
3581 * sysdeps/powerpc/powerpc64/fpu/s_llround.S (__llround): Likewise.
3582 * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S (__llroundf): Likewise.
3583 * math/libm-test.inc (lround_test, llround_test): Added test cases to
3584 detect aforementioned erroneous conditions.
3586 2008-04-11 Jakub Jelinek <jakub@redhat.com>
3588 * configure.in: Check for -fno-section-anchors in addition to
3589 -fno-toplevel-reorder.
3591 2008-04-11 Ulrich Drepper <drepper@redhat.com>
3593 * include/features.h (__GLIBC_MINOR__): Bump to 8.
3595 * sysdeps/powerpc/powerpc32/fpu/s_lroundf.S: Remove duplicate comment.
3596 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llroundf.S: Likewise.
3597 * sysdeps/powerpc/powerpc32/power6/fpu/s_llroundf.S: Likewise.
3598 * sysdeps/powerpc/powerpc64/fpu/s_lrint.S: Likewise.
3599 * sysdeps/powerpc/powerpc64/fpu/s_lround.S: Likewise.
3600 * sysdeps/powerpc/powerpc64/fpu/s_lroundf.S: Likewise.
3602 2008-04-11 Jakub Jelinek <jakub@redhat.com>
3605 * time/era.c: Transform __libc_setlocale_lock into rwlock.
3606 * time/alt_digit.c: Likewise.
3607 * wcsmbs/wcsmbsload.c: Likewise.
3609 2008-04-10 Ulrich Drepper <drepper@redhat.com>
3611 * version.h (VERSION): Bump to 2.8.
3613 * timzeone/asia: Update from tzdata2008b.
3614 * timezone/backward: Likewise.
3615 * timezone/europe: Likewise.
3616 * timezone/northamerica: Likewise.
3617 * timezone/southamerica: Likewise.
3618 * timezone/iso3166.tab: Likewise.
3619 * timezone/leapseconds: Likewise.
3620 * timezone/zone.tab: Likewise.
3621 * timezone/private.h: Update from tzcode2008a.
3622 * timezone/zdump.c: Likewise.
3623 * timezone/zic.c: Likewise.
3625 2008-01-24 Steven Munroe <sjmunroe@us.ibm.com>
3628 * sysdeps/powerpc/powerpc64/dl-machine.h (PPC_DCBT, PPC_DCBF):
3629 Define additonal Data Cache Block instruction macros.
3630 (elf_machine_fixup_plt): Add dcbt for opd and plt entries.
3631 Replace dcbst with dcbf and sync with sync/isync.
3633 2008-02-21 Alan Modra <amodra@bigpond.net.au>
3635 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_type_class):
3636 Always set ELF_RTYPE_CLASS_PLT.
3637 (elf_machine_lookup_noexec_p, elf_machine_lookup_noplt_p): Delete.
3639 2008-04-03 Steven Munroe <sjmunroe@us.ibm.com>
3641 * sysdeps/powerpc/powerpc32/power4/hp-timing.c: New file.
3642 * sysdeps/powerpc/powerpc32/power4/hp-timing.h: New file.
3643 * sysdeps/powerpc/powerpc64/hp-timing.h [_ARCH_PWR4] (HP_TIMING_NOW):
3644 For ISA 2.01 and later replace mftb with mfspr 268.
3646 2008-02-19 Steven Munroe <sjmunroe@us.ibm.com>
3649 * sysdeps/powerpc/fpu/Makefile (libm-tests): Add test-powerpc-snan.
3650 * sysdeps/powerpc/fpu/test-powerpc-snan.c: New file.
3652 2008-02-18 Steven Munroe <sjmunroe@us.ibm.com>
3655 * sysdeps/powerpc/powerpc32/fpu/s_isnan.S: New file.
3656 * sysdeps/powerpc/powerpc32/fpu/s_isnan.c: Removed.
3657 * sysdeps/powerpc/powerpc64/fpu/s_isnan.S: New file.
3658 * sysdeps/powerpc/powerpc64/fpu/s_isnan.c: Removed.
3660 2008-04-10 Jakub Jelinek <jakub@redhat.com>
3662 * stdlib/tst-makecontext.c (othervar): New variable.
3663 (cf): Test sign extending the argument to long.
3665 2008-03-03 Steven Munroe <sjmunroe@us.ibm.com>
3667 * sysdeps/powerpc/powerpc32/power5/fpu/s_isnan.S: New file.
3668 * sysdeps/powerpc/powerpc32/power5/fpu/s_isnanf.S: New file.
3669 * sysdeps/powerpc/powerpc32/power6/fpu/s_isnan.S: New file.
3670 * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S: New file.
3671 * sysdeps/powerpc/powerpc64/power5/fpu/s_isnan.S: New file.
3672 * sysdeps/powerpc/powerpc64/power6/fpu/s_isnan.S: New file.
3673 * sysdeps/powerpc/powerpc64/power6x/fpu/s_isnan.S: New file.
3675 2008-02-22 Alan Modra <amodra@bigpond.net.au>
3677 * elf/Makefile (tests): Substitute tests-vis-yes here.
3678 (tests-vis-yes): Delete.
3679 (modules-name, modules-vis-yes): Similarly.
3681 2008-02-12 Pete Eberlein <eberlein@us.ibm.com>
3684 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
3685 Preserve sign in signgamp when x is zero.
3687 2007-10-26 Steven Munroe <sjmunroe@us.ibm.com>
3689 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: New File.
3690 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.c: Removed.
3691 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: New File.
3692 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.c: Removed.
3693 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: New File.
3694 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: New File.
3696 2008-04-09 Ulrich Drepper <drepper@redhat.com>
3699 * sysdeps/i386/i686/memcpy.S: Optimize copying of equally aligned
3703 * sysdeps/unix/sysv/syscalls.list: The times syscall doesn't have
3704 a reserved error value.
3706 * stdlib/tst-makecontext.c: Change parameter to cf to negative
3707 value to check for correct sign extension.
3710 * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
3711 Copy 64-bit parameter values even though this is not required in
3714 * sysdeps/unix/sysv/linux/x86_64/vfork.S (__vfork): Record return
3717 2008-02-14 Daniel Jacobowitz <dan@codesourcery.com>
3719 * sysdeps/unix/sysv/linux/i386/vfork.S (__vfork): Record return
3722 2008-04-09 Jakub Jelinek <jakub@redhat.com>
3724 * nss_files/files-XXX.c (_nss_files_getXXent_r): Restore saved errno.
3726 2008-04-09 Ulrich Drepper <drepper@redhat.com>
3729 * libio/iofwrite.c (_IO_fwrite): Return correct count if flushing
3730 in line-buffered stream failed.
3731 * libio/iofwrite_u.c (fwrite_unlocked): Likewise.
3733 2008-04-08 Ulrich Drepper <drepper@redhat.com>
3736 * scripts/abi-versions.awk: If the version specified by
3737 --enable-oldest-abi is older than the first version for this
3738 architecture, use the default version.
3740 * locale/programs/ld-collate.c (collate_read): Ignore script lines
3741 as well when ignoring the whole category.
3743 2008-04-07 Ulrich Drepper <drepper@redhat.com>
3746 * sysdeps/unix/sysv/linux/net/ethernet.h: Add a few more
3747 ETHERTYPE_* definitions.
3748 Patch partly by Aurelien Jarno <aurelien@aurel32.net>.
3750 2008-04-07 Jakub Jelinek <jakub@redhat.com>
3752 * stdlib/mbtowc.c (__no_r_state): Remove.
3753 (mbtowc): New static state variable. Use it instead of
3755 * stdlib/wctomb.c (__no_r_state): Remove extern decl.
3756 (__wctomb_state): New hidden variable.
3757 (wctomb): Use __wctomb_state instead of __no_r_state.
3758 * debug/wctomb_chk.c (__no_r_state): Remove extern decl.
3759 (__wctomb_state): New extern decl.
3760 (__wctomb_chk): Use __wctomb_state instead of __no_r_state.
3762 2008-04-07 Ulrich Drepper <drepper@redhat.com>
3765 * resolv/res_init.c: Handle scope IDs in resolv.conf.
3767 2008-04-07 Jakub Jelinek <jakub@redhat.com>
3769 * malloc/mtrace.pl: Use $@ instead of $* to keep perl 5.10 quiet.
3771 2008-04-06 Ulrich Drepper <drepper@redhat.com>
3773 * po/nl.po: Update from translation team.
3775 2008-03-31 Ulrich Drepper <drepper@redhat.com>
3778 * string/strfry.c: Handle empty strings again.
3780 2008-03-30 Ulrich Drepper <drepper@redhat.com>
3783 * intl/dcigettext.c (__dcigettext): Get reader lock for locale data
3784 before looking for translation.
3785 * locale/duplocale.c: Transform __libc_setlocale_lock into rwlock.
3786 * locale/freelocale.c: Likewise.
3787 * locale/newlocale.c: Likewise.
3788 * locale/setlocale.c: Likewise.
3789 Based partially on a patch by ryo@np.css.fujitsu.com.
3791 2008-03-30 Jakub Jelinek <jakub@redhat.com>
3793 * intl/dcigettext.c (_nl_find_msg): Reread nconversions after
3794 acquiring wrlock. Do conv_tab allocation while holding lock.
3795 * intl/Makefile: Add rules to build and run tst-gettext6.
3796 * intl/tst-gettext6.c: New test.
3797 * intl/tst-gettext6.sh: New file.
3799 2008-03-30 Ulrich Drepper <drepper@redhat.com>
3801 * po/nl.po: Update from translation team.
3803 * sysdeps/unix/opendir.c (__alloc_dir): If allocation fails for size
3804 provided through st_blksize, try the default size before giving up.
3806 2008-03-29 Ulrich Drepper <drepper@redhat.com>
3808 * stdio-common/vfprintf.c (vfprintf): Correct overflow test.
3811 * sysdeps/posix/tempname.c (__gen_tempname): Correct flag selection.
3813 * posix/getopt.c (_getopt_internal_r): Remove old POSIX-demanded
3814 error message. POSIX today does not require the messages to be in
3815 a specific form. Suggested by Jim Meyering <jim@meyering.net>.
3818 * sunrpc/auth_unix.c: Unify printed strings.
3819 * sunrpc/clnt_tcp.c: Likewise.
3820 * sunrpc/clnt_udp.c: Likewise.
3821 * sunrpc/clnt_unix.c: Likewise.
3822 * sunrpc/svc_tcp.c: Likewise.
3823 * sunrpc/svc_udp.c: Likewise.
3824 * sunrpc/svc_unix.c: Likewise.
3825 * sunrpc/xdr.c: Likewise.
3826 * sunrpc/xdr_array.c: Likewise.
3827 * sunrpc/xdr_rec.c: Likewise.
3828 * sunrpc/xdr_ref.c: Likewise.
3829 * locale/programs/ld-time.c (time_finish): Unify messages.
3830 * locale/programs/locfile.c (handle_copy): Fix typo.
3831 * nscd/nscd.c (options): Fix typo.
3834 * stdlib/strtod_l.c: Use correct sign for result in one more
3836 Patch by Eric Blake <ebb9@byu.net>.
3838 2008-03-27 Jakub Jelinek <jakub@redhat.com>
3840 * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Add open
3841 and creat system calls.
3842 * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove open system
3844 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Remove open and creat
3846 * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Likewise.
3847 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
3848 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
3850 2008-03-27 Ulrich Drepper <drepper@redhat.com>
3852 * sysdeps/unix/sysv/linux/bits/local_lim.h: Undefined ARG_MAX if
3853 <linux/limits.h> has defined it.
3854 * sysdeps/unix/sysv/linux/sys/param.h: Define NCARGS to the legacy
3855 ARG_MAX value and prevent ARG_MAX from being defined by the kernel
3857 * sysdeps/unix/sysv/linux/sysconf.c: Define legacy_ARG_MAX and use
3858 it instead of ARG_MAX.
3860 2008-03-25 Jakub Jelinek <jakub@redhat.com>
3862 * posix/gai.conf: Fix comment for scope nullbits.
3863 * sysdeps/posix/getaddrinfo.c (gaiconf_init): If /bits is not present,
3864 default to 128 bits for v4 mapped addresses.
3866 2008-03-07 Martin Schwidefsky <schwidefsky@de.ibm.com>
3868 * sysdeps/s390/fpu/fegetenv.c (fegetenv): Remove PTRACE_PEEKUSER
3869 ptrace call to get the ieee_instruction_pointer from the kernel.
3870 * sysdeps/s390/fpu/fesetenv.c (fesetenv): Remove PTRACE_POKEUSER
3871 ptrace call to set the ieee_instructtion_pointer.
3872 * sysdeps/unix/sysv/linux/s390/sys/user.h (struct _user_regs_struct):
3873 Add comment that ieee_instruction_pointer is always 0.
3875 2008-03-09 Andreas Jaeger <aj@suse.de>
3878 * sysdeps/ieee754/dbl-64/s_rint.c (__rint): Handle j0==18.
3879 * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Likewise.
3880 Patch by Mark Elliott <mark.h.elliott@lmco.com>.
3882 * math/libm-test.inc (nearbyint_test): Add new test cases from #5857.
3883 (rint_test): Likewise.
3885 2008-03-24 Ulrich Drepper <drepper@redhat.com>
3887 * nis/nis_call.c (nis_server_cache_search): Save errno around stat
3889 (__nisfind_server): Similar for open readColdStartFile call.
3890 Patch partially by Jim Meyering.
3891 * nss/nss_files/files-XXX.c (_nss_files_getXXent_r): Save errno
3892 around internal_setent call.
3894 * po/vi.po: New Vietnamese translation.
3896 * sysdeps/unix/sysv/linux/adjtime.c: Correctly use
3899 * sysdeps/unix/sysv/linux/bits/sched.h: Add new CLONE_* flags,
3900 remove CLONE_STOPPED.
3902 2008-02-10 Jim Meyering <meyering@redhat.com>
3904 Remove useless "if" before "free":
3905 * elf/ldconfig.c (parse_conf_include): Likewise.
3906 * gmon/gmon.c (weak_alias): Likewise.
3907 * iconv/gconv_conf.c (__gconv_get_path): Likewise.
3908 * inet/rcmd.c (__validuser2_sa): Likewise.
3909 * intl/bindtextdom.c (set_binding_values): Likewise.
3910 * intl/loadmsgcat.c (_nl_load_domain, _nl_unload_domain): Likewise.
3911 * libio/genops.c (save_for_backup): Likewise.
3912 * libio/wgenops.c (save_for_wbackup): Likewise.
3913 * locale/programs/ld-collate.c (collate_read): Likewise.
3914 * locale/programs/linereader.c (get_string): Likewise.
3915 * nis/nss_compat/compat-pwd.c (give_pwd_free): Likewise.
3916 * nis/nss_compat/compat-spwd.c (give_spwd_free): Likewise.
3917 * resolv/res_debug.c (do_section): Likewise.
3918 * sunrpc/xdr_sizeof.c (x_inline, xdr_sizeof): Likewise.
3919 * sysdeps/mach/hurd/if_index.c (libc_hidden_def): Likewise.
3920 * sysdeps/posix/sprofil.c (__sprofil): Likewise.
3921 * time/lc-time-cleanup.c (_nl_cleanup_time): Likewise.
3922 * time/tzset.c (tzset_internal): Likewise.
3924 2008-03-18 Jakub Jelinek <jakub@redhat.com>
3926 * sysdeps/unix/sysv/linux/dl-sysdep.h: Use __ASSEMBLER__ instead
3929 2008-03-11 Ulrich Drepper <drepper@redhat.com>
3932 * iconv/iconv_charmap.c (charmap_conversion): Pass name of output file
3933 not stream for output file. Open output file here.
3934 * iconv/iconv_prog.c (process_lock): Take pointer to output stream
3935 and output file name.
3936 (process_fd): Likewise.
3937 (process_file): Likewise.
3938 (main): Adjust callers of changed functions.
3939 * iconv/iconv_prog.h: Adjust prototype.
3941 2008-03-09 Andreas Jaeger <aj@suse.de>
3944 * sysdeps/ia64/ieee754.h: Use protected namespace
3945 __BIG_ENDIAN/__LITTLE_ENDIAN.
3946 * sysdeps/ieee754/ieee754.h: Likewise.
3947 Patch by Aurelien Jarno <aurelien@aurel32.net>.
3949 2008-03-08 Roland McGrath <roland@frob.com>
3951 * hurd/hurdsig.c (_hurd_internal_post_signal): When normal rules would
3952 ignore a signal that came from a machine exception, treat it as a
3953 fatal core-dump signal instead.
3954 Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
3956 * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler):
3957 Clear DF bit in thread state's eflags.
3958 Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
3960 2008-03-08 Ulrich Drepper <drepper@redhat.com>
3963 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Consume closing brace
3964 of NAN(...) sequence.
3965 * stdlib/Makefile (tests): Add tst-strtod6.
3966 * stdlib/tst-strtod6.c: New file.
3968 * inet/inet6_opt.c (inet6_opt_init): Check extlen for overflow.
3971 * posix/getopt.c (_getopt_internal_r): Clarify error message by
3972 putting offending option character in quotes. Clean up error
3974 * po/be.po: Adjust msgstr in translation file.
3975 * po/bg.po: Likewise.
3976 * po/ca.po: Likewise.
3977 * po/cs.po: Likewise.
3978 * po/da.po: Likewise.
3979 * po/de.po: Likewise.
3980 * po/es.po: Likewise.
3981 * po/fr.po: Likewise.
3982 * po/hr.po: Likewise.
3983 * po/ko.po: Likewise.
3984 * po/nl.po: Likewise.
3985 * po/rw.po: Likewise.
3986 * po/sk.po: Likewise.
3987 * po/sv.po: Likewise.
3988 * po/tr.po: Likewise.
3989 * po/zh_CN.po: Likewise.
3990 * po/zh_TW.po: Likewise.
3993 * inet/inet6_opt.c (inet6_opt_init): Fix ip6h_len computation.
3994 Patch by Roland Bless <roland@bless.de>.
3996 * sysdeps/unix/sysv/linux/dl-sysdep.c: Avoid unnecessary code for
3998 * elf/Makefile (routines): Add dl-sysdep.
3999 (elide-routines.os): Likewise.
4001 2008-03-07 Ulrich Drepper <drepper@redhat.com>
4004 * elf/dl-sysdep.c: Undefine ROUND after use.
4005 * sysdeps/generic/ldsodefs.h [HAVE_DL_DISCOVER_OSVERSION]
4006 (struct rtld_global_ro): Add _dl_tls_get_addr_soft element.
4007 * elf/rtld.c (rtld_global_ro): Initialize _dl_discover_osversion.
4008 * sysdeps/unix/sysv/linux/dl-osinfo.h: Move _dl_discover_osversion
4010 * sysdeps/unix/sysv/linux/dl-sysdep.c: ...here.
4011 * sysdeps/unix/sysv/linux/dl-sysdep.h: Declare _dl_discover_osversion
4013 * sysdeps/unix/sysv/linux/sysconf.c: Handle _SC_ARG_MAX here.
4015 * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Add
4016 _dl_tls_get_addr_soft element.
4017 * elf/rtld.c (rtld_global_ro): Initialize _dl_tls_get_addr_soft.
4018 * elf/Versions (ld): Don't export _dl_tls_get_addr_soft.
4019 * dlfcn/dlinfo.c (dlinfo_doit): Access dl_tls_get_addr_soft through
4021 * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise.
4022 * elf/dl-tls.c (_dl_tls_get_addr_soft): Use attribute_hidden instead
4023 of internal_function.
4025 * stdlib/Makefile (aux): Add tens_in_limb.
4026 * stdlib/strtod_l.c: Move _tens_in_limb definition to...
4027 * stdlib/tens_in_limb.c: ...here. New file.
4030 * sysdeps/unix/sysv/linux/pathconf.h: Declare
4031 __statfs_chown_restricted.
4032 * sysdeps/unix/sysv/linux/fpathconf.c: Call __statfs_chown_restricted
4033 for _PC_CHOWN_RESTRICTED.
4034 * sysdeps/unix/sysv/linux/pathconf.c: Likewise.
4035 Implement __statfs_chown_restricted.
4036 * sysdeps/unix/sysv/linux/bits/posix_opt.h: Change
4037 _POSIX_CHOWN_RESTRICTED value to zero.
4038 * io/tst-fchownat.c: Correctly handle _POSIX_CHOWN_RESTRICTED
4041 * sysdeps/x86_64/rtld-memset.c: New file.
4043 2008-02-26 Harsha Jagasia <harsha.jagasia@amd.com>
4045 * sysdeps/x86_64/cacheinfo.c (NOT_USED_RIGHT_NOW): Remove ifdef guards.
4047 * sysdeps/x86_64/memset.S: Rewrite non-SSE code path as tuned for AMD
4048 Barcelona machine. Make default fall through branch of
4049 __x86_64_preferred_memory_instruction check as the integer code path.
4051 2007-10-15 H.J. Lu <hongjiu.lu@intel.com>
4053 * sysdeps/x86_64/cacheinfo.c
4054 (__x86_64_preferred_memory_instruction): New variable.
4055 (init_cacheinfo): Initialize __x86_64_preferred_memory_instruction.
4057 * sysdeps/x86_64/memset.S: Rewrite.
4059 2008-03-04 Jakub Jelinek <jakub@redhat.com>
4061 * include/stdio.h (__asprintf_chk, __dprintf_chk,
4062 __obstack_printf_chk): New prototypes.
4063 (__vasprintf_chk, __vdprintf_chk,
4064 __obstack_vprintf_chk): Likewise.
4065 Add libc_hidden_proto.
4067 (_IO_obstack_jumps): No longer static, add attribute_hidden.
4068 * libio/bits/stdio-ldbl.h (__asprintf_chk, __dprintf_chk,
4069 __obstack_printf_chk, __vasprintf_chk, __vdprintf_chk,
4070 __obstack_vprintf_chk): Add __LDBL_REDIR_DECL.
4071 * libio/bits/stdio2.h (__asprintf_chk, __dprintf_chk,
4072 __obstack_printf_chk, __vasprintf_chk, __vdprintf_chk,
4073 __obstack_vprintf_chk): New prototypes.
4074 (asprintf, __asprintf, dprintf, obstack_printf, vasprintf, vdprintf,
4075 obstack_vprintf): New inlines.
4076 * debug/dprintf_chk.c: New file.
4077 * debug/vdprintf_chk.c: New file.
4078 * debug/asprintf_chk.c: New file.
4079 * debug/vasprintf_chk.c: New file.
4080 * debug/obprintf_chk.c: New file.
4081 * debug/tst-chk1.c (do_test): Add asprintf and obstack_printf tests.
4082 * debug/Versions (__asprintf_chk, __dprintf_chk, __obstack_printf_chk,
4083 __vasprintf_chk, __vdprintf_chk, __obstack_vprintf_chk): Export
4085 * debug/Makefile: Build asprintf_chk, vasprintf_chk, dprintf_chk,
4086 vdprintf_chk and obprintf_chk, set CFLAGS for them.
4087 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c (__nldbl___vasprintf_chk,
4088 __nldbl___vdprintf_chk, __nldbl___obstack_vprintf_chk): Add
4090 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl___vasprintf_chk,
4091 __nldbl___vdprintf_chk, __nldbl___obstack_vprintf_chk): New prototypes.
4092 * sysdeps/ieee754/ldbl-opt/Versions (__nldbl___asprintf_chk,
4093 __nldbl___vasprintf_chk, __nldbl___dprintf_chk, __nldbl___vdprintf_chk,
4094 __nldbl___obstack_printf_chk, __nldbl___obstack_vprintf_chk): Export
4096 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add asprintf_chk,
4097 vasprintf_chk, dprintf_chk, vdprintf_chk, obstack_printf_chk and
4098 obstack_vprintf_chk.
4099 * sysdeps/ieee754/ldbl-opt/nldbl-obstack_vprintf_chk.c: New file.
4100 * sysdeps/ieee754/ldbl-opt/nldbl-dprintf_chk.c: New file.
4101 * sysdeps/ieee754/ldbl-opt/nldbl-obstack_printf_chk.c: New file.
4102 * sysdeps/ieee754/ldbl-opt/nldbl-asprintf_chk.c: New file.
4103 * sysdeps/ieee754/ldbl-opt/nldbl-vdprintf_chk.c: New file.
4104 * sysdeps/ieee754/ldbl-opt/nldbl-vasprintf_chk.c: New file.
4106 2008-03-04 Ulrich Drepper <drepper@redhat.com>
4109 * misc/sys/queue.h: Add STAILQ_CONCAT and TAILQ_CONCAT definitions.
4110 Patch by Roy Marples <roy@marples.name>.
4113 * malloc/malloc.c: Fix typo in comment.
4116 * locale/iso-639.def: Add Shuswap.
4118 2008-02-25 Jakub Jelinek <jakub@redhat.com>
4121 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr2_r): Don't
4122 overwrite *h_errnop/*errnop values from getanswer_r in case of
4125 2008-03-03 Ulrich Drepper <drepper@redhat.com>
4128 * nscd/connections.c (dbs): Add initializers for .suggested_module.
4129 (verify_persistent_db): Remove one unnecessary test and add a new one
4130 for bad configuration.
4131 (nscd_init): Improve error reported when persistent database cannot
4133 * nscd/nscd.h (DEFAULT_SUGGESTED_MODULE): Define.
4134 * nscd/nscd_conf.c (nscd_parse_file): Provide default values for
4135 .suggested_module and .max_db_size and case config file says the
4137 * nscd/nscd_helper.c (get_mapping): Fail if hash table module is zero.
4140 * nis/ypclnt.c (yp_order): Fix handling of return value of
4142 Patch by Jeff Moyer <jmoyer@redhat.com>.
4144 * po/fr.po: Update from translation team.
4146 2008-02-22 Andreas Jaeger <aj@suse.de>,
4147 Carlos O'Donell <carlos@systemhalted.org>
4150 * FAQ.in: Describe why glibc needs to be compiled with
4153 2008-02-19 Roland McGrath <roland@redhat.com>
4155 * elf/elf.h (SHT_GNU_ATTRIBUTES): New macro.
4157 2008-02-15 Ulrich Drepper <drepper@redhat.com>
4160 * resolv/netdb.h: Make NI_MAXHOST and NI_MAXSERV available when
4161 __USE_MISC is defined.
4163 2008-02-10 Ulrich Drepper <drepper@redhat.com>
4165 * sysdeps/unix/sysv/linux/sys/timerfd.h: New file.
4166 * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers): Add
4168 * sysdeps/unix/sysv/linux/syscalls.list: Add timerfd_create,
4169 timerfd_gettime, timerfd_settime.
4170 * sysdeps/unix/sysv/linux/Versions: Add timerfd_create,
4171 timerfd_gettime, timerfd_settime for GLIBC_2.8.
4173 2008-02-08 Roland McGrath <roland@redhat.com>
4175 * elf/elf.h (NT_PPC_SPE): New macro.
4177 2008-02-06 Roland McGrath <roland@redhat.com>
4179 * Makerules ($(common-objpfx)sysd-rules):
4180 Depend on $(sysdep-makeconfigs).
4182 2008-01-31 Roland McGrath <roland@redhat.com>
4185 * configure.in: Use -print-file-name if it yields a directory,
4186 for each of include and include-fixed.
4187 * configure: Regenerated.
4189 * Makeconfig (sysd-rules-targets): New variable.
4190 * sysdeps/unix/make-syscalls.sh: Use it in the rules emitted.
4191 * sysdeps/unix/Makefile (omit-deps): Append variants for each target.
4193 2008-01-30 Roland McGrath <roland@redhat.com>
4195 * manual/libc.texinfo: Update back-cover text.
4197 * elf/elf.h (NT_386_TLS): New macro.
4199 2008-01-29 Roland McGrath <roland@redhat.com>
4201 * Makeconfig (sysd-rules-patterns): New variable.
4202 * Makerules ($(common-objpfx)sysd-rules): Drive the loop from that.
4203 (check-inhibit-asm): New canned sequence, replaces ...
4204 (open-check-inhibit-asm, close-check-inhibit-asm): ... these, removed.
4205 * elf/rtld-Rules ($(objpfx)rtld-%.os): Use $(rtld-CPPFLAGS) in commands.
4206 (rtld-CPPFLAGS): Renamed from CPPFLAGS-rtld.
4207 (CFLAGS-rtld): Variable removed.
4209 2008-01-24 Roland McGrath <roland@redhat.com>
4211 * configure.in: Let configure fragments set base_os.
4212 * configure: Regenerated.
4214 2008-01-22 Ulrich Drepper <drepper@redhat.com>
4216 * po/ko.po: Update from translation team.
4218 2008-01-12 H.J. Lu <hongjiu.lu@intel.com>
4220 * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Use short for fnstsw.
4222 2008-01-12 Andreas Jaeger <aj@suse.de>
4225 * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h (enum EPOLL_EVENTS):
4228 2008-01-20 Samuel Thibault <samuel.thibault@ens-lyon.org>
4230 * hurd/hurdsock.c (_hurd_socket_server): Return the standard
4231 error EAFNOSUPPORT rather than non-standard EPFNOSUPPORT.
4232 * sunrpc/bindrsvprt.c (bindresvport): Likewise.
4234 2007-10-23 Alexandre Oliva <aoliva@redhat.com>
4236 * include/link.h (FORCED_DYNAMIC_TLS_OFFSET): Define.
4237 * elf/dl-close.c (_dl_close): Check for it.
4238 * elf/dl-reloc.c (CHECK_STATIC_TLS): Likewise.
4239 (_dl_allocate_static_tls): Likewise.
4240 * elf/dl-tls.c (_dl_allocate_tls_init): Likewise.
4241 (__tls_get_addr): Protect from race conditions in setting l_tls_offset
4243 * elf/tst-tls16.c: New file.
4244 * elf/tst-tlsmod16a.c: New file.
4245 * elf/tst-tlsmod16b.c: New file.
4246 * elf/Makefile: Add rules to build and run tst-tls16.
4248 2008-01-16 Ulrich Drepper <drepper@redhat.com>
4251 * bits/shm.h: Fix comment describing shmid_ds.
4252 * sysdeps/gnu/bits/shm.h: Likewise.
4253 * sysdeps/unix/sysv/linux/alpha/bits/shm.h: Likewise.
4254 * sysdeps/unix/sysv/linux/bits/shm.h: Likewise.
4255 * sysdeps/unix/sysv/linux/ia64/bits/shm.h: Likewise.
4256 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
4257 * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
4258 * sysdeps/unix/sysv/linux/sh/bits/shm.h: Likewise.
4259 * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
4260 * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Likewise.
4261 Patch by Hareesh Nagarajan <hareesh.nagarajan@gmail.com>.
4264 * conform/data/fcntl.h-data: Fix posix_fadvise and posix_fallocate
4266 * conform/data/limits.h-data: Adjust limits changed in v6 and add
4267 additional suffixes.
4268 * conform/data/mqueue.h-data: Fix typo in mq_curmsgs entry.
4269 Add optional functions mq_timedreceive and mq_timedsend.
4270 * conform/data/netdb.h-data: Add more AI_* and EAI_* constants.
4271 * conform/data/pthread.h-data: Fix prototype of
4272 pthread_condattr_setclock. pthread_sigmask is not required in v6.
4273 * conform/data/semaphore.h-data: Allow time.h definitions.
4274 * conform/data/signal.h-data: Likewise.
4275 * conform/data/stdio.h-data: getw and putw are not required in v6.
4276 * conform/data/stdlib.h-data: Change setstate prototype.
4277 * conform/data/string.h-data: Fix strerror_r prototype.
4278 * conform/data/time.h-data: Fix typo in TIMER_ABSTIME definition.
4279 * conform/data/unistd.h-data: pthread_atfork not required in v6.
4280 Fix readlink prototype.
4281 * conform/data/netinet/in.h-data: Add const to in6addr_any and
4283 * inet/netinet/in.h: Cleanup namespace.
4284 * posix/regex.h: Likewise.
4285 * resolv/netdb.h: Likewise.
4286 * sysdeps/unix/sysv/linux/bits/in.h: Likewise.
4287 * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
4288 * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
4289 * sysdeps/posix/getaddrinfo.c (default_labels): Adjust for change
4290 of names of in in6_addr.
4291 (default_precedence): Likewise.
4292 * sysdeps/unix/sysv/linux/cmsg_nxthdr.c: Include <stddef.h> for
4295 2008-01-15 Ulrich Drepper <drepper@redhat.com>
4297 * conform/data/fmtmsg.h-data: Add missing allows.
4298 * conform/data/ftw.h-data: Likewise.
4299 * conform/data/inttypes.h-data: Likewise.
4300 * conform/data/math.h-data: Likewise.
4301 * conform/data/signal.h-data: Likewise.
4302 * conform/data/net/if.h-data: Likewise.
4303 * conform/data/netinet/in.h-data: Likewise.
4304 * conform/data/sys/socket.h-data: Likewise.
4307 * string/bits/string2.h (__strtok_r_1c): Always update *__NEXTP.
4308 (__strtok_r): Simplify.
4309 * string/tester.c (test_strtok_r): Add test case for futile search
4310 with single-character seach string.
4312 2008-01-12 Ulrich Drepper <drepper@redhat.com>
4314 * po/ko.po: Update from translation team.
4316 2008-01-11 Andreas Jaeger <aj@suse.de>
4319 * sysdeps/unix/sysv/linux/sys/signalfd.h (struct
4320 signalfd_siginfo): Use 64-bit type for ssi_ptr to sync with Linux
4323 2008-01-10 Ulrich Drepper <drepper@redhat.com>
4325 * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Store result of
4326 native interface lookup in all the relevant places.
4328 2008-01-10 Jakub Jelinek <jakub@redhat.com>
4329 Ulrich Drepper <drepper@redhat.com>
4331 * sysdeps/posix/getaddrinfo.c (sort_results): Remove service_order
4332 field. Use sockaddr_in6 for source_addr.
4333 (get_scope): Change type of parameter to sockaddr_in6. Adjust.
4334 (match_prefix): Likewise.
4335 (get_label): Likewise.
4336 (get_precedence): Likewise.
4337 (rfc3484_sort): Change to use indirect access to results array.
4338 Adjust to use of sockaddr_in6. Replace service_order test with
4339 simple index comparison.
4340 (getaddrinfo): Define order array. Initialize it. Don't initialize
4341 service_order field. Adjust qsort_t calls. Access sorted result
4342 array indirectly through order array.
4343 * posix/tst-rfc3484.c: Adjust for change of rfc3484_sort.
4344 * posix/tst-rfc3484-2.c: Likewise.
4345 * posix/tst-rfc3484-3.c: Likewise.
4347 2008-01-09 Ulrich Drepper <drepper@redhat.com>
4350 * sunrpc/rpc_thread.c (__rpc_thread_destroy): Also free xports and
4352 Patch by André Cruz.
4355 * sunrpc/clnt_perr.c (clnt_sperror): Don't use fixed size buffer.
4356 (clnt_spcreateerror): Likewise.
4359 * malloc/malloc.c (public_mALLOc): Set ar_ptr when trying main_arena.
4360 (public_mEMALIGn): Likewise.
4361 Patch mostly by Daniel Jacobowitz.
4363 2008-01-09 Jakub Jelinek <jakub@redhat.com>
4365 * sysdeps/unix/sysv/linux/i386/makecontext.S (__makecontext): Avoid
4366 clobbering memory at or above uc_stack.ss_sp + uc_stack.ss_size.
4367 * stdlib/Makefile: Add rules to build and run tst-makecontext2.
4368 * stdlib/tst-makecontext2.c: New test.
4370 2008-01-08 Jakub Jelinek <jakub@redhat.com>
4372 * iconv/loop.c (UPDATE_PARAMS): Define to empty statement if not
4374 (REINIT_PARAMS): Likewise. Undefine before end of file.
4375 (STANDARD_TO_LOOP_ERR_HANDLER): Use UPDATE_PARAMS before calling
4376 transliteration hooks and REINIT_PARAMS afterwards.
4377 * iconvdata/iso-2022-jp.c (BODY): Use a separate variable for
4379 (REINIT_PARAMS): Define.
4380 * iconvdata/ibm1364.c (REINIT_PARAMS): Likewise.
4381 * iconvdata/ibm930.c (REINIT_PARAMS): Likewise.
4382 * iconvdata/ibm933.c (REINIT_PARAMS): Likewise.
4383 * iconvdata/ibm935.c (REINIT_PARAMS): Likewise.
4384 * iconvdata/ibm937.c (REINIT_PARAMS): Likewise.
4385 * iconvdata/ibm939.c (REINIT_PARAMS): Likewise.
4386 * iconvdata/iso-2022-cn.c (REINIT_PARAMS): Likewise.
4387 * iconvdata/iso-2022-cn-ext.c (REINIT_PARAMS): Likewise.
4388 * iconvdata/iso-2022-jp-3.c (REINIT_PARAMS): Likewise.
4389 * iconvdata/iso-2022-kr.c (REINIT_PARAMS): Likewise.
4390 * iconvdata/Makefile: Add rules to build and run tst-iconv7.c.
4391 * iconvdata/tst-iconv7.c: New test.
4393 2008-01-07 Ulrich Drepper <drepper@redhat.com>
4395 * libio/stdio.h (vscanf): Fix definition for loser compilers.
4397 2008-01-05 Jakub Jelinek <jakub@redhat.com>
4400 * nscd/connections.c (restart): Fix condition.
4402 2008-01-03 Jakub Jelinek <jakub@redhat.com>
4404 * ctype/ctype.h (__ctype_b_loc, __ctype_tolower_loc,
4405 __ctype_toupper_loc): Add __THROW.
4407 2008-01-02 Ulrich Drepper <drepper@redhat.com>
4409 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Fix
4410 recognition of interface family.
4412 * posix/getconf.c: Update copyright year.
4413 * nss/getent.c: Likewise.
4414 * iconv/iconvconfig.c: Likewise.
4415 * iconv/iconv_prog.c: Likewise.
4416 * elf/ldconfig.c: Likewise.
4417 * catgets/gencat.c: Likewise.
4418 * csu/version.c: Likewise.
4419 * elf/ldd.bash.in: Likewise.
4420 * elf/sprof.c (print_version): Likewise.
4421 * locale/programs/locale.c: Likewise.
4422 * locale/programs/localedef.c: Likewise.
4423 * nscd/nscd.c (print_version): Likewise.
4424 * debug/xtrace.sh: Likewise.
4425 * malloc/memusage.sh: Likewise.
4426 * malloc/mtrace.pl: Likewise.
4427 * debug/catchsegv.sh: Likewise.
4429 2007-12-26 Ulrich Drepper <drepper@redhat.com>
4431 * nss/nsswitch.c (__nss_lookup): Actually use alternative name in
4434 2007-12-23 Ulrich Drepper <drepper@redhat.com>
4436 * sysdeps/x86_64/cacheinfo.c (intel_02_known): New entry 0x3f.
4437 * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
4439 2007-12-17 Roland McGrath <roland@redhat.com>
4441 * inet/ether_line.c (ether_line): Remove unused variable.
4443 2007-12-17 Samuel Thibault <samuel.thibault@ens-lyon.org>
4445 * login/forkpty.c (forkpty): Add const qualifier to parameters termp
4447 * login/openpty.c (openpty): Likewise.
4448 * login/pty.h (openpty, forkpty): Likewise.
4449 * manual/terminal.texi (openpty, forkpty): Likewise.
4451 2007-12-17 Ulrich Drepper <drepper@redhat.com>
4453 * malloc/malloc.c (public_cALLOc): For arenas other than
4454 main_arena, count all bytes inside the mprotect_size range of the
4455 heap as uninitialized.
4457 2007-12-16 Ulrich Drepper <drepper@redhat.com>
4459 * elf/tst-execstack.c (do_test): Don't fail if SELinux forbids
4462 * malloc/malloc.c (public_mTRIm): Iterate over all arenas and call
4463 mTRIm for all of them.
4464 (mTRIm): Additionally iterate over all free blocks and use madvise
4465 to free memory for all those blocks which contain at least one
4467 * malloc/tst-trim1.c: New file.
4468 * malloc/Makefile (tests): Add tst-trim1.
4470 * malloc/malloc.c (do_check_malloc_state): Minimal cleanups.
4472 2007-12-14 Ulrich Drepper <drepper@redhat.com>
4474 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INTERNAL_SYSCALL_ERROR_P):
4475 First cast argument to long
4476 * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_gettimeofday):
4478 (__vdso_clock_gettime): Likewise.
4479 * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Functions
4482 2007-12-13 Ulrich Drepper <drepper@redhat.com>
4484 * locale/nl_langinfo.c (nl_langinfo): Just call __nl_langinfo_l.
4485 * locale/nl_langinfo_l.c: Real implementation, copied from
4487 * include/langinfo.h: Add libc_hidden_proto for __nl_langinfo_l.
4489 2007-12-01 Jim Meyering <meyering@redhat.com>
4491 * posix/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
4492 that would inhibit utf8-optimization of a regexp containing line-
4493 or buffer-anchors, e.g., `^', `$'.
4495 2007-12-12 Ulrich Drepper <drepper@redhat.com>
4497 * time/bug-getdate1.c (do_test): Don't use century values which
4498 aren't valid on 32-bit systems.
4500 2007-12-12 Jakub Jelinek <jakub@redhat.com>
4502 * sysdeps/i386/i486/bits/string.h (memmove): Define as macro.
4503 (memmove): Rename to __memmove_g, with __asm__ ("memmove").
4504 * sysdeps/s390/bits/string.h (__strlen_g, __strcpy_g, __strncpy_g,
4505 __strcat_g, __strncat_g): Add __asm__.
4507 2007-12-12 Ulrich Drepper <drepper@redhat.com>
4510 * io/fchmodat.c: Fix typo in stub_warning use.
4511 Patch by Petr Salinger.
4513 2007-12-11 Ulrich Drepper <drepper@redhat.com>
4515 * iconvdata/hp-thai8.c: New file.
4516 * iconvdata/Makefile: Add rules for hp-thai8.c.
4517 * iconvdata/tst-tables.sh: Add entry for HP-THAI8.
4518 * iconvdata/gconv-modules: Likewise.
4521 * iconvdata/hp-greek8.c: New file.
4522 * iconvdata/Makefile: Add rules for hp-greek8.c.
4523 * iconvdata/tst-tables.sh: Add entry for HP-GREEK8.
4524 * iconvdata/gconv-modules: Likewise.
4527 * iconvdata/hp-turkish8.c: New file.
4528 * iconvdata/Makefile: Add rules for hp-turkish8.c.
4529 * iconvdata/tst-tables.sh: Add entry for HP-TURKISH8.
4530 * iconvdata/gconv-modules: Likewise.
4532 * malloc/arena.c (grow_heap): Split out code to shrink heap into...
4533 (shrink_heap): ... this new function.
4534 (heap_trim): Call shrink_heap instead of grow_heap.
4536 * malloc/malloc.c (_int_malloc): sYSMALLOc might fail, in this
4537 case don't call alloc_perturb.
4539 2007-12-10 Ulrich Drepper <drepper@redhat.com>
4541 * sysdeps/unix/sysv/linux/adjtime.c: Use ADJ_OFFSET_SS_READ if
4543 * sysdeps/unix/sysv/linux/kernel-features.h
4544 (__ASSUME_ADJ_OFFSET_SS_READ): Define for 2.6.24.
4545 * sysdeps/unix/sysv/linux/sys/timex.h (ADJ_OFFSET_SS_READ): Define.
4547 2007-12-08 Ulrich Drepper <drepper@redhat.com>
4550 * stdio-common/vfprintf.c: Do not overflow when adding to done.
4551 * stdio-common/Makefile (tests): Add bug22.
4552 * stdio-common/bug22.c: New file.
4555 * time/getdate.c: Fix filling in default values.
4556 * time/bug-getdate1.c: New file.
4557 * time/Makefile: Add rules to build and run bug-getdate1.
4559 * iconvdata/ebcdic-is-friss.c: Use 8bit-gap instead of 8bit-generic.
4560 * iconvdata/ebcdic-es.c: Likewise.
4561 * iconvdata/ebcdic-es-a.c: Likewise.
4562 * iconvdata/ebcdic-uk.c: Likewise.
4563 * iconvdata/iso8859-16.c: Likewise.
4564 * iconvdata/viscii.c: Likewise.
4565 * iconvdata/iso8859-9e.c: Likewise.
4566 * iconvdata/Makefile: Adjust appropriately.
4569 * wcsmbs/wchar.h: Unconditionally undefine __need_mbstate and
4572 2007-12-07 Ulrich Drepper <drepper@redhat.com>
4575 * iconvdata/hp-roman9.c: New file.
4576 * iconvdata/Makefile: Add rules for hp-roman9.c.
4577 * iconvdata/tst-tables.sh: Add HP-ROMAN9.
4578 * iconvdata/gconv-modules: Likewise.
4580 * iconvdata/hp-roman8.c: Use 8bit-gap instead of 8bit-generic.
4581 * iconvdata/Makefile: Adjust appropriately.
4584 * stdio-common/vfscanf.c (_IO_vfwscanf): Don't free ptrs_to_free
4585 structure, it's allocated with alloca.
4586 * stdio-common/Makefile (tests): Add bug21.
4587 * stdio-common/bug21.c: New file.
4589 2007-12-06 Aurelien Jarno <aurelien@aurel32.net>
4592 * sysdeps/unix/sysv/linux/bits/sched.h: Use __extension__
4593 keyword for gcc's braced-groups.
4595 2007-12-07 Ulrich Drepper <drepper@redhat.com>
4598 * inet/ether_line.c: Strip hostname of whitespaces.
4599 * inet/Makefile (tests): Add tst-ether_line.
4600 * inet/tst-ether_line.c: New file.
4602 2007-12-03 Ulrich Drepper <drepper@redhat.com>
4605 * sysdeps/unix/sysv/linux/sys/signalfd.h: Fix use of __nonnull.
4608 * sysdeps/unix/sysv/linux/i386/makecontext.S: Align stack.
4610 * stdlib/tst-setcontext.c: Catch the case where the links gets
4611 messed up and we do not reach main again.
4613 * po/ca.po: Update from translation team.
4615 2007-11-26 Ulrich Drepper <drepper@redhat.com>
4617 * posix/unistd.h: Declare fsync also for __USE_XOPEN2K.
4618 * posix/regex.h (REG_ENOSYS): Likewise.
4619 * wcsmbs/wchar.h: Define __need_file also for __USE_XOPEN2K.
4621 2007-11-25 Ulrich Drepper <drepper@redhat.com>
4623 * nscd/nscd.h (MAX_STACK_USE): Define.
4624 * nscd/mem.c (MAX_STACK_USE): Remove definition here.
4625 (gc): Initialize stack_used based on allocation in prune_cache.
4626 * nscd/cache.c (prune_cache): Use heap for mark array if necessary.
4627 Clear array before use.
4629 * nscd/aicache.c (addhstaiX): Update statistics counter in case
4630 memory allocation failed.
4631 * nscd/hstcache.c (cache_addhst): Likewise.
4632 * nscd/grpcache.c (cache_addgr): Likewise.
4633 * nscd/servicescache.c (cache_addserv): Likewise.
4634 * nscd/pwdcache.c (cache_addpw): Likewise.
4635 * nscd/initgrcache.c (addinitgroupsX): Likewise.
4637 2007-11-23 Ulrich Drepper <drepper@redhat.com>
4639 * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Add open
4640 and creat system calls.
4642 * sysdeps/unix/sysv/linux/check_native.c: Include <asm/types.h>.
4644 2007-11-23 Martin Schwidefsky <schwidefsky@de.ibm.com>
4646 * sysdeps/unix/sysv/linux/Makefile [subdir=inet] (sysdep_headers):
4648 * sysdeps/unix/sysv/linux/netiucv/iucv.h: New file.
4649 * sysdeps/unix/sysv/linux/opensock.c (__opensock): Add AF_IUCV
4651 * sysdeps/unix/sysv/linux/sa_len.c (__libc_sa_len): Likewise.
4652 * sysdeps/unix/sysv/linux/s390/opensock.c: New file.
4653 * sysdeps/unix/sysv/linux/s390/sa_len.c: New file.
4655 2007-11-22 Martin Schwidefsky <schwidefsky@de.ibm.com>
4657 * sysdeps/s390/bits/string.h (strlen, strcpy, strncpy, strcat,
4658 strncat): Define as macros to avoid compile errors.
4660 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Add open and
4663 2007-11-22 Ulrich Drepper <drepper@redhat.com>
4666 * nscd/nscd.h (NSCD_THREAD_STACKSIZE): Define.
4667 * nscd/connections.c (start_threads): Use NSCD_THREAD_STACKSIZE.
4668 * nscd/mem.c (gc): Don't allocate arrays on the stack if they can
4670 Partially based on a patch by Petr Baudis <pasky@suse.cz>.
4672 * sysdeps/unix/sysv/linux/nscd_setup_thread.c (setup_thread):
4673 Return zero in case the thread library is not NPTL.
4676 * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix locking when
4677 initializing interface list.
4680 * nis/nss_compat/compat-initgroups.c (getgrent_next_nss): Don't
4681 use result of nss_getgrgid_r if nothing was found. For other
4682 error return with a failure.
4683 Partially based on a patch by Petr Baudis <pasky@suse.cz>.
4685 * locale/programs/ld-collate.c (collate_read): Fix loop to match
4688 2007-11-19 Ulrich Drepper <drepper@redhat.com>
4690 * sysdeps/posix/getaddrinfo.c (defaults_scopes, scopes): New variables.
4691 (get_scope): For IPv4 scope, use scopes table.
4692 (fini): Free scopes table if necessary.
4693 (free_scopelist): New function.
4694 (scopecmp): New function.
4695 (gaiconf_init): Also handle scopev4 entries.
4696 * posix/tst-rfc3484.c (do_test): Initialize scopes.
4697 * posix/tst-rfc3484-2.c (do_test): Likewise.
4698 * posix/gai.conf: Document scopev4 defaults.
4699 * posix/Makefile (tests): Add tst-rfc3484-3.
4700 * posix/tst-rfc3484-3.c: New file.
4702 * sysdeps/posix/getaddrinfo.c (default_labels): Describe entry for
4704 * posix/gai.conf: Update for current default tables.
4706 2007-11-19 Ulrich Drepper <drepper@redhat.com>
4708 * po/tr.po: Update from translation team.
4710 2007-11-18 Roland McGrath <roland@frob.com>
4712 * manual/arith.texi (Remainder Functions): Spelling fix.
4713 From Shaun Silk <genix@mysoul.com.au>.
4715 * sysdeps/mach/hurd/bits/fcntl.h (O_CLOEXEC): Fix value.
4717 2007-11-17 Ulrich Drepper <drepper@redhat.com>
4719 * po/zh_CN.po: Update from translation team.
4721 * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
4722 Add sys/signalfd.h and sys/eventfd.h.
4724 2007-11-15 Bruno Haible <bruno@clisp.org>
4727 * intl/dcigettext.c (struct known_translation_t): Turn msgid into a
4729 (transcmp): Use the appropriate part of s1->msgid and s2->msgid.
4730 (DCIGETTEXT): Change the allocation of the 'search' variable so that
4731 it needs only fixed stack space. Delay the initialization of
4732 msgid_len until it is needed.
4734 2007-11-15 Andreas Jaeger <aj@suse.de>
4736 * sysdeps/ieee754/dbl-64/sincos.tbl: Fix size of union.
4737 Reported by Christoph Quirin Lauter <christoph.lauter@ens-lyon.fr>.
4739 2007-11-15 Ulrich Drepper <drepper@redhat.com>
4741 * po/ko.po: Update from translation team.
4743 2007-11-14 Ulrich Drepper <drepper@redhat.com>
4745 * sysdeps/unix/sysv/linux/check_native.c (__check_native): Simplify
4746 significantly. The device type is also part of the ifinfomsg data.
4748 * po/sv.po: Update from translation team.
4749 * po/nl.po: Likewise.
4751 * nscd/cache.c (prune_cache): If cache is empty, instruct caller
4752 to wake up in 24 hours.
4754 * nscd/gai.c (__ioctl): Define. Include check_native.c.
4756 2007-11-13 Ulrich Drepper <drepper@redhat.com>
4758 * po/cs.po: Update from translation team.
4759 * po/pl.po: Likewise.
4761 * include/ifaddrs.h: Remove in6ai_temporary.
4762 (struct in6addrinfo): Add index element.
4763 Declare __check_native.
4764 * inet/Makefile (aux): Add check_native.
4765 * sysdeps/unix/sysv/linux/check_native.c: New file.
4766 * sysdeps/unix/sysv/linux/check_pf.c: No need to recognize
4767 IFA_F_TEMPORARY. Pass back ifa_index.
4768 * sysdeps/posix/getaddrinfo.c: Remove netlink compatibility code.
4769 (rfc3484_sort): Add new parameter. Implement rule 7 correctly:
4770 call __check_native if necessary.
4771 (getaddrinfo): Fill in index field. Use qsort_r instead of qsort
4772 to sort addresses. Pass information about the results.
4773 * posix/tst-rfc3484.c: Adjust for addition of index field and change
4774 of rfc3484_sort interface.
4775 * posix/tst-rfc3484-2.c: Likewise.
4777 * stdlib/stdlib.h: Define __compar_d_fn_t. Declare qsort_r.
4778 * include/stdlib.h: Add hidden_proto for qsort_t and adjust protoype
4780 * stdlib/msort.c (qsort): Now a wrapper around qsort_r.
4781 (qsort_r): Renamed from qsort. Take additional parameter and pass it
4782 on as third parameter to compare function and _quicksort.
4783 * stdlib/qsort.c (_quicksort): Take additional parameter and pass on
4784 to the compare function.
4785 * stdlib/Versions [libc] (GLIBC_2.8): Add qsort_r.
4786 * Versions.def: Add GLIBC_2.8 for libc.
4788 * posix/tst-rfc3484.c: Adjust for addition of prefixlen field.
4789 * posix/tst-rfc3484-2.c: Likewise.
4791 * include/kernel-features.h: Moved to...
4792 * sysdeps/mach/hurd/kernel-features.h: ...here.
4794 2007-09-13 H.J. Lu <hongjiu.lu@intel.com>
4796 * sysdeps/i386/i586/memcpy_chk.S: New file.
4797 * sysdeps/i386/i586/mempcpy_chk.S: Likewise.
4798 * sysdeps/i386/i586/memset_chk.S: Likewise.
4800 2007-11-12 Ulrich Drepper <drepper@redhat.com>
4802 * include/ifaddrs.c (struct in6addrinfo): Add prefixlen field.
4803 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Always return
4804 list of interfaces. Also store prefix length.
4805 * sysdeps/posix/getaddrinfo.c (sort_result): Add prefixlen element.
4806 (rfc3484_sort): In rule 9, for IPv4 addresses count only matching
4807 prefix if source and destination address are in the same subnet.
4808 (getaddrinfo): Always call __check_pf. Fill in prefixlen field.
4809 Always look for matching record in in6ai list.
4810 Correct source_addr_len value for IPv6->IPv4 converted records.
4812 2007-11-11 Roland McGrath <roland@frob.com>
4814 * include/kernel-features.h: New file.
4816 2007-11-10 Ulrich Drepper <drepper@redhat.com>
4818 * sysdeps/pthread/aio_misc.c (handle_fildes_io): Avoid unnecessary
4819 complications for 64-bit platforms.
4821 * sysdeps/unix/sysv/linux/open64.c: Move __open64_2 implementation to..
4822 * sysdeps/unix/sysv/linux/open64_2.c: ...here. New file.
4823 * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines): Add
4825 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Add open and creat
4827 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
4828 * sysdeps/wordsize-64/alphasort.c: New file.
4829 * sysdeps/wordsize-64/alphasort64.c: New file.
4830 * sysdeps/wordsize-64/fseeko.c: New file.
4831 * sysdeps/wordsize-64/fseeko64.c: New file.
4832 * sysdeps/wordsize-64/ftello.c: New file.
4833 * sysdeps/wordsize-64/ftello64.c: New file.
4834 * sysdeps/wordsize-64/ftw.c: New file.
4835 * sysdeps/wordsize-64/ftw64.c: New file.
4836 * sysdeps/wordsize-64/iofgetpos.c: New file.
4837 * sysdeps/wordsize-64/iofgetpos64.c: New file.
4838 * sysdeps/wordsize-64/iofopen.c: New file.
4839 * sysdeps/wordsize-64/iofopen64.c: New file.
4840 * sysdeps/wordsize-64/iofsetpos.c: New file.
4841 * sysdeps/wordsize-64/iofsetpos64.c: New file.
4842 * sysdeps/wordsize-64/lockf.c: New file.
4843 * sysdeps/wordsize-64/lockf64.c: New file.
4844 * sysdeps/wordsize-64/mkostemp.c: New file.
4845 * sysdeps/wordsize-64/mkostemp64.c: New file.
4846 * sysdeps/wordsize-64/mkstemp.c: New file.
4847 * sysdeps/wordsize-64/mkstemp64.c: New file.
4848 * sysdeps/wordsize-64/scandir.c: New file.
4849 * sysdeps/wordsize-64/scandir64.c: New file.
4850 * sysdeps/wordsize-64/tmpfile.c: New file.
4851 * sysdeps/wordsize-64/tmpfile64.c: New file.
4852 * sysdeps/wordsize-64/versionsort.c: New file.
4853 * sysdeps/wordsize-64/versionsort64.c: New file.
4854 * sysdeps/unix/sysv/linux/wordsize-64/aio_read.c: New file.
4855 * sysdeps/unix/sysv/linux/wordsize-64/aio_read64.c: New file.
4856 * sysdeps/unix/sysv/linux/wordsize-64/aio_write.c: New file.
4857 * sysdeps/unix/sysv/linux/wordsize-64/aio_write64.c: New file.
4858 * sysdeps/unix/sysv/linux/wordsize-64/creat64.c: New file.
4859 * sysdeps/unix/sysv/linux/wordsize-64/getdirentries.c: New file.
4860 * sysdeps/unix/sysv/linux/wordsize-64/getdirentries64.c: New file.
4861 * sysdeps/unix/sysv/linux/wordsize-64/lio_listio.c: New file.
4862 * sysdeps/unix/sysv/linux/wordsize-64/lio_listio64.c: New file.
4863 * sysdeps/unix/sysv/linux/wordsize-64/open64.c: New file.
4864 * sysdeps/unix/sysv/linux/wordsize-64/openat.c: New file.
4865 * sysdeps/unix/sysv/linux/wordsize-64/openat64.c: New file.
4867 * crypt/sha256-crypt.c: Fix a comment.
4868 * crypt/sha512-crypt.c: Likewise.
4870 2007-11-07 H.J. Lu <hongjiu.lu@intel.com>
4872 * sysdeps/x86_64/memset.S: Add sfence after movnti.
4874 2007-11-07 Ulrich Drepper <drepper@redhat.com>
4877 * iconv/loop.c (STANDARD_TO_LOOP_ERR_HANDLER): If conversion failed
4878 because output buffer is too small break, don't loop.
4879 * iconvdata/Makefile (tests): Add bug-iconv6.
4880 * iconvdata/bug-iconv6.c: New file.
4882 2007-11-06 Ulrich Drepper <drepper@redhat.com>
4884 * stdio-common/vfprintf.c (vfprintf): Compute necessary buffer size
4886 * stdio-common/printf_fp.c (__print_fp): Change chars_needed type to
4887 size_t. Add casts where needed.
4889 * nscd/selinux.c (nscd_request_avc_has_perm): When compiled with
4890 old headers, don't call avc_has_perm if we don't have the
4891 permission information.
4893 2007-11-05 Daniel Jacobowitz <dan@codesourcery.com>
4895 * elf/rtld.c (dl_main): Use the page size to find the map start.
4897 2007-11-05 Ulrich Drepper <drepper@redhat.com>
4899 * time/tzfile.c (__tzfile_read): Fix check for version 0 data files.
4900 Patch by Szymon Siwek <sls@poczta.wp.pl>.
4902 * nscd/aicache.c (addhstaiX): Check herrno after IPv4 lookup only
4903 when the lookup call failed.
4905 * nscd/nscd.h (struct database_dyn): Rename prunelock to prune_lock.
4906 Add prune_cond and wakeup_time.
4907 (CACHE_PRUNE_INTERNAL): Define.
4908 Update declarations of prune_cache and setup_thread.
4909 * nscd/connections.c (dbs): Update initializers.
4910 (CACHE_PRUNE_INTERNAL): Moved to nscd.h.
4911 (nscd_init): Default number of threads is now 4.
4912 (invalidate_cache): Take lock before calling prune_cache.
4913 (handle_request): If SELinux forbids the request, say so.
4914 (readylist_cond): Use static initializer.
4915 (nscd_run_prune): New function. Used only by pruning threads.
4916 (nscd_run_worder): Renamed from nscd_run. Remove support for pruning
4918 (fd_ready): Update nscd_run reference.
4919 (start_threads): No need to initialize readylist_cond.
4920 Start pruning threads separately.
4921 * nscd/nscd_setup_thread.c: Change return value type to int and always
4923 * sysdeps/unix/sysv/linux/nscd_setup_thread.c: Change return value type
4924 to int and return nonzero value if we can use the TID address hack.
4925 * nscd/cache.c (cache_add): If next wakeup time of cleanup thread for
4926 the database is later than the new entry's timeout, update the
4927 wakeup time and wake the cleanup thread.
4928 (prune_cache): Return seconds the next entry in the database is still
4929 valid. Remove locking for pruning here.
4930 * nscd/nscd.conf: Document default number of threads.
4932 2007-10-31 Ulrich Drepper <drepper@redhat.com>
4934 * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Make sure
4935 stack is properly aligned for the target function.
4936 Correct unwind info.
4938 * elf/rtld.c (dl_main): Initialize stack and pointer guard early
4939 when using auditing libraries.
4941 2007-10-29 Ulrich Drepper <drepper@redhat.com>
4943 * resolv/Versions [libresolv] (GLIBC_PRIVATE): Add
4944 _nss_dns_getnetbyaddr2_r.
4945 * resolv/nss_dns/dns-host.c: Define _nss_dns_getnetbyaddr2_r. Pass
4946 extra parameter to getanswer_r.
4947 (_nss_dns_getnetbyaddr_r): Now a wrapper around
4948 _nss_dns_getnetbyaddr2_r.
4950 * nscd/Makefile (nscd-modules): Replace gethstbynm2_r with
4952 * nscd/gethstbynm2_r.c: Remove.
4953 * nscd/gethstbynm3_r.c: New file.
4954 * nscd/aicache.c (addhstaiX): Use __gethostbyaddr2_r instead of
4956 * nscd/gethstbyad_r.c: Generate __gethostbyaddr2_r function. Define
4957 __gethostbyaddr_r compatibility wrapper.
4958 * nscd/hstcache.c (cache_addhst): Add ttl parameter. Use it when
4959 determining timeout of entry.
4960 (lookup): Take new parameter and pass it to __gethostbyname3_r and
4962 (addhstbyX): Pass reference to variable for TTL to lookup and
4964 * nss/Versions [glibc] (GLIBC_PRIVATE): Export __nss_passwd_lookup2,
4965 __nss_group_lookup2, __nss_hosts_lookup2, __nss_services_lookup2,
4966 and __nss_next2. Remove __nss_services_lookup.
4967 * nss/XXX-lookup.c: Name function now *_lookup2. Add new parameter.
4969 * nss/getXXbyYY_r.c: Changes to call new *_lookup2 functions and
4971 * nss/getXXent_r.c: Likewise.
4972 * nss/getnssent_r.c: Likewise.
4973 * nss/nsswitch.c (__nss_lookup): Add new parameter. If first function
4974 does not exist in module, try the optional second name.
4975 (__nss_next2): New function.
4976 (__nss_next): Now wrapper around __nss_next2.
4977 * nss/nsswitch.h: Adjust __nss_lookup prototype.
4978 Declare __nss_next2.
4979 Adjust definition of db_lookup_function type.
4980 * nss/service-lookup.c: Define NO_COMPAT.
4981 * include/netdb.h: Declare __gethostbyaddr2_r and __gethostbyname3_r.
4982 * inet/ether_hton.c: Use __nss_next2 instead of __nss_next.
4983 * inet/ether_ntoh.c: Likewise.
4984 * sunrpc/netname.c: Likewise.
4985 * sunrpc/publickey.c: Likewise.
4986 * inet/getnetgrent.c: Likewise. Adjust calls to __nss_lookup.
4987 * inet/gethstbyad_r.c (DB_LOOKUP_FCT): Change to __nss_hosts_lookup2.
4988 * inet/gethstbynm2_r.c (DB_LOOKUP_FCT): Likewise.
4989 * inet/gethstbynm_r.c (DB_LOOKUP_FCT): Likewise.
4990 * inet/gethstent_r.c (DB_LOOKUP_FCT): Likewise.
4992 * nscd/aicache.c (addhstaiX): Fix default TTL handling.
4994 * inet/getnetgrent_r.c (setup): Encrypt static pointer.
4996 2007-10-28 Ulrich Drepper <drepper@redhat.com>
4999 * crypt/sha256c-test.c: Define TIMEOUT to 6 for ancient hardware.
5000 * crypt/sha512c-test.c: Likewise.
5003 * stdio-common/vfscanf.c (_IO_vfwscanf): Don't misuse wp pointer
5004 to keep track of end of %[ format string element.
5005 * stdio-common/Makefile (tests): Add bug20.
5006 * stdio-common/bug20.c: New file.
5009 * elf/dl-load.c (_dl_rtld_di_serinfo): Correct handling of short
5010 path elements in counting mode.
5012 2007-10-27 Andreas Jaeger <aj@suse.de>
5015 * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLRDHUP): Add value.
5018 * sysdeps/ia64/backtrace.c (init): Free shared library if incorrect.
5019 (__cleanup): Free shared library when exiting.
5020 * sysdeps/i386/backtrace.c (init): Free shared library if incorrect.
5021 (__cleanup): Free shared library when exiting.
5023 2006-04-14 H.J. Lu <hongjiu.lu@intel.com>
5026 * math/libm-test.inc (check_float_internal): Support
5027 denormalized return.
5029 2007-10-23 Andreas Jaeger <aj@suse.de>
5032 * sysdeps/unix/sysv/linux/readahead.c (__readahead): Use
5033 __LONG_LONG_PAIR to handle little endian byte order.
5034 Suggested by abhishekrai@google.com
5036 2007-10-27 Ulrich Drepper <drepper@redhat.com>
5038 * malloc/arena.c [!NO_THREADS]: Use ATFORK_MEM if defined.
5040 2007-10-26 Ulrich Drepper <drepper@redhat.com>
5042 * nscd/cache.c (prune_cache): Move test for modified file outside
5045 2007-10-21 Andreas Jaeger <aj@suse.de>
5047 * manual/texinfo.tex: Update to latest version.
5049 * manual/sysinfo.texi (System Parameters): Fix Formatting.
5051 * manual/arith.texi (Status bit operations): Fix formatting.
5053 * manual/errno.texi (Error Messages): Fix formatting.
5055 * manual/sysinfo.texi (System Parameters): Fix formatting.
5057 * manual/libc.texinfo: Update VERSION and UPDATED.
5059 2007-10-19 Roland McGrath <roland@redhat.com>
5061 * elf/Makefile ($(objpfx)ld.so): Use $(AWK).
5063 2007-10-06 David S. Miller <davem@davemloft.net>
5065 * configure.in: Add sparcv9v2 and sparc64v2.
5066 * scripts/config.sub: Likewise.
5067 * configure: Regenerate.
5068 * elf/elf.h (HWCAP_SPARC_N2): New.
5069 * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Bump to 8.
5070 * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add 'v9v2'.
5071 (HWCAP_IMPORTANT): Add HWCAP_SPARC_N2.
5072 * sysdeps/sparc/sparc32/sparcv9/sparcv9v2/memcpy.S: New file.
5073 * sysdeps/sparc/sparc32/sparcv9/sparcv9v2/memset.S: New file.
5074 * sysdeps/sparc/sparc64/sparcv9v2/memcpy.S: New file.
5075 * sysdeps/sparc/sparc64/sparcv9v2/memset.S: New file.
5077 2007-10-18 Ulrich Drepper <drepper@redhat.com>
5079 * sunrpc/clnt_udp.c (clntudp_call): Don't block in recvfrom call
5080 even if the poll result indicates there is data to read.
5081 Patch by Jeff Moyer <jmoyer@redhat.com>.
5083 2007-10-18 Roland McGrath <roland@redhat.com>
5085 * elf/elf.h (NT_PPC_VMX): New macro.
5087 2007-10-17 Ulrich Drepper <drepper@redhat.com>
5089 * version.h (VERSION): Set to 2.7.90.
5091 2007-10-17 Jakub Jelinek <jakub@redhat.com>
5093 * sysdeps/x86_64/memset.S (bzero): Renamed to __bzero. Add
5096 2007-10-17 Roland McGrath <roland@frob.com>
5098 * sysdeps/mach/hurd/bits/fcntl.h [__USE_GNU__] (F_DUPFD_CLOEXEC): New.
5099 * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Implement it.
5101 2007-10-17 Ulrich Drepper <drepper@redhat.com>
5103 * version.h (VERSION): Bump to 2.7.
5104 * include/features.h (__GLIBC_MINOR__): Bump to 7.
5107 * time/tzset.c (__tz_convert): Don't force testing for a change of
5108 TZ if not called from localtime. But then also see whether the
5109 file changed, in case __use_tzfile is set.
5111 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define F_DUPFD_CLOEXEC.
5112 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
5113 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
5114 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
5115 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
5116 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
5117 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
5118 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
5120 2007-10-17 Jakub Jelinek <jakub@redhat.com>
5122 * sysdeps/posix/getaddrinfo.c (getaddrinfo): When sorting addresses
5123 and admin selects to be able to replace the gai.conf file, lock
5124 data structures around the qsort call.
5126 2007-10-17 Ulrich Drepper <drepper@redhat.com>
5128 * sysdeps/x86_64/cacheinfo.c: Comment out code added in support of
5130 * sysdeps/x86_64/memset.S: Revert to old version for now. The cost is
5131 too high for the improvements. Implement bzero unconditionally for
5134 2007-10-17 Ulrich Drepper <drepper@redhat.com>
5135 Jakub Jelinek <jakub@redhat.com>
5137 * time/tzfile.c (__tzfile_read): Read POSIX TZ string if available
5138 even when time_t is 32-bit.
5139 (__tzfile_compute): Override POSIX TZ string STD/DST zone names if
5140 timezone data read by __tzfile_default. Ensure __tzname[0] is
5141 always set after the search.
5143 2007-10-16 Ulrich Drepper <drepper@redhat.com>
5145 * time/tzfile.c (__tzfile_read): Help the compiler recognize
5146 unreachable code on 32-bit machines.
5148 2007-10-16 Jakub Jelinek <jakub@redhat.com>
5151 * time/strftime_l.c: Include stdbool.h.
5152 (my_strftime): New wrapper, old function renamed to...
5153 (__strftime_internal): ... new function. Add tzset_called
5154 argument, pass it down to recursive calls, don't call tzset ()
5155 if already true, set to true after call to tzset ().
5157 2007-10-16 Ulrich Drepper <drepper@redhat.com>
5159 * time/tzfile.c (__tzfile_read): Take extra memory requested by caller
5160 into account when copying TZ string.
5162 2007-10-16 Jakub Jelinek <jakub@redhat.com>
5164 * time/tzfile.c (__tzfile_compute): For use_last case set i to
5165 num_transition rather than num_transitions - 1.
5167 2007-10-16 Jakub Jelinek <jakub@redhat.com>
5169 * sysdeps/x86_64/memset.S (memset): Fix sse2_nt_move
5172 * sysdeps/x86_64/memset.S: Jump from bzero to memset using
5173 a local label rather than HIDDEN_JUMPTARGET.
5175 2007-10-15 Ulrich Drepper <drepper@redhat.com>
5177 * sysdeps/x86_64/cacheinfo.c (__x86_64_shared_cache_size): Define.
5178 (init_cacheinfo): Initialize it.
5179 * sysdeps/x86_64/memset.S: Use __x86_64_shared_cache_size.
5180 Always define bzero.
5181 Remove non-glibc code.
5182 * sysdeps/x86_64/bzero.S: Make an empty file.
5184 2007-10-15 H.J. Lu <hongjiu.lu@intel.com>
5186 * sysdeps/x86_64/cacheinfo.c
5187 (__x86_64_preferred_memory_instruction): New.
5188 (init_cacheinfo): Initialize __x86_64_preferred_memory_instruction.
5190 * sysdeps/x86_64/memset.S: Rewrite.
5192 2007-10-15 Roland McGrath <roland@redhat.com>
5194 * po/libc.pot: Regenerated.
5196 2007-10-15 Ulrich Drepper <drepper@redhat.com>
5198 * nss/getXXbyYY_r.c (REENTRANT_NAME): Mangle startp and start_fct
5202 * resolv/nss_dns/dns-host.c (getanswer_r): Fail with
5203 NSS_STATUS_NOTFOUND if the server replied with only a CNAME and no
5204 address record to T_A/T_AAAA requests.
5206 2007-10-14 Ulrich Drepper <drepper@redhat.com>
5208 * posix/glob.c: Reimplement link_exists_p to use fstatat64.
5210 * posix/glob.c: Add some branch prediction throughout.
5212 * nscd/nscd_getgr_r.c (nscd_getgr_r): Store result of successful
5215 * sysdeps/posix/getaddrinfo.c (struct sort_result): Add
5217 (rfc3484_sort): Make sure that even if qsort doesn't support
5218 stable sorting out sorting here is stable by comparing service_order.
5219 (getaddrinfo): Initialize service_order.
5220 * posix/tst-rfc3484.c (do_test): Adjust for addition of
5221 service_order field to sorting structure.
5222 * posix/tst-rfc3484-2.c (do_test): Likewise.
5224 * include/time.h: Declare __tzset_parse_tz and __tzset_compute.
5225 * time/tzset.c (tzset_internal): Break TZ string parsing out into
5226 __tzset_parse_tz and updating of daylight, timezone, tzname into
5228 (__tz_compute): Renamed from tz_compute. Take additional parameters.
5229 (__tz_convert): Updating of tm_isdst, tm_zone, and tm_gmtoff now
5230 happens in __tz_compute.
5231 * time/tzfile.c (__tzfile_read): Also read TZ string.
5232 (find_transition): Fold into __tzfile_compute.
5233 (__tzfile_compute): For times beyond the last transition try to
5235 * timezone/tst-timezone.c: Information in daylight and tzname does
5236 change for Asia/Tokyo timezone with more concrete information.
5239 * include/stdio.h: Add libc_hidden_proto for ftello.
5240 * libio/ftello.c: Add libc_hidden_def.
5243 * time/tzfile.c (__tzfile_compute): Compute tzname[] values based
5244 on the specified time and not the last entries in the file. Move
5245 code to determine tzname[] to...
5246 (find_transition): ...here. Add ugly guess for times before the
5249 2007-10-13 Ulrich Drepper <drepper@redhat.com>
5252 * nscd/nscd_getai.c (__nscd_getai): Set errno to 0 in case we found
5254 * nscd/nscd_getgr.c (nscd_getgr_r): Likewise.
5255 * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
5256 * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
5257 * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
5259 * nscd/nscd_getgr_r.c (nscd_getgr_r): Optimize a bit: use simpler
5260 read mechanism when there are no group members and avoid no-op
5261 read syscall in this case.
5264 * nscd/nscd_helper.c (wait_on_socket): Take timeout as parameter.
5265 (__readall): If reading failed due to EAGAIN error wait a bit
5266 and possibly try again.
5267 (__readvall): Likewise.
5269 2007-10-13 Bruno Haible <bruno@clisp.org>
5271 * intl/dcigettext.c (_nl_find_msg): Unlock the conversions_lock
5272 when we cannot recode the message.
5274 2007-10-13 Ulrich Drepper <drepper@redhat.com>
5277 * libio/__freading.c (__freading): Don't return true for
5278 write-only streams. For read/write streams, check whether we
5279 performed a read operation already.
5280 * libio/Makefile (tests): Add tst-ext2.
5281 * libio/tst-ext2.c: New file.
5283 2007-10-12 Ulrich Drepper <drepper@redhat.com>
5285 * locale/programs/repertoire.c (repertoire_read): Always free
5286 memory for repertoire file name [Coverity CID 270].
5288 * elf/cache.c (save_aux_cache): Free memory allocated for
5289 temporary file name [Coverity CID 267].
5291 2007-10-12 Jakub Jelinek <jakub@redhat.com>
5293 * misc/Makefile (headers): Add bits/error.h.
5295 2007-10-12 Ulrich Drepper <drepper@redhat.com>
5297 * posix/fnmatch_loop.c: Take rule index returned as part of
5298 findidx return value into account when accessing weights.
5299 * posix/regcomp.c: Likewise.
5300 * posix/regexec.c: Likewise.
5302 * locale/programs/ld-collate.c (collate_read): Optimize a bit.
5303 (skip_to): Fix problems with parameter of elifdef/elifndef.
5305 2007-10-11 Ulrich Drepper <drepper@redhat.com>
5307 * iconv/gconv_simple.c: Add some branch prediction.
5309 2007-10-12 Jakub Jelinek <jakub@redhat.com>
5311 * locale/programs/ld-collate.c (collate_read): If ignore_content
5312 and nowtok is tok_define, eat any tok_eol tokens.
5314 2007-10-11 Jakub Jelinek <jakub@redhat.com>
5316 * sysdeps/gnu/netinet/tcp.h: Include sys/socket.h if __USE_MISC.
5317 (struct tcp_md5sig): Change tcpm_addr type to struct sockaddr_storage.
5319 * inet/netinet/in.h: Don't include bits/socket.h.
5320 * sysdeps/unix/sysv/linux/bits/socket.h: Only check _SYS_SOCKET_H
5322 * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Likewise.
5324 2007-10-10 Ulrich Drepper <drepper@redhat.com>
5326 * locale/programs/locfile-token.h: Remove tok_elif, add tok_elifdef
5328 * locale/programs/locfile-kw.gperf: Likewise.
5329 * locale/programs/ld-collate.c: Implement primitive preprocessor.
5331 2007-10-10 Jakub Jelinek <jakub@redhat.com>
5333 * stdio-common/printf-parse.h: Include string.h and wchar.h.
5334 (__find_specwc): Change into __extern_always_inline function.
5335 (__find_specmb): Likewise. Remove ps argument. Use __strchrnul.
5336 (__parse_one_specmb): Remove ps argument.
5337 * stdio-common/vfprintf.c (vfprintf): Remove mbstate variable.
5338 Adjust __find_specmb and __parse_one_specmb callers.
5339 * stdio-common/printf-prs.c (parse_printf_format): Likewise.
5340 * stdio-common/printf-parsemb.c (__find_specwc, __find_specmb):
5342 (__parse_one_specmb): Remove ps argument, adjust __find_specmb
5345 2007-10-09 Ulrich Drepper <drepper@redhat.com>
5347 * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Work around problem
5348 with some Pentium Ds.
5350 2007-10-08 Ulrich Drepper <drepper@redhat.com>
5352 * sysdeps/unix/sysv/linux/eventfd_read.c (eventfd_read): Use
5354 * sysdeps/unix/sysv/linux/eventfd_write.c (eventfd_write): Use
5357 2007-10-07 Ulrich Drepper <drepper@redhat.com>
5360 * locale/C-time.c: Set week_1stday data to 19971201.
5361 * locale/programs/ld-time.c (time_finish): Default for
5362 first_workday is Monday.
5365 * wcsmbs/wchar.h: Move many C99 functions into std namespace.
5368 * posix/glob.c (glob): Recognize patterns starting \/.
5369 * posix/tst-gnuglob.c (find_file): Handle absolute path names.
5370 (main): Add test for pattern starting \/.
5372 * misc/error.h: Use __const instead of const.
5373 * misc/bits/error.h: Likewise.
5375 2007-10-07 Andreas Jaeger <aj@suse.de>
5377 * include/bits/error.h: New file.
5379 * misc/bits/error.h (error_at_line): Fix prototype.
5381 2007-10-06 Ulrich Drepper <drepper@redhat.com>
5384 * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix a few
5385 more little bugs in creating the stack frame when pltexit has to
5388 * nscd/nscd_helper.c (__nscd_cache_search): Prevent endless loops.
5389 * nscd/connections.c (verify_persistent_db): Recognize circular lists.
5392 * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Fix *signgamp for -0.0.
5393 * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
5394 * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
5395 * math/libm-test.inc: Add test for this case.
5398 * sunrpc/svc.c (struct svc_callout): Add sc_mapped element.
5399 (svc_register): Initialize sc_mapped. Set to TRUE if call to
5400 map service succeeded.
5401 (svc_is_mapped): New function.
5402 (svc_unregister): Use it before trying to unmap service.
5404 2007-10-05 Ulrich Drepper <drepper@redhat.com>
5406 * timezone/zic.c: Update from tzcode2007h.
5409 * timezone/africa: Update from tzdata2007h.
5410 * timezone/antarctica: Likewise.
5411 * timezone/asia: Likewise.
5412 * timezone/australasia: Likewise.
5413 * timezone/europe: Likewise.
5414 * timezone/leapseconds: Likewise.
5415 * timezone/northamerica: Likewise.
5416 * timezone/southamerica: Likewise.
5417 * timzeone/zone.tab: Likewise.
5420 * elf/do-lookup.h (do_lookup_x): Don't ignore STT_COMMON symbols.
5423 * string/bits/string2.h (__strdup): Cast parameters to calloc to
5424 avoid warning with -Wconversion.
5425 (__strndup): Likewise.
5426 Half the patch by Christian Iseli <christian.iseli@licr.org>.
5429 * nscd/connections.c (restart): Don't resync if database is
5430 disabled. Patch mostly by Brian De Wolf <bldewolf@csupomona.edu>.
5432 * sysdeps/gnu/netinet/tcp.h: Define TCP_MD5SIG, TCP_MD5SIG_MAXKEYLEN,
5433 struct tcp_md5sig. Extend struct tcp_info according to recent kernels.
5435 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add eventfd,
5436 evetnfd_read, eventfd_write.
5437 * sysdeps/unix/sysv/linux/eventfd.c: New file.
5438 * sysdeps/unix/sysv/linux/eventfd_read.c: New file.
5439 * sysdeps/unix/sysv/linux/eventfd_write.c: New file.
5440 * sysdeps/unix/sysv/linux/sys/eventfd.h: New file.
5441 * sysdeps/unix/sysv/linux/Versions: Export eventfd, eventfd_read,
5442 eventfd_write for GLIBC_2.7.
5444 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add signalfd.
5445 * sysdeps/unix/sysv/linux/signalfd.c: New file.
5446 * sysdeps/unix/sysv/linux/sys/signalfd.h: New file.
5447 * sysdeps/unix/sysv/linux/Versions: Export signalfd for GLIBC_2.7.
5449 2007-10-04 Jakub Jelinek <jakub@redhat.com>
5451 * stdlib/msort.c: Include stdint.h.
5452 (struct msort_param): New type.
5453 (msort_with_tmp): Use struct msort_param pointer for unchanging
5454 parameters. Add optimized handling for several common sizes
5455 and indirect sorting mode.
5456 (qsort): Adjust msort_with_tmp callers. For big S use indirect
5458 Suggested by Belazougui Djamel .
5460 * stdlib/Makefile (tests): Add tst-qsort2.
5461 * stdlib/tst-qsort2.c: New test.
5463 2007-10-04 Ulrich Drepper <drepper@redhat.com>
5465 * login/login_tty.c (login_tty): The Linux kernel can return EBUSY
5466 for dup2 in case another thread races with the current one. Retry
5469 * misc/error.h: Remove support for use outside of libc. We have to
5470 include <features.h> now. Include <bits/error.h> if possible.
5471 * misc/bits/error.h: New file.
5473 2007-10-03 Jakub Jelinek <jakub@redhat.com>
5475 * string/bits/string3.h (memcpy, memmove, mempcpy, memset, bcopy,
5476 bzero, strcpy, stpcpy, strncpy, strcat, strncat): Use
5477 __extern_always_inline functions unconditionally, drop macros.
5479 * misc/sys/cdefs.h (__REDIRECT_LDBL, __REDIRECT_NTH_LDBL): New macros.
5480 * wcsmbs/bits/wchar2.h (__swprintf_alias, __vswprintf_alias): Use
5481 __REDIRECT_NTH_LDBL macro rather than __REDIRECT_NTH.
5483 * misc/sys/cdefs.h (__extern_always_inline): For GCC 4.3+
5484 add __artificial__ attribute.
5486 2007-10-02 Ulrich Drepper <drepper@redhat.com>
5488 * string/strcoll_l.c (STRCOLL): Correct handling of switching from
5489 backward to forward direction.
5491 * string/strcoll_l.c (STRCOLL): Correct test for alloca use.
5494 * locale/programs/ld-collate.c (collate_finish): Compare against last
5495 used section which is known to have rules defined.
5496 (collate_read): After order_start, correctly record order of sections
5497 and queue sections up.
5499 2007-10-01 Ulrich Drepper <drepper@redhat.com>
5502 * malloc/malloc.c (mremap_chunk): Avoid resizing of new block has
5503 the same number of pages.
5504 Patch by Tomash Brechko <tomash.brechko@gmail.com>.
5506 * locale/programs/ld-collate.c (collate_read): After initial copy
5507 statement, continue in state 0.
5509 * include/stdio_ext.h (__fsetlocking): Define as macro.
5511 2007-09-30 Ulrich Drepper <drepper@redhat.com>
5513 * locale/programs/ld-collate.c (collate_finish): Compare all bytes
5516 * po/pt_BR.po: Fix typo.
5518 2007-09-29 Ulrich Drepper <drepper@redhat.com>
5520 * iconvdata/Makefile (modules): Add ISO8859-9E.
5521 (distribute): Add iso8859-9e.c.
5522 (gen-8bit-gap-modules): Add iso8859-9e.
5523 * iconvdata/iso8859-9e.c: New file.
5524 * iconvdata/gconv-modules: Add entries for ISO-8859-9E.
5525 * iconvdata/TESTS: Likewise.
5526 * iconvdata/tst-tables.sh: Likewise.
5528 * iconvdata/koi8-r.c (HAS_HOLES): Define to 0.
5530 * locale/iso-639.def: Add several new entries.
5532 2007-09-24 Jakub Jelinek <jakub@redhat.com>
5534 * sysdeps/generic/ldsodefs.h (struct dl_scope_free_list): Store
5535 void * pointers instead of struct link_map **.
5536 (_dl_scope_free): Change argument type to void *.
5537 * include/link.h (struct link_map): Change type of l_reldeps
5538 to struct link_map_reldeps, move l_reldepsact into that
5540 * elf/dl-deps.c: Include atomic.h.
5541 (_dl_map_object_deps): Only change l->l_initfini when it is
5542 fully populated, use _dl_scope_free for freeing it. Optimize
5543 removal of libs from reldeps by using l_reserved flag, when
5544 some removal is needed, allocate a new list instead of
5545 reallocating and free the old with _dl_scope_free. Adjust
5546 for l_reldeps and l_reldepsact changes.
5547 * elf/dl-lookup.c (add_dependency): Likewise. Reorganize to allow
5548 searching in l_initfini and l_reldeps without holding dl_load_lock.
5549 * elf/dl-fini.c (_dl_sort_fini): Adjust for l_reldeps and
5550 l_reldepsact changes.
5551 * elf/dl-close.c (_dl_close_worker): Likewise.
5552 * elf/dl-open.c (_dl_scope_free): Change argument type to void *.
5554 2007-09-28 Ulrich Drepper <drepper@redhat.com>
5556 * iconvdata/Makefile (modules): Add KOI8-RU.
5557 (distribute): Add koi8-ru.c.
5558 (gen-8bit-gap-modules): Add koi8-ru.
5559 * iconvdata/koi8-ru.c: New file.
5560 * iconvdata/gconv-modules: Add entries for KOI8-RU.
5561 * iconvdata/TESTS: Likewise.
5562 * iconvdata/tst-tables.sh: Likewise.
5564 * iconvdata/koi8-r.c (HAS_HOLES): Define to 0.
5566 2007-09-26 Jakub Jelinek <jakub@redhat.com>
5568 * misc/sys/cdefs.h (__warndecl, __errordecl): For GCC 4.3+ define
5569 with __warning__/__error__ attributes.
5570 (__warnattr): Define.
5571 * stdlib/bits/stdlib.h (__realpath_chk_warn, __ptsname_r_chk_warn,
5572 __mbstowcs_chk_warn, __wcstombs_chk_warn): New aliases with
5574 (realpath, ptsname_r, mbstowcs, wcstombs): Call __*_chk_warn instead
5575 of __*_chk if compile time detectable overflow is found.
5576 * libio/bits/stdio2.h (__fgets_chk_warn, __fread_chk_warn,
5577 __fgets_unlocked_chk_warn, __fread_unlocked_chk_warn): New aliases
5579 (fgets, fread, fgets_unlocked, fread_unlocked): Call __*_chk_warn
5580 instead of __*_chk if compile time detectable overflow is found.
5581 (__gets_alias): Rename to...
5582 (__gets_warn): ... this. Add __warnattr.
5583 (gets): Call __gets_warn instead of __gets_alias.
5584 * socket/bits/socket2.h (__recv_chk_warn, __recvfrom_chk_warn): New
5585 aliases with __warnattr.
5586 (recv, recvfrom): Call __*_chk_warn instead of __*_chk if compile
5587 time detectable overflow is found.
5588 * posix/bits/unistd.h (__read_chk_warn, __pread_chk_warn,
5589 __pread64_chk_warn, __readlink_chk_warn, __readlinkat_chk_warn,
5590 __getcwd_chk_warn, __confstr_chk_warn, __getgroups_chk_warn,
5591 __ttyname_r_chk_warn, __getlogin_r_chk_warn, __gethostname_chk_warn,
5592 __getdomainname_chk_warn): New aliases with __warnattr.
5593 (read, pread, pread64, readlink, readlinkat, getcwd, confstr,
5594 getgroups, ttyname_r, getlogin_r, gethostname, getdomainname): Call
5595 __*_chk_warn instead of __*_chk if compile time detectable overflow
5597 (__getgroups_chk): Rename argument to __listlen from listlen.
5598 (__getwd_alias): Rename to...
5599 (__getwd_warn): ... this. Add __warnattr.
5600 (getwd): Call __getwd_warn instead of __getwd_alias.
5601 * wcsmbs/bits/wchar2.h (__wmemcpy_chk_warn, __wmemmove_chk_warn,
5602 __wmempcpy_chk_warn, __wmemset_chk_warn, __wcsncpy_chk_warn,
5603 __wcpncpy_chk_warn, __fgetws_chk_warn, __fgetws_unlocked_chk_warn,
5604 __mbsrtowcs_chk_warn, __wcsrtombs_chk_warn, __mbsnrtowcs_chk_warn,
5605 __wcsnrtombs_chk_warn): New aliases with __warnattr.
5606 (wmemcpy, wmemmove, wmempcpy, wmemset, mbsrtowcs, wcsrtombs,
5607 mbsnrtowcs, wcsnrtombs): Call __*_chk_warn instead of __*_chk if
5608 compile time detectable overflow is found.
5609 (wcsncpy, wcpncpy): Likewise. For constant __n fix check whether
5610 to use __*_chk or not.
5611 (fgetws, fgetws_unlocked): Divide __bos by sizeof (wchar_t), both
5612 in comparisons which function should be called and in __*_chk*
5613 arguments. Call __*_chk_warn instead of __*_chk if compile time
5614 detectable overflow is found.
5615 (swprintf, vswprintf): Divide __bos by sizeof (wchar_t) in
5617 * debug/tst-chk1.c (do_test): Add a few more tests.
5619 2007-09-24 Ulrich Drepper <drepper@redhat.com>
5622 * intl/gettextP.h (struct loaded_domain): Add conversions_lock member.
5623 * intl/loadmsgcat.c (_nl_load_domain): Initialize conversions_lock.
5624 (_nl_unload_domain): Finalize conversions_lock.
5625 * intl/dcigettext.c (_nl_find_msg): Take conversions_lock before
5626 handling table of known conversions.
5628 2007-09-24 Jakub Jelinek <jakub@redhat.com>
5630 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Use
5631 close_not_cancel_no_status instead of close.
5633 2007-09-13 Aurelien Jarno <aurelien@aurel32.net>
5636 * posix/regcomp.c (lookup_collation_sequence_value): Check that
5637 nrules != 0 for multibyte chars.
5639 2007-09-23 Ulrich Drepper <drepper@redhat.com>
5641 * resolv/ns_print.c (ns_sprintrrf): Handle ns_t_a6 and ns_t_opt.
5642 Provide better error message in case the type is unknown.
5645 * wcsmbs/wcsnlen.c: Don't reference before checking the length.
5646 * string/stratcliff.c: Make usable to test wide char functions.
5647 * wcsmbs/wcsatcliff.c: New file.
5648 * wcsmbs/Makefiel (tests): Add wcsatcliff.
5651 * iconvdata/Makefile (modules): Add MAC-CENTRALEUROPE.
5652 (distribute): Add mac-centraleurope.c.
5653 (gen-8bit-gap-modules): Add mac-centraleurope.
5654 * iconvdata/mac-centraleurope.c: New file.
5655 * iconvdata/gconv-modules: Add entries for MAC-CENTRALEUROPE.
5656 * iconvdata/TESTS: Likewise.
5657 * iconvdata/tst-tables.sh: Likewise.
5660 * iconv/iconv_open.c (iconv_open): For large codeset names use malloc.
5662 2007-09-21 Ulrich Drepper <drepper@redhat.com>
5664 * sysdeps/x86_64/cacheinfo.c (__x86_64_data_cache_size_half): Renamed
5665 from __x86_64_core_cache_size_half.
5666 (init_cacheinfo): Compute shared cache size for AMD processors with
5667 shared L3 correctly.
5668 * sysdeps/x86_64/memcpy.S: Adjust for __x86_64_data_cache_size_half
5670 Patch in large parts by Evandro Menezes.
5672 2007-09-19 Ulrich Drepper <drepper@redhat.com>
5674 * elf/dl-lookup.c (add_dependency): Handle failing memory
5675 allocation for dependency list. Remove unnecessary check.
5677 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid unnecessary
5678 open/close when determining source addresses.
5680 * crypt/Makefile (libcrypt-routines): Add sha256-crypt, sha256,
5681 sha512-crypt, and sha512.
5682 (tests): Add sha256test, sha256c-test, sha512test, and sha512c-test.
5683 (distribute): Add sha256.h and sha512.h.
5684 * crypt/crypt-entry.c (crypt): Recognize the new $5$ and $6$ prefixes
5685 and call the appropriate code.
5686 * crypt/sha256-crypt.c: New file.
5687 * crypt/sha256.c: New file.
5688 * crypt/sha256.h: New file.
5689 * crypt/sha256c-test.c: New file.
5690 * crypt/sha256test.c: New file.
5691 * crypt/sha512-crypt.c: New file.
5692 * crypt/sha512.c: New file.
5693 * crypt/sha512.h: New file.
5694 * crypt/sha512c-test.c: New file.
5695 * crypt/sha512test.c: New file.
5697 2007-09-19 Jakub Jelinek <jakub@redhat.com>
5699 * misc/bits/syslog.h (syslog): Remove extraneous argument from
5700 the inline, pass __USE_FORTIFY_LEVEL - 1 as second argument to
5703 2007-09-18 Jakub Jelinek <jakub@redhat.com>
5705 * locale/programs/charmap-dir.c (charmap_aliases): Use %ms instead of
5706 %as in fscanf format strings.
5708 * sysdeps/sparc/sparc32/elf/start.S: Remove cfi_* markup.
5709 * sysdeps/sparc/sparc64/elf/start.S: Likewise.
5710 * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__thread_start):
5712 * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__thread_start):
5715 * sysdeps/generic/ldsodefs.h (DL_LOOKUP_GSCOPE_LOCK): New definition.
5716 * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Or in
5717 DL_LOOKUP_GSCOPE_LOCK into flags after THREAD_GSCOPE_SET_FLAG ().
5718 * elf/dl-sym.c (do_sym): Likewise.
5719 * include/link.h (struct link_map): Add l_serial field.
5720 * elf/dl-object.c (_dl_new_object): Initialize l_serial.
5721 * elf/dl-lookup.c (add_dependency): Add flags argument.
5722 Remember map->l_serial, if DL_LOOKUP_GSCOPE_LOCK is among
5723 flags, use THREAD_GSCOPE_RESET_FLAG before and
5724 THREAD_GSCOPE_SET_FLAG after
5725 __rtld_lock_lock_recursive (GL(dl_load_lock)) to avoid deadlock.
5726 Don't dereference map until it has been found on some list.
5727 If map->l_serial changed, return -1.
5729 2007-09-17 Jakub Jelinek <jakub@redhat.com>
5731 * include/stdio.h (__isoc99_fscanf, __isoc99_scanf,
5732 __isoc99_sscanf, __isoc99_vscanf): New prototypes.
5733 (__isoc99_vsscanf, __isoc99_vfscanf): New prototypes, add
5735 * include/wchar.h (__isoc99_fwscanf, __isoc99_wscanf,
5736 __isoc99_swscanf, __isoc99_vwscanf): New prototypes.
5737 (__isoc99_vswscanf, __isoc99_vfwscanf): New prototypes,
5738 add libc_hidden_proto.
5739 * libio/stdio.h (fscanf, scanf, sscanf, vfscanf, vscanf,
5740 vsscanf): Redirect to __isoc99_* if strict ISO C99 or POSIX
5741 conformance requested.
5742 * wcsmbs/wchar.h (fwscanf, wscanf, swscanf, vfwscanf, vwscanf,
5743 vswscanf): Redirect to __isoc99_* if strict ISO C99 or POSIX
5744 conformance requested.
5745 * libio/bits/stdio-ldbl.h (fscanf, scanf, sscanf, vfscanf, vscanf,
5746 vsscanf): Redirect to __nldbl___isoc99_* if strict ISO C99 or POSIX
5747 conformance requested.
5748 * wcsmbs/bits/wchar-ldbl.h (fwscanf, wscanf, swscanf, vfwscanf,
5749 vwscanf, vswscanf): Redirect to __nldbl___isoc99_* if strict
5750 ISO C99 or POSIX conformance requested.
5751 * stdio-common/Versions (libc): Export __isoc99_scanf@@GLIBC_2.7,
5752 __isoc99_vscanf@@GLIBC_2.7, __isoc99_fscanf@@GLIBC_2.7,
5753 __isoc99_vfscanf@@GLIBC_2.7, __isoc99_sscanf@@GLIBC_2.7
5754 and __isoc99_vsscanf@@GLIBC_2.7.
5755 * stdio-common/Makefile (routines): Add isoc99_scanf, isoc99_vscanf,
5756 isoc99_fscanf, isoc99_vfscanf, isoc99_sscanf and isoc99_vsscanf.
5757 (tests): Add scanf14.
5758 (CFLAGS-vfprintf.c, CFLAGS-fprintf.c, CFLAGS-printf.c,
5759 CFLAGS-vfwprintf.c, CFLAGS-vfscanf.c, CFLAGS-vfwscanf.c,
5760 CFLAGS-fscanf.c, CFLAGS-scanf.c, CFLAGS-isoc99_vfscanf.c,
5761 CFLAGS-isoc99_vscanf.c, CFLAGS-isoc99_fscanf.c,
5762 CFLAGS-isoc99_scanf.c): Add $(exceptions).
5763 (CFLAGS-scanf15.c): Add various -I paths to prevent the compiler
5764 from using internal headers.
5765 * wcsmbs/Versions (libc): Export __isoc99_wscanf@@GLIBC_2.7,
5766 __isoc99_vwscanf@@GLIBC_2.7, __isoc99_fwscanf@@GLIBC_2.7,
5767 __isoc99_vfwscanf@@GLIBC_2.7, __isoc99_swscanf@@GLIBC_2.7
5768 and __isoc99_vswscanf@@GLIBC_2.7.
5769 * wcsmbs/Makefile (routines): Add isoc99_wscanf, isoc99_vwscanf,
5770 isoc99_fwscanf, isoc99_vfwscanf, isoc99_swscanf and isoc99_vswscanf.
5771 (CFLAGS-isoc99_wscanf.c, CFLAGS-isoc99_fwscanf.c,
5772 CFLAGS-isoc99_vwscanf.c, CFLAGS-isoc99_vfwscanf.c): Add $(exceptions).
5773 (CPPFLAGS): Add -D_IO_MTSAFE_IO if needed.
5774 * stdio-common/isoc99_scanf.c: New file.
5775 * stdio-common/isoc99_vsscanf.c: New file.
5776 * stdio-common/isoc99_vscanf.c: New file.
5777 * stdio-common/isoc99_vfscanf.c: New file.
5778 * stdio-common/isoc99_fscanf.c: New file.
5779 * stdio-common/isoc99_sscanf.c: New file.
5780 * wcsmbs/isoc99_fwscanf.c: New file.
5781 * wcsmbs/isoc99_vswscanf.c: New file.
5782 * wcsmbs/isoc99_swscanf.c: New file.
5783 * wcsmbs/isoc99_wscanf.c: New file.
5784 * wcsmbs/isoc99_vwscanf.c: New file.
5785 * wcsmbs/isoc99_vfwscanf.c: New file.
5786 * libio/libio.h (_IO_FLAGS2_SCANF_STD): Define.
5787 * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): Also
5788 clear _IO_FLAGS2_SCANF_STD bit from _flags2.
5789 * stdio-common/vfscanf.c (_IO_vfscanf_internal): Don't
5790 handle %as, %aS and %a[ if _IO_FLAGS2_SCANF_STD is set in _flags2.
5791 * stdio-common/scanf14.c: New test.
5792 * stdio-common/scanf15.c: New test.
5793 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add
5794 isoc99_scanf, isoc99_fscanf, isoc99_sscanf,
5795 isoc99_vscanf, isoc99_vfscanf, isoc99_vsscanf,
5796 isoc99_wscanf, isoc99_fwscanf, isoc99_swscanf,
5797 isoc99_vwscanf, isoc99_vfwscanf and isoc99_vswscanf.
5798 * sysdeps/ieee754/ldbl-opt/Versions (libc): Export
5799 __nldbl___isoc99_scanf@@GLIBC_2.7,
5800 __nldbl___isoc99_fscanf@@GLIBC_2.7,
5801 __nldbl___isoc99_sscanf@@GLIBC_2.7,
5802 __nldbl___isoc99_vscanf@@GLIBC_2.7,
5803 __nldbl___isoc99_vfscanf@@GLIBC_2.7,
5804 __nldbl___isoc99_vsscanf@@GLIBC_2.7,
5805 __nldbl___isoc99_wscanf@@GLIBC_2.7,
5806 __nldbl___isoc99_fwscanf@@GLIBC_2.7,
5807 __nldbl___isoc99_swscanf@@GLIBC_2.7,
5808 __nldbl___isoc99_vwscanf@@GLIBC_2.7,
5809 __nldbl___isoc99_vfwscanf@@GLIBC_2.7
5810 and __nldbl___isoc99_vswscanf@@GLIBC_2.7.
5811 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__isoc99_scanf,
5812 __isoc99_fscanf, __isoc99_sscanf, __isoc99_vscanf,
5813 __isoc99_vfscanf, __isoc99_vsscanf, __isoc99_wscanf,
5814 __isoc99_fwscanf, __isoc99_swscanf, __isoc99_vwscanf,
5815 __isoc99_vfwscanf, __isoc99_vswscanf): Add NLDBL_DECL.
5816 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
5817 (__nldbl___isoc99_scanf, __nldbl___isoc99_fscanf,
5818 __nldbl___isoc99_sscanf, __nldbl___isoc99_vscanf,
5819 __nldbl___isoc99_vfscanf, __nldbl___isoc99_vsscanf,
5820 __nldbl___isoc99_wscanf, __nldbl___isoc99_fwscanf,
5821 __nldbl___isoc99_swscanf, __nldbl___isoc99_vwscanf,
5822 __nldbl___isoc99_vfwscanf, __nldbl___isoc99_vswscanf): New
5824 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vfscanf.c: New file.
5825 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_swscanf.c: New file.
5826 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vwscanf.c: New file.
5827 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_wscanf.c: New file.
5828 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_scanf.c: New file.
5829 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_sscanf.c: New file.
5830 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vsscanf.c: New file.
5831 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_fwscanf.c: New file.
5832 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vfwscanf.c: New file.
5833 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vswscanf.c: New file.
5834 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vscanf.c: New file.
5835 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_fscanf.c: New file.
5837 * stdio-common/Makefile (tests): Add scanf13.
5839 * stdio-common/vfscanf.c (_IO_vfscanf_internal): Handle
5840 m modifier followed by l.
5841 (STRING_ARG): Add width argument.
5842 (_IO_vfscanf_internal) <case L_('c')>: Handle %mc.
5843 <case L_('C')>: Handle %mlc and %mC.
5844 <case L_('s'), case L_('S'), case L_('[')>: Adjust STRING_ARG
5846 * stdio-common/scanf13.c: New test.
5848 * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): Clear
5849 the _IO_FLAGS2_FORTIFY bit from _flags2 rather than _flags.
5851 2007-09-18 Ulrich Drepper <drepper@redhat.com>
5853 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Correct return value
5854 type and __THROW marker of splice, vmsplice, and tee.
5855 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
5856 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
5857 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
5858 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
5859 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
5860 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
5861 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
5862 * sysdeps/unix/sysv/linux/syscalls.list: Mark splice, vmsplice, and tee
5863 as cancellation points.
5865 2003-11-01 Daniel Jacobowitz <dan@debian.org>
5867 * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_discover_osversion): Don't
5868 parse more than three parts of the version number.
5870 2007-09-15 Ulrich Drepper <drepper@redhat.com>
5872 * stdio-common/vfscanf.c (_IO_vfwscanf): Add support for 'm'
5873 modifier. Patch by Jakub Jelinek.
5875 2007-08-26 Jakub Jelinek <jakub@redhat.com>
5877 * sysdeps/unix/sysv/linux/i386/Makefile (sysdep_routines): Add
5878 call_fallocate in misc subdir.
5879 * sysdeps/unix/sysv/linux/i386/call_fallocate.S: New file.
5880 * sysdeps/unix/sysv/linux/i386/syscalls.list (fallocate64): Remove.
5881 * sysdeps/unix/sysv/linux/i386/posix_fallocate.c: Use __call_fallocate
5882 instead of __fallocate64.
5883 * sysdeps/unix/sysv/linux/i386/posix_fallocate64.c: Likewise.
5885 2007-09-15 Jakub Jelinek <jakub@redhat.com>
5887 * rt/Versions (librt): Export __mq_open_2@@GLIBC_2.7.
5888 * rt/Makefile (headers): Add bits/mqueue2.h.
5889 * rt/mqueue.h: Include bits/mqueue2.h if -D_FORTIFY_SOURCE=2,
5890 optimizing with GCC and __va_arg_pack_len is defined.
5891 * rt/bits/mqueue2.h: New file.
5892 * rt/mq_open.c (__mq_open): Renamed from mq_open.
5893 (mq_open): New strong_alias.
5894 (__mq_open_2): New function.
5895 * sysdeps/unix/sysv/linux/mq_open.c (__mq_open): Renamed from mq_open.
5896 (mq_open): New strong_alias.
5897 (__mq_open_2): New function.
5898 * debug/Versions (libc): Export __fortify_fail@@GLIBC_PRIVATE.
5899 * Versions.def (librt): Add GLIBC_2.7 version.
5900 * debug/fortify_fail.c (__fortify_fail): Add libc_hidden_def.
5901 * include/stdio.h (__fortify_fail): Add libc_hidden_proto.
5903 * misc/sys/cdefs.h (__errordecl, __va_arg_pack_len): Define.
5904 * io/fcntl.h: Include bits/fcntl2.h when __va_arg_pack_len
5905 is defined rather than when not C++.
5906 * io/bits/fcntl2.h (__open_alias, __open64_alias, __openat_alias,
5907 __openat64_alias): New redirects.
5908 (__open_too_many_args, __open_missing_mode, __open64_too_many_args,
5909 __open64_missing_mode, __openat_too_many_args, __openat_missing_mode,
5910 __openat64_too_many_args, __openat64_missing_mode): New __errordecls.
5911 (open, open64, openat, openat64): Rewrite as __extern_always_inline
5912 functions instead of function-like macros.
5914 2007-09-14 H.J. Lu <hongjiu.lu@intel.com>
5916 * sysdeps/i386/i586/memcpy.S (__memcpy_chk): New definition.
5917 * sysdeps/i386/i586/mempcpy.S (__memcpy_chk): New definition.
5918 * sysdeps/i386/i586/memset.S (__memset_chk): New definition.
5920 2007-09-15 Mike Frysinger <vapier@gentoo.org>
5922 * inet/inet_net.c: Reset digit to 0 for inputs starting with "0x".
5923 * inet/tst-network.c (tests): Add edge case tests for "0", "0x", "0x0".
5925 2007-09-14 Mike Frysinger <vapier@gentoo.org>
5927 * inet/tst-network.c: Increment ERRORS for failing tests.
5929 2007-09-07 Jakub Jelinek <jakub@redhat.com>
5931 * misc/sys/cdefs.h (__va_arg_pack): Define for GCC 4.3+.
5932 * misc/bits/syslog.h (syslog): When __va_arg_pack is defined,
5933 implement as __extern_always_inline function.
5934 (vsyslog): Define as __extern_always_inline function unconditionally.
5935 * libio/bits/stdio2.h (sprintf, snprintf, printf, fprintf):
5936 When __va_arg_pack is defined, implement as __extern_always_inline
5938 (vsprintf, vsnprintf, vprintf, vfprintf): Define as
5939 __extern_always_inline functions unconditionally.
5940 * libio/bits/stdio.h (vprintf): Ifdef out the inline when
5941 bits/stdio2.h will be included.
5942 * wcsmbs/bits/wchar2.h (__swprintf_alias): New redirect.
5943 (swprintf, wprintf, fwprintf): When __va_arg_pack is defined,
5944 implement as __extern_always_inline functions.
5945 (vswprintf, vwprintf, vfwprintf): Define as
5946 __extern_always_inline functions unconditionally.
5947 * debug/tst-chk1.c (do_test): Enable remaining tests for C++.
5949 2007-09-03 Jakub Jelinek <jakub@redhat.com>
5951 * misc/sys/cdefs.h (__extern_inline, __extern_always_inline): Only
5952 define in C++ for GCC 4.3+, in C++ always use __gnu_inline__
5954 * include/features.h (__USE_EXTERN_INLINES): Define only when
5955 __extern_inline is defined.
5956 * stdlib/stdlib.h: Include bits/stdlib.h when __extern_always_inline
5957 is defined instead of when not __cplusplus.
5958 * misc/sys/syslog.h: Include bits/syslog.h when __extern_always_inline
5959 is defined instead of when not __cplusplus.
5960 * socket/sys/socket.h: Include bits/socket2.h when
5961 __extern_always_inline is defined instead of when not __cplusplus.
5962 * libio/stdio.h: Include bits/stdio2.h when __extern_always_inline
5963 is defined instead of when not __cplusplus.
5964 * posix/unistd.h: Include bits/unistd.h when __extern_always_inline
5965 is defined instead of when not __cplusplus.
5966 * string/string.h: Include bits/string3.h when __extern_always_inline
5967 is defined instead of when not __cplusplus.
5968 * wcsmbs/wchar.h: Include bits/wchar2.h when __extern_always_inline
5969 is defined instead of when not __cplusplus.
5970 (btowc, wctob): Don't guard the inlines with ifndef __cplusplus.
5971 * io/fcntl.h: Don't include bits/fcntl2.h if __extern_always_inline
5973 * misc/bits/syslog-ldbl.h: Guard *_chk stuff with
5974 defined __extern_always_inline instead of !defined __cplusplus.
5975 * libio/bits/stdio-ldbl.h: Likewise.
5976 * wcsmbs/bits/wchar-ldbl.h: Likewise.
5977 * misc/bits/syslog.h (syslog): Don't define for C++.
5978 (vsyslog): Use __extern_always_inline function for C++ instead of
5980 * libio/bits/stdio.h (__STDIO_INLINE): Define to __extern_inline
5981 whenever that macro is defined.
5982 (vprintf): Don't provide the inline for C++.
5983 (fread_unlocked, fwrite_unlocked): Don't define the macros for C++.
5984 * libio/bits/stdio2.h (sprintf, snprintf, printf, fprintf): Don't
5985 define the macros for C++.
5986 (vsprintf, vsnprintf, vprintf, vfprintf): Define as
5987 __extern_always_inline functions for C++.
5988 * io/sys/stat.h (stat, lstat, fstat, fstatat, mknod, mknodat,
5989 stat64, lstat64, fstat64, fstatat64): Don't define if not
5990 __USE_EXTERN_INLINES.
5991 * wcsmbs/bits/wchar2.h: Fix #error message.
5992 (swprintf, wprintf, fwprintf): Don't define the macros for C++.
5993 (vswprintf, vwprintf, vfwprintf): Define using
5994 __extern_always_inline functions for C++.
5995 * string/bits/string3.h: Don't #undef macros if __cplusplus.
5996 (memcpy, memmove, mempcpy, memset, bcopy, bzero, strcpy, stpcpy,
5997 strncpy, strcat, strncat): Define as __extern_always_inline
5998 functions instead of macros for C++.
5999 * math/bits/cmathcalls.h: Guard __extern_inline routines with
6000 defined __extern_inline.
6001 * sysdeps/alpha/fpu/bits/mathinline.h (__MATH_INLINE): Define
6002 to __extern_inline whenever that macro is defined.
6003 * sysdeps/ia64/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
6004 * sysdeps/i386/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
6005 * sysdeps/i386/i486/bits/string.h (__STRING_INLINE): Likewise.
6006 * sysdeps/s390/bits/string.h (__STRING_INLINE): Likewise.
6007 * sysdeps/s390/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
6008 * sysdeps/powerpc/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
6009 * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
6010 * sysdeps/sparc/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
6011 * sysdeps/unix/sysv/linux/sys/sysmacros.h (gnu_dev_major,
6012 gnu_dev_minor, gnu_dev_makedev): Remove __extern_inline from
6013 prototypes. Only provide __extern_inline routines if
6014 __USE_EXTERN_INLINES.
6015 * debug/Makefile: Add rules to build and run tst-{,lfs}chk{4,5,6}
6017 * debug/tst-chk1.c (do_prepare, do_test): Allow compilation as C++.
6018 For now avoid some *printf tests in C++. Skip all testing
6019 if __USE_FORTIFY_LEVEL is defined, but __extern_always_inline macro
6021 * debug/tst-chk4.cc: New file.
6022 * debug/tst-chk5.cc: New file.
6023 * debug/tst-chk6.cc: New file.
6024 * debug/tst-lfschk4.cc: New file.
6025 * debug/tst-lfschk5.cc: New file.
6026 * debug/tst-lfschk6.cc: New file.
6027 * include/wchar.h (__vfwprintf_chk, __vswprintf_chk): Avoid
6029 * include/stdio.h (__sprintf_chk, __snprintf_chk, __vsprintf_chk,
6030 __vsnprintf_chk, __printf_chk, __fprintf_chk, __vprintf_chk,
6031 __vfprintf_chk, __fgets_unlocked_chk, __fgets_chk): Likewise.
6033 2007-09-13 Ulrich Drepper <drepper@redhat.com>
6035 * po/cs.po: Update from translation team.
6037 2007-09-11 Roland McGrath <roland@redhat.com>
6039 * posix/Makefile ($(objpfx)getconf.speclist): Make it empty if cross
6042 2007-09-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
6044 * sysdeps/mach/hurd/bits/ioctls.h (TAB3): New macro.
6046 2007-09-05 Roland McGrath <roland@redhat.com>
6048 * manual/signal.texi (Signaling Another Process): Typo fix.
6049 From Karl Berry <karl@freefriends.org>.
6051 2007-08-29 Ulrich Drepper <drepper@redhat.com>
6053 * sysdeps/unix/sysv/linux/check_pf.c (IFA_F_OPTIMISTIC): Define to
6054 zero if not defined.
6055 (make_request): Recognize optimistic addresses and treat them like
6056 deprecated addresses.
6057 Reported by Neil Horman <nhorman@redhat.com>.
6059 2007-08-28 Ulrich Drepper <drepper@redhat.com>
6061 * nscd/connections.c (send_ro_fd): Also transfer file size.
6062 * nscd/nscd_helper.c (get_mapping): If nscd also transfers the
6063 file size don't call fstat.
6065 * nscd/nscd_helper.c (get_mapping): Avoid the pread call, just go
6066 ahead and map the file. This should always be correct and we can
6067 catch problems later.
6069 2007-08-28 Jakub Jelinek <jakub@redhat.com>
6071 * libio/bits/stdio2.h (__fread_chk, __fread_unlocked_chk): New
6073 (__fread_alias, __fread_unlocked_alias): New aliases.
6074 (fread): New extern inline.
6075 (fread_unlocked): Likewise. Undef macro before definition of
6076 the inline function.
6077 * debug/Makefile (routines): Add fread_chk and fread_u_chk.
6078 (CFLAGS-fread_chk.c, CFLAGS-fread_u_chk.c): Add.
6079 * debug/Versions (libc): Export __fread_chk@@GLIBC_2.7
6080 and __fread_unlocked_chk@@GLIBC_2.7.
6081 * debug/fread_chk.c: New file.
6082 * debug/fread_u_chk.c: New file.
6083 * debug/tst-chk1.c (do_test): Add fread and fread_unlocked tests.
6085 2007-08-27 Jakub Jelinek <jakub@redhat.com>
6087 * sysdeps/unix/sysv/linux/syscalls.list
6088 (personality): Change caller to EXTRA.
6090 2007-08-25 Ulrich Drepper <drepper@redhat.com>
6092 * iconvdata/iso-2022-kr.c (BODY): Fake initialization of array buf
6094 * iconvdata/iso-2022-cn.c (BODY): Likewise.
6096 * locale/programs/ld-collate.c (collate_output): Avoid warning if
6099 * Makerules: Use -p option with mkdir.
6101 * sunrpc/key_prot.c (xdr_unixcred): Work around gcc alias warning.
6102 * nis/nis_xdr.c (_xdr_nis_server): Likewise.
6103 (_xdr_directory_obj): Likewise.
6104 (xdr_entry_obj): Likewise.
6105 (xdr_group_obj): Likewise.
6106 (xdr_link_obj): Likewise.
6107 (xdr_table_obj): Likewise.
6108 (_xdr_nis_result): Likewise.
6109 (_xdr_ns_request): Likewise.
6110 (_xdr_ib_request): Likewise.
6111 (_xdr_nis_taglist): Likewise.
6112 (xdr_cback_data): Likewise.
6113 * nis/yp_xdr.c (xdr_ypmaplist): Likewise.
6114 (xdr_ypresp_maplist): Likewise.
6116 * stdio-common/Makefile: Avoid format string warning for tst-sprint.
6118 * posix/regex_internal.h: Prevent some declarations and definitions
6119 to be seen when used in tests.
6121 * posix/tst-rfc3484.c (__idna_to_unicode_lzlz): Initialize *OUTPUT.
6122 * posix/tst-rfc3484-2.c (__idna_to_unicode_lzlz): Likewise.
6124 * debug/Makefile: Disable format checking when compiling tst-chk?.c.
6126 * config.make.in (datarootdir): Add to shut up configure.
6128 * sysdeps/x86_64/cacheinfo.c (handle_amd): Fix computation of
6129 associativity for fully-associative caches.
6131 * sysdeps/x86_64/cacheinfo.c (handle_amd): Handle L3 cache
6132 requests. Fill on more associativity values for L2.
6133 Patch mostly by Evandro Menezes.
6135 2007-08-24 Ulrich Drepper <drepper@redhat.com>
6137 * sysdeps/unix/sysv/linux/x86_64/init-first.c
6138 (_libc_vdso_platform_setup): Avoid using exported variable by using
6141 * resolv/arpa/nameser.h (NS_OPT_DNSSEC_OK): Define.
6143 * sysdeps/unix/sysv/linux/i386/syscalls.list: No reason to mark
6144 fallocate64 as EXTRA. It is not referenced if the symbol isn't
6147 2007-08-23 Ulrich Drepper <drepper@redhat.com>
6149 * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Correctly
6150 align stack for call if pltexit is to be used.
6153 * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Correctly
6154 align for function call in case pltexit has to be called later.
6156 * sysdeps/i386/dl-trampoline.S (_dl_runtime_resolve): Avoid
6157 implicit atomic operation when storing function pointer.
6158 (_dl_runtime_profile): Likewise.
6160 2007-08-17 Jakub Jelinek <jakub@redhat.com>
6162 * nis/nis_table.c (nis_list): Don't fail if __follow_path returned
6165 2007-08-21 Ulrich Drepper <drepper@redhat.com>
6168 * string/strtok.c: Fix typo in comment.
6171 * debug/segfault.c: Fix typos in comments.
6174 * stdio-common/tempnam.c: Fix comment, it is not checked that
6175 TMPDIR points to a writable directory.
6178 * resolv/res_send.c (__libc_res_nsend): Initialize all of the
6179 memory allocated for the name server address.
6182 * nscd/connections.c (handle_request): Using sendfile always
6183 requires that mmap is used for the database.
6184 Patch by Petr Baudis <pasky@suse.cz>.
6187 * nscd/hstcache.c (cache_addhst): When reloading an entry which
6188 suddenly has two or more addresses, ignore it and remove the old
6192 * resolv/res_hconf.c: Prepare for compiling outside libc.
6193 * nscd/res_hconf.c: New file.
6194 * nscd/Makefile (nscd-modules): Add res_hconf. Add rules to build
6196 * nscd/gethstbynm2_r.c (NEED__RES_HCONF): Define.
6197 * nscd/gethstbyad_r.c (NEED__RES_HCONF): Likewise.
6199 * nscd/hstcache.c (cache_addhst): Minimal optimization.
6202 * debug/pcprofiledump.c: Turn on internationalization by calling
6203 setlocale. Patch mostly by Benno Schulenberg.
6206 * iconv/gconv.c (__gconv): If flush was successful, clear rest of
6208 * iconvdata/Makefile: Add rules to build and run bug-iconv5.
6209 * iconvdata/bug-iconv5.c: New file.
6211 2007-08-04 Carlos O'Donell <carlos@systemhalted.org>
6214 * elf/elf.h: Define R_PARISC_PLABEL21L, R_PARISC_PLABEL14R,
6215 R_PARISC_GNU_VTENTRY, R_PARISC_GNU_VTINHERIT, R_PARISC_TLS_GD21L,
6216 R_PARISC_TLS_GD14R, R_PARISC_TLS_GDCALL, R_PARISC_TLS_LDM21L,
6217 R_PARISC_TLS_LDM14R, R_PARISC_TLS_LDMCALL, R_PARISC_TLS_LDO21L,
6218 R_PARISC_TLS_LDO14R, R_PARISC_TLS_DTPMOD32, R_PARISC_TLS_DTPMOD64,
6219 R_PARISC_TLS_DTPOFF32, R_PARISC_TLS_DTPOFF64, R_PARISC_TLS_LE21L,
6220 R_PARISC_TLS_LE14R, R_PARISC_TLS_IE21L, R_PARISC_TLS_IE14R,
6221 R_PARISC_TLS_TPREL32, R_PARISC_TLS_TPREL64.
6223 2007-08-21 Ulrich Drepper <drepper@redhat.com>
6226 * elf/do-lookup.h (do_lookup_x): Minimal improvement in hash
6227 lookup loop. Suggested by John Reiser.
6229 2007-08-21 Jakub Jelinek <jakub@redhat.com>
6231 * sysdeps/unix/sysv/linux/alpha/sysdep.h: Include tls.h.
6233 2007-08-20 Ulrich Drepper <drepper@redhat.com>
6235 * csu/libc-start.c: Don't handle VDSO_SETUP here.
6236 * sysdeps/unix/sysv/linux/init-first.c: Handle it here instead.
6237 * sysdeps/unix/sysv/linux/x86_64/libc-start.c: Renamed to...
6238 * sysdeps/unix/sysv/linux/x86_64/init-first.c: ...this. New file.
6239 * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Move VDSO_SETUP code
6241 * sysdeps/unix/sysv/linux/x86_64/init-first.c: ...here. New file.
6243 2007-08-18 Ulrich Drepper <drepper@redhat.com>
6245 * po/nl.po: Update from translation team.
6247 2007-08-16 Andreas Jaeger <aj@suse.de>
6249 * locale/localeinfo.h: Make _nl_category_name_idxs extern.
6250 Reported by Peter Festner <peter.festner@ewetel.net>.
6252 2007-08-17 Jakub Jelinek <jakub@redhat.com>
6254 * login/tst-grantpt.c (test_einval): Add 3rd argument to open.
6256 2007-08-16 Jakub Jelinek <jakub@redhat.com>
6258 * elf/Makefile ($(objpfx)ld.so): Use readelf -s and awk instead of nm -u
6259 to check for undefined symbols.
6261 * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone):
6262 If the syscall fails, set errno to the actual returned error number
6264 * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__clone): If
6265 arguments are incorrect, set errno to EINVAL, if the syscall
6266 fails, set errno to the actual returned error number.
6268 * stdlib/bits/stdlib-ldbl.h (__strtold_internal): Remove.
6269 * wcsmbs/bits/wchar-ldbl.h (__wcstold_internal): Remove.
6271 * sysdeps/sparc/sparc32/sparcv9b/memcpy.S: Moved to...
6272 * sysdeps/sparc/sparc32/sparcv9/sparcv9b/memcpy.S: ... here. New
6274 (ASI_PNF, ASI_BLK_P): Don't define.
6275 * sysdeps/sparc/sparc32/sparcv9v/memcpy.S: Moved to...
6276 * sysdeps/sparc/sparc32/sparcv9/sparcv9v/memcpy.S: ... here. New
6278 * sysdeps/sparc/sparc32/sparcv9v/memset.S: Moved to...
6279 * sysdeps/sparc/sparc32/sparcv9/sparcv9v/memset.S: ... here. New
6282 2007-08-15 Jakub Jelinek <jakub@redhat.com>
6284 * sysdeps/sparc/fpu/fraiseexcpt.c (__feraiseexcept): Fix raising
6285 FE_UNDERFLOW on Niagara CPUs.
6287 * sysdeps/sparc/fpu/feholdexcpt.c (feholdexcept): Clear all
6290 2007-08-14 Jakub Jelinek <jakub@redhat.com>
6292 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_runtime_setup): No
6293 need to check GLRO(dl_hwcap) & HWCAP_SPARC_FLUSH on sparcv9.
6294 (sparc_fixup_plt): Add do_flush argument instead of figuring whether
6295 flush should be used or not inside of the function.
6296 (elf_machine_fixup_plt, elf_machine_rela): Adjust caller.
6298 * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone,
6299 __thread_start): Use HIDDEN_JUMPTARGET.
6300 * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__clone,
6301 __thread_start): Likewise.
6302 * sysdeps/unix/sysv/linux/sparc/sysdep.h (JUMPTARGET): Define.
6304 * sysdeps/ieee754/ldbl-64-128/strtold_l.c (__STRTOF): Declare.
6305 Add libc_hidden_proto.
6306 (STRTOF): Add libc_hidden_proto.
6307 (___new_strtold_l, ___new_wcstold_l): New weak aliases.
6308 (strtold_l, wcstold_l): Use them as second argument for
6311 2007-08-14 Ulrich Drepper <drepper@redhat.com>
6313 * elf/dl-misc.c: Undo last change. The kernel won't allow it.
6315 2007-08-13 Kaz Kojima <kkojima@rr.iij4u.or.jp>
6317 * stdlib/strtold_l.c: Include wchar.h if needed. Add libc_hidden_def.
6319 2007-08-14 Ulrich Drepper <drepper@redhat.com>
6321 * po/bg.po: New file. From the translation team.
6323 2007-08-13 Jakub Jelinek <jakub@redhat.com>
6325 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PSELECT,
6326 __ASSUME_PPOLL, __ASSUME_ATFCTS, __ASSUME_SET_ROBUST_LIST,
6327 __ASSUME_UTIMENSAT, __ASSUME_FALLOCATE): Update per-arch conditions
6328 when each feature was introduced.
6330 * sysdeps/unix/sysv/linux/dl-vdso.c: Don't include dl-hash.h.
6331 * sysdeps/unix/sysv/linux/dl-vdso.h: Don't include dl-hash.h if NDEBUG.
6332 (CHECK_HASH): New macro.
6333 (PREPARE_VERSION): Use it.
6335 * sysdeps/unix/sysv/linux/pselect.c (__generic_pselect): Only provide
6336 prototype if not __ASSUME_PSELECT.
6337 * sysdeps/unix/sysv/linux/ppoll.c (__generic_ppoll): Only provide
6338 prototype if not __ASSUME_PPOLL.
6340 * sysdeps/unix/sysv/linux/dl-osinfo.h (ROUND): #undef after use.
6342 * sysdeps/unix/clock_settime.c (freq, __pthread_clock_settime,
6343 hp_timing_settime): Don't define or declare if HANDLED_CPUTIME
6346 2007-08-13 Ulrich Drepper <drepper@redhat.com>
6348 * sysdeps/unix/sysv/linux/x86_64/libc-start.c
6349 (_libc_vdso_platform_setup): If vDSO is not available point
6350 __vdso_gettimeofday to the vsyscall.
6351 * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S [SHARED]: Use
6352 __vdso_gettimeofday instead of vsyscall.
6354 2007-08-13 Jakub Jelinek <jakub@redhat.com>
6356 * nscd/servicescache.c: Include kernel-features.h.
6357 * nscd/gai.c: Likewise.
6358 * sysdeps/unix/sysv/linux/statfs64.c: Likewise.
6359 * sysdeps/unix/sysv/linux/fstatfs64.c: Likewise.
6360 * sysdeps/unix/sysv/linux/fxstatat.c: Likewise.
6361 * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S: Likewise.
6362 * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S: Likewise.
6363 * sysdeps/unix/sysv/linux/xstatconv.c: Likewise.
6364 * sysdeps/unix/sysv/linux/if_index.c: Likewise.
6365 * sysdeps/unix/sysv/linux/sparc/sparc64/xstat.c: Likewise.
6366 * sysdeps/unix/sysv/linux/ifaddrs.c: Likewise.
6368 2007-08-12 Ulrich Drepper <drepper@redhat.com>
6370 * elf/dl-dst.h: No need for _dl_dst_count, _dl_dst_substitute,
6371 and _dl_get_origin defines anymore.
6373 * sysdeps/unix/sysv/linux/clock_gettime.c (maybe_syscall_gettime_cpu):
6374 Build fix for systems which might lack POSIX timer support.
6376 * sysdeps/unix/sysv/linux/x86_64/libc-start.c
6377 (_libc_vdso_platform_setup): Mangle function pointers before storing
6379 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_VSYSCALL):
6380 Demangle vdso pointer before use.
6381 (INTERNAL_VSYSCALL): Likewise.
6383 * elf/cache.c (primes): Mark as const.
6384 Noted by Roland McGrath.
6386 2007-08-01 Andreas Jaeger <aj@suse.de>
6387 Jakub Jelinek <jakub@redhat.com>
6389 * elf/ldconfig.c (opt_ignore_aux_cache): Add new option.
6390 (options): Add option.
6391 (parse_opt): Handle option.
6392 (manual_link): Adjust process_file caller. Call implicit_soname.
6393 (search_dir): Formatting. Use and populate auxiliary cache.
6394 (main): Load and save auxiliary cache.
6395 * elf/readlib.c (process_file): Add stat_buf argument. Pass struct
6396 stat64 from fstat64 to caller.
6397 (implicit_soname): New function.
6398 * elf/readelflib.c (process_elf_file): If DT_SONAME is not present,
6399 leave *soname as NULL.
6400 * elf/cache.c: Include libgen.h.
6401 (print_entry, print_cache, compare, save_cache, add_to_cache):
6402 Formatting and cleanups.
6403 (aux_cache_entry_id, aux_cache_entry, aux_cache_file_entry,
6404 aux_cache_file): New structures.
6405 (AUX_CACHEMAGIC): Define.
6406 (primes): New array.
6407 (aux_hash_size, aux_hash): New variables.
6408 (aux_cache_entry_id_hash, nextprime, init_aux_cache,
6409 search_aux_cache, insert_to_aux_cache, add_to_aux_cache,
6410 load_aux_cache, save_aux_cache): New functions.
6411 * sysdeps/generic/ldconfig.h (_PATH_LDCONFIG_AUX_CACHE): Define.
6412 (init_aux_cache, search_aux_cache, add_to_aux_cache,
6413 load_aux_cache, save_aux_cache, implicit_soname): New prototypes.
6414 (process_file): Adjust prototype.
6416 2007-08-12 Jakub Jelinek <jakub@redhat.com>
6418 * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h: Include stddef.h
6421 2007-08-12 Ulrich Drepper <drepper@redhat.com>
6423 * sysdeps/unix/sysv/linux/dl-vdso.c (_dl_vdso_vsym): Expect
6424 r_found_version structure as second parameter.
6425 * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION): Define.
6426 (_dl_vdso_vsym): Change type of second parameter accordingly.
6427 * sysdeps/unix/sysv/linux/x86-64/libc-start.c
6428 (_libc_vdso_platform_setup): Adjust.
6429 * sysdeps/unix/sysv/linux/powerpc/libc-start.c
6430 (_libc_vdso_platform_setup): Likewise.
6432 * sysdeps/unix/sysv/linux/powerpc/dl-vdso.c: Move to...
6433 * sysdeps/unix/sysv/linux/dl-vdso.c: ...here.
6434 * sysdeps/unix/sysv/linux/powerpc/dl-vdso.h: Move to...
6435 * sysdeps/unix/sysv/linux/dl-vdso.h: ...here.
6436 * csu/libc-start.c: Pretty printing.
6437 Use VDSO_SETUP if defined.
6438 * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Define VDSO_SETUP
6439 and let generic code call into _libc_vdso_platform_setup.
6440 * sysdeps/unix/sysv/linux/x86_64/libc-start.c: New file.
6441 * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: New file.
6442 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Pretty printing.
6443 Define INLINE_VSYSCALL and INTERNAL_VSYSCALL.
6444 * sysdeps/unix/sysv/linux/x86_64/Versions: Export __vdso_clock_gettime
6446 * sysdeps/unix/sysv/linux/x86_64/Makefile [subdir=elf]
6447 (sysdep_rountines): Add dl-vdso.
6449 * sysdeps/unix/sysv/linux/powerpc/Makefile: Use sysdep_routines instead
6452 * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Add
6453 attribute_hidden to __vdso_gettimeofday prototype.
6455 2007-08-12 Roland McGrath <roland@redhat.com>
6457 * manual/stdio.texi (Variable Arguments Output): Fix xref to gcc manual.
6458 From: Karl Berry <karl@freefriends.org>.
6460 2007-08-11 Ulrich Drepper <drepper@redhat.com>
6462 * elf/dl-misc.c (_dl_sysdep_read_whole_file): We really don't need
6463 an atime update for the files we read.
6465 2007-08-10 Ulrich Drepper <drepper@redhat.com>
6467 * shadow/lckpwdf.c (__lckpwdf): Use O_CLOEXEC if possible.
6469 * nscd/connections.c: Use O_CLOEXEC if possible. Use mkostemp
6472 * misc/Makefile (routines): Add mkostemp and mkostemp64.
6473 * misc/Versions: Export mkostemp and mkostemp64 for GLIBC_2.7.
6474 * misc/mkostemp.c: New file.
6475 * misc/mkostemp64.c: New file.
6476 * stdlib/stdlib.h: Declare the new functions.
6477 * sysdeps/posix/tempname.c: Add new parameter which is added to
6478 the flags for open. Remove __GT_BIGFILE handling.
6479 * stdio-common/tempname.c: Likewise.
6480 * include/stdio.h: Adjust __gen_tempname prototype.
6481 Renumber __GT_* constants.
6482 * libio/oldtmpfile.c: Adjust for __gen_tempname interface change.
6483 * misc/mkdtemp.c: Likewise.
6484 * misc/mkstemp.c: Likewise.
6485 * misc/mkstemp64.c: Likewise.
6486 * misc/mktemp.c: Likewise.
6487 * stdio-common/tempnam.c: Likewise.
6488 * stdio-common/tmpfile.c: Likewise.
6489 * stdio-common/tmpfile64.c: Likewise.
6490 * stdio-common/tmpnam.c: Likewise.
6491 * stdio-common/tmpnam_r.c: Likewise.
6493 2007-08-10 Roland McGrath <roland@frob.com>
6495 * sysdeps/mach/hurd/bits/ioctls.h (NLDLY, TABDLY, BSDLY, VTDLY):
6497 (NLDELAY, CRDELAY, TBDELAY, BSDELAY, VTDELAY): Define to those.
6498 Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
6500 2007-08-10 Ulrich Drepper <drepper@redhat.com>
6502 * nss/nss_files/files-XXX.c (internal_setent): Use O_CLOEXEC if
6504 * nss/nss_files/files-alias.c (internal_setent): Likewise.
6505 * nss/Makefile (libnss_files-routines): Add files-have_o_cloexec.
6506 * nss/nss_files/files-have_o_cloexec.c: New file.
6508 * sysdeps/unix/sysv/linux/shm_open.c (shm_open): Use O_CLOEXEC if
6511 2007-08-10 Jakub Jelinek <jakub@redhat.com>
6513 * sysdeps/ieee754/ldbl-128ibm/strtold_l.c (___new_strtold_l,
6514 ___new_wcstold_l): New weak aliases.
6515 (strtold_l, wcstold_l): Use them as second argument for
6518 2007-08-09 Ulrich Drepper <drepper@redhat.com>
6520 * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Use correct
6521 register in test for error.
6523 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_CLOEXEC): Define.
6524 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (O_CLOEXEC): Likewise.
6526 * po/sv.po: Update from translation team.
6528 2007-08-06 Roland McGrath <roland@redhat.com>
6530 * include/stdlib.h: Add libc_hidden_proto for strto*, __strto*_l.
6531 Remove __strto*_l inlines.
6532 * include/wchar.h: Add libc_hidden_proto for wcsto*, __wcsto*_l.
6533 * stdlib/strtod.c: Add libc_hidden_def.
6534 * stdlib/strtod_l.c: Likewise.
6535 * stdlib/strtold.c [__LONG_DOUBLE_MATH_OPTIONAL]: Add libc_hidden_proto
6536 for __new_strtold and __new_wcstold.
6537 * sysdeps/ieee754/ldbl-128ibm/strtold_l.c: Add libc_hidden_proto for
6539 * stdlib/strtol.c: Add libc_hidden_def.
6540 * stdlib/strtol_l.c: Likewise.
6541 * sysdeps/wordsize-64/strtol.c: Add libc_hidden_ver for strtoll and
6544 * scripts/data/localplt-powerpc-linux-gnu.data: New file.
6546 * scripts/data/localplt-x86_64-linux-gnu.data: File renamed to ...
6547 * scripts/data/localplt-generic.data: ... here.
6548 * elf/Makefile (check-data): Get generic file if no other.
6549 ($(objpfx)check-localplt.out): Make target unconditional.
6551 * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_discover_osversion):
6554 2007-08-05 Ulrich Drepper <drepper@redhat.com>
6556 * po/zh_CN.po: Updated translation from translation team.
6558 2007-08-05 Jakub Jelinek <jakub@redhat.com>
6560 * sysdeps/unix/sysv/linux/powerpc/powerpc32/socket.S (__socket):
6561 Don't use CGOTSETUP and CGOTRESTORE macros.
6563 2007-08-04 Roland McGrath <roland@redhat.com>
6565 * posix/Makefile ($(objpfx)getconf.speclist): Fix typo.
6567 2007-08-04 Jakub Jelinek <jakub@redhat.com>
6569 * io/bits/fcntl2.h (open, open64, openat, openat64): Add
6570 __extension__ around the whole statement expression.
6572 2007-08-04 Ulrich Drepper <drepper@redhat.com>
6574 * sysdeps/unix/opendir.c (__alloc_dir): Correct order of DIR
6575 elements during initialization.
6577 * po/pl.po: Updated translation from translation team.
6578 * po/tr.po: Likewise.
6579 * po/nl.po: Likewise.
6581 2007-08-03 Ulrich Drepper <drepper@redhat.com>
6583 * rt/aio.h: Add __nonnull attributes.
6585 2007-08-03 Jakub Jelinek <jakub@redhat.com>
6587 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Properly handle -0.
6588 * stdlib/Makefile (tests): Add tst-strtod5.
6589 (tst-strtod5-ENV): New.
6590 * stdlib/tst-strtod5.c: New file.
6592 * intl/dcigettext.c (_nl_find_msg): Free encoding if __gconv_open
6594 * intl/finddomain.c (_nl_find_domain): Free normalized_codeset
6597 * elf/dl-load.c (decompose_rpath): Free copy if result couldn't be
6600 2007-08-03 Jakub Jelinek <jakub@redhat.com>
6602 * rt/mqueue.h (mq_timedreceive, mq_timedsend): Fix nonnull argument
6605 2007-08-02 Ulrich Drepper <drepper@redhat.com>
6607 * io/Makefile (aux): Add have_o_cloexec.
6608 * include/fcntl.h: Declare __have_o_cloexec.
6609 * io/have_o_cloexec.c: New file.
6610 * sysdeps/unix/opendir.c (__opendir): Use O_CLOEXEC is available.
6611 (__alloc_dir): If O_CLOEXEC has been used, don't duplicate the
6612 fcntl call if not necessary.
6613 * login/utmp_file.c (setutent_file): Use __have_o_cloexec instead
6616 * sysdeps/unix/opendir.c (__alloc_dir): Don't initialize ->data.
6617 Avoid memset, add explicit initialization.
6618 * sysdeps/unix/dirstream.h (struct __dirstream): Move data elemtn
6619 to the end and change into zero-sized array.
6620 Move lock member to fill a hole on 64-bit platforms.
6622 * stdlib/stdlib.h: Remove __strto*_internal prototypes and strto*
6624 * include/stdlib.h: Add __strto*_internal prototypes here.
6625 * wcsmbs/wchar.h: Remove __wcsto*_internal prototypes and wcsto*
6627 * include/wchar.h: Add __wcsto*_internal prototypes.
6628 * sysdeps/generic/inttypes.h: No need to protect the declaration
6629 of the __strto*_internal and __wcsto*_internal members here.
6631 * rt/mqueue.h: Change const to __const and add nonnull attributes.
6633 2007-08-02 Roland McGrath <roland@redhat.com>
6635 * posix/Makefile ($(inst_libexecdir)/getconf): Make hard links to
6636 $(inst_bindir)/getconf if possible.
6638 * posix/Makefile ($(objpfx)getconf.speclist): New target.
6639 (generated): Add it.
6640 ($(inst_libexecdir)/getconf): Use it.
6642 2007-08-01 Ulrich Drepper <drepper@redhat.com>
6644 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Using
6645 /proc is faster and sufficient. /sys is still needed for
6648 2007-08-01 Jakub Jelinek <jakub@redhat.com>
6650 * sysdeps/unix/sysv/linux/i386/syscalls.list (fallocate): Add fallocate
6651 syscall as __fallocate64.
6652 * sysdeps/unix/sysv/linux/i386/posix_fallocate.c: New file.
6653 * sysdeps/unix/sysv/linux/i386/posix_fallocate64.c: New file.
6655 2007-07-30 Jakub Jelinek <jakub@redhat.com>
6657 * stdlib/tst-strtod2.c (do_test): Use %tu in fmt string for ptrdiff_t
6660 * stdio-common/tst-fmemopen2.c (do_test): Avoid fmt string warning
6661 if off_t is different rank from size_t.
6663 * sysdeps/generic/unwind-dw2.c (extract_cie_info, execute_cfa_program,
6664 uw_frame_state_for): Avoid type punning warnings.
6665 * sysdeps/generic/unwind-dw2-fde-glibc.c
6666 (_Unwind_IteratePhdrCallback): Likewise.
6667 * sysdeps/generic/unwind-dw2-fde.c (_Unwind_Find_FDE): Likewise.
6668 (binary_search_single_encoding_fdes, binary_search_mixed_encoding_fdes,
6669 get_cie_encoding, linear_search_fdes): Don't mix char and unsigned char
6672 2007-07-31 Ulrich Drepper <drepper@redhat.com>
6674 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs_conf): Count
6675 total processors using sysfs.
6676 (__get_nprocs): Use sysfs to determine which processors are online.
6678 2007-07-31 Jakub Jelinek <jakub@redhat.com>
6680 * sysdeps/unix/sysv/linux/posix_fallocate.c (posix_fallocate): Fix
6681 syscall arguments count.
6683 * stdio-common/tfformat.c (sprint_doubles): Add 12 new tests.
6685 2007-07-30 Roland McGrath <roland@redhat.com>
6687 * manual/libc.texinfo: Update copyrights, formatting magic, and
6688 @dircategory. From Karl Berry <karl@freefriends.org>.
6690 2007-07-29 Ulrich Drepper <drepper@redhat.com>
6693 * io/Makefile (headers): Add bits/fcntl2.h.
6695 * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_ZERO_S): Optimize
6697 (__CPU_EQUAL_S): Likewise.
6699 * posix/Makefile (routines): Add sched_cpualloc and sched_cpufree.
6700 (tests): Add tst-cpuset.
6701 * posix/sched_cpualloc.c: New file.
6702 * posix/sched_cpufree.c: New file.
6703 * posix/tst-cpuset.c: New file.
6704 * posix/Versions: Export __sched_cpualloc and __sched_cpufree for
6706 * sysdeps/unix/sysv/linux/bits/sched.h: Define __CPU_*_S macros.
6707 * posix/sched.h: Define old CPU_* macros in temers of __CPU_*_S
6708 macros. Define CPU_*_S macros.
6710 2007-07-28 Ulrich Drepper <drepper@redhat.com>
6712 * posix/getconf.c (vars): Add missing _SC_LEVEL4_CACHE_LINESIZE
6716 * stdio-common/printf_fp.c (___printf_fp): Fix special case of
6717 #.0g and value rounded to 1.0.
6718 * stdio-common/tfformat.c (sprint_doubles): Add two new tests.
6720 2007-07-26 Jakub Jelinek <jakub@redhat.com>
6722 * locale/programs/ld-monetary.c (monetary_finish): Avoid range check
6723 for int_frac_digits and frac_digits.
6725 * login/logout.c (logout): Avoid aliasing violation.
6726 * login/logwtmp.c (logwtmp): Likewise.
6728 * libio/genops.c (_IO_un_link): Avoid aliasing violation.
6730 * nscd/selinux.c (preserve_capabilities): Initialize new_caps
6732 * iconv/gconv_open.c (__gconv_open): Initialize ptr to avoid
6734 * nis/nis_subr.c (nis_getnames): Initialize saveptr to avoid
6736 * resolv/inet_ntop.c (inet_ntop6): Initialize best.len and cur.len
6739 * nss/nsswitch.c (__nss_lookup_function): Don't cast &ni->known to
6741 * nss/nsswitch.h (service_user): Use void * type for KNOWN field.
6743 * nss/nss_files/files-hosts.c (LINE_PARSER): Cast host_addr to
6744 char * to avoid warning.
6745 * nis/nss_nis/nis-hosts.c (LINE_PARSER): Likewise.
6747 * timezone/Makefile (CFLAGS-zdump.c): Add -fwrapv.
6749 * locale/programs/ld-ctype.c (ctype_finish, set_class_defaults,
6750 allocate_arrays): Cast second argument to charmap_find_symbol
6751 to char * to avoid warnings.
6753 * locale/programs/repertoire.c (repertoire_new_char): Change
6754 from_nr, to_nr and cnt to unsigned long, adjust printf format
6757 * locale/programs/ld-collate.c (insert_value, handle_ellipsis):
6758 Cast second argument to new_element to char * to avoid warnings.
6760 * locale/weightwc.h (findidx): Cast &extra[-i] to const int32_t *.
6762 * intl/gettextP.h (struct loaded_domain): Change plural to const
6763 struct expression *.
6764 * intl/plural-eval.c (plural_eval): Change first argument to
6765 const struct expression *.
6766 * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Change first
6767 argument to const struct expression **.
6768 * intl/plural-exp.h (EXTRACT_PLURAL_EXPRESSION, plural_eval): Adjust
6770 * intl/loadmsgcat (_nl_unload_domain): Cast away const
6771 in call to __gettext_free_exp.
6773 * posix/fnmatch.c (fnmatch): Rearrange code to avoid maybe
6774 unitialized wstring/wpattern var warnings.
6776 * posix/runtests.c (struct a_test): Make data field const char *.
6778 * stdio-common/tst-sprintf2.c (main): Don't declere u, v and buf
6779 vars if not LDBL_MANT_DIG >= 106.
6781 * stdio-common/Makefile (CFLAGS-vfwprintf.c): Add -Wno-unitialized.
6783 * stdio-common/vfprintf.c (vfprintf): Cast first arugment to
6784 __find_specmb to avoid warning.
6786 * rt/tst-mqueue1.c (do_one_test): Add casts to avoid warnings.
6788 * debug/test-strcpy_chk.c (do_tests, do_random_tests): Add casts
6791 * sysdeps/ieee754/ldbl-96/s_roundl.c (huge): Add L suffix to
6794 * sysdeps/unix/clock_gettime.c (clock_gettime): Only define
6795 tv var when it will be actually used.
6797 * sunrpc/rpc_cmsg.c (xdr_callmsg): Cast IXDR_PUT_* to void
6800 * iconvdata/gbk.c (BODY): Make buf and cp char instead of unsigned
6801 char array resp. pointer.
6802 * iconvdata/iso-2022-kr.c (BODY): Make buf unsigned char instead of
6804 * iconvdata/cns11643.h (cns11643_to_ucs4): Change first argument
6805 to const unsigned char **.
6806 (ucs4_to_cns11643): Change second argument to unsigned char *.
6807 * iconvdata/euc-tw.c (BODY): Change endp type to
6808 const unsigned char *.
6809 * iconvdata/iso-ir-165.h (ucs4_to_isoir165): Change second argument
6811 * iconvdata/ibm1008_420.c (LOOP_NEED_FLAGS): Don't define.
6812 * iconvdata/iso-2022-cn.c (BODY): Change buf to unsigned char array.
6813 * iconvdata/iso-2022-cn-ext.c (BODY): Change buf, tmpbuf, tmp
6814 types to unsigned char pointers/arrays instead of char.
6815 * iconvdata/jis0201.h (ucs4_to_jisx0201): Change second argument
6817 * iconvdata/jis0208.h (ucs4_to_jisx0208): Likewise.
6818 * iconvdata/jis0212.h: Include assert.h.
6819 (ucs4_to_jisx0212): Change second argument to unsigned char *.
6820 assert that if cp[0] is not '\0', cp[1] is not '\0' either instead
6821 of trying to handle that.
6822 * iconvdata/euc-kr.c (euckr_from_ucs4): Initialize also cp[1] to
6824 * iconvdata/euc-jp-ms.c (from_ucs4_lat1, from_ucs4_greek,
6825 from_ucs4_cjk, from_ucs4_cjkcpt, from_ucs4_extra): Change type to
6826 two dimensional const unsigned char arrays.
6827 (BODY): Cast "" to (const unsigned char *) for assignment to cp.
6828 Initialize endp to inptr to shut up a warning.
6830 2007-07-20 Jakub Jelinek <jakub@redhat.com>
6833 * time/strptime_l.c (__strptime_internal): Silently ignore
6834 strftime modifiers and field width in recursive calls.
6836 * include/time.h (enum ptime_locale_status): Remove.
6837 (__strptime_internal): Remove decided and era_cnt arguments,
6838 add statep argument.
6839 * time/strptime_l.c (__strptime_internal): Remove decided
6840 and era_cnt arguments, add statep argument. Don't recompute
6841 any fields in recursive calls, only update caller's tm
6842 and state, if recursive call fails, don't change tm nor
6844 (get_alt_number): Adjust.
6845 (recursive): Adjust caller.
6846 (strptime): Likewise.
6847 * time/strptime.c (strptime): Likewise.
6849 2007-07-19 Jakub Jelinek <jakub@redhat.com>
6851 * iconv/gconv_int.h (__GCONV_NULCONV): New internal only error code.
6852 * iconv/gconv_cache.c (__gconv_lookup_cache): Return __GCONV_NULCONV
6853 if from and to charsets are the same.
6854 * iconv/gconv_db.c (__gconv_find_transform): Likewise.
6855 * intl/dcigettext.c (_nl_find_msg): Return NULL even if __gconv_open
6856 returns __GCONV_NOCONV, but not for __GCONV_NULCONV.
6858 2007-07-17 Jakub Jelinek <jakub@redhat.com>
6860 * wcsmbs/wchar.h: Only define wint_t if __need_wint_t.
6861 Don't define wint_t when __need_mbstate_t unless it
6863 (__mbstate_t): Use __WINT_TYPE__ rather than wint_t
6864 in the typedef if possible.
6865 * wctype/wctype.h (wint_t): Define by including
6866 wchar.h with __need_wint_t instead of including stddef.h
6867 with __need_wint_t and as fallback definining it ourselves.
6868 * iconv/gconv.h (__need_wint_t): Define before including
6870 * sysdeps/gnu/_G_config.h: Don't include gconv.h if not _LIBC
6871 or _GLIBCPP_USE_WCHAR_T.
6872 (__need_wchar_t): Don't define
6873 if not _LIBC or _GLIBCPP_USE_WCHAR_T.
6874 (__need_wint_t): Don't define before including stddef.h,
6875 define before including wchar.h only if _LIBC or
6876 _GLIBCPP_USE_WCHAR_T.
6877 (_G_iconv_t): Don't define if not _LIBC or _GLIBCPP_USE_WCHAR_T.
6878 * sysdeps/mach/hurd/_G_config.h: Likewise.
6879 * sysdeps/generic/_G_config.h: Likewise.
6880 * libio/libio.h (__wunderflow, __wuflow, __woverflow): Only
6881 prototype if _LIBC or _GLIBCPP_USE_WCHAR_T.
6882 (_IO_getwc_unlocked, _IO_putwc_unlocked): Only define
6883 if _LIBC or _GLIBCPP_USE_WCHAR_T.
6885 2007-07-28 Ulrich Drepper <drepper@redhat.com>
6887 * sysdeps/posix/posix_fallocate64.c: Undefine
6888 __posix_fallocate64_l64 before alias handling.
6889 * sysdeps/unix/sysv/linux/posix_fallocate.c: New file.
6890 * sysdeps/unix/sysv/linux/posix_fallocate64.c: New file.
6891 * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c: New file.
6892 * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate64.c: New file.
6894 * io/tst-posix_fallocate.c: Include <fcntl.h>.
6896 2007-07-23 Jakub Jelinek <jakub@redhat.com>
6898 * locale/programs/ld-collate.c (atwc): New variable.
6899 (add_to_tablewc): New toplevel function, moved from collate_output.
6900 (collate_output): Remove add_to_tablewc nested function.
6902 * iconv/iconvconfig.c (hash_table, hash_size): New toplevel vars.
6903 (name_insert): New function.
6904 (write_output): Remove hash_table and hash_size vars and name_insert
6907 2007-07-24 Roland McGrath <roland@redhat.com>
6909 * Makerules (install-others-programs-nosubdir): New target.
6910 (install-no-libc.a-nosubdir): Depend on it.
6912 * iconv/Makefile (install-others-programs): Set this instead of
6914 * login/Makefile (install-others-programs): Likewise.
6915 * posix/Makefile (install-others-programs): Likewise.
6917 * Makerules (install-no-libc.a-nosubdir): Clean up conditional
6920 2007-07-23 Ulrich Drepper <drepper@redhat.com>
6922 * io/Makefile (tests): Add tst-posix_fallocate.
6923 * io/tst-posix_fallocate.c: New file.
6925 * sysdeps/unix/sysv/linux/kernel-features.h: Define
6928 2007-07-22 Roland McGrath <roland@frob.com>
6930 * hurd/getdport.c: Add missing copyright year update.
6932 * sysdeps/mach/hurd/bits/fcntl.h [__USE_GNU] (O_CLOEXEC): New macro.
6933 * hurd/port2fd.c (_hurd_port2fd): Implement O_CLOEXEC.
6935 2007-07-22 Ulrich Drepper <drepper@redhat.com>
6937 * login/utmp_file.c (setutent_file): Use O_CLOEXEC if possible.
6939 * libio/fileops.c (_IO_new_file_fopen): Recognize 'e' flag and set
6940 O_CLOEXEC is needed.
6941 * nis/nss_compat/compat-grp.c: Use 'e' flag when opening file.
6942 Avoid additional fcntl to set O_CLOEXEC if not needed.
6943 * nis/nss_compat/compat-initgroups.c: Likewise.
6944 * nis/nss_compat/compat-pwd.c: Likewise.
6945 * nis/nss_compat/compat-spwd.c: Likewise.
6947 2007-07-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
6950 * manual/errno.texi: Change ECANCELED value to 119.
6953 * mach/lock-intern.h: Include <sys/cdefs.h>.
6956 * sysdeps/mach/hurd/sigaction.c (__sigaction): Check ACT != NULL before
6960 * sysdeps/mach/hurd/sigsuspend.c (sigsuspend_not_cancel): Define alias
6963 * sysdeps/mach/i386/sysdep.h: Include <dl-sysdep.h> and <tls.h>.
6965 2006-06-13 Thomas Schwinge <tschwinge@gnu.org>
6967 * sysdeps/mach/hurd/tls.h: Change `ASSEMBLER' conditional to
6969 * sysdeps/mach/hurd/i386/tls.h: Likewise.
6971 2007-07-21 Ulrich Drepper <drepper@redhat.com>
6973 * nscd/nscd_helper.c (get_mapping): Use MSG_CMSG_CLOEXEC for
6974 descriptor received from nscd.
6976 * sysdeps/unix/sysv/linux/bits/socket.h: Define MSG_CMSG_CLOEXEC.
6978 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_CLOEXEC.
6979 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
6980 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
6981 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
6982 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
6983 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
6985 2007-07-20 Jakub Jelinek <jakub@redhat.com>
6988 * manual/signal.texi (Non-atomic Example): Make memory var volatile.
6991 * login/forkpty.c (forkpty): Close master and slave fds on
6992 fork failure. Patch by
6993 Mikulas Patocka <mikulas@artax.karlin.mff.cuni.cz>.
6995 2007-07-18 Jakub Jelinek <jakub@redhat.com>
6997 * include/features.h (__USE_ISOC95): New define.
6998 * wcsmbs/wchar.h (fwprintf, fwscanf, wprintf, wscanf, swprintf,
6999 swscanf, vfwprintf, vwprintf, vswprintf, fwide): Define even
7000 for -std=iso9899:199409.
7001 * CONFORMANCE: Remove comments about unsupported AMD1.
7003 2007-07-17 Jakub Jelinek <jakub@redhat.com>
7005 * sysdeps/ia64/sched_cpucount.c: New file.
7006 * sysdeps/powerpc/sched_cpucount.c: New file.
7008 * sysdeps/unix/sysv/linux/bits/sched.h (__sched_cpucount): Add
7009 __BEGIN_DECLS/__END_DECLS around the prototype.
7010 * bits/sched.h (__sched_cpucount): Likewise. Make second argument
7011 pointer to const cpu_set_t.
7013 * bits/types.h: Don't include stddef.h, don't define __need_size_t.
7014 * signal/signal.h <__USE_BSD || __USE_XOPEN_EXTENDED>: Define
7015 __need_size_t and include stddef.h.
7016 * sysvipc/sys/msg.h: Likewise.
7017 * posix/sched.h: Likewise.
7018 * hurd/hurd/signal.h (__need_size_t): Define.
7020 * CONFORMANCE: ctype.h and wctype.h no longer define size_t,
7021 neither does signal.h in pedantic ISO C namespaces. stdio.h
7022 no longer defines wint_t or wchar_t.
7024 * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): New function.
7025 * debug/vfwprintf_chk.c (__vfwprintf_chk): Use
7026 _IO_acquire_lock_clear_flags2 instead of _IO_acquire_lock.
7027 * debug/vprintf_chk.c (__vprintf_chk): Likewise.
7028 * debug/vwprintf_chk.c (__vwprintf_chk): Likewise.
7029 * debug/vfprintf_chk.c (__vfprintf_chk): Likewise.
7030 * debug/fwprintf_chk.c (__fwprintf_chk): Likewise.
7031 * debug/printf_chk.c (__printf_chk): Likewise.
7032 * debug/fprintf_chk.c (__fprintf_chk): Likewise.
7033 * debug/wprintf_chk.c (__wprintf_chk): Likewise.
7035 * sysdeps/pthread/bits/stdio-lock.h (_IO_acquire_lock_clear_flags2):
7038 * bits/confname.h (_CS_POSIX_V6_WIDTH_RESTRICTED_ENVS): Define.
7039 * posix/getconf.c (vars): Add POSIX_V6_WIDTH_RESTRICTED_ENVS.
7041 2007-07-16 Jakub Jelinek <jakub@redhat.com>
7044 * stdlib/stdlib.h (realloc): Remove __attribute_malloc__.
7045 * malloc/malloc.h (realloc): Likewise.
7047 * libio/iopopen.c (_IO_new_proc_open): Don't close child_std_end
7048 if one of proc_file_chain streams has that fileno.
7049 * stdio-common/Makefile (tests): Add tst-popen2.
7050 * stdio-common/tst-popen2.c: New test.
7052 2007-07-14 Jakub Jelinek <jakub@redhat.com>
7054 * elf/ldconfig.c: Allow GPLv2 or any later version.
7055 * elf/readlib.c: Likewise.
7056 * elf/chroot_canon.c: Likewise.
7057 * elf/cache.c: Likewise.
7058 * nscd/mem.c: Likewise.
7059 * nscd/getpwuid_r.c: Likewise.
7060 * nscd/grpcache.c: Likewise.
7061 * nscd/aicache.c: Likewise.
7062 * nscd/getsrvbynm_r.c: Likewise.
7063 * nscd/nscd.c: Likewise.
7064 * nscd/servicescache.c: Likewise.
7065 * nscd/getsrvbypt_r.c: Likewise.
7066 * nscd/initgrcache.c: Likewise.
7067 * nscd/gethstbyad_r.c: Likewise.
7068 * nscd/gethstbynm2_r.c: Likewise.
7069 * nscd/getgrnam_r.c: Likewise.
7070 * nscd/nscd_setup_thread.c: Likewise.
7071 * nscd/getpwnam_r.c: Likewise.
7072 * nscd/gai.c: Likewise.
7073 * nscd/connections.c: Likewise.
7074 * nscd/dbg_log.c: Likewise.
7075 * nscd/cache.c: Likewise.
7076 * nscd/hstcache.c: Likewise.
7077 * nscd/nscd_conf.c: Likewise.
7078 * nscd/getgrgid_r.c: Likewise.
7079 * nscd/pwdcache.c: Likewise.
7080 * catgets/gencat.c: Likewise.
7081 * locale/programs/linereader.h: Likewise.
7082 * locale/programs/locarchive.c: Likewise.
7083 * locale/programs/ld-paper.c: Likewise.
7084 * locale/programs/locfile-kw.h: Likewise.
7085 * locale/programs/ld-address.c: Likewise.
7086 * locale/programs/xmalloc.c: Likewise.
7087 * locale/programs/ld-time.c: Likewise.
7088 * locale/programs/localedef.c: Likewise.
7089 * locale/programs/simple-hash.c: Likewise.
7090 * locale/programs/xstrdup.c: Likewise.
7091 * locale/programs/ld-numeric.c: Likewise.
7092 * locale/programs/locfile-kw.gperf: Likewise.
7093 * locale/programs/ld-collate.c: Likewise.
7094 * locale/programs/charmap-kw.gperf: Likewise.
7095 * locale/programs/charmap.h: Likewise.
7096 * locale/programs/charmap-kw.h: Likewise.
7097 * locale/programs/config.h: Likewise.
7098 * locale/programs/locfile.c: Likewise.
7099 * locale/programs/ld-ctype.c: Likewise.
7100 * locale/programs/charmap.c: Likewise.
7101 * locale/programs/ld-messages.c: Likewise.
7102 * locale/programs/repertoire.h: Likewise.
7103 * locale/programs/locale.c: Likewise.
7104 * locale/programs/ld-name.c: Likewise.
7105 * locale/programs/linereader.c: Likewise.
7106 * locale/programs/locfile.h: Likewise.
7107 * locale/programs/3level.h: Likewise.
7108 * locale/programs/ld-monetary.c: Likewise.
7109 * locale/programs/ld-measurement.c: Likewise.
7110 * locale/programs/charmap-dir.c: Likewise.
7111 * locale/programs/ld-identification.c: Likewise.
7112 * locale/programs/localedef.h: Likewise.
7113 * locale/programs/charmap-dir.h: Likewise.
7114 * locale/programs/repertoire.c: Likewise.
7115 * locale/programs/simple-hash.h: Likewise.
7116 * locale/programs/ld-telephone.c: Likewise.
7117 * locale/programs/locale-spec.c: Likewise.
7118 * locale/programs/locfile-token.h: Likewise.
7119 * posix/getconf.c: Likewise.
7120 * iconv/dummy-repertoire.c: Likewise.
7121 * iconv/iconv_charmap.c: Likewise.
7122 * iconv/iconvconfig.c: Likewise.
7123 * iconv/iconv_prog.c: Likewise.
7124 * malloc/memusagestat.c: Likewise.
7125 * sysdeps/unix/sysv/linux/nscd_setup_thread.c: Likewise.
7127 2007-07-06 Kaz Kojima <kkojima@rr.iij4u.or.jp>
7129 * sysdeps/sh/bsd-setjmp.S (setjmp): Use correct argument registers.
7130 * sysdeps/sh/bsd-_setjmp.S (_setjmp): Likewise.
7131 * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Do correct sanity
7132 check for the first argument.
7134 2007-07-12 Jakub Jelinek <jakub@redhat.com>
7137 * math/tgmath.h (__tgmath_real_type_sub): Formatting.
7138 (__tgmath_real_type): Fix if expr is const int or other const
7139 qualified integral type.
7140 (__TGMATH_UNARY_REAL_ONLY): Rewritten to avoid using statement
7141 expressions and handle const qualified arguments.
7142 (__TGMATH_BINARY_FIRST_REAL_ONLY, __TGMATH_UNARY_REAL_IMAG,
7143 __TGMATH_UNARY_REAL_IMAG_RET_REAL): Likewise.
7144 (__TGMATH_UNARY_REAL_RET_ONLY): Rewritten to avoid using
7145 statement expressions.
7146 (__TGMATH_BINARY_REAL_ONLY, __TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY,
7147 __TGMATH_TERNARY_REAL_ONLY, __TGMATH_BINARY_REAL_IMAG): Likewise.
7148 (__TGMATH_UNARY_IMAG): Define.
7149 (conj, cproj): Use __TGMATH_UNARY_IMAG macro.
7150 * math/Makefile (tests): Add test-tgmath2.
7151 (CFLAGS-test-tgmath2.c): Add.
7152 * math/test-tgmath.c (fy, dy, ly, fz, dz, lz, count_cdouble,
7153 count_cfloat, count_cldouble): New variables.
7155 (main): Check number of complex calls as well.
7156 (F(compile_test)): Add complex tests and tests with const qualified
7158 (y, z, ccount): Define.
7159 (F(cacos), F(casin), F(catan), F(ccos), F(csin), F(ctan), F(cacosh),
7160 F(casinh), F(catanh), F(ccosh), F(csinh), F(ctanh), F(cexp), F(clog),
7161 F(csqrt), F(cpow), F(cabs), F(carg), F(creal), F(cimag), F(conj),
7162 F(cproj)): New functions.
7163 * math/test-tgmath2.c: New test.
7165 2007-07-11 Jakub Jelinek <jakub@redhat.com>
7168 * elf/dl-load.c (_dl_rtld_di_serinfo): Output / in LD_LIBRARY_PATH,
7169 RPATH etc. as "/" rather than "", don't segfault on empty paths,
7171 * dlfcn/Makefile (distribute): Add glreflib3.c.
7172 (module-names): Add glreflib3.
7173 ($(objpfx)tst-dlinfo.out): Depend on glreflib3.so rather than
7175 (LDFLAGS_glreflib3.so): New.
7176 * dlfcn/tst-dlinfo.c (do_test): Load glreflib3.so instead of
7178 * dlfcn/glreflib3.c: New file.
7180 * intl/finddomain.c (_nl_find_domain): If _nl_explode_name
7181 returned -1, return NULL.
7182 * intl/explodename.c (_nl_explode_name): Return -1 if
7183 _nl_normalize_codeset failed.
7185 2007-07-07 Steven Munroe <sjmunroe@us.ibm.com>
7187 * sysdeps/powerpc/powerpc32/power6/memset.S: Update comments.
7188 Specify .machine power6 to get ISA-V2.0 branch hints. Unroll loops
7189 and avoid branch misspredicts for > 31 bytes memset case.
7190 * sysdeps/powerpc/powerpc64/power6/memset.S: Likewise.
7191 Remove toc ref to __cache_line_size.
7193 * sysdeps/powerpc/powerpc32/power4/memcmp.S: Specify .machine power4
7194 to get ISA-V2.0 branch hints.
7195 * sysdeps/powerpc/powerpc32/power4/memcpy.S: Likewise
7196 * sysdeps/powerpc/powerpc32/power4/memset.S: Likewise
7197 * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
7198 * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
7199 * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
7200 * sysdeps/powerpc/powerpc64/power4/memset.S: Likewise.
7201 Remove toc ref to __cache_line_size.
7203 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S:
7204 Include math_ldbl_opt.h.
7206 2007-07-10 Ulrich Drepper <drepper@redhat.com>
7209 * time/strptime_l.c (__strptime_internal): Implement greedy
7210 matching of weekday and month names.
7212 2007-07-09 Roland McGrath <roland@redhat.com>
7214 * elf/elf.h (NT_GNU_ABI_TAG): New macro.
7215 (ELF_NOTE_ABI): Use it.
7216 (NT_GNU_HWCAP, NT_GNU_BUILD_ID): New macros.
7218 2007-07-09 Ulrich Drepper <drepper@redhat.com>
7220 * sysdeps/x86_64/cacheinfo.c (intel_02_known): Add new entries.
7221 * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
7223 2007-07-07 Ulrich Drepper <drepper@redhat.com>
7226 * stdio-common/vfscanf.c (_IO_vfscanf): Add additional test for EOF
7227 in loop to look for conversion specifier to avoid testing of
7229 * stdio-common/Makefile (tests): Add bug18, bug18a, bug19, bug19a.
7230 * stdio-common/bug18.c: New file.
7231 * stdio-common/bug18a.c: New file.
7232 * stdio-common/bug19.c: New file.
7233 * stdio-common/bug19a.c: New file.
7235 2007-07-05 Mike Frysinger <vapier@gentoo.org>
7237 * Makeconfig ($(common-objpfx)gnu/lib-names.stmp): Use LC_ALL=C when
7240 2007-07-01 Jakub Jelinek <jakub@redhat.com>
7242 * elf/dl-sysdep.c (_dl_important_hwcaps): Add integer overflow check.
7243 * elf/dl-minimal.c (__libc_memalign): Likewise. Handle malloc (0).
7244 Return NULL if mmap failed instead of asserting it does not.
7245 (calloc): Check for integer overflow.
7247 * elf/dl-minimal.c (__strtoul_internal): Fix parsing of numbers bigger
7250 2007-07-03 Jakub Jelinek <jakub@redhat.com>
7253 * nis/nss-default.c: Include errno.h.
7254 (init): Preserve errno.
7256 2007-07-02 Ulrich Drepper <drepper@redhat.com>
7258 * sysdeps/unix/sysv/linux/bits/socket.h (PF_UNIX): Update comment.
7260 2007-06-30 Ulrich Drepper <drepper@redhat.com>
7262 * sysdeps/unix/sysv/linux/bits/socket.h: Add PF_RXRPC and AF_RXRPC.
7264 2007-06-29 Martin Schwidefsky <schwidefsky@de.ibm.com>
7266 * sysdeps/unix/sysv/linux/bits/socket.h: Add PF_IUCV and AF_IUCV.
7268 2007-06-29 Martin Schwidefsky <schwidefsky@de.ibm.com>
7270 * sysdeps/s390/dl-procinfo.c: New file.
7271 * sysdeps/s390/dl-procinfo.h: New file.
7272 * sysdeps/unix/sysv/linux/s390/dl-procinfo.h: New file.
7274 2007-06-29 Jakub Jelinek <jakub@redhat.com>
7276 * elf/dl-load.c (open_verify): Find .note.ABI-tag notes even
7277 in PT_NOTE segments with multiple notes.
7278 * elf/readelflib.c (process_elf_file): Likewise.
7280 2007-06-22 Ulrich Drepper <drepper@redhat.com>
7282 * nis/nis_domain_of.c (__nis_domain_of): Make the code a bit more
7285 2007-06-19 Ulrich Drepper <drepper@redhat.com>
7287 * elf/dl-close.c (free_mem): Free _dl_scope_free_list.
7289 2007-06-13 Jakub Jelinek <jakub@redhat.com>
7291 * include/link.h: Don't include rtld-lowlevel.h.
7292 (struct link_map): Remove l_scope_lock.
7293 * sysdeps/generic/ldsodefs.h: Don't include rtld-lowlevel.h.
7294 (_dl_scope_free_list): New field (variable) in _rtld_global.
7295 (DL_LOOKUP_SCOPE_LOCK): Remove.
7296 (_dl_scope_free): New prototype.
7297 * elf/dl-runtime.c (_dl_fixup): Don't use __rtld_mrlock_*lock.
7298 Don't pass DL_LOOKUP_SCOPE_LOCK to _dl_lookup_symbol_x.
7299 (_dl_profile_fixup): Likewise.
7300 * elf/dl-sym.c (do_sym): Likewise. Use wrapped _dl_lookup_symbol_x
7301 whenever !RTLD_SINGLE_THREAD_P, use THREAD_GSCOPE_SET_FLAG and
7302 THREAD_GSCOPE_RESET_FLAG around it.
7303 * elf/dl-close.c (_dl_close_worker): Don't use
7304 __rtld_mrlock_{change,done}. Call _dl_scope_free on the old
7305 scope. Make sure THREAD_GSCOPE_WAIT () happens if any old
7306 scopes were queued or if l_scope_mem has been abandoned.
7307 * elf/dl-open.c (_dl_scope_free): New function.
7308 (dl_open_worker): Use it. Don't use __rtld_mrlock_{change,done}.
7309 * elf/dl-support.c (_dl_scope_free_list): New variable.
7310 * elf/dl-lookup.c (add_dependency): Remove flags argument.
7311 Remove DL_LOOKUP_SCOPE_LOCK handling.
7312 (_dl_lookup_symbol_x): Adjust caller. Remove DL_LOOKUP_SCOPE_LOCK
7314 * elf/dl-object.c (_dl_new_object): Don't use
7315 __rtld_mrlock_initialize.
7317 2007-06-19 Ulrich Drepper <drepper@redhat.com>
7319 * sysdeps/generic/ldsodefs.h (rtld_global): Reorder some elements
7321 (rtld_global_ro): Likewise.
7323 2007-06-18 Jakub Jelinek <jakub@redhat.com>
7325 * elf/dl-addr.c (_dl_addr): Skip PT_LOAD checking if l_contiguous.
7326 Move PT_LOAD checking to...
7327 (_dl_addr_inside_object): ... here, new function.
7328 * elf/dl-sym.c (do_sym): If not l_contiguous,
7329 call _dl_addr_inside_object.
7330 * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise.
7331 * dlfcn/dlinfo.c (dlinfo_doit): Likewise.
7332 * elf/dl-open.c (dl_open_worker): Likewise.
7333 (_dl_addr_inside_object): New function if IS_IN_rtld.
7334 * elf/dl-load.c (_dl_map_object_from_fd): Set l_contiguous if no
7335 holes are present or are PROT_NONE protected.
7336 * include/link.h (struct link_map): Add l_contiguous field.
7337 * sysdeps/generic/ldsodefs.h (_dl_addr_inside_object): New prototype.
7339 2007-06-18 Jakub Jelinek <jakub@redhat.com>
7340 Tomas Janousek <tjanouse@redhat.com>
7341 Ulrich Drepper <drepper@redhat.com>
7344 * resolv/res_send.c (send_dg): Remove socket_pf. Use ipv6_unavail
7345 member in __res_state, only convaddr4to6 if nssocks[ns] is a PF_INET6
7347 * resolv/resolv.h (__res_state): Add ipv6_unavail member. Make
7348 unused member a bitmap.
7349 * resolv/res_init.c (__res_vinit): Reset ipv6_unavail if IPv6
7350 servers are configured.
7352 2007-06-18 Jakub Jelinek <jakub@redhat.com>
7354 * elf/rtld.c (dl_main): Don't call init_tls more than once.
7356 2007-06-17 Andreas Schwab <schwab@suse.de>
7358 * sysdeps/generic/initfini.c: Tell gcc about the nonstandard sections.
7360 2007-06-16 Andreas Jaeger <aj@suse.de>
7363 * sysdeps/unix/sysv/linux/sys/ptrace.h
7364 (PTRACE_O_TRACESYSGOOD, PTRACE_O_TRACEFORK,
7365 PTRACE_O_TRACEVFORK, PTRACE_O_TRACECLONE, PTRACE_O_TRACEEXEC,
7366 PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT, PTRACE_O_MASK,
7367 PTRACE_EVENT_FORK, PTRACE_EVENT_VFORK, PTRACE_EVENT_CLONE,
7368 PTRACE_EVENT_EXEC, PTRACE_EVENT_VFORK_DONE, PTRACE_EVENT_EXIT):
7370 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
7371 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
7372 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
7373 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
7375 2007-06-16 Ulrich Drepper <drepper@redhat.com>
7378 * sysdeps/unix/sysv/linux/check_pf.c (make_request): When
7379 determining whether there are IPv4/IPv6 addresses, ignore loopback
7382 2007-06-14 Uros Bizjak <ubizjak@gmail.com>
7384 * soft-fp/soft-fp.h (CMPtype): Define to "int" if undefined.
7385 * soft-fp/eqdf2.c (__eqdf2): Use CMPtype instead of int
7386 as the return type. Change type of "r" variable to CMPtype.
7387 * soft-fp/eqsf2.c (__eqsf2): Likewise.
7388 * soft-fp/eqtf2.c (__eqtf2): Likewise.
7389 * soft-fp/gedf2.c (__gedf2): Likewise.
7390 * soft-fp/gesf2.c (__gesf2): Likewise.
7391 * soft-fp/getf2.c (__getf2): Likewise.
7392 * soft-fp/ledf2.c (__ledf2): Likewise.
7393 * soft-fp/lesf2.c (__lesf2): Likewise.
7394 * soft-fp/letf2.c (__letf2): Likewise.
7395 * soft-fp/unorddf2 (__unorddf2): Likewise.
7396 * soft-fp/unordsf2 (__unordsf2): Likewise.
7397 * soft-fp/unordtf2 (__unordtf2): Likewise.
7399 2007-06-09 Ulrich Drepper <drepper@redhat.com>
7401 * elf/do-lookup.h (do_lookup_x): Read r_nlist before r_list and
7402 make sure gcc doesn't mess around with this.
7404 2007-06-08 Ulrich Drepper <drepper@redhat.com>
7406 * elf/dl-lookup.c (_dl_lookup_symbol_x): Remove use of r_nlist.
7408 2007-06-08 Jakub Jelinek <jakub@redhat.com>
7410 * elf/dl-close.c (_dl_close_worker): Remove all to be removed
7411 libraries from the global scope at once and call THREAD_GSCOPE_WAIT
7412 at most once per _dl_close_worker.
7414 2007-06-08 Ulrich Drepper <drepper@redhat.com>
7416 * sysdeps/unix/sysv/linux/bits/sched.h: Make second parameter of
7417 __sched_cpucount as const.
7418 * posix/sched_cpucount.c: Adjust.
7420 * posix/sched_cpucount.c (__sched_cpucount): Allow using special
7421 instruction for counting bits.
7422 * sysdeps/x86_64/sched_cpucount.c: New file.
7424 2007-06-07 Ulrich Drepper <drepper@redhat.com>
7426 * configure.in: Avoid variable named BASH.
7427 * config.make.in: Likewise.
7428 Patch in part by Mike Frysinger.
7430 2007-06-06 Jakub Jelinek <jakub@redhat.com>
7433 * sysdeps/i386/ldbl2mpn.c (__mpn_extract_long_double): Treat
7434 pseudo-zeros as zero.
7435 * sysdeps/x86_64/ldbl2mpn.c: New file.
7436 * sysdeps/ia64/ldbl2mpn.c: New file.
7438 2007-06-04 Jakub Jelinek <jakub@redhat.com>
7440 * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (nextafterl): Remove
7441 unused ily variable. Fix nextafterl on +-__LDBL_MAX__ and +-Inf.
7442 Remove unreachable code at the end.
7444 2007-06-01 Steven Munroe <sjmunroe@us.ibm.com>
7446 * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Correct description of
7447 ldbl-128ibm in comment.
7448 (fpclassifyl): Correct classification of denormals.
7449 * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (nextafterl): Correct
7450 return value for MIN denormal. Rewrite using long double math too
7451 correctly handle denormals and canonicalize the results.
7453 2007-06-05 Jakub Jelinek <jakub@redhat.com>
7455 * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c
7456 (__mpn_construct_long_double): Fix conversion where result ought
7457 to be smaller than __LDBL_MIN__, or the low double should be
7458 denormal. Fix decision where to negate low double - honor round
7460 * stdio-common/tst-sprintf2.c: Include string.h.
7461 (COMPARE_LDBL): Define.
7462 (TEST): Also test whether a string hexadecimal float representation
7463 can be parsed back to the number.
7464 (main): Add a couple of further tests.
7466 2007-06-04 Jakub Jelinek <jakub@redhat.com>
7468 * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c
7469 (PRINT_FPHEX_LONG_DOUBLE): Fix printing numbers where lower double
7470 is non-zero, but smaller than 2 * __DBL_MIN__.
7471 * stdio-common/tst-sprintf2.c: New test.
7472 * stdio-common/Makefile (tests): Add tst-sprintf2.
7474 * math/test-misc.c (main): Don't run last batch of tests with
7475 IBM long double format.
7477 2007-05-31 Steven Munroe <sjmunroe@us.ibm.com>
7479 * sysdeps/powerpc/powerpc32/970/fpu/Implies: New file.
7480 * sysdeps/powerpc/powerpc32/power5/fpu/Implies: New file.
7481 * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: New file.
7482 * sysdeps/powerpc/powerpc32/power6/fpu/Implies: New file.
7483 * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: New file.
7484 * sysdeps/powerpc/powerpc64/970/fpu/Implies: New file.
7485 * sysdeps/powerpc/powerpc64/power5/fpu/Implies: New file.
7486 * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: New file.
7487 * sysdeps/powerpc/powerpc64/power6/fpu/Implies: New file.
7488 * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: New file.
7489 * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: New file.
7490 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies:
7492 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies:
7494 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies:
7496 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies:
7498 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies:
7500 * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: New file.
7501 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies:
7503 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies:
7505 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies:
7507 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies:
7509 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies:
7512 2007-05-31 Steven Munroe <sjmunroe@us.ibm.com>
7514 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S: Move.
7515 * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: To here.
7516 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrintf.S: Move.
7517 * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: To here.
7518 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llround.S: Move.
7519 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: To here.
7520 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llroundf.S: Move.
7521 * sysdeps/powerpc/powerpc32/power4/fpu/s_llroundf.S: To here.
7523 2007-05-22 Steven Munroe <sjmunroe@us.ibm.com>
7525 * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S
7526 (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
7527 * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S
7528 (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
7529 * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S
7530 (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
7531 * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S
7532 (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
7534 2007-05-21 Steven Munroe <sjmunroe@us.ibm.com>
7536 * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: New file.
7537 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.c: New file.
7538 * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: New file.
7539 * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: New file.
7541 2007-03-15 Steven Munroe <sjmunroe@us.ibm.com>
7543 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S
7544 [LONG_DOUBLE_COMPAT]: Add compat_symbol for llrintl@@GLIBC_2_1.
7546 2006-02-13 Steven Munroe <sjmunroe@us.ibm.com>
7548 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: New File
7549 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: New File
7550 * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: New File
7551 * sysdeps/powerpc/powerpc32/power6/fpu/s_llroundf.S: New File
7553 2006-10-20 Steven Munroe <sjmunroe@us.ibm.com>
7555 * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: New file.
7556 * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: New file.
7558 2006-10-03 Steven Munroe <sjmunroe@us.ibm.com>
7560 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llround.S: New file.
7561 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llroundf.S: New file.
7563 * sysdeps/powerpc/powerpc32/powerpc64/fpu/Makefile: Moved.
7564 * sysdeps/powerpc/powerpc32/powerpc64/fpu/mpa.c: Likewise.
7565 * sysdeps/powerpc/powerpc32/power4/fpu/Makefile: To here.
7566 * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
7568 2006-09-29 Steven Munroe <sjmunroe@us.ibm.com>
7570 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lrint.S: New file.
7571 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: New file.
7572 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: New file.
7573 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: New file.
7575 2006-09-28 Steven Munroe <sjmunroe@us.ibm.com>
7577 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: New file.
7578 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llroundf.S: New file.
7579 * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: New file.
7580 * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: New file.
7581 * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: New file.
7582 * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: New file.
7584 2006-08-31 Steven Munroe <sjmunroe@us.ibm.com>
7586 * sysdeps/powerpc/powerpc32/powerpc64/fpu/Makefile: New file.
7587 * sysdeps/powerpc/powerpc32/powerpc64/fpu/mpa.c: New file.
7588 * sysdeps/powerpc/powerpc64/power4/fpu/Makefile: New file.
7589 * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: New file.
7591 2006-06-15 Steven Munroe <sjmunroe@us.ibm.com>
7593 * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceil.S: New file.
7594 * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceilf.S: New file.
7595 * sysdeps/powerpc/powerpc32/power5+/fpu/s_floor.S: New file.
7596 * sysdeps/powerpc/powerpc32/power5+/fpu/s_floorf.S: New file.
7597 * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S: New file.
7598 * sysdeps/powerpc/powerpc32/power5+/fpu/s_roundf.S: New file.
7599 * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S: New file.
7600 * sysdeps/powerpc/powerpc32/power5+/fpu/s_truncf.S: New file.
7601 * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceil.S: New file.
7602 * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceilf.S: New file.
7603 * sysdeps/powerpc/powerpc64/power5+/fpu/s_floor.S: New file.
7604 * sysdeps/powerpc/powerpc64/power5+/fpu/s_floorf.S: New file.
7605 * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S: New file.
7606 * sysdeps/powerpc/powerpc64/power5+/fpu/s_roundf.S: New file.
7607 * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S: New file.
7608 * sysdeps/powerpc/powerpc64/power5+/fpu/s_truncf.S: New file.
7610 2006-03-20 Steven Munroe <sjmunroe@us.ibm.com>
7612 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S: New file.
7613 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrintf.S: New file.
7615 2007-06-01 Steven Munroe <sjmunroe@us.ibm.com>
7617 * sysdeps/powerpc/powerpc32/power6/memset.S: New file.
7618 * sysdeps/powerpc/powerpc64/power6/memset.S: New file.
7620 2007-05-31 Steven Munroe <sjmunroe@us.ibm.com>
7622 * sysdeps/powerpc/powerpc32/970/Implies: New file.
7623 * sysdeps/powerpc/powerpc32/power5/Implies: New file.
7624 * sysdeps/powerpc/powerpc32/power5+/Implies: New file.
7625 * sysdeps/powerpc/powerpc32/power6/Implies: New file.
7626 * sysdeps/powerpc/powerpc32/power6x/Implies: New file.
7627 * sysdeps/powerpc/powerpc64/970/Implies: New file.
7628 * sysdeps/powerpc/powerpc64/power5/Implies: New file.
7629 * sysdeps/powerpc/powerpc64/power5+/Implies: New file.
7630 * sysdeps/powerpc/powerpc64/power6/Implies: New file.
7631 * sysdeps/powerpc/powerpc64/power6x/Implies: New file.
7633 2007-05-21 Steven Munroe <sjmunroe@us.ibm.com>
7635 * sysdeps/powerpc/powerpc32/power4/memset.S: New file
7637 2007-03-13 Steven Munroe <sjmunroe@us.ibm.com>
7639 * sysdeps/powerpc/powerpc64/memcpy.S: Improve aligned loop to minimize
7640 branch miss-predicts. Ensure that cache line crossing does not impact
7643 2006-12-13 Steven Munroe <sjmunroe@us.ibm.com>
7645 * sysdeps/powerpc/powerpc64/power4/memcopy.h: Replace with include
7646 "../../powerpc32/power4/memcopy.h".
7647 * sysdeps/powerpc/powerpc64/power4/wordcopy.c: Replace with include
7648 "../../powerpc32/power4/wordcopy.c".
7650 2006-10-03 Steven Munroe <sjmunroe@us.ibm.com>
7652 * sysdeps/powerpc/powerpc32/powerpc64/Makefile: Moved.
7653 * sysdeps/powerpc/powerpc32/powerpc64/memcopy.h: Likewise.
7654 * sysdeps/powerpc/powerpc32/powerpc64/wordcopy.c: Likewise.
7655 * sysdeps/powerpc/powerpc32/power4/Makefile: To here.
7656 * sysdeps/powerpc/powerpc32/power4/memcopy.h: Likewise.
7657 * sysdeps/powerpc/powerpc32/power4/wordcopy.c: Likewise.
7659 2006-09-10 Steven Munroe <sjmunroe@us.ibm.com>
7661 * sysdeps/powerpc/powerpc32/power6/memcpy.S: New file.
7663 2006-08-31 Steven Munroe <sjmunroe@us.ibm.com>
7665 * sysdeps/powerpc/powerpc32/power6/wordcopy.c: New file.
7666 * sysdeps/powerpc/powerpc32/powerpc64/Makefile: New file.
7667 * sysdeps/powerpc/powerpc32/powerpc64/memcopy.h: New file.
7668 * sysdeps/powerpc/powerpc32/powerpc64/wordcopy.c: New file.
7669 * sysdeps/powerpc/powerpc64/power4/Makefile: New file.
7670 * sysdeps/powerpc/powerpc64/power4/memcopy.h: New file.
7671 * sysdeps/powerpc/powerpc64/power4/wordcopy.c: New file.
7672 * sysdeps/powerpc/powerpc64/power6/wordcopy.c: New file.
7674 2006-07-06 Steven Munroe <sjmunroe@us.ibm.com>
7676 * sysdeps/powerpc/powerpc64/power6/memcpy.S: New file.
7678 2006-03-20 Steven Munroe <sjmunroe@us.ibm.com>
7680 * sysdeps/powerpc/powerpc32/power4/memcmp.S: New file.
7681 * sysdeps/powerpc/powerpc32/power4/memcpy.S: New file.
7682 * sysdeps/powerpc/powerpc32/power4/memset.S: New file.
7683 * sysdeps/powerpc/powerpc32/power4/strncmp.S: New file.
7684 * sysdeps/powerpc/powerpc64/power4/memcmp.S: New file.
7685 * sysdeps/powerpc/powerpc64/power4/memcpy.S: New file.
7686 * sysdeps/powerpc/powerpc64/power4/strncmp.S: New file.
7688 2007-05-29 Roland McGrath <roland@redhat.com>
7690 * po/Makefile (po-sed-cmd): New variable.
7691 (libc.pot.files): Move sed command text in there, avoid \ inside ''.
7693 2007-05-29 Ulrich Drepper <drepper@redhat.com>
7695 * crypt/md5-crypt.c: Fix comment.
7697 * nscd/nscd_helper.c (get_mapping): Handle short replies instead
7698 of crashing. When this is the case or if the reply is malformed,
7699 don't try to close the new file descriptor since it does not
7701 Patch in part by Guillaume Chazarain <guichaz@yahoo.fr>.
7703 2007-05-28 Jakub Jelinek <jakub@redhat.com>
7705 * sysdeps/unix/sysv/linux/futimes.c (miss_utimensat): Don't define
7706 if __NR_utimensat is not defined.
7708 2007-05-26 Ulrich Drepper <drepper@redhat.com>
7710 * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Include <sysdep.h>.
7712 2007-05-25 Jakub Jelinek <jakub@redhat.com>
7714 * io/bits/fcntl2.h (__open_2): Add nonnull attribute.
7715 (open): Fix comment typos. Don't call __open_2 if flags
7716 is a compile time constant without O_CREAT.
7717 (__open64_2): Add nonnull attribute.
7718 (open64): Fix comment typos. Don't call __open64_2 if flags
7719 is a compile time constant without O_CREAT.
7720 (__openat_2): Add nonnull attribute, fix nonnull attribute
7722 (openat): Fix comment typos. Don't call __openat_2 if flags
7723 is a compile time constant without O_CREAT.
7724 (__openat64_2): Add nonnull attribute, fix nonnull attribute
7726 (openat64): Fix comment typos. Don't call __openat64_2 if flags
7727 is a compile time constant without O_CREAT.
7729 2007-05-24 Ulrich Drepper <drepper@redhat.com>
7731 * Makerules (sysd-rules): Define PTW for ptw-* files.
7732 * Versions: Define GLIBC_2.7 for libc.
7733 * include/stdio.h: Declare __fortify_fail.
7734 * debug/fortify_fail.c: New file.
7735 * debug/Makefile (routines): Add fortify_fail.
7736 * debug/chk_fail.c: Use __fortify_fail.
7737 * debug/stack_chk_fail.c: Likewise.
7738 * io/Versions: Export __open_2, __open64_2, __openat_2, and
7739 __openat64_2 for GLIBC_2.7.
7740 * io/fcntl.h: When compiling with fortification, include bits/fcntl2.h.
7741 * io/open.c: Define *_2 variant of function which checks for O_CREAT
7742 and fails if necessary.
7743 * io/open64.c: Likewise.
7744 * io/openat.c: Likewise.
7745 * io/openat64.c: Likewise.
7746 * sysdeps/unix/sysv/linux/open64.c: Likewise.
7747 * sysdeps/unix/sysv/linux/openat.c: Likewise.
7748 * sysdeps/unix/sysv/linux/openat64.c: Likewise.
7749 * io/bits/fcntl2.h: New file.
7750 * include/fcntl.h: Declare __open_2, __open64_2, __openat_2, and
7752 * include/bits/fcntl2.h: New file.
7753 * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
7755 * sysdeps/unix/sysv/linux/open_2.c: New file.
7757 2007-05-21 Ulrich Drepper <drepper@redhat.com>
7759 * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Pass correct value
7760 as second parameter to handle_intel.
7762 * nscd/aicache.c (addhstaiX): If reported TTL is zero don't cache
7765 * sysdeps/unix/sysv/linux/x86_64/sysconf.c: Move cache information
7767 * sysdeps/x86_64/cacheinfo.c: ... here. New file.
7768 * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
7770 * sysdeps/x86_64/memcpy.S: Complete rewrite.
7771 * sysdeps/x86_64/mempcpy.S: Adjust appropriately.
7772 Patch by Evandro Menezes <evandro.menezes@amd.com>.
7774 * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: New file.
7776 2007-05-21 Jakub Jelinek <jakub@redhat.com>
7779 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add epoll_pwait.
7780 * sysdeps/unix/sysv/linux/epoll_pwait.c: New file.
7781 * sysdeps/unix/sysv/linux/syscalls.list (epoll_pwait): Remove.
7783 * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h (epoll_pwait): Declare.
7786 * stdio-common/vfprintf.c (vfprintf): Don't shadow workstart variable,
7787 reinitialize workend at the start of each do_positional format spec
7788 loop, free workstart before do_positional loops.
7789 (printf_unknown): Fix size of work_buffer.
7790 * stdio-common/tst-sprintf.c (main): Add 3 new testcases.
7792 * malloc/hooks.c (MALLOC_STATE_VERSION): Bump.
7793 (public_sET_STATe): If ms->version < 3, put all chunks into
7794 unsorted chunks and clear {fd,bk}_nextsize fields of largebin
7797 * malloc/malloc.c [MALLOC_DEBUG]: Revert 2007-05-13 changes.
7798 * malloc/hooks.c: Likewise.
7799 * malloc/arena.c: Likewise.
7800 * malloc/malloc.c (do_check_malloc_state): Don't assert
7801 n_mmaps is not greater than n_mmaps_max. This removes the need
7802 for the previous change.
7804 * malloc/Makefile (CFLAGS-malloc.c): Revert accidental
7807 2007-05-19 Ulrich Drepper <drepper@redhat.com>
7809 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PRIVATE_FUTEX):
7810 Define for kernel >= 2.6.22.
7812 2007-05-18 Ulrich Drepper <drepper@redhat.com>
7814 * elf/dl-close.c (_dl_close_worker): When removing object from
7815 global scope, wait for all lookups to finish afterwards.
7816 * elf/dl-open.c (add_to_global): When global scope array must
7817 grow, allocate a new one and free old array only after all
7819 * elf/dl-runtime.c (_dl_fixup): Protect using global scope.
7820 (_dl_lookup_symbol_x): Likewise.
7821 * elf/dl-support.c: Define _dl_wait_lookup_done.
7822 * sysdeps/generic/ldsodefs.h (struct rtld_global): Add
7823 _dl_wait_lookup_done.
7825 * malloc/malloc.c (do_check_chunk): Correct check for mmaped block
7826 not overlapping with arena.
7828 * malloc/mcheck.c (reallochook): If size==0, free the block.
7830 * rt/tst-shm.c: Use fstat64 instead of fstat.
7832 * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Fix case where
7833 __NR_sync_file_range is not defined.
7835 2007-05-17 Ulrich Drepper <drepper@redhat.com>
7837 Dummy files to prevent stub versions from being used.
7838 * sysdeps/x86_64/fpu/k_cosl.c: New file.
7839 * sysdeps/x86_64/fpu/k_rem_pio2l.c: New file.
7840 * sysdeps/x86_64/fpu/k_sinl.c: New file.
7841 * sysdeps/x86_64/fpu/k_tanl.c: New file.
7843 * version.h (VERSION): Set to 2.6.90.
7845 2007-05-14 Ulrich Drepper <drepper@redhat.com>
7847 * version.h (VERSION): Define to 2.6.
7848 * include/features.h (__GLIBC_MINOR__): Define to 6.
7850 * malloc/malloc.c: Use all small bin slots on 64-bit archs.
7852 * malloc/malloc.c (largebin_index): Really have 32 buckets with 64
7855 2007-05-13 Ulrich Drepper <drepper@redhat.com>
7857 * malloc/malloc.c [MALLOC_DEBUG]: Keep track of current maximum
7858 number of mmaps. n_mmaps_max is the target.
7859 * malloc/hooks.c: Likewise.
7860 * malloc/arena.c: Likewise.
7862 2007-05-12 Andreas Jaeger <aj@suse.de>
7864 * sysdeps/unix/sysv/linux/tst-getcpu.c: Include <unistd.h> for
7867 2007-05-11 Ulrich Drepper <drepper@redhat.com>
7869 * elf/dl-close.c (_dl_close_worker): Help gcc to optimize by
7870 adding new variables.
7872 * elf/dl-open.c (add_to_global): Introduce variable ns to help gcc
7873 optimize. Completely extend global scope array before making the
7874 new entries visible.
7876 2007-05-10 Ulrich Drepper <drepper@redhat.com>
7878 * sysdeps/unix/sysv/linux/tst-getcpu.c: New file.
7879 * sysdeps/unix/sysv/linux/Makefile [subdir=posix] (tests): Add
7882 * include/link.h: Move l_version and l_nversion members around to
7885 * scripts/check-c++-types.sh: Don't use -fnu89-inline option.
7887 * sysdeps/unix/sysv/linux/sched_setaffinity.c
7888 (__sched_setaffinity_new): If syscall was successful and
7889 RESET_VGETCPU_CACHE is defined, use it before returning.
7890 * sysdeps/unix/sysv/linux/x86_64/sched_setaffinity.c: New file.
7892 * io/sys/stat.h: Make sure struct timespec is defined for
7895 * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Define UTIME_NOW and
7897 * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
7898 * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
7899 * sysdeps/unix/sysv/linux/alpha/bits/stat.h: Likewise.
7900 * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
7901 * sysdeps/unix/sysv/linux/bits/stat.h: Likewise.
7902 * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
7903 * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_UTIMENSAT.
7904 * io/sys/stat.h: Declare utimensat, futimens.
7905 * io/utimensat.c: New file.
7906 * io/futimens.c: New file.
7907 * sysdeps/unix/sysv/linux/utimensat.c: New file.
7908 * sysdeps/unix/sysv/linux/futimens.c: New file.
7909 * io/Makefile (routines): Add utimensat, futimens.
7910 * io/Versions: Add utimensat, futimens to GLIBC_2.6.
7911 * sysdeps/unix/sysv/linux/lutimes.c: New file.
7912 * sysdeps/unix/sysv/linux/futimes.c: Use utimensat syscall if
7915 * include/sys/cdefs.h: Redefine __nonnull so that test for
7916 incorrect parameters in the libc code itself are not omitted.
7918 2007-05-09 Jakub Jelinek <jakub@redhat.com>
7920 * sysdeps/ia64/fpu/fraiseexcpt.c (feraiseexcept): Don't raise overflow
7921 exception in addition to inexact when asked to raise only FE_INEXACT.
7924 * sysdeps/s390/fpu/feholdexcpt.c (feholdexcept): Don't clear exceptions
7927 2007-05-07 Ulrich Drepper <drepper@redhat.com>
7930 * string/strfry.c (strfry): Make result more random.
7932 2007-05-07 Richard Henderson <rth@redhat.com>
7934 * sysdeps/alpha/fpu/bits/mathinline.h (__isnanl): Don't define
7935 if __NO_LONG_DOUBLE_MATH.
7936 * sysdeps/unix/sysv/linux/alpha/ioperm.c: If BWX insns not
7937 available in the compiler, add .arch directive to the assembly.
7939 2007-05-07 Jakub Jelinek <jakub@redhat.com>
7941 * sysdeps/alpha/fpu/s_nearbyint.c (nearbyintl): Fix version on
7942 compat_symbol to GLIBC_2_1.
7943 * sysdeps/alpha/fpu/s_fmin.S (fminl): Likewise.
7944 * sysdeps/alpha/fpu/s_trunc.c (truncl): Likewise.
7945 * sysdeps/alpha/fpu/s_fmax.S (fmaxl): Likewise.
7946 * sysdeps/alpha/fpu/s_lrint.c (lrintl, llrintl): Likewise.
7947 * sysdeps/alpha/fpu/s_lround.c (lroundl, llroundl): Likewise.
7948 * sysdeps/alpha/fpu/s_round.c (roundl): Likewise.
7949 * sysdeps/alpha/fpu/s_isnan.c (isnanl): Provide compat_symbol in
7951 (__isnanl): New compat_symbol.
7953 2007-05-07 Ulrich Drepper <drepper@redhat.com>
7954 Jakub Jelinek <jakub@redhat.com>
7956 * malloc/arena.c (heap_info): Add mprotect_size field, adjust pad.
7957 (new_heap): Initialize mprotect_size.
7958 (grow_heap): When growing, only mprotect from mprotect_size till
7959 new_size if mprotect_size is smaller. When shrinking, use PROT_NONE
7960 MMAP for __libc_enable_secure only, otherwise use MADV_DONTNEED.
7962 2007-04-30 Steven Munroe <sjmunroe@us.ibm.com>
7963 Peter Bergner <bergner@us.ibm.com>
7965 * sysdeps/powerpc/bits/fenv.h: Declare __fe_mask_env extern.
7966 Define FE_NOMASK_ENV as FE_EANBLED_ENV. Define FE_MASK_ENV.
7967 * sysdeps/powerpc/fpu/Makefile: Add fe_mask to libm-support.
7968 * sysdeps/powerpc/fpu/fe_mask.c: New file.
7969 * sysdeps/powerpc/fpu/fe_nomask.c: Correct comment.
7970 * sysdeps/powerpc/fpu/fedisblxcpt.c (fedisableexcept):
7971 Call __fe_mask_env() if all FP exceptions disabled.
7972 * sysdeps/powerpc/fpu/feholdexcpt.c (feholdexcept): Copy high 32-bits
7973 from old FPSCR to new fenv to propagate DFP rounding modes.
7974 Call __fe_mask_env() if FP exceptions previously enabled.
7975 * sysdeps/powerpc/fpu/fesetenv.c (fesetenv): Change mask to merge
7976 exceptions from env. Use __fe_nomask_env() or __fe_mask_env() when
7977 transitioning from all exceptions disabled to any exception enabled
7979 * sysdeps/powerpc/fpu/feupdateenv.c (__feupdateenv): Change mask to
7980 merge exceptions from env. Call __fe_nomask_env or __fe_mask_env
7981 when transitioning from all exceptions disabled to any exception
7982 enabled or visa versa.
7983 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fe_nomask.c: Moved to...
7984 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c: ...here.
7985 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c: Moved to...
7986 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c: ...here.
7987 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c: New file.
7988 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c: New file.
7990 2007-05-06 Ulrich Drepper <drepper@redhat.com>
7993 * posix/unistd.h: Remove __THROW from fdatasync.
7995 2007-05-06 Mike Frysinger <vapier@gentoo.org>
7998 * sysdeps/unix/sysv/linux/syscalls.list (fdatasync): Add "C" to args.
8000 2007-05-06 Ulrich Drepper <drepper@redhat.com>
8002 * stdio-common/vfprintf.c (process_string_arg): Optimize
8003 ridiculous precision in wide char code printing multi-byte string.
8004 Reported by Jim Meyering <jim@meyering.net>.
8007 * elf/dl-addr.c (_dl_addr): Compare address with actual segment
8008 boundaries to work around systems with overlapping binary loading.
8009 Based on a patch by Suzuki <suzuki@in.ibm.com>.
8011 2007-05-04 Ulrich Drepper <drepper@redhat.com>
8013 * stdio-common/vfprintf.c (process_string_arg): Adjust call to
8014 __mbsnrtowcs after last change.
8016 * locale/programs/linereader.c (get_symname): Fix adding final NUL.
8017 (get_ident): Likewise.
8019 2007-05-03 Jakub Jelinek <jakub@redhat.com>
8021 * soft-fp/op-common.h (FP_TRUNC): Replace raising of FP_EX_INEXACT
8022 with setting the sticky bit.
8023 * math/test-misc.c (main): Add more truncation tests.
8025 2007-04-14 Uros Bizjak <ubizjak@gmail.com>
8027 * soft-fp/floatunsidf.c (__floatunsidf): Use DFtype instead of
8028 double in the function declaration.
8029 * soft-fp/floatundidf.c (__floatundidf): Use DFtype instead of
8030 double in the function declaration.
8031 * soft-fp/floatunsisf.c (__floatunsisf): Use SFtype instead of
8032 float in the function declaration.
8033 * soft-fp/floatunsisf.c (__floatunsisf): Use SFtype instead of
8034 float in the function declaration.
8036 * soft-fp/extended.h (FP_UNPACK_RAW_E): Do not increase X##_e for
8037 denormal operands. Do not generate FP_EX_DENORM exception.
8038 (FP_UNPACK_RAW_EP): Ditto.
8039 (FP_UNPACK_SEMIRAW_E): Use FP_UNPACK_RAW_E instead of
8040 undefined _FP_UNPACK_RAW_E.
8041 (FP_UNPACK_SEMIRAW_EP): Use FP_UNPACK_RAW_EP instead of
8042 undefined _FP_UNPACK_RAW_EP.
8043 (FP_PACK_SEMIRAW_E): Use FP_PACK_RAW_E instead of
8044 undefined _FP_PACK_RAW_E.
8045 (FP_PACK_SEMIRAW_EP): Use FP_PACK_RAW_EP instead of
8046 undefined _FP_PACK_RAW_EP.
8048 * soft-fp/op-2.h (_FP_FRAC_COPY_2_2): Define as alias to
8050 * soft-fp/op-4.h (_FP_FRAC_COPY_2_2): Define as alias to
8053 2007-04-16 Uros Bizjak <ubizjak@gmail.com>
8054 Jakub Jelinek <jakub@redhat.com>
8056 * soft-fp/op-common.h (FP_EXTEND): Do not abort when
8057 _FP_EXPBIAS_##dfs == _FP_EXPBIAS_##sfs. Handle denormals for
8059 * soft-fp/op-common.h (FP_TRUNC): Ditto.
8061 2007-05-03 Jakub Jelinek <jakub@redhat.com>
8063 * math/test-misc.c (main): Add tests for rounding long double
8064 values close to smallest double denormalized value to double.
8066 2007-04-30 Joseph Myers <joseph@codesourcery.com>
8068 * soft-fp/op-common.h (FP_TRUNC): Correct off-by-one error in
8069 condition for truncating to 0. Set sticky bit for such
8072 2007-05-02 Jakub Jelinek <jakub@redhat.com>
8074 * stdio-common/vfprintf.c (process_string_arg): Use a VLA rather than
8075 fixed length array for ignore.
8077 2007-04-30 Ulrich Drepper <drepper@redhat.com>
8080 * stdio-common/vfprintf.c (process_string_arg): Don't overflow the
8081 stack for large precisions.
8082 * stdio-common/test-vfprintf.c (main): Add test for large
8085 2007-04-30 Jakub Jelinek <jakub@redhat.com>
8087 * stdio-common/printf_fp.c (___printf_fp): Don't print negative sign
8089 * stdio-common/tfformat.c (sprint_doubles): Add a new test.
8092 * resolv/inet_ntop.c (inet_ntop4): Take terminating '\0' into
8093 account in the size check.
8094 * resolv/tst-inet_ntop.c: New test.
8095 * resolv/Makefile (tests): Add tst-inet_ntop.
8097 2007-04-30 Ulrich Drepper <drepper@redhat.com>
8098 Jakub Jelinek <jakub@redhat.com>
8101 * malloc/malloc.c: Keep separate list for first blocks on the bin
8102 lists with a given size. This helps skipping over list elements
8103 we know won't fit in two places.
8104 Inspired by a patch by Tomash Brechko <tomash.brechko@gmail.com>.
8106 2007-04-28 Ulrich Drepper <drepper@redhat.com>
8109 * sysdeps/posix/getaddrinfo.c (default_labels): Assign separate
8110 label to Teredo tunnel addresses 2001://32.
8112 2007-04-27 Ulrich Drepper <drepper@redhat.com>
8114 * locale/programs/ld-collate.c (collate_read): Allow order_start
8117 * locale/programs/ld-collate.c (collate_read): Fix printing of
8121 * locale/C-translit.h.in: Add entry for U2044.
8124 * stdio-common/vfscanf.c (_IO_vfscanf_internal): Allow
8125 hexa-decimal floats without exponent.
8126 * stdio-common/tstscanf.c (main): Adjust Test 8 test for success.
8128 2007-04-25 Ulrich Drepper <drepper@redhat.com>
8130 * sysdeps/unix/sysv/linux/bits/sched.h: Declare sched_getcpu.
8131 * sysdeps/unix/sysv/linux/sched_getcpu.c: New file.
8132 * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: New file.
8133 * sysdeps/unix/sysv/linux/Versions: Export sched_getcpu for
8135 * sysdeps/unix/sysv/linux/Makefile [subdir=posix] (sysdep_routines):
8138 2007-04-25 Jakub Jelinek <jakub@redhat.com>
8140 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Return -1 instead
8141 of 0 after the out_fail label.
8143 2007-04-25 Ulrich Drepper <drepper@redhat.com>
8146 * iconv/gconv_charset.h (strip): Allow ':'.
8147 * iconv/iconv_open.c (iconv_open): Adjust comment.
8149 2007-04-25 Jakub Jelinek <jakub@redhat.com>
8151 * libio/bits/stdio.h (fgetc_unlocked): Add extern inline optimized
8154 2007-04-23 Jakub Jelinek <jakub@redhat.com>
8157 * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Ensure sufficient
8158 alignment of buffer and tmp_buffer.
8159 * nis/nss_nis/nis-hosts.c (internal_nis_gethostent_r,
8160 internal_gethostbyname2_r, _nss_nis_gethostbyaddr_r): Ensure sufficient
8161 alignment of buffer.
8162 * resolv/nss_dns/dns-hosts.c (getanswer_r): Likewise. Handle buflen
8163 bigger than INT_MAX.
8164 * resolv/nss_dns/dns-network.c (getanswer_r): Likewise. Add errnop and
8165 h_errnop arguments. Fail if buflen is too small.
8166 (_nss_dns_getnetbyname_r, _nss_dns_getnetbyaddr_r): Adjust callers.
8168 2007-04-23 Jakub Jelinek <jakub@redhat.com>
8171 * iconvdata/gconv-modules (E13B): Add a missing slash to the alias
8172 name. Patch by Aurelien Jarno <aurelien@aurel32.net>.
8174 2007-04-22 Roland McGrath <roland@redhat.com>
8176 * elf/elf.h (NT_PRXFPREG): New macro.
8178 2007-04-19 Andreas Jaeger <aj@suse.de>
8181 * bits/in.h (IPV6_ROUTER_ALERT, IPV6_MTU_DISCOVER, IPV6_MTU,
8182 IPV6_RECVERR, IPV6_V6ONLY, IPV6_JOIN_ANYCAST, IPV6_LEAVE_ANYCAST):
8185 2007-04-19 Ulrich Drepper <drepper@redhat.com>
8187 * include/sys/mman.h: Mark madvise hidden.
8188 * misc/madvise.c: Add libc_hidden_def.
8190 2007-04-06 Jakub Jelinek <jakub@redhat.com>
8192 * nis/nis_domain_of.c (__nis_domain_of): New function.
8193 * include/rpcsvc/nislib.h (__nis_domain_of): New prototype.
8194 * nis/nis_lookup.c (nis_lookup): Use __nis_domain_of.
8195 * nis/nis_call.c (rec_dirsearch): Likewise.
8196 (first_shoot): Likewise. Remove search_parent_first argument.
8197 (struct nis_server_cache): Rename search_parent_first field
8199 (nis_server_cache_search, nis_server_cache_add): Rename
8200 search_parent_first argument to search_parent.
8201 (__nisfind_server): Likewise. If search_parent, call
8204 2007-04-18 Ulrich Drepper <drepper@redhat.com>
8206 * sysdeps/posix/getaddrinfo.c: Remove commented-out code.
8208 2007-04-17 Ulrich Drepper <drepper@redhat.com>
8211 * stdlib/stdlib.h: Remove obsolete part of comment for realpath.
8213 2007-04-16 Ulrich Drepper <drepper@redhat.com>
8216 * posix/unistd.h (_XOPEN_VERSION): Define appropriately for SUSv3.
8218 2007-04-15 Jakub Jelinek <jakub@redhat.com>
8220 * locale/programs/locarchive.c (INITIAL_NUM_NAMES,
8221 INITIAL_SIZE_STRINGS, INITIAL_NUM_LOCREC): Update to accomodate
8222 current number of locales in SUPPORTED.
8223 (create_archive): Initialize serial.
8224 (enlarge_archive): Preserve aliases rather than duplicating
8227 2007-04-13 Jakub Jelinek <jakub@redhat.com>
8229 * libio/genops.c (_IO_default_finish): Call _IO_lock_fini
8230 after _IO_un_link, not before it.
8232 * stdio-common/printf_fp.c (___printf_fp): Fix exponent -4
8233 special case handling when wcp == wstartp + 1. Fix a comment typo.
8234 * stdio-common/tfformat.c (sprint_doubles): Add a new testcase.
8236 2007-03-30 Jakub Jelinek <jakub@redhat.com>
8238 * libio/libio.h (__underflow, __uflow, __overflow, __wunderflow,
8239 __wuflow, __woverflow, _IO_getc, _IO_putc, _IO_peekc_locked, _IO_padn,
8240 _IO_sgetn, _IO_seekoff, _IO_seekpos, _IO_getwc, _IO_putwc, _IO_wpadn):
8242 * libio/fileops.c (new_do_write, _IO_file_xsgetn_mmap,
8243 _IO_file_xsgetn_maybe_mmap): Likewise.
8244 * libio/oldfileops.c (old_do_write): Likewise.
8245 * libio/libioP.h (_IO_switch_to_get_mode, _IO_switch_to_wget_mode,
8246 _IO_init_marker, _IO_init_wmarker, _IO_default_uflow,
8247 _IO_wdefault_uflow, _IO_default_setbuf, _IO_default_seekpos,
8248 _IO_do_write, _IO_new_do_write, _IO_old_do_write, _IO_wdo_write,
8249 _IO_flush_all_lockp, _IO_flush_all, _IO_cleanup,
8250 _IO_flush_all_linebuffered, _IO_new_fgetpos, _IO_old_fgetpos,
8251 _IO_new_fsetpos, _IO_old_fsetpos, _IO_new_fgetpos64,
8252 _IO_old_fgetpos64, _IO_new_fsetpos64, _IO_old_fsetpos64,
8253 _IO_file_setbuf, _IO_file_seekoff, _IO_file_xsputn, _IO_file_xsgetn,
8254 _IO_file_underflow, _IO_file_underflow_mmap,
8255 _IO_file_underflow_maybe_mmap, _IO_file_overflow, _IO_file_attach,
8256 _IO_file_open, _IO_file_fopen, _IO_file_write, _IO_file_read,
8257 _IO_file_sync, _IO_file_close_it, _IO_file_finish,
8258 _IO_new_file_attach, _IO_new_file_close_it, _IO_new_file_finish,
8259 _IO_new_file_fopen, _IO_new_file_setbuf, _IO_file_setbuf_mmap,
8260 _IO_new_file_sync, _IO_new_file_underflow, _IO_new_file_overflow,
8261 _IO_new_file_seekoff, _IO_new_file_write, _IO_new_file_xsputn,
8262 _IO_old_file_setbuf, _IO_old_file_seekoff, _IO_old_file_xsputn,
8263 _IO_old_file_underflow, _IO_old_file_overflow, _IO_old_file_attach,
8264 _IO_old_file_fopen, _IO_old_file_write, _IO_old_file_sync,
8265 _IO_old_file_close_it, _IO_old_file_finish, _IO_wfile_xsputn,
8266 _IO_wfile_setbuf, _IO_wfile_sync, _IO_wfile_underflow,
8267 _IO_wfile_overflow, _IO_wfile_seekoff, _IO_old_proc_open,
8268 _IO_old_proc_close, _IO_getdelim, _IO_flush_all_internal,
8269 _IO_adjust_column_internal, _IO_default_uflow_internal,
8270 _IO_default_xsgetn_internal, _IO_wdefault_xsputn_internal,
8271 _IO_wdefault_xsgetn_internal, _IO_wdefault_uflow_internal,
8272 _IO_file_setbuf_internal, _IO_file_seekoff_internal,
8273 _IO_file_xsputn_internal, _IO_file_xsgetn_internal,
8274 _IO_file_close_it_internal, _IO_file_underflow_internal,
8275 _IO_file_overflow_internal, _IO_file_attach_internal,
8276 _IO_file_fopen_internal, _IO_file_sync_internal,
8277 _IO_file_finish_internal, _IO_wfile_xsputn_internal,
8278 _IO_wfile_seekoff_internal, _IO_wfile_sync_internal,
8279 _IO_switch_to_wget_mode_internal, _IO_padn_internal,
8280 _IO_switch_to_get_mode_internal, _IO_seekoff_unlocked,
8281 _IO_seekpos_unlocked): Likewise.
8282 (_IO_strtod, _IO_dtoa, _IO_outfloat, _IO_read, _IO_write,
8283 _IO_lseek, _IO_close, _IO_fstat): Remove unused prototypes.
8285 2007-04-16 Jakub Jelinek <jakub@redhat.com>
8287 * locale/programs/locarchive.c (show_archive_content): Fix sizeof
8288 argument in xmalloc size computation.
8290 2007-04-01 Jakub Jelinek <jakub@redhat.com>
8292 * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl): Use
8293 math_opt_barrier and math_force_eval macros.
8295 2007-03-27 Jakub Jelinek <jakub@redhat.com>
8298 * math/math_private.h (math_opt_barrier, math_force_eval): Define.
8299 * sysdeps/i386/fpu/math_private.h: New file.
8300 * sysdeps/x86_64/fpu/math_private.h: New file.
8301 * math/s_nexttowardf.c (__nexttowardf): Use math_opt_barrier and
8302 math_force_eval macros. Use "+m" constraint on asm rather than
8304 * math/s_nextafter.c (__nextafter): Likewise.
8305 * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c (__nexttoward):
8307 * sysdeps/ieee754/flt-32/s_nextafterf.c (__nextafterf): Likewise.
8308 * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward): Likewise.
8309 * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
8310 * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Use
8311 math_opt_barrier and math_force_eval macros.
8312 * sysdeps/ieee754/ldbl-128/s_nextafterl.c (__nextafterl): Likewise.
8313 * sysdeps/ieee754/ldbl-96/s_nextafterl.c (__nextafterl): Likewise.
8314 * sysdeps/i386/fpu/s_nexttoward.c: Include float.h.
8315 (__nexttoward): Use math_opt_barrier and
8316 math_force_eval macros. Use "+m" constraint on asm rather than
8317 "=m" and "m". Only use asm to force double result if
8318 FLT_EVAL_METHOD is 2.
8319 * sysdeps/i386/fpu/s_nexttowardf.c: Include float.h.
8320 (__nexttowardf): Use math_opt_barrier and
8321 math_force_eval macros. Use "+m" constraint on asm rather than
8322 "=m" and "m". Only use asm to force double result if
8323 FLT_EVAL_METHOD is not 0.
8324 * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Include float.h.
8325 (__nexttowardf): Use math_opt_barrier and
8326 math_force_eval macros. If FLT_EVAL_METHOD is not 0, force
8327 x to float using asm.
8328 * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c: Include float.h.
8329 (__nldbl_nexttowardf): Use math_opt_barrier and
8330 math_force_eval macros. If FLT_EVAL_METHOD is not 0, force
8331 x to float using asm.
8332 * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Include float.h.
8333 (__nexttowardf): Use math_opt_barrier and math_force_eval
8334 macros. If FLT_EVAL_METHOD is not 0, force x to float using asm.
8335 * math/bug-nextafter.c (zero, inf): New variables.
8336 (main): Add new tests.
8337 * math/bug-nexttoward.c (zero, inf): New variables.
8338 (main): Add new tests.
8340 2007-03-22 Jakub Jelinek <jakub@redhat.com>
8343 * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Clear all
8344 exceptions both in SW and MXCSR.
8345 * sysdeps/x86_64/fpu/feupdateenv.c: New file.
8346 * sysdeps/x86_64/fpu/feenablxcpt.c (feenableexcept): Remove dead code.
8347 * sysdeps/x86_64/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
8348 * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions
8349 in MXCSR if SSE is available.
8350 * sysdeps/i386/fpu/feupdateenv.c: Include unistd.h, dl-procinfo.h
8352 (__feupdateenv): Query exceptions also from MXCSR if SSE is available.
8354 * sysdeps/ia64/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions.
8355 Return 0 rather than 1.
8356 * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Fix comment typo.
8357 Remove incorrect part of a comment. Fix argument to feraiseexcept.
8358 * math/test-fenv.c (feholdexcept_tests): New function.
8361 2007-01-05 Richard B. Kreckel <kreckel@ginac.de>
8364 * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions
8367 2007-04-13 Jakub Jelinek <jakub@redhat.com>
8370 * elf/ldconfig.c (search_dir): Fix 2 off-by-2 errors.
8371 Reported by David Anderson <davea42@earthlink.net>.
8373 2007-04-07 Ulrich Drepper <drepper@redhat.com>
8375 * posix/sys/wait.h: Remove unnecessary forward declaration.
8377 2007-04-05 Jakub Jelinek <jakub@redhat.com>
8379 * nis/nis_call.c (__nisfind_server): Replace (*dir)->do_servers
8380 with obj->do_servers after first_shoot.
8382 2007-04-03 Ulrich Drepper <drepper@redhat.com>
8384 * posix/Makefile (routines): Add sched_cpucount.
8385 (tests): Add tst-cpucount.
8386 * posix/sched_cpucount.c: New file.
8387 * posix/tst-cpucount.c: New file.
8388 * posix/Versions: Export __sched_cpucount with version GLIBC_2.6.
8389 * bits/sched.h: Define __CPU_COUNT. Declare __sched_cpucount.
8390 * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
8391 * posix/sched.h: Define CPU_COUNT.
8393 2007-03-27 Jakub Jelinek <jakub@redhat.com>
8395 * posix/fnmatch.c (STRUCT): Define.
8396 (fnmatch): Pass NULL as last argument to internal_fn{,w}match.
8397 * posix/fnmatch_loop.c (struct STRUCT): New type.
8398 (FCT): Add ends argument. If ends != NULL and normal * is
8399 seen in the pattern, store current pattern and string pointers
8400 and return. Adjust recursive calls.
8401 (EXT): Adjust FCT callers.
8402 (STRUCT): Undef at the end of the file.
8403 * posix/Makefile (tests): Add tst-fnmatch2.
8404 * posix/tst-fnmatch2.c: New test.
8406 2007-04-01 Jakub Jelinek <jakub@redhat.com>
8408 * sysdeps/ia64/fpu/fesetround.c (fesetround): Return 0 on success
8411 * sysdeps/unix/sysv/linux/sync_file_range.c (sync_file_range):
8412 Change last argument to unsigned int.
8414 2007-03-23 Jakub Jelinek <jakub@redhat.com>
8416 * scripts/check-local-headers.sh: Filter out sys/capability.h.
8418 2007-03-22 Jakub Jelinek <jakub@redhat.com>
8420 * config.h.in (HAVE_LIBCAP): Add.
8421 * nscd/selinux.h: Include sys/capability.h rather than non-existent
8423 * nscd/selinux.c (preserve_capabilities): Use cap_free instead of
8424 free_caps. Cast away const from 4th cap_set_flag argument.
8426 2007-03-26 Ulrich Drepper <drepper@redhat.com>
8428 * sysdeps/unix/sysv/linux/Versions: Move sync_file_range to
8430 * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
8431 Add sync_file_range.
8432 Reported by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
8434 2007-03-19 Steven Munroe <sjmunroe@us.ibm.com>
8436 * sysdeps/powerpc/bits/atomic.h
8437 [!MUTEX_HINT_ACQ]: Define MUTEX_HINT_ACQ.
8438 [!MUTEX_HINT_REL]: Define MUTEX_HINT_REL.
8439 (__arch_compare_and_exchange_val_32_acq): Add MUTEX_HINT_ACQ to lwarx.
8440 (__arch_compare_and_exchange_val_32_rel): Add MUTEX_HINT_REL to lwarx.
8441 (__arch_atomic_exchange_val_32_acq): Add MUTEX_HINT_ACQ to lwarx.
8442 (__arch_atomic_exchange_rel_32_rel): Add MUTEX_HINT_REL to lwarx.
8443 * sysdeps/powerpc/powerpc32/bits/atomic.h [_ARCH_PWR6 || _ARCH_PWR6X]:
8444 Define MUTEX_HINT_ACQ as ",1" and MUTEX_HINT_REL as ",0".
8445 (__arch_compare_and_exchange_bool_32_acq): Add MUTEX_HINT_ACQ to lwarx.
8446 (__arch_compare_and_exchange_bool_32_rel): Add MUTEX_HINT_REL to lwarx.
8447 * sysdeps/powerpc/powerpc64/bits/atomic.h [_ARCH_PWR6 || _ARCH_PWR6D]:
8448 Define MUTEX_HINT_ACQ as ",1" and MUTEX_HINT_REL as ",0".
8449 (__arch_compare_and_exchange_bool_32_acq): Add MUTEX_HINT_ACQ to lwarx.
8450 (__arch_compare_and_exchange_bool_32_rel): Add MUTEX_HINT_REL to lwarx.
8451 (__arch_compare_and_exchange_bool_64_acq): Add MUTEX_HINT_ACQ to lwarx.
8452 (__arch_compare_and_exchange_bool_64_rel): Add MUTEX_HINT_REL to lwarx.
8453 (__arch_compare_and_exchange_val_64_acq): Add MUTEX_HINT_ACQ to lwarx.
8454 (__arch_compare_and_exchange_val_64_rel): Add MUTEX_HINT_REL to lwarx.
8455 (__arch_atomic_exchange_val_64_acq): Add MUTEX_HINT_ACQ to lwarx.
8456 (__arch_atomic_exchange_rel_64_rel): Add MUTEX_HINT_REL to lwarx.
8458 2007-03-20 Jakub Jelinek <jakub@redhat.com>
8460 * sysdeps/unix/sysv/linux/powerpc/libc-start.c
8461 (__cache_line_size): Define the variable here. Add
8462 attribute_hidden, remove weak_extern.
8463 (__libc_start_main): Set __cache_line_size
8465 * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
8466 (__cache_line_size): Define the variable here. Add
8467 attribute_hidden, remove weak_extern.
8468 (DL_PLATFORM_AUXV): Set __cache_line_size
8470 * sysdeps/powerpc/powerpc32/dl-machine.c (__cache_line_size): Remove
8471 weak_extern, add attribute_hidden.
8472 (__elf_machine_runtime_setup): Assume __cache_line_size is always
8474 * sysdeps/powerpc/powerpc32/memset.S (__cache_line_size): Remove
8476 * sysdeps/powerpc/powerpc64/memset.S (__cache_line_size): Likewise.
8478 2007-03-26 Jakub Jelinek <jakub@redhat.com>
8481 * timezone/africa: Update from tzdata2007d.
8482 * timezone/asia: Likewise.
8483 * timezone/australasia: Likewise.
8484 * timezone/backward: Likewise.
8485 * timezone/europe: Likewise.
8486 * timezone/iso3166.tab: Likewise.
8487 * timezone/leapseconds: Likewise.
8488 * timezone/northamerica: Likewise.
8489 * timezone/southamerica: Likewise.
8490 * timezone/zone.tab: Likewise.
8492 * timezone/private.h: Update from tzcode2007d.
8493 * timezone/zdump.c: Likewise.
8494 * timezone/zic.c: Likewise.
8496 2007-03-21 Jakub Jelinek <jakub@redhat.com>
8498 * nis/nis_call.c: Include bits/libc-lock.h, sys/stat.h, unistd.h.
8499 (nis_server_cache, nis_server_cache_lock, nis_cold_start_mtime): New
8501 (nis_server_cache_search, nis_server_cache_add): New functions.
8502 (__nisfind_server): Use them. Add dbp and flags argument, if
8503 call __nisbind_create.
8504 (__nisbind_create): Add server_used and current_ep arguments,
8505 only call __nis_findfastest if server_used is ~0.
8506 (__do_niscall2, __prepare_niscall): Adjust callers.
8507 (ckey_cache, ckey_cache_size, ckey_cache_allocated, ckey_cache_pid,
8508 ckey_cache_euid, ckey_cache_lock): New variables.
8509 (get_ckey): New function.
8510 (__nisbind_connect): If not dbp->use_udp, pass IPPROTO_TCP to
8511 __pmap_getnisport. Save __pmap_getnisport result in
8512 dbp->addr.sin_port if non-zero. Use get_ckey to create conversation
8514 * nis/nis_lookup.c (nis_lookup): Likewise.
8515 * nis/nis_table.c (nis_list): Likewise.
8516 * nis/rpcsvc/nislib.h (__nisbind_create, __nisfind_server): Adjust
8519 * nis/nss_nisplus/nisplus-pwd.c (_nss_nisplus_getpwnam_r,
8520 _nss_nisplus_getpwuid_r): Pass USE_DGRAM flag to nis_list.
8521 * nis/nss_nisplus/nisplus-service.c (_nss_nisplus_getservbyname_r,
8522 _nss_nisplus_getservbyport_r): Likewise.
8523 * nis/nss_nisplus/nisplus-network.c (_nss_nisplus_getnetbyname_r,
8524 _nss_nisplus_getnetbyaddr_r): Likewise.
8525 * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_getspnam_r): Likewise.
8526 * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_gethostton_r,
8527 _nss_nisplus_getntohost_r): Likewise.
8528 * nis/nss_nisplus/nisplus-rpc.c (_nss_nisplus_getrpcbyname_r,
8529 _nss_nisplus_getrpcbynumber_r): Likewise.
8531 2007-03-20 Jakub Jelinek <jakub@redhat.com>
8533 * configure.in (libc_cv_gnu89_inline): Only do compile test.
8534 * configure: Rebuilt.
8536 * soft-fp/double.h (_FP_UNION_D): Use _FP_W_TYPE for frac
8538 * soft-fp/extended.h (_FP_UNION_E): Likewise.
8540 2006-06-07 Joseph Myers <joseph@codesourcery.com>
8543 * soft-fp/quad.h (_FP_UNION_Q): Use _FP_W_TYPE for frac
8546 2007-03-18 Jakub Jelinek <jakub@redhat.com>
8548 * nscd/gai.c: Include alloca.h.
8549 (__libc_use_alloca): Define.
8551 2007-03-16 Jakub Jelinek <jakub@redhat.com>
8553 * elf/dl-open.c (dl_open_worker): Declare l in 2 different
8555 * elf/dl-dst.h (DL_DST_REQ_STATIC): Add l as macro argument.
8556 (DL_DST_REQUIRED): Adjust user.
8558 * include/dlfcn.h (struct link_map): New forward decl.
8560 * inet/getnameinfo.c: Include stddef.h.
8561 (getnameinfo): Use offsetof.
8563 * time/tst-mktime2.c (do_test): Don't rely on signed wrap.
8565 * stdio-common/vfprintf.c (_itoa): Undef before redefining.
8567 * string/strerror_l.c: Include stdlib.h.
8569 * configure.in (libc_cv_gnu89_inline): Test for -fgnu89-inline.
8570 * config.make.in (gnu89-inline-CFLAGS): New variable.
8571 * Makeconfig (CFLAGS): Use $(gnu89-inline-CFLAGS) together with
8573 * misc/sys/cdefs.h (__extern_inline, __extern_always_inline): Define.
8574 * argp/argp.h: Use it.
8575 * bits/mathinline.h: Likewise.
8576 * bits/sigset.h: Likewise.
8577 * bits/string.h: Likewise.
8578 * ctype/ctype.h: Likewise.
8579 * hurd/hurd.h: Likewise.
8580 * hurd/hurd/fd.h: Likewise.
8581 * hurd/hurd/port.h: Likewise.
8582 * hurd/hurd/signal.h: Likewise.
8583 * hurd/hurd/threadvar.h: Likewise.
8584 * hurd/hurd/userlink.h: Likewise.
8585 * io/sys/stat.h: Likewise.
8586 * libio/bits/stdio.h: Likewise.
8587 * libio/bits/stdio2.h: Likewise.
8588 * mach/lock-intern.h: Likewise.
8589 * mach/mach/mig_support.h: Likewise.
8590 * math/bits/cmathcalls.h: Likewise.
8591 * posix/bits/unistd.h: Likewise.
8592 * socket/bits/socket2.h: Likewise.
8593 * stdlib/bits/stdlib.h: Likewise.
8594 * stdlib/stdlib.h: Likewise.
8595 * string/argz.h: Likewise.
8596 * string/bits/string2.h: Likewise.
8597 * string/bits/string3.h: Likewise.
8598 * sysdeps/alpha/fpu/bits/mathinline.h: Likewise.
8599 * sysdeps/generic/inttypes.h: Likewise.
8600 * sysdeps/generic/machine-lock.h: Likewise.
8601 * sysdeps/generic/machine-sp.h: Likewise.
8602 * sysdeps/i386/fpu/bits/mathinline.h: Likewise.
8603 * sysdeps/i386/i486/bits/string.h: Likewise.
8604 * sysdeps/ia64/fpu/bits/mathinline.h: Likewise.
8605 * sysdeps/mach/alpha/machine-lock.h: Likewise.
8606 * sysdeps/mach/alpha/machine-sp.h: Likewise.
8607 * sysdeps/mach/i386/machine-lock.h: Likewise.
8608 * sysdeps/mach/powerpc/machine-lock.h: Likewise.
8609 * sysdeps/mach/powerpc/machine-sp.h: Likewise.
8610 * sysdeps/powerpc/fpu/bits/mathinline.h: Likewise.
8611 * sysdeps/s390/bits/string.h: Likewise.
8612 * sysdeps/s390/fpu/bits/mathinline.h: Likewise.
8613 * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
8614 * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Likewise.
8615 * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
8616 * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
8617 * sysdeps/unix/sysv/linux/sys/sysmacros.h: Likewise.
8618 * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
8619 * wcsmbs/bits/wchar2.h: Likewise.
8620 * wcsmbs/wchar.h: Likewise.
8621 * stdlib/gmp.h: Likewise. Include <features.h> to get
8622 __extern_inline definition.
8624 2007-03-15 Jakub Jelinek <jakub@redhat.com>
8626 * locale/programs/ld-ctype.c (find_translit): Return NULL if ctype is
8630 * math/libm-test.inc (log_test): Test -Inf and NaN.
8631 (log10_test, log1p_test, log2_test): Test -Inf.
8632 * sysdeps/i386/fpu/e_log.S (__ieee754_log): Don't raise
8633 FE_INVALID when argument is qNaN.
8634 * sysdeps/i386/fpu/e_logl.S (__ieee754_logl): Likewise.
8635 * sysdeps/i386/fpu/e_logf.S (__ieee754_logf): Likewise.
8636 * sysdeps/x86_64/fpu/e_logl.S (__ieee754_logl): Likewise.
8637 * sysdeps/x86_64/fpu/e_log10l.S (__ieee754_log10l): Replace
8638 andb $1, %ah with testb $1, %ah, don't test for parity, instead
8639 testb $4, %ah and jump if non-zero.
8640 * sysdeps/x86_64/fpu/e_log2l.S (__ieee754_log2l): Likewise.
8641 * sysdeps/x86_64/fpu/s_log1pl.S (__log1pl): Likewise.
8644 * argp/argp-help.c (hol_cluster_cmp): Fix comparisons used to find
8645 ancestors with the same depths.
8646 Patch by Niels Moeller <nisse@lysator.liu.se>.
8647 (filter_doc): Don't crash if argp is NULL.
8648 * argp/Makefile (tests): Add tst-argp2.
8649 * argp/tst-argp2.c: New test.
8652 * login/utmp_file.c (setutent_file): Use O_LARGEFILE for
8654 (updwtmp_file): Likewise.
8657 * inet/inet6_opt.c (add_padding): Only insert padding if npad > 0.
8658 (inet6_opt_append): Don't check extlen is big enough if extbuf
8660 (inet6_opt_finish): Likewise.
8661 * inet/Makefile (tests): Add test-inet6_opt.
8662 * inet/test-inet6_opt.c: New test.
8664 * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Never
8665 reallocate the buffer, instead fail for MSG_TRUNC or for EBUSY
8666 NLMSG_ERR. Instead use a page sized buffer.
8667 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Use page sized
8670 2007-03-14 Richard Henderson <rth@redhat.com>
8672 * sysdeps/alpha/fpu/s_llround.c: New file.
8673 * sysdeps/alpha/fpu/s_llroundf.c: New file.
8674 * sysdeps/alpha/fpu/s_lround.c: New file.
8675 * sysdeps/alpha/fpu/s_lroundf.c: New file.
8676 * sysdeps/alpha/fpu/s_round.c: New file.
8677 * sysdeps/alpha/fpu/s_roundf.c: New file.
8678 * sysdeps/alpha/fpu/s_trunc.c: New file.
8679 * sysdeps/alpha/fpu/s_truncf.c: New file.
8681 * sysdeps/alpha/fpu/s_ceil.c: Rewrite without branches.
8682 * sysdeps/alpha/fpu/s_ceilf.c: Likewise.
8683 * sysdeps/alpha/fpu/s_floor.c: Likewise.
8684 * sysdeps/alpha/fpu/s_floorf.c: Likewise.
8685 * sysdeps/alpha/fpu/s_rint.c: Likewise.
8686 * sysdeps/alpha/fpu/s_rintf.c: Likewise.
8688 * sysdeps/alpha/fpu/s_fmax.S: New file.
8689 * sysdeps/alpha/fpu/s_fmaxf.S: New file.
8690 * sysdeps/alpha/fpu/s_fmin.S: New file.
8691 * sysdeps/alpha/fpu/s_fminf.S: New file.
8692 * sysdeps/alpha/fpu/s_isnan.c: New file.
8693 * sysdeps/alpha/fpu/s_isnanf.c: New file.
8694 * sysdeps/alpha/fpu/s_llrint.c: New file.
8695 * sysdeps/alpha/fpu/s_llrintf.c: New file.
8696 * sysdeps/alpha/fpu/s_lrint.c: New file.
8697 * sysdeps/alpha/fpu/s_lrintf.c: New file.
8698 * sysdeps/alpha/fpu/s_nearbyint.c: New file.
8699 * sysdeps/alpha/fpu/s_nearbyintf.c: New file.
8701 * sysdeps/alpha/fpu/bits/mathinline.h (__floorf, __floor): Remove.
8702 (__fdimf, fdimf, __fdim, fdim): Remove.
8703 (__signbitf, __signbit, __signbitl): Use gcc builtin if available.
8704 (__isnanf, __isnan, __isnanl): New.
8706 2007-03-13 Richard Henderson <rth@redhat.com>
8708 * sysdeps/ieee754/ldbl-128/Makefile: New file.
8710 2007-03-13 Richard Henderson <rth@redhat.com>
8712 * sysdeps/alpha/Makefile (sysdep-CFLAGS): Force dynamic rounding.
8713 * sysdeps/alpha/fpu/bits/mathinline.h (__signbitl): New.
8714 * sysdeps/alpha/fpu/libm-test-ulps: Regenerate.
8715 * sysdeps/unix/sysv/linux/alpha/alphaev6/fpu/Implies: New file.
8716 * sysdeps/unix/sysv/linux/alpha/alphaev67/fpu/Implies: New file.
8717 * sysdeps/unix/sysv/linux/alpha/fpu/Implies: New file.
8719 2007-03-13 Richard Henderson <rth@redhat.com>
8721 * elf/dl-support.c (_dl_aux_init): Honor DL_PLATFORM_AUXV.
8722 * sysdeps/unix/sysv/linux/alpha/dl-auxv.h: New file.
8723 * sysdeps/unix/sysv/linux/alpha/dl-support.c: New file.
8724 * sysdeps/unix/sysv/linux/alpha/dl-sysdep.c (__libc_alpha_cache_shape):
8725 Move to dl-auxv.h; initialize instead of extern weak.
8726 (DL_PLATFORM_AUXV): Move to dl-auxv.h; don't test for undef
8728 * sysdeps/unix/sysv/linux/alpha/sysconf.c (__libc_alpha_cache_shape):
8729 Extern instead of initialized.
8731 2007-03-13 Richard Henderson <rth@redhat.com>
8733 * sysdeps/unix/sysv/linux/alpha/sigsuspend.S: Add support for
8734 __sigsuspend_nocancel.
8736 2007-03-06 Ulrich Drepper <drepper@redhat.com>
8738 * sysdeps/posix/getaddrinfo.c (get_scope): Correct test for
8739 172.16/12 address range.
8741 2007-03-02 Jakub Jelinek <jakub@redhat.com>
8743 * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Retry with
8744 a new netlink socket if NLMSG_ERR -EBUSY is seen after some MSG_TRUNC
8747 2007-03-01 Jakub Jelinek <jakub@redhat.com>
8750 * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Check for NaN
8752 * math/libm-test.inc (pow_test): Add more tests involving NaNs.
8754 * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Avoid invalid exception
8755 for x qNaN and y either +-inf or non-integer value.
8756 * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Likewise.
8757 * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.
8758 * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
8760 2007-02-10 Mike Frysinger <vapier@gentoo.org>
8762 * sysdeps/unix/sysv/linux/sh/Makefile: Remove sys/io.h
8763 from sysdep_headers.
8765 2007-02-28 Jakub Jelinek <jakub@redhat.com>
8767 * time/tzfile.c (find_transition): Instead of a linear search try to
8768 guess the transition index, use a linear search if the result is at
8769 most 10 transitions away from the guess or binary search otherwise.
8771 2007-02-27 Jakub Jelinek <jakub@redhat.com>
8773 * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Fix
8774 memory reallocation.
8776 2007-02-21 Ulrich Drepper <drepper@redhat.com>
8778 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Add branch predictions
8780 Optimize use of TOLOWER.
8783 * sysdeps/i386/fpu/e_fmodf.S: Revert last changes, keep using fprem.
8784 * sysdeps/i386/fpu/e_fmodl.c: Likewise.
8785 * sysdeps/i386/fpu/e_fmod.S: Likewise.
8788 * sysdeps/unix/sysv/linux/posix_madvise.c: New file.
8789 * sysdeps/unix/sysv/linux/syscalls.list: Remove posix_madvise entry.
8792 * io/ftw.c (ftw_startup): Handle special case of FTW_CHDIR in /.
8793 (open_dir_stream): Likewise.
8794 * io/Makefile (tests): Add bug-ftw5.
8795 * io/bug-ftw5.c: New file.
8797 * nscd/hstcache.c (cache_addhst): Remove unnecessary conditional.
8798 * nscd/servicescache.c (cache_addserv): Likewise.
8800 * nscd/grpcache.c (cache_addgr): In case a record changed on
8801 refresh, adjust key_copy.
8804 * nscd/pwdcache.c (cache_addpw): In case a record changed on
8805 refresh, adjust key_copy.
8808 * stdio-common/printf_fp.c (___printf_fp): Handle a few more
8810 * stdio-common/tfformat.c (sprint_doubles): Some more tests.
8812 2007-02-19 Ulrich Drepper <drepper@redhat.com>
8814 * stdio-common/printf_fp.c (___printf_fp): Cleanups and minor
8817 * stdio-common/vfscanf.c: Small cleanups throughout.
8819 2007-02-18 Ulrich Drepper <drepper@redhat.com>
8822 * sysdeps/i386/fpu/e_fmodf.S: Use fprem1 instead of fprem.
8823 * sysdeps/i386/fpu/e_fmodl.c: Likewise.
8824 * sysdeps/i386/fpu/e_fmod.S: Likewise.
8825 Patch by Jared Casper <jaredcasper@gmail.com>.
8827 * sysdeps/unix/closedir.c: Outside libc don't use locking.
8828 * sysdeps/unix/opendir.c: Likewise.
8829 * sysdeps/unix/readdir.c: Likewise.
8832 * stdio-common/vfscanf.c: Handle localized digits etc for floating
8834 Patch mostly by Hamed Malek <hamed@farsiweb.info>.
8836 * stdio-common/vfscanf.c: Fix problems in width accounting.
8837 * stdio-common/tst-sscanf.c (double_tests): New tests.
8838 (main): Hook them up.
8840 * stdio-common/vfscanf.c: Remove unused WIDTH handling.
8841 More simplifications of floating-point reader.
8843 * stdio-common/Makefile (tests): Add tst-swscanf.
8844 * stdio-common/tst-sscanf.c: Make tests usable for swscanf
8846 * stdio-common/tst-swscanf.c: New file.
8848 2007-02-17 Ulrich Drepper <drepper@redhat.com>
8851 * libio/stdio.h: Define struct _IO_FILE in global namespace.
8852 * setjmp/setjmp.h: Define __jmp_buf_tag in global namespace.
8853 Remove using for __jmp_buf_tag.
8854 * locale/locale.h (struct lconv): Also define in std namespace.
8855 * wcsmbs/wchar.h: Move using declaration for tm out of namespace.
8858 * sysdeps/posix/euidaccess.c [_LIBC] (euidaccess): Remove shortcut
8859 using __libc_enable_secure.
8862 * sysdeps/unix/sysv/linux/sys/acct.h (struct acct_v3): Define.
8865 * locale/programs/ld-collate.c (handle_ellipsis): Fix generation
8866 of names for ellipsises.
8869 * malloc/memusage.sh: Cleanups.
8870 * debug/xtrace.sh: Quoting and trap changes.
8872 2007-02-16 Ulrich Drepper <drepper@redhat.com>
8874 * locale/iso-3166.def: Add Jersey, Guernsey, and Isle Of Man entries.
8876 * locale/iso-3166.def: Update entry for Serbia.
8877 * locale/iso-4217.def: Define RSD, remove CSD.
8879 * sysdeps/x86_64/bits/atomic.h: One more change, this time for 16-
8880 and 64-bit operations.
8883 * sysdeps/i386/i486/bits/atomic.h: One more change, this time for
8886 * nscd/nscd.c (parse_opt): One more conversion to use send instead
8889 2007-02-15 Ulrich Drepper <drepper@redhat.com>
8892 * assert/assert.h (assert): Simplify.
8893 (assert_perror): Likewise.
8894 Patch by Israel G. Lugo <ilugo@bridonsecurity.com>.
8896 * nscd/nscd_helper.c (open_socket): Don't send padding bytes from
8899 * sysdeps/unix/sysv/linux/x86_64/send.c (__libc_send): Cosmetic
8900 change: don't pass NULL in place of an integer.
8902 2007-02-02 Bruno Haible <bruno@clisp.org>
8905 * iconvdata/ksc5601.c (__ksc5601_sym_to_ucs, __ksc5601_sym_from_ucs):
8906 Add mapping for U+327E.
8907 * iconvdata/ksc5601.h (KSC5601_SYMBOL): Increment.
8908 * iconvdata/johab.c (BODY for FROM_LOOP, BODY for TO_LOOP): Enable
8909 mapping of 0xD9 0xE8.
8910 * iconvdata/uhc.c (BODY for FROM_LOOP, BODY for TO_LOOP): Disable
8912 Reported by Jungshik Shin <jungshik@google.com>.
8915 * iconvdata/johab.c (BODY for FROM_LOOP, BODY for TO_LOOP): Enable
8916 mapping of 0xD9 0xE6 and of 0xD9 0xE7.
8917 Reported by Jungshik Shin <jungshik@google.com>.
8919 2007-02-14 Ulrich Drepper <drepper@redhat.com>
8921 * sysdeps/x86_64/bits/atomic;h: Fix asm parameters for some
8925 * sysdeps/i386/i486/bits/atomic.h: Fix asm parameters for some
8926 byte variants. Patch mostly be tom@tommay.net.
8928 2007-02-14 Jakub Jelinek <jakub@redhat.com>
8931 * posix/glob.c (attribute_hidden): Define if not defined.
8932 (glob): Unescape dirname, filename or username when needed and not
8933 GLOB_NOESCAPE. Handle \/ correctly. Handle GLOB_MARK if filename
8934 is NULL. Handle unescaped [ in pattern without closing ].
8935 Don't pass GLOB_CHECK down to recursive glob for directories.
8936 (__glob_pattern_type): New function.
8937 (__glob_pattern_p): Implement using __glob_pattern_type.
8938 (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
8939 characters and backslashes if not GLOB_NOESCAPE or unterminated [.
8940 Remove unreachable code.
8941 * posix/globtest.sh: Add a couple of new tests.
8943 2007-02-13 Ulrich Drepper <drepper@redhat.com>
8945 * po/ru.po: Update from translation team.
8947 2007-02-12 Jakub Jelinek <jakub@redhat.com>
8949 * sysdeps/i386/bits/byteswap.h (__bswap_32): Add __amdfam10__
8950 to the list of i486+ CPUs.
8951 * sysdeps/x86_64/bits/byteswap.h (__bswap_32): Likewise.
8953 2007-02-12 Ulrich Drepper <drepper@redhat.com>
8955 * elf/rtld.c (RESOLVE_MAP): Always return bootstrap_map reference.
8956 * elf/Makefile ($(objpfx)ld.so): Check that ld.so has no undefined
8959 2007-02-09 Ulrich Drepper <drepper@redhat.com>
8961 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Remove incorrect comment.
8963 * resolv/res_init.c (res_setoptions): Recognize edns0 option.
8964 * resolv/res_mkquery.c: Define __res_nopt.
8965 * resolv/res_query.c (__libc_res_nquery): If RES_USE_EDNS0 is set
8966 try adding EDNS0 record.
8967 * resolv/res_send.c (send_dg): If request failed with FORMERR and
8968 EDNS0 record was send make sure we don't try it again.
8969 * resolv/resolv.h: Define RES_F_EDNS0ERR and RES_USE_EDNS0.
8970 * include/resolv.h: Declare __res_nopt.
8972 2007-02-08 Jakub Jelinek <jakub@redhat.com>
8975 * time/strptime_l.c (__strptime_internal): Set have_mon for
8976 %b/%B/%h. Set have_mon and have_mday if tm_mon and tm_mday
8977 have been computed from tm_yday and tm_year. Don't crash
8978 in day_of_the_week or day_of_the_year if not have_mon
8979 and tm_mon contains bogus value.
8980 * time/Makefile (tests): Add tst-strptime3.
8981 * time/tst-strptime3.c: New test.
8983 2007-02-05 Jakub Jelinek <jakub@redhat.com>
8986 * posix/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
8987 bit for RE_HAT_LISTS_NOT_NEWLINE.
8988 (build_charclass_op): Remove bogus comment.
8989 * posix/Makefile (tests): Add bug-regex27 and bug-regex28.
8990 * posix/bug-regex27.c: New test.
8991 * posix/bug-regex28.c: New test.
8993 2007-02-03 Ulrich Drepper <drepper@redhat.com>
8995 * po/sv.po: Update from translation team.
8997 2007-02-02 Ulrich Drepper <drepper@redhat.com>
8999 * nscd/nscd_helper.c (open_socket): Minor size optimization.
9001 2007-02-02 Jakub Jelinek <jakub@redhat.com>
9003 * include/locale.h (__uselocale): Add libc_hidden_proto.
9004 * locale/uselocale.c (__uselocale): Add libc_hidden_def.
9006 * nscd/nscd_helper.c (open_socket): Use __gettimeofday instead of
9009 2007-02-01 Ulrich Drepper <drepper@redhat.com>
9011 * sysdeps/unix/sysv/linux/i386/sysdep.h (PTR_MANGLE): Roll value before
9013 (PTR_DEMANGLE): Real definition now that it's not the same as
9015 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
9017 * string/strerror_l.c: New file.
9018 * string/Makefile (routines): Add strerror_l.
9019 * string/string.h: Declare strerror_l.
9020 * string/Versions: Export strerror_l for GLIBC_2.6.
9022 2007-01-31 Ulrich Drepper <drepper@redhat.com>
9024 * nscd/nscd_helper.c (open_socket): Now takes request type and key
9025 as parameter. Construct request record. Try sending request
9026 before the first poll use, it usually succeeds. Adjust all
9028 * nscd/nscd-client.h: Define MAXKEYLEN.
9029 * nscd/connections.c (nscd_run): Don't define MAXKEYLEN here.
9031 2007-01-31 Jakub Jelinek <jakub@redhat.com>
9033 * nscd/nscd-client.h (__nscd_cache_search): Remove const qualifier
9035 * nscd/nscd_helper.c: Include string.h.
9036 (__nscd_cache_search): Remove const qualifier from return value.
9037 On strict alignment architectures check hash entry and data head
9039 * nscd/nscd_getpw_r.c (nscd_getpw_r): Don't crash or fail because
9040 mmapped data during GC cycle contains garbage. If
9041 __nscd_drop_map_ref fails, decrement mapped->counter when returning
9042 error or if retrying with NO_MAPPING, only __nscd_unmap if counter
9044 * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
9045 * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
9046 * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
9047 * nscd/nscd_getai.c (__nscd_getai): Likewise.
9048 * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
9050 2007-01-30 Ulrich Drepper <drepper@redhat.com>
9052 * misc/hsearch_r.c (hdestroy_r): Remove unnecessary test.
9054 2007-01-26 Ulrich Drepper <drepper@redhat.com>
9056 * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Use register
9057 names not numbers in cfi_*.
9059 2007-01-26 Andreas Jaeger <aj@suse.de>
9061 * sysdeps/unix/sysv/linux/sys/personality.h (ADDR_NO_RANDOMIZE,
9062 ADDR_LIMIT_3GB, PER_LINUX_32BIT, PER_LINUX32_3GB): Add.
9063 Correct values of PER_HPUX and PER_OSF4.
9065 2007-01-24 Ulrich Drepper <drepper@redhat.com>
9067 * elf/dl-minimal.c: Undefine _itoa first.
9068 * stdio-common/_itoa.h: Define _itoa and _fitoa for 64-bit platforms.
9069 * malloc/mtrace.c: Revert last change.
9070 * posix/wordexp.c: Likewise.
9072 2007-01-24 Jakub Jelinek <jakub@redhat.com>
9074 * sysdeps/i386/bits/byteswap.h (__bswap_32): Add __nocona__, __core2__
9075 and __geode__ to the list of i486+ CPUs.
9076 * sysdeps/x86_64/bits/byteswap.h (__bswap_32): Likewise.
9078 2007-01-23 Ulrich Drepper <drepper@redhat.com>
9080 * stdio-common/_itoa.c: Include <limits.h>.
9081 * stdio-common/_itowa.c: Likewise.
9083 2007-01-22 Ulrich Drepper <drepper@redhat.com>
9085 * stdio-common/_itowa.c: Don't compile _itowa for 64-bit
9087 * stdio-common/_itoa.c: Don't compile in _itoa and _fitoa for
9089 * malloc/mtrace.c (tr_where): Use _fitoa_word instead of _fitoa if
9091 * posix/wordexp.c (parse_arith): Use _itoa_word instead of _itoa
9095 * stdio-common/_itoa.c (_itoa): Make sure at least a zero is emitted.
9096 * stdio-common/Makefile (tests): Add bug17.
9097 * stdio-common/bug17.c: New file.
9099 2007-01-19 Ulrich Drepper <drepper@redhat.com>
9101 * iconvdata/brf.c: New file.
9102 * iconvdata/testdata/BRF: New file.
9103 * iconvdata/testdata/BRF..UTF8: New file.
9104 Contributed by Samuel Thibault <samuel.thibault@ens-lyon.org>.
9105 * iconvdata/Makefile: Add rules to build BRF.
9106 * iconvdata/TESTS: Add BRF entry.
9107 * iconvdata/gconv-modules: Likewise.
9108 * iconvdata/tst-tables.sh: Likewise.
9110 2007-01-18 Anton Nikishaev <anton.nik@gmail.com>
9112 * wcsmbs/wchar.h (wcstoll): Fix comment, function returns value of
9113 type `long long int', not `long int'.
9116 2007-01-18 Ulrich Drepper <drepper@redhat.com>
9118 * scripts/gen-as-const.awk: Add cast to long to avoid int promotion
9119 of values on 64-bit platforms which are too large.
9121 2007-01-12 Steven Munroe <sjmunroe@us.ibm.com>
9122 Joe Kerian <jkerian@us.us.ibm.com>
9125 * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Include
9126 <math_ldbl_opt.h>. Remove weak_alias. Use long_double_symbol macro.
9127 (__copysignl): Use signbit() for comparison.
9128 * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Correct parms for
9129 SET_LDOUBLE_WORDS64.
9132 * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Don't include <fenv_libc.h>.
9133 (__ceill): Remove calls to fegetround(), fesetround().
9134 * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
9135 * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
9136 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
9138 2007-01-17 Jakub Jelinek <jakub@redhat.com>
9140 * nscd/nscd_getserv_r.c (nscd_getserv_r): Fix pastos.
9142 * sysdeps/unix/sysv/linux/getdents.c (offsetof): Remove.
9144 2007-01-17 Ulrich Drepper <drepper@redhat.com>
9146 * sysdeps/unix/sysv/linux/fatal-prepare.h: Use PTHFCT_CALL to
9148 * csu/libc-start.c: Likewise.
9150 2007-01-16 Ulrich Drepper <drepper@redhat.com>
9152 * sysdeps/posix/system.c: Remove NO_WAITPID support, it cannot
9155 2007-01-15 Ulrich Drepper <drepper@redhat.com>
9157 * nscd/connections.c (servinfo): Renamed to reqinfo. Change all
9159 (handle_request): Remove unnecessary tests.
9161 * nscd/cache.c (cache_add): Record the failure to add to the cache.
9163 2007-01-15 Jakub Jelinek <jakub@redhat.com>
9165 * soft-fp/op-common.h (FP_TRUNC): When truncating a NaN, clear
9166 workbits in semi-raw fraction.
9168 * math/test-misc.c: Add new tests.
9170 2007-01-14 Steven Munroe <sjmunroe@us.ibm.com>
9172 * math/basic-test.c: Include test-skeleton.c.
9173 (TEST_TRUNC): Define.
9174 (truncdfsf_test, trunctfsf_test, trunctfdf_test): New.
9175 (main): Rename to ...
9176 (do_test): ...this. Run new tests.
9177 (TEST_FUNCTION): Define.
9179 2006-10-05 Steven Munroe <sjmunroe@us.ibm.com>
9180 Joe Kerian <jkerian@us.us.ibm.com>
9183 * soft-fp/op-4.h (__FP_FRAC_SUB_3, __FP_FRAC_SUB_4): Correct borrow
9184 handling for high words.
9185 * soft-fp/op-common.h (_FP_OVERFLOW_SEMIRAW): Always set inexact
9186 and overflow for infinity.
9188 2007-01-15 Ulrich Drepper <drepper@redhat.com>
9190 * nscd/connections.c (handle_request): Add a __builtin_expect.
9192 * nscd/connections.c (serv2db): Change type into structure which
9193 also says whether this is a request for data. Renamed to
9194 servinfo. All users changed.
9195 (handle_request): Much simpler test whether we should search the cache.
9197 * nscd/connections.c (handle_request): Fix thinko in selinux test
9200 * sysdeps/generic/ldsodefs.h: Define DL_LOOKUP_SCOPE_LOCK.
9201 * elf/dl-lookup.c (add_dependency): If scope map is locked, unlock
9202 it before getting dl_load_lock and then relock.
9203 (_dl_lookup_symbol_x): Pass flags to add_dependency.
9204 When rerunning _dl_lookup_symbol_x, compute symbol_scope again in
9205 case we unlocked the scope.
9206 * elf/dl-runtime.c (_dl_fixup): Pass DL_LOOKUP_SCOPE_LOCK to
9207 _dl_lookup_symbol_x in case we locked the scope.
9208 (_dl_profile_fixup): Likewise.
9209 * elf/dl-sym.c (do_sym): In flags passed to call_dl_lookup, also
9210 set DL_LOOKUP_SCOPE_LOCK.
9212 2007-01-13 Ulrich Drepper <drepper@redhat.com>
9214 * inet/Makefile: Define CFLAGS-getsrvbynm_r.c and
9215 CFLAGS-getsrvbynpt_r.c.
9216 * nscd/getsrvbynm_r.c: New file.
9217 * nscd/getsrvbypt_r.c: New file.
9218 * nscd/nscd_getserv_r.c: New file.
9219 * nscd/servicescache.c: New file.
9220 * nscd/Makefile (routines): Add nscd_getserv_r.
9221 (nscd-modules): Add getsrvbynm_r, getsrvbypt_r, and servicescache.
9222 Define CFLAGS-servicescache.c, CFLAGS-getsrvbynm_r.c, and
9223 CFLAGS-getsrvbypt_r.c.
9224 * nscd/cache.c (prune_cache): Rewrite to get re-add function from
9225 table. Add entries for services database.
9226 * nscd/connections.c (serv2str): Mark as const. Add entries for
9228 (dbs): Add .reset_res and servdb initialization.
9229 (serv2db): Add entries for services database.
9230 (verify_persistent_db): Accept dbnr == servdb.
9231 (invalidate_cache): Rewrite database name recognition to use a table.
9232 Call res_init() if .reset_res is set for database.
9233 (handle_request): Add code to handle services database.
9234 * nscd/gai.c: Don't define __getservbyname_r.
9235 * nscd/nscd-client.h (request_type): Remove LASTDBREQ, add
9236 GETSERVBYNAME, GETSERVBYPORT, GETFDSERV.
9237 (serv_response_header): Define.
9238 (struct datahead): Add serv_response_header member.
9239 * nscd/nscd.c (parse_opt): Rewrite parsing of -i parameter value
9241 * nscd/nscd.conf: Add entries for services database.
9242 * nscd/nscd.h: Adjust declaration of dbnames and serv2str.
9243 Declare serv_iov_disabled.
9244 Declare addservbyname, readdservbyname, addservbyport, and
9246 * nscd/nscd_conf.c (dbnames): Mark as const. Add services entry.
9247 (find_db): Fix error message.
9248 * nscd/nscd_proto.h: Declare __nss_not_use_nscd_services,
9249 __nscd_getservbyname_r, and __nscd_getservbyport_r.
9250 * nscd/selinux.c (perms): Add entries for services database.
9251 * nss/Versions: Export __nss_services_lookup with GLIBC_PRIVATE.
9252 * nss/nsswitch.c (__nss_disable_nscd): Also disable services database.
9254 * nscd/grpcache.c: Remove obsolete code. Cleanups.
9255 * nscd/hstcache.c: Likewise.
9256 * nscd/pwdcache.c: Likewise.
9258 * nis/nss_nis/nis-service.c (_nss_nis_getservbyname_r): Correct
9259 computation of keylen.
9261 * include/string.h: Only redefine strndupa if this is really for
9264 2007-01-12 Ulrich Drepper <drepper@redhat.com>
9266 * nscd/nscd_gethst_r.c: Minor cleanups.
9268 * nscd/connections.c (handle_request): Check selinux permissions
9269 for all non-admin commands.
9271 * sysdeps/i386/i486/bits/atomic.h: Define
9272 atomic_compare_and_exchange_val_acq,
9273 atomic_compare_and_exchange_bool_acq, and atomic_exchange_and_add
9274 using __sync_* built-ins for gcc >= 4.1.
9275 * sysdeps/x86_64/bits/atomic.h: Likewise.
9278 * scripts/check-local-headers.sh: Restrict to testing .o.d, .os.d,
9281 2007-01-05 Steven Munroe <sjmunroe@us.ibm.com>
9283 * stdlib/tst-makecontext.c: Include errno.h. Change main()
9284 to do_test(). Define TEST_FUNCTION. Include test-skeleton.c.
9285 (do_test): Check errno and exit(0) if ENOSYS.
9287 2007-01-11 Jakub Jelinek <jakub@redhat.com>
9289 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix handling of multi-byte
9290 thousands separators.
9291 * stdlib/Makefile: Add rules to build and run tst-strtod4.
9292 * stdlib/tst-strtod4.c: New test.
9295 * stdlib/strtod_l.c (____STRTOF_INTERNAL): 0x. not followed by
9296 hexadecimal digit should accept just the initial 0.
9297 * stdlib/tst-strtod2.c (tests): New variable.
9298 (do_test): Run several tests rather than just one.
9300 2007-01-11 Jakub Jelinek <jakub@redhat.com>
9302 * sysdeps/i386/soft-fp/sfp-machine.h: Remove.
9303 * sysdeps/x86_64/soft-fp/sfp-machine.h: Likewise.
9305 2007-01-10 Ulrich Drepper <drepper@redhat.com>
9307 * io/fts.c: Make sure fts_cur is always valid after return from
9309 Patch by Miloslav Trmac <mitr@redhat.com>.
9311 2006-10-27 Richard Sandiford <richard@codesourcery.com>
9313 * elf/elf.h (R_MIPS_GLOB_DAT): Define.
9314 (R_MIPS_NUM): Bump by 1.
9316 2007-01-03 Jakub Jelinek <jakub@redhat.com>
9318 * posix/execvp.c: Include alloca.h.
9319 (allocate_scripts_argv): Renamed to...
9320 (scripts_argv): ... this. Don't allocate buffer here nor count
9322 (execvp): Use alloca if possible.
9323 * posix/Makefile: Add rules to build and run tst-vfork3 test.
9324 * posix/tst-vfork3.c: New test.
9326 2007-01-03 Ulrich Drepper <drepper@redhat.com>
9328 * string/Makefile (tst-strxfrm2-ENV): Define.
9329 * stdlib/Makefile (tst-strtod3-ENV): Define.
9331 2007-01-02 Ulrich Drepper <drepper@redhat.com>
9333 * posix/getconf.c: Update copyright year.
9334 * nss/getent.c: Likewise.
9335 * iconv/iconvconfig.c: Likewise.
9336 * iconv/iconv_prog.c: Likewise.
9337 * elf/ldconfig.c: Likewise.
9338 * catgets/gencat.c: Likewise.
9339 * csu/version.c: Likewise.
9340 * elf/ldd.bash.in: Likewise.
9341 * elf/sprof.c (print_version): Likewise.
9342 * locale/programs/locale.c: Likewise.
9343 * locale/programs/localedef.c: Likewise.
9344 * nscd/nscd.c (print_version): Likewise.
9345 * debug/xtrace.sh: Likewise.
9346 * malloc/memusage.sh: Likewise.
9347 * malloc/mtrace.pl: Likewise.
9348 * debug/catchsegv.sh: Likewise.
9350 2006-12-24 Ulrich Drepper <drepper@redhat.com>
9352 * malloc/malloc.c (sYSMALLOc): Remove some unnecessary alignment
9355 2006-12-23 Ulrich Drepper <drepper@redhat.com>
9357 * posix/wordexp.c: Remove some unnecessary tests.
9359 2006-12-22 Gavin Romig-Koch <gavin@redhat.com>
9361 * nis/nss_compat/compat-grp.c (internal_getgrgid_r): Don't
9362 blacklist the group till after we look it up.
9364 2006-12-21 Ulrich Drepper <drepper@redhat.com>
9366 * include/atomic.h (atomic_forced_read): New macro.
9368 2006-12-20 SUGIOKA Toshinobu <sugioka@itonet.co.jp>
9370 * sysdeps/unix/sysv/linux/sh/bits/shm.h: New file.
9372 2006-12-19 Jakub Jelinek <jakub@redhat.com>
9374 * nss/getXXbyYY_r.c: Include atomic.h.
9375 (INTERNAL (REENTRANT_NAME)): Write startp after start_fct,
9376 add atomic_write_barrier () in between.
9378 * stdlib/Makefile (tests): Add tst-makecontext.
9379 * stdlib/tst-makecontext.c: New test.
9381 * sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S
9382 (__makecontext): Don't realign uc_mcontext.uc_regs.
9384 2006-11-28 Jakub Jelinek <jakub@redhat.com>
9386 * elf/dl-support.c: Include dl-procinfo.h.
9387 * sysdeps/powerpc/dl-procinfo.h (PPC_PLATFORM_POWER4,
9388 PPC_PLATFORM_PPC970, PPC_PLATFORM_POWER5, PPC_PLATFORM_POWER5_PLUS,
9389 PPC_PLATFORM_POWER6, PPC_PLATFORM_CELL_BE, PPC_PLATFORM_POWER6X):
9391 (_dl_string_platform): Use PPC_PLATFORM_* macros instead of
9392 hardcoded constants.
9393 * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_platform): Use
9394 PPC_PLATFORM_* macros for array designators.
9396 2006-11-11 Steven Munroe <sjmunroe@us.ibm.com>
9398 * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add 3 new cap
9399 names to the beginning.
9400 (_dl_powerpc_platforms): Add "power6x".
9401 * sysdeps/powerpc/dl-procinfo.h (_DL_HWCAP_FIRST): Decrease.
9402 (HWCAP_IMPORTANT): Add PPC_FEATURE_HAS_DFP.
9403 (_DL_PLATFORMS_COUNT): Increase.
9404 (_dl_string_platform): Handle power6x case.
9405 * sysdeps/powerpc/sysdep.h (PPC_FEATURE_PA6T, PPC_FEATURE_HAS_DFP,
9406 PPC_FEATURE_POWER6_EXT): Define.
9407 (PPC_FEATURE_POWER5, PPC_FEATURE_POWER5_PLUS): Correct Comment.
9409 2006-12-18 Jakub Jelinek <jakub@redhat.com>
9412 * stdlib/jrand48_r.c (__jrand48_r): Make sure result is in the
9413 [-2^31 .. 2^31) range.
9414 * stdlib/tst-rand48.c (main): Fix expected values for 64-bit
9416 * stdlib/tst-rand48-2.c: New test.
9417 * stdlib/Makefile (tests): Add tst-rand48-2.
9419 2006-12-14 Jakub Jelinek <jakub@redhat.com>
9421 * misc/tst-pselect.c (do_test): Fix sigblock argument.
9423 2006-12-14 Ulrich Drepper <drepper@redhat.com>
9425 * misc/tst-pselect.c (do_test): Make sure the helper process is
9426 terminating when the test is aborted.
9428 2006-12-13 Ulrich Drepper <drepper@redhat.com>
9430 * sysdeps/unix/sysv/linux/bits/statvfs.h: Define ST_RELATIME.
9431 * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
9432 Handle relatime mount option.
9435 * libio/Makefile (tests): Add tst-setvbuf1.
9436 * libio/tst-setvbuf1.c: New file.
9438 2006-12-08 Jakub Jelinek <jakub@redhat.com>
9441 * libio/genops.c (__uflow): Fix a typo.
9442 * libio/wfiledoalloc.c (_IO_wfile_doallocate): Don't stat
9443 nor set _IO_LINE_BUF bit here. Size the wide buffer based on
9444 the narrow buffer size.
9446 2006-11-24 Jakub Jelinek <jakub@redhat.com>
9449 * libio/libio.h (_IO_FLAGS2_USER_WBUF): Define.
9450 * libio/wgenops.c (_IO_wsetb, _IO_wdefault_finish): Test and set
9451 _IO_FLAGS2_USER_WBUF bit in _flags2 instead of _IO_USER_BUF bit
9453 * libio/wstrops.c (_IO_wstr_overflow, enlarge_userbuf,
9454 _IO_wstr_finish): Likewise.
9455 * libio/wmemstream.c (open_wmemstream): Likewise.
9456 * libio/fileops.c (_IO_new_file_close_it): Call _IO_set[bgp]
9457 even for wide streams.
9459 2006-12-13 Jakub Jelinek <jakub@redhat.com>
9461 * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: Include
9464 2006-12-11 Ulrich Drepper <drepper@redhat.com>
9466 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Parse thousand
9467 separators also if no non-zero digits found.
9468 * stdlib/Makefile (tests): Add tst-strtod3.
9470 2006-12-09 Ulrich Drepper <drepper@redhat.com>
9473 * include/features.h: Fix comment about default value for
9477 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix test to recognize
9478 empty parsed strings.
9479 * stdlib/Makefile (tests): Add tst-strtod2.
9480 * stdlib/tst-strtod2.c: New file.
9483 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix exp_limit
9485 * stdlib/Makefile (tests): Add tst-atof2.
9486 * stdlib/tst-atof2.c: New file.
9489 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Adjust exponent value
9490 correctly if removing trailing zero of hex-float.
9491 * stdlib/Makefile (tests): Add tst-atof1.
9492 * stdlib/tst-atof1.c: New file.
9494 2006-12-09 Jakub Jelinek <jakub@redhat.com>
9496 * misc/mntent_r.c (__hasmntopt): Check p[optlen] even when p == rest.
9497 Start searching for next comma at p rather than rest.
9498 * misc/Makefile (tests): Add tst-mntent2.
9499 * misc/tst-mntent2.c: New test.
9501 * misc/getusershell.c (initshells): Check for integer overflows.
9502 Make strings buffer one bigger as fgets always succeeds when second
9503 argument is 1. Don't use calloc for shells array. Disallow
9506 2006-12-08 Ulrich Drepper <drepper@redhat.com>
9508 * malloc/memusage.c: Handle realloc with new size of zero and
9509 non-NULL pointer correctly.
9510 (me): Really write first record twice.
9511 (struct entry): Make format bi-arch safe.
9512 (dest): Write out more realloc statistics.
9513 * malloc/memusagestat.c (struct entry): Make format bi-arch safe.
9515 2006-12-05 Jakub Jelinek <jakub@redhat.com>
9517 * nis/nis_subr.c (nis_getnames): Revert last change.
9519 2006-12-04 Jakub Jelinek <jakub@redhat.com>
9521 * sysdeps/unix/sysv/linux/ttyname.c: Include termios.h.
9522 (ttyname): Use tcgetattr instead of isatty, don't set errno to ENOTTY.
9523 * sysdeps/unix/sysv/linux/ttyname_r.c: Include termios.h.
9524 (__ttyname_r): Use tcgetattr instead of isatty, don't set errno to
9526 * io/Makefile: Add rules to build and run tst-ttyname_r test.
9527 * io/tst-ttyname_r.c: New test.
9529 2006-12-03 Kaz Kojima <kkojima@rr.iij4u.or.jp>
9531 * sysdeps/unix/sysv/linux/sh/sys/io.h: Removed.
9533 2006-11-30 H.J. Lu <hongjiu.lu@intel.com>
9535 * sysdeps/i386/i686/memcmp.S: Use jump table as the base of
9538 2006-11-30 Jan Kratochvil <jan.kratochvil@redhat.com>
9540 * sysdeps/unix/sysv/linux/i386/clone.S: Provide CFI for the outermost
9541 `clone' function to ensure proper unwinding stop of gdb.
9542 * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
9544 2006-12-01 Ulrich Drepper <drepper@redhat.com>
9546 * nscd/nscd.init: Remove obsolete and commented-out -S option
9549 2006-11-23 Jakub Jelinek <jakub@redhat.com>
9552 * manual/string.texi (strncmp): Fix pastos from wcscmp description.
9555 * manual/string.texi (strtok): Remove duplicate paragraph.
9557 2006-12-01 Jan Kratochvil <jan.kratochvil@redhat.com>
9559 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Fix compatibility with
9560 libgcc not supporting `rflags' unwinding (register # >= 17).
9562 2006-11-30 Jakub Jelinek <jakub@redhat.com>
9564 * sunrpc/svc_run.c (svc_run): Set my_pollfd to new_pollfd if realloc
9567 2006-11-29 Daniel Jacobowitz <dan@codesourcery.com>
9568 Jakub Jelinek <jakub@redhat.com>
9569 Jan Kratochvil <jan.kratochvil@redhat.com>
9571 * sysdeps/unix/sysv/linux/x86_64/sigaction.c (restore_rt): Add correct
9573 * sysdeps/unix/sysv/linux/x86_64/Makefile: Provide symbols for
9574 'restore_rt' even in the 'signal' directory.
9575 * sysdeps/unix/sysv/linux/x86_64/ucontext_i.sym: Extend the regs list.
9577 2006-11-27 Jakub Jelinek <jakub@redhat.com>
9580 * sunrpc/svc_run.c (svc_run): Fail instead of segfaulting if
9581 malloc crashed. Don't allocate memory unnecessarily in each
9584 2006-10-21 Jakub Jelinek <jakub@redhat.com>
9586 * resolv/mapv4v6addr.h (map_v4v6_address): Fix last change.
9588 2006-11-20 Ulrich Drepper <drepper@redhat.com>
9590 * resolv/mapv4v6addr.h (map_v4v6_address): Optimize a bit.
9592 2006-11-18 Bruno Haible <bruno@clisp.org>
9594 * sysdeps/unix/sysv/linux/i386/getgroups.c (__getgroups): Invoke
9595 __sysconf only after having tried to call getgroups32.
9597 2006-11-19 Ulrich Drepper <drepper@redhat.com>
9599 * nss/nss_files/files-hosts.c (LINE_PARSER): Support IPv6-style
9600 addresses for IPv4 queries if they can be mapped.
9602 2006-11-16 Jakub Jelinek <jakub@redhat.com>
9604 * sysdeps/x86_64/fpu/s_copysignf.S (__copysignf): Switch to .text.
9605 * sysdeps/x86_64/fpu/s_copysign.S (__copysign): Likewise.
9606 (signmask): Add .size directive.
9607 (othermask): Add .type directive.
9609 2006-11-14 Ulrich Drepper <drepper@redhat.com>
9611 * po/nl.po: Update from translation team.
9613 * timezone/zdump.c: Redo fix for BZ #3137.
9615 2006-11-14 Jakub Jelinek <jakub@redhat.com>
9617 * nss/nss_files/files-alias.c (get_next_alias): Set line back
9618 to first_unused after parsing :include: file.
9620 2006-11-10 Ulrich Drepper <drepper@redhat.com>
9622 * timezone/africa: Update from tzdata2006o.
9623 * timezone/antarctica: Likewise.
9624 * timezone/asia: Likewise.
9625 * timezone/australasia: Likewise.
9626 * timezone/backward: Likewise.
9627 * timezone/europe: Likewise.
9628 * timezone/iso3166.tab: Likewise.
9629 * timezone/northamerica: Likewise.
9630 * timezone/southamerica: Likewise.
9631 * timezone/zone.tab: Likewise.
9633 * time/tzfile.c (__tzfile_read): Extend to handle new file format
9634 on machines with 64-bit time_t.
9636 * timezone/checktab.awk: Update from tzcode2006o.
9637 * timezone/ialloc.c: Likewise.
9638 * timezone/private.h: Likewise.
9639 * timezone/scheck.c: Likewise.
9640 * timezone/tzfile.h: Likewise.
9641 * timezone/tzselect.ksh: Likewise.
9642 * timezone/zdump.c: Likewise.
9643 * timezone/zic.c: Likewise.
9646 * elf/ldconfig.c (main): Call setlocale and textdomain.
9647 Patch mostly by Benno Schulenberg <bensberg@justemail.net>.
9650 * manual/argp.texi: Fix typos.
9651 * manual/charset.texi: Likewise.
9652 * manual/errno.texi: Likewise.
9653 * manual/filesys.texi: Likewise.
9654 * manual/lang.texi: Likewise.
9655 * manual/maint.texi: Likewise.
9656 * manual/memory.texi: Likewise.
9657 * manual/message.texi: Likewise.
9658 * manual/resource.texi: Likewise.
9659 * manual/search.texi: Likewise.
9660 * manual/signal.texi: Likewise.
9661 * manual/startup.texi: Likewise.
9662 * manual/stdio.texi: Likewise.
9663 * manual/sysinfo.texi: Likewise.
9664 * manual/syslog.texi: Likewise.
9665 * manual/time.texi: Likewise.
9666 Patch by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
9669 * sunrpc/clnt_raw.c: Minimal message improvements.
9670 * sunrpc/pm_getmaps.c: Likewise.
9671 * nis/nss_nisplus/nisplus-publickey.c: Likewise.
9672 * nis/nis_print_group_entry.c: Likewise.
9673 * locale/programs/repertoire.c: Likewise.
9674 * locale/programs/charmap.c: Likewise.
9675 * malloc/memusage.sh: Likewise.
9676 * elf/dl-deps.c: Likewise.
9677 * locale/programs/ld-collate.c: Likewise.
9678 * libio/vswprintf.c: Likewise.
9679 * malloc/memusagestat.c: Likewise.
9680 * sunrpc/auth_unix.c: Likewise.
9681 * sunrpc/rpc_main.c: Likewise.
9682 * nscd/cache.c: Likewise.
9683 * locale/programs/repertoire.c: Unify output messages.
9684 * locale/programs/charmap.c: Likewise.
9685 * locale/programs/ld-ctype.c: Likewise.
9686 * locale/programs/ld-monetary.c: Likewise.
9687 * locale/programs/ld-numeric.c: Likewise.
9688 * locale/programs/ld-time.c: Likewise.
9689 * elf/ldconfig.c: Likewise.
9690 * nscd/selinux.c: Likewise.
9691 * elf/cache.c: Likewise.
9692 Patch mostly by Benno Schulenberg <bensberg@justemail.net>.
9695 * sysdeps/i386/fpu/bits/mathinline.h (floor): Make rounding mode
9699 2006-11-10 Jakub Jelinek <jakub@redhat.com>
9701 * string/strxfrm_l.c (STRXFRM): Fix trailing \1 optimization
9702 if N is one bigger than return value.
9703 * string/tst-strxfrm2.c (do_test): Also test strxfrm with l1 + 1
9704 and l1 last arguments, if buf is defined, verify the return value
9705 equals to strlen (buf) and verify no byte beyond passed length
9708 2006-11-10 Ulrich Drepper <drepper@redhat.com>
9710 * po/sv.po: Update from translation team.
9712 2006-11-09 Ulrich Drepper <drepper@redhat.com>
9714 * sysdeps/unix/sysv/linux/x86_64/sysconf.c (intel_check_word): Add
9717 2006-11-10 Jakub Jelinek <jakub@redhat.com>
9719 * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Add
9722 * sysdeps/gnu/siglist.c (__old_sys_siglist, __old_sys_sigabbrev):
9723 Use __new_sys_siglist instead of _sys_siglist_internal as
9724 second macro argument.
9725 (_old_sys_siglist): Use declare_symbol_alias macro instead of
9728 2006-11-09 Ulrich Drepper <drepper@redhat.com>
9731 * posix/unistd.h (sysconf): Remove const attribute.
9733 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Fix test for
9734 temporary or deprecated addresses.
9735 Patch by Sridhar Samudrala <sri@us.ibm.com>.
9737 * string/Makefile (tests): Add tst-strxfrm2.
9738 * string/tst-strxfrm2.c: New file.
9740 2006-10-09 Jakub Jelinek <jakub@redhat.com>
9742 * elf/dl-debug.c (_dl_debug_initialize): Check r->r_map for 0
9743 rather than r->r_brk.
9745 2006-11-08 Jakub Jelinek <jakub@redhat.com>
9747 * string/strxfrm_l.c (STRXFRM): Do the trailing \1 removal
9748 optimization even if needed > n.
9750 * elf/dl-load.c (decompose_rpath): Return bool rather than void.
9751 If l->l_name is on inhibit_rpath list, set sps->dirs to -1 and
9752 return false, otherwise return true.
9753 (cache_rpath): Return decompose_rpath return value.
9755 2006-11-07 Jakub Jelinek <jakub@redhat.com>
9757 * include/libc-symbols.h (declare_symbol): Rename to...
9758 (declare_symbol_alias): ... this. Add ORIGINAL argument, imply
9759 strong_alias (ORIGINAL, SYMBOL) in asm to make sure it preceedes
9761 * sysdeps/gnu/errlist-compat.awk: Adjust for declare_symbol_alias
9763 * sysdeps/gnu/siglist.c: Likewise.
9765 2006-11-03 Steven Munroe <sjmunroe@us.ibm.com>
9767 * sysdeps/powerpc/fpu/bits/mathinline.h
9768 [__LIBC_INTERNAL_MATH_INLINES]: Moved to ...
9769 * sysdeps/powerpc/fpu/math_private.h: ...here. New file.
9771 2006-11-05 Ulrich Drepper <drepper@redhat.com>
9773 * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
9774 Update handling of cache descriptor 0x49 for new models.
9775 * sysdeps/unix/sysv/linux/x86_64/sysconf.c (intel_check_word):
9778 2006-11-02 Jakub Jelinek <jakub@redhat.com>
9780 * malloc/memusage.c (dest): Reset not_me back to false after
9781 printing statistics.
9783 2006-11-02 Ulrich Drepper <drepper@redhat.com>
9785 * configure.in: Work around ld --help change and avoid -z relro
9786 test completely if the architecture doesn't care about security.
9788 2006-11-01 Ulrich Drepper <drepper@redhat.com>
9790 * po/sv.po: Update from translation team.
9792 2006-10-31 Ulrich Drepper <drepper@redhat.com>
9794 * stdlib/atexit.c (atexit): Don't mark as hidden when used to
9795 generate compatibility version.
9797 2006-10-29 Ulrich Drepper <drepper@redhat.com>
9799 * configure.in: Relax -z relro requirement a bit.
9801 * po/sv.po: Update from translation team.
9803 2006-10-29 Jakub Jelinek <jakub@redhat.com>
9805 * elf/dl-sym.c (do_sym): Use RTLD_SINGLE_THREAD_P.
9806 * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Likewise.
9807 * elf/dl-close.c (_dl_close_worker): Likewise.
9808 * elf/dl-open.c (_dl_open_worker): Likewise.
9809 * sysdeps/generic/sysdep-cancel.h (RTLD_SINGLE_THREAD_P): Define.
9811 2006-10-27 Ulrich Drepper <drepper@redhat.com>
9813 * configure.in: Require assembler support for visibility, compiler
9814 support for visibility and aliases, linker support for various -z
9816 * Makeconfig: Remove conditional code which now is unnecessary.
9817 * config.h.in: Likewise.
9818 * config.make.in: Likewise.
9819 * dlfcn/Makefile: Likewise.
9820 * elf/Makefile: Likewise.
9821 * elf/dl-load.c: Likewise.
9822 * elf/rtld.c: Likewise.
9823 * include/libc-symbols.h: Likewise.
9824 * include/stdio.h: Likewise.
9825 * io/Makefile: Likewise.
9826 * io/fstat.c: Likewise.
9827 * io/fstat64.c: Likewise.
9828 * io/fstatat.c: Likewise.
9829 * io/fstatat64.c: Likewise.
9830 * io/lstat.c: Likewise.
9831 * io/lstat64.c: Likewise.
9832 * io/mknod.c: Likewise.
9833 * io/mknodat.c: Likewise.
9834 * io/stat.c: Likewise.
9835 * io/stat64.c: Likewise.
9836 * libio/stdio.c: Likewise.
9837 * nscd/Makefile: Likewise.
9838 * stdlib/Makefile: Likewise.
9839 * stdlib/atexit.c: Likewise.
9840 * sysdeps/generic/ldsodefs.h: Likewise.
9841 * sysdeps/i386/dl-machine.h: Likewise.
9842 * sysdeps/i386/sysdep.h: Likewise.
9843 * sysdeps/i386/i686/memcmp.S: Likewise.
9844 * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
9845 * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
9846 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
9848 * Makerules: USE_TLS support is now default.
9849 * tls.make.c: Likewise.
9850 * csu/Versions: Likewise.
9851 * csu/libc-start.c: Likewise.
9852 * csu/libc-tls.c: Likewise.
9853 * csu/version.c: Likewise.
9854 * dlfcn/dlinfo.c: Likewise.
9855 * elf/dl-addr.c: Likewise.
9856 * elf/dl-cache.c: Likewise.
9857 * elf/dl-close.c: Likewise.
9858 * elf/dl-iteratephdr.c: Likewise.
9859 * elf/dl-load.c: Likewise.
9860 * elf/dl-lookup.c: Likewise.
9861 * elf/dl-object.c: Likewise.
9862 * elf/dl-open.c: Likewise.
9863 * elf/dl-reloc.c: Likewise.
9864 * elf/dl-support.c: Likewise.
9865 * elf/dl-sym.c: Likewise.
9866 * elf/dl-sysdep.c: Likewise.
9867 * elf/dl-tls.c: Likewise.
9868 * elf/ldconfig.c: Likewise.
9869 * elf/rtld.c: Likewise.
9870 * elf/tst-tls-dlinfo.c: Likewise.
9871 * elf/tst-tls1.c: Likewise.
9872 * elf/tst-tls10.h: Likewise.
9873 * elf/tst-tls14.c: Likewise.
9874 * elf/tst-tls2.c: Likewise.
9875 * elf/tst-tls3.c: Likewise.
9876 * elf/tst-tls4.c: Likewise.
9877 * elf/tst-tls5.c: Likewise.
9878 * elf/tst-tls6.c: Likewise.
9879 * elf/tst-tls7.c: Likewise.
9880 * elf/tst-tls8.c: Likewise.
9881 * elf/tst-tls9.c: Likewise.
9882 * elf/tst-tlsmod1.c: Likewise.
9883 * elf/tst-tlsmod13.c: Likewise.
9884 * elf/tst-tlsmod13a.c: Likewise.
9885 * elf/tst-tlsmod14a.c: Likewise.
9886 * elf/tst-tlsmod2.c: Likewise.
9887 * elf/tst-tlsmod3.c: Likewise.
9888 * elf/tst-tlsmod4.c: Likewise.
9889 * elf/tst-tlsmod5.c: Likewise.
9890 * elf/tst-tlsmod6.c: Likewise.
9891 * include/errno.h: Likewise.
9892 * include/link.h: Likewise.
9893 * include/tls.h: Likewise.
9894 * locale/global-locale.c: Likewise.
9895 * locale/localeinfo.h: Likewise.
9896 * malloc/arena.c: Likewise.
9897 * malloc/hooks.c: Likewise.
9898 * malloc/malloc.c: Likewise.
9899 * resolv/Versions: Likewise.
9900 * sysdeps/alpha/dl-machine.h: Likewise.
9901 * sysdeps/alpha/libc-tls.c: Likewise.
9902 * sysdeps/generic/ldsodefs.h: Likewise.
9903 * sysdeps/generic/tls.h: Likewise.
9904 * sysdeps/i386/dl-machine.h: Likewise.
9905 * sysdeps/ia64/dl-machine.h: Likewise.
9906 * sysdeps/ia64/libc-tls.c: Likewise.
9907 * sysdeps/mach/hurd/fork.c: Likewise.
9908 * sysdeps/mach/hurd/i386/tls.h: Likewise.
9909 * sysdeps/powerpc/powerpc32/dl-machine.c: Likwise.
9910 * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
9911 * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
9912 * sysdeps/s390/libc-tls.c: Likewise.
9913 * sysdeps/s390/s390-32/dl-machine.h: Likewise.
9914 * sysdeps/s390/s390-64/dl-machine.h: Likewise.
9915 * sysdeps/sh/dl-machine.h: Likewise.
9916 * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
9917 * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
9918 * sysdeps/x86_64/dl-machine.h: Likewise.
9920 * elf/dl-close.c (_dl_close_worker): Renamed from _dl_close and
9921 split out locking and parameter checking.
9922 (_dl_close): Call _dl_close_worker after locking and checking.
9923 * elf/dl-open.c (_dl_open): Call _dl_close_worker instead of
9925 * elf/Makefile: Add rules to build and run tst-thrlock.
9926 * elf/tst-thrlock.c: New file.
9929 * stdlib/stdlib.h: Adjust comment for canonicalize_file_name to
9933 * elf/dl-open.c (dl_open_worker): Keep holding dl_load_lock until
9934 we are sure we do not need it anymore for _dl_close. Also move
9935 the asserts inside the lock region.
9936 Patch mostly by Suzuki <suzuki@in.ibm.com>.
9938 2006-10-27 Jakub Jelinek <jakub@redhat.com>
9940 * elf/dl-lookup.c (_dl_debug_bindings): Remove unused symbol_scope
9942 (_dl_lookup_symbol_x): Adjust caller.
9944 * sysdeps/generic/ldsodefs.h (struct link_namespaces): Remove
9946 * elf/rtld.c (dl_main): Don't initialize _ns_global_scope.
9948 * elf/dl-libc.c: Revert l_scope name changes.
9949 * elf/dl-load.c: Likewise.
9950 * elf/dl-object.c: Likewise.
9951 * elf/rtld.c: Likewise.
9952 * elf/dl-close.c (_dl_close): Likewise.
9953 * elf/dl-open.c (dl_open_worker): Likewise. If not SINGLE_THREAD_P,
9954 always use __rtld_mrlock_{change,done}. Always free old scope list
9955 here if not l_scope_mem.
9956 * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Revert l_scope name
9957 change. Never free scope list here. Just __rtld_mrlock_lock before
9958 the lookup and __rtld_mrlock_unlock it after the lookup.
9959 * elf/dl-sym.c: Likewise.
9960 * include/link.h (struct r_scoperec): Remove.
9961 (struct link_map): Replace l_scoperec with l_scope, l_scoperec_mem
9962 with l_scope_mem and l_scoperec_lock with l_scope_lock.
9964 2006-10-25 Ulrich Drepper <drepper@redhat.com>
9966 * sysdeps/gnu/netinet/tcp.h: Define TCP_CONGESTION.
9968 2006-10-18 Ulrich Drepper <drepper@redhat.com>
9970 * configure.in: Disable building profile libraries by default.
9972 2006-10-17 Jakub Jelinek <jakub@redhat.com>
9974 * sunrpc/xdr_mem.c (xdrmem_setpos): Don't compare addresses
9975 as signed longs, check for x_base + pos overflow.
9976 * sunrpc/Makefile (tests): Add tst-xdrmem2.
9977 * sunrpc/tst-xdrmem2.c: New test.
9979 2006-10-18 Ulrich Drepper <drepper@redhat.com>
9981 * elf/dl-lookup.c (_dl_lookup_symbol_x): Add warning to
9982 _dl_lookup_symbol_x code.
9984 2006-10-17 Jakub Jelinek <jakub@redhat.com>
9986 * elf/dl-runtime.c: Include sysdep-cancel.h.
9987 (_dl_fixup, _dl_profile_fixup): Use __rtld_mrlock_* and
9988 scoperec->nusers only if !SINGLE_THREAD_P. Use atomic_*
9989 instead of catomic_* macros.
9990 * elf/dl-sym.c: Include sysdep-cancel.h.
9991 (do_sym): Use __rtld_mrlock_* and scoperec->nusers only
9992 if !SINGLE_THREAD_P. Use atomic_* instead of catomic_* macros.
9993 * elf/dl-close.c: Include sysdep-cancel.h.
9994 (_dl_close): Use __rtld_mrlock_* and scoperec->nusers only
9995 if !SINGLE_THREAD_P. Use atomic_* instead of catomic_* macros.
9996 * elf/dl-open.c: Include sysdep-cancel.h.
9997 (dl_open_worker): Use __rtld_mrlock_* and scoperec->nusers only
9998 if !SINGLE_THREAD_P. Use atomic_* instead of catomic_* macros.
10000 2006-10-17 Jakub Jelinek <jakub@redhat.com>
10003 * malloc/malloc.c (malloc_consolidate): Set maxfb to address of last
10004 fastbin rather than end of fastbin array.
10006 2006-10-18 Ulrich Drepper <drepper@redhat.com>
10008 * sysdeps/i386/i486/bits/atomic.h (catomic_decrement): Use correct
10010 * sysdeps/x86_64/bits/atomic.h
10011 (__arch_c_compare_and_exchange_val_64_acq): Add missing casts.
10012 (catomic_decrement): Use correct body macro.
10014 2006-10-17 Jakub Jelinek <jakub@redhat.com>
10016 * include/atomic.h: Add a unique prefix to all local variables
10018 * csu/tst-atomic.c (do_test): Test also catomic_* macros.
10020 2006-10-16 Ulrich Drepper <drepper@redhat.com>
10023 * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Fix typos in rules 4
10026 2006-10-14 Ulrich Drepper <drepper@redhat.com>
10028 * resolv/arpa/nameser.h: Document that ns_t_a6 is deprecated.
10030 2006-10-13 Ulrich Drepper <drepper@redhat.com>
10033 * malloc/malloc.c (malloc_consolidate): Don't use get_fast_max to
10034 determine highest fast bin to consolidate, always look into all of
10036 (do_check_malloc_state): Only require for empty bins for large
10037 sizes in main arena.
10039 * libio/stdio.h: Add more __wur attributes.
10041 * elf/dl-minimal.c (realloc): Optimize last patch.
10043 2006-10-12 Richard Sandiford <richard@codesourcery.com>
10046 * elf/dl-minimal.c (realloc): Let malloc() return a new pointer,
10047 and use memcpy() if it does.
10049 2006-11-12 Andreas Jaeger <aj@suse.de>
10052 * manual/search.texi (Hash Search Function): Clarify.
10053 (Array Search Function): Clarify.
10055 2006-11-12 Joseph Myers <joseph@codesourcery.com>
10058 * math/atest-exp.c (main): Cast hex value to mp_limb_t before
10060 * math/atest-exp2.c (read_mpn_hex): Likewise.
10061 * math/atest-sincos.c (main): Likewise.
10063 2006-10-11 Ulrich Drepper <drepper@redhat.com>
10065 * sysdeps/unix/sysv/linux/syscalls.list: Add epoll_pwait.
10066 * sysdeps/unix/sysv/linux/sys/epoll.h: Declare epoll_pwait.
10067 * sysdeps/unix/sysv/linux/Versions (libc): Add epoll_pwait for
10069 * Versions.def: Add GLIBC_2.6 for libc.
10071 * sysdeps/unix/sysv/linux/i386/sysdep.h (DOARGS_6): Fix offset.
10073 * sysdeps/i386/i486/bits/atomic.h: Add catomic_* support.
10075 2006-10-11 Jakub Jelinek <jakub@redhat.com>
10077 * malloc/malloc.c (_int_malloc): Remove unused any_larger variable.
10079 * nis/nis_defaults.c (__nis_default_access): Don't call getenv twice.
10081 * nis/nis_subr.c (nis_getnames): Use __secure_getenv instead of getenv.
10082 * sysdeps/generic/unsecvars.h: Add NIS_PATH.
10084 2006-10-11 Ulrich Drepper <drepper@redhat.com>
10086 * include/atomic.c: Define catomic_* operations.
10087 * sysdeps/x86_64/bits/atomic.h: Likewise. Fix a few minor problems.
10088 * stdlib/cxa_finalize.c: Use catomic_* operations instead of atomic_*.
10089 * malloc/memusage.c: Likewise.
10090 * gmon/mcount.c: Likewise.
10091 * elf/dl-close.c: Likewise.
10092 * elf/dl-open.c: Likewise.
10093 * elf/dl-profile.c: Likewise.
10094 * elf/dl-sym.c: Likewise.
10095 * elf/dl-runtime.c: Likewise.
10096 * elf/dl-fptr.c: Likewise.
10097 * resolv/res_libc.c: Likewise.
10099 2006-10-10 Ulrich Drepper <drepper@redhat.com>
10101 * nis/nis_subr.c (nis_getnames): Add trailing dot to NIS_PATH
10102 components which lack them.
10104 * nis/nis_subr.c (nis_getnames): Make sure that we always return
10105 at least one entry consisting of the parameter concatenated with
10108 2006-10-10 Roland McGrath <roland@frob.com>
10110 * sysdeps/mach/hurd/utimes.c: Use a union to avoid an improper cast.
10111 * sysdeps/mach/hurd/futimes.c: Likewise.
10112 * sysdeps/mach/hurd/lutimes.c: Likewise.
10114 2006-10-09 Ulrich Drepper <drepper@redhat.com>
10115 Jakub Jelinek <jakub@redhat.com>
10117 Implement reference counting of scope records.
10118 * elf/dl-close.c (_dl_close): Remove all scopes from removed objects
10119 from the list in objects which remain. Always allocate new scope
10121 * elf/dl-open.c (dl_open_worker): When growing array for scopes,
10122 don't resize, allocate a new one.
10123 * elf/dl-runtime.c: Update reference counters before using a scope
10125 * elf/dl-sym.c: Likewise.
10126 * elf/dl-libc.c: Adjust for l_scope name change.
10127 * elf/dl-load.c: Likewise.
10128 * elf/dl-object.c: Likewise.
10129 * elf/rtld.c: Likewise.
10130 * include/link.h: Include <rtld-lowlevel.h>. Define struct
10131 r_scoperec. Replace r_scope with pointer to r_scoperec structure.
10132 Add l_scoperec_lock.
10133 * sysdeps/generic/ldsodefs.h: Include <rtld-lowlevel.h>.
10134 * sysdeps/generic/rtld-lowlevel.h: New file.
10136 * include/atomic.h: Rename atomic_and to atomic_and_val and
10137 atomic_or to atomic_or_val. Define new macros atomic_and and
10138 atomic_or which do not return values.
10139 * sysdeps/x86_64/bits/atomic.h: Define atomic_and and atomic_or.
10141 * sysdeps/i386/i486/bits/atomic.h: Likewise.
10143 * po/sv.po: Update from translation team.
10145 2006-10-07 Ulrich Drepper <drepper@redhat.com>
10147 * Versions.def: Add GLIBC_2.6 to libpthread.
10149 * include/shlib-compat.h (SHLIB_COMPAT): Expand parameters before use.
10150 (versioned_symbol): Likewise.
10151 (compat_symbol): Likewise.
10153 * po/tr.po: Update from translation team.
10155 2006-10-06 Ulrich Drepper <drepper@redhat.com>
10157 * nis/Banner: Removed. It's been integral part forever and the
10158 author info is incomplete anyway.
10159 * libio/Banner: Likewise.
10161 * nis/nis_table.c (nis_list): If __follow_path fails in the new
10162 code, make sure the nis_freeresult call doesn't crash and that the
10163 result is reported correctly.
10165 2006-09-27 Jakub Jelinek <jakub@redhat.com>
10167 * nis/nis_table.c (nis_list): Handle FOLLOW_PATH | ALL_RESULTS
10168 when callback is NULL.
10170 * nis/Versions (libnss_nisplus): Add
10171 _nss_nisplus_initgroups_dyn@@GLIBC_PRIVATE.
10172 * nis/Makefile (libnss_nisplus-routines): Add nisplus-initgroups.
10173 * nis/nss_nisplus/nisplus-grp.c (tablename_val, tablename_len,
10174 _nss_create_tablename): Rename to...
10175 (grp_tablename_val, grp_tablename_len, _nss_grp_create_tablename):
10176 ... these. No longer static.
10177 (internal_setgrent): Adjust users.
10178 (_nss_nisplus_getgrnam_r, _nss_nisplus_getgrgid_r): Likewise.
10179 Don't use locking around _nss_grp_create_tablename call.
10180 * nis/nss_nisplus/nisplus-initgroups.c: New file.
10182 2006-10-06 Ulrich Drepper <drepper@redhat.com>
10184 * version.h (VERSION): Bump to 2.5.90 for new development tree.
10186 2006-10-06 Andreas Jaeger <aj@suse.de>
10188 * include/features.h (__GLIBC_MINOR__): It's glibc 2.5 now.
10190 2006-10-06 Ulrich Drepper <drepper@redhat.com>
10192 * po/pl.po: Update from translation team.
10194 * nscd/nscd.c (main): Fix typo in message.
10195 Patch by Jakub Bogsz <qboosh@pld-linux.org>.
10197 2006-10-02 Jakub Jelinek <jakub@redhat.com>
10200 * sysdeps/unix/sysv/linux/sparc/sparc64/pause.c: Include
10201 errno.h, signal.h, unistd.h and sysdep-cancel.h.
10202 (__sigprocmask): Define.
10204 2006-10-02 Ulrich Drepper <drepper@redhat.com>
10206 * elf/rtld.c (dl_main): Don't use prelinking if LD_DYNAMIC_WEAK is
10209 2006-10-02 Jakub Jelinek <jakub@redhat.com>
10211 * nscd/mem.c (mempool_alloc): Round array size to 16 bytes
10212 in oldtotal and newtotal calculation.
10213 * nscd/nscd-client.h (struct mapped_database): Add datasize
10215 * nscd/nscd_helper.c (get_mapping): Initialize datasize field.
10216 (__nscd_get_map_ref): Get a new mapping even if mapping's data_size
10218 (__nscd_cache_search): Add checks to make sure we never reference
10219 data beyond the current mapping.
10221 2006-10-02 Dmitry V. Levin <ldv@altlinux.org>
10223 * sysdeps/posix/getaddrinfo.c (match_prefix): Make mask and val
10224 variables const to avoid compiler warnings.
10226 * io/fts.c (fts_close): Remove redundant checks.
10227 (fts_build): Likewise.
10228 (fts_palloc): Likewise.
10230 * manual/message.texi (Advanced gettext functions,
10231 Using gettextized software): Fix typos.
10233 2006-09-30 Ulrich Drepper <drepper@redhat.com>
10235 * posix/glob.c (glob_in_dir): Add some comments and asserts to
10236 explain why there are no leaks.
10238 2006-09-29 Ulrich Drepper <drepper@redhat.com>
10240 * libio/wmemstream.c: Include <wchar.h>.
10241 * libio/bug-wmemstream1.c: Likewise.
10242 * libio/tst-wmemstream1.c: Likewise.
10243 * libio/tst-wmemstream2.c: Likewise.
10245 * version.h (RELEASE): Bump to 2.5.
10246 * README: Regenerated.
10248 * locale/iso-3166.def: Add Aaland Islands and Montenegro.
10251 * nscd/nscd_initgroups.c (__nscd_getgrouplist): It is OK to have
10252 found no group members.
10253 Patch by Petr Baudis.
10255 2006-09-29 Jakub Jelinek <jakub@redhat.com>
10257 * elf/rtld.c (_dl_start_final): If not USE___THREAD, don't
10258 assert bootstrap_map.l_tls_modid is zero.
10259 (_dl_start): Initialize bootstrap_map.l_tls_modid to 0
10262 2006-09-27 Ulrich Drepper <drepper@redhat.com>
10264 * libio/stdio.h: Move open_wmemstream prototype to ...
10265 * wcsmbs/wchar.h: ... here.
10267 2006-09-25 Jakub Jelinek <jakub@redhat.com>
10270 * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat): Handle only
10271 fchownat syscall and __ASSUME_LCHOWN_SYSCALL case inline, call
10272 __{,l}chown to handle the rest.
10273 * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Handle only
10274 fchownat syscall and __ASSUME_32BITUIDS case inline, call
10275 __{,l}chown to handle the rest.
10276 * sysdeps/unix/sysv/linux/sparc/sparc32/fchownat.c: Include
10278 * sysdeps/unix/sysv/linux/s390/s390-32/fchownat.c: Likewise.
10279 * sysdeps/unix/sysv/linux/sh/fchownat.c: Likewise.
10282 * posix/glob.c (glob_in_dir): Don't alloca one struct globlink at a
10283 time, rather allocate increasingly bigger arrays of pointers, if
10284 possible with alloca, if too large with malloc.
10286 2006-09-24 Jakub Jelinek <jakub@redhat.com>
10288 * sysdeps/powerpc/fpu/libm-test-ulps: Updated.
10290 * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Fix 2 typos.
10292 2006-09-24 Ulrich Drepper <drepper@redhat.com>
10294 * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Implement rule 4,
10296 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Recognize
10297 IFA_F_HOMEADDRESS flag for interfaces.
10298 * include/ifaddrs.h (struct in6addrinfo): Define
10301 2006-09-21 Jakub Jelinek <jakub@redhat.com>
10304 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (PTR_MANGLE3,
10305 PTR_DEMANGLE3): Define.
10306 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h (PTR_MANGLE3,
10307 PTR_DEMANGLE3): Likewise.
10308 * sysdeps/powerpc/powerpc32/__longjmp-common.S (__longjmp): Use them.
10309 * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp):
10311 * sysdeps/powerpc/powerpc64/__longjmp-common.S (__longjmp): Likewise.
10313 2006-09-20 Jakub Jelinek <jakub@redhat.com>
10315 * po/libc.pot: Regenerated.
10316 * po/be.po: Updated.
10317 * po/ca.po: Likewise.
10318 * po/cs.po: Likewise.
10319 * po/da.po: Likewise.
10320 * po/de.po: Likewise.
10321 * po/el.po: Likewise.
10322 * po/en_GB.po: Likewise.
10323 * po/es.po: Likewise.
10324 * po/fi.po: Likewise.
10325 * po/fr.po: Likewise.
10326 * po/gl.po: Likewise.
10327 * po/hr.po: Likewise.
10328 * po/hu.po: Likewise.
10329 * po/ja.po: Likewise.
10330 * po/ko.po: Likewise.
10331 * po/nb.po: Likewise.
10332 * po/nl.po: Likewise.
10333 * po/pl.po: Likewise.
10334 * po/pt_BR.po: Likewise.
10335 * po/ru.po: Likewise.
10336 * po/rw.po: Likewise.
10337 * po/sk.po: Likewise.
10338 * po/sv.po: Likewise.
10339 * po/tr.po: Likewise.
10340 * po/zh_CN.po: Likewise.
10341 * po/zh_TW.po: Likewise.
10344 * iconv/iconv_prog.c (main): Fix spelling in error message.
10345 * iconv/iconvconfig.c (main): Likewise.
10346 * locale/programs/ld-collate.c (handle_ellipsis): Likewise.
10347 * locale/programs/ld-ctype.c (charclass_symbolic_ellipsis): Likewise.
10348 * locale/programs/localedef.c (main): Likewise.
10349 * locale/programs/repertoire.c (repertoire_read): Likewise.
10350 * timezone/zdump.c (main): Likewise.
10351 * nscd/connections.c (handle_request): Fix spelling in log message.
10352 Patch by Malcolm Parsons <malcolm.parsons@gmail.com>.
10354 2006-09-20 Ulrich Drepper <drepper@redhat.com>
10356 * inet/inet6_option.c: Also emit linker warnings for the RFC 2292
10359 2006-09-20 Andreas Jaeger <aj@suse.de>
10361 * math/libm-test.inc (lrint_test_upward): Fix typo.
10363 2006-06-17 Joseph S. Myers <joseph@codesourcery.com>
10366 * math/libm-test.inc (lrint_test_tonearest): New function.
10367 (lrint_test_towardzero): New function.
10368 (lrint_test_downward): New function.
10369 (lrint_test_upward): New function.
10370 (main): Run these new tests.
10371 * sysdeps/ieee754/dbl-64/s_llrint.c (__llrint): Correct rounding
10372 of values near to 0.
10373 (two52): Use double not long double.
10374 * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Likewise.
10375 * sysdeps/ieee754/flt-32/s_llrintf.c (__llrintf): Likewise.
10376 (two23): Use float not double.
10377 * sysdeps/ieee754/flt-32/s_lrintf.c (__lrintf): Likewise.
10378 (two23): Use float not double.
10379 * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl): Likewise.
10380 * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Likewise.
10381 * sysdeps/ieee754/ldbl-96/s_llrintl.c (__llrintl): Likewise.
10382 * sysdeps/ieee754/ldbl-96/s_lrintl.c (__lrintl): Likewise.
10384 2006-09-20 Martin Schwidefsky <schwidefsky@de.ibm.com>
10386 * sysdeps/unix/sysv/linux/s390/s390-32/makecontext.c (__makecontext):
10387 Cast sp to unsigned long to avoid compiler warning.
10388 Use __makecontext_ret function instead of a trampoline on the stack.
10389 (__makecontext_ret): New function.
10390 * sysdeps/unix/sysv/linux/s390/s390-64/makecontext.c: Likewise.
10392 2006-09-19 Jakub Jelinek <jakub@redhat.com>
10394 * elf/dl-cache.c (HWCAP_CHECK): If _DL_PLATFORMS_COUNT, but
10395 platform == -1, reject any libs with non-zero _DL_HWCAP_PLATFORM
10398 2006-09-19 Ulrich Drepper <drepper@redhat.com>
10400 * elf/dl-close.c (_dl_close): If dependency is not unloaded make
10401 sure no reference to the unloaded map's search list remains in the
10402 dependency's scope.
10404 2006-09-16 Jakub Jelinek <jakub@redhat.com>
10406 * elf/Makefile: Add rules to build and run unload7 test.
10407 * elf/unload7.c: New test.
10408 * elf/unload7mod1.c: New file.
10409 * elf/unload7mod2.c: New file.
10411 2006-09-18 Jakub Jelinek <jakub@redhat.com>
10413 * sysdeps/unix/sysv/linux/sys/ptrace.h (PT_GETEVENTMSG): Fix pasto.
10414 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h (PTRACE_SETOPTIONS,
10415 PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
10416 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h (PTRACE_SETOPTIONS,
10417 PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Likewise.
10418 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h (PTRACE_SETOPTIONS,
10419 PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Likewise.
10420 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h (PTRACE_SETOPTIONS,
10421 PTRACE_GETEVENTMSG): Likewise.
10422 (PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Change to the arch independent
10425 2006-09-17 Mike Frysinger <vapier@gentoo.org>
10427 * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_SETOPTIONS,
10428 PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
10429 * sysdeps/unix/sysv/linux/ptrace.c (ptrace): Check PTRACE_SETOPTIONS,
10430 PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO and PTRACE_SETSIGINFO.
10432 2006-09-16 Jakub Jelinek <jakub@redhat.com>
10434 * sysdeps/powerpc/powerpc32/register-dump.h (register_dump): Don't
10435 write '\0' to the fd.
10436 * sysdeps/mach/hurd/powerpc/register-dump.h (register_dump): Likewise.
10437 * sysdeps/powerpc/powerpc64/register-dump.h (register_dump): Likewise.
10438 Change regs to unsigned long pointer from unsigned int, fix fscr
10441 2006-09-14 Jakub Jelinek <jakub@redhat.com>
10443 * io/Makefile (CFLAGS-fstatat.c): Set.
10444 (CFLAGS-fstatat64.c): Likewise.
10445 (CFLAGS-mknodat.c): Likewise.
10447 * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Comment fixes.
10448 * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
10449 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Rewritten.
10450 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Rewritten.
10452 2006-09-14 Jakub Jelinek <jakub@redhat.com>
10453 Steven Munroe <sjmunroe@us.ibm.com>
10455 * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add 4 new cap
10456 names to the beginning. Rename "cell" to "cellbe".
10457 (_dl_powerpc_platforms): New.
10458 * sysdeps/powerpc/dl-procinfo.h (_DL_HWCAP_FIRST): Decrease.
10459 (HWCAP_IMPORTANT): Remove power{4,5,5+} and cell.
10460 (_DL_PLATFORMS_COUNT, _DL_FIRST_PLATFORM): Define.
10461 (_DL_HWCAP_PLATFORM): Define to new mask.
10462 (_dl_platform_string, _dl_string_platform): New functions.
10463 * sysdeps/powerpc/sysdep.h (PPC_FEATURE_BOOKE, PPC_FEATURE_SMT,
10464 PPC_FEATURE_ICACHE_SNOOP, PPC_FEATURE_ARCH_2_05): Define.
10466 2006-09-12 Jakub Jelinek <jakub@redhat.com>
10469 * README.libm: Fix a thinko in sqrt algorithm description.
10472 * manual/string.texi (argz_delete): Fix prototype.
10473 Patch by <alpt@freaknet.org>.
10475 2006-08-26 Joseph Myers <joseph@codesourcery.com>
10478 * io/test-lfs.c (do_prepare): Give name_len type size_t.
10479 * io/tst-fcntl.c (do_prepare): Likewise.
10480 * posix/tst-exec.c (do_prepare): Likewise.
10481 * posix/tst-preadwrite.c (do_prepare): Likewise.
10482 * posix/tst-spawn.c (do_prepare): Likewise.
10483 * posix/tst-truncate.c (do_prepare): Likewise.
10484 * rt/tst-aio.c (do_prepare): Likewise.
10485 * rt/tst-aio64.c (do_prepare): Likewise.
10486 * stdlib/test-canon2.c (do_prepare): Give test_dir_len type
10489 2006-09-09 Ulrich Drepper <drepper@redhat.com>
10492 * time/mktime.c (guess_time_tm): Fix overflow detection.
10493 * time/Makefile (tests): Add bug-mktime1.
10494 * time/bug-mktime1.c: New file.
10497 * misc/sys/mman.h (remap_file_pages): Make available for _GNU_SOURCE.
10498 (mremap): Likewise.
10500 2006-09-07 Jakub Jelinek <jakub@redhat.com>
10503 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela):
10504 Ensure relocation doesn't clobber any bits outside of the
10505 immediate field for R_SPARC_TLS_LE_HIX22, R_SPARC_WDISP30,
10506 R_SPARC_HI22 and R_SPARC_H44.
10509 * malloc/malloc.c (sYSMALLOc): Only call grow_heap if
10510 (long) (MINSIZE + nb - old_size) is positive.
10512 * malloc/arena.c (grow_heap): When growing bail even if new_size
10516 * sysdeps/powerpc/powerpc32/fpu/s_lrint.S (__lrint): Don't access
10519 2006-09-06 Jakub Jelinek <jakub@redhat.com>
10521 * posix/regex_internal.c (re_string_reconstruct): Handle
10522 offset < pstr->valid_raw_len && pstr->offsets_needed case.
10523 Ensure no bytes read before raw_mbs array. Pass a saved copy of
10524 pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
10525 re_string_context_at.
10526 * posix/Makefile: Add rules to build and run bug-regex26 test.
10527 * posix/bug-regex26.c: New test.
10529 * locale/programs/ld-collate.c (collate_read): Goto sym_equiv_free
10530 rather than col_sym_free. Move seqp declaration earlier.
10532 * resolv/gai_suspend.c (gai_suspend): Make sure result is initialized.
10534 2006-09-05 Jakub Jelinek <jakub@redhat.com>
10536 * nscd/initgrcache.c (addinitgroupsX): Move any_success
10537 decl before first goto out.
10539 2006-09-04 Jakub Jelinek <jakub@redhat.com>
10541 * Makerules (shlib.lds): If have-hash-style, put .hash section
10542 at the end of the RO segment.
10544 2006-09-04 Ulrich Drepper <drepper@redhat.com>
10546 * elf/do-lookup.h (do_lookup_x): Initialize symidx in case the new
10547 style hash table format is used.
10549 2006-09-04 Jakub Jelinek <jakub@redhat.com>
10551 * resolv/res_mkquery.c (res_nmkquery): Set hp->id to statp->id after
10552 randomization rather than before.
10553 * resolv/res_init.c (res_randomid): Don't call gettimeofday here.
10555 2006-08-31 Jakub Jelinek <jakub@redhat.com>
10557 * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Add ld.so.
10559 * malloc/malloc.c (_int_malloc): Use full list insert and not
10560 shortcut which assumes the list is empty for large requests
10563 * elf/tst-addr1.c (do_test): Allow i.dli_sname "_IO_printf".
10565 2006-08-30 Jakub Jelinek <jakub@redhat.com>
10567 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (splice): Add offin
10568 and offout arguments to the prototype.
10569 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (splice): Likewise.
10570 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h (splice): Likewise.
10571 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (splice): Likewise.
10572 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h (splice): Likewise.
10573 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h (splice): Likewise.
10574 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (splice): Likewise.
10575 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h (splice): Likewise.
10576 * sysdeps/unix/sysv/linux/syscalls.list (splice): Adjust args string.
10578 2006-08-28 Ulrich Drepper <drepper@redhat.com>
10580 * elf/dl-load.c (_dl_init_paths): Expand DSTs.
10582 * elf/dl-open.c (dl_open_worker): Allow $LIB and $PLATFORM in
10585 2006-08-28 Jakub Jelinek <jakub@redhat.com>
10587 * inet/getnameinfo.c (getnameinfo): For AF_INET, check errno
10588 only if herrno is NETDB_INTERNAL. Handle errors other than
10589 ERANGE outside of the loops, handle TRY_AGAIN.
10591 * locale/programs/ld-ctype.c (translit_flatten): Issue error
10592 if other's ctype category was missing.
10593 * locale/programs/ld-collate.c (collate_read): Return if
10594 copy_locale's collate category is missing.
10596 2006-08-27 Ulrich Drepper <drepper@redhat.com>
10599 * malloc/malloc.c (public_rEALLOc): Try harder by using other
10600 arenas if allocation failed.
10601 Patch mostly by Jan Edler <jan.edler@indexengines.com>.
10603 2006-08-26 Ulrich Drepper <drepper@redhat.com>
10605 * malloc/malloc.c (bin_at): Rewrite to be more clear and to not
10607 (malloc_state): Reduce bins size by 2.
10608 (_int_malloc): Fix test for large enough buffer for early termination.
10609 When no unsorted block matches perfectly and an exiting block has
10610 to be split, use full list insert and not shortcut which assumes
10613 * locale/programs/ld-ctype.c (ctype_read): Better patch for read
10616 2006-08-24 Ulrich Drepper <drepper@redhat.com>
10618 * locale/programs/ld-ctype.c (ctype_read): If CTYPE is NULL, don't
10621 * sysdeps/generic/ldsodefs.h (DL_ADDR_SYM_MATCH): For undefined
10622 symbol require exact match (these are PLTs).
10623 * sysdeps/unix/sysv/linux/powerpc/powerpc64/ldsodefs.h
10624 (_dl_ppc64_addr_sym_match): Likewise.
10627 * elf/dl-addr.c (_dl_addr): Don't ignore all undefined symbols.
10628 If symbol has a value use it.
10629 * elf/tst-dladdr1.c: New file.
10630 * elf/Makefile: Add rules to build and run tst-addr1.
10632 2006-08-24 Jakub Jelinek <jakub@redhat.com>
10634 * malloc/malloc.c (sYSMALLOc): Avoid infinite loop if MMAP
10635 keeps failing and heap growth or new heap creation isn't
10637 * malloc/tst-malloc.c (main): Add new tests.
10639 2006-08-24 Ulrich Drepper <drepper@redhat.com>
10642 * sysdeps/i386/bits/byteswap.h (__bswap_32): Use same conditions
10643 as in the x86-64 code to use bswap.
10645 2006-05-21 Joseph S. Myers <joseph@codesourcery.com>
10648 * posix/unistd.h (getlogin_r): Condition on __USE_POSIX199506, not
10650 * posix/bits/unistd.h: Likewise.
10652 2006-05-15 Mike Frysinger <vapier@gentoo.org>
10655 * string/strchr.c: Add cast to avoid warning.
10657 2006-08-21 Ulrich Drepper <drepper@redhat.com>
10659 * malloc/malloc.c (DEFAULT_MMAP_THRESHOLD_MAX): For 32-bit
10660 platforms define as 512K. For 64-bit platforms as 32MB. The lower
10661 limit is needed to avoid the exploding of the address space
10662 requirement for secondary heaps.
10663 * malloc/arena.c (HEAP_MAX_SIZE): Define using
10664 DEFAULT_MMAP_THRESHOLD_MAX if it is defined.
10666 2006-07-30 Joseph S. Myers <joseph@codesourcery.com>
10669 * Makerules (depfiles): Handle extra-test-objs the same as
10671 (common-mostlyclean): Likewise.
10672 * dlfcn/Makefile (extra-objs): Add modules to extra-test-objs
10674 * elf/Makefile (extra-objs): Likewise.
10675 * stdlib/Makefile (extra-objs): Likewise.
10677 2006-08-14 Eric Blake <ebb9@byu.net>
10680 * misc/error.h: Assume C89 or better.
10681 * misc/error.c: Likewise.
10683 2006-08-21 Ulrich Drepper <drepper@redhat.com>
10686 * sysdeps/unix/sysv/linux/openat.c: Fix compilation if
10687 __ASSUME_ATFCTS is defined.
10689 2006-08-19 Ulrich Drepper <drepper@redhat.com>
10691 * malloc/malloc.c (_int_malloc): Limit number of unsorted blocks
10692 to sort in each call.
10694 * nis/nss_nis/nis-service.c (internal_nis_getservent_r): . If map
10695 is empty simply return and use next service.
10696 * nis/nss_nis/nis-rpc.c (internal_nis_getrpcent_r): Likewise.
10698 * locale/programs/charmap.c (charmap_read): Add new parameter. It
10699 tells us when not finding a charmap file is an error.
10700 * locale/programs/charmap.h: Adjust charmap_read prototype.
10701 * iconv/iconv_prog.c (main): Tell charmap_read it's no error if we
10702 cannot find a charmap.
10703 * locale/programs/localedef.c (main): Adjust charmap_read call.
10705 2006-08-15 Jakub Jelinek <jakub@redhat.com>
10707 * sysdeps/unix/sysv/linux/sparc/sparc64/pause.c: Use
10708 sysdeps/posix/pause.c implementation instead.
10710 2006-08-09 Jakub Jelinek <jakub@redhat.com>
10712 * sysdeps/unix/nice.c (nice): Transform EACCES errno from setpriority
10715 2006-08-13 Andreas Schwab <schwab@suse.de>
10717 * sysdeps/powerpc/powerpc32/dl-trampoline.S (_dl_runtime_resolve):
10718 Don't clobber caller's LRSAVE.
10719 (_dl_prof_resolve): Likewise.
10721 2006-08-14 Ulrich Drepper <drepper@redhat.com>
10724 * libio/memstream.c (open_memstream): Allocate initial buffer with
10726 * libio/wmemstream.c (open_wmemstream): Likewise.
10727 * libio/strops.c: Pretty printing.
10728 (_IO_str_overflow): Clear uninitialized part of the new buffer.
10729 (enlarge_userbuf): New function.
10730 (_IO_str_seekoff): Call it if seek position is larger than current
10732 * libio/wstrops.c: Likewise.
10733 * libio/vasprintf.c: Add comment as to why we do not have to use
10734 calloc instead of malloc to allocate initial buffer.
10735 * libio/Makefile (tests): Add bug-memstream1 and bug-wmemstream1.
10736 * libio/bug-memstream1.c: New file.
10737 * libio/bug-wmemstream1.c: New file.
10739 2006-08-13 Ulrich Drepper <drepper@redhat.com>
10741 * libio/wstrops.c: Remove dead macro definitions and comments.
10742 * libio/strops.c: Likewise.
10745 * login/utmpname.c (__utmpname): Remove unnecessary test.
10747 2006-06-08 Joseph Myers <jsm28@gcc.gnu.org>
10750 * math/gen-libm-test.pl (clean_up_number): Do not remove trailing
10753 2006-08-13 Ulrich Drepper <drepper@redhat.com>
10756 * sysdeps/unix/sysv/linux/clock_settime.c: Add code to use syscall
10758 * sysdeps/unix/clock_settime.c: Add support for platform-specific
10759 setting of CPU clocks.
10761 2006-06-23 Paul Eggert <eggert@cs.ucla.edu>
10764 * sysdeps/generic/stdint.h (UINT8_C, UINT16_C): Don't append 'U',
10765 since C99 requires the result to promote to 'int' when uint_least8_t
10766 and uint_least16_t promote to 'int'.
10768 2006-08-12 Ulrich Drepper <drepper@redhat.com>
10771 * locale/programs/ld-ctype.c (ctype_output): Adjust alignments, fix
10772 lenght of one output field, correct bitmask creation.
10773 * locale/programs/ld-time.c: Add alignment.
10776 * misc/error.c: Add space between program name and message if file
10779 2006-08-03 Eric Blake <ebb9@byu.net>
10782 * misc/error.c (error_tail) [_LIBC]: Avoid invalid free.
10784 2006-08-09 Ulrich Drepper <drepper@redhat.com>
10786 * malloc/memusagestat.c: Silence warnings.
10788 * malloc/malloc.c: Dynamically size mmap treshold if the program
10789 frees mmaped blocks.
10790 Patch by Valerie Henson and Arjan van de Ven.
10792 2006-08-08 Jakub Jelinek <jakub@redhat.com>
10794 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (O_DIRECT): Protect with
10797 * stdlib/strtol_l.c (__strtol_ul_max_tab, __strtol_ul_rem_tab,
10798 __strtol_ull_max_tab, __strtol_ull_rem_tab): Declare.
10799 (DEF): Don't put the var into .gnu.linkonce.r.* section.
10800 Only provide var definitions in strtol_l (or for *ull*
10803 * stdio-common/bug16.c (tests): New array.
10804 (do_tests): Allow the first hexadecimal digit
10805 to be 1, 2, 4 or 8. Do 3 additional tests.
10807 * sysdeps/s390/fpu/libm-test-ulps: Update.
10809 * sysdeps/unix/sysv/linux/s390/s390-32/fchownat.c (fchownat): Use
10810 fchownat syscall if available.
10811 * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat): Likewise.
10812 * sysdeps/unix/sysv/linux/sh/fchownat.c (fchownat): Likewise.
10813 * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Likewise.
10815 2006-08-07 Ulrich Drepper <drepper@redhat.com>
10817 * nis/nis_xdr.c: Avoid some function calls.
10819 2006-08-07 Jakub Jelinek <jakub@redhat.com>
10820 Ulrich Drepper <drepper@redhat.com>
10822 * nis/nis_call.c (rec_dirsearch) [case LOWER_NAME]: Don't take
10823 short cut if only one name component is stripped away.
10825 2006-08-07 Ulrich Drepper <drepper@redhat.com>
10827 * nis/nis_call.c: Minor cleanups throughout.
10828 (rec_dirsearch) [case HIGHER_NAME]: Correctly size ndomain array.
10829 (first_shoot): Add search_parent_first parameter. Only if it is set
10830 search parent server first.
10831 If directory for table found through cold start cache is not the same
10832 as referenced in the cache, don't use it.
10833 (__nisfind_server): Take additional parameter. Pass it on to
10835 (__prepare_niscall): Adjust __nisfind_server call.
10836 * nis/rpcsvc/nislib.h: Adjust __nisfind_server prototype.
10837 * nis/nis_table.c: Adjust __nisfind_server call.
10838 * nis/nis_lookup.c: Likewise.
10839 (nis_lookup): Don't loop endlessly if name is reduced to ".".
10841 2006-08-03 Ulrich Drepper <drepper@redhat.com>
10844 * math/s_cacosh.c: Return values from positive branch.
10845 * math/s_cacoshf.c: Likewise.
10846 * math/s_cacoshl.c: Likewise.
10849 * sysvipc/sys/msg.h: Change return value to ssize_t.
10850 * sysdeps/unix/sysv/linux/msgrcv.c: Likewise.
10851 * sysvipc/msgrcv.c: Likewise.
10852 * include/sys/msg.h: Likewise.
10854 * grp/initgroups.c (internal_getgrouplist): Remove unnecessary
10855 test introduced in patch for bz #661.
10856 (getgrouplist): Simplify code a bit. Don't allocate one additional
10857 element for NEWGROUPS.
10860 * stdio-common/printf_fphex.c (__printf_fphex): When rounding up
10861 'f', use '1' as leading digit not '\1'.
10862 * stdio-common/Makefile (tests): Add bug16.
10863 * stdio-common/bug16.c: New file.
10866 * sysdeps/unix/sysv/linux/gethostid.c: Don't define OLD_HOSTIDFILE
10867 and don't try to open it. The patch introducing the macro
10868 contained a bug and used the same file name as the new file
10869 instead of using /var/adm/hostid. Nobody complaint so I'm taking
10870 this out completely.
10873 * assert/assert.h: Move cast to void inside ?: to quiet gcc.
10874 Patch by Jerry James <Jerry.James@usu.edu>.
10876 * rt/Makefile (tests): Add tst-clock2.
10877 * rt/tst-clock2.c: New file.
10880 * resolv/gai_notify.c (__gai_notify_only): Copy memory for thread
10881 function and its parameters and pass it to new thread.
10882 (__gai_notify): Add support for alternative waiting for completion.
10883 * resolv/gai_suspend.c (gai_suspend): Add support for alternative
10884 waiting for completion.
10885 * resolv/getaddrinfo_a.c: Likewise.
10886 * resolv/gai_misc.h (struct waitlist): Don't add cond if alternative
10887 waiting for completion is used.
10888 * resolv/gai_misc.c: Allow overwriting code to start helper thread.
10889 * resolv/gai_cancel.c: Include <gai_misc.h> not "gai_misc.h".
10890 * resolv/gai_error.c: Likewise.
10891 * resolv/gai_sigqueue.c: Likewise.
10893 2006-08-02 Thomas Schwinge <tschwinge@gnu.org>
10895 * hurd/getdport.c (__getdport): Don't return EBADF; instead set
10896 errno to EBADF and return MACH_PORT_NULL.
10898 2006-06-23 Joseph Myers <joseph@codesourcery.com>
10901 * posix/Makefile (CFLAGS-waitid.c): Add -fasynchronous-unwind-tables.
10903 2006-08-02 Ulrich Drepper <drepper@redhat.com>
10905 * elf/dl-addr.c (_dl_addr): If GNU-style hash tables are present,
10906 walk them instead of the symbol table.
10908 2006-08-01 Ulrich Drepper <drepper@redhat.com>
10911 * nscd/initgrcache.c (addinitgroupsX): Judge successful lookups by
10912 status of NSS calls, not the number of returned entries.
10914 * sysdeps/unix/sysv/linux/syscalls.list: Remove add_key,
10915 request_key, keyctl.
10917 2006-07-31 Ulrich Drepper <drepper@redhat.com>
10919 * sysdeps/unix/sysv/linux/dl-osinfo.h: Remove unnecessary include.
10921 2006-07-16 Jeff Bailey <jbailey@ubuntu.com>
10923 * elf/tst-auditmod1.c: Fix typo in #error.
10925 2006-07-31 Ulrich Drepper <drepper@redhat.com>
10927 * elf/tst-auditmod1.c: Remove code for unsupported architectures.
10929 * iconvdata/run-iconv-test.sh: Run cmp in C locale.
10931 2006-07-20 Adam Nemet <anemet@caviumnetworks.com>
10933 * stdlib/test-canon.c (do_test): Close fd before unlinking file so
10934 that the directory is empty even on non-POSIX filesystems.
10936 2006-07-31 Ulrich Drepper <drepper@redhat.com>
10938 * elf/dl-open.c (dl_open_worker): Add branch prediction.
10940 * nis/nss_compat/compat-grp.c: Avoid unnecessary setgrent calls into
10941 the backend NSS module. If backend setgrent call failed, don't have
10942 internal_setgrent fail. Just remember this until it is needed.
10943 * nis/nss_compat/compat-pwd.c: Likewise.
10944 * nis/nss_compat/compat-spwd.c: Likewise.
10946 2006-07-30 Roland McGrath <roland@redhat.com>
10948 * sysdeps/unix/sysv/linux/ia64/sigsuspend.c: File removed.
10949 * sysdeps/unix/sysv/linux/x86_64/sigsuspend.c: File removed.
10950 * sysdeps/unix/sysv/linux/s390/s390-64/sigsuspend.c: File removed.
10951 * sysdeps/unix/sysv/linux/sparc/sparc64/sigsuspend.c: File removed.
10953 * sysdeps/unix/sysv/linux/not-cancel.h (pause_not_cancel): New macro.
10954 (nanosleep_not_cancel): New macro.
10955 (sigsuspend_not_cancel): new macro.
10956 * sysdeps/unix/sysv/linux/sigsuspend.c [__ASSUME_REALTIME_SIGNALS]
10957 (do_sigsuspend): Define as inline.
10958 (__sigsuspend): Always use do_sigsuspend.
10959 [! NO_CANCELLATION] (__sigsuspend_nocancel): New function.
10960 * include/signal.h: Declare __sigsuspend_nocancel.
10961 * sysdeps/posix/pause.c
10962 [! NO_CANCELLATION] (__pause_nocancel): New function.
10964 * include/unistd.h (__pause_nocancel): Add attribute_hidden.
10965 * include/time.h (__nanosleep_nocancel): Likewise.
10967 2006-07-30 Ulrich Drepper <drepper@redhat.com>
10969 * locale/programs/localedef.c (add_to_readlist): Rename local
10970 variables to avoid confusion.
10972 * locale/programs/charmap.c (charmap_read): Emit error message if
10973 charmap couldn't be found or read.
10975 2006-07-28 Ulrich Drepper <drepper@redhat.com>
10977 * sysdeps/unix/sysv/linux/kernel-features.h: Define
10978 __ASSUME_FUTEX_LOCK_PI.
10979 * include/time.h: Declare __nanosleep_nocancel.
10980 * include/unistd.h: Declare __pause_nocancel.
10982 * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Use this instead of
10983 LDFLAGS. Add -lgcc_eh and libc_nonshared (again) to make sure we
10984 get the __stack_chk_fail_local definition when it's needed.
10986 2006-07-26 Ulrich Drepper <drepper@redhat.com>
10988 * dlfcn/Makefile: Add rules to build and run bug-atexit3.
10989 * dlfcn/bug-atexit3.c: New file.
10990 * dlfcn/bug-atexit3-lib.cc: New file.
10992 * dlfcn/dlmopen.c (dlmopen_doit): Don't allow RTLD_GLOBAL to be
10993 used when the namespace is not the base namespace.
10995 2006-07-26 Gavin Romig-Koch <gavin@redhat.com>
10997 * stdlib/cxa_atexit.c (__new_exitfn_called): New variable.
10998 (__new_exitfn): Bump it in every successful call.
10999 * stdlib/cxa_finalize.c (__cxa_finalize): If destructor registered
11000 more exit handlers, call them right away.
11001 * stdlib/exit.h: Declare __new_exitfn_called.
11003 2006-07-25 Ulrich Drepper <drepper@redhat.com>
11005 * stdlib/cxa_finalize.c (__cxa_finalize): Fix race condition when
11006 calling registered handler.
11008 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Fix comment.
11009 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
11010 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
11011 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
11012 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
11013 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
11014 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
11015 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
11017 2006-07-10 Ulrich Drepper <drepper@redhat.com>
11019 * elf/dl-lookup.c (dl_new_hash): New functions.
11020 (_dl_lookup_symbol_x): Rename hash to old_hash and don't compute
11021 value here. Compute new-style hash value. Pass new hash value
11022 and reference to variable with the old value to do_lookup_x.
11023 (_dl_setup_hash): If DT_GNU_HASH is defined, use it and not
11024 old-style hash table.
11025 (_dl_debug_bindings): Pass new hash value and reference to variable
11026 with the old value to do_lookup_x.
11027 * elf/do-lookup.h (do_lookup_x): Accept additional parameter with
11028 new-style hash value and change old-style hash value parameter to
11029 be a reference. Reoganize functions to determine whether
11030 new-style hash table is available. Only fall back on old-style
11031 table. If old-style hash value is needed, compute it here.
11032 * elf/dynamic-link.h (elf_get_dynamic_info): Relocate DT_GNU_HASH
11034 * elf/elf.h: Define SHT_GNU_HASH, DT_GNU_HASH, DT_TLSDEC_PLT,
11035 DT_TLSDEC_GOT. Adjust DT_ADDRNUM.
11036 * include/link.h (struct link_map): Add l_gnu_bitmask_idxbits,
11037 l_gnu_shift, l_gnu_bitmask, l_gnu_buckets and l_gnu_chain_zero.
11038 * Makeconfig: If linker supports --hash-style option add it to all
11039 linker command lines to build DSOs.
11040 * config.make.in: Define have-hash-style.
11041 * configure.in: Test whether linker supports --hash-style option.
11043 * elf/dl-misc.c (_dl_name_match_p): Make MAP parameter const.
11044 * sysdeps/generic/ldsodefs.h: Adjust prototype.
11046 2006-06-27 Ulrich Drepper <drepper@redhat.com>
11048 * elf/dl-load.c (open_path): Fix test to determine whether DSO is
11051 * elf/dl-load.c (_dl_map_object): Try harder to avoid looking at
11052 RPATH of main map twice.
11054 2006-06-22 Ulrich Drepper <drepper@redhat.com>
11056 * intl/dcigettext.c (DCIGETTEXT): If _nl_find_msg returns -1 don't
11057 look further, return original strings.
11058 (_nl_find_msg): Do not return found translation if the conversion
11059 failed. Either signal the string is unusable or that something went
11060 wrong and the original should be used.
11062 2006-06-21 Ulrich Drepper <drepper@redhat.com>
11064 * string/_strerror.c (__strerror_r): Add __builtin_expect.
11066 2006-06-14 Jakub Jelinek <jakub@redhat.com>
11069 * misc/insremque.c (insque): Handle prev == NULL.
11070 * misc/Makefile (tests): Add tst-insremque.
11071 * misc/tst-insremque.c: New test.
11073 2006-06-17 Ulrich Drepper <drepper@redhat.com>
11076 * elf/dl-deps.c (expand_dst): Rename __cnt variable to not
11077 conflict with DL_DST_REQUIRED.
11079 2006-06-16 Ulrich Drepper <drepper@redhat.com>
11081 * nis/nis_subr.c (nis_getnames): Fix the implementation to better
11082 match what Solaris does.
11084 2006-06-04 Ulrich Drepper <drepper@redhat.com>
11086 * sysdeps/posix/spawni.c (__spawni): Use local_seteuid and
11087 local_setegid instead of seteuid and setegid.
11088 * sysdeps/generic/local-setxid.h: New file.
11089 * sysdeps/unix/sysv/linux/local-setxid.h: New file.
11091 * sysdeps/posix/spawni.c (__spawni): Use non-cancelable interfaces.
11093 * string/Makefile (tests): Add bug-envz1.
11094 * string/bug-envz1.c: New file.
11096 2006-06-02 Jakub Jelinek <jakub@redhat.com>
11098 * posix/regex_internal.c (re_string_skip_chars): If no character has
11099 been converted at all, set *last_wc to WEOF. If mbrtowc failed, set wc
11100 to the byte which couldn't be converted.
11101 (re_string_reconstruct): Don't clear valid_raw_len before calling
11102 re_string_skip_chars. If wc is WEOF after re_string_skip_chars, set
11103 tip_context using re_string_context_at.
11104 * posix/Makefile: Add rules to build and run bug-regex25 test.
11105 * posix/bug-regex25.c: New test.
11107 2006-06-02 Ryan S. Arnold <rsa@us.ibm.com>
11110 * string/envz.c (envz_strip): Correct erroneously reversed src
11111 and dest parameters to memmove() invocation.
11113 2006-05-30 Jakub Jelinek <jakub@redhat.com>
11115 * nscd/nscd.h (prune_cache): Add fd argument to prototype.
11116 * nscd/nscd.c (parse_opt): Read response from INVALIDATE request
11117 to make sure the database has been already invalidated.
11118 * nscd/cache.c (prune_cache): Add fd argument. Write response to fd
11119 after the cache has been invalidated. Use pthread_mutex_lock rather
11120 than pthread_mutex_trylock if fd != -1.
11121 * nscd/connections.c (invalidate_cache): Add fd argument, write
11122 response to fd if not calling prune_cache, pass fd to prune_cache.
11123 (handle_request): Adjust invalidate_cache caller.
11124 (nscd_run): Pass -1 as fd to prune_cache.
11126 2006-05-30 Ulrich Drepper <drepper@redhat.com>
11128 * sysdeps/posix/getaddrinfo.c (gaiconf_init): Initialize bits in
11131 2006-05-29 Ulrich Drepper <drepper@redhat.com>
11133 * nscd/nscd.h (struct database_dyn): Add prunelock field.
11134 * nscd/cache.c (prune_cache): Take prunelock before starting the
11135 work. Just return in case it is already taken.
11136 * nscd/connections.c (dbs): Initialize .prunelock.
11138 2006-05-25 Ulrich Drepper <drepper@redhat.com>
11140 * nis/nis_removemember.c (nis_removemember): Avoid unnecessary
11141 copying. No need to allocate new array for group members. Just
11142 move the pointers and update the size.
11144 * nis/nis_addmember.c (nis_addmember): Avoid unnecessary copying.
11145 Avoid memory leak in case realloc fails. Simplification for
11146 better code generation.
11148 Avoid deprecation warning because of libc_hidden_proto for
11149 inet6_option_alloc.
11150 * inet/inet6_option.c (option_alloc): Renamed from
11151 inet6_option_alloc. Made static.
11152 (inet6_option_alloc): Now a simple wrapper around option_alloc.
11153 (inet6_option_append): Call option_alloc.
11154 * include/netinet/in.h: Remove libc_hidden_proto for
11155 inet6_option_alloc.
11157 * nis/nis_callback.c (__nis_create_callback): Always call xdr_free
11158 for cleanup when cb!=NULL [Coverity CID 233].
11160 2006-05-24 Ulrich Drepper <drepper@redhat.com>
11163 * inet/Makefile (routines): Add inet6_opt and inet6_rth.
11164 * inet/Versions (libc, GLIBC_2.5): Add inet6_opt_init,
11165 inet6_opt_append, inet6_opt_finish, inet6_opt_set_val, inet6_opt_next,
11166 inet6_opt_find, inet6_opt_get_val, inet6_rth_space, inet6_rth_init,
11167 inet6_rth_add, inet6_rth_reverse, inet6_rth_segments,
11168 and inet6_rth_getaddr.
11169 * inet/netinet/ip6.h (struct ip6_rthdr0): Make ip6r0_addr a flexible
11171 * inet/netinet/in.h (struct ip6_mtuinfo): Define.
11172 Mark inet6_option_* interfaces as deprecated.
11173 Declare inet6_opt_init, inet6_opt_append, inet6_opt_finish,
11174 inet6_opt_set_val, inet6_opt_next, inet6_opt_find, inet6_opt_get_val,
11175 inet6_rth_space, inet6_rth_init, inet6_rth_add, inet6_rth_reverse,
11176 inet6_rth_segments, and inet6_rth_getaddr.
11177 * inet/inet6_opt.c: New file.
11178 * inet/inet6_rth.c: New file.
11180 * inet/netinet/icmp6.h: Pretty printing.
11183 * elf/dl-addr.c (_dl_addr): Don't match undefined references.
11185 2006-05-23 Ulrich Drepper <drepper@redhat.com>
11187 * nis/nis_lookup.c (nis_lookup): Use __prepare_niscall instead of
11188 doing it all here. When server does not know the answer do not
11189 fail immediate, try parent first.
11191 * nis/nis_domain_of_r.c (nis_domain_of_r): Add missing buffer
11194 2006-05-20 Ulrich Drepper <drepper@redhat.com>
11196 * nis/nis_call.c (__prepare_niscall): New function. Split out
11198 * nis/nis_table.c (__create_ib_request): Renamed from create_ib_request
11200 (__follow_path): New function. Split out from nis_list.
11201 * nis/nis_xdr.h: Add libnsl_hidden_proto for _xdr_ib_request and
11203 * nis/nis_xdr.c: Add libnsl_hidden_def for _xdr_ib_request and
11205 * nis/libnsl.h: Declare __prepare_niscall, __create_ib_request,
11207 * nis/Versions: Export __prepare_niscall, __create_ib_request,
11208 __follow_path, __do_niscall3, _xdr_ib_request, and _xdr_nis_result
11209 from libnsl for version GLIBC_PRIVATE.
11210 * nis/nisplus-parser.h: Remove _nss_nisplus_parse_pwent_chk.
11211 Remove entry parameter from _nss_nisplus_parse_pwent and
11212 _nss_nisplus_parse_grent.
11213 * nis/nss_nisplus/nisplus-parser.c: Likewise.
11214 * nis/nss_nisplus/nisplus-pwd.c: Remove support for SETENT_BATCH_READ
11215 again. Rewrite getpwent handling to not use nis_first_entry and
11216 nis_next_entry. Roll out own niscall handling.
11217 * nis/nss_nisplus/nisplus-grp.c: Likewise.
11219 * sunrpc/xdr_rec.c: Fix typo in comment.
11221 2006-05-19 Ulrich Drepper <drepper@redhat.com>
11223 * nis/nis_call.c (__do_niscall3): Avoid code duplication in error
11226 * nis/nis_callback.c (internal_nis_do_callback): Don't use malloc
11227 to allocate memory for my_pollfd. Better initialization of
11228 cb_is_running. Use TEMP_FAILURE_RETRY.
11230 * malloc/memusage.sh (memusageso): Add quotes.
11231 (memusagestat): Likewise.
11232 * debug/xtrace.sh (pcprofileso): Likewise.
11233 (pcprofiledump): Likewise.
11234 * debug/Makefile ($(objpfx)xtrace): Use $LIB in SLIBDIR
11236 * malloc/Makefile ($(objpfx)memusage): Likewise.
11238 * nis/nis_callback.c (__nis_create_callback): Calls to
11239 svcudp_bufcreate and svctcp_create can fail. Free ->xprt if
11240 asprintf call fails.
11242 * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_sendreq): Make sure
11243 no uninitialized memory is passed to sendto.
11245 2006-05-18 Ulrich Drepper <drepper@redhat.com>
11247 * nis/nis_callback.c (__nis_create_callback): Use asprinf instead
11248 of snprintf+strdup. Handle OOM.
11249 * nis/nis_callback.c (__nis_create_callback): Allocate cb and
11250 cb->serv together. Remove now obsolete free calls.
11251 (__nis_destroy_callback): Remove now obsolete free call.
11253 2006-05-18 David Woodhouse <dwmw2@redhat.com>
11255 * sysdeps/posix/getaddrinfo.c: Add unique labels to the default
11256 RFC3484 precedence table for fec0::/10 and fc00::/7 (site-local
11257 and ULA respectively). Set precedence for IPv4 address to 10 as
11258 defined in RFC3484 for preferring IPv6.
11259 * posix/gai.conf: Update to match the new default tables.
11261 2006-05-18 Jakub Jelinek <jakub@redhat.com>
11263 * nis/nss_compat/compat-pwd.c (internal_setpwent): If nss_set*ent
11264 returned NSS_STATUS_UNAVAIL, still return NSS_STATUS_SUCCESS.
11265 * nis/nss_compat/compat-spwd.c (internal_setspent): Likewise.
11266 * nis/nss_compat/compat-grp.c (internal_setgrent): Likewise.
11268 * nis/nss_compat/compat-initgroups.c (nss_setgrent, nss_endgrent):
11270 (init_nss_interface): Remove initialization of these variables.
11272 2006-05-18 Ulrich Drepper <drepper@redhat.com>
11274 * nis/nis_call.c (rec_dirsearch): Little optimization: pull
11275 nis_free_directory forward to avoid duplication.
11277 2006-05-17 Ulrich Drepper <drepper@redhat.com>
11279 * nis/nis_call.c (rec_dirsearch): Handle __nis_finddirectory and
11280 rec_dirsearch returning NULL.
11281 (first_shoot): Handle __nis_finddirectory returning NULL.
11282 (__nisfind_server): Fix leak when rec_dirsearch returns NULL.
11284 * sysdeps/unix/sysv/linux/sys/inotify.h: Define IN_CLOSE, IN_MOVE,
11285 IN_ONLYDIR, IN_DONT_FOLLOW, and IN_MASK_ADD.
11287 2006-05-17 Jakub Jelinek <jakub@redhat.com>
11289 * sunrpc/key_call.c (getkeyserv_handle): Call auth_destroy if
11292 2006-05-15 Ulrich Drepper <drepper@redhat.com>
11294 * include/rpc/pmap_prot.h: Mark all functions as hidden.
11296 * nscd/nscd_initgroups.c: Mark __gr_map_handle as hidden.
11297 * nscd/nscd_getgr_r.c: Likewise.
11299 * include/rpc/pmap_rmt.h: Mark all functions as hidden.
11301 * nscd/nscd_getai.c (__hst_map_handle): Mark as hidden.
11302 * nscd/nscd_gethst_r.c (__hst_map_handle): Likewise.
11304 * stdlib/longlong.h (__clz_tab): Mark as hidden.
11306 * iconv/gconv_int.h: Mark __gconv_lock as hidden.
11308 * include/rpc/key_prot.h: Mark all _internal functions as hidden.
11310 * include/rpc/auth.h: Mark xdr_des_block_internal and
11311 xdr_opaque_auth_internal as hidden.
11313 * sysdeps/unix/sysv/linux/getdents.c: Mark __have_no_getdents64 as
11316 * include/rpc/xdr.h: Mark all _internal functions as hidden.
11318 * misc/getusershell.c (okshells): Don't use static initializers,
11321 * stdlib/fmtmsg.c (keywords): Change type of len element to
11322 uint32_t to not waste space on 64bit machines.
11324 * locale/setlocale.c: Change _nl_category_names into a string.
11325 Add new _nl_category_name_idxs. Change all users.
11326 * locale/localeinfo.h: Adjust declaration of _nl_category_names.
11327 Declare _nl_category_name_idxs.
11328 * locale/findlocale.c: Adjust for _nl_category_names change.
11329 * locale/loadlocale.c: Likewise.
11330 * locale/newlocale.c: Likewise.
11331 * intl/dcigettext.c: Likewise.
11333 * iconv/gconv_conf.c (add_alias): Move actual alias handling to...
11334 (add_alias2): ...here. New function.
11335 (__gconv_read_conf): Simplify builtin alias handling.
11336 (builtin_aliases): Convert to string to avoid relocations.
11337 * iconv/gconv_builtin.h: Add comment about correct formatting.
11339 2006-05-15 Jakub Jelinek <jakub@redhat.com>
11341 * resolv/res_debug.c (loc_ntoa): Make error const.
11343 2006-05-14 Andreas Schwab <schwab@suse.de>
11345 * math/complex.h [__LDBL_COMPAT]: Use __REDIRECT_NTH.
11347 2006-05-12 Jakub Jelinek <jakub@redhat.com>
11349 * sysdeps/unix/sysv/linux/sched_getaffinity.c: Include sys/param.h.
11350 (__sched_getaffinity_new): Don't crash if cpusetsize is smaller than
11351 sizeof (cpu_set_t).
11353 2006-05-11 Ulrich Drepper <drepper@redhat.com>
11355 * resolv/res_debug.c (loc_ntoa): Define error as array, not pointer.
11357 * include/arpa/nameser.h: Declare _ns_flagdata as hidden.
11359 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_master.
11360 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_master.
11362 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypbind_resp.
11363 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypbind_resp.
11365 * nis/nis_xdr.c: Add libnsl_hidden_def for xdr_cback_data.
11366 * include/rpcsvc/nis_callback.h: Add libnsl_hidden_proto for
11369 * nis/ypupdate_xdr.c: Add libnsl_hidden_def for xdr_ypupdate_args.
11370 * include/rpcsvc/ypupd.h: Add libnsl_hidden_proto for
11373 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_order.
11374 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_order.
11376 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_maplist.
11377 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_maplist.
11379 * nis/nis_xdr.c: Add libnsl_hidden_def for xdr_obj_p.
11380 * include/rpcsvc/nis_callback.h: New file.
11382 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_val.
11383 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_val.
11385 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypreq_nokey.
11386 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypreq_nokey.
11388 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypmaplist.
11389 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypmaplist.
11391 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypreq_nokey.
11392 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypreq_nokey.
11394 * nis/ypupdate_xdr.c: Add libnsl_hidden_def for xdr_ypdelete_args.
11395 * include/rpcsvc/ypupd.h: Add libnsl_hidden_proto for
11398 * nis/nis_xdr.h: Mark all functions as hidden. Remove
11399 __BEGIN_DECLS and __END_DECLS, the header is not installed.
11401 * nis/nis_error.c: Remove table of strings. Use position
11402 independent mechanism.
11403 * nis/nis_error.h: New file.
11405 2006-05-11 Jakub Jelinek <jakub@redhat.com>
11407 * locale/programs/ld-time.c (time_finish): If wide era name or
11408 format aren't provided, set both wname and wformat to L"".
11410 2006-05-10 Ulrich Drepper <drepper@redhat.com>
11412 * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Only store
11413 results if the call was succesful.
11415 * nis/nss-nis.h: Mark __yperr2nss_tab and __yperr2nss_count as hidden.
11417 * nis/nss-nisplus.h: Mark __niserr2nss_tab and __niserr2nss_count
11420 2006-05-10 Jakub Jelinek <jakub@redhat.com>
11422 * misc/sys/queue.h: Remove uses of all QUEUEDEBUG_* macros.
11424 2006-05-10 Ulrich Drepper <drepper@redhat.com>
11426 * posix/wordexp.c (parse_glob): No need to check ifs for NULL, the
11427 caller makes sure this is not the case.
11428 (wordexp): Simplify ifs_white creation. [Coverity CID 231]
11430 2006-05-09 Ulrich Drepper <drepper@redhat.com>
11432 * posix/wordexp.c: Remove numerous NULL pointer tests before FREE
11435 * io/ftw.c (open_dir_stream): Return right away if REALLOC fails.
11436 [Coverity CID 229, 230]
11438 * argp/argp-help.c (hol_entry_help): Handle STATE==NULL in ARG and
11440 (hol_help): Likewise. [Coverity CID 226, 227]
11442 * string/argz-replace.c (__argz_replace): Unconditionally call
11443 free on SRC. [Coverity CID 225]
11445 * nis/nis_creategroup.c (nis_creategroup): No need to duplicate
11446 the return value of __nis_default_owner and __nis_default_group,
11447 it has been especially allocated. [Coverity CID 224]
11449 * nis/nis_defaults.c (searchXYX): New functions. Used by both
11450 searchgroup and searchowner. Significantly simplified.
11451 (__nis_default_owner): Remove duplication. Do not locally copy the
11452 string before duplicating it.
11453 (__nis_default_group): Likewise.
11455 * nis/nis_lookup.c (nis_lookup): After calling nis_free_directory,
11456 we must clear the variable before calling __nisfind_server.
11458 * nis/nis_lookup.c (nis_lookup): Always free memory allocated with
11459 nis_getnames. [Coverity CID 223]
11461 * locale/programs/locfile.c (locfile_read): Use alloca instead of
11462 xmalloc to allocate local repertoire name. [Coverity CID 222]
11464 * iconv/iconv_charmap.c (use_to_charmap): No need to dynamically
11465 allocate memory for the input to add_bytes. [Coverity CID 221]
11467 * posix/wordexp.c (w_addword): Free word if realloc fails and it
11468 was allocated here. [Coverity CID 219, 220]
11470 * posix/getconf.c (print_all): Free confstr data after printing.
11473 * sysdeps/posix/getaddrinfo.c (gaih_inet): Free canon string if
11474 list allocation fails. [Coverity CID 215]
11476 * nss/nsswitch.c (__nss_configure_lookup): Fix loop end condition.
11479 * argp/argp-help.c (hol_entry_cmp): Don't call canon_doc_option if
11480 string is NULL. [Coverity CID 212]
11481 * argp/Makefile: Add rules to build and run bug-argp1.
11482 * argp/bug-argp1.c: New file.
11484 * io/ftw.c (ftw_dir): Use __rawmemchr instead of strchr to find
11486 * stdlib/canonicalize.c (__realpath): Likewise.
11488 * locale/programs/ld-time.c (time_finish): Don't dereference NULL
11489 pointer. [Coverity CID 206]
11491 * elf/dl-dst.h (DL_DST_REQUIRED): Be prepared for missing link map
11492 in statically linked code.
11493 * elf/dl-load.c (_dl_dst_substitute): When replacing ORIGIN in
11494 statically built code, be prepared to have no link map.
11497 * argp/argp-help.c (fill_in_uparams): Handle STATE==NULL in
11498 dgettext calls. [Coverity CID 204]
11500 * argp/argp-help.c (struct uparams): Remove valid member. Change
11502 (uparam_names): Reduce size. Avoid relative relocations.
11503 Moved to read-only segment.
11504 (fill_in_uparams): Update for new layout.
11506 * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs): Parameter can be
11507 assumed to always be != NULL. [Coverity CID 202]
11509 * argp/argp-help.c (hol_entry_help): Remove some dead code
11510 [Coverity CID 200].
11512 * nis/nss_nis/nis-service.c (_nss_nis_getservbyport_r): Optimize
11513 away a few more unconditional yperr2nss calls.
11514 (_nss_nis_getservbyname_r): Likewise.
11516 2006-05-06 Ulrich Drepper <drepper@redhat.com>
11518 * sysdeps/generic/ldsodefs.h: Remove support for non-core
11521 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Make sure
11522 that unused memory passed to sendto is nevertheless initialized.
11525 * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Avoid
11526 possibly unaligned memory accesses.
11528 * include/arpa/nameser.h: Also optimize NS_PUT16 and NS_PUT32.
11529 * resolv/res_mkquery.c: Use NS_PUT16 and NS_PUT32 instead of __putshort
11530 and __putlong respectively. Correct buffer overflow check for
11533 * resolv/res_send.c (send_vc): Use ns_put16 instead of putshort.
11535 * resolv/res_send.c (res_queriesmatch): Fix typo in comment.
11536 (send_dg): Rewrite error handling to be more compact and avoid
11537 double recomputation of timeouts. Pass MSG_NOSIGNAL to send.
11539 * include/arpa/nameser.h: Add optimizations for NS_GET16 and NS_GET32.
11541 * resolv/res_send.c (res_nameinquery): Use NS_GET16 directly
11542 instead of ns_get16.
11543 (res_queriesmatch): Likewise. Minor optimization.
11546 * resolv/res_query.c (__libc_res_nquery): If answerp != NULL,
11547 __libc_res_nsend might reallocate the buffer for the answer. In
11548 this case we have to reload the HP pointer.
11550 2006-05-05 Ulrich Drepper <drepper@redhat.com>
11552 * stdio-common/vfscanf.c (memory_error): Remove definition. Add
11553 some branch prediction hints.
11555 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Define SPLICE_F_*.
11556 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
11557 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
11558 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
11559 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
11560 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
11561 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
11562 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
11564 2006-05-05 Martin Schwidefsky <schwidefsky@de.ibm.com>
11566 * sysdeps/s390/s390-32/elf/start.S: Replace pc relative relocation
11567 by a GOT relocation to make Scrt1.o position independent.
11568 * sysdeps/s390/s390-64/elf/start.S: Likewise.
11570 * sysdeps/unix/sysv/linux/s390/s390-32/syscall.S: Add support for
11571 six system call parameters.
11572 * sysdeps/unix/sysv/linux/s390/s390-64/syscall.S: Likewise.
11574 2006-05-05 Ulrich Drepper <drepper@redhat.com>
11576 * sunrpc/svcauth_des.c (cache_init): Use calloc instead of
11579 * sunrpc/svc_udp.c (BZERO): Remove definition.
11581 (svc_enablecache): Use CALLOC instead of ALLOC&BZERO.
11583 * sunrpc/des_impl.c: Remove ALT_ECB support. We never used it.
11584 (des_SPtrans): Use uint32_t type.
11585 (des_skb): Likewise.
11587 * sunrpc/xdr_ref.c (xdr_reference): Use calloc instead of malloc&bzero.
11589 2006-05-05 Jakub Jelinek <jakub@redhat.com>
11592 * stdio-common/tst-printf.sh: Adjust for tst-printf.c change even
11595 2006-05-05 Ulrich Drepper <drepper@redhat.com>
11597 * locale/programs/ld-address.c (address_finish): Fix one more
11598 place where the iso639 array might be accessed beyond the limits.
11600 2006-05-04 Ulrich Drepper <drepper@redhat.com>
11602 * nis/nis_table.c (nis_list): Avoid clearing res twice before
11603 filling it for the first time.
11605 * nis/nis_table.c (get_tablepath): Renamed from __get_tablepath.
11606 Adjust all callers.
11607 Free res object content before returning.
11609 * sunrpc/xdr_array.c (xdr_array): Use calloc instead of malloc&bzero.
11611 * sunrpc/key_call.c (__rpc_thread_key_cleanup): Also free
11614 * sunrpc/rpc_thread.c (__rpc_thread_destroy): Don't skip entire
11615 cleanup for initial thread, just the free call on TVP.
11617 * nscd/gai.c (__getline): Define.
11620 See ChangeLog.16 for earlier changes.