]> sourceware.org Git - glibc.git/blame - ChangeLog
2009-01-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
[glibc.git] / ChangeLog
CommitLineData
5aff6fdf
RM
12009-01-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
2
3 * bits/resource.h (PRIO_PROCESS, PRIO_PGRP, PRIO_USER): Add macros.
4
b2bcd249
UD
52009-01-03 Ulrich Drepper <drepper@redhat.com>
6
7 * sysdeps/unix/sysv/linux/i386/sysdep.h: Describe 6th argument
8 handling.
9
d36ad871
UD
102009-01-02 Ulrich Drepper <drepper@redhat.com>
11
ebb2788e
UD
12 * sysdeps/unix/sysv/linux/kernel-features.h
13 (__ASSUME_FUTEX_CLOCK_REALTIME): Define.
14
72098116
UD
15 * wcsmbs/wcsnrtombs.c (__wcsnrtombs): Create temporary state object
16 if no output is written.
17
623d0bf5
UD
18 * version.h: Bump to 2.10 development.
19
d36ad871
UD
20 * posix/getconf.c: Update copyright year.
21 * nss/getent.c: Likewise.
22 * iconv/iconvconfig.c: Likewise.
23 * iconv/iconv_prog.c: Likewise.
24 * elf/ldconfig.c: Likewise.
25 * catgets/gencat.c: Likewise.
26 * csu/version.c: Likewise.
27 * elf/ldd.bash.in: Likewise.
28 * elf/sprof.c (print_version): Likewise.
29 * locale/programs/locale.c: Likewise.
30 * locale/programs/localedef.c: Likewise.
31 * nscd/nscd.c (print_version): Likewise.
32 * debug/xtrace.sh: Likewise.
33 * malloc/memusage.sh: Likewise.
34 * malloc/mtrace.pl: Likewise.
35 * debug/catchsegv.sh: Likewise.
36
25df09ab
UD
372008-12-29 Mike Frysinger <vapier@gentoo.org>
38
39 * iconvdata/Makefile (iconv-rules): Use LC_ALL=C when running awk
40 script.
41
16b7dc27
UD
422008-12-29 Ulrich Drepper <drepper@redhat.com>
43
bfbbc63f
UD
44 * sysdeps/posix/getaddrinfo.c (gaih_inet): When the
45 gethostbyname4_r function call succeeded, just leave the loop.
46
0f2ae55c
UD
47 [BZ #9694]
48 * wcsmbs/wchar.h: Move undefs for local __need_* constants to the
49 very end.
5703f472
UD
50 * wctype/wctype.h: Get wint_t definition directly from <stddef.h>.
51 * wctype/Makefile (tests): Add bug-wctypeh.
52 * wctype/bug-wctypeh.c: New file.
0f2ae55c 53
50e481ce
UD
54 * nscd/nscd_gethst_r.c (nscd_gethst_r): Don't use nscd if
55 LOCALDOMAIN is defined.
56 * nscd/nscd_getai.c (__nscd_getai): Likewise.
57
217d45cd
UD
58 * sysdeps/x86_64/bits/select.h: New file.
59
16b7dc27
UD
60 * resolv/res_init.c (__res_vinit): Count all servers in statp->nscount.
61
bf93cd3b
UD
622008-12-21 Bruno Haible <bruno@clisp.org>
63
64 [BZ #9677]
65 * wcsmbs/mbsnrtowcs.c (__mbsnrtowcs): Create temporary state object
66 if no output is written.
67
49159e12
UD
682008-12-13 Klaus Dittrich <kladit@arcor.de>
69
70 * login/utmp_file.c (pututline_file): Replace call to dup2 with
71 libc internal symbol __dup2 to avoid access through the PLT.
72
d4f0720b
UD
732008-12-08 Ulrich Drepper <drepper@redhat.com>
74
135460f4
UD
75 [BZ #6545]
76 * sysdeps/unix/sysv/linux/bits/socket.h (SCM_CREDENTIALS): Make
77 available only for __USE_GNU.
78
ed0da352
UD
79 * inet/Makefile (tests): Add tst-getni2.
80 * inet/tst-getni2.c: New file.
81
d4f0720b
UD
82 [BZ #7080]
83 * inet/getnameinfo.c (getnameinfo): Check for output buffers being
84 NULL when NI_NAMEREQD is set.
85 Patch mostly by Yang Hongyang <yanghy@cn.fujitsu.com>.
86 * inet/Makefile (tests): Add tst-getni1.
87 * inet/tst-getni1.c: New file.
88
cd72adeb
UD
892008-12-03 Petr Baudis <pasky@suse.cz>
90
91 [BZ #7067]
92 * nscd/connections.c (invalidate_cache): Use prune_run_lock
93 instead of prune_lock.
94 (nscd_run_prune): Before calling prune_cache, take prune_run_lock.
95 * nscd/nscd.h (database_dyn): Add prune_run_cache.
96
e87946cc
UD
972008-12-07 Ulrich Drepper <drepper@redhat.com>
98
200da00a
UD
99 * resolv/res_send.c (send_dg): Use correct guards for SOCK_CLOEXEC
100 use.
101
102 * sysdeps/unix/sysv/linux/kernel-features.h: Fix typo in accept4
103 handling.
104
905ef0da
UD
105 * resolv/res_init.c (__res_vinit): Always assign to statp->nscount
106 after reading name server list.
107
71053765 108 [BZ #7058]
e87946cc
UD
109 * nis/nss_nis/nis-hosts.c (_nss_nis_gethostbyname4_r): Fix memory
110 handling for host name aliases.
111
d43b8bdd
JJ
1122008-11-24 Arkadiusz Miƛkiewicz <arekm@maven.pl>
113
114 * sysdeps/i386/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Use LOAD_PIC_REG
115 instead of doing things manually.
116
1172008-11-26 Chris Steel <chris.steel.lnx@googlemail.com>
118
119 * posix/regex_internal.h (build_wcs_upper_buffer):
120 Return type is reg_error_t.
121
25a34eb7
UD
1222008-12-05 Ulrich Drepper <drepper@redhat.com>
123
f3721ab2
UD
124 * posix/globtest.sh: Use mktemp to create temporary file and
125 directory.
126
25a34eb7
UD
127 * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_SET_S): Handle large
128 sets correctly.
129 (__CPU_CLR_S): Likewise.
130 (__CPU_ISSET_S): Likewise.
131
8680179f
UD
1322008-12-05 Joseph Myers <joseph@codesourcery.com>
133 Ulrich Drepper <drepper@redhat.com>
134
135 * scripts/firstversion.awk: Use custom comparison function to compare
136 version numbers.
137 * scripts/versions.awk: Use sort invocation which can handle
138 multi-digit sub-version numbers.
139
72d50908
UD
1402008-12-04 Ulrich Drepper <drepper@redhat.com>
141
142 * locale/programs/ld-address.c (DEFINE_LANGUAGE_CODE2): Define.
143 * locale/iso-639.def: Add Chhattisgarhi entry.
144
f93fc0b7
UD
1452008-12-02 Ulrich Drepper <drepper@redhat.com>
146
da5ac135
UD
147 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname3_r): Recognize
148 ESRCH return value.
149 (_nss_dns_gethostbyname4_r): Likewise.
150 * resolv/res_init.c (__res_vinit): Initialize nscount to zero.
151 * sysdeps/posix/getaddrinfo.c (gaih_inet): In case we use
152 gethostbyname4_r, we don't have a separate IPv6 status, so copy
153 the no_data variable.
154
6f5c3117
UD
155 * resolv/res_init.c (__res_vinit): Fill in IPv4 name server
156 information at the correct index.
157
f93fc0b7
UD
158 * socket/sys/socket.h: Declare accept4.
159 * socket/accept4.c: New file.
160 * sysdeps/unix/sysv/linux/accept4.c: New file.
161 * sysdeps/unix/sysv/linux/i386/accept4.S: New file.
162 * socket/Makefile (routines): Add accept4.
163 * socket/Versions: Export accept4 with version GLIBC_2.10.
164 * socket/paccept.c: Removed.
165 * sysdeps/unix/sysv/linux/paccept.c: Removed.
166 * sysdeps/unix/sysv/linux/i386/paccept.S: Removed.
167 * Versions.def: Define GLIBC_2.10 for libc.
168 * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_ACCEPT4.
169
170 * nscd/connections.c: Use accept4.
171
172 * sysdeps/unix/sysv/linux/i386/socket.S: Fix comment.
173
1fa7ae05
UD
1742008-12-01 Ulrich Drepper <drepper@redhat.com>
175
9744268c
UD
176 * resolv/res_send.c (send_dg): Create sockets with non-blocking
177 flag already set.
178
1fa7ae05
UD
179 * stdlib/setenv.c (unsetenv): Don't search environment if it does
180 not exist.
30c06371
UD
181 * stdlib/Makefile (tests): Add tst-unsetenv1.
182 * stdlib/tst-unsetenv1.c: New file.
1fa7ae05 183
37a6a271
UD
1842008-11-29 Ulrich Drepper <drepper@redhat.com>
185
186 * login/utmp_file.c (file_writable): New variable.
187 (setutent_file): Don't try to open file for writing.
188 (pututline_file): Before writing, make descriptor writable if
189 necessary.
190
ca4dc0fe
UD
1912008-11-26 Ulrich Drepper <drepper@redhat.com>
192
be4607eb
UD
193 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Only restrict search
194 to IPv4 or IPv6 if an interface has been found.
ca4dc0fe 195
01a74645
RM
1962008-11-26 Roland McGrath <roland@redhat.com>
197
24fd0a5b
RM
198 * sysdeps/unix/sysv/linux/alpha/ipc_priv.h: Renamed to ...
199 * sysdeps/unix/sysv/linux/powerpc/ipc_priv.h: ... here.
200
201 * sysdeps/unix/sysv/linux/alpha/wordexp.c: Renamed to ...
202 * sysdeps/unix/sysv/linux/ia64/wordexp.c: ... here.
203 * sysdeps/unix/sysv/linux/sparc/sparc64/wordexp.c: Change #include.
204
01a74645
RM
205 * elf/elf.h (NT_386_IOPERM): New macro.
206 (NT_PPC_VSX): New macro.
207
c0439b95
RM
2082008-11-25 Roland McGrath <roland@redhat.com>
209
210 * sysdeps/alpha, sysdeps/unix/bsd/osf/alpha,
211 sysdeps/unix/bsd/Attic/osf1/alpha, sysdeps/unix/sysv/linux/alpha,
212 sysdeps/unix/sysv/linux/alpha/alpha, sysdeps/unix/alpha,
213 sysdeps/mach/alpha, sysdeps/mach/hurd/alpha:
214 Subdirectories moved to ports repository.
215 * configure.in (base_machine): Remove alpha case.
216
d3dc523b
RM
2172008-11-25 Thomas Schwinge <tschwinge@gnu.org>
218
219 * sysdeps/mach/strerror_l.c: New file.
220
edba7a54
UD
2212008-11-13 Ryan S. Arnold <rsa@us.ibm.com>
222
223 [BZ #6411]
224 * sysdeps/powerpc/fpu/Makefile: Added test case tst-setcontext-fpscr.
225 * sysdeps/powerpc/fpu/feholdexcpt.c (_FPU_MASK_ALL): Define to replace
226 magic numbers.
227 * sysdeps/powerpc/fpu/fenv_libc.h (fesetenv_register): Dynamically
228 choose mtfsf insn based on PPC_FEATURE_HAS_DFP.
229 (relax_fenv_state): Same as above.
230 (FPSCR_29): Reserve bit in ISA 2.05.
231 (FPSCR_NI): Provide define for compat.
232 * sysdeps/powerpc/fpu/fesetenv.c (_FPU_MASK_ALL): Define to replace
233 magic numbers.
234 * sysdeps/powerpc/fpu/feupdateenv.c (_FPU_MASK_ALL): Define to replace
235 magic numbers.
236 * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c: New file. Test case to
237 test setcontext and swapcontext with dynamic 64-bit FPSCR detection.
238 * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp): Adjust
239 access to hwcap to account for hwcap size increase to uint64_t.
240 * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S (__sigsetjmp ):
241 Likewise.
242 * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S
243 (*setcontext): Likewise.
244 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/setcontext.S:
245 New file.
246 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/swapcontext.S:
247 New file.
248 * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S
249 (*setcontext): dynamically select mtfsf insn based on
250 PPC_FEATURE_HAS_DFP. Adjust access to hwcap to account for hwcap size
251 increase to uint64_t.
252 * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S
253 (*swapcontext): dynamically select mtfsf insn based on
254 PPC_FEATURE_HAS_DFP. Adjust access to hwcap to account for hwcap size
255 increase to uint64_t.
256 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/setcontext.S:
257 New file.
258 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/swapcontext.S:
259 New file.
260 * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
261 (*setcontext): dynamically select mtfsf insn based on
262 PPC_FEATURE_HAS_DFP.
263 * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
264 (*swapcontext): dynamically select mtfsf insn based on
265 PPC_FEATURE_HAS_DFP.
266
ec297962
UD
2672008-11-13 Ulrich Drepper <drepper@redhat.com>
268
b5449f8a 269 * version.h: Bump for 2.9 release.
f52bb4d7 270 * include/features.h (__GLIBC_MINOR__): Bump to 9.
b5449f8a 271
ec297962
UD
272 [BZ #7029]
273 * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_ALLOC_SIZE):
274 Multiply with sizeof of __cpu_mask, not 8 unconditionally after
275 all the rounding.
276
3cac8b75
UD
2772008-11-11 Ulrich Drepper <drepper@redhat.com>
278
0e54a725 279 [BZ #7009]
3cac8b75
UD
280 * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): Don't abort for
281 unknown request types for now.
282
58a4b51a
RM
2832008-11-11 Roland McGrath <roland@redhat.com>
284
285 * sysdeps/x86_64/configure: New file.
286
287 * configure.in: Add AC_SUBST(libc_cv_cpp_asm_debuginfo).
288 * configure: Regenerated.
289
01bd5e96
JJ
2902008-11-03 Martin Schwidefsky <schwidefsky@de.ibm.com>
291
292 * sysdeps/s390/s390-64/dl-trampoline.S (_dl_runtime_profile): Use the
293 correct instruction to remove the stack frame.
294
a9069550
JJ
2952008-11-03 Michael Matz <matz@suse.de>
296
297 * sysdeps/s390/bits/atomic.h (__arch_compare_and_exchange_val_32_acq,
298 __arch_compare_and_exchange_val_64_acq): Add "memory" clobber.
299
4b23f9bd
JJ
3002008-11-07 Jakub Jelinek <jakub@redhat.com>
301
09f66a4f
JJ
302 * include/stdio.h (__builtin_fwrite, __builtin_fwrite_unlocked):
303 Remove.
304
4b23f9bd
JJ
305 * bits/libc-tsd.h (__libc_tsd_define, __libc_tsd_address,
306 __libc_tsd_get, __libc_tsd_set): Add TYPE argument, use it as the type
307 of the thread variable instead of void *.
308 * sysdeps/mach/hurd/bits/libc-tsd.h (__libc_tsd_define,
309 __libc_tsd_address, __libc_tsd_get, __libc_tsd_set): Likewise.
310 * include/ctype.h (CTYPE_B, CTYPE_TOUPPER, CTYPE_TOLOWER): Adjust
311 __libc_tsd_define arguments.
312 (__ctype_b_loc, __ctype_toupper_loc, __ctype_tolower_loc): Adjust
313 __libc_tsd_address arguments. Remove union hack.
314 * include/rpc/rpc.h (RPC_VARS): Adjust __libc_tsd_define arguments.
315 * sunrpc/rpc_thread.c (RPC_VARS): Likewise.
316 (__rpc_thread_destroy, rpc_thread_multi, __rpc_thread_variables):
317 Adjust __libc_tsd_{set,get} arguments.
318 * ctype/ctype-info.c (CTYPE_B, CTYPE_TOUPPER, CTYPE_TOLOWER): Adjust
319 __libc_tsd_define arguments.
320 * locale/uselocale.c (__uselocale): Adjust __libc_tsd_{set,get}
321 arguments.
322 * locale/lc-ctype.c (_nl_postload_ctype): Likewise.
323 * locale/global-locale.c (__libc_tsd_LOCALE): Adjust type.
324 (LOCALE): Adjust __libc_tsd_define arguments.
325 * locale/localeinfo.h (_NL_CURRENT_LOCALE): Adjust __libc_tsd_get
326 arguments.
327 (LOCALE): Adjust __libc_tsd_define arguments.
328 * sysdeps/mach/hurd/malloc-machine.h (MALLOC): Adjust __libc_tsd_define
329 arguments.
330 (tsd_setspecific, tsd_getspecific): Adjust __libc_tsd_{set,get}
331 arguments.
332
486bdb88
UD
3332008-11-02 Ulrich Drepper <drepper@redhat.com>
334
335 * malloc/malloc.c (public_rEALLOc): When new arena is used, copy
336 really all bytes. Patch by Denys Vlasenko <dvlasenk@redhat.com>.
337
64647f9a
UD
3382008-11-01 Ulrich Drepper <drepper@redhat.com>
339
340 [BZ #6966]
341 * misc/hsearch_r.c (hsearch_r): Fix secondary hash function.
342
acd44dbc
UD
3432008-10-24 Joseph Myers <joseph@codesourcery.com>
344 Ulrich Drepper <drepper@redhat.com>
345
346 * math/tgmath.h (__floating_type): Use __builtin_classify_type in
347 definition for GCC 3.1 and later.
64647f9a 348
41e25904
UD
3492008-10-31 Jakub Jelinek <jakub@redhat.com>
350
351 * elf/dl-tls.c (__tls_get_addr): After calling _dl_update_slotinfo
352 refetch dtv, as it might have changed.
353 * elf/Makefile: Add rules to build and run tst-tls18.
354 * elf/tst-tls18.c: New test.
355 * elf/tst-tlsmod18a.c: New file.
356
e148a644 3572008-09-09 Aurelien Jarno <aurelien@aurel32.net>
97f12390 358
da9c2314 359 [BZ #6875]
e148a644
UD
360 * iconvdata/gconv-modules: Add LATIN9 as an alias to ISO-8859-15.
361
3622008-10-31 Ulrich Drepper <drepper@redhat.com>
97f12390 363
6daf1a2f
UD
364 [BZ #6867]
365 * sysdeps/powerpc/elf/rtld-global-offsets.sym: Fix typo.
366
6f576bf6
UD
367 [BZ #6919]
368 * posix/spawnattr_getschedparam.c (posix_spawnattr_getschedparam):
369 Fix length of copy operation.
370
45a8beb5
UD
3712008-10-02 Pierre Habouzit <madcoder@debian.org>
372
373 * sysdeps/unix/sysv/linux/eventfd.c (eventfd): Use the eventfd2 syscall
374 and fix its calling convention.
375
ad12e635
UD
3762008-10-07 Andreas Schwab <schwab@suse.de>
377
378 [BZ #6942]
379 * resolv/res_send.c (send_vc): Fix last change.
380 (send_dg): Align here as well.
381
3cf44918
UD
3822008-10-31 Ulrich Drepper <drepper@redhat.com>
383
dbb6ab3e
UD
384 * sysdeps/unix/sysv/linux/ulimit.c (__ulimit): Handle UL_GETFSIZE
385 return value in case rlimit is RLIM_INFINITY.
386
387 [BZ #6947]
388 * sysdeps/unix/sysv/linux/ulimit.c (__ulimit): Fix return value
389 for UL_SETFSIZE.
1828d6b0
UD
390 * resource/Makefile (tests): Add bug-ulimit1.
391 * resource/bug-ulimit1.c: New file.
dbb6ab3e 392
a5ff533e
UD
393 [BZ #6974]
394 * sunrpc/rpc_main.c (mkfile_output): Properly handle filename
395 without dot. Properly terminate the string with a null byte.
396 Based on a patch by Aurelien Jarno <aurelien@aurel32.net>.
397
4bed549a
UD
398 [BZ #6980]
399 * debug/getgroups_chk.c (__getgroups_chk): Return EINVAL error for
400 negative sizees.
401 * posix/bits/unistd.h (getgroups): Call __getgroups_chk for
402 negative __size.
403
3cf44918
UD
404 [BZ #6995]
405 * sysdeps/powerpc/powerpc32/dl-machine.c: Fix typo in message.
406
21b07d8b
UD
4072008-10-30 Ulrich Drepper <drepper@redhat.com>
408
332c4465
UD
409 * grp/initgroups.c (internal_getgrouplist): Don't prematurely
410 abort if there is no initgroups_dyn function.
411
21b07d8b
UD
412 * resolv/res_send.c (send_dg): On timeout, only return nonzero
413 result if any of the queries really provided an answer.
414
4caa3fb7
UD
4152008-10-28 Ulrich Drepper <drepper@redhat.com>
416
417 * po/lt.po: Update from translation team.
418
a22c3a0d
UD
4192008-10-26 Ulrich Drepper <drepper@redhat.com>
420
421 * po/id.po: Update from translation team.
422
49685151
UD
4232008-10-24 Ulrich Drepper <drepper@redhat.com>
424
425 * resolv/res_query.c (__libc_res_nquery): Add a few casts.
660675de 426 Fix tests for existence of second reply.
49685151 427
8d9d5d35
UD
4282008-10-23 Ulrich Drepper <drepper@redhat.com>
429
430 * po/id.po: New file.
431 Contributed by the Indonesian translation team.
432
208bc836
UD
4332008-10-22 Dmitry V. Levin <ldv@altlinux.org>
434
435 * misc/syslog.c (openlog_internal): Fix __have_sock_cloexec
436 initialization.
437
60a23f5a
UD
4382008-10-17 Jakub Jelinek <jakub@redhat.com>
439
440 * elf/Makefile: Add rules to build and run tst-tls17.
441 * elf/tst-tls17.c: New test.
442 * elf/tst-tlsmod17a.c: New file.
443 * elf/tst-tlsmod17b.c: Likewise.
444
292eb817
UD
4452008-10-17 Ulrich Drepper <drepper@redhat.com>
446
447 * stdlib/divmod_1.c: Use correct type for dummy variable.
448 * stdlib/mod_1.c: Likewise.
449
5df2a427
UD
4502008-10-16 Ulrich Drepper <drepper@redhat.com>
451
452 * elf/dl-tls.c (_dl_update_slotinfo): Copy all of the initial DTV.
453
472e5e08
JJ
4542008-10-16 Jakub Jelinek <jakub@redhat.com>
455
456 * sysdeps/unix/sysv/linux/sys/signalfd.h (signalfd): Fix __THROW vs.
457 __nonnull order for C++.
458 * sysdeps/unix/sysv/linux/alpha/sys/signalfd.h (signalfd): Likewise.
459 * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h (signalfd): Likewise.
460
86900abd
RM
4612008-10-01 Daniel Jacobowitz <dan@codesourcery.com>
462
463 * stdlib/longlong.h: Update from GCC.
464
19c10a47
JJ
4652008-10-09 Jakub Jelinek <jakub@redhat.com>
466 David S. Miller <davem@davemloft.net>
467
468 * sysdeps/sparc/sparc64/sparcv9v/memcpy.S: When not USE_BPR,
469 make sure any registers used with 64-bit 'branch-on-register'
470 instructions have their top 32-bits clear.
471 * sysdeps/sparc/sparc64/sparcv9v/memset.S: Likewise.
472 * sysdeps/sparc/sparc64/sparcv9v2/memcpy.S: Likewise.
473
2fdde3b9
UD
4742008-09-18 Andreas Schwab <schwab@suse.de>
475
476 [BZ #6942]
477 * resolv/res_send.c (send_vc): Fix use of unaligned address.
478 Properly handle partial reads.
479
6ba25fcb
RM
4802008-10-01 Mark Shinwell <shinwell@codesourcery.com>
481
482 * elf/elf.h (STO_MIPS_PLT): New.
483 (R_MIPS_COPY): New.
484 (R_MIPS_JUMP_SLOT): New.
485 (R_MIPS_NUM): Redefine to 128.
486 (DT_MIPS_PLTGOT): New.
487 (DT_MIPS_RWPLT): New.
488 (DT_MIPS_NUM): Redefine to 0x35.
489
97898201
UD
4902008-10-01 Ulrich Drepper <drepper@redhat.com>
491
492 * timezone/africa: Update from tzdata2008f.
493 * timezone/asia: Likewise.
494 * timezone/australasia: Likewise.
495 * timezone/europe: Likewise.
496 * timezone/leapseconds: Likewise.
497 * timezone/northamerica: Likewise.
498 * timezone/southamerica: Likewise.
499 * timezone/zone.tab: Likewise.
500
3452ded5
UD
5012008-09-30 Ulrich Drepper <drepper@redhat.com>
502
503 * nscd/connections.c: Disable use of paccept for now.
504
54ad9327
UD
5052008-09-29 Ulrich Drepper <drepper@redhat.com>
506
8ec2550e
UD
507 * socket/Versions: Remove paccept export for GLIBC_2.9.
508 * socket/Makefile (routines): Remove paccept.
509 * socket/sys/socket.h: Remove paccept declaration.
510
54ad9327
UD
511 * po/sv.po: Update from translation team.
512
1c5eba39
UD
5132008-09-22 Deborah S. Townsend <dstownse@us.ibm.com>
514
515 * sysdeps/s390/s390-64/s390x-mcount.S: Replace ahi with aghi.
516 * sysdeps/unix/sysv/linux/s390/s390-64/socket.S: Likewise.
517
0a26fc4d
UD
5182008-09-16 Ulrich Drepper <drepper@redhat.com>
519
520 * dlfcn/dlopen.c (dlopen_doit): Allow __RTLD_SPROF flag.
521 Patch by Olivier Fourdan <ofourdan@redhat.com>.
522
2bcaff08
UD
5232008-09-15 Ulrich Drepper <drepper@redhat.com>
524
525 * sunrpc/rpc/svc.h: Declare svcfd_create.
526 Patch by Michael Solberg <msolberg@redhat.com>.
527
caa60cb9
UD
5282008-09-12 Flavio Leitner <fleitner@redhat.com>
529 Ulrich Drepper <drepper@redhat.com>
530
531 * malloc/malloc.c (public_vALLOc): Try other arenas in case
532 _int_valloc fails.
533 (public_pVALLOc): Likewise.
534
6c161112
AJ
5352008-09-02 Andreas Jaeger <aj@suse.de>
536
537 * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: Fix last
538 commit.
539
0cb269d7
RM
5402008-08-26 Aurelien Jarno <aurelien@aurel32.net>
541
452034cc 542 [BZ #6860]
2bcaff08 543 * hurd/hurd/signal.h (HURD_MSGPORT_RPC): Fix a typo.
0cb269d7 544
13074b5b
RM
5452008-07-18 Daniel Jacobowitz <dan@codesourcery.com>
546
547 * Makefile (check-data): Check data directory in add-ons.
548 * elf/Makefile (check-data): Likewise.
549
58801a0e
RM
5502008-08-18 Roland McGrath <roland@redhat.com>
551
552 * configure.in (--with-cpu): Check compiler support for -march/-mcpu.
553 * configure: Regenerated.
554 * config.make.in (cflags-cpu): New substituted variable.
555 (with-cpu): Variable removed.
556 * Makeconfig (+cflags): Use $(cflags-cpu), not $(with-cpu).
557
7df49c5d
UD
5582008-08-14 Ryan S. Arnold <rsa@us.ibm.com>
559
560 [BZ #6845]
561 * sysdeps/powerpc/fpu/bits/mathinline.h (__signbitl): Copy new
562 __signbitl definition and __LONG_DOUBLE_128__ guard from:
563 * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h: Remove as
564 redundant. Functions which call floating point assembler operations
565 should go into a sysdeps powerpc/fpu directory.
566
965805e8
UD
5672008-08-15 Ulrich Drepper <drepper@redhat.com>
568
569 * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Define MAP_STACK.
570 * sysdeps/unix/sysv/linux/i386/bits/mman.h: Likewise.
571
9cf73ab0
UD
5722008-08-14 Ulrich Drepper <drepper@redhat.com>
573
62a1ffc6
UD
574 * sysdeps/x86_64/memset.S: Reduce size of tables for PIC.
575
9cf73ab0
UD
576 * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): Undo all
577 change related to AT_EXECFN. We cannot use that string.
578 * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Remove
579 _dl_execfn member.
580 * elf/dl-support.c: Remove _dl_execfn variable.
581 (_dl_aux_init): Remove handling of AT_EXECFN.
582 * elf/dl-sysdep.c (_dl_sysdep_start): Remove handling of AT_EXECFN.
583 * elf/rtld.c (process_envvars): Remove use of __ASSUME_AT_EXECFN.
584
1bfa05cf
UD
5852008-08-13 Ulrich Drepper <drepper@redhat.com>
586
7b3ba2c4
UD
587 [BZ #6544]
588 * libio/fmemopen.c: Implement binary mode. In this mode no NUL
589 byte gets added to writes and seeks from the end use the length of
590 the buffer and not the currently terminating NUL byte.
591
1bfa05cf
UD
592 [BZ #6634]
593 * login/utmp_file.c (getutent_r_file): Take additional parameter.
594 Set to true if locking failed.
595 (getutid_r_file): Adjust caller.
596 (pututline_file): Likewise. Return NULL in this case.
597 Patch mostly by halesh.s@gmail.com.
598
c5671698
UD
5992008-08-12 Ulrich Drepper <drepper@redhat.com>
600
601 [BZ #6589]
602 * sysdeps/unix/sysv/linux/ifaddrs.c (struct sockaddr_ll_max):
603 Define.
604 (struct ifaddrs_storage): Use it instead of sockaddr_ll.
605
4497384e
UD
6062008-08-12 Ryan S. Arnold <rsa@us.ibm.com>
607
608 [BZ #6839]
609 * sysdeps/powerpc/powerpc32/dl-machine.c (CHECK_STATIC_TLS): Remove
610 macro since it is now available in elf/dynamic-link.h.
611
675d7111
RM
6122008-08-12 Roland McGrath <roland@frob.com>
613
614 * hurd/hurd/signal.h (HURD_MSGPORT_RPC): Avoid -Wparenthesis triggers,
615 in case used outside of libc.
616 Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>
617
8b254432
UD
6182008-08-11 Ulrich Drepper <drepper@redhat.com>
619
620 * resolv/res_mkquery.c (res_nmkquery): Call ns_name_compress
621 directly instead of going through dn_comp.
622
ac84eeca
RM
6232008-08-11 Aurelien Jarno <aurel32@debian.org>
624
625 * sysdeps/mach/i386/machine-lock.h (__spin_unlock, __spin_try_lock):
626 Fix asm constraints.
627
f081b451
UD
6282008-08-07 Ulrich Drepper <drepper@redhat.com>
629
630 [BZ #6790]
631 * sysdeps/unix/sysv/linux/bits/in.h (IP_PMTUDISC_PROBE): Define.
632 (IPV6_PMTUDISC_PROBE): Likewise.
633
30a4429e
UD
6342008-08-07 Pete Eberlein <eberlein@us.ibm.com>
635
636 [BZ #6791]
637 * sysdeps/unix/sysv/linux/powerpc/bits/mman.h (PROT_SAO): Define.
638
1642331d 6392008-08-01 Steven Munroe <sjmunroe@us.ibm.com>
626f68ff 640 Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
1642331d
UD
641
642 [BZ #6817]
643 * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags):
644 Added the members 'vsx' and 'arch_2_06'.
645 (_dl_powerpc_platforms): Add the member 'power7'.
646 * sysdeps/powerpc/dl-procinfo.h: Modify _DL_HWCAP_FIRST
647 to reflect the changes required by VSX and ISA 2.06.
648 Modify _DL_PLATFORMS_COUNT to reflect the addition of
649 'power7'.
650 Defined PPC_PLATFORM_POWER7.
651 (_dl_string_platform): Add support for POWER7.
652 * sysdeps/powerpc/sysdep.h: Define bit masks for VSX
653 capability and ISA 2.06.
654
48b94661
UD
6552008-08-07 Ulrich Drepper <drepper@redhat.com>
656
657 [BZ #6824]
658 * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h: Use correct
659 macro to detect use of 128 bit long double.
660 Patch by Ryan S. Arnold <rsa@us.ibm.com>.
661
9523fd28
UD
6622008-08-05 Ulrich Drepper <drepper@redhat.com>
663
9c0cb150
UD
664 * scripts/gen-as-const.awk: Use 32-bit values on 32-bit platforms.
665
46aea5cb 666 [BZ #5794]
9523fd28
UD
667 * sysdeps/i386/fpu/s_expm1l.S: Simply use exp implementation for large
668 parameters.
669 * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
670 Patch by Denys Vlasenko <dvlasenk@redhat.com>.
671
c400c931
UD
6722008-08-03 Ulrich Drepper <drepper@redhat.com>
673
674 * nscd/connections.c (main_loop_poll): Pass a buffer which is
675 guaranteed to be large enough to read inotify event. Ignore
676 EAGAIN error. Better error message. Add branch predicition.
677 (main_loop_epoll): Likewise.
678
3f39adac
RM
6792008-08-02 Roland McGrath <roland@frob.com>
680
681 * sysdeps/mach/i386/machine-lock.h (__spin_unlock, __spin_try_lock):
682 Add memory clobbers.
683
3501542f
UD
6842008-08-02 Ulrich Drepper <drepper@redhat.com>
685
48b22986
UD
686 * manual/arith.texi: Avoid @strong{Note:}.
687 * manual/creature.texi: Likewise.
688 * manual/filesys.texi: Likewise.
689 * manual/math.texi: Likewise.
690 * manual/memory.texi: Likewise.
691 * manual/resource.texi: Likewise.
692 * manual/syslog.texi: Likewise.
693 * manual/time.texi: Likewise.
694
3501542f
UD
695 * sysdeps/posix/clock_getres.c (hp_timing_getres): Remove inline
696 to prevent warning.
697
17756df3
UD
6982008-08-01 Ulrich Drepper <drepper@redhat.com>
699
ebcc1f4d
UD
700 * sysdeps/unix/sysv/linux/Versions: Fix changes due to old patch for
701 new epoll_create1 interface.
702 * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
703 * sysdeps/unix/sysv/linux/sys/epoll.h: Likewise.
704 * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
705
144bfa86
UD
706 * include/arpa/nameser.h (NS_GET16): Use const pointer.
707 (NS_GET32): Likewise.
708
7e1b29c6
UD
709 * sysdeps/unix/sysv/linux/kernel-features.h: s390 has the new
710 syscalls, too.
711
42fa1f67
UD
712 * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): We cannot
713 use the AT_EXECFN value if it is no absolute path.
714 * sysdeps/unix/sysv/linux/kernel-features.h: Never define
715 __ASSUME_AT_EXECFN.
716
cd5743fd
UD
717 * Versions.def: Add GLIBC_2.9 to libresolv.
718 * include/resolv.h: Remove hidden proto declarations for __ns_*
719 functions. Add them for __dn_count_labels and __p_secstodate.
720 * include/arpa/nameser.h: Add a number of hidden proto declarations.
721 Define ns_msg_getflags macro here.
722 * resolv/res_debug.c: Add hidden definition for __dn_count_labels
723 and __p_secstodate.
724 * resolv/Versions: Export functions from <arpa/nameser.h> from
725 libresolv in version GLIBC_2.9.
726 * resolv/ns_name.c: Integrate changes from bind 9.5.0. Add necessary
727 hidden definitions.
728 * resolv/ns_netint.c: Likewise.
729 * resolv/ns_parse.c: Likewise.
730 * resolv/ns_print.c: Likewise.
731 * resolv/ns_samedomain.c: Likewise.
732 * resolv/ns_ttl.c: Likewise.
733 * resolv/arpa/nameser_compat.h: Likewise.
734 * resolv/arpa/nameser.h: Likewise. Remove macros which redirect
735 function calls.
736 * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Use __ns_get16
737 instead of ns_get16.
738 * resolv/nss_dns/dns-host.c (getanswer_r): Use __ns_get16 and
739 __ns_get32 instead of ns_get16 and ns_get32 respectively.
740 (gaih_getanswer_slice): Likewise.
741 * resolv/Makefile (libresolv-routines): Add ns_date.
742 * resolv/ns_date.c: New file.
743
17756df3
UD
744 * elf/Makefile (check-localplt.out): Also check libresolv and
745 libcrypt.
746
46bc5d43
UD
7472008-07-31 Ulrich Drepper <drepper@redhat.com>
748
749 * sysdeps/unix/sysv/linux/kernel-features.h: Define
750 __ASSUME_O_CLOEXEC.
751
a707cff6
UD
7522008-07-30 Ulrich Drepper <drepper@redhat.com>
753
3c227386
UD
754 * sysdeps/posix/getaddrinfo.c (gaih_inet): Raise size of initial
755 buffer passed to NSS functions.
756
9523fd28 757 * nscd/connections.c (nscd_init): Typo in preprocessor directive.
bd7f4857
UD
758
759 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PACCEPT):
760 Define.
761
a707cff6
UD
762 * misc/syslog.c (openlog_internal): Fix compile problem.
763
0424d007
RM
7642008-07-28 Roland McGrath <roland@redhat.com>
765
766 * elf/dl-sysdep.c (_dl_show_auxv): Add AT_EXECFN to the table.
767
b7da31a1
UD
7682008-07-28 Ulrich Drepper <drepper@redhat.com>
769
300ea0ad
UD
770 * io/ftw.c (add_object): Remove inline to avoid warning.
771
d6173baa
UD
772 * sysdeps/unix/sysv/linux/paccept.c: Fix compile problem.
773
b7da31a1
UD
774 * resolv/res_send.c (__libc_res_nsend): Take additional parameter.
775 Use it instead of locally defined resplen2 variable.
776 (res_nsend): Adjust for __libc_res_nsend interface change.
777 (send_vc): Initialize *resplen2 if necessary. Read length of
778 package into an appropriately aligned variable. Store converted length
779 in new variable and use it appropriately.
780 Add branch prediction help.
781 * resolv/res_query.c (__libc_res_nquery): Take additional parameter
782 and pass it on to __libc_res_nsend. Adjust all callers.
783 (__libc_res_nsearch): Likewise.
784 (__libc_res_nqeurydomain): Likewise.
785 * resolv/nss_dns/dns-host.c: Adjust for __libc_res_nsearch interface
786 change.
787 (_nss_dns_gethostbyname4): Don't unconditionally allocate tmp array.
788 Define resplen2 variable and pass it to __libc_res_nsearch and then
789 to gaih_getanswer.
790 (getanswer_r): In case of incorrect DNS data don't overread buffer.
791 Add branch prediction.
792 (gaih_getanswer_slice): Likewise. Check for invalid data types.
793 (gaih_getanswer): Don't decode second slice if first one failed due
794 to a too small buffer. Don't let not found status of second
795 decoder shadow results of the first.
796 * resolv/gethnamaddr.c (gethostbyname2): Adjust for __libc_res_nsearch
797 and __libc_res_nquery interface changes
798 (gethostbyaddr): Adjust for __libc_res_nquery interface change.
799 * include/resolv.h: Adjust prototypes for __libc_res_nquery,
800 __libc_res_nsearch, and __libc_res_nsend.
801 * resolv/nss_dns/dns-canon.c: Adjust for __libc_res_nquery interface
802 change.
803 * resolv/nss_dns/dns-network.c: Adjust for __libc_res_nquery and
804 __libc_res_nsearch interface changes.
805
11ed3eae
UD
8062008-07-27 Ulrich Drepper <drepper@redhat.com>
807
372aece0
UD
808 * libio/iopopen.c (_IO_new_proc_open): Remove unnecessary volatile.
809
e038616f
UD
810 * posix/wordexp.c (exec_comm): Use pipe2 if possible to create
811 file descriptors with close-on-exec set.
812 (exec_comm_child): Fix the case where the write end of the pipe is
813 STDOUT_FILENO already. In case it is, clear close-on-exec.
814
d6e0c2a6
UD
815 * sysdeps/unix/sysv/linux/syscalls.list: Add __pipe2 alias.
816 * io/pipe2.c: Likewise.
817 * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_PIPE2
818 instead of __ASSUME_PACCEPT.
819 * include/unistd.h: Declare __have_pipe2.
820 * libio/iopopen.c: Implement "e" flag.
821 * libio/Makefile (tests): Add tst-popen1.
822 * libio/tst-popen1.c: New file.
823
11ed3eae
UD
824 * sysdeps/unix/sysv/linux/bits/socket.h: Define PF_ISDN and AF_ISDN.
825 * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
826
7438a80d
UD
8272008-07-26 Ulrich Drepper <drepper@redhat.com>
828
c4a710b6
UD
829 [BZ #6771]
830 * libio/fileops.c (_IO_new_file_attach): Preserve errno around
831 success call of _IO_SEEKOFF or calls which failed because the
832 descriptor is for a pipe.
833
31f3b159
UD
834 * sunrpc/key_call.c (getkeyserv_handle): Use FD_CLOEXEC instead of
835 magic number.
836
c0216dfc
UD
837 * misc/syslog.c (openlog_internal): Use SOCK_CLOEXEC if possible.
838
72112b0c
UD
839 * malloc/mtrace.c (mtrace): Use 'e' flag in fopen call. Drop
840 F_SETFD use if we know fopen set the flag.
841
7438a80d
UD
842 * login/utmp_file.c (setutent_file): Minor optimization in case
843 O_CLOEXEC is available.
844
7b91359b
UD
8452008-07-24 Tom "spot" Callaway <tcallawa@redhat.com>
846
847 * Makeconfig: Define pie-ccflag and PIE-ccflag variables.
848 * elf/Makefile: Use pie-ccflag variable.
849 * nscd/Makefile: Likewise.
850 * sysdeps/sparc/Makefile: Set $(pie-ccflag) to -fPIE.
851
4057dc45
UD
8522008-07-21 Andreas Krebbel <krebbel1@de.ibm.com>
853
e7135e24 854 [BZ #6724]
4057dc45
UD
855 * Versions.def: Add GLIBC_2.9 version tag for libutil.
856 * sysdeps/unix/sysv/linux/s390/bits/utmp.h: Copy of
857 gnu/bits/utmp.h. Check for __WORDSIZE_COMPAT32 removed.
858 * sysdeps/unix/sysv/linux/s390/bits/utmpx.h: Copy of
859 gnu/bits/utmpx.h. Check for __WORDSIZE_COMPAT32 removed.
860 * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Add new files
861 utmp32, utmpx32 and login32.
862 * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Add 2.9
863 versions of struct utmp functions to libc and libutil.
864 * sysdeps/unix/sysv/linux/s390/s390-32/utmp-compat.h: New file.
865 * sysdeps/unix/sysv/linux/s390/s390-32/getutent.c: New file.
866 * sysdeps/unix/sysv/linux/s390/s390-32/getutent_r.c: New file.
867 * sysdeps/unix/sysv/linux/s390/s390-32/getutid.c: New file.
868 * sysdeps/unix/sysv/linux/s390/s390-32/getutid_r.c: New file.
869 * sysdeps/unix/sysv/linux/s390/s390-32/getutline.c: New file.
870 * sysdeps/unix/sysv/linux/s390/s390-32/getutline_r.c: New file.
871 * sysdeps/unix/sysv/linux/s390/s390-32/getutmp.c: New file.
872 * sysdeps/unix/sysv/linux/s390/s390-32/getutxent.c: New file.
873 * sysdeps/unix/sysv/linux/s390/s390-32/getutxid.c: New file.
874 * sysdeps/unix/sysv/linux/s390/s390-32/getutxline.c: New file.
875 * sysdeps/unix/sysv/linux/s390/s390-32/login.c: New file.
876 * sysdeps/unix/sysv/linux/s390/s390-32/login32.c: New file.
877 * sysdeps/unix/sysv/linux/s390/s390-32/pututxline.c: New file.
878 * sysdeps/unix/sysv/linux/s390/s390-32/updwtmp.c: New file.
879 * sysdeps/unix/sysv/linux/s390/s390-32/updwtmpx.c: New file.
880 * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: New file.
881 * sysdeps/unix/sysv/linux/s390/s390-32/utmp32.c: New file.
882 * sysdeps/unix/sysv/linux/s390/s390-32/utmp32.h: New file.
883 * sysdeps/unix/sysv/linux/s390/s390-32/utmpx-convert.h: New file.
884 * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.c: New file.
885 * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: New file.
886
ff0bf753
UD
8872008-07-26 Ulrich Drepper <drepper@redhat.com>
888
619cc2f6
UD
889 * scripts/gen-as-const.awk: Generate more widely usable code by
890 using 64-bit arithmetic.
891
1311b164 892 * stdio-common/printf_fp.c (___printf_fp): Give wide outout code
3f414923 893 the same treatment as narrow output code in last patch.
1311b164 894
ff0bf753
UD
895 * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Namespace cleanup.
896
3f414923 897 [BZ #6763]
ff0bf753
UD
898 * elf/dl-load.c (local_strdup): Remove inline.
899 (_dl_map_object_from_fd): Don't allocate l_symbolic_searchlist.r_list.
900 * elf/dl-object.c (_dl_new_object): Allocate symbolic searchlist as
901 part of the object.
902
903 * sysdeps/unix/sysv/linux/dl-origin.c: Add const to avoid warning.
904
8ccf22f9
UD
9052008-07-25 Ulrich Drepper <drepper@redhat.com>
906
bdd24a30
UD
907 * sysdeps/unix/sysv/linux/kernel-features.h: IA-64 and SPARC have
908 the new syscalls, too.
b5c0b5e4 909
b41f1d14
UD
910 * sysdeps/i386/i686/memcmp.S: Fix unwind information.
911 Reported by Paul Pluzhnikov <ppluzhnikov@google.com>.
912
3703468e
UD
913 [BZ #6698]
914 * stdio-common/_i18n_number.h (_i18n_number_rewrite): Take additional
915 parameter for end of buffer. If temporary copy is too large use
916 malloc.
917 * stdio-common/vfprintf.c: Adjust for _i18n_number_rewrite
918 interface change.
919 * stdio-common/printf_fp.c (__printf_fp): Likewise.. Account for
920 string rewrite when allocating buffer.
921
bb0277bf
UD
922 * sysdeps/unix/sysv/linux/kernel-features.h: PPC has the new
923 syscalls, too.
924
9dd84772
UD
925 * nscd/connections.c (nscd_init): Clean up fcntl call.
926
c418b1ba
UD
927 * nscd/nscd_helper.c (open_socket): Use SOCK_CLOEXEC and
928 SOCK_NONBLOCK if possible.
929
b206d8b1
UD
930 * sysdeps/unix/sysv/linux/opensock.c (__opensock): Use
931 SOCK_CLOEXEC if available.
932
8ccf22f9
UD
933 * include/rpc/clnt.h: Declare __libc_clntudp_bufcreate and
934 __libc_clntudp_bufcreate_internal.
935 * include/sys/socket.h: Declare __have_sock_cloexec.
936 * socket/Makefile (aux): Add have_sock_cloexec.
937 * socket/have_sock_cloexec.c: New file.
938 * sunrpc/clnt_udp.h (clntudp_bufcreate): Now a wrapper around
939 __libc_clntudp_bufcreate.
940 (__libc_clntudp_bufcreate): Former implementation of clntudp_bufcreate
941 which takes an additional parameter. Create socket with non-blocking
942 mode and close-on-exec flag set, if wanted.
943 * sunrpc/Versions: Export __libc_clntudp_bufcreate@GLIBC_PRIVATE.
944 * nis/ypclnt.c (yp_bind_client_create): Use __libc_clntpudp_bufcreate
945 instead of clntudp_create. The socket has already the close-on-exec
946 flag set if SOCK_CLOEXEC is defined.
947
579cdf5a
UD
9482008-07-24 Ulrich Drepper <drepper@redhat.com>
949
3ff2c948
UD
950 * sysdeps/unix/sysv/linux/kernel-features.h: Define
951 __ASSUME_PACCEPT, __ASSUME_IN_NONBLOCK, and __ASSUME_PACCEPT if
952 appropriate.
953 * nscd/connections.c: Avoid fcntl calls to set close-on-exec flag and
954 non-blocking mode by using socket, paccept, and inotify_init1.
955
bdcebfc4
UD
956 * Versions.def (glibc): Add GLIBC_2.9.
957 * io/Makefile (routines): Add dup3 and pipe2.
958 * io/Versions [glibc] (GLIBC_2.9): Add dup3 and pipe2.
959 * io/dup3.c: New file.
960 * io/pipe2.c: New file.
961 * posix/unistd.h: Declare dup3 and pipe2.
962 * socket/Makefile (routines): Add paccept.
963 * socket/Versions [glibc] (GLIBC_2.9): Add paccept.
964 * socket/paccept.c: New file.
965 * socket/sys/socket.h: Declare paccept.
966 * sysdeps/unix/syscalls.list: Add entry for dup3.
967 * sysdeps/unix/sysv/linux/Versions [glibc] (GLIBC_2.9): Add
968 epoll_create2 and inotify_init1.
969 * sysdeps/unix/sysv/linux/eventfd.c: Use eventfd1 syscall if possible.
970 * sysdeps/unix/sysv/linux/paccept.c: New file.
971 * sysdeps/unix/sysv/linux/signalfd.c: Use signalfd4 syscall if
972 possible.
973 * sysdeps/unix/sysv/linux/socketcall.h: Add SOCKOP_paccept.
974 * sysdeps/unix/sysv/linux/syscalls.list: Add epoll_create2,
975 inotify_init1, and pipe2 entries.
976 * sysdeps/unix/sysv/linux/alpha/sys/epoll.h: New file.
977 * sysdeps/unix/sysv/linux/alpha/sys/eventfd.h: New file.
978 * sysdeps/unix/sysv/linux/alpha/sys/inotify.h: New file.
979 * sysdeps/unix/sysv/linux/alpha/sys/signalfd.h: New file.
980 * sysdeps/unix/sysv/linux/alpha/sys/timerfd.h: New file.
981 * sysdeps/unix/sysv/linux/bits/socket.h: Define SOCK_CLOEXEC and
982 SOCK_NONBLOCK.
983 * sysdeps/unix/sysv/linux/i386/paccept.S: New file.
984 * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: New file.
985 * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: New file.
986 * sysdeps/unix/sysv/linux/sparc/sys/inotify.h: New file.
987 * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h: New file.
988 * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: New file.
989 * sysdeps/unix/sysv/linux/sparc/bits/socket.h: New file.
990 * sysdeps/unix/sysv/linux/sys/epoll.h: Define EPOLL_CLOEXEC and
991 EPOLL_NONBLOCK. Declare epoll_create2.
992 * sysdeps/unix/sysv/linux/sys/eventfd.h: Define EFD_CLOEXEC and
993 EFD_NONBLOCK.
994 * sysdeps/unix/sysv/linux/sys/inotify.h: Define IN_CLOEXEC and
995 IN_NONBLOCK. Declare inotify_init1.
996 * sysdeps/unix/sysv/linux/sys/signalfd.h: Define SFD_CLOEXEC and
997 SFD_NONBLOCK.
998 * sysdeps/unix/sysv/linux/sys/timerfd.h: Define TFD_CLOEXEC and
999 TFD_NONBLOCK.
1000
0e077a7e
UD
1001 * elf/elf.h: Define AT_EXECFN.
1002 * elf/rtld.c [!__ASSUME_AT_EXECFN] (process_envvars): Don't handle
1003 LD_ORIGIN_PATH.
1004 * elf/dl-sysdep.c (_dl_sysdep_start): Handle AT_EXECFN.
1005 * elf/dl-support.c: Define _dl_execfn. Don't define _dl_origin_path
1006 if __ASSUME_AT_EXECFN is defined.
1007 (_dl_aux_init): Handle AT_EXECFN.
1008 * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_AT_EXECFN
1009 for 2.6.27 and up.
1010 * sysdeps/generic/ldsodefs.h (rtld_global_ro): Add _dl_execfn.
1011 Don't define _dl_origin_path if __ASSUME_AT_EXECFN is defined.
1012 * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): Use
1013 _dl_execfn if available and avoid compatibility code if
1014 __ASSUME_AT_EXECFN is defined.
1015
579cdf5a
UD
1016 * sysdeps/unix/sysv/linux/dl-sysdep.h: Don't declare
1017 _dl_discover_osversion only for older kernels.
1018
7385c04c
RM
10192008-07-22 Roland McGrath <roland@frob.com>
1020
1021 * hurd/fd-read.c (_hurd_fd_read): Fix last change.
1022
8a26088d
RM
10232008-07-21 Roland McGrath <roland@frob.com>
1024
1025 * hurd/fd-read.c (_hurd_fd_read): Return EGRATUITOUS if the server
1026 returned too much data out of line.
1027
9f558b80
UD
10282008-07-20 Ulrich Drepper <drepper@redhat.com>
1029
2e79213a
UD
1030 * locale/setlocale.c (setname): Remove inline to avoid compiler
1031 warning.
1032
579cdf5a 1033 [BZ #6712]
9f558b80
UD
1034 * locale/setlocale.c (setlocale): Take the setlocale lock earlier.
1035
9667f97d
UD
10362008-07-15 Ulrich Drepper <drepper@redhat.com>
1037
2486b496
UD
1038 * stdio-common/vfprintf.c (_IO_helper_overflow): In case _IO_sputn
1039 doesn't manage to write anything, fail.
1040
9667f97d
UD
1041 * malloc/hooks.c (__malloc_check_init): Remove printf.
1042
6d4c073b
RM
10432008-07-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
1044
1045 * sysdeps/mach/hurd/bits/fcntl.h: Include <sys/types.h>.
1046
b7432416
UD
10472008-07-12 Ulrich Drepper <drepper@redhat.com>
1048
1049 * nscd/connections.c (main_loop_poll): Fix handling of read errors
1050 from inotify.
1051 (main_loop_epoll): Likewise.
1052
44abc397
UD
10532008-07-09 Ulrich Drepper <drepper@redhat.com>
1054
835113c6
UD
1055 * resolv/res_send.c: Remove unnecessary res_pquery prototype.
1056
fdc769f6
UD
1057 * resolv/res_query.c (__libc_res_nquery): Issue debug message only
1058 if DEBUG is defined.
1059
44abc397
UD
1060 * resolv/res_query.c (__libc_res_nquery): Align buffer for T_AAAA
1061 query. Adjust buffer size computation for padding.
1062
38dc8fad
UD
10632008-07-08 Ulrich Drepper <drepper@redhat.com>
1064
75684bd7
UD
1065 * stdio-common/Makefile: Add rules to build and run tst-setvbuf1.
1066 * stdio-common/tst-setvbuf1.c: New file.
1067 * stdio-common/tst-setvbuf1.expect: New file.
1068
38dc8fad
UD
1069 [BZ #6719]
1070 * libio/iosetvbuf.c (_IO_setvbuf): Correctly clear buffering flags
1071 when selecting fully-buffered stream.
1072 Patch by Wang Xin <wxinee@gmail.com>.
1073
107f4ac2
RM
10742008-07-06 Samuel Thibault <samuel.thibault@ens-lyon.org>
1075
1076 * sysdeps/mach/hurd/open.c: Include <stdio.h>.
1077 (__open_2): New function.
1078 (__open64_2): New alias to __open_2.
1079 * sysdeps/mach/hurd/openat.c: Include <stdio.h>.
1080 (__openat_2): New function.
1081 (__openat64_2): New alias to __openat_2.
1082
45ec3e79
UD
10832008-07-06 Ulrich Drepper <drepper@redhat.com>
1084
1085 [BZ #6723]
1086 * time/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
1087
0a583b54
RM
10882008-07-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
1089
1090 * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Define MSG_NOSIGNAL.
1091 * hurd/hurd/fd.h (__hurd_sockfail): Add extern inline function.
1092 * sysdeps/mach/hurd/recv.c (__recv): Use __hurd_sockfail instead of
1093 __hurd_dfail.
1094 * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Likewise.
1095 * sysdeps/mach/hurd/recvmsg.c (__recvmsg): Likewise.
1096 * sysdeps/mach/hurd/send.c (__send): Likewise.
1097 * sysdeps/mach/hurd/sendto.c (__sendfrom): Likewise.
1098 * sysdeps/mach/hurd/sendmsg.c (__sendmsg): Likewise.
1099
d5a0160b
RM
11002008-03-04 Samuel Thibault <samuel.thibault@ens-lyon.org>
1101
1102 * sysdeps/mach/hurd/recv.c (__recv): Initialize NPORTS.
1103 * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Likewise.
1104 * sysdeps/mach/hurd/recvmsg.c (__recvmsg): Likewise.
1105 * hurd/fd-read.c (_hurd_fd_read): Initialize NREAD.
1106 * hurd/get-host.c (_hurd_get_host_config): Likewise.
1107 * sysdeps/mach/hurd/dl-sysdep.c (__libc_read): Likewise.
1108
80922a99
UD
11092008-06-27 Ulrich Drepper <drepper@redhat.com>
1110
1111 [BZ #6657]
1112 * time/strptime_l.c: Don't clear s.era_cnt after successful match
1113 of %EY.
1114 Patch by Petr Baudis.
1115
34ca2ff7
UD
11162008-06-26 Ulrich Drepper <drepper@redhat.com>
1117
5ee0f5e2 1118 * resolv/res_debug.c (__p_type_syms): Add ns_t_dname entry.
34ca2ff7
UD
1119 Patch by Peter Jones <pjones@redhat.com>.
1120
104426b6
UD
11212008-06-25 Ulrich Drepper <drepper@redhat.com>
1122
1123 [BZ #6654]
1124 * stdlib/canonicalize.c (__realpath): readlink can write too much
1125 into the buffer on platforms without PATH_MAX.
1126
7166d23f
UD
11272008-06-17 Carlos O'Donell <carlos@codesourcery.com>
1128
4cb8e687 1129 [BZ #6653]
7166d23f
UD
1130 * posix/tst-regex.c (main): Rename to...
1131 (do_test): ... this. Remove cmdline option processing.
1132 (TIMEOUT): Define.
1133 (TEST_FUNCTION): Define.
1134 (CMDLINE_OPTIONS): Define.
1135
974069d8
UD
11362008-06-25 Ulrich Drepper <drepper@redhat.com>
1137
1138 [BZ #5210]
1139 * configure.in: Add -Werror to -fstack-protector test to catch
1140 unsupported architectures.
1141 Patch by Gilles Esponasse <g.esp@free.fr>.
1142
cefa2dd3
UD
11432008-06-17 Joseph Myers <joseph@codesourcery.com>
1144
1145 * stdlib/tst-setcontext.c: Set back_in_main before exit if
1146 getcontext returns ENOSYS.
1147
c00d1128
UD
11482008-06-18 Ulrich Drepper <drepper@redhat.com>
1149
1150 * nscd/connections.c (main_loop_poll): Fix test for read error.
1151 (main_loop_epoll): Likewise.
1152
a0edbb48
UD
11532008-06-13 Ulrich Drepper <drepper@redhat.com>
1154
d0a1ae94
UD
1155 * sysdeps/posix/getaddrinfo.c: Move _res_hconf_init call to a
1156 better place so it is not called when nscd is used.
1157
a0edbb48
UD
1158 * nscd/connections.c: Also recognize and handle changes to the
1159 resolver configuration file.
1160
46f70b3c
UD
11612008-06-12 Ulrich Drepper <drepper@redhat.com>
1162
5bcc6c0f
UD
1163 * time/strftime.c: Pass reference to tzset_called around to handle
1164 recursive calls.
1165
1166 [BZ #6612]
1167 * time/strftime.c (__strftime_internal): Call tzset() only
1168 when printing timezone-dependent values.
1169 Based on a patch by Petr Baudis <pasky@suse.cz>.
1170
f854efd7
UD
1171 * resolv/nss_dns/dns-host.c (gaih_getanswer): Don't
1172 unconditionally use second gaih_getanswer_slice result.
1173
46f70b3c
UD
1174 * sysdeps/posix/getaddrinfo.c (gai_inet): Remove unnecessary test.
1175 (getaddrinfo): RES must always be non-NULL.
1176
9ea8bfec
UD
11772008-06-12 Jakub Jelinek <jakub@redhat.com>
1178
1179 * sysdeps/powerpc/powerpc64/fpu/s_llround.S (__llround): Avoid using
1180 cr[34] registers.
1181 * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S (__llroundf): Likewise.
1182 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S (__llround):
1183 Likewise.
1184 * sysdeps/powerpc/powerpc32/fpu/s_lround.S (__lround): Avoid using cr3
1185 register.
1186
5a337776
UD
11872008-06-12 Ulrich Drepper <drepper@redhat.com>
1188
5228ba2f
UD
1189 * nscd/nscd.h (struct database_dyn): Add inotify_descr and clear_cache
1190 fields.
1191 * nscd/connections.c (inotify_fd): New variable.
1192 (nscd_init): Try to open an inotify descriptor.
1193 If successful, watch files for databases using inotify instead of
1194 having prune threads stat the files.
1195 (nscd_run_prune): Recognize clear_cache flag being set and call
1196 prune_cache appropriately.
1197 (main_loop_poll): Add inotify descriptor to wait set and handle the
1198 reported changes.
1199 (main_loop_epoll): Likewise.
1200 * nscd/cache.c (prune_cache): Don't stat files for databases if
1201 inotify is used.
1202 * sysdeps/unix/sysv/linux/Makefile [subdir=nscd]
1203 (CFLAGS-connections.c): Add -DHAVE_INOTIFY.
1204
5a337776
UD
1205 * nscd/grpcache.c (cache_addgr): Correctly compute size of
1206 fixed-size portion of the record.
1207 * nscd/servicescache.c (cache_addserv): Likewise.
1208 * nscd/pwdcache.c (cache_addpw): Likewise.
1209 * nscd/initgrcache.c (addinitgroupsX): Likewise.
1210
9ad58cc3
UD
12112008-06-11 Ulrich Drepper <drepper@redhat.com>
1212
1213 * nscd/mem.c (gc): Initialize obstack earlier so that if we jump
1214 out we don't use uninitialized memory.
1215
1216 * nscd/hstcache.c (cache_addhst): Send correct number of bytes to
1217 the client.
1218
c1283552
UD
12192008-06-10 Ulrich Drepper <drepper@redhat.com>
1220
1221 * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): Also log and
1222 ignore T_DNAME messages.
1223 * resolv/arpa/nameser_compat.h (T_DNAME): Define.
1224
eef8a803
JJ
12252008-06-05 Jakub Jelinek <jakub@redhat.com>
1226
1227 * misc/regexp.h (compile): Use __REPB_PREFIX macro.
1228 Avoid segfault if first GETC returns eof/'\0'/'\n'.
1229
ee78670e
JJ
12302008-06-03 Jakub Jelinek <jakub@redhat.com>
1231
1232 * nscd/nscd_getserv_r.c (__nscd_getservbyport_r): Pass cp
1233 instead of portstr to nscd_getserv_r. Patch by
1234 Roman Kagan <rkagan@mail.ru>.
1235
62605cbf
UD
12362008-05-26 Jim Meyering <meyering@redhat.com>
1237
10966640 1238 Remove more useless "if" tests before "free".
62605cbf
UD
1239 * include/inline-hashtab.h (htab_delete): Likewise.
1240 * libio/freopen.c (freopen): Likewise.
1241 * libio/freopen64.c (freopen64): Likewise.
1242 * locale/programs/ld-collate.c (collate_read): Likewise.
1243 * misc/fstab.c (libc_freeres_fn): Likewise.
1244 * posix/glob.c (globfree): Likewise.
1245
f63abf58
UD
12462008-05-24 Ulrich Drepper <drepper@redhat.com>
1247
1248 * string/Makefile (strop-tests): Add memmem.
1249 * string/test-memmem.c: New file.
1250 * string/test-string.h (BUF1PAGES): Define to 1 if undefined.
1251 (test_init): Size buf1 according to BUF1PAGES.
1252
ad8a5511
JJ
12532008-05-24 Jakub Jelinek <jakub@redhat.com>
1254
1255 * libio/stdio.h (vscanf): Fix -std=c99 redirect.
1256 * stdio-common/Makefile (tests): Add scanf16 and scanf17.
1257 (CFLAGS-scanf17.c): New.
1258 * stdio-common/scanf14.c (main): Add fscanf and scanf tests.
1259 * stdio-common/scanf15.c (main): Likewise.
f63abf58
UD
1260 * stdio-common/scanf16.c: New file.
1261 * stdio-common/scanf17.c: New file.
ad8a5511 1262
e2003883
UD
12632008-05-24 Ulrich Drepper <drepper@redhat.com>
1264
1265 * resolv/res_send.c (send_dg): If we already have one of two
b5ba2c79 1266 answers and the server reports SERVFAIL, NOTIMP, or REFUSED, then
e2003883
UD
1267 use the one answer insted of failing.
1268
acbb9873
UD
12692008-02-20 Ryan S. Arnold <rsa@us.ibm.com>
1270
1271 * math/libm-test.inc (exp_test): Exclude expl(1000.0L) from
1272 being executed on PowerPC as the expected result exceeds IBM
1273 long double 128 __LDBL_MAX__.
1274
e85f1d6a
RM
12752008-05-21 Roland McGrath <roland@redhat.com>
1276
1277 * shlib-versions (sparc.*-.*-.*, sparc64.*-.*-.*): Add ABI lines.
1278
1279 * Makefile (check-data): Use $(abi-name) before other guesses.
1280 Look in $(add-ons) dirs before scripts/data/.
1281 * elf/Makefile (check-data): Likewise.
1282
1283 * scripts/soversions.awk: Grok ABI line.
1284 * Makeconfig ($(common-objpfx)soversions.mk): Likewise.
1285 Emit definition for abi-name variable.
1286
d8e763c6
UD
12872008-05-21 Ulrich Drepper <drepper@redhat.com>
1288
e92799fc 1289 * string/endian.h: Define new fixed-size hto* and *toh macros only
e85f1d6a 1290 if [__USE_BSD].
e92799fc 1291
d8e763c6
UD
1292 * iconvdata/Depend: Add localedata.
1293
009ef333
RM
12942008-05-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
1295
1296 * bits/termios.h (ONLCR): Define under [__USE_XOPEN] too.
1297
86746abb
JJ
12982008-05-08 David S. Miller <davem@davemloft.net>
1299
1300 * sysdeps/unix/sysv/linux/sparc/sparc32/setcontext.S: Use
1301 HIDDEN_JUMPTARGET.
1302 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
1303 (__SYSCALL_CLOBBERS): Remove %g* registers.
1304 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
1305 (__SYSCALL_CLOBBERS): Likewise.
1306 * scripts/data/localplt-sparc-linux-gnu.data: New file.
f63abf58 1307 * scripts/data/localplt-sparc64-linux-gnu.data: New file.
86746abb 1308
5e6f34c2
JJ
13092008-05-21 Jakub Jelinek <jakub@redhat.com>
1310
1311 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
1312 (CALL_ERRNO_LOCATION): Define.
1313 (__SYSCALL_STRING, __CLONE_SYSCALL_STRING): Use it.
1314 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
1315 (CALL_ERRNO_LOCATION): Define.
1316 (__SYSCALL_STRING, __CLONE_SYSCALL_STRING): Use it.
1317 * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S (__brk): Use
1318 HIDDEN_JUMPTARGET for __errno_location call in libc.so.
1319
4beb4532
UD
13202008-05-20 Ulrich Drepper <drepper@redhat.com>
1321
1322 * include/inline-hashtab.h (higher_prime_number): Fix type of mid
1323 variable.
1324
ed8f38ba
JJ
13252008-05-20 Jakub Jelinek <jakub@redhat.com>
1326
1327 * sysdeps/unix/sysv/linux/sparc/sparc32/sigcontextinfo.h
1328 (FIRST_FRAME_POINTER): Define.
1329
13302008-05-09 David S. Miller <davem@davemloft.net>
1331
1332 * sysdeps/sparc/sparc64/backtrace.c: New file.
1333
c1b8190a
JJ
13342008-05-14 David S. Miller <davem@davemloft.net>
1335
1336 * sysdeps/sparc/machine-gmon.h: New file.
1337 * sysdeps/sparc/sparc-mcount.S: Likewise.
1338 * sysdeps/sparc/Makefile: Add sparc-mcount target to
1339 sysdep_routines in gmon directory.
1340
84aacd93
JJ
13412008-05-19 Jakub Jelinek <jakub@redhat.com>
1342
1343 * elf/soinit.c (__EH_FRAME_BEGIN__): Remove.
1344
5908f779
UD
13452008-05-19 Ulrich Drepper <drepper@redhat.com>
1346
1347 * resolv/res_query.c (__libc_res_nquery): In case one of two
1348 answer was too short don't try to read that answer's header.
1349
1350 * resolv/res_send.c (send_dg): In case of timeout and there are
1351 two queries and one has been answered, return value indicating
1352 success.
1353
528741cb
UD
13542008-05-18 Ulrich Drepper <drepper@redhat.com>
1355
1356 * nscd/cache.c (cache_add): Take additional parameter specifying
1357 whether this is in response of a cache refill. Check alignment
1358 of package data. Revamp waking of pruning thread.
1359 (prune_cache): Small optimization.
1360 * nscd/nscd.h: Adjust cache_add prototypes.
1361 * nscd/aicache.c: Adjust cache_add calls.
1362 * nscd/grpcache.c: Likewise.
1363 * nscd/hstcache.c: Likewise.
1364 * nscd/initgrcache.c: Likewise.
1365 * nscd/pwdcache.c: Likewise.
1366 * nscd/servicescache.c: Likewise.
1367 * nscd/connections.c (restart): Really disable cache use before
1368 exec attempt. If it fails, reenable cache.
1369 (nscd_run_prune): Initialize wakeup_time. After wakeup, set wakeup
1370 time to max to be able to notice concurrent cache additions. Unlock
1371 prune_lock while performing gc. Afterwards compute wakeup time with
1372 current wakeup_time value in mind.
1373
343996c4
UD
13742008-05-17 Ulrich Drepper <drepper@redhat.com>
1375
5811d72b
UD
1376 * nscd/mem.c (gc): Avoid stack overflow when allocating move list.
1377
fa526148
UD
1378 * nscd/mem.c (gc): Correctly determine highest used array element
1379 in mark.
1380
77d40f10
UD
1381 * nscd/mem.c (markrange): Add assert to check entries are all
1382 aligned. Small cleanup in bitmap use.
1383
8884028c
UD
1384 * nscd/nscd.h (mem_in_flight): Replace blockaddr field with
1385 blockoff of type nscd_ssize_t.
1386 * nscd/mem.c (gc): Simplify markrange call for on-flight blocks.
1387 (mempoll_alloc): Record block offset and not address.
1388
b2159575
UD
1389 * nscd/mem.c (gc): Fix test for stack overuse.
1390
5c9629d2
UD
1391 * nscd/aicache.c (addhstaiX): Fix a few small problems, cleanups,
1392 more asserts.
1393
66d90496
UD
1394 * sysdeps/posix/getaddrinfo.c (gaih_inet): If nscd reports no
1395 entry is available, believe it.
1396
343996c4
UD
1397 * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): If there are
1398 no answers return NSS_STATUS_NOTFOUND.
1399 (gaih_getanswer): Don't call gaih_getanswer_slice if the answer
1400 buffer does not have any content.
1401
91c8a74b
UD
14022008-05-16 Ulrich Drepper <drepper@redhat.com>
1403
74e13385
UD
1404 * string/strcasestr.c (CMP_FUNC): Use __strncasecmp, not strncasecmp.
1405
91c8a74b
UD
1406 * sysdeps/posix/getaddrinfo.c (gaih_inet): After gethostbyname4_r
1407 lookup, don't assign canon unconditionally.
1408
0caca71a
UD
14092008-05-14 Ulrich Drepper <drepper@redhat.com>
1410
1411 * string/Makefile (distribute): Add str-two-way.h.
1412
14132008-03-29 Eric Blake <ebb9@byu.net>
1414
1415 Rewrite string searches to O(n) rather than O(n^2).
1416 * string/str-two-way.h: New file. For linear fixed-allocation
1417 string searching.
1418 * string/memmem.c: New implementation.
1419 * string/strstr.c: New implementation.
1420 * string/strcasestr.c: New implementation.
1421
b194db79
UD
14222008-04-11 Paolo Bonzini <bonzini@gnu.org>
1423
1424 * posix/regcomp.c (optimize_utf8): Add a note on why we test
1425 opr.ctx_type.
1426 (calc_first): Initialize constraint field.
1427 (duplicate_node_closure): Use it instead of special casing ANCHORS.
1428 Use search_duplicated_node to avoid loops. Fix grammar.
1429 (duplicate_node): Merge constraint field for all node types.
1430 (calc_eclosure_iter): Look at constraint field for all node types.
1431 * posix/regex_internal.c (create_cd_newstate): Don't look at
1432 create_cd_newstate.
1433
c8d49f05
UD
14342008-05-14 Ulrich Drepper <drepper@redhat.com>
1435
215a8745
UD
1436 [BZ #6428]
1437 * configure.in: Don't use $CFLAGS when assembling, use $ASFLAGS.
1438
2f9a1be8
UD
1439 [BZ #6442]
1440 * string/endian.h: Add macros for fixed-size endian conversion.
1441 * bits/byteswap.h: Allow inclusion from <endian.h>.
1442 * sysdeps/i386/bits/byteswap.h: Likewise.
1443 * sysdeps/ia64/bits/byteswap.h: Likewise.
1444 * sysdeps/s390/bits/byteswap.h: Likewise.
1445 * sysdeps/x86_64/bits/byteswap.h: Likewise.
1446 * string/Makefile (tests): Add tst-endian.
1447 * string/tst-endian.c: New file.
1448
c8d49f05
UD
1449 * iconvdata/run-iconv-test.sh: Use = instead of == in test.
1450 Patch by Reuben Thomas.
1451
a754f018
UD
14522008-05-14 Joseph Myers <joseph@codesourcery.com>
1453
1454 * iconvdata/Makefile (bug-iconv6-ENV, tst-iconv7-ENV): Define.
1455
372bfcac
UD
14562008-05-14 Ulrich Drepper <drepper@redhat.com>
1457
a754f018
UD
1458 * iconvdata/bug-iconv6.c (do_test): Use de_DE.UTF-8 locale.
1459
5deca9bb
UD
1460 [BZ #6461]
1461 * iconv/gconv_simple.c (BODY for __gconv_transform_ascii_internal):
1462 Add missing braces.
1463 (BODY for __gconv_transform_internal_ascii): Likewise.
1464
af77c9b7 1465 [BZ #6472]
5fab5544
UD
1466 * sysdeps/posix/getaddrinfo.c (get_scope): Loopback addresses have
1467 to be treated like link-local addresses.
5846c4e2
UD
1468 (match_prefix): Don't treat IPv4 loopback address special when
1469 converting to v4 mapped addressed.
5fab5544 1470
0caca71a 1471 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Call _res_hconf_init
1f039824 1472 if necessary.
b194db79
UD
1473 * posix/tst-rfc3484.c: Add dummy definition of _res_hconf_init.
1474 * posix/tst-rfc3484-2.c: Likewise.
1475 * posix/tst-rfc3484-3.c: Likewise.
1f039824 1476
18a74157
UD
1477 * sysdeps/posix/getaddrinfo.c: Implement handling of DCCP, UDPlite,
1478 and SCTP.
372bfcac
UD
1479
1480 * nss/getent.c (ahosts_keys_int): Handle all known socket types.
1481
1482 * inet/netinet/in.h (IPPIPPROTO_DCCP, IPPROTO_UDPLITE): Define.
1483
1484 * sysdeps/unix/sysv/linux/bits/socket.h (SOCK_DCCP): Define.
1485
f05ac8f5
UD
14862008-05-13 Ulrich Drepper <drepper@redhat.com>
1487
1488 * po/lt.po: New file. From Lituanian translation team.
1489
c9ff0187
UD
14902008-01-30 Alexandre Oliva <aoliva@redhat.com>
1491
1492 Introduce TLS descriptors for i386 and x86_64.
1493 * include/inline-hashtab.h: New file, copied from 2005's
1494 libiberty, with fix for memory leak imported afterwards by
1495 Glauber de Oliveira Costa.
1496 * elf/tlsdeschtab.h: New file.
1497 * elf/dl-reloc.c (_dl_try_allocate_static_tls): Extract from...
1498 (_dl_allocate_static_tls): ... here. Rearrange failure path.
1499 (CHECK_STATIC_TLS): Move to...
1500 * elf/dynamic-link.h: ... this file.
1501 (TRY_STATIC_TLS): New macro.
1502 * elf/dl-conflict.c (CHECK_STATIC_TLS, TRY_STATIC_TLS): Override.
1503 * elf/elf.h (R_386_TLS_GOTDESC, R_386_TLS_DESC_CALL,
1504 R_386_TLS_DESC): Define.
1505 (R_X86_64_PC64, R_X86_GOTOFF64, R_X86_64_GOTPC32): Merge from
1506 binutils.
1507 (R_X86_64_GOTPC32_TLSDESC, R_X86_64_TLSDESC_CALL,
1508 R_X86_64_TLSDESC): Define.
1509 (R_386_NUM, R_X86_64_NUM): Adjust.
1510 * sysdeps/i386/Makefile (sysdep-dl-routines, sysdep_routines,
f05ac8f5 1511 sysdep-rtld-routines): Add tlsdesc and dl-tlsdesc for elf subdir.
c9ff0187
UD
1512 (gen-as-const-headers): Add tlsdesc.sym to csu subdir.
1513 * sysdeps/i386/dl-lookupcfg.h: New file. Introduce _dl_unmap to
1514 release tlsdesc_table.
1515 * sysdeps/i386/dl-machine.h: Include dl-tlsdesc.h.
1516 (elf_machine_type_class): Mark R_386_TLS_DESC as PLT class.
1517 (elf_machine_rel): Handle R_386_TLS_DESC.
1518 (elf_machine_rela): Likewise.
1519 (elf_machine_lazy_rel): Likewise.
1520 (elf_machine_lazy_rela): Likewise.
1521 * sysdeps/i386/dl-tls.h (struct dl_tls_index): Name it.
1522 * sysdeps/i386/dl-tlsdesc.S: New file.
1523 * sysdeps/i386/dl-tlsdesc.h: New file.
1524 * sysdeps/i386/tlsdesc.c: New file.
1525 * sysdeps/i386/tlsdesc.sym: New file.
1526 * sysdeps/i386/bits/linkmap.h (struct link_map_machine): Add
1527 tlsdesc_table.
1528 * sysdeps/x86_64/Makefile (sysdep-dl-routines, sysdep_routines,
f05ac8f5 1529 sysdep-rtld-routines): Add tlsdesc and dl-tlsdesc for elf subdir.
c9ff0187
UD
1530 (gen-as-const-headers): Add tlsdesc.sym to csu subdir.
1531 * sysdeps/x86_64/dl-lookupcfg.h: New file. Introduce _dl_unmap to
1532 release tlsdesc_table.
1533 * sysdeps/x86_64/dl-machine.h: Include dl-tlsdesc.h.
1534 (elf_machine_runtime_setup): Set up lazy TLSDESC GOT entry.
1535 (elf_machine_type_class): Mark R_X86_64_TLSDESC as PLT class.
1536 (elf_machine_rel): Handle R_X86_64_TLSDESC.
1537 (elf_machine_rela): Likewise.
1538 (elf_machine_lazy_rel): Likewise.
1539 * sysdeps/x86_64/dl-tls.h (struct dl_tls_index): Name it.
1540 (__tls_get_addr): Do not declare for non-shared compiles.
1541 * sysdeps/x86_64/dl-tlsdesc.S: New file.
1542 * sysdeps/x86_64/dl-tlsdesc.h: New file.
1543 * sysdeps/x86_64/tlsdesc.c: New file.
1544 * sysdeps/x86_64/tlsdesc.sym: New file.
1545 * sysdeps/x86_64/bits/linkmap.h (struct link_map_machine): Add
1546 tlsdesc_table for both 32- and 64-bit structs.
1547
a3636e8b
UD
15482008-05-11 Ulrich Drepper <drepper@redhat.com>
1549
1550 * elf/dl-tls.c (__tls_get_addr): Optimize by moving slow path in
1551 its own function. This reduces the frame setup costs and more.
1552
a7eb802f
UD
15532008-02-11 Joseph Myers <joseph@codesourcery.com>
1554
1555 [BZ #3406]
1556 * sysdeps/ieee754/flt-32/w_expf.c (o_threshold): Correct value.
1557 * math/libm-test.inc (exp_test): Test 88.72269439697265625.
1558
3490f01d
UD
15592008-05-11 Ulrich Drepper <drepper@redhat.com>
1560
3d7eeebe
UD
1561 * io/openat.c (__openat_2): Also pass fd to __openat.
1562 * io/openat64.c (__openat64_2): Also pass fd to __openat64.
1563 Patch by Kristian Van Der Vliet <vanders@liqwyd.com>.
1564
3490f01d
UD
1565 * string/tester.c (test_memcmp): Add a few more tests.
1566 Patch by Mats Erik Andersson <ynglingatal@comhem.se>.
1567
7e71e55f
UD
15682008-05-10 Ulrich Drepper <drepper@redhat.com>
1569
1570 * nscd/cache.c (cache_add): Before returning with failure and this
1571 is the first use of the record, mark it as unusable.
1572 * nscd/aicache.c: Don't touch the dataset after cache_add returns
1573 reporting a failure.
1574 * nscd/grpcache.c: Likewise
1575 * nscd/hstcache.c: Likewise.
1576 * nscd/initgrcache.c: Likewise.
1577 * nscd/pwdcache.c: Likewise.
343996c4 1578 * nscd/servicescache.c: Likewise.
7e71e55f 1579
7396d0a9
RM
15802008-05-10 Roland McGrath <roland@redhat.com>
1581
1582 [BZ #6505]
1583 * sysdeps/unix/sysv/linux/sys/user.h: Replace with #error stub.
1584
c5ee217f
UD
15852008-05-08 David S. Miller <davem@davemloft.net>
1586
b29899ae
UD
1587 * misc/truncate64.c (truncate64): Use __truncate not truncate.
1588
c5ee217f
UD
1589 * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee751_j0l): Use __finitel.
1590 (__ieee754_y0l): Likewise.
1591 * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Likewise.
1592 (__ieee754_y1l): Likewise.
1593 * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Use __ldexpl.
1594 * sysdeps/ieee754/ldbl-128/s_log1pl.c: Kill bogus prototypes for
1595 frexpl and ldexpl. math_private.h provides them and the latter
1596 is not even used.
1597 (__log1pl): Use __frexpl.
1598
1eb946b9
UD
15992008-05-10 Ulrich Drepper <drepper@redhat.com>
1600
1601 * include/resolv.h: Adjust __libc_res_nquery and __libc_res_nsend
1602 prototypes.
1603 * include/arpa/nameser_compat.h: Define T_UNSPEC.
1604 * nis/Versions (libnss_nis): Export _nss_nis_gethostbyname4_r.
1605 (libnss_nisplus): Export _nss_nisplus_gethostbyname4_r.
1606 * nis/nss_nis/nis-hosts.c (LINE_PARSER): Change to also handle
1607 af==AF_UNSPEC.
1608 (_nss_nis_gethostbyname4_r): New function.
1609 * nis/nss_nisplus/nisplus-hosts.c (_nss_nisplus_parse_hostent):
1610 Change to also handle af==AF_UNSPEC.
1611 (get_tablename): New function. Use it to avoid duplication.
1612 (_nss_nisplus_gethostbyname4_r): New function.
1613 * nscd/aicache.c (addhstaiX): Use gethostbyname4_r function is
1614 available.
1615 * nss/Versions (libnss_files): Export _nss_files_gethostbyname4_r.
1616 * nss/nss.h: Define struct gaih_addrtuple.
1617 * nss/nss_files/files-hosts.c (LINE_PARSER): Change to also handle
1618 af==AF_UNSPEC.
1619 (_nss_files_gethostbyname4_r): New function.
1620 * resolv/Versions (libnss_dns): Export _nss_dns_gethostbyname4_r.
1621 * resolv/gethnmaddr.c: Adjust __libc_res_nsearch and __libc_res_nquery
1622 calls.
1623 * resolv/res_query.c (__libc_res_nquery): Take two additional
1624 parameters for second answer buffer. Handle type=T_UNSPEC to mean
1625 look up IPv4 and IPv6.
1626 Change all callers.
1627 * resolv/res_send.c (__libc_res_nsend): Take five aditional parameters
1628 for an additional query and answer buffer. Pass to send_vc and
1629 send_dg.
1630 (send_vc): Send possibly two requests and receive two answers.
1631 (send_dg): Likewise.
1632 * resolv/nss_dns/dns-host.c: Adjust calls to __libc_res_nsearch and
1633 __libc_res_nquery.
1634 (_nss_dns_gethostbyname4_r): New function.
1635 (gaih_getanswer_slice): Likewise.
1636 (gaih_getanswer): Likewise.
1637 * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Adjust
1638 __libc_res_nquery call.
1639 * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r): Likewise.
1640 (_nss_dns_getnetbyname_r): Adjust __libc_res_nsearch call.
1641 * sysdeps/posix/getaddrinfo.c: Use gethostbyname4_r function is
1642 available.
1643
b7fb703a
JJ
16442008-05-05 David S. Miller <davem@davemloft.net>
1645
1646 * sysdeps/sparc/sparc32/Makefile: Use -mcpu=v7 for initfini.s build.
1647 * sysdeps/sparc/sparc64/Makefile: Use -mcpu=v9 for initfini.s build.
1648
2256e43d
RM
16492007-09-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
1650
1651 Fix termios bit macros.
1652 Move *DLY definitions where they belong, in termios.h.
1653 Add *[0-3] definitions.
1654 Fixes confusion between VT and FF.
8bb52dbf
RM
1655 * sysdeps/mach/hurd/bits/ioctls.h (NL0, NL1, TAB0, TAB1, TAB2, CR0,
1656 CR1, CR2, CR3, FF0, FF1, BS0, BS1): Undefine these at start if they
1657 are already defined to avoid collision with termios.h.
2256e43d
RM
1658 (NLDLY, TABDLY, TAB3, CRDLY, VTDLY, BSDLY): Remove macros.
1659 * bits/termios.h [__USE_MISC || __USE_XOPEN] (NL0, NL1, TAB0,
1660 TAB1, TAB2, CR0, CR1, CR2, CR3, FF0, FF1, BS0, BS1): Likewise.
1661 [__USE_BSD || __USE_XOPEN] (OCRNL, ONOCR, ONLRET): New macros.
1662 [__USE_MISC || __USE_XOPEN] (NLDLY, NL0, NL1, TABDLY, TAB0, TAB1, TAB2,
1663 TAB3, CRDLY, CR0, CR1, CR2, CR3, FFDLY, FF0, FF1, BSDLY, BS0, BS1,
1664 VTDLY, VT0, VT1): New macros.
1665 [__USE_GNU] (OLCUC): Change value of macro.
1666 [__USE_XOPEN] (OFILL): New macro.
1667 [__USE_BSD] (CRTSCTS): Change value.
1668 (CRTS_IFLOW, CCTS_OFLOW): Change into compatibility macros.
1669 [__USE_BSD] (CDTRCTS, CHWFLOW): New macros.
1670 (B7200, B14400, B28800, B76800): New macros.
1671
4ce349e5
JJ
16722008-05-01 David S. Miller <davem@davemloft.net>
1673
a86a7a39
JJ
1674 * sysdeps/unix/sysv/linux/sparc/sparc32/ucontext_i.sym: New file.
1675 * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile [$(subdir) = stdlib]:
1676 (gen-as-const-headers): Add it.
1677 * sysdeps/unix/sysv/linux/sparc/sparc32/getcontext.S: New file.
1678 * sysdeps/unix/sysv/linux/sparc/sparc32/makecontext.c: Likewise.
1679 * sysdeps/unix/sysv/linux/sparc/sparc32/setcontext.S: Likewise.
1680 * sysdeps/unix/sysv/linux/sparc/sparc32/swapcontext.S: Likewise.
2256e43d 1681
4ce349e5
JJ
1682 * sysdeps/unix/sysv/linux/sparc/sparc32/syscall.S: Add support for
1683 six system call parameters.
1684 * sysdeps/unix/sysv/linux/sparc/sparc64/syscall.S: Likewise.
1685
89a8963d
UD
16862008-04-30 Ulrich Drepper <drepper@redhat.com>
1687
1688 * sysdeps/unix/sysv/linux/bits/resource.h: Define RUSAGE_THREAD and
1689 RUSAGE_LWP.
1690 * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
1691 * sysdeps/unix/sysv/linux/alpha/bits/resource.h: Likewise.
1692
b5ec5fce
JJ
16932008-04-30 Jakub Jelinek <jakub@redhat.com>
1694
1695 * stdlib/tst-setcontext.c: Include unistd.h.
1696
d4e92d9e
JJ
16972008-04-25 David S. Miller <davem@davemloft.net>
1698
1699 * sysdeps/unix/sysv/linux/sparc/sparc64/semctl.c (semctl):
1700 Pass "union semun" properly in to sys_ipc, it must be passed
1701 by value, not by reference.
1702
7eb5e6c9
UD
17032008-04-22 Jakub Jelinek <jakub@redhat.com>
1704
1705 * nscd/Makefile (nscd-cflags): Set back to -fpie.
1706 * nscd/nscd.h (mem_in_flight): Add attribute_tls_model_ie.
1707 * nscd/connections.c (mem_in_flight): Likewise.
1708
1709 * nscd/nscd.h (dbs): Make hidden.
1710
1711 * sysdeps/unix/sysv/linux/times.c (__times): Fix check for EFAULT.
1712 Avoid returning -1, return 0 instead.
1713
0073dd2d
UD
17142008-04-19 Ulrich Drepper <drepper@redhat.com>
1715
1716 * resolv/res_mkquery.c (__res_nopt): Use NS_PUT16 instead of ns_put16.
1717
c52137d3
UD
17182008-04-15 Ulrich Drepper <drepper@redhat.com>
1719
1720 [BZ #5209]
1721 * sysdeps/unix/sysv/linux/times.c: New file.
1722
1723 [BZ #5381]
1724 * nscd/nscd.h: Define enum in_flight, mem_in_flight, and
1725 mem_in_flight_list variables. Add new parameter to mempool_alloc
1726 prototype.
1727 * nscd/mem.c (mempool_alloc): Take additional parameter. Initialize
1728 appropriate mem_in_flight element.
1729 (gc): Take allocations which have not yet been committed to the
1730 database into account.
1731 * nscd/cache.c (cache_add): Add new parameter to mempool_alloc call.
1732 Reset mem_in_flight before returning.
1733 * nscd/connections.c (nscd_run_worker): Initialize mem_in_flight and
1734 cue it up in mem_in_flight_list.
1735 * nscd/aicache.c: Adjust mempool_alloc call.
1736 * nscd/grpcache.c: Likewise.
1737 * nscd/hstcache.c: Likewise.
1738 * nscd/initgrcache.c: Likewise.
1739 * nscd/pwdcache.c: Likewise.
1740 * nscd/servicescache.c: Likewise.
1741 * nscd/Makefile (nscd-flags): Until ld is fixed, use -fpic instead
1742 of -fpie.
1743
1744 * nscd/connections.c (handle_request): Provide better error message
1745 in case SELinux forbids the service.
1746
1747 * version.h (VERSION): Bump to 2.8.90.
1748
39546e34
JJ
17492008-04-17 Jakub Jelinek <jakub@redhat.com>
1750
1751 * sysdeps/unix/sysv/linux/dl-osinfo.h: Include fcntl.h.
1752
cf3a8c7f
UD
17532008-04-11 Ulrich Drepper <drepper@redhat.com>
1754
9e113ecd
UD
1755 * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h (__signbitl):
1756 Also use for 32-bit.
3b6d574e
UD
1757 * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c (__nearbyintl): Use
1758 __nextafter instead of nextafter to avoid local PLT.
c3a0ead4
UD
1759 * sysdeps/powerpc/fpu/e_sqrt.c: Avoid call to fetestexcept.
1760 * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
1761
3781ec29
UD
1762 * scripts/data/localplt-powerpc64-linux-gnu.data: New file.
1763
246ec411
UD
1764 * sysdeps/powerpc/fpu/fenv_libc.h: Add libm_hidden_proto for
1765 __fe_nomask_env.
3cc56f92
UD
1766 * sysdeps/powerpc/fpu/fe_nomask.c: Add libm_hidden_def. Include
1767 <fenv_libc.h> instead of <fenv.h>.
246ec411
UD
1768 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c: Likewise.
1769 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c: Likewise.
1770
1771 * sysdeps/powerpc/bits/fenv.h: Make safe for C++.
1772
1773 * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h: New file.
1774 * sysdeps/powerpc/fpu/fegetexcept.c (__fegetexcept): Rename
1775 function from fegetexcept and make old name weak alias.
1776 * include/fenv.h: Declare __fegetexcept.
1777 * sysdeps/powerpc/fpu/fedisblxcpt.c: Use __fegetexcept instead of
1778 fegetexcept.
1779 * sysdeps/powerpc/fpu/feenablxcpt.c: Likewise.
1780 * sysdeps/powerpc/fpu/fraiseexcpt.c (__feraiseexcept): Avoid call
1781 to fetestexcept.
1782 * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Use __frexpl
1783 instead of frexpl to avoid local PLT.
1784 * math/s_significandl.c (__significandl): Use __ilogbl instead of
1785 ilogbl to avoid local PLT.
1786 * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Use __ldexpl
1787 instead of ldexpl to avoid local PLT.
1788 * sysdeps/ieee754/ldbl-128ibm/e_expl.c (__ieee754_expl): Use
1789 __roundl not roundl to avoid local PLT.
1790 * sysdeps/ieee754/ldbl-128/e_j0l.c: Use function names which avoid
1791 local PLTs. Use __sincosl instead of separate sinl and cosl
1792 calls.
1793 * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
1794
2dc4a2fd
UD
1795 * sysdeps/unix/sysv/linux/configure.in: Bump minimal kernel
1796 version for ppc64 to 2.4.21 since without it makecontext will fail.
1797
fe3350ee
UD
1798 * elf/tls-macros.h [__powerpc64__] (__TLS_GET_ADDR): Define according
1799 to the ABI in use.
1800 [__powerpc64__] (TLS_LD): Use __TLS_GET_ADDR instead of
1801 .__tls_get_addr.
1802 [__powerpc64__] (TLS_GD): Likewise.
cf3a8c7f 1803
c1e6b459
UD
18042007-11-20 Ryan S. Arnold <rsa@us.ibm.com>
1805
7763d4f1 1806 [BZ #4997]
c1e6b459
UD
1807 * sysdeps/powerpc/powerpc32/fpu/s_lround.S (__lround): Fixed erroneous
1808 result when x is +/-nextafter(+/-0.5,-/+1) i.e. all 1's in the
1809 mantissa.
1810 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S (__llround):
1811 Likewise. Also account for when x is an odd number between 2^52
1812 and 2^53-1.
1813 * sysdeps/powerpc/powerpc64/fpu/s_llround.S (__llround): Likewise.
1814 * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S (__llroundf): Likewise.
1815 * math/libm-test.inc (lround_test, llround_test): Added test cases to
1816 detect aforementioned erroneous conditions.
1817
22dca1ea
UD
18182008-04-11 Jakub Jelinek <jakub@redhat.com>
1819
1820 * configure.in: Check for -fno-section-anchors in addition to
1821 -fno-toplevel-reorder.
1822
5d59f4a5
UD
18232008-04-11 Ulrich Drepper <drepper@redhat.com>
1824
1825 * include/features.h (__GLIBC_MINOR__): Bump to 8.
1826
1827 * sysdeps/powerpc/powerpc32/fpu/s_lroundf.S: Remove duplicate comment.
1828 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llroundf.S: Likewise.
1829 * sysdeps/powerpc/powerpc32/power6/fpu/s_llroundf.S: Likewise.
1830 * sysdeps/powerpc/powerpc64/fpu/s_lrint.S: Likewise.
1831 * sysdeps/powerpc/powerpc64/fpu/s_lround.S: Likewise.
1832 * sysdeps/powerpc/powerpc64/fpu/s_lroundf.S: Likewise.
1833
91e32540
UD
18342008-04-11 Jakub Jelinek <jakub@redhat.com>
1835
1836 [BZ #5443]
1837 * time/era.c: Transform __libc_setlocale_lock into rwlock.
1838 * time/alt_digit.c: Likewise.
1839 * wcsmbs/wcsmbsload.c: Likewise.
1840
fd490ac8
UD
18412008-04-10 Ulrich Drepper <drepper@redhat.com>
1842
1db5b6f4
UD
1843 * version.h (VERSION): Bump to 2.8.
1844
fd490ac8
UD
1845 * timzeone/asia: Update from tzdata2008b.
1846 * timezone/backward: Likewise.
1847 * timezone/europe: Likewise.
1848 * timezone/northamerica: Likewise.
1849 * timezone/southamerica: Likewise.
1850 * timezone/iso3166.tab: Likewise.
1851 * timezone/leapseconds: Likewise.
1852 * timezone/zone.tab: Likewise.
1853 * timezone/private.h: Update from tzcode2008a.
1854 * timezone/zdump.c: Likewise.
1855 * timezone/zic.c: Likewise.
1856
153cf972
UD
18572008-01-24 Steven Munroe <sjmunroe@us.ibm.com>
1858
1859 [BZ #5741]
1860 * sysdeps/powerpc/powerpc64/dl-machine.h (PPC_DCBT, PPC_DCBF):
1861 Define additonal Data Cache Block instruction macros.
1862 (elf_machine_fixup_plt): Add dcbt for opd and plt entries.
1863 Replace dcbst with dcbf and sync with sync/isync.
1864
d2207f32
UD
18652008-02-21 Alan Modra <amodra@bigpond.net.au>
1866
1867 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_type_class):
1868 Always set ELF_RTYPE_CLASS_PLT.
1869 (elf_machine_lookup_noexec_p, elf_machine_lookup_noplt_p): Delete.
1870
13d83320
UD
18712008-04-03 Steven Munroe <sjmunroe@us.ibm.com>
1872
1873 * sysdeps/powerpc/powerpc32/power4/hp-timing.c: New file.
1874 * sysdeps/powerpc/powerpc32/power4/hp-timing.h: New file.
1875 * sysdeps/powerpc/powerpc64/hp-timing.h [_ARCH_PWR4] (HP_TIMING_NOW):
1876 For ISA 2.01 and later replace mftb with mfspr 268.
1877
5f7aead5
UD
18782008-02-19 Steven Munroe <sjmunroe@us.ibm.com>
1879
1880 [BZ #5768]
1881 * sysdeps/powerpc/fpu/Makefile (libm-tests): Add test-powerpc-snan.
1882 * sysdeps/powerpc/fpu/test-powerpc-snan.c: New file.
1883
18842008-02-18 Steven Munroe <sjmunroe@us.ibm.com>
1885
1886 [BZ #5768]
1887 * sysdeps/powerpc/powerpc32/fpu/s_isnan.S: New file.
1888 * sysdeps/powerpc/powerpc32/fpu/s_isnan.c: Removed.
1889 * sysdeps/powerpc/powerpc64/fpu/s_isnan.S: New file.
1890 * sysdeps/powerpc/powerpc64/fpu/s_isnan.c: Removed.
1891
117df5d9
JJ
18922008-04-10 Jakub Jelinek <jakub@redhat.com>
1893
1894 * stdlib/tst-makecontext.c (othervar): New variable.
1895 (cf): Test sign extending the argument to long.
1896
3b32d8a2
UD
18972008-03-03 Steven Munroe <sjmunroe@us.ibm.com>
1898
1899 * sysdeps/powerpc/powerpc32/power5/fpu/s_isnan.S: New file.
1900 * sysdeps/powerpc/powerpc32/power5/fpu/s_isnanf.S: New file.
1901 * sysdeps/powerpc/powerpc32/power6/fpu/s_isnan.S: New file.
1902 * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S: New file.
1903 * sysdeps/powerpc/powerpc64/power5/fpu/s_isnan.S: New file.
1904 * sysdeps/powerpc/powerpc64/power6/fpu/s_isnan.S: New file.
1905 * sysdeps/powerpc/powerpc64/power6x/fpu/s_isnan.S: New file.
1906
9fb11d4c
UD
19072008-02-22 Alan Modra <amodra@bigpond.net.au>
1908
1909 * elf/Makefile (tests): Substitute tests-vis-yes here.
1910 (tests-vis-yes): Delete.
1911 (modules-name, modules-vis-yes): Similarly.
1912
facd1d8e
UD
19132008-02-12 Pete Eberlein <eberlein@us.ibm.com>
1914
1915 [BZ #4407]
1916 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
1917 Preserve sign in signgamp when x is zero.
1918
aece054b
UD
19192007-10-26 Steven Munroe <sjmunroe@us.ibm.com>
1920
1921 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: New File.
1922 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.c: Removed.
1923 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: New File.
1924 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.c: Removed.
1925 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: New File.
1926 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: New File.
1927
6c30d38f
UD
19282008-04-09 Ulrich Drepper <drepper@redhat.com>
1929
21208604 1930 [BZ #4314]
13d83320
UD
1931 * sysdeps/i386/i686/memcpy.S: Optimize copying of equally aligned
1932 buffers.
21208604 1933
2f611ada 1934 [BZ #5209]
d1235fdf
UD
1935 * sysdeps/unix/sysv/syscalls.list: The times syscall doesn't have
1936 a reserved error value.
2f611ada 1937
6c30d38f
UD
1938 * stdlib/tst-makecontext.c: Change parameter to cf to negative
1939 value to check for correct sign extension.
1940
1941 [BZ #5436]
1942 * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
1943 Copy 64-bit parameter values even though this is not required in
1944 the standard.
1945
1946 * sysdeps/unix/sysv/linux/x86_64/vfork.S (__vfork): Record return
1947 PC save.
1948
de1bbf68
UD
19492008-02-14 Daniel Jacobowitz <dan@codesourcery.com>
1950
1951 * sysdeps/unix/sysv/linux/i386/vfork.S (__vfork): Record return
1952 PC save.
1953
9aef35a5
UD
19542008-04-09 Jakub Jelinek <jakub@redhat.com>
1955
1956 * nss_files/files-XXX.c (_nss_files_getXXent_r): Restore saved errno.
1957
a7925a24
UD
19582008-04-09 Ulrich Drepper <drepper@redhat.com>
1959
1960 [BZ #5998]
1961 * libio/iofwrite.c (_IO_fwrite): Return correct count if flushing
1962 in line-buffered stream failed.
1963 * libio/iofwrite_u.c (fwrite_unlocked): Likewise.
1964
7b61ef24
UD
19652008-04-08 Ulrich Drepper <drepper@redhat.com>
1966
c2a684a4
UD
1967 [BZ #6024]
1968 * scripts/abi-versions.awk: If the version specified by
1969 --enable-oldest-abi is older than the first version for this
1970 architecture, use the default version.
1971
7b61ef24
UD
1972 * locale/programs/ld-collate.c (collate_read): Ignore script lines
1973 as well when ignoring the whole category.
1974
f6d749f0
UD
19752008-04-07 Ulrich Drepper <drepper@redhat.com>
1976
1977 [BZ #6042]
1978 * sysdeps/unix/sysv/linux/net/ethernet.h: Add a few more
1979 ETHERTYPE_* definitions.
1980 Patch partly by Aurelien Jarno <aurelien@aurel32.net>.
1981
1e99aede
JJ
19822008-04-07 Jakub Jelinek <jakub@redhat.com>
1983
1984 * stdlib/mbtowc.c (__no_r_state): Remove.
1985 (mbtowc): New static state variable. Use it instead of
1986 __no_r_state.
1987 * stdlib/wctomb.c (__no_r_state): Remove extern decl.
1988 (__wctomb_state): New hidden variable.
1989 (wctomb): Use __wctomb_state instead of __no_r_state.
1990 * debug/wctomb_chk.c (__no_r_state): Remove extern decl.
1991 (__wctomb_state): New extern decl.
1992 (__wctomb_chk): Use __wctomb_state instead of __no_r_state.
1993
fcf90e0a
UD
19942008-04-07 Ulrich Drepper <drepper@redhat.com>
1995
1996 [BZ #5475]
1997 * resolv/res_init.c: Handle scope IDs in resolv.conf.
1998
ae39e102
JJ
19992008-04-07 Jakub Jelinek <jakub@redhat.com>
2000
2001 * malloc/mtrace.pl: Use $@ instead of $* to keep perl 5.10 quiet.
2002
2503dd30
UD
20032008-04-06 Ulrich Drepper <drepper@redhat.com>
2004
2005 * po/nl.po: Update from translation team.
2006
3eb9c809
UD
20072008-03-31 Ulrich Drepper <drepper@redhat.com>
2008
2009 [BZ #6007]
2010 * string/strfry.c: Handle empty strings again.
2011
9a69db29
UD
20122008-03-30 Ulrich Drepper <drepper@redhat.com>
2013
2014 [BZ #5443]
2015 * intl/dcigettext.c (__dcigettext): Get reader lock for locale data
2016 before looking for translation.
2017 * locale/duplocale.c: Transform __libc_setlocale_lock into rwlock.
2018 * locale/freelocale.c: Likewise.
2019 * locale/newlocale.c: Likewise.
2020 * locale/setlocale.c: Likewise.
2021 Based partially on a patch by ryo@np.css.fujitsu.com.
2022
2ecc7d93
UD
20232008-03-30 Jakub Jelinek <jakub@redhat.com>
2024
2025 * intl/dcigettext.c (_nl_find_msg): Reread nconversions after
2026 acquiring wrlock. Do conv_tab allocation while holding lock.
2027 * intl/Makefile: Add rules to build and run tst-gettext6.
2028 * intl/tst-gettext6.c: New test.
2029 * intl/tst-gettext6.sh: New file.
2030
221e5230
UD
20312008-03-30 Ulrich Drepper <drepper@redhat.com>
2032
faa091c6
UD
2033 * po/nl.po: Update from translation team.
2034
221e5230
UD
2035 * sysdeps/unix/opendir.c (__alloc_dir): If allocation fails for size
2036 provided through st_blksize, try the default size before giving up.
2037
1c272665
UD
20382008-03-29 Ulrich Drepper <drepper@redhat.com>
2039
43f6bec1
UD
2040 * stdio-common/vfprintf.c (vfprintf): Correct overflow test.
2041
e8a32126
UD
2042 [BZ #5939]
2043 * sysdeps/posix/tempname.c (__gen_tempname): Correct flag selection.
2044
1e489af9
UD
2045 * posix/getopt.c (_getopt_internal_r): Remove old POSIX-demanded
2046 error message. POSIX today does not require the messages to be in
2047 a specific form. Suggested by Jim Meyering <jim@meyering.net>.
2048
1d20f7f8
UD
2049 [BZ #5979]
2050 * sunrpc/auth_unix.c: Unify printed strings.
2051 * sunrpc/clnt_tcp.c: Likewise.
2052 * sunrpc/clnt_udp.c: Likewise.
2053 * sunrpc/clnt_unix.c: Likewise.
2054 * sunrpc/svc_tcp.c: Likewise.
2055 * sunrpc/svc_udp.c: Likewise.
2056 * sunrpc/svc_unix.c: Likewise.
2057 * sunrpc/xdr.c: Likewise.
2058 * sunrpc/xdr_array.c: Likewise.
2059 * sunrpc/xdr_rec.c: Likewise.
2060 * sunrpc/xdr_ref.c: Likewise.
2061 * locale/programs/ld-time.c (time_finish): Unify messages.
2062 * locale/programs/locfile.c (handle_copy): Fix typo.
2063 * nscd/nscd.c (options): Fix typo.
2064
1c272665
UD
2065 [BZ #5995]
2066 * stdlib/strtod_l.c: Use correct sign for result in one more
2067 underflow case.
2068 Patch by Eric Blake <ebb9@byu.net>.
2069
48cc060e
UD
20702008-03-27 Jakub Jelinek <jakub@redhat.com>
2071
2072 * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Add open
2073 and creat system calls.
2074 * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove open system
2075 call.
2076 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Remove open and creat
2077 system calls.
2078 * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Likewise.
2079 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
2080 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
2081
f96853be
UD
20822008-03-27 Ulrich Drepper <drepper@redhat.com>
2083
2084 * sysdeps/unix/sysv/linux/bits/local_lim.h: Undefined ARG_MAX if
2085 <linux/limits.h> has defined it.
2086 * sysdeps/unix/sysv/linux/sys/param.h: Define NCARGS to the legacy
2087 ARG_MAX value and prevent ARG_MAX from being defined by the kernel
2088 headers.
2089 * sysdeps/unix/sysv/linux/sysconf.c: Define legacy_ARG_MAX and use
2090 it instead of ARG_MAX.
2091
fde15fdc
UD
20922008-03-25 Jakub Jelinek <jakub@redhat.com>
2093
2094 * posix/gai.conf: Fix comment for scope nullbits.
2095 * sysdeps/posix/getaddrinfo.c (gaiconf_init): If /bits is not present,
2096 default to 128 bits for v4 mapped addresses.
2097
87b9b50f
UD
20982008-03-07 Martin Schwidefsky <schwidefsky@de.ibm.com>
2099
2100 * sysdeps/s390/fpu/fegetenv.c (fegetenv): Remove PTRACE_PEEKUSER
2101 ptrace call to get the ieee_instruction_pointer from the kernel.
2102 * sysdeps/s390/fpu/fesetenv.c (fesetenv): Remove PTRACE_POKEUSER
2103 ptrace call to set the ieee_instructtion_pointer.
2104 * sysdeps/unix/sysv/linux/s390/sys/user.h (struct _user_regs_struct):
2105 Add comment that ieee_instruction_pointer is always 0.
2106
af0498dc
UD
21072008-03-09 Andreas Jaeger <aj@suse.de>
2108
2109 [BZ #5857]
2110 * sysdeps/ieee754/dbl-64/s_rint.c (__rint): Handle j0==18.
2111 * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Likewise.
2112 Patch by Mark Elliott <mark.h.elliott@lmco.com>.
2113
2114 * math/libm-test.inc (nearbyint_test): Add new test cases from #5857.
2115 (rint_test): Likewise.
2116
0ab7632d
UD
21172008-03-24 Ulrich Drepper <drepper@redhat.com>
2118
0facd3df
UD
2119 * nis/nis_call.c (nis_server_cache_search): Save errno around stat
2120 call.
2121 (__nisfind_server): Similar for open readColdStartFile call.
2122 Patch partially by Jim Meyering.
2123 * nss/nss_files/files-XXX.c (_nss_files_getXXent_r): Save errno
2124 around internal_setent call.
2125
7e570c55
UD
2126 * po/vi.po: New Vietnamese translation.
2127
e093c247
UD
2128 * sysdeps/unix/sysv/linux/adjtime.c: Correctly use
2129 ADJ_OFFSET_SS_READ.
2130
0ab7632d
UD
2131 * sysdeps/unix/sysv/linux/bits/sched.h: Add new CLONE_* flags,
2132 remove CLONE_STOPPED.
2133
0726cdf7
UD
21342008-02-10 Jim Meyering <meyering@redhat.com>
2135
2136 Remove useless "if" before "free":
2137 * elf/ldconfig.c (parse_conf_include): Likewise.
2138 * gmon/gmon.c (weak_alias): Likewise.
2139 * iconv/gconv_conf.c (__gconv_get_path): Likewise.
2140 * inet/rcmd.c (__validuser2_sa): Likewise.
2141 * intl/bindtextdom.c (set_binding_values): Likewise.
2142 * intl/loadmsgcat.c (_nl_load_domain, _nl_unload_domain): Likewise.
2143 * libio/genops.c (save_for_backup): Likewise.
2144 * libio/wgenops.c (save_for_wbackup): Likewise.
2145 * locale/programs/ld-collate.c (collate_read): Likewise.
2146 * locale/programs/linereader.c (get_string): Likewise.
2147 * nis/nss_compat/compat-pwd.c (give_pwd_free): Likewise.
2148 * nis/nss_compat/compat-spwd.c (give_spwd_free): Likewise.
2149 * resolv/res_debug.c (do_section): Likewise.
2150 * sunrpc/xdr_sizeof.c (x_inline, xdr_sizeof): Likewise.
2151 * sysdeps/mach/hurd/if_index.c (libc_hidden_def): Likewise.
2152 * sysdeps/posix/sprofil.c (__sprofil): Likewise.
2153 * time/lc-time-cleanup.c (_nl_cleanup_time): Likewise.
2154 * time/tzset.c (tzset_internal): Likewise.
2155
354b7527
JJ
21562008-03-18 Jakub Jelinek <jakub@redhat.com>
2157
2158 * sysdeps/unix/sysv/linux/dl-sysdep.h: Use __ASSEMBLER__ instead
2159 of ASSEMBLER.
2160
ca668b29
UD
21612008-03-11 Ulrich Drepper <drepper@redhat.com>
2162
2163 [BZ #5903]
2164 * iconv/iconv_charmap.c (charmap_conversion): Pass name of output file
2165 not stream for output file. Open output file here.
2166 * iconv/iconv_prog.c (process_lock): Take pointer to output stream
2167 and output file name.
2168 (process_fd): Likewise.
2169 (process_file): Likewise.
2170 (main): Adjust callers of changed functions.
2171 * iconv/iconv_prog.h: Adjust prototype.
2172
f3dc3415
AJ
21732008-03-09 Andreas Jaeger <aj@suse.de>
2174
2175 [BZ #5753]
2176 * sysdeps/ia64/ieee754.h: Use protected namespace
2177 __BIG_ENDIAN/__LITTLE_ENDIAN.
2178 * sysdeps/ieee754/ieee754.h: Likewise.
2179 Patch by Aurelien Jarno <aurelien@aurel32.net>.
2180
a8fd84d4
RM
21812008-03-08 Roland McGrath <roland@frob.com>
2182
2b965f1b
RM
2183 * hurd/hurdsig.c (_hurd_internal_post_signal): When normal rules would
2184 ignore a signal that came from a machine exception, treat it as a
2185 fatal core-dump signal instead.
2186 Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
2187
a8fd84d4
RM
2188 * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler):
2189 Clear DF bit in thread state's eflags.
2190 Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
2191
368a8dec
UD
21922008-03-08 Ulrich Drepper <drepper@redhat.com>
2193
b3278554
UD
2194 [BZ #5774]
2195 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Consume closing brace
c6c00e0d 2196 of NAN(...) sequence.
b3278554
UD
2197 * stdlib/Makefile (tests): Add tst-strtod6.
2198 * stdlib/tst-strtod6.c: New file.
2199
2200 * inet/inet6_opt.c (inet6_opt_init): Check extlen for overflow.
2201
2127a186
UD
2202 [BZ #5762]
2203 * posix/getopt.c (_getopt_internal_r): Clarify error message by
2204 putting offending option character in quotes. Clean up error
2205 messages.
2206 * po/be.po: Adjust msgstr in translation file.
2207 * po/bg.po: Likewise.
2208 * po/ca.po: Likewise.
2209 * po/cs.po: Likewise.
2210 * po/da.po: Likewise.
2211 * po/de.po: Likewise.
2212 * po/es.po: Likewise.
2213 * po/fr.po: Likewise.
2214 * po/hr.po: Likewise.
2215 * po/ko.po: Likewise.
2216 * po/nl.po: Likewise.
2217 * po/rw.po: Likewise.
2218 * po/sk.po: Likewise.
2219 * po/sv.po: Likewise.
2220 * po/tr.po: Likewise.
2221 * po/zh_CN.po: Likewise.
2222 * po/zh_TW.po: Likewise.
2223
725c0c87
UD
2224 [BZ #5760]
2225 * inet/inet6_opt.c (inet6_opt_init): Fix ip6h_len computation.
2226 Patch by Roland Bless <roland@bless.de>.
2227
368a8dec
UD
2228 * sysdeps/unix/sysv/linux/dl-sysdep.c: Avoid unnecessary code for
2229 .o file.
2230 * elf/Makefile (routines): Add dl-sysdep.
2231 (elide-routines.os): Likewise.
2232
78c2bf0e
UD
22332008-03-07 Ulrich Drepper <drepper@redhat.com>
2234
7c22c7ec
UD
2235 [BZ #5786]
2236 * elf/dl-sysdep.c: Undefine ROUND after use.
2237 * sysdeps/generic/ldsodefs.h [HAVE_DL_DISCOVER_OSVERSION]
2238 (struct rtld_global_ro): Add _dl_tls_get_addr_soft element.
2239 * elf/rtld.c (rtld_global_ro): Initialize _dl_discover_osversion.
2240 * sysdeps/unix/sysv/linux/dl-osinfo.h: Move _dl_discover_osversion
2241 to ...
2242 * sysdeps/unix/sysv/linux/dl-sysdep.c: ...here.
2243 * sysdeps/unix/sysv/linux/dl-sysdep.h: Declare _dl_discover_osversion
2244 if necessary.
2245 * sysdeps/unix/sysv/linux/sysconf.c: Handle _SC_ARG_MAX here.
2246
93025f93
UD
2247 * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Add
2248 _dl_tls_get_addr_soft element.
2249 * elf/rtld.c (rtld_global_ro): Initialize _dl_tls_get_addr_soft.
2250 * elf/Versions (ld): Don't export _dl_tls_get_addr_soft.
2251 * dlfcn/dlinfo.c (dlinfo_doit): Access dl_tls_get_addr_soft through
2252 GLRO.
2253 * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise.
2254 * elf/dl-tls.c (_dl_tls_get_addr_soft): Use attribute_hidden instead
2255 of internal_function.
2256
72f10127
UD
2257 * stdlib/Makefile (aux): Add tens_in_limb.
2258 * stdlib/strtod_l.c: Move _tens_in_limb definition to...
2259 * stdlib/tens_in_limb.c: ...here. New file.
2260
443db178
UD
2261 [BZ #5778]
2262 * sysdeps/unix/sysv/linux/pathconf.h: Declare
2263 __statfs_chown_restricted.
2264 * sysdeps/unix/sysv/linux/fpathconf.c: Call __statfs_chown_restricted
2265 for _PC_CHOWN_RESTRICTED.
2266 * sysdeps/unix/sysv/linux/pathconf.c: Likewise.
2267 Implement __statfs_chown_restricted.
2268 * sysdeps/unix/sysv/linux/bits/posix_opt.h: Change
2269 _POSIX_CHOWN_RESTRICTED value to zero.
c71665ad
UD
2270 * io/tst-fchownat.c: Correctly handle _POSIX_CHOWN_RESTRICTED
2271 defined to zero.
443db178 2272
78c2bf0e
UD
2273 * sysdeps/x86_64/rtld-memset.c: New file.
2274
443db178 22752008-02-26 Harsha Jagasia <harsha.jagasia@amd.com>
78c2bf0e
UD
2276
2277 * sysdeps/x86_64/cacheinfo.c (NOT_USED_RIGHT_NOW): Remove ifdef guards.
2278
2279 * sysdeps/x86_64/memset.S: Rewrite non-SSE code path as tuned for AMD
2280 Barcelona machine. Make default fall through branch of
2281 __x86_64_preferred_memory_instruction check as the integer code path.
2282
22832007-10-15 H.J. Lu <hongjiu.lu@intel.com>
2284
2285 * sysdeps/x86_64/cacheinfo.c
2286 (__x86_64_preferred_memory_instruction): New variable.
2287 (init_cacheinfo): Initialize __x86_64_preferred_memory_instruction.
2288
2289 * sysdeps/x86_64/memset.S: Rewrite.
2290
dff37515
UD
22912008-03-04 Jakub Jelinek <jakub@redhat.com>
2292
2293 * include/stdio.h (__asprintf_chk, __dprintf_chk,
2294 __obstack_printf_chk): New prototypes.
2295 (__vasprintf_chk, __vdprintf_chk,
2296 __obstack_vprintf_chk): Likewise.
2297 Add libc_hidden_proto.
2298 * libio/obprintf.c
2299 (_IO_obstack_jumps): No longer static, add attribute_hidden.
2300 * libio/bits/stdio-ldbl.h (__asprintf_chk, __dprintf_chk,
2301 __obstack_printf_chk, __vasprintf_chk, __vdprintf_chk,
2302 __obstack_vprintf_chk): Add __LDBL_REDIR_DECL.
2303 * libio/bits/stdio2.h (__asprintf_chk, __dprintf_chk,
2304 __obstack_printf_chk, __vasprintf_chk, __vdprintf_chk,
2305 __obstack_vprintf_chk): New prototypes.
2306 (asprintf, __asprintf, dprintf, obstack_printf, vasprintf, vdprintf,
2307 obstack_vprintf): New inlines.
2308 * debug/dprintf_chk.c: New file.
2309 * debug/vdprintf_chk.c: New file.
2310 * debug/asprintf_chk.c: New file.
2311 * debug/vasprintf_chk.c: New file.
2312 * debug/obprintf_chk.c: New file.
2313 * debug/tst-chk1.c (do_test): Add asprintf and obstack_printf tests.
2314 * debug/Versions (__asprintf_chk, __dprintf_chk, __obstack_printf_chk,
2315 __vasprintf_chk, __vdprintf_chk, __obstack_vprintf_chk): Export
2316 @@GLIBC_2.8.
2317 * debug/Makefile: Build asprintf_chk, vasprintf_chk, dprintf_chk,
2318 vdprintf_chk and obprintf_chk, set CFLAGS for them.
2319 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c (__nldbl___vasprintf_chk,
2320 __nldbl___vdprintf_chk, __nldbl___obstack_vprintf_chk): Add
2321 libc_hidden_proto.
2322 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl___vasprintf_chk,
2323 __nldbl___vdprintf_chk, __nldbl___obstack_vprintf_chk): New prototypes.
2324 * sysdeps/ieee754/ldbl-opt/Versions (__nldbl___asprintf_chk,
2325 __nldbl___vasprintf_chk, __nldbl___dprintf_chk, __nldbl___vdprintf_chk,
2326 __nldbl___obstack_printf_chk, __nldbl___obstack_vprintf_chk): Export
2327 @@GLIBC_2.8.
2328 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add asprintf_chk,
2329 vasprintf_chk, dprintf_chk, vdprintf_chk, obstack_printf_chk and
2330 obstack_vprintf_chk.
2331 * sysdeps/ieee754/ldbl-opt/nldbl-obstack_vprintf_chk.c: New file.
2332 * sysdeps/ieee754/ldbl-opt/nldbl-dprintf_chk.c: New file.
2333 * sysdeps/ieee754/ldbl-opt/nldbl-obstack_printf_chk.c: New file.
2334 * sysdeps/ieee754/ldbl-opt/nldbl-asprintf_chk.c: New file.
2335 * sysdeps/ieee754/ldbl-opt/nldbl-vdprintf_chk.c: New file.
2336 * sysdeps/ieee754/ldbl-opt/nldbl-vasprintf_chk.c: New file.
2337
d835f136
UD
23382008-03-04 Ulrich Drepper <drepper@redhat.com>
2339
a4bb445a
UD
2340 [BZ #5779]
2341 * misc/sys/queue.h: Add STAILQ_CONCAT and TAILQ_CONCAT definitions.
2342 Patch by Roy Marples <roy@marples.name>.
2343
c958a6a4
UD
2344 [BZ #5736]
2345 * malloc/malloc.c: Fix typo in comment.
2346
d835f136
UD
2347 [BZ #5627]
2348 * locale/iso-639.def: Add Shuswap.
2349
65b4743a
UD
23502008-02-25 Jakub Jelinek <jakub@redhat.com>
2351
2352 [BZ #5790]
2353 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr2_r): Don't
2354 overwrite *h_errnop/*errnop values from getanswer_r in case of
2355 failure.
2356
3868fb6e
UD
23572008-03-03 Ulrich Drepper <drepper@redhat.com>
2358
27c377dd
UD
2359 [BZ #5818]
2360 * nscd/connections.c (dbs): Add initializers for .suggested_module.
2361 (verify_persistent_db): Remove one unnecessary test and add a new one
2362 for bad configuration.
2363 (nscd_init): Improve error reported when persistent database cannot
2364 be reused.
2365 * nscd/nscd.h (DEFAULT_SUGGESTED_MODULE): Define.
2366 * nscd/nscd_conf.c (nscd_parse_file): Provide default values for
2367 .suggested_module and .max_db_size and case config file says the
2368 values are zero.
2369 * nscd/nscd_helper.c (get_mapping): Fail if hash table module is zero.
2370
0f749099
UD
2371 [BZ #5854]
2372 * nis/ypclnt.c (yp_order): Fix handling of return value of
2373 do_ypcall_tr call.
2374 Patch by Jeff Moyer <jmoyer@redhat.com>.
2375
3868fb6e
UD
2376 * po/fr.po: Update from translation team.
2377
268dbf25
AJ
23782008-02-22 Andreas Jaeger <aj@suse.de>,
2379 Carlos O'Donell <carlos@systemhalted.org>
2380
2381 [BZ #5012]
2382 * FAQ.in: Describe why glibc needs to be compiled with
2383 optimization.
2384
73b82641
RM
23852008-02-19 Roland McGrath <roland@redhat.com>
2386
2387 * elf/elf.h (SHT_GNU_ATTRIBUTES): New macro.
2388
c9136393
UD
23892008-02-15 Ulrich Drepper <drepper@redhat.com>
2390
2391 [BZ #5737]
2392 * resolv/netdb.h: Make NI_MAXHOST and NI_MAXSERV available when
2393 __USE_MISC is defined.
2394
2e3e9ff1
UD
23952008-02-10 Ulrich Drepper <drepper@redhat.com>
2396
2397 * sysdeps/unix/sysv/linux/sys/timerfd.h: New file.
2398 * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers): Add
2399 sys/timerfd.h.
2400 * sysdeps/unix/sysv/linux/syscalls.list: Add timerfd_create,
2401 timerfd_gettime, timerfd_settime.
2402 * sysdeps/unix/sysv/linux/Versions: Add timerfd_create,
2403 timerfd_gettime, timerfd_settime for GLIBC_2.8.
2404
85202a2b
RM
24052008-02-08 Roland McGrath <roland@redhat.com>
2406
2407 * elf/elf.h (NT_PPC_SPE): New macro.
2408
708ef8a4
RM
24092008-02-06 Roland McGrath <roland@redhat.com>
2410
2411 * Makerules ($(common-objpfx)sysd-rules):
2412 Depend on $(sysdep-makeconfigs).
2413
363a641b
RM
24142008-01-31 Roland McGrath <roland@redhat.com>
2415
67fbfa5c
RM
2416 [BZ #5442]
2417 * configure.in: Use -print-file-name if it yields a directory,
2418 for each of include and include-fixed.
2419 * configure: Regenerated.
2420
363a641b
RM
2421 * Makeconfig (sysd-rules-targets): New variable.
2422 * sysdeps/unix/make-syscalls.sh: Use it in the rules emitted.
2423 * sysdeps/unix/Makefile (omit-deps): Append variants for each target.
2424
0f0f9610
RM
24252008-01-30 Roland McGrath <roland@redhat.com>
2426
7bd00dbf
RM
2427 * manual/libc.texinfo: Update back-cover text.
2428
0f0f9610
RM
2429 * elf/elf.h (NT_386_TLS): New macro.
2430
16cd816f
RM
24312008-01-29 Roland McGrath <roland@redhat.com>
2432
2433 * Makeconfig (sysd-rules-patterns): New variable.
2434 * Makerules ($(common-objpfx)sysd-rules): Drive the loop from that.
2435 (check-inhibit-asm): New canned sequence, replaces ...
2436 (open-check-inhibit-asm, close-check-inhibit-asm): ... these, removed.
2437 * elf/rtld-Rules ($(objpfx)rtld-%.os): Use $(rtld-CPPFLAGS) in commands.
2438 (rtld-CPPFLAGS): Renamed from CPPFLAGS-rtld.
2439 (CFLAGS-rtld): Variable removed.
2440
f641ffcc
RM
24412008-01-24 Roland McGrath <roland@redhat.com>
2442
2443 * configure.in: Let configure fragments set base_os.
2444 * configure: Regenerated.
2445
b7e26885
UD
24462008-01-22 Ulrich Drepper <drepper@redhat.com>
2447
2448 * po/ko.po: Update from translation team.
2449
b4b166af
UD
24502008-01-12 H.J. Lu <hongjiu.lu@intel.com>
2451
2452 * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Use short for fnstsw.
2453
f66def9d
AJ
24542008-01-12 Andreas Jaeger <aj@suse.de>
2455
2456 [BZ #5040]
2457 * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h (enum EPOLL_EVENTS):
2458 Add EPOLLRDHUP.
2459
d3bc5e77
RM
24602008-01-20 Samuel Thibault <samuel.thibault@ens-lyon.org>
2461
2462 * hurd/hurdsock.c (_hurd_socket_server): Return the standard
2463 error EAFNOSUPPORT rather than non-standard EPFNOSUPPORT.
2464 * sunrpc/bindrsvprt.c (bindresvport): Likewise.
2465
4c533566
UD
24662007-10-23 Alexandre Oliva <aoliva@redhat.com>
2467
2468 * include/link.h (FORCED_DYNAMIC_TLS_OFFSET): Define.
2469 * elf/dl-close.c (_dl_close): Check for it.
2470 * elf/dl-reloc.c (CHECK_STATIC_TLS): Likewise.
2471 (_dl_allocate_static_tls): Likewise.
2472 * elf/dl-tls.c (_dl_allocate_tls_init): Likewise.
2473 (__tls_get_addr): Protect from race conditions in setting l_tls_offset
2474 to it.
2475 * elf/tst-tls16.c: New file.
2476 * elf/tst-tlsmod16a.c: New file.
2477 * elf/tst-tlsmod16b.c: New file.
2478 * elf/Makefile: Add rules to build and run tst-tls16.
2479
a53d3f82
UD
24802008-01-16 Ulrich Drepper <drepper@redhat.com>
2481
a0f6c236
UD
2482 [BZ #5628]
2483 * bits/shm.h: Fix comment describing shmid_ds.
2484 * sysdeps/gnu/bits/shm.h: Likewise.
2485 * sysdeps/unix/sysv/linux/alpha/bits/shm.h: Likewise.
2486 * sysdeps/unix/sysv/linux/bits/shm.h: Likewise.
2487 * sysdeps/unix/sysv/linux/ia64/bits/shm.h: Likewise.
2488 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
2489 * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
2490 * sysdeps/unix/sysv/linux/sh/bits/shm.h: Likewise.
2491 * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
2492 * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Likewise.
2493 Patch by Hareesh Nagarajan <hareesh.nagarajan@gmail.com>.
2494
a53d3f82
UD
2495 [BZ #5607]
2496 * conform/data/fcntl.h-data: Fix posix_fadvise and posix_fallocate
2497 prototypes.
2498 * conform/data/limits.h-data: Adjust limits changed in v6 and add
2499 additional suffixes.
2500 * conform/data/mqueue.h-data: Fix typo in mq_curmsgs entry.
2501 Add optional functions mq_timedreceive and mq_timedsend.
2502 * conform/data/netdb.h-data: Add more AI_* and EAI_* constants.
2503 * conform/data/pthread.h-data: Fix prototype of
2504 pthread_condattr_setclock. pthread_sigmask is not required in v6.
2505 * conform/data/semaphore.h-data: Allow time.h definitions.
2506 * conform/data/signal.h-data: Likewise.
2507 * conform/data/stdio.h-data: getw and putw are not required in v6.
2508 * conform/data/stdlib.h-data: Change setstate prototype.
2509 * conform/data/string.h-data: Fix strerror_r prototype.
2510 * conform/data/time.h-data: Fix typo in TIMER_ABSTIME definition.
2511 * conform/data/unistd.h-data: pthread_atfork not required in v6.
2512 Fix readlink prototype.
2513 * conform/data/netinet/in.h-data: Add const to in6addr_any and
2514 in6addr_loopback.
2515 * inet/netinet/in.h: Cleanup namespace.
2516 * posix/regex.h: Likewise.
2517 * resolv/netdb.h: Likewise.
2518 * sysdeps/unix/sysv/linux/bits/in.h: Likewise.
2519 * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
2520 * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
6107639e
UD
2521 * sysdeps/posix/getaddrinfo.c (default_labels): Adjust for change
2522 of names of in in6_addr.
2523 (default_precedence): Likewise.
2524 * sysdeps/unix/sysv/linux/cmsg_nxthdr.c: Include <stddef.h> for
2525 NULL definition.
a53d3f82 2526
ebca8f73
UD
25272008-01-15 Ulrich Drepper <drepper@redhat.com>
2528
fbe90cd5
UD
2529 * conform/data/fmtmsg.h-data: Add missing allows.
2530 * conform/data/ftw.h-data: Likewise.
2531 * conform/data/inttypes.h-data: Likewise.
2532 * conform/data/math.h-data: Likewise.
2533 * conform/data/signal.h-data: Likewise.
2534 * conform/data/net/if.h-data: Likewise.
2535 * conform/data/netinet/in.h-data: Likewise.
2536 * conform/data/sys/socket.h-data: Likewise.
2537
ebca8f73
UD
2538 [BZ #5614]
2539 * string/bits/string2.h (__strtok_r_1c): Always update *__NEXTP.
2540 (__strtok_r): Simplify.
2541 * string/tester.c (test_strtok_r): Add test case for futile search
2542 with single-character seach string.
2543
7c33ca8b
UD
25442008-01-12 Ulrich Drepper <drepper@redhat.com>
2545
2546 * po/ko.po: Update from translation team.
2547
b8cc0848
AJ
25482008-01-11 Andreas Jaeger <aj@suse.de>
2549
2550 [BZ #5600]
2551 * sysdeps/unix/sysv/linux/sys/signalfd.h (struct
2552 signalfd_siginfo): Use 64-bit type for ssi_ptr to sync with Linux
2553 kernel header.
2554
49029a66
UD
25552008-01-10 Ulrich Drepper <drepper@redhat.com>
2556
2557 * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Store result of
2558 native interface lookup in all the relevant places.
2559
99f05798
UD
25602008-01-10 Jakub Jelinek <jakub@redhat.com>
2561 Ulrich Drepper <drepper@redhat.com>
0efd1956
UD
2562
2563 * sysdeps/posix/getaddrinfo.c (sort_results): Remove service_order
2564 field. Use sockaddr_in6 for source_addr.
2565 (get_scope): Change type of parameter to sockaddr_in6. Adjust.
2566 (match_prefix): Likewise.
2567 (get_label): Likewise.
2568 (get_precedence): Likewise.
2569 (rfc3484_sort): Change to use indirect access to results array.
2570 Adjust to use of sockaddr_in6. Replace service_order test with
2571 simple index comparison.
2572 (getaddrinfo): Define order array. Initialize it. Don't initialize
2573 service_order field. Adjust qsort_t calls. Access sorted result
2574 array indirectly through order array.
2575 * posix/tst-rfc3484.c: Adjust for change of rfc3484_sort.
2576 * posix/tst-rfc3484-2.c: Likewise.
2577 * posix/tst-rfc3484-3.c: Likewise.
2578
b3443701
UD
25792008-01-09 Ulrich Drepper <drepper@redhat.com>
2580
f6bacb8e
UD
2581 [BZ #5541]
2582 * sunrpc/rpc_thread.c (__rpc_thread_destroy): Also free xports and
2583 pollfd structures.
2584 Patch by André Cruz.
2585
aa693c68
UD
2586 [BZ #5545]
2587 * sunrpc/clnt_perr.c (clnt_sperror): Don't use fixed size buffer.
2588 (clnt_spcreateerror): Likewise.
2589
b3443701
UD
2590 [BZ #5553]
2591 * malloc/malloc.c (public_mALLOc): Set ar_ptr when trying main_arena.
2592 (public_mEMALIGn): Likewise.
2593 Patch mostly by Daniel Jacobowitz.
2594
148e12ed
UD
25952008-01-09 Jakub Jelinek <jakub@redhat.com>
2596
2597 * sysdeps/unix/sysv/linux/i386/makecontext.S (__makecontext): Avoid
2598 clobbering memory at or above uc_stack.ss_sp + uc_stack.ss_size.
2599 * stdlib/Makefile: Add rules to build and run tst-makecontext2.
2600 * stdlib/tst-makecontext2.c: New test.
2601
78c2bf0e 26022008-01-08 Jakub Jelinek <jakub@redhat.com>
4b1b449d
UD
2603
2604 * iconv/loop.c (UPDATE_PARAMS): Define to empty statement if not
2605 defined.
2606 (REINIT_PARAMS): Likewise. Undefine before end of file.
2607 (STANDARD_TO_LOOP_ERR_HANDLER): Use UPDATE_PARAMS before calling
2608 transliteration hooks and REINIT_PARAMS afterwards.
2609 * iconvdata/iso-2022-jp.c (BODY): Use a separate variable for
2610 status.
2611 (REINIT_PARAMS): Define.
2612 * iconvdata/ibm1364.c (REINIT_PARAMS): Likewise.
2613 * iconvdata/ibm930.c (REINIT_PARAMS): Likewise.
2614 * iconvdata/ibm933.c (REINIT_PARAMS): Likewise.
2615 * iconvdata/ibm935.c (REINIT_PARAMS): Likewise.
2616 * iconvdata/ibm937.c (REINIT_PARAMS): Likewise.
2617 * iconvdata/ibm939.c (REINIT_PARAMS): Likewise.
2618 * iconvdata/iso-2022-cn.c (REINIT_PARAMS): Likewise.
2619 * iconvdata/iso-2022-cn-ext.c (REINIT_PARAMS): Likewise.
2620 * iconvdata/iso-2022-jp-3.c (REINIT_PARAMS): Likewise.
2621 * iconvdata/iso-2022-kr.c (REINIT_PARAMS): Likewise.
2622 * iconvdata/Makefile: Add rules to build and run tst-iconv7.c.
2623 * iconvdata/tst-iconv7.c: New test.
2624
71edcafa
UD
26252008-01-07 Ulrich Drepper <drepper@redhat.com>
2626
2627 * libio/stdio.h (vscanf): Fix definition for loser compilers.
2628
0fbfe2f7
JJ
26292008-01-05 Jakub Jelinek <jakub@redhat.com>
2630
2631 [BZ #5112]
2632 * nscd/connections.c (restart): Fix condition.
2633
8726a12e
UD
26342008-01-03 Jakub Jelinek <jakub@redhat.com>
2635
2636 * ctype/ctype.h (__ctype_b_loc, __ctype_tolower_loc,
2637 __ctype_toupper_loc): Add __THROW.
2638
f4a1363e
UD
26392008-01-02 Ulrich Drepper <drepper@redhat.com>
2640
ad586879
UD
2641 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Fix
2642 recognition of interface family.
2643
f4a1363e
UD
2644 * posix/getconf.c: Update copyright year.
2645 * nss/getent.c: Likewise.
2646 * iconv/iconvconfig.c: Likewise.
2647 * iconv/iconv_prog.c: Likewise.
2648 * elf/ldconfig.c: Likewise.
2649 * catgets/gencat.c: Likewise.
2650 * csu/version.c: Likewise.
2651 * elf/ldd.bash.in: Likewise.
2652 * elf/sprof.c (print_version): Likewise.
2653 * locale/programs/locale.c: Likewise.
2654 * locale/programs/localedef.c: Likewise.
2655 * nscd/nscd.c (print_version): Likewise.
2656 * debug/xtrace.sh: Likewise.
2657 * malloc/memusage.sh: Likewise.
2658 * malloc/mtrace.pl: Likewise.
2659 * debug/catchsegv.sh: Likewise.
2660
0dc6c5e4
UD
26612007-12-26 Ulrich Drepper <drepper@redhat.com>
2662
2663 * nss/nsswitch.c (__nss_lookup): Actually use alternative name in
2664 second lookup.
2665
80af8b82
UD
26662007-12-23 Ulrich Drepper <drepper@redhat.com>
2667
2668 * sysdeps/x86_64/cacheinfo.c (intel_02_known): New entry 0x3f.
2669 * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
2670
4bcecfb7
RM
26712007-12-17 Roland McGrath <roland@redhat.com>
2672
2673 * inet/ether_line.c (ether_line): Remove unused variable.
2674
26752007-12-17 Samuel Thibault <samuel.thibault@ens-lyon.org>
2676
2677 * login/forkpty.c (forkpty): Add const qualifier to parameters termp
2678 and winp.
2679 * login/openpty.c (openpty): Likewise.
2680 * login/pty.h (openpty, forkpty): Likewise.
2681 * manual/terminal.texi (openpty, forkpty): Likewise.
2682
4cd4c5d6
UD
26832007-12-17 Ulrich Drepper <drepper@redhat.com>
2684
78c2bf0e 2685 * malloc/malloc.c (public_cALLOc): For arenas other than
4cd4c5d6
UD
2686 main_arena, count all bytes inside the mprotect_size range of the
2687 heap as uninitialized.
2688
68631c8e
UD
26892007-12-16 Ulrich Drepper <drepper@redhat.com>
2690
d9961b6a
UD
2691 * elf/tst-execstack.c (do_test): Don't fail if SELinux forbids
2692 executable stacks.
2693
68631c8e
UD
2694 * malloc/malloc.c (public_mTRIm): Iterate over all arenas and call
2695 mTRIm for all of them.
2696 (mTRIm): Additionally iterate over all free blocks and use madvise
2697 to free memory for all those blocks which contain at least one
2698 memory page.
be8c1500
UD
2699 * malloc/tst-trim1.c: New file.
2700 * malloc/Makefile (tests): Add tst-trim1.
68631c8e
UD
2701
2702 * malloc/malloc.c (do_check_malloc_state): Minimal cleanups.
2703
78b767a0
UD
27042007-12-14 Ulrich Drepper <drepper@redhat.com>
2705
2706 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INTERNAL_SYSCALL_ERROR_P):
2707 First cast argument to long
52386be7
UD
2708 * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_gettimeofday):
2709 Return long.
2710 (__vdso_clock_gettime): Likewise.
78b767a0
UD
2711 * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Functions
2712 return long.
2713
bc3e1c12
UD
27142007-12-13 Ulrich Drepper <drepper@redhat.com>
2715
2716 * locale/nl_langinfo.c (nl_langinfo): Just call __nl_langinfo_l.
2717 * locale/nl_langinfo_l.c: Real implementation, copied from
2718 nl_langinfo.c.
2719 * include/langinfo.h: Add libc_hidden_proto for __nl_langinfo_l.
2720
77751669
UD
27212007-12-01 Jim Meyering <meyering@redhat.com>
2722
2723 * posix/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
2724 that would inhibit utf8-optimization of a regexp containing line-
2725 or buffer-anchors, e.g., `^', `$'.
2726
f63e5063
UD
27272007-12-12 Ulrich Drepper <drepper@redhat.com>
2728
2729 * time/bug-getdate1.c (do_test): Don't use century values which
2730 aren't valid on 32-bit systems.
2731
a78814a9
UD
27322007-12-12 Jakub Jelinek <jakub@redhat.com>
2733
2734 * sysdeps/i386/i486/bits/string.h (memmove): Define as macro.
2735 (memmove): Rename to __memmove_g, with __asm__ ("memmove").
2736 * sysdeps/s390/bits/string.h (__strlen_g, __strcpy_g, __strncpy_g,
2737 __strcat_g, __strncat_g): Add __asm__.
2738
27392007-12-12 Ulrich Drepper <drepper@redhat.com>
2740
2741 [BZ #5477]
2742 * io/fchmodat.c: Fix typo in stub_warning use.
2743 Patch by Petr Salinger.
2744
17edb30c
UD
27452007-12-11 Ulrich Drepper <drepper@redhat.com>
2746
58d11795
UD
2747 * iconvdata/hp-thai8.c: New file.
2748 * iconvdata/Makefile: Add rules for hp-thai8.c.
2749 * iconvdata/tst-tables.sh: Add entry for HP-THAI8.
2750 * iconvdata/gconv-modules: Likewise.
2751
2752 [BZ #5464]
2753 * iconvdata/hp-greek8.c: New file.
2754 * iconvdata/Makefile: Add rules for hp-greek8.c.
2755 * iconvdata/tst-tables.sh: Add entry for HP-GREEK8.
2756 * iconvdata/gconv-modules: Likewise.
2757
2758 [BZ #5463]
2759 * iconvdata/hp-turkish8.c: New file.
2760 * iconvdata/Makefile: Add rules for hp-turkish8.c.
2761 * iconvdata/tst-tables.sh: Add entry for HP-TURKISH8.
2762 * iconvdata/gconv-modules: Likewise.
2763
cbf5760e
UD
2764 * malloc/arena.c (grow_heap): Split out code to shrink heap into...
2765 (shrink_heap): ... this new function.
2766 (heap_trim): Call shrink_heap instead of grow_heap.
2767
17edb30c
UD
2768 * malloc/malloc.c (_int_malloc): sYSMALLOc might fail, in this
2769 case don't call alloc_perturb.
2770
ae18718f
UD
27712007-12-10 Ulrich Drepper <drepper@redhat.com>
2772
2773 * sysdeps/unix/sysv/linux/adjtime.c: Use ADJ_OFFSET_SS_READ if
2774 possible.
2775 * sysdeps/unix/sysv/linux/kernel-features.h
2776 (__ASSUME_ADJ_OFFSET_SS_READ): Define for 2.6.24.
2777 * sysdeps/unix/sysv/linux/sys/timex.h (ADJ_OFFSET_SS_READ): Define.
2778
b4354cf4
UD
27792007-12-08 Ulrich Drepper <drepper@redhat.com>
2780
2781 [BZ #5424]
2782 * stdio-common/vfprintf.c: Do not overflow when adding to done.
2783 * stdio-common/Makefile (tests): Add bug22.
2784 * stdio-common/bug22.c: New file.
2785
2786 [BZ #5451]
2787 * time/getdate.c: Fix filling in default values.
2788 * time/bug-getdate1.c: New file.
2789 * time/Makefile: Add rules to build and run bug-getdate1.
2790
2791 * iconvdata/ebcdic-is-friss.c: Use 8bit-gap instead of 8bit-generic.
2792 * iconvdata/ebcdic-es.c: Likewise.
2793 * iconvdata/ebcdic-es-a.c: Likewise.
2794 * iconvdata/ebcdic-uk.c: Likewise.
2795 * iconvdata/iso8859-16.c: Likewise.
2796 * iconvdata/viscii.c: Likewise.
2797 * iconvdata/iso8859-9e.c: Likewise.
2798 * iconvdata/Makefile: Adjust appropriately.
2799
2800 [BZ #5428]
2801 * wcsmbs/wchar.h: Unconditionally undefine __need_mbstate and
2802 __need_wint_t.
2803
26e21e75
UD
28042007-12-07 Ulrich Drepper <drepper@redhat.com>
2805
87520ccc
UD
2806 [BZ #5427]
2807 * iconvdata/hp-roman9.c: New file.
2808 * iconvdata/Makefile: Add rules for hp-roman9.c.
2809 * iconvdata/tst-tables.sh: Add HP-ROMAN9.
b4354cf4 2810 * iconvdata/gconv-modules: Likewise.
87520ccc
UD
2811
2812 * iconvdata/hp-roman8.c: Use 8bit-gap instead of 8bit-generic.
2813 * iconvdata/Makefile: Adjust appropriately.
2814
26e21e75
UD
2815 [BZ #5441]
2816 * stdio-common/vfscanf.c (_IO_vfwscanf): Don't free ptrs_to_free
2817 structure, it's allocated with alloca.
2818 * stdio-common/Makefile (tests): Add bug21.
2819 * stdio-common/bug21.c: New file.
2820
28212007-12-06 Aurelien Jarno <aurelien@aurel32.net>
2822
2823 [BZ #5452]
2824 * sysdeps/unix/sysv/linux/bits/sched.h: Use __extension__
87520ccc 2825 keyword for gcc's braced-groups.
26e21e75
UD
2826
28272007-12-07 Ulrich Drepper <drepper@redhat.com>
2828
2829 [BZ #5454]
2830 * inet/ether_line.c: Strip hostname of whitespaces.
2831 * inet/Makefile (tests): Add tst-ether_line.
2832 * inet/tst-ether_line.c: New file.
2833
9e80c123
UD
28342007-12-03 Ulrich Drepper <drepper@redhat.com>
2835
da0ff4ae
UD
2836 [BZ #5439]
2837 * sysdeps/unix/sysv/linux/sys/signalfd.h: Fix use of __nonnull.
2838
51bd20d9
UD
2839 [BZ #5435]
2840 * sysdeps/unix/sysv/linux/i386/makecontext.S: Align stack.
2841
d90d0256
UD
2842 * stdlib/tst-setcontext.c: Catch the case where the links gets
2843 messed up and we do not reach main again.
2844
9e80c123
UD
2845 * po/ca.po: Update from translation team.
2846
ae4287f8
UD
28472007-11-26 Ulrich Drepper <drepper@redhat.com>
2848
6701afc7 2849 * posix/unistd.h: Declare fsync also for __USE_XOPEN2K.
79fb2e02 2850 * posix/regex.h (REG_ENOSYS): Likewise.
a912a4f8 2851 * wcsmbs/wchar.h: Define __need_file also for __USE_XOPEN2K.
ae4287f8 2852
30294ea4
UD
28532007-11-25 Ulrich Drepper <drepper@redhat.com>
2854
2855 * nscd/nscd.h (MAX_STACK_USE): Define.
2856 * nscd/mem.c (MAX_STACK_USE): Remove definition here.
2857 (gc): Initialize stack_used based on allocation in prune_cache.
2858 * nscd/cache.c (prune_cache): Use heap for mark array if necessary.
e8667ddc 2859 Clear array before use.
30294ea4
UD
2860
2861 * nscd/aicache.c (addhstaiX): Update statistics counter in case
10a4c1e9 2862 memory allocation failed.
e8667ddc
UD
2863 * nscd/hstcache.c (cache_addhst): Likewise.
2864 * nscd/grpcache.c (cache_addgr): Likewise.
2865 * nscd/servicescache.c (cache_addserv): Likewise.
2866 * nscd/pwdcache.c (cache_addpw): Likewise.
2867 * nscd/initgrcache.c (addinitgroupsX): Likewise.
30294ea4 2868
715db78b
UD
28692007-11-23 Ulrich Drepper <drepper@redhat.com>
2870
609bb071
UD
2871 * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Add open
2872 and creat system calls.
2873
715db78b
UD
2874 * sysdeps/unix/sysv/linux/check_native.c: Include <asm/types.h>.
2875
ea2c47b6
UD
28762007-11-23 Martin Schwidefsky <schwidefsky@de.ibm.com>
2877
2878 * sysdeps/unix/sysv/linux/Makefile [subdir=inet] (sysdep_headers):
2879 Add netiucv/iucv.h.
2880 * sysdeps/unix/sysv/linux/netiucv/iucv.h: New file.
2881 * sysdeps/unix/sysv/linux/opensock.c (__opensock): Add AF_IUCV
2882 protocol.
2883 * sysdeps/unix/sysv/linux/sa_len.c (__libc_sa_len): Likewise.
2884 * sysdeps/unix/sysv/linux/s390/opensock.c: New file.
2885 * sysdeps/unix/sysv/linux/s390/sa_len.c: New file.
2886
dcdcf4b9
UD
28872007-11-22 Martin Schwidefsky <schwidefsky@de.ibm.com>
2888
37143323
UD
2889 * sysdeps/s390/bits/string.h (strlen, strcpy, strncpy, strcat,
2890 strncat): Define as macros to avoid compile errors.
2891
dcdcf4b9
UD
2892 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Add open and
2893 creat entries.
2894
3a632674
UD
28952007-11-22 Ulrich Drepper <drepper@redhat.com>
2896
7ea8eb02
UD
2897 [BZ #5382]
2898 * nscd/nscd.h (NSCD_THREAD_STACKSIZE): Define.
2899 * nscd/connections.c (start_threads): Use NSCD_THREAD_STACKSIZE.
715db78b 2900 * nscd/mem.c (gc): Don't allocate arrays on the stack if they can
7ea8eb02 2901 overflow it.
70d5b6ef 2902 Partially based on a patch by Petr Baudis <pasky@suse.cz>.
7ea8eb02
UD
2903
2904 * sysdeps/unix/sysv/linux/nscd_setup_thread.c (setup_thread):
715db78b 2905 Return zero in case the thread library is not NPTL.
7ea8eb02 2906
5c3a3dba
UD
2907 [BZ #5375]
2908 * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix locking when
2909 initializing interface list.
2910
85883123
UD
2911 [BZ #5378]
2912 * nis/nss_compat/compat-initgroups.c (getgrent_next_nss): Don't
2913 use result of nss_getgrgid_r if nothing was found. For other
2914 error return with a failure.
2915 Partially based on a patch by Petr Baudis <pasky@suse.cz>.
2916
3a632674
UD
2917 * locale/programs/ld-collate.c (collate_read): Fix loop to match
2918 macro name.
2919
b73f9135
UD
29202007-11-19 Ulrich Drepper <drepper@redhat.com>
2921
ee72b971
UD
2922 * sysdeps/posix/getaddrinfo.c (defaults_scopes, scopes): New variables.
2923 (get_scope): For IPv4 scope, use scopes table.
2924 (fini): Free scopes table if necessary.
2925 (free_scopelist): New function.
2926 (scopecmp): New function.
2927 (gaiconf_init): Also handle scopev4 entries.
2928 * posix/tst-rfc3484.c (do_test): Initialize scopes.
2929 * posix/tst-rfc3484-2.c (do_test): Likewise.
2930 * posix/gai.conf: Document scopev4 defaults.
2931 * posix/Makefile (tests): Add tst-rfc3484-3.
2932 * posix/tst-rfc3484-3.c: New file.
2933
f4a79765
UD
2934 * sysdeps/posix/getaddrinfo.c (default_labels): Describe entry for
2935 Teredo tunnels.
b73f9135
UD
2936 * posix/gai.conf: Update for current default tables.
2937
429bd64d
UD
29382007-11-19 Ulrich Drepper <drepper@redhat.com>
2939
2940 * po/tr.po: Update from translation team.
2941
3c9af259
RM
29422007-11-18 Roland McGrath <roland@frob.com>
2943
76cf9889
RM
2944 * manual/arith.texi (Remainder Functions): Spelling fix.
2945 From Shaun Silk <genix@mysoul.com.au>.
2946
3c9af259
RM
2947 * sysdeps/mach/hurd/bits/fcntl.h (O_CLOEXEC): Fix value.
2948
238346ab
UD
29492007-11-17 Ulrich Drepper <drepper@redhat.com>
2950
5879ad50
UD
2951 * po/zh_CN.po: Update from translation team.
2952
238346ab
UD
2953 * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
2954 Add sys/signalfd.h and sys/eventfd.h.
2955
b80b9c77
UD
29562007-11-15 Bruno Haible <bruno@clisp.org>
2957
2958 [BZ #5346]
2959 * intl/dcigettext.c (struct known_translation_t): Turn msgid into a
2960 union.
2961 (transcmp): Use the appropriate part of s1->msgid and s2->msgid.
2962 (DCIGETTEXT): Change the allocation of the 'search' variable so that
2963 it needs only fixed stack space. Delay the initialization of
2964 msgid_len until it is needed.
2965
2da2501c
AJ
29662007-11-15 Andreas Jaeger <aj@suse.de>
2967
2968 * sysdeps/ieee754/dbl-64/sincos.tbl: Fix size of union.
2969 Reported by Christoph Quirin Lauter <christoph.lauter@ens-lyon.fr>.
2970
68a6dcf5
UD
29712007-11-15 Ulrich Drepper <drepper@redhat.com>
2972
2973 * po/ko.po: Update from translation team.
2974
43850227
UD
29752007-11-14 Ulrich Drepper <drepper@redhat.com>
2976
1e2692c9
UD
2977 * sysdeps/unix/sysv/linux/check_native.c (__check_native): Simplify
2978 significantly. The device type is also part of the ifinfomsg data.
2979
84e6cc7c 2980 * po/sv.po: Update from translation team.
cbd52634 2981 * po/nl.po: Likewise.
84e6cc7c 2982
f9e2261b
UD
2983 * nscd/cache.c (prune_cache): If cache is empty, instruct caller
2984 to wake up in 24 hours.
2985
43850227
UD
2986 * nscd/gai.c (__ioctl): Define. Include check_native.c.
2987
5742e960
UD
29882007-11-13 Ulrich Drepper <drepper@redhat.com>
2989
1a821d82
UD
2990 * po/cs.po: Update from translation team.
2991 * po/pl.po: Likewise.
2992
773e79b3
UD
2993 * include/ifaddrs.h: Remove in6ai_temporary.
2994 (struct in6addrinfo): Add index element.
2995 Declare __check_native.
2996 * inet/Makefile (aux): Add check_native.
2997 * sysdeps/unix/sysv/linux/check_native.c: New file.
2998 * sysdeps/unix/sysv/linux/check_pf.c: No need to recognize
2999 IFA_F_TEMPORARY. Pass back ifa_index.
3000 * sysdeps/posix/getaddrinfo.c: Remove netlink compatibility code.
3001 (rfc3484_sort): Add new parameter. Implement rule 7 correctly:
3002 call __check_native if necessary.
3003 (getaddrinfo): Fill in index field. Use qsort_r instead of qsort
3004 to sort addresses. Pass information about the results.
3005 * posix/tst-rfc3484.c: Adjust for addition of index field and change
3006 of rfc3484_sort interface.
3007 * posix/tst-rfc3484-2.c: Likewise.
3008
e458144c
UD
3009 * stdlib/stdlib.h: Define __compar_d_fn_t. Declare qsort_r.
3010 * include/stdlib.h: Add hidden_proto for qsort_t and adjust protoype
3011 for _quicksort.
3012 * stdlib/msort.c (qsort): Now a wrapper around qsort_r.
3013 (qsort_r): Renamed from qsort. Take additional parameter and pass it
3014 on as third parameter to compare function and _quicksort.
3015 * stdlib/qsort.c (_quicksort): Take additional parameter and pass on
3016 to the compare function.
3017 * stdlib/Versions [libc] (GLIBC_2.8): Add qsort_r.
3018 * Versions.def: Add GLIBC_2.8 for libc.
3019
bd63f380
UD
3020 * posix/tst-rfc3484.c: Adjust for addition of prefixlen field.
3021 * posix/tst-rfc3484-2.c: Likewise.
3022
5742e960
UD
3023 * include/kernel-features.h: Moved to...
3024 * sysdeps/mach/hurd/kernel-features.h: ...here.
3025
a6ac7fdb
RM
30262007-09-13 H.J. Lu <hongjiu.lu@intel.com>
3027
3028 * sysdeps/i386/i586/memcpy_chk.S: New file.
3029 * sysdeps/i386/i586/mempcpy_chk.S: Likewise.
3030 * sysdeps/i386/i586/memset_chk.S: Likewise.
3031
6f3914d5
UD
30322007-11-12 Ulrich Drepper <drepper@redhat.com>
3033
3034 * include/ifaddrs.c (struct in6addrinfo): Add prefixlen field.
3035 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Always return
3036 list of interfaces. Also store prefix length.
3037 * sysdeps/posix/getaddrinfo.c (sort_result): Add prefixlen element.
3038 (rfc3484_sort): In rule 9, for IPv4 addresses count only matching
3039 prefix if source and destination address are in the same subnet.
3040 (getaddrinfo): Always call __check_pf. Fill in prefixlen field.
3041 Always look for matching record in in6ai list.
3042 Correct source_addr_len value for IPv6->IPv4 converted records.
3043
78cf5f6a
RM
30442007-11-11 Roland McGrath <roland@frob.com>
3045
3046 * include/kernel-features.h: New file.
3047
7f745396
UD
30482007-11-10 Ulrich Drepper <drepper@redhat.com>
3049
01e7fdbb
UD
3050 * sysdeps/pthread/aio_misc.c (handle_fildes_io): Avoid unnecessary
3051 complications for 64-bit platforms.
3052
7f745396
UD
3053 * sysdeps/unix/sysv/linux/open64.c: Move __open64_2 implementation to..
3054 * sysdeps/unix/sysv/linux/open64_2.c: ...here. New file.
3055 * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines): Add
3056 open64_2.
3057 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Add open and creat
3058 entries.
3059 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
3060 * sysdeps/wordsize-64/alphasort.c: New file.
3061 * sysdeps/wordsize-64/alphasort64.c: New file.
3062 * sysdeps/wordsize-64/fseeko.c: New file.
3063 * sysdeps/wordsize-64/fseeko64.c: New file.
3064 * sysdeps/wordsize-64/ftello.c: New file.
3065 * sysdeps/wordsize-64/ftello64.c: New file.
3066 * sysdeps/wordsize-64/ftw.c: New file.
3067 * sysdeps/wordsize-64/ftw64.c: New file.
3068 * sysdeps/wordsize-64/iofgetpos.c: New file.
3069 * sysdeps/wordsize-64/iofgetpos64.c: New file.
3070 * sysdeps/wordsize-64/iofopen.c: New file.
3071 * sysdeps/wordsize-64/iofopen64.c: New file.
3072 * sysdeps/wordsize-64/iofsetpos.c: New file.
3073 * sysdeps/wordsize-64/iofsetpos64.c: New file.
3074 * sysdeps/wordsize-64/lockf.c: New file.
3075 * sysdeps/wordsize-64/lockf64.c: New file.
3076 * sysdeps/wordsize-64/mkostemp.c: New file.
3077 * sysdeps/wordsize-64/mkostemp64.c: New file.
3078 * sysdeps/wordsize-64/mkstemp.c: New file.
3079 * sysdeps/wordsize-64/mkstemp64.c: New file.
3080 * sysdeps/wordsize-64/scandir.c: New file.
3081 * sysdeps/wordsize-64/scandir64.c: New file.
3082 * sysdeps/wordsize-64/tmpfile.c: New file.
3083 * sysdeps/wordsize-64/tmpfile64.c: New file.
3084 * sysdeps/wordsize-64/versionsort.c: New file.
3085 * sysdeps/wordsize-64/versionsort64.c: New file.
3086 * sysdeps/unix/sysv/linux/wordsize-64/aio_read.c: New file.
3087 * sysdeps/unix/sysv/linux/wordsize-64/aio_read64.c: New file.
3088 * sysdeps/unix/sysv/linux/wordsize-64/aio_write.c: New file.
3089 * sysdeps/unix/sysv/linux/wordsize-64/aio_write64.c: New file.
3090 * sysdeps/unix/sysv/linux/wordsize-64/creat64.c: New file.
3091 * sysdeps/unix/sysv/linux/wordsize-64/getdirentries.c: New file.
3092 * sysdeps/unix/sysv/linux/wordsize-64/getdirentries64.c: New file.
3093 * sysdeps/unix/sysv/linux/wordsize-64/lio_listio.c: New file.
3094 * sysdeps/unix/sysv/linux/wordsize-64/lio_listio64.c: New file.
3095 * sysdeps/unix/sysv/linux/wordsize-64/open64.c: New file.
3096 * sysdeps/unix/sysv/linux/wordsize-64/openat.c: New file.
3097 * sysdeps/unix/sysv/linux/wordsize-64/openat64.c: New file.
3098
3099 * crypt/sha256-crypt.c: Fix a comment.
3100 * crypt/sha512-crypt.c: Likewise.
3101
f6ed654c
UD
31022007-11-07 H.J. Lu <hongjiu.lu@intel.com>
3103
3104 * sysdeps/x86_64/memset.S: Add sfence after movnti.
3105
f2a8406a
UD
31062007-11-07 Ulrich Drepper <drepper@redhat.com>
3107
3108 [BZ #5277]
3109 * iconv/loop.c (STANDARD_TO_LOOP_ERR_HANDLER): If conversion failed
3110 because output buffer is too small break, don't loop.
3111 * iconvdata/Makefile (tests): Add bug-iconv6.
3112 * iconvdata/bug-iconv6.c: New file.
3113
7fe4e0e8
UD
31142007-11-06 Ulrich Drepper <drepper@redhat.com>
3115
9ca230d6
UD
3116 * stdio-common/vfprintf.c (vfprintf): Compute necessary buffer size
3117 with size_t type.
3118 * stdio-common/printf_fp.c (__print_fp): Change chars_needed type to
3119 size_t. Add casts where needed.
3120
7fe4e0e8
UD
3121 * nscd/selinux.c (nscd_request_avc_has_perm): When compiled with
3122 old headers, don't call avc_has_perm if we don't have the
3123 permission information.
3124
b92e3780
UD
31252007-11-05 Daniel Jacobowitz <dan@codesourcery.com>
3126
3127 * elf/rtld.c (dl_main): Use the page size to find the map start.
3128
ffb1b882
UD
31292007-11-05 Ulrich Drepper <drepper@redhat.com>
3130
94a749f6
UD
3131 * time/tzfile.c (__tzfile_read): Fix check for version 0 data files.
3132 Patch by Szymon Siwek <sls@poczta.wp.pl>.
3133
ffb1b882
UD
3134 * nscd/aicache.c (addhstaiX): Check herrno after IPv4 lookup only
3135 when the lookup call failed.
3136
3137 * nscd/nscd.h (struct database_dyn): Rename prunelock to prune_lock.
3138 Add prune_cond and wakeup_time.
3139 (CACHE_PRUNE_INTERNAL): Define.
3140 Update declarations of prune_cache and setup_thread.
3141 * nscd/connections.c (dbs): Update initializers.
3142 (CACHE_PRUNE_INTERNAL): Moved to nscd.h.
3143 (nscd_init): Default number of threads is now 4.
3144 (invalidate_cache): Take lock before calling prune_cache.
3145 (handle_request): If SELinux forbids the request, say so.
3146 (readylist_cond): Use static initializer.
3147 (nscd_run_prune): New function. Used only by pruning threads.
3148 (nscd_run_worder): Renamed from nscd_run. Remove support for pruning
3149 here.
3150 (fd_ready): Update nscd_run reference.
3151 (start_threads): No need to initialize readylist_cond.
3152 Start pruning threads separately.
3153 * nscd/nscd_setup_thread.c: Change return value type to int and always
3154 return 0.
3155 * sysdeps/unix/sysv/linux/nscd_setup_thread.c: Change return value type
3156 to int and return nonzero value if we can use the TID address hack.
3157 * nscd/cache.c (cache_add): If next wakeup time of cleanup thread for
3158 the database is later than the new entry's timeout, update the
3159 wakeup time and wake the cleanup thread.
3160 (prune_cache): Return seconds the next entry in the database is still
3161 valid. Remove locking for pruning here.
3162 * nscd/nscd.conf: Document default number of threads.
3163
4c48ef06
UD
31642007-10-31 Ulrich Drepper <drepper@redhat.com>
3165
41ff2a49
UD
3166 * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Make sure
3167 stack is properly aligned for the target function.
3168 Correct unwind info.
ffb1b882 3169
4c48ef06
UD
3170 * elf/rtld.c (dl_main): Initialize stack and pointer guard early
3171 when using auditing libraries.
3172
384ca551
UD
31732007-10-29 Ulrich Drepper <drepper@redhat.com>
3174
31e2791c
UD
3175 * resolv/Versions [libresolv] (GLIBC_PRIVATE): Add
3176 _nss_dns_getnetbyaddr2_r.
3177 * resolv/nss_dns/dns-host.c: Define _nss_dns_getnetbyaddr2_r. Pass
3178 extra parameter to getanswer_r.
3179 (_nss_dns_getnetbyaddr_r): Now a wrapper around
3180 _nss_dns_getnetbyaddr2_r.
3181
384ca551
UD
3182 * nscd/Makefile (nscd-modules): Replace gethstbynm2_r with
3183 gethstbynm3_r.
3184 * nscd/gethstbynm2_r.c: Remove.
3185 * nscd/gethstbynm3_r.c: New file.
3186 * nscd/aicache.c (addhstaiX): Use __gethostbyaddr2_r instead of
3187 __gethostbyaddr_r.
3188 * nscd/gethstbyad_r.c: Generate __gethostbyaddr2_r function. Define
3189 __gethostbyaddr_r compatibility wrapper.
3190 * nscd/hstcache.c (cache_addhst): Add ttl parameter. Use it when
3191 determining timeout of entry.
3192 (lookup): Take new parameter and pass it to __gethostbyname3_r and
3193 __gethostbyaddr2_r.
3194 (addhstbyX): Pass reference to variable for TTL to lookup and
3195 cache_addhst.
3196 * nss/Versions [glibc] (GLIBC_PRIVATE): Export __nss_passwd_lookup2,
3197 __nss_group_lookup2, __nss_hosts_lookup2, __nss_services_lookup2,
3198 and __nss_next2. Remove __nss_services_lookup.
3199 * nss/XXX-lookup.c: Name function now *_lookup2. Add new parameter.
3200 Add compat wrapper.
3201 * nss/getXXbyYY_r.c: Changes to call new *_lookup2 functions and
3202 __nss_next2.
3203 * nss/getXXent_r.c: Likewise.
3204 * nss/getnssent_r.c: Likewise.
3205 * nss/nsswitch.c (__nss_lookup): Add new parameter. If first function
3206 does not exist in module, try the optional second name.
3207 (__nss_next2): New function.
3208 (__nss_next): Now wrapper around __nss_next2.
3209 * nss/nsswitch.h: Adjust __nss_lookup prototype.
3210 Declare __nss_next2.
3211 Adjust definition of db_lookup_function type.
3212 * nss/service-lookup.c: Define NO_COMPAT.
3213 * include/netdb.h: Declare __gethostbyaddr2_r and __gethostbyname3_r.
3214 * inet/ether_hton.c: Use __nss_next2 instead of __nss_next.
3215 * inet/ether_ntoh.c: Likewise.
3216 * sunrpc/netname.c: Likewise.
3217 * sunrpc/publickey.c: Likewise.
3218 * inet/getnetgrent.c: Likewise. Adjust calls to __nss_lookup.
3219 * inet/gethstbyad_r.c (DB_LOOKUP_FCT): Change to __nss_hosts_lookup2.
3220 * inet/gethstbynm2_r.c (DB_LOOKUP_FCT): Likewise.
3221 * inet/gethstbynm_r.c (DB_LOOKUP_FCT): Likewise.
3222 * inet/gethstent_r.c (DB_LOOKUP_FCT): Likewise.
3223
3224 * nscd/aicache.c (addhstaiX): Fix default TTL handling.
3225
5e37840c 3226 * inet/getnetgrent_r.c (setup): Encrypt static pointer.
384ca551 3227
88197030
UD
32282007-10-28 Ulrich Drepper <drepper@redhat.com>
3229
f160a450
UD
3230 [BZ #5204]
3231 * crypt/sha256c-test.c: Define TIMEOUT to 6 for ancient hardware.
3232 * crypt/sha512c-test.c: Likewise.
3233
4c6b2202
UD
3234 [BZ #5225]
3235 * stdio-common/vfscanf.c (_IO_vfwscanf): Don't misuse wp pointer
3236 to keep track of end of %[ format string element.
22c915ac
UD
3237 * stdio-common/Makefile (tests): Add bug20.
3238 * stdio-common/bug20.c: New file.
4c6b2202 3239
88197030
UD
3240 [BZ #5222]
3241 * elf/dl-load.c (_dl_rtld_di_serinfo): Correct handling of short
3242 path elements in counting mode.
3243
05d69147
UD
32442007-10-27 Andreas Jaeger <aj@suse.de>
3245
94833f11
UD
3246 [BZ #5040]
3247 * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLRDHUP): Add value.
3248
05d69147
UD
3249 [BZ #3112]
3250 * sysdeps/ia64/backtrace.c (init): Free shared library if incorrect.
3251 (__cleanup): Free shared library when exiting.
3252 * sysdeps/i386/backtrace.c (init): Free shared library if incorrect.
3253 (__cleanup): Free shared library when exiting.
3254
e6b29af8
UD
32552006-04-14 H.J. Lu <hongjiu.lu@intel.com>
3256
3257 [BZ #2549]
3258 * math/libm-test.inc (check_float_internal): Support
3259 denormalized return.
3260
ad3371fb
UD
32612007-10-23 Andreas Jaeger <aj@suse.de>
3262
3263 [BZ #5208]
3264 * sysdeps/unix/sysv/linux/readahead.c (__readahead): Use
3265 __LONG_LONG_PAIR to handle little endian byte order.
3266 Suggested by abhishekrai@google.com
3267
666aa020
UD
32682007-10-27 Ulrich Drepper <drepper@redhat.com>
3269
3270 * malloc/arena.c [!NO_THREADS]: Use ATFORK_MEM if defined.
3271
8ad343b3
UD
32722007-10-26 Ulrich Drepper <drepper@redhat.com>
3273
3274 * nscd/cache.c (prune_cache): Move test for modified file outside
3275 of locking.
3276
9251c568
AJ
32772007-10-21 Andreas Jaeger <aj@suse.de>
3278
3279 * manual/texinfo.tex: Update to latest version.
3280
3281 * manual/sysinfo.texi (System Parameters): Fix Formatting.
3282
3283 * manual/arith.texi (Status bit operations): Fix formatting.
3284
3285 * manual/errno.texi (Error Messages): Fix formatting.
3286
3287 * manual/sysinfo.texi (System Parameters): Fix formatting.
3288
3289 * manual/libc.texinfo: Update VERSION and UPDATED.
3290
260b2e06
RM
32912007-10-19 Roland McGrath <roland@redhat.com>
3292
3293 * elf/Makefile ($(objpfx)ld.so): Use $(AWK).
3294
46ae8850
JJ
32952007-10-06 David S. Miller <davem@davemloft.net>
3296
3297 * configure.in: Add sparcv9v2 and sparc64v2.
3298 * scripts/config.sub: Likewise.
3299 * configure: Regenerate.
3300 * elf/elf.h (HWCAP_SPARC_N2): New.
3301 * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Bump to 8.
3302 * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add 'v9v2'.
3303 (HWCAP_IMPORTANT): Add HWCAP_SPARC_N2.
3304 * sysdeps/sparc/sparc32/sparcv9/sparcv9v2/memcpy.S: New file.
3305 * sysdeps/sparc/sparc32/sparcv9/sparcv9v2/memset.S: New file.
3306 * sysdeps/sparc/sparc64/sparcv9v2/memcpy.S: New file.
3307 * sysdeps/sparc/sparc64/sparcv9v2/memset.S: New file.
3308
6fbfbd80
UD
33092007-10-18 Ulrich Drepper <drepper@redhat.com>
3310
3311 * sunrpc/clnt_udp.c (clntudp_call): Don't block in recvfrom call
3312 even if the poll result indicates there is data to read.
3313 Patch by Jeff Moyer <jmoyer@redhat.com>.
3314
39cfc9fa
RM
33152007-10-18 Roland McGrath <roland@redhat.com>
3316
3317 * elf/elf.h (NT_PPC_VMX): New macro.
28919a77 3318
39cfc9fa 33192007-10-17 Ulrich Drepper <drepper@redhat.com>
28919a77
UD
3320
3321 * version.h (VERSION): Set to 2.7.90.
3322
ed13ccf1
JJ
33232007-10-17 Jakub Jelinek <jakub@redhat.com>
3324
3325 * sysdeps/x86_64/memset.S (bzero): Renamed to __bzero. Add
3326 weak_alias.
3327
ee9fd869
RM
33282007-10-17 Roland McGrath <roland@frob.com>
3329
3330 * sysdeps/mach/hurd/bits/fcntl.h [__USE_GNU__] (F_DUPFD_CLOEXEC): New.
3331 * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Implement it.
3332
1aa5e4d7
UD
33332007-10-17 Ulrich Drepper <drepper@redhat.com>
3334
50c9fbbf 3335 * version.h (VERSION): Bump to 2.7.
777bc4bf 3336 * include/features.h (__GLIBC_MINOR__): Bump to 7.
50c9fbbf 3337
58423c7d
UD
3338 [BZ #5186]
3339 * time/tzset.c (__tz_convert): Don't force testing for a change of
3340 TZ if not called from localtime. But then also see whether the
3341 file changed, in case __use_tzfile is set.
3342
1aa5e4d7
UD
3343 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define F_DUPFD_CLOEXEC.
3344 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
3345 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
3346 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
3347 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
3348 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
3349 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
3350 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
3351
fc4837e5
UD
33522007-10-17 Jakub Jelinek <jakub@redhat.com>
3353
3354 * sysdeps/posix/getaddrinfo.c (getaddrinfo): When sorting addresses
3355 and admin selects to be able to replace the gai.conf file, lock
3356 data structures around the qsort call.
3357
62eaf7c8
UD
33582007-10-17 Ulrich Drepper <drepper@redhat.com>
3359
406f28db
UD
3360 * sysdeps/x86_64/cacheinfo.c: Comment out code added in support of
3361 new memset.
ac1cb5da 3362 * sysdeps/x86_64/memset.S: Revert to old version for now. The cost is
406f28db
UD
3363 too high for the improvements. Implement bzero unconditionally for
3364 use in libc.
ac1cb5da
UD
3365
33662007-10-17 Ulrich Drepper <drepper@redhat.com>
3367 Jakub Jelinek <jakub@redhat.com>
3368
62eaf7c8
UD
3369 * time/tzfile.c (__tzfile_read): Read POSIX TZ string if available
3370 even when time_t is 32-bit.
3371 (__tzfile_compute): Override POSIX TZ string STD/DST zone names if
3372 timezone data read by __tzfile_default. Ensure __tzname[0] is
3373 always set after the search.
3374
6a649d25
UD
33752007-10-16 Ulrich Drepper <drepper@redhat.com>
3376
3377 * time/tzfile.c (__tzfile_read): Help the compiler recognize
3378 unreachable code on 32-bit machines.
3379
800d6f9e
UD
33802007-10-16 Jakub Jelinek <jakub@redhat.com>
3381
3382 [BZ #5184]
3383 * time/strftime_l.c: Include stdbool.h.
3384 (my_strftime): New wrapper, old function renamed to...
3385 (__strftime_internal): ... new function. Add tzset_called
3386 argument, pass it down to recursive calls, don't call tzset ()
3387 if already true, set to true after call to tzset ().
62eaf7c8 3388
69819d92
UD
33892007-10-16 Ulrich Drepper <drepper@redhat.com>
3390
3391 * time/tzfile.c (__tzfile_read): Take extra memory requested by caller
3392 into account when copying TZ string.
3393
62eaf7c8
UD
33942007-10-16 Jakub Jelinek <jakub@redhat.com>
3395
3396 * time/tzfile.c (__tzfile_compute): For use_last case set i to
3397 num_transition rather than num_transitions - 1.
3398
0308ad66
JJ
33992007-10-16 Jakub Jelinek <jakub@redhat.com>
3400
8d137b60
JJ
3401 * sysdeps/x86_64/memset.S (memset): Fix sse2_nt_move
3402 PIC indirect jump.
3403
0308ad66
JJ
3404 * sysdeps/x86_64/memset.S: Jump from bzero to memset using
3405 a local label rather than HIDDEN_JUMPTARGET.
3406
e2b393bc
UD
34072007-10-15 Ulrich Drepper <drepper@redhat.com>
3408
3409 * sysdeps/x86_64/cacheinfo.c (__x86_64_shared_cache_size): Define.
3410 (init_cacheinfo): Initialize it.
3411 * sysdeps/x86_64/memset.S: Use __x86_64_shared_cache_size.
3412 Always define bzero.
3413 Remove non-glibc code.
3414 * sysdeps/x86_64/bzero.S: Make an empty file.
3415
34162007-10-15 H.J. Lu <hongjiu.lu@intel.com>
3417
3418 * sysdeps/x86_64/cacheinfo.c
3419 (__x86_64_preferred_memory_instruction): New.
3420 (init_cacheinfo): Initialize __x86_64_preferred_memory_instruction.
3421
3422 * sysdeps/x86_64/memset.S: Rewrite.
3423
0fbfcb7b
RM
34242007-10-15 Roland McGrath <roland@redhat.com>
3425
3426 * po/libc.pot: Regenerated.
3427
2884dad4
UD
34282007-10-15 Ulrich Drepper <drepper@redhat.com>
3429
e2b393bc 3430 * nss/getXXbyYY_r.c (REENTRANT_NAME): Mangle startp and start_fct
d96a2216
UD
3431 pointers.
3432
2884dad4
UD
3433 [BZ #3425]
3434 * resolv/nss_dns/dns-host.c (getanswer_r): Fail with
3435 NSS_STATUS_NOTFOUND if the server replied with only a CNAME and no
3436 address record to T_A/T_AAAA requests.
3437
89dc9d4c
UD
34382007-10-14 Ulrich Drepper <drepper@redhat.com>
3439
8d97ac13
UD
3440 * posix/glob.c: Reimplement link_exists_p to use fstatat64.
3441
1b6aa63f
UD
3442 * posix/glob.c: Add some branch prediction throughout.
3443
895a08c0
UD
3444 * nscd/nscd_getgr_r.c (nscd_getgr_r): Store result of successful
3445 read from nscd.
3446
6f55ed88
UD
3447 * sysdeps/posix/getaddrinfo.c (struct sort_result): Add
3448 service_order.
8d62c8ab
UD
3449 (rfc3484_sort): Make sure that even if qsort doesn't support
3450 stable sorting out sorting here is stable by comparing service_order.
6f55ed88 3451 (getaddrinfo): Initialize service_order.
a94673e6
UD
3452 * posix/tst-rfc3484.c (do_test): Adjust for addition of
3453 service_order field to sorting structure.
dfcf64ce 3454 * posix/tst-rfc3484-2.c (do_test): Likewise.
6f55ed88 3455
fa76dde2
UD
3456 * include/time.h: Declare __tzset_parse_tz and __tzset_compute.
3457 * time/tzset.c (tzset_internal): Break TZ string parsing out into
3458 __tzset_parse_tz and updating of daylight, timezone, tzname into
3459 update_vars.
3460 (__tz_compute): Renamed from tz_compute. Take additional parameters.
3461 (__tz_convert): Updating of tm_isdst, tm_zone, and tm_gmtoff now
3462 happens in __tz_compute.
3463 * time/tzfile.c (__tzfile_read): Also read TZ string.
3464 (find_transition): Fold into __tzfile_compute.
3465 (__tzfile_compute): For times beyond the last transition try to
3466 use the TZ string.
3467 * timezone/tst-timezone.c: Information in daylight and tzname does
3468 change for Asia/Tokyo timezone with more concrete information.
3469 Remove the test.
3470
3471 * include/stdio.h: Add libc_hidden_proto for ftello.
3472 * libio/ftello.c: Add libc_hidden_def.
3473
89dc9d4c
UD
3474 [BZ #1140]
3475 * time/tzfile.c (__tzfile_compute): Compute tzname[] values based
3476 on the specified time and not the last entries in the file. Move
3477 code to determine tzname[] to...
3478 (find_transition): ...here. Add ugly guess for times before the
3479 first transition.
3480
f7140274
UD
34812007-10-13 Ulrich Drepper <drepper@redhat.com>
3482
cfca0aa3
UD
3483 [BZ #3195]
3484 * nscd/nscd_getai.c (__nscd_getai): Set errno to 0 in case we found
3485 no entry.
3486 * nscd/nscd_getgr.c (nscd_getgr_r): Likewise.
3487 * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
3488 * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
3489 * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
3490
43d3e6bd
UD
3491 * nscd/nscd_getgr_r.c (nscd_getgr_r): Optimize a bit: use simpler
3492 read mechanism when there are no group members and avoid no-op
3493 read syscall in this case.
3494
f7140274
UD
3495 [BZ #3242]
3496 * nscd/nscd_helper.c (wait_on_socket): Take timeout as parameter.
3497 (__readall): If reading failed due to EAGAIN error wait a bit
3498 and possibly try again.
3499 (__readvall): Likewise.
3500
656f02ce
UD
35012007-10-13 Bruno Haible <bruno@clisp.org>
3502
3503 * intl/dcigettext.c (_nl_find_msg): Unlock the conversions_lock
3504 when we cannot recode the message.
3505
0ea49677
UD
35062007-10-13 Ulrich Drepper <drepper@redhat.com>
3507
3508 [BZ #4359]
3509 * libio/__freading.c (__freading): Don't return true for
ed36f224
UD
3510 write-only streams. For read/write streams, check whether we
3511 performed a read operation already.
7e39d802
UD
3512 * libio/Makefile (tests): Add tst-ext2.
3513 * libio/tst-ext2.c: New file.
0ea49677 3514
78a9b2dc
UD
35152007-10-12 Ulrich Drepper <drepper@redhat.com>
3516
fab1a490
UD
3517 * locale/programs/repertoire.c (repertoire_read): Always free
3518 memory for repertoire file name [Coverity CID 270].
3519
78a9b2dc
UD
3520 * elf/cache.c (save_aux_cache): Free memory allocated for
3521 temporary file name [Coverity CID 267].
3522
29d49a1a
JJ
35232007-10-12 Jakub Jelinek <jakub@redhat.com>
3524
3525 * misc/Makefile (headers): Add bits/error.h.
3526
d074d36d
UD
35272007-10-12 Ulrich Drepper <drepper@redhat.com>
3528
b7d1c5fa
UD
3529 * posix/fnmatch_loop.c: Take rule index returned as part of
3530 findidx return value into account when accessing weights.
3531 * posix/regcomp.c: Likewise.
3532 * posix/regexec.c: Likewise.
3533
d074d36d
UD
3534 * locale/programs/ld-collate.c (collate_read): Optimize a bit.
3535 (skip_to): Fix problems with parameter of elifdef/elifndef.
3536
26a51060
UD
35372007-10-11 Ulrich Drepper <drepper@redhat.com>
3538
3539 * iconv/gconv_simple.c: Add some branch prediction.
3540
6dd3748b
UD
35412007-10-12 Jakub Jelinek <jakub@redhat.com>
3542
3543 * locale/programs/ld-collate.c (collate_read): If ignore_content
3544 and nowtok is tok_define, eat any tok_eol tokens.
3545
d0b5557d
JJ
35462007-10-11 Jakub Jelinek <jakub@redhat.com>
3547
3548 * sysdeps/gnu/netinet/tcp.h: Include sys/socket.h if __USE_MISC.
3549 (struct tcp_md5sig): Change tcpm_addr type to struct sockaddr_storage.
3550
3551 * inet/netinet/in.h: Don't include bits/socket.h.
3552 * sysdeps/unix/sysv/linux/bits/socket.h: Only check _SYS_SOCKET_H
3553 macro.
3554 * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Likewise.
3555
3a054d7a
UD
35562007-10-10 Ulrich Drepper <drepper@redhat.com>
3557
3558 * locale/programs/locfile-token.h: Remove tok_elif, add tok_elifdef
3559 and tok_elifndef.
3560 * locale/programs/locfile-kw.gperf: Likewise.
3561 * locale/programs/ld-collate.c: Implement primitive preprocessor.
3562
c06b7169
UD
35632007-10-10 Jakub Jelinek <jakub@redhat.com>
3564
3565 * stdio-common/printf-parse.h: Include string.h and wchar.h.
3566 (__find_specwc): Change into __extern_always_inline function.
3567 (__find_specmb): Likewise. Remove ps argument. Use __strchrnul.
3568 (__parse_one_specmb): Remove ps argument.
3569 * stdio-common/vfprintf.c (vfprintf): Remove mbstate variable.
3570 Adjust __find_specmb and __parse_one_specmb callers.
3571 * stdio-common/printf-prs.c (parse_printf_format): Likewise.
3572 * stdio-common/printf-parsemb.c (__find_specwc, __find_specmb):
3573 Removed.
3574 (__parse_one_specmb): Remove ps argument, adjust __find_specmb
3575 caller.
3576
5a01ab7b
UD
35772007-10-09 Ulrich Drepper <drepper@redhat.com>
3578
3579 * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Work around problem
3580 with some Pentium Ds.
3581
e3f8e049
UD
35822007-10-08 Ulrich Drepper <drepper@redhat.com>
3583
3584 * sysdeps/unix/sysv/linux/eventfd_read.c (eventfd_read): Use
3585 __read not read.
3586 * sysdeps/unix/sysv/linux/eventfd_write.c (eventfd_write): Use
3587 __write not write.
3588
a1a363d2
UD
35892007-10-07 Ulrich Drepper <drepper@redhat.com>
3590
a1160714
UD
3591 [BZ #181]
3592 * locale/C-time.c: Set week_1stday data to 19971201.
659a9013
UD
3593 * locale/programs/ld-time.c (time_finish): Default for
3594 first_workday is Monday.
a1160714 3595
bb27a6eb
UD
3596 [BZ #2633]
3597 * wcsmbs/wchar.h: Move many C99 functions into std namespace.
3598
c8d48fae
UD
3599 [BZ #5103]
3600 * posix/glob.c (glob): Recognize patterns starting \/.
3601 * posix/tst-gnuglob.c (find_file): Handle absolute path names.
3602 (main): Add test for pattern starting \/.
3603
a1a363d2
UD
3604 * misc/error.h: Use __const instead of const.
3605 * misc/bits/error.h: Likewise.
3606
36072007-10-07 Andreas Jaeger <aj@suse.de>
3608
3609 * include/bits/error.h: New file.
3610
3611 * misc/bits/error.h (error_at_line): Fix prototype.
3612
71894681
UD
36132007-10-06 Ulrich Drepper <drepper@redhat.com>
3614
a6fa5328
UD
3615 [BZ #3924]
3616 * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix a few
3617 more little bugs in creating the stack frame when pltexit has to
3618 be called.
3619
8c7661bc 3620 * nscd/nscd_helper.c (__nscd_cache_search): Prevent endless loops.
50607309 3621 * nscd/connections.c (verify_persistent_db): Recognize circular lists.
8c7661bc 3622
c039eedd
UD
3623 [BZ #4407]
3624 * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Fix *signgamp for -0.0.
3625 * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
3626 * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
3627 * math/libm-test.inc: Add test for this case.
3628
71894681
UD
3629 [BZ #5010]
3630 * sunrpc/svc.c (struct svc_callout): Add sc_mapped element.
3631 (svc_register): Initialize sc_mapped. Set to TRUE if call to
3632 map service succeeded.
3633 (svc_is_mapped): New function.
3634 (svc_unregister): Use it before trying to unmap service.
3635
34c2c092
UD
36362007-10-05 Ulrich Drepper <drepper@redhat.com>
3637
d10737e4
UD
3638 * timezone/zic.c: Update from tzcode2007h.
3639
3640 [BZ #5063]
3641 * timezone/africa: Update from tzdata2007h.
3642 * timezone/antarctica: Likewise.
3643 * timezone/asia: Likewise.
3644 * timezone/australasia: Likewise.
3645 * timezone/europe: Likewise.
3646 * timezone/leapseconds: Likewise.
3647 * timezone/northamerica: Likewise.
3648 * timezone/southamerica: Likewise.
3649 * timzeone/zone.tab: Likewise.
3650
0304f168
UD
3651 [BZ #5104]
3652 * elf/do-lookup.h (do_lookup_x): Don't ignore STT_COMMON symbols.
3653
a83b5649
UD
3654 [BZ #5113]
3655 * string/bits/string2.h (__strdup): Cast parameters to calloc to
3656 avoid warning with -Wconversion.
3657 (__strndup): Likewise.
c039eedd 3658 Half the patch by Christian Iseli <christian.iseli@licr.org>.
a83b5649 3659
3e6ce4d7
UD
3660 [BZ #5112]
3661 * nscd/connections.c (restart): Don't resync if database is
3662 disabled. Patch mostly by Brian De Wolf <bldewolf@csupomona.edu>.
3663
8e351378
UD
3664 * sysdeps/gnu/netinet/tcp.h: Define TCP_MD5SIG, TCP_MD5SIG_MAXKEYLEN,
3665 struct tcp_md5sig. Extend struct tcp_info according to recent kernels.
3666
3667 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add eventfd,
3668 evetnfd_read, eventfd_write.
3669 * sysdeps/unix/sysv/linux/eventfd.c: New file.
3670 * sysdeps/unix/sysv/linux/eventfd_read.c: New file.
3671 * sysdeps/unix/sysv/linux/eventfd_write.c: New file.
3672 * sysdeps/unix/sysv/linux/sys/eventfd.h: New file.
d10737e4 3673 * sysdeps/unix/sysv/linux/Versions: Export eventfd, eventfd_read,
8e351378
UD
3674 eventfd_write for GLIBC_2.7.
3675
34c2c092
UD
3676 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add signalfd.
3677 * sysdeps/unix/sysv/linux/signalfd.c: New file.
3678 * sysdeps/unix/sysv/linux/sys/signalfd.h: New file.
3679 * sysdeps/unix/sysv/linux/Versions: Export signalfd for GLIBC_2.7.
3680
6789aaaa 36812007-10-04 Jakub Jelinek <jakub@redhat.com>
375d9429
UD
3682
3683 * stdlib/msort.c: Include stdint.h.
3684 (struct msort_param): New type.
3685 (msort_with_tmp): Use struct msort_param pointer for unchanging
3686 parameters. Add optimized handling for several common sizes
3687 and indirect sorting mode.
3688 (qsort): Adjust msort_with_tmp callers. For big S use indirect
3689 sorting.
3690 Suggested by Belazougui Djamel .
3691
3692 * stdlib/Makefile (tests): Add tst-qsort2.
3693 * stdlib/tst-qsort2.c: New test.
3694
b80bfc8b
UD
36952007-10-04 Ulrich Drepper <drepper@redhat.com>
3696
174420d2
UD
3697 * login/login_tty.c (login_tty): The Linux kernel can return EBUSY
3698 for dup2 in case another thread races with the current one. Retry
3699 in this case.
3700
b80bfc8b
UD
3701 * misc/error.h: Remove support for use outside of libc. We have to
3702 include <features.h> now. Include <bits/error.h> if possible.
3703 * misc/bits/error.h: New file.
3704
6789aaaa 37052007-10-03 Jakub Jelinek <jakub@redhat.com>
ee868c89 3706
e5dd2178
UD
3707 * string/bits/string3.h (memcpy, memmove, mempcpy, memset, bcopy,
3708 bzero, strcpy, stpcpy, strncpy, strcat, strncat): Use
3709 __extern_always_inline functions unconditionally, drop macros.
3710
ac97dec1
UD
3711 * misc/sys/cdefs.h (__REDIRECT_LDBL, __REDIRECT_NTH_LDBL): New macros.
3712 * wcsmbs/bits/wchar2.h (__swprintf_alias, __vswprintf_alias): Use
3713 __REDIRECT_NTH_LDBL macro rather than __REDIRECT_NTH.
3714
ee868c89
UD
3715 * misc/sys/cdefs.h (__extern_always_inline): For GCC 4.3+
3716 add __artificial__ attribute.
3717
80e069e0
UD
37182007-10-02 Ulrich Drepper <drepper@redhat.com>
3719
6e682cf5
UD
3720 * string/strcoll_l.c (STRCOLL): Correct handling of switching from
3721 backward to forward direction.
3722
90241a20
UD
3723 * string/strcoll_l.c (STRCOLL): Correct test for alloca use.
3724
80e069e0
UD
3725 [BZ #645]
3726 * locale/programs/ld-collate.c (collate_finish): Compare against last
3727 used section which is known to have rules defined.
3728 (collate_read): After order_start, correctly record order of sections
3729 and queue sections up.
3730
035ef8d7
UD
37312007-10-01 Ulrich Drepper <drepper@redhat.com>
3732
95bddc0c
UD
3733 [BZ #5071]
3734 * malloc/malloc.c (mremap_chunk): Avoid resizing of new block has
3735 the same number of pages.
3736 Patch by Tomash Brechko <tomash.brechko@gmail.com>.
3737
c8caf089
UD
3738 * locale/programs/ld-collate.c (collate_read): After initial copy
3739 statement, continue in state 0.
3740
035ef8d7
UD
3741 * include/stdio_ext.h (__fsetlocking): Define as macro.
3742
592a95ee
UD
37432007-09-30 Ulrich Drepper <drepper@redhat.com>
3744
56ebeb41
UD
3745 * locale/programs/ld-collate.c (collate_finish): Compare all bytes
3746 of section order.
3747
592a95ee
UD
3748 * po/pt_BR.po: Fix typo.
3749
6c522e21
UD
37502007-09-29 Ulrich Drepper <drepper@redhat.com>
3751
8ad5c3cd
UD
3752 * iconvdata/Makefile (modules): Add ISO8859-9E.
3753 (distribute): Add iso8859-9e.c.
3754 (gen-8bit-gap-modules): Add iso8859-9e.
3755 * iconvdata/iso8859-9e.c: New file.
3756 * iconvdata/gconv-modules: Add entries for ISO-8859-9E.
3757 * iconvdata/TESTS: Likewise.
3758 * iconvdata/tst-tables.sh: Likewise.
3759
3760 * iconvdata/koi8-r.c (HAS_HOLES): Define to 0.
3761
6c522e21
UD
3762 * locale/iso-639.def: Add several new entries.
3763
385b4cf4
UD
37642007-09-24 Jakub Jelinek <jakub@redhat.com>
3765
3766 * sysdeps/generic/ldsodefs.h (struct dl_scope_free_list): Store
3767 void * pointers instead of struct link_map **.
3768 (_dl_scope_free): Change argument type to void *.
3769 * include/link.h (struct link_map): Change type of l_reldeps
3770 to struct link_map_reldeps, move l_reldepsact into that
3771 struct too.
3772 * elf/dl-deps.c: Include atomic.h.
3773 (_dl_map_object_deps): Only change l->l_initfini when it is
3774 fully populated, use _dl_scope_free for freeing it. Optimize
3775 removal of libs from reldeps by using l_reserved flag, when
3776 some removal is needed, allocate a new list instead of
3777 reallocating and free the old with _dl_scope_free. Adjust
3778 for l_reldeps and l_reldepsact changes.
3779 * elf/dl-lookup.c (add_dependency): Likewise. Reorganize to allow
3780 searching in l_initfini and l_reldeps without holding dl_load_lock.
3781 * elf/dl-fini.c (_dl_sort_fini): Adjust for l_reldeps and
3782 l_reldepsact changes.
3783 * elf/dl-close.c (_dl_close_worker): Likewise.
3784 * elf/dl-open.c (_dl_scope_free): Change argument type to void *.
3785
90bf831b
UD
37862007-09-28 Ulrich Drepper <drepper@redhat.com>
3787
3788 * iconvdata/Makefile (modules): Add KOI8-RU.
3789 (distribute): Add koi8-ru.c.
3790 (gen-8bit-gap-modules): Add koi8-ru.
3791 * iconvdata/koi8-ru.c: New file.
3792 * iconvdata/gconv-modules: Add entries for KOI8-RU.
3793 * iconvdata/TESTS: Likewise.
3794 * iconvdata/tst-tables.sh: Likewise.
3795
3796 * iconvdata/koi8-r.c (HAS_HOLES): Define to 0.
3797
d6cd6bf4
UD
37982007-09-26 Jakub Jelinek <jakub@redhat.com>
3799
3800 * misc/sys/cdefs.h (__warndecl, __errordecl): For GCC 4.3+ define
3801 with __warning__/__error__ attributes.
3802 (__warnattr): Define.
3803 * stdlib/bits/stdlib.h (__realpath_chk_warn, __ptsname_r_chk_warn,
3804 __mbstowcs_chk_warn, __wcstombs_chk_warn): New aliases with
3805 __warnattr.
3806 (realpath, ptsname_r, mbstowcs, wcstombs): Call __*_chk_warn instead
3807 of __*_chk if compile time detectable overflow is found.
3808 * libio/bits/stdio2.h (__fgets_chk_warn, __fread_chk_warn,
3809 __fgets_unlocked_chk_warn, __fread_unlocked_chk_warn): New aliases
3810 with __warnattr.
3811 (fgets, fread, fgets_unlocked, fread_unlocked): Call __*_chk_warn
3812 instead of __*_chk if compile time detectable overflow is found.
3813 (__gets_alias): Rename to...
3814 (__gets_warn): ... this. Add __warnattr.
3815 (gets): Call __gets_warn instead of __gets_alias.
3816 * socket/bits/socket2.h (__recv_chk_warn, __recvfrom_chk_warn): New
3817 aliases with __warnattr.
3818 (recv, recvfrom): Call __*_chk_warn instead of __*_chk if compile
3819 time detectable overflow is found.
3820 * posix/bits/unistd.h (__read_chk_warn, __pread_chk_warn,
3821 __pread64_chk_warn, __readlink_chk_warn, __readlinkat_chk_warn,
3822 __getcwd_chk_warn, __confstr_chk_warn, __getgroups_chk_warn,
3823 __ttyname_r_chk_warn, __getlogin_r_chk_warn, __gethostname_chk_warn,
3824 __getdomainname_chk_warn): New aliases with __warnattr.
3825 (read, pread, pread64, readlink, readlinkat, getcwd, confstr,
3826 getgroups, ttyname_r, getlogin_r, gethostname, getdomainname): Call
3827 __*_chk_warn instead of __*_chk if compile time detectable overflow
3828 is found.
3829 (__getgroups_chk): Rename argument to __listlen from listlen.
3830 (__getwd_alias): Rename to...
3831 (__getwd_warn): ... this. Add __warnattr.
3832 (getwd): Call __getwd_warn instead of __getwd_alias.
3833 * wcsmbs/bits/wchar2.h (__wmemcpy_chk_warn, __wmemmove_chk_warn,
3834 __wmempcpy_chk_warn, __wmemset_chk_warn, __wcsncpy_chk_warn,
3835 __wcpncpy_chk_warn, __fgetws_chk_warn, __fgetws_unlocked_chk_warn,
3836 __mbsrtowcs_chk_warn, __wcsrtombs_chk_warn, __mbsnrtowcs_chk_warn,
3837 __wcsnrtombs_chk_warn): New aliases with __warnattr.
3838 (wmemcpy, wmemmove, wmempcpy, wmemset, mbsrtowcs, wcsrtombs,
3839 mbsnrtowcs, wcsnrtombs): Call __*_chk_warn instead of __*_chk if
3840 compile time detectable overflow is found.
3841 (wcsncpy, wcpncpy): Likewise. For constant __n fix check whether
3842 to use __*_chk or not.
3843 (fgetws, fgetws_unlocked): Divide __bos by sizeof (wchar_t), both
3844 in comparisons which function should be called and in __*_chk*
3845 arguments. Call __*_chk_warn instead of __*_chk if compile time
3846 detectable overflow is found.
3847 (swprintf, vswprintf): Divide __bos by sizeof (wchar_t) in
3848 __*_chk argument.
3849 * debug/tst-chk1.c (do_test): Add a few more tests.
3850
408cfca0
UD
38512007-09-24 Ulrich Drepper <drepper@redhat.com>
3852
3853 [BZ #5058]
3854 * intl/gettextP.h (struct loaded_domain): Add conversions_lock member.
3855 * intl/loadmsgcat.c (_nl_load_domain): Initialize conversions_lock.
3856 (_nl_unload_domain): Finalize conversions_lock.
3857 * intl/dcigettext.c (_nl_find_msg): Take conversions_lock before
3858 handling table of known conversions.
3859
e6eec9ce
JJ
38602007-09-24 Jakub Jelinek <jakub@redhat.com>
3861
3862 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Use
3863 close_not_cancel_no_status instead of close.
3864
a532a41d
UD
38652007-09-13 Aurelien Jarno <aurelien@aurel32.net>
3866
682268ef 3867 [BZ #5028]
408cfca0 3868 * posix/regcomp.c (lookup_collation_sequence_value): Check that
a532a41d
UD
3869 nrules != 0 for multibyte chars.
3870
dec9ed9e
UD
38712007-09-23 Ulrich Drepper <drepper@redhat.com>
3872
91633816
UD
3873 * resolv/ns_print.c (ns_sprintrrf): Handle ns_t_a6 and ns_t_opt.
3874 Provide better error message in case the type is unknown.
3875
9cc198f6
UD
3876 [BZ #4963]
3877 * wcsmbs/wcsnlen.c: Don't reference before checking the length.
3878 * string/stratcliff.c: Make usable to test wide char functions.
3879 * wcsmbs/wcsatcliff.c: New file.
3880 * wcsmbs/Makefiel (tests): Add wcsatcliff.
3881
27f3d446
UD
3882 [BZ #4972]
3883 * iconvdata/Makefile (modules): Add MAC-CENTRALEUROPE.
3884 (distribute): Add mac-centraleurope.c.
3885 (gen-8bit-gap-modules): Add mac-centraleurope.
3886 * iconvdata/mac-centraleurope.c: New file.
3887 * iconvdata/gconv-modules: Add entries for MAC-CENTRALEUROPE.
3888 * iconvdata/TESTS: Likewise.
3889 * iconvdata/tst-tables.sh: Likewise.
3890
dec9ed9e
UD
3891 [BZ #5043]
3892 * iconv/iconv_open.c (iconv_open): For large codeset names use malloc.
3893
0435403c
UD
38942007-09-21 Ulrich Drepper <drepper@redhat.com>
3895
3896 * sysdeps/x86_64/cacheinfo.c (__x86_64_data_cache_size_half): Renamed
3897 from __x86_64_core_cache_size_half.
3898 (init_cacheinfo): Compute shared cache size for AMD processors with
3899 shared L3 correctly.
3900 * sysdeps/x86_64/memcpy.S: Adjust for __x86_64_data_cache_size_half
3901 name change.
3902 Patch in large parts by Evandro Menezes.
3903
c3266dc0
UD
39042007-09-19 Ulrich Drepper <drepper@redhat.com>
3905
715899d1
UD
3906 * elf/dl-lookup.c (add_dependency): Handle failing memory
3907 allocation for dependency list. Remove unnecessary check.
3908
e1db0493
UD
3909 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid unnecessary
3910 open/close when determining source addresses.
3911
c3266dc0
UD
3912 * crypt/Makefile (libcrypt-routines): Add sha256-crypt, sha256,
3913 sha512-crypt, and sha512.
3914 (tests): Add sha256test, sha256c-test, sha512test, and sha512c-test.
3915 (distribute): Add sha256.h and sha512.h.
3916 * crypt/crypt-entry.c (crypt): Recognize the new $5$ and $6$ prefixes
3917 and call the appropriate code.
3918 * crypt/sha256-crypt.c: New file.
3919 * crypt/sha256.c: New file.
3920 * crypt/sha256.h: New file.
3921 * crypt/sha256c-test.c: New file.
3922 * crypt/sha256test.c: New file.
3923 * crypt/sha512-crypt.c: New file.
3924 * crypt/sha512.c: New file.
3925 * crypt/sha512.h: New file.
3926 * crypt/sha512c-test.c: New file.
3927 * crypt/sha512test.c: New file.
3928
ddf51ecb
JJ
39292007-09-19 Jakub Jelinek <jakub@redhat.com>
3930
3931 * misc/bits/syslog.h (syslog): Remove extraneous argument from
3932 the inline, pass __USE_FORTIFY_LEVEL - 1 as second argument to
3933 __syslog_chk.
3934
b90395e6
UD
39352007-09-18 Jakub Jelinek <jakub@redhat.com>
3936
76c0bea7
JJ
3937 * locale/programs/charmap-dir.c (charmap_aliases): Use %ms instead of
3938 %as in fscanf format strings.
3939
00680568
JJ
3940 * sysdeps/sparc/sparc32/elf/start.S: Remove cfi_* markup.
3941 * sysdeps/sparc/sparc64/elf/start.S: Likewise.
c3266dc0
UD
3942 * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__thread_start):
3943 Likewise.
3944 * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__thread_start):
3945 Likewise.
00680568 3946
b90395e6
UD
3947 * sysdeps/generic/ldsodefs.h (DL_LOOKUP_GSCOPE_LOCK): New definition.
3948 * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Or in
3949 DL_LOOKUP_GSCOPE_LOCK into flags after THREAD_GSCOPE_SET_FLAG ().
3950 * elf/dl-sym.c (do_sym): Likewise.
3951 * include/link.h (struct link_map): Add l_serial field.
3952 * elf/dl-object.c (_dl_new_object): Initialize l_serial.
3953 * elf/dl-lookup.c (add_dependency): Add flags argument.
3954 Remember map->l_serial, if DL_LOOKUP_GSCOPE_LOCK is among
3955 flags, use THREAD_GSCOPE_RESET_FLAG before and
3956 THREAD_GSCOPE_SET_FLAG after
3957 __rtld_lock_lock_recursive (GL(dl_load_lock)) to avoid deadlock.
3958 Don't dereference map until it has been found on some list.
3959 If map->l_serial changed, return -1.
3960
874aa523
UD
39612007-09-17 Jakub Jelinek <jakub@redhat.com>
3962
3963 * include/stdio.h (__isoc99_fscanf, __isoc99_scanf,
3964 __isoc99_sscanf, __isoc99_vscanf): New prototypes.
3965 (__isoc99_vsscanf, __isoc99_vfscanf): New prototypes, add
3966 libc_hidden_proto.
3967 * include/wchar.h (__isoc99_fwscanf, __isoc99_wscanf,
3968 __isoc99_swscanf, __isoc99_vwscanf): New prototypes.
3969 (__isoc99_vswscanf, __isoc99_vfwscanf): New prototypes,
3970 add libc_hidden_proto.
3971 * libio/stdio.h (fscanf, scanf, sscanf, vfscanf, vscanf,
3972 vsscanf): Redirect to __isoc99_* if strict ISO C99 or POSIX
3973 conformance requested.
3974 * wcsmbs/wchar.h (fwscanf, wscanf, swscanf, vfwscanf, vwscanf,
3975 vswscanf): Redirect to __isoc99_* if strict ISO C99 or POSIX
3976 conformance requested.
3977 * libio/bits/stdio-ldbl.h (fscanf, scanf, sscanf, vfscanf, vscanf,
3978 vsscanf): Redirect to __nldbl___isoc99_* if strict ISO C99 or POSIX
3979 conformance requested.
3980 * wcsmbs/bits/wchar-ldbl.h (fwscanf, wscanf, swscanf, vfwscanf,
3981 vwscanf, vswscanf): Redirect to __nldbl___isoc99_* if strict
3982 ISO C99 or POSIX conformance requested.
3983 * stdio-common/Versions (libc): Export __isoc99_scanf@@GLIBC_2.7,
3984 __isoc99_vscanf@@GLIBC_2.7, __isoc99_fscanf@@GLIBC_2.7,
3985 __isoc99_vfscanf@@GLIBC_2.7, __isoc99_sscanf@@GLIBC_2.7
3986 and __isoc99_vsscanf@@GLIBC_2.7.
3987 * stdio-common/Makefile (routines): Add isoc99_scanf, isoc99_vscanf,
3988 isoc99_fscanf, isoc99_vfscanf, isoc99_sscanf and isoc99_vsscanf.
3989 (tests): Add scanf14.
3990 (CFLAGS-vfprintf.c, CFLAGS-fprintf.c, CFLAGS-printf.c,
3991 CFLAGS-vfwprintf.c, CFLAGS-vfscanf.c, CFLAGS-vfwscanf.c,
3992 CFLAGS-fscanf.c, CFLAGS-scanf.c, CFLAGS-isoc99_vfscanf.c,
3993 CFLAGS-isoc99_vscanf.c, CFLAGS-isoc99_fscanf.c,
3994 CFLAGS-isoc99_scanf.c): Add $(exceptions).
3995 (CFLAGS-scanf15.c): Add various -I paths to prevent the compiler
3996 from using internal headers.
3997 * wcsmbs/Versions (libc): Export __isoc99_wscanf@@GLIBC_2.7,
3998 __isoc99_vwscanf@@GLIBC_2.7, __isoc99_fwscanf@@GLIBC_2.7,
3999 __isoc99_vfwscanf@@GLIBC_2.7, __isoc99_swscanf@@GLIBC_2.7
4000 and __isoc99_vswscanf@@GLIBC_2.7.
4001 * wcsmbs/Makefile (routines): Add isoc99_wscanf, isoc99_vwscanf,
4002 isoc99_fwscanf, isoc99_vfwscanf, isoc99_swscanf and isoc99_vswscanf.
4003 (CFLAGS-isoc99_wscanf.c, CFLAGS-isoc99_fwscanf.c,
4004 CFLAGS-isoc99_vwscanf.c, CFLAGS-isoc99_vfwscanf.c): Add $(exceptions).
4005 (CPPFLAGS): Add -D_IO_MTSAFE_IO if needed.
4006 * stdio-common/isoc99_scanf.c: New file.
4007 * stdio-common/isoc99_vsscanf.c: New file.
4008 * stdio-common/isoc99_vscanf.c: New file.
4009 * stdio-common/isoc99_vfscanf.c: New file.
4010 * stdio-common/isoc99_fscanf.c: New file.
4011 * stdio-common/isoc99_sscanf.c: New file.
4012 * wcsmbs/isoc99_fwscanf.c: New file.
4013 * wcsmbs/isoc99_vswscanf.c: New file.
4014 * wcsmbs/isoc99_swscanf.c: New file.
4015 * wcsmbs/isoc99_wscanf.c: New file.
4016 * wcsmbs/isoc99_vwscanf.c: New file.
4017 * wcsmbs/isoc99_vfwscanf.c: New file.
4018 * libio/libio.h (_IO_FLAGS2_SCANF_STD): Define.
4019 * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): Also
4020 clear _IO_FLAGS2_SCANF_STD bit from _flags2.
4021 * stdio-common/vfscanf.c (_IO_vfscanf_internal): Don't
4022 handle %as, %aS and %a[ if _IO_FLAGS2_SCANF_STD is set in _flags2.
4023 * stdio-common/scanf14.c: New test.
4024 * stdio-common/scanf15.c: New test.
4025 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add
4026 isoc99_scanf, isoc99_fscanf, isoc99_sscanf,
4027 isoc99_vscanf, isoc99_vfscanf, isoc99_vsscanf,
4028 isoc99_wscanf, isoc99_fwscanf, isoc99_swscanf,
4029 isoc99_vwscanf, isoc99_vfwscanf and isoc99_vswscanf.
4030 * sysdeps/ieee754/ldbl-opt/Versions (libc): Export
4031 __nldbl___isoc99_scanf@@GLIBC_2.7,
4032 __nldbl___isoc99_fscanf@@GLIBC_2.7,
4033 __nldbl___isoc99_sscanf@@GLIBC_2.7,
4034 __nldbl___isoc99_vscanf@@GLIBC_2.7,
4035 __nldbl___isoc99_vfscanf@@GLIBC_2.7,
4036 __nldbl___isoc99_vsscanf@@GLIBC_2.7,
4037 __nldbl___isoc99_wscanf@@GLIBC_2.7,
4038 __nldbl___isoc99_fwscanf@@GLIBC_2.7,
4039 __nldbl___isoc99_swscanf@@GLIBC_2.7,
4040 __nldbl___isoc99_vwscanf@@GLIBC_2.7,
4041 __nldbl___isoc99_vfwscanf@@GLIBC_2.7
4042 and __nldbl___isoc99_vswscanf@@GLIBC_2.7.
4043 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__isoc99_scanf,
4044 __isoc99_fscanf, __isoc99_sscanf, __isoc99_vscanf,
4045 __isoc99_vfscanf, __isoc99_vsscanf, __isoc99_wscanf,
4046 __isoc99_fwscanf, __isoc99_swscanf, __isoc99_vwscanf,
4047 __isoc99_vfwscanf, __isoc99_vswscanf): Add NLDBL_DECL.
4048 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
4049 (__nldbl___isoc99_scanf, __nldbl___isoc99_fscanf,
4050 __nldbl___isoc99_sscanf, __nldbl___isoc99_vscanf,
4051 __nldbl___isoc99_vfscanf, __nldbl___isoc99_vsscanf,
4052 __nldbl___isoc99_wscanf, __nldbl___isoc99_fwscanf,
4053 __nldbl___isoc99_swscanf, __nldbl___isoc99_vwscanf,
4054 __nldbl___isoc99_vfwscanf, __nldbl___isoc99_vswscanf): New
4055 functions.
4056 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vfscanf.c: New file.
4057 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_swscanf.c: New file.
4058 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vwscanf.c: New file.
4059 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_wscanf.c: New file.
4060 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_scanf.c: New file.
4061 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_sscanf.c: New file.
4062 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vsscanf.c: New file.
4063 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_fwscanf.c: New file.
4064 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vfwscanf.c: New file.
4065 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vswscanf.c: New file.
4066 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vscanf.c: New file.
4067 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_fscanf.c: New file.
4068
4069 * stdio-common/Makefile (tests): Add scanf13.
4070 (scanf13-ENV): New.
4071 * stdio-common/vfscanf.c (_IO_vfscanf_internal): Handle
4072 m modifier followed by l.
4073 (STRING_ARG): Add width argument.
4074 (_IO_vfscanf_internal) <case L_('c')>: Handle %mc.
4075 <case L_('C')>: Handle %mlc and %mC.
4076 <case L_('s'), case L_('S'), case L_('[')>: Adjust STRING_ARG
4077 arguments.
4078 * stdio-common/scanf13.c: New test.
4079
4080 * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): Clear
4081 the _IO_FLAGS2_FORTIFY bit from _flags2 rather than _flags.
4082
883f7943
UD
40832007-09-18 Ulrich Drepper <drepper@redhat.com>
4084
4085 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Correct return value
874aa523 4086 type and __THROW marker of splice, vmsplice, and tee.
883f7943
UD
4087 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
4088 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
4089 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
4090 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
4091 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
4092 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
4093 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
4094 * sysdeps/unix/sysv/linux/syscalls.list: Mark splice, vmsplice, and tee
4095 as cancellation points.
4096
3524efe0
UD
40972003-11-01 Daniel Jacobowitz <dan@debian.org>
4098
4099 * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_discover_osversion): Don't
4100 parse more than three parts of the version number.
4101
267c54dc
UD
41022007-09-15 Ulrich Drepper <drepper@redhat.com>
4103
4104 * stdio-common/vfscanf.c (_IO_vfwscanf): Add support for 'm'
4105 modifier. Patch by Jakub Jelinek.
4106
5e17d6b7
UD
41072007-08-26 Jakub Jelinek <jakub@redhat.com>
4108
4109 * sysdeps/unix/sysv/linux/i386/Makefile (sysdep_routines): Add
4110 call_fallocate in misc subdir.
4111 * sysdeps/unix/sysv/linux/i386/call_fallocate.S: New file.
4112 * sysdeps/unix/sysv/linux/i386/syscalls.list (fallocate64): Remove.
4113 * sysdeps/unix/sysv/linux/i386/posix_fallocate.c: Use __call_fallocate
4114 instead of __fallocate64.
4115 * sysdeps/unix/sysv/linux/i386/posix_fallocate64.c: Likewise.
4116
3a50811c
UD
41172007-09-15 Jakub Jelinek <jakub@redhat.com>
4118
4119 * rt/Versions (librt): Export __mq_open_2@@GLIBC_2.7.
4120 * rt/Makefile (headers): Add bits/mqueue2.h.
4121 * rt/mqueue.h: Include bits/mqueue2.h if -D_FORTIFY_SOURCE=2,
4122 optimizing with GCC and __va_arg_pack_len is defined.
4123 * rt/bits/mqueue2.h: New file.
4124 * rt/mq_open.c (__mq_open): Renamed from mq_open.
4125 (mq_open): New strong_alias.
4126 (__mq_open_2): New function.
4127 * sysdeps/unix/sysv/linux/mq_open.c (__mq_open): Renamed from mq_open.
4128 (mq_open): New strong_alias.
4129 (__mq_open_2): New function.
4130 * debug/Versions (libc): Export __fortify_fail@@GLIBC_PRIVATE.
4131 * Versions.def (librt): Add GLIBC_2.7 version.
4132 * debug/fortify_fail.c (__fortify_fail): Add libc_hidden_def.
4133 * include/stdio.h (__fortify_fail): Add libc_hidden_proto.
4134
4135 * misc/sys/cdefs.h (__errordecl, __va_arg_pack_len): Define.
4136 * io/fcntl.h: Include bits/fcntl2.h when __va_arg_pack_len
4137 is defined rather than when not C++.
4138 * io/bits/fcntl2.h (__open_alias, __open64_alias, __openat_alias,
4139 __openat64_alias): New redirects.
4140 (__open_too_many_args, __open_missing_mode, __open64_too_many_args,
4141 __open64_missing_mode, __openat_too_many_args, __openat_missing_mode,
4142 __openat64_too_many_args, __openat64_missing_mode): New __errordecls.
4143 (open, open64, openat, openat64): Rewrite as __extern_always_inline
4144 functions instead of function-like macros.
4145
9bdfff60
UD
41462007-09-14 H.J. Lu <hongjiu.lu@intel.com>
4147
4148 * sysdeps/i386/i586/memcpy.S (__memcpy_chk): New definition.
4149 * sysdeps/i386/i586/mempcpy.S (__memcpy_chk): New definition.
4150 * sysdeps/i386/i586/memset.S (__memset_chk): New definition.
4151
ab905672
UD
41522007-09-15 Mike Frysinger <vapier@gentoo.org>
4153
4154 * inet/inet_net.c: Reset digit to 0 for inputs starting with "0x".
4155 * inet/tst-network.c (tests): Add edge case tests for "0", "0x", "0x0".
4156
9bd68902
RM
41572007-09-14 Mike Frysinger <vapier@gentoo.org>
4158
4159 * inet/tst-network.c: Increment ERRORS for failing tests.
4160
de1c3ebb
UD
41612007-09-07 Jakub Jelinek <jakub@redhat.com>
4162
4163 * misc/sys/cdefs.h (__va_arg_pack): Define for GCC 4.3+.
4164 * misc/bits/syslog.h (syslog): When __va_arg_pack is defined,
4165 implement as __extern_always_inline function.
4166 (vsyslog): Define as __extern_always_inline function unconditionally.
4167 * libio/bits/stdio2.h (sprintf, snprintf, printf, fprintf):
4168 When __va_arg_pack is defined, implement as __extern_always_inline
4169 functions.
4170 (vsprintf, vsnprintf, vprintf, vfprintf): Define as
4171 __extern_always_inline functions unconditionally.
4172 * libio/bits/stdio.h (vprintf): Ifdef out the inline when
4173 bits/stdio2.h will be included.
4174 * wcsmbs/bits/wchar2.h (__swprintf_alias): New redirect.
4175 (swprintf, wprintf, fwprintf): When __va_arg_pack is defined,
4176 implement as __extern_always_inline functions.
4177 (vswprintf, vwprintf, vfwprintf): Define as
4178 __extern_always_inline functions unconditionally.
4179 * debug/tst-chk1.c (do_test): Enable remaining tests for C++.
4180
41812007-09-03 Jakub Jelinek <jakub@redhat.com>
4182
4183 * misc/sys/cdefs.h (__extern_inline, __extern_always_inline): Only
4184 define in C++ for GCC 4.3+, in C++ always use __gnu_inline__
4185 attribute.
4186 * include/features.h (__USE_EXTERN_INLINES): Define only when
4187 __extern_inline is defined.
4188 * stdlib/stdlib.h: Include bits/stdlib.h when __extern_always_inline
4189 is defined instead of when not __cplusplus.
4190 * misc/sys/syslog.h: Include bits/syslog.h when __extern_always_inline
4191 is defined instead of when not __cplusplus.
4192 * socket/sys/socket.h: Include bits/socket2.h when
4193 __extern_always_inline is defined instead of when not __cplusplus.
4194 * libio/stdio.h: Include bits/stdio2.h when __extern_always_inline
4195 is defined instead of when not __cplusplus.
4196 * posix/unistd.h: Include bits/unistd.h when __extern_always_inline
4197 is defined instead of when not __cplusplus.
4198 * string/string.h: Include bits/string3.h when __extern_always_inline
4199 is defined instead of when not __cplusplus.
4200 * wcsmbs/wchar.h: Include bits/wchar2.h when __extern_always_inline
4201 is defined instead of when not __cplusplus.
4202 (btowc, wctob): Don't guard the inlines with ifndef __cplusplus.
4203 * io/fcntl.h: Don't include bits/fcntl2.h if __extern_always_inline
4204 is not defined.
4205 * misc/bits/syslog-ldbl.h: Guard *_chk stuff with
4206 defined __extern_always_inline instead of !defined __cplusplus.
4207 * libio/bits/stdio-ldbl.h: Likewise.
4208 * wcsmbs/bits/wchar-ldbl.h: Likewise.
4209 * misc/bits/syslog.h (syslog): Don't define for C++.
4210 (vsyslog): Use __extern_always_inline function for C++ instead of
4211 a macro.
4212 * libio/bits/stdio.h (__STDIO_INLINE): Define to __extern_inline
4213 whenever that macro is defined.
4214 (vprintf): Don't provide the inline for C++.
4215 (fread_unlocked, fwrite_unlocked): Don't define the macros for C++.
4216 * libio/bits/stdio2.h (sprintf, snprintf, printf, fprintf): Don't
4217 define the macros for C++.
4218 (vsprintf, vsnprintf, vprintf, vfprintf): Define as
4219 __extern_always_inline functions for C++.
4220 * io/sys/stat.h (stat, lstat, fstat, fstatat, mknod, mknodat,
4221 stat64, lstat64, fstat64, fstatat64): Don't define if not
4222 __USE_EXTERN_INLINES.
4223 * wcsmbs/bits/wchar2.h: Fix #error message.
4224 (swprintf, wprintf, fwprintf): Don't define the macros for C++.
4225 (vswprintf, vwprintf, vfwprintf): Define using
4226 __extern_always_inline functions for C++.
4227 * string/bits/string3.h: Don't #undef macros if __cplusplus.
4228 (memcpy, memmove, mempcpy, memset, bcopy, bzero, strcpy, stpcpy,
4229 strncpy, strcat, strncat): Define as __extern_always_inline
4230 functions instead of macros for C++.
4231 * math/bits/cmathcalls.h: Guard __extern_inline routines with
4232 defined __extern_inline.
4233 * sysdeps/alpha/fpu/bits/mathinline.h (__MATH_INLINE): Define
4234 to __extern_inline whenever that macro is defined.
4235 * sysdeps/ia64/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
4236 * sysdeps/i386/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
4237 * sysdeps/i386/i486/bits/string.h (__STRING_INLINE): Likewise.
4238 * sysdeps/s390/bits/string.h (__STRING_INLINE): Likewise.
4239 * sysdeps/s390/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
4240 * sysdeps/powerpc/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
4241 * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
4242 * sysdeps/sparc/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
4243 * sysdeps/unix/sysv/linux/sys/sysmacros.h (gnu_dev_major,
4244 gnu_dev_minor, gnu_dev_makedev): Remove __extern_inline from
4245 prototypes. Only provide __extern_inline routines if
4246 __USE_EXTERN_INLINES.
4247 * debug/Makefile: Add rules to build and run tst-{,lfs}chk{4,5,6}
4248 tests.
4249 * debug/tst-chk1.c (do_prepare, do_test): Allow compilation as C++.
4250 For now avoid some *printf tests in C++. Skip all testing
4251 if __USE_FORTIFY_LEVEL is defined, but __extern_always_inline macro
4252 is not.
4253 * debug/tst-chk4.cc: New file.
4254 * debug/tst-chk5.cc: New file.
4255 * debug/tst-chk6.cc: New file.
4256 * debug/tst-lfschk4.cc: New file.
4257 * debug/tst-lfschk5.cc: New file.
4258 * debug/tst-lfschk6.cc: New file.
4259 * include/wchar.h (__vfwprintf_chk, __vswprintf_chk): Avoid
4260 prototypes in C++.
4261 * include/stdio.h (__sprintf_chk, __snprintf_chk, __vsprintf_chk,
4262 __vsnprintf_chk, __printf_chk, __fprintf_chk, __vprintf_chk,
4263 __vfprintf_chk, __fgets_unlocked_chk, __fgets_chk): Likewise.
4264
b53eef9c
UD
42652007-09-13 Ulrich Drepper <drepper@redhat.com>
4266
4267 * po/cs.po: Update from translation team.
4268
af385590
RM
42692007-09-11 Roland McGrath <roland@redhat.com>
4270
4271 * posix/Makefile ($(objpfx)getconf.speclist): Make it empty if cross
4272 compiling.
4273
af2f25a1
RM
42742007-09-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
4275
4276 * sysdeps/mach/hurd/bits/ioctls.h (TAB3): New macro.
4277
94733ae0
RM
42782007-09-05 Roland McGrath <roland@redhat.com>
4279
4280 * manual/signal.texi (Signaling Another Process): Typo fix.
4281 From Karl Berry <karl@freefriends.org>.
4282
de4d8563
UD
42832007-08-29 Ulrich Drepper <drepper@redhat.com>
4284
4285 * sysdeps/unix/sysv/linux/check_pf.c (IFA_F_OPTIMISTIC): Define to
4286 zero if not defined.
4287 (make_request): Recognize optimistic addresses and treat them like
4288 deprecated addresses.
4289 Reported by Neil Horman <nhorman@redhat.com>.
4290
0adfcc05
UD
42912007-08-28 Ulrich Drepper <drepper@redhat.com>
4292
f3c54060
UD
4293 * nscd/connections.c (send_ro_fd): Also transfer file size.
4294 * nscd/nscd_helper.c (get_mapping): If nscd also transfers the
4295 file size don't call fstat.
4296
0adfcc05
UD
4297 * nscd/nscd_helper.c (get_mapping): Avoid the pread call, just go
4298 ahead and map the file. This should always be correct and we can
4299 catch problems later.
4300
3586b2b6
UD
43012007-08-28 Jakub Jelinek <jakub@redhat.com>
4302
4303 * libio/bits/stdio2.h (__fread_chk, __fread_unlocked_chk): New
4304 prototypes.
4305 (__fread_alias, __fread_unlocked_alias): New aliases.
4306 (fread): New extern inline.
4307 (fread_unlocked): Likewise. Undef macro before definition of
4308 the inline function.
4309 * debug/Makefile (routines): Add fread_chk and fread_u_chk.
4310 (CFLAGS-fread_chk.c, CFLAGS-fread_u_chk.c): Add.
4311 * debug/Versions (libc): Export __fread_chk@@GLIBC_2.7
4312 and __fread_unlocked_chk@@GLIBC_2.7.
4313 * debug/fread_chk.c: New file.
4314 * debug/fread_u_chk.c: New file.
4315 * debug/tst-chk1.c (do_test): Add fread and fread_unlocked tests.
4316
3704aa0b
RM
43172007-08-27 Jakub Jelinek <jakub@redhat.com>
4318
4319 * sysdeps/unix/sysv/linux/syscalls.list
4320 (personality): Change caller to EXTRA.
4321
80e7d6a6
UD
43222007-08-25 Ulrich Drepper <drepper@redhat.com>
4323
278bfa00
UD
4324 * iconvdata/iso-2022-kr.c (BODY): Fake initialization of array buf
4325 to keep gcc quiet.
4326 * iconvdata/iso-2022-cn.c (BODY): Likewise.
4327
a45d733c
UD
4328 * locale/programs/ld-collate.c (collate_output): Avoid warning if
4329 NDEBUG is defined.
4330
5dfeae0e
UD
4331 * Makerules: Use -p option with mkdir.
4332
8f1fe057
UD
4333 * sunrpc/key_prot.c (xdr_unixcred): Work around gcc alias warning.
4334 * nis/nis_xdr.c (_xdr_nis_server): Likewise.
bd0dcd28
UD
4335 (_xdr_directory_obj): Likewise.
4336 (xdr_entry_obj): Likewise.
4337 (xdr_group_obj): Likewise.
4338 (xdr_link_obj): Likewise.
4339 (xdr_table_obj): Likewise.
4340 (_xdr_nis_result): Likewise.
4341 (_xdr_ns_request): Likewise.
4342 (_xdr_ib_request): Likewise.
4343 (_xdr_nis_taglist): Likewise.
4344 (xdr_cback_data): Likewise.
8f1fe057 4345 * nis/yp_xdr.c (xdr_ypmaplist): Likewise.
bd0dcd28
UD
4346 (xdr_ypresp_maplist): Likewise.
4347
01339a67
UD
4348 * stdio-common/Makefile: Avoid format string warning for tst-sprint.
4349
3fa10468
UD
4350 * posix/regex_internal.h: Prevent some declarations and definitions
4351 to be seen when used in tests.
4352
ec1e04de
UD
4353 * posix/tst-rfc3484.c (__idna_to_unicode_lzlz): Initialize *OUTPUT.
4354 * posix/tst-rfc3484-2.c (__idna_to_unicode_lzlz): Likewise.
4355
7a344d1d
UD
4356 * debug/Makefile: Disable format checking when compiling tst-chk?.c.
4357
f8f6ff5d
UD
4358 * config.make.in (datarootdir): Add to shut up configure.
4359
76fca9f1
UD
4360 * sysdeps/x86_64/cacheinfo.c (handle_amd): Fix computation of
4361 associativity for fully-associative caches.
4362
80e7d6a6
UD
4363 * sysdeps/x86_64/cacheinfo.c (handle_amd): Handle L3 cache
4364 requests. Fill on more associativity values for L2.
4365 Patch mostly by Evandro Menezes.
4366
cb5ba304
UD
43672007-08-24 Ulrich Drepper <drepper@redhat.com>
4368
d250df8c
UD
4369 * sysdeps/unix/sysv/linux/x86_64/init-first.c
4370 (_libc_vdso_platform_setup): Avoid using exported variable by using
4371 alias.
4372
88f61aaf
UD
4373 * resolv/arpa/nameser.h (NS_OPT_DNSSEC_OK): Define.
4374
cb5ba304 4375 * sysdeps/unix/sysv/linux/i386/syscalls.list: No reason to mark
cb104bd7 4376 fallocate64 as EXTRA. It is not referenced if the symbol isn't
cb5ba304
UD
4377 defined.
4378
62e1b1f5
UD
43792007-08-23 Ulrich Drepper <drepper@redhat.com>
4380
44b2e581
UD
4381 * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Correctly
4382 align stack for call if pltexit is to be used.
4383
73e3ff07
UD
4384 [BZ #3924]
4385 * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Correctly
4386 align for function call in case pltexit has to be called later.
4387
62e1b1f5
UD
4388 * sysdeps/i386/dl-trampoline.S (_dl_runtime_resolve): Avoid
4389 implicit atomic operation when storing function pointer.
4390 (_dl_runtime_profile): Likewise.
4391
0008163a
UD
43922007-08-17 Jakub Jelinek <jakub@redhat.com>
4393
4394 * nis/nis_table.c (nis_list): Don't fail if __follow_path returned
4395 NIS_NOTFOUND.
4396
55ea8790
UD
43972007-08-21 Ulrich Drepper <drepper@redhat.com>
4398
2e0e1a05
UD
4399 [BZ #4566]
4400 * string/strtok.c: Fix typo in comment.
4401
682e4437
UD
4402 [BZ #4582]
4403 * debug/segfault.c: Fix typos in comments.
4404
7d55c9eb
UD
4405 [BZ #4588]
4406 * stdio-common/tempnam.c: Fix comment, it is not checked that
4407 TMPDIR points to a writable directory.
4408
0f8f993c
UD
4409 [BZ #4726]
4410 * resolv/res_send.c (__libc_res_nsend): Initialize all of the
4411 memory allocated for the name server address.
4412
1465dd0f
UD
4413 [BZ #4946]
4414 * nscd/connections.c (handle_request): Using sendfile always
4415 requires that mmap is used for the database.
4416 Patch by Petr Baudis <pasky@suse.cz>.
4417
c44d3bdf
UD
4418 [BZ #4905]
4419 * nscd/hstcache.c (cache_addhst): When reloading an entry which
4420 suddenly has two or more addresses, ignore it and remove the old
4421 entry.
4422
1ce7d80d
UD
4423 [BZ #4814]
4424 * resolv/res_hconf.c: Prepare for compiling outside libc.
4425 * nscd/res_hconf.c: New file.
4426 * nscd/Makefile (nscd-modules): Add res_hconf. Add rules to build
4427 the new file.
4428 * nscd/gethstbynm2_r.c (NEED__RES_HCONF): Define.
4429 * nscd/gethstbyad_r.c (NEED__RES_HCONF): Likewise.
4430
a30d41c1
UD
4431 * nscd/hstcache.c (cache_addhst): Minimal optimization.
4432
45dc3ad7
UD
4433 [BZ #4925]
4434 * debug/pcprofiledump.c: Turn on internationalization by calling
4435 setlocale. Patch mostly by Benno Schulenberg.
4436
55ea8790
UD
4437 [BZ #4936]
4438 * iconv/gconv.c (__gconv): If flush was successful, clear rest of
4439 the state.
4440 * iconvdata/Makefile: Add rules to build and run bug-iconv5.
4441 * iconvdata/bug-iconv5.c: New file.
4442
0b82ff74
UD
44432007-08-04 Carlos O'Donell <carlos@systemhalted.org>
4444
55ea8790 4445 [BZ #4896]
0b82ff74
UD
4446 * elf/elf.h: Define R_PARISC_PLABEL21L, R_PARISC_PLABEL14R,
4447 R_PARISC_GNU_VTENTRY, R_PARISC_GNU_VTINHERIT, R_PARISC_TLS_GD21L,
4448 R_PARISC_TLS_GD14R, R_PARISC_TLS_GDCALL, R_PARISC_TLS_LDM21L,
4449 R_PARISC_TLS_LDM14R, R_PARISC_TLS_LDMCALL, R_PARISC_TLS_LDO21L,
4450 R_PARISC_TLS_LDO14R, R_PARISC_TLS_DTPMOD32, R_PARISC_TLS_DTPMOD64,
4451 R_PARISC_TLS_DTPOFF32, R_PARISC_TLS_DTPOFF64, R_PARISC_TLS_LE21L,
4452 R_PARISC_TLS_LE14R, R_PARISC_TLS_IE21L, R_PARISC_TLS_IE14R,
4453 R_PARISC_TLS_TPREL32, R_PARISC_TLS_TPREL64.
4454
ee16a55a
UD
44552007-08-21 Ulrich Drepper <drepper@redhat.com>
4456
4457 [BZ #4937]
4458 * elf/do-lookup.h (do_lookup_x): Minimal improvement in hash
4459 lookup loop. Suggested by John Reiser.
4460
b211fe0f
JJ
44612007-08-21 Jakub Jelinek <jakub@redhat.com>
4462
4463 * sysdeps/unix/sysv/linux/alpha/sysdep.h: Include tls.h.
4464
fb84593c
UD
44652007-08-20 Ulrich Drepper <drepper@redhat.com>
4466
4467 * csu/libc-start.c: Don't handle VDSO_SETUP here.
4468 * sysdeps/unix/sysv/linux/init-first.c: Handle it here instead.
4469 * sysdeps/unix/sysv/linux/x86_64/libc-start.c: Renamed to...
4470 * sysdeps/unix/sysv/linux/x86_64/init-first.c: ...this. New file.
4471 * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Move VDSO_SETUP code
4472 to...
4473 * sysdeps/unix/sysv/linux/x86_64/init-first.c: ...here. New file.
4474
b83fb35c
UD
44752007-08-18 Ulrich Drepper <drepper@redhat.com>
4476
4477 * po/nl.po: Update from translation team.
4478
20806a70
AJ
44792007-08-16 Andreas Jaeger <aj@suse.de>
4480
4481 * locale/localeinfo.h: Make _nl_category_name_idxs extern.
4482 Reported by Peter Festner <peter.festner@ewetel.net>.
4483
42282d57
JJ
44842007-08-17 Jakub Jelinek <jakub@redhat.com>
4485
4486 * login/tst-grantpt.c (test_einval): Add 3rd argument to open.
4487
8a501135
JJ
44882007-08-16 Jakub Jelinek <jakub@redhat.com>
4489
cb84d1e4
JJ
4490 * elf/Makefile ($(objpfx)ld.so): Use readelf -s and awk instead of nm -u
4491 to check for undefined symbols.
4492
91ddd9c4
JJ
4493 * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone):
4494 If the syscall fails, set errno to the actual returned error number
4495 rather than EINVAL.
4496 * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__clone): If
4497 arguments are incorrect, set errno to EINVAL, if the syscall
4498 fails, set errno to the actual returned error number.
4499
18915760
JJ
4500 * stdlib/bits/stdlib-ldbl.h (__strtold_internal): Remove.
4501 * wcsmbs/bits/wchar-ldbl.h (__wcstold_internal): Remove.
4502
8a501135
JJ
4503 * sysdeps/sparc/sparc32/sparcv9b/memcpy.S: Moved to...
4504 * sysdeps/sparc/sparc32/sparcv9/sparcv9b/memcpy.S: ... here. New
4505 file.
4506 (ASI_PNF, ASI_BLK_P): Don't define.
4507 * sysdeps/sparc/sparc32/sparcv9v/memcpy.S: Moved to...
4508 * sysdeps/sparc/sparc32/sparcv9/sparcv9v/memcpy.S: ... here. New
4509 file.
4510 * sysdeps/sparc/sparc32/sparcv9v/memset.S: Moved to...
4511 * sysdeps/sparc/sparc32/sparcv9/sparcv9v/memset.S: ... here. New
4512 file.
4513
e4720b0e
JJ
45142007-08-15 Jakub Jelinek <jakub@redhat.com>
4515
4516 * sysdeps/sparc/fpu/fraiseexcpt.c (__feraiseexcept): Fix raising
4517 FE_UNDERFLOW on Niagara CPUs.
4518
4519 * sysdeps/sparc/fpu/feholdexcpt.c (feholdexcept): Clear all
4520 exceptions.
4521
702a9414
JJ
45222007-08-14 Jakub Jelinek <jakub@redhat.com>
4523
467d1345
JJ
4524 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_runtime_setup): No
4525 need to check GLRO(dl_hwcap) & HWCAP_SPARC_FLUSH on sparcv9.
4526 (sparc_fixup_plt): Add do_flush argument instead of figuring whether
4527 flush should be used or not inside of the function.
4528 (elf_machine_fixup_plt, elf_machine_rela): Adjust caller.
4529
4530 * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone,
4531 __thread_start): Use HIDDEN_JUMPTARGET.
4532 * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__clone,
4533 __thread_start): Likewise.
4534 * sysdeps/unix/sysv/linux/sparc/sysdep.h (JUMPTARGET): Define.
4535
702a9414
JJ
4536 * sysdeps/ieee754/ldbl-64-128/strtold_l.c (__STRTOF): Declare.
4537 Add libc_hidden_proto.
4538 (STRTOF): Add libc_hidden_proto.
4539 (___new_strtold_l, ___new_wcstold_l): New weak aliases.
4540 (strtold_l, wcstold_l): Use them as second argument for
4541 long_double_symbol.
4542
c6c8f0ec
UD
45432007-08-14 Ulrich Drepper <drepper@redhat.com>
4544
4545 * elf/dl-misc.c: Undo last change. The kernel won't allow it.
4546
5e88abf9
UD
45472007-08-13 Kaz Kojima <kkojima@rr.iij4u.or.jp>
4548
4549 * stdlib/strtold_l.c: Include wchar.h if needed. Add libc_hidden_def.
4550
fc4819b0
UD
45512007-08-14 Ulrich Drepper <drepper@redhat.com>
4552
4553 * po/bg.po: New file. From the translation team.
4554
22502ea2
UD
45552007-08-13 Jakub Jelinek <jakub@redhat.com>
4556
4557 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PSELECT,
4558 __ASSUME_PPOLL, __ASSUME_ATFCTS, __ASSUME_SET_ROBUST_LIST,
4559 __ASSUME_UTIMENSAT, __ASSUME_FALLOCATE): Update per-arch conditions
4560 when each feature was introduced.
4561
4562 * sysdeps/unix/sysv/linux/dl-vdso.c: Don't include dl-hash.h.
4563 * sysdeps/unix/sysv/linux/dl-vdso.h: Don't include dl-hash.h if NDEBUG.
4564 (CHECK_HASH): New macro.
4565 (PREPARE_VERSION): Use it.
4566
4567 * sysdeps/unix/sysv/linux/pselect.c (__generic_pselect): Only provide
4568 prototype if not __ASSUME_PSELECT.
4569 * sysdeps/unix/sysv/linux/ppoll.c (__generic_ppoll): Only provide
4570 prototype if not __ASSUME_PPOLL.
4571
4572 * sysdeps/unix/sysv/linux/dl-osinfo.h (ROUND): #undef after use.
4573
4574 * sysdeps/unix/clock_settime.c (freq, __pthread_clock_settime,
4575 hp_timing_settime): Don't define or declare if HANDLED_CPUTIME
4576 is defined.
4577
9c6f6953
UD
45782007-08-13 Ulrich Drepper <drepper@redhat.com>
4579
4580 * sysdeps/unix/sysv/linux/x86_64/libc-start.c
4581 (_libc_vdso_platform_setup): If vDSO is not available point
4582 __vdso_gettimeofday to the vsyscall.
4583 * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S [SHARED]: Use
4584 __vdso_gettimeofday instead of vsyscall.
4585
f8de5057
UD
45862007-08-13 Jakub Jelinek <jakub@redhat.com>
4587
4588 * nscd/servicescache.c: Include kernel-features.h.
4589 * nscd/gai.c: Likewise.
4590 * sysdeps/unix/sysv/linux/statfs64.c: Likewise.
4591 * sysdeps/unix/sysv/linux/fstatfs64.c: Likewise.
4592 * sysdeps/unix/sysv/linux/fxstatat.c: Likewise.
4593 * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S: Likewise.
4594 * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S: Likewise.
4595 * sysdeps/unix/sysv/linux/xstatconv.c: Likewise.
4596 * sysdeps/unix/sysv/linux/if_index.c: Likewise.
4597 * sysdeps/unix/sysv/linux/sparc/sparc64/xstat.c: Likewise.
4598 * sysdeps/unix/sysv/linux/ifaddrs.c: Likewise.
4599
3c87d79d
UD
46002007-08-12 Ulrich Drepper <drepper@redhat.com>
4601
ea37207a
UD
4602 * elf/dl-dst.h: No need for _dl_dst_count, _dl_dst_substitute,
4603 and _dl_get_origin defines anymore.
4604
4eb375fe
UD
4605 * sysdeps/unix/sysv/linux/clock_gettime.c (maybe_syscall_gettime_cpu):
4606 Build fix for systems which might lack POSIX timer support.
4607
3c87d79d
UD
4608 * sysdeps/unix/sysv/linux/x86_64/libc-start.c
4609 (_libc_vdso_platform_setup): Mangle function pointers before storing
4610 them.
4611 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_VSYSCALL):
4612 Demangle vdso pointer before use.
4613 (INTERNAL_VSYSCALL): Likewise.
4614
4615 * elf/cache.c (primes): Mark as const.
4616 Noted by Roland McGrath.
4617
27d9ffda
UD
46182007-08-01 Andreas Jaeger <aj@suse.de>
4619 Jakub Jelinek <jakub@redhat.com>
4620
4621 * elf/ldconfig.c (opt_ignore_aux_cache): Add new option.
4622 (options): Add option.
4623 (parse_opt): Handle option.
4624 (manual_link): Adjust process_file caller. Call implicit_soname.
4625 (search_dir): Formatting. Use and populate auxiliary cache.
4626 (main): Load and save auxiliary cache.
4627 * elf/readlib.c (process_file): Add stat_buf argument. Pass struct
4628 stat64 from fstat64 to caller.
4629 (implicit_soname): New function.
4630 * elf/readelflib.c (process_elf_file): If DT_SONAME is not present,
4631 leave *soname as NULL.
4632 * elf/cache.c: Include libgen.h.
4633 (print_entry, print_cache, compare, save_cache, add_to_cache):
4634 Formatting and cleanups.
4635 (aux_cache_entry_id, aux_cache_entry, aux_cache_file_entry,
4636 aux_cache_file): New structures.
4637 (AUX_CACHEMAGIC): Define.
4638 (primes): New array.
4639 (aux_hash_size, aux_hash): New variables.
4640 (aux_cache_entry_id_hash, nextprime, init_aux_cache,
4641 search_aux_cache, insert_to_aux_cache, add_to_aux_cache,
4642 load_aux_cache, save_aux_cache): New functions.
4643 * sysdeps/generic/ldconfig.h (_PATH_LDCONFIG_AUX_CACHE): Define.
4644 (init_aux_cache, search_aux_cache, add_to_aux_cache,
4645 load_aux_cache, save_aux_cache, implicit_soname): New prototypes.
4646 (process_file): Adjust prototype.
4647
8d944b0f
UD
46482007-08-12 Jakub Jelinek <jakub@redhat.com>
4649
4650 * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h: Include stddef.h
4651 with __need_size_t.
4652
75fb247e
UD
46532007-08-12 Ulrich Drepper <drepper@redhat.com>
4654
fb86328a
UD
4655 * sysdeps/unix/sysv/linux/dl-vdso.c (_dl_vdso_vsym): Expect
4656 r_found_version structure as second parameter.
4657 * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION): Define.
4658 (_dl_vdso_vsym): Change type of second parameter accordingly.
4659 * sysdeps/unix/sysv/linux/x86-64/libc-start.c
4660 (_libc_vdso_platform_setup): Adjust.
974a1f0f 4661 * sysdeps/unix/sysv/linux/powerpc/libc-start.c
fb86328a
UD
4662 (_libc_vdso_platform_setup): Likewise.
4663
75fb247e
UD
4664 * sysdeps/unix/sysv/linux/powerpc/dl-vdso.c: Move to...
4665 * sysdeps/unix/sysv/linux/dl-vdso.c: ...here.
4666 * sysdeps/unix/sysv/linux/powerpc/dl-vdso.h: Move to...
4667 * sysdeps/unix/sysv/linux/dl-vdso.h: ...here.
4668 * csu/libc-start.c: Pretty printing.
4669 Use VDSO_SETUP if defined.
4670 * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Define VDSO_SETUP
4671 and let generic code call into _libc_vdso_platform_setup.
4672 * sysdeps/unix/sysv/linux/x86_64/libc-start.c: New file.
4673 * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: New file.
4674 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Pretty printing.
4675 Define INLINE_VSYSCALL and INTERNAL_VSYSCALL.
4676 * sysdeps/unix/sysv/linux/x86_64/Versions: Export __vdso_clock_gettime
4677 for GLIBC_PRIVATE.
4678 * sysdeps/unix/sysv/linux/x86_64/Makefile [subdir=elf]
4679 (sysdep_rountines): Add dl-vdso.
4680
4681 * sysdeps/unix/sysv/linux/powerpc/Makefile: Use sysdep_routines instead
4682 of routines.
4683
4684 * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Add
4685 attribute_hidden to __vdso_gettimeofday prototype.
4686
9229b83e
RM
46872007-08-12 Roland McGrath <roland@redhat.com>
4688
4689 * manual/stdio.texi (Variable Arguments Output): Fix xref to gcc manual.
4690 From: Karl Berry <karl@freefriends.org>.
4691
4503061f
UD
46922007-08-11 Ulrich Drepper <drepper@redhat.com>
4693
4694 * elf/dl-misc.c (_dl_sysdep_read_whole_file): We really don't need
4695 an atime update for the files we read.
4696
d7e23b02
UD
46972007-08-10 Ulrich Drepper <drepper@redhat.com>
4698
7cf89e95
UD
4699 * shadow/lckpwdf.c (__lckpwdf): Use O_CLOEXEC if possible.
4700
9d169bb3 4701 * nscd/connections.c: Use O_CLOEXEC if possible. Use mkostemp
d7e23b02
UD
4702 instead of mkstemp.
4703
4704 * misc/Makefile (routines): Add mkostemp and mkostemp64.
4705 * misc/Versions: Export mkostemp and mkostemp64 for GLIBC_2.7.
4706 * misc/mkostemp.c: New file.
4707 * misc/mkostemp64.c: New file.
4708 * stdlib/stdlib.h: Declare the new functions.
4709 * sysdeps/posix/tempname.c: Add new parameter which is added to
4710 the flags for open. Remove __GT_BIGFILE handling.
4711 * stdio-common/tempname.c: Likewise.
4712 * include/stdio.h: Adjust __gen_tempname prototype.
4713 Renumber __GT_* constants.
4714 * libio/oldtmpfile.c: Adjust for __gen_tempname interface change.
4715 * misc/mkdtemp.c: Likewise.
4716 * misc/mkstemp.c: Likewise.
4717 * misc/mkstemp64.c: Likewise.
4718 * misc/mktemp.c: Likewise.
4719 * stdio-common/tempnam.c: Likewise.
4720 * stdio-common/tmpfile.c: Likewise.
4721 * stdio-common/tmpfile64.c: Likewise.
4722 * stdio-common/tmpnam.c: Likewise.
4723 * stdio-common/tmpnam_r.c: Likewise.
4724
22532966
RM
47252007-08-10 Roland McGrath <roland@frob.com>
4726
4727 * sysdeps/mach/hurd/bits/ioctls.h (NLDLY, TABDLY, BSDLY, VTDLY):
4728 New macros.
4729 (NLDELAY, CRDELAY, TBDELAY, BSDELAY, VTDELAY): Define to those.
4730 Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
4731
673876e6
UD
47322007-08-10 Ulrich Drepper <drepper@redhat.com>
4733
aa132749
UD
4734 * nss/nss_files/files-XXX.c (internal_setent): Use O_CLOEXEC if
4735 possible.
4736 * nss/nss_files/files-alias.c (internal_setent): Likewise.
4737 * nss/Makefile (libnss_files-routines): Add files-have_o_cloexec.
4738 * nss/nss_files/files-have_o_cloexec.c: New file.
4739
22532966 4740 * sysdeps/unix/sysv/linux/shm_open.c (shm_open): Use O_CLOEXEC if
673876e6
UD
4741 available.
4742
1e286653
JJ
47432007-08-10 Jakub Jelinek <jakub@redhat.com>
4744
4745 * sysdeps/ieee754/ldbl-128ibm/strtold_l.c (___new_strtold_l,
4746 ___new_wcstold_l): New weak aliases.
4747 (strtold_l, wcstold_l): Use them as second argument for
4748 long_double_symbol.
4749
f07f72f3
UD
47502007-08-09 Ulrich Drepper <drepper@redhat.com>
4751
6479496a
UD
4752 * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Use correct
4753 register in test for error.
4754
c4adefbd
UD
4755 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_CLOEXEC): Define.
4756 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (O_CLOEXEC): Likewise.
4757
f07f72f3
UD
4758 * po/sv.po: Update from translation team.
4759
eef38c28
RM
47602007-08-06 Roland McGrath <roland@redhat.com>
4761
773e305e
RM
4762 * include/stdlib.h: Add libc_hidden_proto for strto*, __strto*_l.
4763 Remove __strto*_l inlines.
4764 * include/wchar.h: Add libc_hidden_proto for wcsto*, __wcsto*_l.
4765 * stdlib/strtod.c: Add libc_hidden_def.
4766 * stdlib/strtod_l.c: Likewise.
4767 * stdlib/strtold.c [__LONG_DOUBLE_MATH_OPTIONAL]: Add libc_hidden_proto
4768 for __new_strtold and __new_wcstold.
4769 * sysdeps/ieee754/ldbl-128ibm/strtold_l.c: Add libc_hidden_proto for
4770 __STRTOF, STRTOF.
4771 * stdlib/strtol.c: Add libc_hidden_def.
4772 * stdlib/strtol_l.c: Likewise.
4773 * sysdeps/wordsize-64/strtol.c: Add libc_hidden_ver for strtoll and
4774 strtoq.
4775
4776 * scripts/data/localplt-powerpc-linux-gnu.data: New file.
4777
4778 * scripts/data/localplt-x86_64-linux-gnu.data: File renamed to ...
4779 * scripts/data/localplt-generic.data: ... here.
4780 * elf/Makefile (check-data): Get generic file if no other.
4781 ($(objpfx)check-localplt.out): Make target unconditional.
4782
eef38c28
RM
4783 * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_discover_osversion):
4784 Use ElfW(Nhdr).
4785
742df3a4
UD
47862007-08-05 Ulrich Drepper <drepper@redhat.com>
4787
4788 * po/zh_CN.po: Updated translation from translation team.
4789
0470fa46
JJ
47902007-08-05 Jakub Jelinek <jakub@redhat.com>
4791
4792 * sysdeps/unix/sysv/linux/powerpc/powerpc32/socket.S (__socket):
4793 Don't use CGOTSETUP and CGOTRESTORE macros.
4794
b5075bdc
RM
47952007-08-04 Roland McGrath <roland@redhat.com>
4796
4797 * posix/Makefile ($(objpfx)getconf.speclist): Fix typo.
4798
9accc268
JJ
47992007-08-04 Jakub Jelinek <jakub@redhat.com>
4800
4801 * io/bits/fcntl2.h (open, open64, openat, openat64): Add
4802 __extension__ around the whole statement expression.
4803
220ae3ef
UD
48042007-08-04 Ulrich Drepper <drepper@redhat.com>
4805
c8ccd8e3
UD
4806 * sysdeps/unix/opendir.c (__alloc_dir): Correct order of DIR
4807 elements during initialization.
4808
220ae3ef
UD
4809 * po/pl.po: Updated translation from translation team.
4810 * po/tr.po: Likewise.
11960f7f 4811 * po/nl.po: Likewise.
220ae3ef 4812
2fb20667
UD
48132007-08-03 Ulrich Drepper <drepper@redhat.com>
4814
4815 * rt/aio.h: Add __nonnull attributes.
4816
ce31a3b1
UD
48172007-08-03 Jakub Jelinek <jakub@redhat.com>
4818
64f6281c
UD
4819 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Properly handle -0.
4820 * stdlib/Makefile (tests): Add tst-strtod5.
4821 (tst-strtod5-ENV): New.
4822 * stdlib/tst-strtod5.c: New file.
4823
ce31a3b1
UD
4824 * intl/dcigettext.c (_nl_find_msg): Free encoding if __gconv_open
4825 failed.
4826 * intl/finddomain.c (_nl_find_domain): Free normalized_codeset
4827 on failure.
4828
4829 * elf/dl-load.c (decompose_rpath): Free copy if result couldn't be
4830 allocated.
4831
754980e4
JJ
48322007-08-03 Jakub Jelinek <jakub@redhat.com>
4833
4834 * rt/mqueue.h (mq_timedreceive, mq_timedsend): Fix nonnull argument
4835 numbers.
4836
497af0cb
UD
48372007-08-02 Ulrich Drepper <drepper@redhat.com>
4838
cbf0489b
UD
4839 * io/Makefile (aux): Add have_o_cloexec.
4840 * include/fcntl.h: Declare __have_o_cloexec.
4841 * io/have_o_cloexec.c: New file.
4842 * sysdeps/unix/opendir.c (__opendir): Use O_CLOEXEC is available.
4843 (__alloc_dir): If O_CLOEXEC has been used, don't duplicate the
4844 fcntl call if not necessary.
4845 * login/utmp_file.c (setutent_file): Use __have_o_cloexec instead
4846 of local variable.
4847
fa39685d
UD
4848 * sysdeps/unix/opendir.c (__alloc_dir): Don't initialize ->data.
4849 Avoid memset, add explicit initialization.
4850 * sysdeps/unix/dirstream.h (struct __dirstream): Move data elemtn
4851 to the end and change into zero-sized array.
4852 Move lock member to fill a hole on 64-bit platforms.
9b2e9577
UD
4853
4854 * stdlib/stdlib.h: Remove __strto*_internal prototypes and strto*
4855 inline functions.
4856 * include/stdlib.h: Add __strto*_internal prototypes here.
4857 * wcsmbs/wchar.h: Remove __wcsto*_internal prototypes and wcsto*
4858 inline functions.
4859 * include/wchar.h: Add __wcsto*_internal prototypes.
4860 * sysdeps/generic/inttypes.h: No need to protect the declaration
4861 of the __strto*_internal and __wcsto*_internal members here.
4862
497af0cb
UD
4863 * rt/mqueue.h: Change const to __const and add nonnull attributes.
4864
d17a8cf0
RM
48652007-08-02 Roland McGrath <roland@redhat.com>
4866
4867 * posix/Makefile ($(inst_libexecdir)/getconf): Make hard links to
4868 $(inst_bindir)/getconf if possible.
4869
4870 * posix/Makefile ($(objpfx)getconf.speclist): New target.
4871 (generated): Add it.
4872 ($(inst_libexecdir)/getconf): Use it.
4873
0abf17de
UD
48742007-08-01 Ulrich Drepper <drepper@redhat.com>
4875
4876 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Using
4877 /proc is faster and sufficient. /sys is still needed for
4878 __get_nprocs_conf.
4879
5e0923ab
UD
48802007-08-01 Jakub Jelinek <jakub@redhat.com>
4881
4882 * sysdeps/unix/sysv/linux/i386/syscalls.list (fallocate): Add fallocate
4883 syscall as __fallocate64.
4884 * sysdeps/unix/sysv/linux/i386/posix_fallocate.c: New file.
4885 * sysdeps/unix/sysv/linux/i386/posix_fallocate64.c: New file.
4886
1475e201
UD
48872007-07-30 Jakub Jelinek <jakub@redhat.com>
4888
4889 * stdlib/tst-strtod2.c (do_test): Use %tu in fmt string for ptrdiff_t
4890 value.
4891
4892 * stdio-common/tst-fmemopen2.c (do_test): Avoid fmt string warning
4893 if off_t is different rank from size_t.
4894
4895 * sysdeps/generic/unwind-dw2.c (extract_cie_info, execute_cfa_program,
4896 uw_frame_state_for): Avoid type punning warnings.
4897 * sysdeps/generic/unwind-dw2-fde-glibc.c
4898 (_Unwind_IteratePhdrCallback): Likewise.
4899 * sysdeps/generic/unwind-dw2-fde.c (_Unwind_Find_FDE): Likewise.
4900 (binary_search_single_encoding_fdes, binary_search_mixed_encoding_fdes,
4901 get_cie_encoding, linear_search_fdes): Don't mix char and unsigned char
4902 pointers.
4903
e076bece
UD
49042007-07-31 Ulrich Drepper <drepper@redhat.com>
4905
9506149a
UD
4906 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs_conf): Count
4907 total processors using sysfs.
4908 (__get_nprocs): Use sysfs to determine which processors are online.
e076bece 4909
bbeaaa84
JJ
49102007-07-31 Jakub Jelinek <jakub@redhat.com>
4911
09881398
JJ
4912 * sysdeps/unix/sysv/linux/posix_fallocate.c (posix_fallocate): Fix
4913 syscall arguments count.
4914
bbeaaa84
JJ
4915 * stdio-common/tfformat.c (sprint_doubles): Add 12 new tests.
4916
087ef75f
RM
49172007-07-30 Roland McGrath <roland@redhat.com>
4918
4919 * manual/libc.texinfo: Update copyrights, formatting magic, and
4920 @dircategory. From Karl Berry <karl@freefriends.org>.
4921
44f08a6e
UD
49222007-07-29 Ulrich Drepper <drepper@redhat.com>
4923
eafaae72
UD
4924 [BZ #4860]
4925 * io/Makefile (headers): Add bits/fcntl2.h.
4926
c5705565
UD
4927 * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_ZERO_S): Optimize
4928 using gcc builtin.
4929 (__CPU_EQUAL_S): Likewise.
4930
44f08a6e
UD
4931 * posix/Makefile (routines): Add sched_cpualloc and sched_cpufree.
4932 (tests): Add tst-cpuset.
4933 * posix/sched_cpualloc.c: New file.
4934 * posix/sched_cpufree.c: New file.
4935 * posix/tst-cpuset.c: New file.
4936 * posix/Versions: Export __sched_cpualloc and __sched_cpufree for
4937 GLIBC_2.7.
4938 * sysdeps/unix/sysv/linux/bits/sched.h: Define __CPU_*_S macros.
4939 * posix/sched.h: Define old CPU_* macros in temers of __CPU_*_S
4940 macros. Define CPU_*_S macros.
4941
8f5e1400
UD
49422007-07-28 Ulrich Drepper <drepper@redhat.com>
4943
5b74caf6
UD
4944 * posix/getconf.c (vars): Add missing _SC_LEVEL4_CACHE_LINESIZE
4945 entry.
4946
a26d01bb 4947 [BZ #4858]
8f5e1400
UD
4948 * stdio-common/printf_fp.c (___printf_fp): Fix special case of
4949 #.0g and value rounded to 1.0.
4950 * stdio-common/tfformat.c (sprint_doubles): Add two new tests.
4951
085a4412
UD
49522007-07-26 Jakub Jelinek <jakub@redhat.com>
4953
cedb4109
UD
4954 * locale/programs/ld-monetary.c (monetary_finish): Avoid range check
4955 for int_frac_digits and frac_digits.
4956
4957 * login/logout.c (logout): Avoid aliasing violation.
4958 * login/logwtmp.c (logwtmp): Likewise.
4959
4960 * libio/genops.c (_IO_un_link): Avoid aliasing violation.
4961
9d9febc7
UD
4962 * nscd/selinux.c (preserve_capabilities): Initialize new_caps
4963 to avoid warning.
4964 * iconv/gconv_open.c (__gconv_open): Initialize ptr to avoid
4965 warning.
4966 * nis/nis_subr.c (nis_getnames): Initialize saveptr to avoid
4967 warning.
4968 * resolv/inet_ntop.c (inet_ntop6): Initialize best.len and cur.len
4969 to avoid warnings.
4970
701666b7
UD
4971 * nss/nsswitch.c (__nss_lookup_function): Don't cast &ni->known to
4972 void **.
4973 * nss/nsswitch.h (service_user): Use void * type for KNOWN field.
4974
4975 * nss/nss_files/files-hosts.c (LINE_PARSER): Cast host_addr to
4976 char * to avoid warning.
4977 * nis/nss_nis/nis-hosts.c (LINE_PARSER): Likewise.
4978
4979 * timezone/Makefile (CFLAGS-zdump.c): Add -fwrapv.
4980
4981 * locale/programs/ld-ctype.c (ctype_finish, set_class_defaults,
4982 allocate_arrays): Cast second argument to charmap_find_symbol
4983 to char * to avoid warnings.
4984
4985 * locale/programs/repertoire.c (repertoire_new_char): Change
4986 from_nr, to_nr and cnt to unsigned long, adjust printf format
4987 string.
4988
4989 * locale/programs/ld-collate.c (insert_value, handle_ellipsis):
4990 Cast second argument to new_element to char * to avoid warnings.
4991
4992 * locale/weightwc.h (findidx): Cast &extra[-i] to const int32_t *.
4993
4994 * intl/gettextP.h (struct loaded_domain): Change plural to const
4995 struct expression *.
4996 * intl/plural-eval.c (plural_eval): Change first argument to
4997 const struct expression *.
4998 * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Change first
4999 argument to const struct expression **.
5000 * intl/plural-exp.h (EXTRACT_PLURAL_EXPRESSION, plural_eval): Adjust
5001 prototypes.
5002 * intl/loadmsgcat (_nl_unload_domain): Cast away const
5003 in call to __gettext_free_exp.
5004
5005 * posix/fnmatch.c (fnmatch): Rearrange code to avoid maybe
5006 unitialized wstring/wpattern var warnings.
5007
5008 * posix/runtests.c (struct a_test): Make data field const char *.
5009
5010 * stdio-common/tst-sprintf2.c (main): Don't declere u, v and buf
5011 vars if not LDBL_MANT_DIG >= 106.
5012
5013 * stdio-common/Makefile (CFLAGS-vfwprintf.c): Add -Wno-unitialized.
5014
5015 * stdio-common/vfprintf.c (vfprintf): Cast first arugment to
5016 __find_specmb to avoid warning.
5017
5018 * rt/tst-mqueue1.c (do_one_test): Add casts to avoid warnings.
5019
5020 * debug/test-strcpy_chk.c (do_tests, do_random_tests): Add casts
5021 to avoid warnings.
5022
5023 * sysdeps/ieee754/ldbl-96/s_roundl.c (huge): Add L suffix to
5024 initializer.
5025
5026 * sysdeps/unix/clock_gettime.c (clock_gettime): Only define
5027 tv var when it will be actually used.
5028
5029 * sunrpc/rpc_cmsg.c (xdr_callmsg): Cast IXDR_PUT_* to void
5030 to avoid warnings.
5031
085a4412
UD
5032 * iconvdata/gbk.c (BODY): Make buf and cp char instead of unsigned
5033 char array resp. pointer.
5034 * iconvdata/iso-2022-kr.c (BODY): Make buf unsigned char instead of
5035 char array.
5036 * iconvdata/cns11643.h (cns11643_to_ucs4): Change first argument
5037 to const unsigned char **.
5038 (ucs4_to_cns11643): Change second argument to unsigned char *.
5039 * iconvdata/euc-tw.c (BODY): Change endp type to
5040 const unsigned char *.
5041 * iconvdata/iso-ir-165.h (ucs4_to_isoir165): Change second argument
5042 to unsigned char *.
5043 * iconvdata/ibm1008_420.c (LOOP_NEED_FLAGS): Don't define.
5044 * iconvdata/iso-2022-cn.c (BODY): Change buf to unsigned char array.
5045 * iconvdata/iso-2022-cn-ext.c (BODY): Change buf, tmpbuf, tmp
5046 types to unsigned char pointers/arrays instead of char.
5047 * iconvdata/jis0201.h (ucs4_to_jisx0201): Change second argument
5048 to unsigned char *.
5049 * iconvdata/jis0208.h (ucs4_to_jisx0208): Likewise.
5050 * iconvdata/jis0212.h: Include assert.h.
5051 (ucs4_to_jisx0212): Change second argument to unsigned char *.
5052 assert that if cp[0] is not '\0', cp[1] is not '\0' either instead
5053 of trying to handle that.
5054 * iconvdata/euc-kr.c (euckr_from_ucs4): Initialize also cp[1] to
5055 shut up a warning.
5056 * iconvdata/euc-jp-ms.c (from_ucs4_lat1, from_ucs4_greek,
5057 from_ucs4_cjk, from_ucs4_cjkcpt, from_ucs4_extra): Change type to
5058 two dimensional const unsigned char arrays.
5059 (BODY): Cast "" to (const unsigned char *) for assignment to cp.
5060 Initialize endp to inptr to shut up a warning.
5061
fa69dc9c
UD
50622007-07-20 Jakub Jelinek <jakub@redhat.com>
5063
ae1ad762
UD
5064 [BZ #4772]
5065 * time/strptime_l.c (__strptime_internal): Silently ignore
5066 strftime modifiers and field width in recursive calls.
5067
fa69dc9c
UD
5068 * include/time.h (enum ptime_locale_status): Remove.
5069 (__strptime_internal): Remove decided and era_cnt arguments,
5070 add statep argument.
5071 * time/strptime_l.c (__strptime_internal): Remove decided
5072 and era_cnt arguments, add statep argument. Don't recompute
5073 any fields in recursive calls, only update caller's tm
5074 and state, if recursive call fails, don't change tm nor
5075 any state.
5076 (get_alt_number): Adjust.
5077 (recursive): Adjust caller.
5078 (strptime): Likewise.
5079 * time/strptime.c (strptime): Likewise.
5080
7b503bcc
UD
50812007-07-19 Jakub Jelinek <jakub@redhat.com>
5082
5083 * iconv/gconv_int.h (__GCONV_NULCONV): New internal only error code.
5084 * iconv/gconv_cache.c (__gconv_lookup_cache): Return __GCONV_NULCONV
5085 if from and to charsets are the same.
5086 * iconv/gconv_db.c (__gconv_find_transform): Likewise.
5087 * intl/dcigettext.c (_nl_find_msg): Return NULL even if __gconv_open
5088 returns __GCONV_NOCONV, but not for __GCONV_NULCONV.
5089
50902007-07-17 Jakub Jelinek <jakub@redhat.com>
5091
5092 * wcsmbs/wchar.h: Only define wint_t if __need_wint_t.
5093 Don't define wint_t when __need_mbstate_t unless it
5094 is necessary.
5095 (__mbstate_t): Use __WINT_TYPE__ rather than wint_t
5096 in the typedef if possible.
5097 * wctype/wctype.h (wint_t): Define by including
5098 wchar.h with __need_wint_t instead of including stddef.h
5099 with __need_wint_t and as fallback definining it ourselves.
5100 * iconv/gconv.h (__need_wint_t): Define before including
5101 wchar.h.
5102 * sysdeps/gnu/_G_config.h: Don't include gconv.h if not _LIBC
5103 or _GLIBCPP_USE_WCHAR_T.
5104 (__need_wchar_t): Don't define
5105 if not _LIBC or _GLIBCPP_USE_WCHAR_T.
5106 (__need_wint_t): Don't define before including stddef.h,
5107 define before including wchar.h only if _LIBC or
5108 _GLIBCPP_USE_WCHAR_T.
5109 (_G_iconv_t): Don't define if not _LIBC or _GLIBCPP_USE_WCHAR_T.
5110 * sysdeps/mach/hurd/_G_config.h: Likewise.
5111 * sysdeps/generic/_G_config.h: Likewise.
5112 * libio/libio.h (__wunderflow, __wuflow, __woverflow): Only
5113 prototype if _LIBC or _GLIBCPP_USE_WCHAR_T.
5114 (_IO_getwc_unlocked, _IO_putwc_unlocked): Only define
5115 if _LIBC or _GLIBCPP_USE_WCHAR_T.
5116
a95a608f
UD
51172007-07-28 Ulrich Drepper <drepper@redhat.com>
5118
5119 * sysdeps/posix/posix_fallocate64.c: Undefine
5120 __posix_fallocate64_l64 before alias handling.
5121 * sysdeps/unix/sysv/linux/posix_fallocate.c: New file.
5122 * sysdeps/unix/sysv/linux/posix_fallocate64.c: New file.
5123 * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c: New file.
5124 * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate64.c: New file.
5125
5126 * io/tst-posix_fallocate.c: Include <fcntl.h>.
5127
51282007-07-23 Jakub Jelinek <jakub@redhat.com>
5129
5130 * locale/programs/ld-collate.c (atwc): New variable.
5131 (add_to_tablewc): New toplevel function, moved from collate_output.
5132 (collate_output): Remove add_to_tablewc nested function.
5133
5134 * iconv/iconvconfig.c (hash_table, hash_size): New toplevel vars.
5135 (name_insert): New function.
5136 (write_output): Remove hash_table and hash_size vars and name_insert
5137 nested function.
5138
80d4c3b0
RM
51392007-07-24 Roland McGrath <roland@redhat.com>
5140
5141 * Makerules (install-others-programs-nosubdir): New target.
5142 (install-no-libc.a-nosubdir): Depend on it.
5143
5144 * iconv/Makefile (install-others-programs): Set this instead of
5145 install-others.
5146 * login/Makefile (install-others-programs): Likewise.
5147 * posix/Makefile (install-others-programs): Likewise.
5148
5149 * Makerules (install-no-libc.a-nosubdir): Clean up conditional
5150 dependencies.
5151
c1bf9f14
UD
51522007-07-23 Ulrich Drepper <drepper@redhat.com>
5153
5154 * io/Makefile (tests): Add tst-posix_fallocate.
5155 * io/tst-posix_fallocate.c: New file.
5156
5157 * sysdeps/unix/sysv/linux/kernel-features.h: Define
5158 __ASSUME_FALLOCATE.
5159
2320270c
RM
51602007-07-22 Roland McGrath <roland@frob.com>
5161
3dadfa7e
RM
5162 * hurd/getdport.c: Add missing copyright year update.
5163
2320270c
RM
5164 * sysdeps/mach/hurd/bits/fcntl.h [__USE_GNU] (O_CLOEXEC): New macro.
5165 * hurd/port2fd.c (_hurd_port2fd): Implement O_CLOEXEC.
5166
cc783763
UD
51672007-07-22 Ulrich Drepper <drepper@redhat.com>
5168
c942388d
UD
5169 * login/utmp_file.c (setutent_file): Use O_CLOEXEC if possible.
5170
cc783763
UD
5171 * libio/fileops.c (_IO_new_file_fopen): Recognize 'e' flag and set
5172 O_CLOEXEC is needed.
5173 * nis/nss_compat/compat-grp.c: Use 'e' flag when opening file.
5174 Avoid additional fcntl to set O_CLOEXEC if not needed.
5175 * nis/nss_compat/compat-initgroups.c: Likewise.
5176 * nis/nss_compat/compat-pwd.c: Likewise.
5177 * nis/nss_compat/compat-spwd.c: Likewise.
5178
610903b0
RM
51792007-07-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
5180
3dadfa7e 5181 [BZ #3665]
5c3d7832
RM
5182 * manual/errno.texi: Change ECANCELED value to 119.
5183
3dadfa7e 5184 [BZ #4610]
610903b0
RM
5185 * mach/lock-intern.h: Include <sys/cdefs.h>.
5186
3dadfa7e 5187 [BZ #4178]
610903b0
RM
5188 * sysdeps/mach/hurd/sigaction.c (__sigaction): Check ACT != NULL before
5189 reading A.
5190
3dadfa7e
RM
5191 [BZ #4126]
5192 * sysdeps/mach/hurd/sigsuspend.c (sigsuspend_not_cancel): Define alias
5193 to __sigsuspend.
610903b0
RM
5194
5195 * sysdeps/mach/i386/sysdep.h: Include <dl-sysdep.h> and <tls.h>.
5196
51972006-06-13 Thomas Schwinge <tschwinge@gnu.org>
5198
5199 * sysdeps/mach/hurd/tls.h: Change `ASSEMBLER' conditional to
5200 `__ASSEMBLER__'.
5201 * sysdeps/mach/hurd/i386/tls.h: Likewise.
5202
acf79996
UD
52032007-07-21 Ulrich Drepper <drepper@redhat.com>
5204
dde0763a
UD
5205 * nscd/nscd_helper.c (get_mapping): Use MSG_CMSG_CLOEXEC for
5206 descriptor received from nscd.
5207
acf79996
UD
5208 * sysdeps/unix/sysv/linux/bits/socket.h: Define MSG_CMSG_CLOEXEC.
5209
5210 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_CLOEXEC.
5211 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
5212 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
5213 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
5214 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
5215 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
5216
00d26929
JJ
52172007-07-20 Jakub Jelinek <jakub@redhat.com>
5218
403445d7
JJ
5219 [BZ #4816]
5220 * manual/signal.texi (Non-atomic Example): Make memory var volatile.
5221
00d26929
JJ
5222 [BZ #4813]
5223 * login/forkpty.c (forkpty): Close master and slave fds on
5224 fork failure. Patch by
5225 Mikulas Patocka <mikulas@artax.karlin.mff.cuni.cz>.
5226
087722b8
UD
52272007-07-18 Jakub Jelinek <jakub@redhat.com>
5228
5229 * include/features.h (__USE_ISOC95): New define.
5230 * wcsmbs/wchar.h (fwprintf, fwscanf, wprintf, wscanf, swprintf,
5231 swscanf, vfwprintf, vwprintf, vswprintf, fwide): Define even
5232 for -std=iso9899:199409.
5233 * CONFORMANCE: Remove comments about unsupported AMD1.
5234
b042b023
UD
52352007-07-17 Jakub Jelinek <jakub@redhat.com>
5236
5237 * sysdeps/ia64/sched_cpucount.c: New file.
5238 * sysdeps/powerpc/sched_cpucount.c: New file.
5239
8381e467
UD
5240 * sysdeps/unix/sysv/linux/bits/sched.h (__sched_cpucount): Add
5241 __BEGIN_DECLS/__END_DECLS around the prototype.
5242 * bits/sched.h (__sched_cpucount): Likewise. Make second argument
5243 pointer to const cpu_set_t.
5244
50e16f85
UD
5245 * bits/types.h: Don't include stddef.h, don't define __need_size_t.
5246 * signal/signal.h <__USE_BSD || __USE_XOPEN_EXTENDED>: Define
5247 __need_size_t and include stddef.h.
5248 * sysvipc/sys/msg.h: Likewise.
5249 * posix/sched.h: Likewise.
5250 * hurd/hurd/signal.h (__need_size_t): Define.
5251
5252 * CONFORMANCE: ctype.h and wctype.h no longer define size_t,
5253 neither does signal.h in pedantic ISO C namespaces. stdio.h
5254 no longer defines wint_t or wchar_t.
5255
b257c726
UD
5256 * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): New function.
5257 * debug/vfwprintf_chk.c (__vfwprintf_chk): Use
5258 _IO_acquire_lock_clear_flags2 instead of _IO_acquire_lock.
5259 * debug/vprintf_chk.c (__vprintf_chk): Likewise.
5260 * debug/vwprintf_chk.c (__vwprintf_chk): Likewise.
5261 * debug/vfprintf_chk.c (__vfprintf_chk): Likewise.
5262 * debug/fwprintf_chk.c (__fwprintf_chk): Likewise.
5263 * debug/printf_chk.c (__printf_chk): Likewise.
5264 * debug/fprintf_chk.c (__fprintf_chk): Likewise.
5265 * debug/wprintf_chk.c (__wprintf_chk): Likewise.
5266
5267 * sysdeps/pthread/bits/stdio-lock.h (_IO_acquire_lock_clear_flags2):
5268 Define.
5269
d5078b9f
UD
5270 * bits/confname.h (_CS_POSIX_V6_WIDTH_RESTRICTED_ENVS): Define.
5271 * posix/getconf.c (vars): Add POSIX_V6_WIDTH_RESTRICTED_ENVS.
5272
1c3e748e
UD
52732007-07-16 Jakub Jelinek <jakub@redhat.com>
5274
5275 [BZ #4792]
5276 * stdlib/stdlib.h (realloc): Remove __attribute_malloc__.
5277 * malloc/malloc.h (realloc): Likewise.
5278
4e425301
UD
5279 * libio/iopopen.c (_IO_new_proc_open): Don't close child_std_end
5280 if one of proc_file_chain streams has that fileno.
5281 * stdio-common/Makefile (tests): Add tst-popen2.
5282 * stdio-common/tst-popen2.c: New test.
5283
2e2efe65
RM
52842007-07-14 Jakub Jelinek <jakub@redhat.com>
5285
5286 * elf/ldconfig.c: Allow GPLv2 or any later version.
5287 * elf/readlib.c: Likewise.
5288 * elf/chroot_canon.c: Likewise.
5289 * elf/cache.c: Likewise.
5290 * nscd/mem.c: Likewise.
5291 * nscd/getpwuid_r.c: Likewise.
5292 * nscd/grpcache.c: Likewise.
5293 * nscd/aicache.c: Likewise.
5294 * nscd/getsrvbynm_r.c: Likewise.
5295 * nscd/nscd.c: Likewise.
5296 * nscd/servicescache.c: Likewise.
5297 * nscd/getsrvbypt_r.c: Likewise.
5298 * nscd/initgrcache.c: Likewise.
5299 * nscd/gethstbyad_r.c: Likewise.
5300 * nscd/gethstbynm2_r.c: Likewise.
5301 * nscd/getgrnam_r.c: Likewise.
5302 * nscd/nscd_setup_thread.c: Likewise.
5303 * nscd/getpwnam_r.c: Likewise.
5304 * nscd/gai.c: Likewise.
5305 * nscd/connections.c: Likewise.
5306 * nscd/dbg_log.c: Likewise.
5307 * nscd/cache.c: Likewise.
5308 * nscd/hstcache.c: Likewise.
5309 * nscd/nscd_conf.c: Likewise.
5310 * nscd/getgrgid_r.c: Likewise.
5311 * nscd/pwdcache.c: Likewise.
5312 * catgets/gencat.c: Likewise.
5313 * locale/programs/linereader.h: Likewise.
5314 * locale/programs/locarchive.c: Likewise.
5315 * locale/programs/ld-paper.c: Likewise.
5316 * locale/programs/locfile-kw.h: Likewise.
5317 * locale/programs/ld-address.c: Likewise.
5318 * locale/programs/xmalloc.c: Likewise.
5319 * locale/programs/ld-time.c: Likewise.
5320 * locale/programs/localedef.c: Likewise.
5321 * locale/programs/simple-hash.c: Likewise.
5322 * locale/programs/xstrdup.c: Likewise.
5323 * locale/programs/ld-numeric.c: Likewise.
5324 * locale/programs/locfile-kw.gperf: Likewise.
5325 * locale/programs/ld-collate.c: Likewise.
5326 * locale/programs/charmap-kw.gperf: Likewise.
5327 * locale/programs/charmap.h: Likewise.
5328 * locale/programs/charmap-kw.h: Likewise.
5329 * locale/programs/config.h: Likewise.
5330 * locale/programs/locfile.c: Likewise.
5331 * locale/programs/ld-ctype.c: Likewise.
5332 * locale/programs/charmap.c: Likewise.
5333 * locale/programs/ld-messages.c: Likewise.
5334 * locale/programs/repertoire.h: Likewise.
5335 * locale/programs/locale.c: Likewise.
5336 * locale/programs/ld-name.c: Likewise.
5337 * locale/programs/linereader.c: Likewise.
5338 * locale/programs/locfile.h: Likewise.
5339 * locale/programs/3level.h: Likewise.
5340 * locale/programs/ld-monetary.c: Likewise.
5341 * locale/programs/ld-measurement.c: Likewise.
5342 * locale/programs/charmap-dir.c: Likewise.
5343 * locale/programs/ld-identification.c: Likewise.
5344 * locale/programs/localedef.h: Likewise.
5345 * locale/programs/charmap-dir.h: Likewise.
5346 * locale/programs/repertoire.c: Likewise.
5347 * locale/programs/simple-hash.h: Likewise.
5348 * locale/programs/ld-telephone.c: Likewise.
5349 * locale/programs/locale-spec.c: Likewise.
5350 * locale/programs/locfile-token.h: Likewise.
5351 * posix/getconf.c: Likewise.
5352 * iconv/dummy-repertoire.c: Likewise.
5353 * iconv/iconv_charmap.c: Likewise.
5354 * iconv/iconvconfig.c: Likewise.
5355 * iconv/iconv_prog.c: Likewise.
5356 * malloc/memusagestat.c: Likewise.
5357 * sysdeps/unix/sysv/linux/nscd_setup_thread.c: Likewise.
5358
84c23a3d
RM
53592007-07-06 Kaz Kojima <kkojima@rr.iij4u.or.jp>
5360
5361 * sysdeps/sh/bsd-setjmp.S (setjmp): Use correct argument registers.
5362 * sysdeps/sh/bsd-_setjmp.S (_setjmp): Likewise.
5363 * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Do correct sanity
5364 check for the first argument.
5365
1c298d08
UD
53662007-07-12 Jakub Jelinek <jakub@redhat.com>
5367
5368 [BZ #4775]
5369 * math/tgmath.h (__tgmath_real_type_sub): Formatting.
5370 (__tgmath_real_type): Fix if expr is const int or other const
5371 qualified integral type.
5372 (__TGMATH_UNARY_REAL_ONLY): Rewritten to avoid using statement
5373 expressions and handle const qualified arguments.
5374 (__TGMATH_BINARY_FIRST_REAL_ONLY, __TGMATH_UNARY_REAL_IMAG,
5375 __TGMATH_UNARY_REAL_IMAG_RET_REAL): Likewise.
5376 (__TGMATH_UNARY_REAL_RET_ONLY): Rewritten to avoid using
5377 statement expressions.
5378 (__TGMATH_BINARY_REAL_ONLY, __TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY,
5379 __TGMATH_TERNARY_REAL_ONLY, __TGMATH_BINARY_REAL_IMAG): Likewise.
5380 (__TGMATH_UNARY_IMAG): Define.
5381 (conj, cproj): Use __TGMATH_UNARY_IMAG macro.
5382 * math/Makefile (tests): Add test-tgmath2.
5383 (CFLAGS-test-tgmath2.c): Add.
5384 * math/test-tgmath.c (fy, dy, ly, fz, dz, lz, count_cdouble,
5385 count_cfloat, count_cldouble): New variables.
5386 (NCCALLS): Define.
5387 (main): Check number of complex calls as well.
5388 (F(compile_test)): Add complex tests and tests with const qualified
5389 arguments.
5390 (y, z, ccount): Define.
5391 (F(cacos), F(casin), F(catan), F(ccos), F(csin), F(ctan), F(cacosh),
5392 F(casinh), F(catanh), F(ccosh), F(csinh), F(ctanh), F(cexp), F(clog),
5393 F(csqrt), F(cpow), F(cabs), F(carg), F(creal), F(cimag), F(conj),
5394 F(cproj)): New functions.
5395 * math/test-tgmath2.c: New test.
5396
53972007-07-11 Jakub Jelinek <jakub@redhat.com>
5398
5399 [BZ #4776]
5400 * elf/dl-load.c (_dl_rtld_di_serinfo): Output / in LD_LIBRARY_PATH,
5401 RPATH etc. as "/" rather than "", don't segfault on empty paths,
5402 instead output ".".
5403 * dlfcn/Makefile (distribute): Add glreflib3.c.
5404 (module-names): Add glreflib3.
5405 ($(objpfx)tst-dlinfo.out): Depend on glreflib3.so rather than
5406 glreflib1.so.
5407 (LDFLAGS_glreflib3.so): New.
5408 * dlfcn/tst-dlinfo.c (do_test): Load glreflib3.so instead of
5409 glreflib1.so.
5410 * dlfcn/glreflib3.c: New file.
5411
5412 * intl/finddomain.c (_nl_find_domain): If _nl_explode_name
5413 returned -1, return NULL.
5414 * intl/explodename.c (_nl_explode_name): Return -1 if
5415 _nl_normalize_codeset failed.
5416
a88f47a7
UD
54172007-07-07 Steven Munroe <sjmunroe@us.ibm.com>
5418
5419 * sysdeps/powerpc/powerpc32/power6/memset.S: Update comments.
5420 Specify .machine power6 to get ISA-V2.0 branch hints. Unroll loops
5421 and avoid branch misspredicts for > 31 bytes memset case.
5422 * sysdeps/powerpc/powerpc64/power6/memset.S: Likewise.
5423 Remove toc ref to __cache_line_size.
5424
5425 * sysdeps/powerpc/powerpc32/power4/memcmp.S: Specify .machine power4
5426 to get ISA-V2.0 branch hints.
5427 * sysdeps/powerpc/powerpc32/power4/memcpy.S: Likewise
5428 * sysdeps/powerpc/powerpc32/power4/memset.S: Likewise
5429 * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
5430 * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
5431 * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
5432 * sysdeps/powerpc/powerpc64/power4/memset.S: Likewise.
5433 Remove toc ref to __cache_line_size.
5434
5435 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S:
5436 Include math_ldbl_opt.h.
5437
f98c2d06
UD
54382007-07-10 Ulrich Drepper <drepper@redhat.com>
5439
5440 [BZ #4773]
5441 * time/strptime_l.c (__strptime_internal): Implement greedy
5442 matching of weekday and month names.
5443
cec5991f
RM
54442007-07-09 Roland McGrath <roland@redhat.com>
5445
5446 * elf/elf.h (NT_GNU_ABI_TAG): New macro.
5447 (ELF_NOTE_ABI): Use it.
5448 (NT_GNU_HWCAP, NT_GNU_BUILD_ID): New macros.
5449
8c1dcd26
UD
54502007-07-09 Ulrich Drepper <drepper@redhat.com>
5451
5452 * sysdeps/x86_64/cacheinfo.c (intel_02_known): Add new entries.
5453 * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
5454
c2c7bd3f
UD
54552007-07-07 Ulrich Drepper <drepper@redhat.com>
5456
5457 [BZ #4745]
0923a2c8
UD
5458 * stdio-common/vfscanf.c (_IO_vfscanf): Add additional test for EOF
5459 in loop to look for conversion specifier to avoid testing of
5460 wrong errno value.
5461 * stdio-common/Makefile (tests): Add bug18, bug18a, bug19, bug19a.
c2c7bd3f 5462 * stdio-common/bug18.c: New file.
0923a2c8
UD
5463 * stdio-common/bug18a.c: New file.
5464 * stdio-common/bug19.c: New file.
5465 * stdio-common/bug19a.c: New file.
c2c7bd3f 5466
4facf4af
RM
54672007-07-05 Mike Frysinger <vapier@gentoo.org>
5468
5469 * Makeconfig ($(common-objpfx)gnu/lib-names.stmp): Use LC_ALL=C when
5470 running awk script.
5471
1311e86e
UD
54722007-07-01 Jakub Jelinek <jakub@redhat.com>
5473
5474 * elf/dl-sysdep.c (_dl_important_hwcaps): Add integer overflow check.
5475 * elf/dl-minimal.c (__libc_memalign): Likewise. Handle malloc (0).
5476 Return NULL if mmap failed instead of asserting it does not.
5477 (calloc): Check for integer overflow.
5478
5479 * elf/dl-minimal.c (__strtoul_internal): Fix parsing of numbers bigger
5480 than LONG_MAX / 10.
5481
57c9179c
UD
54822007-07-03 Jakub Jelinek <jakub@redhat.com>
5483
5484 [BZ #4702]
5485 * nis/nss-default.c: Include errno.h.
5486 (init): Preserve errno.
5487
d0b283a8
UD
54882007-07-02 Ulrich Drepper <drepper@redhat.com>
5489
5490 * sysdeps/unix/sysv/linux/bits/socket.h (PF_UNIX): Update comment.
5491
34e0bbaf
UD
54922007-06-30 Ulrich Drepper <drepper@redhat.com>
5493
5494 * sysdeps/unix/sysv/linux/bits/socket.h: Add PF_RXRPC and AF_RXRPC.
5495
54962007-06-29 Martin Schwidefsky <schwidefsky@de.ibm.com>
5497
5498 * sysdeps/unix/sysv/linux/bits/socket.h: Add PF_IUCV and AF_IUCV.
5499
34e0bbaf 55002007-06-29 Martin Schwidefsky <schwidefsky@de.ibm.com>
33516494
UD
5501
5502 * sysdeps/s390/dl-procinfo.c: New file.
5503 * sysdeps/s390/dl-procinfo.h: New file.
5504 * sysdeps/unix/sysv/linux/s390/dl-procinfo.h: New file.
5505
0e508a6e
UD
55062007-06-29 Jakub Jelinek <jakub@redhat.com>
5507
5508 * elf/dl-load.c (open_verify): Find .note.ABI-tag notes even
5509 in PT_NOTE segments with multiple notes.
5510 * elf/readelflib.c (process_elf_file): Likewise.
5511
e22c61fb
UD
55122007-06-22 Ulrich Drepper <drepper@redhat.com>
5513
5514 * nis/nis_domain_of.c (__nis_domain_of): Make the code a bit more
5515 ISO C compliant.
5516
e4eb675d
UD
55172007-06-19 Ulrich Drepper <drepper@redhat.com>
5518
5519 * elf/dl-close.c (free_mem): Free _dl_scope_free_list.
5520
55212007-06-13 Jakub Jelinek <jakub@redhat.com>
5522
5523 * include/link.h: Don't include rtld-lowlevel.h.
5524 (struct link_map): Remove l_scope_lock.
5525 * sysdeps/generic/ldsodefs.h: Don't include rtld-lowlevel.h.
5526 (_dl_scope_free_list): New field (variable) in _rtld_global.
5527 (DL_LOOKUP_SCOPE_LOCK): Remove.
5528 (_dl_scope_free): New prototype.
5529 * elf/dl-runtime.c (_dl_fixup): Don't use __rtld_mrlock_*lock.
5530 Don't pass DL_LOOKUP_SCOPE_LOCK to _dl_lookup_symbol_x.
5531 (_dl_profile_fixup): Likewise.
5532 * elf/dl-sym.c (do_sym): Likewise. Use wrapped _dl_lookup_symbol_x
5533 whenever !RTLD_SINGLE_THREAD_P, use THREAD_GSCOPE_SET_FLAG and
5534 THREAD_GSCOPE_RESET_FLAG around it.
5535 * elf/dl-close.c (_dl_close_worker): Don't use
5536 __rtld_mrlock_{change,done}. Call _dl_scope_free on the old
5537 scope. Make sure THREAD_GSCOPE_WAIT () happens if any old
5538 scopes were queued or if l_scope_mem has been abandoned.
5539 * elf/dl-open.c (_dl_scope_free): New function.
5540 (dl_open_worker): Use it. Don't use __rtld_mrlock_{change,done}.
5541 * elf/dl-support.c (_dl_scope_free_list): New variable.
5542 * elf/dl-lookup.c (add_dependency): Remove flags argument.
5543 Remove DL_LOOKUP_SCOPE_LOCK handling.
5544 (_dl_lookup_symbol_x): Adjust caller. Remove DL_LOOKUP_SCOPE_LOCK
5545 handling.
5546 * elf/dl-object.c (_dl_new_object): Don't use
5547 __rtld_mrlock_initialize.
5548
9be09e06
UD
55492007-06-19 Ulrich Drepper <drepper@redhat.com>
5550
5551 * sysdeps/generic/ldsodefs.h (rtld_global): Reorder some elements
5552 to fill in holes
5553 (rtld_global_ro): Likewise.
5554
55552007-06-18 Jakub Jelinek <jakub@redhat.com>
5556
5557 * elf/dl-addr.c (_dl_addr): Skip PT_LOAD checking if l_contiguous.
5558 Move PT_LOAD checking to...
5559 (_dl_addr_inside_object): ... here, new function.
5560 * elf/dl-sym.c (do_sym): If not l_contiguous,
5561 call _dl_addr_inside_object.
5562 * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise.
5563 * dlfcn/dlinfo.c (dlinfo_doit): Likewise.
5564 * elf/dl-open.c (dl_open_worker): Likewise.
5565 (_dl_addr_inside_object): New function if IS_IN_rtld.
5566 * elf/dl-load.c (_dl_map_object_from_fd): Set l_contiguous if no
5567 holes are present or are PROT_NONE protected.
5568 * include/link.h (struct link_map): Add l_contiguous field.
5569 * sysdeps/generic/ldsodefs.h (_dl_addr_inside_object): New prototype.
5570
ae1ad3ae
UD
55712007-06-18 Jakub Jelinek <jakub@redhat.com>
5572 Tomas Janousek <tjanouse@redhat.com>
5573 Ulrich Drepper <drepper@redhat.com>
5574
5575 [BZ #4647]
5576 * resolv/res_send.c (send_dg): Remove socket_pf. Use ipv6_unavail
5577 member in __res_state, only convaddr4to6 if nssocks[ns] is a PF_INET6
5578 socket.
5579 * resolv/resolv.h (__res_state): Add ipv6_unavail member. Make
5580 unused member a bitmap.
5581 * resolv/res_init.c (__res_vinit): Reset ipv6_unavail if IPv6
5582 servers are configured.
5583
3abee0b7
UD
55842007-06-18 Jakub Jelinek <jakub@redhat.com>
5585
5586 * elf/rtld.c (dl_main): Don't call init_tls more than once.
5587
89074592
UD
55882007-06-17 Andreas Schwab <schwab@suse.de>
5589
5590 * sysdeps/generic/initfini.c: Tell gcc about the nonstandard sections.
5591
b26e274d
AJ
55922007-06-16 Andreas Jaeger <aj@suse.de>
5593
5594 [BZ #4125]
5595 * sysdeps/unix/sysv/linux/sys/ptrace.h
5596 (PTRACE_O_TRACESYSGOOD, PTRACE_O_TRACEFORK,
5597 PTRACE_O_TRACEVFORK, PTRACE_O_TRACECLONE, PTRACE_O_TRACEEXEC,
89074592 5598 PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT, PTRACE_O_MASK,
b26e274d
AJ
5599 PTRACE_EVENT_FORK, PTRACE_EVENT_VFORK, PTRACE_EVENT_CLONE,
5600 PTRACE_EVENT_EXEC, PTRACE_EVENT_VFORK_DONE, PTRACE_EVENT_EXIT):
5601 Define.
5602 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
5603 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
5604 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
5605 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
5606
e0d4a4e5
UD
56072007-06-16 Ulrich Drepper <drepper@redhat.com>
5608
5609 [BZ #4599]
5610 * sysdeps/unix/sysv/linux/check_pf.c (make_request): When
5611 determining whether there are IPv4/IPv6 addresses, ignore loopback
5612 addresses.
5613
ae8e81f5
JJ
56142007-06-14 Uros Bizjak <ubizjak@gmail.com>
5615
5616 * soft-fp/soft-fp.h (CMPtype): Define to "int" if undefined.
5617 * soft-fp/eqdf2.c (__eqdf2): Use CMPtype instead of int
5618 as the return type. Change type of "r" variable to CMPtype.
5619 * soft-fp/eqsf2.c (__eqsf2): Likewise.
5620 * soft-fp/eqtf2.c (__eqtf2): Likewise.
5621 * soft-fp/gedf2.c (__gedf2): Likewise.
5622 * soft-fp/gesf2.c (__gesf2): Likewise.
5623 * soft-fp/getf2.c (__getf2): Likewise.
5624 * soft-fp/ledf2.c (__ledf2): Likewise.
5625 * soft-fp/lesf2.c (__lesf2): Likewise.
5626 * soft-fp/letf2.c (__letf2): Likewise.
5627 * soft-fp/unorddf2 (__unorddf2): Likewise.
5628 * soft-fp/unordsf2 (__unordsf2): Likewise.
5629 * soft-fp/unordtf2 (__unordtf2): Likewise.
5630
90cd2413
UD
56312007-06-09 Ulrich Drepper <drepper@redhat.com>
5632
5633 * elf/do-lookup.h (do_lookup_x): Read r_nlist before r_list and
5634 make sure gcc doesn't mess around with this.
5635
3c457089
UD
56362007-06-08 Ulrich Drepper <drepper@redhat.com>
5637
5638 * elf/dl-lookup.c (_dl_lookup_symbol_x): Remove use of r_nlist.
5639
e8b6b64d
UD
56402007-06-08 Jakub Jelinek <jakub@redhat.com>
5641
5642 * elf/dl-close.c (_dl_close_worker): Remove all to be removed
5643 libraries from the global scope at once and call THREAD_GSCOPE_WAIT
5644 at most once per _dl_close_worker.
5645
36dffb22
UD
56462007-06-08 Ulrich Drepper <drepper@redhat.com>
5647
755db8c5
UD
5648 * sysdeps/unix/sysv/linux/bits/sched.h: Make second parameter of
5649 __sched_cpucount as const.
5650 * posix/sched_cpucount.c: Adjust.
5651
36dffb22
UD
5652 * posix/sched_cpucount.c (__sched_cpucount): Allow using special
5653 instruction for counting bits.
5654 * sysdeps/x86_64/sched_cpucount.c: New file.
5655
26f56c1c
UD
56562007-06-07 Ulrich Drepper <drepper@redhat.com>
5657
5658 * configure.in: Avoid variable named BASH.
e967d385 5659 * config.make.in: Likewise.
26f56c1c 5660 Patch in part by Mike Frysinger.
835abc5c 5661
26f56c1c 56622007-06-06 Jakub Jelinek <jakub@redhat.com>
47779a7d
JJ
5663
5664 [BZ #4586]
835abc5c
UD
5665 * sysdeps/i386/ldbl2mpn.c (__mpn_extract_long_double): Treat
5666 pseudo-zeros as zero.
5667 * sysdeps/x86_64/ldbl2mpn.c: New file.
5668 * sysdeps/ia64/ldbl2mpn.c: New file.
5669
7e3706ea
UD
56702007-06-04 Jakub Jelinek <jakub@redhat.com>
5671
5672 * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (nextafterl): Remove
5673 unused ily variable. Fix nextafterl on +-__LDBL_MAX__ and +-Inf.
5674 Remove unreachable code at the end.
5675
56762007-06-01 Steven Munroe <sjmunroe@us.ibm.com>
5677
5678 * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Correct description of
5679 ldbl-128ibm in comment.
5680 (fpclassifyl): Correct classification of denormals.
5681 * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (nextafterl): Correct
5682 return value for MIN denormal. Rewrite using long double math too
5683 correctly handle denormals and canonicalize the results.
5684
56852007-06-05 Jakub Jelinek <jakub@redhat.com>
5686
5687 * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c
5688 (__mpn_construct_long_double): Fix conversion where result ought
5689 to be smaller than __LDBL_MIN__, or the low double should be
5690 denormal. Fix decision where to negate low double - honor round
5691 to even rules.
5692 * stdio-common/tst-sprintf2.c: Include string.h.
5693 (COMPARE_LDBL): Define.
5694 (TEST): Also test whether a string hexadecimal float representation
5695 can be parsed back to the number.
5696 (main): Add a couple of further tests.
5697
43b76828
UD
56982007-06-04 Jakub Jelinek <jakub@redhat.com>
5699
5700 * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c
5701 (PRINT_FPHEX_LONG_DOUBLE): Fix printing numbers where lower double
5702 is non-zero, but smaller than 2 * __DBL_MIN__.
5703 * stdio-common/tst-sprintf2.c: New test.
5704 * stdio-common/Makefile (tests): Add tst-sprintf2.
5705
5706 * math/test-misc.c (main): Don't run last batch of tests with
5707 IBM long double format.
5708
04067002
UD
57092007-05-31 Steven Munroe <sjmunroe@us.ibm.com>
5710
5711 * sysdeps/powerpc/powerpc32/970/fpu/Implies: New file.
5712 * sysdeps/powerpc/powerpc32/power5/fpu/Implies: New file.
5713 * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: New file.
5714 * sysdeps/powerpc/powerpc32/power6/fpu/Implies: New file.
5715 * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: New file.
5716 * sysdeps/powerpc/powerpc64/970/fpu/Implies: New file.
5717 * sysdeps/powerpc/powerpc64/power5/fpu/Implies: New file.
5718 * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: New file.
5719 * sysdeps/powerpc/powerpc64/power6/fpu/Implies: New file.
5720 * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: New file.
5721 * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: New file.
5722 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies:
5723 New file.
5724 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies:
5725 New file.
5726 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies:
5727 New file.
5728 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies:
5729 New file.
5730 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies:
5731 New file.
5732 * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: New file.
5733 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies:
5734 New file.
5735 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies:
5736 New file.
5737 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies:
5738 New file.
5739 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies:
5740 New file.
5741 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies:
5742 New file.
5743
57442007-05-31 Steven Munroe <sjmunroe@us.ibm.com>
5745
5746 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S: Move.
5747 * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: To here.
5748 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrintf.S: Move.
5749 * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: To here.
5750 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llround.S: Move.
5751 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: To here.
5752 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llroundf.S: Move.
5753 * sysdeps/powerpc/powerpc32/power4/fpu/s_llroundf.S: To here.
5754
57552007-05-22 Steven Munroe <sjmunroe@us.ibm.com>
5756
5757 * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S
5758 (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
5759 * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S
5760 (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
5761 * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S
5762 (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
5763 * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S
5764 (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
5765
57662007-05-21 Steven Munroe <sjmunroe@us.ibm.com>
5767
5768 * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: New file.
5769 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.c: New file.
5770 * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: New file.
5771 * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: New file.
5772
57732007-03-15 Steven Munroe <sjmunroe@us.ibm.com>
5774
5775 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S
5776 [LONG_DOUBLE_COMPAT]: Add compat_symbol for llrintl@@GLIBC_2_1.
5777
57782006-02-13 Steven Munroe <sjmunroe@us.ibm.com>
5779
5780 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: New File
5781 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: New File
5782 * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: New File
5783 * sysdeps/powerpc/powerpc32/power6/fpu/s_llroundf.S: New File
5784
57852006-10-20 Steven Munroe <sjmunroe@us.ibm.com>
5786
5787 * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: New file.
5788 * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: New file.
5789
57902006-10-03 Steven Munroe <sjmunroe@us.ibm.com>
5791
5792 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llround.S: New file.
5793 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llroundf.S: New file.
5794
5795 * sysdeps/powerpc/powerpc32/powerpc64/fpu/Makefile: Moved.
5796 * sysdeps/powerpc/powerpc32/powerpc64/fpu/mpa.c: Likewise.
5797 * sysdeps/powerpc/powerpc32/power4/fpu/Makefile: To here.
5798 * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
5799
58002006-09-29 Steven Munroe <sjmunroe@us.ibm.com>
5801
5802 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lrint.S: New file.
5803 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: New file.
5804 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: New file.
5805 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: New file.
5806
58072006-09-28 Steven Munroe <sjmunroe@us.ibm.com>
5808
5809 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: New file.
5810 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llroundf.S: New file.
5811 * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: New file.
5812 * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: New file.
5813 * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: New file.
5814 * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: New file.
5815
58162006-08-31 Steven Munroe <sjmunroe@us.ibm.com>
5817
5818 * sysdeps/powerpc/powerpc32/powerpc64/fpu/Makefile: New file.
5819 * sysdeps/powerpc/powerpc32/powerpc64/fpu/mpa.c: New file.
5820 * sysdeps/powerpc/powerpc64/power4/fpu/Makefile: New file.
5821 * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: New file.
5822
58232006-06-15 Steven Munroe <sjmunroe@us.ibm.com>
5824
5825 * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceil.S: New file.
5826 * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceilf.S: New file.
5827 * sysdeps/powerpc/powerpc32/power5+/fpu/s_floor.S: New file.
5828 * sysdeps/powerpc/powerpc32/power5+/fpu/s_floorf.S: New file.
5829 * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S: New file.
5830 * sysdeps/powerpc/powerpc32/power5+/fpu/s_roundf.S: New file.
5831 * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S: New file.
5832 * sysdeps/powerpc/powerpc32/power5+/fpu/s_truncf.S: New file.
5833 * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceil.S: New file.
5834 * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceilf.S: New file.
5835 * sysdeps/powerpc/powerpc64/power5+/fpu/s_floor.S: New file.
5836 * sysdeps/powerpc/powerpc64/power5+/fpu/s_floorf.S: New file.
5837 * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S: New file.
5838 * sysdeps/powerpc/powerpc64/power5+/fpu/s_roundf.S: New file.
5839 * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S: New file.
5840 * sysdeps/powerpc/powerpc64/power5+/fpu/s_truncf.S: New file.
5841
58422006-03-20 Steven Munroe <sjmunroe@us.ibm.com>
5843
5844 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S: New file.
5845 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrintf.S: New file.
5846
58472007-06-01 Steven Munroe <sjmunroe@us.ibm.com>
5848
5849 * sysdeps/powerpc/powerpc32/power6/memset.S: New file.
5850 * sysdeps/powerpc/powerpc64/power6/memset.S: New file.
5851
58522007-05-31 Steven Munroe <sjmunroe@us.ibm.com>
5853
5854 * sysdeps/powerpc/powerpc32/970/Implies: New file.
5855 * sysdeps/powerpc/powerpc32/power5/Implies: New file.
5856 * sysdeps/powerpc/powerpc32/power5+/Implies: New file.
5857 * sysdeps/powerpc/powerpc32/power6/Implies: New file.
5858 * sysdeps/powerpc/powerpc32/power6x/Implies: New file.
5859 * sysdeps/powerpc/powerpc64/970/Implies: New file.
5860 * sysdeps/powerpc/powerpc64/power5/Implies: New file.
5861 * sysdeps/powerpc/powerpc64/power5+/Implies: New file.
5862 * sysdeps/powerpc/powerpc64/power6/Implies: New file.
5863 * sysdeps/powerpc/powerpc64/power6x/Implies: New file.
5864
58652007-05-21 Steven Munroe <sjmunroe@us.ibm.com>
5866
5867 * sysdeps/powerpc/powerpc32/power4/memset.S: New file
5868
58692007-03-13 Steven Munroe <sjmunroe@us.ibm.com>
5870
5871 * sysdeps/powerpc/powerpc64/memcpy.S: Improve aligned loop to minimize
5872 branch miss-predicts. Ensure that cache line crossing does not impact
5873 dispatch grouping.
5874
58752006-12-13 Steven Munroe <sjmunroe@us.ibm.com>
5876
5877 * sysdeps/powerpc/powerpc64/power4/memcopy.h: Replace with include
5878 "../../powerpc32/power4/memcopy.h".
5879 * sysdeps/powerpc/powerpc64/power4/wordcopy.c: Replace with include
5880 "../../powerpc32/power4/wordcopy.c".
5881
58822006-10-03 Steven Munroe <sjmunroe@us.ibm.com>
5883
5884 * sysdeps/powerpc/powerpc32/powerpc64/Makefile: Moved.
5885 * sysdeps/powerpc/powerpc32/powerpc64/memcopy.h: Likewise.
5886 * sysdeps/powerpc/powerpc32/powerpc64/wordcopy.c: Likewise.
5887 * sysdeps/powerpc/powerpc32/power4/Makefile: To here.
5888 * sysdeps/powerpc/powerpc32/power4/memcopy.h: Likewise.
5889 * sysdeps/powerpc/powerpc32/power4/wordcopy.c: Likewise.
5890
58912006-09-10 Steven Munroe <sjmunroe@us.ibm.com>
5892
5893 * sysdeps/powerpc/powerpc32/power6/memcpy.S: New file.
5894
58952006-08-31 Steven Munroe <sjmunroe@us.ibm.com>
5896
5897 * sysdeps/powerpc/powerpc32/power6/wordcopy.c: New file.
5898 * sysdeps/powerpc/powerpc32/powerpc64/Makefile: New file.
5899 * sysdeps/powerpc/powerpc32/powerpc64/memcopy.h: New file.
5900 * sysdeps/powerpc/powerpc32/powerpc64/wordcopy.c: New file.
5901 * sysdeps/powerpc/powerpc64/power4/Makefile: New file.
5902 * sysdeps/powerpc/powerpc64/power4/memcopy.h: New file.
5903 * sysdeps/powerpc/powerpc64/power4/wordcopy.c: New file.
5904 * sysdeps/powerpc/powerpc64/power6/wordcopy.c: New file.
5905
59062006-07-06 Steven Munroe <sjmunroe@us.ibm.com>
5907
5908 * sysdeps/powerpc/powerpc64/power6/memcpy.S: New file.
5909
59102006-03-20 Steven Munroe <sjmunroe@us.ibm.com>
5911
5912 * sysdeps/powerpc/powerpc32/power4/memcmp.S: New file.
5913 * sysdeps/powerpc/powerpc32/power4/memcpy.S: New file.
5914 * sysdeps/powerpc/powerpc32/power4/memset.S: New file.
5915 * sysdeps/powerpc/powerpc32/power4/strncmp.S: New file.
5916 * sysdeps/powerpc/powerpc64/power4/memcmp.S: New file.
5917 * sysdeps/powerpc/powerpc64/power4/memcpy.S: New file.
5918 * sysdeps/powerpc/powerpc64/power4/strncmp.S: New file.
5919
5b55e1d3
RM
59202007-05-29 Roland McGrath <roland@redhat.com>
5921
5922 * po/Makefile (po-sed-cmd): New variable.
5923 (libc.pot.files): Move sed command text in there, avoid \ inside ''.
5924
5da4373c
UD
59252007-05-29 Ulrich Drepper <drepper@redhat.com>
5926
4b5e7304
UD
5927 * crypt/md5-crypt.c: Fix comment.
5928
5da4373c
UD
5929 * nscd/nscd_helper.c (get_mapping): Handle short replies instead
5930 of crashing. When this is the case or if the reply is malformed,
5931 don't try to close the new file descriptor since it does not
5932 exist.
5933 Patch in part by Guillaume Chazarain <guichaz@yahoo.fr>.
5934
40f57573
UD
59352007-05-28 Jakub Jelinek <jakub@redhat.com>
5936
5937 * sysdeps/unix/sysv/linux/futimes.c (miss_utimensat): Don't define
5938 if __NR_utimensat is not defined.
5939
6df7ffad
UD
59402007-05-26 Ulrich Drepper <drepper@redhat.com>
5941
5942 * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Include <sysdep.h>.
5943
47ad95ab
UD
59442007-05-25 Jakub Jelinek <jakub@redhat.com>
5945
5946 * io/bits/fcntl2.h (__open_2): Add nonnull attribute.
5947 (open): Fix comment typos. Don't call __open_2 if flags
5948 is a compile time constant without O_CREAT.
5949 (__open64_2): Add nonnull attribute.
5950 (open64): Fix comment typos. Don't call __open64_2 if flags
5951 is a compile time constant without O_CREAT.
5952 (__openat_2): Add nonnull attribute, fix nonnull attribute
5953 on redirect.
5954 (openat): Fix comment typos. Don't call __openat_2 if flags
5955 is a compile time constant without O_CREAT.
5956 (__openat64_2): Add nonnull attribute, fix nonnull attribute
5957 on redirect.
5958 (openat64): Fix comment typos. Don't call __openat64_2 if flags
5959 is a compile time constant without O_CREAT.
5960
ddfd0535
UD
59612007-05-24 Ulrich Drepper <drepper@redhat.com>
5962
5963 * Makerules (sysd-rules): Define PTW for ptw-* files.
5964 * Versions: Define GLIBC_2.7 for libc.
5965 * include/stdio.h: Declare __fortify_fail.
5966 * debug/fortify_fail.c: New file.
5967 * debug/Makefile (routines): Add fortify_fail.
5968 * debug/chk_fail.c: Use __fortify_fail.
5969 * debug/stack_chk_fail.c: Likewise.
5970 * io/Versions: Export __open_2, __open64_2, __openat_2, and
5971 __openat64_2 for GLIBC_2.7.
5972 * io/fcntl.h: When compiling with fortification, include bits/fcntl2.h.
5973 * io/open.c: Define *_2 variant of function which checks for O_CREAT
5974 and fails if necessary.
5975 * io/open64.c: Likewise.
5976 * io/openat.c: Likewise.
5977 * io/openat64.c: Likewise.
5978 * sysdeps/unix/sysv/linux/open64.c: Likewise.
5979 * sysdeps/unix/sysv/linux/openat.c: Likewise.
5980 * sysdeps/unix/sysv/linux/openat64.c: Likewise.
5981 * io/bits/fcntl2.h: New file.
5982 * include/fcntl.h: Declare __open_2, __open64_2, __openat_2, and
5983 __openat64_2.
5984 * include/bits/fcntl2.h: New file.
5985 * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
5986 Add open_2.
5987 * sysdeps/unix/sysv/linux/open_2.c: New file.
5988
bfe6f5fa
UD
59892007-05-21 Ulrich Drepper <drepper@redhat.com>
5990
6d59823c
UD
5991 * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Pass correct value
5992 as second parameter to handle_intel.
5993
e2b1e343
UD
5994 * nscd/aicache.c (addhstaiX): If reported TTL is zero don't cache
5995 the entry.
5996
bfe6f5fa
UD
5997 * sysdeps/unix/sysv/linux/x86_64/sysconf.c: Move cache information
5998 handling to ...
5999 * sysdeps/x86_64/cacheinfo.c: ... here. New file.
6000 * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
6001 cacheinfo.
6002 * sysdeps/x86_64/memcpy.S: Complete rewrite.
6003 * sysdeps/x86_64/mempcpy.S: Adjust appropriately.
6004 Patch by Evandro Menezes <evandro.menezes@amd.com>.
6005
6006 * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: New file.
6007
1f4843fb
UD
60082007-05-21 Jakub Jelinek <jakub@redhat.com>
6009
2c2c003a
UD
6010 [BZ #4525]
6011 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add epoll_pwait.
6012 * sysdeps/unix/sysv/linux/epoll_pwait.c: New file.
6013 * sysdeps/unix/sysv/linux/syscalls.list (epoll_pwait): Remove.
6014
6015 * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h (epoll_pwait): Declare.
6016
af269dd9
UD
6017 [BZ #4514]
6018 * stdio-common/vfprintf.c (vfprintf): Don't shadow workstart variable,
6019 reinitialize workend at the start of each do_positional format spec
6020 loop, free workstart before do_positional loops.
6021 (printf_unknown): Fix size of work_buffer.
6022 * stdio-common/tst-sprintf.c (main): Add 3 new testcases.
6023
1f4843fb
UD
6024 * malloc/hooks.c (MALLOC_STATE_VERSION): Bump.
6025 (public_sET_STATe): If ms->version < 3, put all chunks into
6026 unsorted chunks and clear {fd,bk}_nextsize fields of largebin
6027 chunks.
6028
6029 * malloc/malloc.c [MALLOC_DEBUG]: Revert 2007-05-13 changes.
6030 * malloc/hooks.c: Likewise.
6031 * malloc/arena.c: Likewise.
6032 * malloc/malloc.c (do_check_malloc_state): Don't assert
6033 n_mmaps is not greater than n_mmaps_max. This removes the need
6034 for the previous change.
6035
6036 * malloc/Makefile (CFLAGS-malloc.c): Revert accidental
6037 2007-05-07 commit.
6038
12e8bbff
UD
60392007-05-19 Ulrich Drepper <drepper@redhat.com>
6040
6041 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PRIVATE_FUTEX):
6042 Define for kernel >= 2.6.22.
69e5cbf5 6043
12e8bbff 60442007-05-18 Ulrich Drepper <drepper@redhat.com>
6d59823c 6045
df94b641
UD
6046 * elf/dl-close.c (_dl_close_worker): When removing object from
6047 global scope, wait for all lookups to finish afterwards.
6048 * elf/dl-open.c (add_to_global): When global scope array must
6049 grow, allocate a new one and free old array only after all
6050 lookups finish.
6051 * elf/dl-runtime.c (_dl_fixup): Protect using global scope.
6052 (_dl_lookup_symbol_x): Likewise.
6053 * elf/dl-support.c: Define _dl_wait_lookup_done.
6054 * sysdeps/generic/ldsodefs.h (struct rtld_global): Add
6055 _dl_wait_lookup_done.
6056
2acd01ac
UD
6057 * malloc/malloc.c (do_check_chunk): Correct check for mmaped block
6058 not overlapping with arena.
6059
129abdd3
UD
6060 * malloc/mcheck.c (reallochook): If size==0, free the block.
6061
eb4b098a
UD
6062 * rt/tst-shm.c: Use fstat64 instead of fstat.
6063
69e5cbf5
UD
6064 * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Fix case where
6065 __NR_sync_file_range is not defined.
6066
a2ccc760
UD
60672007-05-17 Ulrich Drepper <drepper@redhat.com>
6068
bec51a30
UD
6069 Dummy files to prevent stub versions from being used.
6070 * sysdeps/x86_64/fpu/k_cosl.c: New file.
6071 * sysdeps/x86_64/fpu/k_rem_pio2l.c: New file.
6072 * sysdeps/x86_64/fpu/k_sinl.c: New file.
6073 * sysdeps/x86_64/fpu/k_tanl.c: New file.
6074
a2ccc760
UD
6075 * version.h (VERSION): Set to 2.6.90.
6076
1a31b586
UD
60772007-05-14 Ulrich Drepper <drepper@redhat.com>
6078
a2ccc760
UD
6079 * version.h (VERSION): Define to 2.6.
6080 * include/features.h (__GLIBC_MINOR__): Define to 6.
2c1d6172 6081
1d47e92f
UD
6082 * malloc/malloc.c: Use all small bin slots on 64-bit archs.
6083
6084 * malloc/malloc.c (largebin_index): Really have 32 buckets with 64
6085 sizes.
366ad8fd 6086
1a31b586 60872007-05-13 Ulrich Drepper <drepper@redhat.com>
87e66335 6088
366ad8fd
UD
6089 * malloc/malloc.c [MALLOC_DEBUG]: Keep track of current maximum
6090 number of mmaps. n_mmaps_max is the target.
6091 * malloc/hooks.c: Likewise.
6092 * malloc/arena.c: Likewise.
6093
11ed6713
AJ
60942007-05-12 Andreas Jaeger <aj@suse.de>
6095
6096 * sysdeps/unix/sysv/linux/tst-getcpu.c: Include <unistd.h> for
6097 getpid.
6098
d65ef3dd
UD
60992007-05-11 Ulrich Drepper <drepper@redhat.com>
6100
2e81d449
UD
6101 * elf/dl-close.c (_dl_close_worker): Help gcc to optimize by
6102 adding new variables.
6103
d65ef3dd 6104 * elf/dl-open.c (add_to_global): Introduce variable ns to help gcc
2e81d449 6105 optimize. Completely extend global scope array before making the
d65ef3dd
UD
6106 new entries visible.
6107
c27d2078
UD
61082007-05-10 Ulrich Drepper <drepper@redhat.com>
6109
341c566f
UD
6110 * sysdeps/unix/sysv/linux/tst-getcpu.c: New file.
6111 * sysdeps/unix/sysv/linux/Makefile [subdir=posix] (tests): Add
6112 tst-getcpu.
6113
6114 * include/link.h: Move l_version and l_nversion members around to
6115 fill gaps.
6116
a53fa282
UD
6117 * scripts/check-c++-types.sh: Don't use -fnu89-inline option.
6118
3771196d
UD
6119 * sysdeps/unix/sysv/linux/sched_setaffinity.c
6120 (__sched_setaffinity_new): If syscall was successful and
6121 RESET_VGETCPU_CACHE is defined, use it before returning.
6122 * sysdeps/unix/sysv/linux/x86_64/sched_setaffinity.c: New file.
6123
f9bf102d
UD
6124 * io/sys/stat.h: Make sure struct timespec is defined for
6125 __USE_ATFILE.
6126
c27d2078
UD
6127 * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Define UTIME_NOW and
6128 UTIME_OMIT.
6129 * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
6130 * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
6131 * sysdeps/unix/sysv/linux/alpha/bits/stat.h: Likewise.
6132 * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
6133 * sysdeps/unix/sysv/linux/bits/stat.h: Likewise.
6134 * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
6135 * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_UTIMENSAT.
6136 * io/sys/stat.h: Declare utimensat, futimens.
6137 * io/utimensat.c: New file.
6138 * io/futimens.c: New file.
6139 * sysdeps/unix/sysv/linux/utimensat.c: New file.
6140 * sysdeps/unix/sysv/linux/futimens.c: New file.
6141 * io/Makefile (routines): Add utimensat, futimens.
6142 * io/Versions: Add utimensat, futimens to GLIBC_2.6.
6143 * sysdeps/unix/sysv/linux/lutimes.c: New file.
6144 * sysdeps/unix/sysv/linux/futimes.c: Use utimensat syscall if
6145 available.
6146
6147 * include/sys/cdefs.h: Redefine __nonnull so that test for
6148 incorrect parameters in the libc code itself are not omitted.
6149
cf6b0980
JJ
61502007-05-09 Jakub Jelinek <jakub@redhat.com>
6151
c1dfd7e6
JJ
6152 * sysdeps/ia64/fpu/fraiseexcpt.c (feraiseexcept): Don't raise overflow
6153 exception in addition to inexact when asked to raise only FE_INEXACT.
6154
cf6b0980
JJ
6155 [BZ #3427]
6156 * sysdeps/s390/fpu/feholdexcpt.c (feholdexcept): Don't clear exceptions
6157 in *envp.
6158
df7b6fea
UD
61592007-05-07 Ulrich Drepper <drepper@redhat.com>
6160
6161 [BZ #4403]
6162 * string/strfry.c (strfry): Make result more random.
6163
37f40235
RH
61642007-05-07 Richard Henderson <rth@redhat.com>
6165
6166 * sysdeps/alpha/fpu/bits/mathinline.h (__isnanl): Don't define
6167 if __NO_LONG_DOUBLE_MATH.
6168 * sysdeps/unix/sysv/linux/alpha/ioperm.c: If BWX insns not
df7b6fea 6169 available in the compiler, add .arch directive to the assembly.
37f40235
RH
6170
61712007-05-07 Jakub Jelinek <jakub@redhat.com>
6172
6173 * sysdeps/alpha/fpu/s_nearbyint.c (nearbyintl): Fix version on
6174 compat_symbol to GLIBC_2_1.
6175 * sysdeps/alpha/fpu/s_fmin.S (fminl): Likewise.
6176 * sysdeps/alpha/fpu/s_trunc.c (truncl): Likewise.
6177 * sysdeps/alpha/fpu/s_fmax.S (fmaxl): Likewise.
6178 * sysdeps/alpha/fpu/s_lrint.c (lrintl, llrintl): Likewise.
6179 * sysdeps/alpha/fpu/s_lround.c (lroundl, llroundl): Likewise.
6180 * sysdeps/alpha/fpu/s_round.c (roundl): Likewise.
6181 * sysdeps/alpha/fpu/s_isnan.c (isnanl): Provide compat_symbol in
6182 libc, not libm.
6183 (__isnanl): New compat_symbol.
6184
c7fd3362
JJ
61852007-05-07 Ulrich Drepper <drepper@redhat.com>
6186 Jakub Jelinek <jakub@redhat.com>
6187
6188 * malloc/arena.c (heap_info): Add mprotect_size field, adjust pad.
6189 (new_heap): Initialize mprotect_size.
6190 (grow_heap): When growing, only mprotect from mprotect_size till
6191 new_size if mprotect_size is smaller. When shrinking, use PROT_NONE
6192 MMAP for __libc_enable_secure only, otherwise use MADV_DONTNEED.
6193
4a59e9ad 61942007-04-30 Steven Munroe <sjmunroe@us.ibm.com>
37f40235 6195 Peter Bergner <bergner@us.ibm.com>
4a59e9ad
UD
6196
6197 * sysdeps/powerpc/bits/fenv.h: Declare __fe_mask_env extern.
6198 Define FE_NOMASK_ENV as FE_EANBLED_ENV. Define FE_MASK_ENV.
6199 * sysdeps/powerpc/fpu/Makefile: Add fe_mask to libm-support.
6200 * sysdeps/powerpc/fpu/fe_mask.c: New file.
6201 * sysdeps/powerpc/fpu/fe_nomask.c: Correct comment.
6202 * sysdeps/powerpc/fpu/fedisblxcpt.c (fedisableexcept):
6203 Call __fe_mask_env() if all FP exceptions disabled.
6204 * sysdeps/powerpc/fpu/feholdexcpt.c (feholdexcept): Copy high 32-bits
6205 from old FPSCR to new fenv to propagate DFP rounding modes.
6206 Call __fe_mask_env() if FP exceptions previously enabled.
6207 * sysdeps/powerpc/fpu/fesetenv.c (fesetenv): Change mask to merge
6208 exceptions from env. Use __fe_nomask_env() or __fe_mask_env() when
6209 transitioning from all exceptions disabled to any exception enabled
6210 or visa versa.
6211 * sysdeps/powerpc/fpu/feupdateenv.c (__feupdateenv): Change mask to
6212 merge exceptions from env. Call __fe_nomask_env or __fe_mask_env
6213 when transitioning from all exceptions disabled to any exception
6214 enabled or visa versa.
6215 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fe_nomask.c: Moved to...
6216 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c: ...here.
6217 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c: Moved to...
6218 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c: ...here.
6219 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c: New file.
6220 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c: New file.
6221
aa75f64c
UD
62222007-05-06 Ulrich Drepper <drepper@redhat.com>
6223
15eca720 6224 [BZ #4465]
aa75f64c
UD
6225 * posix/unistd.h: Remove __THROW from fdatasync.
6226
711deb05
UD
62272007-05-06 Mike Frysinger <vapier@gentoo.org>
6228
15eca720 6229 [BZ #4465]
711deb05
UD
6230 * sysdeps/unix/sysv/linux/syscalls.list (fdatasync): Add "C" to args.
6231
ffecd39b
UD
62322007-05-06 Ulrich Drepper <drepper@redhat.com>
6233
49a8eb75
UD
6234 * stdio-common/vfprintf.c (process_string_arg): Optimize
6235 ridiculous precision in wide char code printing multi-byte string.
6236 Reported by Jim Meyering <jim@meyering.net>.
6237
ffecd39b
UD
6238 [BZ #4131]
6239 * elf/dl-addr.c (_dl_addr): Compare address with actual segment
6240 boundaries to work around systems with overlapping binary loading.
6241 Based on a patch by Suzuki <suzuki@in.ibm.com>.
6242
b16dba4c
UD
62432007-05-04 Ulrich Drepper <drepper@redhat.com>
6244
30b323ab
UD
6245 * stdio-common/vfprintf.c (process_string_arg): Adjust call to
6246 __mbsnrtowcs after last change.
6247
b16dba4c
UD
6248 * locale/programs/linereader.c (get_symname): Fix adding final NUL.
6249 (get_ident): Likewise.
6250
37002cbc
JJ
62512007-05-03 Jakub Jelinek <jakub@redhat.com>
6252
6253 * soft-fp/op-common.h (FP_TRUNC): Replace raising of FP_EX_INEXACT
6254 with setting the sticky bit.
6255 * math/test-misc.c (main): Add more truncation tests.
6256
62572007-04-14 Uros Bizjak <ubizjak@gmail.com>
6258
6259 * soft-fp/floatunsidf.c (__floatunsidf): Use DFtype instead of
6260 double in the function declaration.
6261 * soft-fp/floatundidf.c (__floatundidf): Use DFtype instead of
6262 double in the function declaration.
6263 * soft-fp/floatunsisf.c (__floatunsisf): Use SFtype instead of
6264 float in the function declaration.
6265 * soft-fp/floatunsisf.c (__floatunsisf): Use SFtype instead of
6266 float in the function declaration.
6267
6268 * soft-fp/extended.h (FP_UNPACK_RAW_E): Do not increase X##_e for
6269 denormal operands. Do not generate FP_EX_DENORM exception.
6270 (FP_UNPACK_RAW_EP): Ditto.
6271 (FP_UNPACK_SEMIRAW_E): Use FP_UNPACK_RAW_E instead of
6272 undefined _FP_UNPACK_RAW_E.
6273 (FP_UNPACK_SEMIRAW_EP): Use FP_UNPACK_RAW_EP instead of
6274 undefined _FP_UNPACK_RAW_EP.
6275 (FP_PACK_SEMIRAW_E): Use FP_PACK_RAW_E instead of
6276 undefined _FP_PACK_RAW_E.
6277 (FP_PACK_SEMIRAW_EP): Use FP_PACK_RAW_EP instead of
6278 undefined _FP_PACK_RAW_EP.
6279
d9ac82d0
UD
6280 * soft-fp/op-2.h (_FP_FRAC_COPY_2_2): Define as alias to
6281 _FP_FRAC_COPY_2.
6282 * soft-fp/op-4.h (_FP_FRAC_COPY_2_2): Define as alias to
6283 _FP_FRAC_COPY_4.
37002cbc
JJ
6284
62852007-04-16 Uros Bizjak <ubizjak@gmail.com>
6286 Jakub Jelinek <jakub@redhat.com>
6287
6288 * soft-fp/op-common.h (FP_EXTEND): Do not abort when
6289 _FP_EXPBIAS_##dfs == _FP_EXPBIAS_##sfs. Handle denormals for
6290 this case.
6291 * soft-fp/op-common.h (FP_TRUNC): Ditto.
6292
002f0b0b
JJ
62932007-05-03 Jakub Jelinek <jakub@redhat.com>
6294
6295 * math/test-misc.c (main): Add tests for rounding long double
6296 values close to smallest double denormalized value to double.
6297
62982007-04-30 Joseph Myers <joseph@codesourcery.com>
6299
6300 * soft-fp/op-common.h (FP_TRUNC): Correct off-by-one error in
6301 condition for truncating to 0. Set sticky bit for such
6302 truncation.
6303
57433ede
UD
63042007-05-02 Jakub Jelinek <jakub@redhat.com>
6305
6306 * stdio-common/vfprintf.c (process_string_arg): Use a VLA rather than
6307 fixed length array for ignore.
6308
c01c2455
UD
63092007-04-30 Ulrich Drepper <drepper@redhat.com>
6310
6311 [BZ #4438]
6312 * stdio-common/vfprintf.c (process_string_arg): Don't overflow the
6313 stack for large precisions.
1cb04337
UD
6314 * stdio-common/test-vfprintf.c (main): Add test for large
6315 precision.
c01c2455 6316
37f02b1d
UD
63172007-04-30 Jakub Jelinek <jakub@redhat.com>
6318
b866373d
UD
6319 * stdio-common/printf_fp.c (___printf_fp): Don't print negative sign
6320 for exponent 0.
6321 * stdio-common/tfformat.c (sprint_doubles): Add a new test.
6322
37f02b1d
UD
6323 [BZ #4439]
6324 * resolv/inet_ntop.c (inet_ntop4): Take terminating '\0' into
6325 account in the size check.
6326 * resolv/tst-inet_ntop.c: New test.
6327 * resolv/Makefile (tests): Add tst-inet_ntop.
6328
7ecfbd38
UD
63292007-04-30 Ulrich Drepper <drepper@redhat.com>
6330 Jakub Jelinek <jakub@redhat.com>
6331
6332 [BZ #4349]
6333 * malloc/malloc.c: Keep separate list for first blocks on the bin
6334 lists with a given size. This helps skipping over list elements
6335 we know won't fit in two places.
6336 Inspired by a patch by Tomash Brechko <tomash.brechko@gmail.com>.
6337
e53f0f51
UD
63382007-04-28 Ulrich Drepper <drepper@redhat.com>
6339
6340 [BZ #4102]
6341 * sysdeps/posix/getaddrinfo.c (default_labels): Assign separate
6342 label to Teredo tunnel addresses 2001://32.
6343
109f51f2
UD
63442007-04-27 Ulrich Drepper <drepper@redhat.com>
6345
762422d1
UD
6346 * locale/programs/ld-collate.c (collate_read): Allow order_start
6347 after copy.
6348
61d5a67f
UD
6349 * locale/programs/ld-collate.c (collate_read): Fix printing of
6350 error message.
6351
6352 [BZ #3213]
6353 * locale/C-translit.h.in: Add entry for U2044.
6354
109f51f2
UD
6355 [BZ #4342]
6356 * stdio-common/vfscanf.c (_IO_vfscanf_internal): Allow
6357 hexa-decimal floats without exponent.
6358 * stdio-common/tstscanf.c (main): Adjust Test 8 test for success.
6359
ec08f13d
UD
63602007-04-25 Ulrich Drepper <drepper@redhat.com>
6361
6362 * sysdeps/unix/sysv/linux/bits/sched.h: Declare sched_getcpu.
6363 * sysdeps/unix/sysv/linux/sched_getcpu.c: New file.
6364 * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: New file.
6365 * sysdeps/unix/sysv/linux/Versions: Export sched_getcpu for
6366 GLIBC_2.6.
bce20b9a
UD
6367 * sysdeps/unix/sysv/linux/Makefile [subdir=posix] (sysdep_routines):
6368 Add sched_getcpu.
ec08f13d 6369
41967e1c
JJ
63702007-04-25 Jakub Jelinek <jakub@redhat.com>
6371
6372 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Return -1 instead
6373 of 0 after the out_fail label.
6374
ba508da3
UD
63752007-04-25 Ulrich Drepper <drepper@redhat.com>
6376
6377 [BZ #4406]
109f51f2 6378 * iconv/gconv_charset.h (strip): Allow ':'.
ba508da3
UD
6379 * iconv/iconv_open.c (iconv_open): Adjust comment.
6380
9c8d03d9
JJ
63812007-04-25 Jakub Jelinek <jakub@redhat.com>
6382
6383 * libio/bits/stdio.h (fgetc_unlocked): Add extern inline optimized
6384 version.
6385
2f1687b9
UD
63862007-04-23 Jakub Jelinek <jakub@redhat.com>
6387
6388 [BZ #4381]
6389 * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Ensure sufficient
6390 alignment of buffer and tmp_buffer.
6391 * nis/nss_nis/nis-hosts.c (internal_nis_gethostent_r,
6392 internal_gethostbyname2_r, _nss_nis_gethostbyaddr_r): Ensure sufficient
6393 alignment of buffer.
6394 * resolv/nss_dns/dns-hosts.c (getanswer_r): Likewise. Handle buflen
6395 bigger than INT_MAX.
6396 * resolv/nss_dns/dns-network.c (getanswer_r): Likewise. Add errnop and
6397 h_errnop arguments. Fail if buflen is too small.
6398 (_nss_dns_getnetbyname_r, _nss_dns_getnetbyaddr_r): Adjust callers.
6399
b64a9db8
JJ
64002007-04-23 Jakub Jelinek <jakub@redhat.com>
6401
6402 [BZ #4405]
6403 * iconvdata/gconv-modules (E13B): Add a missing slash to the alias
6404 name. Patch by Aurelien Jarno <aurelien@aurel32.net>.
6405
4d3144c9
RM
64062007-04-22 Roland McGrath <roland@redhat.com>
6407
6408 * elf/elf.h (NT_PRXFPREG): New macro.
6409
767b40bf
AJ
64102007-04-19 Andreas Jaeger <aj@suse.de>
6411
6412 [BZ #3905]
6413 * bits/in.h (IPV6_ROUTER_ALERT, IPV6_MTU_DISCOVER, IPV6_MTU,
6414 IPV6_RECVERR, IPV6_V6ONLY, IPV6_JOIN_ANYCAST, IPV6_LEAVE_ANYCAST):
6415 Added.
6416
2592d1ec
UD
64172007-04-19 Ulrich Drepper <drepper@redhat.com>
6418
6419 * include/sys/mman.h: Mark madvise hidden.
d07d044e 6420 * misc/madvise.c: Add libc_hidden_def.
2592d1ec 6421
7ab174ed
UD
64222007-04-06 Jakub Jelinek <jakub@redhat.com>
6423
6424 * nis/nis_domain_of.c (__nis_domain_of): New function.
6425 * include/rpcsvc/nislib.h (__nis_domain_of): New prototype.
6426 * nis/nis_lookup.c (nis_lookup): Use __nis_domain_of.
6427 * nis/nis_call.c (rec_dirsearch): Likewise.
6428 (first_shoot): Likewise. Remove search_parent_first argument.
6429 (struct nis_server_cache): Rename search_parent_first field
6430 to search_parent.
6431 (nis_server_cache_search, nis_server_cache_add): Rename
6432 search_parent_first argument to search_parent.
6433 (__nisfind_server): Likewise. If search_parent, call
6434 __nis_domain_of.
6435
b17c265f
UD
64362007-04-18 Ulrich Drepper <drepper@redhat.com>
6437
6438 * sysdeps/posix/getaddrinfo.c: Remove commented-out code.
6439
b7674b11
UD
64402007-04-17 Ulrich Drepper <drepper@redhat.com>
6441
6442 [BZ #4368]
6443 * stdlib/stdlib.h: Remove obsolete part of comment for realpath.
6444
faf3ad69
UD
64452007-04-16 Ulrich Drepper <drepper@redhat.com>
6446
6447 [BZ #4364]
6448 * posix/unistd.h (_XOPEN_VERSION): Define appropriately for SUSv3.
6449
c14f245c
UD
64502007-04-15 Jakub Jelinek <jakub@redhat.com>
6451
6452 * locale/programs/locarchive.c (INITIAL_NUM_NAMES,
6453 INITIAL_SIZE_STRINGS, INITIAL_NUM_LOCREC): Update to accomodate
6454 current number of locales in SUPPORTED.
6455 (create_archive): Initialize serial.
6456 (enlarge_archive): Preserve aliases rather than duplicating
6457 their locrecs.
6458
d40e67f5
UD
64592007-04-13 Jakub Jelinek <jakub@redhat.com>
6460
993a5d66
UD
6461 * libio/genops.c (_IO_default_finish): Call _IO_lock_fini
6462 after _IO_un_link, not before it.
6463
d40e67f5
UD
6464 * stdio-common/printf_fp.c (___printf_fp): Fix exponent -4
6465 special case handling when wcp == wstartp + 1. Fix a comment typo.
6466 * stdio-common/tfformat.c (sprint_doubles): Add a new testcase.
6467
0fca3153
UD
64682007-03-30 Jakub Jelinek <jakub@redhat.com>
6469
6470 * libio/libio.h (__underflow, __uflow, __overflow, __wunderflow,
6471 __wuflow, __woverflow, _IO_getc, _IO_putc, _IO_peekc_locked, _IO_padn,
6472 _IO_sgetn, _IO_seekoff, _IO_seekpos, _IO_getwc, _IO_putwc, _IO_wpadn):
6473 Remove __THROW.
6474 * libio/fileops.c (new_do_write, _IO_file_xsgetn_mmap,
6475 _IO_file_xsgetn_maybe_mmap): Likewise.
6476 * libio/oldfileops.c (old_do_write): Likewise.
6477 * libio/libioP.h (_IO_switch_to_get_mode, _IO_switch_to_wget_mode,
6478 _IO_init_marker, _IO_init_wmarker, _IO_default_uflow,
6479 _IO_wdefault_uflow, _IO_default_setbuf, _IO_default_seekpos,
6480 _IO_do_write, _IO_new_do_write, _IO_old_do_write, _IO_wdo_write,
6481 _IO_flush_all_lockp, _IO_flush_all, _IO_cleanup,
6482 _IO_flush_all_linebuffered, _IO_new_fgetpos, _IO_old_fgetpos,
6483 _IO_new_fsetpos, _IO_old_fsetpos, _IO_new_fgetpos64,
6484 _IO_old_fgetpos64, _IO_new_fsetpos64, _IO_old_fsetpos64,
6485 _IO_file_setbuf, _IO_file_seekoff, _IO_file_xsputn, _IO_file_xsgetn,
6486 _IO_file_underflow, _IO_file_underflow_mmap,
6487 _IO_file_underflow_maybe_mmap, _IO_file_overflow, _IO_file_attach,
6488 _IO_file_open, _IO_file_fopen, _IO_file_write, _IO_file_read,
6489 _IO_file_sync, _IO_file_close_it, _IO_file_finish,
6490 _IO_new_file_attach, _IO_new_file_close_it, _IO_new_file_finish,
6491 _IO_new_file_fopen, _IO_new_file_setbuf, _IO_file_setbuf_mmap,
6492 _IO_new_file_sync, _IO_new_file_underflow, _IO_new_file_overflow,
6493 _IO_new_file_seekoff, _IO_new_file_write, _IO_new_file_xsputn,
6494 _IO_old_file_setbuf, _IO_old_file_seekoff, _IO_old_file_xsputn,
6495 _IO_old_file_underflow, _IO_old_file_overflow, _IO_old_file_attach,
6496 _IO_old_file_fopen, _IO_old_file_write, _IO_old_file_sync,
6497 _IO_old_file_close_it, _IO_old_file_finish, _IO_wfile_xsputn,
6498 _IO_wfile_setbuf, _IO_wfile_sync, _IO_wfile_underflow,
6499 _IO_wfile_overflow, _IO_wfile_seekoff, _IO_old_proc_open,
6500 _IO_old_proc_close, _IO_getdelim, _IO_flush_all_internal,
6501 _IO_adjust_column_internal, _IO_default_uflow_internal,
6502 _IO_default_xsgetn_internal, _IO_wdefault_xsputn_internal,
6503 _IO_wdefault_xsgetn_internal, _IO_wdefault_uflow_internal,
6504 _IO_file_setbuf_internal, _IO_file_seekoff_internal,
6505 _IO_file_xsputn_internal, _IO_file_xsgetn_internal,
6506 _IO_file_close_it_internal, _IO_file_underflow_internal,
6507 _IO_file_overflow_internal, _IO_file_attach_internal,
6508 _IO_file_fopen_internal, _IO_file_sync_internal,
6509 _IO_file_finish_internal, _IO_wfile_xsputn_internal,
6510 _IO_wfile_seekoff_internal, _IO_wfile_sync_internal,
6511 _IO_switch_to_wget_mode_internal, _IO_padn_internal,
6512 _IO_switch_to_get_mode_internal, _IO_seekoff_unlocked,
6513 _IO_seekpos_unlocked): Likewise.
6514 (_IO_strtod, _IO_dtoa, _IO_outfloat, _IO_read, _IO_write,
6515 _IO_lseek, _IO_close, _IO_fstat): Remove unused prototypes.
6516
07358add
JJ
65172007-04-16 Jakub Jelinek <jakub@redhat.com>
6518
6519 * locale/programs/locarchive.c (show_archive_content): Fix sizeof
6520 argument in xmalloc size computation.
6521
7a82b74f
UD
65222007-04-01 Jakub Jelinek <jakub@redhat.com>
6523
6524 * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl): Use
6525 math_opt_barrier and math_force_eval macros.
6526
3e336a87
UD
65272007-03-27 Jakub Jelinek <jakub@redhat.com>
6528
6529 [BZ #3306]
6530 * math/math_private.h (math_opt_barrier, math_force_eval): Define.
6531 * sysdeps/i386/fpu/math_private.h: New file.
6532 * sysdeps/x86_64/fpu/math_private.h: New file.
6533 * math/s_nexttowardf.c (__nexttowardf): Use math_opt_barrier and
6534 math_force_eval macros. Use "+m" constraint on asm rather than
6535 "=m" and "m".
6536 * math/s_nextafter.c (__nextafter): Likewise.
6537 * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c (__nexttoward):
6538 Likewise.
6539 * sysdeps/ieee754/flt-32/s_nextafterf.c (__nextafterf): Likewise.
6540 * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward): Likewise.
6541 * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
6542 * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Use
6543 math_opt_barrier and math_force_eval macros.
6544 * sysdeps/ieee754/ldbl-128/s_nextafterl.c (__nextafterl): Likewise.
6545 * sysdeps/ieee754/ldbl-96/s_nextafterl.c (__nextafterl): Likewise.
6546 * sysdeps/i386/fpu/s_nexttoward.c: Include float.h.
6547 (__nexttoward): Use math_opt_barrier and
6548 math_force_eval macros. Use "+m" constraint on asm rather than
6549 "=m" and "m". Only use asm to force double result if
6550 FLT_EVAL_METHOD is 2.
6551 * sysdeps/i386/fpu/s_nexttowardf.c: Include float.h.
6552 (__nexttowardf): Use math_opt_barrier and
6553 math_force_eval macros. Use "+m" constraint on asm rather than
6554 "=m" and "m". Only use asm to force double result if
6555 FLT_EVAL_METHOD is not 0.
6556 * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Include float.h.
6557 (__nexttowardf): Use math_opt_barrier and
6558 math_force_eval macros. If FLT_EVAL_METHOD is not 0, force
6559 x to float using asm.
6560 * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c: Include float.h.
6561 (__nldbl_nexttowardf): Use math_opt_barrier and
6562 math_force_eval macros. If FLT_EVAL_METHOD is not 0, force
6563 x to float using asm.
6564 * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Include float.h.
6565 (__nexttowardf): Use math_opt_barrier and math_force_eval
6566 macros. If FLT_EVAL_METHOD is not 0, force x to float using asm.
6567 * math/bug-nextafter.c (zero, inf): New variables.
6568 (main): Add new tests.
6569 * math/bug-nexttoward.c (zero, inf): New variables.
6570 (main): Add new tests.
6571
a8c79c40
UD
65722007-03-22 Jakub Jelinek <jakub@redhat.com>
6573
6574 [BZ #3427]
6575 * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Clear all
6576 exceptions both in SW and MXCSR.
6577 * sysdeps/x86_64/fpu/feupdateenv.c: New file.
6578 * sysdeps/x86_64/fpu/feenablxcpt.c (feenableexcept): Remove dead code.
6579 * sysdeps/x86_64/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
6580 * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions
6581 in MXCSR if SSE is available.
6582 * sysdeps/i386/fpu/feupdateenv.c: Include unistd.h, dl-procinfo.h
6583 and ldsodefs.h.
6584 (__feupdateenv): Query exceptions also from MXCSR if SSE is available.
6585 Fix comment typo.
6586 * sysdeps/ia64/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions.
6587 Return 0 rather than 1.
6588 * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Fix comment typo.
6589 Remove incorrect part of a comment. Fix argument to feraiseexcept.
6590 * math/test-fenv.c (feholdexcept_tests): New function.
6591 (main): Call it.
6592
65932007-01-05 Richard B. Kreckel <kreckel@ginac.de>
6594
6595 [BZ #3427]
6596 * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions
6597 in SW.
6598
30a3aa75
JJ
65992007-04-13 Jakub Jelinek <jakub@redhat.com>
6600
6601 [BZ #4344]
6602 * elf/ldconfig.c (search_dir): Fix 2 off-by-2 errors.
6603 Reported by David Anderson <davea42@earthlink.net>.
6604
75587bfe
UD
66052007-04-07 Ulrich Drepper <drepper@redhat.com>
6606
6607 * posix/sys/wait.h: Remove unnecessary forward declaration.
6608
88fa1769
JJ
66092007-04-05 Jakub Jelinek <jakub@redhat.com>
6610
6611 * nis/nis_call.c (__nisfind_server): Replace (*dir)->do_servers
6612 with obj->do_servers after first_shoot.
6613
eab1bdfb
UD
66142007-04-03 Ulrich Drepper <drepper@redhat.com>
6615
6616 * posix/Makefile (routines): Add sched_cpucount.
6617 (tests): Add tst-cpucount.
6618 * posix/sched_cpucount.c: New file.
6619 * posix/tst-cpucount.c: New file.
6620 * posix/Versions: Export __sched_cpucount with version GLIBC_2.6.
b4afdd06
UD
6621 * bits/sched.h: Define __CPU_COUNT. Declare __sched_cpucount.
6622 * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
6623 * posix/sched.h: Define CPU_COUNT.
eab1bdfb 6624
9700b039
UD
66252007-03-27 Jakub Jelinek <jakub@redhat.com>
6626
6627 * posix/fnmatch.c (STRUCT): Define.
6628 (fnmatch): Pass NULL as last argument to internal_fn{,w}match.
6629 * posix/fnmatch_loop.c (struct STRUCT): New type.
6630 (FCT): Add ends argument. If ends != NULL and normal * is
6631 seen in the pattern, store current pattern and string pointers
6632 and return. Adjust recursive calls.
6633 (EXT): Adjust FCT callers.
6634 (STRUCT): Undef at the end of the file.
6635 * posix/Makefile (tests): Add tst-fnmatch2.
6636 * posix/tst-fnmatch2.c: New test.
6637
d64e9790
JJ
66382007-04-01 Jakub Jelinek <jakub@redhat.com>
6639
933dfe7b
JJ
6640 * sysdeps/ia64/fpu/fesetround.c (fesetround): Return 0 on success
6641 and 1 on failure.
6642
d64e9790
JJ
6643 * sysdeps/unix/sysv/linux/sync_file_range.c (sync_file_range):
6644 Change last argument to unsigned int.
6645
e1f0c5bc
UD
66462007-03-23 Jakub Jelinek <jakub@redhat.com>
6647
6648 * scripts/check-local-headers.sh: Filter out sys/capability.h.
6649
66502007-03-22 Jakub Jelinek <jakub@redhat.com>
6651
6652 * config.h.in (HAVE_LIBCAP): Add.
6653 * nscd/selinux.h: Include sys/capability.h rather than non-existent
6654 sys/capabilities.h.
6655 * nscd/selinux.c (preserve_capabilities): Use cap_free instead of
6656 free_caps. Cast away const from 4th cap_set_flag argument.
6657
4e87573f
UD
66582007-03-26 Ulrich Drepper <drepper@redhat.com>
6659
6660 * sysdeps/unix/sysv/linux/Versions: Move sync_file_range to
6661 GLIBC_2.6.
6662 * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
6663 Add sync_file_range.
6664 Reported by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
6665
fa6e3bc3
UD
66662007-03-19 Steven Munroe <sjmunroe@us.ibm.com>
6667
6668 * sysdeps/powerpc/bits/atomic.h
6669 [!MUTEX_HINT_ACQ]: Define MUTEX_HINT_ACQ.
6670 [!MUTEX_HINT_REL]: Define MUTEX_HINT_REL.
6671 (__arch_compare_and_exchange_val_32_acq): Add MUTEX_HINT_ACQ to lwarx.
6672 (__arch_compare_and_exchange_val_32_rel): Add MUTEX_HINT_REL to lwarx.
6673 (__arch_atomic_exchange_val_32_acq): Add MUTEX_HINT_ACQ to lwarx.
6674 (__arch_atomic_exchange_rel_32_rel): Add MUTEX_HINT_REL to lwarx.
6675 * sysdeps/powerpc/powerpc32/bits/atomic.h [_ARCH_PWR6 || _ARCH_PWR6X]:
6676 Define MUTEX_HINT_ACQ as ",1" and MUTEX_HINT_REL as ",0".
6677 (__arch_compare_and_exchange_bool_32_acq): Add MUTEX_HINT_ACQ to lwarx.
6678 (__arch_compare_and_exchange_bool_32_rel): Add MUTEX_HINT_REL to lwarx.
6679 * sysdeps/powerpc/powerpc64/bits/atomic.h [_ARCH_PWR6 || _ARCH_PWR6D]:
6680 Define MUTEX_HINT_ACQ as ",1" and MUTEX_HINT_REL as ",0".
6681 (__arch_compare_and_exchange_bool_32_acq): Add MUTEX_HINT_ACQ to lwarx.
6682 (__arch_compare_and_exchange_bool_32_rel): Add MUTEX_HINT_REL to lwarx.
6683 (__arch_compare_and_exchange_bool_64_acq): Add MUTEX_HINT_ACQ to lwarx.
6684 (__arch_compare_and_exchange_bool_64_rel): Add MUTEX_HINT_REL to lwarx.
6685 (__arch_compare_and_exchange_val_64_acq): Add MUTEX_HINT_ACQ to lwarx.
6686 (__arch_compare_and_exchange_val_64_rel): Add MUTEX_HINT_REL to lwarx.
6687 (__arch_atomic_exchange_val_64_acq): Add MUTEX_HINT_ACQ to lwarx.
6688 (__arch_atomic_exchange_rel_64_rel): Add MUTEX_HINT_REL to lwarx.
6689
66902007-03-20 Jakub Jelinek <jakub@redhat.com>
c7693af7
UD
6691
6692 * sysdeps/unix/sysv/linux/powerpc/libc-start.c
6693 (__cache_line_size): Define the variable here. Add
6694 attribute_hidden, remove weak_extern.
6695 (__libc_start_main): Set __cache_line_size
6696 unconditionally.
6697 * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
6698 (__cache_line_size): Define the variable here. Add
6699 attribute_hidden, remove weak_extern.
6700 (DL_PLATFORM_AUXV): Set __cache_line_size
6701 unconditionally.
6702 * sysdeps/powerpc/powerpc32/dl-machine.c (__cache_line_size): Remove
6703 weak_extern, add attribute_hidden.
6704 (__elf_machine_runtime_setup): Assume __cache_line_size is always
6705 defined in ld.so.
6706 * sysdeps/powerpc/powerpc32/memset.S (__cache_line_size): Remove
6707 definition.
6708 * sysdeps/powerpc/powerpc64/memset.S (__cache_line_size): Likewise.
6709
0479e581
JJ
67102007-03-26 Jakub Jelinek <jakub@redhat.com>
6711
6712 [BZ #4276]
6713 * timezone/africa: Update from tzdata2007d.
6714 * timezone/asia: Likewise.
6715 * timezone/australasia: Likewise.
6716 * timezone/backward: Likewise.
6717 * timezone/europe: Likewise.
6718 * timezone/iso3166.tab: Likewise.
6719 * timezone/leapseconds: Likewise.
6720 * timezone/northamerica: Likewise.
6721 * timezone/southamerica: Likewise.
6722 * timezone/zone.tab: Likewise.
6723
6724 * timezone/private.h: Update from tzcode2007d.
6725 * timezone/zdump.c: Likewise.
6726 * timezone/zic.c: Likewise.
6727
697d37b1
JJ
67282007-03-21 Jakub Jelinek <jakub@redhat.com>
6729
6730 * nis/nis_call.c: Include bits/libc-lock.h, sys/stat.h, unistd.h.
6731 (nis_server_cache, nis_server_cache_lock, nis_cold_start_mtime): New
6732 variables.
6733 (nis_server_cache_search, nis_server_cache_add): New functions.
6734 (__nisfind_server): Use them. Add dbp and flags argument, if
6735 call __nisbind_create.
6736 (__nisbind_create): Add server_used and current_ep arguments,
6737 only call __nis_findfastest if server_used is ~0.
6738 (__do_niscall2, __prepare_niscall): Adjust callers.
6739 (ckey_cache, ckey_cache_size, ckey_cache_allocated, ckey_cache_pid,
6740 ckey_cache_euid, ckey_cache_lock): New variables.
6741 (get_ckey): New function.
6742 (__nisbind_connect): If not dbp->use_udp, pass IPPROTO_TCP to
6743 __pmap_getnisport. Save __pmap_getnisport result in
6744 dbp->addr.sin_port if non-zero. Use get_ckey to create conversation
6745 key.
6746 * nis/nis_lookup.c (nis_lookup): Likewise.
6747 * nis/nis_table.c (nis_list): Likewise.
6748 * nis/rpcsvc/nislib.h (__nisbind_create, __nisfind_server): Adjust
6749 prototypes.
6750
6751 * nis/nss_nisplus/nisplus-pwd.c (_nss_nisplus_getpwnam_r,
6752 _nss_nisplus_getpwuid_r): Pass USE_DGRAM flag to nis_list.
6753 * nis/nss_nisplus/nisplus-service.c (_nss_nisplus_getservbyname_r,
6754 _nss_nisplus_getservbyport_r): Likewise.
6755 * nis/nss_nisplus/nisplus-network.c (_nss_nisplus_getnetbyname_r,
6756 _nss_nisplus_getnetbyaddr_r): Likewise.
6757 * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_getspnam_r): Likewise.
6758 * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_gethostton_r,
6759 _nss_nisplus_getntohost_r): Likewise.
6760 * nis/nss_nisplus/nisplus-rpc.c (_nss_nisplus_getrpcbyname_r,
6761 _nss_nisplus_getrpcbynumber_r): Likewise.
6762
06029c20
JJ
67632007-03-20 Jakub Jelinek <jakub@redhat.com>
6764
371f84a4
JJ
6765 * configure.in (libc_cv_gnu89_inline): Only do compile test.
6766 * configure: Rebuilt.
6767
06029c20
JJ
6768 * soft-fp/double.h (_FP_UNION_D): Use _FP_W_TYPE for frac
6769 bit-fields.
6770 * soft-fp/extended.h (_FP_UNION_E): Likewise.
6771
67722006-06-07 Joseph Myers <joseph@codesourcery.com>
6773
6774 [BZ #2831]
6775 * soft-fp/quad.h (_FP_UNION_Q): Use _FP_W_TYPE for frac
6776 bit-fields.
6777
addc8335
UD
67782007-03-18 Jakub Jelinek <jakub@redhat.com>
6779
6780 * nscd/gai.c: Include alloca.h.
6781 (__libc_use_alloca): Define.
6782
b037a293
UD
67832007-03-16 Jakub Jelinek <jakub@redhat.com>
6784
965cba04
UD
6785 * elf/dl-open.c (dl_open_worker): Declare l in 2 different
6786 smaller scopes.
6787 * elf/dl-dst.h (DL_DST_REQ_STATIC): Add l as macro argument.
6788 (DL_DST_REQUIRED): Adjust user.
6789
6790 * include/dlfcn.h (struct link_map): New forward decl.
6791
6792 * inet/getnameinfo.c: Include stddef.h.
6793 (getnameinfo): Use offsetof.
6794
6795 * time/tst-mktime2.c (do_test): Don't rely on signed wrap.
6796
6797 * stdio-common/vfprintf.c (_itoa): Undef before redefining.
6798
6799 * string/strerror_l.c: Include stdlib.h.
6800
b037a293
UD
6801 * configure.in (libc_cv_gnu89_inline): Test for -fgnu89-inline.
6802 * config.make.in (gnu89-inline-CFLAGS): New variable.
6803 * Makeconfig (CFLAGS): Use $(gnu89-inline-CFLAGS) together with
6804 -std=gnu99.
6805 * misc/sys/cdefs.h (__extern_inline, __extern_always_inline): Define.
6806 * argp/argp.h: Use it.
6807 * bits/mathinline.h: Likewise.
6808 * bits/sigset.h: Likewise.
6809 * bits/string.h: Likewise.
6810 * ctype/ctype.h: Likewise.
6811 * hurd/hurd.h: Likewise.
6812 * hurd/hurd/fd.h: Likewise.
6813 * hurd/hurd/port.h: Likewise.
6814 * hurd/hurd/signal.h: Likewise.
6815 * hurd/hurd/threadvar.h: Likewise.
6816 * hurd/hurd/userlink.h: Likewise.
6817 * io/sys/stat.h: Likewise.
6818 * libio/bits/stdio.h: Likewise.
6819 * libio/bits/stdio2.h: Likewise.
6820 * mach/lock-intern.h: Likewise.
6821 * mach/mach/mig_support.h: Likewise.
6822 * math/bits/cmathcalls.h: Likewise.
6823 * posix/bits/unistd.h: Likewise.
6824 * socket/bits/socket2.h: Likewise.
6825 * stdlib/bits/stdlib.h: Likewise.
6826 * stdlib/stdlib.h: Likewise.
6827 * string/argz.h: Likewise.
6828 * string/bits/string2.h: Likewise.
6829 * string/bits/string3.h: Likewise.
6830 * sysdeps/alpha/fpu/bits/mathinline.h: Likewise.
6831 * sysdeps/generic/inttypes.h: Likewise.
6832 * sysdeps/generic/machine-lock.h: Likewise.
6833 * sysdeps/generic/machine-sp.h: Likewise.
6834 * sysdeps/i386/fpu/bits/mathinline.h: Likewise.
6835 * sysdeps/i386/i486/bits/string.h: Likewise.
6836 * sysdeps/ia64/fpu/bits/mathinline.h: Likewise.
6837 * sysdeps/mach/alpha/machine-lock.h: Likewise.
6838 * sysdeps/mach/alpha/machine-sp.h: Likewise.
6839 * sysdeps/mach/i386/machine-lock.h: Likewise.
6840 * sysdeps/mach/powerpc/machine-lock.h: Likewise.
6841 * sysdeps/mach/powerpc/machine-sp.h: Likewise.
6842 * sysdeps/powerpc/fpu/bits/mathinline.h: Likewise.
6843 * sysdeps/s390/bits/string.h: Likewise.
6844 * sysdeps/s390/fpu/bits/mathinline.h: Likewise.
6845 * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
6846 * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Likewise.
6847 * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
6848 * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
6849 * sysdeps/unix/sysv/linux/sys/sysmacros.h: Likewise.
6850 * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
6851 * wcsmbs/bits/wchar2.h: Likewise.
6852 * wcsmbs/wchar.h: Likewise.
6853 * stdlib/gmp.h: Likewise. Include <features.h> to get
6854 __extern_inline definition.
6855
6b2665f5
UD
68562007-03-15 Jakub Jelinek <jakub@redhat.com>
6857
b037a293
UD
6858 * locale/programs/ld-ctype.c (find_translit): Return NULL if ctype is
6859 NULL.
6860
6b2665f5
UD
6861 [BZ #3919]
6862 * math/libm-test.inc (log_test): Test -Inf and NaN.
6863 (log10_test, log1p_test, log2_test): Test -Inf.
6864 * sysdeps/i386/fpu/e_log.S (__ieee754_log): Don't raise
6865 FE_INVALID when argument is qNaN.
6866 * sysdeps/i386/fpu/e_logl.S (__ieee754_logl): Likewise.
6867 * sysdeps/i386/fpu/e_logf.S (__ieee754_logf): Likewise.
6868 * sysdeps/x86_64/fpu/e_logl.S (__ieee754_logl): Likewise.
6869 * sysdeps/x86_64/fpu/e_log10l.S (__ieee754_log10l): Replace
6870 andb $1, %ah with testb $1, %ah, don't test for parity, instead
6871 testb $4, %ah and jump if non-zero.
6872 * sysdeps/x86_64/fpu/e_log2l.S (__ieee754_log2l): Likewise.
6873 * sysdeps/x86_64/fpu/s_log1pl.S (__log1pl): Likewise.
6874
44969f17
UD
6875 [BZ #4101]
6876 * argp/argp-help.c (hol_cluster_cmp): Fix comparisons used to find
6877 ancestors with the same depths.
6878 Patch by Niels Moeller <nisse@lysator.liu.se>.
6879 (filter_doc): Don't crash if argp is NULL.
6880 * argp/Makefile (tests): Add tst-argp2.
6881 * argp/tst-argp2.c: New test.
6882
05eb8975
UD
6883 [BZ #4130]
6884 * login/utmp_file.c (setutent_file): Use O_LARGEFILE for
6885 open_not_cancel_2.
6886 (updwtmp_file): Likewise.
6887
6cb988fa
UD
6888 [BZ #4181]
6889 * inet/inet6_opt.c (add_padding): Only insert padding if npad > 0.
6890 (inet6_opt_append): Don't check extlen is big enough if extbuf
6891 is NULL.
6892 (inet6_opt_finish): Likewise.
6893 * inet/Makefile (tests): Add test-inet6_opt.
6894 * inet/test-inet6_opt.c: New test.
6895
6896 * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Never
6897 reallocate the buffer, instead fail for MSG_TRUNC or for EBUSY
6898 NLMSG_ERR. Instead use a page sized buffer.
6899 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Use page sized
6900 buffer.
6901
aea1d19e
RH
69022007-03-14 Richard Henderson <rth@redhat.com>
6903
b6df547c
RH
6904 * sysdeps/alpha/fpu/s_llround.c: New file.
6905 * sysdeps/alpha/fpu/s_llroundf.c: New file.
6906 * sysdeps/alpha/fpu/s_lround.c: New file.
6907 * sysdeps/alpha/fpu/s_lroundf.c: New file.
6908 * sysdeps/alpha/fpu/s_round.c: New file.
6909 * sysdeps/alpha/fpu/s_roundf.c: New file.
6910 * sysdeps/alpha/fpu/s_trunc.c: New file.
6911 * sysdeps/alpha/fpu/s_truncf.c: New file.
6912
aea1d19e
RH
6913 * sysdeps/alpha/fpu/s_ceil.c: Rewrite without branches.
6914 * sysdeps/alpha/fpu/s_ceilf.c: Likewise.
6915 * sysdeps/alpha/fpu/s_floor.c: Likewise.
6916 * sysdeps/alpha/fpu/s_floorf.c: Likewise.
6917 * sysdeps/alpha/fpu/s_rint.c: Likewise.
6918 * sysdeps/alpha/fpu/s_rintf.c: Likewise.
6919
6920 * sysdeps/alpha/fpu/s_fmax.S: New file.
6921 * sysdeps/alpha/fpu/s_fmaxf.S: New file.
6922 * sysdeps/alpha/fpu/s_fmin.S: New file.
6923 * sysdeps/alpha/fpu/s_fminf.S: New file.
6924 * sysdeps/alpha/fpu/s_isnan.c: New file.
6925 * sysdeps/alpha/fpu/s_isnanf.c: New file.
6926 * sysdeps/alpha/fpu/s_llrint.c: New file.
6927 * sysdeps/alpha/fpu/s_llrintf.c: New file.
6928 * sysdeps/alpha/fpu/s_lrint.c: New file.
6929 * sysdeps/alpha/fpu/s_lrintf.c: New file.
6930 * sysdeps/alpha/fpu/s_nearbyint.c: New file.
6931 * sysdeps/alpha/fpu/s_nearbyintf.c: New file.
6932
6933 * sysdeps/alpha/fpu/bits/mathinline.h (__floorf, __floor): Remove.
6934 (__fdimf, fdimf, __fdim, fdim): Remove.
6935 (__signbitf, __signbit, __signbitl): Use gcc builtin if available.
6936 (__isnanf, __isnan, __isnanl): New.
6937
9e43b50d
RH
69382007-03-13 Richard Henderson <rth@redhat.com>
6939
6940 * sysdeps/ieee754/ldbl-128/Makefile: New file.
6941
62789da3
RH
69422007-03-13 Richard Henderson <rth@redhat.com>
6943
6944 * sysdeps/alpha/Makefile (sysdep-CFLAGS): Force dynamic rounding.
6945 * sysdeps/alpha/fpu/bits/mathinline.h (__signbitl): New.
6946 * sysdeps/alpha/fpu/libm-test-ulps: Regenerate.
6947 * sysdeps/unix/sysv/linux/alpha/alphaev6/fpu/Implies: New file.
6948 * sysdeps/unix/sysv/linux/alpha/alphaev67/fpu/Implies: New file.
6949 * sysdeps/unix/sysv/linux/alpha/fpu/Implies: New file.
6950
47dbe62b
RH
69512007-03-13 Richard Henderson <rth@redhat.com>
6952
37f40235 6953 * elf/dl-support.c (_dl_aux_init): Honor DL_PLATFORM_AUXV.
47dbe62b
RH
6954 * sysdeps/unix/sysv/linux/alpha/dl-auxv.h: New file.
6955 * sysdeps/unix/sysv/linux/alpha/dl-support.c: New file.
6956 * sysdeps/unix/sysv/linux/alpha/dl-sysdep.c (__libc_alpha_cache_shape):
6957 Move to dl-auxv.h; initialize instead of extern weak.
6958 (DL_PLATFORM_AUXV): Move to dl-auxv.h; don't test for undef
6959 weak symbol.
6960 * sysdeps/unix/sysv/linux/alpha/sysconf.c (__libc_alpha_cache_shape):
6961 Extern instead of initialized.
6962
b8097bed
RH
69632007-03-13 Richard Henderson <rth@redhat.com>
6964
6965 * sysdeps/unix/sysv/linux/alpha/sigsuspend.S: Add support for
6966 __sigsuspend_nocancel.
6967
6bf4a686
UD
69682007-03-06 Ulrich Drepper <drepper@redhat.com>
6969
6970 * sysdeps/posix/getaddrinfo.c (get_scope): Correct test for
6971 172.16/12 address range.
6972
0b3b1a0c
UD
69732007-03-02 Jakub Jelinek <jakub@redhat.com>
6974
6975 * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Retry with
6976 a new netlink socket if NLMSG_ERR -EBUSY is seen after some MSG_TRUNC
6977 message.
6978
8f3edfee
UD
69792007-03-01 Jakub Jelinek <jakub@redhat.com>
6980
c1c5e654 6981 [BZ #4069]
8f3edfee
UD
6982 * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Check for NaN
6983 earlier.
6984 * math/libm-test.inc (pow_test): Add more tests involving NaNs.
6985
6986 * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Avoid invalid exception
6987 for x qNaN and y either +-inf or non-integer value.
6988 * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Likewise.
6989 * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.
6990 * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
6991
245a1481
UD
69922007-02-10 Mike Frysinger <vapier@gentoo.org>
6993
6994 * sysdeps/unix/sysv/linux/sh/Makefile: Remove sys/io.h
6995 from sysdep_headers.
6996
c217692b
UD
69972007-02-28 Jakub Jelinek <jakub@redhat.com>
6998
6999 * time/tzfile.c (find_transition): Instead of a linear search try to
7000 guess the transition index, use a linear search if the result is at
7001 most 10 transitions away from the guess or binary search otherwise.
7002
fe64626c
JJ
70032007-02-27 Jakub Jelinek <jakub@redhat.com>
7004
7005 * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Fix
7006 memory reallocation.
7007
0f7769f7
UD
70082007-02-21 Ulrich Drepper <drepper@redhat.com>
7009
621c133d
UD
7010 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Add branch predictions
7011 and fix some typos.
7012 Optimize use of TOLOWER.
9cf147d8 7013
cdfd61e1
UD
7014 [BZ #3325]
7015 * sysdeps/i386/fpu/e_fmodf.S: Revert last changes, keep using fprem.
7016 * sysdeps/i386/fpu/e_fmodl.c: Likewise.
7017 * sysdeps/i386/fpu/e_fmod.S: Likewise.
7018
8889e7aa
UD
7019 [BZ #3458]
7020 * sysdeps/unix/sysv/linux/posix_madvise.c: New file.
7021 * sysdeps/unix/sysv/linux/syscalls.list: Remove posix_madvise entry.
7022
63a2f305
UD
7023 [BZ #4076]
7024 * io/ftw.c (ftw_startup): Handle special case of FTW_CHDIR in /.
7025 (open_dir_stream): Likewise.
7026 * io/Makefile (tests): Add bug-ftw5.
c536b9b8 7027 * io/bug-ftw5.c: New file.
63a2f305 7028
c8703f88
UD
7029 * nscd/hstcache.c (cache_addhst): Remove unnecessary conditional.
7030 * nscd/servicescache.c (cache_addserv): Likewise.
7031
7032 * nscd/grpcache.c (cache_addgr): In case a record changed on
7033 refresh, adjust key_copy.
7034
61705e06
UD
7035 [BZ #4074]
7036 * nscd/pwdcache.c (cache_addpw): In case a record changed on
7037 refresh, adjust key_copy.
7038
0f7769f7
UD
7039 [BZ #4070]
7040 * stdio-common/printf_fp.c (___printf_fp): Handle a few more
0f7769f7 7041 special cases.
8889e7aa 7042 * stdio-common/tfformat.c (sprint_doubles): Some more tests.
0f7769f7 7043
3979024a
UD
70442007-02-19 Ulrich Drepper <drepper@redhat.com>
7045
4c02bf1a
UD
7046 * stdio-common/printf_fp.c (___printf_fp): Cleanups and minor
7047 optimization.
7048
3979024a
UD
7049 * stdio-common/vfscanf.c: Small cleanups throughout.
7050
821d3e70
UD
70512007-02-18 Ulrich Drepper <drepper@redhat.com>
7052
2484468b
UD
7053 [BZ #3325]
7054 * sysdeps/i386/fpu/e_fmodf.S: Use fprem1 instead of fprem.
7055 * sysdeps/i386/fpu/e_fmodl.c: Likewise.
7056 * sysdeps/i386/fpu/e_fmod.S: Likewise.
7057 Patch by Jared Casper <jaredcasper@gmail.com>.
7058
858ee15d
UD
7059 * sysdeps/unix/closedir.c: Outside libc don't use locking.
7060 * sysdeps/unix/opendir.c: Likewise.
7061 * sysdeps/unix/readdir.c: Likewise.
7062
ecb72bd5
UD
7063 [BZ #2211]
7064 * stdio-common/vfscanf.c: Handle localized digits etc for floating
7065 point numbers.
7066 Patch mostly by Hamed Malek <hamed@farsiweb.info>.
7067
ac2ca022
UD
7068 * stdio-common/vfscanf.c: Fix problems in width accounting.
7069 * stdio-common/tst-sscanf.c (double_tests): New tests.
7070 (main): Hook them up.
7071
e9bb5246 7072 * stdio-common/vfscanf.c: Remove unused WIDTH handling.
da50f001 7073 More simplifications of floating-point reader.
e9bb5246 7074
821d3e70
UD
7075 * stdio-common/Makefile (tests): Add tst-swscanf.
7076 * stdio-common/tst-sscanf.c: Make tests usable for swscanf
7077 testing.
7078 * stdio-common/tst-swscanf.c: New file.
7079
07fb5185
UD
70802007-02-17 Ulrich Drepper <drepper@redhat.com>
7081
9138cc0b
UD
7082 [BZ #2633]
7083 * libio/stdio.h: Define struct _IO_FILE in global namespace.
7084 * setjmp/setjmp.h: Define __jmp_buf_tag in global namespace.
7085 Remove using for __jmp_buf_tag.
7086 * locale/locale.h (struct lconv): Also define in std namespace.
7087 * wcsmbs/wchar.h: Move using declaration for tm out of namespace.
7088
6818d837
UD
7089 [BZ #3842]
7090 * sysdeps/posix/euidaccess.c [_LIBC] (euidaccess): Remove shortcut
7091 using __libc_enable_secure.
7092
15c4b5a4
UD
7093 [BZ #3818]
7094 * sysdeps/unix/sysv/linux/sys/acct.h (struct acct_v3): Define.
7095
5e9e9c14
UD
7096 [BZ #3745]
7097 * locale/programs/ld-collate.c (handle_ellipsis): Fix generation
7098 of names for ellipsises.
7099
07fb5185
UD
7100 [BZ #3348]
7101 * malloc/memusage.sh: Cleanups.
7102 * debug/xtrace.sh: Quoting and trap changes.
7103
8c6d1043
UD
71042007-02-16 Ulrich Drepper <drepper@redhat.com>
7105
07fb5185
UD
7106 * locale/iso-3166.def: Add Jersey, Guernsey, and Isle Of Man entries.
7107
93e66914 7108 * locale/iso-3166.def: Update entry for Serbia.
93e36434
UD
7109 * locale/iso-4217.def: Define RSD, remove CSD.
7110
ad0b348c
UD
7111 * sysdeps/x86_64/bits/atomic.h: One more change, this time for 16-
7112 and 64-bit operations.
7113
7114 [BZ #4040]
7115 * sysdeps/i386/i486/bits/atomic.h: One more change, this time for
7116 16-bit operations.
7117
8c6d1043
UD
7118 * nscd/nscd.c (parse_opt): One more conversion to use send instead
7119 of writev.
7120
987f54c6
UD
71212007-02-15 Ulrich Drepper <drepper@redhat.com>
7122
b3715c05
UD
7123 [BZ #3991]
7124 * assert/assert.h (assert): Simplify.
7125 (assert_perror): Likewise.
7126 Patch by Israel G. Lugo <ilugo@bridonsecurity.com>.
7127
6eea8e0d
UD
7128 * nscd/nscd_helper.c (open_socket): Don't send padding bytes from
7129 reqdata.
7130
987f54c6
UD
7131 * sysdeps/unix/sysv/linux/x86_64/send.c (__libc_send): Cosmetic
7132 change: don't pass NULL in place of an integer.
7133
3dc08a7e
UD
71342007-02-02 Bruno Haible <bruno@clisp.org>
7135
06c17c78
UD
7136 [BZ #3954]
7137 * iconvdata/ksc5601.c (__ksc5601_sym_to_ucs, __ksc5601_sym_from_ucs):
7138 Add mapping for U+327E.
7139 * iconvdata/ksc5601.h (KSC5601_SYMBOL): Increment.
7140 * iconvdata/johab.c (BODY for FROM_LOOP, BODY for TO_LOOP): Enable
7141 mapping of 0xD9 0xE8.
7142 * iconvdata/uhc.c (BODY for FROM_LOOP, BODY for TO_LOOP): Disable
7143 mapping of U+327E.
7144 Reported by Jungshik Shin <jungshik@google.com>.
7145
7146 [BZ #3955]
3dc08a7e
UD
7147 * iconvdata/johab.c (BODY for FROM_LOOP, BODY for TO_LOOP): Enable
7148 mapping of 0xD9 0xE6 and of 0xD9 0xE7.
7149 Reported by Jungshik Shin <jungshik@google.com>.
7150
a810e68c
UD
71512007-02-14 Ulrich Drepper <drepper@redhat.com>
7152
7153 * sysdeps/x86_64/bits/atomic;h: Fix asm parameters for some
7154 byte variants.
7155
7156 [BZ #4040]
7157 * sysdeps/i386/i486/bits/atomic.h: Fix asm parameters for some
7158 byte variants. Patch mostly be tom@tommay.net.
7159
05f135ba
UD
71602007-02-14 Jakub Jelinek <jakub@redhat.com>
7161
7162 [BZ #3996]
7163 * posix/glob.c (attribute_hidden): Define if not defined.
7164 (glob): Unescape dirname, filename or username when needed and not
7165 GLOB_NOESCAPE. Handle \/ correctly. Handle GLOB_MARK if filename
7166 is NULL. Handle unescaped [ in pattern without closing ].
7167 Don't pass GLOB_CHECK down to recursive glob for directories.
7168 (__glob_pattern_type): New function.
7169 (__glob_pattern_p): Implement using __glob_pattern_type.
7170 (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
7171 characters and backslashes if not GLOB_NOESCAPE or unterminated [.
7172 Remove unreachable code.
7173 * posix/globtest.sh: Add a couple of new tests.
7174
2f699967
UD
71752007-02-13 Ulrich Drepper <drepper@redhat.com>
7176
7177 * po/ru.po: Update from translation team.
7178
3a7cd5b4
JJ
71792007-02-12 Jakub Jelinek <jakub@redhat.com>
7180
7181 * sysdeps/i386/bits/byteswap.h (__bswap_32): Add __amdfam10__
7182 to the list of i486+ CPUs.
7183 * sysdeps/x86_64/bits/byteswap.h (__bswap_32): Likewise.
7184
2f978feb
UD
71852007-02-12 Ulrich Drepper <drepper@redhat.com>
7186
7187 * elf/rtld.c (RESOLVE_MAP): Always return bootstrap_map reference.
7188 * elf/Makefile ($(objpfx)ld.so): Check that ld.so has no undefined
7189 references.
7190
2bbb7d5b
UD
71912007-02-09 Ulrich Drepper <drepper@redhat.com>
7192
5ed61e0f
UD
7193 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Remove incorrect comment.
7194
2bbb7d5b
UD
7195 * resolv/res_init.c (res_setoptions): Recognize edns0 option.
7196 * resolv/res_mkquery.c: Define __res_nopt.
7197 * resolv/res_query.c (__libc_res_nquery): If RES_USE_EDNS0 is set
7198 try adding EDNS0 record.
7199 * resolv/res_send.c (send_dg): If request failed with FORMERR and
7200 EDNS0 record was send make sure we don't try it again.
7201 * resolv/resolv.h: Define RES_F_EDNS0ERR and RES_USE_EDNS0.
7202 * include/resolv.h: Declare __res_nopt.
7203
00458b5b
UD
72042007-02-08 Jakub Jelinek <jakub@redhat.com>
7205
7206 [BZ #3944]
7207 * time/strptime_l.c (__strptime_internal): Set have_mon for
7208 %b/%B/%h. Set have_mon and have_mday if tm_mon and tm_mday
7209 have been computed from tm_yday and tm_year. Don't crash
7210 in day_of_the_week or day_of_the_year if not have_mon
7211 and tm_mon contains bogus value.
7212 * time/Makefile (tests): Add tst-strptime3.
7213 * time/tst-strptime3.c: New test.
7214
784aacea
UD
72152007-02-05 Jakub Jelinek <jakub@redhat.com>
7216
7217 [BZ #3957]
7218 * posix/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
7219 bit for RE_HAT_LISTS_NOT_NEWLINE.
7220 (build_charclass_op): Remove bogus comment.
7221 * posix/Makefile (tests): Add bug-regex27 and bug-regex28.
7222 * posix/bug-regex27.c: New test.
7223 * posix/bug-regex28.c: New test.
7224
bf7a2463
UD
72252007-02-03 Ulrich Drepper <drepper@redhat.com>
7226
7227 * po/sv.po: Update from translation team.
7228
f2ccf983
UD
72292007-02-02 Ulrich Drepper <drepper@redhat.com>
7230
7231 * nscd/nscd_helper.c (open_socket): Minor size optimization.
7232
73f50d5a
UD
72332007-02-02 Jakub Jelinek <jakub@redhat.com>
7234
7235 * include/locale.h (__uselocale): Add libc_hidden_proto.
7236 * locale/uselocale.c (__uselocale): Add libc_hidden_def.
7237
f6bf9e59
JJ
7238 * nscd/nscd_helper.c (open_socket): Use __gettimeofday instead of
7239 gettimeofday.
7240
4a44ce79
UD
72412007-02-01 Ulrich Drepper <drepper@redhat.com>
7242
7243 * sysdeps/unix/sysv/linux/i386/sysdep.h (PTR_MANGLE): Roll value before
7244 returning.
7245 (PTR_DEMANGLE): Real definition now that it's not the same as
7246 PRT_MANGLE anymore.
7247 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
7248
7249 * string/strerror_l.c: New file.
7250 * string/Makefile (routines): Add strerror_l.
7251 * string/string.h: Declare strerror_l.
7252 * string/Versions: Export strerror_l for GLIBC_2.6.
7253
58a2d52e
UD
72542007-01-31 Ulrich Drepper <drepper@redhat.com>
7255
7256 * nscd/nscd_helper.c (open_socket): Now takes request type and key
7257 as parameter. Construct request record. Try sending request
7258 before the first poll use, it usually succeeds. Adjust all
7259 callers.
7260 * nscd/nscd-client.h: Define MAXKEYLEN.
4a44ce79 7261 * nscd/connections.c (nscd_run): Don't define MAXKEYLEN here.
58a2d52e 7262
1a77d37f
JJ
72632007-01-31 Jakub Jelinek <jakub@redhat.com>
7264
7265 * nscd/nscd-client.h (__nscd_cache_search): Remove const qualifier
7266 from return value.
7267 * nscd/nscd_helper.c: Include string.h.
7268 (__nscd_cache_search): Remove const qualifier from return value.
7269 On strict alignment architectures check hash entry and data head
7270 alignment.
7271 * nscd/nscd_getpw_r.c (nscd_getpw_r): Don't crash or fail because
7272 mmapped data during GC cycle contains garbage. If
7273 __nscd_drop_map_ref fails, decrement mapped->counter when returning
7274 error or if retrying with NO_MAPPING, only __nscd_unmap if counter
7275 dropped to 0.
7276 * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
7277 * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
7278 * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
7279 * nscd/nscd_getai.c (__nscd_getai): Likewise.
7280 * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
7281
ee314200
UD
72822007-01-30 Ulrich Drepper <drepper@redhat.com>
7283
7284 * misc/hsearch_r.c (hdestroy_r): Remove unnecessary test.
7285
14c8bf3b
UD
72862007-01-26 Ulrich Drepper <drepper@redhat.com>
7287
7288 * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Use register
7289 names not numbers in cfi_*.
7290
d2708e67
AJ
72912007-01-26 Andreas Jaeger <aj@suse.de>
7292
7293 * sysdeps/unix/sysv/linux/sys/personality.h (ADDR_NO_RANDOMIZE,
14c8bf3b 7294 ADDR_LIMIT_3GB, PER_LINUX_32BIT, PER_LINUX32_3GB): Add.
d2708e67
AJ
7295 Correct values of PER_HPUX and PER_OSF4.
7296
7fbc8784
UD
72972007-01-24 Ulrich Drepper <drepper@redhat.com>
7298
8aaf53ee 7299 * elf/dl-minimal.c: Undefine _itoa first.
7fbc8784
UD
7300 * stdio-common/_itoa.h: Define _itoa and _fitoa for 64-bit platforms.
7301 * malloc/mtrace.c: Revert last change.
7302 * posix/wordexp.c: Likewise.
7303
9d6cde3d
UD
73042007-01-24 Jakub Jelinek <jakub@redhat.com>
7305
7306 * sysdeps/i386/bits/byteswap.h (__bswap_32): Add __nocona__, __core2__
7307 and __geode__ to the list of i486+ CPUs.
7308 * sysdeps/x86_64/bits/byteswap.h (__bswap_32): Likewise.
7309
c1f0486a
UD
73102007-01-23 Ulrich Drepper <drepper@redhat.com>
7311
7312 * stdio-common/_itoa.c: Include <limits.h>.
7313 * stdio-common/_itowa.c: Likewise.
7314
6cae3957
UD
73152007-01-22 Ulrich Drepper <drepper@redhat.com>
7316
765bbb24
UD
7317 * stdio-common/_itowa.c: Don't compile _itowa for 64-bit
7318 platforms.
7319 * stdio-common/_itoa.c: Don't compile in _itoa and _fitoa for
7320 64-bit platforms.
7321 * malloc/mtrace.c (tr_where): Use _fitoa_word instead of _fitoa if
7322 possible.
7323 * posix/wordexp.c (parse_arith): Use _itoa_word instead of _itoa
7324 if possible.
7325
6cae3957
UD
7326 [BZ #3902]
7327 * stdio-common/_itoa.c (_itoa): Make sure at least a zero is emitted.
7328 * stdio-common/Makefile (tests): Add bug17.
7329 * stdio-common/bug17.c: New file.
7330
ddaafd04
UD
73312007-01-19 Ulrich Drepper <drepper@redhat.com>
7332
7333 * iconvdata/brf.c: New file.
439201de
UD
7334 * iconvdata/testdata/BRF: New file.
7335 * iconvdata/testdata/BRF..UTF8: New file.
7336 Contributed by Samuel Thibault <samuel.thibault@ens-lyon.org>.
ddaafd04
UD
7337 * iconvdata/Makefile: Add rules to build BRF.
7338 * iconvdata/TESTS: Add BRF entry.
7339 * iconvdata/gconv-modules: Likewise.
7340 * iconvdata/tst-tables.sh: Likewise.
ddaafd04 7341
9e6e344e
UD
73422007-01-18 Anton Nikishaev <anton.nik@gmail.com>
7343
7344 * wcsmbs/wchar.h (wcstoll): Fix comment, function returns value of
7345 type `long long int', not `long int'.
7346 (wcstoq): Likewise.
7347
299f7b0f
UD
73482007-01-18 Ulrich Drepper <drepper@redhat.com>
7349
7350 * scripts/gen-as-const.awk: Add cast to long to avoid int promotion
7351 of values on 64-bit platforms which are too large.
7352
cd8127cc
JJ
73532007-01-12 Steven Munroe <sjmunroe@us.ibm.com>
7354 Joe Kerian <jkerian@us.us.ibm.com>
7355
7356 [BZ #2749]
7357 * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Include
7358 <math_ldbl_opt.h>. Remove weak_alias. Use long_double_symbol macro.
7359 (__copysignl): Use signbit() for comparison.
7360 * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Correct parms for
7361 SET_LDOUBLE_WORDS64.
7362
7363 [BZ #2423, #2749]
7364 * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Don't include <fenv_libc.h>.
7365 (__ceill): Remove calls to fegetround(), fesetround().
7366 * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
7367 * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
7368 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
7369
b3acfdf7
JJ
73702007-01-17 Jakub Jelinek <jakub@redhat.com>
7371
4a2e03c6
JJ
7372 * nscd/nscd_getserv_r.c (nscd_getserv_r): Fix pastos.
7373
b3acfdf7
JJ
7374 * sysdeps/unix/sysv/linux/getdents.c (offsetof): Remove.
7375
1476bce6
UD
73762007-01-17 Ulrich Drepper <drepper@redhat.com>
7377
7378 * sysdeps/unix/sysv/linux/fatal-prepare.h: Use PTHFCT_CALL to
7379 demangle pointer.
7380 * csu/libc-start.c: Likewise.
7381
d78bce1c
UD
73822007-01-16 Ulrich Drepper <drepper@redhat.com>
7383
7384 * sysdeps/posix/system.c: Remove NO_WAITPID support, it cannot
7385 really work anyway.
7386
1bd79025
UD
73872007-01-15 Ulrich Drepper <drepper@redhat.com>
7388
000b027e
UD
7389 * nscd/connections.c (servinfo): Renamed to reqinfo. Change all
7390 users.
7391 (handle_request): Remove unnecessary tests.
7392
1bd79025
UD
7393 * nscd/cache.c (cache_add): Record the failure to add to the cache.
7394
d68f5d2c
JJ
73952007-01-15 Jakub Jelinek <jakub@redhat.com>
7396
7397 * soft-fp/op-common.h (FP_TRUNC): When truncating a NaN, clear
7398 workbits in semi-raw fraction.
7399
7400 * math/test-misc.c: Add new tests.
7401
74022007-01-14 Steven Munroe <sjmunroe@us.ibm.com>
7403
7404 * math/basic-test.c: Include test-skeleton.c.
7405 (TEST_TRUNC): Define.
7406 (truncdfsf_test, trunctfsf_test, trunctfdf_test): New.
7407 (main): Rename to ...
7408 (do_test): ...this. Run new tests.
7409 (TEST_FUNCTION): Define.
7410
74112006-10-05 Steven Munroe <sjmunroe@us.ibm.com>
7412 Joe Kerian <jkerian@us.us.ibm.com>
7413
7414 [BZ #2749]
7415 * soft-fp/op-4.h (__FP_FRAC_SUB_3, __FP_FRAC_SUB_4): Correct borrow
7416 handling for high words.
7417 * soft-fp/op-common.h (_FP_OVERFLOW_SEMIRAW): Always set inexact
7418 and overflow for infinity.
7419
4e35ef2c
UD
74202007-01-15 Ulrich Drepper <drepper@redhat.com>
7421
2a1dea97
UD
7422 * nscd/connections.c (handle_request): Add a __builtin_expect.
7423
9691d83c
UD
7424 * nscd/connections.c (serv2db): Change type into structure which
7425 also says whether this is a request for data. Renamed to
7426 servinfo. All users changed.
7427 (handle_request): Much simpler test whether we should search the cache.
7428
49ee6d79
UD
7429 * nscd/connections.c (handle_request): Fix thinko in selinux test
7430 invocation.
7431
4e35ef2c
UD
7432 * sysdeps/generic/ldsodefs.h: Define DL_LOOKUP_SCOPE_LOCK.
7433 * elf/dl-lookup.c (add_dependency): If scope map is locked, unlock
7434 it before getting dl_load_lock and then relock.
7435 (_dl_lookup_symbol_x): Pass flags to add_dependency.
7436 When rerunning _dl_lookup_symbol_x, compute symbol_scope again in
7437 case we unlocked the scope.
7438 * elf/dl-runtime.c (_dl_fixup): Pass DL_LOOKUP_SCOPE_LOCK to
7439 _dl_lookup_symbol_x in case we locked the scope.
7440 (_dl_profile_fixup): Likewise.
7441 * elf/dl-sym.c (do_sym): In flags passed to call_dl_lookup, also
7442 set DL_LOOKUP_SCOPE_LOCK.
7443
23691ab2
UD
74442007-01-13 Ulrich Drepper <drepper@redhat.com>
7445
fb453d08
UD
7446 * inet/Makefile: Define CFLAGS-getsrvbynm_r.c and
7447 CFLAGS-getsrvbynpt_r.c.
7448 * nscd/getsrvbynm_r.c: New file.
7449 * nscd/getsrvbypt_r.c: New file.
7450 * nscd/nscd_getserv_r.c: New file.
7451 * nscd/servicescache.c: New file.
7452 * nscd/Makefile (routines): Add nscd_getserv_r.
7453 (nscd-modules): Add getsrvbynm_r, getsrvbypt_r, and servicescache.
7454 Define CFLAGS-servicescache.c, CFLAGS-getsrvbynm_r.c, and
7455 CFLAGS-getsrvbypt_r.c.
7456 * nscd/cache.c (prune_cache): Rewrite to get re-add function from
7457 table. Add entries for services database.
7458 * nscd/connections.c (serv2str): Mark as const. Add entries for
7459 services database.
7460 (dbs): Add .reset_res and servdb initialization.
7461 (serv2db): Add entries for services database.
7462 (verify_persistent_db): Accept dbnr == servdb.
7463 (invalidate_cache): Rewrite database name recognition to use a table.
7464 Call res_init() if .reset_res is set for database.
7465 (handle_request): Add code to handle services database.
7466 * nscd/gai.c: Don't define __getservbyname_r.
7467 * nscd/nscd-client.h (request_type): Remove LASTDBREQ, add
7468 GETSERVBYNAME, GETSERVBYPORT, GETFDSERV.
7469 (serv_response_header): Define.
7470 (struct datahead): Add serv_response_header member.
7471 * nscd/nscd.c (parse_opt): Rewrite parsing of -i parameter value
7472 using table.
7473 * nscd/nscd.conf: Add entries for services database.
7474 * nscd/nscd.h: Adjust declaration of dbnames and serv2str.
7475 Declare serv_iov_disabled.
7476 Declare addservbyname, readdservbyname, addservbyport, and
7477 readdservbyport.
7478 * nscd/nscd_conf.c (dbnames): Mark as const. Add services entry.
7479 (find_db): Fix error message.
7480 * nscd/nscd_proto.h: Declare __nss_not_use_nscd_services,
7481 __nscd_getservbyname_r, and __nscd_getservbyport_r.
7482 * nscd/selinux.c (perms): Add entries for services database.
7483 * nss/Versions: Export __nss_services_lookup with GLIBC_PRIVATE.
7484 * nss/nsswitch.c (__nss_disable_nscd): Also disable services database.
7485
7486 * nscd/grpcache.c: Remove obsolete code. Cleanups.
7487 * nscd/hstcache.c: Likewise.
7488 * nscd/pwdcache.c: Likewise.
7489
b21fa963
UD
7490 * nis/nss_nis/nis-service.c (_nss_nis_getservbyname_r): Correct
7491 computation of keylen.
7492
23691ab2
UD
7493 * include/string.h: Only redefine strndupa if this is really for
7494 libc code.
7495
8980796b
UD
74962007-01-12 Ulrich Drepper <drepper@redhat.com>
7497
4a4a65f2
UD
7498 * nscd/nscd_gethst_r.c: Minor cleanups.
7499
43397eaf
UD
7500 * nscd/connections.c (handle_request): Check selinux permissions
7501 for all non-admin commands.
7502
038a1a9f
UD
7503 * sysdeps/i386/i486/bits/atomic.h: Define
7504 atomic_compare_and_exchange_val_acq,
7505 atomic_compare_and_exchange_bool_acq, and atomic_exchange_and_add
7506 using __sync_* built-ins for gcc >= 4.1.
7507 * sysdeps/x86_64/bits/atomic.h: Likewise.
7508
8980796b
UD
7509 [BZ #3840]
7510 * scripts/check-local-headers.sh: Restrict to testing .o.d, .os.d,
7511 and .oS.d files.
7512
32c075e1
JJ
75132007-01-05 Steven Munroe <sjmunroe@us.ibm.com>
7514
7515 * stdlib/tst-makecontext.c: Include errno.h. Change main()
7516 to do_test(). Define TEST_FUNCTION. Include test-skeleton.c.
7517 (do_test): Check errno and exit(0) if ENOSYS.
7518
75192007-01-11 Jakub Jelinek <jakub@redhat.com>
7520
7521 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix handling of multi-byte
7522 thousands separators.
7523 * stdlib/Makefile: Add rules to build and run tst-strtod4.
7524 * stdlib/tst-strtod4.c: New test.
7525
7526 [BZ #3855]
7527 * stdlib/strtod_l.c (____STRTOF_INTERNAL): 0x. not followed by
7528 hexadecimal digit should accept just the initial 0.
7529 * stdlib/tst-strtod2.c (tests): New variable.
7530 (do_test): Run several tests rather than just one.
7531
11bf311e 75322007-01-11 Jakub Jelinek <jakub@redhat.com>
df859a0c 7533
11bf311e
UD
7534 * sysdeps/i386/soft-fp/sfp-machine.h: Remove.
7535 * sysdeps/x86_64/soft-fp/sfp-machine.h: Likewise.
df859a0c 7536
11bf311e 75372007-01-10 Ulrich Drepper <drepper@redhat.com>
32c075e1 7538
11bf311e
UD
7539 * io/fts.c: Make sure fts_cur is always valid after return from
7540 fts_read.
7541 Patch by Miloslav Trmac <mitr@redhat.com>.
64a0aa0f 7542
11bf311e 75432006-10-27 Richard Sandiford <richard@codesourcery.com>
32c075e1 7544
11bf311e
UD
7545 * elf/elf.h (R_MIPS_GLOB_DAT): Define.
7546 (R_MIPS_NUM): Bump by 1.
32c075e1 7547
11bf311e 75482007-01-03 Jakub Jelinek <jakub@redhat.com>
32c075e1 7549
11bf311e
UD
7550 * posix/execvp.c: Include alloca.h.
7551 (allocate_scripts_argv): Renamed to...
7552 (scripts_argv): ... this. Don't allocate buffer here nor count
7553 arguments.
7554 (execvp): Use alloca if possible.
7555 * posix/Makefile: Add rules to build and run tst-vfork3 test.
7556 * posix/tst-vfork3.c: New test.
32c075e1
JJ
7557
75582007-01-03 Ulrich Drepper <drepper@redhat.com>
7559
7560 * string/Makefile (tst-strxfrm2-ENV): Define.
11bf311e 7561 * stdlib/Makefile (tst-strtod3-ENV): Define.
32c075e1 7562
11bf311e 75632007-01-02 Ulrich Drepper <drepper@redhat.com>
32c075e1 7564
11bf311e
UD
7565 * posix/getconf.c: Update copyright year.
7566 * nss/getent.c: Likewise.
7567 * iconv/iconvconfig.c: Likewise.
7568 * iconv/iconv_prog.c: Likewise.
7569 * elf/ldconfig.c: Likewise.
7570 * catgets/gencat.c: Likewise.
7571 * csu/version.c: Likewise.
7572 * elf/ldd.bash.in: Likewise.
7573 * elf/sprof.c (print_version): Likewise.
7574 * locale/programs/locale.c: Likewise.
7575 * locale/programs/localedef.c: Likewise.
7576 * nscd/nscd.c (print_version): Likewise.
7577 * debug/xtrace.sh: Likewise.
7578 * malloc/memusage.sh: Likewise.
7579 * malloc/mtrace.pl: Likewise.
7580 * debug/catchsegv.sh: Likewise.
64a0aa0f 7581
11bf311e 75822006-12-24 Ulrich Drepper <drepper@redhat.com>
48576885 7583
11bf311e
UD
7584 * malloc/malloc.c (sYSMALLOc): Remove some unnecessary alignment
7585 attempts.
48576885 7586
11bf311e 75872006-12-23 Ulrich Drepper <drepper@redhat.com>
3b6667a4 7588
11bf311e 7589 * posix/wordexp.c: Remove some unnecessary tests.
3b6667a4 7590
33c6de58
UD
75912006-12-22 Gavin Romig-Koch <gavin@redhat.com>
7592
7593 * nis/nss_compat/compat-grp.c (internal_getgrgid_r): Don't
7594 blacklist the group till after we look it up.
7595
fc242bef
UD
75962006-12-21 Ulrich Drepper <drepper@redhat.com>
7597
7598 * include/atomic.h (atomic_forced_read): New macro.
7599
11bf311e
UD
76002006-12-20 SUGIOKA Toshinobu <sugioka@itonet.co.jp>
7601
7602 * sysdeps/unix/sysv/linux/sh/bits/shm.h: New file.
7603
a12dcecc
UD
76042006-12-19 Jakub Jelinek <jakub@redhat.com>
7605
11bf311e
UD
7606 * nss/getXXbyYY_r.c: Include atomic.h.
7607 (INTERNAL (REENTRANT_NAME)): Write startp after start_fct,
7608 add atomic_write_barrier () in between.
7609
a12dcecc
UD
7610 * stdlib/Makefile (tests): Add tst-makecontext.
7611 * stdlib/tst-makecontext.c: New test.
7612
7613 * sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S
7614 (__makecontext): Don't realign uc_mcontext.uc_regs.
7615
11bf311e 76162006-11-28 Jakub Jelinek <jakub@redhat.com>
594d423a 7617
11bf311e
UD
7618 * elf/dl-support.c: Include dl-procinfo.h.
7619 * sysdeps/powerpc/dl-procinfo.h (PPC_PLATFORM_POWER4,
7620 PPC_PLATFORM_PPC970, PPC_PLATFORM_POWER5, PPC_PLATFORM_POWER5_PLUS,
7621 PPC_PLATFORM_POWER6, PPC_PLATFORM_CELL_BE, PPC_PLATFORM_POWER6X):
7622 Define.
7623 (_dl_string_platform): Use PPC_PLATFORM_* macros instead of
7624 hardcoded constants.
7625 * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_platform): Use
7626 PPC_PLATFORM_* macros for array designators.
594d423a 7627
11bf311e 76282006-11-11 Steven Munroe <sjmunroe@us.ibm.com>
594d423a 7629
11bf311e
UD
7630 * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add 3 new cap
7631 names to the beginning.
7632 (_dl_powerpc_platforms): Add "power6x".
7633 * sysdeps/powerpc/dl-procinfo.h (_DL_HWCAP_FIRST): Decrease.
7634 (HWCAP_IMPORTANT): Add PPC_FEATURE_HAS_DFP.
7635 (_DL_PLATFORMS_COUNT): Increase.
7636 (_dl_string_platform): Handle power6x case.
7637 * sysdeps/powerpc/sysdep.h (PPC_FEATURE_PA6T, PPC_FEATURE_HAS_DFP,
7638 PPC_FEATURE_POWER6_EXT): Define.
7639 (PPC_FEATURE_POWER5, PPC_FEATURE_POWER5_PLUS): Correct Comment.
594d423a 7640
5bcba0ed
UD
76412006-12-18 Jakub Jelinek <jakub@redhat.com>
7642
7643 [BZ #3747]
7644 * stdlib/jrand48_r.c (__jrand48_r): Make sure result is in the
11bf311e 7645 [-2^31 .. 2^31) range.
5bcba0ed
UD
7646 * stdlib/tst-rand48.c (main): Fix expected values for 64-bit
7647 targets.
7648 * stdlib/tst-rand48-2.c: New test.
7649 * stdlib/Makefile (tests): Add tst-rand48-2.
7650
9e1444fc
UD
76512006-12-14 Jakub Jelinek <jakub@redhat.com>
7652
7653 * misc/tst-pselect.c (do_test): Fix sigblock argument.
7654
36775704
UD
76552006-12-14 Ulrich Drepper <drepper@redhat.com>
7656
7657 * misc/tst-pselect.c (do_test): Make sure the helper process is
7658 terminating when the test is aborted.
7659
1e88bd0f
UD
76602006-12-13 Ulrich Drepper <drepper@redhat.com>
7661
11bf311e
UD
7662 * sysdeps/unix/sysv/linux/bits/statvfs.h: Define ST_RELATIME.
7663 * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
7664 Handle relatime mount option.
7665
1e88bd0f
UD
7666 [BZ #2337]
7667 * libio/Makefile (tests): Add tst-setvbuf1.
7668 * libio/tst-setvbuf1.c: New file.
7669
76702006-12-08 Jakub Jelinek <jakub@redhat.com>
7671
7672 [BZ #2337]
7673 * libio/genops.c (__uflow): Fix a typo.
7674 * libio/wfiledoalloc.c (_IO_wfile_doallocate): Don't stat
7675 nor set _IO_LINE_BUF bit here. Size the wide buffer based on
7676 the narrow buffer size.
7677
76782006-11-24 Jakub Jelinek <jakub@redhat.com>
7679
7680 [BZ #2337]
7681 * libio/libio.h (_IO_FLAGS2_USER_WBUF): Define.
7682 * libio/wgenops.c (_IO_wsetb, _IO_wdefault_finish): Test and set
7683 _IO_FLAGS2_USER_WBUF bit in _flags2 instead of _IO_USER_BUF bit
7684 in _flags.
7685 * libio/wstrops.c (_IO_wstr_overflow, enlarge_userbuf,
7686 _IO_wstr_finish): Likewise.
7687 * libio/wmemstream.c (open_wmemstream): Likewise.
7688 * libio/fileops.c (_IO_new_file_close_it): Call _IO_set[bgp]
7689 even for wide streams.
7690
11bf311e 76912006-12-13 Jakub Jelinek <jakub@redhat.com>
1f55ce48 7692
11bf311e
UD
7693 * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: Include
7694 kernel-features.h.
7695
76962006-12-11 Ulrich Drepper <drepper@redhat.com>
7697
7698 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Parse thousand
7699 separators also if no non-zero digits found.
7700 * stdlib/Makefile (tests): Add tst-strtod3.
1f55ce48 7701
d117c1ce
UD
77022006-12-09 Ulrich Drepper <drepper@redhat.com>
7703
f85fb97b
UD
7704 [BZ #3632]
7705 * include/features.h: Fix comment about default value for
7706 _POSIX_C_SOURCE.
7707
11bf311e
UD
7708 [BZ #3664]
7709 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix test to recognize
7710 empty parsed strings.
7711 * stdlib/Makefile (tests): Add tst-strtod2.
7712 * stdlib/tst-strtod2.c: New file.
7713
7714 [BZ #3673]
7715 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix exp_limit
7716 computation.
7717 * stdlib/Makefile (tests): Add tst-atof2.
7718 * stdlib/tst-atof2.c: New file.
7719
7720 [BZ #3674]
7721 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Adjust exponent value
7722 correctly if removing trailing zero of hex-float.
7723 * stdlib/Makefile (tests): Add tst-atof1.
7724 * stdlib/tst-atof1.c: New file.
7725
a822d9f4
UD
77262006-12-09 Jakub Jelinek <jakub@redhat.com>
7727
11bf311e
UD
7728 * misc/mntent_r.c (__hasmntopt): Check p[optlen] even when p == rest.
7729 Start searching for next comma at p rather than rest.
7730 * misc/Makefile (tests): Add tst-mntent2.
7731 * misc/tst-mntent2.c: New test.
7732
a822d9f4
UD
7733 * misc/getusershell.c (initshells): Check for integer overflows.
7734 Make strings buffer one bigger as fgets always succeeds when second
7735 argument is 1. Don't use calloc for shells array. Disallow
11bf311e 7736 / as shell.
f0d5e1f6 7737
11bf311e 77382006-12-08 Ulrich Drepper <drepper@redhat.com>
f0d5e1f6 7739
11bf311e
UD
7740 * malloc/memusage.c: Handle realloc with new size of zero and
7741 non-NULL pointer correctly.
7742 (me): Really write first record twice.
7743 (struct entry): Make format bi-arch safe.
7744 (dest): Write out more realloc statistics.
7745 * malloc/memusagestat.c (struct entry): Make format bi-arch safe.
32c075e1 7746
11bf311e 77472006-12-05 Jakub Jelinek <jakub@redhat.com>
32c075e1 7748
11bf311e 7749 * nis/nis_subr.c (nis_getnames): Revert last change.
32c075e1 7750
f0d5e1f6
UD
77512006-12-04 Jakub Jelinek <jakub@redhat.com>
7752
7753 * sysdeps/unix/sysv/linux/ttyname.c: Include termios.h.
7754 (ttyname): Use tcgetattr instead of isatty, don't set errno to ENOTTY.
7755 * sysdeps/unix/sysv/linux/ttyname_r.c: Include termios.h.
7756 (__ttyname_r): Use tcgetattr instead of isatty, don't set errno to
7757 ENOTTY.
7758 * io/Makefile: Add rules to build and run tst-ttyname_r test.
7759 * io/tst-ttyname_r.c: New test.
7760
11bf311e 77612006-12-03 Kaz Kojima <kkojima@rr.iij4u.or.jp>
5df4fe08 7762
11bf311e 7763 * sysdeps/unix/sysv/linux/sh/sys/io.h: Removed.
5df4fe08 7764
11bf311e 77652006-11-30 H.J. Lu <hongjiu.lu@intel.com>
ee50871d 7766
11bf311e
UD
7767 * sysdeps/i386/i686/memcmp.S: Use jump table as the base of
7768 jump table entries.
7769
77702006-11-30 Jan Kratochvil <jan.kratochvil@redhat.com>
7771
7772 * sysdeps/unix/sysv/linux/i386/clone.S: Provide CFI for the outermost
7773 `clone' function to ensure proper unwinding stop of gdb.
7774 * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
7775
77762006-12-01 Ulrich Drepper <drepper@redhat.com>
7777
7778 * nscd/nscd.init: Remove obsolete and commented-out -S option
7779 handling.
7780
77812006-11-23 Jakub Jelinek <jakub@redhat.com>
7782
7783 [BZ #3514]
7784 * manual/string.texi (strncmp): Fix pastos from wcscmp description.
7785
7786 [BZ #3515]
7787 * manual/string.texi (strtok): Remove duplicate paragraph.
7788
77892006-12-01 Jan Kratochvil <jan.kratochvil@redhat.com>
7790
7791 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Fix compatibility with
7792 libgcc not supporting `rflags' unwinding (register # >= 17).
7793
77942006-11-30 Jakub Jelinek <jakub@redhat.com>
7795
7796 * sunrpc/svc_run.c (svc_run): Set my_pollfd to new_pollfd if realloc
7797 succeeded.
7798
77992006-11-29 Daniel Jacobowitz <dan@codesourcery.com>
7800 Jakub Jelinek <jakub@redhat.com>
7801 Jan Kratochvil <jan.kratochvil@redhat.com>
7802
7803 * sysdeps/unix/sysv/linux/x86_64/sigaction.c (restore_rt): Add correct
7804 unwind information.
7805 * sysdeps/unix/sysv/linux/x86_64/Makefile: Provide symbols for
7806 'restore_rt' even in the 'signal' directory.
7807 * sysdeps/unix/sysv/linux/x86_64/ucontext_i.sym: Extend the regs list.
ee50871d 7808
b1a758f3
UD
78092006-11-27 Jakub Jelinek <jakub@redhat.com>
7810
7811 [BZ #3559]
7812 * sunrpc/svc_run.c (svc_run): Fail instead of segfaulting if
11bf311e
UD
7813 malloc crashed. Don't allocate memory unnecessarily in each
7814 loop.
b1a758f3 7815
11bf311e 78162006-10-21 Jakub Jelinek <jakub@redhat.com>
854d1124 7817
11bf311e 7818 * resolv/mapv4v6addr.h (map_v4v6_address): Fix last change.
dfc99a56 7819
11bf311e 78202006-11-20 Ulrich Drepper <drepper@redhat.com>
dfc99a56 7821
11bf311e 7822 * resolv/mapv4v6addr.h (map_v4v6_address): Optimize a bit.
852d657c 7823
11bf311e 78242006-11-18 Bruno Haible <bruno@clisp.org>
852d657c 7825
11bf311e
UD
7826 * sysdeps/unix/sysv/linux/i386/getgroups.c (__getgroups): Invoke
7827 __sysconf only after having tried to call getgroups32.
36c0a636 7828
11bf311e 78292006-11-19 Ulrich Drepper <drepper@redhat.com>
36c0a636 7830
11bf311e
UD
7831 * nss/nss_files/files-hosts.c (LINE_PARSER): Support IPv6-style
7832 addresses for IPv4 queries if they can be mapped.
b1f0c2a6 7833
11bf311e 78342006-11-16 Jakub Jelinek <jakub@redhat.com>
b1f0c2a6 7835
11bf311e
UD
7836 * sysdeps/x86_64/fpu/s_copysignf.S (__copysignf): Switch to .text.
7837 * sysdeps/x86_64/fpu/s_copysign.S (__copysign): Likewise.
7838 (signmask): Add .size directive.
7839 (othermask): Add .type directive.
bef8927a 7840
11bf311e 78412006-11-14 Ulrich Drepper <drepper@redhat.com>
2c53fa20 7842
11bf311e 7843 * po/nl.po: Update from translation team.
854d1124 7844
11bf311e 7845 * timezone/zdump.c: Redo fix for BZ #3137.
3f1e9205 7846
11bf311e 78472006-11-14 Jakub Jelinek <jakub@redhat.com>
bef8927a 7848
11bf311e
UD
7849 * nss/nss_files/files-alias.c (get_next_alias): Set line back
7850 to first_unused after parsing :include: file.
5c2af134 7851
32c075e1 78522006-11-10 Ulrich Drepper <drepper@redhat.com>
e1b37083 7853
11bf311e
UD
7854 * timezone/africa: Update from tzdata2006o.
7855 * timezone/antarctica: Likewise.
7856 * timezone/asia: Likewise.
7857 * timezone/australasia: Likewise.
7858 * timezone/backward: Likewise.
7859 * timezone/europe: Likewise.
7860 * timezone/iso3166.tab: Likewise.
7861 * timezone/northamerica: Likewise.
7862 * timezone/southamerica: Likewise.
7863 * timezone/zone.tab: Likewise.
7864
7865 * time/tzfile.c (__tzfile_read): Extend to handle new file format
7866 on machines with 64-bit time_t.
7867
7868 * timezone/checktab.awk: Update from tzcode2006o.
7869 * timezone/ialloc.c: Likewise.
7870 * timezone/private.h: Likewise.
7871 * timezone/scheck.c: Likewise.
7872 * timezone/tzfile.h: Likewise.
7873 * timezone/tzselect.ksh: Likewise.
7874 * timezone/zdump.c: Likewise.
7875 * timezone/zic.c: Likewise.
7876
7877 [BZ #3483]
7878 * elf/ldconfig.c (main): Call setlocale and textdomain.
7879 Patch mostly by Benno Schulenberg <bensberg@justemail.net>.
7880
7881 [BZ #3480]
7882 * manual/argp.texi: Fix typos.
7883 * manual/charset.texi: Likewise.
7884 * manual/errno.texi: Likewise.
7885 * manual/filesys.texi: Likewise.
7886 * manual/lang.texi: Likewise.
7887 * manual/maint.texi: Likewise.
7888 * manual/memory.texi: Likewise.
7889 * manual/message.texi: Likewise.
7890 * manual/resource.texi: Likewise.
7891 * manual/search.texi: Likewise.
7892 * manual/signal.texi: Likewise.
7893 * manual/startup.texi: Likewise.
7894 * manual/stdio.texi: Likewise.
7895 * manual/sysinfo.texi: Likewise.
7896 * manual/syslog.texi: Likewise.
7897 * manual/time.texi: Likewise.
7898 Patch by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
7899
7900 [BZ #3465]
7901 * sunrpc/clnt_raw.c: Minimal message improvements.
7902 * sunrpc/pm_getmaps.c: Likewise.
7903 * nis/nss_nisplus/nisplus-publickey.c: Likewise.
7904 * nis/nis_print_group_entry.c: Likewise.
7905 * locale/programs/repertoire.c: Likewise.
7906 * locale/programs/charmap.c: Likewise.
7907 * malloc/memusage.sh: Likewise.
7908 * elf/dl-deps.c: Likewise.
7909 * locale/programs/ld-collate.c: Likewise.
7910 * libio/vswprintf.c: Likewise.
7911 * malloc/memusagestat.c: Likewise.
7912 * sunrpc/auth_unix.c: Likewise.
7913 * sunrpc/rpc_main.c: Likewise.
7914 * nscd/cache.c: Likewise.
7915 * locale/programs/repertoire.c: Unify output messages.
7916 * locale/programs/charmap.c: Likewise.
7917 * locale/programs/ld-ctype.c: Likewise.
7918 * locale/programs/ld-monetary.c: Likewise.
7919 * locale/programs/ld-numeric.c: Likewise.
7920 * locale/programs/ld-time.c: Likewise.
7921 * elf/ldconfig.c: Likewise.
7922 * nscd/selinux.c: Likewise.
7923 * elf/cache.c: Likewise.
7924 Patch mostly by Benno Schulenberg <bensberg@justemail.net>.
7925
5c2af134
UD
7926 [BZ #3451]
7927 * sysdeps/i386/fpu/bits/mathinline.h (floor): Make rounding mode
7928 change atomic.
7929 (ceil): Likewise.
7930
11bf311e
UD
79312006-11-10 Jakub Jelinek <jakub@redhat.com>
7932
7933 * string/strxfrm_l.c (STRXFRM): Fix trailing \1 optimization
7934 if N is one bigger than return value.
7935 * string/tst-strxfrm2.c (do_test): Also test strxfrm with l1 + 1
7936 and l1 last arguments, if buf is defined, verify the return value
7937 equals to strlen (buf) and verify no byte beyond passed length
7938 is modified.
7939
79402006-11-10 Ulrich Drepper <drepper@redhat.com>
7941
7942 * po/sv.po: Update from translation team.
7943
37afcf79
UD
79442006-11-09 Ulrich Drepper <drepper@redhat.com>
7945
7946 * sysdeps/unix/sysv/linux/x86_64/sysconf.c (intel_check_word): Add
7947 noinline attribute.
7948
79492006-11-10 Jakub Jelinek <jakub@redhat.com>
7950
7951 * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Add
7952 noinline attribute.
7953
11bf311e
UD
7954 * sysdeps/gnu/siglist.c (__old_sys_siglist, __old_sys_sigabbrev):
7955 Use __new_sys_siglist instead of _sys_siglist_internal as
7956 second macro argument.
7957 (_old_sys_siglist): Use declare_symbol_alias macro instead of
7958 strong_alias.
2692deea 7959
11bf311e
UD
79602006-11-09 Ulrich Drepper <drepper@redhat.com>
7961
7962 [BZ #3493]
7963 * posix/unistd.h (sysconf): Remove const attribute.
7964
7965 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Fix test for
7966 temporary or deprecated addresses.
7967 Patch by Sridhar Samudrala <sri@us.ibm.com>.
7968
7969 * string/Makefile (tests): Add tst-strxfrm2.
7970 * string/tst-strxfrm2.c: New file.
7971
79722006-10-09 Jakub Jelinek <jakub@redhat.com>
7973
7974 * elf/dl-debug.c (_dl_debug_initialize): Check r->r_map for 0
7975 rather than r->r_brk.
2692deea
UD
7976
79772006-11-08 Jakub Jelinek <jakub@redhat.com>
7978
11bf311e
UD
7979 * string/strxfrm_l.c (STRXFRM): Do the trailing \1 removal
7980 optimization even if needed > n.
7981
2692deea
UD
7982 * elf/dl-load.c (decompose_rpath): Return bool rather than void.
7983 If l->l_name is on inhibit_rpath list, set sps->dirs to -1 and
7984 return false, otherwise return true.
7985 (cache_rpath): Return decompose_rpath return value.
7986
11bf311e
UD
79872006-11-07 Jakub Jelinek <jakub@redhat.com>
7988
7989 * include/libc-symbols.h (declare_symbol): Rename to...
7990 (declare_symbol_alias): ... this. Add ORIGINAL argument, imply
7991 strong_alias (ORIGINAL, SYMBOL) in asm to make sure it preceedes
7992 .size directive.
7993 * sysdeps/gnu/errlist-compat.awk: Adjust for declare_symbol_alias
7994 changes.
7995 * sysdeps/gnu/siglist.c: Likewise.
7996
79972006-11-03 Steven Munroe <sjmunroe@us.ibm.com>
7998
7999 * sysdeps/powerpc/fpu/bits/mathinline.h
8000 [__LIBC_INTERNAL_MATH_INLINES]: Moved to ...
8001 * sysdeps/powerpc/fpu/math_private.h: ...here. New file.
8002
80032006-11-05 Ulrich Drepper <drepper@redhat.com>
8004
8005 * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
8006 Update handling of cache descriptor 0x49 for new models.
8007 * sysdeps/unix/sysv/linux/x86_64/sysconf.c (intel_check_word):
8008 Likewise.
8009
9666e36c
UD
80102006-11-02 Jakub Jelinek <jakub@redhat.com>
8011
8012 * malloc/memusage.c (dest): Reset not_me back to false after
8013 printing statistics.
8014
11bf311e
UD
80152006-11-02 Ulrich Drepper <drepper@redhat.com>
8016
8017 * configure.in: Work around ld --help change and avoid -z relro
8018 test completely if the architecture doesn't care about security.
8019
80202006-11-01 Ulrich Drepper <drepper@redhat.com>
8021
8022 * po/sv.po: Update from translation team.
8023
80242006-10-31 Ulrich Drepper <drepper@redhat.com>
8025
8026 * stdlib/atexit.c (atexit): Don't mark as hidden when used to
8027 generate compatibility version.
8028
80292006-10-29 Ulrich Drepper <drepper@redhat.com>
8030
8031 * configure.in: Relax -z relro requirement a bit.
8032
8033 * po/sv.po: Update from translation team.
8034
80352006-10-29 Jakub Jelinek <jakub@redhat.com>
8036
8037 * elf/dl-sym.c (do_sym): Use RTLD_SINGLE_THREAD_P.
8038 * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Likewise.
8039 * elf/dl-close.c (_dl_close_worker): Likewise.
8040 * elf/dl-open.c (_dl_open_worker): Likewise.
8041 * sysdeps/generic/sysdep-cancel.h (RTLD_SINGLE_THREAD_P): Define.
8042
b2369ca3
UD
80432006-10-27 Ulrich Drepper <drepper@redhat.com>
8044
11bf311e
UD
8045 * configure.in: Require assembler support for visibility, compiler
8046 support for visibility and aliases, linker support for various -z
8047 options.
8048 * Makeconfig: Remove conditional code which now is unnecessary.
8049 * config.h.in: Likewise.
8050 * config.make.in: Likewise.
8051 * dlfcn/Makefile: Likewise.
8052 * elf/Makefile: Likewise.
8053 * elf/dl-load.c: Likewise.
8054 * elf/rtld.c: Likewise.
8055 * include/libc-symbols.h: Likewise.
8056 * include/stdio.h: Likewise.
8057 * io/Makefile: Likewise.
8058 * io/fstat.c: Likewise.
8059 * io/fstat64.c: Likewise.
8060 * io/fstatat.c: Likewise.
8061 * io/fstatat64.c: Likewise.
8062 * io/lstat.c: Likewise.
8063 * io/lstat64.c: Likewise.
8064 * io/mknod.c: Likewise.
8065 * io/mknodat.c: Likewise.
8066 * io/stat.c: Likewise.
8067 * io/stat64.c: Likewise.
8068 * libio/stdio.c: Likewise.
8069 * nscd/Makefile: Likewise.
8070 * stdlib/Makefile: Likewise.
8071 * stdlib/atexit.c: Likewise.
8072 * sysdeps/generic/ldsodefs.h: Likewise.
8073 * sysdeps/i386/dl-machine.h: Likewise.
8074 * sysdeps/i386/sysdep.h: Likewise.
8075 * sysdeps/i386/i686/memcmp.S: Likewise.
8076 * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
8077 * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
8078 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
8079
8080 * Makerules: USE_TLS support is now default.
8081 * tls.make.c: Likewise.
8082 * csu/Versions: Likewise.
8083 * csu/libc-start.c: Likewise.
8084 * csu/libc-tls.c: Likewise.
8085 * csu/version.c: Likewise.
8086 * dlfcn/dlinfo.c: Likewise.
8087 * elf/dl-addr.c: Likewise.
8088 * elf/dl-cache.c: Likewise.
8089 * elf/dl-close.c: Likewise.
8090 * elf/dl-iteratephdr.c: Likewise.
8091 * elf/dl-load.c: Likewise.
8092 * elf/dl-lookup.c: Likewise.
8093 * elf/dl-object.c: Likewise.
8094 * elf/dl-open.c: Likewise.
8095 * elf/dl-reloc.c: Likewise.
8096 * elf/dl-support.c: Likewise.
8097 * elf/dl-sym.c: Likewise.
8098 * elf/dl-sysdep.c: Likewise.
8099 * elf/dl-tls.c: Likewise.
8100 * elf/ldconfig.c: Likewise.
8101 * elf/rtld.c: Likewise.
8102 * elf/tst-tls-dlinfo.c: Likewise.
8103 * elf/tst-tls1.c: Likewise.
8104 * elf/tst-tls10.h: Likewise.
8105 * elf/tst-tls14.c: Likewise.
8106 * elf/tst-tls2.c: Likewise.
8107 * elf/tst-tls3.c: Likewise.
8108 * elf/tst-tls4.c: Likewise.
8109 * elf/tst-tls5.c: Likewise.
8110 * elf/tst-tls6.c: Likewise.
8111 * elf/tst-tls7.c: Likewise.
8112 * elf/tst-tls8.c: Likewise.
8113 * elf/tst-tls9.c: Likewise.
8114 * elf/tst-tlsmod1.c: Likewise.
8115 * elf/tst-tlsmod13.c: Likewise.
8116 * elf/tst-tlsmod13a.c: Likewise.
8117 * elf/tst-tlsmod14a.c: Likewise.
8118 * elf/tst-tlsmod2.c: Likewise.
8119 * elf/tst-tlsmod3.c: Likewise.
8120 * elf/tst-tlsmod4.c: Likewise.
8121 * elf/tst-tlsmod5.c: Likewise.
8122 * elf/tst-tlsmod6.c: Likewise.
8123 * include/errno.h: Likewise.
8124 * include/link.h: Likewise.
8125 * include/tls.h: Likewise.
8126 * locale/global-locale.c: Likewise.
8127 * locale/localeinfo.h: Likewise.
8128 * malloc/arena.c: Likewise.
8129 * malloc/hooks.c: Likewise.
8130 * malloc/malloc.c: Likewise.
8131 * resolv/Versions: Likewise.
8132 * sysdeps/alpha/dl-machine.h: Likewise.
8133 * sysdeps/alpha/libc-tls.c: Likewise.
8134 * sysdeps/generic/ldsodefs.h: Likewise.
8135 * sysdeps/generic/tls.h: Likewise.
8136 * sysdeps/i386/dl-machine.h: Likewise.
8137 * sysdeps/ia64/dl-machine.h: Likewise.
8138 * sysdeps/ia64/libc-tls.c: Likewise.
8139 * sysdeps/mach/hurd/fork.c: Likewise.
8140 * sysdeps/mach/hurd/i386/tls.h: Likewise.
8141 * sysdeps/powerpc/powerpc32/dl-machine.c: Likwise.
8142 * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
8143 * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
8144 * sysdeps/s390/libc-tls.c: Likewise.
8145 * sysdeps/s390/s390-32/dl-machine.h: Likewise.
8146 * sysdeps/s390/s390-64/dl-machine.h: Likewise.
8147 * sysdeps/sh/dl-machine.h: Likewise.
8148 * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
8149 * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
8150 * sysdeps/x86_64/dl-machine.h: Likewise.
8151
131c4428
UD
8152 * elf/dl-close.c (_dl_close_worker): Renamed from _dl_close and
8153 split out locking and parameter checking.
8154 (_dl_close): Call _dl_close_worker after locking and checking.
8155 * elf/dl-open.c (_dl_open): Call _dl_close_worker instead of
8156 _dl_close.
ffd0e1b7
UD
8157 * elf/Makefile: Add rules to build and run tst-thrlock.
8158 * elf/tst-thrlock.c: New file.
131c4428 8159
11bf311e
UD
8160 [BZ #3426]
8161 * stdlib/stdlib.h: Adjust comment for canonicalize_file_name to
8162 reality.
8163
b2369ca3
UD
8164 [BZ #3429]
8165 * elf/dl-open.c (dl_open_worker): Keep holding dl_load_lock until
131c4428 8166 we are sure we do not need it anymore for _dl_close. Also move
b2369ca3
UD
8167 the asserts inside the lock region.
8168 Patch mostly by Suzuki <suzuki@in.ibm.com>.
8169
11bf311e
UD
81702006-10-27 Jakub Jelinek <jakub@redhat.com>
8171
8172 * elf/dl-lookup.c (_dl_debug_bindings): Remove unused symbol_scope
8173 argument.
8174 (_dl_lookup_symbol_x): Adjust caller.
8175
8176 * sysdeps/generic/ldsodefs.h (struct link_namespaces): Remove
8177 _ns_global_scope.
8178 * elf/rtld.c (dl_main): Don't initialize _ns_global_scope.
8179
8180 * elf/dl-libc.c: Revert l_scope name changes.
8181 * elf/dl-load.c: Likewise.
8182 * elf/dl-object.c: Likewise.
8183 * elf/rtld.c: Likewise.
8184 * elf/dl-close.c (_dl_close): Likewise.
8185 * elf/dl-open.c (dl_open_worker): Likewise. If not SINGLE_THREAD_P,
8186 always use __rtld_mrlock_{change,done}. Always free old scope list
8187 here if not l_scope_mem.
8188 * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Revert l_scope name
8189 change. Never free scope list here. Just __rtld_mrlock_lock before
8190 the lookup and __rtld_mrlock_unlock it after the lookup.
8191 * elf/dl-sym.c: Likewise.
8192 * include/link.h (struct r_scoperec): Remove.
8193 (struct link_map): Replace l_scoperec with l_scope, l_scoperec_mem
8194 with l_scope_mem and l_scoperec_lock with l_scope_lock.
8195
81962006-10-25 Ulrich Drepper <drepper@redhat.com>
8197
8198 * sysdeps/gnu/netinet/tcp.h: Define TCP_CONGESTION.
8199
82002006-10-18 Ulrich Drepper <drepper@redhat.com>
8201
8202 * configure.in: Disable building profile libraries by default.
8203
609cf614
UD
82042006-10-17 Jakub Jelinek <jakub@redhat.com>
8205
8206 * sunrpc/xdr_mem.c (xdrmem_setpos): Don't compare addresses
8207 as signed longs, check for x_base + pos overflow.
8208 * sunrpc/Makefile (tests): Add tst-xdrmem2.
8209 * sunrpc/tst-xdrmem2.c: New test.
8210
11bf311e
UD
82112006-10-18 Ulrich Drepper <drepper@redhat.com>
8212
8213 * elf/dl-lookup.c (_dl_lookup_symbol_x): Add warning to
8214 _dl_lookup_symbol_x code.
8215
82162006-10-17 Jakub Jelinek <jakub@redhat.com>
8217
8218 * elf/dl-runtime.c: Include sysdep-cancel.h.
8219 (_dl_fixup, _dl_profile_fixup): Use __rtld_mrlock_* and
8220 scoperec->nusers only if !SINGLE_THREAD_P. Use atomic_*
8221 instead of catomic_* macros.
8222 * elf/dl-sym.c: Include sysdep-cancel.h.
8223 (do_sym): Use __rtld_mrlock_* and scoperec->nusers only
8224 if !SINGLE_THREAD_P. Use atomic_* instead of catomic_* macros.
8225 * elf/dl-close.c: Include sysdep-cancel.h.
8226 (_dl_close): Use __rtld_mrlock_* and scoperec->nusers only
8227 if !SINGLE_THREAD_P. Use atomic_* instead of catomic_* macros.
8228 * elf/dl-open.c: Include sysdep-cancel.h.
8229 (dl_open_worker): Use __rtld_mrlock_* and scoperec->nusers only
8230 if !SINGLE_THREAD_P. Use atomic_* instead of catomic_* macros.
8231
82322006-10-17 Jakub Jelinek <jakub@redhat.com>
8233
8234 [BZ #3313]
8235 * malloc/malloc.c (malloc_consolidate): Set maxfb to address of last
8236 fastbin rather than end of fastbin array.
8237
82382006-10-18 Ulrich Drepper <drepper@redhat.com>
8239
8240 * sysdeps/i386/i486/bits/atomic.h (catomic_decrement): Use correct
8241 body macro.
8242 * sysdeps/x86_64/bits/atomic.h
8243 (__arch_c_compare_and_exchange_val_64_acq): Add missing casts.
8244 (catomic_decrement): Use correct body macro.
8245
82462006-10-17 Jakub Jelinek <jakub@redhat.com>
8247
8248 * include/atomic.h: Add a unique prefix to all local variables
8249 in macros.
8250 * csu/tst-atomic.c (do_test): Test also catomic_* macros.
8251
4a85a8ee
UD
82522006-10-16 Ulrich Drepper <drepper@redhat.com>
8253
8254 [BZ #3369]
8255 * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Fix typos in rules 4
8256 and 7.
8257
11bf311e
UD
82582006-10-14 Ulrich Drepper <drepper@redhat.com>
8259
8260 * resolv/arpa/nameser.h: Document that ns_t_a6 is deprecated.
8261
ff8d96be
UD
82622006-10-13 Ulrich Drepper <drepper@redhat.com>
8263
11bf311e
UD
8264 [BZ #3313]
8265 * malloc/malloc.c (malloc_consolidate): Don't use get_fast_max to
8266 determine highest fast bin to consolidate, always look into all of
8267 them.
8268 (do_check_malloc_state): Only require for empty bins for large
8269 sizes in main arena.
8270
8271 * libio/stdio.h: Add more __wur attributes.
8272
ff8d96be
UD
8273 * elf/dl-minimal.c (realloc): Optimize last patch.
8274
90a0991a
UD
82752006-10-12 Richard Sandiford <richard@codesourcery.com>
8276
8277 [BZ #3352]
8278 * elf/dl-minimal.c (realloc): Let malloc() return a new pointer,
8279 and use memcpy() if it does.
ff8d96be 8280
11bf311e
UD
82812006-11-12 Andreas Jaeger <aj@suse.de>
8282
8283 [BZ #2510]
8284 * manual/search.texi (Hash Search Function): Clarify.
8285 (Array Search Function): Clarify.
8286
82872006-11-12 Joseph Myers <joseph@codesourcery.com>
8288
8289 [BZ #2830]
8290 * math/atest-exp.c (main): Cast hex value to mp_limb_t before
8291 shifting.
8292 * math/atest-exp2.c (read_mpn_hex): Likewise.
8293 * math/atest-sincos.c (main): Likewise.
8294
37fb7595
UD
82952006-10-11 Ulrich Drepper <drepper@redhat.com>
8296
11bf311e
UD
8297 * sysdeps/unix/sysv/linux/syscalls.list: Add epoll_pwait.
8298 * sysdeps/unix/sysv/linux/sys/epoll.h: Declare epoll_pwait.
8299 * sysdeps/unix/sysv/linux/Versions (libc): Add epoll_pwait for
8300 version GLIBC_2.6.
8301 * Versions.def: Add GLIBC_2.6 for libc.
8302
46c38bd7
UD
8303 * sysdeps/unix/sysv/linux/i386/sysdep.h (DOARGS_6): Fix offset.
8304
11bf311e
UD
8305 * sysdeps/i386/i486/bits/atomic.h: Add catomic_* support.
8306
83072006-10-11 Jakub Jelinek <jakub@redhat.com>
8308
8309 * malloc/malloc.c (_int_malloc): Remove unused any_larger variable.
8310
8311 * nis/nis_defaults.c (__nis_default_access): Don't call getenv twice.
8312
8313 * nis/nis_subr.c (nis_getnames): Use __secure_getenv instead of getenv.
8314 * sysdeps/generic/unsecvars.h: Add NIS_PATH.
8315
83162006-10-11 Ulrich Drepper <drepper@redhat.com>
8317
8318 * include/atomic.c: Define catomic_* operations.
8319 * sysdeps/x86_64/bits/atomic.h: Likewise. Fix a few minor problems.
8320 * stdlib/cxa_finalize.c: Use catomic_* operations instead of atomic_*.
8321 * malloc/memusage.c: Likewise.
8322 * gmon/mcount.c: Likewise.
8323 * elf/dl-close.c: Likewise.
8324 * elf/dl-open.c: Likewise.
8325 * elf/dl-profile.c: Likewise.
8326 * elf/dl-sym.c: Likewise.
8327 * elf/dl-runtime.c: Likewise.
8328 * elf/dl-fptr.c: Likewise.
8329 * resolv/res_libc.c: Likewise.
8330
2a6ee549
UD
83312006-10-10 Ulrich Drepper <drepper@redhat.com>
8332
8333 * nis/nis_subr.c (nis_getnames): Add trailing dot to NIS_PATH
8334 components which lack them.
8335
8336 * nis/nis_subr.c (nis_getnames): Make sure that we always return
8337 at least one entry consisting of the parameter concatenated with
8338 the domain.
8339
11bf311e 83402006-10-10 Roland McGrath <roland@frob.com>
c4f9fc3a 8341
11bf311e
UD
8342 * sysdeps/mach/hurd/utimes.c: Use a union to avoid an improper cast.
8343 * sysdeps/mach/hurd/futimes.c: Likewise.
8344 * sysdeps/mach/hurd/lutimes.c: Likewise.
8345
83462006-10-09 Ulrich Drepper <drepper@redhat.com>
8347 Jakub Jelinek <jakub@redhat.com>
8348
8349 Implement reference counting of scope records.
8350 * elf/dl-close.c (_dl_close): Remove all scopes from removed objects
8351 from the list in objects which remain. Always allocate new scope
8352 record.
8353 * elf/dl-open.c (dl_open_worker): When growing array for scopes,
8354 don't resize, allocate a new one.
8355 * elf/dl-runtime.c: Update reference counters before using a scope
8356 array.
8357 * elf/dl-sym.c: Likewise.
8358 * elf/dl-libc.c: Adjust for l_scope name change.
8359 * elf/dl-load.c: Likewise.
8360 * elf/dl-object.c: Likewise.
8361 * elf/rtld.c: Likewise.
8362 * include/link.h: Include <rtld-lowlevel.h>. Define struct
8363 r_scoperec. Replace r_scope with pointer to r_scoperec structure.
8364 Add l_scoperec_lock.
8365 * sysdeps/generic/ldsodefs.h: Include <rtld-lowlevel.h>.
8366 * sysdeps/generic/rtld-lowlevel.h: New file.
8367
8368 * include/atomic.h: Rename atomic_and to atomic_and_val and
8369 atomic_or to atomic_or_val. Define new macros atomic_and and
8370 atomic_or which do not return values.
8371 * sysdeps/x86_64/bits/atomic.h: Define atomic_and and atomic_or.
8372 Various cleanups.
8373 * sysdeps/i386/i486/bits/atomic.h: Likewise.
8374
8375 * po/sv.po: Update from translation team.
8376
83772006-10-07 Ulrich Drepper <drepper@redhat.com>
8378
8379 * Versions.def: Add GLIBC_2.6 to libpthread.
8380
8381 * include/shlib-compat.h (SHLIB_COMPAT): Expand parameters before use.
8382 (versioned_symbol): Likewise.
8383 (compat_symbol): Likewise.
8384
8385 * po/tr.po: Update from translation team.
feb87ad1 8386
4df92d57
UD
83872006-10-06 Ulrich Drepper <drepper@redhat.com>
8388
11bf311e
UD
8389 * nis/Banner: Removed. It's been integral part forever and the
8390 author info is incomplete anyway.
8391 * libio/Banner: Likewise.
8392
4df92d57
UD
8393 * nis/nis_table.c (nis_list): If __follow_path fails in the new
8394 code, make sure the nis_freeresult call doesn't crash and that the
8395 result is reported correctly.
8396
68361572
UD
83972006-09-27 Jakub Jelinek <jakub@redhat.com>
8398
8399 * nis/nis_table.c (nis_list): Handle FOLLOW_PATH | ALL_RESULTS
8400 when callback is NULL.
8401
8402 * nis/Versions (libnss_nisplus): Add
8403 _nss_nisplus_initgroups_dyn@@GLIBC_PRIVATE.
8404 * nis/Makefile (libnss_nisplus-routines): Add nisplus-initgroups.
8405 * nis/nss_nisplus/nisplus-grp.c (tablename_val, tablename_len,
8406 _nss_create_tablename): Rename to...
8407 (grp_tablename_val, grp_tablename_len, _nss_grp_create_tablename):
8408 ... these. No longer static.
8409 (internal_setgrent): Adjust users.
8410 (_nss_nisplus_getgrnam_r, _nss_nisplus_getgrgid_r): Likewise.
8411 Don't use locking around _nss_grp_create_tablename call.
8412 * nis/nss_nisplus/nisplus-initgroups.c: New file.
8413
11bf311e
UD
84142006-10-06 Ulrich Drepper <drepper@redhat.com>
8415
8416 * version.h (VERSION): Bump to 2.5.90 for new development tree.
8417
3a4e0609
UD
84182006-10-06 Andreas Jaeger <aj@suse.de>
8419
8420 * include/features.h (__GLIBC_MINOR__): It's glibc 2.5 now.
8421
84222006-10-06 Ulrich Drepper <drepper@redhat.com>
8423
8424 * po/pl.po: Update from translation team.
8425
8426 * nscd/nscd.c (main): Fix typo in message.
8427 Patch by Jakub Bogsz <qboosh@pld-linux.org>.
8428
97e57dee
UD
84292006-10-02 Jakub Jelinek <jakub@redhat.com>
8430
8431 [BZ #3291]
8432 * sysdeps/unix/sysv/linux/sparc/sparc64/pause.c: Include
8433 errno.h, signal.h, unistd.h and sysdep-cancel.h.
8434 (__sigprocmask): Define.
8435
768027a4
UD
84362006-10-02 Ulrich Drepper <drepper@redhat.com>
8437
8438 * elf/rtld.c (dl_main): Don't use prelinking if LD_DYNAMIC_WEAK is
8439 used.
8440
0b25a49a
UD
84412006-10-02 Jakub Jelinek <jakub@redhat.com>
8442
8443 * nscd/mem.c (mempool_alloc): Round array size to 16 bytes
8444 in oldtotal and newtotal calculation.
8445 * nscd/nscd-client.h (struct mapped_database): Add datasize
8446 field.
8447 * nscd/nscd_helper.c (get_mapping): Initialize datasize field.
8448 (__nscd_get_map_ref): Get a new mapping even if mapping's data_size
8449 increased.
8450 (__nscd_cache_search): Add checks to make sure we never reference
8451 data beyond the current mapping.
8452
a1286745
UD
84532006-10-02 Dmitry V. Levin <ldv@altlinux.org>
8454
d4ed7561
UD
8455 * sysdeps/posix/getaddrinfo.c (match_prefix): Make mask and val
8456 variables const to avoid compiler warnings.
8457
a1286745
UD
8458 * io/fts.c (fts_close): Remove redundant checks.
8459 (fts_build): Likewise.
8460 (fts_palloc): Likewise.
8461
8462 * manual/message.texi (Advanced gettext functions,
8463 Using gettextized software): Fix typos.
8464
f01e4069
UD
84652006-09-30 Ulrich Drepper <drepper@redhat.com>
8466
8467 * posix/glob.c (glob_in_dir): Add some comments and asserts to
8468 explain why there are no leaks.
8469
154619b5
UD
84702006-09-29 Ulrich Drepper <drepper@redhat.com>
8471
690c3947
UD
8472 * libio/wmemstream.c: Include <wchar.h>.
8473 * libio/bug-wmemstream1.c: Likewise.
8474 * libio/tst-wmemstream1.c: Likewise.
8475 * libio/tst-wmemstream2.c: Likewise.
8476
88cc61e8
UD
8477 * version.h (RELEASE): Bump to 2.5.
8478 * README: Regenerated.
8479
a70c18b0
UD
8480 * locale/iso-3166.def: Add Aaland Islands and Montenegro.
8481
154619b5
UD
8482 [BZ #3273]
8483 * nscd/nscd_initgroups.c (__nscd_getgrouplist): It is OK to have
8484 found no group members.
8485 Patch by Petr Baudis.
8486
84872006-09-29 Jakub Jelinek <jakub@redhat.com>
8488
8489 * elf/rtld.c (_dl_start_final): If not USE___THREAD, don't
8490 assert bootstrap_map.l_tls_modid is zero.
8491 (_dl_start): Initialize bootstrap_map.l_tls_modid to 0
8492 if USE___THREAD.
8493
1c31aa79
UD
84942006-09-27 Ulrich Drepper <drepper@redhat.com>
8495
8496 * libio/stdio.h: Move open_wmemstream prototype to ...
8497 * wcsmbs/wchar.h: ... here.
8498
f1122ec3
UD
84992006-09-25 Jakub Jelinek <jakub@redhat.com>
8500
8501 [BZ #3252]
8502 * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat): Handle only
8503 fchownat syscall and __ASSUME_LCHOWN_SYSCALL case inline, call
8504 __{,l}chown to handle the rest.
8505 * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Handle only
8506 fchownat syscall and __ASSUME_32BITUIDS case inline, call
8507 __{,l}chown to handle the rest.
8508 * sysdeps/unix/sysv/linux/sparc/sparc32/fchownat.c: Include
8509 i386/fchownat.c.
8510 * sysdeps/unix/sysv/linux/s390/s390-32/fchownat.c: Likewise.
8511 * sysdeps/unix/sysv/linux/sh/fchownat.c: Likewise.
8512
8513 [BZ #3253]
8514 * posix/glob.c (glob_in_dir): Don't alloca one struct globlink at a
8515 time, rather allocate increasingly bigger arrays of pointers, if
8516 possible with alloca, if too large with malloc.
8517
85182006-09-24 Jakub Jelinek <jakub@redhat.com>
8519
8520 * sysdeps/powerpc/fpu/libm-test-ulps: Updated.
8521
8522 * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Fix 2 typos.
8523
457b559e
UD
85242006-09-24 Ulrich Drepper <drepper@redhat.com>
8525
8526 * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Implement rule 4,
8527 home addresses.
8528 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Recognize
8529 IFA_F_HOMEADDRESS flag for interfaces.
8530 * include/ifaddrs.h (struct in6addrinfo): Define
8531 in6ai_homeaddress.
8532
4a132246
UD
85332006-09-21 Jakub Jelinek <jakub@redhat.com>
8534
8535 [BZ #3225]
8536 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (PTR_MANGLE3,
8537 PTR_DEMANGLE3): Define.
8538 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h (PTR_MANGLE3,
8539 PTR_DEMANGLE3): Likewise.
8540 * sysdeps/powerpc/powerpc32/__longjmp-common.S (__longjmp): Use them.
8541 * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp):
8542 Likewise.
8543 * sysdeps/powerpc/powerpc64/__longjmp-common.S (__longjmp): Likewise.
8544
c69136ae
UD
85452006-09-20 Jakub Jelinek <jakub@redhat.com>
8546
8547 * po/libc.pot: Regenerated.
8548 * po/be.po: Updated.
8549 * po/ca.po: Likewise.
8550 * po/cs.po: Likewise.
8551 * po/da.po: Likewise.
8552 * po/de.po: Likewise.
8553 * po/el.po: Likewise.
8554 * po/en_GB.po: Likewise.
8555 * po/es.po: Likewise.
8556 * po/fi.po: Likewise.
8557 * po/fr.po: Likewise.
8558 * po/gl.po: Likewise.
8559 * po/hr.po: Likewise.
8560 * po/hu.po: Likewise.
8561 * po/ja.po: Likewise.
8562 * po/ko.po: Likewise.
8563 * po/nb.po: Likewise.
8564 * po/nl.po: Likewise.
8565 * po/pl.po: Likewise.
8566 * po/pt_BR.po: Likewise.
8567 * po/ru.po: Likewise.
8568 * po/rw.po: Likewise.
8569 * po/sk.po: Likewise.
8570 * po/sv.po: Likewise.
8571 * po/tr.po: Likewise.
8572 * po/zh_CN.po: Likewise.
8573 * po/zh_TW.po: Likewise.
8574
8575 [BZ #3137]
8576 * iconv/iconv_prog.c (main): Fix spelling in error message.
8577 * iconv/iconvconfig.c (main): Likewise.
8578 * locale/programs/ld-collate.c (handle_ellipsis): Likewise.
8579 * locale/programs/ld-ctype.c (charclass_symbolic_ellipsis): Likewise.
8580 * locale/programs/localedef.c (main): Likewise.
8581 * locale/programs/repertoire.c (repertoire_read): Likewise.
8582 * timezone/zdump.c (main): Likewise.
8583 * nscd/connections.c (handle_request): Fix spelling in log message.
8584 Patch by Malcolm Parsons <malcolm.parsons@gmail.com>.
8585
83b3108c
UD
85862006-09-20 Ulrich Drepper <drepper@redhat.com>
8587
8588 * inet/inet6_option.c: Also emit linker warnings for the RFC 2292
8589 interfaces.
8590
89210b4c
AJ
85912006-09-20 Andreas Jaeger <aj@suse.de>
8592
8593 * math/libm-test.inc (lrint_test_upward): Fix typo.
8594
6624dbc0
UD
85952006-06-17 Joseph S. Myers <joseph@codesourcery.com>
8596
8597 [BZ #2592]
8598 * math/libm-test.inc (lrint_test_tonearest): New function.
8599 (lrint_test_towardzero): New function.
8600 (lrint_test_downward): New function.
8601 (lrint_test_upward): New function.
8602 (main): Run these new tests.
8603 * sysdeps/ieee754/dbl-64/s_llrint.c (__llrint): Correct rounding
8604 of values near to 0.
8605 (two52): Use double not long double.
8606 * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Likewise.
8607 * sysdeps/ieee754/flt-32/s_llrintf.c (__llrintf): Likewise.
8608 (two23): Use float not double.
8609 * sysdeps/ieee754/flt-32/s_lrintf.c (__lrintf): Likewise.
8610 (two23): Use float not double.
8611 * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl): Likewise.
8612 * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Likewise.
8613 * sysdeps/ieee754/ldbl-96/s_llrintl.c (__llrintl): Likewise.
8614 * sysdeps/ieee754/ldbl-96/s_lrintl.c (__lrintl): Likewise.
8615
60cb50c7
UD
86162006-09-20 Martin Schwidefsky <schwidefsky@de.ibm.com>
8617
8618 * sysdeps/unix/sysv/linux/s390/s390-32/makecontext.c (__makecontext):
8619 Cast sp to unsigned long to avoid compiler warning.
8620 Use __makecontext_ret function instead of a trampoline on the stack.
8621 (__makecontext_ret): New function.
8622 * sysdeps/unix/sysv/linux/s390/s390-64/makecontext.c: Likewise.
8623
33315ced
UD
86242006-09-19 Jakub Jelinek <jakub@redhat.com>
8625
8626 * elf/dl-cache.c (HWCAP_CHECK): If _DL_PLATFORMS_COUNT, but
8627 platform == -1, reject any libs with non-zero _DL_HWCAP_PLATFORM
8628 bits.
8629
1ee2ff20
UD
86302006-09-19 Ulrich Drepper <drepper@redhat.com>
8631
8632 * elf/dl-close.c (_dl_close): If dependency is not unloaded make
8633 sure no reference to the unloaded map's search list remains in the
8634 dependency's scope.
8635
86362006-09-16 Jakub Jelinek <jakub@redhat.com>
8637
8638 * elf/Makefile: Add rules to build and run unload7 test.
8639 * elf/unload7.c: New test.
8640 * elf/unload7mod1.c: New file.
8641 * elf/unload7mod2.c: New file.
8642
0466106e
UD
86432006-09-18 Jakub Jelinek <jakub@redhat.com>
8644
8645 * sysdeps/unix/sysv/linux/sys/ptrace.h (PT_GETEVENTMSG): Fix pasto.
8646 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h (PTRACE_SETOPTIONS,
8647 PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
8648 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h (PTRACE_SETOPTIONS,
8649 PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Likewise.
8650 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h (PTRACE_SETOPTIONS,
8651 PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Likewise.
8652 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h (PTRACE_SETOPTIONS,
8653 PTRACE_GETEVENTMSG): Likewise.
8654 (PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Change to the arch independent
8655 values.
8656
9c316a45
UD
86572006-09-17 Mike Frysinger <vapier@gentoo.org>
8658
0466106e
UD
8659 * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_SETOPTIONS,
8660 PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
8661 * sysdeps/unix/sysv/linux/ptrace.c (ptrace): Check PTRACE_SETOPTIONS,
8662 PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO and PTRACE_SETSIGINFO.
9c316a45
UD
8663
86642006-09-16 Jakub Jelinek <jakub@redhat.com>
8665
8666 * sysdeps/powerpc/powerpc32/register-dump.h (register_dump): Don't
8667 write '\0' to the fd.
8668 * sysdeps/mach/hurd/powerpc/register-dump.h (register_dump): Likewise.
8669 * sysdeps/powerpc/powerpc64/register-dump.h (register_dump): Likewise.
8670 Change regs to unsigned long pointer from unsigned int, fix fscr
8671 offset.
8672
fb146a76
UD
86732006-09-14 Jakub Jelinek <jakub@redhat.com>
8674
8675 * io/Makefile (CFLAGS-fstatat.c): Set.
8676 (CFLAGS-fstatat64.c): Likewise.
8677 (CFLAGS-mknodat.c): Likewise.
8678
8679 * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Comment fixes.
8680 * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
8681 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Rewritten.
8682 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Rewritten.
8683
4cd3633d
UD
86842006-09-14 Jakub Jelinek <jakub@redhat.com>
8685 Steven Munroe <sjmunroe@us.ibm.com>
fb146a76 8686
4cd3633d
UD
8687 * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add 4 new cap
8688 names to the beginning. Rename "cell" to "cellbe".
8689 (_dl_powerpc_platforms): New.
8690 * sysdeps/powerpc/dl-procinfo.h (_DL_HWCAP_FIRST): Decrease.
8691 (HWCAP_IMPORTANT): Remove power{4,5,5+} and cell.
8692 (_DL_PLATFORMS_COUNT, _DL_FIRST_PLATFORM): Define.
8693 (_DL_HWCAP_PLATFORM): Define to new mask.
8694 (_dl_platform_string, _dl_string_platform): New functions.
8695 * sysdeps/powerpc/sysdep.h (PPC_FEATURE_BOOKE, PPC_FEATURE_SMT,
8696 PPC_FEATURE_ICACHE_SNOOP, PPC_FEATURE_ARCH_2_05): Define.
8697
30aa5785
UD
86982006-09-12 Jakub Jelinek <jakub@redhat.com>
8699
8700 [BZ #2526]
8701 * README.libm: Fix a thinko in sqrt algorithm description.
8702
8703 [BZ #3143]
8704 * manual/string.texi (argz_delete): Fix prototype.
8705 Patch by <alpt@freaknet.org>.
8706
87072006-08-26 Joseph Myers <joseph@codesourcery.com>
8708
8709 [BZ #3138]
8710 * io/test-lfs.c (do_prepare): Give name_len type size_t.
8711 * io/tst-fcntl.c (do_prepare): Likewise.
8712 * posix/tst-exec.c (do_prepare): Likewise.
8713 * posix/tst-preadwrite.c (do_prepare): Likewise.
8714 * posix/tst-spawn.c (do_prepare): Likewise.
8715 * posix/tst-truncate.c (do_prepare): Likewise.
8716 * rt/tst-aio.c (do_prepare): Likewise.
8717 * rt/tst-aio64.c (do_prepare): Likewise.
8718 * stdlib/test-canon2.c (do_prepare): Give test_dir_len type
8719 size_t.
8720
d26d01d1
UD
87212006-09-09 Ulrich Drepper <drepper@redhat.com>
8722
41aba3d7
UD
8723 [BZ #2821]
8724 * time/mktime.c (guess_time_tm): Fix overflow detection.
8725 * time/Makefile (tests): Add bug-mktime1.
8726 * time/bug-mktime1.c: New file.
8727
eaa51b47 8728 [BZ #3189, #3188]
d26d01d1 8729 * misc/sys/mman.h (remap_file_pages): Make available for _GNU_SOURCE.
eaa51b47 8730 (mremap): Likewise.
d26d01d1 8731
ba40cc15
UD
87322006-09-07 Jakub Jelinek <jakub@redhat.com>
8733
2b6a801e
UD
8734 [BZ #1006]
8735 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela):
8736 Ensure relocation doesn't clobber any bits outside of the
8737 immediate field for R_SPARC_TLS_LE_HIX22, R_SPARC_WDISP30,
8738 R_SPARC_HI22 and R_SPARC_H44.
8739
469615bd
UD
8740 [BZ #2775]
8741 * malloc/malloc.c (sYSMALLOc): Only call grow_heap if
8742 (long) (MINSIZE + nb - old_size) is positive.
8743
8744 * malloc/arena.c (grow_heap): When growing bail even if new_size
8745 is negative.
8746
ba40cc15
UD
8747 [BZ #3155]
8748 * sysdeps/powerpc/powerpc32/fpu/s_lrint.S (__lrint): Don't access
8749 stack below r1.
8750
243b9ac1
UD
87512006-09-06 Jakub Jelinek <jakub@redhat.com>
8752
ba40cc15
UD
8753 * posix/regex_internal.c (re_string_reconstruct): Handle
8754 offset < pstr->valid_raw_len && pstr->offsets_needed case.
8755 Ensure no bytes read before raw_mbs array. Pass a saved copy of
8756 pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
8757 re_string_context_at.
8758 * posix/Makefile: Add rules to build and run bug-regex26 test.
8759 * posix/bug-regex26.c: New test.
8760
243b9ac1
UD
8761 * locale/programs/ld-collate.c (collate_read): Goto sym_equiv_free
8762 rather than col_sym_free. Move seqp declaration earlier.
8763
8764 * resolv/gai_suspend.c (gai_suspend): Make sure result is initialized.
8765
d052233c
UD
87662006-09-05 Jakub Jelinek <jakub@redhat.com>
8767
8768 * nscd/initgrcache.c (addinitgroupsX): Move any_success
8769 decl before first goto out.
8770
71213dc2
UD
87712006-09-04 Jakub Jelinek <jakub@redhat.com>
8772
8773 * Makerules (shlib.lds): If have-hash-style, put .hash section
8774 at the end of the RO segment.
8775
87762006-09-04 Ulrich Drepper <drepper@redhat.com>
8777
8778 * elf/do-lookup.h (do_lookup_x): Initialize symidx in case the new
8779 style hash table format is used.
8780
03eeff83
UD
87812006-09-04 Jakub Jelinek <jakub@redhat.com>
8782
8783 * resolv/res_mkquery.c (res_nmkquery): Set hp->id to statp->id after
8784 randomization rather than before.
8785 * resolv/res_init.c (res_randomid): Don't call gettimeofday here.
8786
b80770b2
UD
87872006-08-31 Jakub Jelinek <jakub@redhat.com>
8788
ba40cc15 8789 * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Add ld.so.
b80770b2
UD
8790
8791 * malloc/malloc.c (_int_malloc): Use full list insert and not
8792 shortcut which assumes the list is empty for large requests
8793 too.
8794
8795 * elf/tst-addr1.c (do_test): Allow i.dli_sname "_IO_printf".
8796
99ea5991
UD
87972006-08-30 Jakub Jelinek <jakub@redhat.com>
8798
8799 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (splice): Add offin
8800 and offout arguments to the prototype.
8801 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (splice): Likewise.
8802 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h (splice): Likewise.
8803 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (splice): Likewise.
8804 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h (splice): Likewise.
8805 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h (splice): Likewise.
8806 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (splice): Likewise.
8807 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h (splice): Likewise.
8808 * sysdeps/unix/sysv/linux/syscalls.list (splice): Adjust args string.
8809
4004a0a5
UD
88102006-08-28 Ulrich Drepper <drepper@redhat.com>
8811
950398e1
UD
8812 * elf/dl-load.c (_dl_init_paths): Expand DSTs.
8813
4004a0a5
UD
8814 * elf/dl-open.c (dl_open_worker): Allow $LIB and $PLATFORM in
8815 dlopen parameters.
8816
6e310111
UD
88172006-08-28 Jakub Jelinek <jakub@redhat.com>
8818
8819 * inet/getnameinfo.c (getnameinfo): For AF_INET, check errno
8820 only if herrno is NETDB_INTERNAL. Handle errors other than
8821 ERANGE outside of the loops, handle TRY_AGAIN.
8822
8823 * locale/programs/ld-ctype.c (translit_flatten): Issue error
8824 if other's ctype category was missing.
8825 * locale/programs/ld-collate.c (collate_read): Return if
8826 copy_locale's collate category is missing.
8827
07014fca
UD
88282006-08-27 Ulrich Drepper <drepper@redhat.com>
8829
8830 [BZ #2684]
8831 * malloc/malloc.c (public_rEALLOc): Try harder by using other
8832 arenas if allocation failed.
8833 Patch mostly by Jan Edler <jan.edler@indexengines.com>.
8834
71663747
UD
88352006-08-26 Ulrich Drepper <drepper@redhat.com>
8836
41999a1a
UD
8837 * malloc/malloc.c (bin_at): Rewrite to be more clear and to not
8838 waste bins[0..1].
8839 (malloc_state): Reduce bins size by 2.
8840 (_int_malloc): Fix test for large enough buffer for early termination.
8841 When no unsorted block matches perfectly and an exiting block has
8842 to be split, use full list insert and not shortcut which assumes
8843 the list is empty.
8844
71663747
UD
8845 * locale/programs/ld-ctype.c (ctype_read): Better patch for read
8846 failure.
8847
93b53ca2
UD
88482006-08-24 Ulrich Drepper <drepper@redhat.com>
8849
f5a82772
UD
8850 * locale/programs/ld-ctype.c (ctype_read): If CTYPE is NULL, don't
8851 do anything.
8852
2ac9ca73
UD
8853 * sysdeps/generic/ldsodefs.h (DL_ADDR_SYM_MATCH): For undefined
8854 symbol require exact match (these are PLTs).
8855 * sysdeps/unix/sysv/linux/powerpc/powerpc64/ldsodefs.h
8856 (_dl_ppc64_addr_sym_match): Likewise.
8857
93b53ca2
UD
8858 [BZ #2683]
8859 * elf/dl-addr.c (_dl_addr): Don't ignore all undefined symbols.
8860 If symbol has a value use it.
8861 * elf/tst-dladdr1.c: New file.
8862 * elf/Makefile: Add rules to build and run tst-addr1.
8863
7463d5cb
UD
88642006-08-24 Jakub Jelinek <jakub@redhat.com>
8865
8866 * malloc/malloc.c (sYSMALLOc): Avoid infinite loop if MMAP
8867 keeps failing and heap growth or new heap creation isn't
8868 successful either.
8869 * malloc/tst-malloc.c (main): Add new tests.
8870
542a6f62
UD
88712006-08-24 Ulrich Drepper <drepper@redhat.com>
8872
8873 [BZ #2734]
8874 * sysdeps/i386/bits/byteswap.h (__bswap_32): Use same conditions
8875 as in the x86-64 code to use bswap.
8876
aa2c6b6d
UD
88772006-05-21 Joseph S. Myers <joseph@codesourcery.com>
8878
24982798 8879 [BZ #2680]
aa2c6b6d
UD
8880 * posix/unistd.h (getlogin_r): Condition on __USE_POSIX199506, not
8881 __USE_UNIX98.
8882 * posix/bits/unistd.h: Likewise.
8883
59776aef
UD
88842006-05-15 Mike Frysinger <vapier@gentoo.org>
8885
8886 [BZ #2751]
8887 * string/strchr.c: Add cast to avoid warning.
8888
e404fb16
UD
88892006-08-21 Ulrich Drepper <drepper@redhat.com>
8890
8891 * malloc/malloc.c (DEFAULT_MMAP_THRESHOLD_MAX): For 32-bit
bd2c2341 8892 platforms define as 512K. For 64-bit platforms as 32MB. The lower
e404fb16
UD
8893 limit is needed to avoid the exploding of the address space
8894 requirement for secondary heaps.
8895 * malloc/arena.c (HEAP_MAX_SIZE): Define using
8896 DEFAULT_MMAP_THRESHOLD_MAX if it is defined.
8897
376e973a
UD
88982006-07-30 Joseph S. Myers <joseph@codesourcery.com>
8899
8900 [BZ #3018]
8901 * Makerules (depfiles): Handle extra-test-objs the same as
8902 extra-objs.
8903 (common-mostlyclean): Likewise.
8904 * dlfcn/Makefile (extra-objs): Add modules to extra-test-objs
8905 instead.
8906 * elf/Makefile (extra-objs): Likewise.
8907 * stdlib/Makefile (extra-objs): Likewise.
8908
240c62a7
UD
89092006-08-14 Eric Blake <ebb9@byu.net>
8910
8911 [BZ #3044]
8912 * misc/error.h: Assume C89 or better.
8913 * misc/error.c: Likewise.
8914
3997b7c4
UD
89152006-08-21 Ulrich Drepper <drepper@redhat.com>
8916
8917 [BZ #3040]
8918 * sysdeps/unix/sysv/linux/openat.c: Fix compilation if
8919 __ASSUME_ATFCTS is defined.
8920
8a6537b0
UD
89212006-08-19 Ulrich Drepper <drepper@redhat.com>
8922
72320021
UD
8923 * malloc/malloc.c (_int_malloc): Limit number of unsorted blocks
8924 to sort in each call.
8925
ed3691ba
UD
8926 * nis/nss_nis/nis-service.c (internal_nis_getservent_r): . If map
8927 is empty simply return and use next service.
8928 * nis/nss_nis/nis-rpc.c (internal_nis_getrpcent_r): Likewise.
8929
8a6537b0
UD
8930 * locale/programs/charmap.c (charmap_read): Add new parameter. It
8931 tells us when not finding a charmap file is an error.
8932 * locale/programs/charmap.h: Adjust charmap_read prototype.
8933 * iconv/iconv_prog.c (main): Tell charmap_read it's no error if we
8934 cannot find a charmap.
8935 * locale/programs/localedef.c (main): Adjust charmap_read call.
8936
ad2a3c07
UD
89372006-08-15 Jakub Jelinek <jakub@redhat.com>
8938
8939 * sysdeps/unix/sysv/linux/sparc/sparc64/pause.c: Use
8940 sysdeps/posix/pause.c implementation instead.
8941
89422006-08-09 Jakub Jelinek <jakub@redhat.com>
8943
8944 * sysdeps/unix/nice.c (nice): Transform EACCES errno from setpriority
8945 to EPERM.
8946
f17efcb4
UD
89472006-08-13 Andreas Schwab <schwab@suse.de>
8948
8949 * sysdeps/powerpc/powerpc32/dl-trampoline.S (_dl_runtime_resolve):
8950 Don't clobber caller's LRSAVE.
8951 (_dl_prof_resolve): Likewise.
8952
107b8a92
UD
89532006-08-14 Ulrich Drepper <drepper@redhat.com>
8954
8955 [BZ #1996]
8956 * libio/memstream.c (open_memstream): Allocate initial buffer with
8957 calloc.
8958 * libio/wmemstream.c (open_wmemstream): Likewise.
8959 * libio/strops.c: Pretty printing.
8960 (_IO_str_overflow): Clear uninitialized part of the new buffer.
8961 (enlarge_userbuf): New function.
8962 (_IO_str_seekoff): Call it if seek position is larger than current
8963 buffer.
8964 * libio/wstrops.c: Likewise.
8965 * libio/vasprintf.c: Add comment as to why we do not have to use
8966 calloc instead of malloc to allocate initial buffer.
8967 * libio/Makefile (tests): Add bug-memstream1 and bug-wmemstream1.
8968 * libio/bug-memstream1.c: New file.
8969 * libio/bug-wmemstream1.c: New file.
8970
fa3ac53f
UD
89712006-08-13 Ulrich Drepper <drepper@redhat.com>
8972
89993734
UD
8973 * libio/wstrops.c: Remove dead macro definitions and comments.
8974 * libio/strops.c: Likewise.
8975
fa3ac53f
UD
8976 [BZ #2764]
8977 * login/utmpname.c (__utmpname): Remove unnecessary test.
8978
f99ed760
UD
89792006-06-08 Joseph Myers <jsm28@gcc.gnu.org>
8980
8981 [BZ #2832]
8982 * math/gen-libm-test.pl (clean_up_number): Do not remove trailing
8983 0s from integers.
8984
89852006-08-13 Ulrich Drepper <drepper@redhat.com>
8986
8987 [BZ #2987]
8988 * sysdeps/unix/sysv/linux/clock_settime.c: Add code to use syscall
8989 for CPU clocks.
8990 * sysdeps/unix/clock_settime.c: Add support for platform-specific
8991 setting of CPU clocks.
8992
4c3f81d0
UD
89932006-06-23 Paul Eggert <eggert@cs.ucla.edu>
8994
8995 [BZ #2841]
8996 * sysdeps/generic/stdint.h (UINT8_C, UINT16_C): Don't append 'U',
8997 since C99 requires the result to promote to 'int' when uint_least8_t
8998 and uint_least16_t promote to 'int'.
8999
cd8e60ce
UD
90002006-08-12 Ulrich Drepper <drepper@redhat.com>
9001
9a5c46e8
UD
9002 [BZ #3013]
9003 * locale/programs/ld-ctype.c (ctype_output): Adjust alignments, fix
9004 lenght of one output field, correct bitmask creation.
9005 * locale/programs/ld-time.c: Add alignment.
9006
cd8e60ce
UD
9007 [BZ #2997]
9008 * misc/error.c: Add space between program name and message if file
9009 name is missing.
9010
9a528884
UD
90112006-08-03 Eric Blake <ebb9@byu.net>
9012
9013 [BZ #2998]
9014 * misc/error.c (error_tail) [_LIBC]: Avoid invalid free.
9015
1d05c2fb
UD
90162006-08-09 Ulrich Drepper <drepper@redhat.com>
9017
0c1c6c6c
UD
9018 * malloc/memusagestat.c: Silence warnings.
9019
1d05c2fb
UD
9020 * malloc/malloc.c: Dynamically size mmap treshold if the program
9021 frees mmaped blocks.
9022 Patch by Valerie Henson and Arjan van de Ven.
9023
2d1e6277
UD
90242006-08-08 Jakub Jelinek <jakub@redhat.com>
9025
be7ffd91
UD
9026 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (O_DIRECT): Protect with
9027 __USE_GNU.
9028
2d1e6277
UD
9029 * stdlib/strtol_l.c (__strtol_ul_max_tab, __strtol_ul_rem_tab,
9030 __strtol_ull_max_tab, __strtol_ull_rem_tab): Declare.
9031 (DEF): Don't put the var into .gnu.linkonce.r.* section.
9032 Only provide var definitions in strtol_l (or for *ull*
9033 in strtoll_l).
9034
9035 * stdio-common/bug16.c (tests): New array.
9036 (do_tests): Allow the first hexadecimal digit
9037 to be 1, 2, 4 or 8. Do 3 additional tests.
9038
9039 * sysdeps/s390/fpu/libm-test-ulps: Update.
9040
9041 * sysdeps/unix/sysv/linux/s390/s390-32/fchownat.c (fchownat): Use
9042 fchownat syscall if available.
9043 * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat): Likewise.
9044 * sysdeps/unix/sysv/linux/sh/fchownat.c (fchownat): Likewise.
9045 * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Likewise.
9046
d0ccde25
UD
90472006-08-07 Ulrich Drepper <drepper@redhat.com>
9048
9049 * nis/nis_xdr.c: Avoid some function calls.
9050
13a0293d 90512006-08-07 Jakub Jelinek <jakub@redhat.com>
3f7a21a9 9052 Ulrich Drepper <drepper@redhat.com>
13a0293d
UD
9053
9054 * nis/nis_call.c (rec_dirsearch) [case LOWER_NAME]: Don't take
9055 short cut if only one name component is stripped away.
9056
bd1ebae0
UD
90572006-08-07 Ulrich Drepper <drepper@redhat.com>
9058
9059 * nis/nis_call.c: Minor cleanups throughout.
2d1e6277 9060 (rec_dirsearch) [case HIGHER_NAME]: Correctly size ndomain array.
bd1ebae0
UD
9061 (first_shoot): Add search_parent_first parameter. Only if it is set
9062 search parent server first.
9063 If directory for table found through cold start cache is not the same
9064 as referenced in the cache, don't use it.
9065 (__nisfind_server): Take additional parameter. Pass it on to
9066 first_shoot.
9067 (__prepare_niscall): Adjust __nisfind_server call.
9068 * nis/rpcsvc/nislib.h: Adjust __nisfind_server prototype.
9069 * nis/nis_table.c: Adjust __nisfind_server call.
9070 * nis/nis_lookup.c: Likewise.
9071 (nis_lookup): Don't loop endlessly if name is reduced to ".".
9072
f1762c0c
UD
90732006-08-03 Ulrich Drepper <drepper@redhat.com>
9074
fe710250
UD
9075 [BZ #2182]
9076 * math/s_cacosh.c: Return values from positive branch.
9077 * math/s_cacoshf.c: Likewise.
9078 * math/s_cacoshl.c: Likewise.
9079
a5852807
UD
9080 [BZ #2883]
9081 * sysvipc/sys/msg.h: Change return value to ssize_t.
9082 * sysdeps/unix/sysv/linux/msgrcv.c: Likewise.
fe710250
UD
9083 * sysvipc/msgrcv.c: Likewise.
9084 * include/sys/msg.h: Likewise.
39571a13 9085
6c215a8d
UD
9086 * grp/initgroups.c (internal_getgrouplist): Remove unnecessary
9087 test introduced in patch for bz #661.
39571a13 9088 (getgrouplist): Simplify code a bit. Don't allocate one additional
f13bfdd0 9089 element for NEWGROUPS.
6c215a8d 9090
9c06eb66
UD
9091 [BZ #2908]
9092 * stdio-common/printf_fphex.c (__printf_fphex): When rounding up
9093 'f', use '1' as leading digit not '\1'.
9094 * stdio-common/Makefile (tests): Add bug16.
9095 * stdio-common/bug16.c: New file.
9096
9097 [BZ #2914]
9098 * sysdeps/unix/sysv/linux/gethostid.c: Don't define OLD_HOSTIDFILE
9099 and don't try to open it. The patch introducing the macro
9100 contained a bug and used the same file name as the new file
9101 instead of using /var/adm/hostid. Nobody complaint so I'm taking
9102 this out completely.
9103
9104 [BZ #2926]
9105 * assert/assert.h: Move cast to void inside ?: to quiet gcc.
9106 Patch by Jerry James <Jerry.James@usu.edu>.
9107
f1762c0c
UD
9108 * rt/Makefile (tests): Add tst-clock2.
9109 * rt/tst-clock2.c: New file.
9110
9111 [BZ #2978]
9112 * resolv/gai_notify.c (__gai_notify_only): Copy memory for thread
9113 function and its parameters and pass it to new thread.
9114 (__gai_notify): Add support for alternative waiting for completion.
9115 * resolv/gai_suspend.c (gai_suspend): Add support for alternative
9116 waiting for completion.
9117 * resolv/getaddrinfo_a.c: Likewise.
9118 * resolv/gai_misc.h (struct waitlist): Don't add cond if alternative
9119 waiting for completion is used.
9120 * resolv/gai_misc.c: Allow overwriting code to start helper thread.
9121 * resolv/gai_cancel.c: Include <gai_misc.h> not "gai_misc.h".
9122 * resolv/gai_error.c: Likewise.
9123 * resolv/gai_sigqueue.c: Likewise.
9124
83ae6b40
RM
91252006-08-02 Thomas Schwinge <tschwinge@gnu.org>
9126
0e4e62fe 9127 * hurd/getdport.c (__getdport): Don't return EBADF; instead set
f1762c0c 9128 errno to EBADF and return MACH_PORT_NULL.
83ae6b40 9129
82ee37c5
UD
91302006-06-23 Joseph Myers <joseph@codesourcery.com>
9131
9132 [BZ #2980]
f1762c0c 9133 * posix/Makefile (CFLAGS-waitid.c): Add -fasynchronous-unwind-tables.
82ee37c5
UD
9134
91352006-08-02 Ulrich Drepper <drepper@redhat.com>
9136
9137 * elf/dl-addr.c (_dl_addr): If GNU-style hash tables are present,
9138 walk them instead of the symbol table.
9139
7bb1b2c9
UD
91402006-08-01 Ulrich Drepper <drepper@redhat.com>
9141
f13bfdd0 9142 [BZ #2098]
fbbc73b3
UD
9143 * nscd/initgrcache.c (addinitgroupsX): Judge successful lookups by
9144 status of NSS calls, not the number of returned entries.
9145
a4518922
UD
9146 * sysdeps/unix/sysv/linux/syscalls.list: Remove add_key,
9147 request_key, keyctl.
7bb1b2c9 9148
b06e7e9a
UD
91492006-07-31 Ulrich Drepper <drepper@redhat.com>
9150
9151 * sysdeps/unix/sysv/linux/dl-osinfo.h: Remove unnecessary include.
9152
f1227969
UD
91532006-07-16 Jeff Bailey <jbailey@ubuntu.com>
9154
9155 * elf/tst-auditmod1.c: Fix typo in #error.
9156
82ae2712
UD
91572006-07-31 Ulrich Drepper <drepper@redhat.com>
9158
f1227969
UD
9159 * elf/tst-auditmod1.c: Remove code for unsupported architectures.
9160
82ae2712
UD
9161 * iconvdata/run-iconv-test.sh: Run cmp in C locale.
9162
a1260d92
UD
91632006-07-20 Adam Nemet <anemet@caviumnetworks.com>
9164
9165 * stdlib/test-canon.c (do_test): Close fd before unlinking file so
b06e7e9a 9166 that the directory is empty even on non-POSIX filesystems.
a1260d92 9167
d2de41fe
UD
91682006-07-31 Ulrich Drepper <drepper@redhat.com>
9169
13669f2c
UD
9170 * elf/dl-open.c (dl_open_worker): Add branch prediction.
9171
d2de41fe
UD
9172 * nis/nss_compat/compat-grp.c: Avoid unnecessary setgrent calls into
9173 the backend NSS module. If backend setgrent call failed, don't have
9174 internal_setgrent fail. Just remember this until it is needed.
9175 * nis/nss_compat/compat-pwd.c: Likewise.
9176 * nis/nss_compat/compat-spwd.c: Likewise.
9177
b894c2ea
RM
91782006-07-30 Roland McGrath <roland@redhat.com>
9179
9180 * sysdeps/unix/sysv/linux/ia64/sigsuspend.c: File removed.
9181 * sysdeps/unix/sysv/linux/x86_64/sigsuspend.c: File removed.
9182 * sysdeps/unix/sysv/linux/s390/s390-64/sigsuspend.c: File removed.
9183 * sysdeps/unix/sysv/linux/sparc/sparc64/sigsuspend.c: File removed.
9184
9185 * sysdeps/unix/sysv/linux/not-cancel.h (pause_not_cancel): New macro.
9186 (nanosleep_not_cancel): New macro.
9187 (sigsuspend_not_cancel): new macro.
9188 * sysdeps/unix/sysv/linux/sigsuspend.c [__ASSUME_REALTIME_SIGNALS]
9189 (do_sigsuspend): Define as inline.
9190 (__sigsuspend): Always use do_sigsuspend.
9191 [! NO_CANCELLATION] (__sigsuspend_nocancel): New function.
9192 * include/signal.h: Declare __sigsuspend_nocancel.
9193 * sysdeps/posix/pause.c
9194 [! NO_CANCELLATION] (__pause_nocancel): New function.
9195
9196 * include/unistd.h (__pause_nocancel): Add attribute_hidden.
9197 * include/time.h (__nanosleep_nocancel): Likewise.
9198
c10d32c8
UD
91992006-07-30 Ulrich Drepper <drepper@redhat.com>
9200
9201 * locale/programs/localedef.c (add_to_readlist): Rename local
9202 variables to avoid confusion.
9203
9204 * locale/programs/charmap.c (charmap_read): Emit error message if
9205 charmap couldn't be found or read.
9206
6822f056
UD
92072006-07-28 Ulrich Drepper <drepper@redhat.com>
9208
d5ba53f9
UD
9209 * sysdeps/unix/sysv/linux/kernel-features.h: Define
9210 __ASSUME_FUTEX_LOCK_PI.
9211 * include/time.h: Declare __nanosleep_nocancel.
9212 * include/unistd.h: Declare __pause_nocancel.
9213
6822f056
UD
9214 * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Use this instead of
9215 LDFLAGS. Add -lgcc_eh and libc_nonshared (again) to make sure we
9216 get the __stack_chk_fail_local definition when it's needed.
9217
3a975ff5
UD
92182006-07-26 Ulrich Drepper <drepper@redhat.com>
9219
6de1f625
UD
9220 * dlfcn/Makefile: Add rules to build and run bug-atexit3.
9221 * dlfcn/bug-atexit3.c: New file.
9222 * dlfcn/bug-atexit3-lib.cc: New file.
9223
3a975ff5
UD
9224 * dlfcn/dlmopen.c (dlmopen_doit): Don't allow RTLD_GLOBAL to be
9225 used when the namespace is not the base namespace.
9226
a92b1166
UD
92272006-07-26 Gavin Romig-Koch <gavin@redhat.com>
9228
9229 * stdlib/cxa_atexit.c (__new_exitfn_called): New variable.
9230 (__new_exitfn): Bump it in every successful call.
9231 * stdlib/cxa_finalize.c (__cxa_finalize): If destructor registered
9232 more exit handlers, call them right away.
9233 * stdlib/exit.h: Declare __new_exitfn_called.
9234
a08336fb
UD
92352006-07-25 Ulrich Drepper <drepper@redhat.com>
9236
bd3754dc
UD
9237 * stdlib/cxa_finalize.c (__cxa_finalize): Fix race condition when
9238 calling registered handler.
9239
a08336fb
UD
9240 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Fix comment.
9241 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
9242 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
9243 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
9244 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
9245 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
9246 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
9247 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
9248
871b9158
UD
92492006-07-10 Ulrich Drepper <drepper@redhat.com>
9250
9251 * elf/dl-lookup.c (dl_new_hash): New functions.
9252 (_dl_lookup_symbol_x): Rename hash to old_hash and don't compute
9253 value here. Compute new-style hash value. Pass new hash value
9254 and reference to variable with the old value to do_lookup_x.
9255 (_dl_setup_hash): If DT_GNU_HASH is defined, use it and not
9256 old-style hash table.
9257 (_dl_debug_bindings): Pass new hash value and reference to variable
9258 with the old value to do_lookup_x.
9259 * elf/do-lookup.h (do_lookup_x): Accept additional parameter with
9260 new-style hash value and change old-style hash value parameter to
9261 be a reference. Reoganize functions to determine whether
9262 new-style hash table is available. Only fall back on old-style
9263 table. If old-style hash value is needed, compute it here.
9264 * elf/dynamic-link.h (elf_get_dynamic_info): Relocate DT_GNU_HASH
9265 entry.
9266 * elf/elf.h: Define SHT_GNU_HASH, DT_GNU_HASH, DT_TLSDEC_PLT,
9267 DT_TLSDEC_GOT. Adjust DT_ADDRNUM.
9268 * include/link.h (struct link_map): Add l_gnu_bitmask_idxbits,
9269 l_gnu_shift, l_gnu_bitmask, l_gnu_buckets and l_gnu_chain_zero.
9270 * Makeconfig: If linker supports --hash-style option add it to all
9271 linker command lines to build DSOs.
9272 * config.make.in: Define have-hash-style.
9273 * configure.in: Test whether linker supports --hash-style option.
9274
9275 * elf/dl-misc.c (_dl_name_match_p): Make MAP parameter const.
9276 * sysdeps/generic/ldsodefs.h: Adjust prototype.
9277
a1f0de82
UD
92782006-06-27 Ulrich Drepper <drepper@redhat.com>
9279
361a3706
UD
9280 * elf/dl-load.c (open_path): Fix test to determine whether DSO is
9281 auditing.
9282
a1f0de82
UD
9283 * elf/dl-load.c (_dl_map_object): Try harder to avoid looking at
9284 RPATH of main map twice.
9285
4259230f
UD
92862006-06-22 Ulrich Drepper <drepper@redhat.com>
9287
9288 * intl/dcigettext.c (DCIGETTEXT): If _nl_find_msg returns -1 don't
9289 look further, return original strings.
9290 (_nl_find_msg): Do not return found translation if the conversion
9291 failed. Either signal the string is unusable or that something went
9292 wrong and the original should be used.
9293
92942006-06-21 Ulrich Drepper <drepper@redhat.com>
9295
9296 * string/_strerror.c (__strerror_r): Add __builtin_expect.
9297
f9b7a98b
UD
92982006-06-14 Jakub Jelinek <jakub@redhat.com>
9299
9300 [BZ #2766]
9301 * misc/insremque.c (insque): Handle prev == NULL.
9302 * misc/Makefile (tests): Add tst-insremque.
9303 * misc/tst-insremque.c: New test.
9304
ac55a25b
UD
93052006-06-17 Ulrich Drepper <drepper@redhat.com>
9306
9307 [BZ #2792]
9308 * elf/dl-deps.c (expand_dst): Rename __cnt variable to not
9309 conflict with DL_DST_REQUIRED.
9310
02f366b3
UD
93112006-06-16 Ulrich Drepper <drepper@redhat.com>
9312
9313 * nis/nis_subr.c (nis_getnames): Fix the implementation to better
9314 match what Solaris does.
9315
9009e8f8
UD
93162006-06-04 Ulrich Drepper <drepper@redhat.com>
9317
1b8373f4
UD
9318 * sysdeps/posix/spawni.c (__spawni): Use local_seteuid and
9319 local_setegid instead of seteuid and setegid.
9320 * sysdeps/generic/local-setxid.h: New file.
9321 * sysdeps/unix/sysv/linux/local-setxid.h: New file.
9322
7231452e
UD
9323 * sysdeps/posix/spawni.c (__spawni): Use non-cancelable interfaces.
9324
9009e8f8 9325 * string/Makefile (tests): Add bug-envz1.
02f366b3 9326 * string/bug-envz1.c: New file.
9009e8f8 9327
33e63e79
UD
93282006-06-02 Jakub Jelinek <jakub@redhat.com>
9329
9330 * posix/regex_internal.c (re_string_skip_chars): If no character has
9331 been converted at all, set *last_wc to WEOF. If mbrtowc failed, set wc
9332 to the byte which couldn't be converted.
9333 (re_string_reconstruct): Don't clear valid_raw_len before calling
9334 re_string_skip_chars. If wc is WEOF after re_string_skip_chars, set
9335 tip_context using re_string_context_at.
9336 * posix/Makefile: Add rules to build and run bug-regex25 test.
9337 * posix/bug-regex25.c: New test.
9338
fdc02996
UD
93392006-06-02 Ryan S. Arnold <rsa@us.ibm.com>
9340
9341 [BZ #2703]
9342 * string/envz.c (envz_strip): Correct erroneously reversed src
9343 and dest parameters to memmove() invocation.
9344
902c4291
UD
93452006-05-30 Jakub Jelinek <jakub@redhat.com>
9346
9347 * nscd/nscd.h (prune_cache): Add fd argument to prototype.
9348 * nscd/nscd.c (parse_opt): Read response from INVALIDATE request
9349 to make sure the database has been already invalidated.
9350 * nscd/cache.c (prune_cache): Add fd argument. Write response to fd
9351 after the cache has been invalidated. Use pthread_mutex_lock rather
9352 than pthread_mutex_trylock if fd != -1.
9353 * nscd/connections.c (invalidate_cache): Add fd argument, write
9354 response to fd if not calling prune_cache, pass fd to prune_cache.
9355 (handle_request): Adjust invalidate_cache caller.
9356 (nscd_run): Pass -1 as fd to prune_cache.
9357
ecc68568
UD
93582006-05-30 Ulrich Drepper <drepper@redhat.com>
9359
9360 * sysdeps/posix/getaddrinfo.c (gaiconf_init): Initialize bits in
9361 the correct place.
9362
9636a217
UD
93632006-05-29 Ulrich Drepper <drepper@redhat.com>
9364
9365 * nscd/nscd.h (struct database_dyn): Add prunelock field.
9366 * nscd/cache.c (prune_cache): Take prunelock before starting the
9367 work. Just return in case it is already taken.
cabfcde1 9368 * nscd/connections.c (dbs): Initialize .prunelock.
9636a217 9369
6bcb494a
UD
93702006-05-25 Ulrich Drepper <drepper@redhat.com>
9371
672d5a63 9372 * nis/nis_removemember.c (nis_removemember): Avoid unnecessary
ecc68568 9373 copying. No need to allocate new array for group members. Just
672d5a63
UD
9374 move the pointers and update the size.
9375
1663b44f
UD
9376 * nis/nis_addmember.c (nis_addmember): Avoid unnecessary copying.
9377 Avoid memory leak in case realloc fails. Simplification for
9378 better code generation.
9379
9380 Avoid deprecation warning because of libc_hidden_proto for
9381 inet6_option_alloc.
9382 * inet/inet6_option.c (option_alloc): Renamed from
9383 inet6_option_alloc. Made static.
9636a217 9384 (inet6_option_alloc): Now a simple wrapper around option_alloc.
1663b44f
UD
9385 (inet6_option_append): Call option_alloc.
9386 * include/netinet/in.h: Remove libc_hidden_proto for
9387 inet6_option_alloc.
9388
6bcb494a
UD
9389 * nis/nis_callback.c (__nis_create_callback): Always call xdr_free
9390 for cleanup when cb!=NULL [Coverity CID 233].
9391
aec6b246
UD
93922006-05-24 Ulrich Drepper <drepper@redhat.com>
9393
07bfff20
UD
9394 [BZ #2693]
9395 * inet/Makefile (routines): Add inet6_opt and inet6_rth.
9396 * inet/Versions (libc, GLIBC_2.5): Add inet6_opt_init,
9397 inet6_opt_append, inet6_opt_finish, inet6_opt_set_val, inet6_opt_next,
9398 inet6_opt_find, inet6_opt_get_val, inet6_rth_space, inet6_rth_init,
9399 inet6_rth_add, inet6_rth_reverse, inet6_rth_segments,
9400 and inet6_rth_getaddr.
9401 * inet/netinet/ip6.h (struct ip6_rthdr0): Make ip6r0_addr a flexible
9402 array.
9403 * inet/netinet/in.h (struct ip6_mtuinfo): Define.
9404 Mark inet6_option_* interfaces as deprecated.
9405 Declare inet6_opt_init, inet6_opt_append, inet6_opt_finish,
9406 inet6_opt_set_val, inet6_opt_next, inet6_opt_find, inet6_opt_get_val,
9407 inet6_rth_space, inet6_rth_init, inet6_rth_add, inet6_rth_reverse,
9408 inet6_rth_segments, and inet6_rth_getaddr.
9409 * inet/inet6_opt.c: New file.
9410 * inet/inet6_rth.c: New file.
9411
9412 * inet/netinet/icmp6.h: Pretty printing.
9413
aec6b246
UD
9414 [BZ #2683]
9415 * elf/dl-addr.c (_dl_addr): Don't match undefined references.
9416
2d571cd1
UD
94172006-05-23 Ulrich Drepper <drepper@redhat.com>
9418
062e719b
UD
9419 * nis/nis_lookup.c (nis_lookup): Use __prepare_niscall instead of
9420 doing it all here. When server does not know the answer do not
9421 fail immediate, try parent first.
9422
2d571cd1
UD
9423 * nis/nis_domain_of_r.c (nis_domain_of_r): Add missing buffer
9424 overflow test.
9425
a17fa610
UD
94262006-05-20 Ulrich Drepper <drepper@redhat.com>
9427
9428 * nis/nis_call.c (__prepare_niscall): New function. Split out
9429 from __do_niscall.
9430 * nis/nis_table.c (__create_ib_request): Renamed from create_ib_request
9431 and exported.
9432 (__follow_path): New function. Split out from nis_list.
9433 * nis/nis_xdr.h: Add libnsl_hidden_proto for _xdr_ib_request and
9434 _xdr_nis_result.
9435 * nis/nis_xdr.c: Add libnsl_hidden_def for _xdr_ib_request and
9436 _xdr_nis_result.
9437 * nis/libnsl.h: Declare __prepare_niscall, __create_ib_request,
9438 and __follow_path.
9439 * nis/Versions: Export __prepare_niscall, __create_ib_request,
9440 __follow_path, __do_niscall3, _xdr_ib_request, and _xdr_nis_result
9441 from libnsl for version GLIBC_PRIVATE.
9442 * nis/nisplus-parser.h: Remove _nss_nisplus_parse_pwent_chk.
9443 Remove entry parameter from _nss_nisplus_parse_pwent and
9444 _nss_nisplus_parse_grent.
9445 * nis/nss_nisplus/nisplus-parser.c: Likewise.
9446 * nis/nss_nisplus/nisplus-pwd.c: Remove support for SETENT_BATCH_READ
9447 again. Rewrite getpwent handling to not use nis_first_entry and
9448 nis_next_entry. Roll out own niscall handling.
9449 * nis/nss_nisplus/nisplus-grp.c: Likewise.
9450
9451 * sunrpc/xdr_rec.c: Fix typo in comment.
9452
429bb183
UD
94532006-05-19 Ulrich Drepper <drepper@redhat.com>
9454
1d4f062a
UD
9455 * nis/nis_call.c (__do_niscall3): Avoid code duplication in error
9456 handling.
9457
101cc598
UD
9458 * nis/nis_callback.c (internal_nis_do_callback): Don't use malloc
9459 to allocate memory for my_pollfd. Better initialization of
9460 cb_is_running. Use TEMP_FAILURE_RETRY.
9461
f50fa10c
UD
9462 * malloc/memusage.sh (memusageso): Add quotes.
9463 (memusagestat): Likewise.
9464 * debug/xtrace.sh (pcprofileso): Likewise.
9465 (pcprofiledump): Likewise.
9466 * debug/Makefile ($(objpfx)xtrace): Use $LIB in SLIBDIR
9467 replacement.
9468 * malloc/Makefile ($(objpfx)memusage): Likewise.
9469
882bfe73
UD
9470 * nis/nis_callback.c (__nis_create_callback): Calls to
9471 svcudp_bufcreate and svctcp_create can fail. Free ->xprt if
9472 asprintf call fails.
9473
429bb183
UD
9474 * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_sendreq): Make sure
9475 no uninitialized memory is passed to sendto.
9476
f90de831
UD
94772006-05-18 Ulrich Drepper <drepper@redhat.com>
9478
9479 * nis/nis_callback.c (__nis_create_callback): Use asprinf instead
9480 of snprintf+strdup. Handle OOM.
9481 * nis/nis_callback.c (__nis_create_callback): Allocate cb and
9482 cb->serv together. Remove now obsolete free calls.
9483 (__nis_destroy_callback): Remove now obsolete free call.
9484
a17fa610 94852006-05-18 David Woodhouse <dwmw2@redhat.com>
6e2a7825
UD
9486
9487 * sysdeps/posix/getaddrinfo.c: Add unique labels to the default
9488 RFC3484 precedence table for fec0::/10 and fc00::/7 (site-local
9489 and ULA respectively). Set precedence for IPv4 address to 10 as
9490 defined in RFC3484 for preferring IPv6.
9491 * posix/gai.conf: Update to match the new default tables.
9492
758b9d7e
UD
94932006-05-18 Jakub Jelinek <jakub@redhat.com>
9494
9495 * nis/nss_compat/compat-pwd.c (internal_setpwent): If nss_set*ent
9496 returned NSS_STATUS_UNAVAIL, still return NSS_STATUS_SUCCESS.
9497 * nis/nss_compat/compat-spwd.c (internal_setspent): Likewise.
9498 * nis/nss_compat/compat-grp.c (internal_setgrent): Likewise.
9499
9500 * nis/nss_compat/compat-initgroups.c (nss_setgrent, nss_endgrent):
9501 Removed.
9502 (init_nss_interface): Remove initialization of these variables.
9503
95042006-05-18 Ulrich Drepper <drepper@redhat.com>
9505
9506 * nis/nis_call.c (rec_dirsearch): Little optimization: pull
9507 nis_free_directory forward to avoid duplication.
9508
388c779e
UD
95092006-05-17 Ulrich Drepper <drepper@redhat.com>
9510
5f1724bf
UD
9511 * nis/nis_call.c (rec_dirsearch): Handle __nis_finddirectory and
9512 rec_dirsearch returning NULL.
9513 (first_shoot): Handle __nis_finddirectory returning NULL.
9514 (__nisfind_server): Fix leak when rec_dirsearch returns NULL.
9515
388c779e
UD
9516 * sysdeps/unix/sysv/linux/sys/inotify.h: Define IN_CLOSE, IN_MOVE,
9517 IN_ONLYDIR, IN_DONT_FOLLOW, and IN_MASK_ADD.
9518
360d5cf4
UD
95192006-05-17 Jakub Jelinek <jakub@redhat.com>
9520
9521 * sunrpc/key_call.c (getkeyserv_handle): Call auth_destroy if
9522 pid changed.
9523
88dbff8c
UD
95242006-05-15 Ulrich Drepper <drepper@redhat.com>
9525
6f8a7dff
UD
9526 * include/rpc/pmap_prot.h: Mark all functions as hidden.
9527
9528 * nscd/nscd_initgroups.c: Mark __gr_map_handle as hidden.
9529 * nscd/nscd_getgr_r.c: Likewise.
9530
9531 * include/rpc/pmap_rmt.h: Mark all functions as hidden.
9532
9533 * nscd/nscd_getai.c (__hst_map_handle): Mark as hidden.
9534 * nscd/nscd_gethst_r.c (__hst_map_handle): Likewise.
9535
9536 * stdlib/longlong.h (__clz_tab): Mark as hidden.
9537
9538 * iconv/gconv_int.h: Mark __gconv_lock as hidden.
9539
360d5cf4 9540 * include/rpc/key_prot.h: Mark all _internal functions as hidden.
8263ed62
UD
9541
9542 * include/rpc/auth.h: Mark xdr_des_block_internal and
9543 xdr_opaque_auth_internal as hidden.
9544
9545 * sysdeps/unix/sysv/linux/getdents.c: Mark __have_no_getdents64 as
9546 hidden.
9547
360d5cf4 9548 * include/rpc/xdr.h: Mark all _internal functions as hidden.
8263ed62 9549
02264020
UD
9550 * misc/getusershell.c (okshells): Don't use static initializers,
9551 do it dynamically.
9552
fd5ea238
UD
9553 * stdlib/fmtmsg.c (keywords): Change type of len element to
9554 uint32_t to not waste space on 64bit machines.
9555
9446614c
UD
9556 * locale/setlocale.c: Change _nl_category_names into a string.
9557 Add new _nl_category_name_idxs. Change all users.
9558 * locale/localeinfo.h: Adjust declaration of _nl_category_names.
9559 Declare _nl_category_name_idxs.
9560 * locale/findlocale.c: Adjust for _nl_category_names change.
9561 * locale/loadlocale.c: Likewise.
9562 * locale/newlocale.c: Likewise.
9563 * intl/dcigettext.c: Likewise.
9564
88dbff8c
UD
9565 * iconv/gconv_conf.c (add_alias): Move actual alias handling to...
9566 (add_alias2): ...here. New function.
9567 (__gconv_read_conf): Simplify builtin alias handling.
9568 (builtin_aliases): Convert to string to avoid relocations.
9569 * iconv/gconv_builtin.h: Add comment about correct formatting.
9570
4442d58f
UD
95712006-05-15 Jakub Jelinek <jakub@redhat.com>
9572
9573 * resolv/res_debug.c (loc_ntoa): Make error const.
9574
95752006-05-14 Andreas Schwab <schwab@suse.de>
9576
9577 * math/complex.h [__LDBL_COMPAT]: Use __REDIRECT_NTH.
9578
95792006-05-12 Jakub Jelinek <jakub@redhat.com>
9580
9581 * sysdeps/unix/sysv/linux/sched_getaffinity.c: Include sys/param.h.
9582 (__sched_getaffinity_new): Don't crash if cpusetsize is smaller than
9583 sizeof (cpu_set_t).
9584
a51752b6
UD
95852006-05-11 Ulrich Drepper <drepper@redhat.com>
9586
5d3fd1f6
UD
9587 * resolv/res_debug.c (loc_ntoa): Define error as array, not pointer.
9588
08cfb839
UD
9589 * include/arpa/nameser.h: Declare _ns_flagdata as hidden.
9590
4b481a15
UD
9591 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_master.
9592 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_master.
9593
9594 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypbind_resp.
9595 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypbind_resp.
9596
9597 * nis/nis_xdr.c: Add libnsl_hidden_def for xdr_cback_data.
9598 * include/rpcsvc/nis_callback.h: Add libnsl_hidden_proto for
9599 xdr_cback_data.
9600
9601 * nis/ypupdate_xdr.c: Add libnsl_hidden_def for xdr_ypupdate_args.
9602 * include/rpcsvc/ypupd.h: Add libnsl_hidden_proto for
9603 xdr_ypupdate_args.
9604
9605 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_order.
9606 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_order.
9607
9608 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_maplist.
9609 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_maplist.
9610
9611 * nis/nis_xdr.c: Add libnsl_hidden_def for xdr_obj_p.
9612 * include/rpcsvc/nis_callback.h: New file.
9613
9614 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_val.
9615 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_val.
9616
9617 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypreq_nokey.
9618 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypreq_nokey.
9619
9620 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypmaplist.
9621 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypmaplist.
9622
9623 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypreq_nokey.
9624 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypreq_nokey.
9625
b1ad49c6
UD
9626 * nis/ypupdate_xdr.c: Add libnsl_hidden_def for xdr_ypdelete_args.
9627 * include/rpcsvc/ypupd.h: Add libnsl_hidden_proto for
9628 xdr_ypdelete_args.
9629
cd5f7829
UD
9630 * nis/nis_xdr.h: Mark all functions as hidden. Remove
9631 __BEGIN_DECLS and __END_DECLS, the header is not installed.
9632
a51752b6
UD
9633 * nis/nis_error.c: Remove table of strings. Use position
9634 independent mechanism.
9635 * nis/nis_error.h: New file.
9636
3d237e42
UD
96372006-05-11 Jakub Jelinek <jakub@redhat.com>
9638
9639 * locale/programs/ld-time.c (time_finish): If wide era name or
9640 format aren't provided, set both wname and wformat to L"".
9641
d6c159fe
UD
96422006-05-10 Ulrich Drepper <drepper@redhat.com>
9643
0088b04e
UD
9644 * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Only store
9645 results if the call was succesful.
9646
d6c159fe
UD
9647 * nis/nss-nis.h: Mark __yperr2nss_tab and __yperr2nss_count as hidden.
9648
9649 * nis/nss-nisplus.h: Mark __niserr2nss_tab and __niserr2nss_count
9650 as hidden.
9651
5c5acdf0
UD
96522006-05-10 Jakub Jelinek <jakub@redhat.com>
9653
9654 * misc/sys/queue.h: Remove uses of all QUEUEDEBUG_* macros.
9655
16d620db
UD
96562006-05-10 Ulrich Drepper <drepper@redhat.com>
9657
9658 * posix/wordexp.c (parse_glob): No need to check ifs for NULL, the
9659 caller makes sure this is not the case.
9660 (wordexp): Simplify ifs_white creation. [Coverity CID 231]
9661
e7c8359e
UD
96622006-05-09 Ulrich Drepper <drepper@redhat.com>
9663
ecf359c6
UD
9664 * posix/wordexp.c: Remove numerous NULL pointer tests before FREE
9665 calls.
9666
400cc70a
UD
9667 * io/ftw.c (open_dir_stream): Return right away if REALLOC fails.
9668 [Coverity CID 229, 230]
9669
9670 * argp/argp-help.c (hol_entry_help): Handle STATE==NULL in ARG and
9671 DGETTEXT calls.
9672 (hol_help): Likewise. [Coverity CID 226, 227]
9673
9674 * string/argz-replace.c (__argz_replace): Unconditionally call
9675 free on SRC. [Coverity CID 225]
9676
9677 * nis/nis_creategroup.c (nis_creategroup): No need to duplicate
9678 the return value of __nis_default_owner and __nis_default_group,
9679 it has been especially allocated. [Coverity CID 224]
9680
51e59260
UD
9681 * nis/nis_defaults.c (searchXYX): New functions. Used by both
9682 searchgroup and searchowner. Significantly simplified.
9683 (__nis_default_owner): Remove duplication. Do not locally copy the
9684 string before duplicating it.
9685 (__nis_default_group): Likewise.
9686
9687 * nis/nis_lookup.c (nis_lookup): After calling nis_free_directory,
9688 we must clear the variable before calling __nisfind_server.
9689
9690 * nis/nis_lookup.c (nis_lookup): Always free memory allocated with
9691 nis_getnames. [Coverity CID 223]
9692
9693 * locale/programs/locfile.c (locfile_read): Use alloca instead of
9694 xmalloc to allocate local repertoire name. [Coverity CID 222]
9695
9696 * iconv/iconv_charmap.c (use_to_charmap): No need to dynamically
9697 allocate memory for the input to add_bytes. [Coverity CID 221]
9698
e7c8359e 9699 * posix/wordexp.c (w_addword): Free word if realloc fails and it
51e59260 9700 was allocated here. [Coverity CID 219, 220]
e7c8359e
UD
9701
9702 * posix/getconf.c (print_all): Free confstr data after printing.
9703 [Coverity CID 218]
9704
9705 * sysdeps/posix/getaddrinfo.c (gaih_inet): Free canon string if
9706 list allocation fails. [Coverity CID 215]
9707
9708 * nss/nsswitch.c (__nss_configure_lookup): Fix loop end condition.
9709 [Coverity CID 213]
9710
9711 * argp/argp-help.c (hol_entry_cmp): Don't call canon_doc_option if
9712 string is NULL. [Coverity CID 212]
9713 * argp/Makefile: Add rules to build and run bug-argp1.
9714 * argp/bug-argp1.c: New file.
9715
9716 * io/ftw.c (ftw_dir): Use __rawmemchr instead of strchr to find
9717 end of string.
9718 * stdlib/canonicalize.c (__realpath): Likewise.
9719
9720 * locale/programs/ld-time.c (time_finish): Don't dereference NULL
9721 pointer. [Coverity CID 206]
9722
9723 * elf/dl-dst.h (DL_DST_REQUIRED): Be prepared for missing link map
9724 in statically linked code.
9725 * elf/dl-load.c (_dl_dst_substitute): When replacing ORIGIN in
9726 statically built code, be prepared to have no link map.
9727 [Coverity CID 205]
9728
9729 * argp/argp-help.c (fill_in_uparams): Handle STATE==NULL in
9730 dgettext calls. [Coverity CID 204]
9731
9732 * argp/argp-help.c (struct uparams): Remove valid member. Change
9733 the one user.
9734 (uparam_names): Reduce size. Avoid relative relocations.
9735 Moved to read-only segment.
9736 (fill_in_uparams): Update for new layout.
9737
9738 * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs): Parameter can be
9739 assumed to always be != NULL. [Coverity CID 202]
9740
9741 * argp/argp-help.c (hol_entry_help): Remove some dead code
9742 [Coverity CID 200].
9743
9744 * nis/nss_nis/nis-service.c (_nss_nis_getservbyport_r): Optimize
9745 away a few more unconditional yperr2nss calls.
9746 (_nss_nis_getservbyname_r): Likewise.
9747
acf82eaf
UD
97482006-05-06 Ulrich Drepper <drepper@redhat.com>
9749
4461cf48
UD
9750 * sysdeps/generic/ldsodefs.h: Remove support for non-core
9751 architectures.
9752
b74a8c7f
UD
9753 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Make sure
9754 that unused memory passed to sendto is nevertheless initialized.
9755
acb98cb5
UD
9756 [BZ #2499]
9757 * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Avoid
9758 possibly unaligned memory accesses.
9759
bce16467
UD
9760 * include/arpa/nameser.h: Also optimize NS_PUT16 and NS_PUT32.
9761 * resolv/res_mkquery.c: Use NS_PUT16 and NS_PUT32 instead of __putshort
9762 and __putlong respectively. Correct buffer overflow check for
9763 NS_NOTIFY_OP.
9764
9765 * resolv/res_send.c (send_vc): Use ns_put16 instead of putshort.
9766
8e45b1ac
UD
9767 * resolv/res_send.c (res_queriesmatch): Fix typo in comment.
9768 (send_dg): Rewrite error handling to be more compact and avoid
9769 double recomputation of timeouts. Pass MSG_NOSIGNAL to send.
9770
697e1628
UD
9771 * include/arpa/nameser.h: Add optimizations for NS_GET16 and NS_GET32.
9772
9773 * resolv/res_send.c (res_nameinquery): Use NS_GET16 directly
9774 instead of ns_get16.
9775 (res_queriesmatch): Likewise. Minor optimization.
9776
acf82eaf
UD
9777 [BZ #2499]
9778 * resolv/res_query.c (__libc_res_nquery): If answerp != NULL,
9779 __libc_res_nsend might reallocate the buffer for the answer. In
9780 this case we have to reload the HP pointer.
9781
7bfee654
UD
97822006-05-05 Ulrich Drepper <drepper@redhat.com>
9783
694b49ca
UD
9784 * stdio-common/vfscanf.c (memory_error): Remove definition. Add
9785 some branch prediction hints.
9786
7bfee654
UD
9787 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Define SPLICE_F_*.
9788 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
9789 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
9790 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
9791 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
9792 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
9793 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
9794 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
9795
308bb2d5
UD
97962006-05-05 Martin Schwidefsky <schwidefsky@de.ibm.com>
9797
9798 * sysdeps/s390/s390-32/elf/start.S: Replace pc relative relocation
9799 by a GOT relocation to make Scrt1.o position independent.
9800 * sysdeps/s390/s390-64/elf/start.S: Likewise.
9801
9802 * sysdeps/unix/sysv/linux/s390/s390-32/syscall.S: Add support for
9803 six system call parameters.
9804 * sysdeps/unix/sysv/linux/s390/s390-64/syscall.S: Likewise.
9805
cdb9c321
UD
98062006-05-05 Ulrich Drepper <drepper@redhat.com>
9807
9808 * sunrpc/svcauth_des.c (cache_init): Use calloc instead of
9809 malloc&bzero.
9810
9811 * sunrpc/svc_udp.c (BZERO): Remove definition.
9812 (CALLOC): Define.
9813 (svc_enablecache): Use CALLOC instead of ALLOC&BZERO.
9814
9815 * sunrpc/des_impl.c: Remove ALT_ECB support. We never used it.
9816 (des_SPtrans): Use uint32_t type.
9817 (des_skb): Likewise.
9818
9819 * sunrpc/xdr_ref.c (xdr_reference): Use calloc instead of malloc&bzero.
9820
fff04b32
UD
98212006-05-05 Jakub Jelinek <jakub@redhat.com>
9822
9823 [BZ #2509]
9824 * stdio-common/tst-printf.sh: Adjust for tst-printf.c change even
9825 on 32-bit arches.
9826
98272006-05-05 Ulrich Drepper <drepper@redhat.com>
9828
9829 * locale/programs/ld-address.c (address_finish): Fix one more
cdb9c321 9830 place where the iso639 array might be accessed beyond the limits.
fff04b32 9831
077a30bc 98322006-05-04 Ulrich Drepper <drepper@redhat.com>
77dd4c3b 9833
f2d5cf50
UD
9834 * nis/nis_table.c (nis_list): Avoid clearing res twice before
9835 filling it for the first time.
9836
3e4370cf
UD
9837 * nis/nis_table.c (get_tablepath): Renamed from __get_tablepath.
9838 Adjust all callers.
9839 Free res object content before returning.
9840
5e65a53d
UD
9841 * sunrpc/xdr_array.c (xdr_array): Use calloc instead of malloc&bzero.
9842
48be3114
UD
9843 * sunrpc/key_call.c (__rpc_thread_key_cleanup): Also free
9844 client->cl_auth.
9845
ca4fce0e
UD
9846 * sunrpc/rpc_thread.c (__rpc_thread_destroy): Don't skip entire
9847 cleanup for initial thread, just the free call on TVP.
9848
077a30bc 9849 * nscd/gai.c (__getline): Define.
3b7a95fb 9850
5d37289a 9851
3f87d901 9852See ChangeLog.16 for earlier changes.
This page took 1.442143 seconds and 5 git commands to generate.