]> sourceware.org Git - glibc.git/blame - ChangeLog
Correct socketcall argument for accept4.
[glibc.git] / ChangeLog
CommitLineData
a2292378
JJ
12009-05-21 Jakub Jelinek <jakub@redhat.com>
2
3 * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_paccept): Remove.
4 (SOCKOP_accept4): Define.
5
d4ab2f2a
UD
62009-05-20 Ulrich Drepper <drepper@redhat.com>
7
ab09b221
UD
8 Sun approved the change of the license.
9 * sunrpc/auth_des.c: Replace license text.
10 * sunrpc/auth_none.c: Likewise.
11 * sunrpc/auth_unix.c: Likewise.
12 * sunrpc/authdes_prot.c: Likewise.
13 * sunrpc/authuxprot.c: Likewise.
14 * sunrpc/bindrsvprt.c: Likewise.
15 * sunrpc/clnt_gen.c: Likewise.
16 * sunrpc/clnt_perr.c: Likewise.
17 * sunrpc/clnt_raw.c: Likewise.
18 * sunrpc/clnt_simp.c: Likewise.
19 * sunrpc/clnt_tcp.c: Likewise.
20 * sunrpc/clnt_udp.c: Likewise.
21 * sunrpc/clnt_unix.c: Likewise.
22 * sunrpc/des_crypt.c: Likewise.
23 * sunrpc/des_soft.c: Likewise.
24 * sunrpc/get_myaddr.c: Likewise.
25 * sunrpc/getrpcport.c: Likewise.
26 * sunrpc/key_call.c: Likewise.
27 * sunrpc/key_prot.c: Likewise.
28 * sunrpc/openchild.c: Likewise.
29 * sunrpc/pm_getmaps.c: Likewise.
30 * sunrpc/pm_getport.c: Likewise.
31 * sunrpc/pmap_clnt.c: Likewise.
32 * sunrpc/pmap_prot.c: Likewise.
33 * sunrpc/pmap_prot2.c: Likewise.
34 * sunrpc/pmap_rmt.c: Likewise.
35 * sunrpc/rpc/auth.h: Likewise.
36 * sunrpc/rpc/auth_unix.h: Likewise.
37 * sunrpc/rpc/clnt.h: Likewise.
38 * sunrpc/rpc/des_crypt.h: Likewise.
39 * sunrpc/rpc/key_prot.h: Likewise.
40 * sunrpc/rpc/netdb.h: Likewise.
41 * sunrpc/rpc/pmap_clnt.h: Likewise.
42 * sunrpc/rpc/pmap_prot.h: Likewise.
43 * sunrpc/rpc/pmap_rmt.h: Likewise.
44 * sunrpc/rpc/rpc.h: Likewise.
45 * sunrpc/rpc/rpc_des.h: Likewise.
46 * sunrpc/rpc/rpc_msg.h: Likewise.
47 * sunrpc/rpc/svc.h: Likewise.
48 * sunrpc/rpc/svc_auth.h: Likewise.
49 * sunrpc/rpc/types.h: Likewise.
50 * sunrpc/rpc/xdr.h: Likewise.
51 * sunrpc/rpc_clntout.c: Likewise.
52 * sunrpc/rpc_cmsg.c: Likewise.
53 * sunrpc/rpc_common.c: Likewise.
54 * sunrpc/rpc_cout.c: Likewise.
55 * sunrpc/rpc_dtable.c: Likewise.
56 * sunrpc/rpc_hout.c: Likewise.
57 * sunrpc/rpc_main.c: Likewise.
58 * sunrpc/rpc_parse.c: Likewise.
59 * sunrpc/rpc_parse.h: Likewise.
60 * sunrpc/rpc_prot.c: Likewise.
61 * sunrpc/rpc_sample.c: Likewise.
62 * sunrpc/rpc_scan.c: Likewise.
63 * sunrpc/rpc_scan.h: Likewise.
64 * sunrpc/rpc_svcout.c: Likewise.
65 * sunrpc/rpc_tblout.c: Likewise.
66 * sunrpc/rpc_util.c: Likewise.
67 * sunrpc/rpc_util.h: Likewise.
68 * sunrpc/rpcinfo.c: Likewise.
69 * sunrpc/rpcsvc/bootparam_prot.x: Likewise.
70 * sunrpc/rpcsvc/key_prot.x: Likewise.
71 * sunrpc/rpcsvc/klm_prot.x: Likewise.
72 * sunrpc/rpcsvc/mount.x: Likewise.
73 * sunrpc/rpcsvc/nfs_prot.x: Likewise.
74 * sunrpc/rpcsvc/rex.x: Likewise.
75 * sunrpc/rpcsvc/rstat.x: Likewise.
76 * sunrpc/rpcsvc/rusers.x: Likewise.
77 * sunrpc/rpcsvc/sm_inter.x: Likewise.
78 * sunrpc/rpcsvc/spray.x: Likewise.
79 * sunrpc/rpcsvc/yppasswd.x: Likewise.
80 * sunrpc/rtime.c: Likewise.
81 * sunrpc/svc.c: Likewise.
82 * sunrpc/svc_auth.c: Likewise.
83 * sunrpc/svc_authux.c: Likewise.
84 * sunrpc/svc_raw.c: Likewise.
85 * sunrpc/svc_run.c: Likewise.
86 * sunrpc/svc_simple.c: Likewise.
87 * sunrpc/svc_tcp.c: Likewise.
88 * sunrpc/svc_udp.c: Likewise.
89 * sunrpc/svc_unix.c: Likewise.
90 * sunrpc/svcauth_des.c: Likewise.
91 * sunrpc/xcrypt.c: Likewise.
92 * sunrpc/xdr.c: Likewise.
93 * sunrpc/xdr_array.c: Likewise.
94 * sunrpc/xdr_float.c: Likewise.
95 * sunrpc/xdr_mem.c: Likewise.
96 * sunrpc/xdr_rec.c: Likewise.
97 * sunrpc/xdr_ref.c: Likewise.
98 * sunrpc/xdr_sizeof.c: Likewise.
99 * sunrpc/xdr_stdio.c: Likewise.
100
d4ab2f2a
UD
101 * po/da.po: Update from translation team.
102
04733592
KK
1032009-05-18 Kaz Kojima <kkojima@rr.iij4u.or.jp>
104
105 * sysdeps/sh/____longjmp_chk.S: New file.
106 * sysdeps/sh/sh3/__longjmp.S: If CHECK_SP is defined, use it.
107 * sysdeps/sh/sh4/__longjmp.S: Likewise.
a2292378 108
5078fff6
JJ
1092009-05-18 Jakub Jelinek <jakub@redhat.com>
110 Ulrich Drepper <drepper@redhat.com>
111
112 * nscd/nscd_helper.c (MINIMUM_HASHENTRY_SIZE): Define.
113 (__nscd_cache_search): Assume each entry in the
114 hash chain needs one hashentry and half of datahead. Use
115 MINIMUM_HASHENTRY_SIZE instead of sizeof(hashentry).
116
95410b7b
UD
1172009-05-16 Ulrich Drepper <drepper@redhat.com>
118
c457bc13
UD
119 * posix/sys/wait.h: Fix typos. Pretty printing.
120 * stdlib/stdlib.h: Likewise. Correct comments.
8f0d3f49 121
a64039b0
UD
122 [BZ #10159]
123 * stdlib/stdlib.h (__WAIT_INT): Match the definition in <sys/wait.h>.
124
95410b7b
UD
125 * nscd/nscd_helper.c (__nscd_cache_search): Fix exit condition in last
126 patch.
127
831a4049
UD
1282009-05-15 Ulrich Drepper <drepper@redhat.com>
129
831a4049
UD
130 * nscd/nscd_helper.c (__nscd_cache_search): Introduce loop counter.
131 Use it if we absolutely cannot reach any more correct list elements
132 because that many do not fit into the currently mapped database.
133
6dd78596
UD
1342009-05-14 Jakub Jelinek <jakub@redhat.com>
135
cfe1fc10
JJ
136 * nscd/nscd_helper.c: Include stddef.h.
137 (__nscd_cache_search): Add datalen argument. Use atomic_forced_read
138 in a couple of places. Return NULL if trail is not less than
139 datasize, don't consider dataheads with length smaller than
140 offsetof (struct datahead, data) + datalen.
141 * nscd/nscd_client.h (__nscd_cache_search): Adjust prototype.
142 * nscd/nscd_gethst_r.c (nscd_gethst_r): Adjust callers.
143 * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
144 * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
145 * nscd/nscd_getai.c (__nscd_getai): Likewise.
146 * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
147 * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
148
6dd78596
UD
149 * sysdeps/unix/sysv/linux/i386/fallocate64.c (__fallocate64_l64):
150 Rename ...
151 (fallocate64): ... to this.
152 * sysdeps/unix/sysv/linux/fallocate64.c (__fallocate64_l64):
153 Rename ...
154 (fallocate64): ... to this.
155 * sysdeps/unix/sysv/linux/Versions (libc): Remove fallocate64.
156 * sysdeps/unix/sysv/linux/wordsize-64/Versions (libc): Add
157 fallocate64@@GLIBC_2.10.
158 * sysdeps/unix/sysv/linux/i386/Versions (libc): Add
159 fallocate64@@GLIBC_2.11.
160 * sysdeps/unix/sysv/linux/s390/s390-32/Versions (libc): Likewise.
161 * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions (libc): Likewise.
162 * sysdeps/unix/sysv/linux/sparc/sparc32/Versions (libc): Likewise.
163 * sysdeps/unix/sysv/linux/sh/Versions (libc): Likewise.
164
6dd78596
UD
165 * nscd/selinux.c (nscd_avc_destroy): Removed.
166 * nscd/selinux.h (nscd_avc_destroy): Likewise.
167 * nscd/nscd.c (termination_handler): Don't call
168 nscd_avc_destroy.
169
cfe1fc10
JJ
1702009-05-12 Jakub Jelinek <jakub@redhat.com>
171
172 * include/atomic.h: Formatting.
173 (catomic_compare_and_exchange_val_acq): Don't define if already
174 defined by bits/atomic.h.
175
774f5a30
UD
1762009-05-15 Ulrich Drepper <drepper@redhat.com>
177
bbc5d74d
UD
178 * math/libm-test.inc (expm1_test): Add test for range error.
179
b50f8e42
UD
180 * Versions.def: Add GLIBC_2.11 for libc.
181 * debug/Makefile (routines): Add longjmp_chk.
182 Add rules to build and run tst-longjmp_chk.
183 * debug/Versions: Export __longjmp_chk for GLIBC_2.11.
184 * debug/longjmp_chk.c: New file.
185 * debug/tst-longjmp_chk.c: New file.
186 * include/bits/setjmp2.: New file.
187 * include/stdio.h: Mark __fortify_fail as internal_function.
188 * setjmp/Makefile (headers): Add bits/setjmp2.h.
189 * setjmp/bits/setjmp2.h: New file.
190 * setjmp/longjmp.c: If __libc_siglongjmp is defined, don't define any
191 of the aliases.
192 * setjmp/setjmp.h: Include <bits/setjmp2.h> if _FORTIFY_SOURCE is
193 defined.
194 * sysdeps/i386/____longjmp_chk.S: New file.
195 * sysdeps/x86_64/____longjmp_chk.S: New file.
196 * sysdeps/i386/__longjmp.S: If CHECK_ESP is defined, use it.
197 * sysdeps/x86_64/__longjmp.S: Likewise.
198
dc50b613
UD
199 * version.h: Bump for 2.11 development.
200
774f5a30
UD
201 * elf/check-execstack.c: New file.
202 * elf/Makefile: Add rules to build and run check-execstack.
203
deb84c43
UD
2042009-05-10 Ulrich Drepper <drepper@redhat.com>
205
206 * version.h (VERSION): Bump to 2.10.1.
207
208 * nss/getXXbyYY_r.c: If NO_COMPAT_NEEDED is defined don't define any
209 compatibility functions.
210 * nss/getXXent_r.c: Likewise.
211 * gshadow/getsgent_r.c: Define NO_COMPAT_NEEDED.
212 * gshadow/getsgnam_r.c: Likewise.
213 * gshadow/Version: Remove duplicate entries.
214
215 * sysdeps/x86_64/cacheinfo.c (intel_02_cache_info): Add missing entries
216 for recent processor.
217 * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_cache_info):
218 Likewise.
219
deb318c2
UD
2202009-05-09 Ulrich Drepper <drepper@redhat.com>
221
222 * version.h (VERSION): Bump for 2.10 release.
223 * include/features.h (__GLIBC_MINOR__): Bump to 10.
224
eb29449a
UD
225 * Makeconfig: Undo last change. Add asflags-cpu to ASFLAGS in the
226 same place we add ASFLAGS-config.
227
cf4f16cc
UD
2282009-05-05 Aurelien Jarno <aurelien@aurel32.net>
229
230 [BZ #10128]
231 * resolv/res_query.c (__libc_res_nquery): If one query returns NOTIMP
232 or FORMERR and the other NOERROR, don't raise an error.
233
23b6b466
UD
2342009-05-06 Ryan S. Arnold <rsa@us.ibm.com>
235
236 [BZ #10118]
237 * Makeconfig (+asflags): New variable based upon ASFLAG or
238 asflags-cpu.
239 (ASFLAGS): Add override to set ASFLAGS to +asflags.
240 * config.make.in (asflags-cpu): Add variable based upon
241 @libc_cv_cc_submachine@ to propagate -mcpu=CPU from --with-cpu=CPU to
242 the assembler.
243 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/setcontext.S:
244 Remove unneeded file now that the assembler emits _ARCH_PWR6 and
245 recognizes power6 instruction set due to passing -mcpu=power6 from
246 --with-cpu=power6 when compiling .S files.
247 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/swapcontext.S:
248 Likewise.
249 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/setcontext.S:
250 Likewise.
251 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/swapcontext.S:
252 Likewise.
253
15417de3
UD
2542009-05-09 Jakub Jelinek <jakub@redhat.com>
255
256 * string/stratcliff.c (do_test): Test for zero length
257 STRNLEN, MEMCHR, STRNCPY, STPNCPY, MEMCPY, MEMPCPY and memccpy
258 at the end of the page.
259
b5f7c4ca
UD
2602009-05-08 Ulrich Drepper <drepper@redhat.com>
261
4300afc1
UD
262 * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_AT_RANDOM.
263
2221e33e
UD
264 * sysdeps/x86_64/memchr.S: Handle invalid buffer pointers when
265 count is zero.
266
b5f7c4ca
UD
267 * po/da.po: Update from translation team.
268
1765abb3
UD
2692009-05-05 Jakub Jelinek <jakub@redhat.com>
270
271 * io/sys/stat.h (fstatat64): Guard prototype with __USE_LARGEFILE64,
272 guard __extern_inline wrapper with __USE_ATFILE instead of __USE_GNU.
2221e33e 273
b5f7c4ca
UD
2742009-05-05 Ulrich Drepper <drepper@redhat.com>
275
276 * sysdeps/unix/sysv/linux/sys/personality.h: Add ADDR_COMPAT_LAYOUT
277 and READ_IMPLIES_EXEC.
278
2792009-05-04 Ulrich Drepper <drepper@redhat.com>
280
281 * po/da.po: Update from translation team.
282
667712b8
JJ
2832009-04-29 Jakub Jelinek <jakub@redhat.com>
284
285 * sysdeps/unix/sysv/linux/ifaddrs.c: Revert unintended 2008-08-12
286 comment change.
287
6284c9f6
UD
2882009-04-27 Jakub Jelinek <jakub@redhat.com>
289
290 * locale/programs/locarchive.c (create_archive): Add MAP_PRIVATE
291 to MAP_ANON in PROT_NONE mmap64 call.
292 (open_archive): Likewise.
293 (file_data_available_p): Use mmap64 instead of mremap.
294 (enlarge_archive): Likewise. Update head if ah->addr changed.
295 Attempt to reserve address space after mmap64 region.
296
4ec77f72
UD
2972009-04-26 Ulrich Drepper <drepper@redhat.com>
298
f0e3c47f
UD
299 * sysdeps/ieee754/dbl-64/s_expm1.c: Set errno for overflow.
300 * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
301 * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
302
49768bb9
UD
303 * sysdeps/ieee754/k_standard.c (__kernel_standard): Pole errors in
304 atanh should set ERANGE.
305
e49dc847
UD
306 [BZ #10087]
307 * elf/dl-runtime.c (_dl_fixup): Use DL_FIXUP_VALUE_ADDR to access
308 result of lookup to make call to implement STT_GNU_IFUNC.
309 (_dl_profile_fixup): Likewise.
310 Patch by H.J. Lu <hjl.tools@gmail.com>.
311
1ac03a1e
UD
312 * nscd/connections.c (send_ro_fd): Define temporary variable to avoid
313 warning.
314
6cc8844f
UD
315 * sysdeps/unix/sysv/linux/dl-osinfo.h (dl_fatal): Remove inline
316 from definition.
317
318 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Don't define
319 label if it is not used.
320
321 * elf/dl-profile.c (_dl_start_profile): Define real-type variant
322 of gmon_hist_hdr and gmon_hdr structures and use them.
1ac03a1e 323 * elf/sprof.c: Likewise.
6cc8844f
UD
324
325 * elf/dl-load.c (open_verify): Add temporary variable to avoid
326 warning.
327
328 * nscd/nscd_helper.c (get_mapping): Avoid casts to avoid warnings.
329
330 * sunrpc/clnt_raw.c (clntraw_private_s): Use union in definition
331 to avoid cast.
332
333 * inet/rexec.c (rexec_af): Make sa2 a union to avoid warnings.
334 * inet/rcmd.c (rcmd_af): Make from a union of the various needed types
335 to avoid warnings.
336 (iruserok_af): Use ss_family instead of casts.
337
338 * gmon/gmon.c (write_hist): Define real-type variant of
339 gmon_hist_hdr structure and use it.
340 (write_gmon): Likewise for gmon_hdr.
341
342 * sysdeps/unix/sysv/linux/readv.c: Avoid declaration of replacement
343 function if we are not going to define it.
344 * sysdeps/unix/sysv/linux/writev.c: Likewise.
345
218555e9 346 * inet/inet6_option.c (option_alloc): Add temporary variable to
6cc8844f
UD
347 avoid warning.
348
349 * libio/strfile.h (struct _IO_streambuf): Use correct type and
350 name of VTable element.
351 * libio/iovsprintf.c: Avoid casts to avoid warnings.
352 * libio/iovsscanf.c: Likewise.
353 * libio/vasprintf.c: Likewise.
354 * libio/vsnprintf.c: Likewise.
355 * stdio-common/isoc99_vsscanf.c: Likewise.
356 * stdlib/strfmon_l.c: Likewise.
357 * debug/vasprintf_chk.c: Likewise.
358 * debug/vsnprintf_chk.c: Likewise.
359 * debug/vsprintf_chk.c: Likewise.
360
4ec77f72
UD
361 * nss/nsswitch.c (__nss_lookup_function): En/Decrypt cached
362 function pointers.
363
82a1a4da
UD
3642009-04-26 Jakub Jelinek <jakub@redhat.com>
365
366 * sysdeps/ieee754/dbl-64/s_tan.c (tan): Fix -Wsequence-point warnings.
367
db6edfb3
UD
3682009-04-25 Ulrich Drepper <drepper@redhat.com>
369
27be9b92
UD
370 * posix/bits/posix1_lim.h: Cleanup namespace a bit.
371
337c2708
UD
372 * sysdeps/i386/fpu/s_tan.S: Set errno for ±Inf.
373 * sysdeps/i386/fpu/s_tanf.S: Likewise.
374 * sysdeps/i386/fpu/s_tanl.S: Likewise.
375 * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
376 * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
377 * sysdeps/x86_64/fpu/s_tanl.S: Likewise.
378 * math/libm-test.inc: Add tests for errno after tan calls with
379 ±Inf.
380
002a604f
UD
381 * sysdeps/ieee754/k_standard.c (__kernel_standard): Use correct
382 errno value vor pow(+-0,neg).
383 * math/libm-test.inc (pow_test): Add tests for errno value for
384 pole errors.
385
7095366d
UD
386 * math/w_fmod.c: Also handle x=±Inf as error.
387 * math/w_fmodf.c: Likewise.
388 * math/w_fmodl.c: Likewise.
389 * math/libm-test.inc (fmod_test): Add tests for errno after calls for
390 x=±Inf or y=0.
391
0c59a196
UD
392 * sysdeps/i386/fpu/s_cos.S: Set errno for ±Inf.
393 * sysdeps/i386/fpu/s_cosf.S: Likewise.
394 * sysdeps/i386/fpu/s_cosl.S: Likewise.
395 * sysdeps/i386/fpu/s_sin.S: Likewise.
396 * sysdeps/i386/fpu/s_sinf.S: Likewise.
397 * sysdeps/i386/fpu/s_sinl.S: Likewise.
398 * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
399 * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
400 * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
401 * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
402 * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
403 * sysdeps/x86_64/fpu/s_cosl.S: Likewise.
404 * sysdeps/x86_64/fpu/s_sinl.S: Likewise.
405 * math/libm-test.inc: Add tests for errno after sin/cos calls with
406 ±Inf.
407
4bbf8999
UD
408 * stdlib/strtod_l.c (round_and_return): We have to set errno to
409 ERANGE for underflows.
410 * stdlib/tst-strtod.c (tests): Two tests should set errno to ERANGE.
411
af9f1c48
UD
412 * stdio-common/stdio_lim.h.in (L_cuserid): Not part of POSIX since
413 the 2001 revision.
414
13327042
UD
415 * libio/tst-widetext.input: Remove surrogates.
416
c163ee23
UD
417 * include/features.h: _POSIX_C_SOURCE >= 200112L implies C99.
418
e971e76d 419 * sysdeps/ieee754/k_standard.c (__kernel_standard): Pole errors
81068e35 420 for lgamma should set errno to ERANGE, not EDOM.
e971e76d
UD
421 * math/libm-test.inc (lgamma_test): Check errno for pole errors.
422
c2d5bd5b
UD
4232009-04-24 Ulrich Drepper <drepper@redhat.com>
424
9c32c895
UD
425 [BZ #10093]
426 * iconv/gconv_simple.c (BODY for UTF-8 to INTERNAL): Don't accept
427 UTF-16 surrogates.
428
c9edc889
UD
429 * locale/programs/locarchive.c (enlarge_archive): Conserve address
430 space when temporarily mapping the whole content of the old file.
431
c2d5bd5b
UD
432 [BZ #10100]
433 * misc/hsearch_r.c (hsearch_r): Add back ensurance that hval is
434 not zero.
435
f397be12
UD
4362009-04-24 Jakub Jelinek <jakub@redhat.com>
437
438 * iconvdata/sjis.c (BODY): Don't advance inptr before
439 STANDARD_FROM_LOOP_ERR_HANDLER (2) for 2 byte invalid input.
440 Use STANDARD_FROM_LOOP_ERR_HANDLER with 2 instead of 1 for
441 two byte chars.
442
705341a9
UD
4432009-04-24 Ulrich Drepper <drepper@redhat.com>
444
445 * locale/locarchive.h (struct locarhandle): Rename len field to
446 mmaped and add new reserved field.
447 * locale/programs/locarchive.c (RESERVE_MMAP_SIZE): Define.
448 (create_archive): Reserve address space and then map file into it.
449 (open_archive): Likewise.
450 (file_data_available_p): New function.
451 (compare_from_file): New function.
452 (close_archive): Adjust to member name changes.
453 (add_locale): Before comparing locale data, check it is mapped.
454 Otherwise fall back to reading from the file.
455
57d2da1c
UD
4562009-04-23 H.J. Lu <hongjiu.lu@intel.com>
457
458 * stdio-common/psiginfo.c: Include <errno.h>.
459
3d855f75
UD
4602009-04-23 Ulrich Drepper <drepper@redhat.com>
461
fe12c798
UD
462 [BZ #9920]
463 * stdlib/random_r.c (__srandom_r): Change type of word to int32_t
464 to get consistency between 32 and 64 bit architectures.
465
3d855f75
UD
466 [BZ #10052]
467 * sysdeps/unix/make-syscalls.sh: Add rule to create target
468 directory for dummy syscall rules.
469 Patch by Chris Steinbroner <hesh@pobox.com>.
470
95bf537f
UD
4712009-04-23 Aurelien Jarno <aurelien@aurel32.net>
472
473 [BZ #10092]
474 * sysdeps/unix/sysv/linux/sys/mount.h: Define MNT_DETACH and
475 MNT_EXPIRE.
476
7f8a28ef
UD
4772009-04-23 Ulrich Drepper <drepper@redhat.com>
478
479 * sysdeps/unix/sysv/linux/preadv.c: The kernel API changed. Adjust.
480 * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
481
4822009-04-23 Jakub Jelinek <jakub@redhat.com>
483
484 * sysdeps/posix/pwritev.c (PWRITEV): Fix up comment. Copy
485 data from vector to temporary buffer and call PWRITEV after it
486 instead of vice versa.
487 * sysdeps/posix/preadv.c: Fix up comment.
488 * misc/preadv.c: Likewise.
489 * misc/preadv64.c: Likewise.
490 * misc/pwritev.c: Likewise.
491 * misc/pwritev64.c: Likewise.
492 * misc/sys/uio.h (preadv, pwritev, preadv64, pwritev64): Likewise.
493
829fea46
UD
4942009-04-23 Ulrich Drepper <drepper@redhat.com>
495
c7e74e59
UD
496 * shadow/sgetspent_r.c (__sgetspent_r): Recognize too small buffers.
497
3b055b47
UD
498 * shadow/Makefile (tests): Add tst-shadow.
499 * shadow/tst-shadow.c: New file.
500
829fea46
UD
501 [BZ #9955]
502 * gshadow/Makefile: New file.
503 * gshadow/Versions: New file.
504 * gshadow/fgetsgent.c: New file.
505 * gshadow/fgetsgent_r.c: New file.
506 * gshadow/getsgent.c: New file.
507 * gshadow/getsgent_r.c: New file.
508 * gshadow/getsgnam.c: New file.
509 * gshadow/getsgnam_r.c: New file.
510 * gshadow/gshadow.h: New file.
511 * gshadow/putsgent.c: New file.
512 * gshadow/sgetsgent.c: New file.
513 * gshadow/sgetsgent_r.c: New file.
514 * gshadow/tst-gshadow.c: New file.
515 * include/gshadow.h: New file.
516 * Makeconfig (all-subdirs): Add gshadow.
517 * Makefile (installed-headers): Add gshadow/gshadow.h.
518 * nss/Makefile (databases): Add sgrp.
519 * nss/Versions: Add gshadow functions as private exports.
520 * nss/nsswitch.conf: Add gshadow entry.
521 * nss/sgrp-lookup.c: New file.
522 * nss/nss_files/files-parse.c: Add STRING_LIST macro. Rewrite
523 parse_list to handle STRING_LIST and TRAILING_LIST_PARSER.
524 * nss/nss_files/files-sgrp.c: New file.
525 * sysdeps/generic/paths.h: Add _PATH_GSHADOW.
526 * sysdeps/unix/sysv/linux/paths.h: Likewise.
527
debafa10
UD
5282009-04-22 Ulrich Drepper <drepper@redhat.com>
529
530 * stdio-common/printf.h: Add missing const to register_printf_modifier.
531 * stdio-common/reg-modifier.c: Likewise.
532
5332009-04-22 Andrew Stubbs <ams@codesourcery.com>
534
535 * sysdeps/sh/sh4/setjmp.S (__sigsetjmp): Adjust JB_SIZE when there
536 is no FPU.
537
0e04c0b5
UD
5382009-04-20 Ulrich Drepper <drepper@redhat.com>
539
d43f10e7 540 [BZ #10086]
1c376f5b
UD
541 * sysdeps/unix/sysv/linux/sys/timex.h: Add definitions from kernel
542 headers up to 2.6.30.
543
0e04c0b5
UD
544 * po/ca.po: Update from translation team.
545
a245eafd
UD
5462009-04-19 Ulrich Drepper <drepper@redhat.com>
547
548 [BZ #10069]
549 * elf/dl-open.c (dl_open_worker): We cannot guarantee that we can load
550 an object that uses static TLS if the TLS modid is higher than the
551 reserve we always allocate. At least for multi-threaded code.
552
0588a9cb
UD
5532009-04-18 Ulrich Drepper <drepper@redhat.com>
554
153aa31b
UD
555 * stdlib/strfmon_l.c (__vstrfmon_l): Don't wrap when computing width.
556 Numerically stable check for valid width.
557
59a7162b
UD
558 * locale/programs/locarchive.c (open_archive): Map the entire file
559 and not just the administrative data.
560 (add_locale): When we find a hash sum match compare the content
561 to be sure.
562
0588a9cb
UD
563 * malloc/malloc.c (malloc_info): Output address space information.
564
17a5b24e
UD
5652009-04-17 Ulrich Drepper <drepper@redhat.com>
566
da2d2fb6
UD
567 * malloc/malloc.c (malloc_info): Also output system memory information.
568
11cad88c
UD
569 * sysdeps/unix/sysv/linux/kernel-features.h: All supported
570 architectures have preadv/pwritev in 2.6.30.
571
571ac26f
UD
572 * sysdeps/posix/preadv.c: Reading of zero bytes is no error.
573 * sysdeps/posix/readv.c: Likewise.
574 Reported by Markus Armbruster <armbru@redhat.com>.
575
17a5b24e
UD
576 * malloc/hooks.c (top_check): Force hook value into register.
577
57ec6442
RM
5782009-04-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
579
580 * elf/rtld.c (dl_main): Really call _dl_sysdep_start_cleanup after all
581 calls to _dl_relocate_object.
582
df77455c
UD
5832009-04-16 Ulrich Drepper <drepper@redhat.com>
584
585 [BZ #9957]
586 * malloc/malloc.c (force_reg): Define.
587 (sYSMALLOc): Load hook variable into variable
588 before test and force into register.
589 (sYSTRIm): Likewise.
590 (public_mALLOc): Force hook value into register.
591 (public_fREe): Likewise.
592 (public_rEALLOc): Likewise.
593 (public_mEMALIGn): Likewise.
594 (public_vALLOc): Likewise.
595 (public_pVALLOc): Likewise.
596 (public_cALLOc): Likewise.
597 (__posix_memalign): Likewise.
598 * malloc/arena.c (ptmalloc_init): Load hook variable into variable
599 before test and force into register.
600 * malloc/hooks.c (top_check): Likewise.
3b055b47 601 (public_sET_STATe): Pretty printing.
df77455c
UD
602
603 * resolv/res_send.c (send_dg): Don't just ignore the result we got
604 in case we only receive one reply in single-request mode.
605
733ca93a
JJ
6062009-04-16 Jakub Jelinek <jakub@redhat.com>
607
608 * elf/dl-open.c (_dl_open): Bump GL(dl_nns) to 1 if no libraries
609 are dlopened in statically linked program even for __LM_ID_CALLER.
610
d0e81f10
UD
6112009-04-16 Ulrich Drepper <drepper@redhat.com>
612
613 * resolv/res_send.c (send_dg): Don't switch into single-request
614 mode if we already are in it.
615
6a3d03ff
UD
6162009-04-15 Ulrich Drepper <drepper@redhat.com>
617
618 * sysdeps/unix/sysv/linux/getsysstats.c (next_line): Make sure there
619 are always at least 4 bytes in the returned line.
620
6212009-04-15 Jakub Jelinek <jakub@redhat.com>
622
623 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Check
624 __libc_use_alloca (8192), if the stack is too small use 512 bytes
625 instead of 8K. Stop searching in /proc/stat after hitting first
626 line not starting with cpu.
627 (next_line): Truncate too long
628 lines at buffer size * 3/4 instead of pretending there were line
629 breaks inside of large lines.
630
ae650a41
UD
6312009-04-14 Ulrich Drepper <drepper@redhat.com>
632
633 * sysdeps/x86_64/mp_clz_tab.c: New file.
634
353f2107
UD
6352009-03-17 Ryan S. Arnold <rsa@us.ibm.com>
636 Ulrich Drepper <drepper@redhat.com>
637
638 * sysdeps/unix/sysv/linux/fallocate.c: Handle old kernel headers.
639 * sysdeps/unix/sysv/linux/fallocate64.c: Likewise.
e775ec11 640 * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: Likewise.
353f2107 641
fc0c5705
UD
6422009-03-25 Andrew Stubbs <ams@codesourcery.com>
643
644 * sysdeps/sh/libc-tls.c: New file.
645
646 * sysdeps/sh/bits/setjmp.h (__jmp_buf): Give name to structure type.
647
237a8867
RM
6482009-04-14 Roland McGrath <roland@redhat.com>
649
650 * elf/elf.h: Add various missing ARM constants, to match binutils.
651
893a5fd4
UD
6522009-04-14 Ulrich Drepper <drepper@redhat.com>
653
654 Optimizations from GMP.
655 * sysdeps/x86_64/add_n.S: New file.
656 * sysdeps/x86_64/addmul_1.S: New file.
657 * sysdeps/x86_64/lshift.S: New file.
658 * sysdeps/x86_64/mul_1.S: New file.
659 * sysdeps/x86_64/rshift.S: New file.
660 * sysdeps/x86_64/sub_n.S: New file.
661 * sysdeps/x86_64/submul_1.S: New file.
662
e42e88ab
JJ
6632009-04-14 Jakub Jelinek <jakub@redhat.com>
664
665 * sysdeps/powerpc/powerpc32/elf/start.S: Ensure .data is non-empty.
666 * sysdeps/powerpc/powerpc64/elf/start.S: Likewise.
667 * sysdeps/sparc/sparc32/elf/start.S: Likewise.
668 * sysdeps/sparc/sparc64/elf/start.S: Likewise.
669
b8a3bd82
UD
6702009-04-14 Ulrich Drepper <drepper@redhat.com>
671
672 * sysdeps/unix/sysv/linux/kernel-features.h: SH also has
673 preadv/pwritev.
674
84aa52d7
UD
6752009-04-13 Ulrich Drepper <drepper@redhat.com>
676
677 * sysdeps/x86-64/strrchr.S: New file.
678
9d26efa9
UD
6792009-04-10 Ulrich Drepper <drepper@redhat.com>
680
681 * stdio-common/printf.h (struct printf_info): Add user element.
682 New types printf_arginfo_size_function, printf_va_arg_function.
683 Declare register_printf_specifier, register_printf_modifier,
684 register_printf_type.
685 * stdio-common/printf-parse.h (struct printf_spec): Add size element.
686 (union printf_arg): Add pa_user element.
687 Adjust __printf_arginfo_table type.
688 Add __printf_va_arg_table, __printf_modifier_table,
689 __handle_registered_modifier_mb, and __handle_registered_modifier_wc
690 declarations.
691 * stdio-common/printf-parsemb.c: Recognize registered modifiers.
692 If registered arginfo call failed try normal specifier.
693 * stdio-common/printf-prs.c: Pass additional parameter to arginfo
694 function.
695 * stdio-common/Makefile (routines): Add reg-modifier and reg-type.
696 * stdio-common/Versions: Export register_printf_modifier,
697 register_printf_type, and register_printf_specifier for GLIBC_2.10.
698 * stdio-common/reg-modifier.c: New file.
699 * stdio-common/reg-type.c: New file.
700 * stdio-common/reg-printf.c (__register_printf_specifier): New
701 function. Mostly the old __register_printf_function function but
702 uses locking and type of third parameter changed.
703 (__register_printf_function): Implement using
704 __register_printf_specifier.
705 * stdio-common/vfprintf.c (vfprintf): Collect argument sizes in
706 calls to arginfo functions. Allocate enough memory for user-defined
707 types. Call new va_arg functions to get user-defined types.
708 Try installed handlers even for existing format specifiers first.
709
28b2771a
UD
7102009-04-09 Ulrich Drepper <drepper@redhat.com>
711
f140a0d5
UD
712 * sysdeps/x86_64/rawmemchr.S: New file.
713
e9b4d069 714 * stdio-common/vfprintf.c (vfprintf): Slightly more compact code.
1d498daa 715 Simplified code and possible copy problem fixed.
e9b4d069 716
f9fe75e9 717 * sysdeps/unix/sysv/linux/preadv.c: Avoid prototype for static
24030b0f 718 function if it is not defined. Add some necessary casts.
f9fe75e9
UD
719 * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
720
28b2771a
UD
721 * sysdeps/unix/sysv/linux/kernel-features.h: SPARC and IA64 also
722 have preadv/pwritev in 2.6.30.
723
4c8b8cc3
UD
7242009-04-08 Ulrich Drepper <drepper@redhat.com>
725
bb066545
UD
726 * malloc/malloc.c (malloc_info): New function.
727 * malloc/malloc.h: Declare it.
728 * malloc/Versions: Export malloc_info for GLIBC_2.10.
729
0f9c8b48
UD
730 * sysdeps/unix/sysv/linux/preadv64.c (PREAD): Use __libc_pread64
731 to avoid PLT slot.
732
4c8b8cc3
UD
733 * malloc/malloc.c (_int_realloc): Add parameter with old block
734 size. Remove duplicated test. Don't handle mmap'ed blocks here.
735 Adjust all callers.
736 * malloc/hooks.c (realloc_check): Adjust _int_realloc call.
737
ddba0f17
UD
7382009-04-07 Ulrich Drepper <drepper@redhat.com>
739
cd57745b
UD
740 * sysdeps/x86_64/strchrnul.S: New file.
741
3db6c9a8 742 * crypt/Makefile (LDLIBS-crypt.so): Use this variable instead of
cd57745b 743 depending libcrypt on -lfreebl3.
3db6c9a8 744
1a2ec17b
UD
745 * sysdeps/unix/sysv/linux/kernel-features.h: Power also has
746 preadv/pwritev in 2.6.30.
747
bb066545 748 * resolv/nss_dns/dns-host.c (getanswer_r): Use strcasecmp
c6807d38 749 instead of __strcasecmp.
c6807d38 750
ddba0f17 751 * string/stratcliff.c (do_test): Add memchr tests..
481f9eca 752 * wcsmbs/wcsatcliff.c (MEMCHR): Define.
ddba0f17
UD
753 * sysdeps/x86_64/memchr.S: Fix handling of end of buffer after
754 first read quad word.
755
ae061910
UD
7562009-04-06 Ulrich Drepper <drepper@redhat.com>
757
4bcb2658
UD
758 * string/strverscmp.c (__strverscmp): Fix last cleanups.
759 * string/tst-svc.input: Add new test case.
760 * string/tst-svc.expect: Adjust.
761 * string/Makefile: Don't ignore tst-svc error.
762
322e23db
UD
763 * sysdeps/x86_64/memchr.S: New file.
764
ae061910
UD
765 * resolv/resolv.h (RES_SNGLKUP): Define.
766 * resolv/res_init.c (res_setoptions): Recognize single-request option.
767 * resolv/res_send.c (send_dg): If we sent two requests at once and
768 only get one reply before timeout switch to mode where we send the
769 second request only after the first answer has been received.
770
a152f366
UD
7712009-04-05 Ulrich Drepper <drepper@redhat.com>
772
773 * sysdeps/x86_64/strlen.S: Optimize by using SSE2 instructions.
1df6f9d8 774 * sysdeps/x86_64/strchr.S: Likewise.
a152f366 775
2dbe6afe
UD
7762009-04-03 Ulrich Drepper <drepper@redhat.com>
777
c0bac8b0
UD
778 * configure.in: We need to test for the compiler earlier.
779
e109c612
UD
780 * misc/Makefile (routines): Add preadv, preadv64, pwritev, pwritev64.
781 * misc/Versions: Export preadv, preadv64, pwritev, pwritev64 for
782 GLIBC_2.10.
783 * misc/sys/uio.h: Declare preadv, preadv64, pwritev, pwritev64.
784 * sysdeps/unix/sysv/linux/kernel-features.h: Add entries for preadv
785 and pwritev.
786 * misc/preadv.c: New file.
787 * misc/preadv64.c: New file.
788 * misc/pwritev.c: New file.
789 * misc/pwritev64.c: New file.
790 * sysdeps/posx/preadv.c: New file.
791 * sysdeps/posx/preadv64.c: New file.
792 * sysdeps/posx/pwritev.c: New file.
793 * sysdeps/posx/pwritev64.c: New file.
794 * sysdeps/unix/sysv/linux/preadv.c: New file.
795 * sysdeps/unix/sysv/linux/preadv64.c: New file.
796 * sysdeps/unix/sysv/linux/pwritev.c: New file.
797 * sysdeps/unix/sysv/linux/pwritev64.c: New file.
798 * sysdeps/unix/sysv/linux/wordsize-64/preadv64.c: New file.
799 * sysdeps/unix/sysv/linux/wordsize-64/pwritev64.c: New file.
800
7166c77a
UD
801 * sysdeps/unix/sysv/linux/readv.c (__libc_readv): Fix calling of
802 compatibility code.
803 * sysdeps/unix/sysv/linux/writev.c (__libc_writev): Likewise.
804
2dbe6afe
UD
805 * sysdeps/unix/sysv/linux/kernel-features.h: Define
806 __ASSUME_COMPLETE_READV_WRITEV.
807 * sysdeps/unix/sysv/linux/readv.c: No need for userlevel fallback
808 with modern kernels.
809 * sysdeps/unix/sysv/linux/writev.c: Likewise.
810
811 * sysdeps/posix/readv.c: Since read is a cancellation point we have
812 to free a possible malloced buffer in case of cancellation.
813 * sysdeps/posix/writev.c: Likewise for write.
814
ff886b82
UD
8152009-04-02 Ulrich Drepper <drepper@redhat.com>
816
a065c007
UD
817 * sysdeps/unix/sysv/linux/bits/socket.h: Add missing protocol numbers.
818
ff886b82
UD
819 * configure.in: Recognize --enable-nss-crypt.
820 * config.make.in: Add nss-crypt entry.
821 * crypt/Makefile: If nss-crypt==yes, don't build md5.c, sha256.c,
822 sha512.c. Don't run md5test, sha256test, sha512test. Pass -DUSE_NSS
823 and include path for NSS directory to compiler for md5-crypt,
824 sha256-crypt, sha512-crypt. Link libcrypt.so with -lfreebl3.
825 * crypt/md5-crypt.c: If USE_NSS is defined, don't use local hash
826 function implementation, use NSS. Introduce wrappers around the
827 hash function calls. Little code size optimization.
828 * crypt/sha256-crypt.c: Likewise.
829 * crypt/sha512-crypt.c: Likewise.
830 * scripts/check-local-headers.sh: Ignore nss3 directory.
831
832 * configure.in: Rename pic_default to libc_cv_pic_default.
833 * config.make.in: Likewise.
834
1800de36
RM
8352009-04-01 Roland McGrath <roland@redhat.com>
836
837 * elf/elf.h (R_SPARC_GLOB_JMP): New macro.
838 (R_SPARC_GOTDATA_HIX22, R_SPARC_GOTDATA_LOX10): New macros.
839 (R_SPARC_GOTDATA_OP_HIX22, R_SPARC_GOTDATA_OP_LOX10): Likewise.
840 (R_SPARC_GOTDATA_OP, R_SPARC_H34): Likewise.
841 (R_SPARC_SIZE32, R_SPARC_SIZE64): Likewise.
842 (R_SPARC_GNU_VTINHERIT, R_SPARC_GNU_VTENTRY, R_SPARC_REV32): Likewise.
843 (R_SPARC_NUM): Update.
844 From Dave Miller <davem@davemloft.net>.
845
7166c77a 8462009-04-01 Ulrich Drepper <drepper@redhat.com>
3ce976cd
UD
847
848 * sysdeps/unix/sysv/linux/sys/eventfd.h (EFD_SEMAPHORE): Define.
849
20739e54
UD
8502009-03-31 Ulrich Drepper <drepper@redhat.com>
851
22c83193
UD
852 * elf/dl-open.c: Keep track of used name spaces and only iterate over
853 those which are used.
854 * elf/dl-addr.c: Likewise.
855 * elf/dl-caller.c: Likewise.
856 * elf/dl-fini.c: Likewise.
857 * elf/dl-iteratephdr.c: Likewise.
858 * elf/dl-libc.c: Likewise.
859 * elf/dl-load.c: Likewise.
860 * elf/dl-support.c: Likewise.
861 * elf/dl-sym.c: Likewise.
862 * elf/rtld.c: Likewise.
863 * sysdeps/generic/ldsodefs.h: Likewise.
864
20739e54
UD
865 * elf/dl-load.c: Remove support for systems without MAP_ANON.
866 * elf/dl-minimal.c: Likewise.
867 * elf/dl-misc.c: Likewise.
868 * elf/rtld.c: Likewise.
869 * sysdeps/generic/ldsodefs.h: Likewise.
870
db486995
UD
8712009-03-30 Ulrich Drepper <drepper@redhat.com>
872
cb14424e
UD
873 * elf/do-lookup.h (do_lookup_x): Minor optimization and cleanup.
874 Avoid reuse of complex expression.
875
db486995
UD
876 * po/fr.po: Update from translation team.
877
ae8d7b44
UD
8782009-03-16 Ulrich Drepper <drepper@redhat.com>
879
880 * include/dirent.h: Yet more changes to match sort function type
881 change.
882 * sysdeps/unix/sysv/linux/i386/alphasort64.c: Likewise.
883 * sysdeps/unix/sysv/linux/i386/olddirent.h: Likewise.
884 * sysdeps/unix/sysv/linux/i386/versionsort64.c: Likewise.
885
8efb2f1c
UD
8862009-03-16 Thomas Schwinge <tschwinge@gnu.org>
887
888 * dirent/scandir64.c (scandir64): Adjust declaration to type change.
889
d9822dbe
UD
8902009-03-16 Ulrich Drepper <drepper@redhat.com>
891
892 * nscd/connections.c (restart): Try to preserve the process name
893 by reading the /proc/self/exe symlink and using the return name.
894 Patch by Jeff Bastian <jbastian@redhat.com>.
895
71a5bd3e
UD
8962009-03-15 Ulrich Drepper <drepper@redhat.com>
897
2ca285b0
UD
898 [BZ #9733]
899 * elf/dl-load.c (_dl_map_object_from_fd): Only call audit hooks
900 if we are not loading a new audit library.
901 * elf/dl-reloc (_dl_relocate_object): Third parameter is now a bitmask.
902 Only use profiling trampoline for auditing if we are not relocating
903 an audit library.
904 * elf/dl-open.c (dl_open_worker): Adjust _dl_relocate_object call.
905 * elf/rtld.c: Likewise.
906 * sysdeps/generic/ldsodefs.h: Adjust _dl_relocate_object prototype.
907
7e342603
UD
908 * elf/rtld.c (dl_main): Extend help message for --audit option.
909
eee6b143
UD
910 [BZ #9759]
911 * dirent/dirent.h: Adjust prototypes of scandir, scandir64, alphasort,
912 alphasort64, versionsort, and versionsort64 to POSIX 2008.
913 * dirent/alphasort.c: Adjust implementation to type change.
914 * dirent/alphasort64.c: Likewise.
915 * dirent/scandir.c: Likewise.
916 * dirent/versionsort.c: Likewise.
917 * dirent/versionsort64.c: Likewise.
918 * sysdeps/wordsize-64/alphasort.c: Add hack to hide alphasort64
919 declaration.
920 * sysdeps/wordsize-64/versionsort.c: Add hack to hide versionsort64
921 declaration.
922
cd2d01fa
UD
923 [BZ #9880]
924 * inet/inet6_rth.c (inet6_rth_reverse): Compute number of segments
925 correctly. Set segleft member in output as required.
926 Patch partly by Yang Hongyang <yanghy@cn.fujitsu.com>.
927 * inet/tst-inet6_rth.c (do_test): Add tests for inet6_rth_reverse.
928
906dd40d
UD
929 [BZ #9881]
930 * inet/inet6_rth.c (inet6_rth_add): Add some error checking.
931 Patch mostly by Yang Hongyang <yanghy@cn.fujitsu.com>.
932 * inet/Makefile (tests): Add tst-inet6_rth.
933 * inet/tst-inet6_rth.c: New file.
934
71a5bd3e
UD
935 [BZ #5807]
936 * string/strlen.c (strlen): Fix omission in the expression to test
937 for NUL bytes.
938
878b72c5
UD
9392009-03-14 Ulrich Drepper <drepper@redhat.com>
940
fad070ab
UD
941 * crypt/sha256test.c (main): Perform 100,000 'a' test in a second way.
942
a42ad61b
UD
943 * elf/dl-runtime.c (reloc_offset): Define.
944 (reloc_index): Define.
945 (_dl_fixup): Rename reloc_offset parameter to reloc_arg.
946 (_dl_fixup_profile): Likewise. Use reloc_index instead of
947 computing index from reloc_offset.
948 (_dl_call_pltexit): Likewise.
949 * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve): Just pass
950 the relocation index to _dl_fixup.
951 (_dl_runtime_profile): Likewise for _dl_fixup_profile and
952 _dl_call_pltexit.
953 * sysdeps/x86_64/dl-runtime.c: New file.
954
1f7c90a7
UD
955 [BZ #9893]
956 * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix
906dd40d 957 alignment of La_x86_64_regs. Store xmm parameters.
1f7c90a7
UD
958 Patch mostly by Jiri Olsa <olsajiri@gmail.com>.
959
45466462
UD
960 [BZ #9913]
961 * string/strverscmp.c (__strverscmp): Fix case of different digits
962 in fractional part of string.
963 Patch by Jingyu Liu <jyliu@fortinet.com>.
964 * string/Makefile (tests): Add tst-svc2.
965 * string/tst-svc2.c: New file.
966
967 * string/strverscmp.c (__strverscmp): Optimize size of tables.
968
878b72c5
UD
969 * locale/iso-639.def: Add Min Nan.
970
f53713a8
UD
9712009-03-11 Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
972
878b72c5 973 [BZ #9948]
f53713a8
UD
974 * elf/dl-sysdep.c (_dl_show_auxv): Add support for AT_BASE_PLATFORM.
975
f81ce288
UD
9762009-03-14 Ulrich Drepper <drepper@redhat.com>
977
f53713a8
UD
978 * elf/dl-sysdep.c (auxvars): Compress data structure.
979
f81ce288
UD
980 * sysdeps/i386/dl-machine.h (elf_machine_rel): Implement
981 STT_GNU_IFUNC handling.
982 (elf_machine_rela): Likewise.
983
425ce2ed
UD
9842009-03-13 Ulrich Drepper <drepper@redhat.com>
985
986 * config.h.in (USE_MULTIARCH): Define.
987 * configure.in: Handle --enable-multi-arch.
988 * elf/dl-runtime.c (_dl_fixup): Handle STT_GNU_IFUNC.
989 (_dl_fixup_profile): Likewise.
990 * elf/do-lookup.c (dl_lookup_x): Likewise.
991 * sysdeps/x86_64/dl-machine.h: Handle STT_GNU_IFUNC.
992 * elf/elf.h (STT_GNU_IFUNC): Define.
993 * include/libc-symbols.h (libc_ifunc): Define.
994 * sysdeps/x86_64/cacheinfo.c: If USE_MULTIARCH is defined, use the
995 framework in init-arch.h to get CPUID values.
996 * sysdeps/x86_64/multiarch/Makefile: New file.
997 * sysdeps/x86_64/multiarch/init-arch.c: New file.
998 * sysdeps/x86_64/multiarch/init-arch.h: New file.
999 * sysdeps/x86_64/multiarch/sched_cpucount.c: New file.
1000
1001 * config.make.in (experimental-malloc): Define.
1002 * configure.in: Handle --enable-experimental-malloc.
1003 * malloc/Makefile: Handle experimental-malloc flag.
1004 * malloc/malloc.c: Implement PER_THREAD and ATOMIC_FASTBINS features.
1005 * malloc/arena.c: Likewise.
1006 * malloc/hooks.c: Likewise.
1007 * malloc/malloc.h: Define M_ARENA_TEST and M_ARENA_MAX.
1008
e7f110cd
UD
10092009-03-11 Ulrich Drepper <drepper@redhat.com>
1010
1011 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Add branch
1012 prediction. A few size optimizations.
1013
bd82a247
UD
10142009-03-10 Ulrich Drepper <drepper@redhat.com>
1015
1016 * time/tzset.c: Optimize a bit for size.
1017
a99e59d7
UD
10182009-03-10 Jakub Jelinek <jakub@redhat.com>
1019
1020 * include/stdio.h (fmemopen): Add libc_hidden_proto.
1021 * libio/fmemopen.c (fmemopen): Add libc_hidden_def.
1022
1023 * elf/sprof.c: Avoid warning about multi-line comment.
1024
686f8c9d
UD
10252009-03-10 Ulrich Drepper <drepper@redhat.com>
1026
1027 * time/tzset.c (__tzset_parse_tz): Use correct string when parsing
1028 DST name.
1029 * time/tst-posixtz.c: Add tests for quoted timezone names.
1030
7db0cc42
UD
10312009-03-10 Jakub Jelinek <jakub@redhat.com>
1032
1033 * posix/unistd.h (_POSIX_VERSION, _POSIX2_VERSION, _POSIX2_C_BIND,
1034 _POSIX2_C_DEV, _POSIX2_SW_DEV, _POSIX2_LOCALEDEF): Define to
1035 200809L instead of 200112L.
1036 (_XOPEN_VERSION): For __USE_XOPEN2K8 define to 700.
1037 * posix/tst-sysconf.c (STDVER): Define to 200809L instead of 200112L.
1038
eec4b454
UD
1039 * stdlib/quick_exit.c (quick_exit): Pass &__quick_exit_funcs
1040 instead of __quick_exit_funcs to __run_exit_handlers.
1041 * stdlib/at_quick_exit.c (at_quick_exit): Add attribute_hidden.
1042 * stdlib/exit.h (__run_exit_handlers): Add noreturn attribute.
1043 (__cxa_at_quick_exit): Remove attribute_hidden.
1044 * stdlib/exit.c (exit): Pass &__exit_funcs instead of __exit_funcs
1045 to __run_exit_handlers.
1046 * stdlib/cxa_at_quick_exit.c (__cxa_at_quick_exit): Remove
1047 attribute_hidden.
1048
d7276cee
UD
10492009-03-10 Ulrich Drepper <drepper@redhat.com>
1050
1051 * po/id.po: Update from translation team.
1052
1454da21
UD
10532009-02-18 Jakub Jelinek <jakub@redhat.com>
1054
1055 * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S: Use
1056 .machine push; .machine "power6" and .machine pop around mtfsf
1057 insns outside of _ARCH_PWR6 define.
1058 * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S: Likewise.
1059 * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S:
1060 Likewise.
1061 * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S:
1062 Likewise.
1063 * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (_SET_DI_FPSCR): Likewise.
1064 * sysdeps/powerpc/fpu/fenv_libc.h (fesetenv_register,
1065 relax_fenv_state): Likewise.
1066
130ca12e
UD
10672009-03-08 Ulrich Drepper <drepper@redhat.com>
1068
610e67ed
UD
1069 * stdlib/Makefile (routines): Add quick_exit, at_quick_exit, and
1070 cxa_at_quick_exit.
1071 (static-only-routines): Add at_quick_exit.
1072 * stdlib/Versions: Export quick_exit and __cxa_at_quick_exit for
1073 GLIBC_2.10.
1074 * stdlib/quick_exit.c: New file.
1075 * stdlib/at_quick_exit.c: New file.
1076 * stdlib/cxa_at_quick_exit.c: New file.
1077 * stdlib/cxa_atexit.c (__cxa_atexit): Move body to new function. Call
1078 it appropriately.
1079 (__internal_atexit): New function.
1080 (__new_exitfn): Now takes parameter to point to the list to use.
1081 * stdlib/cxa_finalize.c: Remove quick_exit handlers, don't call them.
1082 * stdlib/exit.c (__run_exit_handlers): New function. Split from...
1083 (exit): ...here. Just call __run_exit_handlers appropriately.
1084 * stdlib/exit.h: Declare __quick_exit_funcs, __run_exit_handlers,
1085 __internal_atexit, __cxa_at_quick_exit. Adjust __new_exitfn.
1086 * stdlib/on_exit.c: Adjust call to __new_exitfn.
1087 * stdlib/stdlib.h: Declare at_quick_exit and quick_exit.
1088
130ca12e
UD
1089 * po/id.po: Update from translation team.
1090
9a4f9d1f
UD
10912009-03-07 Ulrich Drepper <drepper@redhat.com>
1092
1093 * po/ru.po: Update from translation team.
1094
6d781c94
UD
10952009-03-04 Ulrich Drepper <drepper@redhat.com>
1096
1097 * po/nl.po: Update from translation team.
1098
e00c5ece
UD
10992009-03-03 Ulrich Drepper <drepper@redhat.com>
1100
99eb932f
UD
1101 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Declare fallocate{,64}.
1102 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
1103 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
1104 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
1105 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
1106 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
1107 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
1108
e00c5ece
UD
1109 * po/pl.po: Update from translation team.
1110
749f5cc9
UD
11112009-03-02 Ulrich Drepper <drepper@redhat.com>
1112
1b994772 1113 [BZ #7083]
749f5cc9
UD
1114 * sysdeps/unix/sysv/linux/fallocate.c: New file.
1115 * sysdeps/unix/sysv/linux/fallocate64.c: New file.
1116 * sysdeps/unix/sysv/linux/wordsize-64/fallocate64.c: New file.
1117 * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: New file.
1118 * sysdeps/unix/sysv/linux/i386/fallocate64.c: New file.
1119 * sysdeps/unix/sysv/linux/i386/fallocate.c: New file.
1120 * sysdeps/unix/sysv/linux/Versions: Export fallocate and fallocate64
1121 for GLIBC_2.10.
1122 * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
1123 Add fallocate and fallocate64.
1124
1125 * io/fcntl.h: Pretty printing.
1126
6219e3cc
JJ
11272009-03-02 Richard Guenther <rguenther@suse.de>
1128
1129 * misc/sys/cdefs.h (__extern_always_inline): Add __artificial__
1130 attribute also for non-C99 inline semantics variant.
1131
134a9766
UD
11322009-02-12 Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
1133
1134 * sysdeps/powerpc/powerpc32/power7/fpu/Implies: New file.
1135 * sysdeps/powerpc/powerpc32/power7/Implies: Likewise.
1136 * sysdeps/powerpc/powerpc64/power7/fpu/Implies: Likewise.
1137 * sysdeps/powerpc/powerpc64/power7/Implies: Likewise.
1138 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/fpu/Implies:
1139 Likewise.
1140 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/fpu/Implies:
1141 Likewise.
1142
95bc1633
UD
11432009-03-02 Ulrich Drepper <drepper@redhat.com>
1144
1145 * po/cs.po: Update from translation team.
1146
43ea48a5
UD
11472009-02-28 Ulrich Drepper <drepper@redhat.com>
1148
1149 * po/bg.po: Update from translation team.
1150 * po/sv.po: Likewise.
f5faa3b6 1151 * po/fi.po: Likewise.
45572c23 1152 * po/vi.po: Likewise.
43ea48a5 1153
e965d514
RM
11542009-02-27 Roland McGrath <roland@redhat.com>
1155
1156 * Makeconfig (%.v.i): Depend on Makeconfig.
1157 Exclude % lines from initial #-comment removal.
1158
56a9651f
UD
11592009-02-27 Ulrich Drepper <drepper@redhat.com>
1160
1161 * po/ko.po: Update from translation team.
1162
682825ce
RM
11632009-02-26 Roland McGrath <roland@redhat.com>
1164
1165 * shadow/lckpwdf.c (__lckpwdf): Move FLAGS inside block using it,
1166 avoids unused warning.
1167
a3c37506
UD
11682009-02-26 Andrew Stubbs <ams@codesourcery.com>
1169 SUGIOKA Toshinobu <sugioka@itonet.co.jp>
1170
1171 * sysdeps/unix/sysv/linux/sh/sys/procfs.h: Don't include signal.h,
1172 sys/ucontext.h and asm/elf.h. Include sys/user.h.
1173 * sysdeps/unix/sysv/linux/sh/sys/user.h: Don't include features.h
1174 and asm/user.h. Include asm/ptrace.h.
1175 (PTRACE_GETREGS, PTRACE_SETREGS, PTRACE_GETFPREGS,
1176 PTRACE_SETFPREGS, PTRACE_GETFDPIC, PTRACE_GETFDPIC_EXEC,
1177 PTRACE_GETFDPIC_INTERP, PTRACE_GETDSPREGS, PTRACE_SETDSPREGS):
1178 Undefine.
1179 (start_thread): Don't undefine.
1180 (elf_greg_t, ELF_NGREG, elf_fpregset_t, user_fpu_struct, user):
1181 Define.
1182
f503060b
UD
11832009-02-26 Ulrich Drepper <drepper@redhat.com>
1184
6cbe890a
UD
1185 * wctype/wctype.h: The *_l functions are in POSIX 2008.
1186 * wcsmbs/wchar.h: mbsnrtowcs, open_wmemstream, wcpcpy, wcpncpy,
1187 wcscasecmp, wcsdup, wcsncasecmp, wcsnlen, wcsnrtombs,
1188 wcscasecmp_l, wcsncasecmp_l, wcscoll_l, and wcsxfrm_l.
1189 * sysdeps/mach/hurd/bits/posix_opt.h: Reset value of macros from
1190 200112L to 200809L.
1191 * sysdeps/unix/sysv/linux/bits/posix_opt.h: Likewise.
1192 * posix/getconf.c (vars): Add _SC_THREAD_ROBUST_PRIO_INHERIT and
1193 _SC_THREAD_ROBUST_PRIO_PROTECT entries.
1194 * bits/confname.h: Add _SC_THREAD_ROBUST_PRIO_INHERIT and
1195 _SC_THREAD_ROBUST_PRIO_PROTECT.
1196 * posix/unistd.h: fexecve is in POSIX 2008.
1197 * time/time.h: strftime_l is in POSIX 2008.
1198 * io/sys/stat.h: futimens is in POSIX 2008.
1199 * string/strings.h: strcasecmp_l and strncasecmp_l are in POSIX 2008.
1200 * string/string.h: stpcpy, stpncpy, strndup, strnlen, strsignal,
1201 strcoll_l, strerror_l, and strxfrm_l are in POSIX 2008.
1202 * stdlib/stdlib.h: mkdtemp is in POSIX 2008.
f503060b
UD
1203 * libio/stdio.h: dprintf, fmemopen, getdelim, getline,
1204 open_memstream, and vdprintf are in POSIX 2008.
1205
2e6d6bac
UD
12062009-02-25 Ulrich Drepper <drepper@redhat.com>
1207
3e6b0a28 1208 * include/features.h: Define macros for XPG7/POSIX 2008.
77db439e
UD
1209 * ctype/ctype.h: The *_l functions are in POSIX 2008.
1210 * dirent/dirent.h: alphasort, dirfd, scandir, and fdopendir are in
1211 POSIX 2008.
1f04d005
UD
1212 * locale/langinfo.h: nl_langinfo_l is in POSIX 2008.
1213 * locale/xlocale.h: Define locale_t type.
1214 * locale/locale.h: duplocale, freelocale, newlocale, uselocale are
1215 in POSIX 2008. Don't define locale_t here.
1216 * stdlib/monetary.h: strfmon_l is in POSIX 2008.
3e6b0a28
UD
1217 * sysdeps/unix/sysv/linux/bits/stat.h: Protect UTIME_NOW and
1218 UTIME_OMIT only with __USE_ATFILE.
1f04d005
UD
1219 * signal/signal.h: Declare psignal and psiginfo for POSIX 2008.
1220 * stdio-common/psiginfo.c: New file.
1221 * stdio-common/psiginfo-data.h: New file.
1222 * stdio-common/psiginfo-define.h: New file.
1223 * stdio-common/Makefile (routines): Add psiginfo.
1224 * stdio-common/Versions: Export psiginfo for GLIBC_2.10.
3e6b0a28
UD
1225 * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
1226 * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Likewise.
1227 * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
1228 * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
1229 * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
1230 * io/sys/stat.h: Move mknodat definition into same conditional as
1231 mknod.
1232 * time/sys/time.h: futimesat is not among the functions accepted
1233 into the POSIX standard.
1234
2e6d6bac
UD
1235 * include/features.h: If no feature selection given and we select
1236 by default a POSIX mode, also define __USE_POSIX_IMPLICITLY.
1237 * posix/Versions: Export __posix_getopt.
1238 * posix/getopt.c (_getopt_initialize): Take additional parameter.
1239 Use it to alternatively initialize __posixly_correct.
1240 (_getopt_internal_r): Take addition parameter. Pass on to
1241 _getopt_initialize.
1242 (_getopt_internal): Take addition parameter. Pass on to
1243 _getopt_internal_r.
1244 (getopt): Pass additional zero to _getopt_internal.
1245 (__posix_getopt): New function.
1246 * posix/getopt.h: Add redirection for getopt.
1247 * posix/getopt1.c (getopt_long): Pass additional zero to
1248 _getopt_internal.
1249 (getopt_long_only): Likewise.
1250 (_getopt_long_r): Pass additional zero to _getopt_internal_r.
1251 (_getopt_long_only_r): Likewise.
1252 * posix/getopt_int.h: Adjust declarations of _getopt_internal and
1253 _getopt_internal_r.
1254
67108e40
UD
12552009-02-24 Ulrich Drepper <drepper@redhat.com>
1256
1257 * bits/confname.h: Define _SC_TRACE_EVENT_NAME_MAX, _SC_TRACE_NAME_MAX,
1258 _SC_TRACE_SYS_MAX, _SC_TRACE_USER_EVENT_MAX, _SC_XOPEN_STREAMS.
1259 * sysdeps/posix/sysconf.c (__sysconf): Handle
1260 _SC_TRACE_EVENT_NAME_MAX, _SC_TRACE_NAME_MAX, _SC_TRACE_SYS_MAX,
1261 _SC_TRACE_USER_EVENT_MAX, _SC_XOPEN_STREAMS.
1262
1cccb96f
RM
12632009-02-24 Roland McGrath <roland@redhat.com>
1264
1265 [BZ #9895]
1266 * README.template: Reworded not to use substituted version number.
1267 Renamed to ...
1268 * README: ... here (no longer generated).
1269 * Makefile (README): Target removed.
1270
82780cbe
UD
12712009-02-24 Ulrich Drepper <drepper@redhat.com>
1272
5be0a688 1273 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf):
77db439e 1274 /proc/sys/kernel/rtsig_max doesn't exist anymore, use getrlimit
5be0a688
UD
1275 instead.
1276
8c4a5f42
UD
1277 * io/sys/stat.h: The lstat functions have been mandatory since 2001.
1278
82780cbe
UD
1279 * time/tzset.c (tzset_internal): Correct parsing of TZ envvar.
1280
77c571dd
UD
12812009-02-22 Ulrich Drepper <drepper@redhat.com>
1282
1283 * po/bg.po: Update from translation team.
1284
d82a27f8
JJ
12852009-02-16 Jakub Jelinek <jakub@redhat.com>
1286
1287 * stdlib/monetary.h: Uglify function parameter names.
1288 * sunrpc/rpc/pmap_clnt.h: Likewise.
1289 * sunrpc/rpc/svc.h: Likewise.
1290 * sunrpc/rpc/xdr.h: Likewise.
1291 * sunrpc/rpc/clnt.h: Likewise.
1292 * resolv/netdb.h: Likewise.
1293 * resolv/arpa/nameser.h: Likewise.
1294 * resolv/resolv.h: Likewise.
1295 * argp/argp.h: Likewise.
1296 * locale/langinfo.h: Likewise.
1297 * io/sys/stat.h: Likewise.
1298 * posix/spawn.h: Likewise.
1299 * nis/rpcsvc/nislib.h: Likewise.
1300 * malloc/obstack.h: Likewise.
1301 * sysdeps/ia64/bits/link.h: Likewise.
1302 * sysdeps/i386/bits/link.h: Likewise.
1303 * sysdeps/s390/bits/link.h: Likewise.
1304 * sysdeps/powerpc/bits/link.h: Likewise.
1305 * sysdeps/x86_64/bits/link.h: Likewise.
1306 * sysdeps/sparc/bits/link.h: Likewise.
1307 * sysdeps/sh/bits/link.h: Likewise.
1308 * sysdeps/unix/sysv/linux/i386/sys/io.h: Likewise.
1309 * sysdeps/unix/sysv/linux/x86_64/sys/io.h: Likewise.
1310 * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: Likewise.
1311 * sysdeps/unix/sysv/linux/sys/eventfd.h: Likewise.
1312
58a7457e
JJ
13132008-12-01 Fredrik Unger <fred@tree.se>
1314
1315 * soft-fp/double.h [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_SEMIRAW_D,
1316 FP_UNPACK_SEMIRAW_DP): Use _FP_UNPACK_RAW_1 instead of
1317 _FP_UNPACK_RAW_2, fix up first argument.
1318
f43b4be6
UD
13192009-02-15 Ulrich Drepper <drepper@redhat.com>
1320
1321 * sysdeps/unix/sysv/linux/getsysstats.c (next_line): New function.
1322 (GET_NPROCS_PARSER): Change parameters and use next_line.
1323 (__get_nprocs): Rewrite to not use stdio routines.
1324 * sysdeps/unix/sysv/linux/sparc/getsysstats.c (GET_NPROCS_PARSER):
1325 Change parameters and use next_line.
1326
20e498bd
UD
13272009-02-13 Ulrich Drepper <drepper@redhat.com>
1328
1329 [BZ #5381]
1330 * nscd/nscd.h: Remove definitions and declarations for mem_in_flight.
1331 Change mempool_alloc prototype.
1332 * nscd/mem.c (gc): Don't handle mem_in_flight.
1333 (mempool_alloc): Third parameter now only indicates whether this is the
1334 first call (to allocate data) or not. If it is, get db rdlock.
1335 Release it on error. Don't handle mem_in_flight.
1336 * nscd/aicache.c (addhstaiX): Mark he parameter as const.
1337 Adjust third parameter of mempool_alloc calls.
1338 Nothing to do here in case mempool_alloc fails.
1339 Avoid local variable shadowing parameter. No need to get db rdlock
1340 before calling cache_add.
1341 * nscd/cache.c (cache_add): Adjust call to mempool_alloc. There is
1342 no mem_in_flight array anymore.
1343 * nscd/connections.c: Remove definition and handling of mem_in_flight.
1344 * nscd/grpcache.c (cache_addgr): Adjust third parameter of
1345 mempool_alloc calls. Mark he parameter as const. Nothing to do here
1346 in case mempool_alloc fails. No need to get db rdlock before calling
1347 cache_add.
1348 * nscd/hstcache.c (cache_addhst): Likewise.
1349 * nscd/initgrcache.c (addinitgroupsX): Likewise.
1350 * nscd/servicescache.c (cache_addserv): Likewise.
1351 * nscd/pwdcache.c (cache_addpw): Likewise. Remove some debugging code.
1352
d8111eac
UD
13532009-02-11 Ulrich Drepper <drepper@redhat.com>
1354
1355 * po/lt.po: Update from translation team.
1356
40e2fc8b
UD
13572009-02-10 Ulrich Drepper <drepper@redhat.com>
1358
1359 * elf/dl-load.c (open_verify): In case VALID_ELF_HEADER is
1360 defined, allow additional data to be added using the optional
1361 MORE_ELF_HEADER_DATA macro.
1362 * sysdeps/unix/sysv/linux/ldsodefs.h (VALID_ELF_HEADER,
1363 VALID_ELF_OSABI, VALID_ELF_ABIVERSION, MORE_ELF_HEADER_DATA): Define.
1364
6c03cd11
UD
13652009-02-08 Ulrich Drepper <drepper@redhat.com>
1366
1367 * include/atomic.h: Define catomic_and if not already defined.
1368 * sysdeps/x86_64/bits/atomic.h: Define catomic_and.
1369 * sysdeps/i386/i486/bits/atomic.h: Likewise.
1370
bc16e0c4
UD
13712009-02-07 Ulrich Drepper <drepper@redhat.com>
1372
78ac92ad
UD
1373 * malloc/malloc.c (_int_free): Second argument is now mchunkptr.
1374 Change all callers.
6dd6a580 1375 (_int_realloc): Likewise. Third argument is now padded size
78ac92ad 1376 All _int_* functions are now static.
6dd6a580 1377
78ac92ad
UD
1378 * malloc/hooks.c: Change all callers to _int_free and _int_realloc.
1379 * malloc/arena.c: Likewise.
1380 * include/malloc.h: Remove now unnecessary declarations of the _int_*
1381 functions.
1382
7dddb4bd
UD
1383 * sunrpc/rpc_common.c: We cannot move _null_auth into .rodata that
1384 easily.
1385
bfacf1af
UD
1386 * malloc/malloc.c: Add branch prediction for use of the hooks.
1387
bc16e0c4
UD
1388 * grp/compat-initgroups.c [NOT_IN_libc] (__libc_use_alloca): Define.
1389
26b62243
UD
13902009-02-06 Ulrich Drepper <drepper@redhat.com>
1391
1392 [BZ #7095]
1393 * bits/confname.h: Add SUSv7 macros for getconf environments.
1394 * bits/environments.h: Likewise.
1395 * sysdeps/unix/sysv/linux/i386/bits/environments.h: Likewise.
1396 * sysdeps/unix/sysv/linux/powerpc/bits/environments.h: Likewise.
1397 * sysdeps/unix/sysv/linux/s390/bits/environments.h: Likewise.
1398 * sysdeps/unix/sysv/linux/sparc/bits/environments.h: Likewise.
1399 * sysdeps/unix/sysv/linux/x86_64/bits/environments.h: Likewise.
1400 * posix/confstr.c: Handle SUSv5 and SUSv7 environments.
1401 * posix/getconf.c: Likewise.
1402 * posix/sysconf.c: Likewise.
1403 * sysdeps/posix/sysconf.c: Likewise.
1404 * posix/Makefile (getconf.speclist): Also collect SUSv5 and SUSv7
1405 environments.
1406
3fe4c5b3
UD
14072009-01-16 Petr Baudis <pasky@suse.cz>
1408
1409 [BZ #9753]
1410 * resolv/res_libc.c (__res_maybe_init): Call __res_vinit()
1411 even if we currently have zero nscount.
1412
cbbcaf23
UD
14132009-02-06 Ulrich Drepper <drepper@redhat.com>
1414
1a9dd4e4
UD
1415 [BZ #9781]
1416 * grp/compat-initgroups.c (compat_call): Switch to use malloc when
1417 the input line is too long.
1418
51f8846e
UD
1419 * po/Makefile (libc.pot): Add f_print as function taking c-format
1420 parameter.
1421
cbbcaf23
UD
1422 * debug/xtrace.sh: Unify translatable messages.
1423 * elf/ldd.bash.in: Likewise.
1424 * elf/sprof.c: Likewise.
1425 * locale/programs/locale.c: Likewise.
1426 * malloc/memusage.sh: Likewise.
1427 * nss/getent.c: Likewise.
1428
14292009-02-06 Joseph Myers <joseph@codesourcery.com>
1430
1431 * debug/pcprofiledump.c (print_version,
1432 argp_program_version_hook): New function.
1433 * elf/ldconfig.c (more_help): New function.
1434 (argp): Use it.
1435 * elf/sln.c (usage): New function.
1436 (main): Support --help and --version.
1437 * malloc/memusagestat.c (print_version): New function.
1438 (argp_program_version_hook): New variable.
1439 * nscd/nscd.c (more_help): New function.
1440 (argp): Use it.
1441 * posix/getconf.c (main): Send --version output to stdout.
1442 Support --help.
1443 * sunrpc/rpc_main.c (usage, options_usage): Take STREAM and STATUS
1444 arguments. All callers changed.
1445 (print_version): New function.
1446 (parseargs): Support --help and --version.
1447 * sunrpc/rpcinfo.c (usage): Take STREAM argument. All callers
1448 changed.
1449 (print_version): New function.
1450 (main): Use getopt_long. Support --help and --version.
1451 * sysdeps/unix/sysv/linux/lddlibc4.c (main): Support --help and
1452 --version.
1453
88a3b8f9
UD
14542009-02-06 Ulrich Drepper <drepper@redhat.com>
1455
e2e390fa
UD
1456 * malloc/memusage.c (DEFAULT_BUFFER_SIZE): Change to 32768.
1457 (update_data): Fix handling of wrapping back
c3ab42a8
UD
1458 to the beginning of the buffer.
1459
88a3b8f9
UD
1460 [BZ #9823]
1461 * stdio-common/psignal.c (psignal): Fix test for empty string.
1462
62f63c47
UD
14632009-02-05 Ulrich Drepper <drepper@redhat.com>
1464
4f7408c7
UD
1465 * include/rpc/auth.h: Use libc_hidden_proto for _null_auth.
1466 * sunrpc/rpc_common.c: Add libc_hidden_def for _null_auth. Also
1467 move _null_auth to .rodata.
1468
970aa10f
UD
1469 * time/tzset.c (__tzset_parse_tz): DST offset must also allow hour
1470 value of 24.
1471
52de761a
UD
1472 * intl/dcigettext.c (DCIGETTEXT): Avoid some code duplication.
1473
62f63c47
UD
1474 * sysdeps/unix/opendir.c (__alloc_dir): We have a lot more memory
1475 today than when the original code was written. Use larger
1476 buffers. This also makes it unnecessary to have stat information,
1477 if this causes extra efforts.
1478 (__opendir): In case O_DIRECTORY works, don't call fstat just for
1479 __alloc_dir.
1480
0899b889
UD
14812009-02-03 Andrew Stubbs <ams@codesourcery.com>
1482
1483 * sysdeps/sh/sh4/dl-trampoline.S: Only set HAVE_FPU if __SH_FPU_ANY__
1484 is set.
1485 * sysdeps/sh/sh4/setjmp.S: Support SH4-NOFPU.
1486 * sysdeps/sh/sh4/__longjmp.S: Likewise.
1487 * sysdeps/unix/sysv/linux/sh/sh4/getcontext.S: Likewise.
1488 * sysdeps/unix/sysv/linux/sh/sh4/setcontext.S: Likewise.
1489 * sysdeps/unix/sysv/linux/sh/sh4/swapcontext.S: Likewise.
1490 * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Likewise.
1491
22cc3f75
UD
14922009-02-04 Ulrich Drepper <drepper@redhat.com>
1493
1494 * po/ru.po: Update from translation team.
1495
a71433e7
UD
14962008-11-17 Nathan Sidwell <nathan@codesourcery.com>
1497
1498 * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (struct sigevent):
1499 Add _tid slot to maintain consistency with kernel.
1500
82f2e9c6 15012009-02-04 Ulrich Drepper <drepper@redhat.com>
3a2e9947 1502
82f2e9c6
UD
1503 * libio/wfileops.c (_IO_wfile_underflow): Fix handling of
1504 incomplete characters at end of input buffer.
1505 * libio/Makefile (tests): Add tst-fgetwc.
1506 * libio/tst-fgetwc.c: New file.
1507 * libio/tst-fgetwc.input: New file.
3a2e9947 1508
ba022c06
UD
15092009-02-02 Andrew Stubbs <ams@codesourcery.com>
1510
1511 * sysdeps/unix/sysv/linux/sh/Makefile (libm.so-no-z-defs): Define.
1512
1b14353e
UD
15132009-02-02 Ulrich Drepper <drepper@redhat.com>
1514
1515 [BZ #9793]
1516 * iconv/gconv_trans.c (__gconv_transliterate): Don't change
1517 *OUTBUFSTART unless the whole output fit into the buffer.
1518 * iconv/Makefile (tests): Add tst-iconv4.
1519 * iconv/tst-iconv4.c: New file.
1520
ebc22416
UD
15212009-02-01 Ulrich Drepper <drepper@redhat.com>
1522
1523 * sysdeps/x86_64/cacheinfo.c (intel_02_known): Add new descriptors.
1524 * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
1525
7c8a6732
UD
15262009-01-29 Andrew Stubbs <ams@codesourcery.com>
1527
1528 * elf/Makefile (ld.so): Adjust the sed script to insert _begin in to
1529 newer linker scripts.
1530
43149780
UD
15312009-01-30 Ulrich Drepper <drepper@redhat.com>
1532
1533 [BZ #7040]
1534 * sysdeps/unix/sysv/linux/sys/inotify.h: Second parameter of
1535 inotify_rm_watch should have type int.
1536
bd4ace0b
UD
15372009-01-06 Steven Munroe <sjmunroe@us.ibm.com>
1538
1539 * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp):
1540 Make aligned_restore_vmx a local symbol.
1541 * sysdeps/powerpc/powerpc64/__longjmp-common.S (__longjmp):
1542 Likewise.
1543
430902da
AJ
15442009-01-30 Andreas Jaeger <aj@suse.de>
1545
1546 * sysdeps/unix/sysv/linux/bits/shm.h (SHM_EXEC): Define.
1547 * sysdeps/unix/sysv/linux/ia64/bits/shm.h (SHM_EXEC): Define.
1548 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h (SHM_EXEC): Define.
1549 * sysdeps/unix/sysv/linux/s390/bits/shm.h (SHM_EXEC): Define.
1550 * sysdeps/unix/sysv/linux/sh/bits/shm.h (SHM_EXEC): Define.
1551 * sysdeps/unix/sysv/linux/sparc/bits/shm.h (SHM_EXEC): Define.
1552 * sysdeps/unix/sysv/linux/x86_64/bits/shm.h (SHM_EXEC): Define.
1553
b7219e53
UD
15542009-01-11 Ryan S. Arnold <rsa@us.ibm.com>
1555
1556 [BZ #9726]
1557 * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (_SET_DI_FPSCR,
1558 _SET_SI_FPSCR): Clobber fp0 to prevent erroneous test-case passes.
1559
15602009-01-08 Ryan S. Arnold <rsa@us.ibm.com>
1561
1562 [BZ #9726]
1563 * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S
1564 (__CONTEXT_FUNC_NAME): Fix mtfsf to use fp31 instead of fp0.
1565 * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S
1566 (__CONTEXT_FUNC_NAME): Fix mtfsf to use fp31 instead of fp0.
1567
a3bd2846
UD
15682009-01-11 Thomas Schwinge <tschwinge@gnu.org>
1569
1570 * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Use
1571 memcpy instead of memcmp.
1572 (_dl_setup_pointer_guard): Likewise.
1573
1fdd89a7
UD
15742009-01-30 Ulrich Drepper <drepper@redhat.com>
1575
1576 * malloc/malloc.c (sYSMALLOc): Don't use assert when detecting
1577 manipulated brk, use malloc_printerr.
1578 * misc/sbrk.c (__sbrk): Better error handling for nonsense
1579 requests.
1580
8585cb74
UD
15812009-01-30 Jakub Jelinek <jakub@redhat.com>
1582
1583 * string/string.h (memchr, strchr, strrchr, strpbrk, strstr, index,
1584 rindex): For C++ add inlines so that they can be recognized as
1585 builtins.
1586 * string/strings.h: Define correct C++ prototypes for gcc 4.4.
1587
d8387c7b
UD
15882009-01-29 Ulrich Drepper <drepper@redhat.com>
1589 Jakub Jelinek <jakub@redhat.com>
1590
cdf77dd8
UD
1591 * string/string.h: Define correct C++ prototypes for gcc 4.4.
1592 * wcsmbs/wchar.h: Likewise.
d8387c7b 1593
647925b2
UD
15942009-01-29 Ulrich Drepper <drepper@redhat.com>
1595
1596 * sysdeps/i386/stackinfo.h (stackinfo_get_sp): Define.
1597 (stackinfo_sub_sp): Define.
1598
5627534a
UD
15992009-01-28 Ulrich Drepper <drepper@redhat.com>
1600
fd537e53
UD
1601 [BZ #9750]
1602 * nscd/mem.c (gc): Use alloca_count to get the real stack usage.
1603 * include/alloca.h (alloca_account): Define.
1604 * sysdeps/x86_64/stackinfo.h (stackinfo_get_sp): Define.
1605 (stackinfo_sub_sp): Define.
1606
00f5df0e
UD
1607 * nscd/connections.c (nscd_init): If database file access fails
1608 check whether this is due to permission problems and bail in that
1609 case.
31d322a2 1610
5627534a
UD
1611 [BZ #9741]
1612 * nscd/mem.c (gc): Fix assignment of he_data in case malloc is used.
1613 Reported by Jun'ichi Nomura <j-nomura@ce.jp.nec.com>.
1614
a7bd183f
UD
16152009-01-14 Kaz Kojima <kkojima@rr.iij4u.or.jp>
1616
1617 * sysdeps/unix/sysv/linux/sh/sysdep.h (INTERNAL_SYSCALL):
1618 Add "t" to clobber list.
1619 (INTERNAL_SYSCALL_NCS): Likewise.
1620
1dd75769
UD
16212009-01-28 Ulrich Drepper <drepper@redhat.com>
1622
1623 * nss/getent.c (print_networks): Don't print comma between aliases.
1624
25e84177
UD
16252009-01-23 Ulrich Drepper <drepper@redhat.com>
1626
1627 * sysdeps/unix/sysv/linux/tst-clone.c (do_test): Avoid warning.
1628
1629 * misc/hsearch_r.c (hcreate_r): We need at least three elements in
1630 the hash table.
1631 * misc/Makefile (tests): Add bug-hsearch1.
1632 * misc/bug-hsearch1.c: New file.
1633
0699a0ca
RM
16342009-01-22 Roland McGrath <roland@redhat.com>
1635
1636 * Makeconfig (%.v.i): Strip trailing # comments,
1637 not only whole-line comments.
1638
965cb60a
UD
16392009-01-10 Ulrich Drepper <drepper@redhat.com>
1640
1641 * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Take
1642 one parameter. If non-NULL use it to initialize return value.
1643 (_dl_setup_pointer_guard): New function.
1644 * sysdeps/unix/sysv/linux/dl-osinfo.h: Likewise.
1645 * sysdeps/generic/ldsodefs.h: Declare _dl_random.
1646 * elf/rtld.c (security_init): Pass _dl_random to
1647 _dl_setup_stack_chk_guard. Call _dl_setup_pointer_guard to initialize
1648 pointer_chk_guard.
1649 * elf/dl-sysdep.c (_dl_random): New variable.
1650 (_dl_sysdep_start): Handle AT_RANDOM.
1651 (_dl_show_auxv): Likewise.
1652 * elf/dl-support.c (_dl_random): New variable.
1653 (_dl_aux_init): Handle AT_RANDOM.
1654 * csu/libc-start.c [!SHARED] (libc_start_main): Pass _dl_random
1655 to _dl_setup_stack_chk_guard.
1656
1657 * elf/elf.h (AT_RANDOM): Define AT_BASE_PLATFORM and AT_RANDOM.
1658
8be96dd1
RM
16592009-01-10 Roland McGrath <roland@redhat.com>
1660
1661 * nscd/nscd.c (parse_opt): Use argp_error for bad -i argument.
1662
157cd5ac
UD
16632009-01-08 Ulrich Drepper <drepper@redhat.com>
1664
9b1c750e
UD
1665 * sysdeps/i386/fpu/libm-test-ulps: Adjust expm1 errors.
1666
157cd5ac
UD
1667 [BZ #9706]
1668 * nss/nss_files/files-parse.c (strtou32): New function.
1669 (INT_FIELD): Use strotu32 instead of strtoul to unify behavior
1670 across 32-bit and 64-bit platforms.
1671 (INT_FIELD_MAYBE_NULL): Likewise.
1672
960af8c2
JJ
16732009-01-08 Jakub Jelinek <jakub@redhat.com>
1674
1675 [BZ #9720]
1676 * sysdeps/unix/sysv/linux/bits/resource.h (enum __rusage_who): Avoid
1677 comma after RUSAGE_CHILDREN if not -D_GNU_SOURCE.
1678 * sysdeps/unix/sysv/linux/sparc/bits/resource.h (enum __rusage_who):
1679 Likewise.
1680
76c7f2cd
UD
16812009-01-05 Paolo Bonzini <bonzini@gnu.org>
1682
16c124f7 1683 [BZ #697]
76c7f2cd
UD
1684 * posix/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
1685 being NULL also if there are no backreferences.
1686 * posix/rxspencer/tests: Add testcases.
1687
bdb56bac
UD
16882009-01-04 Paolo Bonzini <bonzini@gnu.org>
1689
16c124f7 1690 [BZ #9697]
bdb56bac
UD
1691 * posix/bug-regex17.c: Add testcases.
1692 * posix/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
1693 handling.
1694
0480c901
UD
16952009-01-05 Martin Schwidefsky <schwidefsky@de.ibm.com>
1696
1697 * sysdeps/unix/sysv/linux/s390/bits/libc-vdso.h: New file.
1698 * sysdeps/unix/sysv/linux/s390/gettimeofday.c: New file.
1699 * sysdeps/unix/sysv/linux/s390/init-first.c: New file.
1700 * sysdeps/unix/sysv/linux/s390/Makefile (sysdep_routines): Add dl-vdso
1701 for elf subdir.
1702 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (INLINE_VSYSCALL,
1703 INTERNAL_VSYSCALL, INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK,
1704 INTERNAL_SYSCALL_NCS, HAVE_CLOCK_GETRES_VSYSCALL and
1705 HAVE_CLOCK_GETTIME_VSYSCALL: Define.
1706 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
1707 * sysdeps/unix/sysv/linux/s390/Versions: New file.
1708
b3918c7d
UD
17092008-12-31 Paolo Bonzini <bonzini@gnu.org>
1710
1711 * posix/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
1712 * posix/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
1713 re_string_skip_chars, re_string_reconstruct): Likewise.
1714 * posix/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
1715
df9293cb
UD
17162008-12-31 Rafael Avila de Espindola <espindola@google.com>
1717
1718 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr2_r): Check and
1719 adjust the buffer alignment.
1720
c90c1e1c
RM
17212009-01-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
1722
1723 * sysdeps/mach/hurd/Makefile (sysdep_headers) [subdir=socket]:
1724 Add net/ethernet.h net/if_arp.h net/if_ether.h net/if_ppp.h
1725 net/route.h.
1726
1727 * hurd/report-wait.c (describe_number): Use __stpcpy to prepend
1728 flavor to description only when flavor is not NULL.
1729
1730 * hurd/hurdsig.c (signal_allowed): Unlock _hurd_dtable_lock
1731 mutex after SIGIO/SIGURG lookup loop.
1732
5aff6fdf
RM
17332009-01-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
1734
1735 * bits/resource.h (PRIO_PROCESS, PRIO_PGRP, PRIO_USER): Add macros.
1736
b2bcd249
UD
17372009-01-03 Ulrich Drepper <drepper@redhat.com>
1738
1739 * sysdeps/unix/sysv/linux/i386/sysdep.h: Describe 6th argument
1740 handling.
1741
d36ad871
UD
17422009-01-02 Ulrich Drepper <drepper@redhat.com>
1743
ebb2788e
UD
1744 * sysdeps/unix/sysv/linux/kernel-features.h
1745 (__ASSUME_FUTEX_CLOCK_REALTIME): Define.
1746
72098116
UD
1747 * wcsmbs/wcsnrtombs.c (__wcsnrtombs): Create temporary state object
1748 if no output is written.
1749
623d0bf5
UD
1750 * version.h: Bump to 2.10 development.
1751
d36ad871
UD
1752 * posix/getconf.c: Update copyright year.
1753 * nss/getent.c: Likewise.
1754 * iconv/iconvconfig.c: Likewise.
1755 * iconv/iconv_prog.c: Likewise.
1756 * elf/ldconfig.c: Likewise.
1757 * catgets/gencat.c: Likewise.
1758 * csu/version.c: Likewise.
1759 * elf/ldd.bash.in: Likewise.
1760 * elf/sprof.c (print_version): Likewise.
1761 * locale/programs/locale.c: Likewise.
1762 * locale/programs/localedef.c: Likewise.
1763 * nscd/nscd.c (print_version): Likewise.
1764 * debug/xtrace.sh: Likewise.
1765 * malloc/memusage.sh: Likewise.
1766 * malloc/mtrace.pl: Likewise.
1767 * debug/catchsegv.sh: Likewise.
1768
25df09ab
UD
17692008-12-29 Mike Frysinger <vapier@gentoo.org>
1770
1771 * iconvdata/Makefile (iconv-rules): Use LC_ALL=C when running awk
1772 script.
1773
16b7dc27
UD
17742008-12-29 Ulrich Drepper <drepper@redhat.com>
1775
bfbbc63f
UD
1776 * sysdeps/posix/getaddrinfo.c (gaih_inet): When the
1777 gethostbyname4_r function call succeeded, just leave the loop.
1778
0f2ae55c
UD
1779 [BZ #9694]
1780 * wcsmbs/wchar.h: Move undefs for local __need_* constants to the
1781 very end.
5703f472
UD
1782 * wctype/wctype.h: Get wint_t definition directly from <stddef.h>.
1783 * wctype/Makefile (tests): Add bug-wctypeh.
1784 * wctype/bug-wctypeh.c: New file.
0f2ae55c 1785
50e481ce
UD
1786 * nscd/nscd_gethst_r.c (nscd_gethst_r): Don't use nscd if
1787 LOCALDOMAIN is defined.
1788 * nscd/nscd_getai.c (__nscd_getai): Likewise.
1789
217d45cd
UD
1790 * sysdeps/x86_64/bits/select.h: New file.
1791
16b7dc27
UD
1792 * resolv/res_init.c (__res_vinit): Count all servers in statp->nscount.
1793
bf93cd3b
UD
17942008-12-21 Bruno Haible <bruno@clisp.org>
1795
1796 [BZ #9677]
1797 * wcsmbs/mbsnrtowcs.c (__mbsnrtowcs): Create temporary state object
1798 if no output is written.
1799
49159e12
UD
18002008-12-13 Klaus Dittrich <kladit@arcor.de>
1801
1802 * login/utmp_file.c (pututline_file): Replace call to dup2 with
1803 libc internal symbol __dup2 to avoid access through the PLT.
1804
d4f0720b
UD
18052008-12-08 Ulrich Drepper <drepper@redhat.com>
1806
135460f4
UD
1807 [BZ #6545]
1808 * sysdeps/unix/sysv/linux/bits/socket.h (SCM_CREDENTIALS): Make
1809 available only for __USE_GNU.
1810
ed0da352
UD
1811 * inet/Makefile (tests): Add tst-getni2.
1812 * inet/tst-getni2.c: New file.
1813
d4f0720b
UD
1814 [BZ #7080]
1815 * inet/getnameinfo.c (getnameinfo): Check for output buffers being
1816 NULL when NI_NAMEREQD is set.
1817 Patch mostly by Yang Hongyang <yanghy@cn.fujitsu.com>.
1818 * inet/Makefile (tests): Add tst-getni1.
1819 * inet/tst-getni1.c: New file.
1820
cd72adeb
UD
18212008-12-03 Petr Baudis <pasky@suse.cz>
1822
1823 [BZ #7067]
1824 * nscd/connections.c (invalidate_cache): Use prune_run_lock
1825 instead of prune_lock.
1826 (nscd_run_prune): Before calling prune_cache, take prune_run_lock.
1827 * nscd/nscd.h (database_dyn): Add prune_run_cache.
1828
e87946cc
UD
18292008-12-07 Ulrich Drepper <drepper@redhat.com>
1830
200da00a
UD
1831 * resolv/res_send.c (send_dg): Use correct guards for SOCK_CLOEXEC
1832 use.
1833
1834 * sysdeps/unix/sysv/linux/kernel-features.h: Fix typo in accept4
1835 handling.
1836
905ef0da
UD
1837 * resolv/res_init.c (__res_vinit): Always assign to statp->nscount
1838 after reading name server list.
1839
71053765 1840 [BZ #7058]
e87946cc
UD
1841 * nis/nss_nis/nis-hosts.c (_nss_nis_gethostbyname4_r): Fix memory
1842 handling for host name aliases.
1843
d43b8bdd
JJ
18442008-11-24 Arkadiusz Miśkiewicz <arekm@maven.pl>
1845
1846 * sysdeps/i386/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Use LOAD_PIC_REG
1847 instead of doing things manually.
1848
18492008-11-26 Chris Steel <chris.steel.lnx@googlemail.com>
1850
1851 * posix/regex_internal.h (build_wcs_upper_buffer):
1852 Return type is reg_error_t.
1853
25a34eb7
UD
18542008-12-05 Ulrich Drepper <drepper@redhat.com>
1855
f3721ab2
UD
1856 * posix/globtest.sh: Use mktemp to create temporary file and
1857 directory.
1858
25a34eb7
UD
1859 * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_SET_S): Handle large
1860 sets correctly.
1861 (__CPU_CLR_S): Likewise.
1862 (__CPU_ISSET_S): Likewise.
1863
8680179f
UD
18642008-12-05 Joseph Myers <joseph@codesourcery.com>
1865 Ulrich Drepper <drepper@redhat.com>
1866
1867 * scripts/firstversion.awk: Use custom comparison function to compare
1868 version numbers.
1869 * scripts/versions.awk: Use sort invocation which can handle
1870 multi-digit sub-version numbers.
1871
72d50908
UD
18722008-12-04 Ulrich Drepper <drepper@redhat.com>
1873
1874 * locale/programs/ld-address.c (DEFINE_LANGUAGE_CODE2): Define.
1875 * locale/iso-639.def: Add Chhattisgarhi entry.
1876
f93fc0b7
UD
18772008-12-02 Ulrich Drepper <drepper@redhat.com>
1878
da5ac135
UD
1879 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname3_r): Recognize
1880 ESRCH return value.
1881 (_nss_dns_gethostbyname4_r): Likewise.
1882 * resolv/res_init.c (__res_vinit): Initialize nscount to zero.
1883 * sysdeps/posix/getaddrinfo.c (gaih_inet): In case we use
1884 gethostbyname4_r, we don't have a separate IPv6 status, so copy
1885 the no_data variable.
1886
6f5c3117
UD
1887 * resolv/res_init.c (__res_vinit): Fill in IPv4 name server
1888 information at the correct index.
1889
f93fc0b7
UD
1890 * socket/sys/socket.h: Declare accept4.
1891 * socket/accept4.c: New file.
1892 * sysdeps/unix/sysv/linux/accept4.c: New file.
1893 * sysdeps/unix/sysv/linux/i386/accept4.S: New file.
1894 * socket/Makefile (routines): Add accept4.
1895 * socket/Versions: Export accept4 with version GLIBC_2.10.
1896 * socket/paccept.c: Removed.
1897 * sysdeps/unix/sysv/linux/paccept.c: Removed.
1898 * sysdeps/unix/sysv/linux/i386/paccept.S: Removed.
1899 * Versions.def: Define GLIBC_2.10 for libc.
1900 * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_ACCEPT4.
1901
1902 * nscd/connections.c: Use accept4.
1903
1904 * sysdeps/unix/sysv/linux/i386/socket.S: Fix comment.
1905
1fa7ae05
UD
19062008-12-01 Ulrich Drepper <drepper@redhat.com>
1907
9744268c
UD
1908 * resolv/res_send.c (send_dg): Create sockets with non-blocking
1909 flag already set.
1910
1fa7ae05
UD
1911 * stdlib/setenv.c (unsetenv): Don't search environment if it does
1912 not exist.
30c06371
UD
1913 * stdlib/Makefile (tests): Add tst-unsetenv1.
1914 * stdlib/tst-unsetenv1.c: New file.
1fa7ae05 1915
37a6a271
UD
19162008-11-29 Ulrich Drepper <drepper@redhat.com>
1917
1918 * login/utmp_file.c (file_writable): New variable.
1919 (setutent_file): Don't try to open file for writing.
1920 (pututline_file): Before writing, make descriptor writable if
1921 necessary.
1922
ca4dc0fe
UD
19232008-11-26 Ulrich Drepper <drepper@redhat.com>
1924
be4607eb
UD
1925 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Only restrict search
1926 to IPv4 or IPv6 if an interface has been found.
ca4dc0fe 1927
01a74645
RM
19282008-11-26 Roland McGrath <roland@redhat.com>
1929
24fd0a5b
RM
1930 * sysdeps/unix/sysv/linux/alpha/ipc_priv.h: Renamed to ...
1931 * sysdeps/unix/sysv/linux/powerpc/ipc_priv.h: ... here.
1932
1933 * sysdeps/unix/sysv/linux/alpha/wordexp.c: Renamed to ...
1934 * sysdeps/unix/sysv/linux/ia64/wordexp.c: ... here.
1935 * sysdeps/unix/sysv/linux/sparc/sparc64/wordexp.c: Change #include.
1936
01a74645
RM
1937 * elf/elf.h (NT_386_IOPERM): New macro.
1938 (NT_PPC_VSX): New macro.
1939
c0439b95
RM
19402008-11-25 Roland McGrath <roland@redhat.com>
1941
1942 * sysdeps/alpha, sysdeps/unix/bsd/osf/alpha,
1943 sysdeps/unix/bsd/Attic/osf1/alpha, sysdeps/unix/sysv/linux/alpha,
1944 sysdeps/unix/sysv/linux/alpha/alpha, sysdeps/unix/alpha,
1945 sysdeps/mach/alpha, sysdeps/mach/hurd/alpha:
1946 Subdirectories moved to ports repository.
1947 * configure.in (base_machine): Remove alpha case.
1948
d3dc523b
RM
19492008-11-25 Thomas Schwinge <tschwinge@gnu.org>
1950
1951 * sysdeps/mach/strerror_l.c: New file.
1952
edba7a54
UD
19532008-11-13 Ryan S. Arnold <rsa@us.ibm.com>
1954
1955 [BZ #6411]
1956 * sysdeps/powerpc/fpu/Makefile: Added test case tst-setcontext-fpscr.
1957 * sysdeps/powerpc/fpu/feholdexcpt.c (_FPU_MASK_ALL): Define to replace
1958 magic numbers.
1959 * sysdeps/powerpc/fpu/fenv_libc.h (fesetenv_register): Dynamically
1960 choose mtfsf insn based on PPC_FEATURE_HAS_DFP.
1961 (relax_fenv_state): Same as above.
1962 (FPSCR_29): Reserve bit in ISA 2.05.
1963 (FPSCR_NI): Provide define for compat.
1964 * sysdeps/powerpc/fpu/fesetenv.c (_FPU_MASK_ALL): Define to replace
1965 magic numbers.
1966 * sysdeps/powerpc/fpu/feupdateenv.c (_FPU_MASK_ALL): Define to replace
1967 magic numbers.
1968 * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c: New file. Test case to
1969 test setcontext and swapcontext with dynamic 64-bit FPSCR detection.
1970 * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp): Adjust
1971 access to hwcap to account for hwcap size increase to uint64_t.
1972 * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S (__sigsetjmp ):
1973 Likewise.
1974 * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S
1975 (*setcontext): Likewise.
1976 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/setcontext.S:
1977 New file.
1978 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/swapcontext.S:
1979 New file.
1980 * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S
1981 (*setcontext): dynamically select mtfsf insn based on
1982 PPC_FEATURE_HAS_DFP. Adjust access to hwcap to account for hwcap size
1983 increase to uint64_t.
1984 * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S
1985 (*swapcontext): dynamically select mtfsf insn based on
1986 PPC_FEATURE_HAS_DFP. Adjust access to hwcap to account for hwcap size
1987 increase to uint64_t.
1988 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/setcontext.S:
1989 New file.
1990 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/swapcontext.S:
1991 New file.
1992 * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
1993 (*setcontext): dynamically select mtfsf insn based on
1994 PPC_FEATURE_HAS_DFP.
1995 * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
1996 (*swapcontext): dynamically select mtfsf insn based on
1997 PPC_FEATURE_HAS_DFP.
1998
ec297962
UD
19992008-11-13 Ulrich Drepper <drepper@redhat.com>
2000
b5449f8a 2001 * version.h: Bump for 2.9 release.
f52bb4d7 2002 * include/features.h (__GLIBC_MINOR__): Bump to 9.
b5449f8a 2003
ec297962
UD
2004 [BZ #7029]
2005 * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_ALLOC_SIZE):
2006 Multiply with sizeof of __cpu_mask, not 8 unconditionally after
2007 all the rounding.
2008
3cac8b75
UD
20092008-11-11 Ulrich Drepper <drepper@redhat.com>
2010
0e54a725 2011 [BZ #7009]
3cac8b75
UD
2012 * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): Don't abort for
2013 unknown request types for now.
2014
58a4b51a
RM
20152008-11-11 Roland McGrath <roland@redhat.com>
2016
2017 * sysdeps/x86_64/configure: New file.
2018
2019 * configure.in: Add AC_SUBST(libc_cv_cpp_asm_debuginfo).
2020 * configure: Regenerated.
2021
01bd5e96
JJ
20222008-11-03 Martin Schwidefsky <schwidefsky@de.ibm.com>
2023
2024 * sysdeps/s390/s390-64/dl-trampoline.S (_dl_runtime_profile): Use the
2025 correct instruction to remove the stack frame.
2026
a9069550
JJ
20272008-11-03 Michael Matz <matz@suse.de>
2028
2029 * sysdeps/s390/bits/atomic.h (__arch_compare_and_exchange_val_32_acq,
2030 __arch_compare_and_exchange_val_64_acq): Add "memory" clobber.
2031
4b23f9bd
JJ
20322008-11-07 Jakub Jelinek <jakub@redhat.com>
2033
09f66a4f
JJ
2034 * include/stdio.h (__builtin_fwrite, __builtin_fwrite_unlocked):
2035 Remove.
2036
4b23f9bd
JJ
2037 * bits/libc-tsd.h (__libc_tsd_define, __libc_tsd_address,
2038 __libc_tsd_get, __libc_tsd_set): Add TYPE argument, use it as the type
2039 of the thread variable instead of void *.
2040 * sysdeps/mach/hurd/bits/libc-tsd.h (__libc_tsd_define,
2041 __libc_tsd_address, __libc_tsd_get, __libc_tsd_set): Likewise.
2042 * include/ctype.h (CTYPE_B, CTYPE_TOUPPER, CTYPE_TOLOWER): Adjust
2043 __libc_tsd_define arguments.
2044 (__ctype_b_loc, __ctype_toupper_loc, __ctype_tolower_loc): Adjust
2045 __libc_tsd_address arguments. Remove union hack.
2046 * include/rpc/rpc.h (RPC_VARS): Adjust __libc_tsd_define arguments.
2047 * sunrpc/rpc_thread.c (RPC_VARS): Likewise.
2048 (__rpc_thread_destroy, rpc_thread_multi, __rpc_thread_variables):
2049 Adjust __libc_tsd_{set,get} arguments.
2050 * ctype/ctype-info.c (CTYPE_B, CTYPE_TOUPPER, CTYPE_TOLOWER): Adjust
2051 __libc_tsd_define arguments.
2052 * locale/uselocale.c (__uselocale): Adjust __libc_tsd_{set,get}
2053 arguments.
2054 * locale/lc-ctype.c (_nl_postload_ctype): Likewise.
2055 * locale/global-locale.c (__libc_tsd_LOCALE): Adjust type.
2056 (LOCALE): Adjust __libc_tsd_define arguments.
2057 * locale/localeinfo.h (_NL_CURRENT_LOCALE): Adjust __libc_tsd_get
2058 arguments.
2059 (LOCALE): Adjust __libc_tsd_define arguments.
2060 * sysdeps/mach/hurd/malloc-machine.h (MALLOC): Adjust __libc_tsd_define
2061 arguments.
2062 (tsd_setspecific, tsd_getspecific): Adjust __libc_tsd_{set,get}
2063 arguments.
2064
486bdb88
UD
20652008-11-02 Ulrich Drepper <drepper@redhat.com>
2066
2067 * malloc/malloc.c (public_rEALLOc): When new arena is used, copy
2068 really all bytes. Patch by Denys Vlasenko <dvlasenk@redhat.com>.
2069
64647f9a
UD
20702008-11-01 Ulrich Drepper <drepper@redhat.com>
2071
2072 [BZ #6966]
2073 * misc/hsearch_r.c (hsearch_r): Fix secondary hash function.
2074
acd44dbc
UD
20752008-10-24 Joseph Myers <joseph@codesourcery.com>
2076 Ulrich Drepper <drepper@redhat.com>
2077
2078 * math/tgmath.h (__floating_type): Use __builtin_classify_type in
2079 definition for GCC 3.1 and later.
64647f9a 2080
41e25904
UD
20812008-10-31 Jakub Jelinek <jakub@redhat.com>
2082
2083 * elf/dl-tls.c (__tls_get_addr): After calling _dl_update_slotinfo
2084 refetch dtv, as it might have changed.
2085 * elf/Makefile: Add rules to build and run tst-tls18.
2086 * elf/tst-tls18.c: New test.
2087 * elf/tst-tlsmod18a.c: New file.
2088
e148a644 20892008-09-09 Aurelien Jarno <aurelien@aurel32.net>
97f12390 2090
da9c2314 2091 [BZ #6875]
e148a644
UD
2092 * iconvdata/gconv-modules: Add LATIN9 as an alias to ISO-8859-15.
2093
20942008-10-31 Ulrich Drepper <drepper@redhat.com>
97f12390 2095
6daf1a2f
UD
2096 [BZ #6867]
2097 * sysdeps/powerpc/elf/rtld-global-offsets.sym: Fix typo.
2098
6f576bf6
UD
2099 [BZ #6919]
2100 * posix/spawnattr_getschedparam.c (posix_spawnattr_getschedparam):
2101 Fix length of copy operation.
2102
45a8beb5
UD
21032008-10-02 Pierre Habouzit <madcoder@debian.org>
2104
2105 * sysdeps/unix/sysv/linux/eventfd.c (eventfd): Use the eventfd2 syscall
2106 and fix its calling convention.
2107
ad12e635
UD
21082008-10-07 Andreas Schwab <schwab@suse.de>
2109
2110 [BZ #6942]
2111 * resolv/res_send.c (send_vc): Fix last change.
2112 (send_dg): Align here as well.
2113
3cf44918
UD
21142008-10-31 Ulrich Drepper <drepper@redhat.com>
2115
dbb6ab3e
UD
2116 * sysdeps/unix/sysv/linux/ulimit.c (__ulimit): Handle UL_GETFSIZE
2117 return value in case rlimit is RLIM_INFINITY.
2118
2119 [BZ #6947]
2120 * sysdeps/unix/sysv/linux/ulimit.c (__ulimit): Fix return value
2121 for UL_SETFSIZE.
1828d6b0
UD
2122 * resource/Makefile (tests): Add bug-ulimit1.
2123 * resource/bug-ulimit1.c: New file.
dbb6ab3e 2124
a5ff533e
UD
2125 [BZ #6974]
2126 * sunrpc/rpc_main.c (mkfile_output): Properly handle filename
2127 without dot. Properly terminate the string with a null byte.
2128 Based on a patch by Aurelien Jarno <aurelien@aurel32.net>.
2129
4bed549a
UD
2130 [BZ #6980]
2131 * debug/getgroups_chk.c (__getgroups_chk): Return EINVAL error for
2132 negative sizees.
2133 * posix/bits/unistd.h (getgroups): Call __getgroups_chk for
2134 negative __size.
2135
3cf44918
UD
2136 [BZ #6995]
2137 * sysdeps/powerpc/powerpc32/dl-machine.c: Fix typo in message.
2138
21b07d8b
UD
21392008-10-30 Ulrich Drepper <drepper@redhat.com>
2140
332c4465
UD
2141 * grp/initgroups.c (internal_getgrouplist): Don't prematurely
2142 abort if there is no initgroups_dyn function.
2143
21b07d8b
UD
2144 * resolv/res_send.c (send_dg): On timeout, only return nonzero
2145 result if any of the queries really provided an answer.
2146
4caa3fb7
UD
21472008-10-28 Ulrich Drepper <drepper@redhat.com>
2148
2149 * po/lt.po: Update from translation team.
2150
a22c3a0d
UD
21512008-10-26 Ulrich Drepper <drepper@redhat.com>
2152
2153 * po/id.po: Update from translation team.
2154
49685151
UD
21552008-10-24 Ulrich Drepper <drepper@redhat.com>
2156
2157 * resolv/res_query.c (__libc_res_nquery): Add a few casts.
660675de 2158 Fix tests for existence of second reply.
49685151 2159
8d9d5d35
UD
21602008-10-23 Ulrich Drepper <drepper@redhat.com>
2161
2162 * po/id.po: New file.
2163 Contributed by the Indonesian translation team.
2164
208bc836
UD
21652008-10-22 Dmitry V. Levin <ldv@altlinux.org>
2166
2167 * misc/syslog.c (openlog_internal): Fix __have_sock_cloexec
2168 initialization.
2169
60a23f5a
UD
21702008-10-17 Jakub Jelinek <jakub@redhat.com>
2171
2172 * elf/Makefile: Add rules to build and run tst-tls17.
2173 * elf/tst-tls17.c: New test.
2174 * elf/tst-tlsmod17a.c: New file.
2175 * elf/tst-tlsmod17b.c: Likewise.
2176
292eb817
UD
21772008-10-17 Ulrich Drepper <drepper@redhat.com>
2178
2179 * stdlib/divmod_1.c: Use correct type for dummy variable.
2180 * stdlib/mod_1.c: Likewise.
2181
5df2a427
UD
21822008-10-16 Ulrich Drepper <drepper@redhat.com>
2183
2184 * elf/dl-tls.c (_dl_update_slotinfo): Copy all of the initial DTV.
2185
472e5e08
JJ
21862008-10-16 Jakub Jelinek <jakub@redhat.com>
2187
2188 * sysdeps/unix/sysv/linux/sys/signalfd.h (signalfd): Fix __THROW vs.
2189 __nonnull order for C++.
2190 * sysdeps/unix/sysv/linux/alpha/sys/signalfd.h (signalfd): Likewise.
2191 * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h (signalfd): Likewise.
2192
86900abd
RM
21932008-10-01 Daniel Jacobowitz <dan@codesourcery.com>
2194
2195 * stdlib/longlong.h: Update from GCC.
2196
19c10a47
JJ
21972008-10-09 Jakub Jelinek <jakub@redhat.com>
2198 David S. Miller <davem@davemloft.net>
2199
2200 * sysdeps/sparc/sparc64/sparcv9v/memcpy.S: When not USE_BPR,
2201 make sure any registers used with 64-bit 'branch-on-register'
2202 instructions have their top 32-bits clear.
2203 * sysdeps/sparc/sparc64/sparcv9v/memset.S: Likewise.
2204 * sysdeps/sparc/sparc64/sparcv9v2/memcpy.S: Likewise.
2205
2fdde3b9
UD
22062008-09-18 Andreas Schwab <schwab@suse.de>
2207
2208 [BZ #6942]
2209 * resolv/res_send.c (send_vc): Fix use of unaligned address.
f00d47a3 2210 Properly handle partial reads.
2fdde3b9 2211
6ba25fcb
RM
22122008-10-01 Mark Shinwell <shinwell@codesourcery.com>
2213
2214 * elf/elf.h (STO_MIPS_PLT): New.
2215 (R_MIPS_COPY): New.
2216 (R_MIPS_JUMP_SLOT): New.
2217 (R_MIPS_NUM): Redefine to 128.
2218 (DT_MIPS_PLTGOT): New.
2219 (DT_MIPS_RWPLT): New.
2220 (DT_MIPS_NUM): Redefine to 0x35.
2221
97898201
UD
22222008-10-01 Ulrich Drepper <drepper@redhat.com>
2223
2224 * timezone/africa: Update from tzdata2008f.
2225 * timezone/asia: Likewise.
2226 * timezone/australasia: Likewise.
2227 * timezone/europe: Likewise.
2228 * timezone/leapseconds: Likewise.
2229 * timezone/northamerica: Likewise.
2230 * timezone/southamerica: Likewise.
2231 * timezone/zone.tab: Likewise.
2232
3452ded5
UD
22332008-09-30 Ulrich Drepper <drepper@redhat.com>
2234
2235 * nscd/connections.c: Disable use of paccept for now.
2236
54ad9327
UD
22372008-09-29 Ulrich Drepper <drepper@redhat.com>
2238
8ec2550e
UD
2239 * socket/Versions: Remove paccept export for GLIBC_2.9.
2240 * socket/Makefile (routines): Remove paccept.
2241 * socket/sys/socket.h: Remove paccept declaration.
2242
54ad9327
UD
2243 * po/sv.po: Update from translation team.
2244
1c5eba39
UD
22452008-09-22 Deborah S. Townsend <dstownse@us.ibm.com>
2246
2247 * sysdeps/s390/s390-64/s390x-mcount.S: Replace ahi with aghi.
2248 * sysdeps/unix/sysv/linux/s390/s390-64/socket.S: Likewise.
2249
0a26fc4d
UD
22502008-09-16 Ulrich Drepper <drepper@redhat.com>
2251
2252 * dlfcn/dlopen.c (dlopen_doit): Allow __RTLD_SPROF flag.
2253 Patch by Olivier Fourdan <ofourdan@redhat.com>.
2254
2bcaff08
UD
22552008-09-15 Ulrich Drepper <drepper@redhat.com>
2256
2257 * sunrpc/rpc/svc.h: Declare svcfd_create.
2258 Patch by Michael Solberg <msolberg@redhat.com>.
2259
caa60cb9 22602008-09-12 Flavio Leitner <fleitner@redhat.com>
f00d47a3 2261 Ulrich Drepper <drepper@redhat.com>
caa60cb9
UD
2262
2263 * malloc/malloc.c (public_vALLOc): Try other arenas in case
2264 _int_valloc fails.
2265 (public_pVALLOc): Likewise.
2266
6c161112
AJ
22672008-09-02 Andreas Jaeger <aj@suse.de>
2268
2269 * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: Fix last
2270 commit.
2271
0cb269d7
RM
22722008-08-26 Aurelien Jarno <aurelien@aurel32.net>
2273
452034cc 2274 [BZ #6860]
2bcaff08 2275 * hurd/hurd/signal.h (HURD_MSGPORT_RPC): Fix a typo.
0cb269d7 2276
13074b5b
RM
22772008-07-18 Daniel Jacobowitz <dan@codesourcery.com>
2278
2279 * Makefile (check-data): Check data directory in add-ons.
2280 * elf/Makefile (check-data): Likewise.
2281
58801a0e
RM
22822008-08-18 Roland McGrath <roland@redhat.com>
2283
2284 * configure.in (--with-cpu): Check compiler support for -march/-mcpu.
2285 * configure: Regenerated.
2286 * config.make.in (cflags-cpu): New substituted variable.
2287 (with-cpu): Variable removed.
2288 * Makeconfig (+cflags): Use $(cflags-cpu), not $(with-cpu).
2289
7df49c5d
UD
22902008-08-14 Ryan S. Arnold <rsa@us.ibm.com>
2291
2292 [BZ #6845]
2293 * sysdeps/powerpc/fpu/bits/mathinline.h (__signbitl): Copy new
2294 __signbitl definition and __LONG_DOUBLE_128__ guard from:
2295 * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h: Remove as
2296 redundant. Functions which call floating point assembler operations
2297 should go into a sysdeps powerpc/fpu directory.
2298
965805e8
UD
22992008-08-15 Ulrich Drepper <drepper@redhat.com>
2300
2301 * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Define MAP_STACK.
2302 * sysdeps/unix/sysv/linux/i386/bits/mman.h: Likewise.
2303
9cf73ab0
UD
23042008-08-14 Ulrich Drepper <drepper@redhat.com>
2305
62a1ffc6
UD
2306 * sysdeps/x86_64/memset.S: Reduce size of tables for PIC.
2307
9cf73ab0
UD
2308 * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): Undo all
2309 change related to AT_EXECFN. We cannot use that string.
2310 * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Remove
2311 _dl_execfn member.
2312 * elf/dl-support.c: Remove _dl_execfn variable.
2313 (_dl_aux_init): Remove handling of AT_EXECFN.
2314 * elf/dl-sysdep.c (_dl_sysdep_start): Remove handling of AT_EXECFN.
2315 * elf/rtld.c (process_envvars): Remove use of __ASSUME_AT_EXECFN.
2316
1bfa05cf
UD
23172008-08-13 Ulrich Drepper <drepper@redhat.com>
2318
7b3ba2c4
UD
2319 [BZ #6544]
2320 * libio/fmemopen.c: Implement binary mode. In this mode no NUL
2321 byte gets added to writes and seeks from the end use the length of
2322 the buffer and not the currently terminating NUL byte.
2323
1bfa05cf
UD
2324 [BZ #6634]
2325 * login/utmp_file.c (getutent_r_file): Take additional parameter.
2326 Set to true if locking failed.
2327 (getutid_r_file): Adjust caller.
2328 (pututline_file): Likewise. Return NULL in this case.
2329 Patch mostly by halesh.s@gmail.com.
2330
c5671698
UD
23312008-08-12 Ulrich Drepper <drepper@redhat.com>
2332
2333 [BZ #6589]
2334 * sysdeps/unix/sysv/linux/ifaddrs.c (struct sockaddr_ll_max):
2335 Define.
2336 (struct ifaddrs_storage): Use it instead of sockaddr_ll.
2337
4497384e
UD
23382008-08-12 Ryan S. Arnold <rsa@us.ibm.com>
2339
2340 [BZ #6839]
2341 * sysdeps/powerpc/powerpc32/dl-machine.c (CHECK_STATIC_TLS): Remove
2342 macro since it is now available in elf/dynamic-link.h.
2343
675d7111
RM
23442008-08-12 Roland McGrath <roland@frob.com>
2345
2346 * hurd/hurd/signal.h (HURD_MSGPORT_RPC): Avoid -Wparenthesis triggers,
2347 in case used outside of libc.
2348 Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>
2349
8b254432
UD
23502008-08-11 Ulrich Drepper <drepper@redhat.com>
2351
2352 * resolv/res_mkquery.c (res_nmkquery): Call ns_name_compress
2353 directly instead of going through dn_comp.
2354
ac84eeca
RM
23552008-08-11 Aurelien Jarno <aurel32@debian.org>
2356
2357 * sysdeps/mach/i386/machine-lock.h (__spin_unlock, __spin_try_lock):
2358 Fix asm constraints.
2359
f081b451
UD
23602008-08-07 Ulrich Drepper <drepper@redhat.com>
2361
2362 [BZ #6790]
2363 * sysdeps/unix/sysv/linux/bits/in.h (IP_PMTUDISC_PROBE): Define.
2364 (IPV6_PMTUDISC_PROBE): Likewise.
2365
30a4429e
UD
23662008-08-07 Pete Eberlein <eberlein@us.ibm.com>
2367
2368 [BZ #6791]
2369 * sysdeps/unix/sysv/linux/powerpc/bits/mman.h (PROT_SAO): Define.
2370
1642331d 23712008-08-01 Steven Munroe <sjmunroe@us.ibm.com>
626f68ff 2372 Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
1642331d
UD
2373
2374 [BZ #6817]
2375 * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags):
2376 Added the members 'vsx' and 'arch_2_06'.
2377 (_dl_powerpc_platforms): Add the member 'power7'.
2378 * sysdeps/powerpc/dl-procinfo.h: Modify _DL_HWCAP_FIRST
2379 to reflect the changes required by VSX and ISA 2.06.
2380 Modify _DL_PLATFORMS_COUNT to reflect the addition of
2381 'power7'.
2382 Defined PPC_PLATFORM_POWER7.
2383 (_dl_string_platform): Add support for POWER7.
2384 * sysdeps/powerpc/sysdep.h: Define bit masks for VSX
2385 capability and ISA 2.06.
2386
48b94661
UD
23872008-08-07 Ulrich Drepper <drepper@redhat.com>
2388
2389 [BZ #6824]
2390 * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h: Use correct
2391 macro to detect use of 128 bit long double.
2392 Patch by Ryan S. Arnold <rsa@us.ibm.com>.
2393
9523fd28
UD
23942008-08-05 Ulrich Drepper <drepper@redhat.com>
2395
9c0cb150
UD
2396 * scripts/gen-as-const.awk: Use 32-bit values on 32-bit platforms.
2397
46aea5cb 2398 [BZ #5794]
9523fd28
UD
2399 * sysdeps/i386/fpu/s_expm1l.S: Simply use exp implementation for large
2400 parameters.
2401 * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
2402 Patch by Denys Vlasenko <dvlasenk@redhat.com>.
2403
c400c931
UD
24042008-08-03 Ulrich Drepper <drepper@redhat.com>
2405
2406 * nscd/connections.c (main_loop_poll): Pass a buffer which is
2407 guaranteed to be large enough to read inotify event. Ignore
2408 EAGAIN error. Better error message. Add branch predicition.
2409 (main_loop_epoll): Likewise.
2410
3f39adac
RM
24112008-08-02 Roland McGrath <roland@frob.com>
2412
2413 * sysdeps/mach/i386/machine-lock.h (__spin_unlock, __spin_try_lock):
2414 Add memory clobbers.
2415
3501542f
UD
24162008-08-02 Ulrich Drepper <drepper@redhat.com>
2417
48b22986
UD
2418 * manual/arith.texi: Avoid @strong{Note:}.
2419 * manual/creature.texi: Likewise.
2420 * manual/filesys.texi: Likewise.
2421 * manual/math.texi: Likewise.
2422 * manual/memory.texi: Likewise.
2423 * manual/resource.texi: Likewise.
2424 * manual/syslog.texi: Likewise.
2425 * manual/time.texi: Likewise.
2426
3501542f
UD
2427 * sysdeps/posix/clock_getres.c (hp_timing_getres): Remove inline
2428 to prevent warning.
2429
17756df3
UD
24302008-08-01 Ulrich Drepper <drepper@redhat.com>
2431
ebcc1f4d
UD
2432 * sysdeps/unix/sysv/linux/Versions: Fix changes due to old patch for
2433 new epoll_create1 interface.
2434 * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
2435 * sysdeps/unix/sysv/linux/sys/epoll.h: Likewise.
2436 * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
2437
144bfa86
UD
2438 * include/arpa/nameser.h (NS_GET16): Use const pointer.
2439 (NS_GET32): Likewise.
2440
7e1b29c6
UD
2441 * sysdeps/unix/sysv/linux/kernel-features.h: s390 has the new
2442 syscalls, too.
2443
42fa1f67
UD
2444 * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): We cannot
2445 use the AT_EXECFN value if it is no absolute path.
2446 * sysdeps/unix/sysv/linux/kernel-features.h: Never define
2447 __ASSUME_AT_EXECFN.
2448
cd5743fd
UD
2449 * Versions.def: Add GLIBC_2.9 to libresolv.
2450 * include/resolv.h: Remove hidden proto declarations for __ns_*
2451 functions. Add them for __dn_count_labels and __p_secstodate.
2452 * include/arpa/nameser.h: Add a number of hidden proto declarations.
2453 Define ns_msg_getflags macro here.
2454 * resolv/res_debug.c: Add hidden definition for __dn_count_labels
2455 and __p_secstodate.
2456 * resolv/Versions: Export functions from <arpa/nameser.h> from
2457 libresolv in version GLIBC_2.9.
2458 * resolv/ns_name.c: Integrate changes from bind 9.5.0. Add necessary
2459 hidden definitions.
2460 * resolv/ns_netint.c: Likewise.
2461 * resolv/ns_parse.c: Likewise.
2462 * resolv/ns_print.c: Likewise.
2463 * resolv/ns_samedomain.c: Likewise.
2464 * resolv/ns_ttl.c: Likewise.
2465 * resolv/arpa/nameser_compat.h: Likewise.
2466 * resolv/arpa/nameser.h: Likewise. Remove macros which redirect
2467 function calls.
2468 * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Use __ns_get16
2469 instead of ns_get16.
2470 * resolv/nss_dns/dns-host.c (getanswer_r): Use __ns_get16 and
2471 __ns_get32 instead of ns_get16 and ns_get32 respectively.
2472 (gaih_getanswer_slice): Likewise.
2473 * resolv/Makefile (libresolv-routines): Add ns_date.
2474 * resolv/ns_date.c: New file.
2475
17756df3
UD
2476 * elf/Makefile (check-localplt.out): Also check libresolv and
2477 libcrypt.
2478
46bc5d43
UD
24792008-07-31 Ulrich Drepper <drepper@redhat.com>
2480
2481 * sysdeps/unix/sysv/linux/kernel-features.h: Define
2482 __ASSUME_O_CLOEXEC.
2483
a707cff6
UD
24842008-07-30 Ulrich Drepper <drepper@redhat.com>
2485
3c227386
UD
2486 * sysdeps/posix/getaddrinfo.c (gaih_inet): Raise size of initial
2487 buffer passed to NSS functions.
2488
9523fd28 2489 * nscd/connections.c (nscd_init): Typo in preprocessor directive.
bd7f4857
UD
2490
2491 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PACCEPT):
2492 Define.
2493
a707cff6
UD
2494 * misc/syslog.c (openlog_internal): Fix compile problem.
2495
0424d007
RM
24962008-07-28 Roland McGrath <roland@redhat.com>
2497
2498 * elf/dl-sysdep.c (_dl_show_auxv): Add AT_EXECFN to the table.
2499
b7da31a1
UD
25002008-07-28 Ulrich Drepper <drepper@redhat.com>
2501
300ea0ad
UD
2502 * io/ftw.c (add_object): Remove inline to avoid warning.
2503
d6173baa
UD
2504 * sysdeps/unix/sysv/linux/paccept.c: Fix compile problem.
2505
b7da31a1
UD
2506 * resolv/res_send.c (__libc_res_nsend): Take additional parameter.
2507 Use it instead of locally defined resplen2 variable.
2508 (res_nsend): Adjust for __libc_res_nsend interface change.
2509 (send_vc): Initialize *resplen2 if necessary. Read length of
2510 package into an appropriately aligned variable. Store converted length
2511 in new variable and use it appropriately.
2512 Add branch prediction help.
2513 * resolv/res_query.c (__libc_res_nquery): Take additional parameter
2514 and pass it on to __libc_res_nsend. Adjust all callers.
2515 (__libc_res_nsearch): Likewise.
2516 (__libc_res_nqeurydomain): Likewise.
2517 * resolv/nss_dns/dns-host.c: Adjust for __libc_res_nsearch interface
2518 change.
2519 (_nss_dns_gethostbyname4): Don't unconditionally allocate tmp array.
2520 Define resplen2 variable and pass it to __libc_res_nsearch and then
2521 to gaih_getanswer.
2522 (getanswer_r): In case of incorrect DNS data don't overread buffer.
2523 Add branch prediction.
2524 (gaih_getanswer_slice): Likewise. Check for invalid data types.
2525 (gaih_getanswer): Don't decode second slice if first one failed due
2526 to a too small buffer. Don't let not found status of second
2527 decoder shadow results of the first.
2528 * resolv/gethnamaddr.c (gethostbyname2): Adjust for __libc_res_nsearch
2529 and __libc_res_nquery interface changes
2530 (gethostbyaddr): Adjust for __libc_res_nquery interface change.
2531 * include/resolv.h: Adjust prototypes for __libc_res_nquery,
2532 __libc_res_nsearch, and __libc_res_nsend.
2533 * resolv/nss_dns/dns-canon.c: Adjust for __libc_res_nquery interface
2534 change.
2535 * resolv/nss_dns/dns-network.c: Adjust for __libc_res_nquery and
2536 __libc_res_nsearch interface changes.
2537
11ed3eae
UD
25382008-07-27 Ulrich Drepper <drepper@redhat.com>
2539
372aece0
UD
2540 * libio/iopopen.c (_IO_new_proc_open): Remove unnecessary volatile.
2541
e038616f
UD
2542 * posix/wordexp.c (exec_comm): Use pipe2 if possible to create
2543 file descriptors with close-on-exec set.
2544 (exec_comm_child): Fix the case where the write end of the pipe is
2545 STDOUT_FILENO already. In case it is, clear close-on-exec.
2546
d6e0c2a6
UD
2547 * sysdeps/unix/sysv/linux/syscalls.list: Add __pipe2 alias.
2548 * io/pipe2.c: Likewise.
2549 * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_PIPE2
2550 instead of __ASSUME_PACCEPT.
2551 * include/unistd.h: Declare __have_pipe2.
2552 * libio/iopopen.c: Implement "e" flag.
2553 * libio/Makefile (tests): Add tst-popen1.
2554 * libio/tst-popen1.c: New file.
2555
11ed3eae
UD
2556 * sysdeps/unix/sysv/linux/bits/socket.h: Define PF_ISDN and AF_ISDN.
2557 * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
2558
7438a80d
UD
25592008-07-26 Ulrich Drepper <drepper@redhat.com>
2560
c4a710b6
UD
2561 [BZ #6771]
2562 * libio/fileops.c (_IO_new_file_attach): Preserve errno around
2563 success call of _IO_SEEKOFF or calls which failed because the
2564 descriptor is for a pipe.
2565
31f3b159
UD
2566 * sunrpc/key_call.c (getkeyserv_handle): Use FD_CLOEXEC instead of
2567 magic number.
2568
c0216dfc
UD
2569 * misc/syslog.c (openlog_internal): Use SOCK_CLOEXEC if possible.
2570
72112b0c
UD
2571 * malloc/mtrace.c (mtrace): Use 'e' flag in fopen call. Drop
2572 F_SETFD use if we know fopen set the flag.
2573
7438a80d
UD
2574 * login/utmp_file.c (setutent_file): Minor optimization in case
2575 O_CLOEXEC is available.
2576
7b91359b
UD
25772008-07-24 Tom "spot" Callaway <tcallawa@redhat.com>
2578
2579 * Makeconfig: Define pie-ccflag and PIE-ccflag variables.
2580 * elf/Makefile: Use pie-ccflag variable.
2581 * nscd/Makefile: Likewise.
2582 * sysdeps/sparc/Makefile: Set $(pie-ccflag) to -fPIE.
2583
4057dc45
UD
25842008-07-21 Andreas Krebbel <krebbel1@de.ibm.com>
2585
e7135e24 2586 [BZ #6724]
4057dc45
UD
2587 * Versions.def: Add GLIBC_2.9 version tag for libutil.
2588 * sysdeps/unix/sysv/linux/s390/bits/utmp.h: Copy of
2589 gnu/bits/utmp.h. Check for __WORDSIZE_COMPAT32 removed.
2590 * sysdeps/unix/sysv/linux/s390/bits/utmpx.h: Copy of
2591 gnu/bits/utmpx.h. Check for __WORDSIZE_COMPAT32 removed.
2592 * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Add new files
2593 utmp32, utmpx32 and login32.
2594 * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Add 2.9
2595 versions of struct utmp functions to libc and libutil.
2596 * sysdeps/unix/sysv/linux/s390/s390-32/utmp-compat.h: New file.
2597 * sysdeps/unix/sysv/linux/s390/s390-32/getutent.c: New file.
2598 * sysdeps/unix/sysv/linux/s390/s390-32/getutent_r.c: New file.
2599 * sysdeps/unix/sysv/linux/s390/s390-32/getutid.c: New file.
2600 * sysdeps/unix/sysv/linux/s390/s390-32/getutid_r.c: New file.
2601 * sysdeps/unix/sysv/linux/s390/s390-32/getutline.c: New file.
2602 * sysdeps/unix/sysv/linux/s390/s390-32/getutline_r.c: New file.
2603 * sysdeps/unix/sysv/linux/s390/s390-32/getutmp.c: New file.
2604 * sysdeps/unix/sysv/linux/s390/s390-32/getutxent.c: New file.
2605 * sysdeps/unix/sysv/linux/s390/s390-32/getutxid.c: New file.
2606 * sysdeps/unix/sysv/linux/s390/s390-32/getutxline.c: New file.
2607 * sysdeps/unix/sysv/linux/s390/s390-32/login.c: New file.
2608 * sysdeps/unix/sysv/linux/s390/s390-32/login32.c: New file.
2609 * sysdeps/unix/sysv/linux/s390/s390-32/pututxline.c: New file.
2610 * sysdeps/unix/sysv/linux/s390/s390-32/updwtmp.c: New file.
2611 * sysdeps/unix/sysv/linux/s390/s390-32/updwtmpx.c: New file.
2612 * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: New file.
2613 * sysdeps/unix/sysv/linux/s390/s390-32/utmp32.c: New file.
2614 * sysdeps/unix/sysv/linux/s390/s390-32/utmp32.h: New file.
2615 * sysdeps/unix/sysv/linux/s390/s390-32/utmpx-convert.h: New file.
2616 * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.c: New file.
2617 * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: New file.
2618
ff0bf753
UD
26192008-07-26 Ulrich Drepper <drepper@redhat.com>
2620
619cc2f6
UD
2621 * scripts/gen-as-const.awk: Generate more widely usable code by
2622 using 64-bit arithmetic.
2623
1311b164 2624 * stdio-common/printf_fp.c (___printf_fp): Give wide outout code
3f414923 2625 the same treatment as narrow output code in last patch.
1311b164 2626
ff0bf753
UD
2627 * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Namespace cleanup.
2628
3f414923 2629 [BZ #6763]
ff0bf753
UD
2630 * elf/dl-load.c (local_strdup): Remove inline.
2631 (_dl_map_object_from_fd): Don't allocate l_symbolic_searchlist.r_list.
2632 * elf/dl-object.c (_dl_new_object): Allocate symbolic searchlist as
2633 part of the object.
2634
2635 * sysdeps/unix/sysv/linux/dl-origin.c: Add const to avoid warning.
2636
8ccf22f9
UD
26372008-07-25 Ulrich Drepper <drepper@redhat.com>
2638
bdd24a30
UD
2639 * sysdeps/unix/sysv/linux/kernel-features.h: IA-64 and SPARC have
2640 the new syscalls, too.
b5c0b5e4 2641
b41f1d14
UD
2642 * sysdeps/i386/i686/memcmp.S: Fix unwind information.
2643 Reported by Paul Pluzhnikov <ppluzhnikov@google.com>.
2644
3703468e
UD
2645 [BZ #6698]
2646 * stdio-common/_i18n_number.h (_i18n_number_rewrite): Take additional
2647 parameter for end of buffer. If temporary copy is too large use
2648 malloc.
2649 * stdio-common/vfprintf.c: Adjust for _i18n_number_rewrite
2650 interface change.
2651 * stdio-common/printf_fp.c (__printf_fp): Likewise.. Account for
2652 string rewrite when allocating buffer.
2653
bb0277bf
UD
2654 * sysdeps/unix/sysv/linux/kernel-features.h: PPC has the new
2655 syscalls, too.
2656
9dd84772
UD
2657 * nscd/connections.c (nscd_init): Clean up fcntl call.
2658
c418b1ba
UD
2659 * nscd/nscd_helper.c (open_socket): Use SOCK_CLOEXEC and
2660 SOCK_NONBLOCK if possible.
2661
b206d8b1
UD
2662 * sysdeps/unix/sysv/linux/opensock.c (__opensock): Use
2663 SOCK_CLOEXEC if available.
2664
8ccf22f9
UD
2665 * include/rpc/clnt.h: Declare __libc_clntudp_bufcreate and
2666 __libc_clntudp_bufcreate_internal.
2667 * include/sys/socket.h: Declare __have_sock_cloexec.
2668 * socket/Makefile (aux): Add have_sock_cloexec.
2669 * socket/have_sock_cloexec.c: New file.
2670 * sunrpc/clnt_udp.h (clntudp_bufcreate): Now a wrapper around
2671 __libc_clntudp_bufcreate.
2672 (__libc_clntudp_bufcreate): Former implementation of clntudp_bufcreate
2673 which takes an additional parameter. Create socket with non-blocking
2674 mode and close-on-exec flag set, if wanted.
2675 * sunrpc/Versions: Export __libc_clntudp_bufcreate@GLIBC_PRIVATE.
2676 * nis/ypclnt.c (yp_bind_client_create): Use __libc_clntpudp_bufcreate
2677 instead of clntudp_create. The socket has already the close-on-exec
2678 flag set if SOCK_CLOEXEC is defined.
2679
579cdf5a
UD
26802008-07-24 Ulrich Drepper <drepper@redhat.com>
2681
3ff2c948
UD
2682 * sysdeps/unix/sysv/linux/kernel-features.h: Define
2683 __ASSUME_PACCEPT, __ASSUME_IN_NONBLOCK, and __ASSUME_PACCEPT if
2684 appropriate.
2685 * nscd/connections.c: Avoid fcntl calls to set close-on-exec flag and
2686 non-blocking mode by using socket, paccept, and inotify_init1.
2687
bdcebfc4
UD
2688 * Versions.def (glibc): Add GLIBC_2.9.
2689 * io/Makefile (routines): Add dup3 and pipe2.
2690 * io/Versions [glibc] (GLIBC_2.9): Add dup3 and pipe2.
2691 * io/dup3.c: New file.
2692 * io/pipe2.c: New file.
2693 * posix/unistd.h: Declare dup3 and pipe2.
2694 * socket/Makefile (routines): Add paccept.
2695 * socket/Versions [glibc] (GLIBC_2.9): Add paccept.
2696 * socket/paccept.c: New file.
2697 * socket/sys/socket.h: Declare paccept.
2698 * sysdeps/unix/syscalls.list: Add entry for dup3.
2699 * sysdeps/unix/sysv/linux/Versions [glibc] (GLIBC_2.9): Add
2700 epoll_create2 and inotify_init1.
2701 * sysdeps/unix/sysv/linux/eventfd.c: Use eventfd1 syscall if possible.
2702 * sysdeps/unix/sysv/linux/paccept.c: New file.
2703 * sysdeps/unix/sysv/linux/signalfd.c: Use signalfd4 syscall if
2704 possible.
2705 * sysdeps/unix/sysv/linux/socketcall.h: Add SOCKOP_paccept.
2706 * sysdeps/unix/sysv/linux/syscalls.list: Add epoll_create2,
2707 inotify_init1, and pipe2 entries.
2708 * sysdeps/unix/sysv/linux/alpha/sys/epoll.h: New file.
2709 * sysdeps/unix/sysv/linux/alpha/sys/eventfd.h: New file.
2710 * sysdeps/unix/sysv/linux/alpha/sys/inotify.h: New file.
2711 * sysdeps/unix/sysv/linux/alpha/sys/signalfd.h: New file.
2712 * sysdeps/unix/sysv/linux/alpha/sys/timerfd.h: New file.
2713 * sysdeps/unix/sysv/linux/bits/socket.h: Define SOCK_CLOEXEC and
2714 SOCK_NONBLOCK.
2715 * sysdeps/unix/sysv/linux/i386/paccept.S: New file.
2716 * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: New file.
2717 * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: New file.
2718 * sysdeps/unix/sysv/linux/sparc/sys/inotify.h: New file.
2719 * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h: New file.
2720 * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: New file.
2721 * sysdeps/unix/sysv/linux/sparc/bits/socket.h: New file.
2722 * sysdeps/unix/sysv/linux/sys/epoll.h: Define EPOLL_CLOEXEC and
2723 EPOLL_NONBLOCK. Declare epoll_create2.
2724 * sysdeps/unix/sysv/linux/sys/eventfd.h: Define EFD_CLOEXEC and
2725 EFD_NONBLOCK.
2726 * sysdeps/unix/sysv/linux/sys/inotify.h: Define IN_CLOEXEC and
2727 IN_NONBLOCK. Declare inotify_init1.
2728 * sysdeps/unix/sysv/linux/sys/signalfd.h: Define SFD_CLOEXEC and
2729 SFD_NONBLOCK.
2730 * sysdeps/unix/sysv/linux/sys/timerfd.h: Define TFD_CLOEXEC and
2731 TFD_NONBLOCK.
2732
0e077a7e
UD
2733 * elf/elf.h: Define AT_EXECFN.
2734 * elf/rtld.c [!__ASSUME_AT_EXECFN] (process_envvars): Don't handle
2735 LD_ORIGIN_PATH.
2736 * elf/dl-sysdep.c (_dl_sysdep_start): Handle AT_EXECFN.
2737 * elf/dl-support.c: Define _dl_execfn. Don't define _dl_origin_path
2738 if __ASSUME_AT_EXECFN is defined.
2739 (_dl_aux_init): Handle AT_EXECFN.
2740 * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_AT_EXECFN
2741 for 2.6.27 and up.
2742 * sysdeps/generic/ldsodefs.h (rtld_global_ro): Add _dl_execfn.
2743 Don't define _dl_origin_path if __ASSUME_AT_EXECFN is defined.
2744 * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): Use
2745 _dl_execfn if available and avoid compatibility code if
2746 __ASSUME_AT_EXECFN is defined.
2747
579cdf5a
UD
2748 * sysdeps/unix/sysv/linux/dl-sysdep.h: Don't declare
2749 _dl_discover_osversion only for older kernels.
2750
7385c04c
RM
27512008-07-22 Roland McGrath <roland@frob.com>
2752
2753 * hurd/fd-read.c (_hurd_fd_read): Fix last change.
2754
8a26088d
RM
27552008-07-21 Roland McGrath <roland@frob.com>
2756
2757 * hurd/fd-read.c (_hurd_fd_read): Return EGRATUITOUS if the server
2758 returned too much data out of line.
2759
9f558b80
UD
27602008-07-20 Ulrich Drepper <drepper@redhat.com>
2761
2e79213a
UD
2762 * locale/setlocale.c (setname): Remove inline to avoid compiler
2763 warning.
2764
579cdf5a 2765 [BZ #6712]
9f558b80
UD
2766 * locale/setlocale.c (setlocale): Take the setlocale lock earlier.
2767
9667f97d
UD
27682008-07-15 Ulrich Drepper <drepper@redhat.com>
2769
2486b496
UD
2770 * stdio-common/vfprintf.c (_IO_helper_overflow): In case _IO_sputn
2771 doesn't manage to write anything, fail.
2772
9667f97d
UD
2773 * malloc/hooks.c (__malloc_check_init): Remove printf.
2774
6d4c073b
RM
27752008-07-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
2776
2777 * sysdeps/mach/hurd/bits/fcntl.h: Include <sys/types.h>.
2778
b7432416
UD
27792008-07-12 Ulrich Drepper <drepper@redhat.com>
2780
2781 * nscd/connections.c (main_loop_poll): Fix handling of read errors
2782 from inotify.
2783 (main_loop_epoll): Likewise.
2784
44abc397
UD
27852008-07-09 Ulrich Drepper <drepper@redhat.com>
2786
835113c6
UD
2787 * resolv/res_send.c: Remove unnecessary res_pquery prototype.
2788
fdc769f6
UD
2789 * resolv/res_query.c (__libc_res_nquery): Issue debug message only
2790 if DEBUG is defined.
2791
44abc397
UD
2792 * resolv/res_query.c (__libc_res_nquery): Align buffer for T_AAAA
2793 query. Adjust buffer size computation for padding.
2794
38dc8fad
UD
27952008-07-08 Ulrich Drepper <drepper@redhat.com>
2796
75684bd7
UD
2797 * stdio-common/Makefile: Add rules to build and run tst-setvbuf1.
2798 * stdio-common/tst-setvbuf1.c: New file.
2799 * stdio-common/tst-setvbuf1.expect: New file.
2800
38dc8fad
UD
2801 [BZ #6719]
2802 * libio/iosetvbuf.c (_IO_setvbuf): Correctly clear buffering flags
2803 when selecting fully-buffered stream.
2804 Patch by Wang Xin <wxinee@gmail.com>.
2805
107f4ac2
RM
28062008-07-06 Samuel Thibault <samuel.thibault@ens-lyon.org>
2807
2808 * sysdeps/mach/hurd/open.c: Include <stdio.h>.
2809 (__open_2): New function.
2810 (__open64_2): New alias to __open_2.
2811 * sysdeps/mach/hurd/openat.c: Include <stdio.h>.
2812 (__openat_2): New function.
2813 (__openat64_2): New alias to __openat_2.
2814
45ec3e79
UD
28152008-07-06 Ulrich Drepper <drepper@redhat.com>
2816
2817 [BZ #6723]
2818 * time/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
2819
0a583b54
RM
28202008-07-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
2821
2822 * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Define MSG_NOSIGNAL.
2823 * hurd/hurd/fd.h (__hurd_sockfail): Add extern inline function.
2824 * sysdeps/mach/hurd/recv.c (__recv): Use __hurd_sockfail instead of
2825 __hurd_dfail.
2826 * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Likewise.
2827 * sysdeps/mach/hurd/recvmsg.c (__recvmsg): Likewise.
2828 * sysdeps/mach/hurd/send.c (__send): Likewise.
2829 * sysdeps/mach/hurd/sendto.c (__sendfrom): Likewise.
2830 * sysdeps/mach/hurd/sendmsg.c (__sendmsg): Likewise.
2831
d5a0160b
RM
28322008-03-04 Samuel Thibault <samuel.thibault@ens-lyon.org>
2833
2834 * sysdeps/mach/hurd/recv.c (__recv): Initialize NPORTS.
2835 * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Likewise.
2836 * sysdeps/mach/hurd/recvmsg.c (__recvmsg): Likewise.
2837 * hurd/fd-read.c (_hurd_fd_read): Initialize NREAD.
2838 * hurd/get-host.c (_hurd_get_host_config): Likewise.
2839 * sysdeps/mach/hurd/dl-sysdep.c (__libc_read): Likewise.
2840
80922a99
UD
28412008-06-27 Ulrich Drepper <drepper@redhat.com>
2842
2843 [BZ #6657]
2844 * time/strptime_l.c: Don't clear s.era_cnt after successful match
2845 of %EY.
2846 Patch by Petr Baudis.
2847
34ca2ff7
UD
28482008-06-26 Ulrich Drepper <drepper@redhat.com>
2849
5ee0f5e2 2850 * resolv/res_debug.c (__p_type_syms): Add ns_t_dname entry.
34ca2ff7
UD
2851 Patch by Peter Jones <pjones@redhat.com>.
2852
104426b6
UD
28532008-06-25 Ulrich Drepper <drepper@redhat.com>
2854
2855 [BZ #6654]
2856 * stdlib/canonicalize.c (__realpath): readlink can write too much
2857 into the buffer on platforms without PATH_MAX.
2858
7166d23f
UD
28592008-06-17 Carlos O'Donell <carlos@codesourcery.com>
2860
4cb8e687 2861 [BZ #6653]
7166d23f
UD
2862 * posix/tst-regex.c (main): Rename to...
2863 (do_test): ... this. Remove cmdline option processing.
2864 (TIMEOUT): Define.
2865 (TEST_FUNCTION): Define.
2866 (CMDLINE_OPTIONS): Define.
2867
974069d8
UD
28682008-06-25 Ulrich Drepper <drepper@redhat.com>
2869
2870 [BZ #5210]
2871 * configure.in: Add -Werror to -fstack-protector test to catch
2872 unsupported architectures.
2873 Patch by Gilles Esponasse <g.esp@free.fr>.
2874
cefa2dd3
UD
28752008-06-17 Joseph Myers <joseph@codesourcery.com>
2876
2877 * stdlib/tst-setcontext.c: Set back_in_main before exit if
2878 getcontext returns ENOSYS.
2879
c00d1128
UD
28802008-06-18 Ulrich Drepper <drepper@redhat.com>
2881
2882 * nscd/connections.c (main_loop_poll): Fix test for read error.
2883 (main_loop_epoll): Likewise.
2884
a0edbb48
UD
28852008-06-13 Ulrich Drepper <drepper@redhat.com>
2886
d0a1ae94
UD
2887 * sysdeps/posix/getaddrinfo.c: Move _res_hconf_init call to a
2888 better place so it is not called when nscd is used.
2889
a0edbb48
UD
2890 * nscd/connections.c: Also recognize and handle changes to the
2891 resolver configuration file.
2892
46f70b3c
UD
28932008-06-12 Ulrich Drepper <drepper@redhat.com>
2894
5bcc6c0f
UD
2895 * time/strftime.c: Pass reference to tzset_called around to handle
2896 recursive calls.
2897
2898 [BZ #6612]
2899 * time/strftime.c (__strftime_internal): Call tzset() only
2900 when printing timezone-dependent values.
2901 Based on a patch by Petr Baudis <pasky@suse.cz>.
2902
f854efd7
UD
2903 * resolv/nss_dns/dns-host.c (gaih_getanswer): Don't
2904 unconditionally use second gaih_getanswer_slice result.
2905
46f70b3c
UD
2906 * sysdeps/posix/getaddrinfo.c (gai_inet): Remove unnecessary test.
2907 (getaddrinfo): RES must always be non-NULL.
2908
9ea8bfec
UD
29092008-06-12 Jakub Jelinek <jakub@redhat.com>
2910
2911 * sysdeps/powerpc/powerpc64/fpu/s_llround.S (__llround): Avoid using
2912 cr[34] registers.
2913 * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S (__llroundf): Likewise.
2914 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S (__llround):
2915 Likewise.
2916 * sysdeps/powerpc/powerpc32/fpu/s_lround.S (__lround): Avoid using cr3
2917 register.
2918
5a337776
UD
29192008-06-12 Ulrich Drepper <drepper@redhat.com>
2920
5228ba2f
UD
2921 * nscd/nscd.h (struct database_dyn): Add inotify_descr and clear_cache
2922 fields.
2923 * nscd/connections.c (inotify_fd): New variable.
2924 (nscd_init): Try to open an inotify descriptor.
2925 If successful, watch files for databases using inotify instead of
2926 having prune threads stat the files.
2927 (nscd_run_prune): Recognize clear_cache flag being set and call
2928 prune_cache appropriately.
2929 (main_loop_poll): Add inotify descriptor to wait set and handle the
2930 reported changes.
2931 (main_loop_epoll): Likewise.
2932 * nscd/cache.c (prune_cache): Don't stat files for databases if
2933 inotify is used.
2934 * sysdeps/unix/sysv/linux/Makefile [subdir=nscd]
2935 (CFLAGS-connections.c): Add -DHAVE_INOTIFY.
2936
5a337776
UD
2937 * nscd/grpcache.c (cache_addgr): Correctly compute size of
2938 fixed-size portion of the record.
2939 * nscd/servicescache.c (cache_addserv): Likewise.
2940 * nscd/pwdcache.c (cache_addpw): Likewise.
2941 * nscd/initgrcache.c (addinitgroupsX): Likewise.
2942
9ad58cc3
UD
29432008-06-11 Ulrich Drepper <drepper@redhat.com>
2944
2945 * nscd/mem.c (gc): Initialize obstack earlier so that if we jump
2946 out we don't use uninitialized memory.
2947
2948 * nscd/hstcache.c (cache_addhst): Send correct number of bytes to
2949 the client.
2950
c1283552
UD
29512008-06-10 Ulrich Drepper <drepper@redhat.com>
2952
2953 * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): Also log and
2954 ignore T_DNAME messages.
2955 * resolv/arpa/nameser_compat.h (T_DNAME): Define.
2956
eef8a803
JJ
29572008-06-05 Jakub Jelinek <jakub@redhat.com>
2958
2959 * misc/regexp.h (compile): Use __REPB_PREFIX macro.
2960 Avoid segfault if first GETC returns eof/'\0'/'\n'.
2961
ee78670e
JJ
29622008-06-03 Jakub Jelinek <jakub@redhat.com>
2963
2964 * nscd/nscd_getserv_r.c (__nscd_getservbyport_r): Pass cp
2965 instead of portstr to nscd_getserv_r. Patch by
2966 Roman Kagan <rkagan@mail.ru>.
2967
62605cbf
UD
29682008-05-26 Jim Meyering <meyering@redhat.com>
2969
10966640 2970 Remove more useless "if" tests before "free".
62605cbf
UD
2971 * include/inline-hashtab.h (htab_delete): Likewise.
2972 * libio/freopen.c (freopen): Likewise.
2973 * libio/freopen64.c (freopen64): Likewise.
2974 * locale/programs/ld-collate.c (collate_read): Likewise.
2975 * misc/fstab.c (libc_freeres_fn): Likewise.
2976 * posix/glob.c (globfree): Likewise.
2977
f63abf58
UD
29782008-05-24 Ulrich Drepper <drepper@redhat.com>
2979
2980 * string/Makefile (strop-tests): Add memmem.
2981 * string/test-memmem.c: New file.
2982 * string/test-string.h (BUF1PAGES): Define to 1 if undefined.
2983 (test_init): Size buf1 according to BUF1PAGES.
2984
ad8a5511
JJ
29852008-05-24 Jakub Jelinek <jakub@redhat.com>
2986
2987 * libio/stdio.h (vscanf): Fix -std=c99 redirect.
2988 * stdio-common/Makefile (tests): Add scanf16 and scanf17.
2989 (CFLAGS-scanf17.c): New.
2990 * stdio-common/scanf14.c (main): Add fscanf and scanf tests.
2991 * stdio-common/scanf15.c (main): Likewise.
f63abf58
UD
2992 * stdio-common/scanf16.c: New file.
2993 * stdio-common/scanf17.c: New file.
ad8a5511 2994
e2003883
UD
29952008-05-24 Ulrich Drepper <drepper@redhat.com>
2996
2997 * resolv/res_send.c (send_dg): If we already have one of two
b5ba2c79 2998 answers and the server reports SERVFAIL, NOTIMP, or REFUSED, then
e2003883
UD
2999 use the one answer insted of failing.
3000
acbb9873
UD
30012008-02-20 Ryan S. Arnold <rsa@us.ibm.com>
3002
3003 * math/libm-test.inc (exp_test): Exclude expl(1000.0L) from
3004 being executed on PowerPC as the expected result exceeds IBM
3005 long double 128 __LDBL_MAX__.
3006
e85f1d6a
RM
30072008-05-21 Roland McGrath <roland@redhat.com>
3008
3009 * shlib-versions (sparc.*-.*-.*, sparc64.*-.*-.*): Add ABI lines.
3010
3011 * Makefile (check-data): Use $(abi-name) before other guesses.
3012 Look in $(add-ons) dirs before scripts/data/.
3013 * elf/Makefile (check-data): Likewise.
3014
3015 * scripts/soversions.awk: Grok ABI line.
3016 * Makeconfig ($(common-objpfx)soversions.mk): Likewise.
3017 Emit definition for abi-name variable.
3018
d8e763c6
UD
30192008-05-21 Ulrich Drepper <drepper@redhat.com>
3020
e92799fc 3021 * string/endian.h: Define new fixed-size hto* and *toh macros only
e85f1d6a 3022 if [__USE_BSD].
e92799fc 3023
d8e763c6
UD
3024 * iconvdata/Depend: Add localedata.
3025
009ef333
RM
30262008-05-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
3027
3028 * bits/termios.h (ONLCR): Define under [__USE_XOPEN] too.
3029
86746abb
JJ
30302008-05-08 David S. Miller <davem@davemloft.net>
3031
3032 * sysdeps/unix/sysv/linux/sparc/sparc32/setcontext.S: Use
3033 HIDDEN_JUMPTARGET.
3034 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
3035 (__SYSCALL_CLOBBERS): Remove %g* registers.
3036 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
3037 (__SYSCALL_CLOBBERS): Likewise.
3038 * scripts/data/localplt-sparc-linux-gnu.data: New file.
f63abf58 3039 * scripts/data/localplt-sparc64-linux-gnu.data: New file.
86746abb 3040
5e6f34c2
JJ
30412008-05-21 Jakub Jelinek <jakub@redhat.com>
3042
3043 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
3044 (CALL_ERRNO_LOCATION): Define.
3045 (__SYSCALL_STRING, __CLONE_SYSCALL_STRING): Use it.
3046 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
3047 (CALL_ERRNO_LOCATION): Define.
3048 (__SYSCALL_STRING, __CLONE_SYSCALL_STRING): Use it.
3049 * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S (__brk): Use
3050 HIDDEN_JUMPTARGET for __errno_location call in libc.so.
3051
4beb4532
UD
30522008-05-20 Ulrich Drepper <drepper@redhat.com>
3053
3054 * include/inline-hashtab.h (higher_prime_number): Fix type of mid
3055 variable.
3056
ed8f38ba
JJ
30572008-05-20 Jakub Jelinek <jakub@redhat.com>
3058
3059 * sysdeps/unix/sysv/linux/sparc/sparc32/sigcontextinfo.h
3060 (FIRST_FRAME_POINTER): Define.
3061
30622008-05-09 David S. Miller <davem@davemloft.net>
3063
3064 * sysdeps/sparc/sparc64/backtrace.c: New file.
3065
c1b8190a
JJ
30662008-05-14 David S. Miller <davem@davemloft.net>
3067
3068 * sysdeps/sparc/machine-gmon.h: New file.
3069 * sysdeps/sparc/sparc-mcount.S: Likewise.
3070 * sysdeps/sparc/Makefile: Add sparc-mcount target to
3071 sysdep_routines in gmon directory.
3072
84aacd93
JJ
30732008-05-19 Jakub Jelinek <jakub@redhat.com>
3074
3075 * elf/soinit.c (__EH_FRAME_BEGIN__): Remove.
3076
5908f779
UD
30772008-05-19 Ulrich Drepper <drepper@redhat.com>
3078
3079 * resolv/res_query.c (__libc_res_nquery): In case one of two
3080 answer was too short don't try to read that answer's header.
3081
3082 * resolv/res_send.c (send_dg): In case of timeout and there are
3083 two queries and one has been answered, return value indicating
3084 success.
3085
528741cb
UD
30862008-05-18 Ulrich Drepper <drepper@redhat.com>
3087
3088 * nscd/cache.c (cache_add): Take additional parameter specifying
3089 whether this is in response of a cache refill. Check alignment
3090 of package data. Revamp waking of pruning thread.
3091 (prune_cache): Small optimization.
3092 * nscd/nscd.h: Adjust cache_add prototypes.
3093 * nscd/aicache.c: Adjust cache_add calls.
3094 * nscd/grpcache.c: Likewise.
3095 * nscd/hstcache.c: Likewise.
3096 * nscd/initgrcache.c: Likewise.
3097 * nscd/pwdcache.c: Likewise.
3098 * nscd/servicescache.c: Likewise.
3099 * nscd/connections.c (restart): Really disable cache use before
3100 exec attempt. If it fails, reenable cache.
3101 (nscd_run_prune): Initialize wakeup_time. After wakeup, set wakeup
3102 time to max to be able to notice concurrent cache additions. Unlock
3103 prune_lock while performing gc. Afterwards compute wakeup time with
3104 current wakeup_time value in mind.
3105
343996c4
UD
31062008-05-17 Ulrich Drepper <drepper@redhat.com>
3107
5811d72b
UD
3108 * nscd/mem.c (gc): Avoid stack overflow when allocating move list.
3109
fa526148
UD
3110 * nscd/mem.c (gc): Correctly determine highest used array element
3111 in mark.
3112
77d40f10
UD
3113 * nscd/mem.c (markrange): Add assert to check entries are all
3114 aligned. Small cleanup in bitmap use.
3115
8884028c
UD
3116 * nscd/nscd.h (mem_in_flight): Replace blockaddr field with
3117 blockoff of type nscd_ssize_t.
3118 * nscd/mem.c (gc): Simplify markrange call for on-flight blocks.
3119 (mempoll_alloc): Record block offset and not address.
3120
b2159575
UD
3121 * nscd/mem.c (gc): Fix test for stack overuse.
3122
5c9629d2
UD
3123 * nscd/aicache.c (addhstaiX): Fix a few small problems, cleanups,
3124 more asserts.
3125
66d90496
UD
3126 * sysdeps/posix/getaddrinfo.c (gaih_inet): If nscd reports no
3127 entry is available, believe it.
3128
343996c4
UD
3129 * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): If there are
3130 no answers return NSS_STATUS_NOTFOUND.
3131 (gaih_getanswer): Don't call gaih_getanswer_slice if the answer
3132 buffer does not have any content.
3133
91c8a74b
UD
31342008-05-16 Ulrich Drepper <drepper@redhat.com>
3135
74e13385
UD
3136 * string/strcasestr.c (CMP_FUNC): Use __strncasecmp, not strncasecmp.
3137
91c8a74b
UD
3138 * sysdeps/posix/getaddrinfo.c (gaih_inet): After gethostbyname4_r
3139 lookup, don't assign canon unconditionally.
3140
0caca71a
UD
31412008-05-14 Ulrich Drepper <drepper@redhat.com>
3142
3143 * string/Makefile (distribute): Add str-two-way.h.
3144
31452008-03-29 Eric Blake <ebb9@byu.net>
3146
3147 Rewrite string searches to O(n) rather than O(n^2).
3148 * string/str-two-way.h: New file. For linear fixed-allocation
3149 string searching.
3150 * string/memmem.c: New implementation.
3151 * string/strstr.c: New implementation.
3152 * string/strcasestr.c: New implementation.
3153
b194db79
UD
31542008-04-11 Paolo Bonzini <bonzini@gnu.org>
3155
3156 * posix/regcomp.c (optimize_utf8): Add a note on why we test
3157 opr.ctx_type.
3158 (calc_first): Initialize constraint field.
3159 (duplicate_node_closure): Use it instead of special casing ANCHORS.
3160 Use search_duplicated_node to avoid loops. Fix grammar.
3161 (duplicate_node): Merge constraint field for all node types.
3162 (calc_eclosure_iter): Look at constraint field for all node types.
3163 * posix/regex_internal.c (create_cd_newstate): Don't look at
3164 create_cd_newstate.
3165
c8d49f05
UD
31662008-05-14 Ulrich Drepper <drepper@redhat.com>
3167
215a8745
UD
3168 [BZ #6428]
3169 * configure.in: Don't use $CFLAGS when assembling, use $ASFLAGS.
3170
2f9a1be8
UD
3171 [BZ #6442]
3172 * string/endian.h: Add macros for fixed-size endian conversion.
3173 * bits/byteswap.h: Allow inclusion from <endian.h>.
3174 * sysdeps/i386/bits/byteswap.h: Likewise.
3175 * sysdeps/ia64/bits/byteswap.h: Likewise.
3176 * sysdeps/s390/bits/byteswap.h: Likewise.
3177 * sysdeps/x86_64/bits/byteswap.h: Likewise.
3178 * string/Makefile (tests): Add tst-endian.
3179 * string/tst-endian.c: New file.
3180
c8d49f05
UD
3181 * iconvdata/run-iconv-test.sh: Use = instead of == in test.
3182 Patch by Reuben Thomas.
3183
a754f018
UD
31842008-05-14 Joseph Myers <joseph@codesourcery.com>
3185
3186 * iconvdata/Makefile (bug-iconv6-ENV, tst-iconv7-ENV): Define.
3187
372bfcac
UD
31882008-05-14 Ulrich Drepper <drepper@redhat.com>
3189
a754f018
UD
3190 * iconvdata/bug-iconv6.c (do_test): Use de_DE.UTF-8 locale.
3191
5deca9bb
UD
3192 [BZ #6461]
3193 * iconv/gconv_simple.c (BODY for __gconv_transform_ascii_internal):
3194 Add missing braces.
3195 (BODY for __gconv_transform_internal_ascii): Likewise.
3196
af77c9b7 3197 [BZ #6472]
5fab5544
UD
3198 * sysdeps/posix/getaddrinfo.c (get_scope): Loopback addresses have
3199 to be treated like link-local addresses.
5846c4e2
UD
3200 (match_prefix): Don't treat IPv4 loopback address special when
3201 converting to v4 mapped addressed.
5fab5544 3202
0caca71a 3203 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Call _res_hconf_init
1f039824 3204 if necessary.
b194db79
UD
3205 * posix/tst-rfc3484.c: Add dummy definition of _res_hconf_init.
3206 * posix/tst-rfc3484-2.c: Likewise.
3207 * posix/tst-rfc3484-3.c: Likewise.
1f039824 3208
18a74157
UD
3209 * sysdeps/posix/getaddrinfo.c: Implement handling of DCCP, UDPlite,
3210 and SCTP.
372bfcac
UD
3211
3212 * nss/getent.c (ahosts_keys_int): Handle all known socket types.
3213
3214 * inet/netinet/in.h (IPPIPPROTO_DCCP, IPPROTO_UDPLITE): Define.
3215
3216 * sysdeps/unix/sysv/linux/bits/socket.h (SOCK_DCCP): Define.
3217
f05ac8f5
UD
32182008-05-13 Ulrich Drepper <drepper@redhat.com>
3219
3220 * po/lt.po: New file. From Lituanian translation team.
3221
c9ff0187
UD
32222008-01-30 Alexandre Oliva <aoliva@redhat.com>
3223
3224 Introduce TLS descriptors for i386 and x86_64.
3225 * include/inline-hashtab.h: New file, copied from 2005's
3226 libiberty, with fix for memory leak imported afterwards by
3227 Glauber de Oliveira Costa.
3228 * elf/tlsdeschtab.h: New file.
3229 * elf/dl-reloc.c (_dl_try_allocate_static_tls): Extract from...
3230 (_dl_allocate_static_tls): ... here. Rearrange failure path.
3231 (CHECK_STATIC_TLS): Move to...
3232 * elf/dynamic-link.h: ... this file.
3233 (TRY_STATIC_TLS): New macro.
3234 * elf/dl-conflict.c (CHECK_STATIC_TLS, TRY_STATIC_TLS): Override.
3235 * elf/elf.h (R_386_TLS_GOTDESC, R_386_TLS_DESC_CALL,
3236 R_386_TLS_DESC): Define.
3237 (R_X86_64_PC64, R_X86_GOTOFF64, R_X86_64_GOTPC32): Merge from
3238 binutils.
3239 (R_X86_64_GOTPC32_TLSDESC, R_X86_64_TLSDESC_CALL,
3240 R_X86_64_TLSDESC): Define.
3241 (R_386_NUM, R_X86_64_NUM): Adjust.
3242 * sysdeps/i386/Makefile (sysdep-dl-routines, sysdep_routines,
f05ac8f5 3243 sysdep-rtld-routines): Add tlsdesc and dl-tlsdesc for elf subdir.
c9ff0187
UD
3244 (gen-as-const-headers): Add tlsdesc.sym to csu subdir.
3245 * sysdeps/i386/dl-lookupcfg.h: New file. Introduce _dl_unmap to
3246 release tlsdesc_table.
3247 * sysdeps/i386/dl-machine.h: Include dl-tlsdesc.h.
3248 (elf_machine_type_class): Mark R_386_TLS_DESC as PLT class.
3249 (elf_machine_rel): Handle R_386_TLS_DESC.
3250 (elf_machine_rela): Likewise.
3251 (elf_machine_lazy_rel): Likewise.
3252 (elf_machine_lazy_rela): Likewise.
3253 * sysdeps/i386/dl-tls.h (struct dl_tls_index): Name it.
3254 * sysdeps/i386/dl-tlsdesc.S: New file.
3255 * sysdeps/i386/dl-tlsdesc.h: New file.
3256 * sysdeps/i386/tlsdesc.c: New file.
3257 * sysdeps/i386/tlsdesc.sym: New file.
3258 * sysdeps/i386/bits/linkmap.h (struct link_map_machine): Add
3259 tlsdesc_table.
3260 * sysdeps/x86_64/Makefile (sysdep-dl-routines, sysdep_routines,
f05ac8f5 3261 sysdep-rtld-routines): Add tlsdesc and dl-tlsdesc for elf subdir.
c9ff0187
UD
3262 (gen-as-const-headers): Add tlsdesc.sym to csu subdir.
3263 * sysdeps/x86_64/dl-lookupcfg.h: New file. Introduce _dl_unmap to
3264 release tlsdesc_table.
3265 * sysdeps/x86_64/dl-machine.h: Include dl-tlsdesc.h.
3266 (elf_machine_runtime_setup): Set up lazy TLSDESC GOT entry.
3267 (elf_machine_type_class): Mark R_X86_64_TLSDESC as PLT class.
3268 (elf_machine_rel): Handle R_X86_64_TLSDESC.
3269 (elf_machine_rela): Likewise.
3270 (elf_machine_lazy_rel): Likewise.
3271 * sysdeps/x86_64/dl-tls.h (struct dl_tls_index): Name it.
3272 (__tls_get_addr): Do not declare for non-shared compiles.
3273 * sysdeps/x86_64/dl-tlsdesc.S: New file.
3274 * sysdeps/x86_64/dl-tlsdesc.h: New file.
3275 * sysdeps/x86_64/tlsdesc.c: New file.
3276 * sysdeps/x86_64/tlsdesc.sym: New file.
3277 * sysdeps/x86_64/bits/linkmap.h (struct link_map_machine): Add
3278 tlsdesc_table for both 32- and 64-bit structs.
3279
a3636e8b
UD
32802008-05-11 Ulrich Drepper <drepper@redhat.com>
3281
3282 * elf/dl-tls.c (__tls_get_addr): Optimize by moving slow path in
3283 its own function. This reduces the frame setup costs and more.
3284
a7eb802f
UD
32852008-02-11 Joseph Myers <joseph@codesourcery.com>
3286
3287 [BZ #3406]
3288 * sysdeps/ieee754/flt-32/w_expf.c (o_threshold): Correct value.
3289 * math/libm-test.inc (exp_test): Test 88.72269439697265625.
3290
3490f01d
UD
32912008-05-11 Ulrich Drepper <drepper@redhat.com>
3292
3d7eeebe
UD
3293 * io/openat.c (__openat_2): Also pass fd to __openat.
3294 * io/openat64.c (__openat64_2): Also pass fd to __openat64.
3295 Patch by Kristian Van Der Vliet <vanders@liqwyd.com>.
3296
3490f01d
UD
3297 * string/tester.c (test_memcmp): Add a few more tests.
3298 Patch by Mats Erik Andersson <ynglingatal@comhem.se>.
3299
7e71e55f
UD
33002008-05-10 Ulrich Drepper <drepper@redhat.com>
3301
3302 * nscd/cache.c (cache_add): Before returning with failure and this
3303 is the first use of the record, mark it as unusable.
3304 * nscd/aicache.c: Don't touch the dataset after cache_add returns
3305 reporting a failure.
3306 * nscd/grpcache.c: Likewise
3307 * nscd/hstcache.c: Likewise.
3308 * nscd/initgrcache.c: Likewise.
3309 * nscd/pwdcache.c: Likewise.
343996c4 3310 * nscd/servicescache.c: Likewise.
7e71e55f 3311
7396d0a9
RM
33122008-05-10 Roland McGrath <roland@redhat.com>
3313
3314 [BZ #6505]
3315 * sysdeps/unix/sysv/linux/sys/user.h: Replace with #error stub.
3316
c5ee217f
UD
33172008-05-08 David S. Miller <davem@davemloft.net>
3318
b29899ae
UD
3319 * misc/truncate64.c (truncate64): Use __truncate not truncate.
3320
c5ee217f
UD
3321 * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee751_j0l): Use __finitel.
3322 (__ieee754_y0l): Likewise.
3323 * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Likewise.
3324 (__ieee754_y1l): Likewise.
3325 * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Use __ldexpl.
3326 * sysdeps/ieee754/ldbl-128/s_log1pl.c: Kill bogus prototypes for
3327 frexpl and ldexpl. math_private.h provides them and the latter
3328 is not even used.
3329 (__log1pl): Use __frexpl.
3330
1eb946b9
UD
33312008-05-10 Ulrich Drepper <drepper@redhat.com>
3332
3333 * include/resolv.h: Adjust __libc_res_nquery and __libc_res_nsend
3334 prototypes.
3335 * include/arpa/nameser_compat.h: Define T_UNSPEC.
3336 * nis/Versions (libnss_nis): Export _nss_nis_gethostbyname4_r.
3337 (libnss_nisplus): Export _nss_nisplus_gethostbyname4_r.
3338 * nis/nss_nis/nis-hosts.c (LINE_PARSER): Change to also handle
3339 af==AF_UNSPEC.
3340 (_nss_nis_gethostbyname4_r): New function.
3341 * nis/nss_nisplus/nisplus-hosts.c (_nss_nisplus_parse_hostent):
3342 Change to also handle af==AF_UNSPEC.
3343 (get_tablename): New function. Use it to avoid duplication.
3344 (_nss_nisplus_gethostbyname4_r): New function.
3345 * nscd/aicache.c (addhstaiX): Use gethostbyname4_r function is
3346 available.
3347 * nss/Versions (libnss_files): Export _nss_files_gethostbyname4_r.
3348 * nss/nss.h: Define struct gaih_addrtuple.
3349 * nss/nss_files/files-hosts.c (LINE_PARSER): Change to also handle
3350 af==AF_UNSPEC.
3351 (_nss_files_gethostbyname4_r): New function.
3352 * resolv/Versions (libnss_dns): Export _nss_dns_gethostbyname4_r.
3353 * resolv/gethnmaddr.c: Adjust __libc_res_nsearch and __libc_res_nquery
3354 calls.
3355 * resolv/res_query.c (__libc_res_nquery): Take two additional
3356 parameters for second answer buffer. Handle type=T_UNSPEC to mean
3357 look up IPv4 and IPv6.
3358 Change all callers.
3359 * resolv/res_send.c (__libc_res_nsend): Take five aditional parameters
3360 for an additional query and answer buffer. Pass to send_vc and
3361 send_dg.
3362 (send_vc): Send possibly two requests and receive two answers.
3363 (send_dg): Likewise.
3364 * resolv/nss_dns/dns-host.c: Adjust calls to __libc_res_nsearch and
3365 __libc_res_nquery.
3366 (_nss_dns_gethostbyname4_r): New function.
3367 (gaih_getanswer_slice): Likewise.
3368 (gaih_getanswer): Likewise.
3369 * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Adjust
3370 __libc_res_nquery call.
3371 * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r): Likewise.
3372 (_nss_dns_getnetbyname_r): Adjust __libc_res_nsearch call.
3373 * sysdeps/posix/getaddrinfo.c: Use gethostbyname4_r function is
3374 available.
3375
b7fb703a
JJ
33762008-05-05 David S. Miller <davem@davemloft.net>
3377
3378 * sysdeps/sparc/sparc32/Makefile: Use -mcpu=v7 for initfini.s build.
3379 * sysdeps/sparc/sparc64/Makefile: Use -mcpu=v9 for initfini.s build.
3380
2256e43d
RM
33812007-09-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
3382
3383 Fix termios bit macros.
3384 Move *DLY definitions where they belong, in termios.h.
3385 Add *[0-3] definitions.
3386 Fixes confusion between VT and FF.
8bb52dbf
RM
3387 * sysdeps/mach/hurd/bits/ioctls.h (NL0, NL1, TAB0, TAB1, TAB2, CR0,
3388 CR1, CR2, CR3, FF0, FF1, BS0, BS1): Undefine these at start if they
3389 are already defined to avoid collision with termios.h.
2256e43d
RM
3390 (NLDLY, TABDLY, TAB3, CRDLY, VTDLY, BSDLY): Remove macros.
3391 * bits/termios.h [__USE_MISC || __USE_XOPEN] (NL0, NL1, TAB0,
3392 TAB1, TAB2, CR0, CR1, CR2, CR3, FF0, FF1, BS0, BS1): Likewise.
3393 [__USE_BSD || __USE_XOPEN] (OCRNL, ONOCR, ONLRET): New macros.
3394 [__USE_MISC || __USE_XOPEN] (NLDLY, NL0, NL1, TABDLY, TAB0, TAB1, TAB2,
3395 TAB3, CRDLY, CR0, CR1, CR2, CR3, FFDLY, FF0, FF1, BSDLY, BS0, BS1,
3396 VTDLY, VT0, VT1): New macros.
3397 [__USE_GNU] (OLCUC): Change value of macro.
3398 [__USE_XOPEN] (OFILL): New macro.
3399 [__USE_BSD] (CRTSCTS): Change value.
3400 (CRTS_IFLOW, CCTS_OFLOW): Change into compatibility macros.
3401 [__USE_BSD] (CDTRCTS, CHWFLOW): New macros.
3402 (B7200, B14400, B28800, B76800): New macros.
3403
4ce349e5
JJ
34042008-05-01 David S. Miller <davem@davemloft.net>
3405
a86a7a39
JJ
3406 * sysdeps/unix/sysv/linux/sparc/sparc32/ucontext_i.sym: New file.
3407 * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile [$(subdir) = stdlib]:
3408 (gen-as-const-headers): Add it.
3409 * sysdeps/unix/sysv/linux/sparc/sparc32/getcontext.S: New file.
3410 * sysdeps/unix/sysv/linux/sparc/sparc32/makecontext.c: Likewise.
3411 * sysdeps/unix/sysv/linux/sparc/sparc32/setcontext.S: Likewise.
3412 * sysdeps/unix/sysv/linux/sparc/sparc32/swapcontext.S: Likewise.
2256e43d 3413
4ce349e5
JJ
3414 * sysdeps/unix/sysv/linux/sparc/sparc32/syscall.S: Add support for
3415 six system call parameters.
3416 * sysdeps/unix/sysv/linux/sparc/sparc64/syscall.S: Likewise.
3417
89a8963d
UD
34182008-04-30 Ulrich Drepper <drepper@redhat.com>
3419
3420 * sysdeps/unix/sysv/linux/bits/resource.h: Define RUSAGE_THREAD and
3421 RUSAGE_LWP.
3422 * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
3423 * sysdeps/unix/sysv/linux/alpha/bits/resource.h: Likewise.
3424
b5ec5fce
JJ
34252008-04-30 Jakub Jelinek <jakub@redhat.com>
3426
3427 * stdlib/tst-setcontext.c: Include unistd.h.
3428
d4e92d9e
JJ
34292008-04-25 David S. Miller <davem@davemloft.net>
3430
3431 * sysdeps/unix/sysv/linux/sparc/sparc64/semctl.c (semctl):
3432 Pass "union semun" properly in to sys_ipc, it must be passed
3433 by value, not by reference.
3434
7eb5e6c9
UD
34352008-04-22 Jakub Jelinek <jakub@redhat.com>
3436
3437 * nscd/Makefile (nscd-cflags): Set back to -fpie.
3438 * nscd/nscd.h (mem_in_flight): Add attribute_tls_model_ie.
3439 * nscd/connections.c (mem_in_flight): Likewise.
3440
3441 * nscd/nscd.h (dbs): Make hidden.
3442
3443 * sysdeps/unix/sysv/linux/times.c (__times): Fix check for EFAULT.
3444 Avoid returning -1, return 0 instead.
3445
0073dd2d
UD
34462008-04-19 Ulrich Drepper <drepper@redhat.com>
3447
3448 * resolv/res_mkquery.c (__res_nopt): Use NS_PUT16 instead of ns_put16.
3449
c52137d3
UD
34502008-04-15 Ulrich Drepper <drepper@redhat.com>
3451
3452 [BZ #5209]
3453 * sysdeps/unix/sysv/linux/times.c: New file.
3454
3455 [BZ #5381]
3456 * nscd/nscd.h: Define enum in_flight, mem_in_flight, and
3457 mem_in_flight_list variables. Add new parameter to mempool_alloc
3458 prototype.
3459 * nscd/mem.c (mempool_alloc): Take additional parameter. Initialize
3460 appropriate mem_in_flight element.
3461 (gc): Take allocations which have not yet been committed to the
3462 database into account.
3463 * nscd/cache.c (cache_add): Add new parameter to mempool_alloc call.
3464 Reset mem_in_flight before returning.
3465 * nscd/connections.c (nscd_run_worker): Initialize mem_in_flight and
3466 cue it up in mem_in_flight_list.
3467 * nscd/aicache.c: Adjust mempool_alloc call.
3468 * nscd/grpcache.c: Likewise.
3469 * nscd/hstcache.c: Likewise.
3470 * nscd/initgrcache.c: Likewise.
3471 * nscd/pwdcache.c: Likewise.
3472 * nscd/servicescache.c: Likewise.
3473 * nscd/Makefile (nscd-flags): Until ld is fixed, use -fpic instead
3474 of -fpie.
3475
3476 * nscd/connections.c (handle_request): Provide better error message
3477 in case SELinux forbids the service.
3478
3479 * version.h (VERSION): Bump to 2.8.90.
3480
39546e34
JJ
34812008-04-17 Jakub Jelinek <jakub@redhat.com>
3482
3483 * sysdeps/unix/sysv/linux/dl-osinfo.h: Include fcntl.h.
3484
cf3a8c7f
UD
34852008-04-11 Ulrich Drepper <drepper@redhat.com>
3486
9e113ecd
UD
3487 * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h (__signbitl):
3488 Also use for 32-bit.
3b6d574e
UD
3489 * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c (__nearbyintl): Use
3490 __nextafter instead of nextafter to avoid local PLT.
c3a0ead4
UD
3491 * sysdeps/powerpc/fpu/e_sqrt.c: Avoid call to fetestexcept.
3492 * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
3493
3781ec29
UD
3494 * scripts/data/localplt-powerpc64-linux-gnu.data: New file.
3495
246ec411
UD
3496 * sysdeps/powerpc/fpu/fenv_libc.h: Add libm_hidden_proto for
3497 __fe_nomask_env.
3cc56f92
UD
3498 * sysdeps/powerpc/fpu/fe_nomask.c: Add libm_hidden_def. Include
3499 <fenv_libc.h> instead of <fenv.h>.
246ec411
UD
3500 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c: Likewise.
3501 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c: Likewise.
3502
3503 * sysdeps/powerpc/bits/fenv.h: Make safe for C++.
3504
3505 * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h: New file.
3506 * sysdeps/powerpc/fpu/fegetexcept.c (__fegetexcept): Rename
3507 function from fegetexcept and make old name weak alias.
3508 * include/fenv.h: Declare __fegetexcept.
3509 * sysdeps/powerpc/fpu/fedisblxcpt.c: Use __fegetexcept instead of
3510 fegetexcept.
3511 * sysdeps/powerpc/fpu/feenablxcpt.c: Likewise.
3512 * sysdeps/powerpc/fpu/fraiseexcpt.c (__feraiseexcept): Avoid call
3513 to fetestexcept.
3514 * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Use __frexpl
3515 instead of frexpl to avoid local PLT.
3516 * math/s_significandl.c (__significandl): Use __ilogbl instead of
3517 ilogbl to avoid local PLT.
3518 * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Use __ldexpl
3519 instead of ldexpl to avoid local PLT.
3520 * sysdeps/ieee754/ldbl-128ibm/e_expl.c (__ieee754_expl): Use
3521 __roundl not roundl to avoid local PLT.
3522 * sysdeps/ieee754/ldbl-128/e_j0l.c: Use function names which avoid
3523 local PLTs. Use __sincosl instead of separate sinl and cosl
3524 calls.
3525 * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
3526
2dc4a2fd
UD
3527 * sysdeps/unix/sysv/linux/configure.in: Bump minimal kernel
3528 version for ppc64 to 2.4.21 since without it makecontext will fail.
3529
fe3350ee
UD
3530 * elf/tls-macros.h [__powerpc64__] (__TLS_GET_ADDR): Define according
3531 to the ABI in use.
3532 [__powerpc64__] (TLS_LD): Use __TLS_GET_ADDR instead of
3533 .__tls_get_addr.
3534 [__powerpc64__] (TLS_GD): Likewise.
cf3a8c7f 3535
c1e6b459
UD
35362007-11-20 Ryan S. Arnold <rsa@us.ibm.com>
3537
7763d4f1 3538 [BZ #4997]
c1e6b459
UD
3539 * sysdeps/powerpc/powerpc32/fpu/s_lround.S (__lround): Fixed erroneous
3540 result when x is +/-nextafter(+/-0.5,-/+1) i.e. all 1's in the
3541 mantissa.
3542 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S (__llround):
3543 Likewise. Also account for when x is an odd number between 2^52
3544 and 2^53-1.
3545 * sysdeps/powerpc/powerpc64/fpu/s_llround.S (__llround): Likewise.
3546 * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S (__llroundf): Likewise.
3547 * math/libm-test.inc (lround_test, llround_test): Added test cases to
3548 detect aforementioned erroneous conditions.
3549
22dca1ea
UD
35502008-04-11 Jakub Jelinek <jakub@redhat.com>
3551
3552 * configure.in: Check for -fno-section-anchors in addition to
3553 -fno-toplevel-reorder.
3554
5d59f4a5
UD
35552008-04-11 Ulrich Drepper <drepper@redhat.com>
3556
3557 * include/features.h (__GLIBC_MINOR__): Bump to 8.
3558
3559 * sysdeps/powerpc/powerpc32/fpu/s_lroundf.S: Remove duplicate comment.
3560 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llroundf.S: Likewise.
3561 * sysdeps/powerpc/powerpc32/power6/fpu/s_llroundf.S: Likewise.
3562 * sysdeps/powerpc/powerpc64/fpu/s_lrint.S: Likewise.
3563 * sysdeps/powerpc/powerpc64/fpu/s_lround.S: Likewise.
3564 * sysdeps/powerpc/powerpc64/fpu/s_lroundf.S: Likewise.
3565
91e32540
UD
35662008-04-11 Jakub Jelinek <jakub@redhat.com>
3567
3568 [BZ #5443]
3569 * time/era.c: Transform __libc_setlocale_lock into rwlock.
3570 * time/alt_digit.c: Likewise.
3571 * wcsmbs/wcsmbsload.c: Likewise.
3572
fd490ac8
UD
35732008-04-10 Ulrich Drepper <drepper@redhat.com>
3574
1db5b6f4
UD
3575 * version.h (VERSION): Bump to 2.8.
3576
fd490ac8
UD
3577 * timzeone/asia: Update from tzdata2008b.
3578 * timezone/backward: Likewise.
3579 * timezone/europe: Likewise.
3580 * timezone/northamerica: Likewise.
3581 * timezone/southamerica: Likewise.
3582 * timezone/iso3166.tab: Likewise.
3583 * timezone/leapseconds: Likewise.
3584 * timezone/zone.tab: Likewise.
3585 * timezone/private.h: Update from tzcode2008a.
3586 * timezone/zdump.c: Likewise.
3587 * timezone/zic.c: Likewise.
3588
153cf972
UD
35892008-01-24 Steven Munroe <sjmunroe@us.ibm.com>
3590
3591 [BZ #5741]
3592 * sysdeps/powerpc/powerpc64/dl-machine.h (PPC_DCBT, PPC_DCBF):
3593 Define additonal Data Cache Block instruction macros.
3594 (elf_machine_fixup_plt): Add dcbt for opd and plt entries.
3595 Replace dcbst with dcbf and sync with sync/isync.
3596
d2207f32
UD
35972008-02-21 Alan Modra <amodra@bigpond.net.au>
3598
3599 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_type_class):
3600 Always set ELF_RTYPE_CLASS_PLT.
3601 (elf_machine_lookup_noexec_p, elf_machine_lookup_noplt_p): Delete.
3602
13d83320
UD
36032008-04-03 Steven Munroe <sjmunroe@us.ibm.com>
3604
3605 * sysdeps/powerpc/powerpc32/power4/hp-timing.c: New file.
3606 * sysdeps/powerpc/powerpc32/power4/hp-timing.h: New file.
3607 * sysdeps/powerpc/powerpc64/hp-timing.h [_ARCH_PWR4] (HP_TIMING_NOW):
3608 For ISA 2.01 and later replace mftb with mfspr 268.
3609
5f7aead5
UD
36102008-02-19 Steven Munroe <sjmunroe@us.ibm.com>
3611
3612 [BZ #5768]
3613 * sysdeps/powerpc/fpu/Makefile (libm-tests): Add test-powerpc-snan.
3614 * sysdeps/powerpc/fpu/test-powerpc-snan.c: New file.
3615
36162008-02-18 Steven Munroe <sjmunroe@us.ibm.com>
3617
3618 [BZ #5768]
3619 * sysdeps/powerpc/powerpc32/fpu/s_isnan.S: New file.
3620 * sysdeps/powerpc/powerpc32/fpu/s_isnan.c: Removed.
3621 * sysdeps/powerpc/powerpc64/fpu/s_isnan.S: New file.
3622 * sysdeps/powerpc/powerpc64/fpu/s_isnan.c: Removed.
3623
117df5d9
JJ
36242008-04-10 Jakub Jelinek <jakub@redhat.com>
3625
3626 * stdlib/tst-makecontext.c (othervar): New variable.
3627 (cf): Test sign extending the argument to long.
3628
3b32d8a2
UD
36292008-03-03 Steven Munroe <sjmunroe@us.ibm.com>
3630
3631 * sysdeps/powerpc/powerpc32/power5/fpu/s_isnan.S: New file.
3632 * sysdeps/powerpc/powerpc32/power5/fpu/s_isnanf.S: New file.
3633 * sysdeps/powerpc/powerpc32/power6/fpu/s_isnan.S: New file.
3634 * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S: New file.
3635 * sysdeps/powerpc/powerpc64/power5/fpu/s_isnan.S: New file.
3636 * sysdeps/powerpc/powerpc64/power6/fpu/s_isnan.S: New file.
3637 * sysdeps/powerpc/powerpc64/power6x/fpu/s_isnan.S: New file.
3638
9fb11d4c
UD
36392008-02-22 Alan Modra <amodra@bigpond.net.au>
3640
3641 * elf/Makefile (tests): Substitute tests-vis-yes here.
3642 (tests-vis-yes): Delete.
3643 (modules-name, modules-vis-yes): Similarly.
3644
facd1d8e
UD
36452008-02-12 Pete Eberlein <eberlein@us.ibm.com>
3646
3647 [BZ #4407]
3648 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
3649 Preserve sign in signgamp when x is zero.
3650
aece054b
UD
36512007-10-26 Steven Munroe <sjmunroe@us.ibm.com>
3652
3653 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: New File.
3654 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.c: Removed.
3655 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: New File.
3656 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.c: Removed.
3657 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: New File.
3658 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: New File.
3659
6c30d38f
UD
36602008-04-09 Ulrich Drepper <drepper@redhat.com>
3661
21208604 3662 [BZ #4314]
13d83320
UD
3663 * sysdeps/i386/i686/memcpy.S: Optimize copying of equally aligned
3664 buffers.
21208604 3665
2f611ada 3666 [BZ #5209]
d1235fdf
UD
3667 * sysdeps/unix/sysv/syscalls.list: The times syscall doesn't have
3668 a reserved error value.
2f611ada 3669
6c30d38f
UD
3670 * stdlib/tst-makecontext.c: Change parameter to cf to negative
3671 value to check for correct sign extension.
3672
3673 [BZ #5436]
3674 * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
3675 Copy 64-bit parameter values even though this is not required in
3676 the standard.
3677
3678 * sysdeps/unix/sysv/linux/x86_64/vfork.S (__vfork): Record return
3679 PC save.
3680
de1bbf68
UD
36812008-02-14 Daniel Jacobowitz <dan@codesourcery.com>
3682
3683 * sysdeps/unix/sysv/linux/i386/vfork.S (__vfork): Record return
3684 PC save.
3685
9aef35a5
UD
36862008-04-09 Jakub Jelinek <jakub@redhat.com>
3687
3688 * nss_files/files-XXX.c (_nss_files_getXXent_r): Restore saved errno.
3689
a7925a24
UD
36902008-04-09 Ulrich Drepper <drepper@redhat.com>
3691
3692 [BZ #5998]
3693 * libio/iofwrite.c (_IO_fwrite): Return correct count if flushing
3694 in line-buffered stream failed.
3695 * libio/iofwrite_u.c (fwrite_unlocked): Likewise.
3696
7b61ef24
UD
36972008-04-08 Ulrich Drepper <drepper@redhat.com>
3698
c2a684a4
UD
3699 [BZ #6024]
3700 * scripts/abi-versions.awk: If the version specified by
3701 --enable-oldest-abi is older than the first version for this
3702 architecture, use the default version.
3703
7b61ef24
UD
3704 * locale/programs/ld-collate.c (collate_read): Ignore script lines
3705 as well when ignoring the whole category.
3706
f6d749f0
UD
37072008-04-07 Ulrich Drepper <drepper@redhat.com>
3708
3709 [BZ #6042]
3710 * sysdeps/unix/sysv/linux/net/ethernet.h: Add a few more
3711 ETHERTYPE_* definitions.
3712 Patch partly by Aurelien Jarno <aurelien@aurel32.net>.
3713
1e99aede
JJ
37142008-04-07 Jakub Jelinek <jakub@redhat.com>
3715
3716 * stdlib/mbtowc.c (__no_r_state): Remove.
3717 (mbtowc): New static state variable. Use it instead of
3718 __no_r_state.
3719 * stdlib/wctomb.c (__no_r_state): Remove extern decl.
3720 (__wctomb_state): New hidden variable.
3721 (wctomb): Use __wctomb_state instead of __no_r_state.
3722 * debug/wctomb_chk.c (__no_r_state): Remove extern decl.
3723 (__wctomb_state): New extern decl.
3724 (__wctomb_chk): Use __wctomb_state instead of __no_r_state.
3725
fcf90e0a
UD
37262008-04-07 Ulrich Drepper <drepper@redhat.com>
3727
3728 [BZ #5475]
3729 * resolv/res_init.c: Handle scope IDs in resolv.conf.
3730
ae39e102
JJ
37312008-04-07 Jakub Jelinek <jakub@redhat.com>
3732
3733 * malloc/mtrace.pl: Use $@ instead of $* to keep perl 5.10 quiet.
3734
2503dd30
UD
37352008-04-06 Ulrich Drepper <drepper@redhat.com>
3736
3737 * po/nl.po: Update from translation team.
3738
3eb9c809
UD
37392008-03-31 Ulrich Drepper <drepper@redhat.com>
3740
3741 [BZ #6007]
3742 * string/strfry.c: Handle empty strings again.
3743
9a69db29
UD
37442008-03-30 Ulrich Drepper <drepper@redhat.com>
3745
3746 [BZ #5443]
3747 * intl/dcigettext.c (__dcigettext): Get reader lock for locale data
3748 before looking for translation.
3749 * locale/duplocale.c: Transform __libc_setlocale_lock into rwlock.
3750 * locale/freelocale.c: Likewise.
3751 * locale/newlocale.c: Likewise.
3752 * locale/setlocale.c: Likewise.
3753 Based partially on a patch by ryo@np.css.fujitsu.com.
3754
2ecc7d93
UD
37552008-03-30 Jakub Jelinek <jakub@redhat.com>
3756
3757 * intl/dcigettext.c (_nl_find_msg): Reread nconversions after
3758 acquiring wrlock. Do conv_tab allocation while holding lock.
3759 * intl/Makefile: Add rules to build and run tst-gettext6.
3760 * intl/tst-gettext6.c: New test.
3761 * intl/tst-gettext6.sh: New file.
3762
221e5230
UD
37632008-03-30 Ulrich Drepper <drepper@redhat.com>
3764
faa091c6
UD
3765 * po/nl.po: Update from translation team.
3766
221e5230
UD
3767 * sysdeps/unix/opendir.c (__alloc_dir): If allocation fails for size
3768 provided through st_blksize, try the default size before giving up.
3769
1c272665
UD
37702008-03-29 Ulrich Drepper <drepper@redhat.com>
3771
43f6bec1
UD
3772 * stdio-common/vfprintf.c (vfprintf): Correct overflow test.
3773
e8a32126
UD
3774 [BZ #5939]
3775 * sysdeps/posix/tempname.c (__gen_tempname): Correct flag selection.
3776
1e489af9
UD
3777 * posix/getopt.c (_getopt_internal_r): Remove old POSIX-demanded
3778 error message. POSIX today does not require the messages to be in
3779 a specific form. Suggested by Jim Meyering <jim@meyering.net>.
3780
1d20f7f8
UD
3781 [BZ #5979]
3782 * sunrpc/auth_unix.c: Unify printed strings.
3783 * sunrpc/clnt_tcp.c: Likewise.
3784 * sunrpc/clnt_udp.c: Likewise.
3785 * sunrpc/clnt_unix.c: Likewise.
3786 * sunrpc/svc_tcp.c: Likewise.
3787 * sunrpc/svc_udp.c: Likewise.
3788 * sunrpc/svc_unix.c: Likewise.
3789 * sunrpc/xdr.c: Likewise.
3790 * sunrpc/xdr_array.c: Likewise.
3791 * sunrpc/xdr_rec.c: Likewise.
3792 * sunrpc/xdr_ref.c: Likewise.
3793 * locale/programs/ld-time.c (time_finish): Unify messages.
3794 * locale/programs/locfile.c (handle_copy): Fix typo.
3795 * nscd/nscd.c (options): Fix typo.
3796
1c272665
UD
3797 [BZ #5995]
3798 * stdlib/strtod_l.c: Use correct sign for result in one more
3799 underflow case.
3800 Patch by Eric Blake <ebb9@byu.net>.
3801
48cc060e
UD
38022008-03-27 Jakub Jelinek <jakub@redhat.com>
3803
3804 * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Add open
3805 and creat system calls.
3806 * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove open system
3807 call.
3808 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Remove open and creat
3809 system calls.
3810 * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Likewise.
3811 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
3812 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
3813
f96853be
UD
38142008-03-27 Ulrich Drepper <drepper@redhat.com>
3815
3816 * sysdeps/unix/sysv/linux/bits/local_lim.h: Undefined ARG_MAX if
3817 <linux/limits.h> has defined it.
3818 * sysdeps/unix/sysv/linux/sys/param.h: Define NCARGS to the legacy
3819 ARG_MAX value and prevent ARG_MAX from being defined by the kernel
3820 headers.
3821 * sysdeps/unix/sysv/linux/sysconf.c: Define legacy_ARG_MAX and use
3822 it instead of ARG_MAX.
3823
fde15fdc
UD
38242008-03-25 Jakub Jelinek <jakub@redhat.com>
3825
3826 * posix/gai.conf: Fix comment for scope nullbits.
3827 * sysdeps/posix/getaddrinfo.c (gaiconf_init): If /bits is not present,
3828 default to 128 bits for v4 mapped addresses.
3829
87b9b50f
UD
38302008-03-07 Martin Schwidefsky <schwidefsky@de.ibm.com>
3831
3832 * sysdeps/s390/fpu/fegetenv.c (fegetenv): Remove PTRACE_PEEKUSER
3833 ptrace call to get the ieee_instruction_pointer from the kernel.
3834 * sysdeps/s390/fpu/fesetenv.c (fesetenv): Remove PTRACE_POKEUSER
3835 ptrace call to set the ieee_instructtion_pointer.
3836 * sysdeps/unix/sysv/linux/s390/sys/user.h (struct _user_regs_struct):
3837 Add comment that ieee_instruction_pointer is always 0.
3838
af0498dc
UD
38392008-03-09 Andreas Jaeger <aj@suse.de>
3840
3841 [BZ #5857]
3842 * sysdeps/ieee754/dbl-64/s_rint.c (__rint): Handle j0==18.
3843 * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Likewise.
3844 Patch by Mark Elliott <mark.h.elliott@lmco.com>.
3845
3846 * math/libm-test.inc (nearbyint_test): Add new test cases from #5857.
3847 (rint_test): Likewise.
3848
0ab7632d
UD
38492008-03-24 Ulrich Drepper <drepper@redhat.com>
3850
0facd3df
UD
3851 * nis/nis_call.c (nis_server_cache_search): Save errno around stat
3852 call.
3853 (__nisfind_server): Similar for open readColdStartFile call.
3854 Patch partially by Jim Meyering.
3855 * nss/nss_files/files-XXX.c (_nss_files_getXXent_r): Save errno
3856 around internal_setent call.
3857
7e570c55
UD
3858 * po/vi.po: New Vietnamese translation.
3859
e093c247
UD
3860 * sysdeps/unix/sysv/linux/adjtime.c: Correctly use
3861 ADJ_OFFSET_SS_READ.
3862
0ab7632d
UD
3863 * sysdeps/unix/sysv/linux/bits/sched.h: Add new CLONE_* flags,
3864 remove CLONE_STOPPED.
3865
0726cdf7
UD
38662008-02-10 Jim Meyering <meyering@redhat.com>
3867
3868 Remove useless "if" before "free":
3869 * elf/ldconfig.c (parse_conf_include): Likewise.
3870 * gmon/gmon.c (weak_alias): Likewise.
3871 * iconv/gconv_conf.c (__gconv_get_path): Likewise.
3872 * inet/rcmd.c (__validuser2_sa): Likewise.
3873 * intl/bindtextdom.c (set_binding_values): Likewise.
3874 * intl/loadmsgcat.c (_nl_load_domain, _nl_unload_domain): Likewise.
3875 * libio/genops.c (save_for_backup): Likewise.
3876 * libio/wgenops.c (save_for_wbackup): Likewise.
3877 * locale/programs/ld-collate.c (collate_read): Likewise.
3878 * locale/programs/linereader.c (get_string): Likewise.
3879 * nis/nss_compat/compat-pwd.c (give_pwd_free): Likewise.
3880 * nis/nss_compat/compat-spwd.c (give_spwd_free): Likewise.
3881 * resolv/res_debug.c (do_section): Likewise.
3882 * sunrpc/xdr_sizeof.c (x_inline, xdr_sizeof): Likewise.
3883 * sysdeps/mach/hurd/if_index.c (libc_hidden_def): Likewise.
3884 * sysdeps/posix/sprofil.c (__sprofil): Likewise.
3885 * time/lc-time-cleanup.c (_nl_cleanup_time): Likewise.
3886 * time/tzset.c (tzset_internal): Likewise.
3887
354b7527
JJ
38882008-03-18 Jakub Jelinek <jakub@redhat.com>
3889
3890 * sysdeps/unix/sysv/linux/dl-sysdep.h: Use __ASSEMBLER__ instead
3891 of ASSEMBLER.
3892
ca668b29
UD
38932008-03-11 Ulrich Drepper <drepper@redhat.com>
3894
3895 [BZ #5903]
3896 * iconv/iconv_charmap.c (charmap_conversion): Pass name of output file
3897 not stream for output file. Open output file here.
3898 * iconv/iconv_prog.c (process_lock): Take pointer to output stream
3899 and output file name.
3900 (process_fd): Likewise.
3901 (process_file): Likewise.
3902 (main): Adjust callers of changed functions.
3903 * iconv/iconv_prog.h: Adjust prototype.
3904
f3dc3415
AJ
39052008-03-09 Andreas Jaeger <aj@suse.de>
3906
3907 [BZ #5753]
3908 * sysdeps/ia64/ieee754.h: Use protected namespace
3909 __BIG_ENDIAN/__LITTLE_ENDIAN.
3910 * sysdeps/ieee754/ieee754.h: Likewise.
3911 Patch by Aurelien Jarno <aurelien@aurel32.net>.
3912
a8fd84d4
RM
39132008-03-08 Roland McGrath <roland@frob.com>
3914
2b965f1b
RM
3915 * hurd/hurdsig.c (_hurd_internal_post_signal): When normal rules would
3916 ignore a signal that came from a machine exception, treat it as a
3917 fatal core-dump signal instead.
3918 Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
3919
a8fd84d4
RM
3920 * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler):
3921 Clear DF bit in thread state's eflags.
3922 Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
3923
368a8dec
UD
39242008-03-08 Ulrich Drepper <drepper@redhat.com>
3925
b3278554
UD
3926 [BZ #5774]
3927 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Consume closing brace
c6c00e0d 3928 of NAN(...) sequence.
b3278554
UD
3929 * stdlib/Makefile (tests): Add tst-strtod6.
3930 * stdlib/tst-strtod6.c: New file.
3931
3932 * inet/inet6_opt.c (inet6_opt_init): Check extlen for overflow.
3933
2127a186
UD
3934 [BZ #5762]
3935 * posix/getopt.c (_getopt_internal_r): Clarify error message by
3936 putting offending option character in quotes. Clean up error
3937 messages.
3938 * po/be.po: Adjust msgstr in translation file.
3939 * po/bg.po: Likewise.
3940 * po/ca.po: Likewise.
3941 * po/cs.po: Likewise.
3942 * po/da.po: Likewise.
3943 * po/de.po: Likewise.
3944 * po/es.po: Likewise.
3945 * po/fr.po: Likewise.
3946 * po/hr.po: Likewise.
3947 * po/ko.po: Likewise.
3948 * po/nl.po: Likewise.
3949 * po/rw.po: Likewise.
3950 * po/sk.po: Likewise.
3951 * po/sv.po: Likewise.
3952 * po/tr.po: Likewise.
3953 * po/zh_CN.po: Likewise.
3954 * po/zh_TW.po: Likewise.
3955
725c0c87
UD
3956 [BZ #5760]
3957 * inet/inet6_opt.c (inet6_opt_init): Fix ip6h_len computation.
3958 Patch by Roland Bless <roland@bless.de>.
3959
368a8dec
UD
3960 * sysdeps/unix/sysv/linux/dl-sysdep.c: Avoid unnecessary code for
3961 .o file.
3962 * elf/Makefile (routines): Add dl-sysdep.
3963 (elide-routines.os): Likewise.
3964
78c2bf0e
UD
39652008-03-07 Ulrich Drepper <drepper@redhat.com>
3966
7c22c7ec
UD
3967 [BZ #5786]
3968 * elf/dl-sysdep.c: Undefine ROUND after use.
3969 * sysdeps/generic/ldsodefs.h [HAVE_DL_DISCOVER_OSVERSION]
3970 (struct rtld_global_ro): Add _dl_tls_get_addr_soft element.
3971 * elf/rtld.c (rtld_global_ro): Initialize _dl_discover_osversion.
3972 * sysdeps/unix/sysv/linux/dl-osinfo.h: Move _dl_discover_osversion
3973 to ...
3974 * sysdeps/unix/sysv/linux/dl-sysdep.c: ...here.
3975 * sysdeps/unix/sysv/linux/dl-sysdep.h: Declare _dl_discover_osversion
3976 if necessary.
3977 * sysdeps/unix/sysv/linux/sysconf.c: Handle _SC_ARG_MAX here.
3978
93025f93
UD
3979 * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Add
3980 _dl_tls_get_addr_soft element.
3981 * elf/rtld.c (rtld_global_ro): Initialize _dl_tls_get_addr_soft.
3982 * elf/Versions (ld): Don't export _dl_tls_get_addr_soft.
3983 * dlfcn/dlinfo.c (dlinfo_doit): Access dl_tls_get_addr_soft through
3984 GLRO.
3985 * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise.
3986 * elf/dl-tls.c (_dl_tls_get_addr_soft): Use attribute_hidden instead
3987 of internal_function.
3988
72f10127
UD
3989 * stdlib/Makefile (aux): Add tens_in_limb.
3990 * stdlib/strtod_l.c: Move _tens_in_limb definition to...
3991 * stdlib/tens_in_limb.c: ...here. New file.
3992
443db178
UD
3993 [BZ #5778]
3994 * sysdeps/unix/sysv/linux/pathconf.h: Declare
3995 __statfs_chown_restricted.
3996 * sysdeps/unix/sysv/linux/fpathconf.c: Call __statfs_chown_restricted
3997 for _PC_CHOWN_RESTRICTED.
3998 * sysdeps/unix/sysv/linux/pathconf.c: Likewise.
3999 Implement __statfs_chown_restricted.
4000 * sysdeps/unix/sysv/linux/bits/posix_opt.h: Change
4001 _POSIX_CHOWN_RESTRICTED value to zero.
c71665ad
UD
4002 * io/tst-fchownat.c: Correctly handle _POSIX_CHOWN_RESTRICTED
4003 defined to zero.
443db178 4004
78c2bf0e
UD
4005 * sysdeps/x86_64/rtld-memset.c: New file.
4006
443db178 40072008-02-26 Harsha Jagasia <harsha.jagasia@amd.com>
78c2bf0e
UD
4008
4009 * sysdeps/x86_64/cacheinfo.c (NOT_USED_RIGHT_NOW): Remove ifdef guards.
4010
4011 * sysdeps/x86_64/memset.S: Rewrite non-SSE code path as tuned for AMD
4012 Barcelona machine. Make default fall through branch of
4013 __x86_64_preferred_memory_instruction check as the integer code path.
4014
40152007-10-15 H.J. Lu <hongjiu.lu@intel.com>
4016
4017 * sysdeps/x86_64/cacheinfo.c
4018 (__x86_64_preferred_memory_instruction): New variable.
4019 (init_cacheinfo): Initialize __x86_64_preferred_memory_instruction.
4020
4021 * sysdeps/x86_64/memset.S: Rewrite.
4022
dff37515
UD
40232008-03-04 Jakub Jelinek <jakub@redhat.com>
4024
4025 * include/stdio.h (__asprintf_chk, __dprintf_chk,
4026 __obstack_printf_chk): New prototypes.
4027 (__vasprintf_chk, __vdprintf_chk,
4028 __obstack_vprintf_chk): Likewise.
4029 Add libc_hidden_proto.
4030 * libio/obprintf.c
4031 (_IO_obstack_jumps): No longer static, add attribute_hidden.
4032 * libio/bits/stdio-ldbl.h (__asprintf_chk, __dprintf_chk,
4033 __obstack_printf_chk, __vasprintf_chk, __vdprintf_chk,
4034 __obstack_vprintf_chk): Add __LDBL_REDIR_DECL.
4035 * libio/bits/stdio2.h (__asprintf_chk, __dprintf_chk,
4036 __obstack_printf_chk, __vasprintf_chk, __vdprintf_chk,
4037 __obstack_vprintf_chk): New prototypes.
4038 (asprintf, __asprintf, dprintf, obstack_printf, vasprintf, vdprintf,
4039 obstack_vprintf): New inlines.
4040 * debug/dprintf_chk.c: New file.
4041 * debug/vdprintf_chk.c: New file.
4042 * debug/asprintf_chk.c: New file.
4043 * debug/vasprintf_chk.c: New file.
4044 * debug/obprintf_chk.c: New file.
4045 * debug/tst-chk1.c (do_test): Add asprintf and obstack_printf tests.
4046 * debug/Versions (__asprintf_chk, __dprintf_chk, __obstack_printf_chk,
4047 __vasprintf_chk, __vdprintf_chk, __obstack_vprintf_chk): Export
4048 @@GLIBC_2.8.
4049 * debug/Makefile: Build asprintf_chk, vasprintf_chk, dprintf_chk,
4050 vdprintf_chk and obprintf_chk, set CFLAGS for them.
4051 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c (__nldbl___vasprintf_chk,
4052 __nldbl___vdprintf_chk, __nldbl___obstack_vprintf_chk): Add
4053 libc_hidden_proto.
4054 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl___vasprintf_chk,
4055 __nldbl___vdprintf_chk, __nldbl___obstack_vprintf_chk): New prototypes.
4056 * sysdeps/ieee754/ldbl-opt/Versions (__nldbl___asprintf_chk,
4057 __nldbl___vasprintf_chk, __nldbl___dprintf_chk, __nldbl___vdprintf_chk,
4058 __nldbl___obstack_printf_chk, __nldbl___obstack_vprintf_chk): Export
4059 @@GLIBC_2.8.
4060 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add asprintf_chk,
4061 vasprintf_chk, dprintf_chk, vdprintf_chk, obstack_printf_chk and
4062 obstack_vprintf_chk.
4063 * sysdeps/ieee754/ldbl-opt/nldbl-obstack_vprintf_chk.c: New file.
4064 * sysdeps/ieee754/ldbl-opt/nldbl-dprintf_chk.c: New file.
4065 * sysdeps/ieee754/ldbl-opt/nldbl-obstack_printf_chk.c: New file.
4066 * sysdeps/ieee754/ldbl-opt/nldbl-asprintf_chk.c: New file.
4067 * sysdeps/ieee754/ldbl-opt/nldbl-vdprintf_chk.c: New file.
4068 * sysdeps/ieee754/ldbl-opt/nldbl-vasprintf_chk.c: New file.
4069
d835f136
UD
40702008-03-04 Ulrich Drepper <drepper@redhat.com>
4071
a4bb445a
UD
4072 [BZ #5779]
4073 * misc/sys/queue.h: Add STAILQ_CONCAT and TAILQ_CONCAT definitions.
4074 Patch by Roy Marples <roy@marples.name>.
4075
c958a6a4
UD
4076 [BZ #5736]
4077 * malloc/malloc.c: Fix typo in comment.
4078
d835f136
UD
4079 [BZ #5627]
4080 * locale/iso-639.def: Add Shuswap.
4081
65b4743a
UD
40822008-02-25 Jakub Jelinek <jakub@redhat.com>
4083
4084 [BZ #5790]
4085 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr2_r): Don't
4086 overwrite *h_errnop/*errnop values from getanswer_r in case of
4087 failure.
4088
3868fb6e
UD
40892008-03-03 Ulrich Drepper <drepper@redhat.com>
4090
27c377dd
UD
4091 [BZ #5818]
4092 * nscd/connections.c (dbs): Add initializers for .suggested_module.
4093 (verify_persistent_db): Remove one unnecessary test and add a new one
4094 for bad configuration.
4095 (nscd_init): Improve error reported when persistent database cannot
4096 be reused.
4097 * nscd/nscd.h (DEFAULT_SUGGESTED_MODULE): Define.
4098 * nscd/nscd_conf.c (nscd_parse_file): Provide default values for
4099 .suggested_module and .max_db_size and case config file says the
4100 values are zero.
4101 * nscd/nscd_helper.c (get_mapping): Fail if hash table module is zero.
4102
0f749099
UD
4103 [BZ #5854]
4104 * nis/ypclnt.c (yp_order): Fix handling of return value of
4105 do_ypcall_tr call.
4106 Patch by Jeff Moyer <jmoyer@redhat.com>.
4107
3868fb6e
UD
4108 * po/fr.po: Update from translation team.
4109
268dbf25
AJ
41102008-02-22 Andreas Jaeger <aj@suse.de>,
4111 Carlos O'Donell <carlos@systemhalted.org>
4112
4113 [BZ #5012]
4114 * FAQ.in: Describe why glibc needs to be compiled with
4115 optimization.
4116
73b82641
RM
41172008-02-19 Roland McGrath <roland@redhat.com>
4118
4119 * elf/elf.h (SHT_GNU_ATTRIBUTES): New macro.
4120
c9136393
UD
41212008-02-15 Ulrich Drepper <drepper@redhat.com>
4122
4123 [BZ #5737]
4124 * resolv/netdb.h: Make NI_MAXHOST and NI_MAXSERV available when
4125 __USE_MISC is defined.
4126
2e3e9ff1
UD
41272008-02-10 Ulrich Drepper <drepper@redhat.com>
4128
4129 * sysdeps/unix/sysv/linux/sys/timerfd.h: New file.
4130 * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers): Add
4131 sys/timerfd.h.
4132 * sysdeps/unix/sysv/linux/syscalls.list: Add timerfd_create,
4133 timerfd_gettime, timerfd_settime.
4134 * sysdeps/unix/sysv/linux/Versions: Add timerfd_create,
4135 timerfd_gettime, timerfd_settime for GLIBC_2.8.
4136
85202a2b
RM
41372008-02-08 Roland McGrath <roland@redhat.com>
4138
4139 * elf/elf.h (NT_PPC_SPE): New macro.
4140
708ef8a4
RM
41412008-02-06 Roland McGrath <roland@redhat.com>
4142
4143 * Makerules ($(common-objpfx)sysd-rules):
4144 Depend on $(sysdep-makeconfigs).
4145
363a641b
RM
41462008-01-31 Roland McGrath <roland@redhat.com>
4147
67fbfa5c
RM
4148 [BZ #5442]
4149 * configure.in: Use -print-file-name if it yields a directory,
4150 for each of include and include-fixed.
4151 * configure: Regenerated.
4152
363a641b
RM
4153 * Makeconfig (sysd-rules-targets): New variable.
4154 * sysdeps/unix/make-syscalls.sh: Use it in the rules emitted.
4155 * sysdeps/unix/Makefile (omit-deps): Append variants for each target.
4156
0f0f9610
RM
41572008-01-30 Roland McGrath <roland@redhat.com>
4158
7bd00dbf
RM
4159 * manual/libc.texinfo: Update back-cover text.
4160
0f0f9610
RM
4161 * elf/elf.h (NT_386_TLS): New macro.
4162
16cd816f
RM
41632008-01-29 Roland McGrath <roland@redhat.com>
4164
4165 * Makeconfig (sysd-rules-patterns): New variable.
4166 * Makerules ($(common-objpfx)sysd-rules): Drive the loop from that.
4167 (check-inhibit-asm): New canned sequence, replaces ...
4168 (open-check-inhibit-asm, close-check-inhibit-asm): ... these, removed.
4169 * elf/rtld-Rules ($(objpfx)rtld-%.os): Use $(rtld-CPPFLAGS) in commands.
4170 (rtld-CPPFLAGS): Renamed from CPPFLAGS-rtld.
4171 (CFLAGS-rtld): Variable removed.
4172
f641ffcc
RM
41732008-01-24 Roland McGrath <roland@redhat.com>
4174
4175 * configure.in: Let configure fragments set base_os.
4176 * configure: Regenerated.
4177
b7e26885
UD
41782008-01-22 Ulrich Drepper <drepper@redhat.com>
4179
4180 * po/ko.po: Update from translation team.
4181
b4b166af
UD
41822008-01-12 H.J. Lu <hongjiu.lu@intel.com>
4183
4184 * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Use short for fnstsw.
4185
f66def9d
AJ
41862008-01-12 Andreas Jaeger <aj@suse.de>
4187
4188 [BZ #5040]
4189 * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h (enum EPOLL_EVENTS):
4190 Add EPOLLRDHUP.
4191
d3bc5e77
RM
41922008-01-20 Samuel Thibault <samuel.thibault@ens-lyon.org>
4193
4194 * hurd/hurdsock.c (_hurd_socket_server): Return the standard
4195 error EAFNOSUPPORT rather than non-standard EPFNOSUPPORT.
4196 * sunrpc/bindrsvprt.c (bindresvport): Likewise.
4197
4c533566
UD
41982007-10-23 Alexandre Oliva <aoliva@redhat.com>
4199
4200 * include/link.h (FORCED_DYNAMIC_TLS_OFFSET): Define.
4201 * elf/dl-close.c (_dl_close): Check for it.
4202 * elf/dl-reloc.c (CHECK_STATIC_TLS): Likewise.
4203 (_dl_allocate_static_tls): Likewise.
4204 * elf/dl-tls.c (_dl_allocate_tls_init): Likewise.
4205 (__tls_get_addr): Protect from race conditions in setting l_tls_offset
4206 to it.
4207 * elf/tst-tls16.c: New file.
4208 * elf/tst-tlsmod16a.c: New file.
4209 * elf/tst-tlsmod16b.c: New file.
4210 * elf/Makefile: Add rules to build and run tst-tls16.
4211
a53d3f82
UD
42122008-01-16 Ulrich Drepper <drepper@redhat.com>
4213
a0f6c236
UD
4214 [BZ #5628]
4215 * bits/shm.h: Fix comment describing shmid_ds.
4216 * sysdeps/gnu/bits/shm.h: Likewise.
4217 * sysdeps/unix/sysv/linux/alpha/bits/shm.h: Likewise.
4218 * sysdeps/unix/sysv/linux/bits/shm.h: Likewise.
4219 * sysdeps/unix/sysv/linux/ia64/bits/shm.h: Likewise.
4220 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
4221 * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
4222 * sysdeps/unix/sysv/linux/sh/bits/shm.h: Likewise.
4223 * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
4224 * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Likewise.
4225 Patch by Hareesh Nagarajan <hareesh.nagarajan@gmail.com>.
4226
a53d3f82
UD
4227 [BZ #5607]
4228 * conform/data/fcntl.h-data: Fix posix_fadvise and posix_fallocate
4229 prototypes.
4230 * conform/data/limits.h-data: Adjust limits changed in v6 and add
4231 additional suffixes.
4232 * conform/data/mqueue.h-data: Fix typo in mq_curmsgs entry.
4233 Add optional functions mq_timedreceive and mq_timedsend.
4234 * conform/data/netdb.h-data: Add more AI_* and EAI_* constants.
4235 * conform/data/pthread.h-data: Fix prototype of
4236 pthread_condattr_setclock. pthread_sigmask is not required in v6.
4237 * conform/data/semaphore.h-data: Allow time.h definitions.
4238 * conform/data/signal.h-data: Likewise.
4239 * conform/data/stdio.h-data: getw and putw are not required in v6.
4240 * conform/data/stdlib.h-data: Change setstate prototype.
4241 * conform/data/string.h-data: Fix strerror_r prototype.
4242 * conform/data/time.h-data: Fix typo in TIMER_ABSTIME definition.
4243 * conform/data/unistd.h-data: pthread_atfork not required in v6.
4244 Fix readlink prototype.
4245 * conform/data/netinet/in.h-data: Add const to in6addr_any and
4246 in6addr_loopback.
4247 * inet/netinet/in.h: Cleanup namespace.
4248 * posix/regex.h: Likewise.
4249 * resolv/netdb.h: Likewise.
4250 * sysdeps/unix/sysv/linux/bits/in.h: Likewise.
4251 * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
4252 * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
6107639e
UD
4253 * sysdeps/posix/getaddrinfo.c (default_labels): Adjust for change
4254 of names of in in6_addr.
4255 (default_precedence): Likewise.
4256 * sysdeps/unix/sysv/linux/cmsg_nxthdr.c: Include <stddef.h> for
4257 NULL definition.
a53d3f82 4258
ebca8f73
UD
42592008-01-15 Ulrich Drepper <drepper@redhat.com>
4260
fbe90cd5
UD
4261 * conform/data/fmtmsg.h-data: Add missing allows.
4262 * conform/data/ftw.h-data: Likewise.
4263 * conform/data/inttypes.h-data: Likewise.
4264 * conform/data/math.h-data: Likewise.
4265 * conform/data/signal.h-data: Likewise.
4266 * conform/data/net/if.h-data: Likewise.
4267 * conform/data/netinet/in.h-data: Likewise.
4268 * conform/data/sys/socket.h-data: Likewise.
4269
ebca8f73
UD
4270 [BZ #5614]
4271 * string/bits/string2.h (__strtok_r_1c): Always update *__NEXTP.
4272 (__strtok_r): Simplify.
4273 * string/tester.c (test_strtok_r): Add test case for futile search
4274 with single-character seach string.
4275
7c33ca8b
UD
42762008-01-12 Ulrich Drepper <drepper@redhat.com>
4277
4278 * po/ko.po: Update from translation team.
4279
b8cc0848
AJ
42802008-01-11 Andreas Jaeger <aj@suse.de>
4281
4282 [BZ #5600]
4283 * sysdeps/unix/sysv/linux/sys/signalfd.h (struct
4284 signalfd_siginfo): Use 64-bit type for ssi_ptr to sync with Linux
4285 kernel header.
4286
49029a66
UD
42872008-01-10 Ulrich Drepper <drepper@redhat.com>
4288
4289 * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Store result of
4290 native interface lookup in all the relevant places.
4291
99f05798
UD
42922008-01-10 Jakub Jelinek <jakub@redhat.com>
4293 Ulrich Drepper <drepper@redhat.com>
0efd1956
UD
4294
4295 * sysdeps/posix/getaddrinfo.c (sort_results): Remove service_order
4296 field. Use sockaddr_in6 for source_addr.
4297 (get_scope): Change type of parameter to sockaddr_in6. Adjust.
4298 (match_prefix): Likewise.
4299 (get_label): Likewise.
4300 (get_precedence): Likewise.
4301 (rfc3484_sort): Change to use indirect access to results array.
4302 Adjust to use of sockaddr_in6. Replace service_order test with
4303 simple index comparison.
4304 (getaddrinfo): Define order array. Initialize it. Don't initialize
4305 service_order field. Adjust qsort_t calls. Access sorted result
4306 array indirectly through order array.
4307 * posix/tst-rfc3484.c: Adjust for change of rfc3484_sort.
4308 * posix/tst-rfc3484-2.c: Likewise.
4309 * posix/tst-rfc3484-3.c: Likewise.
4310
b3443701
UD
43112008-01-09 Ulrich Drepper <drepper@redhat.com>
4312
f6bacb8e
UD
4313 [BZ #5541]
4314 * sunrpc/rpc_thread.c (__rpc_thread_destroy): Also free xports and
4315 pollfd structures.
4316 Patch by André Cruz.
4317
aa693c68
UD
4318 [BZ #5545]
4319 * sunrpc/clnt_perr.c (clnt_sperror): Don't use fixed size buffer.
4320 (clnt_spcreateerror): Likewise.
4321
b3443701
UD
4322 [BZ #5553]
4323 * malloc/malloc.c (public_mALLOc): Set ar_ptr when trying main_arena.
4324 (public_mEMALIGn): Likewise.
4325 Patch mostly by Daniel Jacobowitz.
4326
148e12ed
UD
43272008-01-09 Jakub Jelinek <jakub@redhat.com>
4328
4329 * sysdeps/unix/sysv/linux/i386/makecontext.S (__makecontext): Avoid
4330 clobbering memory at or above uc_stack.ss_sp + uc_stack.ss_size.
4331 * stdlib/Makefile: Add rules to build and run tst-makecontext2.
4332 * stdlib/tst-makecontext2.c: New test.
4333
78c2bf0e 43342008-01-08 Jakub Jelinek <jakub@redhat.com>
4b1b449d
UD
4335
4336 * iconv/loop.c (UPDATE_PARAMS): Define to empty statement if not
4337 defined.
4338 (REINIT_PARAMS): Likewise. Undefine before end of file.
4339 (STANDARD_TO_LOOP_ERR_HANDLER): Use UPDATE_PARAMS before calling
4340 transliteration hooks and REINIT_PARAMS afterwards.
4341 * iconvdata/iso-2022-jp.c (BODY): Use a separate variable for
4342 status.
4343 (REINIT_PARAMS): Define.
4344 * iconvdata/ibm1364.c (REINIT_PARAMS): Likewise.
4345 * iconvdata/ibm930.c (REINIT_PARAMS): Likewise.
4346 * iconvdata/ibm933.c (REINIT_PARAMS): Likewise.
4347 * iconvdata/ibm935.c (REINIT_PARAMS): Likewise.
4348 * iconvdata/ibm937.c (REINIT_PARAMS): Likewise.
4349 * iconvdata/ibm939.c (REINIT_PARAMS): Likewise.
4350 * iconvdata/iso-2022-cn.c (REINIT_PARAMS): Likewise.
4351 * iconvdata/iso-2022-cn-ext.c (REINIT_PARAMS): Likewise.
4352 * iconvdata/iso-2022-jp-3.c (REINIT_PARAMS): Likewise.
4353 * iconvdata/iso-2022-kr.c (REINIT_PARAMS): Likewise.
4354 * iconvdata/Makefile: Add rules to build and run tst-iconv7.c.
4355 * iconvdata/tst-iconv7.c: New test.
4356
71edcafa
UD
43572008-01-07 Ulrich Drepper <drepper@redhat.com>
4358
4359 * libio/stdio.h (vscanf): Fix definition for loser compilers.
4360
0fbfe2f7
JJ
43612008-01-05 Jakub Jelinek <jakub@redhat.com>
4362
4363 [BZ #5112]
4364 * nscd/connections.c (restart): Fix condition.
4365
8726a12e
UD
43662008-01-03 Jakub Jelinek <jakub@redhat.com>
4367
4368 * ctype/ctype.h (__ctype_b_loc, __ctype_tolower_loc,
4369 __ctype_toupper_loc): Add __THROW.
4370
f4a1363e
UD
43712008-01-02 Ulrich Drepper <drepper@redhat.com>
4372
ad586879
UD
4373 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Fix
4374 recognition of interface family.
4375
f4a1363e
UD
4376 * posix/getconf.c: Update copyright year.
4377 * nss/getent.c: Likewise.
4378 * iconv/iconvconfig.c: Likewise.
4379 * iconv/iconv_prog.c: Likewise.
4380 * elf/ldconfig.c: Likewise.
4381 * catgets/gencat.c: Likewise.
4382 * csu/version.c: Likewise.
4383 * elf/ldd.bash.in: Likewise.
4384 * elf/sprof.c (print_version): Likewise.
4385 * locale/programs/locale.c: Likewise.
4386 * locale/programs/localedef.c: Likewise.
4387 * nscd/nscd.c (print_version): Likewise.
4388 * debug/xtrace.sh: Likewise.
4389 * malloc/memusage.sh: Likewise.
4390 * malloc/mtrace.pl: Likewise.
4391 * debug/catchsegv.sh: Likewise.
4392
0dc6c5e4
UD
43932007-12-26 Ulrich Drepper <drepper@redhat.com>
4394
4395 * nss/nsswitch.c (__nss_lookup): Actually use alternative name in
4396 second lookup.
4397
80af8b82
UD
43982007-12-23 Ulrich Drepper <drepper@redhat.com>
4399
4400 * sysdeps/x86_64/cacheinfo.c (intel_02_known): New entry 0x3f.
4401 * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
4402
4bcecfb7
RM
44032007-12-17 Roland McGrath <roland@redhat.com>
4404
4405 * inet/ether_line.c (ether_line): Remove unused variable.
4406
44072007-12-17 Samuel Thibault <samuel.thibault@ens-lyon.org>
4408
4409 * login/forkpty.c (forkpty): Add const qualifier to parameters termp
4410 and winp.
4411 * login/openpty.c (openpty): Likewise.
4412 * login/pty.h (openpty, forkpty): Likewise.
4413 * manual/terminal.texi (openpty, forkpty): Likewise.
4414
4cd4c5d6
UD
44152007-12-17 Ulrich Drepper <drepper@redhat.com>
4416
78c2bf0e 4417 * malloc/malloc.c (public_cALLOc): For arenas other than
4cd4c5d6
UD
4418 main_arena, count all bytes inside the mprotect_size range of the
4419 heap as uninitialized.
4420
68631c8e
UD
44212007-12-16 Ulrich Drepper <drepper@redhat.com>
4422
d9961b6a
UD
4423 * elf/tst-execstack.c (do_test): Don't fail if SELinux forbids
4424 executable stacks.
4425
68631c8e
UD
4426 * malloc/malloc.c (public_mTRIm): Iterate over all arenas and call
4427 mTRIm for all of them.
4428 (mTRIm): Additionally iterate over all free blocks and use madvise
4429 to free memory for all those blocks which contain at least one
4430 memory page.
be8c1500
UD
4431 * malloc/tst-trim1.c: New file.
4432 * malloc/Makefile (tests): Add tst-trim1.
68631c8e
UD
4433
4434 * malloc/malloc.c (do_check_malloc_state): Minimal cleanups.
4435
78b767a0
UD
44362007-12-14 Ulrich Drepper <drepper@redhat.com>
4437
4438 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INTERNAL_SYSCALL_ERROR_P):
4439 First cast argument to long
52386be7
UD
4440 * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_gettimeofday):
4441 Return long.
4442 (__vdso_clock_gettime): Likewise.
78b767a0
UD
4443 * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Functions
4444 return long.
4445
bc3e1c12
UD
44462007-12-13 Ulrich Drepper <drepper@redhat.com>
4447
4448 * locale/nl_langinfo.c (nl_langinfo): Just call __nl_langinfo_l.
4449 * locale/nl_langinfo_l.c: Real implementation, copied from
4450 nl_langinfo.c.
4451 * include/langinfo.h: Add libc_hidden_proto for __nl_langinfo_l.
4452
77751669
UD
44532007-12-01 Jim Meyering <meyering@redhat.com>
4454
4455 * posix/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
4456 that would inhibit utf8-optimization of a regexp containing line-
4457 or buffer-anchors, e.g., `^', `$'.
4458
f63e5063
UD
44592007-12-12 Ulrich Drepper <drepper@redhat.com>
4460
4461 * time/bug-getdate1.c (do_test): Don't use century values which
4462 aren't valid on 32-bit systems.
4463
a78814a9
UD
44642007-12-12 Jakub Jelinek <jakub@redhat.com>
4465
4466 * sysdeps/i386/i486/bits/string.h (memmove): Define as macro.
4467 (memmove): Rename to __memmove_g, with __asm__ ("memmove").
4468 * sysdeps/s390/bits/string.h (__strlen_g, __strcpy_g, __strncpy_g,
4469 __strcat_g, __strncat_g): Add __asm__.
4470
44712007-12-12 Ulrich Drepper <drepper@redhat.com>
4472
4473 [BZ #5477]
4474 * io/fchmodat.c: Fix typo in stub_warning use.
4475 Patch by Petr Salinger.
4476
17edb30c
UD
44772007-12-11 Ulrich Drepper <drepper@redhat.com>
4478
58d11795
UD
4479 * iconvdata/hp-thai8.c: New file.
4480 * iconvdata/Makefile: Add rules for hp-thai8.c.
4481 * iconvdata/tst-tables.sh: Add entry for HP-THAI8.
4482 * iconvdata/gconv-modules: Likewise.
4483
4484 [BZ #5464]
4485 * iconvdata/hp-greek8.c: New file.
4486 * iconvdata/Makefile: Add rules for hp-greek8.c.
4487 * iconvdata/tst-tables.sh: Add entry for HP-GREEK8.
4488 * iconvdata/gconv-modules: Likewise.
4489
4490 [BZ #5463]
4491 * iconvdata/hp-turkish8.c: New file.
4492 * iconvdata/Makefile: Add rules for hp-turkish8.c.
4493 * iconvdata/tst-tables.sh: Add entry for HP-TURKISH8.
4494 * iconvdata/gconv-modules: Likewise.
4495
cbf5760e
UD
4496 * malloc/arena.c (grow_heap): Split out code to shrink heap into...
4497 (shrink_heap): ... this new function.
4498 (heap_trim): Call shrink_heap instead of grow_heap.
4499
17edb30c
UD
4500 * malloc/malloc.c (_int_malloc): sYSMALLOc might fail, in this
4501 case don't call alloc_perturb.
4502
ae18718f
UD
45032007-12-10 Ulrich Drepper <drepper@redhat.com>
4504
4505 * sysdeps/unix/sysv/linux/adjtime.c: Use ADJ_OFFSET_SS_READ if
4506 possible.
4507 * sysdeps/unix/sysv/linux/kernel-features.h
4508 (__ASSUME_ADJ_OFFSET_SS_READ): Define for 2.6.24.
4509 * sysdeps/unix/sysv/linux/sys/timex.h (ADJ_OFFSET_SS_READ): Define.
4510
b4354cf4
UD
45112007-12-08 Ulrich Drepper <drepper@redhat.com>
4512
4513 [BZ #5424]
4514 * stdio-common/vfprintf.c: Do not overflow when adding to done.
4515 * stdio-common/Makefile (tests): Add bug22.
4516 * stdio-common/bug22.c: New file.
4517
4518 [BZ #5451]
4519 * time/getdate.c: Fix filling in default values.
4520 * time/bug-getdate1.c: New file.
4521 * time/Makefile: Add rules to build and run bug-getdate1.
4522
4523 * iconvdata/ebcdic-is-friss.c: Use 8bit-gap instead of 8bit-generic.
4524 * iconvdata/ebcdic-es.c: Likewise.
4525 * iconvdata/ebcdic-es-a.c: Likewise.
4526 * iconvdata/ebcdic-uk.c: Likewise.
4527 * iconvdata/iso8859-16.c: Likewise.
4528 * iconvdata/viscii.c: Likewise.
4529 * iconvdata/iso8859-9e.c: Likewise.
4530 * iconvdata/Makefile: Adjust appropriately.
4531
4532 [BZ #5428]
4533 * wcsmbs/wchar.h: Unconditionally undefine __need_mbstate and
4534 __need_wint_t.
4535
26e21e75
UD
45362007-12-07 Ulrich Drepper <drepper@redhat.com>
4537
87520ccc
UD
4538 [BZ #5427]
4539 * iconvdata/hp-roman9.c: New file.
4540 * iconvdata/Makefile: Add rules for hp-roman9.c.
4541 * iconvdata/tst-tables.sh: Add HP-ROMAN9.
b4354cf4 4542 * iconvdata/gconv-modules: Likewise.
87520ccc
UD
4543
4544 * iconvdata/hp-roman8.c: Use 8bit-gap instead of 8bit-generic.
4545 * iconvdata/Makefile: Adjust appropriately.
4546
26e21e75
UD
4547 [BZ #5441]
4548 * stdio-common/vfscanf.c (_IO_vfwscanf): Don't free ptrs_to_free
4549 structure, it's allocated with alloca.
4550 * stdio-common/Makefile (tests): Add bug21.
4551 * stdio-common/bug21.c: New file.
4552
45532007-12-06 Aurelien Jarno <aurelien@aurel32.net>
4554
4555 [BZ #5452]
4556 * sysdeps/unix/sysv/linux/bits/sched.h: Use __extension__
87520ccc 4557 keyword for gcc's braced-groups.
26e21e75
UD
4558
45592007-12-07 Ulrich Drepper <drepper@redhat.com>
4560
4561 [BZ #5454]
4562 * inet/ether_line.c: Strip hostname of whitespaces.
4563 * inet/Makefile (tests): Add tst-ether_line.
4564 * inet/tst-ether_line.c: New file.
4565
9e80c123
UD
45662007-12-03 Ulrich Drepper <drepper@redhat.com>
4567
da0ff4ae
UD
4568 [BZ #5439]
4569 * sysdeps/unix/sysv/linux/sys/signalfd.h: Fix use of __nonnull.
4570
51bd20d9
UD
4571 [BZ #5435]
4572 * sysdeps/unix/sysv/linux/i386/makecontext.S: Align stack.
4573
d90d0256
UD
4574 * stdlib/tst-setcontext.c: Catch the case where the links gets
4575 messed up and we do not reach main again.
4576
9e80c123
UD
4577 * po/ca.po: Update from translation team.
4578
ae4287f8
UD
45792007-11-26 Ulrich Drepper <drepper@redhat.com>
4580
6701afc7 4581 * posix/unistd.h: Declare fsync also for __USE_XOPEN2K.
79fb2e02 4582 * posix/regex.h (REG_ENOSYS): Likewise.
a912a4f8 4583 * wcsmbs/wchar.h: Define __need_file also for __USE_XOPEN2K.
ae4287f8 4584
30294ea4
UD
45852007-11-25 Ulrich Drepper <drepper@redhat.com>
4586
4587 * nscd/nscd.h (MAX_STACK_USE): Define.
4588 * nscd/mem.c (MAX_STACK_USE): Remove definition here.
4589 (gc): Initialize stack_used based on allocation in prune_cache.
4590 * nscd/cache.c (prune_cache): Use heap for mark array if necessary.
e8667ddc 4591 Clear array before use.
30294ea4
UD
4592
4593 * nscd/aicache.c (addhstaiX): Update statistics counter in case
10a4c1e9 4594 memory allocation failed.
e8667ddc
UD
4595 * nscd/hstcache.c (cache_addhst): Likewise.
4596 * nscd/grpcache.c (cache_addgr): Likewise.
4597 * nscd/servicescache.c (cache_addserv): Likewise.
4598 * nscd/pwdcache.c (cache_addpw): Likewise.
4599 * nscd/initgrcache.c (addinitgroupsX): Likewise.
30294ea4 4600
715db78b
UD
46012007-11-23 Ulrich Drepper <drepper@redhat.com>
4602
609bb071
UD
4603 * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Add open
4604 and creat system calls.
4605
715db78b
UD
4606 * sysdeps/unix/sysv/linux/check_native.c: Include <asm/types.h>.
4607
ea2c47b6
UD
46082007-11-23 Martin Schwidefsky <schwidefsky@de.ibm.com>
4609
4610 * sysdeps/unix/sysv/linux/Makefile [subdir=inet] (sysdep_headers):
4611 Add netiucv/iucv.h.
4612 * sysdeps/unix/sysv/linux/netiucv/iucv.h: New file.
4613 * sysdeps/unix/sysv/linux/opensock.c (__opensock): Add AF_IUCV
4614 protocol.
4615 * sysdeps/unix/sysv/linux/sa_len.c (__libc_sa_len): Likewise.
4616 * sysdeps/unix/sysv/linux/s390/opensock.c: New file.
4617 * sysdeps/unix/sysv/linux/s390/sa_len.c: New file.
4618
dcdcf4b9
UD
46192007-11-22 Martin Schwidefsky <schwidefsky@de.ibm.com>
4620
37143323
UD
4621 * sysdeps/s390/bits/string.h (strlen, strcpy, strncpy, strcat,
4622 strncat): Define as macros to avoid compile errors.
4623
dcdcf4b9
UD
4624 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Add open and
4625 creat entries.
4626
3a632674
UD
46272007-11-22 Ulrich Drepper <drepper@redhat.com>
4628
7ea8eb02
UD
4629 [BZ #5382]
4630 * nscd/nscd.h (NSCD_THREAD_STACKSIZE): Define.
4631 * nscd/connections.c (start_threads): Use NSCD_THREAD_STACKSIZE.
715db78b 4632 * nscd/mem.c (gc): Don't allocate arrays on the stack if they can
7ea8eb02 4633 overflow it.
70d5b6ef 4634 Partially based on a patch by Petr Baudis <pasky@suse.cz>.
7ea8eb02
UD
4635
4636 * sysdeps/unix/sysv/linux/nscd_setup_thread.c (setup_thread):
715db78b 4637 Return zero in case the thread library is not NPTL.
7ea8eb02 4638
5c3a3dba
UD
4639 [BZ #5375]
4640 * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix locking when
4641 initializing interface list.
4642
85883123
UD
4643 [BZ #5378]
4644 * nis/nss_compat/compat-initgroups.c (getgrent_next_nss): Don't
4645 use result of nss_getgrgid_r if nothing was found. For other
4646 error return with a failure.
4647 Partially based on a patch by Petr Baudis <pasky@suse.cz>.
4648
3a632674
UD
4649 * locale/programs/ld-collate.c (collate_read): Fix loop to match
4650 macro name.
4651
b73f9135
UD
46522007-11-19 Ulrich Drepper <drepper@redhat.com>
4653
ee72b971
UD
4654 * sysdeps/posix/getaddrinfo.c (defaults_scopes, scopes): New variables.
4655 (get_scope): For IPv4 scope, use scopes table.
4656 (fini): Free scopes table if necessary.
4657 (free_scopelist): New function.
4658 (scopecmp): New function.
4659 (gaiconf_init): Also handle scopev4 entries.
4660 * posix/tst-rfc3484.c (do_test): Initialize scopes.
4661 * posix/tst-rfc3484-2.c (do_test): Likewise.
4662 * posix/gai.conf: Document scopev4 defaults.
4663 * posix/Makefile (tests): Add tst-rfc3484-3.
4664 * posix/tst-rfc3484-3.c: New file.
4665
f4a79765
UD
4666 * sysdeps/posix/getaddrinfo.c (default_labels): Describe entry for
4667 Teredo tunnels.
b73f9135
UD
4668 * posix/gai.conf: Update for current default tables.
4669
429bd64d
UD
46702007-11-19 Ulrich Drepper <drepper@redhat.com>
4671
4672 * po/tr.po: Update from translation team.
4673
3c9af259
RM
46742007-11-18 Roland McGrath <roland@frob.com>
4675
76cf9889
RM
4676 * manual/arith.texi (Remainder Functions): Spelling fix.
4677 From Shaun Silk <genix@mysoul.com.au>.
4678
3c9af259
RM
4679 * sysdeps/mach/hurd/bits/fcntl.h (O_CLOEXEC): Fix value.
4680
238346ab
UD
46812007-11-17 Ulrich Drepper <drepper@redhat.com>
4682
5879ad50
UD
4683 * po/zh_CN.po: Update from translation team.
4684
238346ab
UD
4685 * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
4686 Add sys/signalfd.h and sys/eventfd.h.
4687
b80b9c77
UD
46882007-11-15 Bruno Haible <bruno@clisp.org>
4689
4690 [BZ #5346]
4691 * intl/dcigettext.c (struct known_translation_t): Turn msgid into a
4692 union.
4693 (transcmp): Use the appropriate part of s1->msgid and s2->msgid.
4694 (DCIGETTEXT): Change the allocation of the 'search' variable so that
4695 it needs only fixed stack space. Delay the initialization of
4696 msgid_len until it is needed.
4697
2da2501c
AJ
46982007-11-15 Andreas Jaeger <aj@suse.de>
4699
4700 * sysdeps/ieee754/dbl-64/sincos.tbl: Fix size of union.
4701 Reported by Christoph Quirin Lauter <christoph.lauter@ens-lyon.fr>.
4702
68a6dcf5
UD
47032007-11-15 Ulrich Drepper <drepper@redhat.com>
4704
4705 * po/ko.po: Update from translation team.
4706
43850227
UD
47072007-11-14 Ulrich Drepper <drepper@redhat.com>
4708
1e2692c9
UD
4709 * sysdeps/unix/sysv/linux/check_native.c (__check_native): Simplify
4710 significantly. The device type is also part of the ifinfomsg data.
4711
84e6cc7c 4712 * po/sv.po: Update from translation team.
cbd52634 4713 * po/nl.po: Likewise.
84e6cc7c 4714
f9e2261b
UD
4715 * nscd/cache.c (prune_cache): If cache is empty, instruct caller
4716 to wake up in 24 hours.
4717
43850227
UD
4718 * nscd/gai.c (__ioctl): Define. Include check_native.c.
4719
5742e960
UD
47202007-11-13 Ulrich Drepper <drepper@redhat.com>
4721
1a821d82
UD
4722 * po/cs.po: Update from translation team.
4723 * po/pl.po: Likewise.
4724
773e79b3
UD
4725 * include/ifaddrs.h: Remove in6ai_temporary.
4726 (struct in6addrinfo): Add index element.
4727 Declare __check_native.
4728 * inet/Makefile (aux): Add check_native.
4729 * sysdeps/unix/sysv/linux/check_native.c: New file.
4730 * sysdeps/unix/sysv/linux/check_pf.c: No need to recognize
4731 IFA_F_TEMPORARY. Pass back ifa_index.
4732 * sysdeps/posix/getaddrinfo.c: Remove netlink compatibility code.
4733 (rfc3484_sort): Add new parameter. Implement rule 7 correctly:
4734 call __check_native if necessary.
4735 (getaddrinfo): Fill in index field. Use qsort_r instead of qsort
4736 to sort addresses. Pass information about the results.
4737 * posix/tst-rfc3484.c: Adjust for addition of index field and change
4738 of rfc3484_sort interface.
4739 * posix/tst-rfc3484-2.c: Likewise.
4740
e458144c
UD
4741 * stdlib/stdlib.h: Define __compar_d_fn_t. Declare qsort_r.
4742 * include/stdlib.h: Add hidden_proto for qsort_t and adjust protoype
4743 for _quicksort.
4744 * stdlib/msort.c (qsort): Now a wrapper around qsort_r.
4745 (qsort_r): Renamed from qsort. Take additional parameter and pass it
4746 on as third parameter to compare function and _quicksort.
4747 * stdlib/qsort.c (_quicksort): Take additional parameter and pass on
4748 to the compare function.
4749 * stdlib/Versions [libc] (GLIBC_2.8): Add qsort_r.
4750 * Versions.def: Add GLIBC_2.8 for libc.
4751
bd63f380
UD
4752 * posix/tst-rfc3484.c: Adjust for addition of prefixlen field.
4753 * posix/tst-rfc3484-2.c: Likewise.
4754
5742e960
UD
4755 * include/kernel-features.h: Moved to...
4756 * sysdeps/mach/hurd/kernel-features.h: ...here.
4757
a6ac7fdb
RM
47582007-09-13 H.J. Lu <hongjiu.lu@intel.com>
4759
4760 * sysdeps/i386/i586/memcpy_chk.S: New file.
4761 * sysdeps/i386/i586/mempcpy_chk.S: Likewise.
4762 * sysdeps/i386/i586/memset_chk.S: Likewise.
4763
6f3914d5
UD
47642007-11-12 Ulrich Drepper <drepper@redhat.com>
4765
4766 * include/ifaddrs.c (struct in6addrinfo): Add prefixlen field.
4767 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Always return
4768 list of interfaces. Also store prefix length.
4769 * sysdeps/posix/getaddrinfo.c (sort_result): Add prefixlen element.
4770 (rfc3484_sort): In rule 9, for IPv4 addresses count only matching
4771 prefix if source and destination address are in the same subnet.
4772 (getaddrinfo): Always call __check_pf. Fill in prefixlen field.
4773 Always look for matching record in in6ai list.
4774 Correct source_addr_len value for IPv6->IPv4 converted records.
4775
78cf5f6a
RM
47762007-11-11 Roland McGrath <roland@frob.com>
4777
4778 * include/kernel-features.h: New file.
4779
7f745396
UD
47802007-11-10 Ulrich Drepper <drepper@redhat.com>
4781
01e7fdbb
UD
4782 * sysdeps/pthread/aio_misc.c (handle_fildes_io): Avoid unnecessary
4783 complications for 64-bit platforms.
4784
7f745396
UD
4785 * sysdeps/unix/sysv/linux/open64.c: Move __open64_2 implementation to..
4786 * sysdeps/unix/sysv/linux/open64_2.c: ...here. New file.
4787 * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines): Add
4788 open64_2.
4789 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Add open and creat
4790 entries.
4791 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
4792 * sysdeps/wordsize-64/alphasort.c: New file.
4793 * sysdeps/wordsize-64/alphasort64.c: New file.
4794 * sysdeps/wordsize-64/fseeko.c: New file.
4795 * sysdeps/wordsize-64/fseeko64.c: New file.
4796 * sysdeps/wordsize-64/ftello.c: New file.
4797 * sysdeps/wordsize-64/ftello64.c: New file.
4798 * sysdeps/wordsize-64/ftw.c: New file.
4799 * sysdeps/wordsize-64/ftw64.c: New file.
4800 * sysdeps/wordsize-64/iofgetpos.c: New file.
4801 * sysdeps/wordsize-64/iofgetpos64.c: New file.
4802 * sysdeps/wordsize-64/iofopen.c: New file.
4803 * sysdeps/wordsize-64/iofopen64.c: New file.
4804 * sysdeps/wordsize-64/iofsetpos.c: New file.
4805 * sysdeps/wordsize-64/iofsetpos64.c: New file.
4806 * sysdeps/wordsize-64/lockf.c: New file.
4807 * sysdeps/wordsize-64/lockf64.c: New file.
4808 * sysdeps/wordsize-64/mkostemp.c: New file.
4809 * sysdeps/wordsize-64/mkostemp64.c: New file.
4810 * sysdeps/wordsize-64/mkstemp.c: New file.
4811 * sysdeps/wordsize-64/mkstemp64.c: New file.
4812 * sysdeps/wordsize-64/scandir.c: New file.
4813 * sysdeps/wordsize-64/scandir64.c: New file.
4814 * sysdeps/wordsize-64/tmpfile.c: New file.
4815 * sysdeps/wordsize-64/tmpfile64.c: New file.
4816 * sysdeps/wordsize-64/versionsort.c: New file.
4817 * sysdeps/wordsize-64/versionsort64.c: New file.
4818 * sysdeps/unix/sysv/linux/wordsize-64/aio_read.c: New file.
4819 * sysdeps/unix/sysv/linux/wordsize-64/aio_read64.c: New file.
4820 * sysdeps/unix/sysv/linux/wordsize-64/aio_write.c: New file.
4821 * sysdeps/unix/sysv/linux/wordsize-64/aio_write64.c: New file.
4822 * sysdeps/unix/sysv/linux/wordsize-64/creat64.c: New file.
4823 * sysdeps/unix/sysv/linux/wordsize-64/getdirentries.c: New file.
4824 * sysdeps/unix/sysv/linux/wordsize-64/getdirentries64.c: New file.
4825 * sysdeps/unix/sysv/linux/wordsize-64/lio_listio.c: New file.
4826 * sysdeps/unix/sysv/linux/wordsize-64/lio_listio64.c: New file.
4827 * sysdeps/unix/sysv/linux/wordsize-64/open64.c: New file.
4828 * sysdeps/unix/sysv/linux/wordsize-64/openat.c: New file.
4829 * sysdeps/unix/sysv/linux/wordsize-64/openat64.c: New file.
4830
4831 * crypt/sha256-crypt.c: Fix a comment.
4832 * crypt/sha512-crypt.c: Likewise.
4833
f6ed654c
UD
48342007-11-07 H.J. Lu <hongjiu.lu@intel.com>
4835
4836 * sysdeps/x86_64/memset.S: Add sfence after movnti.
4837
f2a8406a
UD
48382007-11-07 Ulrich Drepper <drepper@redhat.com>
4839
4840 [BZ #5277]
4841 * iconv/loop.c (STANDARD_TO_LOOP_ERR_HANDLER): If conversion failed
4842 because output buffer is too small break, don't loop.
4843 * iconvdata/Makefile (tests): Add bug-iconv6.
4844 * iconvdata/bug-iconv6.c: New file.
4845
7fe4e0e8
UD
48462007-11-06 Ulrich Drepper <drepper@redhat.com>
4847
9ca230d6
UD
4848 * stdio-common/vfprintf.c (vfprintf): Compute necessary buffer size
4849 with size_t type.
4850 * stdio-common/printf_fp.c (__print_fp): Change chars_needed type to
4851 size_t. Add casts where needed.
4852
7fe4e0e8
UD
4853 * nscd/selinux.c (nscd_request_avc_has_perm): When compiled with
4854 old headers, don't call avc_has_perm if we don't have the
4855 permission information.
4856
b92e3780
UD
48572007-11-05 Daniel Jacobowitz <dan@codesourcery.com>
4858
4859 * elf/rtld.c (dl_main): Use the page size to find the map start.
4860
ffb1b882
UD
48612007-11-05 Ulrich Drepper <drepper@redhat.com>
4862
94a749f6
UD
4863 * time/tzfile.c (__tzfile_read): Fix check for version 0 data files.
4864 Patch by Szymon Siwek <sls@poczta.wp.pl>.
4865
ffb1b882
UD
4866 * nscd/aicache.c (addhstaiX): Check herrno after IPv4 lookup only
4867 when the lookup call failed.
4868
4869 * nscd/nscd.h (struct database_dyn): Rename prunelock to prune_lock.
4870 Add prune_cond and wakeup_time.
4871 (CACHE_PRUNE_INTERNAL): Define.
4872 Update declarations of prune_cache and setup_thread.
4873 * nscd/connections.c (dbs): Update initializers.
4874 (CACHE_PRUNE_INTERNAL): Moved to nscd.h.
4875 (nscd_init): Default number of threads is now 4.
4876 (invalidate_cache): Take lock before calling prune_cache.
4877 (handle_request): If SELinux forbids the request, say so.
4878 (readylist_cond): Use static initializer.
4879 (nscd_run_prune): New function. Used only by pruning threads.
4880 (nscd_run_worder): Renamed from nscd_run. Remove support for pruning
4881 here.
4882 (fd_ready): Update nscd_run reference.
4883 (start_threads): No need to initialize readylist_cond.
4884 Start pruning threads separately.
4885 * nscd/nscd_setup_thread.c: Change return value type to int and always
4886 return 0.
4887 * sysdeps/unix/sysv/linux/nscd_setup_thread.c: Change return value type
4888 to int and return nonzero value if we can use the TID address hack.
4889 * nscd/cache.c (cache_add): If next wakeup time of cleanup thread for
4890 the database is later than the new entry's timeout, update the
4891 wakeup time and wake the cleanup thread.
4892 (prune_cache): Return seconds the next entry in the database is still
4893 valid. Remove locking for pruning here.
4894 * nscd/nscd.conf: Document default number of threads.
4895
4c48ef06
UD
48962007-10-31 Ulrich Drepper <drepper@redhat.com>
4897
41ff2a49
UD
4898 * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Make sure
4899 stack is properly aligned for the target function.
4900 Correct unwind info.
ffb1b882 4901
4c48ef06
UD
4902 * elf/rtld.c (dl_main): Initialize stack and pointer guard early
4903 when using auditing libraries.
4904
384ca551
UD
49052007-10-29 Ulrich Drepper <drepper@redhat.com>
4906
31e2791c
UD
4907 * resolv/Versions [libresolv] (GLIBC_PRIVATE): Add
4908 _nss_dns_getnetbyaddr2_r.
4909 * resolv/nss_dns/dns-host.c: Define _nss_dns_getnetbyaddr2_r. Pass
4910 extra parameter to getanswer_r.
4911 (_nss_dns_getnetbyaddr_r): Now a wrapper around
4912 _nss_dns_getnetbyaddr2_r.
4913
384ca551
UD
4914 * nscd/Makefile (nscd-modules): Replace gethstbynm2_r with
4915 gethstbynm3_r.
4916 * nscd/gethstbynm2_r.c: Remove.
4917 * nscd/gethstbynm3_r.c: New file.
4918 * nscd/aicache.c (addhstaiX): Use __gethostbyaddr2_r instead of
4919 __gethostbyaddr_r.
4920 * nscd/gethstbyad_r.c: Generate __gethostbyaddr2_r function. Define
4921 __gethostbyaddr_r compatibility wrapper.
4922 * nscd/hstcache.c (cache_addhst): Add ttl parameter. Use it when
4923 determining timeout of entry.
4924 (lookup): Take new parameter and pass it to __gethostbyname3_r and
4925 __gethostbyaddr2_r.
4926 (addhstbyX): Pass reference to variable for TTL to lookup and
4927 cache_addhst.
4928 * nss/Versions [glibc] (GLIBC_PRIVATE): Export __nss_passwd_lookup2,
4929 __nss_group_lookup2, __nss_hosts_lookup2, __nss_services_lookup2,
4930 and __nss_next2. Remove __nss_services_lookup.
4931 * nss/XXX-lookup.c: Name function now *_lookup2. Add new parameter.
4932 Add compat wrapper.
4933 * nss/getXXbyYY_r.c: Changes to call new *_lookup2 functions and
4934 __nss_next2.
4935 * nss/getXXent_r.c: Likewise.
4936 * nss/getnssent_r.c: Likewise.
4937 * nss/nsswitch.c (__nss_lookup): Add new parameter. If first function
4938 does not exist in module, try the optional second name.
4939 (__nss_next2): New function.
4940 (__nss_next): Now wrapper around __nss_next2.
4941 * nss/nsswitch.h: Adjust __nss_lookup prototype.
4942 Declare __nss_next2.
4943 Adjust definition of db_lookup_function type.
4944 * nss/service-lookup.c: Define NO_COMPAT.
4945 * include/netdb.h: Declare __gethostbyaddr2_r and __gethostbyname3_r.
4946 * inet/ether_hton.c: Use __nss_next2 instead of __nss_next.
4947 * inet/ether_ntoh.c: Likewise.
4948 * sunrpc/netname.c: Likewise.
4949 * sunrpc/publickey.c: Likewise.
4950 * inet/getnetgrent.c: Likewise. Adjust calls to __nss_lookup.
4951 * inet/gethstbyad_r.c (DB_LOOKUP_FCT): Change to __nss_hosts_lookup2.
4952 * inet/gethstbynm2_r.c (DB_LOOKUP_FCT): Likewise.
4953 * inet/gethstbynm_r.c (DB_LOOKUP_FCT): Likewise.
4954 * inet/gethstent_r.c (DB_LOOKUP_FCT): Likewise.
4955
4956 * nscd/aicache.c (addhstaiX): Fix default TTL handling.
4957
5e37840c 4958 * inet/getnetgrent_r.c (setup): Encrypt static pointer.
384ca551 4959
88197030
UD
49602007-10-28 Ulrich Drepper <drepper@redhat.com>
4961
f160a450
UD
4962 [BZ #5204]
4963 * crypt/sha256c-test.c: Define TIMEOUT to 6 for ancient hardware.
4964 * crypt/sha512c-test.c: Likewise.
4965
4c6b2202
UD
4966 [BZ #5225]
4967 * stdio-common/vfscanf.c (_IO_vfwscanf): Don't misuse wp pointer
4968 to keep track of end of %[ format string element.
22c915ac
UD
4969 * stdio-common/Makefile (tests): Add bug20.
4970 * stdio-common/bug20.c: New file.
4c6b2202 4971
88197030
UD
4972 [BZ #5222]
4973 * elf/dl-load.c (_dl_rtld_di_serinfo): Correct handling of short
4974 path elements in counting mode.
4975
05d69147
UD
49762007-10-27 Andreas Jaeger <aj@suse.de>
4977
94833f11
UD
4978 [BZ #5040]
4979 * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLRDHUP): Add value.
4980
05d69147
UD
4981 [BZ #3112]
4982 * sysdeps/ia64/backtrace.c (init): Free shared library if incorrect.
4983 (__cleanup): Free shared library when exiting.
4984 * sysdeps/i386/backtrace.c (init): Free shared library if incorrect.
4985 (__cleanup): Free shared library when exiting.
4986
e6b29af8
UD
49872006-04-14 H.J. Lu <hongjiu.lu@intel.com>
4988
4989 [BZ #2549]
4990 * math/libm-test.inc (check_float_internal): Support
4991 denormalized return.
4992
ad3371fb
UD
49932007-10-23 Andreas Jaeger <aj@suse.de>
4994
4995 [BZ #5208]
4996 * sysdeps/unix/sysv/linux/readahead.c (__readahead): Use
4997 __LONG_LONG_PAIR to handle little endian byte order.
4998 Suggested by abhishekrai@google.com
4999
666aa020
UD
50002007-10-27 Ulrich Drepper <drepper@redhat.com>
5001
5002 * malloc/arena.c [!NO_THREADS]: Use ATFORK_MEM if defined.
5003
8ad343b3
UD
50042007-10-26 Ulrich Drepper <drepper@redhat.com>
5005
5006 * nscd/cache.c (prune_cache): Move test for modified file outside
5007 of locking.
5008
9251c568
AJ
50092007-10-21 Andreas Jaeger <aj@suse.de>
5010
5011 * manual/texinfo.tex: Update to latest version.
5012
5013 * manual/sysinfo.texi (System Parameters): Fix Formatting.
5014
5015 * manual/arith.texi (Status bit operations): Fix formatting.
5016
5017 * manual/errno.texi (Error Messages): Fix formatting.
5018
5019 * manual/sysinfo.texi (System Parameters): Fix formatting.
5020
5021 * manual/libc.texinfo: Update VERSION and UPDATED.
5022
260b2e06
RM
50232007-10-19 Roland McGrath <roland@redhat.com>
5024
5025 * elf/Makefile ($(objpfx)ld.so): Use $(AWK).
5026
46ae8850
JJ
50272007-10-06 David S. Miller <davem@davemloft.net>
5028
5029 * configure.in: Add sparcv9v2 and sparc64v2.
5030 * scripts/config.sub: Likewise.
5031 * configure: Regenerate.
5032 * elf/elf.h (HWCAP_SPARC_N2): New.
5033 * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Bump to 8.
5034 * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add 'v9v2'.
5035 (HWCAP_IMPORTANT): Add HWCAP_SPARC_N2.
5036 * sysdeps/sparc/sparc32/sparcv9/sparcv9v2/memcpy.S: New file.
5037 * sysdeps/sparc/sparc32/sparcv9/sparcv9v2/memset.S: New file.
5038 * sysdeps/sparc/sparc64/sparcv9v2/memcpy.S: New file.
5039 * sysdeps/sparc/sparc64/sparcv9v2/memset.S: New file.
5040
6fbfbd80
UD
50412007-10-18 Ulrich Drepper <drepper@redhat.com>
5042
5043 * sunrpc/clnt_udp.c (clntudp_call): Don't block in recvfrom call
5044 even if the poll result indicates there is data to read.
5045 Patch by Jeff Moyer <jmoyer@redhat.com>.
5046
39cfc9fa
RM
50472007-10-18 Roland McGrath <roland@redhat.com>
5048
5049 * elf/elf.h (NT_PPC_VMX): New macro.
28919a77 5050
39cfc9fa 50512007-10-17 Ulrich Drepper <drepper@redhat.com>
28919a77
UD
5052
5053 * version.h (VERSION): Set to 2.7.90.
5054
ed13ccf1
JJ
50552007-10-17 Jakub Jelinek <jakub@redhat.com>
5056
5057 * sysdeps/x86_64/memset.S (bzero): Renamed to __bzero. Add
5058 weak_alias.
5059
ee9fd869
RM
50602007-10-17 Roland McGrath <roland@frob.com>
5061
5062 * sysdeps/mach/hurd/bits/fcntl.h [__USE_GNU__] (F_DUPFD_CLOEXEC): New.
5063 * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Implement it.
5064
1aa5e4d7
UD
50652007-10-17 Ulrich Drepper <drepper@redhat.com>
5066
50c9fbbf 5067 * version.h (VERSION): Bump to 2.7.
777bc4bf 5068 * include/features.h (__GLIBC_MINOR__): Bump to 7.
50c9fbbf 5069
58423c7d
UD
5070 [BZ #5186]
5071 * time/tzset.c (__tz_convert): Don't force testing for a change of
5072 TZ if not called from localtime. But then also see whether the
5073 file changed, in case __use_tzfile is set.
5074
1aa5e4d7
UD
5075 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define F_DUPFD_CLOEXEC.
5076 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
5077 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
5078 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
5079 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
5080 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
5081 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
5082 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
5083
fc4837e5
UD
50842007-10-17 Jakub Jelinek <jakub@redhat.com>
5085
5086 * sysdeps/posix/getaddrinfo.c (getaddrinfo): When sorting addresses
5087 and admin selects to be able to replace the gai.conf file, lock
5088 data structures around the qsort call.
5089
62eaf7c8
UD
50902007-10-17 Ulrich Drepper <drepper@redhat.com>
5091
406f28db
UD
5092 * sysdeps/x86_64/cacheinfo.c: Comment out code added in support of
5093 new memset.
ac1cb5da 5094 * sysdeps/x86_64/memset.S: Revert to old version for now. The cost is
406f28db
UD
5095 too high for the improvements. Implement bzero unconditionally for
5096 use in libc.
ac1cb5da
UD
5097
50982007-10-17 Ulrich Drepper <drepper@redhat.com>
5099 Jakub Jelinek <jakub@redhat.com>
5100
62eaf7c8
UD
5101 * time/tzfile.c (__tzfile_read): Read POSIX TZ string if available
5102 even when time_t is 32-bit.
5103 (__tzfile_compute): Override POSIX TZ string STD/DST zone names if
5104 timezone data read by __tzfile_default. Ensure __tzname[0] is
5105 always set after the search.
5106
6a649d25
UD
51072007-10-16 Ulrich Drepper <drepper@redhat.com>
5108
5109 * time/tzfile.c (__tzfile_read): Help the compiler recognize
5110 unreachable code on 32-bit machines.
5111
800d6f9e
UD
51122007-10-16 Jakub Jelinek <jakub@redhat.com>
5113
5114 [BZ #5184]
5115 * time/strftime_l.c: Include stdbool.h.
5116 (my_strftime): New wrapper, old function renamed to...
5117 (__strftime_internal): ... new function. Add tzset_called
5118 argument, pass it down to recursive calls, don't call tzset ()
5119 if already true, set to true after call to tzset ().
62eaf7c8 5120
69819d92
UD
51212007-10-16 Ulrich Drepper <drepper@redhat.com>
5122
5123 * time/tzfile.c (__tzfile_read): Take extra memory requested by caller
5124 into account when copying TZ string.
5125
62eaf7c8
UD
51262007-10-16 Jakub Jelinek <jakub@redhat.com>
5127
5128 * time/tzfile.c (__tzfile_compute): For use_last case set i to
5129 num_transition rather than num_transitions - 1.
5130
0308ad66
JJ
51312007-10-16 Jakub Jelinek <jakub@redhat.com>
5132
8d137b60
JJ
5133 * sysdeps/x86_64/memset.S (memset): Fix sse2_nt_move
5134 PIC indirect jump.
5135
0308ad66
JJ
5136 * sysdeps/x86_64/memset.S: Jump from bzero to memset using
5137 a local label rather than HIDDEN_JUMPTARGET.
5138
e2b393bc
UD
51392007-10-15 Ulrich Drepper <drepper@redhat.com>
5140
5141 * sysdeps/x86_64/cacheinfo.c (__x86_64_shared_cache_size): Define.
5142 (init_cacheinfo): Initialize it.
5143 * sysdeps/x86_64/memset.S: Use __x86_64_shared_cache_size.
5144 Always define bzero.
5145 Remove non-glibc code.
5146 * sysdeps/x86_64/bzero.S: Make an empty file.
5147
51482007-10-15 H.J. Lu <hongjiu.lu@intel.com>
5149
5150 * sysdeps/x86_64/cacheinfo.c
5151 (__x86_64_preferred_memory_instruction): New.
5152 (init_cacheinfo): Initialize __x86_64_preferred_memory_instruction.
5153
5154 * sysdeps/x86_64/memset.S: Rewrite.
5155
0fbfcb7b
RM
51562007-10-15 Roland McGrath <roland@redhat.com>
5157
5158 * po/libc.pot: Regenerated.
5159
2884dad4
UD
51602007-10-15 Ulrich Drepper <drepper@redhat.com>
5161
e2b393bc 5162 * nss/getXXbyYY_r.c (REENTRANT_NAME): Mangle startp and start_fct
d96a2216
UD
5163 pointers.
5164
2884dad4
UD
5165 [BZ #3425]
5166 * resolv/nss_dns/dns-host.c (getanswer_r): Fail with
5167 NSS_STATUS_NOTFOUND if the server replied with only a CNAME and no
5168 address record to T_A/T_AAAA requests.
5169
89dc9d4c
UD
51702007-10-14 Ulrich Drepper <drepper@redhat.com>
5171
8d97ac13
UD
5172 * posix/glob.c: Reimplement link_exists_p to use fstatat64.
5173
1b6aa63f
UD
5174 * posix/glob.c: Add some branch prediction throughout.
5175
895a08c0
UD
5176 * nscd/nscd_getgr_r.c (nscd_getgr_r): Store result of successful
5177 read from nscd.
5178
6f55ed88
UD
5179 * sysdeps/posix/getaddrinfo.c (struct sort_result): Add
5180 service_order.
8d62c8ab
UD
5181 (rfc3484_sort): Make sure that even if qsort doesn't support
5182 stable sorting out sorting here is stable by comparing service_order.
6f55ed88 5183 (getaddrinfo): Initialize service_order.
a94673e6
UD
5184 * posix/tst-rfc3484.c (do_test): Adjust for addition of
5185 service_order field to sorting structure.
dfcf64ce 5186 * posix/tst-rfc3484-2.c (do_test): Likewise.
6f55ed88 5187
fa76dde2
UD
5188 * include/time.h: Declare __tzset_parse_tz and __tzset_compute.
5189 * time/tzset.c (tzset_internal): Break TZ string parsing out into
5190 __tzset_parse_tz and updating of daylight, timezone, tzname into
5191 update_vars.
5192 (__tz_compute): Renamed from tz_compute. Take additional parameters.
5193 (__tz_convert): Updating of tm_isdst, tm_zone, and tm_gmtoff now
5194 happens in __tz_compute.
5195 * time/tzfile.c (__tzfile_read): Also read TZ string.
5196 (find_transition): Fold into __tzfile_compute.
5197 (__tzfile_compute): For times beyond the last transition try to
5198 use the TZ string.
5199 * timezone/tst-timezone.c: Information in daylight and tzname does
5200 change for Asia/Tokyo timezone with more concrete information.
5201 Remove the test.
5202
5203 * include/stdio.h: Add libc_hidden_proto for ftello.
5204 * libio/ftello.c: Add libc_hidden_def.
5205
89dc9d4c
UD
5206 [BZ #1140]
5207 * time/tzfile.c (__tzfile_compute): Compute tzname[] values based
5208 on the specified time and not the last entries in the file. Move
5209 code to determine tzname[] to...
5210 (find_transition): ...here. Add ugly guess for times before the
5211 first transition.
5212
f7140274
UD
52132007-10-13 Ulrich Drepper <drepper@redhat.com>
5214
cfca0aa3
UD
5215 [BZ #3195]
5216 * nscd/nscd_getai.c (__nscd_getai): Set errno to 0 in case we found
5217 no entry.
5218 * nscd/nscd_getgr.c (nscd_getgr_r): Likewise.
5219 * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
5220 * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
5221 * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
5222
43d3e6bd
UD
5223 * nscd/nscd_getgr_r.c (nscd_getgr_r): Optimize a bit: use simpler
5224 read mechanism when there are no group members and avoid no-op
5225 read syscall in this case.
5226
f7140274
UD
5227 [BZ #3242]
5228 * nscd/nscd_helper.c (wait_on_socket): Take timeout as parameter.
5229 (__readall): If reading failed due to EAGAIN error wait a bit
5230 and possibly try again.
5231 (__readvall): Likewise.
5232
656f02ce
UD
52332007-10-13 Bruno Haible <bruno@clisp.org>
5234
5235 * intl/dcigettext.c (_nl_find_msg): Unlock the conversions_lock
5236 when we cannot recode the message.
5237
0ea49677
UD
52382007-10-13 Ulrich Drepper <drepper@redhat.com>
5239
5240 [BZ #4359]
5241 * libio/__freading.c (__freading): Don't return true for
ed36f224
UD
5242 write-only streams. For read/write streams, check whether we
5243 performed a read operation already.
7e39d802
UD
5244 * libio/Makefile (tests): Add tst-ext2.
5245 * libio/tst-ext2.c: New file.
0ea49677 5246
78a9b2dc
UD
52472007-10-12 Ulrich Drepper <drepper@redhat.com>
5248
fab1a490
UD
5249 * locale/programs/repertoire.c (repertoire_read): Always free
5250 memory for repertoire file name [Coverity CID 270].
5251
78a9b2dc
UD
5252 * elf/cache.c (save_aux_cache): Free memory allocated for
5253 temporary file name [Coverity CID 267].
5254
29d49a1a
JJ
52552007-10-12 Jakub Jelinek <jakub@redhat.com>
5256
5257 * misc/Makefile (headers): Add bits/error.h.
5258
d074d36d
UD
52592007-10-12 Ulrich Drepper <drepper@redhat.com>
5260
b7d1c5fa
UD
5261 * posix/fnmatch_loop.c: Take rule index returned as part of
5262 findidx return value into account when accessing weights.
5263 * posix/regcomp.c: Likewise.
5264 * posix/regexec.c: Likewise.
5265
d074d36d
UD
5266 * locale/programs/ld-collate.c (collate_read): Optimize a bit.
5267 (skip_to): Fix problems with parameter of elifdef/elifndef.
5268
26a51060
UD
52692007-10-11 Ulrich Drepper <drepper@redhat.com>
5270
5271 * iconv/gconv_simple.c: Add some branch prediction.
5272
6dd3748b
UD
52732007-10-12 Jakub Jelinek <jakub@redhat.com>
5274
5275 * locale/programs/ld-collate.c (collate_read): If ignore_content
5276 and nowtok is tok_define, eat any tok_eol tokens.
5277
d0b5557d
JJ
52782007-10-11 Jakub Jelinek <jakub@redhat.com>
5279
5280 * sysdeps/gnu/netinet/tcp.h: Include sys/socket.h if __USE_MISC.
5281 (struct tcp_md5sig): Change tcpm_addr type to struct sockaddr_storage.
5282
5283 * inet/netinet/in.h: Don't include bits/socket.h.
5284 * sysdeps/unix/sysv/linux/bits/socket.h: Only check _SYS_SOCKET_H
5285 macro.
5286 * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Likewise.
5287
3a054d7a
UD
52882007-10-10 Ulrich Drepper <drepper@redhat.com>
5289
5290 * locale/programs/locfile-token.h: Remove tok_elif, add tok_elifdef
5291 and tok_elifndef.
5292 * locale/programs/locfile-kw.gperf: Likewise.
5293 * locale/programs/ld-collate.c: Implement primitive preprocessor.
5294
c06b7169
UD
52952007-10-10 Jakub Jelinek <jakub@redhat.com>
5296
5297 * stdio-common/printf-parse.h: Include string.h and wchar.h.
5298 (__find_specwc): Change into __extern_always_inline function.
5299 (__find_specmb): Likewise. Remove ps argument. Use __strchrnul.
5300 (__parse_one_specmb): Remove ps argument.
5301 * stdio-common/vfprintf.c (vfprintf): Remove mbstate variable.
5302 Adjust __find_specmb and __parse_one_specmb callers.
5303 * stdio-common/printf-prs.c (parse_printf_format): Likewise.
5304 * stdio-common/printf-parsemb.c (__find_specwc, __find_specmb):
5305 Removed.
5306 (__parse_one_specmb): Remove ps argument, adjust __find_specmb
5307 caller.
5308
5a01ab7b
UD
53092007-10-09 Ulrich Drepper <drepper@redhat.com>
5310
5311 * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Work around problem
5312 with some Pentium Ds.
5313
e3f8e049
UD
53142007-10-08 Ulrich Drepper <drepper@redhat.com>
5315
5316 * sysdeps/unix/sysv/linux/eventfd_read.c (eventfd_read): Use
5317 __read not read.
5318 * sysdeps/unix/sysv/linux/eventfd_write.c (eventfd_write): Use
5319 __write not write.
5320
a1a363d2
UD
53212007-10-07 Ulrich Drepper <drepper@redhat.com>
5322
a1160714
UD
5323 [BZ #181]
5324 * locale/C-time.c: Set week_1stday data to 19971201.
659a9013
UD
5325 * locale/programs/ld-time.c (time_finish): Default for
5326 first_workday is Monday.
a1160714 5327
bb27a6eb
UD
5328 [BZ #2633]
5329 * wcsmbs/wchar.h: Move many C99 functions into std namespace.
5330
c8d48fae
UD
5331 [BZ #5103]
5332 * posix/glob.c (glob): Recognize patterns starting \/.
5333 * posix/tst-gnuglob.c (find_file): Handle absolute path names.
5334 (main): Add test for pattern starting \/.
5335
a1a363d2
UD
5336 * misc/error.h: Use __const instead of const.
5337 * misc/bits/error.h: Likewise.
5338
53392007-10-07 Andreas Jaeger <aj@suse.de>
5340
5341 * include/bits/error.h: New file.
5342
5343 * misc/bits/error.h (error_at_line): Fix prototype.
5344
71894681
UD
53452007-10-06 Ulrich Drepper <drepper@redhat.com>
5346
a6fa5328
UD
5347 [BZ #3924]
5348 * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix a few
5349 more little bugs in creating the stack frame when pltexit has to
5350 be called.
5351
8c7661bc 5352 * nscd/nscd_helper.c (__nscd_cache_search): Prevent endless loops.
50607309 5353 * nscd/connections.c (verify_persistent_db): Recognize circular lists.
8c7661bc 5354
c039eedd
UD
5355 [BZ #4407]
5356 * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Fix *signgamp for -0.0.
5357 * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
5358 * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
5359 * math/libm-test.inc: Add test for this case.
5360
71894681
UD
5361 [BZ #5010]
5362 * sunrpc/svc.c (struct svc_callout): Add sc_mapped element.
5363 (svc_register): Initialize sc_mapped. Set to TRUE if call to
5364 map service succeeded.
5365 (svc_is_mapped): New function.
5366 (svc_unregister): Use it before trying to unmap service.
5367
34c2c092
UD
53682007-10-05 Ulrich Drepper <drepper@redhat.com>
5369
d10737e4
UD
5370 * timezone/zic.c: Update from tzcode2007h.
5371
5372 [BZ #5063]
5373 * timezone/africa: Update from tzdata2007h.
5374 * timezone/antarctica: Likewise.
5375 * timezone/asia: Likewise.
5376 * timezone/australasia: Likewise.
5377 * timezone/europe: Likewise.
5378 * timezone/leapseconds: Likewise.
5379 * timezone/northamerica: Likewise.
5380 * timezone/southamerica: Likewise.
5381 * timzeone/zone.tab: Likewise.
5382
0304f168
UD
5383 [BZ #5104]
5384 * elf/do-lookup.h (do_lookup_x): Don't ignore STT_COMMON symbols.
5385
a83b5649
UD
5386 [BZ #5113]
5387 * string/bits/string2.h (__strdup): Cast parameters to calloc to
5388 avoid warning with -Wconversion.
5389 (__strndup): Likewise.
c039eedd 5390 Half the patch by Christian Iseli <christian.iseli@licr.org>.
a83b5649 5391
3e6ce4d7
UD
5392 [BZ #5112]
5393 * nscd/connections.c (restart): Don't resync if database is
5394 disabled. Patch mostly by Brian De Wolf <bldewolf@csupomona.edu>.
5395
8e351378
UD
5396 * sysdeps/gnu/netinet/tcp.h: Define TCP_MD5SIG, TCP_MD5SIG_MAXKEYLEN,
5397 struct tcp_md5sig. Extend struct tcp_info according to recent kernels.
5398
5399 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add eventfd,
5400 evetnfd_read, eventfd_write.
5401 * sysdeps/unix/sysv/linux/eventfd.c: New file.
5402 * sysdeps/unix/sysv/linux/eventfd_read.c: New file.
5403 * sysdeps/unix/sysv/linux/eventfd_write.c: New file.
5404 * sysdeps/unix/sysv/linux/sys/eventfd.h: New file.
d10737e4 5405 * sysdeps/unix/sysv/linux/Versions: Export eventfd, eventfd_read,
8e351378
UD
5406 eventfd_write for GLIBC_2.7.
5407
34c2c092
UD
5408 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add signalfd.
5409 * sysdeps/unix/sysv/linux/signalfd.c: New file.
5410 * sysdeps/unix/sysv/linux/sys/signalfd.h: New file.
5411 * sysdeps/unix/sysv/linux/Versions: Export signalfd for GLIBC_2.7.
5412
6789aaaa 54132007-10-04 Jakub Jelinek <jakub@redhat.com>
375d9429
UD
5414
5415 * stdlib/msort.c: Include stdint.h.
5416 (struct msort_param): New type.
5417 (msort_with_tmp): Use struct msort_param pointer for unchanging
5418 parameters. Add optimized handling for several common sizes
5419 and indirect sorting mode.
5420 (qsort): Adjust msort_with_tmp callers. For big S use indirect
5421 sorting.
5422 Suggested by Belazougui Djamel .
5423
5424 * stdlib/Makefile (tests): Add tst-qsort2.
5425 * stdlib/tst-qsort2.c: New test.
5426
b80bfc8b
UD
54272007-10-04 Ulrich Drepper <drepper@redhat.com>
5428
174420d2
UD
5429 * login/login_tty.c (login_tty): The Linux kernel can return EBUSY
5430 for dup2 in case another thread races with the current one. Retry
5431 in this case.
5432
b80bfc8b
UD
5433 * misc/error.h: Remove support for use outside of libc. We have to
5434 include <features.h> now. Include <bits/error.h> if possible.
5435 * misc/bits/error.h: New file.
5436
6789aaaa 54372007-10-03 Jakub Jelinek <jakub@redhat.com>
ee868c89 5438
e5dd2178
UD
5439 * string/bits/string3.h (memcpy, memmove, mempcpy, memset, bcopy,
5440 bzero, strcpy, stpcpy, strncpy, strcat, strncat): Use
5441 __extern_always_inline functions unconditionally, drop macros.
5442
ac97dec1
UD
5443 * misc/sys/cdefs.h (__REDIRECT_LDBL, __REDIRECT_NTH_LDBL): New macros.
5444 * wcsmbs/bits/wchar2.h (__swprintf_alias, __vswprintf_alias): Use
5445 __REDIRECT_NTH_LDBL macro rather than __REDIRECT_NTH.
5446
ee868c89
UD
5447 * misc/sys/cdefs.h (__extern_always_inline): For GCC 4.3+
5448 add __artificial__ attribute.
5449
80e069e0
UD
54502007-10-02 Ulrich Drepper <drepper@redhat.com>
5451
6e682cf5
UD
5452 * string/strcoll_l.c (STRCOLL): Correct handling of switching from
5453 backward to forward direction.
5454
90241a20
UD
5455 * string/strcoll_l.c (STRCOLL): Correct test for alloca use.
5456
80e069e0
UD
5457 [BZ #645]
5458 * locale/programs/ld-collate.c (collate_finish): Compare against last
5459 used section which is known to have rules defined.
5460 (collate_read): After order_start, correctly record order of sections
5461 and queue sections up.
5462
035ef8d7
UD
54632007-10-01 Ulrich Drepper <drepper@redhat.com>
5464
95bddc0c
UD
5465 [BZ #5071]
5466 * malloc/malloc.c (mremap_chunk): Avoid resizing of new block has
5467 the same number of pages.
5468 Patch by Tomash Brechko <tomash.brechko@gmail.com>.
5469
c8caf089
UD
5470 * locale/programs/ld-collate.c (collate_read): After initial copy
5471 statement, continue in state 0.
5472
035ef8d7
UD
5473 * include/stdio_ext.h (__fsetlocking): Define as macro.
5474
592a95ee
UD
54752007-09-30 Ulrich Drepper <drepper@redhat.com>
5476
56ebeb41
UD
5477 * locale/programs/ld-collate.c (collate_finish): Compare all bytes
5478 of section order.
5479
592a95ee
UD
5480 * po/pt_BR.po: Fix typo.
5481
6c522e21
UD
54822007-09-29 Ulrich Drepper <drepper@redhat.com>
5483
8ad5c3cd
UD
5484 * iconvdata/Makefile (modules): Add ISO8859-9E.
5485 (distribute): Add iso8859-9e.c.
5486 (gen-8bit-gap-modules): Add iso8859-9e.
5487 * iconvdata/iso8859-9e.c: New file.
5488 * iconvdata/gconv-modules: Add entries for ISO-8859-9E.
5489 * iconvdata/TESTS: Likewise.
5490 * iconvdata/tst-tables.sh: Likewise.
5491
5492 * iconvdata/koi8-r.c (HAS_HOLES): Define to 0.
5493
6c522e21
UD
5494 * locale/iso-639.def: Add several new entries.
5495
385b4cf4
UD
54962007-09-24 Jakub Jelinek <jakub@redhat.com>
5497
5498 * sysdeps/generic/ldsodefs.h (struct dl_scope_free_list): Store
5499 void * pointers instead of struct link_map **.
5500 (_dl_scope_free): Change argument type to void *.
5501 * include/link.h (struct link_map): Change type of l_reldeps
5502 to struct link_map_reldeps, move l_reldepsact into that
5503 struct too.
5504 * elf/dl-deps.c: Include atomic.h.
5505 (_dl_map_object_deps): Only change l->l_initfini when it is
5506 fully populated, use _dl_scope_free for freeing it. Optimize
5507 removal of libs from reldeps by using l_reserved flag, when
5508 some removal is needed, allocate a new list instead of
5509 reallocating and free the old with _dl_scope_free. Adjust
5510 for l_reldeps and l_reldepsact changes.
5511 * elf/dl-lookup.c (add_dependency): Likewise. Reorganize to allow
5512 searching in l_initfini and l_reldeps without holding dl_load_lock.
5513 * elf/dl-fini.c (_dl_sort_fini): Adjust for l_reldeps and
5514 l_reldepsact changes.
5515 * elf/dl-close.c (_dl_close_worker): Likewise.
5516 * elf/dl-open.c (_dl_scope_free): Change argument type to void *.
5517
90bf831b
UD
55182007-09-28 Ulrich Drepper <drepper@redhat.com>
5519
5520 * iconvdata/Makefile (modules): Add KOI8-RU.
5521 (distribute): Add koi8-ru.c.
5522 (gen-8bit-gap-modules): Add koi8-ru.
5523 * iconvdata/koi8-ru.c: New file.
5524 * iconvdata/gconv-modules: Add entries for KOI8-RU.
5525 * iconvdata/TESTS: Likewise.
5526 * iconvdata/tst-tables.sh: Likewise.
5527
5528 * iconvdata/koi8-r.c (HAS_HOLES): Define to 0.
5529
d6cd6bf4
UD
55302007-09-26 Jakub Jelinek <jakub@redhat.com>
5531
5532 * misc/sys/cdefs.h (__warndecl, __errordecl): For GCC 4.3+ define
5533 with __warning__/__error__ attributes.
5534 (__warnattr): Define.
5535 * stdlib/bits/stdlib.h (__realpath_chk_warn, __ptsname_r_chk_warn,
5536 __mbstowcs_chk_warn, __wcstombs_chk_warn): New aliases with
5537 __warnattr.
5538 (realpath, ptsname_r, mbstowcs, wcstombs): Call __*_chk_warn instead
5539 of __*_chk if compile time detectable overflow is found.
5540 * libio/bits/stdio2.h (__fgets_chk_warn, __fread_chk_warn,
5541 __fgets_unlocked_chk_warn, __fread_unlocked_chk_warn): New aliases
5542 with __warnattr.
5543 (fgets, fread, fgets_unlocked, fread_unlocked): Call __*_chk_warn
5544 instead of __*_chk if compile time detectable overflow is found.
5545 (__gets_alias): Rename to...
5546 (__gets_warn): ... this. Add __warnattr.
5547 (gets): Call __gets_warn instead of __gets_alias.
5548 * socket/bits/socket2.h (__recv_chk_warn, __recvfrom_chk_warn): New
5549 aliases with __warnattr.
5550 (recv, recvfrom): Call __*_chk_warn instead of __*_chk if compile
5551 time detectable overflow is found.
5552 * posix/bits/unistd.h (__read_chk_warn, __pread_chk_warn,
5553 __pread64_chk_warn, __readlink_chk_warn, __readlinkat_chk_warn,
5554 __getcwd_chk_warn, __confstr_chk_warn, __getgroups_chk_warn,
5555 __ttyname_r_chk_warn, __getlogin_r_chk_warn, __gethostname_chk_warn,
5556 __getdomainname_chk_warn): New aliases with __warnattr.
5557 (read, pread, pread64, readlink, readlinkat, getcwd, confstr,
5558 getgroups, ttyname_r, getlogin_r, gethostname, getdomainname): Call
5559 __*_chk_warn instead of __*_chk if compile time detectable overflow
5560 is found.
5561 (__getgroups_chk): Rename argument to __listlen from listlen.
5562 (__getwd_alias): Rename to...
5563 (__getwd_warn): ... this. Add __warnattr.
5564 (getwd): Call __getwd_warn instead of __getwd_alias.
5565 * wcsmbs/bits/wchar2.h (__wmemcpy_chk_warn, __wmemmove_chk_warn,
5566 __wmempcpy_chk_warn, __wmemset_chk_warn, __wcsncpy_chk_warn,
5567 __wcpncpy_chk_warn, __fgetws_chk_warn, __fgetws_unlocked_chk_warn,
5568 __mbsrtowcs_chk_warn, __wcsrtombs_chk_warn, __mbsnrtowcs_chk_warn,
5569 __wcsnrtombs_chk_warn): New aliases with __warnattr.
5570 (wmemcpy, wmemmove, wmempcpy, wmemset, mbsrtowcs, wcsrtombs,
5571 mbsnrtowcs, wcsnrtombs): Call __*_chk_warn instead of __*_chk if
5572 compile time detectable overflow is found.
5573 (wcsncpy, wcpncpy): Likewise. For constant __n fix check whether
5574 to use __*_chk or not.
5575 (fgetws, fgetws_unlocked): Divide __bos by sizeof (wchar_t), both
5576 in comparisons which function should be called and in __*_chk*
5577 arguments. Call __*_chk_warn instead of __*_chk if compile time
5578 detectable overflow is found.
5579 (swprintf, vswprintf): Divide __bos by sizeof (wchar_t) in
5580 __*_chk argument.
5581 * debug/tst-chk1.c (do_test): Add a few more tests.
5582
408cfca0
UD
55832007-09-24 Ulrich Drepper <drepper@redhat.com>
5584
5585 [BZ #5058]
5586 * intl/gettextP.h (struct loaded_domain): Add conversions_lock member.
5587 * intl/loadmsgcat.c (_nl_load_domain): Initialize conversions_lock.
5588 (_nl_unload_domain): Finalize conversions_lock.
5589 * intl/dcigettext.c (_nl_find_msg): Take conversions_lock before
5590 handling table of known conversions.
5591
e6eec9ce
JJ
55922007-09-24 Jakub Jelinek <jakub@redhat.com>
5593
5594 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Use
5595 close_not_cancel_no_status instead of close.
5596
a532a41d
UD
55972007-09-13 Aurelien Jarno <aurelien@aurel32.net>
5598
682268ef 5599 [BZ #5028]
408cfca0 5600 * posix/regcomp.c (lookup_collation_sequence_value): Check that
a532a41d
UD
5601 nrules != 0 for multibyte chars.
5602
dec9ed9e
UD
56032007-09-23 Ulrich Drepper <drepper@redhat.com>
5604
91633816
UD
5605 * resolv/ns_print.c (ns_sprintrrf): Handle ns_t_a6 and ns_t_opt.
5606 Provide better error message in case the type is unknown.
5607
9cc198f6
UD
5608 [BZ #4963]
5609 * wcsmbs/wcsnlen.c: Don't reference before checking the length.
5610 * string/stratcliff.c: Make usable to test wide char functions.
5611 * wcsmbs/wcsatcliff.c: New file.
5612 * wcsmbs/Makefiel (tests): Add wcsatcliff.
5613
27f3d446
UD
5614 [BZ #4972]
5615 * iconvdata/Makefile (modules): Add MAC-CENTRALEUROPE.
5616 (distribute): Add mac-centraleurope.c.
5617 (gen-8bit-gap-modules): Add mac-centraleurope.
5618 * iconvdata/mac-centraleurope.c: New file.
5619 * iconvdata/gconv-modules: Add entries for MAC-CENTRALEUROPE.
5620 * iconvdata/TESTS: Likewise.
5621 * iconvdata/tst-tables.sh: Likewise.
5622
dec9ed9e
UD
5623 [BZ #5043]
5624 * iconv/iconv_open.c (iconv_open): For large codeset names use malloc.
5625
0435403c
UD
56262007-09-21 Ulrich Drepper <drepper@redhat.com>
5627
5628 * sysdeps/x86_64/cacheinfo.c (__x86_64_data_cache_size_half): Renamed
5629 from __x86_64_core_cache_size_half.
5630 (init_cacheinfo): Compute shared cache size for AMD processors with
5631 shared L3 correctly.
5632 * sysdeps/x86_64/memcpy.S: Adjust for __x86_64_data_cache_size_half
5633 name change.
5634 Patch in large parts by Evandro Menezes.
5635
c3266dc0
UD
56362007-09-19 Ulrich Drepper <drepper@redhat.com>
5637
715899d1
UD
5638 * elf/dl-lookup.c (add_dependency): Handle failing memory
5639 allocation for dependency list. Remove unnecessary check.
5640
e1db0493
UD
5641 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid unnecessary
5642 open/close when determining source addresses.
5643
c3266dc0
UD
5644 * crypt/Makefile (libcrypt-routines): Add sha256-crypt, sha256,
5645 sha512-crypt, and sha512.
5646 (tests): Add sha256test, sha256c-test, sha512test, and sha512c-test.
5647 (distribute): Add sha256.h and sha512.h.
5648 * crypt/crypt-entry.c (crypt): Recognize the new $5$ and $6$ prefixes
5649 and call the appropriate code.
5650 * crypt/sha256-crypt.c: New file.
5651 * crypt/sha256.c: New file.
5652 * crypt/sha256.h: New file.
5653 * crypt/sha256c-test.c: New file.
5654 * crypt/sha256test.c: New file.
5655 * crypt/sha512-crypt.c: New file.
5656 * crypt/sha512.c: New file.
5657 * crypt/sha512.h: New file.
5658 * crypt/sha512c-test.c: New file.
5659 * crypt/sha512test.c: New file.
5660
ddf51ecb
JJ
56612007-09-19 Jakub Jelinek <jakub@redhat.com>
5662
5663 * misc/bits/syslog.h (syslog): Remove extraneous argument from
5664 the inline, pass __USE_FORTIFY_LEVEL - 1 as second argument to
5665 __syslog_chk.
5666
b90395e6
UD
56672007-09-18 Jakub Jelinek <jakub@redhat.com>
5668
76c0bea7
JJ
5669 * locale/programs/charmap-dir.c (charmap_aliases): Use %ms instead of
5670 %as in fscanf format strings.
5671
00680568
JJ
5672 * sysdeps/sparc/sparc32/elf/start.S: Remove cfi_* markup.
5673 * sysdeps/sparc/sparc64/elf/start.S: Likewise.
c3266dc0
UD
5674 * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__thread_start):
5675 Likewise.
5676 * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__thread_start):
5677 Likewise.
00680568 5678
b90395e6
UD
5679 * sysdeps/generic/ldsodefs.h (DL_LOOKUP_GSCOPE_LOCK): New definition.
5680 * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Or in
5681 DL_LOOKUP_GSCOPE_LOCK into flags after THREAD_GSCOPE_SET_FLAG ().
5682 * elf/dl-sym.c (do_sym): Likewise.
5683 * include/link.h (struct link_map): Add l_serial field.
5684 * elf/dl-object.c (_dl_new_object): Initialize l_serial.
5685 * elf/dl-lookup.c (add_dependency): Add flags argument.
5686 Remember map->l_serial, if DL_LOOKUP_GSCOPE_LOCK is among
5687 flags, use THREAD_GSCOPE_RESET_FLAG before and
5688 THREAD_GSCOPE_SET_FLAG after
5689 __rtld_lock_lock_recursive (GL(dl_load_lock)) to avoid deadlock.
5690 Don't dereference map until it has been found on some list.
5691 If map->l_serial changed, return -1.
5692
874aa523
UD
56932007-09-17 Jakub Jelinek <jakub@redhat.com>
5694
5695 * include/stdio.h (__isoc99_fscanf, __isoc99_scanf,
5696 __isoc99_sscanf, __isoc99_vscanf): New prototypes.
5697 (__isoc99_vsscanf, __isoc99_vfscanf): New prototypes, add
5698 libc_hidden_proto.
5699 * include/wchar.h (__isoc99_fwscanf, __isoc99_wscanf,
5700 __isoc99_swscanf, __isoc99_vwscanf): New prototypes.
5701 (__isoc99_vswscanf, __isoc99_vfwscanf): New prototypes,
5702 add libc_hidden_proto.
5703 * libio/stdio.h (fscanf, scanf, sscanf, vfscanf, vscanf,
5704 vsscanf): Redirect to __isoc99_* if strict ISO C99 or POSIX
5705 conformance requested.
5706 * wcsmbs/wchar.h (fwscanf, wscanf, swscanf, vfwscanf, vwscanf,
5707 vswscanf): Redirect to __isoc99_* if strict ISO C99 or POSIX
5708 conformance requested.
5709 * libio/bits/stdio-ldbl.h (fscanf, scanf, sscanf, vfscanf, vscanf,
5710 vsscanf): Redirect to __nldbl___isoc99_* if strict ISO C99 or POSIX
5711 conformance requested.
5712 * wcsmbs/bits/wchar-ldbl.h (fwscanf, wscanf, swscanf, vfwscanf,
5713 vwscanf, vswscanf): Redirect to __nldbl___isoc99_* if strict
5714 ISO C99 or POSIX conformance requested.
5715 * stdio-common/Versions (libc): Export __isoc99_scanf@@GLIBC_2.7,
5716 __isoc99_vscanf@@GLIBC_2.7, __isoc99_fscanf@@GLIBC_2.7,
5717 __isoc99_vfscanf@@GLIBC_2.7, __isoc99_sscanf@@GLIBC_2.7
5718 and __isoc99_vsscanf@@GLIBC_2.7.
5719 * stdio-common/Makefile (routines): Add isoc99_scanf, isoc99_vscanf,
5720 isoc99_fscanf, isoc99_vfscanf, isoc99_sscanf and isoc99_vsscanf.
5721 (tests): Add scanf14.
5722 (CFLAGS-vfprintf.c, CFLAGS-fprintf.c, CFLAGS-printf.c,
5723 CFLAGS-vfwprintf.c, CFLAGS-vfscanf.c, CFLAGS-vfwscanf.c,
5724 CFLAGS-fscanf.c, CFLAGS-scanf.c, CFLAGS-isoc99_vfscanf.c,
5725 CFLAGS-isoc99_vscanf.c, CFLAGS-isoc99_fscanf.c,
5726 CFLAGS-isoc99_scanf.c): Add $(exceptions).
5727 (CFLAGS-scanf15.c): Add various -I paths to prevent the compiler
5728 from using internal headers.
5729 * wcsmbs/Versions (libc): Export __isoc99_wscanf@@GLIBC_2.7,
5730 __isoc99_vwscanf@@GLIBC_2.7, __isoc99_fwscanf@@GLIBC_2.7,
5731 __isoc99_vfwscanf@@GLIBC_2.7, __isoc99_swscanf@@GLIBC_2.7
5732 and __isoc99_vswscanf@@GLIBC_2.7.
5733 * wcsmbs/Makefile (routines): Add isoc99_wscanf, isoc99_vwscanf,
5734 isoc99_fwscanf, isoc99_vfwscanf, isoc99_swscanf and isoc99_vswscanf.
5735 (CFLAGS-isoc99_wscanf.c, CFLAGS-isoc99_fwscanf.c,
5736 CFLAGS-isoc99_vwscanf.c, CFLAGS-isoc99_vfwscanf.c): Add $(exceptions).
5737 (CPPFLAGS): Add -D_IO_MTSAFE_IO if needed.
5738 * stdio-common/isoc99_scanf.c: New file.
5739 * stdio-common/isoc99_vsscanf.c: New file.
5740 * stdio-common/isoc99_vscanf.c: New file.
5741 * stdio-common/isoc99_vfscanf.c: New file.
5742 * stdio-common/isoc99_fscanf.c: New file.
5743 * stdio-common/isoc99_sscanf.c: New file.
5744 * wcsmbs/isoc99_fwscanf.c: New file.
5745 * wcsmbs/isoc99_vswscanf.c: New file.
5746 * wcsmbs/isoc99_swscanf.c: New file.
5747 * wcsmbs/isoc99_wscanf.c: New file.
5748 * wcsmbs/isoc99_vwscanf.c: New file.
5749 * wcsmbs/isoc99_vfwscanf.c: New file.
5750 * libio/libio.h (_IO_FLAGS2_SCANF_STD): Define.
5751 * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): Also
5752 clear _IO_FLAGS2_SCANF_STD bit from _flags2.
5753 * stdio-common/vfscanf.c (_IO_vfscanf_internal): Don't
5754 handle %as, %aS and %a[ if _IO_FLAGS2_SCANF_STD is set in _flags2.
5755 * stdio-common/scanf14.c: New test.
5756 * stdio-common/scanf15.c: New test.
5757 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add
5758 isoc99_scanf, isoc99_fscanf, isoc99_sscanf,
5759 isoc99_vscanf, isoc99_vfscanf, isoc99_vsscanf,
5760 isoc99_wscanf, isoc99_fwscanf, isoc99_swscanf,
5761 isoc99_vwscanf, isoc99_vfwscanf and isoc99_vswscanf.
5762 * sysdeps/ieee754/ldbl-opt/Versions (libc): Export
5763 __nldbl___isoc99_scanf@@GLIBC_2.7,
5764 __nldbl___isoc99_fscanf@@GLIBC_2.7,
5765 __nldbl___isoc99_sscanf@@GLIBC_2.7,
5766 __nldbl___isoc99_vscanf@@GLIBC_2.7,
5767 __nldbl___isoc99_vfscanf@@GLIBC_2.7,
5768 __nldbl___isoc99_vsscanf@@GLIBC_2.7,
5769 __nldbl___isoc99_wscanf@@GLIBC_2.7,
5770 __nldbl___isoc99_fwscanf@@GLIBC_2.7,
5771 __nldbl___isoc99_swscanf@@GLIBC_2.7,
5772 __nldbl___isoc99_vwscanf@@GLIBC_2.7,
5773 __nldbl___isoc99_vfwscanf@@GLIBC_2.7
5774 and __nldbl___isoc99_vswscanf@@GLIBC_2.7.
5775 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__isoc99_scanf,
5776 __isoc99_fscanf, __isoc99_sscanf, __isoc99_vscanf,
5777 __isoc99_vfscanf, __isoc99_vsscanf, __isoc99_wscanf,
5778 __isoc99_fwscanf, __isoc99_swscanf, __isoc99_vwscanf,
5779 __isoc99_vfwscanf, __isoc99_vswscanf): Add NLDBL_DECL.
5780 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
5781 (__nldbl___isoc99_scanf, __nldbl___isoc99_fscanf,
5782 __nldbl___isoc99_sscanf, __nldbl___isoc99_vscanf,
5783 __nldbl___isoc99_vfscanf, __nldbl___isoc99_vsscanf,
5784 __nldbl___isoc99_wscanf, __nldbl___isoc99_fwscanf,
5785 __nldbl___isoc99_swscanf, __nldbl___isoc99_vwscanf,
5786 __nldbl___isoc99_vfwscanf, __nldbl___isoc99_vswscanf): New
5787 functions.
5788 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vfscanf.c: New file.
5789 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_swscanf.c: New file.
5790 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vwscanf.c: New file.
5791 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_wscanf.c: New file.
5792 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_scanf.c: New file.
5793 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_sscanf.c: New file.
5794 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vsscanf.c: New file.
5795 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_fwscanf.c: New file.
5796 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vfwscanf.c: New file.
5797 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vswscanf.c: New file.
5798 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vscanf.c: New file.
5799 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_fscanf.c: New file.
5800
5801 * stdio-common/Makefile (tests): Add scanf13.
5802 (scanf13-ENV): New.
5803 * stdio-common/vfscanf.c (_IO_vfscanf_internal): Handle
5804 m modifier followed by l.
5805 (STRING_ARG): Add width argument.
5806 (_IO_vfscanf_internal) <case L_('c')>: Handle %mc.
5807 <case L_('C')>: Handle %mlc and %mC.
5808 <case L_('s'), case L_('S'), case L_('[')>: Adjust STRING_ARG
5809 arguments.
5810 * stdio-common/scanf13.c: New test.
5811
5812 * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): Clear
5813 the _IO_FLAGS2_FORTIFY bit from _flags2 rather than _flags.
5814
883f7943
UD
58152007-09-18 Ulrich Drepper <drepper@redhat.com>
5816
5817 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Correct return value
874aa523 5818 type and __THROW marker of splice, vmsplice, and tee.
883f7943
UD
5819 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
5820 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
5821 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
5822 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
5823 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
5824 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
5825 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
5826 * sysdeps/unix/sysv/linux/syscalls.list: Mark splice, vmsplice, and tee
5827 as cancellation points.
5828
3524efe0
UD
58292003-11-01 Daniel Jacobowitz <dan@debian.org>
5830
5831 * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_discover_osversion): Don't
5832 parse more than three parts of the version number.
5833
267c54dc
UD
58342007-09-15 Ulrich Drepper <drepper@redhat.com>
5835
5836 * stdio-common/vfscanf.c (_IO_vfwscanf): Add support for 'm'
5837 modifier. Patch by Jakub Jelinek.
5838
5e17d6b7
UD
58392007-08-26 Jakub Jelinek <jakub@redhat.com>
5840
5841 * sysdeps/unix/sysv/linux/i386/Makefile (sysdep_routines): Add
5842 call_fallocate in misc subdir.
5843 * sysdeps/unix/sysv/linux/i386/call_fallocate.S: New file.
5844 * sysdeps/unix/sysv/linux/i386/syscalls.list (fallocate64): Remove.
5845 * sysdeps/unix/sysv/linux/i386/posix_fallocate.c: Use __call_fallocate
5846 instead of __fallocate64.
5847 * sysdeps/unix/sysv/linux/i386/posix_fallocate64.c: Likewise.
5848
3a50811c
UD
58492007-09-15 Jakub Jelinek <jakub@redhat.com>
5850
5851 * rt/Versions (librt): Export __mq_open_2@@GLIBC_2.7.
5852 * rt/Makefile (headers): Add bits/mqueue2.h.
5853 * rt/mqueue.h: Include bits/mqueue2.h if -D_FORTIFY_SOURCE=2,
5854 optimizing with GCC and __va_arg_pack_len is defined.
5855 * rt/bits/mqueue2.h: New file.
5856 * rt/mq_open.c (__mq_open): Renamed from mq_open.
5857 (mq_open): New strong_alias.
5858 (__mq_open_2): New function.
5859 * sysdeps/unix/sysv/linux/mq_open.c (__mq_open): Renamed from mq_open.
5860 (mq_open): New strong_alias.
5861 (__mq_open_2): New function.
5862 * debug/Versions (libc): Export __fortify_fail@@GLIBC_PRIVATE.
5863 * Versions.def (librt): Add GLIBC_2.7 version.
5864 * debug/fortify_fail.c (__fortify_fail): Add libc_hidden_def.
5865 * include/stdio.h (__fortify_fail): Add libc_hidden_proto.
5866
5867 * misc/sys/cdefs.h (__errordecl, __va_arg_pack_len): Define.
5868 * io/fcntl.h: Include bits/fcntl2.h when __va_arg_pack_len
5869 is defined rather than when not C++.
5870 * io/bits/fcntl2.h (__open_alias, __open64_alias, __openat_alias,
5871 __openat64_alias): New redirects.
5872 (__open_too_many_args, __open_missing_mode, __open64_too_many_args,
5873 __open64_missing_mode, __openat_too_many_args, __openat_missing_mode,
5874 __openat64_too_many_args, __openat64_missing_mode): New __errordecls.
5875 (open, open64, openat, openat64): Rewrite as __extern_always_inline
5876 functions instead of function-like macros.
5877
9bdfff60
UD
58782007-09-14 H.J. Lu <hongjiu.lu@intel.com>
5879
5880 * sysdeps/i386/i586/memcpy.S (__memcpy_chk): New definition.
5881 * sysdeps/i386/i586/mempcpy.S (__memcpy_chk): New definition.
5882 * sysdeps/i386/i586/memset.S (__memset_chk): New definition.
5883
ab905672
UD
58842007-09-15 Mike Frysinger <vapier@gentoo.org>
5885
5886 * inet/inet_net.c: Reset digit to 0 for inputs starting with "0x".
5887 * inet/tst-network.c (tests): Add edge case tests for "0", "0x", "0x0".
5888
9bd68902
RM
58892007-09-14 Mike Frysinger <vapier@gentoo.org>
5890
5891 * inet/tst-network.c: Increment ERRORS for failing tests.
5892
de1c3ebb
UD
58932007-09-07 Jakub Jelinek <jakub@redhat.com>
5894
5895 * misc/sys/cdefs.h (__va_arg_pack): Define for GCC 4.3+.
5896 * misc/bits/syslog.h (syslog): When __va_arg_pack is defined,
5897 implement as __extern_always_inline function.
5898 (vsyslog): Define as __extern_always_inline function unconditionally.
5899 * libio/bits/stdio2.h (sprintf, snprintf, printf, fprintf):
5900 When __va_arg_pack is defined, implement as __extern_always_inline
5901 functions.
5902 (vsprintf, vsnprintf, vprintf, vfprintf): Define as
5903 __extern_always_inline functions unconditionally.
5904 * libio/bits/stdio.h (vprintf): Ifdef out the inline when
5905 bits/stdio2.h will be included.
5906 * wcsmbs/bits/wchar2.h (__swprintf_alias): New redirect.
5907 (swprintf, wprintf, fwprintf): When __va_arg_pack is defined,
5908 implement as __extern_always_inline functions.
5909 (vswprintf, vwprintf, vfwprintf): Define as
5910 __extern_always_inline functions unconditionally.
5911 * debug/tst-chk1.c (do_test): Enable remaining tests for C++.
5912
59132007-09-03 Jakub Jelinek <jakub@redhat.com>
5914
5915 * misc/sys/cdefs.h (__extern_inline, __extern_always_inline): Only
5916 define in C++ for GCC 4.3+, in C++ always use __gnu_inline__
5917 attribute.
5918 * include/features.h (__USE_EXTERN_INLINES): Define only when
5919 __extern_inline is defined.
5920 * stdlib/stdlib.h: Include bits/stdlib.h when __extern_always_inline
5921 is defined instead of when not __cplusplus.
5922 * misc/sys/syslog.h: Include bits/syslog.h when __extern_always_inline
5923 is defined instead of when not __cplusplus.
5924 * socket/sys/socket.h: Include bits/socket2.h when
5925 __extern_always_inline is defined instead of when not __cplusplus.
5926 * libio/stdio.h: Include bits/stdio2.h when __extern_always_inline
5927 is defined instead of when not __cplusplus.
5928 * posix/unistd.h: Include bits/unistd.h when __extern_always_inline
5929 is defined instead of when not __cplusplus.
5930 * string/string.h: Include bits/string3.h when __extern_always_inline
5931 is defined instead of when not __cplusplus.
5932 * wcsmbs/wchar.h: Include bits/wchar2.h when __extern_always_inline
5933 is defined instead of when not __cplusplus.
5934 (btowc, wctob): Don't guard the inlines with ifndef __cplusplus.
5935 * io/fcntl.h: Don't include bits/fcntl2.h if __extern_always_inline
5936 is not defined.
5937 * misc/bits/syslog-ldbl.h: Guard *_chk stuff with
5938 defined __extern_always_inline instead of !defined __cplusplus.
5939 * libio/bits/stdio-ldbl.h: Likewise.
5940 * wcsmbs/bits/wchar-ldbl.h: Likewise.
5941 * misc/bits/syslog.h (syslog): Don't define for C++.
5942 (vsyslog): Use __extern_always_inline function for C++ instead of
5943 a macro.
5944 * libio/bits/stdio.h (__STDIO_INLINE): Define to __extern_inline
5945 whenever that macro is defined.
5946 (vprintf): Don't provide the inline for C++.
5947 (fread_unlocked, fwrite_unlocked): Don't define the macros for C++.
5948 * libio/bits/stdio2.h (sprintf, snprintf, printf, fprintf): Don't
5949 define the macros for C++.
5950 (vsprintf, vsnprintf, vprintf, vfprintf): Define as
5951 __extern_always_inline functions for C++.
5952 * io/sys/stat.h (stat, lstat, fstat, fstatat, mknod, mknodat,
5953 stat64, lstat64, fstat64, fstatat64): Don't define if not
5954 __USE_EXTERN_INLINES.
5955 * wcsmbs/bits/wchar2.h: Fix #error message.
5956 (swprintf, wprintf, fwprintf): Don't define the macros for C++.
5957 (vswprintf, vwprintf, vfwprintf): Define using
5958 __extern_always_inline functions for C++.
5959 * string/bits/string3.h: Don't #undef macros if __cplusplus.
5960 (memcpy, memmove, mempcpy, memset, bcopy, bzero, strcpy, stpcpy,
5961 strncpy, strcat, strncat): Define as __extern_always_inline
5962 functions instead of macros for C++.
5963 * math/bits/cmathcalls.h: Guard __extern_inline routines with
5964 defined __extern_inline.
5965 * sysdeps/alpha/fpu/bits/mathinline.h (__MATH_INLINE): Define
5966 to __extern_inline whenever that macro is defined.
5967 * sysdeps/ia64/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
5968 * sysdeps/i386/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
5969 * sysdeps/i386/i486/bits/string.h (__STRING_INLINE): Likewise.
5970 * sysdeps/s390/bits/string.h (__STRING_INLINE): Likewise.
5971 * sysdeps/s390/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
5972 * sysdeps/powerpc/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
5973 * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
5974 * sysdeps/sparc/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
5975 * sysdeps/unix/sysv/linux/sys/sysmacros.h (gnu_dev_major,
5976 gnu_dev_minor, gnu_dev_makedev): Remove __extern_inline from
5977 prototypes. Only provide __extern_inline routines if
5978 __USE_EXTERN_INLINES.
5979 * debug/Makefile: Add rules to build and run tst-{,lfs}chk{4,5,6}
5980 tests.
5981 * debug/tst-chk1.c (do_prepare, do_test): Allow compilation as C++.
5982 For now avoid some *printf tests in C++. Skip all testing
5983 if __USE_FORTIFY_LEVEL is defined, but __extern_always_inline macro
5984 is not.
5985 * debug/tst-chk4.cc: New file.
5986 * debug/tst-chk5.cc: New file.
5987 * debug/tst-chk6.cc: New file.
5988 * debug/tst-lfschk4.cc: New file.
5989 * debug/tst-lfschk5.cc: New file.
5990 * debug/tst-lfschk6.cc: New file.
5991 * include/wchar.h (__vfwprintf_chk, __vswprintf_chk): Avoid
5992 prototypes in C++.
5993 * include/stdio.h (__sprintf_chk, __snprintf_chk, __vsprintf_chk,
5994 __vsnprintf_chk, __printf_chk, __fprintf_chk, __vprintf_chk,
5995 __vfprintf_chk, __fgets_unlocked_chk, __fgets_chk): Likewise.
5996
b53eef9c
UD
59972007-09-13 Ulrich Drepper <drepper@redhat.com>
5998
5999 * po/cs.po: Update from translation team.
6000
af385590
RM
60012007-09-11 Roland McGrath <roland@redhat.com>
6002
6003 * posix/Makefile ($(objpfx)getconf.speclist): Make it empty if cross
6004 compiling.
6005
af2f25a1
RM
60062007-09-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
6007
6008 * sysdeps/mach/hurd/bits/ioctls.h (TAB3): New macro.
6009
94733ae0
RM
60102007-09-05 Roland McGrath <roland@redhat.com>
6011
6012 * manual/signal.texi (Signaling Another Process): Typo fix.
6013 From Karl Berry <karl@freefriends.org>.
6014
de4d8563
UD
60152007-08-29 Ulrich Drepper <drepper@redhat.com>
6016
6017 * sysdeps/unix/sysv/linux/check_pf.c (IFA_F_OPTIMISTIC): Define to
6018 zero if not defined.
6019 (make_request): Recognize optimistic addresses and treat them like
6020 deprecated addresses.
6021 Reported by Neil Horman <nhorman@redhat.com>.
6022
0adfcc05
UD
60232007-08-28 Ulrich Drepper <drepper@redhat.com>
6024
f3c54060
UD
6025 * nscd/connections.c (send_ro_fd): Also transfer file size.
6026 * nscd/nscd_helper.c (get_mapping): If nscd also transfers the
6027 file size don't call fstat.
6028
0adfcc05
UD
6029 * nscd/nscd_helper.c (get_mapping): Avoid the pread call, just go
6030 ahead and map the file. This should always be correct and we can
6031 catch problems later.
6032
3586b2b6
UD
60332007-08-28 Jakub Jelinek <jakub@redhat.com>
6034
6035 * libio/bits/stdio2.h (__fread_chk, __fread_unlocked_chk): New
6036 prototypes.
6037 (__fread_alias, __fread_unlocked_alias): New aliases.
6038 (fread): New extern inline.
6039 (fread_unlocked): Likewise. Undef macro before definition of
6040 the inline function.
6041 * debug/Makefile (routines): Add fread_chk and fread_u_chk.
6042 (CFLAGS-fread_chk.c, CFLAGS-fread_u_chk.c): Add.
6043 * debug/Versions (libc): Export __fread_chk@@GLIBC_2.7
6044 and __fread_unlocked_chk@@GLIBC_2.7.
6045 * debug/fread_chk.c: New file.
6046 * debug/fread_u_chk.c: New file.
6047 * debug/tst-chk1.c (do_test): Add fread and fread_unlocked tests.
6048
3704aa0b
RM
60492007-08-27 Jakub Jelinek <jakub@redhat.com>
6050
6051 * sysdeps/unix/sysv/linux/syscalls.list
6052 (personality): Change caller to EXTRA.
6053
80e7d6a6
UD
60542007-08-25 Ulrich Drepper <drepper@redhat.com>
6055
278bfa00
UD
6056 * iconvdata/iso-2022-kr.c (BODY): Fake initialization of array buf
6057 to keep gcc quiet.
6058 * iconvdata/iso-2022-cn.c (BODY): Likewise.
6059
a45d733c
UD
6060 * locale/programs/ld-collate.c (collate_output): Avoid warning if
6061 NDEBUG is defined.
6062
5dfeae0e
UD
6063 * Makerules: Use -p option with mkdir.
6064
8f1fe057
UD
6065 * sunrpc/key_prot.c (xdr_unixcred): Work around gcc alias warning.
6066 * nis/nis_xdr.c (_xdr_nis_server): Likewise.
bd0dcd28
UD
6067 (_xdr_directory_obj): Likewise.
6068 (xdr_entry_obj): Likewise.
6069 (xdr_group_obj): Likewise.
6070 (xdr_link_obj): Likewise.
6071 (xdr_table_obj): Likewise.
6072 (_xdr_nis_result): Likewise.
6073 (_xdr_ns_request): Likewise.
6074 (_xdr_ib_request): Likewise.
6075 (_xdr_nis_taglist): Likewise.
6076 (xdr_cback_data): Likewise.
8f1fe057 6077 * nis/yp_xdr.c (xdr_ypmaplist): Likewise.
bd0dcd28
UD
6078 (xdr_ypresp_maplist): Likewise.
6079
01339a67
UD
6080 * stdio-common/Makefile: Avoid format string warning for tst-sprint.
6081
3fa10468
UD
6082 * posix/regex_internal.h: Prevent some declarations and definitions
6083 to be seen when used in tests.
6084
ec1e04de
UD
6085 * posix/tst-rfc3484.c (__idna_to_unicode_lzlz): Initialize *OUTPUT.
6086 * posix/tst-rfc3484-2.c (__idna_to_unicode_lzlz): Likewise.
6087
7a344d1d
UD
6088 * debug/Makefile: Disable format checking when compiling tst-chk?.c.
6089
f8f6ff5d
UD
6090 * config.make.in (datarootdir): Add to shut up configure.
6091
76fca9f1
UD
6092 * sysdeps/x86_64/cacheinfo.c (handle_amd): Fix computation of
6093 associativity for fully-associative caches.
6094
80e7d6a6
UD
6095 * sysdeps/x86_64/cacheinfo.c (handle_amd): Handle L3 cache
6096 requests. Fill on more associativity values for L2.
6097 Patch mostly by Evandro Menezes.
6098
cb5ba304
UD
60992007-08-24 Ulrich Drepper <drepper@redhat.com>
6100
d250df8c
UD
6101 * sysdeps/unix/sysv/linux/x86_64/init-first.c
6102 (_libc_vdso_platform_setup): Avoid using exported variable by using
6103 alias.
6104
88f61aaf
UD
6105 * resolv/arpa/nameser.h (NS_OPT_DNSSEC_OK): Define.
6106
cb5ba304 6107 * sysdeps/unix/sysv/linux/i386/syscalls.list: No reason to mark
cb104bd7 6108 fallocate64 as EXTRA. It is not referenced if the symbol isn't
cb5ba304
UD
6109 defined.
6110
62e1b1f5
UD
61112007-08-23 Ulrich Drepper <drepper@redhat.com>
6112
44b2e581
UD
6113 * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Correctly
6114 align stack for call if pltexit is to be used.
6115
73e3ff07
UD
6116 [BZ #3924]
6117 * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Correctly
6118 align for function call in case pltexit has to be called later.
6119
62e1b1f5
UD
6120 * sysdeps/i386/dl-trampoline.S (_dl_runtime_resolve): Avoid
6121 implicit atomic operation when storing function pointer.
6122 (_dl_runtime_profile): Likewise.
6123
0008163a
UD
61242007-08-17 Jakub Jelinek <jakub@redhat.com>
6125
6126 * nis/nis_table.c (nis_list): Don't fail if __follow_path returned
6127 NIS_NOTFOUND.
6128
55ea8790
UD
61292007-08-21 Ulrich Drepper <drepper@redhat.com>
6130
2e0e1a05
UD
6131 [BZ #4566]
6132 * string/strtok.c: Fix typo in comment.
6133
682e4437
UD
6134 [BZ #4582]
6135 * debug/segfault.c: Fix typos in comments.
6136
7d55c9eb
UD
6137 [BZ #4588]
6138 * stdio-common/tempnam.c: Fix comment, it is not checked that
6139 TMPDIR points to a writable directory.
6140
0f8f993c
UD
6141 [BZ #4726]
6142 * resolv/res_send.c (__libc_res_nsend): Initialize all of the
6143 memory allocated for the name server address.
6144
1465dd0f
UD
6145 [BZ #4946]
6146 * nscd/connections.c (handle_request): Using sendfile always
6147 requires that mmap is used for the database.
6148 Patch by Petr Baudis <pasky@suse.cz>.
6149
c44d3bdf
UD
6150 [BZ #4905]
6151 * nscd/hstcache.c (cache_addhst): When reloading an entry which
6152 suddenly has two or more addresses, ignore it and remove the old
6153 entry.
6154
1ce7d80d
UD
6155 [BZ #4814]
6156 * resolv/res_hconf.c: Prepare for compiling outside libc.
6157 * nscd/res_hconf.c: New file.
6158 * nscd/Makefile (nscd-modules): Add res_hconf. Add rules to build
6159 the new file.
6160 * nscd/gethstbynm2_r.c (NEED__RES_HCONF): Define.
6161 * nscd/gethstbyad_r.c (NEED__RES_HCONF): Likewise.
6162
a30d41c1
UD
6163 * nscd/hstcache.c (cache_addhst): Minimal optimization.
6164
45dc3ad7
UD
6165 [BZ #4925]
6166 * debug/pcprofiledump.c: Turn on internationalization by calling
6167 setlocale. Patch mostly by Benno Schulenberg.
6168
55ea8790
UD
6169 [BZ #4936]
6170 * iconv/gconv.c (__gconv): If flush was successful, clear rest of
6171 the state.
6172 * iconvdata/Makefile: Add rules to build and run bug-iconv5.
6173 * iconvdata/bug-iconv5.c: New file.
6174
0b82ff74
UD
61752007-08-04 Carlos O'Donell <carlos@systemhalted.org>
6176
55ea8790 6177 [BZ #4896]
0b82ff74
UD
6178 * elf/elf.h: Define R_PARISC_PLABEL21L, R_PARISC_PLABEL14R,
6179 R_PARISC_GNU_VTENTRY, R_PARISC_GNU_VTINHERIT, R_PARISC_TLS_GD21L,
6180 R_PARISC_TLS_GD14R, R_PARISC_TLS_GDCALL, R_PARISC_TLS_LDM21L,
6181 R_PARISC_TLS_LDM14R, R_PARISC_TLS_LDMCALL, R_PARISC_TLS_LDO21L,
6182 R_PARISC_TLS_LDO14R, R_PARISC_TLS_DTPMOD32, R_PARISC_TLS_DTPMOD64,
6183 R_PARISC_TLS_DTPOFF32, R_PARISC_TLS_DTPOFF64, R_PARISC_TLS_LE21L,
6184 R_PARISC_TLS_LE14R, R_PARISC_TLS_IE21L, R_PARISC_TLS_IE14R,
6185 R_PARISC_TLS_TPREL32, R_PARISC_TLS_TPREL64.
6186
ee16a55a
UD
61872007-08-21 Ulrich Drepper <drepper@redhat.com>
6188
6189 [BZ #4937]
6190 * elf/do-lookup.h (do_lookup_x): Minimal improvement in hash
6191 lookup loop. Suggested by John Reiser.
6192
b211fe0f
JJ
61932007-08-21 Jakub Jelinek <jakub@redhat.com>
6194
6195 * sysdeps/unix/sysv/linux/alpha/sysdep.h: Include tls.h.
6196
fb84593c
UD
61972007-08-20 Ulrich Drepper <drepper@redhat.com>
6198
6199 * csu/libc-start.c: Don't handle VDSO_SETUP here.
6200 * sysdeps/unix/sysv/linux/init-first.c: Handle it here instead.
6201 * sysdeps/unix/sysv/linux/x86_64/libc-start.c: Renamed to...
6202 * sysdeps/unix/sysv/linux/x86_64/init-first.c: ...this. New file.
6203 * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Move VDSO_SETUP code
6204 to...
6205 * sysdeps/unix/sysv/linux/x86_64/init-first.c: ...here. New file.
6206
b83fb35c
UD
62072007-08-18 Ulrich Drepper <drepper@redhat.com>
6208
6209 * po/nl.po: Update from translation team.
6210
20806a70
AJ
62112007-08-16 Andreas Jaeger <aj@suse.de>
6212
6213 * locale/localeinfo.h: Make _nl_category_name_idxs extern.
f00d47a3 6214 Reported by Peter Festner <peter.festner@ewetel.net>.
20806a70 6215
42282d57
JJ
62162007-08-17 Jakub Jelinek <jakub@redhat.com>
6217
6218 * login/tst-grantpt.c (test_einval): Add 3rd argument to open.
6219
8a501135
JJ
62202007-08-16 Jakub Jelinek <jakub@redhat.com>
6221
cb84d1e4
JJ
6222 * elf/Makefile ($(objpfx)ld.so): Use readelf -s and awk instead of nm -u
6223 to check for undefined symbols.
6224
91ddd9c4
JJ
6225 * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone):
6226 If the syscall fails, set errno to the actual returned error number
6227 rather than EINVAL.
6228 * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__clone): If
6229 arguments are incorrect, set errno to EINVAL, if the syscall
6230 fails, set errno to the actual returned error number.
6231
18915760
JJ
6232 * stdlib/bits/stdlib-ldbl.h (__strtold_internal): Remove.
6233 * wcsmbs/bits/wchar-ldbl.h (__wcstold_internal): Remove.
6234
8a501135
JJ
6235 * sysdeps/sparc/sparc32/sparcv9b/memcpy.S: Moved to...
6236 * sysdeps/sparc/sparc32/sparcv9/sparcv9b/memcpy.S: ... here. New
6237 file.
6238 (ASI_PNF, ASI_BLK_P): Don't define.
6239 * sysdeps/sparc/sparc32/sparcv9v/memcpy.S: Moved to...
6240 * sysdeps/sparc/sparc32/sparcv9/sparcv9v/memcpy.S: ... here. New
6241 file.
6242 * sysdeps/sparc/sparc32/sparcv9v/memset.S: Moved to...
6243 * sysdeps/sparc/sparc32/sparcv9/sparcv9v/memset.S: ... here. New
6244 file.
6245
e4720b0e
JJ
62462007-08-15 Jakub Jelinek <jakub@redhat.com>
6247
6248 * sysdeps/sparc/fpu/fraiseexcpt.c (__feraiseexcept): Fix raising
6249 FE_UNDERFLOW on Niagara CPUs.
6250
6251 * sysdeps/sparc/fpu/feholdexcpt.c (feholdexcept): Clear all
6252 exceptions.
6253
702a9414
JJ
62542007-08-14 Jakub Jelinek <jakub@redhat.com>
6255
467d1345
JJ
6256 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_runtime_setup): No
6257 need to check GLRO(dl_hwcap) & HWCAP_SPARC_FLUSH on sparcv9.
6258 (sparc_fixup_plt): Add do_flush argument instead of figuring whether
6259 flush should be used or not inside of the function.
6260 (elf_machine_fixup_plt, elf_machine_rela): Adjust caller.
6261
6262 * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone,
6263 __thread_start): Use HIDDEN_JUMPTARGET.
6264 * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__clone,
6265 __thread_start): Likewise.
6266 * sysdeps/unix/sysv/linux/sparc/sysdep.h (JUMPTARGET): Define.
6267
702a9414
JJ
6268 * sysdeps/ieee754/ldbl-64-128/strtold_l.c (__STRTOF): Declare.
6269 Add libc_hidden_proto.
6270 (STRTOF): Add libc_hidden_proto.
6271 (___new_strtold_l, ___new_wcstold_l): New weak aliases.
6272 (strtold_l, wcstold_l): Use them as second argument for
6273 long_double_symbol.
6274
c6c8f0ec
UD
62752007-08-14 Ulrich Drepper <drepper@redhat.com>
6276
6277 * elf/dl-misc.c: Undo last change. The kernel won't allow it.
6278
5e88abf9
UD
62792007-08-13 Kaz Kojima <kkojima@rr.iij4u.or.jp>
6280
6281 * stdlib/strtold_l.c: Include wchar.h if needed. Add libc_hidden_def.
6282
fc4819b0
UD
62832007-08-14 Ulrich Drepper <drepper@redhat.com>
6284
6285 * po/bg.po: New file. From the translation team.
6286
22502ea2
UD
62872007-08-13 Jakub Jelinek <jakub@redhat.com>
6288
6289 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PSELECT,
6290 __ASSUME_PPOLL, __ASSUME_ATFCTS, __ASSUME_SET_ROBUST_LIST,
6291 __ASSUME_UTIMENSAT, __ASSUME_FALLOCATE): Update per-arch conditions
6292 when each feature was introduced.
6293
6294 * sysdeps/unix/sysv/linux/dl-vdso.c: Don't include dl-hash.h.
6295 * sysdeps/unix/sysv/linux/dl-vdso.h: Don't include dl-hash.h if NDEBUG.
6296 (CHECK_HASH): New macro.
6297 (PREPARE_VERSION): Use it.
6298
6299 * sysdeps/unix/sysv/linux/pselect.c (__generic_pselect): Only provide
6300 prototype if not __ASSUME_PSELECT.
6301 * sysdeps/unix/sysv/linux/ppoll.c (__generic_ppoll): Only provide
6302 prototype if not __ASSUME_PPOLL.
6303
6304 * sysdeps/unix/sysv/linux/dl-osinfo.h (ROUND): #undef after use.
6305
6306 * sysdeps/unix/clock_settime.c (freq, __pthread_clock_settime,
6307 hp_timing_settime): Don't define or declare if HANDLED_CPUTIME
6308 is defined.
6309
9c6f6953
UD
63102007-08-13 Ulrich Drepper <drepper@redhat.com>
6311
6312 * sysdeps/unix/sysv/linux/x86_64/libc-start.c
6313 (_libc_vdso_platform_setup): If vDSO is not available point
6314 __vdso_gettimeofday to the vsyscall.
6315 * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S [SHARED]: Use
6316 __vdso_gettimeofday instead of vsyscall.
6317
f8de5057
UD
63182007-08-13 Jakub Jelinek <jakub@redhat.com>
6319
6320 * nscd/servicescache.c: Include kernel-features.h.
6321 * nscd/gai.c: Likewise.
6322 * sysdeps/unix/sysv/linux/statfs64.c: Likewise.
6323 * sysdeps/unix/sysv/linux/fstatfs64.c: Likewise.
6324 * sysdeps/unix/sysv/linux/fxstatat.c: Likewise.
6325 * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S: Likewise.
6326 * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S: Likewise.
6327 * sysdeps/unix/sysv/linux/xstatconv.c: Likewise.
6328 * sysdeps/unix/sysv/linux/if_index.c: Likewise.
6329 * sysdeps/unix/sysv/linux/sparc/sparc64/xstat.c: Likewise.
6330 * sysdeps/unix/sysv/linux/ifaddrs.c: Likewise.
6331
3c87d79d
UD
63322007-08-12 Ulrich Drepper <drepper@redhat.com>
6333
ea37207a
UD
6334 * elf/dl-dst.h: No need for _dl_dst_count, _dl_dst_substitute,
6335 and _dl_get_origin defines anymore.
6336
4eb375fe
UD
6337 * sysdeps/unix/sysv/linux/clock_gettime.c (maybe_syscall_gettime_cpu):
6338 Build fix for systems which might lack POSIX timer support.
6339
3c87d79d
UD
6340 * sysdeps/unix/sysv/linux/x86_64/libc-start.c
6341 (_libc_vdso_platform_setup): Mangle function pointers before storing
6342 them.
6343 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_VSYSCALL):
6344 Demangle vdso pointer before use.
6345 (INTERNAL_VSYSCALL): Likewise.
6346
6347 * elf/cache.c (primes): Mark as const.
6348 Noted by Roland McGrath.
6349
27d9ffda
UD
63502007-08-01 Andreas Jaeger <aj@suse.de>
6351 Jakub Jelinek <jakub@redhat.com>
6352
6353 * elf/ldconfig.c (opt_ignore_aux_cache): Add new option.
6354 (options): Add option.
6355 (parse_opt): Handle option.
6356 (manual_link): Adjust process_file caller. Call implicit_soname.
6357 (search_dir): Formatting. Use and populate auxiliary cache.
6358 (main): Load and save auxiliary cache.
6359 * elf/readlib.c (process_file): Add stat_buf argument. Pass struct
6360 stat64 from fstat64 to caller.
6361 (implicit_soname): New function.
6362 * elf/readelflib.c (process_elf_file): If DT_SONAME is not present,
6363 leave *soname as NULL.
6364 * elf/cache.c: Include libgen.h.
6365 (print_entry, print_cache, compare, save_cache, add_to_cache):
6366 Formatting and cleanups.
6367 (aux_cache_entry_id, aux_cache_entry, aux_cache_file_entry,
6368 aux_cache_file): New structures.
6369 (AUX_CACHEMAGIC): Define.
6370 (primes): New array.
6371 (aux_hash_size, aux_hash): New variables.
6372 (aux_cache_entry_id_hash, nextprime, init_aux_cache,
6373 search_aux_cache, insert_to_aux_cache, add_to_aux_cache,
6374 load_aux_cache, save_aux_cache): New functions.
6375 * sysdeps/generic/ldconfig.h (_PATH_LDCONFIG_AUX_CACHE): Define.
6376 (init_aux_cache, search_aux_cache, add_to_aux_cache,
6377 load_aux_cache, save_aux_cache, implicit_soname): New prototypes.
6378 (process_file): Adjust prototype.
6379
8d944b0f
UD
63802007-08-12 Jakub Jelinek <jakub@redhat.com>
6381
6382 * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h: Include stddef.h
6383 with __need_size_t.
6384
75fb247e
UD
63852007-08-12 Ulrich Drepper <drepper@redhat.com>
6386
fb86328a
UD
6387 * sysdeps/unix/sysv/linux/dl-vdso.c (_dl_vdso_vsym): Expect
6388 r_found_version structure as second parameter.
6389 * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION): Define.
6390 (_dl_vdso_vsym): Change type of second parameter accordingly.
6391 * sysdeps/unix/sysv/linux/x86-64/libc-start.c
6392 (_libc_vdso_platform_setup): Adjust.
974a1f0f 6393 * sysdeps/unix/sysv/linux/powerpc/libc-start.c
fb86328a
UD
6394 (_libc_vdso_platform_setup): Likewise.
6395
75fb247e
UD
6396 * sysdeps/unix/sysv/linux/powerpc/dl-vdso.c: Move to...
6397 * sysdeps/unix/sysv/linux/dl-vdso.c: ...here.
6398 * sysdeps/unix/sysv/linux/powerpc/dl-vdso.h: Move to...
6399 * sysdeps/unix/sysv/linux/dl-vdso.h: ...here.
6400 * csu/libc-start.c: Pretty printing.
6401 Use VDSO_SETUP if defined.
6402 * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Define VDSO_SETUP
6403 and let generic code call into _libc_vdso_platform_setup.
6404 * sysdeps/unix/sysv/linux/x86_64/libc-start.c: New file.
6405 * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: New file.
6406 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Pretty printing.
6407 Define INLINE_VSYSCALL and INTERNAL_VSYSCALL.
6408 * sysdeps/unix/sysv/linux/x86_64/Versions: Export __vdso_clock_gettime
6409 for GLIBC_PRIVATE.
6410 * sysdeps/unix/sysv/linux/x86_64/Makefile [subdir=elf]
6411 (sysdep_rountines): Add dl-vdso.
6412
6413 * sysdeps/unix/sysv/linux/powerpc/Makefile: Use sysdep_routines instead
6414 of routines.
6415
6416 * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Add
6417 attribute_hidden to __vdso_gettimeofday prototype.
6418
9229b83e
RM
64192007-08-12 Roland McGrath <roland@redhat.com>
6420
6421 * manual/stdio.texi (Variable Arguments Output): Fix xref to gcc manual.
6422 From: Karl Berry <karl@freefriends.org>.
6423
4503061f
UD
64242007-08-11 Ulrich Drepper <drepper@redhat.com>
6425
6426 * elf/dl-misc.c (_dl_sysdep_read_whole_file): We really don't need
6427 an atime update for the files we read.
6428
d7e23b02
UD
64292007-08-10 Ulrich Drepper <drepper@redhat.com>
6430
7cf89e95
UD
6431 * shadow/lckpwdf.c (__lckpwdf): Use O_CLOEXEC if possible.
6432
9d169bb3 6433 * nscd/connections.c: Use O_CLOEXEC if possible. Use mkostemp
d7e23b02
UD
6434 instead of mkstemp.
6435
6436 * misc/Makefile (routines): Add mkostemp and mkostemp64.
6437 * misc/Versions: Export mkostemp and mkostemp64 for GLIBC_2.7.
6438 * misc/mkostemp.c: New file.
6439 * misc/mkostemp64.c: New file.
6440 * stdlib/stdlib.h: Declare the new functions.
6441 * sysdeps/posix/tempname.c: Add new parameter which is added to
6442 the flags for open. Remove __GT_BIGFILE handling.
6443 * stdio-common/tempname.c: Likewise.
6444 * include/stdio.h: Adjust __gen_tempname prototype.
6445 Renumber __GT_* constants.
6446 * libio/oldtmpfile.c: Adjust for __gen_tempname interface change.
6447 * misc/mkdtemp.c: Likewise.
6448 * misc/mkstemp.c: Likewise.
6449 * misc/mkstemp64.c: Likewise.
6450 * misc/mktemp.c: Likewise.
6451 * stdio-common/tempnam.c: Likewise.
6452 * stdio-common/tmpfile.c: Likewise.
6453 * stdio-common/tmpfile64.c: Likewise.
6454 * stdio-common/tmpnam.c: Likewise.
6455 * stdio-common/tmpnam_r.c: Likewise.
6456
22532966
RM
64572007-08-10 Roland McGrath <roland@frob.com>
6458
6459 * sysdeps/mach/hurd/bits/ioctls.h (NLDLY, TABDLY, BSDLY, VTDLY):
6460 New macros.
6461 (NLDELAY, CRDELAY, TBDELAY, BSDELAY, VTDELAY): Define to those.
6462 Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
6463
673876e6
UD
64642007-08-10 Ulrich Drepper <drepper@redhat.com>
6465
aa132749
UD
6466 * nss/nss_files/files-XXX.c (internal_setent): Use O_CLOEXEC if
6467 possible.
6468 * nss/nss_files/files-alias.c (internal_setent): Likewise.
6469 * nss/Makefile (libnss_files-routines): Add files-have_o_cloexec.
6470 * nss/nss_files/files-have_o_cloexec.c: New file.
6471
22532966 6472 * sysdeps/unix/sysv/linux/shm_open.c (shm_open): Use O_CLOEXEC if
673876e6
UD
6473 available.
6474
1e286653
JJ
64752007-08-10 Jakub Jelinek <jakub@redhat.com>
6476
6477 * sysdeps/ieee754/ldbl-128ibm/strtold_l.c (___new_strtold_l,
6478 ___new_wcstold_l): New weak aliases.
6479 (strtold_l, wcstold_l): Use them as second argument for
6480 long_double_symbol.
6481
f07f72f3
UD
64822007-08-09 Ulrich Drepper <drepper@redhat.com>
6483
6479496a
UD
6484 * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Use correct
6485 register in test for error.
6486
c4adefbd
UD
6487 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_CLOEXEC): Define.
6488 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (O_CLOEXEC): Likewise.
6489
f07f72f3
UD
6490 * po/sv.po: Update from translation team.
6491
eef38c28
RM
64922007-08-06 Roland McGrath <roland@redhat.com>
6493
773e305e
RM
6494 * include/stdlib.h: Add libc_hidden_proto for strto*, __strto*_l.
6495 Remove __strto*_l inlines.
6496 * include/wchar.h: Add libc_hidden_proto for wcsto*, __wcsto*_l.
6497 * stdlib/strtod.c: Add libc_hidden_def.
6498 * stdlib/strtod_l.c: Likewise.
6499 * stdlib/strtold.c [__LONG_DOUBLE_MATH_OPTIONAL]: Add libc_hidden_proto
6500 for __new_strtold and __new_wcstold.
6501 * sysdeps/ieee754/ldbl-128ibm/strtold_l.c: Add libc_hidden_proto for
6502 __STRTOF, STRTOF.
6503 * stdlib/strtol.c: Add libc_hidden_def.
6504 * stdlib/strtol_l.c: Likewise.
6505 * sysdeps/wordsize-64/strtol.c: Add libc_hidden_ver for strtoll and
6506 strtoq.
6507
6508 * scripts/data/localplt-powerpc-linux-gnu.data: New file.
6509
6510 * scripts/data/localplt-x86_64-linux-gnu.data: File renamed to ...
6511 * scripts/data/localplt-generic.data: ... here.
6512 * elf/Makefile (check-data): Get generic file if no other.
6513 ($(objpfx)check-localplt.out): Make target unconditional.
6514
eef38c28
RM
6515 * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_discover_osversion):
6516 Use ElfW(Nhdr).
6517
742df3a4
UD
65182007-08-05 Ulrich Drepper <drepper@redhat.com>
6519
6520 * po/zh_CN.po: Updated translation from translation team.
6521
0470fa46
JJ
65222007-08-05 Jakub Jelinek <jakub@redhat.com>
6523
6524 * sysdeps/unix/sysv/linux/powerpc/powerpc32/socket.S (__socket):
6525 Don't use CGOTSETUP and CGOTRESTORE macros.
6526
b5075bdc
RM
65272007-08-04 Roland McGrath <roland@redhat.com>
6528
6529 * posix/Makefile ($(objpfx)getconf.speclist): Fix typo.
6530
9accc268
JJ
65312007-08-04 Jakub Jelinek <jakub@redhat.com>
6532
6533 * io/bits/fcntl2.h (open, open64, openat, openat64): Add
6534 __extension__ around the whole statement expression.
6535
220ae3ef
UD
65362007-08-04 Ulrich Drepper <drepper@redhat.com>
6537
c8ccd8e3
UD
6538 * sysdeps/unix/opendir.c (__alloc_dir): Correct order of DIR
6539 elements during initialization.
6540
220ae3ef
UD
6541 * po/pl.po: Updated translation from translation team.
6542 * po/tr.po: Likewise.
11960f7f 6543 * po/nl.po: Likewise.
220ae3ef 6544
2fb20667
UD
65452007-08-03 Ulrich Drepper <drepper@redhat.com>
6546
6547 * rt/aio.h: Add __nonnull attributes.
6548
ce31a3b1
UD
65492007-08-03 Jakub Jelinek <jakub@redhat.com>
6550
64f6281c
UD
6551 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Properly handle -0.
6552 * stdlib/Makefile (tests): Add tst-strtod5.
6553 (tst-strtod5-ENV): New.
6554 * stdlib/tst-strtod5.c: New file.
6555
ce31a3b1
UD
6556 * intl/dcigettext.c (_nl_find_msg): Free encoding if __gconv_open
6557 failed.
6558 * intl/finddomain.c (_nl_find_domain): Free normalized_codeset
6559 on failure.
6560
6561 * elf/dl-load.c (decompose_rpath): Free copy if result couldn't be
6562 allocated.
6563
754980e4
JJ
65642007-08-03 Jakub Jelinek <jakub@redhat.com>
6565
6566 * rt/mqueue.h (mq_timedreceive, mq_timedsend): Fix nonnull argument
6567 numbers.
6568
497af0cb
UD
65692007-08-02 Ulrich Drepper <drepper@redhat.com>
6570
cbf0489b
UD
6571 * io/Makefile (aux): Add have_o_cloexec.
6572 * include/fcntl.h: Declare __have_o_cloexec.
6573 * io/have_o_cloexec.c: New file.
6574 * sysdeps/unix/opendir.c (__opendir): Use O_CLOEXEC is available.
6575 (__alloc_dir): If O_CLOEXEC has been used, don't duplicate the
6576 fcntl call if not necessary.
6577 * login/utmp_file.c (setutent_file): Use __have_o_cloexec instead
6578 of local variable.
6579
fa39685d
UD
6580 * sysdeps/unix/opendir.c (__alloc_dir): Don't initialize ->data.
6581 Avoid memset, add explicit initialization.
6582 * sysdeps/unix/dirstream.h (struct __dirstream): Move data elemtn
6583 to the end and change into zero-sized array.
6584 Move lock member to fill a hole on 64-bit platforms.
9b2e9577
UD
6585
6586 * stdlib/stdlib.h: Remove __strto*_internal prototypes and strto*
6587 inline functions.
6588 * include/stdlib.h: Add __strto*_internal prototypes here.
6589 * wcsmbs/wchar.h: Remove __wcsto*_internal prototypes and wcsto*
6590 inline functions.
6591 * include/wchar.h: Add __wcsto*_internal prototypes.
6592 * sysdeps/generic/inttypes.h: No need to protect the declaration
6593 of the __strto*_internal and __wcsto*_internal members here.
6594
497af0cb
UD
6595 * rt/mqueue.h: Change const to __const and add nonnull attributes.
6596
d17a8cf0
RM
65972007-08-02 Roland McGrath <roland@redhat.com>
6598
6599 * posix/Makefile ($(inst_libexecdir)/getconf): Make hard links to
6600 $(inst_bindir)/getconf if possible.
6601
6602 * posix/Makefile ($(objpfx)getconf.speclist): New target.
6603 (generated): Add it.
6604 ($(inst_libexecdir)/getconf): Use it.
6605
0abf17de
UD
66062007-08-01 Ulrich Drepper <drepper@redhat.com>
6607
6608 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Using
6609 /proc is faster and sufficient. /sys is still needed for
6610 __get_nprocs_conf.
6611
5e0923ab
UD
66122007-08-01 Jakub Jelinek <jakub@redhat.com>
6613
6614 * sysdeps/unix/sysv/linux/i386/syscalls.list (fallocate): Add fallocate
6615 syscall as __fallocate64.
6616 * sysdeps/unix/sysv/linux/i386/posix_fallocate.c: New file.
6617 * sysdeps/unix/sysv/linux/i386/posix_fallocate64.c: New file.
6618
1475e201
UD
66192007-07-30 Jakub Jelinek <jakub@redhat.com>
6620
6621 * stdlib/tst-strtod2.c (do_test): Use %tu in fmt string for ptrdiff_t
6622 value.
6623
6624 * stdio-common/tst-fmemopen2.c (do_test): Avoid fmt string warning
6625 if off_t is different rank from size_t.
6626
6627 * sysdeps/generic/unwind-dw2.c (extract_cie_info, execute_cfa_program,
6628 uw_frame_state_for): Avoid type punning warnings.
6629 * sysdeps/generic/unwind-dw2-fde-glibc.c
6630 (_Unwind_IteratePhdrCallback): Likewise.
6631 * sysdeps/generic/unwind-dw2-fde.c (_Unwind_Find_FDE): Likewise.
6632 (binary_search_single_encoding_fdes, binary_search_mixed_encoding_fdes,
6633 get_cie_encoding, linear_search_fdes): Don't mix char and unsigned char
6634 pointers.
6635
e076bece
UD
66362007-07-31 Ulrich Drepper <drepper@redhat.com>
6637
9506149a
UD
6638 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs_conf): Count
6639 total processors using sysfs.
6640 (__get_nprocs): Use sysfs to determine which processors are online.
e076bece 6641
bbeaaa84
JJ
66422007-07-31 Jakub Jelinek <jakub@redhat.com>
6643
09881398
JJ
6644 * sysdeps/unix/sysv/linux/posix_fallocate.c (posix_fallocate): Fix
6645 syscall arguments count.
6646
bbeaaa84
JJ
6647 * stdio-common/tfformat.c (sprint_doubles): Add 12 new tests.
6648
087ef75f
RM
66492007-07-30 Roland McGrath <roland@redhat.com>
6650
6651 * manual/libc.texinfo: Update copyrights, formatting magic, and
6652 @dircategory. From Karl Berry <karl@freefriends.org>.
6653
44f08a6e
UD
66542007-07-29 Ulrich Drepper <drepper@redhat.com>
6655
eafaae72
UD
6656 [BZ #4860]
6657 * io/Makefile (headers): Add bits/fcntl2.h.
6658
c5705565
UD
6659 * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_ZERO_S): Optimize
6660 using gcc builtin.
6661 (__CPU_EQUAL_S): Likewise.
6662
44f08a6e
UD
6663 * posix/Makefile (routines): Add sched_cpualloc and sched_cpufree.
6664 (tests): Add tst-cpuset.
6665 * posix/sched_cpualloc.c: New file.
6666 * posix/sched_cpufree.c: New file.
6667 * posix/tst-cpuset.c: New file.
6668 * posix/Versions: Export __sched_cpualloc and __sched_cpufree for
6669 GLIBC_2.7.
6670 * sysdeps/unix/sysv/linux/bits/sched.h: Define __CPU_*_S macros.
6671 * posix/sched.h: Define old CPU_* macros in temers of __CPU_*_S
6672 macros. Define CPU_*_S macros.
6673
8f5e1400
UD
66742007-07-28 Ulrich Drepper <drepper@redhat.com>
6675
5b74caf6
UD
6676 * posix/getconf.c (vars): Add missing _SC_LEVEL4_CACHE_LINESIZE
6677 entry.
6678
a26d01bb 6679 [BZ #4858]
8f5e1400
UD
6680 * stdio-common/printf_fp.c (___printf_fp): Fix special case of
6681 #.0g and value rounded to 1.0.
6682 * stdio-common/tfformat.c (sprint_doubles): Add two new tests.
6683
085a4412
UD
66842007-07-26 Jakub Jelinek <jakub@redhat.com>
6685
cedb4109
UD
6686 * locale/programs/ld-monetary.c (monetary_finish): Avoid range check
6687 for int_frac_digits and frac_digits.
6688
6689 * login/logout.c (logout): Avoid aliasing violation.
6690 * login/logwtmp.c (logwtmp): Likewise.
6691
6692 * libio/genops.c (_IO_un_link): Avoid aliasing violation.
6693
9d9febc7
UD
6694 * nscd/selinux.c (preserve_capabilities): Initialize new_caps
6695 to avoid warning.
6696 * iconv/gconv_open.c (__gconv_open): Initialize ptr to avoid
6697 warning.
6698 * nis/nis_subr.c (nis_getnames): Initialize saveptr to avoid
6699 warning.
6700 * resolv/inet_ntop.c (inet_ntop6): Initialize best.len and cur.len
6701 to avoid warnings.
6702
701666b7
UD
6703 * nss/nsswitch.c (__nss_lookup_function): Don't cast &ni->known to
6704 void **.
6705 * nss/nsswitch.h (service_user): Use void * type for KNOWN field.
6706
6707 * nss/nss_files/files-hosts.c (LINE_PARSER): Cast host_addr to
6708 char * to avoid warning.
6709 * nis/nss_nis/nis-hosts.c (LINE_PARSER): Likewise.
6710
6711 * timezone/Makefile (CFLAGS-zdump.c): Add -fwrapv.
6712
6713 * locale/programs/ld-ctype.c (ctype_finish, set_class_defaults,
6714 allocate_arrays): Cast second argument to charmap_find_symbol
6715 to char * to avoid warnings.
6716
6717 * locale/programs/repertoire.c (repertoire_new_char): Change
6718 from_nr, to_nr and cnt to unsigned long, adjust printf format
6719 string.
6720
6721 * locale/programs/ld-collate.c (insert_value, handle_ellipsis):
6722 Cast second argument to new_element to char * to avoid warnings.
6723
6724 * locale/weightwc.h (findidx): Cast &extra[-i] to const int32_t *.
6725
6726 * intl/gettextP.h (struct loaded_domain): Change plural to const
6727 struct expression *.
6728 * intl/plural-eval.c (plural_eval): Change first argument to
6729 const struct expression *.
6730 * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Change first
6731 argument to const struct expression **.
6732 * intl/plural-exp.h (EXTRACT_PLURAL_EXPRESSION, plural_eval): Adjust
6733 prototypes.
6734 * intl/loadmsgcat (_nl_unload_domain): Cast away const
6735 in call to __gettext_free_exp.
6736
6737 * posix/fnmatch.c (fnmatch): Rearrange code to avoid maybe
6738 unitialized wstring/wpattern var warnings.
6739
6740 * posix/runtests.c (struct a_test): Make data field const char *.
6741
6742 * stdio-common/tst-sprintf2.c (main): Don't declere u, v and buf
6743 vars if not LDBL_MANT_DIG >= 106.
6744
6745 * stdio-common/Makefile (CFLAGS-vfwprintf.c): Add -Wno-unitialized.
6746
6747 * stdio-common/vfprintf.c (vfprintf): Cast first arugment to
6748 __find_specmb to avoid warning.
6749
6750 * rt/tst-mqueue1.c (do_one_test): Add casts to avoid warnings.
6751
6752 * debug/test-strcpy_chk.c (do_tests, do_random_tests): Add casts
6753 to avoid warnings.
6754
6755 * sysdeps/ieee754/ldbl-96/s_roundl.c (huge): Add L suffix to
6756 initializer.
6757
6758 * sysdeps/unix/clock_gettime.c (clock_gettime): Only define
6759 tv var when it will be actually used.
6760
6761 * sunrpc/rpc_cmsg.c (xdr_callmsg): Cast IXDR_PUT_* to void
6762 to avoid warnings.
6763
085a4412
UD
6764 * iconvdata/gbk.c (BODY): Make buf and cp char instead of unsigned
6765 char array resp. pointer.
6766 * iconvdata/iso-2022-kr.c (BODY): Make buf unsigned char instead of
6767 char array.
6768 * iconvdata/cns11643.h (cns11643_to_ucs4): Change first argument
6769 to const unsigned char **.
6770 (ucs4_to_cns11643): Change second argument to unsigned char *.
6771 * iconvdata/euc-tw.c (BODY): Change endp type to
6772 const unsigned char *.
6773 * iconvdata/iso-ir-165.h (ucs4_to_isoir165): Change second argument
6774 to unsigned char *.
6775 * iconvdata/ibm1008_420.c (LOOP_NEED_FLAGS): Don't define.
6776 * iconvdata/iso-2022-cn.c (BODY): Change buf to unsigned char array.
6777 * iconvdata/iso-2022-cn-ext.c (BODY): Change buf, tmpbuf, tmp
6778 types to unsigned char pointers/arrays instead of char.
6779 * iconvdata/jis0201.h (ucs4_to_jisx0201): Change second argument
6780 to unsigned char *.
6781 * iconvdata/jis0208.h (ucs4_to_jisx0208): Likewise.
6782 * iconvdata/jis0212.h: Include assert.h.
6783 (ucs4_to_jisx0212): Change second argument to unsigned char *.
6784 assert that if cp[0] is not '\0', cp[1] is not '\0' either instead
6785 of trying to handle that.
6786 * iconvdata/euc-kr.c (euckr_from_ucs4): Initialize also cp[1] to
6787 shut up a warning.
6788 * iconvdata/euc-jp-ms.c (from_ucs4_lat1, from_ucs4_greek,
6789 from_ucs4_cjk, from_ucs4_cjkcpt, from_ucs4_extra): Change type to
6790 two dimensional const unsigned char arrays.
6791 (BODY): Cast "" to (const unsigned char *) for assignment to cp.
6792 Initialize endp to inptr to shut up a warning.
6793
fa69dc9c
UD
67942007-07-20 Jakub Jelinek <jakub@redhat.com>
6795
ae1ad762
UD
6796 [BZ #4772]
6797 * time/strptime_l.c (__strptime_internal): Silently ignore
6798 strftime modifiers and field width in recursive calls.
6799
fa69dc9c
UD
6800 * include/time.h (enum ptime_locale_status): Remove.
6801 (__strptime_internal): Remove decided and era_cnt arguments,
6802 add statep argument.
6803 * time/strptime_l.c (__strptime_internal): Remove decided
6804 and era_cnt arguments, add statep argument. Don't recompute
6805 any fields in recursive calls, only update caller's tm
6806 and state, if recursive call fails, don't change tm nor
6807 any state.
6808 (get_alt_number): Adjust.
6809 (recursive): Adjust caller.
6810 (strptime): Likewise.
6811 * time/strptime.c (strptime): Likewise.
6812
7b503bcc
UD
68132007-07-19 Jakub Jelinek <jakub@redhat.com>
6814
6815 * iconv/gconv_int.h (__GCONV_NULCONV): New internal only error code.
6816 * iconv/gconv_cache.c (__gconv_lookup_cache): Return __GCONV_NULCONV
6817 if from and to charsets are the same.
6818 * iconv/gconv_db.c (__gconv_find_transform): Likewise.
6819 * intl/dcigettext.c (_nl_find_msg): Return NULL even if __gconv_open
6820 returns __GCONV_NOCONV, but not for __GCONV_NULCONV.
6821
68222007-07-17 Jakub Jelinek <jakub@redhat.com>
6823
6824 * wcsmbs/wchar.h: Only define wint_t if __need_wint_t.
6825 Don't define wint_t when __need_mbstate_t unless it
6826 is necessary.
6827 (__mbstate_t): Use __WINT_TYPE__ rather than wint_t
6828 in the typedef if possible.
6829 * wctype/wctype.h (wint_t): Define by including
6830 wchar.h with __need_wint_t instead of including stddef.h
6831 with __need_wint_t and as fallback definining it ourselves.
6832 * iconv/gconv.h (__need_wint_t): Define before including
6833 wchar.h.
6834 * sysdeps/gnu/_G_config.h: Don't include gconv.h if not _LIBC
6835 or _GLIBCPP_USE_WCHAR_T.
6836 (__need_wchar_t): Don't define
6837 if not _LIBC or _GLIBCPP_USE_WCHAR_T.
6838 (__need_wint_t): Don't define before including stddef.h,
6839 define before including wchar.h only if _LIBC or
6840 _GLIBCPP_USE_WCHAR_T.
6841 (_G_iconv_t): Don't define if not _LIBC or _GLIBCPP_USE_WCHAR_T.
6842 * sysdeps/mach/hurd/_G_config.h: Likewise.
6843 * sysdeps/generic/_G_config.h: Likewise.
6844 * libio/libio.h (__wunderflow, __wuflow, __woverflow): Only
6845 prototype if _LIBC or _GLIBCPP_USE_WCHAR_T.
6846 (_IO_getwc_unlocked, _IO_putwc_unlocked): Only define
6847 if _LIBC or _GLIBCPP_USE_WCHAR_T.
6848
a95a608f
UD
68492007-07-28 Ulrich Drepper <drepper@redhat.com>
6850
6851 * sysdeps/posix/posix_fallocate64.c: Undefine
6852 __posix_fallocate64_l64 before alias handling.
6853 * sysdeps/unix/sysv/linux/posix_fallocate.c: New file.
6854 * sysdeps/unix/sysv/linux/posix_fallocate64.c: New file.
6855 * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c: New file.
6856 * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate64.c: New file.
6857
6858 * io/tst-posix_fallocate.c: Include <fcntl.h>.
6859
68602007-07-23 Jakub Jelinek <jakub@redhat.com>
6861
6862 * locale/programs/ld-collate.c (atwc): New variable.
6863 (add_to_tablewc): New toplevel function, moved from collate_output.
6864 (collate_output): Remove add_to_tablewc nested function.
6865
6866 * iconv/iconvconfig.c (hash_table, hash_size): New toplevel vars.
6867 (name_insert): New function.
6868 (write_output): Remove hash_table and hash_size vars and name_insert
6869 nested function.
6870
80d4c3b0
RM
68712007-07-24 Roland McGrath <roland@redhat.com>
6872
6873 * Makerules (install-others-programs-nosubdir): New target.
6874 (install-no-libc.a-nosubdir): Depend on it.
6875
6876 * iconv/Makefile (install-others-programs): Set this instead of
6877 install-others.
6878 * login/Makefile (install-others-programs): Likewise.
6879 * posix/Makefile (install-others-programs): Likewise.
6880
6881 * Makerules (install-no-libc.a-nosubdir): Clean up conditional
6882 dependencies.
6883
c1bf9f14
UD
68842007-07-23 Ulrich Drepper <drepper@redhat.com>
6885
6886 * io/Makefile (tests): Add tst-posix_fallocate.
6887 * io/tst-posix_fallocate.c: New file.
6888
6889 * sysdeps/unix/sysv/linux/kernel-features.h: Define
6890 __ASSUME_FALLOCATE.
6891
2320270c
RM
68922007-07-22 Roland McGrath <roland@frob.com>
6893
3dadfa7e
RM
6894 * hurd/getdport.c: Add missing copyright year update.
6895
2320270c
RM
6896 * sysdeps/mach/hurd/bits/fcntl.h [__USE_GNU] (O_CLOEXEC): New macro.
6897 * hurd/port2fd.c (_hurd_port2fd): Implement O_CLOEXEC.
6898
cc783763
UD
68992007-07-22 Ulrich Drepper <drepper@redhat.com>
6900
c942388d
UD
6901 * login/utmp_file.c (setutent_file): Use O_CLOEXEC if possible.
6902
cc783763
UD
6903 * libio/fileops.c (_IO_new_file_fopen): Recognize 'e' flag and set
6904 O_CLOEXEC is needed.
6905 * nis/nss_compat/compat-grp.c: Use 'e' flag when opening file.
6906 Avoid additional fcntl to set O_CLOEXEC if not needed.
6907 * nis/nss_compat/compat-initgroups.c: Likewise.
6908 * nis/nss_compat/compat-pwd.c: Likewise.
6909 * nis/nss_compat/compat-spwd.c: Likewise.
6910
610903b0
RM
69112007-07-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
6912
3dadfa7e 6913 [BZ #3665]
5c3d7832
RM
6914 * manual/errno.texi: Change ECANCELED value to 119.
6915
3dadfa7e 6916 [BZ #4610]
610903b0
RM
6917 * mach/lock-intern.h: Include <sys/cdefs.h>.
6918
3dadfa7e 6919 [BZ #4178]
610903b0
RM
6920 * sysdeps/mach/hurd/sigaction.c (__sigaction): Check ACT != NULL before
6921 reading A.
6922
3dadfa7e
RM
6923 [BZ #4126]
6924 * sysdeps/mach/hurd/sigsuspend.c (sigsuspend_not_cancel): Define alias
6925 to __sigsuspend.
610903b0
RM
6926
6927 * sysdeps/mach/i386/sysdep.h: Include <dl-sysdep.h> and <tls.h>.
6928
69292006-06-13 Thomas Schwinge <tschwinge@gnu.org>
6930
6931 * sysdeps/mach/hurd/tls.h: Change `ASSEMBLER' conditional to
6932 `__ASSEMBLER__'.
6933 * sysdeps/mach/hurd/i386/tls.h: Likewise.
6934
acf79996
UD
69352007-07-21 Ulrich Drepper <drepper@redhat.com>
6936
dde0763a
UD
6937 * nscd/nscd_helper.c (get_mapping): Use MSG_CMSG_CLOEXEC for
6938 descriptor received from nscd.
6939
acf79996
UD
6940 * sysdeps/unix/sysv/linux/bits/socket.h: Define MSG_CMSG_CLOEXEC.
6941
6942 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_CLOEXEC.
6943 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
6944 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
6945 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
6946 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
6947 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
6948
00d26929
JJ
69492007-07-20 Jakub Jelinek <jakub@redhat.com>
6950
403445d7
JJ
6951 [BZ #4816]
6952 * manual/signal.texi (Non-atomic Example): Make memory var volatile.
6953
00d26929
JJ
6954 [BZ #4813]
6955 * login/forkpty.c (forkpty): Close master and slave fds on
6956 fork failure. Patch by
6957 Mikulas Patocka <mikulas@artax.karlin.mff.cuni.cz>.
6958
087722b8
UD
69592007-07-18 Jakub Jelinek <jakub@redhat.com>
6960
6961 * include/features.h (__USE_ISOC95): New define.
6962 * wcsmbs/wchar.h (fwprintf, fwscanf, wprintf, wscanf, swprintf,
6963 swscanf, vfwprintf, vwprintf, vswprintf, fwide): Define even
6964 for -std=iso9899:199409.
6965 * CONFORMANCE: Remove comments about unsupported AMD1.
6966
b042b023
UD
69672007-07-17 Jakub Jelinek <jakub@redhat.com>
6968
6969 * sysdeps/ia64/sched_cpucount.c: New file.
6970 * sysdeps/powerpc/sched_cpucount.c: New file.
6971
8381e467
UD
6972 * sysdeps/unix/sysv/linux/bits/sched.h (__sched_cpucount): Add
6973 __BEGIN_DECLS/__END_DECLS around the prototype.
6974 * bits/sched.h (__sched_cpucount): Likewise. Make second argument
6975 pointer to const cpu_set_t.
6976
50e16f85
UD
6977 * bits/types.h: Don't include stddef.h, don't define __need_size_t.
6978 * signal/signal.h <__USE_BSD || __USE_XOPEN_EXTENDED>: Define
6979 __need_size_t and include stddef.h.
6980 * sysvipc/sys/msg.h: Likewise.
6981 * posix/sched.h: Likewise.
6982 * hurd/hurd/signal.h (__need_size_t): Define.
6983
6984 * CONFORMANCE: ctype.h and wctype.h no longer define size_t,
6985 neither does signal.h in pedantic ISO C namespaces. stdio.h
6986 no longer defines wint_t or wchar_t.
6987
b257c726
UD
6988 * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): New function.
6989 * debug/vfwprintf_chk.c (__vfwprintf_chk): Use
6990 _IO_acquire_lock_clear_flags2 instead of _IO_acquire_lock.
6991 * debug/vprintf_chk.c (__vprintf_chk): Likewise.
6992 * debug/vwprintf_chk.c (__vwprintf_chk): Likewise.
6993 * debug/vfprintf_chk.c (__vfprintf_chk): Likewise.
6994 * debug/fwprintf_chk.c (__fwprintf_chk): Likewise.
6995 * debug/printf_chk.c (__printf_chk): Likewise.
6996 * debug/fprintf_chk.c (__fprintf_chk): Likewise.
6997 * debug/wprintf_chk.c (__wprintf_chk): Likewise.
6998
6999 * sysdeps/pthread/bits/stdio-lock.h (_IO_acquire_lock_clear_flags2):
7000 Define.
7001
d5078b9f
UD
7002 * bits/confname.h (_CS_POSIX_V6_WIDTH_RESTRICTED_ENVS): Define.
7003 * posix/getconf.c (vars): Add POSIX_V6_WIDTH_RESTRICTED_ENVS.
7004
1c3e748e
UD
70052007-07-16 Jakub Jelinek <jakub@redhat.com>
7006
7007 [BZ #4792]
7008 * stdlib/stdlib.h (realloc): Remove __attribute_malloc__.
7009 * malloc/malloc.h (realloc): Likewise.
7010
4e425301
UD
7011 * libio/iopopen.c (_IO_new_proc_open): Don't close child_std_end
7012 if one of proc_file_chain streams has that fileno.
7013 * stdio-common/Makefile (tests): Add tst-popen2.
7014 * stdio-common/tst-popen2.c: New test.
7015
2e2efe65
RM
70162007-07-14 Jakub Jelinek <jakub@redhat.com>
7017
7018 * elf/ldconfig.c: Allow GPLv2 or any later version.
7019 * elf/readlib.c: Likewise.
7020 * elf/chroot_canon.c: Likewise.
7021 * elf/cache.c: Likewise.
7022 * nscd/mem.c: Likewise.
7023 * nscd/getpwuid_r.c: Likewise.
7024 * nscd/grpcache.c: Likewise.
7025 * nscd/aicache.c: Likewise.
7026 * nscd/getsrvbynm_r.c: Likewise.
7027 * nscd/nscd.c: Likewise.
7028 * nscd/servicescache.c: Likewise.
7029 * nscd/getsrvbypt_r.c: Likewise.
7030 * nscd/initgrcache.c: Likewise.
7031 * nscd/gethstbyad_r.c: Likewise.
7032 * nscd/gethstbynm2_r.c: Likewise.
7033 * nscd/getgrnam_r.c: Likewise.
7034 * nscd/nscd_setup_thread.c: Likewise.
7035 * nscd/getpwnam_r.c: Likewise.
7036 * nscd/gai.c: Likewise.
7037 * nscd/connections.c: Likewise.
7038 * nscd/dbg_log.c: Likewise.
7039 * nscd/cache.c: Likewise.
7040 * nscd/hstcache.c: Likewise.
7041 * nscd/nscd_conf.c: Likewise.
7042 * nscd/getgrgid_r.c: Likewise.
7043 * nscd/pwdcache.c: Likewise.
7044 * catgets/gencat.c: Likewise.
7045 * locale/programs/linereader.h: Likewise.
7046 * locale/programs/locarchive.c: Likewise.
7047 * locale/programs/ld-paper.c: Likewise.
7048 * locale/programs/locfile-kw.h: Likewise.
7049 * locale/programs/ld-address.c: Likewise.
7050 * locale/programs/xmalloc.c: Likewise.
7051 * locale/programs/ld-time.c: Likewise.
7052 * locale/programs/localedef.c: Likewise.
7053 * locale/programs/simple-hash.c: Likewise.
7054 * locale/programs/xstrdup.c: Likewise.
7055 * locale/programs/ld-numeric.c: Likewise.
7056 * locale/programs/locfile-kw.gperf: Likewise.
7057 * locale/programs/ld-collate.c: Likewise.
7058 * locale/programs/charmap-kw.gperf: Likewise.
7059 * locale/programs/charmap.h: Likewise.
7060 * locale/programs/charmap-kw.h: Likewise.
7061 * locale/programs/config.h: Likewise.
7062 * locale/programs/locfile.c: Likewise.
7063 * locale/programs/ld-ctype.c: Likewise.
7064 * locale/programs/charmap.c: Likewise.
7065 * locale/programs/ld-messages.c: Likewise.
7066 * locale/programs/repertoire.h: Likewise.
7067 * locale/programs/locale.c: Likewise.
7068 * locale/programs/ld-name.c: Likewise.
7069 * locale/programs/linereader.c: Likewise.
7070 * locale/programs/locfile.h: Likewise.
7071 * locale/programs/3level.h: Likewise.
7072 * locale/programs/ld-monetary.c: Likewise.
7073 * locale/programs/ld-measurement.c: Likewise.
7074 * locale/programs/charmap-dir.c: Likewise.
7075 * locale/programs/ld-identification.c: Likewise.
7076 * locale/programs/localedef.h: Likewise.
7077 * locale/programs/charmap-dir.h: Likewise.
7078 * locale/programs/repertoire.c: Likewise.
7079 * locale/programs/simple-hash.h: Likewise.
7080 * locale/programs/ld-telephone.c: Likewise.
7081 * locale/programs/locale-spec.c: Likewise.
7082 * locale/programs/locfile-token.h: Likewise.
7083 * posix/getconf.c: Likewise.
7084 * iconv/dummy-repertoire.c: Likewise.
7085 * iconv/iconv_charmap.c: Likewise.
7086 * iconv/iconvconfig.c: Likewise.
7087 * iconv/iconv_prog.c: Likewise.
7088 * malloc/memusagestat.c: Likewise.
7089 * sysdeps/unix/sysv/linux/nscd_setup_thread.c: Likewise.
7090
84c23a3d
RM
70912007-07-06 Kaz Kojima <kkojima@rr.iij4u.or.jp>
7092
7093 * sysdeps/sh/bsd-setjmp.S (setjmp): Use correct argument registers.
7094 * sysdeps/sh/bsd-_setjmp.S (_setjmp): Likewise.
7095 * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Do correct sanity
7096 check for the first argument.
7097
1c298d08
UD
70982007-07-12 Jakub Jelinek <jakub@redhat.com>
7099
7100 [BZ #4775]
7101 * math/tgmath.h (__tgmath_real_type_sub): Formatting.
7102 (__tgmath_real_type): Fix if expr is const int or other const
7103 qualified integral type.
7104 (__TGMATH_UNARY_REAL_ONLY): Rewritten to avoid using statement
7105 expressions and handle const qualified arguments.
7106 (__TGMATH_BINARY_FIRST_REAL_ONLY, __TGMATH_UNARY_REAL_IMAG,
7107 __TGMATH_UNARY_REAL_IMAG_RET_REAL): Likewise.
7108 (__TGMATH_UNARY_REAL_RET_ONLY): Rewritten to avoid using
7109 statement expressions.
7110 (__TGMATH_BINARY_REAL_ONLY, __TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY,
7111 __TGMATH_TERNARY_REAL_ONLY, __TGMATH_BINARY_REAL_IMAG): Likewise.
7112 (__TGMATH_UNARY_IMAG): Define.
7113 (conj, cproj): Use __TGMATH_UNARY_IMAG macro.
7114 * math/Makefile (tests): Add test-tgmath2.
7115 (CFLAGS-test-tgmath2.c): Add.
7116 * math/test-tgmath.c (fy, dy, ly, fz, dz, lz, count_cdouble,
7117 count_cfloat, count_cldouble): New variables.
7118 (NCCALLS): Define.
7119 (main): Check number of complex calls as well.
7120 (F(compile_test)): Add complex tests and tests with const qualified
7121 arguments.
7122 (y, z, ccount): Define.
7123 (F(cacos), F(casin), F(catan), F(ccos), F(csin), F(ctan), F(cacosh),
7124 F(casinh), F(catanh), F(ccosh), F(csinh), F(ctanh), F(cexp), F(clog),
7125 F(csqrt), F(cpow), F(cabs), F(carg), F(creal), F(cimag), F(conj),
7126 F(cproj)): New functions.
7127 * math/test-tgmath2.c: New test.
7128
71292007-07-11 Jakub Jelinek <jakub@redhat.com>
7130
7131 [BZ #4776]
7132 * elf/dl-load.c (_dl_rtld_di_serinfo): Output / in LD_LIBRARY_PATH,
7133 RPATH etc. as "/" rather than "", don't segfault on empty paths,
7134 instead output ".".
7135 * dlfcn/Makefile (distribute): Add glreflib3.c.
7136 (module-names): Add glreflib3.
7137 ($(objpfx)tst-dlinfo.out): Depend on glreflib3.so rather than
7138 glreflib1.so.
7139 (LDFLAGS_glreflib3.so): New.
7140 * dlfcn/tst-dlinfo.c (do_test): Load glreflib3.so instead of
7141 glreflib1.so.
7142 * dlfcn/glreflib3.c: New file.
7143
7144 * intl/finddomain.c (_nl_find_domain): If _nl_explode_name
7145 returned -1, return NULL.
7146 * intl/explodename.c (_nl_explode_name): Return -1 if
7147 _nl_normalize_codeset failed.
7148
a88f47a7
UD
71492007-07-07 Steven Munroe <sjmunroe@us.ibm.com>
7150
7151 * sysdeps/powerpc/powerpc32/power6/memset.S: Update comments.
7152 Specify .machine power6 to get ISA-V2.0 branch hints. Unroll loops
7153 and avoid branch misspredicts for > 31 bytes memset case.
7154 * sysdeps/powerpc/powerpc64/power6/memset.S: Likewise.
7155 Remove toc ref to __cache_line_size.
7156
7157 * sysdeps/powerpc/powerpc32/power4/memcmp.S: Specify .machine power4
7158 to get ISA-V2.0 branch hints.
7159 * sysdeps/powerpc/powerpc32/power4/memcpy.S: Likewise
7160 * sysdeps/powerpc/powerpc32/power4/memset.S: Likewise
7161 * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
7162 * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
7163 * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
7164 * sysdeps/powerpc/powerpc64/power4/memset.S: Likewise.
7165 Remove toc ref to __cache_line_size.
7166
7167 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S:
7168 Include math_ldbl_opt.h.
7169
f98c2d06
UD
71702007-07-10 Ulrich Drepper <drepper@redhat.com>
7171
7172 [BZ #4773]
7173 * time/strptime_l.c (__strptime_internal): Implement greedy
7174 matching of weekday and month names.
7175
cec5991f
RM
71762007-07-09 Roland McGrath <roland@redhat.com>
7177
7178 * elf/elf.h (NT_GNU_ABI_TAG): New macro.
7179 (ELF_NOTE_ABI): Use it.
7180 (NT_GNU_HWCAP, NT_GNU_BUILD_ID): New macros.
7181
8c1dcd26
UD
71822007-07-09 Ulrich Drepper <drepper@redhat.com>
7183
7184 * sysdeps/x86_64/cacheinfo.c (intel_02_known): Add new entries.
7185 * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
7186
c2c7bd3f
UD
71872007-07-07 Ulrich Drepper <drepper@redhat.com>
7188
7189 [BZ #4745]
0923a2c8
UD
7190 * stdio-common/vfscanf.c (_IO_vfscanf): Add additional test for EOF
7191 in loop to look for conversion specifier to avoid testing of
7192 wrong errno value.
7193 * stdio-common/Makefile (tests): Add bug18, bug18a, bug19, bug19a.
c2c7bd3f 7194 * stdio-common/bug18.c: New file.
0923a2c8
UD
7195 * stdio-common/bug18a.c: New file.
7196 * stdio-common/bug19.c: New file.
7197 * stdio-common/bug19a.c: New file.
c2c7bd3f 7198
4facf4af
RM
71992007-07-05 Mike Frysinger <vapier@gentoo.org>
7200
7201 * Makeconfig ($(common-objpfx)gnu/lib-names.stmp): Use LC_ALL=C when
7202 running awk script.
7203
1311e86e
UD
72042007-07-01 Jakub Jelinek <jakub@redhat.com>
7205
7206 * elf/dl-sysdep.c (_dl_important_hwcaps): Add integer overflow check.
7207 * elf/dl-minimal.c (__libc_memalign): Likewise. Handle malloc (0).
7208 Return NULL if mmap failed instead of asserting it does not.
7209 (calloc): Check for integer overflow.
7210
7211 * elf/dl-minimal.c (__strtoul_internal): Fix parsing of numbers bigger
7212 than LONG_MAX / 10.
7213
57c9179c
UD
72142007-07-03 Jakub Jelinek <jakub@redhat.com>
7215
7216 [BZ #4702]
7217 * nis/nss-default.c: Include errno.h.
7218 (init): Preserve errno.
7219
d0b283a8
UD
72202007-07-02 Ulrich Drepper <drepper@redhat.com>
7221
7222 * sysdeps/unix/sysv/linux/bits/socket.h (PF_UNIX): Update comment.
7223
34e0bbaf
UD
72242007-06-30 Ulrich Drepper <drepper@redhat.com>
7225
7226 * sysdeps/unix/sysv/linux/bits/socket.h: Add PF_RXRPC and AF_RXRPC.
7227
72282007-06-29 Martin Schwidefsky <schwidefsky@de.ibm.com>
7229
7230 * sysdeps/unix/sysv/linux/bits/socket.h: Add PF_IUCV and AF_IUCV.
7231
34e0bbaf 72322007-06-29 Martin Schwidefsky <schwidefsky@de.ibm.com>
33516494
UD
7233
7234 * sysdeps/s390/dl-procinfo.c: New file.
7235 * sysdeps/s390/dl-procinfo.h: New file.
7236 * sysdeps/unix/sysv/linux/s390/dl-procinfo.h: New file.
7237
0e508a6e
UD
72382007-06-29 Jakub Jelinek <jakub@redhat.com>
7239
7240 * elf/dl-load.c (open_verify): Find .note.ABI-tag notes even
7241 in PT_NOTE segments with multiple notes.
7242 * elf/readelflib.c (process_elf_file): Likewise.
7243
e22c61fb
UD
72442007-06-22 Ulrich Drepper <drepper@redhat.com>
7245
7246 * nis/nis_domain_of.c (__nis_domain_of): Make the code a bit more
7247 ISO C compliant.
7248
e4eb675d
UD
72492007-06-19 Ulrich Drepper <drepper@redhat.com>
7250
7251 * elf/dl-close.c (free_mem): Free _dl_scope_free_list.
7252
72532007-06-13 Jakub Jelinek <jakub@redhat.com>
7254
7255 * include/link.h: Don't include rtld-lowlevel.h.
7256 (struct link_map): Remove l_scope_lock.
7257 * sysdeps/generic/ldsodefs.h: Don't include rtld-lowlevel.h.
7258 (_dl_scope_free_list): New field (variable) in _rtld_global.
7259 (DL_LOOKUP_SCOPE_LOCK): Remove.
7260 (_dl_scope_free): New prototype.
7261 * elf/dl-runtime.c (_dl_fixup): Don't use __rtld_mrlock_*lock.
7262 Don't pass DL_LOOKUP_SCOPE_LOCK to _dl_lookup_symbol_x.
7263 (_dl_profile_fixup): Likewise.
7264 * elf/dl-sym.c (do_sym): Likewise. Use wrapped _dl_lookup_symbol_x
7265 whenever !RTLD_SINGLE_THREAD_P, use THREAD_GSCOPE_SET_FLAG and
7266 THREAD_GSCOPE_RESET_FLAG around it.
7267 * elf/dl-close.c (_dl_close_worker): Don't use
7268 __rtld_mrlock_{change,done}. Call _dl_scope_free on the old
7269 scope. Make sure THREAD_GSCOPE_WAIT () happens if any old
7270 scopes were queued or if l_scope_mem has been abandoned.
7271 * elf/dl-open.c (_dl_scope_free): New function.
7272 (dl_open_worker): Use it. Don't use __rtld_mrlock_{change,done}.
7273 * elf/dl-support.c (_dl_scope_free_list): New variable.
7274 * elf/dl-lookup.c (add_dependency): Remove flags argument.
7275 Remove DL_LOOKUP_SCOPE_LOCK handling.
7276 (_dl_lookup_symbol_x): Adjust caller. Remove DL_LOOKUP_SCOPE_LOCK
7277 handling.
7278 * elf/dl-object.c (_dl_new_object): Don't use
7279 __rtld_mrlock_initialize.
7280
9be09e06
UD
72812007-06-19 Ulrich Drepper <drepper@redhat.com>
7282
7283 * sysdeps/generic/ldsodefs.h (rtld_global): Reorder some elements
7284 to fill in holes
7285 (rtld_global_ro): Likewise.
7286
72872007-06-18 Jakub Jelinek <jakub@redhat.com>
7288
7289 * elf/dl-addr.c (_dl_addr): Skip PT_LOAD checking if l_contiguous.
7290 Move PT_LOAD checking to...
7291 (_dl_addr_inside_object): ... here, new function.
7292 * elf/dl-sym.c (do_sym): If not l_contiguous,
7293 call _dl_addr_inside_object.
7294 * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise.
7295 * dlfcn/dlinfo.c (dlinfo_doit): Likewise.
7296 * elf/dl-open.c (dl_open_worker): Likewise.
7297 (_dl_addr_inside_object): New function if IS_IN_rtld.
7298 * elf/dl-load.c (_dl_map_object_from_fd): Set l_contiguous if no
7299 holes are present or are PROT_NONE protected.
7300 * include/link.h (struct link_map): Add l_contiguous field.
7301 * sysdeps/generic/ldsodefs.h (_dl_addr_inside_object): New prototype.
7302
ae1ad3ae 73032007-06-18 Jakub Jelinek <jakub@redhat.com>
f00d47a3
AS
7304 Tomas Janousek <tjanouse@redhat.com>
7305 Ulrich Drepper <drepper@redhat.com>
ae1ad3ae
UD
7306
7307 [BZ #4647]
7308 * resolv/res_send.c (send_dg): Remove socket_pf. Use ipv6_unavail
7309 member in __res_state, only convaddr4to6 if nssocks[ns] is a PF_INET6
7310 socket.
7311 * resolv/resolv.h (__res_state): Add ipv6_unavail member. Make
7312 unused member a bitmap.
7313 * resolv/res_init.c (__res_vinit): Reset ipv6_unavail if IPv6
7314 servers are configured.
7315
3abee0b7
UD
73162007-06-18 Jakub Jelinek <jakub@redhat.com>
7317
7318 * elf/rtld.c (dl_main): Don't call init_tls more than once.
7319
89074592
UD
73202007-06-17 Andreas Schwab <schwab@suse.de>
7321
7322 * sysdeps/generic/initfini.c: Tell gcc about the nonstandard sections.
7323
b26e274d
AJ
73242007-06-16 Andreas Jaeger <aj@suse.de>
7325
7326 [BZ #4125]
7327 * sysdeps/unix/sysv/linux/sys/ptrace.h
7328 (PTRACE_O_TRACESYSGOOD, PTRACE_O_TRACEFORK,
7329 PTRACE_O_TRACEVFORK, PTRACE_O_TRACECLONE, PTRACE_O_TRACEEXEC,
89074592 7330 PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT, PTRACE_O_MASK,
b26e274d
AJ
7331 PTRACE_EVENT_FORK, PTRACE_EVENT_VFORK, PTRACE_EVENT_CLONE,
7332 PTRACE_EVENT_EXEC, PTRACE_EVENT_VFORK_DONE, PTRACE_EVENT_EXIT):
7333 Define.
7334 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
7335 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
7336 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
7337 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
7338
e0d4a4e5
UD
73392007-06-16 Ulrich Drepper <drepper@redhat.com>
7340
7341 [BZ #4599]
7342 * sysdeps/unix/sysv/linux/check_pf.c (make_request): When
7343 determining whether there are IPv4/IPv6 addresses, ignore loopback
7344 addresses.
7345
ae8e81f5
JJ
73462007-06-14 Uros Bizjak <ubizjak@gmail.com>
7347
7348 * soft-fp/soft-fp.h (CMPtype): Define to "int" if undefined.
7349 * soft-fp/eqdf2.c (__eqdf2): Use CMPtype instead of int
7350 as the return type. Change type of "r" variable to CMPtype.
7351 * soft-fp/eqsf2.c (__eqsf2): Likewise.
7352 * soft-fp/eqtf2.c (__eqtf2): Likewise.
7353 * soft-fp/gedf2.c (__gedf2): Likewise.
7354 * soft-fp/gesf2.c (__gesf2): Likewise.
7355 * soft-fp/getf2.c (__getf2): Likewise.
7356 * soft-fp/ledf2.c (__ledf2): Likewise.
7357 * soft-fp/lesf2.c (__lesf2): Likewise.
7358 * soft-fp/letf2.c (__letf2): Likewise.
7359 * soft-fp/unorddf2 (__unorddf2): Likewise.
7360 * soft-fp/unordsf2 (__unordsf2): Likewise.
7361 * soft-fp/unordtf2 (__unordtf2): Likewise.
7362
90cd2413
UD
73632007-06-09 Ulrich Drepper <drepper@redhat.com>
7364
7365 * elf/do-lookup.h (do_lookup_x): Read r_nlist before r_list and
7366 make sure gcc doesn't mess around with this.
7367
3c457089
UD
73682007-06-08 Ulrich Drepper <drepper@redhat.com>
7369
7370 * elf/dl-lookup.c (_dl_lookup_symbol_x): Remove use of r_nlist.
7371
e8b6b64d
UD
73722007-06-08 Jakub Jelinek <jakub@redhat.com>
7373
7374 * elf/dl-close.c (_dl_close_worker): Remove all to be removed
7375 libraries from the global scope at once and call THREAD_GSCOPE_WAIT
7376 at most once per _dl_close_worker.
7377
36dffb22
UD
73782007-06-08 Ulrich Drepper <drepper@redhat.com>
7379
755db8c5
UD
7380 * sysdeps/unix/sysv/linux/bits/sched.h: Make second parameter of
7381 __sched_cpucount as const.
7382 * posix/sched_cpucount.c: Adjust.
7383
36dffb22
UD
7384 * posix/sched_cpucount.c (__sched_cpucount): Allow using special
7385 instruction for counting bits.
7386 * sysdeps/x86_64/sched_cpucount.c: New file.
7387
26f56c1c
UD
73882007-06-07 Ulrich Drepper <drepper@redhat.com>
7389
7390 * configure.in: Avoid variable named BASH.
e967d385 7391 * config.make.in: Likewise.
26f56c1c 7392 Patch in part by Mike Frysinger.
835abc5c 7393
26f56c1c 73942007-06-06 Jakub Jelinek <jakub@redhat.com>
47779a7d
JJ
7395
7396 [BZ #4586]
835abc5c
UD
7397 * sysdeps/i386/ldbl2mpn.c (__mpn_extract_long_double): Treat
7398 pseudo-zeros as zero.
7399 * sysdeps/x86_64/ldbl2mpn.c: New file.
7400 * sysdeps/ia64/ldbl2mpn.c: New file.
7401
7e3706ea
UD
74022007-06-04 Jakub Jelinek <jakub@redhat.com>
7403
7404 * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (nextafterl): Remove
7405 unused ily variable. Fix nextafterl on +-__LDBL_MAX__ and +-Inf.
7406 Remove unreachable code at the end.
7407
74082007-06-01 Steven Munroe <sjmunroe@us.ibm.com>
7409
7410 * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Correct description of
7411 ldbl-128ibm in comment.
7412 (fpclassifyl): Correct classification of denormals.
7413 * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (nextafterl): Correct
7414 return value for MIN denormal. Rewrite using long double math too
7415 correctly handle denormals and canonicalize the results.
7416
74172007-06-05 Jakub Jelinek <jakub@redhat.com>
7418
7419 * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c
7420 (__mpn_construct_long_double): Fix conversion where result ought
7421 to be smaller than __LDBL_MIN__, or the low double should be
7422 denormal. Fix decision where to negate low double - honor round
7423 to even rules.
7424 * stdio-common/tst-sprintf2.c: Include string.h.
7425 (COMPARE_LDBL): Define.
7426 (TEST): Also test whether a string hexadecimal float representation
7427 can be parsed back to the number.
7428 (main): Add a couple of further tests.
7429
43b76828
UD
74302007-06-04 Jakub Jelinek <jakub@redhat.com>
7431
7432 * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c
7433 (PRINT_FPHEX_LONG_DOUBLE): Fix printing numbers where lower double
7434 is non-zero, but smaller than 2 * __DBL_MIN__.
7435 * stdio-common/tst-sprintf2.c: New test.
7436 * stdio-common/Makefile (tests): Add tst-sprintf2.
7437
7438 * math/test-misc.c (main): Don't run last batch of tests with
7439 IBM long double format.
7440
04067002
UD
74412007-05-31 Steven Munroe <sjmunroe@us.ibm.com>
7442
7443 * sysdeps/powerpc/powerpc32/970/fpu/Implies: New file.
7444 * sysdeps/powerpc/powerpc32/power5/fpu/Implies: New file.
7445 * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: New file.
7446 * sysdeps/powerpc/powerpc32/power6/fpu/Implies: New file.
7447 * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: New file.
7448 * sysdeps/powerpc/powerpc64/970/fpu/Implies: New file.
7449 * sysdeps/powerpc/powerpc64/power5/fpu/Implies: New file.
7450 * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: New file.
7451 * sysdeps/powerpc/powerpc64/power6/fpu/Implies: New file.
7452 * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: New file.
7453 * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: New file.
7454 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies:
7455 New file.
7456 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies:
7457 New file.
7458 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies:
7459 New file.
7460 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies:
7461 New file.
7462 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies:
7463 New file.
7464 * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: New file.
7465 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies:
7466 New file.
7467 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies:
7468 New file.
7469 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies:
7470 New file.
7471 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies:
7472 New file.
7473 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies:
7474 New file.
7475
74762007-05-31 Steven Munroe <sjmunroe@us.ibm.com>
7477
7478 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S: Move.
7479 * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: To here.
7480 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrintf.S: Move.
7481 * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: To here.
7482 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llround.S: Move.
7483 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: To here.
7484 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llroundf.S: Move.
7485 * sysdeps/powerpc/powerpc32/power4/fpu/s_llroundf.S: To here.
7486
74872007-05-22 Steven Munroe <sjmunroe@us.ibm.com>
7488
7489 * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S
7490 (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
7491 * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S
7492 (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
7493 * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S
7494 (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
7495 * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S
7496 (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
7497
74982007-05-21 Steven Munroe <sjmunroe@us.ibm.com>
7499
7500 * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: New file.
7501 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.c: New file.
7502 * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: New file.
7503 * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: New file.
7504
75052007-03-15 Steven Munroe <sjmunroe@us.ibm.com>
7506
7507 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S
7508 [LONG_DOUBLE_COMPAT]: Add compat_symbol for llrintl@@GLIBC_2_1.
7509
75102006-02-13 Steven Munroe <sjmunroe@us.ibm.com>
7511
7512 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: New File
7513 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: New File
7514 * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: New File
7515 * sysdeps/powerpc/powerpc32/power6/fpu/s_llroundf.S: New File
7516
75172006-10-20 Steven Munroe <sjmunroe@us.ibm.com>
7518
7519 * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: New file.
7520 * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: New file.
7521
75222006-10-03 Steven Munroe <sjmunroe@us.ibm.com>
7523
7524 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llround.S: New file.
7525 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llroundf.S: New file.
7526
7527 * sysdeps/powerpc/powerpc32/powerpc64/fpu/Makefile: Moved.
7528 * sysdeps/powerpc/powerpc32/powerpc64/fpu/mpa.c: Likewise.
7529 * sysdeps/powerpc/powerpc32/power4/fpu/Makefile: To here.
7530 * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
7531
75322006-09-29 Steven Munroe <sjmunroe@us.ibm.com>
7533
7534 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lrint.S: New file.
7535 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: New file.
7536 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: New file.
7537 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: New file.
7538
75392006-09-28 Steven Munroe <sjmunroe@us.ibm.com>
7540
7541 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: New file.
7542 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llroundf.S: New file.
7543 * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: New file.
7544 * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: New file.
7545 * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: New file.
7546 * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: New file.
7547
75482006-08-31 Steven Munroe <sjmunroe@us.ibm.com>
7549
7550 * sysdeps/powerpc/powerpc32/powerpc64/fpu/Makefile: New file.
7551 * sysdeps/powerpc/powerpc32/powerpc64/fpu/mpa.c: New file.
7552 * sysdeps/powerpc/powerpc64/power4/fpu/Makefile: New file.
7553 * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: New file.
7554
75552006-06-15 Steven Munroe <sjmunroe@us.ibm.com>
7556
7557 * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceil.S: New file.
7558 * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceilf.S: New file.
7559 * sysdeps/powerpc/powerpc32/power5+/fpu/s_floor.S: New file.
7560 * sysdeps/powerpc/powerpc32/power5+/fpu/s_floorf.S: New file.
7561 * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S: New file.
7562 * sysdeps/powerpc/powerpc32/power5+/fpu/s_roundf.S: New file.
7563 * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S: New file.
7564 * sysdeps/powerpc/powerpc32/power5+/fpu/s_truncf.S: New file.
7565 * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceil.S: New file.
7566 * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceilf.S: New file.
7567 * sysdeps/powerpc/powerpc64/power5+/fpu/s_floor.S: New file.
7568 * sysdeps/powerpc/powerpc64/power5+/fpu/s_floorf.S: New file.
7569 * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S: New file.
7570 * sysdeps/powerpc/powerpc64/power5+/fpu/s_roundf.S: New file.
7571 * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S: New file.
7572 * sysdeps/powerpc/powerpc64/power5+/fpu/s_truncf.S: New file.
7573
75742006-03-20 Steven Munroe <sjmunroe@us.ibm.com>
7575
7576 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S: New file.
7577 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrintf.S: New file.
7578
75792007-06-01 Steven Munroe <sjmunroe@us.ibm.com>
7580
7581 * sysdeps/powerpc/powerpc32/power6/memset.S: New file.
7582 * sysdeps/powerpc/powerpc64/power6/memset.S: New file.
7583
75842007-05-31 Steven Munroe <sjmunroe@us.ibm.com>
7585
7586 * sysdeps/powerpc/powerpc32/970/Implies: New file.
7587 * sysdeps/powerpc/powerpc32/power5/Implies: New file.
7588 * sysdeps/powerpc/powerpc32/power5+/Implies: New file.
7589 * sysdeps/powerpc/powerpc32/power6/Implies: New file.
7590 * sysdeps/powerpc/powerpc32/power6x/Implies: New file.
7591 * sysdeps/powerpc/powerpc64/970/Implies: New file.
7592 * sysdeps/powerpc/powerpc64/power5/Implies: New file.
7593 * sysdeps/powerpc/powerpc64/power5+/Implies: New file.
7594 * sysdeps/powerpc/powerpc64/power6/Implies: New file.
7595 * sysdeps/powerpc/powerpc64/power6x/Implies: New file.
7596
75972007-05-21 Steven Munroe <sjmunroe@us.ibm.com>
7598
7599 * sysdeps/powerpc/powerpc32/power4/memset.S: New file
7600
76012007-03-13 Steven Munroe <sjmunroe@us.ibm.com>
7602
7603 * sysdeps/powerpc/powerpc64/memcpy.S: Improve aligned loop to minimize
7604 branch miss-predicts. Ensure that cache line crossing does not impact
7605 dispatch grouping.
7606
76072006-12-13 Steven Munroe <sjmunroe@us.ibm.com>
7608
7609 * sysdeps/powerpc/powerpc64/power4/memcopy.h: Replace with include
7610 "../../powerpc32/power4/memcopy.h".
7611 * sysdeps/powerpc/powerpc64/power4/wordcopy.c: Replace with include
7612 "../../powerpc32/power4/wordcopy.c".
7613
76142006-10-03 Steven Munroe <sjmunroe@us.ibm.com>
7615
7616 * sysdeps/powerpc/powerpc32/powerpc64/Makefile: Moved.
7617 * sysdeps/powerpc/powerpc32/powerpc64/memcopy.h: Likewise.
7618 * sysdeps/powerpc/powerpc32/powerpc64/wordcopy.c: Likewise.
7619 * sysdeps/powerpc/powerpc32/power4/Makefile: To here.
7620 * sysdeps/powerpc/powerpc32/power4/memcopy.h: Likewise.
7621 * sysdeps/powerpc/powerpc32/power4/wordcopy.c: Likewise.
7622
76232006-09-10 Steven Munroe <sjmunroe@us.ibm.com>
7624
7625 * sysdeps/powerpc/powerpc32/power6/memcpy.S: New file.
7626
76272006-08-31 Steven Munroe <sjmunroe@us.ibm.com>
7628
7629 * sysdeps/powerpc/powerpc32/power6/wordcopy.c: New file.
7630 * sysdeps/powerpc/powerpc32/powerpc64/Makefile: New file.
7631 * sysdeps/powerpc/powerpc32/powerpc64/memcopy.h: New file.
7632 * sysdeps/powerpc/powerpc32/powerpc64/wordcopy.c: New file.
7633 * sysdeps/powerpc/powerpc64/power4/Makefile: New file.
7634 * sysdeps/powerpc/powerpc64/power4/memcopy.h: New file.
7635 * sysdeps/powerpc/powerpc64/power4/wordcopy.c: New file.
7636 * sysdeps/powerpc/powerpc64/power6/wordcopy.c: New file.
7637
76382006-07-06 Steven Munroe <sjmunroe@us.ibm.com>
7639
7640 * sysdeps/powerpc/powerpc64/power6/memcpy.S: New file.
7641
76422006-03-20 Steven Munroe <sjmunroe@us.ibm.com>
7643
7644 * sysdeps/powerpc/powerpc32/power4/memcmp.S: New file.
7645 * sysdeps/powerpc/powerpc32/power4/memcpy.S: New file.
7646 * sysdeps/powerpc/powerpc32/power4/memset.S: New file.
7647 * sysdeps/powerpc/powerpc32/power4/strncmp.S: New file.
7648 * sysdeps/powerpc/powerpc64/power4/memcmp.S: New file.
7649 * sysdeps/powerpc/powerpc64/power4/memcpy.S: New file.
7650 * sysdeps/powerpc/powerpc64/power4/strncmp.S: New file.
7651
5b55e1d3
RM
76522007-05-29 Roland McGrath <roland@redhat.com>
7653
7654 * po/Makefile (po-sed-cmd): New variable.
7655 (libc.pot.files): Move sed command text in there, avoid \ inside ''.
7656
5da4373c
UD
76572007-05-29 Ulrich Drepper <drepper@redhat.com>
7658
4b5e7304
UD
7659 * crypt/md5-crypt.c: Fix comment.
7660
5da4373c
UD
7661 * nscd/nscd_helper.c (get_mapping): Handle short replies instead
7662 of crashing. When this is the case or if the reply is malformed,
7663 don't try to close the new file descriptor since it does not
7664 exist.
7665 Patch in part by Guillaume Chazarain <guichaz@yahoo.fr>.
7666
40f57573
UD
76672007-05-28 Jakub Jelinek <jakub@redhat.com>
7668
7669 * sysdeps/unix/sysv/linux/futimes.c (miss_utimensat): Don't define
7670 if __NR_utimensat is not defined.
7671
6df7ffad
UD
76722007-05-26 Ulrich Drepper <drepper@redhat.com>
7673
7674 * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Include <sysdep.h>.
7675
47ad95ab
UD
76762007-05-25 Jakub Jelinek <jakub@redhat.com>
7677
7678 * io/bits/fcntl2.h (__open_2): Add nonnull attribute.
7679 (open): Fix comment typos. Don't call __open_2 if flags
7680 is a compile time constant without O_CREAT.
7681 (__open64_2): Add nonnull attribute.
7682 (open64): Fix comment typos. Don't call __open64_2 if flags
7683 is a compile time constant without O_CREAT.
7684 (__openat_2): Add nonnull attribute, fix nonnull attribute
7685 on redirect.
7686 (openat): Fix comment typos. Don't call __openat_2 if flags
7687 is a compile time constant without O_CREAT.
7688 (__openat64_2): Add nonnull attribute, fix nonnull attribute
7689 on redirect.
7690 (openat64): Fix comment typos. Don't call __openat64_2 if flags
7691 is a compile time constant without O_CREAT.
7692
ddfd0535
UD
76932007-05-24 Ulrich Drepper <drepper@redhat.com>
7694
7695 * Makerules (sysd-rules): Define PTW for ptw-* files.
7696 * Versions: Define GLIBC_2.7 for libc.
7697 * include/stdio.h: Declare __fortify_fail.
7698 * debug/fortify_fail.c: New file.
7699 * debug/Makefile (routines): Add fortify_fail.
7700 * debug/chk_fail.c: Use __fortify_fail.
7701 * debug/stack_chk_fail.c: Likewise.
7702 * io/Versions: Export __open_2, __open64_2, __openat_2, and
7703 __openat64_2 for GLIBC_2.7.
7704 * io/fcntl.h: When compiling with fortification, include bits/fcntl2.h.
7705 * io/open.c: Define *_2 variant of function which checks for O_CREAT
7706 and fails if necessary.
7707 * io/open64.c: Likewise.
7708 * io/openat.c: Likewise.
7709 * io/openat64.c: Likewise.
7710 * sysdeps/unix/sysv/linux/open64.c: Likewise.
7711 * sysdeps/unix/sysv/linux/openat.c: Likewise.
7712 * sysdeps/unix/sysv/linux/openat64.c: Likewise.
7713 * io/bits/fcntl2.h: New file.
7714 * include/fcntl.h: Declare __open_2, __open64_2, __openat_2, and
7715 __openat64_2.
7716 * include/bits/fcntl2.h: New file.
7717 * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
7718 Add open_2.
7719 * sysdeps/unix/sysv/linux/open_2.c: New file.
7720
bfe6f5fa
UD
77212007-05-21 Ulrich Drepper <drepper@redhat.com>
7722
6d59823c
UD
7723 * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Pass correct value
7724 as second parameter to handle_intel.
7725
e2b1e343
UD
7726 * nscd/aicache.c (addhstaiX): If reported TTL is zero don't cache
7727 the entry.
7728
bfe6f5fa
UD
7729 * sysdeps/unix/sysv/linux/x86_64/sysconf.c: Move cache information
7730 handling to ...
7731 * sysdeps/x86_64/cacheinfo.c: ... here. New file.
7732 * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
7733 cacheinfo.
7734 * sysdeps/x86_64/memcpy.S: Complete rewrite.
7735 * sysdeps/x86_64/mempcpy.S: Adjust appropriately.
7736 Patch by Evandro Menezes <evandro.menezes@amd.com>.
7737
7738 * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: New file.
7739
1f4843fb
UD
77402007-05-21 Jakub Jelinek <jakub@redhat.com>
7741
2c2c003a
UD
7742 [BZ #4525]
7743 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add epoll_pwait.
7744 * sysdeps/unix/sysv/linux/epoll_pwait.c: New file.
7745 * sysdeps/unix/sysv/linux/syscalls.list (epoll_pwait): Remove.
7746
7747 * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h (epoll_pwait): Declare.
7748
af269dd9
UD
7749 [BZ #4514]
7750 * stdio-common/vfprintf.c (vfprintf): Don't shadow workstart variable,
7751 reinitialize workend at the start of each do_positional format spec
7752 loop, free workstart before do_positional loops.
7753 (printf_unknown): Fix size of work_buffer.
7754 * stdio-common/tst-sprintf.c (main): Add 3 new testcases.
7755
1f4843fb
UD
7756 * malloc/hooks.c (MALLOC_STATE_VERSION): Bump.
7757 (public_sET_STATe): If ms->version < 3, put all chunks into
7758 unsorted chunks and clear {fd,bk}_nextsize fields of largebin
7759 chunks.
7760
7761 * malloc/malloc.c [MALLOC_DEBUG]: Revert 2007-05-13 changes.
7762 * malloc/hooks.c: Likewise.
7763 * malloc/arena.c: Likewise.
7764 * malloc/malloc.c (do_check_malloc_state): Don't assert
7765 n_mmaps is not greater than n_mmaps_max. This removes the need
7766 for the previous change.
7767
7768 * malloc/Makefile (CFLAGS-malloc.c): Revert accidental
7769 2007-05-07 commit.
7770
12e8bbff
UD
77712007-05-19 Ulrich Drepper <drepper@redhat.com>
7772
7773 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PRIVATE_FUTEX):
7774 Define for kernel >= 2.6.22.
69e5cbf5 7775
12e8bbff 77762007-05-18 Ulrich Drepper <drepper@redhat.com>
6d59823c 7777
df94b641
UD
7778 * elf/dl-close.c (_dl_close_worker): When removing object from
7779 global scope, wait for all lookups to finish afterwards.
7780 * elf/dl-open.c (add_to_global): When global scope array must
7781 grow, allocate a new one and free old array only after all
7782 lookups finish.
7783 * elf/dl-runtime.c (_dl_fixup): Protect using global scope.
7784 (_dl_lookup_symbol_x): Likewise.
7785 * elf/dl-support.c: Define _dl_wait_lookup_done.
7786 * sysdeps/generic/ldsodefs.h (struct rtld_global): Add
7787 _dl_wait_lookup_done.
7788
2acd01ac
UD
7789 * malloc/malloc.c (do_check_chunk): Correct check for mmaped block
7790 not overlapping with arena.
7791
129abdd3
UD
7792 * malloc/mcheck.c (reallochook): If size==0, free the block.
7793
eb4b098a
UD
7794 * rt/tst-shm.c: Use fstat64 instead of fstat.
7795
69e5cbf5
UD
7796 * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Fix case where
7797 __NR_sync_file_range is not defined.
7798
a2ccc760
UD
77992007-05-17 Ulrich Drepper <drepper@redhat.com>
7800
bec51a30
UD
7801 Dummy files to prevent stub versions from being used.
7802 * sysdeps/x86_64/fpu/k_cosl.c: New file.
7803 * sysdeps/x86_64/fpu/k_rem_pio2l.c: New file.
7804 * sysdeps/x86_64/fpu/k_sinl.c: New file.
7805 * sysdeps/x86_64/fpu/k_tanl.c: New file.
7806
a2ccc760
UD
7807 * version.h (VERSION): Set to 2.6.90.
7808
1a31b586
UD
78092007-05-14 Ulrich Drepper <drepper@redhat.com>
7810
a2ccc760
UD
7811 * version.h (VERSION): Define to 2.6.
7812 * include/features.h (__GLIBC_MINOR__): Define to 6.
2c1d6172 7813
1d47e92f
UD
7814 * malloc/malloc.c: Use all small bin slots on 64-bit archs.
7815
7816 * malloc/malloc.c (largebin_index): Really have 32 buckets with 64
7817 sizes.
366ad8fd 7818
1a31b586 78192007-05-13 Ulrich Drepper <drepper@redhat.com>
87e66335 7820
366ad8fd
UD
7821 * malloc/malloc.c [MALLOC_DEBUG]: Keep track of current maximum
7822 number of mmaps. n_mmaps_max is the target.
7823 * malloc/hooks.c: Likewise.
7824 * malloc/arena.c: Likewise.
7825
11ed6713
AJ
78262007-05-12 Andreas Jaeger <aj@suse.de>
7827
7828 * sysdeps/unix/sysv/linux/tst-getcpu.c: Include <unistd.h> for
7829 getpid.
7830
d65ef3dd
UD
78312007-05-11 Ulrich Drepper <drepper@redhat.com>
7832
2e81d449
UD
7833 * elf/dl-close.c (_dl_close_worker): Help gcc to optimize by
7834 adding new variables.
7835
d65ef3dd 7836 * elf/dl-open.c (add_to_global): Introduce variable ns to help gcc
2e81d449 7837 optimize. Completely extend global scope array before making the
d65ef3dd
UD
7838 new entries visible.
7839
c27d2078
UD
78402007-05-10 Ulrich Drepper <drepper@redhat.com>
7841
341c566f
UD
7842 * sysdeps/unix/sysv/linux/tst-getcpu.c: New file.
7843 * sysdeps/unix/sysv/linux/Makefile [subdir=posix] (tests): Add
7844 tst-getcpu.
7845
7846 * include/link.h: Move l_version and l_nversion members around to
7847 fill gaps.
7848
a53fa282
UD
7849 * scripts/check-c++-types.sh: Don't use -fnu89-inline option.
7850
3771196d
UD
7851 * sysdeps/unix/sysv/linux/sched_setaffinity.c
7852 (__sched_setaffinity_new): If syscall was successful and
7853 RESET_VGETCPU_CACHE is defined, use it before returning.
7854 * sysdeps/unix/sysv/linux/x86_64/sched_setaffinity.c: New file.
7855
f9bf102d
UD
7856 * io/sys/stat.h: Make sure struct timespec is defined for
7857 __USE_ATFILE.
7858
c27d2078
UD
7859 * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Define UTIME_NOW and
7860 UTIME_OMIT.
7861 * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
7862 * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
7863 * sysdeps/unix/sysv/linux/alpha/bits/stat.h: Likewise.
7864 * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
7865 * sysdeps/unix/sysv/linux/bits/stat.h: Likewise.
7866 * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
7867 * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_UTIMENSAT.
7868 * io/sys/stat.h: Declare utimensat, futimens.
7869 * io/utimensat.c: New file.
7870 * io/futimens.c: New file.
7871 * sysdeps/unix/sysv/linux/utimensat.c: New file.
7872 * sysdeps/unix/sysv/linux/futimens.c: New file.
7873 * io/Makefile (routines): Add utimensat, futimens.
7874 * io/Versions: Add utimensat, futimens to GLIBC_2.6.
7875 * sysdeps/unix/sysv/linux/lutimes.c: New file.
7876 * sysdeps/unix/sysv/linux/futimes.c: Use utimensat syscall if
7877 available.
7878
7879 * include/sys/cdefs.h: Redefine __nonnull so that test for
7880 incorrect parameters in the libc code itself are not omitted.
7881
cf6b0980
JJ
78822007-05-09 Jakub Jelinek <jakub@redhat.com>
7883
c1dfd7e6
JJ
7884 * sysdeps/ia64/fpu/fraiseexcpt.c (feraiseexcept): Don't raise overflow
7885 exception in addition to inexact when asked to raise only FE_INEXACT.
7886
cf6b0980
JJ
7887 [BZ #3427]
7888 * sysdeps/s390/fpu/feholdexcpt.c (feholdexcept): Don't clear exceptions
7889 in *envp.
7890
df7b6fea
UD
78912007-05-07 Ulrich Drepper <drepper@redhat.com>
7892
7893 [BZ #4403]
7894 * string/strfry.c (strfry): Make result more random.
7895
37f40235
RH
78962007-05-07 Richard Henderson <rth@redhat.com>
7897
7898 * sysdeps/alpha/fpu/bits/mathinline.h (__isnanl): Don't define
7899 if __NO_LONG_DOUBLE_MATH.
7900 * sysdeps/unix/sysv/linux/alpha/ioperm.c: If BWX insns not
df7b6fea 7901 available in the compiler, add .arch directive to the assembly.
37f40235
RH
7902
79032007-05-07 Jakub Jelinek <jakub@redhat.com>
7904
7905 * sysdeps/alpha/fpu/s_nearbyint.c (nearbyintl): Fix version on
7906 compat_symbol to GLIBC_2_1.
7907 * sysdeps/alpha/fpu/s_fmin.S (fminl): Likewise.
7908 * sysdeps/alpha/fpu/s_trunc.c (truncl): Likewise.
7909 * sysdeps/alpha/fpu/s_fmax.S (fmaxl): Likewise.
7910 * sysdeps/alpha/fpu/s_lrint.c (lrintl, llrintl): Likewise.
7911 * sysdeps/alpha/fpu/s_lround.c (lroundl, llroundl): Likewise.
7912 * sysdeps/alpha/fpu/s_round.c (roundl): Likewise.
7913 * sysdeps/alpha/fpu/s_isnan.c (isnanl): Provide compat_symbol in
7914 libc, not libm.
7915 (__isnanl): New compat_symbol.
7916
c7fd3362
JJ
79172007-05-07 Ulrich Drepper <drepper@redhat.com>
7918 Jakub Jelinek <jakub@redhat.com>
7919
7920 * malloc/arena.c (heap_info): Add mprotect_size field, adjust pad.
7921 (new_heap): Initialize mprotect_size.
7922 (grow_heap): When growing, only mprotect from mprotect_size till
7923 new_size if mprotect_size is smaller. When shrinking, use PROT_NONE
7924 MMAP for __libc_enable_secure only, otherwise use MADV_DONTNEED.
7925
4a59e9ad 79262007-04-30 Steven Munroe <sjmunroe@us.ibm.com>
37f40235 7927 Peter Bergner <bergner@us.ibm.com>
4a59e9ad
UD
7928
7929 * sysdeps/powerpc/bits/fenv.h: Declare __fe_mask_env extern.
7930 Define FE_NOMASK_ENV as FE_EANBLED_ENV. Define FE_MASK_ENV.
7931 * sysdeps/powerpc/fpu/Makefile: Add fe_mask to libm-support.
7932 * sysdeps/powerpc/fpu/fe_mask.c: New file.
7933 * sysdeps/powerpc/fpu/fe_nomask.c: Correct comment.
7934 * sysdeps/powerpc/fpu/fedisblxcpt.c (fedisableexcept):
7935 Call __fe_mask_env() if all FP exceptions disabled.
7936 * sysdeps/powerpc/fpu/feholdexcpt.c (feholdexcept): Copy high 32-bits
7937 from old FPSCR to new fenv to propagate DFP rounding modes.
7938 Call __fe_mask_env() if FP exceptions previously enabled.
7939 * sysdeps/powerpc/fpu/fesetenv.c (fesetenv): Change mask to merge
7940 exceptions from env. Use __fe_nomask_env() or __fe_mask_env() when
7941 transitioning from all exceptions disabled to any exception enabled
7942 or visa versa.
7943 * sysdeps/powerpc/fpu/feupdateenv.c (__feupdateenv): Change mask to
7944 merge exceptions from env. Call __fe_nomask_env or __fe_mask_env
7945 when transitioning from all exceptions disabled to any exception
7946 enabled or visa versa.
7947 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fe_nomask.c: Moved to...
7948 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c: ...here.
7949 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c: Moved to...
7950 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c: ...here.
7951 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c: New file.
7952 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c: New file.
7953
aa75f64c
UD
79542007-05-06 Ulrich Drepper <drepper@redhat.com>
7955
15eca720 7956 [BZ #4465]
aa75f64c
UD
7957 * posix/unistd.h: Remove __THROW from fdatasync.
7958
711deb05
UD
79592007-05-06 Mike Frysinger <vapier@gentoo.org>
7960
15eca720 7961 [BZ #4465]
711deb05
UD
7962 * sysdeps/unix/sysv/linux/syscalls.list (fdatasync): Add "C" to args.
7963
ffecd39b
UD
79642007-05-06 Ulrich Drepper <drepper@redhat.com>
7965
49a8eb75
UD
7966 * stdio-common/vfprintf.c (process_string_arg): Optimize
7967 ridiculous precision in wide char code printing multi-byte string.
7968 Reported by Jim Meyering <jim@meyering.net>.
7969
ffecd39b
UD
7970 [BZ #4131]
7971 * elf/dl-addr.c (_dl_addr): Compare address with actual segment
7972 boundaries to work around systems with overlapping binary loading.
7973 Based on a patch by Suzuki <suzuki@in.ibm.com>.
7974
b16dba4c
UD
79752007-05-04 Ulrich Drepper <drepper@redhat.com>
7976
30b323ab
UD
7977 * stdio-common/vfprintf.c (process_string_arg): Adjust call to
7978 __mbsnrtowcs after last change.
7979
b16dba4c
UD
7980 * locale/programs/linereader.c (get_symname): Fix adding final NUL.
7981 (get_ident): Likewise.
7982
37002cbc
JJ
79832007-05-03 Jakub Jelinek <jakub@redhat.com>
7984
7985 * soft-fp/op-common.h (FP_TRUNC): Replace raising of FP_EX_INEXACT
7986 with setting the sticky bit.
7987 * math/test-misc.c (main): Add more truncation tests.
7988
79892007-04-14 Uros Bizjak <ubizjak@gmail.com>
7990
7991 * soft-fp/floatunsidf.c (__floatunsidf): Use DFtype instead of
7992 double in the function declaration.
7993 * soft-fp/floatundidf.c (__floatundidf): Use DFtype instead of
7994 double in the function declaration.
7995 * soft-fp/floatunsisf.c (__floatunsisf): Use SFtype instead of
7996 float in the function declaration.
7997 * soft-fp/floatunsisf.c (__floatunsisf): Use SFtype instead of
7998 float in the function declaration.
7999
8000 * soft-fp/extended.h (FP_UNPACK_RAW_E): Do not increase X##_e for
8001 denormal operands. Do not generate FP_EX_DENORM exception.
8002 (FP_UNPACK_RAW_EP): Ditto.
8003 (FP_UNPACK_SEMIRAW_E): Use FP_UNPACK_RAW_E instead of
8004 undefined _FP_UNPACK_RAW_E.
8005 (FP_UNPACK_SEMIRAW_EP): Use FP_UNPACK_RAW_EP instead of
8006 undefined _FP_UNPACK_RAW_EP.
8007 (FP_PACK_SEMIRAW_E): Use FP_PACK_RAW_E instead of
8008 undefined _FP_PACK_RAW_E.
8009 (FP_PACK_SEMIRAW_EP): Use FP_PACK_RAW_EP instead of
8010 undefined _FP_PACK_RAW_EP.
8011
d9ac82d0
UD
8012 * soft-fp/op-2.h (_FP_FRAC_COPY_2_2): Define as alias to
8013 _FP_FRAC_COPY_2.
8014 * soft-fp/op-4.h (_FP_FRAC_COPY_2_2): Define as alias to
8015 _FP_FRAC_COPY_4.
37002cbc
JJ
8016
80172007-04-16 Uros Bizjak <ubizjak@gmail.com>
8018 Jakub Jelinek <jakub@redhat.com>
8019
8020 * soft-fp/op-common.h (FP_EXTEND): Do not abort when
8021 _FP_EXPBIAS_##dfs == _FP_EXPBIAS_##sfs. Handle denormals for
8022 this case.
8023 * soft-fp/op-common.h (FP_TRUNC): Ditto.
8024
002f0b0b
JJ
80252007-05-03 Jakub Jelinek <jakub@redhat.com>
8026
8027 * math/test-misc.c (main): Add tests for rounding long double
8028 values close to smallest double denormalized value to double.
8029
80302007-04-30 Joseph Myers <joseph@codesourcery.com>
8031
8032 * soft-fp/op-common.h (FP_TRUNC): Correct off-by-one error in
8033 condition for truncating to 0. Set sticky bit for such
8034 truncation.
8035
57433ede
UD
80362007-05-02 Jakub Jelinek <jakub@redhat.com>
8037
8038 * stdio-common/vfprintf.c (process_string_arg): Use a VLA rather than
8039 fixed length array for ignore.
8040
c01c2455
UD
80412007-04-30 Ulrich Drepper <drepper@redhat.com>
8042
8043 [BZ #4438]
8044 * stdio-common/vfprintf.c (process_string_arg): Don't overflow the
8045 stack for large precisions.
1cb04337
UD
8046 * stdio-common/test-vfprintf.c (main): Add test for large
8047 precision.
c01c2455 8048
37f02b1d
UD
80492007-04-30 Jakub Jelinek <jakub@redhat.com>
8050
b866373d
UD
8051 * stdio-common/printf_fp.c (___printf_fp): Don't print negative sign
8052 for exponent 0.
8053 * stdio-common/tfformat.c (sprint_doubles): Add a new test.
8054
37f02b1d
UD
8055 [BZ #4439]
8056 * resolv/inet_ntop.c (inet_ntop4): Take terminating '\0' into
8057 account in the size check.
8058 * resolv/tst-inet_ntop.c: New test.
8059 * resolv/Makefile (tests): Add tst-inet_ntop.
8060
7ecfbd38
UD
80612007-04-30 Ulrich Drepper <drepper@redhat.com>
8062 Jakub Jelinek <jakub@redhat.com>
8063
8064 [BZ #4349]
8065 * malloc/malloc.c: Keep separate list for first blocks on the bin
8066 lists with a given size. This helps skipping over list elements
8067 we know won't fit in two places.
8068 Inspired by a patch by Tomash Brechko <tomash.brechko@gmail.com>.
8069
e53f0f51
UD
80702007-04-28 Ulrich Drepper <drepper@redhat.com>
8071
8072 [BZ #4102]
8073 * sysdeps/posix/getaddrinfo.c (default_labels): Assign separate
8074 label to Teredo tunnel addresses 2001://32.
8075
109f51f2
UD
80762007-04-27 Ulrich Drepper <drepper@redhat.com>
8077
762422d1
UD
8078 * locale/programs/ld-collate.c (collate_read): Allow order_start
8079 after copy.
8080
61d5a67f
UD
8081 * locale/programs/ld-collate.c (collate_read): Fix printing of
8082 error message.
8083
8084 [BZ #3213]
8085 * locale/C-translit.h.in: Add entry for U2044.
8086
109f51f2
UD
8087 [BZ #4342]
8088 * stdio-common/vfscanf.c (_IO_vfscanf_internal): Allow
8089 hexa-decimal floats without exponent.
8090 * stdio-common/tstscanf.c (main): Adjust Test 8 test for success.
8091
ec08f13d
UD
80922007-04-25 Ulrich Drepper <drepper@redhat.com>
8093
8094 * sysdeps/unix/sysv/linux/bits/sched.h: Declare sched_getcpu.
8095 * sysdeps/unix/sysv/linux/sched_getcpu.c: New file.
8096 * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: New file.
8097 * sysdeps/unix/sysv/linux/Versions: Export sched_getcpu for
8098 GLIBC_2.6.
bce20b9a
UD
8099 * sysdeps/unix/sysv/linux/Makefile [subdir=posix] (sysdep_routines):
8100 Add sched_getcpu.
ec08f13d 8101
41967e1c
JJ
81022007-04-25 Jakub Jelinek <jakub@redhat.com>
8103
8104 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Return -1 instead
8105 of 0 after the out_fail label.
8106
ba508da3
UD
81072007-04-25 Ulrich Drepper <drepper@redhat.com>
8108
8109 [BZ #4406]
109f51f2 8110 * iconv/gconv_charset.h (strip): Allow ':'.
ba508da3
UD
8111 * iconv/iconv_open.c (iconv_open): Adjust comment.
8112
9c8d03d9
JJ
81132007-04-25 Jakub Jelinek <jakub@redhat.com>
8114
8115 * libio/bits/stdio.h (fgetc_unlocked): Add extern inline optimized
8116 version.
8117
2f1687b9
UD
81182007-04-23 Jakub Jelinek <jakub@redhat.com>
8119
8120 [BZ #4381]
8121 * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Ensure sufficient
8122 alignment of buffer and tmp_buffer.
8123 * nis/nss_nis/nis-hosts.c (internal_nis_gethostent_r,
8124 internal_gethostbyname2_r, _nss_nis_gethostbyaddr_r): Ensure sufficient
8125 alignment of buffer.
8126 * resolv/nss_dns/dns-hosts.c (getanswer_r): Likewise. Handle buflen
8127 bigger than INT_MAX.
8128 * resolv/nss_dns/dns-network.c (getanswer_r): Likewise. Add errnop and
8129 h_errnop arguments. Fail if buflen is too small.
8130 (_nss_dns_getnetbyname_r, _nss_dns_getnetbyaddr_r): Adjust callers.
8131
b64a9db8
JJ
81322007-04-23 Jakub Jelinek <jakub@redhat.com>
8133
8134 [BZ #4405]
8135 * iconvdata/gconv-modules (E13B): Add a missing slash to the alias
8136 name. Patch by Aurelien Jarno <aurelien@aurel32.net>.
8137
4d3144c9
RM
81382007-04-22 Roland McGrath <roland@redhat.com>
8139
8140 * elf/elf.h (NT_PRXFPREG): New macro.
8141
767b40bf
AJ
81422007-04-19 Andreas Jaeger <aj@suse.de>
8143
8144 [BZ #3905]
8145 * bits/in.h (IPV6_ROUTER_ALERT, IPV6_MTU_DISCOVER, IPV6_MTU,
8146 IPV6_RECVERR, IPV6_V6ONLY, IPV6_JOIN_ANYCAST, IPV6_LEAVE_ANYCAST):
8147 Added.
8148
2592d1ec
UD
81492007-04-19 Ulrich Drepper <drepper@redhat.com>
8150
8151 * include/sys/mman.h: Mark madvise hidden.
d07d044e 8152 * misc/madvise.c: Add libc_hidden_def.
2592d1ec 8153
7ab174ed
UD
81542007-04-06 Jakub Jelinek <jakub@redhat.com>
8155
8156 * nis/nis_domain_of.c (__nis_domain_of): New function.
8157 * include/rpcsvc/nislib.h (__nis_domain_of): New prototype.
8158 * nis/nis_lookup.c (nis_lookup): Use __nis_domain_of.
8159 * nis/nis_call.c (rec_dirsearch): Likewise.
8160 (first_shoot): Likewise. Remove search_parent_first argument.
8161 (struct nis_server_cache): Rename search_parent_first field
8162 to search_parent.
8163 (nis_server_cache_search, nis_server_cache_add): Rename
8164 search_parent_first argument to search_parent.
8165 (__nisfind_server): Likewise. If search_parent, call
8166 __nis_domain_of.
8167
b17c265f
UD
81682007-04-18 Ulrich Drepper <drepper@redhat.com>
8169
8170 * sysdeps/posix/getaddrinfo.c: Remove commented-out code.
8171
b7674b11
UD
81722007-04-17 Ulrich Drepper <drepper@redhat.com>
8173
8174 [BZ #4368]
8175 * stdlib/stdlib.h: Remove obsolete part of comment for realpath.
8176
faf3ad69
UD
81772007-04-16 Ulrich Drepper <drepper@redhat.com>
8178
8179 [BZ #4364]
8180 * posix/unistd.h (_XOPEN_VERSION): Define appropriately for SUSv3.
8181
c14f245c
UD
81822007-04-15 Jakub Jelinek <jakub@redhat.com>
8183
8184 * locale/programs/locarchive.c (INITIAL_NUM_NAMES,
8185 INITIAL_SIZE_STRINGS, INITIAL_NUM_LOCREC): Update to accomodate
8186 current number of locales in SUPPORTED.
8187 (create_archive): Initialize serial.
8188 (enlarge_archive): Preserve aliases rather than duplicating
8189 their locrecs.
8190
d40e67f5
UD
81912007-04-13 Jakub Jelinek <jakub@redhat.com>
8192
993a5d66
UD
8193 * libio/genops.c (_IO_default_finish): Call _IO_lock_fini
8194 after _IO_un_link, not before it.
8195
d40e67f5
UD
8196 * stdio-common/printf_fp.c (___printf_fp): Fix exponent -4
8197 special case handling when wcp == wstartp + 1. Fix a comment typo.
8198 * stdio-common/tfformat.c (sprint_doubles): Add a new testcase.
8199
0fca3153
UD
82002007-03-30 Jakub Jelinek <jakub@redhat.com>
8201
8202 * libio/libio.h (__underflow, __uflow, __overflow, __wunderflow,
8203 __wuflow, __woverflow, _IO_getc, _IO_putc, _IO_peekc_locked, _IO_padn,
8204 _IO_sgetn, _IO_seekoff, _IO_seekpos, _IO_getwc, _IO_putwc, _IO_wpadn):
8205 Remove __THROW.
8206 * libio/fileops.c (new_do_write, _IO_file_xsgetn_mmap,
8207 _IO_file_xsgetn_maybe_mmap): Likewise.
8208 * libio/oldfileops.c (old_do_write): Likewise.
8209 * libio/libioP.h (_IO_switch_to_get_mode, _IO_switch_to_wget_mode,
8210 _IO_init_marker, _IO_init_wmarker, _IO_default_uflow,
8211 _IO_wdefault_uflow, _IO_default_setbuf, _IO_default_seekpos,
8212 _IO_do_write, _IO_new_do_write, _IO_old_do_write, _IO_wdo_write,
8213 _IO_flush_all_lockp, _IO_flush_all, _IO_cleanup,
8214 _IO_flush_all_linebuffered, _IO_new_fgetpos, _IO_old_fgetpos,
8215 _IO_new_fsetpos, _IO_old_fsetpos, _IO_new_fgetpos64,
8216 _IO_old_fgetpos64, _IO_new_fsetpos64, _IO_old_fsetpos64,
8217 _IO_file_setbuf, _IO_file_seekoff, _IO_file_xsputn, _IO_file_xsgetn,
8218 _IO_file_underflow, _IO_file_underflow_mmap,
8219 _IO_file_underflow_maybe_mmap, _IO_file_overflow, _IO_file_attach,
8220 _IO_file_open, _IO_file_fopen, _IO_file_write, _IO_file_read,
8221 _IO_file_sync, _IO_file_close_it, _IO_file_finish,
8222 _IO_new_file_attach, _IO_new_file_close_it, _IO_new_file_finish,
8223 _IO_new_file_fopen, _IO_new_file_setbuf, _IO_file_setbuf_mmap,
8224 _IO_new_file_sync, _IO_new_file_underflow, _IO_new_file_overflow,
8225 _IO_new_file_seekoff, _IO_new_file_write, _IO_new_file_xsputn,
8226 _IO_old_file_setbuf, _IO_old_file_seekoff, _IO_old_file_xsputn,
8227 _IO_old_file_underflow, _IO_old_file_overflow, _IO_old_file_attach,
8228 _IO_old_file_fopen, _IO_old_file_write, _IO_old_file_sync,
8229 _IO_old_file_close_it, _IO_old_file_finish, _IO_wfile_xsputn,
8230 _IO_wfile_setbuf, _IO_wfile_sync, _IO_wfile_underflow,
8231 _IO_wfile_overflow, _IO_wfile_seekoff, _IO_old_proc_open,
8232 _IO_old_proc_close, _IO_getdelim, _IO_flush_all_internal,
8233 _IO_adjust_column_internal, _IO_default_uflow_internal,
8234 _IO_default_xsgetn_internal, _IO_wdefault_xsputn_internal,
8235 _IO_wdefault_xsgetn_internal, _IO_wdefault_uflow_internal,
8236 _IO_file_setbuf_internal, _IO_file_seekoff_internal,
8237 _IO_file_xsputn_internal, _IO_file_xsgetn_internal,
8238 _IO_file_close_it_internal, _IO_file_underflow_internal,
8239 _IO_file_overflow_internal, _IO_file_attach_internal,
8240 _IO_file_fopen_internal, _IO_file_sync_internal,
8241 _IO_file_finish_internal, _IO_wfile_xsputn_internal,
8242 _IO_wfile_seekoff_internal, _IO_wfile_sync_internal,
8243 _IO_switch_to_wget_mode_internal, _IO_padn_internal,
8244 _IO_switch_to_get_mode_internal, _IO_seekoff_unlocked,
8245 _IO_seekpos_unlocked): Likewise.
8246 (_IO_strtod, _IO_dtoa, _IO_outfloat, _IO_read, _IO_write,
8247 _IO_lseek, _IO_close, _IO_fstat): Remove unused prototypes.
8248
07358add
JJ
82492007-04-16 Jakub Jelinek <jakub@redhat.com>
8250
8251 * locale/programs/locarchive.c (show_archive_content): Fix sizeof
8252 argument in xmalloc size computation.
8253
7a82b74f
UD
82542007-04-01 Jakub Jelinek <jakub@redhat.com>
8255
8256 * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl): Use
8257 math_opt_barrier and math_force_eval macros.
8258
3e336a87
UD
82592007-03-27 Jakub Jelinek <jakub@redhat.com>
8260
8261 [BZ #3306]
8262 * math/math_private.h (math_opt_barrier, math_force_eval): Define.
8263 * sysdeps/i386/fpu/math_private.h: New file.
8264 * sysdeps/x86_64/fpu/math_private.h: New file.
8265 * math/s_nexttowardf.c (__nexttowardf): Use math_opt_barrier and
8266 math_force_eval macros. Use "+m" constraint on asm rather than
8267 "=m" and "m".
8268 * math/s_nextafter.c (__nextafter): Likewise.
8269 * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c (__nexttoward):
8270 Likewise.
8271 * sysdeps/ieee754/flt-32/s_nextafterf.c (__nextafterf): Likewise.
8272 * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward): Likewise.
8273 * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
8274 * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Use
8275 math_opt_barrier and math_force_eval macros.
8276 * sysdeps/ieee754/ldbl-128/s_nextafterl.c (__nextafterl): Likewise.
8277 * sysdeps/ieee754/ldbl-96/s_nextafterl.c (__nextafterl): Likewise.
8278 * sysdeps/i386/fpu/s_nexttoward.c: Include float.h.
8279 (__nexttoward): Use math_opt_barrier and
8280 math_force_eval macros. Use "+m" constraint on asm rather than
8281 "=m" and "m". Only use asm to force double result if
8282 FLT_EVAL_METHOD is 2.
8283 * sysdeps/i386/fpu/s_nexttowardf.c: Include float.h.
8284 (__nexttowardf): Use math_opt_barrier and
8285 math_force_eval macros. Use "+m" constraint on asm rather than
8286 "=m" and "m". Only use asm to force double result if
8287 FLT_EVAL_METHOD is not 0.
8288 * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Include float.h.
8289 (__nexttowardf): Use math_opt_barrier and
8290 math_force_eval macros. If FLT_EVAL_METHOD is not 0, force
8291 x to float using asm.
8292 * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c: Include float.h.
8293 (__nldbl_nexttowardf): Use math_opt_barrier and
8294 math_force_eval macros. If FLT_EVAL_METHOD is not 0, force
8295 x to float using asm.
8296 * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Include float.h.
8297 (__nexttowardf): Use math_opt_barrier and math_force_eval
8298 macros. If FLT_EVAL_METHOD is not 0, force x to float using asm.
8299 * math/bug-nextafter.c (zero, inf): New variables.
8300 (main): Add new tests.
8301 * math/bug-nexttoward.c (zero, inf): New variables.
8302 (main): Add new tests.
8303
a8c79c40
UD
83042007-03-22 Jakub Jelinek <jakub@redhat.com>
8305
8306 [BZ #3427]
8307 * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Clear all
8308 exceptions both in SW and MXCSR.
8309 * sysdeps/x86_64/fpu/feupdateenv.c: New file.
8310 * sysdeps/x86_64/fpu/feenablxcpt.c (feenableexcept): Remove dead code.
8311 * sysdeps/x86_64/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
8312 * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions
8313 in MXCSR if SSE is available.
8314 * sysdeps/i386/fpu/feupdateenv.c: Include unistd.h, dl-procinfo.h
8315 and ldsodefs.h.
8316 (__feupdateenv): Query exceptions also from MXCSR if SSE is available.
8317 Fix comment typo.
8318 * sysdeps/ia64/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions.
8319 Return 0 rather than 1.
8320 * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Fix comment typo.
8321 Remove incorrect part of a comment. Fix argument to feraiseexcept.
8322 * math/test-fenv.c (feholdexcept_tests): New function.
8323 (main): Call it.
8324
83252007-01-05 Richard B. Kreckel <kreckel@ginac.de>
8326
8327 [BZ #3427]
8328 * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions
8329 in SW.
8330
30a3aa75
JJ
83312007-04-13 Jakub Jelinek <jakub@redhat.com>
8332
8333 [BZ #4344]
8334 * elf/ldconfig.c (search_dir): Fix 2 off-by-2 errors.
8335 Reported by David Anderson <davea42@earthlink.net>.
8336
75587bfe
UD
83372007-04-07 Ulrich Drepper <drepper@redhat.com>
8338
8339 * posix/sys/wait.h: Remove unnecessary forward declaration.
8340
88fa1769
JJ
83412007-04-05 Jakub Jelinek <jakub@redhat.com>
8342
8343 * nis/nis_call.c (__nisfind_server): Replace (*dir)->do_servers
8344 with obj->do_servers after first_shoot.
8345
eab1bdfb
UD
83462007-04-03 Ulrich Drepper <drepper@redhat.com>
8347
8348 * posix/Makefile (routines): Add sched_cpucount.
8349 (tests): Add tst-cpucount.
8350 * posix/sched_cpucount.c: New file.
8351 * posix/tst-cpucount.c: New file.
8352 * posix/Versions: Export __sched_cpucount with version GLIBC_2.6.
b4afdd06
UD
8353 * bits/sched.h: Define __CPU_COUNT. Declare __sched_cpucount.
8354 * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
8355 * posix/sched.h: Define CPU_COUNT.
eab1bdfb 8356
9700b039
UD
83572007-03-27 Jakub Jelinek <jakub@redhat.com>
8358
8359 * posix/fnmatch.c (STRUCT): Define.
8360 (fnmatch): Pass NULL as last argument to internal_fn{,w}match.
8361 * posix/fnmatch_loop.c (struct STRUCT): New type.
8362 (FCT): Add ends argument. If ends != NULL and normal * is
8363 seen in the pattern, store current pattern and string pointers
8364 and return. Adjust recursive calls.
8365 (EXT): Adjust FCT callers.
8366 (STRUCT): Undef at the end of the file.
8367 * posix/Makefile (tests): Add tst-fnmatch2.
8368 * posix/tst-fnmatch2.c: New test.
8369
d64e9790
JJ
83702007-04-01 Jakub Jelinek <jakub@redhat.com>
8371
933dfe7b
JJ
8372 * sysdeps/ia64/fpu/fesetround.c (fesetround): Return 0 on success
8373 and 1 on failure.
8374
d64e9790
JJ
8375 * sysdeps/unix/sysv/linux/sync_file_range.c (sync_file_range):
8376 Change last argument to unsigned int.
8377
e1f0c5bc
UD
83782007-03-23 Jakub Jelinek <jakub@redhat.com>
8379
8380 * scripts/check-local-headers.sh: Filter out sys/capability.h.
8381
83822007-03-22 Jakub Jelinek <jakub@redhat.com>
8383
8384 * config.h.in (HAVE_LIBCAP): Add.
8385 * nscd/selinux.h: Include sys/capability.h rather than non-existent
8386 sys/capabilities.h.
8387 * nscd/selinux.c (preserve_capabilities): Use cap_free instead of
8388 free_caps. Cast away const from 4th cap_set_flag argument.
8389
4e87573f
UD
83902007-03-26 Ulrich Drepper <drepper@redhat.com>
8391
8392 * sysdeps/unix/sysv/linux/Versions: Move sync_file_range to
8393 GLIBC_2.6.
8394 * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
8395 Add sync_file_range.
8396 Reported by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
8397
fa6e3bc3
UD
83982007-03-19 Steven Munroe <sjmunroe@us.ibm.com>
8399
8400 * sysdeps/powerpc/bits/atomic.h
8401 [!MUTEX_HINT_ACQ]: Define MUTEX_HINT_ACQ.
8402 [!MUTEX_HINT_REL]: Define MUTEX_HINT_REL.
8403 (__arch_compare_and_exchange_val_32_acq): Add MUTEX_HINT_ACQ to lwarx.
8404 (__arch_compare_and_exchange_val_32_rel): Add MUTEX_HINT_REL to lwarx.
8405 (__arch_atomic_exchange_val_32_acq): Add MUTEX_HINT_ACQ to lwarx.
8406 (__arch_atomic_exchange_rel_32_rel): Add MUTEX_HINT_REL to lwarx.
8407 * sysdeps/powerpc/powerpc32/bits/atomic.h [_ARCH_PWR6 || _ARCH_PWR6X]:
8408 Define MUTEX_HINT_ACQ as ",1" and MUTEX_HINT_REL as ",0".
8409 (__arch_compare_and_exchange_bool_32_acq): Add MUTEX_HINT_ACQ to lwarx.
8410 (__arch_compare_and_exchange_bool_32_rel): Add MUTEX_HINT_REL to lwarx.
8411 * sysdeps/powerpc/powerpc64/bits/atomic.h [_ARCH_PWR6 || _ARCH_PWR6D]:
8412 Define MUTEX_HINT_ACQ as ",1" and MUTEX_HINT_REL as ",0".
8413 (__arch_compare_and_exchange_bool_32_acq): Add MUTEX_HINT_ACQ to lwarx.
8414 (__arch_compare_and_exchange_bool_32_rel): Add MUTEX_HINT_REL to lwarx.
8415 (__arch_compare_and_exchange_bool_64_acq): Add MUTEX_HINT_ACQ to lwarx.
8416 (__arch_compare_and_exchange_bool_64_rel): Add MUTEX_HINT_REL to lwarx.
8417 (__arch_compare_and_exchange_val_64_acq): Add MUTEX_HINT_ACQ to lwarx.
8418 (__arch_compare_and_exchange_val_64_rel): Add MUTEX_HINT_REL to lwarx.
8419 (__arch_atomic_exchange_val_64_acq): Add MUTEX_HINT_ACQ to lwarx.
8420 (__arch_atomic_exchange_rel_64_rel): Add MUTEX_HINT_REL to lwarx.
8421
84222007-03-20 Jakub Jelinek <jakub@redhat.com>
c7693af7
UD
8423
8424 * sysdeps/unix/sysv/linux/powerpc/libc-start.c
8425 (__cache_line_size): Define the variable here. Add
8426 attribute_hidden, remove weak_extern.
8427 (__libc_start_main): Set __cache_line_size
8428 unconditionally.
8429 * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
8430 (__cache_line_size): Define the variable here. Add
8431 attribute_hidden, remove weak_extern.
8432 (DL_PLATFORM_AUXV): Set __cache_line_size
8433 unconditionally.
8434 * sysdeps/powerpc/powerpc32/dl-machine.c (__cache_line_size): Remove
8435 weak_extern, add attribute_hidden.
8436 (__elf_machine_runtime_setup): Assume __cache_line_size is always
8437 defined in ld.so.
8438 * sysdeps/powerpc/powerpc32/memset.S (__cache_line_size): Remove
8439 definition.
8440 * sysdeps/powerpc/powerpc64/memset.S (__cache_line_size): Likewise.
8441
0479e581
JJ
84422007-03-26 Jakub Jelinek <jakub@redhat.com>
8443
8444 [BZ #4276]
8445 * timezone/africa: Update from tzdata2007d.
8446 * timezone/asia: Likewise.
8447 * timezone/australasia: Likewise.
8448 * timezone/backward: Likewise.
8449 * timezone/europe: Likewise.
8450 * timezone/iso3166.tab: Likewise.
8451 * timezone/leapseconds: Likewise.
8452 * timezone/northamerica: Likewise.
8453 * timezone/southamerica: Likewise.
8454 * timezone/zone.tab: Likewise.
8455
8456 * timezone/private.h: Update from tzcode2007d.
8457 * timezone/zdump.c: Likewise.
8458 * timezone/zic.c: Likewise.
8459
697d37b1
JJ
84602007-03-21 Jakub Jelinek <jakub@redhat.com>
8461
8462 * nis/nis_call.c: Include bits/libc-lock.h, sys/stat.h, unistd.h.
8463 (nis_server_cache, nis_server_cache_lock, nis_cold_start_mtime): New
8464 variables.
8465 (nis_server_cache_search, nis_server_cache_add): New functions.
8466 (__nisfind_server): Use them. Add dbp and flags argument, if
8467 call __nisbind_create.
8468 (__nisbind_create): Add server_used and current_ep arguments,
8469 only call __nis_findfastest if server_used is ~0.
8470 (__do_niscall2, __prepare_niscall): Adjust callers.
8471 (ckey_cache, ckey_cache_size, ckey_cache_allocated, ckey_cache_pid,
8472 ckey_cache_euid, ckey_cache_lock): New variables.
8473 (get_ckey): New function.
8474 (__nisbind_connect): If not dbp->use_udp, pass IPPROTO_TCP to
8475 __pmap_getnisport. Save __pmap_getnisport result in
8476 dbp->addr.sin_port if non-zero. Use get_ckey to create conversation
8477 key.
8478 * nis/nis_lookup.c (nis_lookup): Likewise.
8479 * nis/nis_table.c (nis_list): Likewise.
8480 * nis/rpcsvc/nislib.h (__nisbind_create, __nisfind_server): Adjust
8481 prototypes.
8482
8483 * nis/nss_nisplus/nisplus-pwd.c (_nss_nisplus_getpwnam_r,
8484 _nss_nisplus_getpwuid_r): Pass USE_DGRAM flag to nis_list.
8485 * nis/nss_nisplus/nisplus-service.c (_nss_nisplus_getservbyname_r,
8486 _nss_nisplus_getservbyport_r): Likewise.
8487 * nis/nss_nisplus/nisplus-network.c (_nss_nisplus_getnetbyname_r,
8488 _nss_nisplus_getnetbyaddr_r): Likewise.
8489 * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_getspnam_r): Likewise.
8490 * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_gethostton_r,
8491 _nss_nisplus_getntohost_r): Likewise.
8492 * nis/nss_nisplus/nisplus-rpc.c (_nss_nisplus_getrpcbyname_r,
8493 _nss_nisplus_getrpcbynumber_r): Likewise.
8494
06029c20
JJ
84952007-03-20 Jakub Jelinek <jakub@redhat.com>
8496
371f84a4
JJ
8497 * configure.in (libc_cv_gnu89_inline): Only do compile test.
8498 * configure: Rebuilt.
8499
06029c20
JJ
8500 * soft-fp/double.h (_FP_UNION_D): Use _FP_W_TYPE for frac
8501 bit-fields.
8502 * soft-fp/extended.h (_FP_UNION_E): Likewise.
8503
85042006-06-07 Joseph Myers <joseph@codesourcery.com>
8505
8506 [BZ #2831]
8507 * soft-fp/quad.h (_FP_UNION_Q): Use _FP_W_TYPE for frac
8508 bit-fields.
8509
addc8335
UD
85102007-03-18 Jakub Jelinek <jakub@redhat.com>
8511
8512 * nscd/gai.c: Include alloca.h.
8513 (__libc_use_alloca): Define.
8514
b037a293
UD
85152007-03-16 Jakub Jelinek <jakub@redhat.com>
8516
965cba04
UD
8517 * elf/dl-open.c (dl_open_worker): Declare l in 2 different
8518 smaller scopes.
8519 * elf/dl-dst.h (DL_DST_REQ_STATIC): Add l as macro argument.
8520 (DL_DST_REQUIRED): Adjust user.
8521
8522 * include/dlfcn.h (struct link_map): New forward decl.
8523
8524 * inet/getnameinfo.c: Include stddef.h.
8525 (getnameinfo): Use offsetof.
8526
8527 * time/tst-mktime2.c (do_test): Don't rely on signed wrap.
8528
8529 * stdio-common/vfprintf.c (_itoa): Undef before redefining.
8530
8531 * string/strerror_l.c: Include stdlib.h.
8532
b037a293
UD
8533 * configure.in (libc_cv_gnu89_inline): Test for -fgnu89-inline.
8534 * config.make.in (gnu89-inline-CFLAGS): New variable.
8535 * Makeconfig (CFLAGS): Use $(gnu89-inline-CFLAGS) together with
8536 -std=gnu99.
8537 * misc/sys/cdefs.h (__extern_inline, __extern_always_inline): Define.
8538 * argp/argp.h: Use it.
8539 * bits/mathinline.h: Likewise.
8540 * bits/sigset.h: Likewise.
8541 * bits/string.h: Likewise.
8542 * ctype/ctype.h: Likewise.
8543 * hurd/hurd.h: Likewise.
8544 * hurd/hurd/fd.h: Likewise.
8545 * hurd/hurd/port.h: Likewise.
8546 * hurd/hurd/signal.h: Likewise.
8547 * hurd/hurd/threadvar.h: Likewise.
8548 * hurd/hurd/userlink.h: Likewise.
8549 * io/sys/stat.h: Likewise.
8550 * libio/bits/stdio.h: Likewise.
8551 * libio/bits/stdio2.h: Likewise.
8552 * mach/lock-intern.h: Likewise.
8553 * mach/mach/mig_support.h: Likewise.
8554 * math/bits/cmathcalls.h: Likewise.
8555 * posix/bits/unistd.h: Likewise.
8556 * socket/bits/socket2.h: Likewise.
8557 * stdlib/bits/stdlib.h: Likewise.
8558 * stdlib/stdlib.h: Likewise.
8559 * string/argz.h: Likewise.
8560 * string/bits/string2.h: Likewise.
8561 * string/bits/string3.h: Likewise.
8562 * sysdeps/alpha/fpu/bits/mathinline.h: Likewise.
8563 * sysdeps/generic/inttypes.h: Likewise.
8564 * sysdeps/generic/machine-lock.h: Likewise.
8565 * sysdeps/generic/machine-sp.h: Likewise.
8566 * sysdeps/i386/fpu/bits/mathinline.h: Likewise.
8567 * sysdeps/i386/i486/bits/string.h: Likewise.
8568 * sysdeps/ia64/fpu/bits/mathinline.h: Likewise.
8569 * sysdeps/mach/alpha/machine-lock.h: Likewise.
8570 * sysdeps/mach/alpha/machine-sp.h: Likewise.
8571 * sysdeps/mach/i386/machine-lock.h: Likewise.
8572 * sysdeps/mach/powerpc/machine-lock.h: Likewise.
8573 * sysdeps/mach/powerpc/machine-sp.h: Likewise.
8574 * sysdeps/powerpc/fpu/bits/mathinline.h: Likewise.
8575 * sysdeps/s390/bits/string.h: Likewise.
8576 * sysdeps/s390/fpu/bits/mathinline.h: Likewise.
8577 * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
8578 * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Likewise.
8579 * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
8580 * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
8581 * sysdeps/unix/sysv/linux/sys/sysmacros.h: Likewise.
8582 * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
8583 * wcsmbs/bits/wchar2.h: Likewise.
8584 * wcsmbs/wchar.h: Likewise.
8585 * stdlib/gmp.h: Likewise. Include <features.h> to get
8586 __extern_inline definition.
8587
6b2665f5
UD
85882007-03-15 Jakub Jelinek <jakub@redhat.com>
8589
b037a293
UD
8590 * locale/programs/ld-ctype.c (find_translit): Return NULL if ctype is
8591 NULL.
8592
6b2665f5
UD
8593 [BZ #3919]
8594 * math/libm-test.inc (log_test): Test -Inf and NaN.
8595 (log10_test, log1p_test, log2_test): Test -Inf.
8596 * sysdeps/i386/fpu/e_log.S (__ieee754_log): Don't raise
8597 FE_INVALID when argument is qNaN.
8598 * sysdeps/i386/fpu/e_logl.S (__ieee754_logl): Likewise.
8599 * sysdeps/i386/fpu/e_logf.S (__ieee754_logf): Likewise.
8600 * sysdeps/x86_64/fpu/e_logl.S (__ieee754_logl): Likewise.
8601 * sysdeps/x86_64/fpu/e_log10l.S (__ieee754_log10l): Replace
8602 andb $1, %ah with testb $1, %ah, don't test for parity, instead
8603 testb $4, %ah and jump if non-zero.
8604 * sysdeps/x86_64/fpu/e_log2l.S (__ieee754_log2l): Likewise.
8605 * sysdeps/x86_64/fpu/s_log1pl.S (__log1pl): Likewise.
8606
44969f17
UD
8607 [BZ #4101]
8608 * argp/argp-help.c (hol_cluster_cmp): Fix comparisons used to find
8609 ancestors with the same depths.
8610 Patch by Niels Moeller <nisse@lysator.liu.se>.
8611 (filter_doc): Don't crash if argp is NULL.
8612 * argp/Makefile (tests): Add tst-argp2.
8613 * argp/tst-argp2.c: New test.
8614
05eb8975
UD
8615 [BZ #4130]
8616 * login/utmp_file.c (setutent_file): Use O_LARGEFILE for
8617 open_not_cancel_2.
8618 (updwtmp_file): Likewise.
8619
6cb988fa
UD
8620 [BZ #4181]
8621 * inet/inet6_opt.c (add_padding): Only insert padding if npad > 0.
8622 (inet6_opt_append): Don't check extlen is big enough if extbuf
8623 is NULL.
8624 (inet6_opt_finish): Likewise.
8625 * inet/Makefile (tests): Add test-inet6_opt.
8626 * inet/test-inet6_opt.c: New test.
8627
8628 * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Never
8629 reallocate the buffer, instead fail for MSG_TRUNC or for EBUSY
8630 NLMSG_ERR. Instead use a page sized buffer.
8631 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Use page sized
8632 buffer.
8633
aea1d19e
RH
86342007-03-14 Richard Henderson <rth@redhat.com>
8635
b6df547c
RH
8636 * sysdeps/alpha/fpu/s_llround.c: New file.
8637 * sysdeps/alpha/fpu/s_llroundf.c: New file.
8638 * sysdeps/alpha/fpu/s_lround.c: New file.
8639 * sysdeps/alpha/fpu/s_lroundf.c: New file.
8640 * sysdeps/alpha/fpu/s_round.c: New file.
8641 * sysdeps/alpha/fpu/s_roundf.c: New file.
8642 * sysdeps/alpha/fpu/s_trunc.c: New file.
8643 * sysdeps/alpha/fpu/s_truncf.c: New file.
8644
aea1d19e
RH
8645 * sysdeps/alpha/fpu/s_ceil.c: Rewrite without branches.
8646 * sysdeps/alpha/fpu/s_ceilf.c: Likewise.
8647 * sysdeps/alpha/fpu/s_floor.c: Likewise.
8648 * sysdeps/alpha/fpu/s_floorf.c: Likewise.
8649 * sysdeps/alpha/fpu/s_rint.c: Likewise.
8650 * sysdeps/alpha/fpu/s_rintf.c: Likewise.
8651
8652 * sysdeps/alpha/fpu/s_fmax.S: New file.
8653 * sysdeps/alpha/fpu/s_fmaxf.S: New file.
8654 * sysdeps/alpha/fpu/s_fmin.S: New file.
8655 * sysdeps/alpha/fpu/s_fminf.S: New file.
8656 * sysdeps/alpha/fpu/s_isnan.c: New file.
8657 * sysdeps/alpha/fpu/s_isnanf.c: New file.
8658 * sysdeps/alpha/fpu/s_llrint.c: New file.
8659 * sysdeps/alpha/fpu/s_llrintf.c: New file.
8660 * sysdeps/alpha/fpu/s_lrint.c: New file.
8661 * sysdeps/alpha/fpu/s_lrintf.c: New file.
8662 * sysdeps/alpha/fpu/s_nearbyint.c: New file.
8663 * sysdeps/alpha/fpu/s_nearbyintf.c: New file.
8664
8665 * sysdeps/alpha/fpu/bits/mathinline.h (__floorf, __floor): Remove.
8666 (__fdimf, fdimf, __fdim, fdim): Remove.
8667 (__signbitf, __signbit, __signbitl): Use gcc builtin if available.
8668 (__isnanf, __isnan, __isnanl): New.
8669
9e43b50d
RH
86702007-03-13 Richard Henderson <rth@redhat.com>
8671
8672 * sysdeps/ieee754/ldbl-128/Makefile: New file.
8673
62789da3
RH
86742007-03-13 Richard Henderson <rth@redhat.com>
8675
8676 * sysdeps/alpha/Makefile (sysdep-CFLAGS): Force dynamic rounding.
8677 * sysdeps/alpha/fpu/bits/mathinline.h (__signbitl): New.
8678 * sysdeps/alpha/fpu/libm-test-ulps: Regenerate.
8679 * sysdeps/unix/sysv/linux/alpha/alphaev6/fpu/Implies: New file.
8680 * sysdeps/unix/sysv/linux/alpha/alphaev67/fpu/Implies: New file.
8681 * sysdeps/unix/sysv/linux/alpha/fpu/Implies: New file.
8682
47dbe62b
RH
86832007-03-13 Richard Henderson <rth@redhat.com>
8684
37f40235 8685 * elf/dl-support.c (_dl_aux_init): Honor DL_PLATFORM_AUXV.
47dbe62b
RH
8686 * sysdeps/unix/sysv/linux/alpha/dl-auxv.h: New file.
8687 * sysdeps/unix/sysv/linux/alpha/dl-support.c: New file.
8688 * sysdeps/unix/sysv/linux/alpha/dl-sysdep.c (__libc_alpha_cache_shape):
8689 Move to dl-auxv.h; initialize instead of extern weak.
8690 (DL_PLATFORM_AUXV): Move to dl-auxv.h; don't test for undef
8691 weak symbol.
8692 * sysdeps/unix/sysv/linux/alpha/sysconf.c (__libc_alpha_cache_shape):
8693 Extern instead of initialized.
8694
b8097bed
RH
86952007-03-13 Richard Henderson <rth@redhat.com>
8696
8697 * sysdeps/unix/sysv/linux/alpha/sigsuspend.S: Add support for
8698 __sigsuspend_nocancel.
8699
6bf4a686
UD
87002007-03-06 Ulrich Drepper <drepper@redhat.com>
8701
8702 * sysdeps/posix/getaddrinfo.c (get_scope): Correct test for
8703 172.16/12 address range.
8704
0b3b1a0c
UD
87052007-03-02 Jakub Jelinek <jakub@redhat.com>
8706
8707 * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Retry with
8708 a new netlink socket if NLMSG_ERR -EBUSY is seen after some MSG_TRUNC
8709 message.
8710
8f3edfee
UD
87112007-03-01 Jakub Jelinek <jakub@redhat.com>
8712
c1c5e654 8713 [BZ #4069]
8f3edfee
UD
8714 * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Check for NaN
8715 earlier.
8716 * math/libm-test.inc (pow_test): Add more tests involving NaNs.
8717
8718 * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Avoid invalid exception
8719 for x qNaN and y either +-inf or non-integer value.
8720 * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Likewise.
8721 * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.
8722 * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
8723
245a1481
UD
87242007-02-10 Mike Frysinger <vapier@gentoo.org>
8725
8726 * sysdeps/unix/sysv/linux/sh/Makefile: Remove sys/io.h
8727 from sysdep_headers.
8728
c217692b
UD
87292007-02-28 Jakub Jelinek <jakub@redhat.com>
8730
8731 * time/tzfile.c (find_transition): Instead of a linear search try to
8732 guess the transition index, use a linear search if the result is at
8733 most 10 transitions away from the guess or binary search otherwise.
8734
fe64626c
JJ
87352007-02-27 Jakub Jelinek <jakub@redhat.com>
8736
8737 * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Fix
8738 memory reallocation.
8739
0f7769f7
UD
87402007-02-21 Ulrich Drepper <drepper@redhat.com>
8741
621c133d
UD
8742 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Add branch predictions
8743 and fix some typos.
8744 Optimize use of TOLOWER.
9cf147d8 8745
cdfd61e1
UD
8746 [BZ #3325]
8747 * sysdeps/i386/fpu/e_fmodf.S: Revert last changes, keep using fprem.
8748 * sysdeps/i386/fpu/e_fmodl.c: Likewise.
8749 * sysdeps/i386/fpu/e_fmod.S: Likewise.
8750
8889e7aa
UD
8751 [BZ #3458]
8752 * sysdeps/unix/sysv/linux/posix_madvise.c: New file.
8753 * sysdeps/unix/sysv/linux/syscalls.list: Remove posix_madvise entry.
8754
63a2f305
UD
8755 [BZ #4076]
8756 * io/ftw.c (ftw_startup): Handle special case of FTW_CHDIR in /.
8757 (open_dir_stream): Likewise.
8758 * io/Makefile (tests): Add bug-ftw5.
c536b9b8 8759 * io/bug-ftw5.c: New file.
63a2f305 8760
c8703f88
UD
8761 * nscd/hstcache.c (cache_addhst): Remove unnecessary conditional.
8762 * nscd/servicescache.c (cache_addserv): Likewise.
8763
8764 * nscd/grpcache.c (cache_addgr): In case a record changed on
8765 refresh, adjust key_copy.
8766
61705e06
UD
8767 [BZ #4074]
8768 * nscd/pwdcache.c (cache_addpw): In case a record changed on
8769 refresh, adjust key_copy.
8770
0f7769f7
UD
8771 [BZ #4070]
8772 * stdio-common/printf_fp.c (___printf_fp): Handle a few more
0f7769f7 8773 special cases.
8889e7aa 8774 * stdio-common/tfformat.c (sprint_doubles): Some more tests.
0f7769f7 8775
3979024a
UD
87762007-02-19 Ulrich Drepper <drepper@redhat.com>
8777
4c02bf1a
UD
8778 * stdio-common/printf_fp.c (___printf_fp): Cleanups and minor
8779 optimization.
8780
3979024a
UD
8781 * stdio-common/vfscanf.c: Small cleanups throughout.
8782
821d3e70
UD
87832007-02-18 Ulrich Drepper <drepper@redhat.com>
8784
2484468b
UD
8785 [BZ #3325]
8786 * sysdeps/i386/fpu/e_fmodf.S: Use fprem1 instead of fprem.
8787 * sysdeps/i386/fpu/e_fmodl.c: Likewise.
8788 * sysdeps/i386/fpu/e_fmod.S: Likewise.
8789 Patch by Jared Casper <jaredcasper@gmail.com>.
8790
858ee15d
UD
8791 * sysdeps/unix/closedir.c: Outside libc don't use locking.
8792 * sysdeps/unix/opendir.c: Likewise.
8793 * sysdeps/unix/readdir.c: Likewise.
8794
ecb72bd5
UD
8795 [BZ #2211]
8796 * stdio-common/vfscanf.c: Handle localized digits etc for floating
8797 point numbers.
8798 Patch mostly by Hamed Malek <hamed@farsiweb.info>.
8799
ac2ca022
UD
8800 * stdio-common/vfscanf.c: Fix problems in width accounting.
8801 * stdio-common/tst-sscanf.c (double_tests): New tests.
8802 (main): Hook them up.
8803
e9bb5246 8804 * stdio-common/vfscanf.c: Remove unused WIDTH handling.
da50f001 8805 More simplifications of floating-point reader.
e9bb5246 8806
821d3e70
UD
8807 * stdio-common/Makefile (tests): Add tst-swscanf.
8808 * stdio-common/tst-sscanf.c: Make tests usable for swscanf
8809 testing.
8810 * stdio-common/tst-swscanf.c: New file.
8811
07fb5185
UD
88122007-02-17 Ulrich Drepper <drepper@redhat.com>
8813
9138cc0b
UD
8814 [BZ #2633]
8815 * libio/stdio.h: Define struct _IO_FILE in global namespace.
8816 * setjmp/setjmp.h: Define __jmp_buf_tag in global namespace.
8817 Remove using for __jmp_buf_tag.
8818 * locale/locale.h (struct lconv): Also define in std namespace.
8819 * wcsmbs/wchar.h: Move using declaration for tm out of namespace.
8820
6818d837
UD
8821 [BZ #3842]
8822 * sysdeps/posix/euidaccess.c [_LIBC] (euidaccess): Remove shortcut
8823 using __libc_enable_secure.
8824
15c4b5a4
UD
8825 [BZ #3818]
8826 * sysdeps/unix/sysv/linux/sys/acct.h (struct acct_v3): Define.
8827
5e9e9c14
UD
8828 [BZ #3745]
8829 * locale/programs/ld-collate.c (handle_ellipsis): Fix generation
8830 of names for ellipsises.
8831
07fb5185
UD
8832 [BZ #3348]
8833 * malloc/memusage.sh: Cleanups.
8834 * debug/xtrace.sh: Quoting and trap changes.
8835
8c6d1043
UD
88362007-02-16 Ulrich Drepper <drepper@redhat.com>
8837
07fb5185
UD
8838 * locale/iso-3166.def: Add Jersey, Guernsey, and Isle Of Man entries.
8839
93e66914 8840 * locale/iso-3166.def: Update entry for Serbia.
93e36434
UD
8841 * locale/iso-4217.def: Define RSD, remove CSD.
8842
ad0b348c
UD
8843 * sysdeps/x86_64/bits/atomic.h: One more change, this time for 16-
8844 and 64-bit operations.
8845
8846 [BZ #4040]
8847 * sysdeps/i386/i486/bits/atomic.h: One more change, this time for
8848 16-bit operations.
8849
8c6d1043
UD
8850 * nscd/nscd.c (parse_opt): One more conversion to use send instead
8851 of writev.
8852
987f54c6
UD
88532007-02-15 Ulrich Drepper <drepper@redhat.com>
8854
b3715c05
UD
8855 [BZ #3991]
8856 * assert/assert.h (assert): Simplify.
8857 (assert_perror): Likewise.
8858 Patch by Israel G. Lugo <ilugo@bridonsecurity.com>.
8859
6eea8e0d
UD
8860 * nscd/nscd_helper.c (open_socket): Don't send padding bytes from
8861 reqdata.
8862
987f54c6
UD
8863 * sysdeps/unix/sysv/linux/x86_64/send.c (__libc_send): Cosmetic
8864 change: don't pass NULL in place of an integer.
8865
3dc08a7e
UD
88662007-02-02 Bruno Haible <bruno@clisp.org>
8867
06c17c78
UD
8868 [BZ #3954]
8869 * iconvdata/ksc5601.c (__ksc5601_sym_to_ucs, __ksc5601_sym_from_ucs):
8870 Add mapping for U+327E.
8871 * iconvdata/ksc5601.h (KSC5601_SYMBOL): Increment.
8872 * iconvdata/johab.c (BODY for FROM_LOOP, BODY for TO_LOOP): Enable
8873 mapping of 0xD9 0xE8.
8874 * iconvdata/uhc.c (BODY for FROM_LOOP, BODY for TO_LOOP): Disable
8875 mapping of U+327E.
8876 Reported by Jungshik Shin <jungshik@google.com>.
8877
8878 [BZ #3955]
3dc08a7e
UD
8879 * iconvdata/johab.c (BODY for FROM_LOOP, BODY for TO_LOOP): Enable
8880 mapping of 0xD9 0xE6 and of 0xD9 0xE7.
8881 Reported by Jungshik Shin <jungshik@google.com>.
8882
a810e68c
UD
88832007-02-14 Ulrich Drepper <drepper@redhat.com>
8884
8885 * sysdeps/x86_64/bits/atomic;h: Fix asm parameters for some
8886 byte variants.
8887
8888 [BZ #4040]
8889 * sysdeps/i386/i486/bits/atomic.h: Fix asm parameters for some
8890 byte variants. Patch mostly be tom@tommay.net.
8891
05f135ba
UD
88922007-02-14 Jakub Jelinek <jakub@redhat.com>
8893
8894 [BZ #3996]
8895 * posix/glob.c (attribute_hidden): Define if not defined.
8896 (glob): Unescape dirname, filename or username when needed and not
8897 GLOB_NOESCAPE. Handle \/ correctly. Handle GLOB_MARK if filename
8898 is NULL. Handle unescaped [ in pattern without closing ].
8899 Don't pass GLOB_CHECK down to recursive glob for directories.
8900 (__glob_pattern_type): New function.
8901 (__glob_pattern_p): Implement using __glob_pattern_type.
8902 (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
8903 characters and backslashes if not GLOB_NOESCAPE or unterminated [.
8904 Remove unreachable code.
8905 * posix/globtest.sh: Add a couple of new tests.
8906
2f699967
UD
89072007-02-13 Ulrich Drepper <drepper@redhat.com>
8908
8909 * po/ru.po: Update from translation team.
8910
3a7cd5b4
JJ
89112007-02-12 Jakub Jelinek <jakub@redhat.com>
8912
8913 * sysdeps/i386/bits/byteswap.h (__bswap_32): Add __amdfam10__
8914 to the list of i486+ CPUs.
8915 * sysdeps/x86_64/bits/byteswap.h (__bswap_32): Likewise.
8916
2f978feb
UD
89172007-02-12 Ulrich Drepper <drepper@redhat.com>
8918
8919 * elf/rtld.c (RESOLVE_MAP): Always return bootstrap_map reference.
8920 * elf/Makefile ($(objpfx)ld.so): Check that ld.so has no undefined
8921 references.
8922
2bbb7d5b
UD
89232007-02-09 Ulrich Drepper <drepper@redhat.com>
8924
5ed61e0f
UD
8925 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Remove incorrect comment.
8926
2bbb7d5b
UD
8927 * resolv/res_init.c (res_setoptions): Recognize edns0 option.
8928 * resolv/res_mkquery.c: Define __res_nopt.
8929 * resolv/res_query.c (__libc_res_nquery): If RES_USE_EDNS0 is set
8930 try adding EDNS0 record.
8931 * resolv/res_send.c (send_dg): If request failed with FORMERR and
8932 EDNS0 record was send make sure we don't try it again.
8933 * resolv/resolv.h: Define RES_F_EDNS0ERR and RES_USE_EDNS0.
8934 * include/resolv.h: Declare __res_nopt.
8935
00458b5b
UD
89362007-02-08 Jakub Jelinek <jakub@redhat.com>
8937
8938 [BZ #3944]
8939 * time/strptime_l.c (__strptime_internal): Set have_mon for
8940 %b/%B/%h. Set have_mon and have_mday if tm_mon and tm_mday
8941 have been computed from tm_yday and tm_year. Don't crash
8942 in day_of_the_week or day_of_the_year if not have_mon
8943 and tm_mon contains bogus value.
8944 * time/Makefile (tests): Add tst-strptime3.
8945 * time/tst-strptime3.c: New test.
8946
784aacea
UD
89472007-02-05 Jakub Jelinek <jakub@redhat.com>
8948
8949 [BZ #3957]
8950 * posix/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
8951 bit for RE_HAT_LISTS_NOT_NEWLINE.
8952 (build_charclass_op): Remove bogus comment.
8953 * posix/Makefile (tests): Add bug-regex27 and bug-regex28.
8954 * posix/bug-regex27.c: New test.
8955 * posix/bug-regex28.c: New test.
8956
bf7a2463
UD
89572007-02-03 Ulrich Drepper <drepper@redhat.com>
8958
8959 * po/sv.po: Update from translation team.
8960
f2ccf983
UD
89612007-02-02 Ulrich Drepper <drepper@redhat.com>
8962
8963 * nscd/nscd_helper.c (open_socket): Minor size optimization.
8964
73f50d5a
UD
89652007-02-02 Jakub Jelinek <jakub@redhat.com>
8966
8967 * include/locale.h (__uselocale): Add libc_hidden_proto.
8968 * locale/uselocale.c (__uselocale): Add libc_hidden_def.
8969
f6bf9e59
JJ
8970 * nscd/nscd_helper.c (open_socket): Use __gettimeofday instead of
8971 gettimeofday.
8972
4a44ce79
UD
89732007-02-01 Ulrich Drepper <drepper@redhat.com>
8974
8975 * sysdeps/unix/sysv/linux/i386/sysdep.h (PTR_MANGLE): Roll value before
8976 returning.
8977 (PTR_DEMANGLE): Real definition now that it's not the same as
8978 PRT_MANGLE anymore.
8979 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
8980
8981 * string/strerror_l.c: New file.
8982 * string/Makefile (routines): Add strerror_l.
8983 * string/string.h: Declare strerror_l.
8984 * string/Versions: Export strerror_l for GLIBC_2.6.
8985
58a2d52e
UD
89862007-01-31 Ulrich Drepper <drepper@redhat.com>
8987
8988 * nscd/nscd_helper.c (open_socket): Now takes request type and key
8989 as parameter. Construct request record. Try sending request
8990 before the first poll use, it usually succeeds. Adjust all
8991 callers.
8992 * nscd/nscd-client.h: Define MAXKEYLEN.
4a44ce79 8993 * nscd/connections.c (nscd_run): Don't define MAXKEYLEN here.
58a2d52e 8994
1a77d37f
JJ
89952007-01-31 Jakub Jelinek <jakub@redhat.com>
8996
8997 * nscd/nscd-client.h (__nscd_cache_search): Remove const qualifier
8998 from return value.
8999 * nscd/nscd_helper.c: Include string.h.
9000 (__nscd_cache_search): Remove const qualifier from return value.
9001 On strict alignment architectures check hash entry and data head
9002 alignment.
9003 * nscd/nscd_getpw_r.c (nscd_getpw_r): Don't crash or fail because
9004 mmapped data during GC cycle contains garbage. If
9005 __nscd_drop_map_ref fails, decrement mapped->counter when returning
9006 error or if retrying with NO_MAPPING, only __nscd_unmap if counter
9007 dropped to 0.
9008 * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
9009 * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
9010 * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
9011 * nscd/nscd_getai.c (__nscd_getai): Likewise.
9012 * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
9013
ee314200
UD
90142007-01-30 Ulrich Drepper <drepper@redhat.com>
9015
9016 * misc/hsearch_r.c (hdestroy_r): Remove unnecessary test.
9017
14c8bf3b
UD
90182007-01-26 Ulrich Drepper <drepper@redhat.com>
9019
9020 * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Use register
9021 names not numbers in cfi_*.
9022
d2708e67
AJ
90232007-01-26 Andreas Jaeger <aj@suse.de>
9024
9025 * sysdeps/unix/sysv/linux/sys/personality.h (ADDR_NO_RANDOMIZE,
14c8bf3b 9026 ADDR_LIMIT_3GB, PER_LINUX_32BIT, PER_LINUX32_3GB): Add.
d2708e67
AJ
9027 Correct values of PER_HPUX and PER_OSF4.
9028
7fbc8784
UD
90292007-01-24 Ulrich Drepper <drepper@redhat.com>
9030
8aaf53ee 9031 * elf/dl-minimal.c: Undefine _itoa first.
7fbc8784
UD
9032 * stdio-common/_itoa.h: Define _itoa and _fitoa for 64-bit platforms.
9033 * malloc/mtrace.c: Revert last change.
9034 * posix/wordexp.c: Likewise.
9035
9d6cde3d
UD
90362007-01-24 Jakub Jelinek <jakub@redhat.com>
9037
9038 * sysdeps/i386/bits/byteswap.h (__bswap_32): Add __nocona__, __core2__
9039 and __geode__ to the list of i486+ CPUs.
9040 * sysdeps/x86_64/bits/byteswap.h (__bswap_32): Likewise.
9041
c1f0486a
UD
90422007-01-23 Ulrich Drepper <drepper@redhat.com>
9043
9044 * stdio-common/_itoa.c: Include <limits.h>.
9045 * stdio-common/_itowa.c: Likewise.
9046
6cae3957
UD
90472007-01-22 Ulrich Drepper <drepper@redhat.com>
9048
765bbb24
UD
9049 * stdio-common/_itowa.c: Don't compile _itowa for 64-bit
9050 platforms.
9051 * stdio-common/_itoa.c: Don't compile in _itoa and _fitoa for
9052 64-bit platforms.
9053 * malloc/mtrace.c (tr_where): Use _fitoa_word instead of _fitoa if
9054 possible.
9055 * posix/wordexp.c (parse_arith): Use _itoa_word instead of _itoa
9056 if possible.
9057
6cae3957
UD
9058 [BZ #3902]
9059 * stdio-common/_itoa.c (_itoa): Make sure at least a zero is emitted.
9060 * stdio-common/Makefile (tests): Add bug17.
9061 * stdio-common/bug17.c: New file.
9062
ddaafd04
UD
90632007-01-19 Ulrich Drepper <drepper@redhat.com>
9064
9065 * iconvdata/brf.c: New file.
439201de
UD
9066 * iconvdata/testdata/BRF: New file.
9067 * iconvdata/testdata/BRF..UTF8: New file.
9068 Contributed by Samuel Thibault <samuel.thibault@ens-lyon.org>.
ddaafd04
UD
9069 * iconvdata/Makefile: Add rules to build BRF.
9070 * iconvdata/TESTS: Add BRF entry.
9071 * iconvdata/gconv-modules: Likewise.
9072 * iconvdata/tst-tables.sh: Likewise.
ddaafd04 9073
9e6e344e
UD
90742007-01-18 Anton Nikishaev <anton.nik@gmail.com>
9075
9076 * wcsmbs/wchar.h (wcstoll): Fix comment, function returns value of
9077 type `long long int', not `long int'.
9078 (wcstoq): Likewise.
9079
299f7b0f
UD
90802007-01-18 Ulrich Drepper <drepper@redhat.com>
9081
9082 * scripts/gen-as-const.awk: Add cast to long to avoid int promotion
9083 of values on 64-bit platforms which are too large.
9084
cd8127cc
JJ
90852007-01-12 Steven Munroe <sjmunroe@us.ibm.com>
9086 Joe Kerian <jkerian@us.us.ibm.com>
9087
9088 [BZ #2749]
9089 * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Include
9090 <math_ldbl_opt.h>. Remove weak_alias. Use long_double_symbol macro.
9091 (__copysignl): Use signbit() for comparison.
9092 * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Correct parms for
9093 SET_LDOUBLE_WORDS64.
9094
9095 [BZ #2423, #2749]
9096 * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Don't include <fenv_libc.h>.
9097 (__ceill): Remove calls to fegetround(), fesetround().
9098 * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
9099 * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
9100 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
9101
b3acfdf7
JJ
91022007-01-17 Jakub Jelinek <jakub@redhat.com>
9103
4a2e03c6
JJ
9104 * nscd/nscd_getserv_r.c (nscd_getserv_r): Fix pastos.
9105
b3acfdf7
JJ
9106 * sysdeps/unix/sysv/linux/getdents.c (offsetof): Remove.
9107
1476bce6
UD
91082007-01-17 Ulrich Drepper <drepper@redhat.com>
9109
9110 * sysdeps/unix/sysv/linux/fatal-prepare.h: Use PTHFCT_CALL to
9111 demangle pointer.
9112 * csu/libc-start.c: Likewise.
9113
d78bce1c
UD
91142007-01-16 Ulrich Drepper <drepper@redhat.com>
9115
9116 * sysdeps/posix/system.c: Remove NO_WAITPID support, it cannot
9117 really work anyway.
9118
1bd79025
UD
91192007-01-15 Ulrich Drepper <drepper@redhat.com>
9120
000b027e
UD
9121 * nscd/connections.c (servinfo): Renamed to reqinfo. Change all
9122 users.
9123 (handle_request): Remove unnecessary tests.
9124
1bd79025
UD
9125 * nscd/cache.c (cache_add): Record the failure to add to the cache.
9126
d68f5d2c
JJ
91272007-01-15 Jakub Jelinek <jakub@redhat.com>
9128
9129 * soft-fp/op-common.h (FP_TRUNC): When truncating a NaN, clear
9130 workbits in semi-raw fraction.
9131
9132 * math/test-misc.c: Add new tests.
9133
91342007-01-14 Steven Munroe <sjmunroe@us.ibm.com>
9135
9136 * math/basic-test.c: Include test-skeleton.c.
9137 (TEST_TRUNC): Define.
9138 (truncdfsf_test, trunctfsf_test, trunctfdf_test): New.
9139 (main): Rename to ...
9140 (do_test): ...this. Run new tests.
9141 (TEST_FUNCTION): Define.
9142
91432006-10-05 Steven Munroe <sjmunroe@us.ibm.com>
9144 Joe Kerian <jkerian@us.us.ibm.com>
9145
9146 [BZ #2749]
9147 * soft-fp/op-4.h (__FP_FRAC_SUB_3, __FP_FRAC_SUB_4): Correct borrow
9148 handling for high words.
9149 * soft-fp/op-common.h (_FP_OVERFLOW_SEMIRAW): Always set inexact
9150 and overflow for infinity.
9151
4e35ef2c
UD
91522007-01-15 Ulrich Drepper <drepper@redhat.com>
9153
2a1dea97
UD
9154 * nscd/connections.c (handle_request): Add a __builtin_expect.
9155
9691d83c
UD
9156 * nscd/connections.c (serv2db): Change type into structure which
9157 also says whether this is a request for data. Renamed to
9158 servinfo. All users changed.
9159 (handle_request): Much simpler test whether we should search the cache.
9160
49ee6d79
UD
9161 * nscd/connections.c (handle_request): Fix thinko in selinux test
9162 invocation.
9163
4e35ef2c
UD
9164 * sysdeps/generic/ldsodefs.h: Define DL_LOOKUP_SCOPE_LOCK.
9165 * elf/dl-lookup.c (add_dependency): If scope map is locked, unlock
9166 it before getting dl_load_lock and then relock.
9167 (_dl_lookup_symbol_x): Pass flags to add_dependency.
9168 When rerunning _dl_lookup_symbol_x, compute symbol_scope again in
9169 case we unlocked the scope.
9170 * elf/dl-runtime.c (_dl_fixup): Pass DL_LOOKUP_SCOPE_LOCK to
9171 _dl_lookup_symbol_x in case we locked the scope.
9172 (_dl_profile_fixup): Likewise.
9173 * elf/dl-sym.c (do_sym): In flags passed to call_dl_lookup, also
9174 set DL_LOOKUP_SCOPE_LOCK.
9175
23691ab2
UD
91762007-01-13 Ulrich Drepper <drepper@redhat.com>
9177
fb453d08
UD
9178 * inet/Makefile: Define CFLAGS-getsrvbynm_r.c and
9179 CFLAGS-getsrvbynpt_r.c.
9180 * nscd/getsrvbynm_r.c: New file.
9181 * nscd/getsrvbypt_r.c: New file.
9182 * nscd/nscd_getserv_r.c: New file.
9183 * nscd/servicescache.c: New file.
9184 * nscd/Makefile (routines): Add nscd_getserv_r.
9185 (nscd-modules): Add getsrvbynm_r, getsrvbypt_r, and servicescache.
9186 Define CFLAGS-servicescache.c, CFLAGS-getsrvbynm_r.c, and
9187 CFLAGS-getsrvbypt_r.c.
9188 * nscd/cache.c (prune_cache): Rewrite to get re-add function from
9189 table. Add entries for services database.
9190 * nscd/connections.c (serv2str): Mark as const. Add entries for
9191 services database.
9192 (dbs): Add .reset_res and servdb initialization.
9193 (serv2db): Add entries for services database.
9194 (verify_persistent_db): Accept dbnr == servdb.
9195 (invalidate_cache): Rewrite database name recognition to use a table.
9196 Call res_init() if .reset_res is set for database.
9197 (handle_request): Add code to handle services database.
9198 * nscd/gai.c: Don't define __getservbyname_r.
9199 * nscd/nscd-client.h (request_type): Remove LASTDBREQ, add
9200 GETSERVBYNAME, GETSERVBYPORT, GETFDSERV.
9201 (serv_response_header): Define.
9202 (struct datahead): Add serv_response_header member.
9203 * nscd/nscd.c (parse_opt): Rewrite parsing of -i parameter value
9204 using table.
9205 * nscd/nscd.conf: Add entries for services database.
9206 * nscd/nscd.h: Adjust declaration of dbnames and serv2str.
9207 Declare serv_iov_disabled.
9208 Declare addservbyname, readdservbyname, addservbyport, and
9209 readdservbyport.
9210 * nscd/nscd_conf.c (dbnames): Mark as const. Add services entry.
9211 (find_db): Fix error message.
9212 * nscd/nscd_proto.h: Declare __nss_not_use_nscd_services,
9213 __nscd_getservbyname_r, and __nscd_getservbyport_r.
9214 * nscd/selinux.c (perms): Add entries for services database.
9215 * nss/Versions: Export __nss_services_lookup with GLIBC_PRIVATE.
9216 * nss/nsswitch.c (__nss_disable_nscd): Also disable services database.
9217
9218 * nscd/grpcache.c: Remove obsolete code. Cleanups.
9219 * nscd/hstcache.c: Likewise.
9220 * nscd/pwdcache.c: Likewise.
9221
b21fa963
UD
9222 * nis/nss_nis/nis-service.c (_nss_nis_getservbyname_r): Correct
9223 computation of keylen.
9224
23691ab2
UD
9225 * include/string.h: Only redefine strndupa if this is really for
9226 libc code.
9227
8980796b
UD
92282007-01-12 Ulrich Drepper <drepper@redhat.com>
9229
4a4a65f2
UD
9230 * nscd/nscd_gethst_r.c: Minor cleanups.
9231
43397eaf
UD
9232 * nscd/connections.c (handle_request): Check selinux permissions
9233 for all non-admin commands.
9234
038a1a9f
UD
9235 * sysdeps/i386/i486/bits/atomic.h: Define
9236 atomic_compare_and_exchange_val_acq,
9237 atomic_compare_and_exchange_bool_acq, and atomic_exchange_and_add
9238 using __sync_* built-ins for gcc >= 4.1.
9239 * sysdeps/x86_64/bits/atomic.h: Likewise.
9240
8980796b
UD
9241 [BZ #3840]
9242 * scripts/check-local-headers.sh: Restrict to testing .o.d, .os.d,
9243 and .oS.d files.
9244
32c075e1
JJ
92452007-01-05 Steven Munroe <sjmunroe@us.ibm.com>
9246
9247 * stdlib/tst-makecontext.c: Include errno.h. Change main()
9248 to do_test(). Define TEST_FUNCTION. Include test-skeleton.c.
9249 (do_test): Check errno and exit(0) if ENOSYS.
9250
92512007-01-11 Jakub Jelinek <jakub@redhat.com>
9252
9253 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix handling of multi-byte
9254 thousands separators.
9255 * stdlib/Makefile: Add rules to build and run tst-strtod4.
9256 * stdlib/tst-strtod4.c: New test.
9257
9258 [BZ #3855]
9259 * stdlib/strtod_l.c (____STRTOF_INTERNAL): 0x. not followed by
9260 hexadecimal digit should accept just the initial 0.
9261 * stdlib/tst-strtod2.c (tests): New variable.
9262 (do_test): Run several tests rather than just one.
9263
11bf311e 92642007-01-11 Jakub Jelinek <jakub@redhat.com>
df859a0c 9265
11bf311e
UD
9266 * sysdeps/i386/soft-fp/sfp-machine.h: Remove.
9267 * sysdeps/x86_64/soft-fp/sfp-machine.h: Likewise.
df859a0c 9268
11bf311e 92692007-01-10 Ulrich Drepper <drepper@redhat.com>
32c075e1 9270
11bf311e
UD
9271 * io/fts.c: Make sure fts_cur is always valid after return from
9272 fts_read.
9273 Patch by Miloslav Trmac <mitr@redhat.com>.
64a0aa0f 9274
11bf311e 92752006-10-27 Richard Sandiford <richard@codesourcery.com>
32c075e1 9276
11bf311e
UD
9277 * elf/elf.h (R_MIPS_GLOB_DAT): Define.
9278 (R_MIPS_NUM): Bump by 1.
32c075e1 9279
11bf311e 92802007-01-03 Jakub Jelinek <jakub@redhat.com>
32c075e1 9281
11bf311e
UD
9282 * posix/execvp.c: Include alloca.h.
9283 (allocate_scripts_argv): Renamed to...
9284 (scripts_argv): ... this. Don't allocate buffer here nor count
9285 arguments.
9286 (execvp): Use alloca if possible.
9287 * posix/Makefile: Add rules to build and run tst-vfork3 test.
9288 * posix/tst-vfork3.c: New test.
32c075e1
JJ
9289
92902007-01-03 Ulrich Drepper <drepper@redhat.com>
9291
9292 * string/Makefile (tst-strxfrm2-ENV): Define.
11bf311e 9293 * stdlib/Makefile (tst-strtod3-ENV): Define.
32c075e1 9294
11bf311e 92952007-01-02 Ulrich Drepper <drepper@redhat.com>
32c075e1 9296
11bf311e
UD
9297 * posix/getconf.c: Update copyright year.
9298 * nss/getent.c: Likewise.
9299 * iconv/iconvconfig.c: Likewise.
9300 * iconv/iconv_prog.c: Likewise.
9301 * elf/ldconfig.c: Likewise.
9302 * catgets/gencat.c: Likewise.
9303 * csu/version.c: Likewise.
9304 * elf/ldd.bash.in: Likewise.
9305 * elf/sprof.c (print_version): Likewise.
9306 * locale/programs/locale.c: Likewise.
9307 * locale/programs/localedef.c: Likewise.
9308 * nscd/nscd.c (print_version): Likewise.
9309 * debug/xtrace.sh: Likewise.
9310 * malloc/memusage.sh: Likewise.
9311 * malloc/mtrace.pl: Likewise.
9312 * debug/catchsegv.sh: Likewise.
64a0aa0f 9313
11bf311e 93142006-12-24 Ulrich Drepper <drepper@redhat.com>
48576885 9315
11bf311e
UD
9316 * malloc/malloc.c (sYSMALLOc): Remove some unnecessary alignment
9317 attempts.
48576885 9318
11bf311e 93192006-12-23 Ulrich Drepper <drepper@redhat.com>
3b6667a4 9320
11bf311e 9321 * posix/wordexp.c: Remove some unnecessary tests.
3b6667a4 9322
33c6de58
UD
93232006-12-22 Gavin Romig-Koch <gavin@redhat.com>
9324
9325 * nis/nss_compat/compat-grp.c (internal_getgrgid_r): Don't
9326 blacklist the group till after we look it up.
9327
fc242bef
UD
93282006-12-21 Ulrich Drepper <drepper@redhat.com>
9329
9330 * include/atomic.h (atomic_forced_read): New macro.
9331
11bf311e
UD
93322006-12-20 SUGIOKA Toshinobu <sugioka@itonet.co.jp>
9333
9334 * sysdeps/unix/sysv/linux/sh/bits/shm.h: New file.
9335
a12dcecc
UD
93362006-12-19 Jakub Jelinek <jakub@redhat.com>
9337
11bf311e
UD
9338 * nss/getXXbyYY_r.c: Include atomic.h.
9339 (INTERNAL (REENTRANT_NAME)): Write startp after start_fct,
9340 add atomic_write_barrier () in between.
9341
a12dcecc
UD
9342 * stdlib/Makefile (tests): Add tst-makecontext.
9343 * stdlib/tst-makecontext.c: New test.
9344
9345 * sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S
9346 (__makecontext): Don't realign uc_mcontext.uc_regs.
9347
11bf311e 93482006-11-28 Jakub Jelinek <jakub@redhat.com>
594d423a 9349
11bf311e
UD
9350 * elf/dl-support.c: Include dl-procinfo.h.
9351 * sysdeps/powerpc/dl-procinfo.h (PPC_PLATFORM_POWER4,
9352 PPC_PLATFORM_PPC970, PPC_PLATFORM_POWER5, PPC_PLATFORM_POWER5_PLUS,
9353 PPC_PLATFORM_POWER6, PPC_PLATFORM_CELL_BE, PPC_PLATFORM_POWER6X):
9354 Define.
9355 (_dl_string_platform): Use PPC_PLATFORM_* macros instead of
9356 hardcoded constants.
9357 * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_platform): Use
9358 PPC_PLATFORM_* macros for array designators.
594d423a 9359
11bf311e 93602006-11-11 Steven Munroe <sjmunroe@us.ibm.com>
594d423a 9361
11bf311e
UD
9362 * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add 3 new cap
9363 names to the beginning.
9364 (_dl_powerpc_platforms): Add "power6x".
9365 * sysdeps/powerpc/dl-procinfo.h (_DL_HWCAP_FIRST): Decrease.
9366 (HWCAP_IMPORTANT): Add PPC_FEATURE_HAS_DFP.
9367 (_DL_PLATFORMS_COUNT): Increase.
9368 (_dl_string_platform): Handle power6x case.
9369 * sysdeps/powerpc/sysdep.h (PPC_FEATURE_PA6T, PPC_FEATURE_HAS_DFP,
9370 PPC_FEATURE_POWER6_EXT): Define.
9371 (PPC_FEATURE_POWER5, PPC_FEATURE_POWER5_PLUS): Correct Comment.
594d423a 9372
5bcba0ed
UD
93732006-12-18 Jakub Jelinek <jakub@redhat.com>
9374
9375 [BZ #3747]
9376 * stdlib/jrand48_r.c (__jrand48_r): Make sure result is in the
11bf311e 9377 [-2^31 .. 2^31) range.
5bcba0ed
UD
9378 * stdlib/tst-rand48.c (main): Fix expected values for 64-bit
9379 targets.
9380 * stdlib/tst-rand48-2.c: New test.
9381 * stdlib/Makefile (tests): Add tst-rand48-2.
9382
9e1444fc
UD
93832006-12-14 Jakub Jelinek <jakub@redhat.com>
9384
9385 * misc/tst-pselect.c (do_test): Fix sigblock argument.
9386
36775704
UD
93872006-12-14 Ulrich Drepper <drepper@redhat.com>
9388
9389 * misc/tst-pselect.c (do_test): Make sure the helper process is
9390 terminating when the test is aborted.
9391
1e88bd0f
UD
93922006-12-13 Ulrich Drepper <drepper@redhat.com>
9393
11bf311e
UD
9394 * sysdeps/unix/sysv/linux/bits/statvfs.h: Define ST_RELATIME.
9395 * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
9396 Handle relatime mount option.
9397
1e88bd0f
UD
9398 [BZ #2337]
9399 * libio/Makefile (tests): Add tst-setvbuf1.
9400 * libio/tst-setvbuf1.c: New file.
9401
94022006-12-08 Jakub Jelinek <jakub@redhat.com>
9403
9404 [BZ #2337]
9405 * libio/genops.c (__uflow): Fix a typo.
9406 * libio/wfiledoalloc.c (_IO_wfile_doallocate): Don't stat
9407 nor set _IO_LINE_BUF bit here. Size the wide buffer based on
9408 the narrow buffer size.
9409
94102006-11-24 Jakub Jelinek <jakub@redhat.com>
9411
9412 [BZ #2337]
9413 * libio/libio.h (_IO_FLAGS2_USER_WBUF): Define.
9414 * libio/wgenops.c (_IO_wsetb, _IO_wdefault_finish): Test and set
9415 _IO_FLAGS2_USER_WBUF bit in _flags2 instead of _IO_USER_BUF bit
9416 in _flags.
9417 * libio/wstrops.c (_IO_wstr_overflow, enlarge_userbuf,
9418 _IO_wstr_finish): Likewise.
9419 * libio/wmemstream.c (open_wmemstream): Likewise.
9420 * libio/fileops.c (_IO_new_file_close_it): Call _IO_set[bgp]
9421 even for wide streams.
9422
11bf311e 94232006-12-13 Jakub Jelinek <jakub@redhat.com>
1f55ce48 9424
11bf311e
UD
9425 * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: Include
9426 kernel-features.h.
9427
94282006-12-11 Ulrich Drepper <drepper@redhat.com>
9429
9430 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Parse thousand
9431 separators also if no non-zero digits found.
9432 * stdlib/Makefile (tests): Add tst-strtod3.
1f55ce48 9433
d117c1ce
UD
94342006-12-09 Ulrich Drepper <drepper@redhat.com>
9435
f85fb97b
UD
9436 [BZ #3632]
9437 * include/features.h: Fix comment about default value for
9438 _POSIX_C_SOURCE.
9439
11bf311e
UD
9440 [BZ #3664]
9441 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix test to recognize
9442 empty parsed strings.
9443 * stdlib/Makefile (tests): Add tst-strtod2.
9444 * stdlib/tst-strtod2.c: New file.
9445
9446 [BZ #3673]
9447 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix exp_limit
9448 computation.
9449 * stdlib/Makefile (tests): Add tst-atof2.
9450 * stdlib/tst-atof2.c: New file.
9451
9452 [BZ #3674]
9453 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Adjust exponent value
9454 correctly if removing trailing zero of hex-float.
9455 * stdlib/Makefile (tests): Add tst-atof1.
9456 * stdlib/tst-atof1.c: New file.
9457
a822d9f4
UD
94582006-12-09 Jakub Jelinek <jakub@redhat.com>
9459
11bf311e
UD
9460 * misc/mntent_r.c (__hasmntopt): Check p[optlen] even when p == rest.
9461 Start searching for next comma at p rather than rest.
9462 * misc/Makefile (tests): Add tst-mntent2.
9463 * misc/tst-mntent2.c: New test.
9464
a822d9f4
UD
9465 * misc/getusershell.c (initshells): Check for integer overflows.
9466 Make strings buffer one bigger as fgets always succeeds when second
9467 argument is 1. Don't use calloc for shells array. Disallow
11bf311e 9468 / as shell.
f0d5e1f6 9469
11bf311e 94702006-12-08 Ulrich Drepper <drepper@redhat.com>
f0d5e1f6 9471
11bf311e
UD
9472 * malloc/memusage.c: Handle realloc with new size of zero and
9473 non-NULL pointer correctly.
9474 (me): Really write first record twice.
9475 (struct entry): Make format bi-arch safe.
9476 (dest): Write out more realloc statistics.
9477 * malloc/memusagestat.c (struct entry): Make format bi-arch safe.
32c075e1 9478
11bf311e 94792006-12-05 Jakub Jelinek <jakub@redhat.com>
32c075e1 9480
11bf311e 9481 * nis/nis_subr.c (nis_getnames): Revert last change.
32c075e1 9482
f0d5e1f6
UD
94832006-12-04 Jakub Jelinek <jakub@redhat.com>
9484
9485 * sysdeps/unix/sysv/linux/ttyname.c: Include termios.h.
9486 (ttyname): Use tcgetattr instead of isatty, don't set errno to ENOTTY.
9487 * sysdeps/unix/sysv/linux/ttyname_r.c: Include termios.h.
9488 (__ttyname_r): Use tcgetattr instead of isatty, don't set errno to
9489 ENOTTY.
9490 * io/Makefile: Add rules to build and run tst-ttyname_r test.
9491 * io/tst-ttyname_r.c: New test.
9492
11bf311e 94932006-12-03 Kaz Kojima <kkojima@rr.iij4u.or.jp>
5df4fe08 9494
11bf311e 9495 * sysdeps/unix/sysv/linux/sh/sys/io.h: Removed.
5df4fe08 9496
11bf311e 94972006-11-30 H.J. Lu <hongjiu.lu@intel.com>
ee50871d 9498
11bf311e
UD
9499 * sysdeps/i386/i686/memcmp.S: Use jump table as the base of
9500 jump table entries.
9501
95022006-11-30 Jan Kratochvil <jan.kratochvil@redhat.com>
9503
9504 * sysdeps/unix/sysv/linux/i386/clone.S: Provide CFI for the outermost
9505 `clone' function to ensure proper unwinding stop of gdb.
9506 * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
9507
95082006-12-01 Ulrich Drepper <drepper@redhat.com>
9509
9510 * nscd/nscd.init: Remove obsolete and commented-out -S option
9511 handling.
9512
95132006-11-23 Jakub Jelinek <jakub@redhat.com>
9514
9515 [BZ #3514]
9516 * manual/string.texi (strncmp): Fix pastos from wcscmp description.
9517
9518 [BZ #3515]
9519 * manual/string.texi (strtok): Remove duplicate paragraph.
9520
95212006-12-01 Jan Kratochvil <jan.kratochvil@redhat.com>
9522
9523 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Fix compatibility with
9524 libgcc not supporting `rflags' unwinding (register # >= 17).
9525
95262006-11-30 Jakub Jelinek <jakub@redhat.com>
9527
9528 * sunrpc/svc_run.c (svc_run): Set my_pollfd to new_pollfd if realloc
9529 succeeded.
9530
95312006-11-29 Daniel Jacobowitz <dan@codesourcery.com>
9532 Jakub Jelinek <jakub@redhat.com>
9533 Jan Kratochvil <jan.kratochvil@redhat.com>
9534
9535 * sysdeps/unix/sysv/linux/x86_64/sigaction.c (restore_rt): Add correct
9536 unwind information.
9537 * sysdeps/unix/sysv/linux/x86_64/Makefile: Provide symbols for
9538 'restore_rt' even in the 'signal' directory.
9539 * sysdeps/unix/sysv/linux/x86_64/ucontext_i.sym: Extend the regs list.
ee50871d 9540
b1a758f3
UD
95412006-11-27 Jakub Jelinek <jakub@redhat.com>
9542
9543 [BZ #3559]
9544 * sunrpc/svc_run.c (svc_run): Fail instead of segfaulting if
11bf311e
UD
9545 malloc crashed. Don't allocate memory unnecessarily in each
9546 loop.
b1a758f3 9547
11bf311e 95482006-10-21 Jakub Jelinek <jakub@redhat.com>
854d1124 9549
11bf311e 9550 * resolv/mapv4v6addr.h (map_v4v6_address): Fix last change.
dfc99a56 9551
11bf311e 95522006-11-20 Ulrich Drepper <drepper@redhat.com>
dfc99a56 9553
11bf311e 9554 * resolv/mapv4v6addr.h (map_v4v6_address): Optimize a bit.
852d657c 9555
11bf311e 95562006-11-18 Bruno Haible <bruno@clisp.org>
852d657c 9557
11bf311e
UD
9558 * sysdeps/unix/sysv/linux/i386/getgroups.c (__getgroups): Invoke
9559 __sysconf only after having tried to call getgroups32.
36c0a636 9560
11bf311e 95612006-11-19 Ulrich Drepper <drepper@redhat.com>
36c0a636 9562
11bf311e
UD
9563 * nss/nss_files/files-hosts.c (LINE_PARSER): Support IPv6-style
9564 addresses for IPv4 queries if they can be mapped.
b1f0c2a6 9565
11bf311e 95662006-11-16 Jakub Jelinek <jakub@redhat.com>
b1f0c2a6 9567
11bf311e
UD
9568 * sysdeps/x86_64/fpu/s_copysignf.S (__copysignf): Switch to .text.
9569 * sysdeps/x86_64/fpu/s_copysign.S (__copysign): Likewise.
9570 (signmask): Add .size directive.
9571 (othermask): Add .type directive.
bef8927a 9572
11bf311e 95732006-11-14 Ulrich Drepper <drepper@redhat.com>
2c53fa20 9574
11bf311e 9575 * po/nl.po: Update from translation team.
854d1124 9576
11bf311e 9577 * timezone/zdump.c: Redo fix for BZ #3137.
3f1e9205 9578
11bf311e 95792006-11-14 Jakub Jelinek <jakub@redhat.com>
bef8927a 9580
11bf311e
UD
9581 * nss/nss_files/files-alias.c (get_next_alias): Set line back
9582 to first_unused after parsing :include: file.
5c2af134 9583
32c075e1 95842006-11-10 Ulrich Drepper <drepper@redhat.com>
e1b37083 9585
11bf311e
UD
9586 * timezone/africa: Update from tzdata2006o.
9587 * timezone/antarctica: Likewise.
9588 * timezone/asia: Likewise.
9589 * timezone/australasia: Likewise.
9590 * timezone/backward: Likewise.
9591 * timezone/europe: Likewise.
9592 * timezone/iso3166.tab: Likewise.
9593 * timezone/northamerica: Likewise.
9594 * timezone/southamerica: Likewise.
9595 * timezone/zone.tab: Likewise.
9596
9597 * time/tzfile.c (__tzfile_read): Extend to handle new file format
9598 on machines with 64-bit time_t.
9599
9600 * timezone/checktab.awk: Update from tzcode2006o.
9601 * timezone/ialloc.c: Likewise.
9602 * timezone/private.h: Likewise.
9603 * timezone/scheck.c: Likewise.
9604 * timezone/tzfile.h: Likewise.
9605 * timezone/tzselect.ksh: Likewise.
9606 * timezone/zdump.c: Likewise.
9607 * timezone/zic.c: Likewise.
9608
9609 [BZ #3483]
9610 * elf/ldconfig.c (main): Call setlocale and textdomain.
9611 Patch mostly by Benno Schulenberg <bensberg@justemail.net>.
9612
9613 [BZ #3480]
9614 * manual/argp.texi: Fix typos.
9615 * manual/charset.texi: Likewise.
9616 * manual/errno.texi: Likewise.
9617 * manual/filesys.texi: Likewise.
9618 * manual/lang.texi: Likewise.
9619 * manual/maint.texi: Likewise.
9620 * manual/memory.texi: Likewise.
9621 * manual/message.texi: Likewise.
9622 * manual/resource.texi: Likewise.
9623 * manual/search.texi: Likewise.
9624 * manual/signal.texi: Likewise.
9625 * manual/startup.texi: Likewise.
9626 * manual/stdio.texi: Likewise.
9627 * manual/sysinfo.texi: Likewise.
9628 * manual/syslog.texi: Likewise.
9629 * manual/time.texi: Likewise.
9630 Patch by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
9631
9632 [BZ #3465]
9633 * sunrpc/clnt_raw.c: Minimal message improvements.
9634 * sunrpc/pm_getmaps.c: Likewise.
9635 * nis/nss_nisplus/nisplus-publickey.c: Likewise.
9636 * nis/nis_print_group_entry.c: Likewise.
9637 * locale/programs/repertoire.c: Likewise.
9638 * locale/programs/charmap.c: Likewise.
9639 * malloc/memusage.sh: Likewise.
9640 * elf/dl-deps.c: Likewise.
9641 * locale/programs/ld-collate.c: Likewise.
9642 * libio/vswprintf.c: Likewise.
9643 * malloc/memusagestat.c: Likewise.
9644 * sunrpc/auth_unix.c: Likewise.
9645 * sunrpc/rpc_main.c: Likewise.
9646 * nscd/cache.c: Likewise.
9647 * locale/programs/repertoire.c: Unify output messages.
9648 * locale/programs/charmap.c: Likewise.
9649 * locale/programs/ld-ctype.c: Likewise.
9650 * locale/programs/ld-monetary.c: Likewise.
9651 * locale/programs/ld-numeric.c: Likewise.
9652 * locale/programs/ld-time.c: Likewise.
9653 * elf/ldconfig.c: Likewise.
9654 * nscd/selinux.c: Likewise.
9655 * elf/cache.c: Likewise.
9656 Patch mostly by Benno Schulenberg <bensberg@justemail.net>.
9657
5c2af134
UD
9658 [BZ #3451]
9659 * sysdeps/i386/fpu/bits/mathinline.h (floor): Make rounding mode
9660 change atomic.
9661 (ceil): Likewise.
9662
11bf311e
UD
96632006-11-10 Jakub Jelinek <jakub@redhat.com>
9664
9665 * string/strxfrm_l.c (STRXFRM): Fix trailing \1 optimization
9666 if N is one bigger than return value.
9667 * string/tst-strxfrm2.c (do_test): Also test strxfrm with l1 + 1
9668 and l1 last arguments, if buf is defined, verify the return value
9669 equals to strlen (buf) and verify no byte beyond passed length
9670 is modified.
9671
96722006-11-10 Ulrich Drepper <drepper@redhat.com>
9673
9674 * po/sv.po: Update from translation team.
9675
37afcf79
UD
96762006-11-09 Ulrich Drepper <drepper@redhat.com>
9677
9678 * sysdeps/unix/sysv/linux/x86_64/sysconf.c (intel_check_word): Add
9679 noinline attribute.
9680
96812006-11-10 Jakub Jelinek <jakub@redhat.com>
9682
9683 * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Add
9684 noinline attribute.
9685
11bf311e
UD
9686 * sysdeps/gnu/siglist.c (__old_sys_siglist, __old_sys_sigabbrev):
9687 Use __new_sys_siglist instead of _sys_siglist_internal as
9688 second macro argument.
9689 (_old_sys_siglist): Use declare_symbol_alias macro instead of
9690 strong_alias.
2692deea 9691
11bf311e
UD
96922006-11-09 Ulrich Drepper <drepper@redhat.com>
9693
9694 [BZ #3493]
9695 * posix/unistd.h (sysconf): Remove const attribute.
9696
9697 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Fix test for
9698 temporary or deprecated addresses.
9699 Patch by Sridhar Samudrala <sri@us.ibm.com>.
9700
9701 * string/Makefile (tests): Add tst-strxfrm2.
9702 * string/tst-strxfrm2.c: New file.
9703
97042006-10-09 Jakub Jelinek <jakub@redhat.com>
9705
9706 * elf/dl-debug.c (_dl_debug_initialize): Check r->r_map for 0
9707 rather than r->r_brk.
2692deea
UD
9708
97092006-11-08 Jakub Jelinek <jakub@redhat.com>
9710
11bf311e
UD
9711 * string/strxfrm_l.c (STRXFRM): Do the trailing \1 removal
9712 optimization even if needed > n.
9713
2692deea
UD
9714 * elf/dl-load.c (decompose_rpath): Return bool rather than void.
9715 If l->l_name is on inhibit_rpath list, set sps->dirs to -1 and
9716 return false, otherwise return true.
9717 (cache_rpath): Return decompose_rpath return value.
9718
11bf311e
UD
97192006-11-07 Jakub Jelinek <jakub@redhat.com>
9720
9721 * include/libc-symbols.h (declare_symbol): Rename to...
9722 (declare_symbol_alias): ... this. Add ORIGINAL argument, imply
9723 strong_alias (ORIGINAL, SYMBOL) in asm to make sure it preceedes
9724 .size directive.
9725 * sysdeps/gnu/errlist-compat.awk: Adjust for declare_symbol_alias
9726 changes.
9727 * sysdeps/gnu/siglist.c: Likewise.
9728
97292006-11-03 Steven Munroe <sjmunroe@us.ibm.com>
9730
9731 * sysdeps/powerpc/fpu/bits/mathinline.h
9732 [__LIBC_INTERNAL_MATH_INLINES]: Moved to ...
9733 * sysdeps/powerpc/fpu/math_private.h: ...here. New file.
9734
97352006-11-05 Ulrich Drepper <drepper@redhat.com>
9736
9737 * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
9738 Update handling of cache descriptor 0x49 for new models.
9739 * sysdeps/unix/sysv/linux/x86_64/sysconf.c (intel_check_word):
9740 Likewise.
9741
9666e36c
UD
97422006-11-02 Jakub Jelinek <jakub@redhat.com>
9743
9744 * malloc/memusage.c (dest): Reset not_me back to false after
9745 printing statistics.
9746
11bf311e
UD
97472006-11-02 Ulrich Drepper <drepper@redhat.com>
9748
9749 * configure.in: Work around ld --help change and avoid -z relro
9750 test completely if the architecture doesn't care about security.
9751
97522006-11-01 Ulrich Drepper <drepper@redhat.com>
9753
9754 * po/sv.po: Update from translation team.
9755
97562006-10-31 Ulrich Drepper <drepper@redhat.com>
9757
9758 * stdlib/atexit.c (atexit): Don't mark as hidden when used to
9759 generate compatibility version.
9760
97612006-10-29 Ulrich Drepper <drepper@redhat.com>
9762
9763 * configure.in: Relax -z relro requirement a bit.
9764
9765 * po/sv.po: Update from translation team.
9766
97672006-10-29 Jakub Jelinek <jakub@redhat.com>
9768
9769 * elf/dl-sym.c (do_sym): Use RTLD_SINGLE_THREAD_P.
9770 * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Likewise.
9771 * elf/dl-close.c (_dl_close_worker): Likewise.
9772 * elf/dl-open.c (_dl_open_worker): Likewise.
9773 * sysdeps/generic/sysdep-cancel.h (RTLD_SINGLE_THREAD_P): Define.
9774
b2369ca3
UD
97752006-10-27 Ulrich Drepper <drepper@redhat.com>
9776
11bf311e
UD
9777 * configure.in: Require assembler support for visibility, compiler
9778 support for visibility and aliases, linker support for various -z
9779 options.
9780 * Makeconfig: Remove conditional code which now is unnecessary.
9781 * config.h.in: Likewise.
9782 * config.make.in: Likewise.
9783 * dlfcn/Makefile: Likewise.
9784 * elf/Makefile: Likewise.
9785 * elf/dl-load.c: Likewise.
9786 * elf/rtld.c: Likewise.
9787 * include/libc-symbols.h: Likewise.
9788 * include/stdio.h: Likewise.
9789 * io/Makefile: Likewise.
9790 * io/fstat.c: Likewise.
9791 * io/fstat64.c: Likewise.
9792 * io/fstatat.c: Likewise.
9793 * io/fstatat64.c: Likewise.
9794 * io/lstat.c: Likewise.
9795 * io/lstat64.c: Likewise.
9796 * io/mknod.c: Likewise.
9797 * io/mknodat.c: Likewise.
9798 * io/stat.c: Likewise.
9799 * io/stat64.c: Likewise.
9800 * libio/stdio.c: Likewise.
9801 * nscd/Makefile: Likewise.
9802 * stdlib/Makefile: Likewise.
9803 * stdlib/atexit.c: Likewise.
9804 * sysdeps/generic/ldsodefs.h: Likewise.
9805 * sysdeps/i386/dl-machine.h: Likewise.
9806 * sysdeps/i386/sysdep.h: Likewise.
9807 * sysdeps/i386/i686/memcmp.S: Likewise.
9808 * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
9809 * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
9810 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
9811
9812 * Makerules: USE_TLS support is now default.
9813 * tls.make.c: Likewise.
9814 * csu/Versions: Likewise.
9815 * csu/libc-start.c: Likewise.
9816 * csu/libc-tls.c: Likewise.
9817 * csu/version.c: Likewise.
9818 * dlfcn/dlinfo.c: Likewise.
9819 * elf/dl-addr.c: Likewise.
9820 * elf/dl-cache.c: Likewise.
9821 * elf/dl-close.c: Likewise.
9822 * elf/dl-iteratephdr.c: Likewise.
9823 * elf/dl-load.c: Likewise.
9824 * elf/dl-lookup.c: Likewise.
9825 * elf/dl-object.c: Likewise.
9826 * elf/dl-open.c: Likewise.
9827 * elf/dl-reloc.c: Likewise.
9828 * elf/dl-support.c: Likewise.
9829 * elf/dl-sym.c: Likewise.
9830 * elf/dl-sysdep.c: Likewise.
9831 * elf/dl-tls.c: Likewise.
9832 * elf/ldconfig.c: Likewise.
9833 * elf/rtld.c: Likewise.
9834 * elf/tst-tls-dlinfo.c: Likewise.
9835 * elf/tst-tls1.c: Likewise.
9836 * elf/tst-tls10.h: Likewise.
9837 * elf/tst-tls14.c: Likewise.
9838 * elf/tst-tls2.c: Likewise.
9839 * elf/tst-tls3.c: Likewise.
9840 * elf/tst-tls4.c: Likewise.
9841 * elf/tst-tls5.c: Likewise.
9842 * elf/tst-tls6.c: Likewise.
9843 * elf/tst-tls7.c: Likewise.
9844 * elf/tst-tls8.c: Likewise.
9845 * elf/tst-tls9.c: Likewise.
9846 * elf/tst-tlsmod1.c: Likewise.
9847 * elf/tst-tlsmod13.c: Likewise.
9848 * elf/tst-tlsmod13a.c: Likewise.
9849 * elf/tst-tlsmod14a.c: Likewise.
9850 * elf/tst-tlsmod2.c: Likewise.
9851 * elf/tst-tlsmod3.c: Likewise.
9852 * elf/tst-tlsmod4.c: Likewise.
9853 * elf/tst-tlsmod5.c: Likewise.
9854 * elf/tst-tlsmod6.c: Likewise.
9855 * include/errno.h: Likewise.
9856 * include/link.h: Likewise.
9857 * include/tls.h: Likewise.
9858 * locale/global-locale.c: Likewise.
9859 * locale/localeinfo.h: Likewise.
9860 * malloc/arena.c: Likewise.
9861 * malloc/hooks.c: Likewise.
9862 * malloc/malloc.c: Likewise.
9863 * resolv/Versions: Likewise.
9864 * sysdeps/alpha/dl-machine.h: Likewise.
9865 * sysdeps/alpha/libc-tls.c: Likewise.
9866 * sysdeps/generic/ldsodefs.h: Likewise.
9867 * sysdeps/generic/tls.h: Likewise.
9868 * sysdeps/i386/dl-machine.h: Likewise.
9869 * sysdeps/ia64/dl-machine.h: Likewise.
9870 * sysdeps/ia64/libc-tls.c: Likewise.
9871 * sysdeps/mach/hurd/fork.c: Likewise.
9872 * sysdeps/mach/hurd/i386/tls.h: Likewise.
9873 * sysdeps/powerpc/powerpc32/dl-machine.c: Likwise.
9874 * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
9875 * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
9876 * sysdeps/s390/libc-tls.c: Likewise.
9877 * sysdeps/s390/s390-32/dl-machine.h: Likewise.
9878 * sysdeps/s390/s390-64/dl-machine.h: Likewise.
9879 * sysdeps/sh/dl-machine.h: Likewise.
9880 * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
9881 * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
9882 * sysdeps/x86_64/dl-machine.h: Likewise.
9883
131c4428
UD
9884 * elf/dl-close.c (_dl_close_worker): Renamed from _dl_close and
9885 split out locking and parameter checking.
9886 (_dl_close): Call _dl_close_worker after locking and checking.
9887 * elf/dl-open.c (_dl_open): Call _dl_close_worker instead of
9888 _dl_close.
ffd0e1b7
UD
9889 * elf/Makefile: Add rules to build and run tst-thrlock.
9890 * elf/tst-thrlock.c: New file.
131c4428 9891
11bf311e
UD
9892 [BZ #3426]
9893 * stdlib/stdlib.h: Adjust comment for canonicalize_file_name to
9894 reality.
9895
b2369ca3
UD
9896 [BZ #3429]
9897 * elf/dl-open.c (dl_open_worker): Keep holding dl_load_lock until
131c4428 9898 we are sure we do not need it anymore for _dl_close. Also move
b2369ca3
UD
9899 the asserts inside the lock region.
9900 Patch mostly by Suzuki <suzuki@in.ibm.com>.
9901
11bf311e
UD
99022006-10-27 Jakub Jelinek <jakub@redhat.com>
9903
9904 * elf/dl-lookup.c (_dl_debug_bindings): Remove unused symbol_scope
9905 argument.
9906 (_dl_lookup_symbol_x): Adjust caller.
9907
9908 * sysdeps/generic/ldsodefs.h (struct link_namespaces): Remove
9909 _ns_global_scope.
9910 * elf/rtld.c (dl_main): Don't initialize _ns_global_scope.
9911
9912 * elf/dl-libc.c: Revert l_scope name changes.
9913 * elf/dl-load.c: Likewise.
9914 * elf/dl-object.c: Likewise.
9915 * elf/rtld.c: Likewise.
9916 * elf/dl-close.c (_dl_close): Likewise.
9917 * elf/dl-open.c (dl_open_worker): Likewise. If not SINGLE_THREAD_P,
9918 always use __rtld_mrlock_{change,done}. Always free old scope list
9919 here if not l_scope_mem.
9920 * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Revert l_scope name
9921 change. Never free scope list here. Just __rtld_mrlock_lock before
9922 the lookup and __rtld_mrlock_unlock it after the lookup.
9923 * elf/dl-sym.c: Likewise.
9924 * include/link.h (struct r_scoperec): Remove.
9925 (struct link_map): Replace l_scoperec with l_scope, l_scoperec_mem
9926 with l_scope_mem and l_scoperec_lock with l_scope_lock.
9927
99282006-10-25 Ulrich Drepper <drepper@redhat.com>
9929
9930 * sysdeps/gnu/netinet/tcp.h: Define TCP_CONGESTION.
9931
99322006-10-18 Ulrich Drepper <drepper@redhat.com>
9933
9934 * configure.in: Disable building profile libraries by default.
9935
609cf614
UD
99362006-10-17 Jakub Jelinek <jakub@redhat.com>
9937
9938 * sunrpc/xdr_mem.c (xdrmem_setpos): Don't compare addresses
9939 as signed longs, check for x_base + pos overflow.
9940 * sunrpc/Makefile (tests): Add tst-xdrmem2.
9941 * sunrpc/tst-xdrmem2.c: New test.
9942
11bf311e
UD
99432006-10-18 Ulrich Drepper <drepper@redhat.com>
9944
9945 * elf/dl-lookup.c (_dl_lookup_symbol_x): Add warning to
9946 _dl_lookup_symbol_x code.
9947
99482006-10-17 Jakub Jelinek <jakub@redhat.com>
9949
9950 * elf/dl-runtime.c: Include sysdep-cancel.h.
9951 (_dl_fixup, _dl_profile_fixup): Use __rtld_mrlock_* and
9952 scoperec->nusers only if !SINGLE_THREAD_P. Use atomic_*
9953 instead of catomic_* macros.
9954 * elf/dl-sym.c: Include sysdep-cancel.h.
9955 (do_sym): Use __rtld_mrlock_* and scoperec->nusers only
9956 if !SINGLE_THREAD_P. Use atomic_* instead of catomic_* macros.
9957 * elf/dl-close.c: Include sysdep-cancel.h.
9958 (_dl_close): Use __rtld_mrlock_* and scoperec->nusers only
9959 if !SINGLE_THREAD_P. Use atomic_* instead of catomic_* macros.
9960 * elf/dl-open.c: Include sysdep-cancel.h.
9961 (dl_open_worker): Use __rtld_mrlock_* and scoperec->nusers only
9962 if !SINGLE_THREAD_P. Use atomic_* instead of catomic_* macros.
9963
99642006-10-17 Jakub Jelinek <jakub@redhat.com>
9965
9966 [BZ #3313]
9967 * malloc/malloc.c (malloc_consolidate): Set maxfb to address of last
9968 fastbin rather than end of fastbin array.
9969
99702006-10-18 Ulrich Drepper <drepper@redhat.com>
9971
9972 * sysdeps/i386/i486/bits/atomic.h (catomic_decrement): Use correct
9973 body macro.
9974 * sysdeps/x86_64/bits/atomic.h
9975 (__arch_c_compare_and_exchange_val_64_acq): Add missing casts.
9976 (catomic_decrement): Use correct body macro.
9977
99782006-10-17 Jakub Jelinek <jakub@redhat.com>
9979
9980 * include/atomic.h: Add a unique prefix to all local variables
9981 in macros.
9982 * csu/tst-atomic.c (do_test): Test also catomic_* macros.
9983
4a85a8ee
UD
99842006-10-16 Ulrich Drepper <drepper@redhat.com>
9985
9986 [BZ #3369]
9987 * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Fix typos in rules 4
9988 and 7.
9989
11bf311e
UD
99902006-10-14 Ulrich Drepper <drepper@redhat.com>
9991
9992 * resolv/arpa/nameser.h: Document that ns_t_a6 is deprecated.
9993
ff8d96be
UD
99942006-10-13 Ulrich Drepper <drepper@redhat.com>
9995
11bf311e
UD
9996 [BZ #3313]
9997 * malloc/malloc.c (malloc_consolidate): Don't use get_fast_max to
9998 determine highest fast bin to consolidate, always look into all of
9999 them.
10000 (do_check_malloc_state): Only require for empty bins for large
10001 sizes in main arena.
10002
10003 * libio/stdio.h: Add more __wur attributes.
10004
ff8d96be
UD
10005 * elf/dl-minimal.c (realloc): Optimize last patch.
10006
90a0991a
UD
100072006-10-12 Richard Sandiford <richard@codesourcery.com>
10008
10009 [BZ #3352]
10010 * elf/dl-minimal.c (realloc): Let malloc() return a new pointer,
10011 and use memcpy() if it does.
ff8d96be 10012
11bf311e
UD
100132006-11-12 Andreas Jaeger <aj@suse.de>
10014
10015 [BZ #2510]
10016 * manual/search.texi (Hash Search Function): Clarify.
10017 (Array Search Function): Clarify.
10018
100192006-11-12 Joseph Myers <joseph@codesourcery.com>
10020
10021 [BZ #2830]
10022 * math/atest-exp.c (main): Cast hex value to mp_limb_t before
10023 shifting.
10024 * math/atest-exp2.c (read_mpn_hex): Likewise.
10025 * math/atest-sincos.c (main): Likewise.
10026
37fb7595
UD
100272006-10-11 Ulrich Drepper <drepper@redhat.com>
10028
11bf311e
UD
10029 * sysdeps/unix/sysv/linux/syscalls.list: Add epoll_pwait.
10030 * sysdeps/unix/sysv/linux/sys/epoll.h: Declare epoll_pwait.
10031 * sysdeps/unix/sysv/linux/Versions (libc): Add epoll_pwait for
10032 version GLIBC_2.6.
10033 * Versions.def: Add GLIBC_2.6 for libc.
10034
46c38bd7
UD
10035 * sysdeps/unix/sysv/linux/i386/sysdep.h (DOARGS_6): Fix offset.
10036
11bf311e
UD
10037 * sysdeps/i386/i486/bits/atomic.h: Add catomic_* support.
10038
100392006-10-11 Jakub Jelinek <jakub@redhat.com>
10040
10041 * malloc/malloc.c (_int_malloc): Remove unused any_larger variable.
10042
10043 * nis/nis_defaults.c (__nis_default_access): Don't call getenv twice.
10044
10045 * nis/nis_subr.c (nis_getnames): Use __secure_getenv instead of getenv.
10046 * sysdeps/generic/unsecvars.h: Add NIS_PATH.
10047
100482006-10-11 Ulrich Drepper <drepper@redhat.com>
10049
10050 * include/atomic.c: Define catomic_* operations.
10051 * sysdeps/x86_64/bits/atomic.h: Likewise. Fix a few minor problems.
10052 * stdlib/cxa_finalize.c: Use catomic_* operations instead of atomic_*.
10053 * malloc/memusage.c: Likewise.
10054 * gmon/mcount.c: Likewise.
10055 * elf/dl-close.c: Likewise.
10056 * elf/dl-open.c: Likewise.
10057 * elf/dl-profile.c: Likewise.
10058 * elf/dl-sym.c: Likewise.
10059 * elf/dl-runtime.c: Likewise.
10060 * elf/dl-fptr.c: Likewise.
10061 * resolv/res_libc.c: Likewise.
10062
2a6ee549
UD
100632006-10-10 Ulrich Drepper <drepper@redhat.com>
10064
10065 * nis/nis_subr.c (nis_getnames): Add trailing dot to NIS_PATH
10066 components which lack them.
10067
10068 * nis/nis_subr.c (nis_getnames): Make sure that we always return
10069 at least one entry consisting of the parameter concatenated with
10070 the domain.
10071
11bf311e 100722006-10-10 Roland McGrath <roland@frob.com>
c4f9fc3a 10073
11bf311e
UD
10074 * sysdeps/mach/hurd/utimes.c: Use a union to avoid an improper cast.
10075 * sysdeps/mach/hurd/futimes.c: Likewise.
10076 * sysdeps/mach/hurd/lutimes.c: Likewise.
10077
100782006-10-09 Ulrich Drepper <drepper@redhat.com>
10079 Jakub Jelinek <jakub@redhat.com>
10080
10081 Implement reference counting of scope records.
10082 * elf/dl-close.c (_dl_close): Remove all scopes from removed objects
10083 from the list in objects which remain. Always allocate new scope
10084 record.
10085 * elf/dl-open.c (dl_open_worker): When growing array for scopes,
10086 don't resize, allocate a new one.
10087 * elf/dl-runtime.c: Update reference counters before using a scope
10088 array.
10089 * elf/dl-sym.c: Likewise.
10090 * elf/dl-libc.c: Adjust for l_scope name change.
10091 * elf/dl-load.c: Likewise.
10092 * elf/dl-object.c: Likewise.
10093 * elf/rtld.c: Likewise.
10094 * include/link.h: Include <rtld-lowlevel.h>. Define struct
10095 r_scoperec. Replace r_scope with pointer to r_scoperec structure.
10096 Add l_scoperec_lock.
10097 * sysdeps/generic/ldsodefs.h: Include <rtld-lowlevel.h>.
10098 * sysdeps/generic/rtld-lowlevel.h: New file.
10099
10100 * include/atomic.h: Rename atomic_and to atomic_and_val and
10101 atomic_or to atomic_or_val. Define new macros atomic_and and
10102 atomic_or which do not return values.
10103 * sysdeps/x86_64/bits/atomic.h: Define atomic_and and atomic_or.
10104 Various cleanups.
10105 * sysdeps/i386/i486/bits/atomic.h: Likewise.
10106
10107 * po/sv.po: Update from translation team.
10108
101092006-10-07 Ulrich Drepper <drepper@redhat.com>
10110
10111 * Versions.def: Add GLIBC_2.6 to libpthread.
10112
10113 * include/shlib-compat.h (SHLIB_COMPAT): Expand parameters before use.
10114 (versioned_symbol): Likewise.
10115 (compat_symbol): Likewise.
10116
10117 * po/tr.po: Update from translation team.
feb87ad1 10118
4df92d57
UD
101192006-10-06 Ulrich Drepper <drepper@redhat.com>
10120
11bf311e
UD
10121 * nis/Banner: Removed. It's been integral part forever and the
10122 author info is incomplete anyway.
10123 * libio/Banner: Likewise.
10124
4df92d57
UD
10125 * nis/nis_table.c (nis_list): If __follow_path fails in the new
10126 code, make sure the nis_freeresult call doesn't crash and that the
10127 result is reported correctly.
10128
68361572
UD
101292006-09-27 Jakub Jelinek <jakub@redhat.com>
10130
10131 * nis/nis_table.c (nis_list): Handle FOLLOW_PATH | ALL_RESULTS
10132 when callback is NULL.
10133
10134 * nis/Versions (libnss_nisplus): Add
10135 _nss_nisplus_initgroups_dyn@@GLIBC_PRIVATE.
10136 * nis/Makefile (libnss_nisplus-routines): Add nisplus-initgroups.
10137 * nis/nss_nisplus/nisplus-grp.c (tablename_val, tablename_len,
10138 _nss_create_tablename): Rename to...
10139 (grp_tablename_val, grp_tablename_len, _nss_grp_create_tablename):
10140 ... these. No longer static.
10141 (internal_setgrent): Adjust users.
10142 (_nss_nisplus_getgrnam_r, _nss_nisplus_getgrgid_r): Likewise.
10143 Don't use locking around _nss_grp_create_tablename call.
10144 * nis/nss_nisplus/nisplus-initgroups.c: New file.
10145
11bf311e
UD
101462006-10-06 Ulrich Drepper <drepper@redhat.com>
10147
10148 * version.h (VERSION): Bump to 2.5.90 for new development tree.
10149
3a4e0609
UD
101502006-10-06 Andreas Jaeger <aj@suse.de>
10151
10152 * include/features.h (__GLIBC_MINOR__): It's glibc 2.5 now.
10153
101542006-10-06 Ulrich Drepper <drepper@redhat.com>
10155
10156 * po/pl.po: Update from translation team.
10157
10158 * nscd/nscd.c (main): Fix typo in message.
10159 Patch by Jakub Bogsz <qboosh@pld-linux.org>.
10160
97e57dee
UD
101612006-10-02 Jakub Jelinek <jakub@redhat.com>
10162
10163 [BZ #3291]
10164 * sysdeps/unix/sysv/linux/sparc/sparc64/pause.c: Include
10165 errno.h, signal.h, unistd.h and sysdep-cancel.h.
10166 (__sigprocmask): Define.
10167
768027a4
UD
101682006-10-02 Ulrich Drepper <drepper@redhat.com>
10169
10170 * elf/rtld.c (dl_main): Don't use prelinking if LD_DYNAMIC_WEAK is
10171 used.
10172
0b25a49a
UD
101732006-10-02 Jakub Jelinek <jakub@redhat.com>
10174
10175 * nscd/mem.c (mempool_alloc): Round array size to 16 bytes
10176 in oldtotal and newtotal calculation.
10177 * nscd/nscd-client.h (struct mapped_database): Add datasize
10178 field.
10179 * nscd/nscd_helper.c (get_mapping): Initialize datasize field.
10180 (__nscd_get_map_ref): Get a new mapping even if mapping's data_size
10181 increased.
10182 (__nscd_cache_search): Add checks to make sure we never reference
10183 data beyond the current mapping.
10184
a1286745
UD
101852006-10-02 Dmitry V. Levin <ldv@altlinux.org>
10186
d4ed7561
UD
10187 * sysdeps/posix/getaddrinfo.c (match_prefix): Make mask and val
10188 variables const to avoid compiler warnings.
10189
a1286745
UD
10190 * io/fts.c (fts_close): Remove redundant checks.
10191 (fts_build): Likewise.
10192 (fts_palloc): Likewise.
10193
10194 * manual/message.texi (Advanced gettext functions,
10195 Using gettextized software): Fix typos.
10196
f01e4069
UD
101972006-09-30 Ulrich Drepper <drepper@redhat.com>
10198
10199 * posix/glob.c (glob_in_dir): Add some comments and asserts to
10200 explain why there are no leaks.
10201
154619b5
UD
102022006-09-29 Ulrich Drepper <drepper@redhat.com>
10203
690c3947
UD
10204 * libio/wmemstream.c: Include <wchar.h>.
10205 * libio/bug-wmemstream1.c: Likewise.
10206 * libio/tst-wmemstream1.c: Likewise.
10207 * libio/tst-wmemstream2.c: Likewise.
10208
88cc61e8
UD
10209 * version.h (RELEASE): Bump to 2.5.
10210 * README: Regenerated.
10211
a70c18b0
UD
10212 * locale/iso-3166.def: Add Aaland Islands and Montenegro.
10213
154619b5
UD
10214 [BZ #3273]
10215 * nscd/nscd_initgroups.c (__nscd_getgrouplist): It is OK to have
10216 found no group members.
10217 Patch by Petr Baudis.
10218
102192006-09-29 Jakub Jelinek <jakub@redhat.com>
10220
10221 * elf/rtld.c (_dl_start_final): If not USE___THREAD, don't
10222 assert bootstrap_map.l_tls_modid is zero.
10223 (_dl_start): Initialize bootstrap_map.l_tls_modid to 0
10224 if USE___THREAD.
10225
1c31aa79
UD
102262006-09-27 Ulrich Drepper <drepper@redhat.com>
10227
10228 * libio/stdio.h: Move open_wmemstream prototype to ...
10229 * wcsmbs/wchar.h: ... here.
10230
f1122ec3
UD
102312006-09-25 Jakub Jelinek <jakub@redhat.com>
10232
10233 [BZ #3252]
10234 * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat): Handle only
10235 fchownat syscall and __ASSUME_LCHOWN_SYSCALL case inline, call
10236 __{,l}chown to handle the rest.
10237 * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Handle only
10238 fchownat syscall and __ASSUME_32BITUIDS case inline, call
10239 __{,l}chown to handle the rest.
10240 * sysdeps/unix/sysv/linux/sparc/sparc32/fchownat.c: Include
10241 i386/fchownat.c.
10242 * sysdeps/unix/sysv/linux/s390/s390-32/fchownat.c: Likewise.
10243 * sysdeps/unix/sysv/linux/sh/fchownat.c: Likewise.
10244
10245 [BZ #3253]
10246 * posix/glob.c (glob_in_dir): Don't alloca one struct globlink at a
10247 time, rather allocate increasingly bigger arrays of pointers, if
10248 possible with alloca, if too large with malloc.
10249
102502006-09-24 Jakub Jelinek <jakub@redhat.com>
10251
10252 * sysdeps/powerpc/fpu/libm-test-ulps: Updated.
10253
10254 * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Fix 2 typos.
10255
457b559e
UD
102562006-09-24 Ulrich Drepper <drepper@redhat.com>
10257
10258 * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Implement rule 4,
10259 home addresses.
10260 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Recognize
10261 IFA_F_HOMEADDRESS flag for interfaces.
10262 * include/ifaddrs.h (struct in6addrinfo): Define
10263 in6ai_homeaddress.
10264
4a132246
UD
102652006-09-21 Jakub Jelinek <jakub@redhat.com>
10266
10267 [BZ #3225]
10268 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (PTR_MANGLE3,
10269 PTR_DEMANGLE3): Define.
10270 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h (PTR_MANGLE3,
10271 PTR_DEMANGLE3): Likewise.
10272 * sysdeps/powerpc/powerpc32/__longjmp-common.S (__longjmp): Use them.
10273 * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp):
10274 Likewise.
10275 * sysdeps/powerpc/powerpc64/__longjmp-common.S (__longjmp): Likewise.
10276
c69136ae
UD
102772006-09-20 Jakub Jelinek <jakub@redhat.com>
10278
10279 * po/libc.pot: Regenerated.
10280 * po/be.po: Updated.
10281 * po/ca.po: Likewise.
10282 * po/cs.po: Likewise.
10283 * po/da.po: Likewise.
10284 * po/de.po: Likewise.
10285 * po/el.po: Likewise.
10286 * po/en_GB.po: Likewise.
10287 * po/es.po: Likewise.
10288 * po/fi.po: Likewise.
10289 * po/fr.po: Likewise.
10290 * po/gl.po: Likewise.
10291 * po/hr.po: Likewise.
10292 * po/hu.po: Likewise.
10293 * po/ja.po: Likewise.
10294 * po/ko.po: Likewise.
10295 * po/nb.po: Likewise.
10296 * po/nl.po: Likewise.
10297 * po/pl.po: Likewise.
10298 * po/pt_BR.po: Likewise.
10299 * po/ru.po: Likewise.
10300 * po/rw.po: Likewise.
10301 * po/sk.po: Likewise.
10302 * po/sv.po: Likewise.
10303 * po/tr.po: Likewise.
10304 * po/zh_CN.po: Likewise.
10305 * po/zh_TW.po: Likewise.
10306
10307 [BZ #3137]
10308 * iconv/iconv_prog.c (main): Fix spelling in error message.
10309 * iconv/iconvconfig.c (main): Likewise.
10310 * locale/programs/ld-collate.c (handle_ellipsis): Likewise.
10311 * locale/programs/ld-ctype.c (charclass_symbolic_ellipsis): Likewise.
10312 * locale/programs/localedef.c (main): Likewise.
10313 * locale/programs/repertoire.c (repertoire_read): Likewise.
10314 * timezone/zdump.c (main): Likewise.
10315 * nscd/connections.c (handle_request): Fix spelling in log message.
10316 Patch by Malcolm Parsons <malcolm.parsons@gmail.com>.
10317
83b3108c
UD
103182006-09-20 Ulrich Drepper <drepper@redhat.com>
10319
10320 * inet/inet6_option.c: Also emit linker warnings for the RFC 2292
10321 interfaces.
10322
89210b4c
AJ
103232006-09-20 Andreas Jaeger <aj@suse.de>
10324
10325 * math/libm-test.inc (lrint_test_upward): Fix typo.
10326
6624dbc0
UD
103272006-06-17 Joseph S. Myers <joseph@codesourcery.com>
10328
10329 [BZ #2592]
10330 * math/libm-test.inc (lrint_test_tonearest): New function.
10331 (lrint_test_towardzero): New function.
10332 (lrint_test_downward): New function.
10333 (lrint_test_upward): New function.
10334 (main): Run these new tests.
10335 * sysdeps/ieee754/dbl-64/s_llrint.c (__llrint): Correct rounding
10336 of values near to 0.
10337 (two52): Use double not long double.
10338 * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Likewise.
10339 * sysdeps/ieee754/flt-32/s_llrintf.c (__llrintf): Likewise.
10340 (two23): Use float not double.
10341 * sysdeps/ieee754/flt-32/s_lrintf.c (__lrintf): Likewise.
10342 (two23): Use float not double.
10343 * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl): Likewise.
10344 * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Likewise.
10345 * sysdeps/ieee754/ldbl-96/s_llrintl.c (__llrintl): Likewise.
10346 * sysdeps/ieee754/ldbl-96/s_lrintl.c (__lrintl): Likewise.
10347
60cb50c7
UD
103482006-09-20 Martin Schwidefsky <schwidefsky@de.ibm.com>
10349
10350 * sysdeps/unix/sysv/linux/s390/s390-32/makecontext.c (__makecontext):
10351 Cast sp to unsigned long to avoid compiler warning.
10352 Use __makecontext_ret function instead of a trampoline on the stack.
10353 (__makecontext_ret): New function.
10354 * sysdeps/unix/sysv/linux/s390/s390-64/makecontext.c: Likewise.
10355
33315ced
UD
103562006-09-19 Jakub Jelinek <jakub@redhat.com>
10357
10358 * elf/dl-cache.c (HWCAP_CHECK): If _DL_PLATFORMS_COUNT, but
10359 platform == -1, reject any libs with non-zero _DL_HWCAP_PLATFORM
10360 bits.
10361
1ee2ff20
UD
103622006-09-19 Ulrich Drepper <drepper@redhat.com>
10363
10364 * elf/dl-close.c (_dl_close): If dependency is not unloaded make
10365 sure no reference to the unloaded map's search list remains in the
10366 dependency's scope.
10367
103682006-09-16 Jakub Jelinek <jakub@redhat.com>
10369
10370 * elf/Makefile: Add rules to build and run unload7 test.
10371 * elf/unload7.c: New test.
10372 * elf/unload7mod1.c: New file.
10373 * elf/unload7mod2.c: New file.
10374
0466106e
UD
103752006-09-18 Jakub Jelinek <jakub@redhat.com>
10376
10377 * sysdeps/unix/sysv/linux/sys/ptrace.h (PT_GETEVENTMSG): Fix pasto.
10378 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h (PTRACE_SETOPTIONS,
10379 PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
10380 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h (PTRACE_SETOPTIONS,
10381 PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Likewise.
10382 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h (PTRACE_SETOPTIONS,
10383 PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Likewise.
10384 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h (PTRACE_SETOPTIONS,
10385 PTRACE_GETEVENTMSG): Likewise.
10386 (PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Change to the arch independent
10387 values.
10388
9c316a45
UD
103892006-09-17 Mike Frysinger <vapier@gentoo.org>
10390
0466106e
UD
10391 * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_SETOPTIONS,
10392 PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
10393 * sysdeps/unix/sysv/linux/ptrace.c (ptrace): Check PTRACE_SETOPTIONS,
10394 PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO and PTRACE_SETSIGINFO.
9c316a45
UD
10395
103962006-09-16 Jakub Jelinek <jakub@redhat.com>
10397
10398 * sysdeps/powerpc/powerpc32/register-dump.h (register_dump): Don't
10399 write '\0' to the fd.
10400 * sysdeps/mach/hurd/powerpc/register-dump.h (register_dump): Likewise.
10401 * sysdeps/powerpc/powerpc64/register-dump.h (register_dump): Likewise.
10402 Change regs to unsigned long pointer from unsigned int, fix fscr
10403 offset.
10404
fb146a76
UD
104052006-09-14 Jakub Jelinek <jakub@redhat.com>
10406
10407 * io/Makefile (CFLAGS-fstatat.c): Set.
10408 (CFLAGS-fstatat64.c): Likewise.
10409 (CFLAGS-mknodat.c): Likewise.
10410
10411 * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Comment fixes.
10412 * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
10413 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Rewritten.
10414 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Rewritten.
10415
4cd3633d
UD
104162006-09-14 Jakub Jelinek <jakub@redhat.com>
10417 Steven Munroe <sjmunroe@us.ibm.com>
fb146a76 10418
4cd3633d
UD
10419 * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add 4 new cap
10420 names to the beginning. Rename "cell" to "cellbe".
10421 (_dl_powerpc_platforms): New.
10422 * sysdeps/powerpc/dl-procinfo.h (_DL_HWCAP_FIRST): Decrease.
10423 (HWCAP_IMPORTANT): Remove power{4,5,5+} and cell.
10424 (_DL_PLATFORMS_COUNT, _DL_FIRST_PLATFORM): Define.
10425 (_DL_HWCAP_PLATFORM): Define to new mask.
10426 (_dl_platform_string, _dl_string_platform): New functions.
10427 * sysdeps/powerpc/sysdep.h (PPC_FEATURE_BOOKE, PPC_FEATURE_SMT,
10428 PPC_FEATURE_ICACHE_SNOOP, PPC_FEATURE_ARCH_2_05): Define.
10429
30aa5785
UD
104302006-09-12 Jakub Jelinek <jakub@redhat.com>
10431
10432 [BZ #2526]
10433 * README.libm: Fix a thinko in sqrt algorithm description.
10434
10435 [BZ #3143]
10436 * manual/string.texi (argz_delete): Fix prototype.
10437 Patch by <alpt@freaknet.org>.
10438
104392006-08-26 Joseph Myers <joseph@codesourcery.com>
10440
10441 [BZ #3138]
10442 * io/test-lfs.c (do_prepare): Give name_len type size_t.
10443 * io/tst-fcntl.c (do_prepare): Likewise.
10444 * posix/tst-exec.c (do_prepare): Likewise.
10445 * posix/tst-preadwrite.c (do_prepare): Likewise.
10446 * posix/tst-spawn.c (do_prepare): Likewise.
10447 * posix/tst-truncate.c (do_prepare): Likewise.
10448 * rt/tst-aio.c (do_prepare): Likewise.
10449 * rt/tst-aio64.c (do_prepare): Likewise.
10450 * stdlib/test-canon2.c (do_prepare): Give test_dir_len type
10451 size_t.
10452
d26d01d1
UD
104532006-09-09 Ulrich Drepper <drepper@redhat.com>
10454
41aba3d7
UD
10455 [BZ #2821]
10456 * time/mktime.c (guess_time_tm): Fix overflow detection.
10457 * time/Makefile (tests): Add bug-mktime1.
10458 * time/bug-mktime1.c: New file.
10459
eaa51b47 10460 [BZ #3189, #3188]
d26d01d1 10461 * misc/sys/mman.h (remap_file_pages): Make available for _GNU_SOURCE.
eaa51b47 10462 (mremap): Likewise.
d26d01d1 10463
ba40cc15
UD
104642006-09-07 Jakub Jelinek <jakub@redhat.com>
10465
2b6a801e
UD
10466 [BZ #1006]
10467 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela):
10468 Ensure relocation doesn't clobber any bits outside of the
10469 immediate field for R_SPARC_TLS_LE_HIX22, R_SPARC_WDISP30,
10470 R_SPARC_HI22 and R_SPARC_H44.
10471
469615bd
UD
10472 [BZ #2775]
10473 * malloc/malloc.c (sYSMALLOc): Only call grow_heap if
10474 (long) (MINSIZE + nb - old_size) is positive.
10475
10476 * malloc/arena.c (grow_heap): When growing bail even if new_size
10477 is negative.
10478
ba40cc15
UD
10479 [BZ #3155]
10480 * sysdeps/powerpc/powerpc32/fpu/s_lrint.S (__lrint): Don't access
10481 stack below r1.
10482
243b9ac1
UD
104832006-09-06 Jakub Jelinek <jakub@redhat.com>
10484
ba40cc15
UD
10485 * posix/regex_internal.c (re_string_reconstruct): Handle
10486 offset < pstr->valid_raw_len && pstr->offsets_needed case.
10487 Ensure no bytes read before raw_mbs array. Pass a saved copy of
10488 pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
10489 re_string_context_at.
10490 * posix/Makefile: Add rules to build and run bug-regex26 test.
10491 * posix/bug-regex26.c: New test.
10492
243b9ac1
UD
10493 * locale/programs/ld-collate.c (collate_read): Goto sym_equiv_free
10494 rather than col_sym_free. Move seqp declaration earlier.
10495
10496 * resolv/gai_suspend.c (gai_suspend): Make sure result is initialized.
10497
d052233c
UD
104982006-09-05 Jakub Jelinek <jakub@redhat.com>
10499
10500 * nscd/initgrcache.c (addinitgroupsX): Move any_success
10501 decl before first goto out.
10502
71213dc2
UD
105032006-09-04 Jakub Jelinek <jakub@redhat.com>
10504
10505 * Makerules (shlib.lds): If have-hash-style, put .hash section
10506 at the end of the RO segment.
10507
105082006-09-04 Ulrich Drepper <drepper@redhat.com>
10509
10510 * elf/do-lookup.h (do_lookup_x): Initialize symidx in case the new
10511 style hash table format is used.
10512
03eeff83
UD
105132006-09-04 Jakub Jelinek <jakub@redhat.com>
10514
10515 * resolv/res_mkquery.c (res_nmkquery): Set hp->id to statp->id after
10516 randomization rather than before.
10517 * resolv/res_init.c (res_randomid): Don't call gettimeofday here.
10518
b80770b2
UD
105192006-08-31 Jakub Jelinek <jakub@redhat.com>
10520
ba40cc15 10521 * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Add ld.so.
b80770b2
UD
10522
10523 * malloc/malloc.c (_int_malloc): Use full list insert and not
10524 shortcut which assumes the list is empty for large requests
10525 too.
10526
10527 * elf/tst-addr1.c (do_test): Allow i.dli_sname "_IO_printf".
10528
99ea5991
UD
105292006-08-30 Jakub Jelinek <jakub@redhat.com>
10530
10531 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (splice): Add offin
10532 and offout arguments to the prototype.
10533 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (splice): Likewise.
10534 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h (splice): Likewise.
10535 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (splice): Likewise.
10536 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h (splice): Likewise.
10537 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h (splice): Likewise.
10538 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (splice): Likewise.
10539 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h (splice): Likewise.
10540 * sysdeps/unix/sysv/linux/syscalls.list (splice): Adjust args string.
10541
4004a0a5
UD
105422006-08-28 Ulrich Drepper <drepper@redhat.com>
10543
950398e1
UD
10544 * elf/dl-load.c (_dl_init_paths): Expand DSTs.
10545
4004a0a5
UD
10546 * elf/dl-open.c (dl_open_worker): Allow $LIB and $PLATFORM in
10547 dlopen parameters.
10548
6e310111
UD
105492006-08-28 Jakub Jelinek <jakub@redhat.com>
10550
10551 * inet/getnameinfo.c (getnameinfo): For AF_INET, check errno
10552 only if herrno is NETDB_INTERNAL. Handle errors other than
10553 ERANGE outside of the loops, handle TRY_AGAIN.
10554
10555 * locale/programs/ld-ctype.c (translit_flatten): Issue error
10556 if other's ctype category was missing.
10557 * locale/programs/ld-collate.c (collate_read): Return if
10558 copy_locale's collate category is missing.
10559
07014fca
UD
105602006-08-27 Ulrich Drepper <drepper@redhat.com>
10561
10562 [BZ #2684]
10563 * malloc/malloc.c (public_rEALLOc): Try harder by using other
10564 arenas if allocation failed.
10565 Patch mostly by Jan Edler <jan.edler@indexengines.com>.
10566
71663747
UD
105672006-08-26 Ulrich Drepper <drepper@redhat.com>
10568
41999a1a
UD
10569 * malloc/malloc.c (bin_at): Rewrite to be more clear and to not
10570 waste bins[0..1].
10571 (malloc_state): Reduce bins size by 2.
10572 (_int_malloc): Fix test for large enough buffer for early termination.
10573 When no unsorted block matches perfectly and an exiting block has
10574 to be split, use full list insert and not shortcut which assumes
10575 the list is empty.
10576
71663747
UD
10577 * locale/programs/ld-ctype.c (ctype_read): Better patch for read
10578 failure.
10579
93b53ca2
UD
105802006-08-24 Ulrich Drepper <drepper@redhat.com>
10581
f5a82772
UD
10582 * locale/programs/ld-ctype.c (ctype_read): If CTYPE is NULL, don't
10583 do anything.
10584
2ac9ca73
UD
10585 * sysdeps/generic/ldsodefs.h (DL_ADDR_SYM_MATCH): For undefined
10586 symbol require exact match (these are PLTs).
10587 * sysdeps/unix/sysv/linux/powerpc/powerpc64/ldsodefs.h
10588 (_dl_ppc64_addr_sym_match): Likewise.
10589
93b53ca2
UD
10590 [BZ #2683]
10591 * elf/dl-addr.c (_dl_addr): Don't ignore all undefined symbols.
10592 If symbol has a value use it.
10593 * elf/tst-dladdr1.c: New file.
10594 * elf/Makefile: Add rules to build and run tst-addr1.
10595
7463d5cb
UD
105962006-08-24 Jakub Jelinek <jakub@redhat.com>
10597
10598 * malloc/malloc.c (sYSMALLOc): Avoid infinite loop if MMAP
10599 keeps failing and heap growth or new heap creation isn't
10600 successful either.
10601 * malloc/tst-malloc.c (main): Add new tests.
10602
542a6f62
UD
106032006-08-24 Ulrich Drepper <drepper@redhat.com>
10604
10605 [BZ #2734]
10606 * sysdeps/i386/bits/byteswap.h (__bswap_32): Use same conditions
10607 as in the x86-64 code to use bswap.
10608
aa2c6b6d
UD
106092006-05-21 Joseph S. Myers <joseph@codesourcery.com>
10610
24982798 10611 [BZ #2680]
aa2c6b6d
UD
10612 * posix/unistd.h (getlogin_r): Condition on __USE_POSIX199506, not
10613 __USE_UNIX98.
10614 * posix/bits/unistd.h: Likewise.
10615
59776aef
UD
106162006-05-15 Mike Frysinger <vapier@gentoo.org>
10617
10618 [BZ #2751]
10619 * string/strchr.c: Add cast to avoid warning.
10620
e404fb16
UD
106212006-08-21 Ulrich Drepper <drepper@redhat.com>
10622
10623 * malloc/malloc.c (DEFAULT_MMAP_THRESHOLD_MAX): For 32-bit
bd2c2341 10624 platforms define as 512K. For 64-bit platforms as 32MB. The lower
e404fb16
UD
10625 limit is needed to avoid the exploding of the address space
10626 requirement for secondary heaps.
10627 * malloc/arena.c (HEAP_MAX_SIZE): Define using
10628 DEFAULT_MMAP_THRESHOLD_MAX if it is defined.
10629
376e973a
UD
106302006-07-30 Joseph S. Myers <joseph@codesourcery.com>
10631
10632 [BZ #3018]
10633 * Makerules (depfiles): Handle extra-test-objs the same as
10634 extra-objs.
10635 (common-mostlyclean): Likewise.
10636 * dlfcn/Makefile (extra-objs): Add modules to extra-test-objs
10637 instead.
10638 * elf/Makefile (extra-objs): Likewise.
10639 * stdlib/Makefile (extra-objs): Likewise.
10640
240c62a7
UD
106412006-08-14 Eric Blake <ebb9@byu.net>
10642
10643 [BZ #3044]
10644 * misc/error.h: Assume C89 or better.
10645 * misc/error.c: Likewise.
10646
3997b7c4
UD
106472006-08-21 Ulrich Drepper <drepper@redhat.com>
10648
10649 [BZ #3040]
10650 * sysdeps/unix/sysv/linux/openat.c: Fix compilation if
10651 __ASSUME_ATFCTS is defined.
10652
8a6537b0
UD
106532006-08-19 Ulrich Drepper <drepper@redhat.com>
10654
72320021
UD
10655 * malloc/malloc.c (_int_malloc): Limit number of unsorted blocks
10656 to sort in each call.
10657
ed3691ba
UD
10658 * nis/nss_nis/nis-service.c (internal_nis_getservent_r): . If map
10659 is empty simply return and use next service.
10660 * nis/nss_nis/nis-rpc.c (internal_nis_getrpcent_r): Likewise.
10661
8a6537b0
UD
10662 * locale/programs/charmap.c (charmap_read): Add new parameter. It
10663 tells us when not finding a charmap file is an error.
10664 * locale/programs/charmap.h: Adjust charmap_read prototype.
10665 * iconv/iconv_prog.c (main): Tell charmap_read it's no error if we
10666 cannot find a charmap.
10667 * locale/programs/localedef.c (main): Adjust charmap_read call.
10668
ad2a3c07
UD
106692006-08-15 Jakub Jelinek <jakub@redhat.com>
10670
10671 * sysdeps/unix/sysv/linux/sparc/sparc64/pause.c: Use
10672 sysdeps/posix/pause.c implementation instead.
10673
106742006-08-09 Jakub Jelinek <jakub@redhat.com>
10675
10676 * sysdeps/unix/nice.c (nice): Transform EACCES errno from setpriority
10677 to EPERM.
10678
f17efcb4
UD
106792006-08-13 Andreas Schwab <schwab@suse.de>
10680
10681 * sysdeps/powerpc/powerpc32/dl-trampoline.S (_dl_runtime_resolve):
10682 Don't clobber caller's LRSAVE.
10683 (_dl_prof_resolve): Likewise.
10684
107b8a92
UD
106852006-08-14 Ulrich Drepper <drepper@redhat.com>
10686
10687 [BZ #1996]
10688 * libio/memstream.c (open_memstream): Allocate initial buffer with
10689 calloc.
10690 * libio/wmemstream.c (open_wmemstream): Likewise.
10691 * libio/strops.c: Pretty printing.
10692 (_IO_str_overflow): Clear uninitialized part of the new buffer.
10693 (enlarge_userbuf): New function.
10694 (_IO_str_seekoff): Call it if seek position is larger than current
10695 buffer.
10696 * libio/wstrops.c: Likewise.
10697 * libio/vasprintf.c: Add comment as to why we do not have to use
10698 calloc instead of malloc to allocate initial buffer.
10699 * libio/Makefile (tests): Add bug-memstream1 and bug-wmemstream1.
10700 * libio/bug-memstream1.c: New file.
10701 * libio/bug-wmemstream1.c: New file.
10702
fa3ac53f
UD
107032006-08-13 Ulrich Drepper <drepper@redhat.com>
10704
89993734
UD
10705 * libio/wstrops.c: Remove dead macro definitions and comments.
10706 * libio/strops.c: Likewise.
10707
fa3ac53f
UD
10708 [BZ #2764]
10709 * login/utmpname.c (__utmpname): Remove unnecessary test.
10710
f99ed760
UD
107112006-06-08 Joseph Myers <jsm28@gcc.gnu.org>
10712
10713 [BZ #2832]
10714 * math/gen-libm-test.pl (clean_up_number): Do not remove trailing
10715 0s from integers.
10716
107172006-08-13 Ulrich Drepper <drepper@redhat.com>
10718
10719 [BZ #2987]
10720 * sysdeps/unix/sysv/linux/clock_settime.c: Add code to use syscall
10721 for CPU clocks.
10722 * sysdeps/unix/clock_settime.c: Add support for platform-specific
10723 setting of CPU clocks.
10724
4c3f81d0
UD
107252006-06-23 Paul Eggert <eggert@cs.ucla.edu>
10726
10727 [BZ #2841]
10728 * sysdeps/generic/stdint.h (UINT8_C, UINT16_C): Don't append 'U',
10729 since C99 requires the result to promote to 'int' when uint_least8_t
10730 and uint_least16_t promote to 'int'.
10731
cd8e60ce
UD
107322006-08-12 Ulrich Drepper <drepper@redhat.com>
10733
9a5c46e8
UD
10734 [BZ #3013]
10735 * locale/programs/ld-ctype.c (ctype_output): Adjust alignments, fix
10736 lenght of one output field, correct bitmask creation.
10737 * locale/programs/ld-time.c: Add alignment.
10738
cd8e60ce
UD
10739 [BZ #2997]
10740 * misc/error.c: Add space between program name and message if file
10741 name is missing.
10742
9a528884
UD
107432006-08-03 Eric Blake <ebb9@byu.net>
10744
10745 [BZ #2998]
10746 * misc/error.c (error_tail) [_LIBC]: Avoid invalid free.
10747
1d05c2fb
UD
107482006-08-09 Ulrich Drepper <drepper@redhat.com>
10749
0c1c6c6c
UD
10750 * malloc/memusagestat.c: Silence warnings.
10751
1d05c2fb
UD
10752 * malloc/malloc.c: Dynamically size mmap treshold if the program
10753 frees mmaped blocks.
10754 Patch by Valerie Henson and Arjan van de Ven.
10755
2d1e6277
UD
107562006-08-08 Jakub Jelinek <jakub@redhat.com>
10757
be7ffd91
UD
10758 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (O_DIRECT): Protect with
10759 __USE_GNU.
10760
2d1e6277
UD
10761 * stdlib/strtol_l.c (__strtol_ul_max_tab, __strtol_ul_rem_tab,
10762 __strtol_ull_max_tab, __strtol_ull_rem_tab): Declare.
10763 (DEF): Don't put the var into .gnu.linkonce.r.* section.
10764 Only provide var definitions in strtol_l (or for *ull*
10765 in strtoll_l).
10766
10767 * stdio-common/bug16.c (tests): New array.
10768 (do_tests): Allow the first hexadecimal digit
10769 to be 1, 2, 4 or 8. Do 3 additional tests.
10770
10771 * sysdeps/s390/fpu/libm-test-ulps: Update.
10772
10773 * sysdeps/unix/sysv/linux/s390/s390-32/fchownat.c (fchownat): Use
10774 fchownat syscall if available.
10775 * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat): Likewise.
10776 * sysdeps/unix/sysv/linux/sh/fchownat.c (fchownat): Likewise.
10777 * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Likewise.
10778
d0ccde25
UD
107792006-08-07 Ulrich Drepper <drepper@redhat.com>
10780
10781 * nis/nis_xdr.c: Avoid some function calls.
10782
13a0293d 107832006-08-07 Jakub Jelinek <jakub@redhat.com>
3f7a21a9 10784 Ulrich Drepper <drepper@redhat.com>
13a0293d
UD
10785
10786 * nis/nis_call.c (rec_dirsearch) [case LOWER_NAME]: Don't take
10787 short cut if only one name component is stripped away.
10788
bd1ebae0
UD
107892006-08-07 Ulrich Drepper <drepper@redhat.com>
10790
10791 * nis/nis_call.c: Minor cleanups throughout.
2d1e6277 10792 (rec_dirsearch) [case HIGHER_NAME]: Correctly size ndomain array.
bd1ebae0
UD
10793 (first_shoot): Add search_parent_first parameter. Only if it is set
10794 search parent server first.
10795 If directory for table found through cold start cache is not the same
10796 as referenced in the cache, don't use it.
10797 (__nisfind_server): Take additional parameter. Pass it on to
10798 first_shoot.
10799 (__prepare_niscall): Adjust __nisfind_server call.
10800 * nis/rpcsvc/nislib.h: Adjust __nisfind_server prototype.
10801 * nis/nis_table.c: Adjust __nisfind_server call.
10802 * nis/nis_lookup.c: Likewise.
10803 (nis_lookup): Don't loop endlessly if name is reduced to ".".
10804
f1762c0c
UD
108052006-08-03 Ulrich Drepper <drepper@redhat.com>
10806
fe710250
UD
10807 [BZ #2182]
10808 * math/s_cacosh.c: Return values from positive branch.
10809 * math/s_cacoshf.c: Likewise.
10810 * math/s_cacoshl.c: Likewise.
10811
a5852807
UD
10812 [BZ #2883]
10813 * sysvipc/sys/msg.h: Change return value to ssize_t.
10814 * sysdeps/unix/sysv/linux/msgrcv.c: Likewise.
fe710250
UD
10815 * sysvipc/msgrcv.c: Likewise.
10816 * include/sys/msg.h: Likewise.
39571a13 10817
6c215a8d
UD
10818 * grp/initgroups.c (internal_getgrouplist): Remove unnecessary
10819 test introduced in patch for bz #661.
39571a13 10820 (getgrouplist): Simplify code a bit. Don't allocate one additional
f13bfdd0 10821 element for NEWGROUPS.
6c215a8d 10822
9c06eb66
UD
10823 [BZ #2908]
10824 * stdio-common/printf_fphex.c (__printf_fphex): When rounding up
10825 'f', use '1' as leading digit not '\1'.
10826 * stdio-common/Makefile (tests): Add bug16.
10827 * stdio-common/bug16.c: New file.
10828
10829 [BZ #2914]
10830 * sysdeps/unix/sysv/linux/gethostid.c: Don't define OLD_HOSTIDFILE
10831 and don't try to open it. The patch introducing the macro
10832 contained a bug and used the same file name as the new file
10833 instead of using /var/adm/hostid. Nobody complaint so I'm taking
10834 this out completely.
10835
10836 [BZ #2926]
10837 * assert/assert.h: Move cast to void inside ?: to quiet gcc.
10838 Patch by Jerry James <Jerry.James@usu.edu>.
10839
f1762c0c
UD
10840 * rt/Makefile (tests): Add tst-clock2.
10841 * rt/tst-clock2.c: New file.
10842
10843 [BZ #2978]
10844 * resolv/gai_notify.c (__gai_notify_only): Copy memory for thread
10845 function and its parameters and pass it to new thread.
10846 (__gai_notify): Add support for alternative waiting for completion.
10847 * resolv/gai_suspend.c (gai_suspend): Add support for alternative
10848 waiting for completion.
10849 * resolv/getaddrinfo_a.c: Likewise.
10850 * resolv/gai_misc.h (struct waitlist): Don't add cond if alternative
10851 waiting for completion is used.
10852 * resolv/gai_misc.c: Allow overwriting code to start helper thread.
10853 * resolv/gai_cancel.c: Include <gai_misc.h> not "gai_misc.h".
10854 * resolv/gai_error.c: Likewise.
10855 * resolv/gai_sigqueue.c: Likewise.
10856
83ae6b40
RM
108572006-08-02 Thomas Schwinge <tschwinge@gnu.org>
10858
0e4e62fe 10859 * hurd/getdport.c (__getdport): Don't return EBADF; instead set
f1762c0c 10860 errno to EBADF and return MACH_PORT_NULL.
83ae6b40 10861
82ee37c5
UD
108622006-06-23 Joseph Myers <joseph@codesourcery.com>
10863
10864 [BZ #2980]
f1762c0c 10865 * posix/Makefile (CFLAGS-waitid.c): Add -fasynchronous-unwind-tables.
82ee37c5
UD
10866
108672006-08-02 Ulrich Drepper <drepper@redhat.com>
10868
10869 * elf/dl-addr.c (_dl_addr): If GNU-style hash tables are present,
10870 walk them instead of the symbol table.
10871
7bb1b2c9
UD
108722006-08-01 Ulrich Drepper <drepper@redhat.com>
10873
f13bfdd0 10874 [BZ #2098]
fbbc73b3
UD
10875 * nscd/initgrcache.c (addinitgroupsX): Judge successful lookups by
10876 status of NSS calls, not the number of returned entries.
10877
a4518922
UD
10878 * sysdeps/unix/sysv/linux/syscalls.list: Remove add_key,
10879 request_key, keyctl.
7bb1b2c9 10880
b06e7e9a
UD
108812006-07-31 Ulrich Drepper <drepper@redhat.com>
10882
10883 * sysdeps/unix/sysv/linux/dl-osinfo.h: Remove unnecessary include.
10884
f1227969
UD
108852006-07-16 Jeff Bailey <jbailey@ubuntu.com>
10886
10887 * elf/tst-auditmod1.c: Fix typo in #error.
10888
82ae2712
UD
108892006-07-31 Ulrich Drepper <drepper@redhat.com>
10890
f1227969
UD
10891 * elf/tst-auditmod1.c: Remove code for unsupported architectures.
10892
82ae2712
UD
10893 * iconvdata/run-iconv-test.sh: Run cmp in C locale.
10894
a1260d92
UD
108952006-07-20 Adam Nemet <anemet@caviumnetworks.com>
10896
10897 * stdlib/test-canon.c (do_test): Close fd before unlinking file so
b06e7e9a 10898 that the directory is empty even on non-POSIX filesystems.
a1260d92 10899
d2de41fe
UD
109002006-07-31 Ulrich Drepper <drepper@redhat.com>
10901
13669f2c
UD
10902 * elf/dl-open.c (dl_open_worker): Add branch prediction.
10903
d2de41fe
UD
10904 * nis/nss_compat/compat-grp.c: Avoid unnecessary setgrent calls into
10905 the backend NSS module. If backend setgrent call failed, don't have
10906 internal_setgrent fail. Just remember this until it is needed.
10907 * nis/nss_compat/compat-pwd.c: Likewise.
10908 * nis/nss_compat/compat-spwd.c: Likewise.
10909
b894c2ea
RM
109102006-07-30 Roland McGrath <roland@redhat.com>
10911
10912 * sysdeps/unix/sysv/linux/ia64/sigsuspend.c: File removed.
10913 * sysdeps/unix/sysv/linux/x86_64/sigsuspend.c: File removed.
10914 * sysdeps/unix/sysv/linux/s390/s390-64/sigsuspend.c: File removed.
10915 * sysdeps/unix/sysv/linux/sparc/sparc64/sigsuspend.c: File removed.
10916
10917 * sysdeps/unix/sysv/linux/not-cancel.h (pause_not_cancel): New macro.
10918 (nanosleep_not_cancel): New macro.
10919 (sigsuspend_not_cancel): new macro.
10920 * sysdeps/unix/sysv/linux/sigsuspend.c [__ASSUME_REALTIME_SIGNALS]
10921 (do_sigsuspend): Define as inline.
10922 (__sigsuspend): Always use do_sigsuspend.
10923 [! NO_CANCELLATION] (__sigsuspend_nocancel): New function.
10924 * include/signal.h: Declare __sigsuspend_nocancel.
10925 * sysdeps/posix/pause.c
10926 [! NO_CANCELLATION] (__pause_nocancel): New function.
10927
10928 * include/unistd.h (__pause_nocancel): Add attribute_hidden.
10929 * include/time.h (__nanosleep_nocancel): Likewise.
10930
c10d32c8
UD
109312006-07-30 Ulrich Drepper <drepper@redhat.com>
10932
10933 * locale/programs/localedef.c (add_to_readlist): Rename local
10934 variables to avoid confusion.
10935
10936 * locale/programs/charmap.c (charmap_read): Emit error message if
10937 charmap couldn't be found or read.
10938
6822f056
UD
109392006-07-28 Ulrich Drepper <drepper@redhat.com>
10940
d5ba53f9
UD
10941 * sysdeps/unix/sysv/linux/kernel-features.h: Define
10942 __ASSUME_FUTEX_LOCK_PI.
10943 * include/time.h: Declare __nanosleep_nocancel.
10944 * include/unistd.h: Declare __pause_nocancel.
10945
6822f056
UD
10946 * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Use this instead of
10947 LDFLAGS. Add -lgcc_eh and libc_nonshared (again) to make sure we
10948 get the __stack_chk_fail_local definition when it's needed.
10949
3a975ff5
UD
109502006-07-26 Ulrich Drepper <drepper@redhat.com>
10951
6de1f625
UD
10952 * dlfcn/Makefile: Add rules to build and run bug-atexit3.
10953 * dlfcn/bug-atexit3.c: New file.
10954 * dlfcn/bug-atexit3-lib.cc: New file.
10955
3a975ff5
UD
10956 * dlfcn/dlmopen.c (dlmopen_doit): Don't allow RTLD_GLOBAL to be
10957 used when the namespace is not the base namespace.
10958
a92b1166
UD
109592006-07-26 Gavin Romig-Koch <gavin@redhat.com>
10960
10961 * stdlib/cxa_atexit.c (__new_exitfn_called): New variable.
10962 (__new_exitfn): Bump it in every successful call.
10963 * stdlib/cxa_finalize.c (__cxa_finalize): If destructor registered
10964 more exit handlers, call them right away.
10965 * stdlib/exit.h: Declare __new_exitfn_called.
10966
a08336fb
UD
109672006-07-25 Ulrich Drepper <drepper@redhat.com>
10968
bd3754dc
UD
10969 * stdlib/cxa_finalize.c (__cxa_finalize): Fix race condition when
10970 calling registered handler.
10971
a08336fb
UD
10972 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Fix comment.
10973 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
10974 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
10975 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
10976 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
10977 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
10978 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
10979 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
10980
871b9158
UD
109812006-07-10 Ulrich Drepper <drepper@redhat.com>
10982
10983 * elf/dl-lookup.c (dl_new_hash): New functions.
10984 (_dl_lookup_symbol_x): Rename hash to old_hash and don't compute
10985 value here. Compute new-style hash value. Pass new hash value
10986 and reference to variable with the old value to do_lookup_x.
10987 (_dl_setup_hash): If DT_GNU_HASH is defined, use it and not
10988 old-style hash table.
10989 (_dl_debug_bindings): Pass new hash value and reference to variable
10990 with the old value to do_lookup_x.
10991 * elf/do-lookup.h (do_lookup_x): Accept additional parameter with
10992 new-style hash value and change old-style hash value parameter to
10993 be a reference. Reoganize functions to determine whether
10994 new-style hash table is available. Only fall back on old-style
10995 table. If old-style hash value is needed, compute it here.
10996 * elf/dynamic-link.h (elf_get_dynamic_info): Relocate DT_GNU_HASH
10997 entry.
10998 * elf/elf.h: Define SHT_GNU_HASH, DT_GNU_HASH, DT_TLSDEC_PLT,
10999 DT_TLSDEC_GOT. Adjust DT_ADDRNUM.
11000 * include/link.h (struct link_map): Add l_gnu_bitmask_idxbits,
11001 l_gnu_shift, l_gnu_bitmask, l_gnu_buckets and l_gnu_chain_zero.
11002 * Makeconfig: If linker supports --hash-style option add it to all
11003 linker command lines to build DSOs.
11004 * config.make.in: Define have-hash-style.
11005 * configure.in: Test whether linker supports --hash-style option.
11006
11007 * elf/dl-misc.c (_dl_name_match_p): Make MAP parameter const.
11008 * sysdeps/generic/ldsodefs.h: Adjust prototype.
11009
a1f0de82
UD
110102006-06-27 Ulrich Drepper <drepper@redhat.com>
11011
361a3706
UD
11012 * elf/dl-load.c (open_path): Fix test to determine whether DSO is
11013 auditing.
11014
a1f0de82
UD
11015 * elf/dl-load.c (_dl_map_object): Try harder to avoid looking at
11016 RPATH of main map twice.
11017
4259230f
UD
110182006-06-22 Ulrich Drepper <drepper@redhat.com>
11019
11020 * intl/dcigettext.c (DCIGETTEXT): If _nl_find_msg returns -1 don't
11021 look further, return original strings.
11022 (_nl_find_msg): Do not return found translation if the conversion
11023 failed. Either signal the string is unusable or that something went
11024 wrong and the original should be used.
11025
110262006-06-21 Ulrich Drepper <drepper@redhat.com>
11027
11028 * string/_strerror.c (__strerror_r): Add __builtin_expect.
11029
f9b7a98b
UD
110302006-06-14 Jakub Jelinek <jakub@redhat.com>
11031
11032 [BZ #2766]
11033 * misc/insremque.c (insque): Handle prev == NULL.
11034 * misc/Makefile (tests): Add tst-insremque.
11035 * misc/tst-insremque.c: New test.
11036
ac55a25b
UD
110372006-06-17 Ulrich Drepper <drepper@redhat.com>
11038
11039 [BZ #2792]
11040 * elf/dl-deps.c (expand_dst): Rename __cnt variable to not
11041 conflict with DL_DST_REQUIRED.
11042
02f366b3
UD
110432006-06-16 Ulrich Drepper <drepper@redhat.com>
11044
11045 * nis/nis_subr.c (nis_getnames): Fix the implementation to better
11046 match what Solaris does.
11047
9009e8f8
UD
110482006-06-04 Ulrich Drepper <drepper@redhat.com>
11049
1b8373f4
UD
11050 * sysdeps/posix/spawni.c (__spawni): Use local_seteuid and
11051 local_setegid instead of seteuid and setegid.
11052 * sysdeps/generic/local-setxid.h: New file.
11053 * sysdeps/unix/sysv/linux/local-setxid.h: New file.
11054
7231452e
UD
11055 * sysdeps/posix/spawni.c (__spawni): Use non-cancelable interfaces.
11056
9009e8f8 11057 * string/Makefile (tests): Add bug-envz1.
02f366b3 11058 * string/bug-envz1.c: New file.
9009e8f8 11059
33e63e79
UD
110602006-06-02 Jakub Jelinek <jakub@redhat.com>
11061
11062 * posix/regex_internal.c (re_string_skip_chars): If no character has
11063 been converted at all, set *last_wc to WEOF. If mbrtowc failed, set wc
11064 to the byte which couldn't be converted.
11065 (re_string_reconstruct): Don't clear valid_raw_len before calling
11066 re_string_skip_chars. If wc is WEOF after re_string_skip_chars, set
11067 tip_context using re_string_context_at.
11068 * posix/Makefile: Add rules to build and run bug-regex25 test.
11069 * posix/bug-regex25.c: New test.
11070
fdc02996
UD
110712006-06-02 Ryan S. Arnold <rsa@us.ibm.com>
11072
11073 [BZ #2703]
11074 * string/envz.c (envz_strip): Correct erroneously reversed src
11075 and dest parameters to memmove() invocation.
11076
902c4291
UD
110772006-05-30 Jakub Jelinek <jakub@redhat.com>
11078
11079 * nscd/nscd.h (prune_cache): Add fd argument to prototype.
11080 * nscd/nscd.c (parse_opt): Read response from INVALIDATE request
11081 to make sure the database has been already invalidated.
11082 * nscd/cache.c (prune_cache): Add fd argument. Write response to fd
11083 after the cache has been invalidated. Use pthread_mutex_lock rather
11084 than pthread_mutex_trylock if fd != -1.
11085 * nscd/connections.c (invalidate_cache): Add fd argument, write
11086 response to fd if not calling prune_cache, pass fd to prune_cache.
11087 (handle_request): Adjust invalidate_cache caller.
11088 (nscd_run): Pass -1 as fd to prune_cache.
11089
ecc68568
UD
110902006-05-30 Ulrich Drepper <drepper@redhat.com>
11091
11092 * sysdeps/posix/getaddrinfo.c (gaiconf_init): Initialize bits in
11093 the correct place.
11094
9636a217
UD
110952006-05-29 Ulrich Drepper <drepper@redhat.com>
11096
11097 * nscd/nscd.h (struct database_dyn): Add prunelock field.
11098 * nscd/cache.c (prune_cache): Take prunelock before starting the
11099 work. Just return in case it is already taken.
cabfcde1 11100 * nscd/connections.c (dbs): Initialize .prunelock.
9636a217 11101
6bcb494a
UD
111022006-05-25 Ulrich Drepper <drepper@redhat.com>
11103
672d5a63 11104 * nis/nis_removemember.c (nis_removemember): Avoid unnecessary
ecc68568 11105 copying. No need to allocate new array for group members. Just
672d5a63
UD
11106 move the pointers and update the size.
11107
1663b44f
UD
11108 * nis/nis_addmember.c (nis_addmember): Avoid unnecessary copying.
11109 Avoid memory leak in case realloc fails. Simplification for
11110 better code generation.
11111
11112 Avoid deprecation warning because of libc_hidden_proto for
11113 inet6_option_alloc.
11114 * inet/inet6_option.c (option_alloc): Renamed from
11115 inet6_option_alloc. Made static.
9636a217 11116 (inet6_option_alloc): Now a simple wrapper around option_alloc.
1663b44f
UD
11117 (inet6_option_append): Call option_alloc.
11118 * include/netinet/in.h: Remove libc_hidden_proto for
11119 inet6_option_alloc.
11120
6bcb494a
UD
11121 * nis/nis_callback.c (__nis_create_callback): Always call xdr_free
11122 for cleanup when cb!=NULL [Coverity CID 233].
11123
aec6b246
UD
111242006-05-24 Ulrich Drepper <drepper@redhat.com>
11125
07bfff20
UD
11126 [BZ #2693]
11127 * inet/Makefile (routines): Add inet6_opt and inet6_rth.
11128 * inet/Versions (libc, GLIBC_2.5): Add inet6_opt_init,
11129 inet6_opt_append, inet6_opt_finish, inet6_opt_set_val, inet6_opt_next,
11130 inet6_opt_find, inet6_opt_get_val, inet6_rth_space, inet6_rth_init,
11131 inet6_rth_add, inet6_rth_reverse, inet6_rth_segments,
11132 and inet6_rth_getaddr.
11133 * inet/netinet/ip6.h (struct ip6_rthdr0): Make ip6r0_addr a flexible
11134 array.
11135 * inet/netinet/in.h (struct ip6_mtuinfo): Define.
11136 Mark inet6_option_* interfaces as deprecated.
11137 Declare inet6_opt_init, inet6_opt_append, inet6_opt_finish,
11138 inet6_opt_set_val, inet6_opt_next, inet6_opt_find, inet6_opt_get_val,
11139 inet6_rth_space, inet6_rth_init, inet6_rth_add, inet6_rth_reverse,
11140 inet6_rth_segments, and inet6_rth_getaddr.
11141 * inet/inet6_opt.c: New file.
11142 * inet/inet6_rth.c: New file.
11143
11144 * inet/netinet/icmp6.h: Pretty printing.
11145
aec6b246
UD
11146 [BZ #2683]
11147 * elf/dl-addr.c (_dl_addr): Don't match undefined references.
11148
2d571cd1
UD
111492006-05-23 Ulrich Drepper <drepper@redhat.com>
11150
062e719b
UD
11151 * nis/nis_lookup.c (nis_lookup): Use __prepare_niscall instead of
11152 doing it all here. When server does not know the answer do not
11153 fail immediate, try parent first.
11154
2d571cd1
UD
11155 * nis/nis_domain_of_r.c (nis_domain_of_r): Add missing buffer
11156 overflow test.
11157
a17fa610
UD
111582006-05-20 Ulrich Drepper <drepper@redhat.com>
11159
11160 * nis/nis_call.c (__prepare_niscall): New function. Split out
11161 from __do_niscall.
11162 * nis/nis_table.c (__create_ib_request): Renamed from create_ib_request
11163 and exported.
11164 (__follow_path): New function. Split out from nis_list.
11165 * nis/nis_xdr.h: Add libnsl_hidden_proto for _xdr_ib_request and
11166 _xdr_nis_result.
11167 * nis/nis_xdr.c: Add libnsl_hidden_def for _xdr_ib_request and
11168 _xdr_nis_result.
11169 * nis/libnsl.h: Declare __prepare_niscall, __create_ib_request,
11170 and __follow_path.
11171 * nis/Versions: Export __prepare_niscall, __create_ib_request,
11172 __follow_path, __do_niscall3, _xdr_ib_request, and _xdr_nis_result
11173 from libnsl for version GLIBC_PRIVATE.
11174 * nis/nisplus-parser.h: Remove _nss_nisplus_parse_pwent_chk.
11175 Remove entry parameter from _nss_nisplus_parse_pwent and
11176 _nss_nisplus_parse_grent.
11177 * nis/nss_nisplus/nisplus-parser.c: Likewise.
11178 * nis/nss_nisplus/nisplus-pwd.c: Remove support for SETENT_BATCH_READ
11179 again. Rewrite getpwent handling to not use nis_first_entry and
11180 nis_next_entry. Roll out own niscall handling.
11181 * nis/nss_nisplus/nisplus-grp.c: Likewise.
11182
11183 * sunrpc/xdr_rec.c: Fix typo in comment.
11184
429bb183
UD
111852006-05-19 Ulrich Drepper <drepper@redhat.com>
11186
1d4f062a
UD
11187 * nis/nis_call.c (__do_niscall3): Avoid code duplication in error
11188 handling.
11189
101cc598
UD
11190 * nis/nis_callback.c (internal_nis_do_callback): Don't use malloc
11191 to allocate memory for my_pollfd. Better initialization of
11192 cb_is_running. Use TEMP_FAILURE_RETRY.
11193
f50fa10c
UD
11194 * malloc/memusage.sh (memusageso): Add quotes.
11195 (memusagestat): Likewise.
11196 * debug/xtrace.sh (pcprofileso): Likewise.
11197 (pcprofiledump): Likewise.
11198 * debug/Makefile ($(objpfx)xtrace): Use $LIB in SLIBDIR
11199 replacement.
11200 * malloc/Makefile ($(objpfx)memusage): Likewise.
11201
882bfe73
UD
11202 * nis/nis_callback.c (__nis_create_callback): Calls to
11203 svcudp_bufcreate and svctcp_create can fail. Free ->xprt if
11204 asprintf call fails.
11205
429bb183
UD
11206 * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_sendreq): Make sure
11207 no uninitialized memory is passed to sendto.
11208
f90de831
UD
112092006-05-18 Ulrich Drepper <drepper@redhat.com>
11210
11211 * nis/nis_callback.c (__nis_create_callback): Use asprinf instead
11212 of snprintf+strdup. Handle OOM.
11213 * nis/nis_callback.c (__nis_create_callback): Allocate cb and
11214 cb->serv together. Remove now obsolete free calls.
11215 (__nis_destroy_callback): Remove now obsolete free call.
11216
a17fa610 112172006-05-18 David Woodhouse <dwmw2@redhat.com>
6e2a7825
UD
11218
11219 * sysdeps/posix/getaddrinfo.c: Add unique labels to the default
11220 RFC3484 precedence table for fec0::/10 and fc00::/7 (site-local
11221 and ULA respectively). Set precedence for IPv4 address to 10 as
11222 defined in RFC3484 for preferring IPv6.
11223 * posix/gai.conf: Update to match the new default tables.
11224
758b9d7e
UD
112252006-05-18 Jakub Jelinek <jakub@redhat.com>
11226
11227 * nis/nss_compat/compat-pwd.c (internal_setpwent): If nss_set*ent
11228 returned NSS_STATUS_UNAVAIL, still return NSS_STATUS_SUCCESS.
11229 * nis/nss_compat/compat-spwd.c (internal_setspent): Likewise.
11230 * nis/nss_compat/compat-grp.c (internal_setgrent): Likewise.
11231
11232 * nis/nss_compat/compat-initgroups.c (nss_setgrent, nss_endgrent):
11233 Removed.
11234 (init_nss_interface): Remove initialization of these variables.
11235
112362006-05-18 Ulrich Drepper <drepper@redhat.com>
11237
11238 * nis/nis_call.c (rec_dirsearch): Little optimization: pull
11239 nis_free_directory forward to avoid duplication.
11240
388c779e
UD
112412006-05-17 Ulrich Drepper <drepper@redhat.com>
11242
5f1724bf
UD
11243 * nis/nis_call.c (rec_dirsearch): Handle __nis_finddirectory and
11244 rec_dirsearch returning NULL.
11245 (first_shoot): Handle __nis_finddirectory returning NULL.
11246 (__nisfind_server): Fix leak when rec_dirsearch returns NULL.
11247
388c779e
UD
11248 * sysdeps/unix/sysv/linux/sys/inotify.h: Define IN_CLOSE, IN_MOVE,
11249 IN_ONLYDIR, IN_DONT_FOLLOW, and IN_MASK_ADD.
11250
360d5cf4
UD
112512006-05-17 Jakub Jelinek <jakub@redhat.com>
11252
11253 * sunrpc/key_call.c (getkeyserv_handle): Call auth_destroy if
11254 pid changed.
11255
88dbff8c
UD
112562006-05-15 Ulrich Drepper <drepper@redhat.com>
11257
6f8a7dff
UD
11258 * include/rpc/pmap_prot.h: Mark all functions as hidden.
11259
11260 * nscd/nscd_initgroups.c: Mark __gr_map_handle as hidden.
11261 * nscd/nscd_getgr_r.c: Likewise.
11262
11263 * include/rpc/pmap_rmt.h: Mark all functions as hidden.
11264
11265 * nscd/nscd_getai.c (__hst_map_handle): Mark as hidden.
11266 * nscd/nscd_gethst_r.c (__hst_map_handle): Likewise.
11267
11268 * stdlib/longlong.h (__clz_tab): Mark as hidden.
11269
11270 * iconv/gconv_int.h: Mark __gconv_lock as hidden.
11271
360d5cf4 11272 * include/rpc/key_prot.h: Mark all _internal functions as hidden.
8263ed62
UD
11273
11274 * include/rpc/auth.h: Mark xdr_des_block_internal and
11275 xdr_opaque_auth_internal as hidden.
11276
11277 * sysdeps/unix/sysv/linux/getdents.c: Mark __have_no_getdents64 as
11278 hidden.
11279
360d5cf4 11280 * include/rpc/xdr.h: Mark all _internal functions as hidden.
8263ed62 11281
02264020
UD
11282 * misc/getusershell.c (okshells): Don't use static initializers,
11283 do it dynamically.
11284
fd5ea238
UD
11285 * stdlib/fmtmsg.c (keywords): Change type of len element to
11286 uint32_t to not waste space on 64bit machines.
11287
9446614c
UD
11288 * locale/setlocale.c: Change _nl_category_names into a string.
11289 Add new _nl_category_name_idxs. Change all users.
11290 * locale/localeinfo.h: Adjust declaration of _nl_category_names.
11291 Declare _nl_category_name_idxs.
11292 * locale/findlocale.c: Adjust for _nl_category_names change.
11293 * locale/loadlocale.c: Likewise.
11294 * locale/newlocale.c: Likewise.
11295 * intl/dcigettext.c: Likewise.
11296
88dbff8c
UD
11297 * iconv/gconv_conf.c (add_alias): Move actual alias handling to...
11298 (add_alias2): ...here. New function.
11299 (__gconv_read_conf): Simplify builtin alias handling.
11300 (builtin_aliases): Convert to string to avoid relocations.
11301 * iconv/gconv_builtin.h: Add comment about correct formatting.
11302
4442d58f
UD
113032006-05-15 Jakub Jelinek <jakub@redhat.com>
11304
11305 * resolv/res_debug.c (loc_ntoa): Make error const.
11306
113072006-05-14 Andreas Schwab <schwab@suse.de>
11308
11309 * math/complex.h [__LDBL_COMPAT]: Use __REDIRECT_NTH.
11310
113112006-05-12 Jakub Jelinek <jakub@redhat.com>
11312
11313 * sysdeps/unix/sysv/linux/sched_getaffinity.c: Include sys/param.h.
11314 (__sched_getaffinity_new): Don't crash if cpusetsize is smaller than
11315 sizeof (cpu_set_t).
11316
a51752b6
UD
113172006-05-11 Ulrich Drepper <drepper@redhat.com>
11318
5d3fd1f6
UD
11319 * resolv/res_debug.c (loc_ntoa): Define error as array, not pointer.
11320
08cfb839
UD
11321 * include/arpa/nameser.h: Declare _ns_flagdata as hidden.
11322
4b481a15
UD
11323 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_master.
11324 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_master.
11325
11326 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypbind_resp.
11327 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypbind_resp.
11328
11329 * nis/nis_xdr.c: Add libnsl_hidden_def for xdr_cback_data.
11330 * include/rpcsvc/nis_callback.h: Add libnsl_hidden_proto for
11331 xdr_cback_data.
11332
11333 * nis/ypupdate_xdr.c: Add libnsl_hidden_def for xdr_ypupdate_args.
11334 * include/rpcsvc/ypupd.h: Add libnsl_hidden_proto for
11335 xdr_ypupdate_args.
11336
11337 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_order.
11338 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_order.
11339
11340 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_maplist.
11341 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_maplist.
11342
11343 * nis/nis_xdr.c: Add libnsl_hidden_def for xdr_obj_p.
11344 * include/rpcsvc/nis_callback.h: New file.
11345
11346 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_val.
11347 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_val.
11348
11349 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypreq_nokey.
11350 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypreq_nokey.
11351
11352 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypmaplist.
11353 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypmaplist.
11354
11355 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypreq_nokey.
11356 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypreq_nokey.
11357
b1ad49c6
UD
11358 * nis/ypupdate_xdr.c: Add libnsl_hidden_def for xdr_ypdelete_args.
11359 * include/rpcsvc/ypupd.h: Add libnsl_hidden_proto for
11360 xdr_ypdelete_args.
11361
cd5f7829
UD
11362 * nis/nis_xdr.h: Mark all functions as hidden. Remove
11363 __BEGIN_DECLS and __END_DECLS, the header is not installed.
11364
a51752b6
UD
11365 * nis/nis_error.c: Remove table of strings. Use position
11366 independent mechanism.
11367 * nis/nis_error.h: New file.
11368
3d237e42
UD
113692006-05-11 Jakub Jelinek <jakub@redhat.com>
11370
11371 * locale/programs/ld-time.c (time_finish): If wide era name or
11372 format aren't provided, set both wname and wformat to L"".
11373
d6c159fe
UD
113742006-05-10 Ulrich Drepper <drepper@redhat.com>
11375
0088b04e
UD
11376 * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Only store
11377 results if the call was succesful.
11378
d6c159fe
UD
11379 * nis/nss-nis.h: Mark __yperr2nss_tab and __yperr2nss_count as hidden.
11380
11381 * nis/nss-nisplus.h: Mark __niserr2nss_tab and __niserr2nss_count
11382 as hidden.
11383
5c5acdf0
UD
113842006-05-10 Jakub Jelinek <jakub@redhat.com>
11385
11386 * misc/sys/queue.h: Remove uses of all QUEUEDEBUG_* macros.
11387
16d620db
UD
113882006-05-10 Ulrich Drepper <drepper@redhat.com>
11389
11390 * posix/wordexp.c (parse_glob): No need to check ifs for NULL, the
11391 caller makes sure this is not the case.
11392 (wordexp): Simplify ifs_white creation. [Coverity CID 231]
11393
e7c8359e
UD
113942006-05-09 Ulrich Drepper <drepper@redhat.com>
11395
ecf359c6
UD
11396 * posix/wordexp.c: Remove numerous NULL pointer tests before FREE
11397 calls.
11398
400cc70a
UD
11399 * io/ftw.c (open_dir_stream): Return right away if REALLOC fails.
11400 [Coverity CID 229, 230]
11401
11402 * argp/argp-help.c (hol_entry_help): Handle STATE==NULL in ARG and
11403 DGETTEXT calls.
11404 (hol_help): Likewise. [Coverity CID 226, 227]
11405
11406 * string/argz-replace.c (__argz_replace): Unconditionally call
11407 free on SRC. [Coverity CID 225]
11408
11409 * nis/nis_creategroup.c (nis_creategroup): No need to duplicate
11410 the return value of __nis_default_owner and __nis_default_group,
11411 it has been especially allocated. [Coverity CID 224]
11412
51e59260
UD
11413 * nis/nis_defaults.c (searchXYX): New functions. Used by both
11414 searchgroup and searchowner. Significantly simplified.
11415 (__nis_default_owner): Remove duplication. Do not locally copy the
11416 string before duplicating it.
11417 (__nis_default_group): Likewise.
11418
11419 * nis/nis_lookup.c (nis_lookup): After calling nis_free_directory,
11420 we must clear the variable before calling __nisfind_server.
11421
11422 * nis/nis_lookup.c (nis_lookup): Always free memory allocated with
11423 nis_getnames. [Coverity CID 223]
11424
11425 * locale/programs/locfile.c (locfile_read): Use alloca instead of
11426 xmalloc to allocate local repertoire name. [Coverity CID 222]
11427
11428 * iconv/iconv_charmap.c (use_to_charmap): No need to dynamically
11429 allocate memory for the input to add_bytes. [Coverity CID 221]
11430
e7c8359e 11431 * posix/wordexp.c (w_addword): Free word if realloc fails and it
51e59260 11432 was allocated here. [Coverity CID 219, 220]
e7c8359e
UD
11433
11434 * posix/getconf.c (print_all): Free confstr data after printing.
11435 [Coverity CID 218]
11436
11437 * sysdeps/posix/getaddrinfo.c (gaih_inet): Free canon string if
11438 list allocation fails. [Coverity CID 215]
11439
11440 * nss/nsswitch.c (__nss_configure_lookup): Fix loop end condition.
11441 [Coverity CID 213]
11442
11443 * argp/argp-help.c (hol_entry_cmp): Don't call canon_doc_option if
11444 string is NULL. [Coverity CID 212]
11445 * argp/Makefile: Add rules to build and run bug-argp1.
11446 * argp/bug-argp1.c: New file.
11447
11448 * io/ftw.c (ftw_dir): Use __rawmemchr instead of strchr to find
11449 end of string.
11450 * stdlib/canonicalize.c (__realpath): Likewise.
11451
11452 * locale/programs/ld-time.c (time_finish): Don't dereference NULL
11453 pointer. [Coverity CID 206]
11454
11455 * elf/dl-dst.h (DL_DST_REQUIRED): Be prepared for missing link map
11456 in statically linked code.
11457 * elf/dl-load.c (_dl_dst_substitute): When replacing ORIGIN in
11458 statically built code, be prepared to have no link map.
11459 [Coverity CID 205]
11460
11461 * argp/argp-help.c (fill_in_uparams): Handle STATE==NULL in
11462 dgettext calls. [Coverity CID 204]
11463
11464 * argp/argp-help.c (struct uparams): Remove valid member. Change
11465 the one user.
11466 (uparam_names): Reduce size. Avoid relative relocations.
11467 Moved to read-only segment.
11468 (fill_in_uparams): Update for new layout.
11469
11470 * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs): Parameter can be
11471 assumed to always be != NULL. [Coverity CID 202]
11472
11473 * argp/argp-help.c (hol_entry_help): Remove some dead code
11474 [Coverity CID 200].
11475
11476 * nis/nss_nis/nis-service.c (_nss_nis_getservbyport_r): Optimize
11477 away a few more unconditional yperr2nss calls.
11478 (_nss_nis_getservbyname_r): Likewise.
11479
acf82eaf
UD
114802006-05-06 Ulrich Drepper <drepper@redhat.com>
11481
4461cf48
UD
11482 * sysdeps/generic/ldsodefs.h: Remove support for non-core
11483 architectures.
11484
b74a8c7f
UD
11485 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Make sure
11486 that unused memory passed to sendto is nevertheless initialized.
11487
acb98cb5
UD
11488 [BZ #2499]
11489 * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Avoid
11490 possibly unaligned memory accesses.
11491
bce16467
UD
11492 * include/arpa/nameser.h: Also optimize NS_PUT16 and NS_PUT32.
11493 * resolv/res_mkquery.c: Use NS_PUT16 and NS_PUT32 instead of __putshort
11494 and __putlong respectively. Correct buffer overflow check for
11495 NS_NOTIFY_OP.
11496
11497 * resolv/res_send.c (send_vc): Use ns_put16 instead of putshort.
11498
8e45b1ac
UD
11499 * resolv/res_send.c (res_queriesmatch): Fix typo in comment.
11500 (send_dg): Rewrite error handling to be more compact and avoid
11501 double recomputation of timeouts. Pass MSG_NOSIGNAL to send.
11502
697e1628
UD
11503 * include/arpa/nameser.h: Add optimizations for NS_GET16 and NS_GET32.
11504
11505 * resolv/res_send.c (res_nameinquery): Use NS_GET16 directly
11506 instead of ns_get16.
11507 (res_queriesmatch): Likewise. Minor optimization.
11508
acf82eaf
UD
11509 [BZ #2499]
11510 * resolv/res_query.c (__libc_res_nquery): If answerp != NULL,
11511 __libc_res_nsend might reallocate the buffer for the answer. In
11512 this case we have to reload the HP pointer.
11513
7bfee654
UD
115142006-05-05 Ulrich Drepper <drepper@redhat.com>
11515
694b49ca
UD
11516 * stdio-common/vfscanf.c (memory_error): Remove definition. Add
11517 some branch prediction hints.
11518
7bfee654
UD
11519 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Define SPLICE_F_*.
11520 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
11521 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
11522 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
11523 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
11524 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
11525 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
11526 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
11527
308bb2d5
UD
115282006-05-05 Martin Schwidefsky <schwidefsky@de.ibm.com>
11529
11530 * sysdeps/s390/s390-32/elf/start.S: Replace pc relative relocation
11531 by a GOT relocation to make Scrt1.o position independent.
11532 * sysdeps/s390/s390-64/elf/start.S: Likewise.
11533
11534 * sysdeps/unix/sysv/linux/s390/s390-32/syscall.S: Add support for
11535 six system call parameters.
11536 * sysdeps/unix/sysv/linux/s390/s390-64/syscall.S: Likewise.
11537
cdb9c321
UD
115382006-05-05 Ulrich Drepper <drepper@redhat.com>
11539
11540 * sunrpc/svcauth_des.c (cache_init): Use calloc instead of
11541 malloc&bzero.
11542
11543 * sunrpc/svc_udp.c (BZERO): Remove definition.
11544 (CALLOC): Define.
11545 (svc_enablecache): Use CALLOC instead of ALLOC&BZERO.
11546
11547 * sunrpc/des_impl.c: Remove ALT_ECB support. We never used it.
11548 (des_SPtrans): Use uint32_t type.
11549 (des_skb): Likewise.
11550
11551 * sunrpc/xdr_ref.c (xdr_reference): Use calloc instead of malloc&bzero.
11552
fff04b32
UD
115532006-05-05 Jakub Jelinek <jakub@redhat.com>
11554
11555 [BZ #2509]
11556 * stdio-common/tst-printf.sh: Adjust for tst-printf.c change even
11557 on 32-bit arches.
11558
115592006-05-05 Ulrich Drepper <drepper@redhat.com>
11560
11561 * locale/programs/ld-address.c (address_finish): Fix one more
cdb9c321 11562 place where the iso639 array might be accessed beyond the limits.
fff04b32 11563
077a30bc 115642006-05-04 Ulrich Drepper <drepper@redhat.com>
77dd4c3b 11565
f2d5cf50
UD
11566 * nis/nis_table.c (nis_list): Avoid clearing res twice before
11567 filling it for the first time.
11568
3e4370cf
UD
11569 * nis/nis_table.c (get_tablepath): Renamed from __get_tablepath.
11570 Adjust all callers.
11571 Free res object content before returning.
11572
5e65a53d
UD
11573 * sunrpc/xdr_array.c (xdr_array): Use calloc instead of malloc&bzero.
11574
48be3114
UD
11575 * sunrpc/key_call.c (__rpc_thread_key_cleanup): Also free
11576 client->cl_auth.
11577
ca4fce0e
UD
11578 * sunrpc/rpc_thread.c (__rpc_thread_destroy): Don't skip entire
11579 cleanup for initial thread, just the free call on TVP.
11580
077a30bc 11581 * nscd/gai.c (__getline): Define.
3b7a95fb 11582
5d37289a 11583
3f87d901 11584See ChangeLog.16 for earlier changes.
This page took 1.66968 seconds and 5 git commands to generate.