]> git.ipfire.org Git - thirdparty/glibc.git/blame - ChangeLog
Compact cache info data structure for x86/x86-64.
[thirdparty/glibc.git] / ChangeLog
CommitLineData
1de0c161
UD
12009-05-29 Ulrich Drepper <drepper@redhat.com>
2
3 * sysdeps/x86_64/cacheinfo.c: Compact intel_02_known array. Adjust
4 code accessing it.
5 * sysdeps/unix/sysv/linux/i386/sysconf.c: Likewise.
6
0323b051
AS
72009-05-22 Andreas Schwab <schwab@linux-m68k.org>
8
38ae768d
AS
9 * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Set errno for ±Inf.
10 * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
11 * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
12 * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c: Set errno for overflow.
13
0323b051
AS
14 * sysdeps/powerpc/powerpc32/____longjmp_chk.S: New file.
15 * sysdeps/powerpc/powerpc64/____longjmp_chk.S: New file.
16 * sysdeps/powerpc/powerpc32/__longjmp-common.S: Use CHECK_SP if
17 defined.
18 * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
19 * sysdeps/powerpc/powerpc64/__longjmp-common.S: Likewise.
20
1e1dc4e8
JJ
212009-05-22 Jakub Jelinek <jakub@redhat.com>
22
23 * sysdeps/unix/sysv/linux/accept4.c: Include kernel-features.h.
24 (accept4): If __NR_accept4 is not defined, but __NR_socketcall
25 is, either do nothing at all if __ASSUME_ACCEPT4, or
26 call __internal_accept4 and handle EINVAL -> ENOSYS translation.
27 * sysdeps/unix/sysv/linux/internal_accept4.S: New file.
28 * sysdeps/unix/sysv/linux/i386/accept4.S (SOCKOP_accept4): Don't
29 define.
30 * sysdeps/unix/sysv/linux/i386/internal_accept4.S: New file.
31 * sysdeps/unix/sysv/linux/Makefile (sysdep-routines): Add
32 internal_accept4 in socket directory.
33
10495c0b
UD
342009-05-20 H.J. Lu <hongjiu.lu@intel.com>
35
36 * sysdeps/ia64/configure.in: New file.
37
fa64b7f7
UD
382009-05-21 H.J. Lu <hongjiu.lu@intel.com>
39
40 [BZ #10162]
41 * sysdeps/ia64/memchr.S: Use speculative load.
42
d2812fc6
L
43 * sysdeps/unix/sysv/linux/ia64/____longjmp_chk.S: New file.
44 * sysdeps/unix/sysv/linux/ia64/__longjmp.S: If CHECK_RSP is defined,
45 use it.
46
e7535de7
L
47 * sysdeps/i386/__longjmp.S: Add .text.
48 * sysdeps/x86_64/__longjmp.S: Likewise.
49
3533b1a6
UD
502009-05-21 Ulrich Drepper <drepper@redhat.com>
51
52 * sysdeps/unix/sysv/linux/kernel-features.h: Don't define
53 __ASSUME_ACCEPT4 for IA-64.
54
a2292378
JJ
552009-05-21 Jakub Jelinek <jakub@redhat.com>
56
d14eda93
JJ
57 * sysdeps/unix/sysv/linux/accept4.c (__NR_accept4): Don't define.
58
a2292378
JJ
59 * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_paccept): Remove.
60 (SOCKOP_accept4): Define.
61
d4ab2f2a
UD
622009-05-20 Ulrich Drepper <drepper@redhat.com>
63
ab09b221
UD
64 Sun approved the change of the license.
65 * sunrpc/auth_des.c: Replace license text.
66 * sunrpc/auth_none.c: Likewise.
67 * sunrpc/auth_unix.c: Likewise.
68 * sunrpc/authdes_prot.c: Likewise.
69 * sunrpc/authuxprot.c: Likewise.
70 * sunrpc/bindrsvprt.c: Likewise.
71 * sunrpc/clnt_gen.c: Likewise.
72 * sunrpc/clnt_perr.c: Likewise.
73 * sunrpc/clnt_raw.c: Likewise.
74 * sunrpc/clnt_simp.c: Likewise.
75 * sunrpc/clnt_tcp.c: Likewise.
76 * sunrpc/clnt_udp.c: Likewise.
77 * sunrpc/clnt_unix.c: Likewise.
78 * sunrpc/des_crypt.c: Likewise.
79 * sunrpc/des_soft.c: Likewise.
80 * sunrpc/get_myaddr.c: Likewise.
81 * sunrpc/getrpcport.c: Likewise.
82 * sunrpc/key_call.c: Likewise.
83 * sunrpc/key_prot.c: Likewise.
84 * sunrpc/openchild.c: Likewise.
85 * sunrpc/pm_getmaps.c: Likewise.
86 * sunrpc/pm_getport.c: Likewise.
87 * sunrpc/pmap_clnt.c: Likewise.
88 * sunrpc/pmap_prot.c: Likewise.
89 * sunrpc/pmap_prot2.c: Likewise.
90 * sunrpc/pmap_rmt.c: Likewise.
91 * sunrpc/rpc/auth.h: Likewise.
92 * sunrpc/rpc/auth_unix.h: Likewise.
93 * sunrpc/rpc/clnt.h: Likewise.
94 * sunrpc/rpc/des_crypt.h: Likewise.
95 * sunrpc/rpc/key_prot.h: Likewise.
96 * sunrpc/rpc/netdb.h: Likewise.
97 * sunrpc/rpc/pmap_clnt.h: Likewise.
98 * sunrpc/rpc/pmap_prot.h: Likewise.
99 * sunrpc/rpc/pmap_rmt.h: Likewise.
100 * sunrpc/rpc/rpc.h: Likewise.
101 * sunrpc/rpc/rpc_des.h: Likewise.
102 * sunrpc/rpc/rpc_msg.h: Likewise.
103 * sunrpc/rpc/svc.h: Likewise.
104 * sunrpc/rpc/svc_auth.h: Likewise.
105 * sunrpc/rpc/types.h: Likewise.
106 * sunrpc/rpc/xdr.h: Likewise.
107 * sunrpc/rpc_clntout.c: Likewise.
108 * sunrpc/rpc_cmsg.c: Likewise.
109 * sunrpc/rpc_common.c: Likewise.
110 * sunrpc/rpc_cout.c: Likewise.
111 * sunrpc/rpc_dtable.c: Likewise.
112 * sunrpc/rpc_hout.c: Likewise.
113 * sunrpc/rpc_main.c: Likewise.
114 * sunrpc/rpc_parse.c: Likewise.
115 * sunrpc/rpc_parse.h: Likewise.
116 * sunrpc/rpc_prot.c: Likewise.
117 * sunrpc/rpc_sample.c: Likewise.
118 * sunrpc/rpc_scan.c: Likewise.
119 * sunrpc/rpc_scan.h: Likewise.
120 * sunrpc/rpc_svcout.c: Likewise.
121 * sunrpc/rpc_tblout.c: Likewise.
122 * sunrpc/rpc_util.c: Likewise.
123 * sunrpc/rpc_util.h: Likewise.
124 * sunrpc/rpcinfo.c: Likewise.
125 * sunrpc/rpcsvc/bootparam_prot.x: Likewise.
126 * sunrpc/rpcsvc/key_prot.x: Likewise.
127 * sunrpc/rpcsvc/klm_prot.x: Likewise.
128 * sunrpc/rpcsvc/mount.x: Likewise.
129 * sunrpc/rpcsvc/nfs_prot.x: Likewise.
130 * sunrpc/rpcsvc/rex.x: Likewise.
131 * sunrpc/rpcsvc/rstat.x: Likewise.
132 * sunrpc/rpcsvc/rusers.x: Likewise.
133 * sunrpc/rpcsvc/sm_inter.x: Likewise.
134 * sunrpc/rpcsvc/spray.x: Likewise.
135 * sunrpc/rpcsvc/yppasswd.x: Likewise.
136 * sunrpc/rtime.c: Likewise.
137 * sunrpc/svc.c: Likewise.
138 * sunrpc/svc_auth.c: Likewise.
139 * sunrpc/svc_authux.c: Likewise.
140 * sunrpc/svc_raw.c: Likewise.
141 * sunrpc/svc_run.c: Likewise.
142 * sunrpc/svc_simple.c: Likewise.
143 * sunrpc/svc_tcp.c: Likewise.
144 * sunrpc/svc_udp.c: Likewise.
145 * sunrpc/svc_unix.c: Likewise.
146 * sunrpc/svcauth_des.c: Likewise.
147 * sunrpc/xcrypt.c: Likewise.
148 * sunrpc/xdr.c: Likewise.
149 * sunrpc/xdr_array.c: Likewise.
150 * sunrpc/xdr_float.c: Likewise.
151 * sunrpc/xdr_mem.c: Likewise.
152 * sunrpc/xdr_rec.c: Likewise.
153 * sunrpc/xdr_ref.c: Likewise.
154 * sunrpc/xdr_sizeof.c: Likewise.
155 * sunrpc/xdr_stdio.c: Likewise.
156
d4ab2f2a
UD
157 * po/da.po: Update from translation team.
158
04733592
KK
1592009-05-18 Kaz Kojima <kkojima@rr.iij4u.or.jp>
160
161 * sysdeps/sh/____longjmp_chk.S: New file.
162 * sysdeps/sh/sh3/__longjmp.S: If CHECK_SP is defined, use it.
163 * sysdeps/sh/sh4/__longjmp.S: Likewise.
a2292378 164
5078fff6
JJ
1652009-05-18 Jakub Jelinek <jakub@redhat.com>
166 Ulrich Drepper <drepper@redhat.com>
167
168 * nscd/nscd_helper.c (MINIMUM_HASHENTRY_SIZE): Define.
169 (__nscd_cache_search): Assume each entry in the
170 hash chain needs one hashentry and half of datahead. Use
171 MINIMUM_HASHENTRY_SIZE instead of sizeof(hashentry).
172
95410b7b
UD
1732009-05-16 Ulrich Drepper <drepper@redhat.com>
174
c457bc13
UD
175 * posix/sys/wait.h: Fix typos. Pretty printing.
176 * stdlib/stdlib.h: Likewise. Correct comments.
8f0d3f49 177
a64039b0
UD
178 [BZ #10159]
179 * stdlib/stdlib.h (__WAIT_INT): Match the definition in <sys/wait.h>.
180
95410b7b
UD
181 * nscd/nscd_helper.c (__nscd_cache_search): Fix exit condition in last
182 patch.
183
831a4049
UD
1842009-05-15 Ulrich Drepper <drepper@redhat.com>
185
831a4049
UD
186 * nscd/nscd_helper.c (__nscd_cache_search): Introduce loop counter.
187 Use it if we absolutely cannot reach any more correct list elements
188 because that many do not fit into the currently mapped database.
189
6dd78596
UD
1902009-05-14 Jakub Jelinek <jakub@redhat.com>
191
cfe1fc10
JJ
192 * nscd/nscd_helper.c: Include stddef.h.
193 (__nscd_cache_search): Add datalen argument. Use atomic_forced_read
194 in a couple of places. Return NULL if trail is not less than
195 datasize, don't consider dataheads with length smaller than
196 offsetof (struct datahead, data) + datalen.
197 * nscd/nscd_client.h (__nscd_cache_search): Adjust prototype.
198 * nscd/nscd_gethst_r.c (nscd_gethst_r): Adjust callers.
199 * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
200 * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
201 * nscd/nscd_getai.c (__nscd_getai): Likewise.
202 * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
203 * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
204
6dd78596
UD
205 * sysdeps/unix/sysv/linux/i386/fallocate64.c (__fallocate64_l64):
206 Rename ...
207 (fallocate64): ... to this.
208 * sysdeps/unix/sysv/linux/fallocate64.c (__fallocate64_l64):
209 Rename ...
210 (fallocate64): ... to this.
211 * sysdeps/unix/sysv/linux/Versions (libc): Remove fallocate64.
212 * sysdeps/unix/sysv/linux/wordsize-64/Versions (libc): Add
213 fallocate64@@GLIBC_2.10.
214 * sysdeps/unix/sysv/linux/i386/Versions (libc): Add
215 fallocate64@@GLIBC_2.11.
216 * sysdeps/unix/sysv/linux/s390/s390-32/Versions (libc): Likewise.
217 * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions (libc): Likewise.
218 * sysdeps/unix/sysv/linux/sparc/sparc32/Versions (libc): Likewise.
219 * sysdeps/unix/sysv/linux/sh/Versions (libc): Likewise.
220
6dd78596
UD
221 * nscd/selinux.c (nscd_avc_destroy): Removed.
222 * nscd/selinux.h (nscd_avc_destroy): Likewise.
223 * nscd/nscd.c (termination_handler): Don't call
224 nscd_avc_destroy.
225
cfe1fc10
JJ
2262009-05-12 Jakub Jelinek <jakub@redhat.com>
227
228 * include/atomic.h: Formatting.
229 (catomic_compare_and_exchange_val_acq): Don't define if already
230 defined by bits/atomic.h.
231
774f5a30
UD
2322009-05-15 Ulrich Drepper <drepper@redhat.com>
233
bbc5d74d
UD
234 * math/libm-test.inc (expm1_test): Add test for range error.
235
b50f8e42
UD
236 * Versions.def: Add GLIBC_2.11 for libc.
237 * debug/Makefile (routines): Add longjmp_chk.
238 Add rules to build and run tst-longjmp_chk.
239 * debug/Versions: Export __longjmp_chk for GLIBC_2.11.
240 * debug/longjmp_chk.c: New file.
241 * debug/tst-longjmp_chk.c: New file.
242 * include/bits/setjmp2.: New file.
243 * include/stdio.h: Mark __fortify_fail as internal_function.
244 * setjmp/Makefile (headers): Add bits/setjmp2.h.
245 * setjmp/bits/setjmp2.h: New file.
246 * setjmp/longjmp.c: If __libc_siglongjmp is defined, don't define any
247 of the aliases.
248 * setjmp/setjmp.h: Include <bits/setjmp2.h> if _FORTIFY_SOURCE is
249 defined.
250 * sysdeps/i386/____longjmp_chk.S: New file.
251 * sysdeps/x86_64/____longjmp_chk.S: New file.
252 * sysdeps/i386/__longjmp.S: If CHECK_ESP is defined, use it.
253 * sysdeps/x86_64/__longjmp.S: Likewise.
254
dc50b613
UD
255 * version.h: Bump for 2.11 development.
256
774f5a30
UD
257 * elf/check-execstack.c: New file.
258 * elf/Makefile: Add rules to build and run check-execstack.
259
deb84c43
UD
2602009-05-10 Ulrich Drepper <drepper@redhat.com>
261
262 * version.h (VERSION): Bump to 2.10.1.
263
264 * nss/getXXbyYY_r.c: If NO_COMPAT_NEEDED is defined don't define any
265 compatibility functions.
266 * nss/getXXent_r.c: Likewise.
267 * gshadow/getsgent_r.c: Define NO_COMPAT_NEEDED.
268 * gshadow/getsgnam_r.c: Likewise.
269 * gshadow/Version: Remove duplicate entries.
270
271 * sysdeps/x86_64/cacheinfo.c (intel_02_cache_info): Add missing entries
272 for recent processor.
273 * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_cache_info):
274 Likewise.
275
deb318c2
UD
2762009-05-09 Ulrich Drepper <drepper@redhat.com>
277
278 * version.h (VERSION): Bump for 2.10 release.
279 * include/features.h (__GLIBC_MINOR__): Bump to 10.
280
eb29449a
UD
281 * Makeconfig: Undo last change. Add asflags-cpu to ASFLAGS in the
282 same place we add ASFLAGS-config.
283
cf4f16cc
UD
2842009-05-05 Aurelien Jarno <aurelien@aurel32.net>
285
286 [BZ #10128]
287 * resolv/res_query.c (__libc_res_nquery): If one query returns NOTIMP
288 or FORMERR and the other NOERROR, don't raise an error.
289
23b6b466
UD
2902009-05-06 Ryan S. Arnold <rsa@us.ibm.com>
291
292 [BZ #10118]
293 * Makeconfig (+asflags): New variable based upon ASFLAG or
294 asflags-cpu.
295 (ASFLAGS): Add override to set ASFLAGS to +asflags.
296 * config.make.in (asflags-cpu): Add variable based upon
297 @libc_cv_cc_submachine@ to propagate -mcpu=CPU from --with-cpu=CPU to
298 the assembler.
299 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/setcontext.S:
300 Remove unneeded file now that the assembler emits _ARCH_PWR6 and
301 recognizes power6 instruction set due to passing -mcpu=power6 from
302 --with-cpu=power6 when compiling .S files.
303 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/swapcontext.S:
304 Likewise.
305 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/setcontext.S:
306 Likewise.
307 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/swapcontext.S:
308 Likewise.
309
15417de3
UD
3102009-05-09 Jakub Jelinek <jakub@redhat.com>
311
312 * string/stratcliff.c (do_test): Test for zero length
313 STRNLEN, MEMCHR, STRNCPY, STPNCPY, MEMCPY, MEMPCPY and memccpy
314 at the end of the page.
315
b5f7c4ca
UD
3162009-05-08 Ulrich Drepper <drepper@redhat.com>
317
4300afc1
UD
318 * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_AT_RANDOM.
319
2221e33e
UD
320 * sysdeps/x86_64/memchr.S: Handle invalid buffer pointers when
321 count is zero.
322
b5f7c4ca
UD
323 * po/da.po: Update from translation team.
324
1765abb3
UD
3252009-05-05 Jakub Jelinek <jakub@redhat.com>
326
327 * io/sys/stat.h (fstatat64): Guard prototype with __USE_LARGEFILE64,
328 guard __extern_inline wrapper with __USE_ATFILE instead of __USE_GNU.
2221e33e 329
b5f7c4ca
UD
3302009-05-05 Ulrich Drepper <drepper@redhat.com>
331
332 * sysdeps/unix/sysv/linux/sys/personality.h: Add ADDR_COMPAT_LAYOUT
333 and READ_IMPLIES_EXEC.
334
3352009-05-04 Ulrich Drepper <drepper@redhat.com>
336
337 * po/da.po: Update from translation team.
338
667712b8
JJ
3392009-04-29 Jakub Jelinek <jakub@redhat.com>
340
341 * sysdeps/unix/sysv/linux/ifaddrs.c: Revert unintended 2008-08-12
342 comment change.
343
6284c9f6
UD
3442009-04-27 Jakub Jelinek <jakub@redhat.com>
345
346 * locale/programs/locarchive.c (create_archive): Add MAP_PRIVATE
347 to MAP_ANON in PROT_NONE mmap64 call.
348 (open_archive): Likewise.
349 (file_data_available_p): Use mmap64 instead of mremap.
350 (enlarge_archive): Likewise. Update head if ah->addr changed.
351 Attempt to reserve address space after mmap64 region.
352
4ec77f72
UD
3532009-04-26 Ulrich Drepper <drepper@redhat.com>
354
f0e3c47f
UD
355 * sysdeps/ieee754/dbl-64/s_expm1.c: Set errno for overflow.
356 * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
357 * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
358
49768bb9
UD
359 * sysdeps/ieee754/k_standard.c (__kernel_standard): Pole errors in
360 atanh should set ERANGE.
361
e49dc847
UD
362 [BZ #10087]
363 * elf/dl-runtime.c (_dl_fixup): Use DL_FIXUP_VALUE_ADDR to access
364 result of lookup to make call to implement STT_GNU_IFUNC.
365 (_dl_profile_fixup): Likewise.
366 Patch by H.J. Lu <hjl.tools@gmail.com>.
367
1ac03a1e
UD
368 * nscd/connections.c (send_ro_fd): Define temporary variable to avoid
369 warning.
370
6cc8844f
UD
371 * sysdeps/unix/sysv/linux/dl-osinfo.h (dl_fatal): Remove inline
372 from definition.
373
374 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Don't define
375 label if it is not used.
376
377 * elf/dl-profile.c (_dl_start_profile): Define real-type variant
378 of gmon_hist_hdr and gmon_hdr structures and use them.
1ac03a1e 379 * elf/sprof.c: Likewise.
6cc8844f
UD
380
381 * elf/dl-load.c (open_verify): Add temporary variable to avoid
382 warning.
383
384 * nscd/nscd_helper.c (get_mapping): Avoid casts to avoid warnings.
385
386 * sunrpc/clnt_raw.c (clntraw_private_s): Use union in definition
387 to avoid cast.
388
389 * inet/rexec.c (rexec_af): Make sa2 a union to avoid warnings.
390 * inet/rcmd.c (rcmd_af): Make from a union of the various needed types
391 to avoid warnings.
392 (iruserok_af): Use ss_family instead of casts.
393
394 * gmon/gmon.c (write_hist): Define real-type variant of
395 gmon_hist_hdr structure and use it.
396 (write_gmon): Likewise for gmon_hdr.
397
398 * sysdeps/unix/sysv/linux/readv.c: Avoid declaration of replacement
399 function if we are not going to define it.
400 * sysdeps/unix/sysv/linux/writev.c: Likewise.
401
218555e9 402 * inet/inet6_option.c (option_alloc): Add temporary variable to
6cc8844f
UD
403 avoid warning.
404
405 * libio/strfile.h (struct _IO_streambuf): Use correct type and
406 name of VTable element.
407 * libio/iovsprintf.c: Avoid casts to avoid warnings.
408 * libio/iovsscanf.c: Likewise.
409 * libio/vasprintf.c: Likewise.
410 * libio/vsnprintf.c: Likewise.
411 * stdio-common/isoc99_vsscanf.c: Likewise.
412 * stdlib/strfmon_l.c: Likewise.
413 * debug/vasprintf_chk.c: Likewise.
414 * debug/vsnprintf_chk.c: Likewise.
415 * debug/vsprintf_chk.c: Likewise.
416
4ec77f72
UD
417 * nss/nsswitch.c (__nss_lookup_function): En/Decrypt cached
418 function pointers.
419
82a1a4da
UD
4202009-04-26 Jakub Jelinek <jakub@redhat.com>
421
422 * sysdeps/ieee754/dbl-64/s_tan.c (tan): Fix -Wsequence-point warnings.
423
db6edfb3
UD
4242009-04-25 Ulrich Drepper <drepper@redhat.com>
425
27be9b92
UD
426 * posix/bits/posix1_lim.h: Cleanup namespace a bit.
427
337c2708
UD
428 * sysdeps/i386/fpu/s_tan.S: Set errno for ±Inf.
429 * sysdeps/i386/fpu/s_tanf.S: Likewise.
430 * sysdeps/i386/fpu/s_tanl.S: Likewise.
431 * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
432 * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
433 * sysdeps/x86_64/fpu/s_tanl.S: Likewise.
434 * math/libm-test.inc: Add tests for errno after tan calls with
435 ±Inf.
436
002a604f
UD
437 * sysdeps/ieee754/k_standard.c (__kernel_standard): Use correct
438 errno value vor pow(+-0,neg).
439 * math/libm-test.inc (pow_test): Add tests for errno value for
440 pole errors.
441
7095366d
UD
442 * math/w_fmod.c: Also handle x=±Inf as error.
443 * math/w_fmodf.c: Likewise.
444 * math/w_fmodl.c: Likewise.
445 * math/libm-test.inc (fmod_test): Add tests for errno after calls for
446 x=±Inf or y=0.
447
0c59a196
UD
448 * sysdeps/i386/fpu/s_cos.S: Set errno for ±Inf.
449 * sysdeps/i386/fpu/s_cosf.S: Likewise.
450 * sysdeps/i386/fpu/s_cosl.S: Likewise.
451 * sysdeps/i386/fpu/s_sin.S: Likewise.
452 * sysdeps/i386/fpu/s_sinf.S: Likewise.
453 * sysdeps/i386/fpu/s_sinl.S: Likewise.
454 * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
455 * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
456 * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
457 * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
458 * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
459 * sysdeps/x86_64/fpu/s_cosl.S: Likewise.
460 * sysdeps/x86_64/fpu/s_sinl.S: Likewise.
461 * math/libm-test.inc: Add tests for errno after sin/cos calls with
462 ±Inf.
463
4bbf8999
UD
464 * stdlib/strtod_l.c (round_and_return): We have to set errno to
465 ERANGE for underflows.
466 * stdlib/tst-strtod.c (tests): Two tests should set errno to ERANGE.
467
af9f1c48
UD
468 * stdio-common/stdio_lim.h.in (L_cuserid): Not part of POSIX since
469 the 2001 revision.
470
13327042
UD
471 * libio/tst-widetext.input: Remove surrogates.
472
c163ee23
UD
473 * include/features.h: _POSIX_C_SOURCE >= 200112L implies C99.
474
e971e76d 475 * sysdeps/ieee754/k_standard.c (__kernel_standard): Pole errors
81068e35 476 for lgamma should set errno to ERANGE, not EDOM.
e971e76d
UD
477 * math/libm-test.inc (lgamma_test): Check errno for pole errors.
478
c2d5bd5b
UD
4792009-04-24 Ulrich Drepper <drepper@redhat.com>
480
9c32c895
UD
481 [BZ #10093]
482 * iconv/gconv_simple.c (BODY for UTF-8 to INTERNAL): Don't accept
483 UTF-16 surrogates.
484
c9edc889
UD
485 * locale/programs/locarchive.c (enlarge_archive): Conserve address
486 space when temporarily mapping the whole content of the old file.
487
c2d5bd5b
UD
488 [BZ #10100]
489 * misc/hsearch_r.c (hsearch_r): Add back ensurance that hval is
490 not zero.
491
f397be12
UD
4922009-04-24 Jakub Jelinek <jakub@redhat.com>
493
494 * iconvdata/sjis.c (BODY): Don't advance inptr before
495 STANDARD_FROM_LOOP_ERR_HANDLER (2) for 2 byte invalid input.
496 Use STANDARD_FROM_LOOP_ERR_HANDLER with 2 instead of 1 for
497 two byte chars.
498
705341a9
UD
4992009-04-24 Ulrich Drepper <drepper@redhat.com>
500
501 * locale/locarchive.h (struct locarhandle): Rename len field to
502 mmaped and add new reserved field.
503 * locale/programs/locarchive.c (RESERVE_MMAP_SIZE): Define.
504 (create_archive): Reserve address space and then map file into it.
505 (open_archive): Likewise.
506 (file_data_available_p): New function.
507 (compare_from_file): New function.
508 (close_archive): Adjust to member name changes.
509 (add_locale): Before comparing locale data, check it is mapped.
510 Otherwise fall back to reading from the file.
511
57d2da1c
UD
5122009-04-23 H.J. Lu <hongjiu.lu@intel.com>
513
514 * stdio-common/psiginfo.c: Include <errno.h>.
515
3d855f75
UD
5162009-04-23 Ulrich Drepper <drepper@redhat.com>
517
fe12c798
UD
518 [BZ #9920]
519 * stdlib/random_r.c (__srandom_r): Change type of word to int32_t
520 to get consistency between 32 and 64 bit architectures.
521
3d855f75
UD
522 [BZ #10052]
523 * sysdeps/unix/make-syscalls.sh: Add rule to create target
524 directory for dummy syscall rules.
525 Patch by Chris Steinbroner <hesh@pobox.com>.
526
95bf537f
UD
5272009-04-23 Aurelien Jarno <aurelien@aurel32.net>
528
529 [BZ #10092]
530 * sysdeps/unix/sysv/linux/sys/mount.h: Define MNT_DETACH and
531 MNT_EXPIRE.
532
7f8a28ef
UD
5332009-04-23 Ulrich Drepper <drepper@redhat.com>
534
535 * sysdeps/unix/sysv/linux/preadv.c: The kernel API changed. Adjust.
536 * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
537
5382009-04-23 Jakub Jelinek <jakub@redhat.com>
539
540 * sysdeps/posix/pwritev.c (PWRITEV): Fix up comment. Copy
541 data from vector to temporary buffer and call PWRITEV after it
542 instead of vice versa.
543 * sysdeps/posix/preadv.c: Fix up comment.
544 * misc/preadv.c: Likewise.
545 * misc/preadv64.c: Likewise.
546 * misc/pwritev.c: Likewise.
547 * misc/pwritev64.c: Likewise.
548 * misc/sys/uio.h (preadv, pwritev, preadv64, pwritev64): Likewise.
549
829fea46
UD
5502009-04-23 Ulrich Drepper <drepper@redhat.com>
551
c7e74e59
UD
552 * shadow/sgetspent_r.c (__sgetspent_r): Recognize too small buffers.
553
3b055b47
UD
554 * shadow/Makefile (tests): Add tst-shadow.
555 * shadow/tst-shadow.c: New file.
556
829fea46
UD
557 [BZ #9955]
558 * gshadow/Makefile: New file.
559 * gshadow/Versions: New file.
560 * gshadow/fgetsgent.c: New file.
561 * gshadow/fgetsgent_r.c: New file.
562 * gshadow/getsgent.c: New file.
563 * gshadow/getsgent_r.c: New file.
564 * gshadow/getsgnam.c: New file.
565 * gshadow/getsgnam_r.c: New file.
566 * gshadow/gshadow.h: New file.
567 * gshadow/putsgent.c: New file.
568 * gshadow/sgetsgent.c: New file.
569 * gshadow/sgetsgent_r.c: New file.
570 * gshadow/tst-gshadow.c: New file.
571 * include/gshadow.h: New file.
572 * Makeconfig (all-subdirs): Add gshadow.
573 * Makefile (installed-headers): Add gshadow/gshadow.h.
574 * nss/Makefile (databases): Add sgrp.
575 * nss/Versions: Add gshadow functions as private exports.
576 * nss/nsswitch.conf: Add gshadow entry.
577 * nss/sgrp-lookup.c: New file.
578 * nss/nss_files/files-parse.c: Add STRING_LIST macro. Rewrite
579 parse_list to handle STRING_LIST and TRAILING_LIST_PARSER.
580 * nss/nss_files/files-sgrp.c: New file.
581 * sysdeps/generic/paths.h: Add _PATH_GSHADOW.
582 * sysdeps/unix/sysv/linux/paths.h: Likewise.
583
debafa10
UD
5842009-04-22 Ulrich Drepper <drepper@redhat.com>
585
586 * stdio-common/printf.h: Add missing const to register_printf_modifier.
587 * stdio-common/reg-modifier.c: Likewise.
588
5892009-04-22 Andrew Stubbs <ams@codesourcery.com>
590
591 * sysdeps/sh/sh4/setjmp.S (__sigsetjmp): Adjust JB_SIZE when there
592 is no FPU.
593
0e04c0b5
UD
5942009-04-20 Ulrich Drepper <drepper@redhat.com>
595
d43f10e7 596 [BZ #10086]
1c376f5b
UD
597 * sysdeps/unix/sysv/linux/sys/timex.h: Add definitions from kernel
598 headers up to 2.6.30.
599
0e04c0b5
UD
600 * po/ca.po: Update from translation team.
601
a245eafd
UD
6022009-04-19 Ulrich Drepper <drepper@redhat.com>
603
604 [BZ #10069]
605 * elf/dl-open.c (dl_open_worker): We cannot guarantee that we can load
606 an object that uses static TLS if the TLS modid is higher than the
607 reserve we always allocate. At least for multi-threaded code.
608
0588a9cb
UD
6092009-04-18 Ulrich Drepper <drepper@redhat.com>
610
153aa31b
UD
611 * stdlib/strfmon_l.c (__vstrfmon_l): Don't wrap when computing width.
612 Numerically stable check for valid width.
613
59a7162b
UD
614 * locale/programs/locarchive.c (open_archive): Map the entire file
615 and not just the administrative data.
616 (add_locale): When we find a hash sum match compare the content
617 to be sure.
618
0588a9cb
UD
619 * malloc/malloc.c (malloc_info): Output address space information.
620
17a5b24e
UD
6212009-04-17 Ulrich Drepper <drepper@redhat.com>
622
da2d2fb6
UD
623 * malloc/malloc.c (malloc_info): Also output system memory information.
624
11cad88c
UD
625 * sysdeps/unix/sysv/linux/kernel-features.h: All supported
626 architectures have preadv/pwritev in 2.6.30.
627
571ac26f
UD
628 * sysdeps/posix/preadv.c: Reading of zero bytes is no error.
629 * sysdeps/posix/readv.c: Likewise.
630 Reported by Markus Armbruster <armbru@redhat.com>.
631
17a5b24e
UD
632 * malloc/hooks.c (top_check): Force hook value into register.
633
57ec6442
RM
6342009-04-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
635
636 * elf/rtld.c (dl_main): Really call _dl_sysdep_start_cleanup after all
637 calls to _dl_relocate_object.
638
df77455c
UD
6392009-04-16 Ulrich Drepper <drepper@redhat.com>
640
641 [BZ #9957]
642 * malloc/malloc.c (force_reg): Define.
643 (sYSMALLOc): Load hook variable into variable
644 before test and force into register.
645 (sYSTRIm): Likewise.
646 (public_mALLOc): Force hook value into register.
647 (public_fREe): Likewise.
648 (public_rEALLOc): Likewise.
649 (public_mEMALIGn): Likewise.
650 (public_vALLOc): Likewise.
651 (public_pVALLOc): Likewise.
652 (public_cALLOc): Likewise.
653 (__posix_memalign): Likewise.
654 * malloc/arena.c (ptmalloc_init): Load hook variable into variable
655 before test and force into register.
656 * malloc/hooks.c (top_check): Likewise.
3b055b47 657 (public_sET_STATe): Pretty printing.
df77455c
UD
658
659 * resolv/res_send.c (send_dg): Don't just ignore the result we got
660 in case we only receive one reply in single-request mode.
661
733ca93a
JJ
6622009-04-16 Jakub Jelinek <jakub@redhat.com>
663
664 * elf/dl-open.c (_dl_open): Bump GL(dl_nns) to 1 if no libraries
665 are dlopened in statically linked program even for __LM_ID_CALLER.
666
d0e81f10
UD
6672009-04-16 Ulrich Drepper <drepper@redhat.com>
668
669 * resolv/res_send.c (send_dg): Don't switch into single-request
670 mode if we already are in it.
671
6a3d03ff
UD
6722009-04-15 Ulrich Drepper <drepper@redhat.com>
673
674 * sysdeps/unix/sysv/linux/getsysstats.c (next_line): Make sure there
675 are always at least 4 bytes in the returned line.
676
6772009-04-15 Jakub Jelinek <jakub@redhat.com>
678
679 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Check
680 __libc_use_alloca (8192), if the stack is too small use 512 bytes
681 instead of 8K. Stop searching in /proc/stat after hitting first
682 line not starting with cpu.
683 (next_line): Truncate too long
684 lines at buffer size * 3/4 instead of pretending there were line
685 breaks inside of large lines.
686
ae650a41
UD
6872009-04-14 Ulrich Drepper <drepper@redhat.com>
688
689 * sysdeps/x86_64/mp_clz_tab.c: New file.
690
353f2107
UD
6912009-03-17 Ryan S. Arnold <rsa@us.ibm.com>
692 Ulrich Drepper <drepper@redhat.com>
693
694 * sysdeps/unix/sysv/linux/fallocate.c: Handle old kernel headers.
695 * sysdeps/unix/sysv/linux/fallocate64.c: Likewise.
e775ec11 696 * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: Likewise.
353f2107 697
fc0c5705
UD
6982009-03-25 Andrew Stubbs <ams@codesourcery.com>
699
700 * sysdeps/sh/libc-tls.c: New file.
701
702 * sysdeps/sh/bits/setjmp.h (__jmp_buf): Give name to structure type.
703
237a8867
RM
7042009-04-14 Roland McGrath <roland@redhat.com>
705
706 * elf/elf.h: Add various missing ARM constants, to match binutils.
707
893a5fd4
UD
7082009-04-14 Ulrich Drepper <drepper@redhat.com>
709
710 Optimizations from GMP.
711 * sysdeps/x86_64/add_n.S: New file.
712 * sysdeps/x86_64/addmul_1.S: New file.
713 * sysdeps/x86_64/lshift.S: New file.
714 * sysdeps/x86_64/mul_1.S: New file.
715 * sysdeps/x86_64/rshift.S: New file.
716 * sysdeps/x86_64/sub_n.S: New file.
717 * sysdeps/x86_64/submul_1.S: New file.
718
e42e88ab
JJ
7192009-04-14 Jakub Jelinek <jakub@redhat.com>
720
721 * sysdeps/powerpc/powerpc32/elf/start.S: Ensure .data is non-empty.
722 * sysdeps/powerpc/powerpc64/elf/start.S: Likewise.
723 * sysdeps/sparc/sparc32/elf/start.S: Likewise.
724 * sysdeps/sparc/sparc64/elf/start.S: Likewise.
725
b8a3bd82
UD
7262009-04-14 Ulrich Drepper <drepper@redhat.com>
727
728 * sysdeps/unix/sysv/linux/kernel-features.h: SH also has
729 preadv/pwritev.
730
84aa52d7
UD
7312009-04-13 Ulrich Drepper <drepper@redhat.com>
732
733 * sysdeps/x86-64/strrchr.S: New file.
734
9d26efa9
UD
7352009-04-10 Ulrich Drepper <drepper@redhat.com>
736
737 * stdio-common/printf.h (struct printf_info): Add user element.
738 New types printf_arginfo_size_function, printf_va_arg_function.
739 Declare register_printf_specifier, register_printf_modifier,
740 register_printf_type.
741 * stdio-common/printf-parse.h (struct printf_spec): Add size element.
742 (union printf_arg): Add pa_user element.
743 Adjust __printf_arginfo_table type.
744 Add __printf_va_arg_table, __printf_modifier_table,
745 __handle_registered_modifier_mb, and __handle_registered_modifier_wc
746 declarations.
747 * stdio-common/printf-parsemb.c: Recognize registered modifiers.
748 If registered arginfo call failed try normal specifier.
749 * stdio-common/printf-prs.c: Pass additional parameter to arginfo
750 function.
751 * stdio-common/Makefile (routines): Add reg-modifier and reg-type.
752 * stdio-common/Versions: Export register_printf_modifier,
753 register_printf_type, and register_printf_specifier for GLIBC_2.10.
754 * stdio-common/reg-modifier.c: New file.
755 * stdio-common/reg-type.c: New file.
756 * stdio-common/reg-printf.c (__register_printf_specifier): New
757 function. Mostly the old __register_printf_function function but
758 uses locking and type of third parameter changed.
759 (__register_printf_function): Implement using
760 __register_printf_specifier.
761 * stdio-common/vfprintf.c (vfprintf): Collect argument sizes in
762 calls to arginfo functions. Allocate enough memory for user-defined
763 types. Call new va_arg functions to get user-defined types.
764 Try installed handlers even for existing format specifiers first.
765
28b2771a
UD
7662009-04-09 Ulrich Drepper <drepper@redhat.com>
767
f140a0d5
UD
768 * sysdeps/x86_64/rawmemchr.S: New file.
769
e9b4d069 770 * stdio-common/vfprintf.c (vfprintf): Slightly more compact code.
1d498daa 771 Simplified code and possible copy problem fixed.
e9b4d069 772
f9fe75e9 773 * sysdeps/unix/sysv/linux/preadv.c: Avoid prototype for static
24030b0f 774 function if it is not defined. Add some necessary casts.
f9fe75e9
UD
775 * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
776
28b2771a
UD
777 * sysdeps/unix/sysv/linux/kernel-features.h: SPARC and IA64 also
778 have preadv/pwritev in 2.6.30.
779
4c8b8cc3
UD
7802009-04-08 Ulrich Drepper <drepper@redhat.com>
781
bb066545
UD
782 * malloc/malloc.c (malloc_info): New function.
783 * malloc/malloc.h: Declare it.
784 * malloc/Versions: Export malloc_info for GLIBC_2.10.
785
0f9c8b48
UD
786 * sysdeps/unix/sysv/linux/preadv64.c (PREAD): Use __libc_pread64
787 to avoid PLT slot.
788
4c8b8cc3
UD
789 * malloc/malloc.c (_int_realloc): Add parameter with old block
790 size. Remove duplicated test. Don't handle mmap'ed blocks here.
791 Adjust all callers.
792 * malloc/hooks.c (realloc_check): Adjust _int_realloc call.
793
ddba0f17
UD
7942009-04-07 Ulrich Drepper <drepper@redhat.com>
795
cd57745b
UD
796 * sysdeps/x86_64/strchrnul.S: New file.
797
3db6c9a8 798 * crypt/Makefile (LDLIBS-crypt.so): Use this variable instead of
cd57745b 799 depending libcrypt on -lfreebl3.
3db6c9a8 800
1a2ec17b
UD
801 * sysdeps/unix/sysv/linux/kernel-features.h: Power also has
802 preadv/pwritev in 2.6.30.
803
bb066545 804 * resolv/nss_dns/dns-host.c (getanswer_r): Use strcasecmp
c6807d38 805 instead of __strcasecmp.
c6807d38 806
ddba0f17 807 * string/stratcliff.c (do_test): Add memchr tests..
481f9eca 808 * wcsmbs/wcsatcliff.c (MEMCHR): Define.
ddba0f17
UD
809 * sysdeps/x86_64/memchr.S: Fix handling of end of buffer after
810 first read quad word.
811
ae061910
UD
8122009-04-06 Ulrich Drepper <drepper@redhat.com>
813
4bcb2658
UD
814 * string/strverscmp.c (__strverscmp): Fix last cleanups.
815 * string/tst-svc.input: Add new test case.
816 * string/tst-svc.expect: Adjust.
817 * string/Makefile: Don't ignore tst-svc error.
818
322e23db
UD
819 * sysdeps/x86_64/memchr.S: New file.
820
ae061910
UD
821 * resolv/resolv.h (RES_SNGLKUP): Define.
822 * resolv/res_init.c (res_setoptions): Recognize single-request option.
823 * resolv/res_send.c (send_dg): If we sent two requests at once and
824 only get one reply before timeout switch to mode where we send the
825 second request only after the first answer has been received.
826
a152f366
UD
8272009-04-05 Ulrich Drepper <drepper@redhat.com>
828
829 * sysdeps/x86_64/strlen.S: Optimize by using SSE2 instructions.
1df6f9d8 830 * sysdeps/x86_64/strchr.S: Likewise.
a152f366 831
2dbe6afe
UD
8322009-04-03 Ulrich Drepper <drepper@redhat.com>
833
c0bac8b0
UD
834 * configure.in: We need to test for the compiler earlier.
835
e109c612
UD
836 * misc/Makefile (routines): Add preadv, preadv64, pwritev, pwritev64.
837 * misc/Versions: Export preadv, preadv64, pwritev, pwritev64 for
838 GLIBC_2.10.
839 * misc/sys/uio.h: Declare preadv, preadv64, pwritev, pwritev64.
840 * sysdeps/unix/sysv/linux/kernel-features.h: Add entries for preadv
841 and pwritev.
842 * misc/preadv.c: New file.
843 * misc/preadv64.c: New file.
844 * misc/pwritev.c: New file.
845 * misc/pwritev64.c: New file.
846 * sysdeps/posx/preadv.c: New file.
847 * sysdeps/posx/preadv64.c: New file.
848 * sysdeps/posx/pwritev.c: New file.
849 * sysdeps/posx/pwritev64.c: New file.
850 * sysdeps/unix/sysv/linux/preadv.c: New file.
851 * sysdeps/unix/sysv/linux/preadv64.c: New file.
852 * sysdeps/unix/sysv/linux/pwritev.c: New file.
853 * sysdeps/unix/sysv/linux/pwritev64.c: New file.
854 * sysdeps/unix/sysv/linux/wordsize-64/preadv64.c: New file.
855 * sysdeps/unix/sysv/linux/wordsize-64/pwritev64.c: New file.
856
7166c77a
UD
857 * sysdeps/unix/sysv/linux/readv.c (__libc_readv): Fix calling of
858 compatibility code.
859 * sysdeps/unix/sysv/linux/writev.c (__libc_writev): Likewise.
860
2dbe6afe
UD
861 * sysdeps/unix/sysv/linux/kernel-features.h: Define
862 __ASSUME_COMPLETE_READV_WRITEV.
863 * sysdeps/unix/sysv/linux/readv.c: No need for userlevel fallback
864 with modern kernels.
865 * sysdeps/unix/sysv/linux/writev.c: Likewise.
866
867 * sysdeps/posix/readv.c: Since read is a cancellation point we have
868 to free a possible malloced buffer in case of cancellation.
869 * sysdeps/posix/writev.c: Likewise for write.
870
ff886b82
UD
8712009-04-02 Ulrich Drepper <drepper@redhat.com>
872
a065c007
UD
873 * sysdeps/unix/sysv/linux/bits/socket.h: Add missing protocol numbers.
874
ff886b82
UD
875 * configure.in: Recognize --enable-nss-crypt.
876 * config.make.in: Add nss-crypt entry.
877 * crypt/Makefile: If nss-crypt==yes, don't build md5.c, sha256.c,
878 sha512.c. Don't run md5test, sha256test, sha512test. Pass -DUSE_NSS
879 and include path for NSS directory to compiler for md5-crypt,
880 sha256-crypt, sha512-crypt. Link libcrypt.so with -lfreebl3.
881 * crypt/md5-crypt.c: If USE_NSS is defined, don't use local hash
882 function implementation, use NSS. Introduce wrappers around the
883 hash function calls. Little code size optimization.
884 * crypt/sha256-crypt.c: Likewise.
885 * crypt/sha512-crypt.c: Likewise.
886 * scripts/check-local-headers.sh: Ignore nss3 directory.
887
888 * configure.in: Rename pic_default to libc_cv_pic_default.
889 * config.make.in: Likewise.
890
1800de36
RM
8912009-04-01 Roland McGrath <roland@redhat.com>
892
893 * elf/elf.h (R_SPARC_GLOB_JMP): New macro.
894 (R_SPARC_GOTDATA_HIX22, R_SPARC_GOTDATA_LOX10): New macros.
895 (R_SPARC_GOTDATA_OP_HIX22, R_SPARC_GOTDATA_OP_LOX10): Likewise.
896 (R_SPARC_GOTDATA_OP, R_SPARC_H34): Likewise.
897 (R_SPARC_SIZE32, R_SPARC_SIZE64): Likewise.
898 (R_SPARC_GNU_VTINHERIT, R_SPARC_GNU_VTENTRY, R_SPARC_REV32): Likewise.
899 (R_SPARC_NUM): Update.
900 From Dave Miller <davem@davemloft.net>.
901
7166c77a 9022009-04-01 Ulrich Drepper <drepper@redhat.com>
3ce976cd
UD
903
904 * sysdeps/unix/sysv/linux/sys/eventfd.h (EFD_SEMAPHORE): Define.
905
20739e54
UD
9062009-03-31 Ulrich Drepper <drepper@redhat.com>
907
22c83193
UD
908 * elf/dl-open.c: Keep track of used name spaces and only iterate over
909 those which are used.
910 * elf/dl-addr.c: Likewise.
911 * elf/dl-caller.c: Likewise.
912 * elf/dl-fini.c: Likewise.
913 * elf/dl-iteratephdr.c: Likewise.
914 * elf/dl-libc.c: Likewise.
915 * elf/dl-load.c: Likewise.
916 * elf/dl-support.c: Likewise.
917 * elf/dl-sym.c: Likewise.
918 * elf/rtld.c: Likewise.
919 * sysdeps/generic/ldsodefs.h: Likewise.
920
20739e54
UD
921 * elf/dl-load.c: Remove support for systems without MAP_ANON.
922 * elf/dl-minimal.c: Likewise.
923 * elf/dl-misc.c: Likewise.
924 * elf/rtld.c: Likewise.
925 * sysdeps/generic/ldsodefs.h: Likewise.
926
db486995
UD
9272009-03-30 Ulrich Drepper <drepper@redhat.com>
928
cb14424e
UD
929 * elf/do-lookup.h (do_lookup_x): Minor optimization and cleanup.
930 Avoid reuse of complex expression.
931
db486995
UD
932 * po/fr.po: Update from translation team.
933
ae8d7b44
UD
9342009-03-16 Ulrich Drepper <drepper@redhat.com>
935
936 * include/dirent.h: Yet more changes to match sort function type
937 change.
938 * sysdeps/unix/sysv/linux/i386/alphasort64.c: Likewise.
939 * sysdeps/unix/sysv/linux/i386/olddirent.h: Likewise.
940 * sysdeps/unix/sysv/linux/i386/versionsort64.c: Likewise.
941
8efb2f1c
UD
9422009-03-16 Thomas Schwinge <tschwinge@gnu.org>
943
944 * dirent/scandir64.c (scandir64): Adjust declaration to type change.
945
d9822dbe
UD
9462009-03-16 Ulrich Drepper <drepper@redhat.com>
947
948 * nscd/connections.c (restart): Try to preserve the process name
949 by reading the /proc/self/exe symlink and using the return name.
950 Patch by Jeff Bastian <jbastian@redhat.com>.
951
71a5bd3e
UD
9522009-03-15 Ulrich Drepper <drepper@redhat.com>
953
2ca285b0
UD
954 [BZ #9733]
955 * elf/dl-load.c (_dl_map_object_from_fd): Only call audit hooks
956 if we are not loading a new audit library.
957 * elf/dl-reloc (_dl_relocate_object): Third parameter is now a bitmask.
958 Only use profiling trampoline for auditing if we are not relocating
959 an audit library.
960 * elf/dl-open.c (dl_open_worker): Adjust _dl_relocate_object call.
961 * elf/rtld.c: Likewise.
962 * sysdeps/generic/ldsodefs.h: Adjust _dl_relocate_object prototype.
963
7e342603
UD
964 * elf/rtld.c (dl_main): Extend help message for --audit option.
965
eee6b143
UD
966 [BZ #9759]
967 * dirent/dirent.h: Adjust prototypes of scandir, scandir64, alphasort,
968 alphasort64, versionsort, and versionsort64 to POSIX 2008.
969 * dirent/alphasort.c: Adjust implementation to type change.
970 * dirent/alphasort64.c: Likewise.
971 * dirent/scandir.c: Likewise.
972 * dirent/versionsort.c: Likewise.
973 * dirent/versionsort64.c: Likewise.
974 * sysdeps/wordsize-64/alphasort.c: Add hack to hide alphasort64
975 declaration.
976 * sysdeps/wordsize-64/versionsort.c: Add hack to hide versionsort64
977 declaration.
978
cd2d01fa
UD
979 [BZ #9880]
980 * inet/inet6_rth.c (inet6_rth_reverse): Compute number of segments
981 correctly. Set segleft member in output as required.
982 Patch partly by Yang Hongyang <yanghy@cn.fujitsu.com>.
983 * inet/tst-inet6_rth.c (do_test): Add tests for inet6_rth_reverse.
984
906dd40d
UD
985 [BZ #9881]
986 * inet/inet6_rth.c (inet6_rth_add): Add some error checking.
987 Patch mostly by Yang Hongyang <yanghy@cn.fujitsu.com>.
988 * inet/Makefile (tests): Add tst-inet6_rth.
989 * inet/tst-inet6_rth.c: New file.
990
71a5bd3e
UD
991 [BZ #5807]
992 * string/strlen.c (strlen): Fix omission in the expression to test
993 for NUL bytes.
994
878b72c5
UD
9952009-03-14 Ulrich Drepper <drepper@redhat.com>
996
fad070ab
UD
997 * crypt/sha256test.c (main): Perform 100,000 'a' test in a second way.
998
a42ad61b
UD
999 * elf/dl-runtime.c (reloc_offset): Define.
1000 (reloc_index): Define.
1001 (_dl_fixup): Rename reloc_offset parameter to reloc_arg.
1002 (_dl_fixup_profile): Likewise. Use reloc_index instead of
1003 computing index from reloc_offset.
1004 (_dl_call_pltexit): Likewise.
1005 * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve): Just pass
1006 the relocation index to _dl_fixup.
1007 (_dl_runtime_profile): Likewise for _dl_fixup_profile and
1008 _dl_call_pltexit.
1009 * sysdeps/x86_64/dl-runtime.c: New file.
1010
1f7c90a7
UD
1011 [BZ #9893]
1012 * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix
906dd40d 1013 alignment of La_x86_64_regs. Store xmm parameters.
1f7c90a7
UD
1014 Patch mostly by Jiri Olsa <olsajiri@gmail.com>.
1015
45466462
UD
1016 [BZ #9913]
1017 * string/strverscmp.c (__strverscmp): Fix case of different digits
1018 in fractional part of string.
1019 Patch by Jingyu Liu <jyliu@fortinet.com>.
1020 * string/Makefile (tests): Add tst-svc2.
1021 * string/tst-svc2.c: New file.
1022
1023 * string/strverscmp.c (__strverscmp): Optimize size of tables.
1024
878b72c5
UD
1025 * locale/iso-639.def: Add Min Nan.
1026
f53713a8
UD
10272009-03-11 Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
1028
878b72c5 1029 [BZ #9948]
f53713a8
UD
1030 * elf/dl-sysdep.c (_dl_show_auxv): Add support for AT_BASE_PLATFORM.
1031
f81ce288
UD
10322009-03-14 Ulrich Drepper <drepper@redhat.com>
1033
f53713a8
UD
1034 * elf/dl-sysdep.c (auxvars): Compress data structure.
1035
f81ce288
UD
1036 * sysdeps/i386/dl-machine.h (elf_machine_rel): Implement
1037 STT_GNU_IFUNC handling.
1038 (elf_machine_rela): Likewise.
1039
425ce2ed
UD
10402009-03-13 Ulrich Drepper <drepper@redhat.com>
1041
1042 * config.h.in (USE_MULTIARCH): Define.
1043 * configure.in: Handle --enable-multi-arch.
1044 * elf/dl-runtime.c (_dl_fixup): Handle STT_GNU_IFUNC.
1045 (_dl_fixup_profile): Likewise.
1046 * elf/do-lookup.c (dl_lookup_x): Likewise.
1047 * sysdeps/x86_64/dl-machine.h: Handle STT_GNU_IFUNC.
1048 * elf/elf.h (STT_GNU_IFUNC): Define.
1049 * include/libc-symbols.h (libc_ifunc): Define.
1050 * sysdeps/x86_64/cacheinfo.c: If USE_MULTIARCH is defined, use the
1051 framework in init-arch.h to get CPUID values.
1052 * sysdeps/x86_64/multiarch/Makefile: New file.
1053 * sysdeps/x86_64/multiarch/init-arch.c: New file.
1054 * sysdeps/x86_64/multiarch/init-arch.h: New file.
1055 * sysdeps/x86_64/multiarch/sched_cpucount.c: New file.
1056
1057 * config.make.in (experimental-malloc): Define.
1058 * configure.in: Handle --enable-experimental-malloc.
1059 * malloc/Makefile: Handle experimental-malloc flag.
1060 * malloc/malloc.c: Implement PER_THREAD and ATOMIC_FASTBINS features.
1061 * malloc/arena.c: Likewise.
1062 * malloc/hooks.c: Likewise.
1063 * malloc/malloc.h: Define M_ARENA_TEST and M_ARENA_MAX.
1064
e7f110cd
UD
10652009-03-11 Ulrich Drepper <drepper@redhat.com>
1066
1067 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Add branch
1068 prediction. A few size optimizations.
1069
bd82a247
UD
10702009-03-10 Ulrich Drepper <drepper@redhat.com>
1071
1072 * time/tzset.c: Optimize a bit for size.
1073
a99e59d7
UD
10742009-03-10 Jakub Jelinek <jakub@redhat.com>
1075
1076 * include/stdio.h (fmemopen): Add libc_hidden_proto.
1077 * libio/fmemopen.c (fmemopen): Add libc_hidden_def.
1078
1079 * elf/sprof.c: Avoid warning about multi-line comment.
1080
686f8c9d
UD
10812009-03-10 Ulrich Drepper <drepper@redhat.com>
1082
1083 * time/tzset.c (__tzset_parse_tz): Use correct string when parsing
1084 DST name.
1085 * time/tst-posixtz.c: Add tests for quoted timezone names.
1086
7db0cc42
UD
10872009-03-10 Jakub Jelinek <jakub@redhat.com>
1088
1089 * posix/unistd.h (_POSIX_VERSION, _POSIX2_VERSION, _POSIX2_C_BIND,
1090 _POSIX2_C_DEV, _POSIX2_SW_DEV, _POSIX2_LOCALEDEF): Define to
1091 200809L instead of 200112L.
1092 (_XOPEN_VERSION): For __USE_XOPEN2K8 define to 700.
1093 * posix/tst-sysconf.c (STDVER): Define to 200809L instead of 200112L.
1094
eec4b454
UD
1095 * stdlib/quick_exit.c (quick_exit): Pass &__quick_exit_funcs
1096 instead of __quick_exit_funcs to __run_exit_handlers.
1097 * stdlib/at_quick_exit.c (at_quick_exit): Add attribute_hidden.
1098 * stdlib/exit.h (__run_exit_handlers): Add noreturn attribute.
1099 (__cxa_at_quick_exit): Remove attribute_hidden.
1100 * stdlib/exit.c (exit): Pass &__exit_funcs instead of __exit_funcs
1101 to __run_exit_handlers.
1102 * stdlib/cxa_at_quick_exit.c (__cxa_at_quick_exit): Remove
1103 attribute_hidden.
1104
d7276cee
UD
11052009-03-10 Ulrich Drepper <drepper@redhat.com>
1106
1107 * po/id.po: Update from translation team.
1108
1454da21
UD
11092009-02-18 Jakub Jelinek <jakub@redhat.com>
1110
1111 * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S: Use
1112 .machine push; .machine "power6" and .machine pop around mtfsf
1113 insns outside of _ARCH_PWR6 define.
1114 * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S: Likewise.
1115 * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S:
1116 Likewise.
1117 * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S:
1118 Likewise.
1119 * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (_SET_DI_FPSCR): Likewise.
1120 * sysdeps/powerpc/fpu/fenv_libc.h (fesetenv_register,
1121 relax_fenv_state): Likewise.
1122
130ca12e
UD
11232009-03-08 Ulrich Drepper <drepper@redhat.com>
1124
610e67ed
UD
1125 * stdlib/Makefile (routines): Add quick_exit, at_quick_exit, and
1126 cxa_at_quick_exit.
1127 (static-only-routines): Add at_quick_exit.
1128 * stdlib/Versions: Export quick_exit and __cxa_at_quick_exit for
1129 GLIBC_2.10.
1130 * stdlib/quick_exit.c: New file.
1131 * stdlib/at_quick_exit.c: New file.
1132 * stdlib/cxa_at_quick_exit.c: New file.
1133 * stdlib/cxa_atexit.c (__cxa_atexit): Move body to new function. Call
1134 it appropriately.
1135 (__internal_atexit): New function.
1136 (__new_exitfn): Now takes parameter to point to the list to use.
1137 * stdlib/cxa_finalize.c: Remove quick_exit handlers, don't call them.
1138 * stdlib/exit.c (__run_exit_handlers): New function. Split from...
1139 (exit): ...here. Just call __run_exit_handlers appropriately.
1140 * stdlib/exit.h: Declare __quick_exit_funcs, __run_exit_handlers,
1141 __internal_atexit, __cxa_at_quick_exit. Adjust __new_exitfn.
1142 * stdlib/on_exit.c: Adjust call to __new_exitfn.
1143 * stdlib/stdlib.h: Declare at_quick_exit and quick_exit.
1144
130ca12e
UD
1145 * po/id.po: Update from translation team.
1146
9a4f9d1f
UD
11472009-03-07 Ulrich Drepper <drepper@redhat.com>
1148
1149 * po/ru.po: Update from translation team.
1150
6d781c94
UD
11512009-03-04 Ulrich Drepper <drepper@redhat.com>
1152
1153 * po/nl.po: Update from translation team.
1154
e00c5ece
UD
11552009-03-03 Ulrich Drepper <drepper@redhat.com>
1156
99eb932f
UD
1157 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Declare fallocate{,64}.
1158 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
1159 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
1160 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
1161 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
1162 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
1163 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
1164
e00c5ece
UD
1165 * po/pl.po: Update from translation team.
1166
749f5cc9
UD
11672009-03-02 Ulrich Drepper <drepper@redhat.com>
1168
1b994772 1169 [BZ #7083]
749f5cc9
UD
1170 * sysdeps/unix/sysv/linux/fallocate.c: New file.
1171 * sysdeps/unix/sysv/linux/fallocate64.c: New file.
1172 * sysdeps/unix/sysv/linux/wordsize-64/fallocate64.c: New file.
1173 * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: New file.
1174 * sysdeps/unix/sysv/linux/i386/fallocate64.c: New file.
1175 * sysdeps/unix/sysv/linux/i386/fallocate.c: New file.
1176 * sysdeps/unix/sysv/linux/Versions: Export fallocate and fallocate64
1177 for GLIBC_2.10.
1178 * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
1179 Add fallocate and fallocate64.
1180
1181 * io/fcntl.h: Pretty printing.
1182
6219e3cc
JJ
11832009-03-02 Richard Guenther <rguenther@suse.de>
1184
1185 * misc/sys/cdefs.h (__extern_always_inline): Add __artificial__
1186 attribute also for non-C99 inline semantics variant.
1187
134a9766
UD
11882009-02-12 Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
1189
1190 * sysdeps/powerpc/powerpc32/power7/fpu/Implies: New file.
1191 * sysdeps/powerpc/powerpc32/power7/Implies: Likewise.
1192 * sysdeps/powerpc/powerpc64/power7/fpu/Implies: Likewise.
1193 * sysdeps/powerpc/powerpc64/power7/Implies: Likewise.
1194 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/fpu/Implies:
1195 Likewise.
1196 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/fpu/Implies:
1197 Likewise.
1198
95bc1633
UD
11992009-03-02 Ulrich Drepper <drepper@redhat.com>
1200
1201 * po/cs.po: Update from translation team.
1202
43ea48a5
UD
12032009-02-28 Ulrich Drepper <drepper@redhat.com>
1204
1205 * po/bg.po: Update from translation team.
1206 * po/sv.po: Likewise.
f5faa3b6 1207 * po/fi.po: Likewise.
45572c23 1208 * po/vi.po: Likewise.
43ea48a5 1209
e965d514
RM
12102009-02-27 Roland McGrath <roland@redhat.com>
1211
1212 * Makeconfig (%.v.i): Depend on Makeconfig.
1213 Exclude % lines from initial #-comment removal.
1214
56a9651f
UD
12152009-02-27 Ulrich Drepper <drepper@redhat.com>
1216
1217 * po/ko.po: Update from translation team.
1218
682825ce
RM
12192009-02-26 Roland McGrath <roland@redhat.com>
1220
1221 * shadow/lckpwdf.c (__lckpwdf): Move FLAGS inside block using it,
1222 avoids unused warning.
1223
a3c37506
UD
12242009-02-26 Andrew Stubbs <ams@codesourcery.com>
1225 SUGIOKA Toshinobu <sugioka@itonet.co.jp>
1226
1227 * sysdeps/unix/sysv/linux/sh/sys/procfs.h: Don't include signal.h,
1228 sys/ucontext.h and asm/elf.h. Include sys/user.h.
1229 * sysdeps/unix/sysv/linux/sh/sys/user.h: Don't include features.h
1230 and asm/user.h. Include asm/ptrace.h.
1231 (PTRACE_GETREGS, PTRACE_SETREGS, PTRACE_GETFPREGS,
1232 PTRACE_SETFPREGS, PTRACE_GETFDPIC, PTRACE_GETFDPIC_EXEC,
1233 PTRACE_GETFDPIC_INTERP, PTRACE_GETDSPREGS, PTRACE_SETDSPREGS):
1234 Undefine.
1235 (start_thread): Don't undefine.
1236 (elf_greg_t, ELF_NGREG, elf_fpregset_t, user_fpu_struct, user):
1237 Define.
1238
f503060b
UD
12392009-02-26 Ulrich Drepper <drepper@redhat.com>
1240
6cbe890a
UD
1241 * wctype/wctype.h: The *_l functions are in POSIX 2008.
1242 * wcsmbs/wchar.h: mbsnrtowcs, open_wmemstream, wcpcpy, wcpncpy,
1243 wcscasecmp, wcsdup, wcsncasecmp, wcsnlen, wcsnrtombs,
1244 wcscasecmp_l, wcsncasecmp_l, wcscoll_l, and wcsxfrm_l.
1245 * sysdeps/mach/hurd/bits/posix_opt.h: Reset value of macros from
1246 200112L to 200809L.
1247 * sysdeps/unix/sysv/linux/bits/posix_opt.h: Likewise.
1248 * posix/getconf.c (vars): Add _SC_THREAD_ROBUST_PRIO_INHERIT and
1249 _SC_THREAD_ROBUST_PRIO_PROTECT entries.
1250 * bits/confname.h: Add _SC_THREAD_ROBUST_PRIO_INHERIT and
1251 _SC_THREAD_ROBUST_PRIO_PROTECT.
1252 * posix/unistd.h: fexecve is in POSIX 2008.
1253 * time/time.h: strftime_l is in POSIX 2008.
1254 * io/sys/stat.h: futimens is in POSIX 2008.
1255 * string/strings.h: strcasecmp_l and strncasecmp_l are in POSIX 2008.
1256 * string/string.h: stpcpy, stpncpy, strndup, strnlen, strsignal,
1257 strcoll_l, strerror_l, and strxfrm_l are in POSIX 2008.
1258 * stdlib/stdlib.h: mkdtemp is in POSIX 2008.
f503060b
UD
1259 * libio/stdio.h: dprintf, fmemopen, getdelim, getline,
1260 open_memstream, and vdprintf are in POSIX 2008.
1261
2e6d6bac
UD
12622009-02-25 Ulrich Drepper <drepper@redhat.com>
1263
3e6b0a28 1264 * include/features.h: Define macros for XPG7/POSIX 2008.
77db439e
UD
1265 * ctype/ctype.h: The *_l functions are in POSIX 2008.
1266 * dirent/dirent.h: alphasort, dirfd, scandir, and fdopendir are in
1267 POSIX 2008.
1f04d005
UD
1268 * locale/langinfo.h: nl_langinfo_l is in POSIX 2008.
1269 * locale/xlocale.h: Define locale_t type.
1270 * locale/locale.h: duplocale, freelocale, newlocale, uselocale are
1271 in POSIX 2008. Don't define locale_t here.
1272 * stdlib/monetary.h: strfmon_l is in POSIX 2008.
3e6b0a28
UD
1273 * sysdeps/unix/sysv/linux/bits/stat.h: Protect UTIME_NOW and
1274 UTIME_OMIT only with __USE_ATFILE.
1f04d005
UD
1275 * signal/signal.h: Declare psignal and psiginfo for POSIX 2008.
1276 * stdio-common/psiginfo.c: New file.
1277 * stdio-common/psiginfo-data.h: New file.
1278 * stdio-common/psiginfo-define.h: New file.
1279 * stdio-common/Makefile (routines): Add psiginfo.
1280 * stdio-common/Versions: Export psiginfo for GLIBC_2.10.
3e6b0a28
UD
1281 * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
1282 * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Likewise.
1283 * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
1284 * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
1285 * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
1286 * io/sys/stat.h: Move mknodat definition into same conditional as
1287 mknod.
1288 * time/sys/time.h: futimesat is not among the functions accepted
1289 into the POSIX standard.
1290
2e6d6bac
UD
1291 * include/features.h: If no feature selection given and we select
1292 by default a POSIX mode, also define __USE_POSIX_IMPLICITLY.
1293 * posix/Versions: Export __posix_getopt.
1294 * posix/getopt.c (_getopt_initialize): Take additional parameter.
1295 Use it to alternatively initialize __posixly_correct.
1296 (_getopt_internal_r): Take addition parameter. Pass on to
1297 _getopt_initialize.
1298 (_getopt_internal): Take addition parameter. Pass on to
1299 _getopt_internal_r.
1300 (getopt): Pass additional zero to _getopt_internal.
1301 (__posix_getopt): New function.
1302 * posix/getopt.h: Add redirection for getopt.
1303 * posix/getopt1.c (getopt_long): Pass additional zero to
1304 _getopt_internal.
1305 (getopt_long_only): Likewise.
1306 (_getopt_long_r): Pass additional zero to _getopt_internal_r.
1307 (_getopt_long_only_r): Likewise.
1308 * posix/getopt_int.h: Adjust declarations of _getopt_internal and
1309 _getopt_internal_r.
1310
67108e40
UD
13112009-02-24 Ulrich Drepper <drepper@redhat.com>
1312
1313 * bits/confname.h: Define _SC_TRACE_EVENT_NAME_MAX, _SC_TRACE_NAME_MAX,
1314 _SC_TRACE_SYS_MAX, _SC_TRACE_USER_EVENT_MAX, _SC_XOPEN_STREAMS.
1315 * sysdeps/posix/sysconf.c (__sysconf): Handle
1316 _SC_TRACE_EVENT_NAME_MAX, _SC_TRACE_NAME_MAX, _SC_TRACE_SYS_MAX,
1317 _SC_TRACE_USER_EVENT_MAX, _SC_XOPEN_STREAMS.
1318
1cccb96f
RM
13192009-02-24 Roland McGrath <roland@redhat.com>
1320
1321 [BZ #9895]
1322 * README.template: Reworded not to use substituted version number.
1323 Renamed to ...
1324 * README: ... here (no longer generated).
1325 * Makefile (README): Target removed.
1326
82780cbe
UD
13272009-02-24 Ulrich Drepper <drepper@redhat.com>
1328
5be0a688 1329 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf):
77db439e 1330 /proc/sys/kernel/rtsig_max doesn't exist anymore, use getrlimit
5be0a688
UD
1331 instead.
1332
8c4a5f42
UD
1333 * io/sys/stat.h: The lstat functions have been mandatory since 2001.
1334
82780cbe
UD
1335 * time/tzset.c (tzset_internal): Correct parsing of TZ envvar.
1336
77c571dd
UD
13372009-02-22 Ulrich Drepper <drepper@redhat.com>
1338
1339 * po/bg.po: Update from translation team.
1340
d82a27f8
JJ
13412009-02-16 Jakub Jelinek <jakub@redhat.com>
1342
1343 * stdlib/monetary.h: Uglify function parameter names.
1344 * sunrpc/rpc/pmap_clnt.h: Likewise.
1345 * sunrpc/rpc/svc.h: Likewise.
1346 * sunrpc/rpc/xdr.h: Likewise.
1347 * sunrpc/rpc/clnt.h: Likewise.
1348 * resolv/netdb.h: Likewise.
1349 * resolv/arpa/nameser.h: Likewise.
1350 * resolv/resolv.h: Likewise.
1351 * argp/argp.h: Likewise.
1352 * locale/langinfo.h: Likewise.
1353 * io/sys/stat.h: Likewise.
1354 * posix/spawn.h: Likewise.
1355 * nis/rpcsvc/nislib.h: Likewise.
1356 * malloc/obstack.h: Likewise.
1357 * sysdeps/ia64/bits/link.h: Likewise.
1358 * sysdeps/i386/bits/link.h: Likewise.
1359 * sysdeps/s390/bits/link.h: Likewise.
1360 * sysdeps/powerpc/bits/link.h: Likewise.
1361 * sysdeps/x86_64/bits/link.h: Likewise.
1362 * sysdeps/sparc/bits/link.h: Likewise.
1363 * sysdeps/sh/bits/link.h: Likewise.
1364 * sysdeps/unix/sysv/linux/i386/sys/io.h: Likewise.
1365 * sysdeps/unix/sysv/linux/x86_64/sys/io.h: Likewise.
1366 * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: Likewise.
1367 * sysdeps/unix/sysv/linux/sys/eventfd.h: Likewise.
1368
58a7457e
JJ
13692008-12-01 Fredrik Unger <fred@tree.se>
1370
1371 * soft-fp/double.h [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_SEMIRAW_D,
1372 FP_UNPACK_SEMIRAW_DP): Use _FP_UNPACK_RAW_1 instead of
1373 _FP_UNPACK_RAW_2, fix up first argument.
1374
f43b4be6
UD
13752009-02-15 Ulrich Drepper <drepper@redhat.com>
1376
1377 * sysdeps/unix/sysv/linux/getsysstats.c (next_line): New function.
1378 (GET_NPROCS_PARSER): Change parameters and use next_line.
1379 (__get_nprocs): Rewrite to not use stdio routines.
1380 * sysdeps/unix/sysv/linux/sparc/getsysstats.c (GET_NPROCS_PARSER):
1381 Change parameters and use next_line.
1382
20e498bd
UD
13832009-02-13 Ulrich Drepper <drepper@redhat.com>
1384
1385 [BZ #5381]
1386 * nscd/nscd.h: Remove definitions and declarations for mem_in_flight.
1387 Change mempool_alloc prototype.
1388 * nscd/mem.c (gc): Don't handle mem_in_flight.
1389 (mempool_alloc): Third parameter now only indicates whether this is the
1390 first call (to allocate data) or not. If it is, get db rdlock.
1391 Release it on error. Don't handle mem_in_flight.
1392 * nscd/aicache.c (addhstaiX): Mark he parameter as const.
1393 Adjust third parameter of mempool_alloc calls.
1394 Nothing to do here in case mempool_alloc fails.
1395 Avoid local variable shadowing parameter. No need to get db rdlock
1396 before calling cache_add.
1397 * nscd/cache.c (cache_add): Adjust call to mempool_alloc. There is
1398 no mem_in_flight array anymore.
1399 * nscd/connections.c: Remove definition and handling of mem_in_flight.
1400 * nscd/grpcache.c (cache_addgr): Adjust third parameter of
1401 mempool_alloc calls. Mark he parameter as const. Nothing to do here
1402 in case mempool_alloc fails. No need to get db rdlock before calling
1403 cache_add.
1404 * nscd/hstcache.c (cache_addhst): Likewise.
1405 * nscd/initgrcache.c (addinitgroupsX): Likewise.
1406 * nscd/servicescache.c (cache_addserv): Likewise.
1407 * nscd/pwdcache.c (cache_addpw): Likewise. Remove some debugging code.
1408
d8111eac
UD
14092009-02-11 Ulrich Drepper <drepper@redhat.com>
1410
1411 * po/lt.po: Update from translation team.
1412
40e2fc8b
UD
14132009-02-10 Ulrich Drepper <drepper@redhat.com>
1414
1415 * elf/dl-load.c (open_verify): In case VALID_ELF_HEADER is
1416 defined, allow additional data to be added using the optional
1417 MORE_ELF_HEADER_DATA macro.
1418 * sysdeps/unix/sysv/linux/ldsodefs.h (VALID_ELF_HEADER,
1419 VALID_ELF_OSABI, VALID_ELF_ABIVERSION, MORE_ELF_HEADER_DATA): Define.
1420
6c03cd11
UD
14212009-02-08 Ulrich Drepper <drepper@redhat.com>
1422
1423 * include/atomic.h: Define catomic_and if not already defined.
1424 * sysdeps/x86_64/bits/atomic.h: Define catomic_and.
1425 * sysdeps/i386/i486/bits/atomic.h: Likewise.
1426
bc16e0c4
UD
14272009-02-07 Ulrich Drepper <drepper@redhat.com>
1428
78ac92ad
UD
1429 * malloc/malloc.c (_int_free): Second argument is now mchunkptr.
1430 Change all callers.
6dd6a580 1431 (_int_realloc): Likewise. Third argument is now padded size
78ac92ad 1432 All _int_* functions are now static.
6dd6a580 1433
78ac92ad
UD
1434 * malloc/hooks.c: Change all callers to _int_free and _int_realloc.
1435 * malloc/arena.c: Likewise.
1436 * include/malloc.h: Remove now unnecessary declarations of the _int_*
1437 functions.
1438
7dddb4bd
UD
1439 * sunrpc/rpc_common.c: We cannot move _null_auth into .rodata that
1440 easily.
1441
bfacf1af
UD
1442 * malloc/malloc.c: Add branch prediction for use of the hooks.
1443
bc16e0c4
UD
1444 * grp/compat-initgroups.c [NOT_IN_libc] (__libc_use_alloca): Define.
1445
26b62243
UD
14462009-02-06 Ulrich Drepper <drepper@redhat.com>
1447
1448 [BZ #7095]
1449 * bits/confname.h: Add SUSv7 macros for getconf environments.
1450 * bits/environments.h: Likewise.
1451 * sysdeps/unix/sysv/linux/i386/bits/environments.h: Likewise.
1452 * sysdeps/unix/sysv/linux/powerpc/bits/environments.h: Likewise.
1453 * sysdeps/unix/sysv/linux/s390/bits/environments.h: Likewise.
1454 * sysdeps/unix/sysv/linux/sparc/bits/environments.h: Likewise.
1455 * sysdeps/unix/sysv/linux/x86_64/bits/environments.h: Likewise.
1456 * posix/confstr.c: Handle SUSv5 and SUSv7 environments.
1457 * posix/getconf.c: Likewise.
1458 * posix/sysconf.c: Likewise.
1459 * sysdeps/posix/sysconf.c: Likewise.
1460 * posix/Makefile (getconf.speclist): Also collect SUSv5 and SUSv7
1461 environments.
1462
3fe4c5b3
UD
14632009-01-16 Petr Baudis <pasky@suse.cz>
1464
1465 [BZ #9753]
1466 * resolv/res_libc.c (__res_maybe_init): Call __res_vinit()
1467 even if we currently have zero nscount.
1468
cbbcaf23
UD
14692009-02-06 Ulrich Drepper <drepper@redhat.com>
1470
1a9dd4e4
UD
1471 [BZ #9781]
1472 * grp/compat-initgroups.c (compat_call): Switch to use malloc when
1473 the input line is too long.
1474
51f8846e
UD
1475 * po/Makefile (libc.pot): Add f_print as function taking c-format
1476 parameter.
1477
cbbcaf23
UD
1478 * debug/xtrace.sh: Unify translatable messages.
1479 * elf/ldd.bash.in: Likewise.
1480 * elf/sprof.c: Likewise.
1481 * locale/programs/locale.c: Likewise.
1482 * malloc/memusage.sh: Likewise.
1483 * nss/getent.c: Likewise.
1484
14852009-02-06 Joseph Myers <joseph@codesourcery.com>
1486
1487 * debug/pcprofiledump.c (print_version,
1488 argp_program_version_hook): New function.
1489 * elf/ldconfig.c (more_help): New function.
1490 (argp): Use it.
1491 * elf/sln.c (usage): New function.
1492 (main): Support --help and --version.
1493 * malloc/memusagestat.c (print_version): New function.
1494 (argp_program_version_hook): New variable.
1495 * nscd/nscd.c (more_help): New function.
1496 (argp): Use it.
1497 * posix/getconf.c (main): Send --version output to stdout.
1498 Support --help.
1499 * sunrpc/rpc_main.c (usage, options_usage): Take STREAM and STATUS
1500 arguments. All callers changed.
1501 (print_version): New function.
1502 (parseargs): Support --help and --version.
1503 * sunrpc/rpcinfo.c (usage): Take STREAM argument. All callers
1504 changed.
1505 (print_version): New function.
1506 (main): Use getopt_long. Support --help and --version.
1507 * sysdeps/unix/sysv/linux/lddlibc4.c (main): Support --help and
1508 --version.
1509
88a3b8f9
UD
15102009-02-06 Ulrich Drepper <drepper@redhat.com>
1511
e2e390fa
UD
1512 * malloc/memusage.c (DEFAULT_BUFFER_SIZE): Change to 32768.
1513 (update_data): Fix handling of wrapping back
c3ab42a8
UD
1514 to the beginning of the buffer.
1515
88a3b8f9
UD
1516 [BZ #9823]
1517 * stdio-common/psignal.c (psignal): Fix test for empty string.
1518
62f63c47
UD
15192009-02-05 Ulrich Drepper <drepper@redhat.com>
1520
4f7408c7
UD
1521 * include/rpc/auth.h: Use libc_hidden_proto for _null_auth.
1522 * sunrpc/rpc_common.c: Add libc_hidden_def for _null_auth. Also
1523 move _null_auth to .rodata.
1524
970aa10f
UD
1525 * time/tzset.c (__tzset_parse_tz): DST offset must also allow hour
1526 value of 24.
1527
52de761a
UD
1528 * intl/dcigettext.c (DCIGETTEXT): Avoid some code duplication.
1529
62f63c47
UD
1530 * sysdeps/unix/opendir.c (__alloc_dir): We have a lot more memory
1531 today than when the original code was written. Use larger
1532 buffers. This also makes it unnecessary to have stat information,
1533 if this causes extra efforts.
1534 (__opendir): In case O_DIRECTORY works, don't call fstat just for
1535 __alloc_dir.
1536
0899b889
UD
15372009-02-03 Andrew Stubbs <ams@codesourcery.com>
1538
1539 * sysdeps/sh/sh4/dl-trampoline.S: Only set HAVE_FPU if __SH_FPU_ANY__
1540 is set.
1541 * sysdeps/sh/sh4/setjmp.S: Support SH4-NOFPU.
1542 * sysdeps/sh/sh4/__longjmp.S: Likewise.
1543 * sysdeps/unix/sysv/linux/sh/sh4/getcontext.S: Likewise.
1544 * sysdeps/unix/sysv/linux/sh/sh4/setcontext.S: Likewise.
1545 * sysdeps/unix/sysv/linux/sh/sh4/swapcontext.S: Likewise.
1546 * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Likewise.
1547
22cc3f75
UD
15482009-02-04 Ulrich Drepper <drepper@redhat.com>
1549
1550 * po/ru.po: Update from translation team.
1551
a71433e7
UD
15522008-11-17 Nathan Sidwell <nathan@codesourcery.com>
1553
1554 * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (struct sigevent):
1555 Add _tid slot to maintain consistency with kernel.
1556
82f2e9c6 15572009-02-04 Ulrich Drepper <drepper@redhat.com>
3a2e9947 1558
82f2e9c6
UD
1559 * libio/wfileops.c (_IO_wfile_underflow): Fix handling of
1560 incomplete characters at end of input buffer.
1561 * libio/Makefile (tests): Add tst-fgetwc.
1562 * libio/tst-fgetwc.c: New file.
1563 * libio/tst-fgetwc.input: New file.
3a2e9947 1564
ba022c06
UD
15652009-02-02 Andrew Stubbs <ams@codesourcery.com>
1566
1567 * sysdeps/unix/sysv/linux/sh/Makefile (libm.so-no-z-defs): Define.
1568
1b14353e
UD
15692009-02-02 Ulrich Drepper <drepper@redhat.com>
1570
1571 [BZ #9793]
1572 * iconv/gconv_trans.c (__gconv_transliterate): Don't change
1573 *OUTBUFSTART unless the whole output fit into the buffer.
1574 * iconv/Makefile (tests): Add tst-iconv4.
1575 * iconv/tst-iconv4.c: New file.
1576
ebc22416
UD
15772009-02-01 Ulrich Drepper <drepper@redhat.com>
1578
1579 * sysdeps/x86_64/cacheinfo.c (intel_02_known): Add new descriptors.
1580 * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
1581
7c8a6732
UD
15822009-01-29 Andrew Stubbs <ams@codesourcery.com>
1583
1584 * elf/Makefile (ld.so): Adjust the sed script to insert _begin in to
1585 newer linker scripts.
1586
43149780
UD
15872009-01-30 Ulrich Drepper <drepper@redhat.com>
1588
1589 [BZ #7040]
1590 * sysdeps/unix/sysv/linux/sys/inotify.h: Second parameter of
1591 inotify_rm_watch should have type int.
1592
bd4ace0b
UD
15932009-01-06 Steven Munroe <sjmunroe@us.ibm.com>
1594
1595 * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp):
1596 Make aligned_restore_vmx a local symbol.
1597 * sysdeps/powerpc/powerpc64/__longjmp-common.S (__longjmp):
1598 Likewise.
1599
430902da
AJ
16002009-01-30 Andreas Jaeger <aj@suse.de>
1601
1602 * sysdeps/unix/sysv/linux/bits/shm.h (SHM_EXEC): Define.
1603 * sysdeps/unix/sysv/linux/ia64/bits/shm.h (SHM_EXEC): Define.
1604 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h (SHM_EXEC): Define.
1605 * sysdeps/unix/sysv/linux/s390/bits/shm.h (SHM_EXEC): Define.
1606 * sysdeps/unix/sysv/linux/sh/bits/shm.h (SHM_EXEC): Define.
1607 * sysdeps/unix/sysv/linux/sparc/bits/shm.h (SHM_EXEC): Define.
1608 * sysdeps/unix/sysv/linux/x86_64/bits/shm.h (SHM_EXEC): Define.
1609
b7219e53
UD
16102009-01-11 Ryan S. Arnold <rsa@us.ibm.com>
1611
1612 [BZ #9726]
1613 * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (_SET_DI_FPSCR,
1614 _SET_SI_FPSCR): Clobber fp0 to prevent erroneous test-case passes.
1615
16162009-01-08 Ryan S. Arnold <rsa@us.ibm.com>
1617
1618 [BZ #9726]
1619 * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S
1620 (__CONTEXT_FUNC_NAME): Fix mtfsf to use fp31 instead of fp0.
1621 * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S
1622 (__CONTEXT_FUNC_NAME): Fix mtfsf to use fp31 instead of fp0.
1623
a3bd2846
UD
16242009-01-11 Thomas Schwinge <tschwinge@gnu.org>
1625
1626 * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Use
1627 memcpy instead of memcmp.
1628 (_dl_setup_pointer_guard): Likewise.
1629
1fdd89a7
UD
16302009-01-30 Ulrich Drepper <drepper@redhat.com>
1631
1632 * malloc/malloc.c (sYSMALLOc): Don't use assert when detecting
1633 manipulated brk, use malloc_printerr.
1634 * misc/sbrk.c (__sbrk): Better error handling for nonsense
1635 requests.
1636
8585cb74
UD
16372009-01-30 Jakub Jelinek <jakub@redhat.com>
1638
1639 * string/string.h (memchr, strchr, strrchr, strpbrk, strstr, index,
1640 rindex): For C++ add inlines so that they can be recognized as
1641 builtins.
1642 * string/strings.h: Define correct C++ prototypes for gcc 4.4.
1643
d8387c7b
UD
16442009-01-29 Ulrich Drepper <drepper@redhat.com>
1645 Jakub Jelinek <jakub@redhat.com>
1646
cdf77dd8
UD
1647 * string/string.h: Define correct C++ prototypes for gcc 4.4.
1648 * wcsmbs/wchar.h: Likewise.
d8387c7b 1649
647925b2
UD
16502009-01-29 Ulrich Drepper <drepper@redhat.com>
1651
1652 * sysdeps/i386/stackinfo.h (stackinfo_get_sp): Define.
1653 (stackinfo_sub_sp): Define.
1654
5627534a
UD
16552009-01-28 Ulrich Drepper <drepper@redhat.com>
1656
fd537e53
UD
1657 [BZ #9750]
1658 * nscd/mem.c (gc): Use alloca_count to get the real stack usage.
1659 * include/alloca.h (alloca_account): Define.
1660 * sysdeps/x86_64/stackinfo.h (stackinfo_get_sp): Define.
1661 (stackinfo_sub_sp): Define.
1662
00f5df0e
UD
1663 * nscd/connections.c (nscd_init): If database file access fails
1664 check whether this is due to permission problems and bail in that
1665 case.
31d322a2 1666
5627534a
UD
1667 [BZ #9741]
1668 * nscd/mem.c (gc): Fix assignment of he_data in case malloc is used.
1669 Reported by Jun'ichi Nomura <j-nomura@ce.jp.nec.com>.
1670
a7bd183f
UD
16712009-01-14 Kaz Kojima <kkojima@rr.iij4u.or.jp>
1672
1673 * sysdeps/unix/sysv/linux/sh/sysdep.h (INTERNAL_SYSCALL):
1674 Add "t" to clobber list.
1675 (INTERNAL_SYSCALL_NCS): Likewise.
1676
1dd75769
UD
16772009-01-28 Ulrich Drepper <drepper@redhat.com>
1678
1679 * nss/getent.c (print_networks): Don't print comma between aliases.
1680
25e84177
UD
16812009-01-23 Ulrich Drepper <drepper@redhat.com>
1682
1683 * sysdeps/unix/sysv/linux/tst-clone.c (do_test): Avoid warning.
1684
1685 * misc/hsearch_r.c (hcreate_r): We need at least three elements in
1686 the hash table.
1687 * misc/Makefile (tests): Add bug-hsearch1.
1688 * misc/bug-hsearch1.c: New file.
1689
0699a0ca
RM
16902009-01-22 Roland McGrath <roland@redhat.com>
1691
1692 * Makeconfig (%.v.i): Strip trailing # comments,
1693 not only whole-line comments.
1694
965cb60a
UD
16952009-01-10 Ulrich Drepper <drepper@redhat.com>
1696
1697 * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Take
1698 one parameter. If non-NULL use it to initialize return value.
1699 (_dl_setup_pointer_guard): New function.
1700 * sysdeps/unix/sysv/linux/dl-osinfo.h: Likewise.
1701 * sysdeps/generic/ldsodefs.h: Declare _dl_random.
1702 * elf/rtld.c (security_init): Pass _dl_random to
1703 _dl_setup_stack_chk_guard. Call _dl_setup_pointer_guard to initialize
1704 pointer_chk_guard.
1705 * elf/dl-sysdep.c (_dl_random): New variable.
1706 (_dl_sysdep_start): Handle AT_RANDOM.
1707 (_dl_show_auxv): Likewise.
1708 * elf/dl-support.c (_dl_random): New variable.
1709 (_dl_aux_init): Handle AT_RANDOM.
1710 * csu/libc-start.c [!SHARED] (libc_start_main): Pass _dl_random
1711 to _dl_setup_stack_chk_guard.
1712
1713 * elf/elf.h (AT_RANDOM): Define AT_BASE_PLATFORM and AT_RANDOM.
1714
8be96dd1
RM
17152009-01-10 Roland McGrath <roland@redhat.com>
1716
1717 * nscd/nscd.c (parse_opt): Use argp_error for bad -i argument.
1718
157cd5ac
UD
17192009-01-08 Ulrich Drepper <drepper@redhat.com>
1720
9b1c750e
UD
1721 * sysdeps/i386/fpu/libm-test-ulps: Adjust expm1 errors.
1722
157cd5ac
UD
1723 [BZ #9706]
1724 * nss/nss_files/files-parse.c (strtou32): New function.
1725 (INT_FIELD): Use strotu32 instead of strtoul to unify behavior
1726 across 32-bit and 64-bit platforms.
1727 (INT_FIELD_MAYBE_NULL): Likewise.
1728
960af8c2
JJ
17292009-01-08 Jakub Jelinek <jakub@redhat.com>
1730
1731 [BZ #9720]
1732 * sysdeps/unix/sysv/linux/bits/resource.h (enum __rusage_who): Avoid
1733 comma after RUSAGE_CHILDREN if not -D_GNU_SOURCE.
1734 * sysdeps/unix/sysv/linux/sparc/bits/resource.h (enum __rusage_who):
1735 Likewise.
1736
76c7f2cd
UD
17372009-01-05 Paolo Bonzini <bonzini@gnu.org>
1738
16c124f7 1739 [BZ #697]
76c7f2cd
UD
1740 * posix/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
1741 being NULL also if there are no backreferences.
1742 * posix/rxspencer/tests: Add testcases.
1743
bdb56bac
UD
17442009-01-04 Paolo Bonzini <bonzini@gnu.org>
1745
16c124f7 1746 [BZ #9697]
bdb56bac
UD
1747 * posix/bug-regex17.c: Add testcases.
1748 * posix/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
1749 handling.
1750
0480c901
UD
17512009-01-05 Martin Schwidefsky <schwidefsky@de.ibm.com>
1752
1753 * sysdeps/unix/sysv/linux/s390/bits/libc-vdso.h: New file.
1754 * sysdeps/unix/sysv/linux/s390/gettimeofday.c: New file.
1755 * sysdeps/unix/sysv/linux/s390/init-first.c: New file.
1756 * sysdeps/unix/sysv/linux/s390/Makefile (sysdep_routines): Add dl-vdso
1757 for elf subdir.
1758 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (INLINE_VSYSCALL,
1759 INTERNAL_VSYSCALL, INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK,
1760 INTERNAL_SYSCALL_NCS, HAVE_CLOCK_GETRES_VSYSCALL and
1761 HAVE_CLOCK_GETTIME_VSYSCALL: Define.
1762 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
1763 * sysdeps/unix/sysv/linux/s390/Versions: New file.
1764
b3918c7d
UD
17652008-12-31 Paolo Bonzini <bonzini@gnu.org>
1766
1767 * posix/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
1768 * posix/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
1769 re_string_skip_chars, re_string_reconstruct): Likewise.
1770 * posix/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
1771
df9293cb
UD
17722008-12-31 Rafael Avila de Espindola <espindola@google.com>
1773
1774 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr2_r): Check and
1775 adjust the buffer alignment.
1776
c90c1e1c
RM
17772009-01-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
1778
1779 * sysdeps/mach/hurd/Makefile (sysdep_headers) [subdir=socket]:
1780 Add net/ethernet.h net/if_arp.h net/if_ether.h net/if_ppp.h
1781 net/route.h.
1782
1783 * hurd/report-wait.c (describe_number): Use __stpcpy to prepend
1784 flavor to description only when flavor is not NULL.
1785
1786 * hurd/hurdsig.c (signal_allowed): Unlock _hurd_dtable_lock
1787 mutex after SIGIO/SIGURG lookup loop.
1788
5aff6fdf
RM
17892009-01-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
1790
1791 * bits/resource.h (PRIO_PROCESS, PRIO_PGRP, PRIO_USER): Add macros.
1792
b2bcd249
UD
17932009-01-03 Ulrich Drepper <drepper@redhat.com>
1794
1795 * sysdeps/unix/sysv/linux/i386/sysdep.h: Describe 6th argument
1796 handling.
1797
d36ad871
UD
17982009-01-02 Ulrich Drepper <drepper@redhat.com>
1799
ebb2788e
UD
1800 * sysdeps/unix/sysv/linux/kernel-features.h
1801 (__ASSUME_FUTEX_CLOCK_REALTIME): Define.
1802
72098116
UD
1803 * wcsmbs/wcsnrtombs.c (__wcsnrtombs): Create temporary state object
1804 if no output is written.
1805
623d0bf5
UD
1806 * version.h: Bump to 2.10 development.
1807
d36ad871
UD
1808 * posix/getconf.c: Update copyright year.
1809 * nss/getent.c: Likewise.
1810 * iconv/iconvconfig.c: Likewise.
1811 * iconv/iconv_prog.c: Likewise.
1812 * elf/ldconfig.c: Likewise.
1813 * catgets/gencat.c: Likewise.
1814 * csu/version.c: Likewise.
1815 * elf/ldd.bash.in: Likewise.
1816 * elf/sprof.c (print_version): Likewise.
1817 * locale/programs/locale.c: Likewise.
1818 * locale/programs/localedef.c: Likewise.
1819 * nscd/nscd.c (print_version): Likewise.
1820 * debug/xtrace.sh: Likewise.
1821 * malloc/memusage.sh: Likewise.
1822 * malloc/mtrace.pl: Likewise.
1823 * debug/catchsegv.sh: Likewise.
1824
25df09ab
UD
18252008-12-29 Mike Frysinger <vapier@gentoo.org>
1826
1827 * iconvdata/Makefile (iconv-rules): Use LC_ALL=C when running awk
1828 script.
1829
16b7dc27
UD
18302008-12-29 Ulrich Drepper <drepper@redhat.com>
1831
bfbbc63f
UD
1832 * sysdeps/posix/getaddrinfo.c (gaih_inet): When the
1833 gethostbyname4_r function call succeeded, just leave the loop.
1834
0f2ae55c
UD
1835 [BZ #9694]
1836 * wcsmbs/wchar.h: Move undefs for local __need_* constants to the
1837 very end.
5703f472
UD
1838 * wctype/wctype.h: Get wint_t definition directly from <stddef.h>.
1839 * wctype/Makefile (tests): Add bug-wctypeh.
1840 * wctype/bug-wctypeh.c: New file.
0f2ae55c 1841
50e481ce
UD
1842 * nscd/nscd_gethst_r.c (nscd_gethst_r): Don't use nscd if
1843 LOCALDOMAIN is defined.
1844 * nscd/nscd_getai.c (__nscd_getai): Likewise.
1845
217d45cd
UD
1846 * sysdeps/x86_64/bits/select.h: New file.
1847
16b7dc27
UD
1848 * resolv/res_init.c (__res_vinit): Count all servers in statp->nscount.
1849
bf93cd3b
UD
18502008-12-21 Bruno Haible <bruno@clisp.org>
1851
1852 [BZ #9677]
1853 * wcsmbs/mbsnrtowcs.c (__mbsnrtowcs): Create temporary state object
1854 if no output is written.
1855
49159e12
UD
18562008-12-13 Klaus Dittrich <kladit@arcor.de>
1857
1858 * login/utmp_file.c (pututline_file): Replace call to dup2 with
1859 libc internal symbol __dup2 to avoid access through the PLT.
1860
d4f0720b
UD
18612008-12-08 Ulrich Drepper <drepper@redhat.com>
1862
135460f4
UD
1863 [BZ #6545]
1864 * sysdeps/unix/sysv/linux/bits/socket.h (SCM_CREDENTIALS): Make
1865 available only for __USE_GNU.
1866
ed0da352
UD
1867 * inet/Makefile (tests): Add tst-getni2.
1868 * inet/tst-getni2.c: New file.
1869
d4f0720b
UD
1870 [BZ #7080]
1871 * inet/getnameinfo.c (getnameinfo): Check for output buffers being
1872 NULL when NI_NAMEREQD is set.
1873 Patch mostly by Yang Hongyang <yanghy@cn.fujitsu.com>.
1874 * inet/Makefile (tests): Add tst-getni1.
1875 * inet/tst-getni1.c: New file.
1876
cd72adeb
UD
18772008-12-03 Petr Baudis <pasky@suse.cz>
1878
1879 [BZ #7067]
1880 * nscd/connections.c (invalidate_cache): Use prune_run_lock
1881 instead of prune_lock.
1882 (nscd_run_prune): Before calling prune_cache, take prune_run_lock.
1883 * nscd/nscd.h (database_dyn): Add prune_run_cache.
1884
e87946cc
UD
18852008-12-07 Ulrich Drepper <drepper@redhat.com>
1886
200da00a
UD
1887 * resolv/res_send.c (send_dg): Use correct guards for SOCK_CLOEXEC
1888 use.
1889
1890 * sysdeps/unix/sysv/linux/kernel-features.h: Fix typo in accept4
1891 handling.
1892
905ef0da
UD
1893 * resolv/res_init.c (__res_vinit): Always assign to statp->nscount
1894 after reading name server list.
1895
71053765 1896 [BZ #7058]
e87946cc
UD
1897 * nis/nss_nis/nis-hosts.c (_nss_nis_gethostbyname4_r): Fix memory
1898 handling for host name aliases.
1899
d43b8bdd
JJ
19002008-11-24 Arkadiusz Miśkiewicz <arekm@maven.pl>
1901
1902 * sysdeps/i386/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Use LOAD_PIC_REG
1903 instead of doing things manually.
1904
19052008-11-26 Chris Steel <chris.steel.lnx@googlemail.com>
1906
1907 * posix/regex_internal.h (build_wcs_upper_buffer):
1908 Return type is reg_error_t.
1909
25a34eb7
UD
19102008-12-05 Ulrich Drepper <drepper@redhat.com>
1911
f3721ab2
UD
1912 * posix/globtest.sh: Use mktemp to create temporary file and
1913 directory.
1914
25a34eb7
UD
1915 * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_SET_S): Handle large
1916 sets correctly.
1917 (__CPU_CLR_S): Likewise.
1918 (__CPU_ISSET_S): Likewise.
1919
8680179f
UD
19202008-12-05 Joseph Myers <joseph@codesourcery.com>
1921 Ulrich Drepper <drepper@redhat.com>
1922
1923 * scripts/firstversion.awk: Use custom comparison function to compare
1924 version numbers.
1925 * scripts/versions.awk: Use sort invocation which can handle
1926 multi-digit sub-version numbers.
1927
72d50908
UD
19282008-12-04 Ulrich Drepper <drepper@redhat.com>
1929
1930 * locale/programs/ld-address.c (DEFINE_LANGUAGE_CODE2): Define.
1931 * locale/iso-639.def: Add Chhattisgarhi entry.
1932
f93fc0b7
UD
19332008-12-02 Ulrich Drepper <drepper@redhat.com>
1934
da5ac135
UD
1935 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname3_r): Recognize
1936 ESRCH return value.
1937 (_nss_dns_gethostbyname4_r): Likewise.
1938 * resolv/res_init.c (__res_vinit): Initialize nscount to zero.
1939 * sysdeps/posix/getaddrinfo.c (gaih_inet): In case we use
1940 gethostbyname4_r, we don't have a separate IPv6 status, so copy
1941 the no_data variable.
1942
6f5c3117
UD
1943 * resolv/res_init.c (__res_vinit): Fill in IPv4 name server
1944 information at the correct index.
1945
f93fc0b7
UD
1946 * socket/sys/socket.h: Declare accept4.
1947 * socket/accept4.c: New file.
1948 * sysdeps/unix/sysv/linux/accept4.c: New file.
1949 * sysdeps/unix/sysv/linux/i386/accept4.S: New file.
1950 * socket/Makefile (routines): Add accept4.
1951 * socket/Versions: Export accept4 with version GLIBC_2.10.
1952 * socket/paccept.c: Removed.
1953 * sysdeps/unix/sysv/linux/paccept.c: Removed.
1954 * sysdeps/unix/sysv/linux/i386/paccept.S: Removed.
1955 * Versions.def: Define GLIBC_2.10 for libc.
1956 * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_ACCEPT4.
1957
1958 * nscd/connections.c: Use accept4.
1959
1960 * sysdeps/unix/sysv/linux/i386/socket.S: Fix comment.
1961
1fa7ae05
UD
19622008-12-01 Ulrich Drepper <drepper@redhat.com>
1963
9744268c
UD
1964 * resolv/res_send.c (send_dg): Create sockets with non-blocking
1965 flag already set.
1966
1fa7ae05
UD
1967 * stdlib/setenv.c (unsetenv): Don't search environment if it does
1968 not exist.
30c06371
UD
1969 * stdlib/Makefile (tests): Add tst-unsetenv1.
1970 * stdlib/tst-unsetenv1.c: New file.
1fa7ae05 1971
37a6a271
UD
19722008-11-29 Ulrich Drepper <drepper@redhat.com>
1973
1974 * login/utmp_file.c (file_writable): New variable.
1975 (setutent_file): Don't try to open file for writing.
1976 (pututline_file): Before writing, make descriptor writable if
1977 necessary.
1978
ca4dc0fe
UD
19792008-11-26 Ulrich Drepper <drepper@redhat.com>
1980
be4607eb
UD
1981 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Only restrict search
1982 to IPv4 or IPv6 if an interface has been found.
ca4dc0fe 1983
01a74645
RM
19842008-11-26 Roland McGrath <roland@redhat.com>
1985
24fd0a5b
RM
1986 * sysdeps/unix/sysv/linux/alpha/ipc_priv.h: Renamed to ...
1987 * sysdeps/unix/sysv/linux/powerpc/ipc_priv.h: ... here.
1988
1989 * sysdeps/unix/sysv/linux/alpha/wordexp.c: Renamed to ...
1990 * sysdeps/unix/sysv/linux/ia64/wordexp.c: ... here.
1991 * sysdeps/unix/sysv/linux/sparc/sparc64/wordexp.c: Change #include.
1992
01a74645
RM
1993 * elf/elf.h (NT_386_IOPERM): New macro.
1994 (NT_PPC_VSX): New macro.
1995
c0439b95
RM
19962008-11-25 Roland McGrath <roland@redhat.com>
1997
1998 * sysdeps/alpha, sysdeps/unix/bsd/osf/alpha,
1999 sysdeps/unix/bsd/Attic/osf1/alpha, sysdeps/unix/sysv/linux/alpha,
2000 sysdeps/unix/sysv/linux/alpha/alpha, sysdeps/unix/alpha,
2001 sysdeps/mach/alpha, sysdeps/mach/hurd/alpha:
2002 Subdirectories moved to ports repository.
2003 * configure.in (base_machine): Remove alpha case.
2004
d3dc523b
RM
20052008-11-25 Thomas Schwinge <tschwinge@gnu.org>
2006
2007 * sysdeps/mach/strerror_l.c: New file.
2008
edba7a54
UD
20092008-11-13 Ryan S. Arnold <rsa@us.ibm.com>
2010
2011 [BZ #6411]
2012 * sysdeps/powerpc/fpu/Makefile: Added test case tst-setcontext-fpscr.
2013 * sysdeps/powerpc/fpu/feholdexcpt.c (_FPU_MASK_ALL): Define to replace
2014 magic numbers.
2015 * sysdeps/powerpc/fpu/fenv_libc.h (fesetenv_register): Dynamically
2016 choose mtfsf insn based on PPC_FEATURE_HAS_DFP.
2017 (relax_fenv_state): Same as above.
2018 (FPSCR_29): Reserve bit in ISA 2.05.
2019 (FPSCR_NI): Provide define for compat.
2020 * sysdeps/powerpc/fpu/fesetenv.c (_FPU_MASK_ALL): Define to replace
2021 magic numbers.
2022 * sysdeps/powerpc/fpu/feupdateenv.c (_FPU_MASK_ALL): Define to replace
2023 magic numbers.
2024 * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c: New file. Test case to
2025 test setcontext and swapcontext with dynamic 64-bit FPSCR detection.
2026 * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp): Adjust
2027 access to hwcap to account for hwcap size increase to uint64_t.
2028 * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S (__sigsetjmp ):
2029 Likewise.
2030 * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S
2031 (*setcontext): Likewise.
2032 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/setcontext.S:
2033 New file.
2034 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/swapcontext.S:
2035 New file.
2036 * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S
2037 (*setcontext): dynamically select mtfsf insn based on
2038 PPC_FEATURE_HAS_DFP. Adjust access to hwcap to account for hwcap size
2039 increase to uint64_t.
2040 * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S
2041 (*swapcontext): dynamically select mtfsf insn based on
2042 PPC_FEATURE_HAS_DFP. Adjust access to hwcap to account for hwcap size
2043 increase to uint64_t.
2044 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/setcontext.S:
2045 New file.
2046 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/swapcontext.S:
2047 New file.
2048 * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
2049 (*setcontext): dynamically select mtfsf insn based on
2050 PPC_FEATURE_HAS_DFP.
2051 * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
2052 (*swapcontext): dynamically select mtfsf insn based on
2053 PPC_FEATURE_HAS_DFP.
2054
ec297962
UD
20552008-11-13 Ulrich Drepper <drepper@redhat.com>
2056
b5449f8a 2057 * version.h: Bump for 2.9 release.
f52bb4d7 2058 * include/features.h (__GLIBC_MINOR__): Bump to 9.
b5449f8a 2059
ec297962
UD
2060 [BZ #7029]
2061 * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_ALLOC_SIZE):
2062 Multiply with sizeof of __cpu_mask, not 8 unconditionally after
2063 all the rounding.
2064
3cac8b75
UD
20652008-11-11 Ulrich Drepper <drepper@redhat.com>
2066
0e54a725 2067 [BZ #7009]
3cac8b75
UD
2068 * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): Don't abort for
2069 unknown request types for now.
2070
58a4b51a
RM
20712008-11-11 Roland McGrath <roland@redhat.com>
2072
2073 * sysdeps/x86_64/configure: New file.
2074
2075 * configure.in: Add AC_SUBST(libc_cv_cpp_asm_debuginfo).
2076 * configure: Regenerated.
2077
01bd5e96
JJ
20782008-11-03 Martin Schwidefsky <schwidefsky@de.ibm.com>
2079
2080 * sysdeps/s390/s390-64/dl-trampoline.S (_dl_runtime_profile): Use the
2081 correct instruction to remove the stack frame.
2082
a9069550
JJ
20832008-11-03 Michael Matz <matz@suse.de>
2084
2085 * sysdeps/s390/bits/atomic.h (__arch_compare_and_exchange_val_32_acq,
2086 __arch_compare_and_exchange_val_64_acq): Add "memory" clobber.
2087
4b23f9bd
JJ
20882008-11-07 Jakub Jelinek <jakub@redhat.com>
2089
09f66a4f
JJ
2090 * include/stdio.h (__builtin_fwrite, __builtin_fwrite_unlocked):
2091 Remove.
2092
4b23f9bd
JJ
2093 * bits/libc-tsd.h (__libc_tsd_define, __libc_tsd_address,
2094 __libc_tsd_get, __libc_tsd_set): Add TYPE argument, use it as the type
2095 of the thread variable instead of void *.
2096 * sysdeps/mach/hurd/bits/libc-tsd.h (__libc_tsd_define,
2097 __libc_tsd_address, __libc_tsd_get, __libc_tsd_set): Likewise.
2098 * include/ctype.h (CTYPE_B, CTYPE_TOUPPER, CTYPE_TOLOWER): Adjust
2099 __libc_tsd_define arguments.
2100 (__ctype_b_loc, __ctype_toupper_loc, __ctype_tolower_loc): Adjust
2101 __libc_tsd_address arguments. Remove union hack.
2102 * include/rpc/rpc.h (RPC_VARS): Adjust __libc_tsd_define arguments.
2103 * sunrpc/rpc_thread.c (RPC_VARS): Likewise.
2104 (__rpc_thread_destroy, rpc_thread_multi, __rpc_thread_variables):
2105 Adjust __libc_tsd_{set,get} arguments.
2106 * ctype/ctype-info.c (CTYPE_B, CTYPE_TOUPPER, CTYPE_TOLOWER): Adjust
2107 __libc_tsd_define arguments.
2108 * locale/uselocale.c (__uselocale): Adjust __libc_tsd_{set,get}
2109 arguments.
2110 * locale/lc-ctype.c (_nl_postload_ctype): Likewise.
2111 * locale/global-locale.c (__libc_tsd_LOCALE): Adjust type.
2112 (LOCALE): Adjust __libc_tsd_define arguments.
2113 * locale/localeinfo.h (_NL_CURRENT_LOCALE): Adjust __libc_tsd_get
2114 arguments.
2115 (LOCALE): Adjust __libc_tsd_define arguments.
2116 * sysdeps/mach/hurd/malloc-machine.h (MALLOC): Adjust __libc_tsd_define
2117 arguments.
2118 (tsd_setspecific, tsd_getspecific): Adjust __libc_tsd_{set,get}
2119 arguments.
2120
486bdb88
UD
21212008-11-02 Ulrich Drepper <drepper@redhat.com>
2122
2123 * malloc/malloc.c (public_rEALLOc): When new arena is used, copy
2124 really all bytes. Patch by Denys Vlasenko <dvlasenk@redhat.com>.
2125
64647f9a
UD
21262008-11-01 Ulrich Drepper <drepper@redhat.com>
2127
2128 [BZ #6966]
2129 * misc/hsearch_r.c (hsearch_r): Fix secondary hash function.
2130
acd44dbc
UD
21312008-10-24 Joseph Myers <joseph@codesourcery.com>
2132 Ulrich Drepper <drepper@redhat.com>
2133
2134 * math/tgmath.h (__floating_type): Use __builtin_classify_type in
2135 definition for GCC 3.1 and later.
64647f9a 2136
41e25904
UD
21372008-10-31 Jakub Jelinek <jakub@redhat.com>
2138
2139 * elf/dl-tls.c (__tls_get_addr): After calling _dl_update_slotinfo
2140 refetch dtv, as it might have changed.
2141 * elf/Makefile: Add rules to build and run tst-tls18.
2142 * elf/tst-tls18.c: New test.
2143 * elf/tst-tlsmod18a.c: New file.
2144
e148a644 21452008-09-09 Aurelien Jarno <aurelien@aurel32.net>
97f12390 2146
da9c2314 2147 [BZ #6875]
e148a644
UD
2148 * iconvdata/gconv-modules: Add LATIN9 as an alias to ISO-8859-15.
2149
21502008-10-31 Ulrich Drepper <drepper@redhat.com>
97f12390 2151
6daf1a2f
UD
2152 [BZ #6867]
2153 * sysdeps/powerpc/elf/rtld-global-offsets.sym: Fix typo.
2154
6f576bf6
UD
2155 [BZ #6919]
2156 * posix/spawnattr_getschedparam.c (posix_spawnattr_getschedparam):
2157 Fix length of copy operation.
2158
45a8beb5
UD
21592008-10-02 Pierre Habouzit <madcoder@debian.org>
2160
2161 * sysdeps/unix/sysv/linux/eventfd.c (eventfd): Use the eventfd2 syscall
2162 and fix its calling convention.
2163
ad12e635
UD
21642008-10-07 Andreas Schwab <schwab@suse.de>
2165
2166 [BZ #6942]
2167 * resolv/res_send.c (send_vc): Fix last change.
2168 (send_dg): Align here as well.
2169
3cf44918
UD
21702008-10-31 Ulrich Drepper <drepper@redhat.com>
2171
dbb6ab3e
UD
2172 * sysdeps/unix/sysv/linux/ulimit.c (__ulimit): Handle UL_GETFSIZE
2173 return value in case rlimit is RLIM_INFINITY.
2174
2175 [BZ #6947]
2176 * sysdeps/unix/sysv/linux/ulimit.c (__ulimit): Fix return value
2177 for UL_SETFSIZE.
1828d6b0
UD
2178 * resource/Makefile (tests): Add bug-ulimit1.
2179 * resource/bug-ulimit1.c: New file.
dbb6ab3e 2180
a5ff533e
UD
2181 [BZ #6974]
2182 * sunrpc/rpc_main.c (mkfile_output): Properly handle filename
2183 without dot. Properly terminate the string with a null byte.
2184 Based on a patch by Aurelien Jarno <aurelien@aurel32.net>.
2185
4bed549a
UD
2186 [BZ #6980]
2187 * debug/getgroups_chk.c (__getgroups_chk): Return EINVAL error for
2188 negative sizees.
2189 * posix/bits/unistd.h (getgroups): Call __getgroups_chk for
2190 negative __size.
2191
3cf44918
UD
2192 [BZ #6995]
2193 * sysdeps/powerpc/powerpc32/dl-machine.c: Fix typo in message.
2194
21b07d8b
UD
21952008-10-30 Ulrich Drepper <drepper@redhat.com>
2196
332c4465
UD
2197 * grp/initgroups.c (internal_getgrouplist): Don't prematurely
2198 abort if there is no initgroups_dyn function.
2199
21b07d8b
UD
2200 * resolv/res_send.c (send_dg): On timeout, only return nonzero
2201 result if any of the queries really provided an answer.
2202
4caa3fb7
UD
22032008-10-28 Ulrich Drepper <drepper@redhat.com>
2204
2205 * po/lt.po: Update from translation team.
2206
a22c3a0d
UD
22072008-10-26 Ulrich Drepper <drepper@redhat.com>
2208
2209 * po/id.po: Update from translation team.
2210
49685151
UD
22112008-10-24 Ulrich Drepper <drepper@redhat.com>
2212
2213 * resolv/res_query.c (__libc_res_nquery): Add a few casts.
660675de 2214 Fix tests for existence of second reply.
49685151 2215
8d9d5d35
UD
22162008-10-23 Ulrich Drepper <drepper@redhat.com>
2217
2218 * po/id.po: New file.
2219 Contributed by the Indonesian translation team.
2220
208bc836
UD
22212008-10-22 Dmitry V. Levin <ldv@altlinux.org>
2222
2223 * misc/syslog.c (openlog_internal): Fix __have_sock_cloexec
2224 initialization.
2225
60a23f5a
UD
22262008-10-17 Jakub Jelinek <jakub@redhat.com>
2227
2228 * elf/Makefile: Add rules to build and run tst-tls17.
2229 * elf/tst-tls17.c: New test.
2230 * elf/tst-tlsmod17a.c: New file.
2231 * elf/tst-tlsmod17b.c: Likewise.
2232
292eb817
UD
22332008-10-17 Ulrich Drepper <drepper@redhat.com>
2234
2235 * stdlib/divmod_1.c: Use correct type for dummy variable.
2236 * stdlib/mod_1.c: Likewise.
2237
5df2a427
UD
22382008-10-16 Ulrich Drepper <drepper@redhat.com>
2239
2240 * elf/dl-tls.c (_dl_update_slotinfo): Copy all of the initial DTV.
2241
472e5e08
JJ
22422008-10-16 Jakub Jelinek <jakub@redhat.com>
2243
2244 * sysdeps/unix/sysv/linux/sys/signalfd.h (signalfd): Fix __THROW vs.
2245 __nonnull order for C++.
2246 * sysdeps/unix/sysv/linux/alpha/sys/signalfd.h (signalfd): Likewise.
2247 * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h (signalfd): Likewise.
2248
86900abd
RM
22492008-10-01 Daniel Jacobowitz <dan@codesourcery.com>
2250
2251 * stdlib/longlong.h: Update from GCC.
2252
19c10a47
JJ
22532008-10-09 Jakub Jelinek <jakub@redhat.com>
2254 David S. Miller <davem@davemloft.net>
2255
2256 * sysdeps/sparc/sparc64/sparcv9v/memcpy.S: When not USE_BPR,
2257 make sure any registers used with 64-bit 'branch-on-register'
2258 instructions have their top 32-bits clear.
2259 * sysdeps/sparc/sparc64/sparcv9v/memset.S: Likewise.
2260 * sysdeps/sparc/sparc64/sparcv9v2/memcpy.S: Likewise.
2261
2fdde3b9
UD
22622008-09-18 Andreas Schwab <schwab@suse.de>
2263
2264 [BZ #6942]
2265 * resolv/res_send.c (send_vc): Fix use of unaligned address.
f00d47a3 2266 Properly handle partial reads.
2fdde3b9 2267
6ba25fcb
RM
22682008-10-01 Mark Shinwell <shinwell@codesourcery.com>
2269
2270 * elf/elf.h (STO_MIPS_PLT): New.
2271 (R_MIPS_COPY): New.
2272 (R_MIPS_JUMP_SLOT): New.
2273 (R_MIPS_NUM): Redefine to 128.
2274 (DT_MIPS_PLTGOT): New.
2275 (DT_MIPS_RWPLT): New.
2276 (DT_MIPS_NUM): Redefine to 0x35.
2277
97898201
UD
22782008-10-01 Ulrich Drepper <drepper@redhat.com>
2279
2280 * timezone/africa: Update from tzdata2008f.
2281 * timezone/asia: Likewise.
2282 * timezone/australasia: Likewise.
2283 * timezone/europe: Likewise.
2284 * timezone/leapseconds: Likewise.
2285 * timezone/northamerica: Likewise.
2286 * timezone/southamerica: Likewise.
2287 * timezone/zone.tab: Likewise.
2288
3452ded5
UD
22892008-09-30 Ulrich Drepper <drepper@redhat.com>
2290
2291 * nscd/connections.c: Disable use of paccept for now.
2292
54ad9327
UD
22932008-09-29 Ulrich Drepper <drepper@redhat.com>
2294
8ec2550e
UD
2295 * socket/Versions: Remove paccept export for GLIBC_2.9.
2296 * socket/Makefile (routines): Remove paccept.
2297 * socket/sys/socket.h: Remove paccept declaration.
2298
54ad9327
UD
2299 * po/sv.po: Update from translation team.
2300
1c5eba39
UD
23012008-09-22 Deborah S. Townsend <dstownse@us.ibm.com>
2302
2303 * sysdeps/s390/s390-64/s390x-mcount.S: Replace ahi with aghi.
2304 * sysdeps/unix/sysv/linux/s390/s390-64/socket.S: Likewise.
2305
0a26fc4d
UD
23062008-09-16 Ulrich Drepper <drepper@redhat.com>
2307
2308 * dlfcn/dlopen.c (dlopen_doit): Allow __RTLD_SPROF flag.
2309 Patch by Olivier Fourdan <ofourdan@redhat.com>.
2310
2bcaff08
UD
23112008-09-15 Ulrich Drepper <drepper@redhat.com>
2312
2313 * sunrpc/rpc/svc.h: Declare svcfd_create.
2314 Patch by Michael Solberg <msolberg@redhat.com>.
2315
caa60cb9 23162008-09-12 Flavio Leitner <fleitner@redhat.com>
f00d47a3 2317 Ulrich Drepper <drepper@redhat.com>
caa60cb9
UD
2318
2319 * malloc/malloc.c (public_vALLOc): Try other arenas in case
2320 _int_valloc fails.
2321 (public_pVALLOc): Likewise.
2322
6c161112
AJ
23232008-09-02 Andreas Jaeger <aj@suse.de>
2324
2325 * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: Fix last
2326 commit.
2327
0cb269d7
RM
23282008-08-26 Aurelien Jarno <aurelien@aurel32.net>
2329
452034cc 2330 [BZ #6860]
2bcaff08 2331 * hurd/hurd/signal.h (HURD_MSGPORT_RPC): Fix a typo.
0cb269d7 2332
13074b5b
RM
23332008-07-18 Daniel Jacobowitz <dan@codesourcery.com>
2334
2335 * Makefile (check-data): Check data directory in add-ons.
2336 * elf/Makefile (check-data): Likewise.
2337
58801a0e
RM
23382008-08-18 Roland McGrath <roland@redhat.com>
2339
2340 * configure.in (--with-cpu): Check compiler support for -march/-mcpu.
2341 * configure: Regenerated.
2342 * config.make.in (cflags-cpu): New substituted variable.
2343 (with-cpu): Variable removed.
2344 * Makeconfig (+cflags): Use $(cflags-cpu), not $(with-cpu).
2345
7df49c5d
UD
23462008-08-14 Ryan S. Arnold <rsa@us.ibm.com>
2347
2348 [BZ #6845]
2349 * sysdeps/powerpc/fpu/bits/mathinline.h (__signbitl): Copy new
2350 __signbitl definition and __LONG_DOUBLE_128__ guard from:
2351 * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h: Remove as
2352 redundant. Functions which call floating point assembler operations
2353 should go into a sysdeps powerpc/fpu directory.
2354
965805e8
UD
23552008-08-15 Ulrich Drepper <drepper@redhat.com>
2356
2357 * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Define MAP_STACK.
2358 * sysdeps/unix/sysv/linux/i386/bits/mman.h: Likewise.
2359
9cf73ab0
UD
23602008-08-14 Ulrich Drepper <drepper@redhat.com>
2361
62a1ffc6
UD
2362 * sysdeps/x86_64/memset.S: Reduce size of tables for PIC.
2363
9cf73ab0
UD
2364 * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): Undo all
2365 change related to AT_EXECFN. We cannot use that string.
2366 * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Remove
2367 _dl_execfn member.
2368 * elf/dl-support.c: Remove _dl_execfn variable.
2369 (_dl_aux_init): Remove handling of AT_EXECFN.
2370 * elf/dl-sysdep.c (_dl_sysdep_start): Remove handling of AT_EXECFN.
2371 * elf/rtld.c (process_envvars): Remove use of __ASSUME_AT_EXECFN.
2372
1bfa05cf
UD
23732008-08-13 Ulrich Drepper <drepper@redhat.com>
2374
7b3ba2c4
UD
2375 [BZ #6544]
2376 * libio/fmemopen.c: Implement binary mode. In this mode no NUL
2377 byte gets added to writes and seeks from the end use the length of
2378 the buffer and not the currently terminating NUL byte.
2379
1bfa05cf
UD
2380 [BZ #6634]
2381 * login/utmp_file.c (getutent_r_file): Take additional parameter.
2382 Set to true if locking failed.
2383 (getutid_r_file): Adjust caller.
2384 (pututline_file): Likewise. Return NULL in this case.
2385 Patch mostly by halesh.s@gmail.com.
2386
c5671698
UD
23872008-08-12 Ulrich Drepper <drepper@redhat.com>
2388
2389 [BZ #6589]
2390 * sysdeps/unix/sysv/linux/ifaddrs.c (struct sockaddr_ll_max):
2391 Define.
2392 (struct ifaddrs_storage): Use it instead of sockaddr_ll.
2393
4497384e
UD
23942008-08-12 Ryan S. Arnold <rsa@us.ibm.com>
2395
2396 [BZ #6839]
2397 * sysdeps/powerpc/powerpc32/dl-machine.c (CHECK_STATIC_TLS): Remove
2398 macro since it is now available in elf/dynamic-link.h.
2399
675d7111
RM
24002008-08-12 Roland McGrath <roland@frob.com>
2401
2402 * hurd/hurd/signal.h (HURD_MSGPORT_RPC): Avoid -Wparenthesis triggers,
2403 in case used outside of libc.
2404 Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>
2405
8b254432
UD
24062008-08-11 Ulrich Drepper <drepper@redhat.com>
2407
2408 * resolv/res_mkquery.c (res_nmkquery): Call ns_name_compress
2409 directly instead of going through dn_comp.
2410
ac84eeca
RM
24112008-08-11 Aurelien Jarno <aurel32@debian.org>
2412
2413 * sysdeps/mach/i386/machine-lock.h (__spin_unlock, __spin_try_lock):
2414 Fix asm constraints.
2415
f081b451
UD
24162008-08-07 Ulrich Drepper <drepper@redhat.com>
2417
2418 [BZ #6790]
2419 * sysdeps/unix/sysv/linux/bits/in.h (IP_PMTUDISC_PROBE): Define.
2420 (IPV6_PMTUDISC_PROBE): Likewise.
2421
30a4429e
UD
24222008-08-07 Pete Eberlein <eberlein@us.ibm.com>
2423
2424 [BZ #6791]
2425 * sysdeps/unix/sysv/linux/powerpc/bits/mman.h (PROT_SAO): Define.
2426
1642331d 24272008-08-01 Steven Munroe <sjmunroe@us.ibm.com>
626f68ff 2428 Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
1642331d
UD
2429
2430 [BZ #6817]
2431 * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags):
2432 Added the members 'vsx' and 'arch_2_06'.
2433 (_dl_powerpc_platforms): Add the member 'power7'.
2434 * sysdeps/powerpc/dl-procinfo.h: Modify _DL_HWCAP_FIRST
2435 to reflect the changes required by VSX and ISA 2.06.
2436 Modify _DL_PLATFORMS_COUNT to reflect the addition of
2437 'power7'.
2438 Defined PPC_PLATFORM_POWER7.
2439 (_dl_string_platform): Add support for POWER7.
2440 * sysdeps/powerpc/sysdep.h: Define bit masks for VSX
2441 capability and ISA 2.06.
2442
48b94661
UD
24432008-08-07 Ulrich Drepper <drepper@redhat.com>
2444
2445 [BZ #6824]
2446 * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h: Use correct
2447 macro to detect use of 128 bit long double.
2448 Patch by Ryan S. Arnold <rsa@us.ibm.com>.
2449
9523fd28
UD
24502008-08-05 Ulrich Drepper <drepper@redhat.com>
2451
9c0cb150
UD
2452 * scripts/gen-as-const.awk: Use 32-bit values on 32-bit platforms.
2453
46aea5cb 2454 [BZ #5794]
9523fd28
UD
2455 * sysdeps/i386/fpu/s_expm1l.S: Simply use exp implementation for large
2456 parameters.
2457 * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
2458 Patch by Denys Vlasenko <dvlasenk@redhat.com>.
2459
c400c931
UD
24602008-08-03 Ulrich Drepper <drepper@redhat.com>
2461
2462 * nscd/connections.c (main_loop_poll): Pass a buffer which is
2463 guaranteed to be large enough to read inotify event. Ignore
2464 EAGAIN error. Better error message. Add branch predicition.
2465 (main_loop_epoll): Likewise.
2466
3f39adac
RM
24672008-08-02 Roland McGrath <roland@frob.com>
2468
2469 * sysdeps/mach/i386/machine-lock.h (__spin_unlock, __spin_try_lock):
2470 Add memory clobbers.
2471
3501542f
UD
24722008-08-02 Ulrich Drepper <drepper@redhat.com>
2473
48b22986
UD
2474 * manual/arith.texi: Avoid @strong{Note:}.
2475 * manual/creature.texi: Likewise.
2476 * manual/filesys.texi: Likewise.
2477 * manual/math.texi: Likewise.
2478 * manual/memory.texi: Likewise.
2479 * manual/resource.texi: Likewise.
2480 * manual/syslog.texi: Likewise.
2481 * manual/time.texi: Likewise.
2482
3501542f
UD
2483 * sysdeps/posix/clock_getres.c (hp_timing_getres): Remove inline
2484 to prevent warning.
2485
17756df3
UD
24862008-08-01 Ulrich Drepper <drepper@redhat.com>
2487
ebcc1f4d
UD
2488 * sysdeps/unix/sysv/linux/Versions: Fix changes due to old patch for
2489 new epoll_create1 interface.
2490 * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
2491 * sysdeps/unix/sysv/linux/sys/epoll.h: Likewise.
2492 * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
2493
144bfa86
UD
2494 * include/arpa/nameser.h (NS_GET16): Use const pointer.
2495 (NS_GET32): Likewise.
2496
7e1b29c6
UD
2497 * sysdeps/unix/sysv/linux/kernel-features.h: s390 has the new
2498 syscalls, too.
2499
42fa1f67
UD
2500 * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): We cannot
2501 use the AT_EXECFN value if it is no absolute path.
2502 * sysdeps/unix/sysv/linux/kernel-features.h: Never define
2503 __ASSUME_AT_EXECFN.
2504
cd5743fd
UD
2505 * Versions.def: Add GLIBC_2.9 to libresolv.
2506 * include/resolv.h: Remove hidden proto declarations for __ns_*
2507 functions. Add them for __dn_count_labels and __p_secstodate.
2508 * include/arpa/nameser.h: Add a number of hidden proto declarations.
2509 Define ns_msg_getflags macro here.
2510 * resolv/res_debug.c: Add hidden definition for __dn_count_labels
2511 and __p_secstodate.
2512 * resolv/Versions: Export functions from <arpa/nameser.h> from
2513 libresolv in version GLIBC_2.9.
2514 * resolv/ns_name.c: Integrate changes from bind 9.5.0. Add necessary
2515 hidden definitions.
2516 * resolv/ns_netint.c: Likewise.
2517 * resolv/ns_parse.c: Likewise.
2518 * resolv/ns_print.c: Likewise.
2519 * resolv/ns_samedomain.c: Likewise.
2520 * resolv/ns_ttl.c: Likewise.
2521 * resolv/arpa/nameser_compat.h: Likewise.
2522 * resolv/arpa/nameser.h: Likewise. Remove macros which redirect
2523 function calls.
2524 * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Use __ns_get16
2525 instead of ns_get16.
2526 * resolv/nss_dns/dns-host.c (getanswer_r): Use __ns_get16 and
2527 __ns_get32 instead of ns_get16 and ns_get32 respectively.
2528 (gaih_getanswer_slice): Likewise.
2529 * resolv/Makefile (libresolv-routines): Add ns_date.
2530 * resolv/ns_date.c: New file.
2531
17756df3
UD
2532 * elf/Makefile (check-localplt.out): Also check libresolv and
2533 libcrypt.
2534
46bc5d43
UD
25352008-07-31 Ulrich Drepper <drepper@redhat.com>
2536
2537 * sysdeps/unix/sysv/linux/kernel-features.h: Define
2538 __ASSUME_O_CLOEXEC.
2539
a707cff6
UD
25402008-07-30 Ulrich Drepper <drepper@redhat.com>
2541
3c227386
UD
2542 * sysdeps/posix/getaddrinfo.c (gaih_inet): Raise size of initial
2543 buffer passed to NSS functions.
2544
9523fd28 2545 * nscd/connections.c (nscd_init): Typo in preprocessor directive.
bd7f4857
UD
2546
2547 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PACCEPT):
2548 Define.
2549
a707cff6
UD
2550 * misc/syslog.c (openlog_internal): Fix compile problem.
2551
0424d007
RM
25522008-07-28 Roland McGrath <roland@redhat.com>
2553
2554 * elf/dl-sysdep.c (_dl_show_auxv): Add AT_EXECFN to the table.
2555
b7da31a1
UD
25562008-07-28 Ulrich Drepper <drepper@redhat.com>
2557
300ea0ad
UD
2558 * io/ftw.c (add_object): Remove inline to avoid warning.
2559
d6173baa
UD
2560 * sysdeps/unix/sysv/linux/paccept.c: Fix compile problem.
2561
b7da31a1
UD
2562 * resolv/res_send.c (__libc_res_nsend): Take additional parameter.
2563 Use it instead of locally defined resplen2 variable.
2564 (res_nsend): Adjust for __libc_res_nsend interface change.
2565 (send_vc): Initialize *resplen2 if necessary. Read length of
2566 package into an appropriately aligned variable. Store converted length
2567 in new variable and use it appropriately.
2568 Add branch prediction help.
2569 * resolv/res_query.c (__libc_res_nquery): Take additional parameter
2570 and pass it on to __libc_res_nsend. Adjust all callers.
2571 (__libc_res_nsearch): Likewise.
2572 (__libc_res_nqeurydomain): Likewise.
2573 * resolv/nss_dns/dns-host.c: Adjust for __libc_res_nsearch interface
2574 change.
2575 (_nss_dns_gethostbyname4): Don't unconditionally allocate tmp array.
2576 Define resplen2 variable and pass it to __libc_res_nsearch and then
2577 to gaih_getanswer.
2578 (getanswer_r): In case of incorrect DNS data don't overread buffer.
2579 Add branch prediction.
2580 (gaih_getanswer_slice): Likewise. Check for invalid data types.
2581 (gaih_getanswer): Don't decode second slice if first one failed due
2582 to a too small buffer. Don't let not found status of second
2583 decoder shadow results of the first.
2584 * resolv/gethnamaddr.c (gethostbyname2): Adjust for __libc_res_nsearch
2585 and __libc_res_nquery interface changes
2586 (gethostbyaddr): Adjust for __libc_res_nquery interface change.
2587 * include/resolv.h: Adjust prototypes for __libc_res_nquery,
2588 __libc_res_nsearch, and __libc_res_nsend.
2589 * resolv/nss_dns/dns-canon.c: Adjust for __libc_res_nquery interface
2590 change.
2591 * resolv/nss_dns/dns-network.c: Adjust for __libc_res_nquery and
2592 __libc_res_nsearch interface changes.
2593
11ed3eae
UD
25942008-07-27 Ulrich Drepper <drepper@redhat.com>
2595
372aece0
UD
2596 * libio/iopopen.c (_IO_new_proc_open): Remove unnecessary volatile.
2597
e038616f
UD
2598 * posix/wordexp.c (exec_comm): Use pipe2 if possible to create
2599 file descriptors with close-on-exec set.
2600 (exec_comm_child): Fix the case where the write end of the pipe is
2601 STDOUT_FILENO already. In case it is, clear close-on-exec.
2602
d6e0c2a6
UD
2603 * sysdeps/unix/sysv/linux/syscalls.list: Add __pipe2 alias.
2604 * io/pipe2.c: Likewise.
2605 * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_PIPE2
2606 instead of __ASSUME_PACCEPT.
2607 * include/unistd.h: Declare __have_pipe2.
2608 * libio/iopopen.c: Implement "e" flag.
2609 * libio/Makefile (tests): Add tst-popen1.
2610 * libio/tst-popen1.c: New file.
2611
11ed3eae
UD
2612 * sysdeps/unix/sysv/linux/bits/socket.h: Define PF_ISDN and AF_ISDN.
2613 * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
2614
7438a80d
UD
26152008-07-26 Ulrich Drepper <drepper@redhat.com>
2616
c4a710b6
UD
2617 [BZ #6771]
2618 * libio/fileops.c (_IO_new_file_attach): Preserve errno around
2619 success call of _IO_SEEKOFF or calls which failed because the
2620 descriptor is for a pipe.
2621
31f3b159
UD
2622 * sunrpc/key_call.c (getkeyserv_handle): Use FD_CLOEXEC instead of
2623 magic number.
2624
c0216dfc
UD
2625 * misc/syslog.c (openlog_internal): Use SOCK_CLOEXEC if possible.
2626
72112b0c
UD
2627 * malloc/mtrace.c (mtrace): Use 'e' flag in fopen call. Drop
2628 F_SETFD use if we know fopen set the flag.
2629
7438a80d
UD
2630 * login/utmp_file.c (setutent_file): Minor optimization in case
2631 O_CLOEXEC is available.
2632
7b91359b
UD
26332008-07-24 Tom "spot" Callaway <tcallawa@redhat.com>
2634
2635 * Makeconfig: Define pie-ccflag and PIE-ccflag variables.
2636 * elf/Makefile: Use pie-ccflag variable.
2637 * nscd/Makefile: Likewise.
2638 * sysdeps/sparc/Makefile: Set $(pie-ccflag) to -fPIE.
2639
4057dc45
UD
26402008-07-21 Andreas Krebbel <krebbel1@de.ibm.com>
2641
e7135e24 2642 [BZ #6724]
4057dc45
UD
2643 * Versions.def: Add GLIBC_2.9 version tag for libutil.
2644 * sysdeps/unix/sysv/linux/s390/bits/utmp.h: Copy of
2645 gnu/bits/utmp.h. Check for __WORDSIZE_COMPAT32 removed.
2646 * sysdeps/unix/sysv/linux/s390/bits/utmpx.h: Copy of
2647 gnu/bits/utmpx.h. Check for __WORDSIZE_COMPAT32 removed.
2648 * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Add new files
2649 utmp32, utmpx32 and login32.
2650 * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Add 2.9
2651 versions of struct utmp functions to libc and libutil.
2652 * sysdeps/unix/sysv/linux/s390/s390-32/utmp-compat.h: New file.
2653 * sysdeps/unix/sysv/linux/s390/s390-32/getutent.c: New file.
2654 * sysdeps/unix/sysv/linux/s390/s390-32/getutent_r.c: New file.
2655 * sysdeps/unix/sysv/linux/s390/s390-32/getutid.c: New file.
2656 * sysdeps/unix/sysv/linux/s390/s390-32/getutid_r.c: New file.
2657 * sysdeps/unix/sysv/linux/s390/s390-32/getutline.c: New file.
2658 * sysdeps/unix/sysv/linux/s390/s390-32/getutline_r.c: New file.
2659 * sysdeps/unix/sysv/linux/s390/s390-32/getutmp.c: New file.
2660 * sysdeps/unix/sysv/linux/s390/s390-32/getutxent.c: New file.
2661 * sysdeps/unix/sysv/linux/s390/s390-32/getutxid.c: New file.
2662 * sysdeps/unix/sysv/linux/s390/s390-32/getutxline.c: New file.
2663 * sysdeps/unix/sysv/linux/s390/s390-32/login.c: New file.
2664 * sysdeps/unix/sysv/linux/s390/s390-32/login32.c: New file.
2665 * sysdeps/unix/sysv/linux/s390/s390-32/pututxline.c: New file.
2666 * sysdeps/unix/sysv/linux/s390/s390-32/updwtmp.c: New file.
2667 * sysdeps/unix/sysv/linux/s390/s390-32/updwtmpx.c: New file.
2668 * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: New file.
2669 * sysdeps/unix/sysv/linux/s390/s390-32/utmp32.c: New file.
2670 * sysdeps/unix/sysv/linux/s390/s390-32/utmp32.h: New file.
2671 * sysdeps/unix/sysv/linux/s390/s390-32/utmpx-convert.h: New file.
2672 * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.c: New file.
2673 * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: New file.
2674
ff0bf753
UD
26752008-07-26 Ulrich Drepper <drepper@redhat.com>
2676
619cc2f6
UD
2677 * scripts/gen-as-const.awk: Generate more widely usable code by
2678 using 64-bit arithmetic.
2679
1311b164 2680 * stdio-common/printf_fp.c (___printf_fp): Give wide outout code
3f414923 2681 the same treatment as narrow output code in last patch.
1311b164 2682
ff0bf753
UD
2683 * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Namespace cleanup.
2684
3f414923 2685 [BZ #6763]
ff0bf753
UD
2686 * elf/dl-load.c (local_strdup): Remove inline.
2687 (_dl_map_object_from_fd): Don't allocate l_symbolic_searchlist.r_list.
2688 * elf/dl-object.c (_dl_new_object): Allocate symbolic searchlist as
2689 part of the object.
2690
2691 * sysdeps/unix/sysv/linux/dl-origin.c: Add const to avoid warning.
2692
8ccf22f9
UD
26932008-07-25 Ulrich Drepper <drepper@redhat.com>
2694
bdd24a30
UD
2695 * sysdeps/unix/sysv/linux/kernel-features.h: IA-64 and SPARC have
2696 the new syscalls, too.
b5c0b5e4 2697
b41f1d14
UD
2698 * sysdeps/i386/i686/memcmp.S: Fix unwind information.
2699 Reported by Paul Pluzhnikov <ppluzhnikov@google.com>.
2700
3703468e
UD
2701 [BZ #6698]
2702 * stdio-common/_i18n_number.h (_i18n_number_rewrite): Take additional
2703 parameter for end of buffer. If temporary copy is too large use
2704 malloc.
2705 * stdio-common/vfprintf.c: Adjust for _i18n_number_rewrite
2706 interface change.
2707 * stdio-common/printf_fp.c (__printf_fp): Likewise.. Account for
2708 string rewrite when allocating buffer.
2709
bb0277bf
UD
2710 * sysdeps/unix/sysv/linux/kernel-features.h: PPC has the new
2711 syscalls, too.
2712
9dd84772
UD
2713 * nscd/connections.c (nscd_init): Clean up fcntl call.
2714
c418b1ba
UD
2715 * nscd/nscd_helper.c (open_socket): Use SOCK_CLOEXEC and
2716 SOCK_NONBLOCK if possible.
2717
b206d8b1
UD
2718 * sysdeps/unix/sysv/linux/opensock.c (__opensock): Use
2719 SOCK_CLOEXEC if available.
2720
8ccf22f9
UD
2721 * include/rpc/clnt.h: Declare __libc_clntudp_bufcreate and
2722 __libc_clntudp_bufcreate_internal.
2723 * include/sys/socket.h: Declare __have_sock_cloexec.
2724 * socket/Makefile (aux): Add have_sock_cloexec.
2725 * socket/have_sock_cloexec.c: New file.
2726 * sunrpc/clnt_udp.h (clntudp_bufcreate): Now a wrapper around
2727 __libc_clntudp_bufcreate.
2728 (__libc_clntudp_bufcreate): Former implementation of clntudp_bufcreate
2729 which takes an additional parameter. Create socket with non-blocking
2730 mode and close-on-exec flag set, if wanted.
2731 * sunrpc/Versions: Export __libc_clntudp_bufcreate@GLIBC_PRIVATE.
2732 * nis/ypclnt.c (yp_bind_client_create): Use __libc_clntpudp_bufcreate
2733 instead of clntudp_create. The socket has already the close-on-exec
2734 flag set if SOCK_CLOEXEC is defined.
2735
579cdf5a
UD
27362008-07-24 Ulrich Drepper <drepper@redhat.com>
2737
3ff2c948
UD
2738 * sysdeps/unix/sysv/linux/kernel-features.h: Define
2739 __ASSUME_PACCEPT, __ASSUME_IN_NONBLOCK, and __ASSUME_PACCEPT if
2740 appropriate.
2741 * nscd/connections.c: Avoid fcntl calls to set close-on-exec flag and
2742 non-blocking mode by using socket, paccept, and inotify_init1.
2743
bdcebfc4
UD
2744 * Versions.def (glibc): Add GLIBC_2.9.
2745 * io/Makefile (routines): Add dup3 and pipe2.
2746 * io/Versions [glibc] (GLIBC_2.9): Add dup3 and pipe2.
2747 * io/dup3.c: New file.
2748 * io/pipe2.c: New file.
2749 * posix/unistd.h: Declare dup3 and pipe2.
2750 * socket/Makefile (routines): Add paccept.
2751 * socket/Versions [glibc] (GLIBC_2.9): Add paccept.
2752 * socket/paccept.c: New file.
2753 * socket/sys/socket.h: Declare paccept.
2754 * sysdeps/unix/syscalls.list: Add entry for dup3.
2755 * sysdeps/unix/sysv/linux/Versions [glibc] (GLIBC_2.9): Add
2756 epoll_create2 and inotify_init1.
2757 * sysdeps/unix/sysv/linux/eventfd.c: Use eventfd1 syscall if possible.
2758 * sysdeps/unix/sysv/linux/paccept.c: New file.
2759 * sysdeps/unix/sysv/linux/signalfd.c: Use signalfd4 syscall if
2760 possible.
2761 * sysdeps/unix/sysv/linux/socketcall.h: Add SOCKOP_paccept.
2762 * sysdeps/unix/sysv/linux/syscalls.list: Add epoll_create2,
2763 inotify_init1, and pipe2 entries.
2764 * sysdeps/unix/sysv/linux/alpha/sys/epoll.h: New file.
2765 * sysdeps/unix/sysv/linux/alpha/sys/eventfd.h: New file.
2766 * sysdeps/unix/sysv/linux/alpha/sys/inotify.h: New file.
2767 * sysdeps/unix/sysv/linux/alpha/sys/signalfd.h: New file.
2768 * sysdeps/unix/sysv/linux/alpha/sys/timerfd.h: New file.
2769 * sysdeps/unix/sysv/linux/bits/socket.h: Define SOCK_CLOEXEC and
2770 SOCK_NONBLOCK.
2771 * sysdeps/unix/sysv/linux/i386/paccept.S: New file.
2772 * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: New file.
2773 * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: New file.
2774 * sysdeps/unix/sysv/linux/sparc/sys/inotify.h: New file.
2775 * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h: New file.
2776 * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: New file.
2777 * sysdeps/unix/sysv/linux/sparc/bits/socket.h: New file.
2778 * sysdeps/unix/sysv/linux/sys/epoll.h: Define EPOLL_CLOEXEC and
2779 EPOLL_NONBLOCK. Declare epoll_create2.
2780 * sysdeps/unix/sysv/linux/sys/eventfd.h: Define EFD_CLOEXEC and
2781 EFD_NONBLOCK.
2782 * sysdeps/unix/sysv/linux/sys/inotify.h: Define IN_CLOEXEC and
2783 IN_NONBLOCK. Declare inotify_init1.
2784 * sysdeps/unix/sysv/linux/sys/signalfd.h: Define SFD_CLOEXEC and
2785 SFD_NONBLOCK.
2786 * sysdeps/unix/sysv/linux/sys/timerfd.h: Define TFD_CLOEXEC and
2787 TFD_NONBLOCK.
2788
0e077a7e
UD
2789 * elf/elf.h: Define AT_EXECFN.
2790 * elf/rtld.c [!__ASSUME_AT_EXECFN] (process_envvars): Don't handle
2791 LD_ORIGIN_PATH.
2792 * elf/dl-sysdep.c (_dl_sysdep_start): Handle AT_EXECFN.
2793 * elf/dl-support.c: Define _dl_execfn. Don't define _dl_origin_path
2794 if __ASSUME_AT_EXECFN is defined.
2795 (_dl_aux_init): Handle AT_EXECFN.
2796 * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_AT_EXECFN
2797 for 2.6.27 and up.
2798 * sysdeps/generic/ldsodefs.h (rtld_global_ro): Add _dl_execfn.
2799 Don't define _dl_origin_path if __ASSUME_AT_EXECFN is defined.
2800 * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): Use
2801 _dl_execfn if available and avoid compatibility code if
2802 __ASSUME_AT_EXECFN is defined.
2803
579cdf5a
UD
2804 * sysdeps/unix/sysv/linux/dl-sysdep.h: Don't declare
2805 _dl_discover_osversion only for older kernels.
2806
7385c04c
RM
28072008-07-22 Roland McGrath <roland@frob.com>
2808
2809 * hurd/fd-read.c (_hurd_fd_read): Fix last change.
2810
8a26088d
RM
28112008-07-21 Roland McGrath <roland@frob.com>
2812
2813 * hurd/fd-read.c (_hurd_fd_read): Return EGRATUITOUS if the server
2814 returned too much data out of line.
2815
9f558b80
UD
28162008-07-20 Ulrich Drepper <drepper@redhat.com>
2817
2e79213a
UD
2818 * locale/setlocale.c (setname): Remove inline to avoid compiler
2819 warning.
2820
579cdf5a 2821 [BZ #6712]
9f558b80
UD
2822 * locale/setlocale.c (setlocale): Take the setlocale lock earlier.
2823
9667f97d
UD
28242008-07-15 Ulrich Drepper <drepper@redhat.com>
2825
2486b496
UD
2826 * stdio-common/vfprintf.c (_IO_helper_overflow): In case _IO_sputn
2827 doesn't manage to write anything, fail.
2828
9667f97d
UD
2829 * malloc/hooks.c (__malloc_check_init): Remove printf.
2830
6d4c073b
RM
28312008-07-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
2832
2833 * sysdeps/mach/hurd/bits/fcntl.h: Include <sys/types.h>.
2834
b7432416
UD
28352008-07-12 Ulrich Drepper <drepper@redhat.com>
2836
2837 * nscd/connections.c (main_loop_poll): Fix handling of read errors
2838 from inotify.
2839 (main_loop_epoll): Likewise.
2840
44abc397
UD
28412008-07-09 Ulrich Drepper <drepper@redhat.com>
2842
835113c6
UD
2843 * resolv/res_send.c: Remove unnecessary res_pquery prototype.
2844
fdc769f6
UD
2845 * resolv/res_query.c (__libc_res_nquery): Issue debug message only
2846 if DEBUG is defined.
2847
44abc397
UD
2848 * resolv/res_query.c (__libc_res_nquery): Align buffer for T_AAAA
2849 query. Adjust buffer size computation for padding.
2850
38dc8fad
UD
28512008-07-08 Ulrich Drepper <drepper@redhat.com>
2852
75684bd7
UD
2853 * stdio-common/Makefile: Add rules to build and run tst-setvbuf1.
2854 * stdio-common/tst-setvbuf1.c: New file.
2855 * stdio-common/tst-setvbuf1.expect: New file.
2856
38dc8fad
UD
2857 [BZ #6719]
2858 * libio/iosetvbuf.c (_IO_setvbuf): Correctly clear buffering flags
2859 when selecting fully-buffered stream.
2860 Patch by Wang Xin <wxinee@gmail.com>.
2861
107f4ac2
RM
28622008-07-06 Samuel Thibault <samuel.thibault@ens-lyon.org>
2863
2864 * sysdeps/mach/hurd/open.c: Include <stdio.h>.
2865 (__open_2): New function.
2866 (__open64_2): New alias to __open_2.
2867 * sysdeps/mach/hurd/openat.c: Include <stdio.h>.
2868 (__openat_2): New function.
2869 (__openat64_2): New alias to __openat_2.
2870
45ec3e79
UD
28712008-07-06 Ulrich Drepper <drepper@redhat.com>
2872
2873 [BZ #6723]
2874 * time/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
2875
0a583b54
RM
28762008-07-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
2877
2878 * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Define MSG_NOSIGNAL.
2879 * hurd/hurd/fd.h (__hurd_sockfail): Add extern inline function.
2880 * sysdeps/mach/hurd/recv.c (__recv): Use __hurd_sockfail instead of
2881 __hurd_dfail.
2882 * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Likewise.
2883 * sysdeps/mach/hurd/recvmsg.c (__recvmsg): Likewise.
2884 * sysdeps/mach/hurd/send.c (__send): Likewise.
2885 * sysdeps/mach/hurd/sendto.c (__sendfrom): Likewise.
2886 * sysdeps/mach/hurd/sendmsg.c (__sendmsg): Likewise.
2887
d5a0160b
RM
28882008-03-04 Samuel Thibault <samuel.thibault@ens-lyon.org>
2889
2890 * sysdeps/mach/hurd/recv.c (__recv): Initialize NPORTS.
2891 * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Likewise.
2892 * sysdeps/mach/hurd/recvmsg.c (__recvmsg): Likewise.
2893 * hurd/fd-read.c (_hurd_fd_read): Initialize NREAD.
2894 * hurd/get-host.c (_hurd_get_host_config): Likewise.
2895 * sysdeps/mach/hurd/dl-sysdep.c (__libc_read): Likewise.
2896
80922a99
UD
28972008-06-27 Ulrich Drepper <drepper@redhat.com>
2898
2899 [BZ #6657]
2900 * time/strptime_l.c: Don't clear s.era_cnt after successful match
2901 of %EY.
2902 Patch by Petr Baudis.
2903
34ca2ff7
UD
29042008-06-26 Ulrich Drepper <drepper@redhat.com>
2905
5ee0f5e2 2906 * resolv/res_debug.c (__p_type_syms): Add ns_t_dname entry.
34ca2ff7
UD
2907 Patch by Peter Jones <pjones@redhat.com>.
2908
104426b6
UD
29092008-06-25 Ulrich Drepper <drepper@redhat.com>
2910
2911 [BZ #6654]
2912 * stdlib/canonicalize.c (__realpath): readlink can write too much
2913 into the buffer on platforms without PATH_MAX.
2914
7166d23f
UD
29152008-06-17 Carlos O'Donell <carlos@codesourcery.com>
2916
4cb8e687 2917 [BZ #6653]
7166d23f
UD
2918 * posix/tst-regex.c (main): Rename to...
2919 (do_test): ... this. Remove cmdline option processing.
2920 (TIMEOUT): Define.
2921 (TEST_FUNCTION): Define.
2922 (CMDLINE_OPTIONS): Define.
2923
974069d8
UD
29242008-06-25 Ulrich Drepper <drepper@redhat.com>
2925
2926 [BZ #5210]
2927 * configure.in: Add -Werror to -fstack-protector test to catch
2928 unsupported architectures.
2929 Patch by Gilles Esponasse <g.esp@free.fr>.
2930
cefa2dd3
UD
29312008-06-17 Joseph Myers <joseph@codesourcery.com>
2932
2933 * stdlib/tst-setcontext.c: Set back_in_main before exit if
2934 getcontext returns ENOSYS.
2935
c00d1128
UD
29362008-06-18 Ulrich Drepper <drepper@redhat.com>
2937
2938 * nscd/connections.c (main_loop_poll): Fix test for read error.
2939 (main_loop_epoll): Likewise.
2940
a0edbb48
UD
29412008-06-13 Ulrich Drepper <drepper@redhat.com>
2942
d0a1ae94
UD
2943 * sysdeps/posix/getaddrinfo.c: Move _res_hconf_init call to a
2944 better place so it is not called when nscd is used.
2945
a0edbb48
UD
2946 * nscd/connections.c: Also recognize and handle changes to the
2947 resolver configuration file.
2948
46f70b3c
UD
29492008-06-12 Ulrich Drepper <drepper@redhat.com>
2950
5bcc6c0f
UD
2951 * time/strftime.c: Pass reference to tzset_called around to handle
2952 recursive calls.
2953
2954 [BZ #6612]
2955 * time/strftime.c (__strftime_internal): Call tzset() only
2956 when printing timezone-dependent values.
2957 Based on a patch by Petr Baudis <pasky@suse.cz>.
2958
f854efd7
UD
2959 * resolv/nss_dns/dns-host.c (gaih_getanswer): Don't
2960 unconditionally use second gaih_getanswer_slice result.
2961
46f70b3c
UD
2962 * sysdeps/posix/getaddrinfo.c (gai_inet): Remove unnecessary test.
2963 (getaddrinfo): RES must always be non-NULL.
2964
9ea8bfec
UD
29652008-06-12 Jakub Jelinek <jakub@redhat.com>
2966
2967 * sysdeps/powerpc/powerpc64/fpu/s_llround.S (__llround): Avoid using
2968 cr[34] registers.
2969 * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S (__llroundf): Likewise.
2970 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S (__llround):
2971 Likewise.
2972 * sysdeps/powerpc/powerpc32/fpu/s_lround.S (__lround): Avoid using cr3
2973 register.
2974
5a337776
UD
29752008-06-12 Ulrich Drepper <drepper@redhat.com>
2976
5228ba2f
UD
2977 * nscd/nscd.h (struct database_dyn): Add inotify_descr and clear_cache
2978 fields.
2979 * nscd/connections.c (inotify_fd): New variable.
2980 (nscd_init): Try to open an inotify descriptor.
2981 If successful, watch files for databases using inotify instead of
2982 having prune threads stat the files.
2983 (nscd_run_prune): Recognize clear_cache flag being set and call
2984 prune_cache appropriately.
2985 (main_loop_poll): Add inotify descriptor to wait set and handle the
2986 reported changes.
2987 (main_loop_epoll): Likewise.
2988 * nscd/cache.c (prune_cache): Don't stat files for databases if
2989 inotify is used.
2990 * sysdeps/unix/sysv/linux/Makefile [subdir=nscd]
2991 (CFLAGS-connections.c): Add -DHAVE_INOTIFY.
2992
5a337776
UD
2993 * nscd/grpcache.c (cache_addgr): Correctly compute size of
2994 fixed-size portion of the record.
2995 * nscd/servicescache.c (cache_addserv): Likewise.
2996 * nscd/pwdcache.c (cache_addpw): Likewise.
2997 * nscd/initgrcache.c (addinitgroupsX): Likewise.
2998
9ad58cc3
UD
29992008-06-11 Ulrich Drepper <drepper@redhat.com>
3000
3001 * nscd/mem.c (gc): Initialize obstack earlier so that if we jump
3002 out we don't use uninitialized memory.
3003
3004 * nscd/hstcache.c (cache_addhst): Send correct number of bytes to
3005 the client.
3006
c1283552
UD
30072008-06-10 Ulrich Drepper <drepper@redhat.com>
3008
3009 * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): Also log and
3010 ignore T_DNAME messages.
3011 * resolv/arpa/nameser_compat.h (T_DNAME): Define.
3012
eef8a803
JJ
30132008-06-05 Jakub Jelinek <jakub@redhat.com>
3014
3015 * misc/regexp.h (compile): Use __REPB_PREFIX macro.
3016 Avoid segfault if first GETC returns eof/'\0'/'\n'.
3017
ee78670e
JJ
30182008-06-03 Jakub Jelinek <jakub@redhat.com>
3019
3020 * nscd/nscd_getserv_r.c (__nscd_getservbyport_r): Pass cp
3021 instead of portstr to nscd_getserv_r. Patch by
3022 Roman Kagan <rkagan@mail.ru>.
3023
62605cbf
UD
30242008-05-26 Jim Meyering <meyering@redhat.com>
3025
10966640 3026 Remove more useless "if" tests before "free".
62605cbf
UD
3027 * include/inline-hashtab.h (htab_delete): Likewise.
3028 * libio/freopen.c (freopen): Likewise.
3029 * libio/freopen64.c (freopen64): Likewise.
3030 * locale/programs/ld-collate.c (collate_read): Likewise.
3031 * misc/fstab.c (libc_freeres_fn): Likewise.
3032 * posix/glob.c (globfree): Likewise.
3033
f63abf58
UD
30342008-05-24 Ulrich Drepper <drepper@redhat.com>
3035
3036 * string/Makefile (strop-tests): Add memmem.
3037 * string/test-memmem.c: New file.
3038 * string/test-string.h (BUF1PAGES): Define to 1 if undefined.
3039 (test_init): Size buf1 according to BUF1PAGES.
3040
ad8a5511
JJ
30412008-05-24 Jakub Jelinek <jakub@redhat.com>
3042
3043 * libio/stdio.h (vscanf): Fix -std=c99 redirect.
3044 * stdio-common/Makefile (tests): Add scanf16 and scanf17.
3045 (CFLAGS-scanf17.c): New.
3046 * stdio-common/scanf14.c (main): Add fscanf and scanf tests.
3047 * stdio-common/scanf15.c (main): Likewise.
f63abf58
UD
3048 * stdio-common/scanf16.c: New file.
3049 * stdio-common/scanf17.c: New file.
ad8a5511 3050
e2003883
UD
30512008-05-24 Ulrich Drepper <drepper@redhat.com>
3052
3053 * resolv/res_send.c (send_dg): If we already have one of two
b5ba2c79 3054 answers and the server reports SERVFAIL, NOTIMP, or REFUSED, then
e2003883
UD
3055 use the one answer insted of failing.
3056
acbb9873
UD
30572008-02-20 Ryan S. Arnold <rsa@us.ibm.com>
3058
3059 * math/libm-test.inc (exp_test): Exclude expl(1000.0L) from
3060 being executed on PowerPC as the expected result exceeds IBM
3061 long double 128 __LDBL_MAX__.
3062
e85f1d6a
RM
30632008-05-21 Roland McGrath <roland@redhat.com>
3064
3065 * shlib-versions (sparc.*-.*-.*, sparc64.*-.*-.*): Add ABI lines.
3066
3067 * Makefile (check-data): Use $(abi-name) before other guesses.
3068 Look in $(add-ons) dirs before scripts/data/.
3069 * elf/Makefile (check-data): Likewise.
3070
3071 * scripts/soversions.awk: Grok ABI line.
3072 * Makeconfig ($(common-objpfx)soversions.mk): Likewise.
3073 Emit definition for abi-name variable.
3074
d8e763c6
UD
30752008-05-21 Ulrich Drepper <drepper@redhat.com>
3076
e92799fc 3077 * string/endian.h: Define new fixed-size hto* and *toh macros only
e85f1d6a 3078 if [__USE_BSD].
e92799fc 3079
d8e763c6
UD
3080 * iconvdata/Depend: Add localedata.
3081
009ef333
RM
30822008-05-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
3083
3084 * bits/termios.h (ONLCR): Define under [__USE_XOPEN] too.
3085
86746abb
JJ
30862008-05-08 David S. Miller <davem@davemloft.net>
3087
3088 * sysdeps/unix/sysv/linux/sparc/sparc32/setcontext.S: Use
3089 HIDDEN_JUMPTARGET.
3090 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
3091 (__SYSCALL_CLOBBERS): Remove %g* registers.
3092 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
3093 (__SYSCALL_CLOBBERS): Likewise.
3094 * scripts/data/localplt-sparc-linux-gnu.data: New file.
f63abf58 3095 * scripts/data/localplt-sparc64-linux-gnu.data: New file.
86746abb 3096
5e6f34c2
JJ
30972008-05-21 Jakub Jelinek <jakub@redhat.com>
3098
3099 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
3100 (CALL_ERRNO_LOCATION): Define.
3101 (__SYSCALL_STRING, __CLONE_SYSCALL_STRING): Use it.
3102 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
3103 (CALL_ERRNO_LOCATION): Define.
3104 (__SYSCALL_STRING, __CLONE_SYSCALL_STRING): Use it.
3105 * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S (__brk): Use
3106 HIDDEN_JUMPTARGET for __errno_location call in libc.so.
3107
4beb4532
UD
31082008-05-20 Ulrich Drepper <drepper@redhat.com>
3109
3110 * include/inline-hashtab.h (higher_prime_number): Fix type of mid
3111 variable.
3112
ed8f38ba
JJ
31132008-05-20 Jakub Jelinek <jakub@redhat.com>
3114
3115 * sysdeps/unix/sysv/linux/sparc/sparc32/sigcontextinfo.h
3116 (FIRST_FRAME_POINTER): Define.
3117
31182008-05-09 David S. Miller <davem@davemloft.net>
3119
3120 * sysdeps/sparc/sparc64/backtrace.c: New file.
3121
c1b8190a
JJ
31222008-05-14 David S. Miller <davem@davemloft.net>
3123
3124 * sysdeps/sparc/machine-gmon.h: New file.
3125 * sysdeps/sparc/sparc-mcount.S: Likewise.
3126 * sysdeps/sparc/Makefile: Add sparc-mcount target to
3127 sysdep_routines in gmon directory.
3128
84aacd93
JJ
31292008-05-19 Jakub Jelinek <jakub@redhat.com>
3130
3131 * elf/soinit.c (__EH_FRAME_BEGIN__): Remove.
3132
5908f779
UD
31332008-05-19 Ulrich Drepper <drepper@redhat.com>
3134
3135 * resolv/res_query.c (__libc_res_nquery): In case one of two
3136 answer was too short don't try to read that answer's header.
3137
3138 * resolv/res_send.c (send_dg): In case of timeout and there are
3139 two queries and one has been answered, return value indicating
3140 success.
3141
528741cb
UD
31422008-05-18 Ulrich Drepper <drepper@redhat.com>
3143
3144 * nscd/cache.c (cache_add): Take additional parameter specifying
3145 whether this is in response of a cache refill. Check alignment
3146 of package data. Revamp waking of pruning thread.
3147 (prune_cache): Small optimization.
3148 * nscd/nscd.h: Adjust cache_add prototypes.
3149 * nscd/aicache.c: Adjust cache_add calls.
3150 * nscd/grpcache.c: Likewise.
3151 * nscd/hstcache.c: Likewise.
3152 * nscd/initgrcache.c: Likewise.
3153 * nscd/pwdcache.c: Likewise.
3154 * nscd/servicescache.c: Likewise.
3155 * nscd/connections.c (restart): Really disable cache use before
3156 exec attempt. If it fails, reenable cache.
3157 (nscd_run_prune): Initialize wakeup_time. After wakeup, set wakeup
3158 time to max to be able to notice concurrent cache additions. Unlock
3159 prune_lock while performing gc. Afterwards compute wakeup time with
3160 current wakeup_time value in mind.
3161
343996c4
UD
31622008-05-17 Ulrich Drepper <drepper@redhat.com>
3163
5811d72b
UD
3164 * nscd/mem.c (gc): Avoid stack overflow when allocating move list.
3165
fa526148
UD
3166 * nscd/mem.c (gc): Correctly determine highest used array element
3167 in mark.
3168
77d40f10
UD
3169 * nscd/mem.c (markrange): Add assert to check entries are all
3170 aligned. Small cleanup in bitmap use.
3171
8884028c
UD
3172 * nscd/nscd.h (mem_in_flight): Replace blockaddr field with
3173 blockoff of type nscd_ssize_t.
3174 * nscd/mem.c (gc): Simplify markrange call for on-flight blocks.
3175 (mempoll_alloc): Record block offset and not address.
3176
b2159575
UD
3177 * nscd/mem.c (gc): Fix test for stack overuse.
3178
5c9629d2
UD
3179 * nscd/aicache.c (addhstaiX): Fix a few small problems, cleanups,
3180 more asserts.
3181
66d90496
UD
3182 * sysdeps/posix/getaddrinfo.c (gaih_inet): If nscd reports no
3183 entry is available, believe it.
3184
343996c4
UD
3185 * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): If there are
3186 no answers return NSS_STATUS_NOTFOUND.
3187 (gaih_getanswer): Don't call gaih_getanswer_slice if the answer
3188 buffer does not have any content.
3189
91c8a74b
UD
31902008-05-16 Ulrich Drepper <drepper@redhat.com>
3191
74e13385
UD
3192 * string/strcasestr.c (CMP_FUNC): Use __strncasecmp, not strncasecmp.
3193
91c8a74b
UD
3194 * sysdeps/posix/getaddrinfo.c (gaih_inet): After gethostbyname4_r
3195 lookup, don't assign canon unconditionally.
3196
0caca71a
UD
31972008-05-14 Ulrich Drepper <drepper@redhat.com>
3198
3199 * string/Makefile (distribute): Add str-two-way.h.
3200
32012008-03-29 Eric Blake <ebb9@byu.net>
3202
3203 Rewrite string searches to O(n) rather than O(n^2).
3204 * string/str-two-way.h: New file. For linear fixed-allocation
3205 string searching.
3206 * string/memmem.c: New implementation.
3207 * string/strstr.c: New implementation.
3208 * string/strcasestr.c: New implementation.
3209
b194db79
UD
32102008-04-11 Paolo Bonzini <bonzini@gnu.org>
3211
3212 * posix/regcomp.c (optimize_utf8): Add a note on why we test
3213 opr.ctx_type.
3214 (calc_first): Initialize constraint field.
3215 (duplicate_node_closure): Use it instead of special casing ANCHORS.
3216 Use search_duplicated_node to avoid loops. Fix grammar.
3217 (duplicate_node): Merge constraint field for all node types.
3218 (calc_eclosure_iter): Look at constraint field for all node types.
3219 * posix/regex_internal.c (create_cd_newstate): Don't look at
3220 create_cd_newstate.
3221
c8d49f05
UD
32222008-05-14 Ulrich Drepper <drepper@redhat.com>
3223
215a8745
UD
3224 [BZ #6428]
3225 * configure.in: Don't use $CFLAGS when assembling, use $ASFLAGS.
3226
2f9a1be8
UD
3227 [BZ #6442]
3228 * string/endian.h: Add macros for fixed-size endian conversion.
3229 * bits/byteswap.h: Allow inclusion from <endian.h>.
3230 * sysdeps/i386/bits/byteswap.h: Likewise.
3231 * sysdeps/ia64/bits/byteswap.h: Likewise.
3232 * sysdeps/s390/bits/byteswap.h: Likewise.
3233 * sysdeps/x86_64/bits/byteswap.h: Likewise.
3234 * string/Makefile (tests): Add tst-endian.
3235 * string/tst-endian.c: New file.
3236
c8d49f05
UD
3237 * iconvdata/run-iconv-test.sh: Use = instead of == in test.
3238 Patch by Reuben Thomas.
3239
a754f018
UD
32402008-05-14 Joseph Myers <joseph@codesourcery.com>
3241
3242 * iconvdata/Makefile (bug-iconv6-ENV, tst-iconv7-ENV): Define.
3243
372bfcac
UD
32442008-05-14 Ulrich Drepper <drepper@redhat.com>
3245
a754f018
UD
3246 * iconvdata/bug-iconv6.c (do_test): Use de_DE.UTF-8 locale.
3247
5deca9bb
UD
3248 [BZ #6461]
3249 * iconv/gconv_simple.c (BODY for __gconv_transform_ascii_internal):
3250 Add missing braces.
3251 (BODY for __gconv_transform_internal_ascii): Likewise.
3252
af77c9b7 3253 [BZ #6472]
5fab5544
UD
3254 * sysdeps/posix/getaddrinfo.c (get_scope): Loopback addresses have
3255 to be treated like link-local addresses.
5846c4e2
UD
3256 (match_prefix): Don't treat IPv4 loopback address special when
3257 converting to v4 mapped addressed.
5fab5544 3258
0caca71a 3259 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Call _res_hconf_init
1f039824 3260 if necessary.
b194db79
UD
3261 * posix/tst-rfc3484.c: Add dummy definition of _res_hconf_init.
3262 * posix/tst-rfc3484-2.c: Likewise.
3263 * posix/tst-rfc3484-3.c: Likewise.
1f039824 3264
18a74157
UD
3265 * sysdeps/posix/getaddrinfo.c: Implement handling of DCCP, UDPlite,
3266 and SCTP.
372bfcac
UD
3267
3268 * nss/getent.c (ahosts_keys_int): Handle all known socket types.
3269
3270 * inet/netinet/in.h (IPPIPPROTO_DCCP, IPPROTO_UDPLITE): Define.
3271
3272 * sysdeps/unix/sysv/linux/bits/socket.h (SOCK_DCCP): Define.
3273
f05ac8f5
UD
32742008-05-13 Ulrich Drepper <drepper@redhat.com>
3275
3276 * po/lt.po: New file. From Lituanian translation team.
3277
c9ff0187
UD
32782008-01-30 Alexandre Oliva <aoliva@redhat.com>
3279
3280 Introduce TLS descriptors for i386 and x86_64.
3281 * include/inline-hashtab.h: New file, copied from 2005's
3282 libiberty, with fix for memory leak imported afterwards by
3283 Glauber de Oliveira Costa.
3284 * elf/tlsdeschtab.h: New file.
3285 * elf/dl-reloc.c (_dl_try_allocate_static_tls): Extract from...
3286 (_dl_allocate_static_tls): ... here. Rearrange failure path.
3287 (CHECK_STATIC_TLS): Move to...
3288 * elf/dynamic-link.h: ... this file.
3289 (TRY_STATIC_TLS): New macro.
3290 * elf/dl-conflict.c (CHECK_STATIC_TLS, TRY_STATIC_TLS): Override.
3291 * elf/elf.h (R_386_TLS_GOTDESC, R_386_TLS_DESC_CALL,
3292 R_386_TLS_DESC): Define.
3293 (R_X86_64_PC64, R_X86_GOTOFF64, R_X86_64_GOTPC32): Merge from
3294 binutils.
3295 (R_X86_64_GOTPC32_TLSDESC, R_X86_64_TLSDESC_CALL,
3296 R_X86_64_TLSDESC): Define.
3297 (R_386_NUM, R_X86_64_NUM): Adjust.
3298 * sysdeps/i386/Makefile (sysdep-dl-routines, sysdep_routines,
f05ac8f5 3299 sysdep-rtld-routines): Add tlsdesc and dl-tlsdesc for elf subdir.
c9ff0187
UD
3300 (gen-as-const-headers): Add tlsdesc.sym to csu subdir.
3301 * sysdeps/i386/dl-lookupcfg.h: New file. Introduce _dl_unmap to
3302 release tlsdesc_table.
3303 * sysdeps/i386/dl-machine.h: Include dl-tlsdesc.h.
3304 (elf_machine_type_class): Mark R_386_TLS_DESC as PLT class.
3305 (elf_machine_rel): Handle R_386_TLS_DESC.
3306 (elf_machine_rela): Likewise.
3307 (elf_machine_lazy_rel): Likewise.
3308 (elf_machine_lazy_rela): Likewise.
3309 * sysdeps/i386/dl-tls.h (struct dl_tls_index): Name it.
3310 * sysdeps/i386/dl-tlsdesc.S: New file.
3311 * sysdeps/i386/dl-tlsdesc.h: New file.
3312 * sysdeps/i386/tlsdesc.c: New file.
3313 * sysdeps/i386/tlsdesc.sym: New file.
3314 * sysdeps/i386/bits/linkmap.h (struct link_map_machine): Add
3315 tlsdesc_table.
3316 * sysdeps/x86_64/Makefile (sysdep-dl-routines, sysdep_routines,
f05ac8f5 3317 sysdep-rtld-routines): Add tlsdesc and dl-tlsdesc for elf subdir.
c9ff0187
UD
3318 (gen-as-const-headers): Add tlsdesc.sym to csu subdir.
3319 * sysdeps/x86_64/dl-lookupcfg.h: New file. Introduce _dl_unmap to
3320 release tlsdesc_table.
3321 * sysdeps/x86_64/dl-machine.h: Include dl-tlsdesc.h.
3322 (elf_machine_runtime_setup): Set up lazy TLSDESC GOT entry.
3323 (elf_machine_type_class): Mark R_X86_64_TLSDESC as PLT class.
3324 (elf_machine_rel): Handle R_X86_64_TLSDESC.
3325 (elf_machine_rela): Likewise.
3326 (elf_machine_lazy_rel): Likewise.
3327 * sysdeps/x86_64/dl-tls.h (struct dl_tls_index): Name it.
3328 (__tls_get_addr): Do not declare for non-shared compiles.
3329 * sysdeps/x86_64/dl-tlsdesc.S: New file.
3330 * sysdeps/x86_64/dl-tlsdesc.h: New file.
3331 * sysdeps/x86_64/tlsdesc.c: New file.
3332 * sysdeps/x86_64/tlsdesc.sym: New file.
3333 * sysdeps/x86_64/bits/linkmap.h (struct link_map_machine): Add
3334 tlsdesc_table for both 32- and 64-bit structs.
3335
a3636e8b
UD
33362008-05-11 Ulrich Drepper <drepper@redhat.com>
3337
3338 * elf/dl-tls.c (__tls_get_addr): Optimize by moving slow path in
3339 its own function. This reduces the frame setup costs and more.
3340
a7eb802f
UD
33412008-02-11 Joseph Myers <joseph@codesourcery.com>
3342
3343 [BZ #3406]
3344 * sysdeps/ieee754/flt-32/w_expf.c (o_threshold): Correct value.
3345 * math/libm-test.inc (exp_test): Test 88.72269439697265625.
3346
3490f01d
UD
33472008-05-11 Ulrich Drepper <drepper@redhat.com>
3348
3d7eeebe
UD
3349 * io/openat.c (__openat_2): Also pass fd to __openat.
3350 * io/openat64.c (__openat64_2): Also pass fd to __openat64.
3351 Patch by Kristian Van Der Vliet <vanders@liqwyd.com>.
3352
3490f01d
UD
3353 * string/tester.c (test_memcmp): Add a few more tests.
3354 Patch by Mats Erik Andersson <ynglingatal@comhem.se>.
3355
7e71e55f
UD
33562008-05-10 Ulrich Drepper <drepper@redhat.com>
3357
3358 * nscd/cache.c (cache_add): Before returning with failure and this
3359 is the first use of the record, mark it as unusable.
3360 * nscd/aicache.c: Don't touch the dataset after cache_add returns
3361 reporting a failure.
3362 * nscd/grpcache.c: Likewise
3363 * nscd/hstcache.c: Likewise.
3364 * nscd/initgrcache.c: Likewise.
3365 * nscd/pwdcache.c: Likewise.
343996c4 3366 * nscd/servicescache.c: Likewise.
7e71e55f 3367
7396d0a9
RM
33682008-05-10 Roland McGrath <roland@redhat.com>
3369
3370 [BZ #6505]
3371 * sysdeps/unix/sysv/linux/sys/user.h: Replace with #error stub.
3372
c5ee217f
UD
33732008-05-08 David S. Miller <davem@davemloft.net>
3374
b29899ae
UD
3375 * misc/truncate64.c (truncate64): Use __truncate not truncate.
3376
c5ee217f
UD
3377 * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee751_j0l): Use __finitel.
3378 (__ieee754_y0l): Likewise.
3379 * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Likewise.
3380 (__ieee754_y1l): Likewise.
3381 * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Use __ldexpl.
3382 * sysdeps/ieee754/ldbl-128/s_log1pl.c: Kill bogus prototypes for
3383 frexpl and ldexpl. math_private.h provides them and the latter
3384 is not even used.
3385 (__log1pl): Use __frexpl.
3386
1eb946b9
UD
33872008-05-10 Ulrich Drepper <drepper@redhat.com>
3388
3389 * include/resolv.h: Adjust __libc_res_nquery and __libc_res_nsend
3390 prototypes.
3391 * include/arpa/nameser_compat.h: Define T_UNSPEC.
3392 * nis/Versions (libnss_nis): Export _nss_nis_gethostbyname4_r.
3393 (libnss_nisplus): Export _nss_nisplus_gethostbyname4_r.
3394 * nis/nss_nis/nis-hosts.c (LINE_PARSER): Change to also handle
3395 af==AF_UNSPEC.
3396 (_nss_nis_gethostbyname4_r): New function.
3397 * nis/nss_nisplus/nisplus-hosts.c (_nss_nisplus_parse_hostent):
3398 Change to also handle af==AF_UNSPEC.
3399 (get_tablename): New function. Use it to avoid duplication.
3400 (_nss_nisplus_gethostbyname4_r): New function.
3401 * nscd/aicache.c (addhstaiX): Use gethostbyname4_r function is
3402 available.
3403 * nss/Versions (libnss_files): Export _nss_files_gethostbyname4_r.
3404 * nss/nss.h: Define struct gaih_addrtuple.
3405 * nss/nss_files/files-hosts.c (LINE_PARSER): Change to also handle
3406 af==AF_UNSPEC.
3407 (_nss_files_gethostbyname4_r): New function.
3408 * resolv/Versions (libnss_dns): Export _nss_dns_gethostbyname4_r.
3409 * resolv/gethnmaddr.c: Adjust __libc_res_nsearch and __libc_res_nquery
3410 calls.
3411 * resolv/res_query.c (__libc_res_nquery): Take two additional
3412 parameters for second answer buffer. Handle type=T_UNSPEC to mean
3413 look up IPv4 and IPv6.
3414 Change all callers.
3415 * resolv/res_send.c (__libc_res_nsend): Take five aditional parameters
3416 for an additional query and answer buffer. Pass to send_vc and
3417 send_dg.
3418 (send_vc): Send possibly two requests and receive two answers.
3419 (send_dg): Likewise.
3420 * resolv/nss_dns/dns-host.c: Adjust calls to __libc_res_nsearch and
3421 __libc_res_nquery.
3422 (_nss_dns_gethostbyname4_r): New function.
3423 (gaih_getanswer_slice): Likewise.
3424 (gaih_getanswer): Likewise.
3425 * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Adjust
3426 __libc_res_nquery call.
3427 * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r): Likewise.
3428 (_nss_dns_getnetbyname_r): Adjust __libc_res_nsearch call.
3429 * sysdeps/posix/getaddrinfo.c: Use gethostbyname4_r function is
3430 available.
3431
b7fb703a
JJ
34322008-05-05 David S. Miller <davem@davemloft.net>
3433
3434 * sysdeps/sparc/sparc32/Makefile: Use -mcpu=v7 for initfini.s build.
3435 * sysdeps/sparc/sparc64/Makefile: Use -mcpu=v9 for initfini.s build.
3436
2256e43d
RM
34372007-09-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
3438
3439 Fix termios bit macros.
3440 Move *DLY definitions where they belong, in termios.h.
3441 Add *[0-3] definitions.
3442 Fixes confusion between VT and FF.
8bb52dbf
RM
3443 * sysdeps/mach/hurd/bits/ioctls.h (NL0, NL1, TAB0, TAB1, TAB2, CR0,
3444 CR1, CR2, CR3, FF0, FF1, BS0, BS1): Undefine these at start if they
3445 are already defined to avoid collision with termios.h.
2256e43d
RM
3446 (NLDLY, TABDLY, TAB3, CRDLY, VTDLY, BSDLY): Remove macros.
3447 * bits/termios.h [__USE_MISC || __USE_XOPEN] (NL0, NL1, TAB0,
3448 TAB1, TAB2, CR0, CR1, CR2, CR3, FF0, FF1, BS0, BS1): Likewise.
3449 [__USE_BSD || __USE_XOPEN] (OCRNL, ONOCR, ONLRET): New macros.
3450 [__USE_MISC || __USE_XOPEN] (NLDLY, NL0, NL1, TABDLY, TAB0, TAB1, TAB2,
3451 TAB3, CRDLY, CR0, CR1, CR2, CR3, FFDLY, FF0, FF1, BSDLY, BS0, BS1,
3452 VTDLY, VT0, VT1): New macros.
3453 [__USE_GNU] (OLCUC): Change value of macro.
3454 [__USE_XOPEN] (OFILL): New macro.
3455 [__USE_BSD] (CRTSCTS): Change value.
3456 (CRTS_IFLOW, CCTS_OFLOW): Change into compatibility macros.
3457 [__USE_BSD] (CDTRCTS, CHWFLOW): New macros.
3458 (B7200, B14400, B28800, B76800): New macros.
3459
4ce349e5
JJ
34602008-05-01 David S. Miller <davem@davemloft.net>
3461
a86a7a39
JJ
3462 * sysdeps/unix/sysv/linux/sparc/sparc32/ucontext_i.sym: New file.
3463 * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile [$(subdir) = stdlib]:
3464 (gen-as-const-headers): Add it.
3465 * sysdeps/unix/sysv/linux/sparc/sparc32/getcontext.S: New file.
3466 * sysdeps/unix/sysv/linux/sparc/sparc32/makecontext.c: Likewise.
3467 * sysdeps/unix/sysv/linux/sparc/sparc32/setcontext.S: Likewise.
3468 * sysdeps/unix/sysv/linux/sparc/sparc32/swapcontext.S: Likewise.
2256e43d 3469
4ce349e5
JJ
3470 * sysdeps/unix/sysv/linux/sparc/sparc32/syscall.S: Add support for
3471 six system call parameters.
3472 * sysdeps/unix/sysv/linux/sparc/sparc64/syscall.S: Likewise.
3473
89a8963d
UD
34742008-04-30 Ulrich Drepper <drepper@redhat.com>
3475
3476 * sysdeps/unix/sysv/linux/bits/resource.h: Define RUSAGE_THREAD and
3477 RUSAGE_LWP.
3478 * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
3479 * sysdeps/unix/sysv/linux/alpha/bits/resource.h: Likewise.
3480
b5ec5fce
JJ
34812008-04-30 Jakub Jelinek <jakub@redhat.com>
3482
3483 * stdlib/tst-setcontext.c: Include unistd.h.
3484
d4e92d9e
JJ
34852008-04-25 David S. Miller <davem@davemloft.net>
3486
3487 * sysdeps/unix/sysv/linux/sparc/sparc64/semctl.c (semctl):
3488 Pass "union semun" properly in to sys_ipc, it must be passed
3489 by value, not by reference.
3490
7eb5e6c9
UD
34912008-04-22 Jakub Jelinek <jakub@redhat.com>
3492
3493 * nscd/Makefile (nscd-cflags): Set back to -fpie.
3494 * nscd/nscd.h (mem_in_flight): Add attribute_tls_model_ie.
3495 * nscd/connections.c (mem_in_flight): Likewise.
3496
3497 * nscd/nscd.h (dbs): Make hidden.
3498
3499 * sysdeps/unix/sysv/linux/times.c (__times): Fix check for EFAULT.
3500 Avoid returning -1, return 0 instead.
3501
0073dd2d
UD
35022008-04-19 Ulrich Drepper <drepper@redhat.com>
3503
3504 * resolv/res_mkquery.c (__res_nopt): Use NS_PUT16 instead of ns_put16.
3505
c52137d3
UD
35062008-04-15 Ulrich Drepper <drepper@redhat.com>
3507
3508 [BZ #5209]
3509 * sysdeps/unix/sysv/linux/times.c: New file.
3510
3511 [BZ #5381]
3512 * nscd/nscd.h: Define enum in_flight, mem_in_flight, and
3513 mem_in_flight_list variables. Add new parameter to mempool_alloc
3514 prototype.
3515 * nscd/mem.c (mempool_alloc): Take additional parameter. Initialize
3516 appropriate mem_in_flight element.
3517 (gc): Take allocations which have not yet been committed to the
3518 database into account.
3519 * nscd/cache.c (cache_add): Add new parameter to mempool_alloc call.
3520 Reset mem_in_flight before returning.
3521 * nscd/connections.c (nscd_run_worker): Initialize mem_in_flight and
3522 cue it up in mem_in_flight_list.
3523 * nscd/aicache.c: Adjust mempool_alloc call.
3524 * nscd/grpcache.c: Likewise.
3525 * nscd/hstcache.c: Likewise.
3526 * nscd/initgrcache.c: Likewise.
3527 * nscd/pwdcache.c: Likewise.
3528 * nscd/servicescache.c: Likewise.
3529 * nscd/Makefile (nscd-flags): Until ld is fixed, use -fpic instead
3530 of -fpie.
3531
3532 * nscd/connections.c (handle_request): Provide better error message
3533 in case SELinux forbids the service.
3534
3535 * version.h (VERSION): Bump to 2.8.90.
3536
39546e34
JJ
35372008-04-17 Jakub Jelinek <jakub@redhat.com>
3538
3539 * sysdeps/unix/sysv/linux/dl-osinfo.h: Include fcntl.h.
3540
cf3a8c7f
UD
35412008-04-11 Ulrich Drepper <drepper@redhat.com>
3542
9e113ecd
UD
3543 * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h (__signbitl):
3544 Also use for 32-bit.
3b6d574e
UD
3545 * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c (__nearbyintl): Use
3546 __nextafter instead of nextafter to avoid local PLT.
c3a0ead4
UD
3547 * sysdeps/powerpc/fpu/e_sqrt.c: Avoid call to fetestexcept.
3548 * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
3549
3781ec29
UD
3550 * scripts/data/localplt-powerpc64-linux-gnu.data: New file.
3551
246ec411
UD
3552 * sysdeps/powerpc/fpu/fenv_libc.h: Add libm_hidden_proto for
3553 __fe_nomask_env.
3cc56f92
UD
3554 * sysdeps/powerpc/fpu/fe_nomask.c: Add libm_hidden_def. Include
3555 <fenv_libc.h> instead of <fenv.h>.
246ec411
UD
3556 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c: Likewise.
3557 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c: Likewise.
3558
3559 * sysdeps/powerpc/bits/fenv.h: Make safe for C++.
3560
3561 * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h: New file.
3562 * sysdeps/powerpc/fpu/fegetexcept.c (__fegetexcept): Rename
3563 function from fegetexcept and make old name weak alias.
3564 * include/fenv.h: Declare __fegetexcept.
3565 * sysdeps/powerpc/fpu/fedisblxcpt.c: Use __fegetexcept instead of
3566 fegetexcept.
3567 * sysdeps/powerpc/fpu/feenablxcpt.c: Likewise.
3568 * sysdeps/powerpc/fpu/fraiseexcpt.c (__feraiseexcept): Avoid call
3569 to fetestexcept.
3570 * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Use __frexpl
3571 instead of frexpl to avoid local PLT.
3572 * math/s_significandl.c (__significandl): Use __ilogbl instead of
3573 ilogbl to avoid local PLT.
3574 * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Use __ldexpl
3575 instead of ldexpl to avoid local PLT.
3576 * sysdeps/ieee754/ldbl-128ibm/e_expl.c (__ieee754_expl): Use
3577 __roundl not roundl to avoid local PLT.
3578 * sysdeps/ieee754/ldbl-128/e_j0l.c: Use function names which avoid
3579 local PLTs. Use __sincosl instead of separate sinl and cosl
3580 calls.
3581 * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
3582
2dc4a2fd
UD
3583 * sysdeps/unix/sysv/linux/configure.in: Bump minimal kernel
3584 version for ppc64 to 2.4.21 since without it makecontext will fail.
3585
fe3350ee
UD
3586 * elf/tls-macros.h [__powerpc64__] (__TLS_GET_ADDR): Define according
3587 to the ABI in use.
3588 [__powerpc64__] (TLS_LD): Use __TLS_GET_ADDR instead of
3589 .__tls_get_addr.
3590 [__powerpc64__] (TLS_GD): Likewise.
cf3a8c7f 3591
c1e6b459
UD
35922007-11-20 Ryan S. Arnold <rsa@us.ibm.com>
3593
7763d4f1 3594 [BZ #4997]
c1e6b459
UD
3595 * sysdeps/powerpc/powerpc32/fpu/s_lround.S (__lround): Fixed erroneous
3596 result when x is +/-nextafter(+/-0.5,-/+1) i.e. all 1's in the
3597 mantissa.
3598 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S (__llround):
3599 Likewise. Also account for when x is an odd number between 2^52
3600 and 2^53-1.
3601 * sysdeps/powerpc/powerpc64/fpu/s_llround.S (__llround): Likewise.
3602 * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S (__llroundf): Likewise.
3603 * math/libm-test.inc (lround_test, llround_test): Added test cases to
3604 detect aforementioned erroneous conditions.
3605
22dca1ea
UD
36062008-04-11 Jakub Jelinek <jakub@redhat.com>
3607
3608 * configure.in: Check for -fno-section-anchors in addition to
3609 -fno-toplevel-reorder.
3610
5d59f4a5
UD
36112008-04-11 Ulrich Drepper <drepper@redhat.com>
3612
3613 * include/features.h (__GLIBC_MINOR__): Bump to 8.
3614
3615 * sysdeps/powerpc/powerpc32/fpu/s_lroundf.S: Remove duplicate comment.
3616 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llroundf.S: Likewise.
3617 * sysdeps/powerpc/powerpc32/power6/fpu/s_llroundf.S: Likewise.
3618 * sysdeps/powerpc/powerpc64/fpu/s_lrint.S: Likewise.
3619 * sysdeps/powerpc/powerpc64/fpu/s_lround.S: Likewise.
3620 * sysdeps/powerpc/powerpc64/fpu/s_lroundf.S: Likewise.
3621
91e32540
UD
36222008-04-11 Jakub Jelinek <jakub@redhat.com>
3623
3624 [BZ #5443]
3625 * time/era.c: Transform __libc_setlocale_lock into rwlock.
3626 * time/alt_digit.c: Likewise.
3627 * wcsmbs/wcsmbsload.c: Likewise.
3628
fd490ac8
UD
36292008-04-10 Ulrich Drepper <drepper@redhat.com>
3630
1db5b6f4
UD
3631 * version.h (VERSION): Bump to 2.8.
3632
fd490ac8
UD
3633 * timzeone/asia: Update from tzdata2008b.
3634 * timezone/backward: Likewise.
3635 * timezone/europe: Likewise.
3636 * timezone/northamerica: Likewise.
3637 * timezone/southamerica: Likewise.
3638 * timezone/iso3166.tab: Likewise.
3639 * timezone/leapseconds: Likewise.
3640 * timezone/zone.tab: Likewise.
3641 * timezone/private.h: Update from tzcode2008a.
3642 * timezone/zdump.c: Likewise.
3643 * timezone/zic.c: Likewise.
3644
153cf972
UD
36452008-01-24 Steven Munroe <sjmunroe@us.ibm.com>
3646
3647 [BZ #5741]
3648 * sysdeps/powerpc/powerpc64/dl-machine.h (PPC_DCBT, PPC_DCBF):
3649 Define additonal Data Cache Block instruction macros.
3650 (elf_machine_fixup_plt): Add dcbt for opd and plt entries.
3651 Replace dcbst with dcbf and sync with sync/isync.
3652
d2207f32
UD
36532008-02-21 Alan Modra <amodra@bigpond.net.au>
3654
3655 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_type_class):
3656 Always set ELF_RTYPE_CLASS_PLT.
3657 (elf_machine_lookup_noexec_p, elf_machine_lookup_noplt_p): Delete.
3658
13d83320
UD
36592008-04-03 Steven Munroe <sjmunroe@us.ibm.com>
3660
3661 * sysdeps/powerpc/powerpc32/power4/hp-timing.c: New file.
3662 * sysdeps/powerpc/powerpc32/power4/hp-timing.h: New file.
3663 * sysdeps/powerpc/powerpc64/hp-timing.h [_ARCH_PWR4] (HP_TIMING_NOW):
3664 For ISA 2.01 and later replace mftb with mfspr 268.
3665
5f7aead5
UD
36662008-02-19 Steven Munroe <sjmunroe@us.ibm.com>
3667
3668 [BZ #5768]
3669 * sysdeps/powerpc/fpu/Makefile (libm-tests): Add test-powerpc-snan.
3670 * sysdeps/powerpc/fpu/test-powerpc-snan.c: New file.
3671
36722008-02-18 Steven Munroe <sjmunroe@us.ibm.com>
3673
3674 [BZ #5768]
3675 * sysdeps/powerpc/powerpc32/fpu/s_isnan.S: New file.
3676 * sysdeps/powerpc/powerpc32/fpu/s_isnan.c: Removed.
3677 * sysdeps/powerpc/powerpc64/fpu/s_isnan.S: New file.
3678 * sysdeps/powerpc/powerpc64/fpu/s_isnan.c: Removed.
3679
117df5d9
JJ
36802008-04-10 Jakub Jelinek <jakub@redhat.com>
3681
3682 * stdlib/tst-makecontext.c (othervar): New variable.
3683 (cf): Test sign extending the argument to long.
3684
3b32d8a2
UD
36852008-03-03 Steven Munroe <sjmunroe@us.ibm.com>
3686
3687 * sysdeps/powerpc/powerpc32/power5/fpu/s_isnan.S: New file.
3688 * sysdeps/powerpc/powerpc32/power5/fpu/s_isnanf.S: New file.
3689 * sysdeps/powerpc/powerpc32/power6/fpu/s_isnan.S: New file.
3690 * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S: New file.
3691 * sysdeps/powerpc/powerpc64/power5/fpu/s_isnan.S: New file.
3692 * sysdeps/powerpc/powerpc64/power6/fpu/s_isnan.S: New file.
3693 * sysdeps/powerpc/powerpc64/power6x/fpu/s_isnan.S: New file.
3694
9fb11d4c
UD
36952008-02-22 Alan Modra <amodra@bigpond.net.au>
3696
3697 * elf/Makefile (tests): Substitute tests-vis-yes here.
3698 (tests-vis-yes): Delete.
3699 (modules-name, modules-vis-yes): Similarly.
3700
facd1d8e
UD
37012008-02-12 Pete Eberlein <eberlein@us.ibm.com>
3702
3703 [BZ #4407]
3704 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
3705 Preserve sign in signgamp when x is zero.
3706
aece054b
UD
37072007-10-26 Steven Munroe <sjmunroe@us.ibm.com>
3708
3709 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: New File.
3710 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.c: Removed.
3711 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: New File.
3712 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.c: Removed.
3713 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: New File.
3714 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: New File.
3715
6c30d38f
UD
37162008-04-09 Ulrich Drepper <drepper@redhat.com>
3717
21208604 3718 [BZ #4314]
13d83320
UD
3719 * sysdeps/i386/i686/memcpy.S: Optimize copying of equally aligned
3720 buffers.
21208604 3721
2f611ada 3722 [BZ #5209]
d1235fdf
UD
3723 * sysdeps/unix/sysv/syscalls.list: The times syscall doesn't have
3724 a reserved error value.
2f611ada 3725
6c30d38f
UD
3726 * stdlib/tst-makecontext.c: Change parameter to cf to negative
3727 value to check for correct sign extension.
3728
3729 [BZ #5436]
3730 * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
3731 Copy 64-bit parameter values even though this is not required in
3732 the standard.
3733
3734 * sysdeps/unix/sysv/linux/x86_64/vfork.S (__vfork): Record return
3735 PC save.
3736
de1bbf68
UD
37372008-02-14 Daniel Jacobowitz <dan@codesourcery.com>
3738
3739 * sysdeps/unix/sysv/linux/i386/vfork.S (__vfork): Record return
3740 PC save.
3741
9aef35a5
UD
37422008-04-09 Jakub Jelinek <jakub@redhat.com>
3743
3744 * nss_files/files-XXX.c (_nss_files_getXXent_r): Restore saved errno.
3745
a7925a24
UD
37462008-04-09 Ulrich Drepper <drepper@redhat.com>
3747
3748 [BZ #5998]
3749 * libio/iofwrite.c (_IO_fwrite): Return correct count if flushing
3750 in line-buffered stream failed.
3751 * libio/iofwrite_u.c (fwrite_unlocked): Likewise.
3752
7b61ef24
UD
37532008-04-08 Ulrich Drepper <drepper@redhat.com>
3754
c2a684a4
UD
3755 [BZ #6024]
3756 * scripts/abi-versions.awk: If the version specified by
3757 --enable-oldest-abi is older than the first version for this
3758 architecture, use the default version.
3759
7b61ef24
UD
3760 * locale/programs/ld-collate.c (collate_read): Ignore script lines
3761 as well when ignoring the whole category.
3762
f6d749f0
UD
37632008-04-07 Ulrich Drepper <drepper@redhat.com>
3764
3765 [BZ #6042]
3766 * sysdeps/unix/sysv/linux/net/ethernet.h: Add a few more
3767 ETHERTYPE_* definitions.
3768 Patch partly by Aurelien Jarno <aurelien@aurel32.net>.
3769
1e99aede
JJ
37702008-04-07 Jakub Jelinek <jakub@redhat.com>
3771
3772 * stdlib/mbtowc.c (__no_r_state): Remove.
3773 (mbtowc): New static state variable. Use it instead of
3774 __no_r_state.
3775 * stdlib/wctomb.c (__no_r_state): Remove extern decl.
3776 (__wctomb_state): New hidden variable.
3777 (wctomb): Use __wctomb_state instead of __no_r_state.
3778 * debug/wctomb_chk.c (__no_r_state): Remove extern decl.
3779 (__wctomb_state): New extern decl.
3780 (__wctomb_chk): Use __wctomb_state instead of __no_r_state.
3781
fcf90e0a
UD
37822008-04-07 Ulrich Drepper <drepper@redhat.com>
3783
3784 [BZ #5475]
3785 * resolv/res_init.c: Handle scope IDs in resolv.conf.
3786
ae39e102
JJ
37872008-04-07 Jakub Jelinek <jakub@redhat.com>
3788
3789 * malloc/mtrace.pl: Use $@ instead of $* to keep perl 5.10 quiet.
3790
2503dd30
UD
37912008-04-06 Ulrich Drepper <drepper@redhat.com>
3792
3793 * po/nl.po: Update from translation team.
3794
3eb9c809
UD
37952008-03-31 Ulrich Drepper <drepper@redhat.com>
3796
3797 [BZ #6007]
3798 * string/strfry.c: Handle empty strings again.
3799
9a69db29
UD
38002008-03-30 Ulrich Drepper <drepper@redhat.com>
3801
3802 [BZ #5443]
3803 * intl/dcigettext.c (__dcigettext): Get reader lock for locale data
3804 before looking for translation.
3805 * locale/duplocale.c: Transform __libc_setlocale_lock into rwlock.
3806 * locale/freelocale.c: Likewise.
3807 * locale/newlocale.c: Likewise.
3808 * locale/setlocale.c: Likewise.
3809 Based partially on a patch by ryo@np.css.fujitsu.com.
3810
2ecc7d93
UD
38112008-03-30 Jakub Jelinek <jakub@redhat.com>
3812
3813 * intl/dcigettext.c (_nl_find_msg): Reread nconversions after
3814 acquiring wrlock. Do conv_tab allocation while holding lock.
3815 * intl/Makefile: Add rules to build and run tst-gettext6.
3816 * intl/tst-gettext6.c: New test.
3817 * intl/tst-gettext6.sh: New file.
3818
221e5230
UD
38192008-03-30 Ulrich Drepper <drepper@redhat.com>
3820
faa091c6
UD
3821 * po/nl.po: Update from translation team.
3822
221e5230
UD
3823 * sysdeps/unix/opendir.c (__alloc_dir): If allocation fails for size
3824 provided through st_blksize, try the default size before giving up.
3825
1c272665
UD
38262008-03-29 Ulrich Drepper <drepper@redhat.com>
3827
43f6bec1
UD
3828 * stdio-common/vfprintf.c (vfprintf): Correct overflow test.
3829
e8a32126
UD
3830 [BZ #5939]
3831 * sysdeps/posix/tempname.c (__gen_tempname): Correct flag selection.
3832
1e489af9
UD
3833 * posix/getopt.c (_getopt_internal_r): Remove old POSIX-demanded
3834 error message. POSIX today does not require the messages to be in
3835 a specific form. Suggested by Jim Meyering <jim@meyering.net>.
3836
1d20f7f8
UD
3837 [BZ #5979]
3838 * sunrpc/auth_unix.c: Unify printed strings.
3839 * sunrpc/clnt_tcp.c: Likewise.
3840 * sunrpc/clnt_udp.c: Likewise.
3841 * sunrpc/clnt_unix.c: Likewise.
3842 * sunrpc/svc_tcp.c: Likewise.
3843 * sunrpc/svc_udp.c: Likewise.
3844 * sunrpc/svc_unix.c: Likewise.
3845 * sunrpc/xdr.c: Likewise.
3846 * sunrpc/xdr_array.c: Likewise.
3847 * sunrpc/xdr_rec.c: Likewise.
3848 * sunrpc/xdr_ref.c: Likewise.
3849 * locale/programs/ld-time.c (time_finish): Unify messages.
3850 * locale/programs/locfile.c (handle_copy): Fix typo.
3851 * nscd/nscd.c (options): Fix typo.
3852
1c272665
UD
3853 [BZ #5995]
3854 * stdlib/strtod_l.c: Use correct sign for result in one more
3855 underflow case.
3856 Patch by Eric Blake <ebb9@byu.net>.
3857
48cc060e
UD
38582008-03-27 Jakub Jelinek <jakub@redhat.com>
3859
3860 * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Add open
3861 and creat system calls.
3862 * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove open system
3863 call.
3864 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Remove open and creat
3865 system calls.
3866 * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Likewise.
3867 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
3868 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
3869
f96853be
UD
38702008-03-27 Ulrich Drepper <drepper@redhat.com>
3871
3872 * sysdeps/unix/sysv/linux/bits/local_lim.h: Undefined ARG_MAX if
3873 <linux/limits.h> has defined it.
3874 * sysdeps/unix/sysv/linux/sys/param.h: Define NCARGS to the legacy
3875 ARG_MAX value and prevent ARG_MAX from being defined by the kernel
3876 headers.
3877 * sysdeps/unix/sysv/linux/sysconf.c: Define legacy_ARG_MAX and use
3878 it instead of ARG_MAX.
3879
fde15fdc
UD
38802008-03-25 Jakub Jelinek <jakub@redhat.com>
3881
3882 * posix/gai.conf: Fix comment for scope nullbits.
3883 * sysdeps/posix/getaddrinfo.c (gaiconf_init): If /bits is not present,
3884 default to 128 bits for v4 mapped addresses.
3885
87b9b50f
UD
38862008-03-07 Martin Schwidefsky <schwidefsky@de.ibm.com>
3887
3888 * sysdeps/s390/fpu/fegetenv.c (fegetenv): Remove PTRACE_PEEKUSER
3889 ptrace call to get the ieee_instruction_pointer from the kernel.
3890 * sysdeps/s390/fpu/fesetenv.c (fesetenv): Remove PTRACE_POKEUSER
3891 ptrace call to set the ieee_instructtion_pointer.
3892 * sysdeps/unix/sysv/linux/s390/sys/user.h (struct _user_regs_struct):
3893 Add comment that ieee_instruction_pointer is always 0.
3894
af0498dc
UD
38952008-03-09 Andreas Jaeger <aj@suse.de>
3896
3897 [BZ #5857]
3898 * sysdeps/ieee754/dbl-64/s_rint.c (__rint): Handle j0==18.
3899 * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Likewise.
3900 Patch by Mark Elliott <mark.h.elliott@lmco.com>.
3901
3902 * math/libm-test.inc (nearbyint_test): Add new test cases from #5857.
3903 (rint_test): Likewise.
3904
0ab7632d
UD
39052008-03-24 Ulrich Drepper <drepper@redhat.com>
3906
0facd3df
UD
3907 * nis/nis_call.c (nis_server_cache_search): Save errno around stat
3908 call.
3909 (__nisfind_server): Similar for open readColdStartFile call.
3910 Patch partially by Jim Meyering.
3911 * nss/nss_files/files-XXX.c (_nss_files_getXXent_r): Save errno
3912 around internal_setent call.
3913
7e570c55
UD
3914 * po/vi.po: New Vietnamese translation.
3915
e093c247
UD
3916 * sysdeps/unix/sysv/linux/adjtime.c: Correctly use
3917 ADJ_OFFSET_SS_READ.
3918
0ab7632d
UD
3919 * sysdeps/unix/sysv/linux/bits/sched.h: Add new CLONE_* flags,
3920 remove CLONE_STOPPED.
3921
0726cdf7
UD
39222008-02-10 Jim Meyering <meyering@redhat.com>
3923
3924 Remove useless "if" before "free":
3925 * elf/ldconfig.c (parse_conf_include): Likewise.
3926 * gmon/gmon.c (weak_alias): Likewise.
3927 * iconv/gconv_conf.c (__gconv_get_path): Likewise.
3928 * inet/rcmd.c (__validuser2_sa): Likewise.
3929 * intl/bindtextdom.c (set_binding_values): Likewise.
3930 * intl/loadmsgcat.c (_nl_load_domain, _nl_unload_domain): Likewise.
3931 * libio/genops.c (save_for_backup): Likewise.
3932 * libio/wgenops.c (save_for_wbackup): Likewise.
3933 * locale/programs/ld-collate.c (collate_read): Likewise.
3934 * locale/programs/linereader.c (get_string): Likewise.
3935 * nis/nss_compat/compat-pwd.c (give_pwd_free): Likewise.
3936 * nis/nss_compat/compat-spwd.c (give_spwd_free): Likewise.
3937 * resolv/res_debug.c (do_section): Likewise.
3938 * sunrpc/xdr_sizeof.c (x_inline, xdr_sizeof): Likewise.
3939 * sysdeps/mach/hurd/if_index.c (libc_hidden_def): Likewise.
3940 * sysdeps/posix/sprofil.c (__sprofil): Likewise.
3941 * time/lc-time-cleanup.c (_nl_cleanup_time): Likewise.
3942 * time/tzset.c (tzset_internal): Likewise.
3943
354b7527
JJ
39442008-03-18 Jakub Jelinek <jakub@redhat.com>
3945
3946 * sysdeps/unix/sysv/linux/dl-sysdep.h: Use __ASSEMBLER__ instead
3947 of ASSEMBLER.
3948
ca668b29
UD
39492008-03-11 Ulrich Drepper <drepper@redhat.com>
3950
3951 [BZ #5903]
3952 * iconv/iconv_charmap.c (charmap_conversion): Pass name of output file
3953 not stream for output file. Open output file here.
3954 * iconv/iconv_prog.c (process_lock): Take pointer to output stream
3955 and output file name.
3956 (process_fd): Likewise.
3957 (process_file): Likewise.
3958 (main): Adjust callers of changed functions.
3959 * iconv/iconv_prog.h: Adjust prototype.
3960
f3dc3415
AJ
39612008-03-09 Andreas Jaeger <aj@suse.de>
3962
3963 [BZ #5753]
3964 * sysdeps/ia64/ieee754.h: Use protected namespace
3965 __BIG_ENDIAN/__LITTLE_ENDIAN.
3966 * sysdeps/ieee754/ieee754.h: Likewise.
3967 Patch by Aurelien Jarno <aurelien@aurel32.net>.
3968
a8fd84d4
RM
39692008-03-08 Roland McGrath <roland@frob.com>
3970
2b965f1b
RM
3971 * hurd/hurdsig.c (_hurd_internal_post_signal): When normal rules would
3972 ignore a signal that came from a machine exception, treat it as a
3973 fatal core-dump signal instead.
3974 Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
3975
a8fd84d4
RM
3976 * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler):
3977 Clear DF bit in thread state's eflags.
3978 Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
3979
368a8dec
UD
39802008-03-08 Ulrich Drepper <drepper@redhat.com>
3981
b3278554
UD
3982 [BZ #5774]
3983 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Consume closing brace
c6c00e0d 3984 of NAN(...) sequence.
b3278554
UD
3985 * stdlib/Makefile (tests): Add tst-strtod6.
3986 * stdlib/tst-strtod6.c: New file.
3987
3988 * inet/inet6_opt.c (inet6_opt_init): Check extlen for overflow.
3989
2127a186
UD
3990 [BZ #5762]
3991 * posix/getopt.c (_getopt_internal_r): Clarify error message by
3992 putting offending option character in quotes. Clean up error
3993 messages.
3994 * po/be.po: Adjust msgstr in translation file.
3995 * po/bg.po: Likewise.
3996 * po/ca.po: Likewise.
3997 * po/cs.po: Likewise.
3998 * po/da.po: Likewise.
3999 * po/de.po: Likewise.
4000 * po/es.po: Likewise.
4001 * po/fr.po: Likewise.
4002 * po/hr.po: Likewise.
4003 * po/ko.po: Likewise.
4004 * po/nl.po: Likewise.
4005 * po/rw.po: Likewise.
4006 * po/sk.po: Likewise.
4007 * po/sv.po: Likewise.
4008 * po/tr.po: Likewise.
4009 * po/zh_CN.po: Likewise.
4010 * po/zh_TW.po: Likewise.
4011
725c0c87
UD
4012 [BZ #5760]
4013 * inet/inet6_opt.c (inet6_opt_init): Fix ip6h_len computation.
4014 Patch by Roland Bless <roland@bless.de>.
4015
368a8dec
UD
4016 * sysdeps/unix/sysv/linux/dl-sysdep.c: Avoid unnecessary code for
4017 .o file.
4018 * elf/Makefile (routines): Add dl-sysdep.
4019 (elide-routines.os): Likewise.
4020
78c2bf0e
UD
40212008-03-07 Ulrich Drepper <drepper@redhat.com>
4022
7c22c7ec
UD
4023 [BZ #5786]
4024 * elf/dl-sysdep.c: Undefine ROUND after use.
4025 * sysdeps/generic/ldsodefs.h [HAVE_DL_DISCOVER_OSVERSION]
4026 (struct rtld_global_ro): Add _dl_tls_get_addr_soft element.
4027 * elf/rtld.c (rtld_global_ro): Initialize _dl_discover_osversion.
4028 * sysdeps/unix/sysv/linux/dl-osinfo.h: Move _dl_discover_osversion
4029 to ...
4030 * sysdeps/unix/sysv/linux/dl-sysdep.c: ...here.
4031 * sysdeps/unix/sysv/linux/dl-sysdep.h: Declare _dl_discover_osversion
4032 if necessary.
4033 * sysdeps/unix/sysv/linux/sysconf.c: Handle _SC_ARG_MAX here.
4034
93025f93
UD
4035 * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Add
4036 _dl_tls_get_addr_soft element.
4037 * elf/rtld.c (rtld_global_ro): Initialize _dl_tls_get_addr_soft.
4038 * elf/Versions (ld): Don't export _dl_tls_get_addr_soft.
4039 * dlfcn/dlinfo.c (dlinfo_doit): Access dl_tls_get_addr_soft through
4040 GLRO.
4041 * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise.
4042 * elf/dl-tls.c (_dl_tls_get_addr_soft): Use attribute_hidden instead
4043 of internal_function.
4044
72f10127
UD
4045 * stdlib/Makefile (aux): Add tens_in_limb.
4046 * stdlib/strtod_l.c: Move _tens_in_limb definition to...
4047 * stdlib/tens_in_limb.c: ...here. New file.
4048
443db178
UD
4049 [BZ #5778]
4050 * sysdeps/unix/sysv/linux/pathconf.h: Declare
4051 __statfs_chown_restricted.
4052 * sysdeps/unix/sysv/linux/fpathconf.c: Call __statfs_chown_restricted
4053 for _PC_CHOWN_RESTRICTED.
4054 * sysdeps/unix/sysv/linux/pathconf.c: Likewise.
4055 Implement __statfs_chown_restricted.
4056 * sysdeps/unix/sysv/linux/bits/posix_opt.h: Change
4057 _POSIX_CHOWN_RESTRICTED value to zero.
c71665ad
UD
4058 * io/tst-fchownat.c: Correctly handle _POSIX_CHOWN_RESTRICTED
4059 defined to zero.
443db178 4060
78c2bf0e
UD
4061 * sysdeps/x86_64/rtld-memset.c: New file.
4062
443db178 40632008-02-26 Harsha Jagasia <harsha.jagasia@amd.com>
78c2bf0e
UD
4064
4065 * sysdeps/x86_64/cacheinfo.c (NOT_USED_RIGHT_NOW): Remove ifdef guards.
4066
4067 * sysdeps/x86_64/memset.S: Rewrite non-SSE code path as tuned for AMD
4068 Barcelona machine. Make default fall through branch of
4069 __x86_64_preferred_memory_instruction check as the integer code path.
4070
40712007-10-15 H.J. Lu <hongjiu.lu@intel.com>
4072
4073 * sysdeps/x86_64/cacheinfo.c
4074 (__x86_64_preferred_memory_instruction): New variable.
4075 (init_cacheinfo): Initialize __x86_64_preferred_memory_instruction.
4076
4077 * sysdeps/x86_64/memset.S: Rewrite.
4078
dff37515
UD
40792008-03-04 Jakub Jelinek <jakub@redhat.com>
4080
4081 * include/stdio.h (__asprintf_chk, __dprintf_chk,
4082 __obstack_printf_chk): New prototypes.
4083 (__vasprintf_chk, __vdprintf_chk,
4084 __obstack_vprintf_chk): Likewise.
4085 Add libc_hidden_proto.
4086 * libio/obprintf.c
4087 (_IO_obstack_jumps): No longer static, add attribute_hidden.
4088 * libio/bits/stdio-ldbl.h (__asprintf_chk, __dprintf_chk,
4089 __obstack_printf_chk, __vasprintf_chk, __vdprintf_chk,
4090 __obstack_vprintf_chk): Add __LDBL_REDIR_DECL.
4091 * libio/bits/stdio2.h (__asprintf_chk, __dprintf_chk,
4092 __obstack_printf_chk, __vasprintf_chk, __vdprintf_chk,
4093 __obstack_vprintf_chk): New prototypes.
4094 (asprintf, __asprintf, dprintf, obstack_printf, vasprintf, vdprintf,
4095 obstack_vprintf): New inlines.
4096 * debug/dprintf_chk.c: New file.
4097 * debug/vdprintf_chk.c: New file.
4098 * debug/asprintf_chk.c: New file.
4099 * debug/vasprintf_chk.c: New file.
4100 * debug/obprintf_chk.c: New file.
4101 * debug/tst-chk1.c (do_test): Add asprintf and obstack_printf tests.
4102 * debug/Versions (__asprintf_chk, __dprintf_chk, __obstack_printf_chk,
4103 __vasprintf_chk, __vdprintf_chk, __obstack_vprintf_chk): Export
4104 @@GLIBC_2.8.
4105 * debug/Makefile: Build asprintf_chk, vasprintf_chk, dprintf_chk,
4106 vdprintf_chk and obprintf_chk, set CFLAGS for them.
4107 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c (__nldbl___vasprintf_chk,
4108 __nldbl___vdprintf_chk, __nldbl___obstack_vprintf_chk): Add
4109 libc_hidden_proto.
4110 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl___vasprintf_chk,
4111 __nldbl___vdprintf_chk, __nldbl___obstack_vprintf_chk): New prototypes.
4112 * sysdeps/ieee754/ldbl-opt/Versions (__nldbl___asprintf_chk,
4113 __nldbl___vasprintf_chk, __nldbl___dprintf_chk, __nldbl___vdprintf_chk,
4114 __nldbl___obstack_printf_chk, __nldbl___obstack_vprintf_chk): Export
4115 @@GLIBC_2.8.
4116 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add asprintf_chk,
4117 vasprintf_chk, dprintf_chk, vdprintf_chk, obstack_printf_chk and
4118 obstack_vprintf_chk.
4119 * sysdeps/ieee754/ldbl-opt/nldbl-obstack_vprintf_chk.c: New file.
4120 * sysdeps/ieee754/ldbl-opt/nldbl-dprintf_chk.c: New file.
4121 * sysdeps/ieee754/ldbl-opt/nldbl-obstack_printf_chk.c: New file.
4122 * sysdeps/ieee754/ldbl-opt/nldbl-asprintf_chk.c: New file.
4123 * sysdeps/ieee754/ldbl-opt/nldbl-vdprintf_chk.c: New file.
4124 * sysdeps/ieee754/ldbl-opt/nldbl-vasprintf_chk.c: New file.
4125
d835f136
UD
41262008-03-04 Ulrich Drepper <drepper@redhat.com>
4127
a4bb445a
UD
4128 [BZ #5779]
4129 * misc/sys/queue.h: Add STAILQ_CONCAT and TAILQ_CONCAT definitions.
4130 Patch by Roy Marples <roy@marples.name>.
4131
c958a6a4
UD
4132 [BZ #5736]
4133 * malloc/malloc.c: Fix typo in comment.
4134
d835f136
UD
4135 [BZ #5627]
4136 * locale/iso-639.def: Add Shuswap.
4137
65b4743a
UD
41382008-02-25 Jakub Jelinek <jakub@redhat.com>
4139
4140 [BZ #5790]
4141 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr2_r): Don't
4142 overwrite *h_errnop/*errnop values from getanswer_r in case of
4143 failure.
4144
3868fb6e
UD
41452008-03-03 Ulrich Drepper <drepper@redhat.com>
4146
27c377dd
UD
4147 [BZ #5818]
4148 * nscd/connections.c (dbs): Add initializers for .suggested_module.
4149 (verify_persistent_db): Remove one unnecessary test and add a new one
4150 for bad configuration.
4151 (nscd_init): Improve error reported when persistent database cannot
4152 be reused.
4153 * nscd/nscd.h (DEFAULT_SUGGESTED_MODULE): Define.
4154 * nscd/nscd_conf.c (nscd_parse_file): Provide default values for
4155 .suggested_module and .max_db_size and case config file says the
4156 values are zero.
4157 * nscd/nscd_helper.c (get_mapping): Fail if hash table module is zero.
4158
0f749099
UD
4159 [BZ #5854]
4160 * nis/ypclnt.c (yp_order): Fix handling of return value of
4161 do_ypcall_tr call.
4162 Patch by Jeff Moyer <jmoyer@redhat.com>.
4163
3868fb6e
UD
4164 * po/fr.po: Update from translation team.
4165
268dbf25
AJ
41662008-02-22 Andreas Jaeger <aj@suse.de>,
4167 Carlos O'Donell <carlos@systemhalted.org>
4168
4169 [BZ #5012]
4170 * FAQ.in: Describe why glibc needs to be compiled with
4171 optimization.
4172
73b82641
RM
41732008-02-19 Roland McGrath <roland@redhat.com>
4174
4175 * elf/elf.h (SHT_GNU_ATTRIBUTES): New macro.
4176
c9136393
UD
41772008-02-15 Ulrich Drepper <drepper@redhat.com>
4178
4179 [BZ #5737]
4180 * resolv/netdb.h: Make NI_MAXHOST and NI_MAXSERV available when
4181 __USE_MISC is defined.
4182
2e3e9ff1
UD
41832008-02-10 Ulrich Drepper <drepper@redhat.com>
4184
4185 * sysdeps/unix/sysv/linux/sys/timerfd.h: New file.
4186 * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers): Add
4187 sys/timerfd.h.
4188 * sysdeps/unix/sysv/linux/syscalls.list: Add timerfd_create,
4189 timerfd_gettime, timerfd_settime.
4190 * sysdeps/unix/sysv/linux/Versions: Add timerfd_create,
4191 timerfd_gettime, timerfd_settime for GLIBC_2.8.
4192
85202a2b
RM
41932008-02-08 Roland McGrath <roland@redhat.com>
4194
4195 * elf/elf.h (NT_PPC_SPE): New macro.
4196
708ef8a4
RM
41972008-02-06 Roland McGrath <roland@redhat.com>
4198
4199 * Makerules ($(common-objpfx)sysd-rules):
4200 Depend on $(sysdep-makeconfigs).
4201
363a641b
RM
42022008-01-31 Roland McGrath <roland@redhat.com>
4203
67fbfa5c
RM
4204 [BZ #5442]
4205 * configure.in: Use -print-file-name if it yields a directory,
4206 for each of include and include-fixed.
4207 * configure: Regenerated.
4208
363a641b
RM
4209 * Makeconfig (sysd-rules-targets): New variable.
4210 * sysdeps/unix/make-syscalls.sh: Use it in the rules emitted.
4211 * sysdeps/unix/Makefile (omit-deps): Append variants for each target.
4212
0f0f9610
RM
42132008-01-30 Roland McGrath <roland@redhat.com>
4214
7bd00dbf
RM
4215 * manual/libc.texinfo: Update back-cover text.
4216
0f0f9610
RM
4217 * elf/elf.h (NT_386_TLS): New macro.
4218
16cd816f
RM
42192008-01-29 Roland McGrath <roland@redhat.com>
4220
4221 * Makeconfig (sysd-rules-patterns): New variable.
4222 * Makerules ($(common-objpfx)sysd-rules): Drive the loop from that.
4223 (check-inhibit-asm): New canned sequence, replaces ...
4224 (open-check-inhibit-asm, close-check-inhibit-asm): ... these, removed.
4225 * elf/rtld-Rules ($(objpfx)rtld-%.os): Use $(rtld-CPPFLAGS) in commands.
4226 (rtld-CPPFLAGS): Renamed from CPPFLAGS-rtld.
4227 (CFLAGS-rtld): Variable removed.
4228
f641ffcc
RM
42292008-01-24 Roland McGrath <roland@redhat.com>
4230
4231 * configure.in: Let configure fragments set base_os.
4232 * configure: Regenerated.
4233
b7e26885
UD
42342008-01-22 Ulrich Drepper <drepper@redhat.com>
4235
4236 * po/ko.po: Update from translation team.
4237
b4b166af
UD
42382008-01-12 H.J. Lu <hongjiu.lu@intel.com>
4239
4240 * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Use short for fnstsw.
4241
f66def9d
AJ
42422008-01-12 Andreas Jaeger <aj@suse.de>
4243
4244 [BZ #5040]
4245 * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h (enum EPOLL_EVENTS):
4246 Add EPOLLRDHUP.
4247
d3bc5e77
RM
42482008-01-20 Samuel Thibault <samuel.thibault@ens-lyon.org>
4249
4250 * hurd/hurdsock.c (_hurd_socket_server): Return the standard
4251 error EAFNOSUPPORT rather than non-standard EPFNOSUPPORT.
4252 * sunrpc/bindrsvprt.c (bindresvport): Likewise.
4253
4c533566
UD
42542007-10-23 Alexandre Oliva <aoliva@redhat.com>
4255
4256 * include/link.h (FORCED_DYNAMIC_TLS_OFFSET): Define.
4257 * elf/dl-close.c (_dl_close): Check for it.
4258 * elf/dl-reloc.c (CHECK_STATIC_TLS): Likewise.
4259 (_dl_allocate_static_tls): Likewise.
4260 * elf/dl-tls.c (_dl_allocate_tls_init): Likewise.
4261 (__tls_get_addr): Protect from race conditions in setting l_tls_offset
4262 to it.
4263 * elf/tst-tls16.c: New file.
4264 * elf/tst-tlsmod16a.c: New file.
4265 * elf/tst-tlsmod16b.c: New file.
4266 * elf/Makefile: Add rules to build and run tst-tls16.
4267
a53d3f82
UD
42682008-01-16 Ulrich Drepper <drepper@redhat.com>
4269
a0f6c236
UD
4270 [BZ #5628]
4271 * bits/shm.h: Fix comment describing shmid_ds.
4272 * sysdeps/gnu/bits/shm.h: Likewise.
4273 * sysdeps/unix/sysv/linux/alpha/bits/shm.h: Likewise.
4274 * sysdeps/unix/sysv/linux/bits/shm.h: Likewise.
4275 * sysdeps/unix/sysv/linux/ia64/bits/shm.h: Likewise.
4276 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
4277 * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
4278 * sysdeps/unix/sysv/linux/sh/bits/shm.h: Likewise.
4279 * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
4280 * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Likewise.
4281 Patch by Hareesh Nagarajan <hareesh.nagarajan@gmail.com>.
4282
a53d3f82
UD
4283 [BZ #5607]
4284 * conform/data/fcntl.h-data: Fix posix_fadvise and posix_fallocate
4285 prototypes.
4286 * conform/data/limits.h-data: Adjust limits changed in v6 and add
4287 additional suffixes.
4288 * conform/data/mqueue.h-data: Fix typo in mq_curmsgs entry.
4289 Add optional functions mq_timedreceive and mq_timedsend.
4290 * conform/data/netdb.h-data: Add more AI_* and EAI_* constants.
4291 * conform/data/pthread.h-data: Fix prototype of
4292 pthread_condattr_setclock. pthread_sigmask is not required in v6.
4293 * conform/data/semaphore.h-data: Allow time.h definitions.
4294 * conform/data/signal.h-data: Likewise.
4295 * conform/data/stdio.h-data: getw and putw are not required in v6.
4296 * conform/data/stdlib.h-data: Change setstate prototype.
4297 * conform/data/string.h-data: Fix strerror_r prototype.
4298 * conform/data/time.h-data: Fix typo in TIMER_ABSTIME definition.
4299 * conform/data/unistd.h-data: pthread_atfork not required in v6.
4300 Fix readlink prototype.
4301 * conform/data/netinet/in.h-data: Add const to in6addr_any and
4302 in6addr_loopback.
4303 * inet/netinet/in.h: Cleanup namespace.
4304 * posix/regex.h: Likewise.
4305 * resolv/netdb.h: Likewise.
4306 * sysdeps/unix/sysv/linux/bits/in.h: Likewise.
4307 * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
4308 * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
6107639e
UD
4309 * sysdeps/posix/getaddrinfo.c (default_labels): Adjust for change
4310 of names of in in6_addr.
4311 (default_precedence): Likewise.
4312 * sysdeps/unix/sysv/linux/cmsg_nxthdr.c: Include <stddef.h> for
4313 NULL definition.
a53d3f82 4314
ebca8f73
UD
43152008-01-15 Ulrich Drepper <drepper@redhat.com>
4316
fbe90cd5
UD
4317 * conform/data/fmtmsg.h-data: Add missing allows.
4318 * conform/data/ftw.h-data: Likewise.
4319 * conform/data/inttypes.h-data: Likewise.
4320 * conform/data/math.h-data: Likewise.
4321 * conform/data/signal.h-data: Likewise.
4322 * conform/data/net/if.h-data: Likewise.
4323 * conform/data/netinet/in.h-data: Likewise.
4324 * conform/data/sys/socket.h-data: Likewise.
4325
ebca8f73
UD
4326 [BZ #5614]
4327 * string/bits/string2.h (__strtok_r_1c): Always update *__NEXTP.
4328 (__strtok_r): Simplify.
4329 * string/tester.c (test_strtok_r): Add test case for futile search
4330 with single-character seach string.
4331
7c33ca8b
UD
43322008-01-12 Ulrich Drepper <drepper@redhat.com>
4333
4334 * po/ko.po: Update from translation team.
4335
b8cc0848
AJ
43362008-01-11 Andreas Jaeger <aj@suse.de>
4337
4338 [BZ #5600]
4339 * sysdeps/unix/sysv/linux/sys/signalfd.h (struct
4340 signalfd_siginfo): Use 64-bit type for ssi_ptr to sync with Linux
4341 kernel header.
4342
49029a66
UD
43432008-01-10 Ulrich Drepper <drepper@redhat.com>
4344
4345 * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Store result of
4346 native interface lookup in all the relevant places.
4347
99f05798
UD
43482008-01-10 Jakub Jelinek <jakub@redhat.com>
4349 Ulrich Drepper <drepper@redhat.com>
0efd1956
UD
4350
4351 * sysdeps/posix/getaddrinfo.c (sort_results): Remove service_order
4352 field. Use sockaddr_in6 for source_addr.
4353 (get_scope): Change type of parameter to sockaddr_in6. Adjust.
4354 (match_prefix): Likewise.
4355 (get_label): Likewise.
4356 (get_precedence): Likewise.
4357 (rfc3484_sort): Change to use indirect access to results array.
4358 Adjust to use of sockaddr_in6. Replace service_order test with
4359 simple index comparison.
4360 (getaddrinfo): Define order array. Initialize it. Don't initialize
4361 service_order field. Adjust qsort_t calls. Access sorted result
4362 array indirectly through order array.
4363 * posix/tst-rfc3484.c: Adjust for change of rfc3484_sort.
4364 * posix/tst-rfc3484-2.c: Likewise.
4365 * posix/tst-rfc3484-3.c: Likewise.
4366
b3443701
UD
43672008-01-09 Ulrich Drepper <drepper@redhat.com>
4368
f6bacb8e
UD
4369 [BZ #5541]
4370 * sunrpc/rpc_thread.c (__rpc_thread_destroy): Also free xports and
4371 pollfd structures.
4372 Patch by André Cruz.
4373
aa693c68
UD
4374 [BZ #5545]
4375 * sunrpc/clnt_perr.c (clnt_sperror): Don't use fixed size buffer.
4376 (clnt_spcreateerror): Likewise.
4377
b3443701
UD
4378 [BZ #5553]
4379 * malloc/malloc.c (public_mALLOc): Set ar_ptr when trying main_arena.
4380 (public_mEMALIGn): Likewise.
4381 Patch mostly by Daniel Jacobowitz.
4382
148e12ed
UD
43832008-01-09 Jakub Jelinek <jakub@redhat.com>
4384
4385 * sysdeps/unix/sysv/linux/i386/makecontext.S (__makecontext): Avoid
4386 clobbering memory at or above uc_stack.ss_sp + uc_stack.ss_size.
4387 * stdlib/Makefile: Add rules to build and run tst-makecontext2.
4388 * stdlib/tst-makecontext2.c: New test.
4389
78c2bf0e 43902008-01-08 Jakub Jelinek <jakub@redhat.com>
4b1b449d
UD
4391
4392 * iconv/loop.c (UPDATE_PARAMS): Define to empty statement if not
4393 defined.
4394 (REINIT_PARAMS): Likewise. Undefine before end of file.
4395 (STANDARD_TO_LOOP_ERR_HANDLER): Use UPDATE_PARAMS before calling
4396 transliteration hooks and REINIT_PARAMS afterwards.
4397 * iconvdata/iso-2022-jp.c (BODY): Use a separate variable for
4398 status.
4399 (REINIT_PARAMS): Define.
4400 * iconvdata/ibm1364.c (REINIT_PARAMS): Likewise.
4401 * iconvdata/ibm930.c (REINIT_PARAMS): Likewise.
4402 * iconvdata/ibm933.c (REINIT_PARAMS): Likewise.
4403 * iconvdata/ibm935.c (REINIT_PARAMS): Likewise.
4404 * iconvdata/ibm937.c (REINIT_PARAMS): Likewise.
4405 * iconvdata/ibm939.c (REINIT_PARAMS): Likewise.
4406 * iconvdata/iso-2022-cn.c (REINIT_PARAMS): Likewise.
4407 * iconvdata/iso-2022-cn-ext.c (REINIT_PARAMS): Likewise.
4408 * iconvdata/iso-2022-jp-3.c (REINIT_PARAMS): Likewise.
4409 * iconvdata/iso-2022-kr.c (REINIT_PARAMS): Likewise.
4410 * iconvdata/Makefile: Add rules to build and run tst-iconv7.c.
4411 * iconvdata/tst-iconv7.c: New test.
4412
71edcafa
UD
44132008-01-07 Ulrich Drepper <drepper@redhat.com>
4414
4415 * libio/stdio.h (vscanf): Fix definition for loser compilers.
4416
0fbfe2f7
JJ
44172008-01-05 Jakub Jelinek <jakub@redhat.com>
4418
4419 [BZ #5112]
4420 * nscd/connections.c (restart): Fix condition.
4421
8726a12e
UD
44222008-01-03 Jakub Jelinek <jakub@redhat.com>
4423
4424 * ctype/ctype.h (__ctype_b_loc, __ctype_tolower_loc,
4425 __ctype_toupper_loc): Add __THROW.
4426
f4a1363e
UD
44272008-01-02 Ulrich Drepper <drepper@redhat.com>
4428
ad586879
UD
4429 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Fix
4430 recognition of interface family.
4431
f4a1363e
UD
4432 * posix/getconf.c: Update copyright year.
4433 * nss/getent.c: Likewise.
4434 * iconv/iconvconfig.c: Likewise.
4435 * iconv/iconv_prog.c: Likewise.
4436 * elf/ldconfig.c: Likewise.
4437 * catgets/gencat.c: Likewise.
4438 * csu/version.c: Likewise.
4439 * elf/ldd.bash.in: Likewise.
4440 * elf/sprof.c (print_version): Likewise.
4441 * locale/programs/locale.c: Likewise.
4442 * locale/programs/localedef.c: Likewise.
4443 * nscd/nscd.c (print_version): Likewise.
4444 * debug/xtrace.sh: Likewise.
4445 * malloc/memusage.sh: Likewise.
4446 * malloc/mtrace.pl: Likewise.
4447 * debug/catchsegv.sh: Likewise.
4448
0dc6c5e4
UD
44492007-12-26 Ulrich Drepper <drepper@redhat.com>
4450
4451 * nss/nsswitch.c (__nss_lookup): Actually use alternative name in
4452 second lookup.
4453
80af8b82
UD
44542007-12-23 Ulrich Drepper <drepper@redhat.com>
4455
4456 * sysdeps/x86_64/cacheinfo.c (intel_02_known): New entry 0x3f.
4457 * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
4458
4bcecfb7
RM
44592007-12-17 Roland McGrath <roland@redhat.com>
4460
4461 * inet/ether_line.c (ether_line): Remove unused variable.
4462
44632007-12-17 Samuel Thibault <samuel.thibault@ens-lyon.org>
4464
4465 * login/forkpty.c (forkpty): Add const qualifier to parameters termp
4466 and winp.
4467 * login/openpty.c (openpty): Likewise.
4468 * login/pty.h (openpty, forkpty): Likewise.
4469 * manual/terminal.texi (openpty, forkpty): Likewise.
4470
4cd4c5d6
UD
44712007-12-17 Ulrich Drepper <drepper@redhat.com>
4472
78c2bf0e 4473 * malloc/malloc.c (public_cALLOc): For arenas other than
4cd4c5d6
UD
4474 main_arena, count all bytes inside the mprotect_size range of the
4475 heap as uninitialized.
4476
68631c8e
UD
44772007-12-16 Ulrich Drepper <drepper@redhat.com>
4478
d9961b6a
UD
4479 * elf/tst-execstack.c (do_test): Don't fail if SELinux forbids
4480 executable stacks.
4481
68631c8e
UD
4482 * malloc/malloc.c (public_mTRIm): Iterate over all arenas and call
4483 mTRIm for all of them.
4484 (mTRIm): Additionally iterate over all free blocks and use madvise
4485 to free memory for all those blocks which contain at least one
4486 memory page.
be8c1500
UD
4487 * malloc/tst-trim1.c: New file.
4488 * malloc/Makefile (tests): Add tst-trim1.
68631c8e
UD
4489
4490 * malloc/malloc.c (do_check_malloc_state): Minimal cleanups.
4491
78b767a0
UD
44922007-12-14 Ulrich Drepper <drepper@redhat.com>
4493
4494 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INTERNAL_SYSCALL_ERROR_P):
4495 First cast argument to long
52386be7
UD
4496 * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_gettimeofday):
4497 Return long.
4498 (__vdso_clock_gettime): Likewise.
78b767a0
UD
4499 * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Functions
4500 return long.
4501
bc3e1c12
UD
45022007-12-13 Ulrich Drepper <drepper@redhat.com>
4503
4504 * locale/nl_langinfo.c (nl_langinfo): Just call __nl_langinfo_l.
4505 * locale/nl_langinfo_l.c: Real implementation, copied from
4506 nl_langinfo.c.
4507 * include/langinfo.h: Add libc_hidden_proto for __nl_langinfo_l.
4508
77751669
UD
45092007-12-01 Jim Meyering <meyering@redhat.com>
4510
4511 * posix/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
4512 that would inhibit utf8-optimization of a regexp containing line-
4513 or buffer-anchors, e.g., `^', `$'.
4514
f63e5063
UD
45152007-12-12 Ulrich Drepper <drepper@redhat.com>
4516
4517 * time/bug-getdate1.c (do_test): Don't use century values which
4518 aren't valid on 32-bit systems.
4519
a78814a9
UD
45202007-12-12 Jakub Jelinek <jakub@redhat.com>
4521
4522 * sysdeps/i386/i486/bits/string.h (memmove): Define as macro.
4523 (memmove): Rename to __memmove_g, with __asm__ ("memmove").
4524 * sysdeps/s390/bits/string.h (__strlen_g, __strcpy_g, __strncpy_g,
4525 __strcat_g, __strncat_g): Add __asm__.
4526
45272007-12-12 Ulrich Drepper <drepper@redhat.com>
4528
4529 [BZ #5477]
4530 * io/fchmodat.c: Fix typo in stub_warning use.
4531 Patch by Petr Salinger.
4532
17edb30c
UD
45332007-12-11 Ulrich Drepper <drepper@redhat.com>
4534
58d11795
UD
4535 * iconvdata/hp-thai8.c: New file.
4536 * iconvdata/Makefile: Add rules for hp-thai8.c.
4537 * iconvdata/tst-tables.sh: Add entry for HP-THAI8.
4538 * iconvdata/gconv-modules: Likewise.
4539
4540 [BZ #5464]
4541 * iconvdata/hp-greek8.c: New file.
4542 * iconvdata/Makefile: Add rules for hp-greek8.c.
4543 * iconvdata/tst-tables.sh: Add entry for HP-GREEK8.
4544 * iconvdata/gconv-modules: Likewise.
4545
4546 [BZ #5463]
4547 * iconvdata/hp-turkish8.c: New file.
4548 * iconvdata/Makefile: Add rules for hp-turkish8.c.
4549 * iconvdata/tst-tables.sh: Add entry for HP-TURKISH8.
4550 * iconvdata/gconv-modules: Likewise.
4551
cbf5760e
UD
4552 * malloc/arena.c (grow_heap): Split out code to shrink heap into...
4553 (shrink_heap): ... this new function.
4554 (heap_trim): Call shrink_heap instead of grow_heap.
4555
17edb30c
UD
4556 * malloc/malloc.c (_int_malloc): sYSMALLOc might fail, in this
4557 case don't call alloc_perturb.
4558
ae18718f
UD
45592007-12-10 Ulrich Drepper <drepper@redhat.com>
4560
4561 * sysdeps/unix/sysv/linux/adjtime.c: Use ADJ_OFFSET_SS_READ if
4562 possible.
4563 * sysdeps/unix/sysv/linux/kernel-features.h
4564 (__ASSUME_ADJ_OFFSET_SS_READ): Define for 2.6.24.
4565 * sysdeps/unix/sysv/linux/sys/timex.h (ADJ_OFFSET_SS_READ): Define.
4566
b4354cf4
UD
45672007-12-08 Ulrich Drepper <drepper@redhat.com>
4568
4569 [BZ #5424]
4570 * stdio-common/vfprintf.c: Do not overflow when adding to done.
4571 * stdio-common/Makefile (tests): Add bug22.
4572 * stdio-common/bug22.c: New file.
4573
4574 [BZ #5451]
4575 * time/getdate.c: Fix filling in default values.
4576 * time/bug-getdate1.c: New file.
4577 * time/Makefile: Add rules to build and run bug-getdate1.
4578
4579 * iconvdata/ebcdic-is-friss.c: Use 8bit-gap instead of 8bit-generic.
4580 * iconvdata/ebcdic-es.c: Likewise.
4581 * iconvdata/ebcdic-es-a.c: Likewise.
4582 * iconvdata/ebcdic-uk.c: Likewise.
4583 * iconvdata/iso8859-16.c: Likewise.
4584 * iconvdata/viscii.c: Likewise.
4585 * iconvdata/iso8859-9e.c: Likewise.
4586 * iconvdata/Makefile: Adjust appropriately.
4587
4588 [BZ #5428]
4589 * wcsmbs/wchar.h: Unconditionally undefine __need_mbstate and
4590 __need_wint_t.
4591
26e21e75
UD
45922007-12-07 Ulrich Drepper <drepper@redhat.com>
4593
87520ccc
UD
4594 [BZ #5427]
4595 * iconvdata/hp-roman9.c: New file.
4596 * iconvdata/Makefile: Add rules for hp-roman9.c.
4597 * iconvdata/tst-tables.sh: Add HP-ROMAN9.
b4354cf4 4598 * iconvdata/gconv-modules: Likewise.
87520ccc
UD
4599
4600 * iconvdata/hp-roman8.c: Use 8bit-gap instead of 8bit-generic.
4601 * iconvdata/Makefile: Adjust appropriately.
4602
26e21e75
UD
4603 [BZ #5441]
4604 * stdio-common/vfscanf.c (_IO_vfwscanf): Don't free ptrs_to_free
4605 structure, it's allocated with alloca.
4606 * stdio-common/Makefile (tests): Add bug21.
4607 * stdio-common/bug21.c: New file.
4608
46092007-12-06 Aurelien Jarno <aurelien@aurel32.net>
4610
4611 [BZ #5452]
4612 * sysdeps/unix/sysv/linux/bits/sched.h: Use __extension__
87520ccc 4613 keyword for gcc's braced-groups.
26e21e75
UD
4614
46152007-12-07 Ulrich Drepper <drepper@redhat.com>
4616
4617 [BZ #5454]
4618 * inet/ether_line.c: Strip hostname of whitespaces.
4619 * inet/Makefile (tests): Add tst-ether_line.
4620 * inet/tst-ether_line.c: New file.
4621
9e80c123
UD
46222007-12-03 Ulrich Drepper <drepper@redhat.com>
4623
da0ff4ae
UD
4624 [BZ #5439]
4625 * sysdeps/unix/sysv/linux/sys/signalfd.h: Fix use of __nonnull.
4626
51bd20d9
UD
4627 [BZ #5435]
4628 * sysdeps/unix/sysv/linux/i386/makecontext.S: Align stack.
4629
d90d0256
UD
4630 * stdlib/tst-setcontext.c: Catch the case where the links gets
4631 messed up and we do not reach main again.
4632
9e80c123
UD
4633 * po/ca.po: Update from translation team.
4634
ae4287f8
UD
46352007-11-26 Ulrich Drepper <drepper@redhat.com>
4636
6701afc7 4637 * posix/unistd.h: Declare fsync also for __USE_XOPEN2K.
79fb2e02 4638 * posix/regex.h (REG_ENOSYS): Likewise.
a912a4f8 4639 * wcsmbs/wchar.h: Define __need_file also for __USE_XOPEN2K.
ae4287f8 4640
30294ea4
UD
46412007-11-25 Ulrich Drepper <drepper@redhat.com>
4642
4643 * nscd/nscd.h (MAX_STACK_USE): Define.
4644 * nscd/mem.c (MAX_STACK_USE): Remove definition here.
4645 (gc): Initialize stack_used based on allocation in prune_cache.
4646 * nscd/cache.c (prune_cache): Use heap for mark array if necessary.
e8667ddc 4647 Clear array before use.
30294ea4
UD
4648
4649 * nscd/aicache.c (addhstaiX): Update statistics counter in case
10a4c1e9 4650 memory allocation failed.
e8667ddc
UD
4651 * nscd/hstcache.c (cache_addhst): Likewise.
4652 * nscd/grpcache.c (cache_addgr): Likewise.
4653 * nscd/servicescache.c (cache_addserv): Likewise.
4654 * nscd/pwdcache.c (cache_addpw): Likewise.
4655 * nscd/initgrcache.c (addinitgroupsX): Likewise.
30294ea4 4656
715db78b
UD
46572007-11-23 Ulrich Drepper <drepper@redhat.com>
4658
609bb071
UD
4659 * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Add open
4660 and creat system calls.
4661
715db78b
UD
4662 * sysdeps/unix/sysv/linux/check_native.c: Include <asm/types.h>.
4663
ea2c47b6
UD
46642007-11-23 Martin Schwidefsky <schwidefsky@de.ibm.com>
4665
4666 * sysdeps/unix/sysv/linux/Makefile [subdir=inet] (sysdep_headers):
4667 Add netiucv/iucv.h.
4668 * sysdeps/unix/sysv/linux/netiucv/iucv.h: New file.
4669 * sysdeps/unix/sysv/linux/opensock.c (__opensock): Add AF_IUCV
4670 protocol.
4671 * sysdeps/unix/sysv/linux/sa_len.c (__libc_sa_len): Likewise.
4672 * sysdeps/unix/sysv/linux/s390/opensock.c: New file.
4673 * sysdeps/unix/sysv/linux/s390/sa_len.c: New file.
4674
dcdcf4b9
UD
46752007-11-22 Martin Schwidefsky <schwidefsky@de.ibm.com>
4676
37143323
UD
4677 * sysdeps/s390/bits/string.h (strlen, strcpy, strncpy, strcat,
4678 strncat): Define as macros to avoid compile errors.
4679
dcdcf4b9
UD
4680 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Add open and
4681 creat entries.
4682
3a632674
UD
46832007-11-22 Ulrich Drepper <drepper@redhat.com>
4684
7ea8eb02
UD
4685 [BZ #5382]
4686 * nscd/nscd.h (NSCD_THREAD_STACKSIZE): Define.
4687 * nscd/connections.c (start_threads): Use NSCD_THREAD_STACKSIZE.
715db78b 4688 * nscd/mem.c (gc): Don't allocate arrays on the stack if they can
7ea8eb02 4689 overflow it.
70d5b6ef 4690 Partially based on a patch by Petr Baudis <pasky@suse.cz>.
7ea8eb02
UD
4691
4692 * sysdeps/unix/sysv/linux/nscd_setup_thread.c (setup_thread):
715db78b 4693 Return zero in case the thread library is not NPTL.
7ea8eb02 4694
5c3a3dba
UD
4695 [BZ #5375]
4696 * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix locking when
4697 initializing interface list.
4698
85883123
UD
4699 [BZ #5378]
4700 * nis/nss_compat/compat-initgroups.c (getgrent_next_nss): Don't
4701 use result of nss_getgrgid_r if nothing was found. For other
4702 error return with a failure.
4703 Partially based on a patch by Petr Baudis <pasky@suse.cz>.
4704
3a632674
UD
4705 * locale/programs/ld-collate.c (collate_read): Fix loop to match
4706 macro name.
4707
b73f9135
UD
47082007-11-19 Ulrich Drepper <drepper@redhat.com>
4709
ee72b971
UD
4710 * sysdeps/posix/getaddrinfo.c (defaults_scopes, scopes): New variables.
4711 (get_scope): For IPv4 scope, use scopes table.
4712 (fini): Free scopes table if necessary.
4713 (free_scopelist): New function.
4714 (scopecmp): New function.
4715 (gaiconf_init): Also handle scopev4 entries.
4716 * posix/tst-rfc3484.c (do_test): Initialize scopes.
4717 * posix/tst-rfc3484-2.c (do_test): Likewise.
4718 * posix/gai.conf: Document scopev4 defaults.
4719 * posix/Makefile (tests): Add tst-rfc3484-3.
4720 * posix/tst-rfc3484-3.c: New file.
4721
f4a79765
UD
4722 * sysdeps/posix/getaddrinfo.c (default_labels): Describe entry for
4723 Teredo tunnels.
b73f9135
UD
4724 * posix/gai.conf: Update for current default tables.
4725
429bd64d
UD
47262007-11-19 Ulrich Drepper <drepper@redhat.com>
4727
4728 * po/tr.po: Update from translation team.
4729
3c9af259
RM
47302007-11-18 Roland McGrath <roland@frob.com>
4731
76cf9889
RM
4732 * manual/arith.texi (Remainder Functions): Spelling fix.
4733 From Shaun Silk <genix@mysoul.com.au>.
4734
3c9af259
RM
4735 * sysdeps/mach/hurd/bits/fcntl.h (O_CLOEXEC): Fix value.
4736
238346ab
UD
47372007-11-17 Ulrich Drepper <drepper@redhat.com>
4738
5879ad50
UD
4739 * po/zh_CN.po: Update from translation team.
4740
238346ab
UD
4741 * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
4742 Add sys/signalfd.h and sys/eventfd.h.
4743
b80b9c77
UD
47442007-11-15 Bruno Haible <bruno@clisp.org>
4745
4746 [BZ #5346]
4747 * intl/dcigettext.c (struct known_translation_t): Turn msgid into a
4748 union.
4749 (transcmp): Use the appropriate part of s1->msgid and s2->msgid.
4750 (DCIGETTEXT): Change the allocation of the 'search' variable so that
4751 it needs only fixed stack space. Delay the initialization of
4752 msgid_len until it is needed.
4753
2da2501c
AJ
47542007-11-15 Andreas Jaeger <aj@suse.de>
4755
4756 * sysdeps/ieee754/dbl-64/sincos.tbl: Fix size of union.
4757 Reported by Christoph Quirin Lauter <christoph.lauter@ens-lyon.fr>.
4758
68a6dcf5
UD
47592007-11-15 Ulrich Drepper <drepper@redhat.com>
4760
4761 * po/ko.po: Update from translation team.
4762
43850227
UD
47632007-11-14 Ulrich Drepper <drepper@redhat.com>
4764
1e2692c9
UD
4765 * sysdeps/unix/sysv/linux/check_native.c (__check_native): Simplify
4766 significantly. The device type is also part of the ifinfomsg data.
4767
84e6cc7c 4768 * po/sv.po: Update from translation team.
cbd52634 4769 * po/nl.po: Likewise.
84e6cc7c 4770
f9e2261b
UD
4771 * nscd/cache.c (prune_cache): If cache is empty, instruct caller
4772 to wake up in 24 hours.
4773
43850227
UD
4774 * nscd/gai.c (__ioctl): Define. Include check_native.c.
4775
5742e960
UD
47762007-11-13 Ulrich Drepper <drepper@redhat.com>
4777
1a821d82
UD
4778 * po/cs.po: Update from translation team.
4779 * po/pl.po: Likewise.
4780
773e79b3
UD
4781 * include/ifaddrs.h: Remove in6ai_temporary.
4782 (struct in6addrinfo): Add index element.
4783 Declare __check_native.
4784 * inet/Makefile (aux): Add check_native.
4785 * sysdeps/unix/sysv/linux/check_native.c: New file.
4786 * sysdeps/unix/sysv/linux/check_pf.c: No need to recognize
4787 IFA_F_TEMPORARY. Pass back ifa_index.
4788 * sysdeps/posix/getaddrinfo.c: Remove netlink compatibility code.
4789 (rfc3484_sort): Add new parameter. Implement rule 7 correctly:
4790 call __check_native if necessary.
4791 (getaddrinfo): Fill in index field. Use qsort_r instead of qsort
4792 to sort addresses. Pass information about the results.
4793 * posix/tst-rfc3484.c: Adjust for addition of index field and change
4794 of rfc3484_sort interface.
4795 * posix/tst-rfc3484-2.c: Likewise.
4796
e458144c
UD
4797 * stdlib/stdlib.h: Define __compar_d_fn_t. Declare qsort_r.
4798 * include/stdlib.h: Add hidden_proto for qsort_t and adjust protoype
4799 for _quicksort.
4800 * stdlib/msort.c (qsort): Now a wrapper around qsort_r.
4801 (qsort_r): Renamed from qsort. Take additional parameter and pass it
4802 on as third parameter to compare function and _quicksort.
4803 * stdlib/qsort.c (_quicksort): Take additional parameter and pass on
4804 to the compare function.
4805 * stdlib/Versions [libc] (GLIBC_2.8): Add qsort_r.
4806 * Versions.def: Add GLIBC_2.8 for libc.
4807
bd63f380
UD
4808 * posix/tst-rfc3484.c: Adjust for addition of prefixlen field.
4809 * posix/tst-rfc3484-2.c: Likewise.
4810
5742e960
UD
4811 * include/kernel-features.h: Moved to...
4812 * sysdeps/mach/hurd/kernel-features.h: ...here.
4813
a6ac7fdb
RM
48142007-09-13 H.J. Lu <hongjiu.lu@intel.com>
4815
4816 * sysdeps/i386/i586/memcpy_chk.S: New file.
4817 * sysdeps/i386/i586/mempcpy_chk.S: Likewise.
4818 * sysdeps/i386/i586/memset_chk.S: Likewise.
4819
6f3914d5
UD
48202007-11-12 Ulrich Drepper <drepper@redhat.com>
4821
4822 * include/ifaddrs.c (struct in6addrinfo): Add prefixlen field.
4823 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Always return
4824 list of interfaces. Also store prefix length.
4825 * sysdeps/posix/getaddrinfo.c (sort_result): Add prefixlen element.
4826 (rfc3484_sort): In rule 9, for IPv4 addresses count only matching
4827 prefix if source and destination address are in the same subnet.
4828 (getaddrinfo): Always call __check_pf. Fill in prefixlen field.
4829 Always look for matching record in in6ai list.
4830 Correct source_addr_len value for IPv6->IPv4 converted records.
4831
78cf5f6a
RM
48322007-11-11 Roland McGrath <roland@frob.com>
4833
4834 * include/kernel-features.h: New file.
4835
7f745396
UD
48362007-11-10 Ulrich Drepper <drepper@redhat.com>
4837
01e7fdbb
UD
4838 * sysdeps/pthread/aio_misc.c (handle_fildes_io): Avoid unnecessary
4839 complications for 64-bit platforms.
4840
7f745396
UD
4841 * sysdeps/unix/sysv/linux/open64.c: Move __open64_2 implementation to..
4842 * sysdeps/unix/sysv/linux/open64_2.c: ...here. New file.
4843 * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines): Add
4844 open64_2.
4845 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Add open and creat
4846 entries.
4847 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
4848 * sysdeps/wordsize-64/alphasort.c: New file.
4849 * sysdeps/wordsize-64/alphasort64.c: New file.
4850 * sysdeps/wordsize-64/fseeko.c: New file.
4851 * sysdeps/wordsize-64/fseeko64.c: New file.
4852 * sysdeps/wordsize-64/ftello.c: New file.
4853 * sysdeps/wordsize-64/ftello64.c: New file.
4854 * sysdeps/wordsize-64/ftw.c: New file.
4855 * sysdeps/wordsize-64/ftw64.c: New file.
4856 * sysdeps/wordsize-64/iofgetpos.c: New file.
4857 * sysdeps/wordsize-64/iofgetpos64.c: New file.
4858 * sysdeps/wordsize-64/iofopen.c: New file.
4859 * sysdeps/wordsize-64/iofopen64.c: New file.
4860 * sysdeps/wordsize-64/iofsetpos.c: New file.
4861 * sysdeps/wordsize-64/iofsetpos64.c: New file.
4862 * sysdeps/wordsize-64/lockf.c: New file.
4863 * sysdeps/wordsize-64/lockf64.c: New file.
4864 * sysdeps/wordsize-64/mkostemp.c: New file.
4865 * sysdeps/wordsize-64/mkostemp64.c: New file.
4866 * sysdeps/wordsize-64/mkstemp.c: New file.
4867 * sysdeps/wordsize-64/mkstemp64.c: New file.
4868 * sysdeps/wordsize-64/scandir.c: New file.
4869 * sysdeps/wordsize-64/scandir64.c: New file.
4870 * sysdeps/wordsize-64/tmpfile.c: New file.
4871 * sysdeps/wordsize-64/tmpfile64.c: New file.
4872 * sysdeps/wordsize-64/versionsort.c: New file.
4873 * sysdeps/wordsize-64/versionsort64.c: New file.
4874 * sysdeps/unix/sysv/linux/wordsize-64/aio_read.c: New file.
4875 * sysdeps/unix/sysv/linux/wordsize-64/aio_read64.c: New file.
4876 * sysdeps/unix/sysv/linux/wordsize-64/aio_write.c: New file.
4877 * sysdeps/unix/sysv/linux/wordsize-64/aio_write64.c: New file.
4878 * sysdeps/unix/sysv/linux/wordsize-64/creat64.c: New file.
4879 * sysdeps/unix/sysv/linux/wordsize-64/getdirentries.c: New file.
4880 * sysdeps/unix/sysv/linux/wordsize-64/getdirentries64.c: New file.
4881 * sysdeps/unix/sysv/linux/wordsize-64/lio_listio.c: New file.
4882 * sysdeps/unix/sysv/linux/wordsize-64/lio_listio64.c: New file.
4883 * sysdeps/unix/sysv/linux/wordsize-64/open64.c: New file.
4884 * sysdeps/unix/sysv/linux/wordsize-64/openat.c: New file.
4885 * sysdeps/unix/sysv/linux/wordsize-64/openat64.c: New file.
4886
4887 * crypt/sha256-crypt.c: Fix a comment.
4888 * crypt/sha512-crypt.c: Likewise.
4889
f6ed654c
UD
48902007-11-07 H.J. Lu <hongjiu.lu@intel.com>
4891
4892 * sysdeps/x86_64/memset.S: Add sfence after movnti.
4893
f2a8406a
UD
48942007-11-07 Ulrich Drepper <drepper@redhat.com>
4895
4896 [BZ #5277]
4897 * iconv/loop.c (STANDARD_TO_LOOP_ERR_HANDLER): If conversion failed
4898 because output buffer is too small break, don't loop.
4899 * iconvdata/Makefile (tests): Add bug-iconv6.
4900 * iconvdata/bug-iconv6.c: New file.
4901
7fe4e0e8
UD
49022007-11-06 Ulrich Drepper <drepper@redhat.com>
4903
9ca230d6
UD
4904 * stdio-common/vfprintf.c (vfprintf): Compute necessary buffer size
4905 with size_t type.
4906 * stdio-common/printf_fp.c (__print_fp): Change chars_needed type to
4907 size_t. Add casts where needed.
4908
7fe4e0e8
UD
4909 * nscd/selinux.c (nscd_request_avc_has_perm): When compiled with
4910 old headers, don't call avc_has_perm if we don't have the
4911 permission information.
4912
b92e3780
UD
49132007-11-05 Daniel Jacobowitz <dan@codesourcery.com>
4914
4915 * elf/rtld.c (dl_main): Use the page size to find the map start.
4916
ffb1b882
UD
49172007-11-05 Ulrich Drepper <drepper@redhat.com>
4918
94a749f6
UD
4919 * time/tzfile.c (__tzfile_read): Fix check for version 0 data files.
4920 Patch by Szymon Siwek <sls@poczta.wp.pl>.
4921
ffb1b882
UD
4922 * nscd/aicache.c (addhstaiX): Check herrno after IPv4 lookup only
4923 when the lookup call failed.
4924
4925 * nscd/nscd.h (struct database_dyn): Rename prunelock to prune_lock.
4926 Add prune_cond and wakeup_time.
4927 (CACHE_PRUNE_INTERNAL): Define.
4928 Update declarations of prune_cache and setup_thread.
4929 * nscd/connections.c (dbs): Update initializers.
4930 (CACHE_PRUNE_INTERNAL): Moved to nscd.h.
4931 (nscd_init): Default number of threads is now 4.
4932 (invalidate_cache): Take lock before calling prune_cache.
4933 (handle_request): If SELinux forbids the request, say so.
4934 (readylist_cond): Use static initializer.
4935 (nscd_run_prune): New function. Used only by pruning threads.
4936 (nscd_run_worder): Renamed from nscd_run. Remove support for pruning
4937 here.
4938 (fd_ready): Update nscd_run reference.
4939 (start_threads): No need to initialize readylist_cond.
4940 Start pruning threads separately.
4941 * nscd/nscd_setup_thread.c: Change return value type to int and always
4942 return 0.
4943 * sysdeps/unix/sysv/linux/nscd_setup_thread.c: Change return value type
4944 to int and return nonzero value if we can use the TID address hack.
4945 * nscd/cache.c (cache_add): If next wakeup time of cleanup thread for
4946 the database is later than the new entry's timeout, update the
4947 wakeup time and wake the cleanup thread.
4948 (prune_cache): Return seconds the next entry in the database is still
4949 valid. Remove locking for pruning here.
4950 * nscd/nscd.conf: Document default number of threads.
4951
4c48ef06
UD
49522007-10-31 Ulrich Drepper <drepper@redhat.com>
4953
41ff2a49
UD
4954 * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Make sure
4955 stack is properly aligned for the target function.
4956 Correct unwind info.
ffb1b882 4957
4c48ef06
UD
4958 * elf/rtld.c (dl_main): Initialize stack and pointer guard early
4959 when using auditing libraries.
4960
384ca551
UD
49612007-10-29 Ulrich Drepper <drepper@redhat.com>
4962
31e2791c
UD
4963 * resolv/Versions [libresolv] (GLIBC_PRIVATE): Add
4964 _nss_dns_getnetbyaddr2_r.
4965 * resolv/nss_dns/dns-host.c: Define _nss_dns_getnetbyaddr2_r. Pass
4966 extra parameter to getanswer_r.
4967 (_nss_dns_getnetbyaddr_r): Now a wrapper around
4968 _nss_dns_getnetbyaddr2_r.
4969
384ca551
UD
4970 * nscd/Makefile (nscd-modules): Replace gethstbynm2_r with
4971 gethstbynm3_r.
4972 * nscd/gethstbynm2_r.c: Remove.
4973 * nscd/gethstbynm3_r.c: New file.
4974 * nscd/aicache.c (addhstaiX): Use __gethostbyaddr2_r instead of
4975 __gethostbyaddr_r.
4976 * nscd/gethstbyad_r.c: Generate __gethostbyaddr2_r function. Define
4977 __gethostbyaddr_r compatibility wrapper.
4978 * nscd/hstcache.c (cache_addhst): Add ttl parameter. Use it when
4979 determining timeout of entry.
4980 (lookup): Take new parameter and pass it to __gethostbyname3_r and
4981 __gethostbyaddr2_r.
4982 (addhstbyX): Pass reference to variable for TTL to lookup and
4983 cache_addhst.
4984 * nss/Versions [glibc] (GLIBC_PRIVATE): Export __nss_passwd_lookup2,
4985 __nss_group_lookup2, __nss_hosts_lookup2, __nss_services_lookup2,
4986 and __nss_next2. Remove __nss_services_lookup.
4987 * nss/XXX-lookup.c: Name function now *_lookup2. Add new parameter.
4988 Add compat wrapper.
4989 * nss/getXXbyYY_r.c: Changes to call new *_lookup2 functions and
4990 __nss_next2.
4991 * nss/getXXent_r.c: Likewise.
4992 * nss/getnssent_r.c: Likewise.
4993 * nss/nsswitch.c (__nss_lookup): Add new parameter. If first function
4994 does not exist in module, try the optional second name.
4995 (__nss_next2): New function.
4996 (__nss_next): Now wrapper around __nss_next2.
4997 * nss/nsswitch.h: Adjust __nss_lookup prototype.
4998 Declare __nss_next2.
4999 Adjust definition of db_lookup_function type.
5000 * nss/service-lookup.c: Define NO_COMPAT.
5001 * include/netdb.h: Declare __gethostbyaddr2_r and __gethostbyname3_r.
5002 * inet/ether_hton.c: Use __nss_next2 instead of __nss_next.
5003 * inet/ether_ntoh.c: Likewise.
5004 * sunrpc/netname.c: Likewise.
5005 * sunrpc/publickey.c: Likewise.
5006 * inet/getnetgrent.c: Likewise. Adjust calls to __nss_lookup.
5007 * inet/gethstbyad_r.c (DB_LOOKUP_FCT): Change to __nss_hosts_lookup2.
5008 * inet/gethstbynm2_r.c (DB_LOOKUP_FCT): Likewise.
5009 * inet/gethstbynm_r.c (DB_LOOKUP_FCT): Likewise.
5010 * inet/gethstent_r.c (DB_LOOKUP_FCT): Likewise.
5011
5012 * nscd/aicache.c (addhstaiX): Fix default TTL handling.
5013
5e37840c 5014 * inet/getnetgrent_r.c (setup): Encrypt static pointer.
384ca551 5015
88197030
UD
50162007-10-28 Ulrich Drepper <drepper@redhat.com>
5017
f160a450
UD
5018 [BZ #5204]
5019 * crypt/sha256c-test.c: Define TIMEOUT to 6 for ancient hardware.
5020 * crypt/sha512c-test.c: Likewise.
5021
4c6b2202
UD
5022 [BZ #5225]
5023 * stdio-common/vfscanf.c (_IO_vfwscanf): Don't misuse wp pointer
5024 to keep track of end of %[ format string element.
22c915ac
UD
5025 * stdio-common/Makefile (tests): Add bug20.
5026 * stdio-common/bug20.c: New file.
4c6b2202 5027
88197030
UD
5028 [BZ #5222]
5029 * elf/dl-load.c (_dl_rtld_di_serinfo): Correct handling of short
5030 path elements in counting mode.
5031
05d69147
UD
50322007-10-27 Andreas Jaeger <aj@suse.de>
5033
94833f11
UD
5034 [BZ #5040]
5035 * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLRDHUP): Add value.
5036
05d69147
UD
5037 [BZ #3112]
5038 * sysdeps/ia64/backtrace.c (init): Free shared library if incorrect.
5039 (__cleanup): Free shared library when exiting.
5040 * sysdeps/i386/backtrace.c (init): Free shared library if incorrect.
5041 (__cleanup): Free shared library when exiting.
5042
e6b29af8
UD
50432006-04-14 H.J. Lu <hongjiu.lu@intel.com>
5044
5045 [BZ #2549]
5046 * math/libm-test.inc (check_float_internal): Support
5047 denormalized return.
5048
ad3371fb
UD
50492007-10-23 Andreas Jaeger <aj@suse.de>
5050
5051 [BZ #5208]
5052 * sysdeps/unix/sysv/linux/readahead.c (__readahead): Use
5053 __LONG_LONG_PAIR to handle little endian byte order.
5054 Suggested by abhishekrai@google.com
5055
666aa020
UD
50562007-10-27 Ulrich Drepper <drepper@redhat.com>
5057
5058 * malloc/arena.c [!NO_THREADS]: Use ATFORK_MEM if defined.
5059
8ad343b3
UD
50602007-10-26 Ulrich Drepper <drepper@redhat.com>
5061
5062 * nscd/cache.c (prune_cache): Move test for modified file outside
5063 of locking.
5064
9251c568
AJ
50652007-10-21 Andreas Jaeger <aj@suse.de>
5066
5067 * manual/texinfo.tex: Update to latest version.
5068
5069 * manual/sysinfo.texi (System Parameters): Fix Formatting.
5070
5071 * manual/arith.texi (Status bit operations): Fix formatting.
5072
5073 * manual/errno.texi (Error Messages): Fix formatting.
5074
5075 * manual/sysinfo.texi (System Parameters): Fix formatting.
5076
5077 * manual/libc.texinfo: Update VERSION and UPDATED.
5078
260b2e06
RM
50792007-10-19 Roland McGrath <roland@redhat.com>
5080
5081 * elf/Makefile ($(objpfx)ld.so): Use $(AWK).
5082
46ae8850
JJ
50832007-10-06 David S. Miller <davem@davemloft.net>
5084
5085 * configure.in: Add sparcv9v2 and sparc64v2.
5086 * scripts/config.sub: Likewise.
5087 * configure: Regenerate.
5088 * elf/elf.h (HWCAP_SPARC_N2): New.
5089 * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Bump to 8.
5090 * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add 'v9v2'.
5091 (HWCAP_IMPORTANT): Add HWCAP_SPARC_N2.
5092 * sysdeps/sparc/sparc32/sparcv9/sparcv9v2/memcpy.S: New file.
5093 * sysdeps/sparc/sparc32/sparcv9/sparcv9v2/memset.S: New file.
5094 * sysdeps/sparc/sparc64/sparcv9v2/memcpy.S: New file.
5095 * sysdeps/sparc/sparc64/sparcv9v2/memset.S: New file.
5096
6fbfbd80
UD
50972007-10-18 Ulrich Drepper <drepper@redhat.com>
5098
5099 * sunrpc/clnt_udp.c (clntudp_call): Don't block in recvfrom call
5100 even if the poll result indicates there is data to read.
5101 Patch by Jeff Moyer <jmoyer@redhat.com>.
5102
39cfc9fa
RM
51032007-10-18 Roland McGrath <roland@redhat.com>
5104
5105 * elf/elf.h (NT_PPC_VMX): New macro.
28919a77 5106
39cfc9fa 51072007-10-17 Ulrich Drepper <drepper@redhat.com>
28919a77
UD
5108
5109 * version.h (VERSION): Set to 2.7.90.
5110
ed13ccf1
JJ
51112007-10-17 Jakub Jelinek <jakub@redhat.com>
5112
5113 * sysdeps/x86_64/memset.S (bzero): Renamed to __bzero. Add
5114 weak_alias.
5115
ee9fd869
RM
51162007-10-17 Roland McGrath <roland@frob.com>
5117
5118 * sysdeps/mach/hurd/bits/fcntl.h [__USE_GNU__] (F_DUPFD_CLOEXEC): New.
5119 * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Implement it.
5120
1aa5e4d7
UD
51212007-10-17 Ulrich Drepper <drepper@redhat.com>
5122
50c9fbbf 5123 * version.h (VERSION): Bump to 2.7.
777bc4bf 5124 * include/features.h (__GLIBC_MINOR__): Bump to 7.
50c9fbbf 5125
58423c7d
UD
5126 [BZ #5186]
5127 * time/tzset.c (__tz_convert): Don't force testing for a change of
5128 TZ if not called from localtime. But then also see whether the
5129 file changed, in case __use_tzfile is set.
5130
1aa5e4d7
UD
5131 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define F_DUPFD_CLOEXEC.
5132 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
5133 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
5134 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
5135 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
5136 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
5137 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
5138 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
5139
fc4837e5
UD
51402007-10-17 Jakub Jelinek <jakub@redhat.com>
5141
5142 * sysdeps/posix/getaddrinfo.c (getaddrinfo): When sorting addresses
5143 and admin selects to be able to replace the gai.conf file, lock
5144 data structures around the qsort call.
5145
62eaf7c8
UD
51462007-10-17 Ulrich Drepper <drepper@redhat.com>
5147
406f28db
UD
5148 * sysdeps/x86_64/cacheinfo.c: Comment out code added in support of
5149 new memset.
ac1cb5da 5150 * sysdeps/x86_64/memset.S: Revert to old version for now. The cost is
406f28db
UD
5151 too high for the improvements. Implement bzero unconditionally for
5152 use in libc.
ac1cb5da
UD
5153
51542007-10-17 Ulrich Drepper <drepper@redhat.com>
5155 Jakub Jelinek <jakub@redhat.com>
5156
62eaf7c8
UD
5157 * time/tzfile.c (__tzfile_read): Read POSIX TZ string if available
5158 even when time_t is 32-bit.
5159 (__tzfile_compute): Override POSIX TZ string STD/DST zone names if
5160 timezone data read by __tzfile_default. Ensure __tzname[0] is
5161 always set after the search.
5162
6a649d25
UD
51632007-10-16 Ulrich Drepper <drepper@redhat.com>
5164
5165 * time/tzfile.c (__tzfile_read): Help the compiler recognize
5166 unreachable code on 32-bit machines.
5167
800d6f9e
UD
51682007-10-16 Jakub Jelinek <jakub@redhat.com>
5169
5170 [BZ #5184]
5171 * time/strftime_l.c: Include stdbool.h.
5172 (my_strftime): New wrapper, old function renamed to...
5173 (__strftime_internal): ... new function. Add tzset_called
5174 argument, pass it down to recursive calls, don't call tzset ()
5175 if already true, set to true after call to tzset ().
62eaf7c8 5176
69819d92
UD
51772007-10-16 Ulrich Drepper <drepper@redhat.com>
5178
5179 * time/tzfile.c (__tzfile_read): Take extra memory requested by caller
5180 into account when copying TZ string.
5181
62eaf7c8
UD
51822007-10-16 Jakub Jelinek <jakub@redhat.com>
5183
5184 * time/tzfile.c (__tzfile_compute): For use_last case set i to
5185 num_transition rather than num_transitions - 1.
5186
0308ad66
JJ
51872007-10-16 Jakub Jelinek <jakub@redhat.com>
5188
8d137b60
JJ
5189 * sysdeps/x86_64/memset.S (memset): Fix sse2_nt_move
5190 PIC indirect jump.
5191
0308ad66
JJ
5192 * sysdeps/x86_64/memset.S: Jump from bzero to memset using
5193 a local label rather than HIDDEN_JUMPTARGET.
5194
e2b393bc
UD
51952007-10-15 Ulrich Drepper <drepper@redhat.com>
5196
5197 * sysdeps/x86_64/cacheinfo.c (__x86_64_shared_cache_size): Define.
5198 (init_cacheinfo): Initialize it.
5199 * sysdeps/x86_64/memset.S: Use __x86_64_shared_cache_size.
5200 Always define bzero.
5201 Remove non-glibc code.
5202 * sysdeps/x86_64/bzero.S: Make an empty file.
5203
52042007-10-15 H.J. Lu <hongjiu.lu@intel.com>
5205
5206 * sysdeps/x86_64/cacheinfo.c
5207 (__x86_64_preferred_memory_instruction): New.
5208 (init_cacheinfo): Initialize __x86_64_preferred_memory_instruction.
5209
5210 * sysdeps/x86_64/memset.S: Rewrite.
5211
0fbfcb7b
RM
52122007-10-15 Roland McGrath <roland@redhat.com>
5213
5214 * po/libc.pot: Regenerated.
5215
2884dad4
UD
52162007-10-15 Ulrich Drepper <drepper@redhat.com>
5217
e2b393bc 5218 * nss/getXXbyYY_r.c (REENTRANT_NAME): Mangle startp and start_fct
d96a2216
UD
5219 pointers.
5220
2884dad4
UD
5221 [BZ #3425]
5222 * resolv/nss_dns/dns-host.c (getanswer_r): Fail with
5223 NSS_STATUS_NOTFOUND if the server replied with only a CNAME and no
5224 address record to T_A/T_AAAA requests.
5225
89dc9d4c
UD
52262007-10-14 Ulrich Drepper <drepper@redhat.com>
5227
8d97ac13
UD
5228 * posix/glob.c: Reimplement link_exists_p to use fstatat64.
5229
1b6aa63f
UD
5230 * posix/glob.c: Add some branch prediction throughout.
5231
895a08c0
UD
5232 * nscd/nscd_getgr_r.c (nscd_getgr_r): Store result of successful
5233 read from nscd.
5234
6f55ed88
UD
5235 * sysdeps/posix/getaddrinfo.c (struct sort_result): Add
5236 service_order.
8d62c8ab
UD
5237 (rfc3484_sort): Make sure that even if qsort doesn't support
5238 stable sorting out sorting here is stable by comparing service_order.
6f55ed88 5239 (getaddrinfo): Initialize service_order.
a94673e6
UD
5240 * posix/tst-rfc3484.c (do_test): Adjust for addition of
5241 service_order field to sorting structure.
dfcf64ce 5242 * posix/tst-rfc3484-2.c (do_test): Likewise.
6f55ed88 5243
fa76dde2
UD
5244 * include/time.h: Declare __tzset_parse_tz and __tzset_compute.
5245 * time/tzset.c (tzset_internal): Break TZ string parsing out into
5246 __tzset_parse_tz and updating of daylight, timezone, tzname into
5247 update_vars.
5248 (__tz_compute): Renamed from tz_compute. Take additional parameters.
5249 (__tz_convert): Updating of tm_isdst, tm_zone, and tm_gmtoff now
5250 happens in __tz_compute.
5251 * time/tzfile.c (__tzfile_read): Also read TZ string.
5252 (find_transition): Fold into __tzfile_compute.
5253 (__tzfile_compute): For times beyond the last transition try to
5254 use the TZ string.
5255 * timezone/tst-timezone.c: Information in daylight and tzname does
5256 change for Asia/Tokyo timezone with more concrete information.
5257 Remove the test.
5258
5259 * include/stdio.h: Add libc_hidden_proto for ftello.
5260 * libio/ftello.c: Add libc_hidden_def.
5261
89dc9d4c
UD
5262 [BZ #1140]
5263 * time/tzfile.c (__tzfile_compute): Compute tzname[] values based
5264 on the specified time and not the last entries in the file. Move
5265 code to determine tzname[] to...
5266 (find_transition): ...here. Add ugly guess for times before the
5267 first transition.
5268
f7140274
UD
52692007-10-13 Ulrich Drepper <drepper@redhat.com>
5270
cfca0aa3
UD
5271 [BZ #3195]
5272 * nscd/nscd_getai.c (__nscd_getai): Set errno to 0 in case we found
5273 no entry.
5274 * nscd/nscd_getgr.c (nscd_getgr_r): Likewise.
5275 * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
5276 * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
5277 * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
5278
43d3e6bd
UD
5279 * nscd/nscd_getgr_r.c (nscd_getgr_r): Optimize a bit: use simpler
5280 read mechanism when there are no group members and avoid no-op
5281 read syscall in this case.
5282
f7140274
UD
5283 [BZ #3242]
5284 * nscd/nscd_helper.c (wait_on_socket): Take timeout as parameter.
5285 (__readall): If reading failed due to EAGAIN error wait a bit
5286 and possibly try again.
5287 (__readvall): Likewise.
5288
656f02ce
UD
52892007-10-13 Bruno Haible <bruno@clisp.org>
5290
5291 * intl/dcigettext.c (_nl_find_msg): Unlock the conversions_lock
5292 when we cannot recode the message.
5293
0ea49677
UD
52942007-10-13 Ulrich Drepper <drepper@redhat.com>
5295
5296 [BZ #4359]
5297 * libio/__freading.c (__freading): Don't return true for
ed36f224
UD
5298 write-only streams. For read/write streams, check whether we
5299 performed a read operation already.
7e39d802
UD
5300 * libio/Makefile (tests): Add tst-ext2.
5301 * libio/tst-ext2.c: New file.
0ea49677 5302
78a9b2dc
UD
53032007-10-12 Ulrich Drepper <drepper@redhat.com>
5304
fab1a490
UD
5305 * locale/programs/repertoire.c (repertoire_read): Always free
5306 memory for repertoire file name [Coverity CID 270].
5307
78a9b2dc
UD
5308 * elf/cache.c (save_aux_cache): Free memory allocated for
5309 temporary file name [Coverity CID 267].
5310
29d49a1a
JJ
53112007-10-12 Jakub Jelinek <jakub@redhat.com>
5312
5313 * misc/Makefile (headers): Add bits/error.h.
5314
d074d36d
UD
53152007-10-12 Ulrich Drepper <drepper@redhat.com>
5316
b7d1c5fa
UD
5317 * posix/fnmatch_loop.c: Take rule index returned as part of
5318 findidx return value into account when accessing weights.
5319 * posix/regcomp.c: Likewise.
5320 * posix/regexec.c: Likewise.
5321
d074d36d
UD
5322 * locale/programs/ld-collate.c (collate_read): Optimize a bit.
5323 (skip_to): Fix problems with parameter of elifdef/elifndef.
5324
26a51060
UD
53252007-10-11 Ulrich Drepper <drepper@redhat.com>
5326
5327 * iconv/gconv_simple.c: Add some branch prediction.
5328
6dd3748b
UD
53292007-10-12 Jakub Jelinek <jakub@redhat.com>
5330
5331 * locale/programs/ld-collate.c (collate_read): If ignore_content
5332 and nowtok is tok_define, eat any tok_eol tokens.
5333
d0b5557d
JJ
53342007-10-11 Jakub Jelinek <jakub@redhat.com>
5335
5336 * sysdeps/gnu/netinet/tcp.h: Include sys/socket.h if __USE_MISC.
5337 (struct tcp_md5sig): Change tcpm_addr type to struct sockaddr_storage.
5338
5339 * inet/netinet/in.h: Don't include bits/socket.h.
5340 * sysdeps/unix/sysv/linux/bits/socket.h: Only check _SYS_SOCKET_H
5341 macro.
5342 * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Likewise.
5343
3a054d7a
UD
53442007-10-10 Ulrich Drepper <drepper@redhat.com>
5345
5346 * locale/programs/locfile-token.h: Remove tok_elif, add tok_elifdef
5347 and tok_elifndef.
5348 * locale/programs/locfile-kw.gperf: Likewise.
5349 * locale/programs/ld-collate.c: Implement primitive preprocessor.
5350
c06b7169
UD
53512007-10-10 Jakub Jelinek <jakub@redhat.com>
5352
5353 * stdio-common/printf-parse.h: Include string.h and wchar.h.
5354 (__find_specwc): Change into __extern_always_inline function.
5355 (__find_specmb): Likewise. Remove ps argument. Use __strchrnul.
5356 (__parse_one_specmb): Remove ps argument.
5357 * stdio-common/vfprintf.c (vfprintf): Remove mbstate variable.
5358 Adjust __find_specmb and __parse_one_specmb callers.
5359 * stdio-common/printf-prs.c (parse_printf_format): Likewise.
5360 * stdio-common/printf-parsemb.c (__find_specwc, __find_specmb):
5361 Removed.
5362 (__parse_one_specmb): Remove ps argument, adjust __find_specmb
5363 caller.
5364
5a01ab7b
UD
53652007-10-09 Ulrich Drepper <drepper@redhat.com>
5366
5367 * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Work around problem
5368 with some Pentium Ds.
5369
e3f8e049
UD
53702007-10-08 Ulrich Drepper <drepper@redhat.com>
5371
5372 * sysdeps/unix/sysv/linux/eventfd_read.c (eventfd_read): Use
5373 __read not read.
5374 * sysdeps/unix/sysv/linux/eventfd_write.c (eventfd_write): Use
5375 __write not write.
5376
a1a363d2
UD
53772007-10-07 Ulrich Drepper <drepper@redhat.com>
5378
a1160714
UD
5379 [BZ #181]
5380 * locale/C-time.c: Set week_1stday data to 19971201.
659a9013
UD
5381 * locale/programs/ld-time.c (time_finish): Default for
5382 first_workday is Monday.
a1160714 5383
bb27a6eb
UD
5384 [BZ #2633]
5385 * wcsmbs/wchar.h: Move many C99 functions into std namespace.
5386
c8d48fae
UD
5387 [BZ #5103]
5388 * posix/glob.c (glob): Recognize patterns starting \/.
5389 * posix/tst-gnuglob.c (find_file): Handle absolute path names.
5390 (main): Add test for pattern starting \/.
5391
a1a363d2
UD
5392 * misc/error.h: Use __const instead of const.
5393 * misc/bits/error.h: Likewise.
5394
53952007-10-07 Andreas Jaeger <aj@suse.de>
5396
5397 * include/bits/error.h: New file.
5398
5399 * misc/bits/error.h (error_at_line): Fix prototype.
5400
71894681
UD
54012007-10-06 Ulrich Drepper <drepper@redhat.com>
5402
a6fa5328
UD
5403 [BZ #3924]
5404 * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix a few
5405 more little bugs in creating the stack frame when pltexit has to
5406 be called.
5407
8c7661bc 5408 * nscd/nscd_helper.c (__nscd_cache_search): Prevent endless loops.
50607309 5409 * nscd/connections.c (verify_persistent_db): Recognize circular lists.
8c7661bc 5410
c039eedd
UD
5411 [BZ #4407]
5412 * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Fix *signgamp for -0.0.
5413 * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
5414 * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
5415 * math/libm-test.inc: Add test for this case.
5416
71894681
UD
5417 [BZ #5010]
5418 * sunrpc/svc.c (struct svc_callout): Add sc_mapped element.
5419 (svc_register): Initialize sc_mapped. Set to TRUE if call to
5420 map service succeeded.
5421 (svc_is_mapped): New function.
5422 (svc_unregister): Use it before trying to unmap service.
5423
34c2c092
UD
54242007-10-05 Ulrich Drepper <drepper@redhat.com>
5425
d10737e4
UD
5426 * timezone/zic.c: Update from tzcode2007h.
5427
5428 [BZ #5063]
5429 * timezone/africa: Update from tzdata2007h.
5430 * timezone/antarctica: Likewise.
5431 * timezone/asia: Likewise.
5432 * timezone/australasia: Likewise.
5433 * timezone/europe: Likewise.
5434 * timezone/leapseconds: Likewise.
5435 * timezone/northamerica: Likewise.
5436 * timezone/southamerica: Likewise.
5437 * timzeone/zone.tab: Likewise.
5438
0304f168
UD
5439 [BZ #5104]
5440 * elf/do-lookup.h (do_lookup_x): Don't ignore STT_COMMON symbols.
5441
a83b5649
UD
5442 [BZ #5113]
5443 * string/bits/string2.h (__strdup): Cast parameters to calloc to
5444 avoid warning with -Wconversion.
5445 (__strndup): Likewise.
c039eedd 5446 Half the patch by Christian Iseli <christian.iseli@licr.org>.
a83b5649 5447
3e6ce4d7
UD
5448 [BZ #5112]
5449 * nscd/connections.c (restart): Don't resync if database is
5450 disabled. Patch mostly by Brian De Wolf <bldewolf@csupomona.edu>.
5451
8e351378
UD
5452 * sysdeps/gnu/netinet/tcp.h: Define TCP_MD5SIG, TCP_MD5SIG_MAXKEYLEN,
5453 struct tcp_md5sig. Extend struct tcp_info according to recent kernels.
5454
5455 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add eventfd,
5456 evetnfd_read, eventfd_write.
5457 * sysdeps/unix/sysv/linux/eventfd.c: New file.
5458 * sysdeps/unix/sysv/linux/eventfd_read.c: New file.
5459 * sysdeps/unix/sysv/linux/eventfd_write.c: New file.
5460 * sysdeps/unix/sysv/linux/sys/eventfd.h: New file.
d10737e4 5461 * sysdeps/unix/sysv/linux/Versions: Export eventfd, eventfd_read,
8e351378
UD
5462 eventfd_write for GLIBC_2.7.
5463
34c2c092
UD
5464 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add signalfd.
5465 * sysdeps/unix/sysv/linux/signalfd.c: New file.
5466 * sysdeps/unix/sysv/linux/sys/signalfd.h: New file.
5467 * sysdeps/unix/sysv/linux/Versions: Export signalfd for GLIBC_2.7.
5468
6789aaaa 54692007-10-04 Jakub Jelinek <jakub@redhat.com>
375d9429
UD
5470
5471 * stdlib/msort.c: Include stdint.h.
5472 (struct msort_param): New type.
5473 (msort_with_tmp): Use struct msort_param pointer for unchanging
5474 parameters. Add optimized handling for several common sizes
5475 and indirect sorting mode.
5476 (qsort): Adjust msort_with_tmp callers. For big S use indirect
5477 sorting.
5478 Suggested by Belazougui Djamel .
5479
5480 * stdlib/Makefile (tests): Add tst-qsort2.
5481 * stdlib/tst-qsort2.c: New test.
5482
b80bfc8b
UD
54832007-10-04 Ulrich Drepper <drepper@redhat.com>
5484
174420d2
UD
5485 * login/login_tty.c (login_tty): The Linux kernel can return EBUSY
5486 for dup2 in case another thread races with the current one. Retry
5487 in this case.
5488
b80bfc8b
UD
5489 * misc/error.h: Remove support for use outside of libc. We have to
5490 include <features.h> now. Include <bits/error.h> if possible.
5491 * misc/bits/error.h: New file.
5492
6789aaaa 54932007-10-03 Jakub Jelinek <jakub@redhat.com>
ee868c89 5494
e5dd2178
UD
5495 * string/bits/string3.h (memcpy, memmove, mempcpy, memset, bcopy,
5496 bzero, strcpy, stpcpy, strncpy, strcat, strncat): Use
5497 __extern_always_inline functions unconditionally, drop macros.
5498
ac97dec1
UD
5499 * misc/sys/cdefs.h (__REDIRECT_LDBL, __REDIRECT_NTH_LDBL): New macros.
5500 * wcsmbs/bits/wchar2.h (__swprintf_alias, __vswprintf_alias): Use
5501 __REDIRECT_NTH_LDBL macro rather than __REDIRECT_NTH.
5502
ee868c89
UD
5503 * misc/sys/cdefs.h (__extern_always_inline): For GCC 4.3+
5504 add __artificial__ attribute.
5505
80e069e0
UD
55062007-10-02 Ulrich Drepper <drepper@redhat.com>
5507
6e682cf5
UD
5508 * string/strcoll_l.c (STRCOLL): Correct handling of switching from
5509 backward to forward direction.
5510
90241a20
UD
5511 * string/strcoll_l.c (STRCOLL): Correct test for alloca use.
5512
80e069e0
UD
5513 [BZ #645]
5514 * locale/programs/ld-collate.c (collate_finish): Compare against last
5515 used section which is known to have rules defined.
5516 (collate_read): After order_start, correctly record order of sections
5517 and queue sections up.
5518
035ef8d7
UD
55192007-10-01 Ulrich Drepper <drepper@redhat.com>
5520
95bddc0c
UD
5521 [BZ #5071]
5522 * malloc/malloc.c (mremap_chunk): Avoid resizing of new block has
5523 the same number of pages.
5524 Patch by Tomash Brechko <tomash.brechko@gmail.com>.
5525
c8caf089
UD
5526 * locale/programs/ld-collate.c (collate_read): After initial copy
5527 statement, continue in state 0.
5528
035ef8d7
UD
5529 * include/stdio_ext.h (__fsetlocking): Define as macro.
5530
592a95ee
UD
55312007-09-30 Ulrich Drepper <drepper@redhat.com>
5532
56ebeb41
UD
5533 * locale/programs/ld-collate.c (collate_finish): Compare all bytes
5534 of section order.
5535
592a95ee
UD
5536 * po/pt_BR.po: Fix typo.
5537
6c522e21
UD
55382007-09-29 Ulrich Drepper <drepper@redhat.com>
5539
8ad5c3cd
UD
5540 * iconvdata/Makefile (modules): Add ISO8859-9E.
5541 (distribute): Add iso8859-9e.c.
5542 (gen-8bit-gap-modules): Add iso8859-9e.
5543 * iconvdata/iso8859-9e.c: New file.
5544 * iconvdata/gconv-modules: Add entries for ISO-8859-9E.
5545 * iconvdata/TESTS: Likewise.
5546 * iconvdata/tst-tables.sh: Likewise.
5547
5548 * iconvdata/koi8-r.c (HAS_HOLES): Define to 0.
5549
6c522e21
UD
5550 * locale/iso-639.def: Add several new entries.
5551
385b4cf4
UD
55522007-09-24 Jakub Jelinek <jakub@redhat.com>
5553
5554 * sysdeps/generic/ldsodefs.h (struct dl_scope_free_list): Store
5555 void * pointers instead of struct link_map **.
5556 (_dl_scope_free): Change argument type to void *.
5557 * include/link.h (struct link_map): Change type of l_reldeps
5558 to struct link_map_reldeps, move l_reldepsact into that
5559 struct too.
5560 * elf/dl-deps.c: Include atomic.h.
5561 (_dl_map_object_deps): Only change l->l_initfini when it is
5562 fully populated, use _dl_scope_free for freeing it. Optimize
5563 removal of libs from reldeps by using l_reserved flag, when
5564 some removal is needed, allocate a new list instead of
5565 reallocating and free the old with _dl_scope_free. Adjust
5566 for l_reldeps and l_reldepsact changes.
5567 * elf/dl-lookup.c (add_dependency): Likewise. Reorganize to allow
5568 searching in l_initfini and l_reldeps without holding dl_load_lock.
5569 * elf/dl-fini.c (_dl_sort_fini): Adjust for l_reldeps and
5570 l_reldepsact changes.
5571 * elf/dl-close.c (_dl_close_worker): Likewise.
5572 * elf/dl-open.c (_dl_scope_free): Change argument type to void *.
5573
90bf831b
UD
55742007-09-28 Ulrich Drepper <drepper@redhat.com>
5575
5576 * iconvdata/Makefile (modules): Add KOI8-RU.
5577 (distribute): Add koi8-ru.c.
5578 (gen-8bit-gap-modules): Add koi8-ru.
5579 * iconvdata/koi8-ru.c: New file.
5580 * iconvdata/gconv-modules: Add entries for KOI8-RU.
5581 * iconvdata/TESTS: Likewise.
5582 * iconvdata/tst-tables.sh: Likewise.
5583
5584 * iconvdata/koi8-r.c (HAS_HOLES): Define to 0.
5585
d6cd6bf4
UD
55862007-09-26 Jakub Jelinek <jakub@redhat.com>
5587
5588 * misc/sys/cdefs.h (__warndecl, __errordecl): For GCC 4.3+ define
5589 with __warning__/__error__ attributes.
5590 (__warnattr): Define.
5591 * stdlib/bits/stdlib.h (__realpath_chk_warn, __ptsname_r_chk_warn,
5592 __mbstowcs_chk_warn, __wcstombs_chk_warn): New aliases with
5593 __warnattr.
5594 (realpath, ptsname_r, mbstowcs, wcstombs): Call __*_chk_warn instead
5595 of __*_chk if compile time detectable overflow is found.
5596 * libio/bits/stdio2.h (__fgets_chk_warn, __fread_chk_warn,
5597 __fgets_unlocked_chk_warn, __fread_unlocked_chk_warn): New aliases
5598 with __warnattr.
5599 (fgets, fread, fgets_unlocked, fread_unlocked): Call __*_chk_warn
5600 instead of __*_chk if compile time detectable overflow is found.
5601 (__gets_alias): Rename to...
5602 (__gets_warn): ... this. Add __warnattr.
5603 (gets): Call __gets_warn instead of __gets_alias.
5604 * socket/bits/socket2.h (__recv_chk_warn, __recvfrom_chk_warn): New
5605 aliases with __warnattr.
5606 (recv, recvfrom): Call __*_chk_warn instead of __*_chk if compile
5607 time detectable overflow is found.
5608 * posix/bits/unistd.h (__read_chk_warn, __pread_chk_warn,
5609 __pread64_chk_warn, __readlink_chk_warn, __readlinkat_chk_warn,
5610 __getcwd_chk_warn, __confstr_chk_warn, __getgroups_chk_warn,
5611 __ttyname_r_chk_warn, __getlogin_r_chk_warn, __gethostname_chk_warn,
5612 __getdomainname_chk_warn): New aliases with __warnattr.
5613 (read, pread, pread64, readlink, readlinkat, getcwd, confstr,
5614 getgroups, ttyname_r, getlogin_r, gethostname, getdomainname): Call
5615 __*_chk_warn instead of __*_chk if compile time detectable overflow
5616 is found.
5617 (__getgroups_chk): Rename argument to __listlen from listlen.
5618 (__getwd_alias): Rename to...
5619 (__getwd_warn): ... this. Add __warnattr.
5620 (getwd): Call __getwd_warn instead of __getwd_alias.
5621 * wcsmbs/bits/wchar2.h (__wmemcpy_chk_warn, __wmemmove_chk_warn,
5622 __wmempcpy_chk_warn, __wmemset_chk_warn, __wcsncpy_chk_warn,
5623 __wcpncpy_chk_warn, __fgetws_chk_warn, __fgetws_unlocked_chk_warn,
5624 __mbsrtowcs_chk_warn, __wcsrtombs_chk_warn, __mbsnrtowcs_chk_warn,
5625 __wcsnrtombs_chk_warn): New aliases with __warnattr.
5626 (wmemcpy, wmemmove, wmempcpy, wmemset, mbsrtowcs, wcsrtombs,
5627 mbsnrtowcs, wcsnrtombs): Call __*_chk_warn instead of __*_chk if
5628 compile time detectable overflow is found.
5629 (wcsncpy, wcpncpy): Likewise. For constant __n fix check whether
5630 to use __*_chk or not.
5631 (fgetws, fgetws_unlocked): Divide __bos by sizeof (wchar_t), both
5632 in comparisons which function should be called and in __*_chk*
5633 arguments. Call __*_chk_warn instead of __*_chk if compile time
5634 detectable overflow is found.
5635 (swprintf, vswprintf): Divide __bos by sizeof (wchar_t) in
5636 __*_chk argument.
5637 * debug/tst-chk1.c (do_test): Add a few more tests.
5638
408cfca0
UD
56392007-09-24 Ulrich Drepper <drepper@redhat.com>
5640
5641 [BZ #5058]
5642 * intl/gettextP.h (struct loaded_domain): Add conversions_lock member.
5643 * intl/loadmsgcat.c (_nl_load_domain): Initialize conversions_lock.
5644 (_nl_unload_domain): Finalize conversions_lock.
5645 * intl/dcigettext.c (_nl_find_msg): Take conversions_lock before
5646 handling table of known conversions.
5647
e6eec9ce
JJ
56482007-09-24 Jakub Jelinek <jakub@redhat.com>
5649
5650 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Use
5651 close_not_cancel_no_status instead of close.
5652
a532a41d
UD
56532007-09-13 Aurelien Jarno <aurelien@aurel32.net>
5654
682268ef 5655 [BZ #5028]
408cfca0 5656 * posix/regcomp.c (lookup_collation_sequence_value): Check that
a532a41d
UD
5657 nrules != 0 for multibyte chars.
5658
dec9ed9e
UD
56592007-09-23 Ulrich Drepper <drepper@redhat.com>
5660
91633816
UD
5661 * resolv/ns_print.c (ns_sprintrrf): Handle ns_t_a6 and ns_t_opt.
5662 Provide better error message in case the type is unknown.
5663
9cc198f6
UD
5664 [BZ #4963]
5665 * wcsmbs/wcsnlen.c: Don't reference before checking the length.
5666 * string/stratcliff.c: Make usable to test wide char functions.
5667 * wcsmbs/wcsatcliff.c: New file.
5668 * wcsmbs/Makefiel (tests): Add wcsatcliff.
5669
27f3d446
UD
5670 [BZ #4972]
5671 * iconvdata/Makefile (modules): Add MAC-CENTRALEUROPE.
5672 (distribute): Add mac-centraleurope.c.
5673 (gen-8bit-gap-modules): Add mac-centraleurope.
5674 * iconvdata/mac-centraleurope.c: New file.
5675 * iconvdata/gconv-modules: Add entries for MAC-CENTRALEUROPE.
5676 * iconvdata/TESTS: Likewise.
5677 * iconvdata/tst-tables.sh: Likewise.
5678
dec9ed9e
UD
5679 [BZ #5043]
5680 * iconv/iconv_open.c (iconv_open): For large codeset names use malloc.
5681
0435403c
UD
56822007-09-21 Ulrich Drepper <drepper@redhat.com>
5683
5684 * sysdeps/x86_64/cacheinfo.c (__x86_64_data_cache_size_half): Renamed
5685 from __x86_64_core_cache_size_half.
5686 (init_cacheinfo): Compute shared cache size for AMD processors with
5687 shared L3 correctly.
5688 * sysdeps/x86_64/memcpy.S: Adjust for __x86_64_data_cache_size_half
5689 name change.
5690 Patch in large parts by Evandro Menezes.
5691
c3266dc0
UD
56922007-09-19 Ulrich Drepper <drepper@redhat.com>
5693
715899d1
UD
5694 * elf/dl-lookup.c (add_dependency): Handle failing memory
5695 allocation for dependency list. Remove unnecessary check.
5696
e1db0493
UD
5697 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid unnecessary
5698 open/close when determining source addresses.
5699
c3266dc0
UD
5700 * crypt/Makefile (libcrypt-routines): Add sha256-crypt, sha256,
5701 sha512-crypt, and sha512.
5702 (tests): Add sha256test, sha256c-test, sha512test, and sha512c-test.
5703 (distribute): Add sha256.h and sha512.h.
5704 * crypt/crypt-entry.c (crypt): Recognize the new $5$ and $6$ prefixes
5705 and call the appropriate code.
5706 * crypt/sha256-crypt.c: New file.
5707 * crypt/sha256.c: New file.
5708 * crypt/sha256.h: New file.
5709 * crypt/sha256c-test.c: New file.
5710 * crypt/sha256test.c: New file.
5711 * crypt/sha512-crypt.c: New file.
5712 * crypt/sha512.c: New file.
5713 * crypt/sha512.h: New file.
5714 * crypt/sha512c-test.c: New file.
5715 * crypt/sha512test.c: New file.
5716
ddf51ecb
JJ
57172007-09-19 Jakub Jelinek <jakub@redhat.com>
5718
5719 * misc/bits/syslog.h (syslog): Remove extraneous argument from
5720 the inline, pass __USE_FORTIFY_LEVEL - 1 as second argument to
5721 __syslog_chk.
5722
b90395e6
UD
57232007-09-18 Jakub Jelinek <jakub@redhat.com>
5724
76c0bea7
JJ
5725 * locale/programs/charmap-dir.c (charmap_aliases): Use %ms instead of
5726 %as in fscanf format strings.
5727
00680568
JJ
5728 * sysdeps/sparc/sparc32/elf/start.S: Remove cfi_* markup.
5729 * sysdeps/sparc/sparc64/elf/start.S: Likewise.
c3266dc0
UD
5730 * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__thread_start):
5731 Likewise.
5732 * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__thread_start):
5733 Likewise.
00680568 5734
b90395e6
UD
5735 * sysdeps/generic/ldsodefs.h (DL_LOOKUP_GSCOPE_LOCK): New definition.
5736 * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Or in
5737 DL_LOOKUP_GSCOPE_LOCK into flags after THREAD_GSCOPE_SET_FLAG ().
5738 * elf/dl-sym.c (do_sym): Likewise.
5739 * include/link.h (struct link_map): Add l_serial field.
5740 * elf/dl-object.c (_dl_new_object): Initialize l_serial.
5741 * elf/dl-lookup.c (add_dependency): Add flags argument.
5742 Remember map->l_serial, if DL_LOOKUP_GSCOPE_LOCK is among
5743 flags, use THREAD_GSCOPE_RESET_FLAG before and
5744 THREAD_GSCOPE_SET_FLAG after
5745 __rtld_lock_lock_recursive (GL(dl_load_lock)) to avoid deadlock.
5746 Don't dereference map until it has been found on some list.
5747 If map->l_serial changed, return -1.
5748
874aa523
UD
57492007-09-17 Jakub Jelinek <jakub@redhat.com>
5750
5751 * include/stdio.h (__isoc99_fscanf, __isoc99_scanf,
5752 __isoc99_sscanf, __isoc99_vscanf): New prototypes.
5753 (__isoc99_vsscanf, __isoc99_vfscanf): New prototypes, add
5754 libc_hidden_proto.
5755 * include/wchar.h (__isoc99_fwscanf, __isoc99_wscanf,
5756 __isoc99_swscanf, __isoc99_vwscanf): New prototypes.
5757 (__isoc99_vswscanf, __isoc99_vfwscanf): New prototypes,
5758 add libc_hidden_proto.
5759 * libio/stdio.h (fscanf, scanf, sscanf, vfscanf, vscanf,
5760 vsscanf): Redirect to __isoc99_* if strict ISO C99 or POSIX
5761 conformance requested.
5762 * wcsmbs/wchar.h (fwscanf, wscanf, swscanf, vfwscanf, vwscanf,
5763 vswscanf): Redirect to __isoc99_* if strict ISO C99 or POSIX
5764 conformance requested.
5765 * libio/bits/stdio-ldbl.h (fscanf, scanf, sscanf, vfscanf, vscanf,
5766 vsscanf): Redirect to __nldbl___isoc99_* if strict ISO C99 or POSIX
5767 conformance requested.
5768 * wcsmbs/bits/wchar-ldbl.h (fwscanf, wscanf, swscanf, vfwscanf,
5769 vwscanf, vswscanf): Redirect to __nldbl___isoc99_* if strict
5770 ISO C99 or POSIX conformance requested.
5771 * stdio-common/Versions (libc): Export __isoc99_scanf@@GLIBC_2.7,
5772 __isoc99_vscanf@@GLIBC_2.7, __isoc99_fscanf@@GLIBC_2.7,
5773 __isoc99_vfscanf@@GLIBC_2.7, __isoc99_sscanf@@GLIBC_2.7
5774 and __isoc99_vsscanf@@GLIBC_2.7.
5775 * stdio-common/Makefile (routines): Add isoc99_scanf, isoc99_vscanf,
5776 isoc99_fscanf, isoc99_vfscanf, isoc99_sscanf and isoc99_vsscanf.
5777 (tests): Add scanf14.
5778 (CFLAGS-vfprintf.c, CFLAGS-fprintf.c, CFLAGS-printf.c,
5779 CFLAGS-vfwprintf.c, CFLAGS-vfscanf.c, CFLAGS-vfwscanf.c,
5780 CFLAGS-fscanf.c, CFLAGS-scanf.c, CFLAGS-isoc99_vfscanf.c,
5781 CFLAGS-isoc99_vscanf.c, CFLAGS-isoc99_fscanf.c,
5782 CFLAGS-isoc99_scanf.c): Add $(exceptions).
5783 (CFLAGS-scanf15.c): Add various -I paths to prevent the compiler
5784 from using internal headers.
5785 * wcsmbs/Versions (libc): Export __isoc99_wscanf@@GLIBC_2.7,
5786 __isoc99_vwscanf@@GLIBC_2.7, __isoc99_fwscanf@@GLIBC_2.7,
5787 __isoc99_vfwscanf@@GLIBC_2.7, __isoc99_swscanf@@GLIBC_2.7
5788 and __isoc99_vswscanf@@GLIBC_2.7.
5789 * wcsmbs/Makefile (routines): Add isoc99_wscanf, isoc99_vwscanf,
5790 isoc99_fwscanf, isoc99_vfwscanf, isoc99_swscanf and isoc99_vswscanf.
5791 (CFLAGS-isoc99_wscanf.c, CFLAGS-isoc99_fwscanf.c,
5792 CFLAGS-isoc99_vwscanf.c, CFLAGS-isoc99_vfwscanf.c): Add $(exceptions).
5793 (CPPFLAGS): Add -D_IO_MTSAFE_IO if needed.
5794 * stdio-common/isoc99_scanf.c: New file.
5795 * stdio-common/isoc99_vsscanf.c: New file.
5796 * stdio-common/isoc99_vscanf.c: New file.
5797 * stdio-common/isoc99_vfscanf.c: New file.
5798 * stdio-common/isoc99_fscanf.c: New file.
5799 * stdio-common/isoc99_sscanf.c: New file.
5800 * wcsmbs/isoc99_fwscanf.c: New file.
5801 * wcsmbs/isoc99_vswscanf.c: New file.
5802 * wcsmbs/isoc99_swscanf.c: New file.
5803 * wcsmbs/isoc99_wscanf.c: New file.
5804 * wcsmbs/isoc99_vwscanf.c: New file.
5805 * wcsmbs/isoc99_vfwscanf.c: New file.
5806 * libio/libio.h (_IO_FLAGS2_SCANF_STD): Define.
5807 * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): Also
5808 clear _IO_FLAGS2_SCANF_STD bit from _flags2.
5809 * stdio-common/vfscanf.c (_IO_vfscanf_internal): Don't
5810 handle %as, %aS and %a[ if _IO_FLAGS2_SCANF_STD is set in _flags2.
5811 * stdio-common/scanf14.c: New test.
5812 * stdio-common/scanf15.c: New test.
5813 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add
5814 isoc99_scanf, isoc99_fscanf, isoc99_sscanf,
5815 isoc99_vscanf, isoc99_vfscanf, isoc99_vsscanf,
5816 isoc99_wscanf, isoc99_fwscanf, isoc99_swscanf,
5817 isoc99_vwscanf, isoc99_vfwscanf and isoc99_vswscanf.
5818 * sysdeps/ieee754/ldbl-opt/Versions (libc): Export
5819 __nldbl___isoc99_scanf@@GLIBC_2.7,
5820 __nldbl___isoc99_fscanf@@GLIBC_2.7,
5821 __nldbl___isoc99_sscanf@@GLIBC_2.7,
5822 __nldbl___isoc99_vscanf@@GLIBC_2.7,
5823 __nldbl___isoc99_vfscanf@@GLIBC_2.7,
5824 __nldbl___isoc99_vsscanf@@GLIBC_2.7,
5825 __nldbl___isoc99_wscanf@@GLIBC_2.7,
5826 __nldbl___isoc99_fwscanf@@GLIBC_2.7,
5827 __nldbl___isoc99_swscanf@@GLIBC_2.7,
5828 __nldbl___isoc99_vwscanf@@GLIBC_2.7,
5829 __nldbl___isoc99_vfwscanf@@GLIBC_2.7
5830 and __nldbl___isoc99_vswscanf@@GLIBC_2.7.
5831 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__isoc99_scanf,
5832 __isoc99_fscanf, __isoc99_sscanf, __isoc99_vscanf,
5833 __isoc99_vfscanf, __isoc99_vsscanf, __isoc99_wscanf,
5834 __isoc99_fwscanf, __isoc99_swscanf, __isoc99_vwscanf,
5835 __isoc99_vfwscanf, __isoc99_vswscanf): Add NLDBL_DECL.
5836 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
5837 (__nldbl___isoc99_scanf, __nldbl___isoc99_fscanf,
5838 __nldbl___isoc99_sscanf, __nldbl___isoc99_vscanf,
5839 __nldbl___isoc99_vfscanf, __nldbl___isoc99_vsscanf,
5840 __nldbl___isoc99_wscanf, __nldbl___isoc99_fwscanf,
5841 __nldbl___isoc99_swscanf, __nldbl___isoc99_vwscanf,
5842 __nldbl___isoc99_vfwscanf, __nldbl___isoc99_vswscanf): New
5843 functions.
5844 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vfscanf.c: New file.
5845 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_swscanf.c: New file.
5846 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vwscanf.c: New file.
5847 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_wscanf.c: New file.
5848 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_scanf.c: New file.
5849 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_sscanf.c: New file.
5850 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vsscanf.c: New file.
5851 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_fwscanf.c: New file.
5852 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vfwscanf.c: New file.
5853 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vswscanf.c: New file.
5854 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vscanf.c: New file.
5855 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_fscanf.c: New file.
5856
5857 * stdio-common/Makefile (tests): Add scanf13.
5858 (scanf13-ENV): New.
5859 * stdio-common/vfscanf.c (_IO_vfscanf_internal): Handle
5860 m modifier followed by l.
5861 (STRING_ARG): Add width argument.
5862 (_IO_vfscanf_internal) <case L_('c')>: Handle %mc.
5863 <case L_('C')>: Handle %mlc and %mC.
5864 <case L_('s'), case L_('S'), case L_('[')>: Adjust STRING_ARG
5865 arguments.
5866 * stdio-common/scanf13.c: New test.
5867
5868 * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): Clear
5869 the _IO_FLAGS2_FORTIFY bit from _flags2 rather than _flags.
5870
883f7943
UD
58712007-09-18 Ulrich Drepper <drepper@redhat.com>
5872
5873 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Correct return value
874aa523 5874 type and __THROW marker of splice, vmsplice, and tee.
883f7943
UD
5875 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
5876 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
5877 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
5878 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
5879 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
5880 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
5881 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
5882 * sysdeps/unix/sysv/linux/syscalls.list: Mark splice, vmsplice, and tee
5883 as cancellation points.
5884
3524efe0
UD
58852003-11-01 Daniel Jacobowitz <dan@debian.org>
5886
5887 * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_discover_osversion): Don't
5888 parse more than three parts of the version number.
5889
267c54dc
UD
58902007-09-15 Ulrich Drepper <drepper@redhat.com>
5891
5892 * stdio-common/vfscanf.c (_IO_vfwscanf): Add support for 'm'
5893 modifier. Patch by Jakub Jelinek.
5894
5e17d6b7
UD
58952007-08-26 Jakub Jelinek <jakub@redhat.com>
5896
5897 * sysdeps/unix/sysv/linux/i386/Makefile (sysdep_routines): Add
5898 call_fallocate in misc subdir.
5899 * sysdeps/unix/sysv/linux/i386/call_fallocate.S: New file.
5900 * sysdeps/unix/sysv/linux/i386/syscalls.list (fallocate64): Remove.
5901 * sysdeps/unix/sysv/linux/i386/posix_fallocate.c: Use __call_fallocate
5902 instead of __fallocate64.
5903 * sysdeps/unix/sysv/linux/i386/posix_fallocate64.c: Likewise.
5904
3a50811c
UD
59052007-09-15 Jakub Jelinek <jakub@redhat.com>
5906
5907 * rt/Versions (librt): Export __mq_open_2@@GLIBC_2.7.
5908 * rt/Makefile (headers): Add bits/mqueue2.h.
5909 * rt/mqueue.h: Include bits/mqueue2.h if -D_FORTIFY_SOURCE=2,
5910 optimizing with GCC and __va_arg_pack_len is defined.
5911 * rt/bits/mqueue2.h: New file.
5912 * rt/mq_open.c (__mq_open): Renamed from mq_open.
5913 (mq_open): New strong_alias.
5914 (__mq_open_2): New function.
5915 * sysdeps/unix/sysv/linux/mq_open.c (__mq_open): Renamed from mq_open.
5916 (mq_open): New strong_alias.
5917 (__mq_open_2): New function.
5918 * debug/Versions (libc): Export __fortify_fail@@GLIBC_PRIVATE.
5919 * Versions.def (librt): Add GLIBC_2.7 version.
5920 * debug/fortify_fail.c (__fortify_fail): Add libc_hidden_def.
5921 * include/stdio.h (__fortify_fail): Add libc_hidden_proto.
5922
5923 * misc/sys/cdefs.h (__errordecl, __va_arg_pack_len): Define.
5924 * io/fcntl.h: Include bits/fcntl2.h when __va_arg_pack_len
5925 is defined rather than when not C++.
5926 * io/bits/fcntl2.h (__open_alias, __open64_alias, __openat_alias,
5927 __openat64_alias): New redirects.
5928 (__open_too_many_args, __open_missing_mode, __open64_too_many_args,
5929 __open64_missing_mode, __openat_too_many_args, __openat_missing_mode,
5930 __openat64_too_many_args, __openat64_missing_mode): New __errordecls.
5931 (open, open64, openat, openat64): Rewrite as __extern_always_inline
5932 functions instead of function-like macros.
5933
9bdfff60
UD
59342007-09-14 H.J. Lu <hongjiu.lu@intel.com>
5935
5936 * sysdeps/i386/i586/memcpy.S (__memcpy_chk): New definition.
5937 * sysdeps/i386/i586/mempcpy.S (__memcpy_chk): New definition.
5938 * sysdeps/i386/i586/memset.S (__memset_chk): New definition.
5939
ab905672
UD
59402007-09-15 Mike Frysinger <vapier@gentoo.org>
5941
5942 * inet/inet_net.c: Reset digit to 0 for inputs starting with "0x".
5943 * inet/tst-network.c (tests): Add edge case tests for "0", "0x", "0x0".
5944
9bd68902
RM
59452007-09-14 Mike Frysinger <vapier@gentoo.org>
5946
5947 * inet/tst-network.c: Increment ERRORS for failing tests.
5948
de1c3ebb
UD
59492007-09-07 Jakub Jelinek <jakub@redhat.com>
5950
5951 * misc/sys/cdefs.h (__va_arg_pack): Define for GCC 4.3+.
5952 * misc/bits/syslog.h (syslog): When __va_arg_pack is defined,
5953 implement as __extern_always_inline function.
5954 (vsyslog): Define as __extern_always_inline function unconditionally.
5955 * libio/bits/stdio2.h (sprintf, snprintf, printf, fprintf):
5956 When __va_arg_pack is defined, implement as __extern_always_inline
5957 functions.
5958 (vsprintf, vsnprintf, vprintf, vfprintf): Define as
5959 __extern_always_inline functions unconditionally.
5960 * libio/bits/stdio.h (vprintf): Ifdef out the inline when
5961 bits/stdio2.h will be included.
5962 * wcsmbs/bits/wchar2.h (__swprintf_alias): New redirect.
5963 (swprintf, wprintf, fwprintf): When __va_arg_pack is defined,
5964 implement as __extern_always_inline functions.
5965 (vswprintf, vwprintf, vfwprintf): Define as
5966 __extern_always_inline functions unconditionally.
5967 * debug/tst-chk1.c (do_test): Enable remaining tests for C++.
5968
59692007-09-03 Jakub Jelinek <jakub@redhat.com>
5970
5971 * misc/sys/cdefs.h (__extern_inline, __extern_always_inline): Only
5972 define in C++ for GCC 4.3+, in C++ always use __gnu_inline__
5973 attribute.
5974 * include/features.h (__USE_EXTERN_INLINES): Define only when
5975 __extern_inline is defined.
5976 * stdlib/stdlib.h: Include bits/stdlib.h when __extern_always_inline
5977 is defined instead of when not __cplusplus.
5978 * misc/sys/syslog.h: Include bits/syslog.h when __extern_always_inline
5979 is defined instead of when not __cplusplus.
5980 * socket/sys/socket.h: Include bits/socket2.h when
5981 __extern_always_inline is defined instead of when not __cplusplus.
5982 * libio/stdio.h: Include bits/stdio2.h when __extern_always_inline
5983 is defined instead of when not __cplusplus.
5984 * posix/unistd.h: Include bits/unistd.h when __extern_always_inline
5985 is defined instead of when not __cplusplus.
5986 * string/string.h: Include bits/string3.h when __extern_always_inline
5987 is defined instead of when not __cplusplus.
5988 * wcsmbs/wchar.h: Include bits/wchar2.h when __extern_always_inline
5989 is defined instead of when not __cplusplus.
5990 (btowc, wctob): Don't guard the inlines with ifndef __cplusplus.
5991 * io/fcntl.h: Don't include bits/fcntl2.h if __extern_always_inline
5992 is not defined.
5993 * misc/bits/syslog-ldbl.h: Guard *_chk stuff with
5994 defined __extern_always_inline instead of !defined __cplusplus.
5995 * libio/bits/stdio-ldbl.h: Likewise.
5996 * wcsmbs/bits/wchar-ldbl.h: Likewise.
5997 * misc/bits/syslog.h (syslog): Don't define for C++.
5998 (vsyslog): Use __extern_always_inline function for C++ instead of
5999 a macro.
6000 * libio/bits/stdio.h (__STDIO_INLINE): Define to __extern_inline
6001 whenever that macro is defined.
6002 (vprintf): Don't provide the inline for C++.
6003 (fread_unlocked, fwrite_unlocked): Don't define the macros for C++.
6004 * libio/bits/stdio2.h (sprintf, snprintf, printf, fprintf): Don't
6005 define the macros for C++.
6006 (vsprintf, vsnprintf, vprintf, vfprintf): Define as
6007 __extern_always_inline functions for C++.
6008 * io/sys/stat.h (stat, lstat, fstat, fstatat, mknod, mknodat,
6009 stat64, lstat64, fstat64, fstatat64): Don't define if not
6010 __USE_EXTERN_INLINES.
6011 * wcsmbs/bits/wchar2.h: Fix #error message.
6012 (swprintf, wprintf, fwprintf): Don't define the macros for C++.
6013 (vswprintf, vwprintf, vfwprintf): Define using
6014 __extern_always_inline functions for C++.
6015 * string/bits/string3.h: Don't #undef macros if __cplusplus.
6016 (memcpy, memmove, mempcpy, memset, bcopy, bzero, strcpy, stpcpy,
6017 strncpy, strcat, strncat): Define as __extern_always_inline
6018 functions instead of macros for C++.
6019 * math/bits/cmathcalls.h: Guard __extern_inline routines with
6020 defined __extern_inline.
6021 * sysdeps/alpha/fpu/bits/mathinline.h (__MATH_INLINE): Define
6022 to __extern_inline whenever that macro is defined.
6023 * sysdeps/ia64/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
6024 * sysdeps/i386/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
6025 * sysdeps/i386/i486/bits/string.h (__STRING_INLINE): Likewise.
6026 * sysdeps/s390/bits/string.h (__STRING_INLINE): Likewise.
6027 * sysdeps/s390/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
6028 * sysdeps/powerpc/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
6029 * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
6030 * sysdeps/sparc/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
6031 * sysdeps/unix/sysv/linux/sys/sysmacros.h (gnu_dev_major,
6032 gnu_dev_minor, gnu_dev_makedev): Remove __extern_inline from
6033 prototypes. Only provide __extern_inline routines if
6034 __USE_EXTERN_INLINES.
6035 * debug/Makefile: Add rules to build and run tst-{,lfs}chk{4,5,6}
6036 tests.
6037 * debug/tst-chk1.c (do_prepare, do_test): Allow compilation as C++.
6038 For now avoid some *printf tests in C++. Skip all testing
6039 if __USE_FORTIFY_LEVEL is defined, but __extern_always_inline macro
6040 is not.
6041 * debug/tst-chk4.cc: New file.
6042 * debug/tst-chk5.cc: New file.
6043 * debug/tst-chk6.cc: New file.
6044 * debug/tst-lfschk4.cc: New file.
6045 * debug/tst-lfschk5.cc: New file.
6046 * debug/tst-lfschk6.cc: New file.
6047 * include/wchar.h (__vfwprintf_chk, __vswprintf_chk): Avoid
6048 prototypes in C++.
6049 * include/stdio.h (__sprintf_chk, __snprintf_chk, __vsprintf_chk,
6050 __vsnprintf_chk, __printf_chk, __fprintf_chk, __vprintf_chk,
6051 __vfprintf_chk, __fgets_unlocked_chk, __fgets_chk): Likewise.
6052
b53eef9c
UD
60532007-09-13 Ulrich Drepper <drepper@redhat.com>
6054
6055 * po/cs.po: Update from translation team.
6056
af385590
RM
60572007-09-11 Roland McGrath <roland@redhat.com>
6058
6059 * posix/Makefile ($(objpfx)getconf.speclist): Make it empty if cross
6060 compiling.
6061
af2f25a1
RM
60622007-09-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
6063
6064 * sysdeps/mach/hurd/bits/ioctls.h (TAB3): New macro.
6065
94733ae0
RM
60662007-09-05 Roland McGrath <roland@redhat.com>
6067
6068 * manual/signal.texi (Signaling Another Process): Typo fix.
6069 From Karl Berry <karl@freefriends.org>.
6070
de4d8563
UD
60712007-08-29 Ulrich Drepper <drepper@redhat.com>
6072
6073 * sysdeps/unix/sysv/linux/check_pf.c (IFA_F_OPTIMISTIC): Define to
6074 zero if not defined.
6075 (make_request): Recognize optimistic addresses and treat them like
6076 deprecated addresses.
6077 Reported by Neil Horman <nhorman@redhat.com>.
6078
0adfcc05
UD
60792007-08-28 Ulrich Drepper <drepper@redhat.com>
6080
f3c54060
UD
6081 * nscd/connections.c (send_ro_fd): Also transfer file size.
6082 * nscd/nscd_helper.c (get_mapping): If nscd also transfers the
6083 file size don't call fstat.
6084
0adfcc05
UD
6085 * nscd/nscd_helper.c (get_mapping): Avoid the pread call, just go
6086 ahead and map the file. This should always be correct and we can
6087 catch problems later.
6088
3586b2b6
UD
60892007-08-28 Jakub Jelinek <jakub@redhat.com>
6090
6091 * libio/bits/stdio2.h (__fread_chk, __fread_unlocked_chk): New
6092 prototypes.
6093 (__fread_alias, __fread_unlocked_alias): New aliases.
6094 (fread): New extern inline.
6095 (fread_unlocked): Likewise. Undef macro before definition of
6096 the inline function.
6097 * debug/Makefile (routines): Add fread_chk and fread_u_chk.
6098 (CFLAGS-fread_chk.c, CFLAGS-fread_u_chk.c): Add.
6099 * debug/Versions (libc): Export __fread_chk@@GLIBC_2.7
6100 and __fread_unlocked_chk@@GLIBC_2.7.
6101 * debug/fread_chk.c: New file.
6102 * debug/fread_u_chk.c: New file.
6103 * debug/tst-chk1.c (do_test): Add fread and fread_unlocked tests.
6104
3704aa0b
RM
61052007-08-27 Jakub Jelinek <jakub@redhat.com>
6106
6107 * sysdeps/unix/sysv/linux/syscalls.list
6108 (personality): Change caller to EXTRA.
6109
80e7d6a6
UD
61102007-08-25 Ulrich Drepper <drepper@redhat.com>
6111
278bfa00
UD
6112 * iconvdata/iso-2022-kr.c (BODY): Fake initialization of array buf
6113 to keep gcc quiet.
6114 * iconvdata/iso-2022-cn.c (BODY): Likewise.
6115
a45d733c
UD
6116 * locale/programs/ld-collate.c (collate_output): Avoid warning if
6117 NDEBUG is defined.
6118
5dfeae0e
UD
6119 * Makerules: Use -p option with mkdir.
6120
8f1fe057
UD
6121 * sunrpc/key_prot.c (xdr_unixcred): Work around gcc alias warning.
6122 * nis/nis_xdr.c (_xdr_nis_server): Likewise.
bd0dcd28
UD
6123 (_xdr_directory_obj): Likewise.
6124 (xdr_entry_obj): Likewise.
6125 (xdr_group_obj): Likewise.
6126 (xdr_link_obj): Likewise.
6127 (xdr_table_obj): Likewise.
6128 (_xdr_nis_result): Likewise.
6129 (_xdr_ns_request): Likewise.
6130 (_xdr_ib_request): Likewise.
6131 (_xdr_nis_taglist): Likewise.
6132 (xdr_cback_data): Likewise.
8f1fe057 6133 * nis/yp_xdr.c (xdr_ypmaplist): Likewise.
bd0dcd28
UD
6134 (xdr_ypresp_maplist): Likewise.
6135
01339a67
UD
6136 * stdio-common/Makefile: Avoid format string warning for tst-sprint.
6137
3fa10468
UD
6138 * posix/regex_internal.h: Prevent some declarations and definitions
6139 to be seen when used in tests.
6140
ec1e04de
UD
6141 * posix/tst-rfc3484.c (__idna_to_unicode_lzlz): Initialize *OUTPUT.
6142 * posix/tst-rfc3484-2.c (__idna_to_unicode_lzlz): Likewise.
6143
7a344d1d
UD
6144 * debug/Makefile: Disable format checking when compiling tst-chk?.c.
6145
f8f6ff5d
UD
6146 * config.make.in (datarootdir): Add to shut up configure.
6147
76fca9f1
UD
6148 * sysdeps/x86_64/cacheinfo.c (handle_amd): Fix computation of
6149 associativity for fully-associative caches.
6150
80e7d6a6
UD
6151 * sysdeps/x86_64/cacheinfo.c (handle_amd): Handle L3 cache
6152 requests. Fill on more associativity values for L2.
6153 Patch mostly by Evandro Menezes.
6154
cb5ba304
UD
61552007-08-24 Ulrich Drepper <drepper@redhat.com>
6156
d250df8c
UD
6157 * sysdeps/unix/sysv/linux/x86_64/init-first.c
6158 (_libc_vdso_platform_setup): Avoid using exported variable by using
6159 alias.
6160
88f61aaf
UD
6161 * resolv/arpa/nameser.h (NS_OPT_DNSSEC_OK): Define.
6162
cb5ba304 6163 * sysdeps/unix/sysv/linux/i386/syscalls.list: No reason to mark
cb104bd7 6164 fallocate64 as EXTRA. It is not referenced if the symbol isn't
cb5ba304
UD
6165 defined.
6166
62e1b1f5
UD
61672007-08-23 Ulrich Drepper <drepper@redhat.com>
6168
44b2e581
UD
6169 * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Correctly
6170 align stack for call if pltexit is to be used.
6171
73e3ff07
UD
6172 [BZ #3924]
6173 * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Correctly
6174 align for function call in case pltexit has to be called later.
6175
62e1b1f5
UD
6176 * sysdeps/i386/dl-trampoline.S (_dl_runtime_resolve): Avoid
6177 implicit atomic operation when storing function pointer.
6178 (_dl_runtime_profile): Likewise.
6179
0008163a
UD
61802007-08-17 Jakub Jelinek <jakub@redhat.com>
6181
6182 * nis/nis_table.c (nis_list): Don't fail if __follow_path returned
6183 NIS_NOTFOUND.
6184
55ea8790
UD
61852007-08-21 Ulrich Drepper <drepper@redhat.com>
6186
2e0e1a05
UD
6187 [BZ #4566]
6188 * string/strtok.c: Fix typo in comment.
6189
682e4437
UD
6190 [BZ #4582]
6191 * debug/segfault.c: Fix typos in comments.
6192
7d55c9eb
UD
6193 [BZ #4588]
6194 * stdio-common/tempnam.c: Fix comment, it is not checked that
6195 TMPDIR points to a writable directory.
6196
0f8f993c
UD
6197 [BZ #4726]
6198 * resolv/res_send.c (__libc_res_nsend): Initialize all of the
6199 memory allocated for the name server address.
6200
1465dd0f
UD
6201 [BZ #4946]
6202 * nscd/connections.c (handle_request): Using sendfile always
6203 requires that mmap is used for the database.
6204 Patch by Petr Baudis <pasky@suse.cz>.
6205
c44d3bdf
UD
6206 [BZ #4905]
6207 * nscd/hstcache.c (cache_addhst): When reloading an entry which
6208 suddenly has two or more addresses, ignore it and remove the old
6209 entry.
6210
1ce7d80d
UD
6211 [BZ #4814]
6212 * resolv/res_hconf.c: Prepare for compiling outside libc.
6213 * nscd/res_hconf.c: New file.
6214 * nscd/Makefile (nscd-modules): Add res_hconf. Add rules to build
6215 the new file.
6216 * nscd/gethstbynm2_r.c (NEED__RES_HCONF): Define.
6217 * nscd/gethstbyad_r.c (NEED__RES_HCONF): Likewise.
6218
a30d41c1
UD
6219 * nscd/hstcache.c (cache_addhst): Minimal optimization.
6220
45dc3ad7
UD
6221 [BZ #4925]
6222 * debug/pcprofiledump.c: Turn on internationalization by calling
6223 setlocale. Patch mostly by Benno Schulenberg.
6224
55ea8790
UD
6225 [BZ #4936]
6226 * iconv/gconv.c (__gconv): If flush was successful, clear rest of
6227 the state.
6228 * iconvdata/Makefile: Add rules to build and run bug-iconv5.
6229 * iconvdata/bug-iconv5.c: New file.
6230
0b82ff74
UD
62312007-08-04 Carlos O'Donell <carlos@systemhalted.org>
6232
55ea8790 6233 [BZ #4896]
0b82ff74
UD
6234 * elf/elf.h: Define R_PARISC_PLABEL21L, R_PARISC_PLABEL14R,
6235 R_PARISC_GNU_VTENTRY, R_PARISC_GNU_VTINHERIT, R_PARISC_TLS_GD21L,
6236 R_PARISC_TLS_GD14R, R_PARISC_TLS_GDCALL, R_PARISC_TLS_LDM21L,
6237 R_PARISC_TLS_LDM14R, R_PARISC_TLS_LDMCALL, R_PARISC_TLS_LDO21L,
6238 R_PARISC_TLS_LDO14R, R_PARISC_TLS_DTPMOD32, R_PARISC_TLS_DTPMOD64,
6239 R_PARISC_TLS_DTPOFF32, R_PARISC_TLS_DTPOFF64, R_PARISC_TLS_LE21L,
6240 R_PARISC_TLS_LE14R, R_PARISC_TLS_IE21L, R_PARISC_TLS_IE14R,
6241 R_PARISC_TLS_TPREL32, R_PARISC_TLS_TPREL64.
6242
ee16a55a
UD
62432007-08-21 Ulrich Drepper <drepper@redhat.com>
6244
6245 [BZ #4937]
6246 * elf/do-lookup.h (do_lookup_x): Minimal improvement in hash
6247 lookup loop. Suggested by John Reiser.
6248
b211fe0f
JJ
62492007-08-21 Jakub Jelinek <jakub@redhat.com>
6250
6251 * sysdeps/unix/sysv/linux/alpha/sysdep.h: Include tls.h.
6252
fb84593c
UD
62532007-08-20 Ulrich Drepper <drepper@redhat.com>
6254
6255 * csu/libc-start.c: Don't handle VDSO_SETUP here.
6256 * sysdeps/unix/sysv/linux/init-first.c: Handle it here instead.
6257 * sysdeps/unix/sysv/linux/x86_64/libc-start.c: Renamed to...
6258 * sysdeps/unix/sysv/linux/x86_64/init-first.c: ...this. New file.
6259 * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Move VDSO_SETUP code
6260 to...
6261 * sysdeps/unix/sysv/linux/x86_64/init-first.c: ...here. New file.
6262
b83fb35c
UD
62632007-08-18 Ulrich Drepper <drepper@redhat.com>
6264
6265 * po/nl.po: Update from translation team.
6266
20806a70
AJ
62672007-08-16 Andreas Jaeger <aj@suse.de>
6268
6269 * locale/localeinfo.h: Make _nl_category_name_idxs extern.
f00d47a3 6270 Reported by Peter Festner <peter.festner@ewetel.net>.
20806a70 6271
42282d57
JJ
62722007-08-17 Jakub Jelinek <jakub@redhat.com>
6273
6274 * login/tst-grantpt.c (test_einval): Add 3rd argument to open.
6275
8a501135
JJ
62762007-08-16 Jakub Jelinek <jakub@redhat.com>
6277
cb84d1e4
JJ
6278 * elf/Makefile ($(objpfx)ld.so): Use readelf -s and awk instead of nm -u
6279 to check for undefined symbols.
6280
91ddd9c4
JJ
6281 * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone):
6282 If the syscall fails, set errno to the actual returned error number
6283 rather than EINVAL.
6284 * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__clone): If
6285 arguments are incorrect, set errno to EINVAL, if the syscall
6286 fails, set errno to the actual returned error number.
6287
18915760
JJ
6288 * stdlib/bits/stdlib-ldbl.h (__strtold_internal): Remove.
6289 * wcsmbs/bits/wchar-ldbl.h (__wcstold_internal): Remove.
6290
8a501135
JJ
6291 * sysdeps/sparc/sparc32/sparcv9b/memcpy.S: Moved to...
6292 * sysdeps/sparc/sparc32/sparcv9/sparcv9b/memcpy.S: ... here. New
6293 file.
6294 (ASI_PNF, ASI_BLK_P): Don't define.
6295 * sysdeps/sparc/sparc32/sparcv9v/memcpy.S: Moved to...
6296 * sysdeps/sparc/sparc32/sparcv9/sparcv9v/memcpy.S: ... here. New
6297 file.
6298 * sysdeps/sparc/sparc32/sparcv9v/memset.S: Moved to...
6299 * sysdeps/sparc/sparc32/sparcv9/sparcv9v/memset.S: ... here. New
6300 file.
6301
e4720b0e
JJ
63022007-08-15 Jakub Jelinek <jakub@redhat.com>
6303
6304 * sysdeps/sparc/fpu/fraiseexcpt.c (__feraiseexcept): Fix raising
6305 FE_UNDERFLOW on Niagara CPUs.
6306
6307 * sysdeps/sparc/fpu/feholdexcpt.c (feholdexcept): Clear all
6308 exceptions.
6309
702a9414
JJ
63102007-08-14 Jakub Jelinek <jakub@redhat.com>
6311
467d1345
JJ
6312 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_runtime_setup): No
6313 need to check GLRO(dl_hwcap) & HWCAP_SPARC_FLUSH on sparcv9.
6314 (sparc_fixup_plt): Add do_flush argument instead of figuring whether
6315 flush should be used or not inside of the function.
6316 (elf_machine_fixup_plt, elf_machine_rela): Adjust caller.
6317
6318 * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone,
6319 __thread_start): Use HIDDEN_JUMPTARGET.
6320 * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__clone,
6321 __thread_start): Likewise.
6322 * sysdeps/unix/sysv/linux/sparc/sysdep.h (JUMPTARGET): Define.
6323
702a9414
JJ
6324 * sysdeps/ieee754/ldbl-64-128/strtold_l.c (__STRTOF): Declare.
6325 Add libc_hidden_proto.
6326 (STRTOF): Add libc_hidden_proto.
6327 (___new_strtold_l, ___new_wcstold_l): New weak aliases.
6328 (strtold_l, wcstold_l): Use them as second argument for
6329 long_double_symbol.
6330
c6c8f0ec
UD
63312007-08-14 Ulrich Drepper <drepper@redhat.com>
6332
6333 * elf/dl-misc.c: Undo last change. The kernel won't allow it.
6334
5e88abf9
UD
63352007-08-13 Kaz Kojima <kkojima@rr.iij4u.or.jp>
6336
6337 * stdlib/strtold_l.c: Include wchar.h if needed. Add libc_hidden_def.
6338
fc4819b0
UD
63392007-08-14 Ulrich Drepper <drepper@redhat.com>
6340
6341 * po/bg.po: New file. From the translation team.
6342
22502ea2
UD
63432007-08-13 Jakub Jelinek <jakub@redhat.com>
6344
6345 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PSELECT,
6346 __ASSUME_PPOLL, __ASSUME_ATFCTS, __ASSUME_SET_ROBUST_LIST,
6347 __ASSUME_UTIMENSAT, __ASSUME_FALLOCATE): Update per-arch conditions
6348 when each feature was introduced.
6349
6350 * sysdeps/unix/sysv/linux/dl-vdso.c: Don't include dl-hash.h.
6351 * sysdeps/unix/sysv/linux/dl-vdso.h: Don't include dl-hash.h if NDEBUG.
6352 (CHECK_HASH): New macro.
6353 (PREPARE_VERSION): Use it.
6354
6355 * sysdeps/unix/sysv/linux/pselect.c (__generic_pselect): Only provide
6356 prototype if not __ASSUME_PSELECT.
6357 * sysdeps/unix/sysv/linux/ppoll.c (__generic_ppoll): Only provide
6358 prototype if not __ASSUME_PPOLL.
6359
6360 * sysdeps/unix/sysv/linux/dl-osinfo.h (ROUND): #undef after use.
6361
6362 * sysdeps/unix/clock_settime.c (freq, __pthread_clock_settime,
6363 hp_timing_settime): Don't define or declare if HANDLED_CPUTIME
6364 is defined.
6365
9c6f6953
UD
63662007-08-13 Ulrich Drepper <drepper@redhat.com>
6367
6368 * sysdeps/unix/sysv/linux/x86_64/libc-start.c
6369 (_libc_vdso_platform_setup): If vDSO is not available point
6370 __vdso_gettimeofday to the vsyscall.
6371 * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S [SHARED]: Use
6372 __vdso_gettimeofday instead of vsyscall.
6373
f8de5057
UD
63742007-08-13 Jakub Jelinek <jakub@redhat.com>
6375
6376 * nscd/servicescache.c: Include kernel-features.h.
6377 * nscd/gai.c: Likewise.
6378 * sysdeps/unix/sysv/linux/statfs64.c: Likewise.
6379 * sysdeps/unix/sysv/linux/fstatfs64.c: Likewise.
6380 * sysdeps/unix/sysv/linux/fxstatat.c: Likewise.
6381 * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S: Likewise.
6382 * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S: Likewise.
6383 * sysdeps/unix/sysv/linux/xstatconv.c: Likewise.
6384 * sysdeps/unix/sysv/linux/if_index.c: Likewise.
6385 * sysdeps/unix/sysv/linux/sparc/sparc64/xstat.c: Likewise.
6386 * sysdeps/unix/sysv/linux/ifaddrs.c: Likewise.
6387
3c87d79d
UD
63882007-08-12 Ulrich Drepper <drepper@redhat.com>
6389
ea37207a
UD
6390 * elf/dl-dst.h: No need for _dl_dst_count, _dl_dst_substitute,
6391 and _dl_get_origin defines anymore.
6392
4eb375fe
UD
6393 * sysdeps/unix/sysv/linux/clock_gettime.c (maybe_syscall_gettime_cpu):
6394 Build fix for systems which might lack POSIX timer support.
6395
3c87d79d
UD
6396 * sysdeps/unix/sysv/linux/x86_64/libc-start.c
6397 (_libc_vdso_platform_setup): Mangle function pointers before storing
6398 them.
6399 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_VSYSCALL):
6400 Demangle vdso pointer before use.
6401 (INTERNAL_VSYSCALL): Likewise.
6402
6403 * elf/cache.c (primes): Mark as const.
6404 Noted by Roland McGrath.
6405
27d9ffda
UD
64062007-08-01 Andreas Jaeger <aj@suse.de>
6407 Jakub Jelinek <jakub@redhat.com>
6408
6409 * elf/ldconfig.c (opt_ignore_aux_cache): Add new option.
6410 (options): Add option.
6411 (parse_opt): Handle option.
6412 (manual_link): Adjust process_file caller. Call implicit_soname.
6413 (search_dir): Formatting. Use and populate auxiliary cache.
6414 (main): Load and save auxiliary cache.
6415 * elf/readlib.c (process_file): Add stat_buf argument. Pass struct
6416 stat64 from fstat64 to caller.
6417 (implicit_soname): New function.
6418 * elf/readelflib.c (process_elf_file): If DT_SONAME is not present,
6419 leave *soname as NULL.
6420 * elf/cache.c: Include libgen.h.
6421 (print_entry, print_cache, compare, save_cache, add_to_cache):
6422 Formatting and cleanups.
6423 (aux_cache_entry_id, aux_cache_entry, aux_cache_file_entry,
6424 aux_cache_file): New structures.
6425 (AUX_CACHEMAGIC): Define.
6426 (primes): New array.
6427 (aux_hash_size, aux_hash): New variables.
6428 (aux_cache_entry_id_hash, nextprime, init_aux_cache,
6429 search_aux_cache, insert_to_aux_cache, add_to_aux_cache,
6430 load_aux_cache, save_aux_cache): New functions.
6431 * sysdeps/generic/ldconfig.h (_PATH_LDCONFIG_AUX_CACHE): Define.
6432 (init_aux_cache, search_aux_cache, add_to_aux_cache,
6433 load_aux_cache, save_aux_cache, implicit_soname): New prototypes.
6434 (process_file): Adjust prototype.
6435
8d944b0f
UD
64362007-08-12 Jakub Jelinek <jakub@redhat.com>
6437
6438 * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h: Include stddef.h
6439 with __need_size_t.
6440
75fb247e
UD
64412007-08-12 Ulrich Drepper <drepper@redhat.com>
6442
fb86328a
UD
6443 * sysdeps/unix/sysv/linux/dl-vdso.c (_dl_vdso_vsym): Expect
6444 r_found_version structure as second parameter.
6445 * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION): Define.
6446 (_dl_vdso_vsym): Change type of second parameter accordingly.
6447 * sysdeps/unix/sysv/linux/x86-64/libc-start.c
6448 (_libc_vdso_platform_setup): Adjust.
974a1f0f 6449 * sysdeps/unix/sysv/linux/powerpc/libc-start.c
fb86328a
UD
6450 (_libc_vdso_platform_setup): Likewise.
6451
75fb247e
UD
6452 * sysdeps/unix/sysv/linux/powerpc/dl-vdso.c: Move to...
6453 * sysdeps/unix/sysv/linux/dl-vdso.c: ...here.
6454 * sysdeps/unix/sysv/linux/powerpc/dl-vdso.h: Move to...
6455 * sysdeps/unix/sysv/linux/dl-vdso.h: ...here.
6456 * csu/libc-start.c: Pretty printing.
6457 Use VDSO_SETUP if defined.
6458 * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Define VDSO_SETUP
6459 and let generic code call into _libc_vdso_platform_setup.
6460 * sysdeps/unix/sysv/linux/x86_64/libc-start.c: New file.
6461 * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: New file.
6462 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Pretty printing.
6463 Define INLINE_VSYSCALL and INTERNAL_VSYSCALL.
6464 * sysdeps/unix/sysv/linux/x86_64/Versions: Export __vdso_clock_gettime
6465 for GLIBC_PRIVATE.
6466 * sysdeps/unix/sysv/linux/x86_64/Makefile [subdir=elf]
6467 (sysdep_rountines): Add dl-vdso.
6468
6469 * sysdeps/unix/sysv/linux/powerpc/Makefile: Use sysdep_routines instead
6470 of routines.
6471
6472 * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Add
6473 attribute_hidden to __vdso_gettimeofday prototype.
6474
9229b83e
RM
64752007-08-12 Roland McGrath <roland@redhat.com>
6476
6477 * manual/stdio.texi (Variable Arguments Output): Fix xref to gcc manual.
6478 From: Karl Berry <karl@freefriends.org>.
6479
4503061f
UD
64802007-08-11 Ulrich Drepper <drepper@redhat.com>
6481
6482 * elf/dl-misc.c (_dl_sysdep_read_whole_file): We really don't need
6483 an atime update for the files we read.
6484
d7e23b02
UD
64852007-08-10 Ulrich Drepper <drepper@redhat.com>
6486
7cf89e95
UD
6487 * shadow/lckpwdf.c (__lckpwdf): Use O_CLOEXEC if possible.
6488
9d169bb3 6489 * nscd/connections.c: Use O_CLOEXEC if possible. Use mkostemp
d7e23b02
UD
6490 instead of mkstemp.
6491
6492 * misc/Makefile (routines): Add mkostemp and mkostemp64.
6493 * misc/Versions: Export mkostemp and mkostemp64 for GLIBC_2.7.
6494 * misc/mkostemp.c: New file.
6495 * misc/mkostemp64.c: New file.
6496 * stdlib/stdlib.h: Declare the new functions.
6497 * sysdeps/posix/tempname.c: Add new parameter which is added to
6498 the flags for open. Remove __GT_BIGFILE handling.
6499 * stdio-common/tempname.c: Likewise.
6500 * include/stdio.h: Adjust __gen_tempname prototype.
6501 Renumber __GT_* constants.
6502 * libio/oldtmpfile.c: Adjust for __gen_tempname interface change.
6503 * misc/mkdtemp.c: Likewise.
6504 * misc/mkstemp.c: Likewise.
6505 * misc/mkstemp64.c: Likewise.
6506 * misc/mktemp.c: Likewise.
6507 * stdio-common/tempnam.c: Likewise.
6508 * stdio-common/tmpfile.c: Likewise.
6509 * stdio-common/tmpfile64.c: Likewise.
6510 * stdio-common/tmpnam.c: Likewise.
6511 * stdio-common/tmpnam_r.c: Likewise.
6512
22532966
RM
65132007-08-10 Roland McGrath <roland@frob.com>
6514
6515 * sysdeps/mach/hurd/bits/ioctls.h (NLDLY, TABDLY, BSDLY, VTDLY):
6516 New macros.
6517 (NLDELAY, CRDELAY, TBDELAY, BSDELAY, VTDELAY): Define to those.
6518 Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
6519
673876e6
UD
65202007-08-10 Ulrich Drepper <drepper@redhat.com>
6521
aa132749
UD
6522 * nss/nss_files/files-XXX.c (internal_setent): Use O_CLOEXEC if
6523 possible.
6524 * nss/nss_files/files-alias.c (internal_setent): Likewise.
6525 * nss/Makefile (libnss_files-routines): Add files-have_o_cloexec.
6526 * nss/nss_files/files-have_o_cloexec.c: New file.
6527
22532966 6528 * sysdeps/unix/sysv/linux/shm_open.c (shm_open): Use O_CLOEXEC if
673876e6
UD
6529 available.
6530
1e286653
JJ
65312007-08-10 Jakub Jelinek <jakub@redhat.com>
6532
6533 * sysdeps/ieee754/ldbl-128ibm/strtold_l.c (___new_strtold_l,
6534 ___new_wcstold_l): New weak aliases.
6535 (strtold_l, wcstold_l): Use them as second argument for
6536 long_double_symbol.
6537
f07f72f3
UD
65382007-08-09 Ulrich Drepper <drepper@redhat.com>
6539
6479496a
UD
6540 * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Use correct
6541 register in test for error.
6542
c4adefbd
UD
6543 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_CLOEXEC): Define.
6544 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (O_CLOEXEC): Likewise.
6545
f07f72f3
UD
6546 * po/sv.po: Update from translation team.
6547
eef38c28
RM
65482007-08-06 Roland McGrath <roland@redhat.com>
6549
773e305e
RM
6550 * include/stdlib.h: Add libc_hidden_proto for strto*, __strto*_l.
6551 Remove __strto*_l inlines.
6552 * include/wchar.h: Add libc_hidden_proto for wcsto*, __wcsto*_l.
6553 * stdlib/strtod.c: Add libc_hidden_def.
6554 * stdlib/strtod_l.c: Likewise.
6555 * stdlib/strtold.c [__LONG_DOUBLE_MATH_OPTIONAL]: Add libc_hidden_proto
6556 for __new_strtold and __new_wcstold.
6557 * sysdeps/ieee754/ldbl-128ibm/strtold_l.c: Add libc_hidden_proto for
6558 __STRTOF, STRTOF.
6559 * stdlib/strtol.c: Add libc_hidden_def.
6560 * stdlib/strtol_l.c: Likewise.
6561 * sysdeps/wordsize-64/strtol.c: Add libc_hidden_ver for strtoll and
6562 strtoq.
6563
6564 * scripts/data/localplt-powerpc-linux-gnu.data: New file.
6565
6566 * scripts/data/localplt-x86_64-linux-gnu.data: File renamed to ...
6567 * scripts/data/localplt-generic.data: ... here.
6568 * elf/Makefile (check-data): Get generic file if no other.
6569 ($(objpfx)check-localplt.out): Make target unconditional.
6570
eef38c28
RM
6571 * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_discover_osversion):
6572 Use ElfW(Nhdr).
6573
742df3a4
UD
65742007-08-05 Ulrich Drepper <drepper@redhat.com>
6575
6576 * po/zh_CN.po: Updated translation from translation team.
6577
0470fa46
JJ
65782007-08-05 Jakub Jelinek <jakub@redhat.com>
6579
6580 * sysdeps/unix/sysv/linux/powerpc/powerpc32/socket.S (__socket):
6581 Don't use CGOTSETUP and CGOTRESTORE macros.
6582
b5075bdc
RM
65832007-08-04 Roland McGrath <roland@redhat.com>
6584
6585 * posix/Makefile ($(objpfx)getconf.speclist): Fix typo.
6586
9accc268
JJ
65872007-08-04 Jakub Jelinek <jakub@redhat.com>
6588
6589 * io/bits/fcntl2.h (open, open64, openat, openat64): Add
6590 __extension__ around the whole statement expression.
6591
220ae3ef
UD
65922007-08-04 Ulrich Drepper <drepper@redhat.com>
6593
c8ccd8e3
UD
6594 * sysdeps/unix/opendir.c (__alloc_dir): Correct order of DIR
6595 elements during initialization.
6596
220ae3ef
UD
6597 * po/pl.po: Updated translation from translation team.
6598 * po/tr.po: Likewise.
11960f7f 6599 * po/nl.po: Likewise.
220ae3ef 6600
2fb20667
UD
66012007-08-03 Ulrich Drepper <drepper@redhat.com>
6602
6603 * rt/aio.h: Add __nonnull attributes.
6604
ce31a3b1
UD
66052007-08-03 Jakub Jelinek <jakub@redhat.com>
6606
64f6281c
UD
6607 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Properly handle -0.
6608 * stdlib/Makefile (tests): Add tst-strtod5.
6609 (tst-strtod5-ENV): New.
6610 * stdlib/tst-strtod5.c: New file.
6611
ce31a3b1
UD
6612 * intl/dcigettext.c (_nl_find_msg): Free encoding if __gconv_open
6613 failed.
6614 * intl/finddomain.c (_nl_find_domain): Free normalized_codeset
6615 on failure.
6616
6617 * elf/dl-load.c (decompose_rpath): Free copy if result couldn't be
6618 allocated.
6619
754980e4
JJ
66202007-08-03 Jakub Jelinek <jakub@redhat.com>
6621
6622 * rt/mqueue.h (mq_timedreceive, mq_timedsend): Fix nonnull argument
6623 numbers.
6624
497af0cb
UD
66252007-08-02 Ulrich Drepper <drepper@redhat.com>
6626
cbf0489b
UD
6627 * io/Makefile (aux): Add have_o_cloexec.
6628 * include/fcntl.h: Declare __have_o_cloexec.
6629 * io/have_o_cloexec.c: New file.
6630 * sysdeps/unix/opendir.c (__opendir): Use O_CLOEXEC is available.
6631 (__alloc_dir): If O_CLOEXEC has been used, don't duplicate the
6632 fcntl call if not necessary.
6633 * login/utmp_file.c (setutent_file): Use __have_o_cloexec instead
6634 of local variable.
6635
fa39685d
UD
6636 * sysdeps/unix/opendir.c (__alloc_dir): Don't initialize ->data.
6637 Avoid memset, add explicit initialization.
6638 * sysdeps/unix/dirstream.h (struct __dirstream): Move data elemtn
6639 to the end and change into zero-sized array.
6640 Move lock member to fill a hole on 64-bit platforms.
9b2e9577
UD
6641
6642 * stdlib/stdlib.h: Remove __strto*_internal prototypes and strto*
6643 inline functions.
6644 * include/stdlib.h: Add __strto*_internal prototypes here.
6645 * wcsmbs/wchar.h: Remove __wcsto*_internal prototypes and wcsto*
6646 inline functions.
6647 * include/wchar.h: Add __wcsto*_internal prototypes.
6648 * sysdeps/generic/inttypes.h: No need to protect the declaration
6649 of the __strto*_internal and __wcsto*_internal members here.
6650
497af0cb
UD
6651 * rt/mqueue.h: Change const to __const and add nonnull attributes.
6652
d17a8cf0
RM
66532007-08-02 Roland McGrath <roland@redhat.com>
6654
6655 * posix/Makefile ($(inst_libexecdir)/getconf): Make hard links to
6656 $(inst_bindir)/getconf if possible.
6657
6658 * posix/Makefile ($(objpfx)getconf.speclist): New target.
6659 (generated): Add it.
6660 ($(inst_libexecdir)/getconf): Use it.
6661
0abf17de
UD
66622007-08-01 Ulrich Drepper <drepper@redhat.com>
6663
6664 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Using
6665 /proc is faster and sufficient. /sys is still needed for
6666 __get_nprocs_conf.
6667
5e0923ab
UD
66682007-08-01 Jakub Jelinek <jakub@redhat.com>
6669
6670 * sysdeps/unix/sysv/linux/i386/syscalls.list (fallocate): Add fallocate
6671 syscall as __fallocate64.
6672 * sysdeps/unix/sysv/linux/i386/posix_fallocate.c: New file.
6673 * sysdeps/unix/sysv/linux/i386/posix_fallocate64.c: New file.
6674
1475e201
UD
66752007-07-30 Jakub Jelinek <jakub@redhat.com>
6676
6677 * stdlib/tst-strtod2.c (do_test): Use %tu in fmt string for ptrdiff_t
6678 value.
6679
6680 * stdio-common/tst-fmemopen2.c (do_test): Avoid fmt string warning
6681 if off_t is different rank from size_t.
6682
6683 * sysdeps/generic/unwind-dw2.c (extract_cie_info, execute_cfa_program,
6684 uw_frame_state_for): Avoid type punning warnings.
6685 * sysdeps/generic/unwind-dw2-fde-glibc.c
6686 (_Unwind_IteratePhdrCallback): Likewise.
6687 * sysdeps/generic/unwind-dw2-fde.c (_Unwind_Find_FDE): Likewise.
6688 (binary_search_single_encoding_fdes, binary_search_mixed_encoding_fdes,
6689 get_cie_encoding, linear_search_fdes): Don't mix char and unsigned char
6690 pointers.
6691
e076bece
UD
66922007-07-31 Ulrich Drepper <drepper@redhat.com>
6693
9506149a
UD
6694 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs_conf): Count
6695 total processors using sysfs.
6696 (__get_nprocs): Use sysfs to determine which processors are online.
e076bece 6697
bbeaaa84
JJ
66982007-07-31 Jakub Jelinek <jakub@redhat.com>
6699
09881398
JJ
6700 * sysdeps/unix/sysv/linux/posix_fallocate.c (posix_fallocate): Fix
6701 syscall arguments count.
6702
bbeaaa84
JJ
6703 * stdio-common/tfformat.c (sprint_doubles): Add 12 new tests.
6704
087ef75f
RM
67052007-07-30 Roland McGrath <roland@redhat.com>
6706
6707 * manual/libc.texinfo: Update copyrights, formatting magic, and
6708 @dircategory. From Karl Berry <karl@freefriends.org>.
6709
44f08a6e
UD
67102007-07-29 Ulrich Drepper <drepper@redhat.com>
6711
eafaae72
UD
6712 [BZ #4860]
6713 * io/Makefile (headers): Add bits/fcntl2.h.
6714
c5705565
UD
6715 * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_ZERO_S): Optimize
6716 using gcc builtin.
6717 (__CPU_EQUAL_S): Likewise.
6718
44f08a6e
UD
6719 * posix/Makefile (routines): Add sched_cpualloc and sched_cpufree.
6720 (tests): Add tst-cpuset.
6721 * posix/sched_cpualloc.c: New file.
6722 * posix/sched_cpufree.c: New file.
6723 * posix/tst-cpuset.c: New file.
6724 * posix/Versions: Export __sched_cpualloc and __sched_cpufree for
6725 GLIBC_2.7.
6726 * sysdeps/unix/sysv/linux/bits/sched.h: Define __CPU_*_S macros.
6727 * posix/sched.h: Define old CPU_* macros in temers of __CPU_*_S
6728 macros. Define CPU_*_S macros.
6729
8f5e1400
UD
67302007-07-28 Ulrich Drepper <drepper@redhat.com>
6731
5b74caf6
UD
6732 * posix/getconf.c (vars): Add missing _SC_LEVEL4_CACHE_LINESIZE
6733 entry.
6734
a26d01bb 6735 [BZ #4858]
8f5e1400
UD
6736 * stdio-common/printf_fp.c (___printf_fp): Fix special case of
6737 #.0g and value rounded to 1.0.
6738 * stdio-common/tfformat.c (sprint_doubles): Add two new tests.
6739
085a4412
UD
67402007-07-26 Jakub Jelinek <jakub@redhat.com>
6741
cedb4109
UD
6742 * locale/programs/ld-monetary.c (monetary_finish): Avoid range check
6743 for int_frac_digits and frac_digits.
6744
6745 * login/logout.c (logout): Avoid aliasing violation.
6746 * login/logwtmp.c (logwtmp): Likewise.
6747
6748 * libio/genops.c (_IO_un_link): Avoid aliasing violation.
6749
9d9febc7
UD
6750 * nscd/selinux.c (preserve_capabilities): Initialize new_caps
6751 to avoid warning.
6752 * iconv/gconv_open.c (__gconv_open): Initialize ptr to avoid
6753 warning.
6754 * nis/nis_subr.c (nis_getnames): Initialize saveptr to avoid
6755 warning.
6756 * resolv/inet_ntop.c (inet_ntop6): Initialize best.len and cur.len
6757 to avoid warnings.
6758
701666b7
UD
6759 * nss/nsswitch.c (__nss_lookup_function): Don't cast &ni->known to
6760 void **.
6761 * nss/nsswitch.h (service_user): Use void * type for KNOWN field.
6762
6763 * nss/nss_files/files-hosts.c (LINE_PARSER): Cast host_addr to
6764 char * to avoid warning.
6765 * nis/nss_nis/nis-hosts.c (LINE_PARSER): Likewise.
6766
6767 * timezone/Makefile (CFLAGS-zdump.c): Add -fwrapv.
6768
6769 * locale/programs/ld-ctype.c (ctype_finish, set_class_defaults,
6770 allocate_arrays): Cast second argument to charmap_find_symbol
6771 to char * to avoid warnings.
6772
6773 * locale/programs/repertoire.c (repertoire_new_char): Change
6774 from_nr, to_nr and cnt to unsigned long, adjust printf format
6775 string.
6776
6777 * locale/programs/ld-collate.c (insert_value, handle_ellipsis):
6778 Cast second argument to new_element to char * to avoid warnings.
6779
6780 * locale/weightwc.h (findidx): Cast &extra[-i] to const int32_t *.
6781
6782 * intl/gettextP.h (struct loaded_domain): Change plural to const
6783 struct expression *.
6784 * intl/plural-eval.c (plural_eval): Change first argument to
6785 const struct expression *.
6786 * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Change first
6787 argument to const struct expression **.
6788 * intl/plural-exp.h (EXTRACT_PLURAL_EXPRESSION, plural_eval): Adjust
6789 prototypes.
6790 * intl/loadmsgcat (_nl_unload_domain): Cast away const
6791 in call to __gettext_free_exp.
6792
6793 * posix/fnmatch.c (fnmatch): Rearrange code to avoid maybe
6794 unitialized wstring/wpattern var warnings.
6795
6796 * posix/runtests.c (struct a_test): Make data field const char *.
6797
6798 * stdio-common/tst-sprintf2.c (main): Don't declere u, v and buf
6799 vars if not LDBL_MANT_DIG >= 106.
6800
6801 * stdio-common/Makefile (CFLAGS-vfwprintf.c): Add -Wno-unitialized.
6802
6803 * stdio-common/vfprintf.c (vfprintf): Cast first arugment to
6804 __find_specmb to avoid warning.
6805
6806 * rt/tst-mqueue1.c (do_one_test): Add casts to avoid warnings.
6807
6808 * debug/test-strcpy_chk.c (do_tests, do_random_tests): Add casts
6809 to avoid warnings.
6810
6811 * sysdeps/ieee754/ldbl-96/s_roundl.c (huge): Add L suffix to
6812 initializer.
6813
6814 * sysdeps/unix/clock_gettime.c (clock_gettime): Only define
6815 tv var when it will be actually used.
6816
6817 * sunrpc/rpc_cmsg.c (xdr_callmsg): Cast IXDR_PUT_* to void
6818 to avoid warnings.
6819
085a4412
UD
6820 * iconvdata/gbk.c (BODY): Make buf and cp char instead of unsigned
6821 char array resp. pointer.
6822 * iconvdata/iso-2022-kr.c (BODY): Make buf unsigned char instead of
6823 char array.
6824 * iconvdata/cns11643.h (cns11643_to_ucs4): Change first argument
6825 to const unsigned char **.
6826 (ucs4_to_cns11643): Change second argument to unsigned char *.
6827 * iconvdata/euc-tw.c (BODY): Change endp type to
6828 const unsigned char *.
6829 * iconvdata/iso-ir-165.h (ucs4_to_isoir165): Change second argument
6830 to unsigned char *.
6831 * iconvdata/ibm1008_420.c (LOOP_NEED_FLAGS): Don't define.
6832 * iconvdata/iso-2022-cn.c (BODY): Change buf to unsigned char array.
6833 * iconvdata/iso-2022-cn-ext.c (BODY): Change buf, tmpbuf, tmp
6834 types to unsigned char pointers/arrays instead of char.
6835 * iconvdata/jis0201.h (ucs4_to_jisx0201): Change second argument
6836 to unsigned char *.
6837 * iconvdata/jis0208.h (ucs4_to_jisx0208): Likewise.
6838 * iconvdata/jis0212.h: Include assert.h.
6839 (ucs4_to_jisx0212): Change second argument to unsigned char *.
6840 assert that if cp[0] is not '\0', cp[1] is not '\0' either instead
6841 of trying to handle that.
6842 * iconvdata/euc-kr.c (euckr_from_ucs4): Initialize also cp[1] to
6843 shut up a warning.
6844 * iconvdata/euc-jp-ms.c (from_ucs4_lat1, from_ucs4_greek,
6845 from_ucs4_cjk, from_ucs4_cjkcpt, from_ucs4_extra): Change type to
6846 two dimensional const unsigned char arrays.
6847 (BODY): Cast "" to (const unsigned char *) for assignment to cp.
6848 Initialize endp to inptr to shut up a warning.
6849
fa69dc9c
UD
68502007-07-20 Jakub Jelinek <jakub@redhat.com>
6851
ae1ad762
UD
6852 [BZ #4772]
6853 * time/strptime_l.c (__strptime_internal): Silently ignore
6854 strftime modifiers and field width in recursive calls.
6855
fa69dc9c
UD
6856 * include/time.h (enum ptime_locale_status): Remove.
6857 (__strptime_internal): Remove decided and era_cnt arguments,
6858 add statep argument.
6859 * time/strptime_l.c (__strptime_internal): Remove decided
6860 and era_cnt arguments, add statep argument. Don't recompute
6861 any fields in recursive calls, only update caller's tm
6862 and state, if recursive call fails, don't change tm nor
6863 any state.
6864 (get_alt_number): Adjust.
6865 (recursive): Adjust caller.
6866 (strptime): Likewise.
6867 * time/strptime.c (strptime): Likewise.
6868
7b503bcc
UD
68692007-07-19 Jakub Jelinek <jakub@redhat.com>
6870
6871 * iconv/gconv_int.h (__GCONV_NULCONV): New internal only error code.
6872 * iconv/gconv_cache.c (__gconv_lookup_cache): Return __GCONV_NULCONV
6873 if from and to charsets are the same.
6874 * iconv/gconv_db.c (__gconv_find_transform): Likewise.
6875 * intl/dcigettext.c (_nl_find_msg): Return NULL even if __gconv_open
6876 returns __GCONV_NOCONV, but not for __GCONV_NULCONV.
6877
68782007-07-17 Jakub Jelinek <jakub@redhat.com>
6879
6880 * wcsmbs/wchar.h: Only define wint_t if __need_wint_t.
6881 Don't define wint_t when __need_mbstate_t unless it
6882 is necessary.
6883 (__mbstate_t): Use __WINT_TYPE__ rather than wint_t
6884 in the typedef if possible.
6885 * wctype/wctype.h (wint_t): Define by including
6886 wchar.h with __need_wint_t instead of including stddef.h
6887 with __need_wint_t and as fallback definining it ourselves.
6888 * iconv/gconv.h (__need_wint_t): Define before including
6889 wchar.h.
6890 * sysdeps/gnu/_G_config.h: Don't include gconv.h if not _LIBC
6891 or _GLIBCPP_USE_WCHAR_T.
6892 (__need_wchar_t): Don't define
6893 if not _LIBC or _GLIBCPP_USE_WCHAR_T.
6894 (__need_wint_t): Don't define before including stddef.h,
6895 define before including wchar.h only if _LIBC or
6896 _GLIBCPP_USE_WCHAR_T.
6897 (_G_iconv_t): Don't define if not _LIBC or _GLIBCPP_USE_WCHAR_T.
6898 * sysdeps/mach/hurd/_G_config.h: Likewise.
6899 * sysdeps/generic/_G_config.h: Likewise.
6900 * libio/libio.h (__wunderflow, __wuflow, __woverflow): Only
6901 prototype if _LIBC or _GLIBCPP_USE_WCHAR_T.
6902 (_IO_getwc_unlocked, _IO_putwc_unlocked): Only define
6903 if _LIBC or _GLIBCPP_USE_WCHAR_T.
6904
a95a608f
UD
69052007-07-28 Ulrich Drepper <drepper@redhat.com>
6906
6907 * sysdeps/posix/posix_fallocate64.c: Undefine
6908 __posix_fallocate64_l64 before alias handling.
6909 * sysdeps/unix/sysv/linux/posix_fallocate.c: New file.
6910 * sysdeps/unix/sysv/linux/posix_fallocate64.c: New file.
6911 * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c: New file.
6912 * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate64.c: New file.
6913
6914 * io/tst-posix_fallocate.c: Include <fcntl.h>.
6915
69162007-07-23 Jakub Jelinek <jakub@redhat.com>
6917
6918 * locale/programs/ld-collate.c (atwc): New variable.
6919 (add_to_tablewc): New toplevel function, moved from collate_output.
6920 (collate_output): Remove add_to_tablewc nested function.
6921
6922 * iconv/iconvconfig.c (hash_table, hash_size): New toplevel vars.
6923 (name_insert): New function.
6924 (write_output): Remove hash_table and hash_size vars and name_insert
6925 nested function.
6926
80d4c3b0
RM
69272007-07-24 Roland McGrath <roland@redhat.com>
6928
6929 * Makerules (install-others-programs-nosubdir): New target.
6930 (install-no-libc.a-nosubdir): Depend on it.
6931
6932 * iconv/Makefile (install-others-programs): Set this instead of
6933 install-others.
6934 * login/Makefile (install-others-programs): Likewise.
6935 * posix/Makefile (install-others-programs): Likewise.
6936
6937 * Makerules (install-no-libc.a-nosubdir): Clean up conditional
6938 dependencies.
6939
c1bf9f14
UD
69402007-07-23 Ulrich Drepper <drepper@redhat.com>
6941
6942 * io/Makefile (tests): Add tst-posix_fallocate.
6943 * io/tst-posix_fallocate.c: New file.
6944
6945 * sysdeps/unix/sysv/linux/kernel-features.h: Define
6946 __ASSUME_FALLOCATE.
6947
2320270c
RM
69482007-07-22 Roland McGrath <roland@frob.com>
6949
3dadfa7e
RM
6950 * hurd/getdport.c: Add missing copyright year update.
6951
2320270c
RM
6952 * sysdeps/mach/hurd/bits/fcntl.h [__USE_GNU] (O_CLOEXEC): New macro.
6953 * hurd/port2fd.c (_hurd_port2fd): Implement O_CLOEXEC.
6954
cc783763
UD
69552007-07-22 Ulrich Drepper <drepper@redhat.com>
6956
c942388d
UD
6957 * login/utmp_file.c (setutent_file): Use O_CLOEXEC if possible.
6958
cc783763
UD
6959 * libio/fileops.c (_IO_new_file_fopen): Recognize 'e' flag and set
6960 O_CLOEXEC is needed.
6961 * nis/nss_compat/compat-grp.c: Use 'e' flag when opening file.
6962 Avoid additional fcntl to set O_CLOEXEC if not needed.
6963 * nis/nss_compat/compat-initgroups.c: Likewise.
6964 * nis/nss_compat/compat-pwd.c: Likewise.
6965 * nis/nss_compat/compat-spwd.c: Likewise.
6966
610903b0
RM
69672007-07-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
6968
3dadfa7e 6969 [BZ #3665]
5c3d7832
RM
6970 * manual/errno.texi: Change ECANCELED value to 119.
6971
3dadfa7e 6972 [BZ #4610]
610903b0
RM
6973 * mach/lock-intern.h: Include <sys/cdefs.h>.
6974
3dadfa7e 6975 [BZ #4178]
610903b0
RM
6976 * sysdeps/mach/hurd/sigaction.c (__sigaction): Check ACT != NULL before
6977 reading A.
6978
3dadfa7e
RM
6979 [BZ #4126]
6980 * sysdeps/mach/hurd/sigsuspend.c (sigsuspend_not_cancel): Define alias
6981 to __sigsuspend.
610903b0
RM
6982
6983 * sysdeps/mach/i386/sysdep.h: Include <dl-sysdep.h> and <tls.h>.
6984
69852006-06-13 Thomas Schwinge <tschwinge@gnu.org>
6986
6987 * sysdeps/mach/hurd/tls.h: Change `ASSEMBLER' conditional to
6988 `__ASSEMBLER__'.
6989 * sysdeps/mach/hurd/i386/tls.h: Likewise.
6990
acf79996
UD
69912007-07-21 Ulrich Drepper <drepper@redhat.com>
6992
dde0763a
UD
6993 * nscd/nscd_helper.c (get_mapping): Use MSG_CMSG_CLOEXEC for
6994 descriptor received from nscd.
6995
acf79996
UD
6996 * sysdeps/unix/sysv/linux/bits/socket.h: Define MSG_CMSG_CLOEXEC.
6997
6998 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_CLOEXEC.
6999 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
7000 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
7001 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
7002 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
7003 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
7004
00d26929
JJ
70052007-07-20 Jakub Jelinek <jakub@redhat.com>
7006
403445d7
JJ
7007 [BZ #4816]
7008 * manual/signal.texi (Non-atomic Example): Make memory var volatile.
7009
00d26929
JJ
7010 [BZ #4813]
7011 * login/forkpty.c (forkpty): Close master and slave fds on
7012 fork failure. Patch by
7013 Mikulas Patocka <mikulas@artax.karlin.mff.cuni.cz>.
7014
087722b8
UD
70152007-07-18 Jakub Jelinek <jakub@redhat.com>
7016
7017 * include/features.h (__USE_ISOC95): New define.
7018 * wcsmbs/wchar.h (fwprintf, fwscanf, wprintf, wscanf, swprintf,
7019 swscanf, vfwprintf, vwprintf, vswprintf, fwide): Define even
7020 for -std=iso9899:199409.
7021 * CONFORMANCE: Remove comments about unsupported AMD1.
7022
b042b023
UD
70232007-07-17 Jakub Jelinek <jakub@redhat.com>
7024
7025 * sysdeps/ia64/sched_cpucount.c: New file.
7026 * sysdeps/powerpc/sched_cpucount.c: New file.
7027
8381e467
UD
7028 * sysdeps/unix/sysv/linux/bits/sched.h (__sched_cpucount): Add
7029 __BEGIN_DECLS/__END_DECLS around the prototype.
7030 * bits/sched.h (__sched_cpucount): Likewise. Make second argument
7031 pointer to const cpu_set_t.
7032
50e16f85
UD
7033 * bits/types.h: Don't include stddef.h, don't define __need_size_t.
7034 * signal/signal.h <__USE_BSD || __USE_XOPEN_EXTENDED>: Define
7035 __need_size_t and include stddef.h.
7036 * sysvipc/sys/msg.h: Likewise.
7037 * posix/sched.h: Likewise.
7038 * hurd/hurd/signal.h (__need_size_t): Define.
7039
7040 * CONFORMANCE: ctype.h and wctype.h no longer define size_t,
7041 neither does signal.h in pedantic ISO C namespaces. stdio.h
7042 no longer defines wint_t or wchar_t.
7043
b257c726
UD
7044 * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): New function.
7045 * debug/vfwprintf_chk.c (__vfwprintf_chk): Use
7046 _IO_acquire_lock_clear_flags2 instead of _IO_acquire_lock.
7047 * debug/vprintf_chk.c (__vprintf_chk): Likewise.
7048 * debug/vwprintf_chk.c (__vwprintf_chk): Likewise.
7049 * debug/vfprintf_chk.c (__vfprintf_chk): Likewise.
7050 * debug/fwprintf_chk.c (__fwprintf_chk): Likewise.
7051 * debug/printf_chk.c (__printf_chk): Likewise.
7052 * debug/fprintf_chk.c (__fprintf_chk): Likewise.
7053 * debug/wprintf_chk.c (__wprintf_chk): Likewise.
7054
7055 * sysdeps/pthread/bits/stdio-lock.h (_IO_acquire_lock_clear_flags2):
7056 Define.
7057
d5078b9f
UD
7058 * bits/confname.h (_CS_POSIX_V6_WIDTH_RESTRICTED_ENVS): Define.
7059 * posix/getconf.c (vars): Add POSIX_V6_WIDTH_RESTRICTED_ENVS.
7060
1c3e748e
UD
70612007-07-16 Jakub Jelinek <jakub@redhat.com>
7062
7063 [BZ #4792]
7064 * stdlib/stdlib.h (realloc): Remove __attribute_malloc__.
7065 * malloc/malloc.h (realloc): Likewise.
7066
4e425301
UD
7067 * libio/iopopen.c (_IO_new_proc_open): Don't close child_std_end
7068 if one of proc_file_chain streams has that fileno.
7069 * stdio-common/Makefile (tests): Add tst-popen2.
7070 * stdio-common/tst-popen2.c: New test.
7071
2e2efe65
RM
70722007-07-14 Jakub Jelinek <jakub@redhat.com>
7073
7074 * elf/ldconfig.c: Allow GPLv2 or any later version.
7075 * elf/readlib.c: Likewise.
7076 * elf/chroot_canon.c: Likewise.
7077 * elf/cache.c: Likewise.
7078 * nscd/mem.c: Likewise.
7079 * nscd/getpwuid_r.c: Likewise.
7080 * nscd/grpcache.c: Likewise.
7081 * nscd/aicache.c: Likewise.
7082 * nscd/getsrvbynm_r.c: Likewise.
7083 * nscd/nscd.c: Likewise.
7084 * nscd/servicescache.c: Likewise.
7085 * nscd/getsrvbypt_r.c: Likewise.
7086 * nscd/initgrcache.c: Likewise.
7087 * nscd/gethstbyad_r.c: Likewise.
7088 * nscd/gethstbynm2_r.c: Likewise.
7089 * nscd/getgrnam_r.c: Likewise.
7090 * nscd/nscd_setup_thread.c: Likewise.
7091 * nscd/getpwnam_r.c: Likewise.
7092 * nscd/gai.c: Likewise.
7093 * nscd/connections.c: Likewise.
7094 * nscd/dbg_log.c: Likewise.
7095 * nscd/cache.c: Likewise.
7096 * nscd/hstcache.c: Likewise.
7097 * nscd/nscd_conf.c: Likewise.
7098 * nscd/getgrgid_r.c: Likewise.
7099 * nscd/pwdcache.c: Likewise.
7100 * catgets/gencat.c: Likewise.
7101 * locale/programs/linereader.h: Likewise.
7102 * locale/programs/locarchive.c: Likewise.
7103 * locale/programs/ld-paper.c: Likewise.
7104 * locale/programs/locfile-kw.h: Likewise.
7105 * locale/programs/ld-address.c: Likewise.
7106 * locale/programs/xmalloc.c: Likewise.
7107 * locale/programs/ld-time.c: Likewise.
7108 * locale/programs/localedef.c: Likewise.
7109 * locale/programs/simple-hash.c: Likewise.
7110 * locale/programs/xstrdup.c: Likewise.
7111 * locale/programs/ld-numeric.c: Likewise.
7112 * locale/programs/locfile-kw.gperf: Likewise.
7113 * locale/programs/ld-collate.c: Likewise.
7114 * locale/programs/charmap-kw.gperf: Likewise.
7115 * locale/programs/charmap.h: Likewise.
7116 * locale/programs/charmap-kw.h: Likewise.
7117 * locale/programs/config.h: Likewise.
7118 * locale/programs/locfile.c: Likewise.
7119 * locale/programs/ld-ctype.c: Likewise.
7120 * locale/programs/charmap.c: Likewise.
7121 * locale/programs/ld-messages.c: Likewise.
7122 * locale/programs/repertoire.h: Likewise.
7123 * locale/programs/locale.c: Likewise.
7124 * locale/programs/ld-name.c: Likewise.
7125 * locale/programs/linereader.c: Likewise.
7126 * locale/programs/locfile.h: Likewise.
7127 * locale/programs/3level.h: Likewise.
7128 * locale/programs/ld-monetary.c: Likewise.
7129 * locale/programs/ld-measurement.c: Likewise.
7130 * locale/programs/charmap-dir.c: Likewise.
7131 * locale/programs/ld-identification.c: Likewise.
7132 * locale/programs/localedef.h: Likewise.
7133 * locale/programs/charmap-dir.h: Likewise.
7134 * locale/programs/repertoire.c: Likewise.
7135 * locale/programs/simple-hash.h: Likewise.
7136 * locale/programs/ld-telephone.c: Likewise.
7137 * locale/programs/locale-spec.c: Likewise.
7138 * locale/programs/locfile-token.h: Likewise.
7139 * posix/getconf.c: Likewise.
7140 * iconv/dummy-repertoire.c: Likewise.
7141 * iconv/iconv_charmap.c: Likewise.
7142 * iconv/iconvconfig.c: Likewise.
7143 * iconv/iconv_prog.c: Likewise.
7144 * malloc/memusagestat.c: Likewise.
7145 * sysdeps/unix/sysv/linux/nscd_setup_thread.c: Likewise.
7146
84c23a3d
RM
71472007-07-06 Kaz Kojima <kkojima@rr.iij4u.or.jp>
7148
7149 * sysdeps/sh/bsd-setjmp.S (setjmp): Use correct argument registers.
7150 * sysdeps/sh/bsd-_setjmp.S (_setjmp): Likewise.
7151 * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Do correct sanity
7152 check for the first argument.
7153
1c298d08
UD
71542007-07-12 Jakub Jelinek <jakub@redhat.com>
7155
7156 [BZ #4775]
7157 * math/tgmath.h (__tgmath_real_type_sub): Formatting.
7158 (__tgmath_real_type): Fix if expr is const int or other const
7159 qualified integral type.
7160 (__TGMATH_UNARY_REAL_ONLY): Rewritten to avoid using statement
7161 expressions and handle const qualified arguments.
7162 (__TGMATH_BINARY_FIRST_REAL_ONLY, __TGMATH_UNARY_REAL_IMAG,
7163 __TGMATH_UNARY_REAL_IMAG_RET_REAL): Likewise.
7164 (__TGMATH_UNARY_REAL_RET_ONLY): Rewritten to avoid using
7165 statement expressions.
7166 (__TGMATH_BINARY_REAL_ONLY, __TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY,
7167 __TGMATH_TERNARY_REAL_ONLY, __TGMATH_BINARY_REAL_IMAG): Likewise.
7168 (__TGMATH_UNARY_IMAG): Define.
7169 (conj, cproj): Use __TGMATH_UNARY_IMAG macro.
7170 * math/Makefile (tests): Add test-tgmath2.
7171 (CFLAGS-test-tgmath2.c): Add.
7172 * math/test-tgmath.c (fy, dy, ly, fz, dz, lz, count_cdouble,
7173 count_cfloat, count_cldouble): New variables.
7174 (NCCALLS): Define.
7175 (main): Check number of complex calls as well.
7176 (F(compile_test)): Add complex tests and tests with const qualified
7177 arguments.
7178 (y, z, ccount): Define.
7179 (F(cacos), F(casin), F(catan), F(ccos), F(csin), F(ctan), F(cacosh),
7180 F(casinh), F(catanh), F(ccosh), F(csinh), F(ctanh), F(cexp), F(clog),
7181 F(csqrt), F(cpow), F(cabs), F(carg), F(creal), F(cimag), F(conj),
7182 F(cproj)): New functions.
7183 * math/test-tgmath2.c: New test.
7184
71852007-07-11 Jakub Jelinek <jakub@redhat.com>
7186
7187 [BZ #4776]
7188 * elf/dl-load.c (_dl_rtld_di_serinfo): Output / in LD_LIBRARY_PATH,
7189 RPATH etc. as "/" rather than "", don't segfault on empty paths,
7190 instead output ".".
7191 * dlfcn/Makefile (distribute): Add glreflib3.c.
7192 (module-names): Add glreflib3.
7193 ($(objpfx)tst-dlinfo.out): Depend on glreflib3.so rather than
7194 glreflib1.so.
7195 (LDFLAGS_glreflib3.so): New.
7196 * dlfcn/tst-dlinfo.c (do_test): Load glreflib3.so instead of
7197 glreflib1.so.
7198 * dlfcn/glreflib3.c: New file.
7199
7200 * intl/finddomain.c (_nl_find_domain): If _nl_explode_name
7201 returned -1, return NULL.
7202 * intl/explodename.c (_nl_explode_name): Return -1 if
7203 _nl_normalize_codeset failed.
7204
a88f47a7
UD
72052007-07-07 Steven Munroe <sjmunroe@us.ibm.com>
7206
7207 * sysdeps/powerpc/powerpc32/power6/memset.S: Update comments.
7208 Specify .machine power6 to get ISA-V2.0 branch hints. Unroll loops
7209 and avoid branch misspredicts for > 31 bytes memset case.
7210 * sysdeps/powerpc/powerpc64/power6/memset.S: Likewise.
7211 Remove toc ref to __cache_line_size.
7212
7213 * sysdeps/powerpc/powerpc32/power4/memcmp.S: Specify .machine power4
7214 to get ISA-V2.0 branch hints.
7215 * sysdeps/powerpc/powerpc32/power4/memcpy.S: Likewise
7216 * sysdeps/powerpc/powerpc32/power4/memset.S: Likewise
7217 * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
7218 * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
7219 * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
7220 * sysdeps/powerpc/powerpc64/power4/memset.S: Likewise.
7221 Remove toc ref to __cache_line_size.
7222
7223 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S:
7224 Include math_ldbl_opt.h.
7225
f98c2d06
UD
72262007-07-10 Ulrich Drepper <drepper@redhat.com>
7227
7228 [BZ #4773]
7229 * time/strptime_l.c (__strptime_internal): Implement greedy
7230 matching of weekday and month names.
7231
cec5991f
RM
72322007-07-09 Roland McGrath <roland@redhat.com>
7233
7234 * elf/elf.h (NT_GNU_ABI_TAG): New macro.
7235 (ELF_NOTE_ABI): Use it.
7236 (NT_GNU_HWCAP, NT_GNU_BUILD_ID): New macros.
7237
8c1dcd26
UD
72382007-07-09 Ulrich Drepper <drepper@redhat.com>
7239
7240 * sysdeps/x86_64/cacheinfo.c (intel_02_known): Add new entries.
7241 * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
7242
c2c7bd3f
UD
72432007-07-07 Ulrich Drepper <drepper@redhat.com>
7244
7245 [BZ #4745]
0923a2c8
UD
7246 * stdio-common/vfscanf.c (_IO_vfscanf): Add additional test for EOF
7247 in loop to look for conversion specifier to avoid testing of
7248 wrong errno value.
7249 * stdio-common/Makefile (tests): Add bug18, bug18a, bug19, bug19a.
c2c7bd3f 7250 * stdio-common/bug18.c: New file.
0923a2c8
UD
7251 * stdio-common/bug18a.c: New file.
7252 * stdio-common/bug19.c: New file.
7253 * stdio-common/bug19a.c: New file.
c2c7bd3f 7254
4facf4af
RM
72552007-07-05 Mike Frysinger <vapier@gentoo.org>
7256
7257 * Makeconfig ($(common-objpfx)gnu/lib-names.stmp): Use LC_ALL=C when
7258 running awk script.
7259
1311e86e
UD
72602007-07-01 Jakub Jelinek <jakub@redhat.com>
7261
7262 * elf/dl-sysdep.c (_dl_important_hwcaps): Add integer overflow check.
7263 * elf/dl-minimal.c (__libc_memalign): Likewise. Handle malloc (0).
7264 Return NULL if mmap failed instead of asserting it does not.
7265 (calloc): Check for integer overflow.
7266
7267 * elf/dl-minimal.c (__strtoul_internal): Fix parsing of numbers bigger
7268 than LONG_MAX / 10.
7269
57c9179c
UD
72702007-07-03 Jakub Jelinek <jakub@redhat.com>
7271
7272 [BZ #4702]
7273 * nis/nss-default.c: Include errno.h.
7274 (init): Preserve errno.
7275
d0b283a8
UD
72762007-07-02 Ulrich Drepper <drepper@redhat.com>
7277
7278 * sysdeps/unix/sysv/linux/bits/socket.h (PF_UNIX): Update comment.
7279
34e0bbaf
UD
72802007-06-30 Ulrich Drepper <drepper@redhat.com>
7281
7282 * sysdeps/unix/sysv/linux/bits/socket.h: Add PF_RXRPC and AF_RXRPC.
7283
72842007-06-29 Martin Schwidefsky <schwidefsky@de.ibm.com>
7285
7286 * sysdeps/unix/sysv/linux/bits/socket.h: Add PF_IUCV and AF_IUCV.
7287
34e0bbaf 72882007-06-29 Martin Schwidefsky <schwidefsky@de.ibm.com>
33516494
UD
7289
7290 * sysdeps/s390/dl-procinfo.c: New file.
7291 * sysdeps/s390/dl-procinfo.h: New file.
7292 * sysdeps/unix/sysv/linux/s390/dl-procinfo.h: New file.
7293
0e508a6e
UD
72942007-06-29 Jakub Jelinek <jakub@redhat.com>
7295
7296 * elf/dl-load.c (open_verify): Find .note.ABI-tag notes even
7297 in PT_NOTE segments with multiple notes.
7298 * elf/readelflib.c (process_elf_file): Likewise.
7299
e22c61fb
UD
73002007-06-22 Ulrich Drepper <drepper@redhat.com>
7301
7302 * nis/nis_domain_of.c (__nis_domain_of): Make the code a bit more
7303 ISO C compliant.
7304
e4eb675d
UD
73052007-06-19 Ulrich Drepper <drepper@redhat.com>
7306
7307 * elf/dl-close.c (free_mem): Free _dl_scope_free_list.
7308
73092007-06-13 Jakub Jelinek <jakub@redhat.com>
7310
7311 * include/link.h: Don't include rtld-lowlevel.h.
7312 (struct link_map): Remove l_scope_lock.
7313 * sysdeps/generic/ldsodefs.h: Don't include rtld-lowlevel.h.
7314 (_dl_scope_free_list): New field (variable) in _rtld_global.
7315 (DL_LOOKUP_SCOPE_LOCK): Remove.
7316 (_dl_scope_free): New prototype.
7317 * elf/dl-runtime.c (_dl_fixup): Don't use __rtld_mrlock_*lock.
7318 Don't pass DL_LOOKUP_SCOPE_LOCK to _dl_lookup_symbol_x.
7319 (_dl_profile_fixup): Likewise.
7320 * elf/dl-sym.c (do_sym): Likewise. Use wrapped _dl_lookup_symbol_x
7321 whenever !RTLD_SINGLE_THREAD_P, use THREAD_GSCOPE_SET_FLAG and
7322 THREAD_GSCOPE_RESET_FLAG around it.
7323 * elf/dl-close.c (_dl_close_worker): Don't use
7324 __rtld_mrlock_{change,done}. Call _dl_scope_free on the old
7325 scope. Make sure THREAD_GSCOPE_WAIT () happens if any old
7326 scopes were queued or if l_scope_mem has been abandoned.
7327 * elf/dl-open.c (_dl_scope_free): New function.
7328 (dl_open_worker): Use it. Don't use __rtld_mrlock_{change,done}.
7329 * elf/dl-support.c (_dl_scope_free_list): New variable.
7330 * elf/dl-lookup.c (add_dependency): Remove flags argument.
7331 Remove DL_LOOKUP_SCOPE_LOCK handling.
7332 (_dl_lookup_symbol_x): Adjust caller. Remove DL_LOOKUP_SCOPE_LOCK
7333 handling.
7334 * elf/dl-object.c (_dl_new_object): Don't use
7335 __rtld_mrlock_initialize.
7336
9be09e06
UD
73372007-06-19 Ulrich Drepper <drepper@redhat.com>
7338
7339 * sysdeps/generic/ldsodefs.h (rtld_global): Reorder some elements
7340 to fill in holes
7341 (rtld_global_ro): Likewise.
7342
73432007-06-18 Jakub Jelinek <jakub@redhat.com>
7344
7345 * elf/dl-addr.c (_dl_addr): Skip PT_LOAD checking if l_contiguous.
7346 Move PT_LOAD checking to...
7347 (_dl_addr_inside_object): ... here, new function.
7348 * elf/dl-sym.c (do_sym): If not l_contiguous,
7349 call _dl_addr_inside_object.
7350 * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise.
7351 * dlfcn/dlinfo.c (dlinfo_doit): Likewise.
7352 * elf/dl-open.c (dl_open_worker): Likewise.
7353 (_dl_addr_inside_object): New function if IS_IN_rtld.
7354 * elf/dl-load.c (_dl_map_object_from_fd): Set l_contiguous if no
7355 holes are present or are PROT_NONE protected.
7356 * include/link.h (struct link_map): Add l_contiguous field.
7357 * sysdeps/generic/ldsodefs.h (_dl_addr_inside_object): New prototype.
7358
ae1ad3ae 73592007-06-18 Jakub Jelinek <jakub@redhat.com>
f00d47a3
AS
7360 Tomas Janousek <tjanouse@redhat.com>
7361 Ulrich Drepper <drepper@redhat.com>
ae1ad3ae
UD
7362
7363 [BZ #4647]
7364 * resolv/res_send.c (send_dg): Remove socket_pf. Use ipv6_unavail
7365 member in __res_state, only convaddr4to6 if nssocks[ns] is a PF_INET6
7366 socket.
7367 * resolv/resolv.h (__res_state): Add ipv6_unavail member. Make
7368 unused member a bitmap.
7369 * resolv/res_init.c (__res_vinit): Reset ipv6_unavail if IPv6
7370 servers are configured.
7371
3abee0b7
UD
73722007-06-18 Jakub Jelinek <jakub@redhat.com>
7373
7374 * elf/rtld.c (dl_main): Don't call init_tls more than once.
7375
89074592
UD
73762007-06-17 Andreas Schwab <schwab@suse.de>
7377
7378 * sysdeps/generic/initfini.c: Tell gcc about the nonstandard sections.
7379
b26e274d
AJ
73802007-06-16 Andreas Jaeger <aj@suse.de>
7381
7382 [BZ #4125]
7383 * sysdeps/unix/sysv/linux/sys/ptrace.h
7384 (PTRACE_O_TRACESYSGOOD, PTRACE_O_TRACEFORK,
7385 PTRACE_O_TRACEVFORK, PTRACE_O_TRACECLONE, PTRACE_O_TRACEEXEC,
89074592 7386 PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT, PTRACE_O_MASK,
b26e274d
AJ
7387 PTRACE_EVENT_FORK, PTRACE_EVENT_VFORK, PTRACE_EVENT_CLONE,
7388 PTRACE_EVENT_EXEC, PTRACE_EVENT_VFORK_DONE, PTRACE_EVENT_EXIT):
7389 Define.
7390 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
7391 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
7392 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
7393 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
7394
e0d4a4e5
UD
73952007-06-16 Ulrich Drepper <drepper@redhat.com>
7396
7397 [BZ #4599]
7398 * sysdeps/unix/sysv/linux/check_pf.c (make_request): When
7399 determining whether there are IPv4/IPv6 addresses, ignore loopback
7400 addresses.
7401
ae8e81f5
JJ
74022007-06-14 Uros Bizjak <ubizjak@gmail.com>
7403
7404 * soft-fp/soft-fp.h (CMPtype): Define to "int" if undefined.
7405 * soft-fp/eqdf2.c (__eqdf2): Use CMPtype instead of int
7406 as the return type. Change type of "r" variable to CMPtype.
7407 * soft-fp/eqsf2.c (__eqsf2): Likewise.
7408 * soft-fp/eqtf2.c (__eqtf2): Likewise.
7409 * soft-fp/gedf2.c (__gedf2): Likewise.
7410 * soft-fp/gesf2.c (__gesf2): Likewise.
7411 * soft-fp/getf2.c (__getf2): Likewise.
7412 * soft-fp/ledf2.c (__ledf2): Likewise.
7413 * soft-fp/lesf2.c (__lesf2): Likewise.
7414 * soft-fp/letf2.c (__letf2): Likewise.
7415 * soft-fp/unorddf2 (__unorddf2): Likewise.
7416 * soft-fp/unordsf2 (__unordsf2): Likewise.
7417 * soft-fp/unordtf2 (__unordtf2): Likewise.
7418
90cd2413
UD
74192007-06-09 Ulrich Drepper <drepper@redhat.com>
7420
7421 * elf/do-lookup.h (do_lookup_x): Read r_nlist before r_list and
7422 make sure gcc doesn't mess around with this.
7423
3c457089
UD
74242007-06-08 Ulrich Drepper <drepper@redhat.com>
7425
7426 * elf/dl-lookup.c (_dl_lookup_symbol_x): Remove use of r_nlist.
7427
e8b6b64d
UD
74282007-06-08 Jakub Jelinek <jakub@redhat.com>
7429
7430 * elf/dl-close.c (_dl_close_worker): Remove all to be removed
7431 libraries from the global scope at once and call THREAD_GSCOPE_WAIT
7432 at most once per _dl_close_worker.
7433
36dffb22
UD
74342007-06-08 Ulrich Drepper <drepper@redhat.com>
7435
755db8c5
UD
7436 * sysdeps/unix/sysv/linux/bits/sched.h: Make second parameter of
7437 __sched_cpucount as const.
7438 * posix/sched_cpucount.c: Adjust.
7439
36dffb22
UD
7440 * posix/sched_cpucount.c (__sched_cpucount): Allow using special
7441 instruction for counting bits.
7442 * sysdeps/x86_64/sched_cpucount.c: New file.
7443
26f56c1c
UD
74442007-06-07 Ulrich Drepper <drepper@redhat.com>
7445
7446 * configure.in: Avoid variable named BASH.
e967d385 7447 * config.make.in: Likewise.
26f56c1c 7448 Patch in part by Mike Frysinger.
835abc5c 7449
26f56c1c 74502007-06-06 Jakub Jelinek <jakub@redhat.com>
47779a7d
JJ
7451
7452 [BZ #4586]
835abc5c
UD
7453 * sysdeps/i386/ldbl2mpn.c (__mpn_extract_long_double): Treat
7454 pseudo-zeros as zero.
7455 * sysdeps/x86_64/ldbl2mpn.c: New file.
7456 * sysdeps/ia64/ldbl2mpn.c: New file.
7457
7e3706ea
UD
74582007-06-04 Jakub Jelinek <jakub@redhat.com>
7459
7460 * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (nextafterl): Remove
7461 unused ily variable. Fix nextafterl on +-__LDBL_MAX__ and +-Inf.
7462 Remove unreachable code at the end.
7463
74642007-06-01 Steven Munroe <sjmunroe@us.ibm.com>
7465
7466 * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Correct description of
7467 ldbl-128ibm in comment.
7468 (fpclassifyl): Correct classification of denormals.
7469 * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (nextafterl): Correct
7470 return value for MIN denormal. Rewrite using long double math too
7471 correctly handle denormals and canonicalize the results.
7472
74732007-06-05 Jakub Jelinek <jakub@redhat.com>
7474
7475 * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c
7476 (__mpn_construct_long_double): Fix conversion where result ought
7477 to be smaller than __LDBL_MIN__, or the low double should be
7478 denormal. Fix decision where to negate low double - honor round
7479 to even rules.
7480 * stdio-common/tst-sprintf2.c: Include string.h.
7481 (COMPARE_LDBL): Define.
7482 (TEST): Also test whether a string hexadecimal float representation
7483 can be parsed back to the number.
7484 (main): Add a couple of further tests.
7485
43b76828
UD
74862007-06-04 Jakub Jelinek <jakub@redhat.com>
7487
7488 * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c
7489 (PRINT_FPHEX_LONG_DOUBLE): Fix printing numbers where lower double
7490 is non-zero, but smaller than 2 * __DBL_MIN__.
7491 * stdio-common/tst-sprintf2.c: New test.
7492 * stdio-common/Makefile (tests): Add tst-sprintf2.
7493
7494 * math/test-misc.c (main): Don't run last batch of tests with
7495 IBM long double format.
7496
04067002
UD
74972007-05-31 Steven Munroe <sjmunroe@us.ibm.com>
7498
7499 * sysdeps/powerpc/powerpc32/970/fpu/Implies: New file.
7500 * sysdeps/powerpc/powerpc32/power5/fpu/Implies: New file.
7501 * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: New file.
7502 * sysdeps/powerpc/powerpc32/power6/fpu/Implies: New file.
7503 * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: New file.
7504 * sysdeps/powerpc/powerpc64/970/fpu/Implies: New file.
7505 * sysdeps/powerpc/powerpc64/power5/fpu/Implies: New file.
7506 * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: New file.
7507 * sysdeps/powerpc/powerpc64/power6/fpu/Implies: New file.
7508 * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: New file.
7509 * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: New file.
7510 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies:
7511 New file.
7512 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies:
7513 New file.
7514 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies:
7515 New file.
7516 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies:
7517 New file.
7518 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies:
7519 New file.
7520 * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: New file.
7521 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies:
7522 New file.
7523 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies:
7524 New file.
7525 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies:
7526 New file.
7527 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies:
7528 New file.
7529 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies:
7530 New file.
7531
75322007-05-31 Steven Munroe <sjmunroe@us.ibm.com>
7533
7534 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S: Move.
7535 * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: To here.
7536 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrintf.S: Move.
7537 * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: To here.
7538 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llround.S: Move.
7539 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: To here.
7540 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llroundf.S: Move.
7541 * sysdeps/powerpc/powerpc32/power4/fpu/s_llroundf.S: To here.
7542
75432007-05-22 Steven Munroe <sjmunroe@us.ibm.com>
7544
7545 * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S
7546 (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
7547 * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S
7548 (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
7549 * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S
7550 (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
7551 * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S
7552 (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
7553
75542007-05-21 Steven Munroe <sjmunroe@us.ibm.com>
7555
7556 * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: New file.
7557 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.c: New file.
7558 * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: New file.
7559 * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: New file.
7560
75612007-03-15 Steven Munroe <sjmunroe@us.ibm.com>
7562
7563 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S
7564 [LONG_DOUBLE_COMPAT]: Add compat_symbol for llrintl@@GLIBC_2_1.
7565
75662006-02-13 Steven Munroe <sjmunroe@us.ibm.com>
7567
7568 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: New File
7569 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: New File
7570 * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: New File
7571 * sysdeps/powerpc/powerpc32/power6/fpu/s_llroundf.S: New File
7572
75732006-10-20 Steven Munroe <sjmunroe@us.ibm.com>
7574
7575 * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: New file.
7576 * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: New file.
7577
75782006-10-03 Steven Munroe <sjmunroe@us.ibm.com>
7579
7580 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llround.S: New file.
7581 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llroundf.S: New file.
7582
7583 * sysdeps/powerpc/powerpc32/powerpc64/fpu/Makefile: Moved.
7584 * sysdeps/powerpc/powerpc32/powerpc64/fpu/mpa.c: Likewise.
7585 * sysdeps/powerpc/powerpc32/power4/fpu/Makefile: To here.
7586 * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
7587
75882006-09-29 Steven Munroe <sjmunroe@us.ibm.com>
7589
7590 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lrint.S: New file.
7591 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: New file.
7592 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: New file.
7593 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: New file.
7594
75952006-09-28 Steven Munroe <sjmunroe@us.ibm.com>
7596
7597 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: New file.
7598 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llroundf.S: New file.
7599 * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: New file.
7600 * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: New file.
7601 * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: New file.
7602 * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: New file.
7603
76042006-08-31 Steven Munroe <sjmunroe@us.ibm.com>
7605
7606 * sysdeps/powerpc/powerpc32/powerpc64/fpu/Makefile: New file.
7607 * sysdeps/powerpc/powerpc32/powerpc64/fpu/mpa.c: New file.
7608 * sysdeps/powerpc/powerpc64/power4/fpu/Makefile: New file.
7609 * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: New file.
7610
76112006-06-15 Steven Munroe <sjmunroe@us.ibm.com>
7612
7613 * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceil.S: New file.
7614 * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceilf.S: New file.
7615 * sysdeps/powerpc/powerpc32/power5+/fpu/s_floor.S: New file.
7616 * sysdeps/powerpc/powerpc32/power5+/fpu/s_floorf.S: New file.
7617 * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S: New file.
7618 * sysdeps/powerpc/powerpc32/power5+/fpu/s_roundf.S: New file.
7619 * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S: New file.
7620 * sysdeps/powerpc/powerpc32/power5+/fpu/s_truncf.S: New file.
7621 * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceil.S: New file.
7622 * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceilf.S: New file.
7623 * sysdeps/powerpc/powerpc64/power5+/fpu/s_floor.S: New file.
7624 * sysdeps/powerpc/powerpc64/power5+/fpu/s_floorf.S: New file.
7625 * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S: New file.
7626 * sysdeps/powerpc/powerpc64/power5+/fpu/s_roundf.S: New file.
7627 * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S: New file.
7628 * sysdeps/powerpc/powerpc64/power5+/fpu/s_truncf.S: New file.
7629
76302006-03-20 Steven Munroe <sjmunroe@us.ibm.com>
7631
7632 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S: New file.
7633 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrintf.S: New file.
7634
76352007-06-01 Steven Munroe <sjmunroe@us.ibm.com>
7636
7637 * sysdeps/powerpc/powerpc32/power6/memset.S: New file.
7638 * sysdeps/powerpc/powerpc64/power6/memset.S: New file.
7639
76402007-05-31 Steven Munroe <sjmunroe@us.ibm.com>
7641
7642 * sysdeps/powerpc/powerpc32/970/Implies: New file.
7643 * sysdeps/powerpc/powerpc32/power5/Implies: New file.
7644 * sysdeps/powerpc/powerpc32/power5+/Implies: New file.
7645 * sysdeps/powerpc/powerpc32/power6/Implies: New file.
7646 * sysdeps/powerpc/powerpc32/power6x/Implies: New file.
7647 * sysdeps/powerpc/powerpc64/970/Implies: New file.
7648 * sysdeps/powerpc/powerpc64/power5/Implies: New file.
7649 * sysdeps/powerpc/powerpc64/power5+/Implies: New file.
7650 * sysdeps/powerpc/powerpc64/power6/Implies: New file.
7651 * sysdeps/powerpc/powerpc64/power6x/Implies: New file.
7652
76532007-05-21 Steven Munroe <sjmunroe@us.ibm.com>
7654
7655 * sysdeps/powerpc/powerpc32/power4/memset.S: New file
7656
76572007-03-13 Steven Munroe <sjmunroe@us.ibm.com>
7658
7659 * sysdeps/powerpc/powerpc64/memcpy.S: Improve aligned loop to minimize
7660 branch miss-predicts. Ensure that cache line crossing does not impact
7661 dispatch grouping.
7662
76632006-12-13 Steven Munroe <sjmunroe@us.ibm.com>
7664
7665 * sysdeps/powerpc/powerpc64/power4/memcopy.h: Replace with include
7666 "../../powerpc32/power4/memcopy.h".
7667 * sysdeps/powerpc/powerpc64/power4/wordcopy.c: Replace with include
7668 "../../powerpc32/power4/wordcopy.c".
7669
76702006-10-03 Steven Munroe <sjmunroe@us.ibm.com>
7671
7672 * sysdeps/powerpc/powerpc32/powerpc64/Makefile: Moved.
7673 * sysdeps/powerpc/powerpc32/powerpc64/memcopy.h: Likewise.
7674 * sysdeps/powerpc/powerpc32/powerpc64/wordcopy.c: Likewise.
7675 * sysdeps/powerpc/powerpc32/power4/Makefile: To here.
7676 * sysdeps/powerpc/powerpc32/power4/memcopy.h: Likewise.
7677 * sysdeps/powerpc/powerpc32/power4/wordcopy.c: Likewise.
7678
76792006-09-10 Steven Munroe <sjmunroe@us.ibm.com>
7680
7681 * sysdeps/powerpc/powerpc32/power6/memcpy.S: New file.
7682
76832006-08-31 Steven Munroe <sjmunroe@us.ibm.com>
7684
7685 * sysdeps/powerpc/powerpc32/power6/wordcopy.c: New file.
7686 * sysdeps/powerpc/powerpc32/powerpc64/Makefile: New file.
7687 * sysdeps/powerpc/powerpc32/powerpc64/memcopy.h: New file.
7688 * sysdeps/powerpc/powerpc32/powerpc64/wordcopy.c: New file.
7689 * sysdeps/powerpc/powerpc64/power4/Makefile: New file.
7690 * sysdeps/powerpc/powerpc64/power4/memcopy.h: New file.
7691 * sysdeps/powerpc/powerpc64/power4/wordcopy.c: New file.
7692 * sysdeps/powerpc/powerpc64/power6/wordcopy.c: New file.
7693
76942006-07-06 Steven Munroe <sjmunroe@us.ibm.com>
7695
7696 * sysdeps/powerpc/powerpc64/power6/memcpy.S: New file.
7697
76982006-03-20 Steven Munroe <sjmunroe@us.ibm.com>
7699
7700 * sysdeps/powerpc/powerpc32/power4/memcmp.S: New file.
7701 * sysdeps/powerpc/powerpc32/power4/memcpy.S: New file.
7702 * sysdeps/powerpc/powerpc32/power4/memset.S: New file.
7703 * sysdeps/powerpc/powerpc32/power4/strncmp.S: New file.
7704 * sysdeps/powerpc/powerpc64/power4/memcmp.S: New file.
7705 * sysdeps/powerpc/powerpc64/power4/memcpy.S: New file.
7706 * sysdeps/powerpc/powerpc64/power4/strncmp.S: New file.
7707
5b55e1d3
RM
77082007-05-29 Roland McGrath <roland@redhat.com>
7709
7710 * po/Makefile (po-sed-cmd): New variable.
7711 (libc.pot.files): Move sed command text in there, avoid \ inside ''.
7712
5da4373c
UD
77132007-05-29 Ulrich Drepper <drepper@redhat.com>
7714
4b5e7304
UD
7715 * crypt/md5-crypt.c: Fix comment.
7716
5da4373c
UD
7717 * nscd/nscd_helper.c (get_mapping): Handle short replies instead
7718 of crashing. When this is the case or if the reply is malformed,
7719 don't try to close the new file descriptor since it does not
7720 exist.
7721 Patch in part by Guillaume Chazarain <guichaz@yahoo.fr>.
7722
40f57573
UD
77232007-05-28 Jakub Jelinek <jakub@redhat.com>
7724
7725 * sysdeps/unix/sysv/linux/futimes.c (miss_utimensat): Don't define
7726 if __NR_utimensat is not defined.
7727
6df7ffad
UD
77282007-05-26 Ulrich Drepper <drepper@redhat.com>
7729
7730 * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Include <sysdep.h>.
7731
47ad95ab
UD
77322007-05-25 Jakub Jelinek <jakub@redhat.com>
7733
7734 * io/bits/fcntl2.h (__open_2): Add nonnull attribute.
7735 (open): Fix comment typos. Don't call __open_2 if flags
7736 is a compile time constant without O_CREAT.
7737 (__open64_2): Add nonnull attribute.
7738 (open64): Fix comment typos. Don't call __open64_2 if flags
7739 is a compile time constant without O_CREAT.
7740 (__openat_2): Add nonnull attribute, fix nonnull attribute
7741 on redirect.
7742 (openat): Fix comment typos. Don't call __openat_2 if flags
7743 is a compile time constant without O_CREAT.
7744 (__openat64_2): Add nonnull attribute, fix nonnull attribute
7745 on redirect.
7746 (openat64): Fix comment typos. Don't call __openat64_2 if flags
7747 is a compile time constant without O_CREAT.
7748
ddfd0535
UD
77492007-05-24 Ulrich Drepper <drepper@redhat.com>
7750
7751 * Makerules (sysd-rules): Define PTW for ptw-* files.
7752 * Versions: Define GLIBC_2.7 for libc.
7753 * include/stdio.h: Declare __fortify_fail.
7754 * debug/fortify_fail.c: New file.
7755 * debug/Makefile (routines): Add fortify_fail.
7756 * debug/chk_fail.c: Use __fortify_fail.
7757 * debug/stack_chk_fail.c: Likewise.
7758 * io/Versions: Export __open_2, __open64_2, __openat_2, and
7759 __openat64_2 for GLIBC_2.7.
7760 * io/fcntl.h: When compiling with fortification, include bits/fcntl2.h.
7761 * io/open.c: Define *_2 variant of function which checks for O_CREAT
7762 and fails if necessary.
7763 * io/open64.c: Likewise.
7764 * io/openat.c: Likewise.
7765 * io/openat64.c: Likewise.
7766 * sysdeps/unix/sysv/linux/open64.c: Likewise.
7767 * sysdeps/unix/sysv/linux/openat.c: Likewise.
7768 * sysdeps/unix/sysv/linux/openat64.c: Likewise.
7769 * io/bits/fcntl2.h: New file.
7770 * include/fcntl.h: Declare __open_2, __open64_2, __openat_2, and
7771 __openat64_2.
7772 * include/bits/fcntl2.h: New file.
7773 * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
7774 Add open_2.
7775 * sysdeps/unix/sysv/linux/open_2.c: New file.
7776
bfe6f5fa
UD
77772007-05-21 Ulrich Drepper <drepper@redhat.com>
7778
6d59823c
UD
7779 * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Pass correct value
7780 as second parameter to handle_intel.
7781
e2b1e343
UD
7782 * nscd/aicache.c (addhstaiX): If reported TTL is zero don't cache
7783 the entry.
7784
bfe6f5fa
UD
7785 * sysdeps/unix/sysv/linux/x86_64/sysconf.c: Move cache information
7786 handling to ...
7787 * sysdeps/x86_64/cacheinfo.c: ... here. New file.
7788 * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
7789 cacheinfo.
7790 * sysdeps/x86_64/memcpy.S: Complete rewrite.
7791 * sysdeps/x86_64/mempcpy.S: Adjust appropriately.
7792 Patch by Evandro Menezes <evandro.menezes@amd.com>.
7793
7794 * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: New file.
7795
1f4843fb
UD
77962007-05-21 Jakub Jelinek <jakub@redhat.com>
7797
2c2c003a
UD
7798 [BZ #4525]
7799 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add epoll_pwait.
7800 * sysdeps/unix/sysv/linux/epoll_pwait.c: New file.
7801 * sysdeps/unix/sysv/linux/syscalls.list (epoll_pwait): Remove.
7802
7803 * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h (epoll_pwait): Declare.
7804
af269dd9
UD
7805 [BZ #4514]
7806 * stdio-common/vfprintf.c (vfprintf): Don't shadow workstart variable,
7807 reinitialize workend at the start of each do_positional format spec
7808 loop, free workstart before do_positional loops.
7809 (printf_unknown): Fix size of work_buffer.
7810 * stdio-common/tst-sprintf.c (main): Add 3 new testcases.
7811
1f4843fb
UD
7812 * malloc/hooks.c (MALLOC_STATE_VERSION): Bump.
7813 (public_sET_STATe): If ms->version < 3, put all chunks into
7814 unsorted chunks and clear {fd,bk}_nextsize fields of largebin
7815 chunks.
7816
7817 * malloc/malloc.c [MALLOC_DEBUG]: Revert 2007-05-13 changes.
7818 * malloc/hooks.c: Likewise.
7819 * malloc/arena.c: Likewise.
7820 * malloc/malloc.c (do_check_malloc_state): Don't assert
7821 n_mmaps is not greater than n_mmaps_max. This removes the need
7822 for the previous change.
7823
7824 * malloc/Makefile (CFLAGS-malloc.c): Revert accidental
7825 2007-05-07 commit.
7826
12e8bbff
UD
78272007-05-19 Ulrich Drepper <drepper@redhat.com>
7828
7829 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PRIVATE_FUTEX):
7830 Define for kernel >= 2.6.22.
69e5cbf5 7831
12e8bbff 78322007-05-18 Ulrich Drepper <drepper@redhat.com>
6d59823c 7833
df94b641
UD
7834 * elf/dl-close.c (_dl_close_worker): When removing object from
7835 global scope, wait for all lookups to finish afterwards.
7836 * elf/dl-open.c (add_to_global): When global scope array must
7837 grow, allocate a new one and free old array only after all
7838 lookups finish.
7839 * elf/dl-runtime.c (_dl_fixup): Protect using global scope.
7840 (_dl_lookup_symbol_x): Likewise.
7841 * elf/dl-support.c: Define _dl_wait_lookup_done.
7842 * sysdeps/generic/ldsodefs.h (struct rtld_global): Add
7843 _dl_wait_lookup_done.
7844
2acd01ac
UD
7845 * malloc/malloc.c (do_check_chunk): Correct check for mmaped block
7846 not overlapping with arena.
7847
129abdd3
UD
7848 * malloc/mcheck.c (reallochook): If size==0, free the block.
7849
eb4b098a
UD
7850 * rt/tst-shm.c: Use fstat64 instead of fstat.
7851
69e5cbf5
UD
7852 * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Fix case where
7853 __NR_sync_file_range is not defined.
7854
a2ccc760
UD
78552007-05-17 Ulrich Drepper <drepper@redhat.com>
7856
bec51a30
UD
7857 Dummy files to prevent stub versions from being used.
7858 * sysdeps/x86_64/fpu/k_cosl.c: New file.
7859 * sysdeps/x86_64/fpu/k_rem_pio2l.c: New file.
7860 * sysdeps/x86_64/fpu/k_sinl.c: New file.
7861 * sysdeps/x86_64/fpu/k_tanl.c: New file.
7862
a2ccc760
UD
7863 * version.h (VERSION): Set to 2.6.90.
7864
1a31b586
UD
78652007-05-14 Ulrich Drepper <drepper@redhat.com>
7866
a2ccc760
UD
7867 * version.h (VERSION): Define to 2.6.
7868 * include/features.h (__GLIBC_MINOR__): Define to 6.
2c1d6172 7869
1d47e92f
UD
7870 * malloc/malloc.c: Use all small bin slots on 64-bit archs.
7871
7872 * malloc/malloc.c (largebin_index): Really have 32 buckets with 64
7873 sizes.
366ad8fd 7874
1a31b586 78752007-05-13 Ulrich Drepper <drepper@redhat.com>
87e66335 7876
366ad8fd
UD
7877 * malloc/malloc.c [MALLOC_DEBUG]: Keep track of current maximum
7878 number of mmaps. n_mmaps_max is the target.
7879 * malloc/hooks.c: Likewise.
7880 * malloc/arena.c: Likewise.
7881
11ed6713
AJ
78822007-05-12 Andreas Jaeger <aj@suse.de>
7883
7884 * sysdeps/unix/sysv/linux/tst-getcpu.c: Include <unistd.h> for
7885 getpid.
7886
d65ef3dd
UD
78872007-05-11 Ulrich Drepper <drepper@redhat.com>
7888
2e81d449
UD
7889 * elf/dl-close.c (_dl_close_worker): Help gcc to optimize by
7890 adding new variables.
7891
d65ef3dd 7892 * elf/dl-open.c (add_to_global): Introduce variable ns to help gcc
2e81d449 7893 optimize. Completely extend global scope array before making the
d65ef3dd
UD
7894 new entries visible.
7895
c27d2078
UD
78962007-05-10 Ulrich Drepper <drepper@redhat.com>
7897
341c566f
UD
7898 * sysdeps/unix/sysv/linux/tst-getcpu.c: New file.
7899 * sysdeps/unix/sysv/linux/Makefile [subdir=posix] (tests): Add
7900 tst-getcpu.
7901
7902 * include/link.h: Move l_version and l_nversion members around to
7903 fill gaps.
7904
a53fa282
UD
7905 * scripts/check-c++-types.sh: Don't use -fnu89-inline option.
7906
3771196d
UD
7907 * sysdeps/unix/sysv/linux/sched_setaffinity.c
7908 (__sched_setaffinity_new): If syscall was successful and
7909 RESET_VGETCPU_CACHE is defined, use it before returning.
7910 * sysdeps/unix/sysv/linux/x86_64/sched_setaffinity.c: New file.
7911
f9bf102d
UD
7912 * io/sys/stat.h: Make sure struct timespec is defined for
7913 __USE_ATFILE.
7914
c27d2078
UD
7915 * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Define UTIME_NOW and
7916 UTIME_OMIT.
7917 * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
7918 * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
7919 * sysdeps/unix/sysv/linux/alpha/bits/stat.h: Likewise.
7920 * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
7921 * sysdeps/unix/sysv/linux/bits/stat.h: Likewise.
7922 * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
7923 * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_UTIMENSAT.
7924 * io/sys/stat.h: Declare utimensat, futimens.
7925 * io/utimensat.c: New file.
7926 * io/futimens.c: New file.
7927 * sysdeps/unix/sysv/linux/utimensat.c: New file.
7928 * sysdeps/unix/sysv/linux/futimens.c: New file.
7929 * io/Makefile (routines): Add utimensat, futimens.
7930 * io/Versions: Add utimensat, futimens to GLIBC_2.6.
7931 * sysdeps/unix/sysv/linux/lutimes.c: New file.
7932 * sysdeps/unix/sysv/linux/futimes.c: Use utimensat syscall if
7933 available.
7934
7935 * include/sys/cdefs.h: Redefine __nonnull so that test for
7936 incorrect parameters in the libc code itself are not omitted.
7937
cf6b0980
JJ
79382007-05-09 Jakub Jelinek <jakub@redhat.com>
7939
c1dfd7e6
JJ
7940 * sysdeps/ia64/fpu/fraiseexcpt.c (feraiseexcept): Don't raise overflow
7941 exception in addition to inexact when asked to raise only FE_INEXACT.
7942
cf6b0980
JJ
7943 [BZ #3427]
7944 * sysdeps/s390/fpu/feholdexcpt.c (feholdexcept): Don't clear exceptions
7945 in *envp.
7946
df7b6fea
UD
79472007-05-07 Ulrich Drepper <drepper@redhat.com>
7948
7949 [BZ #4403]
7950 * string/strfry.c (strfry): Make result more random.
7951
37f40235
RH
79522007-05-07 Richard Henderson <rth@redhat.com>
7953
7954 * sysdeps/alpha/fpu/bits/mathinline.h (__isnanl): Don't define
7955 if __NO_LONG_DOUBLE_MATH.
7956 * sysdeps/unix/sysv/linux/alpha/ioperm.c: If BWX insns not
df7b6fea 7957 available in the compiler, add .arch directive to the assembly.
37f40235
RH
7958
79592007-05-07 Jakub Jelinek <jakub@redhat.com>
7960
7961 * sysdeps/alpha/fpu/s_nearbyint.c (nearbyintl): Fix version on
7962 compat_symbol to GLIBC_2_1.
7963 * sysdeps/alpha/fpu/s_fmin.S (fminl): Likewise.
7964 * sysdeps/alpha/fpu/s_trunc.c (truncl): Likewise.
7965 * sysdeps/alpha/fpu/s_fmax.S (fmaxl): Likewise.
7966 * sysdeps/alpha/fpu/s_lrint.c (lrintl, llrintl): Likewise.
7967 * sysdeps/alpha/fpu/s_lround.c (lroundl, llroundl): Likewise.
7968 * sysdeps/alpha/fpu/s_round.c (roundl): Likewise.
7969 * sysdeps/alpha/fpu/s_isnan.c (isnanl): Provide compat_symbol in
7970 libc, not libm.
7971 (__isnanl): New compat_symbol.
7972
c7fd3362
JJ
79732007-05-07 Ulrich Drepper <drepper@redhat.com>
7974 Jakub Jelinek <jakub@redhat.com>
7975
7976 * malloc/arena.c (heap_info): Add mprotect_size field, adjust pad.
7977 (new_heap): Initialize mprotect_size.
7978 (grow_heap): When growing, only mprotect from mprotect_size till
7979 new_size if mprotect_size is smaller. When shrinking, use PROT_NONE
7980 MMAP for __libc_enable_secure only, otherwise use MADV_DONTNEED.
7981
4a59e9ad 79822007-04-30 Steven Munroe <sjmunroe@us.ibm.com>
37f40235 7983 Peter Bergner <bergner@us.ibm.com>
4a59e9ad
UD
7984
7985 * sysdeps/powerpc/bits/fenv.h: Declare __fe_mask_env extern.
7986 Define FE_NOMASK_ENV as FE_EANBLED_ENV. Define FE_MASK_ENV.
7987 * sysdeps/powerpc/fpu/Makefile: Add fe_mask to libm-support.
7988 * sysdeps/powerpc/fpu/fe_mask.c: New file.
7989 * sysdeps/powerpc/fpu/fe_nomask.c: Correct comment.
7990 * sysdeps/powerpc/fpu/fedisblxcpt.c (fedisableexcept):
7991 Call __fe_mask_env() if all FP exceptions disabled.
7992 * sysdeps/powerpc/fpu/feholdexcpt.c (feholdexcept): Copy high 32-bits
7993 from old FPSCR to new fenv to propagate DFP rounding modes.
7994 Call __fe_mask_env() if FP exceptions previously enabled.
7995 * sysdeps/powerpc/fpu/fesetenv.c (fesetenv): Change mask to merge
7996 exceptions from env. Use __fe_nomask_env() or __fe_mask_env() when
7997 transitioning from all exceptions disabled to any exception enabled
7998 or visa versa.
7999 * sysdeps/powerpc/fpu/feupdateenv.c (__feupdateenv): Change mask to
8000 merge exceptions from env. Call __fe_nomask_env or __fe_mask_env
8001 when transitioning from all exceptions disabled to any exception
8002 enabled or visa versa.
8003 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fe_nomask.c: Moved to...
8004 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c: ...here.
8005 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c: Moved to...
8006 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c: ...here.
8007 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c: New file.
8008 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c: New file.
8009
aa75f64c
UD
80102007-05-06 Ulrich Drepper <drepper@redhat.com>
8011
15eca720 8012 [BZ #4465]
aa75f64c
UD
8013 * posix/unistd.h: Remove __THROW from fdatasync.
8014
711deb05
UD
80152007-05-06 Mike Frysinger <vapier@gentoo.org>
8016
15eca720 8017 [BZ #4465]
711deb05
UD
8018 * sysdeps/unix/sysv/linux/syscalls.list (fdatasync): Add "C" to args.
8019
ffecd39b
UD
80202007-05-06 Ulrich Drepper <drepper@redhat.com>
8021
49a8eb75
UD
8022 * stdio-common/vfprintf.c (process_string_arg): Optimize
8023 ridiculous precision in wide char code printing multi-byte string.
8024 Reported by Jim Meyering <jim@meyering.net>.
8025
ffecd39b
UD
8026 [BZ #4131]
8027 * elf/dl-addr.c (_dl_addr): Compare address with actual segment
8028 boundaries to work around systems with overlapping binary loading.
8029 Based on a patch by Suzuki <suzuki@in.ibm.com>.
8030
b16dba4c
UD
80312007-05-04 Ulrich Drepper <drepper@redhat.com>
8032
30b323ab
UD
8033 * stdio-common/vfprintf.c (process_string_arg): Adjust call to
8034 __mbsnrtowcs after last change.
8035
b16dba4c
UD
8036 * locale/programs/linereader.c (get_symname): Fix adding final NUL.
8037 (get_ident): Likewise.
8038
37002cbc
JJ
80392007-05-03 Jakub Jelinek <jakub@redhat.com>
8040
8041 * soft-fp/op-common.h (FP_TRUNC): Replace raising of FP_EX_INEXACT
8042 with setting the sticky bit.
8043 * math/test-misc.c (main): Add more truncation tests.
8044
80452007-04-14 Uros Bizjak <ubizjak@gmail.com>
8046
8047 * soft-fp/floatunsidf.c (__floatunsidf): Use DFtype instead of
8048 double in the function declaration.
8049 * soft-fp/floatundidf.c (__floatundidf): Use DFtype instead of
8050 double in the function declaration.
8051 * soft-fp/floatunsisf.c (__floatunsisf): Use SFtype instead of
8052 float in the function declaration.
8053 * soft-fp/floatunsisf.c (__floatunsisf): Use SFtype instead of
8054 float in the function declaration.
8055
8056 * soft-fp/extended.h (FP_UNPACK_RAW_E): Do not increase X##_e for
8057 denormal operands. Do not generate FP_EX_DENORM exception.
8058 (FP_UNPACK_RAW_EP): Ditto.
8059 (FP_UNPACK_SEMIRAW_E): Use FP_UNPACK_RAW_E instead of
8060 undefined _FP_UNPACK_RAW_E.
8061 (FP_UNPACK_SEMIRAW_EP): Use FP_UNPACK_RAW_EP instead of
8062 undefined _FP_UNPACK_RAW_EP.
8063 (FP_PACK_SEMIRAW_E): Use FP_PACK_RAW_E instead of
8064 undefined _FP_PACK_RAW_E.
8065 (FP_PACK_SEMIRAW_EP): Use FP_PACK_RAW_EP instead of
8066 undefined _FP_PACK_RAW_EP.
8067
d9ac82d0
UD
8068 * soft-fp/op-2.h (_FP_FRAC_COPY_2_2): Define as alias to
8069 _FP_FRAC_COPY_2.
8070 * soft-fp/op-4.h (_FP_FRAC_COPY_2_2): Define as alias to
8071 _FP_FRAC_COPY_4.
37002cbc
JJ
8072
80732007-04-16 Uros Bizjak <ubizjak@gmail.com>
8074 Jakub Jelinek <jakub@redhat.com>
8075
8076 * soft-fp/op-common.h (FP_EXTEND): Do not abort when
8077 _FP_EXPBIAS_##dfs == _FP_EXPBIAS_##sfs. Handle denormals for
8078 this case.
8079 * soft-fp/op-common.h (FP_TRUNC): Ditto.
8080
002f0b0b
JJ
80812007-05-03 Jakub Jelinek <jakub@redhat.com>
8082
8083 * math/test-misc.c (main): Add tests for rounding long double
8084 values close to smallest double denormalized value to double.
8085
80862007-04-30 Joseph Myers <joseph@codesourcery.com>
8087
8088 * soft-fp/op-common.h (FP_TRUNC): Correct off-by-one error in
8089 condition for truncating to 0. Set sticky bit for such
8090 truncation.
8091
57433ede
UD
80922007-05-02 Jakub Jelinek <jakub@redhat.com>
8093
8094 * stdio-common/vfprintf.c (process_string_arg): Use a VLA rather than
8095 fixed length array for ignore.
8096
c01c2455
UD
80972007-04-30 Ulrich Drepper <drepper@redhat.com>
8098
8099 [BZ #4438]
8100 * stdio-common/vfprintf.c (process_string_arg): Don't overflow the
8101 stack for large precisions.
1cb04337
UD
8102 * stdio-common/test-vfprintf.c (main): Add test for large
8103 precision.
c01c2455 8104
37f02b1d
UD
81052007-04-30 Jakub Jelinek <jakub@redhat.com>
8106
b866373d
UD
8107 * stdio-common/printf_fp.c (___printf_fp): Don't print negative sign
8108 for exponent 0.
8109 * stdio-common/tfformat.c (sprint_doubles): Add a new test.
8110
37f02b1d
UD
8111 [BZ #4439]
8112 * resolv/inet_ntop.c (inet_ntop4): Take terminating '\0' into
8113 account in the size check.
8114 * resolv/tst-inet_ntop.c: New test.
8115 * resolv/Makefile (tests): Add tst-inet_ntop.
8116
7ecfbd38
UD
81172007-04-30 Ulrich Drepper <drepper@redhat.com>
8118 Jakub Jelinek <jakub@redhat.com>
8119
8120 [BZ #4349]
8121 * malloc/malloc.c: Keep separate list for first blocks on the bin
8122 lists with a given size. This helps skipping over list elements
8123 we know won't fit in two places.
8124 Inspired by a patch by Tomash Brechko <tomash.brechko@gmail.com>.
8125
e53f0f51
UD
81262007-04-28 Ulrich Drepper <drepper@redhat.com>
8127
8128 [BZ #4102]
8129 * sysdeps/posix/getaddrinfo.c (default_labels): Assign separate
8130 label to Teredo tunnel addresses 2001://32.
8131
109f51f2
UD
81322007-04-27 Ulrich Drepper <drepper@redhat.com>
8133
762422d1
UD
8134 * locale/programs/ld-collate.c (collate_read): Allow order_start
8135 after copy.
8136
61d5a67f
UD
8137 * locale/programs/ld-collate.c (collate_read): Fix printing of
8138 error message.
8139
8140 [BZ #3213]
8141 * locale/C-translit.h.in: Add entry for U2044.
8142
109f51f2
UD
8143 [BZ #4342]
8144 * stdio-common/vfscanf.c (_IO_vfscanf_internal): Allow
8145 hexa-decimal floats without exponent.
8146 * stdio-common/tstscanf.c (main): Adjust Test 8 test for success.
8147
ec08f13d
UD
81482007-04-25 Ulrich Drepper <drepper@redhat.com>
8149
8150 * sysdeps/unix/sysv/linux/bits/sched.h: Declare sched_getcpu.
8151 * sysdeps/unix/sysv/linux/sched_getcpu.c: New file.
8152 * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: New file.
8153 * sysdeps/unix/sysv/linux/Versions: Export sched_getcpu for
8154 GLIBC_2.6.
bce20b9a
UD
8155 * sysdeps/unix/sysv/linux/Makefile [subdir=posix] (sysdep_routines):
8156 Add sched_getcpu.
ec08f13d 8157
41967e1c
JJ
81582007-04-25 Jakub Jelinek <jakub@redhat.com>
8159
8160 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Return -1 instead
8161 of 0 after the out_fail label.
8162
ba508da3
UD
81632007-04-25 Ulrich Drepper <drepper@redhat.com>
8164
8165 [BZ #4406]
109f51f2 8166 * iconv/gconv_charset.h (strip): Allow ':'.
ba508da3
UD
8167 * iconv/iconv_open.c (iconv_open): Adjust comment.
8168
9c8d03d9
JJ
81692007-04-25 Jakub Jelinek <jakub@redhat.com>
8170
8171 * libio/bits/stdio.h (fgetc_unlocked): Add extern inline optimized
8172 version.
8173
2f1687b9
UD
81742007-04-23 Jakub Jelinek <jakub@redhat.com>
8175
8176 [BZ #4381]
8177 * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Ensure sufficient
8178 alignment of buffer and tmp_buffer.
8179 * nis/nss_nis/nis-hosts.c (internal_nis_gethostent_r,
8180 internal_gethostbyname2_r, _nss_nis_gethostbyaddr_r): Ensure sufficient
8181 alignment of buffer.
8182 * resolv/nss_dns/dns-hosts.c (getanswer_r): Likewise. Handle buflen
8183 bigger than INT_MAX.
8184 * resolv/nss_dns/dns-network.c (getanswer_r): Likewise. Add errnop and
8185 h_errnop arguments. Fail if buflen is too small.
8186 (_nss_dns_getnetbyname_r, _nss_dns_getnetbyaddr_r): Adjust callers.
8187
b64a9db8
JJ
81882007-04-23 Jakub Jelinek <jakub@redhat.com>
8189
8190 [BZ #4405]
8191 * iconvdata/gconv-modules (E13B): Add a missing slash to the alias
8192 name. Patch by Aurelien Jarno <aurelien@aurel32.net>.
8193
4d3144c9
RM
81942007-04-22 Roland McGrath <roland@redhat.com>
8195
8196 * elf/elf.h (NT_PRXFPREG): New macro.
8197
767b40bf
AJ
81982007-04-19 Andreas Jaeger <aj@suse.de>
8199
8200 [BZ #3905]
8201 * bits/in.h (IPV6_ROUTER_ALERT, IPV6_MTU_DISCOVER, IPV6_MTU,
8202 IPV6_RECVERR, IPV6_V6ONLY, IPV6_JOIN_ANYCAST, IPV6_LEAVE_ANYCAST):
8203 Added.
8204
2592d1ec
UD
82052007-04-19 Ulrich Drepper <drepper@redhat.com>
8206
8207 * include/sys/mman.h: Mark madvise hidden.
d07d044e 8208 * misc/madvise.c: Add libc_hidden_def.
2592d1ec 8209
7ab174ed
UD
82102007-04-06 Jakub Jelinek <jakub@redhat.com>
8211
8212 * nis/nis_domain_of.c (__nis_domain_of): New function.
8213 * include/rpcsvc/nislib.h (__nis_domain_of): New prototype.
8214 * nis/nis_lookup.c (nis_lookup): Use __nis_domain_of.
8215 * nis/nis_call.c (rec_dirsearch): Likewise.
8216 (first_shoot): Likewise. Remove search_parent_first argument.
8217 (struct nis_server_cache): Rename search_parent_first field
8218 to search_parent.
8219 (nis_server_cache_search, nis_server_cache_add): Rename
8220 search_parent_first argument to search_parent.
8221 (__nisfind_server): Likewise. If search_parent, call
8222 __nis_domain_of.
8223
b17c265f
UD
82242007-04-18 Ulrich Drepper <drepper@redhat.com>
8225
8226 * sysdeps/posix/getaddrinfo.c: Remove commented-out code.
8227
b7674b11
UD
82282007-04-17 Ulrich Drepper <drepper@redhat.com>
8229
8230 [BZ #4368]
8231 * stdlib/stdlib.h: Remove obsolete part of comment for realpath.
8232
faf3ad69
UD
82332007-04-16 Ulrich Drepper <drepper@redhat.com>
8234
8235 [BZ #4364]
8236 * posix/unistd.h (_XOPEN_VERSION): Define appropriately for SUSv3.
8237
c14f245c
UD
82382007-04-15 Jakub Jelinek <jakub@redhat.com>
8239
8240 * locale/programs/locarchive.c (INITIAL_NUM_NAMES,
8241 INITIAL_SIZE_STRINGS, INITIAL_NUM_LOCREC): Update to accomodate
8242 current number of locales in SUPPORTED.
8243 (create_archive): Initialize serial.
8244 (enlarge_archive): Preserve aliases rather than duplicating
8245 their locrecs.
8246
d40e67f5
UD
82472007-04-13 Jakub Jelinek <jakub@redhat.com>
8248
993a5d66
UD
8249 * libio/genops.c (_IO_default_finish): Call _IO_lock_fini
8250 after _IO_un_link, not before it.
8251
d40e67f5
UD
8252 * stdio-common/printf_fp.c (___printf_fp): Fix exponent -4
8253 special case handling when wcp == wstartp + 1. Fix a comment typo.
8254 * stdio-common/tfformat.c (sprint_doubles): Add a new testcase.
8255
0fca3153
UD
82562007-03-30 Jakub Jelinek <jakub@redhat.com>
8257
8258 * libio/libio.h (__underflow, __uflow, __overflow, __wunderflow,
8259 __wuflow, __woverflow, _IO_getc, _IO_putc, _IO_peekc_locked, _IO_padn,
8260 _IO_sgetn, _IO_seekoff, _IO_seekpos, _IO_getwc, _IO_putwc, _IO_wpadn):
8261 Remove __THROW.
8262 * libio/fileops.c (new_do_write, _IO_file_xsgetn_mmap,
8263 _IO_file_xsgetn_maybe_mmap): Likewise.
8264 * libio/oldfileops.c (old_do_write): Likewise.
8265 * libio/libioP.h (_IO_switch_to_get_mode, _IO_switch_to_wget_mode,
8266 _IO_init_marker, _IO_init_wmarker, _IO_default_uflow,
8267 _IO_wdefault_uflow, _IO_default_setbuf, _IO_default_seekpos,
8268 _IO_do_write, _IO_new_do_write, _IO_old_do_write, _IO_wdo_write,
8269 _IO_flush_all_lockp, _IO_flush_all, _IO_cleanup,
8270 _IO_flush_all_linebuffered, _IO_new_fgetpos, _IO_old_fgetpos,
8271 _IO_new_fsetpos, _IO_old_fsetpos, _IO_new_fgetpos64,
8272 _IO_old_fgetpos64, _IO_new_fsetpos64, _IO_old_fsetpos64,
8273 _IO_file_setbuf, _IO_file_seekoff, _IO_file_xsputn, _IO_file_xsgetn,
8274 _IO_file_underflow, _IO_file_underflow_mmap,
8275 _IO_file_underflow_maybe_mmap, _IO_file_overflow, _IO_file_attach,
8276 _IO_file_open, _IO_file_fopen, _IO_file_write, _IO_file_read,
8277 _IO_file_sync, _IO_file_close_it, _IO_file_finish,
8278 _IO_new_file_attach, _IO_new_file_close_it, _IO_new_file_finish,
8279 _IO_new_file_fopen, _IO_new_file_setbuf, _IO_file_setbuf_mmap,
8280 _IO_new_file_sync, _IO_new_file_underflow, _IO_new_file_overflow,
8281 _IO_new_file_seekoff, _IO_new_file_write, _IO_new_file_xsputn,
8282 _IO_old_file_setbuf, _IO_old_file_seekoff, _IO_old_file_xsputn,
8283 _IO_old_file_underflow, _IO_old_file_overflow, _IO_old_file_attach,
8284 _IO_old_file_fopen, _IO_old_file_write, _IO_old_file_sync,
8285 _IO_old_file_close_it, _IO_old_file_finish, _IO_wfile_xsputn,
8286 _IO_wfile_setbuf, _IO_wfile_sync, _IO_wfile_underflow,
8287 _IO_wfile_overflow, _IO_wfile_seekoff, _IO_old_proc_open,
8288 _IO_old_proc_close, _IO_getdelim, _IO_flush_all_internal,
8289 _IO_adjust_column_internal, _IO_default_uflow_internal,
8290 _IO_default_xsgetn_internal, _IO_wdefault_xsputn_internal,
8291 _IO_wdefault_xsgetn_internal, _IO_wdefault_uflow_internal,
8292 _IO_file_setbuf_internal, _IO_file_seekoff_internal,
8293 _IO_file_xsputn_internal, _IO_file_xsgetn_internal,
8294 _IO_file_close_it_internal, _IO_file_underflow_internal,
8295 _IO_file_overflow_internal, _IO_file_attach_internal,
8296 _IO_file_fopen_internal, _IO_file_sync_internal,
8297 _IO_file_finish_internal, _IO_wfile_xsputn_internal,
8298 _IO_wfile_seekoff_internal, _IO_wfile_sync_internal,
8299 _IO_switch_to_wget_mode_internal, _IO_padn_internal,
8300 _IO_switch_to_get_mode_internal, _IO_seekoff_unlocked,
8301 _IO_seekpos_unlocked): Likewise.
8302 (_IO_strtod, _IO_dtoa, _IO_outfloat, _IO_read, _IO_write,
8303 _IO_lseek, _IO_close, _IO_fstat): Remove unused prototypes.
8304
07358add
JJ
83052007-04-16 Jakub Jelinek <jakub@redhat.com>
8306
8307 * locale/programs/locarchive.c (show_archive_content): Fix sizeof
8308 argument in xmalloc size computation.
8309
7a82b74f
UD
83102007-04-01 Jakub Jelinek <jakub@redhat.com>
8311
8312 * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl): Use
8313 math_opt_barrier and math_force_eval macros.
8314
3e336a87
UD
83152007-03-27 Jakub Jelinek <jakub@redhat.com>
8316
8317 [BZ #3306]
8318 * math/math_private.h (math_opt_barrier, math_force_eval): Define.
8319 * sysdeps/i386/fpu/math_private.h: New file.
8320 * sysdeps/x86_64/fpu/math_private.h: New file.
8321 * math/s_nexttowardf.c (__nexttowardf): Use math_opt_barrier and
8322 math_force_eval macros. Use "+m" constraint on asm rather than
8323 "=m" and "m".
8324 * math/s_nextafter.c (__nextafter): Likewise.
8325 * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c (__nexttoward):
8326 Likewise.
8327 * sysdeps/ieee754/flt-32/s_nextafterf.c (__nextafterf): Likewise.
8328 * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward): Likewise.
8329 * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
8330 * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Use
8331 math_opt_barrier and math_force_eval macros.
8332 * sysdeps/ieee754/ldbl-128/s_nextafterl.c (__nextafterl): Likewise.
8333 * sysdeps/ieee754/ldbl-96/s_nextafterl.c (__nextafterl): Likewise.
8334 * sysdeps/i386/fpu/s_nexttoward.c: Include float.h.
8335 (__nexttoward): Use math_opt_barrier and
8336 math_force_eval macros. Use "+m" constraint on asm rather than
8337 "=m" and "m". Only use asm to force double result if
8338 FLT_EVAL_METHOD is 2.
8339 * sysdeps/i386/fpu/s_nexttowardf.c: Include float.h.
8340 (__nexttowardf): Use math_opt_barrier and
8341 math_force_eval macros. Use "+m" constraint on asm rather than
8342 "=m" and "m". Only use asm to force double result if
8343 FLT_EVAL_METHOD is not 0.
8344 * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Include float.h.
8345 (__nexttowardf): Use math_opt_barrier and
8346 math_force_eval macros. If FLT_EVAL_METHOD is not 0, force
8347 x to float using asm.
8348 * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c: Include float.h.
8349 (__nldbl_nexttowardf): Use math_opt_barrier and
8350 math_force_eval macros. If FLT_EVAL_METHOD is not 0, force
8351 x to float using asm.
8352 * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Include float.h.
8353 (__nexttowardf): Use math_opt_barrier and math_force_eval
8354 macros. If FLT_EVAL_METHOD is not 0, force x to float using asm.
8355 * math/bug-nextafter.c (zero, inf): New variables.
8356 (main): Add new tests.
8357 * math/bug-nexttoward.c (zero, inf): New variables.
8358 (main): Add new tests.
8359
a8c79c40
UD
83602007-03-22 Jakub Jelinek <jakub@redhat.com>
8361
8362 [BZ #3427]
8363 * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Clear all
8364 exceptions both in SW and MXCSR.
8365 * sysdeps/x86_64/fpu/feupdateenv.c: New file.
8366 * sysdeps/x86_64/fpu/feenablxcpt.c (feenableexcept): Remove dead code.
8367 * sysdeps/x86_64/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
8368 * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions
8369 in MXCSR if SSE is available.
8370 * sysdeps/i386/fpu/feupdateenv.c: Include unistd.h, dl-procinfo.h
8371 and ldsodefs.h.
8372 (__feupdateenv): Query exceptions also from MXCSR if SSE is available.
8373 Fix comment typo.
8374 * sysdeps/ia64/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions.
8375 Return 0 rather than 1.
8376 * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Fix comment typo.
8377 Remove incorrect part of a comment. Fix argument to feraiseexcept.
8378 * math/test-fenv.c (feholdexcept_tests): New function.
8379 (main): Call it.
8380
83812007-01-05 Richard B. Kreckel <kreckel@ginac.de>
8382
8383 [BZ #3427]
8384 * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions
8385 in SW.
8386
30a3aa75
JJ
83872007-04-13 Jakub Jelinek <jakub@redhat.com>
8388
8389 [BZ #4344]
8390 * elf/ldconfig.c (search_dir): Fix 2 off-by-2 errors.
8391 Reported by David Anderson <davea42@earthlink.net>.
8392
75587bfe
UD
83932007-04-07 Ulrich Drepper <drepper@redhat.com>
8394
8395 * posix/sys/wait.h: Remove unnecessary forward declaration.
8396
88fa1769
JJ
83972007-04-05 Jakub Jelinek <jakub@redhat.com>
8398
8399 * nis/nis_call.c (__nisfind_server): Replace (*dir)->do_servers
8400 with obj->do_servers after first_shoot.
8401
eab1bdfb
UD
84022007-04-03 Ulrich Drepper <drepper@redhat.com>
8403
8404 * posix/Makefile (routines): Add sched_cpucount.
8405 (tests): Add tst-cpucount.
8406 * posix/sched_cpucount.c: New file.
8407 * posix/tst-cpucount.c: New file.
8408 * posix/Versions: Export __sched_cpucount with version GLIBC_2.6.
b4afdd06
UD
8409 * bits/sched.h: Define __CPU_COUNT. Declare __sched_cpucount.
8410 * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
8411 * posix/sched.h: Define CPU_COUNT.
eab1bdfb 8412
9700b039
UD
84132007-03-27 Jakub Jelinek <jakub@redhat.com>
8414
8415 * posix/fnmatch.c (STRUCT): Define.
8416 (fnmatch): Pass NULL as last argument to internal_fn{,w}match.
8417 * posix/fnmatch_loop.c (struct STRUCT): New type.
8418 (FCT): Add ends argument. If ends != NULL and normal * is
8419 seen in the pattern, store current pattern and string pointers
8420 and return. Adjust recursive calls.
8421 (EXT): Adjust FCT callers.
8422 (STRUCT): Undef at the end of the file.
8423 * posix/Makefile (tests): Add tst-fnmatch2.
8424 * posix/tst-fnmatch2.c: New test.
8425
d64e9790
JJ
84262007-04-01 Jakub Jelinek <jakub@redhat.com>
8427
933dfe7b
JJ
8428 * sysdeps/ia64/fpu/fesetround.c (fesetround): Return 0 on success
8429 and 1 on failure.
8430
d64e9790
JJ
8431 * sysdeps/unix/sysv/linux/sync_file_range.c (sync_file_range):
8432 Change last argument to unsigned int.
8433
e1f0c5bc
UD
84342007-03-23 Jakub Jelinek <jakub@redhat.com>
8435
8436 * scripts/check-local-headers.sh: Filter out sys/capability.h.
8437
84382007-03-22 Jakub Jelinek <jakub@redhat.com>
8439
8440 * config.h.in (HAVE_LIBCAP): Add.
8441 * nscd/selinux.h: Include sys/capability.h rather than non-existent
8442 sys/capabilities.h.
8443 * nscd/selinux.c (preserve_capabilities): Use cap_free instead of
8444 free_caps. Cast away const from 4th cap_set_flag argument.
8445
4e87573f
UD
84462007-03-26 Ulrich Drepper <drepper@redhat.com>
8447
8448 * sysdeps/unix/sysv/linux/Versions: Move sync_file_range to
8449 GLIBC_2.6.
8450 * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
8451 Add sync_file_range.
8452 Reported by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
8453
fa6e3bc3
UD
84542007-03-19 Steven Munroe <sjmunroe@us.ibm.com>
8455
8456 * sysdeps/powerpc/bits/atomic.h
8457 [!MUTEX_HINT_ACQ]: Define MUTEX_HINT_ACQ.
8458 [!MUTEX_HINT_REL]: Define MUTEX_HINT_REL.
8459 (__arch_compare_and_exchange_val_32_acq): Add MUTEX_HINT_ACQ to lwarx.
8460 (__arch_compare_and_exchange_val_32_rel): Add MUTEX_HINT_REL to lwarx.
8461 (__arch_atomic_exchange_val_32_acq): Add MUTEX_HINT_ACQ to lwarx.
8462 (__arch_atomic_exchange_rel_32_rel): Add MUTEX_HINT_REL to lwarx.
8463 * sysdeps/powerpc/powerpc32/bits/atomic.h [_ARCH_PWR6 || _ARCH_PWR6X]:
8464 Define MUTEX_HINT_ACQ as ",1" and MUTEX_HINT_REL as ",0".
8465 (__arch_compare_and_exchange_bool_32_acq): Add MUTEX_HINT_ACQ to lwarx.
8466 (__arch_compare_and_exchange_bool_32_rel): Add MUTEX_HINT_REL to lwarx.
8467 * sysdeps/powerpc/powerpc64/bits/atomic.h [_ARCH_PWR6 || _ARCH_PWR6D]:
8468 Define MUTEX_HINT_ACQ as ",1" and MUTEX_HINT_REL as ",0".
8469 (__arch_compare_and_exchange_bool_32_acq): Add MUTEX_HINT_ACQ to lwarx.
8470 (__arch_compare_and_exchange_bool_32_rel): Add MUTEX_HINT_REL to lwarx.
8471 (__arch_compare_and_exchange_bool_64_acq): Add MUTEX_HINT_ACQ to lwarx.
8472 (__arch_compare_and_exchange_bool_64_rel): Add MUTEX_HINT_REL to lwarx.
8473 (__arch_compare_and_exchange_val_64_acq): Add MUTEX_HINT_ACQ to lwarx.
8474 (__arch_compare_and_exchange_val_64_rel): Add MUTEX_HINT_REL to lwarx.
8475 (__arch_atomic_exchange_val_64_acq): Add MUTEX_HINT_ACQ to lwarx.
8476 (__arch_atomic_exchange_rel_64_rel): Add MUTEX_HINT_REL to lwarx.
8477
84782007-03-20 Jakub Jelinek <jakub@redhat.com>
c7693af7
UD
8479
8480 * sysdeps/unix/sysv/linux/powerpc/libc-start.c
8481 (__cache_line_size): Define the variable here. Add
8482 attribute_hidden, remove weak_extern.
8483 (__libc_start_main): Set __cache_line_size
8484 unconditionally.
8485 * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
8486 (__cache_line_size): Define the variable here. Add
8487 attribute_hidden, remove weak_extern.
8488 (DL_PLATFORM_AUXV): Set __cache_line_size
8489 unconditionally.
8490 * sysdeps/powerpc/powerpc32/dl-machine.c (__cache_line_size): Remove
8491 weak_extern, add attribute_hidden.
8492 (__elf_machine_runtime_setup): Assume __cache_line_size is always
8493 defined in ld.so.
8494 * sysdeps/powerpc/powerpc32/memset.S (__cache_line_size): Remove
8495 definition.
8496 * sysdeps/powerpc/powerpc64/memset.S (__cache_line_size): Likewise.
8497
0479e581
JJ
84982007-03-26 Jakub Jelinek <jakub@redhat.com>
8499
8500 [BZ #4276]
8501 * timezone/africa: Update from tzdata2007d.
8502 * timezone/asia: Likewise.
8503 * timezone/australasia: Likewise.
8504 * timezone/backward: Likewise.
8505 * timezone/europe: Likewise.
8506 * timezone/iso3166.tab: Likewise.
8507 * timezone/leapseconds: Likewise.
8508 * timezone/northamerica: Likewise.
8509 * timezone/southamerica: Likewise.
8510 * timezone/zone.tab: Likewise.
8511
8512 * timezone/private.h: Update from tzcode2007d.
8513 * timezone/zdump.c: Likewise.
8514 * timezone/zic.c: Likewise.
8515
697d37b1
JJ
85162007-03-21 Jakub Jelinek <jakub@redhat.com>
8517
8518 * nis/nis_call.c: Include bits/libc-lock.h, sys/stat.h, unistd.h.
8519 (nis_server_cache, nis_server_cache_lock, nis_cold_start_mtime): New
8520 variables.
8521 (nis_server_cache_search, nis_server_cache_add): New functions.
8522 (__nisfind_server): Use them. Add dbp and flags argument, if
8523 call __nisbind_create.
8524 (__nisbind_create): Add server_used and current_ep arguments,
8525 only call __nis_findfastest if server_used is ~0.
8526 (__do_niscall2, __prepare_niscall): Adjust callers.
8527 (ckey_cache, ckey_cache_size, ckey_cache_allocated, ckey_cache_pid,
8528 ckey_cache_euid, ckey_cache_lock): New variables.
8529 (get_ckey): New function.
8530 (__nisbind_connect): If not dbp->use_udp, pass IPPROTO_TCP to
8531 __pmap_getnisport. Save __pmap_getnisport result in
8532 dbp->addr.sin_port if non-zero. Use get_ckey to create conversation
8533 key.
8534 * nis/nis_lookup.c (nis_lookup): Likewise.
8535 * nis/nis_table.c (nis_list): Likewise.
8536 * nis/rpcsvc/nislib.h (__nisbind_create, __nisfind_server): Adjust
8537 prototypes.
8538
8539 * nis/nss_nisplus/nisplus-pwd.c (_nss_nisplus_getpwnam_r,
8540 _nss_nisplus_getpwuid_r): Pass USE_DGRAM flag to nis_list.
8541 * nis/nss_nisplus/nisplus-service.c (_nss_nisplus_getservbyname_r,
8542 _nss_nisplus_getservbyport_r): Likewise.
8543 * nis/nss_nisplus/nisplus-network.c (_nss_nisplus_getnetbyname_r,
8544 _nss_nisplus_getnetbyaddr_r): Likewise.
8545 * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_getspnam_r): Likewise.
8546 * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_gethostton_r,
8547 _nss_nisplus_getntohost_r): Likewise.
8548 * nis/nss_nisplus/nisplus-rpc.c (_nss_nisplus_getrpcbyname_r,
8549 _nss_nisplus_getrpcbynumber_r): Likewise.
8550
06029c20
JJ
85512007-03-20 Jakub Jelinek <jakub@redhat.com>
8552
371f84a4
JJ
8553 * configure.in (libc_cv_gnu89_inline): Only do compile test.
8554 * configure: Rebuilt.
8555
06029c20
JJ
8556 * soft-fp/double.h (_FP_UNION_D): Use _FP_W_TYPE for frac
8557 bit-fields.
8558 * soft-fp/extended.h (_FP_UNION_E): Likewise.
8559
85602006-06-07 Joseph Myers <joseph@codesourcery.com>
8561
8562 [BZ #2831]
8563 * soft-fp/quad.h (_FP_UNION_Q): Use _FP_W_TYPE for frac
8564 bit-fields.
8565
addc8335
UD
85662007-03-18 Jakub Jelinek <jakub@redhat.com>
8567
8568 * nscd/gai.c: Include alloca.h.
8569 (__libc_use_alloca): Define.
8570
b037a293
UD
85712007-03-16 Jakub Jelinek <jakub@redhat.com>
8572
965cba04
UD
8573 * elf/dl-open.c (dl_open_worker): Declare l in 2 different
8574 smaller scopes.
8575 * elf/dl-dst.h (DL_DST_REQ_STATIC): Add l as macro argument.
8576 (DL_DST_REQUIRED): Adjust user.
8577
8578 * include/dlfcn.h (struct link_map): New forward decl.
8579
8580 * inet/getnameinfo.c: Include stddef.h.
8581 (getnameinfo): Use offsetof.
8582
8583 * time/tst-mktime2.c (do_test): Don't rely on signed wrap.
8584
8585 * stdio-common/vfprintf.c (_itoa): Undef before redefining.
8586
8587 * string/strerror_l.c: Include stdlib.h.
8588
b037a293
UD
8589 * configure.in (libc_cv_gnu89_inline): Test for -fgnu89-inline.
8590 * config.make.in (gnu89-inline-CFLAGS): New variable.
8591 * Makeconfig (CFLAGS): Use $(gnu89-inline-CFLAGS) together with
8592 -std=gnu99.
8593 * misc/sys/cdefs.h (__extern_inline, __extern_always_inline): Define.
8594 * argp/argp.h: Use it.
8595 * bits/mathinline.h: Likewise.
8596 * bits/sigset.h: Likewise.
8597 * bits/string.h: Likewise.
8598 * ctype/ctype.h: Likewise.
8599 * hurd/hurd.h: Likewise.
8600 * hurd/hurd/fd.h: Likewise.
8601 * hurd/hurd/port.h: Likewise.
8602 * hurd/hurd/signal.h: Likewise.
8603 * hurd/hurd/threadvar.h: Likewise.
8604 * hurd/hurd/userlink.h: Likewise.
8605 * io/sys/stat.h: Likewise.
8606 * libio/bits/stdio.h: Likewise.
8607 * libio/bits/stdio2.h: Likewise.
8608 * mach/lock-intern.h: Likewise.
8609 * mach/mach/mig_support.h: Likewise.
8610 * math/bits/cmathcalls.h: Likewise.
8611 * posix/bits/unistd.h: Likewise.
8612 * socket/bits/socket2.h: Likewise.
8613 * stdlib/bits/stdlib.h: Likewise.
8614 * stdlib/stdlib.h: Likewise.
8615 * string/argz.h: Likewise.
8616 * string/bits/string2.h: Likewise.
8617 * string/bits/string3.h: Likewise.
8618 * sysdeps/alpha/fpu/bits/mathinline.h: Likewise.
8619 * sysdeps/generic/inttypes.h: Likewise.
8620 * sysdeps/generic/machine-lock.h: Likewise.
8621 * sysdeps/generic/machine-sp.h: Likewise.
8622 * sysdeps/i386/fpu/bits/mathinline.h: Likewise.
8623 * sysdeps/i386/i486/bits/string.h: Likewise.
8624 * sysdeps/ia64/fpu/bits/mathinline.h: Likewise.
8625 * sysdeps/mach/alpha/machine-lock.h: Likewise.
8626 * sysdeps/mach/alpha/machine-sp.h: Likewise.
8627 * sysdeps/mach/i386/machine-lock.h: Likewise.
8628 * sysdeps/mach/powerpc/machine-lock.h: Likewise.
8629 * sysdeps/mach/powerpc/machine-sp.h: Likewise.
8630 * sysdeps/powerpc/fpu/bits/mathinline.h: Likewise.
8631 * sysdeps/s390/bits/string.h: Likewise.
8632 * sysdeps/s390/fpu/bits/mathinline.h: Likewise.
8633 * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
8634 * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Likewise.
8635 * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
8636 * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
8637 * sysdeps/unix/sysv/linux/sys/sysmacros.h: Likewise.
8638 * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
8639 * wcsmbs/bits/wchar2.h: Likewise.
8640 * wcsmbs/wchar.h: Likewise.
8641 * stdlib/gmp.h: Likewise. Include <features.h> to get
8642 __extern_inline definition.
8643
6b2665f5
UD
86442007-03-15 Jakub Jelinek <jakub@redhat.com>
8645
b037a293
UD
8646 * locale/programs/ld-ctype.c (find_translit): Return NULL if ctype is
8647 NULL.
8648
6b2665f5
UD
8649 [BZ #3919]
8650 * math/libm-test.inc (log_test): Test -Inf and NaN.
8651 (log10_test, log1p_test, log2_test): Test -Inf.
8652 * sysdeps/i386/fpu/e_log.S (__ieee754_log): Don't raise
8653 FE_INVALID when argument is qNaN.
8654 * sysdeps/i386/fpu/e_logl.S (__ieee754_logl): Likewise.
8655 * sysdeps/i386/fpu/e_logf.S (__ieee754_logf): Likewise.
8656 * sysdeps/x86_64/fpu/e_logl.S (__ieee754_logl): Likewise.
8657 * sysdeps/x86_64/fpu/e_log10l.S (__ieee754_log10l): Replace
8658 andb $1, %ah with testb $1, %ah, don't test for parity, instead
8659 testb $4, %ah and jump if non-zero.
8660 * sysdeps/x86_64/fpu/e_log2l.S (__ieee754_log2l): Likewise.
8661 * sysdeps/x86_64/fpu/s_log1pl.S (__log1pl): Likewise.
8662
44969f17
UD
8663 [BZ #4101]
8664 * argp/argp-help.c (hol_cluster_cmp): Fix comparisons used to find
8665 ancestors with the same depths.
8666 Patch by Niels Moeller <nisse@lysator.liu.se>.
8667 (filter_doc): Don't crash if argp is NULL.
8668 * argp/Makefile (tests): Add tst-argp2.
8669 * argp/tst-argp2.c: New test.
8670
05eb8975
UD
8671 [BZ #4130]
8672 * login/utmp_file.c (setutent_file): Use O_LARGEFILE for
8673 open_not_cancel_2.
8674 (updwtmp_file): Likewise.
8675
6cb988fa
UD
8676 [BZ #4181]
8677 * inet/inet6_opt.c (add_padding): Only insert padding if npad > 0.
8678 (inet6_opt_append): Don't check extlen is big enough if extbuf
8679 is NULL.
8680 (inet6_opt_finish): Likewise.
8681 * inet/Makefile (tests): Add test-inet6_opt.
8682 * inet/test-inet6_opt.c: New test.
8683
8684 * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Never
8685 reallocate the buffer, instead fail for MSG_TRUNC or for EBUSY
8686 NLMSG_ERR. Instead use a page sized buffer.
8687 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Use page sized
8688 buffer.
8689
aea1d19e
RH
86902007-03-14 Richard Henderson <rth@redhat.com>
8691
b6df547c
RH
8692 * sysdeps/alpha/fpu/s_llround.c: New file.
8693 * sysdeps/alpha/fpu/s_llroundf.c: New file.
8694 * sysdeps/alpha/fpu/s_lround.c: New file.
8695 * sysdeps/alpha/fpu/s_lroundf.c: New file.
8696 * sysdeps/alpha/fpu/s_round.c: New file.
8697 * sysdeps/alpha/fpu/s_roundf.c: New file.
8698 * sysdeps/alpha/fpu/s_trunc.c: New file.
8699 * sysdeps/alpha/fpu/s_truncf.c: New file.
8700
aea1d19e
RH
8701 * sysdeps/alpha/fpu/s_ceil.c: Rewrite without branches.
8702 * sysdeps/alpha/fpu/s_ceilf.c: Likewise.
8703 * sysdeps/alpha/fpu/s_floor.c: Likewise.
8704 * sysdeps/alpha/fpu/s_floorf.c: Likewise.
8705 * sysdeps/alpha/fpu/s_rint.c: Likewise.
8706 * sysdeps/alpha/fpu/s_rintf.c: Likewise.
8707
8708 * sysdeps/alpha/fpu/s_fmax.S: New file.
8709 * sysdeps/alpha/fpu/s_fmaxf.S: New file.
8710 * sysdeps/alpha/fpu/s_fmin.S: New file.
8711 * sysdeps/alpha/fpu/s_fminf.S: New file.
8712 * sysdeps/alpha/fpu/s_isnan.c: New file.
8713 * sysdeps/alpha/fpu/s_isnanf.c: New file.
8714 * sysdeps/alpha/fpu/s_llrint.c: New file.
8715 * sysdeps/alpha/fpu/s_llrintf.c: New file.
8716 * sysdeps/alpha/fpu/s_lrint.c: New file.
8717 * sysdeps/alpha/fpu/s_lrintf.c: New file.
8718 * sysdeps/alpha/fpu/s_nearbyint.c: New file.
8719 * sysdeps/alpha/fpu/s_nearbyintf.c: New file.
8720
8721 * sysdeps/alpha/fpu/bits/mathinline.h (__floorf, __floor): Remove.
8722 (__fdimf, fdimf, __fdim, fdim): Remove.
8723 (__signbitf, __signbit, __signbitl): Use gcc builtin if available.
8724 (__isnanf, __isnan, __isnanl): New.
8725
9e43b50d
RH
87262007-03-13 Richard Henderson <rth@redhat.com>
8727
8728 * sysdeps/ieee754/ldbl-128/Makefile: New file.
8729
62789da3
RH
87302007-03-13 Richard Henderson <rth@redhat.com>
8731
8732 * sysdeps/alpha/Makefile (sysdep-CFLAGS): Force dynamic rounding.
8733 * sysdeps/alpha/fpu/bits/mathinline.h (__signbitl): New.
8734 * sysdeps/alpha/fpu/libm-test-ulps: Regenerate.
8735 * sysdeps/unix/sysv/linux/alpha/alphaev6/fpu/Implies: New file.
8736 * sysdeps/unix/sysv/linux/alpha/alphaev67/fpu/Implies: New file.
8737 * sysdeps/unix/sysv/linux/alpha/fpu/Implies: New file.
8738
47dbe62b
RH
87392007-03-13 Richard Henderson <rth@redhat.com>
8740
37f40235 8741 * elf/dl-support.c (_dl_aux_init): Honor DL_PLATFORM_AUXV.
47dbe62b
RH
8742 * sysdeps/unix/sysv/linux/alpha/dl-auxv.h: New file.
8743 * sysdeps/unix/sysv/linux/alpha/dl-support.c: New file.
8744 * sysdeps/unix/sysv/linux/alpha/dl-sysdep.c (__libc_alpha_cache_shape):
8745 Move to dl-auxv.h; initialize instead of extern weak.
8746 (DL_PLATFORM_AUXV): Move to dl-auxv.h; don't test for undef
8747 weak symbol.
8748 * sysdeps/unix/sysv/linux/alpha/sysconf.c (__libc_alpha_cache_shape):
8749 Extern instead of initialized.
8750
b8097bed
RH
87512007-03-13 Richard Henderson <rth@redhat.com>
8752
8753 * sysdeps/unix/sysv/linux/alpha/sigsuspend.S: Add support for
8754 __sigsuspend_nocancel.
8755
6bf4a686
UD
87562007-03-06 Ulrich Drepper <drepper@redhat.com>
8757
8758 * sysdeps/posix/getaddrinfo.c (get_scope): Correct test for
8759 172.16/12 address range.
8760
0b3b1a0c
UD
87612007-03-02 Jakub Jelinek <jakub@redhat.com>
8762
8763 * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Retry with
8764 a new netlink socket if NLMSG_ERR -EBUSY is seen after some MSG_TRUNC
8765 message.
8766
8f3edfee
UD
87672007-03-01 Jakub Jelinek <jakub@redhat.com>
8768
c1c5e654 8769 [BZ #4069]
8f3edfee
UD
8770 * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Check for NaN
8771 earlier.
8772 * math/libm-test.inc (pow_test): Add more tests involving NaNs.
8773
8774 * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Avoid invalid exception
8775 for x qNaN and y either +-inf or non-integer value.
8776 * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Likewise.
8777 * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.
8778 * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
8779
245a1481
UD
87802007-02-10 Mike Frysinger <vapier@gentoo.org>
8781
8782 * sysdeps/unix/sysv/linux/sh/Makefile: Remove sys/io.h
8783 from sysdep_headers.
8784
c217692b
UD
87852007-02-28 Jakub Jelinek <jakub@redhat.com>
8786
8787 * time/tzfile.c (find_transition): Instead of a linear search try to
8788 guess the transition index, use a linear search if the result is at
8789 most 10 transitions away from the guess or binary search otherwise.
8790
fe64626c
JJ
87912007-02-27 Jakub Jelinek <jakub@redhat.com>
8792
8793 * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Fix
8794 memory reallocation.
8795
0f7769f7
UD
87962007-02-21 Ulrich Drepper <drepper@redhat.com>
8797
621c133d
UD
8798 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Add branch predictions
8799 and fix some typos.
8800 Optimize use of TOLOWER.
9cf147d8 8801
cdfd61e1
UD
8802 [BZ #3325]
8803 * sysdeps/i386/fpu/e_fmodf.S: Revert last changes, keep using fprem.
8804 * sysdeps/i386/fpu/e_fmodl.c: Likewise.
8805 * sysdeps/i386/fpu/e_fmod.S: Likewise.
8806
8889e7aa
UD
8807 [BZ #3458]
8808 * sysdeps/unix/sysv/linux/posix_madvise.c: New file.
8809 * sysdeps/unix/sysv/linux/syscalls.list: Remove posix_madvise entry.
8810
63a2f305
UD
8811 [BZ #4076]
8812 * io/ftw.c (ftw_startup): Handle special case of FTW_CHDIR in /.
8813 (open_dir_stream): Likewise.
8814 * io/Makefile (tests): Add bug-ftw5.
c536b9b8 8815 * io/bug-ftw5.c: New file.
63a2f305 8816
c8703f88
UD
8817 * nscd/hstcache.c (cache_addhst): Remove unnecessary conditional.
8818 * nscd/servicescache.c (cache_addserv): Likewise.
8819
8820 * nscd/grpcache.c (cache_addgr): In case a record changed on
8821 refresh, adjust key_copy.
8822
61705e06
UD
8823 [BZ #4074]
8824 * nscd/pwdcache.c (cache_addpw): In case a record changed on
8825 refresh, adjust key_copy.
8826
0f7769f7
UD
8827 [BZ #4070]
8828 * stdio-common/printf_fp.c (___printf_fp): Handle a few more
0f7769f7 8829 special cases.
8889e7aa 8830 * stdio-common/tfformat.c (sprint_doubles): Some more tests.
0f7769f7 8831
3979024a
UD
88322007-02-19 Ulrich Drepper <drepper@redhat.com>
8833
4c02bf1a
UD
8834 * stdio-common/printf_fp.c (___printf_fp): Cleanups and minor
8835 optimization.
8836
3979024a
UD
8837 * stdio-common/vfscanf.c: Small cleanups throughout.
8838
821d3e70
UD
88392007-02-18 Ulrich Drepper <drepper@redhat.com>
8840
2484468b
UD
8841 [BZ #3325]
8842 * sysdeps/i386/fpu/e_fmodf.S: Use fprem1 instead of fprem.
8843 * sysdeps/i386/fpu/e_fmodl.c: Likewise.
8844 * sysdeps/i386/fpu/e_fmod.S: Likewise.
8845 Patch by Jared Casper <jaredcasper@gmail.com>.
8846
858ee15d
UD
8847 * sysdeps/unix/closedir.c: Outside libc don't use locking.
8848 * sysdeps/unix/opendir.c: Likewise.
8849 * sysdeps/unix/readdir.c: Likewise.
8850
ecb72bd5
UD
8851 [BZ #2211]
8852 * stdio-common/vfscanf.c: Handle localized digits etc for floating
8853 point numbers.
8854 Patch mostly by Hamed Malek <hamed@farsiweb.info>.
8855
ac2ca022
UD
8856 * stdio-common/vfscanf.c: Fix problems in width accounting.
8857 * stdio-common/tst-sscanf.c (double_tests): New tests.
8858 (main): Hook them up.
8859
e9bb5246 8860 * stdio-common/vfscanf.c: Remove unused WIDTH handling.
da50f001 8861 More simplifications of floating-point reader.
e9bb5246 8862
821d3e70
UD
8863 * stdio-common/Makefile (tests): Add tst-swscanf.
8864 * stdio-common/tst-sscanf.c: Make tests usable for swscanf
8865 testing.
8866 * stdio-common/tst-swscanf.c: New file.
8867
07fb5185
UD
88682007-02-17 Ulrich Drepper <drepper@redhat.com>
8869
9138cc0b
UD
8870 [BZ #2633]
8871 * libio/stdio.h: Define struct _IO_FILE in global namespace.
8872 * setjmp/setjmp.h: Define __jmp_buf_tag in global namespace.
8873 Remove using for __jmp_buf_tag.
8874 * locale/locale.h (struct lconv): Also define in std namespace.
8875 * wcsmbs/wchar.h: Move using declaration for tm out of namespace.
8876
6818d837
UD
8877 [BZ #3842]
8878 * sysdeps/posix/euidaccess.c [_LIBC] (euidaccess): Remove shortcut
8879 using __libc_enable_secure.
8880
15c4b5a4
UD
8881 [BZ #3818]
8882 * sysdeps/unix/sysv/linux/sys/acct.h (struct acct_v3): Define.
8883
5e9e9c14
UD
8884 [BZ #3745]
8885 * locale/programs/ld-collate.c (handle_ellipsis): Fix generation
8886 of names for ellipsises.
8887
07fb5185
UD
8888 [BZ #3348]
8889 * malloc/memusage.sh: Cleanups.
8890 * debug/xtrace.sh: Quoting and trap changes.
8891
8c6d1043
UD
88922007-02-16 Ulrich Drepper <drepper@redhat.com>
8893
07fb5185
UD
8894 * locale/iso-3166.def: Add Jersey, Guernsey, and Isle Of Man entries.
8895
93e66914 8896 * locale/iso-3166.def: Update entry for Serbia.
93e36434
UD
8897 * locale/iso-4217.def: Define RSD, remove CSD.
8898
ad0b348c
UD
8899 * sysdeps/x86_64/bits/atomic.h: One more change, this time for 16-
8900 and 64-bit operations.
8901
8902 [BZ #4040]
8903 * sysdeps/i386/i486/bits/atomic.h: One more change, this time for
8904 16-bit operations.
8905
8c6d1043
UD
8906 * nscd/nscd.c (parse_opt): One more conversion to use send instead
8907 of writev.
8908
987f54c6
UD
89092007-02-15 Ulrich Drepper <drepper@redhat.com>
8910
b3715c05
UD
8911 [BZ #3991]
8912 * assert/assert.h (assert): Simplify.
8913 (assert_perror): Likewise.
8914 Patch by Israel G. Lugo <ilugo@bridonsecurity.com>.
8915
6eea8e0d
UD
8916 * nscd/nscd_helper.c (open_socket): Don't send padding bytes from
8917 reqdata.
8918
987f54c6
UD
8919 * sysdeps/unix/sysv/linux/x86_64/send.c (__libc_send): Cosmetic
8920 change: don't pass NULL in place of an integer.
8921
3dc08a7e
UD
89222007-02-02 Bruno Haible <bruno@clisp.org>
8923
06c17c78
UD
8924 [BZ #3954]
8925 * iconvdata/ksc5601.c (__ksc5601_sym_to_ucs, __ksc5601_sym_from_ucs):
8926 Add mapping for U+327E.
8927 * iconvdata/ksc5601.h (KSC5601_SYMBOL): Increment.
8928 * iconvdata/johab.c (BODY for FROM_LOOP, BODY for TO_LOOP): Enable
8929 mapping of 0xD9 0xE8.
8930 * iconvdata/uhc.c (BODY for FROM_LOOP, BODY for TO_LOOP): Disable
8931 mapping of U+327E.
8932 Reported by Jungshik Shin <jungshik@google.com>.
8933
8934 [BZ #3955]
3dc08a7e
UD
8935 * iconvdata/johab.c (BODY for FROM_LOOP, BODY for TO_LOOP): Enable
8936 mapping of 0xD9 0xE6 and of 0xD9 0xE7.
8937 Reported by Jungshik Shin <jungshik@google.com>.
8938
a810e68c
UD
89392007-02-14 Ulrich Drepper <drepper@redhat.com>
8940
8941 * sysdeps/x86_64/bits/atomic;h: Fix asm parameters for some
8942 byte variants.
8943
8944 [BZ #4040]
8945 * sysdeps/i386/i486/bits/atomic.h: Fix asm parameters for some
8946 byte variants. Patch mostly be tom@tommay.net.
8947
05f135ba
UD
89482007-02-14 Jakub Jelinek <jakub@redhat.com>
8949
8950 [BZ #3996]
8951 * posix/glob.c (attribute_hidden): Define if not defined.
8952 (glob): Unescape dirname, filename or username when needed and not
8953 GLOB_NOESCAPE. Handle \/ correctly. Handle GLOB_MARK if filename
8954 is NULL. Handle unescaped [ in pattern without closing ].
8955 Don't pass GLOB_CHECK down to recursive glob for directories.
8956 (__glob_pattern_type): New function.
8957 (__glob_pattern_p): Implement using __glob_pattern_type.
8958 (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
8959 characters and backslashes if not GLOB_NOESCAPE or unterminated [.
8960 Remove unreachable code.
8961 * posix/globtest.sh: Add a couple of new tests.
8962
2f699967
UD
89632007-02-13 Ulrich Drepper <drepper@redhat.com>
8964
8965 * po/ru.po: Update from translation team.
8966
3a7cd5b4
JJ
89672007-02-12 Jakub Jelinek <jakub@redhat.com>
8968
8969 * sysdeps/i386/bits/byteswap.h (__bswap_32): Add __amdfam10__
8970 to the list of i486+ CPUs.
8971 * sysdeps/x86_64/bits/byteswap.h (__bswap_32): Likewise.
8972
2f978feb
UD
89732007-02-12 Ulrich Drepper <drepper@redhat.com>
8974
8975 * elf/rtld.c (RESOLVE_MAP): Always return bootstrap_map reference.
8976 * elf/Makefile ($(objpfx)ld.so): Check that ld.so has no undefined
8977 references.
8978
2bbb7d5b
UD
89792007-02-09 Ulrich Drepper <drepper@redhat.com>
8980
5ed61e0f
UD
8981 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Remove incorrect comment.
8982
2bbb7d5b
UD
8983 * resolv/res_init.c (res_setoptions): Recognize edns0 option.
8984 * resolv/res_mkquery.c: Define __res_nopt.
8985 * resolv/res_query.c (__libc_res_nquery): If RES_USE_EDNS0 is set
8986 try adding EDNS0 record.
8987 * resolv/res_send.c (send_dg): If request failed with FORMERR and
8988 EDNS0 record was send make sure we don't try it again.
8989 * resolv/resolv.h: Define RES_F_EDNS0ERR and RES_USE_EDNS0.
8990 * include/resolv.h: Declare __res_nopt.
8991
00458b5b
UD
89922007-02-08 Jakub Jelinek <jakub@redhat.com>
8993
8994 [BZ #3944]
8995 * time/strptime_l.c (__strptime_internal): Set have_mon for
8996 %b/%B/%h. Set have_mon and have_mday if tm_mon and tm_mday
8997 have been computed from tm_yday and tm_year. Don't crash
8998 in day_of_the_week or day_of_the_year if not have_mon
8999 and tm_mon contains bogus value.
9000 * time/Makefile (tests): Add tst-strptime3.
9001 * time/tst-strptime3.c: New test.
9002
784aacea
UD
90032007-02-05 Jakub Jelinek <jakub@redhat.com>
9004
9005 [BZ #3957]
9006 * posix/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
9007 bit for RE_HAT_LISTS_NOT_NEWLINE.
9008 (build_charclass_op): Remove bogus comment.
9009 * posix/Makefile (tests): Add bug-regex27 and bug-regex28.
9010 * posix/bug-regex27.c: New test.
9011 * posix/bug-regex28.c: New test.
9012
bf7a2463
UD
90132007-02-03 Ulrich Drepper <drepper@redhat.com>
9014
9015 * po/sv.po: Update from translation team.
9016
f2ccf983
UD
90172007-02-02 Ulrich Drepper <drepper@redhat.com>
9018
9019 * nscd/nscd_helper.c (open_socket): Minor size optimization.
9020
73f50d5a
UD
90212007-02-02 Jakub Jelinek <jakub@redhat.com>
9022
9023 * include/locale.h (__uselocale): Add libc_hidden_proto.
9024 * locale/uselocale.c (__uselocale): Add libc_hidden_def.
9025
f6bf9e59
JJ
9026 * nscd/nscd_helper.c (open_socket): Use __gettimeofday instead of
9027 gettimeofday.
9028
4a44ce79
UD
90292007-02-01 Ulrich Drepper <drepper@redhat.com>
9030
9031 * sysdeps/unix/sysv/linux/i386/sysdep.h (PTR_MANGLE): Roll value before
9032 returning.
9033 (PTR_DEMANGLE): Real definition now that it's not the same as
9034 PRT_MANGLE anymore.
9035 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
9036
9037 * string/strerror_l.c: New file.
9038 * string/Makefile (routines): Add strerror_l.
9039 * string/string.h: Declare strerror_l.
9040 * string/Versions: Export strerror_l for GLIBC_2.6.
9041
58a2d52e
UD
90422007-01-31 Ulrich Drepper <drepper@redhat.com>
9043
9044 * nscd/nscd_helper.c (open_socket): Now takes request type and key
9045 as parameter. Construct request record. Try sending request
9046 before the first poll use, it usually succeeds. Adjust all
9047 callers.
9048 * nscd/nscd-client.h: Define MAXKEYLEN.
4a44ce79 9049 * nscd/connections.c (nscd_run): Don't define MAXKEYLEN here.
58a2d52e 9050
1a77d37f
JJ
90512007-01-31 Jakub Jelinek <jakub@redhat.com>
9052
9053 * nscd/nscd-client.h (__nscd_cache_search): Remove const qualifier
9054 from return value.
9055 * nscd/nscd_helper.c: Include string.h.
9056 (__nscd_cache_search): Remove const qualifier from return value.
9057 On strict alignment architectures check hash entry and data head
9058 alignment.
9059 * nscd/nscd_getpw_r.c (nscd_getpw_r): Don't crash or fail because
9060 mmapped data during GC cycle contains garbage. If
9061 __nscd_drop_map_ref fails, decrement mapped->counter when returning
9062 error or if retrying with NO_MAPPING, only __nscd_unmap if counter
9063 dropped to 0.
9064 * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
9065 * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
9066 * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
9067 * nscd/nscd_getai.c (__nscd_getai): Likewise.
9068 * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
9069
ee314200
UD
90702007-01-30 Ulrich Drepper <drepper@redhat.com>
9071
9072 * misc/hsearch_r.c (hdestroy_r): Remove unnecessary test.
9073
14c8bf3b
UD
90742007-01-26 Ulrich Drepper <drepper@redhat.com>
9075
9076 * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Use register
9077 names not numbers in cfi_*.
9078
d2708e67
AJ
90792007-01-26 Andreas Jaeger <aj@suse.de>
9080
9081 * sysdeps/unix/sysv/linux/sys/personality.h (ADDR_NO_RANDOMIZE,
14c8bf3b 9082 ADDR_LIMIT_3GB, PER_LINUX_32BIT, PER_LINUX32_3GB): Add.
d2708e67
AJ
9083 Correct values of PER_HPUX and PER_OSF4.
9084
7fbc8784
UD
90852007-01-24 Ulrich Drepper <drepper@redhat.com>
9086
8aaf53ee 9087 * elf/dl-minimal.c: Undefine _itoa first.
7fbc8784
UD
9088 * stdio-common/_itoa.h: Define _itoa and _fitoa for 64-bit platforms.
9089 * malloc/mtrace.c: Revert last change.
9090 * posix/wordexp.c: Likewise.
9091
9d6cde3d
UD
90922007-01-24 Jakub Jelinek <jakub@redhat.com>
9093
9094 * sysdeps/i386/bits/byteswap.h (__bswap_32): Add __nocona__, __core2__
9095 and __geode__ to the list of i486+ CPUs.
9096 * sysdeps/x86_64/bits/byteswap.h (__bswap_32): Likewise.
9097
c1f0486a
UD
90982007-01-23 Ulrich Drepper <drepper@redhat.com>
9099
9100 * stdio-common/_itoa.c: Include <limits.h>.
9101 * stdio-common/_itowa.c: Likewise.
9102
6cae3957
UD
91032007-01-22 Ulrich Drepper <drepper@redhat.com>
9104
765bbb24
UD
9105 * stdio-common/_itowa.c: Don't compile _itowa for 64-bit
9106 platforms.
9107 * stdio-common/_itoa.c: Don't compile in _itoa and _fitoa for
9108 64-bit platforms.
9109 * malloc/mtrace.c (tr_where): Use _fitoa_word instead of _fitoa if
9110 possible.
9111 * posix/wordexp.c (parse_arith): Use _itoa_word instead of _itoa
9112 if possible.
9113
6cae3957
UD
9114 [BZ #3902]
9115 * stdio-common/_itoa.c (_itoa): Make sure at least a zero is emitted.
9116 * stdio-common/Makefile (tests): Add bug17.
9117 * stdio-common/bug17.c: New file.
9118
ddaafd04
UD
91192007-01-19 Ulrich Drepper <drepper@redhat.com>
9120
9121 * iconvdata/brf.c: New file.
439201de
UD
9122 * iconvdata/testdata/BRF: New file.
9123 * iconvdata/testdata/BRF..UTF8: New file.
9124 Contributed by Samuel Thibault <samuel.thibault@ens-lyon.org>.
ddaafd04
UD
9125 * iconvdata/Makefile: Add rules to build BRF.
9126 * iconvdata/TESTS: Add BRF entry.
9127 * iconvdata/gconv-modules: Likewise.
9128 * iconvdata/tst-tables.sh: Likewise.
ddaafd04 9129
9e6e344e
UD
91302007-01-18 Anton Nikishaev <anton.nik@gmail.com>
9131
9132 * wcsmbs/wchar.h (wcstoll): Fix comment, function returns value of
9133 type `long long int', not `long int'.
9134 (wcstoq): Likewise.
9135
299f7b0f
UD
91362007-01-18 Ulrich Drepper <drepper@redhat.com>
9137
9138 * scripts/gen-as-const.awk: Add cast to long to avoid int promotion
9139 of values on 64-bit platforms which are too large.
9140
cd8127cc
JJ
91412007-01-12 Steven Munroe <sjmunroe@us.ibm.com>
9142 Joe Kerian <jkerian@us.us.ibm.com>
9143
9144 [BZ #2749]
9145 * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Include
9146 <math_ldbl_opt.h>. Remove weak_alias. Use long_double_symbol macro.
9147 (__copysignl): Use signbit() for comparison.
9148 * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Correct parms for
9149 SET_LDOUBLE_WORDS64.
9150
9151 [BZ #2423, #2749]
9152 * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Don't include <fenv_libc.h>.
9153 (__ceill): Remove calls to fegetround(), fesetround().
9154 * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
9155 * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
9156 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
9157
b3acfdf7
JJ
91582007-01-17 Jakub Jelinek <jakub@redhat.com>
9159
4a2e03c6
JJ
9160 * nscd/nscd_getserv_r.c (nscd_getserv_r): Fix pastos.
9161
b3acfdf7
JJ
9162 * sysdeps/unix/sysv/linux/getdents.c (offsetof): Remove.
9163
1476bce6
UD
91642007-01-17 Ulrich Drepper <drepper@redhat.com>
9165
9166 * sysdeps/unix/sysv/linux/fatal-prepare.h: Use PTHFCT_CALL to
9167 demangle pointer.
9168 * csu/libc-start.c: Likewise.
9169
d78bce1c
UD
91702007-01-16 Ulrich Drepper <drepper@redhat.com>
9171
9172 * sysdeps/posix/system.c: Remove NO_WAITPID support, it cannot
9173 really work anyway.
9174
1bd79025
UD
91752007-01-15 Ulrich Drepper <drepper@redhat.com>
9176
000b027e
UD
9177 * nscd/connections.c (servinfo): Renamed to reqinfo. Change all
9178 users.
9179 (handle_request): Remove unnecessary tests.
9180
1bd79025
UD
9181 * nscd/cache.c (cache_add): Record the failure to add to the cache.
9182
d68f5d2c
JJ
91832007-01-15 Jakub Jelinek <jakub@redhat.com>
9184
9185 * soft-fp/op-common.h (FP_TRUNC): When truncating a NaN, clear
9186 workbits in semi-raw fraction.
9187
9188 * math/test-misc.c: Add new tests.
9189
91902007-01-14 Steven Munroe <sjmunroe@us.ibm.com>
9191
9192 * math/basic-test.c: Include test-skeleton.c.
9193 (TEST_TRUNC): Define.
9194 (truncdfsf_test, trunctfsf_test, trunctfdf_test): New.
9195 (main): Rename to ...
9196 (do_test): ...this. Run new tests.
9197 (TEST_FUNCTION): Define.
9198
91992006-10-05 Steven Munroe <sjmunroe@us.ibm.com>
9200 Joe Kerian <jkerian@us.us.ibm.com>
9201
9202 [BZ #2749]
9203 * soft-fp/op-4.h (__FP_FRAC_SUB_3, __FP_FRAC_SUB_4): Correct borrow
9204 handling for high words.
9205 * soft-fp/op-common.h (_FP_OVERFLOW_SEMIRAW): Always set inexact
9206 and overflow for infinity.
9207
4e35ef2c
UD
92082007-01-15 Ulrich Drepper <drepper@redhat.com>
9209
2a1dea97
UD
9210 * nscd/connections.c (handle_request): Add a __builtin_expect.
9211
9691d83c
UD
9212 * nscd/connections.c (serv2db): Change type into structure which
9213 also says whether this is a request for data. Renamed to
9214 servinfo. All users changed.
9215 (handle_request): Much simpler test whether we should search the cache.
9216
49ee6d79
UD
9217 * nscd/connections.c (handle_request): Fix thinko in selinux test
9218 invocation.
9219
4e35ef2c
UD
9220 * sysdeps/generic/ldsodefs.h: Define DL_LOOKUP_SCOPE_LOCK.
9221 * elf/dl-lookup.c (add_dependency): If scope map is locked, unlock
9222 it before getting dl_load_lock and then relock.
9223 (_dl_lookup_symbol_x): Pass flags to add_dependency.
9224 When rerunning _dl_lookup_symbol_x, compute symbol_scope again in
9225 case we unlocked the scope.
9226 * elf/dl-runtime.c (_dl_fixup): Pass DL_LOOKUP_SCOPE_LOCK to
9227 _dl_lookup_symbol_x in case we locked the scope.
9228 (_dl_profile_fixup): Likewise.
9229 * elf/dl-sym.c (do_sym): In flags passed to call_dl_lookup, also
9230 set DL_LOOKUP_SCOPE_LOCK.
9231
23691ab2
UD
92322007-01-13 Ulrich Drepper <drepper@redhat.com>
9233
fb453d08
UD
9234 * inet/Makefile: Define CFLAGS-getsrvbynm_r.c and
9235 CFLAGS-getsrvbynpt_r.c.
9236 * nscd/getsrvbynm_r.c: New file.
9237 * nscd/getsrvbypt_r.c: New file.
9238 * nscd/nscd_getserv_r.c: New file.
9239 * nscd/servicescache.c: New file.
9240 * nscd/Makefile (routines): Add nscd_getserv_r.
9241 (nscd-modules): Add getsrvbynm_r, getsrvbypt_r, and servicescache.
9242 Define CFLAGS-servicescache.c, CFLAGS-getsrvbynm_r.c, and
9243 CFLAGS-getsrvbypt_r.c.
9244 * nscd/cache.c (prune_cache): Rewrite to get re-add function from
9245 table. Add entries for services database.
9246 * nscd/connections.c (serv2str): Mark as const. Add entries for
9247 services database.
9248 (dbs): Add .reset_res and servdb initialization.
9249 (serv2db): Add entries for services database.
9250 (verify_persistent_db): Accept dbnr == servdb.
9251 (invalidate_cache): Rewrite database name recognition to use a table.
9252 Call res_init() if .reset_res is set for database.
9253 (handle_request): Add code to handle services database.
9254 * nscd/gai.c: Don't define __getservbyname_r.
9255 * nscd/nscd-client.h (request_type): Remove LASTDBREQ, add
9256 GETSERVBYNAME, GETSERVBYPORT, GETFDSERV.
9257 (serv_response_header): Define.
9258 (struct datahead): Add serv_response_header member.
9259 * nscd/nscd.c (parse_opt): Rewrite parsing of -i parameter value
9260 using table.
9261 * nscd/nscd.conf: Add entries for services database.
9262 * nscd/nscd.h: Adjust declaration of dbnames and serv2str.
9263 Declare serv_iov_disabled.
9264 Declare addservbyname, readdservbyname, addservbyport, and
9265 readdservbyport.
9266 * nscd/nscd_conf.c (dbnames): Mark as const. Add services entry.
9267 (find_db): Fix error message.
9268 * nscd/nscd_proto.h: Declare __nss_not_use_nscd_services,
9269 __nscd_getservbyname_r, and __nscd_getservbyport_r.
9270 * nscd/selinux.c (perms): Add entries for services database.
9271 * nss/Versions: Export __nss_services_lookup with GLIBC_PRIVATE.
9272 * nss/nsswitch.c (__nss_disable_nscd): Also disable services database.
9273
9274 * nscd/grpcache.c: Remove obsolete code. Cleanups.
9275 * nscd/hstcache.c: Likewise.
9276 * nscd/pwdcache.c: Likewise.
9277
b21fa963
UD
9278 * nis/nss_nis/nis-service.c (_nss_nis_getservbyname_r): Correct
9279 computation of keylen.
9280
23691ab2
UD
9281 * include/string.h: Only redefine strndupa if this is really for
9282 libc code.
9283
8980796b
UD
92842007-01-12 Ulrich Drepper <drepper@redhat.com>
9285
4a4a65f2
UD
9286 * nscd/nscd_gethst_r.c: Minor cleanups.
9287
43397eaf
UD
9288 * nscd/connections.c (handle_request): Check selinux permissions
9289 for all non-admin commands.
9290
038a1a9f
UD
9291 * sysdeps/i386/i486/bits/atomic.h: Define
9292 atomic_compare_and_exchange_val_acq,
9293 atomic_compare_and_exchange_bool_acq, and atomic_exchange_and_add
9294 using __sync_* built-ins for gcc >= 4.1.
9295 * sysdeps/x86_64/bits/atomic.h: Likewise.
9296
8980796b
UD
9297 [BZ #3840]
9298 * scripts/check-local-headers.sh: Restrict to testing .o.d, .os.d,
9299 and .oS.d files.
9300
32c075e1
JJ
93012007-01-05 Steven Munroe <sjmunroe@us.ibm.com>
9302
9303 * stdlib/tst-makecontext.c: Include errno.h. Change main()
9304 to do_test(). Define TEST_FUNCTION. Include test-skeleton.c.
9305 (do_test): Check errno and exit(0) if ENOSYS.
9306
93072007-01-11 Jakub Jelinek <jakub@redhat.com>
9308
9309 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix handling of multi-byte
9310 thousands separators.
9311 * stdlib/Makefile: Add rules to build and run tst-strtod4.
9312 * stdlib/tst-strtod4.c: New test.
9313
9314 [BZ #3855]
9315 * stdlib/strtod_l.c (____STRTOF_INTERNAL): 0x. not followed by
9316 hexadecimal digit should accept just the initial 0.
9317 * stdlib/tst-strtod2.c (tests): New variable.
9318 (do_test): Run several tests rather than just one.
9319
11bf311e 93202007-01-11 Jakub Jelinek <jakub@redhat.com>
df859a0c 9321
11bf311e
UD
9322 * sysdeps/i386/soft-fp/sfp-machine.h: Remove.
9323 * sysdeps/x86_64/soft-fp/sfp-machine.h: Likewise.
df859a0c 9324
11bf311e 93252007-01-10 Ulrich Drepper <drepper@redhat.com>
32c075e1 9326
11bf311e
UD
9327 * io/fts.c: Make sure fts_cur is always valid after return from
9328 fts_read.
9329 Patch by Miloslav Trmac <mitr@redhat.com>.
64a0aa0f 9330
11bf311e 93312006-10-27 Richard Sandiford <richard@codesourcery.com>
32c075e1 9332
11bf311e
UD
9333 * elf/elf.h (R_MIPS_GLOB_DAT): Define.
9334 (R_MIPS_NUM): Bump by 1.
32c075e1 9335
11bf311e 93362007-01-03 Jakub Jelinek <jakub@redhat.com>
32c075e1 9337
11bf311e
UD
9338 * posix/execvp.c: Include alloca.h.
9339 (allocate_scripts_argv): Renamed to...
9340 (scripts_argv): ... this. Don't allocate buffer here nor count
9341 arguments.
9342 (execvp): Use alloca if possible.
9343 * posix/Makefile: Add rules to build and run tst-vfork3 test.
9344 * posix/tst-vfork3.c: New test.
32c075e1
JJ
9345
93462007-01-03 Ulrich Drepper <drepper@redhat.com>
9347
9348 * string/Makefile (tst-strxfrm2-ENV): Define.
11bf311e 9349 * stdlib/Makefile (tst-strtod3-ENV): Define.
32c075e1 9350
11bf311e 93512007-01-02 Ulrich Drepper <drepper@redhat.com>
32c075e1 9352
11bf311e
UD
9353 * posix/getconf.c: Update copyright year.
9354 * nss/getent.c: Likewise.
9355 * iconv/iconvconfig.c: Likewise.
9356 * iconv/iconv_prog.c: Likewise.
9357 * elf/ldconfig.c: Likewise.
9358 * catgets/gencat.c: Likewise.
9359 * csu/version.c: Likewise.
9360 * elf/ldd.bash.in: Likewise.
9361 * elf/sprof.c (print_version): Likewise.
9362 * locale/programs/locale.c: Likewise.
9363 * locale/programs/localedef.c: Likewise.
9364 * nscd/nscd.c (print_version): Likewise.
9365 * debug/xtrace.sh: Likewise.
9366 * malloc/memusage.sh: Likewise.
9367 * malloc/mtrace.pl: Likewise.
9368 * debug/catchsegv.sh: Likewise.
64a0aa0f 9369
11bf311e 93702006-12-24 Ulrich Drepper <drepper@redhat.com>
48576885 9371
11bf311e
UD
9372 * malloc/malloc.c (sYSMALLOc): Remove some unnecessary alignment
9373 attempts.
48576885 9374
11bf311e 93752006-12-23 Ulrich Drepper <drepper@redhat.com>
3b6667a4 9376
11bf311e 9377 * posix/wordexp.c: Remove some unnecessary tests.
3b6667a4 9378
33c6de58
UD
93792006-12-22 Gavin Romig-Koch <gavin@redhat.com>
9380
9381 * nis/nss_compat/compat-grp.c (internal_getgrgid_r): Don't
9382 blacklist the group till after we look it up.
9383
fc242bef
UD
93842006-12-21 Ulrich Drepper <drepper@redhat.com>
9385
9386 * include/atomic.h (atomic_forced_read): New macro.
9387
11bf311e
UD
93882006-12-20 SUGIOKA Toshinobu <sugioka@itonet.co.jp>
9389
9390 * sysdeps/unix/sysv/linux/sh/bits/shm.h: New file.
9391
a12dcecc
UD
93922006-12-19 Jakub Jelinek <jakub@redhat.com>
9393
11bf311e
UD
9394 * nss/getXXbyYY_r.c: Include atomic.h.
9395 (INTERNAL (REENTRANT_NAME)): Write startp after start_fct,
9396 add atomic_write_barrier () in between.
9397
a12dcecc
UD
9398 * stdlib/Makefile (tests): Add tst-makecontext.
9399 * stdlib/tst-makecontext.c: New test.
9400
9401 * sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S
9402 (__makecontext): Don't realign uc_mcontext.uc_regs.
9403
11bf311e 94042006-11-28 Jakub Jelinek <jakub@redhat.com>
594d423a 9405
11bf311e
UD
9406 * elf/dl-support.c: Include dl-procinfo.h.
9407 * sysdeps/powerpc/dl-procinfo.h (PPC_PLATFORM_POWER4,
9408 PPC_PLATFORM_PPC970, PPC_PLATFORM_POWER5, PPC_PLATFORM_POWER5_PLUS,
9409 PPC_PLATFORM_POWER6, PPC_PLATFORM_CELL_BE, PPC_PLATFORM_POWER6X):
9410 Define.
9411 (_dl_string_platform): Use PPC_PLATFORM_* macros instead of
9412 hardcoded constants.
9413 * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_platform): Use
9414 PPC_PLATFORM_* macros for array designators.
594d423a 9415
11bf311e 94162006-11-11 Steven Munroe <sjmunroe@us.ibm.com>
594d423a 9417
11bf311e
UD
9418 * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add 3 new cap
9419 names to the beginning.
9420 (_dl_powerpc_platforms): Add "power6x".
9421 * sysdeps/powerpc/dl-procinfo.h (_DL_HWCAP_FIRST): Decrease.
9422 (HWCAP_IMPORTANT): Add PPC_FEATURE_HAS_DFP.
9423 (_DL_PLATFORMS_COUNT): Increase.
9424 (_dl_string_platform): Handle power6x case.
9425 * sysdeps/powerpc/sysdep.h (PPC_FEATURE_PA6T, PPC_FEATURE_HAS_DFP,
9426 PPC_FEATURE_POWER6_EXT): Define.
9427 (PPC_FEATURE_POWER5, PPC_FEATURE_POWER5_PLUS): Correct Comment.
594d423a 9428
5bcba0ed
UD
94292006-12-18 Jakub Jelinek <jakub@redhat.com>
9430
9431 [BZ #3747]
9432 * stdlib/jrand48_r.c (__jrand48_r): Make sure result is in the
11bf311e 9433 [-2^31 .. 2^31) range.
5bcba0ed
UD
9434 * stdlib/tst-rand48.c (main): Fix expected values for 64-bit
9435 targets.
9436 * stdlib/tst-rand48-2.c: New test.
9437 * stdlib/Makefile (tests): Add tst-rand48-2.
9438
9e1444fc
UD
94392006-12-14 Jakub Jelinek <jakub@redhat.com>
9440
9441 * misc/tst-pselect.c (do_test): Fix sigblock argument.
9442
36775704
UD
94432006-12-14 Ulrich Drepper <drepper@redhat.com>
9444
9445 * misc/tst-pselect.c (do_test): Make sure the helper process is
9446 terminating when the test is aborted.
9447
1e88bd0f
UD
94482006-12-13 Ulrich Drepper <drepper@redhat.com>
9449
11bf311e
UD
9450 * sysdeps/unix/sysv/linux/bits/statvfs.h: Define ST_RELATIME.
9451 * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
9452 Handle relatime mount option.
9453
1e88bd0f
UD
9454 [BZ #2337]
9455 * libio/Makefile (tests): Add tst-setvbuf1.
9456 * libio/tst-setvbuf1.c: New file.
9457
94582006-12-08 Jakub Jelinek <jakub@redhat.com>
9459
9460 [BZ #2337]
9461 * libio/genops.c (__uflow): Fix a typo.
9462 * libio/wfiledoalloc.c (_IO_wfile_doallocate): Don't stat
9463 nor set _IO_LINE_BUF bit here. Size the wide buffer based on
9464 the narrow buffer size.
9465
94662006-11-24 Jakub Jelinek <jakub@redhat.com>
9467
9468 [BZ #2337]
9469 * libio/libio.h (_IO_FLAGS2_USER_WBUF): Define.
9470 * libio/wgenops.c (_IO_wsetb, _IO_wdefault_finish): Test and set
9471 _IO_FLAGS2_USER_WBUF bit in _flags2 instead of _IO_USER_BUF bit
9472 in _flags.
9473 * libio/wstrops.c (_IO_wstr_overflow, enlarge_userbuf,
9474 _IO_wstr_finish): Likewise.
9475 * libio/wmemstream.c (open_wmemstream): Likewise.
9476 * libio/fileops.c (_IO_new_file_close_it): Call _IO_set[bgp]
9477 even for wide streams.
9478
11bf311e 94792006-12-13 Jakub Jelinek <jakub@redhat.com>
1f55ce48 9480
11bf311e
UD
9481 * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: Include
9482 kernel-features.h.
9483
94842006-12-11 Ulrich Drepper <drepper@redhat.com>
9485
9486 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Parse thousand
9487 separators also if no non-zero digits found.
9488 * stdlib/Makefile (tests): Add tst-strtod3.
1f55ce48 9489
d117c1ce
UD
94902006-12-09 Ulrich Drepper <drepper@redhat.com>
9491
f85fb97b
UD
9492 [BZ #3632]
9493 * include/features.h: Fix comment about default value for
9494 _POSIX_C_SOURCE.
9495
11bf311e
UD
9496 [BZ #3664]
9497 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix test to recognize
9498 empty parsed strings.
9499 * stdlib/Makefile (tests): Add tst-strtod2.
9500 * stdlib/tst-strtod2.c: New file.
9501
9502 [BZ #3673]
9503 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix exp_limit
9504 computation.
9505 * stdlib/Makefile (tests): Add tst-atof2.
9506 * stdlib/tst-atof2.c: New file.
9507
9508 [BZ #3674]
9509 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Adjust exponent value
9510 correctly if removing trailing zero of hex-float.
9511 * stdlib/Makefile (tests): Add tst-atof1.
9512 * stdlib/tst-atof1.c: New file.
9513
a822d9f4
UD
95142006-12-09 Jakub Jelinek <jakub@redhat.com>
9515
11bf311e
UD
9516 * misc/mntent_r.c (__hasmntopt): Check p[optlen] even when p == rest.
9517 Start searching for next comma at p rather than rest.
9518 * misc/Makefile (tests): Add tst-mntent2.
9519 * misc/tst-mntent2.c: New test.
9520
a822d9f4
UD
9521 * misc/getusershell.c (initshells): Check for integer overflows.
9522 Make strings buffer one bigger as fgets always succeeds when second
9523 argument is 1. Don't use calloc for shells array. Disallow
11bf311e 9524 / as shell.
f0d5e1f6 9525
11bf311e 95262006-12-08 Ulrich Drepper <drepper@redhat.com>
f0d5e1f6 9527
11bf311e
UD
9528 * malloc/memusage.c: Handle realloc with new size of zero and
9529 non-NULL pointer correctly.
9530 (me): Really write first record twice.
9531 (struct entry): Make format bi-arch safe.
9532 (dest): Write out more realloc statistics.
9533 * malloc/memusagestat.c (struct entry): Make format bi-arch safe.
32c075e1 9534
11bf311e 95352006-12-05 Jakub Jelinek <jakub@redhat.com>
32c075e1 9536
11bf311e 9537 * nis/nis_subr.c (nis_getnames): Revert last change.
32c075e1 9538
f0d5e1f6
UD
95392006-12-04 Jakub Jelinek <jakub@redhat.com>
9540
9541 * sysdeps/unix/sysv/linux/ttyname.c: Include termios.h.
9542 (ttyname): Use tcgetattr instead of isatty, don't set errno to ENOTTY.
9543 * sysdeps/unix/sysv/linux/ttyname_r.c: Include termios.h.
9544 (__ttyname_r): Use tcgetattr instead of isatty, don't set errno to
9545 ENOTTY.
9546 * io/Makefile: Add rules to build and run tst-ttyname_r test.
9547 * io/tst-ttyname_r.c: New test.
9548
11bf311e 95492006-12-03 Kaz Kojima <kkojima@rr.iij4u.or.jp>
5df4fe08 9550
11bf311e 9551 * sysdeps/unix/sysv/linux/sh/sys/io.h: Removed.
5df4fe08 9552
11bf311e 95532006-11-30 H.J. Lu <hongjiu.lu@intel.com>
ee50871d 9554
11bf311e
UD
9555 * sysdeps/i386/i686/memcmp.S: Use jump table as the base of
9556 jump table entries.
9557
95582006-11-30 Jan Kratochvil <jan.kratochvil@redhat.com>
9559
9560 * sysdeps/unix/sysv/linux/i386/clone.S: Provide CFI for the outermost
9561 `clone' function to ensure proper unwinding stop of gdb.
9562 * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
9563
95642006-12-01 Ulrich Drepper <drepper@redhat.com>
9565
9566 * nscd/nscd.init: Remove obsolete and commented-out -S option
9567 handling.
9568
95692006-11-23 Jakub Jelinek <jakub@redhat.com>
9570
9571 [BZ #3514]
9572 * manual/string.texi (strncmp): Fix pastos from wcscmp description.
9573
9574 [BZ #3515]
9575 * manual/string.texi (strtok): Remove duplicate paragraph.
9576
95772006-12-01 Jan Kratochvil <jan.kratochvil@redhat.com>
9578
9579 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Fix compatibility with
9580 libgcc not supporting `rflags' unwinding (register # >= 17).
9581
95822006-11-30 Jakub Jelinek <jakub@redhat.com>
9583
9584 * sunrpc/svc_run.c (svc_run): Set my_pollfd to new_pollfd if realloc
9585 succeeded.
9586
95872006-11-29 Daniel Jacobowitz <dan@codesourcery.com>
9588 Jakub Jelinek <jakub@redhat.com>
9589 Jan Kratochvil <jan.kratochvil@redhat.com>
9590
9591 * sysdeps/unix/sysv/linux/x86_64/sigaction.c (restore_rt): Add correct
9592 unwind information.
9593 * sysdeps/unix/sysv/linux/x86_64/Makefile: Provide symbols for
9594 'restore_rt' even in the 'signal' directory.
9595 * sysdeps/unix/sysv/linux/x86_64/ucontext_i.sym: Extend the regs list.
ee50871d 9596
b1a758f3
UD
95972006-11-27 Jakub Jelinek <jakub@redhat.com>
9598
9599 [BZ #3559]
9600 * sunrpc/svc_run.c (svc_run): Fail instead of segfaulting if
11bf311e
UD
9601 malloc crashed. Don't allocate memory unnecessarily in each
9602 loop.
b1a758f3 9603
11bf311e 96042006-10-21 Jakub Jelinek <jakub@redhat.com>
854d1124 9605
11bf311e 9606 * resolv/mapv4v6addr.h (map_v4v6_address): Fix last change.
dfc99a56 9607
11bf311e 96082006-11-20 Ulrich Drepper <drepper@redhat.com>
dfc99a56 9609
11bf311e 9610 * resolv/mapv4v6addr.h (map_v4v6_address): Optimize a bit.
852d657c 9611
11bf311e 96122006-11-18 Bruno Haible <bruno@clisp.org>
852d657c 9613
11bf311e
UD
9614 * sysdeps/unix/sysv/linux/i386/getgroups.c (__getgroups): Invoke
9615 __sysconf only after having tried to call getgroups32.
36c0a636 9616
11bf311e 96172006-11-19 Ulrich Drepper <drepper@redhat.com>
36c0a636 9618
11bf311e
UD
9619 * nss/nss_files/files-hosts.c (LINE_PARSER): Support IPv6-style
9620 addresses for IPv4 queries if they can be mapped.
b1f0c2a6 9621
11bf311e 96222006-11-16 Jakub Jelinek <jakub@redhat.com>
b1f0c2a6 9623
11bf311e
UD
9624 * sysdeps/x86_64/fpu/s_copysignf.S (__copysignf): Switch to .text.
9625 * sysdeps/x86_64/fpu/s_copysign.S (__copysign): Likewise.
9626 (signmask): Add .size directive.
9627 (othermask): Add .type directive.
bef8927a 9628
11bf311e 96292006-11-14 Ulrich Drepper <drepper@redhat.com>
2c53fa20 9630
11bf311e 9631 * po/nl.po: Update from translation team.
854d1124 9632
11bf311e 9633 * timezone/zdump.c: Redo fix for BZ #3137.
3f1e9205 9634
11bf311e 96352006-11-14 Jakub Jelinek <jakub@redhat.com>
bef8927a 9636
11bf311e
UD
9637 * nss/nss_files/files-alias.c (get_next_alias): Set line back
9638 to first_unused after parsing :include: file.
5c2af134 9639
32c075e1 96402006-11-10 Ulrich Drepper <drepper@redhat.com>
e1b37083 9641
11bf311e
UD
9642 * timezone/africa: Update from tzdata2006o.
9643 * timezone/antarctica: Likewise.
9644 * timezone/asia: Likewise.
9645 * timezone/australasia: Likewise.
9646 * timezone/backward: Likewise.
9647 * timezone/europe: Likewise.
9648 * timezone/iso3166.tab: Likewise.
9649 * timezone/northamerica: Likewise.
9650 * timezone/southamerica: Likewise.
9651 * timezone/zone.tab: Likewise.
9652
9653 * time/tzfile.c (__tzfile_read): Extend to handle new file format
9654 on machines with 64-bit time_t.
9655
9656 * timezone/checktab.awk: Update from tzcode2006o.
9657 * timezone/ialloc.c: Likewise.
9658 * timezone/private.h: Likewise.
9659 * timezone/scheck.c: Likewise.
9660 * timezone/tzfile.h: Likewise.
9661 * timezone/tzselect.ksh: Likewise.
9662 * timezone/zdump.c: Likewise.
9663 * timezone/zic.c: Likewise.
9664
9665 [BZ #3483]
9666 * elf/ldconfig.c (main): Call setlocale and textdomain.
9667 Patch mostly by Benno Schulenberg <bensberg@justemail.net>.
9668
9669 [BZ #3480]
9670 * manual/argp.texi: Fix typos.
9671 * manual/charset.texi: Likewise.
9672 * manual/errno.texi: Likewise.
9673 * manual/filesys.texi: Likewise.
9674 * manual/lang.texi: Likewise.
9675 * manual/maint.texi: Likewise.
9676 * manual/memory.texi: Likewise.
9677 * manual/message.texi: Likewise.
9678 * manual/resource.texi: Likewise.
9679 * manual/search.texi: Likewise.
9680 * manual/signal.texi: Likewise.
9681 * manual/startup.texi: Likewise.
9682 * manual/stdio.texi: Likewise.
9683 * manual/sysinfo.texi: Likewise.
9684 * manual/syslog.texi: Likewise.
9685 * manual/time.texi: Likewise.
9686 Patch by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
9687
9688 [BZ #3465]
9689 * sunrpc/clnt_raw.c: Minimal message improvements.
9690 * sunrpc/pm_getmaps.c: Likewise.
9691 * nis/nss_nisplus/nisplus-publickey.c: Likewise.
9692 * nis/nis_print_group_entry.c: Likewise.
9693 * locale/programs/repertoire.c: Likewise.
9694 * locale/programs/charmap.c: Likewise.
9695 * malloc/memusage.sh: Likewise.
9696 * elf/dl-deps.c: Likewise.
9697 * locale/programs/ld-collate.c: Likewise.
9698 * libio/vswprintf.c: Likewise.
9699 * malloc/memusagestat.c: Likewise.
9700 * sunrpc/auth_unix.c: Likewise.
9701 * sunrpc/rpc_main.c: Likewise.
9702 * nscd/cache.c: Likewise.
9703 * locale/programs/repertoire.c: Unify output messages.
9704 * locale/programs/charmap.c: Likewise.
9705 * locale/programs/ld-ctype.c: Likewise.
9706 * locale/programs/ld-monetary.c: Likewise.
9707 * locale/programs/ld-numeric.c: Likewise.
9708 * locale/programs/ld-time.c: Likewise.
9709 * elf/ldconfig.c: Likewise.
9710 * nscd/selinux.c: Likewise.
9711 * elf/cache.c: Likewise.
9712 Patch mostly by Benno Schulenberg <bensberg@justemail.net>.
9713
5c2af134
UD
9714 [BZ #3451]
9715 * sysdeps/i386/fpu/bits/mathinline.h (floor): Make rounding mode
9716 change atomic.
9717 (ceil): Likewise.
9718
11bf311e
UD
97192006-11-10 Jakub Jelinek <jakub@redhat.com>
9720
9721 * string/strxfrm_l.c (STRXFRM): Fix trailing \1 optimization
9722 if N is one bigger than return value.
9723 * string/tst-strxfrm2.c (do_test): Also test strxfrm with l1 + 1
9724 and l1 last arguments, if buf is defined, verify the return value
9725 equals to strlen (buf) and verify no byte beyond passed length
9726 is modified.
9727
97282006-11-10 Ulrich Drepper <drepper@redhat.com>
9729
9730 * po/sv.po: Update from translation team.
9731
37afcf79
UD
97322006-11-09 Ulrich Drepper <drepper@redhat.com>
9733
9734 * sysdeps/unix/sysv/linux/x86_64/sysconf.c (intel_check_word): Add
9735 noinline attribute.
9736
97372006-11-10 Jakub Jelinek <jakub@redhat.com>
9738
9739 * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Add
9740 noinline attribute.
9741
11bf311e
UD
9742 * sysdeps/gnu/siglist.c (__old_sys_siglist, __old_sys_sigabbrev):
9743 Use __new_sys_siglist instead of _sys_siglist_internal as
9744 second macro argument.
9745 (_old_sys_siglist): Use declare_symbol_alias macro instead of
9746 strong_alias.
2692deea 9747
11bf311e
UD
97482006-11-09 Ulrich Drepper <drepper@redhat.com>
9749
9750 [BZ #3493]
9751 * posix/unistd.h (sysconf): Remove const attribute.
9752
9753 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Fix test for
9754 temporary or deprecated addresses.
9755 Patch by Sridhar Samudrala <sri@us.ibm.com>.
9756
9757 * string/Makefile (tests): Add tst-strxfrm2.
9758 * string/tst-strxfrm2.c: New file.
9759
97602006-10-09 Jakub Jelinek <jakub@redhat.com>
9761
9762 * elf/dl-debug.c (_dl_debug_initialize): Check r->r_map for 0
9763 rather than r->r_brk.
2692deea
UD
9764
97652006-11-08 Jakub Jelinek <jakub@redhat.com>
9766
11bf311e
UD
9767 * string/strxfrm_l.c (STRXFRM): Do the trailing \1 removal
9768 optimization even if needed > n.
9769
2692deea
UD
9770 * elf/dl-load.c (decompose_rpath): Return bool rather than void.
9771 If l->l_name is on inhibit_rpath list, set sps->dirs to -1 and
9772 return false, otherwise return true.
9773 (cache_rpath): Return decompose_rpath return value.
9774
11bf311e
UD
97752006-11-07 Jakub Jelinek <jakub@redhat.com>
9776
9777 * include/libc-symbols.h (declare_symbol): Rename to...
9778 (declare_symbol_alias): ... this. Add ORIGINAL argument, imply
9779 strong_alias (ORIGINAL, SYMBOL) in asm to make sure it preceedes
9780 .size directive.
9781 * sysdeps/gnu/errlist-compat.awk: Adjust for declare_symbol_alias
9782 changes.
9783 * sysdeps/gnu/siglist.c: Likewise.
9784
97852006-11-03 Steven Munroe <sjmunroe@us.ibm.com>
9786
9787 * sysdeps/powerpc/fpu/bits/mathinline.h
9788 [__LIBC_INTERNAL_MATH_INLINES]: Moved to ...
9789 * sysdeps/powerpc/fpu/math_private.h: ...here. New file.
9790
97912006-11-05 Ulrich Drepper <drepper@redhat.com>
9792
9793 * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
9794 Update handling of cache descriptor 0x49 for new models.
9795 * sysdeps/unix/sysv/linux/x86_64/sysconf.c (intel_check_word):
9796 Likewise.
9797
9666e36c
UD
97982006-11-02 Jakub Jelinek <jakub@redhat.com>
9799
9800 * malloc/memusage.c (dest): Reset not_me back to false after
9801 printing statistics.
9802
11bf311e
UD
98032006-11-02 Ulrich Drepper <drepper@redhat.com>
9804
9805 * configure.in: Work around ld --help change and avoid -z relro
9806 test completely if the architecture doesn't care about security.
9807
98082006-11-01 Ulrich Drepper <drepper@redhat.com>
9809
9810 * po/sv.po: Update from translation team.
9811
98122006-10-31 Ulrich Drepper <drepper@redhat.com>
9813
9814 * stdlib/atexit.c (atexit): Don't mark as hidden when used to
9815 generate compatibility version.
9816
98172006-10-29 Ulrich Drepper <drepper@redhat.com>
9818
9819 * configure.in: Relax -z relro requirement a bit.
9820
9821 * po/sv.po: Update from translation team.
9822
98232006-10-29 Jakub Jelinek <jakub@redhat.com>
9824
9825 * elf/dl-sym.c (do_sym): Use RTLD_SINGLE_THREAD_P.
9826 * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Likewise.
9827 * elf/dl-close.c (_dl_close_worker): Likewise.
9828 * elf/dl-open.c (_dl_open_worker): Likewise.
9829 * sysdeps/generic/sysdep-cancel.h (RTLD_SINGLE_THREAD_P): Define.
9830
b2369ca3
UD
98312006-10-27 Ulrich Drepper <drepper@redhat.com>
9832
11bf311e
UD
9833 * configure.in: Require assembler support for visibility, compiler
9834 support for visibility and aliases, linker support for various -z
9835 options.
9836 * Makeconfig: Remove conditional code which now is unnecessary.
9837 * config.h.in: Likewise.
9838 * config.make.in: Likewise.
9839 * dlfcn/Makefile: Likewise.
9840 * elf/Makefile: Likewise.
9841 * elf/dl-load.c: Likewise.
9842 * elf/rtld.c: Likewise.
9843 * include/libc-symbols.h: Likewise.
9844 * include/stdio.h: Likewise.
9845 * io/Makefile: Likewise.
9846 * io/fstat.c: Likewise.
9847 * io/fstat64.c: Likewise.
9848 * io/fstatat.c: Likewise.
9849 * io/fstatat64.c: Likewise.
9850 * io/lstat.c: Likewise.
9851 * io/lstat64.c: Likewise.
9852 * io/mknod.c: Likewise.
9853 * io/mknodat.c: Likewise.
9854 * io/stat.c: Likewise.
9855 * io/stat64.c: Likewise.
9856 * libio/stdio.c: Likewise.
9857 * nscd/Makefile: Likewise.
9858 * stdlib/Makefile: Likewise.
9859 * stdlib/atexit.c: Likewise.
9860 * sysdeps/generic/ldsodefs.h: Likewise.
9861 * sysdeps/i386/dl-machine.h: Likewise.
9862 * sysdeps/i386/sysdep.h: Likewise.
9863 * sysdeps/i386/i686/memcmp.S: Likewise.
9864 * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
9865 * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
9866 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
9867
9868 * Makerules: USE_TLS support is now default.
9869 * tls.make.c: Likewise.
9870 * csu/Versions: Likewise.
9871 * csu/libc-start.c: Likewise.
9872 * csu/libc-tls.c: Likewise.
9873 * csu/version.c: Likewise.
9874 * dlfcn/dlinfo.c: Likewise.
9875 * elf/dl-addr.c: Likewise.
9876 * elf/dl-cache.c: Likewise.
9877 * elf/dl-close.c: Likewise.
9878 * elf/dl-iteratephdr.c: Likewise.
9879 * elf/dl-load.c: Likewise.
9880 * elf/dl-lookup.c: Likewise.
9881 * elf/dl-object.c: Likewise.
9882 * elf/dl-open.c: Likewise.
9883 * elf/dl-reloc.c: Likewise.
9884 * elf/dl-support.c: Likewise.
9885 * elf/dl-sym.c: Likewise.
9886 * elf/dl-sysdep.c: Likewise.
9887 * elf/dl-tls.c: Likewise.
9888 * elf/ldconfig.c: Likewise.
9889 * elf/rtld.c: Likewise.
9890 * elf/tst-tls-dlinfo.c: Likewise.
9891 * elf/tst-tls1.c: Likewise.
9892 * elf/tst-tls10.h: Likewise.
9893 * elf/tst-tls14.c: Likewise.
9894 * elf/tst-tls2.c: Likewise.
9895 * elf/tst-tls3.c: Likewise.
9896 * elf/tst-tls4.c: Likewise.
9897 * elf/tst-tls5.c: Likewise.
9898 * elf/tst-tls6.c: Likewise.
9899 * elf/tst-tls7.c: Likewise.
9900 * elf/tst-tls8.c: Likewise.
9901 * elf/tst-tls9.c: Likewise.
9902 * elf/tst-tlsmod1.c: Likewise.
9903 * elf/tst-tlsmod13.c: Likewise.
9904 * elf/tst-tlsmod13a.c: Likewise.
9905 * elf/tst-tlsmod14a.c: Likewise.
9906 * elf/tst-tlsmod2.c: Likewise.
9907 * elf/tst-tlsmod3.c: Likewise.
9908 * elf/tst-tlsmod4.c: Likewise.
9909 * elf/tst-tlsmod5.c: Likewise.
9910 * elf/tst-tlsmod6.c: Likewise.
9911 * include/errno.h: Likewise.
9912 * include/link.h: Likewise.
9913 * include/tls.h: Likewise.
9914 * locale/global-locale.c: Likewise.
9915 * locale/localeinfo.h: Likewise.
9916 * malloc/arena.c: Likewise.
9917 * malloc/hooks.c: Likewise.
9918 * malloc/malloc.c: Likewise.
9919 * resolv/Versions: Likewise.
9920 * sysdeps/alpha/dl-machine.h: Likewise.
9921 * sysdeps/alpha/libc-tls.c: Likewise.
9922 * sysdeps/generic/ldsodefs.h: Likewise.
9923 * sysdeps/generic/tls.h: Likewise.
9924 * sysdeps/i386/dl-machine.h: Likewise.
9925 * sysdeps/ia64/dl-machine.h: Likewise.
9926 * sysdeps/ia64/libc-tls.c: Likewise.
9927 * sysdeps/mach/hurd/fork.c: Likewise.
9928 * sysdeps/mach/hurd/i386/tls.h: Likewise.
9929 * sysdeps/powerpc/powerpc32/dl-machine.c: Likwise.
9930 * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
9931 * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
9932 * sysdeps/s390/libc-tls.c: Likewise.
9933 * sysdeps/s390/s390-32/dl-machine.h: Likewise.
9934 * sysdeps/s390/s390-64/dl-machine.h: Likewise.
9935 * sysdeps/sh/dl-machine.h: Likewise.
9936 * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
9937 * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
9938 * sysdeps/x86_64/dl-machine.h: Likewise.
9939
131c4428
UD
9940 * elf/dl-close.c (_dl_close_worker): Renamed from _dl_close and
9941 split out locking and parameter checking.
9942 (_dl_close): Call _dl_close_worker after locking and checking.
9943 * elf/dl-open.c (_dl_open): Call _dl_close_worker instead of
9944 _dl_close.
ffd0e1b7
UD
9945 * elf/Makefile: Add rules to build and run tst-thrlock.
9946 * elf/tst-thrlock.c: New file.
131c4428 9947
11bf311e
UD
9948 [BZ #3426]
9949 * stdlib/stdlib.h: Adjust comment for canonicalize_file_name to
9950 reality.
9951
b2369ca3
UD
9952 [BZ #3429]
9953 * elf/dl-open.c (dl_open_worker): Keep holding dl_load_lock until
131c4428 9954 we are sure we do not need it anymore for _dl_close. Also move
b2369ca3
UD
9955 the asserts inside the lock region.
9956 Patch mostly by Suzuki <suzuki@in.ibm.com>.
9957
11bf311e
UD
99582006-10-27 Jakub Jelinek <jakub@redhat.com>
9959
9960 * elf/dl-lookup.c (_dl_debug_bindings): Remove unused symbol_scope
9961 argument.
9962 (_dl_lookup_symbol_x): Adjust caller.
9963
9964 * sysdeps/generic/ldsodefs.h (struct link_namespaces): Remove
9965 _ns_global_scope.
9966 * elf/rtld.c (dl_main): Don't initialize _ns_global_scope.
9967
9968 * elf/dl-libc.c: Revert l_scope name changes.
9969 * elf/dl-load.c: Likewise.
9970 * elf/dl-object.c: Likewise.
9971 * elf/rtld.c: Likewise.
9972 * elf/dl-close.c (_dl_close): Likewise.
9973 * elf/dl-open.c (dl_open_worker): Likewise. If not SINGLE_THREAD_P,
9974 always use __rtld_mrlock_{change,done}. Always free old scope list
9975 here if not l_scope_mem.
9976 * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Revert l_scope name
9977 change. Never free scope list here. Just __rtld_mrlock_lock before
9978 the lookup and __rtld_mrlock_unlock it after the lookup.
9979 * elf/dl-sym.c: Likewise.
9980 * include/link.h (struct r_scoperec): Remove.
9981 (struct link_map): Replace l_scoperec with l_scope, l_scoperec_mem
9982 with l_scope_mem and l_scoperec_lock with l_scope_lock.
9983
99842006-10-25 Ulrich Drepper <drepper@redhat.com>
9985
9986 * sysdeps/gnu/netinet/tcp.h: Define TCP_CONGESTION.
9987
99882006-10-18 Ulrich Drepper <drepper@redhat.com>
9989
9990 * configure.in: Disable building profile libraries by default.
9991
609cf614
UD
99922006-10-17 Jakub Jelinek <jakub@redhat.com>
9993
9994 * sunrpc/xdr_mem.c (xdrmem_setpos): Don't compare addresses
9995 as signed longs, check for x_base + pos overflow.
9996 * sunrpc/Makefile (tests): Add tst-xdrmem2.
9997 * sunrpc/tst-xdrmem2.c: New test.
9998
11bf311e
UD
99992006-10-18 Ulrich Drepper <drepper@redhat.com>
10000
10001 * elf/dl-lookup.c (_dl_lookup_symbol_x): Add warning to
10002 _dl_lookup_symbol_x code.
10003
100042006-10-17 Jakub Jelinek <jakub@redhat.com>
10005
10006 * elf/dl-runtime.c: Include sysdep-cancel.h.
10007 (_dl_fixup, _dl_profile_fixup): Use __rtld_mrlock_* and
10008 scoperec->nusers only if !SINGLE_THREAD_P. Use atomic_*
10009 instead of catomic_* macros.
10010 * elf/dl-sym.c: Include sysdep-cancel.h.
10011 (do_sym): Use __rtld_mrlock_* and scoperec->nusers only
10012 if !SINGLE_THREAD_P. Use atomic_* instead of catomic_* macros.
10013 * elf/dl-close.c: Include sysdep-cancel.h.
10014 (_dl_close): Use __rtld_mrlock_* and scoperec->nusers only
10015 if !SINGLE_THREAD_P. Use atomic_* instead of catomic_* macros.
10016 * elf/dl-open.c: Include sysdep-cancel.h.
10017 (dl_open_worker): Use __rtld_mrlock_* and scoperec->nusers only
10018 if !SINGLE_THREAD_P. Use atomic_* instead of catomic_* macros.
10019
100202006-10-17 Jakub Jelinek <jakub@redhat.com>
10021
10022 [BZ #3313]
10023 * malloc/malloc.c (malloc_consolidate): Set maxfb to address of last
10024 fastbin rather than end of fastbin array.
10025
100262006-10-18 Ulrich Drepper <drepper@redhat.com>
10027
10028 * sysdeps/i386/i486/bits/atomic.h (catomic_decrement): Use correct
10029 body macro.
10030 * sysdeps/x86_64/bits/atomic.h
10031 (__arch_c_compare_and_exchange_val_64_acq): Add missing casts.
10032 (catomic_decrement): Use correct body macro.
10033
100342006-10-17 Jakub Jelinek <jakub@redhat.com>
10035
10036 * include/atomic.h: Add a unique prefix to all local variables
10037 in macros.
10038 * csu/tst-atomic.c (do_test): Test also catomic_* macros.
10039
4a85a8ee
UD
100402006-10-16 Ulrich Drepper <drepper@redhat.com>
10041
10042 [BZ #3369]
10043 * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Fix typos in rules 4
10044 and 7.
10045
11bf311e
UD
100462006-10-14 Ulrich Drepper <drepper@redhat.com>
10047
10048 * resolv/arpa/nameser.h: Document that ns_t_a6 is deprecated.
10049
ff8d96be
UD
100502006-10-13 Ulrich Drepper <drepper@redhat.com>
10051
11bf311e
UD
10052 [BZ #3313]
10053 * malloc/malloc.c (malloc_consolidate): Don't use get_fast_max to
10054 determine highest fast bin to consolidate, always look into all of
10055 them.
10056 (do_check_malloc_state): Only require for empty bins for large
10057 sizes in main arena.
10058
10059 * libio/stdio.h: Add more __wur attributes.
10060
ff8d96be
UD
10061 * elf/dl-minimal.c (realloc): Optimize last patch.
10062
90a0991a
UD
100632006-10-12 Richard Sandiford <richard@codesourcery.com>
10064
10065 [BZ #3352]
10066 * elf/dl-minimal.c (realloc): Let malloc() return a new pointer,
10067 and use memcpy() if it does.
ff8d96be 10068
11bf311e
UD
100692006-11-12 Andreas Jaeger <aj@suse.de>
10070
10071 [BZ #2510]
10072 * manual/search.texi (Hash Search Function): Clarify.
10073 (Array Search Function): Clarify.
10074
100752006-11-12 Joseph Myers <joseph@codesourcery.com>
10076
10077 [BZ #2830]
10078 * math/atest-exp.c (main): Cast hex value to mp_limb_t before
10079 shifting.
10080 * math/atest-exp2.c (read_mpn_hex): Likewise.
10081 * math/atest-sincos.c (main): Likewise.
10082
37fb7595
UD
100832006-10-11 Ulrich Drepper <drepper@redhat.com>
10084
11bf311e
UD
10085 * sysdeps/unix/sysv/linux/syscalls.list: Add epoll_pwait.
10086 * sysdeps/unix/sysv/linux/sys/epoll.h: Declare epoll_pwait.
10087 * sysdeps/unix/sysv/linux/Versions (libc): Add epoll_pwait for
10088 version GLIBC_2.6.
10089 * Versions.def: Add GLIBC_2.6 for libc.
10090
46c38bd7
UD
10091 * sysdeps/unix/sysv/linux/i386/sysdep.h (DOARGS_6): Fix offset.
10092
11bf311e
UD
10093 * sysdeps/i386/i486/bits/atomic.h: Add catomic_* support.
10094
100952006-10-11 Jakub Jelinek <jakub@redhat.com>
10096
10097 * malloc/malloc.c (_int_malloc): Remove unused any_larger variable.
10098
10099 * nis/nis_defaults.c (__nis_default_access): Don't call getenv twice.
10100
10101 * nis/nis_subr.c (nis_getnames): Use __secure_getenv instead of getenv.
10102 * sysdeps/generic/unsecvars.h: Add NIS_PATH.
10103
101042006-10-11 Ulrich Drepper <drepper@redhat.com>
10105
10106 * include/atomic.c: Define catomic_* operations.
10107 * sysdeps/x86_64/bits/atomic.h: Likewise. Fix a few minor problems.
10108 * stdlib/cxa_finalize.c: Use catomic_* operations instead of atomic_*.
10109 * malloc/memusage.c: Likewise.
10110 * gmon/mcount.c: Likewise.
10111 * elf/dl-close.c: Likewise.
10112 * elf/dl-open.c: Likewise.
10113 * elf/dl-profile.c: Likewise.
10114 * elf/dl-sym.c: Likewise.
10115 * elf/dl-runtime.c: Likewise.
10116 * elf/dl-fptr.c: Likewise.
10117 * resolv/res_libc.c: Likewise.
10118
2a6ee549
UD
101192006-10-10 Ulrich Drepper <drepper@redhat.com>
10120
10121 * nis/nis_subr.c (nis_getnames): Add trailing dot to NIS_PATH
10122 components which lack them.
10123
10124 * nis/nis_subr.c (nis_getnames): Make sure that we always return
10125 at least one entry consisting of the parameter concatenated with
10126 the domain.
10127
11bf311e 101282006-10-10 Roland McGrath <roland@frob.com>
c4f9fc3a 10129
11bf311e
UD
10130 * sysdeps/mach/hurd/utimes.c: Use a union to avoid an improper cast.
10131 * sysdeps/mach/hurd/futimes.c: Likewise.
10132 * sysdeps/mach/hurd/lutimes.c: Likewise.
10133
101342006-10-09 Ulrich Drepper <drepper@redhat.com>
10135 Jakub Jelinek <jakub@redhat.com>
10136
10137 Implement reference counting of scope records.
10138 * elf/dl-close.c (_dl_close): Remove all scopes from removed objects
10139 from the list in objects which remain. Always allocate new scope
10140 record.
10141 * elf/dl-open.c (dl_open_worker): When growing array for scopes,
10142 don't resize, allocate a new one.
10143 * elf/dl-runtime.c: Update reference counters before using a scope
10144 array.
10145 * elf/dl-sym.c: Likewise.
10146 * elf/dl-libc.c: Adjust for l_scope name change.
10147 * elf/dl-load.c: Likewise.
10148 * elf/dl-object.c: Likewise.
10149 * elf/rtld.c: Likewise.
10150 * include/link.h: Include <rtld-lowlevel.h>. Define struct
10151 r_scoperec. Replace r_scope with pointer to r_scoperec structure.
10152 Add l_scoperec_lock.
10153 * sysdeps/generic/ldsodefs.h: Include <rtld-lowlevel.h>.
10154 * sysdeps/generic/rtld-lowlevel.h: New file.
10155
10156 * include/atomic.h: Rename atomic_and to atomic_and_val and
10157 atomic_or to atomic_or_val. Define new macros atomic_and and
10158 atomic_or which do not return values.
10159 * sysdeps/x86_64/bits/atomic.h: Define atomic_and and atomic_or.
10160 Various cleanups.
10161 * sysdeps/i386/i486/bits/atomic.h: Likewise.
10162
10163 * po/sv.po: Update from translation team.
10164
101652006-10-07 Ulrich Drepper <drepper@redhat.com>
10166
10167 * Versions.def: Add GLIBC_2.6 to libpthread.
10168
10169 * include/shlib-compat.h (SHLIB_COMPAT): Expand parameters before use.
10170 (versioned_symbol): Likewise.
10171 (compat_symbol): Likewise.
10172
10173 * po/tr.po: Update from translation team.
feb87ad1 10174
4df92d57
UD
101752006-10-06 Ulrich Drepper <drepper@redhat.com>
10176
11bf311e
UD
10177 * nis/Banner: Removed. It's been integral part forever and the
10178 author info is incomplete anyway.
10179 * libio/Banner: Likewise.
10180
4df92d57
UD
10181 * nis/nis_table.c (nis_list): If __follow_path fails in the new
10182 code, make sure the nis_freeresult call doesn't crash and that the
10183 result is reported correctly.
10184
68361572
UD
101852006-09-27 Jakub Jelinek <jakub@redhat.com>
10186
10187 * nis/nis_table.c (nis_list): Handle FOLLOW_PATH | ALL_RESULTS
10188 when callback is NULL.
10189
10190 * nis/Versions (libnss_nisplus): Add
10191 _nss_nisplus_initgroups_dyn@@GLIBC_PRIVATE.
10192 * nis/Makefile (libnss_nisplus-routines): Add nisplus-initgroups.
10193 * nis/nss_nisplus/nisplus-grp.c (tablename_val, tablename_len,
10194 _nss_create_tablename): Rename to...
10195 (grp_tablename_val, grp_tablename_len, _nss_grp_create_tablename):
10196 ... these. No longer static.
10197 (internal_setgrent): Adjust users.
10198 (_nss_nisplus_getgrnam_r, _nss_nisplus_getgrgid_r): Likewise.
10199 Don't use locking around _nss_grp_create_tablename call.
10200 * nis/nss_nisplus/nisplus-initgroups.c: New file.
10201
11bf311e
UD
102022006-10-06 Ulrich Drepper <drepper@redhat.com>
10203
10204 * version.h (VERSION): Bump to 2.5.90 for new development tree.
10205
3a4e0609
UD
102062006-10-06 Andreas Jaeger <aj@suse.de>
10207
10208 * include/features.h (__GLIBC_MINOR__): It's glibc 2.5 now.
10209
102102006-10-06 Ulrich Drepper <drepper@redhat.com>
10211
10212 * po/pl.po: Update from translation team.
10213
10214 * nscd/nscd.c (main): Fix typo in message.
10215 Patch by Jakub Bogsz <qboosh@pld-linux.org>.
10216
97e57dee
UD
102172006-10-02 Jakub Jelinek <jakub@redhat.com>
10218
10219 [BZ #3291]
10220 * sysdeps/unix/sysv/linux/sparc/sparc64/pause.c: Include
10221 errno.h, signal.h, unistd.h and sysdep-cancel.h.
10222 (__sigprocmask): Define.
10223
768027a4
UD
102242006-10-02 Ulrich Drepper <drepper@redhat.com>
10225
10226 * elf/rtld.c (dl_main): Don't use prelinking if LD_DYNAMIC_WEAK is
10227 used.
10228
0b25a49a
UD
102292006-10-02 Jakub Jelinek <jakub@redhat.com>
10230
10231 * nscd/mem.c (mempool_alloc): Round array size to 16 bytes
10232 in oldtotal and newtotal calculation.
10233 * nscd/nscd-client.h (struct mapped_database): Add datasize
10234 field.
10235 * nscd/nscd_helper.c (get_mapping): Initialize datasize field.
10236 (__nscd_get_map_ref): Get a new mapping even if mapping's data_size
10237 increased.
10238 (__nscd_cache_search): Add checks to make sure we never reference
10239 data beyond the current mapping.
10240
a1286745
UD
102412006-10-02 Dmitry V. Levin <ldv@altlinux.org>
10242
d4ed7561
UD
10243 * sysdeps/posix/getaddrinfo.c (match_prefix): Make mask and val
10244 variables const to avoid compiler warnings.
10245
a1286745
UD
10246 * io/fts.c (fts_close): Remove redundant checks.
10247 (fts_build): Likewise.
10248 (fts_palloc): Likewise.
10249
10250 * manual/message.texi (Advanced gettext functions,
10251 Using gettextized software): Fix typos.
10252
f01e4069
UD
102532006-09-30 Ulrich Drepper <drepper@redhat.com>
10254
10255 * posix/glob.c (glob_in_dir): Add some comments and asserts to
10256 explain why there are no leaks.
10257
154619b5
UD
102582006-09-29 Ulrich Drepper <drepper@redhat.com>
10259
690c3947
UD
10260 * libio/wmemstream.c: Include <wchar.h>.
10261 * libio/bug-wmemstream1.c: Likewise.
10262 * libio/tst-wmemstream1.c: Likewise.
10263 * libio/tst-wmemstream2.c: Likewise.
10264
88cc61e8
UD
10265 * version.h (RELEASE): Bump to 2.5.
10266 * README: Regenerated.
10267
a70c18b0
UD
10268 * locale/iso-3166.def: Add Aaland Islands and Montenegro.
10269
154619b5
UD
10270 [BZ #3273]
10271 * nscd/nscd_initgroups.c (__nscd_getgrouplist): It is OK to have
10272 found no group members.
10273 Patch by Petr Baudis.
10274
102752006-09-29 Jakub Jelinek <jakub@redhat.com>
10276
10277 * elf/rtld.c (_dl_start_final): If not USE___THREAD, don't
10278 assert bootstrap_map.l_tls_modid is zero.
10279 (_dl_start): Initialize bootstrap_map.l_tls_modid to 0
10280 if USE___THREAD.
10281
1c31aa79
UD
102822006-09-27 Ulrich Drepper <drepper@redhat.com>
10283
10284 * libio/stdio.h: Move open_wmemstream prototype to ...
10285 * wcsmbs/wchar.h: ... here.
10286
f1122ec3
UD
102872006-09-25 Jakub Jelinek <jakub@redhat.com>
10288
10289 [BZ #3252]
10290 * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat): Handle only
10291 fchownat syscall and __ASSUME_LCHOWN_SYSCALL case inline, call
10292 __{,l}chown to handle the rest.
10293 * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Handle only
10294 fchownat syscall and __ASSUME_32BITUIDS case inline, call
10295 __{,l}chown to handle the rest.
10296 * sysdeps/unix/sysv/linux/sparc/sparc32/fchownat.c: Include
10297 i386/fchownat.c.
10298 * sysdeps/unix/sysv/linux/s390/s390-32/fchownat.c: Likewise.
10299 * sysdeps/unix/sysv/linux/sh/fchownat.c: Likewise.
10300
10301 [BZ #3253]
10302 * posix/glob.c (glob_in_dir): Don't alloca one struct globlink at a
10303 time, rather allocate increasingly bigger arrays of pointers, if
10304 possible with alloca, if too large with malloc.
10305
103062006-09-24 Jakub Jelinek <jakub@redhat.com>
10307
10308 * sysdeps/powerpc/fpu/libm-test-ulps: Updated.
10309
10310 * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Fix 2 typos.
10311
457b559e
UD
103122006-09-24 Ulrich Drepper <drepper@redhat.com>
10313
10314 * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Implement rule 4,
10315 home addresses.
10316 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Recognize
10317 IFA_F_HOMEADDRESS flag for interfaces.
10318 * include/ifaddrs.h (struct in6addrinfo): Define
10319 in6ai_homeaddress.
10320
4a132246
UD
103212006-09-21 Jakub Jelinek <jakub@redhat.com>
10322
10323 [BZ #3225]
10324 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (PTR_MANGLE3,
10325 PTR_DEMANGLE3): Define.
10326 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h (PTR_MANGLE3,
10327 PTR_DEMANGLE3): Likewise.
10328 * sysdeps/powerpc/powerpc32/__longjmp-common.S (__longjmp): Use them.
10329 * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp):
10330 Likewise.
10331 * sysdeps/powerpc/powerpc64/__longjmp-common.S (__longjmp): Likewise.
10332
c69136ae
UD
103332006-09-20 Jakub Jelinek <jakub@redhat.com>
10334
10335 * po/libc.pot: Regenerated.
10336 * po/be.po: Updated.
10337 * po/ca.po: Likewise.
10338 * po/cs.po: Likewise.
10339 * po/da.po: Likewise.
10340 * po/de.po: Likewise.
10341 * po/el.po: Likewise.
10342 * po/en_GB.po: Likewise.
10343 * po/es.po: Likewise.
10344 * po/fi.po: Likewise.
10345 * po/fr.po: Likewise.
10346 * po/gl.po: Likewise.
10347 * po/hr.po: Likewise.
10348 * po/hu.po: Likewise.
10349 * po/ja.po: Likewise.
10350 * po/ko.po: Likewise.
10351 * po/nb.po: Likewise.
10352 * po/nl.po: Likewise.
10353 * po/pl.po: Likewise.
10354 * po/pt_BR.po: Likewise.
10355 * po/ru.po: Likewise.
10356 * po/rw.po: Likewise.
10357 * po/sk.po: Likewise.
10358 * po/sv.po: Likewise.
10359 * po/tr.po: Likewise.
10360 * po/zh_CN.po: Likewise.
10361 * po/zh_TW.po: Likewise.
10362
10363 [BZ #3137]
10364 * iconv/iconv_prog.c (main): Fix spelling in error message.
10365 * iconv/iconvconfig.c (main): Likewise.
10366 * locale/programs/ld-collate.c (handle_ellipsis): Likewise.
10367 * locale/programs/ld-ctype.c (charclass_symbolic_ellipsis): Likewise.
10368 * locale/programs/localedef.c (main): Likewise.
10369 * locale/programs/repertoire.c (repertoire_read): Likewise.
10370 * timezone/zdump.c (main): Likewise.
10371 * nscd/connections.c (handle_request): Fix spelling in log message.
10372 Patch by Malcolm Parsons <malcolm.parsons@gmail.com>.
10373
83b3108c
UD
103742006-09-20 Ulrich Drepper <drepper@redhat.com>
10375
10376 * inet/inet6_option.c: Also emit linker warnings for the RFC 2292
10377 interfaces.
10378
89210b4c
AJ
103792006-09-20 Andreas Jaeger <aj@suse.de>
10380
10381 * math/libm-test.inc (lrint_test_upward): Fix typo.
10382
6624dbc0
UD
103832006-06-17 Joseph S. Myers <joseph@codesourcery.com>
10384
10385 [BZ #2592]
10386 * math/libm-test.inc (lrint_test_tonearest): New function.
10387 (lrint_test_towardzero): New function.
10388 (lrint_test_downward): New function.
10389 (lrint_test_upward): New function.
10390 (main): Run these new tests.
10391 * sysdeps/ieee754/dbl-64/s_llrint.c (__llrint): Correct rounding
10392 of values near to 0.
10393 (two52): Use double not long double.
10394 * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Likewise.
10395 * sysdeps/ieee754/flt-32/s_llrintf.c (__llrintf): Likewise.
10396 (two23): Use float not double.
10397 * sysdeps/ieee754/flt-32/s_lrintf.c (__lrintf): Likewise.
10398 (two23): Use float not double.
10399 * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl): Likewise.
10400 * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Likewise.
10401 * sysdeps/ieee754/ldbl-96/s_llrintl.c (__llrintl): Likewise.
10402 * sysdeps/ieee754/ldbl-96/s_lrintl.c (__lrintl): Likewise.
10403
60cb50c7
UD
104042006-09-20 Martin Schwidefsky <schwidefsky@de.ibm.com>
10405
10406 * sysdeps/unix/sysv/linux/s390/s390-32/makecontext.c (__makecontext):
10407 Cast sp to unsigned long to avoid compiler warning.
10408 Use __makecontext_ret function instead of a trampoline on the stack.
10409 (__makecontext_ret): New function.
10410 * sysdeps/unix/sysv/linux/s390/s390-64/makecontext.c: Likewise.
10411
33315ced
UD
104122006-09-19 Jakub Jelinek <jakub@redhat.com>
10413
10414 * elf/dl-cache.c (HWCAP_CHECK): If _DL_PLATFORMS_COUNT, but
10415 platform == -1, reject any libs with non-zero _DL_HWCAP_PLATFORM
10416 bits.
10417
1ee2ff20
UD
104182006-09-19 Ulrich Drepper <drepper@redhat.com>
10419
10420 * elf/dl-close.c (_dl_close): If dependency is not unloaded make
10421 sure no reference to the unloaded map's search list remains in the
10422 dependency's scope.
10423
104242006-09-16 Jakub Jelinek <jakub@redhat.com>
10425
10426 * elf/Makefile: Add rules to build and run unload7 test.
10427 * elf/unload7.c: New test.
10428 * elf/unload7mod1.c: New file.
10429 * elf/unload7mod2.c: New file.
10430
0466106e
UD
104312006-09-18 Jakub Jelinek <jakub@redhat.com>
10432
10433 * sysdeps/unix/sysv/linux/sys/ptrace.h (PT_GETEVENTMSG): Fix pasto.
10434 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h (PTRACE_SETOPTIONS,
10435 PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
10436 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h (PTRACE_SETOPTIONS,
10437 PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Likewise.
10438 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h (PTRACE_SETOPTIONS,
10439 PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Likewise.
10440 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h (PTRACE_SETOPTIONS,
10441 PTRACE_GETEVENTMSG): Likewise.
10442 (PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Change to the arch independent
10443 values.
10444
9c316a45
UD
104452006-09-17 Mike Frysinger <vapier@gentoo.org>
10446
0466106e
UD
10447 * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_SETOPTIONS,
10448 PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
10449 * sysdeps/unix/sysv/linux/ptrace.c (ptrace): Check PTRACE_SETOPTIONS,
10450 PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO and PTRACE_SETSIGINFO.
9c316a45
UD
10451
104522006-09-16 Jakub Jelinek <jakub@redhat.com>
10453
10454 * sysdeps/powerpc/powerpc32/register-dump.h (register_dump): Don't
10455 write '\0' to the fd.
10456 * sysdeps/mach/hurd/powerpc/register-dump.h (register_dump): Likewise.
10457 * sysdeps/powerpc/powerpc64/register-dump.h (register_dump): Likewise.
10458 Change regs to unsigned long pointer from unsigned int, fix fscr
10459 offset.
10460
fb146a76
UD
104612006-09-14 Jakub Jelinek <jakub@redhat.com>
10462
10463 * io/Makefile (CFLAGS-fstatat.c): Set.
10464 (CFLAGS-fstatat64.c): Likewise.
10465 (CFLAGS-mknodat.c): Likewise.
10466
10467 * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Comment fixes.
10468 * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
10469 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Rewritten.
10470 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Rewritten.
10471
4cd3633d
UD
104722006-09-14 Jakub Jelinek <jakub@redhat.com>
10473 Steven Munroe <sjmunroe@us.ibm.com>
fb146a76 10474
4cd3633d
UD
10475 * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add 4 new cap
10476 names to the beginning. Rename "cell" to "cellbe".
10477 (_dl_powerpc_platforms): New.
10478 * sysdeps/powerpc/dl-procinfo.h (_DL_HWCAP_FIRST): Decrease.
10479 (HWCAP_IMPORTANT): Remove power{4,5,5+} and cell.
10480 (_DL_PLATFORMS_COUNT, _DL_FIRST_PLATFORM): Define.
10481 (_DL_HWCAP_PLATFORM): Define to new mask.
10482 (_dl_platform_string, _dl_string_platform): New functions.
10483 * sysdeps/powerpc/sysdep.h (PPC_FEATURE_BOOKE, PPC_FEATURE_SMT,
10484 PPC_FEATURE_ICACHE_SNOOP, PPC_FEATURE_ARCH_2_05): Define.
10485
30aa5785
UD
104862006-09-12 Jakub Jelinek <jakub@redhat.com>
10487
10488 [BZ #2526]
10489 * README.libm: Fix a thinko in sqrt algorithm description.
10490
10491 [BZ #3143]
10492 * manual/string.texi (argz_delete): Fix prototype.
10493 Patch by <alpt@freaknet.org>.
10494
104952006-08-26 Joseph Myers <joseph@codesourcery.com>
10496
10497 [BZ #3138]
10498 * io/test-lfs.c (do_prepare): Give name_len type size_t.
10499 * io/tst-fcntl.c (do_prepare): Likewise.
10500 * posix/tst-exec.c (do_prepare): Likewise.
10501 * posix/tst-preadwrite.c (do_prepare): Likewise.
10502 * posix/tst-spawn.c (do_prepare): Likewise.
10503 * posix/tst-truncate.c (do_prepare): Likewise.
10504 * rt/tst-aio.c (do_prepare): Likewise.
10505 * rt/tst-aio64.c (do_prepare): Likewise.
10506 * stdlib/test-canon2.c (do_prepare): Give test_dir_len type
10507 size_t.
10508
d26d01d1
UD
105092006-09-09 Ulrich Drepper <drepper@redhat.com>
10510
41aba3d7
UD
10511 [BZ #2821]
10512 * time/mktime.c (guess_time_tm): Fix overflow detection.
10513 * time/Makefile (tests): Add bug-mktime1.
10514 * time/bug-mktime1.c: New file.
10515
eaa51b47 10516 [BZ #3189, #3188]
d26d01d1 10517 * misc/sys/mman.h (remap_file_pages): Make available for _GNU_SOURCE.
eaa51b47 10518 (mremap): Likewise.
d26d01d1 10519
ba40cc15
UD
105202006-09-07 Jakub Jelinek <jakub@redhat.com>
10521
2b6a801e
UD
10522 [BZ #1006]
10523 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela):
10524 Ensure relocation doesn't clobber any bits outside of the
10525 immediate field for R_SPARC_TLS_LE_HIX22, R_SPARC_WDISP30,
10526 R_SPARC_HI22 and R_SPARC_H44.
10527
469615bd
UD
10528 [BZ #2775]
10529 * malloc/malloc.c (sYSMALLOc): Only call grow_heap if
10530 (long) (MINSIZE + nb - old_size) is positive.
10531
10532 * malloc/arena.c (grow_heap): When growing bail even if new_size
10533 is negative.
10534
ba40cc15
UD
10535 [BZ #3155]
10536 * sysdeps/powerpc/powerpc32/fpu/s_lrint.S (__lrint): Don't access
10537 stack below r1.
10538
243b9ac1
UD
105392006-09-06 Jakub Jelinek <jakub@redhat.com>
10540
ba40cc15
UD
10541 * posix/regex_internal.c (re_string_reconstruct): Handle
10542 offset < pstr->valid_raw_len && pstr->offsets_needed case.
10543 Ensure no bytes read before raw_mbs array. Pass a saved copy of
10544 pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
10545 re_string_context_at.
10546 * posix/Makefile: Add rules to build and run bug-regex26 test.
10547 * posix/bug-regex26.c: New test.
10548
243b9ac1
UD
10549 * locale/programs/ld-collate.c (collate_read): Goto sym_equiv_free
10550 rather than col_sym_free. Move seqp declaration earlier.
10551
10552 * resolv/gai_suspend.c (gai_suspend): Make sure result is initialized.
10553
d052233c
UD
105542006-09-05 Jakub Jelinek <jakub@redhat.com>
10555
10556 * nscd/initgrcache.c (addinitgroupsX): Move any_success
10557 decl before first goto out.
10558
71213dc2
UD
105592006-09-04 Jakub Jelinek <jakub@redhat.com>
10560
10561 * Makerules (shlib.lds): If have-hash-style, put .hash section
10562 at the end of the RO segment.
10563
105642006-09-04 Ulrich Drepper <drepper@redhat.com>
10565
10566 * elf/do-lookup.h (do_lookup_x): Initialize symidx in case the new
10567 style hash table format is used.
10568
03eeff83
UD
105692006-09-04 Jakub Jelinek <jakub@redhat.com>
10570
10571 * resolv/res_mkquery.c (res_nmkquery): Set hp->id to statp->id after
10572 randomization rather than before.
10573 * resolv/res_init.c (res_randomid): Don't call gettimeofday here.
10574
b80770b2
UD
105752006-08-31 Jakub Jelinek <jakub@redhat.com>
10576
ba40cc15 10577 * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Add ld.so.
b80770b2
UD
10578
10579 * malloc/malloc.c (_int_malloc): Use full list insert and not
10580 shortcut which assumes the list is empty for large requests
10581 too.
10582
10583 * elf/tst-addr1.c (do_test): Allow i.dli_sname "_IO_printf".
10584
99ea5991
UD
105852006-08-30 Jakub Jelinek <jakub@redhat.com>
10586
10587 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (splice): Add offin
10588 and offout arguments to the prototype.
10589 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (splice): Likewise.
10590 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h (splice): Likewise.
10591 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (splice): Likewise.
10592 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h (splice): Likewise.
10593 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h (splice): Likewise.
10594 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (splice): Likewise.
10595 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h (splice): Likewise.
10596 * sysdeps/unix/sysv/linux/syscalls.list (splice): Adjust args string.
10597
4004a0a5
UD
105982006-08-28 Ulrich Drepper <drepper@redhat.com>
10599
950398e1
UD
10600 * elf/dl-load.c (_dl_init_paths): Expand DSTs.
10601
4004a0a5
UD
10602 * elf/dl-open.c (dl_open_worker): Allow $LIB and $PLATFORM in
10603 dlopen parameters.
10604
6e310111
UD
106052006-08-28 Jakub Jelinek <jakub@redhat.com>
10606
10607 * inet/getnameinfo.c (getnameinfo): For AF_INET, check errno
10608 only if herrno is NETDB_INTERNAL. Handle errors other than
10609 ERANGE outside of the loops, handle TRY_AGAIN.
10610
10611 * locale/programs/ld-ctype.c (translit_flatten): Issue error
10612 if other's ctype category was missing.
10613 * locale/programs/ld-collate.c (collate_read): Return if
10614 copy_locale's collate category is missing.
10615
07014fca
UD
106162006-08-27 Ulrich Drepper <drepper@redhat.com>
10617
10618 [BZ #2684]
10619 * malloc/malloc.c (public_rEALLOc): Try harder by using other
10620 arenas if allocation failed.
10621 Patch mostly by Jan Edler <jan.edler@indexengines.com>.
10622
71663747
UD
106232006-08-26 Ulrich Drepper <drepper@redhat.com>
10624
41999a1a
UD
10625 * malloc/malloc.c (bin_at): Rewrite to be more clear and to not
10626 waste bins[0..1].
10627 (malloc_state): Reduce bins size by 2.
10628 (_int_malloc): Fix test for large enough buffer for early termination.
10629 When no unsorted block matches perfectly and an exiting block has
10630 to be split, use full list insert and not shortcut which assumes
10631 the list is empty.
10632
71663747
UD
10633 * locale/programs/ld-ctype.c (ctype_read): Better patch for read
10634 failure.
10635
93b53ca2
UD
106362006-08-24 Ulrich Drepper <drepper@redhat.com>
10637
f5a82772
UD
10638 * locale/programs/ld-ctype.c (ctype_read): If CTYPE is NULL, don't
10639 do anything.
10640
2ac9ca73
UD
10641 * sysdeps/generic/ldsodefs.h (DL_ADDR_SYM_MATCH): For undefined
10642 symbol require exact match (these are PLTs).
10643 * sysdeps/unix/sysv/linux/powerpc/powerpc64/ldsodefs.h
10644 (_dl_ppc64_addr_sym_match): Likewise.
10645
93b53ca2
UD
10646 [BZ #2683]
10647 * elf/dl-addr.c (_dl_addr): Don't ignore all undefined symbols.
10648 If symbol has a value use it.
10649 * elf/tst-dladdr1.c: New file.
10650 * elf/Makefile: Add rules to build and run tst-addr1.
10651
7463d5cb
UD
106522006-08-24 Jakub Jelinek <jakub@redhat.com>
10653
10654 * malloc/malloc.c (sYSMALLOc): Avoid infinite loop if MMAP
10655 keeps failing and heap growth or new heap creation isn't
10656 successful either.
10657 * malloc/tst-malloc.c (main): Add new tests.
10658
542a6f62
UD
106592006-08-24 Ulrich Drepper <drepper@redhat.com>
10660
10661 [BZ #2734]
10662 * sysdeps/i386/bits/byteswap.h (__bswap_32): Use same conditions
10663 as in the x86-64 code to use bswap.
10664
aa2c6b6d
UD
106652006-05-21 Joseph S. Myers <joseph@codesourcery.com>
10666
24982798 10667 [BZ #2680]
aa2c6b6d
UD
10668 * posix/unistd.h (getlogin_r): Condition on __USE_POSIX199506, not
10669 __USE_UNIX98.
10670 * posix/bits/unistd.h: Likewise.
10671
59776aef
UD
106722006-05-15 Mike Frysinger <vapier@gentoo.org>
10673
10674 [BZ #2751]
10675 * string/strchr.c: Add cast to avoid warning.
10676
e404fb16
UD
106772006-08-21 Ulrich Drepper <drepper@redhat.com>
10678
10679 * malloc/malloc.c (DEFAULT_MMAP_THRESHOLD_MAX): For 32-bit
bd2c2341 10680 platforms define as 512K. For 64-bit platforms as 32MB. The lower
e404fb16
UD
10681 limit is needed to avoid the exploding of the address space
10682 requirement for secondary heaps.
10683 * malloc/arena.c (HEAP_MAX_SIZE): Define using
10684 DEFAULT_MMAP_THRESHOLD_MAX if it is defined.
10685
376e973a
UD
106862006-07-30 Joseph S. Myers <joseph@codesourcery.com>
10687
10688 [BZ #3018]
10689 * Makerules (depfiles): Handle extra-test-objs the same as
10690 extra-objs.
10691 (common-mostlyclean): Likewise.
10692 * dlfcn/Makefile (extra-objs): Add modules to extra-test-objs
10693 instead.
10694 * elf/Makefile (extra-objs): Likewise.
10695 * stdlib/Makefile (extra-objs): Likewise.
10696
240c62a7
UD
106972006-08-14 Eric Blake <ebb9@byu.net>
10698
10699 [BZ #3044]
10700 * misc/error.h: Assume C89 or better.
10701 * misc/error.c: Likewise.
10702
3997b7c4
UD
107032006-08-21 Ulrich Drepper <drepper@redhat.com>
10704
10705 [BZ #3040]
10706 * sysdeps/unix/sysv/linux/openat.c: Fix compilation if
10707 __ASSUME_ATFCTS is defined.
10708
8a6537b0
UD
107092006-08-19 Ulrich Drepper <drepper@redhat.com>
10710
72320021
UD
10711 * malloc/malloc.c (_int_malloc): Limit number of unsorted blocks
10712 to sort in each call.
10713
ed3691ba
UD
10714 * nis/nss_nis/nis-service.c (internal_nis_getservent_r): . If map
10715 is empty simply return and use next service.
10716 * nis/nss_nis/nis-rpc.c (internal_nis_getrpcent_r): Likewise.
10717
8a6537b0
UD
10718 * locale/programs/charmap.c (charmap_read): Add new parameter. It
10719 tells us when not finding a charmap file is an error.
10720 * locale/programs/charmap.h: Adjust charmap_read prototype.
10721 * iconv/iconv_prog.c (main): Tell charmap_read it's no error if we
10722 cannot find a charmap.
10723 * locale/programs/localedef.c (main): Adjust charmap_read call.
10724
ad2a3c07
UD
107252006-08-15 Jakub Jelinek <jakub@redhat.com>
10726
10727 * sysdeps/unix/sysv/linux/sparc/sparc64/pause.c: Use
10728 sysdeps/posix/pause.c implementation instead.
10729
107302006-08-09 Jakub Jelinek <jakub@redhat.com>
10731
10732 * sysdeps/unix/nice.c (nice): Transform EACCES errno from setpriority
10733 to EPERM.
10734
f17efcb4
UD
107352006-08-13 Andreas Schwab <schwab@suse.de>
10736
10737 * sysdeps/powerpc/powerpc32/dl-trampoline.S (_dl_runtime_resolve):
10738 Don't clobber caller's LRSAVE.
10739 (_dl_prof_resolve): Likewise.
10740
107b8a92
UD
107412006-08-14 Ulrich Drepper <drepper@redhat.com>
10742
10743 [BZ #1996]
10744 * libio/memstream.c (open_memstream): Allocate initial buffer with
10745 calloc.
10746 * libio/wmemstream.c (open_wmemstream): Likewise.
10747 * libio/strops.c: Pretty printing.
10748 (_IO_str_overflow): Clear uninitialized part of the new buffer.
10749 (enlarge_userbuf): New function.
10750 (_IO_str_seekoff): Call it if seek position is larger than current
10751 buffer.
10752 * libio/wstrops.c: Likewise.
10753 * libio/vasprintf.c: Add comment as to why we do not have to use
10754 calloc instead of malloc to allocate initial buffer.
10755 * libio/Makefile (tests): Add bug-memstream1 and bug-wmemstream1.
10756 * libio/bug-memstream1.c: New file.
10757 * libio/bug-wmemstream1.c: New file.
10758
fa3ac53f
UD
107592006-08-13 Ulrich Drepper <drepper@redhat.com>
10760
89993734
UD
10761 * libio/wstrops.c: Remove dead macro definitions and comments.
10762 * libio/strops.c: Likewise.
10763
fa3ac53f
UD
10764 [BZ #2764]
10765 * login/utmpname.c (__utmpname): Remove unnecessary test.
10766
f99ed760
UD
107672006-06-08 Joseph Myers <jsm28@gcc.gnu.org>
10768
10769 [BZ #2832]
10770 * math/gen-libm-test.pl (clean_up_number): Do not remove trailing
10771 0s from integers.
10772
107732006-08-13 Ulrich Drepper <drepper@redhat.com>
10774
10775 [BZ #2987]
10776 * sysdeps/unix/sysv/linux/clock_settime.c: Add code to use syscall
10777 for CPU clocks.
10778 * sysdeps/unix/clock_settime.c: Add support for platform-specific
10779 setting of CPU clocks.
10780
4c3f81d0
UD
107812006-06-23 Paul Eggert <eggert@cs.ucla.edu>
10782
10783 [BZ #2841]
10784 * sysdeps/generic/stdint.h (UINT8_C, UINT16_C): Don't append 'U',
10785 since C99 requires the result to promote to 'int' when uint_least8_t
10786 and uint_least16_t promote to 'int'.
10787
cd8e60ce
UD
107882006-08-12 Ulrich Drepper <drepper@redhat.com>
10789
9a5c46e8
UD
10790 [BZ #3013]
10791 * locale/programs/ld-ctype.c (ctype_output): Adjust alignments, fix
10792 lenght of one output field, correct bitmask creation.
10793 * locale/programs/ld-time.c: Add alignment.
10794
cd8e60ce
UD
10795 [BZ #2997]
10796 * misc/error.c: Add space between program name and message if file
10797 name is missing.
10798
9a528884
UD
107992006-08-03 Eric Blake <ebb9@byu.net>
10800
10801 [BZ #2998]
10802 * misc/error.c (error_tail) [_LIBC]: Avoid invalid free.
10803
1d05c2fb
UD
108042006-08-09 Ulrich Drepper <drepper@redhat.com>
10805
0c1c6c6c
UD
10806 * malloc/memusagestat.c: Silence warnings.
10807
1d05c2fb
UD
10808 * malloc/malloc.c: Dynamically size mmap treshold if the program
10809 frees mmaped blocks.
10810 Patch by Valerie Henson and Arjan van de Ven.
10811
2d1e6277
UD
108122006-08-08 Jakub Jelinek <jakub@redhat.com>
10813
be7ffd91
UD
10814 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (O_DIRECT): Protect with
10815 __USE_GNU.
10816
2d1e6277
UD
10817 * stdlib/strtol_l.c (__strtol_ul_max_tab, __strtol_ul_rem_tab,
10818 __strtol_ull_max_tab, __strtol_ull_rem_tab): Declare.
10819 (DEF): Don't put the var into .gnu.linkonce.r.* section.
10820 Only provide var definitions in strtol_l (or for *ull*
10821 in strtoll_l).
10822
10823 * stdio-common/bug16.c (tests): New array.
10824 (do_tests): Allow the first hexadecimal digit
10825 to be 1, 2, 4 or 8. Do 3 additional tests.
10826
10827 * sysdeps/s390/fpu/libm-test-ulps: Update.
10828
10829 * sysdeps/unix/sysv/linux/s390/s390-32/fchownat.c (fchownat): Use
10830 fchownat syscall if available.
10831 * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat): Likewise.
10832 * sysdeps/unix/sysv/linux/sh/fchownat.c (fchownat): Likewise.
10833 * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Likewise.
10834
d0ccde25
UD
108352006-08-07 Ulrich Drepper <drepper@redhat.com>
10836
10837 * nis/nis_xdr.c: Avoid some function calls.
10838
13a0293d 108392006-08-07 Jakub Jelinek <jakub@redhat.com>
3f7a21a9 10840 Ulrich Drepper <drepper@redhat.com>
13a0293d
UD
10841
10842 * nis/nis_call.c (rec_dirsearch) [case LOWER_NAME]: Don't take
10843 short cut if only one name component is stripped away.
10844
bd1ebae0
UD
108452006-08-07 Ulrich Drepper <drepper@redhat.com>
10846
10847 * nis/nis_call.c: Minor cleanups throughout.
2d1e6277 10848 (rec_dirsearch) [case HIGHER_NAME]: Correctly size ndomain array.
bd1ebae0
UD
10849 (first_shoot): Add search_parent_first parameter. Only if it is set
10850 search parent server first.
10851 If directory for table found through cold start cache is not the same
10852 as referenced in the cache, don't use it.
10853 (__nisfind_server): Take additional parameter. Pass it on to
10854 first_shoot.
10855 (__prepare_niscall): Adjust __nisfind_server call.
10856 * nis/rpcsvc/nislib.h: Adjust __nisfind_server prototype.
10857 * nis/nis_table.c: Adjust __nisfind_server call.
10858 * nis/nis_lookup.c: Likewise.
10859 (nis_lookup): Don't loop endlessly if name is reduced to ".".
10860
f1762c0c
UD
108612006-08-03 Ulrich Drepper <drepper@redhat.com>
10862
fe710250
UD
10863 [BZ #2182]
10864 * math/s_cacosh.c: Return values from positive branch.
10865 * math/s_cacoshf.c: Likewise.
10866 * math/s_cacoshl.c: Likewise.
10867
a5852807
UD
10868 [BZ #2883]
10869 * sysvipc/sys/msg.h: Change return value to ssize_t.
10870 * sysdeps/unix/sysv/linux/msgrcv.c: Likewise.
fe710250
UD
10871 * sysvipc/msgrcv.c: Likewise.
10872 * include/sys/msg.h: Likewise.
39571a13 10873
6c215a8d
UD
10874 * grp/initgroups.c (internal_getgrouplist): Remove unnecessary
10875 test introduced in patch for bz #661.
39571a13 10876 (getgrouplist): Simplify code a bit. Don't allocate one additional
f13bfdd0 10877 element for NEWGROUPS.
6c215a8d 10878
9c06eb66
UD
10879 [BZ #2908]
10880 * stdio-common/printf_fphex.c (__printf_fphex): When rounding up
10881 'f', use '1' as leading digit not '\1'.
10882 * stdio-common/Makefile (tests): Add bug16.
10883 * stdio-common/bug16.c: New file.
10884
10885 [BZ #2914]
10886 * sysdeps/unix/sysv/linux/gethostid.c: Don't define OLD_HOSTIDFILE
10887 and don't try to open it. The patch introducing the macro
10888 contained a bug and used the same file name as the new file
10889 instead of using /var/adm/hostid. Nobody complaint so I'm taking
10890 this out completely.
10891
10892 [BZ #2926]
10893 * assert/assert.h: Move cast to void inside ?: to quiet gcc.
10894 Patch by Jerry James <Jerry.James@usu.edu>.
10895
f1762c0c
UD
10896 * rt/Makefile (tests): Add tst-clock2.
10897 * rt/tst-clock2.c: New file.
10898
10899 [BZ #2978]
10900 * resolv/gai_notify.c (__gai_notify_only): Copy memory for thread
10901 function and its parameters and pass it to new thread.
10902 (__gai_notify): Add support for alternative waiting for completion.
10903 * resolv/gai_suspend.c (gai_suspend): Add support for alternative
10904 waiting for completion.
10905 * resolv/getaddrinfo_a.c: Likewise.
10906 * resolv/gai_misc.h (struct waitlist): Don't add cond if alternative
10907 waiting for completion is used.
10908 * resolv/gai_misc.c: Allow overwriting code to start helper thread.
10909 * resolv/gai_cancel.c: Include <gai_misc.h> not "gai_misc.h".
10910 * resolv/gai_error.c: Likewise.
10911 * resolv/gai_sigqueue.c: Likewise.
10912
83ae6b40
RM
109132006-08-02 Thomas Schwinge <tschwinge@gnu.org>
10914
0e4e62fe 10915 * hurd/getdport.c (__getdport): Don't return EBADF; instead set
f1762c0c 10916 errno to EBADF and return MACH_PORT_NULL.
83ae6b40 10917
82ee37c5
UD
109182006-06-23 Joseph Myers <joseph@codesourcery.com>
10919
10920 [BZ #2980]
f1762c0c 10921 * posix/Makefile (CFLAGS-waitid.c): Add -fasynchronous-unwind-tables.
82ee37c5
UD
10922
109232006-08-02 Ulrich Drepper <drepper@redhat.com>
10924
10925 * elf/dl-addr.c (_dl_addr): If GNU-style hash tables are present,
10926 walk them instead of the symbol table.
10927
7bb1b2c9
UD
109282006-08-01 Ulrich Drepper <drepper@redhat.com>
10929
f13bfdd0 10930 [BZ #2098]
fbbc73b3
UD
10931 * nscd/initgrcache.c (addinitgroupsX): Judge successful lookups by
10932 status of NSS calls, not the number of returned entries.
10933
a4518922
UD
10934 * sysdeps/unix/sysv/linux/syscalls.list: Remove add_key,
10935 request_key, keyctl.
7bb1b2c9 10936
b06e7e9a
UD
109372006-07-31 Ulrich Drepper <drepper@redhat.com>
10938
10939 * sysdeps/unix/sysv/linux/dl-osinfo.h: Remove unnecessary include.
10940
f1227969
UD
109412006-07-16 Jeff Bailey <jbailey@ubuntu.com>
10942
10943 * elf/tst-auditmod1.c: Fix typo in #error.
10944
82ae2712
UD
109452006-07-31 Ulrich Drepper <drepper@redhat.com>
10946
f1227969
UD
10947 * elf/tst-auditmod1.c: Remove code for unsupported architectures.
10948
82ae2712
UD
10949 * iconvdata/run-iconv-test.sh: Run cmp in C locale.
10950
a1260d92
UD
109512006-07-20 Adam Nemet <anemet@caviumnetworks.com>
10952
10953 * stdlib/test-canon.c (do_test): Close fd before unlinking file so
b06e7e9a 10954 that the directory is empty even on non-POSIX filesystems.
a1260d92 10955
d2de41fe
UD
109562006-07-31 Ulrich Drepper <drepper@redhat.com>
10957
13669f2c
UD
10958 * elf/dl-open.c (dl_open_worker): Add branch prediction.
10959
d2de41fe
UD
10960 * nis/nss_compat/compat-grp.c: Avoid unnecessary setgrent calls into
10961 the backend NSS module. If backend setgrent call failed, don't have
10962 internal_setgrent fail. Just remember this until it is needed.
10963 * nis/nss_compat/compat-pwd.c: Likewise.
10964 * nis/nss_compat/compat-spwd.c: Likewise.
10965
b894c2ea
RM
109662006-07-30 Roland McGrath <roland@redhat.com>
10967
10968 * sysdeps/unix/sysv/linux/ia64/sigsuspend.c: File removed.
10969 * sysdeps/unix/sysv/linux/x86_64/sigsuspend.c: File removed.
10970 * sysdeps/unix/sysv/linux/s390/s390-64/sigsuspend.c: File removed.
10971 * sysdeps/unix/sysv/linux/sparc/sparc64/sigsuspend.c: File removed.
10972
10973 * sysdeps/unix/sysv/linux/not-cancel.h (pause_not_cancel): New macro.
10974 (nanosleep_not_cancel): New macro.
10975 (sigsuspend_not_cancel): new macro.
10976 * sysdeps/unix/sysv/linux/sigsuspend.c [__ASSUME_REALTIME_SIGNALS]
10977 (do_sigsuspend): Define as inline.
10978 (__sigsuspend): Always use do_sigsuspend.
10979 [! NO_CANCELLATION] (__sigsuspend_nocancel): New function.
10980 * include/signal.h: Declare __sigsuspend_nocancel.
10981 * sysdeps/posix/pause.c
10982 [! NO_CANCELLATION] (__pause_nocancel): New function.
10983
10984 * include/unistd.h (__pause_nocancel): Add attribute_hidden.
10985 * include/time.h (__nanosleep_nocancel): Likewise.
10986
c10d32c8
UD
109872006-07-30 Ulrich Drepper <drepper@redhat.com>
10988
10989 * locale/programs/localedef.c (add_to_readlist): Rename local
10990 variables to avoid confusion.
10991
10992 * locale/programs/charmap.c (charmap_read): Emit error message if
10993 charmap couldn't be found or read.
10994
6822f056
UD
109952006-07-28 Ulrich Drepper <drepper@redhat.com>
10996
d5ba53f9
UD
10997 * sysdeps/unix/sysv/linux/kernel-features.h: Define
10998 __ASSUME_FUTEX_LOCK_PI.
10999 * include/time.h: Declare __nanosleep_nocancel.
11000 * include/unistd.h: Declare __pause_nocancel.
11001
6822f056
UD
11002 * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Use this instead of
11003 LDFLAGS. Add -lgcc_eh and libc_nonshared (again) to make sure we
11004 get the __stack_chk_fail_local definition when it's needed.
11005
3a975ff5
UD
110062006-07-26 Ulrich Drepper <drepper@redhat.com>
11007
6de1f625
UD
11008 * dlfcn/Makefile: Add rules to build and run bug-atexit3.
11009 * dlfcn/bug-atexit3.c: New file.
11010 * dlfcn/bug-atexit3-lib.cc: New file.
11011
3a975ff5
UD
11012 * dlfcn/dlmopen.c (dlmopen_doit): Don't allow RTLD_GLOBAL to be
11013 used when the namespace is not the base namespace.
11014
a92b1166
UD
110152006-07-26 Gavin Romig-Koch <gavin@redhat.com>
11016
11017 * stdlib/cxa_atexit.c (__new_exitfn_called): New variable.
11018 (__new_exitfn): Bump it in every successful call.
11019 * stdlib/cxa_finalize.c (__cxa_finalize): If destructor registered
11020 more exit handlers, call them right away.
11021 * stdlib/exit.h: Declare __new_exitfn_called.
11022
a08336fb
UD
110232006-07-25 Ulrich Drepper <drepper@redhat.com>
11024
bd3754dc
UD
11025 * stdlib/cxa_finalize.c (__cxa_finalize): Fix race condition when
11026 calling registered handler.
11027
a08336fb
UD
11028 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Fix comment.
11029 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
11030 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
11031 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
11032 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
11033 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
11034 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
11035 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
11036
871b9158
UD
110372006-07-10 Ulrich Drepper <drepper@redhat.com>
11038
11039 * elf/dl-lookup.c (dl_new_hash): New functions.
11040 (_dl_lookup_symbol_x): Rename hash to old_hash and don't compute
11041 value here. Compute new-style hash value. Pass new hash value
11042 and reference to variable with the old value to do_lookup_x.
11043 (_dl_setup_hash): If DT_GNU_HASH is defined, use it and not
11044 old-style hash table.
11045 (_dl_debug_bindings): Pass new hash value and reference to variable
11046 with the old value to do_lookup_x.
11047 * elf/do-lookup.h (do_lookup_x): Accept additional parameter with
11048 new-style hash value and change old-style hash value parameter to
11049 be a reference. Reoganize functions to determine whether
11050 new-style hash table is available. Only fall back on old-style
11051 table. If old-style hash value is needed, compute it here.
11052 * elf/dynamic-link.h (elf_get_dynamic_info): Relocate DT_GNU_HASH
11053 entry.
11054 * elf/elf.h: Define SHT_GNU_HASH, DT_GNU_HASH, DT_TLSDEC_PLT,
11055 DT_TLSDEC_GOT. Adjust DT_ADDRNUM.
11056 * include/link.h (struct link_map): Add l_gnu_bitmask_idxbits,
11057 l_gnu_shift, l_gnu_bitmask, l_gnu_buckets and l_gnu_chain_zero.
11058 * Makeconfig: If linker supports --hash-style option add it to all
11059 linker command lines to build DSOs.
11060 * config.make.in: Define have-hash-style.
11061 * configure.in: Test whether linker supports --hash-style option.
11062
11063 * elf/dl-misc.c (_dl_name_match_p): Make MAP parameter const.
11064 * sysdeps/generic/ldsodefs.h: Adjust prototype.
11065
a1f0de82
UD
110662006-06-27 Ulrich Drepper <drepper@redhat.com>
11067
361a3706
UD
11068 * elf/dl-load.c (open_path): Fix test to determine whether DSO is
11069 auditing.
11070
a1f0de82
UD
11071 * elf/dl-load.c (_dl_map_object): Try harder to avoid looking at
11072 RPATH of main map twice.
11073
4259230f
UD
110742006-06-22 Ulrich Drepper <drepper@redhat.com>
11075
11076 * intl/dcigettext.c (DCIGETTEXT): If _nl_find_msg returns -1 don't
11077 look further, return original strings.
11078 (_nl_find_msg): Do not return found translation if the conversion
11079 failed. Either signal the string is unusable or that something went
11080 wrong and the original should be used.
11081
110822006-06-21 Ulrich Drepper <drepper@redhat.com>
11083
11084 * string/_strerror.c (__strerror_r): Add __builtin_expect.
11085
f9b7a98b
UD
110862006-06-14 Jakub Jelinek <jakub@redhat.com>
11087
11088 [BZ #2766]
11089 * misc/insremque.c (insque): Handle prev == NULL.
11090 * misc/Makefile (tests): Add tst-insremque.
11091 * misc/tst-insremque.c: New test.
11092
ac55a25b
UD
110932006-06-17 Ulrich Drepper <drepper@redhat.com>
11094
11095 [BZ #2792]
11096 * elf/dl-deps.c (expand_dst): Rename __cnt variable to not
11097 conflict with DL_DST_REQUIRED.
11098
02f366b3
UD
110992006-06-16 Ulrich Drepper <drepper@redhat.com>
11100
11101 * nis/nis_subr.c (nis_getnames): Fix the implementation to better
11102 match what Solaris does.
11103
9009e8f8
UD
111042006-06-04 Ulrich Drepper <drepper@redhat.com>
11105
1b8373f4
UD
11106 * sysdeps/posix/spawni.c (__spawni): Use local_seteuid and
11107 local_setegid instead of seteuid and setegid.
11108 * sysdeps/generic/local-setxid.h: New file.
11109 * sysdeps/unix/sysv/linux/local-setxid.h: New file.
11110
7231452e
UD
11111 * sysdeps/posix/spawni.c (__spawni): Use non-cancelable interfaces.
11112
9009e8f8 11113 * string/Makefile (tests): Add bug-envz1.
02f366b3 11114 * string/bug-envz1.c: New file.
9009e8f8 11115
33e63e79
UD
111162006-06-02 Jakub Jelinek <jakub@redhat.com>
11117
11118 * posix/regex_internal.c (re_string_skip_chars): If no character has
11119 been converted at all, set *last_wc to WEOF. If mbrtowc failed, set wc
11120 to the byte which couldn't be converted.
11121 (re_string_reconstruct): Don't clear valid_raw_len before calling
11122 re_string_skip_chars. If wc is WEOF after re_string_skip_chars, set
11123 tip_context using re_string_context_at.
11124 * posix/Makefile: Add rules to build and run bug-regex25 test.
11125 * posix/bug-regex25.c: New test.
11126
fdc02996
UD
111272006-06-02 Ryan S. Arnold <rsa@us.ibm.com>
11128
11129 [BZ #2703]
11130 * string/envz.c (envz_strip): Correct erroneously reversed src
11131 and dest parameters to memmove() invocation.
11132
902c4291
UD
111332006-05-30 Jakub Jelinek <jakub@redhat.com>
11134
11135 * nscd/nscd.h (prune_cache): Add fd argument to prototype.
11136 * nscd/nscd.c (parse_opt): Read response from INVALIDATE request
11137 to make sure the database has been already invalidated.
11138 * nscd/cache.c (prune_cache): Add fd argument. Write response to fd
11139 after the cache has been invalidated. Use pthread_mutex_lock rather
11140 than pthread_mutex_trylock if fd != -1.
11141 * nscd/connections.c (invalidate_cache): Add fd argument, write
11142 response to fd if not calling prune_cache, pass fd to prune_cache.
11143 (handle_request): Adjust invalidate_cache caller.
11144 (nscd_run): Pass -1 as fd to prune_cache.
11145
ecc68568
UD
111462006-05-30 Ulrich Drepper <drepper@redhat.com>
11147
11148 * sysdeps/posix/getaddrinfo.c (gaiconf_init): Initialize bits in
11149 the correct place.
11150
9636a217
UD
111512006-05-29 Ulrich Drepper <drepper@redhat.com>
11152
11153 * nscd/nscd.h (struct database_dyn): Add prunelock field.
11154 * nscd/cache.c (prune_cache): Take prunelock before starting the
11155 work. Just return in case it is already taken.
cabfcde1 11156 * nscd/connections.c (dbs): Initialize .prunelock.
9636a217 11157
6bcb494a
UD
111582006-05-25 Ulrich Drepper <drepper@redhat.com>
11159
672d5a63 11160 * nis/nis_removemember.c (nis_removemember): Avoid unnecessary
ecc68568 11161 copying. No need to allocate new array for group members. Just
672d5a63
UD
11162 move the pointers and update the size.
11163
1663b44f
UD
11164 * nis/nis_addmember.c (nis_addmember): Avoid unnecessary copying.
11165 Avoid memory leak in case realloc fails. Simplification for
11166 better code generation.
11167
11168 Avoid deprecation warning because of libc_hidden_proto for
11169 inet6_option_alloc.
11170 * inet/inet6_option.c (option_alloc): Renamed from
11171 inet6_option_alloc. Made static.
9636a217 11172 (inet6_option_alloc): Now a simple wrapper around option_alloc.
1663b44f
UD
11173 (inet6_option_append): Call option_alloc.
11174 * include/netinet/in.h: Remove libc_hidden_proto for
11175 inet6_option_alloc.
11176
6bcb494a
UD
11177 * nis/nis_callback.c (__nis_create_callback): Always call xdr_free
11178 for cleanup when cb!=NULL [Coverity CID 233].
11179
aec6b246
UD
111802006-05-24 Ulrich Drepper <drepper@redhat.com>
11181
07bfff20
UD
11182 [BZ #2693]
11183 * inet/Makefile (routines): Add inet6_opt and inet6_rth.
11184 * inet/Versions (libc, GLIBC_2.5): Add inet6_opt_init,
11185 inet6_opt_append, inet6_opt_finish, inet6_opt_set_val, inet6_opt_next,
11186 inet6_opt_find, inet6_opt_get_val, inet6_rth_space, inet6_rth_init,
11187 inet6_rth_add, inet6_rth_reverse, inet6_rth_segments,
11188 and inet6_rth_getaddr.
11189 * inet/netinet/ip6.h (struct ip6_rthdr0): Make ip6r0_addr a flexible
11190 array.
11191 * inet/netinet/in.h (struct ip6_mtuinfo): Define.
11192 Mark inet6_option_* interfaces as deprecated.
11193 Declare inet6_opt_init, inet6_opt_append, inet6_opt_finish,
11194 inet6_opt_set_val, inet6_opt_next, inet6_opt_find, inet6_opt_get_val,
11195 inet6_rth_space, inet6_rth_init, inet6_rth_add, inet6_rth_reverse,
11196 inet6_rth_segments, and inet6_rth_getaddr.
11197 * inet/inet6_opt.c: New file.
11198 * inet/inet6_rth.c: New file.
11199
11200 * inet/netinet/icmp6.h: Pretty printing.
11201
aec6b246
UD
11202 [BZ #2683]
11203 * elf/dl-addr.c (_dl_addr): Don't match undefined references.
11204
2d571cd1
UD
112052006-05-23 Ulrich Drepper <drepper@redhat.com>
11206
062e719b
UD
11207 * nis/nis_lookup.c (nis_lookup): Use __prepare_niscall instead of
11208 doing it all here. When server does not know the answer do not
11209 fail immediate, try parent first.
11210
2d571cd1
UD
11211 * nis/nis_domain_of_r.c (nis_domain_of_r): Add missing buffer
11212 overflow test.
11213
a17fa610
UD
112142006-05-20 Ulrich Drepper <drepper@redhat.com>
11215
11216 * nis/nis_call.c (__prepare_niscall): New function. Split out
11217 from __do_niscall.
11218 * nis/nis_table.c (__create_ib_request): Renamed from create_ib_request
11219 and exported.
11220 (__follow_path): New function. Split out from nis_list.
11221 * nis/nis_xdr.h: Add libnsl_hidden_proto for _xdr_ib_request and
11222 _xdr_nis_result.
11223 * nis/nis_xdr.c: Add libnsl_hidden_def for _xdr_ib_request and
11224 _xdr_nis_result.
11225 * nis/libnsl.h: Declare __prepare_niscall, __create_ib_request,
11226 and __follow_path.
11227 * nis/Versions: Export __prepare_niscall, __create_ib_request,
11228 __follow_path, __do_niscall3, _xdr_ib_request, and _xdr_nis_result
11229 from libnsl for version GLIBC_PRIVATE.
11230 * nis/nisplus-parser.h: Remove _nss_nisplus_parse_pwent_chk.
11231 Remove entry parameter from _nss_nisplus_parse_pwent and
11232 _nss_nisplus_parse_grent.
11233 * nis/nss_nisplus/nisplus-parser.c: Likewise.
11234 * nis/nss_nisplus/nisplus-pwd.c: Remove support for SETENT_BATCH_READ
11235 again. Rewrite getpwent handling to not use nis_first_entry and
11236 nis_next_entry. Roll out own niscall handling.
11237 * nis/nss_nisplus/nisplus-grp.c: Likewise.
11238
11239 * sunrpc/xdr_rec.c: Fix typo in comment.
11240
429bb183
UD
112412006-05-19 Ulrich Drepper <drepper@redhat.com>
11242
1d4f062a
UD
11243 * nis/nis_call.c (__do_niscall3): Avoid code duplication in error
11244 handling.
11245
101cc598
UD
11246 * nis/nis_callback.c (internal_nis_do_callback): Don't use malloc
11247 to allocate memory for my_pollfd. Better initialization of
11248 cb_is_running. Use TEMP_FAILURE_RETRY.
11249
f50fa10c
UD
11250 * malloc/memusage.sh (memusageso): Add quotes.
11251 (memusagestat): Likewise.
11252 * debug/xtrace.sh (pcprofileso): Likewise.
11253 (pcprofiledump): Likewise.
11254 * debug/Makefile ($(objpfx)xtrace): Use $LIB in SLIBDIR
11255 replacement.
11256 * malloc/Makefile ($(objpfx)memusage): Likewise.
11257
882bfe73
UD
11258 * nis/nis_callback.c (__nis_create_callback): Calls to
11259 svcudp_bufcreate and svctcp_create can fail. Free ->xprt if
11260 asprintf call fails.
11261
429bb183
UD
11262 * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_sendreq): Make sure
11263 no uninitialized memory is passed to sendto.
11264
f90de831
UD
112652006-05-18 Ulrich Drepper <drepper@redhat.com>
11266
11267 * nis/nis_callback.c (__nis_create_callback): Use asprinf instead
11268 of snprintf+strdup. Handle OOM.
11269 * nis/nis_callback.c (__nis_create_callback): Allocate cb and
11270 cb->serv together. Remove now obsolete free calls.
11271 (__nis_destroy_callback): Remove now obsolete free call.
11272
a17fa610 112732006-05-18 David Woodhouse <dwmw2@redhat.com>
6e2a7825
UD
11274
11275 * sysdeps/posix/getaddrinfo.c: Add unique labels to the default
11276 RFC3484 precedence table for fec0::/10 and fc00::/7 (site-local
11277 and ULA respectively). Set precedence for IPv4 address to 10 as
11278 defined in RFC3484 for preferring IPv6.
11279 * posix/gai.conf: Update to match the new default tables.
11280
758b9d7e
UD
112812006-05-18 Jakub Jelinek <jakub@redhat.com>
11282
11283 * nis/nss_compat/compat-pwd.c (internal_setpwent): If nss_set*ent
11284 returned NSS_STATUS_UNAVAIL, still return NSS_STATUS_SUCCESS.
11285 * nis/nss_compat/compat-spwd.c (internal_setspent): Likewise.
11286 * nis/nss_compat/compat-grp.c (internal_setgrent): Likewise.
11287
11288 * nis/nss_compat/compat-initgroups.c (nss_setgrent, nss_endgrent):
11289 Removed.
11290 (init_nss_interface): Remove initialization of these variables.
11291
112922006-05-18 Ulrich Drepper <drepper@redhat.com>
11293
11294 * nis/nis_call.c (rec_dirsearch): Little optimization: pull
11295 nis_free_directory forward to avoid duplication.
11296
388c779e
UD
112972006-05-17 Ulrich Drepper <drepper@redhat.com>
11298
5f1724bf
UD
11299 * nis/nis_call.c (rec_dirsearch): Handle __nis_finddirectory and
11300 rec_dirsearch returning NULL.
11301 (first_shoot): Handle __nis_finddirectory returning NULL.
11302 (__nisfind_server): Fix leak when rec_dirsearch returns NULL.
11303
388c779e
UD
11304 * sysdeps/unix/sysv/linux/sys/inotify.h: Define IN_CLOSE, IN_MOVE,
11305 IN_ONLYDIR, IN_DONT_FOLLOW, and IN_MASK_ADD.
11306
360d5cf4
UD
113072006-05-17 Jakub Jelinek <jakub@redhat.com>
11308
11309 * sunrpc/key_call.c (getkeyserv_handle): Call auth_destroy if
11310 pid changed.
11311
88dbff8c
UD
113122006-05-15 Ulrich Drepper <drepper@redhat.com>
11313
6f8a7dff
UD
11314 * include/rpc/pmap_prot.h: Mark all functions as hidden.
11315
11316 * nscd/nscd_initgroups.c: Mark __gr_map_handle as hidden.
11317 * nscd/nscd_getgr_r.c: Likewise.
11318
11319 * include/rpc/pmap_rmt.h: Mark all functions as hidden.
11320
11321 * nscd/nscd_getai.c (__hst_map_handle): Mark as hidden.
11322 * nscd/nscd_gethst_r.c (__hst_map_handle): Likewise.
11323
11324 * stdlib/longlong.h (__clz_tab): Mark as hidden.
11325
11326 * iconv/gconv_int.h: Mark __gconv_lock as hidden.
11327
360d5cf4 11328 * include/rpc/key_prot.h: Mark all _internal functions as hidden.
8263ed62
UD
11329
11330 * include/rpc/auth.h: Mark xdr_des_block_internal and
11331 xdr_opaque_auth_internal as hidden.
11332
11333 * sysdeps/unix/sysv/linux/getdents.c: Mark __have_no_getdents64 as
11334 hidden.
11335
360d5cf4 11336 * include/rpc/xdr.h: Mark all _internal functions as hidden.
8263ed62 11337
02264020
UD
11338 * misc/getusershell.c (okshells): Don't use static initializers,
11339 do it dynamically.
11340
fd5ea238
UD
11341 * stdlib/fmtmsg.c (keywords): Change type of len element to
11342 uint32_t to not waste space on 64bit machines.
11343
9446614c
UD
11344 * locale/setlocale.c: Change _nl_category_names into a string.
11345 Add new _nl_category_name_idxs. Change all users.
11346 * locale/localeinfo.h: Adjust declaration of _nl_category_names.
11347 Declare _nl_category_name_idxs.
11348 * locale/findlocale.c: Adjust for _nl_category_names change.
11349 * locale/loadlocale.c: Likewise.
11350 * locale/newlocale.c: Likewise.
11351 * intl/dcigettext.c: Likewise.
11352
88dbff8c
UD
11353 * iconv/gconv_conf.c (add_alias): Move actual alias handling to...
11354 (add_alias2): ...here. New function.
11355 (__gconv_read_conf): Simplify builtin alias handling.
11356 (builtin_aliases): Convert to string to avoid relocations.
11357 * iconv/gconv_builtin.h: Add comment about correct formatting.
11358
4442d58f
UD
113592006-05-15 Jakub Jelinek <jakub@redhat.com>
11360
11361 * resolv/res_debug.c (loc_ntoa): Make error const.
11362
113632006-05-14 Andreas Schwab <schwab@suse.de>
11364
11365 * math/complex.h [__LDBL_COMPAT]: Use __REDIRECT_NTH.
11366
113672006-05-12 Jakub Jelinek <jakub@redhat.com>
11368
11369 * sysdeps/unix/sysv/linux/sched_getaffinity.c: Include sys/param.h.
11370 (__sched_getaffinity_new): Don't crash if cpusetsize is smaller than
11371 sizeof (cpu_set_t).
11372
a51752b6
UD
113732006-05-11 Ulrich Drepper <drepper@redhat.com>
11374
5d3fd1f6
UD
11375 * resolv/res_debug.c (loc_ntoa): Define error as array, not pointer.
11376
08cfb839
UD
11377 * include/arpa/nameser.h: Declare _ns_flagdata as hidden.
11378
4b481a15
UD
11379 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_master.
11380 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_master.
11381
11382 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypbind_resp.
11383 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypbind_resp.
11384
11385 * nis/nis_xdr.c: Add libnsl_hidden_def for xdr_cback_data.
11386 * include/rpcsvc/nis_callback.h: Add libnsl_hidden_proto for
11387 xdr_cback_data.
11388
11389 * nis/ypupdate_xdr.c: Add libnsl_hidden_def for xdr_ypupdate_args.
11390 * include/rpcsvc/ypupd.h: Add libnsl_hidden_proto for
11391 xdr_ypupdate_args.
11392
11393 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_order.
11394 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_order.
11395
11396 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_maplist.
11397 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_maplist.
11398
11399 * nis/nis_xdr.c: Add libnsl_hidden_def for xdr_obj_p.
11400 * include/rpcsvc/nis_callback.h: New file.
11401
11402 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_val.
11403 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_val.
11404
11405 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypreq_nokey.
11406 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypreq_nokey.
11407
11408 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypmaplist.
11409 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypmaplist.
11410
11411 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypreq_nokey.
11412 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypreq_nokey.
11413
b1ad49c6
UD
11414 * nis/ypupdate_xdr.c: Add libnsl_hidden_def for xdr_ypdelete_args.
11415 * include/rpcsvc/ypupd.h: Add libnsl_hidden_proto for
11416 xdr_ypdelete_args.
11417
cd5f7829
UD
11418 * nis/nis_xdr.h: Mark all functions as hidden. Remove
11419 __BEGIN_DECLS and __END_DECLS, the header is not installed.
11420
a51752b6
UD
11421 * nis/nis_error.c: Remove table of strings. Use position
11422 independent mechanism.
11423 * nis/nis_error.h: New file.
11424
3d237e42
UD
114252006-05-11 Jakub Jelinek <jakub@redhat.com>
11426
11427 * locale/programs/ld-time.c (time_finish): If wide era name or
11428 format aren't provided, set both wname and wformat to L"".
11429
d6c159fe
UD
114302006-05-10 Ulrich Drepper <drepper@redhat.com>
11431
0088b04e
UD
11432 * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Only store
11433 results if the call was succesful.
11434
d6c159fe
UD
11435 * nis/nss-nis.h: Mark __yperr2nss_tab and __yperr2nss_count as hidden.
11436
11437 * nis/nss-nisplus.h: Mark __niserr2nss_tab and __niserr2nss_count
11438 as hidden.
11439
5c5acdf0
UD
114402006-05-10 Jakub Jelinek <jakub@redhat.com>
11441
11442 * misc/sys/queue.h: Remove uses of all QUEUEDEBUG_* macros.
11443
16d620db
UD
114442006-05-10 Ulrich Drepper <drepper@redhat.com>
11445
11446 * posix/wordexp.c (parse_glob): No need to check ifs for NULL, the
11447 caller makes sure this is not the case.
11448 (wordexp): Simplify ifs_white creation. [Coverity CID 231]
11449
e7c8359e
UD
114502006-05-09 Ulrich Drepper <drepper@redhat.com>
11451
ecf359c6
UD
11452 * posix/wordexp.c: Remove numerous NULL pointer tests before FREE
11453 calls.
11454
400cc70a
UD
11455 * io/ftw.c (open_dir_stream): Return right away if REALLOC fails.
11456 [Coverity CID 229, 230]
11457
11458 * argp/argp-help.c (hol_entry_help): Handle STATE==NULL in ARG and
11459 DGETTEXT calls.
11460 (hol_help): Likewise. [Coverity CID 226, 227]
11461
11462 * string/argz-replace.c (__argz_replace): Unconditionally call
11463 free on SRC. [Coverity CID 225]
11464
11465 * nis/nis_creategroup.c (nis_creategroup): No need to duplicate
11466 the return value of __nis_default_owner and __nis_default_group,
11467 it has been especially allocated. [Coverity CID 224]
11468
51e59260
UD
11469 * nis/nis_defaults.c (searchXYX): New functions. Used by both
11470 searchgroup and searchowner. Significantly simplified.
11471 (__nis_default_owner): Remove duplication. Do not locally copy the
11472 string before duplicating it.
11473 (__nis_default_group): Likewise.
11474
11475 * nis/nis_lookup.c (nis_lookup): After calling nis_free_directory,
11476 we must clear the variable before calling __nisfind_server.
11477
11478 * nis/nis_lookup.c (nis_lookup): Always free memory allocated with
11479 nis_getnames. [Coverity CID 223]
11480
11481 * locale/programs/locfile.c (locfile_read): Use alloca instead of
11482 xmalloc to allocate local repertoire name. [Coverity CID 222]
11483
11484 * iconv/iconv_charmap.c (use_to_charmap): No need to dynamically
11485 allocate memory for the input to add_bytes. [Coverity CID 221]
11486
e7c8359e 11487 * posix/wordexp.c (w_addword): Free word if realloc fails and it
51e59260 11488 was allocated here. [Coverity CID 219, 220]
e7c8359e
UD
11489
11490 * posix/getconf.c (print_all): Free confstr data after printing.
11491 [Coverity CID 218]
11492
11493 * sysdeps/posix/getaddrinfo.c (gaih_inet): Free canon string if
11494 list allocation fails. [Coverity CID 215]
11495
11496 * nss/nsswitch.c (__nss_configure_lookup): Fix loop end condition.
11497 [Coverity CID 213]
11498
11499 * argp/argp-help.c (hol_entry_cmp): Don't call canon_doc_option if
11500 string is NULL. [Coverity CID 212]
11501 * argp/Makefile: Add rules to build and run bug-argp1.
11502 * argp/bug-argp1.c: New file.
11503
11504 * io/ftw.c (ftw_dir): Use __rawmemchr instead of strchr to find
11505 end of string.
11506 * stdlib/canonicalize.c (__realpath): Likewise.
11507
11508 * locale/programs/ld-time.c (time_finish): Don't dereference NULL
11509 pointer. [Coverity CID 206]
11510
11511 * elf/dl-dst.h (DL_DST_REQUIRED): Be prepared for missing link map
11512 in statically linked code.
11513 * elf/dl-load.c (_dl_dst_substitute): When replacing ORIGIN in
11514 statically built code, be prepared to have no link map.
11515 [Coverity CID 205]
11516
11517 * argp/argp-help.c (fill_in_uparams): Handle STATE==NULL in
11518 dgettext calls. [Coverity CID 204]
11519
11520 * argp/argp-help.c (struct uparams): Remove valid member. Change
11521 the one user.
11522 (uparam_names): Reduce size. Avoid relative relocations.
11523 Moved to read-only segment.
11524 (fill_in_uparams): Update for new layout.
11525
11526 * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs): Parameter can be
11527 assumed to always be != NULL. [Coverity CID 202]
11528
11529 * argp/argp-help.c (hol_entry_help): Remove some dead code
11530 [Coverity CID 200].
11531
11532 * nis/nss_nis/nis-service.c (_nss_nis_getservbyport_r): Optimize
11533 away a few more unconditional yperr2nss calls.
11534 (_nss_nis_getservbyname_r): Likewise.
11535
acf82eaf
UD
115362006-05-06 Ulrich Drepper <drepper@redhat.com>
11537
4461cf48
UD
11538 * sysdeps/generic/ldsodefs.h: Remove support for non-core
11539 architectures.
11540
b74a8c7f
UD
11541 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Make sure
11542 that unused memory passed to sendto is nevertheless initialized.
11543
acb98cb5
UD
11544 [BZ #2499]
11545 * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Avoid
11546 possibly unaligned memory accesses.
11547
bce16467
UD
11548 * include/arpa/nameser.h: Also optimize NS_PUT16 and NS_PUT32.
11549 * resolv/res_mkquery.c: Use NS_PUT16 and NS_PUT32 instead of __putshort
11550 and __putlong respectively. Correct buffer overflow check for
11551 NS_NOTIFY_OP.
11552
11553 * resolv/res_send.c (send_vc): Use ns_put16 instead of putshort.
11554
8e45b1ac
UD
11555 * resolv/res_send.c (res_queriesmatch): Fix typo in comment.
11556 (send_dg): Rewrite error handling to be more compact and avoid
11557 double recomputation of timeouts. Pass MSG_NOSIGNAL to send.
11558
697e1628
UD
11559 * include/arpa/nameser.h: Add optimizations for NS_GET16 and NS_GET32.
11560
11561 * resolv/res_send.c (res_nameinquery): Use NS_GET16 directly
11562 instead of ns_get16.
11563 (res_queriesmatch): Likewise. Minor optimization.
11564
acf82eaf
UD
11565 [BZ #2499]
11566 * resolv/res_query.c (__libc_res_nquery): If answerp != NULL,
11567 __libc_res_nsend might reallocate the buffer for the answer. In
11568 this case we have to reload the HP pointer.
11569
7bfee654
UD
115702006-05-05 Ulrich Drepper <drepper@redhat.com>
11571
694b49ca
UD
11572 * stdio-common/vfscanf.c (memory_error): Remove definition. Add
11573 some branch prediction hints.
11574
7bfee654
UD
11575 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Define SPLICE_F_*.
11576 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
11577 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
11578 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
11579 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
11580 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
11581 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
11582 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
11583
308bb2d5
UD
115842006-05-05 Martin Schwidefsky <schwidefsky@de.ibm.com>
11585
11586 * sysdeps/s390/s390-32/elf/start.S: Replace pc relative relocation
11587 by a GOT relocation to make Scrt1.o position independent.
11588 * sysdeps/s390/s390-64/elf/start.S: Likewise.
11589
11590 * sysdeps/unix/sysv/linux/s390/s390-32/syscall.S: Add support for
11591 six system call parameters.
11592 * sysdeps/unix/sysv/linux/s390/s390-64/syscall.S: Likewise.
11593
cdb9c321
UD
115942006-05-05 Ulrich Drepper <drepper@redhat.com>
11595
11596 * sunrpc/svcauth_des.c (cache_init): Use calloc instead of
11597 malloc&bzero.
11598
11599 * sunrpc/svc_udp.c (BZERO): Remove definition.
11600 (CALLOC): Define.
11601 (svc_enablecache): Use CALLOC instead of ALLOC&BZERO.
11602
11603 * sunrpc/des_impl.c: Remove ALT_ECB support. We never used it.
11604 (des_SPtrans): Use uint32_t type.
11605 (des_skb): Likewise.
11606
11607 * sunrpc/xdr_ref.c (xdr_reference): Use calloc instead of malloc&bzero.
11608
fff04b32
UD
116092006-05-05 Jakub Jelinek <jakub@redhat.com>
11610
11611 [BZ #2509]
11612 * stdio-common/tst-printf.sh: Adjust for tst-printf.c change even
11613 on 32-bit arches.
11614
116152006-05-05 Ulrich Drepper <drepper@redhat.com>
11616
11617 * locale/programs/ld-address.c (address_finish): Fix one more
cdb9c321 11618 place where the iso639 array might be accessed beyond the limits.
fff04b32 11619
077a30bc 116202006-05-04 Ulrich Drepper <drepper@redhat.com>
77dd4c3b 11621
f2d5cf50
UD
11622 * nis/nis_table.c (nis_list): Avoid clearing res twice before
11623 filling it for the first time.
11624
3e4370cf
UD
11625 * nis/nis_table.c (get_tablepath): Renamed from __get_tablepath.
11626 Adjust all callers.
11627 Free res object content before returning.
11628
5e65a53d
UD
11629 * sunrpc/xdr_array.c (xdr_array): Use calloc instead of malloc&bzero.
11630
48be3114
UD
11631 * sunrpc/key_call.c (__rpc_thread_key_cleanup): Also free
11632 client->cl_auth.
11633
ca4fce0e
UD
11634 * sunrpc/rpc_thread.c (__rpc_thread_destroy): Don't skip entire
11635 cleanup for initial thread, just the free call on TVP.
11636
077a30bc 11637 * nscd/gai.c (__getline): Define.
3b7a95fb 11638
5d37289a 11639
3f87d901 11640See ChangeLog.16 for earlier changes.