]> sourceware.org Git - glibc.git/blame - ChangeLog
[BZ #10200]
[glibc.git] / ChangeLog
CommitLineData
0323b051
AS
12009-05-22 Andreas Schwab <schwab@linux-m68k.org>
2
38ae768d
AS
3 * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Set errno for ±Inf.
4 * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
5 * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
6 * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c: Set errno for overflow.
7
0323b051
AS
8 * sysdeps/powerpc/powerpc32/____longjmp_chk.S: New file.
9 * sysdeps/powerpc/powerpc64/____longjmp_chk.S: New file.
10 * sysdeps/powerpc/powerpc32/__longjmp-common.S: Use CHECK_SP if
11 defined.
12 * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
13 * sysdeps/powerpc/powerpc64/__longjmp-common.S: Likewise.
14
1e1dc4e8
JJ
152009-05-22 Jakub Jelinek <jakub@redhat.com>
16
17 * sysdeps/unix/sysv/linux/accept4.c: Include kernel-features.h.
18 (accept4): If __NR_accept4 is not defined, but __NR_socketcall
19 is, either do nothing at all if __ASSUME_ACCEPT4, or
20 call __internal_accept4 and handle EINVAL -> ENOSYS translation.
21 * sysdeps/unix/sysv/linux/internal_accept4.S: New file.
22 * sysdeps/unix/sysv/linux/i386/accept4.S (SOCKOP_accept4): Don't
23 define.
24 * sysdeps/unix/sysv/linux/i386/internal_accept4.S: New file.
25 * sysdeps/unix/sysv/linux/Makefile (sysdep-routines): Add
26 internal_accept4 in socket directory.
27
10495c0b
UD
282009-05-20 H.J. Lu <hongjiu.lu@intel.com>
29
30 * sysdeps/ia64/configure.in: New file.
31
fa64b7f7
UD
322009-05-21 H.J. Lu <hongjiu.lu@intel.com>
33
34 [BZ #10162]
35 * sysdeps/ia64/memchr.S: Use speculative load.
36
d2812fc6
L
37 * sysdeps/unix/sysv/linux/ia64/____longjmp_chk.S: New file.
38 * sysdeps/unix/sysv/linux/ia64/__longjmp.S: If CHECK_RSP is defined,
39 use it.
40
e7535de7
L
41 * sysdeps/i386/__longjmp.S: Add .text.
42 * sysdeps/x86_64/__longjmp.S: Likewise.
43
3533b1a6
UD
442009-05-21 Ulrich Drepper <drepper@redhat.com>
45
46 * sysdeps/unix/sysv/linux/kernel-features.h: Don't define
47 __ASSUME_ACCEPT4 for IA-64.
48
a2292378
JJ
492009-05-21 Jakub Jelinek <jakub@redhat.com>
50
d14eda93
JJ
51 * sysdeps/unix/sysv/linux/accept4.c (__NR_accept4): Don't define.
52
a2292378
JJ
53 * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_paccept): Remove.
54 (SOCKOP_accept4): Define.
55
d4ab2f2a
UD
562009-05-20 Ulrich Drepper <drepper@redhat.com>
57
ab09b221
UD
58 Sun approved the change of the license.
59 * sunrpc/auth_des.c: Replace license text.
60 * sunrpc/auth_none.c: Likewise.
61 * sunrpc/auth_unix.c: Likewise.
62 * sunrpc/authdes_prot.c: Likewise.
63 * sunrpc/authuxprot.c: Likewise.
64 * sunrpc/bindrsvprt.c: Likewise.
65 * sunrpc/clnt_gen.c: Likewise.
66 * sunrpc/clnt_perr.c: Likewise.
67 * sunrpc/clnt_raw.c: Likewise.
68 * sunrpc/clnt_simp.c: Likewise.
69 * sunrpc/clnt_tcp.c: Likewise.
70 * sunrpc/clnt_udp.c: Likewise.
71 * sunrpc/clnt_unix.c: Likewise.
72 * sunrpc/des_crypt.c: Likewise.
73 * sunrpc/des_soft.c: Likewise.
74 * sunrpc/get_myaddr.c: Likewise.
75 * sunrpc/getrpcport.c: Likewise.
76 * sunrpc/key_call.c: Likewise.
77 * sunrpc/key_prot.c: Likewise.
78 * sunrpc/openchild.c: Likewise.
79 * sunrpc/pm_getmaps.c: Likewise.
80 * sunrpc/pm_getport.c: Likewise.
81 * sunrpc/pmap_clnt.c: Likewise.
82 * sunrpc/pmap_prot.c: Likewise.
83 * sunrpc/pmap_prot2.c: Likewise.
84 * sunrpc/pmap_rmt.c: Likewise.
85 * sunrpc/rpc/auth.h: Likewise.
86 * sunrpc/rpc/auth_unix.h: Likewise.
87 * sunrpc/rpc/clnt.h: Likewise.
88 * sunrpc/rpc/des_crypt.h: Likewise.
89 * sunrpc/rpc/key_prot.h: Likewise.
90 * sunrpc/rpc/netdb.h: Likewise.
91 * sunrpc/rpc/pmap_clnt.h: Likewise.
92 * sunrpc/rpc/pmap_prot.h: Likewise.
93 * sunrpc/rpc/pmap_rmt.h: Likewise.
94 * sunrpc/rpc/rpc.h: Likewise.
95 * sunrpc/rpc/rpc_des.h: Likewise.
96 * sunrpc/rpc/rpc_msg.h: Likewise.
97 * sunrpc/rpc/svc.h: Likewise.
98 * sunrpc/rpc/svc_auth.h: Likewise.
99 * sunrpc/rpc/types.h: Likewise.
100 * sunrpc/rpc/xdr.h: Likewise.
101 * sunrpc/rpc_clntout.c: Likewise.
102 * sunrpc/rpc_cmsg.c: Likewise.
103 * sunrpc/rpc_common.c: Likewise.
104 * sunrpc/rpc_cout.c: Likewise.
105 * sunrpc/rpc_dtable.c: Likewise.
106 * sunrpc/rpc_hout.c: Likewise.
107 * sunrpc/rpc_main.c: Likewise.
108 * sunrpc/rpc_parse.c: Likewise.
109 * sunrpc/rpc_parse.h: Likewise.
110 * sunrpc/rpc_prot.c: Likewise.
111 * sunrpc/rpc_sample.c: Likewise.
112 * sunrpc/rpc_scan.c: Likewise.
113 * sunrpc/rpc_scan.h: Likewise.
114 * sunrpc/rpc_svcout.c: Likewise.
115 * sunrpc/rpc_tblout.c: Likewise.
116 * sunrpc/rpc_util.c: Likewise.
117 * sunrpc/rpc_util.h: Likewise.
118 * sunrpc/rpcinfo.c: Likewise.
119 * sunrpc/rpcsvc/bootparam_prot.x: Likewise.
120 * sunrpc/rpcsvc/key_prot.x: Likewise.
121 * sunrpc/rpcsvc/klm_prot.x: Likewise.
122 * sunrpc/rpcsvc/mount.x: Likewise.
123 * sunrpc/rpcsvc/nfs_prot.x: Likewise.
124 * sunrpc/rpcsvc/rex.x: Likewise.
125 * sunrpc/rpcsvc/rstat.x: Likewise.
126 * sunrpc/rpcsvc/rusers.x: Likewise.
127 * sunrpc/rpcsvc/sm_inter.x: Likewise.
128 * sunrpc/rpcsvc/spray.x: Likewise.
129 * sunrpc/rpcsvc/yppasswd.x: Likewise.
130 * sunrpc/rtime.c: Likewise.
131 * sunrpc/svc.c: Likewise.
132 * sunrpc/svc_auth.c: Likewise.
133 * sunrpc/svc_authux.c: Likewise.
134 * sunrpc/svc_raw.c: Likewise.
135 * sunrpc/svc_run.c: Likewise.
136 * sunrpc/svc_simple.c: Likewise.
137 * sunrpc/svc_tcp.c: Likewise.
138 * sunrpc/svc_udp.c: Likewise.
139 * sunrpc/svc_unix.c: Likewise.
140 * sunrpc/svcauth_des.c: Likewise.
141 * sunrpc/xcrypt.c: Likewise.
142 * sunrpc/xdr.c: Likewise.
143 * sunrpc/xdr_array.c: Likewise.
144 * sunrpc/xdr_float.c: Likewise.
145 * sunrpc/xdr_mem.c: Likewise.
146 * sunrpc/xdr_rec.c: Likewise.
147 * sunrpc/xdr_ref.c: Likewise.
148 * sunrpc/xdr_sizeof.c: Likewise.
149 * sunrpc/xdr_stdio.c: Likewise.
150
d4ab2f2a
UD
151 * po/da.po: Update from translation team.
152
04733592
KK
1532009-05-18 Kaz Kojima <kkojima@rr.iij4u.or.jp>
154
155 * sysdeps/sh/____longjmp_chk.S: New file.
156 * sysdeps/sh/sh3/__longjmp.S: If CHECK_SP is defined, use it.
157 * sysdeps/sh/sh4/__longjmp.S: Likewise.
a2292378 158
5078fff6
JJ
1592009-05-18 Jakub Jelinek <jakub@redhat.com>
160 Ulrich Drepper <drepper@redhat.com>
161
162 * nscd/nscd_helper.c (MINIMUM_HASHENTRY_SIZE): Define.
163 (__nscd_cache_search): Assume each entry in the
164 hash chain needs one hashentry and half of datahead. Use
165 MINIMUM_HASHENTRY_SIZE instead of sizeof(hashentry).
166
95410b7b
UD
1672009-05-16 Ulrich Drepper <drepper@redhat.com>
168
c457bc13
UD
169 * posix/sys/wait.h: Fix typos. Pretty printing.
170 * stdlib/stdlib.h: Likewise. Correct comments.
8f0d3f49 171
a64039b0
UD
172 [BZ #10159]
173 * stdlib/stdlib.h (__WAIT_INT): Match the definition in <sys/wait.h>.
174
95410b7b
UD
175 * nscd/nscd_helper.c (__nscd_cache_search): Fix exit condition in last
176 patch.
177
831a4049
UD
1782009-05-15 Ulrich Drepper <drepper@redhat.com>
179
831a4049
UD
180 * nscd/nscd_helper.c (__nscd_cache_search): Introduce loop counter.
181 Use it if we absolutely cannot reach any more correct list elements
182 because that many do not fit into the currently mapped database.
183
6dd78596
UD
1842009-05-14 Jakub Jelinek <jakub@redhat.com>
185
cfe1fc10
JJ
186 * nscd/nscd_helper.c: Include stddef.h.
187 (__nscd_cache_search): Add datalen argument. Use atomic_forced_read
188 in a couple of places. Return NULL if trail is not less than
189 datasize, don't consider dataheads with length smaller than
190 offsetof (struct datahead, data) + datalen.
191 * nscd/nscd_client.h (__nscd_cache_search): Adjust prototype.
192 * nscd/nscd_gethst_r.c (nscd_gethst_r): Adjust callers.
193 * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
194 * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
195 * nscd/nscd_getai.c (__nscd_getai): Likewise.
196 * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
197 * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
198
6dd78596
UD
199 * sysdeps/unix/sysv/linux/i386/fallocate64.c (__fallocate64_l64):
200 Rename ...
201 (fallocate64): ... to this.
202 * sysdeps/unix/sysv/linux/fallocate64.c (__fallocate64_l64):
203 Rename ...
204 (fallocate64): ... to this.
205 * sysdeps/unix/sysv/linux/Versions (libc): Remove fallocate64.
206 * sysdeps/unix/sysv/linux/wordsize-64/Versions (libc): Add
207 fallocate64@@GLIBC_2.10.
208 * sysdeps/unix/sysv/linux/i386/Versions (libc): Add
209 fallocate64@@GLIBC_2.11.
210 * sysdeps/unix/sysv/linux/s390/s390-32/Versions (libc): Likewise.
211 * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions (libc): Likewise.
212 * sysdeps/unix/sysv/linux/sparc/sparc32/Versions (libc): Likewise.
213 * sysdeps/unix/sysv/linux/sh/Versions (libc): Likewise.
214
6dd78596
UD
215 * nscd/selinux.c (nscd_avc_destroy): Removed.
216 * nscd/selinux.h (nscd_avc_destroy): Likewise.
217 * nscd/nscd.c (termination_handler): Don't call
218 nscd_avc_destroy.
219
cfe1fc10
JJ
2202009-05-12 Jakub Jelinek <jakub@redhat.com>
221
222 * include/atomic.h: Formatting.
223 (catomic_compare_and_exchange_val_acq): Don't define if already
224 defined by bits/atomic.h.
225
774f5a30
UD
2262009-05-15 Ulrich Drepper <drepper@redhat.com>
227
bbc5d74d
UD
228 * math/libm-test.inc (expm1_test): Add test for range error.
229
b50f8e42
UD
230 * Versions.def: Add GLIBC_2.11 for libc.
231 * debug/Makefile (routines): Add longjmp_chk.
232 Add rules to build and run tst-longjmp_chk.
233 * debug/Versions: Export __longjmp_chk for GLIBC_2.11.
234 * debug/longjmp_chk.c: New file.
235 * debug/tst-longjmp_chk.c: New file.
236 * include/bits/setjmp2.: New file.
237 * include/stdio.h: Mark __fortify_fail as internal_function.
238 * setjmp/Makefile (headers): Add bits/setjmp2.h.
239 * setjmp/bits/setjmp2.h: New file.
240 * setjmp/longjmp.c: If __libc_siglongjmp is defined, don't define any
241 of the aliases.
242 * setjmp/setjmp.h: Include <bits/setjmp2.h> if _FORTIFY_SOURCE is
243 defined.
244 * sysdeps/i386/____longjmp_chk.S: New file.
245 * sysdeps/x86_64/____longjmp_chk.S: New file.
246 * sysdeps/i386/__longjmp.S: If CHECK_ESP is defined, use it.
247 * sysdeps/x86_64/__longjmp.S: Likewise.
248
dc50b613
UD
249 * version.h: Bump for 2.11 development.
250
774f5a30
UD
251 * elf/check-execstack.c: New file.
252 * elf/Makefile: Add rules to build and run check-execstack.
253
deb84c43
UD
2542009-05-10 Ulrich Drepper <drepper@redhat.com>
255
256 * version.h (VERSION): Bump to 2.10.1.
257
258 * nss/getXXbyYY_r.c: If NO_COMPAT_NEEDED is defined don't define any
259 compatibility functions.
260 * nss/getXXent_r.c: Likewise.
261 * gshadow/getsgent_r.c: Define NO_COMPAT_NEEDED.
262 * gshadow/getsgnam_r.c: Likewise.
263 * gshadow/Version: Remove duplicate entries.
264
265 * sysdeps/x86_64/cacheinfo.c (intel_02_cache_info): Add missing entries
266 for recent processor.
267 * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_cache_info):
268 Likewise.
269
deb318c2
UD
2702009-05-09 Ulrich Drepper <drepper@redhat.com>
271
272 * version.h (VERSION): Bump for 2.10 release.
273 * include/features.h (__GLIBC_MINOR__): Bump to 10.
274
eb29449a
UD
275 * Makeconfig: Undo last change. Add asflags-cpu to ASFLAGS in the
276 same place we add ASFLAGS-config.
277
cf4f16cc
UD
2782009-05-05 Aurelien Jarno <aurelien@aurel32.net>
279
280 [BZ #10128]
281 * resolv/res_query.c (__libc_res_nquery): If one query returns NOTIMP
282 or FORMERR and the other NOERROR, don't raise an error.
283
23b6b466
UD
2842009-05-06 Ryan S. Arnold <rsa@us.ibm.com>
285
286 [BZ #10118]
287 * Makeconfig (+asflags): New variable based upon ASFLAG or
288 asflags-cpu.
289 (ASFLAGS): Add override to set ASFLAGS to +asflags.
290 * config.make.in (asflags-cpu): Add variable based upon
291 @libc_cv_cc_submachine@ to propagate -mcpu=CPU from --with-cpu=CPU to
292 the assembler.
293 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/setcontext.S:
294 Remove unneeded file now that the assembler emits _ARCH_PWR6 and
295 recognizes power6 instruction set due to passing -mcpu=power6 from
296 --with-cpu=power6 when compiling .S files.
297 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/swapcontext.S:
298 Likewise.
299 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/setcontext.S:
300 Likewise.
301 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/swapcontext.S:
302 Likewise.
303
15417de3
UD
3042009-05-09 Jakub Jelinek <jakub@redhat.com>
305
306 * string/stratcliff.c (do_test): Test for zero length
307 STRNLEN, MEMCHR, STRNCPY, STPNCPY, MEMCPY, MEMPCPY and memccpy
308 at the end of the page.
309
b5f7c4ca
UD
3102009-05-08 Ulrich Drepper <drepper@redhat.com>
311
4300afc1
UD
312 * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_AT_RANDOM.
313
2221e33e
UD
314 * sysdeps/x86_64/memchr.S: Handle invalid buffer pointers when
315 count is zero.
316
b5f7c4ca
UD
317 * po/da.po: Update from translation team.
318
1765abb3
UD
3192009-05-05 Jakub Jelinek <jakub@redhat.com>
320
321 * io/sys/stat.h (fstatat64): Guard prototype with __USE_LARGEFILE64,
322 guard __extern_inline wrapper with __USE_ATFILE instead of __USE_GNU.
2221e33e 323
b5f7c4ca
UD
3242009-05-05 Ulrich Drepper <drepper@redhat.com>
325
326 * sysdeps/unix/sysv/linux/sys/personality.h: Add ADDR_COMPAT_LAYOUT
327 and READ_IMPLIES_EXEC.
328
3292009-05-04 Ulrich Drepper <drepper@redhat.com>
330
331 * po/da.po: Update from translation team.
332
667712b8
JJ
3332009-04-29 Jakub Jelinek <jakub@redhat.com>
334
335 * sysdeps/unix/sysv/linux/ifaddrs.c: Revert unintended 2008-08-12
336 comment change.
337
6284c9f6
UD
3382009-04-27 Jakub Jelinek <jakub@redhat.com>
339
340 * locale/programs/locarchive.c (create_archive): Add MAP_PRIVATE
341 to MAP_ANON in PROT_NONE mmap64 call.
342 (open_archive): Likewise.
343 (file_data_available_p): Use mmap64 instead of mremap.
344 (enlarge_archive): Likewise. Update head if ah->addr changed.
345 Attempt to reserve address space after mmap64 region.
346
4ec77f72
UD
3472009-04-26 Ulrich Drepper <drepper@redhat.com>
348
f0e3c47f
UD
349 * sysdeps/ieee754/dbl-64/s_expm1.c: Set errno for overflow.
350 * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
351 * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
352
49768bb9
UD
353 * sysdeps/ieee754/k_standard.c (__kernel_standard): Pole errors in
354 atanh should set ERANGE.
355
e49dc847
UD
356 [BZ #10087]
357 * elf/dl-runtime.c (_dl_fixup): Use DL_FIXUP_VALUE_ADDR to access
358 result of lookup to make call to implement STT_GNU_IFUNC.
359 (_dl_profile_fixup): Likewise.
360 Patch by H.J. Lu <hjl.tools@gmail.com>.
361
1ac03a1e
UD
362 * nscd/connections.c (send_ro_fd): Define temporary variable to avoid
363 warning.
364
6cc8844f
UD
365 * sysdeps/unix/sysv/linux/dl-osinfo.h (dl_fatal): Remove inline
366 from definition.
367
368 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Don't define
369 label if it is not used.
370
371 * elf/dl-profile.c (_dl_start_profile): Define real-type variant
372 of gmon_hist_hdr and gmon_hdr structures and use them.
1ac03a1e 373 * elf/sprof.c: Likewise.
6cc8844f
UD
374
375 * elf/dl-load.c (open_verify): Add temporary variable to avoid
376 warning.
377
378 * nscd/nscd_helper.c (get_mapping): Avoid casts to avoid warnings.
379
380 * sunrpc/clnt_raw.c (clntraw_private_s): Use union in definition
381 to avoid cast.
382
383 * inet/rexec.c (rexec_af): Make sa2 a union to avoid warnings.
384 * inet/rcmd.c (rcmd_af): Make from a union of the various needed types
385 to avoid warnings.
386 (iruserok_af): Use ss_family instead of casts.
387
388 * gmon/gmon.c (write_hist): Define real-type variant of
389 gmon_hist_hdr structure and use it.
390 (write_gmon): Likewise for gmon_hdr.
391
392 * sysdeps/unix/sysv/linux/readv.c: Avoid declaration of replacement
393 function if we are not going to define it.
394 * sysdeps/unix/sysv/linux/writev.c: Likewise.
395
218555e9 396 * inet/inet6_option.c (option_alloc): Add temporary variable to
6cc8844f
UD
397 avoid warning.
398
399 * libio/strfile.h (struct _IO_streambuf): Use correct type and
400 name of VTable element.
401 * libio/iovsprintf.c: Avoid casts to avoid warnings.
402 * libio/iovsscanf.c: Likewise.
403 * libio/vasprintf.c: Likewise.
404 * libio/vsnprintf.c: Likewise.
405 * stdio-common/isoc99_vsscanf.c: Likewise.
406 * stdlib/strfmon_l.c: Likewise.
407 * debug/vasprintf_chk.c: Likewise.
408 * debug/vsnprintf_chk.c: Likewise.
409 * debug/vsprintf_chk.c: Likewise.
410
4ec77f72
UD
411 * nss/nsswitch.c (__nss_lookup_function): En/Decrypt cached
412 function pointers.
413
82a1a4da
UD
4142009-04-26 Jakub Jelinek <jakub@redhat.com>
415
416 * sysdeps/ieee754/dbl-64/s_tan.c (tan): Fix -Wsequence-point warnings.
417
db6edfb3
UD
4182009-04-25 Ulrich Drepper <drepper@redhat.com>
419
27be9b92
UD
420 * posix/bits/posix1_lim.h: Cleanup namespace a bit.
421
337c2708
UD
422 * sysdeps/i386/fpu/s_tan.S: Set errno for ±Inf.
423 * sysdeps/i386/fpu/s_tanf.S: Likewise.
424 * sysdeps/i386/fpu/s_tanl.S: Likewise.
425 * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
426 * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
427 * sysdeps/x86_64/fpu/s_tanl.S: Likewise.
428 * math/libm-test.inc: Add tests for errno after tan calls with
429 ±Inf.
430
002a604f
UD
431 * sysdeps/ieee754/k_standard.c (__kernel_standard): Use correct
432 errno value vor pow(+-0,neg).
433 * math/libm-test.inc (pow_test): Add tests for errno value for
434 pole errors.
435
7095366d
UD
436 * math/w_fmod.c: Also handle x=±Inf as error.
437 * math/w_fmodf.c: Likewise.
438 * math/w_fmodl.c: Likewise.
439 * math/libm-test.inc (fmod_test): Add tests for errno after calls for
440 x=±Inf or y=0.
441
0c59a196
UD
442 * sysdeps/i386/fpu/s_cos.S: Set errno for ±Inf.
443 * sysdeps/i386/fpu/s_cosf.S: Likewise.
444 * sysdeps/i386/fpu/s_cosl.S: Likewise.
445 * sysdeps/i386/fpu/s_sin.S: Likewise.
446 * sysdeps/i386/fpu/s_sinf.S: Likewise.
447 * sysdeps/i386/fpu/s_sinl.S: Likewise.
448 * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
449 * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
450 * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
451 * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
452 * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
453 * sysdeps/x86_64/fpu/s_cosl.S: Likewise.
454 * sysdeps/x86_64/fpu/s_sinl.S: Likewise.
455 * math/libm-test.inc: Add tests for errno after sin/cos calls with
456 ±Inf.
457
4bbf8999
UD
458 * stdlib/strtod_l.c (round_and_return): We have to set errno to
459 ERANGE for underflows.
460 * stdlib/tst-strtod.c (tests): Two tests should set errno to ERANGE.
461
af9f1c48
UD
462 * stdio-common/stdio_lim.h.in (L_cuserid): Not part of POSIX since
463 the 2001 revision.
464
13327042
UD
465 * libio/tst-widetext.input: Remove surrogates.
466
c163ee23
UD
467 * include/features.h: _POSIX_C_SOURCE >= 200112L implies C99.
468
e971e76d 469 * sysdeps/ieee754/k_standard.c (__kernel_standard): Pole errors
81068e35 470 for lgamma should set errno to ERANGE, not EDOM.
e971e76d
UD
471 * math/libm-test.inc (lgamma_test): Check errno for pole errors.
472
c2d5bd5b
UD
4732009-04-24 Ulrich Drepper <drepper@redhat.com>
474
9c32c895
UD
475 [BZ #10093]
476 * iconv/gconv_simple.c (BODY for UTF-8 to INTERNAL): Don't accept
477 UTF-16 surrogates.
478
c9edc889
UD
479 * locale/programs/locarchive.c (enlarge_archive): Conserve address
480 space when temporarily mapping the whole content of the old file.
481
c2d5bd5b
UD
482 [BZ #10100]
483 * misc/hsearch_r.c (hsearch_r): Add back ensurance that hval is
484 not zero.
485
f397be12
UD
4862009-04-24 Jakub Jelinek <jakub@redhat.com>
487
488 * iconvdata/sjis.c (BODY): Don't advance inptr before
489 STANDARD_FROM_LOOP_ERR_HANDLER (2) for 2 byte invalid input.
490 Use STANDARD_FROM_LOOP_ERR_HANDLER with 2 instead of 1 for
491 two byte chars.
492
705341a9
UD
4932009-04-24 Ulrich Drepper <drepper@redhat.com>
494
495 * locale/locarchive.h (struct locarhandle): Rename len field to
496 mmaped and add new reserved field.
497 * locale/programs/locarchive.c (RESERVE_MMAP_SIZE): Define.
498 (create_archive): Reserve address space and then map file into it.
499 (open_archive): Likewise.
500 (file_data_available_p): New function.
501 (compare_from_file): New function.
502 (close_archive): Adjust to member name changes.
503 (add_locale): Before comparing locale data, check it is mapped.
504 Otherwise fall back to reading from the file.
505
57d2da1c
UD
5062009-04-23 H.J. Lu <hongjiu.lu@intel.com>
507
508 * stdio-common/psiginfo.c: Include <errno.h>.
509
3d855f75
UD
5102009-04-23 Ulrich Drepper <drepper@redhat.com>
511
fe12c798
UD
512 [BZ #9920]
513 * stdlib/random_r.c (__srandom_r): Change type of word to int32_t
514 to get consistency between 32 and 64 bit architectures.
515
3d855f75
UD
516 [BZ #10052]
517 * sysdeps/unix/make-syscalls.sh: Add rule to create target
518 directory for dummy syscall rules.
519 Patch by Chris Steinbroner <hesh@pobox.com>.
520
95bf537f
UD
5212009-04-23 Aurelien Jarno <aurelien@aurel32.net>
522
523 [BZ #10092]
524 * sysdeps/unix/sysv/linux/sys/mount.h: Define MNT_DETACH and
525 MNT_EXPIRE.
526
7f8a28ef
UD
5272009-04-23 Ulrich Drepper <drepper@redhat.com>
528
529 * sysdeps/unix/sysv/linux/preadv.c: The kernel API changed. Adjust.
530 * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
531
5322009-04-23 Jakub Jelinek <jakub@redhat.com>
533
534 * sysdeps/posix/pwritev.c (PWRITEV): Fix up comment. Copy
535 data from vector to temporary buffer and call PWRITEV after it
536 instead of vice versa.
537 * sysdeps/posix/preadv.c: Fix up comment.
538 * misc/preadv.c: Likewise.
539 * misc/preadv64.c: Likewise.
540 * misc/pwritev.c: Likewise.
541 * misc/pwritev64.c: Likewise.
542 * misc/sys/uio.h (preadv, pwritev, preadv64, pwritev64): Likewise.
543
829fea46
UD
5442009-04-23 Ulrich Drepper <drepper@redhat.com>
545
c7e74e59
UD
546 * shadow/sgetspent_r.c (__sgetspent_r): Recognize too small buffers.
547
3b055b47
UD
548 * shadow/Makefile (tests): Add tst-shadow.
549 * shadow/tst-shadow.c: New file.
550
829fea46
UD
551 [BZ #9955]
552 * gshadow/Makefile: New file.
553 * gshadow/Versions: New file.
554 * gshadow/fgetsgent.c: New file.
555 * gshadow/fgetsgent_r.c: New file.
556 * gshadow/getsgent.c: New file.
557 * gshadow/getsgent_r.c: New file.
558 * gshadow/getsgnam.c: New file.
559 * gshadow/getsgnam_r.c: New file.
560 * gshadow/gshadow.h: New file.
561 * gshadow/putsgent.c: New file.
562 * gshadow/sgetsgent.c: New file.
563 * gshadow/sgetsgent_r.c: New file.
564 * gshadow/tst-gshadow.c: New file.
565 * include/gshadow.h: New file.
566 * Makeconfig (all-subdirs): Add gshadow.
567 * Makefile (installed-headers): Add gshadow/gshadow.h.
568 * nss/Makefile (databases): Add sgrp.
569 * nss/Versions: Add gshadow functions as private exports.
570 * nss/nsswitch.conf: Add gshadow entry.
571 * nss/sgrp-lookup.c: New file.
572 * nss/nss_files/files-parse.c: Add STRING_LIST macro. Rewrite
573 parse_list to handle STRING_LIST and TRAILING_LIST_PARSER.
574 * nss/nss_files/files-sgrp.c: New file.
575 * sysdeps/generic/paths.h: Add _PATH_GSHADOW.
576 * sysdeps/unix/sysv/linux/paths.h: Likewise.
577
debafa10
UD
5782009-04-22 Ulrich Drepper <drepper@redhat.com>
579
580 * stdio-common/printf.h: Add missing const to register_printf_modifier.
581 * stdio-common/reg-modifier.c: Likewise.
582
5832009-04-22 Andrew Stubbs <ams@codesourcery.com>
584
585 * sysdeps/sh/sh4/setjmp.S (__sigsetjmp): Adjust JB_SIZE when there
586 is no FPU.
587
0e04c0b5
UD
5882009-04-20 Ulrich Drepper <drepper@redhat.com>
589
d43f10e7 590 [BZ #10086]
1c376f5b
UD
591 * sysdeps/unix/sysv/linux/sys/timex.h: Add definitions from kernel
592 headers up to 2.6.30.
593
0e04c0b5
UD
594 * po/ca.po: Update from translation team.
595
a245eafd
UD
5962009-04-19 Ulrich Drepper <drepper@redhat.com>
597
598 [BZ #10069]
599 * elf/dl-open.c (dl_open_worker): We cannot guarantee that we can load
600 an object that uses static TLS if the TLS modid is higher than the
601 reserve we always allocate. At least for multi-threaded code.
602
0588a9cb
UD
6032009-04-18 Ulrich Drepper <drepper@redhat.com>
604
153aa31b
UD
605 * stdlib/strfmon_l.c (__vstrfmon_l): Don't wrap when computing width.
606 Numerically stable check for valid width.
607
59a7162b
UD
608 * locale/programs/locarchive.c (open_archive): Map the entire file
609 and not just the administrative data.
610 (add_locale): When we find a hash sum match compare the content
611 to be sure.
612
0588a9cb
UD
613 * malloc/malloc.c (malloc_info): Output address space information.
614
17a5b24e
UD
6152009-04-17 Ulrich Drepper <drepper@redhat.com>
616
da2d2fb6
UD
617 * malloc/malloc.c (malloc_info): Also output system memory information.
618
11cad88c
UD
619 * sysdeps/unix/sysv/linux/kernel-features.h: All supported
620 architectures have preadv/pwritev in 2.6.30.
621
571ac26f
UD
622 * sysdeps/posix/preadv.c: Reading of zero bytes is no error.
623 * sysdeps/posix/readv.c: Likewise.
624 Reported by Markus Armbruster <armbru@redhat.com>.
625
17a5b24e
UD
626 * malloc/hooks.c (top_check): Force hook value into register.
627
57ec6442
RM
6282009-04-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
629
630 * elf/rtld.c (dl_main): Really call _dl_sysdep_start_cleanup after all
631 calls to _dl_relocate_object.
632
df77455c
UD
6332009-04-16 Ulrich Drepper <drepper@redhat.com>
634
635 [BZ #9957]
636 * malloc/malloc.c (force_reg): Define.
637 (sYSMALLOc): Load hook variable into variable
638 before test and force into register.
639 (sYSTRIm): Likewise.
640 (public_mALLOc): Force hook value into register.
641 (public_fREe): Likewise.
642 (public_rEALLOc): Likewise.
643 (public_mEMALIGn): Likewise.
644 (public_vALLOc): Likewise.
645 (public_pVALLOc): Likewise.
646 (public_cALLOc): Likewise.
647 (__posix_memalign): Likewise.
648 * malloc/arena.c (ptmalloc_init): Load hook variable into variable
649 before test and force into register.
650 * malloc/hooks.c (top_check): Likewise.
3b055b47 651 (public_sET_STATe): Pretty printing.
df77455c
UD
652
653 * resolv/res_send.c (send_dg): Don't just ignore the result we got
654 in case we only receive one reply in single-request mode.
655
733ca93a
JJ
6562009-04-16 Jakub Jelinek <jakub@redhat.com>
657
658 * elf/dl-open.c (_dl_open): Bump GL(dl_nns) to 1 if no libraries
659 are dlopened in statically linked program even for __LM_ID_CALLER.
660
d0e81f10
UD
6612009-04-16 Ulrich Drepper <drepper@redhat.com>
662
663 * resolv/res_send.c (send_dg): Don't switch into single-request
664 mode if we already are in it.
665
6a3d03ff
UD
6662009-04-15 Ulrich Drepper <drepper@redhat.com>
667
668 * sysdeps/unix/sysv/linux/getsysstats.c (next_line): Make sure there
669 are always at least 4 bytes in the returned line.
670
6712009-04-15 Jakub Jelinek <jakub@redhat.com>
672
673 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Check
674 __libc_use_alloca (8192), if the stack is too small use 512 bytes
675 instead of 8K. Stop searching in /proc/stat after hitting first
676 line not starting with cpu.
677 (next_line): Truncate too long
678 lines at buffer size * 3/4 instead of pretending there were line
679 breaks inside of large lines.
680
ae650a41
UD
6812009-04-14 Ulrich Drepper <drepper@redhat.com>
682
683 * sysdeps/x86_64/mp_clz_tab.c: New file.
684
353f2107
UD
6852009-03-17 Ryan S. Arnold <rsa@us.ibm.com>
686 Ulrich Drepper <drepper@redhat.com>
687
688 * sysdeps/unix/sysv/linux/fallocate.c: Handle old kernel headers.
689 * sysdeps/unix/sysv/linux/fallocate64.c: Likewise.
e775ec11 690 * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: Likewise.
353f2107 691
fc0c5705
UD
6922009-03-25 Andrew Stubbs <ams@codesourcery.com>
693
694 * sysdeps/sh/libc-tls.c: New file.
695
696 * sysdeps/sh/bits/setjmp.h (__jmp_buf): Give name to structure type.
697
237a8867
RM
6982009-04-14 Roland McGrath <roland@redhat.com>
699
700 * elf/elf.h: Add various missing ARM constants, to match binutils.
701
893a5fd4
UD
7022009-04-14 Ulrich Drepper <drepper@redhat.com>
703
704 Optimizations from GMP.
705 * sysdeps/x86_64/add_n.S: New file.
706 * sysdeps/x86_64/addmul_1.S: New file.
707 * sysdeps/x86_64/lshift.S: New file.
708 * sysdeps/x86_64/mul_1.S: New file.
709 * sysdeps/x86_64/rshift.S: New file.
710 * sysdeps/x86_64/sub_n.S: New file.
711 * sysdeps/x86_64/submul_1.S: New file.
712
e42e88ab
JJ
7132009-04-14 Jakub Jelinek <jakub@redhat.com>
714
715 * sysdeps/powerpc/powerpc32/elf/start.S: Ensure .data is non-empty.
716 * sysdeps/powerpc/powerpc64/elf/start.S: Likewise.
717 * sysdeps/sparc/sparc32/elf/start.S: Likewise.
718 * sysdeps/sparc/sparc64/elf/start.S: Likewise.
719
b8a3bd82
UD
7202009-04-14 Ulrich Drepper <drepper@redhat.com>
721
722 * sysdeps/unix/sysv/linux/kernel-features.h: SH also has
723 preadv/pwritev.
724
84aa52d7
UD
7252009-04-13 Ulrich Drepper <drepper@redhat.com>
726
727 * sysdeps/x86-64/strrchr.S: New file.
728
9d26efa9
UD
7292009-04-10 Ulrich Drepper <drepper@redhat.com>
730
731 * stdio-common/printf.h (struct printf_info): Add user element.
732 New types printf_arginfo_size_function, printf_va_arg_function.
733 Declare register_printf_specifier, register_printf_modifier,
734 register_printf_type.
735 * stdio-common/printf-parse.h (struct printf_spec): Add size element.
736 (union printf_arg): Add pa_user element.
737 Adjust __printf_arginfo_table type.
738 Add __printf_va_arg_table, __printf_modifier_table,
739 __handle_registered_modifier_mb, and __handle_registered_modifier_wc
740 declarations.
741 * stdio-common/printf-parsemb.c: Recognize registered modifiers.
742 If registered arginfo call failed try normal specifier.
743 * stdio-common/printf-prs.c: Pass additional parameter to arginfo
744 function.
745 * stdio-common/Makefile (routines): Add reg-modifier and reg-type.
746 * stdio-common/Versions: Export register_printf_modifier,
747 register_printf_type, and register_printf_specifier for GLIBC_2.10.
748 * stdio-common/reg-modifier.c: New file.
749 * stdio-common/reg-type.c: New file.
750 * stdio-common/reg-printf.c (__register_printf_specifier): New
751 function. Mostly the old __register_printf_function function but
752 uses locking and type of third parameter changed.
753 (__register_printf_function): Implement using
754 __register_printf_specifier.
755 * stdio-common/vfprintf.c (vfprintf): Collect argument sizes in
756 calls to arginfo functions. Allocate enough memory for user-defined
757 types. Call new va_arg functions to get user-defined types.
758 Try installed handlers even for existing format specifiers first.
759
28b2771a
UD
7602009-04-09 Ulrich Drepper <drepper@redhat.com>
761
f140a0d5
UD
762 * sysdeps/x86_64/rawmemchr.S: New file.
763
e9b4d069 764 * stdio-common/vfprintf.c (vfprintf): Slightly more compact code.
1d498daa 765 Simplified code and possible copy problem fixed.
e9b4d069 766
f9fe75e9 767 * sysdeps/unix/sysv/linux/preadv.c: Avoid prototype for static
24030b0f 768 function if it is not defined. Add some necessary casts.
f9fe75e9
UD
769 * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
770
28b2771a
UD
771 * sysdeps/unix/sysv/linux/kernel-features.h: SPARC and IA64 also
772 have preadv/pwritev in 2.6.30.
773
4c8b8cc3
UD
7742009-04-08 Ulrich Drepper <drepper@redhat.com>
775
bb066545
UD
776 * malloc/malloc.c (malloc_info): New function.
777 * malloc/malloc.h: Declare it.
778 * malloc/Versions: Export malloc_info for GLIBC_2.10.
779
0f9c8b48
UD
780 * sysdeps/unix/sysv/linux/preadv64.c (PREAD): Use __libc_pread64
781 to avoid PLT slot.
782
4c8b8cc3
UD
783 * malloc/malloc.c (_int_realloc): Add parameter with old block
784 size. Remove duplicated test. Don't handle mmap'ed blocks here.
785 Adjust all callers.
786 * malloc/hooks.c (realloc_check): Adjust _int_realloc call.
787
ddba0f17
UD
7882009-04-07 Ulrich Drepper <drepper@redhat.com>
789
cd57745b
UD
790 * sysdeps/x86_64/strchrnul.S: New file.
791
3db6c9a8 792 * crypt/Makefile (LDLIBS-crypt.so): Use this variable instead of
cd57745b 793 depending libcrypt on -lfreebl3.
3db6c9a8 794
1a2ec17b
UD
795 * sysdeps/unix/sysv/linux/kernel-features.h: Power also has
796 preadv/pwritev in 2.6.30.
797
bb066545 798 * resolv/nss_dns/dns-host.c (getanswer_r): Use strcasecmp
c6807d38 799 instead of __strcasecmp.
c6807d38 800
ddba0f17 801 * string/stratcliff.c (do_test): Add memchr tests..
481f9eca 802 * wcsmbs/wcsatcliff.c (MEMCHR): Define.
ddba0f17
UD
803 * sysdeps/x86_64/memchr.S: Fix handling of end of buffer after
804 first read quad word.
805
ae061910
UD
8062009-04-06 Ulrich Drepper <drepper@redhat.com>
807
4bcb2658
UD
808 * string/strverscmp.c (__strverscmp): Fix last cleanups.
809 * string/tst-svc.input: Add new test case.
810 * string/tst-svc.expect: Adjust.
811 * string/Makefile: Don't ignore tst-svc error.
812
322e23db
UD
813 * sysdeps/x86_64/memchr.S: New file.
814
ae061910
UD
815 * resolv/resolv.h (RES_SNGLKUP): Define.
816 * resolv/res_init.c (res_setoptions): Recognize single-request option.
817 * resolv/res_send.c (send_dg): If we sent two requests at once and
818 only get one reply before timeout switch to mode where we send the
819 second request only after the first answer has been received.
820
a152f366
UD
8212009-04-05 Ulrich Drepper <drepper@redhat.com>
822
823 * sysdeps/x86_64/strlen.S: Optimize by using SSE2 instructions.
1df6f9d8 824 * sysdeps/x86_64/strchr.S: Likewise.
a152f366 825
2dbe6afe
UD
8262009-04-03 Ulrich Drepper <drepper@redhat.com>
827
c0bac8b0
UD
828 * configure.in: We need to test for the compiler earlier.
829
e109c612
UD
830 * misc/Makefile (routines): Add preadv, preadv64, pwritev, pwritev64.
831 * misc/Versions: Export preadv, preadv64, pwritev, pwritev64 for
832 GLIBC_2.10.
833 * misc/sys/uio.h: Declare preadv, preadv64, pwritev, pwritev64.
834 * sysdeps/unix/sysv/linux/kernel-features.h: Add entries for preadv
835 and pwritev.
836 * misc/preadv.c: New file.
837 * misc/preadv64.c: New file.
838 * misc/pwritev.c: New file.
839 * misc/pwritev64.c: New file.
840 * sysdeps/posx/preadv.c: New file.
841 * sysdeps/posx/preadv64.c: New file.
842 * sysdeps/posx/pwritev.c: New file.
843 * sysdeps/posx/pwritev64.c: New file.
844 * sysdeps/unix/sysv/linux/preadv.c: New file.
845 * sysdeps/unix/sysv/linux/preadv64.c: New file.
846 * sysdeps/unix/sysv/linux/pwritev.c: New file.
847 * sysdeps/unix/sysv/linux/pwritev64.c: New file.
848 * sysdeps/unix/sysv/linux/wordsize-64/preadv64.c: New file.
849 * sysdeps/unix/sysv/linux/wordsize-64/pwritev64.c: New file.
850
7166c77a
UD
851 * sysdeps/unix/sysv/linux/readv.c (__libc_readv): Fix calling of
852 compatibility code.
853 * sysdeps/unix/sysv/linux/writev.c (__libc_writev): Likewise.
854
2dbe6afe
UD
855 * sysdeps/unix/sysv/linux/kernel-features.h: Define
856 __ASSUME_COMPLETE_READV_WRITEV.
857 * sysdeps/unix/sysv/linux/readv.c: No need for userlevel fallback
858 with modern kernels.
859 * sysdeps/unix/sysv/linux/writev.c: Likewise.
860
861 * sysdeps/posix/readv.c: Since read is a cancellation point we have
862 to free a possible malloced buffer in case of cancellation.
863 * sysdeps/posix/writev.c: Likewise for write.
864
ff886b82
UD
8652009-04-02 Ulrich Drepper <drepper@redhat.com>
866
a065c007
UD
867 * sysdeps/unix/sysv/linux/bits/socket.h: Add missing protocol numbers.
868
ff886b82
UD
869 * configure.in: Recognize --enable-nss-crypt.
870 * config.make.in: Add nss-crypt entry.
871 * crypt/Makefile: If nss-crypt==yes, don't build md5.c, sha256.c,
872 sha512.c. Don't run md5test, sha256test, sha512test. Pass -DUSE_NSS
873 and include path for NSS directory to compiler for md5-crypt,
874 sha256-crypt, sha512-crypt. Link libcrypt.so with -lfreebl3.
875 * crypt/md5-crypt.c: If USE_NSS is defined, don't use local hash
876 function implementation, use NSS. Introduce wrappers around the
877 hash function calls. Little code size optimization.
878 * crypt/sha256-crypt.c: Likewise.
879 * crypt/sha512-crypt.c: Likewise.
880 * scripts/check-local-headers.sh: Ignore nss3 directory.
881
882 * configure.in: Rename pic_default to libc_cv_pic_default.
883 * config.make.in: Likewise.
884
1800de36
RM
8852009-04-01 Roland McGrath <roland@redhat.com>
886
887 * elf/elf.h (R_SPARC_GLOB_JMP): New macro.
888 (R_SPARC_GOTDATA_HIX22, R_SPARC_GOTDATA_LOX10): New macros.
889 (R_SPARC_GOTDATA_OP_HIX22, R_SPARC_GOTDATA_OP_LOX10): Likewise.
890 (R_SPARC_GOTDATA_OP, R_SPARC_H34): Likewise.
891 (R_SPARC_SIZE32, R_SPARC_SIZE64): Likewise.
892 (R_SPARC_GNU_VTINHERIT, R_SPARC_GNU_VTENTRY, R_SPARC_REV32): Likewise.
893 (R_SPARC_NUM): Update.
894 From Dave Miller <davem@davemloft.net>.
895
7166c77a 8962009-04-01 Ulrich Drepper <drepper@redhat.com>
3ce976cd
UD
897
898 * sysdeps/unix/sysv/linux/sys/eventfd.h (EFD_SEMAPHORE): Define.
899
20739e54
UD
9002009-03-31 Ulrich Drepper <drepper@redhat.com>
901
22c83193
UD
902 * elf/dl-open.c: Keep track of used name spaces and only iterate over
903 those which are used.
904 * elf/dl-addr.c: Likewise.
905 * elf/dl-caller.c: Likewise.
906 * elf/dl-fini.c: Likewise.
907 * elf/dl-iteratephdr.c: Likewise.
908 * elf/dl-libc.c: Likewise.
909 * elf/dl-load.c: Likewise.
910 * elf/dl-support.c: Likewise.
911 * elf/dl-sym.c: Likewise.
912 * elf/rtld.c: Likewise.
913 * sysdeps/generic/ldsodefs.h: Likewise.
914
20739e54
UD
915 * elf/dl-load.c: Remove support for systems without MAP_ANON.
916 * elf/dl-minimal.c: Likewise.
917 * elf/dl-misc.c: Likewise.
918 * elf/rtld.c: Likewise.
919 * sysdeps/generic/ldsodefs.h: Likewise.
920
db486995
UD
9212009-03-30 Ulrich Drepper <drepper@redhat.com>
922
cb14424e
UD
923 * elf/do-lookup.h (do_lookup_x): Minor optimization and cleanup.
924 Avoid reuse of complex expression.
925
db486995
UD
926 * po/fr.po: Update from translation team.
927
ae8d7b44
UD
9282009-03-16 Ulrich Drepper <drepper@redhat.com>
929
930 * include/dirent.h: Yet more changes to match sort function type
931 change.
932 * sysdeps/unix/sysv/linux/i386/alphasort64.c: Likewise.
933 * sysdeps/unix/sysv/linux/i386/olddirent.h: Likewise.
934 * sysdeps/unix/sysv/linux/i386/versionsort64.c: Likewise.
935
8efb2f1c
UD
9362009-03-16 Thomas Schwinge <tschwinge@gnu.org>
937
938 * dirent/scandir64.c (scandir64): Adjust declaration to type change.
939
d9822dbe
UD
9402009-03-16 Ulrich Drepper <drepper@redhat.com>
941
942 * nscd/connections.c (restart): Try to preserve the process name
943 by reading the /proc/self/exe symlink and using the return name.
944 Patch by Jeff Bastian <jbastian@redhat.com>.
945
71a5bd3e
UD
9462009-03-15 Ulrich Drepper <drepper@redhat.com>
947
2ca285b0
UD
948 [BZ #9733]
949 * elf/dl-load.c (_dl_map_object_from_fd): Only call audit hooks
950 if we are not loading a new audit library.
951 * elf/dl-reloc (_dl_relocate_object): Third parameter is now a bitmask.
952 Only use profiling trampoline for auditing if we are not relocating
953 an audit library.
954 * elf/dl-open.c (dl_open_worker): Adjust _dl_relocate_object call.
955 * elf/rtld.c: Likewise.
956 * sysdeps/generic/ldsodefs.h: Adjust _dl_relocate_object prototype.
957
7e342603
UD
958 * elf/rtld.c (dl_main): Extend help message for --audit option.
959
eee6b143
UD
960 [BZ #9759]
961 * dirent/dirent.h: Adjust prototypes of scandir, scandir64, alphasort,
962 alphasort64, versionsort, and versionsort64 to POSIX 2008.
963 * dirent/alphasort.c: Adjust implementation to type change.
964 * dirent/alphasort64.c: Likewise.
965 * dirent/scandir.c: Likewise.
966 * dirent/versionsort.c: Likewise.
967 * dirent/versionsort64.c: Likewise.
968 * sysdeps/wordsize-64/alphasort.c: Add hack to hide alphasort64
969 declaration.
970 * sysdeps/wordsize-64/versionsort.c: Add hack to hide versionsort64
971 declaration.
972
cd2d01fa
UD
973 [BZ #9880]
974 * inet/inet6_rth.c (inet6_rth_reverse): Compute number of segments
975 correctly. Set segleft member in output as required.
976 Patch partly by Yang Hongyang <yanghy@cn.fujitsu.com>.
977 * inet/tst-inet6_rth.c (do_test): Add tests for inet6_rth_reverse.
978
906dd40d
UD
979 [BZ #9881]
980 * inet/inet6_rth.c (inet6_rth_add): Add some error checking.
981 Patch mostly by Yang Hongyang <yanghy@cn.fujitsu.com>.
982 * inet/Makefile (tests): Add tst-inet6_rth.
983 * inet/tst-inet6_rth.c: New file.
984
71a5bd3e
UD
985 [BZ #5807]
986 * string/strlen.c (strlen): Fix omission in the expression to test
987 for NUL bytes.
988
878b72c5
UD
9892009-03-14 Ulrich Drepper <drepper@redhat.com>
990
fad070ab
UD
991 * crypt/sha256test.c (main): Perform 100,000 'a' test in a second way.
992
a42ad61b
UD
993 * elf/dl-runtime.c (reloc_offset): Define.
994 (reloc_index): Define.
995 (_dl_fixup): Rename reloc_offset parameter to reloc_arg.
996 (_dl_fixup_profile): Likewise. Use reloc_index instead of
997 computing index from reloc_offset.
998 (_dl_call_pltexit): Likewise.
999 * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve): Just pass
1000 the relocation index to _dl_fixup.
1001 (_dl_runtime_profile): Likewise for _dl_fixup_profile and
1002 _dl_call_pltexit.
1003 * sysdeps/x86_64/dl-runtime.c: New file.
1004
1f7c90a7
UD
1005 [BZ #9893]
1006 * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix
906dd40d 1007 alignment of La_x86_64_regs. Store xmm parameters.
1f7c90a7
UD
1008 Patch mostly by Jiri Olsa <olsajiri@gmail.com>.
1009
45466462
UD
1010 [BZ #9913]
1011 * string/strverscmp.c (__strverscmp): Fix case of different digits
1012 in fractional part of string.
1013 Patch by Jingyu Liu <jyliu@fortinet.com>.
1014 * string/Makefile (tests): Add tst-svc2.
1015 * string/tst-svc2.c: New file.
1016
1017 * string/strverscmp.c (__strverscmp): Optimize size of tables.
1018
878b72c5
UD
1019 * locale/iso-639.def: Add Min Nan.
1020
f53713a8
UD
10212009-03-11 Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
1022
878b72c5 1023 [BZ #9948]
f53713a8
UD
1024 * elf/dl-sysdep.c (_dl_show_auxv): Add support for AT_BASE_PLATFORM.
1025
f81ce288
UD
10262009-03-14 Ulrich Drepper <drepper@redhat.com>
1027
f53713a8
UD
1028 * elf/dl-sysdep.c (auxvars): Compress data structure.
1029
f81ce288
UD
1030 * sysdeps/i386/dl-machine.h (elf_machine_rel): Implement
1031 STT_GNU_IFUNC handling.
1032 (elf_machine_rela): Likewise.
1033
425ce2ed
UD
10342009-03-13 Ulrich Drepper <drepper@redhat.com>
1035
1036 * config.h.in (USE_MULTIARCH): Define.
1037 * configure.in: Handle --enable-multi-arch.
1038 * elf/dl-runtime.c (_dl_fixup): Handle STT_GNU_IFUNC.
1039 (_dl_fixup_profile): Likewise.
1040 * elf/do-lookup.c (dl_lookup_x): Likewise.
1041 * sysdeps/x86_64/dl-machine.h: Handle STT_GNU_IFUNC.
1042 * elf/elf.h (STT_GNU_IFUNC): Define.
1043 * include/libc-symbols.h (libc_ifunc): Define.
1044 * sysdeps/x86_64/cacheinfo.c: If USE_MULTIARCH is defined, use the
1045 framework in init-arch.h to get CPUID values.
1046 * sysdeps/x86_64/multiarch/Makefile: New file.
1047 * sysdeps/x86_64/multiarch/init-arch.c: New file.
1048 * sysdeps/x86_64/multiarch/init-arch.h: New file.
1049 * sysdeps/x86_64/multiarch/sched_cpucount.c: New file.
1050
1051 * config.make.in (experimental-malloc): Define.
1052 * configure.in: Handle --enable-experimental-malloc.
1053 * malloc/Makefile: Handle experimental-malloc flag.
1054 * malloc/malloc.c: Implement PER_THREAD and ATOMIC_FASTBINS features.
1055 * malloc/arena.c: Likewise.
1056 * malloc/hooks.c: Likewise.
1057 * malloc/malloc.h: Define M_ARENA_TEST and M_ARENA_MAX.
1058
e7f110cd
UD
10592009-03-11 Ulrich Drepper <drepper@redhat.com>
1060
1061 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Add branch
1062 prediction. A few size optimizations.
1063
bd82a247
UD
10642009-03-10 Ulrich Drepper <drepper@redhat.com>
1065
1066 * time/tzset.c: Optimize a bit for size.
1067
a99e59d7
UD
10682009-03-10 Jakub Jelinek <jakub@redhat.com>
1069
1070 * include/stdio.h (fmemopen): Add libc_hidden_proto.
1071 * libio/fmemopen.c (fmemopen): Add libc_hidden_def.
1072
1073 * elf/sprof.c: Avoid warning about multi-line comment.
1074
686f8c9d
UD
10752009-03-10 Ulrich Drepper <drepper@redhat.com>
1076
1077 * time/tzset.c (__tzset_parse_tz): Use correct string when parsing
1078 DST name.
1079 * time/tst-posixtz.c: Add tests for quoted timezone names.
1080
7db0cc42
UD
10812009-03-10 Jakub Jelinek <jakub@redhat.com>
1082
1083 * posix/unistd.h (_POSIX_VERSION, _POSIX2_VERSION, _POSIX2_C_BIND,
1084 _POSIX2_C_DEV, _POSIX2_SW_DEV, _POSIX2_LOCALEDEF): Define to
1085 200809L instead of 200112L.
1086 (_XOPEN_VERSION): For __USE_XOPEN2K8 define to 700.
1087 * posix/tst-sysconf.c (STDVER): Define to 200809L instead of 200112L.
1088
eec4b454
UD
1089 * stdlib/quick_exit.c (quick_exit): Pass &__quick_exit_funcs
1090 instead of __quick_exit_funcs to __run_exit_handlers.
1091 * stdlib/at_quick_exit.c (at_quick_exit): Add attribute_hidden.
1092 * stdlib/exit.h (__run_exit_handlers): Add noreturn attribute.
1093 (__cxa_at_quick_exit): Remove attribute_hidden.
1094 * stdlib/exit.c (exit): Pass &__exit_funcs instead of __exit_funcs
1095 to __run_exit_handlers.
1096 * stdlib/cxa_at_quick_exit.c (__cxa_at_quick_exit): Remove
1097 attribute_hidden.
1098
d7276cee
UD
10992009-03-10 Ulrich Drepper <drepper@redhat.com>
1100
1101 * po/id.po: Update from translation team.
1102
1454da21
UD
11032009-02-18 Jakub Jelinek <jakub@redhat.com>
1104
1105 * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S: Use
1106 .machine push; .machine "power6" and .machine pop around mtfsf
1107 insns outside of _ARCH_PWR6 define.
1108 * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S: Likewise.
1109 * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S:
1110 Likewise.
1111 * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S:
1112 Likewise.
1113 * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (_SET_DI_FPSCR): Likewise.
1114 * sysdeps/powerpc/fpu/fenv_libc.h (fesetenv_register,
1115 relax_fenv_state): Likewise.
1116
130ca12e
UD
11172009-03-08 Ulrich Drepper <drepper@redhat.com>
1118
610e67ed
UD
1119 * stdlib/Makefile (routines): Add quick_exit, at_quick_exit, and
1120 cxa_at_quick_exit.
1121 (static-only-routines): Add at_quick_exit.
1122 * stdlib/Versions: Export quick_exit and __cxa_at_quick_exit for
1123 GLIBC_2.10.
1124 * stdlib/quick_exit.c: New file.
1125 * stdlib/at_quick_exit.c: New file.
1126 * stdlib/cxa_at_quick_exit.c: New file.
1127 * stdlib/cxa_atexit.c (__cxa_atexit): Move body to new function. Call
1128 it appropriately.
1129 (__internal_atexit): New function.
1130 (__new_exitfn): Now takes parameter to point to the list to use.
1131 * stdlib/cxa_finalize.c: Remove quick_exit handlers, don't call them.
1132 * stdlib/exit.c (__run_exit_handlers): New function. Split from...
1133 (exit): ...here. Just call __run_exit_handlers appropriately.
1134 * stdlib/exit.h: Declare __quick_exit_funcs, __run_exit_handlers,
1135 __internal_atexit, __cxa_at_quick_exit. Adjust __new_exitfn.
1136 * stdlib/on_exit.c: Adjust call to __new_exitfn.
1137 * stdlib/stdlib.h: Declare at_quick_exit and quick_exit.
1138
130ca12e
UD
1139 * po/id.po: Update from translation team.
1140
9a4f9d1f
UD
11412009-03-07 Ulrich Drepper <drepper@redhat.com>
1142
1143 * po/ru.po: Update from translation team.
1144
6d781c94
UD
11452009-03-04 Ulrich Drepper <drepper@redhat.com>
1146
1147 * po/nl.po: Update from translation team.
1148
e00c5ece
UD
11492009-03-03 Ulrich Drepper <drepper@redhat.com>
1150
99eb932f
UD
1151 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Declare fallocate{,64}.
1152 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
1153 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
1154 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
1155 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
1156 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
1157 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
1158
e00c5ece
UD
1159 * po/pl.po: Update from translation team.
1160
749f5cc9
UD
11612009-03-02 Ulrich Drepper <drepper@redhat.com>
1162
1b994772 1163 [BZ #7083]
749f5cc9
UD
1164 * sysdeps/unix/sysv/linux/fallocate.c: New file.
1165 * sysdeps/unix/sysv/linux/fallocate64.c: New file.
1166 * sysdeps/unix/sysv/linux/wordsize-64/fallocate64.c: New file.
1167 * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: New file.
1168 * sysdeps/unix/sysv/linux/i386/fallocate64.c: New file.
1169 * sysdeps/unix/sysv/linux/i386/fallocate.c: New file.
1170 * sysdeps/unix/sysv/linux/Versions: Export fallocate and fallocate64
1171 for GLIBC_2.10.
1172 * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
1173 Add fallocate and fallocate64.
1174
1175 * io/fcntl.h: Pretty printing.
1176
6219e3cc
JJ
11772009-03-02 Richard Guenther <rguenther@suse.de>
1178
1179 * misc/sys/cdefs.h (__extern_always_inline): Add __artificial__
1180 attribute also for non-C99 inline semantics variant.
1181
134a9766
UD
11822009-02-12 Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
1183
1184 * sysdeps/powerpc/powerpc32/power7/fpu/Implies: New file.
1185 * sysdeps/powerpc/powerpc32/power7/Implies: Likewise.
1186 * sysdeps/powerpc/powerpc64/power7/fpu/Implies: Likewise.
1187 * sysdeps/powerpc/powerpc64/power7/Implies: Likewise.
1188 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/fpu/Implies:
1189 Likewise.
1190 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/fpu/Implies:
1191 Likewise.
1192
95bc1633
UD
11932009-03-02 Ulrich Drepper <drepper@redhat.com>
1194
1195 * po/cs.po: Update from translation team.
1196
43ea48a5
UD
11972009-02-28 Ulrich Drepper <drepper@redhat.com>
1198
1199 * po/bg.po: Update from translation team.
1200 * po/sv.po: Likewise.
f5faa3b6 1201 * po/fi.po: Likewise.
45572c23 1202 * po/vi.po: Likewise.
43ea48a5 1203
e965d514
RM
12042009-02-27 Roland McGrath <roland@redhat.com>
1205
1206 * Makeconfig (%.v.i): Depend on Makeconfig.
1207 Exclude % lines from initial #-comment removal.
1208
56a9651f
UD
12092009-02-27 Ulrich Drepper <drepper@redhat.com>
1210
1211 * po/ko.po: Update from translation team.
1212
682825ce
RM
12132009-02-26 Roland McGrath <roland@redhat.com>
1214
1215 * shadow/lckpwdf.c (__lckpwdf): Move FLAGS inside block using it,
1216 avoids unused warning.
1217
a3c37506
UD
12182009-02-26 Andrew Stubbs <ams@codesourcery.com>
1219 SUGIOKA Toshinobu <sugioka@itonet.co.jp>
1220
1221 * sysdeps/unix/sysv/linux/sh/sys/procfs.h: Don't include signal.h,
1222 sys/ucontext.h and asm/elf.h. Include sys/user.h.
1223 * sysdeps/unix/sysv/linux/sh/sys/user.h: Don't include features.h
1224 and asm/user.h. Include asm/ptrace.h.
1225 (PTRACE_GETREGS, PTRACE_SETREGS, PTRACE_GETFPREGS,
1226 PTRACE_SETFPREGS, PTRACE_GETFDPIC, PTRACE_GETFDPIC_EXEC,
1227 PTRACE_GETFDPIC_INTERP, PTRACE_GETDSPREGS, PTRACE_SETDSPREGS):
1228 Undefine.
1229 (start_thread): Don't undefine.
1230 (elf_greg_t, ELF_NGREG, elf_fpregset_t, user_fpu_struct, user):
1231 Define.
1232
f503060b
UD
12332009-02-26 Ulrich Drepper <drepper@redhat.com>
1234
6cbe890a
UD
1235 * wctype/wctype.h: The *_l functions are in POSIX 2008.
1236 * wcsmbs/wchar.h: mbsnrtowcs, open_wmemstream, wcpcpy, wcpncpy,
1237 wcscasecmp, wcsdup, wcsncasecmp, wcsnlen, wcsnrtombs,
1238 wcscasecmp_l, wcsncasecmp_l, wcscoll_l, and wcsxfrm_l.
1239 * sysdeps/mach/hurd/bits/posix_opt.h: Reset value of macros from
1240 200112L to 200809L.
1241 * sysdeps/unix/sysv/linux/bits/posix_opt.h: Likewise.
1242 * posix/getconf.c (vars): Add _SC_THREAD_ROBUST_PRIO_INHERIT and
1243 _SC_THREAD_ROBUST_PRIO_PROTECT entries.
1244 * bits/confname.h: Add _SC_THREAD_ROBUST_PRIO_INHERIT and
1245 _SC_THREAD_ROBUST_PRIO_PROTECT.
1246 * posix/unistd.h: fexecve is in POSIX 2008.
1247 * time/time.h: strftime_l is in POSIX 2008.
1248 * io/sys/stat.h: futimens is in POSIX 2008.
1249 * string/strings.h: strcasecmp_l and strncasecmp_l are in POSIX 2008.
1250 * string/string.h: stpcpy, stpncpy, strndup, strnlen, strsignal,
1251 strcoll_l, strerror_l, and strxfrm_l are in POSIX 2008.
1252 * stdlib/stdlib.h: mkdtemp is in POSIX 2008.
f503060b
UD
1253 * libio/stdio.h: dprintf, fmemopen, getdelim, getline,
1254 open_memstream, and vdprintf are in POSIX 2008.
1255
2e6d6bac
UD
12562009-02-25 Ulrich Drepper <drepper@redhat.com>
1257
3e6b0a28 1258 * include/features.h: Define macros for XPG7/POSIX 2008.
77db439e
UD
1259 * ctype/ctype.h: The *_l functions are in POSIX 2008.
1260 * dirent/dirent.h: alphasort, dirfd, scandir, and fdopendir are in
1261 POSIX 2008.
1f04d005
UD
1262 * locale/langinfo.h: nl_langinfo_l is in POSIX 2008.
1263 * locale/xlocale.h: Define locale_t type.
1264 * locale/locale.h: duplocale, freelocale, newlocale, uselocale are
1265 in POSIX 2008. Don't define locale_t here.
1266 * stdlib/monetary.h: strfmon_l is in POSIX 2008.
3e6b0a28
UD
1267 * sysdeps/unix/sysv/linux/bits/stat.h: Protect UTIME_NOW and
1268 UTIME_OMIT only with __USE_ATFILE.
1f04d005
UD
1269 * signal/signal.h: Declare psignal and psiginfo for POSIX 2008.
1270 * stdio-common/psiginfo.c: New file.
1271 * stdio-common/psiginfo-data.h: New file.
1272 * stdio-common/psiginfo-define.h: New file.
1273 * stdio-common/Makefile (routines): Add psiginfo.
1274 * stdio-common/Versions: Export psiginfo for GLIBC_2.10.
3e6b0a28
UD
1275 * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
1276 * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Likewise.
1277 * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
1278 * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
1279 * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
1280 * io/sys/stat.h: Move mknodat definition into same conditional as
1281 mknod.
1282 * time/sys/time.h: futimesat is not among the functions accepted
1283 into the POSIX standard.
1284
2e6d6bac
UD
1285 * include/features.h: If no feature selection given and we select
1286 by default a POSIX mode, also define __USE_POSIX_IMPLICITLY.
1287 * posix/Versions: Export __posix_getopt.
1288 * posix/getopt.c (_getopt_initialize): Take additional parameter.
1289 Use it to alternatively initialize __posixly_correct.
1290 (_getopt_internal_r): Take addition parameter. Pass on to
1291 _getopt_initialize.
1292 (_getopt_internal): Take addition parameter. Pass on to
1293 _getopt_internal_r.
1294 (getopt): Pass additional zero to _getopt_internal.
1295 (__posix_getopt): New function.
1296 * posix/getopt.h: Add redirection for getopt.
1297 * posix/getopt1.c (getopt_long): Pass additional zero to
1298 _getopt_internal.
1299 (getopt_long_only): Likewise.
1300 (_getopt_long_r): Pass additional zero to _getopt_internal_r.
1301 (_getopt_long_only_r): Likewise.
1302 * posix/getopt_int.h: Adjust declarations of _getopt_internal and
1303 _getopt_internal_r.
1304
67108e40
UD
13052009-02-24 Ulrich Drepper <drepper@redhat.com>
1306
1307 * bits/confname.h: Define _SC_TRACE_EVENT_NAME_MAX, _SC_TRACE_NAME_MAX,
1308 _SC_TRACE_SYS_MAX, _SC_TRACE_USER_EVENT_MAX, _SC_XOPEN_STREAMS.
1309 * sysdeps/posix/sysconf.c (__sysconf): Handle
1310 _SC_TRACE_EVENT_NAME_MAX, _SC_TRACE_NAME_MAX, _SC_TRACE_SYS_MAX,
1311 _SC_TRACE_USER_EVENT_MAX, _SC_XOPEN_STREAMS.
1312
1cccb96f
RM
13132009-02-24 Roland McGrath <roland@redhat.com>
1314
1315 [BZ #9895]
1316 * README.template: Reworded not to use substituted version number.
1317 Renamed to ...
1318 * README: ... here (no longer generated).
1319 * Makefile (README): Target removed.
1320
82780cbe
UD
13212009-02-24 Ulrich Drepper <drepper@redhat.com>
1322
5be0a688 1323 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf):
77db439e 1324 /proc/sys/kernel/rtsig_max doesn't exist anymore, use getrlimit
5be0a688
UD
1325 instead.
1326
8c4a5f42
UD
1327 * io/sys/stat.h: The lstat functions have been mandatory since 2001.
1328
82780cbe
UD
1329 * time/tzset.c (tzset_internal): Correct parsing of TZ envvar.
1330
77c571dd
UD
13312009-02-22 Ulrich Drepper <drepper@redhat.com>
1332
1333 * po/bg.po: Update from translation team.
1334
d82a27f8
JJ
13352009-02-16 Jakub Jelinek <jakub@redhat.com>
1336
1337 * stdlib/monetary.h: Uglify function parameter names.
1338 * sunrpc/rpc/pmap_clnt.h: Likewise.
1339 * sunrpc/rpc/svc.h: Likewise.
1340 * sunrpc/rpc/xdr.h: Likewise.
1341 * sunrpc/rpc/clnt.h: Likewise.
1342 * resolv/netdb.h: Likewise.
1343 * resolv/arpa/nameser.h: Likewise.
1344 * resolv/resolv.h: Likewise.
1345 * argp/argp.h: Likewise.
1346 * locale/langinfo.h: Likewise.
1347 * io/sys/stat.h: Likewise.
1348 * posix/spawn.h: Likewise.
1349 * nis/rpcsvc/nislib.h: Likewise.
1350 * malloc/obstack.h: Likewise.
1351 * sysdeps/ia64/bits/link.h: Likewise.
1352 * sysdeps/i386/bits/link.h: Likewise.
1353 * sysdeps/s390/bits/link.h: Likewise.
1354 * sysdeps/powerpc/bits/link.h: Likewise.
1355 * sysdeps/x86_64/bits/link.h: Likewise.
1356 * sysdeps/sparc/bits/link.h: Likewise.
1357 * sysdeps/sh/bits/link.h: Likewise.
1358 * sysdeps/unix/sysv/linux/i386/sys/io.h: Likewise.
1359 * sysdeps/unix/sysv/linux/x86_64/sys/io.h: Likewise.
1360 * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: Likewise.
1361 * sysdeps/unix/sysv/linux/sys/eventfd.h: Likewise.
1362
58a7457e
JJ
13632008-12-01 Fredrik Unger <fred@tree.se>
1364
1365 * soft-fp/double.h [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_SEMIRAW_D,
1366 FP_UNPACK_SEMIRAW_DP): Use _FP_UNPACK_RAW_1 instead of
1367 _FP_UNPACK_RAW_2, fix up first argument.
1368
f43b4be6
UD
13692009-02-15 Ulrich Drepper <drepper@redhat.com>
1370
1371 * sysdeps/unix/sysv/linux/getsysstats.c (next_line): New function.
1372 (GET_NPROCS_PARSER): Change parameters and use next_line.
1373 (__get_nprocs): Rewrite to not use stdio routines.
1374 * sysdeps/unix/sysv/linux/sparc/getsysstats.c (GET_NPROCS_PARSER):
1375 Change parameters and use next_line.
1376
20e498bd
UD
13772009-02-13 Ulrich Drepper <drepper@redhat.com>
1378
1379 [BZ #5381]
1380 * nscd/nscd.h: Remove definitions and declarations for mem_in_flight.
1381 Change mempool_alloc prototype.
1382 * nscd/mem.c (gc): Don't handle mem_in_flight.
1383 (mempool_alloc): Third parameter now only indicates whether this is the
1384 first call (to allocate data) or not. If it is, get db rdlock.
1385 Release it on error. Don't handle mem_in_flight.
1386 * nscd/aicache.c (addhstaiX): Mark he parameter as const.
1387 Adjust third parameter of mempool_alloc calls.
1388 Nothing to do here in case mempool_alloc fails.
1389 Avoid local variable shadowing parameter. No need to get db rdlock
1390 before calling cache_add.
1391 * nscd/cache.c (cache_add): Adjust call to mempool_alloc. There is
1392 no mem_in_flight array anymore.
1393 * nscd/connections.c: Remove definition and handling of mem_in_flight.
1394 * nscd/grpcache.c (cache_addgr): Adjust third parameter of
1395 mempool_alloc calls. Mark he parameter as const. Nothing to do here
1396 in case mempool_alloc fails. No need to get db rdlock before calling
1397 cache_add.
1398 * nscd/hstcache.c (cache_addhst): Likewise.
1399 * nscd/initgrcache.c (addinitgroupsX): Likewise.
1400 * nscd/servicescache.c (cache_addserv): Likewise.
1401 * nscd/pwdcache.c (cache_addpw): Likewise. Remove some debugging code.
1402
d8111eac
UD
14032009-02-11 Ulrich Drepper <drepper@redhat.com>
1404
1405 * po/lt.po: Update from translation team.
1406
40e2fc8b
UD
14072009-02-10 Ulrich Drepper <drepper@redhat.com>
1408
1409 * elf/dl-load.c (open_verify): In case VALID_ELF_HEADER is
1410 defined, allow additional data to be added using the optional
1411 MORE_ELF_HEADER_DATA macro.
1412 * sysdeps/unix/sysv/linux/ldsodefs.h (VALID_ELF_HEADER,
1413 VALID_ELF_OSABI, VALID_ELF_ABIVERSION, MORE_ELF_HEADER_DATA): Define.
1414
6c03cd11
UD
14152009-02-08 Ulrich Drepper <drepper@redhat.com>
1416
1417 * include/atomic.h: Define catomic_and if not already defined.
1418 * sysdeps/x86_64/bits/atomic.h: Define catomic_and.
1419 * sysdeps/i386/i486/bits/atomic.h: Likewise.
1420
bc16e0c4
UD
14212009-02-07 Ulrich Drepper <drepper@redhat.com>
1422
78ac92ad
UD
1423 * malloc/malloc.c (_int_free): Second argument is now mchunkptr.
1424 Change all callers.
6dd6a580 1425 (_int_realloc): Likewise. Third argument is now padded size
78ac92ad 1426 All _int_* functions are now static.
6dd6a580 1427
78ac92ad
UD
1428 * malloc/hooks.c: Change all callers to _int_free and _int_realloc.
1429 * malloc/arena.c: Likewise.
1430 * include/malloc.h: Remove now unnecessary declarations of the _int_*
1431 functions.
1432
7dddb4bd
UD
1433 * sunrpc/rpc_common.c: We cannot move _null_auth into .rodata that
1434 easily.
1435
bfacf1af
UD
1436 * malloc/malloc.c: Add branch prediction for use of the hooks.
1437
bc16e0c4
UD
1438 * grp/compat-initgroups.c [NOT_IN_libc] (__libc_use_alloca): Define.
1439
26b62243
UD
14402009-02-06 Ulrich Drepper <drepper@redhat.com>
1441
1442 [BZ #7095]
1443 * bits/confname.h: Add SUSv7 macros for getconf environments.
1444 * bits/environments.h: Likewise.
1445 * sysdeps/unix/sysv/linux/i386/bits/environments.h: Likewise.
1446 * sysdeps/unix/sysv/linux/powerpc/bits/environments.h: Likewise.
1447 * sysdeps/unix/sysv/linux/s390/bits/environments.h: Likewise.
1448 * sysdeps/unix/sysv/linux/sparc/bits/environments.h: Likewise.
1449 * sysdeps/unix/sysv/linux/x86_64/bits/environments.h: Likewise.
1450 * posix/confstr.c: Handle SUSv5 and SUSv7 environments.
1451 * posix/getconf.c: Likewise.
1452 * posix/sysconf.c: Likewise.
1453 * sysdeps/posix/sysconf.c: Likewise.
1454 * posix/Makefile (getconf.speclist): Also collect SUSv5 and SUSv7
1455 environments.
1456
3fe4c5b3
UD
14572009-01-16 Petr Baudis <pasky@suse.cz>
1458
1459 [BZ #9753]
1460 * resolv/res_libc.c (__res_maybe_init): Call __res_vinit()
1461 even if we currently have zero nscount.
1462
cbbcaf23
UD
14632009-02-06 Ulrich Drepper <drepper@redhat.com>
1464
1a9dd4e4
UD
1465 [BZ #9781]
1466 * grp/compat-initgroups.c (compat_call): Switch to use malloc when
1467 the input line is too long.
1468
51f8846e
UD
1469 * po/Makefile (libc.pot): Add f_print as function taking c-format
1470 parameter.
1471
cbbcaf23
UD
1472 * debug/xtrace.sh: Unify translatable messages.
1473 * elf/ldd.bash.in: Likewise.
1474 * elf/sprof.c: Likewise.
1475 * locale/programs/locale.c: Likewise.
1476 * malloc/memusage.sh: Likewise.
1477 * nss/getent.c: Likewise.
1478
14792009-02-06 Joseph Myers <joseph@codesourcery.com>
1480
1481 * debug/pcprofiledump.c (print_version,
1482 argp_program_version_hook): New function.
1483 * elf/ldconfig.c (more_help): New function.
1484 (argp): Use it.
1485 * elf/sln.c (usage): New function.
1486 (main): Support --help and --version.
1487 * malloc/memusagestat.c (print_version): New function.
1488 (argp_program_version_hook): New variable.
1489 * nscd/nscd.c (more_help): New function.
1490 (argp): Use it.
1491 * posix/getconf.c (main): Send --version output to stdout.
1492 Support --help.
1493 * sunrpc/rpc_main.c (usage, options_usage): Take STREAM and STATUS
1494 arguments. All callers changed.
1495 (print_version): New function.
1496 (parseargs): Support --help and --version.
1497 * sunrpc/rpcinfo.c (usage): Take STREAM argument. All callers
1498 changed.
1499 (print_version): New function.
1500 (main): Use getopt_long. Support --help and --version.
1501 * sysdeps/unix/sysv/linux/lddlibc4.c (main): Support --help and
1502 --version.
1503
88a3b8f9
UD
15042009-02-06 Ulrich Drepper <drepper@redhat.com>
1505
e2e390fa
UD
1506 * malloc/memusage.c (DEFAULT_BUFFER_SIZE): Change to 32768.
1507 (update_data): Fix handling of wrapping back
c3ab42a8
UD
1508 to the beginning of the buffer.
1509
88a3b8f9
UD
1510 [BZ #9823]
1511 * stdio-common/psignal.c (psignal): Fix test for empty string.
1512
62f63c47
UD
15132009-02-05 Ulrich Drepper <drepper@redhat.com>
1514
4f7408c7
UD
1515 * include/rpc/auth.h: Use libc_hidden_proto for _null_auth.
1516 * sunrpc/rpc_common.c: Add libc_hidden_def for _null_auth. Also
1517 move _null_auth to .rodata.
1518
970aa10f
UD
1519 * time/tzset.c (__tzset_parse_tz): DST offset must also allow hour
1520 value of 24.
1521
52de761a
UD
1522 * intl/dcigettext.c (DCIGETTEXT): Avoid some code duplication.
1523
62f63c47
UD
1524 * sysdeps/unix/opendir.c (__alloc_dir): We have a lot more memory
1525 today than when the original code was written. Use larger
1526 buffers. This also makes it unnecessary to have stat information,
1527 if this causes extra efforts.
1528 (__opendir): In case O_DIRECTORY works, don't call fstat just for
1529 __alloc_dir.
1530
0899b889
UD
15312009-02-03 Andrew Stubbs <ams@codesourcery.com>
1532
1533 * sysdeps/sh/sh4/dl-trampoline.S: Only set HAVE_FPU if __SH_FPU_ANY__
1534 is set.
1535 * sysdeps/sh/sh4/setjmp.S: Support SH4-NOFPU.
1536 * sysdeps/sh/sh4/__longjmp.S: Likewise.
1537 * sysdeps/unix/sysv/linux/sh/sh4/getcontext.S: Likewise.
1538 * sysdeps/unix/sysv/linux/sh/sh4/setcontext.S: Likewise.
1539 * sysdeps/unix/sysv/linux/sh/sh4/swapcontext.S: Likewise.
1540 * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Likewise.
1541
22cc3f75
UD
15422009-02-04 Ulrich Drepper <drepper@redhat.com>
1543
1544 * po/ru.po: Update from translation team.
1545
a71433e7
UD
15462008-11-17 Nathan Sidwell <nathan@codesourcery.com>
1547
1548 * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (struct sigevent):
1549 Add _tid slot to maintain consistency with kernel.
1550
82f2e9c6 15512009-02-04 Ulrich Drepper <drepper@redhat.com>
3a2e9947 1552
82f2e9c6
UD
1553 * libio/wfileops.c (_IO_wfile_underflow): Fix handling of
1554 incomplete characters at end of input buffer.
1555 * libio/Makefile (tests): Add tst-fgetwc.
1556 * libio/tst-fgetwc.c: New file.
1557 * libio/tst-fgetwc.input: New file.
3a2e9947 1558
ba022c06
UD
15592009-02-02 Andrew Stubbs <ams@codesourcery.com>
1560
1561 * sysdeps/unix/sysv/linux/sh/Makefile (libm.so-no-z-defs): Define.
1562
1b14353e
UD
15632009-02-02 Ulrich Drepper <drepper@redhat.com>
1564
1565 [BZ #9793]
1566 * iconv/gconv_trans.c (__gconv_transliterate): Don't change
1567 *OUTBUFSTART unless the whole output fit into the buffer.
1568 * iconv/Makefile (tests): Add tst-iconv4.
1569 * iconv/tst-iconv4.c: New file.
1570
ebc22416
UD
15712009-02-01 Ulrich Drepper <drepper@redhat.com>
1572
1573 * sysdeps/x86_64/cacheinfo.c (intel_02_known): Add new descriptors.
1574 * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
1575
7c8a6732
UD
15762009-01-29 Andrew Stubbs <ams@codesourcery.com>
1577
1578 * elf/Makefile (ld.so): Adjust the sed script to insert _begin in to
1579 newer linker scripts.
1580
43149780
UD
15812009-01-30 Ulrich Drepper <drepper@redhat.com>
1582
1583 [BZ #7040]
1584 * sysdeps/unix/sysv/linux/sys/inotify.h: Second parameter of
1585 inotify_rm_watch should have type int.
1586
bd4ace0b
UD
15872009-01-06 Steven Munroe <sjmunroe@us.ibm.com>
1588
1589 * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp):
1590 Make aligned_restore_vmx a local symbol.
1591 * sysdeps/powerpc/powerpc64/__longjmp-common.S (__longjmp):
1592 Likewise.
1593
430902da
AJ
15942009-01-30 Andreas Jaeger <aj@suse.de>
1595
1596 * sysdeps/unix/sysv/linux/bits/shm.h (SHM_EXEC): Define.
1597 * sysdeps/unix/sysv/linux/ia64/bits/shm.h (SHM_EXEC): Define.
1598 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h (SHM_EXEC): Define.
1599 * sysdeps/unix/sysv/linux/s390/bits/shm.h (SHM_EXEC): Define.
1600 * sysdeps/unix/sysv/linux/sh/bits/shm.h (SHM_EXEC): Define.
1601 * sysdeps/unix/sysv/linux/sparc/bits/shm.h (SHM_EXEC): Define.
1602 * sysdeps/unix/sysv/linux/x86_64/bits/shm.h (SHM_EXEC): Define.
1603
b7219e53
UD
16042009-01-11 Ryan S. Arnold <rsa@us.ibm.com>
1605
1606 [BZ #9726]
1607 * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (_SET_DI_FPSCR,
1608 _SET_SI_FPSCR): Clobber fp0 to prevent erroneous test-case passes.
1609
16102009-01-08 Ryan S. Arnold <rsa@us.ibm.com>
1611
1612 [BZ #9726]
1613 * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S
1614 (__CONTEXT_FUNC_NAME): Fix mtfsf to use fp31 instead of fp0.
1615 * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S
1616 (__CONTEXT_FUNC_NAME): Fix mtfsf to use fp31 instead of fp0.
1617
a3bd2846
UD
16182009-01-11 Thomas Schwinge <tschwinge@gnu.org>
1619
1620 * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Use
1621 memcpy instead of memcmp.
1622 (_dl_setup_pointer_guard): Likewise.
1623
1fdd89a7
UD
16242009-01-30 Ulrich Drepper <drepper@redhat.com>
1625
1626 * malloc/malloc.c (sYSMALLOc): Don't use assert when detecting
1627 manipulated brk, use malloc_printerr.
1628 * misc/sbrk.c (__sbrk): Better error handling for nonsense
1629 requests.
1630
8585cb74
UD
16312009-01-30 Jakub Jelinek <jakub@redhat.com>
1632
1633 * string/string.h (memchr, strchr, strrchr, strpbrk, strstr, index,
1634 rindex): For C++ add inlines so that they can be recognized as
1635 builtins.
1636 * string/strings.h: Define correct C++ prototypes for gcc 4.4.
1637
d8387c7b
UD
16382009-01-29 Ulrich Drepper <drepper@redhat.com>
1639 Jakub Jelinek <jakub@redhat.com>
1640
cdf77dd8
UD
1641 * string/string.h: Define correct C++ prototypes for gcc 4.4.
1642 * wcsmbs/wchar.h: Likewise.
d8387c7b 1643
647925b2
UD
16442009-01-29 Ulrich Drepper <drepper@redhat.com>
1645
1646 * sysdeps/i386/stackinfo.h (stackinfo_get_sp): Define.
1647 (stackinfo_sub_sp): Define.
1648
5627534a
UD
16492009-01-28 Ulrich Drepper <drepper@redhat.com>
1650
fd537e53
UD
1651 [BZ #9750]
1652 * nscd/mem.c (gc): Use alloca_count to get the real stack usage.
1653 * include/alloca.h (alloca_account): Define.
1654 * sysdeps/x86_64/stackinfo.h (stackinfo_get_sp): Define.
1655 (stackinfo_sub_sp): Define.
1656
00f5df0e
UD
1657 * nscd/connections.c (nscd_init): If database file access fails
1658 check whether this is due to permission problems and bail in that
1659 case.
31d322a2 1660
5627534a
UD
1661 [BZ #9741]
1662 * nscd/mem.c (gc): Fix assignment of he_data in case malloc is used.
1663 Reported by Jun'ichi Nomura <j-nomura@ce.jp.nec.com>.
1664
a7bd183f
UD
16652009-01-14 Kaz Kojima <kkojima@rr.iij4u.or.jp>
1666
1667 * sysdeps/unix/sysv/linux/sh/sysdep.h (INTERNAL_SYSCALL):
1668 Add "t" to clobber list.
1669 (INTERNAL_SYSCALL_NCS): Likewise.
1670
1dd75769
UD
16712009-01-28 Ulrich Drepper <drepper@redhat.com>
1672
1673 * nss/getent.c (print_networks): Don't print comma between aliases.
1674
25e84177
UD
16752009-01-23 Ulrich Drepper <drepper@redhat.com>
1676
1677 * sysdeps/unix/sysv/linux/tst-clone.c (do_test): Avoid warning.
1678
1679 * misc/hsearch_r.c (hcreate_r): We need at least three elements in
1680 the hash table.
1681 * misc/Makefile (tests): Add bug-hsearch1.
1682 * misc/bug-hsearch1.c: New file.
1683
0699a0ca
RM
16842009-01-22 Roland McGrath <roland@redhat.com>
1685
1686 * Makeconfig (%.v.i): Strip trailing # comments,
1687 not only whole-line comments.
1688
965cb60a
UD
16892009-01-10 Ulrich Drepper <drepper@redhat.com>
1690
1691 * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Take
1692 one parameter. If non-NULL use it to initialize return value.
1693 (_dl_setup_pointer_guard): New function.
1694 * sysdeps/unix/sysv/linux/dl-osinfo.h: Likewise.
1695 * sysdeps/generic/ldsodefs.h: Declare _dl_random.
1696 * elf/rtld.c (security_init): Pass _dl_random to
1697 _dl_setup_stack_chk_guard. Call _dl_setup_pointer_guard to initialize
1698 pointer_chk_guard.
1699 * elf/dl-sysdep.c (_dl_random): New variable.
1700 (_dl_sysdep_start): Handle AT_RANDOM.
1701 (_dl_show_auxv): Likewise.
1702 * elf/dl-support.c (_dl_random): New variable.
1703 (_dl_aux_init): Handle AT_RANDOM.
1704 * csu/libc-start.c [!SHARED] (libc_start_main): Pass _dl_random
1705 to _dl_setup_stack_chk_guard.
1706
1707 * elf/elf.h (AT_RANDOM): Define AT_BASE_PLATFORM and AT_RANDOM.
1708
8be96dd1
RM
17092009-01-10 Roland McGrath <roland@redhat.com>
1710
1711 * nscd/nscd.c (parse_opt): Use argp_error for bad -i argument.
1712
157cd5ac
UD
17132009-01-08 Ulrich Drepper <drepper@redhat.com>
1714
9b1c750e
UD
1715 * sysdeps/i386/fpu/libm-test-ulps: Adjust expm1 errors.
1716
157cd5ac
UD
1717 [BZ #9706]
1718 * nss/nss_files/files-parse.c (strtou32): New function.
1719 (INT_FIELD): Use strotu32 instead of strtoul to unify behavior
1720 across 32-bit and 64-bit platforms.
1721 (INT_FIELD_MAYBE_NULL): Likewise.
1722
960af8c2
JJ
17232009-01-08 Jakub Jelinek <jakub@redhat.com>
1724
1725 [BZ #9720]
1726 * sysdeps/unix/sysv/linux/bits/resource.h (enum __rusage_who): Avoid
1727 comma after RUSAGE_CHILDREN if not -D_GNU_SOURCE.
1728 * sysdeps/unix/sysv/linux/sparc/bits/resource.h (enum __rusage_who):
1729 Likewise.
1730
76c7f2cd
UD
17312009-01-05 Paolo Bonzini <bonzini@gnu.org>
1732
16c124f7 1733 [BZ #697]
76c7f2cd
UD
1734 * posix/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
1735 being NULL also if there are no backreferences.
1736 * posix/rxspencer/tests: Add testcases.
1737
bdb56bac
UD
17382009-01-04 Paolo Bonzini <bonzini@gnu.org>
1739
16c124f7 1740 [BZ #9697]
bdb56bac
UD
1741 * posix/bug-regex17.c: Add testcases.
1742 * posix/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
1743 handling.
1744
0480c901
UD
17452009-01-05 Martin Schwidefsky <schwidefsky@de.ibm.com>
1746
1747 * sysdeps/unix/sysv/linux/s390/bits/libc-vdso.h: New file.
1748 * sysdeps/unix/sysv/linux/s390/gettimeofday.c: New file.
1749 * sysdeps/unix/sysv/linux/s390/init-first.c: New file.
1750 * sysdeps/unix/sysv/linux/s390/Makefile (sysdep_routines): Add dl-vdso
1751 for elf subdir.
1752 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (INLINE_VSYSCALL,
1753 INTERNAL_VSYSCALL, INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK,
1754 INTERNAL_SYSCALL_NCS, HAVE_CLOCK_GETRES_VSYSCALL and
1755 HAVE_CLOCK_GETTIME_VSYSCALL: Define.
1756 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
1757 * sysdeps/unix/sysv/linux/s390/Versions: New file.
1758
b3918c7d
UD
17592008-12-31 Paolo Bonzini <bonzini@gnu.org>
1760
1761 * posix/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
1762 * posix/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
1763 re_string_skip_chars, re_string_reconstruct): Likewise.
1764 * posix/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
1765
df9293cb
UD
17662008-12-31 Rafael Avila de Espindola <espindola@google.com>
1767
1768 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr2_r): Check and
1769 adjust the buffer alignment.
1770
c90c1e1c
RM
17712009-01-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
1772
1773 * sysdeps/mach/hurd/Makefile (sysdep_headers) [subdir=socket]:
1774 Add net/ethernet.h net/if_arp.h net/if_ether.h net/if_ppp.h
1775 net/route.h.
1776
1777 * hurd/report-wait.c (describe_number): Use __stpcpy to prepend
1778 flavor to description only when flavor is not NULL.
1779
1780 * hurd/hurdsig.c (signal_allowed): Unlock _hurd_dtable_lock
1781 mutex after SIGIO/SIGURG lookup loop.
1782
5aff6fdf
RM
17832009-01-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
1784
1785 * bits/resource.h (PRIO_PROCESS, PRIO_PGRP, PRIO_USER): Add macros.
1786
b2bcd249
UD
17872009-01-03 Ulrich Drepper <drepper@redhat.com>
1788
1789 * sysdeps/unix/sysv/linux/i386/sysdep.h: Describe 6th argument
1790 handling.
1791
d36ad871
UD
17922009-01-02 Ulrich Drepper <drepper@redhat.com>
1793
ebb2788e
UD
1794 * sysdeps/unix/sysv/linux/kernel-features.h
1795 (__ASSUME_FUTEX_CLOCK_REALTIME): Define.
1796
72098116
UD
1797 * wcsmbs/wcsnrtombs.c (__wcsnrtombs): Create temporary state object
1798 if no output is written.
1799
623d0bf5
UD
1800 * version.h: Bump to 2.10 development.
1801
d36ad871
UD
1802 * posix/getconf.c: Update copyright year.
1803 * nss/getent.c: Likewise.
1804 * iconv/iconvconfig.c: Likewise.
1805 * iconv/iconv_prog.c: Likewise.
1806 * elf/ldconfig.c: Likewise.
1807 * catgets/gencat.c: Likewise.
1808 * csu/version.c: Likewise.
1809 * elf/ldd.bash.in: Likewise.
1810 * elf/sprof.c (print_version): Likewise.
1811 * locale/programs/locale.c: Likewise.
1812 * locale/programs/localedef.c: Likewise.
1813 * nscd/nscd.c (print_version): Likewise.
1814 * debug/xtrace.sh: Likewise.
1815 * malloc/memusage.sh: Likewise.
1816 * malloc/mtrace.pl: Likewise.
1817 * debug/catchsegv.sh: Likewise.
1818
25df09ab
UD
18192008-12-29 Mike Frysinger <vapier@gentoo.org>
1820
1821 * iconvdata/Makefile (iconv-rules): Use LC_ALL=C when running awk
1822 script.
1823
16b7dc27
UD
18242008-12-29 Ulrich Drepper <drepper@redhat.com>
1825
bfbbc63f
UD
1826 * sysdeps/posix/getaddrinfo.c (gaih_inet): When the
1827 gethostbyname4_r function call succeeded, just leave the loop.
1828
0f2ae55c
UD
1829 [BZ #9694]
1830 * wcsmbs/wchar.h: Move undefs for local __need_* constants to the
1831 very end.
5703f472
UD
1832 * wctype/wctype.h: Get wint_t definition directly from <stddef.h>.
1833 * wctype/Makefile (tests): Add bug-wctypeh.
1834 * wctype/bug-wctypeh.c: New file.
0f2ae55c 1835
50e481ce
UD
1836 * nscd/nscd_gethst_r.c (nscd_gethst_r): Don't use nscd if
1837 LOCALDOMAIN is defined.
1838 * nscd/nscd_getai.c (__nscd_getai): Likewise.
1839
217d45cd
UD
1840 * sysdeps/x86_64/bits/select.h: New file.
1841
16b7dc27
UD
1842 * resolv/res_init.c (__res_vinit): Count all servers in statp->nscount.
1843
bf93cd3b
UD
18442008-12-21 Bruno Haible <bruno@clisp.org>
1845
1846 [BZ #9677]
1847 * wcsmbs/mbsnrtowcs.c (__mbsnrtowcs): Create temporary state object
1848 if no output is written.
1849
49159e12
UD
18502008-12-13 Klaus Dittrich <kladit@arcor.de>
1851
1852 * login/utmp_file.c (pututline_file): Replace call to dup2 with
1853 libc internal symbol __dup2 to avoid access through the PLT.
1854
d4f0720b
UD
18552008-12-08 Ulrich Drepper <drepper@redhat.com>
1856
135460f4
UD
1857 [BZ #6545]
1858 * sysdeps/unix/sysv/linux/bits/socket.h (SCM_CREDENTIALS): Make
1859 available only for __USE_GNU.
1860
ed0da352
UD
1861 * inet/Makefile (tests): Add tst-getni2.
1862 * inet/tst-getni2.c: New file.
1863
d4f0720b
UD
1864 [BZ #7080]
1865 * inet/getnameinfo.c (getnameinfo): Check for output buffers being
1866 NULL when NI_NAMEREQD is set.
1867 Patch mostly by Yang Hongyang <yanghy@cn.fujitsu.com>.
1868 * inet/Makefile (tests): Add tst-getni1.
1869 * inet/tst-getni1.c: New file.
1870
cd72adeb
UD
18712008-12-03 Petr Baudis <pasky@suse.cz>
1872
1873 [BZ #7067]
1874 * nscd/connections.c (invalidate_cache): Use prune_run_lock
1875 instead of prune_lock.
1876 (nscd_run_prune): Before calling prune_cache, take prune_run_lock.
1877 * nscd/nscd.h (database_dyn): Add prune_run_cache.
1878
e87946cc
UD
18792008-12-07 Ulrich Drepper <drepper@redhat.com>
1880
200da00a
UD
1881 * resolv/res_send.c (send_dg): Use correct guards for SOCK_CLOEXEC
1882 use.
1883
1884 * sysdeps/unix/sysv/linux/kernel-features.h: Fix typo in accept4
1885 handling.
1886
905ef0da
UD
1887 * resolv/res_init.c (__res_vinit): Always assign to statp->nscount
1888 after reading name server list.
1889
71053765 1890 [BZ #7058]
e87946cc
UD
1891 * nis/nss_nis/nis-hosts.c (_nss_nis_gethostbyname4_r): Fix memory
1892 handling for host name aliases.
1893
d43b8bdd
JJ
18942008-11-24 Arkadiusz Miśkiewicz <arekm@maven.pl>
1895
1896 * sysdeps/i386/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Use LOAD_PIC_REG
1897 instead of doing things manually.
1898
18992008-11-26 Chris Steel <chris.steel.lnx@googlemail.com>
1900
1901 * posix/regex_internal.h (build_wcs_upper_buffer):
1902 Return type is reg_error_t.
1903
25a34eb7
UD
19042008-12-05 Ulrich Drepper <drepper@redhat.com>
1905
f3721ab2
UD
1906 * posix/globtest.sh: Use mktemp to create temporary file and
1907 directory.
1908
25a34eb7
UD
1909 * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_SET_S): Handle large
1910 sets correctly.
1911 (__CPU_CLR_S): Likewise.
1912 (__CPU_ISSET_S): Likewise.
1913
8680179f
UD
19142008-12-05 Joseph Myers <joseph@codesourcery.com>
1915 Ulrich Drepper <drepper@redhat.com>
1916
1917 * scripts/firstversion.awk: Use custom comparison function to compare
1918 version numbers.
1919 * scripts/versions.awk: Use sort invocation which can handle
1920 multi-digit sub-version numbers.
1921
72d50908
UD
19222008-12-04 Ulrich Drepper <drepper@redhat.com>
1923
1924 * locale/programs/ld-address.c (DEFINE_LANGUAGE_CODE2): Define.
1925 * locale/iso-639.def: Add Chhattisgarhi entry.
1926
f93fc0b7
UD
19272008-12-02 Ulrich Drepper <drepper@redhat.com>
1928
da5ac135
UD
1929 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname3_r): Recognize
1930 ESRCH return value.
1931 (_nss_dns_gethostbyname4_r): Likewise.
1932 * resolv/res_init.c (__res_vinit): Initialize nscount to zero.
1933 * sysdeps/posix/getaddrinfo.c (gaih_inet): In case we use
1934 gethostbyname4_r, we don't have a separate IPv6 status, so copy
1935 the no_data variable.
1936
6f5c3117
UD
1937 * resolv/res_init.c (__res_vinit): Fill in IPv4 name server
1938 information at the correct index.
1939
f93fc0b7
UD
1940 * socket/sys/socket.h: Declare accept4.
1941 * socket/accept4.c: New file.
1942 * sysdeps/unix/sysv/linux/accept4.c: New file.
1943 * sysdeps/unix/sysv/linux/i386/accept4.S: New file.
1944 * socket/Makefile (routines): Add accept4.
1945 * socket/Versions: Export accept4 with version GLIBC_2.10.
1946 * socket/paccept.c: Removed.
1947 * sysdeps/unix/sysv/linux/paccept.c: Removed.
1948 * sysdeps/unix/sysv/linux/i386/paccept.S: Removed.
1949 * Versions.def: Define GLIBC_2.10 for libc.
1950 * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_ACCEPT4.
1951
1952 * nscd/connections.c: Use accept4.
1953
1954 * sysdeps/unix/sysv/linux/i386/socket.S: Fix comment.
1955
1fa7ae05
UD
19562008-12-01 Ulrich Drepper <drepper@redhat.com>
1957
9744268c
UD
1958 * resolv/res_send.c (send_dg): Create sockets with non-blocking
1959 flag already set.
1960
1fa7ae05
UD
1961 * stdlib/setenv.c (unsetenv): Don't search environment if it does
1962 not exist.
30c06371
UD
1963 * stdlib/Makefile (tests): Add tst-unsetenv1.
1964 * stdlib/tst-unsetenv1.c: New file.
1fa7ae05 1965
37a6a271
UD
19662008-11-29 Ulrich Drepper <drepper@redhat.com>
1967
1968 * login/utmp_file.c (file_writable): New variable.
1969 (setutent_file): Don't try to open file for writing.
1970 (pututline_file): Before writing, make descriptor writable if
1971 necessary.
1972
ca4dc0fe
UD
19732008-11-26 Ulrich Drepper <drepper@redhat.com>
1974
be4607eb
UD
1975 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Only restrict search
1976 to IPv4 or IPv6 if an interface has been found.
ca4dc0fe 1977
01a74645
RM
19782008-11-26 Roland McGrath <roland@redhat.com>
1979
24fd0a5b
RM
1980 * sysdeps/unix/sysv/linux/alpha/ipc_priv.h: Renamed to ...
1981 * sysdeps/unix/sysv/linux/powerpc/ipc_priv.h: ... here.
1982
1983 * sysdeps/unix/sysv/linux/alpha/wordexp.c: Renamed to ...
1984 * sysdeps/unix/sysv/linux/ia64/wordexp.c: ... here.
1985 * sysdeps/unix/sysv/linux/sparc/sparc64/wordexp.c: Change #include.
1986
01a74645
RM
1987 * elf/elf.h (NT_386_IOPERM): New macro.
1988 (NT_PPC_VSX): New macro.
1989
c0439b95
RM
19902008-11-25 Roland McGrath <roland@redhat.com>
1991
1992 * sysdeps/alpha, sysdeps/unix/bsd/osf/alpha,
1993 sysdeps/unix/bsd/Attic/osf1/alpha, sysdeps/unix/sysv/linux/alpha,
1994 sysdeps/unix/sysv/linux/alpha/alpha, sysdeps/unix/alpha,
1995 sysdeps/mach/alpha, sysdeps/mach/hurd/alpha:
1996 Subdirectories moved to ports repository.
1997 * configure.in (base_machine): Remove alpha case.
1998
d3dc523b
RM
19992008-11-25 Thomas Schwinge <tschwinge@gnu.org>
2000
2001 * sysdeps/mach/strerror_l.c: New file.
2002
edba7a54
UD
20032008-11-13 Ryan S. Arnold <rsa@us.ibm.com>
2004
2005 [BZ #6411]
2006 * sysdeps/powerpc/fpu/Makefile: Added test case tst-setcontext-fpscr.
2007 * sysdeps/powerpc/fpu/feholdexcpt.c (_FPU_MASK_ALL): Define to replace
2008 magic numbers.
2009 * sysdeps/powerpc/fpu/fenv_libc.h (fesetenv_register): Dynamically
2010 choose mtfsf insn based on PPC_FEATURE_HAS_DFP.
2011 (relax_fenv_state): Same as above.
2012 (FPSCR_29): Reserve bit in ISA 2.05.
2013 (FPSCR_NI): Provide define for compat.
2014 * sysdeps/powerpc/fpu/fesetenv.c (_FPU_MASK_ALL): Define to replace
2015 magic numbers.
2016 * sysdeps/powerpc/fpu/feupdateenv.c (_FPU_MASK_ALL): Define to replace
2017 magic numbers.
2018 * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c: New file. Test case to
2019 test setcontext and swapcontext with dynamic 64-bit FPSCR detection.
2020 * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp): Adjust
2021 access to hwcap to account for hwcap size increase to uint64_t.
2022 * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S (__sigsetjmp ):
2023 Likewise.
2024 * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S
2025 (*setcontext): Likewise.
2026 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/setcontext.S:
2027 New file.
2028 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/swapcontext.S:
2029 New file.
2030 * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S
2031 (*setcontext): dynamically select mtfsf insn based on
2032 PPC_FEATURE_HAS_DFP. Adjust access to hwcap to account for hwcap size
2033 increase to uint64_t.
2034 * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S
2035 (*swapcontext): dynamically select mtfsf insn based on
2036 PPC_FEATURE_HAS_DFP. Adjust access to hwcap to account for hwcap size
2037 increase to uint64_t.
2038 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/setcontext.S:
2039 New file.
2040 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/swapcontext.S:
2041 New file.
2042 * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
2043 (*setcontext): dynamically select mtfsf insn based on
2044 PPC_FEATURE_HAS_DFP.
2045 * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
2046 (*swapcontext): dynamically select mtfsf insn based on
2047 PPC_FEATURE_HAS_DFP.
2048
ec297962
UD
20492008-11-13 Ulrich Drepper <drepper@redhat.com>
2050
b5449f8a 2051 * version.h: Bump for 2.9 release.
f52bb4d7 2052 * include/features.h (__GLIBC_MINOR__): Bump to 9.
b5449f8a 2053
ec297962
UD
2054 [BZ #7029]
2055 * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_ALLOC_SIZE):
2056 Multiply with sizeof of __cpu_mask, not 8 unconditionally after
2057 all the rounding.
2058
3cac8b75
UD
20592008-11-11 Ulrich Drepper <drepper@redhat.com>
2060
0e54a725 2061 [BZ #7009]
3cac8b75
UD
2062 * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): Don't abort for
2063 unknown request types for now.
2064
58a4b51a
RM
20652008-11-11 Roland McGrath <roland@redhat.com>
2066
2067 * sysdeps/x86_64/configure: New file.
2068
2069 * configure.in: Add AC_SUBST(libc_cv_cpp_asm_debuginfo).
2070 * configure: Regenerated.
2071
01bd5e96
JJ
20722008-11-03 Martin Schwidefsky <schwidefsky@de.ibm.com>
2073
2074 * sysdeps/s390/s390-64/dl-trampoline.S (_dl_runtime_profile): Use the
2075 correct instruction to remove the stack frame.
2076
a9069550
JJ
20772008-11-03 Michael Matz <matz@suse.de>
2078
2079 * sysdeps/s390/bits/atomic.h (__arch_compare_and_exchange_val_32_acq,
2080 __arch_compare_and_exchange_val_64_acq): Add "memory" clobber.
2081
4b23f9bd
JJ
20822008-11-07 Jakub Jelinek <jakub@redhat.com>
2083
09f66a4f
JJ
2084 * include/stdio.h (__builtin_fwrite, __builtin_fwrite_unlocked):
2085 Remove.
2086
4b23f9bd
JJ
2087 * bits/libc-tsd.h (__libc_tsd_define, __libc_tsd_address,
2088 __libc_tsd_get, __libc_tsd_set): Add TYPE argument, use it as the type
2089 of the thread variable instead of void *.
2090 * sysdeps/mach/hurd/bits/libc-tsd.h (__libc_tsd_define,
2091 __libc_tsd_address, __libc_tsd_get, __libc_tsd_set): Likewise.
2092 * include/ctype.h (CTYPE_B, CTYPE_TOUPPER, CTYPE_TOLOWER): Adjust
2093 __libc_tsd_define arguments.
2094 (__ctype_b_loc, __ctype_toupper_loc, __ctype_tolower_loc): Adjust
2095 __libc_tsd_address arguments. Remove union hack.
2096 * include/rpc/rpc.h (RPC_VARS): Adjust __libc_tsd_define arguments.
2097 * sunrpc/rpc_thread.c (RPC_VARS): Likewise.
2098 (__rpc_thread_destroy, rpc_thread_multi, __rpc_thread_variables):
2099 Adjust __libc_tsd_{set,get} arguments.
2100 * ctype/ctype-info.c (CTYPE_B, CTYPE_TOUPPER, CTYPE_TOLOWER): Adjust
2101 __libc_tsd_define arguments.
2102 * locale/uselocale.c (__uselocale): Adjust __libc_tsd_{set,get}
2103 arguments.
2104 * locale/lc-ctype.c (_nl_postload_ctype): Likewise.
2105 * locale/global-locale.c (__libc_tsd_LOCALE): Adjust type.
2106 (LOCALE): Adjust __libc_tsd_define arguments.
2107 * locale/localeinfo.h (_NL_CURRENT_LOCALE): Adjust __libc_tsd_get
2108 arguments.
2109 (LOCALE): Adjust __libc_tsd_define arguments.
2110 * sysdeps/mach/hurd/malloc-machine.h (MALLOC): Adjust __libc_tsd_define
2111 arguments.
2112 (tsd_setspecific, tsd_getspecific): Adjust __libc_tsd_{set,get}
2113 arguments.
2114
486bdb88
UD
21152008-11-02 Ulrich Drepper <drepper@redhat.com>
2116
2117 * malloc/malloc.c (public_rEALLOc): When new arena is used, copy
2118 really all bytes. Patch by Denys Vlasenko <dvlasenk@redhat.com>.
2119
64647f9a
UD
21202008-11-01 Ulrich Drepper <drepper@redhat.com>
2121
2122 [BZ #6966]
2123 * misc/hsearch_r.c (hsearch_r): Fix secondary hash function.
2124
acd44dbc
UD
21252008-10-24 Joseph Myers <joseph@codesourcery.com>
2126 Ulrich Drepper <drepper@redhat.com>
2127
2128 * math/tgmath.h (__floating_type): Use __builtin_classify_type in
2129 definition for GCC 3.1 and later.
64647f9a 2130
41e25904
UD
21312008-10-31 Jakub Jelinek <jakub@redhat.com>
2132
2133 * elf/dl-tls.c (__tls_get_addr): After calling _dl_update_slotinfo
2134 refetch dtv, as it might have changed.
2135 * elf/Makefile: Add rules to build and run tst-tls18.
2136 * elf/tst-tls18.c: New test.
2137 * elf/tst-tlsmod18a.c: New file.
2138
e148a644 21392008-09-09 Aurelien Jarno <aurelien@aurel32.net>
97f12390 2140
da9c2314 2141 [BZ #6875]
e148a644
UD
2142 * iconvdata/gconv-modules: Add LATIN9 as an alias to ISO-8859-15.
2143
21442008-10-31 Ulrich Drepper <drepper@redhat.com>
97f12390 2145
6daf1a2f
UD
2146 [BZ #6867]
2147 * sysdeps/powerpc/elf/rtld-global-offsets.sym: Fix typo.
2148
6f576bf6
UD
2149 [BZ #6919]
2150 * posix/spawnattr_getschedparam.c (posix_spawnattr_getschedparam):
2151 Fix length of copy operation.
2152
45a8beb5
UD
21532008-10-02 Pierre Habouzit <madcoder@debian.org>
2154
2155 * sysdeps/unix/sysv/linux/eventfd.c (eventfd): Use the eventfd2 syscall
2156 and fix its calling convention.
2157
ad12e635
UD
21582008-10-07 Andreas Schwab <schwab@suse.de>
2159
2160 [BZ #6942]
2161 * resolv/res_send.c (send_vc): Fix last change.
2162 (send_dg): Align here as well.
2163
3cf44918
UD
21642008-10-31 Ulrich Drepper <drepper@redhat.com>
2165
dbb6ab3e
UD
2166 * sysdeps/unix/sysv/linux/ulimit.c (__ulimit): Handle UL_GETFSIZE
2167 return value in case rlimit is RLIM_INFINITY.
2168
2169 [BZ #6947]
2170 * sysdeps/unix/sysv/linux/ulimit.c (__ulimit): Fix return value
2171 for UL_SETFSIZE.
1828d6b0
UD
2172 * resource/Makefile (tests): Add bug-ulimit1.
2173 * resource/bug-ulimit1.c: New file.
dbb6ab3e 2174
a5ff533e
UD
2175 [BZ #6974]
2176 * sunrpc/rpc_main.c (mkfile_output): Properly handle filename
2177 without dot. Properly terminate the string with a null byte.
2178 Based on a patch by Aurelien Jarno <aurelien@aurel32.net>.
2179
4bed549a
UD
2180 [BZ #6980]
2181 * debug/getgroups_chk.c (__getgroups_chk): Return EINVAL error for
2182 negative sizees.
2183 * posix/bits/unistd.h (getgroups): Call __getgroups_chk for
2184 negative __size.
2185
3cf44918
UD
2186 [BZ #6995]
2187 * sysdeps/powerpc/powerpc32/dl-machine.c: Fix typo in message.
2188
21b07d8b
UD
21892008-10-30 Ulrich Drepper <drepper@redhat.com>
2190
332c4465
UD
2191 * grp/initgroups.c (internal_getgrouplist): Don't prematurely
2192 abort if there is no initgroups_dyn function.
2193
21b07d8b
UD
2194 * resolv/res_send.c (send_dg): On timeout, only return nonzero
2195 result if any of the queries really provided an answer.
2196
4caa3fb7
UD
21972008-10-28 Ulrich Drepper <drepper@redhat.com>
2198
2199 * po/lt.po: Update from translation team.
2200
a22c3a0d
UD
22012008-10-26 Ulrich Drepper <drepper@redhat.com>
2202
2203 * po/id.po: Update from translation team.
2204
49685151
UD
22052008-10-24 Ulrich Drepper <drepper@redhat.com>
2206
2207 * resolv/res_query.c (__libc_res_nquery): Add a few casts.
660675de 2208 Fix tests for existence of second reply.
49685151 2209
8d9d5d35
UD
22102008-10-23 Ulrich Drepper <drepper@redhat.com>
2211
2212 * po/id.po: New file.
2213 Contributed by the Indonesian translation team.
2214
208bc836
UD
22152008-10-22 Dmitry V. Levin <ldv@altlinux.org>
2216
2217 * misc/syslog.c (openlog_internal): Fix __have_sock_cloexec
2218 initialization.
2219
60a23f5a
UD
22202008-10-17 Jakub Jelinek <jakub@redhat.com>
2221
2222 * elf/Makefile: Add rules to build and run tst-tls17.
2223 * elf/tst-tls17.c: New test.
2224 * elf/tst-tlsmod17a.c: New file.
2225 * elf/tst-tlsmod17b.c: Likewise.
2226
292eb817
UD
22272008-10-17 Ulrich Drepper <drepper@redhat.com>
2228
2229 * stdlib/divmod_1.c: Use correct type for dummy variable.
2230 * stdlib/mod_1.c: Likewise.
2231
5df2a427
UD
22322008-10-16 Ulrich Drepper <drepper@redhat.com>
2233
2234 * elf/dl-tls.c (_dl_update_slotinfo): Copy all of the initial DTV.
2235
472e5e08
JJ
22362008-10-16 Jakub Jelinek <jakub@redhat.com>
2237
2238 * sysdeps/unix/sysv/linux/sys/signalfd.h (signalfd): Fix __THROW vs.
2239 __nonnull order for C++.
2240 * sysdeps/unix/sysv/linux/alpha/sys/signalfd.h (signalfd): Likewise.
2241 * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h (signalfd): Likewise.
2242
86900abd
RM
22432008-10-01 Daniel Jacobowitz <dan@codesourcery.com>
2244
2245 * stdlib/longlong.h: Update from GCC.
2246
19c10a47
JJ
22472008-10-09 Jakub Jelinek <jakub@redhat.com>
2248 David S. Miller <davem@davemloft.net>
2249
2250 * sysdeps/sparc/sparc64/sparcv9v/memcpy.S: When not USE_BPR,
2251 make sure any registers used with 64-bit 'branch-on-register'
2252 instructions have their top 32-bits clear.
2253 * sysdeps/sparc/sparc64/sparcv9v/memset.S: Likewise.
2254 * sysdeps/sparc/sparc64/sparcv9v2/memcpy.S: Likewise.
2255
2fdde3b9
UD
22562008-09-18 Andreas Schwab <schwab@suse.de>
2257
2258 [BZ #6942]
2259 * resolv/res_send.c (send_vc): Fix use of unaligned address.
f00d47a3 2260 Properly handle partial reads.
2fdde3b9 2261
6ba25fcb
RM
22622008-10-01 Mark Shinwell <shinwell@codesourcery.com>
2263
2264 * elf/elf.h (STO_MIPS_PLT): New.
2265 (R_MIPS_COPY): New.
2266 (R_MIPS_JUMP_SLOT): New.
2267 (R_MIPS_NUM): Redefine to 128.
2268 (DT_MIPS_PLTGOT): New.
2269 (DT_MIPS_RWPLT): New.
2270 (DT_MIPS_NUM): Redefine to 0x35.
2271
97898201
UD
22722008-10-01 Ulrich Drepper <drepper@redhat.com>
2273
2274 * timezone/africa: Update from tzdata2008f.
2275 * timezone/asia: Likewise.
2276 * timezone/australasia: Likewise.
2277 * timezone/europe: Likewise.
2278 * timezone/leapseconds: Likewise.
2279 * timezone/northamerica: Likewise.
2280 * timezone/southamerica: Likewise.
2281 * timezone/zone.tab: Likewise.
2282
3452ded5
UD
22832008-09-30 Ulrich Drepper <drepper@redhat.com>
2284
2285 * nscd/connections.c: Disable use of paccept for now.
2286
54ad9327
UD
22872008-09-29 Ulrich Drepper <drepper@redhat.com>
2288
8ec2550e
UD
2289 * socket/Versions: Remove paccept export for GLIBC_2.9.
2290 * socket/Makefile (routines): Remove paccept.
2291 * socket/sys/socket.h: Remove paccept declaration.
2292
54ad9327
UD
2293 * po/sv.po: Update from translation team.
2294
1c5eba39
UD
22952008-09-22 Deborah S. Townsend <dstownse@us.ibm.com>
2296
2297 * sysdeps/s390/s390-64/s390x-mcount.S: Replace ahi with aghi.
2298 * sysdeps/unix/sysv/linux/s390/s390-64/socket.S: Likewise.
2299
0a26fc4d
UD
23002008-09-16 Ulrich Drepper <drepper@redhat.com>
2301
2302 * dlfcn/dlopen.c (dlopen_doit): Allow __RTLD_SPROF flag.
2303 Patch by Olivier Fourdan <ofourdan@redhat.com>.
2304
2bcaff08
UD
23052008-09-15 Ulrich Drepper <drepper@redhat.com>
2306
2307 * sunrpc/rpc/svc.h: Declare svcfd_create.
2308 Patch by Michael Solberg <msolberg@redhat.com>.
2309
caa60cb9 23102008-09-12 Flavio Leitner <fleitner@redhat.com>
f00d47a3 2311 Ulrich Drepper <drepper@redhat.com>
caa60cb9
UD
2312
2313 * malloc/malloc.c (public_vALLOc): Try other arenas in case
2314 _int_valloc fails.
2315 (public_pVALLOc): Likewise.
2316
6c161112
AJ
23172008-09-02 Andreas Jaeger <aj@suse.de>
2318
2319 * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: Fix last
2320 commit.
2321
0cb269d7
RM
23222008-08-26 Aurelien Jarno <aurelien@aurel32.net>
2323
452034cc 2324 [BZ #6860]
2bcaff08 2325 * hurd/hurd/signal.h (HURD_MSGPORT_RPC): Fix a typo.
0cb269d7 2326
13074b5b
RM
23272008-07-18 Daniel Jacobowitz <dan@codesourcery.com>
2328
2329 * Makefile (check-data): Check data directory in add-ons.
2330 * elf/Makefile (check-data): Likewise.
2331
58801a0e
RM
23322008-08-18 Roland McGrath <roland@redhat.com>
2333
2334 * configure.in (--with-cpu): Check compiler support for -march/-mcpu.
2335 * configure: Regenerated.
2336 * config.make.in (cflags-cpu): New substituted variable.
2337 (with-cpu): Variable removed.
2338 * Makeconfig (+cflags): Use $(cflags-cpu), not $(with-cpu).
2339
7df49c5d
UD
23402008-08-14 Ryan S. Arnold <rsa@us.ibm.com>
2341
2342 [BZ #6845]
2343 * sysdeps/powerpc/fpu/bits/mathinline.h (__signbitl): Copy new
2344 __signbitl definition and __LONG_DOUBLE_128__ guard from:
2345 * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h: Remove as
2346 redundant. Functions which call floating point assembler operations
2347 should go into a sysdeps powerpc/fpu directory.
2348
965805e8
UD
23492008-08-15 Ulrich Drepper <drepper@redhat.com>
2350
2351 * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Define MAP_STACK.
2352 * sysdeps/unix/sysv/linux/i386/bits/mman.h: Likewise.
2353
9cf73ab0
UD
23542008-08-14 Ulrich Drepper <drepper@redhat.com>
2355
62a1ffc6
UD
2356 * sysdeps/x86_64/memset.S: Reduce size of tables for PIC.
2357
9cf73ab0
UD
2358 * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): Undo all
2359 change related to AT_EXECFN. We cannot use that string.
2360 * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Remove
2361 _dl_execfn member.
2362 * elf/dl-support.c: Remove _dl_execfn variable.
2363 (_dl_aux_init): Remove handling of AT_EXECFN.
2364 * elf/dl-sysdep.c (_dl_sysdep_start): Remove handling of AT_EXECFN.
2365 * elf/rtld.c (process_envvars): Remove use of __ASSUME_AT_EXECFN.
2366
1bfa05cf
UD
23672008-08-13 Ulrich Drepper <drepper@redhat.com>
2368
7b3ba2c4
UD
2369 [BZ #6544]
2370 * libio/fmemopen.c: Implement binary mode. In this mode no NUL
2371 byte gets added to writes and seeks from the end use the length of
2372 the buffer and not the currently terminating NUL byte.
2373
1bfa05cf
UD
2374 [BZ #6634]
2375 * login/utmp_file.c (getutent_r_file): Take additional parameter.
2376 Set to true if locking failed.
2377 (getutid_r_file): Adjust caller.
2378 (pututline_file): Likewise. Return NULL in this case.
2379 Patch mostly by halesh.s@gmail.com.
2380
c5671698
UD
23812008-08-12 Ulrich Drepper <drepper@redhat.com>
2382
2383 [BZ #6589]
2384 * sysdeps/unix/sysv/linux/ifaddrs.c (struct sockaddr_ll_max):
2385 Define.
2386 (struct ifaddrs_storage): Use it instead of sockaddr_ll.
2387
4497384e
UD
23882008-08-12 Ryan S. Arnold <rsa@us.ibm.com>
2389
2390 [BZ #6839]
2391 * sysdeps/powerpc/powerpc32/dl-machine.c (CHECK_STATIC_TLS): Remove
2392 macro since it is now available in elf/dynamic-link.h.
2393
675d7111
RM
23942008-08-12 Roland McGrath <roland@frob.com>
2395
2396 * hurd/hurd/signal.h (HURD_MSGPORT_RPC): Avoid -Wparenthesis triggers,
2397 in case used outside of libc.
2398 Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>
2399
8b254432
UD
24002008-08-11 Ulrich Drepper <drepper@redhat.com>
2401
2402 * resolv/res_mkquery.c (res_nmkquery): Call ns_name_compress
2403 directly instead of going through dn_comp.
2404
ac84eeca
RM
24052008-08-11 Aurelien Jarno <aurel32@debian.org>
2406
2407 * sysdeps/mach/i386/machine-lock.h (__spin_unlock, __spin_try_lock):
2408 Fix asm constraints.
2409
f081b451
UD
24102008-08-07 Ulrich Drepper <drepper@redhat.com>
2411
2412 [BZ #6790]
2413 * sysdeps/unix/sysv/linux/bits/in.h (IP_PMTUDISC_PROBE): Define.
2414 (IPV6_PMTUDISC_PROBE): Likewise.
2415
30a4429e
UD
24162008-08-07 Pete Eberlein <eberlein@us.ibm.com>
2417
2418 [BZ #6791]
2419 * sysdeps/unix/sysv/linux/powerpc/bits/mman.h (PROT_SAO): Define.
2420
1642331d 24212008-08-01 Steven Munroe <sjmunroe@us.ibm.com>
626f68ff 2422 Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
1642331d
UD
2423
2424 [BZ #6817]
2425 * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags):
2426 Added the members 'vsx' and 'arch_2_06'.
2427 (_dl_powerpc_platforms): Add the member 'power7'.
2428 * sysdeps/powerpc/dl-procinfo.h: Modify _DL_HWCAP_FIRST
2429 to reflect the changes required by VSX and ISA 2.06.
2430 Modify _DL_PLATFORMS_COUNT to reflect the addition of
2431 'power7'.
2432 Defined PPC_PLATFORM_POWER7.
2433 (_dl_string_platform): Add support for POWER7.
2434 * sysdeps/powerpc/sysdep.h: Define bit masks for VSX
2435 capability and ISA 2.06.
2436
48b94661
UD
24372008-08-07 Ulrich Drepper <drepper@redhat.com>
2438
2439 [BZ #6824]
2440 * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h: Use correct
2441 macro to detect use of 128 bit long double.
2442 Patch by Ryan S. Arnold <rsa@us.ibm.com>.
2443
9523fd28
UD
24442008-08-05 Ulrich Drepper <drepper@redhat.com>
2445
9c0cb150
UD
2446 * scripts/gen-as-const.awk: Use 32-bit values on 32-bit platforms.
2447
46aea5cb 2448 [BZ #5794]
9523fd28
UD
2449 * sysdeps/i386/fpu/s_expm1l.S: Simply use exp implementation for large
2450 parameters.
2451 * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
2452 Patch by Denys Vlasenko <dvlasenk@redhat.com>.
2453
c400c931
UD
24542008-08-03 Ulrich Drepper <drepper@redhat.com>
2455
2456 * nscd/connections.c (main_loop_poll): Pass a buffer which is
2457 guaranteed to be large enough to read inotify event. Ignore
2458 EAGAIN error. Better error message. Add branch predicition.
2459 (main_loop_epoll): Likewise.
2460
3f39adac
RM
24612008-08-02 Roland McGrath <roland@frob.com>
2462
2463 * sysdeps/mach/i386/machine-lock.h (__spin_unlock, __spin_try_lock):
2464 Add memory clobbers.
2465
3501542f
UD
24662008-08-02 Ulrich Drepper <drepper@redhat.com>
2467
48b22986
UD
2468 * manual/arith.texi: Avoid @strong{Note:}.
2469 * manual/creature.texi: Likewise.
2470 * manual/filesys.texi: Likewise.
2471 * manual/math.texi: Likewise.
2472 * manual/memory.texi: Likewise.
2473 * manual/resource.texi: Likewise.
2474 * manual/syslog.texi: Likewise.
2475 * manual/time.texi: Likewise.
2476
3501542f
UD
2477 * sysdeps/posix/clock_getres.c (hp_timing_getres): Remove inline
2478 to prevent warning.
2479
17756df3
UD
24802008-08-01 Ulrich Drepper <drepper@redhat.com>
2481
ebcc1f4d
UD
2482 * sysdeps/unix/sysv/linux/Versions: Fix changes due to old patch for
2483 new epoll_create1 interface.
2484 * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
2485 * sysdeps/unix/sysv/linux/sys/epoll.h: Likewise.
2486 * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
2487
144bfa86
UD
2488 * include/arpa/nameser.h (NS_GET16): Use const pointer.
2489 (NS_GET32): Likewise.
2490
7e1b29c6
UD
2491 * sysdeps/unix/sysv/linux/kernel-features.h: s390 has the new
2492 syscalls, too.
2493
42fa1f67
UD
2494 * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): We cannot
2495 use the AT_EXECFN value if it is no absolute path.
2496 * sysdeps/unix/sysv/linux/kernel-features.h: Never define
2497 __ASSUME_AT_EXECFN.
2498
cd5743fd
UD
2499 * Versions.def: Add GLIBC_2.9 to libresolv.
2500 * include/resolv.h: Remove hidden proto declarations for __ns_*
2501 functions. Add them for __dn_count_labels and __p_secstodate.
2502 * include/arpa/nameser.h: Add a number of hidden proto declarations.
2503 Define ns_msg_getflags macro here.
2504 * resolv/res_debug.c: Add hidden definition for __dn_count_labels
2505 and __p_secstodate.
2506 * resolv/Versions: Export functions from <arpa/nameser.h> from
2507 libresolv in version GLIBC_2.9.
2508 * resolv/ns_name.c: Integrate changes from bind 9.5.0. Add necessary
2509 hidden definitions.
2510 * resolv/ns_netint.c: Likewise.
2511 * resolv/ns_parse.c: Likewise.
2512 * resolv/ns_print.c: Likewise.
2513 * resolv/ns_samedomain.c: Likewise.
2514 * resolv/ns_ttl.c: Likewise.
2515 * resolv/arpa/nameser_compat.h: Likewise.
2516 * resolv/arpa/nameser.h: Likewise. Remove macros which redirect
2517 function calls.
2518 * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Use __ns_get16
2519 instead of ns_get16.
2520 * resolv/nss_dns/dns-host.c (getanswer_r): Use __ns_get16 and
2521 __ns_get32 instead of ns_get16 and ns_get32 respectively.
2522 (gaih_getanswer_slice): Likewise.
2523 * resolv/Makefile (libresolv-routines): Add ns_date.
2524 * resolv/ns_date.c: New file.
2525
17756df3
UD
2526 * elf/Makefile (check-localplt.out): Also check libresolv and
2527 libcrypt.
2528
46bc5d43
UD
25292008-07-31 Ulrich Drepper <drepper@redhat.com>
2530
2531 * sysdeps/unix/sysv/linux/kernel-features.h: Define
2532 __ASSUME_O_CLOEXEC.
2533
a707cff6
UD
25342008-07-30 Ulrich Drepper <drepper@redhat.com>
2535
3c227386
UD
2536 * sysdeps/posix/getaddrinfo.c (gaih_inet): Raise size of initial
2537 buffer passed to NSS functions.
2538
9523fd28 2539 * nscd/connections.c (nscd_init): Typo in preprocessor directive.
bd7f4857
UD
2540
2541 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PACCEPT):
2542 Define.
2543
a707cff6
UD
2544 * misc/syslog.c (openlog_internal): Fix compile problem.
2545
0424d007
RM
25462008-07-28 Roland McGrath <roland@redhat.com>
2547
2548 * elf/dl-sysdep.c (_dl_show_auxv): Add AT_EXECFN to the table.
2549
b7da31a1
UD
25502008-07-28 Ulrich Drepper <drepper@redhat.com>
2551
300ea0ad
UD
2552 * io/ftw.c (add_object): Remove inline to avoid warning.
2553
d6173baa
UD
2554 * sysdeps/unix/sysv/linux/paccept.c: Fix compile problem.
2555
b7da31a1
UD
2556 * resolv/res_send.c (__libc_res_nsend): Take additional parameter.
2557 Use it instead of locally defined resplen2 variable.
2558 (res_nsend): Adjust for __libc_res_nsend interface change.
2559 (send_vc): Initialize *resplen2 if necessary. Read length of
2560 package into an appropriately aligned variable. Store converted length
2561 in new variable and use it appropriately.
2562 Add branch prediction help.
2563 * resolv/res_query.c (__libc_res_nquery): Take additional parameter
2564 and pass it on to __libc_res_nsend. Adjust all callers.
2565 (__libc_res_nsearch): Likewise.
2566 (__libc_res_nqeurydomain): Likewise.
2567 * resolv/nss_dns/dns-host.c: Adjust for __libc_res_nsearch interface
2568 change.
2569 (_nss_dns_gethostbyname4): Don't unconditionally allocate tmp array.
2570 Define resplen2 variable and pass it to __libc_res_nsearch and then
2571 to gaih_getanswer.
2572 (getanswer_r): In case of incorrect DNS data don't overread buffer.
2573 Add branch prediction.
2574 (gaih_getanswer_slice): Likewise. Check for invalid data types.
2575 (gaih_getanswer): Don't decode second slice if first one failed due
2576 to a too small buffer. Don't let not found status of second
2577 decoder shadow results of the first.
2578 * resolv/gethnamaddr.c (gethostbyname2): Adjust for __libc_res_nsearch
2579 and __libc_res_nquery interface changes
2580 (gethostbyaddr): Adjust for __libc_res_nquery interface change.
2581 * include/resolv.h: Adjust prototypes for __libc_res_nquery,
2582 __libc_res_nsearch, and __libc_res_nsend.
2583 * resolv/nss_dns/dns-canon.c: Adjust for __libc_res_nquery interface
2584 change.
2585 * resolv/nss_dns/dns-network.c: Adjust for __libc_res_nquery and
2586 __libc_res_nsearch interface changes.
2587
11ed3eae
UD
25882008-07-27 Ulrich Drepper <drepper@redhat.com>
2589
372aece0
UD
2590 * libio/iopopen.c (_IO_new_proc_open): Remove unnecessary volatile.
2591
e038616f
UD
2592 * posix/wordexp.c (exec_comm): Use pipe2 if possible to create
2593 file descriptors with close-on-exec set.
2594 (exec_comm_child): Fix the case where the write end of the pipe is
2595 STDOUT_FILENO already. In case it is, clear close-on-exec.
2596
d6e0c2a6
UD
2597 * sysdeps/unix/sysv/linux/syscalls.list: Add __pipe2 alias.
2598 * io/pipe2.c: Likewise.
2599 * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_PIPE2
2600 instead of __ASSUME_PACCEPT.
2601 * include/unistd.h: Declare __have_pipe2.
2602 * libio/iopopen.c: Implement "e" flag.
2603 * libio/Makefile (tests): Add tst-popen1.
2604 * libio/tst-popen1.c: New file.
2605
11ed3eae
UD
2606 * sysdeps/unix/sysv/linux/bits/socket.h: Define PF_ISDN and AF_ISDN.
2607 * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
2608
7438a80d
UD
26092008-07-26 Ulrich Drepper <drepper@redhat.com>
2610
c4a710b6
UD
2611 [BZ #6771]
2612 * libio/fileops.c (_IO_new_file_attach): Preserve errno around
2613 success call of _IO_SEEKOFF or calls which failed because the
2614 descriptor is for a pipe.
2615
31f3b159
UD
2616 * sunrpc/key_call.c (getkeyserv_handle): Use FD_CLOEXEC instead of
2617 magic number.
2618
c0216dfc
UD
2619 * misc/syslog.c (openlog_internal): Use SOCK_CLOEXEC if possible.
2620
72112b0c
UD
2621 * malloc/mtrace.c (mtrace): Use 'e' flag in fopen call. Drop
2622 F_SETFD use if we know fopen set the flag.
2623
7438a80d
UD
2624 * login/utmp_file.c (setutent_file): Minor optimization in case
2625 O_CLOEXEC is available.
2626
7b91359b
UD
26272008-07-24 Tom "spot" Callaway <tcallawa@redhat.com>
2628
2629 * Makeconfig: Define pie-ccflag and PIE-ccflag variables.
2630 * elf/Makefile: Use pie-ccflag variable.
2631 * nscd/Makefile: Likewise.
2632 * sysdeps/sparc/Makefile: Set $(pie-ccflag) to -fPIE.
2633
4057dc45
UD
26342008-07-21 Andreas Krebbel <krebbel1@de.ibm.com>
2635
e7135e24 2636 [BZ #6724]
4057dc45
UD
2637 * Versions.def: Add GLIBC_2.9 version tag for libutil.
2638 * sysdeps/unix/sysv/linux/s390/bits/utmp.h: Copy of
2639 gnu/bits/utmp.h. Check for __WORDSIZE_COMPAT32 removed.
2640 * sysdeps/unix/sysv/linux/s390/bits/utmpx.h: Copy of
2641 gnu/bits/utmpx.h. Check for __WORDSIZE_COMPAT32 removed.
2642 * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Add new files
2643 utmp32, utmpx32 and login32.
2644 * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Add 2.9
2645 versions of struct utmp functions to libc and libutil.
2646 * sysdeps/unix/sysv/linux/s390/s390-32/utmp-compat.h: New file.
2647 * sysdeps/unix/sysv/linux/s390/s390-32/getutent.c: New file.
2648 * sysdeps/unix/sysv/linux/s390/s390-32/getutent_r.c: New file.
2649 * sysdeps/unix/sysv/linux/s390/s390-32/getutid.c: New file.
2650 * sysdeps/unix/sysv/linux/s390/s390-32/getutid_r.c: New file.
2651 * sysdeps/unix/sysv/linux/s390/s390-32/getutline.c: New file.
2652 * sysdeps/unix/sysv/linux/s390/s390-32/getutline_r.c: New file.
2653 * sysdeps/unix/sysv/linux/s390/s390-32/getutmp.c: New file.
2654 * sysdeps/unix/sysv/linux/s390/s390-32/getutxent.c: New file.
2655 * sysdeps/unix/sysv/linux/s390/s390-32/getutxid.c: New file.
2656 * sysdeps/unix/sysv/linux/s390/s390-32/getutxline.c: New file.
2657 * sysdeps/unix/sysv/linux/s390/s390-32/login.c: New file.
2658 * sysdeps/unix/sysv/linux/s390/s390-32/login32.c: New file.
2659 * sysdeps/unix/sysv/linux/s390/s390-32/pututxline.c: New file.
2660 * sysdeps/unix/sysv/linux/s390/s390-32/updwtmp.c: New file.
2661 * sysdeps/unix/sysv/linux/s390/s390-32/updwtmpx.c: New file.
2662 * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: New file.
2663 * sysdeps/unix/sysv/linux/s390/s390-32/utmp32.c: New file.
2664 * sysdeps/unix/sysv/linux/s390/s390-32/utmp32.h: New file.
2665 * sysdeps/unix/sysv/linux/s390/s390-32/utmpx-convert.h: New file.
2666 * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.c: New file.
2667 * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: New file.
2668
ff0bf753
UD
26692008-07-26 Ulrich Drepper <drepper@redhat.com>
2670
619cc2f6
UD
2671 * scripts/gen-as-const.awk: Generate more widely usable code by
2672 using 64-bit arithmetic.
2673
1311b164 2674 * stdio-common/printf_fp.c (___printf_fp): Give wide outout code
3f414923 2675 the same treatment as narrow output code in last patch.
1311b164 2676
ff0bf753
UD
2677 * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Namespace cleanup.
2678
3f414923 2679 [BZ #6763]
ff0bf753
UD
2680 * elf/dl-load.c (local_strdup): Remove inline.
2681 (_dl_map_object_from_fd): Don't allocate l_symbolic_searchlist.r_list.
2682 * elf/dl-object.c (_dl_new_object): Allocate symbolic searchlist as
2683 part of the object.
2684
2685 * sysdeps/unix/sysv/linux/dl-origin.c: Add const to avoid warning.
2686
8ccf22f9
UD
26872008-07-25 Ulrich Drepper <drepper@redhat.com>
2688
bdd24a30
UD
2689 * sysdeps/unix/sysv/linux/kernel-features.h: IA-64 and SPARC have
2690 the new syscalls, too.
b5c0b5e4 2691
b41f1d14
UD
2692 * sysdeps/i386/i686/memcmp.S: Fix unwind information.
2693 Reported by Paul Pluzhnikov <ppluzhnikov@google.com>.
2694
3703468e
UD
2695 [BZ #6698]
2696 * stdio-common/_i18n_number.h (_i18n_number_rewrite): Take additional
2697 parameter for end of buffer. If temporary copy is too large use
2698 malloc.
2699 * stdio-common/vfprintf.c: Adjust for _i18n_number_rewrite
2700 interface change.
2701 * stdio-common/printf_fp.c (__printf_fp): Likewise.. Account for
2702 string rewrite when allocating buffer.
2703
bb0277bf
UD
2704 * sysdeps/unix/sysv/linux/kernel-features.h: PPC has the new
2705 syscalls, too.
2706
9dd84772
UD
2707 * nscd/connections.c (nscd_init): Clean up fcntl call.
2708
c418b1ba
UD
2709 * nscd/nscd_helper.c (open_socket): Use SOCK_CLOEXEC and
2710 SOCK_NONBLOCK if possible.
2711
b206d8b1
UD
2712 * sysdeps/unix/sysv/linux/opensock.c (__opensock): Use
2713 SOCK_CLOEXEC if available.
2714
8ccf22f9
UD
2715 * include/rpc/clnt.h: Declare __libc_clntudp_bufcreate and
2716 __libc_clntudp_bufcreate_internal.
2717 * include/sys/socket.h: Declare __have_sock_cloexec.
2718 * socket/Makefile (aux): Add have_sock_cloexec.
2719 * socket/have_sock_cloexec.c: New file.
2720 * sunrpc/clnt_udp.h (clntudp_bufcreate): Now a wrapper around
2721 __libc_clntudp_bufcreate.
2722 (__libc_clntudp_bufcreate): Former implementation of clntudp_bufcreate
2723 which takes an additional parameter. Create socket with non-blocking
2724 mode and close-on-exec flag set, if wanted.
2725 * sunrpc/Versions: Export __libc_clntudp_bufcreate@GLIBC_PRIVATE.
2726 * nis/ypclnt.c (yp_bind_client_create): Use __libc_clntpudp_bufcreate
2727 instead of clntudp_create. The socket has already the close-on-exec
2728 flag set if SOCK_CLOEXEC is defined.
2729
579cdf5a
UD
27302008-07-24 Ulrich Drepper <drepper@redhat.com>
2731
3ff2c948
UD
2732 * sysdeps/unix/sysv/linux/kernel-features.h: Define
2733 __ASSUME_PACCEPT, __ASSUME_IN_NONBLOCK, and __ASSUME_PACCEPT if
2734 appropriate.
2735 * nscd/connections.c: Avoid fcntl calls to set close-on-exec flag and
2736 non-blocking mode by using socket, paccept, and inotify_init1.
2737
bdcebfc4
UD
2738 * Versions.def (glibc): Add GLIBC_2.9.
2739 * io/Makefile (routines): Add dup3 and pipe2.
2740 * io/Versions [glibc] (GLIBC_2.9): Add dup3 and pipe2.
2741 * io/dup3.c: New file.
2742 * io/pipe2.c: New file.
2743 * posix/unistd.h: Declare dup3 and pipe2.
2744 * socket/Makefile (routines): Add paccept.
2745 * socket/Versions [glibc] (GLIBC_2.9): Add paccept.
2746 * socket/paccept.c: New file.
2747 * socket/sys/socket.h: Declare paccept.
2748 * sysdeps/unix/syscalls.list: Add entry for dup3.
2749 * sysdeps/unix/sysv/linux/Versions [glibc] (GLIBC_2.9): Add
2750 epoll_create2 and inotify_init1.
2751 * sysdeps/unix/sysv/linux/eventfd.c: Use eventfd1 syscall if possible.
2752 * sysdeps/unix/sysv/linux/paccept.c: New file.
2753 * sysdeps/unix/sysv/linux/signalfd.c: Use signalfd4 syscall if
2754 possible.
2755 * sysdeps/unix/sysv/linux/socketcall.h: Add SOCKOP_paccept.
2756 * sysdeps/unix/sysv/linux/syscalls.list: Add epoll_create2,
2757 inotify_init1, and pipe2 entries.
2758 * sysdeps/unix/sysv/linux/alpha/sys/epoll.h: New file.
2759 * sysdeps/unix/sysv/linux/alpha/sys/eventfd.h: New file.
2760 * sysdeps/unix/sysv/linux/alpha/sys/inotify.h: New file.
2761 * sysdeps/unix/sysv/linux/alpha/sys/signalfd.h: New file.
2762 * sysdeps/unix/sysv/linux/alpha/sys/timerfd.h: New file.
2763 * sysdeps/unix/sysv/linux/bits/socket.h: Define SOCK_CLOEXEC and
2764 SOCK_NONBLOCK.
2765 * sysdeps/unix/sysv/linux/i386/paccept.S: New file.
2766 * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: New file.
2767 * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: New file.
2768 * sysdeps/unix/sysv/linux/sparc/sys/inotify.h: New file.
2769 * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h: New file.
2770 * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: New file.
2771 * sysdeps/unix/sysv/linux/sparc/bits/socket.h: New file.
2772 * sysdeps/unix/sysv/linux/sys/epoll.h: Define EPOLL_CLOEXEC and
2773 EPOLL_NONBLOCK. Declare epoll_create2.
2774 * sysdeps/unix/sysv/linux/sys/eventfd.h: Define EFD_CLOEXEC and
2775 EFD_NONBLOCK.
2776 * sysdeps/unix/sysv/linux/sys/inotify.h: Define IN_CLOEXEC and
2777 IN_NONBLOCK. Declare inotify_init1.
2778 * sysdeps/unix/sysv/linux/sys/signalfd.h: Define SFD_CLOEXEC and
2779 SFD_NONBLOCK.
2780 * sysdeps/unix/sysv/linux/sys/timerfd.h: Define TFD_CLOEXEC and
2781 TFD_NONBLOCK.
2782
0e077a7e
UD
2783 * elf/elf.h: Define AT_EXECFN.
2784 * elf/rtld.c [!__ASSUME_AT_EXECFN] (process_envvars): Don't handle
2785 LD_ORIGIN_PATH.
2786 * elf/dl-sysdep.c (_dl_sysdep_start): Handle AT_EXECFN.
2787 * elf/dl-support.c: Define _dl_execfn. Don't define _dl_origin_path
2788 if __ASSUME_AT_EXECFN is defined.
2789 (_dl_aux_init): Handle AT_EXECFN.
2790 * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_AT_EXECFN
2791 for 2.6.27 and up.
2792 * sysdeps/generic/ldsodefs.h (rtld_global_ro): Add _dl_execfn.
2793 Don't define _dl_origin_path if __ASSUME_AT_EXECFN is defined.
2794 * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): Use
2795 _dl_execfn if available and avoid compatibility code if
2796 __ASSUME_AT_EXECFN is defined.
2797
579cdf5a
UD
2798 * sysdeps/unix/sysv/linux/dl-sysdep.h: Don't declare
2799 _dl_discover_osversion only for older kernels.
2800
7385c04c
RM
28012008-07-22 Roland McGrath <roland@frob.com>
2802
2803 * hurd/fd-read.c (_hurd_fd_read): Fix last change.
2804
8a26088d
RM
28052008-07-21 Roland McGrath <roland@frob.com>
2806
2807 * hurd/fd-read.c (_hurd_fd_read): Return EGRATUITOUS if the server
2808 returned too much data out of line.
2809
9f558b80
UD
28102008-07-20 Ulrich Drepper <drepper@redhat.com>
2811
2e79213a
UD
2812 * locale/setlocale.c (setname): Remove inline to avoid compiler
2813 warning.
2814
579cdf5a 2815 [BZ #6712]
9f558b80
UD
2816 * locale/setlocale.c (setlocale): Take the setlocale lock earlier.
2817
9667f97d
UD
28182008-07-15 Ulrich Drepper <drepper@redhat.com>
2819
2486b496
UD
2820 * stdio-common/vfprintf.c (_IO_helper_overflow): In case _IO_sputn
2821 doesn't manage to write anything, fail.
2822
9667f97d
UD
2823 * malloc/hooks.c (__malloc_check_init): Remove printf.
2824
6d4c073b
RM
28252008-07-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
2826
2827 * sysdeps/mach/hurd/bits/fcntl.h: Include <sys/types.h>.
2828
b7432416
UD
28292008-07-12 Ulrich Drepper <drepper@redhat.com>
2830
2831 * nscd/connections.c (main_loop_poll): Fix handling of read errors
2832 from inotify.
2833 (main_loop_epoll): Likewise.
2834
44abc397
UD
28352008-07-09 Ulrich Drepper <drepper@redhat.com>
2836
835113c6
UD
2837 * resolv/res_send.c: Remove unnecessary res_pquery prototype.
2838
fdc769f6
UD
2839 * resolv/res_query.c (__libc_res_nquery): Issue debug message only
2840 if DEBUG is defined.
2841
44abc397
UD
2842 * resolv/res_query.c (__libc_res_nquery): Align buffer for T_AAAA
2843 query. Adjust buffer size computation for padding.
2844
38dc8fad
UD
28452008-07-08 Ulrich Drepper <drepper@redhat.com>
2846
75684bd7
UD
2847 * stdio-common/Makefile: Add rules to build and run tst-setvbuf1.
2848 * stdio-common/tst-setvbuf1.c: New file.
2849 * stdio-common/tst-setvbuf1.expect: New file.
2850
38dc8fad
UD
2851 [BZ #6719]
2852 * libio/iosetvbuf.c (_IO_setvbuf): Correctly clear buffering flags
2853 when selecting fully-buffered stream.
2854 Patch by Wang Xin <wxinee@gmail.com>.
2855
107f4ac2
RM
28562008-07-06 Samuel Thibault <samuel.thibault@ens-lyon.org>
2857
2858 * sysdeps/mach/hurd/open.c: Include <stdio.h>.
2859 (__open_2): New function.
2860 (__open64_2): New alias to __open_2.
2861 * sysdeps/mach/hurd/openat.c: Include <stdio.h>.
2862 (__openat_2): New function.
2863 (__openat64_2): New alias to __openat_2.
2864
45ec3e79
UD
28652008-07-06 Ulrich Drepper <drepper@redhat.com>
2866
2867 [BZ #6723]
2868 * time/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
2869
0a583b54
RM
28702008-07-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
2871
2872 * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Define MSG_NOSIGNAL.
2873 * hurd/hurd/fd.h (__hurd_sockfail): Add extern inline function.
2874 * sysdeps/mach/hurd/recv.c (__recv): Use __hurd_sockfail instead of
2875 __hurd_dfail.
2876 * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Likewise.
2877 * sysdeps/mach/hurd/recvmsg.c (__recvmsg): Likewise.
2878 * sysdeps/mach/hurd/send.c (__send): Likewise.
2879 * sysdeps/mach/hurd/sendto.c (__sendfrom): Likewise.
2880 * sysdeps/mach/hurd/sendmsg.c (__sendmsg): Likewise.
2881
d5a0160b
RM
28822008-03-04 Samuel Thibault <samuel.thibault@ens-lyon.org>
2883
2884 * sysdeps/mach/hurd/recv.c (__recv): Initialize NPORTS.
2885 * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Likewise.
2886 * sysdeps/mach/hurd/recvmsg.c (__recvmsg): Likewise.
2887 * hurd/fd-read.c (_hurd_fd_read): Initialize NREAD.
2888 * hurd/get-host.c (_hurd_get_host_config): Likewise.
2889 * sysdeps/mach/hurd/dl-sysdep.c (__libc_read): Likewise.
2890
80922a99
UD
28912008-06-27 Ulrich Drepper <drepper@redhat.com>
2892
2893 [BZ #6657]
2894 * time/strptime_l.c: Don't clear s.era_cnt after successful match
2895 of %EY.
2896 Patch by Petr Baudis.
2897
34ca2ff7
UD
28982008-06-26 Ulrich Drepper <drepper@redhat.com>
2899
5ee0f5e2 2900 * resolv/res_debug.c (__p_type_syms): Add ns_t_dname entry.
34ca2ff7
UD
2901 Patch by Peter Jones <pjones@redhat.com>.
2902
104426b6
UD
29032008-06-25 Ulrich Drepper <drepper@redhat.com>
2904
2905 [BZ #6654]
2906 * stdlib/canonicalize.c (__realpath): readlink can write too much
2907 into the buffer on platforms without PATH_MAX.
2908
7166d23f
UD
29092008-06-17 Carlos O'Donell <carlos@codesourcery.com>
2910
4cb8e687 2911 [BZ #6653]
7166d23f
UD
2912 * posix/tst-regex.c (main): Rename to...
2913 (do_test): ... this. Remove cmdline option processing.
2914 (TIMEOUT): Define.
2915 (TEST_FUNCTION): Define.
2916 (CMDLINE_OPTIONS): Define.
2917
974069d8
UD
29182008-06-25 Ulrich Drepper <drepper@redhat.com>
2919
2920 [BZ #5210]
2921 * configure.in: Add -Werror to -fstack-protector test to catch
2922 unsupported architectures.
2923 Patch by Gilles Esponasse <g.esp@free.fr>.
2924
cefa2dd3
UD
29252008-06-17 Joseph Myers <joseph@codesourcery.com>
2926
2927 * stdlib/tst-setcontext.c: Set back_in_main before exit if
2928 getcontext returns ENOSYS.
2929
c00d1128
UD
29302008-06-18 Ulrich Drepper <drepper@redhat.com>
2931
2932 * nscd/connections.c (main_loop_poll): Fix test for read error.
2933 (main_loop_epoll): Likewise.
2934
a0edbb48
UD
29352008-06-13 Ulrich Drepper <drepper@redhat.com>
2936
d0a1ae94
UD
2937 * sysdeps/posix/getaddrinfo.c: Move _res_hconf_init call to a
2938 better place so it is not called when nscd is used.
2939
a0edbb48
UD
2940 * nscd/connections.c: Also recognize and handle changes to the
2941 resolver configuration file.
2942
46f70b3c
UD
29432008-06-12 Ulrich Drepper <drepper@redhat.com>
2944
5bcc6c0f
UD
2945 * time/strftime.c: Pass reference to tzset_called around to handle
2946 recursive calls.
2947
2948 [BZ #6612]
2949 * time/strftime.c (__strftime_internal): Call tzset() only
2950 when printing timezone-dependent values.
2951 Based on a patch by Petr Baudis <pasky@suse.cz>.
2952
f854efd7
UD
2953 * resolv/nss_dns/dns-host.c (gaih_getanswer): Don't
2954 unconditionally use second gaih_getanswer_slice result.
2955
46f70b3c
UD
2956 * sysdeps/posix/getaddrinfo.c (gai_inet): Remove unnecessary test.
2957 (getaddrinfo): RES must always be non-NULL.
2958
9ea8bfec
UD
29592008-06-12 Jakub Jelinek <jakub@redhat.com>
2960
2961 * sysdeps/powerpc/powerpc64/fpu/s_llround.S (__llround): Avoid using
2962 cr[34] registers.
2963 * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S (__llroundf): Likewise.
2964 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S (__llround):
2965 Likewise.
2966 * sysdeps/powerpc/powerpc32/fpu/s_lround.S (__lround): Avoid using cr3
2967 register.
2968
5a337776
UD
29692008-06-12 Ulrich Drepper <drepper@redhat.com>
2970
5228ba2f
UD
2971 * nscd/nscd.h (struct database_dyn): Add inotify_descr and clear_cache
2972 fields.
2973 * nscd/connections.c (inotify_fd): New variable.
2974 (nscd_init): Try to open an inotify descriptor.
2975 If successful, watch files for databases using inotify instead of
2976 having prune threads stat the files.
2977 (nscd_run_prune): Recognize clear_cache flag being set and call
2978 prune_cache appropriately.
2979 (main_loop_poll): Add inotify descriptor to wait set and handle the
2980 reported changes.
2981 (main_loop_epoll): Likewise.
2982 * nscd/cache.c (prune_cache): Don't stat files for databases if
2983 inotify is used.
2984 * sysdeps/unix/sysv/linux/Makefile [subdir=nscd]
2985 (CFLAGS-connections.c): Add -DHAVE_INOTIFY.
2986
5a337776
UD
2987 * nscd/grpcache.c (cache_addgr): Correctly compute size of
2988 fixed-size portion of the record.
2989 * nscd/servicescache.c (cache_addserv): Likewise.
2990 * nscd/pwdcache.c (cache_addpw): Likewise.
2991 * nscd/initgrcache.c (addinitgroupsX): Likewise.
2992
9ad58cc3
UD
29932008-06-11 Ulrich Drepper <drepper@redhat.com>
2994
2995 * nscd/mem.c (gc): Initialize obstack earlier so that if we jump
2996 out we don't use uninitialized memory.
2997
2998 * nscd/hstcache.c (cache_addhst): Send correct number of bytes to
2999 the client.
3000
c1283552
UD
30012008-06-10 Ulrich Drepper <drepper@redhat.com>
3002
3003 * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): Also log and
3004 ignore T_DNAME messages.
3005 * resolv/arpa/nameser_compat.h (T_DNAME): Define.
3006
eef8a803
JJ
30072008-06-05 Jakub Jelinek <jakub@redhat.com>
3008
3009 * misc/regexp.h (compile): Use __REPB_PREFIX macro.
3010 Avoid segfault if first GETC returns eof/'\0'/'\n'.
3011
ee78670e
JJ
30122008-06-03 Jakub Jelinek <jakub@redhat.com>
3013
3014 * nscd/nscd_getserv_r.c (__nscd_getservbyport_r): Pass cp
3015 instead of portstr to nscd_getserv_r. Patch by
3016 Roman Kagan <rkagan@mail.ru>.
3017
62605cbf
UD
30182008-05-26 Jim Meyering <meyering@redhat.com>
3019
10966640 3020 Remove more useless "if" tests before "free".
62605cbf
UD
3021 * include/inline-hashtab.h (htab_delete): Likewise.
3022 * libio/freopen.c (freopen): Likewise.
3023 * libio/freopen64.c (freopen64): Likewise.
3024 * locale/programs/ld-collate.c (collate_read): Likewise.
3025 * misc/fstab.c (libc_freeres_fn): Likewise.
3026 * posix/glob.c (globfree): Likewise.
3027
f63abf58
UD
30282008-05-24 Ulrich Drepper <drepper@redhat.com>
3029
3030 * string/Makefile (strop-tests): Add memmem.
3031 * string/test-memmem.c: New file.
3032 * string/test-string.h (BUF1PAGES): Define to 1 if undefined.
3033 (test_init): Size buf1 according to BUF1PAGES.
3034
ad8a5511
JJ
30352008-05-24 Jakub Jelinek <jakub@redhat.com>
3036
3037 * libio/stdio.h (vscanf): Fix -std=c99 redirect.
3038 * stdio-common/Makefile (tests): Add scanf16 and scanf17.
3039 (CFLAGS-scanf17.c): New.
3040 * stdio-common/scanf14.c (main): Add fscanf and scanf tests.
3041 * stdio-common/scanf15.c (main): Likewise.
f63abf58
UD
3042 * stdio-common/scanf16.c: New file.
3043 * stdio-common/scanf17.c: New file.
ad8a5511 3044
e2003883
UD
30452008-05-24 Ulrich Drepper <drepper@redhat.com>
3046
3047 * resolv/res_send.c (send_dg): If we already have one of two
b5ba2c79 3048 answers and the server reports SERVFAIL, NOTIMP, or REFUSED, then
e2003883
UD
3049 use the one answer insted of failing.
3050
acbb9873
UD
30512008-02-20 Ryan S. Arnold <rsa@us.ibm.com>
3052
3053 * math/libm-test.inc (exp_test): Exclude expl(1000.0L) from
3054 being executed on PowerPC as the expected result exceeds IBM
3055 long double 128 __LDBL_MAX__.
3056
e85f1d6a
RM
30572008-05-21 Roland McGrath <roland@redhat.com>
3058
3059 * shlib-versions (sparc.*-.*-.*, sparc64.*-.*-.*): Add ABI lines.
3060
3061 * Makefile (check-data): Use $(abi-name) before other guesses.
3062 Look in $(add-ons) dirs before scripts/data/.
3063 * elf/Makefile (check-data): Likewise.
3064
3065 * scripts/soversions.awk: Grok ABI line.
3066 * Makeconfig ($(common-objpfx)soversions.mk): Likewise.
3067 Emit definition for abi-name variable.
3068
d8e763c6
UD
30692008-05-21 Ulrich Drepper <drepper@redhat.com>
3070
e92799fc 3071 * string/endian.h: Define new fixed-size hto* and *toh macros only
e85f1d6a 3072 if [__USE_BSD].
e92799fc 3073
d8e763c6
UD
3074 * iconvdata/Depend: Add localedata.
3075
009ef333
RM
30762008-05-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
3077
3078 * bits/termios.h (ONLCR): Define under [__USE_XOPEN] too.
3079
86746abb
JJ
30802008-05-08 David S. Miller <davem@davemloft.net>
3081
3082 * sysdeps/unix/sysv/linux/sparc/sparc32/setcontext.S: Use
3083 HIDDEN_JUMPTARGET.
3084 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
3085 (__SYSCALL_CLOBBERS): Remove %g* registers.
3086 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
3087 (__SYSCALL_CLOBBERS): Likewise.
3088 * scripts/data/localplt-sparc-linux-gnu.data: New file.
f63abf58 3089 * scripts/data/localplt-sparc64-linux-gnu.data: New file.
86746abb 3090
5e6f34c2
JJ
30912008-05-21 Jakub Jelinek <jakub@redhat.com>
3092
3093 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
3094 (CALL_ERRNO_LOCATION): Define.
3095 (__SYSCALL_STRING, __CLONE_SYSCALL_STRING): Use it.
3096 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
3097 (CALL_ERRNO_LOCATION): Define.
3098 (__SYSCALL_STRING, __CLONE_SYSCALL_STRING): Use it.
3099 * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S (__brk): Use
3100 HIDDEN_JUMPTARGET for __errno_location call in libc.so.
3101
4beb4532
UD
31022008-05-20 Ulrich Drepper <drepper@redhat.com>
3103
3104 * include/inline-hashtab.h (higher_prime_number): Fix type of mid
3105 variable.
3106
ed8f38ba
JJ
31072008-05-20 Jakub Jelinek <jakub@redhat.com>
3108
3109 * sysdeps/unix/sysv/linux/sparc/sparc32/sigcontextinfo.h
3110 (FIRST_FRAME_POINTER): Define.
3111
31122008-05-09 David S. Miller <davem@davemloft.net>
3113
3114 * sysdeps/sparc/sparc64/backtrace.c: New file.
3115
c1b8190a
JJ
31162008-05-14 David S. Miller <davem@davemloft.net>
3117
3118 * sysdeps/sparc/machine-gmon.h: New file.
3119 * sysdeps/sparc/sparc-mcount.S: Likewise.
3120 * sysdeps/sparc/Makefile: Add sparc-mcount target to
3121 sysdep_routines in gmon directory.
3122
84aacd93
JJ
31232008-05-19 Jakub Jelinek <jakub@redhat.com>
3124
3125 * elf/soinit.c (__EH_FRAME_BEGIN__): Remove.
3126
5908f779
UD
31272008-05-19 Ulrich Drepper <drepper@redhat.com>
3128
3129 * resolv/res_query.c (__libc_res_nquery): In case one of two
3130 answer was too short don't try to read that answer's header.
3131
3132 * resolv/res_send.c (send_dg): In case of timeout and there are
3133 two queries and one has been answered, return value indicating
3134 success.
3135
528741cb
UD
31362008-05-18 Ulrich Drepper <drepper@redhat.com>
3137
3138 * nscd/cache.c (cache_add): Take additional parameter specifying
3139 whether this is in response of a cache refill. Check alignment
3140 of package data. Revamp waking of pruning thread.
3141 (prune_cache): Small optimization.
3142 * nscd/nscd.h: Adjust cache_add prototypes.
3143 * nscd/aicache.c: Adjust cache_add calls.
3144 * nscd/grpcache.c: Likewise.
3145 * nscd/hstcache.c: Likewise.
3146 * nscd/initgrcache.c: Likewise.
3147 * nscd/pwdcache.c: Likewise.
3148 * nscd/servicescache.c: Likewise.
3149 * nscd/connections.c (restart): Really disable cache use before
3150 exec attempt. If it fails, reenable cache.
3151 (nscd_run_prune): Initialize wakeup_time. After wakeup, set wakeup
3152 time to max to be able to notice concurrent cache additions. Unlock
3153 prune_lock while performing gc. Afterwards compute wakeup time with
3154 current wakeup_time value in mind.
3155
343996c4
UD
31562008-05-17 Ulrich Drepper <drepper@redhat.com>
3157
5811d72b
UD
3158 * nscd/mem.c (gc): Avoid stack overflow when allocating move list.
3159
fa526148
UD
3160 * nscd/mem.c (gc): Correctly determine highest used array element
3161 in mark.
3162
77d40f10
UD
3163 * nscd/mem.c (markrange): Add assert to check entries are all
3164 aligned. Small cleanup in bitmap use.
3165
8884028c
UD
3166 * nscd/nscd.h (mem_in_flight): Replace blockaddr field with
3167 blockoff of type nscd_ssize_t.
3168 * nscd/mem.c (gc): Simplify markrange call for on-flight blocks.
3169 (mempoll_alloc): Record block offset and not address.
3170
b2159575
UD
3171 * nscd/mem.c (gc): Fix test for stack overuse.
3172
5c9629d2
UD
3173 * nscd/aicache.c (addhstaiX): Fix a few small problems, cleanups,
3174 more asserts.
3175
66d90496
UD
3176 * sysdeps/posix/getaddrinfo.c (gaih_inet): If nscd reports no
3177 entry is available, believe it.
3178
343996c4
UD
3179 * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): If there are
3180 no answers return NSS_STATUS_NOTFOUND.
3181 (gaih_getanswer): Don't call gaih_getanswer_slice if the answer
3182 buffer does not have any content.
3183
91c8a74b
UD
31842008-05-16 Ulrich Drepper <drepper@redhat.com>
3185
74e13385
UD
3186 * string/strcasestr.c (CMP_FUNC): Use __strncasecmp, not strncasecmp.
3187
91c8a74b
UD
3188 * sysdeps/posix/getaddrinfo.c (gaih_inet): After gethostbyname4_r
3189 lookup, don't assign canon unconditionally.
3190
0caca71a
UD
31912008-05-14 Ulrich Drepper <drepper@redhat.com>
3192
3193 * string/Makefile (distribute): Add str-two-way.h.
3194
31952008-03-29 Eric Blake <ebb9@byu.net>
3196
3197 Rewrite string searches to O(n) rather than O(n^2).
3198 * string/str-two-way.h: New file. For linear fixed-allocation
3199 string searching.
3200 * string/memmem.c: New implementation.
3201 * string/strstr.c: New implementation.
3202 * string/strcasestr.c: New implementation.
3203
b194db79
UD
32042008-04-11 Paolo Bonzini <bonzini@gnu.org>
3205
3206 * posix/regcomp.c (optimize_utf8): Add a note on why we test
3207 opr.ctx_type.
3208 (calc_first): Initialize constraint field.
3209 (duplicate_node_closure): Use it instead of special casing ANCHORS.
3210 Use search_duplicated_node to avoid loops. Fix grammar.
3211 (duplicate_node): Merge constraint field for all node types.
3212 (calc_eclosure_iter): Look at constraint field for all node types.
3213 * posix/regex_internal.c (create_cd_newstate): Don't look at
3214 create_cd_newstate.
3215
c8d49f05
UD
32162008-05-14 Ulrich Drepper <drepper@redhat.com>
3217
215a8745
UD
3218 [BZ #6428]
3219 * configure.in: Don't use $CFLAGS when assembling, use $ASFLAGS.
3220
2f9a1be8
UD
3221 [BZ #6442]
3222 * string/endian.h: Add macros for fixed-size endian conversion.
3223 * bits/byteswap.h: Allow inclusion from <endian.h>.
3224 * sysdeps/i386/bits/byteswap.h: Likewise.
3225 * sysdeps/ia64/bits/byteswap.h: Likewise.
3226 * sysdeps/s390/bits/byteswap.h: Likewise.
3227 * sysdeps/x86_64/bits/byteswap.h: Likewise.
3228 * string/Makefile (tests): Add tst-endian.
3229 * string/tst-endian.c: New file.
3230
c8d49f05
UD
3231 * iconvdata/run-iconv-test.sh: Use = instead of == in test.
3232 Patch by Reuben Thomas.
3233
a754f018
UD
32342008-05-14 Joseph Myers <joseph@codesourcery.com>
3235
3236 * iconvdata/Makefile (bug-iconv6-ENV, tst-iconv7-ENV): Define.
3237
372bfcac
UD
32382008-05-14 Ulrich Drepper <drepper@redhat.com>
3239
a754f018
UD
3240 * iconvdata/bug-iconv6.c (do_test): Use de_DE.UTF-8 locale.
3241
5deca9bb
UD
3242 [BZ #6461]
3243 * iconv/gconv_simple.c (BODY for __gconv_transform_ascii_internal):
3244 Add missing braces.
3245 (BODY for __gconv_transform_internal_ascii): Likewise.
3246
af77c9b7 3247 [BZ #6472]
5fab5544
UD
3248 * sysdeps/posix/getaddrinfo.c (get_scope): Loopback addresses have
3249 to be treated like link-local addresses.
5846c4e2
UD
3250 (match_prefix): Don't treat IPv4 loopback address special when
3251 converting to v4 mapped addressed.
5fab5544 3252
0caca71a 3253 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Call _res_hconf_init
1f039824 3254 if necessary.
b194db79
UD
3255 * posix/tst-rfc3484.c: Add dummy definition of _res_hconf_init.
3256 * posix/tst-rfc3484-2.c: Likewise.
3257 * posix/tst-rfc3484-3.c: Likewise.
1f039824 3258
18a74157
UD
3259 * sysdeps/posix/getaddrinfo.c: Implement handling of DCCP, UDPlite,
3260 and SCTP.
372bfcac
UD
3261
3262 * nss/getent.c (ahosts_keys_int): Handle all known socket types.
3263
3264 * inet/netinet/in.h (IPPIPPROTO_DCCP, IPPROTO_UDPLITE): Define.
3265
3266 * sysdeps/unix/sysv/linux/bits/socket.h (SOCK_DCCP): Define.
3267
f05ac8f5
UD
32682008-05-13 Ulrich Drepper <drepper@redhat.com>
3269
3270 * po/lt.po: New file. From Lituanian translation team.
3271
c9ff0187
UD
32722008-01-30 Alexandre Oliva <aoliva@redhat.com>
3273
3274 Introduce TLS descriptors for i386 and x86_64.
3275 * include/inline-hashtab.h: New file, copied from 2005's
3276 libiberty, with fix for memory leak imported afterwards by
3277 Glauber de Oliveira Costa.
3278 * elf/tlsdeschtab.h: New file.
3279 * elf/dl-reloc.c (_dl_try_allocate_static_tls): Extract from...
3280 (_dl_allocate_static_tls): ... here. Rearrange failure path.
3281 (CHECK_STATIC_TLS): Move to...
3282 * elf/dynamic-link.h: ... this file.
3283 (TRY_STATIC_TLS): New macro.
3284 * elf/dl-conflict.c (CHECK_STATIC_TLS, TRY_STATIC_TLS): Override.
3285 * elf/elf.h (R_386_TLS_GOTDESC, R_386_TLS_DESC_CALL,
3286 R_386_TLS_DESC): Define.
3287 (R_X86_64_PC64, R_X86_GOTOFF64, R_X86_64_GOTPC32): Merge from
3288 binutils.
3289 (R_X86_64_GOTPC32_TLSDESC, R_X86_64_TLSDESC_CALL,
3290 R_X86_64_TLSDESC): Define.
3291 (R_386_NUM, R_X86_64_NUM): Adjust.
3292 * sysdeps/i386/Makefile (sysdep-dl-routines, sysdep_routines,
f05ac8f5 3293 sysdep-rtld-routines): Add tlsdesc and dl-tlsdesc for elf subdir.
c9ff0187
UD
3294 (gen-as-const-headers): Add tlsdesc.sym to csu subdir.
3295 * sysdeps/i386/dl-lookupcfg.h: New file. Introduce _dl_unmap to
3296 release tlsdesc_table.
3297 * sysdeps/i386/dl-machine.h: Include dl-tlsdesc.h.
3298 (elf_machine_type_class): Mark R_386_TLS_DESC as PLT class.
3299 (elf_machine_rel): Handle R_386_TLS_DESC.
3300 (elf_machine_rela): Likewise.
3301 (elf_machine_lazy_rel): Likewise.
3302 (elf_machine_lazy_rela): Likewise.
3303 * sysdeps/i386/dl-tls.h (struct dl_tls_index): Name it.
3304 * sysdeps/i386/dl-tlsdesc.S: New file.
3305 * sysdeps/i386/dl-tlsdesc.h: New file.
3306 * sysdeps/i386/tlsdesc.c: New file.
3307 * sysdeps/i386/tlsdesc.sym: New file.
3308 * sysdeps/i386/bits/linkmap.h (struct link_map_machine): Add
3309 tlsdesc_table.
3310 * sysdeps/x86_64/Makefile (sysdep-dl-routines, sysdep_routines,
f05ac8f5 3311 sysdep-rtld-routines): Add tlsdesc and dl-tlsdesc for elf subdir.
c9ff0187
UD
3312 (gen-as-const-headers): Add tlsdesc.sym to csu subdir.
3313 * sysdeps/x86_64/dl-lookupcfg.h: New file. Introduce _dl_unmap to
3314 release tlsdesc_table.
3315 * sysdeps/x86_64/dl-machine.h: Include dl-tlsdesc.h.
3316 (elf_machine_runtime_setup): Set up lazy TLSDESC GOT entry.
3317 (elf_machine_type_class): Mark R_X86_64_TLSDESC as PLT class.
3318 (elf_machine_rel): Handle R_X86_64_TLSDESC.
3319 (elf_machine_rela): Likewise.
3320 (elf_machine_lazy_rel): Likewise.
3321 * sysdeps/x86_64/dl-tls.h (struct dl_tls_index): Name it.
3322 (__tls_get_addr): Do not declare for non-shared compiles.
3323 * sysdeps/x86_64/dl-tlsdesc.S: New file.
3324 * sysdeps/x86_64/dl-tlsdesc.h: New file.
3325 * sysdeps/x86_64/tlsdesc.c: New file.
3326 * sysdeps/x86_64/tlsdesc.sym: New file.
3327 * sysdeps/x86_64/bits/linkmap.h (struct link_map_machine): Add
3328 tlsdesc_table for both 32- and 64-bit structs.
3329
a3636e8b
UD
33302008-05-11 Ulrich Drepper <drepper@redhat.com>
3331
3332 * elf/dl-tls.c (__tls_get_addr): Optimize by moving slow path in
3333 its own function. This reduces the frame setup costs and more.
3334
a7eb802f
UD
33352008-02-11 Joseph Myers <joseph@codesourcery.com>
3336
3337 [BZ #3406]
3338 * sysdeps/ieee754/flt-32/w_expf.c (o_threshold): Correct value.
3339 * math/libm-test.inc (exp_test): Test 88.72269439697265625.
3340
3490f01d
UD
33412008-05-11 Ulrich Drepper <drepper@redhat.com>
3342
3d7eeebe
UD
3343 * io/openat.c (__openat_2): Also pass fd to __openat.
3344 * io/openat64.c (__openat64_2): Also pass fd to __openat64.
3345 Patch by Kristian Van Der Vliet <vanders@liqwyd.com>.
3346
3490f01d
UD
3347 * string/tester.c (test_memcmp): Add a few more tests.
3348 Patch by Mats Erik Andersson <ynglingatal@comhem.se>.
3349
7e71e55f
UD
33502008-05-10 Ulrich Drepper <drepper@redhat.com>
3351
3352 * nscd/cache.c (cache_add): Before returning with failure and this
3353 is the first use of the record, mark it as unusable.
3354 * nscd/aicache.c: Don't touch the dataset after cache_add returns
3355 reporting a failure.
3356 * nscd/grpcache.c: Likewise
3357 * nscd/hstcache.c: Likewise.
3358 * nscd/initgrcache.c: Likewise.
3359 * nscd/pwdcache.c: Likewise.
343996c4 3360 * nscd/servicescache.c: Likewise.
7e71e55f 3361
7396d0a9
RM
33622008-05-10 Roland McGrath <roland@redhat.com>
3363
3364 [BZ #6505]
3365 * sysdeps/unix/sysv/linux/sys/user.h: Replace with #error stub.
3366
c5ee217f
UD
33672008-05-08 David S. Miller <davem@davemloft.net>
3368
b29899ae
UD
3369 * misc/truncate64.c (truncate64): Use __truncate not truncate.
3370
c5ee217f
UD
3371 * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee751_j0l): Use __finitel.
3372 (__ieee754_y0l): Likewise.
3373 * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Likewise.
3374 (__ieee754_y1l): Likewise.
3375 * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Use __ldexpl.
3376 * sysdeps/ieee754/ldbl-128/s_log1pl.c: Kill bogus prototypes for
3377 frexpl and ldexpl. math_private.h provides them and the latter
3378 is not even used.
3379 (__log1pl): Use __frexpl.
3380
1eb946b9
UD
33812008-05-10 Ulrich Drepper <drepper@redhat.com>
3382
3383 * include/resolv.h: Adjust __libc_res_nquery and __libc_res_nsend
3384 prototypes.
3385 * include/arpa/nameser_compat.h: Define T_UNSPEC.
3386 * nis/Versions (libnss_nis): Export _nss_nis_gethostbyname4_r.
3387 (libnss_nisplus): Export _nss_nisplus_gethostbyname4_r.
3388 * nis/nss_nis/nis-hosts.c (LINE_PARSER): Change to also handle
3389 af==AF_UNSPEC.
3390 (_nss_nis_gethostbyname4_r): New function.
3391 * nis/nss_nisplus/nisplus-hosts.c (_nss_nisplus_parse_hostent):
3392 Change to also handle af==AF_UNSPEC.
3393 (get_tablename): New function. Use it to avoid duplication.
3394 (_nss_nisplus_gethostbyname4_r): New function.
3395 * nscd/aicache.c (addhstaiX): Use gethostbyname4_r function is
3396 available.
3397 * nss/Versions (libnss_files): Export _nss_files_gethostbyname4_r.
3398 * nss/nss.h: Define struct gaih_addrtuple.
3399 * nss/nss_files/files-hosts.c (LINE_PARSER): Change to also handle
3400 af==AF_UNSPEC.
3401 (_nss_files_gethostbyname4_r): New function.
3402 * resolv/Versions (libnss_dns): Export _nss_dns_gethostbyname4_r.
3403 * resolv/gethnmaddr.c: Adjust __libc_res_nsearch and __libc_res_nquery
3404 calls.
3405 * resolv/res_query.c (__libc_res_nquery): Take two additional
3406 parameters for second answer buffer. Handle type=T_UNSPEC to mean
3407 look up IPv4 and IPv6.
3408 Change all callers.
3409 * resolv/res_send.c (__libc_res_nsend): Take five aditional parameters
3410 for an additional query and answer buffer. Pass to send_vc and
3411 send_dg.
3412 (send_vc): Send possibly two requests and receive two answers.
3413 (send_dg): Likewise.
3414 * resolv/nss_dns/dns-host.c: Adjust calls to __libc_res_nsearch and
3415 __libc_res_nquery.
3416 (_nss_dns_gethostbyname4_r): New function.
3417 (gaih_getanswer_slice): Likewise.
3418 (gaih_getanswer): Likewise.
3419 * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Adjust
3420 __libc_res_nquery call.
3421 * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r): Likewise.
3422 (_nss_dns_getnetbyname_r): Adjust __libc_res_nsearch call.
3423 * sysdeps/posix/getaddrinfo.c: Use gethostbyname4_r function is
3424 available.
3425
b7fb703a
JJ
34262008-05-05 David S. Miller <davem@davemloft.net>
3427
3428 * sysdeps/sparc/sparc32/Makefile: Use -mcpu=v7 for initfini.s build.
3429 * sysdeps/sparc/sparc64/Makefile: Use -mcpu=v9 for initfini.s build.
3430
2256e43d
RM
34312007-09-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
3432
3433 Fix termios bit macros.
3434 Move *DLY definitions where they belong, in termios.h.
3435 Add *[0-3] definitions.
3436 Fixes confusion between VT and FF.
8bb52dbf
RM
3437 * sysdeps/mach/hurd/bits/ioctls.h (NL0, NL1, TAB0, TAB1, TAB2, CR0,
3438 CR1, CR2, CR3, FF0, FF1, BS0, BS1): Undefine these at start if they
3439 are already defined to avoid collision with termios.h.
2256e43d
RM
3440 (NLDLY, TABDLY, TAB3, CRDLY, VTDLY, BSDLY): Remove macros.
3441 * bits/termios.h [__USE_MISC || __USE_XOPEN] (NL0, NL1, TAB0,
3442 TAB1, TAB2, CR0, CR1, CR2, CR3, FF0, FF1, BS0, BS1): Likewise.
3443 [__USE_BSD || __USE_XOPEN] (OCRNL, ONOCR, ONLRET): New macros.
3444 [__USE_MISC || __USE_XOPEN] (NLDLY, NL0, NL1, TABDLY, TAB0, TAB1, TAB2,
3445 TAB3, CRDLY, CR0, CR1, CR2, CR3, FFDLY, FF0, FF1, BSDLY, BS0, BS1,
3446 VTDLY, VT0, VT1): New macros.
3447 [__USE_GNU] (OLCUC): Change value of macro.
3448 [__USE_XOPEN] (OFILL): New macro.
3449 [__USE_BSD] (CRTSCTS): Change value.
3450 (CRTS_IFLOW, CCTS_OFLOW): Change into compatibility macros.
3451 [__USE_BSD] (CDTRCTS, CHWFLOW): New macros.
3452 (B7200, B14400, B28800, B76800): New macros.
3453
4ce349e5
JJ
34542008-05-01 David S. Miller <davem@davemloft.net>
3455
a86a7a39
JJ
3456 * sysdeps/unix/sysv/linux/sparc/sparc32/ucontext_i.sym: New file.
3457 * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile [$(subdir) = stdlib]:
3458 (gen-as-const-headers): Add it.
3459 * sysdeps/unix/sysv/linux/sparc/sparc32/getcontext.S: New file.
3460 * sysdeps/unix/sysv/linux/sparc/sparc32/makecontext.c: Likewise.
3461 * sysdeps/unix/sysv/linux/sparc/sparc32/setcontext.S: Likewise.
3462 * sysdeps/unix/sysv/linux/sparc/sparc32/swapcontext.S: Likewise.
2256e43d 3463
4ce349e5
JJ
3464 * sysdeps/unix/sysv/linux/sparc/sparc32/syscall.S: Add support for
3465 six system call parameters.
3466 * sysdeps/unix/sysv/linux/sparc/sparc64/syscall.S: Likewise.
3467
89a8963d
UD
34682008-04-30 Ulrich Drepper <drepper@redhat.com>
3469
3470 * sysdeps/unix/sysv/linux/bits/resource.h: Define RUSAGE_THREAD and
3471 RUSAGE_LWP.
3472 * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
3473 * sysdeps/unix/sysv/linux/alpha/bits/resource.h: Likewise.
3474
b5ec5fce
JJ
34752008-04-30 Jakub Jelinek <jakub@redhat.com>
3476
3477 * stdlib/tst-setcontext.c: Include unistd.h.
3478
d4e92d9e
JJ
34792008-04-25 David S. Miller <davem@davemloft.net>
3480
3481 * sysdeps/unix/sysv/linux/sparc/sparc64/semctl.c (semctl):
3482 Pass "union semun" properly in to sys_ipc, it must be passed
3483 by value, not by reference.
3484
7eb5e6c9
UD
34852008-04-22 Jakub Jelinek <jakub@redhat.com>
3486
3487 * nscd/Makefile (nscd-cflags): Set back to -fpie.
3488 * nscd/nscd.h (mem_in_flight): Add attribute_tls_model_ie.
3489 * nscd/connections.c (mem_in_flight): Likewise.
3490
3491 * nscd/nscd.h (dbs): Make hidden.
3492
3493 * sysdeps/unix/sysv/linux/times.c (__times): Fix check for EFAULT.
3494 Avoid returning -1, return 0 instead.
3495
0073dd2d
UD
34962008-04-19 Ulrich Drepper <drepper@redhat.com>
3497
3498 * resolv/res_mkquery.c (__res_nopt): Use NS_PUT16 instead of ns_put16.
3499
c52137d3
UD
35002008-04-15 Ulrich Drepper <drepper@redhat.com>
3501
3502 [BZ #5209]
3503 * sysdeps/unix/sysv/linux/times.c: New file.
3504
3505 [BZ #5381]
3506 * nscd/nscd.h: Define enum in_flight, mem_in_flight, and
3507 mem_in_flight_list variables. Add new parameter to mempool_alloc
3508 prototype.
3509 * nscd/mem.c (mempool_alloc): Take additional parameter. Initialize
3510 appropriate mem_in_flight element.
3511 (gc): Take allocations which have not yet been committed to the
3512 database into account.
3513 * nscd/cache.c (cache_add): Add new parameter to mempool_alloc call.
3514 Reset mem_in_flight before returning.
3515 * nscd/connections.c (nscd_run_worker): Initialize mem_in_flight and
3516 cue it up in mem_in_flight_list.
3517 * nscd/aicache.c: Adjust mempool_alloc call.
3518 * nscd/grpcache.c: Likewise.
3519 * nscd/hstcache.c: Likewise.
3520 * nscd/initgrcache.c: Likewise.
3521 * nscd/pwdcache.c: Likewise.
3522 * nscd/servicescache.c: Likewise.
3523 * nscd/Makefile (nscd-flags): Until ld is fixed, use -fpic instead
3524 of -fpie.
3525
3526 * nscd/connections.c (handle_request): Provide better error message
3527 in case SELinux forbids the service.
3528
3529 * version.h (VERSION): Bump to 2.8.90.
3530
39546e34
JJ
35312008-04-17 Jakub Jelinek <jakub@redhat.com>
3532
3533 * sysdeps/unix/sysv/linux/dl-osinfo.h: Include fcntl.h.
3534
cf3a8c7f
UD
35352008-04-11 Ulrich Drepper <drepper@redhat.com>
3536
9e113ecd
UD
3537 * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h (__signbitl):
3538 Also use for 32-bit.
3b6d574e
UD
3539 * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c (__nearbyintl): Use
3540 __nextafter instead of nextafter to avoid local PLT.
c3a0ead4
UD
3541 * sysdeps/powerpc/fpu/e_sqrt.c: Avoid call to fetestexcept.
3542 * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
3543
3781ec29
UD
3544 * scripts/data/localplt-powerpc64-linux-gnu.data: New file.
3545
246ec411
UD
3546 * sysdeps/powerpc/fpu/fenv_libc.h: Add libm_hidden_proto for
3547 __fe_nomask_env.
3cc56f92
UD
3548 * sysdeps/powerpc/fpu/fe_nomask.c: Add libm_hidden_def. Include
3549 <fenv_libc.h> instead of <fenv.h>.
246ec411
UD
3550 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c: Likewise.
3551 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c: Likewise.
3552
3553 * sysdeps/powerpc/bits/fenv.h: Make safe for C++.
3554
3555 * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h: New file.
3556 * sysdeps/powerpc/fpu/fegetexcept.c (__fegetexcept): Rename
3557 function from fegetexcept and make old name weak alias.
3558 * include/fenv.h: Declare __fegetexcept.
3559 * sysdeps/powerpc/fpu/fedisblxcpt.c: Use __fegetexcept instead of
3560 fegetexcept.
3561 * sysdeps/powerpc/fpu/feenablxcpt.c: Likewise.
3562 * sysdeps/powerpc/fpu/fraiseexcpt.c (__feraiseexcept): Avoid call
3563 to fetestexcept.
3564 * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Use __frexpl
3565 instead of frexpl to avoid local PLT.
3566 * math/s_significandl.c (__significandl): Use __ilogbl instead of
3567 ilogbl to avoid local PLT.
3568 * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Use __ldexpl
3569 instead of ldexpl to avoid local PLT.
3570 * sysdeps/ieee754/ldbl-128ibm/e_expl.c (__ieee754_expl): Use
3571 __roundl not roundl to avoid local PLT.
3572 * sysdeps/ieee754/ldbl-128/e_j0l.c: Use function names which avoid
3573 local PLTs. Use __sincosl instead of separate sinl and cosl
3574 calls.
3575 * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
3576
2dc4a2fd
UD
3577 * sysdeps/unix/sysv/linux/configure.in: Bump minimal kernel
3578 version for ppc64 to 2.4.21 since without it makecontext will fail.
3579
fe3350ee
UD
3580 * elf/tls-macros.h [__powerpc64__] (__TLS_GET_ADDR): Define according
3581 to the ABI in use.
3582 [__powerpc64__] (TLS_LD): Use __TLS_GET_ADDR instead of
3583 .__tls_get_addr.
3584 [__powerpc64__] (TLS_GD): Likewise.
cf3a8c7f 3585
c1e6b459
UD
35862007-11-20 Ryan S. Arnold <rsa@us.ibm.com>
3587
7763d4f1 3588 [BZ #4997]
c1e6b459
UD
3589 * sysdeps/powerpc/powerpc32/fpu/s_lround.S (__lround): Fixed erroneous
3590 result when x is +/-nextafter(+/-0.5,-/+1) i.e. all 1's in the
3591 mantissa.
3592 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S (__llround):
3593 Likewise. Also account for when x is an odd number between 2^52
3594 and 2^53-1.
3595 * sysdeps/powerpc/powerpc64/fpu/s_llround.S (__llround): Likewise.
3596 * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S (__llroundf): Likewise.
3597 * math/libm-test.inc (lround_test, llround_test): Added test cases to
3598 detect aforementioned erroneous conditions.
3599
22dca1ea
UD
36002008-04-11 Jakub Jelinek <jakub@redhat.com>
3601
3602 * configure.in: Check for -fno-section-anchors in addition to
3603 -fno-toplevel-reorder.
3604
5d59f4a5
UD
36052008-04-11 Ulrich Drepper <drepper@redhat.com>
3606
3607 * include/features.h (__GLIBC_MINOR__): Bump to 8.
3608
3609 * sysdeps/powerpc/powerpc32/fpu/s_lroundf.S: Remove duplicate comment.
3610 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llroundf.S: Likewise.
3611 * sysdeps/powerpc/powerpc32/power6/fpu/s_llroundf.S: Likewise.
3612 * sysdeps/powerpc/powerpc64/fpu/s_lrint.S: Likewise.
3613 * sysdeps/powerpc/powerpc64/fpu/s_lround.S: Likewise.
3614 * sysdeps/powerpc/powerpc64/fpu/s_lroundf.S: Likewise.
3615
91e32540
UD
36162008-04-11 Jakub Jelinek <jakub@redhat.com>
3617
3618 [BZ #5443]
3619 * time/era.c: Transform __libc_setlocale_lock into rwlock.
3620 * time/alt_digit.c: Likewise.
3621 * wcsmbs/wcsmbsload.c: Likewise.
3622
fd490ac8
UD
36232008-04-10 Ulrich Drepper <drepper@redhat.com>
3624
1db5b6f4
UD
3625 * version.h (VERSION): Bump to 2.8.
3626
fd490ac8
UD
3627 * timzeone/asia: Update from tzdata2008b.
3628 * timezone/backward: Likewise.
3629 * timezone/europe: Likewise.
3630 * timezone/northamerica: Likewise.
3631 * timezone/southamerica: Likewise.
3632 * timezone/iso3166.tab: Likewise.
3633 * timezone/leapseconds: Likewise.
3634 * timezone/zone.tab: Likewise.
3635 * timezone/private.h: Update from tzcode2008a.
3636 * timezone/zdump.c: Likewise.
3637 * timezone/zic.c: Likewise.
3638
153cf972
UD
36392008-01-24 Steven Munroe <sjmunroe@us.ibm.com>
3640
3641 [BZ #5741]
3642 * sysdeps/powerpc/powerpc64/dl-machine.h (PPC_DCBT, PPC_DCBF):
3643 Define additonal Data Cache Block instruction macros.
3644 (elf_machine_fixup_plt): Add dcbt for opd and plt entries.
3645 Replace dcbst with dcbf and sync with sync/isync.
3646
d2207f32
UD
36472008-02-21 Alan Modra <amodra@bigpond.net.au>
3648
3649 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_type_class):
3650 Always set ELF_RTYPE_CLASS_PLT.
3651 (elf_machine_lookup_noexec_p, elf_machine_lookup_noplt_p): Delete.
3652
13d83320
UD
36532008-04-03 Steven Munroe <sjmunroe@us.ibm.com>
3654
3655 * sysdeps/powerpc/powerpc32/power4/hp-timing.c: New file.
3656 * sysdeps/powerpc/powerpc32/power4/hp-timing.h: New file.
3657 * sysdeps/powerpc/powerpc64/hp-timing.h [_ARCH_PWR4] (HP_TIMING_NOW):
3658 For ISA 2.01 and later replace mftb with mfspr 268.
3659
5f7aead5
UD
36602008-02-19 Steven Munroe <sjmunroe@us.ibm.com>
3661
3662 [BZ #5768]
3663 * sysdeps/powerpc/fpu/Makefile (libm-tests): Add test-powerpc-snan.
3664 * sysdeps/powerpc/fpu/test-powerpc-snan.c: New file.
3665
36662008-02-18 Steven Munroe <sjmunroe@us.ibm.com>
3667
3668 [BZ #5768]
3669 * sysdeps/powerpc/powerpc32/fpu/s_isnan.S: New file.
3670 * sysdeps/powerpc/powerpc32/fpu/s_isnan.c: Removed.
3671 * sysdeps/powerpc/powerpc64/fpu/s_isnan.S: New file.
3672 * sysdeps/powerpc/powerpc64/fpu/s_isnan.c: Removed.
3673
117df5d9
JJ
36742008-04-10 Jakub Jelinek <jakub@redhat.com>
3675
3676 * stdlib/tst-makecontext.c (othervar): New variable.
3677 (cf): Test sign extending the argument to long.
3678
3b32d8a2
UD
36792008-03-03 Steven Munroe <sjmunroe@us.ibm.com>
3680
3681 * sysdeps/powerpc/powerpc32/power5/fpu/s_isnan.S: New file.
3682 * sysdeps/powerpc/powerpc32/power5/fpu/s_isnanf.S: New file.
3683 * sysdeps/powerpc/powerpc32/power6/fpu/s_isnan.S: New file.
3684 * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S: New file.
3685 * sysdeps/powerpc/powerpc64/power5/fpu/s_isnan.S: New file.
3686 * sysdeps/powerpc/powerpc64/power6/fpu/s_isnan.S: New file.
3687 * sysdeps/powerpc/powerpc64/power6x/fpu/s_isnan.S: New file.
3688
9fb11d4c
UD
36892008-02-22 Alan Modra <amodra@bigpond.net.au>
3690
3691 * elf/Makefile (tests): Substitute tests-vis-yes here.
3692 (tests-vis-yes): Delete.
3693 (modules-name, modules-vis-yes): Similarly.
3694
facd1d8e
UD
36952008-02-12 Pete Eberlein <eberlein@us.ibm.com>
3696
3697 [BZ #4407]
3698 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
3699 Preserve sign in signgamp when x is zero.
3700
aece054b
UD
37012007-10-26 Steven Munroe <sjmunroe@us.ibm.com>
3702
3703 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: New File.
3704 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.c: Removed.
3705 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: New File.
3706 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.c: Removed.
3707 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: New File.
3708 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: New File.
3709
6c30d38f
UD
37102008-04-09 Ulrich Drepper <drepper@redhat.com>
3711
21208604 3712 [BZ #4314]
13d83320
UD
3713 * sysdeps/i386/i686/memcpy.S: Optimize copying of equally aligned
3714 buffers.
21208604 3715
2f611ada 3716 [BZ #5209]
d1235fdf
UD
3717 * sysdeps/unix/sysv/syscalls.list: The times syscall doesn't have
3718 a reserved error value.
2f611ada 3719
6c30d38f
UD
3720 * stdlib/tst-makecontext.c: Change parameter to cf to negative
3721 value to check for correct sign extension.
3722
3723 [BZ #5436]
3724 * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
3725 Copy 64-bit parameter values even though this is not required in
3726 the standard.
3727
3728 * sysdeps/unix/sysv/linux/x86_64/vfork.S (__vfork): Record return
3729 PC save.
3730
de1bbf68
UD
37312008-02-14 Daniel Jacobowitz <dan@codesourcery.com>
3732
3733 * sysdeps/unix/sysv/linux/i386/vfork.S (__vfork): Record return
3734 PC save.
3735
9aef35a5
UD
37362008-04-09 Jakub Jelinek <jakub@redhat.com>
3737
3738 * nss_files/files-XXX.c (_nss_files_getXXent_r): Restore saved errno.
3739
a7925a24
UD
37402008-04-09 Ulrich Drepper <drepper@redhat.com>
3741
3742 [BZ #5998]
3743 * libio/iofwrite.c (_IO_fwrite): Return correct count if flushing
3744 in line-buffered stream failed.
3745 * libio/iofwrite_u.c (fwrite_unlocked): Likewise.
3746
7b61ef24
UD
37472008-04-08 Ulrich Drepper <drepper@redhat.com>
3748
c2a684a4
UD
3749 [BZ #6024]
3750 * scripts/abi-versions.awk: If the version specified by
3751 --enable-oldest-abi is older than the first version for this
3752 architecture, use the default version.
3753
7b61ef24
UD
3754 * locale/programs/ld-collate.c (collate_read): Ignore script lines
3755 as well when ignoring the whole category.
3756
f6d749f0
UD
37572008-04-07 Ulrich Drepper <drepper@redhat.com>
3758
3759 [BZ #6042]
3760 * sysdeps/unix/sysv/linux/net/ethernet.h: Add a few more
3761 ETHERTYPE_* definitions.
3762 Patch partly by Aurelien Jarno <aurelien@aurel32.net>.
3763
1e99aede
JJ
37642008-04-07 Jakub Jelinek <jakub@redhat.com>
3765
3766 * stdlib/mbtowc.c (__no_r_state): Remove.
3767 (mbtowc): New static state variable. Use it instead of
3768 __no_r_state.
3769 * stdlib/wctomb.c (__no_r_state): Remove extern decl.
3770 (__wctomb_state): New hidden variable.
3771 (wctomb): Use __wctomb_state instead of __no_r_state.
3772 * debug/wctomb_chk.c (__no_r_state): Remove extern decl.
3773 (__wctomb_state): New extern decl.
3774 (__wctomb_chk): Use __wctomb_state instead of __no_r_state.
3775
fcf90e0a
UD
37762008-04-07 Ulrich Drepper <drepper@redhat.com>
3777
3778 [BZ #5475]
3779 * resolv/res_init.c: Handle scope IDs in resolv.conf.
3780
ae39e102
JJ
37812008-04-07 Jakub Jelinek <jakub@redhat.com>
3782
3783 * malloc/mtrace.pl: Use $@ instead of $* to keep perl 5.10 quiet.
3784
2503dd30
UD
37852008-04-06 Ulrich Drepper <drepper@redhat.com>
3786
3787 * po/nl.po: Update from translation team.
3788
3eb9c809
UD
37892008-03-31 Ulrich Drepper <drepper@redhat.com>
3790
3791 [BZ #6007]
3792 * string/strfry.c: Handle empty strings again.
3793
9a69db29
UD
37942008-03-30 Ulrich Drepper <drepper@redhat.com>
3795
3796 [BZ #5443]
3797 * intl/dcigettext.c (__dcigettext): Get reader lock for locale data
3798 before looking for translation.
3799 * locale/duplocale.c: Transform __libc_setlocale_lock into rwlock.
3800 * locale/freelocale.c: Likewise.
3801 * locale/newlocale.c: Likewise.
3802 * locale/setlocale.c: Likewise.
3803 Based partially on a patch by ryo@np.css.fujitsu.com.
3804
2ecc7d93
UD
38052008-03-30 Jakub Jelinek <jakub@redhat.com>
3806
3807 * intl/dcigettext.c (_nl_find_msg): Reread nconversions after
3808 acquiring wrlock. Do conv_tab allocation while holding lock.
3809 * intl/Makefile: Add rules to build and run tst-gettext6.
3810 * intl/tst-gettext6.c: New test.
3811 * intl/tst-gettext6.sh: New file.
3812
221e5230
UD
38132008-03-30 Ulrich Drepper <drepper@redhat.com>
3814
faa091c6
UD
3815 * po/nl.po: Update from translation team.
3816
221e5230
UD
3817 * sysdeps/unix/opendir.c (__alloc_dir): If allocation fails for size
3818 provided through st_blksize, try the default size before giving up.
3819
1c272665
UD
38202008-03-29 Ulrich Drepper <drepper@redhat.com>
3821
43f6bec1
UD
3822 * stdio-common/vfprintf.c (vfprintf): Correct overflow test.
3823
e8a32126
UD
3824 [BZ #5939]
3825 * sysdeps/posix/tempname.c (__gen_tempname): Correct flag selection.
3826
1e489af9
UD
3827 * posix/getopt.c (_getopt_internal_r): Remove old POSIX-demanded
3828 error message. POSIX today does not require the messages to be in
3829 a specific form. Suggested by Jim Meyering <jim@meyering.net>.
3830
1d20f7f8
UD
3831 [BZ #5979]
3832 * sunrpc/auth_unix.c: Unify printed strings.
3833 * sunrpc/clnt_tcp.c: Likewise.
3834 * sunrpc/clnt_udp.c: Likewise.
3835 * sunrpc/clnt_unix.c: Likewise.
3836 * sunrpc/svc_tcp.c: Likewise.
3837 * sunrpc/svc_udp.c: Likewise.
3838 * sunrpc/svc_unix.c: Likewise.
3839 * sunrpc/xdr.c: Likewise.
3840 * sunrpc/xdr_array.c: Likewise.
3841 * sunrpc/xdr_rec.c: Likewise.
3842 * sunrpc/xdr_ref.c: Likewise.
3843 * locale/programs/ld-time.c (time_finish): Unify messages.
3844 * locale/programs/locfile.c (handle_copy): Fix typo.
3845 * nscd/nscd.c (options): Fix typo.
3846
1c272665
UD
3847 [BZ #5995]
3848 * stdlib/strtod_l.c: Use correct sign for result in one more
3849 underflow case.
3850 Patch by Eric Blake <ebb9@byu.net>.
3851
48cc060e
UD
38522008-03-27 Jakub Jelinek <jakub@redhat.com>
3853
3854 * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Add open
3855 and creat system calls.
3856 * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove open system
3857 call.
3858 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Remove open and creat
3859 system calls.
3860 * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Likewise.
3861 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
3862 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
3863
f96853be
UD
38642008-03-27 Ulrich Drepper <drepper@redhat.com>
3865
3866 * sysdeps/unix/sysv/linux/bits/local_lim.h: Undefined ARG_MAX if
3867 <linux/limits.h> has defined it.
3868 * sysdeps/unix/sysv/linux/sys/param.h: Define NCARGS to the legacy
3869 ARG_MAX value and prevent ARG_MAX from being defined by the kernel
3870 headers.
3871 * sysdeps/unix/sysv/linux/sysconf.c: Define legacy_ARG_MAX and use
3872 it instead of ARG_MAX.
3873
fde15fdc
UD
38742008-03-25 Jakub Jelinek <jakub@redhat.com>
3875
3876 * posix/gai.conf: Fix comment for scope nullbits.
3877 * sysdeps/posix/getaddrinfo.c (gaiconf_init): If /bits is not present,
3878 default to 128 bits for v4 mapped addresses.
3879
87b9b50f
UD
38802008-03-07 Martin Schwidefsky <schwidefsky@de.ibm.com>
3881
3882 * sysdeps/s390/fpu/fegetenv.c (fegetenv): Remove PTRACE_PEEKUSER
3883 ptrace call to get the ieee_instruction_pointer from the kernel.
3884 * sysdeps/s390/fpu/fesetenv.c (fesetenv): Remove PTRACE_POKEUSER
3885 ptrace call to set the ieee_instructtion_pointer.
3886 * sysdeps/unix/sysv/linux/s390/sys/user.h (struct _user_regs_struct):
3887 Add comment that ieee_instruction_pointer is always 0.
3888
af0498dc
UD
38892008-03-09 Andreas Jaeger <aj@suse.de>
3890
3891 [BZ #5857]
3892 * sysdeps/ieee754/dbl-64/s_rint.c (__rint): Handle j0==18.
3893 * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Likewise.
3894 Patch by Mark Elliott <mark.h.elliott@lmco.com>.
3895
3896 * math/libm-test.inc (nearbyint_test): Add new test cases from #5857.
3897 (rint_test): Likewise.
3898
0ab7632d
UD
38992008-03-24 Ulrich Drepper <drepper@redhat.com>
3900
0facd3df
UD
3901 * nis/nis_call.c (nis_server_cache_search): Save errno around stat
3902 call.
3903 (__nisfind_server): Similar for open readColdStartFile call.
3904 Patch partially by Jim Meyering.
3905 * nss/nss_files/files-XXX.c (_nss_files_getXXent_r): Save errno
3906 around internal_setent call.
3907
7e570c55
UD
3908 * po/vi.po: New Vietnamese translation.
3909
e093c247
UD
3910 * sysdeps/unix/sysv/linux/adjtime.c: Correctly use
3911 ADJ_OFFSET_SS_READ.
3912
0ab7632d
UD
3913 * sysdeps/unix/sysv/linux/bits/sched.h: Add new CLONE_* flags,
3914 remove CLONE_STOPPED.
3915
0726cdf7
UD
39162008-02-10 Jim Meyering <meyering@redhat.com>
3917
3918 Remove useless "if" before "free":
3919 * elf/ldconfig.c (parse_conf_include): Likewise.
3920 * gmon/gmon.c (weak_alias): Likewise.
3921 * iconv/gconv_conf.c (__gconv_get_path): Likewise.
3922 * inet/rcmd.c (__validuser2_sa): Likewise.
3923 * intl/bindtextdom.c (set_binding_values): Likewise.
3924 * intl/loadmsgcat.c (_nl_load_domain, _nl_unload_domain): Likewise.
3925 * libio/genops.c (save_for_backup): Likewise.
3926 * libio/wgenops.c (save_for_wbackup): Likewise.
3927 * locale/programs/ld-collate.c (collate_read): Likewise.
3928 * locale/programs/linereader.c (get_string): Likewise.
3929 * nis/nss_compat/compat-pwd.c (give_pwd_free): Likewise.
3930 * nis/nss_compat/compat-spwd.c (give_spwd_free): Likewise.
3931 * resolv/res_debug.c (do_section): Likewise.
3932 * sunrpc/xdr_sizeof.c (x_inline, xdr_sizeof): Likewise.
3933 * sysdeps/mach/hurd/if_index.c (libc_hidden_def): Likewise.
3934 * sysdeps/posix/sprofil.c (__sprofil): Likewise.
3935 * time/lc-time-cleanup.c (_nl_cleanup_time): Likewise.
3936 * time/tzset.c (tzset_internal): Likewise.
3937
354b7527
JJ
39382008-03-18 Jakub Jelinek <jakub@redhat.com>
3939
3940 * sysdeps/unix/sysv/linux/dl-sysdep.h: Use __ASSEMBLER__ instead
3941 of ASSEMBLER.
3942
ca668b29
UD
39432008-03-11 Ulrich Drepper <drepper@redhat.com>
3944
3945 [BZ #5903]
3946 * iconv/iconv_charmap.c (charmap_conversion): Pass name of output file
3947 not stream for output file. Open output file here.
3948 * iconv/iconv_prog.c (process_lock): Take pointer to output stream
3949 and output file name.
3950 (process_fd): Likewise.
3951 (process_file): Likewise.
3952 (main): Adjust callers of changed functions.
3953 * iconv/iconv_prog.h: Adjust prototype.
3954
f3dc3415
AJ
39552008-03-09 Andreas Jaeger <aj@suse.de>
3956
3957 [BZ #5753]
3958 * sysdeps/ia64/ieee754.h: Use protected namespace
3959 __BIG_ENDIAN/__LITTLE_ENDIAN.
3960 * sysdeps/ieee754/ieee754.h: Likewise.
3961 Patch by Aurelien Jarno <aurelien@aurel32.net>.
3962
a8fd84d4
RM
39632008-03-08 Roland McGrath <roland@frob.com>
3964
2b965f1b
RM
3965 * hurd/hurdsig.c (_hurd_internal_post_signal): When normal rules would
3966 ignore a signal that came from a machine exception, treat it as a
3967 fatal core-dump signal instead.
3968 Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
3969
a8fd84d4
RM
3970 * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler):
3971 Clear DF bit in thread state's eflags.
3972 Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
3973
368a8dec
UD
39742008-03-08 Ulrich Drepper <drepper@redhat.com>
3975
b3278554
UD
3976 [BZ #5774]
3977 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Consume closing brace
c6c00e0d 3978 of NAN(...) sequence.
b3278554
UD
3979 * stdlib/Makefile (tests): Add tst-strtod6.
3980 * stdlib/tst-strtod6.c: New file.
3981
3982 * inet/inet6_opt.c (inet6_opt_init): Check extlen for overflow.
3983
2127a186
UD
3984 [BZ #5762]
3985 * posix/getopt.c (_getopt_internal_r): Clarify error message by
3986 putting offending option character in quotes. Clean up error
3987 messages.
3988 * po/be.po: Adjust msgstr in translation file.
3989 * po/bg.po: Likewise.
3990 * po/ca.po: Likewise.
3991 * po/cs.po: Likewise.
3992 * po/da.po: Likewise.
3993 * po/de.po: Likewise.
3994 * po/es.po: Likewise.
3995 * po/fr.po: Likewise.
3996 * po/hr.po: Likewise.
3997 * po/ko.po: Likewise.
3998 * po/nl.po: Likewise.
3999 * po/rw.po: Likewise.
4000 * po/sk.po: Likewise.
4001 * po/sv.po: Likewise.
4002 * po/tr.po: Likewise.
4003 * po/zh_CN.po: Likewise.
4004 * po/zh_TW.po: Likewise.
4005
725c0c87
UD
4006 [BZ #5760]
4007 * inet/inet6_opt.c (inet6_opt_init): Fix ip6h_len computation.
4008 Patch by Roland Bless <roland@bless.de>.
4009
368a8dec
UD
4010 * sysdeps/unix/sysv/linux/dl-sysdep.c: Avoid unnecessary code for
4011 .o file.
4012 * elf/Makefile (routines): Add dl-sysdep.
4013 (elide-routines.os): Likewise.
4014
78c2bf0e
UD
40152008-03-07 Ulrich Drepper <drepper@redhat.com>
4016
7c22c7ec
UD
4017 [BZ #5786]
4018 * elf/dl-sysdep.c: Undefine ROUND after use.
4019 * sysdeps/generic/ldsodefs.h [HAVE_DL_DISCOVER_OSVERSION]
4020 (struct rtld_global_ro): Add _dl_tls_get_addr_soft element.
4021 * elf/rtld.c (rtld_global_ro): Initialize _dl_discover_osversion.
4022 * sysdeps/unix/sysv/linux/dl-osinfo.h: Move _dl_discover_osversion
4023 to ...
4024 * sysdeps/unix/sysv/linux/dl-sysdep.c: ...here.
4025 * sysdeps/unix/sysv/linux/dl-sysdep.h: Declare _dl_discover_osversion
4026 if necessary.
4027 * sysdeps/unix/sysv/linux/sysconf.c: Handle _SC_ARG_MAX here.
4028
93025f93
UD
4029 * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Add
4030 _dl_tls_get_addr_soft element.
4031 * elf/rtld.c (rtld_global_ro): Initialize _dl_tls_get_addr_soft.
4032 * elf/Versions (ld): Don't export _dl_tls_get_addr_soft.
4033 * dlfcn/dlinfo.c (dlinfo_doit): Access dl_tls_get_addr_soft through
4034 GLRO.
4035 * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise.
4036 * elf/dl-tls.c (_dl_tls_get_addr_soft): Use attribute_hidden instead
4037 of internal_function.
4038
72f10127
UD
4039 * stdlib/Makefile (aux): Add tens_in_limb.
4040 * stdlib/strtod_l.c: Move _tens_in_limb definition to...
4041 * stdlib/tens_in_limb.c: ...here. New file.
4042
443db178
UD
4043 [BZ #5778]
4044 * sysdeps/unix/sysv/linux/pathconf.h: Declare
4045 __statfs_chown_restricted.
4046 * sysdeps/unix/sysv/linux/fpathconf.c: Call __statfs_chown_restricted
4047 for _PC_CHOWN_RESTRICTED.
4048 * sysdeps/unix/sysv/linux/pathconf.c: Likewise.
4049 Implement __statfs_chown_restricted.
4050 * sysdeps/unix/sysv/linux/bits/posix_opt.h: Change
4051 _POSIX_CHOWN_RESTRICTED value to zero.
c71665ad
UD
4052 * io/tst-fchownat.c: Correctly handle _POSIX_CHOWN_RESTRICTED
4053 defined to zero.
443db178 4054
78c2bf0e
UD
4055 * sysdeps/x86_64/rtld-memset.c: New file.
4056
443db178 40572008-02-26 Harsha Jagasia <harsha.jagasia@amd.com>
78c2bf0e
UD
4058
4059 * sysdeps/x86_64/cacheinfo.c (NOT_USED_RIGHT_NOW): Remove ifdef guards.
4060
4061 * sysdeps/x86_64/memset.S: Rewrite non-SSE code path as tuned for AMD
4062 Barcelona machine. Make default fall through branch of
4063 __x86_64_preferred_memory_instruction check as the integer code path.
4064
40652007-10-15 H.J. Lu <hongjiu.lu@intel.com>
4066
4067 * sysdeps/x86_64/cacheinfo.c
4068 (__x86_64_preferred_memory_instruction): New variable.
4069 (init_cacheinfo): Initialize __x86_64_preferred_memory_instruction.
4070
4071 * sysdeps/x86_64/memset.S: Rewrite.
4072
dff37515
UD
40732008-03-04 Jakub Jelinek <jakub@redhat.com>
4074
4075 * include/stdio.h (__asprintf_chk, __dprintf_chk,
4076 __obstack_printf_chk): New prototypes.
4077 (__vasprintf_chk, __vdprintf_chk,
4078 __obstack_vprintf_chk): Likewise.
4079 Add libc_hidden_proto.
4080 * libio/obprintf.c
4081 (_IO_obstack_jumps): No longer static, add attribute_hidden.
4082 * libio/bits/stdio-ldbl.h (__asprintf_chk, __dprintf_chk,
4083 __obstack_printf_chk, __vasprintf_chk, __vdprintf_chk,
4084 __obstack_vprintf_chk): Add __LDBL_REDIR_DECL.
4085 * libio/bits/stdio2.h (__asprintf_chk, __dprintf_chk,
4086 __obstack_printf_chk, __vasprintf_chk, __vdprintf_chk,
4087 __obstack_vprintf_chk): New prototypes.
4088 (asprintf, __asprintf, dprintf, obstack_printf, vasprintf, vdprintf,
4089 obstack_vprintf): New inlines.
4090 * debug/dprintf_chk.c: New file.
4091 * debug/vdprintf_chk.c: New file.
4092 * debug/asprintf_chk.c: New file.
4093 * debug/vasprintf_chk.c: New file.
4094 * debug/obprintf_chk.c: New file.
4095 * debug/tst-chk1.c (do_test): Add asprintf and obstack_printf tests.
4096 * debug/Versions (__asprintf_chk, __dprintf_chk, __obstack_printf_chk,
4097 __vasprintf_chk, __vdprintf_chk, __obstack_vprintf_chk): Export
4098 @@GLIBC_2.8.
4099 * debug/Makefile: Build asprintf_chk, vasprintf_chk, dprintf_chk,
4100 vdprintf_chk and obprintf_chk, set CFLAGS for them.
4101 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c (__nldbl___vasprintf_chk,
4102 __nldbl___vdprintf_chk, __nldbl___obstack_vprintf_chk): Add
4103 libc_hidden_proto.
4104 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl___vasprintf_chk,
4105 __nldbl___vdprintf_chk, __nldbl___obstack_vprintf_chk): New prototypes.
4106 * sysdeps/ieee754/ldbl-opt/Versions (__nldbl___asprintf_chk,
4107 __nldbl___vasprintf_chk, __nldbl___dprintf_chk, __nldbl___vdprintf_chk,
4108 __nldbl___obstack_printf_chk, __nldbl___obstack_vprintf_chk): Export
4109 @@GLIBC_2.8.
4110 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add asprintf_chk,
4111 vasprintf_chk, dprintf_chk, vdprintf_chk, obstack_printf_chk and
4112 obstack_vprintf_chk.
4113 * sysdeps/ieee754/ldbl-opt/nldbl-obstack_vprintf_chk.c: New file.
4114 * sysdeps/ieee754/ldbl-opt/nldbl-dprintf_chk.c: New file.
4115 * sysdeps/ieee754/ldbl-opt/nldbl-obstack_printf_chk.c: New file.
4116 * sysdeps/ieee754/ldbl-opt/nldbl-asprintf_chk.c: New file.
4117 * sysdeps/ieee754/ldbl-opt/nldbl-vdprintf_chk.c: New file.
4118 * sysdeps/ieee754/ldbl-opt/nldbl-vasprintf_chk.c: New file.
4119
d835f136
UD
41202008-03-04 Ulrich Drepper <drepper@redhat.com>
4121
a4bb445a
UD
4122 [BZ #5779]
4123 * misc/sys/queue.h: Add STAILQ_CONCAT and TAILQ_CONCAT definitions.
4124 Patch by Roy Marples <roy@marples.name>.
4125
c958a6a4
UD
4126 [BZ #5736]
4127 * malloc/malloc.c: Fix typo in comment.
4128
d835f136
UD
4129 [BZ #5627]
4130 * locale/iso-639.def: Add Shuswap.
4131
65b4743a
UD
41322008-02-25 Jakub Jelinek <jakub@redhat.com>
4133
4134 [BZ #5790]
4135 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr2_r): Don't
4136 overwrite *h_errnop/*errnop values from getanswer_r in case of
4137 failure.
4138
3868fb6e
UD
41392008-03-03 Ulrich Drepper <drepper@redhat.com>
4140
27c377dd
UD
4141 [BZ #5818]
4142 * nscd/connections.c (dbs): Add initializers for .suggested_module.
4143 (verify_persistent_db): Remove one unnecessary test and add a new one
4144 for bad configuration.
4145 (nscd_init): Improve error reported when persistent database cannot
4146 be reused.
4147 * nscd/nscd.h (DEFAULT_SUGGESTED_MODULE): Define.
4148 * nscd/nscd_conf.c (nscd_parse_file): Provide default values for
4149 .suggested_module and .max_db_size and case config file says the
4150 values are zero.
4151 * nscd/nscd_helper.c (get_mapping): Fail if hash table module is zero.
4152
0f749099
UD
4153 [BZ #5854]
4154 * nis/ypclnt.c (yp_order): Fix handling of return value of
4155 do_ypcall_tr call.
4156 Patch by Jeff Moyer <jmoyer@redhat.com>.
4157
3868fb6e
UD
4158 * po/fr.po: Update from translation team.
4159
268dbf25
AJ
41602008-02-22 Andreas Jaeger <aj@suse.de>,
4161 Carlos O'Donell <carlos@systemhalted.org>
4162
4163 [BZ #5012]
4164 * FAQ.in: Describe why glibc needs to be compiled with
4165 optimization.
4166
73b82641
RM
41672008-02-19 Roland McGrath <roland@redhat.com>
4168
4169 * elf/elf.h (SHT_GNU_ATTRIBUTES): New macro.
4170
c9136393
UD
41712008-02-15 Ulrich Drepper <drepper@redhat.com>
4172
4173 [BZ #5737]
4174 * resolv/netdb.h: Make NI_MAXHOST and NI_MAXSERV available when
4175 __USE_MISC is defined.
4176
2e3e9ff1
UD
41772008-02-10 Ulrich Drepper <drepper@redhat.com>
4178
4179 * sysdeps/unix/sysv/linux/sys/timerfd.h: New file.
4180 * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers): Add
4181 sys/timerfd.h.
4182 * sysdeps/unix/sysv/linux/syscalls.list: Add timerfd_create,
4183 timerfd_gettime, timerfd_settime.
4184 * sysdeps/unix/sysv/linux/Versions: Add timerfd_create,
4185 timerfd_gettime, timerfd_settime for GLIBC_2.8.
4186
85202a2b
RM
41872008-02-08 Roland McGrath <roland@redhat.com>
4188
4189 * elf/elf.h (NT_PPC_SPE): New macro.
4190
708ef8a4
RM
41912008-02-06 Roland McGrath <roland@redhat.com>
4192
4193 * Makerules ($(common-objpfx)sysd-rules):
4194 Depend on $(sysdep-makeconfigs).
4195
363a641b
RM
41962008-01-31 Roland McGrath <roland@redhat.com>
4197
67fbfa5c
RM
4198 [BZ #5442]
4199 * configure.in: Use -print-file-name if it yields a directory,
4200 for each of include and include-fixed.
4201 * configure: Regenerated.
4202
363a641b
RM
4203 * Makeconfig (sysd-rules-targets): New variable.
4204 * sysdeps/unix/make-syscalls.sh: Use it in the rules emitted.
4205 * sysdeps/unix/Makefile (omit-deps): Append variants for each target.
4206
0f0f9610
RM
42072008-01-30 Roland McGrath <roland@redhat.com>
4208
7bd00dbf
RM
4209 * manual/libc.texinfo: Update back-cover text.
4210
0f0f9610
RM
4211 * elf/elf.h (NT_386_TLS): New macro.
4212
16cd816f
RM
42132008-01-29 Roland McGrath <roland@redhat.com>
4214
4215 * Makeconfig (sysd-rules-patterns): New variable.
4216 * Makerules ($(common-objpfx)sysd-rules): Drive the loop from that.
4217 (check-inhibit-asm): New canned sequence, replaces ...
4218 (open-check-inhibit-asm, close-check-inhibit-asm): ... these, removed.
4219 * elf/rtld-Rules ($(objpfx)rtld-%.os): Use $(rtld-CPPFLAGS) in commands.
4220 (rtld-CPPFLAGS): Renamed from CPPFLAGS-rtld.
4221 (CFLAGS-rtld): Variable removed.
4222
f641ffcc
RM
42232008-01-24 Roland McGrath <roland@redhat.com>
4224
4225 * configure.in: Let configure fragments set base_os.
4226 * configure: Regenerated.
4227
b7e26885
UD
42282008-01-22 Ulrich Drepper <drepper@redhat.com>
4229
4230 * po/ko.po: Update from translation team.
4231
b4b166af
UD
42322008-01-12 H.J. Lu <hongjiu.lu@intel.com>
4233
4234 * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Use short for fnstsw.
4235
f66def9d
AJ
42362008-01-12 Andreas Jaeger <aj@suse.de>
4237
4238 [BZ #5040]
4239 * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h (enum EPOLL_EVENTS):
4240 Add EPOLLRDHUP.
4241
d3bc5e77
RM
42422008-01-20 Samuel Thibault <samuel.thibault@ens-lyon.org>
4243
4244 * hurd/hurdsock.c (_hurd_socket_server): Return the standard
4245 error EAFNOSUPPORT rather than non-standard EPFNOSUPPORT.
4246 * sunrpc/bindrsvprt.c (bindresvport): Likewise.
4247
4c533566
UD
42482007-10-23 Alexandre Oliva <aoliva@redhat.com>
4249
4250 * include/link.h (FORCED_DYNAMIC_TLS_OFFSET): Define.
4251 * elf/dl-close.c (_dl_close): Check for it.
4252 * elf/dl-reloc.c (CHECK_STATIC_TLS): Likewise.
4253 (_dl_allocate_static_tls): Likewise.
4254 * elf/dl-tls.c (_dl_allocate_tls_init): Likewise.
4255 (__tls_get_addr): Protect from race conditions in setting l_tls_offset
4256 to it.
4257 * elf/tst-tls16.c: New file.
4258 * elf/tst-tlsmod16a.c: New file.
4259 * elf/tst-tlsmod16b.c: New file.
4260 * elf/Makefile: Add rules to build and run tst-tls16.
4261
a53d3f82
UD
42622008-01-16 Ulrich Drepper <drepper@redhat.com>
4263
a0f6c236
UD
4264 [BZ #5628]
4265 * bits/shm.h: Fix comment describing shmid_ds.
4266 * sysdeps/gnu/bits/shm.h: Likewise.
4267 * sysdeps/unix/sysv/linux/alpha/bits/shm.h: Likewise.
4268 * sysdeps/unix/sysv/linux/bits/shm.h: Likewise.
4269 * sysdeps/unix/sysv/linux/ia64/bits/shm.h: Likewise.
4270 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
4271 * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
4272 * sysdeps/unix/sysv/linux/sh/bits/shm.h: Likewise.
4273 * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
4274 * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Likewise.
4275 Patch by Hareesh Nagarajan <hareesh.nagarajan@gmail.com>.
4276
a53d3f82
UD
4277 [BZ #5607]
4278 * conform/data/fcntl.h-data: Fix posix_fadvise and posix_fallocate
4279 prototypes.
4280 * conform/data/limits.h-data: Adjust limits changed in v6 and add
4281 additional suffixes.
4282 * conform/data/mqueue.h-data: Fix typo in mq_curmsgs entry.
4283 Add optional functions mq_timedreceive and mq_timedsend.
4284 * conform/data/netdb.h-data: Add more AI_* and EAI_* constants.
4285 * conform/data/pthread.h-data: Fix prototype of
4286 pthread_condattr_setclock. pthread_sigmask is not required in v6.
4287 * conform/data/semaphore.h-data: Allow time.h definitions.
4288 * conform/data/signal.h-data: Likewise.
4289 * conform/data/stdio.h-data: getw and putw are not required in v6.
4290 * conform/data/stdlib.h-data: Change setstate prototype.
4291 * conform/data/string.h-data: Fix strerror_r prototype.
4292 * conform/data/time.h-data: Fix typo in TIMER_ABSTIME definition.
4293 * conform/data/unistd.h-data: pthread_atfork not required in v6.
4294 Fix readlink prototype.
4295 * conform/data/netinet/in.h-data: Add const to in6addr_any and
4296 in6addr_loopback.
4297 * inet/netinet/in.h: Cleanup namespace.
4298 * posix/regex.h: Likewise.
4299 * resolv/netdb.h: Likewise.
4300 * sysdeps/unix/sysv/linux/bits/in.h: Likewise.
4301 * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
4302 * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
6107639e
UD
4303 * sysdeps/posix/getaddrinfo.c (default_labels): Adjust for change
4304 of names of in in6_addr.
4305 (default_precedence): Likewise.
4306 * sysdeps/unix/sysv/linux/cmsg_nxthdr.c: Include <stddef.h> for
4307 NULL definition.
a53d3f82 4308
ebca8f73
UD
43092008-01-15 Ulrich Drepper <drepper@redhat.com>
4310
fbe90cd5
UD
4311 * conform/data/fmtmsg.h-data: Add missing allows.
4312 * conform/data/ftw.h-data: Likewise.
4313 * conform/data/inttypes.h-data: Likewise.
4314 * conform/data/math.h-data: Likewise.
4315 * conform/data/signal.h-data: Likewise.
4316 * conform/data/net/if.h-data: Likewise.
4317 * conform/data/netinet/in.h-data: Likewise.
4318 * conform/data/sys/socket.h-data: Likewise.
4319
ebca8f73
UD
4320 [BZ #5614]
4321 * string/bits/string2.h (__strtok_r_1c): Always update *__NEXTP.
4322 (__strtok_r): Simplify.
4323 * string/tester.c (test_strtok_r): Add test case for futile search
4324 with single-character seach string.
4325
7c33ca8b
UD
43262008-01-12 Ulrich Drepper <drepper@redhat.com>
4327
4328 * po/ko.po: Update from translation team.
4329
b8cc0848
AJ
43302008-01-11 Andreas Jaeger <aj@suse.de>
4331
4332 [BZ #5600]
4333 * sysdeps/unix/sysv/linux/sys/signalfd.h (struct
4334 signalfd_siginfo): Use 64-bit type for ssi_ptr to sync with Linux
4335 kernel header.
4336
49029a66
UD
43372008-01-10 Ulrich Drepper <drepper@redhat.com>
4338
4339 * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Store result of
4340 native interface lookup in all the relevant places.
4341
99f05798
UD
43422008-01-10 Jakub Jelinek <jakub@redhat.com>
4343 Ulrich Drepper <drepper@redhat.com>
0efd1956
UD
4344
4345 * sysdeps/posix/getaddrinfo.c (sort_results): Remove service_order
4346 field. Use sockaddr_in6 for source_addr.
4347 (get_scope): Change type of parameter to sockaddr_in6. Adjust.
4348 (match_prefix): Likewise.
4349 (get_label): Likewise.
4350 (get_precedence): Likewise.
4351 (rfc3484_sort): Change to use indirect access to results array.
4352 Adjust to use of sockaddr_in6. Replace service_order test with
4353 simple index comparison.
4354 (getaddrinfo): Define order array. Initialize it. Don't initialize
4355 service_order field. Adjust qsort_t calls. Access sorted result
4356 array indirectly through order array.
4357 * posix/tst-rfc3484.c: Adjust for change of rfc3484_sort.
4358 * posix/tst-rfc3484-2.c: Likewise.
4359 * posix/tst-rfc3484-3.c: Likewise.
4360
b3443701
UD
43612008-01-09 Ulrich Drepper <drepper@redhat.com>
4362
f6bacb8e
UD
4363 [BZ #5541]
4364 * sunrpc/rpc_thread.c (__rpc_thread_destroy): Also free xports and
4365 pollfd structures.
4366 Patch by André Cruz.
4367
aa693c68
UD
4368 [BZ #5545]
4369 * sunrpc/clnt_perr.c (clnt_sperror): Don't use fixed size buffer.
4370 (clnt_spcreateerror): Likewise.
4371
b3443701
UD
4372 [BZ #5553]
4373 * malloc/malloc.c (public_mALLOc): Set ar_ptr when trying main_arena.
4374 (public_mEMALIGn): Likewise.
4375 Patch mostly by Daniel Jacobowitz.
4376
148e12ed
UD
43772008-01-09 Jakub Jelinek <jakub@redhat.com>
4378
4379 * sysdeps/unix/sysv/linux/i386/makecontext.S (__makecontext): Avoid
4380 clobbering memory at or above uc_stack.ss_sp + uc_stack.ss_size.
4381 * stdlib/Makefile: Add rules to build and run tst-makecontext2.
4382 * stdlib/tst-makecontext2.c: New test.
4383
78c2bf0e 43842008-01-08 Jakub Jelinek <jakub@redhat.com>
4b1b449d
UD
4385
4386 * iconv/loop.c (UPDATE_PARAMS): Define to empty statement if not
4387 defined.
4388 (REINIT_PARAMS): Likewise. Undefine before end of file.
4389 (STANDARD_TO_LOOP_ERR_HANDLER): Use UPDATE_PARAMS before calling
4390 transliteration hooks and REINIT_PARAMS afterwards.
4391 * iconvdata/iso-2022-jp.c (BODY): Use a separate variable for
4392 status.
4393 (REINIT_PARAMS): Define.
4394 * iconvdata/ibm1364.c (REINIT_PARAMS): Likewise.
4395 * iconvdata/ibm930.c (REINIT_PARAMS): Likewise.
4396 * iconvdata/ibm933.c (REINIT_PARAMS): Likewise.
4397 * iconvdata/ibm935.c (REINIT_PARAMS): Likewise.
4398 * iconvdata/ibm937.c (REINIT_PARAMS): Likewise.
4399 * iconvdata/ibm939.c (REINIT_PARAMS): Likewise.
4400 * iconvdata/iso-2022-cn.c (REINIT_PARAMS): Likewise.
4401 * iconvdata/iso-2022-cn-ext.c (REINIT_PARAMS): Likewise.
4402 * iconvdata/iso-2022-jp-3.c (REINIT_PARAMS): Likewise.
4403 * iconvdata/iso-2022-kr.c (REINIT_PARAMS): Likewise.
4404 * iconvdata/Makefile: Add rules to build and run tst-iconv7.c.
4405 * iconvdata/tst-iconv7.c: New test.
4406
71edcafa
UD
44072008-01-07 Ulrich Drepper <drepper@redhat.com>
4408
4409 * libio/stdio.h (vscanf): Fix definition for loser compilers.
4410
0fbfe2f7
JJ
44112008-01-05 Jakub Jelinek <jakub@redhat.com>
4412
4413 [BZ #5112]
4414 * nscd/connections.c (restart): Fix condition.
4415
8726a12e
UD
44162008-01-03 Jakub Jelinek <jakub@redhat.com>
4417
4418 * ctype/ctype.h (__ctype_b_loc, __ctype_tolower_loc,
4419 __ctype_toupper_loc): Add __THROW.
4420
f4a1363e
UD
44212008-01-02 Ulrich Drepper <drepper@redhat.com>
4422
ad586879
UD
4423 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Fix
4424 recognition of interface family.
4425
f4a1363e
UD
4426 * posix/getconf.c: Update copyright year.
4427 * nss/getent.c: Likewise.
4428 * iconv/iconvconfig.c: Likewise.
4429 * iconv/iconv_prog.c: Likewise.
4430 * elf/ldconfig.c: Likewise.
4431 * catgets/gencat.c: Likewise.
4432 * csu/version.c: Likewise.
4433 * elf/ldd.bash.in: Likewise.
4434 * elf/sprof.c (print_version): Likewise.
4435 * locale/programs/locale.c: Likewise.
4436 * locale/programs/localedef.c: Likewise.
4437 * nscd/nscd.c (print_version): Likewise.
4438 * debug/xtrace.sh: Likewise.
4439 * malloc/memusage.sh: Likewise.
4440 * malloc/mtrace.pl: Likewise.
4441 * debug/catchsegv.sh: Likewise.
4442
0dc6c5e4
UD
44432007-12-26 Ulrich Drepper <drepper@redhat.com>
4444
4445 * nss/nsswitch.c (__nss_lookup): Actually use alternative name in
4446 second lookup.
4447
80af8b82
UD
44482007-12-23 Ulrich Drepper <drepper@redhat.com>
4449
4450 * sysdeps/x86_64/cacheinfo.c (intel_02_known): New entry 0x3f.
4451 * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
4452
4bcecfb7
RM
44532007-12-17 Roland McGrath <roland@redhat.com>
4454
4455 * inet/ether_line.c (ether_line): Remove unused variable.
4456
44572007-12-17 Samuel Thibault <samuel.thibault@ens-lyon.org>
4458
4459 * login/forkpty.c (forkpty): Add const qualifier to parameters termp
4460 and winp.
4461 * login/openpty.c (openpty): Likewise.
4462 * login/pty.h (openpty, forkpty): Likewise.
4463 * manual/terminal.texi (openpty, forkpty): Likewise.
4464
4cd4c5d6
UD
44652007-12-17 Ulrich Drepper <drepper@redhat.com>
4466
78c2bf0e 4467 * malloc/malloc.c (public_cALLOc): For arenas other than
4cd4c5d6
UD
4468 main_arena, count all bytes inside the mprotect_size range of the
4469 heap as uninitialized.
4470
68631c8e
UD
44712007-12-16 Ulrich Drepper <drepper@redhat.com>
4472
d9961b6a
UD
4473 * elf/tst-execstack.c (do_test): Don't fail if SELinux forbids
4474 executable stacks.
4475
68631c8e
UD
4476 * malloc/malloc.c (public_mTRIm): Iterate over all arenas and call
4477 mTRIm for all of them.
4478 (mTRIm): Additionally iterate over all free blocks and use madvise
4479 to free memory for all those blocks which contain at least one
4480 memory page.
be8c1500
UD
4481 * malloc/tst-trim1.c: New file.
4482 * malloc/Makefile (tests): Add tst-trim1.
68631c8e
UD
4483
4484 * malloc/malloc.c (do_check_malloc_state): Minimal cleanups.
4485
78b767a0
UD
44862007-12-14 Ulrich Drepper <drepper@redhat.com>
4487
4488 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INTERNAL_SYSCALL_ERROR_P):
4489 First cast argument to long
52386be7
UD
4490 * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_gettimeofday):
4491 Return long.
4492 (__vdso_clock_gettime): Likewise.
78b767a0
UD
4493 * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Functions
4494 return long.
4495
bc3e1c12
UD
44962007-12-13 Ulrich Drepper <drepper@redhat.com>
4497
4498 * locale/nl_langinfo.c (nl_langinfo): Just call __nl_langinfo_l.
4499 * locale/nl_langinfo_l.c: Real implementation, copied from
4500 nl_langinfo.c.
4501 * include/langinfo.h: Add libc_hidden_proto for __nl_langinfo_l.
4502
77751669
UD
45032007-12-01 Jim Meyering <meyering@redhat.com>
4504
4505 * posix/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
4506 that would inhibit utf8-optimization of a regexp containing line-
4507 or buffer-anchors, e.g., `^', `$'.
4508
f63e5063
UD
45092007-12-12 Ulrich Drepper <drepper@redhat.com>
4510
4511 * time/bug-getdate1.c (do_test): Don't use century values which
4512 aren't valid on 32-bit systems.
4513
a78814a9
UD
45142007-12-12 Jakub Jelinek <jakub@redhat.com>
4515
4516 * sysdeps/i386/i486/bits/string.h (memmove): Define as macro.
4517 (memmove): Rename to __memmove_g, with __asm__ ("memmove").
4518 * sysdeps/s390/bits/string.h (__strlen_g, __strcpy_g, __strncpy_g,
4519 __strcat_g, __strncat_g): Add __asm__.
4520
45212007-12-12 Ulrich Drepper <drepper@redhat.com>
4522
4523 [BZ #5477]
4524 * io/fchmodat.c: Fix typo in stub_warning use.
4525 Patch by Petr Salinger.
4526
17edb30c
UD
45272007-12-11 Ulrich Drepper <drepper@redhat.com>
4528
58d11795
UD
4529 * iconvdata/hp-thai8.c: New file.
4530 * iconvdata/Makefile: Add rules for hp-thai8.c.
4531 * iconvdata/tst-tables.sh: Add entry for HP-THAI8.
4532 * iconvdata/gconv-modules: Likewise.
4533
4534 [BZ #5464]
4535 * iconvdata/hp-greek8.c: New file.
4536 * iconvdata/Makefile: Add rules for hp-greek8.c.
4537 * iconvdata/tst-tables.sh: Add entry for HP-GREEK8.
4538 * iconvdata/gconv-modules: Likewise.
4539
4540 [BZ #5463]
4541 * iconvdata/hp-turkish8.c: New file.
4542 * iconvdata/Makefile: Add rules for hp-turkish8.c.
4543 * iconvdata/tst-tables.sh: Add entry for HP-TURKISH8.
4544 * iconvdata/gconv-modules: Likewise.
4545
cbf5760e
UD
4546 * malloc/arena.c (grow_heap): Split out code to shrink heap into...
4547 (shrink_heap): ... this new function.
4548 (heap_trim): Call shrink_heap instead of grow_heap.
4549
17edb30c
UD
4550 * malloc/malloc.c (_int_malloc): sYSMALLOc might fail, in this
4551 case don't call alloc_perturb.
4552
ae18718f
UD
45532007-12-10 Ulrich Drepper <drepper@redhat.com>
4554
4555 * sysdeps/unix/sysv/linux/adjtime.c: Use ADJ_OFFSET_SS_READ if
4556 possible.
4557 * sysdeps/unix/sysv/linux/kernel-features.h
4558 (__ASSUME_ADJ_OFFSET_SS_READ): Define for 2.6.24.
4559 * sysdeps/unix/sysv/linux/sys/timex.h (ADJ_OFFSET_SS_READ): Define.
4560
b4354cf4
UD
45612007-12-08 Ulrich Drepper <drepper@redhat.com>
4562
4563 [BZ #5424]
4564 * stdio-common/vfprintf.c: Do not overflow when adding to done.
4565 * stdio-common/Makefile (tests): Add bug22.
4566 * stdio-common/bug22.c: New file.
4567
4568 [BZ #5451]
4569 * time/getdate.c: Fix filling in default values.
4570 * time/bug-getdate1.c: New file.
4571 * time/Makefile: Add rules to build and run bug-getdate1.
4572
4573 * iconvdata/ebcdic-is-friss.c: Use 8bit-gap instead of 8bit-generic.
4574 * iconvdata/ebcdic-es.c: Likewise.
4575 * iconvdata/ebcdic-es-a.c: Likewise.
4576 * iconvdata/ebcdic-uk.c: Likewise.
4577 * iconvdata/iso8859-16.c: Likewise.
4578 * iconvdata/viscii.c: Likewise.
4579 * iconvdata/iso8859-9e.c: Likewise.
4580 * iconvdata/Makefile: Adjust appropriately.
4581
4582 [BZ #5428]
4583 * wcsmbs/wchar.h: Unconditionally undefine __need_mbstate and
4584 __need_wint_t.
4585
26e21e75
UD
45862007-12-07 Ulrich Drepper <drepper@redhat.com>
4587
87520ccc
UD
4588 [BZ #5427]
4589 * iconvdata/hp-roman9.c: New file.
4590 * iconvdata/Makefile: Add rules for hp-roman9.c.
4591 * iconvdata/tst-tables.sh: Add HP-ROMAN9.
b4354cf4 4592 * iconvdata/gconv-modules: Likewise.
87520ccc
UD
4593
4594 * iconvdata/hp-roman8.c: Use 8bit-gap instead of 8bit-generic.
4595 * iconvdata/Makefile: Adjust appropriately.
4596
26e21e75
UD
4597 [BZ #5441]
4598 * stdio-common/vfscanf.c (_IO_vfwscanf): Don't free ptrs_to_free
4599 structure, it's allocated with alloca.
4600 * stdio-common/Makefile (tests): Add bug21.
4601 * stdio-common/bug21.c: New file.
4602
46032007-12-06 Aurelien Jarno <aurelien@aurel32.net>
4604
4605 [BZ #5452]
4606 * sysdeps/unix/sysv/linux/bits/sched.h: Use __extension__
87520ccc 4607 keyword for gcc's braced-groups.
26e21e75
UD
4608
46092007-12-07 Ulrich Drepper <drepper@redhat.com>
4610
4611 [BZ #5454]
4612 * inet/ether_line.c: Strip hostname of whitespaces.
4613 * inet/Makefile (tests): Add tst-ether_line.
4614 * inet/tst-ether_line.c: New file.
4615
9e80c123
UD
46162007-12-03 Ulrich Drepper <drepper@redhat.com>
4617
da0ff4ae
UD
4618 [BZ #5439]
4619 * sysdeps/unix/sysv/linux/sys/signalfd.h: Fix use of __nonnull.
4620
51bd20d9
UD
4621 [BZ #5435]
4622 * sysdeps/unix/sysv/linux/i386/makecontext.S: Align stack.
4623
d90d0256
UD
4624 * stdlib/tst-setcontext.c: Catch the case where the links gets
4625 messed up and we do not reach main again.
4626
9e80c123
UD
4627 * po/ca.po: Update from translation team.
4628
ae4287f8
UD
46292007-11-26 Ulrich Drepper <drepper@redhat.com>
4630
6701afc7 4631 * posix/unistd.h: Declare fsync also for __USE_XOPEN2K.
79fb2e02 4632 * posix/regex.h (REG_ENOSYS): Likewise.
a912a4f8 4633 * wcsmbs/wchar.h: Define __need_file also for __USE_XOPEN2K.
ae4287f8 4634
30294ea4
UD
46352007-11-25 Ulrich Drepper <drepper@redhat.com>
4636
4637 * nscd/nscd.h (MAX_STACK_USE): Define.
4638 * nscd/mem.c (MAX_STACK_USE): Remove definition here.
4639 (gc): Initialize stack_used based on allocation in prune_cache.
4640 * nscd/cache.c (prune_cache): Use heap for mark array if necessary.
e8667ddc 4641 Clear array before use.
30294ea4
UD
4642
4643 * nscd/aicache.c (addhstaiX): Update statistics counter in case
10a4c1e9 4644 memory allocation failed.
e8667ddc
UD
4645 * nscd/hstcache.c (cache_addhst): Likewise.
4646 * nscd/grpcache.c (cache_addgr): Likewise.
4647 * nscd/servicescache.c (cache_addserv): Likewise.
4648 * nscd/pwdcache.c (cache_addpw): Likewise.
4649 * nscd/initgrcache.c (addinitgroupsX): Likewise.
30294ea4 4650
715db78b
UD
46512007-11-23 Ulrich Drepper <drepper@redhat.com>
4652
609bb071
UD
4653 * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Add open
4654 and creat system calls.
4655
715db78b
UD
4656 * sysdeps/unix/sysv/linux/check_native.c: Include <asm/types.h>.
4657
ea2c47b6
UD
46582007-11-23 Martin Schwidefsky <schwidefsky@de.ibm.com>
4659
4660 * sysdeps/unix/sysv/linux/Makefile [subdir=inet] (sysdep_headers):
4661 Add netiucv/iucv.h.
4662 * sysdeps/unix/sysv/linux/netiucv/iucv.h: New file.
4663 * sysdeps/unix/sysv/linux/opensock.c (__opensock): Add AF_IUCV
4664 protocol.
4665 * sysdeps/unix/sysv/linux/sa_len.c (__libc_sa_len): Likewise.
4666 * sysdeps/unix/sysv/linux/s390/opensock.c: New file.
4667 * sysdeps/unix/sysv/linux/s390/sa_len.c: New file.
4668
dcdcf4b9
UD
46692007-11-22 Martin Schwidefsky <schwidefsky@de.ibm.com>
4670
37143323
UD
4671 * sysdeps/s390/bits/string.h (strlen, strcpy, strncpy, strcat,
4672 strncat): Define as macros to avoid compile errors.
4673
dcdcf4b9
UD
4674 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Add open and
4675 creat entries.
4676
3a632674
UD
46772007-11-22 Ulrich Drepper <drepper@redhat.com>
4678
7ea8eb02
UD
4679 [BZ #5382]
4680 * nscd/nscd.h (NSCD_THREAD_STACKSIZE): Define.
4681 * nscd/connections.c (start_threads): Use NSCD_THREAD_STACKSIZE.
715db78b 4682 * nscd/mem.c (gc): Don't allocate arrays on the stack if they can
7ea8eb02 4683 overflow it.
70d5b6ef 4684 Partially based on a patch by Petr Baudis <pasky@suse.cz>.
7ea8eb02
UD
4685
4686 * sysdeps/unix/sysv/linux/nscd_setup_thread.c (setup_thread):
715db78b 4687 Return zero in case the thread library is not NPTL.
7ea8eb02 4688
5c3a3dba
UD
4689 [BZ #5375]
4690 * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix locking when
4691 initializing interface list.
4692
85883123
UD
4693 [BZ #5378]
4694 * nis/nss_compat/compat-initgroups.c (getgrent_next_nss): Don't
4695 use result of nss_getgrgid_r if nothing was found. For other
4696 error return with a failure.
4697 Partially based on a patch by Petr Baudis <pasky@suse.cz>.
4698
3a632674
UD
4699 * locale/programs/ld-collate.c (collate_read): Fix loop to match
4700 macro name.
4701
b73f9135
UD
47022007-11-19 Ulrich Drepper <drepper@redhat.com>
4703
ee72b971
UD
4704 * sysdeps/posix/getaddrinfo.c (defaults_scopes, scopes): New variables.
4705 (get_scope): For IPv4 scope, use scopes table.
4706 (fini): Free scopes table if necessary.
4707 (free_scopelist): New function.
4708 (scopecmp): New function.
4709 (gaiconf_init): Also handle scopev4 entries.
4710 * posix/tst-rfc3484.c (do_test): Initialize scopes.
4711 * posix/tst-rfc3484-2.c (do_test): Likewise.
4712 * posix/gai.conf: Document scopev4 defaults.
4713 * posix/Makefile (tests): Add tst-rfc3484-3.
4714 * posix/tst-rfc3484-3.c: New file.
4715
f4a79765
UD
4716 * sysdeps/posix/getaddrinfo.c (default_labels): Describe entry for
4717 Teredo tunnels.
b73f9135
UD
4718 * posix/gai.conf: Update for current default tables.
4719
429bd64d
UD
47202007-11-19 Ulrich Drepper <drepper@redhat.com>
4721
4722 * po/tr.po: Update from translation team.
4723
3c9af259
RM
47242007-11-18 Roland McGrath <roland@frob.com>
4725
76cf9889
RM
4726 * manual/arith.texi (Remainder Functions): Spelling fix.
4727 From Shaun Silk <genix@mysoul.com.au>.
4728
3c9af259
RM
4729 * sysdeps/mach/hurd/bits/fcntl.h (O_CLOEXEC): Fix value.
4730
238346ab
UD
47312007-11-17 Ulrich Drepper <drepper@redhat.com>
4732
5879ad50
UD
4733 * po/zh_CN.po: Update from translation team.
4734
238346ab
UD
4735 * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
4736 Add sys/signalfd.h and sys/eventfd.h.
4737
b80b9c77
UD
47382007-11-15 Bruno Haible <bruno@clisp.org>
4739
4740 [BZ #5346]
4741 * intl/dcigettext.c (struct known_translation_t): Turn msgid into a
4742 union.
4743 (transcmp): Use the appropriate part of s1->msgid and s2->msgid.
4744 (DCIGETTEXT): Change the allocation of the 'search' variable so that
4745 it needs only fixed stack space. Delay the initialization of
4746 msgid_len until it is needed.
4747
2da2501c
AJ
47482007-11-15 Andreas Jaeger <aj@suse.de>
4749
4750 * sysdeps/ieee754/dbl-64/sincos.tbl: Fix size of union.
4751 Reported by Christoph Quirin Lauter <christoph.lauter@ens-lyon.fr>.
4752
68a6dcf5
UD
47532007-11-15 Ulrich Drepper <drepper@redhat.com>
4754
4755 * po/ko.po: Update from translation team.
4756
43850227
UD
47572007-11-14 Ulrich Drepper <drepper@redhat.com>
4758
1e2692c9
UD
4759 * sysdeps/unix/sysv/linux/check_native.c (__check_native): Simplify
4760 significantly. The device type is also part of the ifinfomsg data.
4761
84e6cc7c 4762 * po/sv.po: Update from translation team.
cbd52634 4763 * po/nl.po: Likewise.
84e6cc7c 4764
f9e2261b
UD
4765 * nscd/cache.c (prune_cache): If cache is empty, instruct caller
4766 to wake up in 24 hours.
4767
43850227
UD
4768 * nscd/gai.c (__ioctl): Define. Include check_native.c.
4769
5742e960
UD
47702007-11-13 Ulrich Drepper <drepper@redhat.com>
4771
1a821d82
UD
4772 * po/cs.po: Update from translation team.
4773 * po/pl.po: Likewise.
4774
773e79b3
UD
4775 * include/ifaddrs.h: Remove in6ai_temporary.
4776 (struct in6addrinfo): Add index element.
4777 Declare __check_native.
4778 * inet/Makefile (aux): Add check_native.
4779 * sysdeps/unix/sysv/linux/check_native.c: New file.
4780 * sysdeps/unix/sysv/linux/check_pf.c: No need to recognize
4781 IFA_F_TEMPORARY. Pass back ifa_index.
4782 * sysdeps/posix/getaddrinfo.c: Remove netlink compatibility code.
4783 (rfc3484_sort): Add new parameter. Implement rule 7 correctly:
4784 call __check_native if necessary.
4785 (getaddrinfo): Fill in index field. Use qsort_r instead of qsort
4786 to sort addresses. Pass information about the results.
4787 * posix/tst-rfc3484.c: Adjust for addition of index field and change
4788 of rfc3484_sort interface.
4789 * posix/tst-rfc3484-2.c: Likewise.
4790
e458144c
UD
4791 * stdlib/stdlib.h: Define __compar_d_fn_t. Declare qsort_r.
4792 * include/stdlib.h: Add hidden_proto for qsort_t and adjust protoype
4793 for _quicksort.
4794 * stdlib/msort.c (qsort): Now a wrapper around qsort_r.
4795 (qsort_r): Renamed from qsort. Take additional parameter and pass it
4796 on as third parameter to compare function and _quicksort.
4797 * stdlib/qsort.c (_quicksort): Take additional parameter and pass on
4798 to the compare function.
4799 * stdlib/Versions [libc] (GLIBC_2.8): Add qsort_r.
4800 * Versions.def: Add GLIBC_2.8 for libc.
4801
bd63f380
UD
4802 * posix/tst-rfc3484.c: Adjust for addition of prefixlen field.
4803 * posix/tst-rfc3484-2.c: Likewise.
4804
5742e960
UD
4805 * include/kernel-features.h: Moved to...
4806 * sysdeps/mach/hurd/kernel-features.h: ...here.
4807
a6ac7fdb
RM
48082007-09-13 H.J. Lu <hongjiu.lu@intel.com>
4809
4810 * sysdeps/i386/i586/memcpy_chk.S: New file.
4811 * sysdeps/i386/i586/mempcpy_chk.S: Likewise.
4812 * sysdeps/i386/i586/memset_chk.S: Likewise.
4813
6f3914d5
UD
48142007-11-12 Ulrich Drepper <drepper@redhat.com>
4815
4816 * include/ifaddrs.c (struct in6addrinfo): Add prefixlen field.
4817 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Always return
4818 list of interfaces. Also store prefix length.
4819 * sysdeps/posix/getaddrinfo.c (sort_result): Add prefixlen element.
4820 (rfc3484_sort): In rule 9, for IPv4 addresses count only matching
4821 prefix if source and destination address are in the same subnet.
4822 (getaddrinfo): Always call __check_pf. Fill in prefixlen field.
4823 Always look for matching record in in6ai list.
4824 Correct source_addr_len value for IPv6->IPv4 converted records.
4825
78cf5f6a
RM
48262007-11-11 Roland McGrath <roland@frob.com>
4827
4828 * include/kernel-features.h: New file.
4829
7f745396
UD
48302007-11-10 Ulrich Drepper <drepper@redhat.com>
4831
01e7fdbb
UD
4832 * sysdeps/pthread/aio_misc.c (handle_fildes_io): Avoid unnecessary
4833 complications for 64-bit platforms.
4834
7f745396
UD
4835 * sysdeps/unix/sysv/linux/open64.c: Move __open64_2 implementation to..
4836 * sysdeps/unix/sysv/linux/open64_2.c: ...here. New file.
4837 * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines): Add
4838 open64_2.
4839 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Add open and creat
4840 entries.
4841 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
4842 * sysdeps/wordsize-64/alphasort.c: New file.
4843 * sysdeps/wordsize-64/alphasort64.c: New file.
4844 * sysdeps/wordsize-64/fseeko.c: New file.
4845 * sysdeps/wordsize-64/fseeko64.c: New file.
4846 * sysdeps/wordsize-64/ftello.c: New file.
4847 * sysdeps/wordsize-64/ftello64.c: New file.
4848 * sysdeps/wordsize-64/ftw.c: New file.
4849 * sysdeps/wordsize-64/ftw64.c: New file.
4850 * sysdeps/wordsize-64/iofgetpos.c: New file.
4851 * sysdeps/wordsize-64/iofgetpos64.c: New file.
4852 * sysdeps/wordsize-64/iofopen.c: New file.
4853 * sysdeps/wordsize-64/iofopen64.c: New file.
4854 * sysdeps/wordsize-64/iofsetpos.c: New file.
4855 * sysdeps/wordsize-64/iofsetpos64.c: New file.
4856 * sysdeps/wordsize-64/lockf.c: New file.
4857 * sysdeps/wordsize-64/lockf64.c: New file.
4858 * sysdeps/wordsize-64/mkostemp.c: New file.
4859 * sysdeps/wordsize-64/mkostemp64.c: New file.
4860 * sysdeps/wordsize-64/mkstemp.c: New file.
4861 * sysdeps/wordsize-64/mkstemp64.c: New file.
4862 * sysdeps/wordsize-64/scandir.c: New file.
4863 * sysdeps/wordsize-64/scandir64.c: New file.
4864 * sysdeps/wordsize-64/tmpfile.c: New file.
4865 * sysdeps/wordsize-64/tmpfile64.c: New file.
4866 * sysdeps/wordsize-64/versionsort.c: New file.
4867 * sysdeps/wordsize-64/versionsort64.c: New file.
4868 * sysdeps/unix/sysv/linux/wordsize-64/aio_read.c: New file.
4869 * sysdeps/unix/sysv/linux/wordsize-64/aio_read64.c: New file.
4870 * sysdeps/unix/sysv/linux/wordsize-64/aio_write.c: New file.
4871 * sysdeps/unix/sysv/linux/wordsize-64/aio_write64.c: New file.
4872 * sysdeps/unix/sysv/linux/wordsize-64/creat64.c: New file.
4873 * sysdeps/unix/sysv/linux/wordsize-64/getdirentries.c: New file.
4874 * sysdeps/unix/sysv/linux/wordsize-64/getdirentries64.c: New file.
4875 * sysdeps/unix/sysv/linux/wordsize-64/lio_listio.c: New file.
4876 * sysdeps/unix/sysv/linux/wordsize-64/lio_listio64.c: New file.
4877 * sysdeps/unix/sysv/linux/wordsize-64/open64.c: New file.
4878 * sysdeps/unix/sysv/linux/wordsize-64/openat.c: New file.
4879 * sysdeps/unix/sysv/linux/wordsize-64/openat64.c: New file.
4880
4881 * crypt/sha256-crypt.c: Fix a comment.
4882 * crypt/sha512-crypt.c: Likewise.
4883
f6ed654c
UD
48842007-11-07 H.J. Lu <hongjiu.lu@intel.com>
4885
4886 * sysdeps/x86_64/memset.S: Add sfence after movnti.
4887
f2a8406a
UD
48882007-11-07 Ulrich Drepper <drepper@redhat.com>
4889
4890 [BZ #5277]
4891 * iconv/loop.c (STANDARD_TO_LOOP_ERR_HANDLER): If conversion failed
4892 because output buffer is too small break, don't loop.
4893 * iconvdata/Makefile (tests): Add bug-iconv6.
4894 * iconvdata/bug-iconv6.c: New file.
4895
7fe4e0e8
UD
48962007-11-06 Ulrich Drepper <drepper@redhat.com>
4897
9ca230d6
UD
4898 * stdio-common/vfprintf.c (vfprintf): Compute necessary buffer size
4899 with size_t type.
4900 * stdio-common/printf_fp.c (__print_fp): Change chars_needed type to
4901 size_t. Add casts where needed.
4902
7fe4e0e8
UD
4903 * nscd/selinux.c (nscd_request_avc_has_perm): When compiled with
4904 old headers, don't call avc_has_perm if we don't have the
4905 permission information.
4906
b92e3780
UD
49072007-11-05 Daniel Jacobowitz <dan@codesourcery.com>
4908
4909 * elf/rtld.c (dl_main): Use the page size to find the map start.
4910
ffb1b882
UD
49112007-11-05 Ulrich Drepper <drepper@redhat.com>
4912
94a749f6
UD
4913 * time/tzfile.c (__tzfile_read): Fix check for version 0 data files.
4914 Patch by Szymon Siwek <sls@poczta.wp.pl>.
4915
ffb1b882
UD
4916 * nscd/aicache.c (addhstaiX): Check herrno after IPv4 lookup only
4917 when the lookup call failed.
4918
4919 * nscd/nscd.h (struct database_dyn): Rename prunelock to prune_lock.
4920 Add prune_cond and wakeup_time.
4921 (CACHE_PRUNE_INTERNAL): Define.
4922 Update declarations of prune_cache and setup_thread.
4923 * nscd/connections.c (dbs): Update initializers.
4924 (CACHE_PRUNE_INTERNAL): Moved to nscd.h.
4925 (nscd_init): Default number of threads is now 4.
4926 (invalidate_cache): Take lock before calling prune_cache.
4927 (handle_request): If SELinux forbids the request, say so.
4928 (readylist_cond): Use static initializer.
4929 (nscd_run_prune): New function. Used only by pruning threads.
4930 (nscd_run_worder): Renamed from nscd_run. Remove support for pruning
4931 here.
4932 (fd_ready): Update nscd_run reference.
4933 (start_threads): No need to initialize readylist_cond.
4934 Start pruning threads separately.
4935 * nscd/nscd_setup_thread.c: Change return value type to int and always
4936 return 0.
4937 * sysdeps/unix/sysv/linux/nscd_setup_thread.c: Change return value type
4938 to int and return nonzero value if we can use the TID address hack.
4939 * nscd/cache.c (cache_add): If next wakeup time of cleanup thread for
4940 the database is later than the new entry's timeout, update the
4941 wakeup time and wake the cleanup thread.
4942 (prune_cache): Return seconds the next entry in the database is still
4943 valid. Remove locking for pruning here.
4944 * nscd/nscd.conf: Document default number of threads.
4945
4c48ef06
UD
49462007-10-31 Ulrich Drepper <drepper@redhat.com>
4947
41ff2a49
UD
4948 * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Make sure
4949 stack is properly aligned for the target function.
4950 Correct unwind info.
ffb1b882 4951
4c48ef06
UD
4952 * elf/rtld.c (dl_main): Initialize stack and pointer guard early
4953 when using auditing libraries.
4954
384ca551
UD
49552007-10-29 Ulrich Drepper <drepper@redhat.com>
4956
31e2791c
UD
4957 * resolv/Versions [libresolv] (GLIBC_PRIVATE): Add
4958 _nss_dns_getnetbyaddr2_r.
4959 * resolv/nss_dns/dns-host.c: Define _nss_dns_getnetbyaddr2_r. Pass
4960 extra parameter to getanswer_r.
4961 (_nss_dns_getnetbyaddr_r): Now a wrapper around
4962 _nss_dns_getnetbyaddr2_r.
4963
384ca551
UD
4964 * nscd/Makefile (nscd-modules): Replace gethstbynm2_r with
4965 gethstbynm3_r.
4966 * nscd/gethstbynm2_r.c: Remove.
4967 * nscd/gethstbynm3_r.c: New file.
4968 * nscd/aicache.c (addhstaiX): Use __gethostbyaddr2_r instead of
4969 __gethostbyaddr_r.
4970 * nscd/gethstbyad_r.c: Generate __gethostbyaddr2_r function. Define
4971 __gethostbyaddr_r compatibility wrapper.
4972 * nscd/hstcache.c (cache_addhst): Add ttl parameter. Use it when
4973 determining timeout of entry.
4974 (lookup): Take new parameter and pass it to __gethostbyname3_r and
4975 __gethostbyaddr2_r.
4976 (addhstbyX): Pass reference to variable for TTL to lookup and
4977 cache_addhst.
4978 * nss/Versions [glibc] (GLIBC_PRIVATE): Export __nss_passwd_lookup2,
4979 __nss_group_lookup2, __nss_hosts_lookup2, __nss_services_lookup2,
4980 and __nss_next2. Remove __nss_services_lookup.
4981 * nss/XXX-lookup.c: Name function now *_lookup2. Add new parameter.
4982 Add compat wrapper.
4983 * nss/getXXbyYY_r.c: Changes to call new *_lookup2 functions and
4984 __nss_next2.
4985 * nss/getXXent_r.c: Likewise.
4986 * nss/getnssent_r.c: Likewise.
4987 * nss/nsswitch.c (__nss_lookup): Add new parameter. If first function
4988 does not exist in module, try the optional second name.
4989 (__nss_next2): New function.
4990 (__nss_next): Now wrapper around __nss_next2.
4991 * nss/nsswitch.h: Adjust __nss_lookup prototype.
4992 Declare __nss_next2.
4993 Adjust definition of db_lookup_function type.
4994 * nss/service-lookup.c: Define NO_COMPAT.
4995 * include/netdb.h: Declare __gethostbyaddr2_r and __gethostbyname3_r.
4996 * inet/ether_hton.c: Use __nss_next2 instead of __nss_next.
4997 * inet/ether_ntoh.c: Likewise.
4998 * sunrpc/netname.c: Likewise.
4999 * sunrpc/publickey.c: Likewise.
5000 * inet/getnetgrent.c: Likewise. Adjust calls to __nss_lookup.
5001 * inet/gethstbyad_r.c (DB_LOOKUP_FCT): Change to __nss_hosts_lookup2.
5002 * inet/gethstbynm2_r.c (DB_LOOKUP_FCT): Likewise.
5003 * inet/gethstbynm_r.c (DB_LOOKUP_FCT): Likewise.
5004 * inet/gethstent_r.c (DB_LOOKUP_FCT): Likewise.
5005
5006 * nscd/aicache.c (addhstaiX): Fix default TTL handling.
5007
5e37840c 5008 * inet/getnetgrent_r.c (setup): Encrypt static pointer.
384ca551 5009
88197030
UD
50102007-10-28 Ulrich Drepper <drepper@redhat.com>
5011
f160a450
UD
5012 [BZ #5204]
5013 * crypt/sha256c-test.c: Define TIMEOUT to 6 for ancient hardware.
5014 * crypt/sha512c-test.c: Likewise.
5015
4c6b2202
UD
5016 [BZ #5225]
5017 * stdio-common/vfscanf.c (_IO_vfwscanf): Don't misuse wp pointer
5018 to keep track of end of %[ format string element.
22c915ac
UD
5019 * stdio-common/Makefile (tests): Add bug20.
5020 * stdio-common/bug20.c: New file.
4c6b2202 5021
88197030
UD
5022 [BZ #5222]
5023 * elf/dl-load.c (_dl_rtld_di_serinfo): Correct handling of short
5024 path elements in counting mode.
5025
05d69147
UD
50262007-10-27 Andreas Jaeger <aj@suse.de>
5027
94833f11
UD
5028 [BZ #5040]
5029 * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLRDHUP): Add value.
5030
05d69147
UD
5031 [BZ #3112]
5032 * sysdeps/ia64/backtrace.c (init): Free shared library if incorrect.
5033 (__cleanup): Free shared library when exiting.
5034 * sysdeps/i386/backtrace.c (init): Free shared library if incorrect.
5035 (__cleanup): Free shared library when exiting.
5036
e6b29af8
UD
50372006-04-14 H.J. Lu <hongjiu.lu@intel.com>
5038
5039 [BZ #2549]
5040 * math/libm-test.inc (check_float_internal): Support
5041 denormalized return.
5042
ad3371fb
UD
50432007-10-23 Andreas Jaeger <aj@suse.de>
5044
5045 [BZ #5208]
5046 * sysdeps/unix/sysv/linux/readahead.c (__readahead): Use
5047 __LONG_LONG_PAIR to handle little endian byte order.
5048 Suggested by abhishekrai@google.com
5049
666aa020
UD
50502007-10-27 Ulrich Drepper <drepper@redhat.com>
5051
5052 * malloc/arena.c [!NO_THREADS]: Use ATFORK_MEM if defined.
5053
8ad343b3
UD
50542007-10-26 Ulrich Drepper <drepper@redhat.com>
5055
5056 * nscd/cache.c (prune_cache): Move test for modified file outside
5057 of locking.
5058
9251c568
AJ
50592007-10-21 Andreas Jaeger <aj@suse.de>
5060
5061 * manual/texinfo.tex: Update to latest version.
5062
5063 * manual/sysinfo.texi (System Parameters): Fix Formatting.
5064
5065 * manual/arith.texi (Status bit operations): Fix formatting.
5066
5067 * manual/errno.texi (Error Messages): Fix formatting.
5068
5069 * manual/sysinfo.texi (System Parameters): Fix formatting.
5070
5071 * manual/libc.texinfo: Update VERSION and UPDATED.
5072
260b2e06
RM
50732007-10-19 Roland McGrath <roland@redhat.com>
5074
5075 * elf/Makefile ($(objpfx)ld.so): Use $(AWK).
5076
46ae8850
JJ
50772007-10-06 David S. Miller <davem@davemloft.net>
5078
5079 * configure.in: Add sparcv9v2 and sparc64v2.
5080 * scripts/config.sub: Likewise.
5081 * configure: Regenerate.
5082 * elf/elf.h (HWCAP_SPARC_N2): New.
5083 * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Bump to 8.
5084 * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add 'v9v2'.
5085 (HWCAP_IMPORTANT): Add HWCAP_SPARC_N2.
5086 * sysdeps/sparc/sparc32/sparcv9/sparcv9v2/memcpy.S: New file.
5087 * sysdeps/sparc/sparc32/sparcv9/sparcv9v2/memset.S: New file.
5088 * sysdeps/sparc/sparc64/sparcv9v2/memcpy.S: New file.
5089 * sysdeps/sparc/sparc64/sparcv9v2/memset.S: New file.
5090
6fbfbd80
UD
50912007-10-18 Ulrich Drepper <drepper@redhat.com>
5092
5093 * sunrpc/clnt_udp.c (clntudp_call): Don't block in recvfrom call
5094 even if the poll result indicates there is data to read.
5095 Patch by Jeff Moyer <jmoyer@redhat.com>.
5096
39cfc9fa
RM
50972007-10-18 Roland McGrath <roland@redhat.com>
5098
5099 * elf/elf.h (NT_PPC_VMX): New macro.
28919a77 5100
39cfc9fa 51012007-10-17 Ulrich Drepper <drepper@redhat.com>
28919a77
UD
5102
5103 * version.h (VERSION): Set to 2.7.90.
5104
ed13ccf1
JJ
51052007-10-17 Jakub Jelinek <jakub@redhat.com>
5106
5107 * sysdeps/x86_64/memset.S (bzero): Renamed to __bzero. Add
5108 weak_alias.
5109
ee9fd869
RM
51102007-10-17 Roland McGrath <roland@frob.com>
5111
5112 * sysdeps/mach/hurd/bits/fcntl.h [__USE_GNU__] (F_DUPFD_CLOEXEC): New.
5113 * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Implement it.
5114
1aa5e4d7
UD
51152007-10-17 Ulrich Drepper <drepper@redhat.com>
5116
50c9fbbf 5117 * version.h (VERSION): Bump to 2.7.
777bc4bf 5118 * include/features.h (__GLIBC_MINOR__): Bump to 7.
50c9fbbf 5119
58423c7d
UD
5120 [BZ #5186]
5121 * time/tzset.c (__tz_convert): Don't force testing for a change of
5122 TZ if not called from localtime. But then also see whether the
5123 file changed, in case __use_tzfile is set.
5124
1aa5e4d7
UD
5125 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define F_DUPFD_CLOEXEC.
5126 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
5127 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
5128 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
5129 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
5130 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
5131 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
5132 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
5133
fc4837e5
UD
51342007-10-17 Jakub Jelinek <jakub@redhat.com>
5135
5136 * sysdeps/posix/getaddrinfo.c (getaddrinfo): When sorting addresses
5137 and admin selects to be able to replace the gai.conf file, lock
5138 data structures around the qsort call.
5139
62eaf7c8
UD
51402007-10-17 Ulrich Drepper <drepper@redhat.com>
5141
406f28db
UD
5142 * sysdeps/x86_64/cacheinfo.c: Comment out code added in support of
5143 new memset.
ac1cb5da 5144 * sysdeps/x86_64/memset.S: Revert to old version for now. The cost is
406f28db
UD
5145 too high for the improvements. Implement bzero unconditionally for
5146 use in libc.
ac1cb5da
UD
5147
51482007-10-17 Ulrich Drepper <drepper@redhat.com>
5149 Jakub Jelinek <jakub@redhat.com>
5150
62eaf7c8
UD
5151 * time/tzfile.c (__tzfile_read): Read POSIX TZ string if available
5152 even when time_t is 32-bit.
5153 (__tzfile_compute): Override POSIX TZ string STD/DST zone names if
5154 timezone data read by __tzfile_default. Ensure __tzname[0] is
5155 always set after the search.
5156
6a649d25
UD
51572007-10-16 Ulrich Drepper <drepper@redhat.com>
5158
5159 * time/tzfile.c (__tzfile_read): Help the compiler recognize
5160 unreachable code on 32-bit machines.
5161
800d6f9e
UD
51622007-10-16 Jakub Jelinek <jakub@redhat.com>
5163
5164 [BZ #5184]
5165 * time/strftime_l.c: Include stdbool.h.
5166 (my_strftime): New wrapper, old function renamed to...
5167 (__strftime_internal): ... new function. Add tzset_called
5168 argument, pass it down to recursive calls, don't call tzset ()
5169 if already true, set to true after call to tzset ().
62eaf7c8 5170
69819d92
UD
51712007-10-16 Ulrich Drepper <drepper@redhat.com>
5172
5173 * time/tzfile.c (__tzfile_read): Take extra memory requested by caller
5174 into account when copying TZ string.
5175
62eaf7c8
UD
51762007-10-16 Jakub Jelinek <jakub@redhat.com>
5177
5178 * time/tzfile.c (__tzfile_compute): For use_last case set i to
5179 num_transition rather than num_transitions - 1.
5180
0308ad66
JJ
51812007-10-16 Jakub Jelinek <jakub@redhat.com>
5182
8d137b60
JJ
5183 * sysdeps/x86_64/memset.S (memset): Fix sse2_nt_move
5184 PIC indirect jump.
5185
0308ad66
JJ
5186 * sysdeps/x86_64/memset.S: Jump from bzero to memset using
5187 a local label rather than HIDDEN_JUMPTARGET.
5188
e2b393bc
UD
51892007-10-15 Ulrich Drepper <drepper@redhat.com>
5190
5191 * sysdeps/x86_64/cacheinfo.c (__x86_64_shared_cache_size): Define.
5192 (init_cacheinfo): Initialize it.
5193 * sysdeps/x86_64/memset.S: Use __x86_64_shared_cache_size.
5194 Always define bzero.
5195 Remove non-glibc code.
5196 * sysdeps/x86_64/bzero.S: Make an empty file.
5197
51982007-10-15 H.J. Lu <hongjiu.lu@intel.com>
5199
5200 * sysdeps/x86_64/cacheinfo.c
5201 (__x86_64_preferred_memory_instruction): New.
5202 (init_cacheinfo): Initialize __x86_64_preferred_memory_instruction.
5203
5204 * sysdeps/x86_64/memset.S: Rewrite.
5205
0fbfcb7b
RM
52062007-10-15 Roland McGrath <roland@redhat.com>
5207
5208 * po/libc.pot: Regenerated.
5209
2884dad4
UD
52102007-10-15 Ulrich Drepper <drepper@redhat.com>
5211
e2b393bc 5212 * nss/getXXbyYY_r.c (REENTRANT_NAME): Mangle startp and start_fct
d96a2216
UD
5213 pointers.
5214
2884dad4
UD
5215 [BZ #3425]
5216 * resolv/nss_dns/dns-host.c (getanswer_r): Fail with
5217 NSS_STATUS_NOTFOUND if the server replied with only a CNAME and no
5218 address record to T_A/T_AAAA requests.
5219
89dc9d4c
UD
52202007-10-14 Ulrich Drepper <drepper@redhat.com>
5221
8d97ac13
UD
5222 * posix/glob.c: Reimplement link_exists_p to use fstatat64.
5223
1b6aa63f
UD
5224 * posix/glob.c: Add some branch prediction throughout.
5225
895a08c0
UD
5226 * nscd/nscd_getgr_r.c (nscd_getgr_r): Store result of successful
5227 read from nscd.
5228
6f55ed88
UD
5229 * sysdeps/posix/getaddrinfo.c (struct sort_result): Add
5230 service_order.
8d62c8ab
UD
5231 (rfc3484_sort): Make sure that even if qsort doesn't support
5232 stable sorting out sorting here is stable by comparing service_order.
6f55ed88 5233 (getaddrinfo): Initialize service_order.
a94673e6
UD
5234 * posix/tst-rfc3484.c (do_test): Adjust for addition of
5235 service_order field to sorting structure.
dfcf64ce 5236 * posix/tst-rfc3484-2.c (do_test): Likewise.
6f55ed88 5237
fa76dde2
UD
5238 * include/time.h: Declare __tzset_parse_tz and __tzset_compute.
5239 * time/tzset.c (tzset_internal): Break TZ string parsing out into
5240 __tzset_parse_tz and updating of daylight, timezone, tzname into
5241 update_vars.
5242 (__tz_compute): Renamed from tz_compute. Take additional parameters.
5243 (__tz_convert): Updating of tm_isdst, tm_zone, and tm_gmtoff now
5244 happens in __tz_compute.
5245 * time/tzfile.c (__tzfile_read): Also read TZ string.
5246 (find_transition): Fold into __tzfile_compute.
5247 (__tzfile_compute): For times beyond the last transition try to
5248 use the TZ string.
5249 * timezone/tst-timezone.c: Information in daylight and tzname does
5250 change for Asia/Tokyo timezone with more concrete information.
5251 Remove the test.
5252
5253 * include/stdio.h: Add libc_hidden_proto for ftello.
5254 * libio/ftello.c: Add libc_hidden_def.
5255
89dc9d4c
UD
5256 [BZ #1140]
5257 * time/tzfile.c (__tzfile_compute): Compute tzname[] values based
5258 on the specified time and not the last entries in the file. Move
5259 code to determine tzname[] to...
5260 (find_transition): ...here. Add ugly guess for times before the
5261 first transition.
5262
f7140274
UD
52632007-10-13 Ulrich Drepper <drepper@redhat.com>
5264
cfca0aa3
UD
5265 [BZ #3195]
5266 * nscd/nscd_getai.c (__nscd_getai): Set errno to 0 in case we found
5267 no entry.
5268 * nscd/nscd_getgr.c (nscd_getgr_r): Likewise.
5269 * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
5270 * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
5271 * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
5272
43d3e6bd
UD
5273 * nscd/nscd_getgr_r.c (nscd_getgr_r): Optimize a bit: use simpler
5274 read mechanism when there are no group members and avoid no-op
5275 read syscall in this case.
5276
f7140274
UD
5277 [BZ #3242]
5278 * nscd/nscd_helper.c (wait_on_socket): Take timeout as parameter.
5279 (__readall): If reading failed due to EAGAIN error wait a bit
5280 and possibly try again.
5281 (__readvall): Likewise.
5282
656f02ce
UD
52832007-10-13 Bruno Haible <bruno@clisp.org>
5284
5285 * intl/dcigettext.c (_nl_find_msg): Unlock the conversions_lock
5286 when we cannot recode the message.
5287
0ea49677
UD
52882007-10-13 Ulrich Drepper <drepper@redhat.com>
5289
5290 [BZ #4359]
5291 * libio/__freading.c (__freading): Don't return true for
ed36f224
UD
5292 write-only streams. For read/write streams, check whether we
5293 performed a read operation already.
7e39d802
UD
5294 * libio/Makefile (tests): Add tst-ext2.
5295 * libio/tst-ext2.c: New file.
0ea49677 5296
78a9b2dc
UD
52972007-10-12 Ulrich Drepper <drepper@redhat.com>
5298
fab1a490
UD
5299 * locale/programs/repertoire.c (repertoire_read): Always free
5300 memory for repertoire file name [Coverity CID 270].
5301
78a9b2dc
UD
5302 * elf/cache.c (save_aux_cache): Free memory allocated for
5303 temporary file name [Coverity CID 267].
5304
29d49a1a
JJ
53052007-10-12 Jakub Jelinek <jakub@redhat.com>
5306
5307 * misc/Makefile (headers): Add bits/error.h.
5308
d074d36d
UD
53092007-10-12 Ulrich Drepper <drepper@redhat.com>
5310
b7d1c5fa
UD
5311 * posix/fnmatch_loop.c: Take rule index returned as part of
5312 findidx return value into account when accessing weights.
5313 * posix/regcomp.c: Likewise.
5314 * posix/regexec.c: Likewise.
5315
d074d36d
UD
5316 * locale/programs/ld-collate.c (collate_read): Optimize a bit.
5317 (skip_to): Fix problems with parameter of elifdef/elifndef.
5318
26a51060
UD
53192007-10-11 Ulrich Drepper <drepper@redhat.com>
5320
5321 * iconv/gconv_simple.c: Add some branch prediction.
5322
6dd3748b
UD
53232007-10-12 Jakub Jelinek <jakub@redhat.com>
5324
5325 * locale/programs/ld-collate.c (collate_read): If ignore_content
5326 and nowtok is tok_define, eat any tok_eol tokens.
5327
d0b5557d
JJ
53282007-10-11 Jakub Jelinek <jakub@redhat.com>
5329
5330 * sysdeps/gnu/netinet/tcp.h: Include sys/socket.h if __USE_MISC.
5331 (struct tcp_md5sig): Change tcpm_addr type to struct sockaddr_storage.
5332
5333 * inet/netinet/in.h: Don't include bits/socket.h.
5334 * sysdeps/unix/sysv/linux/bits/socket.h: Only check _SYS_SOCKET_H
5335 macro.
5336 * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Likewise.
5337
3a054d7a
UD
53382007-10-10 Ulrich Drepper <drepper@redhat.com>
5339
5340 * locale/programs/locfile-token.h: Remove tok_elif, add tok_elifdef
5341 and tok_elifndef.
5342 * locale/programs/locfile-kw.gperf: Likewise.
5343 * locale/programs/ld-collate.c: Implement primitive preprocessor.
5344
c06b7169
UD
53452007-10-10 Jakub Jelinek <jakub@redhat.com>
5346
5347 * stdio-common/printf-parse.h: Include string.h and wchar.h.
5348 (__find_specwc): Change into __extern_always_inline function.
5349 (__find_specmb): Likewise. Remove ps argument. Use __strchrnul.
5350 (__parse_one_specmb): Remove ps argument.
5351 * stdio-common/vfprintf.c (vfprintf): Remove mbstate variable.
5352 Adjust __find_specmb and __parse_one_specmb callers.
5353 * stdio-common/printf-prs.c (parse_printf_format): Likewise.
5354 * stdio-common/printf-parsemb.c (__find_specwc, __find_specmb):
5355 Removed.
5356 (__parse_one_specmb): Remove ps argument, adjust __find_specmb
5357 caller.
5358
5a01ab7b
UD
53592007-10-09 Ulrich Drepper <drepper@redhat.com>
5360
5361 * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Work around problem
5362 with some Pentium Ds.
5363
e3f8e049
UD
53642007-10-08 Ulrich Drepper <drepper@redhat.com>
5365
5366 * sysdeps/unix/sysv/linux/eventfd_read.c (eventfd_read): Use
5367 __read not read.
5368 * sysdeps/unix/sysv/linux/eventfd_write.c (eventfd_write): Use
5369 __write not write.
5370
a1a363d2
UD
53712007-10-07 Ulrich Drepper <drepper@redhat.com>
5372
a1160714
UD
5373 [BZ #181]
5374 * locale/C-time.c: Set week_1stday data to 19971201.
659a9013
UD
5375 * locale/programs/ld-time.c (time_finish): Default for
5376 first_workday is Monday.
a1160714 5377
bb27a6eb
UD
5378 [BZ #2633]
5379 * wcsmbs/wchar.h: Move many C99 functions into std namespace.
5380
c8d48fae
UD
5381 [BZ #5103]
5382 * posix/glob.c (glob): Recognize patterns starting \/.
5383 * posix/tst-gnuglob.c (find_file): Handle absolute path names.
5384 (main): Add test for pattern starting \/.
5385
a1a363d2
UD
5386 * misc/error.h: Use __const instead of const.
5387 * misc/bits/error.h: Likewise.
5388
53892007-10-07 Andreas Jaeger <aj@suse.de>
5390
5391 * include/bits/error.h: New file.
5392
5393 * misc/bits/error.h (error_at_line): Fix prototype.
5394
71894681
UD
53952007-10-06 Ulrich Drepper <drepper@redhat.com>
5396
a6fa5328
UD
5397 [BZ #3924]
5398 * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix a few
5399 more little bugs in creating the stack frame when pltexit has to
5400 be called.
5401
8c7661bc 5402 * nscd/nscd_helper.c (__nscd_cache_search): Prevent endless loops.
50607309 5403 * nscd/connections.c (verify_persistent_db): Recognize circular lists.
8c7661bc 5404
c039eedd
UD
5405 [BZ #4407]
5406 * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Fix *signgamp for -0.0.
5407 * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
5408 * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
5409 * math/libm-test.inc: Add test for this case.
5410
71894681
UD
5411 [BZ #5010]
5412 * sunrpc/svc.c (struct svc_callout): Add sc_mapped element.
5413 (svc_register): Initialize sc_mapped. Set to TRUE if call to
5414 map service succeeded.
5415 (svc_is_mapped): New function.
5416 (svc_unregister): Use it before trying to unmap service.
5417
34c2c092
UD
54182007-10-05 Ulrich Drepper <drepper@redhat.com>
5419
d10737e4
UD
5420 * timezone/zic.c: Update from tzcode2007h.
5421
5422 [BZ #5063]
5423 * timezone/africa: Update from tzdata2007h.
5424 * timezone/antarctica: Likewise.
5425 * timezone/asia: Likewise.
5426 * timezone/australasia: Likewise.
5427 * timezone/europe: Likewise.
5428 * timezone/leapseconds: Likewise.
5429 * timezone/northamerica: Likewise.
5430 * timezone/southamerica: Likewise.
5431 * timzeone/zone.tab: Likewise.
5432
0304f168
UD
5433 [BZ #5104]
5434 * elf/do-lookup.h (do_lookup_x): Don't ignore STT_COMMON symbols.
5435
a83b5649
UD
5436 [BZ #5113]
5437 * string/bits/string2.h (__strdup): Cast parameters to calloc to
5438 avoid warning with -Wconversion.
5439 (__strndup): Likewise.
c039eedd 5440 Half the patch by Christian Iseli <christian.iseli@licr.org>.
a83b5649 5441
3e6ce4d7
UD
5442 [BZ #5112]
5443 * nscd/connections.c (restart): Don't resync if database is
5444 disabled. Patch mostly by Brian De Wolf <bldewolf@csupomona.edu>.
5445
8e351378
UD
5446 * sysdeps/gnu/netinet/tcp.h: Define TCP_MD5SIG, TCP_MD5SIG_MAXKEYLEN,
5447 struct tcp_md5sig. Extend struct tcp_info according to recent kernels.
5448
5449 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add eventfd,
5450 evetnfd_read, eventfd_write.
5451 * sysdeps/unix/sysv/linux/eventfd.c: New file.
5452 * sysdeps/unix/sysv/linux/eventfd_read.c: New file.
5453 * sysdeps/unix/sysv/linux/eventfd_write.c: New file.
5454 * sysdeps/unix/sysv/linux/sys/eventfd.h: New file.
d10737e4 5455 * sysdeps/unix/sysv/linux/Versions: Export eventfd, eventfd_read,
8e351378
UD
5456 eventfd_write for GLIBC_2.7.
5457
34c2c092
UD
5458 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add signalfd.
5459 * sysdeps/unix/sysv/linux/signalfd.c: New file.
5460 * sysdeps/unix/sysv/linux/sys/signalfd.h: New file.
5461 * sysdeps/unix/sysv/linux/Versions: Export signalfd for GLIBC_2.7.
5462
6789aaaa 54632007-10-04 Jakub Jelinek <jakub@redhat.com>
375d9429
UD
5464
5465 * stdlib/msort.c: Include stdint.h.
5466 (struct msort_param): New type.
5467 (msort_with_tmp): Use struct msort_param pointer for unchanging
5468 parameters. Add optimized handling for several common sizes
5469 and indirect sorting mode.
5470 (qsort): Adjust msort_with_tmp callers. For big S use indirect
5471 sorting.
5472 Suggested by Belazougui Djamel .
5473
5474 * stdlib/Makefile (tests): Add tst-qsort2.
5475 * stdlib/tst-qsort2.c: New test.
5476
b80bfc8b
UD
54772007-10-04 Ulrich Drepper <drepper@redhat.com>
5478
174420d2
UD
5479 * login/login_tty.c (login_tty): The Linux kernel can return EBUSY
5480 for dup2 in case another thread races with the current one. Retry
5481 in this case.
5482
b80bfc8b
UD
5483 * misc/error.h: Remove support for use outside of libc. We have to
5484 include <features.h> now. Include <bits/error.h> if possible.
5485 * misc/bits/error.h: New file.
5486
6789aaaa 54872007-10-03 Jakub Jelinek <jakub@redhat.com>
ee868c89 5488
e5dd2178
UD
5489 * string/bits/string3.h (memcpy, memmove, mempcpy, memset, bcopy,
5490 bzero, strcpy, stpcpy, strncpy, strcat, strncat): Use
5491 __extern_always_inline functions unconditionally, drop macros.
5492
ac97dec1
UD
5493 * misc/sys/cdefs.h (__REDIRECT_LDBL, __REDIRECT_NTH_LDBL): New macros.
5494 * wcsmbs/bits/wchar2.h (__swprintf_alias, __vswprintf_alias): Use
5495 __REDIRECT_NTH_LDBL macro rather than __REDIRECT_NTH.
5496
ee868c89
UD
5497 * misc/sys/cdefs.h (__extern_always_inline): For GCC 4.3+
5498 add __artificial__ attribute.
5499
80e069e0
UD
55002007-10-02 Ulrich Drepper <drepper@redhat.com>
5501
6e682cf5
UD
5502 * string/strcoll_l.c (STRCOLL): Correct handling of switching from
5503 backward to forward direction.
5504
90241a20
UD
5505 * string/strcoll_l.c (STRCOLL): Correct test for alloca use.
5506
80e069e0
UD
5507 [BZ #645]
5508 * locale/programs/ld-collate.c (collate_finish): Compare against last
5509 used section which is known to have rules defined.
5510 (collate_read): After order_start, correctly record order of sections
5511 and queue sections up.
5512
035ef8d7
UD
55132007-10-01 Ulrich Drepper <drepper@redhat.com>
5514
95bddc0c
UD
5515 [BZ #5071]
5516 * malloc/malloc.c (mremap_chunk): Avoid resizing of new block has
5517 the same number of pages.
5518 Patch by Tomash Brechko <tomash.brechko@gmail.com>.
5519
c8caf089
UD
5520 * locale/programs/ld-collate.c (collate_read): After initial copy
5521 statement, continue in state 0.
5522
035ef8d7
UD
5523 * include/stdio_ext.h (__fsetlocking): Define as macro.
5524
592a95ee
UD
55252007-09-30 Ulrich Drepper <drepper@redhat.com>
5526
56ebeb41
UD
5527 * locale/programs/ld-collate.c (collate_finish): Compare all bytes
5528 of section order.
5529
592a95ee
UD
5530 * po/pt_BR.po: Fix typo.
5531
6c522e21
UD
55322007-09-29 Ulrich Drepper <drepper@redhat.com>
5533
8ad5c3cd
UD
5534 * iconvdata/Makefile (modules): Add ISO8859-9E.
5535 (distribute): Add iso8859-9e.c.
5536 (gen-8bit-gap-modules): Add iso8859-9e.
5537 * iconvdata/iso8859-9e.c: New file.
5538 * iconvdata/gconv-modules: Add entries for ISO-8859-9E.
5539 * iconvdata/TESTS: Likewise.
5540 * iconvdata/tst-tables.sh: Likewise.
5541
5542 * iconvdata/koi8-r.c (HAS_HOLES): Define to 0.
5543
6c522e21
UD
5544 * locale/iso-639.def: Add several new entries.
5545
385b4cf4
UD
55462007-09-24 Jakub Jelinek <jakub@redhat.com>
5547
5548 * sysdeps/generic/ldsodefs.h (struct dl_scope_free_list): Store
5549 void * pointers instead of struct link_map **.
5550 (_dl_scope_free): Change argument type to void *.
5551 * include/link.h (struct link_map): Change type of l_reldeps
5552 to struct link_map_reldeps, move l_reldepsact into that
5553 struct too.
5554 * elf/dl-deps.c: Include atomic.h.
5555 (_dl_map_object_deps): Only change l->l_initfini when it is
5556 fully populated, use _dl_scope_free for freeing it. Optimize
5557 removal of libs from reldeps by using l_reserved flag, when
5558 some removal is needed, allocate a new list instead of
5559 reallocating and free the old with _dl_scope_free. Adjust
5560 for l_reldeps and l_reldepsact changes.
5561 * elf/dl-lookup.c (add_dependency): Likewise. Reorganize to allow
5562 searching in l_initfini and l_reldeps without holding dl_load_lock.
5563 * elf/dl-fini.c (_dl_sort_fini): Adjust for l_reldeps and
5564 l_reldepsact changes.
5565 * elf/dl-close.c (_dl_close_worker): Likewise.
5566 * elf/dl-open.c (_dl_scope_free): Change argument type to void *.
5567
90bf831b
UD
55682007-09-28 Ulrich Drepper <drepper@redhat.com>
5569
5570 * iconvdata/Makefile (modules): Add KOI8-RU.
5571 (distribute): Add koi8-ru.c.
5572 (gen-8bit-gap-modules): Add koi8-ru.
5573 * iconvdata/koi8-ru.c: New file.
5574 * iconvdata/gconv-modules: Add entries for KOI8-RU.
5575 * iconvdata/TESTS: Likewise.
5576 * iconvdata/tst-tables.sh: Likewise.
5577
5578 * iconvdata/koi8-r.c (HAS_HOLES): Define to 0.
5579
d6cd6bf4
UD
55802007-09-26 Jakub Jelinek <jakub@redhat.com>
5581
5582 * misc/sys/cdefs.h (__warndecl, __errordecl): For GCC 4.3+ define
5583 with __warning__/__error__ attributes.
5584 (__warnattr): Define.
5585 * stdlib/bits/stdlib.h (__realpath_chk_warn, __ptsname_r_chk_warn,
5586 __mbstowcs_chk_warn, __wcstombs_chk_warn): New aliases with
5587 __warnattr.
5588 (realpath, ptsname_r, mbstowcs, wcstombs): Call __*_chk_warn instead
5589 of __*_chk if compile time detectable overflow is found.
5590 * libio/bits/stdio2.h (__fgets_chk_warn, __fread_chk_warn,
5591 __fgets_unlocked_chk_warn, __fread_unlocked_chk_warn): New aliases
5592 with __warnattr.
5593 (fgets, fread, fgets_unlocked, fread_unlocked): Call __*_chk_warn
5594 instead of __*_chk if compile time detectable overflow is found.
5595 (__gets_alias): Rename to...
5596 (__gets_warn): ... this. Add __warnattr.
5597 (gets): Call __gets_warn instead of __gets_alias.
5598 * socket/bits/socket2.h (__recv_chk_warn, __recvfrom_chk_warn): New
5599 aliases with __warnattr.
5600 (recv, recvfrom): Call __*_chk_warn instead of __*_chk if compile
5601 time detectable overflow is found.
5602 * posix/bits/unistd.h (__read_chk_warn, __pread_chk_warn,
5603 __pread64_chk_warn, __readlink_chk_warn, __readlinkat_chk_warn,
5604 __getcwd_chk_warn, __confstr_chk_warn, __getgroups_chk_warn,
5605 __ttyname_r_chk_warn, __getlogin_r_chk_warn, __gethostname_chk_warn,
5606 __getdomainname_chk_warn): New aliases with __warnattr.
5607 (read, pread, pread64, readlink, readlinkat, getcwd, confstr,
5608 getgroups, ttyname_r, getlogin_r, gethostname, getdomainname): Call
5609 __*_chk_warn instead of __*_chk if compile time detectable overflow
5610 is found.
5611 (__getgroups_chk): Rename argument to __listlen from listlen.
5612 (__getwd_alias): Rename to...
5613 (__getwd_warn): ... this. Add __warnattr.
5614 (getwd): Call __getwd_warn instead of __getwd_alias.
5615 * wcsmbs/bits/wchar2.h (__wmemcpy_chk_warn, __wmemmove_chk_warn,
5616 __wmempcpy_chk_warn, __wmemset_chk_warn, __wcsncpy_chk_warn,
5617 __wcpncpy_chk_warn, __fgetws_chk_warn, __fgetws_unlocked_chk_warn,
5618 __mbsrtowcs_chk_warn, __wcsrtombs_chk_warn, __mbsnrtowcs_chk_warn,
5619 __wcsnrtombs_chk_warn): New aliases with __warnattr.
5620 (wmemcpy, wmemmove, wmempcpy, wmemset, mbsrtowcs, wcsrtombs,
5621 mbsnrtowcs, wcsnrtombs): Call __*_chk_warn instead of __*_chk if
5622 compile time detectable overflow is found.
5623 (wcsncpy, wcpncpy): Likewise. For constant __n fix check whether
5624 to use __*_chk or not.
5625 (fgetws, fgetws_unlocked): Divide __bos by sizeof (wchar_t), both
5626 in comparisons which function should be called and in __*_chk*
5627 arguments. Call __*_chk_warn instead of __*_chk if compile time
5628 detectable overflow is found.
5629 (swprintf, vswprintf): Divide __bos by sizeof (wchar_t) in
5630 __*_chk argument.
5631 * debug/tst-chk1.c (do_test): Add a few more tests.
5632
408cfca0
UD
56332007-09-24 Ulrich Drepper <drepper@redhat.com>
5634
5635 [BZ #5058]
5636 * intl/gettextP.h (struct loaded_domain): Add conversions_lock member.
5637 * intl/loadmsgcat.c (_nl_load_domain): Initialize conversions_lock.
5638 (_nl_unload_domain): Finalize conversions_lock.
5639 * intl/dcigettext.c (_nl_find_msg): Take conversions_lock before
5640 handling table of known conversions.
5641
e6eec9ce
JJ
56422007-09-24 Jakub Jelinek <jakub@redhat.com>
5643
5644 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Use
5645 close_not_cancel_no_status instead of close.
5646
a532a41d
UD
56472007-09-13 Aurelien Jarno <aurelien@aurel32.net>
5648
682268ef 5649 [BZ #5028]
408cfca0 5650 * posix/regcomp.c (lookup_collation_sequence_value): Check that
a532a41d
UD
5651 nrules != 0 for multibyte chars.
5652
dec9ed9e
UD
56532007-09-23 Ulrich Drepper <drepper@redhat.com>
5654
91633816
UD
5655 * resolv/ns_print.c (ns_sprintrrf): Handle ns_t_a6 and ns_t_opt.
5656 Provide better error message in case the type is unknown.
5657
9cc198f6
UD
5658 [BZ #4963]
5659 * wcsmbs/wcsnlen.c: Don't reference before checking the length.
5660 * string/stratcliff.c: Make usable to test wide char functions.
5661 * wcsmbs/wcsatcliff.c: New file.
5662 * wcsmbs/Makefiel (tests): Add wcsatcliff.
5663
27f3d446
UD
5664 [BZ #4972]
5665 * iconvdata/Makefile (modules): Add MAC-CENTRALEUROPE.
5666 (distribute): Add mac-centraleurope.c.
5667 (gen-8bit-gap-modules): Add mac-centraleurope.
5668 * iconvdata/mac-centraleurope.c: New file.
5669 * iconvdata/gconv-modules: Add entries for MAC-CENTRALEUROPE.
5670 * iconvdata/TESTS: Likewise.
5671 * iconvdata/tst-tables.sh: Likewise.
5672
dec9ed9e
UD
5673 [BZ #5043]
5674 * iconv/iconv_open.c (iconv_open): For large codeset names use malloc.
5675
0435403c
UD
56762007-09-21 Ulrich Drepper <drepper@redhat.com>
5677
5678 * sysdeps/x86_64/cacheinfo.c (__x86_64_data_cache_size_half): Renamed
5679 from __x86_64_core_cache_size_half.
5680 (init_cacheinfo): Compute shared cache size for AMD processors with
5681 shared L3 correctly.
5682 * sysdeps/x86_64/memcpy.S: Adjust for __x86_64_data_cache_size_half
5683 name change.
5684 Patch in large parts by Evandro Menezes.
5685
c3266dc0
UD
56862007-09-19 Ulrich Drepper <drepper@redhat.com>
5687
715899d1
UD
5688 * elf/dl-lookup.c (add_dependency): Handle failing memory
5689 allocation for dependency list. Remove unnecessary check.
5690
e1db0493
UD
5691 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid unnecessary
5692 open/close when determining source addresses.
5693
c3266dc0
UD
5694 * crypt/Makefile (libcrypt-routines): Add sha256-crypt, sha256,
5695 sha512-crypt, and sha512.
5696 (tests): Add sha256test, sha256c-test, sha512test, and sha512c-test.
5697 (distribute): Add sha256.h and sha512.h.
5698 * crypt/crypt-entry.c (crypt): Recognize the new $5$ and $6$ prefixes
5699 and call the appropriate code.
5700 * crypt/sha256-crypt.c: New file.
5701 * crypt/sha256.c: New file.
5702 * crypt/sha256.h: New file.
5703 * crypt/sha256c-test.c: New file.
5704 * crypt/sha256test.c: New file.
5705 * crypt/sha512-crypt.c: New file.
5706 * crypt/sha512.c: New file.
5707 * crypt/sha512.h: New file.
5708 * crypt/sha512c-test.c: New file.
5709 * crypt/sha512test.c: New file.
5710
ddf51ecb
JJ
57112007-09-19 Jakub Jelinek <jakub@redhat.com>
5712
5713 * misc/bits/syslog.h (syslog): Remove extraneous argument from
5714 the inline, pass __USE_FORTIFY_LEVEL - 1 as second argument to
5715 __syslog_chk.
5716
b90395e6
UD
57172007-09-18 Jakub Jelinek <jakub@redhat.com>
5718
76c0bea7
JJ
5719 * locale/programs/charmap-dir.c (charmap_aliases): Use %ms instead of
5720 %as in fscanf format strings.
5721
00680568
JJ
5722 * sysdeps/sparc/sparc32/elf/start.S: Remove cfi_* markup.
5723 * sysdeps/sparc/sparc64/elf/start.S: Likewise.
c3266dc0
UD
5724 * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__thread_start):
5725 Likewise.
5726 * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__thread_start):
5727 Likewise.
00680568 5728
b90395e6
UD
5729 * sysdeps/generic/ldsodefs.h (DL_LOOKUP_GSCOPE_LOCK): New definition.
5730 * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Or in
5731 DL_LOOKUP_GSCOPE_LOCK into flags after THREAD_GSCOPE_SET_FLAG ().
5732 * elf/dl-sym.c (do_sym): Likewise.
5733 * include/link.h (struct link_map): Add l_serial field.
5734 * elf/dl-object.c (_dl_new_object): Initialize l_serial.
5735 * elf/dl-lookup.c (add_dependency): Add flags argument.
5736 Remember map->l_serial, if DL_LOOKUP_GSCOPE_LOCK is among
5737 flags, use THREAD_GSCOPE_RESET_FLAG before and
5738 THREAD_GSCOPE_SET_FLAG after
5739 __rtld_lock_lock_recursive (GL(dl_load_lock)) to avoid deadlock.
5740 Don't dereference map until it has been found on some list.
5741 If map->l_serial changed, return -1.
5742
874aa523
UD
57432007-09-17 Jakub Jelinek <jakub@redhat.com>
5744
5745 * include/stdio.h (__isoc99_fscanf, __isoc99_scanf,
5746 __isoc99_sscanf, __isoc99_vscanf): New prototypes.
5747 (__isoc99_vsscanf, __isoc99_vfscanf): New prototypes, add
5748 libc_hidden_proto.
5749 * include/wchar.h (__isoc99_fwscanf, __isoc99_wscanf,
5750 __isoc99_swscanf, __isoc99_vwscanf): New prototypes.
5751 (__isoc99_vswscanf, __isoc99_vfwscanf): New prototypes,
5752 add libc_hidden_proto.
5753 * libio/stdio.h (fscanf, scanf, sscanf, vfscanf, vscanf,
5754 vsscanf): Redirect to __isoc99_* if strict ISO C99 or POSIX
5755 conformance requested.
5756 * wcsmbs/wchar.h (fwscanf, wscanf, swscanf, vfwscanf, vwscanf,
5757 vswscanf): Redirect to __isoc99_* if strict ISO C99 or POSIX
5758 conformance requested.
5759 * libio/bits/stdio-ldbl.h (fscanf, scanf, sscanf, vfscanf, vscanf,
5760 vsscanf): Redirect to __nldbl___isoc99_* if strict ISO C99 or POSIX
5761 conformance requested.
5762 * wcsmbs/bits/wchar-ldbl.h (fwscanf, wscanf, swscanf, vfwscanf,
5763 vwscanf, vswscanf): Redirect to __nldbl___isoc99_* if strict
5764 ISO C99 or POSIX conformance requested.
5765 * stdio-common/Versions (libc): Export __isoc99_scanf@@GLIBC_2.7,
5766 __isoc99_vscanf@@GLIBC_2.7, __isoc99_fscanf@@GLIBC_2.7,
5767 __isoc99_vfscanf@@GLIBC_2.7, __isoc99_sscanf@@GLIBC_2.7
5768 and __isoc99_vsscanf@@GLIBC_2.7.
5769 * stdio-common/Makefile (routines): Add isoc99_scanf, isoc99_vscanf,
5770 isoc99_fscanf, isoc99_vfscanf, isoc99_sscanf and isoc99_vsscanf.
5771 (tests): Add scanf14.
5772 (CFLAGS-vfprintf.c, CFLAGS-fprintf.c, CFLAGS-printf.c,
5773 CFLAGS-vfwprintf.c, CFLAGS-vfscanf.c, CFLAGS-vfwscanf.c,
5774 CFLAGS-fscanf.c, CFLAGS-scanf.c, CFLAGS-isoc99_vfscanf.c,
5775 CFLAGS-isoc99_vscanf.c, CFLAGS-isoc99_fscanf.c,
5776 CFLAGS-isoc99_scanf.c): Add $(exceptions).
5777 (CFLAGS-scanf15.c): Add various -I paths to prevent the compiler
5778 from using internal headers.
5779 * wcsmbs/Versions (libc): Export __isoc99_wscanf@@GLIBC_2.7,
5780 __isoc99_vwscanf@@GLIBC_2.7, __isoc99_fwscanf@@GLIBC_2.7,
5781 __isoc99_vfwscanf@@GLIBC_2.7, __isoc99_swscanf@@GLIBC_2.7
5782 and __isoc99_vswscanf@@GLIBC_2.7.
5783 * wcsmbs/Makefile (routines): Add isoc99_wscanf, isoc99_vwscanf,
5784 isoc99_fwscanf, isoc99_vfwscanf, isoc99_swscanf and isoc99_vswscanf.
5785 (CFLAGS-isoc99_wscanf.c, CFLAGS-isoc99_fwscanf.c,
5786 CFLAGS-isoc99_vwscanf.c, CFLAGS-isoc99_vfwscanf.c): Add $(exceptions).
5787 (CPPFLAGS): Add -D_IO_MTSAFE_IO if needed.
5788 * stdio-common/isoc99_scanf.c: New file.
5789 * stdio-common/isoc99_vsscanf.c: New file.
5790 * stdio-common/isoc99_vscanf.c: New file.
5791 * stdio-common/isoc99_vfscanf.c: New file.
5792 * stdio-common/isoc99_fscanf.c: New file.
5793 * stdio-common/isoc99_sscanf.c: New file.
5794 * wcsmbs/isoc99_fwscanf.c: New file.
5795 * wcsmbs/isoc99_vswscanf.c: New file.
5796 * wcsmbs/isoc99_swscanf.c: New file.
5797 * wcsmbs/isoc99_wscanf.c: New file.
5798 * wcsmbs/isoc99_vwscanf.c: New file.
5799 * wcsmbs/isoc99_vfwscanf.c: New file.
5800 * libio/libio.h (_IO_FLAGS2_SCANF_STD): Define.
5801 * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): Also
5802 clear _IO_FLAGS2_SCANF_STD bit from _flags2.
5803 * stdio-common/vfscanf.c (_IO_vfscanf_internal): Don't
5804 handle %as, %aS and %a[ if _IO_FLAGS2_SCANF_STD is set in _flags2.
5805 * stdio-common/scanf14.c: New test.
5806 * stdio-common/scanf15.c: New test.
5807 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add
5808 isoc99_scanf, isoc99_fscanf, isoc99_sscanf,
5809 isoc99_vscanf, isoc99_vfscanf, isoc99_vsscanf,
5810 isoc99_wscanf, isoc99_fwscanf, isoc99_swscanf,
5811 isoc99_vwscanf, isoc99_vfwscanf and isoc99_vswscanf.
5812 * sysdeps/ieee754/ldbl-opt/Versions (libc): Export
5813 __nldbl___isoc99_scanf@@GLIBC_2.7,
5814 __nldbl___isoc99_fscanf@@GLIBC_2.7,
5815 __nldbl___isoc99_sscanf@@GLIBC_2.7,
5816 __nldbl___isoc99_vscanf@@GLIBC_2.7,
5817 __nldbl___isoc99_vfscanf@@GLIBC_2.7,
5818 __nldbl___isoc99_vsscanf@@GLIBC_2.7,
5819 __nldbl___isoc99_wscanf@@GLIBC_2.7,
5820 __nldbl___isoc99_fwscanf@@GLIBC_2.7,
5821 __nldbl___isoc99_swscanf@@GLIBC_2.7,
5822 __nldbl___isoc99_vwscanf@@GLIBC_2.7,
5823 __nldbl___isoc99_vfwscanf@@GLIBC_2.7
5824 and __nldbl___isoc99_vswscanf@@GLIBC_2.7.
5825 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__isoc99_scanf,
5826 __isoc99_fscanf, __isoc99_sscanf, __isoc99_vscanf,
5827 __isoc99_vfscanf, __isoc99_vsscanf, __isoc99_wscanf,
5828 __isoc99_fwscanf, __isoc99_swscanf, __isoc99_vwscanf,
5829 __isoc99_vfwscanf, __isoc99_vswscanf): Add NLDBL_DECL.
5830 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
5831 (__nldbl___isoc99_scanf, __nldbl___isoc99_fscanf,
5832 __nldbl___isoc99_sscanf, __nldbl___isoc99_vscanf,
5833 __nldbl___isoc99_vfscanf, __nldbl___isoc99_vsscanf,
5834 __nldbl___isoc99_wscanf, __nldbl___isoc99_fwscanf,
5835 __nldbl___isoc99_swscanf, __nldbl___isoc99_vwscanf,
5836 __nldbl___isoc99_vfwscanf, __nldbl___isoc99_vswscanf): New
5837 functions.
5838 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vfscanf.c: New file.
5839 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_swscanf.c: New file.
5840 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vwscanf.c: New file.
5841 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_wscanf.c: New file.
5842 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_scanf.c: New file.
5843 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_sscanf.c: New file.
5844 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vsscanf.c: New file.
5845 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_fwscanf.c: New file.
5846 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vfwscanf.c: New file.
5847 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vswscanf.c: New file.
5848 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vscanf.c: New file.
5849 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_fscanf.c: New file.
5850
5851 * stdio-common/Makefile (tests): Add scanf13.
5852 (scanf13-ENV): New.
5853 * stdio-common/vfscanf.c (_IO_vfscanf_internal): Handle
5854 m modifier followed by l.
5855 (STRING_ARG): Add width argument.
5856 (_IO_vfscanf_internal) <case L_('c')>: Handle %mc.
5857 <case L_('C')>: Handle %mlc and %mC.
5858 <case L_('s'), case L_('S'), case L_('[')>: Adjust STRING_ARG
5859 arguments.
5860 * stdio-common/scanf13.c: New test.
5861
5862 * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): Clear
5863 the _IO_FLAGS2_FORTIFY bit from _flags2 rather than _flags.
5864
883f7943
UD
58652007-09-18 Ulrich Drepper <drepper@redhat.com>
5866
5867 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Correct return value
874aa523 5868 type and __THROW marker of splice, vmsplice, and tee.
883f7943
UD
5869 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
5870 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
5871 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
5872 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
5873 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
5874 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
5875 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
5876 * sysdeps/unix/sysv/linux/syscalls.list: Mark splice, vmsplice, and tee
5877 as cancellation points.
5878
3524efe0
UD
58792003-11-01 Daniel Jacobowitz <dan@debian.org>
5880
5881 * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_discover_osversion): Don't
5882 parse more than three parts of the version number.
5883
267c54dc
UD
58842007-09-15 Ulrich Drepper <drepper@redhat.com>
5885
5886 * stdio-common/vfscanf.c (_IO_vfwscanf): Add support for 'm'
5887 modifier. Patch by Jakub Jelinek.
5888
5e17d6b7
UD
58892007-08-26 Jakub Jelinek <jakub@redhat.com>
5890
5891 * sysdeps/unix/sysv/linux/i386/Makefile (sysdep_routines): Add
5892 call_fallocate in misc subdir.
5893 * sysdeps/unix/sysv/linux/i386/call_fallocate.S: New file.
5894 * sysdeps/unix/sysv/linux/i386/syscalls.list (fallocate64): Remove.
5895 * sysdeps/unix/sysv/linux/i386/posix_fallocate.c: Use __call_fallocate
5896 instead of __fallocate64.
5897 * sysdeps/unix/sysv/linux/i386/posix_fallocate64.c: Likewise.
5898
3a50811c
UD
58992007-09-15 Jakub Jelinek <jakub@redhat.com>
5900
5901 * rt/Versions (librt): Export __mq_open_2@@GLIBC_2.7.
5902 * rt/Makefile (headers): Add bits/mqueue2.h.
5903 * rt/mqueue.h: Include bits/mqueue2.h if -D_FORTIFY_SOURCE=2,
5904 optimizing with GCC and __va_arg_pack_len is defined.
5905 * rt/bits/mqueue2.h: New file.
5906 * rt/mq_open.c (__mq_open): Renamed from mq_open.
5907 (mq_open): New strong_alias.
5908 (__mq_open_2): New function.
5909 * sysdeps/unix/sysv/linux/mq_open.c (__mq_open): Renamed from mq_open.
5910 (mq_open): New strong_alias.
5911 (__mq_open_2): New function.
5912 * debug/Versions (libc): Export __fortify_fail@@GLIBC_PRIVATE.
5913 * Versions.def (librt): Add GLIBC_2.7 version.
5914 * debug/fortify_fail.c (__fortify_fail): Add libc_hidden_def.
5915 * include/stdio.h (__fortify_fail): Add libc_hidden_proto.
5916
5917 * misc/sys/cdefs.h (__errordecl, __va_arg_pack_len): Define.
5918 * io/fcntl.h: Include bits/fcntl2.h when __va_arg_pack_len
5919 is defined rather than when not C++.
5920 * io/bits/fcntl2.h (__open_alias, __open64_alias, __openat_alias,
5921 __openat64_alias): New redirects.
5922 (__open_too_many_args, __open_missing_mode, __open64_too_many_args,
5923 __open64_missing_mode, __openat_too_many_args, __openat_missing_mode,
5924 __openat64_too_many_args, __openat64_missing_mode): New __errordecls.
5925 (open, open64, openat, openat64): Rewrite as __extern_always_inline
5926 functions instead of function-like macros.
5927
9bdfff60
UD
59282007-09-14 H.J. Lu <hongjiu.lu@intel.com>
5929
5930 * sysdeps/i386/i586/memcpy.S (__memcpy_chk): New definition.
5931 * sysdeps/i386/i586/mempcpy.S (__memcpy_chk): New definition.
5932 * sysdeps/i386/i586/memset.S (__memset_chk): New definition.
5933
ab905672
UD
59342007-09-15 Mike Frysinger <vapier@gentoo.org>
5935
5936 * inet/inet_net.c: Reset digit to 0 for inputs starting with "0x".
5937 * inet/tst-network.c (tests): Add edge case tests for "0", "0x", "0x0".
5938
9bd68902
RM
59392007-09-14 Mike Frysinger <vapier@gentoo.org>
5940
5941 * inet/tst-network.c: Increment ERRORS for failing tests.
5942
de1c3ebb
UD
59432007-09-07 Jakub Jelinek <jakub@redhat.com>
5944
5945 * misc/sys/cdefs.h (__va_arg_pack): Define for GCC 4.3+.
5946 * misc/bits/syslog.h (syslog): When __va_arg_pack is defined,
5947 implement as __extern_always_inline function.
5948 (vsyslog): Define as __extern_always_inline function unconditionally.
5949 * libio/bits/stdio2.h (sprintf, snprintf, printf, fprintf):
5950 When __va_arg_pack is defined, implement as __extern_always_inline
5951 functions.
5952 (vsprintf, vsnprintf, vprintf, vfprintf): Define as
5953 __extern_always_inline functions unconditionally.
5954 * libio/bits/stdio.h (vprintf): Ifdef out the inline when
5955 bits/stdio2.h will be included.
5956 * wcsmbs/bits/wchar2.h (__swprintf_alias): New redirect.
5957 (swprintf, wprintf, fwprintf): When __va_arg_pack is defined,
5958 implement as __extern_always_inline functions.
5959 (vswprintf, vwprintf, vfwprintf): Define as
5960 __extern_always_inline functions unconditionally.
5961 * debug/tst-chk1.c (do_test): Enable remaining tests for C++.
5962
59632007-09-03 Jakub Jelinek <jakub@redhat.com>
5964
5965 * misc/sys/cdefs.h (__extern_inline, __extern_always_inline): Only
5966 define in C++ for GCC 4.3+, in C++ always use __gnu_inline__
5967 attribute.
5968 * include/features.h (__USE_EXTERN_INLINES): Define only when
5969 __extern_inline is defined.
5970 * stdlib/stdlib.h: Include bits/stdlib.h when __extern_always_inline
5971 is defined instead of when not __cplusplus.
5972 * misc/sys/syslog.h: Include bits/syslog.h when __extern_always_inline
5973 is defined instead of when not __cplusplus.
5974 * socket/sys/socket.h: Include bits/socket2.h when
5975 __extern_always_inline is defined instead of when not __cplusplus.
5976 * libio/stdio.h: Include bits/stdio2.h when __extern_always_inline
5977 is defined instead of when not __cplusplus.
5978 * posix/unistd.h: Include bits/unistd.h when __extern_always_inline
5979 is defined instead of when not __cplusplus.
5980 * string/string.h: Include bits/string3.h when __extern_always_inline
5981 is defined instead of when not __cplusplus.
5982 * wcsmbs/wchar.h: Include bits/wchar2.h when __extern_always_inline
5983 is defined instead of when not __cplusplus.
5984 (btowc, wctob): Don't guard the inlines with ifndef __cplusplus.
5985 * io/fcntl.h: Don't include bits/fcntl2.h if __extern_always_inline
5986 is not defined.
5987 * misc/bits/syslog-ldbl.h: Guard *_chk stuff with
5988 defined __extern_always_inline instead of !defined __cplusplus.
5989 * libio/bits/stdio-ldbl.h: Likewise.
5990 * wcsmbs/bits/wchar-ldbl.h: Likewise.
5991 * misc/bits/syslog.h (syslog): Don't define for C++.
5992 (vsyslog): Use __extern_always_inline function for C++ instead of
5993 a macro.
5994 * libio/bits/stdio.h (__STDIO_INLINE): Define to __extern_inline
5995 whenever that macro is defined.
5996 (vprintf): Don't provide the inline for C++.
5997 (fread_unlocked, fwrite_unlocked): Don't define the macros for C++.
5998 * libio/bits/stdio2.h (sprintf, snprintf, printf, fprintf): Don't
5999 define the macros for C++.
6000 (vsprintf, vsnprintf, vprintf, vfprintf): Define as
6001 __extern_always_inline functions for C++.
6002 * io/sys/stat.h (stat, lstat, fstat, fstatat, mknod, mknodat,
6003 stat64, lstat64, fstat64, fstatat64): Don't define if not
6004 __USE_EXTERN_INLINES.
6005 * wcsmbs/bits/wchar2.h: Fix #error message.
6006 (swprintf, wprintf, fwprintf): Don't define the macros for C++.
6007 (vswprintf, vwprintf, vfwprintf): Define using
6008 __extern_always_inline functions for C++.
6009 * string/bits/string3.h: Don't #undef macros if __cplusplus.
6010 (memcpy, memmove, mempcpy, memset, bcopy, bzero, strcpy, stpcpy,
6011 strncpy, strcat, strncat): Define as __extern_always_inline
6012 functions instead of macros for C++.
6013 * math/bits/cmathcalls.h: Guard __extern_inline routines with
6014 defined __extern_inline.
6015 * sysdeps/alpha/fpu/bits/mathinline.h (__MATH_INLINE): Define
6016 to __extern_inline whenever that macro is defined.
6017 * sysdeps/ia64/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
6018 * sysdeps/i386/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
6019 * sysdeps/i386/i486/bits/string.h (__STRING_INLINE): Likewise.
6020 * sysdeps/s390/bits/string.h (__STRING_INLINE): Likewise.
6021 * sysdeps/s390/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
6022 * sysdeps/powerpc/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
6023 * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
6024 * sysdeps/sparc/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
6025 * sysdeps/unix/sysv/linux/sys/sysmacros.h (gnu_dev_major,
6026 gnu_dev_minor, gnu_dev_makedev): Remove __extern_inline from
6027 prototypes. Only provide __extern_inline routines if
6028 __USE_EXTERN_INLINES.
6029 * debug/Makefile: Add rules to build and run tst-{,lfs}chk{4,5,6}
6030 tests.
6031 * debug/tst-chk1.c (do_prepare, do_test): Allow compilation as C++.
6032 For now avoid some *printf tests in C++. Skip all testing
6033 if __USE_FORTIFY_LEVEL is defined, but __extern_always_inline macro
6034 is not.
6035 * debug/tst-chk4.cc: New file.
6036 * debug/tst-chk5.cc: New file.
6037 * debug/tst-chk6.cc: New file.
6038 * debug/tst-lfschk4.cc: New file.
6039 * debug/tst-lfschk5.cc: New file.
6040 * debug/tst-lfschk6.cc: New file.
6041 * include/wchar.h (__vfwprintf_chk, __vswprintf_chk): Avoid
6042 prototypes in C++.
6043 * include/stdio.h (__sprintf_chk, __snprintf_chk, __vsprintf_chk,
6044 __vsnprintf_chk, __printf_chk, __fprintf_chk, __vprintf_chk,
6045 __vfprintf_chk, __fgets_unlocked_chk, __fgets_chk): Likewise.
6046
b53eef9c
UD
60472007-09-13 Ulrich Drepper <drepper@redhat.com>
6048
6049 * po/cs.po: Update from translation team.
6050
af385590
RM
60512007-09-11 Roland McGrath <roland@redhat.com>
6052
6053 * posix/Makefile ($(objpfx)getconf.speclist): Make it empty if cross
6054 compiling.
6055
af2f25a1
RM
60562007-09-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
6057
6058 * sysdeps/mach/hurd/bits/ioctls.h (TAB3): New macro.
6059
94733ae0
RM
60602007-09-05 Roland McGrath <roland@redhat.com>
6061
6062 * manual/signal.texi (Signaling Another Process): Typo fix.
6063 From Karl Berry <karl@freefriends.org>.
6064
de4d8563
UD
60652007-08-29 Ulrich Drepper <drepper@redhat.com>
6066
6067 * sysdeps/unix/sysv/linux/check_pf.c (IFA_F_OPTIMISTIC): Define to
6068 zero if not defined.
6069 (make_request): Recognize optimistic addresses and treat them like
6070 deprecated addresses.
6071 Reported by Neil Horman <nhorman@redhat.com>.
6072
0adfcc05
UD
60732007-08-28 Ulrich Drepper <drepper@redhat.com>
6074
f3c54060
UD
6075 * nscd/connections.c (send_ro_fd): Also transfer file size.
6076 * nscd/nscd_helper.c (get_mapping): If nscd also transfers the
6077 file size don't call fstat.
6078
0adfcc05
UD
6079 * nscd/nscd_helper.c (get_mapping): Avoid the pread call, just go
6080 ahead and map the file. This should always be correct and we can
6081 catch problems later.
6082
3586b2b6
UD
60832007-08-28 Jakub Jelinek <jakub@redhat.com>
6084
6085 * libio/bits/stdio2.h (__fread_chk, __fread_unlocked_chk): New
6086 prototypes.
6087 (__fread_alias, __fread_unlocked_alias): New aliases.
6088 (fread): New extern inline.
6089 (fread_unlocked): Likewise. Undef macro before definition of
6090 the inline function.
6091 * debug/Makefile (routines): Add fread_chk and fread_u_chk.
6092 (CFLAGS-fread_chk.c, CFLAGS-fread_u_chk.c): Add.
6093 * debug/Versions (libc): Export __fread_chk@@GLIBC_2.7
6094 and __fread_unlocked_chk@@GLIBC_2.7.
6095 * debug/fread_chk.c: New file.
6096 * debug/fread_u_chk.c: New file.
6097 * debug/tst-chk1.c (do_test): Add fread and fread_unlocked tests.
6098
3704aa0b
RM
60992007-08-27 Jakub Jelinek <jakub@redhat.com>
6100
6101 * sysdeps/unix/sysv/linux/syscalls.list
6102 (personality): Change caller to EXTRA.
6103
80e7d6a6
UD
61042007-08-25 Ulrich Drepper <drepper@redhat.com>
6105
278bfa00
UD
6106 * iconvdata/iso-2022-kr.c (BODY): Fake initialization of array buf
6107 to keep gcc quiet.
6108 * iconvdata/iso-2022-cn.c (BODY): Likewise.
6109
a45d733c
UD
6110 * locale/programs/ld-collate.c (collate_output): Avoid warning if
6111 NDEBUG is defined.
6112
5dfeae0e
UD
6113 * Makerules: Use -p option with mkdir.
6114
8f1fe057
UD
6115 * sunrpc/key_prot.c (xdr_unixcred): Work around gcc alias warning.
6116 * nis/nis_xdr.c (_xdr_nis_server): Likewise.
bd0dcd28
UD
6117 (_xdr_directory_obj): Likewise.
6118 (xdr_entry_obj): Likewise.
6119 (xdr_group_obj): Likewise.
6120 (xdr_link_obj): Likewise.
6121 (xdr_table_obj): Likewise.
6122 (_xdr_nis_result): Likewise.
6123 (_xdr_ns_request): Likewise.
6124 (_xdr_ib_request): Likewise.
6125 (_xdr_nis_taglist): Likewise.
6126 (xdr_cback_data): Likewise.
8f1fe057 6127 * nis/yp_xdr.c (xdr_ypmaplist): Likewise.
bd0dcd28
UD
6128 (xdr_ypresp_maplist): Likewise.
6129
01339a67
UD
6130 * stdio-common/Makefile: Avoid format string warning for tst-sprint.
6131
3fa10468
UD
6132 * posix/regex_internal.h: Prevent some declarations and definitions
6133 to be seen when used in tests.
6134
ec1e04de
UD
6135 * posix/tst-rfc3484.c (__idna_to_unicode_lzlz): Initialize *OUTPUT.
6136 * posix/tst-rfc3484-2.c (__idna_to_unicode_lzlz): Likewise.
6137
7a344d1d
UD
6138 * debug/Makefile: Disable format checking when compiling tst-chk?.c.
6139
f8f6ff5d
UD
6140 * config.make.in (datarootdir): Add to shut up configure.
6141
76fca9f1
UD
6142 * sysdeps/x86_64/cacheinfo.c (handle_amd): Fix computation of
6143 associativity for fully-associative caches.
6144
80e7d6a6
UD
6145 * sysdeps/x86_64/cacheinfo.c (handle_amd): Handle L3 cache
6146 requests. Fill on more associativity values for L2.
6147 Patch mostly by Evandro Menezes.
6148
cb5ba304
UD
61492007-08-24 Ulrich Drepper <drepper@redhat.com>
6150
d250df8c
UD
6151 * sysdeps/unix/sysv/linux/x86_64/init-first.c
6152 (_libc_vdso_platform_setup): Avoid using exported variable by using
6153 alias.
6154
88f61aaf
UD
6155 * resolv/arpa/nameser.h (NS_OPT_DNSSEC_OK): Define.
6156
cb5ba304 6157 * sysdeps/unix/sysv/linux/i386/syscalls.list: No reason to mark
cb104bd7 6158 fallocate64 as EXTRA. It is not referenced if the symbol isn't
cb5ba304
UD
6159 defined.
6160
62e1b1f5
UD
61612007-08-23 Ulrich Drepper <drepper@redhat.com>
6162
44b2e581
UD
6163 * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Correctly
6164 align stack for call if pltexit is to be used.
6165
73e3ff07
UD
6166 [BZ #3924]
6167 * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Correctly
6168 align for function call in case pltexit has to be called later.
6169
62e1b1f5
UD
6170 * sysdeps/i386/dl-trampoline.S (_dl_runtime_resolve): Avoid
6171 implicit atomic operation when storing function pointer.
6172 (_dl_runtime_profile): Likewise.
6173
0008163a
UD
61742007-08-17 Jakub Jelinek <jakub@redhat.com>
6175
6176 * nis/nis_table.c (nis_list): Don't fail if __follow_path returned
6177 NIS_NOTFOUND.
6178
55ea8790
UD
61792007-08-21 Ulrich Drepper <drepper@redhat.com>
6180
2e0e1a05
UD
6181 [BZ #4566]
6182 * string/strtok.c: Fix typo in comment.
6183
682e4437
UD
6184 [BZ #4582]
6185 * debug/segfault.c: Fix typos in comments.
6186
7d55c9eb
UD
6187 [BZ #4588]
6188 * stdio-common/tempnam.c: Fix comment, it is not checked that
6189 TMPDIR points to a writable directory.
6190
0f8f993c
UD
6191 [BZ #4726]
6192 * resolv/res_send.c (__libc_res_nsend): Initialize all of the
6193 memory allocated for the name server address.
6194
1465dd0f
UD
6195 [BZ #4946]
6196 * nscd/connections.c (handle_request): Using sendfile always
6197 requires that mmap is used for the database.
6198 Patch by Petr Baudis <pasky@suse.cz>.
6199
c44d3bdf
UD
6200 [BZ #4905]
6201 * nscd/hstcache.c (cache_addhst): When reloading an entry which
6202 suddenly has two or more addresses, ignore it and remove the old
6203 entry.
6204
1ce7d80d
UD
6205 [BZ #4814]
6206 * resolv/res_hconf.c: Prepare for compiling outside libc.
6207 * nscd/res_hconf.c: New file.
6208 * nscd/Makefile (nscd-modules): Add res_hconf. Add rules to build
6209 the new file.
6210 * nscd/gethstbynm2_r.c (NEED__RES_HCONF): Define.
6211 * nscd/gethstbyad_r.c (NEED__RES_HCONF): Likewise.
6212
a30d41c1
UD
6213 * nscd/hstcache.c (cache_addhst): Minimal optimization.
6214
45dc3ad7
UD
6215 [BZ #4925]
6216 * debug/pcprofiledump.c: Turn on internationalization by calling
6217 setlocale. Patch mostly by Benno Schulenberg.
6218
55ea8790
UD
6219 [BZ #4936]
6220 * iconv/gconv.c (__gconv): If flush was successful, clear rest of
6221 the state.
6222 * iconvdata/Makefile: Add rules to build and run bug-iconv5.
6223 * iconvdata/bug-iconv5.c: New file.
6224
0b82ff74
UD
62252007-08-04 Carlos O'Donell <carlos@systemhalted.org>
6226
55ea8790 6227 [BZ #4896]
0b82ff74
UD
6228 * elf/elf.h: Define R_PARISC_PLABEL21L, R_PARISC_PLABEL14R,
6229 R_PARISC_GNU_VTENTRY, R_PARISC_GNU_VTINHERIT, R_PARISC_TLS_GD21L,
6230 R_PARISC_TLS_GD14R, R_PARISC_TLS_GDCALL, R_PARISC_TLS_LDM21L,
6231 R_PARISC_TLS_LDM14R, R_PARISC_TLS_LDMCALL, R_PARISC_TLS_LDO21L,
6232 R_PARISC_TLS_LDO14R, R_PARISC_TLS_DTPMOD32, R_PARISC_TLS_DTPMOD64,
6233 R_PARISC_TLS_DTPOFF32, R_PARISC_TLS_DTPOFF64, R_PARISC_TLS_LE21L,
6234 R_PARISC_TLS_LE14R, R_PARISC_TLS_IE21L, R_PARISC_TLS_IE14R,
6235 R_PARISC_TLS_TPREL32, R_PARISC_TLS_TPREL64.
6236
ee16a55a
UD
62372007-08-21 Ulrich Drepper <drepper@redhat.com>
6238
6239 [BZ #4937]
6240 * elf/do-lookup.h (do_lookup_x): Minimal improvement in hash
6241 lookup loop. Suggested by John Reiser.
6242
b211fe0f
JJ
62432007-08-21 Jakub Jelinek <jakub@redhat.com>
6244
6245 * sysdeps/unix/sysv/linux/alpha/sysdep.h: Include tls.h.
6246
fb84593c
UD
62472007-08-20 Ulrich Drepper <drepper@redhat.com>
6248
6249 * csu/libc-start.c: Don't handle VDSO_SETUP here.
6250 * sysdeps/unix/sysv/linux/init-first.c: Handle it here instead.
6251 * sysdeps/unix/sysv/linux/x86_64/libc-start.c: Renamed to...
6252 * sysdeps/unix/sysv/linux/x86_64/init-first.c: ...this. New file.
6253 * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Move VDSO_SETUP code
6254 to...
6255 * sysdeps/unix/sysv/linux/x86_64/init-first.c: ...here. New file.
6256
b83fb35c
UD
62572007-08-18 Ulrich Drepper <drepper@redhat.com>
6258
6259 * po/nl.po: Update from translation team.
6260
20806a70
AJ
62612007-08-16 Andreas Jaeger <aj@suse.de>
6262
6263 * locale/localeinfo.h: Make _nl_category_name_idxs extern.
f00d47a3 6264 Reported by Peter Festner <peter.festner@ewetel.net>.
20806a70 6265
42282d57
JJ
62662007-08-17 Jakub Jelinek <jakub@redhat.com>
6267
6268 * login/tst-grantpt.c (test_einval): Add 3rd argument to open.
6269
8a501135
JJ
62702007-08-16 Jakub Jelinek <jakub@redhat.com>
6271
cb84d1e4
JJ
6272 * elf/Makefile ($(objpfx)ld.so): Use readelf -s and awk instead of nm -u
6273 to check for undefined symbols.
6274
91ddd9c4
JJ
6275 * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone):
6276 If the syscall fails, set errno to the actual returned error number
6277 rather than EINVAL.
6278 * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__clone): If
6279 arguments are incorrect, set errno to EINVAL, if the syscall
6280 fails, set errno to the actual returned error number.
6281
18915760
JJ
6282 * stdlib/bits/stdlib-ldbl.h (__strtold_internal): Remove.
6283 * wcsmbs/bits/wchar-ldbl.h (__wcstold_internal): Remove.
6284
8a501135
JJ
6285 * sysdeps/sparc/sparc32/sparcv9b/memcpy.S: Moved to...
6286 * sysdeps/sparc/sparc32/sparcv9/sparcv9b/memcpy.S: ... here. New
6287 file.
6288 (ASI_PNF, ASI_BLK_P): Don't define.
6289 * sysdeps/sparc/sparc32/sparcv9v/memcpy.S: Moved to...
6290 * sysdeps/sparc/sparc32/sparcv9/sparcv9v/memcpy.S: ... here. New
6291 file.
6292 * sysdeps/sparc/sparc32/sparcv9v/memset.S: Moved to...
6293 * sysdeps/sparc/sparc32/sparcv9/sparcv9v/memset.S: ... here. New
6294 file.
6295
e4720b0e
JJ
62962007-08-15 Jakub Jelinek <jakub@redhat.com>
6297
6298 * sysdeps/sparc/fpu/fraiseexcpt.c (__feraiseexcept): Fix raising
6299 FE_UNDERFLOW on Niagara CPUs.
6300
6301 * sysdeps/sparc/fpu/feholdexcpt.c (feholdexcept): Clear all
6302 exceptions.
6303
702a9414
JJ
63042007-08-14 Jakub Jelinek <jakub@redhat.com>
6305
467d1345
JJ
6306 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_runtime_setup): No
6307 need to check GLRO(dl_hwcap) & HWCAP_SPARC_FLUSH on sparcv9.
6308 (sparc_fixup_plt): Add do_flush argument instead of figuring whether
6309 flush should be used or not inside of the function.
6310 (elf_machine_fixup_plt, elf_machine_rela): Adjust caller.
6311
6312 * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone,
6313 __thread_start): Use HIDDEN_JUMPTARGET.
6314 * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__clone,
6315 __thread_start): Likewise.
6316 * sysdeps/unix/sysv/linux/sparc/sysdep.h (JUMPTARGET): Define.
6317
702a9414
JJ
6318 * sysdeps/ieee754/ldbl-64-128/strtold_l.c (__STRTOF): Declare.
6319 Add libc_hidden_proto.
6320 (STRTOF): Add libc_hidden_proto.
6321 (___new_strtold_l, ___new_wcstold_l): New weak aliases.
6322 (strtold_l, wcstold_l): Use them as second argument for
6323 long_double_symbol.
6324
c6c8f0ec
UD
63252007-08-14 Ulrich Drepper <drepper@redhat.com>
6326
6327 * elf/dl-misc.c: Undo last change. The kernel won't allow it.
6328
5e88abf9
UD
63292007-08-13 Kaz Kojima <kkojima@rr.iij4u.or.jp>
6330
6331 * stdlib/strtold_l.c: Include wchar.h if needed. Add libc_hidden_def.
6332
fc4819b0
UD
63332007-08-14 Ulrich Drepper <drepper@redhat.com>
6334
6335 * po/bg.po: New file. From the translation team.
6336
22502ea2
UD
63372007-08-13 Jakub Jelinek <jakub@redhat.com>
6338
6339 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PSELECT,
6340 __ASSUME_PPOLL, __ASSUME_ATFCTS, __ASSUME_SET_ROBUST_LIST,
6341 __ASSUME_UTIMENSAT, __ASSUME_FALLOCATE): Update per-arch conditions
6342 when each feature was introduced.
6343
6344 * sysdeps/unix/sysv/linux/dl-vdso.c: Don't include dl-hash.h.
6345 * sysdeps/unix/sysv/linux/dl-vdso.h: Don't include dl-hash.h if NDEBUG.
6346 (CHECK_HASH): New macro.
6347 (PREPARE_VERSION): Use it.
6348
6349 * sysdeps/unix/sysv/linux/pselect.c (__generic_pselect): Only provide
6350 prototype if not __ASSUME_PSELECT.
6351 * sysdeps/unix/sysv/linux/ppoll.c (__generic_ppoll): Only provide
6352 prototype if not __ASSUME_PPOLL.
6353
6354 * sysdeps/unix/sysv/linux/dl-osinfo.h (ROUND): #undef after use.
6355
6356 * sysdeps/unix/clock_settime.c (freq, __pthread_clock_settime,
6357 hp_timing_settime): Don't define or declare if HANDLED_CPUTIME
6358 is defined.
6359
9c6f6953
UD
63602007-08-13 Ulrich Drepper <drepper@redhat.com>
6361
6362 * sysdeps/unix/sysv/linux/x86_64/libc-start.c
6363 (_libc_vdso_platform_setup): If vDSO is not available point
6364 __vdso_gettimeofday to the vsyscall.
6365 * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S [SHARED]: Use
6366 __vdso_gettimeofday instead of vsyscall.
6367
f8de5057
UD
63682007-08-13 Jakub Jelinek <jakub@redhat.com>
6369
6370 * nscd/servicescache.c: Include kernel-features.h.
6371 * nscd/gai.c: Likewise.
6372 * sysdeps/unix/sysv/linux/statfs64.c: Likewise.
6373 * sysdeps/unix/sysv/linux/fstatfs64.c: Likewise.
6374 * sysdeps/unix/sysv/linux/fxstatat.c: Likewise.
6375 * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S: Likewise.
6376 * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S: Likewise.
6377 * sysdeps/unix/sysv/linux/xstatconv.c: Likewise.
6378 * sysdeps/unix/sysv/linux/if_index.c: Likewise.
6379 * sysdeps/unix/sysv/linux/sparc/sparc64/xstat.c: Likewise.
6380 * sysdeps/unix/sysv/linux/ifaddrs.c: Likewise.
6381
3c87d79d
UD
63822007-08-12 Ulrich Drepper <drepper@redhat.com>
6383
ea37207a
UD
6384 * elf/dl-dst.h: No need for _dl_dst_count, _dl_dst_substitute,
6385 and _dl_get_origin defines anymore.
6386
4eb375fe
UD
6387 * sysdeps/unix/sysv/linux/clock_gettime.c (maybe_syscall_gettime_cpu):
6388 Build fix for systems which might lack POSIX timer support.
6389
3c87d79d
UD
6390 * sysdeps/unix/sysv/linux/x86_64/libc-start.c
6391 (_libc_vdso_platform_setup): Mangle function pointers before storing
6392 them.
6393 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_VSYSCALL):
6394 Demangle vdso pointer before use.
6395 (INTERNAL_VSYSCALL): Likewise.
6396
6397 * elf/cache.c (primes): Mark as const.
6398 Noted by Roland McGrath.
6399
27d9ffda
UD
64002007-08-01 Andreas Jaeger <aj@suse.de>
6401 Jakub Jelinek <jakub@redhat.com>
6402
6403 * elf/ldconfig.c (opt_ignore_aux_cache): Add new option.
6404 (options): Add option.
6405 (parse_opt): Handle option.
6406 (manual_link): Adjust process_file caller. Call implicit_soname.
6407 (search_dir): Formatting. Use and populate auxiliary cache.
6408 (main): Load and save auxiliary cache.
6409 * elf/readlib.c (process_file): Add stat_buf argument. Pass struct
6410 stat64 from fstat64 to caller.
6411 (implicit_soname): New function.
6412 * elf/readelflib.c (process_elf_file): If DT_SONAME is not present,
6413 leave *soname as NULL.
6414 * elf/cache.c: Include libgen.h.
6415 (print_entry, print_cache, compare, save_cache, add_to_cache):
6416 Formatting and cleanups.
6417 (aux_cache_entry_id, aux_cache_entry, aux_cache_file_entry,
6418 aux_cache_file): New structures.
6419 (AUX_CACHEMAGIC): Define.
6420 (primes): New array.
6421 (aux_hash_size, aux_hash): New variables.
6422 (aux_cache_entry_id_hash, nextprime, init_aux_cache,
6423 search_aux_cache, insert_to_aux_cache, add_to_aux_cache,
6424 load_aux_cache, save_aux_cache): New functions.
6425 * sysdeps/generic/ldconfig.h (_PATH_LDCONFIG_AUX_CACHE): Define.
6426 (init_aux_cache, search_aux_cache, add_to_aux_cache,
6427 load_aux_cache, save_aux_cache, implicit_soname): New prototypes.
6428 (process_file): Adjust prototype.
6429
8d944b0f
UD
64302007-08-12 Jakub Jelinek <jakub@redhat.com>
6431
6432 * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h: Include stddef.h
6433 with __need_size_t.
6434
75fb247e
UD
64352007-08-12 Ulrich Drepper <drepper@redhat.com>
6436
fb86328a
UD
6437 * sysdeps/unix/sysv/linux/dl-vdso.c (_dl_vdso_vsym): Expect
6438 r_found_version structure as second parameter.
6439 * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION): Define.
6440 (_dl_vdso_vsym): Change type of second parameter accordingly.
6441 * sysdeps/unix/sysv/linux/x86-64/libc-start.c
6442 (_libc_vdso_platform_setup): Adjust.
974a1f0f 6443 * sysdeps/unix/sysv/linux/powerpc/libc-start.c
fb86328a
UD
6444 (_libc_vdso_platform_setup): Likewise.
6445
75fb247e
UD
6446 * sysdeps/unix/sysv/linux/powerpc/dl-vdso.c: Move to...
6447 * sysdeps/unix/sysv/linux/dl-vdso.c: ...here.
6448 * sysdeps/unix/sysv/linux/powerpc/dl-vdso.h: Move to...
6449 * sysdeps/unix/sysv/linux/dl-vdso.h: ...here.
6450 * csu/libc-start.c: Pretty printing.
6451 Use VDSO_SETUP if defined.
6452 * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Define VDSO_SETUP
6453 and let generic code call into _libc_vdso_platform_setup.
6454 * sysdeps/unix/sysv/linux/x86_64/libc-start.c: New file.
6455 * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: New file.
6456 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Pretty printing.
6457 Define INLINE_VSYSCALL and INTERNAL_VSYSCALL.
6458 * sysdeps/unix/sysv/linux/x86_64/Versions: Export __vdso_clock_gettime
6459 for GLIBC_PRIVATE.
6460 * sysdeps/unix/sysv/linux/x86_64/Makefile [subdir=elf]
6461 (sysdep_rountines): Add dl-vdso.
6462
6463 * sysdeps/unix/sysv/linux/powerpc/Makefile: Use sysdep_routines instead
6464 of routines.
6465
6466 * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Add
6467 attribute_hidden to __vdso_gettimeofday prototype.
6468
9229b83e
RM
64692007-08-12 Roland McGrath <roland@redhat.com>
6470
6471 * manual/stdio.texi (Variable Arguments Output): Fix xref to gcc manual.
6472 From: Karl Berry <karl@freefriends.org>.
6473
4503061f
UD
64742007-08-11 Ulrich Drepper <drepper@redhat.com>
6475
6476 * elf/dl-misc.c (_dl_sysdep_read_whole_file): We really don't need
6477 an atime update for the files we read.
6478
d7e23b02
UD
64792007-08-10 Ulrich Drepper <drepper@redhat.com>
6480
7cf89e95
UD
6481 * shadow/lckpwdf.c (__lckpwdf): Use O_CLOEXEC if possible.
6482
9d169bb3 6483 * nscd/connections.c: Use O_CLOEXEC if possible. Use mkostemp
d7e23b02
UD
6484 instead of mkstemp.
6485
6486 * misc/Makefile (routines): Add mkostemp and mkostemp64.
6487 * misc/Versions: Export mkostemp and mkostemp64 for GLIBC_2.7.
6488 * misc/mkostemp.c: New file.
6489 * misc/mkostemp64.c: New file.
6490 * stdlib/stdlib.h: Declare the new functions.
6491 * sysdeps/posix/tempname.c: Add new parameter which is added to
6492 the flags for open. Remove __GT_BIGFILE handling.
6493 * stdio-common/tempname.c: Likewise.
6494 * include/stdio.h: Adjust __gen_tempname prototype.
6495 Renumber __GT_* constants.
6496 * libio/oldtmpfile.c: Adjust for __gen_tempname interface change.
6497 * misc/mkdtemp.c: Likewise.
6498 * misc/mkstemp.c: Likewise.
6499 * misc/mkstemp64.c: Likewise.
6500 * misc/mktemp.c: Likewise.
6501 * stdio-common/tempnam.c: Likewise.
6502 * stdio-common/tmpfile.c: Likewise.
6503 * stdio-common/tmpfile64.c: Likewise.
6504 * stdio-common/tmpnam.c: Likewise.
6505 * stdio-common/tmpnam_r.c: Likewise.
6506
22532966
RM
65072007-08-10 Roland McGrath <roland@frob.com>
6508
6509 * sysdeps/mach/hurd/bits/ioctls.h (NLDLY, TABDLY, BSDLY, VTDLY):
6510 New macros.
6511 (NLDELAY, CRDELAY, TBDELAY, BSDELAY, VTDELAY): Define to those.
6512 Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
6513
673876e6
UD
65142007-08-10 Ulrich Drepper <drepper@redhat.com>
6515
aa132749
UD
6516 * nss/nss_files/files-XXX.c (internal_setent): Use O_CLOEXEC if
6517 possible.
6518 * nss/nss_files/files-alias.c (internal_setent): Likewise.
6519 * nss/Makefile (libnss_files-routines): Add files-have_o_cloexec.
6520 * nss/nss_files/files-have_o_cloexec.c: New file.
6521
22532966 6522 * sysdeps/unix/sysv/linux/shm_open.c (shm_open): Use O_CLOEXEC if
673876e6
UD
6523 available.
6524
1e286653
JJ
65252007-08-10 Jakub Jelinek <jakub@redhat.com>
6526
6527 * sysdeps/ieee754/ldbl-128ibm/strtold_l.c (___new_strtold_l,
6528 ___new_wcstold_l): New weak aliases.
6529 (strtold_l, wcstold_l): Use them as second argument for
6530 long_double_symbol.
6531
f07f72f3
UD
65322007-08-09 Ulrich Drepper <drepper@redhat.com>
6533
6479496a
UD
6534 * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Use correct
6535 register in test for error.
6536
c4adefbd
UD
6537 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_CLOEXEC): Define.
6538 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (O_CLOEXEC): Likewise.
6539
f07f72f3
UD
6540 * po/sv.po: Update from translation team.
6541
eef38c28
RM
65422007-08-06 Roland McGrath <roland@redhat.com>
6543
773e305e
RM
6544 * include/stdlib.h: Add libc_hidden_proto for strto*, __strto*_l.
6545 Remove __strto*_l inlines.
6546 * include/wchar.h: Add libc_hidden_proto for wcsto*, __wcsto*_l.
6547 * stdlib/strtod.c: Add libc_hidden_def.
6548 * stdlib/strtod_l.c: Likewise.
6549 * stdlib/strtold.c [__LONG_DOUBLE_MATH_OPTIONAL]: Add libc_hidden_proto
6550 for __new_strtold and __new_wcstold.
6551 * sysdeps/ieee754/ldbl-128ibm/strtold_l.c: Add libc_hidden_proto for
6552 __STRTOF, STRTOF.
6553 * stdlib/strtol.c: Add libc_hidden_def.
6554 * stdlib/strtol_l.c: Likewise.
6555 * sysdeps/wordsize-64/strtol.c: Add libc_hidden_ver for strtoll and
6556 strtoq.
6557
6558 * scripts/data/localplt-powerpc-linux-gnu.data: New file.
6559
6560 * scripts/data/localplt-x86_64-linux-gnu.data: File renamed to ...
6561 * scripts/data/localplt-generic.data: ... here.
6562 * elf/Makefile (check-data): Get generic file if no other.
6563 ($(objpfx)check-localplt.out): Make target unconditional.
6564
eef38c28
RM
6565 * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_discover_osversion):
6566 Use ElfW(Nhdr).
6567
742df3a4
UD
65682007-08-05 Ulrich Drepper <drepper@redhat.com>
6569
6570 * po/zh_CN.po: Updated translation from translation team.
6571
0470fa46
JJ
65722007-08-05 Jakub Jelinek <jakub@redhat.com>
6573
6574 * sysdeps/unix/sysv/linux/powerpc/powerpc32/socket.S (__socket):
6575 Don't use CGOTSETUP and CGOTRESTORE macros.
6576
b5075bdc
RM
65772007-08-04 Roland McGrath <roland@redhat.com>
6578
6579 * posix/Makefile ($(objpfx)getconf.speclist): Fix typo.
6580
9accc268
JJ
65812007-08-04 Jakub Jelinek <jakub@redhat.com>
6582
6583 * io/bits/fcntl2.h (open, open64, openat, openat64): Add
6584 __extension__ around the whole statement expression.
6585
220ae3ef
UD
65862007-08-04 Ulrich Drepper <drepper@redhat.com>
6587
c8ccd8e3
UD
6588 * sysdeps/unix/opendir.c (__alloc_dir): Correct order of DIR
6589 elements during initialization.
6590
220ae3ef
UD
6591 * po/pl.po: Updated translation from translation team.
6592 * po/tr.po: Likewise.
11960f7f 6593 * po/nl.po: Likewise.
220ae3ef 6594
2fb20667
UD
65952007-08-03 Ulrich Drepper <drepper@redhat.com>
6596
6597 * rt/aio.h: Add __nonnull attributes.
6598
ce31a3b1
UD
65992007-08-03 Jakub Jelinek <jakub@redhat.com>
6600
64f6281c
UD
6601 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Properly handle -0.
6602 * stdlib/Makefile (tests): Add tst-strtod5.
6603 (tst-strtod5-ENV): New.
6604 * stdlib/tst-strtod5.c: New file.
6605
ce31a3b1
UD
6606 * intl/dcigettext.c (_nl_find_msg): Free encoding if __gconv_open
6607 failed.
6608 * intl/finddomain.c (_nl_find_domain): Free normalized_codeset
6609 on failure.
6610
6611 * elf/dl-load.c (decompose_rpath): Free copy if result couldn't be
6612 allocated.
6613
754980e4
JJ
66142007-08-03 Jakub Jelinek <jakub@redhat.com>
6615
6616 * rt/mqueue.h (mq_timedreceive, mq_timedsend): Fix nonnull argument
6617 numbers.
6618
497af0cb
UD
66192007-08-02 Ulrich Drepper <drepper@redhat.com>
6620
cbf0489b
UD
6621 * io/Makefile (aux): Add have_o_cloexec.
6622 * include/fcntl.h: Declare __have_o_cloexec.
6623 * io/have_o_cloexec.c: New file.
6624 * sysdeps/unix/opendir.c (__opendir): Use O_CLOEXEC is available.
6625 (__alloc_dir): If O_CLOEXEC has been used, don't duplicate the
6626 fcntl call if not necessary.
6627 * login/utmp_file.c (setutent_file): Use __have_o_cloexec instead
6628 of local variable.
6629
fa39685d
UD
6630 * sysdeps/unix/opendir.c (__alloc_dir): Don't initialize ->data.
6631 Avoid memset, add explicit initialization.
6632 * sysdeps/unix/dirstream.h (struct __dirstream): Move data elemtn
6633 to the end and change into zero-sized array.
6634 Move lock member to fill a hole on 64-bit platforms.
9b2e9577
UD
6635
6636 * stdlib/stdlib.h: Remove __strto*_internal prototypes and strto*
6637 inline functions.
6638 * include/stdlib.h: Add __strto*_internal prototypes here.
6639 * wcsmbs/wchar.h: Remove __wcsto*_internal prototypes and wcsto*
6640 inline functions.
6641 * include/wchar.h: Add __wcsto*_internal prototypes.
6642 * sysdeps/generic/inttypes.h: No need to protect the declaration
6643 of the __strto*_internal and __wcsto*_internal members here.
6644
497af0cb
UD
6645 * rt/mqueue.h: Change const to __const and add nonnull attributes.
6646
d17a8cf0
RM
66472007-08-02 Roland McGrath <roland@redhat.com>
6648
6649 * posix/Makefile ($(inst_libexecdir)/getconf): Make hard links to
6650 $(inst_bindir)/getconf if possible.
6651
6652 * posix/Makefile ($(objpfx)getconf.speclist): New target.
6653 (generated): Add it.
6654 ($(inst_libexecdir)/getconf): Use it.
6655
0abf17de
UD
66562007-08-01 Ulrich Drepper <drepper@redhat.com>
6657
6658 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Using
6659 /proc is faster and sufficient. /sys is still needed for
6660 __get_nprocs_conf.
6661
5e0923ab
UD
66622007-08-01 Jakub Jelinek <jakub@redhat.com>
6663
6664 * sysdeps/unix/sysv/linux/i386/syscalls.list (fallocate): Add fallocate
6665 syscall as __fallocate64.
6666 * sysdeps/unix/sysv/linux/i386/posix_fallocate.c: New file.
6667 * sysdeps/unix/sysv/linux/i386/posix_fallocate64.c: New file.
6668
1475e201
UD
66692007-07-30 Jakub Jelinek <jakub@redhat.com>
6670
6671 * stdlib/tst-strtod2.c (do_test): Use %tu in fmt string for ptrdiff_t
6672 value.
6673
6674 * stdio-common/tst-fmemopen2.c (do_test): Avoid fmt string warning
6675 if off_t is different rank from size_t.
6676
6677 * sysdeps/generic/unwind-dw2.c (extract_cie_info, execute_cfa_program,
6678 uw_frame_state_for): Avoid type punning warnings.
6679 * sysdeps/generic/unwind-dw2-fde-glibc.c
6680 (_Unwind_IteratePhdrCallback): Likewise.
6681 * sysdeps/generic/unwind-dw2-fde.c (_Unwind_Find_FDE): Likewise.
6682 (binary_search_single_encoding_fdes, binary_search_mixed_encoding_fdes,
6683 get_cie_encoding, linear_search_fdes): Don't mix char and unsigned char
6684 pointers.
6685
e076bece
UD
66862007-07-31 Ulrich Drepper <drepper@redhat.com>
6687
9506149a
UD
6688 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs_conf): Count
6689 total processors using sysfs.
6690 (__get_nprocs): Use sysfs to determine which processors are online.
e076bece 6691
bbeaaa84
JJ
66922007-07-31 Jakub Jelinek <jakub@redhat.com>
6693
09881398
JJ
6694 * sysdeps/unix/sysv/linux/posix_fallocate.c (posix_fallocate): Fix
6695 syscall arguments count.
6696
bbeaaa84
JJ
6697 * stdio-common/tfformat.c (sprint_doubles): Add 12 new tests.
6698
087ef75f
RM
66992007-07-30 Roland McGrath <roland@redhat.com>
6700
6701 * manual/libc.texinfo: Update copyrights, formatting magic, and
6702 @dircategory. From Karl Berry <karl@freefriends.org>.
6703
44f08a6e
UD
67042007-07-29 Ulrich Drepper <drepper@redhat.com>
6705
eafaae72
UD
6706 [BZ #4860]
6707 * io/Makefile (headers): Add bits/fcntl2.h.
6708
c5705565
UD
6709 * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_ZERO_S): Optimize
6710 using gcc builtin.
6711 (__CPU_EQUAL_S): Likewise.
6712
44f08a6e
UD
6713 * posix/Makefile (routines): Add sched_cpualloc and sched_cpufree.
6714 (tests): Add tst-cpuset.
6715 * posix/sched_cpualloc.c: New file.
6716 * posix/sched_cpufree.c: New file.
6717 * posix/tst-cpuset.c: New file.
6718 * posix/Versions: Export __sched_cpualloc and __sched_cpufree for
6719 GLIBC_2.7.
6720 * sysdeps/unix/sysv/linux/bits/sched.h: Define __CPU_*_S macros.
6721 * posix/sched.h: Define old CPU_* macros in temers of __CPU_*_S
6722 macros. Define CPU_*_S macros.
6723
8f5e1400
UD
67242007-07-28 Ulrich Drepper <drepper@redhat.com>
6725
5b74caf6
UD
6726 * posix/getconf.c (vars): Add missing _SC_LEVEL4_CACHE_LINESIZE
6727 entry.
6728
a26d01bb 6729 [BZ #4858]
8f5e1400
UD
6730 * stdio-common/printf_fp.c (___printf_fp): Fix special case of
6731 #.0g and value rounded to 1.0.
6732 * stdio-common/tfformat.c (sprint_doubles): Add two new tests.
6733
085a4412
UD
67342007-07-26 Jakub Jelinek <jakub@redhat.com>
6735
cedb4109
UD
6736 * locale/programs/ld-monetary.c (monetary_finish): Avoid range check
6737 for int_frac_digits and frac_digits.
6738
6739 * login/logout.c (logout): Avoid aliasing violation.
6740 * login/logwtmp.c (logwtmp): Likewise.
6741
6742 * libio/genops.c (_IO_un_link): Avoid aliasing violation.
6743
9d9febc7
UD
6744 * nscd/selinux.c (preserve_capabilities): Initialize new_caps
6745 to avoid warning.
6746 * iconv/gconv_open.c (__gconv_open): Initialize ptr to avoid
6747 warning.
6748 * nis/nis_subr.c (nis_getnames): Initialize saveptr to avoid
6749 warning.
6750 * resolv/inet_ntop.c (inet_ntop6): Initialize best.len and cur.len
6751 to avoid warnings.
6752
701666b7
UD
6753 * nss/nsswitch.c (__nss_lookup_function): Don't cast &ni->known to
6754 void **.
6755 * nss/nsswitch.h (service_user): Use void * type for KNOWN field.
6756
6757 * nss/nss_files/files-hosts.c (LINE_PARSER): Cast host_addr to
6758 char * to avoid warning.
6759 * nis/nss_nis/nis-hosts.c (LINE_PARSER): Likewise.
6760
6761 * timezone/Makefile (CFLAGS-zdump.c): Add -fwrapv.
6762
6763 * locale/programs/ld-ctype.c (ctype_finish, set_class_defaults,
6764 allocate_arrays): Cast second argument to charmap_find_symbol
6765 to char * to avoid warnings.
6766
6767 * locale/programs/repertoire.c (repertoire_new_char): Change
6768 from_nr, to_nr and cnt to unsigned long, adjust printf format
6769 string.
6770
6771 * locale/programs/ld-collate.c (insert_value, handle_ellipsis):
6772 Cast second argument to new_element to char * to avoid warnings.
6773
6774 * locale/weightwc.h (findidx): Cast &extra[-i] to const int32_t *.
6775
6776 * intl/gettextP.h (struct loaded_domain): Change plural to const
6777 struct expression *.
6778 * intl/plural-eval.c (plural_eval): Change first argument to
6779 const struct expression *.
6780 * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Change first
6781 argument to const struct expression **.
6782 * intl/plural-exp.h (EXTRACT_PLURAL_EXPRESSION, plural_eval): Adjust
6783 prototypes.
6784 * intl/loadmsgcat (_nl_unload_domain): Cast away const
6785 in call to __gettext_free_exp.
6786
6787 * posix/fnmatch.c (fnmatch): Rearrange code to avoid maybe
6788 unitialized wstring/wpattern var warnings.
6789
6790 * posix/runtests.c (struct a_test): Make data field const char *.
6791
6792 * stdio-common/tst-sprintf2.c (main): Don't declere u, v and buf
6793 vars if not LDBL_MANT_DIG >= 106.
6794
6795 * stdio-common/Makefile (CFLAGS-vfwprintf.c): Add -Wno-unitialized.
6796
6797 * stdio-common/vfprintf.c (vfprintf): Cast first arugment to
6798 __find_specmb to avoid warning.
6799
6800 * rt/tst-mqueue1.c (do_one_test): Add casts to avoid warnings.
6801
6802 * debug/test-strcpy_chk.c (do_tests, do_random_tests): Add casts
6803 to avoid warnings.
6804
6805 * sysdeps/ieee754/ldbl-96/s_roundl.c (huge): Add L suffix to
6806 initializer.
6807
6808 * sysdeps/unix/clock_gettime.c (clock_gettime): Only define
6809 tv var when it will be actually used.
6810
6811 * sunrpc/rpc_cmsg.c (xdr_callmsg): Cast IXDR_PUT_* to void
6812 to avoid warnings.
6813
085a4412
UD
6814 * iconvdata/gbk.c (BODY): Make buf and cp char instead of unsigned
6815 char array resp. pointer.
6816 * iconvdata/iso-2022-kr.c (BODY): Make buf unsigned char instead of
6817 char array.
6818 * iconvdata/cns11643.h (cns11643_to_ucs4): Change first argument
6819 to const unsigned char **.
6820 (ucs4_to_cns11643): Change second argument to unsigned char *.
6821 * iconvdata/euc-tw.c (BODY): Change endp type to
6822 const unsigned char *.
6823 * iconvdata/iso-ir-165.h (ucs4_to_isoir165): Change second argument
6824 to unsigned char *.
6825 * iconvdata/ibm1008_420.c (LOOP_NEED_FLAGS): Don't define.
6826 * iconvdata/iso-2022-cn.c (BODY): Change buf to unsigned char array.
6827 * iconvdata/iso-2022-cn-ext.c (BODY): Change buf, tmpbuf, tmp
6828 types to unsigned char pointers/arrays instead of char.
6829 * iconvdata/jis0201.h (ucs4_to_jisx0201): Change second argument
6830 to unsigned char *.
6831 * iconvdata/jis0208.h (ucs4_to_jisx0208): Likewise.
6832 * iconvdata/jis0212.h: Include assert.h.
6833 (ucs4_to_jisx0212): Change second argument to unsigned char *.
6834 assert that if cp[0] is not '\0', cp[1] is not '\0' either instead
6835 of trying to handle that.
6836 * iconvdata/euc-kr.c (euckr_from_ucs4): Initialize also cp[1] to
6837 shut up a warning.
6838 * iconvdata/euc-jp-ms.c (from_ucs4_lat1, from_ucs4_greek,
6839 from_ucs4_cjk, from_ucs4_cjkcpt, from_ucs4_extra): Change type to
6840 two dimensional const unsigned char arrays.
6841 (BODY): Cast "" to (const unsigned char *) for assignment to cp.
6842 Initialize endp to inptr to shut up a warning.
6843
fa69dc9c
UD
68442007-07-20 Jakub Jelinek <jakub@redhat.com>
6845
ae1ad762
UD
6846 [BZ #4772]
6847 * time/strptime_l.c (__strptime_internal): Silently ignore
6848 strftime modifiers and field width in recursive calls.
6849
fa69dc9c
UD
6850 * include/time.h (enum ptime_locale_status): Remove.
6851 (__strptime_internal): Remove decided and era_cnt arguments,
6852 add statep argument.
6853 * time/strptime_l.c (__strptime_internal): Remove decided
6854 and era_cnt arguments, add statep argument. Don't recompute
6855 any fields in recursive calls, only update caller's tm
6856 and state, if recursive call fails, don't change tm nor
6857 any state.
6858 (get_alt_number): Adjust.
6859 (recursive): Adjust caller.
6860 (strptime): Likewise.
6861 * time/strptime.c (strptime): Likewise.
6862
7b503bcc
UD
68632007-07-19 Jakub Jelinek <jakub@redhat.com>
6864
6865 * iconv/gconv_int.h (__GCONV_NULCONV): New internal only error code.
6866 * iconv/gconv_cache.c (__gconv_lookup_cache): Return __GCONV_NULCONV
6867 if from and to charsets are the same.
6868 * iconv/gconv_db.c (__gconv_find_transform): Likewise.
6869 * intl/dcigettext.c (_nl_find_msg): Return NULL even if __gconv_open
6870 returns __GCONV_NOCONV, but not for __GCONV_NULCONV.
6871
68722007-07-17 Jakub Jelinek <jakub@redhat.com>
6873
6874 * wcsmbs/wchar.h: Only define wint_t if __need_wint_t.
6875 Don't define wint_t when __need_mbstate_t unless it
6876 is necessary.
6877 (__mbstate_t): Use __WINT_TYPE__ rather than wint_t
6878 in the typedef if possible.
6879 * wctype/wctype.h (wint_t): Define by including
6880 wchar.h with __need_wint_t instead of including stddef.h
6881 with __need_wint_t and as fallback definining it ourselves.
6882 * iconv/gconv.h (__need_wint_t): Define before including
6883 wchar.h.
6884 * sysdeps/gnu/_G_config.h: Don't include gconv.h if not _LIBC
6885 or _GLIBCPP_USE_WCHAR_T.
6886 (__need_wchar_t): Don't define
6887 if not _LIBC or _GLIBCPP_USE_WCHAR_T.
6888 (__need_wint_t): Don't define before including stddef.h,
6889 define before including wchar.h only if _LIBC or
6890 _GLIBCPP_USE_WCHAR_T.
6891 (_G_iconv_t): Don't define if not _LIBC or _GLIBCPP_USE_WCHAR_T.
6892 * sysdeps/mach/hurd/_G_config.h: Likewise.
6893 * sysdeps/generic/_G_config.h: Likewise.
6894 * libio/libio.h (__wunderflow, __wuflow, __woverflow): Only
6895 prototype if _LIBC or _GLIBCPP_USE_WCHAR_T.
6896 (_IO_getwc_unlocked, _IO_putwc_unlocked): Only define
6897 if _LIBC or _GLIBCPP_USE_WCHAR_T.
6898
a95a608f
UD
68992007-07-28 Ulrich Drepper <drepper@redhat.com>
6900
6901 * sysdeps/posix/posix_fallocate64.c: Undefine
6902 __posix_fallocate64_l64 before alias handling.
6903 * sysdeps/unix/sysv/linux/posix_fallocate.c: New file.
6904 * sysdeps/unix/sysv/linux/posix_fallocate64.c: New file.
6905 * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c: New file.
6906 * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate64.c: New file.
6907
6908 * io/tst-posix_fallocate.c: Include <fcntl.h>.
6909
69102007-07-23 Jakub Jelinek <jakub@redhat.com>
6911
6912 * locale/programs/ld-collate.c (atwc): New variable.
6913 (add_to_tablewc): New toplevel function, moved from collate_output.
6914 (collate_output): Remove add_to_tablewc nested function.
6915
6916 * iconv/iconvconfig.c (hash_table, hash_size): New toplevel vars.
6917 (name_insert): New function.
6918 (write_output): Remove hash_table and hash_size vars and name_insert
6919 nested function.
6920
80d4c3b0
RM
69212007-07-24 Roland McGrath <roland@redhat.com>
6922
6923 * Makerules (install-others-programs-nosubdir): New target.
6924 (install-no-libc.a-nosubdir): Depend on it.
6925
6926 * iconv/Makefile (install-others-programs): Set this instead of
6927 install-others.
6928 * login/Makefile (install-others-programs): Likewise.
6929 * posix/Makefile (install-others-programs): Likewise.
6930
6931 * Makerules (install-no-libc.a-nosubdir): Clean up conditional
6932 dependencies.
6933
c1bf9f14
UD
69342007-07-23 Ulrich Drepper <drepper@redhat.com>
6935
6936 * io/Makefile (tests): Add tst-posix_fallocate.
6937 * io/tst-posix_fallocate.c: New file.
6938
6939 * sysdeps/unix/sysv/linux/kernel-features.h: Define
6940 __ASSUME_FALLOCATE.
6941
2320270c
RM
69422007-07-22 Roland McGrath <roland@frob.com>
6943
3dadfa7e
RM
6944 * hurd/getdport.c: Add missing copyright year update.
6945
2320270c
RM
6946 * sysdeps/mach/hurd/bits/fcntl.h [__USE_GNU] (O_CLOEXEC): New macro.
6947 * hurd/port2fd.c (_hurd_port2fd): Implement O_CLOEXEC.
6948
cc783763
UD
69492007-07-22 Ulrich Drepper <drepper@redhat.com>
6950
c942388d
UD
6951 * login/utmp_file.c (setutent_file): Use O_CLOEXEC if possible.
6952
cc783763
UD
6953 * libio/fileops.c (_IO_new_file_fopen): Recognize 'e' flag and set
6954 O_CLOEXEC is needed.
6955 * nis/nss_compat/compat-grp.c: Use 'e' flag when opening file.
6956 Avoid additional fcntl to set O_CLOEXEC if not needed.
6957 * nis/nss_compat/compat-initgroups.c: Likewise.
6958 * nis/nss_compat/compat-pwd.c: Likewise.
6959 * nis/nss_compat/compat-spwd.c: Likewise.
6960
610903b0
RM
69612007-07-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
6962
3dadfa7e 6963 [BZ #3665]
5c3d7832
RM
6964 * manual/errno.texi: Change ECANCELED value to 119.
6965
3dadfa7e 6966 [BZ #4610]
610903b0
RM
6967 * mach/lock-intern.h: Include <sys/cdefs.h>.
6968
3dadfa7e 6969 [BZ #4178]
610903b0
RM
6970 * sysdeps/mach/hurd/sigaction.c (__sigaction): Check ACT != NULL before
6971 reading A.
6972
3dadfa7e
RM
6973 [BZ #4126]
6974 * sysdeps/mach/hurd/sigsuspend.c (sigsuspend_not_cancel): Define alias
6975 to __sigsuspend.
610903b0
RM
6976
6977 * sysdeps/mach/i386/sysdep.h: Include <dl-sysdep.h> and <tls.h>.
6978
69792006-06-13 Thomas Schwinge <tschwinge@gnu.org>
6980
6981 * sysdeps/mach/hurd/tls.h: Change `ASSEMBLER' conditional to
6982 `__ASSEMBLER__'.
6983 * sysdeps/mach/hurd/i386/tls.h: Likewise.
6984
acf79996
UD
69852007-07-21 Ulrich Drepper <drepper@redhat.com>
6986
dde0763a
UD
6987 * nscd/nscd_helper.c (get_mapping): Use MSG_CMSG_CLOEXEC for
6988 descriptor received from nscd.
6989
acf79996
UD
6990 * sysdeps/unix/sysv/linux/bits/socket.h: Define MSG_CMSG_CLOEXEC.
6991
6992 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_CLOEXEC.
6993 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
6994 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
6995 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
6996 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
6997 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
6998
00d26929
JJ
69992007-07-20 Jakub Jelinek <jakub@redhat.com>
7000
403445d7
JJ
7001 [BZ #4816]
7002 * manual/signal.texi (Non-atomic Example): Make memory var volatile.
7003
00d26929
JJ
7004 [BZ #4813]
7005 * login/forkpty.c (forkpty): Close master and slave fds on
7006 fork failure. Patch by
7007 Mikulas Patocka <mikulas@artax.karlin.mff.cuni.cz>.
7008
087722b8
UD
70092007-07-18 Jakub Jelinek <jakub@redhat.com>
7010
7011 * include/features.h (__USE_ISOC95): New define.
7012 * wcsmbs/wchar.h (fwprintf, fwscanf, wprintf, wscanf, swprintf,
7013 swscanf, vfwprintf, vwprintf, vswprintf, fwide): Define even
7014 for -std=iso9899:199409.
7015 * CONFORMANCE: Remove comments about unsupported AMD1.
7016
b042b023
UD
70172007-07-17 Jakub Jelinek <jakub@redhat.com>
7018
7019 * sysdeps/ia64/sched_cpucount.c: New file.
7020 * sysdeps/powerpc/sched_cpucount.c: New file.
7021
8381e467
UD
7022 * sysdeps/unix/sysv/linux/bits/sched.h (__sched_cpucount): Add
7023 __BEGIN_DECLS/__END_DECLS around the prototype.
7024 * bits/sched.h (__sched_cpucount): Likewise. Make second argument
7025 pointer to const cpu_set_t.
7026
50e16f85
UD
7027 * bits/types.h: Don't include stddef.h, don't define __need_size_t.
7028 * signal/signal.h <__USE_BSD || __USE_XOPEN_EXTENDED>: Define
7029 __need_size_t and include stddef.h.
7030 * sysvipc/sys/msg.h: Likewise.
7031 * posix/sched.h: Likewise.
7032 * hurd/hurd/signal.h (__need_size_t): Define.
7033
7034 * CONFORMANCE: ctype.h and wctype.h no longer define size_t,
7035 neither does signal.h in pedantic ISO C namespaces. stdio.h
7036 no longer defines wint_t or wchar_t.
7037
b257c726
UD
7038 * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): New function.
7039 * debug/vfwprintf_chk.c (__vfwprintf_chk): Use
7040 _IO_acquire_lock_clear_flags2 instead of _IO_acquire_lock.
7041 * debug/vprintf_chk.c (__vprintf_chk): Likewise.
7042 * debug/vwprintf_chk.c (__vwprintf_chk): Likewise.
7043 * debug/vfprintf_chk.c (__vfprintf_chk): Likewise.
7044 * debug/fwprintf_chk.c (__fwprintf_chk): Likewise.
7045 * debug/printf_chk.c (__printf_chk): Likewise.
7046 * debug/fprintf_chk.c (__fprintf_chk): Likewise.
7047 * debug/wprintf_chk.c (__wprintf_chk): Likewise.
7048
7049 * sysdeps/pthread/bits/stdio-lock.h (_IO_acquire_lock_clear_flags2):
7050 Define.
7051
d5078b9f
UD
7052 * bits/confname.h (_CS_POSIX_V6_WIDTH_RESTRICTED_ENVS): Define.
7053 * posix/getconf.c (vars): Add POSIX_V6_WIDTH_RESTRICTED_ENVS.
7054
1c3e748e
UD
70552007-07-16 Jakub Jelinek <jakub@redhat.com>
7056
7057 [BZ #4792]
7058 * stdlib/stdlib.h (realloc): Remove __attribute_malloc__.
7059 * malloc/malloc.h (realloc): Likewise.
7060
4e425301
UD
7061 * libio/iopopen.c (_IO_new_proc_open): Don't close child_std_end
7062 if one of proc_file_chain streams has that fileno.
7063 * stdio-common/Makefile (tests): Add tst-popen2.
7064 * stdio-common/tst-popen2.c: New test.
7065
2e2efe65
RM
70662007-07-14 Jakub Jelinek <jakub@redhat.com>
7067
7068 * elf/ldconfig.c: Allow GPLv2 or any later version.
7069 * elf/readlib.c: Likewise.
7070 * elf/chroot_canon.c: Likewise.
7071 * elf/cache.c: Likewise.
7072 * nscd/mem.c: Likewise.
7073 * nscd/getpwuid_r.c: Likewise.
7074 * nscd/grpcache.c: Likewise.
7075 * nscd/aicache.c: Likewise.
7076 * nscd/getsrvbynm_r.c: Likewise.
7077 * nscd/nscd.c: Likewise.
7078 * nscd/servicescache.c: Likewise.
7079 * nscd/getsrvbypt_r.c: Likewise.
7080 * nscd/initgrcache.c: Likewise.
7081 * nscd/gethstbyad_r.c: Likewise.
7082 * nscd/gethstbynm2_r.c: Likewise.
7083 * nscd/getgrnam_r.c: Likewise.
7084 * nscd/nscd_setup_thread.c: Likewise.
7085 * nscd/getpwnam_r.c: Likewise.
7086 * nscd/gai.c: Likewise.
7087 * nscd/connections.c: Likewise.
7088 * nscd/dbg_log.c: Likewise.
7089 * nscd/cache.c: Likewise.
7090 * nscd/hstcache.c: Likewise.
7091 * nscd/nscd_conf.c: Likewise.
7092 * nscd/getgrgid_r.c: Likewise.
7093 * nscd/pwdcache.c: Likewise.
7094 * catgets/gencat.c: Likewise.
7095 * locale/programs/linereader.h: Likewise.
7096 * locale/programs/locarchive.c: Likewise.
7097 * locale/programs/ld-paper.c: Likewise.
7098 * locale/programs/locfile-kw.h: Likewise.
7099 * locale/programs/ld-address.c: Likewise.
7100 * locale/programs/xmalloc.c: Likewise.
7101 * locale/programs/ld-time.c: Likewise.
7102 * locale/programs/localedef.c: Likewise.
7103 * locale/programs/simple-hash.c: Likewise.
7104 * locale/programs/xstrdup.c: Likewise.
7105 * locale/programs/ld-numeric.c: Likewise.
7106 * locale/programs/locfile-kw.gperf: Likewise.
7107 * locale/programs/ld-collate.c: Likewise.
7108 * locale/programs/charmap-kw.gperf: Likewise.
7109 * locale/programs/charmap.h: Likewise.
7110 * locale/programs/charmap-kw.h: Likewise.
7111 * locale/programs/config.h: Likewise.
7112 * locale/programs/locfile.c: Likewise.
7113 * locale/programs/ld-ctype.c: Likewise.
7114 * locale/programs/charmap.c: Likewise.
7115 * locale/programs/ld-messages.c: Likewise.
7116 * locale/programs/repertoire.h: Likewise.
7117 * locale/programs/locale.c: Likewise.
7118 * locale/programs/ld-name.c: Likewise.
7119 * locale/programs/linereader.c: Likewise.
7120 * locale/programs/locfile.h: Likewise.
7121 * locale/programs/3level.h: Likewise.
7122 * locale/programs/ld-monetary.c: Likewise.
7123 * locale/programs/ld-measurement.c: Likewise.
7124 * locale/programs/charmap-dir.c: Likewise.
7125 * locale/programs/ld-identification.c: Likewise.
7126 * locale/programs/localedef.h: Likewise.
7127 * locale/programs/charmap-dir.h: Likewise.
7128 * locale/programs/repertoire.c: Likewise.
7129 * locale/programs/simple-hash.h: Likewise.
7130 * locale/programs/ld-telephone.c: Likewise.
7131 * locale/programs/locale-spec.c: Likewise.
7132 * locale/programs/locfile-token.h: Likewise.
7133 * posix/getconf.c: Likewise.
7134 * iconv/dummy-repertoire.c: Likewise.
7135 * iconv/iconv_charmap.c: Likewise.
7136 * iconv/iconvconfig.c: Likewise.
7137 * iconv/iconv_prog.c: Likewise.
7138 * malloc/memusagestat.c: Likewise.
7139 * sysdeps/unix/sysv/linux/nscd_setup_thread.c: Likewise.
7140
84c23a3d
RM
71412007-07-06 Kaz Kojima <kkojima@rr.iij4u.or.jp>
7142
7143 * sysdeps/sh/bsd-setjmp.S (setjmp): Use correct argument registers.
7144 * sysdeps/sh/bsd-_setjmp.S (_setjmp): Likewise.
7145 * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Do correct sanity
7146 check for the first argument.
7147
1c298d08
UD
71482007-07-12 Jakub Jelinek <jakub@redhat.com>
7149
7150 [BZ #4775]
7151 * math/tgmath.h (__tgmath_real_type_sub): Formatting.
7152 (__tgmath_real_type): Fix if expr is const int or other const
7153 qualified integral type.
7154 (__TGMATH_UNARY_REAL_ONLY): Rewritten to avoid using statement
7155 expressions and handle const qualified arguments.
7156 (__TGMATH_BINARY_FIRST_REAL_ONLY, __TGMATH_UNARY_REAL_IMAG,
7157 __TGMATH_UNARY_REAL_IMAG_RET_REAL): Likewise.
7158 (__TGMATH_UNARY_REAL_RET_ONLY): Rewritten to avoid using
7159 statement expressions.
7160 (__TGMATH_BINARY_REAL_ONLY, __TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY,
7161 __TGMATH_TERNARY_REAL_ONLY, __TGMATH_BINARY_REAL_IMAG): Likewise.
7162 (__TGMATH_UNARY_IMAG): Define.
7163 (conj, cproj): Use __TGMATH_UNARY_IMAG macro.
7164 * math/Makefile (tests): Add test-tgmath2.
7165 (CFLAGS-test-tgmath2.c): Add.
7166 * math/test-tgmath.c (fy, dy, ly, fz, dz, lz, count_cdouble,
7167 count_cfloat, count_cldouble): New variables.
7168 (NCCALLS): Define.
7169 (main): Check number of complex calls as well.
7170 (F(compile_test)): Add complex tests and tests with const qualified
7171 arguments.
7172 (y, z, ccount): Define.
7173 (F(cacos), F(casin), F(catan), F(ccos), F(csin), F(ctan), F(cacosh),
7174 F(casinh), F(catanh), F(ccosh), F(csinh), F(ctanh), F(cexp), F(clog),
7175 F(csqrt), F(cpow), F(cabs), F(carg), F(creal), F(cimag), F(conj),
7176 F(cproj)): New functions.
7177 * math/test-tgmath2.c: New test.
7178
71792007-07-11 Jakub Jelinek <jakub@redhat.com>
7180
7181 [BZ #4776]
7182 * elf/dl-load.c (_dl_rtld_di_serinfo): Output / in LD_LIBRARY_PATH,
7183 RPATH etc. as "/" rather than "", don't segfault on empty paths,
7184 instead output ".".
7185 * dlfcn/Makefile (distribute): Add glreflib3.c.
7186 (module-names): Add glreflib3.
7187 ($(objpfx)tst-dlinfo.out): Depend on glreflib3.so rather than
7188 glreflib1.so.
7189 (LDFLAGS_glreflib3.so): New.
7190 * dlfcn/tst-dlinfo.c (do_test): Load glreflib3.so instead of
7191 glreflib1.so.
7192 * dlfcn/glreflib3.c: New file.
7193
7194 * intl/finddomain.c (_nl_find_domain): If _nl_explode_name
7195 returned -1, return NULL.
7196 * intl/explodename.c (_nl_explode_name): Return -1 if
7197 _nl_normalize_codeset failed.
7198
a88f47a7
UD
71992007-07-07 Steven Munroe <sjmunroe@us.ibm.com>
7200
7201 * sysdeps/powerpc/powerpc32/power6/memset.S: Update comments.
7202 Specify .machine power6 to get ISA-V2.0 branch hints. Unroll loops
7203 and avoid branch misspredicts for > 31 bytes memset case.
7204 * sysdeps/powerpc/powerpc64/power6/memset.S: Likewise.
7205 Remove toc ref to __cache_line_size.
7206
7207 * sysdeps/powerpc/powerpc32/power4/memcmp.S: Specify .machine power4
7208 to get ISA-V2.0 branch hints.
7209 * sysdeps/powerpc/powerpc32/power4/memcpy.S: Likewise
7210 * sysdeps/powerpc/powerpc32/power4/memset.S: Likewise
7211 * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
7212 * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
7213 * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
7214 * sysdeps/powerpc/powerpc64/power4/memset.S: Likewise.
7215 Remove toc ref to __cache_line_size.
7216
7217 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S:
7218 Include math_ldbl_opt.h.
7219
f98c2d06
UD
72202007-07-10 Ulrich Drepper <drepper@redhat.com>
7221
7222 [BZ #4773]
7223 * time/strptime_l.c (__strptime_internal): Implement greedy
7224 matching of weekday and month names.
7225
cec5991f
RM
72262007-07-09 Roland McGrath <roland@redhat.com>
7227
7228 * elf/elf.h (NT_GNU_ABI_TAG): New macro.
7229 (ELF_NOTE_ABI): Use it.
7230 (NT_GNU_HWCAP, NT_GNU_BUILD_ID): New macros.
7231
8c1dcd26
UD
72322007-07-09 Ulrich Drepper <drepper@redhat.com>
7233
7234 * sysdeps/x86_64/cacheinfo.c (intel_02_known): Add new entries.
7235 * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
7236
c2c7bd3f
UD
72372007-07-07 Ulrich Drepper <drepper@redhat.com>
7238
7239 [BZ #4745]
0923a2c8
UD
7240 * stdio-common/vfscanf.c (_IO_vfscanf): Add additional test for EOF
7241 in loop to look for conversion specifier to avoid testing of
7242 wrong errno value.
7243 * stdio-common/Makefile (tests): Add bug18, bug18a, bug19, bug19a.
c2c7bd3f 7244 * stdio-common/bug18.c: New file.
0923a2c8
UD
7245 * stdio-common/bug18a.c: New file.
7246 * stdio-common/bug19.c: New file.
7247 * stdio-common/bug19a.c: New file.
c2c7bd3f 7248
4facf4af
RM
72492007-07-05 Mike Frysinger <vapier@gentoo.org>
7250
7251 * Makeconfig ($(common-objpfx)gnu/lib-names.stmp): Use LC_ALL=C when
7252 running awk script.
7253
1311e86e
UD
72542007-07-01 Jakub Jelinek <jakub@redhat.com>
7255
7256 * elf/dl-sysdep.c (_dl_important_hwcaps): Add integer overflow check.
7257 * elf/dl-minimal.c (__libc_memalign): Likewise. Handle malloc (0).
7258 Return NULL if mmap failed instead of asserting it does not.
7259 (calloc): Check for integer overflow.
7260
7261 * elf/dl-minimal.c (__strtoul_internal): Fix parsing of numbers bigger
7262 than LONG_MAX / 10.
7263
57c9179c
UD
72642007-07-03 Jakub Jelinek <jakub@redhat.com>
7265
7266 [BZ #4702]
7267 * nis/nss-default.c: Include errno.h.
7268 (init): Preserve errno.
7269
d0b283a8
UD
72702007-07-02 Ulrich Drepper <drepper@redhat.com>
7271
7272 * sysdeps/unix/sysv/linux/bits/socket.h (PF_UNIX): Update comment.
7273
34e0bbaf
UD
72742007-06-30 Ulrich Drepper <drepper@redhat.com>
7275
7276 * sysdeps/unix/sysv/linux/bits/socket.h: Add PF_RXRPC and AF_RXRPC.
7277
72782007-06-29 Martin Schwidefsky <schwidefsky@de.ibm.com>
7279
7280 * sysdeps/unix/sysv/linux/bits/socket.h: Add PF_IUCV and AF_IUCV.
7281
34e0bbaf 72822007-06-29 Martin Schwidefsky <schwidefsky@de.ibm.com>
33516494
UD
7283
7284 * sysdeps/s390/dl-procinfo.c: New file.
7285 * sysdeps/s390/dl-procinfo.h: New file.
7286 * sysdeps/unix/sysv/linux/s390/dl-procinfo.h: New file.
7287
0e508a6e
UD
72882007-06-29 Jakub Jelinek <jakub@redhat.com>
7289
7290 * elf/dl-load.c (open_verify): Find .note.ABI-tag notes even
7291 in PT_NOTE segments with multiple notes.
7292 * elf/readelflib.c (process_elf_file): Likewise.
7293
e22c61fb
UD
72942007-06-22 Ulrich Drepper <drepper@redhat.com>
7295
7296 * nis/nis_domain_of.c (__nis_domain_of): Make the code a bit more
7297 ISO C compliant.
7298
e4eb675d
UD
72992007-06-19 Ulrich Drepper <drepper@redhat.com>
7300
7301 * elf/dl-close.c (free_mem): Free _dl_scope_free_list.
7302
73032007-06-13 Jakub Jelinek <jakub@redhat.com>
7304
7305 * include/link.h: Don't include rtld-lowlevel.h.
7306 (struct link_map): Remove l_scope_lock.
7307 * sysdeps/generic/ldsodefs.h: Don't include rtld-lowlevel.h.
7308 (_dl_scope_free_list): New field (variable) in _rtld_global.
7309 (DL_LOOKUP_SCOPE_LOCK): Remove.
7310 (_dl_scope_free): New prototype.
7311 * elf/dl-runtime.c (_dl_fixup): Don't use __rtld_mrlock_*lock.
7312 Don't pass DL_LOOKUP_SCOPE_LOCK to _dl_lookup_symbol_x.
7313 (_dl_profile_fixup): Likewise.
7314 * elf/dl-sym.c (do_sym): Likewise. Use wrapped _dl_lookup_symbol_x
7315 whenever !RTLD_SINGLE_THREAD_P, use THREAD_GSCOPE_SET_FLAG and
7316 THREAD_GSCOPE_RESET_FLAG around it.
7317 * elf/dl-close.c (_dl_close_worker): Don't use
7318 __rtld_mrlock_{change,done}. Call _dl_scope_free on the old
7319 scope. Make sure THREAD_GSCOPE_WAIT () happens if any old
7320 scopes were queued or if l_scope_mem has been abandoned.
7321 * elf/dl-open.c (_dl_scope_free): New function.
7322 (dl_open_worker): Use it. Don't use __rtld_mrlock_{change,done}.
7323 * elf/dl-support.c (_dl_scope_free_list): New variable.
7324 * elf/dl-lookup.c (add_dependency): Remove flags argument.
7325 Remove DL_LOOKUP_SCOPE_LOCK handling.
7326 (_dl_lookup_symbol_x): Adjust caller. Remove DL_LOOKUP_SCOPE_LOCK
7327 handling.
7328 * elf/dl-object.c (_dl_new_object): Don't use
7329 __rtld_mrlock_initialize.
7330
9be09e06
UD
73312007-06-19 Ulrich Drepper <drepper@redhat.com>
7332
7333 * sysdeps/generic/ldsodefs.h (rtld_global): Reorder some elements
7334 to fill in holes
7335 (rtld_global_ro): Likewise.
7336
73372007-06-18 Jakub Jelinek <jakub@redhat.com>
7338
7339 * elf/dl-addr.c (_dl_addr): Skip PT_LOAD checking if l_contiguous.
7340 Move PT_LOAD checking to...
7341 (_dl_addr_inside_object): ... here, new function.
7342 * elf/dl-sym.c (do_sym): If not l_contiguous,
7343 call _dl_addr_inside_object.
7344 * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise.
7345 * dlfcn/dlinfo.c (dlinfo_doit): Likewise.
7346 * elf/dl-open.c (dl_open_worker): Likewise.
7347 (_dl_addr_inside_object): New function if IS_IN_rtld.
7348 * elf/dl-load.c (_dl_map_object_from_fd): Set l_contiguous if no
7349 holes are present or are PROT_NONE protected.
7350 * include/link.h (struct link_map): Add l_contiguous field.
7351 * sysdeps/generic/ldsodefs.h (_dl_addr_inside_object): New prototype.
7352
ae1ad3ae 73532007-06-18 Jakub Jelinek <jakub@redhat.com>
f00d47a3
AS
7354 Tomas Janousek <tjanouse@redhat.com>
7355 Ulrich Drepper <drepper@redhat.com>
ae1ad3ae
UD
7356
7357 [BZ #4647]
7358 * resolv/res_send.c (send_dg): Remove socket_pf. Use ipv6_unavail
7359 member in __res_state, only convaddr4to6 if nssocks[ns] is a PF_INET6
7360 socket.
7361 * resolv/resolv.h (__res_state): Add ipv6_unavail member. Make
7362 unused member a bitmap.
7363 * resolv/res_init.c (__res_vinit): Reset ipv6_unavail if IPv6
7364 servers are configured.
7365
3abee0b7
UD
73662007-06-18 Jakub Jelinek <jakub@redhat.com>
7367
7368 * elf/rtld.c (dl_main): Don't call init_tls more than once.
7369
89074592
UD
73702007-06-17 Andreas Schwab <schwab@suse.de>
7371
7372 * sysdeps/generic/initfini.c: Tell gcc about the nonstandard sections.
7373
b26e274d
AJ
73742007-06-16 Andreas Jaeger <aj@suse.de>
7375
7376 [BZ #4125]
7377 * sysdeps/unix/sysv/linux/sys/ptrace.h
7378 (PTRACE_O_TRACESYSGOOD, PTRACE_O_TRACEFORK,
7379 PTRACE_O_TRACEVFORK, PTRACE_O_TRACECLONE, PTRACE_O_TRACEEXEC,
89074592 7380 PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT, PTRACE_O_MASK,
b26e274d
AJ
7381 PTRACE_EVENT_FORK, PTRACE_EVENT_VFORK, PTRACE_EVENT_CLONE,
7382 PTRACE_EVENT_EXEC, PTRACE_EVENT_VFORK_DONE, PTRACE_EVENT_EXIT):
7383 Define.
7384 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
7385 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
7386 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
7387 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
7388
e0d4a4e5
UD
73892007-06-16 Ulrich Drepper <drepper@redhat.com>
7390
7391 [BZ #4599]
7392 * sysdeps/unix/sysv/linux/check_pf.c (make_request): When
7393 determining whether there are IPv4/IPv6 addresses, ignore loopback
7394 addresses.
7395
ae8e81f5
JJ
73962007-06-14 Uros Bizjak <ubizjak@gmail.com>
7397
7398 * soft-fp/soft-fp.h (CMPtype): Define to "int" if undefined.
7399 * soft-fp/eqdf2.c (__eqdf2): Use CMPtype instead of int
7400 as the return type. Change type of "r" variable to CMPtype.
7401 * soft-fp/eqsf2.c (__eqsf2): Likewise.
7402 * soft-fp/eqtf2.c (__eqtf2): Likewise.
7403 * soft-fp/gedf2.c (__gedf2): Likewise.
7404 * soft-fp/gesf2.c (__gesf2): Likewise.
7405 * soft-fp/getf2.c (__getf2): Likewise.
7406 * soft-fp/ledf2.c (__ledf2): Likewise.
7407 * soft-fp/lesf2.c (__lesf2): Likewise.
7408 * soft-fp/letf2.c (__letf2): Likewise.
7409 * soft-fp/unorddf2 (__unorddf2): Likewise.
7410 * soft-fp/unordsf2 (__unordsf2): Likewise.
7411 * soft-fp/unordtf2 (__unordtf2): Likewise.
7412
90cd2413
UD
74132007-06-09 Ulrich Drepper <drepper@redhat.com>
7414
7415 * elf/do-lookup.h (do_lookup_x): Read r_nlist before r_list and
7416 make sure gcc doesn't mess around with this.
7417
3c457089
UD
74182007-06-08 Ulrich Drepper <drepper@redhat.com>
7419
7420 * elf/dl-lookup.c (_dl_lookup_symbol_x): Remove use of r_nlist.
7421
e8b6b64d
UD
74222007-06-08 Jakub Jelinek <jakub@redhat.com>
7423
7424 * elf/dl-close.c (_dl_close_worker): Remove all to be removed
7425 libraries from the global scope at once and call THREAD_GSCOPE_WAIT
7426 at most once per _dl_close_worker.
7427
36dffb22
UD
74282007-06-08 Ulrich Drepper <drepper@redhat.com>
7429
755db8c5
UD
7430 * sysdeps/unix/sysv/linux/bits/sched.h: Make second parameter of
7431 __sched_cpucount as const.
7432 * posix/sched_cpucount.c: Adjust.
7433
36dffb22
UD
7434 * posix/sched_cpucount.c (__sched_cpucount): Allow using special
7435 instruction for counting bits.
7436 * sysdeps/x86_64/sched_cpucount.c: New file.
7437
26f56c1c
UD
74382007-06-07 Ulrich Drepper <drepper@redhat.com>
7439
7440 * configure.in: Avoid variable named BASH.
e967d385 7441 * config.make.in: Likewise.
26f56c1c 7442 Patch in part by Mike Frysinger.
835abc5c 7443
26f56c1c 74442007-06-06 Jakub Jelinek <jakub@redhat.com>
47779a7d
JJ
7445
7446 [BZ #4586]
835abc5c
UD
7447 * sysdeps/i386/ldbl2mpn.c (__mpn_extract_long_double): Treat
7448 pseudo-zeros as zero.
7449 * sysdeps/x86_64/ldbl2mpn.c: New file.
7450 * sysdeps/ia64/ldbl2mpn.c: New file.
7451
7e3706ea
UD
74522007-06-04 Jakub Jelinek <jakub@redhat.com>
7453
7454 * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (nextafterl): Remove
7455 unused ily variable. Fix nextafterl on +-__LDBL_MAX__ and +-Inf.
7456 Remove unreachable code at the end.
7457
74582007-06-01 Steven Munroe <sjmunroe@us.ibm.com>
7459
7460 * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Correct description of
7461 ldbl-128ibm in comment.
7462 (fpclassifyl): Correct classification of denormals.
7463 * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (nextafterl): Correct
7464 return value for MIN denormal. Rewrite using long double math too
7465 correctly handle denormals and canonicalize the results.
7466
74672007-06-05 Jakub Jelinek <jakub@redhat.com>
7468
7469 * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c
7470 (__mpn_construct_long_double): Fix conversion where result ought
7471 to be smaller than __LDBL_MIN__, or the low double should be
7472 denormal. Fix decision where to negate low double - honor round
7473 to even rules.
7474 * stdio-common/tst-sprintf2.c: Include string.h.
7475 (COMPARE_LDBL): Define.
7476 (TEST): Also test whether a string hexadecimal float representation
7477 can be parsed back to the number.
7478 (main): Add a couple of further tests.
7479
43b76828
UD
74802007-06-04 Jakub Jelinek <jakub@redhat.com>
7481
7482 * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c
7483 (PRINT_FPHEX_LONG_DOUBLE): Fix printing numbers where lower double
7484 is non-zero, but smaller than 2 * __DBL_MIN__.
7485 * stdio-common/tst-sprintf2.c: New test.
7486 * stdio-common/Makefile (tests): Add tst-sprintf2.
7487
7488 * math/test-misc.c (main): Don't run last batch of tests with
7489 IBM long double format.
7490
04067002
UD
74912007-05-31 Steven Munroe <sjmunroe@us.ibm.com>
7492
7493 * sysdeps/powerpc/powerpc32/970/fpu/Implies: New file.
7494 * sysdeps/powerpc/powerpc32/power5/fpu/Implies: New file.
7495 * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: New file.
7496 * sysdeps/powerpc/powerpc32/power6/fpu/Implies: New file.
7497 * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: New file.
7498 * sysdeps/powerpc/powerpc64/970/fpu/Implies: New file.
7499 * sysdeps/powerpc/powerpc64/power5/fpu/Implies: New file.
7500 * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: New file.
7501 * sysdeps/powerpc/powerpc64/power6/fpu/Implies: New file.
7502 * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: New file.
7503 * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: New file.
7504 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies:
7505 New file.
7506 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies:
7507 New file.
7508 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies:
7509 New file.
7510 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies:
7511 New file.
7512 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies:
7513 New file.
7514 * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: New file.
7515 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies:
7516 New file.
7517 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies:
7518 New file.
7519 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies:
7520 New file.
7521 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies:
7522 New file.
7523 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies:
7524 New file.
7525
75262007-05-31 Steven Munroe <sjmunroe@us.ibm.com>
7527
7528 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S: Move.
7529 * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: To here.
7530 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrintf.S: Move.
7531 * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: To here.
7532 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llround.S: Move.
7533 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: To here.
7534 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llroundf.S: Move.
7535 * sysdeps/powerpc/powerpc32/power4/fpu/s_llroundf.S: To here.
7536
75372007-05-22 Steven Munroe <sjmunroe@us.ibm.com>
7538
7539 * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S
7540 (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
7541 * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S
7542 (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
7543 * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S
7544 (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
7545 * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S
7546 (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
7547
75482007-05-21 Steven Munroe <sjmunroe@us.ibm.com>
7549
7550 * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: New file.
7551 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.c: New file.
7552 * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: New file.
7553 * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: New file.
7554
75552007-03-15 Steven Munroe <sjmunroe@us.ibm.com>
7556
7557 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S
7558 [LONG_DOUBLE_COMPAT]: Add compat_symbol for llrintl@@GLIBC_2_1.
7559
75602006-02-13 Steven Munroe <sjmunroe@us.ibm.com>
7561
7562 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: New File
7563 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: New File
7564 * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: New File
7565 * sysdeps/powerpc/powerpc32/power6/fpu/s_llroundf.S: New File
7566
75672006-10-20 Steven Munroe <sjmunroe@us.ibm.com>
7568
7569 * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: New file.
7570 * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: New file.
7571
75722006-10-03 Steven Munroe <sjmunroe@us.ibm.com>
7573
7574 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llround.S: New file.
7575 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llroundf.S: New file.
7576
7577 * sysdeps/powerpc/powerpc32/powerpc64/fpu/Makefile: Moved.
7578 * sysdeps/powerpc/powerpc32/powerpc64/fpu/mpa.c: Likewise.
7579 * sysdeps/powerpc/powerpc32/power4/fpu/Makefile: To here.
7580 * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
7581
75822006-09-29 Steven Munroe <sjmunroe@us.ibm.com>
7583
7584 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lrint.S: New file.
7585 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: New file.
7586 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: New file.
7587 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: New file.
7588
75892006-09-28 Steven Munroe <sjmunroe@us.ibm.com>
7590
7591 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: New file.
7592 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llroundf.S: New file.
7593 * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: New file.
7594 * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: New file.
7595 * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: New file.
7596 * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: New file.
7597
75982006-08-31 Steven Munroe <sjmunroe@us.ibm.com>
7599
7600 * sysdeps/powerpc/powerpc32/powerpc64/fpu/Makefile: New file.
7601 * sysdeps/powerpc/powerpc32/powerpc64/fpu/mpa.c: New file.
7602 * sysdeps/powerpc/powerpc64/power4/fpu/Makefile: New file.
7603 * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: New file.
7604
76052006-06-15 Steven Munroe <sjmunroe@us.ibm.com>
7606
7607 * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceil.S: New file.
7608 * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceilf.S: New file.
7609 * sysdeps/powerpc/powerpc32/power5+/fpu/s_floor.S: New file.
7610 * sysdeps/powerpc/powerpc32/power5+/fpu/s_floorf.S: New file.
7611 * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S: New file.
7612 * sysdeps/powerpc/powerpc32/power5+/fpu/s_roundf.S: New file.
7613 * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S: New file.
7614 * sysdeps/powerpc/powerpc32/power5+/fpu/s_truncf.S: New file.
7615 * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceil.S: New file.
7616 * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceilf.S: New file.
7617 * sysdeps/powerpc/powerpc64/power5+/fpu/s_floor.S: New file.
7618 * sysdeps/powerpc/powerpc64/power5+/fpu/s_floorf.S: New file.
7619 * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S: New file.
7620 * sysdeps/powerpc/powerpc64/power5+/fpu/s_roundf.S: New file.
7621 * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S: New file.
7622 * sysdeps/powerpc/powerpc64/power5+/fpu/s_truncf.S: New file.
7623
76242006-03-20 Steven Munroe <sjmunroe@us.ibm.com>
7625
7626 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S: New file.
7627 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrintf.S: New file.
7628
76292007-06-01 Steven Munroe <sjmunroe@us.ibm.com>
7630
7631 * sysdeps/powerpc/powerpc32/power6/memset.S: New file.
7632 * sysdeps/powerpc/powerpc64/power6/memset.S: New file.
7633
76342007-05-31 Steven Munroe <sjmunroe@us.ibm.com>
7635
7636 * sysdeps/powerpc/powerpc32/970/Implies: New file.
7637 * sysdeps/powerpc/powerpc32/power5/Implies: New file.
7638 * sysdeps/powerpc/powerpc32/power5+/Implies: New file.
7639 * sysdeps/powerpc/powerpc32/power6/Implies: New file.
7640 * sysdeps/powerpc/powerpc32/power6x/Implies: New file.
7641 * sysdeps/powerpc/powerpc64/970/Implies: New file.
7642 * sysdeps/powerpc/powerpc64/power5/Implies: New file.
7643 * sysdeps/powerpc/powerpc64/power5+/Implies: New file.
7644 * sysdeps/powerpc/powerpc64/power6/Implies: New file.
7645 * sysdeps/powerpc/powerpc64/power6x/Implies: New file.
7646
76472007-05-21 Steven Munroe <sjmunroe@us.ibm.com>
7648
7649 * sysdeps/powerpc/powerpc32/power4/memset.S: New file
7650
76512007-03-13 Steven Munroe <sjmunroe@us.ibm.com>
7652
7653 * sysdeps/powerpc/powerpc64/memcpy.S: Improve aligned loop to minimize
7654 branch miss-predicts. Ensure that cache line crossing does not impact
7655 dispatch grouping.
7656
76572006-12-13 Steven Munroe <sjmunroe@us.ibm.com>
7658
7659 * sysdeps/powerpc/powerpc64/power4/memcopy.h: Replace with include
7660 "../../powerpc32/power4/memcopy.h".
7661 * sysdeps/powerpc/powerpc64/power4/wordcopy.c: Replace with include
7662 "../../powerpc32/power4/wordcopy.c".
7663
76642006-10-03 Steven Munroe <sjmunroe@us.ibm.com>
7665
7666 * sysdeps/powerpc/powerpc32/powerpc64/Makefile: Moved.
7667 * sysdeps/powerpc/powerpc32/powerpc64/memcopy.h: Likewise.
7668 * sysdeps/powerpc/powerpc32/powerpc64/wordcopy.c: Likewise.
7669 * sysdeps/powerpc/powerpc32/power4/Makefile: To here.
7670 * sysdeps/powerpc/powerpc32/power4/memcopy.h: Likewise.
7671 * sysdeps/powerpc/powerpc32/power4/wordcopy.c: Likewise.
7672
76732006-09-10 Steven Munroe <sjmunroe@us.ibm.com>
7674
7675 * sysdeps/powerpc/powerpc32/power6/memcpy.S: New file.
7676
76772006-08-31 Steven Munroe <sjmunroe@us.ibm.com>
7678
7679 * sysdeps/powerpc/powerpc32/power6/wordcopy.c: New file.
7680 * sysdeps/powerpc/powerpc32/powerpc64/Makefile: New file.
7681 * sysdeps/powerpc/powerpc32/powerpc64/memcopy.h: New file.
7682 * sysdeps/powerpc/powerpc32/powerpc64/wordcopy.c: New file.
7683 * sysdeps/powerpc/powerpc64/power4/Makefile: New file.
7684 * sysdeps/powerpc/powerpc64/power4/memcopy.h: New file.
7685 * sysdeps/powerpc/powerpc64/power4/wordcopy.c: New file.
7686 * sysdeps/powerpc/powerpc64/power6/wordcopy.c: New file.
7687
76882006-07-06 Steven Munroe <sjmunroe@us.ibm.com>
7689
7690 * sysdeps/powerpc/powerpc64/power6/memcpy.S: New file.
7691
76922006-03-20 Steven Munroe <sjmunroe@us.ibm.com>
7693
7694 * sysdeps/powerpc/powerpc32/power4/memcmp.S: New file.
7695 * sysdeps/powerpc/powerpc32/power4/memcpy.S: New file.
7696 * sysdeps/powerpc/powerpc32/power4/memset.S: New file.
7697 * sysdeps/powerpc/powerpc32/power4/strncmp.S: New file.
7698 * sysdeps/powerpc/powerpc64/power4/memcmp.S: New file.
7699 * sysdeps/powerpc/powerpc64/power4/memcpy.S: New file.
7700 * sysdeps/powerpc/powerpc64/power4/strncmp.S: New file.
7701
5b55e1d3
RM
77022007-05-29 Roland McGrath <roland@redhat.com>
7703
7704 * po/Makefile (po-sed-cmd): New variable.
7705 (libc.pot.files): Move sed command text in there, avoid \ inside ''.
7706
5da4373c
UD
77072007-05-29 Ulrich Drepper <drepper@redhat.com>
7708
4b5e7304
UD
7709 * crypt/md5-crypt.c: Fix comment.
7710
5da4373c
UD
7711 * nscd/nscd_helper.c (get_mapping): Handle short replies instead
7712 of crashing. When this is the case or if the reply is malformed,
7713 don't try to close the new file descriptor since it does not
7714 exist.
7715 Patch in part by Guillaume Chazarain <guichaz@yahoo.fr>.
7716
40f57573
UD
77172007-05-28 Jakub Jelinek <jakub@redhat.com>
7718
7719 * sysdeps/unix/sysv/linux/futimes.c (miss_utimensat): Don't define
7720 if __NR_utimensat is not defined.
7721
6df7ffad
UD
77222007-05-26 Ulrich Drepper <drepper@redhat.com>
7723
7724 * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Include <sysdep.h>.
7725
47ad95ab
UD
77262007-05-25 Jakub Jelinek <jakub@redhat.com>
7727
7728 * io/bits/fcntl2.h (__open_2): Add nonnull attribute.
7729 (open): Fix comment typos. Don't call __open_2 if flags
7730 is a compile time constant without O_CREAT.
7731 (__open64_2): Add nonnull attribute.
7732 (open64): Fix comment typos. Don't call __open64_2 if flags
7733 is a compile time constant without O_CREAT.
7734 (__openat_2): Add nonnull attribute, fix nonnull attribute
7735 on redirect.
7736 (openat): Fix comment typos. Don't call __openat_2 if flags
7737 is a compile time constant without O_CREAT.
7738 (__openat64_2): Add nonnull attribute, fix nonnull attribute
7739 on redirect.
7740 (openat64): Fix comment typos. Don't call __openat64_2 if flags
7741 is a compile time constant without O_CREAT.
7742
ddfd0535
UD
77432007-05-24 Ulrich Drepper <drepper@redhat.com>
7744
7745 * Makerules (sysd-rules): Define PTW for ptw-* files.
7746 * Versions: Define GLIBC_2.7 for libc.
7747 * include/stdio.h: Declare __fortify_fail.
7748 * debug/fortify_fail.c: New file.
7749 * debug/Makefile (routines): Add fortify_fail.
7750 * debug/chk_fail.c: Use __fortify_fail.
7751 * debug/stack_chk_fail.c: Likewise.
7752 * io/Versions: Export __open_2, __open64_2, __openat_2, and
7753 __openat64_2 for GLIBC_2.7.
7754 * io/fcntl.h: When compiling with fortification, include bits/fcntl2.h.
7755 * io/open.c: Define *_2 variant of function which checks for O_CREAT
7756 and fails if necessary.
7757 * io/open64.c: Likewise.
7758 * io/openat.c: Likewise.
7759 * io/openat64.c: Likewise.
7760 * sysdeps/unix/sysv/linux/open64.c: Likewise.
7761 * sysdeps/unix/sysv/linux/openat.c: Likewise.
7762 * sysdeps/unix/sysv/linux/openat64.c: Likewise.
7763 * io/bits/fcntl2.h: New file.
7764 * include/fcntl.h: Declare __open_2, __open64_2, __openat_2, and
7765 __openat64_2.
7766 * include/bits/fcntl2.h: New file.
7767 * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
7768 Add open_2.
7769 * sysdeps/unix/sysv/linux/open_2.c: New file.
7770
bfe6f5fa
UD
77712007-05-21 Ulrich Drepper <drepper@redhat.com>
7772
6d59823c
UD
7773 * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Pass correct value
7774 as second parameter to handle_intel.
7775
e2b1e343
UD
7776 * nscd/aicache.c (addhstaiX): If reported TTL is zero don't cache
7777 the entry.
7778
bfe6f5fa
UD
7779 * sysdeps/unix/sysv/linux/x86_64/sysconf.c: Move cache information
7780 handling to ...
7781 * sysdeps/x86_64/cacheinfo.c: ... here. New file.
7782 * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
7783 cacheinfo.
7784 * sysdeps/x86_64/memcpy.S: Complete rewrite.
7785 * sysdeps/x86_64/mempcpy.S: Adjust appropriately.
7786 Patch by Evandro Menezes <evandro.menezes@amd.com>.
7787
7788 * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: New file.
7789
1f4843fb
UD
77902007-05-21 Jakub Jelinek <jakub@redhat.com>
7791
2c2c003a
UD
7792 [BZ #4525]
7793 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add epoll_pwait.
7794 * sysdeps/unix/sysv/linux/epoll_pwait.c: New file.
7795 * sysdeps/unix/sysv/linux/syscalls.list (epoll_pwait): Remove.
7796
7797 * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h (epoll_pwait): Declare.
7798
af269dd9
UD
7799 [BZ #4514]
7800 * stdio-common/vfprintf.c (vfprintf): Don't shadow workstart variable,
7801 reinitialize workend at the start of each do_positional format spec
7802 loop, free workstart before do_positional loops.
7803 (printf_unknown): Fix size of work_buffer.
7804 * stdio-common/tst-sprintf.c (main): Add 3 new testcases.
7805
1f4843fb
UD
7806 * malloc/hooks.c (MALLOC_STATE_VERSION): Bump.
7807 (public_sET_STATe): If ms->version < 3, put all chunks into
7808 unsorted chunks and clear {fd,bk}_nextsize fields of largebin
7809 chunks.
7810
7811 * malloc/malloc.c [MALLOC_DEBUG]: Revert 2007-05-13 changes.
7812 * malloc/hooks.c: Likewise.
7813 * malloc/arena.c: Likewise.
7814 * malloc/malloc.c (do_check_malloc_state): Don't assert
7815 n_mmaps is not greater than n_mmaps_max. This removes the need
7816 for the previous change.
7817
7818 * malloc/Makefile (CFLAGS-malloc.c): Revert accidental
7819 2007-05-07 commit.
7820
12e8bbff
UD
78212007-05-19 Ulrich Drepper <drepper@redhat.com>
7822
7823 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PRIVATE_FUTEX):
7824 Define for kernel >= 2.6.22.
69e5cbf5 7825
12e8bbff 78262007-05-18 Ulrich Drepper <drepper@redhat.com>
6d59823c 7827
df94b641
UD
7828 * elf/dl-close.c (_dl_close_worker): When removing object from
7829 global scope, wait for all lookups to finish afterwards.
7830 * elf/dl-open.c (add_to_global): When global scope array must
7831 grow, allocate a new one and free old array only after all
7832 lookups finish.
7833 * elf/dl-runtime.c (_dl_fixup): Protect using global scope.
7834 (_dl_lookup_symbol_x): Likewise.
7835 * elf/dl-support.c: Define _dl_wait_lookup_done.
7836 * sysdeps/generic/ldsodefs.h (struct rtld_global): Add
7837 _dl_wait_lookup_done.
7838
2acd01ac
UD
7839 * malloc/malloc.c (do_check_chunk): Correct check for mmaped block
7840 not overlapping with arena.
7841
129abdd3
UD
7842 * malloc/mcheck.c (reallochook): If size==0, free the block.
7843
eb4b098a
UD
7844 * rt/tst-shm.c: Use fstat64 instead of fstat.
7845
69e5cbf5
UD
7846 * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Fix case where
7847 __NR_sync_file_range is not defined.
7848
a2ccc760
UD
78492007-05-17 Ulrich Drepper <drepper@redhat.com>
7850
bec51a30
UD
7851 Dummy files to prevent stub versions from being used.
7852 * sysdeps/x86_64/fpu/k_cosl.c: New file.
7853 * sysdeps/x86_64/fpu/k_rem_pio2l.c: New file.
7854 * sysdeps/x86_64/fpu/k_sinl.c: New file.
7855 * sysdeps/x86_64/fpu/k_tanl.c: New file.
7856
a2ccc760
UD
7857 * version.h (VERSION): Set to 2.6.90.
7858
1a31b586
UD
78592007-05-14 Ulrich Drepper <drepper@redhat.com>
7860
a2ccc760
UD
7861 * version.h (VERSION): Define to 2.6.
7862 * include/features.h (__GLIBC_MINOR__): Define to 6.
2c1d6172 7863
1d47e92f
UD
7864 * malloc/malloc.c: Use all small bin slots on 64-bit archs.
7865
7866 * malloc/malloc.c (largebin_index): Really have 32 buckets with 64
7867 sizes.
366ad8fd 7868
1a31b586 78692007-05-13 Ulrich Drepper <drepper@redhat.com>
87e66335 7870
366ad8fd
UD
7871 * malloc/malloc.c [MALLOC_DEBUG]: Keep track of current maximum
7872 number of mmaps. n_mmaps_max is the target.
7873 * malloc/hooks.c: Likewise.
7874 * malloc/arena.c: Likewise.
7875
11ed6713
AJ
78762007-05-12 Andreas Jaeger <aj@suse.de>
7877
7878 * sysdeps/unix/sysv/linux/tst-getcpu.c: Include <unistd.h> for
7879 getpid.
7880
d65ef3dd
UD
78812007-05-11 Ulrich Drepper <drepper@redhat.com>
7882
2e81d449
UD
7883 * elf/dl-close.c (_dl_close_worker): Help gcc to optimize by
7884 adding new variables.
7885
d65ef3dd 7886 * elf/dl-open.c (add_to_global): Introduce variable ns to help gcc
2e81d449 7887 optimize. Completely extend global scope array before making the
d65ef3dd
UD
7888 new entries visible.
7889
c27d2078
UD
78902007-05-10 Ulrich Drepper <drepper@redhat.com>
7891
341c566f
UD
7892 * sysdeps/unix/sysv/linux/tst-getcpu.c: New file.
7893 * sysdeps/unix/sysv/linux/Makefile [subdir=posix] (tests): Add
7894 tst-getcpu.
7895
7896 * include/link.h: Move l_version and l_nversion members around to
7897 fill gaps.
7898
a53fa282
UD
7899 * scripts/check-c++-types.sh: Don't use -fnu89-inline option.
7900
3771196d
UD
7901 * sysdeps/unix/sysv/linux/sched_setaffinity.c
7902 (__sched_setaffinity_new): If syscall was successful and
7903 RESET_VGETCPU_CACHE is defined, use it before returning.
7904 * sysdeps/unix/sysv/linux/x86_64/sched_setaffinity.c: New file.
7905
f9bf102d
UD
7906 * io/sys/stat.h: Make sure struct timespec is defined for
7907 __USE_ATFILE.
7908
c27d2078
UD
7909 * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Define UTIME_NOW and
7910 UTIME_OMIT.
7911 * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
7912 * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
7913 * sysdeps/unix/sysv/linux/alpha/bits/stat.h: Likewise.
7914 * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
7915 * sysdeps/unix/sysv/linux/bits/stat.h: Likewise.
7916 * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
7917 * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_UTIMENSAT.
7918 * io/sys/stat.h: Declare utimensat, futimens.
7919 * io/utimensat.c: New file.
7920 * io/futimens.c: New file.
7921 * sysdeps/unix/sysv/linux/utimensat.c: New file.
7922 * sysdeps/unix/sysv/linux/futimens.c: New file.
7923 * io/Makefile (routines): Add utimensat, futimens.
7924 * io/Versions: Add utimensat, futimens to GLIBC_2.6.
7925 * sysdeps/unix/sysv/linux/lutimes.c: New file.
7926 * sysdeps/unix/sysv/linux/futimes.c: Use utimensat syscall if
7927 available.
7928
7929 * include/sys/cdefs.h: Redefine __nonnull so that test for
7930 incorrect parameters in the libc code itself are not omitted.
7931
cf6b0980
JJ
79322007-05-09 Jakub Jelinek <jakub@redhat.com>
7933
c1dfd7e6
JJ
7934 * sysdeps/ia64/fpu/fraiseexcpt.c (feraiseexcept): Don't raise overflow
7935 exception in addition to inexact when asked to raise only FE_INEXACT.
7936
cf6b0980
JJ
7937 [BZ #3427]
7938 * sysdeps/s390/fpu/feholdexcpt.c (feholdexcept): Don't clear exceptions
7939 in *envp.
7940
df7b6fea
UD
79412007-05-07 Ulrich Drepper <drepper@redhat.com>
7942
7943 [BZ #4403]
7944 * string/strfry.c (strfry): Make result more random.
7945
37f40235
RH
79462007-05-07 Richard Henderson <rth@redhat.com>
7947
7948 * sysdeps/alpha/fpu/bits/mathinline.h (__isnanl): Don't define
7949 if __NO_LONG_DOUBLE_MATH.
7950 * sysdeps/unix/sysv/linux/alpha/ioperm.c: If BWX insns not
df7b6fea 7951 available in the compiler, add .arch directive to the assembly.
37f40235
RH
7952
79532007-05-07 Jakub Jelinek <jakub@redhat.com>
7954
7955 * sysdeps/alpha/fpu/s_nearbyint.c (nearbyintl): Fix version on
7956 compat_symbol to GLIBC_2_1.
7957 * sysdeps/alpha/fpu/s_fmin.S (fminl): Likewise.
7958 * sysdeps/alpha/fpu/s_trunc.c (truncl): Likewise.
7959 * sysdeps/alpha/fpu/s_fmax.S (fmaxl): Likewise.
7960 * sysdeps/alpha/fpu/s_lrint.c (lrintl, llrintl): Likewise.
7961 * sysdeps/alpha/fpu/s_lround.c (lroundl, llroundl): Likewise.
7962 * sysdeps/alpha/fpu/s_round.c (roundl): Likewise.
7963 * sysdeps/alpha/fpu/s_isnan.c (isnanl): Provide compat_symbol in
7964 libc, not libm.
7965 (__isnanl): New compat_symbol.
7966
c7fd3362
JJ
79672007-05-07 Ulrich Drepper <drepper@redhat.com>
7968 Jakub Jelinek <jakub@redhat.com>
7969
7970 * malloc/arena.c (heap_info): Add mprotect_size field, adjust pad.
7971 (new_heap): Initialize mprotect_size.
7972 (grow_heap): When growing, only mprotect from mprotect_size till
7973 new_size if mprotect_size is smaller. When shrinking, use PROT_NONE
7974 MMAP for __libc_enable_secure only, otherwise use MADV_DONTNEED.
7975
4a59e9ad 79762007-04-30 Steven Munroe <sjmunroe@us.ibm.com>
37f40235 7977 Peter Bergner <bergner@us.ibm.com>
4a59e9ad
UD
7978
7979 * sysdeps/powerpc/bits/fenv.h: Declare __fe_mask_env extern.
7980 Define FE_NOMASK_ENV as FE_EANBLED_ENV. Define FE_MASK_ENV.
7981 * sysdeps/powerpc/fpu/Makefile: Add fe_mask to libm-support.
7982 * sysdeps/powerpc/fpu/fe_mask.c: New file.
7983 * sysdeps/powerpc/fpu/fe_nomask.c: Correct comment.
7984 * sysdeps/powerpc/fpu/fedisblxcpt.c (fedisableexcept):
7985 Call __fe_mask_env() if all FP exceptions disabled.
7986 * sysdeps/powerpc/fpu/feholdexcpt.c (feholdexcept): Copy high 32-bits
7987 from old FPSCR to new fenv to propagate DFP rounding modes.
7988 Call __fe_mask_env() if FP exceptions previously enabled.
7989 * sysdeps/powerpc/fpu/fesetenv.c (fesetenv): Change mask to merge
7990 exceptions from env. Use __fe_nomask_env() or __fe_mask_env() when
7991 transitioning from all exceptions disabled to any exception enabled
7992 or visa versa.
7993 * sysdeps/powerpc/fpu/feupdateenv.c (__feupdateenv): Change mask to
7994 merge exceptions from env. Call __fe_nomask_env or __fe_mask_env
7995 when transitioning from all exceptions disabled to any exception
7996 enabled or visa versa.
7997 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fe_nomask.c: Moved to...
7998 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c: ...here.
7999 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c: Moved to...
8000 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c: ...here.
8001 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c: New file.
8002 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c: New file.
8003
aa75f64c
UD
80042007-05-06 Ulrich Drepper <drepper@redhat.com>
8005
15eca720 8006 [BZ #4465]
aa75f64c
UD
8007 * posix/unistd.h: Remove __THROW from fdatasync.
8008
711deb05
UD
80092007-05-06 Mike Frysinger <vapier@gentoo.org>
8010
15eca720 8011 [BZ #4465]
711deb05
UD
8012 * sysdeps/unix/sysv/linux/syscalls.list (fdatasync): Add "C" to args.
8013
ffecd39b
UD
80142007-05-06 Ulrich Drepper <drepper@redhat.com>
8015
49a8eb75
UD
8016 * stdio-common/vfprintf.c (process_string_arg): Optimize
8017 ridiculous precision in wide char code printing multi-byte string.
8018 Reported by Jim Meyering <jim@meyering.net>.
8019
ffecd39b
UD
8020 [BZ #4131]
8021 * elf/dl-addr.c (_dl_addr): Compare address with actual segment
8022 boundaries to work around systems with overlapping binary loading.
8023 Based on a patch by Suzuki <suzuki@in.ibm.com>.
8024
b16dba4c
UD
80252007-05-04 Ulrich Drepper <drepper@redhat.com>
8026
30b323ab
UD
8027 * stdio-common/vfprintf.c (process_string_arg): Adjust call to
8028 __mbsnrtowcs after last change.
8029
b16dba4c
UD
8030 * locale/programs/linereader.c (get_symname): Fix adding final NUL.
8031 (get_ident): Likewise.
8032
37002cbc
JJ
80332007-05-03 Jakub Jelinek <jakub@redhat.com>
8034
8035 * soft-fp/op-common.h (FP_TRUNC): Replace raising of FP_EX_INEXACT
8036 with setting the sticky bit.
8037 * math/test-misc.c (main): Add more truncation tests.
8038
80392007-04-14 Uros Bizjak <ubizjak@gmail.com>
8040
8041 * soft-fp/floatunsidf.c (__floatunsidf): Use DFtype instead of
8042 double in the function declaration.
8043 * soft-fp/floatundidf.c (__floatundidf): Use DFtype instead of
8044 double in the function declaration.
8045 * soft-fp/floatunsisf.c (__floatunsisf): Use SFtype instead of
8046 float in the function declaration.
8047 * soft-fp/floatunsisf.c (__floatunsisf): Use SFtype instead of
8048 float in the function declaration.
8049
8050 * soft-fp/extended.h (FP_UNPACK_RAW_E): Do not increase X##_e for
8051 denormal operands. Do not generate FP_EX_DENORM exception.
8052 (FP_UNPACK_RAW_EP): Ditto.
8053 (FP_UNPACK_SEMIRAW_E): Use FP_UNPACK_RAW_E instead of
8054 undefined _FP_UNPACK_RAW_E.
8055 (FP_UNPACK_SEMIRAW_EP): Use FP_UNPACK_RAW_EP instead of
8056 undefined _FP_UNPACK_RAW_EP.
8057 (FP_PACK_SEMIRAW_E): Use FP_PACK_RAW_E instead of
8058 undefined _FP_PACK_RAW_E.
8059 (FP_PACK_SEMIRAW_EP): Use FP_PACK_RAW_EP instead of
8060 undefined _FP_PACK_RAW_EP.
8061
d9ac82d0
UD
8062 * soft-fp/op-2.h (_FP_FRAC_COPY_2_2): Define as alias to
8063 _FP_FRAC_COPY_2.
8064 * soft-fp/op-4.h (_FP_FRAC_COPY_2_2): Define as alias to
8065 _FP_FRAC_COPY_4.
37002cbc
JJ
8066
80672007-04-16 Uros Bizjak <ubizjak@gmail.com>
8068 Jakub Jelinek <jakub@redhat.com>
8069
8070 * soft-fp/op-common.h (FP_EXTEND): Do not abort when
8071 _FP_EXPBIAS_##dfs == _FP_EXPBIAS_##sfs. Handle denormals for
8072 this case.
8073 * soft-fp/op-common.h (FP_TRUNC): Ditto.
8074
002f0b0b
JJ
80752007-05-03 Jakub Jelinek <jakub@redhat.com>
8076
8077 * math/test-misc.c (main): Add tests for rounding long double
8078 values close to smallest double denormalized value to double.
8079
80802007-04-30 Joseph Myers <joseph@codesourcery.com>
8081
8082 * soft-fp/op-common.h (FP_TRUNC): Correct off-by-one error in
8083 condition for truncating to 0. Set sticky bit for such
8084 truncation.
8085
57433ede
UD
80862007-05-02 Jakub Jelinek <jakub@redhat.com>
8087
8088 * stdio-common/vfprintf.c (process_string_arg): Use a VLA rather than
8089 fixed length array for ignore.
8090
c01c2455
UD
80912007-04-30 Ulrich Drepper <drepper@redhat.com>
8092
8093 [BZ #4438]
8094 * stdio-common/vfprintf.c (process_string_arg): Don't overflow the
8095 stack for large precisions.
1cb04337
UD
8096 * stdio-common/test-vfprintf.c (main): Add test for large
8097 precision.
c01c2455 8098
37f02b1d
UD
80992007-04-30 Jakub Jelinek <jakub@redhat.com>
8100
b866373d
UD
8101 * stdio-common/printf_fp.c (___printf_fp): Don't print negative sign
8102 for exponent 0.
8103 * stdio-common/tfformat.c (sprint_doubles): Add a new test.
8104
37f02b1d
UD
8105 [BZ #4439]
8106 * resolv/inet_ntop.c (inet_ntop4): Take terminating '\0' into
8107 account in the size check.
8108 * resolv/tst-inet_ntop.c: New test.
8109 * resolv/Makefile (tests): Add tst-inet_ntop.
8110
7ecfbd38
UD
81112007-04-30 Ulrich Drepper <drepper@redhat.com>
8112 Jakub Jelinek <jakub@redhat.com>
8113
8114 [BZ #4349]
8115 * malloc/malloc.c: Keep separate list for first blocks on the bin
8116 lists with a given size. This helps skipping over list elements
8117 we know won't fit in two places.
8118 Inspired by a patch by Tomash Brechko <tomash.brechko@gmail.com>.
8119
e53f0f51
UD
81202007-04-28 Ulrich Drepper <drepper@redhat.com>
8121
8122 [BZ #4102]
8123 * sysdeps/posix/getaddrinfo.c (default_labels): Assign separate
8124 label to Teredo tunnel addresses 2001://32.
8125
109f51f2
UD
81262007-04-27 Ulrich Drepper <drepper@redhat.com>
8127
762422d1
UD
8128 * locale/programs/ld-collate.c (collate_read): Allow order_start
8129 after copy.
8130
61d5a67f
UD
8131 * locale/programs/ld-collate.c (collate_read): Fix printing of
8132 error message.
8133
8134 [BZ #3213]
8135 * locale/C-translit.h.in: Add entry for U2044.
8136
109f51f2
UD
8137 [BZ #4342]
8138 * stdio-common/vfscanf.c (_IO_vfscanf_internal): Allow
8139 hexa-decimal floats without exponent.
8140 * stdio-common/tstscanf.c (main): Adjust Test 8 test for success.
8141
ec08f13d
UD
81422007-04-25 Ulrich Drepper <drepper@redhat.com>
8143
8144 * sysdeps/unix/sysv/linux/bits/sched.h: Declare sched_getcpu.
8145 * sysdeps/unix/sysv/linux/sched_getcpu.c: New file.
8146 * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: New file.
8147 * sysdeps/unix/sysv/linux/Versions: Export sched_getcpu for
8148 GLIBC_2.6.
bce20b9a
UD
8149 * sysdeps/unix/sysv/linux/Makefile [subdir=posix] (sysdep_routines):
8150 Add sched_getcpu.
ec08f13d 8151
41967e1c
JJ
81522007-04-25 Jakub Jelinek <jakub@redhat.com>
8153
8154 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Return -1 instead
8155 of 0 after the out_fail label.
8156
ba508da3
UD
81572007-04-25 Ulrich Drepper <drepper@redhat.com>
8158
8159 [BZ #4406]
109f51f2 8160 * iconv/gconv_charset.h (strip): Allow ':'.
ba508da3
UD
8161 * iconv/iconv_open.c (iconv_open): Adjust comment.
8162
9c8d03d9
JJ
81632007-04-25 Jakub Jelinek <jakub@redhat.com>
8164
8165 * libio/bits/stdio.h (fgetc_unlocked): Add extern inline optimized
8166 version.
8167
2f1687b9
UD
81682007-04-23 Jakub Jelinek <jakub@redhat.com>
8169
8170 [BZ #4381]
8171 * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Ensure sufficient
8172 alignment of buffer and tmp_buffer.
8173 * nis/nss_nis/nis-hosts.c (internal_nis_gethostent_r,
8174 internal_gethostbyname2_r, _nss_nis_gethostbyaddr_r): Ensure sufficient
8175 alignment of buffer.
8176 * resolv/nss_dns/dns-hosts.c (getanswer_r): Likewise. Handle buflen
8177 bigger than INT_MAX.
8178 * resolv/nss_dns/dns-network.c (getanswer_r): Likewise. Add errnop and
8179 h_errnop arguments. Fail if buflen is too small.
8180 (_nss_dns_getnetbyname_r, _nss_dns_getnetbyaddr_r): Adjust callers.
8181
b64a9db8
JJ
81822007-04-23 Jakub Jelinek <jakub@redhat.com>
8183
8184 [BZ #4405]
8185 * iconvdata/gconv-modules (E13B): Add a missing slash to the alias
8186 name. Patch by Aurelien Jarno <aurelien@aurel32.net>.
8187
4d3144c9
RM
81882007-04-22 Roland McGrath <roland@redhat.com>
8189
8190 * elf/elf.h (NT_PRXFPREG): New macro.
8191
767b40bf
AJ
81922007-04-19 Andreas Jaeger <aj@suse.de>
8193
8194 [BZ #3905]
8195 * bits/in.h (IPV6_ROUTER_ALERT, IPV6_MTU_DISCOVER, IPV6_MTU,
8196 IPV6_RECVERR, IPV6_V6ONLY, IPV6_JOIN_ANYCAST, IPV6_LEAVE_ANYCAST):
8197 Added.
8198
2592d1ec
UD
81992007-04-19 Ulrich Drepper <drepper@redhat.com>
8200
8201 * include/sys/mman.h: Mark madvise hidden.
d07d044e 8202 * misc/madvise.c: Add libc_hidden_def.
2592d1ec 8203
7ab174ed
UD
82042007-04-06 Jakub Jelinek <jakub@redhat.com>
8205
8206 * nis/nis_domain_of.c (__nis_domain_of): New function.
8207 * include/rpcsvc/nislib.h (__nis_domain_of): New prototype.
8208 * nis/nis_lookup.c (nis_lookup): Use __nis_domain_of.
8209 * nis/nis_call.c (rec_dirsearch): Likewise.
8210 (first_shoot): Likewise. Remove search_parent_first argument.
8211 (struct nis_server_cache): Rename search_parent_first field
8212 to search_parent.
8213 (nis_server_cache_search, nis_server_cache_add): Rename
8214 search_parent_first argument to search_parent.
8215 (__nisfind_server): Likewise. If search_parent, call
8216 __nis_domain_of.
8217
b17c265f
UD
82182007-04-18 Ulrich Drepper <drepper@redhat.com>
8219
8220 * sysdeps/posix/getaddrinfo.c: Remove commented-out code.
8221
b7674b11
UD
82222007-04-17 Ulrich Drepper <drepper@redhat.com>
8223
8224 [BZ #4368]
8225 * stdlib/stdlib.h: Remove obsolete part of comment for realpath.
8226
faf3ad69
UD
82272007-04-16 Ulrich Drepper <drepper@redhat.com>
8228
8229 [BZ #4364]
8230 * posix/unistd.h (_XOPEN_VERSION): Define appropriately for SUSv3.
8231
c14f245c
UD
82322007-04-15 Jakub Jelinek <jakub@redhat.com>
8233
8234 * locale/programs/locarchive.c (INITIAL_NUM_NAMES,
8235 INITIAL_SIZE_STRINGS, INITIAL_NUM_LOCREC): Update to accomodate
8236 current number of locales in SUPPORTED.
8237 (create_archive): Initialize serial.
8238 (enlarge_archive): Preserve aliases rather than duplicating
8239 their locrecs.
8240
d40e67f5
UD
82412007-04-13 Jakub Jelinek <jakub@redhat.com>
8242
993a5d66
UD
8243 * libio/genops.c (_IO_default_finish): Call _IO_lock_fini
8244 after _IO_un_link, not before it.
8245
d40e67f5
UD
8246 * stdio-common/printf_fp.c (___printf_fp): Fix exponent -4
8247 special case handling when wcp == wstartp + 1. Fix a comment typo.
8248 * stdio-common/tfformat.c (sprint_doubles): Add a new testcase.
8249
0fca3153
UD
82502007-03-30 Jakub Jelinek <jakub@redhat.com>
8251
8252 * libio/libio.h (__underflow, __uflow, __overflow, __wunderflow,
8253 __wuflow, __woverflow, _IO_getc, _IO_putc, _IO_peekc_locked, _IO_padn,
8254 _IO_sgetn, _IO_seekoff, _IO_seekpos, _IO_getwc, _IO_putwc, _IO_wpadn):
8255 Remove __THROW.
8256 * libio/fileops.c (new_do_write, _IO_file_xsgetn_mmap,
8257 _IO_file_xsgetn_maybe_mmap): Likewise.
8258 * libio/oldfileops.c (old_do_write): Likewise.
8259 * libio/libioP.h (_IO_switch_to_get_mode, _IO_switch_to_wget_mode,
8260 _IO_init_marker, _IO_init_wmarker, _IO_default_uflow,
8261 _IO_wdefault_uflow, _IO_default_setbuf, _IO_default_seekpos,
8262 _IO_do_write, _IO_new_do_write, _IO_old_do_write, _IO_wdo_write,
8263 _IO_flush_all_lockp, _IO_flush_all, _IO_cleanup,
8264 _IO_flush_all_linebuffered, _IO_new_fgetpos, _IO_old_fgetpos,
8265 _IO_new_fsetpos, _IO_old_fsetpos, _IO_new_fgetpos64,
8266 _IO_old_fgetpos64, _IO_new_fsetpos64, _IO_old_fsetpos64,
8267 _IO_file_setbuf, _IO_file_seekoff, _IO_file_xsputn, _IO_file_xsgetn,
8268 _IO_file_underflow, _IO_file_underflow_mmap,
8269 _IO_file_underflow_maybe_mmap, _IO_file_overflow, _IO_file_attach,
8270 _IO_file_open, _IO_file_fopen, _IO_file_write, _IO_file_read,
8271 _IO_file_sync, _IO_file_close_it, _IO_file_finish,
8272 _IO_new_file_attach, _IO_new_file_close_it, _IO_new_file_finish,
8273 _IO_new_file_fopen, _IO_new_file_setbuf, _IO_file_setbuf_mmap,
8274 _IO_new_file_sync, _IO_new_file_underflow, _IO_new_file_overflow,
8275 _IO_new_file_seekoff, _IO_new_file_write, _IO_new_file_xsputn,
8276 _IO_old_file_setbuf, _IO_old_file_seekoff, _IO_old_file_xsputn,
8277 _IO_old_file_underflow, _IO_old_file_overflow, _IO_old_file_attach,
8278 _IO_old_file_fopen, _IO_old_file_write, _IO_old_file_sync,
8279 _IO_old_file_close_it, _IO_old_file_finish, _IO_wfile_xsputn,
8280 _IO_wfile_setbuf, _IO_wfile_sync, _IO_wfile_underflow,
8281 _IO_wfile_overflow, _IO_wfile_seekoff, _IO_old_proc_open,
8282 _IO_old_proc_close, _IO_getdelim, _IO_flush_all_internal,
8283 _IO_adjust_column_internal, _IO_default_uflow_internal,
8284 _IO_default_xsgetn_internal, _IO_wdefault_xsputn_internal,
8285 _IO_wdefault_xsgetn_internal, _IO_wdefault_uflow_internal,
8286 _IO_file_setbuf_internal, _IO_file_seekoff_internal,
8287 _IO_file_xsputn_internal, _IO_file_xsgetn_internal,
8288 _IO_file_close_it_internal, _IO_file_underflow_internal,
8289 _IO_file_overflow_internal, _IO_file_attach_internal,
8290 _IO_file_fopen_internal, _IO_file_sync_internal,
8291 _IO_file_finish_internal, _IO_wfile_xsputn_internal,
8292 _IO_wfile_seekoff_internal, _IO_wfile_sync_internal,
8293 _IO_switch_to_wget_mode_internal, _IO_padn_internal,
8294 _IO_switch_to_get_mode_internal, _IO_seekoff_unlocked,
8295 _IO_seekpos_unlocked): Likewise.
8296 (_IO_strtod, _IO_dtoa, _IO_outfloat, _IO_read, _IO_write,
8297 _IO_lseek, _IO_close, _IO_fstat): Remove unused prototypes.
8298
07358add
JJ
82992007-04-16 Jakub Jelinek <jakub@redhat.com>
8300
8301 * locale/programs/locarchive.c (show_archive_content): Fix sizeof
8302 argument in xmalloc size computation.
8303
7a82b74f
UD
83042007-04-01 Jakub Jelinek <jakub@redhat.com>
8305
8306 * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl): Use
8307 math_opt_barrier and math_force_eval macros.
8308
3e336a87
UD
83092007-03-27 Jakub Jelinek <jakub@redhat.com>
8310
8311 [BZ #3306]
8312 * math/math_private.h (math_opt_barrier, math_force_eval): Define.
8313 * sysdeps/i386/fpu/math_private.h: New file.
8314 * sysdeps/x86_64/fpu/math_private.h: New file.
8315 * math/s_nexttowardf.c (__nexttowardf): Use math_opt_barrier and
8316 math_force_eval macros. Use "+m" constraint on asm rather than
8317 "=m" and "m".
8318 * math/s_nextafter.c (__nextafter): Likewise.
8319 * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c (__nexttoward):
8320 Likewise.
8321 * sysdeps/ieee754/flt-32/s_nextafterf.c (__nextafterf): Likewise.
8322 * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward): Likewise.
8323 * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
8324 * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Use
8325 math_opt_barrier and math_force_eval macros.
8326 * sysdeps/ieee754/ldbl-128/s_nextafterl.c (__nextafterl): Likewise.
8327 * sysdeps/ieee754/ldbl-96/s_nextafterl.c (__nextafterl): Likewise.
8328 * sysdeps/i386/fpu/s_nexttoward.c: Include float.h.
8329 (__nexttoward): Use math_opt_barrier and
8330 math_force_eval macros. Use "+m" constraint on asm rather than
8331 "=m" and "m". Only use asm to force double result if
8332 FLT_EVAL_METHOD is 2.
8333 * sysdeps/i386/fpu/s_nexttowardf.c: Include float.h.
8334 (__nexttowardf): Use math_opt_barrier and
8335 math_force_eval macros. Use "+m" constraint on asm rather than
8336 "=m" and "m". Only use asm to force double result if
8337 FLT_EVAL_METHOD is not 0.
8338 * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Include float.h.
8339 (__nexttowardf): Use math_opt_barrier and
8340 math_force_eval macros. If FLT_EVAL_METHOD is not 0, force
8341 x to float using asm.
8342 * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c: Include float.h.
8343 (__nldbl_nexttowardf): Use math_opt_barrier and
8344 math_force_eval macros. If FLT_EVAL_METHOD is not 0, force
8345 x to float using asm.
8346 * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Include float.h.
8347 (__nexttowardf): Use math_opt_barrier and math_force_eval
8348 macros. If FLT_EVAL_METHOD is not 0, force x to float using asm.
8349 * math/bug-nextafter.c (zero, inf): New variables.
8350 (main): Add new tests.
8351 * math/bug-nexttoward.c (zero, inf): New variables.
8352 (main): Add new tests.
8353
a8c79c40
UD
83542007-03-22 Jakub Jelinek <jakub@redhat.com>
8355
8356 [BZ #3427]
8357 * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Clear all
8358 exceptions both in SW and MXCSR.
8359 * sysdeps/x86_64/fpu/feupdateenv.c: New file.
8360 * sysdeps/x86_64/fpu/feenablxcpt.c (feenableexcept): Remove dead code.
8361 * sysdeps/x86_64/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
8362 * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions
8363 in MXCSR if SSE is available.
8364 * sysdeps/i386/fpu/feupdateenv.c: Include unistd.h, dl-procinfo.h
8365 and ldsodefs.h.
8366 (__feupdateenv): Query exceptions also from MXCSR if SSE is available.
8367 Fix comment typo.
8368 * sysdeps/ia64/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions.
8369 Return 0 rather than 1.
8370 * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Fix comment typo.
8371 Remove incorrect part of a comment. Fix argument to feraiseexcept.
8372 * math/test-fenv.c (feholdexcept_tests): New function.
8373 (main): Call it.
8374
83752007-01-05 Richard B. Kreckel <kreckel@ginac.de>
8376
8377 [BZ #3427]
8378 * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions
8379 in SW.
8380
30a3aa75
JJ
83812007-04-13 Jakub Jelinek <jakub@redhat.com>
8382
8383 [BZ #4344]
8384 * elf/ldconfig.c (search_dir): Fix 2 off-by-2 errors.
8385 Reported by David Anderson <davea42@earthlink.net>.
8386
75587bfe
UD
83872007-04-07 Ulrich Drepper <drepper@redhat.com>
8388
8389 * posix/sys/wait.h: Remove unnecessary forward declaration.
8390
88fa1769
JJ
83912007-04-05 Jakub Jelinek <jakub@redhat.com>
8392
8393 * nis/nis_call.c (__nisfind_server): Replace (*dir)->do_servers
8394 with obj->do_servers after first_shoot.
8395
eab1bdfb
UD
83962007-04-03 Ulrich Drepper <drepper@redhat.com>
8397
8398 * posix/Makefile (routines): Add sched_cpucount.
8399 (tests): Add tst-cpucount.
8400 * posix/sched_cpucount.c: New file.
8401 * posix/tst-cpucount.c: New file.
8402 * posix/Versions: Export __sched_cpucount with version GLIBC_2.6.
b4afdd06
UD
8403 * bits/sched.h: Define __CPU_COUNT. Declare __sched_cpucount.
8404 * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
8405 * posix/sched.h: Define CPU_COUNT.
eab1bdfb 8406
9700b039
UD
84072007-03-27 Jakub Jelinek <jakub@redhat.com>
8408
8409 * posix/fnmatch.c (STRUCT): Define.
8410 (fnmatch): Pass NULL as last argument to internal_fn{,w}match.
8411 * posix/fnmatch_loop.c (struct STRUCT): New type.
8412 (FCT): Add ends argument. If ends != NULL and normal * is
8413 seen in the pattern, store current pattern and string pointers
8414 and return. Adjust recursive calls.
8415 (EXT): Adjust FCT callers.
8416 (STRUCT): Undef at the end of the file.
8417 * posix/Makefile (tests): Add tst-fnmatch2.
8418 * posix/tst-fnmatch2.c: New test.
8419
d64e9790
JJ
84202007-04-01 Jakub Jelinek <jakub@redhat.com>
8421
933dfe7b
JJ
8422 * sysdeps/ia64/fpu/fesetround.c (fesetround): Return 0 on success
8423 and 1 on failure.
8424
d64e9790
JJ
8425 * sysdeps/unix/sysv/linux/sync_file_range.c (sync_file_range):
8426 Change last argument to unsigned int.
8427
e1f0c5bc
UD
84282007-03-23 Jakub Jelinek <jakub@redhat.com>
8429
8430 * scripts/check-local-headers.sh: Filter out sys/capability.h.
8431
84322007-03-22 Jakub Jelinek <jakub@redhat.com>
8433
8434 * config.h.in (HAVE_LIBCAP): Add.
8435 * nscd/selinux.h: Include sys/capability.h rather than non-existent
8436 sys/capabilities.h.
8437 * nscd/selinux.c (preserve_capabilities): Use cap_free instead of
8438 free_caps. Cast away const from 4th cap_set_flag argument.
8439
4e87573f
UD
84402007-03-26 Ulrich Drepper <drepper@redhat.com>
8441
8442 * sysdeps/unix/sysv/linux/Versions: Move sync_file_range to
8443 GLIBC_2.6.
8444 * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
8445 Add sync_file_range.
8446 Reported by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
8447
fa6e3bc3
UD
84482007-03-19 Steven Munroe <sjmunroe@us.ibm.com>
8449
8450 * sysdeps/powerpc/bits/atomic.h
8451 [!MUTEX_HINT_ACQ]: Define MUTEX_HINT_ACQ.
8452 [!MUTEX_HINT_REL]: Define MUTEX_HINT_REL.
8453 (__arch_compare_and_exchange_val_32_acq): Add MUTEX_HINT_ACQ to lwarx.
8454 (__arch_compare_and_exchange_val_32_rel): Add MUTEX_HINT_REL to lwarx.
8455 (__arch_atomic_exchange_val_32_acq): Add MUTEX_HINT_ACQ to lwarx.
8456 (__arch_atomic_exchange_rel_32_rel): Add MUTEX_HINT_REL to lwarx.
8457 * sysdeps/powerpc/powerpc32/bits/atomic.h [_ARCH_PWR6 || _ARCH_PWR6X]:
8458 Define MUTEX_HINT_ACQ as ",1" and MUTEX_HINT_REL as ",0".
8459 (__arch_compare_and_exchange_bool_32_acq): Add MUTEX_HINT_ACQ to lwarx.
8460 (__arch_compare_and_exchange_bool_32_rel): Add MUTEX_HINT_REL to lwarx.
8461 * sysdeps/powerpc/powerpc64/bits/atomic.h [_ARCH_PWR6 || _ARCH_PWR6D]:
8462 Define MUTEX_HINT_ACQ as ",1" and MUTEX_HINT_REL as ",0".
8463 (__arch_compare_and_exchange_bool_32_acq): Add MUTEX_HINT_ACQ to lwarx.
8464 (__arch_compare_and_exchange_bool_32_rel): Add MUTEX_HINT_REL to lwarx.
8465 (__arch_compare_and_exchange_bool_64_acq): Add MUTEX_HINT_ACQ to lwarx.
8466 (__arch_compare_and_exchange_bool_64_rel): Add MUTEX_HINT_REL to lwarx.
8467 (__arch_compare_and_exchange_val_64_acq): Add MUTEX_HINT_ACQ to lwarx.
8468 (__arch_compare_and_exchange_val_64_rel): Add MUTEX_HINT_REL to lwarx.
8469 (__arch_atomic_exchange_val_64_acq): Add MUTEX_HINT_ACQ to lwarx.
8470 (__arch_atomic_exchange_rel_64_rel): Add MUTEX_HINT_REL to lwarx.
8471
84722007-03-20 Jakub Jelinek <jakub@redhat.com>
c7693af7
UD
8473
8474 * sysdeps/unix/sysv/linux/powerpc/libc-start.c
8475 (__cache_line_size): Define the variable here. Add
8476 attribute_hidden, remove weak_extern.
8477 (__libc_start_main): Set __cache_line_size
8478 unconditionally.
8479 * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
8480 (__cache_line_size): Define the variable here. Add
8481 attribute_hidden, remove weak_extern.
8482 (DL_PLATFORM_AUXV): Set __cache_line_size
8483 unconditionally.
8484 * sysdeps/powerpc/powerpc32/dl-machine.c (__cache_line_size): Remove
8485 weak_extern, add attribute_hidden.
8486 (__elf_machine_runtime_setup): Assume __cache_line_size is always
8487 defined in ld.so.
8488 * sysdeps/powerpc/powerpc32/memset.S (__cache_line_size): Remove
8489 definition.
8490 * sysdeps/powerpc/powerpc64/memset.S (__cache_line_size): Likewise.
8491
0479e581
JJ
84922007-03-26 Jakub Jelinek <jakub@redhat.com>
8493
8494 [BZ #4276]
8495 * timezone/africa: Update from tzdata2007d.
8496 * timezone/asia: Likewise.
8497 * timezone/australasia: Likewise.
8498 * timezone/backward: Likewise.
8499 * timezone/europe: Likewise.
8500 * timezone/iso3166.tab: Likewise.
8501 * timezone/leapseconds: Likewise.
8502 * timezone/northamerica: Likewise.
8503 * timezone/southamerica: Likewise.
8504 * timezone/zone.tab: Likewise.
8505
8506 * timezone/private.h: Update from tzcode2007d.
8507 * timezone/zdump.c: Likewise.
8508 * timezone/zic.c: Likewise.
8509
697d37b1
JJ
85102007-03-21 Jakub Jelinek <jakub@redhat.com>
8511
8512 * nis/nis_call.c: Include bits/libc-lock.h, sys/stat.h, unistd.h.
8513 (nis_server_cache, nis_server_cache_lock, nis_cold_start_mtime): New
8514 variables.
8515 (nis_server_cache_search, nis_server_cache_add): New functions.
8516 (__nisfind_server): Use them. Add dbp and flags argument, if
8517 call __nisbind_create.
8518 (__nisbind_create): Add server_used and current_ep arguments,
8519 only call __nis_findfastest if server_used is ~0.
8520 (__do_niscall2, __prepare_niscall): Adjust callers.
8521 (ckey_cache, ckey_cache_size, ckey_cache_allocated, ckey_cache_pid,
8522 ckey_cache_euid, ckey_cache_lock): New variables.
8523 (get_ckey): New function.
8524 (__nisbind_connect): If not dbp->use_udp, pass IPPROTO_TCP to
8525 __pmap_getnisport. Save __pmap_getnisport result in
8526 dbp->addr.sin_port if non-zero. Use get_ckey to create conversation
8527 key.
8528 * nis/nis_lookup.c (nis_lookup): Likewise.
8529 * nis/nis_table.c (nis_list): Likewise.
8530 * nis/rpcsvc/nislib.h (__nisbind_create, __nisfind_server): Adjust
8531 prototypes.
8532
8533 * nis/nss_nisplus/nisplus-pwd.c (_nss_nisplus_getpwnam_r,
8534 _nss_nisplus_getpwuid_r): Pass USE_DGRAM flag to nis_list.
8535 * nis/nss_nisplus/nisplus-service.c (_nss_nisplus_getservbyname_r,
8536 _nss_nisplus_getservbyport_r): Likewise.
8537 * nis/nss_nisplus/nisplus-network.c (_nss_nisplus_getnetbyname_r,
8538 _nss_nisplus_getnetbyaddr_r): Likewise.
8539 * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_getspnam_r): Likewise.
8540 * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_gethostton_r,
8541 _nss_nisplus_getntohost_r): Likewise.
8542 * nis/nss_nisplus/nisplus-rpc.c (_nss_nisplus_getrpcbyname_r,
8543 _nss_nisplus_getrpcbynumber_r): Likewise.
8544
06029c20
JJ
85452007-03-20 Jakub Jelinek <jakub@redhat.com>
8546
371f84a4
JJ
8547 * configure.in (libc_cv_gnu89_inline): Only do compile test.
8548 * configure: Rebuilt.
8549
06029c20
JJ
8550 * soft-fp/double.h (_FP_UNION_D): Use _FP_W_TYPE for frac
8551 bit-fields.
8552 * soft-fp/extended.h (_FP_UNION_E): Likewise.
8553
85542006-06-07 Joseph Myers <joseph@codesourcery.com>
8555
8556 [BZ #2831]
8557 * soft-fp/quad.h (_FP_UNION_Q): Use _FP_W_TYPE for frac
8558 bit-fields.
8559
addc8335
UD
85602007-03-18 Jakub Jelinek <jakub@redhat.com>
8561
8562 * nscd/gai.c: Include alloca.h.
8563 (__libc_use_alloca): Define.
8564
b037a293
UD
85652007-03-16 Jakub Jelinek <jakub@redhat.com>
8566
965cba04
UD
8567 * elf/dl-open.c (dl_open_worker): Declare l in 2 different
8568 smaller scopes.
8569 * elf/dl-dst.h (DL_DST_REQ_STATIC): Add l as macro argument.
8570 (DL_DST_REQUIRED): Adjust user.
8571
8572 * include/dlfcn.h (struct link_map): New forward decl.
8573
8574 * inet/getnameinfo.c: Include stddef.h.
8575 (getnameinfo): Use offsetof.
8576
8577 * time/tst-mktime2.c (do_test): Don't rely on signed wrap.
8578
8579 * stdio-common/vfprintf.c (_itoa): Undef before redefining.
8580
8581 * string/strerror_l.c: Include stdlib.h.
8582
b037a293
UD
8583 * configure.in (libc_cv_gnu89_inline): Test for -fgnu89-inline.
8584 * config.make.in (gnu89-inline-CFLAGS): New variable.
8585 * Makeconfig (CFLAGS): Use $(gnu89-inline-CFLAGS) together with
8586 -std=gnu99.
8587 * misc/sys/cdefs.h (__extern_inline, __extern_always_inline): Define.
8588 * argp/argp.h: Use it.
8589 * bits/mathinline.h: Likewise.
8590 * bits/sigset.h: Likewise.
8591 * bits/string.h: Likewise.
8592 * ctype/ctype.h: Likewise.
8593 * hurd/hurd.h: Likewise.
8594 * hurd/hurd/fd.h: Likewise.
8595 * hurd/hurd/port.h: Likewise.
8596 * hurd/hurd/signal.h: Likewise.
8597 * hurd/hurd/threadvar.h: Likewise.
8598 * hurd/hurd/userlink.h: Likewise.
8599 * io/sys/stat.h: Likewise.
8600 * libio/bits/stdio.h: Likewise.
8601 * libio/bits/stdio2.h: Likewise.
8602 * mach/lock-intern.h: Likewise.
8603 * mach/mach/mig_support.h: Likewise.
8604 * math/bits/cmathcalls.h: Likewise.
8605 * posix/bits/unistd.h: Likewise.
8606 * socket/bits/socket2.h: Likewise.
8607 * stdlib/bits/stdlib.h: Likewise.
8608 * stdlib/stdlib.h: Likewise.
8609 * string/argz.h: Likewise.
8610 * string/bits/string2.h: Likewise.
8611 * string/bits/string3.h: Likewise.
8612 * sysdeps/alpha/fpu/bits/mathinline.h: Likewise.
8613 * sysdeps/generic/inttypes.h: Likewise.
8614 * sysdeps/generic/machine-lock.h: Likewise.
8615 * sysdeps/generic/machine-sp.h: Likewise.
8616 * sysdeps/i386/fpu/bits/mathinline.h: Likewise.
8617 * sysdeps/i386/i486/bits/string.h: Likewise.
8618 * sysdeps/ia64/fpu/bits/mathinline.h: Likewise.
8619 * sysdeps/mach/alpha/machine-lock.h: Likewise.
8620 * sysdeps/mach/alpha/machine-sp.h: Likewise.
8621 * sysdeps/mach/i386/machine-lock.h: Likewise.
8622 * sysdeps/mach/powerpc/machine-lock.h: Likewise.
8623 * sysdeps/mach/powerpc/machine-sp.h: Likewise.
8624 * sysdeps/powerpc/fpu/bits/mathinline.h: Likewise.
8625 * sysdeps/s390/bits/string.h: Likewise.
8626 * sysdeps/s390/fpu/bits/mathinline.h: Likewise.
8627 * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
8628 * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Likewise.
8629 * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
8630 * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
8631 * sysdeps/unix/sysv/linux/sys/sysmacros.h: Likewise.
8632 * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
8633 * wcsmbs/bits/wchar2.h: Likewise.
8634 * wcsmbs/wchar.h: Likewise.
8635 * stdlib/gmp.h: Likewise. Include <features.h> to get
8636 __extern_inline definition.
8637
6b2665f5
UD
86382007-03-15 Jakub Jelinek <jakub@redhat.com>
8639
b037a293
UD
8640 * locale/programs/ld-ctype.c (find_translit): Return NULL if ctype is
8641 NULL.
8642
6b2665f5
UD
8643 [BZ #3919]
8644 * math/libm-test.inc (log_test): Test -Inf and NaN.
8645 (log10_test, log1p_test, log2_test): Test -Inf.
8646 * sysdeps/i386/fpu/e_log.S (__ieee754_log): Don't raise
8647 FE_INVALID when argument is qNaN.
8648 * sysdeps/i386/fpu/e_logl.S (__ieee754_logl): Likewise.
8649 * sysdeps/i386/fpu/e_logf.S (__ieee754_logf): Likewise.
8650 * sysdeps/x86_64/fpu/e_logl.S (__ieee754_logl): Likewise.
8651 * sysdeps/x86_64/fpu/e_log10l.S (__ieee754_log10l): Replace
8652 andb $1, %ah with testb $1, %ah, don't test for parity, instead
8653 testb $4, %ah and jump if non-zero.
8654 * sysdeps/x86_64/fpu/e_log2l.S (__ieee754_log2l): Likewise.
8655 * sysdeps/x86_64/fpu/s_log1pl.S (__log1pl): Likewise.
8656
44969f17
UD
8657 [BZ #4101]
8658 * argp/argp-help.c (hol_cluster_cmp): Fix comparisons used to find
8659 ancestors with the same depths.
8660 Patch by Niels Moeller <nisse@lysator.liu.se>.
8661 (filter_doc): Don't crash if argp is NULL.
8662 * argp/Makefile (tests): Add tst-argp2.
8663 * argp/tst-argp2.c: New test.
8664
05eb8975
UD
8665 [BZ #4130]
8666 * login/utmp_file.c (setutent_file): Use O_LARGEFILE for
8667 open_not_cancel_2.
8668 (updwtmp_file): Likewise.
8669
6cb988fa
UD
8670 [BZ #4181]
8671 * inet/inet6_opt.c (add_padding): Only insert padding if npad > 0.
8672 (inet6_opt_append): Don't check extlen is big enough if extbuf
8673 is NULL.
8674 (inet6_opt_finish): Likewise.
8675 * inet/Makefile (tests): Add test-inet6_opt.
8676 * inet/test-inet6_opt.c: New test.
8677
8678 * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Never
8679 reallocate the buffer, instead fail for MSG_TRUNC or for EBUSY
8680 NLMSG_ERR. Instead use a page sized buffer.
8681 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Use page sized
8682 buffer.
8683
aea1d19e
RH
86842007-03-14 Richard Henderson <rth@redhat.com>
8685
b6df547c
RH
8686 * sysdeps/alpha/fpu/s_llround.c: New file.
8687 * sysdeps/alpha/fpu/s_llroundf.c: New file.
8688 * sysdeps/alpha/fpu/s_lround.c: New file.
8689 * sysdeps/alpha/fpu/s_lroundf.c: New file.
8690 * sysdeps/alpha/fpu/s_round.c: New file.
8691 * sysdeps/alpha/fpu/s_roundf.c: New file.
8692 * sysdeps/alpha/fpu/s_trunc.c: New file.
8693 * sysdeps/alpha/fpu/s_truncf.c: New file.
8694
aea1d19e
RH
8695 * sysdeps/alpha/fpu/s_ceil.c: Rewrite without branches.
8696 * sysdeps/alpha/fpu/s_ceilf.c: Likewise.
8697 * sysdeps/alpha/fpu/s_floor.c: Likewise.
8698 * sysdeps/alpha/fpu/s_floorf.c: Likewise.
8699 * sysdeps/alpha/fpu/s_rint.c: Likewise.
8700 * sysdeps/alpha/fpu/s_rintf.c: Likewise.
8701
8702 * sysdeps/alpha/fpu/s_fmax.S: New file.
8703 * sysdeps/alpha/fpu/s_fmaxf.S: New file.
8704 * sysdeps/alpha/fpu/s_fmin.S: New file.
8705 * sysdeps/alpha/fpu/s_fminf.S: New file.
8706 * sysdeps/alpha/fpu/s_isnan.c: New file.
8707 * sysdeps/alpha/fpu/s_isnanf.c: New file.
8708 * sysdeps/alpha/fpu/s_llrint.c: New file.
8709 * sysdeps/alpha/fpu/s_llrintf.c: New file.
8710 * sysdeps/alpha/fpu/s_lrint.c: New file.
8711 * sysdeps/alpha/fpu/s_lrintf.c: New file.
8712 * sysdeps/alpha/fpu/s_nearbyint.c: New file.
8713 * sysdeps/alpha/fpu/s_nearbyintf.c: New file.
8714
8715 * sysdeps/alpha/fpu/bits/mathinline.h (__floorf, __floor): Remove.
8716 (__fdimf, fdimf, __fdim, fdim): Remove.
8717 (__signbitf, __signbit, __signbitl): Use gcc builtin if available.
8718 (__isnanf, __isnan, __isnanl): New.
8719
9e43b50d
RH
87202007-03-13 Richard Henderson <rth@redhat.com>
8721
8722 * sysdeps/ieee754/ldbl-128/Makefile: New file.
8723
62789da3
RH
87242007-03-13 Richard Henderson <rth@redhat.com>
8725
8726 * sysdeps/alpha/Makefile (sysdep-CFLAGS): Force dynamic rounding.
8727 * sysdeps/alpha/fpu/bits/mathinline.h (__signbitl): New.
8728 * sysdeps/alpha/fpu/libm-test-ulps: Regenerate.
8729 * sysdeps/unix/sysv/linux/alpha/alphaev6/fpu/Implies: New file.
8730 * sysdeps/unix/sysv/linux/alpha/alphaev67/fpu/Implies: New file.
8731 * sysdeps/unix/sysv/linux/alpha/fpu/Implies: New file.
8732
47dbe62b
RH
87332007-03-13 Richard Henderson <rth@redhat.com>
8734
37f40235 8735 * elf/dl-support.c (_dl_aux_init): Honor DL_PLATFORM_AUXV.
47dbe62b
RH
8736 * sysdeps/unix/sysv/linux/alpha/dl-auxv.h: New file.
8737 * sysdeps/unix/sysv/linux/alpha/dl-support.c: New file.
8738 * sysdeps/unix/sysv/linux/alpha/dl-sysdep.c (__libc_alpha_cache_shape):
8739 Move to dl-auxv.h; initialize instead of extern weak.
8740 (DL_PLATFORM_AUXV): Move to dl-auxv.h; don't test for undef
8741 weak symbol.
8742 * sysdeps/unix/sysv/linux/alpha/sysconf.c (__libc_alpha_cache_shape):
8743 Extern instead of initialized.
8744
b8097bed
RH
87452007-03-13 Richard Henderson <rth@redhat.com>
8746
8747 * sysdeps/unix/sysv/linux/alpha/sigsuspend.S: Add support for
8748 __sigsuspend_nocancel.
8749
6bf4a686
UD
87502007-03-06 Ulrich Drepper <drepper@redhat.com>
8751
8752 * sysdeps/posix/getaddrinfo.c (get_scope): Correct test for
8753 172.16/12 address range.
8754
0b3b1a0c
UD
87552007-03-02 Jakub Jelinek <jakub@redhat.com>
8756
8757 * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Retry with
8758 a new netlink socket if NLMSG_ERR -EBUSY is seen after some MSG_TRUNC
8759 message.
8760
8f3edfee
UD
87612007-03-01 Jakub Jelinek <jakub@redhat.com>
8762
c1c5e654 8763 [BZ #4069]
8f3edfee
UD
8764 * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Check for NaN
8765 earlier.
8766 * math/libm-test.inc (pow_test): Add more tests involving NaNs.
8767
8768 * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Avoid invalid exception
8769 for x qNaN and y either +-inf or non-integer value.
8770 * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Likewise.
8771 * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.
8772 * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
8773
245a1481
UD
87742007-02-10 Mike Frysinger <vapier@gentoo.org>
8775
8776 * sysdeps/unix/sysv/linux/sh/Makefile: Remove sys/io.h
8777 from sysdep_headers.
8778
c217692b
UD
87792007-02-28 Jakub Jelinek <jakub@redhat.com>
8780
8781 * time/tzfile.c (find_transition): Instead of a linear search try to
8782 guess the transition index, use a linear search if the result is at
8783 most 10 transitions away from the guess or binary search otherwise.
8784
fe64626c
JJ
87852007-02-27 Jakub Jelinek <jakub@redhat.com>
8786
8787 * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Fix
8788 memory reallocation.
8789
0f7769f7
UD
87902007-02-21 Ulrich Drepper <drepper@redhat.com>
8791
621c133d
UD
8792 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Add branch predictions
8793 and fix some typos.
8794 Optimize use of TOLOWER.
9cf147d8 8795
cdfd61e1
UD
8796 [BZ #3325]
8797 * sysdeps/i386/fpu/e_fmodf.S: Revert last changes, keep using fprem.
8798 * sysdeps/i386/fpu/e_fmodl.c: Likewise.
8799 * sysdeps/i386/fpu/e_fmod.S: Likewise.
8800
8889e7aa
UD
8801 [BZ #3458]
8802 * sysdeps/unix/sysv/linux/posix_madvise.c: New file.
8803 * sysdeps/unix/sysv/linux/syscalls.list: Remove posix_madvise entry.
8804
63a2f305
UD
8805 [BZ #4076]
8806 * io/ftw.c (ftw_startup): Handle special case of FTW_CHDIR in /.
8807 (open_dir_stream): Likewise.
8808 * io/Makefile (tests): Add bug-ftw5.
c536b9b8 8809 * io/bug-ftw5.c: New file.
63a2f305 8810
c8703f88
UD
8811 * nscd/hstcache.c (cache_addhst): Remove unnecessary conditional.
8812 * nscd/servicescache.c (cache_addserv): Likewise.
8813
8814 * nscd/grpcache.c (cache_addgr): In case a record changed on
8815 refresh, adjust key_copy.
8816
61705e06
UD
8817 [BZ #4074]
8818 * nscd/pwdcache.c (cache_addpw): In case a record changed on
8819 refresh, adjust key_copy.
8820
0f7769f7
UD
8821 [BZ #4070]
8822 * stdio-common/printf_fp.c (___printf_fp): Handle a few more
0f7769f7 8823 special cases.
8889e7aa 8824 * stdio-common/tfformat.c (sprint_doubles): Some more tests.
0f7769f7 8825
3979024a
UD
88262007-02-19 Ulrich Drepper <drepper@redhat.com>
8827
4c02bf1a
UD
8828 * stdio-common/printf_fp.c (___printf_fp): Cleanups and minor
8829 optimization.
8830
3979024a
UD
8831 * stdio-common/vfscanf.c: Small cleanups throughout.
8832
821d3e70
UD
88332007-02-18 Ulrich Drepper <drepper@redhat.com>
8834
2484468b
UD
8835 [BZ #3325]
8836 * sysdeps/i386/fpu/e_fmodf.S: Use fprem1 instead of fprem.
8837 * sysdeps/i386/fpu/e_fmodl.c: Likewise.
8838 * sysdeps/i386/fpu/e_fmod.S: Likewise.
8839 Patch by Jared Casper <jaredcasper@gmail.com>.
8840
858ee15d
UD
8841 * sysdeps/unix/closedir.c: Outside libc don't use locking.
8842 * sysdeps/unix/opendir.c: Likewise.
8843 * sysdeps/unix/readdir.c: Likewise.
8844
ecb72bd5
UD
8845 [BZ #2211]
8846 * stdio-common/vfscanf.c: Handle localized digits etc for floating
8847 point numbers.
8848 Patch mostly by Hamed Malek <hamed@farsiweb.info>.
8849
ac2ca022
UD
8850 * stdio-common/vfscanf.c: Fix problems in width accounting.
8851 * stdio-common/tst-sscanf.c (double_tests): New tests.
8852 (main): Hook them up.
8853
e9bb5246 8854 * stdio-common/vfscanf.c: Remove unused WIDTH handling.
da50f001 8855 More simplifications of floating-point reader.
e9bb5246 8856
821d3e70
UD
8857 * stdio-common/Makefile (tests): Add tst-swscanf.
8858 * stdio-common/tst-sscanf.c: Make tests usable for swscanf
8859 testing.
8860 * stdio-common/tst-swscanf.c: New file.
8861
07fb5185
UD
88622007-02-17 Ulrich Drepper <drepper@redhat.com>
8863
9138cc0b
UD
8864 [BZ #2633]
8865 * libio/stdio.h: Define struct _IO_FILE in global namespace.
8866 * setjmp/setjmp.h: Define __jmp_buf_tag in global namespace.
8867 Remove using for __jmp_buf_tag.
8868 * locale/locale.h (struct lconv): Also define in std namespace.
8869 * wcsmbs/wchar.h: Move using declaration for tm out of namespace.
8870
6818d837
UD
8871 [BZ #3842]
8872 * sysdeps/posix/euidaccess.c [_LIBC] (euidaccess): Remove shortcut
8873 using __libc_enable_secure.
8874
15c4b5a4
UD
8875 [BZ #3818]
8876 * sysdeps/unix/sysv/linux/sys/acct.h (struct acct_v3): Define.
8877
5e9e9c14
UD
8878 [BZ #3745]
8879 * locale/programs/ld-collate.c (handle_ellipsis): Fix generation
8880 of names for ellipsises.
8881
07fb5185
UD
8882 [BZ #3348]
8883 * malloc/memusage.sh: Cleanups.
8884 * debug/xtrace.sh: Quoting and trap changes.
8885
8c6d1043
UD
88862007-02-16 Ulrich Drepper <drepper@redhat.com>
8887
07fb5185
UD
8888 * locale/iso-3166.def: Add Jersey, Guernsey, and Isle Of Man entries.
8889
93e66914 8890 * locale/iso-3166.def: Update entry for Serbia.
93e36434
UD
8891 * locale/iso-4217.def: Define RSD, remove CSD.
8892
ad0b348c
UD
8893 * sysdeps/x86_64/bits/atomic.h: One more change, this time for 16-
8894 and 64-bit operations.
8895
8896 [BZ #4040]
8897 * sysdeps/i386/i486/bits/atomic.h: One more change, this time for
8898 16-bit operations.
8899
8c6d1043
UD
8900 * nscd/nscd.c (parse_opt): One more conversion to use send instead
8901 of writev.
8902
987f54c6
UD
89032007-02-15 Ulrich Drepper <drepper@redhat.com>
8904
b3715c05
UD
8905 [BZ #3991]
8906 * assert/assert.h (assert): Simplify.
8907 (assert_perror): Likewise.
8908 Patch by Israel G. Lugo <ilugo@bridonsecurity.com>.
8909
6eea8e0d
UD
8910 * nscd/nscd_helper.c (open_socket): Don't send padding bytes from
8911 reqdata.
8912
987f54c6
UD
8913 * sysdeps/unix/sysv/linux/x86_64/send.c (__libc_send): Cosmetic
8914 change: don't pass NULL in place of an integer.
8915
3dc08a7e
UD
89162007-02-02 Bruno Haible <bruno@clisp.org>
8917
06c17c78
UD
8918 [BZ #3954]
8919 * iconvdata/ksc5601.c (__ksc5601_sym_to_ucs, __ksc5601_sym_from_ucs):
8920 Add mapping for U+327E.
8921 * iconvdata/ksc5601.h (KSC5601_SYMBOL): Increment.
8922 * iconvdata/johab.c (BODY for FROM_LOOP, BODY for TO_LOOP): Enable
8923 mapping of 0xD9 0xE8.
8924 * iconvdata/uhc.c (BODY for FROM_LOOP, BODY for TO_LOOP): Disable
8925 mapping of U+327E.
8926 Reported by Jungshik Shin <jungshik@google.com>.
8927
8928 [BZ #3955]
3dc08a7e
UD
8929 * iconvdata/johab.c (BODY for FROM_LOOP, BODY for TO_LOOP): Enable
8930 mapping of 0xD9 0xE6 and of 0xD9 0xE7.
8931 Reported by Jungshik Shin <jungshik@google.com>.
8932
a810e68c
UD
89332007-02-14 Ulrich Drepper <drepper@redhat.com>
8934
8935 * sysdeps/x86_64/bits/atomic;h: Fix asm parameters for some
8936 byte variants.
8937
8938 [BZ #4040]
8939 * sysdeps/i386/i486/bits/atomic.h: Fix asm parameters for some
8940 byte variants. Patch mostly be tom@tommay.net.
8941
05f135ba
UD
89422007-02-14 Jakub Jelinek <jakub@redhat.com>
8943
8944 [BZ #3996]
8945 * posix/glob.c (attribute_hidden): Define if not defined.
8946 (glob): Unescape dirname, filename or username when needed and not
8947 GLOB_NOESCAPE. Handle \/ correctly. Handle GLOB_MARK if filename
8948 is NULL. Handle unescaped [ in pattern without closing ].
8949 Don't pass GLOB_CHECK down to recursive glob for directories.
8950 (__glob_pattern_type): New function.
8951 (__glob_pattern_p): Implement using __glob_pattern_type.
8952 (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
8953 characters and backslashes if not GLOB_NOESCAPE or unterminated [.
8954 Remove unreachable code.
8955 * posix/globtest.sh: Add a couple of new tests.
8956
2f699967
UD
89572007-02-13 Ulrich Drepper <drepper@redhat.com>
8958
8959 * po/ru.po: Update from translation team.
8960
3a7cd5b4
JJ
89612007-02-12 Jakub Jelinek <jakub@redhat.com>
8962
8963 * sysdeps/i386/bits/byteswap.h (__bswap_32): Add __amdfam10__
8964 to the list of i486+ CPUs.
8965 * sysdeps/x86_64/bits/byteswap.h (__bswap_32): Likewise.
8966
2f978feb
UD
89672007-02-12 Ulrich Drepper <drepper@redhat.com>
8968
8969 * elf/rtld.c (RESOLVE_MAP): Always return bootstrap_map reference.
8970 * elf/Makefile ($(objpfx)ld.so): Check that ld.so has no undefined
8971 references.
8972
2bbb7d5b
UD
89732007-02-09 Ulrich Drepper <drepper@redhat.com>
8974
5ed61e0f
UD
8975 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Remove incorrect comment.
8976
2bbb7d5b
UD
8977 * resolv/res_init.c (res_setoptions): Recognize edns0 option.
8978 * resolv/res_mkquery.c: Define __res_nopt.
8979 * resolv/res_query.c (__libc_res_nquery): If RES_USE_EDNS0 is set
8980 try adding EDNS0 record.
8981 * resolv/res_send.c (send_dg): If request failed with FORMERR and
8982 EDNS0 record was send make sure we don't try it again.
8983 * resolv/resolv.h: Define RES_F_EDNS0ERR and RES_USE_EDNS0.
8984 * include/resolv.h: Declare __res_nopt.
8985
00458b5b
UD
89862007-02-08 Jakub Jelinek <jakub@redhat.com>
8987
8988 [BZ #3944]
8989 * time/strptime_l.c (__strptime_internal): Set have_mon for
8990 %b/%B/%h. Set have_mon and have_mday if tm_mon and tm_mday
8991 have been computed from tm_yday and tm_year. Don't crash
8992 in day_of_the_week or day_of_the_year if not have_mon
8993 and tm_mon contains bogus value.
8994 * time/Makefile (tests): Add tst-strptime3.
8995 * time/tst-strptime3.c: New test.
8996
784aacea
UD
89972007-02-05 Jakub Jelinek <jakub@redhat.com>
8998
8999 [BZ #3957]
9000 * posix/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
9001 bit for RE_HAT_LISTS_NOT_NEWLINE.
9002 (build_charclass_op): Remove bogus comment.
9003 * posix/Makefile (tests): Add bug-regex27 and bug-regex28.
9004 * posix/bug-regex27.c: New test.
9005 * posix/bug-regex28.c: New test.
9006
bf7a2463
UD
90072007-02-03 Ulrich Drepper <drepper@redhat.com>
9008
9009 * po/sv.po: Update from translation team.
9010
f2ccf983
UD
90112007-02-02 Ulrich Drepper <drepper@redhat.com>
9012
9013 * nscd/nscd_helper.c (open_socket): Minor size optimization.
9014
73f50d5a
UD
90152007-02-02 Jakub Jelinek <jakub@redhat.com>
9016
9017 * include/locale.h (__uselocale): Add libc_hidden_proto.
9018 * locale/uselocale.c (__uselocale): Add libc_hidden_def.
9019
f6bf9e59
JJ
9020 * nscd/nscd_helper.c (open_socket): Use __gettimeofday instead of
9021 gettimeofday.
9022
4a44ce79
UD
90232007-02-01 Ulrich Drepper <drepper@redhat.com>
9024
9025 * sysdeps/unix/sysv/linux/i386/sysdep.h (PTR_MANGLE): Roll value before
9026 returning.
9027 (PTR_DEMANGLE): Real definition now that it's not the same as
9028 PRT_MANGLE anymore.
9029 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
9030
9031 * string/strerror_l.c: New file.
9032 * string/Makefile (routines): Add strerror_l.
9033 * string/string.h: Declare strerror_l.
9034 * string/Versions: Export strerror_l for GLIBC_2.6.
9035
58a2d52e
UD
90362007-01-31 Ulrich Drepper <drepper@redhat.com>
9037
9038 * nscd/nscd_helper.c (open_socket): Now takes request type and key
9039 as parameter. Construct request record. Try sending request
9040 before the first poll use, it usually succeeds. Adjust all
9041 callers.
9042 * nscd/nscd-client.h: Define MAXKEYLEN.
4a44ce79 9043 * nscd/connections.c (nscd_run): Don't define MAXKEYLEN here.
58a2d52e 9044
1a77d37f
JJ
90452007-01-31 Jakub Jelinek <jakub@redhat.com>
9046
9047 * nscd/nscd-client.h (__nscd_cache_search): Remove const qualifier
9048 from return value.
9049 * nscd/nscd_helper.c: Include string.h.
9050 (__nscd_cache_search): Remove const qualifier from return value.
9051 On strict alignment architectures check hash entry and data head
9052 alignment.
9053 * nscd/nscd_getpw_r.c (nscd_getpw_r): Don't crash or fail because
9054 mmapped data during GC cycle contains garbage. If
9055 __nscd_drop_map_ref fails, decrement mapped->counter when returning
9056 error or if retrying with NO_MAPPING, only __nscd_unmap if counter
9057 dropped to 0.
9058 * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
9059 * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
9060 * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
9061 * nscd/nscd_getai.c (__nscd_getai): Likewise.
9062 * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
9063
ee314200
UD
90642007-01-30 Ulrich Drepper <drepper@redhat.com>
9065
9066 * misc/hsearch_r.c (hdestroy_r): Remove unnecessary test.
9067
14c8bf3b
UD
90682007-01-26 Ulrich Drepper <drepper@redhat.com>
9069
9070 * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Use register
9071 names not numbers in cfi_*.
9072
d2708e67
AJ
90732007-01-26 Andreas Jaeger <aj@suse.de>
9074
9075 * sysdeps/unix/sysv/linux/sys/personality.h (ADDR_NO_RANDOMIZE,
14c8bf3b 9076 ADDR_LIMIT_3GB, PER_LINUX_32BIT, PER_LINUX32_3GB): Add.
d2708e67
AJ
9077 Correct values of PER_HPUX and PER_OSF4.
9078
7fbc8784
UD
90792007-01-24 Ulrich Drepper <drepper@redhat.com>
9080
8aaf53ee 9081 * elf/dl-minimal.c: Undefine _itoa first.
7fbc8784
UD
9082 * stdio-common/_itoa.h: Define _itoa and _fitoa for 64-bit platforms.
9083 * malloc/mtrace.c: Revert last change.
9084 * posix/wordexp.c: Likewise.
9085
9d6cde3d
UD
90862007-01-24 Jakub Jelinek <jakub@redhat.com>
9087
9088 * sysdeps/i386/bits/byteswap.h (__bswap_32): Add __nocona__, __core2__
9089 and __geode__ to the list of i486+ CPUs.
9090 * sysdeps/x86_64/bits/byteswap.h (__bswap_32): Likewise.
9091
c1f0486a
UD
90922007-01-23 Ulrich Drepper <drepper@redhat.com>
9093
9094 * stdio-common/_itoa.c: Include <limits.h>.
9095 * stdio-common/_itowa.c: Likewise.
9096
6cae3957
UD
90972007-01-22 Ulrich Drepper <drepper@redhat.com>
9098
765bbb24
UD
9099 * stdio-common/_itowa.c: Don't compile _itowa for 64-bit
9100 platforms.
9101 * stdio-common/_itoa.c: Don't compile in _itoa and _fitoa for
9102 64-bit platforms.
9103 * malloc/mtrace.c (tr_where): Use _fitoa_word instead of _fitoa if
9104 possible.
9105 * posix/wordexp.c (parse_arith): Use _itoa_word instead of _itoa
9106 if possible.
9107
6cae3957
UD
9108 [BZ #3902]
9109 * stdio-common/_itoa.c (_itoa): Make sure at least a zero is emitted.
9110 * stdio-common/Makefile (tests): Add bug17.
9111 * stdio-common/bug17.c: New file.
9112
ddaafd04
UD
91132007-01-19 Ulrich Drepper <drepper@redhat.com>
9114
9115 * iconvdata/brf.c: New file.
439201de
UD
9116 * iconvdata/testdata/BRF: New file.
9117 * iconvdata/testdata/BRF..UTF8: New file.
9118 Contributed by Samuel Thibault <samuel.thibault@ens-lyon.org>.
ddaafd04
UD
9119 * iconvdata/Makefile: Add rules to build BRF.
9120 * iconvdata/TESTS: Add BRF entry.
9121 * iconvdata/gconv-modules: Likewise.
9122 * iconvdata/tst-tables.sh: Likewise.
ddaafd04 9123
9e6e344e
UD
91242007-01-18 Anton Nikishaev <anton.nik@gmail.com>
9125
9126 * wcsmbs/wchar.h (wcstoll): Fix comment, function returns value of
9127 type `long long int', not `long int'.
9128 (wcstoq): Likewise.
9129
299f7b0f
UD
91302007-01-18 Ulrich Drepper <drepper@redhat.com>
9131
9132 * scripts/gen-as-const.awk: Add cast to long to avoid int promotion
9133 of values on 64-bit platforms which are too large.
9134
cd8127cc
JJ
91352007-01-12 Steven Munroe <sjmunroe@us.ibm.com>
9136 Joe Kerian <jkerian@us.us.ibm.com>
9137
9138 [BZ #2749]
9139 * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Include
9140 <math_ldbl_opt.h>. Remove weak_alias. Use long_double_symbol macro.
9141 (__copysignl): Use signbit() for comparison.
9142 * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Correct parms for
9143 SET_LDOUBLE_WORDS64.
9144
9145 [BZ #2423, #2749]
9146 * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Don't include <fenv_libc.h>.
9147 (__ceill): Remove calls to fegetround(), fesetround().
9148 * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
9149 * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
9150 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
9151
b3acfdf7
JJ
91522007-01-17 Jakub Jelinek <jakub@redhat.com>
9153
4a2e03c6
JJ
9154 * nscd/nscd_getserv_r.c (nscd_getserv_r): Fix pastos.
9155
b3acfdf7
JJ
9156 * sysdeps/unix/sysv/linux/getdents.c (offsetof): Remove.
9157
1476bce6
UD
91582007-01-17 Ulrich Drepper <drepper@redhat.com>
9159
9160 * sysdeps/unix/sysv/linux/fatal-prepare.h: Use PTHFCT_CALL to
9161 demangle pointer.
9162 * csu/libc-start.c: Likewise.
9163
d78bce1c
UD
91642007-01-16 Ulrich Drepper <drepper@redhat.com>
9165
9166 * sysdeps/posix/system.c: Remove NO_WAITPID support, it cannot
9167 really work anyway.
9168
1bd79025
UD
91692007-01-15 Ulrich Drepper <drepper@redhat.com>
9170
000b027e
UD
9171 * nscd/connections.c (servinfo): Renamed to reqinfo. Change all
9172 users.
9173 (handle_request): Remove unnecessary tests.
9174
1bd79025
UD
9175 * nscd/cache.c (cache_add): Record the failure to add to the cache.
9176
d68f5d2c
JJ
91772007-01-15 Jakub Jelinek <jakub@redhat.com>
9178
9179 * soft-fp/op-common.h (FP_TRUNC): When truncating a NaN, clear
9180 workbits in semi-raw fraction.
9181
9182 * math/test-misc.c: Add new tests.
9183
91842007-01-14 Steven Munroe <sjmunroe@us.ibm.com>
9185
9186 * math/basic-test.c: Include test-skeleton.c.
9187 (TEST_TRUNC): Define.
9188 (truncdfsf_test, trunctfsf_test, trunctfdf_test): New.
9189 (main): Rename to ...
9190 (do_test): ...this. Run new tests.
9191 (TEST_FUNCTION): Define.
9192
91932006-10-05 Steven Munroe <sjmunroe@us.ibm.com>
9194 Joe Kerian <jkerian@us.us.ibm.com>
9195
9196 [BZ #2749]
9197 * soft-fp/op-4.h (__FP_FRAC_SUB_3, __FP_FRAC_SUB_4): Correct borrow
9198 handling for high words.
9199 * soft-fp/op-common.h (_FP_OVERFLOW_SEMIRAW): Always set inexact
9200 and overflow for infinity.
9201
4e35ef2c
UD
92022007-01-15 Ulrich Drepper <drepper@redhat.com>
9203
2a1dea97
UD
9204 * nscd/connections.c (handle_request): Add a __builtin_expect.
9205
9691d83c
UD
9206 * nscd/connections.c (serv2db): Change type into structure which
9207 also says whether this is a request for data. Renamed to
9208 servinfo. All users changed.
9209 (handle_request): Much simpler test whether we should search the cache.
9210
49ee6d79
UD
9211 * nscd/connections.c (handle_request): Fix thinko in selinux test
9212 invocation.
9213
4e35ef2c
UD
9214 * sysdeps/generic/ldsodefs.h: Define DL_LOOKUP_SCOPE_LOCK.
9215 * elf/dl-lookup.c (add_dependency): If scope map is locked, unlock
9216 it before getting dl_load_lock and then relock.
9217 (_dl_lookup_symbol_x): Pass flags to add_dependency.
9218 When rerunning _dl_lookup_symbol_x, compute symbol_scope again in
9219 case we unlocked the scope.
9220 * elf/dl-runtime.c (_dl_fixup): Pass DL_LOOKUP_SCOPE_LOCK to
9221 _dl_lookup_symbol_x in case we locked the scope.
9222 (_dl_profile_fixup): Likewise.
9223 * elf/dl-sym.c (do_sym): In flags passed to call_dl_lookup, also
9224 set DL_LOOKUP_SCOPE_LOCK.
9225
23691ab2
UD
92262007-01-13 Ulrich Drepper <drepper@redhat.com>
9227
fb453d08
UD
9228 * inet/Makefile: Define CFLAGS-getsrvbynm_r.c and
9229 CFLAGS-getsrvbynpt_r.c.
9230 * nscd/getsrvbynm_r.c: New file.
9231 * nscd/getsrvbypt_r.c: New file.
9232 * nscd/nscd_getserv_r.c: New file.
9233 * nscd/servicescache.c: New file.
9234 * nscd/Makefile (routines): Add nscd_getserv_r.
9235 (nscd-modules): Add getsrvbynm_r, getsrvbypt_r, and servicescache.
9236 Define CFLAGS-servicescache.c, CFLAGS-getsrvbynm_r.c, and
9237 CFLAGS-getsrvbypt_r.c.
9238 * nscd/cache.c (prune_cache): Rewrite to get re-add function from
9239 table. Add entries for services database.
9240 * nscd/connections.c (serv2str): Mark as const. Add entries for
9241 services database.
9242 (dbs): Add .reset_res and servdb initialization.
9243 (serv2db): Add entries for services database.
9244 (verify_persistent_db): Accept dbnr == servdb.
9245 (invalidate_cache): Rewrite database name recognition to use a table.
9246 Call res_init() if .reset_res is set for database.
9247 (handle_request): Add code to handle services database.
9248 * nscd/gai.c: Don't define __getservbyname_r.
9249 * nscd/nscd-client.h (request_type): Remove LASTDBREQ, add
9250 GETSERVBYNAME, GETSERVBYPORT, GETFDSERV.
9251 (serv_response_header): Define.
9252 (struct datahead): Add serv_response_header member.
9253 * nscd/nscd.c (parse_opt): Rewrite parsing of -i parameter value
9254 using table.
9255 * nscd/nscd.conf: Add entries for services database.
9256 * nscd/nscd.h: Adjust declaration of dbnames and serv2str.
9257 Declare serv_iov_disabled.
9258 Declare addservbyname, readdservbyname, addservbyport, and
9259 readdservbyport.
9260 * nscd/nscd_conf.c (dbnames): Mark as const. Add services entry.
9261 (find_db): Fix error message.
9262 * nscd/nscd_proto.h: Declare __nss_not_use_nscd_services,
9263 __nscd_getservbyname_r, and __nscd_getservbyport_r.
9264 * nscd/selinux.c (perms): Add entries for services database.
9265 * nss/Versions: Export __nss_services_lookup with GLIBC_PRIVATE.
9266 * nss/nsswitch.c (__nss_disable_nscd): Also disable services database.
9267
9268 * nscd/grpcache.c: Remove obsolete code. Cleanups.
9269 * nscd/hstcache.c: Likewise.
9270 * nscd/pwdcache.c: Likewise.
9271
b21fa963
UD
9272 * nis/nss_nis/nis-service.c (_nss_nis_getservbyname_r): Correct
9273 computation of keylen.
9274
23691ab2
UD
9275 * include/string.h: Only redefine strndupa if this is really for
9276 libc code.
9277
8980796b
UD
92782007-01-12 Ulrich Drepper <drepper@redhat.com>
9279
4a4a65f2
UD
9280 * nscd/nscd_gethst_r.c: Minor cleanups.
9281
43397eaf
UD
9282 * nscd/connections.c (handle_request): Check selinux permissions
9283 for all non-admin commands.
9284
038a1a9f
UD
9285 * sysdeps/i386/i486/bits/atomic.h: Define
9286 atomic_compare_and_exchange_val_acq,
9287 atomic_compare_and_exchange_bool_acq, and atomic_exchange_and_add
9288 using __sync_* built-ins for gcc >= 4.1.
9289 * sysdeps/x86_64/bits/atomic.h: Likewise.
9290
8980796b
UD
9291 [BZ #3840]
9292 * scripts/check-local-headers.sh: Restrict to testing .o.d, .os.d,
9293 and .oS.d files.
9294
32c075e1
JJ
92952007-01-05 Steven Munroe <sjmunroe@us.ibm.com>
9296
9297 * stdlib/tst-makecontext.c: Include errno.h. Change main()
9298 to do_test(). Define TEST_FUNCTION. Include test-skeleton.c.
9299 (do_test): Check errno and exit(0) if ENOSYS.
9300
93012007-01-11 Jakub Jelinek <jakub@redhat.com>
9302
9303 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix handling of multi-byte
9304 thousands separators.
9305 * stdlib/Makefile: Add rules to build and run tst-strtod4.
9306 * stdlib/tst-strtod4.c: New test.
9307
9308 [BZ #3855]
9309 * stdlib/strtod_l.c (____STRTOF_INTERNAL): 0x. not followed by
9310 hexadecimal digit should accept just the initial 0.
9311 * stdlib/tst-strtod2.c (tests): New variable.
9312 (do_test): Run several tests rather than just one.
9313
11bf311e 93142007-01-11 Jakub Jelinek <jakub@redhat.com>
df859a0c 9315
11bf311e
UD
9316 * sysdeps/i386/soft-fp/sfp-machine.h: Remove.
9317 * sysdeps/x86_64/soft-fp/sfp-machine.h: Likewise.
df859a0c 9318
11bf311e 93192007-01-10 Ulrich Drepper <drepper@redhat.com>
32c075e1 9320
11bf311e
UD
9321 * io/fts.c: Make sure fts_cur is always valid after return from
9322 fts_read.
9323 Patch by Miloslav Trmac <mitr@redhat.com>.
64a0aa0f 9324
11bf311e 93252006-10-27 Richard Sandiford <richard@codesourcery.com>
32c075e1 9326
11bf311e
UD
9327 * elf/elf.h (R_MIPS_GLOB_DAT): Define.
9328 (R_MIPS_NUM): Bump by 1.
32c075e1 9329
11bf311e 93302007-01-03 Jakub Jelinek <jakub@redhat.com>
32c075e1 9331
11bf311e
UD
9332 * posix/execvp.c: Include alloca.h.
9333 (allocate_scripts_argv): Renamed to...
9334 (scripts_argv): ... this. Don't allocate buffer here nor count
9335 arguments.
9336 (execvp): Use alloca if possible.
9337 * posix/Makefile: Add rules to build and run tst-vfork3 test.
9338 * posix/tst-vfork3.c: New test.
32c075e1
JJ
9339
93402007-01-03 Ulrich Drepper <drepper@redhat.com>
9341
9342 * string/Makefile (tst-strxfrm2-ENV): Define.
11bf311e 9343 * stdlib/Makefile (tst-strtod3-ENV): Define.
32c075e1 9344
11bf311e 93452007-01-02 Ulrich Drepper <drepper@redhat.com>
32c075e1 9346
11bf311e
UD
9347 * posix/getconf.c: Update copyright year.
9348 * nss/getent.c: Likewise.
9349 * iconv/iconvconfig.c: Likewise.
9350 * iconv/iconv_prog.c: Likewise.
9351 * elf/ldconfig.c: Likewise.
9352 * catgets/gencat.c: Likewise.
9353 * csu/version.c: Likewise.
9354 * elf/ldd.bash.in: Likewise.
9355 * elf/sprof.c (print_version): Likewise.
9356 * locale/programs/locale.c: Likewise.
9357 * locale/programs/localedef.c: Likewise.
9358 * nscd/nscd.c (print_version): Likewise.
9359 * debug/xtrace.sh: Likewise.
9360 * malloc/memusage.sh: Likewise.
9361 * malloc/mtrace.pl: Likewise.
9362 * debug/catchsegv.sh: Likewise.
64a0aa0f 9363
11bf311e 93642006-12-24 Ulrich Drepper <drepper@redhat.com>
48576885 9365
11bf311e
UD
9366 * malloc/malloc.c (sYSMALLOc): Remove some unnecessary alignment
9367 attempts.
48576885 9368
11bf311e 93692006-12-23 Ulrich Drepper <drepper@redhat.com>
3b6667a4 9370
11bf311e 9371 * posix/wordexp.c: Remove some unnecessary tests.
3b6667a4 9372
33c6de58
UD
93732006-12-22 Gavin Romig-Koch <gavin@redhat.com>
9374
9375 * nis/nss_compat/compat-grp.c (internal_getgrgid_r): Don't
9376 blacklist the group till after we look it up.
9377
fc242bef
UD
93782006-12-21 Ulrich Drepper <drepper@redhat.com>
9379
9380 * include/atomic.h (atomic_forced_read): New macro.
9381
11bf311e
UD
93822006-12-20 SUGIOKA Toshinobu <sugioka@itonet.co.jp>
9383
9384 * sysdeps/unix/sysv/linux/sh/bits/shm.h: New file.
9385
a12dcecc
UD
93862006-12-19 Jakub Jelinek <jakub@redhat.com>
9387
11bf311e
UD
9388 * nss/getXXbyYY_r.c: Include atomic.h.
9389 (INTERNAL (REENTRANT_NAME)): Write startp after start_fct,
9390 add atomic_write_barrier () in between.
9391
a12dcecc
UD
9392 * stdlib/Makefile (tests): Add tst-makecontext.
9393 * stdlib/tst-makecontext.c: New test.
9394
9395 * sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S
9396 (__makecontext): Don't realign uc_mcontext.uc_regs.
9397
11bf311e 93982006-11-28 Jakub Jelinek <jakub@redhat.com>
594d423a 9399
11bf311e
UD
9400 * elf/dl-support.c: Include dl-procinfo.h.
9401 * sysdeps/powerpc/dl-procinfo.h (PPC_PLATFORM_POWER4,
9402 PPC_PLATFORM_PPC970, PPC_PLATFORM_POWER5, PPC_PLATFORM_POWER5_PLUS,
9403 PPC_PLATFORM_POWER6, PPC_PLATFORM_CELL_BE, PPC_PLATFORM_POWER6X):
9404 Define.
9405 (_dl_string_platform): Use PPC_PLATFORM_* macros instead of
9406 hardcoded constants.
9407 * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_platform): Use
9408 PPC_PLATFORM_* macros for array designators.
594d423a 9409
11bf311e 94102006-11-11 Steven Munroe <sjmunroe@us.ibm.com>
594d423a 9411
11bf311e
UD
9412 * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add 3 new cap
9413 names to the beginning.
9414 (_dl_powerpc_platforms): Add "power6x".
9415 * sysdeps/powerpc/dl-procinfo.h (_DL_HWCAP_FIRST): Decrease.
9416 (HWCAP_IMPORTANT): Add PPC_FEATURE_HAS_DFP.
9417 (_DL_PLATFORMS_COUNT): Increase.
9418 (_dl_string_platform): Handle power6x case.
9419 * sysdeps/powerpc/sysdep.h (PPC_FEATURE_PA6T, PPC_FEATURE_HAS_DFP,
9420 PPC_FEATURE_POWER6_EXT): Define.
9421 (PPC_FEATURE_POWER5, PPC_FEATURE_POWER5_PLUS): Correct Comment.
594d423a 9422
5bcba0ed
UD
94232006-12-18 Jakub Jelinek <jakub@redhat.com>
9424
9425 [BZ #3747]
9426 * stdlib/jrand48_r.c (__jrand48_r): Make sure result is in the
11bf311e 9427 [-2^31 .. 2^31) range.
5bcba0ed
UD
9428 * stdlib/tst-rand48.c (main): Fix expected values for 64-bit
9429 targets.
9430 * stdlib/tst-rand48-2.c: New test.
9431 * stdlib/Makefile (tests): Add tst-rand48-2.
9432
9e1444fc
UD
94332006-12-14 Jakub Jelinek <jakub@redhat.com>
9434
9435 * misc/tst-pselect.c (do_test): Fix sigblock argument.
9436
36775704
UD
94372006-12-14 Ulrich Drepper <drepper@redhat.com>
9438
9439 * misc/tst-pselect.c (do_test): Make sure the helper process is
9440 terminating when the test is aborted.
9441
1e88bd0f
UD
94422006-12-13 Ulrich Drepper <drepper@redhat.com>
9443
11bf311e
UD
9444 * sysdeps/unix/sysv/linux/bits/statvfs.h: Define ST_RELATIME.
9445 * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
9446 Handle relatime mount option.
9447
1e88bd0f
UD
9448 [BZ #2337]
9449 * libio/Makefile (tests): Add tst-setvbuf1.
9450 * libio/tst-setvbuf1.c: New file.
9451
94522006-12-08 Jakub Jelinek <jakub@redhat.com>
9453
9454 [BZ #2337]
9455 * libio/genops.c (__uflow): Fix a typo.
9456 * libio/wfiledoalloc.c (_IO_wfile_doallocate): Don't stat
9457 nor set _IO_LINE_BUF bit here. Size the wide buffer based on
9458 the narrow buffer size.
9459
94602006-11-24 Jakub Jelinek <jakub@redhat.com>
9461
9462 [BZ #2337]
9463 * libio/libio.h (_IO_FLAGS2_USER_WBUF): Define.
9464 * libio/wgenops.c (_IO_wsetb, _IO_wdefault_finish): Test and set
9465 _IO_FLAGS2_USER_WBUF bit in _flags2 instead of _IO_USER_BUF bit
9466 in _flags.
9467 * libio/wstrops.c (_IO_wstr_overflow, enlarge_userbuf,
9468 _IO_wstr_finish): Likewise.
9469 * libio/wmemstream.c (open_wmemstream): Likewise.
9470 * libio/fileops.c (_IO_new_file_close_it): Call _IO_set[bgp]
9471 even for wide streams.
9472
11bf311e 94732006-12-13 Jakub Jelinek <jakub@redhat.com>
1f55ce48 9474
11bf311e
UD
9475 * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: Include
9476 kernel-features.h.
9477
94782006-12-11 Ulrich Drepper <drepper@redhat.com>
9479
9480 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Parse thousand
9481 separators also if no non-zero digits found.
9482 * stdlib/Makefile (tests): Add tst-strtod3.
1f55ce48 9483
d117c1ce
UD
94842006-12-09 Ulrich Drepper <drepper@redhat.com>
9485
f85fb97b
UD
9486 [BZ #3632]
9487 * include/features.h: Fix comment about default value for
9488 _POSIX_C_SOURCE.
9489
11bf311e
UD
9490 [BZ #3664]
9491 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix test to recognize
9492 empty parsed strings.
9493 * stdlib/Makefile (tests): Add tst-strtod2.
9494 * stdlib/tst-strtod2.c: New file.
9495
9496 [BZ #3673]
9497 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix exp_limit
9498 computation.
9499 * stdlib/Makefile (tests): Add tst-atof2.
9500 * stdlib/tst-atof2.c: New file.
9501
9502 [BZ #3674]
9503 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Adjust exponent value
9504 correctly if removing trailing zero of hex-float.
9505 * stdlib/Makefile (tests): Add tst-atof1.
9506 * stdlib/tst-atof1.c: New file.
9507
a822d9f4
UD
95082006-12-09 Jakub Jelinek <jakub@redhat.com>
9509
11bf311e
UD
9510 * misc/mntent_r.c (__hasmntopt): Check p[optlen] even when p == rest.
9511 Start searching for next comma at p rather than rest.
9512 * misc/Makefile (tests): Add tst-mntent2.
9513 * misc/tst-mntent2.c: New test.
9514
a822d9f4
UD
9515 * misc/getusershell.c (initshells): Check for integer overflows.
9516 Make strings buffer one bigger as fgets always succeeds when second
9517 argument is 1. Don't use calloc for shells array. Disallow
11bf311e 9518 / as shell.
f0d5e1f6 9519
11bf311e 95202006-12-08 Ulrich Drepper <drepper@redhat.com>
f0d5e1f6 9521
11bf311e
UD
9522 * malloc/memusage.c: Handle realloc with new size of zero and
9523 non-NULL pointer correctly.
9524 (me): Really write first record twice.
9525 (struct entry): Make format bi-arch safe.
9526 (dest): Write out more realloc statistics.
9527 * malloc/memusagestat.c (struct entry): Make format bi-arch safe.
32c075e1 9528
11bf311e 95292006-12-05 Jakub Jelinek <jakub@redhat.com>
32c075e1 9530
11bf311e 9531 * nis/nis_subr.c (nis_getnames): Revert last change.
32c075e1 9532
f0d5e1f6
UD
95332006-12-04 Jakub Jelinek <jakub@redhat.com>
9534
9535 * sysdeps/unix/sysv/linux/ttyname.c: Include termios.h.
9536 (ttyname): Use tcgetattr instead of isatty, don't set errno to ENOTTY.
9537 * sysdeps/unix/sysv/linux/ttyname_r.c: Include termios.h.
9538 (__ttyname_r): Use tcgetattr instead of isatty, don't set errno to
9539 ENOTTY.
9540 * io/Makefile: Add rules to build and run tst-ttyname_r test.
9541 * io/tst-ttyname_r.c: New test.
9542
11bf311e 95432006-12-03 Kaz Kojima <kkojima@rr.iij4u.or.jp>
5df4fe08 9544
11bf311e 9545 * sysdeps/unix/sysv/linux/sh/sys/io.h: Removed.
5df4fe08 9546
11bf311e 95472006-11-30 H.J. Lu <hongjiu.lu@intel.com>
ee50871d 9548
11bf311e
UD
9549 * sysdeps/i386/i686/memcmp.S: Use jump table as the base of
9550 jump table entries.
9551
95522006-11-30 Jan Kratochvil <jan.kratochvil@redhat.com>
9553
9554 * sysdeps/unix/sysv/linux/i386/clone.S: Provide CFI for the outermost
9555 `clone' function to ensure proper unwinding stop of gdb.
9556 * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
9557
95582006-12-01 Ulrich Drepper <drepper@redhat.com>
9559
9560 * nscd/nscd.init: Remove obsolete and commented-out -S option
9561 handling.
9562
95632006-11-23 Jakub Jelinek <jakub@redhat.com>
9564
9565 [BZ #3514]
9566 * manual/string.texi (strncmp): Fix pastos from wcscmp description.
9567
9568 [BZ #3515]
9569 * manual/string.texi (strtok): Remove duplicate paragraph.
9570
95712006-12-01 Jan Kratochvil <jan.kratochvil@redhat.com>
9572
9573 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Fix compatibility with
9574 libgcc not supporting `rflags' unwinding (register # >= 17).
9575
95762006-11-30 Jakub Jelinek <jakub@redhat.com>
9577
9578 * sunrpc/svc_run.c (svc_run): Set my_pollfd to new_pollfd if realloc
9579 succeeded.
9580
95812006-11-29 Daniel Jacobowitz <dan@codesourcery.com>
9582 Jakub Jelinek <jakub@redhat.com>
9583 Jan Kratochvil <jan.kratochvil@redhat.com>
9584
9585 * sysdeps/unix/sysv/linux/x86_64/sigaction.c (restore_rt): Add correct
9586 unwind information.
9587 * sysdeps/unix/sysv/linux/x86_64/Makefile: Provide symbols for
9588 'restore_rt' even in the 'signal' directory.
9589 * sysdeps/unix/sysv/linux/x86_64/ucontext_i.sym: Extend the regs list.
ee50871d 9590
b1a758f3
UD
95912006-11-27 Jakub Jelinek <jakub@redhat.com>
9592
9593 [BZ #3559]
9594 * sunrpc/svc_run.c (svc_run): Fail instead of segfaulting if
11bf311e
UD
9595 malloc crashed. Don't allocate memory unnecessarily in each
9596 loop.
b1a758f3 9597
11bf311e 95982006-10-21 Jakub Jelinek <jakub@redhat.com>
854d1124 9599
11bf311e 9600 * resolv/mapv4v6addr.h (map_v4v6_address): Fix last change.
dfc99a56 9601
11bf311e 96022006-11-20 Ulrich Drepper <drepper@redhat.com>
dfc99a56 9603
11bf311e 9604 * resolv/mapv4v6addr.h (map_v4v6_address): Optimize a bit.
852d657c 9605
11bf311e 96062006-11-18 Bruno Haible <bruno@clisp.org>
852d657c 9607
11bf311e
UD
9608 * sysdeps/unix/sysv/linux/i386/getgroups.c (__getgroups): Invoke
9609 __sysconf only after having tried to call getgroups32.
36c0a636 9610
11bf311e 96112006-11-19 Ulrich Drepper <drepper@redhat.com>
36c0a636 9612
11bf311e
UD
9613 * nss/nss_files/files-hosts.c (LINE_PARSER): Support IPv6-style
9614 addresses for IPv4 queries if they can be mapped.
b1f0c2a6 9615
11bf311e 96162006-11-16 Jakub Jelinek <jakub@redhat.com>
b1f0c2a6 9617
11bf311e
UD
9618 * sysdeps/x86_64/fpu/s_copysignf.S (__copysignf): Switch to .text.
9619 * sysdeps/x86_64/fpu/s_copysign.S (__copysign): Likewise.
9620 (signmask): Add .size directive.
9621 (othermask): Add .type directive.
bef8927a 9622
11bf311e 96232006-11-14 Ulrich Drepper <drepper@redhat.com>
2c53fa20 9624
11bf311e 9625 * po/nl.po: Update from translation team.
854d1124 9626
11bf311e 9627 * timezone/zdump.c: Redo fix for BZ #3137.
3f1e9205 9628
11bf311e 96292006-11-14 Jakub Jelinek <jakub@redhat.com>
bef8927a 9630
11bf311e
UD
9631 * nss/nss_files/files-alias.c (get_next_alias): Set line back
9632 to first_unused after parsing :include: file.
5c2af134 9633
32c075e1 96342006-11-10 Ulrich Drepper <drepper@redhat.com>
e1b37083 9635
11bf311e
UD
9636 * timezone/africa: Update from tzdata2006o.
9637 * timezone/antarctica: Likewise.
9638 * timezone/asia: Likewise.
9639 * timezone/australasia: Likewise.
9640 * timezone/backward: Likewise.
9641 * timezone/europe: Likewise.
9642 * timezone/iso3166.tab: Likewise.
9643 * timezone/northamerica: Likewise.
9644 * timezone/southamerica: Likewise.
9645 * timezone/zone.tab: Likewise.
9646
9647 * time/tzfile.c (__tzfile_read): Extend to handle new file format
9648 on machines with 64-bit time_t.
9649
9650 * timezone/checktab.awk: Update from tzcode2006o.
9651 * timezone/ialloc.c: Likewise.
9652 * timezone/private.h: Likewise.
9653 * timezone/scheck.c: Likewise.
9654 * timezone/tzfile.h: Likewise.
9655 * timezone/tzselect.ksh: Likewise.
9656 * timezone/zdump.c: Likewise.
9657 * timezone/zic.c: Likewise.
9658
9659 [BZ #3483]
9660 * elf/ldconfig.c (main): Call setlocale and textdomain.
9661 Patch mostly by Benno Schulenberg <bensberg@justemail.net>.
9662
9663 [BZ #3480]
9664 * manual/argp.texi: Fix typos.
9665 * manual/charset.texi: Likewise.
9666 * manual/errno.texi: Likewise.
9667 * manual/filesys.texi: Likewise.
9668 * manual/lang.texi: Likewise.
9669 * manual/maint.texi: Likewise.
9670 * manual/memory.texi: Likewise.
9671 * manual/message.texi: Likewise.
9672 * manual/resource.texi: Likewise.
9673 * manual/search.texi: Likewise.
9674 * manual/signal.texi: Likewise.
9675 * manual/startup.texi: Likewise.
9676 * manual/stdio.texi: Likewise.
9677 * manual/sysinfo.texi: Likewise.
9678 * manual/syslog.texi: Likewise.
9679 * manual/time.texi: Likewise.
9680 Patch by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
9681
9682 [BZ #3465]
9683 * sunrpc/clnt_raw.c: Minimal message improvements.
9684 * sunrpc/pm_getmaps.c: Likewise.
9685 * nis/nss_nisplus/nisplus-publickey.c: Likewise.
9686 * nis/nis_print_group_entry.c: Likewise.
9687 * locale/programs/repertoire.c: Likewise.
9688 * locale/programs/charmap.c: Likewise.
9689 * malloc/memusage.sh: Likewise.
9690 * elf/dl-deps.c: Likewise.
9691 * locale/programs/ld-collate.c: Likewise.
9692 * libio/vswprintf.c: Likewise.
9693 * malloc/memusagestat.c: Likewise.
9694 * sunrpc/auth_unix.c: Likewise.
9695 * sunrpc/rpc_main.c: Likewise.
9696 * nscd/cache.c: Likewise.
9697 * locale/programs/repertoire.c: Unify output messages.
9698 * locale/programs/charmap.c: Likewise.
9699 * locale/programs/ld-ctype.c: Likewise.
9700 * locale/programs/ld-monetary.c: Likewise.
9701 * locale/programs/ld-numeric.c: Likewise.
9702 * locale/programs/ld-time.c: Likewise.
9703 * elf/ldconfig.c: Likewise.
9704 * nscd/selinux.c: Likewise.
9705 * elf/cache.c: Likewise.
9706 Patch mostly by Benno Schulenberg <bensberg@justemail.net>.
9707
5c2af134
UD
9708 [BZ #3451]
9709 * sysdeps/i386/fpu/bits/mathinline.h (floor): Make rounding mode
9710 change atomic.
9711 (ceil): Likewise.
9712
11bf311e
UD
97132006-11-10 Jakub Jelinek <jakub@redhat.com>
9714
9715 * string/strxfrm_l.c (STRXFRM): Fix trailing \1 optimization
9716 if N is one bigger than return value.
9717 * string/tst-strxfrm2.c (do_test): Also test strxfrm with l1 + 1
9718 and l1 last arguments, if buf is defined, verify the return value
9719 equals to strlen (buf) and verify no byte beyond passed length
9720 is modified.
9721
97222006-11-10 Ulrich Drepper <drepper@redhat.com>
9723
9724 * po/sv.po: Update from translation team.
9725
37afcf79
UD
97262006-11-09 Ulrich Drepper <drepper@redhat.com>
9727
9728 * sysdeps/unix/sysv/linux/x86_64/sysconf.c (intel_check_word): Add
9729 noinline attribute.
9730
97312006-11-10 Jakub Jelinek <jakub@redhat.com>
9732
9733 * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Add
9734 noinline attribute.
9735
11bf311e
UD
9736 * sysdeps/gnu/siglist.c (__old_sys_siglist, __old_sys_sigabbrev):
9737 Use __new_sys_siglist instead of _sys_siglist_internal as
9738 second macro argument.
9739 (_old_sys_siglist): Use declare_symbol_alias macro instead of
9740 strong_alias.
2692deea 9741
11bf311e
UD
97422006-11-09 Ulrich Drepper <drepper@redhat.com>
9743
9744 [BZ #3493]
9745 * posix/unistd.h (sysconf): Remove const attribute.
9746
9747 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Fix test for
9748 temporary or deprecated addresses.
9749 Patch by Sridhar Samudrala <sri@us.ibm.com>.
9750
9751 * string/Makefile (tests): Add tst-strxfrm2.
9752 * string/tst-strxfrm2.c: New file.
9753
97542006-10-09 Jakub Jelinek <jakub@redhat.com>
9755
9756 * elf/dl-debug.c (_dl_debug_initialize): Check r->r_map for 0
9757 rather than r->r_brk.
2692deea
UD
9758
97592006-11-08 Jakub Jelinek <jakub@redhat.com>
9760
11bf311e
UD
9761 * string/strxfrm_l.c (STRXFRM): Do the trailing \1 removal
9762 optimization even if needed > n.
9763
2692deea
UD
9764 * elf/dl-load.c (decompose_rpath): Return bool rather than void.
9765 If l->l_name is on inhibit_rpath list, set sps->dirs to -1 and
9766 return false, otherwise return true.
9767 (cache_rpath): Return decompose_rpath return value.
9768
11bf311e
UD
97692006-11-07 Jakub Jelinek <jakub@redhat.com>
9770
9771 * include/libc-symbols.h (declare_symbol): Rename to...
9772 (declare_symbol_alias): ... this. Add ORIGINAL argument, imply
9773 strong_alias (ORIGINAL, SYMBOL) in asm to make sure it preceedes
9774 .size directive.
9775 * sysdeps/gnu/errlist-compat.awk: Adjust for declare_symbol_alias
9776 changes.
9777 * sysdeps/gnu/siglist.c: Likewise.
9778
97792006-11-03 Steven Munroe <sjmunroe@us.ibm.com>
9780
9781 * sysdeps/powerpc/fpu/bits/mathinline.h
9782 [__LIBC_INTERNAL_MATH_INLINES]: Moved to ...
9783 * sysdeps/powerpc/fpu/math_private.h: ...here. New file.
9784
97852006-11-05 Ulrich Drepper <drepper@redhat.com>
9786
9787 * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
9788 Update handling of cache descriptor 0x49 for new models.
9789 * sysdeps/unix/sysv/linux/x86_64/sysconf.c (intel_check_word):
9790 Likewise.
9791
9666e36c
UD
97922006-11-02 Jakub Jelinek <jakub@redhat.com>
9793
9794 * malloc/memusage.c (dest): Reset not_me back to false after
9795 printing statistics.
9796
11bf311e
UD
97972006-11-02 Ulrich Drepper <drepper@redhat.com>
9798
9799 * configure.in: Work around ld --help change and avoid -z relro
9800 test completely if the architecture doesn't care about security.
9801
98022006-11-01 Ulrich Drepper <drepper@redhat.com>
9803
9804 * po/sv.po: Update from translation team.
9805
98062006-10-31 Ulrich Drepper <drepper@redhat.com>
9807
9808 * stdlib/atexit.c (atexit): Don't mark as hidden when used to
9809 generate compatibility version.
9810
98112006-10-29 Ulrich Drepper <drepper@redhat.com>
9812
9813 * configure.in: Relax -z relro requirement a bit.
9814
9815 * po/sv.po: Update from translation team.
9816
98172006-10-29 Jakub Jelinek <jakub@redhat.com>
9818
9819 * elf/dl-sym.c (do_sym): Use RTLD_SINGLE_THREAD_P.
9820 * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Likewise.
9821 * elf/dl-close.c (_dl_close_worker): Likewise.
9822 * elf/dl-open.c (_dl_open_worker): Likewise.
9823 * sysdeps/generic/sysdep-cancel.h (RTLD_SINGLE_THREAD_P): Define.
9824
b2369ca3
UD
98252006-10-27 Ulrich Drepper <drepper@redhat.com>
9826
11bf311e
UD
9827 * configure.in: Require assembler support for visibility, compiler
9828 support for visibility and aliases, linker support for various -z
9829 options.
9830 * Makeconfig: Remove conditional code which now is unnecessary.
9831 * config.h.in: Likewise.
9832 * config.make.in: Likewise.
9833 * dlfcn/Makefile: Likewise.
9834 * elf/Makefile: Likewise.
9835 * elf/dl-load.c: Likewise.
9836 * elf/rtld.c: Likewise.
9837 * include/libc-symbols.h: Likewise.
9838 * include/stdio.h: Likewise.
9839 * io/Makefile: Likewise.
9840 * io/fstat.c: Likewise.
9841 * io/fstat64.c: Likewise.
9842 * io/fstatat.c: Likewise.
9843 * io/fstatat64.c: Likewise.
9844 * io/lstat.c: Likewise.
9845 * io/lstat64.c: Likewise.
9846 * io/mknod.c: Likewise.
9847 * io/mknodat.c: Likewise.
9848 * io/stat.c: Likewise.
9849 * io/stat64.c: Likewise.
9850 * libio/stdio.c: Likewise.
9851 * nscd/Makefile: Likewise.
9852 * stdlib/Makefile: Likewise.
9853 * stdlib/atexit.c: Likewise.
9854 * sysdeps/generic/ldsodefs.h: Likewise.
9855 * sysdeps/i386/dl-machine.h: Likewise.
9856 * sysdeps/i386/sysdep.h: Likewise.
9857 * sysdeps/i386/i686/memcmp.S: Likewise.
9858 * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
9859 * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
9860 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
9861
9862 * Makerules: USE_TLS support is now default.
9863 * tls.make.c: Likewise.
9864 * csu/Versions: Likewise.
9865 * csu/libc-start.c: Likewise.
9866 * csu/libc-tls.c: Likewise.
9867 * csu/version.c: Likewise.
9868 * dlfcn/dlinfo.c: Likewise.
9869 * elf/dl-addr.c: Likewise.
9870 * elf/dl-cache.c: Likewise.
9871 * elf/dl-close.c: Likewise.
9872 * elf/dl-iteratephdr.c: Likewise.
9873 * elf/dl-load.c: Likewise.
9874 * elf/dl-lookup.c: Likewise.
9875 * elf/dl-object.c: Likewise.
9876 * elf/dl-open.c: Likewise.
9877 * elf/dl-reloc.c: Likewise.
9878 * elf/dl-support.c: Likewise.
9879 * elf/dl-sym.c: Likewise.
9880 * elf/dl-sysdep.c: Likewise.
9881 * elf/dl-tls.c: Likewise.
9882 * elf/ldconfig.c: Likewise.
9883 * elf/rtld.c: Likewise.
9884 * elf/tst-tls-dlinfo.c: Likewise.
9885 * elf/tst-tls1.c: Likewise.
9886 * elf/tst-tls10.h: Likewise.
9887 * elf/tst-tls14.c: Likewise.
9888 * elf/tst-tls2.c: Likewise.
9889 * elf/tst-tls3.c: Likewise.
9890 * elf/tst-tls4.c: Likewise.
9891 * elf/tst-tls5.c: Likewise.
9892 * elf/tst-tls6.c: Likewise.
9893 * elf/tst-tls7.c: Likewise.
9894 * elf/tst-tls8.c: Likewise.
9895 * elf/tst-tls9.c: Likewise.
9896 * elf/tst-tlsmod1.c: Likewise.
9897 * elf/tst-tlsmod13.c: Likewise.
9898 * elf/tst-tlsmod13a.c: Likewise.
9899 * elf/tst-tlsmod14a.c: Likewise.
9900 * elf/tst-tlsmod2.c: Likewise.
9901 * elf/tst-tlsmod3.c: Likewise.
9902 * elf/tst-tlsmod4.c: Likewise.
9903 * elf/tst-tlsmod5.c: Likewise.
9904 * elf/tst-tlsmod6.c: Likewise.
9905 * include/errno.h: Likewise.
9906 * include/link.h: Likewise.
9907 * include/tls.h: Likewise.
9908 * locale/global-locale.c: Likewise.
9909 * locale/localeinfo.h: Likewise.
9910 * malloc/arena.c: Likewise.
9911 * malloc/hooks.c: Likewise.
9912 * malloc/malloc.c: Likewise.
9913 * resolv/Versions: Likewise.
9914 * sysdeps/alpha/dl-machine.h: Likewise.
9915 * sysdeps/alpha/libc-tls.c: Likewise.
9916 * sysdeps/generic/ldsodefs.h: Likewise.
9917 * sysdeps/generic/tls.h: Likewise.
9918 * sysdeps/i386/dl-machine.h: Likewise.
9919 * sysdeps/ia64/dl-machine.h: Likewise.
9920 * sysdeps/ia64/libc-tls.c: Likewise.
9921 * sysdeps/mach/hurd/fork.c: Likewise.
9922 * sysdeps/mach/hurd/i386/tls.h: Likewise.
9923 * sysdeps/powerpc/powerpc32/dl-machine.c: Likwise.
9924 * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
9925 * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
9926 * sysdeps/s390/libc-tls.c: Likewise.
9927 * sysdeps/s390/s390-32/dl-machine.h: Likewise.
9928 * sysdeps/s390/s390-64/dl-machine.h: Likewise.
9929 * sysdeps/sh/dl-machine.h: Likewise.
9930 * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
9931 * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
9932 * sysdeps/x86_64/dl-machine.h: Likewise.
9933
131c4428
UD
9934 * elf/dl-close.c (_dl_close_worker): Renamed from _dl_close and
9935 split out locking and parameter checking.
9936 (_dl_close): Call _dl_close_worker after locking and checking.
9937 * elf/dl-open.c (_dl_open): Call _dl_close_worker instead of
9938 _dl_close.
ffd0e1b7
UD
9939 * elf/Makefile: Add rules to build and run tst-thrlock.
9940 * elf/tst-thrlock.c: New file.
131c4428 9941
11bf311e
UD
9942 [BZ #3426]
9943 * stdlib/stdlib.h: Adjust comment for canonicalize_file_name to
9944 reality.
9945
b2369ca3
UD
9946 [BZ #3429]
9947 * elf/dl-open.c (dl_open_worker): Keep holding dl_load_lock until
131c4428 9948 we are sure we do not need it anymore for _dl_close. Also move
b2369ca3
UD
9949 the asserts inside the lock region.
9950 Patch mostly by Suzuki <suzuki@in.ibm.com>.
9951
11bf311e
UD
99522006-10-27 Jakub Jelinek <jakub@redhat.com>
9953
9954 * elf/dl-lookup.c (_dl_debug_bindings): Remove unused symbol_scope
9955 argument.
9956 (_dl_lookup_symbol_x): Adjust caller.
9957
9958 * sysdeps/generic/ldsodefs.h (struct link_namespaces): Remove
9959 _ns_global_scope.
9960 * elf/rtld.c (dl_main): Don't initialize _ns_global_scope.
9961
9962 * elf/dl-libc.c: Revert l_scope name changes.
9963 * elf/dl-load.c: Likewise.
9964 * elf/dl-object.c: Likewise.
9965 * elf/rtld.c: Likewise.
9966 * elf/dl-close.c (_dl_close): Likewise.
9967 * elf/dl-open.c (dl_open_worker): Likewise. If not SINGLE_THREAD_P,
9968 always use __rtld_mrlock_{change,done}. Always free old scope list
9969 here if not l_scope_mem.
9970 * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Revert l_scope name
9971 change. Never free scope list here. Just __rtld_mrlock_lock before
9972 the lookup and __rtld_mrlock_unlock it after the lookup.
9973 * elf/dl-sym.c: Likewise.
9974 * include/link.h (struct r_scoperec): Remove.
9975 (struct link_map): Replace l_scoperec with l_scope, l_scoperec_mem
9976 with l_scope_mem and l_scoperec_lock with l_scope_lock.
9977
99782006-10-25 Ulrich Drepper <drepper@redhat.com>
9979
9980 * sysdeps/gnu/netinet/tcp.h: Define TCP_CONGESTION.
9981
99822006-10-18 Ulrich Drepper <drepper@redhat.com>
9983
9984 * configure.in: Disable building profile libraries by default.
9985
609cf614
UD
99862006-10-17 Jakub Jelinek <jakub@redhat.com>
9987
9988 * sunrpc/xdr_mem.c (xdrmem_setpos): Don't compare addresses
9989 as signed longs, check for x_base + pos overflow.
9990 * sunrpc/Makefile (tests): Add tst-xdrmem2.
9991 * sunrpc/tst-xdrmem2.c: New test.
9992
11bf311e
UD
99932006-10-18 Ulrich Drepper <drepper@redhat.com>
9994
9995 * elf/dl-lookup.c (_dl_lookup_symbol_x): Add warning to
9996 _dl_lookup_symbol_x code.
9997
99982006-10-17 Jakub Jelinek <jakub@redhat.com>
9999
10000 * elf/dl-runtime.c: Include sysdep-cancel.h.
10001 (_dl_fixup, _dl_profile_fixup): Use __rtld_mrlock_* and
10002 scoperec->nusers only if !SINGLE_THREAD_P. Use atomic_*
10003 instead of catomic_* macros.
10004 * elf/dl-sym.c: Include sysdep-cancel.h.
10005 (do_sym): Use __rtld_mrlock_* and scoperec->nusers only
10006 if !SINGLE_THREAD_P. Use atomic_* instead of catomic_* macros.
10007 * elf/dl-close.c: Include sysdep-cancel.h.
10008 (_dl_close): Use __rtld_mrlock_* and scoperec->nusers only
10009 if !SINGLE_THREAD_P. Use atomic_* instead of catomic_* macros.
10010 * elf/dl-open.c: Include sysdep-cancel.h.
10011 (dl_open_worker): Use __rtld_mrlock_* and scoperec->nusers only
10012 if !SINGLE_THREAD_P. Use atomic_* instead of catomic_* macros.
10013
100142006-10-17 Jakub Jelinek <jakub@redhat.com>
10015
10016 [BZ #3313]
10017 * malloc/malloc.c (malloc_consolidate): Set maxfb to address of last
10018 fastbin rather than end of fastbin array.
10019
100202006-10-18 Ulrich Drepper <drepper@redhat.com>
10021
10022 * sysdeps/i386/i486/bits/atomic.h (catomic_decrement): Use correct
10023 body macro.
10024 * sysdeps/x86_64/bits/atomic.h
10025 (__arch_c_compare_and_exchange_val_64_acq): Add missing casts.
10026 (catomic_decrement): Use correct body macro.
10027
100282006-10-17 Jakub Jelinek <jakub@redhat.com>
10029
10030 * include/atomic.h: Add a unique prefix to all local variables
10031 in macros.
10032 * csu/tst-atomic.c (do_test): Test also catomic_* macros.
10033
4a85a8ee
UD
100342006-10-16 Ulrich Drepper <drepper@redhat.com>
10035
10036 [BZ #3369]
10037 * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Fix typos in rules 4
10038 and 7.
10039
11bf311e
UD
100402006-10-14 Ulrich Drepper <drepper@redhat.com>
10041
10042 * resolv/arpa/nameser.h: Document that ns_t_a6 is deprecated.
10043
ff8d96be
UD
100442006-10-13 Ulrich Drepper <drepper@redhat.com>
10045
11bf311e
UD
10046 [BZ #3313]
10047 * malloc/malloc.c (malloc_consolidate): Don't use get_fast_max to
10048 determine highest fast bin to consolidate, always look into all of
10049 them.
10050 (do_check_malloc_state): Only require for empty bins for large
10051 sizes in main arena.
10052
10053 * libio/stdio.h: Add more __wur attributes.
10054
ff8d96be
UD
10055 * elf/dl-minimal.c (realloc): Optimize last patch.
10056
90a0991a
UD
100572006-10-12 Richard Sandiford <richard@codesourcery.com>
10058
10059 [BZ #3352]
10060 * elf/dl-minimal.c (realloc): Let malloc() return a new pointer,
10061 and use memcpy() if it does.
ff8d96be 10062
11bf311e
UD
100632006-11-12 Andreas Jaeger <aj@suse.de>
10064
10065 [BZ #2510]
10066 * manual/search.texi (Hash Search Function): Clarify.
10067 (Array Search Function): Clarify.
10068
100692006-11-12 Joseph Myers <joseph@codesourcery.com>
10070
10071 [BZ #2830]
10072 * math/atest-exp.c (main): Cast hex value to mp_limb_t before
10073 shifting.
10074 * math/atest-exp2.c (read_mpn_hex): Likewise.
10075 * math/atest-sincos.c (main): Likewise.
10076
37fb7595
UD
100772006-10-11 Ulrich Drepper <drepper@redhat.com>
10078
11bf311e
UD
10079 * sysdeps/unix/sysv/linux/syscalls.list: Add epoll_pwait.
10080 * sysdeps/unix/sysv/linux/sys/epoll.h: Declare epoll_pwait.
10081 * sysdeps/unix/sysv/linux/Versions (libc): Add epoll_pwait for
10082 version GLIBC_2.6.
10083 * Versions.def: Add GLIBC_2.6 for libc.
10084
46c38bd7
UD
10085 * sysdeps/unix/sysv/linux/i386/sysdep.h (DOARGS_6): Fix offset.
10086
11bf311e
UD
10087 * sysdeps/i386/i486/bits/atomic.h: Add catomic_* support.
10088
100892006-10-11 Jakub Jelinek <jakub@redhat.com>
10090
10091 * malloc/malloc.c (_int_malloc): Remove unused any_larger variable.
10092
10093 * nis/nis_defaults.c (__nis_default_access): Don't call getenv twice.
10094
10095 * nis/nis_subr.c (nis_getnames): Use __secure_getenv instead of getenv.
10096 * sysdeps/generic/unsecvars.h: Add NIS_PATH.
10097
100982006-10-11 Ulrich Drepper <drepper@redhat.com>
10099
10100 * include/atomic.c: Define catomic_* operations.
10101 * sysdeps/x86_64/bits/atomic.h: Likewise. Fix a few minor problems.
10102 * stdlib/cxa_finalize.c: Use catomic_* operations instead of atomic_*.
10103 * malloc/memusage.c: Likewise.
10104 * gmon/mcount.c: Likewise.
10105 * elf/dl-close.c: Likewise.
10106 * elf/dl-open.c: Likewise.
10107 * elf/dl-profile.c: Likewise.
10108 * elf/dl-sym.c: Likewise.
10109 * elf/dl-runtime.c: Likewise.
10110 * elf/dl-fptr.c: Likewise.
10111 * resolv/res_libc.c: Likewise.
10112
2a6ee549
UD
101132006-10-10 Ulrich Drepper <drepper@redhat.com>
10114
10115 * nis/nis_subr.c (nis_getnames): Add trailing dot to NIS_PATH
10116 components which lack them.
10117
10118 * nis/nis_subr.c (nis_getnames): Make sure that we always return
10119 at least one entry consisting of the parameter concatenated with
10120 the domain.
10121
11bf311e 101222006-10-10 Roland McGrath <roland@frob.com>
c4f9fc3a 10123
11bf311e
UD
10124 * sysdeps/mach/hurd/utimes.c: Use a union to avoid an improper cast.
10125 * sysdeps/mach/hurd/futimes.c: Likewise.
10126 * sysdeps/mach/hurd/lutimes.c: Likewise.
10127
101282006-10-09 Ulrich Drepper <drepper@redhat.com>
10129 Jakub Jelinek <jakub@redhat.com>
10130
10131 Implement reference counting of scope records.
10132 * elf/dl-close.c (_dl_close): Remove all scopes from removed objects
10133 from the list in objects which remain. Always allocate new scope
10134 record.
10135 * elf/dl-open.c (dl_open_worker): When growing array for scopes,
10136 don't resize, allocate a new one.
10137 * elf/dl-runtime.c: Update reference counters before using a scope
10138 array.
10139 * elf/dl-sym.c: Likewise.
10140 * elf/dl-libc.c: Adjust for l_scope name change.
10141 * elf/dl-load.c: Likewise.
10142 * elf/dl-object.c: Likewise.
10143 * elf/rtld.c: Likewise.
10144 * include/link.h: Include <rtld-lowlevel.h>. Define struct
10145 r_scoperec. Replace r_scope with pointer to r_scoperec structure.
10146 Add l_scoperec_lock.
10147 * sysdeps/generic/ldsodefs.h: Include <rtld-lowlevel.h>.
10148 * sysdeps/generic/rtld-lowlevel.h: New file.
10149
10150 * include/atomic.h: Rename atomic_and to atomic_and_val and
10151 atomic_or to atomic_or_val. Define new macros atomic_and and
10152 atomic_or which do not return values.
10153 * sysdeps/x86_64/bits/atomic.h: Define atomic_and and atomic_or.
10154 Various cleanups.
10155 * sysdeps/i386/i486/bits/atomic.h: Likewise.
10156
10157 * po/sv.po: Update from translation team.
10158
101592006-10-07 Ulrich Drepper <drepper@redhat.com>
10160
10161 * Versions.def: Add GLIBC_2.6 to libpthread.
10162
10163 * include/shlib-compat.h (SHLIB_COMPAT): Expand parameters before use.
10164 (versioned_symbol): Likewise.
10165 (compat_symbol): Likewise.
10166
10167 * po/tr.po: Update from translation team.
feb87ad1 10168
4df92d57
UD
101692006-10-06 Ulrich Drepper <drepper@redhat.com>
10170
11bf311e
UD
10171 * nis/Banner: Removed. It's been integral part forever and the
10172 author info is incomplete anyway.
10173 * libio/Banner: Likewise.
10174
4df92d57
UD
10175 * nis/nis_table.c (nis_list): If __follow_path fails in the new
10176 code, make sure the nis_freeresult call doesn't crash and that the
10177 result is reported correctly.
10178
68361572
UD
101792006-09-27 Jakub Jelinek <jakub@redhat.com>
10180
10181 * nis/nis_table.c (nis_list): Handle FOLLOW_PATH | ALL_RESULTS
10182 when callback is NULL.
10183
10184 * nis/Versions (libnss_nisplus): Add
10185 _nss_nisplus_initgroups_dyn@@GLIBC_PRIVATE.
10186 * nis/Makefile (libnss_nisplus-routines): Add nisplus-initgroups.
10187 * nis/nss_nisplus/nisplus-grp.c (tablename_val, tablename_len,
10188 _nss_create_tablename): Rename to...
10189 (grp_tablename_val, grp_tablename_len, _nss_grp_create_tablename):
10190 ... these. No longer static.
10191 (internal_setgrent): Adjust users.
10192 (_nss_nisplus_getgrnam_r, _nss_nisplus_getgrgid_r): Likewise.
10193 Don't use locking around _nss_grp_create_tablename call.
10194 * nis/nss_nisplus/nisplus-initgroups.c: New file.
10195
11bf311e
UD
101962006-10-06 Ulrich Drepper <drepper@redhat.com>
10197
10198 * version.h (VERSION): Bump to 2.5.90 for new development tree.
10199
3a4e0609
UD
102002006-10-06 Andreas Jaeger <aj@suse.de>
10201
10202 * include/features.h (__GLIBC_MINOR__): It's glibc 2.5 now.
10203
102042006-10-06 Ulrich Drepper <drepper@redhat.com>
10205
10206 * po/pl.po: Update from translation team.
10207
10208 * nscd/nscd.c (main): Fix typo in message.
10209 Patch by Jakub Bogsz <qboosh@pld-linux.org>.
10210
97e57dee
UD
102112006-10-02 Jakub Jelinek <jakub@redhat.com>
10212
10213 [BZ #3291]
10214 * sysdeps/unix/sysv/linux/sparc/sparc64/pause.c: Include
10215 errno.h, signal.h, unistd.h and sysdep-cancel.h.
10216 (__sigprocmask): Define.
10217
768027a4
UD
102182006-10-02 Ulrich Drepper <drepper@redhat.com>
10219
10220 * elf/rtld.c (dl_main): Don't use prelinking if LD_DYNAMIC_WEAK is
10221 used.
10222
0b25a49a
UD
102232006-10-02 Jakub Jelinek <jakub@redhat.com>
10224
10225 * nscd/mem.c (mempool_alloc): Round array size to 16 bytes
10226 in oldtotal and newtotal calculation.
10227 * nscd/nscd-client.h (struct mapped_database): Add datasize
10228 field.
10229 * nscd/nscd_helper.c (get_mapping): Initialize datasize field.
10230 (__nscd_get_map_ref): Get a new mapping even if mapping's data_size
10231 increased.
10232 (__nscd_cache_search): Add checks to make sure we never reference
10233 data beyond the current mapping.
10234
a1286745
UD
102352006-10-02 Dmitry V. Levin <ldv@altlinux.org>
10236
d4ed7561
UD
10237 * sysdeps/posix/getaddrinfo.c (match_prefix): Make mask and val
10238 variables const to avoid compiler warnings.
10239
a1286745
UD
10240 * io/fts.c (fts_close): Remove redundant checks.
10241 (fts_build): Likewise.
10242 (fts_palloc): Likewise.
10243
10244 * manual/message.texi (Advanced gettext functions,
10245 Using gettextized software): Fix typos.
10246
f01e4069
UD
102472006-09-30 Ulrich Drepper <drepper@redhat.com>
10248
10249 * posix/glob.c (glob_in_dir): Add some comments and asserts to
10250 explain why there are no leaks.
10251
154619b5
UD
102522006-09-29 Ulrich Drepper <drepper@redhat.com>
10253
690c3947
UD
10254 * libio/wmemstream.c: Include <wchar.h>.
10255 * libio/bug-wmemstream1.c: Likewise.
10256 * libio/tst-wmemstream1.c: Likewise.
10257 * libio/tst-wmemstream2.c: Likewise.
10258
88cc61e8
UD
10259 * version.h (RELEASE): Bump to 2.5.
10260 * README: Regenerated.
10261
a70c18b0
UD
10262 * locale/iso-3166.def: Add Aaland Islands and Montenegro.
10263
154619b5
UD
10264 [BZ #3273]
10265 * nscd/nscd_initgroups.c (__nscd_getgrouplist): It is OK to have
10266 found no group members.
10267 Patch by Petr Baudis.
10268
102692006-09-29 Jakub Jelinek <jakub@redhat.com>
10270
10271 * elf/rtld.c (_dl_start_final): If not USE___THREAD, don't
10272 assert bootstrap_map.l_tls_modid is zero.
10273 (_dl_start): Initialize bootstrap_map.l_tls_modid to 0
10274 if USE___THREAD.
10275
1c31aa79
UD
102762006-09-27 Ulrich Drepper <drepper@redhat.com>
10277
10278 * libio/stdio.h: Move open_wmemstream prototype to ...
10279 * wcsmbs/wchar.h: ... here.
10280
f1122ec3
UD
102812006-09-25 Jakub Jelinek <jakub@redhat.com>
10282
10283 [BZ #3252]
10284 * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat): Handle only
10285 fchownat syscall and __ASSUME_LCHOWN_SYSCALL case inline, call
10286 __{,l}chown to handle the rest.
10287 * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Handle only
10288 fchownat syscall and __ASSUME_32BITUIDS case inline, call
10289 __{,l}chown to handle the rest.
10290 * sysdeps/unix/sysv/linux/sparc/sparc32/fchownat.c: Include
10291 i386/fchownat.c.
10292 * sysdeps/unix/sysv/linux/s390/s390-32/fchownat.c: Likewise.
10293 * sysdeps/unix/sysv/linux/sh/fchownat.c: Likewise.
10294
10295 [BZ #3253]
10296 * posix/glob.c (glob_in_dir): Don't alloca one struct globlink at a
10297 time, rather allocate increasingly bigger arrays of pointers, if
10298 possible with alloca, if too large with malloc.
10299
103002006-09-24 Jakub Jelinek <jakub@redhat.com>
10301
10302 * sysdeps/powerpc/fpu/libm-test-ulps: Updated.
10303
10304 * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Fix 2 typos.
10305
457b559e
UD
103062006-09-24 Ulrich Drepper <drepper@redhat.com>
10307
10308 * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Implement rule 4,
10309 home addresses.
10310 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Recognize
10311 IFA_F_HOMEADDRESS flag for interfaces.
10312 * include/ifaddrs.h (struct in6addrinfo): Define
10313 in6ai_homeaddress.
10314
4a132246
UD
103152006-09-21 Jakub Jelinek <jakub@redhat.com>
10316
10317 [BZ #3225]
10318 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (PTR_MANGLE3,
10319 PTR_DEMANGLE3): Define.
10320 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h (PTR_MANGLE3,
10321 PTR_DEMANGLE3): Likewise.
10322 * sysdeps/powerpc/powerpc32/__longjmp-common.S (__longjmp): Use them.
10323 * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp):
10324 Likewise.
10325 * sysdeps/powerpc/powerpc64/__longjmp-common.S (__longjmp): Likewise.
10326
c69136ae
UD
103272006-09-20 Jakub Jelinek <jakub@redhat.com>
10328
10329 * po/libc.pot: Regenerated.
10330 * po/be.po: Updated.
10331 * po/ca.po: Likewise.
10332 * po/cs.po: Likewise.
10333 * po/da.po: Likewise.
10334 * po/de.po: Likewise.
10335 * po/el.po: Likewise.
10336 * po/en_GB.po: Likewise.
10337 * po/es.po: Likewise.
10338 * po/fi.po: Likewise.
10339 * po/fr.po: Likewise.
10340 * po/gl.po: Likewise.
10341 * po/hr.po: Likewise.
10342 * po/hu.po: Likewise.
10343 * po/ja.po: Likewise.
10344 * po/ko.po: Likewise.
10345 * po/nb.po: Likewise.
10346 * po/nl.po: Likewise.
10347 * po/pl.po: Likewise.
10348 * po/pt_BR.po: Likewise.
10349 * po/ru.po: Likewise.
10350 * po/rw.po: Likewise.
10351 * po/sk.po: Likewise.
10352 * po/sv.po: Likewise.
10353 * po/tr.po: Likewise.
10354 * po/zh_CN.po: Likewise.
10355 * po/zh_TW.po: Likewise.
10356
10357 [BZ #3137]
10358 * iconv/iconv_prog.c (main): Fix spelling in error message.
10359 * iconv/iconvconfig.c (main): Likewise.
10360 * locale/programs/ld-collate.c (handle_ellipsis): Likewise.
10361 * locale/programs/ld-ctype.c (charclass_symbolic_ellipsis): Likewise.
10362 * locale/programs/localedef.c (main): Likewise.
10363 * locale/programs/repertoire.c (repertoire_read): Likewise.
10364 * timezone/zdump.c (main): Likewise.
10365 * nscd/connections.c (handle_request): Fix spelling in log message.
10366 Patch by Malcolm Parsons <malcolm.parsons@gmail.com>.
10367
83b3108c
UD
103682006-09-20 Ulrich Drepper <drepper@redhat.com>
10369
10370 * inet/inet6_option.c: Also emit linker warnings for the RFC 2292
10371 interfaces.
10372
89210b4c
AJ
103732006-09-20 Andreas Jaeger <aj@suse.de>
10374
10375 * math/libm-test.inc (lrint_test_upward): Fix typo.
10376
6624dbc0
UD
103772006-06-17 Joseph S. Myers <joseph@codesourcery.com>
10378
10379 [BZ #2592]
10380 * math/libm-test.inc (lrint_test_tonearest): New function.
10381 (lrint_test_towardzero): New function.
10382 (lrint_test_downward): New function.
10383 (lrint_test_upward): New function.
10384 (main): Run these new tests.
10385 * sysdeps/ieee754/dbl-64/s_llrint.c (__llrint): Correct rounding
10386 of values near to 0.
10387 (two52): Use double not long double.
10388 * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Likewise.
10389 * sysdeps/ieee754/flt-32/s_llrintf.c (__llrintf): Likewise.
10390 (two23): Use float not double.
10391 * sysdeps/ieee754/flt-32/s_lrintf.c (__lrintf): Likewise.
10392 (two23): Use float not double.
10393 * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl): Likewise.
10394 * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Likewise.
10395 * sysdeps/ieee754/ldbl-96/s_llrintl.c (__llrintl): Likewise.
10396 * sysdeps/ieee754/ldbl-96/s_lrintl.c (__lrintl): Likewise.
10397
60cb50c7
UD
103982006-09-20 Martin Schwidefsky <schwidefsky@de.ibm.com>
10399
10400 * sysdeps/unix/sysv/linux/s390/s390-32/makecontext.c (__makecontext):
10401 Cast sp to unsigned long to avoid compiler warning.
10402 Use __makecontext_ret function instead of a trampoline on the stack.
10403 (__makecontext_ret): New function.
10404 * sysdeps/unix/sysv/linux/s390/s390-64/makecontext.c: Likewise.
10405
33315ced
UD
104062006-09-19 Jakub Jelinek <jakub@redhat.com>
10407
10408 * elf/dl-cache.c (HWCAP_CHECK): If _DL_PLATFORMS_COUNT, but
10409 platform == -1, reject any libs with non-zero _DL_HWCAP_PLATFORM
10410 bits.
10411
1ee2ff20
UD
104122006-09-19 Ulrich Drepper <drepper@redhat.com>
10413
10414 * elf/dl-close.c (_dl_close): If dependency is not unloaded make
10415 sure no reference to the unloaded map's search list remains in the
10416 dependency's scope.
10417
104182006-09-16 Jakub Jelinek <jakub@redhat.com>
10419
10420 * elf/Makefile: Add rules to build and run unload7 test.
10421 * elf/unload7.c: New test.
10422 * elf/unload7mod1.c: New file.
10423 * elf/unload7mod2.c: New file.
10424
0466106e
UD
104252006-09-18 Jakub Jelinek <jakub@redhat.com>
10426
10427 * sysdeps/unix/sysv/linux/sys/ptrace.h (PT_GETEVENTMSG): Fix pasto.
10428 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h (PTRACE_SETOPTIONS,
10429 PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
10430 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h (PTRACE_SETOPTIONS,
10431 PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Likewise.
10432 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h (PTRACE_SETOPTIONS,
10433 PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Likewise.
10434 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h (PTRACE_SETOPTIONS,
10435 PTRACE_GETEVENTMSG): Likewise.
10436 (PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Change to the arch independent
10437 values.
10438
9c316a45
UD
104392006-09-17 Mike Frysinger <vapier@gentoo.org>
10440
0466106e
UD
10441 * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_SETOPTIONS,
10442 PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
10443 * sysdeps/unix/sysv/linux/ptrace.c (ptrace): Check PTRACE_SETOPTIONS,
10444 PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO and PTRACE_SETSIGINFO.
9c316a45
UD
10445
104462006-09-16 Jakub Jelinek <jakub@redhat.com>
10447
10448 * sysdeps/powerpc/powerpc32/register-dump.h (register_dump): Don't
10449 write '\0' to the fd.
10450 * sysdeps/mach/hurd/powerpc/register-dump.h (register_dump): Likewise.
10451 * sysdeps/powerpc/powerpc64/register-dump.h (register_dump): Likewise.
10452 Change regs to unsigned long pointer from unsigned int, fix fscr
10453 offset.
10454
fb146a76
UD
104552006-09-14 Jakub Jelinek <jakub@redhat.com>
10456
10457 * io/Makefile (CFLAGS-fstatat.c): Set.
10458 (CFLAGS-fstatat64.c): Likewise.
10459 (CFLAGS-mknodat.c): Likewise.
10460
10461 * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Comment fixes.
10462 * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
10463 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Rewritten.
10464 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Rewritten.
10465
4cd3633d
UD
104662006-09-14 Jakub Jelinek <jakub@redhat.com>
10467 Steven Munroe <sjmunroe@us.ibm.com>
fb146a76 10468
4cd3633d
UD
10469 * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add 4 new cap
10470 names to the beginning. Rename "cell" to "cellbe".
10471 (_dl_powerpc_platforms): New.
10472 * sysdeps/powerpc/dl-procinfo.h (_DL_HWCAP_FIRST): Decrease.
10473 (HWCAP_IMPORTANT): Remove power{4,5,5+} and cell.
10474 (_DL_PLATFORMS_COUNT, _DL_FIRST_PLATFORM): Define.
10475 (_DL_HWCAP_PLATFORM): Define to new mask.
10476 (_dl_platform_string, _dl_string_platform): New functions.
10477 * sysdeps/powerpc/sysdep.h (PPC_FEATURE_BOOKE, PPC_FEATURE_SMT,
10478 PPC_FEATURE_ICACHE_SNOOP, PPC_FEATURE_ARCH_2_05): Define.
10479
30aa5785
UD
104802006-09-12 Jakub Jelinek <jakub@redhat.com>
10481
10482 [BZ #2526]
10483 * README.libm: Fix a thinko in sqrt algorithm description.
10484
10485 [BZ #3143]
10486 * manual/string.texi (argz_delete): Fix prototype.
10487 Patch by <alpt@freaknet.org>.
10488
104892006-08-26 Joseph Myers <joseph@codesourcery.com>
10490
10491 [BZ #3138]
10492 * io/test-lfs.c (do_prepare): Give name_len type size_t.
10493 * io/tst-fcntl.c (do_prepare): Likewise.
10494 * posix/tst-exec.c (do_prepare): Likewise.
10495 * posix/tst-preadwrite.c (do_prepare): Likewise.
10496 * posix/tst-spawn.c (do_prepare): Likewise.
10497 * posix/tst-truncate.c (do_prepare): Likewise.
10498 * rt/tst-aio.c (do_prepare): Likewise.
10499 * rt/tst-aio64.c (do_prepare): Likewise.
10500 * stdlib/test-canon2.c (do_prepare): Give test_dir_len type
10501 size_t.
10502
d26d01d1
UD
105032006-09-09 Ulrich Drepper <drepper@redhat.com>
10504
41aba3d7
UD
10505 [BZ #2821]
10506 * time/mktime.c (guess_time_tm): Fix overflow detection.
10507 * time/Makefile (tests): Add bug-mktime1.
10508 * time/bug-mktime1.c: New file.
10509
eaa51b47 10510 [BZ #3189, #3188]
d26d01d1 10511 * misc/sys/mman.h (remap_file_pages): Make available for _GNU_SOURCE.
eaa51b47 10512 (mremap): Likewise.
d26d01d1 10513
ba40cc15
UD
105142006-09-07 Jakub Jelinek <jakub@redhat.com>
10515
2b6a801e
UD
10516 [BZ #1006]
10517 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela):
10518 Ensure relocation doesn't clobber any bits outside of the
10519 immediate field for R_SPARC_TLS_LE_HIX22, R_SPARC_WDISP30,
10520 R_SPARC_HI22 and R_SPARC_H44.
10521
469615bd
UD
10522 [BZ #2775]
10523 * malloc/malloc.c (sYSMALLOc): Only call grow_heap if
10524 (long) (MINSIZE + nb - old_size) is positive.
10525
10526 * malloc/arena.c (grow_heap): When growing bail even if new_size
10527 is negative.
10528
ba40cc15
UD
10529 [BZ #3155]
10530 * sysdeps/powerpc/powerpc32/fpu/s_lrint.S (__lrint): Don't access
10531 stack below r1.
10532
243b9ac1
UD
105332006-09-06 Jakub Jelinek <jakub@redhat.com>
10534
ba40cc15
UD
10535 * posix/regex_internal.c (re_string_reconstruct): Handle
10536 offset < pstr->valid_raw_len && pstr->offsets_needed case.
10537 Ensure no bytes read before raw_mbs array. Pass a saved copy of
10538 pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
10539 re_string_context_at.
10540 * posix/Makefile: Add rules to build and run bug-regex26 test.
10541 * posix/bug-regex26.c: New test.
10542
243b9ac1
UD
10543 * locale/programs/ld-collate.c (collate_read): Goto sym_equiv_free
10544 rather than col_sym_free. Move seqp declaration earlier.
10545
10546 * resolv/gai_suspend.c (gai_suspend): Make sure result is initialized.
10547
d052233c
UD
105482006-09-05 Jakub Jelinek <jakub@redhat.com>
10549
10550 * nscd/initgrcache.c (addinitgroupsX): Move any_success
10551 decl before first goto out.
10552
71213dc2
UD
105532006-09-04 Jakub Jelinek <jakub@redhat.com>
10554
10555 * Makerules (shlib.lds): If have-hash-style, put .hash section
10556 at the end of the RO segment.
10557
105582006-09-04 Ulrich Drepper <drepper@redhat.com>
10559
10560 * elf/do-lookup.h (do_lookup_x): Initialize symidx in case the new
10561 style hash table format is used.
10562
03eeff83
UD
105632006-09-04 Jakub Jelinek <jakub@redhat.com>
10564
10565 * resolv/res_mkquery.c (res_nmkquery): Set hp->id to statp->id after
10566 randomization rather than before.
10567 * resolv/res_init.c (res_randomid): Don't call gettimeofday here.
10568
b80770b2
UD
105692006-08-31 Jakub Jelinek <jakub@redhat.com>
10570
ba40cc15 10571 * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Add ld.so.
b80770b2
UD
10572
10573 * malloc/malloc.c (_int_malloc): Use full list insert and not
10574 shortcut which assumes the list is empty for large requests
10575 too.
10576
10577 * elf/tst-addr1.c (do_test): Allow i.dli_sname "_IO_printf".
10578
99ea5991
UD
105792006-08-30 Jakub Jelinek <jakub@redhat.com>
10580
10581 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (splice): Add offin
10582 and offout arguments to the prototype.
10583 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (splice): Likewise.
10584 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h (splice): Likewise.
10585 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (splice): Likewise.
10586 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h (splice): Likewise.
10587 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h (splice): Likewise.
10588 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (splice): Likewise.
10589 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h (splice): Likewise.
10590 * sysdeps/unix/sysv/linux/syscalls.list (splice): Adjust args string.
10591
4004a0a5
UD
105922006-08-28 Ulrich Drepper <drepper@redhat.com>
10593
950398e1
UD
10594 * elf/dl-load.c (_dl_init_paths): Expand DSTs.
10595
4004a0a5
UD
10596 * elf/dl-open.c (dl_open_worker): Allow $LIB and $PLATFORM in
10597 dlopen parameters.
10598
6e310111
UD
105992006-08-28 Jakub Jelinek <jakub@redhat.com>
10600
10601 * inet/getnameinfo.c (getnameinfo): For AF_INET, check errno
10602 only if herrno is NETDB_INTERNAL. Handle errors other than
10603 ERANGE outside of the loops, handle TRY_AGAIN.
10604
10605 * locale/programs/ld-ctype.c (translit_flatten): Issue error
10606 if other's ctype category was missing.
10607 * locale/programs/ld-collate.c (collate_read): Return if
10608 copy_locale's collate category is missing.
10609
07014fca
UD
106102006-08-27 Ulrich Drepper <drepper@redhat.com>
10611
10612 [BZ #2684]
10613 * malloc/malloc.c (public_rEALLOc): Try harder by using other
10614 arenas if allocation failed.
10615 Patch mostly by Jan Edler <jan.edler@indexengines.com>.
10616
71663747
UD
106172006-08-26 Ulrich Drepper <drepper@redhat.com>
10618
41999a1a
UD
10619 * malloc/malloc.c (bin_at): Rewrite to be more clear and to not
10620 waste bins[0..1].
10621 (malloc_state): Reduce bins size by 2.
10622 (_int_malloc): Fix test for large enough buffer for early termination.
10623 When no unsorted block matches perfectly and an exiting block has
10624 to be split, use full list insert and not shortcut which assumes
10625 the list is empty.
10626
71663747
UD
10627 * locale/programs/ld-ctype.c (ctype_read): Better patch for read
10628 failure.
10629
93b53ca2
UD
106302006-08-24 Ulrich Drepper <drepper@redhat.com>
10631
f5a82772
UD
10632 * locale/programs/ld-ctype.c (ctype_read): If CTYPE is NULL, don't
10633 do anything.
10634
2ac9ca73
UD
10635 * sysdeps/generic/ldsodefs.h (DL_ADDR_SYM_MATCH): For undefined
10636 symbol require exact match (these are PLTs).
10637 * sysdeps/unix/sysv/linux/powerpc/powerpc64/ldsodefs.h
10638 (_dl_ppc64_addr_sym_match): Likewise.
10639
93b53ca2
UD
10640 [BZ #2683]
10641 * elf/dl-addr.c (_dl_addr): Don't ignore all undefined symbols.
10642 If symbol has a value use it.
10643 * elf/tst-dladdr1.c: New file.
10644 * elf/Makefile: Add rules to build and run tst-addr1.
10645
7463d5cb
UD
106462006-08-24 Jakub Jelinek <jakub@redhat.com>
10647
10648 * malloc/malloc.c (sYSMALLOc): Avoid infinite loop if MMAP
10649 keeps failing and heap growth or new heap creation isn't
10650 successful either.
10651 * malloc/tst-malloc.c (main): Add new tests.
10652
542a6f62
UD
106532006-08-24 Ulrich Drepper <drepper@redhat.com>
10654
10655 [BZ #2734]
10656 * sysdeps/i386/bits/byteswap.h (__bswap_32): Use same conditions
10657 as in the x86-64 code to use bswap.
10658
aa2c6b6d
UD
106592006-05-21 Joseph S. Myers <joseph@codesourcery.com>
10660
24982798 10661 [BZ #2680]
aa2c6b6d
UD
10662 * posix/unistd.h (getlogin_r): Condition on __USE_POSIX199506, not
10663 __USE_UNIX98.
10664 * posix/bits/unistd.h: Likewise.
10665
59776aef
UD
106662006-05-15 Mike Frysinger <vapier@gentoo.org>
10667
10668 [BZ #2751]
10669 * string/strchr.c: Add cast to avoid warning.
10670
e404fb16
UD
106712006-08-21 Ulrich Drepper <drepper@redhat.com>
10672
10673 * malloc/malloc.c (DEFAULT_MMAP_THRESHOLD_MAX): For 32-bit
bd2c2341 10674 platforms define as 512K. For 64-bit platforms as 32MB. The lower
e404fb16
UD
10675 limit is needed to avoid the exploding of the address space
10676 requirement for secondary heaps.
10677 * malloc/arena.c (HEAP_MAX_SIZE): Define using
10678 DEFAULT_MMAP_THRESHOLD_MAX if it is defined.
10679
376e973a
UD
106802006-07-30 Joseph S. Myers <joseph@codesourcery.com>
10681
10682 [BZ #3018]
10683 * Makerules (depfiles): Handle extra-test-objs the same as
10684 extra-objs.
10685 (common-mostlyclean): Likewise.
10686 * dlfcn/Makefile (extra-objs): Add modules to extra-test-objs
10687 instead.
10688 * elf/Makefile (extra-objs): Likewise.
10689 * stdlib/Makefile (extra-objs): Likewise.
10690
240c62a7
UD
106912006-08-14 Eric Blake <ebb9@byu.net>
10692
10693 [BZ #3044]
10694 * misc/error.h: Assume C89 or better.
10695 * misc/error.c: Likewise.
10696
3997b7c4
UD
106972006-08-21 Ulrich Drepper <drepper@redhat.com>
10698
10699 [BZ #3040]
10700 * sysdeps/unix/sysv/linux/openat.c: Fix compilation if
10701 __ASSUME_ATFCTS is defined.
10702
8a6537b0
UD
107032006-08-19 Ulrich Drepper <drepper@redhat.com>
10704
72320021
UD
10705 * malloc/malloc.c (_int_malloc): Limit number of unsorted blocks
10706 to sort in each call.
10707
ed3691ba
UD
10708 * nis/nss_nis/nis-service.c (internal_nis_getservent_r): . If map
10709 is empty simply return and use next service.
10710 * nis/nss_nis/nis-rpc.c (internal_nis_getrpcent_r): Likewise.
10711
8a6537b0
UD
10712 * locale/programs/charmap.c (charmap_read): Add new parameter. It
10713 tells us when not finding a charmap file is an error.
10714 * locale/programs/charmap.h: Adjust charmap_read prototype.
10715 * iconv/iconv_prog.c (main): Tell charmap_read it's no error if we
10716 cannot find a charmap.
10717 * locale/programs/localedef.c (main): Adjust charmap_read call.
10718
ad2a3c07
UD
107192006-08-15 Jakub Jelinek <jakub@redhat.com>
10720
10721 * sysdeps/unix/sysv/linux/sparc/sparc64/pause.c: Use
10722 sysdeps/posix/pause.c implementation instead.
10723
107242006-08-09 Jakub Jelinek <jakub@redhat.com>
10725
10726 * sysdeps/unix/nice.c (nice): Transform EACCES errno from setpriority
10727 to EPERM.
10728
f17efcb4
UD
107292006-08-13 Andreas Schwab <schwab@suse.de>
10730
10731 * sysdeps/powerpc/powerpc32/dl-trampoline.S (_dl_runtime_resolve):
10732 Don't clobber caller's LRSAVE.
10733 (_dl_prof_resolve): Likewise.
10734
107b8a92
UD
107352006-08-14 Ulrich Drepper <drepper@redhat.com>
10736
10737 [BZ #1996]
10738 * libio/memstream.c (open_memstream): Allocate initial buffer with
10739 calloc.
10740 * libio/wmemstream.c (open_wmemstream): Likewise.
10741 * libio/strops.c: Pretty printing.
10742 (_IO_str_overflow): Clear uninitialized part of the new buffer.
10743 (enlarge_userbuf): New function.
10744 (_IO_str_seekoff): Call it if seek position is larger than current
10745 buffer.
10746 * libio/wstrops.c: Likewise.
10747 * libio/vasprintf.c: Add comment as to why we do not have to use
10748 calloc instead of malloc to allocate initial buffer.
10749 * libio/Makefile (tests): Add bug-memstream1 and bug-wmemstream1.
10750 * libio/bug-memstream1.c: New file.
10751 * libio/bug-wmemstream1.c: New file.
10752
fa3ac53f
UD
107532006-08-13 Ulrich Drepper <drepper@redhat.com>
10754
89993734
UD
10755 * libio/wstrops.c: Remove dead macro definitions and comments.
10756 * libio/strops.c: Likewise.
10757
fa3ac53f
UD
10758 [BZ #2764]
10759 * login/utmpname.c (__utmpname): Remove unnecessary test.
10760
f99ed760
UD
107612006-06-08 Joseph Myers <jsm28@gcc.gnu.org>
10762
10763 [BZ #2832]
10764 * math/gen-libm-test.pl (clean_up_number): Do not remove trailing
10765 0s from integers.
10766
107672006-08-13 Ulrich Drepper <drepper@redhat.com>
10768
10769 [BZ #2987]
10770 * sysdeps/unix/sysv/linux/clock_settime.c: Add code to use syscall
10771 for CPU clocks.
10772 * sysdeps/unix/clock_settime.c: Add support for platform-specific
10773 setting of CPU clocks.
10774
4c3f81d0
UD
107752006-06-23 Paul Eggert <eggert@cs.ucla.edu>
10776
10777 [BZ #2841]
10778 * sysdeps/generic/stdint.h (UINT8_C, UINT16_C): Don't append 'U',
10779 since C99 requires the result to promote to 'int' when uint_least8_t
10780 and uint_least16_t promote to 'int'.
10781
cd8e60ce
UD
107822006-08-12 Ulrich Drepper <drepper@redhat.com>
10783
9a5c46e8
UD
10784 [BZ #3013]
10785 * locale/programs/ld-ctype.c (ctype_output): Adjust alignments, fix
10786 lenght of one output field, correct bitmask creation.
10787 * locale/programs/ld-time.c: Add alignment.
10788
cd8e60ce
UD
10789 [BZ #2997]
10790 * misc/error.c: Add space between program name and message if file
10791 name is missing.
10792
9a528884
UD
107932006-08-03 Eric Blake <ebb9@byu.net>
10794
10795 [BZ #2998]
10796 * misc/error.c (error_tail) [_LIBC]: Avoid invalid free.
10797
1d05c2fb
UD
107982006-08-09 Ulrich Drepper <drepper@redhat.com>
10799
0c1c6c6c
UD
10800 * malloc/memusagestat.c: Silence warnings.
10801
1d05c2fb
UD
10802 * malloc/malloc.c: Dynamically size mmap treshold if the program
10803 frees mmaped blocks.
10804 Patch by Valerie Henson and Arjan van de Ven.
10805
2d1e6277
UD
108062006-08-08 Jakub Jelinek <jakub@redhat.com>
10807
be7ffd91
UD
10808 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (O_DIRECT): Protect with
10809 __USE_GNU.
10810
2d1e6277
UD
10811 * stdlib/strtol_l.c (__strtol_ul_max_tab, __strtol_ul_rem_tab,
10812 __strtol_ull_max_tab, __strtol_ull_rem_tab): Declare.
10813 (DEF): Don't put the var into .gnu.linkonce.r.* section.
10814 Only provide var definitions in strtol_l (or for *ull*
10815 in strtoll_l).
10816
10817 * stdio-common/bug16.c (tests): New array.
10818 (do_tests): Allow the first hexadecimal digit
10819 to be 1, 2, 4 or 8. Do 3 additional tests.
10820
10821 * sysdeps/s390/fpu/libm-test-ulps: Update.
10822
10823 * sysdeps/unix/sysv/linux/s390/s390-32/fchownat.c (fchownat): Use
10824 fchownat syscall if available.
10825 * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat): Likewise.
10826 * sysdeps/unix/sysv/linux/sh/fchownat.c (fchownat): Likewise.
10827 * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Likewise.
10828
d0ccde25
UD
108292006-08-07 Ulrich Drepper <drepper@redhat.com>
10830
10831 * nis/nis_xdr.c: Avoid some function calls.
10832
13a0293d 108332006-08-07 Jakub Jelinek <jakub@redhat.com>
3f7a21a9 10834 Ulrich Drepper <drepper@redhat.com>
13a0293d
UD
10835
10836 * nis/nis_call.c (rec_dirsearch) [case LOWER_NAME]: Don't take
10837 short cut if only one name component is stripped away.
10838
bd1ebae0
UD
108392006-08-07 Ulrich Drepper <drepper@redhat.com>
10840
10841 * nis/nis_call.c: Minor cleanups throughout.
2d1e6277 10842 (rec_dirsearch) [case HIGHER_NAME]: Correctly size ndomain array.
bd1ebae0
UD
10843 (first_shoot): Add search_parent_first parameter. Only if it is set
10844 search parent server first.
10845 If directory for table found through cold start cache is not the same
10846 as referenced in the cache, don't use it.
10847 (__nisfind_server): Take additional parameter. Pass it on to
10848 first_shoot.
10849 (__prepare_niscall): Adjust __nisfind_server call.
10850 * nis/rpcsvc/nislib.h: Adjust __nisfind_server prototype.
10851 * nis/nis_table.c: Adjust __nisfind_server call.
10852 * nis/nis_lookup.c: Likewise.
10853 (nis_lookup): Don't loop endlessly if name is reduced to ".".
10854
f1762c0c
UD
108552006-08-03 Ulrich Drepper <drepper@redhat.com>
10856
fe710250
UD
10857 [BZ #2182]
10858 * math/s_cacosh.c: Return values from positive branch.
10859 * math/s_cacoshf.c: Likewise.
10860 * math/s_cacoshl.c: Likewise.
10861
a5852807
UD
10862 [BZ #2883]
10863 * sysvipc/sys/msg.h: Change return value to ssize_t.
10864 * sysdeps/unix/sysv/linux/msgrcv.c: Likewise.
fe710250
UD
10865 * sysvipc/msgrcv.c: Likewise.
10866 * include/sys/msg.h: Likewise.
39571a13 10867
6c215a8d
UD
10868 * grp/initgroups.c (internal_getgrouplist): Remove unnecessary
10869 test introduced in patch for bz #661.
39571a13 10870 (getgrouplist): Simplify code a bit. Don't allocate one additional
f13bfdd0 10871 element for NEWGROUPS.
6c215a8d 10872
9c06eb66
UD
10873 [BZ #2908]
10874 * stdio-common/printf_fphex.c (__printf_fphex): When rounding up
10875 'f', use '1' as leading digit not '\1'.
10876 * stdio-common/Makefile (tests): Add bug16.
10877 * stdio-common/bug16.c: New file.
10878
10879 [BZ #2914]
10880 * sysdeps/unix/sysv/linux/gethostid.c: Don't define OLD_HOSTIDFILE
10881 and don't try to open it. The patch introducing the macro
10882 contained a bug and used the same file name as the new file
10883 instead of using /var/adm/hostid. Nobody complaint so I'm taking
10884 this out completely.
10885
10886 [BZ #2926]
10887 * assert/assert.h: Move cast to void inside ?: to quiet gcc.
10888 Patch by Jerry James <Jerry.James@usu.edu>.
10889
f1762c0c
UD
10890 * rt/Makefile (tests): Add tst-clock2.
10891 * rt/tst-clock2.c: New file.
10892
10893 [BZ #2978]
10894 * resolv/gai_notify.c (__gai_notify_only): Copy memory for thread
10895 function and its parameters and pass it to new thread.
10896 (__gai_notify): Add support for alternative waiting for completion.
10897 * resolv/gai_suspend.c (gai_suspend): Add support for alternative
10898 waiting for completion.
10899 * resolv/getaddrinfo_a.c: Likewise.
10900 * resolv/gai_misc.h (struct waitlist): Don't add cond if alternative
10901 waiting for completion is used.
10902 * resolv/gai_misc.c: Allow overwriting code to start helper thread.
10903 * resolv/gai_cancel.c: Include <gai_misc.h> not "gai_misc.h".
10904 * resolv/gai_error.c: Likewise.
10905 * resolv/gai_sigqueue.c: Likewise.
10906
83ae6b40
RM
109072006-08-02 Thomas Schwinge <tschwinge@gnu.org>
10908
0e4e62fe 10909 * hurd/getdport.c (__getdport): Don't return EBADF; instead set
f1762c0c 10910 errno to EBADF and return MACH_PORT_NULL.
83ae6b40 10911
82ee37c5
UD
109122006-06-23 Joseph Myers <joseph@codesourcery.com>
10913
10914 [BZ #2980]
f1762c0c 10915 * posix/Makefile (CFLAGS-waitid.c): Add -fasynchronous-unwind-tables.
82ee37c5
UD
10916
109172006-08-02 Ulrich Drepper <drepper@redhat.com>
10918
10919 * elf/dl-addr.c (_dl_addr): If GNU-style hash tables are present,
10920 walk them instead of the symbol table.
10921
7bb1b2c9
UD
109222006-08-01 Ulrich Drepper <drepper@redhat.com>
10923
f13bfdd0 10924 [BZ #2098]
fbbc73b3
UD
10925 * nscd/initgrcache.c (addinitgroupsX): Judge successful lookups by
10926 status of NSS calls, not the number of returned entries.
10927
a4518922
UD
10928 * sysdeps/unix/sysv/linux/syscalls.list: Remove add_key,
10929 request_key, keyctl.
7bb1b2c9 10930
b06e7e9a
UD
109312006-07-31 Ulrich Drepper <drepper@redhat.com>
10932
10933 * sysdeps/unix/sysv/linux/dl-osinfo.h: Remove unnecessary include.
10934
f1227969
UD
109352006-07-16 Jeff Bailey <jbailey@ubuntu.com>
10936
10937 * elf/tst-auditmod1.c: Fix typo in #error.
10938
82ae2712
UD
109392006-07-31 Ulrich Drepper <drepper@redhat.com>
10940
f1227969
UD
10941 * elf/tst-auditmod1.c: Remove code for unsupported architectures.
10942
82ae2712
UD
10943 * iconvdata/run-iconv-test.sh: Run cmp in C locale.
10944
a1260d92
UD
109452006-07-20 Adam Nemet <anemet@caviumnetworks.com>
10946
10947 * stdlib/test-canon.c (do_test): Close fd before unlinking file so
b06e7e9a 10948 that the directory is empty even on non-POSIX filesystems.
a1260d92 10949
d2de41fe
UD
109502006-07-31 Ulrich Drepper <drepper@redhat.com>
10951
13669f2c
UD
10952 * elf/dl-open.c (dl_open_worker): Add branch prediction.
10953
d2de41fe
UD
10954 * nis/nss_compat/compat-grp.c: Avoid unnecessary setgrent calls into
10955 the backend NSS module. If backend setgrent call failed, don't have
10956 internal_setgrent fail. Just remember this until it is needed.
10957 * nis/nss_compat/compat-pwd.c: Likewise.
10958 * nis/nss_compat/compat-spwd.c: Likewise.
10959
b894c2ea
RM
109602006-07-30 Roland McGrath <roland@redhat.com>
10961
10962 * sysdeps/unix/sysv/linux/ia64/sigsuspend.c: File removed.
10963 * sysdeps/unix/sysv/linux/x86_64/sigsuspend.c: File removed.
10964 * sysdeps/unix/sysv/linux/s390/s390-64/sigsuspend.c: File removed.
10965 * sysdeps/unix/sysv/linux/sparc/sparc64/sigsuspend.c: File removed.
10966
10967 * sysdeps/unix/sysv/linux/not-cancel.h (pause_not_cancel): New macro.
10968 (nanosleep_not_cancel): New macro.
10969 (sigsuspend_not_cancel): new macro.
10970 * sysdeps/unix/sysv/linux/sigsuspend.c [__ASSUME_REALTIME_SIGNALS]
10971 (do_sigsuspend): Define as inline.
10972 (__sigsuspend): Always use do_sigsuspend.
10973 [! NO_CANCELLATION] (__sigsuspend_nocancel): New function.
10974 * include/signal.h: Declare __sigsuspend_nocancel.
10975 * sysdeps/posix/pause.c
10976 [! NO_CANCELLATION] (__pause_nocancel): New function.
10977
10978 * include/unistd.h (__pause_nocancel): Add attribute_hidden.
10979 * include/time.h (__nanosleep_nocancel): Likewise.
10980
c10d32c8
UD
109812006-07-30 Ulrich Drepper <drepper@redhat.com>
10982
10983 * locale/programs/localedef.c (add_to_readlist): Rename local
10984 variables to avoid confusion.
10985
10986 * locale/programs/charmap.c (charmap_read): Emit error message if
10987 charmap couldn't be found or read.
10988
6822f056
UD
109892006-07-28 Ulrich Drepper <drepper@redhat.com>
10990
d5ba53f9
UD
10991 * sysdeps/unix/sysv/linux/kernel-features.h: Define
10992 __ASSUME_FUTEX_LOCK_PI.
10993 * include/time.h: Declare __nanosleep_nocancel.
10994 * include/unistd.h: Declare __pause_nocancel.
10995
6822f056
UD
10996 * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Use this instead of
10997 LDFLAGS. Add -lgcc_eh and libc_nonshared (again) to make sure we
10998 get the __stack_chk_fail_local definition when it's needed.
10999
3a975ff5
UD
110002006-07-26 Ulrich Drepper <drepper@redhat.com>
11001
6de1f625
UD
11002 * dlfcn/Makefile: Add rules to build and run bug-atexit3.
11003 * dlfcn/bug-atexit3.c: New file.
11004 * dlfcn/bug-atexit3-lib.cc: New file.
11005
3a975ff5
UD
11006 * dlfcn/dlmopen.c (dlmopen_doit): Don't allow RTLD_GLOBAL to be
11007 used when the namespace is not the base namespace.
11008
a92b1166
UD
110092006-07-26 Gavin Romig-Koch <gavin@redhat.com>
11010
11011 * stdlib/cxa_atexit.c (__new_exitfn_called): New variable.
11012 (__new_exitfn): Bump it in every successful call.
11013 * stdlib/cxa_finalize.c (__cxa_finalize): If destructor registered
11014 more exit handlers, call them right away.
11015 * stdlib/exit.h: Declare __new_exitfn_called.
11016
a08336fb
UD
110172006-07-25 Ulrich Drepper <drepper@redhat.com>
11018
bd3754dc
UD
11019 * stdlib/cxa_finalize.c (__cxa_finalize): Fix race condition when
11020 calling registered handler.
11021
a08336fb
UD
11022 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Fix comment.
11023 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
11024 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
11025 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
11026 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
11027 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
11028 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
11029 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
11030
871b9158
UD
110312006-07-10 Ulrich Drepper <drepper@redhat.com>
11032
11033 * elf/dl-lookup.c (dl_new_hash): New functions.
11034 (_dl_lookup_symbol_x): Rename hash to old_hash and don't compute
11035 value here. Compute new-style hash value. Pass new hash value
11036 and reference to variable with the old value to do_lookup_x.
11037 (_dl_setup_hash): If DT_GNU_HASH is defined, use it and not
11038 old-style hash table.
11039 (_dl_debug_bindings): Pass new hash value and reference to variable
11040 with the old value to do_lookup_x.
11041 * elf/do-lookup.h (do_lookup_x): Accept additional parameter with
11042 new-style hash value and change old-style hash value parameter to
11043 be a reference. Reoganize functions to determine whether
11044 new-style hash table is available. Only fall back on old-style
11045 table. If old-style hash value is needed, compute it here.
11046 * elf/dynamic-link.h (elf_get_dynamic_info): Relocate DT_GNU_HASH
11047 entry.
11048 * elf/elf.h: Define SHT_GNU_HASH, DT_GNU_HASH, DT_TLSDEC_PLT,
11049 DT_TLSDEC_GOT. Adjust DT_ADDRNUM.
11050 * include/link.h (struct link_map): Add l_gnu_bitmask_idxbits,
11051 l_gnu_shift, l_gnu_bitmask, l_gnu_buckets and l_gnu_chain_zero.
11052 * Makeconfig: If linker supports --hash-style option add it to all
11053 linker command lines to build DSOs.
11054 * config.make.in: Define have-hash-style.
11055 * configure.in: Test whether linker supports --hash-style option.
11056
11057 * elf/dl-misc.c (_dl_name_match_p): Make MAP parameter const.
11058 * sysdeps/generic/ldsodefs.h: Adjust prototype.
11059
a1f0de82
UD
110602006-06-27 Ulrich Drepper <drepper@redhat.com>
11061
361a3706
UD
11062 * elf/dl-load.c (open_path): Fix test to determine whether DSO is
11063 auditing.
11064
a1f0de82
UD
11065 * elf/dl-load.c (_dl_map_object): Try harder to avoid looking at
11066 RPATH of main map twice.
11067
4259230f
UD
110682006-06-22 Ulrich Drepper <drepper@redhat.com>
11069
11070 * intl/dcigettext.c (DCIGETTEXT): If _nl_find_msg returns -1 don't
11071 look further, return original strings.
11072 (_nl_find_msg): Do not return found translation if the conversion
11073 failed. Either signal the string is unusable or that something went
11074 wrong and the original should be used.
11075
110762006-06-21 Ulrich Drepper <drepper@redhat.com>
11077
11078 * string/_strerror.c (__strerror_r): Add __builtin_expect.
11079
f9b7a98b
UD
110802006-06-14 Jakub Jelinek <jakub@redhat.com>
11081
11082 [BZ #2766]
11083 * misc/insremque.c (insque): Handle prev == NULL.
11084 * misc/Makefile (tests): Add tst-insremque.
11085 * misc/tst-insremque.c: New test.
11086
ac55a25b
UD
110872006-06-17 Ulrich Drepper <drepper@redhat.com>
11088
11089 [BZ #2792]
11090 * elf/dl-deps.c (expand_dst): Rename __cnt variable to not
11091 conflict with DL_DST_REQUIRED.
11092
02f366b3
UD
110932006-06-16 Ulrich Drepper <drepper@redhat.com>
11094
11095 * nis/nis_subr.c (nis_getnames): Fix the implementation to better
11096 match what Solaris does.
11097
9009e8f8
UD
110982006-06-04 Ulrich Drepper <drepper@redhat.com>
11099
1b8373f4
UD
11100 * sysdeps/posix/spawni.c (__spawni): Use local_seteuid and
11101 local_setegid instead of seteuid and setegid.
11102 * sysdeps/generic/local-setxid.h: New file.
11103 * sysdeps/unix/sysv/linux/local-setxid.h: New file.
11104
7231452e
UD
11105 * sysdeps/posix/spawni.c (__spawni): Use non-cancelable interfaces.
11106
9009e8f8 11107 * string/Makefile (tests): Add bug-envz1.
02f366b3 11108 * string/bug-envz1.c: New file.
9009e8f8 11109
33e63e79
UD
111102006-06-02 Jakub Jelinek <jakub@redhat.com>
11111
11112 * posix/regex_internal.c (re_string_skip_chars): If no character has
11113 been converted at all, set *last_wc to WEOF. If mbrtowc failed, set wc
11114 to the byte which couldn't be converted.
11115 (re_string_reconstruct): Don't clear valid_raw_len before calling
11116 re_string_skip_chars. If wc is WEOF after re_string_skip_chars, set
11117 tip_context using re_string_context_at.
11118 * posix/Makefile: Add rules to build and run bug-regex25 test.
11119 * posix/bug-regex25.c: New test.
11120
fdc02996
UD
111212006-06-02 Ryan S. Arnold <rsa@us.ibm.com>
11122
11123 [BZ #2703]
11124 * string/envz.c (envz_strip): Correct erroneously reversed src
11125 and dest parameters to memmove() invocation.
11126
902c4291
UD
111272006-05-30 Jakub Jelinek <jakub@redhat.com>
11128
11129 * nscd/nscd.h (prune_cache): Add fd argument to prototype.
11130 * nscd/nscd.c (parse_opt): Read response from INVALIDATE request
11131 to make sure the database has been already invalidated.
11132 * nscd/cache.c (prune_cache): Add fd argument. Write response to fd
11133 after the cache has been invalidated. Use pthread_mutex_lock rather
11134 than pthread_mutex_trylock if fd != -1.
11135 * nscd/connections.c (invalidate_cache): Add fd argument, write
11136 response to fd if not calling prune_cache, pass fd to prune_cache.
11137 (handle_request): Adjust invalidate_cache caller.
11138 (nscd_run): Pass -1 as fd to prune_cache.
11139
ecc68568
UD
111402006-05-30 Ulrich Drepper <drepper@redhat.com>
11141
11142 * sysdeps/posix/getaddrinfo.c (gaiconf_init): Initialize bits in
11143 the correct place.
11144
9636a217
UD
111452006-05-29 Ulrich Drepper <drepper@redhat.com>
11146
11147 * nscd/nscd.h (struct database_dyn): Add prunelock field.
11148 * nscd/cache.c (prune_cache): Take prunelock before starting the
11149 work. Just return in case it is already taken.
cabfcde1 11150 * nscd/connections.c (dbs): Initialize .prunelock.
9636a217 11151
6bcb494a
UD
111522006-05-25 Ulrich Drepper <drepper@redhat.com>
11153
672d5a63 11154 * nis/nis_removemember.c (nis_removemember): Avoid unnecessary
ecc68568 11155 copying. No need to allocate new array for group members. Just
672d5a63
UD
11156 move the pointers and update the size.
11157
1663b44f
UD
11158 * nis/nis_addmember.c (nis_addmember): Avoid unnecessary copying.
11159 Avoid memory leak in case realloc fails. Simplification for
11160 better code generation.
11161
11162 Avoid deprecation warning because of libc_hidden_proto for
11163 inet6_option_alloc.
11164 * inet/inet6_option.c (option_alloc): Renamed from
11165 inet6_option_alloc. Made static.
9636a217 11166 (inet6_option_alloc): Now a simple wrapper around option_alloc.
1663b44f
UD
11167 (inet6_option_append): Call option_alloc.
11168 * include/netinet/in.h: Remove libc_hidden_proto for
11169 inet6_option_alloc.
11170
6bcb494a
UD
11171 * nis/nis_callback.c (__nis_create_callback): Always call xdr_free
11172 for cleanup when cb!=NULL [Coverity CID 233].
11173
aec6b246
UD
111742006-05-24 Ulrich Drepper <drepper@redhat.com>
11175
07bfff20
UD
11176 [BZ #2693]
11177 * inet/Makefile (routines): Add inet6_opt and inet6_rth.
11178 * inet/Versions (libc, GLIBC_2.5): Add inet6_opt_init,
11179 inet6_opt_append, inet6_opt_finish, inet6_opt_set_val, inet6_opt_next,
11180 inet6_opt_find, inet6_opt_get_val, inet6_rth_space, inet6_rth_init,
11181 inet6_rth_add, inet6_rth_reverse, inet6_rth_segments,
11182 and inet6_rth_getaddr.
11183 * inet/netinet/ip6.h (struct ip6_rthdr0): Make ip6r0_addr a flexible
11184 array.
11185 * inet/netinet/in.h (struct ip6_mtuinfo): Define.
11186 Mark inet6_option_* interfaces as deprecated.
11187 Declare inet6_opt_init, inet6_opt_append, inet6_opt_finish,
11188 inet6_opt_set_val, inet6_opt_next, inet6_opt_find, inet6_opt_get_val,
11189 inet6_rth_space, inet6_rth_init, inet6_rth_add, inet6_rth_reverse,
11190 inet6_rth_segments, and inet6_rth_getaddr.
11191 * inet/inet6_opt.c: New file.
11192 * inet/inet6_rth.c: New file.
11193
11194 * inet/netinet/icmp6.h: Pretty printing.
11195
aec6b246
UD
11196 [BZ #2683]
11197 * elf/dl-addr.c (_dl_addr): Don't match undefined references.
11198
2d571cd1
UD
111992006-05-23 Ulrich Drepper <drepper@redhat.com>
11200
062e719b
UD
11201 * nis/nis_lookup.c (nis_lookup): Use __prepare_niscall instead of
11202 doing it all here. When server does not know the answer do not
11203 fail immediate, try parent first.
11204
2d571cd1
UD
11205 * nis/nis_domain_of_r.c (nis_domain_of_r): Add missing buffer
11206 overflow test.
11207
a17fa610
UD
112082006-05-20 Ulrich Drepper <drepper@redhat.com>
11209
11210 * nis/nis_call.c (__prepare_niscall): New function. Split out
11211 from __do_niscall.
11212 * nis/nis_table.c (__create_ib_request): Renamed from create_ib_request
11213 and exported.
11214 (__follow_path): New function. Split out from nis_list.
11215 * nis/nis_xdr.h: Add libnsl_hidden_proto for _xdr_ib_request and
11216 _xdr_nis_result.
11217 * nis/nis_xdr.c: Add libnsl_hidden_def for _xdr_ib_request and
11218 _xdr_nis_result.
11219 * nis/libnsl.h: Declare __prepare_niscall, __create_ib_request,
11220 and __follow_path.
11221 * nis/Versions: Export __prepare_niscall, __create_ib_request,
11222 __follow_path, __do_niscall3, _xdr_ib_request, and _xdr_nis_result
11223 from libnsl for version GLIBC_PRIVATE.
11224 * nis/nisplus-parser.h: Remove _nss_nisplus_parse_pwent_chk.
11225 Remove entry parameter from _nss_nisplus_parse_pwent and
11226 _nss_nisplus_parse_grent.
11227 * nis/nss_nisplus/nisplus-parser.c: Likewise.
11228 * nis/nss_nisplus/nisplus-pwd.c: Remove support for SETENT_BATCH_READ
11229 again. Rewrite getpwent handling to not use nis_first_entry and
11230 nis_next_entry. Roll out own niscall handling.
11231 * nis/nss_nisplus/nisplus-grp.c: Likewise.
11232
11233 * sunrpc/xdr_rec.c: Fix typo in comment.
11234
429bb183
UD
112352006-05-19 Ulrich Drepper <drepper@redhat.com>
11236
1d4f062a
UD
11237 * nis/nis_call.c (__do_niscall3): Avoid code duplication in error
11238 handling.
11239
101cc598
UD
11240 * nis/nis_callback.c (internal_nis_do_callback): Don't use malloc
11241 to allocate memory for my_pollfd. Better initialization of
11242 cb_is_running. Use TEMP_FAILURE_RETRY.
11243
f50fa10c
UD
11244 * malloc/memusage.sh (memusageso): Add quotes.
11245 (memusagestat): Likewise.
11246 * debug/xtrace.sh (pcprofileso): Likewise.
11247 (pcprofiledump): Likewise.
11248 * debug/Makefile ($(objpfx)xtrace): Use $LIB in SLIBDIR
11249 replacement.
11250 * malloc/Makefile ($(objpfx)memusage): Likewise.
11251
882bfe73
UD
11252 * nis/nis_callback.c (__nis_create_callback): Calls to
11253 svcudp_bufcreate and svctcp_create can fail. Free ->xprt if
11254 asprintf call fails.
11255
429bb183
UD
11256 * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_sendreq): Make sure
11257 no uninitialized memory is passed to sendto.
11258
f90de831
UD
112592006-05-18 Ulrich Drepper <drepper@redhat.com>
11260
11261 * nis/nis_callback.c (__nis_create_callback): Use asprinf instead
11262 of snprintf+strdup. Handle OOM.
11263 * nis/nis_callback.c (__nis_create_callback): Allocate cb and
11264 cb->serv together. Remove now obsolete free calls.
11265 (__nis_destroy_callback): Remove now obsolete free call.
11266
a17fa610 112672006-05-18 David Woodhouse <dwmw2@redhat.com>
6e2a7825
UD
11268
11269 * sysdeps/posix/getaddrinfo.c: Add unique labels to the default
11270 RFC3484 precedence table for fec0::/10 and fc00::/7 (site-local
11271 and ULA respectively). Set precedence for IPv4 address to 10 as
11272 defined in RFC3484 for preferring IPv6.
11273 * posix/gai.conf: Update to match the new default tables.
11274
758b9d7e
UD
112752006-05-18 Jakub Jelinek <jakub@redhat.com>
11276
11277 * nis/nss_compat/compat-pwd.c (internal_setpwent): If nss_set*ent
11278 returned NSS_STATUS_UNAVAIL, still return NSS_STATUS_SUCCESS.
11279 * nis/nss_compat/compat-spwd.c (internal_setspent): Likewise.
11280 * nis/nss_compat/compat-grp.c (internal_setgrent): Likewise.
11281
11282 * nis/nss_compat/compat-initgroups.c (nss_setgrent, nss_endgrent):
11283 Removed.
11284 (init_nss_interface): Remove initialization of these variables.
11285
112862006-05-18 Ulrich Drepper <drepper@redhat.com>
11287
11288 * nis/nis_call.c (rec_dirsearch): Little optimization: pull
11289 nis_free_directory forward to avoid duplication.
11290
388c779e
UD
112912006-05-17 Ulrich Drepper <drepper@redhat.com>
11292
5f1724bf
UD
11293 * nis/nis_call.c (rec_dirsearch): Handle __nis_finddirectory and
11294 rec_dirsearch returning NULL.
11295 (first_shoot): Handle __nis_finddirectory returning NULL.
11296 (__nisfind_server): Fix leak when rec_dirsearch returns NULL.
11297
388c779e
UD
11298 * sysdeps/unix/sysv/linux/sys/inotify.h: Define IN_CLOSE, IN_MOVE,
11299 IN_ONLYDIR, IN_DONT_FOLLOW, and IN_MASK_ADD.
11300
360d5cf4
UD
113012006-05-17 Jakub Jelinek <jakub@redhat.com>
11302
11303 * sunrpc/key_call.c (getkeyserv_handle): Call auth_destroy if
11304 pid changed.
11305
88dbff8c
UD
113062006-05-15 Ulrich Drepper <drepper@redhat.com>
11307
6f8a7dff
UD
11308 * include/rpc/pmap_prot.h: Mark all functions as hidden.
11309
11310 * nscd/nscd_initgroups.c: Mark __gr_map_handle as hidden.
11311 * nscd/nscd_getgr_r.c: Likewise.
11312
11313 * include/rpc/pmap_rmt.h: Mark all functions as hidden.
11314
11315 * nscd/nscd_getai.c (__hst_map_handle): Mark as hidden.
11316 * nscd/nscd_gethst_r.c (__hst_map_handle): Likewise.
11317
11318 * stdlib/longlong.h (__clz_tab): Mark as hidden.
11319
11320 * iconv/gconv_int.h: Mark __gconv_lock as hidden.
11321
360d5cf4 11322 * include/rpc/key_prot.h: Mark all _internal functions as hidden.
8263ed62
UD
11323
11324 * include/rpc/auth.h: Mark xdr_des_block_internal and
11325 xdr_opaque_auth_internal as hidden.
11326
11327 * sysdeps/unix/sysv/linux/getdents.c: Mark __have_no_getdents64 as
11328 hidden.
11329
360d5cf4 11330 * include/rpc/xdr.h: Mark all _internal functions as hidden.
8263ed62 11331
02264020
UD
11332 * misc/getusershell.c (okshells): Don't use static initializers,
11333 do it dynamically.
11334
fd5ea238
UD
11335 * stdlib/fmtmsg.c (keywords): Change type of len element to
11336 uint32_t to not waste space on 64bit machines.
11337
9446614c
UD
11338 * locale/setlocale.c: Change _nl_category_names into a string.
11339 Add new _nl_category_name_idxs. Change all users.
11340 * locale/localeinfo.h: Adjust declaration of _nl_category_names.
11341 Declare _nl_category_name_idxs.
11342 * locale/findlocale.c: Adjust for _nl_category_names change.
11343 * locale/loadlocale.c: Likewise.
11344 * locale/newlocale.c: Likewise.
11345 * intl/dcigettext.c: Likewise.
11346
88dbff8c
UD
11347 * iconv/gconv_conf.c (add_alias): Move actual alias handling to...
11348 (add_alias2): ...here. New function.
11349 (__gconv_read_conf): Simplify builtin alias handling.
11350 (builtin_aliases): Convert to string to avoid relocations.
11351 * iconv/gconv_builtin.h: Add comment about correct formatting.
11352
4442d58f
UD
113532006-05-15 Jakub Jelinek <jakub@redhat.com>
11354
11355 * resolv/res_debug.c (loc_ntoa): Make error const.
11356
113572006-05-14 Andreas Schwab <schwab@suse.de>
11358
11359 * math/complex.h [__LDBL_COMPAT]: Use __REDIRECT_NTH.
11360
113612006-05-12 Jakub Jelinek <jakub@redhat.com>
11362
11363 * sysdeps/unix/sysv/linux/sched_getaffinity.c: Include sys/param.h.
11364 (__sched_getaffinity_new): Don't crash if cpusetsize is smaller than
11365 sizeof (cpu_set_t).
11366
a51752b6
UD
113672006-05-11 Ulrich Drepper <drepper@redhat.com>
11368
5d3fd1f6
UD
11369 * resolv/res_debug.c (loc_ntoa): Define error as array, not pointer.
11370
08cfb839
UD
11371 * include/arpa/nameser.h: Declare _ns_flagdata as hidden.
11372
4b481a15
UD
11373 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_master.
11374 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_master.
11375
11376 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypbind_resp.
11377 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypbind_resp.
11378
11379 * nis/nis_xdr.c: Add libnsl_hidden_def for xdr_cback_data.
11380 * include/rpcsvc/nis_callback.h: Add libnsl_hidden_proto for
11381 xdr_cback_data.
11382
11383 * nis/ypupdate_xdr.c: Add libnsl_hidden_def for xdr_ypupdate_args.
11384 * include/rpcsvc/ypupd.h: Add libnsl_hidden_proto for
11385 xdr_ypupdate_args.
11386
11387 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_order.
11388 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_order.
11389
11390 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_maplist.
11391 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_maplist.
11392
11393 * nis/nis_xdr.c: Add libnsl_hidden_def for xdr_obj_p.
11394 * include/rpcsvc/nis_callback.h: New file.
11395
11396 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_val.
11397 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_val.
11398
11399 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypreq_nokey.
11400 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypreq_nokey.
11401
11402 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypmaplist.
11403 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypmaplist.
11404
11405 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypreq_nokey.
11406 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypreq_nokey.
11407
b1ad49c6
UD
11408 * nis/ypupdate_xdr.c: Add libnsl_hidden_def for xdr_ypdelete_args.
11409 * include/rpcsvc/ypupd.h: Add libnsl_hidden_proto for
11410 xdr_ypdelete_args.
11411
cd5f7829
UD
11412 * nis/nis_xdr.h: Mark all functions as hidden. Remove
11413 __BEGIN_DECLS and __END_DECLS, the header is not installed.
11414
a51752b6
UD
11415 * nis/nis_error.c: Remove table of strings. Use position
11416 independent mechanism.
11417 * nis/nis_error.h: New file.
11418
3d237e42
UD
114192006-05-11 Jakub Jelinek <jakub@redhat.com>
11420
11421 * locale/programs/ld-time.c (time_finish): If wide era name or
11422 format aren't provided, set both wname and wformat to L"".
11423
d6c159fe
UD
114242006-05-10 Ulrich Drepper <drepper@redhat.com>
11425
0088b04e
UD
11426 * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Only store
11427 results if the call was succesful.
11428
d6c159fe
UD
11429 * nis/nss-nis.h: Mark __yperr2nss_tab and __yperr2nss_count as hidden.
11430
11431 * nis/nss-nisplus.h: Mark __niserr2nss_tab and __niserr2nss_count
11432 as hidden.
11433
5c5acdf0
UD
114342006-05-10 Jakub Jelinek <jakub@redhat.com>
11435
11436 * misc/sys/queue.h: Remove uses of all QUEUEDEBUG_* macros.
11437
16d620db
UD
114382006-05-10 Ulrich Drepper <drepper@redhat.com>
11439
11440 * posix/wordexp.c (parse_glob): No need to check ifs for NULL, the
11441 caller makes sure this is not the case.
11442 (wordexp): Simplify ifs_white creation. [Coverity CID 231]
11443
e7c8359e
UD
114442006-05-09 Ulrich Drepper <drepper@redhat.com>
11445
ecf359c6
UD
11446 * posix/wordexp.c: Remove numerous NULL pointer tests before FREE
11447 calls.
11448
400cc70a
UD
11449 * io/ftw.c (open_dir_stream): Return right away if REALLOC fails.
11450 [Coverity CID 229, 230]
11451
11452 * argp/argp-help.c (hol_entry_help): Handle STATE==NULL in ARG and
11453 DGETTEXT calls.
11454 (hol_help): Likewise. [Coverity CID 226, 227]
11455
11456 * string/argz-replace.c (__argz_replace): Unconditionally call
11457 free on SRC. [Coverity CID 225]
11458
11459 * nis/nis_creategroup.c (nis_creategroup): No need to duplicate
11460 the return value of __nis_default_owner and __nis_default_group,
11461 it has been especially allocated. [Coverity CID 224]
11462
51e59260
UD
11463 * nis/nis_defaults.c (searchXYX): New functions. Used by both
11464 searchgroup and searchowner. Significantly simplified.
11465 (__nis_default_owner): Remove duplication. Do not locally copy the
11466 string before duplicating it.
11467 (__nis_default_group): Likewise.
11468
11469 * nis/nis_lookup.c (nis_lookup): After calling nis_free_directory,
11470 we must clear the variable before calling __nisfind_server.
11471
11472 * nis/nis_lookup.c (nis_lookup): Always free memory allocated with
11473 nis_getnames. [Coverity CID 223]
11474
11475 * locale/programs/locfile.c (locfile_read): Use alloca instead of
11476 xmalloc to allocate local repertoire name. [Coverity CID 222]
11477
11478 * iconv/iconv_charmap.c (use_to_charmap): No need to dynamically
11479 allocate memory for the input to add_bytes. [Coverity CID 221]
11480
e7c8359e 11481 * posix/wordexp.c (w_addword): Free word if realloc fails and it
51e59260 11482 was allocated here. [Coverity CID 219, 220]
e7c8359e
UD
11483
11484 * posix/getconf.c (print_all): Free confstr data after printing.
11485 [Coverity CID 218]
11486
11487 * sysdeps/posix/getaddrinfo.c (gaih_inet): Free canon string if
11488 list allocation fails. [Coverity CID 215]
11489
11490 * nss/nsswitch.c (__nss_configure_lookup): Fix loop end condition.
11491 [Coverity CID 213]
11492
11493 * argp/argp-help.c (hol_entry_cmp): Don't call canon_doc_option if
11494 string is NULL. [Coverity CID 212]
11495 * argp/Makefile: Add rules to build and run bug-argp1.
11496 * argp/bug-argp1.c: New file.
11497
11498 * io/ftw.c (ftw_dir): Use __rawmemchr instead of strchr to find
11499 end of string.
11500 * stdlib/canonicalize.c (__realpath): Likewise.
11501
11502 * locale/programs/ld-time.c (time_finish): Don't dereference NULL
11503 pointer. [Coverity CID 206]
11504
11505 * elf/dl-dst.h (DL_DST_REQUIRED): Be prepared for missing link map
11506 in statically linked code.
11507 * elf/dl-load.c (_dl_dst_substitute): When replacing ORIGIN in
11508 statically built code, be prepared to have no link map.
11509 [Coverity CID 205]
11510
11511 * argp/argp-help.c (fill_in_uparams): Handle STATE==NULL in
11512 dgettext calls. [Coverity CID 204]
11513
11514 * argp/argp-help.c (struct uparams): Remove valid member. Change
11515 the one user.
11516 (uparam_names): Reduce size. Avoid relative relocations.
11517 Moved to read-only segment.
11518 (fill_in_uparams): Update for new layout.
11519
11520 * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs): Parameter can be
11521 assumed to always be != NULL. [Coverity CID 202]
11522
11523 * argp/argp-help.c (hol_entry_help): Remove some dead code
11524 [Coverity CID 200].
11525
11526 * nis/nss_nis/nis-service.c (_nss_nis_getservbyport_r): Optimize
11527 away a few more unconditional yperr2nss calls.
11528 (_nss_nis_getservbyname_r): Likewise.
11529
acf82eaf
UD
115302006-05-06 Ulrich Drepper <drepper@redhat.com>
11531
4461cf48
UD
11532 * sysdeps/generic/ldsodefs.h: Remove support for non-core
11533 architectures.
11534
b74a8c7f
UD
11535 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Make sure
11536 that unused memory passed to sendto is nevertheless initialized.
11537
acb98cb5
UD
11538 [BZ #2499]
11539 * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Avoid
11540 possibly unaligned memory accesses.
11541
bce16467
UD
11542 * include/arpa/nameser.h: Also optimize NS_PUT16 and NS_PUT32.
11543 * resolv/res_mkquery.c: Use NS_PUT16 and NS_PUT32 instead of __putshort
11544 and __putlong respectively. Correct buffer overflow check for
11545 NS_NOTIFY_OP.
11546
11547 * resolv/res_send.c (send_vc): Use ns_put16 instead of putshort.
11548
8e45b1ac
UD
11549 * resolv/res_send.c (res_queriesmatch): Fix typo in comment.
11550 (send_dg): Rewrite error handling to be more compact and avoid
11551 double recomputation of timeouts. Pass MSG_NOSIGNAL to send.
11552
697e1628
UD
11553 * include/arpa/nameser.h: Add optimizations for NS_GET16 and NS_GET32.
11554
11555 * resolv/res_send.c (res_nameinquery): Use NS_GET16 directly
11556 instead of ns_get16.
11557 (res_queriesmatch): Likewise. Minor optimization.
11558
acf82eaf
UD
11559 [BZ #2499]
11560 * resolv/res_query.c (__libc_res_nquery): If answerp != NULL,
11561 __libc_res_nsend might reallocate the buffer for the answer. In
11562 this case we have to reload the HP pointer.
11563
7bfee654
UD
115642006-05-05 Ulrich Drepper <drepper@redhat.com>
11565
694b49ca
UD
11566 * stdio-common/vfscanf.c (memory_error): Remove definition. Add
11567 some branch prediction hints.
11568
7bfee654
UD
11569 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Define SPLICE_F_*.
11570 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
11571 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
11572 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
11573 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
11574 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
11575 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
11576 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
11577
308bb2d5
UD
115782006-05-05 Martin Schwidefsky <schwidefsky@de.ibm.com>
11579
11580 * sysdeps/s390/s390-32/elf/start.S: Replace pc relative relocation
11581 by a GOT relocation to make Scrt1.o position independent.
11582 * sysdeps/s390/s390-64/elf/start.S: Likewise.
11583
11584 * sysdeps/unix/sysv/linux/s390/s390-32/syscall.S: Add support for
11585 six system call parameters.
11586 * sysdeps/unix/sysv/linux/s390/s390-64/syscall.S: Likewise.
11587
cdb9c321
UD
115882006-05-05 Ulrich Drepper <drepper@redhat.com>
11589
11590 * sunrpc/svcauth_des.c (cache_init): Use calloc instead of
11591 malloc&bzero.
11592
11593 * sunrpc/svc_udp.c (BZERO): Remove definition.
11594 (CALLOC): Define.
11595 (svc_enablecache): Use CALLOC instead of ALLOC&BZERO.
11596
11597 * sunrpc/des_impl.c: Remove ALT_ECB support. We never used it.
11598 (des_SPtrans): Use uint32_t type.
11599 (des_skb): Likewise.
11600
11601 * sunrpc/xdr_ref.c (xdr_reference): Use calloc instead of malloc&bzero.
11602
fff04b32
UD
116032006-05-05 Jakub Jelinek <jakub@redhat.com>
11604
11605 [BZ #2509]
11606 * stdio-common/tst-printf.sh: Adjust for tst-printf.c change even
11607 on 32-bit arches.
11608
116092006-05-05 Ulrich Drepper <drepper@redhat.com>
11610
11611 * locale/programs/ld-address.c (address_finish): Fix one more
cdb9c321 11612 place where the iso639 array might be accessed beyond the limits.
fff04b32 11613
077a30bc 116142006-05-04 Ulrich Drepper <drepper@redhat.com>
77dd4c3b 11615
f2d5cf50
UD
11616 * nis/nis_table.c (nis_list): Avoid clearing res twice before
11617 filling it for the first time.
11618
3e4370cf
UD
11619 * nis/nis_table.c (get_tablepath): Renamed from __get_tablepath.
11620 Adjust all callers.
11621 Free res object content before returning.
11622
5e65a53d
UD
11623 * sunrpc/xdr_array.c (xdr_array): Use calloc instead of malloc&bzero.
11624
48be3114
UD
11625 * sunrpc/key_call.c (__rpc_thread_key_cleanup): Also free
11626 client->cl_auth.
11627
ca4fce0e
UD
11628 * sunrpc/rpc_thread.c (__rpc_thread_destroy): Don't skip entire
11629 cleanup for initial thread, just the free call on TVP.
11630
077a30bc 11631 * nscd/gai.c (__getline): Define.
3b7a95fb 11632
5d37289a 11633
3f87d901 11634See ChangeLog.16 for earlier changes.
This page took 1.619138 seconds and 5 git commands to generate.