]> git.ipfire.org Git - thirdparty/glibc.git/blame - ChangeLog
Urdu language locale for India.
[thirdparty/glibc.git] / ChangeLog
CommitLineData
d360a0da
UD
12009-06-09 Ulrich Drepper <drepper@redhat.com>
2
3 * libio/fileops.c (_IO_new_file_fopen): Don't prematurely stop
4 parsing mode string.
5
443caceb
UD
62009-06-05 Ulrich Drepper <drepper@redhat.com>
7
b77c9323
UD
8 * sysdeps/x86_64/rawmemchr.S: Minor optimization.
9
10 * sysdeps/x86_64/multiarch/rawmemchr.S: New file.
11
3ab2d57a
UD
12 * sysdeps/x86_64/multiarch/strlen.S: New file.
13 * sysdeps/x86_64/multiarch/ifunc-defines.sym: New file.
14 * sysdeps/x86_64/multiarch/Makefile: Add rule to build ifunc-defines.h.
15 * sysdeps/x86_64/multiarch/init-arch.h: Name structure with register
16 content.
17
443caceb
UD
18 * csu/elf-init.c: Only compile in IFUNC functionality if USE_MULTIARCH
19 is defined.
20
747785f2
UD
212009-06-04 Ulrich Drepper <drepper@redhat.com>
22
2f3f7b9d 23 * sysdeps/x86_64/strlen.S: Minor optimizations.
747785f2 24
2f083d75
L
252009-06-02 H.J. Lu <hongjiu.lu@intel.com>
26
27 * elf/Makefile (distribute): Add ifuncmain1.c, ifuncmain1pic.c,
28 ifuncmain1vis.c, ifuncmain1vispic.c, ifuncmain1static.c,
29 ifuncmain1staticpic.c, ifuncmain1picstatic.c, ifuncdep1.c,
30 ifuncdep1pic.c, ifuncmod1.c, ifuncmain1pie.c, ifuncmain1vispie.c,
31 ifuncmain2.c, ifuncmain2static.c, ifuncdep2.c,
32 funcmain2pic.c, ifuncmain2picstatic.c, ifuncdep2pic.c,
33 ifuncmain3.c, ifuncmod3.c,.
34 ifuncmain4.c, ifuncmain4static.c, ifuncmain4picstatic.c.
35 (tests-static): Add ifuncmain1static, ifuncmain1picstatic,
36 ifuncmain2static, ifuncmain2picstatic, ifuncmain4static,
37 ifuncmain4picstatic.
38 (tests): Add ifuncmain1, ifuncmain1pic, ifuncmain1vis,
39 ifuncmain1vispic, ifuncmain1staticpic, ifuncmain2, ifuncmain2pic,
40 ifuncmain3, ifuncmain4.
41 (tests): Depend on $(objpfx)ifuncmain1pie.out and
42 $(objpfx)ifuncmain1vispie.out.
43 (modules-names): Add ifuncmod1 ifuncmod3.
44 (generated): Add ifuncmain1pie ifuncmain1pie.out
45 ifuncmain1vispie ifuncmain1vispie.out.
46 Define rules to build and run the tests.
47 * elf/ifuncdep1.c: New file.
48 * elf/ifuncdep1pic.c: New file.
49 * elf/ifuncdep2.c: New file.
50 * elf/ifuncdep2pic.c: New file.
51 * elf/ifuncmain1.c: New file.
52 * elf/ifuncmain1pic.c: New file.
53 * elf/ifuncmain1picstatic.c: New file.
54 * elf/ifuncmain1pie.c: New file.
55 * elf/ifuncmain1static.c: New file.
56 * elf/ifuncmain1staticpic.c: New file.
57 * elf/ifuncmain1vis.c: New file..
58 * elf/ifuncmain1vispic.c: New file..
59 * elf/ifuncmain1vispie.c: New file.
60 * elf/ifuncmain2.c: New file.
61 * elf/ifuncmain2pic.c: New file.
62 * elf/ifuncmain2picstatic.c: New file.
63 * elf/ifuncmain2static.c: New file.
64 * elf/ifuncmain3.c: New file.
65 * elf/ifuncmain4.c: New file.
66 * elf/ifuncmain4picstatic.c: New file.
67 * elf/ifuncmain4static.c: New file.
68 * elf/ifuncmod1.c: New file.
69 * elf/ifuncmod3.c: New file.
70
fbb04b35
UD
712009-06-03 Ulrich Drepper <drepper@redhat.com>
72
73 * elf/dl-sysdep.c (_dl_show_auxv): Terminate correct string.
74
3d5243d4
UD
752009-06-02 Ulrich Drepper <drepper@redhat.com>
76
77 [BZ #10221]
78 * posix/Makefile (routines): Add execvpe.
79 * posix/Versions: Export execvpe for GLIBC_2.11.
80 * posix/execvp.c: Now only a wrapper. Move code to...
81 * posix/execvpe.c: ...here. New file.
82 * posix/unistd.h: Declare execvpe.
83
b7629ee3
UD
842009-06-01 Ulrich Drepper <drepper@redhat.com>
85
fd96f062
UD
86 * sysdeps/i386/dl-machine.h (elf_machine_rel): Reorder conditions
87 for STT_GNU_IFUNC handling for efficiency.
88 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
89
b7629ee3
UD
90 * sysdeps/i386/dl-irel.h (elf_irel): Use __libc_fatal instead of just
91 _exit.
92 * sysdeps/x86_64/dl-irel.h (elf_irela): Likewise.
93
8ea23729
UD
942009-05-31 Ulrich Drepper <drepper@redhat.com>
95
96 * sysdeps/x86_64/multiarch/sched_cpucount.c: Also use optimized code
97 for !SHARED.
98
74414708
UD
992009-05-29 H.J. Lu <hongjiu.lu@intel.com>
100
101 * csu/elf-init.c: Include <link.h> and <dl-irel.h> if LIBC_NONSHARED
102 is not defined.
103 (__rela_iplt_start): New declaration.
104 (__rela_iplt_end): Likewise.
105 (__rel_iplt_start): Likewise.
106 (__rel_iplt_end): Likewise.
107 (__libc_csu_init): Process __rela_iplt_start and __rel_iplt_start.
108 * elf/elf.h (R_386_IRELATIVE): New macro.
109 (R_X86_64_IRELATIVE): New macro.
110 (R_386_NUM): Updated.
111 (R_X86_64_NUM): Likewise.
112 * include/libc-symbols.h (libc_ifunc_hidden_def1): New macro.
113 (libc_ifunc_hidden_def): New macro.
114 * sysdeps/generic/dl-irel.h: New file.
115 * sysdeps/i386/dl-irel.h: New file.
116 * sysdeps/x86_64/dl-irel.h: New file.
117 * sysdeps/i386/dl-machine.h (elf_machine_rel): Handle R_386_IRELATIVE.
118 (elf_machine_rela): Check SHN_UNDEF for STT_GNU_IFUNC symbol.
119 Handle R_386_IRELATIVE.
120 (elf_machine_lazy_rel): Handle R_386_IRELATIVE.
121 (elf_machine_lazy_rela): Likewise.
122 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
123 R_X86_64_IRELATIVE.
124 (elf_machine_lazy_rel): Handle R_X86_64_IRELATIVE.
125
963cb6fc
UD
1262009-05-31 Ulrich Drepper <drepper@redhat.com>
127
128 * sysdeps/x86_64/multiarch/init-arch.h: Define COMMON_CPUID_INDEX_1
129 instead of INTEL_CPUID_INDEX_1 and AMD_CPUID_INDEX_1. So far there
130 are no differences. If an architecture has bits in CPUID index 1
131 meaning different things the values for the COMMON_CPUID_INDEX_1
132 index must not be set.
133 (INTEL_HAS_POPCOUNT, AMD_HAS_POPCOUNT): Removed in favor of...
134 (HAS_POPCOUNT): ...this. New macro.
135 * sysdeps/x86_64/multiarch/init-arch.c: Use COMMON_CPUID_INDEX_1
136 instead of INTEL_CPUID_INDEX_1 and AMD_CPUID_INDEX_1. Unify code
137 to set the value for Intel and AMD architectures.
138 * sysdeps/x86_64/cacheinfo.c: Use COMMON_CPUID_INDEX_1 instead of
139 INTEL_CPUID_INDEX_1.
140 * sysdeps/x86_64/multiarch/sched_cpucount.c: Adjust for HAS_POPCOUNT
141 change.
142
c16a054d
AS
1432009-05-30 Andreas Schwab <schwab@linux-m68k.org>
144
145 * configure.in: Move AC_CANONICAL_HOST before first use of $host
146 and $build.
c16a054d 147
7f3394bd
UD
1482009-05-29 Jakub Jelinek <jakub@redhat.com>
149
150 * sysdeps/ieee754/ldbl-128/s_expm1l.c: Include <errno.h>.
151 (__expm1l): Set errno to ERANGE on overflow.
152 * sysdeps/ieee754/ldbl-128/s_tanl.c: Include <errno.h>.
153 (__tanl): Set errno to EDOM for ±Inf.
154 * sysdeps/ieee754/ldbl-128/s_cosl.c: Include <errno.h>.
155 (__cosl): Set errno to EDOM for ±Inf.
156 * sysdeps/ieee754/ldbl-128/s_sinl.c: Include <errno.h>.
157 (__sinl): Set errno to EDOM for ±Inf.
158
b8bb339f
UD
159 * sysdeps/s390/s390-32/__longjmp.c (__longjmp): If CHECK_SP is
160 defined, use it.
161 * sysdeps/s390/s390-64/__longjmp.c (__longjmp): Likewise.
162 * sysdeps/s390/s390-32/____longjmp_chk.c: New file.
163 * sysdeps/s390/s390-64/____longjmp_chk.c: New file.
164
1de0c161
UD
1652009-05-29 Ulrich Drepper <drepper@redhat.com>
166
167 * sysdeps/x86_64/cacheinfo.c: Compact intel_02_known array. Adjust
168 code accessing it.
169 * sysdeps/unix/sysv/linux/i386/sysconf.c: Likewise.
170
0323b051
AS
1712009-05-22 Andreas Schwab <schwab@linux-m68k.org>
172
38ae768d
AS
173 * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Set errno for ±Inf.
174 * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
175 * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
176 * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c: Set errno for overflow.
177
0323b051
AS
178 * sysdeps/powerpc/powerpc32/____longjmp_chk.S: New file.
179 * sysdeps/powerpc/powerpc64/____longjmp_chk.S: New file.
180 * sysdeps/powerpc/powerpc32/__longjmp-common.S: Use CHECK_SP if
181 defined.
182 * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
183 * sysdeps/powerpc/powerpc64/__longjmp-common.S: Likewise.
184
1e1dc4e8
JJ
1852009-05-22 Jakub Jelinek <jakub@redhat.com>
186
187 * sysdeps/unix/sysv/linux/accept4.c: Include kernel-features.h.
188 (accept4): If __NR_accept4 is not defined, but __NR_socketcall
189 is, either do nothing at all if __ASSUME_ACCEPT4, or
190 call __internal_accept4 and handle EINVAL -> ENOSYS translation.
191 * sysdeps/unix/sysv/linux/internal_accept4.S: New file.
192 * sysdeps/unix/sysv/linux/i386/accept4.S (SOCKOP_accept4): Don't
193 define.
194 * sysdeps/unix/sysv/linux/i386/internal_accept4.S: New file.
195 * sysdeps/unix/sysv/linux/Makefile (sysdep-routines): Add
196 internal_accept4 in socket directory.
197
10495c0b
UD
1982009-05-20 H.J. Lu <hongjiu.lu@intel.com>
199
200 * sysdeps/ia64/configure.in: New file.
201
fa64b7f7
UD
2022009-05-21 H.J. Lu <hongjiu.lu@intel.com>
203
204 [BZ #10162]
205 * sysdeps/ia64/memchr.S: Use speculative load.
206
d2812fc6
L
207 * sysdeps/unix/sysv/linux/ia64/____longjmp_chk.S: New file.
208 * sysdeps/unix/sysv/linux/ia64/__longjmp.S: If CHECK_RSP is defined,
209 use it.
210
e7535de7
L
211 * sysdeps/i386/__longjmp.S: Add .text.
212 * sysdeps/x86_64/__longjmp.S: Likewise.
213
3533b1a6
UD
2142009-05-21 Ulrich Drepper <drepper@redhat.com>
215
216 * sysdeps/unix/sysv/linux/kernel-features.h: Don't define
217 __ASSUME_ACCEPT4 for IA-64.
218
a2292378
JJ
2192009-05-21 Jakub Jelinek <jakub@redhat.com>
220
d14eda93
JJ
221 * sysdeps/unix/sysv/linux/accept4.c (__NR_accept4): Don't define.
222
a2292378
JJ
223 * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_paccept): Remove.
224 (SOCKOP_accept4): Define.
225
d4ab2f2a
UD
2262009-05-20 Ulrich Drepper <drepper@redhat.com>
227
ab09b221
UD
228 Sun approved the change of the license.
229 * sunrpc/auth_des.c: Replace license text.
230 * sunrpc/auth_none.c: Likewise.
231 * sunrpc/auth_unix.c: Likewise.
232 * sunrpc/authdes_prot.c: Likewise.
233 * sunrpc/authuxprot.c: Likewise.
234 * sunrpc/bindrsvprt.c: Likewise.
235 * sunrpc/clnt_gen.c: Likewise.
236 * sunrpc/clnt_perr.c: Likewise.
237 * sunrpc/clnt_raw.c: Likewise.
238 * sunrpc/clnt_simp.c: Likewise.
239 * sunrpc/clnt_tcp.c: Likewise.
240 * sunrpc/clnt_udp.c: Likewise.
241 * sunrpc/clnt_unix.c: Likewise.
242 * sunrpc/des_crypt.c: Likewise.
243 * sunrpc/des_soft.c: Likewise.
244 * sunrpc/get_myaddr.c: Likewise.
245 * sunrpc/getrpcport.c: Likewise.
246 * sunrpc/key_call.c: Likewise.
247 * sunrpc/key_prot.c: Likewise.
248 * sunrpc/openchild.c: Likewise.
249 * sunrpc/pm_getmaps.c: Likewise.
250 * sunrpc/pm_getport.c: Likewise.
251 * sunrpc/pmap_clnt.c: Likewise.
252 * sunrpc/pmap_prot.c: Likewise.
253 * sunrpc/pmap_prot2.c: Likewise.
254 * sunrpc/pmap_rmt.c: Likewise.
255 * sunrpc/rpc/auth.h: Likewise.
256 * sunrpc/rpc/auth_unix.h: Likewise.
257 * sunrpc/rpc/clnt.h: Likewise.
258 * sunrpc/rpc/des_crypt.h: Likewise.
259 * sunrpc/rpc/key_prot.h: Likewise.
260 * sunrpc/rpc/netdb.h: Likewise.
261 * sunrpc/rpc/pmap_clnt.h: Likewise.
262 * sunrpc/rpc/pmap_prot.h: Likewise.
263 * sunrpc/rpc/pmap_rmt.h: Likewise.
264 * sunrpc/rpc/rpc.h: Likewise.
265 * sunrpc/rpc/rpc_des.h: Likewise.
266 * sunrpc/rpc/rpc_msg.h: Likewise.
267 * sunrpc/rpc/svc.h: Likewise.
268 * sunrpc/rpc/svc_auth.h: Likewise.
269 * sunrpc/rpc/types.h: Likewise.
270 * sunrpc/rpc/xdr.h: Likewise.
271 * sunrpc/rpc_clntout.c: Likewise.
272 * sunrpc/rpc_cmsg.c: Likewise.
273 * sunrpc/rpc_common.c: Likewise.
274 * sunrpc/rpc_cout.c: Likewise.
275 * sunrpc/rpc_dtable.c: Likewise.
276 * sunrpc/rpc_hout.c: Likewise.
277 * sunrpc/rpc_main.c: Likewise.
278 * sunrpc/rpc_parse.c: Likewise.
279 * sunrpc/rpc_parse.h: Likewise.
280 * sunrpc/rpc_prot.c: Likewise.
281 * sunrpc/rpc_sample.c: Likewise.
282 * sunrpc/rpc_scan.c: Likewise.
283 * sunrpc/rpc_scan.h: Likewise.
284 * sunrpc/rpc_svcout.c: Likewise.
285 * sunrpc/rpc_tblout.c: Likewise.
286 * sunrpc/rpc_util.c: Likewise.
287 * sunrpc/rpc_util.h: Likewise.
288 * sunrpc/rpcinfo.c: Likewise.
289 * sunrpc/rpcsvc/bootparam_prot.x: Likewise.
290 * sunrpc/rpcsvc/key_prot.x: Likewise.
291 * sunrpc/rpcsvc/klm_prot.x: Likewise.
292 * sunrpc/rpcsvc/mount.x: Likewise.
293 * sunrpc/rpcsvc/nfs_prot.x: Likewise.
294 * sunrpc/rpcsvc/rex.x: Likewise.
295 * sunrpc/rpcsvc/rstat.x: Likewise.
296 * sunrpc/rpcsvc/rusers.x: Likewise.
297 * sunrpc/rpcsvc/sm_inter.x: Likewise.
298 * sunrpc/rpcsvc/spray.x: Likewise.
299 * sunrpc/rpcsvc/yppasswd.x: Likewise.
300 * sunrpc/rtime.c: Likewise.
301 * sunrpc/svc.c: Likewise.
302 * sunrpc/svc_auth.c: Likewise.
303 * sunrpc/svc_authux.c: Likewise.
304 * sunrpc/svc_raw.c: Likewise.
305 * sunrpc/svc_run.c: Likewise.
306 * sunrpc/svc_simple.c: Likewise.
307 * sunrpc/svc_tcp.c: Likewise.
308 * sunrpc/svc_udp.c: Likewise.
309 * sunrpc/svc_unix.c: Likewise.
310 * sunrpc/svcauth_des.c: Likewise.
311 * sunrpc/xcrypt.c: Likewise.
312 * sunrpc/xdr.c: Likewise.
313 * sunrpc/xdr_array.c: Likewise.
314 * sunrpc/xdr_float.c: Likewise.
315 * sunrpc/xdr_mem.c: Likewise.
316 * sunrpc/xdr_rec.c: Likewise.
317 * sunrpc/xdr_ref.c: Likewise.
318 * sunrpc/xdr_sizeof.c: Likewise.
319 * sunrpc/xdr_stdio.c: Likewise.
320
d4ab2f2a
UD
321 * po/da.po: Update from translation team.
322
04733592
KK
3232009-05-18 Kaz Kojima <kkojima@rr.iij4u.or.jp>
324
325 * sysdeps/sh/____longjmp_chk.S: New file.
326 * sysdeps/sh/sh3/__longjmp.S: If CHECK_SP is defined, use it.
327 * sysdeps/sh/sh4/__longjmp.S: Likewise.
a2292378 328
5078fff6
JJ
3292009-05-18 Jakub Jelinek <jakub@redhat.com>
330 Ulrich Drepper <drepper@redhat.com>
331
332 * nscd/nscd_helper.c (MINIMUM_HASHENTRY_SIZE): Define.
333 (__nscd_cache_search): Assume each entry in the
334 hash chain needs one hashentry and half of datahead. Use
335 MINIMUM_HASHENTRY_SIZE instead of sizeof(hashentry).
336
95410b7b
UD
3372009-05-16 Ulrich Drepper <drepper@redhat.com>
338
c457bc13
UD
339 * posix/sys/wait.h: Fix typos. Pretty printing.
340 * stdlib/stdlib.h: Likewise. Correct comments.
8f0d3f49 341
a64039b0
UD
342 [BZ #10159]
343 * stdlib/stdlib.h (__WAIT_INT): Match the definition in <sys/wait.h>.
344
95410b7b
UD
345 * nscd/nscd_helper.c (__nscd_cache_search): Fix exit condition in last
346 patch.
347
831a4049
UD
3482009-05-15 Ulrich Drepper <drepper@redhat.com>
349
831a4049
UD
350 * nscd/nscd_helper.c (__nscd_cache_search): Introduce loop counter.
351 Use it if we absolutely cannot reach any more correct list elements
352 because that many do not fit into the currently mapped database.
353
6dd78596
UD
3542009-05-14 Jakub Jelinek <jakub@redhat.com>
355
cfe1fc10
JJ
356 * nscd/nscd_helper.c: Include stddef.h.
357 (__nscd_cache_search): Add datalen argument. Use atomic_forced_read
358 in a couple of places. Return NULL if trail is not less than
359 datasize, don't consider dataheads with length smaller than
360 offsetof (struct datahead, data) + datalen.
361 * nscd/nscd_client.h (__nscd_cache_search): Adjust prototype.
362 * nscd/nscd_gethst_r.c (nscd_gethst_r): Adjust callers.
363 * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
364 * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
365 * nscd/nscd_getai.c (__nscd_getai): Likewise.
366 * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
367 * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
368
6dd78596
UD
369 * sysdeps/unix/sysv/linux/i386/fallocate64.c (__fallocate64_l64):
370 Rename ...
371 (fallocate64): ... to this.
372 * sysdeps/unix/sysv/linux/fallocate64.c (__fallocate64_l64):
373 Rename ...
374 (fallocate64): ... to this.
375 * sysdeps/unix/sysv/linux/Versions (libc): Remove fallocate64.
376 * sysdeps/unix/sysv/linux/wordsize-64/Versions (libc): Add
377 fallocate64@@GLIBC_2.10.
378 * sysdeps/unix/sysv/linux/i386/Versions (libc): Add
379 fallocate64@@GLIBC_2.11.
380 * sysdeps/unix/sysv/linux/s390/s390-32/Versions (libc): Likewise.
381 * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions (libc): Likewise.
382 * sysdeps/unix/sysv/linux/sparc/sparc32/Versions (libc): Likewise.
383 * sysdeps/unix/sysv/linux/sh/Versions (libc): Likewise.
384
6dd78596
UD
385 * nscd/selinux.c (nscd_avc_destroy): Removed.
386 * nscd/selinux.h (nscd_avc_destroy): Likewise.
387 * nscd/nscd.c (termination_handler): Don't call
388 nscd_avc_destroy.
389
cfe1fc10
JJ
3902009-05-12 Jakub Jelinek <jakub@redhat.com>
391
392 * include/atomic.h: Formatting.
393 (catomic_compare_and_exchange_val_acq): Don't define if already
394 defined by bits/atomic.h.
395
774f5a30
UD
3962009-05-15 Ulrich Drepper <drepper@redhat.com>
397
bbc5d74d
UD
398 * math/libm-test.inc (expm1_test): Add test for range error.
399
b50f8e42
UD
400 * Versions.def: Add GLIBC_2.11 for libc.
401 * debug/Makefile (routines): Add longjmp_chk.
402 Add rules to build and run tst-longjmp_chk.
403 * debug/Versions: Export __longjmp_chk for GLIBC_2.11.
404 * debug/longjmp_chk.c: New file.
405 * debug/tst-longjmp_chk.c: New file.
406 * include/bits/setjmp2.: New file.
407 * include/stdio.h: Mark __fortify_fail as internal_function.
408 * setjmp/Makefile (headers): Add bits/setjmp2.h.
409 * setjmp/bits/setjmp2.h: New file.
410 * setjmp/longjmp.c: If __libc_siglongjmp is defined, don't define any
411 of the aliases.
412 * setjmp/setjmp.h: Include <bits/setjmp2.h> if _FORTIFY_SOURCE is
413 defined.
414 * sysdeps/i386/____longjmp_chk.S: New file.
415 * sysdeps/x86_64/____longjmp_chk.S: New file.
416 * sysdeps/i386/__longjmp.S: If CHECK_ESP is defined, use it.
417 * sysdeps/x86_64/__longjmp.S: Likewise.
418
dc50b613
UD
419 * version.h: Bump for 2.11 development.
420
774f5a30
UD
421 * elf/check-execstack.c: New file.
422 * elf/Makefile: Add rules to build and run check-execstack.
423
deb84c43
UD
4242009-05-10 Ulrich Drepper <drepper@redhat.com>
425
426 * version.h (VERSION): Bump to 2.10.1.
427
428 * nss/getXXbyYY_r.c: If NO_COMPAT_NEEDED is defined don't define any
429 compatibility functions.
430 * nss/getXXent_r.c: Likewise.
431 * gshadow/getsgent_r.c: Define NO_COMPAT_NEEDED.
432 * gshadow/getsgnam_r.c: Likewise.
433 * gshadow/Version: Remove duplicate entries.
434
435 * sysdeps/x86_64/cacheinfo.c (intel_02_cache_info): Add missing entries
436 for recent processor.
437 * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_cache_info):
438 Likewise.
439
deb318c2
UD
4402009-05-09 Ulrich Drepper <drepper@redhat.com>
441
442 * version.h (VERSION): Bump for 2.10 release.
443 * include/features.h (__GLIBC_MINOR__): Bump to 10.
444
eb29449a
UD
445 * Makeconfig: Undo last change. Add asflags-cpu to ASFLAGS in the
446 same place we add ASFLAGS-config.
447
cf4f16cc
UD
4482009-05-05 Aurelien Jarno <aurelien@aurel32.net>
449
450 [BZ #10128]
451 * resolv/res_query.c (__libc_res_nquery): If one query returns NOTIMP
452 or FORMERR and the other NOERROR, don't raise an error.
453
23b6b466
UD
4542009-05-06 Ryan S. Arnold <rsa@us.ibm.com>
455
456 [BZ #10118]
457 * Makeconfig (+asflags): New variable based upon ASFLAG or
458 asflags-cpu.
459 (ASFLAGS): Add override to set ASFLAGS to +asflags.
460 * config.make.in (asflags-cpu): Add variable based upon
461 @libc_cv_cc_submachine@ to propagate -mcpu=CPU from --with-cpu=CPU to
462 the assembler.
463 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/setcontext.S:
464 Remove unneeded file now that the assembler emits _ARCH_PWR6 and
465 recognizes power6 instruction set due to passing -mcpu=power6 from
466 --with-cpu=power6 when compiling .S files.
467 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/swapcontext.S:
468 Likewise.
469 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/setcontext.S:
470 Likewise.
471 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/swapcontext.S:
472 Likewise.
473
15417de3
UD
4742009-05-09 Jakub Jelinek <jakub@redhat.com>
475
476 * string/stratcliff.c (do_test): Test for zero length
477 STRNLEN, MEMCHR, STRNCPY, STPNCPY, MEMCPY, MEMPCPY and memccpy
478 at the end of the page.
479
b5f7c4ca
UD
4802009-05-08 Ulrich Drepper <drepper@redhat.com>
481
4300afc1
UD
482 * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_AT_RANDOM.
483
2221e33e
UD
484 * sysdeps/x86_64/memchr.S: Handle invalid buffer pointers when
485 count is zero.
486
b5f7c4ca
UD
487 * po/da.po: Update from translation team.
488
1765abb3
UD
4892009-05-05 Jakub Jelinek <jakub@redhat.com>
490
491 * io/sys/stat.h (fstatat64): Guard prototype with __USE_LARGEFILE64,
492 guard __extern_inline wrapper with __USE_ATFILE instead of __USE_GNU.
2221e33e 493
b5f7c4ca
UD
4942009-05-05 Ulrich Drepper <drepper@redhat.com>
495
496 * sysdeps/unix/sysv/linux/sys/personality.h: Add ADDR_COMPAT_LAYOUT
497 and READ_IMPLIES_EXEC.
498
4992009-05-04 Ulrich Drepper <drepper@redhat.com>
500
501 * po/da.po: Update from translation team.
502
667712b8
JJ
5032009-04-29 Jakub Jelinek <jakub@redhat.com>
504
505 * sysdeps/unix/sysv/linux/ifaddrs.c: Revert unintended 2008-08-12
506 comment change.
507
6284c9f6
UD
5082009-04-27 Jakub Jelinek <jakub@redhat.com>
509
510 * locale/programs/locarchive.c (create_archive): Add MAP_PRIVATE
511 to MAP_ANON in PROT_NONE mmap64 call.
512 (open_archive): Likewise.
513 (file_data_available_p): Use mmap64 instead of mremap.
514 (enlarge_archive): Likewise. Update head if ah->addr changed.
515 Attempt to reserve address space after mmap64 region.
516
4ec77f72
UD
5172009-04-26 Ulrich Drepper <drepper@redhat.com>
518
f0e3c47f
UD
519 * sysdeps/ieee754/dbl-64/s_expm1.c: Set errno for overflow.
520 * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
521 * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
522
49768bb9
UD
523 * sysdeps/ieee754/k_standard.c (__kernel_standard): Pole errors in
524 atanh should set ERANGE.
525
e49dc847
UD
526 [BZ #10087]
527 * elf/dl-runtime.c (_dl_fixup): Use DL_FIXUP_VALUE_ADDR to access
528 result of lookup to make call to implement STT_GNU_IFUNC.
529 (_dl_profile_fixup): Likewise.
530 Patch by H.J. Lu <hjl.tools@gmail.com>.
531
1ac03a1e
UD
532 * nscd/connections.c (send_ro_fd): Define temporary variable to avoid
533 warning.
534
6cc8844f
UD
535 * sysdeps/unix/sysv/linux/dl-osinfo.h (dl_fatal): Remove inline
536 from definition.
537
538 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Don't define
539 label if it is not used.
540
541 * elf/dl-profile.c (_dl_start_profile): Define real-type variant
542 of gmon_hist_hdr and gmon_hdr structures and use them.
1ac03a1e 543 * elf/sprof.c: Likewise.
6cc8844f
UD
544
545 * elf/dl-load.c (open_verify): Add temporary variable to avoid
546 warning.
547
548 * nscd/nscd_helper.c (get_mapping): Avoid casts to avoid warnings.
549
550 * sunrpc/clnt_raw.c (clntraw_private_s): Use union in definition
551 to avoid cast.
552
553 * inet/rexec.c (rexec_af): Make sa2 a union to avoid warnings.
554 * inet/rcmd.c (rcmd_af): Make from a union of the various needed types
555 to avoid warnings.
556 (iruserok_af): Use ss_family instead of casts.
557
558 * gmon/gmon.c (write_hist): Define real-type variant of
559 gmon_hist_hdr structure and use it.
560 (write_gmon): Likewise for gmon_hdr.
561
562 * sysdeps/unix/sysv/linux/readv.c: Avoid declaration of replacement
563 function if we are not going to define it.
564 * sysdeps/unix/sysv/linux/writev.c: Likewise.
565
218555e9 566 * inet/inet6_option.c (option_alloc): Add temporary variable to
6cc8844f
UD
567 avoid warning.
568
569 * libio/strfile.h (struct _IO_streambuf): Use correct type and
570 name of VTable element.
571 * libio/iovsprintf.c: Avoid casts to avoid warnings.
572 * libio/iovsscanf.c: Likewise.
573 * libio/vasprintf.c: Likewise.
574 * libio/vsnprintf.c: Likewise.
575 * stdio-common/isoc99_vsscanf.c: Likewise.
576 * stdlib/strfmon_l.c: Likewise.
577 * debug/vasprintf_chk.c: Likewise.
578 * debug/vsnprintf_chk.c: Likewise.
579 * debug/vsprintf_chk.c: Likewise.
580
4ec77f72
UD
581 * nss/nsswitch.c (__nss_lookup_function): En/Decrypt cached
582 function pointers.
583
82a1a4da
UD
5842009-04-26 Jakub Jelinek <jakub@redhat.com>
585
586 * sysdeps/ieee754/dbl-64/s_tan.c (tan): Fix -Wsequence-point warnings.
587
db6edfb3
UD
5882009-04-25 Ulrich Drepper <drepper@redhat.com>
589
27be9b92
UD
590 * posix/bits/posix1_lim.h: Cleanup namespace a bit.
591
337c2708
UD
592 * sysdeps/i386/fpu/s_tan.S: Set errno for ±Inf.
593 * sysdeps/i386/fpu/s_tanf.S: Likewise.
594 * sysdeps/i386/fpu/s_tanl.S: Likewise.
595 * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
596 * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
597 * sysdeps/x86_64/fpu/s_tanl.S: Likewise.
598 * math/libm-test.inc: Add tests for errno after tan calls with
599 ±Inf.
600
002a604f
UD
601 * sysdeps/ieee754/k_standard.c (__kernel_standard): Use correct
602 errno value vor pow(+-0,neg).
603 * math/libm-test.inc (pow_test): Add tests for errno value for
604 pole errors.
605
7095366d
UD
606 * math/w_fmod.c: Also handle x=±Inf as error.
607 * math/w_fmodf.c: Likewise.
608 * math/w_fmodl.c: Likewise.
609 * math/libm-test.inc (fmod_test): Add tests for errno after calls for
610 x=±Inf or y=0.
611
0c59a196
UD
612 * sysdeps/i386/fpu/s_cos.S: Set errno for ±Inf.
613 * sysdeps/i386/fpu/s_cosf.S: Likewise.
614 * sysdeps/i386/fpu/s_cosl.S: Likewise.
615 * sysdeps/i386/fpu/s_sin.S: Likewise.
616 * sysdeps/i386/fpu/s_sinf.S: Likewise.
617 * sysdeps/i386/fpu/s_sinl.S: Likewise.
618 * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
619 * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
620 * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
621 * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
622 * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
623 * sysdeps/x86_64/fpu/s_cosl.S: Likewise.
624 * sysdeps/x86_64/fpu/s_sinl.S: Likewise.
625 * math/libm-test.inc: Add tests for errno after sin/cos calls with
626 ±Inf.
627
4bbf8999
UD
628 * stdlib/strtod_l.c (round_and_return): We have to set errno to
629 ERANGE for underflows.
630 * stdlib/tst-strtod.c (tests): Two tests should set errno to ERANGE.
631
af9f1c48
UD
632 * stdio-common/stdio_lim.h.in (L_cuserid): Not part of POSIX since
633 the 2001 revision.
634
13327042
UD
635 * libio/tst-widetext.input: Remove surrogates.
636
c163ee23
UD
637 * include/features.h: _POSIX_C_SOURCE >= 200112L implies C99.
638
e971e76d 639 * sysdeps/ieee754/k_standard.c (__kernel_standard): Pole errors
81068e35 640 for lgamma should set errno to ERANGE, not EDOM.
e971e76d
UD
641 * math/libm-test.inc (lgamma_test): Check errno for pole errors.
642
c2d5bd5b
UD
6432009-04-24 Ulrich Drepper <drepper@redhat.com>
644
9c32c895
UD
645 [BZ #10093]
646 * iconv/gconv_simple.c (BODY for UTF-8 to INTERNAL): Don't accept
647 UTF-16 surrogates.
648
c9edc889
UD
649 * locale/programs/locarchive.c (enlarge_archive): Conserve address
650 space when temporarily mapping the whole content of the old file.
651
c2d5bd5b
UD
652 [BZ #10100]
653 * misc/hsearch_r.c (hsearch_r): Add back ensurance that hval is
654 not zero.
655
f397be12
UD
6562009-04-24 Jakub Jelinek <jakub@redhat.com>
657
658 * iconvdata/sjis.c (BODY): Don't advance inptr before
659 STANDARD_FROM_LOOP_ERR_HANDLER (2) for 2 byte invalid input.
660 Use STANDARD_FROM_LOOP_ERR_HANDLER with 2 instead of 1 for
661 two byte chars.
662
705341a9
UD
6632009-04-24 Ulrich Drepper <drepper@redhat.com>
664
665 * locale/locarchive.h (struct locarhandle): Rename len field to
666 mmaped and add new reserved field.
667 * locale/programs/locarchive.c (RESERVE_MMAP_SIZE): Define.
668 (create_archive): Reserve address space and then map file into it.
669 (open_archive): Likewise.
670 (file_data_available_p): New function.
671 (compare_from_file): New function.
672 (close_archive): Adjust to member name changes.
673 (add_locale): Before comparing locale data, check it is mapped.
674 Otherwise fall back to reading from the file.
675
57d2da1c
UD
6762009-04-23 H.J. Lu <hongjiu.lu@intel.com>
677
678 * stdio-common/psiginfo.c: Include <errno.h>.
679
3d855f75
UD
6802009-04-23 Ulrich Drepper <drepper@redhat.com>
681
fe12c798
UD
682 [BZ #9920]
683 * stdlib/random_r.c (__srandom_r): Change type of word to int32_t
684 to get consistency between 32 and 64 bit architectures.
685
3d855f75
UD
686 [BZ #10052]
687 * sysdeps/unix/make-syscalls.sh: Add rule to create target
688 directory for dummy syscall rules.
689 Patch by Chris Steinbroner <hesh@pobox.com>.
690
95bf537f
UD
6912009-04-23 Aurelien Jarno <aurelien@aurel32.net>
692
693 [BZ #10092]
694 * sysdeps/unix/sysv/linux/sys/mount.h: Define MNT_DETACH and
695 MNT_EXPIRE.
696
7f8a28ef
UD
6972009-04-23 Ulrich Drepper <drepper@redhat.com>
698
699 * sysdeps/unix/sysv/linux/preadv.c: The kernel API changed. Adjust.
700 * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
701
7022009-04-23 Jakub Jelinek <jakub@redhat.com>
703
704 * sysdeps/posix/pwritev.c (PWRITEV): Fix up comment. Copy
705 data from vector to temporary buffer and call PWRITEV after it
706 instead of vice versa.
707 * sysdeps/posix/preadv.c: Fix up comment.
708 * misc/preadv.c: Likewise.
709 * misc/preadv64.c: Likewise.
710 * misc/pwritev.c: Likewise.
711 * misc/pwritev64.c: Likewise.
712 * misc/sys/uio.h (preadv, pwritev, preadv64, pwritev64): Likewise.
713
829fea46
UD
7142009-04-23 Ulrich Drepper <drepper@redhat.com>
715
c7e74e59
UD
716 * shadow/sgetspent_r.c (__sgetspent_r): Recognize too small buffers.
717
3b055b47
UD
718 * shadow/Makefile (tests): Add tst-shadow.
719 * shadow/tst-shadow.c: New file.
720
829fea46
UD
721 [BZ #9955]
722 * gshadow/Makefile: New file.
723 * gshadow/Versions: New file.
724 * gshadow/fgetsgent.c: New file.
725 * gshadow/fgetsgent_r.c: New file.
726 * gshadow/getsgent.c: New file.
727 * gshadow/getsgent_r.c: New file.
728 * gshadow/getsgnam.c: New file.
729 * gshadow/getsgnam_r.c: New file.
730 * gshadow/gshadow.h: New file.
731 * gshadow/putsgent.c: New file.
732 * gshadow/sgetsgent.c: New file.
733 * gshadow/sgetsgent_r.c: New file.
734 * gshadow/tst-gshadow.c: New file.
735 * include/gshadow.h: New file.
736 * Makeconfig (all-subdirs): Add gshadow.
737 * Makefile (installed-headers): Add gshadow/gshadow.h.
738 * nss/Makefile (databases): Add sgrp.
739 * nss/Versions: Add gshadow functions as private exports.
740 * nss/nsswitch.conf: Add gshadow entry.
741 * nss/sgrp-lookup.c: New file.
742 * nss/nss_files/files-parse.c: Add STRING_LIST macro. Rewrite
743 parse_list to handle STRING_LIST and TRAILING_LIST_PARSER.
744 * nss/nss_files/files-sgrp.c: New file.
745 * sysdeps/generic/paths.h: Add _PATH_GSHADOW.
746 * sysdeps/unix/sysv/linux/paths.h: Likewise.
747
debafa10
UD
7482009-04-22 Ulrich Drepper <drepper@redhat.com>
749
750 * stdio-common/printf.h: Add missing const to register_printf_modifier.
751 * stdio-common/reg-modifier.c: Likewise.
752
7532009-04-22 Andrew Stubbs <ams@codesourcery.com>
754
755 * sysdeps/sh/sh4/setjmp.S (__sigsetjmp): Adjust JB_SIZE when there
756 is no FPU.
757
0e04c0b5
UD
7582009-04-20 Ulrich Drepper <drepper@redhat.com>
759
d43f10e7 760 [BZ #10086]
1c376f5b
UD
761 * sysdeps/unix/sysv/linux/sys/timex.h: Add definitions from kernel
762 headers up to 2.6.30.
763
0e04c0b5
UD
764 * po/ca.po: Update from translation team.
765
a245eafd
UD
7662009-04-19 Ulrich Drepper <drepper@redhat.com>
767
768 [BZ #10069]
769 * elf/dl-open.c (dl_open_worker): We cannot guarantee that we can load
770 an object that uses static TLS if the TLS modid is higher than the
771 reserve we always allocate. At least for multi-threaded code.
772
0588a9cb
UD
7732009-04-18 Ulrich Drepper <drepper@redhat.com>
774
153aa31b
UD
775 * stdlib/strfmon_l.c (__vstrfmon_l): Don't wrap when computing width.
776 Numerically stable check for valid width.
777
59a7162b
UD
778 * locale/programs/locarchive.c (open_archive): Map the entire file
779 and not just the administrative data.
780 (add_locale): When we find a hash sum match compare the content
781 to be sure.
782
0588a9cb
UD
783 * malloc/malloc.c (malloc_info): Output address space information.
784
17a5b24e
UD
7852009-04-17 Ulrich Drepper <drepper@redhat.com>
786
da2d2fb6
UD
787 * malloc/malloc.c (malloc_info): Also output system memory information.
788
11cad88c
UD
789 * sysdeps/unix/sysv/linux/kernel-features.h: All supported
790 architectures have preadv/pwritev in 2.6.30.
791
571ac26f
UD
792 * sysdeps/posix/preadv.c: Reading of zero bytes is no error.
793 * sysdeps/posix/readv.c: Likewise.
794 Reported by Markus Armbruster <armbru@redhat.com>.
795
17a5b24e
UD
796 * malloc/hooks.c (top_check): Force hook value into register.
797
57ec6442
RM
7982009-04-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
799
800 * elf/rtld.c (dl_main): Really call _dl_sysdep_start_cleanup after all
801 calls to _dl_relocate_object.
802
df77455c
UD
8032009-04-16 Ulrich Drepper <drepper@redhat.com>
804
805 [BZ #9957]
806 * malloc/malloc.c (force_reg): Define.
807 (sYSMALLOc): Load hook variable into variable
808 before test and force into register.
809 (sYSTRIm): Likewise.
810 (public_mALLOc): Force hook value into register.
811 (public_fREe): Likewise.
812 (public_rEALLOc): Likewise.
813 (public_mEMALIGn): Likewise.
814 (public_vALLOc): Likewise.
815 (public_pVALLOc): Likewise.
816 (public_cALLOc): Likewise.
817 (__posix_memalign): Likewise.
818 * malloc/arena.c (ptmalloc_init): Load hook variable into variable
819 before test and force into register.
820 * malloc/hooks.c (top_check): Likewise.
3b055b47 821 (public_sET_STATe): Pretty printing.
df77455c
UD
822
823 * resolv/res_send.c (send_dg): Don't just ignore the result we got
824 in case we only receive one reply in single-request mode.
825
733ca93a
JJ
8262009-04-16 Jakub Jelinek <jakub@redhat.com>
827
828 * elf/dl-open.c (_dl_open): Bump GL(dl_nns) to 1 if no libraries
829 are dlopened in statically linked program even for __LM_ID_CALLER.
830
d0e81f10
UD
8312009-04-16 Ulrich Drepper <drepper@redhat.com>
832
833 * resolv/res_send.c (send_dg): Don't switch into single-request
834 mode if we already are in it.
835
6a3d03ff
UD
8362009-04-15 Ulrich Drepper <drepper@redhat.com>
837
838 * sysdeps/unix/sysv/linux/getsysstats.c (next_line): Make sure there
839 are always at least 4 bytes in the returned line.
840
8412009-04-15 Jakub Jelinek <jakub@redhat.com>
842
843 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Check
844 __libc_use_alloca (8192), if the stack is too small use 512 bytes
845 instead of 8K. Stop searching in /proc/stat after hitting first
846 line not starting with cpu.
847 (next_line): Truncate too long
848 lines at buffer size * 3/4 instead of pretending there were line
849 breaks inside of large lines.
850
ae650a41
UD
8512009-04-14 Ulrich Drepper <drepper@redhat.com>
852
853 * sysdeps/x86_64/mp_clz_tab.c: New file.
854
353f2107
UD
8552009-03-17 Ryan S. Arnold <rsa@us.ibm.com>
856 Ulrich Drepper <drepper@redhat.com>
857
858 * sysdeps/unix/sysv/linux/fallocate.c: Handle old kernel headers.
859 * sysdeps/unix/sysv/linux/fallocate64.c: Likewise.
e775ec11 860 * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: Likewise.
353f2107 861
fc0c5705
UD
8622009-03-25 Andrew Stubbs <ams@codesourcery.com>
863
864 * sysdeps/sh/libc-tls.c: New file.
865
866 * sysdeps/sh/bits/setjmp.h (__jmp_buf): Give name to structure type.
867
237a8867
RM
8682009-04-14 Roland McGrath <roland@redhat.com>
869
870 * elf/elf.h: Add various missing ARM constants, to match binutils.
871
893a5fd4
UD
8722009-04-14 Ulrich Drepper <drepper@redhat.com>
873
874 Optimizations from GMP.
875 * sysdeps/x86_64/add_n.S: New file.
876 * sysdeps/x86_64/addmul_1.S: New file.
877 * sysdeps/x86_64/lshift.S: New file.
878 * sysdeps/x86_64/mul_1.S: New file.
879 * sysdeps/x86_64/rshift.S: New file.
880 * sysdeps/x86_64/sub_n.S: New file.
881 * sysdeps/x86_64/submul_1.S: New file.
882
e42e88ab
JJ
8832009-04-14 Jakub Jelinek <jakub@redhat.com>
884
885 * sysdeps/powerpc/powerpc32/elf/start.S: Ensure .data is non-empty.
886 * sysdeps/powerpc/powerpc64/elf/start.S: Likewise.
887 * sysdeps/sparc/sparc32/elf/start.S: Likewise.
888 * sysdeps/sparc/sparc64/elf/start.S: Likewise.
889
b8a3bd82
UD
8902009-04-14 Ulrich Drepper <drepper@redhat.com>
891
892 * sysdeps/unix/sysv/linux/kernel-features.h: SH also has
893 preadv/pwritev.
894
84aa52d7
UD
8952009-04-13 Ulrich Drepper <drepper@redhat.com>
896
897 * sysdeps/x86-64/strrchr.S: New file.
898
9d26efa9
UD
8992009-04-10 Ulrich Drepper <drepper@redhat.com>
900
901 * stdio-common/printf.h (struct printf_info): Add user element.
902 New types printf_arginfo_size_function, printf_va_arg_function.
903 Declare register_printf_specifier, register_printf_modifier,
904 register_printf_type.
905 * stdio-common/printf-parse.h (struct printf_spec): Add size element.
906 (union printf_arg): Add pa_user element.
907 Adjust __printf_arginfo_table type.
908 Add __printf_va_arg_table, __printf_modifier_table,
909 __handle_registered_modifier_mb, and __handle_registered_modifier_wc
910 declarations.
911 * stdio-common/printf-parsemb.c: Recognize registered modifiers.
912 If registered arginfo call failed try normal specifier.
913 * stdio-common/printf-prs.c: Pass additional parameter to arginfo
914 function.
915 * stdio-common/Makefile (routines): Add reg-modifier and reg-type.
916 * stdio-common/Versions: Export register_printf_modifier,
917 register_printf_type, and register_printf_specifier for GLIBC_2.10.
918 * stdio-common/reg-modifier.c: New file.
919 * stdio-common/reg-type.c: New file.
920 * stdio-common/reg-printf.c (__register_printf_specifier): New
921 function. Mostly the old __register_printf_function function but
922 uses locking and type of third parameter changed.
923 (__register_printf_function): Implement using
924 __register_printf_specifier.
925 * stdio-common/vfprintf.c (vfprintf): Collect argument sizes in
926 calls to arginfo functions. Allocate enough memory for user-defined
927 types. Call new va_arg functions to get user-defined types.
928 Try installed handlers even for existing format specifiers first.
929
28b2771a
UD
9302009-04-09 Ulrich Drepper <drepper@redhat.com>
931
f140a0d5
UD
932 * sysdeps/x86_64/rawmemchr.S: New file.
933
e9b4d069 934 * stdio-common/vfprintf.c (vfprintf): Slightly more compact code.
1d498daa 935 Simplified code and possible copy problem fixed.
e9b4d069 936
f9fe75e9 937 * sysdeps/unix/sysv/linux/preadv.c: Avoid prototype for static
24030b0f 938 function if it is not defined. Add some necessary casts.
f9fe75e9
UD
939 * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
940
28b2771a
UD
941 * sysdeps/unix/sysv/linux/kernel-features.h: SPARC and IA64 also
942 have preadv/pwritev in 2.6.30.
943
4c8b8cc3
UD
9442009-04-08 Ulrich Drepper <drepper@redhat.com>
945
bb066545
UD
946 * malloc/malloc.c (malloc_info): New function.
947 * malloc/malloc.h: Declare it.
948 * malloc/Versions: Export malloc_info for GLIBC_2.10.
949
0f9c8b48
UD
950 * sysdeps/unix/sysv/linux/preadv64.c (PREAD): Use __libc_pread64
951 to avoid PLT slot.
952
4c8b8cc3
UD
953 * malloc/malloc.c (_int_realloc): Add parameter with old block
954 size. Remove duplicated test. Don't handle mmap'ed blocks here.
955 Adjust all callers.
956 * malloc/hooks.c (realloc_check): Adjust _int_realloc call.
957
ddba0f17
UD
9582009-04-07 Ulrich Drepper <drepper@redhat.com>
959
cd57745b
UD
960 * sysdeps/x86_64/strchrnul.S: New file.
961
3db6c9a8 962 * crypt/Makefile (LDLIBS-crypt.so): Use this variable instead of
cd57745b 963 depending libcrypt on -lfreebl3.
3db6c9a8 964
1a2ec17b
UD
965 * sysdeps/unix/sysv/linux/kernel-features.h: Power also has
966 preadv/pwritev in 2.6.30.
967
bb066545 968 * resolv/nss_dns/dns-host.c (getanswer_r): Use strcasecmp
c6807d38 969 instead of __strcasecmp.
c6807d38 970
ddba0f17 971 * string/stratcliff.c (do_test): Add memchr tests..
481f9eca 972 * wcsmbs/wcsatcliff.c (MEMCHR): Define.
ddba0f17
UD
973 * sysdeps/x86_64/memchr.S: Fix handling of end of buffer after
974 first read quad word.
975
ae061910
UD
9762009-04-06 Ulrich Drepper <drepper@redhat.com>
977
4bcb2658
UD
978 * string/strverscmp.c (__strverscmp): Fix last cleanups.
979 * string/tst-svc.input: Add new test case.
980 * string/tst-svc.expect: Adjust.
981 * string/Makefile: Don't ignore tst-svc error.
982
322e23db
UD
983 * sysdeps/x86_64/memchr.S: New file.
984
ae061910
UD
985 * resolv/resolv.h (RES_SNGLKUP): Define.
986 * resolv/res_init.c (res_setoptions): Recognize single-request option.
987 * resolv/res_send.c (send_dg): If we sent two requests at once and
988 only get one reply before timeout switch to mode where we send the
989 second request only after the first answer has been received.
990
a152f366
UD
9912009-04-05 Ulrich Drepper <drepper@redhat.com>
992
993 * sysdeps/x86_64/strlen.S: Optimize by using SSE2 instructions.
1df6f9d8 994 * sysdeps/x86_64/strchr.S: Likewise.
a152f366 995
2dbe6afe
UD
9962009-04-03 Ulrich Drepper <drepper@redhat.com>
997
c0bac8b0
UD
998 * configure.in: We need to test for the compiler earlier.
999
e109c612
UD
1000 * misc/Makefile (routines): Add preadv, preadv64, pwritev, pwritev64.
1001 * misc/Versions: Export preadv, preadv64, pwritev, pwritev64 for
1002 GLIBC_2.10.
1003 * misc/sys/uio.h: Declare preadv, preadv64, pwritev, pwritev64.
1004 * sysdeps/unix/sysv/linux/kernel-features.h: Add entries for preadv
1005 and pwritev.
1006 * misc/preadv.c: New file.
1007 * misc/preadv64.c: New file.
1008 * misc/pwritev.c: New file.
1009 * misc/pwritev64.c: New file.
1010 * sysdeps/posx/preadv.c: New file.
1011 * sysdeps/posx/preadv64.c: New file.
1012 * sysdeps/posx/pwritev.c: New file.
1013 * sysdeps/posx/pwritev64.c: New file.
1014 * sysdeps/unix/sysv/linux/preadv.c: New file.
1015 * sysdeps/unix/sysv/linux/preadv64.c: New file.
1016 * sysdeps/unix/sysv/linux/pwritev.c: New file.
1017 * sysdeps/unix/sysv/linux/pwritev64.c: New file.
1018 * sysdeps/unix/sysv/linux/wordsize-64/preadv64.c: New file.
1019 * sysdeps/unix/sysv/linux/wordsize-64/pwritev64.c: New file.
1020
7166c77a
UD
1021 * sysdeps/unix/sysv/linux/readv.c (__libc_readv): Fix calling of
1022 compatibility code.
1023 * sysdeps/unix/sysv/linux/writev.c (__libc_writev): Likewise.
1024
2dbe6afe
UD
1025 * sysdeps/unix/sysv/linux/kernel-features.h: Define
1026 __ASSUME_COMPLETE_READV_WRITEV.
1027 * sysdeps/unix/sysv/linux/readv.c: No need for userlevel fallback
1028 with modern kernels.
1029 * sysdeps/unix/sysv/linux/writev.c: Likewise.
1030
1031 * sysdeps/posix/readv.c: Since read is a cancellation point we have
1032 to free a possible malloced buffer in case of cancellation.
1033 * sysdeps/posix/writev.c: Likewise for write.
1034
ff886b82
UD
10352009-04-02 Ulrich Drepper <drepper@redhat.com>
1036
a065c007
UD
1037 * sysdeps/unix/sysv/linux/bits/socket.h: Add missing protocol numbers.
1038
ff886b82
UD
1039 * configure.in: Recognize --enable-nss-crypt.
1040 * config.make.in: Add nss-crypt entry.
1041 * crypt/Makefile: If nss-crypt==yes, don't build md5.c, sha256.c,
1042 sha512.c. Don't run md5test, sha256test, sha512test. Pass -DUSE_NSS
1043 and include path for NSS directory to compiler for md5-crypt,
1044 sha256-crypt, sha512-crypt. Link libcrypt.so with -lfreebl3.
1045 * crypt/md5-crypt.c: If USE_NSS is defined, don't use local hash
1046 function implementation, use NSS. Introduce wrappers around the
1047 hash function calls. Little code size optimization.
1048 * crypt/sha256-crypt.c: Likewise.
1049 * crypt/sha512-crypt.c: Likewise.
1050 * scripts/check-local-headers.sh: Ignore nss3 directory.
1051
1052 * configure.in: Rename pic_default to libc_cv_pic_default.
1053 * config.make.in: Likewise.
1054
1800de36
RM
10552009-04-01 Roland McGrath <roland@redhat.com>
1056
1057 * elf/elf.h (R_SPARC_GLOB_JMP): New macro.
1058 (R_SPARC_GOTDATA_HIX22, R_SPARC_GOTDATA_LOX10): New macros.
1059 (R_SPARC_GOTDATA_OP_HIX22, R_SPARC_GOTDATA_OP_LOX10): Likewise.
1060 (R_SPARC_GOTDATA_OP, R_SPARC_H34): Likewise.
1061 (R_SPARC_SIZE32, R_SPARC_SIZE64): Likewise.
1062 (R_SPARC_GNU_VTINHERIT, R_SPARC_GNU_VTENTRY, R_SPARC_REV32): Likewise.
1063 (R_SPARC_NUM): Update.
1064 From Dave Miller <davem@davemloft.net>.
1065
7166c77a 10662009-04-01 Ulrich Drepper <drepper@redhat.com>
3ce976cd
UD
1067
1068 * sysdeps/unix/sysv/linux/sys/eventfd.h (EFD_SEMAPHORE): Define.
1069
20739e54
UD
10702009-03-31 Ulrich Drepper <drepper@redhat.com>
1071
22c83193
UD
1072 * elf/dl-open.c: Keep track of used name spaces and only iterate over
1073 those which are used.
1074 * elf/dl-addr.c: Likewise.
1075 * elf/dl-caller.c: Likewise.
1076 * elf/dl-fini.c: Likewise.
1077 * elf/dl-iteratephdr.c: Likewise.
1078 * elf/dl-libc.c: Likewise.
1079 * elf/dl-load.c: Likewise.
1080 * elf/dl-support.c: Likewise.
1081 * elf/dl-sym.c: Likewise.
1082 * elf/rtld.c: Likewise.
1083 * sysdeps/generic/ldsodefs.h: Likewise.
1084
20739e54
UD
1085 * elf/dl-load.c: Remove support for systems without MAP_ANON.
1086 * elf/dl-minimal.c: Likewise.
1087 * elf/dl-misc.c: Likewise.
1088 * elf/rtld.c: Likewise.
1089 * sysdeps/generic/ldsodefs.h: Likewise.
1090
db486995
UD
10912009-03-30 Ulrich Drepper <drepper@redhat.com>
1092
cb14424e
UD
1093 * elf/do-lookup.h (do_lookup_x): Minor optimization and cleanup.
1094 Avoid reuse of complex expression.
1095
db486995
UD
1096 * po/fr.po: Update from translation team.
1097
ae8d7b44
UD
10982009-03-16 Ulrich Drepper <drepper@redhat.com>
1099
1100 * include/dirent.h: Yet more changes to match sort function type
1101 change.
1102 * sysdeps/unix/sysv/linux/i386/alphasort64.c: Likewise.
1103 * sysdeps/unix/sysv/linux/i386/olddirent.h: Likewise.
1104 * sysdeps/unix/sysv/linux/i386/versionsort64.c: Likewise.
1105
8efb2f1c
UD
11062009-03-16 Thomas Schwinge <tschwinge@gnu.org>
1107
1108 * dirent/scandir64.c (scandir64): Adjust declaration to type change.
1109
d9822dbe
UD
11102009-03-16 Ulrich Drepper <drepper@redhat.com>
1111
1112 * nscd/connections.c (restart): Try to preserve the process name
1113 by reading the /proc/self/exe symlink and using the return name.
1114 Patch by Jeff Bastian <jbastian@redhat.com>.
1115
71a5bd3e
UD
11162009-03-15 Ulrich Drepper <drepper@redhat.com>
1117
2ca285b0
UD
1118 [BZ #9733]
1119 * elf/dl-load.c (_dl_map_object_from_fd): Only call audit hooks
1120 if we are not loading a new audit library.
1121 * elf/dl-reloc (_dl_relocate_object): Third parameter is now a bitmask.
1122 Only use profiling trampoline for auditing if we are not relocating
1123 an audit library.
1124 * elf/dl-open.c (dl_open_worker): Adjust _dl_relocate_object call.
1125 * elf/rtld.c: Likewise.
1126 * sysdeps/generic/ldsodefs.h: Adjust _dl_relocate_object prototype.
1127
7e342603
UD
1128 * elf/rtld.c (dl_main): Extend help message for --audit option.
1129
eee6b143
UD
1130 [BZ #9759]
1131 * dirent/dirent.h: Adjust prototypes of scandir, scandir64, alphasort,
1132 alphasort64, versionsort, and versionsort64 to POSIX 2008.
1133 * dirent/alphasort.c: Adjust implementation to type change.
1134 * dirent/alphasort64.c: Likewise.
1135 * dirent/scandir.c: Likewise.
1136 * dirent/versionsort.c: Likewise.
1137 * dirent/versionsort64.c: Likewise.
1138 * sysdeps/wordsize-64/alphasort.c: Add hack to hide alphasort64
1139 declaration.
1140 * sysdeps/wordsize-64/versionsort.c: Add hack to hide versionsort64
1141 declaration.
1142
cd2d01fa
UD
1143 [BZ #9880]
1144 * inet/inet6_rth.c (inet6_rth_reverse): Compute number of segments
1145 correctly. Set segleft member in output as required.
1146 Patch partly by Yang Hongyang <yanghy@cn.fujitsu.com>.
1147 * inet/tst-inet6_rth.c (do_test): Add tests for inet6_rth_reverse.
1148
906dd40d
UD
1149 [BZ #9881]
1150 * inet/inet6_rth.c (inet6_rth_add): Add some error checking.
1151 Patch mostly by Yang Hongyang <yanghy@cn.fujitsu.com>.
1152 * inet/Makefile (tests): Add tst-inet6_rth.
1153 * inet/tst-inet6_rth.c: New file.
1154
71a5bd3e
UD
1155 [BZ #5807]
1156 * string/strlen.c (strlen): Fix omission in the expression to test
1157 for NUL bytes.
1158
878b72c5
UD
11592009-03-14 Ulrich Drepper <drepper@redhat.com>
1160
fad070ab
UD
1161 * crypt/sha256test.c (main): Perform 100,000 'a' test in a second way.
1162
a42ad61b
UD
1163 * elf/dl-runtime.c (reloc_offset): Define.
1164 (reloc_index): Define.
1165 (_dl_fixup): Rename reloc_offset parameter to reloc_arg.
1166 (_dl_fixup_profile): Likewise. Use reloc_index instead of
1167 computing index from reloc_offset.
1168 (_dl_call_pltexit): Likewise.
1169 * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve): Just pass
1170 the relocation index to _dl_fixup.
1171 (_dl_runtime_profile): Likewise for _dl_fixup_profile and
1172 _dl_call_pltexit.
1173 * sysdeps/x86_64/dl-runtime.c: New file.
1174
1f7c90a7
UD
1175 [BZ #9893]
1176 * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix
906dd40d 1177 alignment of La_x86_64_regs. Store xmm parameters.
1f7c90a7
UD
1178 Patch mostly by Jiri Olsa <olsajiri@gmail.com>.
1179
45466462
UD
1180 [BZ #9913]
1181 * string/strverscmp.c (__strverscmp): Fix case of different digits
1182 in fractional part of string.
1183 Patch by Jingyu Liu <jyliu@fortinet.com>.
1184 * string/Makefile (tests): Add tst-svc2.
1185 * string/tst-svc2.c: New file.
1186
1187 * string/strverscmp.c (__strverscmp): Optimize size of tables.
1188
878b72c5
UD
1189 * locale/iso-639.def: Add Min Nan.
1190
f53713a8
UD
11912009-03-11 Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
1192
878b72c5 1193 [BZ #9948]
f53713a8
UD
1194 * elf/dl-sysdep.c (_dl_show_auxv): Add support for AT_BASE_PLATFORM.
1195
f81ce288
UD
11962009-03-14 Ulrich Drepper <drepper@redhat.com>
1197
f53713a8
UD
1198 * elf/dl-sysdep.c (auxvars): Compress data structure.
1199
f81ce288
UD
1200 * sysdeps/i386/dl-machine.h (elf_machine_rel): Implement
1201 STT_GNU_IFUNC handling.
1202 (elf_machine_rela): Likewise.
1203
425ce2ed
UD
12042009-03-13 Ulrich Drepper <drepper@redhat.com>
1205
1206 * config.h.in (USE_MULTIARCH): Define.
1207 * configure.in: Handle --enable-multi-arch.
1208 * elf/dl-runtime.c (_dl_fixup): Handle STT_GNU_IFUNC.
1209 (_dl_fixup_profile): Likewise.
1210 * elf/do-lookup.c (dl_lookup_x): Likewise.
1211 * sysdeps/x86_64/dl-machine.h: Handle STT_GNU_IFUNC.
1212 * elf/elf.h (STT_GNU_IFUNC): Define.
1213 * include/libc-symbols.h (libc_ifunc): Define.
1214 * sysdeps/x86_64/cacheinfo.c: If USE_MULTIARCH is defined, use the
1215 framework in init-arch.h to get CPUID values.
1216 * sysdeps/x86_64/multiarch/Makefile: New file.
1217 * sysdeps/x86_64/multiarch/init-arch.c: New file.
1218 * sysdeps/x86_64/multiarch/init-arch.h: New file.
1219 * sysdeps/x86_64/multiarch/sched_cpucount.c: New file.
1220
1221 * config.make.in (experimental-malloc): Define.
1222 * configure.in: Handle --enable-experimental-malloc.
1223 * malloc/Makefile: Handle experimental-malloc flag.
1224 * malloc/malloc.c: Implement PER_THREAD and ATOMIC_FASTBINS features.
1225 * malloc/arena.c: Likewise.
1226 * malloc/hooks.c: Likewise.
1227 * malloc/malloc.h: Define M_ARENA_TEST and M_ARENA_MAX.
1228
e7f110cd
UD
12292009-03-11 Ulrich Drepper <drepper@redhat.com>
1230
1231 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Add branch
1232 prediction. A few size optimizations.
1233
bd82a247
UD
12342009-03-10 Ulrich Drepper <drepper@redhat.com>
1235
1236 * time/tzset.c: Optimize a bit for size.
1237
a99e59d7
UD
12382009-03-10 Jakub Jelinek <jakub@redhat.com>
1239
1240 * include/stdio.h (fmemopen): Add libc_hidden_proto.
1241 * libio/fmemopen.c (fmemopen): Add libc_hidden_def.
1242
1243 * elf/sprof.c: Avoid warning about multi-line comment.
1244
686f8c9d
UD
12452009-03-10 Ulrich Drepper <drepper@redhat.com>
1246
1247 * time/tzset.c (__tzset_parse_tz): Use correct string when parsing
1248 DST name.
1249 * time/tst-posixtz.c: Add tests for quoted timezone names.
1250
7db0cc42
UD
12512009-03-10 Jakub Jelinek <jakub@redhat.com>
1252
1253 * posix/unistd.h (_POSIX_VERSION, _POSIX2_VERSION, _POSIX2_C_BIND,
1254 _POSIX2_C_DEV, _POSIX2_SW_DEV, _POSIX2_LOCALEDEF): Define to
1255 200809L instead of 200112L.
1256 (_XOPEN_VERSION): For __USE_XOPEN2K8 define to 700.
1257 * posix/tst-sysconf.c (STDVER): Define to 200809L instead of 200112L.
1258
eec4b454
UD
1259 * stdlib/quick_exit.c (quick_exit): Pass &__quick_exit_funcs
1260 instead of __quick_exit_funcs to __run_exit_handlers.
1261 * stdlib/at_quick_exit.c (at_quick_exit): Add attribute_hidden.
1262 * stdlib/exit.h (__run_exit_handlers): Add noreturn attribute.
1263 (__cxa_at_quick_exit): Remove attribute_hidden.
1264 * stdlib/exit.c (exit): Pass &__exit_funcs instead of __exit_funcs
1265 to __run_exit_handlers.
1266 * stdlib/cxa_at_quick_exit.c (__cxa_at_quick_exit): Remove
1267 attribute_hidden.
1268
d7276cee
UD
12692009-03-10 Ulrich Drepper <drepper@redhat.com>
1270
1271 * po/id.po: Update from translation team.
1272
1454da21
UD
12732009-02-18 Jakub Jelinek <jakub@redhat.com>
1274
1275 * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S: Use
1276 .machine push; .machine "power6" and .machine pop around mtfsf
1277 insns outside of _ARCH_PWR6 define.
1278 * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S: Likewise.
1279 * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S:
1280 Likewise.
1281 * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S:
1282 Likewise.
1283 * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (_SET_DI_FPSCR): Likewise.
1284 * sysdeps/powerpc/fpu/fenv_libc.h (fesetenv_register,
1285 relax_fenv_state): Likewise.
1286
130ca12e
UD
12872009-03-08 Ulrich Drepper <drepper@redhat.com>
1288
610e67ed
UD
1289 * stdlib/Makefile (routines): Add quick_exit, at_quick_exit, and
1290 cxa_at_quick_exit.
1291 (static-only-routines): Add at_quick_exit.
1292 * stdlib/Versions: Export quick_exit and __cxa_at_quick_exit for
1293 GLIBC_2.10.
1294 * stdlib/quick_exit.c: New file.
1295 * stdlib/at_quick_exit.c: New file.
1296 * stdlib/cxa_at_quick_exit.c: New file.
1297 * stdlib/cxa_atexit.c (__cxa_atexit): Move body to new function. Call
1298 it appropriately.
1299 (__internal_atexit): New function.
1300 (__new_exitfn): Now takes parameter to point to the list to use.
1301 * stdlib/cxa_finalize.c: Remove quick_exit handlers, don't call them.
1302 * stdlib/exit.c (__run_exit_handlers): New function. Split from...
1303 (exit): ...here. Just call __run_exit_handlers appropriately.
1304 * stdlib/exit.h: Declare __quick_exit_funcs, __run_exit_handlers,
1305 __internal_atexit, __cxa_at_quick_exit. Adjust __new_exitfn.
1306 * stdlib/on_exit.c: Adjust call to __new_exitfn.
1307 * stdlib/stdlib.h: Declare at_quick_exit and quick_exit.
1308
130ca12e
UD
1309 * po/id.po: Update from translation team.
1310
9a4f9d1f
UD
13112009-03-07 Ulrich Drepper <drepper@redhat.com>
1312
1313 * po/ru.po: Update from translation team.
1314
6d781c94
UD
13152009-03-04 Ulrich Drepper <drepper@redhat.com>
1316
1317 * po/nl.po: Update from translation team.
1318
e00c5ece
UD
13192009-03-03 Ulrich Drepper <drepper@redhat.com>
1320
99eb932f
UD
1321 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Declare fallocate{,64}.
1322 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
1323 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
1324 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
1325 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
1326 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
1327 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
1328
e00c5ece
UD
1329 * po/pl.po: Update from translation team.
1330
749f5cc9
UD
13312009-03-02 Ulrich Drepper <drepper@redhat.com>
1332
1b994772 1333 [BZ #7083]
749f5cc9
UD
1334 * sysdeps/unix/sysv/linux/fallocate.c: New file.
1335 * sysdeps/unix/sysv/linux/fallocate64.c: New file.
1336 * sysdeps/unix/sysv/linux/wordsize-64/fallocate64.c: New file.
1337 * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: New file.
1338 * sysdeps/unix/sysv/linux/i386/fallocate64.c: New file.
1339 * sysdeps/unix/sysv/linux/i386/fallocate.c: New file.
1340 * sysdeps/unix/sysv/linux/Versions: Export fallocate and fallocate64
1341 for GLIBC_2.10.
1342 * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
1343 Add fallocate and fallocate64.
1344
1345 * io/fcntl.h: Pretty printing.
1346
6219e3cc
JJ
13472009-03-02 Richard Guenther <rguenther@suse.de>
1348
1349 * misc/sys/cdefs.h (__extern_always_inline): Add __artificial__
1350 attribute also for non-C99 inline semantics variant.
1351
134a9766
UD
13522009-02-12 Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
1353
1354 * sysdeps/powerpc/powerpc32/power7/fpu/Implies: New file.
1355 * sysdeps/powerpc/powerpc32/power7/Implies: Likewise.
1356 * sysdeps/powerpc/powerpc64/power7/fpu/Implies: Likewise.
1357 * sysdeps/powerpc/powerpc64/power7/Implies: Likewise.
1358 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/fpu/Implies:
1359 Likewise.
1360 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/fpu/Implies:
1361 Likewise.
1362
95bc1633
UD
13632009-03-02 Ulrich Drepper <drepper@redhat.com>
1364
1365 * po/cs.po: Update from translation team.
1366
43ea48a5
UD
13672009-02-28 Ulrich Drepper <drepper@redhat.com>
1368
1369 * po/bg.po: Update from translation team.
1370 * po/sv.po: Likewise.
f5faa3b6 1371 * po/fi.po: Likewise.
45572c23 1372 * po/vi.po: Likewise.
43ea48a5 1373
e965d514
RM
13742009-02-27 Roland McGrath <roland@redhat.com>
1375
1376 * Makeconfig (%.v.i): Depend on Makeconfig.
1377 Exclude % lines from initial #-comment removal.
1378
56a9651f
UD
13792009-02-27 Ulrich Drepper <drepper@redhat.com>
1380
1381 * po/ko.po: Update from translation team.
1382
682825ce
RM
13832009-02-26 Roland McGrath <roland@redhat.com>
1384
1385 * shadow/lckpwdf.c (__lckpwdf): Move FLAGS inside block using it,
1386 avoids unused warning.
1387
a3c37506
UD
13882009-02-26 Andrew Stubbs <ams@codesourcery.com>
1389 SUGIOKA Toshinobu <sugioka@itonet.co.jp>
1390
1391 * sysdeps/unix/sysv/linux/sh/sys/procfs.h: Don't include signal.h,
1392 sys/ucontext.h and asm/elf.h. Include sys/user.h.
1393 * sysdeps/unix/sysv/linux/sh/sys/user.h: Don't include features.h
1394 and asm/user.h. Include asm/ptrace.h.
1395 (PTRACE_GETREGS, PTRACE_SETREGS, PTRACE_GETFPREGS,
1396 PTRACE_SETFPREGS, PTRACE_GETFDPIC, PTRACE_GETFDPIC_EXEC,
1397 PTRACE_GETFDPIC_INTERP, PTRACE_GETDSPREGS, PTRACE_SETDSPREGS):
1398 Undefine.
1399 (start_thread): Don't undefine.
1400 (elf_greg_t, ELF_NGREG, elf_fpregset_t, user_fpu_struct, user):
1401 Define.
1402
f503060b
UD
14032009-02-26 Ulrich Drepper <drepper@redhat.com>
1404
6cbe890a
UD
1405 * wctype/wctype.h: The *_l functions are in POSIX 2008.
1406 * wcsmbs/wchar.h: mbsnrtowcs, open_wmemstream, wcpcpy, wcpncpy,
1407 wcscasecmp, wcsdup, wcsncasecmp, wcsnlen, wcsnrtombs,
1408 wcscasecmp_l, wcsncasecmp_l, wcscoll_l, and wcsxfrm_l.
1409 * sysdeps/mach/hurd/bits/posix_opt.h: Reset value of macros from
1410 200112L to 200809L.
1411 * sysdeps/unix/sysv/linux/bits/posix_opt.h: Likewise.
1412 * posix/getconf.c (vars): Add _SC_THREAD_ROBUST_PRIO_INHERIT and
1413 _SC_THREAD_ROBUST_PRIO_PROTECT entries.
1414 * bits/confname.h: Add _SC_THREAD_ROBUST_PRIO_INHERIT and
1415 _SC_THREAD_ROBUST_PRIO_PROTECT.
1416 * posix/unistd.h: fexecve is in POSIX 2008.
1417 * time/time.h: strftime_l is in POSIX 2008.
1418 * io/sys/stat.h: futimens is in POSIX 2008.
1419 * string/strings.h: strcasecmp_l and strncasecmp_l are in POSIX 2008.
1420 * string/string.h: stpcpy, stpncpy, strndup, strnlen, strsignal,
1421 strcoll_l, strerror_l, and strxfrm_l are in POSIX 2008.
1422 * stdlib/stdlib.h: mkdtemp is in POSIX 2008.
f503060b
UD
1423 * libio/stdio.h: dprintf, fmemopen, getdelim, getline,
1424 open_memstream, and vdprintf are in POSIX 2008.
1425
2e6d6bac
UD
14262009-02-25 Ulrich Drepper <drepper@redhat.com>
1427
3e6b0a28 1428 * include/features.h: Define macros for XPG7/POSIX 2008.
77db439e
UD
1429 * ctype/ctype.h: The *_l functions are in POSIX 2008.
1430 * dirent/dirent.h: alphasort, dirfd, scandir, and fdopendir are in
1431 POSIX 2008.
1f04d005
UD
1432 * locale/langinfo.h: nl_langinfo_l is in POSIX 2008.
1433 * locale/xlocale.h: Define locale_t type.
1434 * locale/locale.h: duplocale, freelocale, newlocale, uselocale are
1435 in POSIX 2008. Don't define locale_t here.
1436 * stdlib/monetary.h: strfmon_l is in POSIX 2008.
3e6b0a28
UD
1437 * sysdeps/unix/sysv/linux/bits/stat.h: Protect UTIME_NOW and
1438 UTIME_OMIT only with __USE_ATFILE.
1f04d005
UD
1439 * signal/signal.h: Declare psignal and psiginfo for POSIX 2008.
1440 * stdio-common/psiginfo.c: New file.
1441 * stdio-common/psiginfo-data.h: New file.
1442 * stdio-common/psiginfo-define.h: New file.
1443 * stdio-common/Makefile (routines): Add psiginfo.
1444 * stdio-common/Versions: Export psiginfo for GLIBC_2.10.
3e6b0a28
UD
1445 * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
1446 * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Likewise.
1447 * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
1448 * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
1449 * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
1450 * io/sys/stat.h: Move mknodat definition into same conditional as
1451 mknod.
1452 * time/sys/time.h: futimesat is not among the functions accepted
1453 into the POSIX standard.
1454
2e6d6bac
UD
1455 * include/features.h: If no feature selection given and we select
1456 by default a POSIX mode, also define __USE_POSIX_IMPLICITLY.
1457 * posix/Versions: Export __posix_getopt.
1458 * posix/getopt.c (_getopt_initialize): Take additional parameter.
1459 Use it to alternatively initialize __posixly_correct.
1460 (_getopt_internal_r): Take addition parameter. Pass on to
1461 _getopt_initialize.
1462 (_getopt_internal): Take addition parameter. Pass on to
1463 _getopt_internal_r.
1464 (getopt): Pass additional zero to _getopt_internal.
1465 (__posix_getopt): New function.
1466 * posix/getopt.h: Add redirection for getopt.
1467 * posix/getopt1.c (getopt_long): Pass additional zero to
1468 _getopt_internal.
1469 (getopt_long_only): Likewise.
1470 (_getopt_long_r): Pass additional zero to _getopt_internal_r.
1471 (_getopt_long_only_r): Likewise.
1472 * posix/getopt_int.h: Adjust declarations of _getopt_internal and
1473 _getopt_internal_r.
1474
67108e40
UD
14752009-02-24 Ulrich Drepper <drepper@redhat.com>
1476
1477 * bits/confname.h: Define _SC_TRACE_EVENT_NAME_MAX, _SC_TRACE_NAME_MAX,
1478 _SC_TRACE_SYS_MAX, _SC_TRACE_USER_EVENT_MAX, _SC_XOPEN_STREAMS.
1479 * sysdeps/posix/sysconf.c (__sysconf): Handle
1480 _SC_TRACE_EVENT_NAME_MAX, _SC_TRACE_NAME_MAX, _SC_TRACE_SYS_MAX,
1481 _SC_TRACE_USER_EVENT_MAX, _SC_XOPEN_STREAMS.
1482
1cccb96f
RM
14832009-02-24 Roland McGrath <roland@redhat.com>
1484
1485 [BZ #9895]
1486 * README.template: Reworded not to use substituted version number.
1487 Renamed to ...
1488 * README: ... here (no longer generated).
1489 * Makefile (README): Target removed.
1490
82780cbe
UD
14912009-02-24 Ulrich Drepper <drepper@redhat.com>
1492
5be0a688 1493 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf):
77db439e 1494 /proc/sys/kernel/rtsig_max doesn't exist anymore, use getrlimit
5be0a688
UD
1495 instead.
1496
8c4a5f42
UD
1497 * io/sys/stat.h: The lstat functions have been mandatory since 2001.
1498
82780cbe
UD
1499 * time/tzset.c (tzset_internal): Correct parsing of TZ envvar.
1500
77c571dd
UD
15012009-02-22 Ulrich Drepper <drepper@redhat.com>
1502
1503 * po/bg.po: Update from translation team.
1504
d82a27f8
JJ
15052009-02-16 Jakub Jelinek <jakub@redhat.com>
1506
1507 * stdlib/monetary.h: Uglify function parameter names.
1508 * sunrpc/rpc/pmap_clnt.h: Likewise.
1509 * sunrpc/rpc/svc.h: Likewise.
1510 * sunrpc/rpc/xdr.h: Likewise.
1511 * sunrpc/rpc/clnt.h: Likewise.
1512 * resolv/netdb.h: Likewise.
1513 * resolv/arpa/nameser.h: Likewise.
1514 * resolv/resolv.h: Likewise.
1515 * argp/argp.h: Likewise.
1516 * locale/langinfo.h: Likewise.
1517 * io/sys/stat.h: Likewise.
1518 * posix/spawn.h: Likewise.
1519 * nis/rpcsvc/nislib.h: Likewise.
1520 * malloc/obstack.h: Likewise.
1521 * sysdeps/ia64/bits/link.h: Likewise.
1522 * sysdeps/i386/bits/link.h: Likewise.
1523 * sysdeps/s390/bits/link.h: Likewise.
1524 * sysdeps/powerpc/bits/link.h: Likewise.
1525 * sysdeps/x86_64/bits/link.h: Likewise.
1526 * sysdeps/sparc/bits/link.h: Likewise.
1527 * sysdeps/sh/bits/link.h: Likewise.
1528 * sysdeps/unix/sysv/linux/i386/sys/io.h: Likewise.
1529 * sysdeps/unix/sysv/linux/x86_64/sys/io.h: Likewise.
1530 * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: Likewise.
1531 * sysdeps/unix/sysv/linux/sys/eventfd.h: Likewise.
1532
58a7457e
JJ
15332008-12-01 Fredrik Unger <fred@tree.se>
1534
1535 * soft-fp/double.h [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_SEMIRAW_D,
1536 FP_UNPACK_SEMIRAW_DP): Use _FP_UNPACK_RAW_1 instead of
1537 _FP_UNPACK_RAW_2, fix up first argument.
1538
f43b4be6
UD
15392009-02-15 Ulrich Drepper <drepper@redhat.com>
1540
1541 * sysdeps/unix/sysv/linux/getsysstats.c (next_line): New function.
1542 (GET_NPROCS_PARSER): Change parameters and use next_line.
1543 (__get_nprocs): Rewrite to not use stdio routines.
1544 * sysdeps/unix/sysv/linux/sparc/getsysstats.c (GET_NPROCS_PARSER):
1545 Change parameters and use next_line.
1546
20e498bd
UD
15472009-02-13 Ulrich Drepper <drepper@redhat.com>
1548
1549 [BZ #5381]
1550 * nscd/nscd.h: Remove definitions and declarations for mem_in_flight.
1551 Change mempool_alloc prototype.
1552 * nscd/mem.c (gc): Don't handle mem_in_flight.
1553 (mempool_alloc): Third parameter now only indicates whether this is the
1554 first call (to allocate data) or not. If it is, get db rdlock.
1555 Release it on error. Don't handle mem_in_flight.
1556 * nscd/aicache.c (addhstaiX): Mark he parameter as const.
1557 Adjust third parameter of mempool_alloc calls.
1558 Nothing to do here in case mempool_alloc fails.
1559 Avoid local variable shadowing parameter. No need to get db rdlock
1560 before calling cache_add.
1561 * nscd/cache.c (cache_add): Adjust call to mempool_alloc. There is
1562 no mem_in_flight array anymore.
1563 * nscd/connections.c: Remove definition and handling of mem_in_flight.
1564 * nscd/grpcache.c (cache_addgr): Adjust third parameter of
1565 mempool_alloc calls. Mark he parameter as const. Nothing to do here
1566 in case mempool_alloc fails. No need to get db rdlock before calling
1567 cache_add.
1568 * nscd/hstcache.c (cache_addhst): Likewise.
1569 * nscd/initgrcache.c (addinitgroupsX): Likewise.
1570 * nscd/servicescache.c (cache_addserv): Likewise.
1571 * nscd/pwdcache.c (cache_addpw): Likewise. Remove some debugging code.
1572
d8111eac
UD
15732009-02-11 Ulrich Drepper <drepper@redhat.com>
1574
1575 * po/lt.po: Update from translation team.
1576
40e2fc8b
UD
15772009-02-10 Ulrich Drepper <drepper@redhat.com>
1578
1579 * elf/dl-load.c (open_verify): In case VALID_ELF_HEADER is
1580 defined, allow additional data to be added using the optional
1581 MORE_ELF_HEADER_DATA macro.
1582 * sysdeps/unix/sysv/linux/ldsodefs.h (VALID_ELF_HEADER,
1583 VALID_ELF_OSABI, VALID_ELF_ABIVERSION, MORE_ELF_HEADER_DATA): Define.
1584
6c03cd11
UD
15852009-02-08 Ulrich Drepper <drepper@redhat.com>
1586
1587 * include/atomic.h: Define catomic_and if not already defined.
1588 * sysdeps/x86_64/bits/atomic.h: Define catomic_and.
1589 * sysdeps/i386/i486/bits/atomic.h: Likewise.
1590
bc16e0c4
UD
15912009-02-07 Ulrich Drepper <drepper@redhat.com>
1592
78ac92ad
UD
1593 * malloc/malloc.c (_int_free): Second argument is now mchunkptr.
1594 Change all callers.
6dd6a580 1595 (_int_realloc): Likewise. Third argument is now padded size
78ac92ad 1596 All _int_* functions are now static.
6dd6a580 1597
78ac92ad
UD
1598 * malloc/hooks.c: Change all callers to _int_free and _int_realloc.
1599 * malloc/arena.c: Likewise.
1600 * include/malloc.h: Remove now unnecessary declarations of the _int_*
1601 functions.
1602
7dddb4bd
UD
1603 * sunrpc/rpc_common.c: We cannot move _null_auth into .rodata that
1604 easily.
1605
bfacf1af
UD
1606 * malloc/malloc.c: Add branch prediction for use of the hooks.
1607
bc16e0c4
UD
1608 * grp/compat-initgroups.c [NOT_IN_libc] (__libc_use_alloca): Define.
1609
26b62243
UD
16102009-02-06 Ulrich Drepper <drepper@redhat.com>
1611
1612 [BZ #7095]
1613 * bits/confname.h: Add SUSv7 macros for getconf environments.
1614 * bits/environments.h: Likewise.
1615 * sysdeps/unix/sysv/linux/i386/bits/environments.h: Likewise.
1616 * sysdeps/unix/sysv/linux/powerpc/bits/environments.h: Likewise.
1617 * sysdeps/unix/sysv/linux/s390/bits/environments.h: Likewise.
1618 * sysdeps/unix/sysv/linux/sparc/bits/environments.h: Likewise.
1619 * sysdeps/unix/sysv/linux/x86_64/bits/environments.h: Likewise.
1620 * posix/confstr.c: Handle SUSv5 and SUSv7 environments.
1621 * posix/getconf.c: Likewise.
1622 * posix/sysconf.c: Likewise.
1623 * sysdeps/posix/sysconf.c: Likewise.
1624 * posix/Makefile (getconf.speclist): Also collect SUSv5 and SUSv7
1625 environments.
1626
3fe4c5b3
UD
16272009-01-16 Petr Baudis <pasky@suse.cz>
1628
1629 [BZ #9753]
1630 * resolv/res_libc.c (__res_maybe_init): Call __res_vinit()
1631 even if we currently have zero nscount.
1632
cbbcaf23
UD
16332009-02-06 Ulrich Drepper <drepper@redhat.com>
1634
1a9dd4e4
UD
1635 [BZ #9781]
1636 * grp/compat-initgroups.c (compat_call): Switch to use malloc when
1637 the input line is too long.
1638
51f8846e
UD
1639 * po/Makefile (libc.pot): Add f_print as function taking c-format
1640 parameter.
1641
cbbcaf23
UD
1642 * debug/xtrace.sh: Unify translatable messages.
1643 * elf/ldd.bash.in: Likewise.
1644 * elf/sprof.c: Likewise.
1645 * locale/programs/locale.c: Likewise.
1646 * malloc/memusage.sh: Likewise.
1647 * nss/getent.c: Likewise.
1648
16492009-02-06 Joseph Myers <joseph@codesourcery.com>
1650
1651 * debug/pcprofiledump.c (print_version,
1652 argp_program_version_hook): New function.
1653 * elf/ldconfig.c (more_help): New function.
1654 (argp): Use it.
1655 * elf/sln.c (usage): New function.
1656 (main): Support --help and --version.
1657 * malloc/memusagestat.c (print_version): New function.
1658 (argp_program_version_hook): New variable.
1659 * nscd/nscd.c (more_help): New function.
1660 (argp): Use it.
1661 * posix/getconf.c (main): Send --version output to stdout.
1662 Support --help.
1663 * sunrpc/rpc_main.c (usage, options_usage): Take STREAM and STATUS
1664 arguments. All callers changed.
1665 (print_version): New function.
1666 (parseargs): Support --help and --version.
1667 * sunrpc/rpcinfo.c (usage): Take STREAM argument. All callers
1668 changed.
1669 (print_version): New function.
1670 (main): Use getopt_long. Support --help and --version.
1671 * sysdeps/unix/sysv/linux/lddlibc4.c (main): Support --help and
1672 --version.
1673
88a3b8f9
UD
16742009-02-06 Ulrich Drepper <drepper@redhat.com>
1675
e2e390fa
UD
1676 * malloc/memusage.c (DEFAULT_BUFFER_SIZE): Change to 32768.
1677 (update_data): Fix handling of wrapping back
c3ab42a8
UD
1678 to the beginning of the buffer.
1679
88a3b8f9
UD
1680 [BZ #9823]
1681 * stdio-common/psignal.c (psignal): Fix test for empty string.
1682
62f63c47
UD
16832009-02-05 Ulrich Drepper <drepper@redhat.com>
1684
4f7408c7
UD
1685 * include/rpc/auth.h: Use libc_hidden_proto for _null_auth.
1686 * sunrpc/rpc_common.c: Add libc_hidden_def for _null_auth. Also
1687 move _null_auth to .rodata.
1688
970aa10f
UD
1689 * time/tzset.c (__tzset_parse_tz): DST offset must also allow hour
1690 value of 24.
1691
52de761a
UD
1692 * intl/dcigettext.c (DCIGETTEXT): Avoid some code duplication.
1693
62f63c47
UD
1694 * sysdeps/unix/opendir.c (__alloc_dir): We have a lot more memory
1695 today than when the original code was written. Use larger
1696 buffers. This also makes it unnecessary to have stat information,
1697 if this causes extra efforts.
1698 (__opendir): In case O_DIRECTORY works, don't call fstat just for
1699 __alloc_dir.
1700
0899b889
UD
17012009-02-03 Andrew Stubbs <ams@codesourcery.com>
1702
1703 * sysdeps/sh/sh4/dl-trampoline.S: Only set HAVE_FPU if __SH_FPU_ANY__
1704 is set.
1705 * sysdeps/sh/sh4/setjmp.S: Support SH4-NOFPU.
1706 * sysdeps/sh/sh4/__longjmp.S: Likewise.
1707 * sysdeps/unix/sysv/linux/sh/sh4/getcontext.S: Likewise.
1708 * sysdeps/unix/sysv/linux/sh/sh4/setcontext.S: Likewise.
1709 * sysdeps/unix/sysv/linux/sh/sh4/swapcontext.S: Likewise.
1710 * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Likewise.
1711
22cc3f75
UD
17122009-02-04 Ulrich Drepper <drepper@redhat.com>
1713
1714 * po/ru.po: Update from translation team.
1715
a71433e7
UD
17162008-11-17 Nathan Sidwell <nathan@codesourcery.com>
1717
1718 * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (struct sigevent):
1719 Add _tid slot to maintain consistency with kernel.
1720
82f2e9c6 17212009-02-04 Ulrich Drepper <drepper@redhat.com>
3a2e9947 1722
82f2e9c6
UD
1723 * libio/wfileops.c (_IO_wfile_underflow): Fix handling of
1724 incomplete characters at end of input buffer.
1725 * libio/Makefile (tests): Add tst-fgetwc.
1726 * libio/tst-fgetwc.c: New file.
1727 * libio/tst-fgetwc.input: New file.
3a2e9947 1728
ba022c06
UD
17292009-02-02 Andrew Stubbs <ams@codesourcery.com>
1730
1731 * sysdeps/unix/sysv/linux/sh/Makefile (libm.so-no-z-defs): Define.
1732
1b14353e
UD
17332009-02-02 Ulrich Drepper <drepper@redhat.com>
1734
1735 [BZ #9793]
1736 * iconv/gconv_trans.c (__gconv_transliterate): Don't change
1737 *OUTBUFSTART unless the whole output fit into the buffer.
1738 * iconv/Makefile (tests): Add tst-iconv4.
1739 * iconv/tst-iconv4.c: New file.
1740
ebc22416
UD
17412009-02-01 Ulrich Drepper <drepper@redhat.com>
1742
1743 * sysdeps/x86_64/cacheinfo.c (intel_02_known): Add new descriptors.
1744 * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
1745
7c8a6732
UD
17462009-01-29 Andrew Stubbs <ams@codesourcery.com>
1747
1748 * elf/Makefile (ld.so): Adjust the sed script to insert _begin in to
1749 newer linker scripts.
1750
43149780
UD
17512009-01-30 Ulrich Drepper <drepper@redhat.com>
1752
1753 [BZ #7040]
1754 * sysdeps/unix/sysv/linux/sys/inotify.h: Second parameter of
1755 inotify_rm_watch should have type int.
1756
bd4ace0b
UD
17572009-01-06 Steven Munroe <sjmunroe@us.ibm.com>
1758
1759 * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp):
1760 Make aligned_restore_vmx a local symbol.
1761 * sysdeps/powerpc/powerpc64/__longjmp-common.S (__longjmp):
1762 Likewise.
1763
430902da
AJ
17642009-01-30 Andreas Jaeger <aj@suse.de>
1765
1766 * sysdeps/unix/sysv/linux/bits/shm.h (SHM_EXEC): Define.
1767 * sysdeps/unix/sysv/linux/ia64/bits/shm.h (SHM_EXEC): Define.
1768 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h (SHM_EXEC): Define.
1769 * sysdeps/unix/sysv/linux/s390/bits/shm.h (SHM_EXEC): Define.
1770 * sysdeps/unix/sysv/linux/sh/bits/shm.h (SHM_EXEC): Define.
1771 * sysdeps/unix/sysv/linux/sparc/bits/shm.h (SHM_EXEC): Define.
1772 * sysdeps/unix/sysv/linux/x86_64/bits/shm.h (SHM_EXEC): Define.
1773
b7219e53
UD
17742009-01-11 Ryan S. Arnold <rsa@us.ibm.com>
1775
1776 [BZ #9726]
1777 * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (_SET_DI_FPSCR,
1778 _SET_SI_FPSCR): Clobber fp0 to prevent erroneous test-case passes.
1779
17802009-01-08 Ryan S. Arnold <rsa@us.ibm.com>
1781
1782 [BZ #9726]
1783 * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S
1784 (__CONTEXT_FUNC_NAME): Fix mtfsf to use fp31 instead of fp0.
1785 * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S
1786 (__CONTEXT_FUNC_NAME): Fix mtfsf to use fp31 instead of fp0.
1787
a3bd2846
UD
17882009-01-11 Thomas Schwinge <tschwinge@gnu.org>
1789
1790 * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Use
1791 memcpy instead of memcmp.
1792 (_dl_setup_pointer_guard): Likewise.
1793
1fdd89a7
UD
17942009-01-30 Ulrich Drepper <drepper@redhat.com>
1795
1796 * malloc/malloc.c (sYSMALLOc): Don't use assert when detecting
1797 manipulated brk, use malloc_printerr.
1798 * misc/sbrk.c (__sbrk): Better error handling for nonsense
1799 requests.
1800
8585cb74
UD
18012009-01-30 Jakub Jelinek <jakub@redhat.com>
1802
1803 * string/string.h (memchr, strchr, strrchr, strpbrk, strstr, index,
1804 rindex): For C++ add inlines so that they can be recognized as
1805 builtins.
1806 * string/strings.h: Define correct C++ prototypes for gcc 4.4.
1807
d8387c7b
UD
18082009-01-29 Ulrich Drepper <drepper@redhat.com>
1809 Jakub Jelinek <jakub@redhat.com>
1810
cdf77dd8
UD
1811 * string/string.h: Define correct C++ prototypes for gcc 4.4.
1812 * wcsmbs/wchar.h: Likewise.
d8387c7b 1813
647925b2
UD
18142009-01-29 Ulrich Drepper <drepper@redhat.com>
1815
1816 * sysdeps/i386/stackinfo.h (stackinfo_get_sp): Define.
1817 (stackinfo_sub_sp): Define.
1818
5627534a
UD
18192009-01-28 Ulrich Drepper <drepper@redhat.com>
1820
fd537e53
UD
1821 [BZ #9750]
1822 * nscd/mem.c (gc): Use alloca_count to get the real stack usage.
1823 * include/alloca.h (alloca_account): Define.
1824 * sysdeps/x86_64/stackinfo.h (stackinfo_get_sp): Define.
1825 (stackinfo_sub_sp): Define.
1826
00f5df0e
UD
1827 * nscd/connections.c (nscd_init): If database file access fails
1828 check whether this is due to permission problems and bail in that
1829 case.
31d322a2 1830
5627534a
UD
1831 [BZ #9741]
1832 * nscd/mem.c (gc): Fix assignment of he_data in case malloc is used.
1833 Reported by Jun'ichi Nomura <j-nomura@ce.jp.nec.com>.
1834
a7bd183f
UD
18352009-01-14 Kaz Kojima <kkojima@rr.iij4u.or.jp>
1836
1837 * sysdeps/unix/sysv/linux/sh/sysdep.h (INTERNAL_SYSCALL):
1838 Add "t" to clobber list.
1839 (INTERNAL_SYSCALL_NCS): Likewise.
1840
1dd75769
UD
18412009-01-28 Ulrich Drepper <drepper@redhat.com>
1842
1843 * nss/getent.c (print_networks): Don't print comma between aliases.
1844
25e84177
UD
18452009-01-23 Ulrich Drepper <drepper@redhat.com>
1846
1847 * sysdeps/unix/sysv/linux/tst-clone.c (do_test): Avoid warning.
1848
1849 * misc/hsearch_r.c (hcreate_r): We need at least three elements in
1850 the hash table.
1851 * misc/Makefile (tests): Add bug-hsearch1.
1852 * misc/bug-hsearch1.c: New file.
1853
0699a0ca
RM
18542009-01-22 Roland McGrath <roland@redhat.com>
1855
1856 * Makeconfig (%.v.i): Strip trailing # comments,
1857 not only whole-line comments.
1858
965cb60a
UD
18592009-01-10 Ulrich Drepper <drepper@redhat.com>
1860
1861 * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Take
1862 one parameter. If non-NULL use it to initialize return value.
1863 (_dl_setup_pointer_guard): New function.
1864 * sysdeps/unix/sysv/linux/dl-osinfo.h: Likewise.
1865 * sysdeps/generic/ldsodefs.h: Declare _dl_random.
1866 * elf/rtld.c (security_init): Pass _dl_random to
1867 _dl_setup_stack_chk_guard. Call _dl_setup_pointer_guard to initialize
1868 pointer_chk_guard.
1869 * elf/dl-sysdep.c (_dl_random): New variable.
1870 (_dl_sysdep_start): Handle AT_RANDOM.
1871 (_dl_show_auxv): Likewise.
1872 * elf/dl-support.c (_dl_random): New variable.
1873 (_dl_aux_init): Handle AT_RANDOM.
1874 * csu/libc-start.c [!SHARED] (libc_start_main): Pass _dl_random
1875 to _dl_setup_stack_chk_guard.
1876
1877 * elf/elf.h (AT_RANDOM): Define AT_BASE_PLATFORM and AT_RANDOM.
1878
8be96dd1
RM
18792009-01-10 Roland McGrath <roland@redhat.com>
1880
1881 * nscd/nscd.c (parse_opt): Use argp_error for bad -i argument.
1882
157cd5ac
UD
18832009-01-08 Ulrich Drepper <drepper@redhat.com>
1884
9b1c750e
UD
1885 * sysdeps/i386/fpu/libm-test-ulps: Adjust expm1 errors.
1886
157cd5ac
UD
1887 [BZ #9706]
1888 * nss/nss_files/files-parse.c (strtou32): New function.
1889 (INT_FIELD): Use strotu32 instead of strtoul to unify behavior
1890 across 32-bit and 64-bit platforms.
1891 (INT_FIELD_MAYBE_NULL): Likewise.
1892
960af8c2
JJ
18932009-01-08 Jakub Jelinek <jakub@redhat.com>
1894
1895 [BZ #9720]
1896 * sysdeps/unix/sysv/linux/bits/resource.h (enum __rusage_who): Avoid
1897 comma after RUSAGE_CHILDREN if not -D_GNU_SOURCE.
1898 * sysdeps/unix/sysv/linux/sparc/bits/resource.h (enum __rusage_who):
1899 Likewise.
1900
76c7f2cd
UD
19012009-01-05 Paolo Bonzini <bonzini@gnu.org>
1902
16c124f7 1903 [BZ #697]
76c7f2cd
UD
1904 * posix/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
1905 being NULL also if there are no backreferences.
1906 * posix/rxspencer/tests: Add testcases.
1907
bdb56bac
UD
19082009-01-04 Paolo Bonzini <bonzini@gnu.org>
1909
16c124f7 1910 [BZ #9697]
bdb56bac
UD
1911 * posix/bug-regex17.c: Add testcases.
1912 * posix/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
1913 handling.
1914
0480c901
UD
19152009-01-05 Martin Schwidefsky <schwidefsky@de.ibm.com>
1916
1917 * sysdeps/unix/sysv/linux/s390/bits/libc-vdso.h: New file.
1918 * sysdeps/unix/sysv/linux/s390/gettimeofday.c: New file.
1919 * sysdeps/unix/sysv/linux/s390/init-first.c: New file.
1920 * sysdeps/unix/sysv/linux/s390/Makefile (sysdep_routines): Add dl-vdso
1921 for elf subdir.
1922 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (INLINE_VSYSCALL,
1923 INTERNAL_VSYSCALL, INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK,
1924 INTERNAL_SYSCALL_NCS, HAVE_CLOCK_GETRES_VSYSCALL and
1925 HAVE_CLOCK_GETTIME_VSYSCALL: Define.
1926 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
1927 * sysdeps/unix/sysv/linux/s390/Versions: New file.
1928
b3918c7d
UD
19292008-12-31 Paolo Bonzini <bonzini@gnu.org>
1930
1931 * posix/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
1932 * posix/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
1933 re_string_skip_chars, re_string_reconstruct): Likewise.
1934 * posix/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
1935
df9293cb
UD
19362008-12-31 Rafael Avila de Espindola <espindola@google.com>
1937
1938 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr2_r): Check and
1939 adjust the buffer alignment.
1940
c90c1e1c
RM
19412009-01-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
1942
1943 * sysdeps/mach/hurd/Makefile (sysdep_headers) [subdir=socket]:
1944 Add net/ethernet.h net/if_arp.h net/if_ether.h net/if_ppp.h
1945 net/route.h.
1946
1947 * hurd/report-wait.c (describe_number): Use __stpcpy to prepend
1948 flavor to description only when flavor is not NULL.
1949
1950 * hurd/hurdsig.c (signal_allowed): Unlock _hurd_dtable_lock
1951 mutex after SIGIO/SIGURG lookup loop.
1952
5aff6fdf
RM
19532009-01-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
1954
1955 * bits/resource.h (PRIO_PROCESS, PRIO_PGRP, PRIO_USER): Add macros.
1956
b2bcd249
UD
19572009-01-03 Ulrich Drepper <drepper@redhat.com>
1958
1959 * sysdeps/unix/sysv/linux/i386/sysdep.h: Describe 6th argument
1960 handling.
1961
d36ad871
UD
19622009-01-02 Ulrich Drepper <drepper@redhat.com>
1963
ebb2788e
UD
1964 * sysdeps/unix/sysv/linux/kernel-features.h
1965 (__ASSUME_FUTEX_CLOCK_REALTIME): Define.
1966
72098116
UD
1967 * wcsmbs/wcsnrtombs.c (__wcsnrtombs): Create temporary state object
1968 if no output is written.
1969
623d0bf5
UD
1970 * version.h: Bump to 2.10 development.
1971
d36ad871
UD
1972 * posix/getconf.c: Update copyright year.
1973 * nss/getent.c: Likewise.
1974 * iconv/iconvconfig.c: Likewise.
1975 * iconv/iconv_prog.c: Likewise.
1976 * elf/ldconfig.c: Likewise.
1977 * catgets/gencat.c: Likewise.
1978 * csu/version.c: Likewise.
1979 * elf/ldd.bash.in: Likewise.
1980 * elf/sprof.c (print_version): Likewise.
1981 * locale/programs/locale.c: Likewise.
1982 * locale/programs/localedef.c: Likewise.
1983 * nscd/nscd.c (print_version): Likewise.
1984 * debug/xtrace.sh: Likewise.
1985 * malloc/memusage.sh: Likewise.
1986 * malloc/mtrace.pl: Likewise.
1987 * debug/catchsegv.sh: Likewise.
1988
25df09ab
UD
19892008-12-29 Mike Frysinger <vapier@gentoo.org>
1990
1991 * iconvdata/Makefile (iconv-rules): Use LC_ALL=C when running awk
1992 script.
1993
16b7dc27
UD
19942008-12-29 Ulrich Drepper <drepper@redhat.com>
1995
bfbbc63f
UD
1996 * sysdeps/posix/getaddrinfo.c (gaih_inet): When the
1997 gethostbyname4_r function call succeeded, just leave the loop.
1998
0f2ae55c
UD
1999 [BZ #9694]
2000 * wcsmbs/wchar.h: Move undefs for local __need_* constants to the
2001 very end.
5703f472
UD
2002 * wctype/wctype.h: Get wint_t definition directly from <stddef.h>.
2003 * wctype/Makefile (tests): Add bug-wctypeh.
2004 * wctype/bug-wctypeh.c: New file.
0f2ae55c 2005
50e481ce
UD
2006 * nscd/nscd_gethst_r.c (nscd_gethst_r): Don't use nscd if
2007 LOCALDOMAIN is defined.
2008 * nscd/nscd_getai.c (__nscd_getai): Likewise.
2009
217d45cd
UD
2010 * sysdeps/x86_64/bits/select.h: New file.
2011
16b7dc27
UD
2012 * resolv/res_init.c (__res_vinit): Count all servers in statp->nscount.
2013
bf93cd3b
UD
20142008-12-21 Bruno Haible <bruno@clisp.org>
2015
2016 [BZ #9677]
2017 * wcsmbs/mbsnrtowcs.c (__mbsnrtowcs): Create temporary state object
2018 if no output is written.
2019
49159e12
UD
20202008-12-13 Klaus Dittrich <kladit@arcor.de>
2021
2022 * login/utmp_file.c (pututline_file): Replace call to dup2 with
2023 libc internal symbol __dup2 to avoid access through the PLT.
2024
d4f0720b
UD
20252008-12-08 Ulrich Drepper <drepper@redhat.com>
2026
135460f4
UD
2027 [BZ #6545]
2028 * sysdeps/unix/sysv/linux/bits/socket.h (SCM_CREDENTIALS): Make
2029 available only for __USE_GNU.
2030
ed0da352
UD
2031 * inet/Makefile (tests): Add tst-getni2.
2032 * inet/tst-getni2.c: New file.
2033
d4f0720b
UD
2034 [BZ #7080]
2035 * inet/getnameinfo.c (getnameinfo): Check for output buffers being
2036 NULL when NI_NAMEREQD is set.
2037 Patch mostly by Yang Hongyang <yanghy@cn.fujitsu.com>.
2038 * inet/Makefile (tests): Add tst-getni1.
2039 * inet/tst-getni1.c: New file.
2040
cd72adeb
UD
20412008-12-03 Petr Baudis <pasky@suse.cz>
2042
2043 [BZ #7067]
2044 * nscd/connections.c (invalidate_cache): Use prune_run_lock
2045 instead of prune_lock.
2046 (nscd_run_prune): Before calling prune_cache, take prune_run_lock.
2047 * nscd/nscd.h (database_dyn): Add prune_run_cache.
2048
e87946cc
UD
20492008-12-07 Ulrich Drepper <drepper@redhat.com>
2050
200da00a
UD
2051 * resolv/res_send.c (send_dg): Use correct guards for SOCK_CLOEXEC
2052 use.
2053
2054 * sysdeps/unix/sysv/linux/kernel-features.h: Fix typo in accept4
2055 handling.
2056
905ef0da
UD
2057 * resolv/res_init.c (__res_vinit): Always assign to statp->nscount
2058 after reading name server list.
2059
71053765 2060 [BZ #7058]
e87946cc
UD
2061 * nis/nss_nis/nis-hosts.c (_nss_nis_gethostbyname4_r): Fix memory
2062 handling for host name aliases.
2063
d43b8bdd
JJ
20642008-11-24 Arkadiusz Miśkiewicz <arekm@maven.pl>
2065
2066 * sysdeps/i386/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Use LOAD_PIC_REG
2067 instead of doing things manually.
2068
20692008-11-26 Chris Steel <chris.steel.lnx@googlemail.com>
2070
2071 * posix/regex_internal.h (build_wcs_upper_buffer):
2072 Return type is reg_error_t.
2073
25a34eb7
UD
20742008-12-05 Ulrich Drepper <drepper@redhat.com>
2075
f3721ab2
UD
2076 * posix/globtest.sh: Use mktemp to create temporary file and
2077 directory.
2078
25a34eb7
UD
2079 * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_SET_S): Handle large
2080 sets correctly.
2081 (__CPU_CLR_S): Likewise.
2082 (__CPU_ISSET_S): Likewise.
2083
8680179f
UD
20842008-12-05 Joseph Myers <joseph@codesourcery.com>
2085 Ulrich Drepper <drepper@redhat.com>
2086
2087 * scripts/firstversion.awk: Use custom comparison function to compare
2088 version numbers.
2089 * scripts/versions.awk: Use sort invocation which can handle
2090 multi-digit sub-version numbers.
2091
72d50908
UD
20922008-12-04 Ulrich Drepper <drepper@redhat.com>
2093
2094 * locale/programs/ld-address.c (DEFINE_LANGUAGE_CODE2): Define.
2095 * locale/iso-639.def: Add Chhattisgarhi entry.
2096
f93fc0b7
UD
20972008-12-02 Ulrich Drepper <drepper@redhat.com>
2098
da5ac135
UD
2099 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname3_r): Recognize
2100 ESRCH return value.
2101 (_nss_dns_gethostbyname4_r): Likewise.
2102 * resolv/res_init.c (__res_vinit): Initialize nscount to zero.
2103 * sysdeps/posix/getaddrinfo.c (gaih_inet): In case we use
2104 gethostbyname4_r, we don't have a separate IPv6 status, so copy
2105 the no_data variable.
2106
6f5c3117
UD
2107 * resolv/res_init.c (__res_vinit): Fill in IPv4 name server
2108 information at the correct index.
2109
f93fc0b7
UD
2110 * socket/sys/socket.h: Declare accept4.
2111 * socket/accept4.c: New file.
2112 * sysdeps/unix/sysv/linux/accept4.c: New file.
2113 * sysdeps/unix/sysv/linux/i386/accept4.S: New file.
2114 * socket/Makefile (routines): Add accept4.
2115 * socket/Versions: Export accept4 with version GLIBC_2.10.
2116 * socket/paccept.c: Removed.
2117 * sysdeps/unix/sysv/linux/paccept.c: Removed.
2118 * sysdeps/unix/sysv/linux/i386/paccept.S: Removed.
2119 * Versions.def: Define GLIBC_2.10 for libc.
2120 * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_ACCEPT4.
2121
2122 * nscd/connections.c: Use accept4.
2123
2124 * sysdeps/unix/sysv/linux/i386/socket.S: Fix comment.
2125
1fa7ae05
UD
21262008-12-01 Ulrich Drepper <drepper@redhat.com>
2127
9744268c
UD
2128 * resolv/res_send.c (send_dg): Create sockets with non-blocking
2129 flag already set.
2130
1fa7ae05
UD
2131 * stdlib/setenv.c (unsetenv): Don't search environment if it does
2132 not exist.
30c06371
UD
2133 * stdlib/Makefile (tests): Add tst-unsetenv1.
2134 * stdlib/tst-unsetenv1.c: New file.
1fa7ae05 2135
37a6a271
UD
21362008-11-29 Ulrich Drepper <drepper@redhat.com>
2137
2138 * login/utmp_file.c (file_writable): New variable.
2139 (setutent_file): Don't try to open file for writing.
2140 (pututline_file): Before writing, make descriptor writable if
2141 necessary.
2142
ca4dc0fe
UD
21432008-11-26 Ulrich Drepper <drepper@redhat.com>
2144
be4607eb
UD
2145 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Only restrict search
2146 to IPv4 or IPv6 if an interface has been found.
ca4dc0fe 2147
01a74645
RM
21482008-11-26 Roland McGrath <roland@redhat.com>
2149
24fd0a5b
RM
2150 * sysdeps/unix/sysv/linux/alpha/ipc_priv.h: Renamed to ...
2151 * sysdeps/unix/sysv/linux/powerpc/ipc_priv.h: ... here.
2152
2153 * sysdeps/unix/sysv/linux/alpha/wordexp.c: Renamed to ...
2154 * sysdeps/unix/sysv/linux/ia64/wordexp.c: ... here.
2155 * sysdeps/unix/sysv/linux/sparc/sparc64/wordexp.c: Change #include.
2156
01a74645
RM
2157 * elf/elf.h (NT_386_IOPERM): New macro.
2158 (NT_PPC_VSX): New macro.
2159
c0439b95
RM
21602008-11-25 Roland McGrath <roland@redhat.com>
2161
2162 * sysdeps/alpha, sysdeps/unix/bsd/osf/alpha,
2163 sysdeps/unix/bsd/Attic/osf1/alpha, sysdeps/unix/sysv/linux/alpha,
2164 sysdeps/unix/sysv/linux/alpha/alpha, sysdeps/unix/alpha,
2165 sysdeps/mach/alpha, sysdeps/mach/hurd/alpha:
2166 Subdirectories moved to ports repository.
2167 * configure.in (base_machine): Remove alpha case.
2168
d3dc523b
RM
21692008-11-25 Thomas Schwinge <tschwinge@gnu.org>
2170
2171 * sysdeps/mach/strerror_l.c: New file.
2172
edba7a54
UD
21732008-11-13 Ryan S. Arnold <rsa@us.ibm.com>
2174
2175 [BZ #6411]
2176 * sysdeps/powerpc/fpu/Makefile: Added test case tst-setcontext-fpscr.
2177 * sysdeps/powerpc/fpu/feholdexcpt.c (_FPU_MASK_ALL): Define to replace
2178 magic numbers.
2179 * sysdeps/powerpc/fpu/fenv_libc.h (fesetenv_register): Dynamically
2180 choose mtfsf insn based on PPC_FEATURE_HAS_DFP.
2181 (relax_fenv_state): Same as above.
2182 (FPSCR_29): Reserve bit in ISA 2.05.
2183 (FPSCR_NI): Provide define for compat.
2184 * sysdeps/powerpc/fpu/fesetenv.c (_FPU_MASK_ALL): Define to replace
2185 magic numbers.
2186 * sysdeps/powerpc/fpu/feupdateenv.c (_FPU_MASK_ALL): Define to replace
2187 magic numbers.
2188 * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c: New file. Test case to
2189 test setcontext and swapcontext with dynamic 64-bit FPSCR detection.
2190 * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp): Adjust
2191 access to hwcap to account for hwcap size increase to uint64_t.
2192 * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S (__sigsetjmp ):
2193 Likewise.
2194 * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S
2195 (*setcontext): Likewise.
2196 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/setcontext.S:
2197 New file.
2198 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/swapcontext.S:
2199 New file.
2200 * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S
2201 (*setcontext): dynamically select mtfsf insn based on
2202 PPC_FEATURE_HAS_DFP. Adjust access to hwcap to account for hwcap size
2203 increase to uint64_t.
2204 * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S
2205 (*swapcontext): dynamically select mtfsf insn based on
2206 PPC_FEATURE_HAS_DFP. Adjust access to hwcap to account for hwcap size
2207 increase to uint64_t.
2208 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/setcontext.S:
2209 New file.
2210 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/swapcontext.S:
2211 New file.
2212 * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
2213 (*setcontext): dynamically select mtfsf insn based on
2214 PPC_FEATURE_HAS_DFP.
2215 * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
2216 (*swapcontext): dynamically select mtfsf insn based on
2217 PPC_FEATURE_HAS_DFP.
2218
ec297962
UD
22192008-11-13 Ulrich Drepper <drepper@redhat.com>
2220
b5449f8a 2221 * version.h: Bump for 2.9 release.
f52bb4d7 2222 * include/features.h (__GLIBC_MINOR__): Bump to 9.
b5449f8a 2223
ec297962
UD
2224 [BZ #7029]
2225 * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_ALLOC_SIZE):
2226 Multiply with sizeof of __cpu_mask, not 8 unconditionally after
2227 all the rounding.
2228
3cac8b75
UD
22292008-11-11 Ulrich Drepper <drepper@redhat.com>
2230
0e54a725 2231 [BZ #7009]
3cac8b75
UD
2232 * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): Don't abort for
2233 unknown request types for now.
2234
58a4b51a
RM
22352008-11-11 Roland McGrath <roland@redhat.com>
2236
2237 * sysdeps/x86_64/configure: New file.
2238
2239 * configure.in: Add AC_SUBST(libc_cv_cpp_asm_debuginfo).
2240 * configure: Regenerated.
2241
01bd5e96
JJ
22422008-11-03 Martin Schwidefsky <schwidefsky@de.ibm.com>
2243
2244 * sysdeps/s390/s390-64/dl-trampoline.S (_dl_runtime_profile): Use the
2245 correct instruction to remove the stack frame.
2246
a9069550
JJ
22472008-11-03 Michael Matz <matz@suse.de>
2248
2249 * sysdeps/s390/bits/atomic.h (__arch_compare_and_exchange_val_32_acq,
2250 __arch_compare_and_exchange_val_64_acq): Add "memory" clobber.
2251
4b23f9bd
JJ
22522008-11-07 Jakub Jelinek <jakub@redhat.com>
2253
09f66a4f
JJ
2254 * include/stdio.h (__builtin_fwrite, __builtin_fwrite_unlocked):
2255 Remove.
2256
4b23f9bd
JJ
2257 * bits/libc-tsd.h (__libc_tsd_define, __libc_tsd_address,
2258 __libc_tsd_get, __libc_tsd_set): Add TYPE argument, use it as the type
2259 of the thread variable instead of void *.
2260 * sysdeps/mach/hurd/bits/libc-tsd.h (__libc_tsd_define,
2261 __libc_tsd_address, __libc_tsd_get, __libc_tsd_set): Likewise.
2262 * include/ctype.h (CTYPE_B, CTYPE_TOUPPER, CTYPE_TOLOWER): Adjust
2263 __libc_tsd_define arguments.
2264 (__ctype_b_loc, __ctype_toupper_loc, __ctype_tolower_loc): Adjust
2265 __libc_tsd_address arguments. Remove union hack.
2266 * include/rpc/rpc.h (RPC_VARS): Adjust __libc_tsd_define arguments.
2267 * sunrpc/rpc_thread.c (RPC_VARS): Likewise.
2268 (__rpc_thread_destroy, rpc_thread_multi, __rpc_thread_variables):
2269 Adjust __libc_tsd_{set,get} arguments.
2270 * ctype/ctype-info.c (CTYPE_B, CTYPE_TOUPPER, CTYPE_TOLOWER): Adjust
2271 __libc_tsd_define arguments.
2272 * locale/uselocale.c (__uselocale): Adjust __libc_tsd_{set,get}
2273 arguments.
2274 * locale/lc-ctype.c (_nl_postload_ctype): Likewise.
2275 * locale/global-locale.c (__libc_tsd_LOCALE): Adjust type.
2276 (LOCALE): Adjust __libc_tsd_define arguments.
2277 * locale/localeinfo.h (_NL_CURRENT_LOCALE): Adjust __libc_tsd_get
2278 arguments.
2279 (LOCALE): Adjust __libc_tsd_define arguments.
2280 * sysdeps/mach/hurd/malloc-machine.h (MALLOC): Adjust __libc_tsd_define
2281 arguments.
2282 (tsd_setspecific, tsd_getspecific): Adjust __libc_tsd_{set,get}
2283 arguments.
2284
486bdb88
UD
22852008-11-02 Ulrich Drepper <drepper@redhat.com>
2286
2287 * malloc/malloc.c (public_rEALLOc): When new arena is used, copy
2288 really all bytes. Patch by Denys Vlasenko <dvlasenk@redhat.com>.
2289
64647f9a
UD
22902008-11-01 Ulrich Drepper <drepper@redhat.com>
2291
2292 [BZ #6966]
2293 * misc/hsearch_r.c (hsearch_r): Fix secondary hash function.
2294
acd44dbc
UD
22952008-10-24 Joseph Myers <joseph@codesourcery.com>
2296 Ulrich Drepper <drepper@redhat.com>
2297
2298 * math/tgmath.h (__floating_type): Use __builtin_classify_type in
2299 definition for GCC 3.1 and later.
64647f9a 2300
41e25904
UD
23012008-10-31 Jakub Jelinek <jakub@redhat.com>
2302
2303 * elf/dl-tls.c (__tls_get_addr): After calling _dl_update_slotinfo
2304 refetch dtv, as it might have changed.
2305 * elf/Makefile: Add rules to build and run tst-tls18.
2306 * elf/tst-tls18.c: New test.
2307 * elf/tst-tlsmod18a.c: New file.
2308
e148a644 23092008-09-09 Aurelien Jarno <aurelien@aurel32.net>
97f12390 2310
da9c2314 2311 [BZ #6875]
e148a644
UD
2312 * iconvdata/gconv-modules: Add LATIN9 as an alias to ISO-8859-15.
2313
23142008-10-31 Ulrich Drepper <drepper@redhat.com>
97f12390 2315
6daf1a2f
UD
2316 [BZ #6867]
2317 * sysdeps/powerpc/elf/rtld-global-offsets.sym: Fix typo.
2318
6f576bf6
UD
2319 [BZ #6919]
2320 * posix/spawnattr_getschedparam.c (posix_spawnattr_getschedparam):
2321 Fix length of copy operation.
2322
45a8beb5
UD
23232008-10-02 Pierre Habouzit <madcoder@debian.org>
2324
2325 * sysdeps/unix/sysv/linux/eventfd.c (eventfd): Use the eventfd2 syscall
2326 and fix its calling convention.
2327
ad12e635
UD
23282008-10-07 Andreas Schwab <schwab@suse.de>
2329
2330 [BZ #6942]
2331 * resolv/res_send.c (send_vc): Fix last change.
2332 (send_dg): Align here as well.
2333
3cf44918
UD
23342008-10-31 Ulrich Drepper <drepper@redhat.com>
2335
dbb6ab3e
UD
2336 * sysdeps/unix/sysv/linux/ulimit.c (__ulimit): Handle UL_GETFSIZE
2337 return value in case rlimit is RLIM_INFINITY.
2338
2339 [BZ #6947]
2340 * sysdeps/unix/sysv/linux/ulimit.c (__ulimit): Fix return value
2341 for UL_SETFSIZE.
1828d6b0
UD
2342 * resource/Makefile (tests): Add bug-ulimit1.
2343 * resource/bug-ulimit1.c: New file.
dbb6ab3e 2344
a5ff533e
UD
2345 [BZ #6974]
2346 * sunrpc/rpc_main.c (mkfile_output): Properly handle filename
2347 without dot. Properly terminate the string with a null byte.
2348 Based on a patch by Aurelien Jarno <aurelien@aurel32.net>.
2349
4bed549a
UD
2350 [BZ #6980]
2351 * debug/getgroups_chk.c (__getgroups_chk): Return EINVAL error for
2352 negative sizees.
2353 * posix/bits/unistd.h (getgroups): Call __getgroups_chk for
2354 negative __size.
2355
3cf44918
UD
2356 [BZ #6995]
2357 * sysdeps/powerpc/powerpc32/dl-machine.c: Fix typo in message.
2358
21b07d8b
UD
23592008-10-30 Ulrich Drepper <drepper@redhat.com>
2360
332c4465
UD
2361 * grp/initgroups.c (internal_getgrouplist): Don't prematurely
2362 abort if there is no initgroups_dyn function.
2363
21b07d8b
UD
2364 * resolv/res_send.c (send_dg): On timeout, only return nonzero
2365 result if any of the queries really provided an answer.
2366
4caa3fb7
UD
23672008-10-28 Ulrich Drepper <drepper@redhat.com>
2368
2369 * po/lt.po: Update from translation team.
2370
a22c3a0d
UD
23712008-10-26 Ulrich Drepper <drepper@redhat.com>
2372
2373 * po/id.po: Update from translation team.
2374
49685151
UD
23752008-10-24 Ulrich Drepper <drepper@redhat.com>
2376
2377 * resolv/res_query.c (__libc_res_nquery): Add a few casts.
660675de 2378 Fix tests for existence of second reply.
49685151 2379
8d9d5d35
UD
23802008-10-23 Ulrich Drepper <drepper@redhat.com>
2381
2382 * po/id.po: New file.
2383 Contributed by the Indonesian translation team.
2384
208bc836
UD
23852008-10-22 Dmitry V. Levin <ldv@altlinux.org>
2386
2387 * misc/syslog.c (openlog_internal): Fix __have_sock_cloexec
2388 initialization.
2389
60a23f5a
UD
23902008-10-17 Jakub Jelinek <jakub@redhat.com>
2391
2392 * elf/Makefile: Add rules to build and run tst-tls17.
2393 * elf/tst-tls17.c: New test.
2394 * elf/tst-tlsmod17a.c: New file.
2395 * elf/tst-tlsmod17b.c: Likewise.
2396
292eb817
UD
23972008-10-17 Ulrich Drepper <drepper@redhat.com>
2398
2399 * stdlib/divmod_1.c: Use correct type for dummy variable.
2400 * stdlib/mod_1.c: Likewise.
2401
5df2a427
UD
24022008-10-16 Ulrich Drepper <drepper@redhat.com>
2403
2404 * elf/dl-tls.c (_dl_update_slotinfo): Copy all of the initial DTV.
2405
472e5e08
JJ
24062008-10-16 Jakub Jelinek <jakub@redhat.com>
2407
2408 * sysdeps/unix/sysv/linux/sys/signalfd.h (signalfd): Fix __THROW vs.
2409 __nonnull order for C++.
2410 * sysdeps/unix/sysv/linux/alpha/sys/signalfd.h (signalfd): Likewise.
2411 * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h (signalfd): Likewise.
2412
86900abd
RM
24132008-10-01 Daniel Jacobowitz <dan@codesourcery.com>
2414
2415 * stdlib/longlong.h: Update from GCC.
2416
19c10a47
JJ
24172008-10-09 Jakub Jelinek <jakub@redhat.com>
2418 David S. Miller <davem@davemloft.net>
2419
2420 * sysdeps/sparc/sparc64/sparcv9v/memcpy.S: When not USE_BPR,
2421 make sure any registers used with 64-bit 'branch-on-register'
2422 instructions have their top 32-bits clear.
2423 * sysdeps/sparc/sparc64/sparcv9v/memset.S: Likewise.
2424 * sysdeps/sparc/sparc64/sparcv9v2/memcpy.S: Likewise.
2425
2fdde3b9
UD
24262008-09-18 Andreas Schwab <schwab@suse.de>
2427
2428 [BZ #6942]
2429 * resolv/res_send.c (send_vc): Fix use of unaligned address.
f00d47a3 2430 Properly handle partial reads.
2fdde3b9 2431
6ba25fcb
RM
24322008-10-01 Mark Shinwell <shinwell@codesourcery.com>
2433
2434 * elf/elf.h (STO_MIPS_PLT): New.
2435 (R_MIPS_COPY): New.
2436 (R_MIPS_JUMP_SLOT): New.
2437 (R_MIPS_NUM): Redefine to 128.
2438 (DT_MIPS_PLTGOT): New.
2439 (DT_MIPS_RWPLT): New.
2440 (DT_MIPS_NUM): Redefine to 0x35.
2441
97898201
UD
24422008-10-01 Ulrich Drepper <drepper@redhat.com>
2443
2444 * timezone/africa: Update from tzdata2008f.
2445 * timezone/asia: Likewise.
2446 * timezone/australasia: Likewise.
2447 * timezone/europe: Likewise.
2448 * timezone/leapseconds: Likewise.
2449 * timezone/northamerica: Likewise.
2450 * timezone/southamerica: Likewise.
2451 * timezone/zone.tab: Likewise.
2452
3452ded5
UD
24532008-09-30 Ulrich Drepper <drepper@redhat.com>
2454
2455 * nscd/connections.c: Disable use of paccept for now.
2456
54ad9327
UD
24572008-09-29 Ulrich Drepper <drepper@redhat.com>
2458
8ec2550e
UD
2459 * socket/Versions: Remove paccept export for GLIBC_2.9.
2460 * socket/Makefile (routines): Remove paccept.
2461 * socket/sys/socket.h: Remove paccept declaration.
2462
54ad9327
UD
2463 * po/sv.po: Update from translation team.
2464
1c5eba39
UD
24652008-09-22 Deborah S. Townsend <dstownse@us.ibm.com>
2466
2467 * sysdeps/s390/s390-64/s390x-mcount.S: Replace ahi with aghi.
2468 * sysdeps/unix/sysv/linux/s390/s390-64/socket.S: Likewise.
2469
0a26fc4d
UD
24702008-09-16 Ulrich Drepper <drepper@redhat.com>
2471
2472 * dlfcn/dlopen.c (dlopen_doit): Allow __RTLD_SPROF flag.
2473 Patch by Olivier Fourdan <ofourdan@redhat.com>.
2474
2bcaff08
UD
24752008-09-15 Ulrich Drepper <drepper@redhat.com>
2476
2477 * sunrpc/rpc/svc.h: Declare svcfd_create.
2478 Patch by Michael Solberg <msolberg@redhat.com>.
2479
caa60cb9 24802008-09-12 Flavio Leitner <fleitner@redhat.com>
f00d47a3 2481 Ulrich Drepper <drepper@redhat.com>
caa60cb9
UD
2482
2483 * malloc/malloc.c (public_vALLOc): Try other arenas in case
2484 _int_valloc fails.
2485 (public_pVALLOc): Likewise.
2486
6c161112
AJ
24872008-09-02 Andreas Jaeger <aj@suse.de>
2488
2489 * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: Fix last
2490 commit.
2491
0cb269d7
RM
24922008-08-26 Aurelien Jarno <aurelien@aurel32.net>
2493
452034cc 2494 [BZ #6860]
2bcaff08 2495 * hurd/hurd/signal.h (HURD_MSGPORT_RPC): Fix a typo.
0cb269d7 2496
13074b5b
RM
24972008-07-18 Daniel Jacobowitz <dan@codesourcery.com>
2498
2499 * Makefile (check-data): Check data directory in add-ons.
2500 * elf/Makefile (check-data): Likewise.
2501
58801a0e
RM
25022008-08-18 Roland McGrath <roland@redhat.com>
2503
2504 * configure.in (--with-cpu): Check compiler support for -march/-mcpu.
2505 * configure: Regenerated.
2506 * config.make.in (cflags-cpu): New substituted variable.
2507 (with-cpu): Variable removed.
2508 * Makeconfig (+cflags): Use $(cflags-cpu), not $(with-cpu).
2509
7df49c5d
UD
25102008-08-14 Ryan S. Arnold <rsa@us.ibm.com>
2511
2512 [BZ #6845]
2513 * sysdeps/powerpc/fpu/bits/mathinline.h (__signbitl): Copy new
2514 __signbitl definition and __LONG_DOUBLE_128__ guard from:
2515 * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h: Remove as
2516 redundant. Functions which call floating point assembler operations
2517 should go into a sysdeps powerpc/fpu directory.
2518
965805e8
UD
25192008-08-15 Ulrich Drepper <drepper@redhat.com>
2520
2521 * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Define MAP_STACK.
2522 * sysdeps/unix/sysv/linux/i386/bits/mman.h: Likewise.
2523
9cf73ab0
UD
25242008-08-14 Ulrich Drepper <drepper@redhat.com>
2525
62a1ffc6
UD
2526 * sysdeps/x86_64/memset.S: Reduce size of tables for PIC.
2527
9cf73ab0
UD
2528 * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): Undo all
2529 change related to AT_EXECFN. We cannot use that string.
2530 * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Remove
2531 _dl_execfn member.
2532 * elf/dl-support.c: Remove _dl_execfn variable.
2533 (_dl_aux_init): Remove handling of AT_EXECFN.
2534 * elf/dl-sysdep.c (_dl_sysdep_start): Remove handling of AT_EXECFN.
2535 * elf/rtld.c (process_envvars): Remove use of __ASSUME_AT_EXECFN.
2536
1bfa05cf
UD
25372008-08-13 Ulrich Drepper <drepper@redhat.com>
2538
7b3ba2c4
UD
2539 [BZ #6544]
2540 * libio/fmemopen.c: Implement binary mode. In this mode no NUL
2541 byte gets added to writes and seeks from the end use the length of
2542 the buffer and not the currently terminating NUL byte.
2543
1bfa05cf
UD
2544 [BZ #6634]
2545 * login/utmp_file.c (getutent_r_file): Take additional parameter.
2546 Set to true if locking failed.
2547 (getutid_r_file): Adjust caller.
2548 (pututline_file): Likewise. Return NULL in this case.
2549 Patch mostly by halesh.s@gmail.com.
2550
c5671698
UD
25512008-08-12 Ulrich Drepper <drepper@redhat.com>
2552
2553 [BZ #6589]
2554 * sysdeps/unix/sysv/linux/ifaddrs.c (struct sockaddr_ll_max):
2555 Define.
2556 (struct ifaddrs_storage): Use it instead of sockaddr_ll.
2557
4497384e
UD
25582008-08-12 Ryan S. Arnold <rsa@us.ibm.com>
2559
2560 [BZ #6839]
2561 * sysdeps/powerpc/powerpc32/dl-machine.c (CHECK_STATIC_TLS): Remove
2562 macro since it is now available in elf/dynamic-link.h.
2563
675d7111
RM
25642008-08-12 Roland McGrath <roland@frob.com>
2565
2566 * hurd/hurd/signal.h (HURD_MSGPORT_RPC): Avoid -Wparenthesis triggers,
2567 in case used outside of libc.
2568 Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>
2569
8b254432
UD
25702008-08-11 Ulrich Drepper <drepper@redhat.com>
2571
2572 * resolv/res_mkquery.c (res_nmkquery): Call ns_name_compress
2573 directly instead of going through dn_comp.
2574
ac84eeca
RM
25752008-08-11 Aurelien Jarno <aurel32@debian.org>
2576
2577 * sysdeps/mach/i386/machine-lock.h (__spin_unlock, __spin_try_lock):
2578 Fix asm constraints.
2579
f081b451
UD
25802008-08-07 Ulrich Drepper <drepper@redhat.com>
2581
2582 [BZ #6790]
2583 * sysdeps/unix/sysv/linux/bits/in.h (IP_PMTUDISC_PROBE): Define.
2584 (IPV6_PMTUDISC_PROBE): Likewise.
2585
30a4429e
UD
25862008-08-07 Pete Eberlein <eberlein@us.ibm.com>
2587
2588 [BZ #6791]
2589 * sysdeps/unix/sysv/linux/powerpc/bits/mman.h (PROT_SAO): Define.
2590
1642331d 25912008-08-01 Steven Munroe <sjmunroe@us.ibm.com>
626f68ff 2592 Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
1642331d
UD
2593
2594 [BZ #6817]
2595 * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags):
2596 Added the members 'vsx' and 'arch_2_06'.
2597 (_dl_powerpc_platforms): Add the member 'power7'.
2598 * sysdeps/powerpc/dl-procinfo.h: Modify _DL_HWCAP_FIRST
2599 to reflect the changes required by VSX and ISA 2.06.
2600 Modify _DL_PLATFORMS_COUNT to reflect the addition of
2601 'power7'.
2602 Defined PPC_PLATFORM_POWER7.
2603 (_dl_string_platform): Add support for POWER7.
2604 * sysdeps/powerpc/sysdep.h: Define bit masks for VSX
2605 capability and ISA 2.06.
2606
48b94661
UD
26072008-08-07 Ulrich Drepper <drepper@redhat.com>
2608
2609 [BZ #6824]
2610 * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h: Use correct
2611 macro to detect use of 128 bit long double.
2612 Patch by Ryan S. Arnold <rsa@us.ibm.com>.
2613
9523fd28
UD
26142008-08-05 Ulrich Drepper <drepper@redhat.com>
2615
9c0cb150
UD
2616 * scripts/gen-as-const.awk: Use 32-bit values on 32-bit platforms.
2617
46aea5cb 2618 [BZ #5794]
9523fd28
UD
2619 * sysdeps/i386/fpu/s_expm1l.S: Simply use exp implementation for large
2620 parameters.
2621 * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
2622 Patch by Denys Vlasenko <dvlasenk@redhat.com>.
2623
c400c931
UD
26242008-08-03 Ulrich Drepper <drepper@redhat.com>
2625
2626 * nscd/connections.c (main_loop_poll): Pass a buffer which is
2627 guaranteed to be large enough to read inotify event. Ignore
2628 EAGAIN error. Better error message. Add branch predicition.
2629 (main_loop_epoll): Likewise.
2630
3f39adac
RM
26312008-08-02 Roland McGrath <roland@frob.com>
2632
2633 * sysdeps/mach/i386/machine-lock.h (__spin_unlock, __spin_try_lock):
2634 Add memory clobbers.
2635
3501542f
UD
26362008-08-02 Ulrich Drepper <drepper@redhat.com>
2637
48b22986
UD
2638 * manual/arith.texi: Avoid @strong{Note:}.
2639 * manual/creature.texi: Likewise.
2640 * manual/filesys.texi: Likewise.
2641 * manual/math.texi: Likewise.
2642 * manual/memory.texi: Likewise.
2643 * manual/resource.texi: Likewise.
2644 * manual/syslog.texi: Likewise.
2645 * manual/time.texi: Likewise.
2646
3501542f
UD
2647 * sysdeps/posix/clock_getres.c (hp_timing_getres): Remove inline
2648 to prevent warning.
2649
17756df3
UD
26502008-08-01 Ulrich Drepper <drepper@redhat.com>
2651
ebcc1f4d
UD
2652 * sysdeps/unix/sysv/linux/Versions: Fix changes due to old patch for
2653 new epoll_create1 interface.
2654 * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
2655 * sysdeps/unix/sysv/linux/sys/epoll.h: Likewise.
2656 * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
2657
144bfa86
UD
2658 * include/arpa/nameser.h (NS_GET16): Use const pointer.
2659 (NS_GET32): Likewise.
2660
7e1b29c6
UD
2661 * sysdeps/unix/sysv/linux/kernel-features.h: s390 has the new
2662 syscalls, too.
2663
42fa1f67
UD
2664 * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): We cannot
2665 use the AT_EXECFN value if it is no absolute path.
2666 * sysdeps/unix/sysv/linux/kernel-features.h: Never define
2667 __ASSUME_AT_EXECFN.
2668
cd5743fd
UD
2669 * Versions.def: Add GLIBC_2.9 to libresolv.
2670 * include/resolv.h: Remove hidden proto declarations for __ns_*
2671 functions. Add them for __dn_count_labels and __p_secstodate.
2672 * include/arpa/nameser.h: Add a number of hidden proto declarations.
2673 Define ns_msg_getflags macro here.
2674 * resolv/res_debug.c: Add hidden definition for __dn_count_labels
2675 and __p_secstodate.
2676 * resolv/Versions: Export functions from <arpa/nameser.h> from
2677 libresolv in version GLIBC_2.9.
2678 * resolv/ns_name.c: Integrate changes from bind 9.5.0. Add necessary
2679 hidden definitions.
2680 * resolv/ns_netint.c: Likewise.
2681 * resolv/ns_parse.c: Likewise.
2682 * resolv/ns_print.c: Likewise.
2683 * resolv/ns_samedomain.c: Likewise.
2684 * resolv/ns_ttl.c: Likewise.
2685 * resolv/arpa/nameser_compat.h: Likewise.
2686 * resolv/arpa/nameser.h: Likewise. Remove macros which redirect
2687 function calls.
2688 * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Use __ns_get16
2689 instead of ns_get16.
2690 * resolv/nss_dns/dns-host.c (getanswer_r): Use __ns_get16 and
2691 __ns_get32 instead of ns_get16 and ns_get32 respectively.
2692 (gaih_getanswer_slice): Likewise.
2693 * resolv/Makefile (libresolv-routines): Add ns_date.
2694 * resolv/ns_date.c: New file.
2695
17756df3
UD
2696 * elf/Makefile (check-localplt.out): Also check libresolv and
2697 libcrypt.
2698
46bc5d43
UD
26992008-07-31 Ulrich Drepper <drepper@redhat.com>
2700
2701 * sysdeps/unix/sysv/linux/kernel-features.h: Define
2702 __ASSUME_O_CLOEXEC.
2703
a707cff6
UD
27042008-07-30 Ulrich Drepper <drepper@redhat.com>
2705
3c227386
UD
2706 * sysdeps/posix/getaddrinfo.c (gaih_inet): Raise size of initial
2707 buffer passed to NSS functions.
2708
9523fd28 2709 * nscd/connections.c (nscd_init): Typo in preprocessor directive.
bd7f4857
UD
2710
2711 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PACCEPT):
2712 Define.
2713
a707cff6
UD
2714 * misc/syslog.c (openlog_internal): Fix compile problem.
2715
0424d007
RM
27162008-07-28 Roland McGrath <roland@redhat.com>
2717
2718 * elf/dl-sysdep.c (_dl_show_auxv): Add AT_EXECFN to the table.
2719
b7da31a1
UD
27202008-07-28 Ulrich Drepper <drepper@redhat.com>
2721
300ea0ad
UD
2722 * io/ftw.c (add_object): Remove inline to avoid warning.
2723
d6173baa
UD
2724 * sysdeps/unix/sysv/linux/paccept.c: Fix compile problem.
2725
b7da31a1
UD
2726 * resolv/res_send.c (__libc_res_nsend): Take additional parameter.
2727 Use it instead of locally defined resplen2 variable.
2728 (res_nsend): Adjust for __libc_res_nsend interface change.
2729 (send_vc): Initialize *resplen2 if necessary. Read length of
2730 package into an appropriately aligned variable. Store converted length
2731 in new variable and use it appropriately.
2732 Add branch prediction help.
2733 * resolv/res_query.c (__libc_res_nquery): Take additional parameter
2734 and pass it on to __libc_res_nsend. Adjust all callers.
2735 (__libc_res_nsearch): Likewise.
2736 (__libc_res_nqeurydomain): Likewise.
2737 * resolv/nss_dns/dns-host.c: Adjust for __libc_res_nsearch interface
2738 change.
2739 (_nss_dns_gethostbyname4): Don't unconditionally allocate tmp array.
2740 Define resplen2 variable and pass it to __libc_res_nsearch and then
2741 to gaih_getanswer.
2742 (getanswer_r): In case of incorrect DNS data don't overread buffer.
2743 Add branch prediction.
2744 (gaih_getanswer_slice): Likewise. Check for invalid data types.
2745 (gaih_getanswer): Don't decode second slice if first one failed due
2746 to a too small buffer. Don't let not found status of second
2747 decoder shadow results of the first.
2748 * resolv/gethnamaddr.c (gethostbyname2): Adjust for __libc_res_nsearch
2749 and __libc_res_nquery interface changes
2750 (gethostbyaddr): Adjust for __libc_res_nquery interface change.
2751 * include/resolv.h: Adjust prototypes for __libc_res_nquery,
2752 __libc_res_nsearch, and __libc_res_nsend.
2753 * resolv/nss_dns/dns-canon.c: Adjust for __libc_res_nquery interface
2754 change.
2755 * resolv/nss_dns/dns-network.c: Adjust for __libc_res_nquery and
2756 __libc_res_nsearch interface changes.
2757
11ed3eae
UD
27582008-07-27 Ulrich Drepper <drepper@redhat.com>
2759
372aece0
UD
2760 * libio/iopopen.c (_IO_new_proc_open): Remove unnecessary volatile.
2761
e038616f
UD
2762 * posix/wordexp.c (exec_comm): Use pipe2 if possible to create
2763 file descriptors with close-on-exec set.
2764 (exec_comm_child): Fix the case where the write end of the pipe is
2765 STDOUT_FILENO already. In case it is, clear close-on-exec.
2766
d6e0c2a6
UD
2767 * sysdeps/unix/sysv/linux/syscalls.list: Add __pipe2 alias.
2768 * io/pipe2.c: Likewise.
2769 * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_PIPE2
2770 instead of __ASSUME_PACCEPT.
2771 * include/unistd.h: Declare __have_pipe2.
2772 * libio/iopopen.c: Implement "e" flag.
2773 * libio/Makefile (tests): Add tst-popen1.
2774 * libio/tst-popen1.c: New file.
2775
11ed3eae
UD
2776 * sysdeps/unix/sysv/linux/bits/socket.h: Define PF_ISDN and AF_ISDN.
2777 * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
2778
7438a80d
UD
27792008-07-26 Ulrich Drepper <drepper@redhat.com>
2780
c4a710b6
UD
2781 [BZ #6771]
2782 * libio/fileops.c (_IO_new_file_attach): Preserve errno around
2783 success call of _IO_SEEKOFF or calls which failed because the
2784 descriptor is for a pipe.
2785
31f3b159
UD
2786 * sunrpc/key_call.c (getkeyserv_handle): Use FD_CLOEXEC instead of
2787 magic number.
2788
c0216dfc
UD
2789 * misc/syslog.c (openlog_internal): Use SOCK_CLOEXEC if possible.
2790
72112b0c
UD
2791 * malloc/mtrace.c (mtrace): Use 'e' flag in fopen call. Drop
2792 F_SETFD use if we know fopen set the flag.
2793
7438a80d
UD
2794 * login/utmp_file.c (setutent_file): Minor optimization in case
2795 O_CLOEXEC is available.
2796
7b91359b
UD
27972008-07-24 Tom "spot" Callaway <tcallawa@redhat.com>
2798
2799 * Makeconfig: Define pie-ccflag and PIE-ccflag variables.
2800 * elf/Makefile: Use pie-ccflag variable.
2801 * nscd/Makefile: Likewise.
2802 * sysdeps/sparc/Makefile: Set $(pie-ccflag) to -fPIE.
2803
4057dc45
UD
28042008-07-21 Andreas Krebbel <krebbel1@de.ibm.com>
2805
e7135e24 2806 [BZ #6724]
4057dc45
UD
2807 * Versions.def: Add GLIBC_2.9 version tag for libutil.
2808 * sysdeps/unix/sysv/linux/s390/bits/utmp.h: Copy of
2809 gnu/bits/utmp.h. Check for __WORDSIZE_COMPAT32 removed.
2810 * sysdeps/unix/sysv/linux/s390/bits/utmpx.h: Copy of
2811 gnu/bits/utmpx.h. Check for __WORDSIZE_COMPAT32 removed.
2812 * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Add new files
2813 utmp32, utmpx32 and login32.
2814 * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Add 2.9
2815 versions of struct utmp functions to libc and libutil.
2816 * sysdeps/unix/sysv/linux/s390/s390-32/utmp-compat.h: New file.
2817 * sysdeps/unix/sysv/linux/s390/s390-32/getutent.c: New file.
2818 * sysdeps/unix/sysv/linux/s390/s390-32/getutent_r.c: New file.
2819 * sysdeps/unix/sysv/linux/s390/s390-32/getutid.c: New file.
2820 * sysdeps/unix/sysv/linux/s390/s390-32/getutid_r.c: New file.
2821 * sysdeps/unix/sysv/linux/s390/s390-32/getutline.c: New file.
2822 * sysdeps/unix/sysv/linux/s390/s390-32/getutline_r.c: New file.
2823 * sysdeps/unix/sysv/linux/s390/s390-32/getutmp.c: New file.
2824 * sysdeps/unix/sysv/linux/s390/s390-32/getutxent.c: New file.
2825 * sysdeps/unix/sysv/linux/s390/s390-32/getutxid.c: New file.
2826 * sysdeps/unix/sysv/linux/s390/s390-32/getutxline.c: New file.
2827 * sysdeps/unix/sysv/linux/s390/s390-32/login.c: New file.
2828 * sysdeps/unix/sysv/linux/s390/s390-32/login32.c: New file.
2829 * sysdeps/unix/sysv/linux/s390/s390-32/pututxline.c: New file.
2830 * sysdeps/unix/sysv/linux/s390/s390-32/updwtmp.c: New file.
2831 * sysdeps/unix/sysv/linux/s390/s390-32/updwtmpx.c: New file.
2832 * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: New file.
2833 * sysdeps/unix/sysv/linux/s390/s390-32/utmp32.c: New file.
2834 * sysdeps/unix/sysv/linux/s390/s390-32/utmp32.h: New file.
2835 * sysdeps/unix/sysv/linux/s390/s390-32/utmpx-convert.h: New file.
2836 * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.c: New file.
2837 * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: New file.
2838
ff0bf753
UD
28392008-07-26 Ulrich Drepper <drepper@redhat.com>
2840
619cc2f6
UD
2841 * scripts/gen-as-const.awk: Generate more widely usable code by
2842 using 64-bit arithmetic.
2843
1311b164 2844 * stdio-common/printf_fp.c (___printf_fp): Give wide outout code
3f414923 2845 the same treatment as narrow output code in last patch.
1311b164 2846
ff0bf753
UD
2847 * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Namespace cleanup.
2848
3f414923 2849 [BZ #6763]
ff0bf753
UD
2850 * elf/dl-load.c (local_strdup): Remove inline.
2851 (_dl_map_object_from_fd): Don't allocate l_symbolic_searchlist.r_list.
2852 * elf/dl-object.c (_dl_new_object): Allocate symbolic searchlist as
2853 part of the object.
2854
2855 * sysdeps/unix/sysv/linux/dl-origin.c: Add const to avoid warning.
2856
8ccf22f9
UD
28572008-07-25 Ulrich Drepper <drepper@redhat.com>
2858
bdd24a30
UD
2859 * sysdeps/unix/sysv/linux/kernel-features.h: IA-64 and SPARC have
2860 the new syscalls, too.
b5c0b5e4 2861
b41f1d14
UD
2862 * sysdeps/i386/i686/memcmp.S: Fix unwind information.
2863 Reported by Paul Pluzhnikov <ppluzhnikov@google.com>.
2864
3703468e
UD
2865 [BZ #6698]
2866 * stdio-common/_i18n_number.h (_i18n_number_rewrite): Take additional
2867 parameter for end of buffer. If temporary copy is too large use
2868 malloc.
2869 * stdio-common/vfprintf.c: Adjust for _i18n_number_rewrite
2870 interface change.
2871 * stdio-common/printf_fp.c (__printf_fp): Likewise.. Account for
2872 string rewrite when allocating buffer.
2873
bb0277bf
UD
2874 * sysdeps/unix/sysv/linux/kernel-features.h: PPC has the new
2875 syscalls, too.
2876
9dd84772
UD
2877 * nscd/connections.c (nscd_init): Clean up fcntl call.
2878
c418b1ba
UD
2879 * nscd/nscd_helper.c (open_socket): Use SOCK_CLOEXEC and
2880 SOCK_NONBLOCK if possible.
2881
b206d8b1
UD
2882 * sysdeps/unix/sysv/linux/opensock.c (__opensock): Use
2883 SOCK_CLOEXEC if available.
2884
8ccf22f9
UD
2885 * include/rpc/clnt.h: Declare __libc_clntudp_bufcreate and
2886 __libc_clntudp_bufcreate_internal.
2887 * include/sys/socket.h: Declare __have_sock_cloexec.
2888 * socket/Makefile (aux): Add have_sock_cloexec.
2889 * socket/have_sock_cloexec.c: New file.
2890 * sunrpc/clnt_udp.h (clntudp_bufcreate): Now a wrapper around
2891 __libc_clntudp_bufcreate.
2892 (__libc_clntudp_bufcreate): Former implementation of clntudp_bufcreate
2893 which takes an additional parameter. Create socket with non-blocking
2894 mode and close-on-exec flag set, if wanted.
2895 * sunrpc/Versions: Export __libc_clntudp_bufcreate@GLIBC_PRIVATE.
2896 * nis/ypclnt.c (yp_bind_client_create): Use __libc_clntpudp_bufcreate
2897 instead of clntudp_create. The socket has already the close-on-exec
2898 flag set if SOCK_CLOEXEC is defined.
2899
579cdf5a
UD
29002008-07-24 Ulrich Drepper <drepper@redhat.com>
2901
3ff2c948
UD
2902 * sysdeps/unix/sysv/linux/kernel-features.h: Define
2903 __ASSUME_PACCEPT, __ASSUME_IN_NONBLOCK, and __ASSUME_PACCEPT if
2904 appropriate.
2905 * nscd/connections.c: Avoid fcntl calls to set close-on-exec flag and
2906 non-blocking mode by using socket, paccept, and inotify_init1.
2907
bdcebfc4
UD
2908 * Versions.def (glibc): Add GLIBC_2.9.
2909 * io/Makefile (routines): Add dup3 and pipe2.
2910 * io/Versions [glibc] (GLIBC_2.9): Add dup3 and pipe2.
2911 * io/dup3.c: New file.
2912 * io/pipe2.c: New file.
2913 * posix/unistd.h: Declare dup3 and pipe2.
2914 * socket/Makefile (routines): Add paccept.
2915 * socket/Versions [glibc] (GLIBC_2.9): Add paccept.
2916 * socket/paccept.c: New file.
2917 * socket/sys/socket.h: Declare paccept.
2918 * sysdeps/unix/syscalls.list: Add entry for dup3.
2919 * sysdeps/unix/sysv/linux/Versions [glibc] (GLIBC_2.9): Add
2920 epoll_create2 and inotify_init1.
2921 * sysdeps/unix/sysv/linux/eventfd.c: Use eventfd1 syscall if possible.
2922 * sysdeps/unix/sysv/linux/paccept.c: New file.
2923 * sysdeps/unix/sysv/linux/signalfd.c: Use signalfd4 syscall if
2924 possible.
2925 * sysdeps/unix/sysv/linux/socketcall.h: Add SOCKOP_paccept.
2926 * sysdeps/unix/sysv/linux/syscalls.list: Add epoll_create2,
2927 inotify_init1, and pipe2 entries.
2928 * sysdeps/unix/sysv/linux/alpha/sys/epoll.h: New file.
2929 * sysdeps/unix/sysv/linux/alpha/sys/eventfd.h: New file.
2930 * sysdeps/unix/sysv/linux/alpha/sys/inotify.h: New file.
2931 * sysdeps/unix/sysv/linux/alpha/sys/signalfd.h: New file.
2932 * sysdeps/unix/sysv/linux/alpha/sys/timerfd.h: New file.
2933 * sysdeps/unix/sysv/linux/bits/socket.h: Define SOCK_CLOEXEC and
2934 SOCK_NONBLOCK.
2935 * sysdeps/unix/sysv/linux/i386/paccept.S: New file.
2936 * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: New file.
2937 * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: New file.
2938 * sysdeps/unix/sysv/linux/sparc/sys/inotify.h: New file.
2939 * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h: New file.
2940 * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: New file.
2941 * sysdeps/unix/sysv/linux/sparc/bits/socket.h: New file.
2942 * sysdeps/unix/sysv/linux/sys/epoll.h: Define EPOLL_CLOEXEC and
2943 EPOLL_NONBLOCK. Declare epoll_create2.
2944 * sysdeps/unix/sysv/linux/sys/eventfd.h: Define EFD_CLOEXEC and
2945 EFD_NONBLOCK.
2946 * sysdeps/unix/sysv/linux/sys/inotify.h: Define IN_CLOEXEC and
2947 IN_NONBLOCK. Declare inotify_init1.
2948 * sysdeps/unix/sysv/linux/sys/signalfd.h: Define SFD_CLOEXEC and
2949 SFD_NONBLOCK.
2950 * sysdeps/unix/sysv/linux/sys/timerfd.h: Define TFD_CLOEXEC and
2951 TFD_NONBLOCK.
2952
0e077a7e
UD
2953 * elf/elf.h: Define AT_EXECFN.
2954 * elf/rtld.c [!__ASSUME_AT_EXECFN] (process_envvars): Don't handle
2955 LD_ORIGIN_PATH.
2956 * elf/dl-sysdep.c (_dl_sysdep_start): Handle AT_EXECFN.
2957 * elf/dl-support.c: Define _dl_execfn. Don't define _dl_origin_path
2958 if __ASSUME_AT_EXECFN is defined.
2959 (_dl_aux_init): Handle AT_EXECFN.
2960 * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_AT_EXECFN
2961 for 2.6.27 and up.
2962 * sysdeps/generic/ldsodefs.h (rtld_global_ro): Add _dl_execfn.
2963 Don't define _dl_origin_path if __ASSUME_AT_EXECFN is defined.
2964 * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): Use
2965 _dl_execfn if available and avoid compatibility code if
2966 __ASSUME_AT_EXECFN is defined.
2967
579cdf5a
UD
2968 * sysdeps/unix/sysv/linux/dl-sysdep.h: Don't declare
2969 _dl_discover_osversion only for older kernels.
2970
7385c04c
RM
29712008-07-22 Roland McGrath <roland@frob.com>
2972
2973 * hurd/fd-read.c (_hurd_fd_read): Fix last change.
2974
8a26088d
RM
29752008-07-21 Roland McGrath <roland@frob.com>
2976
2977 * hurd/fd-read.c (_hurd_fd_read): Return EGRATUITOUS if the server
2978 returned too much data out of line.
2979
9f558b80
UD
29802008-07-20 Ulrich Drepper <drepper@redhat.com>
2981
2e79213a
UD
2982 * locale/setlocale.c (setname): Remove inline to avoid compiler
2983 warning.
2984
579cdf5a 2985 [BZ #6712]
9f558b80
UD
2986 * locale/setlocale.c (setlocale): Take the setlocale lock earlier.
2987
9667f97d
UD
29882008-07-15 Ulrich Drepper <drepper@redhat.com>
2989
2486b496
UD
2990 * stdio-common/vfprintf.c (_IO_helper_overflow): In case _IO_sputn
2991 doesn't manage to write anything, fail.
2992
9667f97d
UD
2993 * malloc/hooks.c (__malloc_check_init): Remove printf.
2994
6d4c073b
RM
29952008-07-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
2996
2997 * sysdeps/mach/hurd/bits/fcntl.h: Include <sys/types.h>.
2998
b7432416
UD
29992008-07-12 Ulrich Drepper <drepper@redhat.com>
3000
3001 * nscd/connections.c (main_loop_poll): Fix handling of read errors
3002 from inotify.
3003 (main_loop_epoll): Likewise.
3004
44abc397
UD
30052008-07-09 Ulrich Drepper <drepper@redhat.com>
3006
835113c6
UD
3007 * resolv/res_send.c: Remove unnecessary res_pquery prototype.
3008
fdc769f6
UD
3009 * resolv/res_query.c (__libc_res_nquery): Issue debug message only
3010 if DEBUG is defined.
3011
44abc397
UD
3012 * resolv/res_query.c (__libc_res_nquery): Align buffer for T_AAAA
3013 query. Adjust buffer size computation for padding.
3014
38dc8fad
UD
30152008-07-08 Ulrich Drepper <drepper@redhat.com>
3016
75684bd7
UD
3017 * stdio-common/Makefile: Add rules to build and run tst-setvbuf1.
3018 * stdio-common/tst-setvbuf1.c: New file.
3019 * stdio-common/tst-setvbuf1.expect: New file.
3020
38dc8fad
UD
3021 [BZ #6719]
3022 * libio/iosetvbuf.c (_IO_setvbuf): Correctly clear buffering flags
3023 when selecting fully-buffered stream.
3024 Patch by Wang Xin <wxinee@gmail.com>.
3025
107f4ac2
RM
30262008-07-06 Samuel Thibault <samuel.thibault@ens-lyon.org>
3027
3028 * sysdeps/mach/hurd/open.c: Include <stdio.h>.
3029 (__open_2): New function.
3030 (__open64_2): New alias to __open_2.
3031 * sysdeps/mach/hurd/openat.c: Include <stdio.h>.
3032 (__openat_2): New function.
3033 (__openat64_2): New alias to __openat_2.
3034
45ec3e79
UD
30352008-07-06 Ulrich Drepper <drepper@redhat.com>
3036
3037 [BZ #6723]
3038 * time/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
3039
0a583b54
RM
30402008-07-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
3041
3042 * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Define MSG_NOSIGNAL.
3043 * hurd/hurd/fd.h (__hurd_sockfail): Add extern inline function.
3044 * sysdeps/mach/hurd/recv.c (__recv): Use __hurd_sockfail instead of
3045 __hurd_dfail.
3046 * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Likewise.
3047 * sysdeps/mach/hurd/recvmsg.c (__recvmsg): Likewise.
3048 * sysdeps/mach/hurd/send.c (__send): Likewise.
3049 * sysdeps/mach/hurd/sendto.c (__sendfrom): Likewise.
3050 * sysdeps/mach/hurd/sendmsg.c (__sendmsg): Likewise.
3051
d5a0160b
RM
30522008-03-04 Samuel Thibault <samuel.thibault@ens-lyon.org>
3053
3054 * sysdeps/mach/hurd/recv.c (__recv): Initialize NPORTS.
3055 * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Likewise.
3056 * sysdeps/mach/hurd/recvmsg.c (__recvmsg): Likewise.
3057 * hurd/fd-read.c (_hurd_fd_read): Initialize NREAD.
3058 * hurd/get-host.c (_hurd_get_host_config): Likewise.
3059 * sysdeps/mach/hurd/dl-sysdep.c (__libc_read): Likewise.
3060
80922a99
UD
30612008-06-27 Ulrich Drepper <drepper@redhat.com>
3062
3063 [BZ #6657]
3064 * time/strptime_l.c: Don't clear s.era_cnt after successful match
3065 of %EY.
3066 Patch by Petr Baudis.
3067
34ca2ff7
UD
30682008-06-26 Ulrich Drepper <drepper@redhat.com>
3069
5ee0f5e2 3070 * resolv/res_debug.c (__p_type_syms): Add ns_t_dname entry.
34ca2ff7
UD
3071 Patch by Peter Jones <pjones@redhat.com>.
3072
104426b6
UD
30732008-06-25 Ulrich Drepper <drepper@redhat.com>
3074
3075 [BZ #6654]
3076 * stdlib/canonicalize.c (__realpath): readlink can write too much
3077 into the buffer on platforms without PATH_MAX.
3078
7166d23f
UD
30792008-06-17 Carlos O'Donell <carlos@codesourcery.com>
3080
4cb8e687 3081 [BZ #6653]
7166d23f
UD
3082 * posix/tst-regex.c (main): Rename to...
3083 (do_test): ... this. Remove cmdline option processing.
3084 (TIMEOUT): Define.
3085 (TEST_FUNCTION): Define.
3086 (CMDLINE_OPTIONS): Define.
3087
974069d8
UD
30882008-06-25 Ulrich Drepper <drepper@redhat.com>
3089
3090 [BZ #5210]
3091 * configure.in: Add -Werror to -fstack-protector test to catch
3092 unsupported architectures.
3093 Patch by Gilles Esponasse <g.esp@free.fr>.
3094
cefa2dd3
UD
30952008-06-17 Joseph Myers <joseph@codesourcery.com>
3096
3097 * stdlib/tst-setcontext.c: Set back_in_main before exit if
3098 getcontext returns ENOSYS.
3099
c00d1128
UD
31002008-06-18 Ulrich Drepper <drepper@redhat.com>
3101
3102 * nscd/connections.c (main_loop_poll): Fix test for read error.
3103 (main_loop_epoll): Likewise.
3104
a0edbb48
UD
31052008-06-13 Ulrich Drepper <drepper@redhat.com>
3106
d0a1ae94
UD
3107 * sysdeps/posix/getaddrinfo.c: Move _res_hconf_init call to a
3108 better place so it is not called when nscd is used.
3109
a0edbb48
UD
3110 * nscd/connections.c: Also recognize and handle changes to the
3111 resolver configuration file.
3112
46f70b3c
UD
31132008-06-12 Ulrich Drepper <drepper@redhat.com>
3114
5bcc6c0f
UD
3115 * time/strftime.c: Pass reference to tzset_called around to handle
3116 recursive calls.
3117
3118 [BZ #6612]
3119 * time/strftime.c (__strftime_internal): Call tzset() only
3120 when printing timezone-dependent values.
3121 Based on a patch by Petr Baudis <pasky@suse.cz>.
3122
f854efd7
UD
3123 * resolv/nss_dns/dns-host.c (gaih_getanswer): Don't
3124 unconditionally use second gaih_getanswer_slice result.
3125
46f70b3c
UD
3126 * sysdeps/posix/getaddrinfo.c (gai_inet): Remove unnecessary test.
3127 (getaddrinfo): RES must always be non-NULL.
3128
9ea8bfec
UD
31292008-06-12 Jakub Jelinek <jakub@redhat.com>
3130
3131 * sysdeps/powerpc/powerpc64/fpu/s_llround.S (__llround): Avoid using
3132 cr[34] registers.
3133 * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S (__llroundf): Likewise.
3134 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S (__llround):
3135 Likewise.
3136 * sysdeps/powerpc/powerpc32/fpu/s_lround.S (__lround): Avoid using cr3
3137 register.
3138
5a337776
UD
31392008-06-12 Ulrich Drepper <drepper@redhat.com>
3140
5228ba2f
UD
3141 * nscd/nscd.h (struct database_dyn): Add inotify_descr and clear_cache
3142 fields.
3143 * nscd/connections.c (inotify_fd): New variable.
3144 (nscd_init): Try to open an inotify descriptor.
3145 If successful, watch files for databases using inotify instead of
3146 having prune threads stat the files.
3147 (nscd_run_prune): Recognize clear_cache flag being set and call
3148 prune_cache appropriately.
3149 (main_loop_poll): Add inotify descriptor to wait set and handle the
3150 reported changes.
3151 (main_loop_epoll): Likewise.
3152 * nscd/cache.c (prune_cache): Don't stat files for databases if
3153 inotify is used.
3154 * sysdeps/unix/sysv/linux/Makefile [subdir=nscd]
3155 (CFLAGS-connections.c): Add -DHAVE_INOTIFY.
3156
5a337776
UD
3157 * nscd/grpcache.c (cache_addgr): Correctly compute size of
3158 fixed-size portion of the record.
3159 * nscd/servicescache.c (cache_addserv): Likewise.
3160 * nscd/pwdcache.c (cache_addpw): Likewise.
3161 * nscd/initgrcache.c (addinitgroupsX): Likewise.
3162
9ad58cc3
UD
31632008-06-11 Ulrich Drepper <drepper@redhat.com>
3164
3165 * nscd/mem.c (gc): Initialize obstack earlier so that if we jump
3166 out we don't use uninitialized memory.
3167
3168 * nscd/hstcache.c (cache_addhst): Send correct number of bytes to
3169 the client.
3170
c1283552
UD
31712008-06-10 Ulrich Drepper <drepper@redhat.com>
3172
3173 * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): Also log and
3174 ignore T_DNAME messages.
3175 * resolv/arpa/nameser_compat.h (T_DNAME): Define.
3176
eef8a803
JJ
31772008-06-05 Jakub Jelinek <jakub@redhat.com>
3178
3179 * misc/regexp.h (compile): Use __REPB_PREFIX macro.
3180 Avoid segfault if first GETC returns eof/'\0'/'\n'.
3181
ee78670e
JJ
31822008-06-03 Jakub Jelinek <jakub@redhat.com>
3183
3184 * nscd/nscd_getserv_r.c (__nscd_getservbyport_r): Pass cp
3185 instead of portstr to nscd_getserv_r. Patch by
3186 Roman Kagan <rkagan@mail.ru>.
3187
62605cbf
UD
31882008-05-26 Jim Meyering <meyering@redhat.com>
3189
10966640 3190 Remove more useless "if" tests before "free".
62605cbf
UD
3191 * include/inline-hashtab.h (htab_delete): Likewise.
3192 * libio/freopen.c (freopen): Likewise.
3193 * libio/freopen64.c (freopen64): Likewise.
3194 * locale/programs/ld-collate.c (collate_read): Likewise.
3195 * misc/fstab.c (libc_freeres_fn): Likewise.
3196 * posix/glob.c (globfree): Likewise.
3197
f63abf58
UD
31982008-05-24 Ulrich Drepper <drepper@redhat.com>
3199
3200 * string/Makefile (strop-tests): Add memmem.
3201 * string/test-memmem.c: New file.
3202 * string/test-string.h (BUF1PAGES): Define to 1 if undefined.
3203 (test_init): Size buf1 according to BUF1PAGES.
3204
ad8a5511
JJ
32052008-05-24 Jakub Jelinek <jakub@redhat.com>
3206
3207 * libio/stdio.h (vscanf): Fix -std=c99 redirect.
3208 * stdio-common/Makefile (tests): Add scanf16 and scanf17.
3209 (CFLAGS-scanf17.c): New.
3210 * stdio-common/scanf14.c (main): Add fscanf and scanf tests.
3211 * stdio-common/scanf15.c (main): Likewise.
f63abf58
UD
3212 * stdio-common/scanf16.c: New file.
3213 * stdio-common/scanf17.c: New file.
ad8a5511 3214
e2003883
UD
32152008-05-24 Ulrich Drepper <drepper@redhat.com>
3216
3217 * resolv/res_send.c (send_dg): If we already have one of two
b5ba2c79 3218 answers and the server reports SERVFAIL, NOTIMP, or REFUSED, then
e2003883
UD
3219 use the one answer insted of failing.
3220
acbb9873
UD
32212008-02-20 Ryan S. Arnold <rsa@us.ibm.com>
3222
3223 * math/libm-test.inc (exp_test): Exclude expl(1000.0L) from
3224 being executed on PowerPC as the expected result exceeds IBM
3225 long double 128 __LDBL_MAX__.
3226
e85f1d6a
RM
32272008-05-21 Roland McGrath <roland@redhat.com>
3228
3229 * shlib-versions (sparc.*-.*-.*, sparc64.*-.*-.*): Add ABI lines.
3230
3231 * Makefile (check-data): Use $(abi-name) before other guesses.
3232 Look in $(add-ons) dirs before scripts/data/.
3233 * elf/Makefile (check-data): Likewise.
3234
3235 * scripts/soversions.awk: Grok ABI line.
3236 * Makeconfig ($(common-objpfx)soversions.mk): Likewise.
3237 Emit definition for abi-name variable.
3238
d8e763c6
UD
32392008-05-21 Ulrich Drepper <drepper@redhat.com>
3240
e92799fc 3241 * string/endian.h: Define new fixed-size hto* and *toh macros only
e85f1d6a 3242 if [__USE_BSD].
e92799fc 3243
d8e763c6
UD
3244 * iconvdata/Depend: Add localedata.
3245
009ef333
RM
32462008-05-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
3247
3248 * bits/termios.h (ONLCR): Define under [__USE_XOPEN] too.
3249
86746abb
JJ
32502008-05-08 David S. Miller <davem@davemloft.net>
3251
3252 * sysdeps/unix/sysv/linux/sparc/sparc32/setcontext.S: Use
3253 HIDDEN_JUMPTARGET.
3254 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
3255 (__SYSCALL_CLOBBERS): Remove %g* registers.
3256 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
3257 (__SYSCALL_CLOBBERS): Likewise.
3258 * scripts/data/localplt-sparc-linux-gnu.data: New file.
f63abf58 3259 * scripts/data/localplt-sparc64-linux-gnu.data: New file.
86746abb 3260
5e6f34c2
JJ
32612008-05-21 Jakub Jelinek <jakub@redhat.com>
3262
3263 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
3264 (CALL_ERRNO_LOCATION): Define.
3265 (__SYSCALL_STRING, __CLONE_SYSCALL_STRING): Use it.
3266 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
3267 (CALL_ERRNO_LOCATION): Define.
3268 (__SYSCALL_STRING, __CLONE_SYSCALL_STRING): Use it.
3269 * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S (__brk): Use
3270 HIDDEN_JUMPTARGET for __errno_location call in libc.so.
3271
4beb4532
UD
32722008-05-20 Ulrich Drepper <drepper@redhat.com>
3273
3274 * include/inline-hashtab.h (higher_prime_number): Fix type of mid
3275 variable.
3276
ed8f38ba
JJ
32772008-05-20 Jakub Jelinek <jakub@redhat.com>
3278
3279 * sysdeps/unix/sysv/linux/sparc/sparc32/sigcontextinfo.h
3280 (FIRST_FRAME_POINTER): Define.
3281
32822008-05-09 David S. Miller <davem@davemloft.net>
3283
3284 * sysdeps/sparc/sparc64/backtrace.c: New file.
3285
c1b8190a
JJ
32862008-05-14 David S. Miller <davem@davemloft.net>
3287
3288 * sysdeps/sparc/machine-gmon.h: New file.
3289 * sysdeps/sparc/sparc-mcount.S: Likewise.
3290 * sysdeps/sparc/Makefile: Add sparc-mcount target to
3291 sysdep_routines in gmon directory.
3292
84aacd93
JJ
32932008-05-19 Jakub Jelinek <jakub@redhat.com>
3294
3295 * elf/soinit.c (__EH_FRAME_BEGIN__): Remove.
3296
5908f779
UD
32972008-05-19 Ulrich Drepper <drepper@redhat.com>
3298
3299 * resolv/res_query.c (__libc_res_nquery): In case one of two
3300 answer was too short don't try to read that answer's header.
3301
3302 * resolv/res_send.c (send_dg): In case of timeout and there are
3303 two queries and one has been answered, return value indicating
3304 success.
3305
528741cb
UD
33062008-05-18 Ulrich Drepper <drepper@redhat.com>
3307
3308 * nscd/cache.c (cache_add): Take additional parameter specifying
3309 whether this is in response of a cache refill. Check alignment
3310 of package data. Revamp waking of pruning thread.
3311 (prune_cache): Small optimization.
3312 * nscd/nscd.h: Adjust cache_add prototypes.
3313 * nscd/aicache.c: Adjust cache_add calls.
3314 * nscd/grpcache.c: Likewise.
3315 * nscd/hstcache.c: Likewise.
3316 * nscd/initgrcache.c: Likewise.
3317 * nscd/pwdcache.c: Likewise.
3318 * nscd/servicescache.c: Likewise.
3319 * nscd/connections.c (restart): Really disable cache use before
3320 exec attempt. If it fails, reenable cache.
3321 (nscd_run_prune): Initialize wakeup_time. After wakeup, set wakeup
3322 time to max to be able to notice concurrent cache additions. Unlock
3323 prune_lock while performing gc. Afterwards compute wakeup time with
3324 current wakeup_time value in mind.
3325
343996c4
UD
33262008-05-17 Ulrich Drepper <drepper@redhat.com>
3327
5811d72b
UD
3328 * nscd/mem.c (gc): Avoid stack overflow when allocating move list.
3329
fa526148
UD
3330 * nscd/mem.c (gc): Correctly determine highest used array element
3331 in mark.
3332
77d40f10
UD
3333 * nscd/mem.c (markrange): Add assert to check entries are all
3334 aligned. Small cleanup in bitmap use.
3335
8884028c
UD
3336 * nscd/nscd.h (mem_in_flight): Replace blockaddr field with
3337 blockoff of type nscd_ssize_t.
3338 * nscd/mem.c (gc): Simplify markrange call for on-flight blocks.
3339 (mempoll_alloc): Record block offset and not address.
3340
b2159575
UD
3341 * nscd/mem.c (gc): Fix test for stack overuse.
3342
5c9629d2
UD
3343 * nscd/aicache.c (addhstaiX): Fix a few small problems, cleanups,
3344 more asserts.
3345
66d90496
UD
3346 * sysdeps/posix/getaddrinfo.c (gaih_inet): If nscd reports no
3347 entry is available, believe it.
3348
343996c4
UD
3349 * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): If there are
3350 no answers return NSS_STATUS_NOTFOUND.
3351 (gaih_getanswer): Don't call gaih_getanswer_slice if the answer
3352 buffer does not have any content.
3353
91c8a74b
UD
33542008-05-16 Ulrich Drepper <drepper@redhat.com>
3355
74e13385
UD
3356 * string/strcasestr.c (CMP_FUNC): Use __strncasecmp, not strncasecmp.
3357
91c8a74b
UD
3358 * sysdeps/posix/getaddrinfo.c (gaih_inet): After gethostbyname4_r
3359 lookup, don't assign canon unconditionally.
3360
0caca71a
UD
33612008-05-14 Ulrich Drepper <drepper@redhat.com>
3362
3363 * string/Makefile (distribute): Add str-two-way.h.
3364
33652008-03-29 Eric Blake <ebb9@byu.net>
3366
3367 Rewrite string searches to O(n) rather than O(n^2).
3368 * string/str-two-way.h: New file. For linear fixed-allocation
3369 string searching.
3370 * string/memmem.c: New implementation.
3371 * string/strstr.c: New implementation.
3372 * string/strcasestr.c: New implementation.
3373
b194db79
UD
33742008-04-11 Paolo Bonzini <bonzini@gnu.org>
3375
3376 * posix/regcomp.c (optimize_utf8): Add a note on why we test
3377 opr.ctx_type.
3378 (calc_first): Initialize constraint field.
3379 (duplicate_node_closure): Use it instead of special casing ANCHORS.
3380 Use search_duplicated_node to avoid loops. Fix grammar.
3381 (duplicate_node): Merge constraint field for all node types.
3382 (calc_eclosure_iter): Look at constraint field for all node types.
3383 * posix/regex_internal.c (create_cd_newstate): Don't look at
3384 create_cd_newstate.
3385
c8d49f05
UD
33862008-05-14 Ulrich Drepper <drepper@redhat.com>
3387
215a8745
UD
3388 [BZ #6428]
3389 * configure.in: Don't use $CFLAGS when assembling, use $ASFLAGS.
3390
2f9a1be8
UD
3391 [BZ #6442]
3392 * string/endian.h: Add macros for fixed-size endian conversion.
3393 * bits/byteswap.h: Allow inclusion from <endian.h>.
3394 * sysdeps/i386/bits/byteswap.h: Likewise.
3395 * sysdeps/ia64/bits/byteswap.h: Likewise.
3396 * sysdeps/s390/bits/byteswap.h: Likewise.
3397 * sysdeps/x86_64/bits/byteswap.h: Likewise.
3398 * string/Makefile (tests): Add tst-endian.
3399 * string/tst-endian.c: New file.
3400
c8d49f05
UD
3401 * iconvdata/run-iconv-test.sh: Use = instead of == in test.
3402 Patch by Reuben Thomas.
3403
a754f018
UD
34042008-05-14 Joseph Myers <joseph@codesourcery.com>
3405
3406 * iconvdata/Makefile (bug-iconv6-ENV, tst-iconv7-ENV): Define.
3407
372bfcac
UD
34082008-05-14 Ulrich Drepper <drepper@redhat.com>
3409
a754f018
UD
3410 * iconvdata/bug-iconv6.c (do_test): Use de_DE.UTF-8 locale.
3411
5deca9bb
UD
3412 [BZ #6461]
3413 * iconv/gconv_simple.c (BODY for __gconv_transform_ascii_internal):
3414 Add missing braces.
3415 (BODY for __gconv_transform_internal_ascii): Likewise.
3416
af77c9b7 3417 [BZ #6472]
5fab5544
UD
3418 * sysdeps/posix/getaddrinfo.c (get_scope): Loopback addresses have
3419 to be treated like link-local addresses.
5846c4e2
UD
3420 (match_prefix): Don't treat IPv4 loopback address special when
3421 converting to v4 mapped addressed.
5fab5544 3422
0caca71a 3423 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Call _res_hconf_init
1f039824 3424 if necessary.
b194db79
UD
3425 * posix/tst-rfc3484.c: Add dummy definition of _res_hconf_init.
3426 * posix/tst-rfc3484-2.c: Likewise.
3427 * posix/tst-rfc3484-3.c: Likewise.
1f039824 3428
18a74157
UD
3429 * sysdeps/posix/getaddrinfo.c: Implement handling of DCCP, UDPlite,
3430 and SCTP.
372bfcac
UD
3431
3432 * nss/getent.c (ahosts_keys_int): Handle all known socket types.
3433
3434 * inet/netinet/in.h (IPPIPPROTO_DCCP, IPPROTO_UDPLITE): Define.
3435
3436 * sysdeps/unix/sysv/linux/bits/socket.h (SOCK_DCCP): Define.
3437
f05ac8f5
UD
34382008-05-13 Ulrich Drepper <drepper@redhat.com>
3439
3440 * po/lt.po: New file. From Lituanian translation team.
3441
c9ff0187
UD
34422008-01-30 Alexandre Oliva <aoliva@redhat.com>
3443
3444 Introduce TLS descriptors for i386 and x86_64.
3445 * include/inline-hashtab.h: New file, copied from 2005's
3446 libiberty, with fix for memory leak imported afterwards by
3447 Glauber de Oliveira Costa.
3448 * elf/tlsdeschtab.h: New file.
3449 * elf/dl-reloc.c (_dl_try_allocate_static_tls): Extract from...
3450 (_dl_allocate_static_tls): ... here. Rearrange failure path.
3451 (CHECK_STATIC_TLS): Move to...
3452 * elf/dynamic-link.h: ... this file.
3453 (TRY_STATIC_TLS): New macro.
3454 * elf/dl-conflict.c (CHECK_STATIC_TLS, TRY_STATIC_TLS): Override.
3455 * elf/elf.h (R_386_TLS_GOTDESC, R_386_TLS_DESC_CALL,
3456 R_386_TLS_DESC): Define.
3457 (R_X86_64_PC64, R_X86_GOTOFF64, R_X86_64_GOTPC32): Merge from
3458 binutils.
3459 (R_X86_64_GOTPC32_TLSDESC, R_X86_64_TLSDESC_CALL,
3460 R_X86_64_TLSDESC): Define.
3461 (R_386_NUM, R_X86_64_NUM): Adjust.
3462 * sysdeps/i386/Makefile (sysdep-dl-routines, sysdep_routines,
f05ac8f5 3463 sysdep-rtld-routines): Add tlsdesc and dl-tlsdesc for elf subdir.
c9ff0187
UD
3464 (gen-as-const-headers): Add tlsdesc.sym to csu subdir.
3465 * sysdeps/i386/dl-lookupcfg.h: New file. Introduce _dl_unmap to
3466 release tlsdesc_table.
3467 * sysdeps/i386/dl-machine.h: Include dl-tlsdesc.h.
3468 (elf_machine_type_class): Mark R_386_TLS_DESC as PLT class.
3469 (elf_machine_rel): Handle R_386_TLS_DESC.
3470 (elf_machine_rela): Likewise.
3471 (elf_machine_lazy_rel): Likewise.
3472 (elf_machine_lazy_rela): Likewise.
3473 * sysdeps/i386/dl-tls.h (struct dl_tls_index): Name it.
3474 * sysdeps/i386/dl-tlsdesc.S: New file.
3475 * sysdeps/i386/dl-tlsdesc.h: New file.
3476 * sysdeps/i386/tlsdesc.c: New file.
3477 * sysdeps/i386/tlsdesc.sym: New file.
3478 * sysdeps/i386/bits/linkmap.h (struct link_map_machine): Add
3479 tlsdesc_table.
3480 * sysdeps/x86_64/Makefile (sysdep-dl-routines, sysdep_routines,
f05ac8f5 3481 sysdep-rtld-routines): Add tlsdesc and dl-tlsdesc for elf subdir.
c9ff0187
UD
3482 (gen-as-const-headers): Add tlsdesc.sym to csu subdir.
3483 * sysdeps/x86_64/dl-lookupcfg.h: New file. Introduce _dl_unmap to
3484 release tlsdesc_table.
3485 * sysdeps/x86_64/dl-machine.h: Include dl-tlsdesc.h.
3486 (elf_machine_runtime_setup): Set up lazy TLSDESC GOT entry.
3487 (elf_machine_type_class): Mark R_X86_64_TLSDESC as PLT class.
3488 (elf_machine_rel): Handle R_X86_64_TLSDESC.
3489 (elf_machine_rela): Likewise.
3490 (elf_machine_lazy_rel): Likewise.
3491 * sysdeps/x86_64/dl-tls.h (struct dl_tls_index): Name it.
3492 (__tls_get_addr): Do not declare for non-shared compiles.
3493 * sysdeps/x86_64/dl-tlsdesc.S: New file.
3494 * sysdeps/x86_64/dl-tlsdesc.h: New file.
3495 * sysdeps/x86_64/tlsdesc.c: New file.
3496 * sysdeps/x86_64/tlsdesc.sym: New file.
3497 * sysdeps/x86_64/bits/linkmap.h (struct link_map_machine): Add
3498 tlsdesc_table for both 32- and 64-bit structs.
3499
a3636e8b
UD
35002008-05-11 Ulrich Drepper <drepper@redhat.com>
3501
3502 * elf/dl-tls.c (__tls_get_addr): Optimize by moving slow path in
3503 its own function. This reduces the frame setup costs and more.
3504
a7eb802f
UD
35052008-02-11 Joseph Myers <joseph@codesourcery.com>
3506
3507 [BZ #3406]
3508 * sysdeps/ieee754/flt-32/w_expf.c (o_threshold): Correct value.
3509 * math/libm-test.inc (exp_test): Test 88.72269439697265625.
3510
3490f01d
UD
35112008-05-11 Ulrich Drepper <drepper@redhat.com>
3512
3d7eeebe
UD
3513 * io/openat.c (__openat_2): Also pass fd to __openat.
3514 * io/openat64.c (__openat64_2): Also pass fd to __openat64.
3515 Patch by Kristian Van Der Vliet <vanders@liqwyd.com>.
3516
3490f01d
UD
3517 * string/tester.c (test_memcmp): Add a few more tests.
3518 Patch by Mats Erik Andersson <ynglingatal@comhem.se>.
3519
7e71e55f
UD
35202008-05-10 Ulrich Drepper <drepper@redhat.com>
3521
3522 * nscd/cache.c (cache_add): Before returning with failure and this
3523 is the first use of the record, mark it as unusable.
3524 * nscd/aicache.c: Don't touch the dataset after cache_add returns
3525 reporting a failure.
3526 * nscd/grpcache.c: Likewise
3527 * nscd/hstcache.c: Likewise.
3528 * nscd/initgrcache.c: Likewise.
3529 * nscd/pwdcache.c: Likewise.
343996c4 3530 * nscd/servicescache.c: Likewise.
7e71e55f 3531
7396d0a9
RM
35322008-05-10 Roland McGrath <roland@redhat.com>
3533
3534 [BZ #6505]
3535 * sysdeps/unix/sysv/linux/sys/user.h: Replace with #error stub.
3536
c5ee217f
UD
35372008-05-08 David S. Miller <davem@davemloft.net>
3538
b29899ae
UD
3539 * misc/truncate64.c (truncate64): Use __truncate not truncate.
3540
c5ee217f
UD
3541 * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee751_j0l): Use __finitel.
3542 (__ieee754_y0l): Likewise.
3543 * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Likewise.
3544 (__ieee754_y1l): Likewise.
3545 * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Use __ldexpl.
3546 * sysdeps/ieee754/ldbl-128/s_log1pl.c: Kill bogus prototypes for
3547 frexpl and ldexpl. math_private.h provides them and the latter
3548 is not even used.
3549 (__log1pl): Use __frexpl.
3550
1eb946b9
UD
35512008-05-10 Ulrich Drepper <drepper@redhat.com>
3552
3553 * include/resolv.h: Adjust __libc_res_nquery and __libc_res_nsend
3554 prototypes.
3555 * include/arpa/nameser_compat.h: Define T_UNSPEC.
3556 * nis/Versions (libnss_nis): Export _nss_nis_gethostbyname4_r.
3557 (libnss_nisplus): Export _nss_nisplus_gethostbyname4_r.
3558 * nis/nss_nis/nis-hosts.c (LINE_PARSER): Change to also handle
3559 af==AF_UNSPEC.
3560 (_nss_nis_gethostbyname4_r): New function.
3561 * nis/nss_nisplus/nisplus-hosts.c (_nss_nisplus_parse_hostent):
3562 Change to also handle af==AF_UNSPEC.
3563 (get_tablename): New function. Use it to avoid duplication.
3564 (_nss_nisplus_gethostbyname4_r): New function.
3565 * nscd/aicache.c (addhstaiX): Use gethostbyname4_r function is
3566 available.
3567 * nss/Versions (libnss_files): Export _nss_files_gethostbyname4_r.
3568 * nss/nss.h: Define struct gaih_addrtuple.
3569 * nss/nss_files/files-hosts.c (LINE_PARSER): Change to also handle
3570 af==AF_UNSPEC.
3571 (_nss_files_gethostbyname4_r): New function.
3572 * resolv/Versions (libnss_dns): Export _nss_dns_gethostbyname4_r.
3573 * resolv/gethnmaddr.c: Adjust __libc_res_nsearch and __libc_res_nquery
3574 calls.
3575 * resolv/res_query.c (__libc_res_nquery): Take two additional
3576 parameters for second answer buffer. Handle type=T_UNSPEC to mean
3577 look up IPv4 and IPv6.
3578 Change all callers.
3579 * resolv/res_send.c (__libc_res_nsend): Take five aditional parameters
3580 for an additional query and answer buffer. Pass to send_vc and
3581 send_dg.
3582 (send_vc): Send possibly two requests and receive two answers.
3583 (send_dg): Likewise.
3584 * resolv/nss_dns/dns-host.c: Adjust calls to __libc_res_nsearch and
3585 __libc_res_nquery.
3586 (_nss_dns_gethostbyname4_r): New function.
3587 (gaih_getanswer_slice): Likewise.
3588 (gaih_getanswer): Likewise.
3589 * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Adjust
3590 __libc_res_nquery call.
3591 * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r): Likewise.
3592 (_nss_dns_getnetbyname_r): Adjust __libc_res_nsearch call.
3593 * sysdeps/posix/getaddrinfo.c: Use gethostbyname4_r function is
3594 available.
3595
b7fb703a
JJ
35962008-05-05 David S. Miller <davem@davemloft.net>
3597
3598 * sysdeps/sparc/sparc32/Makefile: Use -mcpu=v7 for initfini.s build.
3599 * sysdeps/sparc/sparc64/Makefile: Use -mcpu=v9 for initfini.s build.
3600
2256e43d
RM
36012007-09-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
3602
3603 Fix termios bit macros.
3604 Move *DLY definitions where they belong, in termios.h.
3605 Add *[0-3] definitions.
3606 Fixes confusion between VT and FF.
8bb52dbf
RM
3607 * sysdeps/mach/hurd/bits/ioctls.h (NL0, NL1, TAB0, TAB1, TAB2, CR0,
3608 CR1, CR2, CR3, FF0, FF1, BS0, BS1): Undefine these at start if they
3609 are already defined to avoid collision with termios.h.
2256e43d
RM
3610 (NLDLY, TABDLY, TAB3, CRDLY, VTDLY, BSDLY): Remove macros.
3611 * bits/termios.h [__USE_MISC || __USE_XOPEN] (NL0, NL1, TAB0,
3612 TAB1, TAB2, CR0, CR1, CR2, CR3, FF0, FF1, BS0, BS1): Likewise.
3613 [__USE_BSD || __USE_XOPEN] (OCRNL, ONOCR, ONLRET): New macros.
3614 [__USE_MISC || __USE_XOPEN] (NLDLY, NL0, NL1, TABDLY, TAB0, TAB1, TAB2,
3615 TAB3, CRDLY, CR0, CR1, CR2, CR3, FFDLY, FF0, FF1, BSDLY, BS0, BS1,
3616 VTDLY, VT0, VT1): New macros.
3617 [__USE_GNU] (OLCUC): Change value of macro.
3618 [__USE_XOPEN] (OFILL): New macro.
3619 [__USE_BSD] (CRTSCTS): Change value.
3620 (CRTS_IFLOW, CCTS_OFLOW): Change into compatibility macros.
3621 [__USE_BSD] (CDTRCTS, CHWFLOW): New macros.
3622 (B7200, B14400, B28800, B76800): New macros.
3623
4ce349e5
JJ
36242008-05-01 David S. Miller <davem@davemloft.net>
3625
a86a7a39
JJ
3626 * sysdeps/unix/sysv/linux/sparc/sparc32/ucontext_i.sym: New file.
3627 * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile [$(subdir) = stdlib]:
3628 (gen-as-const-headers): Add it.
3629 * sysdeps/unix/sysv/linux/sparc/sparc32/getcontext.S: New file.
3630 * sysdeps/unix/sysv/linux/sparc/sparc32/makecontext.c: Likewise.
3631 * sysdeps/unix/sysv/linux/sparc/sparc32/setcontext.S: Likewise.
3632 * sysdeps/unix/sysv/linux/sparc/sparc32/swapcontext.S: Likewise.
2256e43d 3633
4ce349e5
JJ
3634 * sysdeps/unix/sysv/linux/sparc/sparc32/syscall.S: Add support for
3635 six system call parameters.
3636 * sysdeps/unix/sysv/linux/sparc/sparc64/syscall.S: Likewise.
3637
89a8963d
UD
36382008-04-30 Ulrich Drepper <drepper@redhat.com>
3639
3640 * sysdeps/unix/sysv/linux/bits/resource.h: Define RUSAGE_THREAD and
3641 RUSAGE_LWP.
3642 * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
3643 * sysdeps/unix/sysv/linux/alpha/bits/resource.h: Likewise.
3644
b5ec5fce
JJ
36452008-04-30 Jakub Jelinek <jakub@redhat.com>
3646
3647 * stdlib/tst-setcontext.c: Include unistd.h.
3648
d4e92d9e
JJ
36492008-04-25 David S. Miller <davem@davemloft.net>
3650
3651 * sysdeps/unix/sysv/linux/sparc/sparc64/semctl.c (semctl):
3652 Pass "union semun" properly in to sys_ipc, it must be passed
3653 by value, not by reference.
3654
7eb5e6c9
UD
36552008-04-22 Jakub Jelinek <jakub@redhat.com>
3656
3657 * nscd/Makefile (nscd-cflags): Set back to -fpie.
3658 * nscd/nscd.h (mem_in_flight): Add attribute_tls_model_ie.
3659 * nscd/connections.c (mem_in_flight): Likewise.
3660
3661 * nscd/nscd.h (dbs): Make hidden.
3662
3663 * sysdeps/unix/sysv/linux/times.c (__times): Fix check for EFAULT.
3664 Avoid returning -1, return 0 instead.
3665
0073dd2d
UD
36662008-04-19 Ulrich Drepper <drepper@redhat.com>
3667
3668 * resolv/res_mkquery.c (__res_nopt): Use NS_PUT16 instead of ns_put16.
3669
c52137d3
UD
36702008-04-15 Ulrich Drepper <drepper@redhat.com>
3671
3672 [BZ #5209]
3673 * sysdeps/unix/sysv/linux/times.c: New file.
3674
3675 [BZ #5381]
3676 * nscd/nscd.h: Define enum in_flight, mem_in_flight, and
3677 mem_in_flight_list variables. Add new parameter to mempool_alloc
3678 prototype.
3679 * nscd/mem.c (mempool_alloc): Take additional parameter. Initialize
3680 appropriate mem_in_flight element.
3681 (gc): Take allocations which have not yet been committed to the
3682 database into account.
3683 * nscd/cache.c (cache_add): Add new parameter to mempool_alloc call.
3684 Reset mem_in_flight before returning.
3685 * nscd/connections.c (nscd_run_worker): Initialize mem_in_flight and
3686 cue it up in mem_in_flight_list.
3687 * nscd/aicache.c: Adjust mempool_alloc call.
3688 * nscd/grpcache.c: Likewise.
3689 * nscd/hstcache.c: Likewise.
3690 * nscd/initgrcache.c: Likewise.
3691 * nscd/pwdcache.c: Likewise.
3692 * nscd/servicescache.c: Likewise.
3693 * nscd/Makefile (nscd-flags): Until ld is fixed, use -fpic instead
3694 of -fpie.
3695
3696 * nscd/connections.c (handle_request): Provide better error message
3697 in case SELinux forbids the service.
3698
3699 * version.h (VERSION): Bump to 2.8.90.
3700
39546e34
JJ
37012008-04-17 Jakub Jelinek <jakub@redhat.com>
3702
3703 * sysdeps/unix/sysv/linux/dl-osinfo.h: Include fcntl.h.
3704
cf3a8c7f
UD
37052008-04-11 Ulrich Drepper <drepper@redhat.com>
3706
9e113ecd
UD
3707 * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h (__signbitl):
3708 Also use for 32-bit.
3b6d574e
UD
3709 * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c (__nearbyintl): Use
3710 __nextafter instead of nextafter to avoid local PLT.
c3a0ead4
UD
3711 * sysdeps/powerpc/fpu/e_sqrt.c: Avoid call to fetestexcept.
3712 * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
3713
3781ec29
UD
3714 * scripts/data/localplt-powerpc64-linux-gnu.data: New file.
3715
246ec411
UD
3716 * sysdeps/powerpc/fpu/fenv_libc.h: Add libm_hidden_proto for
3717 __fe_nomask_env.
3cc56f92
UD
3718 * sysdeps/powerpc/fpu/fe_nomask.c: Add libm_hidden_def. Include
3719 <fenv_libc.h> instead of <fenv.h>.
246ec411
UD
3720 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c: Likewise.
3721 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c: Likewise.
3722
3723 * sysdeps/powerpc/bits/fenv.h: Make safe for C++.
3724
3725 * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h: New file.
3726 * sysdeps/powerpc/fpu/fegetexcept.c (__fegetexcept): Rename
3727 function from fegetexcept and make old name weak alias.
3728 * include/fenv.h: Declare __fegetexcept.
3729 * sysdeps/powerpc/fpu/fedisblxcpt.c: Use __fegetexcept instead of
3730 fegetexcept.
3731 * sysdeps/powerpc/fpu/feenablxcpt.c: Likewise.
3732 * sysdeps/powerpc/fpu/fraiseexcpt.c (__feraiseexcept): Avoid call
3733 to fetestexcept.
3734 * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Use __frexpl
3735 instead of frexpl to avoid local PLT.
3736 * math/s_significandl.c (__significandl): Use __ilogbl instead of
3737 ilogbl to avoid local PLT.
3738 * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Use __ldexpl
3739 instead of ldexpl to avoid local PLT.
3740 * sysdeps/ieee754/ldbl-128ibm/e_expl.c (__ieee754_expl): Use
3741 __roundl not roundl to avoid local PLT.
3742 * sysdeps/ieee754/ldbl-128/e_j0l.c: Use function names which avoid
3743 local PLTs. Use __sincosl instead of separate sinl and cosl
3744 calls.
3745 * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
3746
2dc4a2fd
UD
3747 * sysdeps/unix/sysv/linux/configure.in: Bump minimal kernel
3748 version for ppc64 to 2.4.21 since without it makecontext will fail.
3749
fe3350ee
UD
3750 * elf/tls-macros.h [__powerpc64__] (__TLS_GET_ADDR): Define according
3751 to the ABI in use.
3752 [__powerpc64__] (TLS_LD): Use __TLS_GET_ADDR instead of
3753 .__tls_get_addr.
3754 [__powerpc64__] (TLS_GD): Likewise.
cf3a8c7f 3755
c1e6b459
UD
37562007-11-20 Ryan S. Arnold <rsa@us.ibm.com>
3757
7763d4f1 3758 [BZ #4997]
c1e6b459
UD
3759 * sysdeps/powerpc/powerpc32/fpu/s_lround.S (__lround): Fixed erroneous
3760 result when x is +/-nextafter(+/-0.5,-/+1) i.e. all 1's in the
3761 mantissa.
3762 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S (__llround):
3763 Likewise. Also account for when x is an odd number between 2^52
3764 and 2^53-1.
3765 * sysdeps/powerpc/powerpc64/fpu/s_llround.S (__llround): Likewise.
3766 * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S (__llroundf): Likewise.
3767 * math/libm-test.inc (lround_test, llround_test): Added test cases to
3768 detect aforementioned erroneous conditions.
3769
22dca1ea
UD
37702008-04-11 Jakub Jelinek <jakub@redhat.com>
3771
3772 * configure.in: Check for -fno-section-anchors in addition to
3773 -fno-toplevel-reorder.
3774
5d59f4a5
UD
37752008-04-11 Ulrich Drepper <drepper@redhat.com>
3776
3777 * include/features.h (__GLIBC_MINOR__): Bump to 8.
3778
3779 * sysdeps/powerpc/powerpc32/fpu/s_lroundf.S: Remove duplicate comment.
3780 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llroundf.S: Likewise.
3781 * sysdeps/powerpc/powerpc32/power6/fpu/s_llroundf.S: Likewise.
3782 * sysdeps/powerpc/powerpc64/fpu/s_lrint.S: Likewise.
3783 * sysdeps/powerpc/powerpc64/fpu/s_lround.S: Likewise.
3784 * sysdeps/powerpc/powerpc64/fpu/s_lroundf.S: Likewise.
3785
91e32540
UD
37862008-04-11 Jakub Jelinek <jakub@redhat.com>
3787
3788 [BZ #5443]
3789 * time/era.c: Transform __libc_setlocale_lock into rwlock.
3790 * time/alt_digit.c: Likewise.
3791 * wcsmbs/wcsmbsload.c: Likewise.
3792
fd490ac8
UD
37932008-04-10 Ulrich Drepper <drepper@redhat.com>
3794
1db5b6f4
UD
3795 * version.h (VERSION): Bump to 2.8.
3796
fd490ac8
UD
3797 * timzeone/asia: Update from tzdata2008b.
3798 * timezone/backward: Likewise.
3799 * timezone/europe: Likewise.
3800 * timezone/northamerica: Likewise.
3801 * timezone/southamerica: Likewise.
3802 * timezone/iso3166.tab: Likewise.
3803 * timezone/leapseconds: Likewise.
3804 * timezone/zone.tab: Likewise.
3805 * timezone/private.h: Update from tzcode2008a.
3806 * timezone/zdump.c: Likewise.
3807 * timezone/zic.c: Likewise.
3808
153cf972
UD
38092008-01-24 Steven Munroe <sjmunroe@us.ibm.com>
3810
3811 [BZ #5741]
3812 * sysdeps/powerpc/powerpc64/dl-machine.h (PPC_DCBT, PPC_DCBF):
3813 Define additonal Data Cache Block instruction macros.
3814 (elf_machine_fixup_plt): Add dcbt for opd and plt entries.
3815 Replace dcbst with dcbf and sync with sync/isync.
3816
d2207f32
UD
38172008-02-21 Alan Modra <amodra@bigpond.net.au>
3818
3819 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_type_class):
3820 Always set ELF_RTYPE_CLASS_PLT.
3821 (elf_machine_lookup_noexec_p, elf_machine_lookup_noplt_p): Delete.
3822
13d83320
UD
38232008-04-03 Steven Munroe <sjmunroe@us.ibm.com>
3824
3825 * sysdeps/powerpc/powerpc32/power4/hp-timing.c: New file.
3826 * sysdeps/powerpc/powerpc32/power4/hp-timing.h: New file.
3827 * sysdeps/powerpc/powerpc64/hp-timing.h [_ARCH_PWR4] (HP_TIMING_NOW):
3828 For ISA 2.01 and later replace mftb with mfspr 268.
3829
5f7aead5
UD
38302008-02-19 Steven Munroe <sjmunroe@us.ibm.com>
3831
3832 [BZ #5768]
3833 * sysdeps/powerpc/fpu/Makefile (libm-tests): Add test-powerpc-snan.
3834 * sysdeps/powerpc/fpu/test-powerpc-snan.c: New file.
3835
38362008-02-18 Steven Munroe <sjmunroe@us.ibm.com>
3837
3838 [BZ #5768]
3839 * sysdeps/powerpc/powerpc32/fpu/s_isnan.S: New file.
3840 * sysdeps/powerpc/powerpc32/fpu/s_isnan.c: Removed.
3841 * sysdeps/powerpc/powerpc64/fpu/s_isnan.S: New file.
3842 * sysdeps/powerpc/powerpc64/fpu/s_isnan.c: Removed.
3843
117df5d9
JJ
38442008-04-10 Jakub Jelinek <jakub@redhat.com>
3845
3846 * stdlib/tst-makecontext.c (othervar): New variable.
3847 (cf): Test sign extending the argument to long.
3848
3b32d8a2
UD
38492008-03-03 Steven Munroe <sjmunroe@us.ibm.com>
3850
3851 * sysdeps/powerpc/powerpc32/power5/fpu/s_isnan.S: New file.
3852 * sysdeps/powerpc/powerpc32/power5/fpu/s_isnanf.S: New file.
3853 * sysdeps/powerpc/powerpc32/power6/fpu/s_isnan.S: New file.
3854 * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S: New file.
3855 * sysdeps/powerpc/powerpc64/power5/fpu/s_isnan.S: New file.
3856 * sysdeps/powerpc/powerpc64/power6/fpu/s_isnan.S: New file.
3857 * sysdeps/powerpc/powerpc64/power6x/fpu/s_isnan.S: New file.
3858
9fb11d4c
UD
38592008-02-22 Alan Modra <amodra@bigpond.net.au>
3860
3861 * elf/Makefile (tests): Substitute tests-vis-yes here.
3862 (tests-vis-yes): Delete.
3863 (modules-name, modules-vis-yes): Similarly.
3864
facd1d8e
UD
38652008-02-12 Pete Eberlein <eberlein@us.ibm.com>
3866
3867 [BZ #4407]
3868 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
3869 Preserve sign in signgamp when x is zero.
3870
aece054b
UD
38712007-10-26 Steven Munroe <sjmunroe@us.ibm.com>
3872
3873 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: New File.
3874 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.c: Removed.
3875 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: New File.
3876 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.c: Removed.
3877 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: New File.
3878 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: New File.
3879
6c30d38f
UD
38802008-04-09 Ulrich Drepper <drepper@redhat.com>
3881
21208604 3882 [BZ #4314]
13d83320
UD
3883 * sysdeps/i386/i686/memcpy.S: Optimize copying of equally aligned
3884 buffers.
21208604 3885
2f611ada 3886 [BZ #5209]
d1235fdf
UD
3887 * sysdeps/unix/sysv/syscalls.list: The times syscall doesn't have
3888 a reserved error value.
2f611ada 3889
6c30d38f
UD
3890 * stdlib/tst-makecontext.c: Change parameter to cf to negative
3891 value to check for correct sign extension.
3892
3893 [BZ #5436]
3894 * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
3895 Copy 64-bit parameter values even though this is not required in
3896 the standard.
3897
3898 * sysdeps/unix/sysv/linux/x86_64/vfork.S (__vfork): Record return
3899 PC save.
3900
de1bbf68
UD
39012008-02-14 Daniel Jacobowitz <dan@codesourcery.com>
3902
3903 * sysdeps/unix/sysv/linux/i386/vfork.S (__vfork): Record return
3904 PC save.
3905
9aef35a5
UD
39062008-04-09 Jakub Jelinek <jakub@redhat.com>
3907
3908 * nss_files/files-XXX.c (_nss_files_getXXent_r): Restore saved errno.
3909
a7925a24
UD
39102008-04-09 Ulrich Drepper <drepper@redhat.com>
3911
3912 [BZ #5998]
3913 * libio/iofwrite.c (_IO_fwrite): Return correct count if flushing
3914 in line-buffered stream failed.
3915 * libio/iofwrite_u.c (fwrite_unlocked): Likewise.
3916
7b61ef24
UD
39172008-04-08 Ulrich Drepper <drepper@redhat.com>
3918
c2a684a4
UD
3919 [BZ #6024]
3920 * scripts/abi-versions.awk: If the version specified by
3921 --enable-oldest-abi is older than the first version for this
3922 architecture, use the default version.
3923
7b61ef24
UD
3924 * locale/programs/ld-collate.c (collate_read): Ignore script lines
3925 as well when ignoring the whole category.
3926
f6d749f0
UD
39272008-04-07 Ulrich Drepper <drepper@redhat.com>
3928
3929 [BZ #6042]
3930 * sysdeps/unix/sysv/linux/net/ethernet.h: Add a few more
3931 ETHERTYPE_* definitions.
3932 Patch partly by Aurelien Jarno <aurelien@aurel32.net>.
3933
1e99aede
JJ
39342008-04-07 Jakub Jelinek <jakub@redhat.com>
3935
3936 * stdlib/mbtowc.c (__no_r_state): Remove.
3937 (mbtowc): New static state variable. Use it instead of
3938 __no_r_state.
3939 * stdlib/wctomb.c (__no_r_state): Remove extern decl.
3940 (__wctomb_state): New hidden variable.
3941 (wctomb): Use __wctomb_state instead of __no_r_state.
3942 * debug/wctomb_chk.c (__no_r_state): Remove extern decl.
3943 (__wctomb_state): New extern decl.
3944 (__wctomb_chk): Use __wctomb_state instead of __no_r_state.
3945
fcf90e0a
UD
39462008-04-07 Ulrich Drepper <drepper@redhat.com>
3947
3948 [BZ #5475]
3949 * resolv/res_init.c: Handle scope IDs in resolv.conf.
3950
ae39e102
JJ
39512008-04-07 Jakub Jelinek <jakub@redhat.com>
3952
3953 * malloc/mtrace.pl: Use $@ instead of $* to keep perl 5.10 quiet.
3954
2503dd30
UD
39552008-04-06 Ulrich Drepper <drepper@redhat.com>
3956
3957 * po/nl.po: Update from translation team.
3958
3eb9c809
UD
39592008-03-31 Ulrich Drepper <drepper@redhat.com>
3960
3961 [BZ #6007]
3962 * string/strfry.c: Handle empty strings again.
3963
9a69db29
UD
39642008-03-30 Ulrich Drepper <drepper@redhat.com>
3965
3966 [BZ #5443]
3967 * intl/dcigettext.c (__dcigettext): Get reader lock for locale data
3968 before looking for translation.
3969 * locale/duplocale.c: Transform __libc_setlocale_lock into rwlock.
3970 * locale/freelocale.c: Likewise.
3971 * locale/newlocale.c: Likewise.
3972 * locale/setlocale.c: Likewise.
3973 Based partially on a patch by ryo@np.css.fujitsu.com.
3974
2ecc7d93
UD
39752008-03-30 Jakub Jelinek <jakub@redhat.com>
3976
3977 * intl/dcigettext.c (_nl_find_msg): Reread nconversions after
3978 acquiring wrlock. Do conv_tab allocation while holding lock.
3979 * intl/Makefile: Add rules to build and run tst-gettext6.
3980 * intl/tst-gettext6.c: New test.
3981 * intl/tst-gettext6.sh: New file.
3982
221e5230
UD
39832008-03-30 Ulrich Drepper <drepper@redhat.com>
3984
faa091c6
UD
3985 * po/nl.po: Update from translation team.
3986
221e5230
UD
3987 * sysdeps/unix/opendir.c (__alloc_dir): If allocation fails for size
3988 provided through st_blksize, try the default size before giving up.
3989
1c272665
UD
39902008-03-29 Ulrich Drepper <drepper@redhat.com>
3991
43f6bec1
UD
3992 * stdio-common/vfprintf.c (vfprintf): Correct overflow test.
3993
e8a32126
UD
3994 [BZ #5939]
3995 * sysdeps/posix/tempname.c (__gen_tempname): Correct flag selection.
3996
1e489af9
UD
3997 * posix/getopt.c (_getopt_internal_r): Remove old POSIX-demanded
3998 error message. POSIX today does not require the messages to be in
3999 a specific form. Suggested by Jim Meyering <jim@meyering.net>.
4000
1d20f7f8
UD
4001 [BZ #5979]
4002 * sunrpc/auth_unix.c: Unify printed strings.
4003 * sunrpc/clnt_tcp.c: Likewise.
4004 * sunrpc/clnt_udp.c: Likewise.
4005 * sunrpc/clnt_unix.c: Likewise.
4006 * sunrpc/svc_tcp.c: Likewise.
4007 * sunrpc/svc_udp.c: Likewise.
4008 * sunrpc/svc_unix.c: Likewise.
4009 * sunrpc/xdr.c: Likewise.
4010 * sunrpc/xdr_array.c: Likewise.
4011 * sunrpc/xdr_rec.c: Likewise.
4012 * sunrpc/xdr_ref.c: Likewise.
4013 * locale/programs/ld-time.c (time_finish): Unify messages.
4014 * locale/programs/locfile.c (handle_copy): Fix typo.
4015 * nscd/nscd.c (options): Fix typo.
4016
1c272665
UD
4017 [BZ #5995]
4018 * stdlib/strtod_l.c: Use correct sign for result in one more
4019 underflow case.
4020 Patch by Eric Blake <ebb9@byu.net>.
4021
48cc060e
UD
40222008-03-27 Jakub Jelinek <jakub@redhat.com>
4023
4024 * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Add open
4025 and creat system calls.
4026 * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove open system
4027 call.
4028 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Remove open and creat
4029 system calls.
4030 * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Likewise.
4031 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
4032 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
4033
f96853be
UD
40342008-03-27 Ulrich Drepper <drepper@redhat.com>
4035
4036 * sysdeps/unix/sysv/linux/bits/local_lim.h: Undefined ARG_MAX if
4037 <linux/limits.h> has defined it.
4038 * sysdeps/unix/sysv/linux/sys/param.h: Define NCARGS to the legacy
4039 ARG_MAX value and prevent ARG_MAX from being defined by the kernel
4040 headers.
4041 * sysdeps/unix/sysv/linux/sysconf.c: Define legacy_ARG_MAX and use
4042 it instead of ARG_MAX.
4043
fde15fdc
UD
40442008-03-25 Jakub Jelinek <jakub@redhat.com>
4045
4046 * posix/gai.conf: Fix comment for scope nullbits.
4047 * sysdeps/posix/getaddrinfo.c (gaiconf_init): If /bits is not present,
4048 default to 128 bits for v4 mapped addresses.
4049
87b9b50f
UD
40502008-03-07 Martin Schwidefsky <schwidefsky@de.ibm.com>
4051
4052 * sysdeps/s390/fpu/fegetenv.c (fegetenv): Remove PTRACE_PEEKUSER
4053 ptrace call to get the ieee_instruction_pointer from the kernel.
4054 * sysdeps/s390/fpu/fesetenv.c (fesetenv): Remove PTRACE_POKEUSER
4055 ptrace call to set the ieee_instructtion_pointer.
4056 * sysdeps/unix/sysv/linux/s390/sys/user.h (struct _user_regs_struct):
4057 Add comment that ieee_instruction_pointer is always 0.
4058
af0498dc
UD
40592008-03-09 Andreas Jaeger <aj@suse.de>
4060
4061 [BZ #5857]
4062 * sysdeps/ieee754/dbl-64/s_rint.c (__rint): Handle j0==18.
4063 * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Likewise.
4064 Patch by Mark Elliott <mark.h.elliott@lmco.com>.
4065
4066 * math/libm-test.inc (nearbyint_test): Add new test cases from #5857.
4067 (rint_test): Likewise.
4068
0ab7632d
UD
40692008-03-24 Ulrich Drepper <drepper@redhat.com>
4070
0facd3df
UD
4071 * nis/nis_call.c (nis_server_cache_search): Save errno around stat
4072 call.
4073 (__nisfind_server): Similar for open readColdStartFile call.
4074 Patch partially by Jim Meyering.
4075 * nss/nss_files/files-XXX.c (_nss_files_getXXent_r): Save errno
4076 around internal_setent call.
4077
7e570c55
UD
4078 * po/vi.po: New Vietnamese translation.
4079
e093c247
UD
4080 * sysdeps/unix/sysv/linux/adjtime.c: Correctly use
4081 ADJ_OFFSET_SS_READ.
4082
0ab7632d
UD
4083 * sysdeps/unix/sysv/linux/bits/sched.h: Add new CLONE_* flags,
4084 remove CLONE_STOPPED.
4085
0726cdf7
UD
40862008-02-10 Jim Meyering <meyering@redhat.com>
4087
4088 Remove useless "if" before "free":
4089 * elf/ldconfig.c (parse_conf_include): Likewise.
4090 * gmon/gmon.c (weak_alias): Likewise.
4091 * iconv/gconv_conf.c (__gconv_get_path): Likewise.
4092 * inet/rcmd.c (__validuser2_sa): Likewise.
4093 * intl/bindtextdom.c (set_binding_values): Likewise.
4094 * intl/loadmsgcat.c (_nl_load_domain, _nl_unload_domain): Likewise.
4095 * libio/genops.c (save_for_backup): Likewise.
4096 * libio/wgenops.c (save_for_wbackup): Likewise.
4097 * locale/programs/ld-collate.c (collate_read): Likewise.
4098 * locale/programs/linereader.c (get_string): Likewise.
4099 * nis/nss_compat/compat-pwd.c (give_pwd_free): Likewise.
4100 * nis/nss_compat/compat-spwd.c (give_spwd_free): Likewise.
4101 * resolv/res_debug.c (do_section): Likewise.
4102 * sunrpc/xdr_sizeof.c (x_inline, xdr_sizeof): Likewise.
4103 * sysdeps/mach/hurd/if_index.c (libc_hidden_def): Likewise.
4104 * sysdeps/posix/sprofil.c (__sprofil): Likewise.
4105 * time/lc-time-cleanup.c (_nl_cleanup_time): Likewise.
4106 * time/tzset.c (tzset_internal): Likewise.
4107
354b7527
JJ
41082008-03-18 Jakub Jelinek <jakub@redhat.com>
4109
4110 * sysdeps/unix/sysv/linux/dl-sysdep.h: Use __ASSEMBLER__ instead
4111 of ASSEMBLER.
4112
ca668b29
UD
41132008-03-11 Ulrich Drepper <drepper@redhat.com>
4114
4115 [BZ #5903]
4116 * iconv/iconv_charmap.c (charmap_conversion): Pass name of output file
4117 not stream for output file. Open output file here.
4118 * iconv/iconv_prog.c (process_lock): Take pointer to output stream
4119 and output file name.
4120 (process_fd): Likewise.
4121 (process_file): Likewise.
4122 (main): Adjust callers of changed functions.
4123 * iconv/iconv_prog.h: Adjust prototype.
4124
f3dc3415
AJ
41252008-03-09 Andreas Jaeger <aj@suse.de>
4126
4127 [BZ #5753]
4128 * sysdeps/ia64/ieee754.h: Use protected namespace
4129 __BIG_ENDIAN/__LITTLE_ENDIAN.
4130 * sysdeps/ieee754/ieee754.h: Likewise.
4131 Patch by Aurelien Jarno <aurelien@aurel32.net>.
4132
a8fd84d4
RM
41332008-03-08 Roland McGrath <roland@frob.com>
4134
2b965f1b
RM
4135 * hurd/hurdsig.c (_hurd_internal_post_signal): When normal rules would
4136 ignore a signal that came from a machine exception, treat it as a
4137 fatal core-dump signal instead.
4138 Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
4139
a8fd84d4
RM
4140 * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler):
4141 Clear DF bit in thread state's eflags.
4142 Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
4143
368a8dec
UD
41442008-03-08 Ulrich Drepper <drepper@redhat.com>
4145
b3278554
UD
4146 [BZ #5774]
4147 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Consume closing brace
c6c00e0d 4148 of NAN(...) sequence.
b3278554
UD
4149 * stdlib/Makefile (tests): Add tst-strtod6.
4150 * stdlib/tst-strtod6.c: New file.
4151
4152 * inet/inet6_opt.c (inet6_opt_init): Check extlen for overflow.
4153
2127a186
UD
4154 [BZ #5762]
4155 * posix/getopt.c (_getopt_internal_r): Clarify error message by
4156 putting offending option character in quotes. Clean up error
4157 messages.
4158 * po/be.po: Adjust msgstr in translation file.
4159 * po/bg.po: Likewise.
4160 * po/ca.po: Likewise.
4161 * po/cs.po: Likewise.
4162 * po/da.po: Likewise.
4163 * po/de.po: Likewise.
4164 * po/es.po: Likewise.
4165 * po/fr.po: Likewise.
4166 * po/hr.po: Likewise.
4167 * po/ko.po: Likewise.
4168 * po/nl.po: Likewise.
4169 * po/rw.po: Likewise.
4170 * po/sk.po: Likewise.
4171 * po/sv.po: Likewise.
4172 * po/tr.po: Likewise.
4173 * po/zh_CN.po: Likewise.
4174 * po/zh_TW.po: Likewise.
4175
725c0c87
UD
4176 [BZ #5760]
4177 * inet/inet6_opt.c (inet6_opt_init): Fix ip6h_len computation.
4178 Patch by Roland Bless <roland@bless.de>.
4179
368a8dec
UD
4180 * sysdeps/unix/sysv/linux/dl-sysdep.c: Avoid unnecessary code for
4181 .o file.
4182 * elf/Makefile (routines): Add dl-sysdep.
4183 (elide-routines.os): Likewise.
4184
78c2bf0e
UD
41852008-03-07 Ulrich Drepper <drepper@redhat.com>
4186
7c22c7ec
UD
4187 [BZ #5786]
4188 * elf/dl-sysdep.c: Undefine ROUND after use.
4189 * sysdeps/generic/ldsodefs.h [HAVE_DL_DISCOVER_OSVERSION]
4190 (struct rtld_global_ro): Add _dl_tls_get_addr_soft element.
4191 * elf/rtld.c (rtld_global_ro): Initialize _dl_discover_osversion.
4192 * sysdeps/unix/sysv/linux/dl-osinfo.h: Move _dl_discover_osversion
4193 to ...
4194 * sysdeps/unix/sysv/linux/dl-sysdep.c: ...here.
4195 * sysdeps/unix/sysv/linux/dl-sysdep.h: Declare _dl_discover_osversion
4196 if necessary.
4197 * sysdeps/unix/sysv/linux/sysconf.c: Handle _SC_ARG_MAX here.
4198
93025f93
UD
4199 * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Add
4200 _dl_tls_get_addr_soft element.
4201 * elf/rtld.c (rtld_global_ro): Initialize _dl_tls_get_addr_soft.
4202 * elf/Versions (ld): Don't export _dl_tls_get_addr_soft.
4203 * dlfcn/dlinfo.c (dlinfo_doit): Access dl_tls_get_addr_soft through
4204 GLRO.
4205 * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise.
4206 * elf/dl-tls.c (_dl_tls_get_addr_soft): Use attribute_hidden instead
4207 of internal_function.
4208
72f10127
UD
4209 * stdlib/Makefile (aux): Add tens_in_limb.
4210 * stdlib/strtod_l.c: Move _tens_in_limb definition to...
4211 * stdlib/tens_in_limb.c: ...here. New file.
4212
443db178
UD
4213 [BZ #5778]
4214 * sysdeps/unix/sysv/linux/pathconf.h: Declare
4215 __statfs_chown_restricted.
4216 * sysdeps/unix/sysv/linux/fpathconf.c: Call __statfs_chown_restricted
4217 for _PC_CHOWN_RESTRICTED.
4218 * sysdeps/unix/sysv/linux/pathconf.c: Likewise.
4219 Implement __statfs_chown_restricted.
4220 * sysdeps/unix/sysv/linux/bits/posix_opt.h: Change
4221 _POSIX_CHOWN_RESTRICTED value to zero.
c71665ad
UD
4222 * io/tst-fchownat.c: Correctly handle _POSIX_CHOWN_RESTRICTED
4223 defined to zero.
443db178 4224
78c2bf0e
UD
4225 * sysdeps/x86_64/rtld-memset.c: New file.
4226
443db178 42272008-02-26 Harsha Jagasia <harsha.jagasia@amd.com>
78c2bf0e
UD
4228
4229 * sysdeps/x86_64/cacheinfo.c (NOT_USED_RIGHT_NOW): Remove ifdef guards.
4230
4231 * sysdeps/x86_64/memset.S: Rewrite non-SSE code path as tuned for AMD
4232 Barcelona machine. Make default fall through branch of
4233 __x86_64_preferred_memory_instruction check as the integer code path.
4234
42352007-10-15 H.J. Lu <hongjiu.lu@intel.com>
4236
4237 * sysdeps/x86_64/cacheinfo.c
4238 (__x86_64_preferred_memory_instruction): New variable.
4239 (init_cacheinfo): Initialize __x86_64_preferred_memory_instruction.
4240
4241 * sysdeps/x86_64/memset.S: Rewrite.
4242
dff37515
UD
42432008-03-04 Jakub Jelinek <jakub@redhat.com>
4244
4245 * include/stdio.h (__asprintf_chk, __dprintf_chk,
4246 __obstack_printf_chk): New prototypes.
4247 (__vasprintf_chk, __vdprintf_chk,
4248 __obstack_vprintf_chk): Likewise.
4249 Add libc_hidden_proto.
4250 * libio/obprintf.c
4251 (_IO_obstack_jumps): No longer static, add attribute_hidden.
4252 * libio/bits/stdio-ldbl.h (__asprintf_chk, __dprintf_chk,
4253 __obstack_printf_chk, __vasprintf_chk, __vdprintf_chk,
4254 __obstack_vprintf_chk): Add __LDBL_REDIR_DECL.
4255 * libio/bits/stdio2.h (__asprintf_chk, __dprintf_chk,
4256 __obstack_printf_chk, __vasprintf_chk, __vdprintf_chk,
4257 __obstack_vprintf_chk): New prototypes.
4258 (asprintf, __asprintf, dprintf, obstack_printf, vasprintf, vdprintf,
4259 obstack_vprintf): New inlines.
4260 * debug/dprintf_chk.c: New file.
4261 * debug/vdprintf_chk.c: New file.
4262 * debug/asprintf_chk.c: New file.
4263 * debug/vasprintf_chk.c: New file.
4264 * debug/obprintf_chk.c: New file.
4265 * debug/tst-chk1.c (do_test): Add asprintf and obstack_printf tests.
4266 * debug/Versions (__asprintf_chk, __dprintf_chk, __obstack_printf_chk,
4267 __vasprintf_chk, __vdprintf_chk, __obstack_vprintf_chk): Export
4268 @@GLIBC_2.8.
4269 * debug/Makefile: Build asprintf_chk, vasprintf_chk, dprintf_chk,
4270 vdprintf_chk and obprintf_chk, set CFLAGS for them.
4271 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c (__nldbl___vasprintf_chk,
4272 __nldbl___vdprintf_chk, __nldbl___obstack_vprintf_chk): Add
4273 libc_hidden_proto.
4274 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl___vasprintf_chk,
4275 __nldbl___vdprintf_chk, __nldbl___obstack_vprintf_chk): New prototypes.
4276 * sysdeps/ieee754/ldbl-opt/Versions (__nldbl___asprintf_chk,
4277 __nldbl___vasprintf_chk, __nldbl___dprintf_chk, __nldbl___vdprintf_chk,
4278 __nldbl___obstack_printf_chk, __nldbl___obstack_vprintf_chk): Export
4279 @@GLIBC_2.8.
4280 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add asprintf_chk,
4281 vasprintf_chk, dprintf_chk, vdprintf_chk, obstack_printf_chk and
4282 obstack_vprintf_chk.
4283 * sysdeps/ieee754/ldbl-opt/nldbl-obstack_vprintf_chk.c: New file.
4284 * sysdeps/ieee754/ldbl-opt/nldbl-dprintf_chk.c: New file.
4285 * sysdeps/ieee754/ldbl-opt/nldbl-obstack_printf_chk.c: New file.
4286 * sysdeps/ieee754/ldbl-opt/nldbl-asprintf_chk.c: New file.
4287 * sysdeps/ieee754/ldbl-opt/nldbl-vdprintf_chk.c: New file.
4288 * sysdeps/ieee754/ldbl-opt/nldbl-vasprintf_chk.c: New file.
4289
d835f136
UD
42902008-03-04 Ulrich Drepper <drepper@redhat.com>
4291
a4bb445a
UD
4292 [BZ #5779]
4293 * misc/sys/queue.h: Add STAILQ_CONCAT and TAILQ_CONCAT definitions.
4294 Patch by Roy Marples <roy@marples.name>.
4295
c958a6a4
UD
4296 [BZ #5736]
4297 * malloc/malloc.c: Fix typo in comment.
4298
d835f136
UD
4299 [BZ #5627]
4300 * locale/iso-639.def: Add Shuswap.
4301
65b4743a
UD
43022008-02-25 Jakub Jelinek <jakub@redhat.com>
4303
4304 [BZ #5790]
4305 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr2_r): Don't
4306 overwrite *h_errnop/*errnop values from getanswer_r in case of
4307 failure.
4308
3868fb6e
UD
43092008-03-03 Ulrich Drepper <drepper@redhat.com>
4310
27c377dd
UD
4311 [BZ #5818]
4312 * nscd/connections.c (dbs): Add initializers for .suggested_module.
4313 (verify_persistent_db): Remove one unnecessary test and add a new one
4314 for bad configuration.
4315 (nscd_init): Improve error reported when persistent database cannot
4316 be reused.
4317 * nscd/nscd.h (DEFAULT_SUGGESTED_MODULE): Define.
4318 * nscd/nscd_conf.c (nscd_parse_file): Provide default values for
4319 .suggested_module and .max_db_size and case config file says the
4320 values are zero.
4321 * nscd/nscd_helper.c (get_mapping): Fail if hash table module is zero.
4322
0f749099
UD
4323 [BZ #5854]
4324 * nis/ypclnt.c (yp_order): Fix handling of return value of
4325 do_ypcall_tr call.
4326 Patch by Jeff Moyer <jmoyer@redhat.com>.
4327
3868fb6e
UD
4328 * po/fr.po: Update from translation team.
4329
268dbf25
AJ
43302008-02-22 Andreas Jaeger <aj@suse.de>,
4331 Carlos O'Donell <carlos@systemhalted.org>
4332
4333 [BZ #5012]
4334 * FAQ.in: Describe why glibc needs to be compiled with
4335 optimization.
4336
73b82641
RM
43372008-02-19 Roland McGrath <roland@redhat.com>
4338
4339 * elf/elf.h (SHT_GNU_ATTRIBUTES): New macro.
4340
c9136393
UD
43412008-02-15 Ulrich Drepper <drepper@redhat.com>
4342
4343 [BZ #5737]
4344 * resolv/netdb.h: Make NI_MAXHOST and NI_MAXSERV available when
4345 __USE_MISC is defined.
4346
2e3e9ff1
UD
43472008-02-10 Ulrich Drepper <drepper@redhat.com>
4348
4349 * sysdeps/unix/sysv/linux/sys/timerfd.h: New file.
4350 * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers): Add
4351 sys/timerfd.h.
4352 * sysdeps/unix/sysv/linux/syscalls.list: Add timerfd_create,
4353 timerfd_gettime, timerfd_settime.
4354 * sysdeps/unix/sysv/linux/Versions: Add timerfd_create,
4355 timerfd_gettime, timerfd_settime for GLIBC_2.8.
4356
85202a2b
RM
43572008-02-08 Roland McGrath <roland@redhat.com>
4358
4359 * elf/elf.h (NT_PPC_SPE): New macro.
4360
708ef8a4
RM
43612008-02-06 Roland McGrath <roland@redhat.com>
4362
4363 * Makerules ($(common-objpfx)sysd-rules):
4364 Depend on $(sysdep-makeconfigs).
4365
363a641b
RM
43662008-01-31 Roland McGrath <roland@redhat.com>
4367
67fbfa5c
RM
4368 [BZ #5442]
4369 * configure.in: Use -print-file-name if it yields a directory,
4370 for each of include and include-fixed.
4371 * configure: Regenerated.
4372
363a641b
RM
4373 * Makeconfig (sysd-rules-targets): New variable.
4374 * sysdeps/unix/make-syscalls.sh: Use it in the rules emitted.
4375 * sysdeps/unix/Makefile (omit-deps): Append variants for each target.
4376
0f0f9610
RM
43772008-01-30 Roland McGrath <roland@redhat.com>
4378
7bd00dbf
RM
4379 * manual/libc.texinfo: Update back-cover text.
4380
0f0f9610
RM
4381 * elf/elf.h (NT_386_TLS): New macro.
4382
16cd816f
RM
43832008-01-29 Roland McGrath <roland@redhat.com>
4384
4385 * Makeconfig (sysd-rules-patterns): New variable.
4386 * Makerules ($(common-objpfx)sysd-rules): Drive the loop from that.
4387 (check-inhibit-asm): New canned sequence, replaces ...
4388 (open-check-inhibit-asm, close-check-inhibit-asm): ... these, removed.
4389 * elf/rtld-Rules ($(objpfx)rtld-%.os): Use $(rtld-CPPFLAGS) in commands.
4390 (rtld-CPPFLAGS): Renamed from CPPFLAGS-rtld.
4391 (CFLAGS-rtld): Variable removed.
4392
f641ffcc
RM
43932008-01-24 Roland McGrath <roland@redhat.com>
4394
4395 * configure.in: Let configure fragments set base_os.
4396 * configure: Regenerated.
4397
b7e26885
UD
43982008-01-22 Ulrich Drepper <drepper@redhat.com>
4399
4400 * po/ko.po: Update from translation team.
4401
b4b166af
UD
44022008-01-12 H.J. Lu <hongjiu.lu@intel.com>
4403
4404 * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Use short for fnstsw.
4405
f66def9d
AJ
44062008-01-12 Andreas Jaeger <aj@suse.de>
4407
4408 [BZ #5040]
4409 * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h (enum EPOLL_EVENTS):
4410 Add EPOLLRDHUP.
4411
d3bc5e77
RM
44122008-01-20 Samuel Thibault <samuel.thibault@ens-lyon.org>
4413
4414 * hurd/hurdsock.c (_hurd_socket_server): Return the standard
4415 error EAFNOSUPPORT rather than non-standard EPFNOSUPPORT.
4416 * sunrpc/bindrsvprt.c (bindresvport): Likewise.
4417
4c533566
UD
44182007-10-23 Alexandre Oliva <aoliva@redhat.com>
4419
4420 * include/link.h (FORCED_DYNAMIC_TLS_OFFSET): Define.
4421 * elf/dl-close.c (_dl_close): Check for it.
4422 * elf/dl-reloc.c (CHECK_STATIC_TLS): Likewise.
4423 (_dl_allocate_static_tls): Likewise.
4424 * elf/dl-tls.c (_dl_allocate_tls_init): Likewise.
4425 (__tls_get_addr): Protect from race conditions in setting l_tls_offset
4426 to it.
4427 * elf/tst-tls16.c: New file.
4428 * elf/tst-tlsmod16a.c: New file.
4429 * elf/tst-tlsmod16b.c: New file.
4430 * elf/Makefile: Add rules to build and run tst-tls16.
4431
a53d3f82
UD
44322008-01-16 Ulrich Drepper <drepper@redhat.com>
4433
a0f6c236
UD
4434 [BZ #5628]
4435 * bits/shm.h: Fix comment describing shmid_ds.
4436 * sysdeps/gnu/bits/shm.h: Likewise.
4437 * sysdeps/unix/sysv/linux/alpha/bits/shm.h: Likewise.
4438 * sysdeps/unix/sysv/linux/bits/shm.h: Likewise.
4439 * sysdeps/unix/sysv/linux/ia64/bits/shm.h: Likewise.
4440 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
4441 * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
4442 * sysdeps/unix/sysv/linux/sh/bits/shm.h: Likewise.
4443 * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
4444 * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Likewise.
4445 Patch by Hareesh Nagarajan <hareesh.nagarajan@gmail.com>.
4446
a53d3f82
UD
4447 [BZ #5607]
4448 * conform/data/fcntl.h-data: Fix posix_fadvise and posix_fallocate
4449 prototypes.
4450 * conform/data/limits.h-data: Adjust limits changed in v6 and add
4451 additional suffixes.
4452 * conform/data/mqueue.h-data: Fix typo in mq_curmsgs entry.
4453 Add optional functions mq_timedreceive and mq_timedsend.
4454 * conform/data/netdb.h-data: Add more AI_* and EAI_* constants.
4455 * conform/data/pthread.h-data: Fix prototype of
4456 pthread_condattr_setclock. pthread_sigmask is not required in v6.
4457 * conform/data/semaphore.h-data: Allow time.h definitions.
4458 * conform/data/signal.h-data: Likewise.
4459 * conform/data/stdio.h-data: getw and putw are not required in v6.
4460 * conform/data/stdlib.h-data: Change setstate prototype.
4461 * conform/data/string.h-data: Fix strerror_r prototype.
4462 * conform/data/time.h-data: Fix typo in TIMER_ABSTIME definition.
4463 * conform/data/unistd.h-data: pthread_atfork not required in v6.
4464 Fix readlink prototype.
4465 * conform/data/netinet/in.h-data: Add const to in6addr_any and
4466 in6addr_loopback.
4467 * inet/netinet/in.h: Cleanup namespace.
4468 * posix/regex.h: Likewise.
4469 * resolv/netdb.h: Likewise.
4470 * sysdeps/unix/sysv/linux/bits/in.h: Likewise.
4471 * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
4472 * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
6107639e
UD
4473 * sysdeps/posix/getaddrinfo.c (default_labels): Adjust for change
4474 of names of in in6_addr.
4475 (default_precedence): Likewise.
4476 * sysdeps/unix/sysv/linux/cmsg_nxthdr.c: Include <stddef.h> for
4477 NULL definition.
a53d3f82 4478
ebca8f73
UD
44792008-01-15 Ulrich Drepper <drepper@redhat.com>
4480
fbe90cd5
UD
4481 * conform/data/fmtmsg.h-data: Add missing allows.
4482 * conform/data/ftw.h-data: Likewise.
4483 * conform/data/inttypes.h-data: Likewise.
4484 * conform/data/math.h-data: Likewise.
4485 * conform/data/signal.h-data: Likewise.
4486 * conform/data/net/if.h-data: Likewise.
4487 * conform/data/netinet/in.h-data: Likewise.
4488 * conform/data/sys/socket.h-data: Likewise.
4489
ebca8f73
UD
4490 [BZ #5614]
4491 * string/bits/string2.h (__strtok_r_1c): Always update *__NEXTP.
4492 (__strtok_r): Simplify.
4493 * string/tester.c (test_strtok_r): Add test case for futile search
4494 with single-character seach string.
4495
7c33ca8b
UD
44962008-01-12 Ulrich Drepper <drepper@redhat.com>
4497
4498 * po/ko.po: Update from translation team.
4499
b8cc0848
AJ
45002008-01-11 Andreas Jaeger <aj@suse.de>
4501
4502 [BZ #5600]
4503 * sysdeps/unix/sysv/linux/sys/signalfd.h (struct
4504 signalfd_siginfo): Use 64-bit type for ssi_ptr to sync with Linux
4505 kernel header.
4506
49029a66
UD
45072008-01-10 Ulrich Drepper <drepper@redhat.com>
4508
4509 * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Store result of
4510 native interface lookup in all the relevant places.
4511
99f05798
UD
45122008-01-10 Jakub Jelinek <jakub@redhat.com>
4513 Ulrich Drepper <drepper@redhat.com>
0efd1956
UD
4514
4515 * sysdeps/posix/getaddrinfo.c (sort_results): Remove service_order
4516 field. Use sockaddr_in6 for source_addr.
4517 (get_scope): Change type of parameter to sockaddr_in6. Adjust.
4518 (match_prefix): Likewise.
4519 (get_label): Likewise.
4520 (get_precedence): Likewise.
4521 (rfc3484_sort): Change to use indirect access to results array.
4522 Adjust to use of sockaddr_in6. Replace service_order test with
4523 simple index comparison.
4524 (getaddrinfo): Define order array. Initialize it. Don't initialize
4525 service_order field. Adjust qsort_t calls. Access sorted result
4526 array indirectly through order array.
4527 * posix/tst-rfc3484.c: Adjust for change of rfc3484_sort.
4528 * posix/tst-rfc3484-2.c: Likewise.
4529 * posix/tst-rfc3484-3.c: Likewise.
4530
b3443701
UD
45312008-01-09 Ulrich Drepper <drepper@redhat.com>
4532
f6bacb8e
UD
4533 [BZ #5541]
4534 * sunrpc/rpc_thread.c (__rpc_thread_destroy): Also free xports and
4535 pollfd structures.
4536 Patch by André Cruz.
4537
aa693c68
UD
4538 [BZ #5545]
4539 * sunrpc/clnt_perr.c (clnt_sperror): Don't use fixed size buffer.
4540 (clnt_spcreateerror): Likewise.
4541
b3443701
UD
4542 [BZ #5553]
4543 * malloc/malloc.c (public_mALLOc): Set ar_ptr when trying main_arena.
4544 (public_mEMALIGn): Likewise.
4545 Patch mostly by Daniel Jacobowitz.
4546
148e12ed
UD
45472008-01-09 Jakub Jelinek <jakub@redhat.com>
4548
4549 * sysdeps/unix/sysv/linux/i386/makecontext.S (__makecontext): Avoid
4550 clobbering memory at or above uc_stack.ss_sp + uc_stack.ss_size.
4551 * stdlib/Makefile: Add rules to build and run tst-makecontext2.
4552 * stdlib/tst-makecontext2.c: New test.
4553
78c2bf0e 45542008-01-08 Jakub Jelinek <jakub@redhat.com>
4b1b449d
UD
4555
4556 * iconv/loop.c (UPDATE_PARAMS): Define to empty statement if not
4557 defined.
4558 (REINIT_PARAMS): Likewise. Undefine before end of file.
4559 (STANDARD_TO_LOOP_ERR_HANDLER): Use UPDATE_PARAMS before calling
4560 transliteration hooks and REINIT_PARAMS afterwards.
4561 * iconvdata/iso-2022-jp.c (BODY): Use a separate variable for
4562 status.
4563 (REINIT_PARAMS): Define.
4564 * iconvdata/ibm1364.c (REINIT_PARAMS): Likewise.
4565 * iconvdata/ibm930.c (REINIT_PARAMS): Likewise.
4566 * iconvdata/ibm933.c (REINIT_PARAMS): Likewise.
4567 * iconvdata/ibm935.c (REINIT_PARAMS): Likewise.
4568 * iconvdata/ibm937.c (REINIT_PARAMS): Likewise.
4569 * iconvdata/ibm939.c (REINIT_PARAMS): Likewise.
4570 * iconvdata/iso-2022-cn.c (REINIT_PARAMS): Likewise.
4571 * iconvdata/iso-2022-cn-ext.c (REINIT_PARAMS): Likewise.
4572 * iconvdata/iso-2022-jp-3.c (REINIT_PARAMS): Likewise.
4573 * iconvdata/iso-2022-kr.c (REINIT_PARAMS): Likewise.
4574 * iconvdata/Makefile: Add rules to build and run tst-iconv7.c.
4575 * iconvdata/tst-iconv7.c: New test.
4576
71edcafa
UD
45772008-01-07 Ulrich Drepper <drepper@redhat.com>
4578
4579 * libio/stdio.h (vscanf): Fix definition for loser compilers.
4580
0fbfe2f7
JJ
45812008-01-05 Jakub Jelinek <jakub@redhat.com>
4582
4583 [BZ #5112]
4584 * nscd/connections.c (restart): Fix condition.
4585
8726a12e
UD
45862008-01-03 Jakub Jelinek <jakub@redhat.com>
4587
4588 * ctype/ctype.h (__ctype_b_loc, __ctype_tolower_loc,
4589 __ctype_toupper_loc): Add __THROW.
4590
f4a1363e
UD
45912008-01-02 Ulrich Drepper <drepper@redhat.com>
4592
ad586879
UD
4593 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Fix
4594 recognition of interface family.
4595
f4a1363e
UD
4596 * posix/getconf.c: Update copyright year.
4597 * nss/getent.c: Likewise.
4598 * iconv/iconvconfig.c: Likewise.
4599 * iconv/iconv_prog.c: Likewise.
4600 * elf/ldconfig.c: Likewise.
4601 * catgets/gencat.c: Likewise.
4602 * csu/version.c: Likewise.
4603 * elf/ldd.bash.in: Likewise.
4604 * elf/sprof.c (print_version): Likewise.
4605 * locale/programs/locale.c: Likewise.
4606 * locale/programs/localedef.c: Likewise.
4607 * nscd/nscd.c (print_version): Likewise.
4608 * debug/xtrace.sh: Likewise.
4609 * malloc/memusage.sh: Likewise.
4610 * malloc/mtrace.pl: Likewise.
4611 * debug/catchsegv.sh: Likewise.
4612
0dc6c5e4
UD
46132007-12-26 Ulrich Drepper <drepper@redhat.com>
4614
4615 * nss/nsswitch.c (__nss_lookup): Actually use alternative name in
4616 second lookup.
4617
80af8b82
UD
46182007-12-23 Ulrich Drepper <drepper@redhat.com>
4619
4620 * sysdeps/x86_64/cacheinfo.c (intel_02_known): New entry 0x3f.
4621 * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
4622
4bcecfb7
RM
46232007-12-17 Roland McGrath <roland@redhat.com>
4624
4625 * inet/ether_line.c (ether_line): Remove unused variable.
4626
46272007-12-17 Samuel Thibault <samuel.thibault@ens-lyon.org>
4628
4629 * login/forkpty.c (forkpty): Add const qualifier to parameters termp
4630 and winp.
4631 * login/openpty.c (openpty): Likewise.
4632 * login/pty.h (openpty, forkpty): Likewise.
4633 * manual/terminal.texi (openpty, forkpty): Likewise.
4634
4cd4c5d6
UD
46352007-12-17 Ulrich Drepper <drepper@redhat.com>
4636
78c2bf0e 4637 * malloc/malloc.c (public_cALLOc): For arenas other than
4cd4c5d6
UD
4638 main_arena, count all bytes inside the mprotect_size range of the
4639 heap as uninitialized.
4640
68631c8e
UD
46412007-12-16 Ulrich Drepper <drepper@redhat.com>
4642
d9961b6a
UD
4643 * elf/tst-execstack.c (do_test): Don't fail if SELinux forbids
4644 executable stacks.
4645
68631c8e
UD
4646 * malloc/malloc.c (public_mTRIm): Iterate over all arenas and call
4647 mTRIm for all of them.
4648 (mTRIm): Additionally iterate over all free blocks and use madvise
4649 to free memory for all those blocks which contain at least one
4650 memory page.
be8c1500
UD
4651 * malloc/tst-trim1.c: New file.
4652 * malloc/Makefile (tests): Add tst-trim1.
68631c8e
UD
4653
4654 * malloc/malloc.c (do_check_malloc_state): Minimal cleanups.
4655
78b767a0
UD
46562007-12-14 Ulrich Drepper <drepper@redhat.com>
4657
4658 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INTERNAL_SYSCALL_ERROR_P):
4659 First cast argument to long
52386be7
UD
4660 * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_gettimeofday):
4661 Return long.
4662 (__vdso_clock_gettime): Likewise.
78b767a0
UD
4663 * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Functions
4664 return long.
4665
bc3e1c12
UD
46662007-12-13 Ulrich Drepper <drepper@redhat.com>
4667
4668 * locale/nl_langinfo.c (nl_langinfo): Just call __nl_langinfo_l.
4669 * locale/nl_langinfo_l.c: Real implementation, copied from
4670 nl_langinfo.c.
4671 * include/langinfo.h: Add libc_hidden_proto for __nl_langinfo_l.
4672
77751669
UD
46732007-12-01 Jim Meyering <meyering@redhat.com>
4674
4675 * posix/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
4676 that would inhibit utf8-optimization of a regexp containing line-
4677 or buffer-anchors, e.g., `^', `$'.
4678
f63e5063
UD
46792007-12-12 Ulrich Drepper <drepper@redhat.com>
4680
4681 * time/bug-getdate1.c (do_test): Don't use century values which
4682 aren't valid on 32-bit systems.
4683
a78814a9
UD
46842007-12-12 Jakub Jelinek <jakub@redhat.com>
4685
4686 * sysdeps/i386/i486/bits/string.h (memmove): Define as macro.
4687 (memmove): Rename to __memmove_g, with __asm__ ("memmove").
4688 * sysdeps/s390/bits/string.h (__strlen_g, __strcpy_g, __strncpy_g,
4689 __strcat_g, __strncat_g): Add __asm__.
4690
46912007-12-12 Ulrich Drepper <drepper@redhat.com>
4692
4693 [BZ #5477]
4694 * io/fchmodat.c: Fix typo in stub_warning use.
4695 Patch by Petr Salinger.
4696
17edb30c
UD
46972007-12-11 Ulrich Drepper <drepper@redhat.com>
4698
58d11795
UD
4699 * iconvdata/hp-thai8.c: New file.
4700 * iconvdata/Makefile: Add rules for hp-thai8.c.
4701 * iconvdata/tst-tables.sh: Add entry for HP-THAI8.
4702 * iconvdata/gconv-modules: Likewise.
4703
4704 [BZ #5464]
4705 * iconvdata/hp-greek8.c: New file.
4706 * iconvdata/Makefile: Add rules for hp-greek8.c.
4707 * iconvdata/tst-tables.sh: Add entry for HP-GREEK8.
4708 * iconvdata/gconv-modules: Likewise.
4709
4710 [BZ #5463]
4711 * iconvdata/hp-turkish8.c: New file.
4712 * iconvdata/Makefile: Add rules for hp-turkish8.c.
4713 * iconvdata/tst-tables.sh: Add entry for HP-TURKISH8.
4714 * iconvdata/gconv-modules: Likewise.
4715
cbf5760e
UD
4716 * malloc/arena.c (grow_heap): Split out code to shrink heap into...
4717 (shrink_heap): ... this new function.
4718 (heap_trim): Call shrink_heap instead of grow_heap.
4719
17edb30c
UD
4720 * malloc/malloc.c (_int_malloc): sYSMALLOc might fail, in this
4721 case don't call alloc_perturb.
4722
ae18718f
UD
47232007-12-10 Ulrich Drepper <drepper@redhat.com>
4724
4725 * sysdeps/unix/sysv/linux/adjtime.c: Use ADJ_OFFSET_SS_READ if
4726 possible.
4727 * sysdeps/unix/sysv/linux/kernel-features.h
4728 (__ASSUME_ADJ_OFFSET_SS_READ): Define for 2.6.24.
4729 * sysdeps/unix/sysv/linux/sys/timex.h (ADJ_OFFSET_SS_READ): Define.
4730
b4354cf4
UD
47312007-12-08 Ulrich Drepper <drepper@redhat.com>
4732
4733 [BZ #5424]
4734 * stdio-common/vfprintf.c: Do not overflow when adding to done.
4735 * stdio-common/Makefile (tests): Add bug22.
4736 * stdio-common/bug22.c: New file.
4737
4738 [BZ #5451]
4739 * time/getdate.c: Fix filling in default values.
4740 * time/bug-getdate1.c: New file.
4741 * time/Makefile: Add rules to build and run bug-getdate1.
4742
4743 * iconvdata/ebcdic-is-friss.c: Use 8bit-gap instead of 8bit-generic.
4744 * iconvdata/ebcdic-es.c: Likewise.
4745 * iconvdata/ebcdic-es-a.c: Likewise.
4746 * iconvdata/ebcdic-uk.c: Likewise.
4747 * iconvdata/iso8859-16.c: Likewise.
4748 * iconvdata/viscii.c: Likewise.
4749 * iconvdata/iso8859-9e.c: Likewise.
4750 * iconvdata/Makefile: Adjust appropriately.
4751
4752 [BZ #5428]
4753 * wcsmbs/wchar.h: Unconditionally undefine __need_mbstate and
4754 __need_wint_t.
4755
26e21e75
UD
47562007-12-07 Ulrich Drepper <drepper@redhat.com>
4757
87520ccc
UD
4758 [BZ #5427]
4759 * iconvdata/hp-roman9.c: New file.
4760 * iconvdata/Makefile: Add rules for hp-roman9.c.
4761 * iconvdata/tst-tables.sh: Add HP-ROMAN9.
b4354cf4 4762 * iconvdata/gconv-modules: Likewise.
87520ccc
UD
4763
4764 * iconvdata/hp-roman8.c: Use 8bit-gap instead of 8bit-generic.
4765 * iconvdata/Makefile: Adjust appropriately.
4766
26e21e75
UD
4767 [BZ #5441]
4768 * stdio-common/vfscanf.c (_IO_vfwscanf): Don't free ptrs_to_free
4769 structure, it's allocated with alloca.
4770 * stdio-common/Makefile (tests): Add bug21.
4771 * stdio-common/bug21.c: New file.
4772
47732007-12-06 Aurelien Jarno <aurelien@aurel32.net>
4774
4775 [BZ #5452]
4776 * sysdeps/unix/sysv/linux/bits/sched.h: Use __extension__
87520ccc 4777 keyword for gcc's braced-groups.
26e21e75
UD
4778
47792007-12-07 Ulrich Drepper <drepper@redhat.com>
4780
4781 [BZ #5454]
4782 * inet/ether_line.c: Strip hostname of whitespaces.
4783 * inet/Makefile (tests): Add tst-ether_line.
4784 * inet/tst-ether_line.c: New file.
4785
9e80c123
UD
47862007-12-03 Ulrich Drepper <drepper@redhat.com>
4787
da0ff4ae
UD
4788 [BZ #5439]
4789 * sysdeps/unix/sysv/linux/sys/signalfd.h: Fix use of __nonnull.
4790
51bd20d9
UD
4791 [BZ #5435]
4792 * sysdeps/unix/sysv/linux/i386/makecontext.S: Align stack.
4793
d90d0256
UD
4794 * stdlib/tst-setcontext.c: Catch the case where the links gets
4795 messed up and we do not reach main again.
4796
9e80c123
UD
4797 * po/ca.po: Update from translation team.
4798
ae4287f8
UD
47992007-11-26 Ulrich Drepper <drepper@redhat.com>
4800
6701afc7 4801 * posix/unistd.h: Declare fsync also for __USE_XOPEN2K.
79fb2e02 4802 * posix/regex.h (REG_ENOSYS): Likewise.
a912a4f8 4803 * wcsmbs/wchar.h: Define __need_file also for __USE_XOPEN2K.
ae4287f8 4804
30294ea4
UD
48052007-11-25 Ulrich Drepper <drepper@redhat.com>
4806
4807 * nscd/nscd.h (MAX_STACK_USE): Define.
4808 * nscd/mem.c (MAX_STACK_USE): Remove definition here.
4809 (gc): Initialize stack_used based on allocation in prune_cache.
4810 * nscd/cache.c (prune_cache): Use heap for mark array if necessary.
e8667ddc 4811 Clear array before use.
30294ea4
UD
4812
4813 * nscd/aicache.c (addhstaiX): Update statistics counter in case
10a4c1e9 4814 memory allocation failed.
e8667ddc
UD
4815 * nscd/hstcache.c (cache_addhst): Likewise.
4816 * nscd/grpcache.c (cache_addgr): Likewise.
4817 * nscd/servicescache.c (cache_addserv): Likewise.
4818 * nscd/pwdcache.c (cache_addpw): Likewise.
4819 * nscd/initgrcache.c (addinitgroupsX): Likewise.
30294ea4 4820
715db78b
UD
48212007-11-23 Ulrich Drepper <drepper@redhat.com>
4822
609bb071
UD
4823 * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Add open
4824 and creat system calls.
4825
715db78b
UD
4826 * sysdeps/unix/sysv/linux/check_native.c: Include <asm/types.h>.
4827
ea2c47b6
UD
48282007-11-23 Martin Schwidefsky <schwidefsky@de.ibm.com>
4829
4830 * sysdeps/unix/sysv/linux/Makefile [subdir=inet] (sysdep_headers):
4831 Add netiucv/iucv.h.
4832 * sysdeps/unix/sysv/linux/netiucv/iucv.h: New file.
4833 * sysdeps/unix/sysv/linux/opensock.c (__opensock): Add AF_IUCV
4834 protocol.
4835 * sysdeps/unix/sysv/linux/sa_len.c (__libc_sa_len): Likewise.
4836 * sysdeps/unix/sysv/linux/s390/opensock.c: New file.
4837 * sysdeps/unix/sysv/linux/s390/sa_len.c: New file.
4838
dcdcf4b9
UD
48392007-11-22 Martin Schwidefsky <schwidefsky@de.ibm.com>
4840
37143323
UD
4841 * sysdeps/s390/bits/string.h (strlen, strcpy, strncpy, strcat,
4842 strncat): Define as macros to avoid compile errors.
4843
dcdcf4b9
UD
4844 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Add open and
4845 creat entries.
4846
3a632674
UD
48472007-11-22 Ulrich Drepper <drepper@redhat.com>
4848
7ea8eb02
UD
4849 [BZ #5382]
4850 * nscd/nscd.h (NSCD_THREAD_STACKSIZE): Define.
4851 * nscd/connections.c (start_threads): Use NSCD_THREAD_STACKSIZE.
715db78b 4852 * nscd/mem.c (gc): Don't allocate arrays on the stack if they can
7ea8eb02 4853 overflow it.
70d5b6ef 4854 Partially based on a patch by Petr Baudis <pasky@suse.cz>.
7ea8eb02
UD
4855
4856 * sysdeps/unix/sysv/linux/nscd_setup_thread.c (setup_thread):
715db78b 4857 Return zero in case the thread library is not NPTL.
7ea8eb02 4858
5c3a3dba
UD
4859 [BZ #5375]
4860 * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix locking when
4861 initializing interface list.
4862
85883123
UD
4863 [BZ #5378]
4864 * nis/nss_compat/compat-initgroups.c (getgrent_next_nss): Don't
4865 use result of nss_getgrgid_r if nothing was found. For other
4866 error return with a failure.
4867 Partially based on a patch by Petr Baudis <pasky@suse.cz>.
4868
3a632674
UD
4869 * locale/programs/ld-collate.c (collate_read): Fix loop to match
4870 macro name.
4871
b73f9135
UD
48722007-11-19 Ulrich Drepper <drepper@redhat.com>
4873
ee72b971
UD
4874 * sysdeps/posix/getaddrinfo.c (defaults_scopes, scopes): New variables.
4875 (get_scope): For IPv4 scope, use scopes table.
4876 (fini): Free scopes table if necessary.
4877 (free_scopelist): New function.
4878 (scopecmp): New function.
4879 (gaiconf_init): Also handle scopev4 entries.
4880 * posix/tst-rfc3484.c (do_test): Initialize scopes.
4881 * posix/tst-rfc3484-2.c (do_test): Likewise.
4882 * posix/gai.conf: Document scopev4 defaults.
4883 * posix/Makefile (tests): Add tst-rfc3484-3.
4884 * posix/tst-rfc3484-3.c: New file.
4885
f4a79765
UD
4886 * sysdeps/posix/getaddrinfo.c (default_labels): Describe entry for
4887 Teredo tunnels.
b73f9135
UD
4888 * posix/gai.conf: Update for current default tables.
4889
429bd64d
UD
48902007-11-19 Ulrich Drepper <drepper@redhat.com>
4891
4892 * po/tr.po: Update from translation team.
4893
3c9af259
RM
48942007-11-18 Roland McGrath <roland@frob.com>
4895
76cf9889
RM
4896 * manual/arith.texi (Remainder Functions): Spelling fix.
4897 From Shaun Silk <genix@mysoul.com.au>.
4898
3c9af259
RM
4899 * sysdeps/mach/hurd/bits/fcntl.h (O_CLOEXEC): Fix value.
4900
238346ab
UD
49012007-11-17 Ulrich Drepper <drepper@redhat.com>
4902
5879ad50
UD
4903 * po/zh_CN.po: Update from translation team.
4904
238346ab
UD
4905 * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
4906 Add sys/signalfd.h and sys/eventfd.h.
4907
b80b9c77
UD
49082007-11-15 Bruno Haible <bruno@clisp.org>
4909
4910 [BZ #5346]
4911 * intl/dcigettext.c (struct known_translation_t): Turn msgid into a
4912 union.
4913 (transcmp): Use the appropriate part of s1->msgid and s2->msgid.
4914 (DCIGETTEXT): Change the allocation of the 'search' variable so that
4915 it needs only fixed stack space. Delay the initialization of
4916 msgid_len until it is needed.
4917
2da2501c
AJ
49182007-11-15 Andreas Jaeger <aj@suse.de>
4919
4920 * sysdeps/ieee754/dbl-64/sincos.tbl: Fix size of union.
4921 Reported by Christoph Quirin Lauter <christoph.lauter@ens-lyon.fr>.
4922
68a6dcf5
UD
49232007-11-15 Ulrich Drepper <drepper@redhat.com>
4924
4925 * po/ko.po: Update from translation team.
4926
43850227
UD
49272007-11-14 Ulrich Drepper <drepper@redhat.com>
4928
1e2692c9
UD
4929 * sysdeps/unix/sysv/linux/check_native.c (__check_native): Simplify
4930 significantly. The device type is also part of the ifinfomsg data.
4931
84e6cc7c 4932 * po/sv.po: Update from translation team.
cbd52634 4933 * po/nl.po: Likewise.
84e6cc7c 4934
f9e2261b
UD
4935 * nscd/cache.c (prune_cache): If cache is empty, instruct caller
4936 to wake up in 24 hours.
4937
43850227
UD
4938 * nscd/gai.c (__ioctl): Define. Include check_native.c.
4939
5742e960
UD
49402007-11-13 Ulrich Drepper <drepper@redhat.com>
4941
1a821d82
UD
4942 * po/cs.po: Update from translation team.
4943 * po/pl.po: Likewise.
4944
773e79b3
UD
4945 * include/ifaddrs.h: Remove in6ai_temporary.
4946 (struct in6addrinfo): Add index element.
4947 Declare __check_native.
4948 * inet/Makefile (aux): Add check_native.
4949 * sysdeps/unix/sysv/linux/check_native.c: New file.
4950 * sysdeps/unix/sysv/linux/check_pf.c: No need to recognize
4951 IFA_F_TEMPORARY. Pass back ifa_index.
4952 * sysdeps/posix/getaddrinfo.c: Remove netlink compatibility code.
4953 (rfc3484_sort): Add new parameter. Implement rule 7 correctly:
4954 call __check_native if necessary.
4955 (getaddrinfo): Fill in index field. Use qsort_r instead of qsort
4956 to sort addresses. Pass information about the results.
4957 * posix/tst-rfc3484.c: Adjust for addition of index field and change
4958 of rfc3484_sort interface.
4959 * posix/tst-rfc3484-2.c: Likewise.
4960
e458144c
UD
4961 * stdlib/stdlib.h: Define __compar_d_fn_t. Declare qsort_r.
4962 * include/stdlib.h: Add hidden_proto for qsort_t and adjust protoype
4963 for _quicksort.
4964 * stdlib/msort.c (qsort): Now a wrapper around qsort_r.
4965 (qsort_r): Renamed from qsort. Take additional parameter and pass it
4966 on as third parameter to compare function and _quicksort.
4967 * stdlib/qsort.c (_quicksort): Take additional parameter and pass on
4968 to the compare function.
4969 * stdlib/Versions [libc] (GLIBC_2.8): Add qsort_r.
4970 * Versions.def: Add GLIBC_2.8 for libc.
4971
bd63f380
UD
4972 * posix/tst-rfc3484.c: Adjust for addition of prefixlen field.
4973 * posix/tst-rfc3484-2.c: Likewise.
4974
5742e960
UD
4975 * include/kernel-features.h: Moved to...
4976 * sysdeps/mach/hurd/kernel-features.h: ...here.
4977
a6ac7fdb
RM
49782007-09-13 H.J. Lu <hongjiu.lu@intel.com>
4979
4980 * sysdeps/i386/i586/memcpy_chk.S: New file.
4981 * sysdeps/i386/i586/mempcpy_chk.S: Likewise.
4982 * sysdeps/i386/i586/memset_chk.S: Likewise.
4983
6f3914d5
UD
49842007-11-12 Ulrich Drepper <drepper@redhat.com>
4985
4986 * include/ifaddrs.c (struct in6addrinfo): Add prefixlen field.
4987 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Always return
4988 list of interfaces. Also store prefix length.
4989 * sysdeps/posix/getaddrinfo.c (sort_result): Add prefixlen element.
4990 (rfc3484_sort): In rule 9, for IPv4 addresses count only matching
4991 prefix if source and destination address are in the same subnet.
4992 (getaddrinfo): Always call __check_pf. Fill in prefixlen field.
4993 Always look for matching record in in6ai list.
4994 Correct source_addr_len value for IPv6->IPv4 converted records.
4995
78cf5f6a
RM
49962007-11-11 Roland McGrath <roland@frob.com>
4997
4998 * include/kernel-features.h: New file.
4999
7f745396
UD
50002007-11-10 Ulrich Drepper <drepper@redhat.com>
5001
01e7fdbb
UD
5002 * sysdeps/pthread/aio_misc.c (handle_fildes_io): Avoid unnecessary
5003 complications for 64-bit platforms.
5004
7f745396
UD
5005 * sysdeps/unix/sysv/linux/open64.c: Move __open64_2 implementation to..
5006 * sysdeps/unix/sysv/linux/open64_2.c: ...here. New file.
5007 * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines): Add
5008 open64_2.
5009 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Add open and creat
5010 entries.
5011 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
5012 * sysdeps/wordsize-64/alphasort.c: New file.
5013 * sysdeps/wordsize-64/alphasort64.c: New file.
5014 * sysdeps/wordsize-64/fseeko.c: New file.
5015 * sysdeps/wordsize-64/fseeko64.c: New file.
5016 * sysdeps/wordsize-64/ftello.c: New file.
5017 * sysdeps/wordsize-64/ftello64.c: New file.
5018 * sysdeps/wordsize-64/ftw.c: New file.
5019 * sysdeps/wordsize-64/ftw64.c: New file.
5020 * sysdeps/wordsize-64/iofgetpos.c: New file.
5021 * sysdeps/wordsize-64/iofgetpos64.c: New file.
5022 * sysdeps/wordsize-64/iofopen.c: New file.
5023 * sysdeps/wordsize-64/iofopen64.c: New file.
5024 * sysdeps/wordsize-64/iofsetpos.c: New file.
5025 * sysdeps/wordsize-64/iofsetpos64.c: New file.
5026 * sysdeps/wordsize-64/lockf.c: New file.
5027 * sysdeps/wordsize-64/lockf64.c: New file.
5028 * sysdeps/wordsize-64/mkostemp.c: New file.
5029 * sysdeps/wordsize-64/mkostemp64.c: New file.
5030 * sysdeps/wordsize-64/mkstemp.c: New file.
5031 * sysdeps/wordsize-64/mkstemp64.c: New file.
5032 * sysdeps/wordsize-64/scandir.c: New file.
5033 * sysdeps/wordsize-64/scandir64.c: New file.
5034 * sysdeps/wordsize-64/tmpfile.c: New file.
5035 * sysdeps/wordsize-64/tmpfile64.c: New file.
5036 * sysdeps/wordsize-64/versionsort.c: New file.
5037 * sysdeps/wordsize-64/versionsort64.c: New file.
5038 * sysdeps/unix/sysv/linux/wordsize-64/aio_read.c: New file.
5039 * sysdeps/unix/sysv/linux/wordsize-64/aio_read64.c: New file.
5040 * sysdeps/unix/sysv/linux/wordsize-64/aio_write.c: New file.
5041 * sysdeps/unix/sysv/linux/wordsize-64/aio_write64.c: New file.
5042 * sysdeps/unix/sysv/linux/wordsize-64/creat64.c: New file.
5043 * sysdeps/unix/sysv/linux/wordsize-64/getdirentries.c: New file.
5044 * sysdeps/unix/sysv/linux/wordsize-64/getdirentries64.c: New file.
5045 * sysdeps/unix/sysv/linux/wordsize-64/lio_listio.c: New file.
5046 * sysdeps/unix/sysv/linux/wordsize-64/lio_listio64.c: New file.
5047 * sysdeps/unix/sysv/linux/wordsize-64/open64.c: New file.
5048 * sysdeps/unix/sysv/linux/wordsize-64/openat.c: New file.
5049 * sysdeps/unix/sysv/linux/wordsize-64/openat64.c: New file.
5050
5051 * crypt/sha256-crypt.c: Fix a comment.
5052 * crypt/sha512-crypt.c: Likewise.
5053
f6ed654c
UD
50542007-11-07 H.J. Lu <hongjiu.lu@intel.com>
5055
5056 * sysdeps/x86_64/memset.S: Add sfence after movnti.
5057
f2a8406a
UD
50582007-11-07 Ulrich Drepper <drepper@redhat.com>
5059
5060 [BZ #5277]
5061 * iconv/loop.c (STANDARD_TO_LOOP_ERR_HANDLER): If conversion failed
5062 because output buffer is too small break, don't loop.
5063 * iconvdata/Makefile (tests): Add bug-iconv6.
5064 * iconvdata/bug-iconv6.c: New file.
5065
7fe4e0e8
UD
50662007-11-06 Ulrich Drepper <drepper@redhat.com>
5067
9ca230d6
UD
5068 * stdio-common/vfprintf.c (vfprintf): Compute necessary buffer size
5069 with size_t type.
5070 * stdio-common/printf_fp.c (__print_fp): Change chars_needed type to
5071 size_t. Add casts where needed.
5072
7fe4e0e8
UD
5073 * nscd/selinux.c (nscd_request_avc_has_perm): When compiled with
5074 old headers, don't call avc_has_perm if we don't have the
5075 permission information.
5076
b92e3780
UD
50772007-11-05 Daniel Jacobowitz <dan@codesourcery.com>
5078
5079 * elf/rtld.c (dl_main): Use the page size to find the map start.
5080
ffb1b882
UD
50812007-11-05 Ulrich Drepper <drepper@redhat.com>
5082
94a749f6
UD
5083 * time/tzfile.c (__tzfile_read): Fix check for version 0 data files.
5084 Patch by Szymon Siwek <sls@poczta.wp.pl>.
5085
ffb1b882
UD
5086 * nscd/aicache.c (addhstaiX): Check herrno after IPv4 lookup only
5087 when the lookup call failed.
5088
5089 * nscd/nscd.h (struct database_dyn): Rename prunelock to prune_lock.
5090 Add prune_cond and wakeup_time.
5091 (CACHE_PRUNE_INTERNAL): Define.
5092 Update declarations of prune_cache and setup_thread.
5093 * nscd/connections.c (dbs): Update initializers.
5094 (CACHE_PRUNE_INTERNAL): Moved to nscd.h.
5095 (nscd_init): Default number of threads is now 4.
5096 (invalidate_cache): Take lock before calling prune_cache.
5097 (handle_request): If SELinux forbids the request, say so.
5098 (readylist_cond): Use static initializer.
5099 (nscd_run_prune): New function. Used only by pruning threads.
5100 (nscd_run_worder): Renamed from nscd_run. Remove support for pruning
5101 here.
5102 (fd_ready): Update nscd_run reference.
5103 (start_threads): No need to initialize readylist_cond.
5104 Start pruning threads separately.
5105 * nscd/nscd_setup_thread.c: Change return value type to int and always
5106 return 0.
5107 * sysdeps/unix/sysv/linux/nscd_setup_thread.c: Change return value type
5108 to int and return nonzero value if we can use the TID address hack.
5109 * nscd/cache.c (cache_add): If next wakeup time of cleanup thread for
5110 the database is later than the new entry's timeout, update the
5111 wakeup time and wake the cleanup thread.
5112 (prune_cache): Return seconds the next entry in the database is still
5113 valid. Remove locking for pruning here.
5114 * nscd/nscd.conf: Document default number of threads.
5115
4c48ef06
UD
51162007-10-31 Ulrich Drepper <drepper@redhat.com>
5117
41ff2a49
UD
5118 * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Make sure
5119 stack is properly aligned for the target function.
5120 Correct unwind info.
ffb1b882 5121
4c48ef06
UD
5122 * elf/rtld.c (dl_main): Initialize stack and pointer guard early
5123 when using auditing libraries.
5124
384ca551
UD
51252007-10-29 Ulrich Drepper <drepper@redhat.com>
5126
31e2791c
UD
5127 * resolv/Versions [libresolv] (GLIBC_PRIVATE): Add
5128 _nss_dns_getnetbyaddr2_r.
5129 * resolv/nss_dns/dns-host.c: Define _nss_dns_getnetbyaddr2_r. Pass
5130 extra parameter to getanswer_r.
5131 (_nss_dns_getnetbyaddr_r): Now a wrapper around
5132 _nss_dns_getnetbyaddr2_r.
5133
384ca551
UD
5134 * nscd/Makefile (nscd-modules): Replace gethstbynm2_r with
5135 gethstbynm3_r.
5136 * nscd/gethstbynm2_r.c: Remove.
5137 * nscd/gethstbynm3_r.c: New file.
5138 * nscd/aicache.c (addhstaiX): Use __gethostbyaddr2_r instead of
5139 __gethostbyaddr_r.
5140 * nscd/gethstbyad_r.c: Generate __gethostbyaddr2_r function. Define
5141 __gethostbyaddr_r compatibility wrapper.
5142 * nscd/hstcache.c (cache_addhst): Add ttl parameter. Use it when
5143 determining timeout of entry.
5144 (lookup): Take new parameter and pass it to __gethostbyname3_r and
5145 __gethostbyaddr2_r.
5146 (addhstbyX): Pass reference to variable for TTL to lookup and
5147 cache_addhst.
5148 * nss/Versions [glibc] (GLIBC_PRIVATE): Export __nss_passwd_lookup2,
5149 __nss_group_lookup2, __nss_hosts_lookup2, __nss_services_lookup2,
5150 and __nss_next2. Remove __nss_services_lookup.
5151 * nss/XXX-lookup.c: Name function now *_lookup2. Add new parameter.
5152 Add compat wrapper.
5153 * nss/getXXbyYY_r.c: Changes to call new *_lookup2 functions and
5154 __nss_next2.
5155 * nss/getXXent_r.c: Likewise.
5156 * nss/getnssent_r.c: Likewise.
5157 * nss/nsswitch.c (__nss_lookup): Add new parameter. If first function
5158 does not exist in module, try the optional second name.
5159 (__nss_next2): New function.
5160 (__nss_next): Now wrapper around __nss_next2.
5161 * nss/nsswitch.h: Adjust __nss_lookup prototype.
5162 Declare __nss_next2.
5163 Adjust definition of db_lookup_function type.
5164 * nss/service-lookup.c: Define NO_COMPAT.
5165 * include/netdb.h: Declare __gethostbyaddr2_r and __gethostbyname3_r.
5166 * inet/ether_hton.c: Use __nss_next2 instead of __nss_next.
5167 * inet/ether_ntoh.c: Likewise.
5168 * sunrpc/netname.c: Likewise.
5169 * sunrpc/publickey.c: Likewise.
5170 * inet/getnetgrent.c: Likewise. Adjust calls to __nss_lookup.
5171 * inet/gethstbyad_r.c (DB_LOOKUP_FCT): Change to __nss_hosts_lookup2.
5172 * inet/gethstbynm2_r.c (DB_LOOKUP_FCT): Likewise.
5173 * inet/gethstbynm_r.c (DB_LOOKUP_FCT): Likewise.
5174 * inet/gethstent_r.c (DB_LOOKUP_FCT): Likewise.
5175
5176 * nscd/aicache.c (addhstaiX): Fix default TTL handling.
5177
5e37840c 5178 * inet/getnetgrent_r.c (setup): Encrypt static pointer.
384ca551 5179
88197030
UD
51802007-10-28 Ulrich Drepper <drepper@redhat.com>
5181
f160a450
UD
5182 [BZ #5204]
5183 * crypt/sha256c-test.c: Define TIMEOUT to 6 for ancient hardware.
5184 * crypt/sha512c-test.c: Likewise.
5185
4c6b2202
UD
5186 [BZ #5225]
5187 * stdio-common/vfscanf.c (_IO_vfwscanf): Don't misuse wp pointer
5188 to keep track of end of %[ format string element.
22c915ac
UD
5189 * stdio-common/Makefile (tests): Add bug20.
5190 * stdio-common/bug20.c: New file.
4c6b2202 5191
88197030
UD
5192 [BZ #5222]
5193 * elf/dl-load.c (_dl_rtld_di_serinfo): Correct handling of short
5194 path elements in counting mode.
5195
05d69147
UD
51962007-10-27 Andreas Jaeger <aj@suse.de>
5197
94833f11
UD
5198 [BZ #5040]
5199 * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLRDHUP): Add value.
5200
05d69147
UD
5201 [BZ #3112]
5202 * sysdeps/ia64/backtrace.c (init): Free shared library if incorrect.
5203 (__cleanup): Free shared library when exiting.
5204 * sysdeps/i386/backtrace.c (init): Free shared library if incorrect.
5205 (__cleanup): Free shared library when exiting.
5206
e6b29af8
UD
52072006-04-14 H.J. Lu <hongjiu.lu@intel.com>
5208
5209 [BZ #2549]
5210 * math/libm-test.inc (check_float_internal): Support
5211 denormalized return.
5212
ad3371fb
UD
52132007-10-23 Andreas Jaeger <aj@suse.de>
5214
5215 [BZ #5208]
5216 * sysdeps/unix/sysv/linux/readahead.c (__readahead): Use
5217 __LONG_LONG_PAIR to handle little endian byte order.
5218 Suggested by abhishekrai@google.com
5219
666aa020
UD
52202007-10-27 Ulrich Drepper <drepper@redhat.com>
5221
5222 * malloc/arena.c [!NO_THREADS]: Use ATFORK_MEM if defined.
5223
8ad343b3
UD
52242007-10-26 Ulrich Drepper <drepper@redhat.com>
5225
5226 * nscd/cache.c (prune_cache): Move test for modified file outside
5227 of locking.
5228
9251c568
AJ
52292007-10-21 Andreas Jaeger <aj@suse.de>
5230
5231 * manual/texinfo.tex: Update to latest version.
5232
5233 * manual/sysinfo.texi (System Parameters): Fix Formatting.
5234
5235 * manual/arith.texi (Status bit operations): Fix formatting.
5236
5237 * manual/errno.texi (Error Messages): Fix formatting.
5238
5239 * manual/sysinfo.texi (System Parameters): Fix formatting.
5240
5241 * manual/libc.texinfo: Update VERSION and UPDATED.
5242
260b2e06
RM
52432007-10-19 Roland McGrath <roland@redhat.com>
5244
5245 * elf/Makefile ($(objpfx)ld.so): Use $(AWK).
5246
46ae8850
JJ
52472007-10-06 David S. Miller <davem@davemloft.net>
5248
5249 * configure.in: Add sparcv9v2 and sparc64v2.
5250 * scripts/config.sub: Likewise.
5251 * configure: Regenerate.
5252 * elf/elf.h (HWCAP_SPARC_N2): New.
5253 * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Bump to 8.
5254 * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add 'v9v2'.
5255 (HWCAP_IMPORTANT): Add HWCAP_SPARC_N2.
5256 * sysdeps/sparc/sparc32/sparcv9/sparcv9v2/memcpy.S: New file.
5257 * sysdeps/sparc/sparc32/sparcv9/sparcv9v2/memset.S: New file.
5258 * sysdeps/sparc/sparc64/sparcv9v2/memcpy.S: New file.
5259 * sysdeps/sparc/sparc64/sparcv9v2/memset.S: New file.
5260
6fbfbd80
UD
52612007-10-18 Ulrich Drepper <drepper@redhat.com>
5262
5263 * sunrpc/clnt_udp.c (clntudp_call): Don't block in recvfrom call
5264 even if the poll result indicates there is data to read.
5265 Patch by Jeff Moyer <jmoyer@redhat.com>.
5266
39cfc9fa
RM
52672007-10-18 Roland McGrath <roland@redhat.com>
5268
5269 * elf/elf.h (NT_PPC_VMX): New macro.
28919a77 5270
39cfc9fa 52712007-10-17 Ulrich Drepper <drepper@redhat.com>
28919a77
UD
5272
5273 * version.h (VERSION): Set to 2.7.90.
5274
ed13ccf1
JJ
52752007-10-17 Jakub Jelinek <jakub@redhat.com>
5276
5277 * sysdeps/x86_64/memset.S (bzero): Renamed to __bzero. Add
5278 weak_alias.
5279
ee9fd869
RM
52802007-10-17 Roland McGrath <roland@frob.com>
5281
5282 * sysdeps/mach/hurd/bits/fcntl.h [__USE_GNU__] (F_DUPFD_CLOEXEC): New.
5283 * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Implement it.
5284
1aa5e4d7
UD
52852007-10-17 Ulrich Drepper <drepper@redhat.com>
5286
50c9fbbf 5287 * version.h (VERSION): Bump to 2.7.
777bc4bf 5288 * include/features.h (__GLIBC_MINOR__): Bump to 7.
50c9fbbf 5289
58423c7d
UD
5290 [BZ #5186]
5291 * time/tzset.c (__tz_convert): Don't force testing for a change of
5292 TZ if not called from localtime. But then also see whether the
5293 file changed, in case __use_tzfile is set.
5294
1aa5e4d7
UD
5295 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define F_DUPFD_CLOEXEC.
5296 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
5297 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
5298 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
5299 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
5300 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
5301 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
5302 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
5303
fc4837e5
UD
53042007-10-17 Jakub Jelinek <jakub@redhat.com>
5305
5306 * sysdeps/posix/getaddrinfo.c (getaddrinfo): When sorting addresses
5307 and admin selects to be able to replace the gai.conf file, lock
5308 data structures around the qsort call.
5309
62eaf7c8
UD
53102007-10-17 Ulrich Drepper <drepper@redhat.com>
5311
406f28db
UD
5312 * sysdeps/x86_64/cacheinfo.c: Comment out code added in support of
5313 new memset.
ac1cb5da 5314 * sysdeps/x86_64/memset.S: Revert to old version for now. The cost is
406f28db
UD
5315 too high for the improvements. Implement bzero unconditionally for
5316 use in libc.
ac1cb5da
UD
5317
53182007-10-17 Ulrich Drepper <drepper@redhat.com>
5319 Jakub Jelinek <jakub@redhat.com>
5320
62eaf7c8
UD
5321 * time/tzfile.c (__tzfile_read): Read POSIX TZ string if available
5322 even when time_t is 32-bit.
5323 (__tzfile_compute): Override POSIX TZ string STD/DST zone names if
5324 timezone data read by __tzfile_default. Ensure __tzname[0] is
5325 always set after the search.
5326
6a649d25
UD
53272007-10-16 Ulrich Drepper <drepper@redhat.com>
5328
5329 * time/tzfile.c (__tzfile_read): Help the compiler recognize
5330 unreachable code on 32-bit machines.
5331
800d6f9e
UD
53322007-10-16 Jakub Jelinek <jakub@redhat.com>
5333
5334 [BZ #5184]
5335 * time/strftime_l.c: Include stdbool.h.
5336 (my_strftime): New wrapper, old function renamed to...
5337 (__strftime_internal): ... new function. Add tzset_called
5338 argument, pass it down to recursive calls, don't call tzset ()
5339 if already true, set to true after call to tzset ().
62eaf7c8 5340
69819d92
UD
53412007-10-16 Ulrich Drepper <drepper@redhat.com>
5342
5343 * time/tzfile.c (__tzfile_read): Take extra memory requested by caller
5344 into account when copying TZ string.
5345
62eaf7c8
UD
53462007-10-16 Jakub Jelinek <jakub@redhat.com>
5347
5348 * time/tzfile.c (__tzfile_compute): For use_last case set i to
5349 num_transition rather than num_transitions - 1.
5350
0308ad66
JJ
53512007-10-16 Jakub Jelinek <jakub@redhat.com>
5352
8d137b60
JJ
5353 * sysdeps/x86_64/memset.S (memset): Fix sse2_nt_move
5354 PIC indirect jump.
5355
0308ad66
JJ
5356 * sysdeps/x86_64/memset.S: Jump from bzero to memset using
5357 a local label rather than HIDDEN_JUMPTARGET.
5358
e2b393bc
UD
53592007-10-15 Ulrich Drepper <drepper@redhat.com>
5360
5361 * sysdeps/x86_64/cacheinfo.c (__x86_64_shared_cache_size): Define.
5362 (init_cacheinfo): Initialize it.
5363 * sysdeps/x86_64/memset.S: Use __x86_64_shared_cache_size.
5364 Always define bzero.
5365 Remove non-glibc code.
5366 * sysdeps/x86_64/bzero.S: Make an empty file.
5367
53682007-10-15 H.J. Lu <hongjiu.lu@intel.com>
5369
5370 * sysdeps/x86_64/cacheinfo.c
5371 (__x86_64_preferred_memory_instruction): New.
5372 (init_cacheinfo): Initialize __x86_64_preferred_memory_instruction.
5373
5374 * sysdeps/x86_64/memset.S: Rewrite.
5375
0fbfcb7b
RM
53762007-10-15 Roland McGrath <roland@redhat.com>
5377
5378 * po/libc.pot: Regenerated.
5379
2884dad4
UD
53802007-10-15 Ulrich Drepper <drepper@redhat.com>
5381
e2b393bc 5382 * nss/getXXbyYY_r.c (REENTRANT_NAME): Mangle startp and start_fct
d96a2216
UD
5383 pointers.
5384
2884dad4
UD
5385 [BZ #3425]
5386 * resolv/nss_dns/dns-host.c (getanswer_r): Fail with
5387 NSS_STATUS_NOTFOUND if the server replied with only a CNAME and no
5388 address record to T_A/T_AAAA requests.
5389
89dc9d4c
UD
53902007-10-14 Ulrich Drepper <drepper@redhat.com>
5391
8d97ac13
UD
5392 * posix/glob.c: Reimplement link_exists_p to use fstatat64.
5393
1b6aa63f
UD
5394 * posix/glob.c: Add some branch prediction throughout.
5395
895a08c0
UD
5396 * nscd/nscd_getgr_r.c (nscd_getgr_r): Store result of successful
5397 read from nscd.
5398
6f55ed88
UD
5399 * sysdeps/posix/getaddrinfo.c (struct sort_result): Add
5400 service_order.
8d62c8ab
UD
5401 (rfc3484_sort): Make sure that even if qsort doesn't support
5402 stable sorting out sorting here is stable by comparing service_order.
6f55ed88 5403 (getaddrinfo): Initialize service_order.
a94673e6
UD
5404 * posix/tst-rfc3484.c (do_test): Adjust for addition of
5405 service_order field to sorting structure.
dfcf64ce 5406 * posix/tst-rfc3484-2.c (do_test): Likewise.
6f55ed88 5407
fa76dde2
UD
5408 * include/time.h: Declare __tzset_parse_tz and __tzset_compute.
5409 * time/tzset.c (tzset_internal): Break TZ string parsing out into
5410 __tzset_parse_tz and updating of daylight, timezone, tzname into
5411 update_vars.
5412 (__tz_compute): Renamed from tz_compute. Take additional parameters.
5413 (__tz_convert): Updating of tm_isdst, tm_zone, and tm_gmtoff now
5414 happens in __tz_compute.
5415 * time/tzfile.c (__tzfile_read): Also read TZ string.
5416 (find_transition): Fold into __tzfile_compute.
5417 (__tzfile_compute): For times beyond the last transition try to
5418 use the TZ string.
5419 * timezone/tst-timezone.c: Information in daylight and tzname does
5420 change for Asia/Tokyo timezone with more concrete information.
5421 Remove the test.
5422
5423 * include/stdio.h: Add libc_hidden_proto for ftello.
5424 * libio/ftello.c: Add libc_hidden_def.
5425
89dc9d4c
UD
5426 [BZ #1140]
5427 * time/tzfile.c (__tzfile_compute): Compute tzname[] values based
5428 on the specified time and not the last entries in the file. Move
5429 code to determine tzname[] to...
5430 (find_transition): ...here. Add ugly guess for times before the
5431 first transition.
5432
f7140274
UD
54332007-10-13 Ulrich Drepper <drepper@redhat.com>
5434
cfca0aa3
UD
5435 [BZ #3195]
5436 * nscd/nscd_getai.c (__nscd_getai): Set errno to 0 in case we found
5437 no entry.
5438 * nscd/nscd_getgr.c (nscd_getgr_r): Likewise.
5439 * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
5440 * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
5441 * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
5442
43d3e6bd
UD
5443 * nscd/nscd_getgr_r.c (nscd_getgr_r): Optimize a bit: use simpler
5444 read mechanism when there are no group members and avoid no-op
5445 read syscall in this case.
5446
f7140274
UD
5447 [BZ #3242]
5448 * nscd/nscd_helper.c (wait_on_socket): Take timeout as parameter.
5449 (__readall): If reading failed due to EAGAIN error wait a bit
5450 and possibly try again.
5451 (__readvall): Likewise.
5452
656f02ce
UD
54532007-10-13 Bruno Haible <bruno@clisp.org>
5454
5455 * intl/dcigettext.c (_nl_find_msg): Unlock the conversions_lock
5456 when we cannot recode the message.
5457
0ea49677
UD
54582007-10-13 Ulrich Drepper <drepper@redhat.com>
5459
5460 [BZ #4359]
5461 * libio/__freading.c (__freading): Don't return true for
ed36f224
UD
5462 write-only streams. For read/write streams, check whether we
5463 performed a read operation already.
7e39d802
UD
5464 * libio/Makefile (tests): Add tst-ext2.
5465 * libio/tst-ext2.c: New file.
0ea49677 5466
78a9b2dc
UD
54672007-10-12 Ulrich Drepper <drepper@redhat.com>
5468
fab1a490
UD
5469 * locale/programs/repertoire.c (repertoire_read): Always free
5470 memory for repertoire file name [Coverity CID 270].
5471
78a9b2dc
UD
5472 * elf/cache.c (save_aux_cache): Free memory allocated for
5473 temporary file name [Coverity CID 267].
5474
29d49a1a
JJ
54752007-10-12 Jakub Jelinek <jakub@redhat.com>
5476
5477 * misc/Makefile (headers): Add bits/error.h.
5478
d074d36d
UD
54792007-10-12 Ulrich Drepper <drepper@redhat.com>
5480
b7d1c5fa
UD
5481 * posix/fnmatch_loop.c: Take rule index returned as part of
5482 findidx return value into account when accessing weights.
5483 * posix/regcomp.c: Likewise.
5484 * posix/regexec.c: Likewise.
5485
d074d36d
UD
5486 * locale/programs/ld-collate.c (collate_read): Optimize a bit.
5487 (skip_to): Fix problems with parameter of elifdef/elifndef.
5488
26a51060
UD
54892007-10-11 Ulrich Drepper <drepper@redhat.com>
5490
5491 * iconv/gconv_simple.c: Add some branch prediction.
5492
6dd3748b
UD
54932007-10-12 Jakub Jelinek <jakub@redhat.com>
5494
5495 * locale/programs/ld-collate.c (collate_read): If ignore_content
5496 and nowtok is tok_define, eat any tok_eol tokens.
5497
d0b5557d
JJ
54982007-10-11 Jakub Jelinek <jakub@redhat.com>
5499
5500 * sysdeps/gnu/netinet/tcp.h: Include sys/socket.h if __USE_MISC.
5501 (struct tcp_md5sig): Change tcpm_addr type to struct sockaddr_storage.
5502
5503 * inet/netinet/in.h: Don't include bits/socket.h.
5504 * sysdeps/unix/sysv/linux/bits/socket.h: Only check _SYS_SOCKET_H
5505 macro.
5506 * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Likewise.
5507
3a054d7a
UD
55082007-10-10 Ulrich Drepper <drepper@redhat.com>
5509
5510 * locale/programs/locfile-token.h: Remove tok_elif, add tok_elifdef
5511 and tok_elifndef.
5512 * locale/programs/locfile-kw.gperf: Likewise.
5513 * locale/programs/ld-collate.c: Implement primitive preprocessor.
5514
c06b7169
UD
55152007-10-10 Jakub Jelinek <jakub@redhat.com>
5516
5517 * stdio-common/printf-parse.h: Include string.h and wchar.h.
5518 (__find_specwc): Change into __extern_always_inline function.
5519 (__find_specmb): Likewise. Remove ps argument. Use __strchrnul.
5520 (__parse_one_specmb): Remove ps argument.
5521 * stdio-common/vfprintf.c (vfprintf): Remove mbstate variable.
5522 Adjust __find_specmb and __parse_one_specmb callers.
5523 * stdio-common/printf-prs.c (parse_printf_format): Likewise.
5524 * stdio-common/printf-parsemb.c (__find_specwc, __find_specmb):
5525 Removed.
5526 (__parse_one_specmb): Remove ps argument, adjust __find_specmb
5527 caller.
5528
5a01ab7b
UD
55292007-10-09 Ulrich Drepper <drepper@redhat.com>
5530
5531 * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Work around problem
5532 with some Pentium Ds.
5533
e3f8e049
UD
55342007-10-08 Ulrich Drepper <drepper@redhat.com>
5535
5536 * sysdeps/unix/sysv/linux/eventfd_read.c (eventfd_read): Use
5537 __read not read.
5538 * sysdeps/unix/sysv/linux/eventfd_write.c (eventfd_write): Use
5539 __write not write.
5540
a1a363d2
UD
55412007-10-07 Ulrich Drepper <drepper@redhat.com>
5542
a1160714
UD
5543 [BZ #181]
5544 * locale/C-time.c: Set week_1stday data to 19971201.
659a9013
UD
5545 * locale/programs/ld-time.c (time_finish): Default for
5546 first_workday is Monday.
a1160714 5547
bb27a6eb
UD
5548 [BZ #2633]
5549 * wcsmbs/wchar.h: Move many C99 functions into std namespace.
5550
c8d48fae
UD
5551 [BZ #5103]
5552 * posix/glob.c (glob): Recognize patterns starting \/.
5553 * posix/tst-gnuglob.c (find_file): Handle absolute path names.
5554 (main): Add test for pattern starting \/.
5555
a1a363d2
UD
5556 * misc/error.h: Use __const instead of const.
5557 * misc/bits/error.h: Likewise.
5558
55592007-10-07 Andreas Jaeger <aj@suse.de>
5560
5561 * include/bits/error.h: New file.
5562
5563 * misc/bits/error.h (error_at_line): Fix prototype.
5564
71894681
UD
55652007-10-06 Ulrich Drepper <drepper@redhat.com>
5566
a6fa5328
UD
5567 [BZ #3924]
5568 * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix a few
5569 more little bugs in creating the stack frame when pltexit has to
5570 be called.
5571
8c7661bc 5572 * nscd/nscd_helper.c (__nscd_cache_search): Prevent endless loops.
50607309 5573 * nscd/connections.c (verify_persistent_db): Recognize circular lists.
8c7661bc 5574
c039eedd
UD
5575 [BZ #4407]
5576 * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Fix *signgamp for -0.0.
5577 * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
5578 * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
5579 * math/libm-test.inc: Add test for this case.
5580
71894681
UD
5581 [BZ #5010]
5582 * sunrpc/svc.c (struct svc_callout): Add sc_mapped element.
5583 (svc_register): Initialize sc_mapped. Set to TRUE if call to
5584 map service succeeded.
5585 (svc_is_mapped): New function.
5586 (svc_unregister): Use it before trying to unmap service.
5587
34c2c092
UD
55882007-10-05 Ulrich Drepper <drepper@redhat.com>
5589
d10737e4
UD
5590 * timezone/zic.c: Update from tzcode2007h.
5591
5592 [BZ #5063]
5593 * timezone/africa: Update from tzdata2007h.
5594 * timezone/antarctica: Likewise.
5595 * timezone/asia: Likewise.
5596 * timezone/australasia: Likewise.
5597 * timezone/europe: Likewise.
5598 * timezone/leapseconds: Likewise.
5599 * timezone/northamerica: Likewise.
5600 * timezone/southamerica: Likewise.
5601 * timzeone/zone.tab: Likewise.
5602
0304f168
UD
5603 [BZ #5104]
5604 * elf/do-lookup.h (do_lookup_x): Don't ignore STT_COMMON symbols.
5605
a83b5649
UD
5606 [BZ #5113]
5607 * string/bits/string2.h (__strdup): Cast parameters to calloc to
5608 avoid warning with -Wconversion.
5609 (__strndup): Likewise.
c039eedd 5610 Half the patch by Christian Iseli <christian.iseli@licr.org>.
a83b5649 5611
3e6ce4d7
UD
5612 [BZ #5112]
5613 * nscd/connections.c (restart): Don't resync if database is
5614 disabled. Patch mostly by Brian De Wolf <bldewolf@csupomona.edu>.
5615
8e351378
UD
5616 * sysdeps/gnu/netinet/tcp.h: Define TCP_MD5SIG, TCP_MD5SIG_MAXKEYLEN,
5617 struct tcp_md5sig. Extend struct tcp_info according to recent kernels.
5618
5619 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add eventfd,
5620 evetnfd_read, eventfd_write.
5621 * sysdeps/unix/sysv/linux/eventfd.c: New file.
5622 * sysdeps/unix/sysv/linux/eventfd_read.c: New file.
5623 * sysdeps/unix/sysv/linux/eventfd_write.c: New file.
5624 * sysdeps/unix/sysv/linux/sys/eventfd.h: New file.
d10737e4 5625 * sysdeps/unix/sysv/linux/Versions: Export eventfd, eventfd_read,
8e351378
UD
5626 eventfd_write for GLIBC_2.7.
5627
34c2c092
UD
5628 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add signalfd.
5629 * sysdeps/unix/sysv/linux/signalfd.c: New file.
5630 * sysdeps/unix/sysv/linux/sys/signalfd.h: New file.
5631 * sysdeps/unix/sysv/linux/Versions: Export signalfd for GLIBC_2.7.
5632
6789aaaa 56332007-10-04 Jakub Jelinek <jakub@redhat.com>
375d9429
UD
5634
5635 * stdlib/msort.c: Include stdint.h.
5636 (struct msort_param): New type.
5637 (msort_with_tmp): Use struct msort_param pointer for unchanging
5638 parameters. Add optimized handling for several common sizes
5639 and indirect sorting mode.
5640 (qsort): Adjust msort_with_tmp callers. For big S use indirect
5641 sorting.
5642 Suggested by Belazougui Djamel .
5643
5644 * stdlib/Makefile (tests): Add tst-qsort2.
5645 * stdlib/tst-qsort2.c: New test.
5646
b80bfc8b
UD
56472007-10-04 Ulrich Drepper <drepper@redhat.com>
5648
174420d2
UD
5649 * login/login_tty.c (login_tty): The Linux kernel can return EBUSY
5650 for dup2 in case another thread races with the current one. Retry
5651 in this case.
5652
b80bfc8b
UD
5653 * misc/error.h: Remove support for use outside of libc. We have to
5654 include <features.h> now. Include <bits/error.h> if possible.
5655 * misc/bits/error.h: New file.
5656
6789aaaa 56572007-10-03 Jakub Jelinek <jakub@redhat.com>
ee868c89 5658
e5dd2178
UD
5659 * string/bits/string3.h (memcpy, memmove, mempcpy, memset, bcopy,
5660 bzero, strcpy, stpcpy, strncpy, strcat, strncat): Use
5661 __extern_always_inline functions unconditionally, drop macros.
5662
ac97dec1
UD
5663 * misc/sys/cdefs.h (__REDIRECT_LDBL, __REDIRECT_NTH_LDBL): New macros.
5664 * wcsmbs/bits/wchar2.h (__swprintf_alias, __vswprintf_alias): Use
5665 __REDIRECT_NTH_LDBL macro rather than __REDIRECT_NTH.
5666
ee868c89
UD
5667 * misc/sys/cdefs.h (__extern_always_inline): For GCC 4.3+
5668 add __artificial__ attribute.
5669
80e069e0
UD
56702007-10-02 Ulrich Drepper <drepper@redhat.com>
5671
6e682cf5
UD
5672 * string/strcoll_l.c (STRCOLL): Correct handling of switching from
5673 backward to forward direction.
5674
90241a20
UD
5675 * string/strcoll_l.c (STRCOLL): Correct test for alloca use.
5676
80e069e0
UD
5677 [BZ #645]
5678 * locale/programs/ld-collate.c (collate_finish): Compare against last
5679 used section which is known to have rules defined.
5680 (collate_read): After order_start, correctly record order of sections
5681 and queue sections up.
5682
035ef8d7
UD
56832007-10-01 Ulrich Drepper <drepper@redhat.com>
5684
95bddc0c
UD
5685 [BZ #5071]
5686 * malloc/malloc.c (mremap_chunk): Avoid resizing of new block has
5687 the same number of pages.
5688 Patch by Tomash Brechko <tomash.brechko@gmail.com>.
5689
c8caf089
UD
5690 * locale/programs/ld-collate.c (collate_read): After initial copy
5691 statement, continue in state 0.
5692
035ef8d7
UD
5693 * include/stdio_ext.h (__fsetlocking): Define as macro.
5694
592a95ee
UD
56952007-09-30 Ulrich Drepper <drepper@redhat.com>
5696
56ebeb41
UD
5697 * locale/programs/ld-collate.c (collate_finish): Compare all bytes
5698 of section order.
5699
592a95ee
UD
5700 * po/pt_BR.po: Fix typo.
5701
6c522e21
UD
57022007-09-29 Ulrich Drepper <drepper@redhat.com>
5703
8ad5c3cd
UD
5704 * iconvdata/Makefile (modules): Add ISO8859-9E.
5705 (distribute): Add iso8859-9e.c.
5706 (gen-8bit-gap-modules): Add iso8859-9e.
5707 * iconvdata/iso8859-9e.c: New file.
5708 * iconvdata/gconv-modules: Add entries for ISO-8859-9E.
5709 * iconvdata/TESTS: Likewise.
5710 * iconvdata/tst-tables.sh: Likewise.
5711
5712 * iconvdata/koi8-r.c (HAS_HOLES): Define to 0.
5713
6c522e21
UD
5714 * locale/iso-639.def: Add several new entries.
5715
385b4cf4
UD
57162007-09-24 Jakub Jelinek <jakub@redhat.com>
5717
5718 * sysdeps/generic/ldsodefs.h (struct dl_scope_free_list): Store
5719 void * pointers instead of struct link_map **.
5720 (_dl_scope_free): Change argument type to void *.
5721 * include/link.h (struct link_map): Change type of l_reldeps
5722 to struct link_map_reldeps, move l_reldepsact into that
5723 struct too.
5724 * elf/dl-deps.c: Include atomic.h.
5725 (_dl_map_object_deps): Only change l->l_initfini when it is
5726 fully populated, use _dl_scope_free for freeing it. Optimize
5727 removal of libs from reldeps by using l_reserved flag, when
5728 some removal is needed, allocate a new list instead of
5729 reallocating and free the old with _dl_scope_free. Adjust
5730 for l_reldeps and l_reldepsact changes.
5731 * elf/dl-lookup.c (add_dependency): Likewise. Reorganize to allow
5732 searching in l_initfini and l_reldeps without holding dl_load_lock.
5733 * elf/dl-fini.c (_dl_sort_fini): Adjust for l_reldeps and
5734 l_reldepsact changes.
5735 * elf/dl-close.c (_dl_close_worker): Likewise.
5736 * elf/dl-open.c (_dl_scope_free): Change argument type to void *.
5737
90bf831b
UD
57382007-09-28 Ulrich Drepper <drepper@redhat.com>
5739
5740 * iconvdata/Makefile (modules): Add KOI8-RU.
5741 (distribute): Add koi8-ru.c.
5742 (gen-8bit-gap-modules): Add koi8-ru.
5743 * iconvdata/koi8-ru.c: New file.
5744 * iconvdata/gconv-modules: Add entries for KOI8-RU.
5745 * iconvdata/TESTS: Likewise.
5746 * iconvdata/tst-tables.sh: Likewise.
5747
5748 * iconvdata/koi8-r.c (HAS_HOLES): Define to 0.
5749
d6cd6bf4
UD
57502007-09-26 Jakub Jelinek <jakub@redhat.com>
5751
5752 * misc/sys/cdefs.h (__warndecl, __errordecl): For GCC 4.3+ define
5753 with __warning__/__error__ attributes.
5754 (__warnattr): Define.
5755 * stdlib/bits/stdlib.h (__realpath_chk_warn, __ptsname_r_chk_warn,
5756 __mbstowcs_chk_warn, __wcstombs_chk_warn): New aliases with
5757 __warnattr.
5758 (realpath, ptsname_r, mbstowcs, wcstombs): Call __*_chk_warn instead
5759 of __*_chk if compile time detectable overflow is found.
5760 * libio/bits/stdio2.h (__fgets_chk_warn, __fread_chk_warn,
5761 __fgets_unlocked_chk_warn, __fread_unlocked_chk_warn): New aliases
5762 with __warnattr.
5763 (fgets, fread, fgets_unlocked, fread_unlocked): Call __*_chk_warn
5764 instead of __*_chk if compile time detectable overflow is found.
5765 (__gets_alias): Rename to...
5766 (__gets_warn): ... this. Add __warnattr.
5767 (gets): Call __gets_warn instead of __gets_alias.
5768 * socket/bits/socket2.h (__recv_chk_warn, __recvfrom_chk_warn): New
5769 aliases with __warnattr.
5770 (recv, recvfrom): Call __*_chk_warn instead of __*_chk if compile
5771 time detectable overflow is found.
5772 * posix/bits/unistd.h (__read_chk_warn, __pread_chk_warn,
5773 __pread64_chk_warn, __readlink_chk_warn, __readlinkat_chk_warn,
5774 __getcwd_chk_warn, __confstr_chk_warn, __getgroups_chk_warn,
5775 __ttyname_r_chk_warn, __getlogin_r_chk_warn, __gethostname_chk_warn,
5776 __getdomainname_chk_warn): New aliases with __warnattr.
5777 (read, pread, pread64, readlink, readlinkat, getcwd, confstr,
5778 getgroups, ttyname_r, getlogin_r, gethostname, getdomainname): Call
5779 __*_chk_warn instead of __*_chk if compile time detectable overflow
5780 is found.
5781 (__getgroups_chk): Rename argument to __listlen from listlen.
5782 (__getwd_alias): Rename to...
5783 (__getwd_warn): ... this. Add __warnattr.
5784 (getwd): Call __getwd_warn instead of __getwd_alias.
5785 * wcsmbs/bits/wchar2.h (__wmemcpy_chk_warn, __wmemmove_chk_warn,
5786 __wmempcpy_chk_warn, __wmemset_chk_warn, __wcsncpy_chk_warn,
5787 __wcpncpy_chk_warn, __fgetws_chk_warn, __fgetws_unlocked_chk_warn,
5788 __mbsrtowcs_chk_warn, __wcsrtombs_chk_warn, __mbsnrtowcs_chk_warn,
5789 __wcsnrtombs_chk_warn): New aliases with __warnattr.
5790 (wmemcpy, wmemmove, wmempcpy, wmemset, mbsrtowcs, wcsrtombs,
5791 mbsnrtowcs, wcsnrtombs): Call __*_chk_warn instead of __*_chk if
5792 compile time detectable overflow is found.
5793 (wcsncpy, wcpncpy): Likewise. For constant __n fix check whether
5794 to use __*_chk or not.
5795 (fgetws, fgetws_unlocked): Divide __bos by sizeof (wchar_t), both
5796 in comparisons which function should be called and in __*_chk*
5797 arguments. Call __*_chk_warn instead of __*_chk if compile time
5798 detectable overflow is found.
5799 (swprintf, vswprintf): Divide __bos by sizeof (wchar_t) in
5800 __*_chk argument.
5801 * debug/tst-chk1.c (do_test): Add a few more tests.
5802
408cfca0
UD
58032007-09-24 Ulrich Drepper <drepper@redhat.com>
5804
5805 [BZ #5058]
5806 * intl/gettextP.h (struct loaded_domain): Add conversions_lock member.
5807 * intl/loadmsgcat.c (_nl_load_domain): Initialize conversions_lock.
5808 (_nl_unload_domain): Finalize conversions_lock.
5809 * intl/dcigettext.c (_nl_find_msg): Take conversions_lock before
5810 handling table of known conversions.
5811
e6eec9ce
JJ
58122007-09-24 Jakub Jelinek <jakub@redhat.com>
5813
5814 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Use
5815 close_not_cancel_no_status instead of close.
5816
a532a41d
UD
58172007-09-13 Aurelien Jarno <aurelien@aurel32.net>
5818
682268ef 5819 [BZ #5028]
408cfca0 5820 * posix/regcomp.c (lookup_collation_sequence_value): Check that
a532a41d
UD
5821 nrules != 0 for multibyte chars.
5822
dec9ed9e
UD
58232007-09-23 Ulrich Drepper <drepper@redhat.com>
5824
91633816
UD
5825 * resolv/ns_print.c (ns_sprintrrf): Handle ns_t_a6 and ns_t_opt.
5826 Provide better error message in case the type is unknown.
5827
9cc198f6
UD
5828 [BZ #4963]
5829 * wcsmbs/wcsnlen.c: Don't reference before checking the length.
5830 * string/stratcliff.c: Make usable to test wide char functions.
5831 * wcsmbs/wcsatcliff.c: New file.
5832 * wcsmbs/Makefiel (tests): Add wcsatcliff.
5833
27f3d446
UD
5834 [BZ #4972]
5835 * iconvdata/Makefile (modules): Add MAC-CENTRALEUROPE.
5836 (distribute): Add mac-centraleurope.c.
5837 (gen-8bit-gap-modules): Add mac-centraleurope.
5838 * iconvdata/mac-centraleurope.c: New file.
5839 * iconvdata/gconv-modules: Add entries for MAC-CENTRALEUROPE.
5840 * iconvdata/TESTS: Likewise.
5841 * iconvdata/tst-tables.sh: Likewise.
5842
dec9ed9e
UD
5843 [BZ #5043]
5844 * iconv/iconv_open.c (iconv_open): For large codeset names use malloc.
5845
0435403c
UD
58462007-09-21 Ulrich Drepper <drepper@redhat.com>
5847
5848 * sysdeps/x86_64/cacheinfo.c (__x86_64_data_cache_size_half): Renamed
5849 from __x86_64_core_cache_size_half.
5850 (init_cacheinfo): Compute shared cache size for AMD processors with
5851 shared L3 correctly.
5852 * sysdeps/x86_64/memcpy.S: Adjust for __x86_64_data_cache_size_half
5853 name change.
5854 Patch in large parts by Evandro Menezes.
5855
c3266dc0
UD
58562007-09-19 Ulrich Drepper <drepper@redhat.com>
5857
715899d1
UD
5858 * elf/dl-lookup.c (add_dependency): Handle failing memory
5859 allocation for dependency list. Remove unnecessary check.
5860
e1db0493
UD
5861 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid unnecessary
5862 open/close when determining source addresses.
5863
c3266dc0
UD
5864 * crypt/Makefile (libcrypt-routines): Add sha256-crypt, sha256,
5865 sha512-crypt, and sha512.
5866 (tests): Add sha256test, sha256c-test, sha512test, and sha512c-test.
5867 (distribute): Add sha256.h and sha512.h.
5868 * crypt/crypt-entry.c (crypt): Recognize the new $5$ and $6$ prefixes
5869 and call the appropriate code.
5870 * crypt/sha256-crypt.c: New file.
5871 * crypt/sha256.c: New file.
5872 * crypt/sha256.h: New file.
5873 * crypt/sha256c-test.c: New file.
5874 * crypt/sha256test.c: New file.
5875 * crypt/sha512-crypt.c: New file.
5876 * crypt/sha512.c: New file.
5877 * crypt/sha512.h: New file.
5878 * crypt/sha512c-test.c: New file.
5879 * crypt/sha512test.c: New file.
5880
ddf51ecb
JJ
58812007-09-19 Jakub Jelinek <jakub@redhat.com>
5882
5883 * misc/bits/syslog.h (syslog): Remove extraneous argument from
5884 the inline, pass __USE_FORTIFY_LEVEL - 1 as second argument to
5885 __syslog_chk.
5886
b90395e6
UD
58872007-09-18 Jakub Jelinek <jakub@redhat.com>
5888
76c0bea7
JJ
5889 * locale/programs/charmap-dir.c (charmap_aliases): Use %ms instead of
5890 %as in fscanf format strings.
5891
00680568
JJ
5892 * sysdeps/sparc/sparc32/elf/start.S: Remove cfi_* markup.
5893 * sysdeps/sparc/sparc64/elf/start.S: Likewise.
c3266dc0
UD
5894 * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__thread_start):
5895 Likewise.
5896 * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__thread_start):
5897 Likewise.
00680568 5898
b90395e6
UD
5899 * sysdeps/generic/ldsodefs.h (DL_LOOKUP_GSCOPE_LOCK): New definition.
5900 * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Or in
5901 DL_LOOKUP_GSCOPE_LOCK into flags after THREAD_GSCOPE_SET_FLAG ().
5902 * elf/dl-sym.c (do_sym): Likewise.
5903 * include/link.h (struct link_map): Add l_serial field.
5904 * elf/dl-object.c (_dl_new_object): Initialize l_serial.
5905 * elf/dl-lookup.c (add_dependency): Add flags argument.
5906 Remember map->l_serial, if DL_LOOKUP_GSCOPE_LOCK is among
5907 flags, use THREAD_GSCOPE_RESET_FLAG before and
5908 THREAD_GSCOPE_SET_FLAG after
5909 __rtld_lock_lock_recursive (GL(dl_load_lock)) to avoid deadlock.
5910 Don't dereference map until it has been found on some list.
5911 If map->l_serial changed, return -1.
5912
874aa523
UD
59132007-09-17 Jakub Jelinek <jakub@redhat.com>
5914
5915 * include/stdio.h (__isoc99_fscanf, __isoc99_scanf,
5916 __isoc99_sscanf, __isoc99_vscanf): New prototypes.
5917 (__isoc99_vsscanf, __isoc99_vfscanf): New prototypes, add
5918 libc_hidden_proto.
5919 * include/wchar.h (__isoc99_fwscanf, __isoc99_wscanf,
5920 __isoc99_swscanf, __isoc99_vwscanf): New prototypes.
5921 (__isoc99_vswscanf, __isoc99_vfwscanf): New prototypes,
5922 add libc_hidden_proto.
5923 * libio/stdio.h (fscanf, scanf, sscanf, vfscanf, vscanf,
5924 vsscanf): Redirect to __isoc99_* if strict ISO C99 or POSIX
5925 conformance requested.
5926 * wcsmbs/wchar.h (fwscanf, wscanf, swscanf, vfwscanf, vwscanf,
5927 vswscanf): Redirect to __isoc99_* if strict ISO C99 or POSIX
5928 conformance requested.
5929 * libio/bits/stdio-ldbl.h (fscanf, scanf, sscanf, vfscanf, vscanf,
5930 vsscanf): Redirect to __nldbl___isoc99_* if strict ISO C99 or POSIX
5931 conformance requested.
5932 * wcsmbs/bits/wchar-ldbl.h (fwscanf, wscanf, swscanf, vfwscanf,
5933 vwscanf, vswscanf): Redirect to __nldbl___isoc99_* if strict
5934 ISO C99 or POSIX conformance requested.
5935 * stdio-common/Versions (libc): Export __isoc99_scanf@@GLIBC_2.7,
5936 __isoc99_vscanf@@GLIBC_2.7, __isoc99_fscanf@@GLIBC_2.7,
5937 __isoc99_vfscanf@@GLIBC_2.7, __isoc99_sscanf@@GLIBC_2.7
5938 and __isoc99_vsscanf@@GLIBC_2.7.
5939 * stdio-common/Makefile (routines): Add isoc99_scanf, isoc99_vscanf,
5940 isoc99_fscanf, isoc99_vfscanf, isoc99_sscanf and isoc99_vsscanf.
5941 (tests): Add scanf14.
5942 (CFLAGS-vfprintf.c, CFLAGS-fprintf.c, CFLAGS-printf.c,
5943 CFLAGS-vfwprintf.c, CFLAGS-vfscanf.c, CFLAGS-vfwscanf.c,
5944 CFLAGS-fscanf.c, CFLAGS-scanf.c, CFLAGS-isoc99_vfscanf.c,
5945 CFLAGS-isoc99_vscanf.c, CFLAGS-isoc99_fscanf.c,
5946 CFLAGS-isoc99_scanf.c): Add $(exceptions).
5947 (CFLAGS-scanf15.c): Add various -I paths to prevent the compiler
5948 from using internal headers.
5949 * wcsmbs/Versions (libc): Export __isoc99_wscanf@@GLIBC_2.7,
5950 __isoc99_vwscanf@@GLIBC_2.7, __isoc99_fwscanf@@GLIBC_2.7,
5951 __isoc99_vfwscanf@@GLIBC_2.7, __isoc99_swscanf@@GLIBC_2.7
5952 and __isoc99_vswscanf@@GLIBC_2.7.
5953 * wcsmbs/Makefile (routines): Add isoc99_wscanf, isoc99_vwscanf,
5954 isoc99_fwscanf, isoc99_vfwscanf, isoc99_swscanf and isoc99_vswscanf.
5955 (CFLAGS-isoc99_wscanf.c, CFLAGS-isoc99_fwscanf.c,
5956 CFLAGS-isoc99_vwscanf.c, CFLAGS-isoc99_vfwscanf.c): Add $(exceptions).
5957 (CPPFLAGS): Add -D_IO_MTSAFE_IO if needed.
5958 * stdio-common/isoc99_scanf.c: New file.
5959 * stdio-common/isoc99_vsscanf.c: New file.
5960 * stdio-common/isoc99_vscanf.c: New file.
5961 * stdio-common/isoc99_vfscanf.c: New file.
5962 * stdio-common/isoc99_fscanf.c: New file.
5963 * stdio-common/isoc99_sscanf.c: New file.
5964 * wcsmbs/isoc99_fwscanf.c: New file.
5965 * wcsmbs/isoc99_vswscanf.c: New file.
5966 * wcsmbs/isoc99_swscanf.c: New file.
5967 * wcsmbs/isoc99_wscanf.c: New file.
5968 * wcsmbs/isoc99_vwscanf.c: New file.
5969 * wcsmbs/isoc99_vfwscanf.c: New file.
5970 * libio/libio.h (_IO_FLAGS2_SCANF_STD): Define.
5971 * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): Also
5972 clear _IO_FLAGS2_SCANF_STD bit from _flags2.
5973 * stdio-common/vfscanf.c (_IO_vfscanf_internal): Don't
5974 handle %as, %aS and %a[ if _IO_FLAGS2_SCANF_STD is set in _flags2.
5975 * stdio-common/scanf14.c: New test.
5976 * stdio-common/scanf15.c: New test.
5977 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add
5978 isoc99_scanf, isoc99_fscanf, isoc99_sscanf,
5979 isoc99_vscanf, isoc99_vfscanf, isoc99_vsscanf,
5980 isoc99_wscanf, isoc99_fwscanf, isoc99_swscanf,
5981 isoc99_vwscanf, isoc99_vfwscanf and isoc99_vswscanf.
5982 * sysdeps/ieee754/ldbl-opt/Versions (libc): Export
5983 __nldbl___isoc99_scanf@@GLIBC_2.7,
5984 __nldbl___isoc99_fscanf@@GLIBC_2.7,
5985 __nldbl___isoc99_sscanf@@GLIBC_2.7,
5986 __nldbl___isoc99_vscanf@@GLIBC_2.7,
5987 __nldbl___isoc99_vfscanf@@GLIBC_2.7,
5988 __nldbl___isoc99_vsscanf@@GLIBC_2.7,
5989 __nldbl___isoc99_wscanf@@GLIBC_2.7,
5990 __nldbl___isoc99_fwscanf@@GLIBC_2.7,
5991 __nldbl___isoc99_swscanf@@GLIBC_2.7,
5992 __nldbl___isoc99_vwscanf@@GLIBC_2.7,
5993 __nldbl___isoc99_vfwscanf@@GLIBC_2.7
5994 and __nldbl___isoc99_vswscanf@@GLIBC_2.7.
5995 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__isoc99_scanf,
5996 __isoc99_fscanf, __isoc99_sscanf, __isoc99_vscanf,
5997 __isoc99_vfscanf, __isoc99_vsscanf, __isoc99_wscanf,
5998 __isoc99_fwscanf, __isoc99_swscanf, __isoc99_vwscanf,
5999 __isoc99_vfwscanf, __isoc99_vswscanf): Add NLDBL_DECL.
6000 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
6001 (__nldbl___isoc99_scanf, __nldbl___isoc99_fscanf,
6002 __nldbl___isoc99_sscanf, __nldbl___isoc99_vscanf,
6003 __nldbl___isoc99_vfscanf, __nldbl___isoc99_vsscanf,
6004 __nldbl___isoc99_wscanf, __nldbl___isoc99_fwscanf,
6005 __nldbl___isoc99_swscanf, __nldbl___isoc99_vwscanf,
6006 __nldbl___isoc99_vfwscanf, __nldbl___isoc99_vswscanf): New
6007 functions.
6008 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vfscanf.c: New file.
6009 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_swscanf.c: New file.
6010 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vwscanf.c: New file.
6011 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_wscanf.c: New file.
6012 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_scanf.c: New file.
6013 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_sscanf.c: New file.
6014 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vsscanf.c: New file.
6015 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_fwscanf.c: New file.
6016 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vfwscanf.c: New file.
6017 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vswscanf.c: New file.
6018 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vscanf.c: New file.
6019 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_fscanf.c: New file.
6020
6021 * stdio-common/Makefile (tests): Add scanf13.
6022 (scanf13-ENV): New.
6023 * stdio-common/vfscanf.c (_IO_vfscanf_internal): Handle
6024 m modifier followed by l.
6025 (STRING_ARG): Add width argument.
6026 (_IO_vfscanf_internal) <case L_('c')>: Handle %mc.
6027 <case L_('C')>: Handle %mlc and %mC.
6028 <case L_('s'), case L_('S'), case L_('[')>: Adjust STRING_ARG
6029 arguments.
6030 * stdio-common/scanf13.c: New test.
6031
6032 * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): Clear
6033 the _IO_FLAGS2_FORTIFY bit from _flags2 rather than _flags.
6034
883f7943
UD
60352007-09-18 Ulrich Drepper <drepper@redhat.com>
6036
6037 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Correct return value
874aa523 6038 type and __THROW marker of splice, vmsplice, and tee.
883f7943
UD
6039 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
6040 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
6041 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
6042 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
6043 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
6044 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
6045 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
6046 * sysdeps/unix/sysv/linux/syscalls.list: Mark splice, vmsplice, and tee
6047 as cancellation points.
6048
3524efe0
UD
60492003-11-01 Daniel Jacobowitz <dan@debian.org>
6050
6051 * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_discover_osversion): Don't
6052 parse more than three parts of the version number.
6053
267c54dc
UD
60542007-09-15 Ulrich Drepper <drepper@redhat.com>
6055
6056 * stdio-common/vfscanf.c (_IO_vfwscanf): Add support for 'm'
6057 modifier. Patch by Jakub Jelinek.
6058
5e17d6b7
UD
60592007-08-26 Jakub Jelinek <jakub@redhat.com>
6060
6061 * sysdeps/unix/sysv/linux/i386/Makefile (sysdep_routines): Add
6062 call_fallocate in misc subdir.
6063 * sysdeps/unix/sysv/linux/i386/call_fallocate.S: New file.
6064 * sysdeps/unix/sysv/linux/i386/syscalls.list (fallocate64): Remove.
6065 * sysdeps/unix/sysv/linux/i386/posix_fallocate.c: Use __call_fallocate
6066 instead of __fallocate64.
6067 * sysdeps/unix/sysv/linux/i386/posix_fallocate64.c: Likewise.
6068
3a50811c
UD
60692007-09-15 Jakub Jelinek <jakub@redhat.com>
6070
6071 * rt/Versions (librt): Export __mq_open_2@@GLIBC_2.7.
6072 * rt/Makefile (headers): Add bits/mqueue2.h.
6073 * rt/mqueue.h: Include bits/mqueue2.h if -D_FORTIFY_SOURCE=2,
6074 optimizing with GCC and __va_arg_pack_len is defined.
6075 * rt/bits/mqueue2.h: New file.
6076 * rt/mq_open.c (__mq_open): Renamed from mq_open.
6077 (mq_open): New strong_alias.
6078 (__mq_open_2): New function.
6079 * sysdeps/unix/sysv/linux/mq_open.c (__mq_open): Renamed from mq_open.
6080 (mq_open): New strong_alias.
6081 (__mq_open_2): New function.
6082 * debug/Versions (libc): Export __fortify_fail@@GLIBC_PRIVATE.
6083 * Versions.def (librt): Add GLIBC_2.7 version.
6084 * debug/fortify_fail.c (__fortify_fail): Add libc_hidden_def.
6085 * include/stdio.h (__fortify_fail): Add libc_hidden_proto.
6086
6087 * misc/sys/cdefs.h (__errordecl, __va_arg_pack_len): Define.
6088 * io/fcntl.h: Include bits/fcntl2.h when __va_arg_pack_len
6089 is defined rather than when not C++.
6090 * io/bits/fcntl2.h (__open_alias, __open64_alias, __openat_alias,
6091 __openat64_alias): New redirects.
6092 (__open_too_many_args, __open_missing_mode, __open64_too_many_args,
6093 __open64_missing_mode, __openat_too_many_args, __openat_missing_mode,
6094 __openat64_too_many_args, __openat64_missing_mode): New __errordecls.
6095 (open, open64, openat, openat64): Rewrite as __extern_always_inline
6096 functions instead of function-like macros.
6097
9bdfff60
UD
60982007-09-14 H.J. Lu <hongjiu.lu@intel.com>
6099
6100 * sysdeps/i386/i586/memcpy.S (__memcpy_chk): New definition.
6101 * sysdeps/i386/i586/mempcpy.S (__memcpy_chk): New definition.
6102 * sysdeps/i386/i586/memset.S (__memset_chk): New definition.
6103
ab905672
UD
61042007-09-15 Mike Frysinger <vapier@gentoo.org>
6105
6106 * inet/inet_net.c: Reset digit to 0 for inputs starting with "0x".
6107 * inet/tst-network.c (tests): Add edge case tests for "0", "0x", "0x0".
6108
9bd68902
RM
61092007-09-14 Mike Frysinger <vapier@gentoo.org>
6110
6111 * inet/tst-network.c: Increment ERRORS for failing tests.
6112
de1c3ebb
UD
61132007-09-07 Jakub Jelinek <jakub@redhat.com>
6114
6115 * misc/sys/cdefs.h (__va_arg_pack): Define for GCC 4.3+.
6116 * misc/bits/syslog.h (syslog): When __va_arg_pack is defined,
6117 implement as __extern_always_inline function.
6118 (vsyslog): Define as __extern_always_inline function unconditionally.
6119 * libio/bits/stdio2.h (sprintf, snprintf, printf, fprintf):
6120 When __va_arg_pack is defined, implement as __extern_always_inline
6121 functions.
6122 (vsprintf, vsnprintf, vprintf, vfprintf): Define as
6123 __extern_always_inline functions unconditionally.
6124 * libio/bits/stdio.h (vprintf): Ifdef out the inline when
6125 bits/stdio2.h will be included.
6126 * wcsmbs/bits/wchar2.h (__swprintf_alias): New redirect.
6127 (swprintf, wprintf, fwprintf): When __va_arg_pack is defined,
6128 implement as __extern_always_inline functions.
6129 (vswprintf, vwprintf, vfwprintf): Define as
6130 __extern_always_inline functions unconditionally.
6131 * debug/tst-chk1.c (do_test): Enable remaining tests for C++.
6132
61332007-09-03 Jakub Jelinek <jakub@redhat.com>
6134
6135 * misc/sys/cdefs.h (__extern_inline, __extern_always_inline): Only
6136 define in C++ for GCC 4.3+, in C++ always use __gnu_inline__
6137 attribute.
6138 * include/features.h (__USE_EXTERN_INLINES): Define only when
6139 __extern_inline is defined.
6140 * stdlib/stdlib.h: Include bits/stdlib.h when __extern_always_inline
6141 is defined instead of when not __cplusplus.
6142 * misc/sys/syslog.h: Include bits/syslog.h when __extern_always_inline
6143 is defined instead of when not __cplusplus.
6144 * socket/sys/socket.h: Include bits/socket2.h when
6145 __extern_always_inline is defined instead of when not __cplusplus.
6146 * libio/stdio.h: Include bits/stdio2.h when __extern_always_inline
6147 is defined instead of when not __cplusplus.
6148 * posix/unistd.h: Include bits/unistd.h when __extern_always_inline
6149 is defined instead of when not __cplusplus.
6150 * string/string.h: Include bits/string3.h when __extern_always_inline
6151 is defined instead of when not __cplusplus.
6152 * wcsmbs/wchar.h: Include bits/wchar2.h when __extern_always_inline
6153 is defined instead of when not __cplusplus.
6154 (btowc, wctob): Don't guard the inlines with ifndef __cplusplus.
6155 * io/fcntl.h: Don't include bits/fcntl2.h if __extern_always_inline
6156 is not defined.
6157 * misc/bits/syslog-ldbl.h: Guard *_chk stuff with
6158 defined __extern_always_inline instead of !defined __cplusplus.
6159 * libio/bits/stdio-ldbl.h: Likewise.
6160 * wcsmbs/bits/wchar-ldbl.h: Likewise.
6161 * misc/bits/syslog.h (syslog): Don't define for C++.
6162 (vsyslog): Use __extern_always_inline function for C++ instead of
6163 a macro.
6164 * libio/bits/stdio.h (__STDIO_INLINE): Define to __extern_inline
6165 whenever that macro is defined.
6166 (vprintf): Don't provide the inline for C++.
6167 (fread_unlocked, fwrite_unlocked): Don't define the macros for C++.
6168 * libio/bits/stdio2.h (sprintf, snprintf, printf, fprintf): Don't
6169 define the macros for C++.
6170 (vsprintf, vsnprintf, vprintf, vfprintf): Define as
6171 __extern_always_inline functions for C++.
6172 * io/sys/stat.h (stat, lstat, fstat, fstatat, mknod, mknodat,
6173 stat64, lstat64, fstat64, fstatat64): Don't define if not
6174 __USE_EXTERN_INLINES.
6175 * wcsmbs/bits/wchar2.h: Fix #error message.
6176 (swprintf, wprintf, fwprintf): Don't define the macros for C++.
6177 (vswprintf, vwprintf, vfwprintf): Define using
6178 __extern_always_inline functions for C++.
6179 * string/bits/string3.h: Don't #undef macros if __cplusplus.
6180 (memcpy, memmove, mempcpy, memset, bcopy, bzero, strcpy, stpcpy,
6181 strncpy, strcat, strncat): Define as __extern_always_inline
6182 functions instead of macros for C++.
6183 * math/bits/cmathcalls.h: Guard __extern_inline routines with
6184 defined __extern_inline.
6185 * sysdeps/alpha/fpu/bits/mathinline.h (__MATH_INLINE): Define
6186 to __extern_inline whenever that macro is defined.
6187 * sysdeps/ia64/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
6188 * sysdeps/i386/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
6189 * sysdeps/i386/i486/bits/string.h (__STRING_INLINE): Likewise.
6190 * sysdeps/s390/bits/string.h (__STRING_INLINE): Likewise.
6191 * sysdeps/s390/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
6192 * sysdeps/powerpc/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
6193 * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
6194 * sysdeps/sparc/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
6195 * sysdeps/unix/sysv/linux/sys/sysmacros.h (gnu_dev_major,
6196 gnu_dev_minor, gnu_dev_makedev): Remove __extern_inline from
6197 prototypes. Only provide __extern_inline routines if
6198 __USE_EXTERN_INLINES.
6199 * debug/Makefile: Add rules to build and run tst-{,lfs}chk{4,5,6}
6200 tests.
6201 * debug/tst-chk1.c (do_prepare, do_test): Allow compilation as C++.
6202 For now avoid some *printf tests in C++. Skip all testing
6203 if __USE_FORTIFY_LEVEL is defined, but __extern_always_inline macro
6204 is not.
6205 * debug/tst-chk4.cc: New file.
6206 * debug/tst-chk5.cc: New file.
6207 * debug/tst-chk6.cc: New file.
6208 * debug/tst-lfschk4.cc: New file.
6209 * debug/tst-lfschk5.cc: New file.
6210 * debug/tst-lfschk6.cc: New file.
6211 * include/wchar.h (__vfwprintf_chk, __vswprintf_chk): Avoid
6212 prototypes in C++.
6213 * include/stdio.h (__sprintf_chk, __snprintf_chk, __vsprintf_chk,
6214 __vsnprintf_chk, __printf_chk, __fprintf_chk, __vprintf_chk,
6215 __vfprintf_chk, __fgets_unlocked_chk, __fgets_chk): Likewise.
6216
b53eef9c
UD
62172007-09-13 Ulrich Drepper <drepper@redhat.com>
6218
6219 * po/cs.po: Update from translation team.
6220
af385590
RM
62212007-09-11 Roland McGrath <roland@redhat.com>
6222
6223 * posix/Makefile ($(objpfx)getconf.speclist): Make it empty if cross
6224 compiling.
6225
af2f25a1
RM
62262007-09-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
6227
6228 * sysdeps/mach/hurd/bits/ioctls.h (TAB3): New macro.
6229
94733ae0
RM
62302007-09-05 Roland McGrath <roland@redhat.com>
6231
6232 * manual/signal.texi (Signaling Another Process): Typo fix.
6233 From Karl Berry <karl@freefriends.org>.
6234
de4d8563
UD
62352007-08-29 Ulrich Drepper <drepper@redhat.com>
6236
6237 * sysdeps/unix/sysv/linux/check_pf.c (IFA_F_OPTIMISTIC): Define to
6238 zero if not defined.
6239 (make_request): Recognize optimistic addresses and treat them like
6240 deprecated addresses.
6241 Reported by Neil Horman <nhorman@redhat.com>.
6242
0adfcc05
UD
62432007-08-28 Ulrich Drepper <drepper@redhat.com>
6244
f3c54060
UD
6245 * nscd/connections.c (send_ro_fd): Also transfer file size.
6246 * nscd/nscd_helper.c (get_mapping): If nscd also transfers the
6247 file size don't call fstat.
6248
0adfcc05
UD
6249 * nscd/nscd_helper.c (get_mapping): Avoid the pread call, just go
6250 ahead and map the file. This should always be correct and we can
6251 catch problems later.
6252
3586b2b6
UD
62532007-08-28 Jakub Jelinek <jakub@redhat.com>
6254
6255 * libio/bits/stdio2.h (__fread_chk, __fread_unlocked_chk): New
6256 prototypes.
6257 (__fread_alias, __fread_unlocked_alias): New aliases.
6258 (fread): New extern inline.
6259 (fread_unlocked): Likewise. Undef macro before definition of
6260 the inline function.
6261 * debug/Makefile (routines): Add fread_chk and fread_u_chk.
6262 (CFLAGS-fread_chk.c, CFLAGS-fread_u_chk.c): Add.
6263 * debug/Versions (libc): Export __fread_chk@@GLIBC_2.7
6264 and __fread_unlocked_chk@@GLIBC_2.7.
6265 * debug/fread_chk.c: New file.
6266 * debug/fread_u_chk.c: New file.
6267 * debug/tst-chk1.c (do_test): Add fread and fread_unlocked tests.
6268
3704aa0b
RM
62692007-08-27 Jakub Jelinek <jakub@redhat.com>
6270
6271 * sysdeps/unix/sysv/linux/syscalls.list
6272 (personality): Change caller to EXTRA.
6273
80e7d6a6
UD
62742007-08-25 Ulrich Drepper <drepper@redhat.com>
6275
278bfa00
UD
6276 * iconvdata/iso-2022-kr.c (BODY): Fake initialization of array buf
6277 to keep gcc quiet.
6278 * iconvdata/iso-2022-cn.c (BODY): Likewise.
6279
a45d733c
UD
6280 * locale/programs/ld-collate.c (collate_output): Avoid warning if
6281 NDEBUG is defined.
6282
5dfeae0e
UD
6283 * Makerules: Use -p option with mkdir.
6284
8f1fe057
UD
6285 * sunrpc/key_prot.c (xdr_unixcred): Work around gcc alias warning.
6286 * nis/nis_xdr.c (_xdr_nis_server): Likewise.
bd0dcd28
UD
6287 (_xdr_directory_obj): Likewise.
6288 (xdr_entry_obj): Likewise.
6289 (xdr_group_obj): Likewise.
6290 (xdr_link_obj): Likewise.
6291 (xdr_table_obj): Likewise.
6292 (_xdr_nis_result): Likewise.
6293 (_xdr_ns_request): Likewise.
6294 (_xdr_ib_request): Likewise.
6295 (_xdr_nis_taglist): Likewise.
6296 (xdr_cback_data): Likewise.
8f1fe057 6297 * nis/yp_xdr.c (xdr_ypmaplist): Likewise.
bd0dcd28
UD
6298 (xdr_ypresp_maplist): Likewise.
6299
01339a67
UD
6300 * stdio-common/Makefile: Avoid format string warning for tst-sprint.
6301
3fa10468
UD
6302 * posix/regex_internal.h: Prevent some declarations and definitions
6303 to be seen when used in tests.
6304
ec1e04de
UD
6305 * posix/tst-rfc3484.c (__idna_to_unicode_lzlz): Initialize *OUTPUT.
6306 * posix/tst-rfc3484-2.c (__idna_to_unicode_lzlz): Likewise.
6307
7a344d1d
UD
6308 * debug/Makefile: Disable format checking when compiling tst-chk?.c.
6309
f8f6ff5d
UD
6310 * config.make.in (datarootdir): Add to shut up configure.
6311
76fca9f1
UD
6312 * sysdeps/x86_64/cacheinfo.c (handle_amd): Fix computation of
6313 associativity for fully-associative caches.
6314
80e7d6a6
UD
6315 * sysdeps/x86_64/cacheinfo.c (handle_amd): Handle L3 cache
6316 requests. Fill on more associativity values for L2.
6317 Patch mostly by Evandro Menezes.
6318
cb5ba304
UD
63192007-08-24 Ulrich Drepper <drepper@redhat.com>
6320
d250df8c
UD
6321 * sysdeps/unix/sysv/linux/x86_64/init-first.c
6322 (_libc_vdso_platform_setup): Avoid using exported variable by using
6323 alias.
6324
88f61aaf
UD
6325 * resolv/arpa/nameser.h (NS_OPT_DNSSEC_OK): Define.
6326
cb5ba304 6327 * sysdeps/unix/sysv/linux/i386/syscalls.list: No reason to mark
cb104bd7 6328 fallocate64 as EXTRA. It is not referenced if the symbol isn't
cb5ba304
UD
6329 defined.
6330
62e1b1f5
UD
63312007-08-23 Ulrich Drepper <drepper@redhat.com>
6332
44b2e581
UD
6333 * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Correctly
6334 align stack for call if pltexit is to be used.
6335
73e3ff07
UD
6336 [BZ #3924]
6337 * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Correctly
6338 align for function call in case pltexit has to be called later.
6339
62e1b1f5
UD
6340 * sysdeps/i386/dl-trampoline.S (_dl_runtime_resolve): Avoid
6341 implicit atomic operation when storing function pointer.
6342 (_dl_runtime_profile): Likewise.
6343
0008163a
UD
63442007-08-17 Jakub Jelinek <jakub@redhat.com>
6345
6346 * nis/nis_table.c (nis_list): Don't fail if __follow_path returned
6347 NIS_NOTFOUND.
6348
55ea8790
UD
63492007-08-21 Ulrich Drepper <drepper@redhat.com>
6350
2e0e1a05
UD
6351 [BZ #4566]
6352 * string/strtok.c: Fix typo in comment.
6353
682e4437
UD
6354 [BZ #4582]
6355 * debug/segfault.c: Fix typos in comments.
6356
7d55c9eb
UD
6357 [BZ #4588]
6358 * stdio-common/tempnam.c: Fix comment, it is not checked that
6359 TMPDIR points to a writable directory.
6360
0f8f993c
UD
6361 [BZ #4726]
6362 * resolv/res_send.c (__libc_res_nsend): Initialize all of the
6363 memory allocated for the name server address.
6364
1465dd0f
UD
6365 [BZ #4946]
6366 * nscd/connections.c (handle_request): Using sendfile always
6367 requires that mmap is used for the database.
6368 Patch by Petr Baudis <pasky@suse.cz>.
6369
c44d3bdf
UD
6370 [BZ #4905]
6371 * nscd/hstcache.c (cache_addhst): When reloading an entry which
6372 suddenly has two or more addresses, ignore it and remove the old
6373 entry.
6374
1ce7d80d
UD
6375 [BZ #4814]
6376 * resolv/res_hconf.c: Prepare for compiling outside libc.
6377 * nscd/res_hconf.c: New file.
6378 * nscd/Makefile (nscd-modules): Add res_hconf. Add rules to build
6379 the new file.
6380 * nscd/gethstbynm2_r.c (NEED__RES_HCONF): Define.
6381 * nscd/gethstbyad_r.c (NEED__RES_HCONF): Likewise.
6382
a30d41c1
UD
6383 * nscd/hstcache.c (cache_addhst): Minimal optimization.
6384
45dc3ad7
UD
6385 [BZ #4925]
6386 * debug/pcprofiledump.c: Turn on internationalization by calling
6387 setlocale. Patch mostly by Benno Schulenberg.
6388
55ea8790
UD
6389 [BZ #4936]
6390 * iconv/gconv.c (__gconv): If flush was successful, clear rest of
6391 the state.
6392 * iconvdata/Makefile: Add rules to build and run bug-iconv5.
6393 * iconvdata/bug-iconv5.c: New file.
6394
0b82ff74
UD
63952007-08-04 Carlos O'Donell <carlos@systemhalted.org>
6396
55ea8790 6397 [BZ #4896]
0b82ff74
UD
6398 * elf/elf.h: Define R_PARISC_PLABEL21L, R_PARISC_PLABEL14R,
6399 R_PARISC_GNU_VTENTRY, R_PARISC_GNU_VTINHERIT, R_PARISC_TLS_GD21L,
6400 R_PARISC_TLS_GD14R, R_PARISC_TLS_GDCALL, R_PARISC_TLS_LDM21L,
6401 R_PARISC_TLS_LDM14R, R_PARISC_TLS_LDMCALL, R_PARISC_TLS_LDO21L,
6402 R_PARISC_TLS_LDO14R, R_PARISC_TLS_DTPMOD32, R_PARISC_TLS_DTPMOD64,
6403 R_PARISC_TLS_DTPOFF32, R_PARISC_TLS_DTPOFF64, R_PARISC_TLS_LE21L,
6404 R_PARISC_TLS_LE14R, R_PARISC_TLS_IE21L, R_PARISC_TLS_IE14R,
6405 R_PARISC_TLS_TPREL32, R_PARISC_TLS_TPREL64.
6406
ee16a55a
UD
64072007-08-21 Ulrich Drepper <drepper@redhat.com>
6408
6409 [BZ #4937]
6410 * elf/do-lookup.h (do_lookup_x): Minimal improvement in hash
6411 lookup loop. Suggested by John Reiser.
6412
b211fe0f
JJ
64132007-08-21 Jakub Jelinek <jakub@redhat.com>
6414
6415 * sysdeps/unix/sysv/linux/alpha/sysdep.h: Include tls.h.
6416
fb84593c
UD
64172007-08-20 Ulrich Drepper <drepper@redhat.com>
6418
6419 * csu/libc-start.c: Don't handle VDSO_SETUP here.
6420 * sysdeps/unix/sysv/linux/init-first.c: Handle it here instead.
6421 * sysdeps/unix/sysv/linux/x86_64/libc-start.c: Renamed to...
6422 * sysdeps/unix/sysv/linux/x86_64/init-first.c: ...this. New file.
6423 * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Move VDSO_SETUP code
6424 to...
6425 * sysdeps/unix/sysv/linux/x86_64/init-first.c: ...here. New file.
6426
b83fb35c
UD
64272007-08-18 Ulrich Drepper <drepper@redhat.com>
6428
6429 * po/nl.po: Update from translation team.
6430
20806a70
AJ
64312007-08-16 Andreas Jaeger <aj@suse.de>
6432
6433 * locale/localeinfo.h: Make _nl_category_name_idxs extern.
f00d47a3 6434 Reported by Peter Festner <peter.festner@ewetel.net>.
20806a70 6435
42282d57
JJ
64362007-08-17 Jakub Jelinek <jakub@redhat.com>
6437
6438 * login/tst-grantpt.c (test_einval): Add 3rd argument to open.
6439
8a501135
JJ
64402007-08-16 Jakub Jelinek <jakub@redhat.com>
6441
cb84d1e4
JJ
6442 * elf/Makefile ($(objpfx)ld.so): Use readelf -s and awk instead of nm -u
6443 to check for undefined symbols.
6444
91ddd9c4
JJ
6445 * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone):
6446 If the syscall fails, set errno to the actual returned error number
6447 rather than EINVAL.
6448 * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__clone): If
6449 arguments are incorrect, set errno to EINVAL, if the syscall
6450 fails, set errno to the actual returned error number.
6451
18915760
JJ
6452 * stdlib/bits/stdlib-ldbl.h (__strtold_internal): Remove.
6453 * wcsmbs/bits/wchar-ldbl.h (__wcstold_internal): Remove.
6454
8a501135
JJ
6455 * sysdeps/sparc/sparc32/sparcv9b/memcpy.S: Moved to...
6456 * sysdeps/sparc/sparc32/sparcv9/sparcv9b/memcpy.S: ... here. New
6457 file.
6458 (ASI_PNF, ASI_BLK_P): Don't define.
6459 * sysdeps/sparc/sparc32/sparcv9v/memcpy.S: Moved to...
6460 * sysdeps/sparc/sparc32/sparcv9/sparcv9v/memcpy.S: ... here. New
6461 file.
6462 * sysdeps/sparc/sparc32/sparcv9v/memset.S: Moved to...
6463 * sysdeps/sparc/sparc32/sparcv9/sparcv9v/memset.S: ... here. New
6464 file.
6465
e4720b0e
JJ
64662007-08-15 Jakub Jelinek <jakub@redhat.com>
6467
6468 * sysdeps/sparc/fpu/fraiseexcpt.c (__feraiseexcept): Fix raising
6469 FE_UNDERFLOW on Niagara CPUs.
6470
6471 * sysdeps/sparc/fpu/feholdexcpt.c (feholdexcept): Clear all
6472 exceptions.
6473
702a9414
JJ
64742007-08-14 Jakub Jelinek <jakub@redhat.com>
6475
467d1345
JJ
6476 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_runtime_setup): No
6477 need to check GLRO(dl_hwcap) & HWCAP_SPARC_FLUSH on sparcv9.
6478 (sparc_fixup_plt): Add do_flush argument instead of figuring whether
6479 flush should be used or not inside of the function.
6480 (elf_machine_fixup_plt, elf_machine_rela): Adjust caller.
6481
6482 * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone,
6483 __thread_start): Use HIDDEN_JUMPTARGET.
6484 * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__clone,
6485 __thread_start): Likewise.
6486 * sysdeps/unix/sysv/linux/sparc/sysdep.h (JUMPTARGET): Define.
6487
702a9414
JJ
6488 * sysdeps/ieee754/ldbl-64-128/strtold_l.c (__STRTOF): Declare.
6489 Add libc_hidden_proto.
6490 (STRTOF): Add libc_hidden_proto.
6491 (___new_strtold_l, ___new_wcstold_l): New weak aliases.
6492 (strtold_l, wcstold_l): Use them as second argument for
6493 long_double_symbol.
6494
c6c8f0ec
UD
64952007-08-14 Ulrich Drepper <drepper@redhat.com>
6496
6497 * elf/dl-misc.c: Undo last change. The kernel won't allow it.
6498
5e88abf9
UD
64992007-08-13 Kaz Kojima <kkojima@rr.iij4u.or.jp>
6500
6501 * stdlib/strtold_l.c: Include wchar.h if needed. Add libc_hidden_def.
6502
fc4819b0
UD
65032007-08-14 Ulrich Drepper <drepper@redhat.com>
6504
6505 * po/bg.po: New file. From the translation team.
6506
22502ea2
UD
65072007-08-13 Jakub Jelinek <jakub@redhat.com>
6508
6509 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PSELECT,
6510 __ASSUME_PPOLL, __ASSUME_ATFCTS, __ASSUME_SET_ROBUST_LIST,
6511 __ASSUME_UTIMENSAT, __ASSUME_FALLOCATE): Update per-arch conditions
6512 when each feature was introduced.
6513
6514 * sysdeps/unix/sysv/linux/dl-vdso.c: Don't include dl-hash.h.
6515 * sysdeps/unix/sysv/linux/dl-vdso.h: Don't include dl-hash.h if NDEBUG.
6516 (CHECK_HASH): New macro.
6517 (PREPARE_VERSION): Use it.
6518
6519 * sysdeps/unix/sysv/linux/pselect.c (__generic_pselect): Only provide
6520 prototype if not __ASSUME_PSELECT.
6521 * sysdeps/unix/sysv/linux/ppoll.c (__generic_ppoll): Only provide
6522 prototype if not __ASSUME_PPOLL.
6523
6524 * sysdeps/unix/sysv/linux/dl-osinfo.h (ROUND): #undef after use.
6525
6526 * sysdeps/unix/clock_settime.c (freq, __pthread_clock_settime,
6527 hp_timing_settime): Don't define or declare if HANDLED_CPUTIME
6528 is defined.
6529
9c6f6953
UD
65302007-08-13 Ulrich Drepper <drepper@redhat.com>
6531
6532 * sysdeps/unix/sysv/linux/x86_64/libc-start.c
6533 (_libc_vdso_platform_setup): If vDSO is not available point
6534 __vdso_gettimeofday to the vsyscall.
6535 * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S [SHARED]: Use
6536 __vdso_gettimeofday instead of vsyscall.
6537
f8de5057
UD
65382007-08-13 Jakub Jelinek <jakub@redhat.com>
6539
6540 * nscd/servicescache.c: Include kernel-features.h.
6541 * nscd/gai.c: Likewise.
6542 * sysdeps/unix/sysv/linux/statfs64.c: Likewise.
6543 * sysdeps/unix/sysv/linux/fstatfs64.c: Likewise.
6544 * sysdeps/unix/sysv/linux/fxstatat.c: Likewise.
6545 * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S: Likewise.
6546 * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S: Likewise.
6547 * sysdeps/unix/sysv/linux/xstatconv.c: Likewise.
6548 * sysdeps/unix/sysv/linux/if_index.c: Likewise.
6549 * sysdeps/unix/sysv/linux/sparc/sparc64/xstat.c: Likewise.
6550 * sysdeps/unix/sysv/linux/ifaddrs.c: Likewise.
6551
3c87d79d
UD
65522007-08-12 Ulrich Drepper <drepper@redhat.com>
6553
ea37207a
UD
6554 * elf/dl-dst.h: No need for _dl_dst_count, _dl_dst_substitute,
6555 and _dl_get_origin defines anymore.
6556
4eb375fe
UD
6557 * sysdeps/unix/sysv/linux/clock_gettime.c (maybe_syscall_gettime_cpu):
6558 Build fix for systems which might lack POSIX timer support.
6559
3c87d79d
UD
6560 * sysdeps/unix/sysv/linux/x86_64/libc-start.c
6561 (_libc_vdso_platform_setup): Mangle function pointers before storing
6562 them.
6563 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_VSYSCALL):
6564 Demangle vdso pointer before use.
6565 (INTERNAL_VSYSCALL): Likewise.
6566
6567 * elf/cache.c (primes): Mark as const.
6568 Noted by Roland McGrath.
6569
27d9ffda
UD
65702007-08-01 Andreas Jaeger <aj@suse.de>
6571 Jakub Jelinek <jakub@redhat.com>
6572
6573 * elf/ldconfig.c (opt_ignore_aux_cache): Add new option.
6574 (options): Add option.
6575 (parse_opt): Handle option.
6576 (manual_link): Adjust process_file caller. Call implicit_soname.
6577 (search_dir): Formatting. Use and populate auxiliary cache.
6578 (main): Load and save auxiliary cache.
6579 * elf/readlib.c (process_file): Add stat_buf argument. Pass struct
6580 stat64 from fstat64 to caller.
6581 (implicit_soname): New function.
6582 * elf/readelflib.c (process_elf_file): If DT_SONAME is not present,
6583 leave *soname as NULL.
6584 * elf/cache.c: Include libgen.h.
6585 (print_entry, print_cache, compare, save_cache, add_to_cache):
6586 Formatting and cleanups.
6587 (aux_cache_entry_id, aux_cache_entry, aux_cache_file_entry,
6588 aux_cache_file): New structures.
6589 (AUX_CACHEMAGIC): Define.
6590 (primes): New array.
6591 (aux_hash_size, aux_hash): New variables.
6592 (aux_cache_entry_id_hash, nextprime, init_aux_cache,
6593 search_aux_cache, insert_to_aux_cache, add_to_aux_cache,
6594 load_aux_cache, save_aux_cache): New functions.
6595 * sysdeps/generic/ldconfig.h (_PATH_LDCONFIG_AUX_CACHE): Define.
6596 (init_aux_cache, search_aux_cache, add_to_aux_cache,
6597 load_aux_cache, save_aux_cache, implicit_soname): New prototypes.
6598 (process_file): Adjust prototype.
6599
8d944b0f
UD
66002007-08-12 Jakub Jelinek <jakub@redhat.com>
6601
6602 * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h: Include stddef.h
6603 with __need_size_t.
6604
75fb247e
UD
66052007-08-12 Ulrich Drepper <drepper@redhat.com>
6606
fb86328a
UD
6607 * sysdeps/unix/sysv/linux/dl-vdso.c (_dl_vdso_vsym): Expect
6608 r_found_version structure as second parameter.
6609 * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION): Define.
6610 (_dl_vdso_vsym): Change type of second parameter accordingly.
6611 * sysdeps/unix/sysv/linux/x86-64/libc-start.c
6612 (_libc_vdso_platform_setup): Adjust.
974a1f0f 6613 * sysdeps/unix/sysv/linux/powerpc/libc-start.c
fb86328a
UD
6614 (_libc_vdso_platform_setup): Likewise.
6615
75fb247e
UD
6616 * sysdeps/unix/sysv/linux/powerpc/dl-vdso.c: Move to...
6617 * sysdeps/unix/sysv/linux/dl-vdso.c: ...here.
6618 * sysdeps/unix/sysv/linux/powerpc/dl-vdso.h: Move to...
6619 * sysdeps/unix/sysv/linux/dl-vdso.h: ...here.
6620 * csu/libc-start.c: Pretty printing.
6621 Use VDSO_SETUP if defined.
6622 * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Define VDSO_SETUP
6623 and let generic code call into _libc_vdso_platform_setup.
6624 * sysdeps/unix/sysv/linux/x86_64/libc-start.c: New file.
6625 * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: New file.
6626 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Pretty printing.
6627 Define INLINE_VSYSCALL and INTERNAL_VSYSCALL.
6628 * sysdeps/unix/sysv/linux/x86_64/Versions: Export __vdso_clock_gettime
6629 for GLIBC_PRIVATE.
6630 * sysdeps/unix/sysv/linux/x86_64/Makefile [subdir=elf]
6631 (sysdep_rountines): Add dl-vdso.
6632
6633 * sysdeps/unix/sysv/linux/powerpc/Makefile: Use sysdep_routines instead
6634 of routines.
6635
6636 * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Add
6637 attribute_hidden to __vdso_gettimeofday prototype.
6638
9229b83e
RM
66392007-08-12 Roland McGrath <roland@redhat.com>
6640
6641 * manual/stdio.texi (Variable Arguments Output): Fix xref to gcc manual.
6642 From: Karl Berry <karl@freefriends.org>.
6643
4503061f
UD
66442007-08-11 Ulrich Drepper <drepper@redhat.com>
6645
6646 * elf/dl-misc.c (_dl_sysdep_read_whole_file): We really don't need
6647 an atime update for the files we read.
6648
d7e23b02
UD
66492007-08-10 Ulrich Drepper <drepper@redhat.com>
6650
7cf89e95
UD
6651 * shadow/lckpwdf.c (__lckpwdf): Use O_CLOEXEC if possible.
6652
9d169bb3 6653 * nscd/connections.c: Use O_CLOEXEC if possible. Use mkostemp
d7e23b02
UD
6654 instead of mkstemp.
6655
6656 * misc/Makefile (routines): Add mkostemp and mkostemp64.
6657 * misc/Versions: Export mkostemp and mkostemp64 for GLIBC_2.7.
6658 * misc/mkostemp.c: New file.
6659 * misc/mkostemp64.c: New file.
6660 * stdlib/stdlib.h: Declare the new functions.
6661 * sysdeps/posix/tempname.c: Add new parameter which is added to
6662 the flags for open. Remove __GT_BIGFILE handling.
6663 * stdio-common/tempname.c: Likewise.
6664 * include/stdio.h: Adjust __gen_tempname prototype.
6665 Renumber __GT_* constants.
6666 * libio/oldtmpfile.c: Adjust for __gen_tempname interface change.
6667 * misc/mkdtemp.c: Likewise.
6668 * misc/mkstemp.c: Likewise.
6669 * misc/mkstemp64.c: Likewise.
6670 * misc/mktemp.c: Likewise.
6671 * stdio-common/tempnam.c: Likewise.
6672 * stdio-common/tmpfile.c: Likewise.
6673 * stdio-common/tmpfile64.c: Likewise.
6674 * stdio-common/tmpnam.c: Likewise.
6675 * stdio-common/tmpnam_r.c: Likewise.
6676
22532966
RM
66772007-08-10 Roland McGrath <roland@frob.com>
6678
6679 * sysdeps/mach/hurd/bits/ioctls.h (NLDLY, TABDLY, BSDLY, VTDLY):
6680 New macros.
6681 (NLDELAY, CRDELAY, TBDELAY, BSDELAY, VTDELAY): Define to those.
6682 Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
6683
673876e6
UD
66842007-08-10 Ulrich Drepper <drepper@redhat.com>
6685
aa132749
UD
6686 * nss/nss_files/files-XXX.c (internal_setent): Use O_CLOEXEC if
6687 possible.
6688 * nss/nss_files/files-alias.c (internal_setent): Likewise.
6689 * nss/Makefile (libnss_files-routines): Add files-have_o_cloexec.
6690 * nss/nss_files/files-have_o_cloexec.c: New file.
6691
22532966 6692 * sysdeps/unix/sysv/linux/shm_open.c (shm_open): Use O_CLOEXEC if
673876e6
UD
6693 available.
6694
1e286653
JJ
66952007-08-10 Jakub Jelinek <jakub@redhat.com>
6696
6697 * sysdeps/ieee754/ldbl-128ibm/strtold_l.c (___new_strtold_l,
6698 ___new_wcstold_l): New weak aliases.
6699 (strtold_l, wcstold_l): Use them as second argument for
6700 long_double_symbol.
6701
f07f72f3
UD
67022007-08-09 Ulrich Drepper <drepper@redhat.com>
6703
6479496a
UD
6704 * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Use correct
6705 register in test for error.
6706
c4adefbd
UD
6707 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_CLOEXEC): Define.
6708 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (O_CLOEXEC): Likewise.
6709
f07f72f3
UD
6710 * po/sv.po: Update from translation team.
6711
eef38c28
RM
67122007-08-06 Roland McGrath <roland@redhat.com>
6713
773e305e
RM
6714 * include/stdlib.h: Add libc_hidden_proto for strto*, __strto*_l.
6715 Remove __strto*_l inlines.
6716 * include/wchar.h: Add libc_hidden_proto for wcsto*, __wcsto*_l.
6717 * stdlib/strtod.c: Add libc_hidden_def.
6718 * stdlib/strtod_l.c: Likewise.
6719 * stdlib/strtold.c [__LONG_DOUBLE_MATH_OPTIONAL]: Add libc_hidden_proto
6720 for __new_strtold and __new_wcstold.
6721 * sysdeps/ieee754/ldbl-128ibm/strtold_l.c: Add libc_hidden_proto for
6722 __STRTOF, STRTOF.
6723 * stdlib/strtol.c: Add libc_hidden_def.
6724 * stdlib/strtol_l.c: Likewise.
6725 * sysdeps/wordsize-64/strtol.c: Add libc_hidden_ver for strtoll and
6726 strtoq.
6727
6728 * scripts/data/localplt-powerpc-linux-gnu.data: New file.
6729
6730 * scripts/data/localplt-x86_64-linux-gnu.data: File renamed to ...
6731 * scripts/data/localplt-generic.data: ... here.
6732 * elf/Makefile (check-data): Get generic file if no other.
6733 ($(objpfx)check-localplt.out): Make target unconditional.
6734
eef38c28
RM
6735 * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_discover_osversion):
6736 Use ElfW(Nhdr).
6737
742df3a4
UD
67382007-08-05 Ulrich Drepper <drepper@redhat.com>
6739
6740 * po/zh_CN.po: Updated translation from translation team.
6741
0470fa46
JJ
67422007-08-05 Jakub Jelinek <jakub@redhat.com>
6743
6744 * sysdeps/unix/sysv/linux/powerpc/powerpc32/socket.S (__socket):
6745 Don't use CGOTSETUP and CGOTRESTORE macros.
6746
b5075bdc
RM
67472007-08-04 Roland McGrath <roland@redhat.com>
6748
6749 * posix/Makefile ($(objpfx)getconf.speclist): Fix typo.
6750
9accc268
JJ
67512007-08-04 Jakub Jelinek <jakub@redhat.com>
6752
6753 * io/bits/fcntl2.h (open, open64, openat, openat64): Add
6754 __extension__ around the whole statement expression.
6755
220ae3ef
UD
67562007-08-04 Ulrich Drepper <drepper@redhat.com>
6757
c8ccd8e3
UD
6758 * sysdeps/unix/opendir.c (__alloc_dir): Correct order of DIR
6759 elements during initialization.
6760
220ae3ef
UD
6761 * po/pl.po: Updated translation from translation team.
6762 * po/tr.po: Likewise.
11960f7f 6763 * po/nl.po: Likewise.
220ae3ef 6764
2fb20667
UD
67652007-08-03 Ulrich Drepper <drepper@redhat.com>
6766
6767 * rt/aio.h: Add __nonnull attributes.
6768
ce31a3b1
UD
67692007-08-03 Jakub Jelinek <jakub@redhat.com>
6770
64f6281c
UD
6771 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Properly handle -0.
6772 * stdlib/Makefile (tests): Add tst-strtod5.
6773 (tst-strtod5-ENV): New.
6774 * stdlib/tst-strtod5.c: New file.
6775
ce31a3b1
UD
6776 * intl/dcigettext.c (_nl_find_msg): Free encoding if __gconv_open
6777 failed.
6778 * intl/finddomain.c (_nl_find_domain): Free normalized_codeset
6779 on failure.
6780
6781 * elf/dl-load.c (decompose_rpath): Free copy if result couldn't be
6782 allocated.
6783
754980e4
JJ
67842007-08-03 Jakub Jelinek <jakub@redhat.com>
6785
6786 * rt/mqueue.h (mq_timedreceive, mq_timedsend): Fix nonnull argument
6787 numbers.
6788
497af0cb
UD
67892007-08-02 Ulrich Drepper <drepper@redhat.com>
6790
cbf0489b
UD
6791 * io/Makefile (aux): Add have_o_cloexec.
6792 * include/fcntl.h: Declare __have_o_cloexec.
6793 * io/have_o_cloexec.c: New file.
6794 * sysdeps/unix/opendir.c (__opendir): Use O_CLOEXEC is available.
6795 (__alloc_dir): If O_CLOEXEC has been used, don't duplicate the
6796 fcntl call if not necessary.
6797 * login/utmp_file.c (setutent_file): Use __have_o_cloexec instead
6798 of local variable.
6799
fa39685d
UD
6800 * sysdeps/unix/opendir.c (__alloc_dir): Don't initialize ->data.
6801 Avoid memset, add explicit initialization.
6802 * sysdeps/unix/dirstream.h (struct __dirstream): Move data elemtn
6803 to the end and change into zero-sized array.
6804 Move lock member to fill a hole on 64-bit platforms.
9b2e9577
UD
6805
6806 * stdlib/stdlib.h: Remove __strto*_internal prototypes and strto*
6807 inline functions.
6808 * include/stdlib.h: Add __strto*_internal prototypes here.
6809 * wcsmbs/wchar.h: Remove __wcsto*_internal prototypes and wcsto*
6810 inline functions.
6811 * include/wchar.h: Add __wcsto*_internal prototypes.
6812 * sysdeps/generic/inttypes.h: No need to protect the declaration
6813 of the __strto*_internal and __wcsto*_internal members here.
6814
497af0cb
UD
6815 * rt/mqueue.h: Change const to __const and add nonnull attributes.
6816
d17a8cf0
RM
68172007-08-02 Roland McGrath <roland@redhat.com>
6818
6819 * posix/Makefile ($(inst_libexecdir)/getconf): Make hard links to
6820 $(inst_bindir)/getconf if possible.
6821
6822 * posix/Makefile ($(objpfx)getconf.speclist): New target.
6823 (generated): Add it.
6824 ($(inst_libexecdir)/getconf): Use it.
6825
0abf17de
UD
68262007-08-01 Ulrich Drepper <drepper@redhat.com>
6827
6828 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Using
6829 /proc is faster and sufficient. /sys is still needed for
6830 __get_nprocs_conf.
6831
5e0923ab
UD
68322007-08-01 Jakub Jelinek <jakub@redhat.com>
6833
6834 * sysdeps/unix/sysv/linux/i386/syscalls.list (fallocate): Add fallocate
6835 syscall as __fallocate64.
6836 * sysdeps/unix/sysv/linux/i386/posix_fallocate.c: New file.
6837 * sysdeps/unix/sysv/linux/i386/posix_fallocate64.c: New file.
6838
1475e201
UD
68392007-07-30 Jakub Jelinek <jakub@redhat.com>
6840
6841 * stdlib/tst-strtod2.c (do_test): Use %tu in fmt string for ptrdiff_t
6842 value.
6843
6844 * stdio-common/tst-fmemopen2.c (do_test): Avoid fmt string warning
6845 if off_t is different rank from size_t.
6846
6847 * sysdeps/generic/unwind-dw2.c (extract_cie_info, execute_cfa_program,
6848 uw_frame_state_for): Avoid type punning warnings.
6849 * sysdeps/generic/unwind-dw2-fde-glibc.c
6850 (_Unwind_IteratePhdrCallback): Likewise.
6851 * sysdeps/generic/unwind-dw2-fde.c (_Unwind_Find_FDE): Likewise.
6852 (binary_search_single_encoding_fdes, binary_search_mixed_encoding_fdes,
6853 get_cie_encoding, linear_search_fdes): Don't mix char and unsigned char
6854 pointers.
6855
e076bece
UD
68562007-07-31 Ulrich Drepper <drepper@redhat.com>
6857
9506149a
UD
6858 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs_conf): Count
6859 total processors using sysfs.
6860 (__get_nprocs): Use sysfs to determine which processors are online.
e076bece 6861
bbeaaa84
JJ
68622007-07-31 Jakub Jelinek <jakub@redhat.com>
6863
09881398
JJ
6864 * sysdeps/unix/sysv/linux/posix_fallocate.c (posix_fallocate): Fix
6865 syscall arguments count.
6866
bbeaaa84
JJ
6867 * stdio-common/tfformat.c (sprint_doubles): Add 12 new tests.
6868
087ef75f
RM
68692007-07-30 Roland McGrath <roland@redhat.com>
6870
6871 * manual/libc.texinfo: Update copyrights, formatting magic, and
6872 @dircategory. From Karl Berry <karl@freefriends.org>.
6873
44f08a6e
UD
68742007-07-29 Ulrich Drepper <drepper@redhat.com>
6875
eafaae72
UD
6876 [BZ #4860]
6877 * io/Makefile (headers): Add bits/fcntl2.h.
6878
c5705565
UD
6879 * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_ZERO_S): Optimize
6880 using gcc builtin.
6881 (__CPU_EQUAL_S): Likewise.
6882
44f08a6e
UD
6883 * posix/Makefile (routines): Add sched_cpualloc and sched_cpufree.
6884 (tests): Add tst-cpuset.
6885 * posix/sched_cpualloc.c: New file.
6886 * posix/sched_cpufree.c: New file.
6887 * posix/tst-cpuset.c: New file.
6888 * posix/Versions: Export __sched_cpualloc and __sched_cpufree for
6889 GLIBC_2.7.
6890 * sysdeps/unix/sysv/linux/bits/sched.h: Define __CPU_*_S macros.
6891 * posix/sched.h: Define old CPU_* macros in temers of __CPU_*_S
6892 macros. Define CPU_*_S macros.
6893
8f5e1400
UD
68942007-07-28 Ulrich Drepper <drepper@redhat.com>
6895
5b74caf6
UD
6896 * posix/getconf.c (vars): Add missing _SC_LEVEL4_CACHE_LINESIZE
6897 entry.
6898
a26d01bb 6899 [BZ #4858]
8f5e1400
UD
6900 * stdio-common/printf_fp.c (___printf_fp): Fix special case of
6901 #.0g and value rounded to 1.0.
6902 * stdio-common/tfformat.c (sprint_doubles): Add two new tests.
6903
085a4412
UD
69042007-07-26 Jakub Jelinek <jakub@redhat.com>
6905
cedb4109
UD
6906 * locale/programs/ld-monetary.c (monetary_finish): Avoid range check
6907 for int_frac_digits and frac_digits.
6908
6909 * login/logout.c (logout): Avoid aliasing violation.
6910 * login/logwtmp.c (logwtmp): Likewise.
6911
6912 * libio/genops.c (_IO_un_link): Avoid aliasing violation.
6913
9d9febc7
UD
6914 * nscd/selinux.c (preserve_capabilities): Initialize new_caps
6915 to avoid warning.
6916 * iconv/gconv_open.c (__gconv_open): Initialize ptr to avoid
6917 warning.
6918 * nis/nis_subr.c (nis_getnames): Initialize saveptr to avoid
6919 warning.
6920 * resolv/inet_ntop.c (inet_ntop6): Initialize best.len and cur.len
6921 to avoid warnings.
6922
701666b7
UD
6923 * nss/nsswitch.c (__nss_lookup_function): Don't cast &ni->known to
6924 void **.
6925 * nss/nsswitch.h (service_user): Use void * type for KNOWN field.
6926
6927 * nss/nss_files/files-hosts.c (LINE_PARSER): Cast host_addr to
6928 char * to avoid warning.
6929 * nis/nss_nis/nis-hosts.c (LINE_PARSER): Likewise.
6930
6931 * timezone/Makefile (CFLAGS-zdump.c): Add -fwrapv.
6932
6933 * locale/programs/ld-ctype.c (ctype_finish, set_class_defaults,
6934 allocate_arrays): Cast second argument to charmap_find_symbol
6935 to char * to avoid warnings.
6936
6937 * locale/programs/repertoire.c (repertoire_new_char): Change
6938 from_nr, to_nr and cnt to unsigned long, adjust printf format
6939 string.
6940
6941 * locale/programs/ld-collate.c (insert_value, handle_ellipsis):
6942 Cast second argument to new_element to char * to avoid warnings.
6943
6944 * locale/weightwc.h (findidx): Cast &extra[-i] to const int32_t *.
6945
6946 * intl/gettextP.h (struct loaded_domain): Change plural to const
6947 struct expression *.
6948 * intl/plural-eval.c (plural_eval): Change first argument to
6949 const struct expression *.
6950 * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Change first
6951 argument to const struct expression **.
6952 * intl/plural-exp.h (EXTRACT_PLURAL_EXPRESSION, plural_eval): Adjust
6953 prototypes.
6954 * intl/loadmsgcat (_nl_unload_domain): Cast away const
6955 in call to __gettext_free_exp.
6956
6957 * posix/fnmatch.c (fnmatch): Rearrange code to avoid maybe
6958 unitialized wstring/wpattern var warnings.
6959
6960 * posix/runtests.c (struct a_test): Make data field const char *.
6961
6962 * stdio-common/tst-sprintf2.c (main): Don't declere u, v and buf
6963 vars if not LDBL_MANT_DIG >= 106.
6964
6965 * stdio-common/Makefile (CFLAGS-vfwprintf.c): Add -Wno-unitialized.
6966
6967 * stdio-common/vfprintf.c (vfprintf): Cast first arugment to
6968 __find_specmb to avoid warning.
6969
6970 * rt/tst-mqueue1.c (do_one_test): Add casts to avoid warnings.
6971
6972 * debug/test-strcpy_chk.c (do_tests, do_random_tests): Add casts
6973 to avoid warnings.
6974
6975 * sysdeps/ieee754/ldbl-96/s_roundl.c (huge): Add L suffix to
6976 initializer.
6977
6978 * sysdeps/unix/clock_gettime.c (clock_gettime): Only define
6979 tv var when it will be actually used.
6980
6981 * sunrpc/rpc_cmsg.c (xdr_callmsg): Cast IXDR_PUT_* to void
6982 to avoid warnings.
6983
085a4412
UD
6984 * iconvdata/gbk.c (BODY): Make buf and cp char instead of unsigned
6985 char array resp. pointer.
6986 * iconvdata/iso-2022-kr.c (BODY): Make buf unsigned char instead of
6987 char array.
6988 * iconvdata/cns11643.h (cns11643_to_ucs4): Change first argument
6989 to const unsigned char **.
6990 (ucs4_to_cns11643): Change second argument to unsigned char *.
6991 * iconvdata/euc-tw.c (BODY): Change endp type to
6992 const unsigned char *.
6993 * iconvdata/iso-ir-165.h (ucs4_to_isoir165): Change second argument
6994 to unsigned char *.
6995 * iconvdata/ibm1008_420.c (LOOP_NEED_FLAGS): Don't define.
6996 * iconvdata/iso-2022-cn.c (BODY): Change buf to unsigned char array.
6997 * iconvdata/iso-2022-cn-ext.c (BODY): Change buf, tmpbuf, tmp
6998 types to unsigned char pointers/arrays instead of char.
6999 * iconvdata/jis0201.h (ucs4_to_jisx0201): Change second argument
7000 to unsigned char *.
7001 * iconvdata/jis0208.h (ucs4_to_jisx0208): Likewise.
7002 * iconvdata/jis0212.h: Include assert.h.
7003 (ucs4_to_jisx0212): Change second argument to unsigned char *.
7004 assert that if cp[0] is not '\0', cp[1] is not '\0' either instead
7005 of trying to handle that.
7006 * iconvdata/euc-kr.c (euckr_from_ucs4): Initialize also cp[1] to
7007 shut up a warning.
7008 * iconvdata/euc-jp-ms.c (from_ucs4_lat1, from_ucs4_greek,
7009 from_ucs4_cjk, from_ucs4_cjkcpt, from_ucs4_extra): Change type to
7010 two dimensional const unsigned char arrays.
7011 (BODY): Cast "" to (const unsigned char *) for assignment to cp.
7012 Initialize endp to inptr to shut up a warning.
7013
fa69dc9c
UD
70142007-07-20 Jakub Jelinek <jakub@redhat.com>
7015
ae1ad762
UD
7016 [BZ #4772]
7017 * time/strptime_l.c (__strptime_internal): Silently ignore
7018 strftime modifiers and field width in recursive calls.
7019
fa69dc9c
UD
7020 * include/time.h (enum ptime_locale_status): Remove.
7021 (__strptime_internal): Remove decided and era_cnt arguments,
7022 add statep argument.
7023 * time/strptime_l.c (__strptime_internal): Remove decided
7024 and era_cnt arguments, add statep argument. Don't recompute
7025 any fields in recursive calls, only update caller's tm
7026 and state, if recursive call fails, don't change tm nor
7027 any state.
7028 (get_alt_number): Adjust.
7029 (recursive): Adjust caller.
7030 (strptime): Likewise.
7031 * time/strptime.c (strptime): Likewise.
7032
7b503bcc
UD
70332007-07-19 Jakub Jelinek <jakub@redhat.com>
7034
7035 * iconv/gconv_int.h (__GCONV_NULCONV): New internal only error code.
7036 * iconv/gconv_cache.c (__gconv_lookup_cache): Return __GCONV_NULCONV
7037 if from and to charsets are the same.
7038 * iconv/gconv_db.c (__gconv_find_transform): Likewise.
7039 * intl/dcigettext.c (_nl_find_msg): Return NULL even if __gconv_open
7040 returns __GCONV_NOCONV, but not for __GCONV_NULCONV.
7041
70422007-07-17 Jakub Jelinek <jakub@redhat.com>
7043
7044 * wcsmbs/wchar.h: Only define wint_t if __need_wint_t.
7045 Don't define wint_t when __need_mbstate_t unless it
7046 is necessary.
7047 (__mbstate_t): Use __WINT_TYPE__ rather than wint_t
7048 in the typedef if possible.
7049 * wctype/wctype.h (wint_t): Define by including
7050 wchar.h with __need_wint_t instead of including stddef.h
7051 with __need_wint_t and as fallback definining it ourselves.
7052 * iconv/gconv.h (__need_wint_t): Define before including
7053 wchar.h.
7054 * sysdeps/gnu/_G_config.h: Don't include gconv.h if not _LIBC
7055 or _GLIBCPP_USE_WCHAR_T.
7056 (__need_wchar_t): Don't define
7057 if not _LIBC or _GLIBCPP_USE_WCHAR_T.
7058 (__need_wint_t): Don't define before including stddef.h,
7059 define before including wchar.h only if _LIBC or
7060 _GLIBCPP_USE_WCHAR_T.
7061 (_G_iconv_t): Don't define if not _LIBC or _GLIBCPP_USE_WCHAR_T.
7062 * sysdeps/mach/hurd/_G_config.h: Likewise.
7063 * sysdeps/generic/_G_config.h: Likewise.
7064 * libio/libio.h (__wunderflow, __wuflow, __woverflow): Only
7065 prototype if _LIBC or _GLIBCPP_USE_WCHAR_T.
7066 (_IO_getwc_unlocked, _IO_putwc_unlocked): Only define
7067 if _LIBC or _GLIBCPP_USE_WCHAR_T.
7068
a95a608f
UD
70692007-07-28 Ulrich Drepper <drepper@redhat.com>
7070
7071 * sysdeps/posix/posix_fallocate64.c: Undefine
7072 __posix_fallocate64_l64 before alias handling.
7073 * sysdeps/unix/sysv/linux/posix_fallocate.c: New file.
7074 * sysdeps/unix/sysv/linux/posix_fallocate64.c: New file.
7075 * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c: New file.
7076 * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate64.c: New file.
7077
7078 * io/tst-posix_fallocate.c: Include <fcntl.h>.
7079
70802007-07-23 Jakub Jelinek <jakub@redhat.com>
7081
7082 * locale/programs/ld-collate.c (atwc): New variable.
7083 (add_to_tablewc): New toplevel function, moved from collate_output.
7084 (collate_output): Remove add_to_tablewc nested function.
7085
7086 * iconv/iconvconfig.c (hash_table, hash_size): New toplevel vars.
7087 (name_insert): New function.
7088 (write_output): Remove hash_table and hash_size vars and name_insert
7089 nested function.
7090
80d4c3b0
RM
70912007-07-24 Roland McGrath <roland@redhat.com>
7092
7093 * Makerules (install-others-programs-nosubdir): New target.
7094 (install-no-libc.a-nosubdir): Depend on it.
7095
7096 * iconv/Makefile (install-others-programs): Set this instead of
7097 install-others.
7098 * login/Makefile (install-others-programs): Likewise.
7099 * posix/Makefile (install-others-programs): Likewise.
7100
7101 * Makerules (install-no-libc.a-nosubdir): Clean up conditional
7102 dependencies.
7103
c1bf9f14
UD
71042007-07-23 Ulrich Drepper <drepper@redhat.com>
7105
7106 * io/Makefile (tests): Add tst-posix_fallocate.
7107 * io/tst-posix_fallocate.c: New file.
7108
7109 * sysdeps/unix/sysv/linux/kernel-features.h: Define
7110 __ASSUME_FALLOCATE.
7111
2320270c
RM
71122007-07-22 Roland McGrath <roland@frob.com>
7113
3dadfa7e
RM
7114 * hurd/getdport.c: Add missing copyright year update.
7115
2320270c
RM
7116 * sysdeps/mach/hurd/bits/fcntl.h [__USE_GNU] (O_CLOEXEC): New macro.
7117 * hurd/port2fd.c (_hurd_port2fd): Implement O_CLOEXEC.
7118
cc783763
UD
71192007-07-22 Ulrich Drepper <drepper@redhat.com>
7120
c942388d
UD
7121 * login/utmp_file.c (setutent_file): Use O_CLOEXEC if possible.
7122
cc783763
UD
7123 * libio/fileops.c (_IO_new_file_fopen): Recognize 'e' flag and set
7124 O_CLOEXEC is needed.
7125 * nis/nss_compat/compat-grp.c: Use 'e' flag when opening file.
7126 Avoid additional fcntl to set O_CLOEXEC if not needed.
7127 * nis/nss_compat/compat-initgroups.c: Likewise.
7128 * nis/nss_compat/compat-pwd.c: Likewise.
7129 * nis/nss_compat/compat-spwd.c: Likewise.
7130
610903b0
RM
71312007-07-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
7132
3dadfa7e 7133 [BZ #3665]
5c3d7832
RM
7134 * manual/errno.texi: Change ECANCELED value to 119.
7135
3dadfa7e 7136 [BZ #4610]
610903b0
RM
7137 * mach/lock-intern.h: Include <sys/cdefs.h>.
7138
3dadfa7e 7139 [BZ #4178]
610903b0
RM
7140 * sysdeps/mach/hurd/sigaction.c (__sigaction): Check ACT != NULL before
7141 reading A.
7142
3dadfa7e
RM
7143 [BZ #4126]
7144 * sysdeps/mach/hurd/sigsuspend.c (sigsuspend_not_cancel): Define alias
7145 to __sigsuspend.
610903b0
RM
7146
7147 * sysdeps/mach/i386/sysdep.h: Include <dl-sysdep.h> and <tls.h>.
7148
71492006-06-13 Thomas Schwinge <tschwinge@gnu.org>
7150
7151 * sysdeps/mach/hurd/tls.h: Change `ASSEMBLER' conditional to
7152 `__ASSEMBLER__'.
7153 * sysdeps/mach/hurd/i386/tls.h: Likewise.
7154
acf79996
UD
71552007-07-21 Ulrich Drepper <drepper@redhat.com>
7156
dde0763a
UD
7157 * nscd/nscd_helper.c (get_mapping): Use MSG_CMSG_CLOEXEC for
7158 descriptor received from nscd.
7159
acf79996
UD
7160 * sysdeps/unix/sysv/linux/bits/socket.h: Define MSG_CMSG_CLOEXEC.
7161
7162 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_CLOEXEC.
7163 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
7164 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
7165 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
7166 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
7167 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
7168
00d26929
JJ
71692007-07-20 Jakub Jelinek <jakub@redhat.com>
7170
403445d7
JJ
7171 [BZ #4816]
7172 * manual/signal.texi (Non-atomic Example): Make memory var volatile.
7173
00d26929
JJ
7174 [BZ #4813]
7175 * login/forkpty.c (forkpty): Close master and slave fds on
7176 fork failure. Patch by
7177 Mikulas Patocka <mikulas@artax.karlin.mff.cuni.cz>.
7178
087722b8
UD
71792007-07-18 Jakub Jelinek <jakub@redhat.com>
7180
7181 * include/features.h (__USE_ISOC95): New define.
7182 * wcsmbs/wchar.h (fwprintf, fwscanf, wprintf, wscanf, swprintf,
7183 swscanf, vfwprintf, vwprintf, vswprintf, fwide): Define even
7184 for -std=iso9899:199409.
7185 * CONFORMANCE: Remove comments about unsupported AMD1.
7186
b042b023
UD
71872007-07-17 Jakub Jelinek <jakub@redhat.com>
7188
7189 * sysdeps/ia64/sched_cpucount.c: New file.
7190 * sysdeps/powerpc/sched_cpucount.c: New file.
7191
8381e467
UD
7192 * sysdeps/unix/sysv/linux/bits/sched.h (__sched_cpucount): Add
7193 __BEGIN_DECLS/__END_DECLS around the prototype.
7194 * bits/sched.h (__sched_cpucount): Likewise. Make second argument
7195 pointer to const cpu_set_t.
7196
50e16f85
UD
7197 * bits/types.h: Don't include stddef.h, don't define __need_size_t.
7198 * signal/signal.h <__USE_BSD || __USE_XOPEN_EXTENDED>: Define
7199 __need_size_t and include stddef.h.
7200 * sysvipc/sys/msg.h: Likewise.
7201 * posix/sched.h: Likewise.
7202 * hurd/hurd/signal.h (__need_size_t): Define.
7203
7204 * CONFORMANCE: ctype.h and wctype.h no longer define size_t,
7205 neither does signal.h in pedantic ISO C namespaces. stdio.h
7206 no longer defines wint_t or wchar_t.
7207
b257c726
UD
7208 * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): New function.
7209 * debug/vfwprintf_chk.c (__vfwprintf_chk): Use
7210 _IO_acquire_lock_clear_flags2 instead of _IO_acquire_lock.
7211 * debug/vprintf_chk.c (__vprintf_chk): Likewise.
7212 * debug/vwprintf_chk.c (__vwprintf_chk): Likewise.
7213 * debug/vfprintf_chk.c (__vfprintf_chk): Likewise.
7214 * debug/fwprintf_chk.c (__fwprintf_chk): Likewise.
7215 * debug/printf_chk.c (__printf_chk): Likewise.
7216 * debug/fprintf_chk.c (__fprintf_chk): Likewise.
7217 * debug/wprintf_chk.c (__wprintf_chk): Likewise.
7218
7219 * sysdeps/pthread/bits/stdio-lock.h (_IO_acquire_lock_clear_flags2):
7220 Define.
7221
d5078b9f
UD
7222 * bits/confname.h (_CS_POSIX_V6_WIDTH_RESTRICTED_ENVS): Define.
7223 * posix/getconf.c (vars): Add POSIX_V6_WIDTH_RESTRICTED_ENVS.
7224
1c3e748e
UD
72252007-07-16 Jakub Jelinek <jakub@redhat.com>
7226
7227 [BZ #4792]
7228 * stdlib/stdlib.h (realloc): Remove __attribute_malloc__.
7229 * malloc/malloc.h (realloc): Likewise.
7230
4e425301
UD
7231 * libio/iopopen.c (_IO_new_proc_open): Don't close child_std_end
7232 if one of proc_file_chain streams has that fileno.
7233 * stdio-common/Makefile (tests): Add tst-popen2.
7234 * stdio-common/tst-popen2.c: New test.
7235
2e2efe65
RM
72362007-07-14 Jakub Jelinek <jakub@redhat.com>
7237
7238 * elf/ldconfig.c: Allow GPLv2 or any later version.
7239 * elf/readlib.c: Likewise.
7240 * elf/chroot_canon.c: Likewise.
7241 * elf/cache.c: Likewise.
7242 * nscd/mem.c: Likewise.
7243 * nscd/getpwuid_r.c: Likewise.
7244 * nscd/grpcache.c: Likewise.
7245 * nscd/aicache.c: Likewise.
7246 * nscd/getsrvbynm_r.c: Likewise.
7247 * nscd/nscd.c: Likewise.
7248 * nscd/servicescache.c: Likewise.
7249 * nscd/getsrvbypt_r.c: Likewise.
7250 * nscd/initgrcache.c: Likewise.
7251 * nscd/gethstbyad_r.c: Likewise.
7252 * nscd/gethstbynm2_r.c: Likewise.
7253 * nscd/getgrnam_r.c: Likewise.
7254 * nscd/nscd_setup_thread.c: Likewise.
7255 * nscd/getpwnam_r.c: Likewise.
7256 * nscd/gai.c: Likewise.
7257 * nscd/connections.c: Likewise.
7258 * nscd/dbg_log.c: Likewise.
7259 * nscd/cache.c: Likewise.
7260 * nscd/hstcache.c: Likewise.
7261 * nscd/nscd_conf.c: Likewise.
7262 * nscd/getgrgid_r.c: Likewise.
7263 * nscd/pwdcache.c: Likewise.
7264 * catgets/gencat.c: Likewise.
7265 * locale/programs/linereader.h: Likewise.
7266 * locale/programs/locarchive.c: Likewise.
7267 * locale/programs/ld-paper.c: Likewise.
7268 * locale/programs/locfile-kw.h: Likewise.
7269 * locale/programs/ld-address.c: Likewise.
7270 * locale/programs/xmalloc.c: Likewise.
7271 * locale/programs/ld-time.c: Likewise.
7272 * locale/programs/localedef.c: Likewise.
7273 * locale/programs/simple-hash.c: Likewise.
7274 * locale/programs/xstrdup.c: Likewise.
7275 * locale/programs/ld-numeric.c: Likewise.
7276 * locale/programs/locfile-kw.gperf: Likewise.
7277 * locale/programs/ld-collate.c: Likewise.
7278 * locale/programs/charmap-kw.gperf: Likewise.
7279 * locale/programs/charmap.h: Likewise.
7280 * locale/programs/charmap-kw.h: Likewise.
7281 * locale/programs/config.h: Likewise.
7282 * locale/programs/locfile.c: Likewise.
7283 * locale/programs/ld-ctype.c: Likewise.
7284 * locale/programs/charmap.c: Likewise.
7285 * locale/programs/ld-messages.c: Likewise.
7286 * locale/programs/repertoire.h: Likewise.
7287 * locale/programs/locale.c: Likewise.
7288 * locale/programs/ld-name.c: Likewise.
7289 * locale/programs/linereader.c: Likewise.
7290 * locale/programs/locfile.h: Likewise.
7291 * locale/programs/3level.h: Likewise.
7292 * locale/programs/ld-monetary.c: Likewise.
7293 * locale/programs/ld-measurement.c: Likewise.
7294 * locale/programs/charmap-dir.c: Likewise.
7295 * locale/programs/ld-identification.c: Likewise.
7296 * locale/programs/localedef.h: Likewise.
7297 * locale/programs/charmap-dir.h: Likewise.
7298 * locale/programs/repertoire.c: Likewise.
7299 * locale/programs/simple-hash.h: Likewise.
7300 * locale/programs/ld-telephone.c: Likewise.
7301 * locale/programs/locale-spec.c: Likewise.
7302 * locale/programs/locfile-token.h: Likewise.
7303 * posix/getconf.c: Likewise.
7304 * iconv/dummy-repertoire.c: Likewise.
7305 * iconv/iconv_charmap.c: Likewise.
7306 * iconv/iconvconfig.c: Likewise.
7307 * iconv/iconv_prog.c: Likewise.
7308 * malloc/memusagestat.c: Likewise.
7309 * sysdeps/unix/sysv/linux/nscd_setup_thread.c: Likewise.
7310
84c23a3d
RM
73112007-07-06 Kaz Kojima <kkojima@rr.iij4u.or.jp>
7312
7313 * sysdeps/sh/bsd-setjmp.S (setjmp): Use correct argument registers.
7314 * sysdeps/sh/bsd-_setjmp.S (_setjmp): Likewise.
7315 * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Do correct sanity
7316 check for the first argument.
7317
1c298d08
UD
73182007-07-12 Jakub Jelinek <jakub@redhat.com>
7319
7320 [BZ #4775]
7321 * math/tgmath.h (__tgmath_real_type_sub): Formatting.
7322 (__tgmath_real_type): Fix if expr is const int or other const
7323 qualified integral type.
7324 (__TGMATH_UNARY_REAL_ONLY): Rewritten to avoid using statement
7325 expressions and handle const qualified arguments.
7326 (__TGMATH_BINARY_FIRST_REAL_ONLY, __TGMATH_UNARY_REAL_IMAG,
7327 __TGMATH_UNARY_REAL_IMAG_RET_REAL): Likewise.
7328 (__TGMATH_UNARY_REAL_RET_ONLY): Rewritten to avoid using
7329 statement expressions.
7330 (__TGMATH_BINARY_REAL_ONLY, __TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY,
7331 __TGMATH_TERNARY_REAL_ONLY, __TGMATH_BINARY_REAL_IMAG): Likewise.
7332 (__TGMATH_UNARY_IMAG): Define.
7333 (conj, cproj): Use __TGMATH_UNARY_IMAG macro.
7334 * math/Makefile (tests): Add test-tgmath2.
7335 (CFLAGS-test-tgmath2.c): Add.
7336 * math/test-tgmath.c (fy, dy, ly, fz, dz, lz, count_cdouble,
7337 count_cfloat, count_cldouble): New variables.
7338 (NCCALLS): Define.
7339 (main): Check number of complex calls as well.
7340 (F(compile_test)): Add complex tests and tests with const qualified
7341 arguments.
7342 (y, z, ccount): Define.
7343 (F(cacos), F(casin), F(catan), F(ccos), F(csin), F(ctan), F(cacosh),
7344 F(casinh), F(catanh), F(ccosh), F(csinh), F(ctanh), F(cexp), F(clog),
7345 F(csqrt), F(cpow), F(cabs), F(carg), F(creal), F(cimag), F(conj),
7346 F(cproj)): New functions.
7347 * math/test-tgmath2.c: New test.
7348
73492007-07-11 Jakub Jelinek <jakub@redhat.com>
7350
7351 [BZ #4776]
7352 * elf/dl-load.c (_dl_rtld_di_serinfo): Output / in LD_LIBRARY_PATH,
7353 RPATH etc. as "/" rather than "", don't segfault on empty paths,
7354 instead output ".".
7355 * dlfcn/Makefile (distribute): Add glreflib3.c.
7356 (module-names): Add glreflib3.
7357 ($(objpfx)tst-dlinfo.out): Depend on glreflib3.so rather than
7358 glreflib1.so.
7359 (LDFLAGS_glreflib3.so): New.
7360 * dlfcn/tst-dlinfo.c (do_test): Load glreflib3.so instead of
7361 glreflib1.so.
7362 * dlfcn/glreflib3.c: New file.
7363
7364 * intl/finddomain.c (_nl_find_domain): If _nl_explode_name
7365 returned -1, return NULL.
7366 * intl/explodename.c (_nl_explode_name): Return -1 if
7367 _nl_normalize_codeset failed.
7368
a88f47a7
UD
73692007-07-07 Steven Munroe <sjmunroe@us.ibm.com>
7370
7371 * sysdeps/powerpc/powerpc32/power6/memset.S: Update comments.
7372 Specify .machine power6 to get ISA-V2.0 branch hints. Unroll loops
7373 and avoid branch misspredicts for > 31 bytes memset case.
7374 * sysdeps/powerpc/powerpc64/power6/memset.S: Likewise.
7375 Remove toc ref to __cache_line_size.
7376
7377 * sysdeps/powerpc/powerpc32/power4/memcmp.S: Specify .machine power4
7378 to get ISA-V2.0 branch hints.
7379 * sysdeps/powerpc/powerpc32/power4/memcpy.S: Likewise
7380 * sysdeps/powerpc/powerpc32/power4/memset.S: Likewise
7381 * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
7382 * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
7383 * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
7384 * sysdeps/powerpc/powerpc64/power4/memset.S: Likewise.
7385 Remove toc ref to __cache_line_size.
7386
7387 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S:
7388 Include math_ldbl_opt.h.
7389
f98c2d06
UD
73902007-07-10 Ulrich Drepper <drepper@redhat.com>
7391
7392 [BZ #4773]
7393 * time/strptime_l.c (__strptime_internal): Implement greedy
7394 matching of weekday and month names.
7395
cec5991f
RM
73962007-07-09 Roland McGrath <roland@redhat.com>
7397
7398 * elf/elf.h (NT_GNU_ABI_TAG): New macro.
7399 (ELF_NOTE_ABI): Use it.
7400 (NT_GNU_HWCAP, NT_GNU_BUILD_ID): New macros.
7401
8c1dcd26
UD
74022007-07-09 Ulrich Drepper <drepper@redhat.com>
7403
7404 * sysdeps/x86_64/cacheinfo.c (intel_02_known): Add new entries.
7405 * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
7406
c2c7bd3f
UD
74072007-07-07 Ulrich Drepper <drepper@redhat.com>
7408
7409 [BZ #4745]
0923a2c8
UD
7410 * stdio-common/vfscanf.c (_IO_vfscanf): Add additional test for EOF
7411 in loop to look for conversion specifier to avoid testing of
7412 wrong errno value.
7413 * stdio-common/Makefile (tests): Add bug18, bug18a, bug19, bug19a.
c2c7bd3f 7414 * stdio-common/bug18.c: New file.
0923a2c8
UD
7415 * stdio-common/bug18a.c: New file.
7416 * stdio-common/bug19.c: New file.
7417 * stdio-common/bug19a.c: New file.
c2c7bd3f 7418
4facf4af
RM
74192007-07-05 Mike Frysinger <vapier@gentoo.org>
7420
7421 * Makeconfig ($(common-objpfx)gnu/lib-names.stmp): Use LC_ALL=C when
7422 running awk script.
7423
1311e86e
UD
74242007-07-01 Jakub Jelinek <jakub@redhat.com>
7425
7426 * elf/dl-sysdep.c (_dl_important_hwcaps): Add integer overflow check.
7427 * elf/dl-minimal.c (__libc_memalign): Likewise. Handle malloc (0).
7428 Return NULL if mmap failed instead of asserting it does not.
7429 (calloc): Check for integer overflow.
7430
7431 * elf/dl-minimal.c (__strtoul_internal): Fix parsing of numbers bigger
7432 than LONG_MAX / 10.
7433
57c9179c
UD
74342007-07-03 Jakub Jelinek <jakub@redhat.com>
7435
7436 [BZ #4702]
7437 * nis/nss-default.c: Include errno.h.
7438 (init): Preserve errno.
7439
d0b283a8
UD
74402007-07-02 Ulrich Drepper <drepper@redhat.com>
7441
7442 * sysdeps/unix/sysv/linux/bits/socket.h (PF_UNIX): Update comment.
7443
34e0bbaf
UD
74442007-06-30 Ulrich Drepper <drepper@redhat.com>
7445
7446 * sysdeps/unix/sysv/linux/bits/socket.h: Add PF_RXRPC and AF_RXRPC.
7447
74482007-06-29 Martin Schwidefsky <schwidefsky@de.ibm.com>
7449
7450 * sysdeps/unix/sysv/linux/bits/socket.h: Add PF_IUCV and AF_IUCV.
7451
34e0bbaf 74522007-06-29 Martin Schwidefsky <schwidefsky@de.ibm.com>
33516494
UD
7453
7454 * sysdeps/s390/dl-procinfo.c: New file.
7455 * sysdeps/s390/dl-procinfo.h: New file.
7456 * sysdeps/unix/sysv/linux/s390/dl-procinfo.h: New file.
7457
0e508a6e
UD
74582007-06-29 Jakub Jelinek <jakub@redhat.com>
7459
7460 * elf/dl-load.c (open_verify): Find .note.ABI-tag notes even
7461 in PT_NOTE segments with multiple notes.
7462 * elf/readelflib.c (process_elf_file): Likewise.
7463
e22c61fb
UD
74642007-06-22 Ulrich Drepper <drepper@redhat.com>
7465
7466 * nis/nis_domain_of.c (__nis_domain_of): Make the code a bit more
7467 ISO C compliant.
7468
e4eb675d
UD
74692007-06-19 Ulrich Drepper <drepper@redhat.com>
7470
7471 * elf/dl-close.c (free_mem): Free _dl_scope_free_list.
7472
74732007-06-13 Jakub Jelinek <jakub@redhat.com>
7474
7475 * include/link.h: Don't include rtld-lowlevel.h.
7476 (struct link_map): Remove l_scope_lock.
7477 * sysdeps/generic/ldsodefs.h: Don't include rtld-lowlevel.h.
7478 (_dl_scope_free_list): New field (variable) in _rtld_global.
7479 (DL_LOOKUP_SCOPE_LOCK): Remove.
7480 (_dl_scope_free): New prototype.
7481 * elf/dl-runtime.c (_dl_fixup): Don't use __rtld_mrlock_*lock.
7482 Don't pass DL_LOOKUP_SCOPE_LOCK to _dl_lookup_symbol_x.
7483 (_dl_profile_fixup): Likewise.
7484 * elf/dl-sym.c (do_sym): Likewise. Use wrapped _dl_lookup_symbol_x
7485 whenever !RTLD_SINGLE_THREAD_P, use THREAD_GSCOPE_SET_FLAG and
7486 THREAD_GSCOPE_RESET_FLAG around it.
7487 * elf/dl-close.c (_dl_close_worker): Don't use
7488 __rtld_mrlock_{change,done}. Call _dl_scope_free on the old
7489 scope. Make sure THREAD_GSCOPE_WAIT () happens if any old
7490 scopes were queued or if l_scope_mem has been abandoned.
7491 * elf/dl-open.c (_dl_scope_free): New function.
7492 (dl_open_worker): Use it. Don't use __rtld_mrlock_{change,done}.
7493 * elf/dl-support.c (_dl_scope_free_list): New variable.
7494 * elf/dl-lookup.c (add_dependency): Remove flags argument.
7495 Remove DL_LOOKUP_SCOPE_LOCK handling.
7496 (_dl_lookup_symbol_x): Adjust caller. Remove DL_LOOKUP_SCOPE_LOCK
7497 handling.
7498 * elf/dl-object.c (_dl_new_object): Don't use
7499 __rtld_mrlock_initialize.
7500
9be09e06
UD
75012007-06-19 Ulrich Drepper <drepper@redhat.com>
7502
7503 * sysdeps/generic/ldsodefs.h (rtld_global): Reorder some elements
7504 to fill in holes
7505 (rtld_global_ro): Likewise.
7506
75072007-06-18 Jakub Jelinek <jakub@redhat.com>
7508
7509 * elf/dl-addr.c (_dl_addr): Skip PT_LOAD checking if l_contiguous.
7510 Move PT_LOAD checking to...
7511 (_dl_addr_inside_object): ... here, new function.
7512 * elf/dl-sym.c (do_sym): If not l_contiguous,
7513 call _dl_addr_inside_object.
7514 * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise.
7515 * dlfcn/dlinfo.c (dlinfo_doit): Likewise.
7516 * elf/dl-open.c (dl_open_worker): Likewise.
7517 (_dl_addr_inside_object): New function if IS_IN_rtld.
7518 * elf/dl-load.c (_dl_map_object_from_fd): Set l_contiguous if no
7519 holes are present or are PROT_NONE protected.
7520 * include/link.h (struct link_map): Add l_contiguous field.
7521 * sysdeps/generic/ldsodefs.h (_dl_addr_inside_object): New prototype.
7522
ae1ad3ae 75232007-06-18 Jakub Jelinek <jakub@redhat.com>
f00d47a3
AS
7524 Tomas Janousek <tjanouse@redhat.com>
7525 Ulrich Drepper <drepper@redhat.com>
ae1ad3ae
UD
7526
7527 [BZ #4647]
7528 * resolv/res_send.c (send_dg): Remove socket_pf. Use ipv6_unavail
7529 member in __res_state, only convaddr4to6 if nssocks[ns] is a PF_INET6
7530 socket.
7531 * resolv/resolv.h (__res_state): Add ipv6_unavail member. Make
7532 unused member a bitmap.
7533 * resolv/res_init.c (__res_vinit): Reset ipv6_unavail if IPv6
7534 servers are configured.
7535
3abee0b7
UD
75362007-06-18 Jakub Jelinek <jakub@redhat.com>
7537
7538 * elf/rtld.c (dl_main): Don't call init_tls more than once.
7539
89074592
UD
75402007-06-17 Andreas Schwab <schwab@suse.de>
7541
7542 * sysdeps/generic/initfini.c: Tell gcc about the nonstandard sections.
7543
b26e274d
AJ
75442007-06-16 Andreas Jaeger <aj@suse.de>
7545
7546 [BZ #4125]
7547 * sysdeps/unix/sysv/linux/sys/ptrace.h
7548 (PTRACE_O_TRACESYSGOOD, PTRACE_O_TRACEFORK,
7549 PTRACE_O_TRACEVFORK, PTRACE_O_TRACECLONE, PTRACE_O_TRACEEXEC,
89074592 7550 PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT, PTRACE_O_MASK,
b26e274d
AJ
7551 PTRACE_EVENT_FORK, PTRACE_EVENT_VFORK, PTRACE_EVENT_CLONE,
7552 PTRACE_EVENT_EXEC, PTRACE_EVENT_VFORK_DONE, PTRACE_EVENT_EXIT):
7553 Define.
7554 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
7555 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
7556 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
7557 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
7558
e0d4a4e5
UD
75592007-06-16 Ulrich Drepper <drepper@redhat.com>
7560
7561 [BZ #4599]
7562 * sysdeps/unix/sysv/linux/check_pf.c (make_request): When
7563 determining whether there are IPv4/IPv6 addresses, ignore loopback
7564 addresses.
7565
ae8e81f5
JJ
75662007-06-14 Uros Bizjak <ubizjak@gmail.com>
7567
7568 * soft-fp/soft-fp.h (CMPtype): Define to "int" if undefined.
7569 * soft-fp/eqdf2.c (__eqdf2): Use CMPtype instead of int
7570 as the return type. Change type of "r" variable to CMPtype.
7571 * soft-fp/eqsf2.c (__eqsf2): Likewise.
7572 * soft-fp/eqtf2.c (__eqtf2): Likewise.
7573 * soft-fp/gedf2.c (__gedf2): Likewise.
7574 * soft-fp/gesf2.c (__gesf2): Likewise.
7575 * soft-fp/getf2.c (__getf2): Likewise.
7576 * soft-fp/ledf2.c (__ledf2): Likewise.
7577 * soft-fp/lesf2.c (__lesf2): Likewise.
7578 * soft-fp/letf2.c (__letf2): Likewise.
7579 * soft-fp/unorddf2 (__unorddf2): Likewise.
7580 * soft-fp/unordsf2 (__unordsf2): Likewise.
7581 * soft-fp/unordtf2 (__unordtf2): Likewise.
7582
90cd2413
UD
75832007-06-09 Ulrich Drepper <drepper@redhat.com>
7584
7585 * elf/do-lookup.h (do_lookup_x): Read r_nlist before r_list and
7586 make sure gcc doesn't mess around with this.
7587
3c457089
UD
75882007-06-08 Ulrich Drepper <drepper@redhat.com>
7589
7590 * elf/dl-lookup.c (_dl_lookup_symbol_x): Remove use of r_nlist.
7591
e8b6b64d
UD
75922007-06-08 Jakub Jelinek <jakub@redhat.com>
7593
7594 * elf/dl-close.c (_dl_close_worker): Remove all to be removed
7595 libraries from the global scope at once and call THREAD_GSCOPE_WAIT
7596 at most once per _dl_close_worker.
7597
36dffb22
UD
75982007-06-08 Ulrich Drepper <drepper@redhat.com>
7599
755db8c5
UD
7600 * sysdeps/unix/sysv/linux/bits/sched.h: Make second parameter of
7601 __sched_cpucount as const.
7602 * posix/sched_cpucount.c: Adjust.
7603
36dffb22
UD
7604 * posix/sched_cpucount.c (__sched_cpucount): Allow using special
7605 instruction for counting bits.
7606 * sysdeps/x86_64/sched_cpucount.c: New file.
7607
26f56c1c
UD
76082007-06-07 Ulrich Drepper <drepper@redhat.com>
7609
7610 * configure.in: Avoid variable named BASH.
e967d385 7611 * config.make.in: Likewise.
26f56c1c 7612 Patch in part by Mike Frysinger.
835abc5c 7613
26f56c1c 76142007-06-06 Jakub Jelinek <jakub@redhat.com>
47779a7d
JJ
7615
7616 [BZ #4586]
835abc5c
UD
7617 * sysdeps/i386/ldbl2mpn.c (__mpn_extract_long_double): Treat
7618 pseudo-zeros as zero.
7619 * sysdeps/x86_64/ldbl2mpn.c: New file.
7620 * sysdeps/ia64/ldbl2mpn.c: New file.
7621
7e3706ea
UD
76222007-06-04 Jakub Jelinek <jakub@redhat.com>
7623
7624 * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (nextafterl): Remove
7625 unused ily variable. Fix nextafterl on +-__LDBL_MAX__ and +-Inf.
7626 Remove unreachable code at the end.
7627
76282007-06-01 Steven Munroe <sjmunroe@us.ibm.com>
7629
7630 * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Correct description of
7631 ldbl-128ibm in comment.
7632 (fpclassifyl): Correct classification of denormals.
7633 * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (nextafterl): Correct
7634 return value for MIN denormal. Rewrite using long double math too
7635 correctly handle denormals and canonicalize the results.
7636
76372007-06-05 Jakub Jelinek <jakub@redhat.com>
7638
7639 * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c
7640 (__mpn_construct_long_double): Fix conversion where result ought
7641 to be smaller than __LDBL_MIN__, or the low double should be
7642 denormal. Fix decision where to negate low double - honor round
7643 to even rules.
7644 * stdio-common/tst-sprintf2.c: Include string.h.
7645 (COMPARE_LDBL): Define.
7646 (TEST): Also test whether a string hexadecimal float representation
7647 can be parsed back to the number.
7648 (main): Add a couple of further tests.
7649
43b76828
UD
76502007-06-04 Jakub Jelinek <jakub@redhat.com>
7651
7652 * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c
7653 (PRINT_FPHEX_LONG_DOUBLE): Fix printing numbers where lower double
7654 is non-zero, but smaller than 2 * __DBL_MIN__.
7655 * stdio-common/tst-sprintf2.c: New test.
7656 * stdio-common/Makefile (tests): Add tst-sprintf2.
7657
7658 * math/test-misc.c (main): Don't run last batch of tests with
7659 IBM long double format.
7660
04067002
UD
76612007-05-31 Steven Munroe <sjmunroe@us.ibm.com>
7662
7663 * sysdeps/powerpc/powerpc32/970/fpu/Implies: New file.
7664 * sysdeps/powerpc/powerpc32/power5/fpu/Implies: New file.
7665 * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: New file.
7666 * sysdeps/powerpc/powerpc32/power6/fpu/Implies: New file.
7667 * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: New file.
7668 * sysdeps/powerpc/powerpc64/970/fpu/Implies: New file.
7669 * sysdeps/powerpc/powerpc64/power5/fpu/Implies: New file.
7670 * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: New file.
7671 * sysdeps/powerpc/powerpc64/power6/fpu/Implies: New file.
7672 * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: New file.
7673 * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: New file.
7674 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies:
7675 New file.
7676 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies:
7677 New file.
7678 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies:
7679 New file.
7680 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies:
7681 New file.
7682 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies:
7683 New file.
7684 * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: New file.
7685 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies:
7686 New file.
7687 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies:
7688 New file.
7689 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies:
7690 New file.
7691 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies:
7692 New file.
7693 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies:
7694 New file.
7695
76962007-05-31 Steven Munroe <sjmunroe@us.ibm.com>
7697
7698 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S: Move.
7699 * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: To here.
7700 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrintf.S: Move.
7701 * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: To here.
7702 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llround.S: Move.
7703 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: To here.
7704 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llroundf.S: Move.
7705 * sysdeps/powerpc/powerpc32/power4/fpu/s_llroundf.S: To here.
7706
77072007-05-22 Steven Munroe <sjmunroe@us.ibm.com>
7708
7709 * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S
7710 (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
7711 * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S
7712 (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
7713 * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S
7714 (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
7715 * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S
7716 (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
7717
77182007-05-21 Steven Munroe <sjmunroe@us.ibm.com>
7719
7720 * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: New file.
7721 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.c: New file.
7722 * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: New file.
7723 * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: New file.
7724
77252007-03-15 Steven Munroe <sjmunroe@us.ibm.com>
7726
7727 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S
7728 [LONG_DOUBLE_COMPAT]: Add compat_symbol for llrintl@@GLIBC_2_1.
7729
77302006-02-13 Steven Munroe <sjmunroe@us.ibm.com>
7731
7732 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: New File
7733 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: New File
7734 * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: New File
7735 * sysdeps/powerpc/powerpc32/power6/fpu/s_llroundf.S: New File
7736
77372006-10-20 Steven Munroe <sjmunroe@us.ibm.com>
7738
7739 * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: New file.
7740 * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: New file.
7741
77422006-10-03 Steven Munroe <sjmunroe@us.ibm.com>
7743
7744 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llround.S: New file.
7745 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llroundf.S: New file.
7746
7747 * sysdeps/powerpc/powerpc32/powerpc64/fpu/Makefile: Moved.
7748 * sysdeps/powerpc/powerpc32/powerpc64/fpu/mpa.c: Likewise.
7749 * sysdeps/powerpc/powerpc32/power4/fpu/Makefile: To here.
7750 * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
7751
77522006-09-29 Steven Munroe <sjmunroe@us.ibm.com>
7753
7754 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lrint.S: New file.
7755 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: New file.
7756 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: New file.
7757 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: New file.
7758
77592006-09-28 Steven Munroe <sjmunroe@us.ibm.com>
7760
7761 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: New file.
7762 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llroundf.S: New file.
7763 * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: New file.
7764 * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: New file.
7765 * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: New file.
7766 * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: New file.
7767
77682006-08-31 Steven Munroe <sjmunroe@us.ibm.com>
7769
7770 * sysdeps/powerpc/powerpc32/powerpc64/fpu/Makefile: New file.
7771 * sysdeps/powerpc/powerpc32/powerpc64/fpu/mpa.c: New file.
7772 * sysdeps/powerpc/powerpc64/power4/fpu/Makefile: New file.
7773 * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: New file.
7774
77752006-06-15 Steven Munroe <sjmunroe@us.ibm.com>
7776
7777 * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceil.S: New file.
7778 * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceilf.S: New file.
7779 * sysdeps/powerpc/powerpc32/power5+/fpu/s_floor.S: New file.
7780 * sysdeps/powerpc/powerpc32/power5+/fpu/s_floorf.S: New file.
7781 * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S: New file.
7782 * sysdeps/powerpc/powerpc32/power5+/fpu/s_roundf.S: New file.
7783 * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S: New file.
7784 * sysdeps/powerpc/powerpc32/power5+/fpu/s_truncf.S: New file.
7785 * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceil.S: New file.
7786 * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceilf.S: New file.
7787 * sysdeps/powerpc/powerpc64/power5+/fpu/s_floor.S: New file.
7788 * sysdeps/powerpc/powerpc64/power5+/fpu/s_floorf.S: New file.
7789 * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S: New file.
7790 * sysdeps/powerpc/powerpc64/power5+/fpu/s_roundf.S: New file.
7791 * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S: New file.
7792 * sysdeps/powerpc/powerpc64/power5+/fpu/s_truncf.S: New file.
7793
77942006-03-20 Steven Munroe <sjmunroe@us.ibm.com>
7795
7796 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S: New file.
7797 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrintf.S: New file.
7798
77992007-06-01 Steven Munroe <sjmunroe@us.ibm.com>
7800
7801 * sysdeps/powerpc/powerpc32/power6/memset.S: New file.
7802 * sysdeps/powerpc/powerpc64/power6/memset.S: New file.
7803
78042007-05-31 Steven Munroe <sjmunroe@us.ibm.com>
7805
7806 * sysdeps/powerpc/powerpc32/970/Implies: New file.
7807 * sysdeps/powerpc/powerpc32/power5/Implies: New file.
7808 * sysdeps/powerpc/powerpc32/power5+/Implies: New file.
7809 * sysdeps/powerpc/powerpc32/power6/Implies: New file.
7810 * sysdeps/powerpc/powerpc32/power6x/Implies: New file.
7811 * sysdeps/powerpc/powerpc64/970/Implies: New file.
7812 * sysdeps/powerpc/powerpc64/power5/Implies: New file.
7813 * sysdeps/powerpc/powerpc64/power5+/Implies: New file.
7814 * sysdeps/powerpc/powerpc64/power6/Implies: New file.
7815 * sysdeps/powerpc/powerpc64/power6x/Implies: New file.
7816
78172007-05-21 Steven Munroe <sjmunroe@us.ibm.com>
7818
7819 * sysdeps/powerpc/powerpc32/power4/memset.S: New file
7820
78212007-03-13 Steven Munroe <sjmunroe@us.ibm.com>
7822
7823 * sysdeps/powerpc/powerpc64/memcpy.S: Improve aligned loop to minimize
7824 branch miss-predicts. Ensure that cache line crossing does not impact
7825 dispatch grouping.
7826
78272006-12-13 Steven Munroe <sjmunroe@us.ibm.com>
7828
7829 * sysdeps/powerpc/powerpc64/power4/memcopy.h: Replace with include
7830 "../../powerpc32/power4/memcopy.h".
7831 * sysdeps/powerpc/powerpc64/power4/wordcopy.c: Replace with include
7832 "../../powerpc32/power4/wordcopy.c".
7833
78342006-10-03 Steven Munroe <sjmunroe@us.ibm.com>
7835
7836 * sysdeps/powerpc/powerpc32/powerpc64/Makefile: Moved.
7837 * sysdeps/powerpc/powerpc32/powerpc64/memcopy.h: Likewise.
7838 * sysdeps/powerpc/powerpc32/powerpc64/wordcopy.c: Likewise.
7839 * sysdeps/powerpc/powerpc32/power4/Makefile: To here.
7840 * sysdeps/powerpc/powerpc32/power4/memcopy.h: Likewise.
7841 * sysdeps/powerpc/powerpc32/power4/wordcopy.c: Likewise.
7842
78432006-09-10 Steven Munroe <sjmunroe@us.ibm.com>
7844
7845 * sysdeps/powerpc/powerpc32/power6/memcpy.S: New file.
7846
78472006-08-31 Steven Munroe <sjmunroe@us.ibm.com>
7848
7849 * sysdeps/powerpc/powerpc32/power6/wordcopy.c: New file.
7850 * sysdeps/powerpc/powerpc32/powerpc64/Makefile: New file.
7851 * sysdeps/powerpc/powerpc32/powerpc64/memcopy.h: New file.
7852 * sysdeps/powerpc/powerpc32/powerpc64/wordcopy.c: New file.
7853 * sysdeps/powerpc/powerpc64/power4/Makefile: New file.
7854 * sysdeps/powerpc/powerpc64/power4/memcopy.h: New file.
7855 * sysdeps/powerpc/powerpc64/power4/wordcopy.c: New file.
7856 * sysdeps/powerpc/powerpc64/power6/wordcopy.c: New file.
7857
78582006-07-06 Steven Munroe <sjmunroe@us.ibm.com>
7859
7860 * sysdeps/powerpc/powerpc64/power6/memcpy.S: New file.
7861
78622006-03-20 Steven Munroe <sjmunroe@us.ibm.com>
7863
7864 * sysdeps/powerpc/powerpc32/power4/memcmp.S: New file.
7865 * sysdeps/powerpc/powerpc32/power4/memcpy.S: New file.
7866 * sysdeps/powerpc/powerpc32/power4/memset.S: New file.
7867 * sysdeps/powerpc/powerpc32/power4/strncmp.S: New file.
7868 * sysdeps/powerpc/powerpc64/power4/memcmp.S: New file.
7869 * sysdeps/powerpc/powerpc64/power4/memcpy.S: New file.
7870 * sysdeps/powerpc/powerpc64/power4/strncmp.S: New file.
7871
5b55e1d3
RM
78722007-05-29 Roland McGrath <roland@redhat.com>
7873
7874 * po/Makefile (po-sed-cmd): New variable.
7875 (libc.pot.files): Move sed command text in there, avoid \ inside ''.
7876
5da4373c
UD
78772007-05-29 Ulrich Drepper <drepper@redhat.com>
7878
4b5e7304
UD
7879 * crypt/md5-crypt.c: Fix comment.
7880
5da4373c
UD
7881 * nscd/nscd_helper.c (get_mapping): Handle short replies instead
7882 of crashing. When this is the case or if the reply is malformed,
7883 don't try to close the new file descriptor since it does not
7884 exist.
7885 Patch in part by Guillaume Chazarain <guichaz@yahoo.fr>.
7886
40f57573
UD
78872007-05-28 Jakub Jelinek <jakub@redhat.com>
7888
7889 * sysdeps/unix/sysv/linux/futimes.c (miss_utimensat): Don't define
7890 if __NR_utimensat is not defined.
7891
6df7ffad
UD
78922007-05-26 Ulrich Drepper <drepper@redhat.com>
7893
7894 * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Include <sysdep.h>.
7895
47ad95ab
UD
78962007-05-25 Jakub Jelinek <jakub@redhat.com>
7897
7898 * io/bits/fcntl2.h (__open_2): Add nonnull attribute.
7899 (open): Fix comment typos. Don't call __open_2 if flags
7900 is a compile time constant without O_CREAT.
7901 (__open64_2): Add nonnull attribute.
7902 (open64): Fix comment typos. Don't call __open64_2 if flags
7903 is a compile time constant without O_CREAT.
7904 (__openat_2): Add nonnull attribute, fix nonnull attribute
7905 on redirect.
7906 (openat): Fix comment typos. Don't call __openat_2 if flags
7907 is a compile time constant without O_CREAT.
7908 (__openat64_2): Add nonnull attribute, fix nonnull attribute
7909 on redirect.
7910 (openat64): Fix comment typos. Don't call __openat64_2 if flags
7911 is a compile time constant without O_CREAT.
7912
ddfd0535
UD
79132007-05-24 Ulrich Drepper <drepper@redhat.com>
7914
7915 * Makerules (sysd-rules): Define PTW for ptw-* files.
7916 * Versions: Define GLIBC_2.7 for libc.
7917 * include/stdio.h: Declare __fortify_fail.
7918 * debug/fortify_fail.c: New file.
7919 * debug/Makefile (routines): Add fortify_fail.
7920 * debug/chk_fail.c: Use __fortify_fail.
7921 * debug/stack_chk_fail.c: Likewise.
7922 * io/Versions: Export __open_2, __open64_2, __openat_2, and
7923 __openat64_2 for GLIBC_2.7.
7924 * io/fcntl.h: When compiling with fortification, include bits/fcntl2.h.
7925 * io/open.c: Define *_2 variant of function which checks for O_CREAT
7926 and fails if necessary.
7927 * io/open64.c: Likewise.
7928 * io/openat.c: Likewise.
7929 * io/openat64.c: Likewise.
7930 * sysdeps/unix/sysv/linux/open64.c: Likewise.
7931 * sysdeps/unix/sysv/linux/openat.c: Likewise.
7932 * sysdeps/unix/sysv/linux/openat64.c: Likewise.
7933 * io/bits/fcntl2.h: New file.
7934 * include/fcntl.h: Declare __open_2, __open64_2, __openat_2, and
7935 __openat64_2.
7936 * include/bits/fcntl2.h: New file.
7937 * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
7938 Add open_2.
7939 * sysdeps/unix/sysv/linux/open_2.c: New file.
7940
bfe6f5fa
UD
79412007-05-21 Ulrich Drepper <drepper@redhat.com>
7942
6d59823c
UD
7943 * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Pass correct value
7944 as second parameter to handle_intel.
7945
e2b1e343
UD
7946 * nscd/aicache.c (addhstaiX): If reported TTL is zero don't cache
7947 the entry.
7948
bfe6f5fa
UD
7949 * sysdeps/unix/sysv/linux/x86_64/sysconf.c: Move cache information
7950 handling to ...
7951 * sysdeps/x86_64/cacheinfo.c: ... here. New file.
7952 * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
7953 cacheinfo.
7954 * sysdeps/x86_64/memcpy.S: Complete rewrite.
7955 * sysdeps/x86_64/mempcpy.S: Adjust appropriately.
7956 Patch by Evandro Menezes <evandro.menezes@amd.com>.
7957
7958 * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: New file.
7959
1f4843fb
UD
79602007-05-21 Jakub Jelinek <jakub@redhat.com>
7961
2c2c003a
UD
7962 [BZ #4525]
7963 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add epoll_pwait.
7964 * sysdeps/unix/sysv/linux/epoll_pwait.c: New file.
7965 * sysdeps/unix/sysv/linux/syscalls.list (epoll_pwait): Remove.
7966
7967 * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h (epoll_pwait): Declare.
7968
af269dd9
UD
7969 [BZ #4514]
7970 * stdio-common/vfprintf.c (vfprintf): Don't shadow workstart variable,
7971 reinitialize workend at the start of each do_positional format spec
7972 loop, free workstart before do_positional loops.
7973 (printf_unknown): Fix size of work_buffer.
7974 * stdio-common/tst-sprintf.c (main): Add 3 new testcases.
7975
1f4843fb
UD
7976 * malloc/hooks.c (MALLOC_STATE_VERSION): Bump.
7977 (public_sET_STATe): If ms->version < 3, put all chunks into
7978 unsorted chunks and clear {fd,bk}_nextsize fields of largebin
7979 chunks.
7980
7981 * malloc/malloc.c [MALLOC_DEBUG]: Revert 2007-05-13 changes.
7982 * malloc/hooks.c: Likewise.
7983 * malloc/arena.c: Likewise.
7984 * malloc/malloc.c (do_check_malloc_state): Don't assert
7985 n_mmaps is not greater than n_mmaps_max. This removes the need
7986 for the previous change.
7987
7988 * malloc/Makefile (CFLAGS-malloc.c): Revert accidental
7989 2007-05-07 commit.
7990
12e8bbff
UD
79912007-05-19 Ulrich Drepper <drepper@redhat.com>
7992
7993 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PRIVATE_FUTEX):
7994 Define for kernel >= 2.6.22.
69e5cbf5 7995
12e8bbff 79962007-05-18 Ulrich Drepper <drepper@redhat.com>
6d59823c 7997
df94b641
UD
7998 * elf/dl-close.c (_dl_close_worker): When removing object from
7999 global scope, wait for all lookups to finish afterwards.
8000 * elf/dl-open.c (add_to_global): When global scope array must
8001 grow, allocate a new one and free old array only after all
8002 lookups finish.
8003 * elf/dl-runtime.c (_dl_fixup): Protect using global scope.
8004 (_dl_lookup_symbol_x): Likewise.
8005 * elf/dl-support.c: Define _dl_wait_lookup_done.
8006 * sysdeps/generic/ldsodefs.h (struct rtld_global): Add
8007 _dl_wait_lookup_done.
8008
2acd01ac
UD
8009 * malloc/malloc.c (do_check_chunk): Correct check for mmaped block
8010 not overlapping with arena.
8011
129abdd3
UD
8012 * malloc/mcheck.c (reallochook): If size==0, free the block.
8013
eb4b098a
UD
8014 * rt/tst-shm.c: Use fstat64 instead of fstat.
8015
69e5cbf5
UD
8016 * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Fix case where
8017 __NR_sync_file_range is not defined.
8018
a2ccc760
UD
80192007-05-17 Ulrich Drepper <drepper@redhat.com>
8020
bec51a30
UD
8021 Dummy files to prevent stub versions from being used.
8022 * sysdeps/x86_64/fpu/k_cosl.c: New file.
8023 * sysdeps/x86_64/fpu/k_rem_pio2l.c: New file.
8024 * sysdeps/x86_64/fpu/k_sinl.c: New file.
8025 * sysdeps/x86_64/fpu/k_tanl.c: New file.
8026
a2ccc760
UD
8027 * version.h (VERSION): Set to 2.6.90.
8028
1a31b586
UD
80292007-05-14 Ulrich Drepper <drepper@redhat.com>
8030
a2ccc760
UD
8031 * version.h (VERSION): Define to 2.6.
8032 * include/features.h (__GLIBC_MINOR__): Define to 6.
2c1d6172 8033
1d47e92f
UD
8034 * malloc/malloc.c: Use all small bin slots on 64-bit archs.
8035
8036 * malloc/malloc.c (largebin_index): Really have 32 buckets with 64
8037 sizes.
366ad8fd 8038
1a31b586 80392007-05-13 Ulrich Drepper <drepper@redhat.com>
87e66335 8040
366ad8fd
UD
8041 * malloc/malloc.c [MALLOC_DEBUG]: Keep track of current maximum
8042 number of mmaps. n_mmaps_max is the target.
8043 * malloc/hooks.c: Likewise.
8044 * malloc/arena.c: Likewise.
8045
11ed6713
AJ
80462007-05-12 Andreas Jaeger <aj@suse.de>
8047
8048 * sysdeps/unix/sysv/linux/tst-getcpu.c: Include <unistd.h> for
8049 getpid.
8050
d65ef3dd
UD
80512007-05-11 Ulrich Drepper <drepper@redhat.com>
8052
2e81d449
UD
8053 * elf/dl-close.c (_dl_close_worker): Help gcc to optimize by
8054 adding new variables.
8055
d65ef3dd 8056 * elf/dl-open.c (add_to_global): Introduce variable ns to help gcc
2e81d449 8057 optimize. Completely extend global scope array before making the
d65ef3dd
UD
8058 new entries visible.
8059
c27d2078
UD
80602007-05-10 Ulrich Drepper <drepper@redhat.com>
8061
341c566f
UD
8062 * sysdeps/unix/sysv/linux/tst-getcpu.c: New file.
8063 * sysdeps/unix/sysv/linux/Makefile [subdir=posix] (tests): Add
8064 tst-getcpu.
8065
8066 * include/link.h: Move l_version and l_nversion members around to
8067 fill gaps.
8068
a53fa282
UD
8069 * scripts/check-c++-types.sh: Don't use -fnu89-inline option.
8070
3771196d
UD
8071 * sysdeps/unix/sysv/linux/sched_setaffinity.c
8072 (__sched_setaffinity_new): If syscall was successful and
8073 RESET_VGETCPU_CACHE is defined, use it before returning.
8074 * sysdeps/unix/sysv/linux/x86_64/sched_setaffinity.c: New file.
8075
f9bf102d
UD
8076 * io/sys/stat.h: Make sure struct timespec is defined for
8077 __USE_ATFILE.
8078
c27d2078
UD
8079 * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Define UTIME_NOW and
8080 UTIME_OMIT.
8081 * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
8082 * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
8083 * sysdeps/unix/sysv/linux/alpha/bits/stat.h: Likewise.
8084 * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
8085 * sysdeps/unix/sysv/linux/bits/stat.h: Likewise.
8086 * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
8087 * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_UTIMENSAT.
8088 * io/sys/stat.h: Declare utimensat, futimens.
8089 * io/utimensat.c: New file.
8090 * io/futimens.c: New file.
8091 * sysdeps/unix/sysv/linux/utimensat.c: New file.
8092 * sysdeps/unix/sysv/linux/futimens.c: New file.
8093 * io/Makefile (routines): Add utimensat, futimens.
8094 * io/Versions: Add utimensat, futimens to GLIBC_2.6.
8095 * sysdeps/unix/sysv/linux/lutimes.c: New file.
8096 * sysdeps/unix/sysv/linux/futimes.c: Use utimensat syscall if
8097 available.
8098
8099 * include/sys/cdefs.h: Redefine __nonnull so that test for
8100 incorrect parameters in the libc code itself are not omitted.
8101
cf6b0980
JJ
81022007-05-09 Jakub Jelinek <jakub@redhat.com>
8103
c1dfd7e6
JJ
8104 * sysdeps/ia64/fpu/fraiseexcpt.c (feraiseexcept): Don't raise overflow
8105 exception in addition to inexact when asked to raise only FE_INEXACT.
8106
cf6b0980
JJ
8107 [BZ #3427]
8108 * sysdeps/s390/fpu/feholdexcpt.c (feholdexcept): Don't clear exceptions
8109 in *envp.
8110
df7b6fea
UD
81112007-05-07 Ulrich Drepper <drepper@redhat.com>
8112
8113 [BZ #4403]
8114 * string/strfry.c (strfry): Make result more random.
8115
37f40235
RH
81162007-05-07 Richard Henderson <rth@redhat.com>
8117
8118 * sysdeps/alpha/fpu/bits/mathinline.h (__isnanl): Don't define
8119 if __NO_LONG_DOUBLE_MATH.
8120 * sysdeps/unix/sysv/linux/alpha/ioperm.c: If BWX insns not
df7b6fea 8121 available in the compiler, add .arch directive to the assembly.
37f40235
RH
8122
81232007-05-07 Jakub Jelinek <jakub@redhat.com>
8124
8125 * sysdeps/alpha/fpu/s_nearbyint.c (nearbyintl): Fix version on
8126 compat_symbol to GLIBC_2_1.
8127 * sysdeps/alpha/fpu/s_fmin.S (fminl): Likewise.
8128 * sysdeps/alpha/fpu/s_trunc.c (truncl): Likewise.
8129 * sysdeps/alpha/fpu/s_fmax.S (fmaxl): Likewise.
8130 * sysdeps/alpha/fpu/s_lrint.c (lrintl, llrintl): Likewise.
8131 * sysdeps/alpha/fpu/s_lround.c (lroundl, llroundl): Likewise.
8132 * sysdeps/alpha/fpu/s_round.c (roundl): Likewise.
8133 * sysdeps/alpha/fpu/s_isnan.c (isnanl): Provide compat_symbol in
8134 libc, not libm.
8135 (__isnanl): New compat_symbol.
8136
c7fd3362
JJ
81372007-05-07 Ulrich Drepper <drepper@redhat.com>
8138 Jakub Jelinek <jakub@redhat.com>
8139
8140 * malloc/arena.c (heap_info): Add mprotect_size field, adjust pad.
8141 (new_heap): Initialize mprotect_size.
8142 (grow_heap): When growing, only mprotect from mprotect_size till
8143 new_size if mprotect_size is smaller. When shrinking, use PROT_NONE
8144 MMAP for __libc_enable_secure only, otherwise use MADV_DONTNEED.
8145
4a59e9ad 81462007-04-30 Steven Munroe <sjmunroe@us.ibm.com>
37f40235 8147 Peter Bergner <bergner@us.ibm.com>
4a59e9ad
UD
8148
8149 * sysdeps/powerpc/bits/fenv.h: Declare __fe_mask_env extern.
8150 Define FE_NOMASK_ENV as FE_EANBLED_ENV. Define FE_MASK_ENV.
8151 * sysdeps/powerpc/fpu/Makefile: Add fe_mask to libm-support.
8152 * sysdeps/powerpc/fpu/fe_mask.c: New file.
8153 * sysdeps/powerpc/fpu/fe_nomask.c: Correct comment.
8154 * sysdeps/powerpc/fpu/fedisblxcpt.c (fedisableexcept):
8155 Call __fe_mask_env() if all FP exceptions disabled.
8156 * sysdeps/powerpc/fpu/feholdexcpt.c (feholdexcept): Copy high 32-bits
8157 from old FPSCR to new fenv to propagate DFP rounding modes.
8158 Call __fe_mask_env() if FP exceptions previously enabled.
8159 * sysdeps/powerpc/fpu/fesetenv.c (fesetenv): Change mask to merge
8160 exceptions from env. Use __fe_nomask_env() or __fe_mask_env() when
8161 transitioning from all exceptions disabled to any exception enabled
8162 or visa versa.
8163 * sysdeps/powerpc/fpu/feupdateenv.c (__feupdateenv): Change mask to
8164 merge exceptions from env. Call __fe_nomask_env or __fe_mask_env
8165 when transitioning from all exceptions disabled to any exception
8166 enabled or visa versa.
8167 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fe_nomask.c: Moved to...
8168 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c: ...here.
8169 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c: Moved to...
8170 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c: ...here.
8171 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c: New file.
8172 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c: New file.
8173
aa75f64c
UD
81742007-05-06 Ulrich Drepper <drepper@redhat.com>
8175
15eca720 8176 [BZ #4465]
aa75f64c
UD
8177 * posix/unistd.h: Remove __THROW from fdatasync.
8178
711deb05
UD
81792007-05-06 Mike Frysinger <vapier@gentoo.org>
8180
15eca720 8181 [BZ #4465]
711deb05
UD
8182 * sysdeps/unix/sysv/linux/syscalls.list (fdatasync): Add "C" to args.
8183
ffecd39b
UD
81842007-05-06 Ulrich Drepper <drepper@redhat.com>
8185
49a8eb75
UD
8186 * stdio-common/vfprintf.c (process_string_arg): Optimize
8187 ridiculous precision in wide char code printing multi-byte string.
8188 Reported by Jim Meyering <jim@meyering.net>.
8189
ffecd39b
UD
8190 [BZ #4131]
8191 * elf/dl-addr.c (_dl_addr): Compare address with actual segment
8192 boundaries to work around systems with overlapping binary loading.
8193 Based on a patch by Suzuki <suzuki@in.ibm.com>.
8194
b16dba4c
UD
81952007-05-04 Ulrich Drepper <drepper@redhat.com>
8196
30b323ab
UD
8197 * stdio-common/vfprintf.c (process_string_arg): Adjust call to
8198 __mbsnrtowcs after last change.
8199
b16dba4c
UD
8200 * locale/programs/linereader.c (get_symname): Fix adding final NUL.
8201 (get_ident): Likewise.
8202
37002cbc
JJ
82032007-05-03 Jakub Jelinek <jakub@redhat.com>
8204
8205 * soft-fp/op-common.h (FP_TRUNC): Replace raising of FP_EX_INEXACT
8206 with setting the sticky bit.
8207 * math/test-misc.c (main): Add more truncation tests.
8208
82092007-04-14 Uros Bizjak <ubizjak@gmail.com>
8210
8211 * soft-fp/floatunsidf.c (__floatunsidf): Use DFtype instead of
8212 double in the function declaration.
8213 * soft-fp/floatundidf.c (__floatundidf): Use DFtype instead of
8214 double in the function declaration.
8215 * soft-fp/floatunsisf.c (__floatunsisf): Use SFtype instead of
8216 float in the function declaration.
8217 * soft-fp/floatunsisf.c (__floatunsisf): Use SFtype instead of
8218 float in the function declaration.
8219
8220 * soft-fp/extended.h (FP_UNPACK_RAW_E): Do not increase X##_e for
8221 denormal operands. Do not generate FP_EX_DENORM exception.
8222 (FP_UNPACK_RAW_EP): Ditto.
8223 (FP_UNPACK_SEMIRAW_E): Use FP_UNPACK_RAW_E instead of
8224 undefined _FP_UNPACK_RAW_E.
8225 (FP_UNPACK_SEMIRAW_EP): Use FP_UNPACK_RAW_EP instead of
8226 undefined _FP_UNPACK_RAW_EP.
8227 (FP_PACK_SEMIRAW_E): Use FP_PACK_RAW_E instead of
8228 undefined _FP_PACK_RAW_E.
8229 (FP_PACK_SEMIRAW_EP): Use FP_PACK_RAW_EP instead of
8230 undefined _FP_PACK_RAW_EP.
8231
d9ac82d0
UD
8232 * soft-fp/op-2.h (_FP_FRAC_COPY_2_2): Define as alias to
8233 _FP_FRAC_COPY_2.
8234 * soft-fp/op-4.h (_FP_FRAC_COPY_2_2): Define as alias to
8235 _FP_FRAC_COPY_4.
37002cbc
JJ
8236
82372007-04-16 Uros Bizjak <ubizjak@gmail.com>
8238 Jakub Jelinek <jakub@redhat.com>
8239
8240 * soft-fp/op-common.h (FP_EXTEND): Do not abort when
8241 _FP_EXPBIAS_##dfs == _FP_EXPBIAS_##sfs. Handle denormals for
8242 this case.
8243 * soft-fp/op-common.h (FP_TRUNC): Ditto.
8244
002f0b0b
JJ
82452007-05-03 Jakub Jelinek <jakub@redhat.com>
8246
8247 * math/test-misc.c (main): Add tests for rounding long double
8248 values close to smallest double denormalized value to double.
8249
82502007-04-30 Joseph Myers <joseph@codesourcery.com>
8251
8252 * soft-fp/op-common.h (FP_TRUNC): Correct off-by-one error in
8253 condition for truncating to 0. Set sticky bit for such
8254 truncation.
8255
57433ede
UD
82562007-05-02 Jakub Jelinek <jakub@redhat.com>
8257
8258 * stdio-common/vfprintf.c (process_string_arg): Use a VLA rather than
8259 fixed length array for ignore.
8260
c01c2455
UD
82612007-04-30 Ulrich Drepper <drepper@redhat.com>
8262
8263 [BZ #4438]
8264 * stdio-common/vfprintf.c (process_string_arg): Don't overflow the
8265 stack for large precisions.
1cb04337
UD
8266 * stdio-common/test-vfprintf.c (main): Add test for large
8267 precision.
c01c2455 8268
37f02b1d
UD
82692007-04-30 Jakub Jelinek <jakub@redhat.com>
8270
b866373d
UD
8271 * stdio-common/printf_fp.c (___printf_fp): Don't print negative sign
8272 for exponent 0.
8273 * stdio-common/tfformat.c (sprint_doubles): Add a new test.
8274
37f02b1d
UD
8275 [BZ #4439]
8276 * resolv/inet_ntop.c (inet_ntop4): Take terminating '\0' into
8277 account in the size check.
8278 * resolv/tst-inet_ntop.c: New test.
8279 * resolv/Makefile (tests): Add tst-inet_ntop.
8280
7ecfbd38
UD
82812007-04-30 Ulrich Drepper <drepper@redhat.com>
8282 Jakub Jelinek <jakub@redhat.com>
8283
8284 [BZ #4349]
8285 * malloc/malloc.c: Keep separate list for first blocks on the bin
8286 lists with a given size. This helps skipping over list elements
8287 we know won't fit in two places.
8288 Inspired by a patch by Tomash Brechko <tomash.brechko@gmail.com>.
8289
e53f0f51
UD
82902007-04-28 Ulrich Drepper <drepper@redhat.com>
8291
8292 [BZ #4102]
8293 * sysdeps/posix/getaddrinfo.c (default_labels): Assign separate
8294 label to Teredo tunnel addresses 2001://32.
8295
109f51f2
UD
82962007-04-27 Ulrich Drepper <drepper@redhat.com>
8297
762422d1
UD
8298 * locale/programs/ld-collate.c (collate_read): Allow order_start
8299 after copy.
8300
61d5a67f
UD
8301 * locale/programs/ld-collate.c (collate_read): Fix printing of
8302 error message.
8303
8304 [BZ #3213]
8305 * locale/C-translit.h.in: Add entry for U2044.
8306
109f51f2
UD
8307 [BZ #4342]
8308 * stdio-common/vfscanf.c (_IO_vfscanf_internal): Allow
8309 hexa-decimal floats without exponent.
8310 * stdio-common/tstscanf.c (main): Adjust Test 8 test for success.
8311
ec08f13d
UD
83122007-04-25 Ulrich Drepper <drepper@redhat.com>
8313
8314 * sysdeps/unix/sysv/linux/bits/sched.h: Declare sched_getcpu.
8315 * sysdeps/unix/sysv/linux/sched_getcpu.c: New file.
8316 * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: New file.
8317 * sysdeps/unix/sysv/linux/Versions: Export sched_getcpu for
8318 GLIBC_2.6.
bce20b9a
UD
8319 * sysdeps/unix/sysv/linux/Makefile [subdir=posix] (sysdep_routines):
8320 Add sched_getcpu.
ec08f13d 8321
41967e1c
JJ
83222007-04-25 Jakub Jelinek <jakub@redhat.com>
8323
8324 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Return -1 instead
8325 of 0 after the out_fail label.
8326
ba508da3
UD
83272007-04-25 Ulrich Drepper <drepper@redhat.com>
8328
8329 [BZ #4406]
109f51f2 8330 * iconv/gconv_charset.h (strip): Allow ':'.
ba508da3
UD
8331 * iconv/iconv_open.c (iconv_open): Adjust comment.
8332
9c8d03d9
JJ
83332007-04-25 Jakub Jelinek <jakub@redhat.com>
8334
8335 * libio/bits/stdio.h (fgetc_unlocked): Add extern inline optimized
8336 version.
8337
2f1687b9
UD
83382007-04-23 Jakub Jelinek <jakub@redhat.com>
8339
8340 [BZ #4381]
8341 * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Ensure sufficient
8342 alignment of buffer and tmp_buffer.
8343 * nis/nss_nis/nis-hosts.c (internal_nis_gethostent_r,
8344 internal_gethostbyname2_r, _nss_nis_gethostbyaddr_r): Ensure sufficient
8345 alignment of buffer.
8346 * resolv/nss_dns/dns-hosts.c (getanswer_r): Likewise. Handle buflen
8347 bigger than INT_MAX.
8348 * resolv/nss_dns/dns-network.c (getanswer_r): Likewise. Add errnop and
8349 h_errnop arguments. Fail if buflen is too small.
8350 (_nss_dns_getnetbyname_r, _nss_dns_getnetbyaddr_r): Adjust callers.
8351
b64a9db8
JJ
83522007-04-23 Jakub Jelinek <jakub@redhat.com>
8353
8354 [BZ #4405]
8355 * iconvdata/gconv-modules (E13B): Add a missing slash to the alias
8356 name. Patch by Aurelien Jarno <aurelien@aurel32.net>.
8357
4d3144c9
RM
83582007-04-22 Roland McGrath <roland@redhat.com>
8359
8360 * elf/elf.h (NT_PRXFPREG): New macro.
8361
767b40bf
AJ
83622007-04-19 Andreas Jaeger <aj@suse.de>
8363
8364 [BZ #3905]
8365 * bits/in.h (IPV6_ROUTER_ALERT, IPV6_MTU_DISCOVER, IPV6_MTU,
8366 IPV6_RECVERR, IPV6_V6ONLY, IPV6_JOIN_ANYCAST, IPV6_LEAVE_ANYCAST):
8367 Added.
8368
2592d1ec
UD
83692007-04-19 Ulrich Drepper <drepper@redhat.com>
8370
8371 * include/sys/mman.h: Mark madvise hidden.
d07d044e 8372 * misc/madvise.c: Add libc_hidden_def.
2592d1ec 8373
7ab174ed
UD
83742007-04-06 Jakub Jelinek <jakub@redhat.com>
8375
8376 * nis/nis_domain_of.c (__nis_domain_of): New function.
8377 * include/rpcsvc/nislib.h (__nis_domain_of): New prototype.
8378 * nis/nis_lookup.c (nis_lookup): Use __nis_domain_of.
8379 * nis/nis_call.c (rec_dirsearch): Likewise.
8380 (first_shoot): Likewise. Remove search_parent_first argument.
8381 (struct nis_server_cache): Rename search_parent_first field
8382 to search_parent.
8383 (nis_server_cache_search, nis_server_cache_add): Rename
8384 search_parent_first argument to search_parent.
8385 (__nisfind_server): Likewise. If search_parent, call
8386 __nis_domain_of.
8387
b17c265f
UD
83882007-04-18 Ulrich Drepper <drepper@redhat.com>
8389
8390 * sysdeps/posix/getaddrinfo.c: Remove commented-out code.
8391
b7674b11
UD
83922007-04-17 Ulrich Drepper <drepper@redhat.com>
8393
8394 [BZ #4368]
8395 * stdlib/stdlib.h: Remove obsolete part of comment for realpath.
8396
faf3ad69
UD
83972007-04-16 Ulrich Drepper <drepper@redhat.com>
8398
8399 [BZ #4364]
8400 * posix/unistd.h (_XOPEN_VERSION): Define appropriately for SUSv3.
8401
c14f245c
UD
84022007-04-15 Jakub Jelinek <jakub@redhat.com>
8403
8404 * locale/programs/locarchive.c (INITIAL_NUM_NAMES,
8405 INITIAL_SIZE_STRINGS, INITIAL_NUM_LOCREC): Update to accomodate
8406 current number of locales in SUPPORTED.
8407 (create_archive): Initialize serial.
8408 (enlarge_archive): Preserve aliases rather than duplicating
8409 their locrecs.
8410
d40e67f5
UD
84112007-04-13 Jakub Jelinek <jakub@redhat.com>
8412
993a5d66
UD
8413 * libio/genops.c (_IO_default_finish): Call _IO_lock_fini
8414 after _IO_un_link, not before it.
8415
d40e67f5
UD
8416 * stdio-common/printf_fp.c (___printf_fp): Fix exponent -4
8417 special case handling when wcp == wstartp + 1. Fix a comment typo.
8418 * stdio-common/tfformat.c (sprint_doubles): Add a new testcase.
8419
0fca3153
UD
84202007-03-30 Jakub Jelinek <jakub@redhat.com>
8421
8422 * libio/libio.h (__underflow, __uflow, __overflow, __wunderflow,
8423 __wuflow, __woverflow, _IO_getc, _IO_putc, _IO_peekc_locked, _IO_padn,
8424 _IO_sgetn, _IO_seekoff, _IO_seekpos, _IO_getwc, _IO_putwc, _IO_wpadn):
8425 Remove __THROW.
8426 * libio/fileops.c (new_do_write, _IO_file_xsgetn_mmap,
8427 _IO_file_xsgetn_maybe_mmap): Likewise.
8428 * libio/oldfileops.c (old_do_write): Likewise.
8429 * libio/libioP.h (_IO_switch_to_get_mode, _IO_switch_to_wget_mode,
8430 _IO_init_marker, _IO_init_wmarker, _IO_default_uflow,
8431 _IO_wdefault_uflow, _IO_default_setbuf, _IO_default_seekpos,
8432 _IO_do_write, _IO_new_do_write, _IO_old_do_write, _IO_wdo_write,
8433 _IO_flush_all_lockp, _IO_flush_all, _IO_cleanup,
8434 _IO_flush_all_linebuffered, _IO_new_fgetpos, _IO_old_fgetpos,
8435 _IO_new_fsetpos, _IO_old_fsetpos, _IO_new_fgetpos64,
8436 _IO_old_fgetpos64, _IO_new_fsetpos64, _IO_old_fsetpos64,
8437 _IO_file_setbuf, _IO_file_seekoff, _IO_file_xsputn, _IO_file_xsgetn,
8438 _IO_file_underflow, _IO_file_underflow_mmap,
8439 _IO_file_underflow_maybe_mmap, _IO_file_overflow, _IO_file_attach,
8440 _IO_file_open, _IO_file_fopen, _IO_file_write, _IO_file_read,
8441 _IO_file_sync, _IO_file_close_it, _IO_file_finish,
8442 _IO_new_file_attach, _IO_new_file_close_it, _IO_new_file_finish,
8443 _IO_new_file_fopen, _IO_new_file_setbuf, _IO_file_setbuf_mmap,
8444 _IO_new_file_sync, _IO_new_file_underflow, _IO_new_file_overflow,
8445 _IO_new_file_seekoff, _IO_new_file_write, _IO_new_file_xsputn,
8446 _IO_old_file_setbuf, _IO_old_file_seekoff, _IO_old_file_xsputn,
8447 _IO_old_file_underflow, _IO_old_file_overflow, _IO_old_file_attach,
8448 _IO_old_file_fopen, _IO_old_file_write, _IO_old_file_sync,
8449 _IO_old_file_close_it, _IO_old_file_finish, _IO_wfile_xsputn,
8450 _IO_wfile_setbuf, _IO_wfile_sync, _IO_wfile_underflow,
8451 _IO_wfile_overflow, _IO_wfile_seekoff, _IO_old_proc_open,
8452 _IO_old_proc_close, _IO_getdelim, _IO_flush_all_internal,
8453 _IO_adjust_column_internal, _IO_default_uflow_internal,
8454 _IO_default_xsgetn_internal, _IO_wdefault_xsputn_internal,
8455 _IO_wdefault_xsgetn_internal, _IO_wdefault_uflow_internal,
8456 _IO_file_setbuf_internal, _IO_file_seekoff_internal,
8457 _IO_file_xsputn_internal, _IO_file_xsgetn_internal,
8458 _IO_file_close_it_internal, _IO_file_underflow_internal,
8459 _IO_file_overflow_internal, _IO_file_attach_internal,
8460 _IO_file_fopen_internal, _IO_file_sync_internal,
8461 _IO_file_finish_internal, _IO_wfile_xsputn_internal,
8462 _IO_wfile_seekoff_internal, _IO_wfile_sync_internal,
8463 _IO_switch_to_wget_mode_internal, _IO_padn_internal,
8464 _IO_switch_to_get_mode_internal, _IO_seekoff_unlocked,
8465 _IO_seekpos_unlocked): Likewise.
8466 (_IO_strtod, _IO_dtoa, _IO_outfloat, _IO_read, _IO_write,
8467 _IO_lseek, _IO_close, _IO_fstat): Remove unused prototypes.
8468
07358add
JJ
84692007-04-16 Jakub Jelinek <jakub@redhat.com>
8470
8471 * locale/programs/locarchive.c (show_archive_content): Fix sizeof
8472 argument in xmalloc size computation.
8473
7a82b74f
UD
84742007-04-01 Jakub Jelinek <jakub@redhat.com>
8475
8476 * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl): Use
8477 math_opt_barrier and math_force_eval macros.
8478
3e336a87
UD
84792007-03-27 Jakub Jelinek <jakub@redhat.com>
8480
8481 [BZ #3306]
8482 * math/math_private.h (math_opt_barrier, math_force_eval): Define.
8483 * sysdeps/i386/fpu/math_private.h: New file.
8484 * sysdeps/x86_64/fpu/math_private.h: New file.
8485 * math/s_nexttowardf.c (__nexttowardf): Use math_opt_barrier and
8486 math_force_eval macros. Use "+m" constraint on asm rather than
8487 "=m" and "m".
8488 * math/s_nextafter.c (__nextafter): Likewise.
8489 * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c (__nexttoward):
8490 Likewise.
8491 * sysdeps/ieee754/flt-32/s_nextafterf.c (__nextafterf): Likewise.
8492 * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward): Likewise.
8493 * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
8494 * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Use
8495 math_opt_barrier and math_force_eval macros.
8496 * sysdeps/ieee754/ldbl-128/s_nextafterl.c (__nextafterl): Likewise.
8497 * sysdeps/ieee754/ldbl-96/s_nextafterl.c (__nextafterl): Likewise.
8498 * sysdeps/i386/fpu/s_nexttoward.c: Include float.h.
8499 (__nexttoward): Use math_opt_barrier and
8500 math_force_eval macros. Use "+m" constraint on asm rather than
8501 "=m" and "m". Only use asm to force double result if
8502 FLT_EVAL_METHOD is 2.
8503 * sysdeps/i386/fpu/s_nexttowardf.c: Include float.h.
8504 (__nexttowardf): Use math_opt_barrier and
8505 math_force_eval macros. Use "+m" constraint on asm rather than
8506 "=m" and "m". Only use asm to force double result if
8507 FLT_EVAL_METHOD is not 0.
8508 * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Include float.h.
8509 (__nexttowardf): Use math_opt_barrier and
8510 math_force_eval macros. If FLT_EVAL_METHOD is not 0, force
8511 x to float using asm.
8512 * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c: Include float.h.
8513 (__nldbl_nexttowardf): Use math_opt_barrier and
8514 math_force_eval macros. If FLT_EVAL_METHOD is not 0, force
8515 x to float using asm.
8516 * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Include float.h.
8517 (__nexttowardf): Use math_opt_barrier and math_force_eval
8518 macros. If FLT_EVAL_METHOD is not 0, force x to float using asm.
8519 * math/bug-nextafter.c (zero, inf): New variables.
8520 (main): Add new tests.
8521 * math/bug-nexttoward.c (zero, inf): New variables.
8522 (main): Add new tests.
8523
a8c79c40
UD
85242007-03-22 Jakub Jelinek <jakub@redhat.com>
8525
8526 [BZ #3427]
8527 * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Clear all
8528 exceptions both in SW and MXCSR.
8529 * sysdeps/x86_64/fpu/feupdateenv.c: New file.
8530 * sysdeps/x86_64/fpu/feenablxcpt.c (feenableexcept): Remove dead code.
8531 * sysdeps/x86_64/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
8532 * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions
8533 in MXCSR if SSE is available.
8534 * sysdeps/i386/fpu/feupdateenv.c: Include unistd.h, dl-procinfo.h
8535 and ldsodefs.h.
8536 (__feupdateenv): Query exceptions also from MXCSR if SSE is available.
8537 Fix comment typo.
8538 * sysdeps/ia64/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions.
8539 Return 0 rather than 1.
8540 * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Fix comment typo.
8541 Remove incorrect part of a comment. Fix argument to feraiseexcept.
8542 * math/test-fenv.c (feholdexcept_tests): New function.
8543 (main): Call it.
8544
85452007-01-05 Richard B. Kreckel <kreckel@ginac.de>
8546
8547 [BZ #3427]
8548 * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions
8549 in SW.
8550
30a3aa75
JJ
85512007-04-13 Jakub Jelinek <jakub@redhat.com>
8552
8553 [BZ #4344]
8554 * elf/ldconfig.c (search_dir): Fix 2 off-by-2 errors.
8555 Reported by David Anderson <davea42@earthlink.net>.
8556
75587bfe
UD
85572007-04-07 Ulrich Drepper <drepper@redhat.com>
8558
8559 * posix/sys/wait.h: Remove unnecessary forward declaration.
8560
88fa1769
JJ
85612007-04-05 Jakub Jelinek <jakub@redhat.com>
8562
8563 * nis/nis_call.c (__nisfind_server): Replace (*dir)->do_servers
8564 with obj->do_servers after first_shoot.
8565
eab1bdfb
UD
85662007-04-03 Ulrich Drepper <drepper@redhat.com>
8567
8568 * posix/Makefile (routines): Add sched_cpucount.
8569 (tests): Add tst-cpucount.
8570 * posix/sched_cpucount.c: New file.
8571 * posix/tst-cpucount.c: New file.
8572 * posix/Versions: Export __sched_cpucount with version GLIBC_2.6.
b4afdd06
UD
8573 * bits/sched.h: Define __CPU_COUNT. Declare __sched_cpucount.
8574 * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
8575 * posix/sched.h: Define CPU_COUNT.
eab1bdfb 8576
9700b039
UD
85772007-03-27 Jakub Jelinek <jakub@redhat.com>
8578
8579 * posix/fnmatch.c (STRUCT): Define.
8580 (fnmatch): Pass NULL as last argument to internal_fn{,w}match.
8581 * posix/fnmatch_loop.c (struct STRUCT): New type.
8582 (FCT): Add ends argument. If ends != NULL and normal * is
8583 seen in the pattern, store current pattern and string pointers
8584 and return. Adjust recursive calls.
8585 (EXT): Adjust FCT callers.
8586 (STRUCT): Undef at the end of the file.
8587 * posix/Makefile (tests): Add tst-fnmatch2.
8588 * posix/tst-fnmatch2.c: New test.
8589
d64e9790
JJ
85902007-04-01 Jakub Jelinek <jakub@redhat.com>
8591
933dfe7b
JJ
8592 * sysdeps/ia64/fpu/fesetround.c (fesetround): Return 0 on success
8593 and 1 on failure.
8594
d64e9790
JJ
8595 * sysdeps/unix/sysv/linux/sync_file_range.c (sync_file_range):
8596 Change last argument to unsigned int.
8597
e1f0c5bc
UD
85982007-03-23 Jakub Jelinek <jakub@redhat.com>
8599
8600 * scripts/check-local-headers.sh: Filter out sys/capability.h.
8601
86022007-03-22 Jakub Jelinek <jakub@redhat.com>
8603
8604 * config.h.in (HAVE_LIBCAP): Add.
8605 * nscd/selinux.h: Include sys/capability.h rather than non-existent
8606 sys/capabilities.h.
8607 * nscd/selinux.c (preserve_capabilities): Use cap_free instead of
8608 free_caps. Cast away const from 4th cap_set_flag argument.
8609
4e87573f
UD
86102007-03-26 Ulrich Drepper <drepper@redhat.com>
8611
8612 * sysdeps/unix/sysv/linux/Versions: Move sync_file_range to
8613 GLIBC_2.6.
8614 * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
8615 Add sync_file_range.
8616 Reported by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
8617
fa6e3bc3
UD
86182007-03-19 Steven Munroe <sjmunroe@us.ibm.com>
8619
8620 * sysdeps/powerpc/bits/atomic.h
8621 [!MUTEX_HINT_ACQ]: Define MUTEX_HINT_ACQ.
8622 [!MUTEX_HINT_REL]: Define MUTEX_HINT_REL.
8623 (__arch_compare_and_exchange_val_32_acq): Add MUTEX_HINT_ACQ to lwarx.
8624 (__arch_compare_and_exchange_val_32_rel): Add MUTEX_HINT_REL to lwarx.
8625 (__arch_atomic_exchange_val_32_acq): Add MUTEX_HINT_ACQ to lwarx.
8626 (__arch_atomic_exchange_rel_32_rel): Add MUTEX_HINT_REL to lwarx.
8627 * sysdeps/powerpc/powerpc32/bits/atomic.h [_ARCH_PWR6 || _ARCH_PWR6X]:
8628 Define MUTEX_HINT_ACQ as ",1" and MUTEX_HINT_REL as ",0".
8629 (__arch_compare_and_exchange_bool_32_acq): Add MUTEX_HINT_ACQ to lwarx.
8630 (__arch_compare_and_exchange_bool_32_rel): Add MUTEX_HINT_REL to lwarx.
8631 * sysdeps/powerpc/powerpc64/bits/atomic.h [_ARCH_PWR6 || _ARCH_PWR6D]:
8632 Define MUTEX_HINT_ACQ as ",1" and MUTEX_HINT_REL as ",0".
8633 (__arch_compare_and_exchange_bool_32_acq): Add MUTEX_HINT_ACQ to lwarx.
8634 (__arch_compare_and_exchange_bool_32_rel): Add MUTEX_HINT_REL to lwarx.
8635 (__arch_compare_and_exchange_bool_64_acq): Add MUTEX_HINT_ACQ to lwarx.
8636 (__arch_compare_and_exchange_bool_64_rel): Add MUTEX_HINT_REL to lwarx.
8637 (__arch_compare_and_exchange_val_64_acq): Add MUTEX_HINT_ACQ to lwarx.
8638 (__arch_compare_and_exchange_val_64_rel): Add MUTEX_HINT_REL to lwarx.
8639 (__arch_atomic_exchange_val_64_acq): Add MUTEX_HINT_ACQ to lwarx.
8640 (__arch_atomic_exchange_rel_64_rel): Add MUTEX_HINT_REL to lwarx.
8641
86422007-03-20 Jakub Jelinek <jakub@redhat.com>
c7693af7
UD
8643
8644 * sysdeps/unix/sysv/linux/powerpc/libc-start.c
8645 (__cache_line_size): Define the variable here. Add
8646 attribute_hidden, remove weak_extern.
8647 (__libc_start_main): Set __cache_line_size
8648 unconditionally.
8649 * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
8650 (__cache_line_size): Define the variable here. Add
8651 attribute_hidden, remove weak_extern.
8652 (DL_PLATFORM_AUXV): Set __cache_line_size
8653 unconditionally.
8654 * sysdeps/powerpc/powerpc32/dl-machine.c (__cache_line_size): Remove
8655 weak_extern, add attribute_hidden.
8656 (__elf_machine_runtime_setup): Assume __cache_line_size is always
8657 defined in ld.so.
8658 * sysdeps/powerpc/powerpc32/memset.S (__cache_line_size): Remove
8659 definition.
8660 * sysdeps/powerpc/powerpc64/memset.S (__cache_line_size): Likewise.
8661
0479e581
JJ
86622007-03-26 Jakub Jelinek <jakub@redhat.com>
8663
8664 [BZ #4276]
8665 * timezone/africa: Update from tzdata2007d.
8666 * timezone/asia: Likewise.
8667 * timezone/australasia: Likewise.
8668 * timezone/backward: Likewise.
8669 * timezone/europe: Likewise.
8670 * timezone/iso3166.tab: Likewise.
8671 * timezone/leapseconds: Likewise.
8672 * timezone/northamerica: Likewise.
8673 * timezone/southamerica: Likewise.
8674 * timezone/zone.tab: Likewise.
8675
8676 * timezone/private.h: Update from tzcode2007d.
8677 * timezone/zdump.c: Likewise.
8678 * timezone/zic.c: Likewise.
8679
697d37b1
JJ
86802007-03-21 Jakub Jelinek <jakub@redhat.com>
8681
8682 * nis/nis_call.c: Include bits/libc-lock.h, sys/stat.h, unistd.h.
8683 (nis_server_cache, nis_server_cache_lock, nis_cold_start_mtime): New
8684 variables.
8685 (nis_server_cache_search, nis_server_cache_add): New functions.
8686 (__nisfind_server): Use them. Add dbp and flags argument, if
8687 call __nisbind_create.
8688 (__nisbind_create): Add server_used and current_ep arguments,
8689 only call __nis_findfastest if server_used is ~0.
8690 (__do_niscall2, __prepare_niscall): Adjust callers.
8691 (ckey_cache, ckey_cache_size, ckey_cache_allocated, ckey_cache_pid,
8692 ckey_cache_euid, ckey_cache_lock): New variables.
8693 (get_ckey): New function.
8694 (__nisbind_connect): If not dbp->use_udp, pass IPPROTO_TCP to
8695 __pmap_getnisport. Save __pmap_getnisport result in
8696 dbp->addr.sin_port if non-zero. Use get_ckey to create conversation
8697 key.
8698 * nis/nis_lookup.c (nis_lookup): Likewise.
8699 * nis/nis_table.c (nis_list): Likewise.
8700 * nis/rpcsvc/nislib.h (__nisbind_create, __nisfind_server): Adjust
8701 prototypes.
8702
8703 * nis/nss_nisplus/nisplus-pwd.c (_nss_nisplus_getpwnam_r,
8704 _nss_nisplus_getpwuid_r): Pass USE_DGRAM flag to nis_list.
8705 * nis/nss_nisplus/nisplus-service.c (_nss_nisplus_getservbyname_r,
8706 _nss_nisplus_getservbyport_r): Likewise.
8707 * nis/nss_nisplus/nisplus-network.c (_nss_nisplus_getnetbyname_r,
8708 _nss_nisplus_getnetbyaddr_r): Likewise.
8709 * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_getspnam_r): Likewise.
8710 * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_gethostton_r,
8711 _nss_nisplus_getntohost_r): Likewise.
8712 * nis/nss_nisplus/nisplus-rpc.c (_nss_nisplus_getrpcbyname_r,
8713 _nss_nisplus_getrpcbynumber_r): Likewise.
8714
06029c20
JJ
87152007-03-20 Jakub Jelinek <jakub@redhat.com>
8716
371f84a4
JJ
8717 * configure.in (libc_cv_gnu89_inline): Only do compile test.
8718 * configure: Rebuilt.
8719
06029c20
JJ
8720 * soft-fp/double.h (_FP_UNION_D): Use _FP_W_TYPE for frac
8721 bit-fields.
8722 * soft-fp/extended.h (_FP_UNION_E): Likewise.
8723
87242006-06-07 Joseph Myers <joseph@codesourcery.com>
8725
8726 [BZ #2831]
8727 * soft-fp/quad.h (_FP_UNION_Q): Use _FP_W_TYPE for frac
8728 bit-fields.
8729
addc8335
UD
87302007-03-18 Jakub Jelinek <jakub@redhat.com>
8731
8732 * nscd/gai.c: Include alloca.h.
8733 (__libc_use_alloca): Define.
8734
b037a293
UD
87352007-03-16 Jakub Jelinek <jakub@redhat.com>
8736
965cba04
UD
8737 * elf/dl-open.c (dl_open_worker): Declare l in 2 different
8738 smaller scopes.
8739 * elf/dl-dst.h (DL_DST_REQ_STATIC): Add l as macro argument.
8740 (DL_DST_REQUIRED): Adjust user.
8741
8742 * include/dlfcn.h (struct link_map): New forward decl.
8743
8744 * inet/getnameinfo.c: Include stddef.h.
8745 (getnameinfo): Use offsetof.
8746
8747 * time/tst-mktime2.c (do_test): Don't rely on signed wrap.
8748
8749 * stdio-common/vfprintf.c (_itoa): Undef before redefining.
8750
8751 * string/strerror_l.c: Include stdlib.h.
8752
b037a293
UD
8753 * configure.in (libc_cv_gnu89_inline): Test for -fgnu89-inline.
8754 * config.make.in (gnu89-inline-CFLAGS): New variable.
8755 * Makeconfig (CFLAGS): Use $(gnu89-inline-CFLAGS) together with
8756 -std=gnu99.
8757 * misc/sys/cdefs.h (__extern_inline, __extern_always_inline): Define.
8758 * argp/argp.h: Use it.
8759 * bits/mathinline.h: Likewise.
8760 * bits/sigset.h: Likewise.
8761 * bits/string.h: Likewise.
8762 * ctype/ctype.h: Likewise.
8763 * hurd/hurd.h: Likewise.
8764 * hurd/hurd/fd.h: Likewise.
8765 * hurd/hurd/port.h: Likewise.
8766 * hurd/hurd/signal.h: Likewise.
8767 * hurd/hurd/threadvar.h: Likewise.
8768 * hurd/hurd/userlink.h: Likewise.
8769 * io/sys/stat.h: Likewise.
8770 * libio/bits/stdio.h: Likewise.
8771 * libio/bits/stdio2.h: Likewise.
8772 * mach/lock-intern.h: Likewise.
8773 * mach/mach/mig_support.h: Likewise.
8774 * math/bits/cmathcalls.h: Likewise.
8775 * posix/bits/unistd.h: Likewise.
8776 * socket/bits/socket2.h: Likewise.
8777 * stdlib/bits/stdlib.h: Likewise.
8778 * stdlib/stdlib.h: Likewise.
8779 * string/argz.h: Likewise.
8780 * string/bits/string2.h: Likewise.
8781 * string/bits/string3.h: Likewise.
8782 * sysdeps/alpha/fpu/bits/mathinline.h: Likewise.
8783 * sysdeps/generic/inttypes.h: Likewise.
8784 * sysdeps/generic/machine-lock.h: Likewise.
8785 * sysdeps/generic/machine-sp.h: Likewise.
8786 * sysdeps/i386/fpu/bits/mathinline.h: Likewise.
8787 * sysdeps/i386/i486/bits/string.h: Likewise.
8788 * sysdeps/ia64/fpu/bits/mathinline.h: Likewise.
8789 * sysdeps/mach/alpha/machine-lock.h: Likewise.
8790 * sysdeps/mach/alpha/machine-sp.h: Likewise.
8791 * sysdeps/mach/i386/machine-lock.h: Likewise.
8792 * sysdeps/mach/powerpc/machine-lock.h: Likewise.
8793 * sysdeps/mach/powerpc/machine-sp.h: Likewise.
8794 * sysdeps/powerpc/fpu/bits/mathinline.h: Likewise.
8795 * sysdeps/s390/bits/string.h: Likewise.
8796 * sysdeps/s390/fpu/bits/mathinline.h: Likewise.
8797 * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
8798 * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Likewise.
8799 * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
8800 * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
8801 * sysdeps/unix/sysv/linux/sys/sysmacros.h: Likewise.
8802 * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
8803 * wcsmbs/bits/wchar2.h: Likewise.
8804 * wcsmbs/wchar.h: Likewise.
8805 * stdlib/gmp.h: Likewise. Include <features.h> to get
8806 __extern_inline definition.
8807
6b2665f5
UD
88082007-03-15 Jakub Jelinek <jakub@redhat.com>
8809
b037a293
UD
8810 * locale/programs/ld-ctype.c (find_translit): Return NULL if ctype is
8811 NULL.
8812
6b2665f5
UD
8813 [BZ #3919]
8814 * math/libm-test.inc (log_test): Test -Inf and NaN.
8815 (log10_test, log1p_test, log2_test): Test -Inf.
8816 * sysdeps/i386/fpu/e_log.S (__ieee754_log): Don't raise
8817 FE_INVALID when argument is qNaN.
8818 * sysdeps/i386/fpu/e_logl.S (__ieee754_logl): Likewise.
8819 * sysdeps/i386/fpu/e_logf.S (__ieee754_logf): Likewise.
8820 * sysdeps/x86_64/fpu/e_logl.S (__ieee754_logl): Likewise.
8821 * sysdeps/x86_64/fpu/e_log10l.S (__ieee754_log10l): Replace
8822 andb $1, %ah with testb $1, %ah, don't test for parity, instead
8823 testb $4, %ah and jump if non-zero.
8824 * sysdeps/x86_64/fpu/e_log2l.S (__ieee754_log2l): Likewise.
8825 * sysdeps/x86_64/fpu/s_log1pl.S (__log1pl): Likewise.
8826
44969f17
UD
8827 [BZ #4101]
8828 * argp/argp-help.c (hol_cluster_cmp): Fix comparisons used to find
8829 ancestors with the same depths.
8830 Patch by Niels Moeller <nisse@lysator.liu.se>.
8831 (filter_doc): Don't crash if argp is NULL.
8832 * argp/Makefile (tests): Add tst-argp2.
8833 * argp/tst-argp2.c: New test.
8834
05eb8975
UD
8835 [BZ #4130]
8836 * login/utmp_file.c (setutent_file): Use O_LARGEFILE for
8837 open_not_cancel_2.
8838 (updwtmp_file): Likewise.
8839
6cb988fa
UD
8840 [BZ #4181]
8841 * inet/inet6_opt.c (add_padding): Only insert padding if npad > 0.
8842 (inet6_opt_append): Don't check extlen is big enough if extbuf
8843 is NULL.
8844 (inet6_opt_finish): Likewise.
8845 * inet/Makefile (tests): Add test-inet6_opt.
8846 * inet/test-inet6_opt.c: New test.
8847
8848 * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Never
8849 reallocate the buffer, instead fail for MSG_TRUNC or for EBUSY
8850 NLMSG_ERR. Instead use a page sized buffer.
8851 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Use page sized
8852 buffer.
8853
aea1d19e
RH
88542007-03-14 Richard Henderson <rth@redhat.com>
8855
b6df547c
RH
8856 * sysdeps/alpha/fpu/s_llround.c: New file.
8857 * sysdeps/alpha/fpu/s_llroundf.c: New file.
8858 * sysdeps/alpha/fpu/s_lround.c: New file.
8859 * sysdeps/alpha/fpu/s_lroundf.c: New file.
8860 * sysdeps/alpha/fpu/s_round.c: New file.
8861 * sysdeps/alpha/fpu/s_roundf.c: New file.
8862 * sysdeps/alpha/fpu/s_trunc.c: New file.
8863 * sysdeps/alpha/fpu/s_truncf.c: New file.
8864
aea1d19e
RH
8865 * sysdeps/alpha/fpu/s_ceil.c: Rewrite without branches.
8866 * sysdeps/alpha/fpu/s_ceilf.c: Likewise.
8867 * sysdeps/alpha/fpu/s_floor.c: Likewise.
8868 * sysdeps/alpha/fpu/s_floorf.c: Likewise.
8869 * sysdeps/alpha/fpu/s_rint.c: Likewise.
8870 * sysdeps/alpha/fpu/s_rintf.c: Likewise.
8871
8872 * sysdeps/alpha/fpu/s_fmax.S: New file.
8873 * sysdeps/alpha/fpu/s_fmaxf.S: New file.
8874 * sysdeps/alpha/fpu/s_fmin.S: New file.
8875 * sysdeps/alpha/fpu/s_fminf.S: New file.
8876 * sysdeps/alpha/fpu/s_isnan.c: New file.
8877 * sysdeps/alpha/fpu/s_isnanf.c: New file.
8878 * sysdeps/alpha/fpu/s_llrint.c: New file.
8879 * sysdeps/alpha/fpu/s_llrintf.c: New file.
8880 * sysdeps/alpha/fpu/s_lrint.c: New file.
8881 * sysdeps/alpha/fpu/s_lrintf.c: New file.
8882 * sysdeps/alpha/fpu/s_nearbyint.c: New file.
8883 * sysdeps/alpha/fpu/s_nearbyintf.c: New file.
8884
8885 * sysdeps/alpha/fpu/bits/mathinline.h (__floorf, __floor): Remove.
8886 (__fdimf, fdimf, __fdim, fdim): Remove.
8887 (__signbitf, __signbit, __signbitl): Use gcc builtin if available.
8888 (__isnanf, __isnan, __isnanl): New.
8889
9e43b50d
RH
88902007-03-13 Richard Henderson <rth@redhat.com>
8891
8892 * sysdeps/ieee754/ldbl-128/Makefile: New file.
8893
62789da3
RH
88942007-03-13 Richard Henderson <rth@redhat.com>
8895
8896 * sysdeps/alpha/Makefile (sysdep-CFLAGS): Force dynamic rounding.
8897 * sysdeps/alpha/fpu/bits/mathinline.h (__signbitl): New.
8898 * sysdeps/alpha/fpu/libm-test-ulps: Regenerate.
8899 * sysdeps/unix/sysv/linux/alpha/alphaev6/fpu/Implies: New file.
8900 * sysdeps/unix/sysv/linux/alpha/alphaev67/fpu/Implies: New file.
8901 * sysdeps/unix/sysv/linux/alpha/fpu/Implies: New file.
8902
47dbe62b
RH
89032007-03-13 Richard Henderson <rth@redhat.com>
8904
37f40235 8905 * elf/dl-support.c (_dl_aux_init): Honor DL_PLATFORM_AUXV.
47dbe62b
RH
8906 * sysdeps/unix/sysv/linux/alpha/dl-auxv.h: New file.
8907 * sysdeps/unix/sysv/linux/alpha/dl-support.c: New file.
8908 * sysdeps/unix/sysv/linux/alpha/dl-sysdep.c (__libc_alpha_cache_shape):
8909 Move to dl-auxv.h; initialize instead of extern weak.
8910 (DL_PLATFORM_AUXV): Move to dl-auxv.h; don't test for undef
8911 weak symbol.
8912 * sysdeps/unix/sysv/linux/alpha/sysconf.c (__libc_alpha_cache_shape):
8913 Extern instead of initialized.
8914
b8097bed
RH
89152007-03-13 Richard Henderson <rth@redhat.com>
8916
8917 * sysdeps/unix/sysv/linux/alpha/sigsuspend.S: Add support for
8918 __sigsuspend_nocancel.
8919
6bf4a686
UD
89202007-03-06 Ulrich Drepper <drepper@redhat.com>
8921
8922 * sysdeps/posix/getaddrinfo.c (get_scope): Correct test for
8923 172.16/12 address range.
8924
0b3b1a0c
UD
89252007-03-02 Jakub Jelinek <jakub@redhat.com>
8926
8927 * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Retry with
8928 a new netlink socket if NLMSG_ERR -EBUSY is seen after some MSG_TRUNC
8929 message.
8930
8f3edfee
UD
89312007-03-01 Jakub Jelinek <jakub@redhat.com>
8932
c1c5e654 8933 [BZ #4069]
8f3edfee
UD
8934 * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Check for NaN
8935 earlier.
8936 * math/libm-test.inc (pow_test): Add more tests involving NaNs.
8937
8938 * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Avoid invalid exception
8939 for x qNaN and y either +-inf or non-integer value.
8940 * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Likewise.
8941 * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.
8942 * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
8943
245a1481
UD
89442007-02-10 Mike Frysinger <vapier@gentoo.org>
8945
8946 * sysdeps/unix/sysv/linux/sh/Makefile: Remove sys/io.h
8947 from sysdep_headers.
8948
c217692b
UD
89492007-02-28 Jakub Jelinek <jakub@redhat.com>
8950
8951 * time/tzfile.c (find_transition): Instead of a linear search try to
8952 guess the transition index, use a linear search if the result is at
8953 most 10 transitions away from the guess or binary search otherwise.
8954
fe64626c
JJ
89552007-02-27 Jakub Jelinek <jakub@redhat.com>
8956
8957 * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Fix
8958 memory reallocation.
8959
0f7769f7
UD
89602007-02-21 Ulrich Drepper <drepper@redhat.com>
8961
621c133d
UD
8962 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Add branch predictions
8963 and fix some typos.
8964 Optimize use of TOLOWER.
9cf147d8 8965
cdfd61e1
UD
8966 [BZ #3325]
8967 * sysdeps/i386/fpu/e_fmodf.S: Revert last changes, keep using fprem.
8968 * sysdeps/i386/fpu/e_fmodl.c: Likewise.
8969 * sysdeps/i386/fpu/e_fmod.S: Likewise.
8970
8889e7aa
UD
8971 [BZ #3458]
8972 * sysdeps/unix/sysv/linux/posix_madvise.c: New file.
8973 * sysdeps/unix/sysv/linux/syscalls.list: Remove posix_madvise entry.
8974
63a2f305
UD
8975 [BZ #4076]
8976 * io/ftw.c (ftw_startup): Handle special case of FTW_CHDIR in /.
8977 (open_dir_stream): Likewise.
8978 * io/Makefile (tests): Add bug-ftw5.
c536b9b8 8979 * io/bug-ftw5.c: New file.
63a2f305 8980
c8703f88
UD
8981 * nscd/hstcache.c (cache_addhst): Remove unnecessary conditional.
8982 * nscd/servicescache.c (cache_addserv): Likewise.
8983
8984 * nscd/grpcache.c (cache_addgr): In case a record changed on
8985 refresh, adjust key_copy.
8986
61705e06
UD
8987 [BZ #4074]
8988 * nscd/pwdcache.c (cache_addpw): In case a record changed on
8989 refresh, adjust key_copy.
8990
0f7769f7
UD
8991 [BZ #4070]
8992 * stdio-common/printf_fp.c (___printf_fp): Handle a few more
0f7769f7 8993 special cases.
8889e7aa 8994 * stdio-common/tfformat.c (sprint_doubles): Some more tests.
0f7769f7 8995
3979024a
UD
89962007-02-19 Ulrich Drepper <drepper@redhat.com>
8997
4c02bf1a
UD
8998 * stdio-common/printf_fp.c (___printf_fp): Cleanups and minor
8999 optimization.
9000
3979024a
UD
9001 * stdio-common/vfscanf.c: Small cleanups throughout.
9002
821d3e70
UD
90032007-02-18 Ulrich Drepper <drepper@redhat.com>
9004
2484468b
UD
9005 [BZ #3325]
9006 * sysdeps/i386/fpu/e_fmodf.S: Use fprem1 instead of fprem.
9007 * sysdeps/i386/fpu/e_fmodl.c: Likewise.
9008 * sysdeps/i386/fpu/e_fmod.S: Likewise.
9009 Patch by Jared Casper <jaredcasper@gmail.com>.
9010
858ee15d
UD
9011 * sysdeps/unix/closedir.c: Outside libc don't use locking.
9012 * sysdeps/unix/opendir.c: Likewise.
9013 * sysdeps/unix/readdir.c: Likewise.
9014
ecb72bd5
UD
9015 [BZ #2211]
9016 * stdio-common/vfscanf.c: Handle localized digits etc for floating
9017 point numbers.
9018 Patch mostly by Hamed Malek <hamed@farsiweb.info>.
9019
ac2ca022
UD
9020 * stdio-common/vfscanf.c: Fix problems in width accounting.
9021 * stdio-common/tst-sscanf.c (double_tests): New tests.
9022 (main): Hook them up.
9023
e9bb5246 9024 * stdio-common/vfscanf.c: Remove unused WIDTH handling.
da50f001 9025 More simplifications of floating-point reader.
e9bb5246 9026
821d3e70
UD
9027 * stdio-common/Makefile (tests): Add tst-swscanf.
9028 * stdio-common/tst-sscanf.c: Make tests usable for swscanf
9029 testing.
9030 * stdio-common/tst-swscanf.c: New file.
9031
07fb5185
UD
90322007-02-17 Ulrich Drepper <drepper@redhat.com>
9033
9138cc0b
UD
9034 [BZ #2633]
9035 * libio/stdio.h: Define struct _IO_FILE in global namespace.
9036 * setjmp/setjmp.h: Define __jmp_buf_tag in global namespace.
9037 Remove using for __jmp_buf_tag.
9038 * locale/locale.h (struct lconv): Also define in std namespace.
9039 * wcsmbs/wchar.h: Move using declaration for tm out of namespace.
9040
6818d837
UD
9041 [BZ #3842]
9042 * sysdeps/posix/euidaccess.c [_LIBC] (euidaccess): Remove shortcut
9043 using __libc_enable_secure.
9044
15c4b5a4
UD
9045 [BZ #3818]
9046 * sysdeps/unix/sysv/linux/sys/acct.h (struct acct_v3): Define.
9047
5e9e9c14
UD
9048 [BZ #3745]
9049 * locale/programs/ld-collate.c (handle_ellipsis): Fix generation
9050 of names for ellipsises.
9051
07fb5185
UD
9052 [BZ #3348]
9053 * malloc/memusage.sh: Cleanups.
9054 * debug/xtrace.sh: Quoting and trap changes.
9055
8c6d1043
UD
90562007-02-16 Ulrich Drepper <drepper@redhat.com>
9057
07fb5185
UD
9058 * locale/iso-3166.def: Add Jersey, Guernsey, and Isle Of Man entries.
9059
93e66914 9060 * locale/iso-3166.def: Update entry for Serbia.
93e36434
UD
9061 * locale/iso-4217.def: Define RSD, remove CSD.
9062
ad0b348c
UD
9063 * sysdeps/x86_64/bits/atomic.h: One more change, this time for 16-
9064 and 64-bit operations.
9065
9066 [BZ #4040]
9067 * sysdeps/i386/i486/bits/atomic.h: One more change, this time for
9068 16-bit operations.
9069
8c6d1043
UD
9070 * nscd/nscd.c (parse_opt): One more conversion to use send instead
9071 of writev.
9072
987f54c6
UD
90732007-02-15 Ulrich Drepper <drepper@redhat.com>
9074
b3715c05
UD
9075 [BZ #3991]
9076 * assert/assert.h (assert): Simplify.
9077 (assert_perror): Likewise.
9078 Patch by Israel G. Lugo <ilugo@bridonsecurity.com>.
9079
6eea8e0d
UD
9080 * nscd/nscd_helper.c (open_socket): Don't send padding bytes from
9081 reqdata.
9082
987f54c6
UD
9083 * sysdeps/unix/sysv/linux/x86_64/send.c (__libc_send): Cosmetic
9084 change: don't pass NULL in place of an integer.
9085
3dc08a7e
UD
90862007-02-02 Bruno Haible <bruno@clisp.org>
9087
06c17c78
UD
9088 [BZ #3954]
9089 * iconvdata/ksc5601.c (__ksc5601_sym_to_ucs, __ksc5601_sym_from_ucs):
9090 Add mapping for U+327E.
9091 * iconvdata/ksc5601.h (KSC5601_SYMBOL): Increment.
9092 * iconvdata/johab.c (BODY for FROM_LOOP, BODY for TO_LOOP): Enable
9093 mapping of 0xD9 0xE8.
9094 * iconvdata/uhc.c (BODY for FROM_LOOP, BODY for TO_LOOP): Disable
9095 mapping of U+327E.
9096 Reported by Jungshik Shin <jungshik@google.com>.
9097
9098 [BZ #3955]
3dc08a7e
UD
9099 * iconvdata/johab.c (BODY for FROM_LOOP, BODY for TO_LOOP): Enable
9100 mapping of 0xD9 0xE6 and of 0xD9 0xE7.
9101 Reported by Jungshik Shin <jungshik@google.com>.
9102
a810e68c
UD
91032007-02-14 Ulrich Drepper <drepper@redhat.com>
9104
9105 * sysdeps/x86_64/bits/atomic;h: Fix asm parameters for some
9106 byte variants.
9107
9108 [BZ #4040]
9109 * sysdeps/i386/i486/bits/atomic.h: Fix asm parameters for some
9110 byte variants. Patch mostly be tom@tommay.net.
9111
05f135ba
UD
91122007-02-14 Jakub Jelinek <jakub@redhat.com>
9113
9114 [BZ #3996]
9115 * posix/glob.c (attribute_hidden): Define if not defined.
9116 (glob): Unescape dirname, filename or username when needed and not
9117 GLOB_NOESCAPE. Handle \/ correctly. Handle GLOB_MARK if filename
9118 is NULL. Handle unescaped [ in pattern without closing ].
9119 Don't pass GLOB_CHECK down to recursive glob for directories.
9120 (__glob_pattern_type): New function.
9121 (__glob_pattern_p): Implement using __glob_pattern_type.
9122 (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
9123 characters and backslashes if not GLOB_NOESCAPE or unterminated [.
9124 Remove unreachable code.
9125 * posix/globtest.sh: Add a couple of new tests.
9126
2f699967
UD
91272007-02-13 Ulrich Drepper <drepper@redhat.com>
9128
9129 * po/ru.po: Update from translation team.
9130
3a7cd5b4
JJ
91312007-02-12 Jakub Jelinek <jakub@redhat.com>
9132
9133 * sysdeps/i386/bits/byteswap.h (__bswap_32): Add __amdfam10__
9134 to the list of i486+ CPUs.
9135 * sysdeps/x86_64/bits/byteswap.h (__bswap_32): Likewise.
9136
2f978feb
UD
91372007-02-12 Ulrich Drepper <drepper@redhat.com>
9138
9139 * elf/rtld.c (RESOLVE_MAP): Always return bootstrap_map reference.
9140 * elf/Makefile ($(objpfx)ld.so): Check that ld.so has no undefined
9141 references.
9142
2bbb7d5b
UD
91432007-02-09 Ulrich Drepper <drepper@redhat.com>
9144
5ed61e0f
UD
9145 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Remove incorrect comment.
9146
2bbb7d5b
UD
9147 * resolv/res_init.c (res_setoptions): Recognize edns0 option.
9148 * resolv/res_mkquery.c: Define __res_nopt.
9149 * resolv/res_query.c (__libc_res_nquery): If RES_USE_EDNS0 is set
9150 try adding EDNS0 record.
9151 * resolv/res_send.c (send_dg): If request failed with FORMERR and
9152 EDNS0 record was send make sure we don't try it again.
9153 * resolv/resolv.h: Define RES_F_EDNS0ERR and RES_USE_EDNS0.
9154 * include/resolv.h: Declare __res_nopt.
9155
00458b5b
UD
91562007-02-08 Jakub Jelinek <jakub@redhat.com>
9157
9158 [BZ #3944]
9159 * time/strptime_l.c (__strptime_internal): Set have_mon for
9160 %b/%B/%h. Set have_mon and have_mday if tm_mon and tm_mday
9161 have been computed from tm_yday and tm_year. Don't crash
9162 in day_of_the_week or day_of_the_year if not have_mon
9163 and tm_mon contains bogus value.
9164 * time/Makefile (tests): Add tst-strptime3.
9165 * time/tst-strptime3.c: New test.
9166
784aacea
UD
91672007-02-05 Jakub Jelinek <jakub@redhat.com>
9168
9169 [BZ #3957]
9170 * posix/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
9171 bit for RE_HAT_LISTS_NOT_NEWLINE.
9172 (build_charclass_op): Remove bogus comment.
9173 * posix/Makefile (tests): Add bug-regex27 and bug-regex28.
9174 * posix/bug-regex27.c: New test.
9175 * posix/bug-regex28.c: New test.
9176
bf7a2463
UD
91772007-02-03 Ulrich Drepper <drepper@redhat.com>
9178
9179 * po/sv.po: Update from translation team.
9180
f2ccf983
UD
91812007-02-02 Ulrich Drepper <drepper@redhat.com>
9182
9183 * nscd/nscd_helper.c (open_socket): Minor size optimization.
9184
73f50d5a
UD
91852007-02-02 Jakub Jelinek <jakub@redhat.com>
9186
9187 * include/locale.h (__uselocale): Add libc_hidden_proto.
9188 * locale/uselocale.c (__uselocale): Add libc_hidden_def.
9189
f6bf9e59
JJ
9190 * nscd/nscd_helper.c (open_socket): Use __gettimeofday instead of
9191 gettimeofday.
9192
4a44ce79
UD
91932007-02-01 Ulrich Drepper <drepper@redhat.com>
9194
9195 * sysdeps/unix/sysv/linux/i386/sysdep.h (PTR_MANGLE): Roll value before
9196 returning.
9197 (PTR_DEMANGLE): Real definition now that it's not the same as
9198 PRT_MANGLE anymore.
9199 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
9200
9201 * string/strerror_l.c: New file.
9202 * string/Makefile (routines): Add strerror_l.
9203 * string/string.h: Declare strerror_l.
9204 * string/Versions: Export strerror_l for GLIBC_2.6.
9205
58a2d52e
UD
92062007-01-31 Ulrich Drepper <drepper@redhat.com>
9207
9208 * nscd/nscd_helper.c (open_socket): Now takes request type and key
9209 as parameter. Construct request record. Try sending request
9210 before the first poll use, it usually succeeds. Adjust all
9211 callers.
9212 * nscd/nscd-client.h: Define MAXKEYLEN.
4a44ce79 9213 * nscd/connections.c (nscd_run): Don't define MAXKEYLEN here.
58a2d52e 9214
1a77d37f
JJ
92152007-01-31 Jakub Jelinek <jakub@redhat.com>
9216
9217 * nscd/nscd-client.h (__nscd_cache_search): Remove const qualifier
9218 from return value.
9219 * nscd/nscd_helper.c: Include string.h.
9220 (__nscd_cache_search): Remove const qualifier from return value.
9221 On strict alignment architectures check hash entry and data head
9222 alignment.
9223 * nscd/nscd_getpw_r.c (nscd_getpw_r): Don't crash or fail because
9224 mmapped data during GC cycle contains garbage. If
9225 __nscd_drop_map_ref fails, decrement mapped->counter when returning
9226 error or if retrying with NO_MAPPING, only __nscd_unmap if counter
9227 dropped to 0.
9228 * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
9229 * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
9230 * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
9231 * nscd/nscd_getai.c (__nscd_getai): Likewise.
9232 * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
9233
ee314200
UD
92342007-01-30 Ulrich Drepper <drepper@redhat.com>
9235
9236 * misc/hsearch_r.c (hdestroy_r): Remove unnecessary test.
9237
14c8bf3b
UD
92382007-01-26 Ulrich Drepper <drepper@redhat.com>
9239
9240 * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Use register
9241 names not numbers in cfi_*.
9242
d2708e67
AJ
92432007-01-26 Andreas Jaeger <aj@suse.de>
9244
9245 * sysdeps/unix/sysv/linux/sys/personality.h (ADDR_NO_RANDOMIZE,
14c8bf3b 9246 ADDR_LIMIT_3GB, PER_LINUX_32BIT, PER_LINUX32_3GB): Add.
d2708e67
AJ
9247 Correct values of PER_HPUX and PER_OSF4.
9248
7fbc8784
UD
92492007-01-24 Ulrich Drepper <drepper@redhat.com>
9250
8aaf53ee 9251 * elf/dl-minimal.c: Undefine _itoa first.
7fbc8784
UD
9252 * stdio-common/_itoa.h: Define _itoa and _fitoa for 64-bit platforms.
9253 * malloc/mtrace.c: Revert last change.
9254 * posix/wordexp.c: Likewise.
9255
9d6cde3d
UD
92562007-01-24 Jakub Jelinek <jakub@redhat.com>
9257
9258 * sysdeps/i386/bits/byteswap.h (__bswap_32): Add __nocona__, __core2__
9259 and __geode__ to the list of i486+ CPUs.
9260 * sysdeps/x86_64/bits/byteswap.h (__bswap_32): Likewise.
9261
c1f0486a
UD
92622007-01-23 Ulrich Drepper <drepper@redhat.com>
9263
9264 * stdio-common/_itoa.c: Include <limits.h>.
9265 * stdio-common/_itowa.c: Likewise.
9266
6cae3957
UD
92672007-01-22 Ulrich Drepper <drepper@redhat.com>
9268
765bbb24
UD
9269 * stdio-common/_itowa.c: Don't compile _itowa for 64-bit
9270 platforms.
9271 * stdio-common/_itoa.c: Don't compile in _itoa and _fitoa for
9272 64-bit platforms.
9273 * malloc/mtrace.c (tr_where): Use _fitoa_word instead of _fitoa if
9274 possible.
9275 * posix/wordexp.c (parse_arith): Use _itoa_word instead of _itoa
9276 if possible.
9277
6cae3957
UD
9278 [BZ #3902]
9279 * stdio-common/_itoa.c (_itoa): Make sure at least a zero is emitted.
9280 * stdio-common/Makefile (tests): Add bug17.
9281 * stdio-common/bug17.c: New file.
9282
ddaafd04
UD
92832007-01-19 Ulrich Drepper <drepper@redhat.com>
9284
9285 * iconvdata/brf.c: New file.
439201de
UD
9286 * iconvdata/testdata/BRF: New file.
9287 * iconvdata/testdata/BRF..UTF8: New file.
9288 Contributed by Samuel Thibault <samuel.thibault@ens-lyon.org>.
ddaafd04
UD
9289 * iconvdata/Makefile: Add rules to build BRF.
9290 * iconvdata/TESTS: Add BRF entry.
9291 * iconvdata/gconv-modules: Likewise.
9292 * iconvdata/tst-tables.sh: Likewise.
ddaafd04 9293
9e6e344e
UD
92942007-01-18 Anton Nikishaev <anton.nik@gmail.com>
9295
9296 * wcsmbs/wchar.h (wcstoll): Fix comment, function returns value of
9297 type `long long int', not `long int'.
9298 (wcstoq): Likewise.
9299
299f7b0f
UD
93002007-01-18 Ulrich Drepper <drepper@redhat.com>
9301
9302 * scripts/gen-as-const.awk: Add cast to long to avoid int promotion
9303 of values on 64-bit platforms which are too large.
9304
cd8127cc
JJ
93052007-01-12 Steven Munroe <sjmunroe@us.ibm.com>
9306 Joe Kerian <jkerian@us.us.ibm.com>
9307
9308 [BZ #2749]
9309 * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Include
9310 <math_ldbl_opt.h>. Remove weak_alias. Use long_double_symbol macro.
9311 (__copysignl): Use signbit() for comparison.
9312 * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Correct parms for
9313 SET_LDOUBLE_WORDS64.
9314
9315 [BZ #2423, #2749]
9316 * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Don't include <fenv_libc.h>.
9317 (__ceill): Remove calls to fegetround(), fesetround().
9318 * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
9319 * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
9320 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
9321
b3acfdf7
JJ
93222007-01-17 Jakub Jelinek <jakub@redhat.com>
9323
4a2e03c6
JJ
9324 * nscd/nscd_getserv_r.c (nscd_getserv_r): Fix pastos.
9325
b3acfdf7
JJ
9326 * sysdeps/unix/sysv/linux/getdents.c (offsetof): Remove.
9327
1476bce6
UD
93282007-01-17 Ulrich Drepper <drepper@redhat.com>
9329
9330 * sysdeps/unix/sysv/linux/fatal-prepare.h: Use PTHFCT_CALL to
9331 demangle pointer.
9332 * csu/libc-start.c: Likewise.
9333
d78bce1c
UD
93342007-01-16 Ulrich Drepper <drepper@redhat.com>
9335
9336 * sysdeps/posix/system.c: Remove NO_WAITPID support, it cannot
9337 really work anyway.
9338
1bd79025
UD
93392007-01-15 Ulrich Drepper <drepper@redhat.com>
9340
000b027e
UD
9341 * nscd/connections.c (servinfo): Renamed to reqinfo. Change all
9342 users.
9343 (handle_request): Remove unnecessary tests.
9344
1bd79025
UD
9345 * nscd/cache.c (cache_add): Record the failure to add to the cache.
9346
d68f5d2c
JJ
93472007-01-15 Jakub Jelinek <jakub@redhat.com>
9348
9349 * soft-fp/op-common.h (FP_TRUNC): When truncating a NaN, clear
9350 workbits in semi-raw fraction.
9351
9352 * math/test-misc.c: Add new tests.
9353
93542007-01-14 Steven Munroe <sjmunroe@us.ibm.com>
9355
9356 * math/basic-test.c: Include test-skeleton.c.
9357 (TEST_TRUNC): Define.
9358 (truncdfsf_test, trunctfsf_test, trunctfdf_test): New.
9359 (main): Rename to ...
9360 (do_test): ...this. Run new tests.
9361 (TEST_FUNCTION): Define.
9362
93632006-10-05 Steven Munroe <sjmunroe@us.ibm.com>
9364 Joe Kerian <jkerian@us.us.ibm.com>
9365
9366 [BZ #2749]
9367 * soft-fp/op-4.h (__FP_FRAC_SUB_3, __FP_FRAC_SUB_4): Correct borrow
9368 handling for high words.
9369 * soft-fp/op-common.h (_FP_OVERFLOW_SEMIRAW): Always set inexact
9370 and overflow for infinity.
9371
4e35ef2c
UD
93722007-01-15 Ulrich Drepper <drepper@redhat.com>
9373
2a1dea97
UD
9374 * nscd/connections.c (handle_request): Add a __builtin_expect.
9375
9691d83c
UD
9376 * nscd/connections.c (serv2db): Change type into structure which
9377 also says whether this is a request for data. Renamed to
9378 servinfo. All users changed.
9379 (handle_request): Much simpler test whether we should search the cache.
9380
49ee6d79
UD
9381 * nscd/connections.c (handle_request): Fix thinko in selinux test
9382 invocation.
9383
4e35ef2c
UD
9384 * sysdeps/generic/ldsodefs.h: Define DL_LOOKUP_SCOPE_LOCK.
9385 * elf/dl-lookup.c (add_dependency): If scope map is locked, unlock
9386 it before getting dl_load_lock and then relock.
9387 (_dl_lookup_symbol_x): Pass flags to add_dependency.
9388 When rerunning _dl_lookup_symbol_x, compute symbol_scope again in
9389 case we unlocked the scope.
9390 * elf/dl-runtime.c (_dl_fixup): Pass DL_LOOKUP_SCOPE_LOCK to
9391 _dl_lookup_symbol_x in case we locked the scope.
9392 (_dl_profile_fixup): Likewise.
9393 * elf/dl-sym.c (do_sym): In flags passed to call_dl_lookup, also
9394 set DL_LOOKUP_SCOPE_LOCK.
9395
23691ab2
UD
93962007-01-13 Ulrich Drepper <drepper@redhat.com>
9397
fb453d08
UD
9398 * inet/Makefile: Define CFLAGS-getsrvbynm_r.c and
9399 CFLAGS-getsrvbynpt_r.c.
9400 * nscd/getsrvbynm_r.c: New file.
9401 * nscd/getsrvbypt_r.c: New file.
9402 * nscd/nscd_getserv_r.c: New file.
9403 * nscd/servicescache.c: New file.
9404 * nscd/Makefile (routines): Add nscd_getserv_r.
9405 (nscd-modules): Add getsrvbynm_r, getsrvbypt_r, and servicescache.
9406 Define CFLAGS-servicescache.c, CFLAGS-getsrvbynm_r.c, and
9407 CFLAGS-getsrvbypt_r.c.
9408 * nscd/cache.c (prune_cache): Rewrite to get re-add function from
9409 table. Add entries for services database.
9410 * nscd/connections.c (serv2str): Mark as const. Add entries for
9411 services database.
9412 (dbs): Add .reset_res and servdb initialization.
9413 (serv2db): Add entries for services database.
9414 (verify_persistent_db): Accept dbnr == servdb.
9415 (invalidate_cache): Rewrite database name recognition to use a table.
9416 Call res_init() if .reset_res is set for database.
9417 (handle_request): Add code to handle services database.
9418 * nscd/gai.c: Don't define __getservbyname_r.
9419 * nscd/nscd-client.h (request_type): Remove LASTDBREQ, add
9420 GETSERVBYNAME, GETSERVBYPORT, GETFDSERV.
9421 (serv_response_header): Define.
9422 (struct datahead): Add serv_response_header member.
9423 * nscd/nscd.c (parse_opt): Rewrite parsing of -i parameter value
9424 using table.
9425 * nscd/nscd.conf: Add entries for services database.
9426 * nscd/nscd.h: Adjust declaration of dbnames and serv2str.
9427 Declare serv_iov_disabled.
9428 Declare addservbyname, readdservbyname, addservbyport, and
9429 readdservbyport.
9430 * nscd/nscd_conf.c (dbnames): Mark as const. Add services entry.
9431 (find_db): Fix error message.
9432 * nscd/nscd_proto.h: Declare __nss_not_use_nscd_services,
9433 __nscd_getservbyname_r, and __nscd_getservbyport_r.
9434 * nscd/selinux.c (perms): Add entries for services database.
9435 * nss/Versions: Export __nss_services_lookup with GLIBC_PRIVATE.
9436 * nss/nsswitch.c (__nss_disable_nscd): Also disable services database.
9437
9438 * nscd/grpcache.c: Remove obsolete code. Cleanups.
9439 * nscd/hstcache.c: Likewise.
9440 * nscd/pwdcache.c: Likewise.
9441
b21fa963
UD
9442 * nis/nss_nis/nis-service.c (_nss_nis_getservbyname_r): Correct
9443 computation of keylen.
9444
23691ab2
UD
9445 * include/string.h: Only redefine strndupa if this is really for
9446 libc code.
9447
8980796b
UD
94482007-01-12 Ulrich Drepper <drepper@redhat.com>
9449
4a4a65f2
UD
9450 * nscd/nscd_gethst_r.c: Minor cleanups.
9451
43397eaf
UD
9452 * nscd/connections.c (handle_request): Check selinux permissions
9453 for all non-admin commands.
9454
038a1a9f
UD
9455 * sysdeps/i386/i486/bits/atomic.h: Define
9456 atomic_compare_and_exchange_val_acq,
9457 atomic_compare_and_exchange_bool_acq, and atomic_exchange_and_add
9458 using __sync_* built-ins for gcc >= 4.1.
9459 * sysdeps/x86_64/bits/atomic.h: Likewise.
9460
8980796b
UD
9461 [BZ #3840]
9462 * scripts/check-local-headers.sh: Restrict to testing .o.d, .os.d,
9463 and .oS.d files.
9464
32c075e1
JJ
94652007-01-05 Steven Munroe <sjmunroe@us.ibm.com>
9466
9467 * stdlib/tst-makecontext.c: Include errno.h. Change main()
9468 to do_test(). Define TEST_FUNCTION. Include test-skeleton.c.
9469 (do_test): Check errno and exit(0) if ENOSYS.
9470
94712007-01-11 Jakub Jelinek <jakub@redhat.com>
9472
9473 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix handling of multi-byte
9474 thousands separators.
9475 * stdlib/Makefile: Add rules to build and run tst-strtod4.
9476 * stdlib/tst-strtod4.c: New test.
9477
9478 [BZ #3855]
9479 * stdlib/strtod_l.c (____STRTOF_INTERNAL): 0x. not followed by
9480 hexadecimal digit should accept just the initial 0.
9481 * stdlib/tst-strtod2.c (tests): New variable.
9482 (do_test): Run several tests rather than just one.
9483
11bf311e 94842007-01-11 Jakub Jelinek <jakub@redhat.com>
df859a0c 9485
11bf311e
UD
9486 * sysdeps/i386/soft-fp/sfp-machine.h: Remove.
9487 * sysdeps/x86_64/soft-fp/sfp-machine.h: Likewise.
df859a0c 9488
11bf311e 94892007-01-10 Ulrich Drepper <drepper@redhat.com>
32c075e1 9490
11bf311e
UD
9491 * io/fts.c: Make sure fts_cur is always valid after return from
9492 fts_read.
9493 Patch by Miloslav Trmac <mitr@redhat.com>.
64a0aa0f 9494
11bf311e 94952006-10-27 Richard Sandiford <richard@codesourcery.com>
32c075e1 9496
11bf311e
UD
9497 * elf/elf.h (R_MIPS_GLOB_DAT): Define.
9498 (R_MIPS_NUM): Bump by 1.
32c075e1 9499
11bf311e 95002007-01-03 Jakub Jelinek <jakub@redhat.com>
32c075e1 9501
11bf311e
UD
9502 * posix/execvp.c: Include alloca.h.
9503 (allocate_scripts_argv): Renamed to...
9504 (scripts_argv): ... this. Don't allocate buffer here nor count
9505 arguments.
9506 (execvp): Use alloca if possible.
9507 * posix/Makefile: Add rules to build and run tst-vfork3 test.
9508 * posix/tst-vfork3.c: New test.
32c075e1
JJ
9509
95102007-01-03 Ulrich Drepper <drepper@redhat.com>
9511
9512 * string/Makefile (tst-strxfrm2-ENV): Define.
11bf311e 9513 * stdlib/Makefile (tst-strtod3-ENV): Define.
32c075e1 9514
11bf311e 95152007-01-02 Ulrich Drepper <drepper@redhat.com>
32c075e1 9516
11bf311e
UD
9517 * posix/getconf.c: Update copyright year.
9518 * nss/getent.c: Likewise.
9519 * iconv/iconvconfig.c: Likewise.
9520 * iconv/iconv_prog.c: Likewise.
9521 * elf/ldconfig.c: Likewise.
9522 * catgets/gencat.c: Likewise.
9523 * csu/version.c: Likewise.
9524 * elf/ldd.bash.in: Likewise.
9525 * elf/sprof.c (print_version): Likewise.
9526 * locale/programs/locale.c: Likewise.
9527 * locale/programs/localedef.c: Likewise.
9528 * nscd/nscd.c (print_version): Likewise.
9529 * debug/xtrace.sh: Likewise.
9530 * malloc/memusage.sh: Likewise.
9531 * malloc/mtrace.pl: Likewise.
9532 * debug/catchsegv.sh: Likewise.
64a0aa0f 9533
11bf311e 95342006-12-24 Ulrich Drepper <drepper@redhat.com>
48576885 9535
11bf311e
UD
9536 * malloc/malloc.c (sYSMALLOc): Remove some unnecessary alignment
9537 attempts.
48576885 9538
11bf311e 95392006-12-23 Ulrich Drepper <drepper@redhat.com>
3b6667a4 9540
11bf311e 9541 * posix/wordexp.c: Remove some unnecessary tests.
3b6667a4 9542
33c6de58
UD
95432006-12-22 Gavin Romig-Koch <gavin@redhat.com>
9544
9545 * nis/nss_compat/compat-grp.c (internal_getgrgid_r): Don't
9546 blacklist the group till after we look it up.
9547
fc242bef
UD
95482006-12-21 Ulrich Drepper <drepper@redhat.com>
9549
9550 * include/atomic.h (atomic_forced_read): New macro.
9551
11bf311e
UD
95522006-12-20 SUGIOKA Toshinobu <sugioka@itonet.co.jp>
9553
9554 * sysdeps/unix/sysv/linux/sh/bits/shm.h: New file.
9555
a12dcecc
UD
95562006-12-19 Jakub Jelinek <jakub@redhat.com>
9557
11bf311e
UD
9558 * nss/getXXbyYY_r.c: Include atomic.h.
9559 (INTERNAL (REENTRANT_NAME)): Write startp after start_fct,
9560 add atomic_write_barrier () in between.
9561
a12dcecc
UD
9562 * stdlib/Makefile (tests): Add tst-makecontext.
9563 * stdlib/tst-makecontext.c: New test.
9564
9565 * sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S
9566 (__makecontext): Don't realign uc_mcontext.uc_regs.
9567
11bf311e 95682006-11-28 Jakub Jelinek <jakub@redhat.com>
594d423a 9569
11bf311e
UD
9570 * elf/dl-support.c: Include dl-procinfo.h.
9571 * sysdeps/powerpc/dl-procinfo.h (PPC_PLATFORM_POWER4,
9572 PPC_PLATFORM_PPC970, PPC_PLATFORM_POWER5, PPC_PLATFORM_POWER5_PLUS,
9573 PPC_PLATFORM_POWER6, PPC_PLATFORM_CELL_BE, PPC_PLATFORM_POWER6X):
9574 Define.
9575 (_dl_string_platform): Use PPC_PLATFORM_* macros instead of
9576 hardcoded constants.
9577 * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_platform): Use
9578 PPC_PLATFORM_* macros for array designators.
594d423a 9579
11bf311e 95802006-11-11 Steven Munroe <sjmunroe@us.ibm.com>
594d423a 9581
11bf311e
UD
9582 * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add 3 new cap
9583 names to the beginning.
9584 (_dl_powerpc_platforms): Add "power6x".
9585 * sysdeps/powerpc/dl-procinfo.h (_DL_HWCAP_FIRST): Decrease.
9586 (HWCAP_IMPORTANT): Add PPC_FEATURE_HAS_DFP.
9587 (_DL_PLATFORMS_COUNT): Increase.
9588 (_dl_string_platform): Handle power6x case.
9589 * sysdeps/powerpc/sysdep.h (PPC_FEATURE_PA6T, PPC_FEATURE_HAS_DFP,
9590 PPC_FEATURE_POWER6_EXT): Define.
9591 (PPC_FEATURE_POWER5, PPC_FEATURE_POWER5_PLUS): Correct Comment.
594d423a 9592
5bcba0ed
UD
95932006-12-18 Jakub Jelinek <jakub@redhat.com>
9594
9595 [BZ #3747]
9596 * stdlib/jrand48_r.c (__jrand48_r): Make sure result is in the
11bf311e 9597 [-2^31 .. 2^31) range.
5bcba0ed
UD
9598 * stdlib/tst-rand48.c (main): Fix expected values for 64-bit
9599 targets.
9600 * stdlib/tst-rand48-2.c: New test.
9601 * stdlib/Makefile (tests): Add tst-rand48-2.
9602
9e1444fc
UD
96032006-12-14 Jakub Jelinek <jakub@redhat.com>
9604
9605 * misc/tst-pselect.c (do_test): Fix sigblock argument.
9606
36775704
UD
96072006-12-14 Ulrich Drepper <drepper@redhat.com>
9608
9609 * misc/tst-pselect.c (do_test): Make sure the helper process is
9610 terminating when the test is aborted.
9611
1e88bd0f
UD
96122006-12-13 Ulrich Drepper <drepper@redhat.com>
9613
11bf311e
UD
9614 * sysdeps/unix/sysv/linux/bits/statvfs.h: Define ST_RELATIME.
9615 * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
9616 Handle relatime mount option.
9617
1e88bd0f
UD
9618 [BZ #2337]
9619 * libio/Makefile (tests): Add tst-setvbuf1.
9620 * libio/tst-setvbuf1.c: New file.
9621
96222006-12-08 Jakub Jelinek <jakub@redhat.com>
9623
9624 [BZ #2337]
9625 * libio/genops.c (__uflow): Fix a typo.
9626 * libio/wfiledoalloc.c (_IO_wfile_doallocate): Don't stat
9627 nor set _IO_LINE_BUF bit here. Size the wide buffer based on
9628 the narrow buffer size.
9629
96302006-11-24 Jakub Jelinek <jakub@redhat.com>
9631
9632 [BZ #2337]
9633 * libio/libio.h (_IO_FLAGS2_USER_WBUF): Define.
9634 * libio/wgenops.c (_IO_wsetb, _IO_wdefault_finish): Test and set
9635 _IO_FLAGS2_USER_WBUF bit in _flags2 instead of _IO_USER_BUF bit
9636 in _flags.
9637 * libio/wstrops.c (_IO_wstr_overflow, enlarge_userbuf,
9638 _IO_wstr_finish): Likewise.
9639 * libio/wmemstream.c (open_wmemstream): Likewise.
9640 * libio/fileops.c (_IO_new_file_close_it): Call _IO_set[bgp]
9641 even for wide streams.
9642
11bf311e 96432006-12-13 Jakub Jelinek <jakub@redhat.com>
1f55ce48 9644
11bf311e
UD
9645 * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: Include
9646 kernel-features.h.
9647
96482006-12-11 Ulrich Drepper <drepper@redhat.com>
9649
9650 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Parse thousand
9651 separators also if no non-zero digits found.
9652 * stdlib/Makefile (tests): Add tst-strtod3.
1f55ce48 9653
d117c1ce
UD
96542006-12-09 Ulrich Drepper <drepper@redhat.com>
9655
f85fb97b
UD
9656 [BZ #3632]
9657 * include/features.h: Fix comment about default value for
9658 _POSIX_C_SOURCE.
9659
11bf311e
UD
9660 [BZ #3664]
9661 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix test to recognize
9662 empty parsed strings.
9663 * stdlib/Makefile (tests): Add tst-strtod2.
9664 * stdlib/tst-strtod2.c: New file.
9665
9666 [BZ #3673]
9667 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix exp_limit
9668 computation.
9669 * stdlib/Makefile (tests): Add tst-atof2.
9670 * stdlib/tst-atof2.c: New file.
9671
9672 [BZ #3674]
9673 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Adjust exponent value
9674 correctly if removing trailing zero of hex-float.
9675 * stdlib/Makefile (tests): Add tst-atof1.
9676 * stdlib/tst-atof1.c: New file.
9677
a822d9f4
UD
96782006-12-09 Jakub Jelinek <jakub@redhat.com>
9679
11bf311e
UD
9680 * misc/mntent_r.c (__hasmntopt): Check p[optlen] even when p == rest.
9681 Start searching for next comma at p rather than rest.
9682 * misc/Makefile (tests): Add tst-mntent2.
9683 * misc/tst-mntent2.c: New test.
9684
a822d9f4
UD
9685 * misc/getusershell.c (initshells): Check for integer overflows.
9686 Make strings buffer one bigger as fgets always succeeds when second
9687 argument is 1. Don't use calloc for shells array. Disallow
11bf311e 9688 / as shell.
f0d5e1f6 9689
11bf311e 96902006-12-08 Ulrich Drepper <drepper@redhat.com>
f0d5e1f6 9691
11bf311e
UD
9692 * malloc/memusage.c: Handle realloc with new size of zero and
9693 non-NULL pointer correctly.
9694 (me): Really write first record twice.
9695 (struct entry): Make format bi-arch safe.
9696 (dest): Write out more realloc statistics.
9697 * malloc/memusagestat.c (struct entry): Make format bi-arch safe.
32c075e1 9698
11bf311e 96992006-12-05 Jakub Jelinek <jakub@redhat.com>
32c075e1 9700
11bf311e 9701 * nis/nis_subr.c (nis_getnames): Revert last change.
32c075e1 9702
f0d5e1f6
UD
97032006-12-04 Jakub Jelinek <jakub@redhat.com>
9704
9705 * sysdeps/unix/sysv/linux/ttyname.c: Include termios.h.
9706 (ttyname): Use tcgetattr instead of isatty, don't set errno to ENOTTY.
9707 * sysdeps/unix/sysv/linux/ttyname_r.c: Include termios.h.
9708 (__ttyname_r): Use tcgetattr instead of isatty, don't set errno to
9709 ENOTTY.
9710 * io/Makefile: Add rules to build and run tst-ttyname_r test.
9711 * io/tst-ttyname_r.c: New test.
9712
11bf311e 97132006-12-03 Kaz Kojima <kkojima@rr.iij4u.or.jp>
5df4fe08 9714
11bf311e 9715 * sysdeps/unix/sysv/linux/sh/sys/io.h: Removed.
5df4fe08 9716
11bf311e 97172006-11-30 H.J. Lu <hongjiu.lu@intel.com>
ee50871d 9718
11bf311e
UD
9719 * sysdeps/i386/i686/memcmp.S: Use jump table as the base of
9720 jump table entries.
9721
97222006-11-30 Jan Kratochvil <jan.kratochvil@redhat.com>
9723
9724 * sysdeps/unix/sysv/linux/i386/clone.S: Provide CFI for the outermost
9725 `clone' function to ensure proper unwinding stop of gdb.
9726 * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
9727
97282006-12-01 Ulrich Drepper <drepper@redhat.com>
9729
9730 * nscd/nscd.init: Remove obsolete and commented-out -S option
9731 handling.
9732
97332006-11-23 Jakub Jelinek <jakub@redhat.com>
9734
9735 [BZ #3514]
9736 * manual/string.texi (strncmp): Fix pastos from wcscmp description.
9737
9738 [BZ #3515]
9739 * manual/string.texi (strtok): Remove duplicate paragraph.
9740
97412006-12-01 Jan Kratochvil <jan.kratochvil@redhat.com>
9742
9743 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Fix compatibility with
9744 libgcc not supporting `rflags' unwinding (register # >= 17).
9745
97462006-11-30 Jakub Jelinek <jakub@redhat.com>
9747
9748 * sunrpc/svc_run.c (svc_run): Set my_pollfd to new_pollfd if realloc
9749 succeeded.
9750
97512006-11-29 Daniel Jacobowitz <dan@codesourcery.com>
9752 Jakub Jelinek <jakub@redhat.com>
9753 Jan Kratochvil <jan.kratochvil@redhat.com>
9754
9755 * sysdeps/unix/sysv/linux/x86_64/sigaction.c (restore_rt): Add correct
9756 unwind information.
9757 * sysdeps/unix/sysv/linux/x86_64/Makefile: Provide symbols for
9758 'restore_rt' even in the 'signal' directory.
9759 * sysdeps/unix/sysv/linux/x86_64/ucontext_i.sym: Extend the regs list.
ee50871d 9760
b1a758f3
UD
97612006-11-27 Jakub Jelinek <jakub@redhat.com>
9762
9763 [BZ #3559]
9764 * sunrpc/svc_run.c (svc_run): Fail instead of segfaulting if
11bf311e
UD
9765 malloc crashed. Don't allocate memory unnecessarily in each
9766 loop.
b1a758f3 9767
11bf311e 97682006-10-21 Jakub Jelinek <jakub@redhat.com>
854d1124 9769
11bf311e 9770 * resolv/mapv4v6addr.h (map_v4v6_address): Fix last change.
dfc99a56 9771
11bf311e 97722006-11-20 Ulrich Drepper <drepper@redhat.com>
dfc99a56 9773
11bf311e 9774 * resolv/mapv4v6addr.h (map_v4v6_address): Optimize a bit.
852d657c 9775
11bf311e 97762006-11-18 Bruno Haible <bruno@clisp.org>
852d657c 9777
11bf311e
UD
9778 * sysdeps/unix/sysv/linux/i386/getgroups.c (__getgroups): Invoke
9779 __sysconf only after having tried to call getgroups32.
36c0a636 9780
11bf311e 97812006-11-19 Ulrich Drepper <drepper@redhat.com>
36c0a636 9782
11bf311e
UD
9783 * nss/nss_files/files-hosts.c (LINE_PARSER): Support IPv6-style
9784 addresses for IPv4 queries if they can be mapped.
b1f0c2a6 9785
11bf311e 97862006-11-16 Jakub Jelinek <jakub@redhat.com>
b1f0c2a6 9787
11bf311e
UD
9788 * sysdeps/x86_64/fpu/s_copysignf.S (__copysignf): Switch to .text.
9789 * sysdeps/x86_64/fpu/s_copysign.S (__copysign): Likewise.
9790 (signmask): Add .size directive.
9791 (othermask): Add .type directive.
bef8927a 9792
11bf311e 97932006-11-14 Ulrich Drepper <drepper@redhat.com>
2c53fa20 9794
11bf311e 9795 * po/nl.po: Update from translation team.
854d1124 9796
11bf311e 9797 * timezone/zdump.c: Redo fix for BZ #3137.
3f1e9205 9798
11bf311e 97992006-11-14 Jakub Jelinek <jakub@redhat.com>
bef8927a 9800
11bf311e
UD
9801 * nss/nss_files/files-alias.c (get_next_alias): Set line back
9802 to first_unused after parsing :include: file.
5c2af134 9803
32c075e1 98042006-11-10 Ulrich Drepper <drepper@redhat.com>
e1b37083 9805
11bf311e
UD
9806 * timezone/africa: Update from tzdata2006o.
9807 * timezone/antarctica: Likewise.
9808 * timezone/asia: Likewise.
9809 * timezone/australasia: Likewise.
9810 * timezone/backward: Likewise.
9811 * timezone/europe: Likewise.
9812 * timezone/iso3166.tab: Likewise.
9813 * timezone/northamerica: Likewise.
9814 * timezone/southamerica: Likewise.
9815 * timezone/zone.tab: Likewise.
9816
9817 * time/tzfile.c (__tzfile_read): Extend to handle new file format
9818 on machines with 64-bit time_t.
9819
9820 * timezone/checktab.awk: Update from tzcode2006o.
9821 * timezone/ialloc.c: Likewise.
9822 * timezone/private.h: Likewise.
9823 * timezone/scheck.c: Likewise.
9824 * timezone/tzfile.h: Likewise.
9825 * timezone/tzselect.ksh: Likewise.
9826 * timezone/zdump.c: Likewise.
9827 * timezone/zic.c: Likewise.
9828
9829 [BZ #3483]
9830 * elf/ldconfig.c (main): Call setlocale and textdomain.
9831 Patch mostly by Benno Schulenberg <bensberg@justemail.net>.
9832
9833 [BZ #3480]
9834 * manual/argp.texi: Fix typos.
9835 * manual/charset.texi: Likewise.
9836 * manual/errno.texi: Likewise.
9837 * manual/filesys.texi: Likewise.
9838 * manual/lang.texi: Likewise.
9839 * manual/maint.texi: Likewise.
9840 * manual/memory.texi: Likewise.
9841 * manual/message.texi: Likewise.
9842 * manual/resource.texi: Likewise.
9843 * manual/search.texi: Likewise.
9844 * manual/signal.texi: Likewise.
9845 * manual/startup.texi: Likewise.
9846 * manual/stdio.texi: Likewise.
9847 * manual/sysinfo.texi: Likewise.
9848 * manual/syslog.texi: Likewise.
9849 * manual/time.texi: Likewise.
9850 Patch by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
9851
9852 [BZ #3465]
9853 * sunrpc/clnt_raw.c: Minimal message improvements.
9854 * sunrpc/pm_getmaps.c: Likewise.
9855 * nis/nss_nisplus/nisplus-publickey.c: Likewise.
9856 * nis/nis_print_group_entry.c: Likewise.
9857 * locale/programs/repertoire.c: Likewise.
9858 * locale/programs/charmap.c: Likewise.
9859 * malloc/memusage.sh: Likewise.
9860 * elf/dl-deps.c: Likewise.
9861 * locale/programs/ld-collate.c: Likewise.
9862 * libio/vswprintf.c: Likewise.
9863 * malloc/memusagestat.c: Likewise.
9864 * sunrpc/auth_unix.c: Likewise.
9865 * sunrpc/rpc_main.c: Likewise.
9866 * nscd/cache.c: Likewise.
9867 * locale/programs/repertoire.c: Unify output messages.
9868 * locale/programs/charmap.c: Likewise.
9869 * locale/programs/ld-ctype.c: Likewise.
9870 * locale/programs/ld-monetary.c: Likewise.
9871 * locale/programs/ld-numeric.c: Likewise.
9872 * locale/programs/ld-time.c: Likewise.
9873 * elf/ldconfig.c: Likewise.
9874 * nscd/selinux.c: Likewise.
9875 * elf/cache.c: Likewise.
9876 Patch mostly by Benno Schulenberg <bensberg@justemail.net>.
9877
5c2af134
UD
9878 [BZ #3451]
9879 * sysdeps/i386/fpu/bits/mathinline.h (floor): Make rounding mode
9880 change atomic.
9881 (ceil): Likewise.
9882
11bf311e
UD
98832006-11-10 Jakub Jelinek <jakub@redhat.com>
9884
9885 * string/strxfrm_l.c (STRXFRM): Fix trailing \1 optimization
9886 if N is one bigger than return value.
9887 * string/tst-strxfrm2.c (do_test): Also test strxfrm with l1 + 1
9888 and l1 last arguments, if buf is defined, verify the return value
9889 equals to strlen (buf) and verify no byte beyond passed length
9890 is modified.
9891
98922006-11-10 Ulrich Drepper <drepper@redhat.com>
9893
9894 * po/sv.po: Update from translation team.
9895
37afcf79
UD
98962006-11-09 Ulrich Drepper <drepper@redhat.com>
9897
9898 * sysdeps/unix/sysv/linux/x86_64/sysconf.c (intel_check_word): Add
9899 noinline attribute.
9900
99012006-11-10 Jakub Jelinek <jakub@redhat.com>
9902
9903 * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Add
9904 noinline attribute.
9905
11bf311e
UD
9906 * sysdeps/gnu/siglist.c (__old_sys_siglist, __old_sys_sigabbrev):
9907 Use __new_sys_siglist instead of _sys_siglist_internal as
9908 second macro argument.
9909 (_old_sys_siglist): Use declare_symbol_alias macro instead of
9910 strong_alias.
2692deea 9911
11bf311e
UD
99122006-11-09 Ulrich Drepper <drepper@redhat.com>
9913
9914 [BZ #3493]
9915 * posix/unistd.h (sysconf): Remove const attribute.
9916
9917 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Fix test for
9918 temporary or deprecated addresses.
9919 Patch by Sridhar Samudrala <sri@us.ibm.com>.
9920
9921 * string/Makefile (tests): Add tst-strxfrm2.
9922 * string/tst-strxfrm2.c: New file.
9923
99242006-10-09 Jakub Jelinek <jakub@redhat.com>
9925
9926 * elf/dl-debug.c (_dl_debug_initialize): Check r->r_map for 0
9927 rather than r->r_brk.
2692deea
UD
9928
99292006-11-08 Jakub Jelinek <jakub@redhat.com>
9930
11bf311e
UD
9931 * string/strxfrm_l.c (STRXFRM): Do the trailing \1 removal
9932 optimization even if needed > n.
9933
2692deea
UD
9934 * elf/dl-load.c (decompose_rpath): Return bool rather than void.
9935 If l->l_name is on inhibit_rpath list, set sps->dirs to -1 and
9936 return false, otherwise return true.
9937 (cache_rpath): Return decompose_rpath return value.
9938
11bf311e
UD
99392006-11-07 Jakub Jelinek <jakub@redhat.com>
9940
9941 * include/libc-symbols.h (declare_symbol): Rename to...
9942 (declare_symbol_alias): ... this. Add ORIGINAL argument, imply
9943 strong_alias (ORIGINAL, SYMBOL) in asm to make sure it preceedes
9944 .size directive.
9945 * sysdeps/gnu/errlist-compat.awk: Adjust for declare_symbol_alias
9946 changes.
9947 * sysdeps/gnu/siglist.c: Likewise.
9948
99492006-11-03 Steven Munroe <sjmunroe@us.ibm.com>
9950
9951 * sysdeps/powerpc/fpu/bits/mathinline.h
9952 [__LIBC_INTERNAL_MATH_INLINES]: Moved to ...
9953 * sysdeps/powerpc/fpu/math_private.h: ...here. New file.
9954
99552006-11-05 Ulrich Drepper <drepper@redhat.com>
9956
9957 * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
9958 Update handling of cache descriptor 0x49 for new models.
9959 * sysdeps/unix/sysv/linux/x86_64/sysconf.c (intel_check_word):
9960 Likewise.
9961
9666e36c
UD
99622006-11-02 Jakub Jelinek <jakub@redhat.com>
9963
9964 * malloc/memusage.c (dest): Reset not_me back to false after
9965 printing statistics.
9966
11bf311e
UD
99672006-11-02 Ulrich Drepper <drepper@redhat.com>
9968
9969 * configure.in: Work around ld --help change and avoid -z relro
9970 test completely if the architecture doesn't care about security.
9971
99722006-11-01 Ulrich Drepper <drepper@redhat.com>
9973
9974 * po/sv.po: Update from translation team.
9975
99762006-10-31 Ulrich Drepper <drepper@redhat.com>
9977
9978 * stdlib/atexit.c (atexit): Don't mark as hidden when used to
9979 generate compatibility version.
9980
99812006-10-29 Ulrich Drepper <drepper@redhat.com>
9982
9983 * configure.in: Relax -z relro requirement a bit.
9984
9985 * po/sv.po: Update from translation team.
9986
99872006-10-29 Jakub Jelinek <jakub@redhat.com>
9988
9989 * elf/dl-sym.c (do_sym): Use RTLD_SINGLE_THREAD_P.
9990 * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Likewise.
9991 * elf/dl-close.c (_dl_close_worker): Likewise.
9992 * elf/dl-open.c (_dl_open_worker): Likewise.
9993 * sysdeps/generic/sysdep-cancel.h (RTLD_SINGLE_THREAD_P): Define.
9994
b2369ca3
UD
99952006-10-27 Ulrich Drepper <drepper@redhat.com>
9996
11bf311e
UD
9997 * configure.in: Require assembler support for visibility, compiler
9998 support for visibility and aliases, linker support for various -z
9999 options.
10000 * Makeconfig: Remove conditional code which now is unnecessary.
10001 * config.h.in: Likewise.
10002 * config.make.in: Likewise.
10003 * dlfcn/Makefile: Likewise.
10004 * elf/Makefile: Likewise.
10005 * elf/dl-load.c: Likewise.
10006 * elf/rtld.c: Likewise.
10007 * include/libc-symbols.h: Likewise.
10008 * include/stdio.h: Likewise.
10009 * io/Makefile: Likewise.
10010 * io/fstat.c: Likewise.
10011 * io/fstat64.c: Likewise.
10012 * io/fstatat.c: Likewise.
10013 * io/fstatat64.c: Likewise.
10014 * io/lstat.c: Likewise.
10015 * io/lstat64.c: Likewise.
10016 * io/mknod.c: Likewise.
10017 * io/mknodat.c: Likewise.
10018 * io/stat.c: Likewise.
10019 * io/stat64.c: Likewise.
10020 * libio/stdio.c: Likewise.
10021 * nscd/Makefile: Likewise.
10022 * stdlib/Makefile: Likewise.
10023 * stdlib/atexit.c: Likewise.
10024 * sysdeps/generic/ldsodefs.h: Likewise.
10025 * sysdeps/i386/dl-machine.h: Likewise.
10026 * sysdeps/i386/sysdep.h: Likewise.
10027 * sysdeps/i386/i686/memcmp.S: Likewise.
10028 * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
10029 * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
10030 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
10031
10032 * Makerules: USE_TLS support is now default.
10033 * tls.make.c: Likewise.
10034 * csu/Versions: Likewise.
10035 * csu/libc-start.c: Likewise.
10036 * csu/libc-tls.c: Likewise.
10037 * csu/version.c: Likewise.
10038 * dlfcn/dlinfo.c: Likewise.
10039 * elf/dl-addr.c: Likewise.
10040 * elf/dl-cache.c: Likewise.
10041 * elf/dl-close.c: Likewise.
10042 * elf/dl-iteratephdr.c: Likewise.
10043 * elf/dl-load.c: Likewise.
10044 * elf/dl-lookup.c: Likewise.
10045 * elf/dl-object.c: Likewise.
10046 * elf/dl-open.c: Likewise.
10047 * elf/dl-reloc.c: Likewise.
10048 * elf/dl-support.c: Likewise.
10049 * elf/dl-sym.c: Likewise.
10050 * elf/dl-sysdep.c: Likewise.
10051 * elf/dl-tls.c: Likewise.
10052 * elf/ldconfig.c: Likewise.
10053 * elf/rtld.c: Likewise.
10054 * elf/tst-tls-dlinfo.c: Likewise.
10055 * elf/tst-tls1.c: Likewise.
10056 * elf/tst-tls10.h: Likewise.
10057 * elf/tst-tls14.c: Likewise.
10058 * elf/tst-tls2.c: Likewise.
10059 * elf/tst-tls3.c: Likewise.
10060 * elf/tst-tls4.c: Likewise.
10061 * elf/tst-tls5.c: Likewise.
10062 * elf/tst-tls6.c: Likewise.
10063 * elf/tst-tls7.c: Likewise.
10064 * elf/tst-tls8.c: Likewise.
10065 * elf/tst-tls9.c: Likewise.
10066 * elf/tst-tlsmod1.c: Likewise.
10067 * elf/tst-tlsmod13.c: Likewise.
10068 * elf/tst-tlsmod13a.c: Likewise.
10069 * elf/tst-tlsmod14a.c: Likewise.
10070 * elf/tst-tlsmod2.c: Likewise.
10071 * elf/tst-tlsmod3.c: Likewise.
10072 * elf/tst-tlsmod4.c: Likewise.
10073 * elf/tst-tlsmod5.c: Likewise.
10074 * elf/tst-tlsmod6.c: Likewise.
10075 * include/errno.h: Likewise.
10076 * include/link.h: Likewise.
10077 * include/tls.h: Likewise.
10078 * locale/global-locale.c: Likewise.
10079 * locale/localeinfo.h: Likewise.
10080 * malloc/arena.c: Likewise.
10081 * malloc/hooks.c: Likewise.
10082 * malloc/malloc.c: Likewise.
10083 * resolv/Versions: Likewise.
10084 * sysdeps/alpha/dl-machine.h: Likewise.
10085 * sysdeps/alpha/libc-tls.c: Likewise.
10086 * sysdeps/generic/ldsodefs.h: Likewise.
10087 * sysdeps/generic/tls.h: Likewise.
10088 * sysdeps/i386/dl-machine.h: Likewise.
10089 * sysdeps/ia64/dl-machine.h: Likewise.
10090 * sysdeps/ia64/libc-tls.c: Likewise.
10091 * sysdeps/mach/hurd/fork.c: Likewise.
10092 * sysdeps/mach/hurd/i386/tls.h: Likewise.
10093 * sysdeps/powerpc/powerpc32/dl-machine.c: Likwise.
10094 * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
10095 * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
10096 * sysdeps/s390/libc-tls.c: Likewise.
10097 * sysdeps/s390/s390-32/dl-machine.h: Likewise.
10098 * sysdeps/s390/s390-64/dl-machine.h: Likewise.
10099 * sysdeps/sh/dl-machine.h: Likewise.
10100 * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
10101 * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
10102 * sysdeps/x86_64/dl-machine.h: Likewise.
10103
131c4428
UD
10104 * elf/dl-close.c (_dl_close_worker): Renamed from _dl_close and
10105 split out locking and parameter checking.
10106 (_dl_close): Call _dl_close_worker after locking and checking.
10107 * elf/dl-open.c (_dl_open): Call _dl_close_worker instead of
10108 _dl_close.
ffd0e1b7
UD
10109 * elf/Makefile: Add rules to build and run tst-thrlock.
10110 * elf/tst-thrlock.c: New file.
131c4428 10111
11bf311e
UD
10112 [BZ #3426]
10113 * stdlib/stdlib.h: Adjust comment for canonicalize_file_name to
10114 reality.
10115
b2369ca3
UD
10116 [BZ #3429]
10117 * elf/dl-open.c (dl_open_worker): Keep holding dl_load_lock until
131c4428 10118 we are sure we do not need it anymore for _dl_close. Also move
b2369ca3
UD
10119 the asserts inside the lock region.
10120 Patch mostly by Suzuki <suzuki@in.ibm.com>.
10121
11bf311e
UD
101222006-10-27 Jakub Jelinek <jakub@redhat.com>
10123
10124 * elf/dl-lookup.c (_dl_debug_bindings): Remove unused symbol_scope
10125 argument.
10126 (_dl_lookup_symbol_x): Adjust caller.
10127
10128 * sysdeps/generic/ldsodefs.h (struct link_namespaces): Remove
10129 _ns_global_scope.
10130 * elf/rtld.c (dl_main): Don't initialize _ns_global_scope.
10131
10132 * elf/dl-libc.c: Revert l_scope name changes.
10133 * elf/dl-load.c: Likewise.
10134 * elf/dl-object.c: Likewise.
10135 * elf/rtld.c: Likewise.
10136 * elf/dl-close.c (_dl_close): Likewise.
10137 * elf/dl-open.c (dl_open_worker): Likewise. If not SINGLE_THREAD_P,
10138 always use __rtld_mrlock_{change,done}. Always free old scope list
10139 here if not l_scope_mem.
10140 * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Revert l_scope name
10141 change. Never free scope list here. Just __rtld_mrlock_lock before
10142 the lookup and __rtld_mrlock_unlock it after the lookup.
10143 * elf/dl-sym.c: Likewise.
10144 * include/link.h (struct r_scoperec): Remove.
10145 (struct link_map): Replace l_scoperec with l_scope, l_scoperec_mem
10146 with l_scope_mem and l_scoperec_lock with l_scope_lock.
10147
101482006-10-25 Ulrich Drepper <drepper@redhat.com>
10149
10150 * sysdeps/gnu/netinet/tcp.h: Define TCP_CONGESTION.
10151
101522006-10-18 Ulrich Drepper <drepper@redhat.com>
10153
10154 * configure.in: Disable building profile libraries by default.
10155
609cf614
UD
101562006-10-17 Jakub Jelinek <jakub@redhat.com>
10157
10158 * sunrpc/xdr_mem.c (xdrmem_setpos): Don't compare addresses
10159 as signed longs, check for x_base + pos overflow.
10160 * sunrpc/Makefile (tests): Add tst-xdrmem2.
10161 * sunrpc/tst-xdrmem2.c: New test.
10162
11bf311e
UD
101632006-10-18 Ulrich Drepper <drepper@redhat.com>
10164
10165 * elf/dl-lookup.c (_dl_lookup_symbol_x): Add warning to
10166 _dl_lookup_symbol_x code.
10167
101682006-10-17 Jakub Jelinek <jakub@redhat.com>
10169
10170 * elf/dl-runtime.c: Include sysdep-cancel.h.
10171 (_dl_fixup, _dl_profile_fixup): Use __rtld_mrlock_* and
10172 scoperec->nusers only if !SINGLE_THREAD_P. Use atomic_*
10173 instead of catomic_* macros.
10174 * elf/dl-sym.c: Include sysdep-cancel.h.
10175 (do_sym): Use __rtld_mrlock_* and scoperec->nusers only
10176 if !SINGLE_THREAD_P. Use atomic_* instead of catomic_* macros.
10177 * elf/dl-close.c: Include sysdep-cancel.h.
10178 (_dl_close): Use __rtld_mrlock_* and scoperec->nusers only
10179 if !SINGLE_THREAD_P. Use atomic_* instead of catomic_* macros.
10180 * elf/dl-open.c: Include sysdep-cancel.h.
10181 (dl_open_worker): Use __rtld_mrlock_* and scoperec->nusers only
10182 if !SINGLE_THREAD_P. Use atomic_* instead of catomic_* macros.
10183
101842006-10-17 Jakub Jelinek <jakub@redhat.com>
10185
10186 [BZ #3313]
10187 * malloc/malloc.c (malloc_consolidate): Set maxfb to address of last
10188 fastbin rather than end of fastbin array.
10189
101902006-10-18 Ulrich Drepper <drepper@redhat.com>
10191
10192 * sysdeps/i386/i486/bits/atomic.h (catomic_decrement): Use correct
10193 body macro.
10194 * sysdeps/x86_64/bits/atomic.h
10195 (__arch_c_compare_and_exchange_val_64_acq): Add missing casts.
10196 (catomic_decrement): Use correct body macro.
10197
101982006-10-17 Jakub Jelinek <jakub@redhat.com>
10199
10200 * include/atomic.h: Add a unique prefix to all local variables
10201 in macros.
10202 * csu/tst-atomic.c (do_test): Test also catomic_* macros.
10203
4a85a8ee
UD
102042006-10-16 Ulrich Drepper <drepper@redhat.com>
10205
10206 [BZ #3369]
10207 * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Fix typos in rules 4
10208 and 7.
10209
11bf311e
UD
102102006-10-14 Ulrich Drepper <drepper@redhat.com>
10211
10212 * resolv/arpa/nameser.h: Document that ns_t_a6 is deprecated.
10213
ff8d96be
UD
102142006-10-13 Ulrich Drepper <drepper@redhat.com>
10215
11bf311e
UD
10216 [BZ #3313]
10217 * malloc/malloc.c (malloc_consolidate): Don't use get_fast_max to
10218 determine highest fast bin to consolidate, always look into all of
10219 them.
10220 (do_check_malloc_state): Only require for empty bins for large
10221 sizes in main arena.
10222
10223 * libio/stdio.h: Add more __wur attributes.
10224
ff8d96be
UD
10225 * elf/dl-minimal.c (realloc): Optimize last patch.
10226
90a0991a
UD
102272006-10-12 Richard Sandiford <richard@codesourcery.com>
10228
10229 [BZ #3352]
10230 * elf/dl-minimal.c (realloc): Let malloc() return a new pointer,
10231 and use memcpy() if it does.
ff8d96be 10232
11bf311e
UD
102332006-11-12 Andreas Jaeger <aj@suse.de>
10234
10235 [BZ #2510]
10236 * manual/search.texi (Hash Search Function): Clarify.
10237 (Array Search Function): Clarify.
10238
102392006-11-12 Joseph Myers <joseph@codesourcery.com>
10240
10241 [BZ #2830]
10242 * math/atest-exp.c (main): Cast hex value to mp_limb_t before
10243 shifting.
10244 * math/atest-exp2.c (read_mpn_hex): Likewise.
10245 * math/atest-sincos.c (main): Likewise.
10246
37fb7595
UD
102472006-10-11 Ulrich Drepper <drepper@redhat.com>
10248
11bf311e
UD
10249 * sysdeps/unix/sysv/linux/syscalls.list: Add epoll_pwait.
10250 * sysdeps/unix/sysv/linux/sys/epoll.h: Declare epoll_pwait.
10251 * sysdeps/unix/sysv/linux/Versions (libc): Add epoll_pwait for
10252 version GLIBC_2.6.
10253 * Versions.def: Add GLIBC_2.6 for libc.
10254
46c38bd7
UD
10255 * sysdeps/unix/sysv/linux/i386/sysdep.h (DOARGS_6): Fix offset.
10256
11bf311e
UD
10257 * sysdeps/i386/i486/bits/atomic.h: Add catomic_* support.
10258
102592006-10-11 Jakub Jelinek <jakub@redhat.com>
10260
10261 * malloc/malloc.c (_int_malloc): Remove unused any_larger variable.
10262
10263 * nis/nis_defaults.c (__nis_default_access): Don't call getenv twice.
10264
10265 * nis/nis_subr.c (nis_getnames): Use __secure_getenv instead of getenv.
10266 * sysdeps/generic/unsecvars.h: Add NIS_PATH.
10267
102682006-10-11 Ulrich Drepper <drepper@redhat.com>
10269
10270 * include/atomic.c: Define catomic_* operations.
10271 * sysdeps/x86_64/bits/atomic.h: Likewise. Fix a few minor problems.
10272 * stdlib/cxa_finalize.c: Use catomic_* operations instead of atomic_*.
10273 * malloc/memusage.c: Likewise.
10274 * gmon/mcount.c: Likewise.
10275 * elf/dl-close.c: Likewise.
10276 * elf/dl-open.c: Likewise.
10277 * elf/dl-profile.c: Likewise.
10278 * elf/dl-sym.c: Likewise.
10279 * elf/dl-runtime.c: Likewise.
10280 * elf/dl-fptr.c: Likewise.
10281 * resolv/res_libc.c: Likewise.
10282
2a6ee549
UD
102832006-10-10 Ulrich Drepper <drepper@redhat.com>
10284
10285 * nis/nis_subr.c (nis_getnames): Add trailing dot to NIS_PATH
10286 components which lack them.
10287
10288 * nis/nis_subr.c (nis_getnames): Make sure that we always return
10289 at least one entry consisting of the parameter concatenated with
10290 the domain.
10291
11bf311e 102922006-10-10 Roland McGrath <roland@frob.com>
c4f9fc3a 10293
11bf311e
UD
10294 * sysdeps/mach/hurd/utimes.c: Use a union to avoid an improper cast.
10295 * sysdeps/mach/hurd/futimes.c: Likewise.
10296 * sysdeps/mach/hurd/lutimes.c: Likewise.
10297
102982006-10-09 Ulrich Drepper <drepper@redhat.com>
10299 Jakub Jelinek <jakub@redhat.com>
10300
10301 Implement reference counting of scope records.
10302 * elf/dl-close.c (_dl_close): Remove all scopes from removed objects
10303 from the list in objects which remain. Always allocate new scope
10304 record.
10305 * elf/dl-open.c (dl_open_worker): When growing array for scopes,
10306 don't resize, allocate a new one.
10307 * elf/dl-runtime.c: Update reference counters before using a scope
10308 array.
10309 * elf/dl-sym.c: Likewise.
10310 * elf/dl-libc.c: Adjust for l_scope name change.
10311 * elf/dl-load.c: Likewise.
10312 * elf/dl-object.c: Likewise.
10313 * elf/rtld.c: Likewise.
10314 * include/link.h: Include <rtld-lowlevel.h>. Define struct
10315 r_scoperec. Replace r_scope with pointer to r_scoperec structure.
10316 Add l_scoperec_lock.
10317 * sysdeps/generic/ldsodefs.h: Include <rtld-lowlevel.h>.
10318 * sysdeps/generic/rtld-lowlevel.h: New file.
10319
10320 * include/atomic.h: Rename atomic_and to atomic_and_val and
10321 atomic_or to atomic_or_val. Define new macros atomic_and and
10322 atomic_or which do not return values.
10323 * sysdeps/x86_64/bits/atomic.h: Define atomic_and and atomic_or.
10324 Various cleanups.
10325 * sysdeps/i386/i486/bits/atomic.h: Likewise.
10326
10327 * po/sv.po: Update from translation team.
10328
103292006-10-07 Ulrich Drepper <drepper@redhat.com>
10330
10331 * Versions.def: Add GLIBC_2.6 to libpthread.
10332
10333 * include/shlib-compat.h (SHLIB_COMPAT): Expand parameters before use.
10334 (versioned_symbol): Likewise.
10335 (compat_symbol): Likewise.
10336
10337 * po/tr.po: Update from translation team.
feb87ad1 10338
4df92d57
UD
103392006-10-06 Ulrich Drepper <drepper@redhat.com>
10340
11bf311e
UD
10341 * nis/Banner: Removed. It's been integral part forever and the
10342 author info is incomplete anyway.
10343 * libio/Banner: Likewise.
10344
4df92d57
UD
10345 * nis/nis_table.c (nis_list): If __follow_path fails in the new
10346 code, make sure the nis_freeresult call doesn't crash and that the
10347 result is reported correctly.
10348
68361572
UD
103492006-09-27 Jakub Jelinek <jakub@redhat.com>
10350
10351 * nis/nis_table.c (nis_list): Handle FOLLOW_PATH | ALL_RESULTS
10352 when callback is NULL.
10353
10354 * nis/Versions (libnss_nisplus): Add
10355 _nss_nisplus_initgroups_dyn@@GLIBC_PRIVATE.
10356 * nis/Makefile (libnss_nisplus-routines): Add nisplus-initgroups.
10357 * nis/nss_nisplus/nisplus-grp.c (tablename_val, tablename_len,
10358 _nss_create_tablename): Rename to...
10359 (grp_tablename_val, grp_tablename_len, _nss_grp_create_tablename):
10360 ... these. No longer static.
10361 (internal_setgrent): Adjust users.
10362 (_nss_nisplus_getgrnam_r, _nss_nisplus_getgrgid_r): Likewise.
10363 Don't use locking around _nss_grp_create_tablename call.
10364 * nis/nss_nisplus/nisplus-initgroups.c: New file.
10365
11bf311e
UD
103662006-10-06 Ulrich Drepper <drepper@redhat.com>
10367
10368 * version.h (VERSION): Bump to 2.5.90 for new development tree.
10369
3a4e0609
UD
103702006-10-06 Andreas Jaeger <aj@suse.de>
10371
10372 * include/features.h (__GLIBC_MINOR__): It's glibc 2.5 now.
10373
103742006-10-06 Ulrich Drepper <drepper@redhat.com>
10375
10376 * po/pl.po: Update from translation team.
10377
10378 * nscd/nscd.c (main): Fix typo in message.
10379 Patch by Jakub Bogsz <qboosh@pld-linux.org>.
10380
97e57dee
UD
103812006-10-02 Jakub Jelinek <jakub@redhat.com>
10382
10383 [BZ #3291]
10384 * sysdeps/unix/sysv/linux/sparc/sparc64/pause.c: Include
10385 errno.h, signal.h, unistd.h and sysdep-cancel.h.
10386 (__sigprocmask): Define.
10387
768027a4
UD
103882006-10-02 Ulrich Drepper <drepper@redhat.com>
10389
10390 * elf/rtld.c (dl_main): Don't use prelinking if LD_DYNAMIC_WEAK is
10391 used.
10392
0b25a49a
UD
103932006-10-02 Jakub Jelinek <jakub@redhat.com>
10394
10395 * nscd/mem.c (mempool_alloc): Round array size to 16 bytes
10396 in oldtotal and newtotal calculation.
10397 * nscd/nscd-client.h (struct mapped_database): Add datasize
10398 field.
10399 * nscd/nscd_helper.c (get_mapping): Initialize datasize field.
10400 (__nscd_get_map_ref): Get a new mapping even if mapping's data_size
10401 increased.
10402 (__nscd_cache_search): Add checks to make sure we never reference
10403 data beyond the current mapping.
10404
a1286745
UD
104052006-10-02 Dmitry V. Levin <ldv@altlinux.org>
10406
d4ed7561
UD
10407 * sysdeps/posix/getaddrinfo.c (match_prefix): Make mask and val
10408 variables const to avoid compiler warnings.
10409
a1286745
UD
10410 * io/fts.c (fts_close): Remove redundant checks.
10411 (fts_build): Likewise.
10412 (fts_palloc): Likewise.
10413
10414 * manual/message.texi (Advanced gettext functions,
10415 Using gettextized software): Fix typos.
10416
f01e4069
UD
104172006-09-30 Ulrich Drepper <drepper@redhat.com>
10418
10419 * posix/glob.c (glob_in_dir): Add some comments and asserts to
10420 explain why there are no leaks.
10421
154619b5
UD
104222006-09-29 Ulrich Drepper <drepper@redhat.com>
10423
690c3947
UD
10424 * libio/wmemstream.c: Include <wchar.h>.
10425 * libio/bug-wmemstream1.c: Likewise.
10426 * libio/tst-wmemstream1.c: Likewise.
10427 * libio/tst-wmemstream2.c: Likewise.
10428
88cc61e8
UD
10429 * version.h (RELEASE): Bump to 2.5.
10430 * README: Regenerated.
10431
a70c18b0
UD
10432 * locale/iso-3166.def: Add Aaland Islands and Montenegro.
10433
154619b5
UD
10434 [BZ #3273]
10435 * nscd/nscd_initgroups.c (__nscd_getgrouplist): It is OK to have
10436 found no group members.
10437 Patch by Petr Baudis.
10438
104392006-09-29 Jakub Jelinek <jakub@redhat.com>
10440
10441 * elf/rtld.c (_dl_start_final): If not USE___THREAD, don't
10442 assert bootstrap_map.l_tls_modid is zero.
10443 (_dl_start): Initialize bootstrap_map.l_tls_modid to 0
10444 if USE___THREAD.
10445
1c31aa79
UD
104462006-09-27 Ulrich Drepper <drepper@redhat.com>
10447
10448 * libio/stdio.h: Move open_wmemstream prototype to ...
10449 * wcsmbs/wchar.h: ... here.
10450
f1122ec3
UD
104512006-09-25 Jakub Jelinek <jakub@redhat.com>
10452
10453 [BZ #3252]
10454 * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat): Handle only
10455 fchownat syscall and __ASSUME_LCHOWN_SYSCALL case inline, call
10456 __{,l}chown to handle the rest.
10457 * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Handle only
10458 fchownat syscall and __ASSUME_32BITUIDS case inline, call
10459 __{,l}chown to handle the rest.
10460 * sysdeps/unix/sysv/linux/sparc/sparc32/fchownat.c: Include
10461 i386/fchownat.c.
10462 * sysdeps/unix/sysv/linux/s390/s390-32/fchownat.c: Likewise.
10463 * sysdeps/unix/sysv/linux/sh/fchownat.c: Likewise.
10464
10465 [BZ #3253]
10466 * posix/glob.c (glob_in_dir): Don't alloca one struct globlink at a
10467 time, rather allocate increasingly bigger arrays of pointers, if
10468 possible with alloca, if too large with malloc.
10469
104702006-09-24 Jakub Jelinek <jakub@redhat.com>
10471
10472 * sysdeps/powerpc/fpu/libm-test-ulps: Updated.
10473
10474 * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Fix 2 typos.
10475
457b559e
UD
104762006-09-24 Ulrich Drepper <drepper@redhat.com>
10477
10478 * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Implement rule 4,
10479 home addresses.
10480 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Recognize
10481 IFA_F_HOMEADDRESS flag for interfaces.
10482 * include/ifaddrs.h (struct in6addrinfo): Define
10483 in6ai_homeaddress.
10484
4a132246
UD
104852006-09-21 Jakub Jelinek <jakub@redhat.com>
10486
10487 [BZ #3225]
10488 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (PTR_MANGLE3,
10489 PTR_DEMANGLE3): Define.
10490 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h (PTR_MANGLE3,
10491 PTR_DEMANGLE3): Likewise.
10492 * sysdeps/powerpc/powerpc32/__longjmp-common.S (__longjmp): Use them.
10493 * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp):
10494 Likewise.
10495 * sysdeps/powerpc/powerpc64/__longjmp-common.S (__longjmp): Likewise.
10496
c69136ae
UD
104972006-09-20 Jakub Jelinek <jakub@redhat.com>
10498
10499 * po/libc.pot: Regenerated.
10500 * po/be.po: Updated.
10501 * po/ca.po: Likewise.
10502 * po/cs.po: Likewise.
10503 * po/da.po: Likewise.
10504 * po/de.po: Likewise.
10505 * po/el.po: Likewise.
10506 * po/en_GB.po: Likewise.
10507 * po/es.po: Likewise.
10508 * po/fi.po: Likewise.
10509 * po/fr.po: Likewise.
10510 * po/gl.po: Likewise.
10511 * po/hr.po: Likewise.
10512 * po/hu.po: Likewise.
10513 * po/ja.po: Likewise.
10514 * po/ko.po: Likewise.
10515 * po/nb.po: Likewise.
10516 * po/nl.po: Likewise.
10517 * po/pl.po: Likewise.
10518 * po/pt_BR.po: Likewise.
10519 * po/ru.po: Likewise.
10520 * po/rw.po: Likewise.
10521 * po/sk.po: Likewise.
10522 * po/sv.po: Likewise.
10523 * po/tr.po: Likewise.
10524 * po/zh_CN.po: Likewise.
10525 * po/zh_TW.po: Likewise.
10526
10527 [BZ #3137]
10528 * iconv/iconv_prog.c (main): Fix spelling in error message.
10529 * iconv/iconvconfig.c (main): Likewise.
10530 * locale/programs/ld-collate.c (handle_ellipsis): Likewise.
10531 * locale/programs/ld-ctype.c (charclass_symbolic_ellipsis): Likewise.
10532 * locale/programs/localedef.c (main): Likewise.
10533 * locale/programs/repertoire.c (repertoire_read): Likewise.
10534 * timezone/zdump.c (main): Likewise.
10535 * nscd/connections.c (handle_request): Fix spelling in log message.
10536 Patch by Malcolm Parsons <malcolm.parsons@gmail.com>.
10537
83b3108c
UD
105382006-09-20 Ulrich Drepper <drepper@redhat.com>
10539
10540 * inet/inet6_option.c: Also emit linker warnings for the RFC 2292
10541 interfaces.
10542
89210b4c
AJ
105432006-09-20 Andreas Jaeger <aj@suse.de>
10544
10545 * math/libm-test.inc (lrint_test_upward): Fix typo.
10546
6624dbc0
UD
105472006-06-17 Joseph S. Myers <joseph@codesourcery.com>
10548
10549 [BZ #2592]
10550 * math/libm-test.inc (lrint_test_tonearest): New function.
10551 (lrint_test_towardzero): New function.
10552 (lrint_test_downward): New function.
10553 (lrint_test_upward): New function.
10554 (main): Run these new tests.
10555 * sysdeps/ieee754/dbl-64/s_llrint.c (__llrint): Correct rounding
10556 of values near to 0.
10557 (two52): Use double not long double.
10558 * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Likewise.
10559 * sysdeps/ieee754/flt-32/s_llrintf.c (__llrintf): Likewise.
10560 (two23): Use float not double.
10561 * sysdeps/ieee754/flt-32/s_lrintf.c (__lrintf): Likewise.
10562 (two23): Use float not double.
10563 * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl): Likewise.
10564 * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Likewise.
10565 * sysdeps/ieee754/ldbl-96/s_llrintl.c (__llrintl): Likewise.
10566 * sysdeps/ieee754/ldbl-96/s_lrintl.c (__lrintl): Likewise.
10567
60cb50c7
UD
105682006-09-20 Martin Schwidefsky <schwidefsky@de.ibm.com>
10569
10570 * sysdeps/unix/sysv/linux/s390/s390-32/makecontext.c (__makecontext):
10571 Cast sp to unsigned long to avoid compiler warning.
10572 Use __makecontext_ret function instead of a trampoline on the stack.
10573 (__makecontext_ret): New function.
10574 * sysdeps/unix/sysv/linux/s390/s390-64/makecontext.c: Likewise.
10575
33315ced
UD
105762006-09-19 Jakub Jelinek <jakub@redhat.com>
10577
10578 * elf/dl-cache.c (HWCAP_CHECK): If _DL_PLATFORMS_COUNT, but
10579 platform == -1, reject any libs with non-zero _DL_HWCAP_PLATFORM
10580 bits.
10581
1ee2ff20
UD
105822006-09-19 Ulrich Drepper <drepper@redhat.com>
10583
10584 * elf/dl-close.c (_dl_close): If dependency is not unloaded make
10585 sure no reference to the unloaded map's search list remains in the
10586 dependency's scope.
10587
105882006-09-16 Jakub Jelinek <jakub@redhat.com>
10589
10590 * elf/Makefile: Add rules to build and run unload7 test.
10591 * elf/unload7.c: New test.
10592 * elf/unload7mod1.c: New file.
10593 * elf/unload7mod2.c: New file.
10594
0466106e
UD
105952006-09-18 Jakub Jelinek <jakub@redhat.com>
10596
10597 * sysdeps/unix/sysv/linux/sys/ptrace.h (PT_GETEVENTMSG): Fix pasto.
10598 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h (PTRACE_SETOPTIONS,
10599 PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
10600 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h (PTRACE_SETOPTIONS,
10601 PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Likewise.
10602 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h (PTRACE_SETOPTIONS,
10603 PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Likewise.
10604 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h (PTRACE_SETOPTIONS,
10605 PTRACE_GETEVENTMSG): Likewise.
10606 (PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Change to the arch independent
10607 values.
10608
9c316a45
UD
106092006-09-17 Mike Frysinger <vapier@gentoo.org>
10610
0466106e
UD
10611 * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_SETOPTIONS,
10612 PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
10613 * sysdeps/unix/sysv/linux/ptrace.c (ptrace): Check PTRACE_SETOPTIONS,
10614 PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO and PTRACE_SETSIGINFO.
9c316a45
UD
10615
106162006-09-16 Jakub Jelinek <jakub@redhat.com>
10617
10618 * sysdeps/powerpc/powerpc32/register-dump.h (register_dump): Don't
10619 write '\0' to the fd.
10620 * sysdeps/mach/hurd/powerpc/register-dump.h (register_dump): Likewise.
10621 * sysdeps/powerpc/powerpc64/register-dump.h (register_dump): Likewise.
10622 Change regs to unsigned long pointer from unsigned int, fix fscr
10623 offset.
10624
fb146a76
UD
106252006-09-14 Jakub Jelinek <jakub@redhat.com>
10626
10627 * io/Makefile (CFLAGS-fstatat.c): Set.
10628 (CFLAGS-fstatat64.c): Likewise.
10629 (CFLAGS-mknodat.c): Likewise.
10630
10631 * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Comment fixes.
10632 * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
10633 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Rewritten.
10634 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Rewritten.
10635
4cd3633d
UD
106362006-09-14 Jakub Jelinek <jakub@redhat.com>
10637 Steven Munroe <sjmunroe@us.ibm.com>
fb146a76 10638
4cd3633d
UD
10639 * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add 4 new cap
10640 names to the beginning. Rename "cell" to "cellbe".
10641 (_dl_powerpc_platforms): New.
10642 * sysdeps/powerpc/dl-procinfo.h (_DL_HWCAP_FIRST): Decrease.
10643 (HWCAP_IMPORTANT): Remove power{4,5,5+} and cell.
10644 (_DL_PLATFORMS_COUNT, _DL_FIRST_PLATFORM): Define.
10645 (_DL_HWCAP_PLATFORM): Define to new mask.
10646 (_dl_platform_string, _dl_string_platform): New functions.
10647 * sysdeps/powerpc/sysdep.h (PPC_FEATURE_BOOKE, PPC_FEATURE_SMT,
10648 PPC_FEATURE_ICACHE_SNOOP, PPC_FEATURE_ARCH_2_05): Define.
10649
30aa5785
UD
106502006-09-12 Jakub Jelinek <jakub@redhat.com>
10651
10652 [BZ #2526]
10653 * README.libm: Fix a thinko in sqrt algorithm description.
10654
10655 [BZ #3143]
10656 * manual/string.texi (argz_delete): Fix prototype.
10657 Patch by <alpt@freaknet.org>.
10658
106592006-08-26 Joseph Myers <joseph@codesourcery.com>
10660
10661 [BZ #3138]
10662 * io/test-lfs.c (do_prepare): Give name_len type size_t.
10663 * io/tst-fcntl.c (do_prepare): Likewise.
10664 * posix/tst-exec.c (do_prepare): Likewise.
10665 * posix/tst-preadwrite.c (do_prepare): Likewise.
10666 * posix/tst-spawn.c (do_prepare): Likewise.
10667 * posix/tst-truncate.c (do_prepare): Likewise.
10668 * rt/tst-aio.c (do_prepare): Likewise.
10669 * rt/tst-aio64.c (do_prepare): Likewise.
10670 * stdlib/test-canon2.c (do_prepare): Give test_dir_len type
10671 size_t.
10672
d26d01d1
UD
106732006-09-09 Ulrich Drepper <drepper@redhat.com>
10674
41aba3d7
UD
10675 [BZ #2821]
10676 * time/mktime.c (guess_time_tm): Fix overflow detection.
10677 * time/Makefile (tests): Add bug-mktime1.
10678 * time/bug-mktime1.c: New file.
10679
eaa51b47 10680 [BZ #3189, #3188]
d26d01d1 10681 * misc/sys/mman.h (remap_file_pages): Make available for _GNU_SOURCE.
eaa51b47 10682 (mremap): Likewise.
d26d01d1 10683
ba40cc15
UD
106842006-09-07 Jakub Jelinek <jakub@redhat.com>
10685
2b6a801e
UD
10686 [BZ #1006]
10687 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela):
10688 Ensure relocation doesn't clobber any bits outside of the
10689 immediate field for R_SPARC_TLS_LE_HIX22, R_SPARC_WDISP30,
10690 R_SPARC_HI22 and R_SPARC_H44.
10691
469615bd
UD
10692 [BZ #2775]
10693 * malloc/malloc.c (sYSMALLOc): Only call grow_heap if
10694 (long) (MINSIZE + nb - old_size) is positive.
10695
10696 * malloc/arena.c (grow_heap): When growing bail even if new_size
10697 is negative.
10698
ba40cc15
UD
10699 [BZ #3155]
10700 * sysdeps/powerpc/powerpc32/fpu/s_lrint.S (__lrint): Don't access
10701 stack below r1.
10702
243b9ac1
UD
107032006-09-06 Jakub Jelinek <jakub@redhat.com>
10704
ba40cc15
UD
10705 * posix/regex_internal.c (re_string_reconstruct): Handle
10706 offset < pstr->valid_raw_len && pstr->offsets_needed case.
10707 Ensure no bytes read before raw_mbs array. Pass a saved copy of
10708 pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
10709 re_string_context_at.
10710 * posix/Makefile: Add rules to build and run bug-regex26 test.
10711 * posix/bug-regex26.c: New test.
10712
243b9ac1
UD
10713 * locale/programs/ld-collate.c (collate_read): Goto sym_equiv_free
10714 rather than col_sym_free. Move seqp declaration earlier.
10715
10716 * resolv/gai_suspend.c (gai_suspend): Make sure result is initialized.
10717
d052233c
UD
107182006-09-05 Jakub Jelinek <jakub@redhat.com>
10719
10720 * nscd/initgrcache.c (addinitgroupsX): Move any_success
10721 decl before first goto out.
10722
71213dc2
UD
107232006-09-04 Jakub Jelinek <jakub@redhat.com>
10724
10725 * Makerules (shlib.lds): If have-hash-style, put .hash section
10726 at the end of the RO segment.
10727
107282006-09-04 Ulrich Drepper <drepper@redhat.com>
10729
10730 * elf/do-lookup.h (do_lookup_x): Initialize symidx in case the new
10731 style hash table format is used.
10732
03eeff83
UD
107332006-09-04 Jakub Jelinek <jakub@redhat.com>
10734
10735 * resolv/res_mkquery.c (res_nmkquery): Set hp->id to statp->id after
10736 randomization rather than before.
10737 * resolv/res_init.c (res_randomid): Don't call gettimeofday here.
10738
b80770b2
UD
107392006-08-31 Jakub Jelinek <jakub@redhat.com>
10740
ba40cc15 10741 * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Add ld.so.
b80770b2
UD
10742
10743 * malloc/malloc.c (_int_malloc): Use full list insert and not
10744 shortcut which assumes the list is empty for large requests
10745 too.
10746
10747 * elf/tst-addr1.c (do_test): Allow i.dli_sname "_IO_printf".
10748
99ea5991
UD
107492006-08-30 Jakub Jelinek <jakub@redhat.com>
10750
10751 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (splice): Add offin
10752 and offout arguments to the prototype.
10753 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (splice): Likewise.
10754 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h (splice): Likewise.
10755 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (splice): Likewise.
10756 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h (splice): Likewise.
10757 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h (splice): Likewise.
10758 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (splice): Likewise.
10759 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h (splice): Likewise.
10760 * sysdeps/unix/sysv/linux/syscalls.list (splice): Adjust args string.
10761
4004a0a5
UD
107622006-08-28 Ulrich Drepper <drepper@redhat.com>
10763
950398e1
UD
10764 * elf/dl-load.c (_dl_init_paths): Expand DSTs.
10765
4004a0a5
UD
10766 * elf/dl-open.c (dl_open_worker): Allow $LIB and $PLATFORM in
10767 dlopen parameters.
10768
6e310111
UD
107692006-08-28 Jakub Jelinek <jakub@redhat.com>
10770
10771 * inet/getnameinfo.c (getnameinfo): For AF_INET, check errno
10772 only if herrno is NETDB_INTERNAL. Handle errors other than
10773 ERANGE outside of the loops, handle TRY_AGAIN.
10774
10775 * locale/programs/ld-ctype.c (translit_flatten): Issue error
10776 if other's ctype category was missing.
10777 * locale/programs/ld-collate.c (collate_read): Return if
10778 copy_locale's collate category is missing.
10779
07014fca
UD
107802006-08-27 Ulrich Drepper <drepper@redhat.com>
10781
10782 [BZ #2684]
10783 * malloc/malloc.c (public_rEALLOc): Try harder by using other
10784 arenas if allocation failed.
10785 Patch mostly by Jan Edler <jan.edler@indexengines.com>.
10786
71663747
UD
107872006-08-26 Ulrich Drepper <drepper@redhat.com>
10788
41999a1a
UD
10789 * malloc/malloc.c (bin_at): Rewrite to be more clear and to not
10790 waste bins[0..1].
10791 (malloc_state): Reduce bins size by 2.
10792 (_int_malloc): Fix test for large enough buffer for early termination.
10793 When no unsorted block matches perfectly and an exiting block has
10794 to be split, use full list insert and not shortcut which assumes
10795 the list is empty.
10796
71663747
UD
10797 * locale/programs/ld-ctype.c (ctype_read): Better patch for read
10798 failure.
10799
93b53ca2
UD
108002006-08-24 Ulrich Drepper <drepper@redhat.com>
10801
f5a82772
UD
10802 * locale/programs/ld-ctype.c (ctype_read): If CTYPE is NULL, don't
10803 do anything.
10804
2ac9ca73
UD
10805 * sysdeps/generic/ldsodefs.h (DL_ADDR_SYM_MATCH): For undefined
10806 symbol require exact match (these are PLTs).
10807 * sysdeps/unix/sysv/linux/powerpc/powerpc64/ldsodefs.h
10808 (_dl_ppc64_addr_sym_match): Likewise.
10809
93b53ca2
UD
10810 [BZ #2683]
10811 * elf/dl-addr.c (_dl_addr): Don't ignore all undefined symbols.
10812 If symbol has a value use it.
10813 * elf/tst-dladdr1.c: New file.
10814 * elf/Makefile: Add rules to build and run tst-addr1.
10815
7463d5cb
UD
108162006-08-24 Jakub Jelinek <jakub@redhat.com>
10817
10818 * malloc/malloc.c (sYSMALLOc): Avoid infinite loop if MMAP
10819 keeps failing and heap growth or new heap creation isn't
10820 successful either.
10821 * malloc/tst-malloc.c (main): Add new tests.
10822
542a6f62
UD
108232006-08-24 Ulrich Drepper <drepper@redhat.com>
10824
10825 [BZ #2734]
10826 * sysdeps/i386/bits/byteswap.h (__bswap_32): Use same conditions
10827 as in the x86-64 code to use bswap.
10828
aa2c6b6d
UD
108292006-05-21 Joseph S. Myers <joseph@codesourcery.com>
10830
24982798 10831 [BZ #2680]
aa2c6b6d
UD
10832 * posix/unistd.h (getlogin_r): Condition on __USE_POSIX199506, not
10833 __USE_UNIX98.
10834 * posix/bits/unistd.h: Likewise.
10835
59776aef
UD
108362006-05-15 Mike Frysinger <vapier@gentoo.org>
10837
10838 [BZ #2751]
10839 * string/strchr.c: Add cast to avoid warning.
10840
e404fb16
UD
108412006-08-21 Ulrich Drepper <drepper@redhat.com>
10842
10843 * malloc/malloc.c (DEFAULT_MMAP_THRESHOLD_MAX): For 32-bit
bd2c2341 10844 platforms define as 512K. For 64-bit platforms as 32MB. The lower
e404fb16
UD
10845 limit is needed to avoid the exploding of the address space
10846 requirement for secondary heaps.
10847 * malloc/arena.c (HEAP_MAX_SIZE): Define using
10848 DEFAULT_MMAP_THRESHOLD_MAX if it is defined.
10849
376e973a
UD
108502006-07-30 Joseph S. Myers <joseph@codesourcery.com>
10851
10852 [BZ #3018]
10853 * Makerules (depfiles): Handle extra-test-objs the same as
10854 extra-objs.
10855 (common-mostlyclean): Likewise.
10856 * dlfcn/Makefile (extra-objs): Add modules to extra-test-objs
10857 instead.
10858 * elf/Makefile (extra-objs): Likewise.
10859 * stdlib/Makefile (extra-objs): Likewise.
10860
240c62a7
UD
108612006-08-14 Eric Blake <ebb9@byu.net>
10862
10863 [BZ #3044]
10864 * misc/error.h: Assume C89 or better.
10865 * misc/error.c: Likewise.
10866
3997b7c4
UD
108672006-08-21 Ulrich Drepper <drepper@redhat.com>
10868
10869 [BZ #3040]
10870 * sysdeps/unix/sysv/linux/openat.c: Fix compilation if
10871 __ASSUME_ATFCTS is defined.
10872
8a6537b0
UD
108732006-08-19 Ulrich Drepper <drepper@redhat.com>
10874
72320021
UD
10875 * malloc/malloc.c (_int_malloc): Limit number of unsorted blocks
10876 to sort in each call.
10877
ed3691ba
UD
10878 * nis/nss_nis/nis-service.c (internal_nis_getservent_r): . If map
10879 is empty simply return and use next service.
10880 * nis/nss_nis/nis-rpc.c (internal_nis_getrpcent_r): Likewise.
10881
8a6537b0
UD
10882 * locale/programs/charmap.c (charmap_read): Add new parameter. It
10883 tells us when not finding a charmap file is an error.
10884 * locale/programs/charmap.h: Adjust charmap_read prototype.
10885 * iconv/iconv_prog.c (main): Tell charmap_read it's no error if we
10886 cannot find a charmap.
10887 * locale/programs/localedef.c (main): Adjust charmap_read call.
10888
ad2a3c07
UD
108892006-08-15 Jakub Jelinek <jakub@redhat.com>
10890
10891 * sysdeps/unix/sysv/linux/sparc/sparc64/pause.c: Use
10892 sysdeps/posix/pause.c implementation instead.
10893
108942006-08-09 Jakub Jelinek <jakub@redhat.com>
10895
10896 * sysdeps/unix/nice.c (nice): Transform EACCES errno from setpriority
10897 to EPERM.
10898
f17efcb4
UD
108992006-08-13 Andreas Schwab <schwab@suse.de>
10900
10901 * sysdeps/powerpc/powerpc32/dl-trampoline.S (_dl_runtime_resolve):
10902 Don't clobber caller's LRSAVE.
10903 (_dl_prof_resolve): Likewise.
10904
107b8a92
UD
109052006-08-14 Ulrich Drepper <drepper@redhat.com>
10906
10907 [BZ #1996]
10908 * libio/memstream.c (open_memstream): Allocate initial buffer with
10909 calloc.
10910 * libio/wmemstream.c (open_wmemstream): Likewise.
10911 * libio/strops.c: Pretty printing.
10912 (_IO_str_overflow): Clear uninitialized part of the new buffer.
10913 (enlarge_userbuf): New function.
10914 (_IO_str_seekoff): Call it if seek position is larger than current
10915 buffer.
10916 * libio/wstrops.c: Likewise.
10917 * libio/vasprintf.c: Add comment as to why we do not have to use
10918 calloc instead of malloc to allocate initial buffer.
10919 * libio/Makefile (tests): Add bug-memstream1 and bug-wmemstream1.
10920 * libio/bug-memstream1.c: New file.
10921 * libio/bug-wmemstream1.c: New file.
10922
fa3ac53f
UD
109232006-08-13 Ulrich Drepper <drepper@redhat.com>
10924
89993734
UD
10925 * libio/wstrops.c: Remove dead macro definitions and comments.
10926 * libio/strops.c: Likewise.
10927
fa3ac53f
UD
10928 [BZ #2764]
10929 * login/utmpname.c (__utmpname): Remove unnecessary test.
10930
f99ed760
UD
109312006-06-08 Joseph Myers <jsm28@gcc.gnu.org>
10932
10933 [BZ #2832]
10934 * math/gen-libm-test.pl (clean_up_number): Do not remove trailing
10935 0s from integers.
10936
109372006-08-13 Ulrich Drepper <drepper@redhat.com>
10938
10939 [BZ #2987]
10940 * sysdeps/unix/sysv/linux/clock_settime.c: Add code to use syscall
10941 for CPU clocks.
10942 * sysdeps/unix/clock_settime.c: Add support for platform-specific
10943 setting of CPU clocks.
10944
4c3f81d0
UD
109452006-06-23 Paul Eggert <eggert@cs.ucla.edu>
10946
10947 [BZ #2841]
10948 * sysdeps/generic/stdint.h (UINT8_C, UINT16_C): Don't append 'U',
10949 since C99 requires the result to promote to 'int' when uint_least8_t
10950 and uint_least16_t promote to 'int'.
10951
cd8e60ce
UD
109522006-08-12 Ulrich Drepper <drepper@redhat.com>
10953
9a5c46e8
UD
10954 [BZ #3013]
10955 * locale/programs/ld-ctype.c (ctype_output): Adjust alignments, fix
10956 lenght of one output field, correct bitmask creation.
10957 * locale/programs/ld-time.c: Add alignment.
10958
cd8e60ce
UD
10959 [BZ #2997]
10960 * misc/error.c: Add space between program name and message if file
10961 name is missing.
10962
9a528884
UD
109632006-08-03 Eric Blake <ebb9@byu.net>
10964
10965 [BZ #2998]
10966 * misc/error.c (error_tail) [_LIBC]: Avoid invalid free.
10967
1d05c2fb
UD
109682006-08-09 Ulrich Drepper <drepper@redhat.com>
10969
0c1c6c6c
UD
10970 * malloc/memusagestat.c: Silence warnings.
10971
1d05c2fb
UD
10972 * malloc/malloc.c: Dynamically size mmap treshold if the program
10973 frees mmaped blocks.
10974 Patch by Valerie Henson and Arjan van de Ven.
10975
2d1e6277
UD
109762006-08-08 Jakub Jelinek <jakub@redhat.com>
10977
be7ffd91
UD
10978 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (O_DIRECT): Protect with
10979 __USE_GNU.
10980
2d1e6277
UD
10981 * stdlib/strtol_l.c (__strtol_ul_max_tab, __strtol_ul_rem_tab,
10982 __strtol_ull_max_tab, __strtol_ull_rem_tab): Declare.
10983 (DEF): Don't put the var into .gnu.linkonce.r.* section.
10984 Only provide var definitions in strtol_l (or for *ull*
10985 in strtoll_l).
10986
10987 * stdio-common/bug16.c (tests): New array.
10988 (do_tests): Allow the first hexadecimal digit
10989 to be 1, 2, 4 or 8. Do 3 additional tests.
10990
10991 * sysdeps/s390/fpu/libm-test-ulps: Update.
10992
10993 * sysdeps/unix/sysv/linux/s390/s390-32/fchownat.c (fchownat): Use
10994 fchownat syscall if available.
10995 * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat): Likewise.
10996 * sysdeps/unix/sysv/linux/sh/fchownat.c (fchownat): Likewise.
10997 * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Likewise.
10998
d0ccde25
UD
109992006-08-07 Ulrich Drepper <drepper@redhat.com>
11000
11001 * nis/nis_xdr.c: Avoid some function calls.
11002
13a0293d 110032006-08-07 Jakub Jelinek <jakub@redhat.com>
3f7a21a9 11004 Ulrich Drepper <drepper@redhat.com>
13a0293d
UD
11005
11006 * nis/nis_call.c (rec_dirsearch) [case LOWER_NAME]: Don't take
11007 short cut if only one name component is stripped away.
11008
bd1ebae0
UD
110092006-08-07 Ulrich Drepper <drepper@redhat.com>
11010
11011 * nis/nis_call.c: Minor cleanups throughout.
2d1e6277 11012 (rec_dirsearch) [case HIGHER_NAME]: Correctly size ndomain array.
bd1ebae0
UD
11013 (first_shoot): Add search_parent_first parameter. Only if it is set
11014 search parent server first.
11015 If directory for table found through cold start cache is not the same
11016 as referenced in the cache, don't use it.
11017 (__nisfind_server): Take additional parameter. Pass it on to
11018 first_shoot.
11019 (__prepare_niscall): Adjust __nisfind_server call.
11020 * nis/rpcsvc/nislib.h: Adjust __nisfind_server prototype.
11021 * nis/nis_table.c: Adjust __nisfind_server call.
11022 * nis/nis_lookup.c: Likewise.
11023 (nis_lookup): Don't loop endlessly if name is reduced to ".".
11024
f1762c0c
UD
110252006-08-03 Ulrich Drepper <drepper@redhat.com>
11026
fe710250
UD
11027 [BZ #2182]
11028 * math/s_cacosh.c: Return values from positive branch.
11029 * math/s_cacoshf.c: Likewise.
11030 * math/s_cacoshl.c: Likewise.
11031
a5852807
UD
11032 [BZ #2883]
11033 * sysvipc/sys/msg.h: Change return value to ssize_t.
11034 * sysdeps/unix/sysv/linux/msgrcv.c: Likewise.
fe710250
UD
11035 * sysvipc/msgrcv.c: Likewise.
11036 * include/sys/msg.h: Likewise.
39571a13 11037
6c215a8d
UD
11038 * grp/initgroups.c (internal_getgrouplist): Remove unnecessary
11039 test introduced in patch for bz #661.
39571a13 11040 (getgrouplist): Simplify code a bit. Don't allocate one additional
f13bfdd0 11041 element for NEWGROUPS.
6c215a8d 11042
9c06eb66
UD
11043 [BZ #2908]
11044 * stdio-common/printf_fphex.c (__printf_fphex): When rounding up
11045 'f', use '1' as leading digit not '\1'.
11046 * stdio-common/Makefile (tests): Add bug16.
11047 * stdio-common/bug16.c: New file.
11048
11049 [BZ #2914]
11050 * sysdeps/unix/sysv/linux/gethostid.c: Don't define OLD_HOSTIDFILE
11051 and don't try to open it. The patch introducing the macro
11052 contained a bug and used the same file name as the new file
11053 instead of using /var/adm/hostid. Nobody complaint so I'm taking
11054 this out completely.
11055
11056 [BZ #2926]
11057 * assert/assert.h: Move cast to void inside ?: to quiet gcc.
11058 Patch by Jerry James <Jerry.James@usu.edu>.
11059
f1762c0c
UD
11060 * rt/Makefile (tests): Add tst-clock2.
11061 * rt/tst-clock2.c: New file.
11062
11063 [BZ #2978]
11064 * resolv/gai_notify.c (__gai_notify_only): Copy memory for thread
11065 function and its parameters and pass it to new thread.
11066 (__gai_notify): Add support for alternative waiting for completion.
11067 * resolv/gai_suspend.c (gai_suspend): Add support for alternative
11068 waiting for completion.
11069 * resolv/getaddrinfo_a.c: Likewise.
11070 * resolv/gai_misc.h (struct waitlist): Don't add cond if alternative
11071 waiting for completion is used.
11072 * resolv/gai_misc.c: Allow overwriting code to start helper thread.
11073 * resolv/gai_cancel.c: Include <gai_misc.h> not "gai_misc.h".
11074 * resolv/gai_error.c: Likewise.
11075 * resolv/gai_sigqueue.c: Likewise.
11076
83ae6b40
RM
110772006-08-02 Thomas Schwinge <tschwinge@gnu.org>
11078
0e4e62fe 11079 * hurd/getdport.c (__getdport): Don't return EBADF; instead set
f1762c0c 11080 errno to EBADF and return MACH_PORT_NULL.
83ae6b40 11081
82ee37c5
UD
110822006-06-23 Joseph Myers <joseph@codesourcery.com>
11083
11084 [BZ #2980]
f1762c0c 11085 * posix/Makefile (CFLAGS-waitid.c): Add -fasynchronous-unwind-tables.
82ee37c5
UD
11086
110872006-08-02 Ulrich Drepper <drepper@redhat.com>
11088
11089 * elf/dl-addr.c (_dl_addr): If GNU-style hash tables are present,
11090 walk them instead of the symbol table.
11091
7bb1b2c9
UD
110922006-08-01 Ulrich Drepper <drepper@redhat.com>
11093
f13bfdd0 11094 [BZ #2098]
fbbc73b3
UD
11095 * nscd/initgrcache.c (addinitgroupsX): Judge successful lookups by
11096 status of NSS calls, not the number of returned entries.
11097
a4518922
UD
11098 * sysdeps/unix/sysv/linux/syscalls.list: Remove add_key,
11099 request_key, keyctl.
7bb1b2c9 11100
b06e7e9a
UD
111012006-07-31 Ulrich Drepper <drepper@redhat.com>
11102
11103 * sysdeps/unix/sysv/linux/dl-osinfo.h: Remove unnecessary include.
11104
f1227969
UD
111052006-07-16 Jeff Bailey <jbailey@ubuntu.com>
11106
11107 * elf/tst-auditmod1.c: Fix typo in #error.
11108
82ae2712
UD
111092006-07-31 Ulrich Drepper <drepper@redhat.com>
11110
f1227969
UD
11111 * elf/tst-auditmod1.c: Remove code for unsupported architectures.
11112
82ae2712
UD
11113 * iconvdata/run-iconv-test.sh: Run cmp in C locale.
11114
a1260d92
UD
111152006-07-20 Adam Nemet <anemet@caviumnetworks.com>
11116
11117 * stdlib/test-canon.c (do_test): Close fd before unlinking file so
b06e7e9a 11118 that the directory is empty even on non-POSIX filesystems.
a1260d92 11119
d2de41fe
UD
111202006-07-31 Ulrich Drepper <drepper@redhat.com>
11121
13669f2c
UD
11122 * elf/dl-open.c (dl_open_worker): Add branch prediction.
11123
d2de41fe
UD
11124 * nis/nss_compat/compat-grp.c: Avoid unnecessary setgrent calls into
11125 the backend NSS module. If backend setgrent call failed, don't have
11126 internal_setgrent fail. Just remember this until it is needed.
11127 * nis/nss_compat/compat-pwd.c: Likewise.
11128 * nis/nss_compat/compat-spwd.c: Likewise.
11129
b894c2ea
RM
111302006-07-30 Roland McGrath <roland@redhat.com>
11131
11132 * sysdeps/unix/sysv/linux/ia64/sigsuspend.c: File removed.
11133 * sysdeps/unix/sysv/linux/x86_64/sigsuspend.c: File removed.
11134 * sysdeps/unix/sysv/linux/s390/s390-64/sigsuspend.c: File removed.
11135 * sysdeps/unix/sysv/linux/sparc/sparc64/sigsuspend.c: File removed.
11136
11137 * sysdeps/unix/sysv/linux/not-cancel.h (pause_not_cancel): New macro.
11138 (nanosleep_not_cancel): New macro.
11139 (sigsuspend_not_cancel): new macro.
11140 * sysdeps/unix/sysv/linux/sigsuspend.c [__ASSUME_REALTIME_SIGNALS]
11141 (do_sigsuspend): Define as inline.
11142 (__sigsuspend): Always use do_sigsuspend.
11143 [! NO_CANCELLATION] (__sigsuspend_nocancel): New function.
11144 * include/signal.h: Declare __sigsuspend_nocancel.
11145 * sysdeps/posix/pause.c
11146 [! NO_CANCELLATION] (__pause_nocancel): New function.
11147
11148 * include/unistd.h (__pause_nocancel): Add attribute_hidden.
11149 * include/time.h (__nanosleep_nocancel): Likewise.
11150
c10d32c8
UD
111512006-07-30 Ulrich Drepper <drepper@redhat.com>
11152
11153 * locale/programs/localedef.c (add_to_readlist): Rename local
11154 variables to avoid confusion.
11155
11156 * locale/programs/charmap.c (charmap_read): Emit error message if
11157 charmap couldn't be found or read.
11158
6822f056
UD
111592006-07-28 Ulrich Drepper <drepper@redhat.com>
11160
d5ba53f9
UD
11161 * sysdeps/unix/sysv/linux/kernel-features.h: Define
11162 __ASSUME_FUTEX_LOCK_PI.
11163 * include/time.h: Declare __nanosleep_nocancel.
11164 * include/unistd.h: Declare __pause_nocancel.
11165
6822f056
UD
11166 * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Use this instead of
11167 LDFLAGS. Add -lgcc_eh and libc_nonshared (again) to make sure we
11168 get the __stack_chk_fail_local definition when it's needed.
11169
3a975ff5
UD
111702006-07-26 Ulrich Drepper <drepper@redhat.com>
11171
6de1f625
UD
11172 * dlfcn/Makefile: Add rules to build and run bug-atexit3.
11173 * dlfcn/bug-atexit3.c: New file.
11174 * dlfcn/bug-atexit3-lib.cc: New file.
11175
3a975ff5
UD
11176 * dlfcn/dlmopen.c (dlmopen_doit): Don't allow RTLD_GLOBAL to be
11177 used when the namespace is not the base namespace.
11178
a92b1166
UD
111792006-07-26 Gavin Romig-Koch <gavin@redhat.com>
11180
11181 * stdlib/cxa_atexit.c (__new_exitfn_called): New variable.
11182 (__new_exitfn): Bump it in every successful call.
11183 * stdlib/cxa_finalize.c (__cxa_finalize): If destructor registered
11184 more exit handlers, call them right away.
11185 * stdlib/exit.h: Declare __new_exitfn_called.
11186
a08336fb
UD
111872006-07-25 Ulrich Drepper <drepper@redhat.com>
11188
bd3754dc
UD
11189 * stdlib/cxa_finalize.c (__cxa_finalize): Fix race condition when
11190 calling registered handler.
11191
a08336fb
UD
11192 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Fix comment.
11193 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
11194 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
11195 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
11196 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
11197 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
11198 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
11199 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
11200
871b9158
UD
112012006-07-10 Ulrich Drepper <drepper@redhat.com>
11202
11203 * elf/dl-lookup.c (dl_new_hash): New functions.
11204 (_dl_lookup_symbol_x): Rename hash to old_hash and don't compute
11205 value here. Compute new-style hash value. Pass new hash value
11206 and reference to variable with the old value to do_lookup_x.
11207 (_dl_setup_hash): If DT_GNU_HASH is defined, use it and not
11208 old-style hash table.
11209 (_dl_debug_bindings): Pass new hash value and reference to variable
11210 with the old value to do_lookup_x.
11211 * elf/do-lookup.h (do_lookup_x): Accept additional parameter with
11212 new-style hash value and change old-style hash value parameter to
11213 be a reference. Reoganize functions to determine whether
11214 new-style hash table is available. Only fall back on old-style
11215 table. If old-style hash value is needed, compute it here.
11216 * elf/dynamic-link.h (elf_get_dynamic_info): Relocate DT_GNU_HASH
11217 entry.
11218 * elf/elf.h: Define SHT_GNU_HASH, DT_GNU_HASH, DT_TLSDEC_PLT,
11219 DT_TLSDEC_GOT. Adjust DT_ADDRNUM.
11220 * include/link.h (struct link_map): Add l_gnu_bitmask_idxbits,
11221 l_gnu_shift, l_gnu_bitmask, l_gnu_buckets and l_gnu_chain_zero.
11222 * Makeconfig: If linker supports --hash-style option add it to all
11223 linker command lines to build DSOs.
11224 * config.make.in: Define have-hash-style.
11225 * configure.in: Test whether linker supports --hash-style option.
11226
11227 * elf/dl-misc.c (_dl_name_match_p): Make MAP parameter const.
11228 * sysdeps/generic/ldsodefs.h: Adjust prototype.
11229
a1f0de82
UD
112302006-06-27 Ulrich Drepper <drepper@redhat.com>
11231
361a3706
UD
11232 * elf/dl-load.c (open_path): Fix test to determine whether DSO is
11233 auditing.
11234
a1f0de82
UD
11235 * elf/dl-load.c (_dl_map_object): Try harder to avoid looking at
11236 RPATH of main map twice.
11237
4259230f
UD
112382006-06-22 Ulrich Drepper <drepper@redhat.com>
11239
11240 * intl/dcigettext.c (DCIGETTEXT): If _nl_find_msg returns -1 don't
11241 look further, return original strings.
11242 (_nl_find_msg): Do not return found translation if the conversion
11243 failed. Either signal the string is unusable or that something went
11244 wrong and the original should be used.
11245
112462006-06-21 Ulrich Drepper <drepper@redhat.com>
11247
11248 * string/_strerror.c (__strerror_r): Add __builtin_expect.
11249
f9b7a98b
UD
112502006-06-14 Jakub Jelinek <jakub@redhat.com>
11251
11252 [BZ #2766]
11253 * misc/insremque.c (insque): Handle prev == NULL.
11254 * misc/Makefile (tests): Add tst-insremque.
11255 * misc/tst-insremque.c: New test.
11256
ac55a25b
UD
112572006-06-17 Ulrich Drepper <drepper@redhat.com>
11258
11259 [BZ #2792]
11260 * elf/dl-deps.c (expand_dst): Rename __cnt variable to not
11261 conflict with DL_DST_REQUIRED.
11262
02f366b3
UD
112632006-06-16 Ulrich Drepper <drepper@redhat.com>
11264
11265 * nis/nis_subr.c (nis_getnames): Fix the implementation to better
11266 match what Solaris does.
11267
9009e8f8
UD
112682006-06-04 Ulrich Drepper <drepper@redhat.com>
11269
1b8373f4
UD
11270 * sysdeps/posix/spawni.c (__spawni): Use local_seteuid and
11271 local_setegid instead of seteuid and setegid.
11272 * sysdeps/generic/local-setxid.h: New file.
11273 * sysdeps/unix/sysv/linux/local-setxid.h: New file.
11274
7231452e
UD
11275 * sysdeps/posix/spawni.c (__spawni): Use non-cancelable interfaces.
11276
9009e8f8 11277 * string/Makefile (tests): Add bug-envz1.
02f366b3 11278 * string/bug-envz1.c: New file.
9009e8f8 11279
33e63e79
UD
112802006-06-02 Jakub Jelinek <jakub@redhat.com>
11281
11282 * posix/regex_internal.c (re_string_skip_chars): If no character has
11283 been converted at all, set *last_wc to WEOF. If mbrtowc failed, set wc
11284 to the byte which couldn't be converted.
11285 (re_string_reconstruct): Don't clear valid_raw_len before calling
11286 re_string_skip_chars. If wc is WEOF after re_string_skip_chars, set
11287 tip_context using re_string_context_at.
11288 * posix/Makefile: Add rules to build and run bug-regex25 test.
11289 * posix/bug-regex25.c: New test.
11290
fdc02996
UD
112912006-06-02 Ryan S. Arnold <rsa@us.ibm.com>
11292
11293 [BZ #2703]
11294 * string/envz.c (envz_strip): Correct erroneously reversed src
11295 and dest parameters to memmove() invocation.
11296
902c4291
UD
112972006-05-30 Jakub Jelinek <jakub@redhat.com>
11298
11299 * nscd/nscd.h (prune_cache): Add fd argument to prototype.
11300 * nscd/nscd.c (parse_opt): Read response from INVALIDATE request
11301 to make sure the database has been already invalidated.
11302 * nscd/cache.c (prune_cache): Add fd argument. Write response to fd
11303 after the cache has been invalidated. Use pthread_mutex_lock rather
11304 than pthread_mutex_trylock if fd != -1.
11305 * nscd/connections.c (invalidate_cache): Add fd argument, write
11306 response to fd if not calling prune_cache, pass fd to prune_cache.
11307 (handle_request): Adjust invalidate_cache caller.
11308 (nscd_run): Pass -1 as fd to prune_cache.
11309
ecc68568
UD
113102006-05-30 Ulrich Drepper <drepper@redhat.com>
11311
11312 * sysdeps/posix/getaddrinfo.c (gaiconf_init): Initialize bits in
11313 the correct place.
11314
9636a217
UD
113152006-05-29 Ulrich Drepper <drepper@redhat.com>
11316
11317 * nscd/nscd.h (struct database_dyn): Add prunelock field.
11318 * nscd/cache.c (prune_cache): Take prunelock before starting the
11319 work. Just return in case it is already taken.
cabfcde1 11320 * nscd/connections.c (dbs): Initialize .prunelock.
9636a217 11321
6bcb494a
UD
113222006-05-25 Ulrich Drepper <drepper@redhat.com>
11323
672d5a63 11324 * nis/nis_removemember.c (nis_removemember): Avoid unnecessary
ecc68568 11325 copying. No need to allocate new array for group members. Just
672d5a63
UD
11326 move the pointers and update the size.
11327
1663b44f
UD
11328 * nis/nis_addmember.c (nis_addmember): Avoid unnecessary copying.
11329 Avoid memory leak in case realloc fails. Simplification for
11330 better code generation.
11331
11332 Avoid deprecation warning because of libc_hidden_proto for
11333 inet6_option_alloc.
11334 * inet/inet6_option.c (option_alloc): Renamed from
11335 inet6_option_alloc. Made static.
9636a217 11336 (inet6_option_alloc): Now a simple wrapper around option_alloc.
1663b44f
UD
11337 (inet6_option_append): Call option_alloc.
11338 * include/netinet/in.h: Remove libc_hidden_proto for
11339 inet6_option_alloc.
11340
6bcb494a
UD
11341 * nis/nis_callback.c (__nis_create_callback): Always call xdr_free
11342 for cleanup when cb!=NULL [Coverity CID 233].
11343
aec6b246
UD
113442006-05-24 Ulrich Drepper <drepper@redhat.com>
11345
07bfff20
UD
11346 [BZ #2693]
11347 * inet/Makefile (routines): Add inet6_opt and inet6_rth.
11348 * inet/Versions (libc, GLIBC_2.5): Add inet6_opt_init,
11349 inet6_opt_append, inet6_opt_finish, inet6_opt_set_val, inet6_opt_next,
11350 inet6_opt_find, inet6_opt_get_val, inet6_rth_space, inet6_rth_init,
11351 inet6_rth_add, inet6_rth_reverse, inet6_rth_segments,
11352 and inet6_rth_getaddr.
11353 * inet/netinet/ip6.h (struct ip6_rthdr0): Make ip6r0_addr a flexible
11354 array.
11355 * inet/netinet/in.h (struct ip6_mtuinfo): Define.
11356 Mark inet6_option_* interfaces as deprecated.
11357 Declare inet6_opt_init, inet6_opt_append, inet6_opt_finish,
11358 inet6_opt_set_val, inet6_opt_next, inet6_opt_find, inet6_opt_get_val,
11359 inet6_rth_space, inet6_rth_init, inet6_rth_add, inet6_rth_reverse,
11360 inet6_rth_segments, and inet6_rth_getaddr.
11361 * inet/inet6_opt.c: New file.
11362 * inet/inet6_rth.c: New file.
11363
11364 * inet/netinet/icmp6.h: Pretty printing.
11365
aec6b246
UD
11366 [BZ #2683]
11367 * elf/dl-addr.c (_dl_addr): Don't match undefined references.
11368
2d571cd1
UD
113692006-05-23 Ulrich Drepper <drepper@redhat.com>
11370
062e719b
UD
11371 * nis/nis_lookup.c (nis_lookup): Use __prepare_niscall instead of
11372 doing it all here. When server does not know the answer do not
11373 fail immediate, try parent first.
11374
2d571cd1
UD
11375 * nis/nis_domain_of_r.c (nis_domain_of_r): Add missing buffer
11376 overflow test.
11377
a17fa610
UD
113782006-05-20 Ulrich Drepper <drepper@redhat.com>
11379
11380 * nis/nis_call.c (__prepare_niscall): New function. Split out
11381 from __do_niscall.
11382 * nis/nis_table.c (__create_ib_request): Renamed from create_ib_request
11383 and exported.
11384 (__follow_path): New function. Split out from nis_list.
11385 * nis/nis_xdr.h: Add libnsl_hidden_proto for _xdr_ib_request and
11386 _xdr_nis_result.
11387 * nis/nis_xdr.c: Add libnsl_hidden_def for _xdr_ib_request and
11388 _xdr_nis_result.
11389 * nis/libnsl.h: Declare __prepare_niscall, __create_ib_request,
11390 and __follow_path.
11391 * nis/Versions: Export __prepare_niscall, __create_ib_request,
11392 __follow_path, __do_niscall3, _xdr_ib_request, and _xdr_nis_result
11393 from libnsl for version GLIBC_PRIVATE.
11394 * nis/nisplus-parser.h: Remove _nss_nisplus_parse_pwent_chk.
11395 Remove entry parameter from _nss_nisplus_parse_pwent and
11396 _nss_nisplus_parse_grent.
11397 * nis/nss_nisplus/nisplus-parser.c: Likewise.
11398 * nis/nss_nisplus/nisplus-pwd.c: Remove support for SETENT_BATCH_READ
11399 again. Rewrite getpwent handling to not use nis_first_entry and
11400 nis_next_entry. Roll out own niscall handling.
11401 * nis/nss_nisplus/nisplus-grp.c: Likewise.
11402
11403 * sunrpc/xdr_rec.c: Fix typo in comment.
11404
429bb183
UD
114052006-05-19 Ulrich Drepper <drepper@redhat.com>
11406
1d4f062a
UD
11407 * nis/nis_call.c (__do_niscall3): Avoid code duplication in error
11408 handling.
11409
101cc598
UD
11410 * nis/nis_callback.c (internal_nis_do_callback): Don't use malloc
11411 to allocate memory for my_pollfd. Better initialization of
11412 cb_is_running. Use TEMP_FAILURE_RETRY.
11413
f50fa10c
UD
11414 * malloc/memusage.sh (memusageso): Add quotes.
11415 (memusagestat): Likewise.
11416 * debug/xtrace.sh (pcprofileso): Likewise.
11417 (pcprofiledump): Likewise.
11418 * debug/Makefile ($(objpfx)xtrace): Use $LIB in SLIBDIR
11419 replacement.
11420 * malloc/Makefile ($(objpfx)memusage): Likewise.
11421
882bfe73
UD
11422 * nis/nis_callback.c (__nis_create_callback): Calls to
11423 svcudp_bufcreate and svctcp_create can fail. Free ->xprt if
11424 asprintf call fails.
11425
429bb183
UD
11426 * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_sendreq): Make sure
11427 no uninitialized memory is passed to sendto.
11428
f90de831
UD
114292006-05-18 Ulrich Drepper <drepper@redhat.com>
11430
11431 * nis/nis_callback.c (__nis_create_callback): Use asprinf instead
11432 of snprintf+strdup. Handle OOM.
11433 * nis/nis_callback.c (__nis_create_callback): Allocate cb and
11434 cb->serv together. Remove now obsolete free calls.
11435 (__nis_destroy_callback): Remove now obsolete free call.
11436
a17fa610 114372006-05-18 David Woodhouse <dwmw2@redhat.com>
6e2a7825
UD
11438
11439 * sysdeps/posix/getaddrinfo.c: Add unique labels to the default
11440 RFC3484 precedence table for fec0::/10 and fc00::/7 (site-local
11441 and ULA respectively). Set precedence for IPv4 address to 10 as
11442 defined in RFC3484 for preferring IPv6.
11443 * posix/gai.conf: Update to match the new default tables.
11444
758b9d7e
UD
114452006-05-18 Jakub Jelinek <jakub@redhat.com>
11446
11447 * nis/nss_compat/compat-pwd.c (internal_setpwent): If nss_set*ent
11448 returned NSS_STATUS_UNAVAIL, still return NSS_STATUS_SUCCESS.
11449 * nis/nss_compat/compat-spwd.c (internal_setspent): Likewise.
11450 * nis/nss_compat/compat-grp.c (internal_setgrent): Likewise.
11451
11452 * nis/nss_compat/compat-initgroups.c (nss_setgrent, nss_endgrent):
11453 Removed.
11454 (init_nss_interface): Remove initialization of these variables.
11455
114562006-05-18 Ulrich Drepper <drepper@redhat.com>
11457
11458 * nis/nis_call.c (rec_dirsearch): Little optimization: pull
11459 nis_free_directory forward to avoid duplication.
11460
388c779e
UD
114612006-05-17 Ulrich Drepper <drepper@redhat.com>
11462
5f1724bf
UD
11463 * nis/nis_call.c (rec_dirsearch): Handle __nis_finddirectory and
11464 rec_dirsearch returning NULL.
11465 (first_shoot): Handle __nis_finddirectory returning NULL.
11466 (__nisfind_server): Fix leak when rec_dirsearch returns NULL.
11467
388c779e
UD
11468 * sysdeps/unix/sysv/linux/sys/inotify.h: Define IN_CLOSE, IN_MOVE,
11469 IN_ONLYDIR, IN_DONT_FOLLOW, and IN_MASK_ADD.
11470
360d5cf4
UD
114712006-05-17 Jakub Jelinek <jakub@redhat.com>
11472
11473 * sunrpc/key_call.c (getkeyserv_handle): Call auth_destroy if
11474 pid changed.
11475
88dbff8c
UD
114762006-05-15 Ulrich Drepper <drepper@redhat.com>
11477
6f8a7dff
UD
11478 * include/rpc/pmap_prot.h: Mark all functions as hidden.
11479
11480 * nscd/nscd_initgroups.c: Mark __gr_map_handle as hidden.
11481 * nscd/nscd_getgr_r.c: Likewise.
11482
11483 * include/rpc/pmap_rmt.h: Mark all functions as hidden.
11484
11485 * nscd/nscd_getai.c (__hst_map_handle): Mark as hidden.
11486 * nscd/nscd_gethst_r.c (__hst_map_handle): Likewise.
11487
11488 * stdlib/longlong.h (__clz_tab): Mark as hidden.
11489
11490 * iconv/gconv_int.h: Mark __gconv_lock as hidden.
11491
360d5cf4 11492 * include/rpc/key_prot.h: Mark all _internal functions as hidden.
8263ed62
UD
11493
11494 * include/rpc/auth.h: Mark xdr_des_block_internal and
11495 xdr_opaque_auth_internal as hidden.
11496
11497 * sysdeps/unix/sysv/linux/getdents.c: Mark __have_no_getdents64 as
11498 hidden.
11499
360d5cf4 11500 * include/rpc/xdr.h: Mark all _internal functions as hidden.
8263ed62 11501
02264020
UD
11502 * misc/getusershell.c (okshells): Don't use static initializers,
11503 do it dynamically.
11504
fd5ea238
UD
11505 * stdlib/fmtmsg.c (keywords): Change type of len element to
11506 uint32_t to not waste space on 64bit machines.
11507
9446614c
UD
11508 * locale/setlocale.c: Change _nl_category_names into a string.
11509 Add new _nl_category_name_idxs. Change all users.
11510 * locale/localeinfo.h: Adjust declaration of _nl_category_names.
11511 Declare _nl_category_name_idxs.
11512 * locale/findlocale.c: Adjust for _nl_category_names change.
11513 * locale/loadlocale.c: Likewise.
11514 * locale/newlocale.c: Likewise.
11515 * intl/dcigettext.c: Likewise.
11516
88dbff8c
UD
11517 * iconv/gconv_conf.c (add_alias): Move actual alias handling to...
11518 (add_alias2): ...here. New function.
11519 (__gconv_read_conf): Simplify builtin alias handling.
11520 (builtin_aliases): Convert to string to avoid relocations.
11521 * iconv/gconv_builtin.h: Add comment about correct formatting.
11522
4442d58f
UD
115232006-05-15 Jakub Jelinek <jakub@redhat.com>
11524
11525 * resolv/res_debug.c (loc_ntoa): Make error const.
11526
115272006-05-14 Andreas Schwab <schwab@suse.de>
11528
11529 * math/complex.h [__LDBL_COMPAT]: Use __REDIRECT_NTH.
11530
115312006-05-12 Jakub Jelinek <jakub@redhat.com>
11532
11533 * sysdeps/unix/sysv/linux/sched_getaffinity.c: Include sys/param.h.
11534 (__sched_getaffinity_new): Don't crash if cpusetsize is smaller than
11535 sizeof (cpu_set_t).
11536
a51752b6
UD
115372006-05-11 Ulrich Drepper <drepper@redhat.com>
11538
5d3fd1f6
UD
11539 * resolv/res_debug.c (loc_ntoa): Define error as array, not pointer.
11540
08cfb839
UD
11541 * include/arpa/nameser.h: Declare _ns_flagdata as hidden.
11542
4b481a15
UD
11543 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_master.
11544 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_master.
11545
11546 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypbind_resp.
11547 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypbind_resp.
11548
11549 * nis/nis_xdr.c: Add libnsl_hidden_def for xdr_cback_data.
11550 * include/rpcsvc/nis_callback.h: Add libnsl_hidden_proto for
11551 xdr_cback_data.
11552
11553 * nis/ypupdate_xdr.c: Add libnsl_hidden_def for xdr_ypupdate_args.
11554 * include/rpcsvc/ypupd.h: Add libnsl_hidden_proto for
11555 xdr_ypupdate_args.
11556
11557 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_order.
11558 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_order.
11559
11560 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_maplist.
11561 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_maplist.
11562
11563 * nis/nis_xdr.c: Add libnsl_hidden_def for xdr_obj_p.
11564 * include/rpcsvc/nis_callback.h: New file.
11565
11566 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_val.
11567 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_val.
11568
11569 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypreq_nokey.
11570 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypreq_nokey.
11571
11572 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypmaplist.
11573 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypmaplist.
11574
11575 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypreq_nokey.
11576 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypreq_nokey.
11577
b1ad49c6
UD
11578 * nis/ypupdate_xdr.c: Add libnsl_hidden_def for xdr_ypdelete_args.
11579 * include/rpcsvc/ypupd.h: Add libnsl_hidden_proto for
11580 xdr_ypdelete_args.
11581
cd5f7829
UD
11582 * nis/nis_xdr.h: Mark all functions as hidden. Remove
11583 __BEGIN_DECLS and __END_DECLS, the header is not installed.
11584
a51752b6
UD
11585 * nis/nis_error.c: Remove table of strings. Use position
11586 independent mechanism.
11587 * nis/nis_error.h: New file.
11588
3d237e42
UD
115892006-05-11 Jakub Jelinek <jakub@redhat.com>
11590
11591 * locale/programs/ld-time.c (time_finish): If wide era name or
11592 format aren't provided, set both wname and wformat to L"".
11593
d6c159fe
UD
115942006-05-10 Ulrich Drepper <drepper@redhat.com>
11595
0088b04e
UD
11596 * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Only store
11597 results if the call was succesful.
11598
d6c159fe
UD
11599 * nis/nss-nis.h: Mark __yperr2nss_tab and __yperr2nss_count as hidden.
11600
11601 * nis/nss-nisplus.h: Mark __niserr2nss_tab and __niserr2nss_count
11602 as hidden.
11603
5c5acdf0
UD
116042006-05-10 Jakub Jelinek <jakub@redhat.com>
11605
11606 * misc/sys/queue.h: Remove uses of all QUEUEDEBUG_* macros.
11607
16d620db
UD
116082006-05-10 Ulrich Drepper <drepper@redhat.com>
11609
11610 * posix/wordexp.c (parse_glob): No need to check ifs for NULL, the
11611 caller makes sure this is not the case.
11612 (wordexp): Simplify ifs_white creation. [Coverity CID 231]
11613
e7c8359e
UD
116142006-05-09 Ulrich Drepper <drepper@redhat.com>
11615
ecf359c6
UD
11616 * posix/wordexp.c: Remove numerous NULL pointer tests before FREE
11617 calls.
11618
400cc70a
UD
11619 * io/ftw.c (open_dir_stream): Return right away if REALLOC fails.
11620 [Coverity CID 229, 230]
11621
11622 * argp/argp-help.c (hol_entry_help): Handle STATE==NULL in ARG and
11623 DGETTEXT calls.
11624 (hol_help): Likewise. [Coverity CID 226, 227]
11625
11626 * string/argz-replace.c (__argz_replace): Unconditionally call
11627 free on SRC. [Coverity CID 225]
11628
11629 * nis/nis_creategroup.c (nis_creategroup): No need to duplicate
11630 the return value of __nis_default_owner and __nis_default_group,
11631 it has been especially allocated. [Coverity CID 224]
11632
51e59260
UD
11633 * nis/nis_defaults.c (searchXYX): New functions. Used by both
11634 searchgroup and searchowner. Significantly simplified.
11635 (__nis_default_owner): Remove duplication. Do not locally copy the
11636 string before duplicating it.
11637 (__nis_default_group): Likewise.
11638
11639 * nis/nis_lookup.c (nis_lookup): After calling nis_free_directory,
11640 we must clear the variable before calling __nisfind_server.
11641
11642 * nis/nis_lookup.c (nis_lookup): Always free memory allocated with
11643 nis_getnames. [Coverity CID 223]
11644
11645 * locale/programs/locfile.c (locfile_read): Use alloca instead of
11646 xmalloc to allocate local repertoire name. [Coverity CID 222]
11647
11648 * iconv/iconv_charmap.c (use_to_charmap): No need to dynamically
11649 allocate memory for the input to add_bytes. [Coverity CID 221]
11650
e7c8359e 11651 * posix/wordexp.c (w_addword): Free word if realloc fails and it
51e59260 11652 was allocated here. [Coverity CID 219, 220]
e7c8359e
UD
11653
11654 * posix/getconf.c (print_all): Free confstr data after printing.
11655 [Coverity CID 218]
11656
11657 * sysdeps/posix/getaddrinfo.c (gaih_inet): Free canon string if
11658 list allocation fails. [Coverity CID 215]
11659
11660 * nss/nsswitch.c (__nss_configure_lookup): Fix loop end condition.
11661 [Coverity CID 213]
11662
11663 * argp/argp-help.c (hol_entry_cmp): Don't call canon_doc_option if
11664 string is NULL. [Coverity CID 212]
11665 * argp/Makefile: Add rules to build and run bug-argp1.
11666 * argp/bug-argp1.c: New file.
11667
11668 * io/ftw.c (ftw_dir): Use __rawmemchr instead of strchr to find
11669 end of string.
11670 * stdlib/canonicalize.c (__realpath): Likewise.
11671
11672 * locale/programs/ld-time.c (time_finish): Don't dereference NULL
11673 pointer. [Coverity CID 206]
11674
11675 * elf/dl-dst.h (DL_DST_REQUIRED): Be prepared for missing link map
11676 in statically linked code.
11677 * elf/dl-load.c (_dl_dst_substitute): When replacing ORIGIN in
11678 statically built code, be prepared to have no link map.
11679 [Coverity CID 205]
11680
11681 * argp/argp-help.c (fill_in_uparams): Handle STATE==NULL in
11682 dgettext calls. [Coverity CID 204]
11683
11684 * argp/argp-help.c (struct uparams): Remove valid member. Change
11685 the one user.
11686 (uparam_names): Reduce size. Avoid relative relocations.
11687 Moved to read-only segment.
11688 (fill_in_uparams): Update for new layout.
11689
11690 * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs): Parameter can be
11691 assumed to always be != NULL. [Coverity CID 202]
11692
11693 * argp/argp-help.c (hol_entry_help): Remove some dead code
11694 [Coverity CID 200].
11695
11696 * nis/nss_nis/nis-service.c (_nss_nis_getservbyport_r): Optimize
11697 away a few more unconditional yperr2nss calls.
11698 (_nss_nis_getservbyname_r): Likewise.
11699
acf82eaf
UD
117002006-05-06 Ulrich Drepper <drepper@redhat.com>
11701
4461cf48
UD
11702 * sysdeps/generic/ldsodefs.h: Remove support for non-core
11703 architectures.
11704
b74a8c7f
UD
11705 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Make sure
11706 that unused memory passed to sendto is nevertheless initialized.
11707
acb98cb5
UD
11708 [BZ #2499]
11709 * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Avoid
11710 possibly unaligned memory accesses.
11711
bce16467
UD
11712 * include/arpa/nameser.h: Also optimize NS_PUT16 and NS_PUT32.
11713 * resolv/res_mkquery.c: Use NS_PUT16 and NS_PUT32 instead of __putshort
11714 and __putlong respectively. Correct buffer overflow check for
11715 NS_NOTIFY_OP.
11716
11717 * resolv/res_send.c (send_vc): Use ns_put16 instead of putshort.
11718
8e45b1ac
UD
11719 * resolv/res_send.c (res_queriesmatch): Fix typo in comment.
11720 (send_dg): Rewrite error handling to be more compact and avoid
11721 double recomputation of timeouts. Pass MSG_NOSIGNAL to send.
11722
697e1628
UD
11723 * include/arpa/nameser.h: Add optimizations for NS_GET16 and NS_GET32.
11724
11725 * resolv/res_send.c (res_nameinquery): Use NS_GET16 directly
11726 instead of ns_get16.
11727 (res_queriesmatch): Likewise. Minor optimization.
11728
acf82eaf
UD
11729 [BZ #2499]
11730 * resolv/res_query.c (__libc_res_nquery): If answerp != NULL,
11731 __libc_res_nsend might reallocate the buffer for the answer. In
11732 this case we have to reload the HP pointer.
11733
7bfee654
UD
117342006-05-05 Ulrich Drepper <drepper@redhat.com>
11735
694b49ca
UD
11736 * stdio-common/vfscanf.c (memory_error): Remove definition. Add
11737 some branch prediction hints.
11738
7bfee654
UD
11739 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Define SPLICE_F_*.
11740 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
11741 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
11742 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
11743 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
11744 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
11745 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
11746 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
11747
308bb2d5
UD
117482006-05-05 Martin Schwidefsky <schwidefsky@de.ibm.com>
11749
11750 * sysdeps/s390/s390-32/elf/start.S: Replace pc relative relocation
11751 by a GOT relocation to make Scrt1.o position independent.
11752 * sysdeps/s390/s390-64/elf/start.S: Likewise.
11753
11754 * sysdeps/unix/sysv/linux/s390/s390-32/syscall.S: Add support for
11755 six system call parameters.
11756 * sysdeps/unix/sysv/linux/s390/s390-64/syscall.S: Likewise.
11757
cdb9c321
UD
117582006-05-05 Ulrich Drepper <drepper@redhat.com>
11759
11760 * sunrpc/svcauth_des.c (cache_init): Use calloc instead of
11761 malloc&bzero.
11762
11763 * sunrpc/svc_udp.c (BZERO): Remove definition.
11764 (CALLOC): Define.
11765 (svc_enablecache): Use CALLOC instead of ALLOC&BZERO.
11766
11767 * sunrpc/des_impl.c: Remove ALT_ECB support. We never used it.
11768 (des_SPtrans): Use uint32_t type.
11769 (des_skb): Likewise.
11770
11771 * sunrpc/xdr_ref.c (xdr_reference): Use calloc instead of malloc&bzero.
11772
fff04b32
UD
117732006-05-05 Jakub Jelinek <jakub@redhat.com>
11774
11775 [BZ #2509]
11776 * stdio-common/tst-printf.sh: Adjust for tst-printf.c change even
11777 on 32-bit arches.
11778
117792006-05-05 Ulrich Drepper <drepper@redhat.com>
11780
11781 * locale/programs/ld-address.c (address_finish): Fix one more
cdb9c321 11782 place where the iso639 array might be accessed beyond the limits.
fff04b32 11783
077a30bc 117842006-05-04 Ulrich Drepper <drepper@redhat.com>
77dd4c3b 11785
f2d5cf50
UD
11786 * nis/nis_table.c (nis_list): Avoid clearing res twice before
11787 filling it for the first time.
11788
3e4370cf
UD
11789 * nis/nis_table.c (get_tablepath): Renamed from __get_tablepath.
11790 Adjust all callers.
11791 Free res object content before returning.
11792
5e65a53d
UD
11793 * sunrpc/xdr_array.c (xdr_array): Use calloc instead of malloc&bzero.
11794
48be3114
UD
11795 * sunrpc/key_call.c (__rpc_thread_key_cleanup): Also free
11796 client->cl_auth.
11797
ca4fce0e
UD
11798 * sunrpc/rpc_thread.c (__rpc_thread_destroy): Don't skip entire
11799 cleanup for initial thread, just the free call on TVP.
11800
077a30bc 11801 * nscd/gai.c (__getline): Define.
3b7a95fb 11802
5d37289a 11803
3f87d901 11804See ChangeLog.16 for earlier changes.