]> sourceware.org Git - glibc.git/blame - ChangeLog
* sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: New File.
[glibc.git] / ChangeLog
CommitLineData
aece054b
UD
12007-10-26 Steven Munroe <sjmunroe@us.ibm.com>
2
3 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: New File.
4 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.c: Removed.
5 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: New File.
6 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.c: Removed.
7 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: New File.
8 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: New File.
9
6c30d38f
UD
102008-04-09 Ulrich Drepper <drepper@redhat.com>
11
21208604
UD
12 [BZ #4314]
13 * sysdeps/i386/i686/memcpy.S: Optimize copying of aligned buffers.
14
2f611ada 15 [BZ #5209]
3f981865 16 * sysdeps/unix/sysv/syscalls.list: The times syscall doesn't return
2f611ada
UD
17 an error value.
18
6c30d38f
UD
19 * stdlib/tst-makecontext.c: Change parameter to cf to negative
20 value to check for correct sign extension.
21
22 [BZ #5436]
23 * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
24 Copy 64-bit parameter values even though this is not required in
25 the standard.
26
27 * sysdeps/unix/sysv/linux/x86_64/vfork.S (__vfork): Record return
28 PC save.
29
de1bbf68
UD
302008-02-14 Daniel Jacobowitz <dan@codesourcery.com>
31
32 * sysdeps/unix/sysv/linux/i386/vfork.S (__vfork): Record return
33 PC save.
34
9aef35a5
UD
352008-04-09 Jakub Jelinek <jakub@redhat.com>
36
37 * nss_files/files-XXX.c (_nss_files_getXXent_r): Restore saved errno.
38
a7925a24
UD
392008-04-09 Ulrich Drepper <drepper@redhat.com>
40
41 [BZ #5998]
42 * libio/iofwrite.c (_IO_fwrite): Return correct count if flushing
43 in line-buffered stream failed.
44 * libio/iofwrite_u.c (fwrite_unlocked): Likewise.
45
7b61ef24
UD
462008-04-08 Ulrich Drepper <drepper@redhat.com>
47
c2a684a4
UD
48 [BZ #6024]
49 * scripts/abi-versions.awk: If the version specified by
50 --enable-oldest-abi is older than the first version for this
51 architecture, use the default version.
52
7b61ef24
UD
53 * locale/programs/ld-collate.c (collate_read): Ignore script lines
54 as well when ignoring the whole category.
55
f6d749f0
UD
562008-04-07 Ulrich Drepper <drepper@redhat.com>
57
58 [BZ #6042]
59 * sysdeps/unix/sysv/linux/net/ethernet.h: Add a few more
60 ETHERTYPE_* definitions.
61 Patch partly by Aurelien Jarno <aurelien@aurel32.net>.
62
1e99aede
JJ
632008-04-07 Jakub Jelinek <jakub@redhat.com>
64
65 * stdlib/mbtowc.c (__no_r_state): Remove.
66 (mbtowc): New static state variable. Use it instead of
67 __no_r_state.
68 * stdlib/wctomb.c (__no_r_state): Remove extern decl.
69 (__wctomb_state): New hidden variable.
70 (wctomb): Use __wctomb_state instead of __no_r_state.
71 * debug/wctomb_chk.c (__no_r_state): Remove extern decl.
72 (__wctomb_state): New extern decl.
73 (__wctomb_chk): Use __wctomb_state instead of __no_r_state.
74
fcf90e0a
UD
752008-04-07 Ulrich Drepper <drepper@redhat.com>
76
77 [BZ #5475]
78 * resolv/res_init.c: Handle scope IDs in resolv.conf.
79
ae39e102
JJ
802008-04-07 Jakub Jelinek <jakub@redhat.com>
81
82 * malloc/mtrace.pl: Use $@ instead of $* to keep perl 5.10 quiet.
83
2503dd30
UD
842008-04-06 Ulrich Drepper <drepper@redhat.com>
85
86 * po/nl.po: Update from translation team.
87
3eb9c809
UD
882008-03-31 Ulrich Drepper <drepper@redhat.com>
89
90 [BZ #6007]
91 * string/strfry.c: Handle empty strings again.
92
9a69db29
UD
932008-03-30 Ulrich Drepper <drepper@redhat.com>
94
95 [BZ #5443]
96 * intl/dcigettext.c (__dcigettext): Get reader lock for locale data
97 before looking for translation.
98 * locale/duplocale.c: Transform __libc_setlocale_lock into rwlock.
99 * locale/freelocale.c: Likewise.
100 * locale/newlocale.c: Likewise.
101 * locale/setlocale.c: Likewise.
102 Based partially on a patch by ryo@np.css.fujitsu.com.
103
2ecc7d93
UD
1042008-03-30 Jakub Jelinek <jakub@redhat.com>
105
106 * intl/dcigettext.c (_nl_find_msg): Reread nconversions after
107 acquiring wrlock. Do conv_tab allocation while holding lock.
108 * intl/Makefile: Add rules to build and run tst-gettext6.
109 * intl/tst-gettext6.c: New test.
110 * intl/tst-gettext6.sh: New file.
111
221e5230
UD
1122008-03-30 Ulrich Drepper <drepper@redhat.com>
113
faa091c6
UD
114 * po/nl.po: Update from translation team.
115
221e5230
UD
116 * sysdeps/unix/opendir.c (__alloc_dir): If allocation fails for size
117 provided through st_blksize, try the default size before giving up.
118
1c272665
UD
1192008-03-29 Ulrich Drepper <drepper@redhat.com>
120
43f6bec1
UD
121 * stdio-common/vfprintf.c (vfprintf): Correct overflow test.
122
e8a32126
UD
123 [BZ #5939]
124 * sysdeps/posix/tempname.c (__gen_tempname): Correct flag selection.
125
1e489af9
UD
126 * posix/getopt.c (_getopt_internal_r): Remove old POSIX-demanded
127 error message. POSIX today does not require the messages to be in
128 a specific form. Suggested by Jim Meyering <jim@meyering.net>.
129
1d20f7f8
UD
130 [BZ #5979]
131 * sunrpc/auth_unix.c: Unify printed strings.
132 * sunrpc/clnt_tcp.c: Likewise.
133 * sunrpc/clnt_udp.c: Likewise.
134 * sunrpc/clnt_unix.c: Likewise.
135 * sunrpc/svc_tcp.c: Likewise.
136 * sunrpc/svc_udp.c: Likewise.
137 * sunrpc/svc_unix.c: Likewise.
138 * sunrpc/xdr.c: Likewise.
139 * sunrpc/xdr_array.c: Likewise.
140 * sunrpc/xdr_rec.c: Likewise.
141 * sunrpc/xdr_ref.c: Likewise.
142 * locale/programs/ld-time.c (time_finish): Unify messages.
143 * locale/programs/locfile.c (handle_copy): Fix typo.
144 * nscd/nscd.c (options): Fix typo.
145
1c272665
UD
146 [BZ #5995]
147 * stdlib/strtod_l.c: Use correct sign for result in one more
148 underflow case.
149 Patch by Eric Blake <ebb9@byu.net>.
150
48cc060e
UD
1512008-03-27 Jakub Jelinek <jakub@redhat.com>
152
153 * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Add open
154 and creat system calls.
155 * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove open system
156 call.
157 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Remove open and creat
158 system calls.
159 * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Likewise.
160 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
161 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
162
f96853be
UD
1632008-03-27 Ulrich Drepper <drepper@redhat.com>
164
165 * sysdeps/unix/sysv/linux/bits/local_lim.h: Undefined ARG_MAX if
166 <linux/limits.h> has defined it.
167 * sysdeps/unix/sysv/linux/sys/param.h: Define NCARGS to the legacy
168 ARG_MAX value and prevent ARG_MAX from being defined by the kernel
169 headers.
170 * sysdeps/unix/sysv/linux/sysconf.c: Define legacy_ARG_MAX and use
171 it instead of ARG_MAX.
172
fde15fdc
UD
1732008-03-25 Jakub Jelinek <jakub@redhat.com>
174
175 * posix/gai.conf: Fix comment for scope nullbits.
176 * sysdeps/posix/getaddrinfo.c (gaiconf_init): If /bits is not present,
177 default to 128 bits for v4 mapped addresses.
178
87b9b50f
UD
1792008-03-07 Martin Schwidefsky <schwidefsky@de.ibm.com>
180
181 * sysdeps/s390/fpu/fegetenv.c (fegetenv): Remove PTRACE_PEEKUSER
182 ptrace call to get the ieee_instruction_pointer from the kernel.
183 * sysdeps/s390/fpu/fesetenv.c (fesetenv): Remove PTRACE_POKEUSER
184 ptrace call to set the ieee_instructtion_pointer.
185 * sysdeps/unix/sysv/linux/s390/sys/user.h (struct _user_regs_struct):
186 Add comment that ieee_instruction_pointer is always 0.
187
af0498dc
UD
1882008-03-09 Andreas Jaeger <aj@suse.de>
189
190 [BZ #5857]
191 * sysdeps/ieee754/dbl-64/s_rint.c (__rint): Handle j0==18.
192 * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Likewise.
193 Patch by Mark Elliott <mark.h.elliott@lmco.com>.
194
195 * math/libm-test.inc (nearbyint_test): Add new test cases from #5857.
196 (rint_test): Likewise.
197
0ab7632d
UD
1982008-03-24 Ulrich Drepper <drepper@redhat.com>
199
0facd3df
UD
200 * nis/nis_call.c (nis_server_cache_search): Save errno around stat
201 call.
202 (__nisfind_server): Similar for open readColdStartFile call.
203 Patch partially by Jim Meyering.
204 * nss/nss_files/files-XXX.c (_nss_files_getXXent_r): Save errno
205 around internal_setent call.
206
7e570c55
UD
207 * po/vi.po: New Vietnamese translation.
208
e093c247
UD
209 * sysdeps/unix/sysv/linux/adjtime.c: Correctly use
210 ADJ_OFFSET_SS_READ.
211
0ab7632d
UD
212 * sysdeps/unix/sysv/linux/bits/sched.h: Add new CLONE_* flags,
213 remove CLONE_STOPPED.
214
0726cdf7
UD
2152008-02-10 Jim Meyering <meyering@redhat.com>
216
217 Remove useless "if" before "free":
218 * elf/ldconfig.c (parse_conf_include): Likewise.
219 * gmon/gmon.c (weak_alias): Likewise.
220 * iconv/gconv_conf.c (__gconv_get_path): Likewise.
221 * inet/rcmd.c (__validuser2_sa): Likewise.
222 * intl/bindtextdom.c (set_binding_values): Likewise.
223 * intl/loadmsgcat.c (_nl_load_domain, _nl_unload_domain): Likewise.
224 * libio/genops.c (save_for_backup): Likewise.
225 * libio/wgenops.c (save_for_wbackup): Likewise.
226 * locale/programs/ld-collate.c (collate_read): Likewise.
227 * locale/programs/linereader.c (get_string): Likewise.
228 * nis/nss_compat/compat-pwd.c (give_pwd_free): Likewise.
229 * nis/nss_compat/compat-spwd.c (give_spwd_free): Likewise.
230 * resolv/res_debug.c (do_section): Likewise.
231 * sunrpc/xdr_sizeof.c (x_inline, xdr_sizeof): Likewise.
232 * sysdeps/mach/hurd/if_index.c (libc_hidden_def): Likewise.
233 * sysdeps/posix/sprofil.c (__sprofil): Likewise.
234 * time/lc-time-cleanup.c (_nl_cleanup_time): Likewise.
235 * time/tzset.c (tzset_internal): Likewise.
236
354b7527
JJ
2372008-03-18 Jakub Jelinek <jakub@redhat.com>
238
239 * sysdeps/unix/sysv/linux/dl-sysdep.h: Use __ASSEMBLER__ instead
240 of ASSEMBLER.
241
ca668b29
UD
2422008-03-11 Ulrich Drepper <drepper@redhat.com>
243
244 [BZ #5903]
245 * iconv/iconv_charmap.c (charmap_conversion): Pass name of output file
246 not stream for output file. Open output file here.
247 * iconv/iconv_prog.c (process_lock): Take pointer to output stream
248 and output file name.
249 (process_fd): Likewise.
250 (process_file): Likewise.
251 (main): Adjust callers of changed functions.
252 * iconv/iconv_prog.h: Adjust prototype.
253
f3dc3415
AJ
2542008-03-09 Andreas Jaeger <aj@suse.de>
255
256 [BZ #5753]
257 * sysdeps/ia64/ieee754.h: Use protected namespace
258 __BIG_ENDIAN/__LITTLE_ENDIAN.
259 * sysdeps/ieee754/ieee754.h: Likewise.
260 Patch by Aurelien Jarno <aurelien@aurel32.net>.
261
a8fd84d4
RM
2622008-03-08 Roland McGrath <roland@frob.com>
263
2b965f1b
RM
264 * hurd/hurdsig.c (_hurd_internal_post_signal): When normal rules would
265 ignore a signal that came from a machine exception, treat it as a
266 fatal core-dump signal instead.
267 Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
268
a8fd84d4
RM
269 * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler):
270 Clear DF bit in thread state's eflags.
271 Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
272
368a8dec
UD
2732008-03-08 Ulrich Drepper <drepper@redhat.com>
274
b3278554
UD
275 [BZ #5774]
276 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Consume closing brace
c6c00e0d 277 of NAN(...) sequence.
b3278554
UD
278 * stdlib/Makefile (tests): Add tst-strtod6.
279 * stdlib/tst-strtod6.c: New file.
280
281 * inet/inet6_opt.c (inet6_opt_init): Check extlen for overflow.
282
2127a186
UD
283 [BZ #5762]
284 * posix/getopt.c (_getopt_internal_r): Clarify error message by
285 putting offending option character in quotes. Clean up error
286 messages.
287 * po/be.po: Adjust msgstr in translation file.
288 * po/bg.po: Likewise.
289 * po/ca.po: Likewise.
290 * po/cs.po: Likewise.
291 * po/da.po: Likewise.
292 * po/de.po: Likewise.
293 * po/es.po: Likewise.
294 * po/fr.po: Likewise.
295 * po/hr.po: Likewise.
296 * po/ko.po: Likewise.
297 * po/nl.po: Likewise.
298 * po/rw.po: Likewise.
299 * po/sk.po: Likewise.
300 * po/sv.po: Likewise.
301 * po/tr.po: Likewise.
302 * po/zh_CN.po: Likewise.
303 * po/zh_TW.po: Likewise.
304
725c0c87
UD
305 [BZ #5760]
306 * inet/inet6_opt.c (inet6_opt_init): Fix ip6h_len computation.
307 Patch by Roland Bless <roland@bless.de>.
308
368a8dec
UD
309 * sysdeps/unix/sysv/linux/dl-sysdep.c: Avoid unnecessary code for
310 .o file.
311 * elf/Makefile (routines): Add dl-sysdep.
312 (elide-routines.os): Likewise.
313
78c2bf0e
UD
3142008-03-07 Ulrich Drepper <drepper@redhat.com>
315
7c22c7ec
UD
316 [BZ #5786]
317 * elf/dl-sysdep.c: Undefine ROUND after use.
318 * sysdeps/generic/ldsodefs.h [HAVE_DL_DISCOVER_OSVERSION]
319 (struct rtld_global_ro): Add _dl_tls_get_addr_soft element.
320 * elf/rtld.c (rtld_global_ro): Initialize _dl_discover_osversion.
321 * sysdeps/unix/sysv/linux/dl-osinfo.h: Move _dl_discover_osversion
322 to ...
323 * sysdeps/unix/sysv/linux/dl-sysdep.c: ...here.
324 * sysdeps/unix/sysv/linux/dl-sysdep.h: Declare _dl_discover_osversion
325 if necessary.
326 * sysdeps/unix/sysv/linux/sysconf.c: Handle _SC_ARG_MAX here.
327
93025f93
UD
328 * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Add
329 _dl_tls_get_addr_soft element.
330 * elf/rtld.c (rtld_global_ro): Initialize _dl_tls_get_addr_soft.
331 * elf/Versions (ld): Don't export _dl_tls_get_addr_soft.
332 * dlfcn/dlinfo.c (dlinfo_doit): Access dl_tls_get_addr_soft through
333 GLRO.
334 * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise.
335 * elf/dl-tls.c (_dl_tls_get_addr_soft): Use attribute_hidden instead
336 of internal_function.
337
72f10127
UD
338 * stdlib/Makefile (aux): Add tens_in_limb.
339 * stdlib/strtod_l.c: Move _tens_in_limb definition to...
340 * stdlib/tens_in_limb.c: ...here. New file.
341
443db178
UD
342 [BZ #5778]
343 * sysdeps/unix/sysv/linux/pathconf.h: Declare
344 __statfs_chown_restricted.
345 * sysdeps/unix/sysv/linux/fpathconf.c: Call __statfs_chown_restricted
346 for _PC_CHOWN_RESTRICTED.
347 * sysdeps/unix/sysv/linux/pathconf.c: Likewise.
348 Implement __statfs_chown_restricted.
349 * sysdeps/unix/sysv/linux/bits/posix_opt.h: Change
350 _POSIX_CHOWN_RESTRICTED value to zero.
c71665ad
UD
351 * io/tst-fchownat.c: Correctly handle _POSIX_CHOWN_RESTRICTED
352 defined to zero.
443db178 353
78c2bf0e
UD
354 * sysdeps/x86_64/rtld-memset.c: New file.
355
443db178 3562008-02-26 Harsha Jagasia <harsha.jagasia@amd.com>
78c2bf0e
UD
357
358 * sysdeps/x86_64/cacheinfo.c (NOT_USED_RIGHT_NOW): Remove ifdef guards.
359
360 * sysdeps/x86_64/memset.S: Rewrite non-SSE code path as tuned for AMD
361 Barcelona machine. Make default fall through branch of
362 __x86_64_preferred_memory_instruction check as the integer code path.
363
3642007-10-15 H.J. Lu <hongjiu.lu@intel.com>
365
366 * sysdeps/x86_64/cacheinfo.c
367 (__x86_64_preferred_memory_instruction): New variable.
368 (init_cacheinfo): Initialize __x86_64_preferred_memory_instruction.
369
370 * sysdeps/x86_64/memset.S: Rewrite.
371
dff37515
UD
3722008-03-04 Jakub Jelinek <jakub@redhat.com>
373
374 * include/stdio.h (__asprintf_chk, __dprintf_chk,
375 __obstack_printf_chk): New prototypes.
376 (__vasprintf_chk, __vdprintf_chk,
377 __obstack_vprintf_chk): Likewise.
378 Add libc_hidden_proto.
379 * libio/obprintf.c
380 (_IO_obstack_jumps): No longer static, add attribute_hidden.
381 * libio/bits/stdio-ldbl.h (__asprintf_chk, __dprintf_chk,
382 __obstack_printf_chk, __vasprintf_chk, __vdprintf_chk,
383 __obstack_vprintf_chk): Add __LDBL_REDIR_DECL.
384 * libio/bits/stdio2.h (__asprintf_chk, __dprintf_chk,
385 __obstack_printf_chk, __vasprintf_chk, __vdprintf_chk,
386 __obstack_vprintf_chk): New prototypes.
387 (asprintf, __asprintf, dprintf, obstack_printf, vasprintf, vdprintf,
388 obstack_vprintf): New inlines.
389 * debug/dprintf_chk.c: New file.
390 * debug/vdprintf_chk.c: New file.
391 * debug/asprintf_chk.c: New file.
392 * debug/vasprintf_chk.c: New file.
393 * debug/obprintf_chk.c: New file.
394 * debug/tst-chk1.c (do_test): Add asprintf and obstack_printf tests.
395 * debug/Versions (__asprintf_chk, __dprintf_chk, __obstack_printf_chk,
396 __vasprintf_chk, __vdprintf_chk, __obstack_vprintf_chk): Export
397 @@GLIBC_2.8.
398 * debug/Makefile: Build asprintf_chk, vasprintf_chk, dprintf_chk,
399 vdprintf_chk and obprintf_chk, set CFLAGS for them.
400 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c (__nldbl___vasprintf_chk,
401 __nldbl___vdprintf_chk, __nldbl___obstack_vprintf_chk): Add
402 libc_hidden_proto.
403 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl___vasprintf_chk,
404 __nldbl___vdprintf_chk, __nldbl___obstack_vprintf_chk): New prototypes.
405 * sysdeps/ieee754/ldbl-opt/Versions (__nldbl___asprintf_chk,
406 __nldbl___vasprintf_chk, __nldbl___dprintf_chk, __nldbl___vdprintf_chk,
407 __nldbl___obstack_printf_chk, __nldbl___obstack_vprintf_chk): Export
408 @@GLIBC_2.8.
409 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add asprintf_chk,
410 vasprintf_chk, dprintf_chk, vdprintf_chk, obstack_printf_chk and
411 obstack_vprintf_chk.
412 * sysdeps/ieee754/ldbl-opt/nldbl-obstack_vprintf_chk.c: New file.
413 * sysdeps/ieee754/ldbl-opt/nldbl-dprintf_chk.c: New file.
414 * sysdeps/ieee754/ldbl-opt/nldbl-obstack_printf_chk.c: New file.
415 * sysdeps/ieee754/ldbl-opt/nldbl-asprintf_chk.c: New file.
416 * sysdeps/ieee754/ldbl-opt/nldbl-vdprintf_chk.c: New file.
417 * sysdeps/ieee754/ldbl-opt/nldbl-vasprintf_chk.c: New file.
418
d835f136
UD
4192008-03-04 Ulrich Drepper <drepper@redhat.com>
420
a4bb445a
UD
421 [BZ #5779]
422 * misc/sys/queue.h: Add STAILQ_CONCAT and TAILQ_CONCAT definitions.
423 Patch by Roy Marples <roy@marples.name>.
424
c958a6a4
UD
425 [BZ #5736]
426 * malloc/malloc.c: Fix typo in comment.
427
d835f136
UD
428 [BZ #5627]
429 * locale/iso-639.def: Add Shuswap.
430
65b4743a
UD
4312008-02-25 Jakub Jelinek <jakub@redhat.com>
432
433 [BZ #5790]
434 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr2_r): Don't
435 overwrite *h_errnop/*errnop values from getanswer_r in case of
436 failure.
437
3868fb6e
UD
4382008-03-03 Ulrich Drepper <drepper@redhat.com>
439
27c377dd
UD
440 [BZ #5818]
441 * nscd/connections.c (dbs): Add initializers for .suggested_module.
442 (verify_persistent_db): Remove one unnecessary test and add a new one
443 for bad configuration.
444 (nscd_init): Improve error reported when persistent database cannot
445 be reused.
446 * nscd/nscd.h (DEFAULT_SUGGESTED_MODULE): Define.
447 * nscd/nscd_conf.c (nscd_parse_file): Provide default values for
448 .suggested_module and .max_db_size and case config file says the
449 values are zero.
450 * nscd/nscd_helper.c (get_mapping): Fail if hash table module is zero.
451
0f749099
UD
452 [BZ #5854]
453 * nis/ypclnt.c (yp_order): Fix handling of return value of
454 do_ypcall_tr call.
455 Patch by Jeff Moyer <jmoyer@redhat.com>.
456
3868fb6e
UD
457 * po/fr.po: Update from translation team.
458
268dbf25
AJ
4592008-02-22 Andreas Jaeger <aj@suse.de>,
460 Carlos O'Donell <carlos@systemhalted.org>
461
462 [BZ #5012]
463 * FAQ.in: Describe why glibc needs to be compiled with
464 optimization.
465
73b82641
RM
4662008-02-19 Roland McGrath <roland@redhat.com>
467
468 * elf/elf.h (SHT_GNU_ATTRIBUTES): New macro.
469
c9136393
UD
4702008-02-15 Ulrich Drepper <drepper@redhat.com>
471
472 [BZ #5737]
473 * resolv/netdb.h: Make NI_MAXHOST and NI_MAXSERV available when
474 __USE_MISC is defined.
475
2e3e9ff1
UD
4762008-02-10 Ulrich Drepper <drepper@redhat.com>
477
478 * sysdeps/unix/sysv/linux/sys/timerfd.h: New file.
479 * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers): Add
480 sys/timerfd.h.
481 * sysdeps/unix/sysv/linux/syscalls.list: Add timerfd_create,
482 timerfd_gettime, timerfd_settime.
483 * sysdeps/unix/sysv/linux/Versions: Add timerfd_create,
484 timerfd_gettime, timerfd_settime for GLIBC_2.8.
485
85202a2b
RM
4862008-02-08 Roland McGrath <roland@redhat.com>
487
488 * elf/elf.h (NT_PPC_SPE): New macro.
489
708ef8a4
RM
4902008-02-06 Roland McGrath <roland@redhat.com>
491
492 * Makerules ($(common-objpfx)sysd-rules):
493 Depend on $(sysdep-makeconfigs).
494
363a641b
RM
4952008-01-31 Roland McGrath <roland@redhat.com>
496
67fbfa5c
RM
497 [BZ #5442]
498 * configure.in: Use -print-file-name if it yields a directory,
499 for each of include and include-fixed.
500 * configure: Regenerated.
501
363a641b
RM
502 * Makeconfig (sysd-rules-targets): New variable.
503 * sysdeps/unix/make-syscalls.sh: Use it in the rules emitted.
504 * sysdeps/unix/Makefile (omit-deps): Append variants for each target.
505
0f0f9610
RM
5062008-01-30 Roland McGrath <roland@redhat.com>
507
7bd00dbf
RM
508 * manual/libc.texinfo: Update back-cover text.
509
0f0f9610
RM
510 * elf/elf.h (NT_386_TLS): New macro.
511
16cd816f
RM
5122008-01-29 Roland McGrath <roland@redhat.com>
513
514 * Makeconfig (sysd-rules-patterns): New variable.
515 * Makerules ($(common-objpfx)sysd-rules): Drive the loop from that.
516 (check-inhibit-asm): New canned sequence, replaces ...
517 (open-check-inhibit-asm, close-check-inhibit-asm): ... these, removed.
518 * elf/rtld-Rules ($(objpfx)rtld-%.os): Use $(rtld-CPPFLAGS) in commands.
519 (rtld-CPPFLAGS): Renamed from CPPFLAGS-rtld.
520 (CFLAGS-rtld): Variable removed.
521
f641ffcc
RM
5222008-01-24 Roland McGrath <roland@redhat.com>
523
524 * configure.in: Let configure fragments set base_os.
525 * configure: Regenerated.
526
b7e26885
UD
5272008-01-22 Ulrich Drepper <drepper@redhat.com>
528
529 * po/ko.po: Update from translation team.
530
b4b166af
UD
5312008-01-12 H.J. Lu <hongjiu.lu@intel.com>
532
533 * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Use short for fnstsw.
534
f66def9d
AJ
5352008-01-12 Andreas Jaeger <aj@suse.de>
536
537 [BZ #5040]
538 * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h (enum EPOLL_EVENTS):
539 Add EPOLLRDHUP.
540
d3bc5e77
RM
5412008-01-20 Samuel Thibault <samuel.thibault@ens-lyon.org>
542
543 * hurd/hurdsock.c (_hurd_socket_server): Return the standard
544 error EAFNOSUPPORT rather than non-standard EPFNOSUPPORT.
545 * sunrpc/bindrsvprt.c (bindresvport): Likewise.
546
4c533566
UD
5472007-10-23 Alexandre Oliva <aoliva@redhat.com>
548
549 * include/link.h (FORCED_DYNAMIC_TLS_OFFSET): Define.
550 * elf/dl-close.c (_dl_close): Check for it.
551 * elf/dl-reloc.c (CHECK_STATIC_TLS): Likewise.
552 (_dl_allocate_static_tls): Likewise.
553 * elf/dl-tls.c (_dl_allocate_tls_init): Likewise.
554 (__tls_get_addr): Protect from race conditions in setting l_tls_offset
555 to it.
556 * elf/tst-tls16.c: New file.
557 * elf/tst-tlsmod16a.c: New file.
558 * elf/tst-tlsmod16b.c: New file.
559 * elf/Makefile: Add rules to build and run tst-tls16.
560
a53d3f82
UD
5612008-01-16 Ulrich Drepper <drepper@redhat.com>
562
a0f6c236
UD
563 [BZ #5628]
564 * bits/shm.h: Fix comment describing shmid_ds.
565 * sysdeps/gnu/bits/shm.h: Likewise.
566 * sysdeps/unix/sysv/linux/alpha/bits/shm.h: Likewise.
567 * sysdeps/unix/sysv/linux/bits/shm.h: Likewise.
568 * sysdeps/unix/sysv/linux/ia64/bits/shm.h: Likewise.
569 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
570 * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
571 * sysdeps/unix/sysv/linux/sh/bits/shm.h: Likewise.
572 * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
573 * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Likewise.
574 Patch by Hareesh Nagarajan <hareesh.nagarajan@gmail.com>.
575
a53d3f82
UD
576 [BZ #5607]
577 * conform/data/fcntl.h-data: Fix posix_fadvise and posix_fallocate
578 prototypes.
579 * conform/data/limits.h-data: Adjust limits changed in v6 and add
580 additional suffixes.
581 * conform/data/mqueue.h-data: Fix typo in mq_curmsgs entry.
582 Add optional functions mq_timedreceive and mq_timedsend.
583 * conform/data/netdb.h-data: Add more AI_* and EAI_* constants.
584 * conform/data/pthread.h-data: Fix prototype of
585 pthread_condattr_setclock. pthread_sigmask is not required in v6.
586 * conform/data/semaphore.h-data: Allow time.h definitions.
587 * conform/data/signal.h-data: Likewise.
588 * conform/data/stdio.h-data: getw and putw are not required in v6.
589 * conform/data/stdlib.h-data: Change setstate prototype.
590 * conform/data/string.h-data: Fix strerror_r prototype.
591 * conform/data/time.h-data: Fix typo in TIMER_ABSTIME definition.
592 * conform/data/unistd.h-data: pthread_atfork not required in v6.
593 Fix readlink prototype.
594 * conform/data/netinet/in.h-data: Add const to in6addr_any and
595 in6addr_loopback.
596 * inet/netinet/in.h: Cleanup namespace.
597 * posix/regex.h: Likewise.
598 * resolv/netdb.h: Likewise.
599 * sysdeps/unix/sysv/linux/bits/in.h: Likewise.
600 * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
601 * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
6107639e
UD
602 * sysdeps/posix/getaddrinfo.c (default_labels): Adjust for change
603 of names of in in6_addr.
604 (default_precedence): Likewise.
605 * sysdeps/unix/sysv/linux/cmsg_nxthdr.c: Include <stddef.h> for
606 NULL definition.
a53d3f82 607
ebca8f73
UD
6082008-01-15 Ulrich Drepper <drepper@redhat.com>
609
fbe90cd5
UD
610 * conform/data/fmtmsg.h-data: Add missing allows.
611 * conform/data/ftw.h-data: Likewise.
612 * conform/data/inttypes.h-data: Likewise.
613 * conform/data/math.h-data: Likewise.
614 * conform/data/signal.h-data: Likewise.
615 * conform/data/net/if.h-data: Likewise.
616 * conform/data/netinet/in.h-data: Likewise.
617 * conform/data/sys/socket.h-data: Likewise.
618
ebca8f73
UD
619 [BZ #5614]
620 * string/bits/string2.h (__strtok_r_1c): Always update *__NEXTP.
621 (__strtok_r): Simplify.
622 * string/tester.c (test_strtok_r): Add test case for futile search
623 with single-character seach string.
624
7c33ca8b
UD
6252008-01-12 Ulrich Drepper <drepper@redhat.com>
626
627 * po/ko.po: Update from translation team.
628
b8cc0848
AJ
6292008-01-11 Andreas Jaeger <aj@suse.de>
630
631 [BZ #5600]
632 * sysdeps/unix/sysv/linux/sys/signalfd.h (struct
633 signalfd_siginfo): Use 64-bit type for ssi_ptr to sync with Linux
634 kernel header.
635
49029a66
UD
6362008-01-10 Ulrich Drepper <drepper@redhat.com>
637
638 * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Store result of
639 native interface lookup in all the relevant places.
640
99f05798
UD
6412008-01-10 Jakub Jelinek <jakub@redhat.com>
642 Ulrich Drepper <drepper@redhat.com>
0efd1956
UD
643
644 * sysdeps/posix/getaddrinfo.c (sort_results): Remove service_order
645 field. Use sockaddr_in6 for source_addr.
646 (get_scope): Change type of parameter to sockaddr_in6. Adjust.
647 (match_prefix): Likewise.
648 (get_label): Likewise.
649 (get_precedence): Likewise.
650 (rfc3484_sort): Change to use indirect access to results array.
651 Adjust to use of sockaddr_in6. Replace service_order test with
652 simple index comparison.
653 (getaddrinfo): Define order array. Initialize it. Don't initialize
654 service_order field. Adjust qsort_t calls. Access sorted result
655 array indirectly through order array.
656 * posix/tst-rfc3484.c: Adjust for change of rfc3484_sort.
657 * posix/tst-rfc3484-2.c: Likewise.
658 * posix/tst-rfc3484-3.c: Likewise.
659
b3443701
UD
6602008-01-09 Ulrich Drepper <drepper@redhat.com>
661
f6bacb8e
UD
662 [BZ #5541]
663 * sunrpc/rpc_thread.c (__rpc_thread_destroy): Also free xports and
664 pollfd structures.
665 Patch by André Cruz.
666
aa693c68
UD
667 [BZ #5545]
668 * sunrpc/clnt_perr.c (clnt_sperror): Don't use fixed size buffer.
669 (clnt_spcreateerror): Likewise.
670
b3443701
UD
671 [BZ #5553]
672 * malloc/malloc.c (public_mALLOc): Set ar_ptr when trying main_arena.
673 (public_mEMALIGn): Likewise.
674 Patch mostly by Daniel Jacobowitz.
675
148e12ed
UD
6762008-01-09 Jakub Jelinek <jakub@redhat.com>
677
678 * sysdeps/unix/sysv/linux/i386/makecontext.S (__makecontext): Avoid
679 clobbering memory at or above uc_stack.ss_sp + uc_stack.ss_size.
680 * stdlib/Makefile: Add rules to build and run tst-makecontext2.
681 * stdlib/tst-makecontext2.c: New test.
682
78c2bf0e 6832008-01-08 Jakub Jelinek <jakub@redhat.com>
4b1b449d
UD
684
685 * iconv/loop.c (UPDATE_PARAMS): Define to empty statement if not
686 defined.
687 (REINIT_PARAMS): Likewise. Undefine before end of file.
688 (STANDARD_TO_LOOP_ERR_HANDLER): Use UPDATE_PARAMS before calling
689 transliteration hooks and REINIT_PARAMS afterwards.
690 * iconvdata/iso-2022-jp.c (BODY): Use a separate variable for
691 status.
692 (REINIT_PARAMS): Define.
693 * iconvdata/ibm1364.c (REINIT_PARAMS): Likewise.
694 * iconvdata/ibm930.c (REINIT_PARAMS): Likewise.
695 * iconvdata/ibm933.c (REINIT_PARAMS): Likewise.
696 * iconvdata/ibm935.c (REINIT_PARAMS): Likewise.
697 * iconvdata/ibm937.c (REINIT_PARAMS): Likewise.
698 * iconvdata/ibm939.c (REINIT_PARAMS): Likewise.
699 * iconvdata/iso-2022-cn.c (REINIT_PARAMS): Likewise.
700 * iconvdata/iso-2022-cn-ext.c (REINIT_PARAMS): Likewise.
701 * iconvdata/iso-2022-jp-3.c (REINIT_PARAMS): Likewise.
702 * iconvdata/iso-2022-kr.c (REINIT_PARAMS): Likewise.
703 * iconvdata/Makefile: Add rules to build and run tst-iconv7.c.
704 * iconvdata/tst-iconv7.c: New test.
705
71edcafa
UD
7062008-01-07 Ulrich Drepper <drepper@redhat.com>
707
708 * libio/stdio.h (vscanf): Fix definition for loser compilers.
709
0fbfe2f7
JJ
7102008-01-05 Jakub Jelinek <jakub@redhat.com>
711
712 [BZ #5112]
713 * nscd/connections.c (restart): Fix condition.
714
8726a12e
UD
7152008-01-03 Jakub Jelinek <jakub@redhat.com>
716
717 * ctype/ctype.h (__ctype_b_loc, __ctype_tolower_loc,
718 __ctype_toupper_loc): Add __THROW.
719
f4a1363e
UD
7202008-01-02 Ulrich Drepper <drepper@redhat.com>
721
ad586879
UD
722 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Fix
723 recognition of interface family.
724
f4a1363e
UD
725 * posix/getconf.c: Update copyright year.
726 * nss/getent.c: Likewise.
727 * iconv/iconvconfig.c: Likewise.
728 * iconv/iconv_prog.c: Likewise.
729 * elf/ldconfig.c: Likewise.
730 * catgets/gencat.c: Likewise.
731 * csu/version.c: Likewise.
732 * elf/ldd.bash.in: Likewise.
733 * elf/sprof.c (print_version): Likewise.
734 * locale/programs/locale.c: Likewise.
735 * locale/programs/localedef.c: Likewise.
736 * nscd/nscd.c (print_version): Likewise.
737 * debug/xtrace.sh: Likewise.
738 * malloc/memusage.sh: Likewise.
739 * malloc/mtrace.pl: Likewise.
740 * debug/catchsegv.sh: Likewise.
741
0dc6c5e4
UD
7422007-12-26 Ulrich Drepper <drepper@redhat.com>
743
744 * nss/nsswitch.c (__nss_lookup): Actually use alternative name in
745 second lookup.
746
80af8b82
UD
7472007-12-23 Ulrich Drepper <drepper@redhat.com>
748
749 * sysdeps/x86_64/cacheinfo.c (intel_02_known): New entry 0x3f.
750 * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
751
4bcecfb7
RM
7522007-12-17 Roland McGrath <roland@redhat.com>
753
754 * inet/ether_line.c (ether_line): Remove unused variable.
755
7562007-12-17 Samuel Thibault <samuel.thibault@ens-lyon.org>
757
758 * login/forkpty.c (forkpty): Add const qualifier to parameters termp
759 and winp.
760 * login/openpty.c (openpty): Likewise.
761 * login/pty.h (openpty, forkpty): Likewise.
762 * manual/terminal.texi (openpty, forkpty): Likewise.
763
4cd4c5d6
UD
7642007-12-17 Ulrich Drepper <drepper@redhat.com>
765
78c2bf0e 766 * malloc/malloc.c (public_cALLOc): For arenas other than
4cd4c5d6
UD
767 main_arena, count all bytes inside the mprotect_size range of the
768 heap as uninitialized.
769
68631c8e
UD
7702007-12-16 Ulrich Drepper <drepper@redhat.com>
771
d9961b6a
UD
772 * elf/tst-execstack.c (do_test): Don't fail if SELinux forbids
773 executable stacks.
774
68631c8e
UD
775 * malloc/malloc.c (public_mTRIm): Iterate over all arenas and call
776 mTRIm for all of them.
777 (mTRIm): Additionally iterate over all free blocks and use madvise
778 to free memory for all those blocks which contain at least one
779 memory page.
be8c1500
UD
780 * malloc/tst-trim1.c: New file.
781 * malloc/Makefile (tests): Add tst-trim1.
68631c8e
UD
782
783 * malloc/malloc.c (do_check_malloc_state): Minimal cleanups.
784
78b767a0
UD
7852007-12-14 Ulrich Drepper <drepper@redhat.com>
786
787 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INTERNAL_SYSCALL_ERROR_P):
788 First cast argument to long
52386be7
UD
789 * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_gettimeofday):
790 Return long.
791 (__vdso_clock_gettime): Likewise.
78b767a0
UD
792 * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Functions
793 return long.
794
bc3e1c12
UD
7952007-12-13 Ulrich Drepper <drepper@redhat.com>
796
797 * locale/nl_langinfo.c (nl_langinfo): Just call __nl_langinfo_l.
798 * locale/nl_langinfo_l.c: Real implementation, copied from
799 nl_langinfo.c.
800 * include/langinfo.h: Add libc_hidden_proto for __nl_langinfo_l.
801
77751669
UD
8022007-12-01 Jim Meyering <meyering@redhat.com>
803
804 * posix/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
805 that would inhibit utf8-optimization of a regexp containing line-
806 or buffer-anchors, e.g., `^', `$'.
807
f63e5063
UD
8082007-12-12 Ulrich Drepper <drepper@redhat.com>
809
810 * time/bug-getdate1.c (do_test): Don't use century values which
811 aren't valid on 32-bit systems.
812
a78814a9
UD
8132007-12-12 Jakub Jelinek <jakub@redhat.com>
814
815 * sysdeps/i386/i486/bits/string.h (memmove): Define as macro.
816 (memmove): Rename to __memmove_g, with __asm__ ("memmove").
817 * sysdeps/s390/bits/string.h (__strlen_g, __strcpy_g, __strncpy_g,
818 __strcat_g, __strncat_g): Add __asm__.
819
8202007-12-12 Ulrich Drepper <drepper@redhat.com>
821
822 [BZ #5477]
823 * io/fchmodat.c: Fix typo in stub_warning use.
824 Patch by Petr Salinger.
825
17edb30c
UD
8262007-12-11 Ulrich Drepper <drepper@redhat.com>
827
58d11795
UD
828 * iconvdata/hp-thai8.c: New file.
829 * iconvdata/Makefile: Add rules for hp-thai8.c.
830 * iconvdata/tst-tables.sh: Add entry for HP-THAI8.
831 * iconvdata/gconv-modules: Likewise.
832
833 [BZ #5464]
834 * iconvdata/hp-greek8.c: New file.
835 * iconvdata/Makefile: Add rules for hp-greek8.c.
836 * iconvdata/tst-tables.sh: Add entry for HP-GREEK8.
837 * iconvdata/gconv-modules: Likewise.
838
839 [BZ #5463]
840 * iconvdata/hp-turkish8.c: New file.
841 * iconvdata/Makefile: Add rules for hp-turkish8.c.
842 * iconvdata/tst-tables.sh: Add entry for HP-TURKISH8.
843 * iconvdata/gconv-modules: Likewise.
844
cbf5760e
UD
845 * malloc/arena.c (grow_heap): Split out code to shrink heap into...
846 (shrink_heap): ... this new function.
847 (heap_trim): Call shrink_heap instead of grow_heap.
848
17edb30c
UD
849 * malloc/malloc.c (_int_malloc): sYSMALLOc might fail, in this
850 case don't call alloc_perturb.
851
ae18718f
UD
8522007-12-10 Ulrich Drepper <drepper@redhat.com>
853
854 * sysdeps/unix/sysv/linux/adjtime.c: Use ADJ_OFFSET_SS_READ if
855 possible.
856 * sysdeps/unix/sysv/linux/kernel-features.h
857 (__ASSUME_ADJ_OFFSET_SS_READ): Define for 2.6.24.
858 * sysdeps/unix/sysv/linux/sys/timex.h (ADJ_OFFSET_SS_READ): Define.
859
b4354cf4
UD
8602007-12-08 Ulrich Drepper <drepper@redhat.com>
861
862 [BZ #5424]
863 * stdio-common/vfprintf.c: Do not overflow when adding to done.
864 * stdio-common/Makefile (tests): Add bug22.
865 * stdio-common/bug22.c: New file.
866
867 [BZ #5451]
868 * time/getdate.c: Fix filling in default values.
869 * time/bug-getdate1.c: New file.
870 * time/Makefile: Add rules to build and run bug-getdate1.
871
872 * iconvdata/ebcdic-is-friss.c: Use 8bit-gap instead of 8bit-generic.
873 * iconvdata/ebcdic-es.c: Likewise.
874 * iconvdata/ebcdic-es-a.c: Likewise.
875 * iconvdata/ebcdic-uk.c: Likewise.
876 * iconvdata/iso8859-16.c: Likewise.
877 * iconvdata/viscii.c: Likewise.
878 * iconvdata/iso8859-9e.c: Likewise.
879 * iconvdata/Makefile: Adjust appropriately.
880
881 [BZ #5428]
882 * wcsmbs/wchar.h: Unconditionally undefine __need_mbstate and
883 __need_wint_t.
884
26e21e75
UD
8852007-12-07 Ulrich Drepper <drepper@redhat.com>
886
87520ccc
UD
887 [BZ #5427]
888 * iconvdata/hp-roman9.c: New file.
889 * iconvdata/Makefile: Add rules for hp-roman9.c.
890 * iconvdata/tst-tables.sh: Add HP-ROMAN9.
b4354cf4 891 * iconvdata/gconv-modules: Likewise.
87520ccc
UD
892
893 * iconvdata/hp-roman8.c: Use 8bit-gap instead of 8bit-generic.
894 * iconvdata/Makefile: Adjust appropriately.
895
26e21e75
UD
896 [BZ #5441]
897 * stdio-common/vfscanf.c (_IO_vfwscanf): Don't free ptrs_to_free
898 structure, it's allocated with alloca.
899 * stdio-common/Makefile (tests): Add bug21.
900 * stdio-common/bug21.c: New file.
901
9022007-12-06 Aurelien Jarno <aurelien@aurel32.net>
903
904 [BZ #5452]
905 * sysdeps/unix/sysv/linux/bits/sched.h: Use __extension__
87520ccc 906 keyword for gcc's braced-groups.
26e21e75
UD
907
9082007-12-07 Ulrich Drepper <drepper@redhat.com>
909
910 [BZ #5454]
911 * inet/ether_line.c: Strip hostname of whitespaces.
912 * inet/Makefile (tests): Add tst-ether_line.
913 * inet/tst-ether_line.c: New file.
914
9e80c123
UD
9152007-12-03 Ulrich Drepper <drepper@redhat.com>
916
da0ff4ae
UD
917 [BZ #5439]
918 * sysdeps/unix/sysv/linux/sys/signalfd.h: Fix use of __nonnull.
919
51bd20d9
UD
920 [BZ #5435]
921 * sysdeps/unix/sysv/linux/i386/makecontext.S: Align stack.
922
d90d0256
UD
923 * stdlib/tst-setcontext.c: Catch the case where the links gets
924 messed up and we do not reach main again.
925
9e80c123
UD
926 * po/ca.po: Update from translation team.
927
ae4287f8
UD
9282007-11-26 Ulrich Drepper <drepper@redhat.com>
929
6701afc7 930 * posix/unistd.h: Declare fsync also for __USE_XOPEN2K.
79fb2e02 931 * posix/regex.h (REG_ENOSYS): Likewise.
a912a4f8 932 * wcsmbs/wchar.h: Define __need_file also for __USE_XOPEN2K.
ae4287f8 933
30294ea4
UD
9342007-11-25 Ulrich Drepper <drepper@redhat.com>
935
936 * nscd/nscd.h (MAX_STACK_USE): Define.
937 * nscd/mem.c (MAX_STACK_USE): Remove definition here.
938 (gc): Initialize stack_used based on allocation in prune_cache.
939 * nscd/cache.c (prune_cache): Use heap for mark array if necessary.
e8667ddc 940 Clear array before use.
30294ea4
UD
941
942 * nscd/aicache.c (addhstaiX): Update statistics counter in case
10a4c1e9 943 memory allocation failed.
e8667ddc
UD
944 * nscd/hstcache.c (cache_addhst): Likewise.
945 * nscd/grpcache.c (cache_addgr): Likewise.
946 * nscd/servicescache.c (cache_addserv): Likewise.
947 * nscd/pwdcache.c (cache_addpw): Likewise.
948 * nscd/initgrcache.c (addinitgroupsX): Likewise.
30294ea4 949
715db78b
UD
9502007-11-23 Ulrich Drepper <drepper@redhat.com>
951
609bb071
UD
952 * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Add open
953 and creat system calls.
954
715db78b
UD
955 * sysdeps/unix/sysv/linux/check_native.c: Include <asm/types.h>.
956
ea2c47b6
UD
9572007-11-23 Martin Schwidefsky <schwidefsky@de.ibm.com>
958
959 * sysdeps/unix/sysv/linux/Makefile [subdir=inet] (sysdep_headers):
960 Add netiucv/iucv.h.
961 * sysdeps/unix/sysv/linux/netiucv/iucv.h: New file.
962 * sysdeps/unix/sysv/linux/opensock.c (__opensock): Add AF_IUCV
963 protocol.
964 * sysdeps/unix/sysv/linux/sa_len.c (__libc_sa_len): Likewise.
965 * sysdeps/unix/sysv/linux/s390/opensock.c: New file.
966 * sysdeps/unix/sysv/linux/s390/sa_len.c: New file.
967
dcdcf4b9
UD
9682007-11-22 Martin Schwidefsky <schwidefsky@de.ibm.com>
969
37143323
UD
970 * sysdeps/s390/bits/string.h (strlen, strcpy, strncpy, strcat,
971 strncat): Define as macros to avoid compile errors.
972
dcdcf4b9
UD
973 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Add open and
974 creat entries.
975
3a632674
UD
9762007-11-22 Ulrich Drepper <drepper@redhat.com>
977
7ea8eb02
UD
978 [BZ #5382]
979 * nscd/nscd.h (NSCD_THREAD_STACKSIZE): Define.
980 * nscd/connections.c (start_threads): Use NSCD_THREAD_STACKSIZE.
715db78b 981 * nscd/mem.c (gc): Don't allocate arrays on the stack if they can
7ea8eb02 982 overflow it.
70d5b6ef 983 Partially based on a patch by Petr Baudis <pasky@suse.cz>.
7ea8eb02
UD
984
985 * sysdeps/unix/sysv/linux/nscd_setup_thread.c (setup_thread):
715db78b 986 Return zero in case the thread library is not NPTL.
7ea8eb02 987
5c3a3dba
UD
988 [BZ #5375]
989 * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix locking when
990 initializing interface list.
991
85883123
UD
992 [BZ #5378]
993 * nis/nss_compat/compat-initgroups.c (getgrent_next_nss): Don't
994 use result of nss_getgrgid_r if nothing was found. For other
995 error return with a failure.
996 Partially based on a patch by Petr Baudis <pasky@suse.cz>.
997
3a632674
UD
998 * locale/programs/ld-collate.c (collate_read): Fix loop to match
999 macro name.
1000
b73f9135
UD
10012007-11-19 Ulrich Drepper <drepper@redhat.com>
1002
ee72b971
UD
1003 * sysdeps/posix/getaddrinfo.c (defaults_scopes, scopes): New variables.
1004 (get_scope): For IPv4 scope, use scopes table.
1005 (fini): Free scopes table if necessary.
1006 (free_scopelist): New function.
1007 (scopecmp): New function.
1008 (gaiconf_init): Also handle scopev4 entries.
1009 * posix/tst-rfc3484.c (do_test): Initialize scopes.
1010 * posix/tst-rfc3484-2.c (do_test): Likewise.
1011 * posix/gai.conf: Document scopev4 defaults.
1012 * posix/Makefile (tests): Add tst-rfc3484-3.
1013 * posix/tst-rfc3484-3.c: New file.
1014
f4a79765
UD
1015 * sysdeps/posix/getaddrinfo.c (default_labels): Describe entry for
1016 Teredo tunnels.
b73f9135
UD
1017 * posix/gai.conf: Update for current default tables.
1018
429bd64d
UD
10192007-11-19 Ulrich Drepper <drepper@redhat.com>
1020
1021 * po/tr.po: Update from translation team.
1022
3c9af259
RM
10232007-11-18 Roland McGrath <roland@frob.com>
1024
76cf9889
RM
1025 * manual/arith.texi (Remainder Functions): Spelling fix.
1026 From Shaun Silk <genix@mysoul.com.au>.
1027
3c9af259
RM
1028 * sysdeps/mach/hurd/bits/fcntl.h (O_CLOEXEC): Fix value.
1029
238346ab
UD
10302007-11-17 Ulrich Drepper <drepper@redhat.com>
1031
5879ad50
UD
1032 * po/zh_CN.po: Update from translation team.
1033
238346ab
UD
1034 * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
1035 Add sys/signalfd.h and sys/eventfd.h.
1036
b80b9c77
UD
10372007-11-15 Bruno Haible <bruno@clisp.org>
1038
1039 [BZ #5346]
1040 * intl/dcigettext.c (struct known_translation_t): Turn msgid into a
1041 union.
1042 (transcmp): Use the appropriate part of s1->msgid and s2->msgid.
1043 (DCIGETTEXT): Change the allocation of the 'search' variable so that
1044 it needs only fixed stack space. Delay the initialization of
1045 msgid_len until it is needed.
1046
2da2501c
AJ
10472007-11-15 Andreas Jaeger <aj@suse.de>
1048
1049 * sysdeps/ieee754/dbl-64/sincos.tbl: Fix size of union.
1050 Reported by Christoph Quirin Lauter <christoph.lauter@ens-lyon.fr>.
1051
68a6dcf5
UD
10522007-11-15 Ulrich Drepper <drepper@redhat.com>
1053
1054 * po/ko.po: Update from translation team.
1055
43850227
UD
10562007-11-14 Ulrich Drepper <drepper@redhat.com>
1057
1e2692c9
UD
1058 * sysdeps/unix/sysv/linux/check_native.c (__check_native): Simplify
1059 significantly. The device type is also part of the ifinfomsg data.
1060
84e6cc7c 1061 * po/sv.po: Update from translation team.
cbd52634 1062 * po/nl.po: Likewise.
84e6cc7c 1063
f9e2261b
UD
1064 * nscd/cache.c (prune_cache): If cache is empty, instruct caller
1065 to wake up in 24 hours.
1066
43850227
UD
1067 * nscd/gai.c (__ioctl): Define. Include check_native.c.
1068
5742e960
UD
10692007-11-13 Ulrich Drepper <drepper@redhat.com>
1070
1a821d82
UD
1071 * po/cs.po: Update from translation team.
1072 * po/pl.po: Likewise.
1073
773e79b3
UD
1074 * include/ifaddrs.h: Remove in6ai_temporary.
1075 (struct in6addrinfo): Add index element.
1076 Declare __check_native.
1077 * inet/Makefile (aux): Add check_native.
1078 * sysdeps/unix/sysv/linux/check_native.c: New file.
1079 * sysdeps/unix/sysv/linux/check_pf.c: No need to recognize
1080 IFA_F_TEMPORARY. Pass back ifa_index.
1081 * sysdeps/posix/getaddrinfo.c: Remove netlink compatibility code.
1082 (rfc3484_sort): Add new parameter. Implement rule 7 correctly:
1083 call __check_native if necessary.
1084 (getaddrinfo): Fill in index field. Use qsort_r instead of qsort
1085 to sort addresses. Pass information about the results.
1086 * posix/tst-rfc3484.c: Adjust for addition of index field and change
1087 of rfc3484_sort interface.
1088 * posix/tst-rfc3484-2.c: Likewise.
1089
e458144c
UD
1090 * stdlib/stdlib.h: Define __compar_d_fn_t. Declare qsort_r.
1091 * include/stdlib.h: Add hidden_proto for qsort_t and adjust protoype
1092 for _quicksort.
1093 * stdlib/msort.c (qsort): Now a wrapper around qsort_r.
1094 (qsort_r): Renamed from qsort. Take additional parameter and pass it
1095 on as third parameter to compare function and _quicksort.
1096 * stdlib/qsort.c (_quicksort): Take additional parameter and pass on
1097 to the compare function.
1098 * stdlib/Versions [libc] (GLIBC_2.8): Add qsort_r.
1099 * Versions.def: Add GLIBC_2.8 for libc.
1100
bd63f380
UD
1101 * posix/tst-rfc3484.c: Adjust for addition of prefixlen field.
1102 * posix/tst-rfc3484-2.c: Likewise.
1103
5742e960
UD
1104 * include/kernel-features.h: Moved to...
1105 * sysdeps/mach/hurd/kernel-features.h: ...here.
1106
a6ac7fdb
RM
11072007-09-13 H.J. Lu <hongjiu.lu@intel.com>
1108
1109 * sysdeps/i386/i586/memcpy_chk.S: New file.
1110 * sysdeps/i386/i586/mempcpy_chk.S: Likewise.
1111 * sysdeps/i386/i586/memset_chk.S: Likewise.
1112
6f3914d5
UD
11132007-11-12 Ulrich Drepper <drepper@redhat.com>
1114
1115 * include/ifaddrs.c (struct in6addrinfo): Add prefixlen field.
1116 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Always return
1117 list of interfaces. Also store prefix length.
1118 * sysdeps/posix/getaddrinfo.c (sort_result): Add prefixlen element.
1119 (rfc3484_sort): In rule 9, for IPv4 addresses count only matching
1120 prefix if source and destination address are in the same subnet.
1121 (getaddrinfo): Always call __check_pf. Fill in prefixlen field.
1122 Always look for matching record in in6ai list.
1123 Correct source_addr_len value for IPv6->IPv4 converted records.
1124
78cf5f6a
RM
11252007-11-11 Roland McGrath <roland@frob.com>
1126
1127 * include/kernel-features.h: New file.
1128
7f745396
UD
11292007-11-10 Ulrich Drepper <drepper@redhat.com>
1130
01e7fdbb
UD
1131 * sysdeps/pthread/aio_misc.c (handle_fildes_io): Avoid unnecessary
1132 complications for 64-bit platforms.
1133
7f745396
UD
1134 * sysdeps/unix/sysv/linux/open64.c: Move __open64_2 implementation to..
1135 * sysdeps/unix/sysv/linux/open64_2.c: ...here. New file.
1136 * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines): Add
1137 open64_2.
1138 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Add open and creat
1139 entries.
1140 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
1141 * sysdeps/wordsize-64/alphasort.c: New file.
1142 * sysdeps/wordsize-64/alphasort64.c: New file.
1143 * sysdeps/wordsize-64/fseeko.c: New file.
1144 * sysdeps/wordsize-64/fseeko64.c: New file.
1145 * sysdeps/wordsize-64/ftello.c: New file.
1146 * sysdeps/wordsize-64/ftello64.c: New file.
1147 * sysdeps/wordsize-64/ftw.c: New file.
1148 * sysdeps/wordsize-64/ftw64.c: New file.
1149 * sysdeps/wordsize-64/iofgetpos.c: New file.
1150 * sysdeps/wordsize-64/iofgetpos64.c: New file.
1151 * sysdeps/wordsize-64/iofopen.c: New file.
1152 * sysdeps/wordsize-64/iofopen64.c: New file.
1153 * sysdeps/wordsize-64/iofsetpos.c: New file.
1154 * sysdeps/wordsize-64/iofsetpos64.c: New file.
1155 * sysdeps/wordsize-64/lockf.c: New file.
1156 * sysdeps/wordsize-64/lockf64.c: New file.
1157 * sysdeps/wordsize-64/mkostemp.c: New file.
1158 * sysdeps/wordsize-64/mkostemp64.c: New file.
1159 * sysdeps/wordsize-64/mkstemp.c: New file.
1160 * sysdeps/wordsize-64/mkstemp64.c: New file.
1161 * sysdeps/wordsize-64/scandir.c: New file.
1162 * sysdeps/wordsize-64/scandir64.c: New file.
1163 * sysdeps/wordsize-64/tmpfile.c: New file.
1164 * sysdeps/wordsize-64/tmpfile64.c: New file.
1165 * sysdeps/wordsize-64/versionsort.c: New file.
1166 * sysdeps/wordsize-64/versionsort64.c: New file.
1167 * sysdeps/unix/sysv/linux/wordsize-64/aio_read.c: New file.
1168 * sysdeps/unix/sysv/linux/wordsize-64/aio_read64.c: New file.
1169 * sysdeps/unix/sysv/linux/wordsize-64/aio_write.c: New file.
1170 * sysdeps/unix/sysv/linux/wordsize-64/aio_write64.c: New file.
1171 * sysdeps/unix/sysv/linux/wordsize-64/creat64.c: New file.
1172 * sysdeps/unix/sysv/linux/wordsize-64/getdirentries.c: New file.
1173 * sysdeps/unix/sysv/linux/wordsize-64/getdirentries64.c: New file.
1174 * sysdeps/unix/sysv/linux/wordsize-64/lio_listio.c: New file.
1175 * sysdeps/unix/sysv/linux/wordsize-64/lio_listio64.c: New file.
1176 * sysdeps/unix/sysv/linux/wordsize-64/open64.c: New file.
1177 * sysdeps/unix/sysv/linux/wordsize-64/openat.c: New file.
1178 * sysdeps/unix/sysv/linux/wordsize-64/openat64.c: New file.
1179
1180 * crypt/sha256-crypt.c: Fix a comment.
1181 * crypt/sha512-crypt.c: Likewise.
1182
f6ed654c
UD
11832007-11-07 H.J. Lu <hongjiu.lu@intel.com>
1184
1185 * sysdeps/x86_64/memset.S: Add sfence after movnti.
1186
f2a8406a
UD
11872007-11-07 Ulrich Drepper <drepper@redhat.com>
1188
1189 [BZ #5277]
1190 * iconv/loop.c (STANDARD_TO_LOOP_ERR_HANDLER): If conversion failed
1191 because output buffer is too small break, don't loop.
1192 * iconvdata/Makefile (tests): Add bug-iconv6.
1193 * iconvdata/bug-iconv6.c: New file.
1194
7fe4e0e8
UD
11952007-11-06 Ulrich Drepper <drepper@redhat.com>
1196
9ca230d6
UD
1197 * stdio-common/vfprintf.c (vfprintf): Compute necessary buffer size
1198 with size_t type.
1199 * stdio-common/printf_fp.c (__print_fp): Change chars_needed type to
1200 size_t. Add casts where needed.
1201
7fe4e0e8
UD
1202 * nscd/selinux.c (nscd_request_avc_has_perm): When compiled with
1203 old headers, don't call avc_has_perm if we don't have the
1204 permission information.
1205
b92e3780
UD
12062007-11-05 Daniel Jacobowitz <dan@codesourcery.com>
1207
1208 * elf/rtld.c (dl_main): Use the page size to find the map start.
1209
ffb1b882
UD
12102007-11-05 Ulrich Drepper <drepper@redhat.com>
1211
94a749f6
UD
1212 * time/tzfile.c (__tzfile_read): Fix check for version 0 data files.
1213 Patch by Szymon Siwek <sls@poczta.wp.pl>.
1214
ffb1b882
UD
1215 * nscd/aicache.c (addhstaiX): Check herrno after IPv4 lookup only
1216 when the lookup call failed.
1217
1218 * nscd/nscd.h (struct database_dyn): Rename prunelock to prune_lock.
1219 Add prune_cond and wakeup_time.
1220 (CACHE_PRUNE_INTERNAL): Define.
1221 Update declarations of prune_cache and setup_thread.
1222 * nscd/connections.c (dbs): Update initializers.
1223 (CACHE_PRUNE_INTERNAL): Moved to nscd.h.
1224 (nscd_init): Default number of threads is now 4.
1225 (invalidate_cache): Take lock before calling prune_cache.
1226 (handle_request): If SELinux forbids the request, say so.
1227 (readylist_cond): Use static initializer.
1228 (nscd_run_prune): New function. Used only by pruning threads.
1229 (nscd_run_worder): Renamed from nscd_run. Remove support for pruning
1230 here.
1231 (fd_ready): Update nscd_run reference.
1232 (start_threads): No need to initialize readylist_cond.
1233 Start pruning threads separately.
1234 * nscd/nscd_setup_thread.c: Change return value type to int and always
1235 return 0.
1236 * sysdeps/unix/sysv/linux/nscd_setup_thread.c: Change return value type
1237 to int and return nonzero value if we can use the TID address hack.
1238 * nscd/cache.c (cache_add): If next wakeup time of cleanup thread for
1239 the database is later than the new entry's timeout, update the
1240 wakeup time and wake the cleanup thread.
1241 (prune_cache): Return seconds the next entry in the database is still
1242 valid. Remove locking for pruning here.
1243 * nscd/nscd.conf: Document default number of threads.
1244
4c48ef06
UD
12452007-10-31 Ulrich Drepper <drepper@redhat.com>
1246
41ff2a49
UD
1247 * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Make sure
1248 stack is properly aligned for the target function.
1249 Correct unwind info.
ffb1b882 1250
4c48ef06
UD
1251 * elf/rtld.c (dl_main): Initialize stack and pointer guard early
1252 when using auditing libraries.
1253
384ca551
UD
12542007-10-29 Ulrich Drepper <drepper@redhat.com>
1255
31e2791c
UD
1256 * resolv/Versions [libresolv] (GLIBC_PRIVATE): Add
1257 _nss_dns_getnetbyaddr2_r.
1258 * resolv/nss_dns/dns-host.c: Define _nss_dns_getnetbyaddr2_r. Pass
1259 extra parameter to getanswer_r.
1260 (_nss_dns_getnetbyaddr_r): Now a wrapper around
1261 _nss_dns_getnetbyaddr2_r.
1262
384ca551
UD
1263 * nscd/Makefile (nscd-modules): Replace gethstbynm2_r with
1264 gethstbynm3_r.
1265 * nscd/gethstbynm2_r.c: Remove.
1266 * nscd/gethstbynm3_r.c: New file.
1267 * nscd/aicache.c (addhstaiX): Use __gethostbyaddr2_r instead of
1268 __gethostbyaddr_r.
1269 * nscd/gethstbyad_r.c: Generate __gethostbyaddr2_r function. Define
1270 __gethostbyaddr_r compatibility wrapper.
1271 * nscd/hstcache.c (cache_addhst): Add ttl parameter. Use it when
1272 determining timeout of entry.
1273 (lookup): Take new parameter and pass it to __gethostbyname3_r and
1274 __gethostbyaddr2_r.
1275 (addhstbyX): Pass reference to variable for TTL to lookup and
1276 cache_addhst.
1277 * nss/Versions [glibc] (GLIBC_PRIVATE): Export __nss_passwd_lookup2,
1278 __nss_group_lookup2, __nss_hosts_lookup2, __nss_services_lookup2,
1279 and __nss_next2. Remove __nss_services_lookup.
1280 * nss/XXX-lookup.c: Name function now *_lookup2. Add new parameter.
1281 Add compat wrapper.
1282 * nss/getXXbyYY_r.c: Changes to call new *_lookup2 functions and
1283 __nss_next2.
1284 * nss/getXXent_r.c: Likewise.
1285 * nss/getnssent_r.c: Likewise.
1286 * nss/nsswitch.c (__nss_lookup): Add new parameter. If first function
1287 does not exist in module, try the optional second name.
1288 (__nss_next2): New function.
1289 (__nss_next): Now wrapper around __nss_next2.
1290 * nss/nsswitch.h: Adjust __nss_lookup prototype.
1291 Declare __nss_next2.
1292 Adjust definition of db_lookup_function type.
1293 * nss/service-lookup.c: Define NO_COMPAT.
1294 * include/netdb.h: Declare __gethostbyaddr2_r and __gethostbyname3_r.
1295 * inet/ether_hton.c: Use __nss_next2 instead of __nss_next.
1296 * inet/ether_ntoh.c: Likewise.
1297 * sunrpc/netname.c: Likewise.
1298 * sunrpc/publickey.c: Likewise.
1299 * inet/getnetgrent.c: Likewise. Adjust calls to __nss_lookup.
1300 * inet/gethstbyad_r.c (DB_LOOKUP_FCT): Change to __nss_hosts_lookup2.
1301 * inet/gethstbynm2_r.c (DB_LOOKUP_FCT): Likewise.
1302 * inet/gethstbynm_r.c (DB_LOOKUP_FCT): Likewise.
1303 * inet/gethstent_r.c (DB_LOOKUP_FCT): Likewise.
1304
1305 * nscd/aicache.c (addhstaiX): Fix default TTL handling.
1306
1307 * inet/getnetgrent.c (setup): Encrypt static pointer.
1308
88197030
UD
13092007-10-28 Ulrich Drepper <drepper@redhat.com>
1310
f160a450
UD
1311 [BZ #5204]
1312 * crypt/sha256c-test.c: Define TIMEOUT to 6 for ancient hardware.
1313 * crypt/sha512c-test.c: Likewise.
1314
4c6b2202
UD
1315 [BZ #5225]
1316 * stdio-common/vfscanf.c (_IO_vfwscanf): Don't misuse wp pointer
1317 to keep track of end of %[ format string element.
22c915ac
UD
1318 * stdio-common/Makefile (tests): Add bug20.
1319 * stdio-common/bug20.c: New file.
4c6b2202 1320
88197030
UD
1321 [BZ #5222]
1322 * elf/dl-load.c (_dl_rtld_di_serinfo): Correct handling of short
1323 path elements in counting mode.
1324
05d69147
UD
13252007-10-27 Andreas Jaeger <aj@suse.de>
1326
94833f11
UD
1327 [BZ #5040]
1328 * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLRDHUP): Add value.
1329
05d69147
UD
1330 [BZ #3112]
1331 * sysdeps/ia64/backtrace.c (init): Free shared library if incorrect.
1332 (__cleanup): Free shared library when exiting.
1333 * sysdeps/i386/backtrace.c (init): Free shared library if incorrect.
1334 (__cleanup): Free shared library when exiting.
1335
e6b29af8
UD
13362006-04-14 H.J. Lu <hongjiu.lu@intel.com>
1337
1338 [BZ #2549]
1339 * math/libm-test.inc (check_float_internal): Support
1340 denormalized return.
1341
ad3371fb
UD
13422007-10-23 Andreas Jaeger <aj@suse.de>
1343
1344 [BZ #5208]
1345 * sysdeps/unix/sysv/linux/readahead.c (__readahead): Use
1346 __LONG_LONG_PAIR to handle little endian byte order.
1347 Suggested by abhishekrai@google.com
1348
666aa020
UD
13492007-10-27 Ulrich Drepper <drepper@redhat.com>
1350
1351 * malloc/arena.c [!NO_THREADS]: Use ATFORK_MEM if defined.
1352
8ad343b3
UD
13532007-10-26 Ulrich Drepper <drepper@redhat.com>
1354
1355 * nscd/cache.c (prune_cache): Move test for modified file outside
1356 of locking.
1357
9251c568
AJ
13582007-10-21 Andreas Jaeger <aj@suse.de>
1359
1360 * manual/texinfo.tex: Update to latest version.
1361
1362 * manual/sysinfo.texi (System Parameters): Fix Formatting.
1363
1364 * manual/arith.texi (Status bit operations): Fix formatting.
1365
1366 * manual/errno.texi (Error Messages): Fix formatting.
1367
1368 * manual/sysinfo.texi (System Parameters): Fix formatting.
1369
1370 * manual/libc.texinfo: Update VERSION and UPDATED.
1371
260b2e06
RM
13722007-10-19 Roland McGrath <roland@redhat.com>
1373
1374 * elf/Makefile ($(objpfx)ld.so): Use $(AWK).
1375
46ae8850
JJ
13762007-10-06 David S. Miller <davem@davemloft.net>
1377
1378 * configure.in: Add sparcv9v2 and sparc64v2.
1379 * scripts/config.sub: Likewise.
1380 * configure: Regenerate.
1381 * elf/elf.h (HWCAP_SPARC_N2): New.
1382 * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Bump to 8.
1383 * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add 'v9v2'.
1384 (HWCAP_IMPORTANT): Add HWCAP_SPARC_N2.
1385 * sysdeps/sparc/sparc32/sparcv9/sparcv9v2/memcpy.S: New file.
1386 * sysdeps/sparc/sparc32/sparcv9/sparcv9v2/memset.S: New file.
1387 * sysdeps/sparc/sparc64/sparcv9v2/memcpy.S: New file.
1388 * sysdeps/sparc/sparc64/sparcv9v2/memset.S: New file.
1389
6fbfbd80
UD
13902007-10-18 Ulrich Drepper <drepper@redhat.com>
1391
1392 * sunrpc/clnt_udp.c (clntudp_call): Don't block in recvfrom call
1393 even if the poll result indicates there is data to read.
1394 Patch by Jeff Moyer <jmoyer@redhat.com>.
1395
39cfc9fa
RM
13962007-10-18 Roland McGrath <roland@redhat.com>
1397
1398 * elf/elf.h (NT_PPC_VMX): New macro.
28919a77 1399
39cfc9fa 14002007-10-17 Ulrich Drepper <drepper@redhat.com>
28919a77
UD
1401
1402 * version.h (VERSION): Set to 2.7.90.
1403
ed13ccf1
JJ
14042007-10-17 Jakub Jelinek <jakub@redhat.com>
1405
1406 * sysdeps/x86_64/memset.S (bzero): Renamed to __bzero. Add
1407 weak_alias.
1408
ee9fd869
RM
14092007-10-17 Roland McGrath <roland@frob.com>
1410
1411 * sysdeps/mach/hurd/bits/fcntl.h [__USE_GNU__] (F_DUPFD_CLOEXEC): New.
1412 * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Implement it.
1413
1aa5e4d7
UD
14142007-10-17 Ulrich Drepper <drepper@redhat.com>
1415
50c9fbbf 1416 * version.h (VERSION): Bump to 2.7.
777bc4bf 1417 * include/features.h (__GLIBC_MINOR__): Bump to 7.
50c9fbbf 1418
58423c7d
UD
1419 [BZ #5186]
1420 * time/tzset.c (__tz_convert): Don't force testing for a change of
1421 TZ if not called from localtime. But then also see whether the
1422 file changed, in case __use_tzfile is set.
1423
1aa5e4d7
UD
1424 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define F_DUPFD_CLOEXEC.
1425 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
1426 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
1427 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
1428 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
1429 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
1430 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
1431 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
1432
fc4837e5
UD
14332007-10-17 Jakub Jelinek <jakub@redhat.com>
1434
1435 * sysdeps/posix/getaddrinfo.c (getaddrinfo): When sorting addresses
1436 and admin selects to be able to replace the gai.conf file, lock
1437 data structures around the qsort call.
1438
62eaf7c8
UD
14392007-10-17 Ulrich Drepper <drepper@redhat.com>
1440
406f28db
UD
1441 * sysdeps/x86_64/cacheinfo.c: Comment out code added in support of
1442 new memset.
ac1cb5da 1443 * sysdeps/x86_64/memset.S: Revert to old version for now. The cost is
406f28db
UD
1444 too high for the improvements. Implement bzero unconditionally for
1445 use in libc.
ac1cb5da
UD
1446
14472007-10-17 Ulrich Drepper <drepper@redhat.com>
1448 Jakub Jelinek <jakub@redhat.com>
1449
62eaf7c8
UD
1450 * time/tzfile.c (__tzfile_read): Read POSIX TZ string if available
1451 even when time_t is 32-bit.
1452 (__tzfile_compute): Override POSIX TZ string STD/DST zone names if
1453 timezone data read by __tzfile_default. Ensure __tzname[0] is
1454 always set after the search.
1455
6a649d25
UD
14562007-10-16 Ulrich Drepper <drepper@redhat.com>
1457
1458 * time/tzfile.c (__tzfile_read): Help the compiler recognize
1459 unreachable code on 32-bit machines.
1460
800d6f9e
UD
14612007-10-16 Jakub Jelinek <jakub@redhat.com>
1462
1463 [BZ #5184]
1464 * time/strftime_l.c: Include stdbool.h.
1465 (my_strftime): New wrapper, old function renamed to...
1466 (__strftime_internal): ... new function. Add tzset_called
1467 argument, pass it down to recursive calls, don't call tzset ()
1468 if already true, set to true after call to tzset ().
62eaf7c8 1469
69819d92
UD
14702007-10-16 Ulrich Drepper <drepper@redhat.com>
1471
1472 * time/tzfile.c (__tzfile_read): Take extra memory requested by caller
1473 into account when copying TZ string.
1474
62eaf7c8
UD
14752007-10-16 Jakub Jelinek <jakub@redhat.com>
1476
1477 * time/tzfile.c (__tzfile_compute): For use_last case set i to
1478 num_transition rather than num_transitions - 1.
1479
0308ad66
JJ
14802007-10-16 Jakub Jelinek <jakub@redhat.com>
1481
8d137b60
JJ
1482 * sysdeps/x86_64/memset.S (memset): Fix sse2_nt_move
1483 PIC indirect jump.
1484
0308ad66
JJ
1485 * sysdeps/x86_64/memset.S: Jump from bzero to memset using
1486 a local label rather than HIDDEN_JUMPTARGET.
1487
e2b393bc
UD
14882007-10-15 Ulrich Drepper <drepper@redhat.com>
1489
1490 * sysdeps/x86_64/cacheinfo.c (__x86_64_shared_cache_size): Define.
1491 (init_cacheinfo): Initialize it.
1492 * sysdeps/x86_64/memset.S: Use __x86_64_shared_cache_size.
1493 Always define bzero.
1494 Remove non-glibc code.
1495 * sysdeps/x86_64/bzero.S: Make an empty file.
1496
14972007-10-15 H.J. Lu <hongjiu.lu@intel.com>
1498
1499 * sysdeps/x86_64/cacheinfo.c
1500 (__x86_64_preferred_memory_instruction): New.
1501 (init_cacheinfo): Initialize __x86_64_preferred_memory_instruction.
1502
1503 * sysdeps/x86_64/memset.S: Rewrite.
1504
0fbfcb7b
RM
15052007-10-15 Roland McGrath <roland@redhat.com>
1506
1507 * po/libc.pot: Regenerated.
1508
2884dad4
UD
15092007-10-15 Ulrich Drepper <drepper@redhat.com>
1510
e2b393bc 1511 * nss/getXXbyYY_r.c (REENTRANT_NAME): Mangle startp and start_fct
d96a2216
UD
1512 pointers.
1513
2884dad4
UD
1514 [BZ #3425]
1515 * resolv/nss_dns/dns-host.c (getanswer_r): Fail with
1516 NSS_STATUS_NOTFOUND if the server replied with only a CNAME and no
1517 address record to T_A/T_AAAA requests.
1518
89dc9d4c
UD
15192007-10-14 Ulrich Drepper <drepper@redhat.com>
1520
8d97ac13
UD
1521 * posix/glob.c: Reimplement link_exists_p to use fstatat64.
1522
1b6aa63f
UD
1523 * posix/glob.c: Add some branch prediction throughout.
1524
895a08c0
UD
1525 * nscd/nscd_getgr_r.c (nscd_getgr_r): Store result of successful
1526 read from nscd.
1527
6f55ed88
UD
1528 * sysdeps/posix/getaddrinfo.c (struct sort_result): Add
1529 service_order.
8d62c8ab
UD
1530 (rfc3484_sort): Make sure that even if qsort doesn't support
1531 stable sorting out sorting here is stable by comparing service_order.
6f55ed88 1532 (getaddrinfo): Initialize service_order.
a94673e6
UD
1533 * posix/tst-rfc3484.c (do_test): Adjust for addition of
1534 service_order field to sorting structure.
dfcf64ce 1535 * posix/tst-rfc3484-2.c (do_test): Likewise.
6f55ed88 1536
fa76dde2
UD
1537 * include/time.h: Declare __tzset_parse_tz and __tzset_compute.
1538 * time/tzset.c (tzset_internal): Break TZ string parsing out into
1539 __tzset_parse_tz and updating of daylight, timezone, tzname into
1540 update_vars.
1541 (__tz_compute): Renamed from tz_compute. Take additional parameters.
1542 (__tz_convert): Updating of tm_isdst, tm_zone, and tm_gmtoff now
1543 happens in __tz_compute.
1544 * time/tzfile.c (__tzfile_read): Also read TZ string.
1545 (find_transition): Fold into __tzfile_compute.
1546 (__tzfile_compute): For times beyond the last transition try to
1547 use the TZ string.
1548 * timezone/tst-timezone.c: Information in daylight and tzname does
1549 change for Asia/Tokyo timezone with more concrete information.
1550 Remove the test.
1551
1552 * include/stdio.h: Add libc_hidden_proto for ftello.
1553 * libio/ftello.c: Add libc_hidden_def.
1554
89dc9d4c
UD
1555 [BZ #1140]
1556 * time/tzfile.c (__tzfile_compute): Compute tzname[] values based
1557 on the specified time and not the last entries in the file. Move
1558 code to determine tzname[] to...
1559 (find_transition): ...here. Add ugly guess for times before the
1560 first transition.
1561
f7140274
UD
15622007-10-13 Ulrich Drepper <drepper@redhat.com>
1563
cfca0aa3
UD
1564 [BZ #3195]
1565 * nscd/nscd_getai.c (__nscd_getai): Set errno to 0 in case we found
1566 no entry.
1567 * nscd/nscd_getgr.c (nscd_getgr_r): Likewise.
1568 * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
1569 * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
1570 * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
1571
43d3e6bd
UD
1572 * nscd/nscd_getgr_r.c (nscd_getgr_r): Optimize a bit: use simpler
1573 read mechanism when there are no group members and avoid no-op
1574 read syscall in this case.
1575
f7140274
UD
1576 [BZ #3242]
1577 * nscd/nscd_helper.c (wait_on_socket): Take timeout as parameter.
1578 (__readall): If reading failed due to EAGAIN error wait a bit
1579 and possibly try again.
1580 (__readvall): Likewise.
1581
656f02ce
UD
15822007-10-13 Bruno Haible <bruno@clisp.org>
1583
1584 * intl/dcigettext.c (_nl_find_msg): Unlock the conversions_lock
1585 when we cannot recode the message.
1586
0ea49677
UD
15872007-10-13 Ulrich Drepper <drepper@redhat.com>
1588
1589 [BZ #4359]
1590 * libio/__freading.c (__freading): Don't return true for
ed36f224
UD
1591 write-only streams. For read/write streams, check whether we
1592 performed a read operation already.
7e39d802
UD
1593 * libio/Makefile (tests): Add tst-ext2.
1594 * libio/tst-ext2.c: New file.
0ea49677 1595
78a9b2dc
UD
15962007-10-12 Ulrich Drepper <drepper@redhat.com>
1597
fab1a490
UD
1598 * locale/programs/repertoire.c (repertoire_read): Always free
1599 memory for repertoire file name [Coverity CID 270].
1600
78a9b2dc
UD
1601 * elf/cache.c (save_aux_cache): Free memory allocated for
1602 temporary file name [Coverity CID 267].
1603
29d49a1a
JJ
16042007-10-12 Jakub Jelinek <jakub@redhat.com>
1605
1606 * misc/Makefile (headers): Add bits/error.h.
1607
d074d36d
UD
16082007-10-12 Ulrich Drepper <drepper@redhat.com>
1609
b7d1c5fa
UD
1610 * posix/fnmatch_loop.c: Take rule index returned as part of
1611 findidx return value into account when accessing weights.
1612 * posix/regcomp.c: Likewise.
1613 * posix/regexec.c: Likewise.
1614
d074d36d
UD
1615 * locale/programs/ld-collate.c (collate_read): Optimize a bit.
1616 (skip_to): Fix problems with parameter of elifdef/elifndef.
1617
26a51060
UD
16182007-10-11 Ulrich Drepper <drepper@redhat.com>
1619
1620 * iconv/gconv_simple.c: Add some branch prediction.
1621
6dd3748b
UD
16222007-10-12 Jakub Jelinek <jakub@redhat.com>
1623
1624 * locale/programs/ld-collate.c (collate_read): If ignore_content
1625 and nowtok is tok_define, eat any tok_eol tokens.
1626
d0b5557d
JJ
16272007-10-11 Jakub Jelinek <jakub@redhat.com>
1628
1629 * sysdeps/gnu/netinet/tcp.h: Include sys/socket.h if __USE_MISC.
1630 (struct tcp_md5sig): Change tcpm_addr type to struct sockaddr_storage.
1631
1632 * inet/netinet/in.h: Don't include bits/socket.h.
1633 * sysdeps/unix/sysv/linux/bits/socket.h: Only check _SYS_SOCKET_H
1634 macro.
1635 * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Likewise.
1636
3a054d7a
UD
16372007-10-10 Ulrich Drepper <drepper@redhat.com>
1638
1639 * locale/programs/locfile-token.h: Remove tok_elif, add tok_elifdef
1640 and tok_elifndef.
1641 * locale/programs/locfile-kw.gperf: Likewise.
1642 * locale/programs/ld-collate.c: Implement primitive preprocessor.
1643
c06b7169
UD
16442007-10-10 Jakub Jelinek <jakub@redhat.com>
1645
1646 * stdio-common/printf-parse.h: Include string.h and wchar.h.
1647 (__find_specwc): Change into __extern_always_inline function.
1648 (__find_specmb): Likewise. Remove ps argument. Use __strchrnul.
1649 (__parse_one_specmb): Remove ps argument.
1650 * stdio-common/vfprintf.c (vfprintf): Remove mbstate variable.
1651 Adjust __find_specmb and __parse_one_specmb callers.
1652 * stdio-common/printf-prs.c (parse_printf_format): Likewise.
1653 * stdio-common/printf-parsemb.c (__find_specwc, __find_specmb):
1654 Removed.
1655 (__parse_one_specmb): Remove ps argument, adjust __find_specmb
1656 caller.
1657
5a01ab7b
UD
16582007-10-09 Ulrich Drepper <drepper@redhat.com>
1659
1660 * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Work around problem
1661 with some Pentium Ds.
1662
e3f8e049
UD
16632007-10-08 Ulrich Drepper <drepper@redhat.com>
1664
1665 * sysdeps/unix/sysv/linux/eventfd_read.c (eventfd_read): Use
1666 __read not read.
1667 * sysdeps/unix/sysv/linux/eventfd_write.c (eventfd_write): Use
1668 __write not write.
1669
a1a363d2
UD
16702007-10-07 Ulrich Drepper <drepper@redhat.com>
1671
a1160714
UD
1672 [BZ #181]
1673 * locale/C-time.c: Set week_1stday data to 19971201.
659a9013
UD
1674 * locale/programs/ld-time.c (time_finish): Default for
1675 first_workday is Monday.
a1160714 1676
bb27a6eb
UD
1677 [BZ #2633]
1678 * wcsmbs/wchar.h: Move many C99 functions into std namespace.
1679
c8d48fae
UD
1680 [BZ #5103]
1681 * posix/glob.c (glob): Recognize patterns starting \/.
1682 * posix/tst-gnuglob.c (find_file): Handle absolute path names.
1683 (main): Add test for pattern starting \/.
1684
a1a363d2
UD
1685 * misc/error.h: Use __const instead of const.
1686 * misc/bits/error.h: Likewise.
1687
16882007-10-07 Andreas Jaeger <aj@suse.de>
1689
1690 * include/bits/error.h: New file.
1691
1692 * misc/bits/error.h (error_at_line): Fix prototype.
1693
71894681
UD
16942007-10-06 Ulrich Drepper <drepper@redhat.com>
1695
a6fa5328
UD
1696 [BZ #3924]
1697 * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix a few
1698 more little bugs in creating the stack frame when pltexit has to
1699 be called.
1700
8c7661bc 1701 * nscd/nscd_helper.c (__nscd_cache_search): Prevent endless loops.
50607309 1702 * nscd/connections.c (verify_persistent_db): Recognize circular lists.
8c7661bc 1703
c039eedd
UD
1704 [BZ #4407]
1705 * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Fix *signgamp for -0.0.
1706 * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
1707 * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
1708 * math/libm-test.inc: Add test for this case.
1709
71894681
UD
1710 [BZ #5010]
1711 * sunrpc/svc.c (struct svc_callout): Add sc_mapped element.
1712 (svc_register): Initialize sc_mapped. Set to TRUE if call to
1713 map service succeeded.
1714 (svc_is_mapped): New function.
1715 (svc_unregister): Use it before trying to unmap service.
1716
34c2c092
UD
17172007-10-05 Ulrich Drepper <drepper@redhat.com>
1718
d10737e4
UD
1719 * timezone/zic.c: Update from tzcode2007h.
1720
1721 [BZ #5063]
1722 * timezone/africa: Update from tzdata2007h.
1723 * timezone/antarctica: Likewise.
1724 * timezone/asia: Likewise.
1725 * timezone/australasia: Likewise.
1726 * timezone/europe: Likewise.
1727 * timezone/leapseconds: Likewise.
1728 * timezone/northamerica: Likewise.
1729 * timezone/southamerica: Likewise.
1730 * timzeone/zone.tab: Likewise.
1731
0304f168
UD
1732 [BZ #5104]
1733 * elf/do-lookup.h (do_lookup_x): Don't ignore STT_COMMON symbols.
1734
a83b5649
UD
1735 [BZ #5113]
1736 * string/bits/string2.h (__strdup): Cast parameters to calloc to
1737 avoid warning with -Wconversion.
1738 (__strndup): Likewise.
c039eedd 1739 Half the patch by Christian Iseli <christian.iseli@licr.org>.
a83b5649 1740
3e6ce4d7
UD
1741 [BZ #5112]
1742 * nscd/connections.c (restart): Don't resync if database is
1743 disabled. Patch mostly by Brian De Wolf <bldewolf@csupomona.edu>.
1744
8e351378
UD
1745 * sysdeps/gnu/netinet/tcp.h: Define TCP_MD5SIG, TCP_MD5SIG_MAXKEYLEN,
1746 struct tcp_md5sig. Extend struct tcp_info according to recent kernels.
1747
1748 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add eventfd,
1749 evetnfd_read, eventfd_write.
1750 * sysdeps/unix/sysv/linux/eventfd.c: New file.
1751 * sysdeps/unix/sysv/linux/eventfd_read.c: New file.
1752 * sysdeps/unix/sysv/linux/eventfd_write.c: New file.
1753 * sysdeps/unix/sysv/linux/sys/eventfd.h: New file.
d10737e4 1754 * sysdeps/unix/sysv/linux/Versions: Export eventfd, eventfd_read,
8e351378
UD
1755 eventfd_write for GLIBC_2.7.
1756
34c2c092
UD
1757 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add signalfd.
1758 * sysdeps/unix/sysv/linux/signalfd.c: New file.
1759 * sysdeps/unix/sysv/linux/sys/signalfd.h: New file.
1760 * sysdeps/unix/sysv/linux/Versions: Export signalfd for GLIBC_2.7.
1761
6789aaaa 17622007-10-04 Jakub Jelinek <jakub@redhat.com>
375d9429
UD
1763
1764 * stdlib/msort.c: Include stdint.h.
1765 (struct msort_param): New type.
1766 (msort_with_tmp): Use struct msort_param pointer for unchanging
1767 parameters. Add optimized handling for several common sizes
1768 and indirect sorting mode.
1769 (qsort): Adjust msort_with_tmp callers. For big S use indirect
1770 sorting.
1771 Suggested by Belazougui Djamel .
1772
1773 * stdlib/Makefile (tests): Add tst-qsort2.
1774 * stdlib/tst-qsort2.c: New test.
1775
b80bfc8b
UD
17762007-10-04 Ulrich Drepper <drepper@redhat.com>
1777
174420d2
UD
1778 * login/login_tty.c (login_tty): The Linux kernel can return EBUSY
1779 for dup2 in case another thread races with the current one. Retry
1780 in this case.
1781
b80bfc8b
UD
1782 * misc/error.h: Remove support for use outside of libc. We have to
1783 include <features.h> now. Include <bits/error.h> if possible.
1784 * misc/bits/error.h: New file.
1785
6789aaaa 17862007-10-03 Jakub Jelinek <jakub@redhat.com>
ee868c89 1787
e5dd2178
UD
1788 * string/bits/string3.h (memcpy, memmove, mempcpy, memset, bcopy,
1789 bzero, strcpy, stpcpy, strncpy, strcat, strncat): Use
1790 __extern_always_inline functions unconditionally, drop macros.
1791
ac97dec1
UD
1792 * misc/sys/cdefs.h (__REDIRECT_LDBL, __REDIRECT_NTH_LDBL): New macros.
1793 * wcsmbs/bits/wchar2.h (__swprintf_alias, __vswprintf_alias): Use
1794 __REDIRECT_NTH_LDBL macro rather than __REDIRECT_NTH.
1795
ee868c89
UD
1796 * misc/sys/cdefs.h (__extern_always_inline): For GCC 4.3+
1797 add __artificial__ attribute.
1798
80e069e0
UD
17992007-10-02 Ulrich Drepper <drepper@redhat.com>
1800
6e682cf5
UD
1801 * string/strcoll_l.c (STRCOLL): Correct handling of switching from
1802 backward to forward direction.
1803
90241a20
UD
1804 * string/strcoll_l.c (STRCOLL): Correct test for alloca use.
1805
80e069e0
UD
1806 [BZ #645]
1807 * locale/programs/ld-collate.c (collate_finish): Compare against last
1808 used section which is known to have rules defined.
1809 (collate_read): After order_start, correctly record order of sections
1810 and queue sections up.
1811
035ef8d7
UD
18122007-10-01 Ulrich Drepper <drepper@redhat.com>
1813
95bddc0c
UD
1814 [BZ #5071]
1815 * malloc/malloc.c (mremap_chunk): Avoid resizing of new block has
1816 the same number of pages.
1817 Patch by Tomash Brechko <tomash.brechko@gmail.com>.
1818
c8caf089
UD
1819 * locale/programs/ld-collate.c (collate_read): After initial copy
1820 statement, continue in state 0.
1821
035ef8d7
UD
1822 * include/stdio_ext.h (__fsetlocking): Define as macro.
1823
592a95ee
UD
18242007-09-30 Ulrich Drepper <drepper@redhat.com>
1825
56ebeb41
UD
1826 * locale/programs/ld-collate.c (collate_finish): Compare all bytes
1827 of section order.
1828
592a95ee
UD
1829 * po/pt_BR.po: Fix typo.
1830
6c522e21
UD
18312007-09-29 Ulrich Drepper <drepper@redhat.com>
1832
8ad5c3cd
UD
1833 * iconvdata/Makefile (modules): Add ISO8859-9E.
1834 (distribute): Add iso8859-9e.c.
1835 (gen-8bit-gap-modules): Add iso8859-9e.
1836 * iconvdata/iso8859-9e.c: New file.
1837 * iconvdata/gconv-modules: Add entries for ISO-8859-9E.
1838 * iconvdata/TESTS: Likewise.
1839 * iconvdata/tst-tables.sh: Likewise.
1840
1841 * iconvdata/koi8-r.c (HAS_HOLES): Define to 0.
1842
6c522e21
UD
1843 * locale/iso-639.def: Add several new entries.
1844
385b4cf4
UD
18452007-09-24 Jakub Jelinek <jakub@redhat.com>
1846
1847 * sysdeps/generic/ldsodefs.h (struct dl_scope_free_list): Store
1848 void * pointers instead of struct link_map **.
1849 (_dl_scope_free): Change argument type to void *.
1850 * include/link.h (struct link_map): Change type of l_reldeps
1851 to struct link_map_reldeps, move l_reldepsact into that
1852 struct too.
1853 * elf/dl-deps.c: Include atomic.h.
1854 (_dl_map_object_deps): Only change l->l_initfini when it is
1855 fully populated, use _dl_scope_free for freeing it. Optimize
1856 removal of libs from reldeps by using l_reserved flag, when
1857 some removal is needed, allocate a new list instead of
1858 reallocating and free the old with _dl_scope_free. Adjust
1859 for l_reldeps and l_reldepsact changes.
1860 * elf/dl-lookup.c (add_dependency): Likewise. Reorganize to allow
1861 searching in l_initfini and l_reldeps without holding dl_load_lock.
1862 * elf/dl-fini.c (_dl_sort_fini): Adjust for l_reldeps and
1863 l_reldepsact changes.
1864 * elf/dl-close.c (_dl_close_worker): Likewise.
1865 * elf/dl-open.c (_dl_scope_free): Change argument type to void *.
1866
90bf831b
UD
18672007-09-28 Ulrich Drepper <drepper@redhat.com>
1868
1869 * iconvdata/Makefile (modules): Add KOI8-RU.
1870 (distribute): Add koi8-ru.c.
1871 (gen-8bit-gap-modules): Add koi8-ru.
1872 * iconvdata/koi8-ru.c: New file.
1873 * iconvdata/gconv-modules: Add entries for KOI8-RU.
1874 * iconvdata/TESTS: Likewise.
1875 * iconvdata/tst-tables.sh: Likewise.
1876
1877 * iconvdata/koi8-r.c (HAS_HOLES): Define to 0.
1878
d6cd6bf4
UD
18792007-09-26 Jakub Jelinek <jakub@redhat.com>
1880
1881 * misc/sys/cdefs.h (__warndecl, __errordecl): For GCC 4.3+ define
1882 with __warning__/__error__ attributes.
1883 (__warnattr): Define.
1884 * stdlib/bits/stdlib.h (__realpath_chk_warn, __ptsname_r_chk_warn,
1885 __mbstowcs_chk_warn, __wcstombs_chk_warn): New aliases with
1886 __warnattr.
1887 (realpath, ptsname_r, mbstowcs, wcstombs): Call __*_chk_warn instead
1888 of __*_chk if compile time detectable overflow is found.
1889 * libio/bits/stdio2.h (__fgets_chk_warn, __fread_chk_warn,
1890 __fgets_unlocked_chk_warn, __fread_unlocked_chk_warn): New aliases
1891 with __warnattr.
1892 (fgets, fread, fgets_unlocked, fread_unlocked): Call __*_chk_warn
1893 instead of __*_chk if compile time detectable overflow is found.
1894 (__gets_alias): Rename to...
1895 (__gets_warn): ... this. Add __warnattr.
1896 (gets): Call __gets_warn instead of __gets_alias.
1897 * socket/bits/socket2.h (__recv_chk_warn, __recvfrom_chk_warn): New
1898 aliases with __warnattr.
1899 (recv, recvfrom): Call __*_chk_warn instead of __*_chk if compile
1900 time detectable overflow is found.
1901 * posix/bits/unistd.h (__read_chk_warn, __pread_chk_warn,
1902 __pread64_chk_warn, __readlink_chk_warn, __readlinkat_chk_warn,
1903 __getcwd_chk_warn, __confstr_chk_warn, __getgroups_chk_warn,
1904 __ttyname_r_chk_warn, __getlogin_r_chk_warn, __gethostname_chk_warn,
1905 __getdomainname_chk_warn): New aliases with __warnattr.
1906 (read, pread, pread64, readlink, readlinkat, getcwd, confstr,
1907 getgroups, ttyname_r, getlogin_r, gethostname, getdomainname): Call
1908 __*_chk_warn instead of __*_chk if compile time detectable overflow
1909 is found.
1910 (__getgroups_chk): Rename argument to __listlen from listlen.
1911 (__getwd_alias): Rename to...
1912 (__getwd_warn): ... this. Add __warnattr.
1913 (getwd): Call __getwd_warn instead of __getwd_alias.
1914 * wcsmbs/bits/wchar2.h (__wmemcpy_chk_warn, __wmemmove_chk_warn,
1915 __wmempcpy_chk_warn, __wmemset_chk_warn, __wcsncpy_chk_warn,
1916 __wcpncpy_chk_warn, __fgetws_chk_warn, __fgetws_unlocked_chk_warn,
1917 __mbsrtowcs_chk_warn, __wcsrtombs_chk_warn, __mbsnrtowcs_chk_warn,
1918 __wcsnrtombs_chk_warn): New aliases with __warnattr.
1919 (wmemcpy, wmemmove, wmempcpy, wmemset, mbsrtowcs, wcsrtombs,
1920 mbsnrtowcs, wcsnrtombs): Call __*_chk_warn instead of __*_chk if
1921 compile time detectable overflow is found.
1922 (wcsncpy, wcpncpy): Likewise. For constant __n fix check whether
1923 to use __*_chk or not.
1924 (fgetws, fgetws_unlocked): Divide __bos by sizeof (wchar_t), both
1925 in comparisons which function should be called and in __*_chk*
1926 arguments. Call __*_chk_warn instead of __*_chk if compile time
1927 detectable overflow is found.
1928 (swprintf, vswprintf): Divide __bos by sizeof (wchar_t) in
1929 __*_chk argument.
1930 * debug/tst-chk1.c (do_test): Add a few more tests.
1931
408cfca0
UD
19322007-09-24 Ulrich Drepper <drepper@redhat.com>
1933
1934 [BZ #5058]
1935 * intl/gettextP.h (struct loaded_domain): Add conversions_lock member.
1936 * intl/loadmsgcat.c (_nl_load_domain): Initialize conversions_lock.
1937 (_nl_unload_domain): Finalize conversions_lock.
1938 * intl/dcigettext.c (_nl_find_msg): Take conversions_lock before
1939 handling table of known conversions.
1940
e6eec9ce
JJ
19412007-09-24 Jakub Jelinek <jakub@redhat.com>
1942
1943 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Use
1944 close_not_cancel_no_status instead of close.
1945
a532a41d
UD
19462007-09-13 Aurelien Jarno <aurelien@aurel32.net>
1947
682268ef 1948 [BZ #5028]
408cfca0 1949 * posix/regcomp.c (lookup_collation_sequence_value): Check that
a532a41d
UD
1950 nrules != 0 for multibyte chars.
1951
dec9ed9e
UD
19522007-09-23 Ulrich Drepper <drepper@redhat.com>
1953
91633816
UD
1954 * resolv/ns_print.c (ns_sprintrrf): Handle ns_t_a6 and ns_t_opt.
1955 Provide better error message in case the type is unknown.
1956
9cc198f6
UD
1957 [BZ #4963]
1958 * wcsmbs/wcsnlen.c: Don't reference before checking the length.
1959 * string/stratcliff.c: Make usable to test wide char functions.
1960 * wcsmbs/wcsatcliff.c: New file.
1961 * wcsmbs/Makefiel (tests): Add wcsatcliff.
1962
27f3d446
UD
1963 [BZ #4972]
1964 * iconvdata/Makefile (modules): Add MAC-CENTRALEUROPE.
1965 (distribute): Add mac-centraleurope.c.
1966 (gen-8bit-gap-modules): Add mac-centraleurope.
1967 * iconvdata/mac-centraleurope.c: New file.
1968 * iconvdata/gconv-modules: Add entries for MAC-CENTRALEUROPE.
1969 * iconvdata/TESTS: Likewise.
1970 * iconvdata/tst-tables.sh: Likewise.
1971
dec9ed9e
UD
1972 [BZ #5043]
1973 * iconv/iconv_open.c (iconv_open): For large codeset names use malloc.
1974
0435403c
UD
19752007-09-21 Ulrich Drepper <drepper@redhat.com>
1976
1977 * sysdeps/x86_64/cacheinfo.c (__x86_64_data_cache_size_half): Renamed
1978 from __x86_64_core_cache_size_half.
1979 (init_cacheinfo): Compute shared cache size for AMD processors with
1980 shared L3 correctly.
1981 * sysdeps/x86_64/memcpy.S: Adjust for __x86_64_data_cache_size_half
1982 name change.
1983 Patch in large parts by Evandro Menezes.
1984
c3266dc0
UD
19852007-09-19 Ulrich Drepper <drepper@redhat.com>
1986
715899d1
UD
1987 * elf/dl-lookup.c (add_dependency): Handle failing memory
1988 allocation for dependency list. Remove unnecessary check.
1989
e1db0493
UD
1990 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid unnecessary
1991 open/close when determining source addresses.
1992
c3266dc0
UD
1993 * crypt/Makefile (libcrypt-routines): Add sha256-crypt, sha256,
1994 sha512-crypt, and sha512.
1995 (tests): Add sha256test, sha256c-test, sha512test, and sha512c-test.
1996 (distribute): Add sha256.h and sha512.h.
1997 * crypt/crypt-entry.c (crypt): Recognize the new $5$ and $6$ prefixes
1998 and call the appropriate code.
1999 * crypt/sha256-crypt.c: New file.
2000 * crypt/sha256.c: New file.
2001 * crypt/sha256.h: New file.
2002 * crypt/sha256c-test.c: New file.
2003 * crypt/sha256test.c: New file.
2004 * crypt/sha512-crypt.c: New file.
2005 * crypt/sha512.c: New file.
2006 * crypt/sha512.h: New file.
2007 * crypt/sha512c-test.c: New file.
2008 * crypt/sha512test.c: New file.
2009
ddf51ecb
JJ
20102007-09-19 Jakub Jelinek <jakub@redhat.com>
2011
2012 * misc/bits/syslog.h (syslog): Remove extraneous argument from
2013 the inline, pass __USE_FORTIFY_LEVEL - 1 as second argument to
2014 __syslog_chk.
2015
b90395e6
UD
20162007-09-18 Jakub Jelinek <jakub@redhat.com>
2017
76c0bea7
JJ
2018 * locale/programs/charmap-dir.c (charmap_aliases): Use %ms instead of
2019 %as in fscanf format strings.
2020
00680568
JJ
2021 * sysdeps/sparc/sparc32/elf/start.S: Remove cfi_* markup.
2022 * sysdeps/sparc/sparc64/elf/start.S: Likewise.
c3266dc0
UD
2023 * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__thread_start):
2024 Likewise.
2025 * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__thread_start):
2026 Likewise.
00680568 2027
b90395e6
UD
2028 * sysdeps/generic/ldsodefs.h (DL_LOOKUP_GSCOPE_LOCK): New definition.
2029 * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Or in
2030 DL_LOOKUP_GSCOPE_LOCK into flags after THREAD_GSCOPE_SET_FLAG ().
2031 * elf/dl-sym.c (do_sym): Likewise.
2032 * include/link.h (struct link_map): Add l_serial field.
2033 * elf/dl-object.c (_dl_new_object): Initialize l_serial.
2034 * elf/dl-lookup.c (add_dependency): Add flags argument.
2035 Remember map->l_serial, if DL_LOOKUP_GSCOPE_LOCK is among
2036 flags, use THREAD_GSCOPE_RESET_FLAG before and
2037 THREAD_GSCOPE_SET_FLAG after
2038 __rtld_lock_lock_recursive (GL(dl_load_lock)) to avoid deadlock.
2039 Don't dereference map until it has been found on some list.
2040 If map->l_serial changed, return -1.
2041
874aa523
UD
20422007-09-17 Jakub Jelinek <jakub@redhat.com>
2043
2044 * include/stdio.h (__isoc99_fscanf, __isoc99_scanf,
2045 __isoc99_sscanf, __isoc99_vscanf): New prototypes.
2046 (__isoc99_vsscanf, __isoc99_vfscanf): New prototypes, add
2047 libc_hidden_proto.
2048 * include/wchar.h (__isoc99_fwscanf, __isoc99_wscanf,
2049 __isoc99_swscanf, __isoc99_vwscanf): New prototypes.
2050 (__isoc99_vswscanf, __isoc99_vfwscanf): New prototypes,
2051 add libc_hidden_proto.
2052 * libio/stdio.h (fscanf, scanf, sscanf, vfscanf, vscanf,
2053 vsscanf): Redirect to __isoc99_* if strict ISO C99 or POSIX
2054 conformance requested.
2055 * wcsmbs/wchar.h (fwscanf, wscanf, swscanf, vfwscanf, vwscanf,
2056 vswscanf): Redirect to __isoc99_* if strict ISO C99 or POSIX
2057 conformance requested.
2058 * libio/bits/stdio-ldbl.h (fscanf, scanf, sscanf, vfscanf, vscanf,
2059 vsscanf): Redirect to __nldbl___isoc99_* if strict ISO C99 or POSIX
2060 conformance requested.
2061 * wcsmbs/bits/wchar-ldbl.h (fwscanf, wscanf, swscanf, vfwscanf,
2062 vwscanf, vswscanf): Redirect to __nldbl___isoc99_* if strict
2063 ISO C99 or POSIX conformance requested.
2064 * stdio-common/Versions (libc): Export __isoc99_scanf@@GLIBC_2.7,
2065 __isoc99_vscanf@@GLIBC_2.7, __isoc99_fscanf@@GLIBC_2.7,
2066 __isoc99_vfscanf@@GLIBC_2.7, __isoc99_sscanf@@GLIBC_2.7
2067 and __isoc99_vsscanf@@GLIBC_2.7.
2068 * stdio-common/Makefile (routines): Add isoc99_scanf, isoc99_vscanf,
2069 isoc99_fscanf, isoc99_vfscanf, isoc99_sscanf and isoc99_vsscanf.
2070 (tests): Add scanf14.
2071 (CFLAGS-vfprintf.c, CFLAGS-fprintf.c, CFLAGS-printf.c,
2072 CFLAGS-vfwprintf.c, CFLAGS-vfscanf.c, CFLAGS-vfwscanf.c,
2073 CFLAGS-fscanf.c, CFLAGS-scanf.c, CFLAGS-isoc99_vfscanf.c,
2074 CFLAGS-isoc99_vscanf.c, CFLAGS-isoc99_fscanf.c,
2075 CFLAGS-isoc99_scanf.c): Add $(exceptions).
2076 (CFLAGS-scanf15.c): Add various -I paths to prevent the compiler
2077 from using internal headers.
2078 * wcsmbs/Versions (libc): Export __isoc99_wscanf@@GLIBC_2.7,
2079 __isoc99_vwscanf@@GLIBC_2.7, __isoc99_fwscanf@@GLIBC_2.7,
2080 __isoc99_vfwscanf@@GLIBC_2.7, __isoc99_swscanf@@GLIBC_2.7
2081 and __isoc99_vswscanf@@GLIBC_2.7.
2082 * wcsmbs/Makefile (routines): Add isoc99_wscanf, isoc99_vwscanf,
2083 isoc99_fwscanf, isoc99_vfwscanf, isoc99_swscanf and isoc99_vswscanf.
2084 (CFLAGS-isoc99_wscanf.c, CFLAGS-isoc99_fwscanf.c,
2085 CFLAGS-isoc99_vwscanf.c, CFLAGS-isoc99_vfwscanf.c): Add $(exceptions).
2086 (CPPFLAGS): Add -D_IO_MTSAFE_IO if needed.
2087 * stdio-common/isoc99_scanf.c: New file.
2088 * stdio-common/isoc99_vsscanf.c: New file.
2089 * stdio-common/isoc99_vscanf.c: New file.
2090 * stdio-common/isoc99_vfscanf.c: New file.
2091 * stdio-common/isoc99_fscanf.c: New file.
2092 * stdio-common/isoc99_sscanf.c: New file.
2093 * wcsmbs/isoc99_fwscanf.c: New file.
2094 * wcsmbs/isoc99_vswscanf.c: New file.
2095 * wcsmbs/isoc99_swscanf.c: New file.
2096 * wcsmbs/isoc99_wscanf.c: New file.
2097 * wcsmbs/isoc99_vwscanf.c: New file.
2098 * wcsmbs/isoc99_vfwscanf.c: New file.
2099 * libio/libio.h (_IO_FLAGS2_SCANF_STD): Define.
2100 * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): Also
2101 clear _IO_FLAGS2_SCANF_STD bit from _flags2.
2102 * stdio-common/vfscanf.c (_IO_vfscanf_internal): Don't
2103 handle %as, %aS and %a[ if _IO_FLAGS2_SCANF_STD is set in _flags2.
2104 * stdio-common/scanf14.c: New test.
2105 * stdio-common/scanf15.c: New test.
2106 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add
2107 isoc99_scanf, isoc99_fscanf, isoc99_sscanf,
2108 isoc99_vscanf, isoc99_vfscanf, isoc99_vsscanf,
2109 isoc99_wscanf, isoc99_fwscanf, isoc99_swscanf,
2110 isoc99_vwscanf, isoc99_vfwscanf and isoc99_vswscanf.
2111 * sysdeps/ieee754/ldbl-opt/Versions (libc): Export
2112 __nldbl___isoc99_scanf@@GLIBC_2.7,
2113 __nldbl___isoc99_fscanf@@GLIBC_2.7,
2114 __nldbl___isoc99_sscanf@@GLIBC_2.7,
2115 __nldbl___isoc99_vscanf@@GLIBC_2.7,
2116 __nldbl___isoc99_vfscanf@@GLIBC_2.7,
2117 __nldbl___isoc99_vsscanf@@GLIBC_2.7,
2118 __nldbl___isoc99_wscanf@@GLIBC_2.7,
2119 __nldbl___isoc99_fwscanf@@GLIBC_2.7,
2120 __nldbl___isoc99_swscanf@@GLIBC_2.7,
2121 __nldbl___isoc99_vwscanf@@GLIBC_2.7,
2122 __nldbl___isoc99_vfwscanf@@GLIBC_2.7
2123 and __nldbl___isoc99_vswscanf@@GLIBC_2.7.
2124 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__isoc99_scanf,
2125 __isoc99_fscanf, __isoc99_sscanf, __isoc99_vscanf,
2126 __isoc99_vfscanf, __isoc99_vsscanf, __isoc99_wscanf,
2127 __isoc99_fwscanf, __isoc99_swscanf, __isoc99_vwscanf,
2128 __isoc99_vfwscanf, __isoc99_vswscanf): Add NLDBL_DECL.
2129 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
2130 (__nldbl___isoc99_scanf, __nldbl___isoc99_fscanf,
2131 __nldbl___isoc99_sscanf, __nldbl___isoc99_vscanf,
2132 __nldbl___isoc99_vfscanf, __nldbl___isoc99_vsscanf,
2133 __nldbl___isoc99_wscanf, __nldbl___isoc99_fwscanf,
2134 __nldbl___isoc99_swscanf, __nldbl___isoc99_vwscanf,
2135 __nldbl___isoc99_vfwscanf, __nldbl___isoc99_vswscanf): New
2136 functions.
2137 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vfscanf.c: New file.
2138 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_swscanf.c: New file.
2139 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vwscanf.c: New file.
2140 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_wscanf.c: New file.
2141 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_scanf.c: New file.
2142 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_sscanf.c: New file.
2143 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vsscanf.c: New file.
2144 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_fwscanf.c: New file.
2145 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vfwscanf.c: New file.
2146 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vswscanf.c: New file.
2147 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vscanf.c: New file.
2148 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_fscanf.c: New file.
2149
2150 * stdio-common/Makefile (tests): Add scanf13.
2151 (scanf13-ENV): New.
2152 * stdio-common/vfscanf.c (_IO_vfscanf_internal): Handle
2153 m modifier followed by l.
2154 (STRING_ARG): Add width argument.
2155 (_IO_vfscanf_internal) <case L_('c')>: Handle %mc.
2156 <case L_('C')>: Handle %mlc and %mC.
2157 <case L_('s'), case L_('S'), case L_('[')>: Adjust STRING_ARG
2158 arguments.
2159 * stdio-common/scanf13.c: New test.
2160
2161 * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): Clear
2162 the _IO_FLAGS2_FORTIFY bit from _flags2 rather than _flags.
2163
883f7943
UD
21642007-09-18 Ulrich Drepper <drepper@redhat.com>
2165
2166 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Correct return value
874aa523 2167 type and __THROW marker of splice, vmsplice, and tee.
883f7943
UD
2168 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
2169 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
2170 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
2171 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
2172 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
2173 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
2174 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
2175 * sysdeps/unix/sysv/linux/syscalls.list: Mark splice, vmsplice, and tee
2176 as cancellation points.
2177
3524efe0
UD
21782003-11-01 Daniel Jacobowitz <dan@debian.org>
2179
2180 * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_discover_osversion): Don't
2181 parse more than three parts of the version number.
2182
267c54dc
UD
21832007-09-15 Ulrich Drepper <drepper@redhat.com>
2184
2185 * stdio-common/vfscanf.c (_IO_vfwscanf): Add support for 'm'
2186 modifier. Patch by Jakub Jelinek.
2187
5e17d6b7
UD
21882007-08-26 Jakub Jelinek <jakub@redhat.com>
2189
2190 * sysdeps/unix/sysv/linux/i386/Makefile (sysdep_routines): Add
2191 call_fallocate in misc subdir.
2192 * sysdeps/unix/sysv/linux/i386/call_fallocate.S: New file.
2193 * sysdeps/unix/sysv/linux/i386/syscalls.list (fallocate64): Remove.
2194 * sysdeps/unix/sysv/linux/i386/posix_fallocate.c: Use __call_fallocate
2195 instead of __fallocate64.
2196 * sysdeps/unix/sysv/linux/i386/posix_fallocate64.c: Likewise.
2197
3a50811c
UD
21982007-09-15 Jakub Jelinek <jakub@redhat.com>
2199
2200 * rt/Versions (librt): Export __mq_open_2@@GLIBC_2.7.
2201 * rt/Makefile (headers): Add bits/mqueue2.h.
2202 * rt/mqueue.h: Include bits/mqueue2.h if -D_FORTIFY_SOURCE=2,
2203 optimizing with GCC and __va_arg_pack_len is defined.
2204 * rt/bits/mqueue2.h: New file.
2205 * rt/mq_open.c (__mq_open): Renamed from mq_open.
2206 (mq_open): New strong_alias.
2207 (__mq_open_2): New function.
2208 * sysdeps/unix/sysv/linux/mq_open.c (__mq_open): Renamed from mq_open.
2209 (mq_open): New strong_alias.
2210 (__mq_open_2): New function.
2211 * debug/Versions (libc): Export __fortify_fail@@GLIBC_PRIVATE.
2212 * Versions.def (librt): Add GLIBC_2.7 version.
2213 * debug/fortify_fail.c (__fortify_fail): Add libc_hidden_def.
2214 * include/stdio.h (__fortify_fail): Add libc_hidden_proto.
2215
2216 * misc/sys/cdefs.h (__errordecl, __va_arg_pack_len): Define.
2217 * io/fcntl.h: Include bits/fcntl2.h when __va_arg_pack_len
2218 is defined rather than when not C++.
2219 * io/bits/fcntl2.h (__open_alias, __open64_alias, __openat_alias,
2220 __openat64_alias): New redirects.
2221 (__open_too_many_args, __open_missing_mode, __open64_too_many_args,
2222 __open64_missing_mode, __openat_too_many_args, __openat_missing_mode,
2223 __openat64_too_many_args, __openat64_missing_mode): New __errordecls.
2224 (open, open64, openat, openat64): Rewrite as __extern_always_inline
2225 functions instead of function-like macros.
2226
9bdfff60
UD
22272007-09-14 H.J. Lu <hongjiu.lu@intel.com>
2228
2229 * sysdeps/i386/i586/memcpy.S (__memcpy_chk): New definition.
2230 * sysdeps/i386/i586/mempcpy.S (__memcpy_chk): New definition.
2231 * sysdeps/i386/i586/memset.S (__memset_chk): New definition.
2232
ab905672
UD
22332007-09-15 Mike Frysinger <vapier@gentoo.org>
2234
2235 * inet/inet_net.c: Reset digit to 0 for inputs starting with "0x".
2236 * inet/tst-network.c (tests): Add edge case tests for "0", "0x", "0x0".
2237
9bd68902
RM
22382007-09-14 Mike Frysinger <vapier@gentoo.org>
2239
2240 * inet/tst-network.c: Increment ERRORS for failing tests.
2241
de1c3ebb
UD
22422007-09-07 Jakub Jelinek <jakub@redhat.com>
2243
2244 * misc/sys/cdefs.h (__va_arg_pack): Define for GCC 4.3+.
2245 * misc/bits/syslog.h (syslog): When __va_arg_pack is defined,
2246 implement as __extern_always_inline function.
2247 (vsyslog): Define as __extern_always_inline function unconditionally.
2248 * libio/bits/stdio2.h (sprintf, snprintf, printf, fprintf):
2249 When __va_arg_pack is defined, implement as __extern_always_inline
2250 functions.
2251 (vsprintf, vsnprintf, vprintf, vfprintf): Define as
2252 __extern_always_inline functions unconditionally.
2253 * libio/bits/stdio.h (vprintf): Ifdef out the inline when
2254 bits/stdio2.h will be included.
2255 * wcsmbs/bits/wchar2.h (__swprintf_alias): New redirect.
2256 (swprintf, wprintf, fwprintf): When __va_arg_pack is defined,
2257 implement as __extern_always_inline functions.
2258 (vswprintf, vwprintf, vfwprintf): Define as
2259 __extern_always_inline functions unconditionally.
2260 * debug/tst-chk1.c (do_test): Enable remaining tests for C++.
2261
22622007-09-03 Jakub Jelinek <jakub@redhat.com>
2263
2264 * misc/sys/cdefs.h (__extern_inline, __extern_always_inline): Only
2265 define in C++ for GCC 4.3+, in C++ always use __gnu_inline__
2266 attribute.
2267 * include/features.h (__USE_EXTERN_INLINES): Define only when
2268 __extern_inline is defined.
2269 * stdlib/stdlib.h: Include bits/stdlib.h when __extern_always_inline
2270 is defined instead of when not __cplusplus.
2271 * misc/sys/syslog.h: Include bits/syslog.h when __extern_always_inline
2272 is defined instead of when not __cplusplus.
2273 * socket/sys/socket.h: Include bits/socket2.h when
2274 __extern_always_inline is defined instead of when not __cplusplus.
2275 * libio/stdio.h: Include bits/stdio2.h when __extern_always_inline
2276 is defined instead of when not __cplusplus.
2277 * posix/unistd.h: Include bits/unistd.h when __extern_always_inline
2278 is defined instead of when not __cplusplus.
2279 * string/string.h: Include bits/string3.h when __extern_always_inline
2280 is defined instead of when not __cplusplus.
2281 * wcsmbs/wchar.h: Include bits/wchar2.h when __extern_always_inline
2282 is defined instead of when not __cplusplus.
2283 (btowc, wctob): Don't guard the inlines with ifndef __cplusplus.
2284 * io/fcntl.h: Don't include bits/fcntl2.h if __extern_always_inline
2285 is not defined.
2286 * misc/bits/syslog-ldbl.h: Guard *_chk stuff with
2287 defined __extern_always_inline instead of !defined __cplusplus.
2288 * libio/bits/stdio-ldbl.h: Likewise.
2289 * wcsmbs/bits/wchar-ldbl.h: Likewise.
2290 * misc/bits/syslog.h (syslog): Don't define for C++.
2291 (vsyslog): Use __extern_always_inline function for C++ instead of
2292 a macro.
2293 * libio/bits/stdio.h (__STDIO_INLINE): Define to __extern_inline
2294 whenever that macro is defined.
2295 (vprintf): Don't provide the inline for C++.
2296 (fread_unlocked, fwrite_unlocked): Don't define the macros for C++.
2297 * libio/bits/stdio2.h (sprintf, snprintf, printf, fprintf): Don't
2298 define the macros for C++.
2299 (vsprintf, vsnprintf, vprintf, vfprintf): Define as
2300 __extern_always_inline functions for C++.
2301 * io/sys/stat.h (stat, lstat, fstat, fstatat, mknod, mknodat,
2302 stat64, lstat64, fstat64, fstatat64): Don't define if not
2303 __USE_EXTERN_INLINES.
2304 * wcsmbs/bits/wchar2.h: Fix #error message.
2305 (swprintf, wprintf, fwprintf): Don't define the macros for C++.
2306 (vswprintf, vwprintf, vfwprintf): Define using
2307 __extern_always_inline functions for C++.
2308 * string/bits/string3.h: Don't #undef macros if __cplusplus.
2309 (memcpy, memmove, mempcpy, memset, bcopy, bzero, strcpy, stpcpy,
2310 strncpy, strcat, strncat): Define as __extern_always_inline
2311 functions instead of macros for C++.
2312 * math/bits/cmathcalls.h: Guard __extern_inline routines with
2313 defined __extern_inline.
2314 * sysdeps/alpha/fpu/bits/mathinline.h (__MATH_INLINE): Define
2315 to __extern_inline whenever that macro is defined.
2316 * sysdeps/ia64/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
2317 * sysdeps/i386/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
2318 * sysdeps/i386/i486/bits/string.h (__STRING_INLINE): Likewise.
2319 * sysdeps/s390/bits/string.h (__STRING_INLINE): Likewise.
2320 * sysdeps/s390/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
2321 * sysdeps/powerpc/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
2322 * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
2323 * sysdeps/sparc/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
2324 * sysdeps/unix/sysv/linux/sys/sysmacros.h (gnu_dev_major,
2325 gnu_dev_minor, gnu_dev_makedev): Remove __extern_inline from
2326 prototypes. Only provide __extern_inline routines if
2327 __USE_EXTERN_INLINES.
2328 * debug/Makefile: Add rules to build and run tst-{,lfs}chk{4,5,6}
2329 tests.
2330 * debug/tst-chk1.c (do_prepare, do_test): Allow compilation as C++.
2331 For now avoid some *printf tests in C++. Skip all testing
2332 if __USE_FORTIFY_LEVEL is defined, but __extern_always_inline macro
2333 is not.
2334 * debug/tst-chk4.cc: New file.
2335 * debug/tst-chk5.cc: New file.
2336 * debug/tst-chk6.cc: New file.
2337 * debug/tst-lfschk4.cc: New file.
2338 * debug/tst-lfschk5.cc: New file.
2339 * debug/tst-lfschk6.cc: New file.
2340 * include/wchar.h (__vfwprintf_chk, __vswprintf_chk): Avoid
2341 prototypes in C++.
2342 * include/stdio.h (__sprintf_chk, __snprintf_chk, __vsprintf_chk,
2343 __vsnprintf_chk, __printf_chk, __fprintf_chk, __vprintf_chk,
2344 __vfprintf_chk, __fgets_unlocked_chk, __fgets_chk): Likewise.
2345
b53eef9c
UD
23462007-09-13 Ulrich Drepper <drepper@redhat.com>
2347
2348 * po/cs.po: Update from translation team.
2349
af385590
RM
23502007-09-11 Roland McGrath <roland@redhat.com>
2351
2352 * posix/Makefile ($(objpfx)getconf.speclist): Make it empty if cross
2353 compiling.
2354
af2f25a1
RM
23552007-09-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
2356
2357 * sysdeps/mach/hurd/bits/ioctls.h (TAB3): New macro.
2358
94733ae0
RM
23592007-09-05 Roland McGrath <roland@redhat.com>
2360
2361 * manual/signal.texi (Signaling Another Process): Typo fix.
2362 From Karl Berry <karl@freefriends.org>.
2363
de4d8563
UD
23642007-08-29 Ulrich Drepper <drepper@redhat.com>
2365
2366 * sysdeps/unix/sysv/linux/check_pf.c (IFA_F_OPTIMISTIC): Define to
2367 zero if not defined.
2368 (make_request): Recognize optimistic addresses and treat them like
2369 deprecated addresses.
2370 Reported by Neil Horman <nhorman@redhat.com>.
2371
0adfcc05
UD
23722007-08-28 Ulrich Drepper <drepper@redhat.com>
2373
f3c54060
UD
2374 * nscd/connections.c (send_ro_fd): Also transfer file size.
2375 * nscd/nscd_helper.c (get_mapping): If nscd also transfers the
2376 file size don't call fstat.
2377
0adfcc05
UD
2378 * nscd/nscd_helper.c (get_mapping): Avoid the pread call, just go
2379 ahead and map the file. This should always be correct and we can
2380 catch problems later.
2381
3586b2b6
UD
23822007-08-28 Jakub Jelinek <jakub@redhat.com>
2383
2384 * libio/bits/stdio2.h (__fread_chk, __fread_unlocked_chk): New
2385 prototypes.
2386 (__fread_alias, __fread_unlocked_alias): New aliases.
2387 (fread): New extern inline.
2388 (fread_unlocked): Likewise. Undef macro before definition of
2389 the inline function.
2390 * debug/Makefile (routines): Add fread_chk and fread_u_chk.
2391 (CFLAGS-fread_chk.c, CFLAGS-fread_u_chk.c): Add.
2392 * debug/Versions (libc): Export __fread_chk@@GLIBC_2.7
2393 and __fread_unlocked_chk@@GLIBC_2.7.
2394 * debug/fread_chk.c: New file.
2395 * debug/fread_u_chk.c: New file.
2396 * debug/tst-chk1.c (do_test): Add fread and fread_unlocked tests.
2397
3704aa0b
RM
23982007-08-27 Jakub Jelinek <jakub@redhat.com>
2399
2400 * sysdeps/unix/sysv/linux/syscalls.list
2401 (personality): Change caller to EXTRA.
2402
80e7d6a6
UD
24032007-08-25 Ulrich Drepper <drepper@redhat.com>
2404
278bfa00
UD
2405 * iconvdata/iso-2022-kr.c (BODY): Fake initialization of array buf
2406 to keep gcc quiet.
2407 * iconvdata/iso-2022-cn.c (BODY): Likewise.
2408
a45d733c
UD
2409 * locale/programs/ld-collate.c (collate_output): Avoid warning if
2410 NDEBUG is defined.
2411
5dfeae0e
UD
2412 * Makerules: Use -p option with mkdir.
2413
8f1fe057
UD
2414 * sunrpc/key_prot.c (xdr_unixcred): Work around gcc alias warning.
2415 * nis/nis_xdr.c (_xdr_nis_server): Likewise.
bd0dcd28
UD
2416 (_xdr_directory_obj): Likewise.
2417 (xdr_entry_obj): Likewise.
2418 (xdr_group_obj): Likewise.
2419 (xdr_link_obj): Likewise.
2420 (xdr_table_obj): Likewise.
2421 (_xdr_nis_result): Likewise.
2422 (_xdr_ns_request): Likewise.
2423 (_xdr_ib_request): Likewise.
2424 (_xdr_nis_taglist): Likewise.
2425 (xdr_cback_data): Likewise.
8f1fe057 2426 * nis/yp_xdr.c (xdr_ypmaplist): Likewise.
bd0dcd28
UD
2427 (xdr_ypresp_maplist): Likewise.
2428
01339a67
UD
2429 * stdio-common/Makefile: Avoid format string warning for tst-sprint.
2430
3fa10468
UD
2431 * posix/regex_internal.h: Prevent some declarations and definitions
2432 to be seen when used in tests.
2433
ec1e04de
UD
2434 * posix/tst-rfc3484.c (__idna_to_unicode_lzlz): Initialize *OUTPUT.
2435 * posix/tst-rfc3484-2.c (__idna_to_unicode_lzlz): Likewise.
2436
7a344d1d
UD
2437 * debug/Makefile: Disable format checking when compiling tst-chk?.c.
2438
f8f6ff5d
UD
2439 * config.make.in (datarootdir): Add to shut up configure.
2440
76fca9f1
UD
2441 * sysdeps/x86_64/cacheinfo.c (handle_amd): Fix computation of
2442 associativity for fully-associative caches.
2443
80e7d6a6
UD
2444 * sysdeps/x86_64/cacheinfo.c (handle_amd): Handle L3 cache
2445 requests. Fill on more associativity values for L2.
2446 Patch mostly by Evandro Menezes.
2447
cb5ba304
UD
24482007-08-24 Ulrich Drepper <drepper@redhat.com>
2449
d250df8c
UD
2450 * sysdeps/unix/sysv/linux/x86_64/init-first.c
2451 (_libc_vdso_platform_setup): Avoid using exported variable by using
2452 alias.
2453
88f61aaf
UD
2454 * resolv/arpa/nameser.h (NS_OPT_DNSSEC_OK): Define.
2455
cb5ba304 2456 * sysdeps/unix/sysv/linux/i386/syscalls.list: No reason to mark
cb104bd7 2457 fallocate64 as EXTRA. It is not referenced if the symbol isn't
cb5ba304
UD
2458 defined.
2459
62e1b1f5
UD
24602007-08-23 Ulrich Drepper <drepper@redhat.com>
2461
44b2e581
UD
2462 * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Correctly
2463 align stack for call if pltexit is to be used.
2464
73e3ff07
UD
2465 [BZ #3924]
2466 * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Correctly
2467 align for function call in case pltexit has to be called later.
2468
62e1b1f5
UD
2469 * sysdeps/i386/dl-trampoline.S (_dl_runtime_resolve): Avoid
2470 implicit atomic operation when storing function pointer.
2471 (_dl_runtime_profile): Likewise.
2472
0008163a
UD
24732007-08-17 Jakub Jelinek <jakub@redhat.com>
2474
2475 * nis/nis_table.c (nis_list): Don't fail if __follow_path returned
2476 NIS_NOTFOUND.
2477
55ea8790
UD
24782007-08-21 Ulrich Drepper <drepper@redhat.com>
2479
2e0e1a05
UD
2480 [BZ #4566]
2481 * string/strtok.c: Fix typo in comment.
2482
682e4437
UD
2483 [BZ #4582]
2484 * debug/segfault.c: Fix typos in comments.
2485
7d55c9eb
UD
2486 [BZ #4588]
2487 * stdio-common/tempnam.c: Fix comment, it is not checked that
2488 TMPDIR points to a writable directory.
2489
0f8f993c
UD
2490 [BZ #4726]
2491 * resolv/res_send.c (__libc_res_nsend): Initialize all of the
2492 memory allocated for the name server address.
2493
1465dd0f
UD
2494 [BZ #4946]
2495 * nscd/connections.c (handle_request): Using sendfile always
2496 requires that mmap is used for the database.
2497 Patch by Petr Baudis <pasky@suse.cz>.
2498
c44d3bdf
UD
2499 [BZ #4905]
2500 * nscd/hstcache.c (cache_addhst): When reloading an entry which
2501 suddenly has two or more addresses, ignore it and remove the old
2502 entry.
2503
1ce7d80d
UD
2504 [BZ #4814]
2505 * resolv/res_hconf.c: Prepare for compiling outside libc.
2506 * nscd/res_hconf.c: New file.
2507 * nscd/Makefile (nscd-modules): Add res_hconf. Add rules to build
2508 the new file.
2509 * nscd/gethstbynm2_r.c (NEED__RES_HCONF): Define.
2510 * nscd/gethstbyad_r.c (NEED__RES_HCONF): Likewise.
2511
a30d41c1
UD
2512 * nscd/hstcache.c (cache_addhst): Minimal optimization.
2513
45dc3ad7
UD
2514 [BZ #4925]
2515 * debug/pcprofiledump.c: Turn on internationalization by calling
2516 setlocale. Patch mostly by Benno Schulenberg.
2517
55ea8790
UD
2518 [BZ #4936]
2519 * iconv/gconv.c (__gconv): If flush was successful, clear rest of
2520 the state.
2521 * iconvdata/Makefile: Add rules to build and run bug-iconv5.
2522 * iconvdata/bug-iconv5.c: New file.
2523
0b82ff74
UD
25242007-08-04 Carlos O'Donell <carlos@systemhalted.org>
2525
55ea8790 2526 [BZ #4896]
0b82ff74
UD
2527 * elf/elf.h: Define R_PARISC_PLABEL21L, R_PARISC_PLABEL14R,
2528 R_PARISC_GNU_VTENTRY, R_PARISC_GNU_VTINHERIT, R_PARISC_TLS_GD21L,
2529 R_PARISC_TLS_GD14R, R_PARISC_TLS_GDCALL, R_PARISC_TLS_LDM21L,
2530 R_PARISC_TLS_LDM14R, R_PARISC_TLS_LDMCALL, R_PARISC_TLS_LDO21L,
2531 R_PARISC_TLS_LDO14R, R_PARISC_TLS_DTPMOD32, R_PARISC_TLS_DTPMOD64,
2532 R_PARISC_TLS_DTPOFF32, R_PARISC_TLS_DTPOFF64, R_PARISC_TLS_LE21L,
2533 R_PARISC_TLS_LE14R, R_PARISC_TLS_IE21L, R_PARISC_TLS_IE14R,
2534 R_PARISC_TLS_TPREL32, R_PARISC_TLS_TPREL64.
2535
ee16a55a
UD
25362007-08-21 Ulrich Drepper <drepper@redhat.com>
2537
2538 [BZ #4937]
2539 * elf/do-lookup.h (do_lookup_x): Minimal improvement in hash
2540 lookup loop. Suggested by John Reiser.
2541
b211fe0f
JJ
25422007-08-21 Jakub Jelinek <jakub@redhat.com>
2543
2544 * sysdeps/unix/sysv/linux/alpha/sysdep.h: Include tls.h.
2545
fb84593c
UD
25462007-08-20 Ulrich Drepper <drepper@redhat.com>
2547
2548 * csu/libc-start.c: Don't handle VDSO_SETUP here.
2549 * sysdeps/unix/sysv/linux/init-first.c: Handle it here instead.
2550 * sysdeps/unix/sysv/linux/x86_64/libc-start.c: Renamed to...
2551 * sysdeps/unix/sysv/linux/x86_64/init-first.c: ...this. New file.
2552 * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Move VDSO_SETUP code
2553 to...
2554 * sysdeps/unix/sysv/linux/x86_64/init-first.c: ...here. New file.
2555
b83fb35c
UD
25562007-08-18 Ulrich Drepper <drepper@redhat.com>
2557
2558 * po/nl.po: Update from translation team.
2559
20806a70
AJ
25602007-08-16 Andreas Jaeger <aj@suse.de>
2561
2562 * locale/localeinfo.h: Make _nl_category_name_idxs extern.
2563 Reported by Peter Festner <peter.festner@ewetel.net>.
2564
42282d57
JJ
25652007-08-17 Jakub Jelinek <jakub@redhat.com>
2566
2567 * login/tst-grantpt.c (test_einval): Add 3rd argument to open.
2568
8a501135
JJ
25692007-08-16 Jakub Jelinek <jakub@redhat.com>
2570
cb84d1e4
JJ
2571 * elf/Makefile ($(objpfx)ld.so): Use readelf -s and awk instead of nm -u
2572 to check for undefined symbols.
2573
91ddd9c4
JJ
2574 * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone):
2575 If the syscall fails, set errno to the actual returned error number
2576 rather than EINVAL.
2577 * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__clone): If
2578 arguments are incorrect, set errno to EINVAL, if the syscall
2579 fails, set errno to the actual returned error number.
2580
18915760
JJ
2581 * stdlib/bits/stdlib-ldbl.h (__strtold_internal): Remove.
2582 * wcsmbs/bits/wchar-ldbl.h (__wcstold_internal): Remove.
2583
8a501135
JJ
2584 * sysdeps/sparc/sparc32/sparcv9b/memcpy.S: Moved to...
2585 * sysdeps/sparc/sparc32/sparcv9/sparcv9b/memcpy.S: ... here. New
2586 file.
2587 (ASI_PNF, ASI_BLK_P): Don't define.
2588 * sysdeps/sparc/sparc32/sparcv9v/memcpy.S: Moved to...
2589 * sysdeps/sparc/sparc32/sparcv9/sparcv9v/memcpy.S: ... here. New
2590 file.
2591 * sysdeps/sparc/sparc32/sparcv9v/memset.S: Moved to...
2592 * sysdeps/sparc/sparc32/sparcv9/sparcv9v/memset.S: ... here. New
2593 file.
2594
e4720b0e
JJ
25952007-08-15 Jakub Jelinek <jakub@redhat.com>
2596
2597 * sysdeps/sparc/fpu/fraiseexcpt.c (__feraiseexcept): Fix raising
2598 FE_UNDERFLOW on Niagara CPUs.
2599
2600 * sysdeps/sparc/fpu/feholdexcpt.c (feholdexcept): Clear all
2601 exceptions.
2602
702a9414
JJ
26032007-08-14 Jakub Jelinek <jakub@redhat.com>
2604
467d1345
JJ
2605 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_runtime_setup): No
2606 need to check GLRO(dl_hwcap) & HWCAP_SPARC_FLUSH on sparcv9.
2607 (sparc_fixup_plt): Add do_flush argument instead of figuring whether
2608 flush should be used or not inside of the function.
2609 (elf_machine_fixup_plt, elf_machine_rela): Adjust caller.
2610
2611 * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone,
2612 __thread_start): Use HIDDEN_JUMPTARGET.
2613 * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__clone,
2614 __thread_start): Likewise.
2615 * sysdeps/unix/sysv/linux/sparc/sysdep.h (JUMPTARGET): Define.
2616
702a9414
JJ
2617 * sysdeps/ieee754/ldbl-64-128/strtold_l.c (__STRTOF): Declare.
2618 Add libc_hidden_proto.
2619 (STRTOF): Add libc_hidden_proto.
2620 (___new_strtold_l, ___new_wcstold_l): New weak aliases.
2621 (strtold_l, wcstold_l): Use them as second argument for
2622 long_double_symbol.
2623
c6c8f0ec
UD
26242007-08-14 Ulrich Drepper <drepper@redhat.com>
2625
2626 * elf/dl-misc.c: Undo last change. The kernel won't allow it.
2627
5e88abf9
UD
26282007-08-13 Kaz Kojima <kkojima@rr.iij4u.or.jp>
2629
2630 * stdlib/strtold_l.c: Include wchar.h if needed. Add libc_hidden_def.
2631
fc4819b0
UD
26322007-08-14 Ulrich Drepper <drepper@redhat.com>
2633
2634 * po/bg.po: New file. From the translation team.
2635
22502ea2
UD
26362007-08-13 Jakub Jelinek <jakub@redhat.com>
2637
2638 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PSELECT,
2639 __ASSUME_PPOLL, __ASSUME_ATFCTS, __ASSUME_SET_ROBUST_LIST,
2640 __ASSUME_UTIMENSAT, __ASSUME_FALLOCATE): Update per-arch conditions
2641 when each feature was introduced.
2642
2643 * sysdeps/unix/sysv/linux/dl-vdso.c: Don't include dl-hash.h.
2644 * sysdeps/unix/sysv/linux/dl-vdso.h: Don't include dl-hash.h if NDEBUG.
2645 (CHECK_HASH): New macro.
2646 (PREPARE_VERSION): Use it.
2647
2648 * sysdeps/unix/sysv/linux/pselect.c (__generic_pselect): Only provide
2649 prototype if not __ASSUME_PSELECT.
2650 * sysdeps/unix/sysv/linux/ppoll.c (__generic_ppoll): Only provide
2651 prototype if not __ASSUME_PPOLL.
2652
2653 * sysdeps/unix/sysv/linux/dl-osinfo.h (ROUND): #undef after use.
2654
2655 * sysdeps/unix/clock_settime.c (freq, __pthread_clock_settime,
2656 hp_timing_settime): Don't define or declare if HANDLED_CPUTIME
2657 is defined.
2658
9c6f6953
UD
26592007-08-13 Ulrich Drepper <drepper@redhat.com>
2660
2661 * sysdeps/unix/sysv/linux/x86_64/libc-start.c
2662 (_libc_vdso_platform_setup): If vDSO is not available point
2663 __vdso_gettimeofday to the vsyscall.
2664 * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S [SHARED]: Use
2665 __vdso_gettimeofday instead of vsyscall.
2666
f8de5057
UD
26672007-08-13 Jakub Jelinek <jakub@redhat.com>
2668
2669 * nscd/servicescache.c: Include kernel-features.h.
2670 * nscd/gai.c: Likewise.
2671 * sysdeps/unix/sysv/linux/statfs64.c: Likewise.
2672 * sysdeps/unix/sysv/linux/fstatfs64.c: Likewise.
2673 * sysdeps/unix/sysv/linux/fxstatat.c: Likewise.
2674 * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S: Likewise.
2675 * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S: Likewise.
2676 * sysdeps/unix/sysv/linux/xstatconv.c: Likewise.
2677 * sysdeps/unix/sysv/linux/if_index.c: Likewise.
2678 * sysdeps/unix/sysv/linux/sparc/sparc64/xstat.c: Likewise.
2679 * sysdeps/unix/sysv/linux/ifaddrs.c: Likewise.
2680
3c87d79d
UD
26812007-08-12 Ulrich Drepper <drepper@redhat.com>
2682
ea37207a
UD
2683 * elf/dl-dst.h: No need for _dl_dst_count, _dl_dst_substitute,
2684 and _dl_get_origin defines anymore.
2685
4eb375fe
UD
2686 * sysdeps/unix/sysv/linux/clock_gettime.c (maybe_syscall_gettime_cpu):
2687 Build fix for systems which might lack POSIX timer support.
2688
3c87d79d
UD
2689 * sysdeps/unix/sysv/linux/x86_64/libc-start.c
2690 (_libc_vdso_platform_setup): Mangle function pointers before storing
2691 them.
2692 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_VSYSCALL):
2693 Demangle vdso pointer before use.
2694 (INTERNAL_VSYSCALL): Likewise.
2695
2696 * elf/cache.c (primes): Mark as const.
2697 Noted by Roland McGrath.
2698
27d9ffda
UD
26992007-08-01 Andreas Jaeger <aj@suse.de>
2700 Jakub Jelinek <jakub@redhat.com>
2701
2702 * elf/ldconfig.c (opt_ignore_aux_cache): Add new option.
2703 (options): Add option.
2704 (parse_opt): Handle option.
2705 (manual_link): Adjust process_file caller. Call implicit_soname.
2706 (search_dir): Formatting. Use and populate auxiliary cache.
2707 (main): Load and save auxiliary cache.
2708 * elf/readlib.c (process_file): Add stat_buf argument. Pass struct
2709 stat64 from fstat64 to caller.
2710 (implicit_soname): New function.
2711 * elf/readelflib.c (process_elf_file): If DT_SONAME is not present,
2712 leave *soname as NULL.
2713 * elf/cache.c: Include libgen.h.
2714 (print_entry, print_cache, compare, save_cache, add_to_cache):
2715 Formatting and cleanups.
2716 (aux_cache_entry_id, aux_cache_entry, aux_cache_file_entry,
2717 aux_cache_file): New structures.
2718 (AUX_CACHEMAGIC): Define.
2719 (primes): New array.
2720 (aux_hash_size, aux_hash): New variables.
2721 (aux_cache_entry_id_hash, nextprime, init_aux_cache,
2722 search_aux_cache, insert_to_aux_cache, add_to_aux_cache,
2723 load_aux_cache, save_aux_cache): New functions.
2724 * sysdeps/generic/ldconfig.h (_PATH_LDCONFIG_AUX_CACHE): Define.
2725 (init_aux_cache, search_aux_cache, add_to_aux_cache,
2726 load_aux_cache, save_aux_cache, implicit_soname): New prototypes.
2727 (process_file): Adjust prototype.
2728
8d944b0f
UD
27292007-08-12 Jakub Jelinek <jakub@redhat.com>
2730
2731 * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h: Include stddef.h
2732 with __need_size_t.
2733
75fb247e
UD
27342007-08-12 Ulrich Drepper <drepper@redhat.com>
2735
fb86328a
UD
2736 * sysdeps/unix/sysv/linux/dl-vdso.c (_dl_vdso_vsym): Expect
2737 r_found_version structure as second parameter.
2738 * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION): Define.
2739 (_dl_vdso_vsym): Change type of second parameter accordingly.
2740 * sysdeps/unix/sysv/linux/x86-64/libc-start.c
2741 (_libc_vdso_platform_setup): Adjust.
974a1f0f 2742 * sysdeps/unix/sysv/linux/powerpc/libc-start.c
fb86328a
UD
2743 (_libc_vdso_platform_setup): Likewise.
2744
75fb247e
UD
2745 * sysdeps/unix/sysv/linux/powerpc/dl-vdso.c: Move to...
2746 * sysdeps/unix/sysv/linux/dl-vdso.c: ...here.
2747 * sysdeps/unix/sysv/linux/powerpc/dl-vdso.h: Move to...
2748 * sysdeps/unix/sysv/linux/dl-vdso.h: ...here.
2749 * csu/libc-start.c: Pretty printing.
2750 Use VDSO_SETUP if defined.
2751 * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Define VDSO_SETUP
2752 and let generic code call into _libc_vdso_platform_setup.
2753 * sysdeps/unix/sysv/linux/x86_64/libc-start.c: New file.
2754 * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: New file.
2755 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Pretty printing.
2756 Define INLINE_VSYSCALL and INTERNAL_VSYSCALL.
2757 * sysdeps/unix/sysv/linux/x86_64/Versions: Export __vdso_clock_gettime
2758 for GLIBC_PRIVATE.
2759 * sysdeps/unix/sysv/linux/x86_64/Makefile [subdir=elf]
2760 (sysdep_rountines): Add dl-vdso.
2761
2762 * sysdeps/unix/sysv/linux/powerpc/Makefile: Use sysdep_routines instead
2763 of routines.
2764
2765 * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Add
2766 attribute_hidden to __vdso_gettimeofday prototype.
2767
9229b83e
RM
27682007-08-12 Roland McGrath <roland@redhat.com>
2769
2770 * manual/stdio.texi (Variable Arguments Output): Fix xref to gcc manual.
2771 From: Karl Berry <karl@freefriends.org>.
2772
4503061f
UD
27732007-08-11 Ulrich Drepper <drepper@redhat.com>
2774
2775 * elf/dl-misc.c (_dl_sysdep_read_whole_file): We really don't need
2776 an atime update for the files we read.
2777
d7e23b02
UD
27782007-08-10 Ulrich Drepper <drepper@redhat.com>
2779
7cf89e95
UD
2780 * shadow/lckpwdf.c (__lckpwdf): Use O_CLOEXEC if possible.
2781
9d169bb3 2782 * nscd/connections.c: Use O_CLOEXEC if possible. Use mkostemp
d7e23b02
UD
2783 instead of mkstemp.
2784
2785 * misc/Makefile (routines): Add mkostemp and mkostemp64.
2786 * misc/Versions: Export mkostemp and mkostemp64 for GLIBC_2.7.
2787 * misc/mkostemp.c: New file.
2788 * misc/mkostemp64.c: New file.
2789 * stdlib/stdlib.h: Declare the new functions.
2790 * sysdeps/posix/tempname.c: Add new parameter which is added to
2791 the flags for open. Remove __GT_BIGFILE handling.
2792 * stdio-common/tempname.c: Likewise.
2793 * include/stdio.h: Adjust __gen_tempname prototype.
2794 Renumber __GT_* constants.
2795 * libio/oldtmpfile.c: Adjust for __gen_tempname interface change.
2796 * misc/mkdtemp.c: Likewise.
2797 * misc/mkstemp.c: Likewise.
2798 * misc/mkstemp64.c: Likewise.
2799 * misc/mktemp.c: Likewise.
2800 * stdio-common/tempnam.c: Likewise.
2801 * stdio-common/tmpfile.c: Likewise.
2802 * stdio-common/tmpfile64.c: Likewise.
2803 * stdio-common/tmpnam.c: Likewise.
2804 * stdio-common/tmpnam_r.c: Likewise.
2805
22532966
RM
28062007-08-10 Roland McGrath <roland@frob.com>
2807
2808 * sysdeps/mach/hurd/bits/ioctls.h (NLDLY, TABDLY, BSDLY, VTDLY):
2809 New macros.
2810 (NLDELAY, CRDELAY, TBDELAY, BSDELAY, VTDELAY): Define to those.
2811 Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
2812
673876e6
UD
28132007-08-10 Ulrich Drepper <drepper@redhat.com>
2814
aa132749
UD
2815 * nss/nss_files/files-XXX.c (internal_setent): Use O_CLOEXEC if
2816 possible.
2817 * nss/nss_files/files-alias.c (internal_setent): Likewise.
2818 * nss/Makefile (libnss_files-routines): Add files-have_o_cloexec.
2819 * nss/nss_files/files-have_o_cloexec.c: New file.
2820
22532966 2821 * sysdeps/unix/sysv/linux/shm_open.c (shm_open): Use O_CLOEXEC if
673876e6
UD
2822 available.
2823
1e286653
JJ
28242007-08-10 Jakub Jelinek <jakub@redhat.com>
2825
2826 * sysdeps/ieee754/ldbl-128ibm/strtold_l.c (___new_strtold_l,
2827 ___new_wcstold_l): New weak aliases.
2828 (strtold_l, wcstold_l): Use them as second argument for
2829 long_double_symbol.
2830
f07f72f3
UD
28312007-08-09 Ulrich Drepper <drepper@redhat.com>
2832
6479496a
UD
2833 * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Use correct
2834 register in test for error.
2835
c4adefbd
UD
2836 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_CLOEXEC): Define.
2837 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (O_CLOEXEC): Likewise.
2838
f07f72f3
UD
2839 * po/sv.po: Update from translation team.
2840
eef38c28
RM
28412007-08-06 Roland McGrath <roland@redhat.com>
2842
773e305e
RM
2843 * include/stdlib.h: Add libc_hidden_proto for strto*, __strto*_l.
2844 Remove __strto*_l inlines.
2845 * include/wchar.h: Add libc_hidden_proto for wcsto*, __wcsto*_l.
2846 * stdlib/strtod.c: Add libc_hidden_def.
2847 * stdlib/strtod_l.c: Likewise.
2848 * stdlib/strtold.c [__LONG_DOUBLE_MATH_OPTIONAL]: Add libc_hidden_proto
2849 for __new_strtold and __new_wcstold.
2850 * sysdeps/ieee754/ldbl-128ibm/strtold_l.c: Add libc_hidden_proto for
2851 __STRTOF, STRTOF.
2852 * stdlib/strtol.c: Add libc_hidden_def.
2853 * stdlib/strtol_l.c: Likewise.
2854 * sysdeps/wordsize-64/strtol.c: Add libc_hidden_ver for strtoll and
2855 strtoq.
2856
2857 * scripts/data/localplt-powerpc-linux-gnu.data: New file.
2858
2859 * scripts/data/localplt-x86_64-linux-gnu.data: File renamed to ...
2860 * scripts/data/localplt-generic.data: ... here.
2861 * elf/Makefile (check-data): Get generic file if no other.
2862 ($(objpfx)check-localplt.out): Make target unconditional.
2863
eef38c28
RM
2864 * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_discover_osversion):
2865 Use ElfW(Nhdr).
2866
742df3a4
UD
28672007-08-05 Ulrich Drepper <drepper@redhat.com>
2868
2869 * po/zh_CN.po: Updated translation from translation team.
2870
0470fa46
JJ
28712007-08-05 Jakub Jelinek <jakub@redhat.com>
2872
2873 * sysdeps/unix/sysv/linux/powerpc/powerpc32/socket.S (__socket):
2874 Don't use CGOTSETUP and CGOTRESTORE macros.
2875
b5075bdc
RM
28762007-08-04 Roland McGrath <roland@redhat.com>
2877
2878 * posix/Makefile ($(objpfx)getconf.speclist): Fix typo.
2879
9accc268
JJ
28802007-08-04 Jakub Jelinek <jakub@redhat.com>
2881
2882 * io/bits/fcntl2.h (open, open64, openat, openat64): Add
2883 __extension__ around the whole statement expression.
2884
220ae3ef
UD
28852007-08-04 Ulrich Drepper <drepper@redhat.com>
2886
c8ccd8e3
UD
2887 * sysdeps/unix/opendir.c (__alloc_dir): Correct order of DIR
2888 elements during initialization.
2889
220ae3ef
UD
2890 * po/pl.po: Updated translation from translation team.
2891 * po/tr.po: Likewise.
11960f7f 2892 * po/nl.po: Likewise.
220ae3ef 2893
2fb20667
UD
28942007-08-03 Ulrich Drepper <drepper@redhat.com>
2895
2896 * rt/aio.h: Add __nonnull attributes.
2897
ce31a3b1
UD
28982007-08-03 Jakub Jelinek <jakub@redhat.com>
2899
64f6281c
UD
2900 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Properly handle -0.
2901 * stdlib/Makefile (tests): Add tst-strtod5.
2902 (tst-strtod5-ENV): New.
2903 * stdlib/tst-strtod5.c: New file.
2904
ce31a3b1
UD
2905 * intl/dcigettext.c (_nl_find_msg): Free encoding if __gconv_open
2906 failed.
2907 * intl/finddomain.c (_nl_find_domain): Free normalized_codeset
2908 on failure.
2909
2910 * elf/dl-load.c (decompose_rpath): Free copy if result couldn't be
2911 allocated.
2912
754980e4
JJ
29132007-08-03 Jakub Jelinek <jakub@redhat.com>
2914
2915 * rt/mqueue.h (mq_timedreceive, mq_timedsend): Fix nonnull argument
2916 numbers.
2917
497af0cb
UD
29182007-08-02 Ulrich Drepper <drepper@redhat.com>
2919
cbf0489b
UD
2920 * io/Makefile (aux): Add have_o_cloexec.
2921 * include/fcntl.h: Declare __have_o_cloexec.
2922 * io/have_o_cloexec.c: New file.
2923 * sysdeps/unix/opendir.c (__opendir): Use O_CLOEXEC is available.
2924 (__alloc_dir): If O_CLOEXEC has been used, don't duplicate the
2925 fcntl call if not necessary.
2926 * login/utmp_file.c (setutent_file): Use __have_o_cloexec instead
2927 of local variable.
2928
fa39685d
UD
2929 * sysdeps/unix/opendir.c (__alloc_dir): Don't initialize ->data.
2930 Avoid memset, add explicit initialization.
2931 * sysdeps/unix/dirstream.h (struct __dirstream): Move data elemtn
2932 to the end and change into zero-sized array.
2933 Move lock member to fill a hole on 64-bit platforms.
9b2e9577
UD
2934
2935 * stdlib/stdlib.h: Remove __strto*_internal prototypes and strto*
2936 inline functions.
2937 * include/stdlib.h: Add __strto*_internal prototypes here.
2938 * wcsmbs/wchar.h: Remove __wcsto*_internal prototypes and wcsto*
2939 inline functions.
2940 * include/wchar.h: Add __wcsto*_internal prototypes.
2941 * sysdeps/generic/inttypes.h: No need to protect the declaration
2942 of the __strto*_internal and __wcsto*_internal members here.
2943
497af0cb
UD
2944 * rt/mqueue.h: Change const to __const and add nonnull attributes.
2945
d17a8cf0
RM
29462007-08-02 Roland McGrath <roland@redhat.com>
2947
2948 * posix/Makefile ($(inst_libexecdir)/getconf): Make hard links to
2949 $(inst_bindir)/getconf if possible.
2950
2951 * posix/Makefile ($(objpfx)getconf.speclist): New target.
2952 (generated): Add it.
2953 ($(inst_libexecdir)/getconf): Use it.
2954
0abf17de
UD
29552007-08-01 Ulrich Drepper <drepper@redhat.com>
2956
2957 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Using
2958 /proc is faster and sufficient. /sys is still needed for
2959 __get_nprocs_conf.
2960
5e0923ab
UD
29612007-08-01 Jakub Jelinek <jakub@redhat.com>
2962
2963 * sysdeps/unix/sysv/linux/i386/syscalls.list (fallocate): Add fallocate
2964 syscall as __fallocate64.
2965 * sysdeps/unix/sysv/linux/i386/posix_fallocate.c: New file.
2966 * sysdeps/unix/sysv/linux/i386/posix_fallocate64.c: New file.
2967
1475e201
UD
29682007-07-30 Jakub Jelinek <jakub@redhat.com>
2969
2970 * stdlib/tst-strtod2.c (do_test): Use %tu in fmt string for ptrdiff_t
2971 value.
2972
2973 * stdio-common/tst-fmemopen2.c (do_test): Avoid fmt string warning
2974 if off_t is different rank from size_t.
2975
2976 * sysdeps/generic/unwind-dw2.c (extract_cie_info, execute_cfa_program,
2977 uw_frame_state_for): Avoid type punning warnings.
2978 * sysdeps/generic/unwind-dw2-fde-glibc.c
2979 (_Unwind_IteratePhdrCallback): Likewise.
2980 * sysdeps/generic/unwind-dw2-fde.c (_Unwind_Find_FDE): Likewise.
2981 (binary_search_single_encoding_fdes, binary_search_mixed_encoding_fdes,
2982 get_cie_encoding, linear_search_fdes): Don't mix char and unsigned char
2983 pointers.
2984
e076bece
UD
29852007-07-31 Ulrich Drepper <drepper@redhat.com>
2986
9506149a
UD
2987 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs_conf): Count
2988 total processors using sysfs.
2989 (__get_nprocs): Use sysfs to determine which processors are online.
e076bece 2990
bbeaaa84
JJ
29912007-07-31 Jakub Jelinek <jakub@redhat.com>
2992
09881398
JJ
2993 * sysdeps/unix/sysv/linux/posix_fallocate.c (posix_fallocate): Fix
2994 syscall arguments count.
2995
bbeaaa84
JJ
2996 * stdio-common/tfformat.c (sprint_doubles): Add 12 new tests.
2997
087ef75f
RM
29982007-07-30 Roland McGrath <roland@redhat.com>
2999
3000 * manual/libc.texinfo: Update copyrights, formatting magic, and
3001 @dircategory. From Karl Berry <karl@freefriends.org>.
3002
44f08a6e
UD
30032007-07-29 Ulrich Drepper <drepper@redhat.com>
3004
eafaae72
UD
3005 [BZ #4860]
3006 * io/Makefile (headers): Add bits/fcntl2.h.
3007
c5705565
UD
3008 * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_ZERO_S): Optimize
3009 using gcc builtin.
3010 (__CPU_EQUAL_S): Likewise.
3011
44f08a6e
UD
3012 * posix/Makefile (routines): Add sched_cpualloc and sched_cpufree.
3013 (tests): Add tst-cpuset.
3014 * posix/sched_cpualloc.c: New file.
3015 * posix/sched_cpufree.c: New file.
3016 * posix/tst-cpuset.c: New file.
3017 * posix/Versions: Export __sched_cpualloc and __sched_cpufree for
3018 GLIBC_2.7.
3019 * sysdeps/unix/sysv/linux/bits/sched.h: Define __CPU_*_S macros.
3020 * posix/sched.h: Define old CPU_* macros in temers of __CPU_*_S
3021 macros. Define CPU_*_S macros.
3022
8f5e1400
UD
30232007-07-28 Ulrich Drepper <drepper@redhat.com>
3024
5b74caf6
UD
3025 * posix/getconf.c (vars): Add missing _SC_LEVEL4_CACHE_LINESIZE
3026 entry.
3027
a26d01bb 3028 [BZ #4858]
8f5e1400
UD
3029 * stdio-common/printf_fp.c (___printf_fp): Fix special case of
3030 #.0g and value rounded to 1.0.
3031 * stdio-common/tfformat.c (sprint_doubles): Add two new tests.
3032
085a4412
UD
30332007-07-26 Jakub Jelinek <jakub@redhat.com>
3034
cedb4109
UD
3035 * locale/programs/ld-monetary.c (monetary_finish): Avoid range check
3036 for int_frac_digits and frac_digits.
3037
3038 * login/logout.c (logout): Avoid aliasing violation.
3039 * login/logwtmp.c (logwtmp): Likewise.
3040
3041 * libio/genops.c (_IO_un_link): Avoid aliasing violation.
3042
9d9febc7
UD
3043 * nscd/selinux.c (preserve_capabilities): Initialize new_caps
3044 to avoid warning.
3045 * iconv/gconv_open.c (__gconv_open): Initialize ptr to avoid
3046 warning.
3047 * nis/nis_subr.c (nis_getnames): Initialize saveptr to avoid
3048 warning.
3049 * resolv/inet_ntop.c (inet_ntop6): Initialize best.len and cur.len
3050 to avoid warnings.
3051
701666b7
UD
3052 * nss/nsswitch.c (__nss_lookup_function): Don't cast &ni->known to
3053 void **.
3054 * nss/nsswitch.h (service_user): Use void * type for KNOWN field.
3055
3056 * nss/nss_files/files-hosts.c (LINE_PARSER): Cast host_addr to
3057 char * to avoid warning.
3058 * nis/nss_nis/nis-hosts.c (LINE_PARSER): Likewise.
3059
3060 * timezone/Makefile (CFLAGS-zdump.c): Add -fwrapv.
3061
3062 * locale/programs/ld-ctype.c (ctype_finish, set_class_defaults,
3063 allocate_arrays): Cast second argument to charmap_find_symbol
3064 to char * to avoid warnings.
3065
3066 * locale/programs/repertoire.c (repertoire_new_char): Change
3067 from_nr, to_nr and cnt to unsigned long, adjust printf format
3068 string.
3069
3070 * locale/programs/ld-collate.c (insert_value, handle_ellipsis):
3071 Cast second argument to new_element to char * to avoid warnings.
3072
3073 * locale/weightwc.h (findidx): Cast &extra[-i] to const int32_t *.
3074
3075 * intl/gettextP.h (struct loaded_domain): Change plural to const
3076 struct expression *.
3077 * intl/plural-eval.c (plural_eval): Change first argument to
3078 const struct expression *.
3079 * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Change first
3080 argument to const struct expression **.
3081 * intl/plural-exp.h (EXTRACT_PLURAL_EXPRESSION, plural_eval): Adjust
3082 prototypes.
3083 * intl/loadmsgcat (_nl_unload_domain): Cast away const
3084 in call to __gettext_free_exp.
3085
3086 * posix/fnmatch.c (fnmatch): Rearrange code to avoid maybe
3087 unitialized wstring/wpattern var warnings.
3088
3089 * posix/runtests.c (struct a_test): Make data field const char *.
3090
3091 * stdio-common/tst-sprintf2.c (main): Don't declere u, v and buf
3092 vars if not LDBL_MANT_DIG >= 106.
3093
3094 * stdio-common/Makefile (CFLAGS-vfwprintf.c): Add -Wno-unitialized.
3095
3096 * stdio-common/vfprintf.c (vfprintf): Cast first arugment to
3097 __find_specmb to avoid warning.
3098
3099 * rt/tst-mqueue1.c (do_one_test): Add casts to avoid warnings.
3100
3101 * debug/test-strcpy_chk.c (do_tests, do_random_tests): Add casts
3102 to avoid warnings.
3103
3104 * sysdeps/ieee754/ldbl-96/s_roundl.c (huge): Add L suffix to
3105 initializer.
3106
3107 * sysdeps/unix/clock_gettime.c (clock_gettime): Only define
3108 tv var when it will be actually used.
3109
3110 * sunrpc/rpc_cmsg.c (xdr_callmsg): Cast IXDR_PUT_* to void
3111 to avoid warnings.
3112
085a4412
UD
3113 * iconvdata/gbk.c (BODY): Make buf and cp char instead of unsigned
3114 char array resp. pointer.
3115 * iconvdata/iso-2022-kr.c (BODY): Make buf unsigned char instead of
3116 char array.
3117 * iconvdata/cns11643.h (cns11643_to_ucs4): Change first argument
3118 to const unsigned char **.
3119 (ucs4_to_cns11643): Change second argument to unsigned char *.
3120 * iconvdata/euc-tw.c (BODY): Change endp type to
3121 const unsigned char *.
3122 * iconvdata/iso-ir-165.h (ucs4_to_isoir165): Change second argument
3123 to unsigned char *.
3124 * iconvdata/ibm1008_420.c (LOOP_NEED_FLAGS): Don't define.
3125 * iconvdata/iso-2022-cn.c (BODY): Change buf to unsigned char array.
3126 * iconvdata/iso-2022-cn-ext.c (BODY): Change buf, tmpbuf, tmp
3127 types to unsigned char pointers/arrays instead of char.
3128 * iconvdata/jis0201.h (ucs4_to_jisx0201): Change second argument
3129 to unsigned char *.
3130 * iconvdata/jis0208.h (ucs4_to_jisx0208): Likewise.
3131 * iconvdata/jis0212.h: Include assert.h.
3132 (ucs4_to_jisx0212): Change second argument to unsigned char *.
3133 assert that if cp[0] is not '\0', cp[1] is not '\0' either instead
3134 of trying to handle that.
3135 * iconvdata/euc-kr.c (euckr_from_ucs4): Initialize also cp[1] to
3136 shut up a warning.
3137 * iconvdata/euc-jp-ms.c (from_ucs4_lat1, from_ucs4_greek,
3138 from_ucs4_cjk, from_ucs4_cjkcpt, from_ucs4_extra): Change type to
3139 two dimensional const unsigned char arrays.
3140 (BODY): Cast "" to (const unsigned char *) for assignment to cp.
3141 Initialize endp to inptr to shut up a warning.
3142
fa69dc9c
UD
31432007-07-20 Jakub Jelinek <jakub@redhat.com>
3144
ae1ad762
UD
3145 [BZ #4772]
3146 * time/strptime_l.c (__strptime_internal): Silently ignore
3147 strftime modifiers and field width in recursive calls.
3148
fa69dc9c
UD
3149 * include/time.h (enum ptime_locale_status): Remove.
3150 (__strptime_internal): Remove decided and era_cnt arguments,
3151 add statep argument.
3152 * time/strptime_l.c (__strptime_internal): Remove decided
3153 and era_cnt arguments, add statep argument. Don't recompute
3154 any fields in recursive calls, only update caller's tm
3155 and state, if recursive call fails, don't change tm nor
3156 any state.
3157 (get_alt_number): Adjust.
3158 (recursive): Adjust caller.
3159 (strptime): Likewise.
3160 * time/strptime.c (strptime): Likewise.
3161
7b503bcc
UD
31622007-07-19 Jakub Jelinek <jakub@redhat.com>
3163
3164 * iconv/gconv_int.h (__GCONV_NULCONV): New internal only error code.
3165 * iconv/gconv_cache.c (__gconv_lookup_cache): Return __GCONV_NULCONV
3166 if from and to charsets are the same.
3167 * iconv/gconv_db.c (__gconv_find_transform): Likewise.
3168 * intl/dcigettext.c (_nl_find_msg): Return NULL even if __gconv_open
3169 returns __GCONV_NOCONV, but not for __GCONV_NULCONV.
3170
31712007-07-17 Jakub Jelinek <jakub@redhat.com>
3172
3173 * wcsmbs/wchar.h: Only define wint_t if __need_wint_t.
3174 Don't define wint_t when __need_mbstate_t unless it
3175 is necessary.
3176 (__mbstate_t): Use __WINT_TYPE__ rather than wint_t
3177 in the typedef if possible.
3178 * wctype/wctype.h (wint_t): Define by including
3179 wchar.h with __need_wint_t instead of including stddef.h
3180 with __need_wint_t and as fallback definining it ourselves.
3181 * iconv/gconv.h (__need_wint_t): Define before including
3182 wchar.h.
3183 * sysdeps/gnu/_G_config.h: Don't include gconv.h if not _LIBC
3184 or _GLIBCPP_USE_WCHAR_T.
3185 (__need_wchar_t): Don't define
3186 if not _LIBC or _GLIBCPP_USE_WCHAR_T.
3187 (__need_wint_t): Don't define before including stddef.h,
3188 define before including wchar.h only if _LIBC or
3189 _GLIBCPP_USE_WCHAR_T.
3190 (_G_iconv_t): Don't define if not _LIBC or _GLIBCPP_USE_WCHAR_T.
3191 * sysdeps/mach/hurd/_G_config.h: Likewise.
3192 * sysdeps/generic/_G_config.h: Likewise.
3193 * libio/libio.h (__wunderflow, __wuflow, __woverflow): Only
3194 prototype if _LIBC or _GLIBCPP_USE_WCHAR_T.
3195 (_IO_getwc_unlocked, _IO_putwc_unlocked): Only define
3196 if _LIBC or _GLIBCPP_USE_WCHAR_T.
3197
a95a608f
UD
31982007-07-28 Ulrich Drepper <drepper@redhat.com>
3199
3200 * sysdeps/posix/posix_fallocate64.c: Undefine
3201 __posix_fallocate64_l64 before alias handling.
3202 * sysdeps/unix/sysv/linux/posix_fallocate.c: New file.
3203 * sysdeps/unix/sysv/linux/posix_fallocate64.c: New file.
3204 * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c: New file.
3205 * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate64.c: New file.
3206
3207 * io/tst-posix_fallocate.c: Include <fcntl.h>.
3208
32092007-07-23 Jakub Jelinek <jakub@redhat.com>
3210
3211 * locale/programs/ld-collate.c (atwc): New variable.
3212 (add_to_tablewc): New toplevel function, moved from collate_output.
3213 (collate_output): Remove add_to_tablewc nested function.
3214
3215 * iconv/iconvconfig.c (hash_table, hash_size): New toplevel vars.
3216 (name_insert): New function.
3217 (write_output): Remove hash_table and hash_size vars and name_insert
3218 nested function.
3219
80d4c3b0
RM
32202007-07-24 Roland McGrath <roland@redhat.com>
3221
3222 * Makerules (install-others-programs-nosubdir): New target.
3223 (install-no-libc.a-nosubdir): Depend on it.
3224
3225 * iconv/Makefile (install-others-programs): Set this instead of
3226 install-others.
3227 * login/Makefile (install-others-programs): Likewise.
3228 * posix/Makefile (install-others-programs): Likewise.
3229
3230 * Makerules (install-no-libc.a-nosubdir): Clean up conditional
3231 dependencies.
3232
c1bf9f14
UD
32332007-07-23 Ulrich Drepper <drepper@redhat.com>
3234
3235 * io/Makefile (tests): Add tst-posix_fallocate.
3236 * io/tst-posix_fallocate.c: New file.
3237
3238 * sysdeps/unix/sysv/linux/kernel-features.h: Define
3239 __ASSUME_FALLOCATE.
3240
2320270c
RM
32412007-07-22 Roland McGrath <roland@frob.com>
3242
3dadfa7e
RM
3243 * hurd/getdport.c: Add missing copyright year update.
3244
2320270c
RM
3245 * sysdeps/mach/hurd/bits/fcntl.h [__USE_GNU] (O_CLOEXEC): New macro.
3246 * hurd/port2fd.c (_hurd_port2fd): Implement O_CLOEXEC.
3247
cc783763
UD
32482007-07-22 Ulrich Drepper <drepper@redhat.com>
3249
c942388d
UD
3250 * login/utmp_file.c (setutent_file): Use O_CLOEXEC if possible.
3251
cc783763
UD
3252 * libio/fileops.c (_IO_new_file_fopen): Recognize 'e' flag and set
3253 O_CLOEXEC is needed.
3254 * nis/nss_compat/compat-grp.c: Use 'e' flag when opening file.
3255 Avoid additional fcntl to set O_CLOEXEC if not needed.
3256 * nis/nss_compat/compat-initgroups.c: Likewise.
3257 * nis/nss_compat/compat-pwd.c: Likewise.
3258 * nis/nss_compat/compat-spwd.c: Likewise.
3259
610903b0
RM
32602007-07-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
3261
3dadfa7e 3262 [BZ #3665]
5c3d7832
RM
3263 * manual/errno.texi: Change ECANCELED value to 119.
3264
3dadfa7e 3265 [BZ #4610]
610903b0
RM
3266 * mach/lock-intern.h: Include <sys/cdefs.h>.
3267
3dadfa7e 3268 [BZ #4178]
610903b0
RM
3269 * sysdeps/mach/hurd/sigaction.c (__sigaction): Check ACT != NULL before
3270 reading A.
3271
3dadfa7e
RM
3272 [BZ #4126]
3273 * sysdeps/mach/hurd/sigsuspend.c (sigsuspend_not_cancel): Define alias
3274 to __sigsuspend.
610903b0
RM
3275
3276 * sysdeps/mach/i386/sysdep.h: Include <dl-sysdep.h> and <tls.h>.
3277
32782006-06-13 Thomas Schwinge <tschwinge@gnu.org>
3279
3280 * sysdeps/mach/hurd/tls.h: Change `ASSEMBLER' conditional to
3281 `__ASSEMBLER__'.
3282 * sysdeps/mach/hurd/i386/tls.h: Likewise.
3283
acf79996
UD
32842007-07-21 Ulrich Drepper <drepper@redhat.com>
3285
dde0763a
UD
3286 * nscd/nscd_helper.c (get_mapping): Use MSG_CMSG_CLOEXEC for
3287 descriptor received from nscd.
3288
acf79996
UD
3289 * sysdeps/unix/sysv/linux/bits/socket.h: Define MSG_CMSG_CLOEXEC.
3290
3291 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_CLOEXEC.
3292 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
3293 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
3294 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
3295 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
3296 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
3297
00d26929
JJ
32982007-07-20 Jakub Jelinek <jakub@redhat.com>
3299
403445d7
JJ
3300 [BZ #4816]
3301 * manual/signal.texi (Non-atomic Example): Make memory var volatile.
3302
00d26929
JJ
3303 [BZ #4813]
3304 * login/forkpty.c (forkpty): Close master and slave fds on
3305 fork failure. Patch by
3306 Mikulas Patocka <mikulas@artax.karlin.mff.cuni.cz>.
3307
087722b8
UD
33082007-07-18 Jakub Jelinek <jakub@redhat.com>
3309
3310 * include/features.h (__USE_ISOC95): New define.
3311 * wcsmbs/wchar.h (fwprintf, fwscanf, wprintf, wscanf, swprintf,
3312 swscanf, vfwprintf, vwprintf, vswprintf, fwide): Define even
3313 for -std=iso9899:199409.
3314 * CONFORMANCE: Remove comments about unsupported AMD1.
3315
b042b023
UD
33162007-07-17 Jakub Jelinek <jakub@redhat.com>
3317
3318 * sysdeps/ia64/sched_cpucount.c: New file.
3319 * sysdeps/powerpc/sched_cpucount.c: New file.
3320
8381e467
UD
3321 * sysdeps/unix/sysv/linux/bits/sched.h (__sched_cpucount): Add
3322 __BEGIN_DECLS/__END_DECLS around the prototype.
3323 * bits/sched.h (__sched_cpucount): Likewise. Make second argument
3324 pointer to const cpu_set_t.
3325
50e16f85
UD
3326 * bits/types.h: Don't include stddef.h, don't define __need_size_t.
3327 * signal/signal.h <__USE_BSD || __USE_XOPEN_EXTENDED>: Define
3328 __need_size_t and include stddef.h.
3329 * sysvipc/sys/msg.h: Likewise.
3330 * posix/sched.h: Likewise.
3331 * hurd/hurd/signal.h (__need_size_t): Define.
3332
3333 * CONFORMANCE: ctype.h and wctype.h no longer define size_t,
3334 neither does signal.h in pedantic ISO C namespaces. stdio.h
3335 no longer defines wint_t or wchar_t.
3336
b257c726
UD
3337 * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): New function.
3338 * debug/vfwprintf_chk.c (__vfwprintf_chk): Use
3339 _IO_acquire_lock_clear_flags2 instead of _IO_acquire_lock.
3340 * debug/vprintf_chk.c (__vprintf_chk): Likewise.
3341 * debug/vwprintf_chk.c (__vwprintf_chk): Likewise.
3342 * debug/vfprintf_chk.c (__vfprintf_chk): Likewise.
3343 * debug/fwprintf_chk.c (__fwprintf_chk): Likewise.
3344 * debug/printf_chk.c (__printf_chk): Likewise.
3345 * debug/fprintf_chk.c (__fprintf_chk): Likewise.
3346 * debug/wprintf_chk.c (__wprintf_chk): Likewise.
3347
3348 * sysdeps/pthread/bits/stdio-lock.h (_IO_acquire_lock_clear_flags2):
3349 Define.
3350
d5078b9f
UD
3351 * bits/confname.h (_CS_POSIX_V6_WIDTH_RESTRICTED_ENVS): Define.
3352 * posix/getconf.c (vars): Add POSIX_V6_WIDTH_RESTRICTED_ENVS.
3353
1c3e748e
UD
33542007-07-16 Jakub Jelinek <jakub@redhat.com>
3355
3356 [BZ #4792]
3357 * stdlib/stdlib.h (realloc): Remove __attribute_malloc__.
3358 * malloc/malloc.h (realloc): Likewise.
3359
4e425301
UD
3360 * libio/iopopen.c (_IO_new_proc_open): Don't close child_std_end
3361 if one of proc_file_chain streams has that fileno.
3362 * stdio-common/Makefile (tests): Add tst-popen2.
3363 * stdio-common/tst-popen2.c: New test.
3364
2e2efe65
RM
33652007-07-14 Jakub Jelinek <jakub@redhat.com>
3366
3367 * elf/ldconfig.c: Allow GPLv2 or any later version.
3368 * elf/readlib.c: Likewise.
3369 * elf/chroot_canon.c: Likewise.
3370 * elf/cache.c: Likewise.
3371 * nscd/mem.c: Likewise.
3372 * nscd/getpwuid_r.c: Likewise.
3373 * nscd/grpcache.c: Likewise.
3374 * nscd/aicache.c: Likewise.
3375 * nscd/getsrvbynm_r.c: Likewise.
3376 * nscd/nscd.c: Likewise.
3377 * nscd/servicescache.c: Likewise.
3378 * nscd/getsrvbypt_r.c: Likewise.
3379 * nscd/initgrcache.c: Likewise.
3380 * nscd/gethstbyad_r.c: Likewise.
3381 * nscd/gethstbynm2_r.c: Likewise.
3382 * nscd/getgrnam_r.c: Likewise.
3383 * nscd/nscd_setup_thread.c: Likewise.
3384 * nscd/getpwnam_r.c: Likewise.
3385 * nscd/gai.c: Likewise.
3386 * nscd/connections.c: Likewise.
3387 * nscd/dbg_log.c: Likewise.
3388 * nscd/cache.c: Likewise.
3389 * nscd/hstcache.c: Likewise.
3390 * nscd/nscd_conf.c: Likewise.
3391 * nscd/getgrgid_r.c: Likewise.
3392 * nscd/pwdcache.c: Likewise.
3393 * catgets/gencat.c: Likewise.
3394 * locale/programs/linereader.h: Likewise.
3395 * locale/programs/locarchive.c: Likewise.
3396 * locale/programs/ld-paper.c: Likewise.
3397 * locale/programs/locfile-kw.h: Likewise.
3398 * locale/programs/ld-address.c: Likewise.
3399 * locale/programs/xmalloc.c: Likewise.
3400 * locale/programs/ld-time.c: Likewise.
3401 * locale/programs/localedef.c: Likewise.
3402 * locale/programs/simple-hash.c: Likewise.
3403 * locale/programs/xstrdup.c: Likewise.
3404 * locale/programs/ld-numeric.c: Likewise.
3405 * locale/programs/locfile-kw.gperf: Likewise.
3406 * locale/programs/ld-collate.c: Likewise.
3407 * locale/programs/charmap-kw.gperf: Likewise.
3408 * locale/programs/charmap.h: Likewise.
3409 * locale/programs/charmap-kw.h: Likewise.
3410 * locale/programs/config.h: Likewise.
3411 * locale/programs/locfile.c: Likewise.
3412 * locale/programs/ld-ctype.c: Likewise.
3413 * locale/programs/charmap.c: Likewise.
3414 * locale/programs/ld-messages.c: Likewise.
3415 * locale/programs/repertoire.h: Likewise.
3416 * locale/programs/locale.c: Likewise.
3417 * locale/programs/ld-name.c: Likewise.
3418 * locale/programs/linereader.c: Likewise.
3419 * locale/programs/locfile.h: Likewise.
3420 * locale/programs/3level.h: Likewise.
3421 * locale/programs/ld-monetary.c: Likewise.
3422 * locale/programs/ld-measurement.c: Likewise.
3423 * locale/programs/charmap-dir.c: Likewise.
3424 * locale/programs/ld-identification.c: Likewise.
3425 * locale/programs/localedef.h: Likewise.
3426 * locale/programs/charmap-dir.h: Likewise.
3427 * locale/programs/repertoire.c: Likewise.
3428 * locale/programs/simple-hash.h: Likewise.
3429 * locale/programs/ld-telephone.c: Likewise.
3430 * locale/programs/locale-spec.c: Likewise.
3431 * locale/programs/locfile-token.h: Likewise.
3432 * posix/getconf.c: Likewise.
3433 * iconv/dummy-repertoire.c: Likewise.
3434 * iconv/iconv_charmap.c: Likewise.
3435 * iconv/iconvconfig.c: Likewise.
3436 * iconv/iconv_prog.c: Likewise.
3437 * malloc/memusagestat.c: Likewise.
3438 * sysdeps/unix/sysv/linux/nscd_setup_thread.c: Likewise.
3439
84c23a3d
RM
34402007-07-06 Kaz Kojima <kkojima@rr.iij4u.or.jp>
3441
3442 * sysdeps/sh/bsd-setjmp.S (setjmp): Use correct argument registers.
3443 * sysdeps/sh/bsd-_setjmp.S (_setjmp): Likewise.
3444 * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Do correct sanity
3445 check for the first argument.
3446
1c298d08
UD
34472007-07-12 Jakub Jelinek <jakub@redhat.com>
3448
3449 [BZ #4775]
3450 * math/tgmath.h (__tgmath_real_type_sub): Formatting.
3451 (__tgmath_real_type): Fix if expr is const int or other const
3452 qualified integral type.
3453 (__TGMATH_UNARY_REAL_ONLY): Rewritten to avoid using statement
3454 expressions and handle const qualified arguments.
3455 (__TGMATH_BINARY_FIRST_REAL_ONLY, __TGMATH_UNARY_REAL_IMAG,
3456 __TGMATH_UNARY_REAL_IMAG_RET_REAL): Likewise.
3457 (__TGMATH_UNARY_REAL_RET_ONLY): Rewritten to avoid using
3458 statement expressions.
3459 (__TGMATH_BINARY_REAL_ONLY, __TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY,
3460 __TGMATH_TERNARY_REAL_ONLY, __TGMATH_BINARY_REAL_IMAG): Likewise.
3461 (__TGMATH_UNARY_IMAG): Define.
3462 (conj, cproj): Use __TGMATH_UNARY_IMAG macro.
3463 * math/Makefile (tests): Add test-tgmath2.
3464 (CFLAGS-test-tgmath2.c): Add.
3465 * math/test-tgmath.c (fy, dy, ly, fz, dz, lz, count_cdouble,
3466 count_cfloat, count_cldouble): New variables.
3467 (NCCALLS): Define.
3468 (main): Check number of complex calls as well.
3469 (F(compile_test)): Add complex tests and tests with const qualified
3470 arguments.
3471 (y, z, ccount): Define.
3472 (F(cacos), F(casin), F(catan), F(ccos), F(csin), F(ctan), F(cacosh),
3473 F(casinh), F(catanh), F(ccosh), F(csinh), F(ctanh), F(cexp), F(clog),
3474 F(csqrt), F(cpow), F(cabs), F(carg), F(creal), F(cimag), F(conj),
3475 F(cproj)): New functions.
3476 * math/test-tgmath2.c: New test.
3477
34782007-07-11 Jakub Jelinek <jakub@redhat.com>
3479
3480 [BZ #4776]
3481 * elf/dl-load.c (_dl_rtld_di_serinfo): Output / in LD_LIBRARY_PATH,
3482 RPATH etc. as "/" rather than "", don't segfault on empty paths,
3483 instead output ".".
3484 * dlfcn/Makefile (distribute): Add glreflib3.c.
3485 (module-names): Add glreflib3.
3486 ($(objpfx)tst-dlinfo.out): Depend on glreflib3.so rather than
3487 glreflib1.so.
3488 (LDFLAGS_glreflib3.so): New.
3489 * dlfcn/tst-dlinfo.c (do_test): Load glreflib3.so instead of
3490 glreflib1.so.
3491 * dlfcn/glreflib3.c: New file.
3492
3493 * intl/finddomain.c (_nl_find_domain): If _nl_explode_name
3494 returned -1, return NULL.
3495 * intl/explodename.c (_nl_explode_name): Return -1 if
3496 _nl_normalize_codeset failed.
3497
a88f47a7
UD
34982007-07-07 Steven Munroe <sjmunroe@us.ibm.com>
3499
3500 * sysdeps/powerpc/powerpc32/power6/memset.S: Update comments.
3501 Specify .machine power6 to get ISA-V2.0 branch hints. Unroll loops
3502 and avoid branch misspredicts for > 31 bytes memset case.
3503 * sysdeps/powerpc/powerpc64/power6/memset.S: Likewise.
3504 Remove toc ref to __cache_line_size.
3505
3506 * sysdeps/powerpc/powerpc32/power4/memcmp.S: Specify .machine power4
3507 to get ISA-V2.0 branch hints.
3508 * sysdeps/powerpc/powerpc32/power4/memcpy.S: Likewise
3509 * sysdeps/powerpc/powerpc32/power4/memset.S: Likewise
3510 * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
3511 * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
3512 * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
3513 * sysdeps/powerpc/powerpc64/power4/memset.S: Likewise.
3514 Remove toc ref to __cache_line_size.
3515
3516 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S:
3517 Include math_ldbl_opt.h.
3518
f98c2d06
UD
35192007-07-10 Ulrich Drepper <drepper@redhat.com>
3520
3521 [BZ #4773]
3522 * time/strptime_l.c (__strptime_internal): Implement greedy
3523 matching of weekday and month names.
3524
cec5991f
RM
35252007-07-09 Roland McGrath <roland@redhat.com>
3526
3527 * elf/elf.h (NT_GNU_ABI_TAG): New macro.
3528 (ELF_NOTE_ABI): Use it.
3529 (NT_GNU_HWCAP, NT_GNU_BUILD_ID): New macros.
3530
8c1dcd26
UD
35312007-07-09 Ulrich Drepper <drepper@redhat.com>
3532
3533 * sysdeps/x86_64/cacheinfo.c (intel_02_known): Add new entries.
3534 * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
3535
c2c7bd3f
UD
35362007-07-07 Ulrich Drepper <drepper@redhat.com>
3537
3538 [BZ #4745]
0923a2c8
UD
3539 * stdio-common/vfscanf.c (_IO_vfscanf): Add additional test for EOF
3540 in loop to look for conversion specifier to avoid testing of
3541 wrong errno value.
3542 * stdio-common/Makefile (tests): Add bug18, bug18a, bug19, bug19a.
c2c7bd3f 3543 * stdio-common/bug18.c: New file.
0923a2c8
UD
3544 * stdio-common/bug18a.c: New file.
3545 * stdio-common/bug19.c: New file.
3546 * stdio-common/bug19a.c: New file.
c2c7bd3f 3547
4facf4af
RM
35482007-07-05 Mike Frysinger <vapier@gentoo.org>
3549
3550 * Makeconfig ($(common-objpfx)gnu/lib-names.stmp): Use LC_ALL=C when
3551 running awk script.
3552
1311e86e
UD
35532007-07-01 Jakub Jelinek <jakub@redhat.com>
3554
3555 * elf/dl-sysdep.c (_dl_important_hwcaps): Add integer overflow check.
3556 * elf/dl-minimal.c (__libc_memalign): Likewise. Handle malloc (0).
3557 Return NULL if mmap failed instead of asserting it does not.
3558 (calloc): Check for integer overflow.
3559
3560 * elf/dl-minimal.c (__strtoul_internal): Fix parsing of numbers bigger
3561 than LONG_MAX / 10.
3562
57c9179c
UD
35632007-07-03 Jakub Jelinek <jakub@redhat.com>
3564
3565 [BZ #4702]
3566 * nis/nss-default.c: Include errno.h.
3567 (init): Preserve errno.
3568
d0b283a8
UD
35692007-07-02 Ulrich Drepper <drepper@redhat.com>
3570
3571 * sysdeps/unix/sysv/linux/bits/socket.h (PF_UNIX): Update comment.
3572
34e0bbaf
UD
35732007-06-30 Ulrich Drepper <drepper@redhat.com>
3574
3575 * sysdeps/unix/sysv/linux/bits/socket.h: Add PF_RXRPC and AF_RXRPC.
3576
35772007-06-29 Martin Schwidefsky <schwidefsky@de.ibm.com>
3578
3579 * sysdeps/unix/sysv/linux/bits/socket.h: Add PF_IUCV and AF_IUCV.
3580
34e0bbaf 35812007-06-29 Martin Schwidefsky <schwidefsky@de.ibm.com>
33516494
UD
3582
3583 * sysdeps/s390/dl-procinfo.c: New file.
3584 * sysdeps/s390/dl-procinfo.h: New file.
3585 * sysdeps/unix/sysv/linux/s390/dl-procinfo.h: New file.
3586
0e508a6e
UD
35872007-06-29 Jakub Jelinek <jakub@redhat.com>
3588
3589 * elf/dl-load.c (open_verify): Find .note.ABI-tag notes even
3590 in PT_NOTE segments with multiple notes.
3591 * elf/readelflib.c (process_elf_file): Likewise.
3592
e22c61fb
UD
35932007-06-22 Ulrich Drepper <drepper@redhat.com>
3594
3595 * nis/nis_domain_of.c (__nis_domain_of): Make the code a bit more
3596 ISO C compliant.
3597
e4eb675d
UD
35982007-06-19 Ulrich Drepper <drepper@redhat.com>
3599
3600 * elf/dl-close.c (free_mem): Free _dl_scope_free_list.
3601
36022007-06-13 Jakub Jelinek <jakub@redhat.com>
3603
3604 * include/link.h: Don't include rtld-lowlevel.h.
3605 (struct link_map): Remove l_scope_lock.
3606 * sysdeps/generic/ldsodefs.h: Don't include rtld-lowlevel.h.
3607 (_dl_scope_free_list): New field (variable) in _rtld_global.
3608 (DL_LOOKUP_SCOPE_LOCK): Remove.
3609 (_dl_scope_free): New prototype.
3610 * elf/dl-runtime.c (_dl_fixup): Don't use __rtld_mrlock_*lock.
3611 Don't pass DL_LOOKUP_SCOPE_LOCK to _dl_lookup_symbol_x.
3612 (_dl_profile_fixup): Likewise.
3613 * elf/dl-sym.c (do_sym): Likewise. Use wrapped _dl_lookup_symbol_x
3614 whenever !RTLD_SINGLE_THREAD_P, use THREAD_GSCOPE_SET_FLAG and
3615 THREAD_GSCOPE_RESET_FLAG around it.
3616 * elf/dl-close.c (_dl_close_worker): Don't use
3617 __rtld_mrlock_{change,done}. Call _dl_scope_free on the old
3618 scope. Make sure THREAD_GSCOPE_WAIT () happens if any old
3619 scopes were queued or if l_scope_mem has been abandoned.
3620 * elf/dl-open.c (_dl_scope_free): New function.
3621 (dl_open_worker): Use it. Don't use __rtld_mrlock_{change,done}.
3622 * elf/dl-support.c (_dl_scope_free_list): New variable.
3623 * elf/dl-lookup.c (add_dependency): Remove flags argument.
3624 Remove DL_LOOKUP_SCOPE_LOCK handling.
3625 (_dl_lookup_symbol_x): Adjust caller. Remove DL_LOOKUP_SCOPE_LOCK
3626 handling.
3627 * elf/dl-object.c (_dl_new_object): Don't use
3628 __rtld_mrlock_initialize.
3629
9be09e06
UD
36302007-06-19 Ulrich Drepper <drepper@redhat.com>
3631
3632 * sysdeps/generic/ldsodefs.h (rtld_global): Reorder some elements
3633 to fill in holes
3634 (rtld_global_ro): Likewise.
3635
36362007-06-18 Jakub Jelinek <jakub@redhat.com>
3637
3638 * elf/dl-addr.c (_dl_addr): Skip PT_LOAD checking if l_contiguous.
3639 Move PT_LOAD checking to...
3640 (_dl_addr_inside_object): ... here, new function.
3641 * elf/dl-sym.c (do_sym): If not l_contiguous,
3642 call _dl_addr_inside_object.
3643 * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise.
3644 * dlfcn/dlinfo.c (dlinfo_doit): Likewise.
3645 * elf/dl-open.c (dl_open_worker): Likewise.
3646 (_dl_addr_inside_object): New function if IS_IN_rtld.
3647 * elf/dl-load.c (_dl_map_object_from_fd): Set l_contiguous if no
3648 holes are present or are PROT_NONE protected.
3649 * include/link.h (struct link_map): Add l_contiguous field.
3650 * sysdeps/generic/ldsodefs.h (_dl_addr_inside_object): New prototype.
3651
ae1ad3ae
UD
36522007-06-18 Jakub Jelinek <jakub@redhat.com>
3653 Tomas Janousek <tjanouse@redhat.com>
3654 Ulrich Drepper <drepper@redhat.com>
3655
3656 [BZ #4647]
3657 * resolv/res_send.c (send_dg): Remove socket_pf. Use ipv6_unavail
3658 member in __res_state, only convaddr4to6 if nssocks[ns] is a PF_INET6
3659 socket.
3660 * resolv/resolv.h (__res_state): Add ipv6_unavail member. Make
3661 unused member a bitmap.
3662 * resolv/res_init.c (__res_vinit): Reset ipv6_unavail if IPv6
3663 servers are configured.
3664
3abee0b7
UD
36652007-06-18 Jakub Jelinek <jakub@redhat.com>
3666
3667 * elf/rtld.c (dl_main): Don't call init_tls more than once.
3668
89074592
UD
36692007-06-17 Andreas Schwab <schwab@suse.de>
3670
3671 * sysdeps/generic/initfini.c: Tell gcc about the nonstandard sections.
3672
b26e274d
AJ
36732007-06-16 Andreas Jaeger <aj@suse.de>
3674
3675 [BZ #4125]
3676 * sysdeps/unix/sysv/linux/sys/ptrace.h
3677 (PTRACE_O_TRACESYSGOOD, PTRACE_O_TRACEFORK,
3678 PTRACE_O_TRACEVFORK, PTRACE_O_TRACECLONE, PTRACE_O_TRACEEXEC,
89074592 3679 PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT, PTRACE_O_MASK,
b26e274d
AJ
3680 PTRACE_EVENT_FORK, PTRACE_EVENT_VFORK, PTRACE_EVENT_CLONE,
3681 PTRACE_EVENT_EXEC, PTRACE_EVENT_VFORK_DONE, PTRACE_EVENT_EXIT):
3682 Define.
3683 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
3684 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
3685 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
3686 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
3687
e0d4a4e5
UD
36882007-06-16 Ulrich Drepper <drepper@redhat.com>
3689
3690 [BZ #4599]
3691 * sysdeps/unix/sysv/linux/check_pf.c (make_request): When
3692 determining whether there are IPv4/IPv6 addresses, ignore loopback
3693 addresses.
3694
ae8e81f5
JJ
36952007-06-14 Uros Bizjak <ubizjak@gmail.com>
3696
3697 * soft-fp/soft-fp.h (CMPtype): Define to "int" if undefined.
3698 * soft-fp/eqdf2.c (__eqdf2): Use CMPtype instead of int
3699 as the return type. Change type of "r" variable to CMPtype.
3700 * soft-fp/eqsf2.c (__eqsf2): Likewise.
3701 * soft-fp/eqtf2.c (__eqtf2): Likewise.
3702 * soft-fp/gedf2.c (__gedf2): Likewise.
3703 * soft-fp/gesf2.c (__gesf2): Likewise.
3704 * soft-fp/getf2.c (__getf2): Likewise.
3705 * soft-fp/ledf2.c (__ledf2): Likewise.
3706 * soft-fp/lesf2.c (__lesf2): Likewise.
3707 * soft-fp/letf2.c (__letf2): Likewise.
3708 * soft-fp/unorddf2 (__unorddf2): Likewise.
3709 * soft-fp/unordsf2 (__unordsf2): Likewise.
3710 * soft-fp/unordtf2 (__unordtf2): Likewise.
3711
90cd2413
UD
37122007-06-09 Ulrich Drepper <drepper@redhat.com>
3713
3714 * elf/do-lookup.h (do_lookup_x): Read r_nlist before r_list and
3715 make sure gcc doesn't mess around with this.
3716
3c457089
UD
37172007-06-08 Ulrich Drepper <drepper@redhat.com>
3718
3719 * elf/dl-lookup.c (_dl_lookup_symbol_x): Remove use of r_nlist.
3720
e8b6b64d
UD
37212007-06-08 Jakub Jelinek <jakub@redhat.com>
3722
3723 * elf/dl-close.c (_dl_close_worker): Remove all to be removed
3724 libraries from the global scope at once and call THREAD_GSCOPE_WAIT
3725 at most once per _dl_close_worker.
3726
36dffb22
UD
37272007-06-08 Ulrich Drepper <drepper@redhat.com>
3728
755db8c5
UD
3729 * sysdeps/unix/sysv/linux/bits/sched.h: Make second parameter of
3730 __sched_cpucount as const.
3731 * posix/sched_cpucount.c: Adjust.
3732
36dffb22
UD
3733 * posix/sched_cpucount.c (__sched_cpucount): Allow using special
3734 instruction for counting bits.
3735 * sysdeps/x86_64/sched_cpucount.c: New file.
3736
26f56c1c
UD
37372007-06-07 Ulrich Drepper <drepper@redhat.com>
3738
3739 * configure.in: Avoid variable named BASH.
e967d385 3740 * config.make.in: Likewise.
26f56c1c 3741 Patch in part by Mike Frysinger.
835abc5c 3742
26f56c1c 37432007-06-06 Jakub Jelinek <jakub@redhat.com>
47779a7d
JJ
3744
3745 [BZ #4586]
835abc5c
UD
3746 * sysdeps/i386/ldbl2mpn.c (__mpn_extract_long_double): Treat
3747 pseudo-zeros as zero.
3748 * sysdeps/x86_64/ldbl2mpn.c: New file.
3749 * sysdeps/ia64/ldbl2mpn.c: New file.
3750
7e3706ea
UD
37512007-06-04 Jakub Jelinek <jakub@redhat.com>
3752
3753 * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (nextafterl): Remove
3754 unused ily variable. Fix nextafterl on +-__LDBL_MAX__ and +-Inf.
3755 Remove unreachable code at the end.
3756
37572007-06-01 Steven Munroe <sjmunroe@us.ibm.com>
3758
3759 * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Correct description of
3760 ldbl-128ibm in comment.
3761 (fpclassifyl): Correct classification of denormals.
3762 * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (nextafterl): Correct
3763 return value for MIN denormal. Rewrite using long double math too
3764 correctly handle denormals and canonicalize the results.
3765
37662007-06-05 Jakub Jelinek <jakub@redhat.com>
3767
3768 * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c
3769 (__mpn_construct_long_double): Fix conversion where result ought
3770 to be smaller than __LDBL_MIN__, or the low double should be
3771 denormal. Fix decision where to negate low double - honor round
3772 to even rules.
3773 * stdio-common/tst-sprintf2.c: Include string.h.
3774 (COMPARE_LDBL): Define.
3775 (TEST): Also test whether a string hexadecimal float representation
3776 can be parsed back to the number.
3777 (main): Add a couple of further tests.
3778
43b76828
UD
37792007-06-04 Jakub Jelinek <jakub@redhat.com>
3780
3781 * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c
3782 (PRINT_FPHEX_LONG_DOUBLE): Fix printing numbers where lower double
3783 is non-zero, but smaller than 2 * __DBL_MIN__.
3784 * stdio-common/tst-sprintf2.c: New test.
3785 * stdio-common/Makefile (tests): Add tst-sprintf2.
3786
3787 * math/test-misc.c (main): Don't run last batch of tests with
3788 IBM long double format.
3789
04067002
UD
37902007-05-31 Steven Munroe <sjmunroe@us.ibm.com>
3791
3792 * sysdeps/powerpc/powerpc32/970/fpu/Implies: New file.
3793 * sysdeps/powerpc/powerpc32/power5/fpu/Implies: New file.
3794 * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: New file.
3795 * sysdeps/powerpc/powerpc32/power6/fpu/Implies: New file.
3796 * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: New file.
3797 * sysdeps/powerpc/powerpc64/970/fpu/Implies: New file.
3798 * sysdeps/powerpc/powerpc64/power5/fpu/Implies: New file.
3799 * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: New file.
3800 * sysdeps/powerpc/powerpc64/power6/fpu/Implies: New file.
3801 * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: New file.
3802 * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: New file.
3803 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies:
3804 New file.
3805 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies:
3806 New file.
3807 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies:
3808 New file.
3809 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies:
3810 New file.
3811 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies:
3812 New file.
3813 * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: New file.
3814 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies:
3815 New file.
3816 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies:
3817 New file.
3818 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies:
3819 New file.
3820 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies:
3821 New file.
3822 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies:
3823 New file.
3824
38252007-05-31 Steven Munroe <sjmunroe@us.ibm.com>
3826
3827 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S: Move.
3828 * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: To here.
3829 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrintf.S: Move.
3830 * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: To here.
3831 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llround.S: Move.
3832 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: To here.
3833 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llroundf.S: Move.
3834 * sysdeps/powerpc/powerpc32/power4/fpu/s_llroundf.S: To here.
3835
38362007-05-22 Steven Munroe <sjmunroe@us.ibm.com>
3837
3838 * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S
3839 (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
3840 * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S
3841 (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
3842 * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S
3843 (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
3844 * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S
3845 (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
3846
38472007-05-21 Steven Munroe <sjmunroe@us.ibm.com>
3848
3849 * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: New file.
3850 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.c: New file.
3851 * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: New file.
3852 * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: New file.
3853
38542007-03-15 Steven Munroe <sjmunroe@us.ibm.com>
3855
3856 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S
3857 [LONG_DOUBLE_COMPAT]: Add compat_symbol for llrintl@@GLIBC_2_1.
3858
38592006-02-13 Steven Munroe <sjmunroe@us.ibm.com>
3860
3861 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: New File
3862 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: New File
3863 * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: New File
3864 * sysdeps/powerpc/powerpc32/power6/fpu/s_llroundf.S: New File
3865
38662006-10-20 Steven Munroe <sjmunroe@us.ibm.com>
3867
3868 * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: New file.
3869 * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: New file.
3870
38712006-10-03 Steven Munroe <sjmunroe@us.ibm.com>
3872
3873 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llround.S: New file.
3874 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llroundf.S: New file.
3875
3876 * sysdeps/powerpc/powerpc32/powerpc64/fpu/Makefile: Moved.
3877 * sysdeps/powerpc/powerpc32/powerpc64/fpu/mpa.c: Likewise.
3878 * sysdeps/powerpc/powerpc32/power4/fpu/Makefile: To here.
3879 * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
3880
38812006-09-29 Steven Munroe <sjmunroe@us.ibm.com>
3882
3883 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lrint.S: New file.
3884 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: New file.
3885 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: New file.
3886 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: New file.
3887
38882006-09-28 Steven Munroe <sjmunroe@us.ibm.com>
3889
3890 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: New file.
3891 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llroundf.S: New file.
3892 * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: New file.
3893 * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: New file.
3894 * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: New file.
3895 * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: New file.
3896
38972006-08-31 Steven Munroe <sjmunroe@us.ibm.com>
3898
3899 * sysdeps/powerpc/powerpc32/powerpc64/fpu/Makefile: New file.
3900 * sysdeps/powerpc/powerpc32/powerpc64/fpu/mpa.c: New file.
3901 * sysdeps/powerpc/powerpc64/power4/fpu/Makefile: New file.
3902 * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: New file.
3903
39042006-06-15 Steven Munroe <sjmunroe@us.ibm.com>
3905
3906 * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceil.S: New file.
3907 * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceilf.S: New file.
3908 * sysdeps/powerpc/powerpc32/power5+/fpu/s_floor.S: New file.
3909 * sysdeps/powerpc/powerpc32/power5+/fpu/s_floorf.S: New file.
3910 * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S: New file.
3911 * sysdeps/powerpc/powerpc32/power5+/fpu/s_roundf.S: New file.
3912 * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S: New file.
3913 * sysdeps/powerpc/powerpc32/power5+/fpu/s_truncf.S: New file.
3914 * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceil.S: New file.
3915 * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceilf.S: New file.
3916 * sysdeps/powerpc/powerpc64/power5+/fpu/s_floor.S: New file.
3917 * sysdeps/powerpc/powerpc64/power5+/fpu/s_floorf.S: New file.
3918 * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S: New file.
3919 * sysdeps/powerpc/powerpc64/power5+/fpu/s_roundf.S: New file.
3920 * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S: New file.
3921 * sysdeps/powerpc/powerpc64/power5+/fpu/s_truncf.S: New file.
3922
39232006-03-20 Steven Munroe <sjmunroe@us.ibm.com>
3924
3925 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S: New file.
3926 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrintf.S: New file.
3927
39282007-06-01 Steven Munroe <sjmunroe@us.ibm.com>
3929
3930 * sysdeps/powerpc/powerpc32/power6/memset.S: New file.
3931 * sysdeps/powerpc/powerpc64/power6/memset.S: New file.
3932
39332007-05-31 Steven Munroe <sjmunroe@us.ibm.com>
3934
3935 * sysdeps/powerpc/powerpc32/970/Implies: New file.
3936 * sysdeps/powerpc/powerpc32/power5/Implies: New file.
3937 * sysdeps/powerpc/powerpc32/power5+/Implies: New file.
3938 * sysdeps/powerpc/powerpc32/power6/Implies: New file.
3939 * sysdeps/powerpc/powerpc32/power6x/Implies: New file.
3940 * sysdeps/powerpc/powerpc64/970/Implies: New file.
3941 * sysdeps/powerpc/powerpc64/power5/Implies: New file.
3942 * sysdeps/powerpc/powerpc64/power5+/Implies: New file.
3943 * sysdeps/powerpc/powerpc64/power6/Implies: New file.
3944 * sysdeps/powerpc/powerpc64/power6x/Implies: New file.
3945
39462007-05-21 Steven Munroe <sjmunroe@us.ibm.com>
3947
3948 * sysdeps/powerpc/powerpc32/power4/memset.S: New file
3949
39502007-03-13 Steven Munroe <sjmunroe@us.ibm.com>
3951
3952 * sysdeps/powerpc/powerpc64/memcpy.S: Improve aligned loop to minimize
3953 branch miss-predicts. Ensure that cache line crossing does not impact
3954 dispatch grouping.
3955
39562006-12-13 Steven Munroe <sjmunroe@us.ibm.com>
3957
3958 * sysdeps/powerpc/powerpc64/power4/memcopy.h: Replace with include
3959 "../../powerpc32/power4/memcopy.h".
3960 * sysdeps/powerpc/powerpc64/power4/wordcopy.c: Replace with include
3961 "../../powerpc32/power4/wordcopy.c".
3962
39632006-10-03 Steven Munroe <sjmunroe@us.ibm.com>
3964
3965 * sysdeps/powerpc/powerpc32/powerpc64/Makefile: Moved.
3966 * sysdeps/powerpc/powerpc32/powerpc64/memcopy.h: Likewise.
3967 * sysdeps/powerpc/powerpc32/powerpc64/wordcopy.c: Likewise.
3968 * sysdeps/powerpc/powerpc32/power4/Makefile: To here.
3969 * sysdeps/powerpc/powerpc32/power4/memcopy.h: Likewise.
3970 * sysdeps/powerpc/powerpc32/power4/wordcopy.c: Likewise.
3971
39722006-09-10 Steven Munroe <sjmunroe@us.ibm.com>
3973
3974 * sysdeps/powerpc/powerpc32/power6/memcpy.S: New file.
3975
39762006-08-31 Steven Munroe <sjmunroe@us.ibm.com>
3977
3978 * sysdeps/powerpc/powerpc32/power6/wordcopy.c: New file.
3979 * sysdeps/powerpc/powerpc32/powerpc64/Makefile: New file.
3980 * sysdeps/powerpc/powerpc32/powerpc64/memcopy.h: New file.
3981 * sysdeps/powerpc/powerpc32/powerpc64/wordcopy.c: New file.
3982 * sysdeps/powerpc/powerpc64/power4/Makefile: New file.
3983 * sysdeps/powerpc/powerpc64/power4/memcopy.h: New file.
3984 * sysdeps/powerpc/powerpc64/power4/wordcopy.c: New file.
3985 * sysdeps/powerpc/powerpc64/power6/wordcopy.c: New file.
3986
39872006-07-06 Steven Munroe <sjmunroe@us.ibm.com>
3988
3989 * sysdeps/powerpc/powerpc64/power6/memcpy.S: New file.
3990
39912006-03-20 Steven Munroe <sjmunroe@us.ibm.com>
3992
3993 * sysdeps/powerpc/powerpc32/power4/memcmp.S: New file.
3994 * sysdeps/powerpc/powerpc32/power4/memcpy.S: New file.
3995 * sysdeps/powerpc/powerpc32/power4/memset.S: New file.
3996 * sysdeps/powerpc/powerpc32/power4/strncmp.S: New file.
3997 * sysdeps/powerpc/powerpc64/power4/memcmp.S: New file.
3998 * sysdeps/powerpc/powerpc64/power4/memcpy.S: New file.
3999 * sysdeps/powerpc/powerpc64/power4/strncmp.S: New file.
4000
5b55e1d3
RM
40012007-05-29 Roland McGrath <roland@redhat.com>
4002
4003 * po/Makefile (po-sed-cmd): New variable.
4004 (libc.pot.files): Move sed command text in there, avoid \ inside ''.
4005
5da4373c
UD
40062007-05-29 Ulrich Drepper <drepper@redhat.com>
4007
4b5e7304
UD
4008 * crypt/md5-crypt.c: Fix comment.
4009
5da4373c
UD
4010 * nscd/nscd_helper.c (get_mapping): Handle short replies instead
4011 of crashing. When this is the case or if the reply is malformed,
4012 don't try to close the new file descriptor since it does not
4013 exist.
4014 Patch in part by Guillaume Chazarain <guichaz@yahoo.fr>.
4015
40f57573
UD
40162007-05-28 Jakub Jelinek <jakub@redhat.com>
4017
4018 * sysdeps/unix/sysv/linux/futimes.c (miss_utimensat): Don't define
4019 if __NR_utimensat is not defined.
4020
6df7ffad
UD
40212007-05-26 Ulrich Drepper <drepper@redhat.com>
4022
4023 * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Include <sysdep.h>.
4024
47ad95ab
UD
40252007-05-25 Jakub Jelinek <jakub@redhat.com>
4026
4027 * io/bits/fcntl2.h (__open_2): Add nonnull attribute.
4028 (open): Fix comment typos. Don't call __open_2 if flags
4029 is a compile time constant without O_CREAT.
4030 (__open64_2): Add nonnull attribute.
4031 (open64): Fix comment typos. Don't call __open64_2 if flags
4032 is a compile time constant without O_CREAT.
4033 (__openat_2): Add nonnull attribute, fix nonnull attribute
4034 on redirect.
4035 (openat): Fix comment typos. Don't call __openat_2 if flags
4036 is a compile time constant without O_CREAT.
4037 (__openat64_2): Add nonnull attribute, fix nonnull attribute
4038 on redirect.
4039 (openat64): Fix comment typos. Don't call __openat64_2 if flags
4040 is a compile time constant without O_CREAT.
4041
ddfd0535
UD
40422007-05-24 Ulrich Drepper <drepper@redhat.com>
4043
4044 * Makerules (sysd-rules): Define PTW for ptw-* files.
4045 * Versions: Define GLIBC_2.7 for libc.
4046 * include/stdio.h: Declare __fortify_fail.
4047 * debug/fortify_fail.c: New file.
4048 * debug/Makefile (routines): Add fortify_fail.
4049 * debug/chk_fail.c: Use __fortify_fail.
4050 * debug/stack_chk_fail.c: Likewise.
4051 * io/Versions: Export __open_2, __open64_2, __openat_2, and
4052 __openat64_2 for GLIBC_2.7.
4053 * io/fcntl.h: When compiling with fortification, include bits/fcntl2.h.
4054 * io/open.c: Define *_2 variant of function which checks for O_CREAT
4055 and fails if necessary.
4056 * io/open64.c: Likewise.
4057 * io/openat.c: Likewise.
4058 * io/openat64.c: Likewise.
4059 * sysdeps/unix/sysv/linux/open64.c: Likewise.
4060 * sysdeps/unix/sysv/linux/openat.c: Likewise.
4061 * sysdeps/unix/sysv/linux/openat64.c: Likewise.
4062 * io/bits/fcntl2.h: New file.
4063 * include/fcntl.h: Declare __open_2, __open64_2, __openat_2, and
4064 __openat64_2.
4065 * include/bits/fcntl2.h: New file.
4066 * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
4067 Add open_2.
4068 * sysdeps/unix/sysv/linux/open_2.c: New file.
4069
bfe6f5fa
UD
40702007-05-21 Ulrich Drepper <drepper@redhat.com>
4071
6d59823c
UD
4072 * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Pass correct value
4073 as second parameter to handle_intel.
4074
e2b1e343
UD
4075 * nscd/aicache.c (addhstaiX): If reported TTL is zero don't cache
4076 the entry.
4077
bfe6f5fa
UD
4078 * sysdeps/unix/sysv/linux/x86_64/sysconf.c: Move cache information
4079 handling to ...
4080 * sysdeps/x86_64/cacheinfo.c: ... here. New file.
4081 * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
4082 cacheinfo.
4083 * sysdeps/x86_64/memcpy.S: Complete rewrite.
4084 * sysdeps/x86_64/mempcpy.S: Adjust appropriately.
4085 Patch by Evandro Menezes <evandro.menezes@amd.com>.
4086
4087 * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: New file.
4088
1f4843fb
UD
40892007-05-21 Jakub Jelinek <jakub@redhat.com>
4090
2c2c003a
UD
4091 [BZ #4525]
4092 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add epoll_pwait.
4093 * sysdeps/unix/sysv/linux/epoll_pwait.c: New file.
4094 * sysdeps/unix/sysv/linux/syscalls.list (epoll_pwait): Remove.
4095
4096 * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h (epoll_pwait): Declare.
4097
af269dd9
UD
4098 [BZ #4514]
4099 * stdio-common/vfprintf.c (vfprintf): Don't shadow workstart variable,
4100 reinitialize workend at the start of each do_positional format spec
4101 loop, free workstart before do_positional loops.
4102 (printf_unknown): Fix size of work_buffer.
4103 * stdio-common/tst-sprintf.c (main): Add 3 new testcases.
4104
1f4843fb
UD
4105 * malloc/hooks.c (MALLOC_STATE_VERSION): Bump.
4106 (public_sET_STATe): If ms->version < 3, put all chunks into
4107 unsorted chunks and clear {fd,bk}_nextsize fields of largebin
4108 chunks.
4109
4110 * malloc/malloc.c [MALLOC_DEBUG]: Revert 2007-05-13 changes.
4111 * malloc/hooks.c: Likewise.
4112 * malloc/arena.c: Likewise.
4113 * malloc/malloc.c (do_check_malloc_state): Don't assert
4114 n_mmaps is not greater than n_mmaps_max. This removes the need
4115 for the previous change.
4116
4117 * malloc/Makefile (CFLAGS-malloc.c): Revert accidental
4118 2007-05-07 commit.
4119
12e8bbff
UD
41202007-05-19 Ulrich Drepper <drepper@redhat.com>
4121
4122 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PRIVATE_FUTEX):
4123 Define for kernel >= 2.6.22.
69e5cbf5 4124
12e8bbff 41252007-05-18 Ulrich Drepper <drepper@redhat.com>
6d59823c 4126
df94b641
UD
4127 * elf/dl-close.c (_dl_close_worker): When removing object from
4128 global scope, wait for all lookups to finish afterwards.
4129 * elf/dl-open.c (add_to_global): When global scope array must
4130 grow, allocate a new one and free old array only after all
4131 lookups finish.
4132 * elf/dl-runtime.c (_dl_fixup): Protect using global scope.
4133 (_dl_lookup_symbol_x): Likewise.
4134 * elf/dl-support.c: Define _dl_wait_lookup_done.
4135 * sysdeps/generic/ldsodefs.h (struct rtld_global): Add
4136 _dl_wait_lookup_done.
4137
2acd01ac
UD
4138 * malloc/malloc.c (do_check_chunk): Correct check for mmaped block
4139 not overlapping with arena.
4140
129abdd3
UD
4141 * malloc/mcheck.c (reallochook): If size==0, free the block.
4142
eb4b098a
UD
4143 * rt/tst-shm.c: Use fstat64 instead of fstat.
4144
69e5cbf5
UD
4145 * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Fix case where
4146 __NR_sync_file_range is not defined.
4147
a2ccc760
UD
41482007-05-17 Ulrich Drepper <drepper@redhat.com>
4149
bec51a30
UD
4150 Dummy files to prevent stub versions from being used.
4151 * sysdeps/x86_64/fpu/k_cosl.c: New file.
4152 * sysdeps/x86_64/fpu/k_rem_pio2l.c: New file.
4153 * sysdeps/x86_64/fpu/k_sinl.c: New file.
4154 * sysdeps/x86_64/fpu/k_tanl.c: New file.
4155
a2ccc760
UD
4156 * version.h (VERSION): Set to 2.6.90.
4157
1a31b586
UD
41582007-05-14 Ulrich Drepper <drepper@redhat.com>
4159
a2ccc760
UD
4160 * version.h (VERSION): Define to 2.6.
4161 * include/features.h (__GLIBC_MINOR__): Define to 6.
2c1d6172 4162
1d47e92f
UD
4163 * malloc/malloc.c: Use all small bin slots on 64-bit archs.
4164
4165 * malloc/malloc.c (largebin_index): Really have 32 buckets with 64
4166 sizes.
366ad8fd 4167
1a31b586 41682007-05-13 Ulrich Drepper <drepper@redhat.com>
87e66335 4169
366ad8fd
UD
4170 * malloc/malloc.c [MALLOC_DEBUG]: Keep track of current maximum
4171 number of mmaps. n_mmaps_max is the target.
4172 * malloc/hooks.c: Likewise.
4173 * malloc/arena.c: Likewise.
4174
11ed6713
AJ
41752007-05-12 Andreas Jaeger <aj@suse.de>
4176
4177 * sysdeps/unix/sysv/linux/tst-getcpu.c: Include <unistd.h> for
4178 getpid.
4179
d65ef3dd
UD
41802007-05-11 Ulrich Drepper <drepper@redhat.com>
4181
2e81d449
UD
4182 * elf/dl-close.c (_dl_close_worker): Help gcc to optimize by
4183 adding new variables.
4184
d65ef3dd 4185 * elf/dl-open.c (add_to_global): Introduce variable ns to help gcc
2e81d449 4186 optimize. Completely extend global scope array before making the
d65ef3dd
UD
4187 new entries visible.
4188
c27d2078
UD
41892007-05-10 Ulrich Drepper <drepper@redhat.com>
4190
341c566f
UD
4191 * sysdeps/unix/sysv/linux/tst-getcpu.c: New file.
4192 * sysdeps/unix/sysv/linux/Makefile [subdir=posix] (tests): Add
4193 tst-getcpu.
4194
4195 * include/link.h: Move l_version and l_nversion members around to
4196 fill gaps.
4197
a53fa282
UD
4198 * scripts/check-c++-types.sh: Don't use -fnu89-inline option.
4199
3771196d
UD
4200 * sysdeps/unix/sysv/linux/sched_setaffinity.c
4201 (__sched_setaffinity_new): If syscall was successful and
4202 RESET_VGETCPU_CACHE is defined, use it before returning.
4203 * sysdeps/unix/sysv/linux/x86_64/sched_setaffinity.c: New file.
4204
f9bf102d
UD
4205 * io/sys/stat.h: Make sure struct timespec is defined for
4206 __USE_ATFILE.
4207
c27d2078
UD
4208 * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Define UTIME_NOW and
4209 UTIME_OMIT.
4210 * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
4211 * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
4212 * sysdeps/unix/sysv/linux/alpha/bits/stat.h: Likewise.
4213 * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
4214 * sysdeps/unix/sysv/linux/bits/stat.h: Likewise.
4215 * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
4216 * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_UTIMENSAT.
4217 * io/sys/stat.h: Declare utimensat, futimens.
4218 * io/utimensat.c: New file.
4219 * io/futimens.c: New file.
4220 * sysdeps/unix/sysv/linux/utimensat.c: New file.
4221 * sysdeps/unix/sysv/linux/futimens.c: New file.
4222 * io/Makefile (routines): Add utimensat, futimens.
4223 * io/Versions: Add utimensat, futimens to GLIBC_2.6.
4224 * sysdeps/unix/sysv/linux/lutimes.c: New file.
4225 * sysdeps/unix/sysv/linux/futimes.c: Use utimensat syscall if
4226 available.
4227
4228 * include/sys/cdefs.h: Redefine __nonnull so that test for
4229 incorrect parameters in the libc code itself are not omitted.
4230
cf6b0980
JJ
42312007-05-09 Jakub Jelinek <jakub@redhat.com>
4232
c1dfd7e6
JJ
4233 * sysdeps/ia64/fpu/fraiseexcpt.c (feraiseexcept): Don't raise overflow
4234 exception in addition to inexact when asked to raise only FE_INEXACT.
4235
cf6b0980
JJ
4236 [BZ #3427]
4237 * sysdeps/s390/fpu/feholdexcpt.c (feholdexcept): Don't clear exceptions
4238 in *envp.
4239
df7b6fea
UD
42402007-05-07 Ulrich Drepper <drepper@redhat.com>
4241
4242 [BZ #4403]
4243 * string/strfry.c (strfry): Make result more random.
4244
37f40235
RH
42452007-05-07 Richard Henderson <rth@redhat.com>
4246
4247 * sysdeps/alpha/fpu/bits/mathinline.h (__isnanl): Don't define
4248 if __NO_LONG_DOUBLE_MATH.
4249 * sysdeps/unix/sysv/linux/alpha/ioperm.c: If BWX insns not
df7b6fea 4250 available in the compiler, add .arch directive to the assembly.
37f40235
RH
4251
42522007-05-07 Jakub Jelinek <jakub@redhat.com>
4253
4254 * sysdeps/alpha/fpu/s_nearbyint.c (nearbyintl): Fix version on
4255 compat_symbol to GLIBC_2_1.
4256 * sysdeps/alpha/fpu/s_fmin.S (fminl): Likewise.
4257 * sysdeps/alpha/fpu/s_trunc.c (truncl): Likewise.
4258 * sysdeps/alpha/fpu/s_fmax.S (fmaxl): Likewise.
4259 * sysdeps/alpha/fpu/s_lrint.c (lrintl, llrintl): Likewise.
4260 * sysdeps/alpha/fpu/s_lround.c (lroundl, llroundl): Likewise.
4261 * sysdeps/alpha/fpu/s_round.c (roundl): Likewise.
4262 * sysdeps/alpha/fpu/s_isnan.c (isnanl): Provide compat_symbol in
4263 libc, not libm.
4264 (__isnanl): New compat_symbol.
4265
c7fd3362
JJ
42662007-05-07 Ulrich Drepper <drepper@redhat.com>
4267 Jakub Jelinek <jakub@redhat.com>
4268
4269 * malloc/arena.c (heap_info): Add mprotect_size field, adjust pad.
4270 (new_heap): Initialize mprotect_size.
4271 (grow_heap): When growing, only mprotect from mprotect_size till
4272 new_size if mprotect_size is smaller. When shrinking, use PROT_NONE
4273 MMAP for __libc_enable_secure only, otherwise use MADV_DONTNEED.
4274
4a59e9ad 42752007-04-30 Steven Munroe <sjmunroe@us.ibm.com>
37f40235 4276 Peter Bergner <bergner@us.ibm.com>
4a59e9ad
UD
4277
4278 * sysdeps/powerpc/bits/fenv.h: Declare __fe_mask_env extern.
4279 Define FE_NOMASK_ENV as FE_EANBLED_ENV. Define FE_MASK_ENV.
4280 * sysdeps/powerpc/fpu/Makefile: Add fe_mask to libm-support.
4281 * sysdeps/powerpc/fpu/fe_mask.c: New file.
4282 * sysdeps/powerpc/fpu/fe_nomask.c: Correct comment.
4283 * sysdeps/powerpc/fpu/fedisblxcpt.c (fedisableexcept):
4284 Call __fe_mask_env() if all FP exceptions disabled.
4285 * sysdeps/powerpc/fpu/feholdexcpt.c (feholdexcept): Copy high 32-bits
4286 from old FPSCR to new fenv to propagate DFP rounding modes.
4287 Call __fe_mask_env() if FP exceptions previously enabled.
4288 * sysdeps/powerpc/fpu/fesetenv.c (fesetenv): Change mask to merge
4289 exceptions from env. Use __fe_nomask_env() or __fe_mask_env() when
4290 transitioning from all exceptions disabled to any exception enabled
4291 or visa versa.
4292 * sysdeps/powerpc/fpu/feupdateenv.c (__feupdateenv): Change mask to
4293 merge exceptions from env. Call __fe_nomask_env or __fe_mask_env
4294 when transitioning from all exceptions disabled to any exception
4295 enabled or visa versa.
4296 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fe_nomask.c: Moved to...
4297 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c: ...here.
4298 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c: Moved to...
4299 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c: ...here.
4300 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c: New file.
4301 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c: New file.
4302
aa75f64c
UD
43032007-05-06 Ulrich Drepper <drepper@redhat.com>
4304
15eca720 4305 [BZ #4465]
aa75f64c
UD
4306 * posix/unistd.h: Remove __THROW from fdatasync.
4307
711deb05
UD
43082007-05-06 Mike Frysinger <vapier@gentoo.org>
4309
15eca720 4310 [BZ #4465]
711deb05
UD
4311 * sysdeps/unix/sysv/linux/syscalls.list (fdatasync): Add "C" to args.
4312
ffecd39b
UD
43132007-05-06 Ulrich Drepper <drepper@redhat.com>
4314
49a8eb75
UD
4315 * stdio-common/vfprintf.c (process_string_arg): Optimize
4316 ridiculous precision in wide char code printing multi-byte string.
4317 Reported by Jim Meyering <jim@meyering.net>.
4318
ffecd39b
UD
4319 [BZ #4131]
4320 * elf/dl-addr.c (_dl_addr): Compare address with actual segment
4321 boundaries to work around systems with overlapping binary loading.
4322 Based on a patch by Suzuki <suzuki@in.ibm.com>.
4323
b16dba4c
UD
43242007-05-04 Ulrich Drepper <drepper@redhat.com>
4325
30b323ab
UD
4326 * stdio-common/vfprintf.c (process_string_arg): Adjust call to
4327 __mbsnrtowcs after last change.
4328
b16dba4c
UD
4329 * locale/programs/linereader.c (get_symname): Fix adding final NUL.
4330 (get_ident): Likewise.
4331
37002cbc
JJ
43322007-05-03 Jakub Jelinek <jakub@redhat.com>
4333
4334 * soft-fp/op-common.h (FP_TRUNC): Replace raising of FP_EX_INEXACT
4335 with setting the sticky bit.
4336 * math/test-misc.c (main): Add more truncation tests.
4337
43382007-04-14 Uros Bizjak <ubizjak@gmail.com>
4339
4340 * soft-fp/floatunsidf.c (__floatunsidf): Use DFtype instead of
4341 double in the function declaration.
4342 * soft-fp/floatundidf.c (__floatundidf): Use DFtype instead of
4343 double in the function declaration.
4344 * soft-fp/floatunsisf.c (__floatunsisf): Use SFtype instead of
4345 float in the function declaration.
4346 * soft-fp/floatunsisf.c (__floatunsisf): Use SFtype instead of
4347 float in the function declaration.
4348
4349 * soft-fp/extended.h (FP_UNPACK_RAW_E): Do not increase X##_e for
4350 denormal operands. Do not generate FP_EX_DENORM exception.
4351 (FP_UNPACK_RAW_EP): Ditto.
4352 (FP_UNPACK_SEMIRAW_E): Use FP_UNPACK_RAW_E instead of
4353 undefined _FP_UNPACK_RAW_E.
4354 (FP_UNPACK_SEMIRAW_EP): Use FP_UNPACK_RAW_EP instead of
4355 undefined _FP_UNPACK_RAW_EP.
4356 (FP_PACK_SEMIRAW_E): Use FP_PACK_RAW_E instead of
4357 undefined _FP_PACK_RAW_E.
4358 (FP_PACK_SEMIRAW_EP): Use FP_PACK_RAW_EP instead of
4359 undefined _FP_PACK_RAW_EP.
4360
d9ac82d0
UD
4361 * soft-fp/op-2.h (_FP_FRAC_COPY_2_2): Define as alias to
4362 _FP_FRAC_COPY_2.
4363 * soft-fp/op-4.h (_FP_FRAC_COPY_2_2): Define as alias to
4364 _FP_FRAC_COPY_4.
37002cbc
JJ
4365
43662007-04-16 Uros Bizjak <ubizjak@gmail.com>
4367 Jakub Jelinek <jakub@redhat.com>
4368
4369 * soft-fp/op-common.h (FP_EXTEND): Do not abort when
4370 _FP_EXPBIAS_##dfs == _FP_EXPBIAS_##sfs. Handle denormals for
4371 this case.
4372 * soft-fp/op-common.h (FP_TRUNC): Ditto.
4373
002f0b0b
JJ
43742007-05-03 Jakub Jelinek <jakub@redhat.com>
4375
4376 * math/test-misc.c (main): Add tests for rounding long double
4377 values close to smallest double denormalized value to double.
4378
43792007-04-30 Joseph Myers <joseph@codesourcery.com>
4380
4381 * soft-fp/op-common.h (FP_TRUNC): Correct off-by-one error in
4382 condition for truncating to 0. Set sticky bit for such
4383 truncation.
4384
57433ede
UD
43852007-05-02 Jakub Jelinek <jakub@redhat.com>
4386
4387 * stdio-common/vfprintf.c (process_string_arg): Use a VLA rather than
4388 fixed length array for ignore.
4389
c01c2455
UD
43902007-04-30 Ulrich Drepper <drepper@redhat.com>
4391
4392 [BZ #4438]
4393 * stdio-common/vfprintf.c (process_string_arg): Don't overflow the
4394 stack for large precisions.
1cb04337
UD
4395 * stdio-common/test-vfprintf.c (main): Add test for large
4396 precision.
c01c2455 4397
37f02b1d
UD
43982007-04-30 Jakub Jelinek <jakub@redhat.com>
4399
b866373d
UD
4400 * stdio-common/printf_fp.c (___printf_fp): Don't print negative sign
4401 for exponent 0.
4402 * stdio-common/tfformat.c (sprint_doubles): Add a new test.
4403
37f02b1d
UD
4404 [BZ #4439]
4405 * resolv/inet_ntop.c (inet_ntop4): Take terminating '\0' into
4406 account in the size check.
4407 * resolv/tst-inet_ntop.c: New test.
4408 * resolv/Makefile (tests): Add tst-inet_ntop.
4409
7ecfbd38
UD
44102007-04-30 Ulrich Drepper <drepper@redhat.com>
4411 Jakub Jelinek <jakub@redhat.com>
4412
4413 [BZ #4349]
4414 * malloc/malloc.c: Keep separate list for first blocks on the bin
4415 lists with a given size. This helps skipping over list elements
4416 we know won't fit in two places.
4417 Inspired by a patch by Tomash Brechko <tomash.brechko@gmail.com>.
4418
e53f0f51
UD
44192007-04-28 Ulrich Drepper <drepper@redhat.com>
4420
4421 [BZ #4102]
4422 * sysdeps/posix/getaddrinfo.c (default_labels): Assign separate
4423 label to Teredo tunnel addresses 2001://32.
4424
109f51f2
UD
44252007-04-27 Ulrich Drepper <drepper@redhat.com>
4426
762422d1
UD
4427 * locale/programs/ld-collate.c (collate_read): Allow order_start
4428 after copy.
4429
61d5a67f
UD
4430 * locale/programs/ld-collate.c (collate_read): Fix printing of
4431 error message.
4432
4433 [BZ #3213]
4434 * locale/C-translit.h.in: Add entry for U2044.
4435
109f51f2
UD
4436 [BZ #4342]
4437 * stdio-common/vfscanf.c (_IO_vfscanf_internal): Allow
4438 hexa-decimal floats without exponent.
4439 * stdio-common/tstscanf.c (main): Adjust Test 8 test for success.
4440
ec08f13d
UD
44412007-04-25 Ulrich Drepper <drepper@redhat.com>
4442
4443 * sysdeps/unix/sysv/linux/bits/sched.h: Declare sched_getcpu.
4444 * sysdeps/unix/sysv/linux/sched_getcpu.c: New file.
4445 * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: New file.
4446 * sysdeps/unix/sysv/linux/Versions: Export sched_getcpu for
4447 GLIBC_2.6.
bce20b9a
UD
4448 * sysdeps/unix/sysv/linux/Makefile [subdir=posix] (sysdep_routines):
4449 Add sched_getcpu.
ec08f13d 4450
41967e1c
JJ
44512007-04-25 Jakub Jelinek <jakub@redhat.com>
4452
4453 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Return -1 instead
4454 of 0 after the out_fail label.
4455
ba508da3
UD
44562007-04-25 Ulrich Drepper <drepper@redhat.com>
4457
4458 [BZ #4406]
109f51f2 4459 * iconv/gconv_charset.h (strip): Allow ':'.
ba508da3
UD
4460 * iconv/iconv_open.c (iconv_open): Adjust comment.
4461
9c8d03d9
JJ
44622007-04-25 Jakub Jelinek <jakub@redhat.com>
4463
4464 * libio/bits/stdio.h (fgetc_unlocked): Add extern inline optimized
4465 version.
4466
2f1687b9
UD
44672007-04-23 Jakub Jelinek <jakub@redhat.com>
4468
4469 [BZ #4381]
4470 * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Ensure sufficient
4471 alignment of buffer and tmp_buffer.
4472 * nis/nss_nis/nis-hosts.c (internal_nis_gethostent_r,
4473 internal_gethostbyname2_r, _nss_nis_gethostbyaddr_r): Ensure sufficient
4474 alignment of buffer.
4475 * resolv/nss_dns/dns-hosts.c (getanswer_r): Likewise. Handle buflen
4476 bigger than INT_MAX.
4477 * resolv/nss_dns/dns-network.c (getanswer_r): Likewise. Add errnop and
4478 h_errnop arguments. Fail if buflen is too small.
4479 (_nss_dns_getnetbyname_r, _nss_dns_getnetbyaddr_r): Adjust callers.
4480
b64a9db8
JJ
44812007-04-23 Jakub Jelinek <jakub@redhat.com>
4482
4483 [BZ #4405]
4484 * iconvdata/gconv-modules (E13B): Add a missing slash to the alias
4485 name. Patch by Aurelien Jarno <aurelien@aurel32.net>.
4486
4d3144c9
RM
44872007-04-22 Roland McGrath <roland@redhat.com>
4488
4489 * elf/elf.h (NT_PRXFPREG): New macro.
4490
767b40bf
AJ
44912007-04-19 Andreas Jaeger <aj@suse.de>
4492
4493 [BZ #3905]
4494 * bits/in.h (IPV6_ROUTER_ALERT, IPV6_MTU_DISCOVER, IPV6_MTU,
4495 IPV6_RECVERR, IPV6_V6ONLY, IPV6_JOIN_ANYCAST, IPV6_LEAVE_ANYCAST):
4496 Added.
4497
2592d1ec
UD
44982007-04-19 Ulrich Drepper <drepper@redhat.com>
4499
4500 * include/sys/mman.h: Mark madvise hidden.
d07d044e 4501 * misc/madvise.c: Add libc_hidden_def.
2592d1ec 4502
7ab174ed
UD
45032007-04-06 Jakub Jelinek <jakub@redhat.com>
4504
4505 * nis/nis_domain_of.c (__nis_domain_of): New function.
4506 * include/rpcsvc/nislib.h (__nis_domain_of): New prototype.
4507 * nis/nis_lookup.c (nis_lookup): Use __nis_domain_of.
4508 * nis/nis_call.c (rec_dirsearch): Likewise.
4509 (first_shoot): Likewise. Remove search_parent_first argument.
4510 (struct nis_server_cache): Rename search_parent_first field
4511 to search_parent.
4512 (nis_server_cache_search, nis_server_cache_add): Rename
4513 search_parent_first argument to search_parent.
4514 (__nisfind_server): Likewise. If search_parent, call
4515 __nis_domain_of.
4516
b17c265f
UD
45172007-04-18 Ulrich Drepper <drepper@redhat.com>
4518
4519 * sysdeps/posix/getaddrinfo.c: Remove commented-out code.
4520
b7674b11
UD
45212007-04-17 Ulrich Drepper <drepper@redhat.com>
4522
4523 [BZ #4368]
4524 * stdlib/stdlib.h: Remove obsolete part of comment for realpath.
4525
faf3ad69
UD
45262007-04-16 Ulrich Drepper <drepper@redhat.com>
4527
4528 [BZ #4364]
4529 * posix/unistd.h (_XOPEN_VERSION): Define appropriately for SUSv3.
4530
c14f245c
UD
45312007-04-15 Jakub Jelinek <jakub@redhat.com>
4532
4533 * locale/programs/locarchive.c (INITIAL_NUM_NAMES,
4534 INITIAL_SIZE_STRINGS, INITIAL_NUM_LOCREC): Update to accomodate
4535 current number of locales in SUPPORTED.
4536 (create_archive): Initialize serial.
4537 (enlarge_archive): Preserve aliases rather than duplicating
4538 their locrecs.
4539
d40e67f5
UD
45402007-04-13 Jakub Jelinek <jakub@redhat.com>
4541
993a5d66
UD
4542 * libio/genops.c (_IO_default_finish): Call _IO_lock_fini
4543 after _IO_un_link, not before it.
4544
d40e67f5
UD
4545 * stdio-common/printf_fp.c (___printf_fp): Fix exponent -4
4546 special case handling when wcp == wstartp + 1. Fix a comment typo.
4547 * stdio-common/tfformat.c (sprint_doubles): Add a new testcase.
4548
0fca3153
UD
45492007-03-30 Jakub Jelinek <jakub@redhat.com>
4550
4551 * libio/libio.h (__underflow, __uflow, __overflow, __wunderflow,
4552 __wuflow, __woverflow, _IO_getc, _IO_putc, _IO_peekc_locked, _IO_padn,
4553 _IO_sgetn, _IO_seekoff, _IO_seekpos, _IO_getwc, _IO_putwc, _IO_wpadn):
4554 Remove __THROW.
4555 * libio/fileops.c (new_do_write, _IO_file_xsgetn_mmap,
4556 _IO_file_xsgetn_maybe_mmap): Likewise.
4557 * libio/oldfileops.c (old_do_write): Likewise.
4558 * libio/libioP.h (_IO_switch_to_get_mode, _IO_switch_to_wget_mode,
4559 _IO_init_marker, _IO_init_wmarker, _IO_default_uflow,
4560 _IO_wdefault_uflow, _IO_default_setbuf, _IO_default_seekpos,
4561 _IO_do_write, _IO_new_do_write, _IO_old_do_write, _IO_wdo_write,
4562 _IO_flush_all_lockp, _IO_flush_all, _IO_cleanup,
4563 _IO_flush_all_linebuffered, _IO_new_fgetpos, _IO_old_fgetpos,
4564 _IO_new_fsetpos, _IO_old_fsetpos, _IO_new_fgetpos64,
4565 _IO_old_fgetpos64, _IO_new_fsetpos64, _IO_old_fsetpos64,
4566 _IO_file_setbuf, _IO_file_seekoff, _IO_file_xsputn, _IO_file_xsgetn,
4567 _IO_file_underflow, _IO_file_underflow_mmap,
4568 _IO_file_underflow_maybe_mmap, _IO_file_overflow, _IO_file_attach,
4569 _IO_file_open, _IO_file_fopen, _IO_file_write, _IO_file_read,
4570 _IO_file_sync, _IO_file_close_it, _IO_file_finish,
4571 _IO_new_file_attach, _IO_new_file_close_it, _IO_new_file_finish,
4572 _IO_new_file_fopen, _IO_new_file_setbuf, _IO_file_setbuf_mmap,
4573 _IO_new_file_sync, _IO_new_file_underflow, _IO_new_file_overflow,
4574 _IO_new_file_seekoff, _IO_new_file_write, _IO_new_file_xsputn,
4575 _IO_old_file_setbuf, _IO_old_file_seekoff, _IO_old_file_xsputn,
4576 _IO_old_file_underflow, _IO_old_file_overflow, _IO_old_file_attach,
4577 _IO_old_file_fopen, _IO_old_file_write, _IO_old_file_sync,
4578 _IO_old_file_close_it, _IO_old_file_finish, _IO_wfile_xsputn,
4579 _IO_wfile_setbuf, _IO_wfile_sync, _IO_wfile_underflow,
4580 _IO_wfile_overflow, _IO_wfile_seekoff, _IO_old_proc_open,
4581 _IO_old_proc_close, _IO_getdelim, _IO_flush_all_internal,
4582 _IO_adjust_column_internal, _IO_default_uflow_internal,
4583 _IO_default_xsgetn_internal, _IO_wdefault_xsputn_internal,
4584 _IO_wdefault_xsgetn_internal, _IO_wdefault_uflow_internal,
4585 _IO_file_setbuf_internal, _IO_file_seekoff_internal,
4586 _IO_file_xsputn_internal, _IO_file_xsgetn_internal,
4587 _IO_file_close_it_internal, _IO_file_underflow_internal,
4588 _IO_file_overflow_internal, _IO_file_attach_internal,
4589 _IO_file_fopen_internal, _IO_file_sync_internal,
4590 _IO_file_finish_internal, _IO_wfile_xsputn_internal,
4591 _IO_wfile_seekoff_internal, _IO_wfile_sync_internal,
4592 _IO_switch_to_wget_mode_internal, _IO_padn_internal,
4593 _IO_switch_to_get_mode_internal, _IO_seekoff_unlocked,
4594 _IO_seekpos_unlocked): Likewise.
4595 (_IO_strtod, _IO_dtoa, _IO_outfloat, _IO_read, _IO_write,
4596 _IO_lseek, _IO_close, _IO_fstat): Remove unused prototypes.
4597
07358add
JJ
45982007-04-16 Jakub Jelinek <jakub@redhat.com>
4599
4600 * locale/programs/locarchive.c (show_archive_content): Fix sizeof
4601 argument in xmalloc size computation.
4602
7a82b74f
UD
46032007-04-01 Jakub Jelinek <jakub@redhat.com>
4604
4605 * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl): Use
4606 math_opt_barrier and math_force_eval macros.
4607
3e336a87
UD
46082007-03-27 Jakub Jelinek <jakub@redhat.com>
4609
4610 [BZ #3306]
4611 * math/math_private.h (math_opt_barrier, math_force_eval): Define.
4612 * sysdeps/i386/fpu/math_private.h: New file.
4613 * sysdeps/x86_64/fpu/math_private.h: New file.
4614 * math/s_nexttowardf.c (__nexttowardf): Use math_opt_barrier and
4615 math_force_eval macros. Use "+m" constraint on asm rather than
4616 "=m" and "m".
4617 * math/s_nextafter.c (__nextafter): Likewise.
4618 * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c (__nexttoward):
4619 Likewise.
4620 * sysdeps/ieee754/flt-32/s_nextafterf.c (__nextafterf): Likewise.
4621 * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward): Likewise.
4622 * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
4623 * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Use
4624 math_opt_barrier and math_force_eval macros.
4625 * sysdeps/ieee754/ldbl-128/s_nextafterl.c (__nextafterl): Likewise.
4626 * sysdeps/ieee754/ldbl-96/s_nextafterl.c (__nextafterl): Likewise.
4627 * sysdeps/i386/fpu/s_nexttoward.c: Include float.h.
4628 (__nexttoward): Use math_opt_barrier and
4629 math_force_eval macros. Use "+m" constraint on asm rather than
4630 "=m" and "m". Only use asm to force double result if
4631 FLT_EVAL_METHOD is 2.
4632 * sysdeps/i386/fpu/s_nexttowardf.c: Include float.h.
4633 (__nexttowardf): Use math_opt_barrier and
4634 math_force_eval macros. Use "+m" constraint on asm rather than
4635 "=m" and "m". Only use asm to force double result if
4636 FLT_EVAL_METHOD is not 0.
4637 * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Include float.h.
4638 (__nexttowardf): Use math_opt_barrier and
4639 math_force_eval macros. If FLT_EVAL_METHOD is not 0, force
4640 x to float using asm.
4641 * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c: Include float.h.
4642 (__nldbl_nexttowardf): Use math_opt_barrier and
4643 math_force_eval macros. If FLT_EVAL_METHOD is not 0, force
4644 x to float using asm.
4645 * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Include float.h.
4646 (__nexttowardf): Use math_opt_barrier and math_force_eval
4647 macros. If FLT_EVAL_METHOD is not 0, force x to float using asm.
4648 * math/bug-nextafter.c (zero, inf): New variables.
4649 (main): Add new tests.
4650 * math/bug-nexttoward.c (zero, inf): New variables.
4651 (main): Add new tests.
4652
a8c79c40
UD
46532007-03-22 Jakub Jelinek <jakub@redhat.com>
4654
4655 [BZ #3427]
4656 * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Clear all
4657 exceptions both in SW and MXCSR.
4658 * sysdeps/x86_64/fpu/feupdateenv.c: New file.
4659 * sysdeps/x86_64/fpu/feenablxcpt.c (feenableexcept): Remove dead code.
4660 * sysdeps/x86_64/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
4661 * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions
4662 in MXCSR if SSE is available.
4663 * sysdeps/i386/fpu/feupdateenv.c: Include unistd.h, dl-procinfo.h
4664 and ldsodefs.h.
4665 (__feupdateenv): Query exceptions also from MXCSR if SSE is available.
4666 Fix comment typo.
4667 * sysdeps/ia64/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions.
4668 Return 0 rather than 1.
4669 * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Fix comment typo.
4670 Remove incorrect part of a comment. Fix argument to feraiseexcept.
4671 * math/test-fenv.c (feholdexcept_tests): New function.
4672 (main): Call it.
4673
46742007-01-05 Richard B. Kreckel <kreckel@ginac.de>
4675
4676 [BZ #3427]
4677 * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions
4678 in SW.
4679
30a3aa75
JJ
46802007-04-13 Jakub Jelinek <jakub@redhat.com>
4681
4682 [BZ #4344]
4683 * elf/ldconfig.c (search_dir): Fix 2 off-by-2 errors.
4684 Reported by David Anderson <davea42@earthlink.net>.
4685
75587bfe
UD
46862007-04-07 Ulrich Drepper <drepper@redhat.com>
4687
4688 * posix/sys/wait.h: Remove unnecessary forward declaration.
4689
88fa1769
JJ
46902007-04-05 Jakub Jelinek <jakub@redhat.com>
4691
4692 * nis/nis_call.c (__nisfind_server): Replace (*dir)->do_servers
4693 with obj->do_servers after first_shoot.
4694
eab1bdfb
UD
46952007-04-03 Ulrich Drepper <drepper@redhat.com>
4696
4697 * posix/Makefile (routines): Add sched_cpucount.
4698 (tests): Add tst-cpucount.
4699 * posix/sched_cpucount.c: New file.
4700 * posix/tst-cpucount.c: New file.
4701 * posix/Versions: Export __sched_cpucount with version GLIBC_2.6.
b4afdd06
UD
4702 * bits/sched.h: Define __CPU_COUNT. Declare __sched_cpucount.
4703 * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
4704 * posix/sched.h: Define CPU_COUNT.
eab1bdfb 4705
9700b039
UD
47062007-03-27 Jakub Jelinek <jakub@redhat.com>
4707
4708 * posix/fnmatch.c (STRUCT): Define.
4709 (fnmatch): Pass NULL as last argument to internal_fn{,w}match.
4710 * posix/fnmatch_loop.c (struct STRUCT): New type.
4711 (FCT): Add ends argument. If ends != NULL and normal * is
4712 seen in the pattern, store current pattern and string pointers
4713 and return. Adjust recursive calls.
4714 (EXT): Adjust FCT callers.
4715 (STRUCT): Undef at the end of the file.
4716 * posix/Makefile (tests): Add tst-fnmatch2.
4717 * posix/tst-fnmatch2.c: New test.
4718
d64e9790
JJ
47192007-04-01 Jakub Jelinek <jakub@redhat.com>
4720
933dfe7b
JJ
4721 * sysdeps/ia64/fpu/fesetround.c (fesetround): Return 0 on success
4722 and 1 on failure.
4723
d64e9790
JJ
4724 * sysdeps/unix/sysv/linux/sync_file_range.c (sync_file_range):
4725 Change last argument to unsigned int.
4726
e1f0c5bc
UD
47272007-03-23 Jakub Jelinek <jakub@redhat.com>
4728
4729 * scripts/check-local-headers.sh: Filter out sys/capability.h.
4730
47312007-03-22 Jakub Jelinek <jakub@redhat.com>
4732
4733 * config.h.in (HAVE_LIBCAP): Add.
4734 * nscd/selinux.h: Include sys/capability.h rather than non-existent
4735 sys/capabilities.h.
4736 * nscd/selinux.c (preserve_capabilities): Use cap_free instead of
4737 free_caps. Cast away const from 4th cap_set_flag argument.
4738
4e87573f
UD
47392007-03-26 Ulrich Drepper <drepper@redhat.com>
4740
4741 * sysdeps/unix/sysv/linux/Versions: Move sync_file_range to
4742 GLIBC_2.6.
4743 * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
4744 Add sync_file_range.
4745 Reported by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
4746
fa6e3bc3
UD
47472007-03-19 Steven Munroe <sjmunroe@us.ibm.com>
4748
4749 * sysdeps/powerpc/bits/atomic.h
4750 [!MUTEX_HINT_ACQ]: Define MUTEX_HINT_ACQ.
4751 [!MUTEX_HINT_REL]: Define MUTEX_HINT_REL.
4752 (__arch_compare_and_exchange_val_32_acq): Add MUTEX_HINT_ACQ to lwarx.
4753 (__arch_compare_and_exchange_val_32_rel): Add MUTEX_HINT_REL to lwarx.
4754 (__arch_atomic_exchange_val_32_acq): Add MUTEX_HINT_ACQ to lwarx.
4755 (__arch_atomic_exchange_rel_32_rel): Add MUTEX_HINT_REL to lwarx.
4756 * sysdeps/powerpc/powerpc32/bits/atomic.h [_ARCH_PWR6 || _ARCH_PWR6X]:
4757 Define MUTEX_HINT_ACQ as ",1" and MUTEX_HINT_REL as ",0".
4758 (__arch_compare_and_exchange_bool_32_acq): Add MUTEX_HINT_ACQ to lwarx.
4759 (__arch_compare_and_exchange_bool_32_rel): Add MUTEX_HINT_REL to lwarx.
4760 * sysdeps/powerpc/powerpc64/bits/atomic.h [_ARCH_PWR6 || _ARCH_PWR6D]:
4761 Define MUTEX_HINT_ACQ as ",1" and MUTEX_HINT_REL as ",0".
4762 (__arch_compare_and_exchange_bool_32_acq): Add MUTEX_HINT_ACQ to lwarx.
4763 (__arch_compare_and_exchange_bool_32_rel): Add MUTEX_HINT_REL to lwarx.
4764 (__arch_compare_and_exchange_bool_64_acq): Add MUTEX_HINT_ACQ to lwarx.
4765 (__arch_compare_and_exchange_bool_64_rel): Add MUTEX_HINT_REL to lwarx.
4766 (__arch_compare_and_exchange_val_64_acq): Add MUTEX_HINT_ACQ to lwarx.
4767 (__arch_compare_and_exchange_val_64_rel): Add MUTEX_HINT_REL to lwarx.
4768 (__arch_atomic_exchange_val_64_acq): Add MUTEX_HINT_ACQ to lwarx.
4769 (__arch_atomic_exchange_rel_64_rel): Add MUTEX_HINT_REL to lwarx.
4770
47712007-03-20 Jakub Jelinek <jakub@redhat.com>
c7693af7
UD
4772
4773 * sysdeps/unix/sysv/linux/powerpc/libc-start.c
4774 (__cache_line_size): Define the variable here. Add
4775 attribute_hidden, remove weak_extern.
4776 (__libc_start_main): Set __cache_line_size
4777 unconditionally.
4778 * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
4779 (__cache_line_size): Define the variable here. Add
4780 attribute_hidden, remove weak_extern.
4781 (DL_PLATFORM_AUXV): Set __cache_line_size
4782 unconditionally.
4783 * sysdeps/powerpc/powerpc32/dl-machine.c (__cache_line_size): Remove
4784 weak_extern, add attribute_hidden.
4785 (__elf_machine_runtime_setup): Assume __cache_line_size is always
4786 defined in ld.so.
4787 * sysdeps/powerpc/powerpc32/memset.S (__cache_line_size): Remove
4788 definition.
4789 * sysdeps/powerpc/powerpc64/memset.S (__cache_line_size): Likewise.
4790
0479e581
JJ
47912007-03-26 Jakub Jelinek <jakub@redhat.com>
4792
4793 [BZ #4276]
4794 * timezone/africa: Update from tzdata2007d.
4795 * timezone/asia: Likewise.
4796 * timezone/australasia: Likewise.
4797 * timezone/backward: Likewise.
4798 * timezone/europe: Likewise.
4799 * timezone/iso3166.tab: Likewise.
4800 * timezone/leapseconds: Likewise.
4801 * timezone/northamerica: Likewise.
4802 * timezone/southamerica: Likewise.
4803 * timezone/zone.tab: Likewise.
4804
4805 * timezone/private.h: Update from tzcode2007d.
4806 * timezone/zdump.c: Likewise.
4807 * timezone/zic.c: Likewise.
4808
697d37b1
JJ
48092007-03-21 Jakub Jelinek <jakub@redhat.com>
4810
4811 * nis/nis_call.c: Include bits/libc-lock.h, sys/stat.h, unistd.h.
4812 (nis_server_cache, nis_server_cache_lock, nis_cold_start_mtime): New
4813 variables.
4814 (nis_server_cache_search, nis_server_cache_add): New functions.
4815 (__nisfind_server): Use them. Add dbp and flags argument, if
4816 call __nisbind_create.
4817 (__nisbind_create): Add server_used and current_ep arguments,
4818 only call __nis_findfastest if server_used is ~0.
4819 (__do_niscall2, __prepare_niscall): Adjust callers.
4820 (ckey_cache, ckey_cache_size, ckey_cache_allocated, ckey_cache_pid,
4821 ckey_cache_euid, ckey_cache_lock): New variables.
4822 (get_ckey): New function.
4823 (__nisbind_connect): If not dbp->use_udp, pass IPPROTO_TCP to
4824 __pmap_getnisport. Save __pmap_getnisport result in
4825 dbp->addr.sin_port if non-zero. Use get_ckey to create conversation
4826 key.
4827 * nis/nis_lookup.c (nis_lookup): Likewise.
4828 * nis/nis_table.c (nis_list): Likewise.
4829 * nis/rpcsvc/nislib.h (__nisbind_create, __nisfind_server): Adjust
4830 prototypes.
4831
4832 * nis/nss_nisplus/nisplus-pwd.c (_nss_nisplus_getpwnam_r,
4833 _nss_nisplus_getpwuid_r): Pass USE_DGRAM flag to nis_list.
4834 * nis/nss_nisplus/nisplus-service.c (_nss_nisplus_getservbyname_r,
4835 _nss_nisplus_getservbyport_r): Likewise.
4836 * nis/nss_nisplus/nisplus-network.c (_nss_nisplus_getnetbyname_r,
4837 _nss_nisplus_getnetbyaddr_r): Likewise.
4838 * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_getspnam_r): Likewise.
4839 * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_gethostton_r,
4840 _nss_nisplus_getntohost_r): Likewise.
4841 * nis/nss_nisplus/nisplus-rpc.c (_nss_nisplus_getrpcbyname_r,
4842 _nss_nisplus_getrpcbynumber_r): Likewise.
4843
06029c20
JJ
48442007-03-20 Jakub Jelinek <jakub@redhat.com>
4845
371f84a4
JJ
4846 * configure.in (libc_cv_gnu89_inline): Only do compile test.
4847 * configure: Rebuilt.
4848
06029c20
JJ
4849 * soft-fp/double.h (_FP_UNION_D): Use _FP_W_TYPE for frac
4850 bit-fields.
4851 * soft-fp/extended.h (_FP_UNION_E): Likewise.
4852
48532006-06-07 Joseph Myers <joseph@codesourcery.com>
4854
4855 [BZ #2831]
4856 * soft-fp/quad.h (_FP_UNION_Q): Use _FP_W_TYPE for frac
4857 bit-fields.
4858
addc8335
UD
48592007-03-18 Jakub Jelinek <jakub@redhat.com>
4860
4861 * nscd/gai.c: Include alloca.h.
4862 (__libc_use_alloca): Define.
4863
b037a293
UD
48642007-03-16 Jakub Jelinek <jakub@redhat.com>
4865
965cba04
UD
4866 * elf/dl-open.c (dl_open_worker): Declare l in 2 different
4867 smaller scopes.
4868 * elf/dl-dst.h (DL_DST_REQ_STATIC): Add l as macro argument.
4869 (DL_DST_REQUIRED): Adjust user.
4870
4871 * include/dlfcn.h (struct link_map): New forward decl.
4872
4873 * inet/getnameinfo.c: Include stddef.h.
4874 (getnameinfo): Use offsetof.
4875
4876 * time/tst-mktime2.c (do_test): Don't rely on signed wrap.
4877
4878 * stdio-common/vfprintf.c (_itoa): Undef before redefining.
4879
4880 * string/strerror_l.c: Include stdlib.h.
4881
b037a293
UD
4882 * configure.in (libc_cv_gnu89_inline): Test for -fgnu89-inline.
4883 * config.make.in (gnu89-inline-CFLAGS): New variable.
4884 * Makeconfig (CFLAGS): Use $(gnu89-inline-CFLAGS) together with
4885 -std=gnu99.
4886 * misc/sys/cdefs.h (__extern_inline, __extern_always_inline): Define.
4887 * argp/argp.h: Use it.
4888 * bits/mathinline.h: Likewise.
4889 * bits/sigset.h: Likewise.
4890 * bits/string.h: Likewise.
4891 * ctype/ctype.h: Likewise.
4892 * hurd/hurd.h: Likewise.
4893 * hurd/hurd/fd.h: Likewise.
4894 * hurd/hurd/port.h: Likewise.
4895 * hurd/hurd/signal.h: Likewise.
4896 * hurd/hurd/threadvar.h: Likewise.
4897 * hurd/hurd/userlink.h: Likewise.
4898 * io/sys/stat.h: Likewise.
4899 * libio/bits/stdio.h: Likewise.
4900 * libio/bits/stdio2.h: Likewise.
4901 * mach/lock-intern.h: Likewise.
4902 * mach/mach/mig_support.h: Likewise.
4903 * math/bits/cmathcalls.h: Likewise.
4904 * posix/bits/unistd.h: Likewise.
4905 * socket/bits/socket2.h: Likewise.
4906 * stdlib/bits/stdlib.h: Likewise.
4907 * stdlib/stdlib.h: Likewise.
4908 * string/argz.h: Likewise.
4909 * string/bits/string2.h: Likewise.
4910 * string/bits/string3.h: Likewise.
4911 * sysdeps/alpha/fpu/bits/mathinline.h: Likewise.
4912 * sysdeps/generic/inttypes.h: Likewise.
4913 * sysdeps/generic/machine-lock.h: Likewise.
4914 * sysdeps/generic/machine-sp.h: Likewise.
4915 * sysdeps/i386/fpu/bits/mathinline.h: Likewise.
4916 * sysdeps/i386/i486/bits/string.h: Likewise.
4917 * sysdeps/ia64/fpu/bits/mathinline.h: Likewise.
4918 * sysdeps/mach/alpha/machine-lock.h: Likewise.
4919 * sysdeps/mach/alpha/machine-sp.h: Likewise.
4920 * sysdeps/mach/i386/machine-lock.h: Likewise.
4921 * sysdeps/mach/powerpc/machine-lock.h: Likewise.
4922 * sysdeps/mach/powerpc/machine-sp.h: Likewise.
4923 * sysdeps/powerpc/fpu/bits/mathinline.h: Likewise.
4924 * sysdeps/s390/bits/string.h: Likewise.
4925 * sysdeps/s390/fpu/bits/mathinline.h: Likewise.
4926 * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
4927 * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Likewise.
4928 * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
4929 * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
4930 * sysdeps/unix/sysv/linux/sys/sysmacros.h: Likewise.
4931 * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
4932 * wcsmbs/bits/wchar2.h: Likewise.
4933 * wcsmbs/wchar.h: Likewise.
4934 * stdlib/gmp.h: Likewise. Include <features.h> to get
4935 __extern_inline definition.
4936
6b2665f5
UD
49372007-03-15 Jakub Jelinek <jakub@redhat.com>
4938
b037a293
UD
4939 * locale/programs/ld-ctype.c (find_translit): Return NULL if ctype is
4940 NULL.
4941
6b2665f5
UD
4942 [BZ #3919]
4943 * math/libm-test.inc (log_test): Test -Inf and NaN.
4944 (log10_test, log1p_test, log2_test): Test -Inf.
4945 * sysdeps/i386/fpu/e_log.S (__ieee754_log): Don't raise
4946 FE_INVALID when argument is qNaN.
4947 * sysdeps/i386/fpu/e_logl.S (__ieee754_logl): Likewise.
4948 * sysdeps/i386/fpu/e_logf.S (__ieee754_logf): Likewise.
4949 * sysdeps/x86_64/fpu/e_logl.S (__ieee754_logl): Likewise.
4950 * sysdeps/x86_64/fpu/e_log10l.S (__ieee754_log10l): Replace
4951 andb $1, %ah with testb $1, %ah, don't test for parity, instead
4952 testb $4, %ah and jump if non-zero.
4953 * sysdeps/x86_64/fpu/e_log2l.S (__ieee754_log2l): Likewise.
4954 * sysdeps/x86_64/fpu/s_log1pl.S (__log1pl): Likewise.
4955
44969f17
UD
4956 [BZ #4101]
4957 * argp/argp-help.c (hol_cluster_cmp): Fix comparisons used to find
4958 ancestors with the same depths.
4959 Patch by Niels Moeller <nisse@lysator.liu.se>.
4960 (filter_doc): Don't crash if argp is NULL.
4961 * argp/Makefile (tests): Add tst-argp2.
4962 * argp/tst-argp2.c: New test.
4963
05eb8975
UD
4964 [BZ #4130]
4965 * login/utmp_file.c (setutent_file): Use O_LARGEFILE for
4966 open_not_cancel_2.
4967 (updwtmp_file): Likewise.
4968
6cb988fa
UD
4969 [BZ #4181]
4970 * inet/inet6_opt.c (add_padding): Only insert padding if npad > 0.
4971 (inet6_opt_append): Don't check extlen is big enough if extbuf
4972 is NULL.
4973 (inet6_opt_finish): Likewise.
4974 * inet/Makefile (tests): Add test-inet6_opt.
4975 * inet/test-inet6_opt.c: New test.
4976
4977 * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Never
4978 reallocate the buffer, instead fail for MSG_TRUNC or for EBUSY
4979 NLMSG_ERR. Instead use a page sized buffer.
4980 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Use page sized
4981 buffer.
4982
aea1d19e
RH
49832007-03-14 Richard Henderson <rth@redhat.com>
4984
b6df547c
RH
4985 * sysdeps/alpha/fpu/s_llround.c: New file.
4986 * sysdeps/alpha/fpu/s_llroundf.c: New file.
4987 * sysdeps/alpha/fpu/s_lround.c: New file.
4988 * sysdeps/alpha/fpu/s_lroundf.c: New file.
4989 * sysdeps/alpha/fpu/s_round.c: New file.
4990 * sysdeps/alpha/fpu/s_roundf.c: New file.
4991 * sysdeps/alpha/fpu/s_trunc.c: New file.
4992 * sysdeps/alpha/fpu/s_truncf.c: New file.
4993
aea1d19e
RH
4994 * sysdeps/alpha/fpu/s_ceil.c: Rewrite without branches.
4995 * sysdeps/alpha/fpu/s_ceilf.c: Likewise.
4996 * sysdeps/alpha/fpu/s_floor.c: Likewise.
4997 * sysdeps/alpha/fpu/s_floorf.c: Likewise.
4998 * sysdeps/alpha/fpu/s_rint.c: Likewise.
4999 * sysdeps/alpha/fpu/s_rintf.c: Likewise.
5000
5001 * sysdeps/alpha/fpu/s_fmax.S: New file.
5002 * sysdeps/alpha/fpu/s_fmaxf.S: New file.
5003 * sysdeps/alpha/fpu/s_fmin.S: New file.
5004 * sysdeps/alpha/fpu/s_fminf.S: New file.
5005 * sysdeps/alpha/fpu/s_isnan.c: New file.
5006 * sysdeps/alpha/fpu/s_isnanf.c: New file.
5007 * sysdeps/alpha/fpu/s_llrint.c: New file.
5008 * sysdeps/alpha/fpu/s_llrintf.c: New file.
5009 * sysdeps/alpha/fpu/s_lrint.c: New file.
5010 * sysdeps/alpha/fpu/s_lrintf.c: New file.
5011 * sysdeps/alpha/fpu/s_nearbyint.c: New file.
5012 * sysdeps/alpha/fpu/s_nearbyintf.c: New file.
5013
5014 * sysdeps/alpha/fpu/bits/mathinline.h (__floorf, __floor): Remove.
5015 (__fdimf, fdimf, __fdim, fdim): Remove.
5016 (__signbitf, __signbit, __signbitl): Use gcc builtin if available.
5017 (__isnanf, __isnan, __isnanl): New.
5018
9e43b50d
RH
50192007-03-13 Richard Henderson <rth@redhat.com>
5020
5021 * sysdeps/ieee754/ldbl-128/Makefile: New file.
5022
62789da3
RH
50232007-03-13 Richard Henderson <rth@redhat.com>
5024
5025 * sysdeps/alpha/Makefile (sysdep-CFLAGS): Force dynamic rounding.
5026 * sysdeps/alpha/fpu/bits/mathinline.h (__signbitl): New.
5027 * sysdeps/alpha/fpu/libm-test-ulps: Regenerate.
5028 * sysdeps/unix/sysv/linux/alpha/alphaev6/fpu/Implies: New file.
5029 * sysdeps/unix/sysv/linux/alpha/alphaev67/fpu/Implies: New file.
5030 * sysdeps/unix/sysv/linux/alpha/fpu/Implies: New file.
5031
47dbe62b
RH
50322007-03-13 Richard Henderson <rth@redhat.com>
5033
37f40235 5034 * elf/dl-support.c (_dl_aux_init): Honor DL_PLATFORM_AUXV.
47dbe62b
RH
5035 * sysdeps/unix/sysv/linux/alpha/dl-auxv.h: New file.
5036 * sysdeps/unix/sysv/linux/alpha/dl-support.c: New file.
5037 * sysdeps/unix/sysv/linux/alpha/dl-sysdep.c (__libc_alpha_cache_shape):
5038 Move to dl-auxv.h; initialize instead of extern weak.
5039 (DL_PLATFORM_AUXV): Move to dl-auxv.h; don't test for undef
5040 weak symbol.
5041 * sysdeps/unix/sysv/linux/alpha/sysconf.c (__libc_alpha_cache_shape):
5042 Extern instead of initialized.
5043
b8097bed
RH
50442007-03-13 Richard Henderson <rth@redhat.com>
5045
5046 * sysdeps/unix/sysv/linux/alpha/sigsuspend.S: Add support for
5047 __sigsuspend_nocancel.
5048
6bf4a686
UD
50492007-03-06 Ulrich Drepper <drepper@redhat.com>
5050
5051 * sysdeps/posix/getaddrinfo.c (get_scope): Correct test for
5052 172.16/12 address range.
5053
0b3b1a0c
UD
50542007-03-02 Jakub Jelinek <jakub@redhat.com>
5055
5056 * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Retry with
5057 a new netlink socket if NLMSG_ERR -EBUSY is seen after some MSG_TRUNC
5058 message.
5059
8f3edfee
UD
50602007-03-01 Jakub Jelinek <jakub@redhat.com>
5061
c1c5e654 5062 [BZ #4069]
8f3edfee
UD
5063 * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Check for NaN
5064 earlier.
5065 * math/libm-test.inc (pow_test): Add more tests involving NaNs.
5066
5067 * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Avoid invalid exception
5068 for x qNaN and y either +-inf or non-integer value.
5069 * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Likewise.
5070 * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.
5071 * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
5072
245a1481
UD
50732007-02-10 Mike Frysinger <vapier@gentoo.org>
5074
5075 * sysdeps/unix/sysv/linux/sh/Makefile: Remove sys/io.h
5076 from sysdep_headers.
5077
c217692b
UD
50782007-02-28 Jakub Jelinek <jakub@redhat.com>
5079
5080 * time/tzfile.c (find_transition): Instead of a linear search try to
5081 guess the transition index, use a linear search if the result is at
5082 most 10 transitions away from the guess or binary search otherwise.
5083
fe64626c
JJ
50842007-02-27 Jakub Jelinek <jakub@redhat.com>
5085
5086 * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Fix
5087 memory reallocation.
5088
0f7769f7
UD
50892007-02-21 Ulrich Drepper <drepper@redhat.com>
5090
621c133d
UD
5091 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Add branch predictions
5092 and fix some typos.
5093 Optimize use of TOLOWER.
9cf147d8 5094
cdfd61e1
UD
5095 [BZ #3325]
5096 * sysdeps/i386/fpu/e_fmodf.S: Revert last changes, keep using fprem.
5097 * sysdeps/i386/fpu/e_fmodl.c: Likewise.
5098 * sysdeps/i386/fpu/e_fmod.S: Likewise.
5099
8889e7aa
UD
5100 [BZ #3458]
5101 * sysdeps/unix/sysv/linux/posix_madvise.c: New file.
5102 * sysdeps/unix/sysv/linux/syscalls.list: Remove posix_madvise entry.
5103
63a2f305
UD
5104 [BZ #4076]
5105 * io/ftw.c (ftw_startup): Handle special case of FTW_CHDIR in /.
5106 (open_dir_stream): Likewise.
5107 * io/Makefile (tests): Add bug-ftw5.
c536b9b8 5108 * io/bug-ftw5.c: New file.
63a2f305 5109
c8703f88
UD
5110 * nscd/hstcache.c (cache_addhst): Remove unnecessary conditional.
5111 * nscd/servicescache.c (cache_addserv): Likewise.
5112
5113 * nscd/grpcache.c (cache_addgr): In case a record changed on
5114 refresh, adjust key_copy.
5115
61705e06
UD
5116 [BZ #4074]
5117 * nscd/pwdcache.c (cache_addpw): In case a record changed on
5118 refresh, adjust key_copy.
5119
0f7769f7
UD
5120 [BZ #4070]
5121 * stdio-common/printf_fp.c (___printf_fp): Handle a few more
0f7769f7 5122 special cases.
8889e7aa 5123 * stdio-common/tfformat.c (sprint_doubles): Some more tests.
0f7769f7 5124
3979024a
UD
51252007-02-19 Ulrich Drepper <drepper@redhat.com>
5126
4c02bf1a
UD
5127 * stdio-common/printf_fp.c (___printf_fp): Cleanups and minor
5128 optimization.
5129
3979024a
UD
5130 * stdio-common/vfscanf.c: Small cleanups throughout.
5131
821d3e70
UD
51322007-02-18 Ulrich Drepper <drepper@redhat.com>
5133
2484468b
UD
5134 [BZ #3325]
5135 * sysdeps/i386/fpu/e_fmodf.S: Use fprem1 instead of fprem.
5136 * sysdeps/i386/fpu/e_fmodl.c: Likewise.
5137 * sysdeps/i386/fpu/e_fmod.S: Likewise.
5138 Patch by Jared Casper <jaredcasper@gmail.com>.
5139
858ee15d
UD
5140 * sysdeps/unix/closedir.c: Outside libc don't use locking.
5141 * sysdeps/unix/opendir.c: Likewise.
5142 * sysdeps/unix/readdir.c: Likewise.
5143
ecb72bd5
UD
5144 [BZ #2211]
5145 * stdio-common/vfscanf.c: Handle localized digits etc for floating
5146 point numbers.
5147 Patch mostly by Hamed Malek <hamed@farsiweb.info>.
5148
ac2ca022
UD
5149 * stdio-common/vfscanf.c: Fix problems in width accounting.
5150 * stdio-common/tst-sscanf.c (double_tests): New tests.
5151 (main): Hook them up.
5152
e9bb5246 5153 * stdio-common/vfscanf.c: Remove unused WIDTH handling.
da50f001 5154 More simplifications of floating-point reader.
e9bb5246 5155
821d3e70
UD
5156 * stdio-common/Makefile (tests): Add tst-swscanf.
5157 * stdio-common/tst-sscanf.c: Make tests usable for swscanf
5158 testing.
5159 * stdio-common/tst-swscanf.c: New file.
5160
07fb5185
UD
51612007-02-17 Ulrich Drepper <drepper@redhat.com>
5162
9138cc0b
UD
5163 [BZ #2633]
5164 * libio/stdio.h: Define struct _IO_FILE in global namespace.
5165 * setjmp/setjmp.h: Define __jmp_buf_tag in global namespace.
5166 Remove using for __jmp_buf_tag.
5167 * locale/locale.h (struct lconv): Also define in std namespace.
5168 * wcsmbs/wchar.h: Move using declaration for tm out of namespace.
5169
6818d837
UD
5170 [BZ #3842]
5171 * sysdeps/posix/euidaccess.c [_LIBC] (euidaccess): Remove shortcut
5172 using __libc_enable_secure.
5173
15c4b5a4
UD
5174 [BZ #3818]
5175 * sysdeps/unix/sysv/linux/sys/acct.h (struct acct_v3): Define.
5176
5e9e9c14
UD
5177 [BZ #3745]
5178 * locale/programs/ld-collate.c (handle_ellipsis): Fix generation
5179 of names for ellipsises.
5180
07fb5185
UD
5181 [BZ #3348]
5182 * malloc/memusage.sh: Cleanups.
5183 * debug/xtrace.sh: Quoting and trap changes.
5184
8c6d1043
UD
51852007-02-16 Ulrich Drepper <drepper@redhat.com>
5186
07fb5185
UD
5187 * locale/iso-3166.def: Add Jersey, Guernsey, and Isle Of Man entries.
5188
93e66914 5189 * locale/iso-3166.def: Update entry for Serbia.
93e36434
UD
5190 * locale/iso-4217.def: Define RSD, remove CSD.
5191
ad0b348c
UD
5192 * sysdeps/x86_64/bits/atomic.h: One more change, this time for 16-
5193 and 64-bit operations.
5194
5195 [BZ #4040]
5196 * sysdeps/i386/i486/bits/atomic.h: One more change, this time for
5197 16-bit operations.
5198
8c6d1043
UD
5199 * nscd/nscd.c (parse_opt): One more conversion to use send instead
5200 of writev.
5201
987f54c6
UD
52022007-02-15 Ulrich Drepper <drepper@redhat.com>
5203
b3715c05
UD
5204 [BZ #3991]
5205 * assert/assert.h (assert): Simplify.
5206 (assert_perror): Likewise.
5207 Patch by Israel G. Lugo <ilugo@bridonsecurity.com>.
5208
6eea8e0d
UD
5209 * nscd/nscd_helper.c (open_socket): Don't send padding bytes from
5210 reqdata.
5211
987f54c6
UD
5212 * sysdeps/unix/sysv/linux/x86_64/send.c (__libc_send): Cosmetic
5213 change: don't pass NULL in place of an integer.
5214
3dc08a7e
UD
52152007-02-02 Bruno Haible <bruno@clisp.org>
5216
06c17c78
UD
5217 [BZ #3954]
5218 * iconvdata/ksc5601.c (__ksc5601_sym_to_ucs, __ksc5601_sym_from_ucs):
5219 Add mapping for U+327E.
5220 * iconvdata/ksc5601.h (KSC5601_SYMBOL): Increment.
5221 * iconvdata/johab.c (BODY for FROM_LOOP, BODY for TO_LOOP): Enable
5222 mapping of 0xD9 0xE8.
5223 * iconvdata/uhc.c (BODY for FROM_LOOP, BODY for TO_LOOP): Disable
5224 mapping of U+327E.
5225 Reported by Jungshik Shin <jungshik@google.com>.
5226
5227 [BZ #3955]
3dc08a7e
UD
5228 * iconvdata/johab.c (BODY for FROM_LOOP, BODY for TO_LOOP): Enable
5229 mapping of 0xD9 0xE6 and of 0xD9 0xE7.
5230 Reported by Jungshik Shin <jungshik@google.com>.
5231
a810e68c
UD
52322007-02-14 Ulrich Drepper <drepper@redhat.com>
5233
5234 * sysdeps/x86_64/bits/atomic;h: Fix asm parameters for some
5235 byte variants.
5236
5237 [BZ #4040]
5238 * sysdeps/i386/i486/bits/atomic.h: Fix asm parameters for some
5239 byte variants. Patch mostly be tom@tommay.net.
5240
05f135ba
UD
52412007-02-14 Jakub Jelinek <jakub@redhat.com>
5242
5243 [BZ #3996]
5244 * posix/glob.c (attribute_hidden): Define if not defined.
5245 (glob): Unescape dirname, filename or username when needed and not
5246 GLOB_NOESCAPE. Handle \/ correctly. Handle GLOB_MARK if filename
5247 is NULL. Handle unescaped [ in pattern without closing ].
5248 Don't pass GLOB_CHECK down to recursive glob for directories.
5249 (__glob_pattern_type): New function.
5250 (__glob_pattern_p): Implement using __glob_pattern_type.
5251 (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
5252 characters and backslashes if not GLOB_NOESCAPE or unterminated [.
5253 Remove unreachable code.
5254 * posix/globtest.sh: Add a couple of new tests.
5255
2f699967
UD
52562007-02-13 Ulrich Drepper <drepper@redhat.com>
5257
5258 * po/ru.po: Update from translation team.
5259
3a7cd5b4
JJ
52602007-02-12 Jakub Jelinek <jakub@redhat.com>
5261
5262 * sysdeps/i386/bits/byteswap.h (__bswap_32): Add __amdfam10__
5263 to the list of i486+ CPUs.
5264 * sysdeps/x86_64/bits/byteswap.h (__bswap_32): Likewise.
5265
2f978feb
UD
52662007-02-12 Ulrich Drepper <drepper@redhat.com>
5267
5268 * elf/rtld.c (RESOLVE_MAP): Always return bootstrap_map reference.
5269 * elf/Makefile ($(objpfx)ld.so): Check that ld.so has no undefined
5270 references.
5271
2bbb7d5b
UD
52722007-02-09 Ulrich Drepper <drepper@redhat.com>
5273
5ed61e0f
UD
5274 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Remove incorrect comment.
5275
2bbb7d5b
UD
5276 * resolv/res_init.c (res_setoptions): Recognize edns0 option.
5277 * resolv/res_mkquery.c: Define __res_nopt.
5278 * resolv/res_query.c (__libc_res_nquery): If RES_USE_EDNS0 is set
5279 try adding EDNS0 record.
5280 * resolv/res_send.c (send_dg): If request failed with FORMERR and
5281 EDNS0 record was send make sure we don't try it again.
5282 * resolv/resolv.h: Define RES_F_EDNS0ERR and RES_USE_EDNS0.
5283 * include/resolv.h: Declare __res_nopt.
5284
00458b5b
UD
52852007-02-08 Jakub Jelinek <jakub@redhat.com>
5286
5287 [BZ #3944]
5288 * time/strptime_l.c (__strptime_internal): Set have_mon for
5289 %b/%B/%h. Set have_mon and have_mday if tm_mon and tm_mday
5290 have been computed from tm_yday and tm_year. Don't crash
5291 in day_of_the_week or day_of_the_year if not have_mon
5292 and tm_mon contains bogus value.
5293 * time/Makefile (tests): Add tst-strptime3.
5294 * time/tst-strptime3.c: New test.
5295
784aacea
UD
52962007-02-05 Jakub Jelinek <jakub@redhat.com>
5297
5298 [BZ #3957]
5299 * posix/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
5300 bit for RE_HAT_LISTS_NOT_NEWLINE.
5301 (build_charclass_op): Remove bogus comment.
5302 * posix/Makefile (tests): Add bug-regex27 and bug-regex28.
5303 * posix/bug-regex27.c: New test.
5304 * posix/bug-regex28.c: New test.
5305
bf7a2463
UD
53062007-02-03 Ulrich Drepper <drepper@redhat.com>
5307
5308 * po/sv.po: Update from translation team.
5309
f2ccf983
UD
53102007-02-02 Ulrich Drepper <drepper@redhat.com>
5311
5312 * nscd/nscd_helper.c (open_socket): Minor size optimization.
5313
73f50d5a
UD
53142007-02-02 Jakub Jelinek <jakub@redhat.com>
5315
5316 * include/locale.h (__uselocale): Add libc_hidden_proto.
5317 * locale/uselocale.c (__uselocale): Add libc_hidden_def.
5318
f6bf9e59
JJ
5319 * nscd/nscd_helper.c (open_socket): Use __gettimeofday instead of
5320 gettimeofday.
5321
4a44ce79
UD
53222007-02-01 Ulrich Drepper <drepper@redhat.com>
5323
5324 * sysdeps/unix/sysv/linux/i386/sysdep.h (PTR_MANGLE): Roll value before
5325 returning.
5326 (PTR_DEMANGLE): Real definition now that it's not the same as
5327 PRT_MANGLE anymore.
5328 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
5329
5330 * string/strerror_l.c: New file.
5331 * string/Makefile (routines): Add strerror_l.
5332 * string/string.h: Declare strerror_l.
5333 * string/Versions: Export strerror_l for GLIBC_2.6.
5334
58a2d52e
UD
53352007-01-31 Ulrich Drepper <drepper@redhat.com>
5336
5337 * nscd/nscd_helper.c (open_socket): Now takes request type and key
5338 as parameter. Construct request record. Try sending request
5339 before the first poll use, it usually succeeds. Adjust all
5340 callers.
5341 * nscd/nscd-client.h: Define MAXKEYLEN.
4a44ce79 5342 * nscd/connections.c (nscd_run): Don't define MAXKEYLEN here.
58a2d52e 5343
1a77d37f
JJ
53442007-01-31 Jakub Jelinek <jakub@redhat.com>
5345
5346 * nscd/nscd-client.h (__nscd_cache_search): Remove const qualifier
5347 from return value.
5348 * nscd/nscd_helper.c: Include string.h.
5349 (__nscd_cache_search): Remove const qualifier from return value.
5350 On strict alignment architectures check hash entry and data head
5351 alignment.
5352 * nscd/nscd_getpw_r.c (nscd_getpw_r): Don't crash or fail because
5353 mmapped data during GC cycle contains garbage. If
5354 __nscd_drop_map_ref fails, decrement mapped->counter when returning
5355 error or if retrying with NO_MAPPING, only __nscd_unmap if counter
5356 dropped to 0.
5357 * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
5358 * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
5359 * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
5360 * nscd/nscd_getai.c (__nscd_getai): Likewise.
5361 * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
5362
ee314200
UD
53632007-01-30 Ulrich Drepper <drepper@redhat.com>
5364
5365 * misc/hsearch_r.c (hdestroy_r): Remove unnecessary test.
5366
14c8bf3b
UD
53672007-01-26 Ulrich Drepper <drepper@redhat.com>
5368
5369 * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Use register
5370 names not numbers in cfi_*.
5371
d2708e67
AJ
53722007-01-26 Andreas Jaeger <aj@suse.de>
5373
5374 * sysdeps/unix/sysv/linux/sys/personality.h (ADDR_NO_RANDOMIZE,
14c8bf3b 5375 ADDR_LIMIT_3GB, PER_LINUX_32BIT, PER_LINUX32_3GB): Add.
d2708e67
AJ
5376 Correct values of PER_HPUX and PER_OSF4.
5377
7fbc8784
UD
53782007-01-24 Ulrich Drepper <drepper@redhat.com>
5379
8aaf53ee 5380 * elf/dl-minimal.c: Undefine _itoa first.
7fbc8784
UD
5381 * stdio-common/_itoa.h: Define _itoa and _fitoa for 64-bit platforms.
5382 * malloc/mtrace.c: Revert last change.
5383 * posix/wordexp.c: Likewise.
5384
9d6cde3d
UD
53852007-01-24 Jakub Jelinek <jakub@redhat.com>
5386
5387 * sysdeps/i386/bits/byteswap.h (__bswap_32): Add __nocona__, __core2__
5388 and __geode__ to the list of i486+ CPUs.
5389 * sysdeps/x86_64/bits/byteswap.h (__bswap_32): Likewise.
5390
c1f0486a
UD
53912007-01-23 Ulrich Drepper <drepper@redhat.com>
5392
5393 * stdio-common/_itoa.c: Include <limits.h>.
5394 * stdio-common/_itowa.c: Likewise.
5395
6cae3957
UD
53962007-01-22 Ulrich Drepper <drepper@redhat.com>
5397
765bbb24
UD
5398 * stdio-common/_itowa.c: Don't compile _itowa for 64-bit
5399 platforms.
5400 * stdio-common/_itoa.c: Don't compile in _itoa and _fitoa for
5401 64-bit platforms.
5402 * malloc/mtrace.c (tr_where): Use _fitoa_word instead of _fitoa if
5403 possible.
5404 * posix/wordexp.c (parse_arith): Use _itoa_word instead of _itoa
5405 if possible.
5406
6cae3957
UD
5407 [BZ #3902]
5408 * stdio-common/_itoa.c (_itoa): Make sure at least a zero is emitted.
5409 * stdio-common/Makefile (tests): Add bug17.
5410 * stdio-common/bug17.c: New file.
5411
ddaafd04
UD
54122007-01-19 Ulrich Drepper <drepper@redhat.com>
5413
5414 * iconvdata/brf.c: New file.
439201de
UD
5415 * iconvdata/testdata/BRF: New file.
5416 * iconvdata/testdata/BRF..UTF8: New file.
5417 Contributed by Samuel Thibault <samuel.thibault@ens-lyon.org>.
ddaafd04
UD
5418 * iconvdata/Makefile: Add rules to build BRF.
5419 * iconvdata/TESTS: Add BRF entry.
5420 * iconvdata/gconv-modules: Likewise.
5421 * iconvdata/tst-tables.sh: Likewise.
ddaafd04 5422
9e6e344e
UD
54232007-01-18 Anton Nikishaev <anton.nik@gmail.com>
5424
5425 * wcsmbs/wchar.h (wcstoll): Fix comment, function returns value of
5426 type `long long int', not `long int'.
5427 (wcstoq): Likewise.
5428
299f7b0f
UD
54292007-01-18 Ulrich Drepper <drepper@redhat.com>
5430
5431 * scripts/gen-as-const.awk: Add cast to long to avoid int promotion
5432 of values on 64-bit platforms which are too large.
5433
cd8127cc
JJ
54342007-01-12 Steven Munroe <sjmunroe@us.ibm.com>
5435 Joe Kerian <jkerian@us.us.ibm.com>
5436
5437 [BZ #2749]
5438 * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Include
5439 <math_ldbl_opt.h>. Remove weak_alias. Use long_double_symbol macro.
5440 (__copysignl): Use signbit() for comparison.
5441 * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Correct parms for
5442 SET_LDOUBLE_WORDS64.
5443
5444 [BZ #2423, #2749]
5445 * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Don't include <fenv_libc.h>.
5446 (__ceill): Remove calls to fegetround(), fesetround().
5447 * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
5448 * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
5449 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
5450
b3acfdf7
JJ
54512007-01-17 Jakub Jelinek <jakub@redhat.com>
5452
4a2e03c6
JJ
5453 * nscd/nscd_getserv_r.c (nscd_getserv_r): Fix pastos.
5454
b3acfdf7
JJ
5455 * sysdeps/unix/sysv/linux/getdents.c (offsetof): Remove.
5456
1476bce6
UD
54572007-01-17 Ulrich Drepper <drepper@redhat.com>
5458
5459 * sysdeps/unix/sysv/linux/fatal-prepare.h: Use PTHFCT_CALL to
5460 demangle pointer.
5461 * csu/libc-start.c: Likewise.
5462
d78bce1c
UD
54632007-01-16 Ulrich Drepper <drepper@redhat.com>
5464
5465 * sysdeps/posix/system.c: Remove NO_WAITPID support, it cannot
5466 really work anyway.
5467
1bd79025
UD
54682007-01-15 Ulrich Drepper <drepper@redhat.com>
5469
000b027e
UD
5470 * nscd/connections.c (servinfo): Renamed to reqinfo. Change all
5471 users.
5472 (handle_request): Remove unnecessary tests.
5473
1bd79025
UD
5474 * nscd/cache.c (cache_add): Record the failure to add to the cache.
5475
d68f5d2c
JJ
54762007-01-15 Jakub Jelinek <jakub@redhat.com>
5477
5478 * soft-fp/op-common.h (FP_TRUNC): When truncating a NaN, clear
5479 workbits in semi-raw fraction.
5480
5481 * math/test-misc.c: Add new tests.
5482
54832007-01-14 Steven Munroe <sjmunroe@us.ibm.com>
5484
5485 * math/basic-test.c: Include test-skeleton.c.
5486 (TEST_TRUNC): Define.
5487 (truncdfsf_test, trunctfsf_test, trunctfdf_test): New.
5488 (main): Rename to ...
5489 (do_test): ...this. Run new tests.
5490 (TEST_FUNCTION): Define.
5491
54922006-10-05 Steven Munroe <sjmunroe@us.ibm.com>
5493 Joe Kerian <jkerian@us.us.ibm.com>
5494
5495 [BZ #2749]
5496 * soft-fp/op-4.h (__FP_FRAC_SUB_3, __FP_FRAC_SUB_4): Correct borrow
5497 handling for high words.
5498 * soft-fp/op-common.h (_FP_OVERFLOW_SEMIRAW): Always set inexact
5499 and overflow for infinity.
5500
4e35ef2c
UD
55012007-01-15 Ulrich Drepper <drepper@redhat.com>
5502
2a1dea97
UD
5503 * nscd/connections.c (handle_request): Add a __builtin_expect.
5504
9691d83c
UD
5505 * nscd/connections.c (serv2db): Change type into structure which
5506 also says whether this is a request for data. Renamed to
5507 servinfo. All users changed.
5508 (handle_request): Much simpler test whether we should search the cache.
5509
49ee6d79
UD
5510 * nscd/connections.c (handle_request): Fix thinko in selinux test
5511 invocation.
5512
4e35ef2c
UD
5513 * sysdeps/generic/ldsodefs.h: Define DL_LOOKUP_SCOPE_LOCK.
5514 * elf/dl-lookup.c (add_dependency): If scope map is locked, unlock
5515 it before getting dl_load_lock and then relock.
5516 (_dl_lookup_symbol_x): Pass flags to add_dependency.
5517 When rerunning _dl_lookup_symbol_x, compute symbol_scope again in
5518 case we unlocked the scope.
5519 * elf/dl-runtime.c (_dl_fixup): Pass DL_LOOKUP_SCOPE_LOCK to
5520 _dl_lookup_symbol_x in case we locked the scope.
5521 (_dl_profile_fixup): Likewise.
5522 * elf/dl-sym.c (do_sym): In flags passed to call_dl_lookup, also
5523 set DL_LOOKUP_SCOPE_LOCK.
5524
23691ab2
UD
55252007-01-13 Ulrich Drepper <drepper@redhat.com>
5526
fb453d08
UD
5527 * inet/Makefile: Define CFLAGS-getsrvbynm_r.c and
5528 CFLAGS-getsrvbynpt_r.c.
5529 * nscd/getsrvbynm_r.c: New file.
5530 * nscd/getsrvbypt_r.c: New file.
5531 * nscd/nscd_getserv_r.c: New file.
5532 * nscd/servicescache.c: New file.
5533 * nscd/Makefile (routines): Add nscd_getserv_r.
5534 (nscd-modules): Add getsrvbynm_r, getsrvbypt_r, and servicescache.
5535 Define CFLAGS-servicescache.c, CFLAGS-getsrvbynm_r.c, and
5536 CFLAGS-getsrvbypt_r.c.
5537 * nscd/cache.c (prune_cache): Rewrite to get re-add function from
5538 table. Add entries for services database.
5539 * nscd/connections.c (serv2str): Mark as const. Add entries for
5540 services database.
5541 (dbs): Add .reset_res and servdb initialization.
5542 (serv2db): Add entries for services database.
5543 (verify_persistent_db): Accept dbnr == servdb.
5544 (invalidate_cache): Rewrite database name recognition to use a table.
5545 Call res_init() if .reset_res is set for database.
5546 (handle_request): Add code to handle services database.
5547 * nscd/gai.c: Don't define __getservbyname_r.
5548 * nscd/nscd-client.h (request_type): Remove LASTDBREQ, add
5549 GETSERVBYNAME, GETSERVBYPORT, GETFDSERV.
5550 (serv_response_header): Define.
5551 (struct datahead): Add serv_response_header member.
5552 * nscd/nscd.c (parse_opt): Rewrite parsing of -i parameter value
5553 using table.
5554 * nscd/nscd.conf: Add entries for services database.
5555 * nscd/nscd.h: Adjust declaration of dbnames and serv2str.
5556 Declare serv_iov_disabled.
5557 Declare addservbyname, readdservbyname, addservbyport, and
5558 readdservbyport.
5559 * nscd/nscd_conf.c (dbnames): Mark as const. Add services entry.
5560 (find_db): Fix error message.
5561 * nscd/nscd_proto.h: Declare __nss_not_use_nscd_services,
5562 __nscd_getservbyname_r, and __nscd_getservbyport_r.
5563 * nscd/selinux.c (perms): Add entries for services database.
5564 * nss/Versions: Export __nss_services_lookup with GLIBC_PRIVATE.
5565 * nss/nsswitch.c (__nss_disable_nscd): Also disable services database.
5566
5567 * nscd/grpcache.c: Remove obsolete code. Cleanups.
5568 * nscd/hstcache.c: Likewise.
5569 * nscd/pwdcache.c: Likewise.
5570
b21fa963
UD
5571 * nis/nss_nis/nis-service.c (_nss_nis_getservbyname_r): Correct
5572 computation of keylen.
5573
23691ab2
UD
5574 * include/string.h: Only redefine strndupa if this is really for
5575 libc code.
5576
8980796b
UD
55772007-01-12 Ulrich Drepper <drepper@redhat.com>
5578
4a4a65f2
UD
5579 * nscd/nscd_gethst_r.c: Minor cleanups.
5580
43397eaf
UD
5581 * nscd/connections.c (handle_request): Check selinux permissions
5582 for all non-admin commands.
5583
038a1a9f
UD
5584 * sysdeps/i386/i486/bits/atomic.h: Define
5585 atomic_compare_and_exchange_val_acq,
5586 atomic_compare_and_exchange_bool_acq, and atomic_exchange_and_add
5587 using __sync_* built-ins for gcc >= 4.1.
5588 * sysdeps/x86_64/bits/atomic.h: Likewise.
5589
8980796b
UD
5590 [BZ #3840]
5591 * scripts/check-local-headers.sh: Restrict to testing .o.d, .os.d,
5592 and .oS.d files.
5593
32c075e1
JJ
55942007-01-05 Steven Munroe <sjmunroe@us.ibm.com>
5595
5596 * stdlib/tst-makecontext.c: Include errno.h. Change main()
5597 to do_test(). Define TEST_FUNCTION. Include test-skeleton.c.
5598 (do_test): Check errno and exit(0) if ENOSYS.
5599
56002007-01-11 Jakub Jelinek <jakub@redhat.com>
5601
5602 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix handling of multi-byte
5603 thousands separators.
5604 * stdlib/Makefile: Add rules to build and run tst-strtod4.
5605 * stdlib/tst-strtod4.c: New test.
5606
5607 [BZ #3855]
5608 * stdlib/strtod_l.c (____STRTOF_INTERNAL): 0x. not followed by
5609 hexadecimal digit should accept just the initial 0.
5610 * stdlib/tst-strtod2.c (tests): New variable.
5611 (do_test): Run several tests rather than just one.
5612
11bf311e 56132007-01-11 Jakub Jelinek <jakub@redhat.com>
df859a0c 5614
11bf311e
UD
5615 * sysdeps/i386/soft-fp/sfp-machine.h: Remove.
5616 * sysdeps/x86_64/soft-fp/sfp-machine.h: Likewise.
df859a0c 5617
11bf311e 56182007-01-10 Ulrich Drepper <drepper@redhat.com>
32c075e1 5619
11bf311e
UD
5620 * io/fts.c: Make sure fts_cur is always valid after return from
5621 fts_read.
5622 Patch by Miloslav Trmac <mitr@redhat.com>.
64a0aa0f 5623
11bf311e 56242006-10-27 Richard Sandiford <richard@codesourcery.com>
32c075e1 5625
11bf311e
UD
5626 * elf/elf.h (R_MIPS_GLOB_DAT): Define.
5627 (R_MIPS_NUM): Bump by 1.
32c075e1 5628
11bf311e 56292007-01-03 Jakub Jelinek <jakub@redhat.com>
32c075e1 5630
11bf311e
UD
5631 * posix/execvp.c: Include alloca.h.
5632 (allocate_scripts_argv): Renamed to...
5633 (scripts_argv): ... this. Don't allocate buffer here nor count
5634 arguments.
5635 (execvp): Use alloca if possible.
5636 * posix/Makefile: Add rules to build and run tst-vfork3 test.
5637 * posix/tst-vfork3.c: New test.
32c075e1
JJ
5638
56392007-01-03 Ulrich Drepper <drepper@redhat.com>
5640
5641 * string/Makefile (tst-strxfrm2-ENV): Define.
11bf311e 5642 * stdlib/Makefile (tst-strtod3-ENV): Define.
32c075e1 5643
11bf311e 56442007-01-02 Ulrich Drepper <drepper@redhat.com>
32c075e1 5645
11bf311e
UD
5646 * posix/getconf.c: Update copyright year.
5647 * nss/getent.c: Likewise.
5648 * iconv/iconvconfig.c: Likewise.
5649 * iconv/iconv_prog.c: Likewise.
5650 * elf/ldconfig.c: Likewise.
5651 * catgets/gencat.c: Likewise.
5652 * csu/version.c: Likewise.
5653 * elf/ldd.bash.in: Likewise.
5654 * elf/sprof.c (print_version): Likewise.
5655 * locale/programs/locale.c: Likewise.
5656 * locale/programs/localedef.c: Likewise.
5657 * nscd/nscd.c (print_version): Likewise.
5658 * debug/xtrace.sh: Likewise.
5659 * malloc/memusage.sh: Likewise.
5660 * malloc/mtrace.pl: Likewise.
5661 * debug/catchsegv.sh: Likewise.
64a0aa0f 5662
11bf311e 56632006-12-24 Ulrich Drepper <drepper@redhat.com>
48576885 5664
11bf311e
UD
5665 * malloc/malloc.c (sYSMALLOc): Remove some unnecessary alignment
5666 attempts.
48576885 5667
11bf311e 56682006-12-23 Ulrich Drepper <drepper@redhat.com>
3b6667a4 5669
11bf311e 5670 * posix/wordexp.c: Remove some unnecessary tests.
3b6667a4 5671
33c6de58
UD
56722006-12-22 Gavin Romig-Koch <gavin@redhat.com>
5673
5674 * nis/nss_compat/compat-grp.c (internal_getgrgid_r): Don't
5675 blacklist the group till after we look it up.
5676
fc242bef
UD
56772006-12-21 Ulrich Drepper <drepper@redhat.com>
5678
5679 * include/atomic.h (atomic_forced_read): New macro.
5680
11bf311e
UD
56812006-12-20 SUGIOKA Toshinobu <sugioka@itonet.co.jp>
5682
5683 * sysdeps/unix/sysv/linux/sh/bits/shm.h: New file.
5684
a12dcecc
UD
56852006-12-19 Jakub Jelinek <jakub@redhat.com>
5686
11bf311e
UD
5687 * nss/getXXbyYY_r.c: Include atomic.h.
5688 (INTERNAL (REENTRANT_NAME)): Write startp after start_fct,
5689 add atomic_write_barrier () in between.
5690
a12dcecc
UD
5691 * stdlib/Makefile (tests): Add tst-makecontext.
5692 * stdlib/tst-makecontext.c: New test.
5693
5694 * sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S
5695 (__makecontext): Don't realign uc_mcontext.uc_regs.
5696
11bf311e 56972006-11-28 Jakub Jelinek <jakub@redhat.com>
594d423a 5698
11bf311e
UD
5699 * elf/dl-support.c: Include dl-procinfo.h.
5700 * sysdeps/powerpc/dl-procinfo.h (PPC_PLATFORM_POWER4,
5701 PPC_PLATFORM_PPC970, PPC_PLATFORM_POWER5, PPC_PLATFORM_POWER5_PLUS,
5702 PPC_PLATFORM_POWER6, PPC_PLATFORM_CELL_BE, PPC_PLATFORM_POWER6X):
5703 Define.
5704 (_dl_string_platform): Use PPC_PLATFORM_* macros instead of
5705 hardcoded constants.
5706 * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_platform): Use
5707 PPC_PLATFORM_* macros for array designators.
594d423a 5708
11bf311e 57092006-11-11 Steven Munroe <sjmunroe@us.ibm.com>
594d423a 5710
11bf311e
UD
5711 * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add 3 new cap
5712 names to the beginning.
5713 (_dl_powerpc_platforms): Add "power6x".
5714 * sysdeps/powerpc/dl-procinfo.h (_DL_HWCAP_FIRST): Decrease.
5715 (HWCAP_IMPORTANT): Add PPC_FEATURE_HAS_DFP.
5716 (_DL_PLATFORMS_COUNT): Increase.
5717 (_dl_string_platform): Handle power6x case.
5718 * sysdeps/powerpc/sysdep.h (PPC_FEATURE_PA6T, PPC_FEATURE_HAS_DFP,
5719 PPC_FEATURE_POWER6_EXT): Define.
5720 (PPC_FEATURE_POWER5, PPC_FEATURE_POWER5_PLUS): Correct Comment.
594d423a 5721
5bcba0ed
UD
57222006-12-18 Jakub Jelinek <jakub@redhat.com>
5723
5724 [BZ #3747]
5725 * stdlib/jrand48_r.c (__jrand48_r): Make sure result is in the
11bf311e 5726 [-2^31 .. 2^31) range.
5bcba0ed
UD
5727 * stdlib/tst-rand48.c (main): Fix expected values for 64-bit
5728 targets.
5729 * stdlib/tst-rand48-2.c: New test.
5730 * stdlib/Makefile (tests): Add tst-rand48-2.
5731
9e1444fc
UD
57322006-12-14 Jakub Jelinek <jakub@redhat.com>
5733
5734 * misc/tst-pselect.c (do_test): Fix sigblock argument.
5735
36775704
UD
57362006-12-14 Ulrich Drepper <drepper@redhat.com>
5737
5738 * misc/tst-pselect.c (do_test): Make sure the helper process is
5739 terminating when the test is aborted.
5740
1e88bd0f
UD
57412006-12-13 Ulrich Drepper <drepper@redhat.com>
5742
11bf311e
UD
5743 * sysdeps/unix/sysv/linux/bits/statvfs.h: Define ST_RELATIME.
5744 * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
5745 Handle relatime mount option.
5746
1e88bd0f
UD
5747 [BZ #2337]
5748 * libio/Makefile (tests): Add tst-setvbuf1.
5749 * libio/tst-setvbuf1.c: New file.
5750
57512006-12-08 Jakub Jelinek <jakub@redhat.com>
5752
5753 [BZ #2337]
5754 * libio/genops.c (__uflow): Fix a typo.
5755 * libio/wfiledoalloc.c (_IO_wfile_doallocate): Don't stat
5756 nor set _IO_LINE_BUF bit here. Size the wide buffer based on
5757 the narrow buffer size.
5758
57592006-11-24 Jakub Jelinek <jakub@redhat.com>
5760
5761 [BZ #2337]
5762 * libio/libio.h (_IO_FLAGS2_USER_WBUF): Define.
5763 * libio/wgenops.c (_IO_wsetb, _IO_wdefault_finish): Test and set
5764 _IO_FLAGS2_USER_WBUF bit in _flags2 instead of _IO_USER_BUF bit
5765 in _flags.
5766 * libio/wstrops.c (_IO_wstr_overflow, enlarge_userbuf,
5767 _IO_wstr_finish): Likewise.
5768 * libio/wmemstream.c (open_wmemstream): Likewise.
5769 * libio/fileops.c (_IO_new_file_close_it): Call _IO_set[bgp]
5770 even for wide streams.
5771
11bf311e 57722006-12-13 Jakub Jelinek <jakub@redhat.com>
1f55ce48 5773
11bf311e
UD
5774 * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: Include
5775 kernel-features.h.
5776
57772006-12-11 Ulrich Drepper <drepper@redhat.com>
5778
5779 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Parse thousand
5780 separators also if no non-zero digits found.
5781 * stdlib/Makefile (tests): Add tst-strtod3.
1f55ce48 5782
d117c1ce
UD
57832006-12-09 Ulrich Drepper <drepper@redhat.com>
5784
f85fb97b
UD
5785 [BZ #3632]
5786 * include/features.h: Fix comment about default value for
5787 _POSIX_C_SOURCE.
5788
11bf311e
UD
5789 [BZ #3664]
5790 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix test to recognize
5791 empty parsed strings.
5792 * stdlib/Makefile (tests): Add tst-strtod2.
5793 * stdlib/tst-strtod2.c: New file.
5794
5795 [BZ #3673]
5796 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix exp_limit
5797 computation.
5798 * stdlib/Makefile (tests): Add tst-atof2.
5799 * stdlib/tst-atof2.c: New file.
5800
5801 [BZ #3674]
5802 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Adjust exponent value
5803 correctly if removing trailing zero of hex-float.
5804 * stdlib/Makefile (tests): Add tst-atof1.
5805 * stdlib/tst-atof1.c: New file.
5806
a822d9f4
UD
58072006-12-09 Jakub Jelinek <jakub@redhat.com>
5808
11bf311e
UD
5809 * misc/mntent_r.c (__hasmntopt): Check p[optlen] even when p == rest.
5810 Start searching for next comma at p rather than rest.
5811 * misc/Makefile (tests): Add tst-mntent2.
5812 * misc/tst-mntent2.c: New test.
5813
a822d9f4
UD
5814 * misc/getusershell.c (initshells): Check for integer overflows.
5815 Make strings buffer one bigger as fgets always succeeds when second
5816 argument is 1. Don't use calloc for shells array. Disallow
11bf311e 5817 / as shell.
f0d5e1f6 5818
11bf311e 58192006-12-08 Ulrich Drepper <drepper@redhat.com>
f0d5e1f6 5820
11bf311e
UD
5821 * malloc/memusage.c: Handle realloc with new size of zero and
5822 non-NULL pointer correctly.
5823 (me): Really write first record twice.
5824 (struct entry): Make format bi-arch safe.
5825 (dest): Write out more realloc statistics.
5826 * malloc/memusagestat.c (struct entry): Make format bi-arch safe.
32c075e1 5827
11bf311e 58282006-12-05 Jakub Jelinek <jakub@redhat.com>
32c075e1 5829
11bf311e 5830 * nis/nis_subr.c (nis_getnames): Revert last change.
32c075e1 5831
f0d5e1f6
UD
58322006-12-04 Jakub Jelinek <jakub@redhat.com>
5833
5834 * sysdeps/unix/sysv/linux/ttyname.c: Include termios.h.
5835 (ttyname): Use tcgetattr instead of isatty, don't set errno to ENOTTY.
5836 * sysdeps/unix/sysv/linux/ttyname_r.c: Include termios.h.
5837 (__ttyname_r): Use tcgetattr instead of isatty, don't set errno to
5838 ENOTTY.
5839 * io/Makefile: Add rules to build and run tst-ttyname_r test.
5840 * io/tst-ttyname_r.c: New test.
5841
11bf311e 58422006-12-03 Kaz Kojima <kkojima@rr.iij4u.or.jp>
5df4fe08 5843
11bf311e 5844 * sysdeps/unix/sysv/linux/sh/sys/io.h: Removed.
5df4fe08 5845
11bf311e 58462006-11-30 H.J. Lu <hongjiu.lu@intel.com>
ee50871d 5847
11bf311e
UD
5848 * sysdeps/i386/i686/memcmp.S: Use jump table as the base of
5849 jump table entries.
5850
58512006-11-30 Jan Kratochvil <jan.kratochvil@redhat.com>
5852
5853 * sysdeps/unix/sysv/linux/i386/clone.S: Provide CFI for the outermost
5854 `clone' function to ensure proper unwinding stop of gdb.
5855 * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
5856
58572006-12-01 Ulrich Drepper <drepper@redhat.com>
5858
5859 * nscd/nscd.init: Remove obsolete and commented-out -S option
5860 handling.
5861
58622006-11-23 Jakub Jelinek <jakub@redhat.com>
5863
5864 [BZ #3514]
5865 * manual/string.texi (strncmp): Fix pastos from wcscmp description.
5866
5867 [BZ #3515]
5868 * manual/string.texi (strtok): Remove duplicate paragraph.
5869
58702006-12-01 Jan Kratochvil <jan.kratochvil@redhat.com>
5871
5872 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Fix compatibility with
5873 libgcc not supporting `rflags' unwinding (register # >= 17).
5874
58752006-11-30 Jakub Jelinek <jakub@redhat.com>
5876
5877 * sunrpc/svc_run.c (svc_run): Set my_pollfd to new_pollfd if realloc
5878 succeeded.
5879
58802006-11-29 Daniel Jacobowitz <dan@codesourcery.com>
5881 Jakub Jelinek <jakub@redhat.com>
5882 Jan Kratochvil <jan.kratochvil@redhat.com>
5883
5884 * sysdeps/unix/sysv/linux/x86_64/sigaction.c (restore_rt): Add correct
5885 unwind information.
5886 * sysdeps/unix/sysv/linux/x86_64/Makefile: Provide symbols for
5887 'restore_rt' even in the 'signal' directory.
5888 * sysdeps/unix/sysv/linux/x86_64/ucontext_i.sym: Extend the regs list.
ee50871d 5889
b1a758f3
UD
58902006-11-27 Jakub Jelinek <jakub@redhat.com>
5891
5892 [BZ #3559]
5893 * sunrpc/svc_run.c (svc_run): Fail instead of segfaulting if
11bf311e
UD
5894 malloc crashed. Don't allocate memory unnecessarily in each
5895 loop.
b1a758f3 5896
11bf311e 58972006-10-21 Jakub Jelinek <jakub@redhat.com>
854d1124 5898
11bf311e 5899 * resolv/mapv4v6addr.h (map_v4v6_address): Fix last change.
dfc99a56 5900
11bf311e 59012006-11-20 Ulrich Drepper <drepper@redhat.com>
dfc99a56 5902
11bf311e 5903 * resolv/mapv4v6addr.h (map_v4v6_address): Optimize a bit.
852d657c 5904
11bf311e 59052006-11-18 Bruno Haible <bruno@clisp.org>
852d657c 5906
11bf311e
UD
5907 * sysdeps/unix/sysv/linux/i386/getgroups.c (__getgroups): Invoke
5908 __sysconf only after having tried to call getgroups32.
36c0a636 5909
11bf311e 59102006-11-19 Ulrich Drepper <drepper@redhat.com>
36c0a636 5911
11bf311e
UD
5912 * nss/nss_files/files-hosts.c (LINE_PARSER): Support IPv6-style
5913 addresses for IPv4 queries if they can be mapped.
b1f0c2a6 5914
11bf311e 59152006-11-16 Jakub Jelinek <jakub@redhat.com>
b1f0c2a6 5916
11bf311e
UD
5917 * sysdeps/x86_64/fpu/s_copysignf.S (__copysignf): Switch to .text.
5918 * sysdeps/x86_64/fpu/s_copysign.S (__copysign): Likewise.
5919 (signmask): Add .size directive.
5920 (othermask): Add .type directive.
bef8927a 5921
11bf311e 59222006-11-14 Ulrich Drepper <drepper@redhat.com>
2c53fa20 5923
11bf311e 5924 * po/nl.po: Update from translation team.
854d1124 5925
11bf311e 5926 * timezone/zdump.c: Redo fix for BZ #3137.
3f1e9205 5927
11bf311e 59282006-11-14 Jakub Jelinek <jakub@redhat.com>
bef8927a 5929
11bf311e
UD
5930 * nss/nss_files/files-alias.c (get_next_alias): Set line back
5931 to first_unused after parsing :include: file.
5c2af134 5932
32c075e1 59332006-11-10 Ulrich Drepper <drepper@redhat.com>
e1b37083 5934
11bf311e
UD
5935 * timezone/africa: Update from tzdata2006o.
5936 * timezone/antarctica: Likewise.
5937 * timezone/asia: Likewise.
5938 * timezone/australasia: Likewise.
5939 * timezone/backward: Likewise.
5940 * timezone/europe: Likewise.
5941 * timezone/iso3166.tab: Likewise.
5942 * timezone/northamerica: Likewise.
5943 * timezone/southamerica: Likewise.
5944 * timezone/zone.tab: Likewise.
5945
5946 * time/tzfile.c (__tzfile_read): Extend to handle new file format
5947 on machines with 64-bit time_t.
5948
5949 * timezone/checktab.awk: Update from tzcode2006o.
5950 * timezone/ialloc.c: Likewise.
5951 * timezone/private.h: Likewise.
5952 * timezone/scheck.c: Likewise.
5953 * timezone/tzfile.h: Likewise.
5954 * timezone/tzselect.ksh: Likewise.
5955 * timezone/zdump.c: Likewise.
5956 * timezone/zic.c: Likewise.
5957
5958 [BZ #3483]
5959 * elf/ldconfig.c (main): Call setlocale and textdomain.
5960 Patch mostly by Benno Schulenberg <bensberg@justemail.net>.
5961
5962 [BZ #3480]
5963 * manual/argp.texi: Fix typos.
5964 * manual/charset.texi: Likewise.
5965 * manual/errno.texi: Likewise.
5966 * manual/filesys.texi: Likewise.
5967 * manual/lang.texi: Likewise.
5968 * manual/maint.texi: Likewise.
5969 * manual/memory.texi: Likewise.
5970 * manual/message.texi: Likewise.
5971 * manual/resource.texi: Likewise.
5972 * manual/search.texi: Likewise.
5973 * manual/signal.texi: Likewise.
5974 * manual/startup.texi: Likewise.
5975 * manual/stdio.texi: Likewise.
5976 * manual/sysinfo.texi: Likewise.
5977 * manual/syslog.texi: Likewise.
5978 * manual/time.texi: Likewise.
5979 Patch by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
5980
5981 [BZ #3465]
5982 * sunrpc/clnt_raw.c: Minimal message improvements.
5983 * sunrpc/pm_getmaps.c: Likewise.
5984 * nis/nss_nisplus/nisplus-publickey.c: Likewise.
5985 * nis/nis_print_group_entry.c: Likewise.
5986 * locale/programs/repertoire.c: Likewise.
5987 * locale/programs/charmap.c: Likewise.
5988 * malloc/memusage.sh: Likewise.
5989 * elf/dl-deps.c: Likewise.
5990 * locale/programs/ld-collate.c: Likewise.
5991 * libio/vswprintf.c: Likewise.
5992 * malloc/memusagestat.c: Likewise.
5993 * sunrpc/auth_unix.c: Likewise.
5994 * sunrpc/rpc_main.c: Likewise.
5995 * nscd/cache.c: Likewise.
5996 * locale/programs/repertoire.c: Unify output messages.
5997 * locale/programs/charmap.c: Likewise.
5998 * locale/programs/ld-ctype.c: Likewise.
5999 * locale/programs/ld-monetary.c: Likewise.
6000 * locale/programs/ld-numeric.c: Likewise.
6001 * locale/programs/ld-time.c: Likewise.
6002 * elf/ldconfig.c: Likewise.
6003 * nscd/selinux.c: Likewise.
6004 * elf/cache.c: Likewise.
6005 Patch mostly by Benno Schulenberg <bensberg@justemail.net>.
6006
5c2af134
UD
6007 [BZ #3451]
6008 * sysdeps/i386/fpu/bits/mathinline.h (floor): Make rounding mode
6009 change atomic.
6010 (ceil): Likewise.
6011
11bf311e
UD
60122006-11-10 Jakub Jelinek <jakub@redhat.com>
6013
6014 * string/strxfrm_l.c (STRXFRM): Fix trailing \1 optimization
6015 if N is one bigger than return value.
6016 * string/tst-strxfrm2.c (do_test): Also test strxfrm with l1 + 1
6017 and l1 last arguments, if buf is defined, verify the return value
6018 equals to strlen (buf) and verify no byte beyond passed length
6019 is modified.
6020
60212006-11-10 Ulrich Drepper <drepper@redhat.com>
6022
6023 * po/sv.po: Update from translation team.
6024
37afcf79
UD
60252006-11-09 Ulrich Drepper <drepper@redhat.com>
6026
6027 * sysdeps/unix/sysv/linux/x86_64/sysconf.c (intel_check_word): Add
6028 noinline attribute.
6029
60302006-11-10 Jakub Jelinek <jakub@redhat.com>
6031
6032 * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Add
6033 noinline attribute.
6034
11bf311e
UD
6035 * sysdeps/gnu/siglist.c (__old_sys_siglist, __old_sys_sigabbrev):
6036 Use __new_sys_siglist instead of _sys_siglist_internal as
6037 second macro argument.
6038 (_old_sys_siglist): Use declare_symbol_alias macro instead of
6039 strong_alias.
2692deea 6040
11bf311e
UD
60412006-11-09 Ulrich Drepper <drepper@redhat.com>
6042
6043 [BZ #3493]
6044 * posix/unistd.h (sysconf): Remove const attribute.
6045
6046 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Fix test for
6047 temporary or deprecated addresses.
6048 Patch by Sridhar Samudrala <sri@us.ibm.com>.
6049
6050 * string/Makefile (tests): Add tst-strxfrm2.
6051 * string/tst-strxfrm2.c: New file.
6052
60532006-10-09 Jakub Jelinek <jakub@redhat.com>
6054
6055 * elf/dl-debug.c (_dl_debug_initialize): Check r->r_map for 0
6056 rather than r->r_brk.
2692deea
UD
6057
60582006-11-08 Jakub Jelinek <jakub@redhat.com>
6059
11bf311e
UD
6060 * string/strxfrm_l.c (STRXFRM): Do the trailing \1 removal
6061 optimization even if needed > n.
6062
2692deea
UD
6063 * elf/dl-load.c (decompose_rpath): Return bool rather than void.
6064 If l->l_name is on inhibit_rpath list, set sps->dirs to -1 and
6065 return false, otherwise return true.
6066 (cache_rpath): Return decompose_rpath return value.
6067
11bf311e
UD
60682006-11-07 Jakub Jelinek <jakub@redhat.com>
6069
6070 * include/libc-symbols.h (declare_symbol): Rename to...
6071 (declare_symbol_alias): ... this. Add ORIGINAL argument, imply
6072 strong_alias (ORIGINAL, SYMBOL) in asm to make sure it preceedes
6073 .size directive.
6074 * sysdeps/gnu/errlist-compat.awk: Adjust for declare_symbol_alias
6075 changes.
6076 * sysdeps/gnu/siglist.c: Likewise.
6077
60782006-11-03 Steven Munroe <sjmunroe@us.ibm.com>
6079
6080 * sysdeps/powerpc/fpu/bits/mathinline.h
6081 [__LIBC_INTERNAL_MATH_INLINES]: Moved to ...
6082 * sysdeps/powerpc/fpu/math_private.h: ...here. New file.
6083
60842006-11-05 Ulrich Drepper <drepper@redhat.com>
6085
6086 * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
6087 Update handling of cache descriptor 0x49 for new models.
6088 * sysdeps/unix/sysv/linux/x86_64/sysconf.c (intel_check_word):
6089 Likewise.
6090
9666e36c
UD
60912006-11-02 Jakub Jelinek <jakub@redhat.com>
6092
6093 * malloc/memusage.c (dest): Reset not_me back to false after
6094 printing statistics.
6095
11bf311e
UD
60962006-11-02 Ulrich Drepper <drepper@redhat.com>
6097
6098 * configure.in: Work around ld --help change and avoid -z relro
6099 test completely if the architecture doesn't care about security.
6100
61012006-11-01 Ulrich Drepper <drepper@redhat.com>
6102
6103 * po/sv.po: Update from translation team.
6104
61052006-10-31 Ulrich Drepper <drepper@redhat.com>
6106
6107 * stdlib/atexit.c (atexit): Don't mark as hidden when used to
6108 generate compatibility version.
6109
61102006-10-29 Ulrich Drepper <drepper@redhat.com>
6111
6112 * configure.in: Relax -z relro requirement a bit.
6113
6114 * po/sv.po: Update from translation team.
6115
61162006-10-29 Jakub Jelinek <jakub@redhat.com>
6117
6118 * elf/dl-sym.c (do_sym): Use RTLD_SINGLE_THREAD_P.
6119 * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Likewise.
6120 * elf/dl-close.c (_dl_close_worker): Likewise.
6121 * elf/dl-open.c (_dl_open_worker): Likewise.
6122 * sysdeps/generic/sysdep-cancel.h (RTLD_SINGLE_THREAD_P): Define.
6123
b2369ca3
UD
61242006-10-27 Ulrich Drepper <drepper@redhat.com>
6125
11bf311e
UD
6126 * configure.in: Require assembler support for visibility, compiler
6127 support for visibility and aliases, linker support for various -z
6128 options.
6129 * Makeconfig: Remove conditional code which now is unnecessary.
6130 * config.h.in: Likewise.
6131 * config.make.in: Likewise.
6132 * dlfcn/Makefile: Likewise.
6133 * elf/Makefile: Likewise.
6134 * elf/dl-load.c: Likewise.
6135 * elf/rtld.c: Likewise.
6136 * include/libc-symbols.h: Likewise.
6137 * include/stdio.h: Likewise.
6138 * io/Makefile: Likewise.
6139 * io/fstat.c: Likewise.
6140 * io/fstat64.c: Likewise.
6141 * io/fstatat.c: Likewise.
6142 * io/fstatat64.c: Likewise.
6143 * io/lstat.c: Likewise.
6144 * io/lstat64.c: Likewise.
6145 * io/mknod.c: Likewise.
6146 * io/mknodat.c: Likewise.
6147 * io/stat.c: Likewise.
6148 * io/stat64.c: Likewise.
6149 * libio/stdio.c: Likewise.
6150 * nscd/Makefile: Likewise.
6151 * stdlib/Makefile: Likewise.
6152 * stdlib/atexit.c: Likewise.
6153 * sysdeps/generic/ldsodefs.h: Likewise.
6154 * sysdeps/i386/dl-machine.h: Likewise.
6155 * sysdeps/i386/sysdep.h: Likewise.
6156 * sysdeps/i386/i686/memcmp.S: Likewise.
6157 * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
6158 * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
6159 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
6160
6161 * Makerules: USE_TLS support is now default.
6162 * tls.make.c: Likewise.
6163 * csu/Versions: Likewise.
6164 * csu/libc-start.c: Likewise.
6165 * csu/libc-tls.c: Likewise.
6166 * csu/version.c: Likewise.
6167 * dlfcn/dlinfo.c: Likewise.
6168 * elf/dl-addr.c: Likewise.
6169 * elf/dl-cache.c: Likewise.
6170 * elf/dl-close.c: Likewise.
6171 * elf/dl-iteratephdr.c: Likewise.
6172 * elf/dl-load.c: Likewise.
6173 * elf/dl-lookup.c: Likewise.
6174 * elf/dl-object.c: Likewise.
6175 * elf/dl-open.c: Likewise.
6176 * elf/dl-reloc.c: Likewise.
6177 * elf/dl-support.c: Likewise.
6178 * elf/dl-sym.c: Likewise.
6179 * elf/dl-sysdep.c: Likewise.
6180 * elf/dl-tls.c: Likewise.
6181 * elf/ldconfig.c: Likewise.
6182 * elf/rtld.c: Likewise.
6183 * elf/tst-tls-dlinfo.c: Likewise.
6184 * elf/tst-tls1.c: Likewise.
6185 * elf/tst-tls10.h: Likewise.
6186 * elf/tst-tls14.c: Likewise.
6187 * elf/tst-tls2.c: Likewise.
6188 * elf/tst-tls3.c: Likewise.
6189 * elf/tst-tls4.c: Likewise.
6190 * elf/tst-tls5.c: Likewise.
6191 * elf/tst-tls6.c: Likewise.
6192 * elf/tst-tls7.c: Likewise.
6193 * elf/tst-tls8.c: Likewise.
6194 * elf/tst-tls9.c: Likewise.
6195 * elf/tst-tlsmod1.c: Likewise.
6196 * elf/tst-tlsmod13.c: Likewise.
6197 * elf/tst-tlsmod13a.c: Likewise.
6198 * elf/tst-tlsmod14a.c: Likewise.
6199 * elf/tst-tlsmod2.c: Likewise.
6200 * elf/tst-tlsmod3.c: Likewise.
6201 * elf/tst-tlsmod4.c: Likewise.
6202 * elf/tst-tlsmod5.c: Likewise.
6203 * elf/tst-tlsmod6.c: Likewise.
6204 * include/errno.h: Likewise.
6205 * include/link.h: Likewise.
6206 * include/tls.h: Likewise.
6207 * locale/global-locale.c: Likewise.
6208 * locale/localeinfo.h: Likewise.
6209 * malloc/arena.c: Likewise.
6210 * malloc/hooks.c: Likewise.
6211 * malloc/malloc.c: Likewise.
6212 * resolv/Versions: Likewise.
6213 * sysdeps/alpha/dl-machine.h: Likewise.
6214 * sysdeps/alpha/libc-tls.c: Likewise.
6215 * sysdeps/generic/ldsodefs.h: Likewise.
6216 * sysdeps/generic/tls.h: Likewise.
6217 * sysdeps/i386/dl-machine.h: Likewise.
6218 * sysdeps/ia64/dl-machine.h: Likewise.
6219 * sysdeps/ia64/libc-tls.c: Likewise.
6220 * sysdeps/mach/hurd/fork.c: Likewise.
6221 * sysdeps/mach/hurd/i386/tls.h: Likewise.
6222 * sysdeps/powerpc/powerpc32/dl-machine.c: Likwise.
6223 * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
6224 * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
6225 * sysdeps/s390/libc-tls.c: Likewise.
6226 * sysdeps/s390/s390-32/dl-machine.h: Likewise.
6227 * sysdeps/s390/s390-64/dl-machine.h: Likewise.
6228 * sysdeps/sh/dl-machine.h: Likewise.
6229 * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
6230 * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
6231 * sysdeps/x86_64/dl-machine.h: Likewise.
6232
131c4428
UD
6233 * elf/dl-close.c (_dl_close_worker): Renamed from _dl_close and
6234 split out locking and parameter checking.
6235 (_dl_close): Call _dl_close_worker after locking and checking.
6236 * elf/dl-open.c (_dl_open): Call _dl_close_worker instead of
6237 _dl_close.
ffd0e1b7
UD
6238 * elf/Makefile: Add rules to build and run tst-thrlock.
6239 * elf/tst-thrlock.c: New file.
131c4428 6240
11bf311e
UD
6241 [BZ #3426]
6242 * stdlib/stdlib.h: Adjust comment for canonicalize_file_name to
6243 reality.
6244
b2369ca3
UD
6245 [BZ #3429]
6246 * elf/dl-open.c (dl_open_worker): Keep holding dl_load_lock until
131c4428 6247 we are sure we do not need it anymore for _dl_close. Also move
b2369ca3
UD
6248 the asserts inside the lock region.
6249 Patch mostly by Suzuki <suzuki@in.ibm.com>.
6250
11bf311e
UD
62512006-10-27 Jakub Jelinek <jakub@redhat.com>
6252
6253 * elf/dl-lookup.c (_dl_debug_bindings): Remove unused symbol_scope
6254 argument.
6255 (_dl_lookup_symbol_x): Adjust caller.
6256
6257 * sysdeps/generic/ldsodefs.h (struct link_namespaces): Remove
6258 _ns_global_scope.
6259 * elf/rtld.c (dl_main): Don't initialize _ns_global_scope.
6260
6261 * elf/dl-libc.c: Revert l_scope name changes.
6262 * elf/dl-load.c: Likewise.
6263 * elf/dl-object.c: Likewise.
6264 * elf/rtld.c: Likewise.
6265 * elf/dl-close.c (_dl_close): Likewise.
6266 * elf/dl-open.c (dl_open_worker): Likewise. If not SINGLE_THREAD_P,
6267 always use __rtld_mrlock_{change,done}. Always free old scope list
6268 here if not l_scope_mem.
6269 * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Revert l_scope name
6270 change. Never free scope list here. Just __rtld_mrlock_lock before
6271 the lookup and __rtld_mrlock_unlock it after the lookup.
6272 * elf/dl-sym.c: Likewise.
6273 * include/link.h (struct r_scoperec): Remove.
6274 (struct link_map): Replace l_scoperec with l_scope, l_scoperec_mem
6275 with l_scope_mem and l_scoperec_lock with l_scope_lock.
6276
62772006-10-25 Ulrich Drepper <drepper@redhat.com>
6278
6279 * sysdeps/gnu/netinet/tcp.h: Define TCP_CONGESTION.
6280
62812006-10-18 Ulrich Drepper <drepper@redhat.com>
6282
6283 * configure.in: Disable building profile libraries by default.
6284
609cf614
UD
62852006-10-17 Jakub Jelinek <jakub@redhat.com>
6286
6287 * sunrpc/xdr_mem.c (xdrmem_setpos): Don't compare addresses
6288 as signed longs, check for x_base + pos overflow.
6289 * sunrpc/Makefile (tests): Add tst-xdrmem2.
6290 * sunrpc/tst-xdrmem2.c: New test.
6291
11bf311e
UD
62922006-10-18 Ulrich Drepper <drepper@redhat.com>
6293
6294 * elf/dl-lookup.c (_dl_lookup_symbol_x): Add warning to
6295 _dl_lookup_symbol_x code.
6296
62972006-10-17 Jakub Jelinek <jakub@redhat.com>
6298
6299 * elf/dl-runtime.c: Include sysdep-cancel.h.
6300 (_dl_fixup, _dl_profile_fixup): Use __rtld_mrlock_* and
6301 scoperec->nusers only if !SINGLE_THREAD_P. Use atomic_*
6302 instead of catomic_* macros.
6303 * elf/dl-sym.c: Include sysdep-cancel.h.
6304 (do_sym): Use __rtld_mrlock_* and scoperec->nusers only
6305 if !SINGLE_THREAD_P. Use atomic_* instead of catomic_* macros.
6306 * elf/dl-close.c: Include sysdep-cancel.h.
6307 (_dl_close): Use __rtld_mrlock_* and scoperec->nusers only
6308 if !SINGLE_THREAD_P. Use atomic_* instead of catomic_* macros.
6309 * elf/dl-open.c: Include sysdep-cancel.h.
6310 (dl_open_worker): Use __rtld_mrlock_* and scoperec->nusers only
6311 if !SINGLE_THREAD_P. Use atomic_* instead of catomic_* macros.
6312
63132006-10-17 Jakub Jelinek <jakub@redhat.com>
6314
6315 [BZ #3313]
6316 * malloc/malloc.c (malloc_consolidate): Set maxfb to address of last
6317 fastbin rather than end of fastbin array.
6318
63192006-10-18 Ulrich Drepper <drepper@redhat.com>
6320
6321 * sysdeps/i386/i486/bits/atomic.h (catomic_decrement): Use correct
6322 body macro.
6323 * sysdeps/x86_64/bits/atomic.h
6324 (__arch_c_compare_and_exchange_val_64_acq): Add missing casts.
6325 (catomic_decrement): Use correct body macro.
6326
63272006-10-17 Jakub Jelinek <jakub@redhat.com>
6328
6329 * include/atomic.h: Add a unique prefix to all local variables
6330 in macros.
6331 * csu/tst-atomic.c (do_test): Test also catomic_* macros.
6332
4a85a8ee
UD
63332006-10-16 Ulrich Drepper <drepper@redhat.com>
6334
6335 [BZ #3369]
6336 * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Fix typos in rules 4
6337 and 7.
6338
11bf311e
UD
63392006-10-14 Ulrich Drepper <drepper@redhat.com>
6340
6341 * resolv/arpa/nameser.h: Document that ns_t_a6 is deprecated.
6342
ff8d96be
UD
63432006-10-13 Ulrich Drepper <drepper@redhat.com>
6344
11bf311e
UD
6345 [BZ #3313]
6346 * malloc/malloc.c (malloc_consolidate): Don't use get_fast_max to
6347 determine highest fast bin to consolidate, always look into all of
6348 them.
6349 (do_check_malloc_state): Only require for empty bins for large
6350 sizes in main arena.
6351
6352 * libio/stdio.h: Add more __wur attributes.
6353
ff8d96be
UD
6354 * elf/dl-minimal.c (realloc): Optimize last patch.
6355
90a0991a
UD
63562006-10-12 Richard Sandiford <richard@codesourcery.com>
6357
6358 [BZ #3352]
6359 * elf/dl-minimal.c (realloc): Let malloc() return a new pointer,
6360 and use memcpy() if it does.
ff8d96be 6361
11bf311e
UD
63622006-11-12 Andreas Jaeger <aj@suse.de>
6363
6364 [BZ #2510]
6365 * manual/search.texi (Hash Search Function): Clarify.
6366 (Array Search Function): Clarify.
6367
63682006-11-12 Joseph Myers <joseph@codesourcery.com>
6369
6370 [BZ #2830]
6371 * math/atest-exp.c (main): Cast hex value to mp_limb_t before
6372 shifting.
6373 * math/atest-exp2.c (read_mpn_hex): Likewise.
6374 * math/atest-sincos.c (main): Likewise.
6375
37fb7595
UD
63762006-10-11 Ulrich Drepper <drepper@redhat.com>
6377
11bf311e
UD
6378 * sysdeps/unix/sysv/linux/syscalls.list: Add epoll_pwait.
6379 * sysdeps/unix/sysv/linux/sys/epoll.h: Declare epoll_pwait.
6380 * sysdeps/unix/sysv/linux/Versions (libc): Add epoll_pwait for
6381 version GLIBC_2.6.
6382 * Versions.def: Add GLIBC_2.6 for libc.
6383
46c38bd7
UD
6384 * sysdeps/unix/sysv/linux/i386/sysdep.h (DOARGS_6): Fix offset.
6385
11bf311e
UD
6386 * sysdeps/i386/i486/bits/atomic.h: Add catomic_* support.
6387
63882006-10-11 Jakub Jelinek <jakub@redhat.com>
6389
6390 * malloc/malloc.c (_int_malloc): Remove unused any_larger variable.
6391
6392 * nis/nis_defaults.c (__nis_default_access): Don't call getenv twice.
6393
6394 * nis/nis_subr.c (nis_getnames): Use __secure_getenv instead of getenv.
6395 * sysdeps/generic/unsecvars.h: Add NIS_PATH.
6396
63972006-10-11 Ulrich Drepper <drepper@redhat.com>
6398
6399 * include/atomic.c: Define catomic_* operations.
6400 * sysdeps/x86_64/bits/atomic.h: Likewise. Fix a few minor problems.
6401 * stdlib/cxa_finalize.c: Use catomic_* operations instead of atomic_*.
6402 * malloc/memusage.c: Likewise.
6403 * gmon/mcount.c: Likewise.
6404 * elf/dl-close.c: Likewise.
6405 * elf/dl-open.c: Likewise.
6406 * elf/dl-profile.c: Likewise.
6407 * elf/dl-sym.c: Likewise.
6408 * elf/dl-runtime.c: Likewise.
6409 * elf/dl-fptr.c: Likewise.
6410 * resolv/res_libc.c: Likewise.
6411
2a6ee549
UD
64122006-10-10 Ulrich Drepper <drepper@redhat.com>
6413
6414 * nis/nis_subr.c (nis_getnames): Add trailing dot to NIS_PATH
6415 components which lack them.
6416
6417 * nis/nis_subr.c (nis_getnames): Make sure that we always return
6418 at least one entry consisting of the parameter concatenated with
6419 the domain.
6420
11bf311e 64212006-10-10 Roland McGrath <roland@frob.com>
c4f9fc3a 6422
11bf311e
UD
6423 * sysdeps/mach/hurd/utimes.c: Use a union to avoid an improper cast.
6424 * sysdeps/mach/hurd/futimes.c: Likewise.
6425 * sysdeps/mach/hurd/lutimes.c: Likewise.
6426
64272006-10-09 Ulrich Drepper <drepper@redhat.com>
6428 Jakub Jelinek <jakub@redhat.com>
6429
6430 Implement reference counting of scope records.
6431 * elf/dl-close.c (_dl_close): Remove all scopes from removed objects
6432 from the list in objects which remain. Always allocate new scope
6433 record.
6434 * elf/dl-open.c (dl_open_worker): When growing array for scopes,
6435 don't resize, allocate a new one.
6436 * elf/dl-runtime.c: Update reference counters before using a scope
6437 array.
6438 * elf/dl-sym.c: Likewise.
6439 * elf/dl-libc.c: Adjust for l_scope name change.
6440 * elf/dl-load.c: Likewise.
6441 * elf/dl-object.c: Likewise.
6442 * elf/rtld.c: Likewise.
6443 * include/link.h: Include <rtld-lowlevel.h>. Define struct
6444 r_scoperec. Replace r_scope with pointer to r_scoperec structure.
6445 Add l_scoperec_lock.
6446 * sysdeps/generic/ldsodefs.h: Include <rtld-lowlevel.h>.
6447 * sysdeps/generic/rtld-lowlevel.h: New file.
6448
6449 * include/atomic.h: Rename atomic_and to atomic_and_val and
6450 atomic_or to atomic_or_val. Define new macros atomic_and and
6451 atomic_or which do not return values.
6452 * sysdeps/x86_64/bits/atomic.h: Define atomic_and and atomic_or.
6453 Various cleanups.
6454 * sysdeps/i386/i486/bits/atomic.h: Likewise.
6455
6456 * po/sv.po: Update from translation team.
6457
64582006-10-07 Ulrich Drepper <drepper@redhat.com>
6459
6460 * Versions.def: Add GLIBC_2.6 to libpthread.
6461
6462 * include/shlib-compat.h (SHLIB_COMPAT): Expand parameters before use.
6463 (versioned_symbol): Likewise.
6464 (compat_symbol): Likewise.
6465
6466 * po/tr.po: Update from translation team.
feb87ad1 6467
4df92d57
UD
64682006-10-06 Ulrich Drepper <drepper@redhat.com>
6469
11bf311e
UD
6470 * nis/Banner: Removed. It's been integral part forever and the
6471 author info is incomplete anyway.
6472 * libio/Banner: Likewise.
6473
4df92d57
UD
6474 * nis/nis_table.c (nis_list): If __follow_path fails in the new
6475 code, make sure the nis_freeresult call doesn't crash and that the
6476 result is reported correctly.
6477
68361572
UD
64782006-09-27 Jakub Jelinek <jakub@redhat.com>
6479
6480 * nis/nis_table.c (nis_list): Handle FOLLOW_PATH | ALL_RESULTS
6481 when callback is NULL.
6482
6483 * nis/Versions (libnss_nisplus): Add
6484 _nss_nisplus_initgroups_dyn@@GLIBC_PRIVATE.
6485 * nis/Makefile (libnss_nisplus-routines): Add nisplus-initgroups.
6486 * nis/nss_nisplus/nisplus-grp.c (tablename_val, tablename_len,
6487 _nss_create_tablename): Rename to...
6488 (grp_tablename_val, grp_tablename_len, _nss_grp_create_tablename):
6489 ... these. No longer static.
6490 (internal_setgrent): Adjust users.
6491 (_nss_nisplus_getgrnam_r, _nss_nisplus_getgrgid_r): Likewise.
6492 Don't use locking around _nss_grp_create_tablename call.
6493 * nis/nss_nisplus/nisplus-initgroups.c: New file.
6494
11bf311e
UD
64952006-10-06 Ulrich Drepper <drepper@redhat.com>
6496
6497 * version.h (VERSION): Bump to 2.5.90 for new development tree.
6498
3a4e0609
UD
64992006-10-06 Andreas Jaeger <aj@suse.de>
6500
6501 * include/features.h (__GLIBC_MINOR__): It's glibc 2.5 now.
6502
65032006-10-06 Ulrich Drepper <drepper@redhat.com>
6504
6505 * po/pl.po: Update from translation team.
6506
6507 * nscd/nscd.c (main): Fix typo in message.
6508 Patch by Jakub Bogsz <qboosh@pld-linux.org>.
6509
97e57dee
UD
65102006-10-02 Jakub Jelinek <jakub@redhat.com>
6511
6512 [BZ #3291]
6513 * sysdeps/unix/sysv/linux/sparc/sparc64/pause.c: Include
6514 errno.h, signal.h, unistd.h and sysdep-cancel.h.
6515 (__sigprocmask): Define.
6516
768027a4
UD
65172006-10-02 Ulrich Drepper <drepper@redhat.com>
6518
6519 * elf/rtld.c (dl_main): Don't use prelinking if LD_DYNAMIC_WEAK is
6520 used.
6521
0b25a49a
UD
65222006-10-02 Jakub Jelinek <jakub@redhat.com>
6523
6524 * nscd/mem.c (mempool_alloc): Round array size to 16 bytes
6525 in oldtotal and newtotal calculation.
6526 * nscd/nscd-client.h (struct mapped_database): Add datasize
6527 field.
6528 * nscd/nscd_helper.c (get_mapping): Initialize datasize field.
6529 (__nscd_get_map_ref): Get a new mapping even if mapping's data_size
6530 increased.
6531 (__nscd_cache_search): Add checks to make sure we never reference
6532 data beyond the current mapping.
6533
a1286745
UD
65342006-10-02 Dmitry V. Levin <ldv@altlinux.org>
6535
d4ed7561
UD
6536 * sysdeps/posix/getaddrinfo.c (match_prefix): Make mask and val
6537 variables const to avoid compiler warnings.
6538
a1286745
UD
6539 * io/fts.c (fts_close): Remove redundant checks.
6540 (fts_build): Likewise.
6541 (fts_palloc): Likewise.
6542
6543 * manual/message.texi (Advanced gettext functions,
6544 Using gettextized software): Fix typos.
6545
f01e4069
UD
65462006-09-30 Ulrich Drepper <drepper@redhat.com>
6547
6548 * posix/glob.c (glob_in_dir): Add some comments and asserts to
6549 explain why there are no leaks.
6550
154619b5
UD
65512006-09-29 Ulrich Drepper <drepper@redhat.com>
6552
690c3947
UD
6553 * libio/wmemstream.c: Include <wchar.h>.
6554 * libio/bug-wmemstream1.c: Likewise.
6555 * libio/tst-wmemstream1.c: Likewise.
6556 * libio/tst-wmemstream2.c: Likewise.
6557
88cc61e8
UD
6558 * version.h (RELEASE): Bump to 2.5.
6559 * README: Regenerated.
6560
a70c18b0
UD
6561 * locale/iso-3166.def: Add Aaland Islands and Montenegro.
6562
154619b5
UD
6563 [BZ #3273]
6564 * nscd/nscd_initgroups.c (__nscd_getgrouplist): It is OK to have
6565 found no group members.
6566 Patch by Petr Baudis.
6567
65682006-09-29 Jakub Jelinek <jakub@redhat.com>
6569
6570 * elf/rtld.c (_dl_start_final): If not USE___THREAD, don't
6571 assert bootstrap_map.l_tls_modid is zero.
6572 (_dl_start): Initialize bootstrap_map.l_tls_modid to 0
6573 if USE___THREAD.
6574
1c31aa79
UD
65752006-09-27 Ulrich Drepper <drepper@redhat.com>
6576
6577 * libio/stdio.h: Move open_wmemstream prototype to ...
6578 * wcsmbs/wchar.h: ... here.
6579
f1122ec3
UD
65802006-09-25 Jakub Jelinek <jakub@redhat.com>
6581
6582 [BZ #3252]
6583 * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat): Handle only
6584 fchownat syscall and __ASSUME_LCHOWN_SYSCALL case inline, call
6585 __{,l}chown to handle the rest.
6586 * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Handle only
6587 fchownat syscall and __ASSUME_32BITUIDS case inline, call
6588 __{,l}chown to handle the rest.
6589 * sysdeps/unix/sysv/linux/sparc/sparc32/fchownat.c: Include
6590 i386/fchownat.c.
6591 * sysdeps/unix/sysv/linux/s390/s390-32/fchownat.c: Likewise.
6592 * sysdeps/unix/sysv/linux/sh/fchownat.c: Likewise.
6593
6594 [BZ #3253]
6595 * posix/glob.c (glob_in_dir): Don't alloca one struct globlink at a
6596 time, rather allocate increasingly bigger arrays of pointers, if
6597 possible with alloca, if too large with malloc.
6598
65992006-09-24 Jakub Jelinek <jakub@redhat.com>
6600
6601 * sysdeps/powerpc/fpu/libm-test-ulps: Updated.
6602
6603 * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Fix 2 typos.
6604
457b559e
UD
66052006-09-24 Ulrich Drepper <drepper@redhat.com>
6606
6607 * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Implement rule 4,
6608 home addresses.
6609 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Recognize
6610 IFA_F_HOMEADDRESS flag for interfaces.
6611 * include/ifaddrs.h (struct in6addrinfo): Define
6612 in6ai_homeaddress.
6613
4a132246
UD
66142006-09-21 Jakub Jelinek <jakub@redhat.com>
6615
6616 [BZ #3225]
6617 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (PTR_MANGLE3,
6618 PTR_DEMANGLE3): Define.
6619 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h (PTR_MANGLE3,
6620 PTR_DEMANGLE3): Likewise.
6621 * sysdeps/powerpc/powerpc32/__longjmp-common.S (__longjmp): Use them.
6622 * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp):
6623 Likewise.
6624 * sysdeps/powerpc/powerpc64/__longjmp-common.S (__longjmp): Likewise.
6625
c69136ae
UD
66262006-09-20 Jakub Jelinek <jakub@redhat.com>
6627
6628 * po/libc.pot: Regenerated.
6629 * po/be.po: Updated.
6630 * po/ca.po: Likewise.
6631 * po/cs.po: Likewise.
6632 * po/da.po: Likewise.
6633 * po/de.po: Likewise.
6634 * po/el.po: Likewise.
6635 * po/en_GB.po: Likewise.
6636 * po/es.po: Likewise.
6637 * po/fi.po: Likewise.
6638 * po/fr.po: Likewise.
6639 * po/gl.po: Likewise.
6640 * po/hr.po: Likewise.
6641 * po/hu.po: Likewise.
6642 * po/ja.po: Likewise.
6643 * po/ko.po: Likewise.
6644 * po/nb.po: Likewise.
6645 * po/nl.po: Likewise.
6646 * po/pl.po: Likewise.
6647 * po/pt_BR.po: Likewise.
6648 * po/ru.po: Likewise.
6649 * po/rw.po: Likewise.
6650 * po/sk.po: Likewise.
6651 * po/sv.po: Likewise.
6652 * po/tr.po: Likewise.
6653 * po/zh_CN.po: Likewise.
6654 * po/zh_TW.po: Likewise.
6655
6656 [BZ #3137]
6657 * iconv/iconv_prog.c (main): Fix spelling in error message.
6658 * iconv/iconvconfig.c (main): Likewise.
6659 * locale/programs/ld-collate.c (handle_ellipsis): Likewise.
6660 * locale/programs/ld-ctype.c (charclass_symbolic_ellipsis): Likewise.
6661 * locale/programs/localedef.c (main): Likewise.
6662 * locale/programs/repertoire.c (repertoire_read): Likewise.
6663 * timezone/zdump.c (main): Likewise.
6664 * nscd/connections.c (handle_request): Fix spelling in log message.
6665 Patch by Malcolm Parsons <malcolm.parsons@gmail.com>.
6666
83b3108c
UD
66672006-09-20 Ulrich Drepper <drepper@redhat.com>
6668
6669 * inet/inet6_option.c: Also emit linker warnings for the RFC 2292
6670 interfaces.
6671
89210b4c
AJ
66722006-09-20 Andreas Jaeger <aj@suse.de>
6673
6674 * math/libm-test.inc (lrint_test_upward): Fix typo.
6675
6624dbc0
UD
66762006-06-17 Joseph S. Myers <joseph@codesourcery.com>
6677
6678 [BZ #2592]
6679 * math/libm-test.inc (lrint_test_tonearest): New function.
6680 (lrint_test_towardzero): New function.
6681 (lrint_test_downward): New function.
6682 (lrint_test_upward): New function.
6683 (main): Run these new tests.
6684 * sysdeps/ieee754/dbl-64/s_llrint.c (__llrint): Correct rounding
6685 of values near to 0.
6686 (two52): Use double not long double.
6687 * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Likewise.
6688 * sysdeps/ieee754/flt-32/s_llrintf.c (__llrintf): Likewise.
6689 (two23): Use float not double.
6690 * sysdeps/ieee754/flt-32/s_lrintf.c (__lrintf): Likewise.
6691 (two23): Use float not double.
6692 * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl): Likewise.
6693 * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Likewise.
6694 * sysdeps/ieee754/ldbl-96/s_llrintl.c (__llrintl): Likewise.
6695 * sysdeps/ieee754/ldbl-96/s_lrintl.c (__lrintl): Likewise.
6696
60cb50c7
UD
66972006-09-20 Martin Schwidefsky <schwidefsky@de.ibm.com>
6698
6699 * sysdeps/unix/sysv/linux/s390/s390-32/makecontext.c (__makecontext):
6700 Cast sp to unsigned long to avoid compiler warning.
6701 Use __makecontext_ret function instead of a trampoline on the stack.
6702 (__makecontext_ret): New function.
6703 * sysdeps/unix/sysv/linux/s390/s390-64/makecontext.c: Likewise.
6704
33315ced
UD
67052006-09-19 Jakub Jelinek <jakub@redhat.com>
6706
6707 * elf/dl-cache.c (HWCAP_CHECK): If _DL_PLATFORMS_COUNT, but
6708 platform == -1, reject any libs with non-zero _DL_HWCAP_PLATFORM
6709 bits.
6710
1ee2ff20
UD
67112006-09-19 Ulrich Drepper <drepper@redhat.com>
6712
6713 * elf/dl-close.c (_dl_close): If dependency is not unloaded make
6714 sure no reference to the unloaded map's search list remains in the
6715 dependency's scope.
6716
67172006-09-16 Jakub Jelinek <jakub@redhat.com>
6718
6719 * elf/Makefile: Add rules to build and run unload7 test.
6720 * elf/unload7.c: New test.
6721 * elf/unload7mod1.c: New file.
6722 * elf/unload7mod2.c: New file.
6723
0466106e
UD
67242006-09-18 Jakub Jelinek <jakub@redhat.com>
6725
6726 * sysdeps/unix/sysv/linux/sys/ptrace.h (PT_GETEVENTMSG): Fix pasto.
6727 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h (PTRACE_SETOPTIONS,
6728 PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
6729 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h (PTRACE_SETOPTIONS,
6730 PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Likewise.
6731 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h (PTRACE_SETOPTIONS,
6732 PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Likewise.
6733 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h (PTRACE_SETOPTIONS,
6734 PTRACE_GETEVENTMSG): Likewise.
6735 (PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Change to the arch independent
6736 values.
6737
9c316a45
UD
67382006-09-17 Mike Frysinger <vapier@gentoo.org>
6739
0466106e
UD
6740 * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_SETOPTIONS,
6741 PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
6742 * sysdeps/unix/sysv/linux/ptrace.c (ptrace): Check PTRACE_SETOPTIONS,
6743 PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO and PTRACE_SETSIGINFO.
9c316a45
UD
6744
67452006-09-16 Jakub Jelinek <jakub@redhat.com>
6746
6747 * sysdeps/powerpc/powerpc32/register-dump.h (register_dump): Don't
6748 write '\0' to the fd.
6749 * sysdeps/mach/hurd/powerpc/register-dump.h (register_dump): Likewise.
6750 * sysdeps/powerpc/powerpc64/register-dump.h (register_dump): Likewise.
6751 Change regs to unsigned long pointer from unsigned int, fix fscr
6752 offset.
6753
fb146a76
UD
67542006-09-14 Jakub Jelinek <jakub@redhat.com>
6755
6756 * io/Makefile (CFLAGS-fstatat.c): Set.
6757 (CFLAGS-fstatat64.c): Likewise.
6758 (CFLAGS-mknodat.c): Likewise.
6759
6760 * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Comment fixes.
6761 * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
6762 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Rewritten.
6763 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Rewritten.
6764
4cd3633d
UD
67652006-09-14 Jakub Jelinek <jakub@redhat.com>
6766 Steven Munroe <sjmunroe@us.ibm.com>
fb146a76 6767
4cd3633d
UD
6768 * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add 4 new cap
6769 names to the beginning. Rename "cell" to "cellbe".
6770 (_dl_powerpc_platforms): New.
6771 * sysdeps/powerpc/dl-procinfo.h (_DL_HWCAP_FIRST): Decrease.
6772 (HWCAP_IMPORTANT): Remove power{4,5,5+} and cell.
6773 (_DL_PLATFORMS_COUNT, _DL_FIRST_PLATFORM): Define.
6774 (_DL_HWCAP_PLATFORM): Define to new mask.
6775 (_dl_platform_string, _dl_string_platform): New functions.
6776 * sysdeps/powerpc/sysdep.h (PPC_FEATURE_BOOKE, PPC_FEATURE_SMT,
6777 PPC_FEATURE_ICACHE_SNOOP, PPC_FEATURE_ARCH_2_05): Define.
6778
30aa5785
UD
67792006-09-12 Jakub Jelinek <jakub@redhat.com>
6780
6781 [BZ #2526]
6782 * README.libm: Fix a thinko in sqrt algorithm description.
6783
6784 [BZ #3143]
6785 * manual/string.texi (argz_delete): Fix prototype.
6786 Patch by <alpt@freaknet.org>.
6787
67882006-08-26 Joseph Myers <joseph@codesourcery.com>
6789
6790 [BZ #3138]
6791 * io/test-lfs.c (do_prepare): Give name_len type size_t.
6792 * io/tst-fcntl.c (do_prepare): Likewise.
6793 * posix/tst-exec.c (do_prepare): Likewise.
6794 * posix/tst-preadwrite.c (do_prepare): Likewise.
6795 * posix/tst-spawn.c (do_prepare): Likewise.
6796 * posix/tst-truncate.c (do_prepare): Likewise.
6797 * rt/tst-aio.c (do_prepare): Likewise.
6798 * rt/tst-aio64.c (do_prepare): Likewise.
6799 * stdlib/test-canon2.c (do_prepare): Give test_dir_len type
6800 size_t.
6801
d26d01d1
UD
68022006-09-09 Ulrich Drepper <drepper@redhat.com>
6803
41aba3d7
UD
6804 [BZ #2821]
6805 * time/mktime.c (guess_time_tm): Fix overflow detection.
6806 * time/Makefile (tests): Add bug-mktime1.
6807 * time/bug-mktime1.c: New file.
6808
eaa51b47 6809 [BZ #3189, #3188]
d26d01d1 6810 * misc/sys/mman.h (remap_file_pages): Make available for _GNU_SOURCE.
eaa51b47 6811 (mremap): Likewise.
d26d01d1 6812
ba40cc15
UD
68132006-09-07 Jakub Jelinek <jakub@redhat.com>
6814
2b6a801e
UD
6815 [BZ #1006]
6816 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela):
6817 Ensure relocation doesn't clobber any bits outside of the
6818 immediate field for R_SPARC_TLS_LE_HIX22, R_SPARC_WDISP30,
6819 R_SPARC_HI22 and R_SPARC_H44.
6820
469615bd
UD
6821 [BZ #2775]
6822 * malloc/malloc.c (sYSMALLOc): Only call grow_heap if
6823 (long) (MINSIZE + nb - old_size) is positive.
6824
6825 * malloc/arena.c (grow_heap): When growing bail even if new_size
6826 is negative.
6827
ba40cc15
UD
6828 [BZ #3155]
6829 * sysdeps/powerpc/powerpc32/fpu/s_lrint.S (__lrint): Don't access
6830 stack below r1.
6831
243b9ac1
UD
68322006-09-06 Jakub Jelinek <jakub@redhat.com>
6833
ba40cc15
UD
6834 * posix/regex_internal.c (re_string_reconstruct): Handle
6835 offset < pstr->valid_raw_len && pstr->offsets_needed case.
6836 Ensure no bytes read before raw_mbs array. Pass a saved copy of
6837 pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
6838 re_string_context_at.
6839 * posix/Makefile: Add rules to build and run bug-regex26 test.
6840 * posix/bug-regex26.c: New test.
6841
243b9ac1
UD
6842 * locale/programs/ld-collate.c (collate_read): Goto sym_equiv_free
6843 rather than col_sym_free. Move seqp declaration earlier.
6844
6845 * resolv/gai_suspend.c (gai_suspend): Make sure result is initialized.
6846
d052233c
UD
68472006-09-05 Jakub Jelinek <jakub@redhat.com>
6848
6849 * nscd/initgrcache.c (addinitgroupsX): Move any_success
6850 decl before first goto out.
6851
71213dc2
UD
68522006-09-04 Jakub Jelinek <jakub@redhat.com>
6853
6854 * Makerules (shlib.lds): If have-hash-style, put .hash section
6855 at the end of the RO segment.
6856
68572006-09-04 Ulrich Drepper <drepper@redhat.com>
6858
6859 * elf/do-lookup.h (do_lookup_x): Initialize symidx in case the new
6860 style hash table format is used.
6861
03eeff83
UD
68622006-09-04 Jakub Jelinek <jakub@redhat.com>
6863
6864 * resolv/res_mkquery.c (res_nmkquery): Set hp->id to statp->id after
6865 randomization rather than before.
6866 * resolv/res_init.c (res_randomid): Don't call gettimeofday here.
6867
b80770b2
UD
68682006-08-31 Jakub Jelinek <jakub@redhat.com>
6869
ba40cc15 6870 * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Add ld.so.
b80770b2
UD
6871
6872 * malloc/malloc.c (_int_malloc): Use full list insert and not
6873 shortcut which assumes the list is empty for large requests
6874 too.
6875
6876 * elf/tst-addr1.c (do_test): Allow i.dli_sname "_IO_printf".
6877
99ea5991
UD
68782006-08-30 Jakub Jelinek <jakub@redhat.com>
6879
6880 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (splice): Add offin
6881 and offout arguments to the prototype.
6882 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (splice): Likewise.
6883 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h (splice): Likewise.
6884 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (splice): Likewise.
6885 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h (splice): Likewise.
6886 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h (splice): Likewise.
6887 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (splice): Likewise.
6888 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h (splice): Likewise.
6889 * sysdeps/unix/sysv/linux/syscalls.list (splice): Adjust args string.
6890
4004a0a5
UD
68912006-08-28 Ulrich Drepper <drepper@redhat.com>
6892
950398e1
UD
6893 * elf/dl-load.c (_dl_init_paths): Expand DSTs.
6894
4004a0a5
UD
6895 * elf/dl-open.c (dl_open_worker): Allow $LIB and $PLATFORM in
6896 dlopen parameters.
6897
6e310111
UD
68982006-08-28 Jakub Jelinek <jakub@redhat.com>
6899
6900 * inet/getnameinfo.c (getnameinfo): For AF_INET, check errno
6901 only if herrno is NETDB_INTERNAL. Handle errors other than
6902 ERANGE outside of the loops, handle TRY_AGAIN.
6903
6904 * locale/programs/ld-ctype.c (translit_flatten): Issue error
6905 if other's ctype category was missing.
6906 * locale/programs/ld-collate.c (collate_read): Return if
6907 copy_locale's collate category is missing.
6908
07014fca
UD
69092006-08-27 Ulrich Drepper <drepper@redhat.com>
6910
6911 [BZ #2684]
6912 * malloc/malloc.c (public_rEALLOc): Try harder by using other
6913 arenas if allocation failed.
6914 Patch mostly by Jan Edler <jan.edler@indexengines.com>.
6915
71663747
UD
69162006-08-26 Ulrich Drepper <drepper@redhat.com>
6917
41999a1a
UD
6918 * malloc/malloc.c (bin_at): Rewrite to be more clear and to not
6919 waste bins[0..1].
6920 (malloc_state): Reduce bins size by 2.
6921 (_int_malloc): Fix test for large enough buffer for early termination.
6922 When no unsorted block matches perfectly and an exiting block has
6923 to be split, use full list insert and not shortcut which assumes
6924 the list is empty.
6925
71663747
UD
6926 * locale/programs/ld-ctype.c (ctype_read): Better patch for read
6927 failure.
6928
93b53ca2
UD
69292006-08-24 Ulrich Drepper <drepper@redhat.com>
6930
f5a82772
UD
6931 * locale/programs/ld-ctype.c (ctype_read): If CTYPE is NULL, don't
6932 do anything.
6933
2ac9ca73
UD
6934 * sysdeps/generic/ldsodefs.h (DL_ADDR_SYM_MATCH): For undefined
6935 symbol require exact match (these are PLTs).
6936 * sysdeps/unix/sysv/linux/powerpc/powerpc64/ldsodefs.h
6937 (_dl_ppc64_addr_sym_match): Likewise.
6938
93b53ca2
UD
6939 [BZ #2683]
6940 * elf/dl-addr.c (_dl_addr): Don't ignore all undefined symbols.
6941 If symbol has a value use it.
6942 * elf/tst-dladdr1.c: New file.
6943 * elf/Makefile: Add rules to build and run tst-addr1.
6944
7463d5cb
UD
69452006-08-24 Jakub Jelinek <jakub@redhat.com>
6946
6947 * malloc/malloc.c (sYSMALLOc): Avoid infinite loop if MMAP
6948 keeps failing and heap growth or new heap creation isn't
6949 successful either.
6950 * malloc/tst-malloc.c (main): Add new tests.
6951
542a6f62
UD
69522006-08-24 Ulrich Drepper <drepper@redhat.com>
6953
6954 [BZ #2734]
6955 * sysdeps/i386/bits/byteswap.h (__bswap_32): Use same conditions
6956 as in the x86-64 code to use bswap.
6957
aa2c6b6d
UD
69582006-05-21 Joseph S. Myers <joseph@codesourcery.com>
6959
24982798 6960 [BZ #2680]
aa2c6b6d
UD
6961 * posix/unistd.h (getlogin_r): Condition on __USE_POSIX199506, not
6962 __USE_UNIX98.
6963 * posix/bits/unistd.h: Likewise.
6964
59776aef
UD
69652006-05-15 Mike Frysinger <vapier@gentoo.org>
6966
6967 [BZ #2751]
6968 * string/strchr.c: Add cast to avoid warning.
6969
e404fb16
UD
69702006-08-21 Ulrich Drepper <drepper@redhat.com>
6971
6972 * malloc/malloc.c (DEFAULT_MMAP_THRESHOLD_MAX): For 32-bit
bd2c2341 6973 platforms define as 512K. For 64-bit platforms as 32MB. The lower
e404fb16
UD
6974 limit is needed to avoid the exploding of the address space
6975 requirement for secondary heaps.
6976 * malloc/arena.c (HEAP_MAX_SIZE): Define using
6977 DEFAULT_MMAP_THRESHOLD_MAX if it is defined.
6978
376e973a
UD
69792006-07-30 Joseph S. Myers <joseph@codesourcery.com>
6980
6981 [BZ #3018]
6982 * Makerules (depfiles): Handle extra-test-objs the same as
6983 extra-objs.
6984 (common-mostlyclean): Likewise.
6985 * dlfcn/Makefile (extra-objs): Add modules to extra-test-objs
6986 instead.
6987 * elf/Makefile (extra-objs): Likewise.
6988 * stdlib/Makefile (extra-objs): Likewise.
6989
240c62a7
UD
69902006-08-14 Eric Blake <ebb9@byu.net>
6991
6992 [BZ #3044]
6993 * misc/error.h: Assume C89 or better.
6994 * misc/error.c: Likewise.
6995
3997b7c4
UD
69962006-08-21 Ulrich Drepper <drepper@redhat.com>
6997
6998 [BZ #3040]
6999 * sysdeps/unix/sysv/linux/openat.c: Fix compilation if
7000 __ASSUME_ATFCTS is defined.
7001
8a6537b0
UD
70022006-08-19 Ulrich Drepper <drepper@redhat.com>
7003
72320021
UD
7004 * malloc/malloc.c (_int_malloc): Limit number of unsorted blocks
7005 to sort in each call.
7006
ed3691ba
UD
7007 * nis/nss_nis/nis-service.c (internal_nis_getservent_r): . If map
7008 is empty simply return and use next service.
7009 * nis/nss_nis/nis-rpc.c (internal_nis_getrpcent_r): Likewise.
7010
8a6537b0
UD
7011 * locale/programs/charmap.c (charmap_read): Add new parameter. It
7012 tells us when not finding a charmap file is an error.
7013 * locale/programs/charmap.h: Adjust charmap_read prototype.
7014 * iconv/iconv_prog.c (main): Tell charmap_read it's no error if we
7015 cannot find a charmap.
7016 * locale/programs/localedef.c (main): Adjust charmap_read call.
7017
ad2a3c07
UD
70182006-08-15 Jakub Jelinek <jakub@redhat.com>
7019
7020 * sysdeps/unix/sysv/linux/sparc/sparc64/pause.c: Use
7021 sysdeps/posix/pause.c implementation instead.
7022
70232006-08-09 Jakub Jelinek <jakub@redhat.com>
7024
7025 * sysdeps/unix/nice.c (nice): Transform EACCES errno from setpriority
7026 to EPERM.
7027
f17efcb4
UD
70282006-08-13 Andreas Schwab <schwab@suse.de>
7029
7030 * sysdeps/powerpc/powerpc32/dl-trampoline.S (_dl_runtime_resolve):
7031 Don't clobber caller's LRSAVE.
7032 (_dl_prof_resolve): Likewise.
7033
107b8a92
UD
70342006-08-14 Ulrich Drepper <drepper@redhat.com>
7035
7036 [BZ #1996]
7037 * libio/memstream.c (open_memstream): Allocate initial buffer with
7038 calloc.
7039 * libio/wmemstream.c (open_wmemstream): Likewise.
7040 * libio/strops.c: Pretty printing.
7041 (_IO_str_overflow): Clear uninitialized part of the new buffer.
7042 (enlarge_userbuf): New function.
7043 (_IO_str_seekoff): Call it if seek position is larger than current
7044 buffer.
7045 * libio/wstrops.c: Likewise.
7046 * libio/vasprintf.c: Add comment as to why we do not have to use
7047 calloc instead of malloc to allocate initial buffer.
7048 * libio/Makefile (tests): Add bug-memstream1 and bug-wmemstream1.
7049 * libio/bug-memstream1.c: New file.
7050 * libio/bug-wmemstream1.c: New file.
7051
fa3ac53f
UD
70522006-08-13 Ulrich Drepper <drepper@redhat.com>
7053
89993734
UD
7054 * libio/wstrops.c: Remove dead macro definitions and comments.
7055 * libio/strops.c: Likewise.
7056
fa3ac53f
UD
7057 [BZ #2764]
7058 * login/utmpname.c (__utmpname): Remove unnecessary test.
7059
f99ed760
UD
70602006-06-08 Joseph Myers <jsm28@gcc.gnu.org>
7061
7062 [BZ #2832]
7063 * math/gen-libm-test.pl (clean_up_number): Do not remove trailing
7064 0s from integers.
7065
70662006-08-13 Ulrich Drepper <drepper@redhat.com>
7067
7068 [BZ #2987]
7069 * sysdeps/unix/sysv/linux/clock_settime.c: Add code to use syscall
7070 for CPU clocks.
7071 * sysdeps/unix/clock_settime.c: Add support for platform-specific
7072 setting of CPU clocks.
7073
4c3f81d0
UD
70742006-06-23 Paul Eggert <eggert@cs.ucla.edu>
7075
7076 [BZ #2841]
7077 * sysdeps/generic/stdint.h (UINT8_C, UINT16_C): Don't append 'U',
7078 since C99 requires the result to promote to 'int' when uint_least8_t
7079 and uint_least16_t promote to 'int'.
7080
cd8e60ce
UD
70812006-08-12 Ulrich Drepper <drepper@redhat.com>
7082
9a5c46e8
UD
7083 [BZ #3013]
7084 * locale/programs/ld-ctype.c (ctype_output): Adjust alignments, fix
7085 lenght of one output field, correct bitmask creation.
7086 * locale/programs/ld-time.c: Add alignment.
7087
cd8e60ce
UD
7088 [BZ #2997]
7089 * misc/error.c: Add space between program name and message if file
7090 name is missing.
7091
9a528884
UD
70922006-08-03 Eric Blake <ebb9@byu.net>
7093
7094 [BZ #2998]
7095 * misc/error.c (error_tail) [_LIBC]: Avoid invalid free.
7096
1d05c2fb
UD
70972006-08-09 Ulrich Drepper <drepper@redhat.com>
7098
0c1c6c6c
UD
7099 * malloc/memusagestat.c: Silence warnings.
7100
1d05c2fb
UD
7101 * malloc/malloc.c: Dynamically size mmap treshold if the program
7102 frees mmaped blocks.
7103 Patch by Valerie Henson and Arjan van de Ven.
7104
2d1e6277
UD
71052006-08-08 Jakub Jelinek <jakub@redhat.com>
7106
be7ffd91
UD
7107 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (O_DIRECT): Protect with
7108 __USE_GNU.
7109
2d1e6277
UD
7110 * stdlib/strtol_l.c (__strtol_ul_max_tab, __strtol_ul_rem_tab,
7111 __strtol_ull_max_tab, __strtol_ull_rem_tab): Declare.
7112 (DEF): Don't put the var into .gnu.linkonce.r.* section.
7113 Only provide var definitions in strtol_l (or for *ull*
7114 in strtoll_l).
7115
7116 * stdio-common/bug16.c (tests): New array.
7117 (do_tests): Allow the first hexadecimal digit
7118 to be 1, 2, 4 or 8. Do 3 additional tests.
7119
7120 * sysdeps/s390/fpu/libm-test-ulps: Update.
7121
7122 * sysdeps/unix/sysv/linux/s390/s390-32/fchownat.c (fchownat): Use
7123 fchownat syscall if available.
7124 * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat): Likewise.
7125 * sysdeps/unix/sysv/linux/sh/fchownat.c (fchownat): Likewise.
7126 * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Likewise.
7127
d0ccde25
UD
71282006-08-07 Ulrich Drepper <drepper@redhat.com>
7129
7130 * nis/nis_xdr.c: Avoid some function calls.
7131
13a0293d 71322006-08-07 Jakub Jelinek <jakub@redhat.com>
3f7a21a9 7133 Ulrich Drepper <drepper@redhat.com>
13a0293d
UD
7134
7135 * nis/nis_call.c (rec_dirsearch) [case LOWER_NAME]: Don't take
7136 short cut if only one name component is stripped away.
7137
bd1ebae0
UD
71382006-08-07 Ulrich Drepper <drepper@redhat.com>
7139
7140 * nis/nis_call.c: Minor cleanups throughout.
2d1e6277 7141 (rec_dirsearch) [case HIGHER_NAME]: Correctly size ndomain array.
bd1ebae0
UD
7142 (first_shoot): Add search_parent_first parameter. Only if it is set
7143 search parent server first.
7144 If directory for table found through cold start cache is not the same
7145 as referenced in the cache, don't use it.
7146 (__nisfind_server): Take additional parameter. Pass it on to
7147 first_shoot.
7148 (__prepare_niscall): Adjust __nisfind_server call.
7149 * nis/rpcsvc/nislib.h: Adjust __nisfind_server prototype.
7150 * nis/nis_table.c: Adjust __nisfind_server call.
7151 * nis/nis_lookup.c: Likewise.
7152 (nis_lookup): Don't loop endlessly if name is reduced to ".".
7153
f1762c0c
UD
71542006-08-03 Ulrich Drepper <drepper@redhat.com>
7155
fe710250
UD
7156 [BZ #2182]
7157 * math/s_cacosh.c: Return values from positive branch.
7158 * math/s_cacoshf.c: Likewise.
7159 * math/s_cacoshl.c: Likewise.
7160
a5852807
UD
7161 [BZ #2883]
7162 * sysvipc/sys/msg.h: Change return value to ssize_t.
7163 * sysdeps/unix/sysv/linux/msgrcv.c: Likewise.
fe710250
UD
7164 * sysvipc/msgrcv.c: Likewise.
7165 * include/sys/msg.h: Likewise.
39571a13 7166
6c215a8d
UD
7167 * grp/initgroups.c (internal_getgrouplist): Remove unnecessary
7168 test introduced in patch for bz #661.
39571a13 7169 (getgrouplist): Simplify code a bit. Don't allocate one additional
f13bfdd0 7170 element for NEWGROUPS.
6c215a8d 7171
9c06eb66
UD
7172 [BZ #2908]
7173 * stdio-common/printf_fphex.c (__printf_fphex): When rounding up
7174 'f', use '1' as leading digit not '\1'.
7175 * stdio-common/Makefile (tests): Add bug16.
7176 * stdio-common/bug16.c: New file.
7177
7178 [BZ #2914]
7179 * sysdeps/unix/sysv/linux/gethostid.c: Don't define OLD_HOSTIDFILE
7180 and don't try to open it. The patch introducing the macro
7181 contained a bug and used the same file name as the new file
7182 instead of using /var/adm/hostid. Nobody complaint so I'm taking
7183 this out completely.
7184
7185 [BZ #2926]
7186 * assert/assert.h: Move cast to void inside ?: to quiet gcc.
7187 Patch by Jerry James <Jerry.James@usu.edu>.
7188
f1762c0c
UD
7189 * rt/Makefile (tests): Add tst-clock2.
7190 * rt/tst-clock2.c: New file.
7191
7192 [BZ #2978]
7193 * resolv/gai_notify.c (__gai_notify_only): Copy memory for thread
7194 function and its parameters and pass it to new thread.
7195 (__gai_notify): Add support for alternative waiting for completion.
7196 * resolv/gai_suspend.c (gai_suspend): Add support for alternative
7197 waiting for completion.
7198 * resolv/getaddrinfo_a.c: Likewise.
7199 * resolv/gai_misc.h (struct waitlist): Don't add cond if alternative
7200 waiting for completion is used.
7201 * resolv/gai_misc.c: Allow overwriting code to start helper thread.
7202 * resolv/gai_cancel.c: Include <gai_misc.h> not "gai_misc.h".
7203 * resolv/gai_error.c: Likewise.
7204 * resolv/gai_sigqueue.c: Likewise.
7205
83ae6b40
RM
72062006-08-02 Thomas Schwinge <tschwinge@gnu.org>
7207
0e4e62fe 7208 * hurd/getdport.c (__getdport): Don't return EBADF; instead set
f1762c0c 7209 errno to EBADF and return MACH_PORT_NULL.
83ae6b40 7210
82ee37c5
UD
72112006-06-23 Joseph Myers <joseph@codesourcery.com>
7212
7213 [BZ #2980]
f1762c0c 7214 * posix/Makefile (CFLAGS-waitid.c): Add -fasynchronous-unwind-tables.
82ee37c5
UD
7215
72162006-08-02 Ulrich Drepper <drepper@redhat.com>
7217
7218 * elf/dl-addr.c (_dl_addr): If GNU-style hash tables are present,
7219 walk them instead of the symbol table.
7220
7bb1b2c9
UD
72212006-08-01 Ulrich Drepper <drepper@redhat.com>
7222
f13bfdd0 7223 [BZ #2098]
fbbc73b3
UD
7224 * nscd/initgrcache.c (addinitgroupsX): Judge successful lookups by
7225 status of NSS calls, not the number of returned entries.
7226
a4518922
UD
7227 * sysdeps/unix/sysv/linux/syscalls.list: Remove add_key,
7228 request_key, keyctl.
7bb1b2c9 7229
b06e7e9a
UD
72302006-07-31 Ulrich Drepper <drepper@redhat.com>
7231
7232 * sysdeps/unix/sysv/linux/dl-osinfo.h: Remove unnecessary include.
7233
f1227969
UD
72342006-07-16 Jeff Bailey <jbailey@ubuntu.com>
7235
7236 * elf/tst-auditmod1.c: Fix typo in #error.
7237
82ae2712
UD
72382006-07-31 Ulrich Drepper <drepper@redhat.com>
7239
f1227969
UD
7240 * elf/tst-auditmod1.c: Remove code for unsupported architectures.
7241
82ae2712
UD
7242 * iconvdata/run-iconv-test.sh: Run cmp in C locale.
7243
a1260d92
UD
72442006-07-20 Adam Nemet <anemet@caviumnetworks.com>
7245
7246 * stdlib/test-canon.c (do_test): Close fd before unlinking file so
b06e7e9a 7247 that the directory is empty even on non-POSIX filesystems.
a1260d92 7248
d2de41fe
UD
72492006-07-31 Ulrich Drepper <drepper@redhat.com>
7250
13669f2c
UD
7251 * elf/dl-open.c (dl_open_worker): Add branch prediction.
7252
d2de41fe
UD
7253 * nis/nss_compat/compat-grp.c: Avoid unnecessary setgrent calls into
7254 the backend NSS module. If backend setgrent call failed, don't have
7255 internal_setgrent fail. Just remember this until it is needed.
7256 * nis/nss_compat/compat-pwd.c: Likewise.
7257 * nis/nss_compat/compat-spwd.c: Likewise.
7258
b894c2ea
RM
72592006-07-30 Roland McGrath <roland@redhat.com>
7260
7261 * sysdeps/unix/sysv/linux/ia64/sigsuspend.c: File removed.
7262 * sysdeps/unix/sysv/linux/x86_64/sigsuspend.c: File removed.
7263 * sysdeps/unix/sysv/linux/s390/s390-64/sigsuspend.c: File removed.
7264 * sysdeps/unix/sysv/linux/sparc/sparc64/sigsuspend.c: File removed.
7265
7266 * sysdeps/unix/sysv/linux/not-cancel.h (pause_not_cancel): New macro.
7267 (nanosleep_not_cancel): New macro.
7268 (sigsuspend_not_cancel): new macro.
7269 * sysdeps/unix/sysv/linux/sigsuspend.c [__ASSUME_REALTIME_SIGNALS]
7270 (do_sigsuspend): Define as inline.
7271 (__sigsuspend): Always use do_sigsuspend.
7272 [! NO_CANCELLATION] (__sigsuspend_nocancel): New function.
7273 * include/signal.h: Declare __sigsuspend_nocancel.
7274 * sysdeps/posix/pause.c
7275 [! NO_CANCELLATION] (__pause_nocancel): New function.
7276
7277 * include/unistd.h (__pause_nocancel): Add attribute_hidden.
7278 * include/time.h (__nanosleep_nocancel): Likewise.
7279
c10d32c8
UD
72802006-07-30 Ulrich Drepper <drepper@redhat.com>
7281
7282 * locale/programs/localedef.c (add_to_readlist): Rename local
7283 variables to avoid confusion.
7284
7285 * locale/programs/charmap.c (charmap_read): Emit error message if
7286 charmap couldn't be found or read.
7287
6822f056
UD
72882006-07-28 Ulrich Drepper <drepper@redhat.com>
7289
d5ba53f9
UD
7290 * sysdeps/unix/sysv/linux/kernel-features.h: Define
7291 __ASSUME_FUTEX_LOCK_PI.
7292 * include/time.h: Declare __nanosleep_nocancel.
7293 * include/unistd.h: Declare __pause_nocancel.
7294
6822f056
UD
7295 * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Use this instead of
7296 LDFLAGS. Add -lgcc_eh and libc_nonshared (again) to make sure we
7297 get the __stack_chk_fail_local definition when it's needed.
7298
3a975ff5
UD
72992006-07-26 Ulrich Drepper <drepper@redhat.com>
7300
6de1f625
UD
7301 * dlfcn/Makefile: Add rules to build and run bug-atexit3.
7302 * dlfcn/bug-atexit3.c: New file.
7303 * dlfcn/bug-atexit3-lib.cc: New file.
7304
3a975ff5
UD
7305 * dlfcn/dlmopen.c (dlmopen_doit): Don't allow RTLD_GLOBAL to be
7306 used when the namespace is not the base namespace.
7307
a92b1166
UD
73082006-07-26 Gavin Romig-Koch <gavin@redhat.com>
7309
7310 * stdlib/cxa_atexit.c (__new_exitfn_called): New variable.
7311 (__new_exitfn): Bump it in every successful call.
7312 * stdlib/cxa_finalize.c (__cxa_finalize): If destructor registered
7313 more exit handlers, call them right away.
7314 * stdlib/exit.h: Declare __new_exitfn_called.
7315
a08336fb
UD
73162006-07-25 Ulrich Drepper <drepper@redhat.com>
7317
bd3754dc
UD
7318 * stdlib/cxa_finalize.c (__cxa_finalize): Fix race condition when
7319 calling registered handler.
7320
a08336fb
UD
7321 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Fix comment.
7322 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
7323 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
7324 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
7325 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
7326 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
7327 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
7328 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
7329
871b9158
UD
73302006-07-10 Ulrich Drepper <drepper@redhat.com>
7331
7332 * elf/dl-lookup.c (dl_new_hash): New functions.
7333 (_dl_lookup_symbol_x): Rename hash to old_hash and don't compute
7334 value here. Compute new-style hash value. Pass new hash value
7335 and reference to variable with the old value to do_lookup_x.
7336 (_dl_setup_hash): If DT_GNU_HASH is defined, use it and not
7337 old-style hash table.
7338 (_dl_debug_bindings): Pass new hash value and reference to variable
7339 with the old value to do_lookup_x.
7340 * elf/do-lookup.h (do_lookup_x): Accept additional parameter with
7341 new-style hash value and change old-style hash value parameter to
7342 be a reference. Reoganize functions to determine whether
7343 new-style hash table is available. Only fall back on old-style
7344 table. If old-style hash value is needed, compute it here.
7345 * elf/dynamic-link.h (elf_get_dynamic_info): Relocate DT_GNU_HASH
7346 entry.
7347 * elf/elf.h: Define SHT_GNU_HASH, DT_GNU_HASH, DT_TLSDEC_PLT,
7348 DT_TLSDEC_GOT. Adjust DT_ADDRNUM.
7349 * include/link.h (struct link_map): Add l_gnu_bitmask_idxbits,
7350 l_gnu_shift, l_gnu_bitmask, l_gnu_buckets and l_gnu_chain_zero.
7351 * Makeconfig: If linker supports --hash-style option add it to all
7352 linker command lines to build DSOs.
7353 * config.make.in: Define have-hash-style.
7354 * configure.in: Test whether linker supports --hash-style option.
7355
7356 * elf/dl-misc.c (_dl_name_match_p): Make MAP parameter const.
7357 * sysdeps/generic/ldsodefs.h: Adjust prototype.
7358
a1f0de82
UD
73592006-06-27 Ulrich Drepper <drepper@redhat.com>
7360
361a3706
UD
7361 * elf/dl-load.c (open_path): Fix test to determine whether DSO is
7362 auditing.
7363
a1f0de82
UD
7364 * elf/dl-load.c (_dl_map_object): Try harder to avoid looking at
7365 RPATH of main map twice.
7366
4259230f
UD
73672006-06-22 Ulrich Drepper <drepper@redhat.com>
7368
7369 * intl/dcigettext.c (DCIGETTEXT): If _nl_find_msg returns -1 don't
7370 look further, return original strings.
7371 (_nl_find_msg): Do not return found translation if the conversion
7372 failed. Either signal the string is unusable or that something went
7373 wrong and the original should be used.
7374
73752006-06-21 Ulrich Drepper <drepper@redhat.com>
7376
7377 * string/_strerror.c (__strerror_r): Add __builtin_expect.
7378
f9b7a98b
UD
73792006-06-14 Jakub Jelinek <jakub@redhat.com>
7380
7381 [BZ #2766]
7382 * misc/insremque.c (insque): Handle prev == NULL.
7383 * misc/Makefile (tests): Add tst-insremque.
7384 * misc/tst-insremque.c: New test.
7385
ac55a25b
UD
73862006-06-17 Ulrich Drepper <drepper@redhat.com>
7387
7388 [BZ #2792]
7389 * elf/dl-deps.c (expand_dst): Rename __cnt variable to not
7390 conflict with DL_DST_REQUIRED.
7391
02f366b3
UD
73922006-06-16 Ulrich Drepper <drepper@redhat.com>
7393
7394 * nis/nis_subr.c (nis_getnames): Fix the implementation to better
7395 match what Solaris does.
7396
9009e8f8
UD
73972006-06-04 Ulrich Drepper <drepper@redhat.com>
7398
1b8373f4
UD
7399 * sysdeps/posix/spawni.c (__spawni): Use local_seteuid and
7400 local_setegid instead of seteuid and setegid.
7401 * sysdeps/generic/local-setxid.h: New file.
7402 * sysdeps/unix/sysv/linux/local-setxid.h: New file.
7403
7231452e
UD
7404 * sysdeps/posix/spawni.c (__spawni): Use non-cancelable interfaces.
7405
9009e8f8 7406 * string/Makefile (tests): Add bug-envz1.
02f366b3 7407 * string/bug-envz1.c: New file.
9009e8f8 7408
33e63e79
UD
74092006-06-02 Jakub Jelinek <jakub@redhat.com>
7410
7411 * posix/regex_internal.c (re_string_skip_chars): If no character has
7412 been converted at all, set *last_wc to WEOF. If mbrtowc failed, set wc
7413 to the byte which couldn't be converted.
7414 (re_string_reconstruct): Don't clear valid_raw_len before calling
7415 re_string_skip_chars. If wc is WEOF after re_string_skip_chars, set
7416 tip_context using re_string_context_at.
7417 * posix/Makefile: Add rules to build and run bug-regex25 test.
7418 * posix/bug-regex25.c: New test.
7419
fdc02996
UD
74202006-06-02 Ryan S. Arnold <rsa@us.ibm.com>
7421
7422 [BZ #2703]
7423 * string/envz.c (envz_strip): Correct erroneously reversed src
7424 and dest parameters to memmove() invocation.
7425
902c4291
UD
74262006-05-30 Jakub Jelinek <jakub@redhat.com>
7427
7428 * nscd/nscd.h (prune_cache): Add fd argument to prototype.
7429 * nscd/nscd.c (parse_opt): Read response from INVALIDATE request
7430 to make sure the database has been already invalidated.
7431 * nscd/cache.c (prune_cache): Add fd argument. Write response to fd
7432 after the cache has been invalidated. Use pthread_mutex_lock rather
7433 than pthread_mutex_trylock if fd != -1.
7434 * nscd/connections.c (invalidate_cache): Add fd argument, write
7435 response to fd if not calling prune_cache, pass fd to prune_cache.
7436 (handle_request): Adjust invalidate_cache caller.
7437 (nscd_run): Pass -1 as fd to prune_cache.
7438
ecc68568
UD
74392006-05-30 Ulrich Drepper <drepper@redhat.com>
7440
7441 * sysdeps/posix/getaddrinfo.c (gaiconf_init): Initialize bits in
7442 the correct place.
7443
9636a217
UD
74442006-05-29 Ulrich Drepper <drepper@redhat.com>
7445
7446 * nscd/nscd.h (struct database_dyn): Add prunelock field.
7447 * nscd/cache.c (prune_cache): Take prunelock before starting the
7448 work. Just return in case it is already taken.
cabfcde1 7449 * nscd/connections.c (dbs): Initialize .prunelock.
9636a217 7450
6bcb494a
UD
74512006-05-25 Ulrich Drepper <drepper@redhat.com>
7452
672d5a63 7453 * nis/nis_removemember.c (nis_removemember): Avoid unnecessary
ecc68568 7454 copying. No need to allocate new array for group members. Just
672d5a63
UD
7455 move the pointers and update the size.
7456
1663b44f
UD
7457 * nis/nis_addmember.c (nis_addmember): Avoid unnecessary copying.
7458 Avoid memory leak in case realloc fails. Simplification for
7459 better code generation.
7460
7461 Avoid deprecation warning because of libc_hidden_proto for
7462 inet6_option_alloc.
7463 * inet/inet6_option.c (option_alloc): Renamed from
7464 inet6_option_alloc. Made static.
9636a217 7465 (inet6_option_alloc): Now a simple wrapper around option_alloc.
1663b44f
UD
7466 (inet6_option_append): Call option_alloc.
7467 * include/netinet/in.h: Remove libc_hidden_proto for
7468 inet6_option_alloc.
7469
6bcb494a
UD
7470 * nis/nis_callback.c (__nis_create_callback): Always call xdr_free
7471 for cleanup when cb!=NULL [Coverity CID 233].
7472
aec6b246
UD
74732006-05-24 Ulrich Drepper <drepper@redhat.com>
7474
07bfff20
UD
7475 [BZ #2693]
7476 * inet/Makefile (routines): Add inet6_opt and inet6_rth.
7477 * inet/Versions (libc, GLIBC_2.5): Add inet6_opt_init,
7478 inet6_opt_append, inet6_opt_finish, inet6_opt_set_val, inet6_opt_next,
7479 inet6_opt_find, inet6_opt_get_val, inet6_rth_space, inet6_rth_init,
7480 inet6_rth_add, inet6_rth_reverse, inet6_rth_segments,
7481 and inet6_rth_getaddr.
7482 * inet/netinet/ip6.h (struct ip6_rthdr0): Make ip6r0_addr a flexible
7483 array.
7484 * inet/netinet/in.h (struct ip6_mtuinfo): Define.
7485 Mark inet6_option_* interfaces as deprecated.
7486 Declare inet6_opt_init, inet6_opt_append, inet6_opt_finish,
7487 inet6_opt_set_val, inet6_opt_next, inet6_opt_find, inet6_opt_get_val,
7488 inet6_rth_space, inet6_rth_init, inet6_rth_add, inet6_rth_reverse,
7489 inet6_rth_segments, and inet6_rth_getaddr.
7490 * inet/inet6_opt.c: New file.
7491 * inet/inet6_rth.c: New file.
7492
7493 * inet/netinet/icmp6.h: Pretty printing.
7494
aec6b246
UD
7495 [BZ #2683]
7496 * elf/dl-addr.c (_dl_addr): Don't match undefined references.
7497
2d571cd1
UD
74982006-05-23 Ulrich Drepper <drepper@redhat.com>
7499
062e719b
UD
7500 * nis/nis_lookup.c (nis_lookup): Use __prepare_niscall instead of
7501 doing it all here. When server does not know the answer do not
7502 fail immediate, try parent first.
7503
2d571cd1
UD
7504 * nis/nis_domain_of_r.c (nis_domain_of_r): Add missing buffer
7505 overflow test.
7506
a17fa610
UD
75072006-05-20 Ulrich Drepper <drepper@redhat.com>
7508
7509 * nis/nis_call.c (__prepare_niscall): New function. Split out
7510 from __do_niscall.
7511 * nis/nis_table.c (__create_ib_request): Renamed from create_ib_request
7512 and exported.
7513 (__follow_path): New function. Split out from nis_list.
7514 * nis/nis_xdr.h: Add libnsl_hidden_proto for _xdr_ib_request and
7515 _xdr_nis_result.
7516 * nis/nis_xdr.c: Add libnsl_hidden_def for _xdr_ib_request and
7517 _xdr_nis_result.
7518 * nis/libnsl.h: Declare __prepare_niscall, __create_ib_request,
7519 and __follow_path.
7520 * nis/Versions: Export __prepare_niscall, __create_ib_request,
7521 __follow_path, __do_niscall3, _xdr_ib_request, and _xdr_nis_result
7522 from libnsl for version GLIBC_PRIVATE.
7523 * nis/nisplus-parser.h: Remove _nss_nisplus_parse_pwent_chk.
7524 Remove entry parameter from _nss_nisplus_parse_pwent and
7525 _nss_nisplus_parse_grent.
7526 * nis/nss_nisplus/nisplus-parser.c: Likewise.
7527 * nis/nss_nisplus/nisplus-pwd.c: Remove support for SETENT_BATCH_READ
7528 again. Rewrite getpwent handling to not use nis_first_entry and
7529 nis_next_entry. Roll out own niscall handling.
7530 * nis/nss_nisplus/nisplus-grp.c: Likewise.
7531
7532 * sunrpc/xdr_rec.c: Fix typo in comment.
7533
429bb183
UD
75342006-05-19 Ulrich Drepper <drepper@redhat.com>
7535
1d4f062a
UD
7536 * nis/nis_call.c (__do_niscall3): Avoid code duplication in error
7537 handling.
7538
101cc598
UD
7539 * nis/nis_callback.c (internal_nis_do_callback): Don't use malloc
7540 to allocate memory for my_pollfd. Better initialization of
7541 cb_is_running. Use TEMP_FAILURE_RETRY.
7542
f50fa10c
UD
7543 * malloc/memusage.sh (memusageso): Add quotes.
7544 (memusagestat): Likewise.
7545 * debug/xtrace.sh (pcprofileso): Likewise.
7546 (pcprofiledump): Likewise.
7547 * debug/Makefile ($(objpfx)xtrace): Use $LIB in SLIBDIR
7548 replacement.
7549 * malloc/Makefile ($(objpfx)memusage): Likewise.
7550
882bfe73
UD
7551 * nis/nis_callback.c (__nis_create_callback): Calls to
7552 svcudp_bufcreate and svctcp_create can fail. Free ->xprt if
7553 asprintf call fails.
7554
429bb183
UD
7555 * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_sendreq): Make sure
7556 no uninitialized memory is passed to sendto.
7557
f90de831
UD
75582006-05-18 Ulrich Drepper <drepper@redhat.com>
7559
7560 * nis/nis_callback.c (__nis_create_callback): Use asprinf instead
7561 of snprintf+strdup. Handle OOM.
7562 * nis/nis_callback.c (__nis_create_callback): Allocate cb and
7563 cb->serv together. Remove now obsolete free calls.
7564 (__nis_destroy_callback): Remove now obsolete free call.
7565
a17fa610 75662006-05-18 David Woodhouse <dwmw2@redhat.com>
6e2a7825
UD
7567
7568 * sysdeps/posix/getaddrinfo.c: Add unique labels to the default
7569 RFC3484 precedence table for fec0::/10 and fc00::/7 (site-local
7570 and ULA respectively). Set precedence for IPv4 address to 10 as
7571 defined in RFC3484 for preferring IPv6.
7572 * posix/gai.conf: Update to match the new default tables.
7573
758b9d7e
UD
75742006-05-18 Jakub Jelinek <jakub@redhat.com>
7575
7576 * nis/nss_compat/compat-pwd.c (internal_setpwent): If nss_set*ent
7577 returned NSS_STATUS_UNAVAIL, still return NSS_STATUS_SUCCESS.
7578 * nis/nss_compat/compat-spwd.c (internal_setspent): Likewise.
7579 * nis/nss_compat/compat-grp.c (internal_setgrent): Likewise.
7580
7581 * nis/nss_compat/compat-initgroups.c (nss_setgrent, nss_endgrent):
7582 Removed.
7583 (init_nss_interface): Remove initialization of these variables.
7584
75852006-05-18 Ulrich Drepper <drepper@redhat.com>
7586
7587 * nis/nis_call.c (rec_dirsearch): Little optimization: pull
7588 nis_free_directory forward to avoid duplication.
7589
388c779e
UD
75902006-05-17 Ulrich Drepper <drepper@redhat.com>
7591
5f1724bf
UD
7592 * nis/nis_call.c (rec_dirsearch): Handle __nis_finddirectory and
7593 rec_dirsearch returning NULL.
7594 (first_shoot): Handle __nis_finddirectory returning NULL.
7595 (__nisfind_server): Fix leak when rec_dirsearch returns NULL.
7596
388c779e
UD
7597 * sysdeps/unix/sysv/linux/sys/inotify.h: Define IN_CLOSE, IN_MOVE,
7598 IN_ONLYDIR, IN_DONT_FOLLOW, and IN_MASK_ADD.
7599
360d5cf4
UD
76002006-05-17 Jakub Jelinek <jakub@redhat.com>
7601
7602 * sunrpc/key_call.c (getkeyserv_handle): Call auth_destroy if
7603 pid changed.
7604
88dbff8c
UD
76052006-05-15 Ulrich Drepper <drepper@redhat.com>
7606
6f8a7dff
UD
7607 * include/rpc/pmap_prot.h: Mark all functions as hidden.
7608
7609 * nscd/nscd_initgroups.c: Mark __gr_map_handle as hidden.
7610 * nscd/nscd_getgr_r.c: Likewise.
7611
7612 * include/rpc/pmap_rmt.h: Mark all functions as hidden.
7613
7614 * nscd/nscd_getai.c (__hst_map_handle): Mark as hidden.
7615 * nscd/nscd_gethst_r.c (__hst_map_handle): Likewise.
7616
7617 * stdlib/longlong.h (__clz_tab): Mark as hidden.
7618
7619 * iconv/gconv_int.h: Mark __gconv_lock as hidden.
7620
360d5cf4 7621 * include/rpc/key_prot.h: Mark all _internal functions as hidden.
8263ed62
UD
7622
7623 * include/rpc/auth.h: Mark xdr_des_block_internal and
7624 xdr_opaque_auth_internal as hidden.
7625
7626 * sysdeps/unix/sysv/linux/getdents.c: Mark __have_no_getdents64 as
7627 hidden.
7628
360d5cf4 7629 * include/rpc/xdr.h: Mark all _internal functions as hidden.
8263ed62 7630
02264020
UD
7631 * misc/getusershell.c (okshells): Don't use static initializers,
7632 do it dynamically.
7633
fd5ea238
UD
7634 * stdlib/fmtmsg.c (keywords): Change type of len element to
7635 uint32_t to not waste space on 64bit machines.
7636
9446614c
UD
7637 * locale/setlocale.c: Change _nl_category_names into a string.
7638 Add new _nl_category_name_idxs. Change all users.
7639 * locale/localeinfo.h: Adjust declaration of _nl_category_names.
7640 Declare _nl_category_name_idxs.
7641 * locale/findlocale.c: Adjust for _nl_category_names change.
7642 * locale/loadlocale.c: Likewise.
7643 * locale/newlocale.c: Likewise.
7644 * intl/dcigettext.c: Likewise.
7645
88dbff8c
UD
7646 * iconv/gconv_conf.c (add_alias): Move actual alias handling to...
7647 (add_alias2): ...here. New function.
7648 (__gconv_read_conf): Simplify builtin alias handling.
7649 (builtin_aliases): Convert to string to avoid relocations.
7650 * iconv/gconv_builtin.h: Add comment about correct formatting.
7651
4442d58f
UD
76522006-05-15 Jakub Jelinek <jakub@redhat.com>
7653
7654 * resolv/res_debug.c (loc_ntoa): Make error const.
7655
76562006-05-14 Andreas Schwab <schwab@suse.de>
7657
7658 * math/complex.h [__LDBL_COMPAT]: Use __REDIRECT_NTH.
7659
76602006-05-12 Jakub Jelinek <jakub@redhat.com>
7661
7662 * sysdeps/unix/sysv/linux/sched_getaffinity.c: Include sys/param.h.
7663 (__sched_getaffinity_new): Don't crash if cpusetsize is smaller than
7664 sizeof (cpu_set_t).
7665
a51752b6
UD
76662006-05-11 Ulrich Drepper <drepper@redhat.com>
7667
5d3fd1f6
UD
7668 * resolv/res_debug.c (loc_ntoa): Define error as array, not pointer.
7669
08cfb839
UD
7670 * include/arpa/nameser.h: Declare _ns_flagdata as hidden.
7671
4b481a15
UD
7672 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_master.
7673 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_master.
7674
7675 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypbind_resp.
7676 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypbind_resp.
7677
7678 * nis/nis_xdr.c: Add libnsl_hidden_def for xdr_cback_data.
7679 * include/rpcsvc/nis_callback.h: Add libnsl_hidden_proto for
7680 xdr_cback_data.
7681
7682 * nis/ypupdate_xdr.c: Add libnsl_hidden_def for xdr_ypupdate_args.
7683 * include/rpcsvc/ypupd.h: Add libnsl_hidden_proto for
7684 xdr_ypupdate_args.
7685
7686 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_order.
7687 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_order.
7688
7689 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_maplist.
7690 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_maplist.
7691
7692 * nis/nis_xdr.c: Add libnsl_hidden_def for xdr_obj_p.
7693 * include/rpcsvc/nis_callback.h: New file.
7694
7695 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_val.
7696 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_val.
7697
7698 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypreq_nokey.
7699 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypreq_nokey.
7700
7701 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypmaplist.
7702 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypmaplist.
7703
7704 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypreq_nokey.
7705 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypreq_nokey.
7706
b1ad49c6
UD
7707 * nis/ypupdate_xdr.c: Add libnsl_hidden_def for xdr_ypdelete_args.
7708 * include/rpcsvc/ypupd.h: Add libnsl_hidden_proto for
7709 xdr_ypdelete_args.
7710
cd5f7829
UD
7711 * nis/nis_xdr.h: Mark all functions as hidden. Remove
7712 __BEGIN_DECLS and __END_DECLS, the header is not installed.
7713
a51752b6
UD
7714 * nis/nis_error.c: Remove table of strings. Use position
7715 independent mechanism.
7716 * nis/nis_error.h: New file.
7717
3d237e42
UD
77182006-05-11 Jakub Jelinek <jakub@redhat.com>
7719
7720 * locale/programs/ld-time.c (time_finish): If wide era name or
7721 format aren't provided, set both wname and wformat to L"".
7722
d6c159fe
UD
77232006-05-10 Ulrich Drepper <drepper@redhat.com>
7724
0088b04e
UD
7725 * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Only store
7726 results if the call was succesful.
7727
d6c159fe
UD
7728 * nis/nss-nis.h: Mark __yperr2nss_tab and __yperr2nss_count as hidden.
7729
7730 * nis/nss-nisplus.h: Mark __niserr2nss_tab and __niserr2nss_count
7731 as hidden.
7732
5c5acdf0
UD
77332006-05-10 Jakub Jelinek <jakub@redhat.com>
7734
7735 * misc/sys/queue.h: Remove uses of all QUEUEDEBUG_* macros.
7736
16d620db
UD
77372006-05-10 Ulrich Drepper <drepper@redhat.com>
7738
7739 * posix/wordexp.c (parse_glob): No need to check ifs for NULL, the
7740 caller makes sure this is not the case.
7741 (wordexp): Simplify ifs_white creation. [Coverity CID 231]
7742
e7c8359e
UD
77432006-05-09 Ulrich Drepper <drepper@redhat.com>
7744
ecf359c6
UD
7745 * posix/wordexp.c: Remove numerous NULL pointer tests before FREE
7746 calls.
7747
400cc70a
UD
7748 * io/ftw.c (open_dir_stream): Return right away if REALLOC fails.
7749 [Coverity CID 229, 230]
7750
7751 * argp/argp-help.c (hol_entry_help): Handle STATE==NULL in ARG and
7752 DGETTEXT calls.
7753 (hol_help): Likewise. [Coverity CID 226, 227]
7754
7755 * string/argz-replace.c (__argz_replace): Unconditionally call
7756 free on SRC. [Coverity CID 225]
7757
7758 * nis/nis_creategroup.c (nis_creategroup): No need to duplicate
7759 the return value of __nis_default_owner and __nis_default_group,
7760 it has been especially allocated. [Coverity CID 224]
7761
51e59260
UD
7762 * nis/nis_defaults.c (searchXYX): New functions. Used by both
7763 searchgroup and searchowner. Significantly simplified.
7764 (__nis_default_owner): Remove duplication. Do not locally copy the
7765 string before duplicating it.
7766 (__nis_default_group): Likewise.
7767
7768 * nis/nis_lookup.c (nis_lookup): After calling nis_free_directory,
7769 we must clear the variable before calling __nisfind_server.
7770
7771 * nis/nis_lookup.c (nis_lookup): Always free memory allocated with
7772 nis_getnames. [Coverity CID 223]
7773
7774 * locale/programs/locfile.c (locfile_read): Use alloca instead of
7775 xmalloc to allocate local repertoire name. [Coverity CID 222]
7776
7777 * iconv/iconv_charmap.c (use_to_charmap): No need to dynamically
7778 allocate memory for the input to add_bytes. [Coverity CID 221]
7779
e7c8359e 7780 * posix/wordexp.c (w_addword): Free word if realloc fails and it
51e59260 7781 was allocated here. [Coverity CID 219, 220]
e7c8359e
UD
7782
7783 * posix/getconf.c (print_all): Free confstr data after printing.
7784 [Coverity CID 218]
7785
7786 * sysdeps/posix/getaddrinfo.c (gaih_inet): Free canon string if
7787 list allocation fails. [Coverity CID 215]
7788
7789 * nss/nsswitch.c (__nss_configure_lookup): Fix loop end condition.
7790 [Coverity CID 213]
7791
7792 * argp/argp-help.c (hol_entry_cmp): Don't call canon_doc_option if
7793 string is NULL. [Coverity CID 212]
7794 * argp/Makefile: Add rules to build and run bug-argp1.
7795 * argp/bug-argp1.c: New file.
7796
7797 * io/ftw.c (ftw_dir): Use __rawmemchr instead of strchr to find
7798 end of string.
7799 * stdlib/canonicalize.c (__realpath): Likewise.
7800
7801 * locale/programs/ld-time.c (time_finish): Don't dereference NULL
7802 pointer. [Coverity CID 206]
7803
7804 * elf/dl-dst.h (DL_DST_REQUIRED): Be prepared for missing link map
7805 in statically linked code.
7806 * elf/dl-load.c (_dl_dst_substitute): When replacing ORIGIN in
7807 statically built code, be prepared to have no link map.
7808 [Coverity CID 205]
7809
7810 * argp/argp-help.c (fill_in_uparams): Handle STATE==NULL in
7811 dgettext calls. [Coverity CID 204]
7812
7813 * argp/argp-help.c (struct uparams): Remove valid member. Change
7814 the one user.
7815 (uparam_names): Reduce size. Avoid relative relocations.
7816 Moved to read-only segment.
7817 (fill_in_uparams): Update for new layout.
7818
7819 * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs): Parameter can be
7820 assumed to always be != NULL. [Coverity CID 202]
7821
7822 * argp/argp-help.c (hol_entry_help): Remove some dead code
7823 [Coverity CID 200].
7824
7825 * nis/nss_nis/nis-service.c (_nss_nis_getservbyport_r): Optimize
7826 away a few more unconditional yperr2nss calls.
7827 (_nss_nis_getservbyname_r): Likewise.
7828
acf82eaf
UD
78292006-05-06 Ulrich Drepper <drepper@redhat.com>
7830
4461cf48
UD
7831 * sysdeps/generic/ldsodefs.h: Remove support for non-core
7832 architectures.
7833
b74a8c7f
UD
7834 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Make sure
7835 that unused memory passed to sendto is nevertheless initialized.
7836
acb98cb5
UD
7837 [BZ #2499]
7838 * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Avoid
7839 possibly unaligned memory accesses.
7840
bce16467
UD
7841 * include/arpa/nameser.h: Also optimize NS_PUT16 and NS_PUT32.
7842 * resolv/res_mkquery.c: Use NS_PUT16 and NS_PUT32 instead of __putshort
7843 and __putlong respectively. Correct buffer overflow check for
7844 NS_NOTIFY_OP.
7845
7846 * resolv/res_send.c (send_vc): Use ns_put16 instead of putshort.
7847
8e45b1ac
UD
7848 * resolv/res_send.c (res_queriesmatch): Fix typo in comment.
7849 (send_dg): Rewrite error handling to be more compact and avoid
7850 double recomputation of timeouts. Pass MSG_NOSIGNAL to send.
7851
697e1628
UD
7852 * include/arpa/nameser.h: Add optimizations for NS_GET16 and NS_GET32.
7853
7854 * resolv/res_send.c (res_nameinquery): Use NS_GET16 directly
7855 instead of ns_get16.
7856 (res_queriesmatch): Likewise. Minor optimization.
7857
acf82eaf
UD
7858 [BZ #2499]
7859 * resolv/res_query.c (__libc_res_nquery): If answerp != NULL,
7860 __libc_res_nsend might reallocate the buffer for the answer. In
7861 this case we have to reload the HP pointer.
7862
7bfee654
UD
78632006-05-05 Ulrich Drepper <drepper@redhat.com>
7864
694b49ca
UD
7865 * stdio-common/vfscanf.c (memory_error): Remove definition. Add
7866 some branch prediction hints.
7867
7bfee654
UD
7868 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Define SPLICE_F_*.
7869 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
7870 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
7871 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
7872 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
7873 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
7874 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
7875 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
7876
308bb2d5
UD
78772006-05-05 Martin Schwidefsky <schwidefsky@de.ibm.com>
7878
7879 * sysdeps/s390/s390-32/elf/start.S: Replace pc relative relocation
7880 by a GOT relocation to make Scrt1.o position independent.
7881 * sysdeps/s390/s390-64/elf/start.S: Likewise.
7882
7883 * sysdeps/unix/sysv/linux/s390/s390-32/syscall.S: Add support for
7884 six system call parameters.
7885 * sysdeps/unix/sysv/linux/s390/s390-64/syscall.S: Likewise.
7886
cdb9c321
UD
78872006-05-05 Ulrich Drepper <drepper@redhat.com>
7888
7889 * sunrpc/svcauth_des.c (cache_init): Use calloc instead of
7890 malloc&bzero.
7891
7892 * sunrpc/svc_udp.c (BZERO): Remove definition.
7893 (CALLOC): Define.
7894 (svc_enablecache): Use CALLOC instead of ALLOC&BZERO.
7895
7896 * sunrpc/des_impl.c: Remove ALT_ECB support. We never used it.
7897 (des_SPtrans): Use uint32_t type.
7898 (des_skb): Likewise.
7899
7900 * sunrpc/xdr_ref.c (xdr_reference): Use calloc instead of malloc&bzero.
7901
fff04b32
UD
79022006-05-05 Jakub Jelinek <jakub@redhat.com>
7903
7904 [BZ #2509]
7905 * stdio-common/tst-printf.sh: Adjust for tst-printf.c change even
7906 on 32-bit arches.
7907
79082006-05-05 Ulrich Drepper <drepper@redhat.com>
7909
7910 * locale/programs/ld-address.c (address_finish): Fix one more
cdb9c321 7911 place where the iso639 array might be accessed beyond the limits.
fff04b32 7912
077a30bc 79132006-05-04 Ulrich Drepper <drepper@redhat.com>
77dd4c3b 7914
f2d5cf50
UD
7915 * nis/nis_table.c (nis_list): Avoid clearing res twice before
7916 filling it for the first time.
7917
3e4370cf
UD
7918 * nis/nis_table.c (get_tablepath): Renamed from __get_tablepath.
7919 Adjust all callers.
7920 Free res object content before returning.
7921
5e65a53d
UD
7922 * sunrpc/xdr_array.c (xdr_array): Use calloc instead of malloc&bzero.
7923
48be3114
UD
7924 * sunrpc/key_call.c (__rpc_thread_key_cleanup): Also free
7925 client->cl_auth.
7926
ca4fce0e
UD
7927 * sunrpc/rpc_thread.c (__rpc_thread_destroy): Don't skip entire
7928 cleanup for initial thread, just the free call on TVP.
7929
077a30bc 7930 * nscd/gai.c (__getline): Define.
3b7a95fb 7931
5d37289a 7932
3f87d901 7933See ChangeLog.16 for earlier changes.
This page took 1.178233 seconds and 5 git commands to generate.