]> git.ipfire.org Git - thirdparty/glibc.git/blame - ChangeLog
[BZ #9677]
[thirdparty/glibc.git] / ChangeLog
CommitLineData
bf93cd3b
UD
12008-12-21 Bruno Haible <bruno@clisp.org>
2
3 [BZ #9677]
4 * wcsmbs/mbsnrtowcs.c (__mbsnrtowcs): Create temporary state object
5 if no output is written.
6
49159e12
UD
72008-12-13 Klaus Dittrich <kladit@arcor.de>
8
9 * login/utmp_file.c (pututline_file): Replace call to dup2 with
10 libc internal symbol __dup2 to avoid access through the PLT.
11
d4f0720b
UD
122008-12-08 Ulrich Drepper <drepper@redhat.com>
13
135460f4
UD
14 [BZ #6545]
15 * sysdeps/unix/sysv/linux/bits/socket.h (SCM_CREDENTIALS): Make
16 available only for __USE_GNU.
17
ed0da352
UD
18 * inet/Makefile (tests): Add tst-getni2.
19 * inet/tst-getni2.c: New file.
20
d4f0720b
UD
21 [BZ #7080]
22 * inet/getnameinfo.c (getnameinfo): Check for output buffers being
23 NULL when NI_NAMEREQD is set.
24 Patch mostly by Yang Hongyang <yanghy@cn.fujitsu.com>.
25 * inet/Makefile (tests): Add tst-getni1.
26 * inet/tst-getni1.c: New file.
27
cd72adeb
UD
282008-12-03 Petr Baudis <pasky@suse.cz>
29
30 [BZ #7067]
31 * nscd/connections.c (invalidate_cache): Use prune_run_lock
32 instead of prune_lock.
33 (nscd_run_prune): Before calling prune_cache, take prune_run_lock.
34 * nscd/nscd.h (database_dyn): Add prune_run_cache.
35
e87946cc
UD
362008-12-07 Ulrich Drepper <drepper@redhat.com>
37
200da00a
UD
38 * resolv/res_send.c (send_dg): Use correct guards for SOCK_CLOEXEC
39 use.
40
41 * sysdeps/unix/sysv/linux/kernel-features.h: Fix typo in accept4
42 handling.
43
905ef0da
UD
44 * resolv/res_init.c (__res_vinit): Always assign to statp->nscount
45 after reading name server list.
46
71053765 47 [BZ #7058]
e87946cc
UD
48 * nis/nss_nis/nis-hosts.c (_nss_nis_gethostbyname4_r): Fix memory
49 handling for host name aliases.
50
d43b8bdd
JJ
512008-11-24 Arkadiusz Miƛkiewicz <arekm@maven.pl>
52
53 * sysdeps/i386/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Use LOAD_PIC_REG
54 instead of doing things manually.
55
562008-11-26 Chris Steel <chris.steel.lnx@googlemail.com>
57
58 * posix/regex_internal.h (build_wcs_upper_buffer):
59 Return type is reg_error_t.
60
25a34eb7
UD
612008-12-05 Ulrich Drepper <drepper@redhat.com>
62
f3721ab2
UD
63 * posix/globtest.sh: Use mktemp to create temporary file and
64 directory.
65
25a34eb7
UD
66 * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_SET_S): Handle large
67 sets correctly.
68 (__CPU_CLR_S): Likewise.
69 (__CPU_ISSET_S): Likewise.
70
8680179f
UD
712008-12-05 Joseph Myers <joseph@codesourcery.com>
72 Ulrich Drepper <drepper@redhat.com>
73
74 * scripts/firstversion.awk: Use custom comparison function to compare
75 version numbers.
76 * scripts/versions.awk: Use sort invocation which can handle
77 multi-digit sub-version numbers.
78
72d50908
UD
792008-12-04 Ulrich Drepper <drepper@redhat.com>
80
81 * locale/programs/ld-address.c (DEFINE_LANGUAGE_CODE2): Define.
82 * locale/iso-639.def: Add Chhattisgarhi entry.
83
f93fc0b7
UD
842008-12-02 Ulrich Drepper <drepper@redhat.com>
85
da5ac135
UD
86 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname3_r): Recognize
87 ESRCH return value.
88 (_nss_dns_gethostbyname4_r): Likewise.
89 * resolv/res_init.c (__res_vinit): Initialize nscount to zero.
90 * sysdeps/posix/getaddrinfo.c (gaih_inet): In case we use
91 gethostbyname4_r, we don't have a separate IPv6 status, so copy
92 the no_data variable.
93
6f5c3117
UD
94 * resolv/res_init.c (__res_vinit): Fill in IPv4 name server
95 information at the correct index.
96
f93fc0b7
UD
97 * socket/sys/socket.h: Declare accept4.
98 * socket/accept4.c: New file.
99 * sysdeps/unix/sysv/linux/accept4.c: New file.
100 * sysdeps/unix/sysv/linux/i386/accept4.S: New file.
101 * socket/Makefile (routines): Add accept4.
102 * socket/Versions: Export accept4 with version GLIBC_2.10.
103 * socket/paccept.c: Removed.
104 * sysdeps/unix/sysv/linux/paccept.c: Removed.
105 * sysdeps/unix/sysv/linux/i386/paccept.S: Removed.
106 * Versions.def: Define GLIBC_2.10 for libc.
107 * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_ACCEPT4.
108
109 * nscd/connections.c: Use accept4.
110
111 * sysdeps/unix/sysv/linux/i386/socket.S: Fix comment.
112
1fa7ae05
UD
1132008-12-01 Ulrich Drepper <drepper@redhat.com>
114
9744268c
UD
115 * resolv/res_send.c (send_dg): Create sockets with non-blocking
116 flag already set.
117
1fa7ae05
UD
118 * stdlib/setenv.c (unsetenv): Don't search environment if it does
119 not exist.
30c06371
UD
120 * stdlib/Makefile (tests): Add tst-unsetenv1.
121 * stdlib/tst-unsetenv1.c: New file.
1fa7ae05 122
37a6a271
UD
1232008-11-29 Ulrich Drepper <drepper@redhat.com>
124
125 * login/utmp_file.c (file_writable): New variable.
126 (setutent_file): Don't try to open file for writing.
127 (pututline_file): Before writing, make descriptor writable if
128 necessary.
129
ca4dc0fe
UD
1302008-11-26 Ulrich Drepper <drepper@redhat.com>
131
be4607eb
UD
132 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Only restrict search
133 to IPv4 or IPv6 if an interface has been found.
ca4dc0fe 134
01a74645
RM
1352008-11-26 Roland McGrath <roland@redhat.com>
136
24fd0a5b
RM
137 * sysdeps/unix/sysv/linux/alpha/ipc_priv.h: Renamed to ...
138 * sysdeps/unix/sysv/linux/powerpc/ipc_priv.h: ... here.
139
140 * sysdeps/unix/sysv/linux/alpha/wordexp.c: Renamed to ...
141 * sysdeps/unix/sysv/linux/ia64/wordexp.c: ... here.
142 * sysdeps/unix/sysv/linux/sparc/sparc64/wordexp.c: Change #include.
143
01a74645
RM
144 * elf/elf.h (NT_386_IOPERM): New macro.
145 (NT_PPC_VSX): New macro.
146
c0439b95
RM
1472008-11-25 Roland McGrath <roland@redhat.com>
148
149 * sysdeps/alpha, sysdeps/unix/bsd/osf/alpha,
150 sysdeps/unix/bsd/Attic/osf1/alpha, sysdeps/unix/sysv/linux/alpha,
151 sysdeps/unix/sysv/linux/alpha/alpha, sysdeps/unix/alpha,
152 sysdeps/mach/alpha, sysdeps/mach/hurd/alpha:
153 Subdirectories moved to ports repository.
154 * configure.in (base_machine): Remove alpha case.
155
d3dc523b
RM
1562008-11-25 Thomas Schwinge <tschwinge@gnu.org>
157
158 * sysdeps/mach/strerror_l.c: New file.
159
edba7a54
UD
1602008-11-13 Ryan S. Arnold <rsa@us.ibm.com>
161
162 [BZ #6411]
163 * sysdeps/powerpc/fpu/Makefile: Added test case tst-setcontext-fpscr.
164 * sysdeps/powerpc/fpu/feholdexcpt.c (_FPU_MASK_ALL): Define to replace
165 magic numbers.
166 * sysdeps/powerpc/fpu/fenv_libc.h (fesetenv_register): Dynamically
167 choose mtfsf insn based on PPC_FEATURE_HAS_DFP.
168 (relax_fenv_state): Same as above.
169 (FPSCR_29): Reserve bit in ISA 2.05.
170 (FPSCR_NI): Provide define for compat.
171 * sysdeps/powerpc/fpu/fesetenv.c (_FPU_MASK_ALL): Define to replace
172 magic numbers.
173 * sysdeps/powerpc/fpu/feupdateenv.c (_FPU_MASK_ALL): Define to replace
174 magic numbers.
175 * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c: New file. Test case to
176 test setcontext and swapcontext with dynamic 64-bit FPSCR detection.
177 * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp): Adjust
178 access to hwcap to account for hwcap size increase to uint64_t.
179 * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S (__sigsetjmp ):
180 Likewise.
181 * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S
182 (*setcontext): Likewise.
183 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/setcontext.S:
184 New file.
185 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/swapcontext.S:
186 New file.
187 * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S
188 (*setcontext): dynamically select mtfsf insn based on
189 PPC_FEATURE_HAS_DFP. Adjust access to hwcap to account for hwcap size
190 increase to uint64_t.
191 * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S
192 (*swapcontext): dynamically select mtfsf insn based on
193 PPC_FEATURE_HAS_DFP. Adjust access to hwcap to account for hwcap size
194 increase to uint64_t.
195 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/setcontext.S:
196 New file.
197 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/swapcontext.S:
198 New file.
199 * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
200 (*setcontext): dynamically select mtfsf insn based on
201 PPC_FEATURE_HAS_DFP.
202 * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
203 (*swapcontext): dynamically select mtfsf insn based on
204 PPC_FEATURE_HAS_DFP.
205
ec297962
UD
2062008-11-13 Ulrich Drepper <drepper@redhat.com>
207
b5449f8a 208 * version.h: Bump for 2.9 release.
f52bb4d7 209 * include/features.h (__GLIBC_MINOR__): Bump to 9.
b5449f8a 210
ec297962
UD
211 [BZ #7029]
212 * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_ALLOC_SIZE):
213 Multiply with sizeof of __cpu_mask, not 8 unconditionally after
214 all the rounding.
215
3cac8b75
UD
2162008-11-11 Ulrich Drepper <drepper@redhat.com>
217
0e54a725 218 [BZ #7009]
3cac8b75
UD
219 * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): Don't abort for
220 unknown request types for now.
221
58a4b51a
RM
2222008-11-11 Roland McGrath <roland@redhat.com>
223
224 * sysdeps/x86_64/configure: New file.
225
226 * configure.in: Add AC_SUBST(libc_cv_cpp_asm_debuginfo).
227 * configure: Regenerated.
228
01bd5e96
JJ
2292008-11-03 Martin Schwidefsky <schwidefsky@de.ibm.com>
230
231 * sysdeps/s390/s390-64/dl-trampoline.S (_dl_runtime_profile): Use the
232 correct instruction to remove the stack frame.
233
a9069550
JJ
2342008-11-03 Michael Matz <matz@suse.de>
235
236 * sysdeps/s390/bits/atomic.h (__arch_compare_and_exchange_val_32_acq,
237 __arch_compare_and_exchange_val_64_acq): Add "memory" clobber.
238
4b23f9bd
JJ
2392008-11-07 Jakub Jelinek <jakub@redhat.com>
240
09f66a4f
JJ
241 * include/stdio.h (__builtin_fwrite, __builtin_fwrite_unlocked):
242 Remove.
243
4b23f9bd
JJ
244 * bits/libc-tsd.h (__libc_tsd_define, __libc_tsd_address,
245 __libc_tsd_get, __libc_tsd_set): Add TYPE argument, use it as the type
246 of the thread variable instead of void *.
247 * sysdeps/mach/hurd/bits/libc-tsd.h (__libc_tsd_define,
248 __libc_tsd_address, __libc_tsd_get, __libc_tsd_set): Likewise.
249 * include/ctype.h (CTYPE_B, CTYPE_TOUPPER, CTYPE_TOLOWER): Adjust
250 __libc_tsd_define arguments.
251 (__ctype_b_loc, __ctype_toupper_loc, __ctype_tolower_loc): Adjust
252 __libc_tsd_address arguments. Remove union hack.
253 * include/rpc/rpc.h (RPC_VARS): Adjust __libc_tsd_define arguments.
254 * sunrpc/rpc_thread.c (RPC_VARS): Likewise.
255 (__rpc_thread_destroy, rpc_thread_multi, __rpc_thread_variables):
256 Adjust __libc_tsd_{set,get} arguments.
257 * ctype/ctype-info.c (CTYPE_B, CTYPE_TOUPPER, CTYPE_TOLOWER): Adjust
258 __libc_tsd_define arguments.
259 * locale/uselocale.c (__uselocale): Adjust __libc_tsd_{set,get}
260 arguments.
261 * locale/lc-ctype.c (_nl_postload_ctype): Likewise.
262 * locale/global-locale.c (__libc_tsd_LOCALE): Adjust type.
263 (LOCALE): Adjust __libc_tsd_define arguments.
264 * locale/localeinfo.h (_NL_CURRENT_LOCALE): Adjust __libc_tsd_get
265 arguments.
266 (LOCALE): Adjust __libc_tsd_define arguments.
267 * sysdeps/mach/hurd/malloc-machine.h (MALLOC): Adjust __libc_tsd_define
268 arguments.
269 (tsd_setspecific, tsd_getspecific): Adjust __libc_tsd_{set,get}
270 arguments.
271
486bdb88
UD
2722008-11-02 Ulrich Drepper <drepper@redhat.com>
273
274 * malloc/malloc.c (public_rEALLOc): When new arena is used, copy
275 really all bytes. Patch by Denys Vlasenko <dvlasenk@redhat.com>.
276
64647f9a
UD
2772008-11-01 Ulrich Drepper <drepper@redhat.com>
278
279 [BZ #6966]
280 * misc/hsearch_r.c (hsearch_r): Fix secondary hash function.
281
acd44dbc
UD
2822008-10-24 Joseph Myers <joseph@codesourcery.com>
283 Ulrich Drepper <drepper@redhat.com>
284
285 * math/tgmath.h (__floating_type): Use __builtin_classify_type in
286 definition for GCC 3.1 and later.
64647f9a 287
41e25904
UD
2882008-10-31 Jakub Jelinek <jakub@redhat.com>
289
290 * elf/dl-tls.c (__tls_get_addr): After calling _dl_update_slotinfo
291 refetch dtv, as it might have changed.
292 * elf/Makefile: Add rules to build and run tst-tls18.
293 * elf/tst-tls18.c: New test.
294 * elf/tst-tlsmod18a.c: New file.
295
e148a644 2962008-09-09 Aurelien Jarno <aurelien@aurel32.net>
97f12390 297
da9c2314 298 [BZ #6875]
e148a644
UD
299 * iconvdata/gconv-modules: Add LATIN9 as an alias to ISO-8859-15.
300
3012008-10-31 Ulrich Drepper <drepper@redhat.com>
97f12390 302
6daf1a2f
UD
303 [BZ #6867]
304 * sysdeps/powerpc/elf/rtld-global-offsets.sym: Fix typo.
305
6f576bf6
UD
306 [BZ #6919]
307 * posix/spawnattr_getschedparam.c (posix_spawnattr_getschedparam):
308 Fix length of copy operation.
309
45a8beb5
UD
3102008-10-02 Pierre Habouzit <madcoder@debian.org>
311
312 * sysdeps/unix/sysv/linux/eventfd.c (eventfd): Use the eventfd2 syscall
313 and fix its calling convention.
314
ad12e635
UD
3152008-10-07 Andreas Schwab <schwab@suse.de>
316
317 [BZ #6942]
318 * resolv/res_send.c (send_vc): Fix last change.
319 (send_dg): Align here as well.
320
3cf44918
UD
3212008-10-31 Ulrich Drepper <drepper@redhat.com>
322
dbb6ab3e
UD
323 * sysdeps/unix/sysv/linux/ulimit.c (__ulimit): Handle UL_GETFSIZE
324 return value in case rlimit is RLIM_INFINITY.
325
326 [BZ #6947]
327 * sysdeps/unix/sysv/linux/ulimit.c (__ulimit): Fix return value
328 for UL_SETFSIZE.
1828d6b0
UD
329 * resource/Makefile (tests): Add bug-ulimit1.
330 * resource/bug-ulimit1.c: New file.
dbb6ab3e 331
a5ff533e
UD
332 [BZ #6974]
333 * sunrpc/rpc_main.c (mkfile_output): Properly handle filename
334 without dot. Properly terminate the string with a null byte.
335 Based on a patch by Aurelien Jarno <aurelien@aurel32.net>.
336
4bed549a
UD
337 [BZ #6980]
338 * debug/getgroups_chk.c (__getgroups_chk): Return EINVAL error for
339 negative sizees.
340 * posix/bits/unistd.h (getgroups): Call __getgroups_chk for
341 negative __size.
342
3cf44918
UD
343 [BZ #6995]
344 * sysdeps/powerpc/powerpc32/dl-machine.c: Fix typo in message.
345
21b07d8b
UD
3462008-10-30 Ulrich Drepper <drepper@redhat.com>
347
332c4465
UD
348 * grp/initgroups.c (internal_getgrouplist): Don't prematurely
349 abort if there is no initgroups_dyn function.
350
21b07d8b
UD
351 * resolv/res_send.c (send_dg): On timeout, only return nonzero
352 result if any of the queries really provided an answer.
353
4caa3fb7
UD
3542008-10-28 Ulrich Drepper <drepper@redhat.com>
355
356 * po/lt.po: Update from translation team.
357
a22c3a0d
UD
3582008-10-26 Ulrich Drepper <drepper@redhat.com>
359
360 * po/id.po: Update from translation team.
361
49685151
UD
3622008-10-24 Ulrich Drepper <drepper@redhat.com>
363
364 * resolv/res_query.c (__libc_res_nquery): Add a few casts.
660675de 365 Fix tests for existence of second reply.
49685151 366
8d9d5d35
UD
3672008-10-23 Ulrich Drepper <drepper@redhat.com>
368
369 * po/id.po: New file.
370 Contributed by the Indonesian translation team.
371
208bc836
UD
3722008-10-22 Dmitry V. Levin <ldv@altlinux.org>
373
374 * misc/syslog.c (openlog_internal): Fix __have_sock_cloexec
375 initialization.
376
60a23f5a
UD
3772008-10-17 Jakub Jelinek <jakub@redhat.com>
378
379 * elf/Makefile: Add rules to build and run tst-tls17.
380 * elf/tst-tls17.c: New test.
381 * elf/tst-tlsmod17a.c: New file.
382 * elf/tst-tlsmod17b.c: Likewise.
383
292eb817
UD
3842008-10-17 Ulrich Drepper <drepper@redhat.com>
385
386 * stdlib/divmod_1.c: Use correct type for dummy variable.
387 * stdlib/mod_1.c: Likewise.
388
5df2a427
UD
3892008-10-16 Ulrich Drepper <drepper@redhat.com>
390
391 * elf/dl-tls.c (_dl_update_slotinfo): Copy all of the initial DTV.
392
472e5e08
JJ
3932008-10-16 Jakub Jelinek <jakub@redhat.com>
394
395 * sysdeps/unix/sysv/linux/sys/signalfd.h (signalfd): Fix __THROW vs.
396 __nonnull order for C++.
397 * sysdeps/unix/sysv/linux/alpha/sys/signalfd.h (signalfd): Likewise.
398 * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h (signalfd): Likewise.
399
86900abd
RM
4002008-10-01 Daniel Jacobowitz <dan@codesourcery.com>
401
402 * stdlib/longlong.h: Update from GCC.
403
19c10a47
JJ
4042008-10-09 Jakub Jelinek <jakub@redhat.com>
405 David S. Miller <davem@davemloft.net>
406
407 * sysdeps/sparc/sparc64/sparcv9v/memcpy.S: When not USE_BPR,
408 make sure any registers used with 64-bit 'branch-on-register'
409 instructions have their top 32-bits clear.
410 * sysdeps/sparc/sparc64/sparcv9v/memset.S: Likewise.
411 * sysdeps/sparc/sparc64/sparcv9v2/memcpy.S: Likewise.
412
2fdde3b9
UD
4132008-09-18 Andreas Schwab <schwab@suse.de>
414
415 [BZ #6942]
416 * resolv/res_send.c (send_vc): Fix use of unaligned address.
417 Properly handle partial reads.
418
6ba25fcb
RM
4192008-10-01 Mark Shinwell <shinwell@codesourcery.com>
420
421 * elf/elf.h (STO_MIPS_PLT): New.
422 (R_MIPS_COPY): New.
423 (R_MIPS_JUMP_SLOT): New.
424 (R_MIPS_NUM): Redefine to 128.
425 (DT_MIPS_PLTGOT): New.
426 (DT_MIPS_RWPLT): New.
427 (DT_MIPS_NUM): Redefine to 0x35.
428
97898201
UD
4292008-10-01 Ulrich Drepper <drepper@redhat.com>
430
431 * timezone/africa: Update from tzdata2008f.
432 * timezone/asia: Likewise.
433 * timezone/australasia: Likewise.
434 * timezone/europe: Likewise.
435 * timezone/leapseconds: Likewise.
436 * timezone/northamerica: Likewise.
437 * timezone/southamerica: Likewise.
438 * timezone/zone.tab: Likewise.
439
3452ded5
UD
4402008-09-30 Ulrich Drepper <drepper@redhat.com>
441
442 * nscd/connections.c: Disable use of paccept for now.
443
54ad9327
UD
4442008-09-29 Ulrich Drepper <drepper@redhat.com>
445
8ec2550e
UD
446 * socket/Versions: Remove paccept export for GLIBC_2.9.
447 * socket/Makefile (routines): Remove paccept.
448 * socket/sys/socket.h: Remove paccept declaration.
449
54ad9327
UD
450 * po/sv.po: Update from translation team.
451
1c5eba39
UD
4522008-09-22 Deborah S. Townsend <dstownse@us.ibm.com>
453
454 * sysdeps/s390/s390-64/s390x-mcount.S: Replace ahi with aghi.
455 * sysdeps/unix/sysv/linux/s390/s390-64/socket.S: Likewise.
456
0a26fc4d
UD
4572008-09-16 Ulrich Drepper <drepper@redhat.com>
458
459 * dlfcn/dlopen.c (dlopen_doit): Allow __RTLD_SPROF flag.
460 Patch by Olivier Fourdan <ofourdan@redhat.com>.
461
2bcaff08
UD
4622008-09-15 Ulrich Drepper <drepper@redhat.com>
463
464 * sunrpc/rpc/svc.h: Declare svcfd_create.
465 Patch by Michael Solberg <msolberg@redhat.com>.
466
caa60cb9
UD
4672008-09-12 Flavio Leitner <fleitner@redhat.com>
468 Ulrich Drepper <drepper@redhat.com>
469
470 * malloc/malloc.c (public_vALLOc): Try other arenas in case
471 _int_valloc fails.
472 (public_pVALLOc): Likewise.
473
6c161112
AJ
4742008-09-02 Andreas Jaeger <aj@suse.de>
475
476 * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: Fix last
477 commit.
478
0cb269d7
RM
4792008-08-26 Aurelien Jarno <aurelien@aurel32.net>
480
452034cc 481 [BZ #6860]
2bcaff08 482 * hurd/hurd/signal.h (HURD_MSGPORT_RPC): Fix a typo.
0cb269d7 483
13074b5b
RM
4842008-07-18 Daniel Jacobowitz <dan@codesourcery.com>
485
486 * Makefile (check-data): Check data directory in add-ons.
487 * elf/Makefile (check-data): Likewise.
488
58801a0e
RM
4892008-08-18 Roland McGrath <roland@redhat.com>
490
491 * configure.in (--with-cpu): Check compiler support for -march/-mcpu.
492 * configure: Regenerated.
493 * config.make.in (cflags-cpu): New substituted variable.
494 (with-cpu): Variable removed.
495 * Makeconfig (+cflags): Use $(cflags-cpu), not $(with-cpu).
496
7df49c5d
UD
4972008-08-14 Ryan S. Arnold <rsa@us.ibm.com>
498
499 [BZ #6845]
500 * sysdeps/powerpc/fpu/bits/mathinline.h (__signbitl): Copy new
501 __signbitl definition and __LONG_DOUBLE_128__ guard from:
502 * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h: Remove as
503 redundant. Functions which call floating point assembler operations
504 should go into a sysdeps powerpc/fpu directory.
505
965805e8
UD
5062008-08-15 Ulrich Drepper <drepper@redhat.com>
507
508 * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Define MAP_STACK.
509 * sysdeps/unix/sysv/linux/i386/bits/mman.h: Likewise.
510
9cf73ab0
UD
5112008-08-14 Ulrich Drepper <drepper@redhat.com>
512
62a1ffc6
UD
513 * sysdeps/x86_64/memset.S: Reduce size of tables for PIC.
514
9cf73ab0
UD
515 * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): Undo all
516 change related to AT_EXECFN. We cannot use that string.
517 * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Remove
518 _dl_execfn member.
519 * elf/dl-support.c: Remove _dl_execfn variable.
520 (_dl_aux_init): Remove handling of AT_EXECFN.
521 * elf/dl-sysdep.c (_dl_sysdep_start): Remove handling of AT_EXECFN.
522 * elf/rtld.c (process_envvars): Remove use of __ASSUME_AT_EXECFN.
523
1bfa05cf
UD
5242008-08-13 Ulrich Drepper <drepper@redhat.com>
525
7b3ba2c4
UD
526 [BZ #6544]
527 * libio/fmemopen.c: Implement binary mode. In this mode no NUL
528 byte gets added to writes and seeks from the end use the length of
529 the buffer and not the currently terminating NUL byte.
530
1bfa05cf
UD
531 [BZ #6634]
532 * login/utmp_file.c (getutent_r_file): Take additional parameter.
533 Set to true if locking failed.
534 (getutid_r_file): Adjust caller.
535 (pututline_file): Likewise. Return NULL in this case.
536 Patch mostly by halesh.s@gmail.com.
537
c5671698
UD
5382008-08-12 Ulrich Drepper <drepper@redhat.com>
539
540 [BZ #6589]
541 * sysdeps/unix/sysv/linux/ifaddrs.c (struct sockaddr_ll_max):
542 Define.
543 (struct ifaddrs_storage): Use it instead of sockaddr_ll.
544
4497384e
UD
5452008-08-12 Ryan S. Arnold <rsa@us.ibm.com>
546
547 [BZ #6839]
548 * sysdeps/powerpc/powerpc32/dl-machine.c (CHECK_STATIC_TLS): Remove
549 macro since it is now available in elf/dynamic-link.h.
550
675d7111
RM
5512008-08-12 Roland McGrath <roland@frob.com>
552
553 * hurd/hurd/signal.h (HURD_MSGPORT_RPC): Avoid -Wparenthesis triggers,
554 in case used outside of libc.
555 Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>
556
8b254432
UD
5572008-08-11 Ulrich Drepper <drepper@redhat.com>
558
559 * resolv/res_mkquery.c (res_nmkquery): Call ns_name_compress
560 directly instead of going through dn_comp.
561
ac84eeca
RM
5622008-08-11 Aurelien Jarno <aurel32@debian.org>
563
564 * sysdeps/mach/i386/machine-lock.h (__spin_unlock, __spin_try_lock):
565 Fix asm constraints.
566
f081b451
UD
5672008-08-07 Ulrich Drepper <drepper@redhat.com>
568
569 [BZ #6790]
570 * sysdeps/unix/sysv/linux/bits/in.h (IP_PMTUDISC_PROBE): Define.
571 (IPV6_PMTUDISC_PROBE): Likewise.
572
30a4429e
UD
5732008-08-07 Pete Eberlein <eberlein@us.ibm.com>
574
575 [BZ #6791]
576 * sysdeps/unix/sysv/linux/powerpc/bits/mman.h (PROT_SAO): Define.
577
1642331d 5782008-08-01 Steven Munroe <sjmunroe@us.ibm.com>
626f68ff 579 Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
1642331d
UD
580
581 [BZ #6817]
582 * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags):
583 Added the members 'vsx' and 'arch_2_06'.
584 (_dl_powerpc_platforms): Add the member 'power7'.
585 * sysdeps/powerpc/dl-procinfo.h: Modify _DL_HWCAP_FIRST
586 to reflect the changes required by VSX and ISA 2.06.
587 Modify _DL_PLATFORMS_COUNT to reflect the addition of
588 'power7'.
589 Defined PPC_PLATFORM_POWER7.
590 (_dl_string_platform): Add support for POWER7.
591 * sysdeps/powerpc/sysdep.h: Define bit masks for VSX
592 capability and ISA 2.06.
593
48b94661
UD
5942008-08-07 Ulrich Drepper <drepper@redhat.com>
595
596 [BZ #6824]
597 * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h: Use correct
598 macro to detect use of 128 bit long double.
599 Patch by Ryan S. Arnold <rsa@us.ibm.com>.
600
9523fd28
UD
6012008-08-05 Ulrich Drepper <drepper@redhat.com>
602
9c0cb150
UD
603 * scripts/gen-as-const.awk: Use 32-bit values on 32-bit platforms.
604
46aea5cb 605 [BZ #5794]
9523fd28
UD
606 * sysdeps/i386/fpu/s_expm1l.S: Simply use exp implementation for large
607 parameters.
608 * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
609 Patch by Denys Vlasenko <dvlasenk@redhat.com>.
610
c400c931
UD
6112008-08-03 Ulrich Drepper <drepper@redhat.com>
612
613 * nscd/connections.c (main_loop_poll): Pass a buffer which is
614 guaranteed to be large enough to read inotify event. Ignore
615 EAGAIN error. Better error message. Add branch predicition.
616 (main_loop_epoll): Likewise.
617
3f39adac
RM
6182008-08-02 Roland McGrath <roland@frob.com>
619
620 * sysdeps/mach/i386/machine-lock.h (__spin_unlock, __spin_try_lock):
621 Add memory clobbers.
622
3501542f
UD
6232008-08-02 Ulrich Drepper <drepper@redhat.com>
624
48b22986
UD
625 * manual/arith.texi: Avoid @strong{Note:}.
626 * manual/creature.texi: Likewise.
627 * manual/filesys.texi: Likewise.
628 * manual/math.texi: Likewise.
629 * manual/memory.texi: Likewise.
630 * manual/resource.texi: Likewise.
631 * manual/syslog.texi: Likewise.
632 * manual/time.texi: Likewise.
633
3501542f
UD
634 * sysdeps/posix/clock_getres.c (hp_timing_getres): Remove inline
635 to prevent warning.
636
17756df3
UD
6372008-08-01 Ulrich Drepper <drepper@redhat.com>
638
ebcc1f4d
UD
639 * sysdeps/unix/sysv/linux/Versions: Fix changes due to old patch for
640 new epoll_create1 interface.
641 * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
642 * sysdeps/unix/sysv/linux/sys/epoll.h: Likewise.
643 * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
644
144bfa86
UD
645 * include/arpa/nameser.h (NS_GET16): Use const pointer.
646 (NS_GET32): Likewise.
647
7e1b29c6
UD
648 * sysdeps/unix/sysv/linux/kernel-features.h: s390 has the new
649 syscalls, too.
650
42fa1f67
UD
651 * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): We cannot
652 use the AT_EXECFN value if it is no absolute path.
653 * sysdeps/unix/sysv/linux/kernel-features.h: Never define
654 __ASSUME_AT_EXECFN.
655
cd5743fd
UD
656 * Versions.def: Add GLIBC_2.9 to libresolv.
657 * include/resolv.h: Remove hidden proto declarations for __ns_*
658 functions. Add them for __dn_count_labels and __p_secstodate.
659 * include/arpa/nameser.h: Add a number of hidden proto declarations.
660 Define ns_msg_getflags macro here.
661 * resolv/res_debug.c: Add hidden definition for __dn_count_labels
662 and __p_secstodate.
663 * resolv/Versions: Export functions from <arpa/nameser.h> from
664 libresolv in version GLIBC_2.9.
665 * resolv/ns_name.c: Integrate changes from bind 9.5.0. Add necessary
666 hidden definitions.
667 * resolv/ns_netint.c: Likewise.
668 * resolv/ns_parse.c: Likewise.
669 * resolv/ns_print.c: Likewise.
670 * resolv/ns_samedomain.c: Likewise.
671 * resolv/ns_ttl.c: Likewise.
672 * resolv/arpa/nameser_compat.h: Likewise.
673 * resolv/arpa/nameser.h: Likewise. Remove macros which redirect
674 function calls.
675 * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Use __ns_get16
676 instead of ns_get16.
677 * resolv/nss_dns/dns-host.c (getanswer_r): Use __ns_get16 and
678 __ns_get32 instead of ns_get16 and ns_get32 respectively.
679 (gaih_getanswer_slice): Likewise.
680 * resolv/Makefile (libresolv-routines): Add ns_date.
681 * resolv/ns_date.c: New file.
682
17756df3
UD
683 * elf/Makefile (check-localplt.out): Also check libresolv and
684 libcrypt.
685
46bc5d43
UD
6862008-07-31 Ulrich Drepper <drepper@redhat.com>
687
688 * sysdeps/unix/sysv/linux/kernel-features.h: Define
689 __ASSUME_O_CLOEXEC.
690
a707cff6
UD
6912008-07-30 Ulrich Drepper <drepper@redhat.com>
692
3c227386
UD
693 * sysdeps/posix/getaddrinfo.c (gaih_inet): Raise size of initial
694 buffer passed to NSS functions.
695
9523fd28 696 * nscd/connections.c (nscd_init): Typo in preprocessor directive.
bd7f4857
UD
697
698 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PACCEPT):
699 Define.
700
a707cff6
UD
701 * misc/syslog.c (openlog_internal): Fix compile problem.
702
0424d007
RM
7032008-07-28 Roland McGrath <roland@redhat.com>
704
705 * elf/dl-sysdep.c (_dl_show_auxv): Add AT_EXECFN to the table.
706
b7da31a1
UD
7072008-07-28 Ulrich Drepper <drepper@redhat.com>
708
300ea0ad
UD
709 * io/ftw.c (add_object): Remove inline to avoid warning.
710
d6173baa
UD
711 * sysdeps/unix/sysv/linux/paccept.c: Fix compile problem.
712
b7da31a1
UD
713 * resolv/res_send.c (__libc_res_nsend): Take additional parameter.
714 Use it instead of locally defined resplen2 variable.
715 (res_nsend): Adjust for __libc_res_nsend interface change.
716 (send_vc): Initialize *resplen2 if necessary. Read length of
717 package into an appropriately aligned variable. Store converted length
718 in new variable and use it appropriately.
719 Add branch prediction help.
720 * resolv/res_query.c (__libc_res_nquery): Take additional parameter
721 and pass it on to __libc_res_nsend. Adjust all callers.
722 (__libc_res_nsearch): Likewise.
723 (__libc_res_nqeurydomain): Likewise.
724 * resolv/nss_dns/dns-host.c: Adjust for __libc_res_nsearch interface
725 change.
726 (_nss_dns_gethostbyname4): Don't unconditionally allocate tmp array.
727 Define resplen2 variable and pass it to __libc_res_nsearch and then
728 to gaih_getanswer.
729 (getanswer_r): In case of incorrect DNS data don't overread buffer.
730 Add branch prediction.
731 (gaih_getanswer_slice): Likewise. Check for invalid data types.
732 (gaih_getanswer): Don't decode second slice if first one failed due
733 to a too small buffer. Don't let not found status of second
734 decoder shadow results of the first.
735 * resolv/gethnamaddr.c (gethostbyname2): Adjust for __libc_res_nsearch
736 and __libc_res_nquery interface changes
737 (gethostbyaddr): Adjust for __libc_res_nquery interface change.
738 * include/resolv.h: Adjust prototypes for __libc_res_nquery,
739 __libc_res_nsearch, and __libc_res_nsend.
740 * resolv/nss_dns/dns-canon.c: Adjust for __libc_res_nquery interface
741 change.
742 * resolv/nss_dns/dns-network.c: Adjust for __libc_res_nquery and
743 __libc_res_nsearch interface changes.
744
11ed3eae
UD
7452008-07-27 Ulrich Drepper <drepper@redhat.com>
746
372aece0
UD
747 * libio/iopopen.c (_IO_new_proc_open): Remove unnecessary volatile.
748
e038616f
UD
749 * posix/wordexp.c (exec_comm): Use pipe2 if possible to create
750 file descriptors with close-on-exec set.
751 (exec_comm_child): Fix the case where the write end of the pipe is
752 STDOUT_FILENO already. In case it is, clear close-on-exec.
753
d6e0c2a6
UD
754 * sysdeps/unix/sysv/linux/syscalls.list: Add __pipe2 alias.
755 * io/pipe2.c: Likewise.
756 * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_PIPE2
757 instead of __ASSUME_PACCEPT.
758 * include/unistd.h: Declare __have_pipe2.
759 * libio/iopopen.c: Implement "e" flag.
760 * libio/Makefile (tests): Add tst-popen1.
761 * libio/tst-popen1.c: New file.
762
11ed3eae
UD
763 * sysdeps/unix/sysv/linux/bits/socket.h: Define PF_ISDN and AF_ISDN.
764 * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
765
7438a80d
UD
7662008-07-26 Ulrich Drepper <drepper@redhat.com>
767
c4a710b6
UD
768 [BZ #6771]
769 * libio/fileops.c (_IO_new_file_attach): Preserve errno around
770 success call of _IO_SEEKOFF or calls which failed because the
771 descriptor is for a pipe.
772
31f3b159
UD
773 * sunrpc/key_call.c (getkeyserv_handle): Use FD_CLOEXEC instead of
774 magic number.
775
c0216dfc
UD
776 * misc/syslog.c (openlog_internal): Use SOCK_CLOEXEC if possible.
777
72112b0c
UD
778 * malloc/mtrace.c (mtrace): Use 'e' flag in fopen call. Drop
779 F_SETFD use if we know fopen set the flag.
780
7438a80d
UD
781 * login/utmp_file.c (setutent_file): Minor optimization in case
782 O_CLOEXEC is available.
783
7b91359b
UD
7842008-07-24 Tom "spot" Callaway <tcallawa@redhat.com>
785
786 * Makeconfig: Define pie-ccflag and PIE-ccflag variables.
787 * elf/Makefile: Use pie-ccflag variable.
788 * nscd/Makefile: Likewise.
789 * sysdeps/sparc/Makefile: Set $(pie-ccflag) to -fPIE.
790
4057dc45
UD
7912008-07-21 Andreas Krebbel <krebbel1@de.ibm.com>
792
e7135e24 793 [BZ #6724]
4057dc45
UD
794 * Versions.def: Add GLIBC_2.9 version tag for libutil.
795 * sysdeps/unix/sysv/linux/s390/bits/utmp.h: Copy of
796 gnu/bits/utmp.h. Check for __WORDSIZE_COMPAT32 removed.
797 * sysdeps/unix/sysv/linux/s390/bits/utmpx.h: Copy of
798 gnu/bits/utmpx.h. Check for __WORDSIZE_COMPAT32 removed.
799 * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Add new files
800 utmp32, utmpx32 and login32.
801 * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Add 2.9
802 versions of struct utmp functions to libc and libutil.
803 * sysdeps/unix/sysv/linux/s390/s390-32/utmp-compat.h: New file.
804 * sysdeps/unix/sysv/linux/s390/s390-32/getutent.c: New file.
805 * sysdeps/unix/sysv/linux/s390/s390-32/getutent_r.c: New file.
806 * sysdeps/unix/sysv/linux/s390/s390-32/getutid.c: New file.
807 * sysdeps/unix/sysv/linux/s390/s390-32/getutid_r.c: New file.
808 * sysdeps/unix/sysv/linux/s390/s390-32/getutline.c: New file.
809 * sysdeps/unix/sysv/linux/s390/s390-32/getutline_r.c: New file.
810 * sysdeps/unix/sysv/linux/s390/s390-32/getutmp.c: New file.
811 * sysdeps/unix/sysv/linux/s390/s390-32/getutxent.c: New file.
812 * sysdeps/unix/sysv/linux/s390/s390-32/getutxid.c: New file.
813 * sysdeps/unix/sysv/linux/s390/s390-32/getutxline.c: New file.
814 * sysdeps/unix/sysv/linux/s390/s390-32/login.c: New file.
815 * sysdeps/unix/sysv/linux/s390/s390-32/login32.c: New file.
816 * sysdeps/unix/sysv/linux/s390/s390-32/pututxline.c: New file.
817 * sysdeps/unix/sysv/linux/s390/s390-32/updwtmp.c: New file.
818 * sysdeps/unix/sysv/linux/s390/s390-32/updwtmpx.c: New file.
819 * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: New file.
820 * sysdeps/unix/sysv/linux/s390/s390-32/utmp32.c: New file.
821 * sysdeps/unix/sysv/linux/s390/s390-32/utmp32.h: New file.
822 * sysdeps/unix/sysv/linux/s390/s390-32/utmpx-convert.h: New file.
823 * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.c: New file.
824 * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: New file.
825
ff0bf753
UD
8262008-07-26 Ulrich Drepper <drepper@redhat.com>
827
619cc2f6
UD
828 * scripts/gen-as-const.awk: Generate more widely usable code by
829 using 64-bit arithmetic.
830
1311b164 831 * stdio-common/printf_fp.c (___printf_fp): Give wide outout code
3f414923 832 the same treatment as narrow output code in last patch.
1311b164 833
ff0bf753
UD
834 * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Namespace cleanup.
835
3f414923 836 [BZ #6763]
ff0bf753
UD
837 * elf/dl-load.c (local_strdup): Remove inline.
838 (_dl_map_object_from_fd): Don't allocate l_symbolic_searchlist.r_list.
839 * elf/dl-object.c (_dl_new_object): Allocate symbolic searchlist as
840 part of the object.
841
842 * sysdeps/unix/sysv/linux/dl-origin.c: Add const to avoid warning.
843
8ccf22f9
UD
8442008-07-25 Ulrich Drepper <drepper@redhat.com>
845
bdd24a30
UD
846 * sysdeps/unix/sysv/linux/kernel-features.h: IA-64 and SPARC have
847 the new syscalls, too.
b5c0b5e4 848
b41f1d14
UD
849 * sysdeps/i386/i686/memcmp.S: Fix unwind information.
850 Reported by Paul Pluzhnikov <ppluzhnikov@google.com>.
851
3703468e
UD
852 [BZ #6698]
853 * stdio-common/_i18n_number.h (_i18n_number_rewrite): Take additional
854 parameter for end of buffer. If temporary copy is too large use
855 malloc.
856 * stdio-common/vfprintf.c: Adjust for _i18n_number_rewrite
857 interface change.
858 * stdio-common/printf_fp.c (__printf_fp): Likewise.. Account for
859 string rewrite when allocating buffer.
860
bb0277bf
UD
861 * sysdeps/unix/sysv/linux/kernel-features.h: PPC has the new
862 syscalls, too.
863
9dd84772
UD
864 * nscd/connections.c (nscd_init): Clean up fcntl call.
865
c418b1ba
UD
866 * nscd/nscd_helper.c (open_socket): Use SOCK_CLOEXEC and
867 SOCK_NONBLOCK if possible.
868
b206d8b1
UD
869 * sysdeps/unix/sysv/linux/opensock.c (__opensock): Use
870 SOCK_CLOEXEC if available.
871
8ccf22f9
UD
872 * include/rpc/clnt.h: Declare __libc_clntudp_bufcreate and
873 __libc_clntudp_bufcreate_internal.
874 * include/sys/socket.h: Declare __have_sock_cloexec.
875 * socket/Makefile (aux): Add have_sock_cloexec.
876 * socket/have_sock_cloexec.c: New file.
877 * sunrpc/clnt_udp.h (clntudp_bufcreate): Now a wrapper around
878 __libc_clntudp_bufcreate.
879 (__libc_clntudp_bufcreate): Former implementation of clntudp_bufcreate
880 which takes an additional parameter. Create socket with non-blocking
881 mode and close-on-exec flag set, if wanted.
882 * sunrpc/Versions: Export __libc_clntudp_bufcreate@GLIBC_PRIVATE.
883 * nis/ypclnt.c (yp_bind_client_create): Use __libc_clntpudp_bufcreate
884 instead of clntudp_create. The socket has already the close-on-exec
885 flag set if SOCK_CLOEXEC is defined.
886
579cdf5a
UD
8872008-07-24 Ulrich Drepper <drepper@redhat.com>
888
3ff2c948
UD
889 * sysdeps/unix/sysv/linux/kernel-features.h: Define
890 __ASSUME_PACCEPT, __ASSUME_IN_NONBLOCK, and __ASSUME_PACCEPT if
891 appropriate.
892 * nscd/connections.c: Avoid fcntl calls to set close-on-exec flag and
893 non-blocking mode by using socket, paccept, and inotify_init1.
894
bdcebfc4
UD
895 * Versions.def (glibc): Add GLIBC_2.9.
896 * io/Makefile (routines): Add dup3 and pipe2.
897 * io/Versions [glibc] (GLIBC_2.9): Add dup3 and pipe2.
898 * io/dup3.c: New file.
899 * io/pipe2.c: New file.
900 * posix/unistd.h: Declare dup3 and pipe2.
901 * socket/Makefile (routines): Add paccept.
902 * socket/Versions [glibc] (GLIBC_2.9): Add paccept.
903 * socket/paccept.c: New file.
904 * socket/sys/socket.h: Declare paccept.
905 * sysdeps/unix/syscalls.list: Add entry for dup3.
906 * sysdeps/unix/sysv/linux/Versions [glibc] (GLIBC_2.9): Add
907 epoll_create2 and inotify_init1.
908 * sysdeps/unix/sysv/linux/eventfd.c: Use eventfd1 syscall if possible.
909 * sysdeps/unix/sysv/linux/paccept.c: New file.
910 * sysdeps/unix/sysv/linux/signalfd.c: Use signalfd4 syscall if
911 possible.
912 * sysdeps/unix/sysv/linux/socketcall.h: Add SOCKOP_paccept.
913 * sysdeps/unix/sysv/linux/syscalls.list: Add epoll_create2,
914 inotify_init1, and pipe2 entries.
915 * sysdeps/unix/sysv/linux/alpha/sys/epoll.h: New file.
916 * sysdeps/unix/sysv/linux/alpha/sys/eventfd.h: New file.
917 * sysdeps/unix/sysv/linux/alpha/sys/inotify.h: New file.
918 * sysdeps/unix/sysv/linux/alpha/sys/signalfd.h: New file.
919 * sysdeps/unix/sysv/linux/alpha/sys/timerfd.h: New file.
920 * sysdeps/unix/sysv/linux/bits/socket.h: Define SOCK_CLOEXEC and
921 SOCK_NONBLOCK.
922 * sysdeps/unix/sysv/linux/i386/paccept.S: New file.
923 * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: New file.
924 * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: New file.
925 * sysdeps/unix/sysv/linux/sparc/sys/inotify.h: New file.
926 * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h: New file.
927 * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: New file.
928 * sysdeps/unix/sysv/linux/sparc/bits/socket.h: New file.
929 * sysdeps/unix/sysv/linux/sys/epoll.h: Define EPOLL_CLOEXEC and
930 EPOLL_NONBLOCK. Declare epoll_create2.
931 * sysdeps/unix/sysv/linux/sys/eventfd.h: Define EFD_CLOEXEC and
932 EFD_NONBLOCK.
933 * sysdeps/unix/sysv/linux/sys/inotify.h: Define IN_CLOEXEC and
934 IN_NONBLOCK. Declare inotify_init1.
935 * sysdeps/unix/sysv/linux/sys/signalfd.h: Define SFD_CLOEXEC and
936 SFD_NONBLOCK.
937 * sysdeps/unix/sysv/linux/sys/timerfd.h: Define TFD_CLOEXEC and
938 TFD_NONBLOCK.
939
0e077a7e
UD
940 * elf/elf.h: Define AT_EXECFN.
941 * elf/rtld.c [!__ASSUME_AT_EXECFN] (process_envvars): Don't handle
942 LD_ORIGIN_PATH.
943 * elf/dl-sysdep.c (_dl_sysdep_start): Handle AT_EXECFN.
944 * elf/dl-support.c: Define _dl_execfn. Don't define _dl_origin_path
945 if __ASSUME_AT_EXECFN is defined.
946 (_dl_aux_init): Handle AT_EXECFN.
947 * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_AT_EXECFN
948 for 2.6.27 and up.
949 * sysdeps/generic/ldsodefs.h (rtld_global_ro): Add _dl_execfn.
950 Don't define _dl_origin_path if __ASSUME_AT_EXECFN is defined.
951 * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): Use
952 _dl_execfn if available and avoid compatibility code if
953 __ASSUME_AT_EXECFN is defined.
954
579cdf5a
UD
955 * sysdeps/unix/sysv/linux/dl-sysdep.h: Don't declare
956 _dl_discover_osversion only for older kernels.
957
7385c04c
RM
9582008-07-22 Roland McGrath <roland@frob.com>
959
960 * hurd/fd-read.c (_hurd_fd_read): Fix last change.
961
8a26088d
RM
9622008-07-21 Roland McGrath <roland@frob.com>
963
964 * hurd/fd-read.c (_hurd_fd_read): Return EGRATUITOUS if the server
965 returned too much data out of line.
966
9f558b80
UD
9672008-07-20 Ulrich Drepper <drepper@redhat.com>
968
2e79213a
UD
969 * locale/setlocale.c (setname): Remove inline to avoid compiler
970 warning.
971
579cdf5a 972 [BZ #6712]
9f558b80
UD
973 * locale/setlocale.c (setlocale): Take the setlocale lock earlier.
974
9667f97d
UD
9752008-07-15 Ulrich Drepper <drepper@redhat.com>
976
2486b496
UD
977 * stdio-common/vfprintf.c (_IO_helper_overflow): In case _IO_sputn
978 doesn't manage to write anything, fail.
979
9667f97d
UD
980 * malloc/hooks.c (__malloc_check_init): Remove printf.
981
6d4c073b
RM
9822008-07-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
983
984 * sysdeps/mach/hurd/bits/fcntl.h: Include <sys/types.h>.
985
b7432416
UD
9862008-07-12 Ulrich Drepper <drepper@redhat.com>
987
988 * nscd/connections.c (main_loop_poll): Fix handling of read errors
989 from inotify.
990 (main_loop_epoll): Likewise.
991
44abc397
UD
9922008-07-09 Ulrich Drepper <drepper@redhat.com>
993
835113c6
UD
994 * resolv/res_send.c: Remove unnecessary res_pquery prototype.
995
fdc769f6
UD
996 * resolv/res_query.c (__libc_res_nquery): Issue debug message only
997 if DEBUG is defined.
998
44abc397
UD
999 * resolv/res_query.c (__libc_res_nquery): Align buffer for T_AAAA
1000 query. Adjust buffer size computation for padding.
1001
38dc8fad
UD
10022008-07-08 Ulrich Drepper <drepper@redhat.com>
1003
75684bd7
UD
1004 * stdio-common/Makefile: Add rules to build and run tst-setvbuf1.
1005 * stdio-common/tst-setvbuf1.c: New file.
1006 * stdio-common/tst-setvbuf1.expect: New file.
1007
38dc8fad
UD
1008 [BZ #6719]
1009 * libio/iosetvbuf.c (_IO_setvbuf): Correctly clear buffering flags
1010 when selecting fully-buffered stream.
1011 Patch by Wang Xin <wxinee@gmail.com>.
1012
107f4ac2
RM
10132008-07-06 Samuel Thibault <samuel.thibault@ens-lyon.org>
1014
1015 * sysdeps/mach/hurd/open.c: Include <stdio.h>.
1016 (__open_2): New function.
1017 (__open64_2): New alias to __open_2.
1018 * sysdeps/mach/hurd/openat.c: Include <stdio.h>.
1019 (__openat_2): New function.
1020 (__openat64_2): New alias to __openat_2.
1021
45ec3e79
UD
10222008-07-06 Ulrich Drepper <drepper@redhat.com>
1023
1024 [BZ #6723]
1025 * time/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
1026
0a583b54
RM
10272008-07-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
1028
1029 * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Define MSG_NOSIGNAL.
1030 * hurd/hurd/fd.h (__hurd_sockfail): Add extern inline function.
1031 * sysdeps/mach/hurd/recv.c (__recv): Use __hurd_sockfail instead of
1032 __hurd_dfail.
1033 * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Likewise.
1034 * sysdeps/mach/hurd/recvmsg.c (__recvmsg): Likewise.
1035 * sysdeps/mach/hurd/send.c (__send): Likewise.
1036 * sysdeps/mach/hurd/sendto.c (__sendfrom): Likewise.
1037 * sysdeps/mach/hurd/sendmsg.c (__sendmsg): Likewise.
1038
d5a0160b
RM
10392008-03-04 Samuel Thibault <samuel.thibault@ens-lyon.org>
1040
1041 * sysdeps/mach/hurd/recv.c (__recv): Initialize NPORTS.
1042 * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Likewise.
1043 * sysdeps/mach/hurd/recvmsg.c (__recvmsg): Likewise.
1044 * hurd/fd-read.c (_hurd_fd_read): Initialize NREAD.
1045 * hurd/get-host.c (_hurd_get_host_config): Likewise.
1046 * sysdeps/mach/hurd/dl-sysdep.c (__libc_read): Likewise.
1047
80922a99
UD
10482008-06-27 Ulrich Drepper <drepper@redhat.com>
1049
1050 [BZ #6657]
1051 * time/strptime_l.c: Don't clear s.era_cnt after successful match
1052 of %EY.
1053 Patch by Petr Baudis.
1054
34ca2ff7
UD
10552008-06-26 Ulrich Drepper <drepper@redhat.com>
1056
5ee0f5e2 1057 * resolv/res_debug.c (__p_type_syms): Add ns_t_dname entry.
34ca2ff7
UD
1058 Patch by Peter Jones <pjones@redhat.com>.
1059
104426b6
UD
10602008-06-25 Ulrich Drepper <drepper@redhat.com>
1061
1062 [BZ #6654]
1063 * stdlib/canonicalize.c (__realpath): readlink can write too much
1064 into the buffer on platforms without PATH_MAX.
1065
7166d23f
UD
10662008-06-17 Carlos O'Donell <carlos@codesourcery.com>
1067
4cb8e687 1068 [BZ #6653]
7166d23f
UD
1069 * posix/tst-regex.c (main): Rename to...
1070 (do_test): ... this. Remove cmdline option processing.
1071 (TIMEOUT): Define.
1072 (TEST_FUNCTION): Define.
1073 (CMDLINE_OPTIONS): Define.
1074
974069d8
UD
10752008-06-25 Ulrich Drepper <drepper@redhat.com>
1076
1077 [BZ #5210]
1078 * configure.in: Add -Werror to -fstack-protector test to catch
1079 unsupported architectures.
1080 Patch by Gilles Esponasse <g.esp@free.fr>.
1081
cefa2dd3
UD
10822008-06-17 Joseph Myers <joseph@codesourcery.com>
1083
1084 * stdlib/tst-setcontext.c: Set back_in_main before exit if
1085 getcontext returns ENOSYS.
1086
c00d1128
UD
10872008-06-18 Ulrich Drepper <drepper@redhat.com>
1088
1089 * nscd/connections.c (main_loop_poll): Fix test for read error.
1090 (main_loop_epoll): Likewise.
1091
a0edbb48
UD
10922008-06-13 Ulrich Drepper <drepper@redhat.com>
1093
d0a1ae94
UD
1094 * sysdeps/posix/getaddrinfo.c: Move _res_hconf_init call to a
1095 better place so it is not called when nscd is used.
1096
a0edbb48
UD
1097 * nscd/connections.c: Also recognize and handle changes to the
1098 resolver configuration file.
1099
46f70b3c
UD
11002008-06-12 Ulrich Drepper <drepper@redhat.com>
1101
5bcc6c0f
UD
1102 * time/strftime.c: Pass reference to tzset_called around to handle
1103 recursive calls.
1104
1105 [BZ #6612]
1106 * time/strftime.c (__strftime_internal): Call tzset() only
1107 when printing timezone-dependent values.
1108 Based on a patch by Petr Baudis <pasky@suse.cz>.
1109
f854efd7
UD
1110 * resolv/nss_dns/dns-host.c (gaih_getanswer): Don't
1111 unconditionally use second gaih_getanswer_slice result.
1112
46f70b3c
UD
1113 * sysdeps/posix/getaddrinfo.c (gai_inet): Remove unnecessary test.
1114 (getaddrinfo): RES must always be non-NULL.
1115
9ea8bfec
UD
11162008-06-12 Jakub Jelinek <jakub@redhat.com>
1117
1118 * sysdeps/powerpc/powerpc64/fpu/s_llround.S (__llround): Avoid using
1119 cr[34] registers.
1120 * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S (__llroundf): Likewise.
1121 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S (__llround):
1122 Likewise.
1123 * sysdeps/powerpc/powerpc32/fpu/s_lround.S (__lround): Avoid using cr3
1124 register.
1125
5a337776
UD
11262008-06-12 Ulrich Drepper <drepper@redhat.com>
1127
5228ba2f
UD
1128 * nscd/nscd.h (struct database_dyn): Add inotify_descr and clear_cache
1129 fields.
1130 * nscd/connections.c (inotify_fd): New variable.
1131 (nscd_init): Try to open an inotify descriptor.
1132 If successful, watch files for databases using inotify instead of
1133 having prune threads stat the files.
1134 (nscd_run_prune): Recognize clear_cache flag being set and call
1135 prune_cache appropriately.
1136 (main_loop_poll): Add inotify descriptor to wait set and handle the
1137 reported changes.
1138 (main_loop_epoll): Likewise.
1139 * nscd/cache.c (prune_cache): Don't stat files for databases if
1140 inotify is used.
1141 * sysdeps/unix/sysv/linux/Makefile [subdir=nscd]
1142 (CFLAGS-connections.c): Add -DHAVE_INOTIFY.
1143
5a337776
UD
1144 * nscd/grpcache.c (cache_addgr): Correctly compute size of
1145 fixed-size portion of the record.
1146 * nscd/servicescache.c (cache_addserv): Likewise.
1147 * nscd/pwdcache.c (cache_addpw): Likewise.
1148 * nscd/initgrcache.c (addinitgroupsX): Likewise.
1149
9ad58cc3
UD
11502008-06-11 Ulrich Drepper <drepper@redhat.com>
1151
1152 * nscd/mem.c (gc): Initialize obstack earlier so that if we jump
1153 out we don't use uninitialized memory.
1154
1155 * nscd/hstcache.c (cache_addhst): Send correct number of bytes to
1156 the client.
1157
c1283552
UD
11582008-06-10 Ulrich Drepper <drepper@redhat.com>
1159
1160 * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): Also log and
1161 ignore T_DNAME messages.
1162 * resolv/arpa/nameser_compat.h (T_DNAME): Define.
1163
eef8a803
JJ
11642008-06-05 Jakub Jelinek <jakub@redhat.com>
1165
1166 * misc/regexp.h (compile): Use __REPB_PREFIX macro.
1167 Avoid segfault if first GETC returns eof/'\0'/'\n'.
1168
ee78670e
JJ
11692008-06-03 Jakub Jelinek <jakub@redhat.com>
1170
1171 * nscd/nscd_getserv_r.c (__nscd_getservbyport_r): Pass cp
1172 instead of portstr to nscd_getserv_r. Patch by
1173 Roman Kagan <rkagan@mail.ru>.
1174
62605cbf
UD
11752008-05-26 Jim Meyering <meyering@redhat.com>
1176
10966640 1177 Remove more useless "if" tests before "free".
62605cbf
UD
1178 * include/inline-hashtab.h (htab_delete): Likewise.
1179 * libio/freopen.c (freopen): Likewise.
1180 * libio/freopen64.c (freopen64): Likewise.
1181 * locale/programs/ld-collate.c (collate_read): Likewise.
1182 * misc/fstab.c (libc_freeres_fn): Likewise.
1183 * posix/glob.c (globfree): Likewise.
1184
f63abf58
UD
11852008-05-24 Ulrich Drepper <drepper@redhat.com>
1186
1187 * string/Makefile (strop-tests): Add memmem.
1188 * string/test-memmem.c: New file.
1189 * string/test-string.h (BUF1PAGES): Define to 1 if undefined.
1190 (test_init): Size buf1 according to BUF1PAGES.
1191
ad8a5511
JJ
11922008-05-24 Jakub Jelinek <jakub@redhat.com>
1193
1194 * libio/stdio.h (vscanf): Fix -std=c99 redirect.
1195 * stdio-common/Makefile (tests): Add scanf16 and scanf17.
1196 (CFLAGS-scanf17.c): New.
1197 * stdio-common/scanf14.c (main): Add fscanf and scanf tests.
1198 * stdio-common/scanf15.c (main): Likewise.
f63abf58
UD
1199 * stdio-common/scanf16.c: New file.
1200 * stdio-common/scanf17.c: New file.
ad8a5511 1201
e2003883
UD
12022008-05-24 Ulrich Drepper <drepper@redhat.com>
1203
1204 * resolv/res_send.c (send_dg): If we already have one of two
b5ba2c79 1205 answers and the server reports SERVFAIL, NOTIMP, or REFUSED, then
e2003883
UD
1206 use the one answer insted of failing.
1207
acbb9873
UD
12082008-02-20 Ryan S. Arnold <rsa@us.ibm.com>
1209
1210 * math/libm-test.inc (exp_test): Exclude expl(1000.0L) from
1211 being executed on PowerPC as the expected result exceeds IBM
1212 long double 128 __LDBL_MAX__.
1213
e85f1d6a
RM
12142008-05-21 Roland McGrath <roland@redhat.com>
1215
1216 * shlib-versions (sparc.*-.*-.*, sparc64.*-.*-.*): Add ABI lines.
1217
1218 * Makefile (check-data): Use $(abi-name) before other guesses.
1219 Look in $(add-ons) dirs before scripts/data/.
1220 * elf/Makefile (check-data): Likewise.
1221
1222 * scripts/soversions.awk: Grok ABI line.
1223 * Makeconfig ($(common-objpfx)soversions.mk): Likewise.
1224 Emit definition for abi-name variable.
1225
d8e763c6
UD
12262008-05-21 Ulrich Drepper <drepper@redhat.com>
1227
e92799fc 1228 * string/endian.h: Define new fixed-size hto* and *toh macros only
e85f1d6a 1229 if [__USE_BSD].
e92799fc 1230
d8e763c6
UD
1231 * iconvdata/Depend: Add localedata.
1232
009ef333
RM
12332008-05-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
1234
1235 * bits/termios.h (ONLCR): Define under [__USE_XOPEN] too.
1236
86746abb
JJ
12372008-05-08 David S. Miller <davem@davemloft.net>
1238
1239 * sysdeps/unix/sysv/linux/sparc/sparc32/setcontext.S: Use
1240 HIDDEN_JUMPTARGET.
1241 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
1242 (__SYSCALL_CLOBBERS): Remove %g* registers.
1243 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
1244 (__SYSCALL_CLOBBERS): Likewise.
1245 * scripts/data/localplt-sparc-linux-gnu.data: New file.
f63abf58 1246 * scripts/data/localplt-sparc64-linux-gnu.data: New file.
86746abb 1247
5e6f34c2
JJ
12482008-05-21 Jakub Jelinek <jakub@redhat.com>
1249
1250 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
1251 (CALL_ERRNO_LOCATION): Define.
1252 (__SYSCALL_STRING, __CLONE_SYSCALL_STRING): Use it.
1253 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
1254 (CALL_ERRNO_LOCATION): Define.
1255 (__SYSCALL_STRING, __CLONE_SYSCALL_STRING): Use it.
1256 * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S (__brk): Use
1257 HIDDEN_JUMPTARGET for __errno_location call in libc.so.
1258
4beb4532
UD
12592008-05-20 Ulrich Drepper <drepper@redhat.com>
1260
1261 * include/inline-hashtab.h (higher_prime_number): Fix type of mid
1262 variable.
1263
ed8f38ba
JJ
12642008-05-20 Jakub Jelinek <jakub@redhat.com>
1265
1266 * sysdeps/unix/sysv/linux/sparc/sparc32/sigcontextinfo.h
1267 (FIRST_FRAME_POINTER): Define.
1268
12692008-05-09 David S. Miller <davem@davemloft.net>
1270
1271 * sysdeps/sparc/sparc64/backtrace.c: New file.
1272
c1b8190a
JJ
12732008-05-14 David S. Miller <davem@davemloft.net>
1274
1275 * sysdeps/sparc/machine-gmon.h: New file.
1276 * sysdeps/sparc/sparc-mcount.S: Likewise.
1277 * sysdeps/sparc/Makefile: Add sparc-mcount target to
1278 sysdep_routines in gmon directory.
1279
84aacd93
JJ
12802008-05-19 Jakub Jelinek <jakub@redhat.com>
1281
1282 * elf/soinit.c (__EH_FRAME_BEGIN__): Remove.
1283
5908f779
UD
12842008-05-19 Ulrich Drepper <drepper@redhat.com>
1285
1286 * resolv/res_query.c (__libc_res_nquery): In case one of two
1287 answer was too short don't try to read that answer's header.
1288
1289 * resolv/res_send.c (send_dg): In case of timeout and there are
1290 two queries and one has been answered, return value indicating
1291 success.
1292
528741cb
UD
12932008-05-18 Ulrich Drepper <drepper@redhat.com>
1294
1295 * nscd/cache.c (cache_add): Take additional parameter specifying
1296 whether this is in response of a cache refill. Check alignment
1297 of package data. Revamp waking of pruning thread.
1298 (prune_cache): Small optimization.
1299 * nscd/nscd.h: Adjust cache_add prototypes.
1300 * nscd/aicache.c: Adjust cache_add calls.
1301 * nscd/grpcache.c: Likewise.
1302 * nscd/hstcache.c: Likewise.
1303 * nscd/initgrcache.c: Likewise.
1304 * nscd/pwdcache.c: Likewise.
1305 * nscd/servicescache.c: Likewise.
1306 * nscd/connections.c (restart): Really disable cache use before
1307 exec attempt. If it fails, reenable cache.
1308 (nscd_run_prune): Initialize wakeup_time. After wakeup, set wakeup
1309 time to max to be able to notice concurrent cache additions. Unlock
1310 prune_lock while performing gc. Afterwards compute wakeup time with
1311 current wakeup_time value in mind.
1312
343996c4
UD
13132008-05-17 Ulrich Drepper <drepper@redhat.com>
1314
5811d72b
UD
1315 * nscd/mem.c (gc): Avoid stack overflow when allocating move list.
1316
fa526148
UD
1317 * nscd/mem.c (gc): Correctly determine highest used array element
1318 in mark.
1319
77d40f10
UD
1320 * nscd/mem.c (markrange): Add assert to check entries are all
1321 aligned. Small cleanup in bitmap use.
1322
8884028c
UD
1323 * nscd/nscd.h (mem_in_flight): Replace blockaddr field with
1324 blockoff of type nscd_ssize_t.
1325 * nscd/mem.c (gc): Simplify markrange call for on-flight blocks.
1326 (mempoll_alloc): Record block offset and not address.
1327
b2159575
UD
1328 * nscd/mem.c (gc): Fix test for stack overuse.
1329
5c9629d2
UD
1330 * nscd/aicache.c (addhstaiX): Fix a few small problems, cleanups,
1331 more asserts.
1332
66d90496
UD
1333 * sysdeps/posix/getaddrinfo.c (gaih_inet): If nscd reports no
1334 entry is available, believe it.
1335
343996c4
UD
1336 * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): If there are
1337 no answers return NSS_STATUS_NOTFOUND.
1338 (gaih_getanswer): Don't call gaih_getanswer_slice if the answer
1339 buffer does not have any content.
1340
91c8a74b
UD
13412008-05-16 Ulrich Drepper <drepper@redhat.com>
1342
74e13385
UD
1343 * string/strcasestr.c (CMP_FUNC): Use __strncasecmp, not strncasecmp.
1344
91c8a74b
UD
1345 * sysdeps/posix/getaddrinfo.c (gaih_inet): After gethostbyname4_r
1346 lookup, don't assign canon unconditionally.
1347
0caca71a
UD
13482008-05-14 Ulrich Drepper <drepper@redhat.com>
1349
1350 * string/Makefile (distribute): Add str-two-way.h.
1351
13522008-03-29 Eric Blake <ebb9@byu.net>
1353
1354 Rewrite string searches to O(n) rather than O(n^2).
1355 * string/str-two-way.h: New file. For linear fixed-allocation
1356 string searching.
1357 * string/memmem.c: New implementation.
1358 * string/strstr.c: New implementation.
1359 * string/strcasestr.c: New implementation.
1360
b194db79
UD
13612008-04-11 Paolo Bonzini <bonzini@gnu.org>
1362
1363 * posix/regcomp.c (optimize_utf8): Add a note on why we test
1364 opr.ctx_type.
1365 (calc_first): Initialize constraint field.
1366 (duplicate_node_closure): Use it instead of special casing ANCHORS.
1367 Use search_duplicated_node to avoid loops. Fix grammar.
1368 (duplicate_node): Merge constraint field for all node types.
1369 (calc_eclosure_iter): Look at constraint field for all node types.
1370 * posix/regex_internal.c (create_cd_newstate): Don't look at
1371 create_cd_newstate.
1372
c8d49f05
UD
13732008-05-14 Ulrich Drepper <drepper@redhat.com>
1374
215a8745
UD
1375 [BZ #6428]
1376 * configure.in: Don't use $CFLAGS when assembling, use $ASFLAGS.
1377
2f9a1be8
UD
1378 [BZ #6442]
1379 * string/endian.h: Add macros for fixed-size endian conversion.
1380 * bits/byteswap.h: Allow inclusion from <endian.h>.
1381 * sysdeps/i386/bits/byteswap.h: Likewise.
1382 * sysdeps/ia64/bits/byteswap.h: Likewise.
1383 * sysdeps/s390/bits/byteswap.h: Likewise.
1384 * sysdeps/x86_64/bits/byteswap.h: Likewise.
1385 * string/Makefile (tests): Add tst-endian.
1386 * string/tst-endian.c: New file.
1387
c8d49f05
UD
1388 * iconvdata/run-iconv-test.sh: Use = instead of == in test.
1389 Patch by Reuben Thomas.
1390
a754f018
UD
13912008-05-14 Joseph Myers <joseph@codesourcery.com>
1392
1393 * iconvdata/Makefile (bug-iconv6-ENV, tst-iconv7-ENV): Define.
1394
372bfcac
UD
13952008-05-14 Ulrich Drepper <drepper@redhat.com>
1396
a754f018
UD
1397 * iconvdata/bug-iconv6.c (do_test): Use de_DE.UTF-8 locale.
1398
5deca9bb
UD
1399 [BZ #6461]
1400 * iconv/gconv_simple.c (BODY for __gconv_transform_ascii_internal):
1401 Add missing braces.
1402 (BODY for __gconv_transform_internal_ascii): Likewise.
1403
af77c9b7 1404 [BZ #6472]
5fab5544
UD
1405 * sysdeps/posix/getaddrinfo.c (get_scope): Loopback addresses have
1406 to be treated like link-local addresses.
5846c4e2
UD
1407 (match_prefix): Don't treat IPv4 loopback address special when
1408 converting to v4 mapped addressed.
5fab5544 1409
0caca71a 1410 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Call _res_hconf_init
1f039824 1411 if necessary.
b194db79
UD
1412 * posix/tst-rfc3484.c: Add dummy definition of _res_hconf_init.
1413 * posix/tst-rfc3484-2.c: Likewise.
1414 * posix/tst-rfc3484-3.c: Likewise.
1f039824 1415
18a74157
UD
1416 * sysdeps/posix/getaddrinfo.c: Implement handling of DCCP, UDPlite,
1417 and SCTP.
372bfcac
UD
1418
1419 * nss/getent.c (ahosts_keys_int): Handle all known socket types.
1420
1421 * inet/netinet/in.h (IPPIPPROTO_DCCP, IPPROTO_UDPLITE): Define.
1422
1423 * sysdeps/unix/sysv/linux/bits/socket.h (SOCK_DCCP): Define.
1424
f05ac8f5
UD
14252008-05-13 Ulrich Drepper <drepper@redhat.com>
1426
1427 * po/lt.po: New file. From Lituanian translation team.
1428
c9ff0187
UD
14292008-01-30 Alexandre Oliva <aoliva@redhat.com>
1430
1431 Introduce TLS descriptors for i386 and x86_64.
1432 * include/inline-hashtab.h: New file, copied from 2005's
1433 libiberty, with fix for memory leak imported afterwards by
1434 Glauber de Oliveira Costa.
1435 * elf/tlsdeschtab.h: New file.
1436 * elf/dl-reloc.c (_dl_try_allocate_static_tls): Extract from...
1437 (_dl_allocate_static_tls): ... here. Rearrange failure path.
1438 (CHECK_STATIC_TLS): Move to...
1439 * elf/dynamic-link.h: ... this file.
1440 (TRY_STATIC_TLS): New macro.
1441 * elf/dl-conflict.c (CHECK_STATIC_TLS, TRY_STATIC_TLS): Override.
1442 * elf/elf.h (R_386_TLS_GOTDESC, R_386_TLS_DESC_CALL,
1443 R_386_TLS_DESC): Define.
1444 (R_X86_64_PC64, R_X86_GOTOFF64, R_X86_64_GOTPC32): Merge from
1445 binutils.
1446 (R_X86_64_GOTPC32_TLSDESC, R_X86_64_TLSDESC_CALL,
1447 R_X86_64_TLSDESC): Define.
1448 (R_386_NUM, R_X86_64_NUM): Adjust.
1449 * sysdeps/i386/Makefile (sysdep-dl-routines, sysdep_routines,
f05ac8f5 1450 sysdep-rtld-routines): Add tlsdesc and dl-tlsdesc for elf subdir.
c9ff0187
UD
1451 (gen-as-const-headers): Add tlsdesc.sym to csu subdir.
1452 * sysdeps/i386/dl-lookupcfg.h: New file. Introduce _dl_unmap to
1453 release tlsdesc_table.
1454 * sysdeps/i386/dl-machine.h: Include dl-tlsdesc.h.
1455 (elf_machine_type_class): Mark R_386_TLS_DESC as PLT class.
1456 (elf_machine_rel): Handle R_386_TLS_DESC.
1457 (elf_machine_rela): Likewise.
1458 (elf_machine_lazy_rel): Likewise.
1459 (elf_machine_lazy_rela): Likewise.
1460 * sysdeps/i386/dl-tls.h (struct dl_tls_index): Name it.
1461 * sysdeps/i386/dl-tlsdesc.S: New file.
1462 * sysdeps/i386/dl-tlsdesc.h: New file.
1463 * sysdeps/i386/tlsdesc.c: New file.
1464 * sysdeps/i386/tlsdesc.sym: New file.
1465 * sysdeps/i386/bits/linkmap.h (struct link_map_machine): Add
1466 tlsdesc_table.
1467 * sysdeps/x86_64/Makefile (sysdep-dl-routines, sysdep_routines,
f05ac8f5 1468 sysdep-rtld-routines): Add tlsdesc and dl-tlsdesc for elf subdir.
c9ff0187
UD
1469 (gen-as-const-headers): Add tlsdesc.sym to csu subdir.
1470 * sysdeps/x86_64/dl-lookupcfg.h: New file. Introduce _dl_unmap to
1471 release tlsdesc_table.
1472 * sysdeps/x86_64/dl-machine.h: Include dl-tlsdesc.h.
1473 (elf_machine_runtime_setup): Set up lazy TLSDESC GOT entry.
1474 (elf_machine_type_class): Mark R_X86_64_TLSDESC as PLT class.
1475 (elf_machine_rel): Handle R_X86_64_TLSDESC.
1476 (elf_machine_rela): Likewise.
1477 (elf_machine_lazy_rel): Likewise.
1478 * sysdeps/x86_64/dl-tls.h (struct dl_tls_index): Name it.
1479 (__tls_get_addr): Do not declare for non-shared compiles.
1480 * sysdeps/x86_64/dl-tlsdesc.S: New file.
1481 * sysdeps/x86_64/dl-tlsdesc.h: New file.
1482 * sysdeps/x86_64/tlsdesc.c: New file.
1483 * sysdeps/x86_64/tlsdesc.sym: New file.
1484 * sysdeps/x86_64/bits/linkmap.h (struct link_map_machine): Add
1485 tlsdesc_table for both 32- and 64-bit structs.
1486
a3636e8b
UD
14872008-05-11 Ulrich Drepper <drepper@redhat.com>
1488
1489 * elf/dl-tls.c (__tls_get_addr): Optimize by moving slow path in
1490 its own function. This reduces the frame setup costs and more.
1491
a7eb802f
UD
14922008-02-11 Joseph Myers <joseph@codesourcery.com>
1493
1494 [BZ #3406]
1495 * sysdeps/ieee754/flt-32/w_expf.c (o_threshold): Correct value.
1496 * math/libm-test.inc (exp_test): Test 88.72269439697265625.
1497
3490f01d
UD
14982008-05-11 Ulrich Drepper <drepper@redhat.com>
1499
3d7eeebe
UD
1500 * io/openat.c (__openat_2): Also pass fd to __openat.
1501 * io/openat64.c (__openat64_2): Also pass fd to __openat64.
1502 Patch by Kristian Van Der Vliet <vanders@liqwyd.com>.
1503
3490f01d
UD
1504 * string/tester.c (test_memcmp): Add a few more tests.
1505 Patch by Mats Erik Andersson <ynglingatal@comhem.se>.
1506
7e71e55f
UD
15072008-05-10 Ulrich Drepper <drepper@redhat.com>
1508
1509 * nscd/cache.c (cache_add): Before returning with failure and this
1510 is the first use of the record, mark it as unusable.
1511 * nscd/aicache.c: Don't touch the dataset after cache_add returns
1512 reporting a failure.
1513 * nscd/grpcache.c: Likewise
1514 * nscd/hstcache.c: Likewise.
1515 * nscd/initgrcache.c: Likewise.
1516 * nscd/pwdcache.c: Likewise.
343996c4 1517 * nscd/servicescache.c: Likewise.
7e71e55f 1518
7396d0a9
RM
15192008-05-10 Roland McGrath <roland@redhat.com>
1520
1521 [BZ #6505]
1522 * sysdeps/unix/sysv/linux/sys/user.h: Replace with #error stub.
1523
c5ee217f
UD
15242008-05-08 David S. Miller <davem@davemloft.net>
1525
b29899ae
UD
1526 * misc/truncate64.c (truncate64): Use __truncate not truncate.
1527
c5ee217f
UD
1528 * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee751_j0l): Use __finitel.
1529 (__ieee754_y0l): Likewise.
1530 * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Likewise.
1531 (__ieee754_y1l): Likewise.
1532 * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Use __ldexpl.
1533 * sysdeps/ieee754/ldbl-128/s_log1pl.c: Kill bogus prototypes for
1534 frexpl and ldexpl. math_private.h provides them and the latter
1535 is not even used.
1536 (__log1pl): Use __frexpl.
1537
1eb946b9
UD
15382008-05-10 Ulrich Drepper <drepper@redhat.com>
1539
1540 * include/resolv.h: Adjust __libc_res_nquery and __libc_res_nsend
1541 prototypes.
1542 * include/arpa/nameser_compat.h: Define T_UNSPEC.
1543 * nis/Versions (libnss_nis): Export _nss_nis_gethostbyname4_r.
1544 (libnss_nisplus): Export _nss_nisplus_gethostbyname4_r.
1545 * nis/nss_nis/nis-hosts.c (LINE_PARSER): Change to also handle
1546 af==AF_UNSPEC.
1547 (_nss_nis_gethostbyname4_r): New function.
1548 * nis/nss_nisplus/nisplus-hosts.c (_nss_nisplus_parse_hostent):
1549 Change to also handle af==AF_UNSPEC.
1550 (get_tablename): New function. Use it to avoid duplication.
1551 (_nss_nisplus_gethostbyname4_r): New function.
1552 * nscd/aicache.c (addhstaiX): Use gethostbyname4_r function is
1553 available.
1554 * nss/Versions (libnss_files): Export _nss_files_gethostbyname4_r.
1555 * nss/nss.h: Define struct gaih_addrtuple.
1556 * nss/nss_files/files-hosts.c (LINE_PARSER): Change to also handle
1557 af==AF_UNSPEC.
1558 (_nss_files_gethostbyname4_r): New function.
1559 * resolv/Versions (libnss_dns): Export _nss_dns_gethostbyname4_r.
1560 * resolv/gethnmaddr.c: Adjust __libc_res_nsearch and __libc_res_nquery
1561 calls.
1562 * resolv/res_query.c (__libc_res_nquery): Take two additional
1563 parameters for second answer buffer. Handle type=T_UNSPEC to mean
1564 look up IPv4 and IPv6.
1565 Change all callers.
1566 * resolv/res_send.c (__libc_res_nsend): Take five aditional parameters
1567 for an additional query and answer buffer. Pass to send_vc and
1568 send_dg.
1569 (send_vc): Send possibly two requests and receive two answers.
1570 (send_dg): Likewise.
1571 * resolv/nss_dns/dns-host.c: Adjust calls to __libc_res_nsearch and
1572 __libc_res_nquery.
1573 (_nss_dns_gethostbyname4_r): New function.
1574 (gaih_getanswer_slice): Likewise.
1575 (gaih_getanswer): Likewise.
1576 * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Adjust
1577 __libc_res_nquery call.
1578 * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r): Likewise.
1579 (_nss_dns_getnetbyname_r): Adjust __libc_res_nsearch call.
1580 * sysdeps/posix/getaddrinfo.c: Use gethostbyname4_r function is
1581 available.
1582
b7fb703a
JJ
15832008-05-05 David S. Miller <davem@davemloft.net>
1584
1585 * sysdeps/sparc/sparc32/Makefile: Use -mcpu=v7 for initfini.s build.
1586 * sysdeps/sparc/sparc64/Makefile: Use -mcpu=v9 for initfini.s build.
1587
2256e43d
RM
15882007-09-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
1589
1590 Fix termios bit macros.
1591 Move *DLY definitions where they belong, in termios.h.
1592 Add *[0-3] definitions.
1593 Fixes confusion between VT and FF.
8bb52dbf
RM
1594 * sysdeps/mach/hurd/bits/ioctls.h (NL0, NL1, TAB0, TAB1, TAB2, CR0,
1595 CR1, CR2, CR3, FF0, FF1, BS0, BS1): Undefine these at start if they
1596 are already defined to avoid collision with termios.h.
2256e43d
RM
1597 (NLDLY, TABDLY, TAB3, CRDLY, VTDLY, BSDLY): Remove macros.
1598 * bits/termios.h [__USE_MISC || __USE_XOPEN] (NL0, NL1, TAB0,
1599 TAB1, TAB2, CR0, CR1, CR2, CR3, FF0, FF1, BS0, BS1): Likewise.
1600 [__USE_BSD || __USE_XOPEN] (OCRNL, ONOCR, ONLRET): New macros.
1601 [__USE_MISC || __USE_XOPEN] (NLDLY, NL0, NL1, TABDLY, TAB0, TAB1, TAB2,
1602 TAB3, CRDLY, CR0, CR1, CR2, CR3, FFDLY, FF0, FF1, BSDLY, BS0, BS1,
1603 VTDLY, VT0, VT1): New macros.
1604 [__USE_GNU] (OLCUC): Change value of macro.
1605 [__USE_XOPEN] (OFILL): New macro.
1606 [__USE_BSD] (CRTSCTS): Change value.
1607 (CRTS_IFLOW, CCTS_OFLOW): Change into compatibility macros.
1608 [__USE_BSD] (CDTRCTS, CHWFLOW): New macros.
1609 (B7200, B14400, B28800, B76800): New macros.
1610
4ce349e5
JJ
16112008-05-01 David S. Miller <davem@davemloft.net>
1612
a86a7a39
JJ
1613 * sysdeps/unix/sysv/linux/sparc/sparc32/ucontext_i.sym: New file.
1614 * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile [$(subdir) = stdlib]:
1615 (gen-as-const-headers): Add it.
1616 * sysdeps/unix/sysv/linux/sparc/sparc32/getcontext.S: New file.
1617 * sysdeps/unix/sysv/linux/sparc/sparc32/makecontext.c: Likewise.
1618 * sysdeps/unix/sysv/linux/sparc/sparc32/setcontext.S: Likewise.
1619 * sysdeps/unix/sysv/linux/sparc/sparc32/swapcontext.S: Likewise.
2256e43d 1620
4ce349e5
JJ
1621 * sysdeps/unix/sysv/linux/sparc/sparc32/syscall.S: Add support for
1622 six system call parameters.
1623 * sysdeps/unix/sysv/linux/sparc/sparc64/syscall.S: Likewise.
1624
89a8963d
UD
16252008-04-30 Ulrich Drepper <drepper@redhat.com>
1626
1627 * sysdeps/unix/sysv/linux/bits/resource.h: Define RUSAGE_THREAD and
1628 RUSAGE_LWP.
1629 * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
1630 * sysdeps/unix/sysv/linux/alpha/bits/resource.h: Likewise.
1631
b5ec5fce
JJ
16322008-04-30 Jakub Jelinek <jakub@redhat.com>
1633
1634 * stdlib/tst-setcontext.c: Include unistd.h.
1635
d4e92d9e
JJ
16362008-04-25 David S. Miller <davem@davemloft.net>
1637
1638 * sysdeps/unix/sysv/linux/sparc/sparc64/semctl.c (semctl):
1639 Pass "union semun" properly in to sys_ipc, it must be passed
1640 by value, not by reference.
1641
7eb5e6c9
UD
16422008-04-22 Jakub Jelinek <jakub@redhat.com>
1643
1644 * nscd/Makefile (nscd-cflags): Set back to -fpie.
1645 * nscd/nscd.h (mem_in_flight): Add attribute_tls_model_ie.
1646 * nscd/connections.c (mem_in_flight): Likewise.
1647
1648 * nscd/nscd.h (dbs): Make hidden.
1649
1650 * sysdeps/unix/sysv/linux/times.c (__times): Fix check for EFAULT.
1651 Avoid returning -1, return 0 instead.
1652
0073dd2d
UD
16532008-04-19 Ulrich Drepper <drepper@redhat.com>
1654
1655 * resolv/res_mkquery.c (__res_nopt): Use NS_PUT16 instead of ns_put16.
1656
c52137d3
UD
16572008-04-15 Ulrich Drepper <drepper@redhat.com>
1658
1659 [BZ #5209]
1660 * sysdeps/unix/sysv/linux/times.c: New file.
1661
1662 [BZ #5381]
1663 * nscd/nscd.h: Define enum in_flight, mem_in_flight, and
1664 mem_in_flight_list variables. Add new parameter to mempool_alloc
1665 prototype.
1666 * nscd/mem.c (mempool_alloc): Take additional parameter. Initialize
1667 appropriate mem_in_flight element.
1668 (gc): Take allocations which have not yet been committed to the
1669 database into account.
1670 * nscd/cache.c (cache_add): Add new parameter to mempool_alloc call.
1671 Reset mem_in_flight before returning.
1672 * nscd/connections.c (nscd_run_worker): Initialize mem_in_flight and
1673 cue it up in mem_in_flight_list.
1674 * nscd/aicache.c: Adjust mempool_alloc call.
1675 * nscd/grpcache.c: Likewise.
1676 * nscd/hstcache.c: Likewise.
1677 * nscd/initgrcache.c: Likewise.
1678 * nscd/pwdcache.c: Likewise.
1679 * nscd/servicescache.c: Likewise.
1680 * nscd/Makefile (nscd-flags): Until ld is fixed, use -fpic instead
1681 of -fpie.
1682
1683 * nscd/connections.c (handle_request): Provide better error message
1684 in case SELinux forbids the service.
1685
1686 * version.h (VERSION): Bump to 2.8.90.
1687
39546e34
JJ
16882008-04-17 Jakub Jelinek <jakub@redhat.com>
1689
1690 * sysdeps/unix/sysv/linux/dl-osinfo.h: Include fcntl.h.
1691
cf3a8c7f
UD
16922008-04-11 Ulrich Drepper <drepper@redhat.com>
1693
9e113ecd
UD
1694 * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h (__signbitl):
1695 Also use for 32-bit.
3b6d574e
UD
1696 * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c (__nearbyintl): Use
1697 __nextafter instead of nextafter to avoid local PLT.
c3a0ead4
UD
1698 * sysdeps/powerpc/fpu/e_sqrt.c: Avoid call to fetestexcept.
1699 * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
1700
3781ec29
UD
1701 * scripts/data/localplt-powerpc64-linux-gnu.data: New file.
1702
246ec411
UD
1703 * sysdeps/powerpc/fpu/fenv_libc.h: Add libm_hidden_proto for
1704 __fe_nomask_env.
3cc56f92
UD
1705 * sysdeps/powerpc/fpu/fe_nomask.c: Add libm_hidden_def. Include
1706 <fenv_libc.h> instead of <fenv.h>.
246ec411
UD
1707 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c: Likewise.
1708 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c: Likewise.
1709
1710 * sysdeps/powerpc/bits/fenv.h: Make safe for C++.
1711
1712 * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h: New file.
1713 * sysdeps/powerpc/fpu/fegetexcept.c (__fegetexcept): Rename
1714 function from fegetexcept and make old name weak alias.
1715 * include/fenv.h: Declare __fegetexcept.
1716 * sysdeps/powerpc/fpu/fedisblxcpt.c: Use __fegetexcept instead of
1717 fegetexcept.
1718 * sysdeps/powerpc/fpu/feenablxcpt.c: Likewise.
1719 * sysdeps/powerpc/fpu/fraiseexcpt.c (__feraiseexcept): Avoid call
1720 to fetestexcept.
1721 * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Use __frexpl
1722 instead of frexpl to avoid local PLT.
1723 * math/s_significandl.c (__significandl): Use __ilogbl instead of
1724 ilogbl to avoid local PLT.
1725 * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Use __ldexpl
1726 instead of ldexpl to avoid local PLT.
1727 * sysdeps/ieee754/ldbl-128ibm/e_expl.c (__ieee754_expl): Use
1728 __roundl not roundl to avoid local PLT.
1729 * sysdeps/ieee754/ldbl-128/e_j0l.c: Use function names which avoid
1730 local PLTs. Use __sincosl instead of separate sinl and cosl
1731 calls.
1732 * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
1733
2dc4a2fd
UD
1734 * sysdeps/unix/sysv/linux/configure.in: Bump minimal kernel
1735 version for ppc64 to 2.4.21 since without it makecontext will fail.
1736
fe3350ee
UD
1737 * elf/tls-macros.h [__powerpc64__] (__TLS_GET_ADDR): Define according
1738 to the ABI in use.
1739 [__powerpc64__] (TLS_LD): Use __TLS_GET_ADDR instead of
1740 .__tls_get_addr.
1741 [__powerpc64__] (TLS_GD): Likewise.
cf3a8c7f 1742
c1e6b459
UD
17432007-11-20 Ryan S. Arnold <rsa@us.ibm.com>
1744
7763d4f1 1745 [BZ #4997]
c1e6b459
UD
1746 * sysdeps/powerpc/powerpc32/fpu/s_lround.S (__lround): Fixed erroneous
1747 result when x is +/-nextafter(+/-0.5,-/+1) i.e. all 1's in the
1748 mantissa.
1749 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S (__llround):
1750 Likewise. Also account for when x is an odd number between 2^52
1751 and 2^53-1.
1752 * sysdeps/powerpc/powerpc64/fpu/s_llround.S (__llround): Likewise.
1753 * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S (__llroundf): Likewise.
1754 * math/libm-test.inc (lround_test, llround_test): Added test cases to
1755 detect aforementioned erroneous conditions.
1756
22dca1ea
UD
17572008-04-11 Jakub Jelinek <jakub@redhat.com>
1758
1759 * configure.in: Check for -fno-section-anchors in addition to
1760 -fno-toplevel-reorder.
1761
5d59f4a5
UD
17622008-04-11 Ulrich Drepper <drepper@redhat.com>
1763
1764 * include/features.h (__GLIBC_MINOR__): Bump to 8.
1765
1766 * sysdeps/powerpc/powerpc32/fpu/s_lroundf.S: Remove duplicate comment.
1767 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llroundf.S: Likewise.
1768 * sysdeps/powerpc/powerpc32/power6/fpu/s_llroundf.S: Likewise.
1769 * sysdeps/powerpc/powerpc64/fpu/s_lrint.S: Likewise.
1770 * sysdeps/powerpc/powerpc64/fpu/s_lround.S: Likewise.
1771 * sysdeps/powerpc/powerpc64/fpu/s_lroundf.S: Likewise.
1772
91e32540
UD
17732008-04-11 Jakub Jelinek <jakub@redhat.com>
1774
1775 [BZ #5443]
1776 * time/era.c: Transform __libc_setlocale_lock into rwlock.
1777 * time/alt_digit.c: Likewise.
1778 * wcsmbs/wcsmbsload.c: Likewise.
1779
fd490ac8
UD
17802008-04-10 Ulrich Drepper <drepper@redhat.com>
1781
1db5b6f4
UD
1782 * version.h (VERSION): Bump to 2.8.
1783
fd490ac8
UD
1784 * timzeone/asia: Update from tzdata2008b.
1785 * timezone/backward: Likewise.
1786 * timezone/europe: Likewise.
1787 * timezone/northamerica: Likewise.
1788 * timezone/southamerica: Likewise.
1789 * timezone/iso3166.tab: Likewise.
1790 * timezone/leapseconds: Likewise.
1791 * timezone/zone.tab: Likewise.
1792 * timezone/private.h: Update from tzcode2008a.
1793 * timezone/zdump.c: Likewise.
1794 * timezone/zic.c: Likewise.
1795
153cf972
UD
17962008-01-24 Steven Munroe <sjmunroe@us.ibm.com>
1797
1798 [BZ #5741]
1799 * sysdeps/powerpc/powerpc64/dl-machine.h (PPC_DCBT, PPC_DCBF):
1800 Define additonal Data Cache Block instruction macros.
1801 (elf_machine_fixup_plt): Add dcbt for opd and plt entries.
1802 Replace dcbst with dcbf and sync with sync/isync.
1803
d2207f32
UD
18042008-02-21 Alan Modra <amodra@bigpond.net.au>
1805
1806 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_type_class):
1807 Always set ELF_RTYPE_CLASS_PLT.
1808 (elf_machine_lookup_noexec_p, elf_machine_lookup_noplt_p): Delete.
1809
13d83320
UD
18102008-04-03 Steven Munroe <sjmunroe@us.ibm.com>
1811
1812 * sysdeps/powerpc/powerpc32/power4/hp-timing.c: New file.
1813 * sysdeps/powerpc/powerpc32/power4/hp-timing.h: New file.
1814 * sysdeps/powerpc/powerpc64/hp-timing.h [_ARCH_PWR4] (HP_TIMING_NOW):
1815 For ISA 2.01 and later replace mftb with mfspr 268.
1816
5f7aead5
UD
18172008-02-19 Steven Munroe <sjmunroe@us.ibm.com>
1818
1819 [BZ #5768]
1820 * sysdeps/powerpc/fpu/Makefile (libm-tests): Add test-powerpc-snan.
1821 * sysdeps/powerpc/fpu/test-powerpc-snan.c: New file.
1822
18232008-02-18 Steven Munroe <sjmunroe@us.ibm.com>
1824
1825 [BZ #5768]
1826 * sysdeps/powerpc/powerpc32/fpu/s_isnan.S: New file.
1827 * sysdeps/powerpc/powerpc32/fpu/s_isnan.c: Removed.
1828 * sysdeps/powerpc/powerpc64/fpu/s_isnan.S: New file.
1829 * sysdeps/powerpc/powerpc64/fpu/s_isnan.c: Removed.
1830
117df5d9
JJ
18312008-04-10 Jakub Jelinek <jakub@redhat.com>
1832
1833 * stdlib/tst-makecontext.c (othervar): New variable.
1834 (cf): Test sign extending the argument to long.
1835
3b32d8a2
UD
18362008-03-03 Steven Munroe <sjmunroe@us.ibm.com>
1837
1838 * sysdeps/powerpc/powerpc32/power5/fpu/s_isnan.S: New file.
1839 * sysdeps/powerpc/powerpc32/power5/fpu/s_isnanf.S: New file.
1840 * sysdeps/powerpc/powerpc32/power6/fpu/s_isnan.S: New file.
1841 * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S: New file.
1842 * sysdeps/powerpc/powerpc64/power5/fpu/s_isnan.S: New file.
1843 * sysdeps/powerpc/powerpc64/power6/fpu/s_isnan.S: New file.
1844 * sysdeps/powerpc/powerpc64/power6x/fpu/s_isnan.S: New file.
1845
9fb11d4c
UD
18462008-02-22 Alan Modra <amodra@bigpond.net.au>
1847
1848 * elf/Makefile (tests): Substitute tests-vis-yes here.
1849 (tests-vis-yes): Delete.
1850 (modules-name, modules-vis-yes): Similarly.
1851
facd1d8e
UD
18522008-02-12 Pete Eberlein <eberlein@us.ibm.com>
1853
1854 [BZ #4407]
1855 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
1856 Preserve sign in signgamp when x is zero.
1857
aece054b
UD
18582007-10-26 Steven Munroe <sjmunroe@us.ibm.com>
1859
1860 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: New File.
1861 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.c: Removed.
1862 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: New File.
1863 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.c: Removed.
1864 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: New File.
1865 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: New File.
1866
6c30d38f
UD
18672008-04-09 Ulrich Drepper <drepper@redhat.com>
1868
21208604 1869 [BZ #4314]
13d83320
UD
1870 * sysdeps/i386/i686/memcpy.S: Optimize copying of equally aligned
1871 buffers.
21208604 1872
2f611ada 1873 [BZ #5209]
d1235fdf
UD
1874 * sysdeps/unix/sysv/syscalls.list: The times syscall doesn't have
1875 a reserved error value.
2f611ada 1876
6c30d38f
UD
1877 * stdlib/tst-makecontext.c: Change parameter to cf to negative
1878 value to check for correct sign extension.
1879
1880 [BZ #5436]
1881 * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
1882 Copy 64-bit parameter values even though this is not required in
1883 the standard.
1884
1885 * sysdeps/unix/sysv/linux/x86_64/vfork.S (__vfork): Record return
1886 PC save.
1887
de1bbf68
UD
18882008-02-14 Daniel Jacobowitz <dan@codesourcery.com>
1889
1890 * sysdeps/unix/sysv/linux/i386/vfork.S (__vfork): Record return
1891 PC save.
1892
9aef35a5
UD
18932008-04-09 Jakub Jelinek <jakub@redhat.com>
1894
1895 * nss_files/files-XXX.c (_nss_files_getXXent_r): Restore saved errno.
1896
a7925a24
UD
18972008-04-09 Ulrich Drepper <drepper@redhat.com>
1898
1899 [BZ #5998]
1900 * libio/iofwrite.c (_IO_fwrite): Return correct count if flushing
1901 in line-buffered stream failed.
1902 * libio/iofwrite_u.c (fwrite_unlocked): Likewise.
1903
7b61ef24
UD
19042008-04-08 Ulrich Drepper <drepper@redhat.com>
1905
c2a684a4
UD
1906 [BZ #6024]
1907 * scripts/abi-versions.awk: If the version specified by
1908 --enable-oldest-abi is older than the first version for this
1909 architecture, use the default version.
1910
7b61ef24
UD
1911 * locale/programs/ld-collate.c (collate_read): Ignore script lines
1912 as well when ignoring the whole category.
1913
f6d749f0
UD
19142008-04-07 Ulrich Drepper <drepper@redhat.com>
1915
1916 [BZ #6042]
1917 * sysdeps/unix/sysv/linux/net/ethernet.h: Add a few more
1918 ETHERTYPE_* definitions.
1919 Patch partly by Aurelien Jarno <aurelien@aurel32.net>.
1920
1e99aede
JJ
19212008-04-07 Jakub Jelinek <jakub@redhat.com>
1922
1923 * stdlib/mbtowc.c (__no_r_state): Remove.
1924 (mbtowc): New static state variable. Use it instead of
1925 __no_r_state.
1926 * stdlib/wctomb.c (__no_r_state): Remove extern decl.
1927 (__wctomb_state): New hidden variable.
1928 (wctomb): Use __wctomb_state instead of __no_r_state.
1929 * debug/wctomb_chk.c (__no_r_state): Remove extern decl.
1930 (__wctomb_state): New extern decl.
1931 (__wctomb_chk): Use __wctomb_state instead of __no_r_state.
1932
fcf90e0a
UD
19332008-04-07 Ulrich Drepper <drepper@redhat.com>
1934
1935 [BZ #5475]
1936 * resolv/res_init.c: Handle scope IDs in resolv.conf.
1937
ae39e102
JJ
19382008-04-07 Jakub Jelinek <jakub@redhat.com>
1939
1940 * malloc/mtrace.pl: Use $@ instead of $* to keep perl 5.10 quiet.
1941
2503dd30
UD
19422008-04-06 Ulrich Drepper <drepper@redhat.com>
1943
1944 * po/nl.po: Update from translation team.
1945
3eb9c809
UD
19462008-03-31 Ulrich Drepper <drepper@redhat.com>
1947
1948 [BZ #6007]
1949 * string/strfry.c: Handle empty strings again.
1950
9a69db29
UD
19512008-03-30 Ulrich Drepper <drepper@redhat.com>
1952
1953 [BZ #5443]
1954 * intl/dcigettext.c (__dcigettext): Get reader lock for locale data
1955 before looking for translation.
1956 * locale/duplocale.c: Transform __libc_setlocale_lock into rwlock.
1957 * locale/freelocale.c: Likewise.
1958 * locale/newlocale.c: Likewise.
1959 * locale/setlocale.c: Likewise.
1960 Based partially on a patch by ryo@np.css.fujitsu.com.
1961
2ecc7d93
UD
19622008-03-30 Jakub Jelinek <jakub@redhat.com>
1963
1964 * intl/dcigettext.c (_nl_find_msg): Reread nconversions after
1965 acquiring wrlock. Do conv_tab allocation while holding lock.
1966 * intl/Makefile: Add rules to build and run tst-gettext6.
1967 * intl/tst-gettext6.c: New test.
1968 * intl/tst-gettext6.sh: New file.
1969
221e5230
UD
19702008-03-30 Ulrich Drepper <drepper@redhat.com>
1971
faa091c6
UD
1972 * po/nl.po: Update from translation team.
1973
221e5230
UD
1974 * sysdeps/unix/opendir.c (__alloc_dir): If allocation fails for size
1975 provided through st_blksize, try the default size before giving up.
1976
1c272665
UD
19772008-03-29 Ulrich Drepper <drepper@redhat.com>
1978
43f6bec1
UD
1979 * stdio-common/vfprintf.c (vfprintf): Correct overflow test.
1980
e8a32126
UD
1981 [BZ #5939]
1982 * sysdeps/posix/tempname.c (__gen_tempname): Correct flag selection.
1983
1e489af9
UD
1984 * posix/getopt.c (_getopt_internal_r): Remove old POSIX-demanded
1985 error message. POSIX today does not require the messages to be in
1986 a specific form. Suggested by Jim Meyering <jim@meyering.net>.
1987
1d20f7f8
UD
1988 [BZ #5979]
1989 * sunrpc/auth_unix.c: Unify printed strings.
1990 * sunrpc/clnt_tcp.c: Likewise.
1991 * sunrpc/clnt_udp.c: Likewise.
1992 * sunrpc/clnt_unix.c: Likewise.
1993 * sunrpc/svc_tcp.c: Likewise.
1994 * sunrpc/svc_udp.c: Likewise.
1995 * sunrpc/svc_unix.c: Likewise.
1996 * sunrpc/xdr.c: Likewise.
1997 * sunrpc/xdr_array.c: Likewise.
1998 * sunrpc/xdr_rec.c: Likewise.
1999 * sunrpc/xdr_ref.c: Likewise.
2000 * locale/programs/ld-time.c (time_finish): Unify messages.
2001 * locale/programs/locfile.c (handle_copy): Fix typo.
2002 * nscd/nscd.c (options): Fix typo.
2003
1c272665
UD
2004 [BZ #5995]
2005 * stdlib/strtod_l.c: Use correct sign for result in one more
2006 underflow case.
2007 Patch by Eric Blake <ebb9@byu.net>.
2008
48cc060e
UD
20092008-03-27 Jakub Jelinek <jakub@redhat.com>
2010
2011 * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Add open
2012 and creat system calls.
2013 * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove open system
2014 call.
2015 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Remove open and creat
2016 system calls.
2017 * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Likewise.
2018 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
2019 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
2020
f96853be
UD
20212008-03-27 Ulrich Drepper <drepper@redhat.com>
2022
2023 * sysdeps/unix/sysv/linux/bits/local_lim.h: Undefined ARG_MAX if
2024 <linux/limits.h> has defined it.
2025 * sysdeps/unix/sysv/linux/sys/param.h: Define NCARGS to the legacy
2026 ARG_MAX value and prevent ARG_MAX from being defined by the kernel
2027 headers.
2028 * sysdeps/unix/sysv/linux/sysconf.c: Define legacy_ARG_MAX and use
2029 it instead of ARG_MAX.
2030
fde15fdc
UD
20312008-03-25 Jakub Jelinek <jakub@redhat.com>
2032
2033 * posix/gai.conf: Fix comment for scope nullbits.
2034 * sysdeps/posix/getaddrinfo.c (gaiconf_init): If /bits is not present,
2035 default to 128 bits for v4 mapped addresses.
2036
87b9b50f
UD
20372008-03-07 Martin Schwidefsky <schwidefsky@de.ibm.com>
2038
2039 * sysdeps/s390/fpu/fegetenv.c (fegetenv): Remove PTRACE_PEEKUSER
2040 ptrace call to get the ieee_instruction_pointer from the kernel.
2041 * sysdeps/s390/fpu/fesetenv.c (fesetenv): Remove PTRACE_POKEUSER
2042 ptrace call to set the ieee_instructtion_pointer.
2043 * sysdeps/unix/sysv/linux/s390/sys/user.h (struct _user_regs_struct):
2044 Add comment that ieee_instruction_pointer is always 0.
2045
af0498dc
UD
20462008-03-09 Andreas Jaeger <aj@suse.de>
2047
2048 [BZ #5857]
2049 * sysdeps/ieee754/dbl-64/s_rint.c (__rint): Handle j0==18.
2050 * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Likewise.
2051 Patch by Mark Elliott <mark.h.elliott@lmco.com>.
2052
2053 * math/libm-test.inc (nearbyint_test): Add new test cases from #5857.
2054 (rint_test): Likewise.
2055
0ab7632d
UD
20562008-03-24 Ulrich Drepper <drepper@redhat.com>
2057
0facd3df
UD
2058 * nis/nis_call.c (nis_server_cache_search): Save errno around stat
2059 call.
2060 (__nisfind_server): Similar for open readColdStartFile call.
2061 Patch partially by Jim Meyering.
2062 * nss/nss_files/files-XXX.c (_nss_files_getXXent_r): Save errno
2063 around internal_setent call.
2064
7e570c55
UD
2065 * po/vi.po: New Vietnamese translation.
2066
e093c247
UD
2067 * sysdeps/unix/sysv/linux/adjtime.c: Correctly use
2068 ADJ_OFFSET_SS_READ.
2069
0ab7632d
UD
2070 * sysdeps/unix/sysv/linux/bits/sched.h: Add new CLONE_* flags,
2071 remove CLONE_STOPPED.
2072
0726cdf7
UD
20732008-02-10 Jim Meyering <meyering@redhat.com>
2074
2075 Remove useless "if" before "free":
2076 * elf/ldconfig.c (parse_conf_include): Likewise.
2077 * gmon/gmon.c (weak_alias): Likewise.
2078 * iconv/gconv_conf.c (__gconv_get_path): Likewise.
2079 * inet/rcmd.c (__validuser2_sa): Likewise.
2080 * intl/bindtextdom.c (set_binding_values): Likewise.
2081 * intl/loadmsgcat.c (_nl_load_domain, _nl_unload_domain): Likewise.
2082 * libio/genops.c (save_for_backup): Likewise.
2083 * libio/wgenops.c (save_for_wbackup): Likewise.
2084 * locale/programs/ld-collate.c (collate_read): Likewise.
2085 * locale/programs/linereader.c (get_string): Likewise.
2086 * nis/nss_compat/compat-pwd.c (give_pwd_free): Likewise.
2087 * nis/nss_compat/compat-spwd.c (give_spwd_free): Likewise.
2088 * resolv/res_debug.c (do_section): Likewise.
2089 * sunrpc/xdr_sizeof.c (x_inline, xdr_sizeof): Likewise.
2090 * sysdeps/mach/hurd/if_index.c (libc_hidden_def): Likewise.
2091 * sysdeps/posix/sprofil.c (__sprofil): Likewise.
2092 * time/lc-time-cleanup.c (_nl_cleanup_time): Likewise.
2093 * time/tzset.c (tzset_internal): Likewise.
2094
354b7527
JJ
20952008-03-18 Jakub Jelinek <jakub@redhat.com>
2096
2097 * sysdeps/unix/sysv/linux/dl-sysdep.h: Use __ASSEMBLER__ instead
2098 of ASSEMBLER.
2099
ca668b29
UD
21002008-03-11 Ulrich Drepper <drepper@redhat.com>
2101
2102 [BZ #5903]
2103 * iconv/iconv_charmap.c (charmap_conversion): Pass name of output file
2104 not stream for output file. Open output file here.
2105 * iconv/iconv_prog.c (process_lock): Take pointer to output stream
2106 and output file name.
2107 (process_fd): Likewise.
2108 (process_file): Likewise.
2109 (main): Adjust callers of changed functions.
2110 * iconv/iconv_prog.h: Adjust prototype.
2111
f3dc3415
AJ
21122008-03-09 Andreas Jaeger <aj@suse.de>
2113
2114 [BZ #5753]
2115 * sysdeps/ia64/ieee754.h: Use protected namespace
2116 __BIG_ENDIAN/__LITTLE_ENDIAN.
2117 * sysdeps/ieee754/ieee754.h: Likewise.
2118 Patch by Aurelien Jarno <aurelien@aurel32.net>.
2119
a8fd84d4
RM
21202008-03-08 Roland McGrath <roland@frob.com>
2121
2b965f1b
RM
2122 * hurd/hurdsig.c (_hurd_internal_post_signal): When normal rules would
2123 ignore a signal that came from a machine exception, treat it as a
2124 fatal core-dump signal instead.
2125 Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
2126
a8fd84d4
RM
2127 * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler):
2128 Clear DF bit in thread state's eflags.
2129 Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
2130
368a8dec
UD
21312008-03-08 Ulrich Drepper <drepper@redhat.com>
2132
b3278554
UD
2133 [BZ #5774]
2134 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Consume closing brace
c6c00e0d 2135 of NAN(...) sequence.
b3278554
UD
2136 * stdlib/Makefile (tests): Add tst-strtod6.
2137 * stdlib/tst-strtod6.c: New file.
2138
2139 * inet/inet6_opt.c (inet6_opt_init): Check extlen for overflow.
2140
2127a186
UD
2141 [BZ #5762]
2142 * posix/getopt.c (_getopt_internal_r): Clarify error message by
2143 putting offending option character in quotes. Clean up error
2144 messages.
2145 * po/be.po: Adjust msgstr in translation file.
2146 * po/bg.po: Likewise.
2147 * po/ca.po: Likewise.
2148 * po/cs.po: Likewise.
2149 * po/da.po: Likewise.
2150 * po/de.po: Likewise.
2151 * po/es.po: Likewise.
2152 * po/fr.po: Likewise.
2153 * po/hr.po: Likewise.
2154 * po/ko.po: Likewise.
2155 * po/nl.po: Likewise.
2156 * po/rw.po: Likewise.
2157 * po/sk.po: Likewise.
2158 * po/sv.po: Likewise.
2159 * po/tr.po: Likewise.
2160 * po/zh_CN.po: Likewise.
2161 * po/zh_TW.po: Likewise.
2162
725c0c87
UD
2163 [BZ #5760]
2164 * inet/inet6_opt.c (inet6_opt_init): Fix ip6h_len computation.
2165 Patch by Roland Bless <roland@bless.de>.
2166
368a8dec
UD
2167 * sysdeps/unix/sysv/linux/dl-sysdep.c: Avoid unnecessary code for
2168 .o file.
2169 * elf/Makefile (routines): Add dl-sysdep.
2170 (elide-routines.os): Likewise.
2171
78c2bf0e
UD
21722008-03-07 Ulrich Drepper <drepper@redhat.com>
2173
7c22c7ec
UD
2174 [BZ #5786]
2175 * elf/dl-sysdep.c: Undefine ROUND after use.
2176 * sysdeps/generic/ldsodefs.h [HAVE_DL_DISCOVER_OSVERSION]
2177 (struct rtld_global_ro): Add _dl_tls_get_addr_soft element.
2178 * elf/rtld.c (rtld_global_ro): Initialize _dl_discover_osversion.
2179 * sysdeps/unix/sysv/linux/dl-osinfo.h: Move _dl_discover_osversion
2180 to ...
2181 * sysdeps/unix/sysv/linux/dl-sysdep.c: ...here.
2182 * sysdeps/unix/sysv/linux/dl-sysdep.h: Declare _dl_discover_osversion
2183 if necessary.
2184 * sysdeps/unix/sysv/linux/sysconf.c: Handle _SC_ARG_MAX here.
2185
93025f93
UD
2186 * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Add
2187 _dl_tls_get_addr_soft element.
2188 * elf/rtld.c (rtld_global_ro): Initialize _dl_tls_get_addr_soft.
2189 * elf/Versions (ld): Don't export _dl_tls_get_addr_soft.
2190 * dlfcn/dlinfo.c (dlinfo_doit): Access dl_tls_get_addr_soft through
2191 GLRO.
2192 * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise.
2193 * elf/dl-tls.c (_dl_tls_get_addr_soft): Use attribute_hidden instead
2194 of internal_function.
2195
72f10127
UD
2196 * stdlib/Makefile (aux): Add tens_in_limb.
2197 * stdlib/strtod_l.c: Move _tens_in_limb definition to...
2198 * stdlib/tens_in_limb.c: ...here. New file.
2199
443db178
UD
2200 [BZ #5778]
2201 * sysdeps/unix/sysv/linux/pathconf.h: Declare
2202 __statfs_chown_restricted.
2203 * sysdeps/unix/sysv/linux/fpathconf.c: Call __statfs_chown_restricted
2204 for _PC_CHOWN_RESTRICTED.
2205 * sysdeps/unix/sysv/linux/pathconf.c: Likewise.
2206 Implement __statfs_chown_restricted.
2207 * sysdeps/unix/sysv/linux/bits/posix_opt.h: Change
2208 _POSIX_CHOWN_RESTRICTED value to zero.
c71665ad
UD
2209 * io/tst-fchownat.c: Correctly handle _POSIX_CHOWN_RESTRICTED
2210 defined to zero.
443db178 2211
78c2bf0e
UD
2212 * sysdeps/x86_64/rtld-memset.c: New file.
2213
443db178 22142008-02-26 Harsha Jagasia <harsha.jagasia@amd.com>
78c2bf0e
UD
2215
2216 * sysdeps/x86_64/cacheinfo.c (NOT_USED_RIGHT_NOW): Remove ifdef guards.
2217
2218 * sysdeps/x86_64/memset.S: Rewrite non-SSE code path as tuned for AMD
2219 Barcelona machine. Make default fall through branch of
2220 __x86_64_preferred_memory_instruction check as the integer code path.
2221
22222007-10-15 H.J. Lu <hongjiu.lu@intel.com>
2223
2224 * sysdeps/x86_64/cacheinfo.c
2225 (__x86_64_preferred_memory_instruction): New variable.
2226 (init_cacheinfo): Initialize __x86_64_preferred_memory_instruction.
2227
2228 * sysdeps/x86_64/memset.S: Rewrite.
2229
dff37515
UD
22302008-03-04 Jakub Jelinek <jakub@redhat.com>
2231
2232 * include/stdio.h (__asprintf_chk, __dprintf_chk,
2233 __obstack_printf_chk): New prototypes.
2234 (__vasprintf_chk, __vdprintf_chk,
2235 __obstack_vprintf_chk): Likewise.
2236 Add libc_hidden_proto.
2237 * libio/obprintf.c
2238 (_IO_obstack_jumps): No longer static, add attribute_hidden.
2239 * libio/bits/stdio-ldbl.h (__asprintf_chk, __dprintf_chk,
2240 __obstack_printf_chk, __vasprintf_chk, __vdprintf_chk,
2241 __obstack_vprintf_chk): Add __LDBL_REDIR_DECL.
2242 * libio/bits/stdio2.h (__asprintf_chk, __dprintf_chk,
2243 __obstack_printf_chk, __vasprintf_chk, __vdprintf_chk,
2244 __obstack_vprintf_chk): New prototypes.
2245 (asprintf, __asprintf, dprintf, obstack_printf, vasprintf, vdprintf,
2246 obstack_vprintf): New inlines.
2247 * debug/dprintf_chk.c: New file.
2248 * debug/vdprintf_chk.c: New file.
2249 * debug/asprintf_chk.c: New file.
2250 * debug/vasprintf_chk.c: New file.
2251 * debug/obprintf_chk.c: New file.
2252 * debug/tst-chk1.c (do_test): Add asprintf and obstack_printf tests.
2253 * debug/Versions (__asprintf_chk, __dprintf_chk, __obstack_printf_chk,
2254 __vasprintf_chk, __vdprintf_chk, __obstack_vprintf_chk): Export
2255 @@GLIBC_2.8.
2256 * debug/Makefile: Build asprintf_chk, vasprintf_chk, dprintf_chk,
2257 vdprintf_chk and obprintf_chk, set CFLAGS for them.
2258 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c (__nldbl___vasprintf_chk,
2259 __nldbl___vdprintf_chk, __nldbl___obstack_vprintf_chk): Add
2260 libc_hidden_proto.
2261 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl___vasprintf_chk,
2262 __nldbl___vdprintf_chk, __nldbl___obstack_vprintf_chk): New prototypes.
2263 * sysdeps/ieee754/ldbl-opt/Versions (__nldbl___asprintf_chk,
2264 __nldbl___vasprintf_chk, __nldbl___dprintf_chk, __nldbl___vdprintf_chk,
2265 __nldbl___obstack_printf_chk, __nldbl___obstack_vprintf_chk): Export
2266 @@GLIBC_2.8.
2267 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add asprintf_chk,
2268 vasprintf_chk, dprintf_chk, vdprintf_chk, obstack_printf_chk and
2269 obstack_vprintf_chk.
2270 * sysdeps/ieee754/ldbl-opt/nldbl-obstack_vprintf_chk.c: New file.
2271 * sysdeps/ieee754/ldbl-opt/nldbl-dprintf_chk.c: New file.
2272 * sysdeps/ieee754/ldbl-opt/nldbl-obstack_printf_chk.c: New file.
2273 * sysdeps/ieee754/ldbl-opt/nldbl-asprintf_chk.c: New file.
2274 * sysdeps/ieee754/ldbl-opt/nldbl-vdprintf_chk.c: New file.
2275 * sysdeps/ieee754/ldbl-opt/nldbl-vasprintf_chk.c: New file.
2276
d835f136
UD
22772008-03-04 Ulrich Drepper <drepper@redhat.com>
2278
a4bb445a
UD
2279 [BZ #5779]
2280 * misc/sys/queue.h: Add STAILQ_CONCAT and TAILQ_CONCAT definitions.
2281 Patch by Roy Marples <roy@marples.name>.
2282
c958a6a4
UD
2283 [BZ #5736]
2284 * malloc/malloc.c: Fix typo in comment.
2285
d835f136
UD
2286 [BZ #5627]
2287 * locale/iso-639.def: Add Shuswap.
2288
65b4743a
UD
22892008-02-25 Jakub Jelinek <jakub@redhat.com>
2290
2291 [BZ #5790]
2292 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr2_r): Don't
2293 overwrite *h_errnop/*errnop values from getanswer_r in case of
2294 failure.
2295
3868fb6e
UD
22962008-03-03 Ulrich Drepper <drepper@redhat.com>
2297
27c377dd
UD
2298 [BZ #5818]
2299 * nscd/connections.c (dbs): Add initializers for .suggested_module.
2300 (verify_persistent_db): Remove one unnecessary test and add a new one
2301 for bad configuration.
2302 (nscd_init): Improve error reported when persistent database cannot
2303 be reused.
2304 * nscd/nscd.h (DEFAULT_SUGGESTED_MODULE): Define.
2305 * nscd/nscd_conf.c (nscd_parse_file): Provide default values for
2306 .suggested_module and .max_db_size and case config file says the
2307 values are zero.
2308 * nscd/nscd_helper.c (get_mapping): Fail if hash table module is zero.
2309
0f749099
UD
2310 [BZ #5854]
2311 * nis/ypclnt.c (yp_order): Fix handling of return value of
2312 do_ypcall_tr call.
2313 Patch by Jeff Moyer <jmoyer@redhat.com>.
2314
3868fb6e
UD
2315 * po/fr.po: Update from translation team.
2316
268dbf25
AJ
23172008-02-22 Andreas Jaeger <aj@suse.de>,
2318 Carlos O'Donell <carlos@systemhalted.org>
2319
2320 [BZ #5012]
2321 * FAQ.in: Describe why glibc needs to be compiled with
2322 optimization.
2323
73b82641
RM
23242008-02-19 Roland McGrath <roland@redhat.com>
2325
2326 * elf/elf.h (SHT_GNU_ATTRIBUTES): New macro.
2327
c9136393
UD
23282008-02-15 Ulrich Drepper <drepper@redhat.com>
2329
2330 [BZ #5737]
2331 * resolv/netdb.h: Make NI_MAXHOST and NI_MAXSERV available when
2332 __USE_MISC is defined.
2333
2e3e9ff1
UD
23342008-02-10 Ulrich Drepper <drepper@redhat.com>
2335
2336 * sysdeps/unix/sysv/linux/sys/timerfd.h: New file.
2337 * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers): Add
2338 sys/timerfd.h.
2339 * sysdeps/unix/sysv/linux/syscalls.list: Add timerfd_create,
2340 timerfd_gettime, timerfd_settime.
2341 * sysdeps/unix/sysv/linux/Versions: Add timerfd_create,
2342 timerfd_gettime, timerfd_settime for GLIBC_2.8.
2343
85202a2b
RM
23442008-02-08 Roland McGrath <roland@redhat.com>
2345
2346 * elf/elf.h (NT_PPC_SPE): New macro.
2347
708ef8a4
RM
23482008-02-06 Roland McGrath <roland@redhat.com>
2349
2350 * Makerules ($(common-objpfx)sysd-rules):
2351 Depend on $(sysdep-makeconfigs).
2352
363a641b
RM
23532008-01-31 Roland McGrath <roland@redhat.com>
2354
67fbfa5c
RM
2355 [BZ #5442]
2356 * configure.in: Use -print-file-name if it yields a directory,
2357 for each of include and include-fixed.
2358 * configure: Regenerated.
2359
363a641b
RM
2360 * Makeconfig (sysd-rules-targets): New variable.
2361 * sysdeps/unix/make-syscalls.sh: Use it in the rules emitted.
2362 * sysdeps/unix/Makefile (omit-deps): Append variants for each target.
2363
0f0f9610
RM
23642008-01-30 Roland McGrath <roland@redhat.com>
2365
7bd00dbf
RM
2366 * manual/libc.texinfo: Update back-cover text.
2367
0f0f9610
RM
2368 * elf/elf.h (NT_386_TLS): New macro.
2369
16cd816f
RM
23702008-01-29 Roland McGrath <roland@redhat.com>
2371
2372 * Makeconfig (sysd-rules-patterns): New variable.
2373 * Makerules ($(common-objpfx)sysd-rules): Drive the loop from that.
2374 (check-inhibit-asm): New canned sequence, replaces ...
2375 (open-check-inhibit-asm, close-check-inhibit-asm): ... these, removed.
2376 * elf/rtld-Rules ($(objpfx)rtld-%.os): Use $(rtld-CPPFLAGS) in commands.
2377 (rtld-CPPFLAGS): Renamed from CPPFLAGS-rtld.
2378 (CFLAGS-rtld): Variable removed.
2379
f641ffcc
RM
23802008-01-24 Roland McGrath <roland@redhat.com>
2381
2382 * configure.in: Let configure fragments set base_os.
2383 * configure: Regenerated.
2384
b7e26885
UD
23852008-01-22 Ulrich Drepper <drepper@redhat.com>
2386
2387 * po/ko.po: Update from translation team.
2388
b4b166af
UD
23892008-01-12 H.J. Lu <hongjiu.lu@intel.com>
2390
2391 * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Use short for fnstsw.
2392
f66def9d
AJ
23932008-01-12 Andreas Jaeger <aj@suse.de>
2394
2395 [BZ #5040]
2396 * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h (enum EPOLL_EVENTS):
2397 Add EPOLLRDHUP.
2398
d3bc5e77
RM
23992008-01-20 Samuel Thibault <samuel.thibault@ens-lyon.org>
2400
2401 * hurd/hurdsock.c (_hurd_socket_server): Return the standard
2402 error EAFNOSUPPORT rather than non-standard EPFNOSUPPORT.
2403 * sunrpc/bindrsvprt.c (bindresvport): Likewise.
2404
4c533566
UD
24052007-10-23 Alexandre Oliva <aoliva@redhat.com>
2406
2407 * include/link.h (FORCED_DYNAMIC_TLS_OFFSET): Define.
2408 * elf/dl-close.c (_dl_close): Check for it.
2409 * elf/dl-reloc.c (CHECK_STATIC_TLS): Likewise.
2410 (_dl_allocate_static_tls): Likewise.
2411 * elf/dl-tls.c (_dl_allocate_tls_init): Likewise.
2412 (__tls_get_addr): Protect from race conditions in setting l_tls_offset
2413 to it.
2414 * elf/tst-tls16.c: New file.
2415 * elf/tst-tlsmod16a.c: New file.
2416 * elf/tst-tlsmod16b.c: New file.
2417 * elf/Makefile: Add rules to build and run tst-tls16.
2418
a53d3f82
UD
24192008-01-16 Ulrich Drepper <drepper@redhat.com>
2420
a0f6c236
UD
2421 [BZ #5628]
2422 * bits/shm.h: Fix comment describing shmid_ds.
2423 * sysdeps/gnu/bits/shm.h: Likewise.
2424 * sysdeps/unix/sysv/linux/alpha/bits/shm.h: Likewise.
2425 * sysdeps/unix/sysv/linux/bits/shm.h: Likewise.
2426 * sysdeps/unix/sysv/linux/ia64/bits/shm.h: Likewise.
2427 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
2428 * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
2429 * sysdeps/unix/sysv/linux/sh/bits/shm.h: Likewise.
2430 * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
2431 * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Likewise.
2432 Patch by Hareesh Nagarajan <hareesh.nagarajan@gmail.com>.
2433
a53d3f82
UD
2434 [BZ #5607]
2435 * conform/data/fcntl.h-data: Fix posix_fadvise and posix_fallocate
2436 prototypes.
2437 * conform/data/limits.h-data: Adjust limits changed in v6 and add
2438 additional suffixes.
2439 * conform/data/mqueue.h-data: Fix typo in mq_curmsgs entry.
2440 Add optional functions mq_timedreceive and mq_timedsend.
2441 * conform/data/netdb.h-data: Add more AI_* and EAI_* constants.
2442 * conform/data/pthread.h-data: Fix prototype of
2443 pthread_condattr_setclock. pthread_sigmask is not required in v6.
2444 * conform/data/semaphore.h-data: Allow time.h definitions.
2445 * conform/data/signal.h-data: Likewise.
2446 * conform/data/stdio.h-data: getw and putw are not required in v6.
2447 * conform/data/stdlib.h-data: Change setstate prototype.
2448 * conform/data/string.h-data: Fix strerror_r prototype.
2449 * conform/data/time.h-data: Fix typo in TIMER_ABSTIME definition.
2450 * conform/data/unistd.h-data: pthread_atfork not required in v6.
2451 Fix readlink prototype.
2452 * conform/data/netinet/in.h-data: Add const to in6addr_any and
2453 in6addr_loopback.
2454 * inet/netinet/in.h: Cleanup namespace.
2455 * posix/regex.h: Likewise.
2456 * resolv/netdb.h: Likewise.
2457 * sysdeps/unix/sysv/linux/bits/in.h: Likewise.
2458 * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
2459 * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
6107639e
UD
2460 * sysdeps/posix/getaddrinfo.c (default_labels): Adjust for change
2461 of names of in in6_addr.
2462 (default_precedence): Likewise.
2463 * sysdeps/unix/sysv/linux/cmsg_nxthdr.c: Include <stddef.h> for
2464 NULL definition.
a53d3f82 2465
ebca8f73
UD
24662008-01-15 Ulrich Drepper <drepper@redhat.com>
2467
fbe90cd5
UD
2468 * conform/data/fmtmsg.h-data: Add missing allows.
2469 * conform/data/ftw.h-data: Likewise.
2470 * conform/data/inttypes.h-data: Likewise.
2471 * conform/data/math.h-data: Likewise.
2472 * conform/data/signal.h-data: Likewise.
2473 * conform/data/net/if.h-data: Likewise.
2474 * conform/data/netinet/in.h-data: Likewise.
2475 * conform/data/sys/socket.h-data: Likewise.
2476
ebca8f73
UD
2477 [BZ #5614]
2478 * string/bits/string2.h (__strtok_r_1c): Always update *__NEXTP.
2479 (__strtok_r): Simplify.
2480 * string/tester.c (test_strtok_r): Add test case for futile search
2481 with single-character seach string.
2482
7c33ca8b
UD
24832008-01-12 Ulrich Drepper <drepper@redhat.com>
2484
2485 * po/ko.po: Update from translation team.
2486
b8cc0848
AJ
24872008-01-11 Andreas Jaeger <aj@suse.de>
2488
2489 [BZ #5600]
2490 * sysdeps/unix/sysv/linux/sys/signalfd.h (struct
2491 signalfd_siginfo): Use 64-bit type for ssi_ptr to sync with Linux
2492 kernel header.
2493
49029a66
UD
24942008-01-10 Ulrich Drepper <drepper@redhat.com>
2495
2496 * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Store result of
2497 native interface lookup in all the relevant places.
2498
99f05798
UD
24992008-01-10 Jakub Jelinek <jakub@redhat.com>
2500 Ulrich Drepper <drepper@redhat.com>
0efd1956
UD
2501
2502 * sysdeps/posix/getaddrinfo.c (sort_results): Remove service_order
2503 field. Use sockaddr_in6 for source_addr.
2504 (get_scope): Change type of parameter to sockaddr_in6. Adjust.
2505 (match_prefix): Likewise.
2506 (get_label): Likewise.
2507 (get_precedence): Likewise.
2508 (rfc3484_sort): Change to use indirect access to results array.
2509 Adjust to use of sockaddr_in6. Replace service_order test with
2510 simple index comparison.
2511 (getaddrinfo): Define order array. Initialize it. Don't initialize
2512 service_order field. Adjust qsort_t calls. Access sorted result
2513 array indirectly through order array.
2514 * posix/tst-rfc3484.c: Adjust for change of rfc3484_sort.
2515 * posix/tst-rfc3484-2.c: Likewise.
2516 * posix/tst-rfc3484-3.c: Likewise.
2517
b3443701
UD
25182008-01-09 Ulrich Drepper <drepper@redhat.com>
2519
f6bacb8e
UD
2520 [BZ #5541]
2521 * sunrpc/rpc_thread.c (__rpc_thread_destroy): Also free xports and
2522 pollfd structures.
2523 Patch by André Cruz.
2524
aa693c68
UD
2525 [BZ #5545]
2526 * sunrpc/clnt_perr.c (clnt_sperror): Don't use fixed size buffer.
2527 (clnt_spcreateerror): Likewise.
2528
b3443701
UD
2529 [BZ #5553]
2530 * malloc/malloc.c (public_mALLOc): Set ar_ptr when trying main_arena.
2531 (public_mEMALIGn): Likewise.
2532 Patch mostly by Daniel Jacobowitz.
2533
148e12ed
UD
25342008-01-09 Jakub Jelinek <jakub@redhat.com>
2535
2536 * sysdeps/unix/sysv/linux/i386/makecontext.S (__makecontext): Avoid
2537 clobbering memory at or above uc_stack.ss_sp + uc_stack.ss_size.
2538 * stdlib/Makefile: Add rules to build and run tst-makecontext2.
2539 * stdlib/tst-makecontext2.c: New test.
2540
78c2bf0e 25412008-01-08 Jakub Jelinek <jakub@redhat.com>
4b1b449d
UD
2542
2543 * iconv/loop.c (UPDATE_PARAMS): Define to empty statement if not
2544 defined.
2545 (REINIT_PARAMS): Likewise. Undefine before end of file.
2546 (STANDARD_TO_LOOP_ERR_HANDLER): Use UPDATE_PARAMS before calling
2547 transliteration hooks and REINIT_PARAMS afterwards.
2548 * iconvdata/iso-2022-jp.c (BODY): Use a separate variable for
2549 status.
2550 (REINIT_PARAMS): Define.
2551 * iconvdata/ibm1364.c (REINIT_PARAMS): Likewise.
2552 * iconvdata/ibm930.c (REINIT_PARAMS): Likewise.
2553 * iconvdata/ibm933.c (REINIT_PARAMS): Likewise.
2554 * iconvdata/ibm935.c (REINIT_PARAMS): Likewise.
2555 * iconvdata/ibm937.c (REINIT_PARAMS): Likewise.
2556 * iconvdata/ibm939.c (REINIT_PARAMS): Likewise.
2557 * iconvdata/iso-2022-cn.c (REINIT_PARAMS): Likewise.
2558 * iconvdata/iso-2022-cn-ext.c (REINIT_PARAMS): Likewise.
2559 * iconvdata/iso-2022-jp-3.c (REINIT_PARAMS): Likewise.
2560 * iconvdata/iso-2022-kr.c (REINIT_PARAMS): Likewise.
2561 * iconvdata/Makefile: Add rules to build and run tst-iconv7.c.
2562 * iconvdata/tst-iconv7.c: New test.
2563
71edcafa
UD
25642008-01-07 Ulrich Drepper <drepper@redhat.com>
2565
2566 * libio/stdio.h (vscanf): Fix definition for loser compilers.
2567
0fbfe2f7
JJ
25682008-01-05 Jakub Jelinek <jakub@redhat.com>
2569
2570 [BZ #5112]
2571 * nscd/connections.c (restart): Fix condition.
2572
8726a12e
UD
25732008-01-03 Jakub Jelinek <jakub@redhat.com>
2574
2575 * ctype/ctype.h (__ctype_b_loc, __ctype_tolower_loc,
2576 __ctype_toupper_loc): Add __THROW.
2577
f4a1363e
UD
25782008-01-02 Ulrich Drepper <drepper@redhat.com>
2579
ad586879
UD
2580 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Fix
2581 recognition of interface family.
2582
f4a1363e
UD
2583 * posix/getconf.c: Update copyright year.
2584 * nss/getent.c: Likewise.
2585 * iconv/iconvconfig.c: Likewise.
2586 * iconv/iconv_prog.c: Likewise.
2587 * elf/ldconfig.c: Likewise.
2588 * catgets/gencat.c: Likewise.
2589 * csu/version.c: Likewise.
2590 * elf/ldd.bash.in: Likewise.
2591 * elf/sprof.c (print_version): Likewise.
2592 * locale/programs/locale.c: Likewise.
2593 * locale/programs/localedef.c: Likewise.
2594 * nscd/nscd.c (print_version): Likewise.
2595 * debug/xtrace.sh: Likewise.
2596 * malloc/memusage.sh: Likewise.
2597 * malloc/mtrace.pl: Likewise.
2598 * debug/catchsegv.sh: Likewise.
2599
0dc6c5e4
UD
26002007-12-26 Ulrich Drepper <drepper@redhat.com>
2601
2602 * nss/nsswitch.c (__nss_lookup): Actually use alternative name in
2603 second lookup.
2604
80af8b82
UD
26052007-12-23 Ulrich Drepper <drepper@redhat.com>
2606
2607 * sysdeps/x86_64/cacheinfo.c (intel_02_known): New entry 0x3f.
2608 * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
2609
4bcecfb7
RM
26102007-12-17 Roland McGrath <roland@redhat.com>
2611
2612 * inet/ether_line.c (ether_line): Remove unused variable.
2613
26142007-12-17 Samuel Thibault <samuel.thibault@ens-lyon.org>
2615
2616 * login/forkpty.c (forkpty): Add const qualifier to parameters termp
2617 and winp.
2618 * login/openpty.c (openpty): Likewise.
2619 * login/pty.h (openpty, forkpty): Likewise.
2620 * manual/terminal.texi (openpty, forkpty): Likewise.
2621
4cd4c5d6
UD
26222007-12-17 Ulrich Drepper <drepper@redhat.com>
2623
78c2bf0e 2624 * malloc/malloc.c (public_cALLOc): For arenas other than
4cd4c5d6
UD
2625 main_arena, count all bytes inside the mprotect_size range of the
2626 heap as uninitialized.
2627
68631c8e
UD
26282007-12-16 Ulrich Drepper <drepper@redhat.com>
2629
d9961b6a
UD
2630 * elf/tst-execstack.c (do_test): Don't fail if SELinux forbids
2631 executable stacks.
2632
68631c8e
UD
2633 * malloc/malloc.c (public_mTRIm): Iterate over all arenas and call
2634 mTRIm for all of them.
2635 (mTRIm): Additionally iterate over all free blocks and use madvise
2636 to free memory for all those blocks which contain at least one
2637 memory page.
be8c1500
UD
2638 * malloc/tst-trim1.c: New file.
2639 * malloc/Makefile (tests): Add tst-trim1.
68631c8e
UD
2640
2641 * malloc/malloc.c (do_check_malloc_state): Minimal cleanups.
2642
78b767a0
UD
26432007-12-14 Ulrich Drepper <drepper@redhat.com>
2644
2645 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INTERNAL_SYSCALL_ERROR_P):
2646 First cast argument to long
52386be7
UD
2647 * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_gettimeofday):
2648 Return long.
2649 (__vdso_clock_gettime): Likewise.
78b767a0
UD
2650 * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Functions
2651 return long.
2652
bc3e1c12
UD
26532007-12-13 Ulrich Drepper <drepper@redhat.com>
2654
2655 * locale/nl_langinfo.c (nl_langinfo): Just call __nl_langinfo_l.
2656 * locale/nl_langinfo_l.c: Real implementation, copied from
2657 nl_langinfo.c.
2658 * include/langinfo.h: Add libc_hidden_proto for __nl_langinfo_l.
2659
77751669
UD
26602007-12-01 Jim Meyering <meyering@redhat.com>
2661
2662 * posix/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
2663 that would inhibit utf8-optimization of a regexp containing line-
2664 or buffer-anchors, e.g., `^', `$'.
2665
f63e5063
UD
26662007-12-12 Ulrich Drepper <drepper@redhat.com>
2667
2668 * time/bug-getdate1.c (do_test): Don't use century values which
2669 aren't valid on 32-bit systems.
2670
a78814a9
UD
26712007-12-12 Jakub Jelinek <jakub@redhat.com>
2672
2673 * sysdeps/i386/i486/bits/string.h (memmove): Define as macro.
2674 (memmove): Rename to __memmove_g, with __asm__ ("memmove").
2675 * sysdeps/s390/bits/string.h (__strlen_g, __strcpy_g, __strncpy_g,
2676 __strcat_g, __strncat_g): Add __asm__.
2677
26782007-12-12 Ulrich Drepper <drepper@redhat.com>
2679
2680 [BZ #5477]
2681 * io/fchmodat.c: Fix typo in stub_warning use.
2682 Patch by Petr Salinger.
2683
17edb30c
UD
26842007-12-11 Ulrich Drepper <drepper@redhat.com>
2685
58d11795
UD
2686 * iconvdata/hp-thai8.c: New file.
2687 * iconvdata/Makefile: Add rules for hp-thai8.c.
2688 * iconvdata/tst-tables.sh: Add entry for HP-THAI8.
2689 * iconvdata/gconv-modules: Likewise.
2690
2691 [BZ #5464]
2692 * iconvdata/hp-greek8.c: New file.
2693 * iconvdata/Makefile: Add rules for hp-greek8.c.
2694 * iconvdata/tst-tables.sh: Add entry for HP-GREEK8.
2695 * iconvdata/gconv-modules: Likewise.
2696
2697 [BZ #5463]
2698 * iconvdata/hp-turkish8.c: New file.
2699 * iconvdata/Makefile: Add rules for hp-turkish8.c.
2700 * iconvdata/tst-tables.sh: Add entry for HP-TURKISH8.
2701 * iconvdata/gconv-modules: Likewise.
2702
cbf5760e
UD
2703 * malloc/arena.c (grow_heap): Split out code to shrink heap into...
2704 (shrink_heap): ... this new function.
2705 (heap_trim): Call shrink_heap instead of grow_heap.
2706
17edb30c
UD
2707 * malloc/malloc.c (_int_malloc): sYSMALLOc might fail, in this
2708 case don't call alloc_perturb.
2709
ae18718f
UD
27102007-12-10 Ulrich Drepper <drepper@redhat.com>
2711
2712 * sysdeps/unix/sysv/linux/adjtime.c: Use ADJ_OFFSET_SS_READ if
2713 possible.
2714 * sysdeps/unix/sysv/linux/kernel-features.h
2715 (__ASSUME_ADJ_OFFSET_SS_READ): Define for 2.6.24.
2716 * sysdeps/unix/sysv/linux/sys/timex.h (ADJ_OFFSET_SS_READ): Define.
2717
b4354cf4
UD
27182007-12-08 Ulrich Drepper <drepper@redhat.com>
2719
2720 [BZ #5424]
2721 * stdio-common/vfprintf.c: Do not overflow when adding to done.
2722 * stdio-common/Makefile (tests): Add bug22.
2723 * stdio-common/bug22.c: New file.
2724
2725 [BZ #5451]
2726 * time/getdate.c: Fix filling in default values.
2727 * time/bug-getdate1.c: New file.
2728 * time/Makefile: Add rules to build and run bug-getdate1.
2729
2730 * iconvdata/ebcdic-is-friss.c: Use 8bit-gap instead of 8bit-generic.
2731 * iconvdata/ebcdic-es.c: Likewise.
2732 * iconvdata/ebcdic-es-a.c: Likewise.
2733 * iconvdata/ebcdic-uk.c: Likewise.
2734 * iconvdata/iso8859-16.c: Likewise.
2735 * iconvdata/viscii.c: Likewise.
2736 * iconvdata/iso8859-9e.c: Likewise.
2737 * iconvdata/Makefile: Adjust appropriately.
2738
2739 [BZ #5428]
2740 * wcsmbs/wchar.h: Unconditionally undefine __need_mbstate and
2741 __need_wint_t.
2742
26e21e75
UD
27432007-12-07 Ulrich Drepper <drepper@redhat.com>
2744
87520ccc
UD
2745 [BZ #5427]
2746 * iconvdata/hp-roman9.c: New file.
2747 * iconvdata/Makefile: Add rules for hp-roman9.c.
2748 * iconvdata/tst-tables.sh: Add HP-ROMAN9.
b4354cf4 2749 * iconvdata/gconv-modules: Likewise.
87520ccc
UD
2750
2751 * iconvdata/hp-roman8.c: Use 8bit-gap instead of 8bit-generic.
2752 * iconvdata/Makefile: Adjust appropriately.
2753
26e21e75
UD
2754 [BZ #5441]
2755 * stdio-common/vfscanf.c (_IO_vfwscanf): Don't free ptrs_to_free
2756 structure, it's allocated with alloca.
2757 * stdio-common/Makefile (tests): Add bug21.
2758 * stdio-common/bug21.c: New file.
2759
27602007-12-06 Aurelien Jarno <aurelien@aurel32.net>
2761
2762 [BZ #5452]
2763 * sysdeps/unix/sysv/linux/bits/sched.h: Use __extension__
87520ccc 2764 keyword for gcc's braced-groups.
26e21e75
UD
2765
27662007-12-07 Ulrich Drepper <drepper@redhat.com>
2767
2768 [BZ #5454]
2769 * inet/ether_line.c: Strip hostname of whitespaces.
2770 * inet/Makefile (tests): Add tst-ether_line.
2771 * inet/tst-ether_line.c: New file.
2772
9e80c123
UD
27732007-12-03 Ulrich Drepper <drepper@redhat.com>
2774
da0ff4ae
UD
2775 [BZ #5439]
2776 * sysdeps/unix/sysv/linux/sys/signalfd.h: Fix use of __nonnull.
2777
51bd20d9
UD
2778 [BZ #5435]
2779 * sysdeps/unix/sysv/linux/i386/makecontext.S: Align stack.
2780
d90d0256
UD
2781 * stdlib/tst-setcontext.c: Catch the case where the links gets
2782 messed up and we do not reach main again.
2783
9e80c123
UD
2784 * po/ca.po: Update from translation team.
2785
ae4287f8
UD
27862007-11-26 Ulrich Drepper <drepper@redhat.com>
2787
6701afc7 2788 * posix/unistd.h: Declare fsync also for __USE_XOPEN2K.
79fb2e02 2789 * posix/regex.h (REG_ENOSYS): Likewise.
a912a4f8 2790 * wcsmbs/wchar.h: Define __need_file also for __USE_XOPEN2K.
ae4287f8 2791
30294ea4
UD
27922007-11-25 Ulrich Drepper <drepper@redhat.com>
2793
2794 * nscd/nscd.h (MAX_STACK_USE): Define.
2795 * nscd/mem.c (MAX_STACK_USE): Remove definition here.
2796 (gc): Initialize stack_used based on allocation in prune_cache.
2797 * nscd/cache.c (prune_cache): Use heap for mark array if necessary.
e8667ddc 2798 Clear array before use.
30294ea4
UD
2799
2800 * nscd/aicache.c (addhstaiX): Update statistics counter in case
10a4c1e9 2801 memory allocation failed.
e8667ddc
UD
2802 * nscd/hstcache.c (cache_addhst): Likewise.
2803 * nscd/grpcache.c (cache_addgr): Likewise.
2804 * nscd/servicescache.c (cache_addserv): Likewise.
2805 * nscd/pwdcache.c (cache_addpw): Likewise.
2806 * nscd/initgrcache.c (addinitgroupsX): Likewise.
30294ea4 2807
715db78b
UD
28082007-11-23 Ulrich Drepper <drepper@redhat.com>
2809
609bb071
UD
2810 * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Add open
2811 and creat system calls.
2812
715db78b
UD
2813 * sysdeps/unix/sysv/linux/check_native.c: Include <asm/types.h>.
2814
ea2c47b6
UD
28152007-11-23 Martin Schwidefsky <schwidefsky@de.ibm.com>
2816
2817 * sysdeps/unix/sysv/linux/Makefile [subdir=inet] (sysdep_headers):
2818 Add netiucv/iucv.h.
2819 * sysdeps/unix/sysv/linux/netiucv/iucv.h: New file.
2820 * sysdeps/unix/sysv/linux/opensock.c (__opensock): Add AF_IUCV
2821 protocol.
2822 * sysdeps/unix/sysv/linux/sa_len.c (__libc_sa_len): Likewise.
2823 * sysdeps/unix/sysv/linux/s390/opensock.c: New file.
2824 * sysdeps/unix/sysv/linux/s390/sa_len.c: New file.
2825
dcdcf4b9
UD
28262007-11-22 Martin Schwidefsky <schwidefsky@de.ibm.com>
2827
37143323
UD
2828 * sysdeps/s390/bits/string.h (strlen, strcpy, strncpy, strcat,
2829 strncat): Define as macros to avoid compile errors.
2830
dcdcf4b9
UD
2831 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Add open and
2832 creat entries.
2833
3a632674
UD
28342007-11-22 Ulrich Drepper <drepper@redhat.com>
2835
7ea8eb02
UD
2836 [BZ #5382]
2837 * nscd/nscd.h (NSCD_THREAD_STACKSIZE): Define.
2838 * nscd/connections.c (start_threads): Use NSCD_THREAD_STACKSIZE.
715db78b 2839 * nscd/mem.c (gc): Don't allocate arrays on the stack if they can
7ea8eb02 2840 overflow it.
70d5b6ef 2841 Partially based on a patch by Petr Baudis <pasky@suse.cz>.
7ea8eb02
UD
2842
2843 * sysdeps/unix/sysv/linux/nscd_setup_thread.c (setup_thread):
715db78b 2844 Return zero in case the thread library is not NPTL.
7ea8eb02 2845
5c3a3dba
UD
2846 [BZ #5375]
2847 * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix locking when
2848 initializing interface list.
2849
85883123
UD
2850 [BZ #5378]
2851 * nis/nss_compat/compat-initgroups.c (getgrent_next_nss): Don't
2852 use result of nss_getgrgid_r if nothing was found. For other
2853 error return with a failure.
2854 Partially based on a patch by Petr Baudis <pasky@suse.cz>.
2855
3a632674
UD
2856 * locale/programs/ld-collate.c (collate_read): Fix loop to match
2857 macro name.
2858
b73f9135
UD
28592007-11-19 Ulrich Drepper <drepper@redhat.com>
2860
ee72b971
UD
2861 * sysdeps/posix/getaddrinfo.c (defaults_scopes, scopes): New variables.
2862 (get_scope): For IPv4 scope, use scopes table.
2863 (fini): Free scopes table if necessary.
2864 (free_scopelist): New function.
2865 (scopecmp): New function.
2866 (gaiconf_init): Also handle scopev4 entries.
2867 * posix/tst-rfc3484.c (do_test): Initialize scopes.
2868 * posix/tst-rfc3484-2.c (do_test): Likewise.
2869 * posix/gai.conf: Document scopev4 defaults.
2870 * posix/Makefile (tests): Add tst-rfc3484-3.
2871 * posix/tst-rfc3484-3.c: New file.
2872
f4a79765
UD
2873 * sysdeps/posix/getaddrinfo.c (default_labels): Describe entry for
2874 Teredo tunnels.
b73f9135
UD
2875 * posix/gai.conf: Update for current default tables.
2876
429bd64d
UD
28772007-11-19 Ulrich Drepper <drepper@redhat.com>
2878
2879 * po/tr.po: Update from translation team.
2880
3c9af259
RM
28812007-11-18 Roland McGrath <roland@frob.com>
2882
76cf9889
RM
2883 * manual/arith.texi (Remainder Functions): Spelling fix.
2884 From Shaun Silk <genix@mysoul.com.au>.
2885
3c9af259
RM
2886 * sysdeps/mach/hurd/bits/fcntl.h (O_CLOEXEC): Fix value.
2887
238346ab
UD
28882007-11-17 Ulrich Drepper <drepper@redhat.com>
2889
5879ad50
UD
2890 * po/zh_CN.po: Update from translation team.
2891
238346ab
UD
2892 * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
2893 Add sys/signalfd.h and sys/eventfd.h.
2894
b80b9c77
UD
28952007-11-15 Bruno Haible <bruno@clisp.org>
2896
2897 [BZ #5346]
2898 * intl/dcigettext.c (struct known_translation_t): Turn msgid into a
2899 union.
2900 (transcmp): Use the appropriate part of s1->msgid and s2->msgid.
2901 (DCIGETTEXT): Change the allocation of the 'search' variable so that
2902 it needs only fixed stack space. Delay the initialization of
2903 msgid_len until it is needed.
2904
2da2501c
AJ
29052007-11-15 Andreas Jaeger <aj@suse.de>
2906
2907 * sysdeps/ieee754/dbl-64/sincos.tbl: Fix size of union.
2908 Reported by Christoph Quirin Lauter <christoph.lauter@ens-lyon.fr>.
2909
68a6dcf5
UD
29102007-11-15 Ulrich Drepper <drepper@redhat.com>
2911
2912 * po/ko.po: Update from translation team.
2913
43850227
UD
29142007-11-14 Ulrich Drepper <drepper@redhat.com>
2915
1e2692c9
UD
2916 * sysdeps/unix/sysv/linux/check_native.c (__check_native): Simplify
2917 significantly. The device type is also part of the ifinfomsg data.
2918
84e6cc7c 2919 * po/sv.po: Update from translation team.
cbd52634 2920 * po/nl.po: Likewise.
84e6cc7c 2921
f9e2261b
UD
2922 * nscd/cache.c (prune_cache): If cache is empty, instruct caller
2923 to wake up in 24 hours.
2924
43850227
UD
2925 * nscd/gai.c (__ioctl): Define. Include check_native.c.
2926
5742e960
UD
29272007-11-13 Ulrich Drepper <drepper@redhat.com>
2928
1a821d82
UD
2929 * po/cs.po: Update from translation team.
2930 * po/pl.po: Likewise.
2931
773e79b3
UD
2932 * include/ifaddrs.h: Remove in6ai_temporary.
2933 (struct in6addrinfo): Add index element.
2934 Declare __check_native.
2935 * inet/Makefile (aux): Add check_native.
2936 * sysdeps/unix/sysv/linux/check_native.c: New file.
2937 * sysdeps/unix/sysv/linux/check_pf.c: No need to recognize
2938 IFA_F_TEMPORARY. Pass back ifa_index.
2939 * sysdeps/posix/getaddrinfo.c: Remove netlink compatibility code.
2940 (rfc3484_sort): Add new parameter. Implement rule 7 correctly:
2941 call __check_native if necessary.
2942 (getaddrinfo): Fill in index field. Use qsort_r instead of qsort
2943 to sort addresses. Pass information about the results.
2944 * posix/tst-rfc3484.c: Adjust for addition of index field and change
2945 of rfc3484_sort interface.
2946 * posix/tst-rfc3484-2.c: Likewise.
2947
e458144c
UD
2948 * stdlib/stdlib.h: Define __compar_d_fn_t. Declare qsort_r.
2949 * include/stdlib.h: Add hidden_proto for qsort_t and adjust protoype
2950 for _quicksort.
2951 * stdlib/msort.c (qsort): Now a wrapper around qsort_r.
2952 (qsort_r): Renamed from qsort. Take additional parameter and pass it
2953 on as third parameter to compare function and _quicksort.
2954 * stdlib/qsort.c (_quicksort): Take additional parameter and pass on
2955 to the compare function.
2956 * stdlib/Versions [libc] (GLIBC_2.8): Add qsort_r.
2957 * Versions.def: Add GLIBC_2.8 for libc.
2958
bd63f380
UD
2959 * posix/tst-rfc3484.c: Adjust for addition of prefixlen field.
2960 * posix/tst-rfc3484-2.c: Likewise.
2961
5742e960
UD
2962 * include/kernel-features.h: Moved to...
2963 * sysdeps/mach/hurd/kernel-features.h: ...here.
2964
a6ac7fdb
RM
29652007-09-13 H.J. Lu <hongjiu.lu@intel.com>
2966
2967 * sysdeps/i386/i586/memcpy_chk.S: New file.
2968 * sysdeps/i386/i586/mempcpy_chk.S: Likewise.
2969 * sysdeps/i386/i586/memset_chk.S: Likewise.
2970
6f3914d5
UD
29712007-11-12 Ulrich Drepper <drepper@redhat.com>
2972
2973 * include/ifaddrs.c (struct in6addrinfo): Add prefixlen field.
2974 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Always return
2975 list of interfaces. Also store prefix length.
2976 * sysdeps/posix/getaddrinfo.c (sort_result): Add prefixlen element.
2977 (rfc3484_sort): In rule 9, for IPv4 addresses count only matching
2978 prefix if source and destination address are in the same subnet.
2979 (getaddrinfo): Always call __check_pf. Fill in prefixlen field.
2980 Always look for matching record in in6ai list.
2981 Correct source_addr_len value for IPv6->IPv4 converted records.
2982
78cf5f6a
RM
29832007-11-11 Roland McGrath <roland@frob.com>
2984
2985 * include/kernel-features.h: New file.
2986
7f745396
UD
29872007-11-10 Ulrich Drepper <drepper@redhat.com>
2988
01e7fdbb
UD
2989 * sysdeps/pthread/aio_misc.c (handle_fildes_io): Avoid unnecessary
2990 complications for 64-bit platforms.
2991
7f745396
UD
2992 * sysdeps/unix/sysv/linux/open64.c: Move __open64_2 implementation to..
2993 * sysdeps/unix/sysv/linux/open64_2.c: ...here. New file.
2994 * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines): Add
2995 open64_2.
2996 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Add open and creat
2997 entries.
2998 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
2999 * sysdeps/wordsize-64/alphasort.c: New file.
3000 * sysdeps/wordsize-64/alphasort64.c: New file.
3001 * sysdeps/wordsize-64/fseeko.c: New file.
3002 * sysdeps/wordsize-64/fseeko64.c: New file.
3003 * sysdeps/wordsize-64/ftello.c: New file.
3004 * sysdeps/wordsize-64/ftello64.c: New file.
3005 * sysdeps/wordsize-64/ftw.c: New file.
3006 * sysdeps/wordsize-64/ftw64.c: New file.
3007 * sysdeps/wordsize-64/iofgetpos.c: New file.
3008 * sysdeps/wordsize-64/iofgetpos64.c: New file.
3009 * sysdeps/wordsize-64/iofopen.c: New file.
3010 * sysdeps/wordsize-64/iofopen64.c: New file.
3011 * sysdeps/wordsize-64/iofsetpos.c: New file.
3012 * sysdeps/wordsize-64/iofsetpos64.c: New file.
3013 * sysdeps/wordsize-64/lockf.c: New file.
3014 * sysdeps/wordsize-64/lockf64.c: New file.
3015 * sysdeps/wordsize-64/mkostemp.c: New file.
3016 * sysdeps/wordsize-64/mkostemp64.c: New file.
3017 * sysdeps/wordsize-64/mkstemp.c: New file.
3018 * sysdeps/wordsize-64/mkstemp64.c: New file.
3019 * sysdeps/wordsize-64/scandir.c: New file.
3020 * sysdeps/wordsize-64/scandir64.c: New file.
3021 * sysdeps/wordsize-64/tmpfile.c: New file.
3022 * sysdeps/wordsize-64/tmpfile64.c: New file.
3023 * sysdeps/wordsize-64/versionsort.c: New file.
3024 * sysdeps/wordsize-64/versionsort64.c: New file.
3025 * sysdeps/unix/sysv/linux/wordsize-64/aio_read.c: New file.
3026 * sysdeps/unix/sysv/linux/wordsize-64/aio_read64.c: New file.
3027 * sysdeps/unix/sysv/linux/wordsize-64/aio_write.c: New file.
3028 * sysdeps/unix/sysv/linux/wordsize-64/aio_write64.c: New file.
3029 * sysdeps/unix/sysv/linux/wordsize-64/creat64.c: New file.
3030 * sysdeps/unix/sysv/linux/wordsize-64/getdirentries.c: New file.
3031 * sysdeps/unix/sysv/linux/wordsize-64/getdirentries64.c: New file.
3032 * sysdeps/unix/sysv/linux/wordsize-64/lio_listio.c: New file.
3033 * sysdeps/unix/sysv/linux/wordsize-64/lio_listio64.c: New file.
3034 * sysdeps/unix/sysv/linux/wordsize-64/open64.c: New file.
3035 * sysdeps/unix/sysv/linux/wordsize-64/openat.c: New file.
3036 * sysdeps/unix/sysv/linux/wordsize-64/openat64.c: New file.
3037
3038 * crypt/sha256-crypt.c: Fix a comment.
3039 * crypt/sha512-crypt.c: Likewise.
3040
f6ed654c
UD
30412007-11-07 H.J. Lu <hongjiu.lu@intel.com>
3042
3043 * sysdeps/x86_64/memset.S: Add sfence after movnti.
3044
f2a8406a
UD
30452007-11-07 Ulrich Drepper <drepper@redhat.com>
3046
3047 [BZ #5277]
3048 * iconv/loop.c (STANDARD_TO_LOOP_ERR_HANDLER): If conversion failed
3049 because output buffer is too small break, don't loop.
3050 * iconvdata/Makefile (tests): Add bug-iconv6.
3051 * iconvdata/bug-iconv6.c: New file.
3052
7fe4e0e8
UD
30532007-11-06 Ulrich Drepper <drepper@redhat.com>
3054
9ca230d6
UD
3055 * stdio-common/vfprintf.c (vfprintf): Compute necessary buffer size
3056 with size_t type.
3057 * stdio-common/printf_fp.c (__print_fp): Change chars_needed type to
3058 size_t. Add casts where needed.
3059
7fe4e0e8
UD
3060 * nscd/selinux.c (nscd_request_avc_has_perm): When compiled with
3061 old headers, don't call avc_has_perm if we don't have the
3062 permission information.
3063
b92e3780
UD
30642007-11-05 Daniel Jacobowitz <dan@codesourcery.com>
3065
3066 * elf/rtld.c (dl_main): Use the page size to find the map start.
3067
ffb1b882
UD
30682007-11-05 Ulrich Drepper <drepper@redhat.com>
3069
94a749f6
UD
3070 * time/tzfile.c (__tzfile_read): Fix check for version 0 data files.
3071 Patch by Szymon Siwek <sls@poczta.wp.pl>.
3072
ffb1b882
UD
3073 * nscd/aicache.c (addhstaiX): Check herrno after IPv4 lookup only
3074 when the lookup call failed.
3075
3076 * nscd/nscd.h (struct database_dyn): Rename prunelock to prune_lock.
3077 Add prune_cond and wakeup_time.
3078 (CACHE_PRUNE_INTERNAL): Define.
3079 Update declarations of prune_cache and setup_thread.
3080 * nscd/connections.c (dbs): Update initializers.
3081 (CACHE_PRUNE_INTERNAL): Moved to nscd.h.
3082 (nscd_init): Default number of threads is now 4.
3083 (invalidate_cache): Take lock before calling prune_cache.
3084 (handle_request): If SELinux forbids the request, say so.
3085 (readylist_cond): Use static initializer.
3086 (nscd_run_prune): New function. Used only by pruning threads.
3087 (nscd_run_worder): Renamed from nscd_run. Remove support for pruning
3088 here.
3089 (fd_ready): Update nscd_run reference.
3090 (start_threads): No need to initialize readylist_cond.
3091 Start pruning threads separately.
3092 * nscd/nscd_setup_thread.c: Change return value type to int and always
3093 return 0.
3094 * sysdeps/unix/sysv/linux/nscd_setup_thread.c: Change return value type
3095 to int and return nonzero value if we can use the TID address hack.
3096 * nscd/cache.c (cache_add): If next wakeup time of cleanup thread for
3097 the database is later than the new entry's timeout, update the
3098 wakeup time and wake the cleanup thread.
3099 (prune_cache): Return seconds the next entry in the database is still
3100 valid. Remove locking for pruning here.
3101 * nscd/nscd.conf: Document default number of threads.
3102
4c48ef06
UD
31032007-10-31 Ulrich Drepper <drepper@redhat.com>
3104
41ff2a49
UD
3105 * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Make sure
3106 stack is properly aligned for the target function.
3107 Correct unwind info.
ffb1b882 3108
4c48ef06
UD
3109 * elf/rtld.c (dl_main): Initialize stack and pointer guard early
3110 when using auditing libraries.
3111
384ca551
UD
31122007-10-29 Ulrich Drepper <drepper@redhat.com>
3113
31e2791c
UD
3114 * resolv/Versions [libresolv] (GLIBC_PRIVATE): Add
3115 _nss_dns_getnetbyaddr2_r.
3116 * resolv/nss_dns/dns-host.c: Define _nss_dns_getnetbyaddr2_r. Pass
3117 extra parameter to getanswer_r.
3118 (_nss_dns_getnetbyaddr_r): Now a wrapper around
3119 _nss_dns_getnetbyaddr2_r.
3120
384ca551
UD
3121 * nscd/Makefile (nscd-modules): Replace gethstbynm2_r with
3122 gethstbynm3_r.
3123 * nscd/gethstbynm2_r.c: Remove.
3124 * nscd/gethstbynm3_r.c: New file.
3125 * nscd/aicache.c (addhstaiX): Use __gethostbyaddr2_r instead of
3126 __gethostbyaddr_r.
3127 * nscd/gethstbyad_r.c: Generate __gethostbyaddr2_r function. Define
3128 __gethostbyaddr_r compatibility wrapper.
3129 * nscd/hstcache.c (cache_addhst): Add ttl parameter. Use it when
3130 determining timeout of entry.
3131 (lookup): Take new parameter and pass it to __gethostbyname3_r and
3132 __gethostbyaddr2_r.
3133 (addhstbyX): Pass reference to variable for TTL to lookup and
3134 cache_addhst.
3135 * nss/Versions [glibc] (GLIBC_PRIVATE): Export __nss_passwd_lookup2,
3136 __nss_group_lookup2, __nss_hosts_lookup2, __nss_services_lookup2,
3137 and __nss_next2. Remove __nss_services_lookup.
3138 * nss/XXX-lookup.c: Name function now *_lookup2. Add new parameter.
3139 Add compat wrapper.
3140 * nss/getXXbyYY_r.c: Changes to call new *_lookup2 functions and
3141 __nss_next2.
3142 * nss/getXXent_r.c: Likewise.
3143 * nss/getnssent_r.c: Likewise.
3144 * nss/nsswitch.c (__nss_lookup): Add new parameter. If first function
3145 does not exist in module, try the optional second name.
3146 (__nss_next2): New function.
3147 (__nss_next): Now wrapper around __nss_next2.
3148 * nss/nsswitch.h: Adjust __nss_lookup prototype.
3149 Declare __nss_next2.
3150 Adjust definition of db_lookup_function type.
3151 * nss/service-lookup.c: Define NO_COMPAT.
3152 * include/netdb.h: Declare __gethostbyaddr2_r and __gethostbyname3_r.
3153 * inet/ether_hton.c: Use __nss_next2 instead of __nss_next.
3154 * inet/ether_ntoh.c: Likewise.
3155 * sunrpc/netname.c: Likewise.
3156 * sunrpc/publickey.c: Likewise.
3157 * inet/getnetgrent.c: Likewise. Adjust calls to __nss_lookup.
3158 * inet/gethstbyad_r.c (DB_LOOKUP_FCT): Change to __nss_hosts_lookup2.
3159 * inet/gethstbynm2_r.c (DB_LOOKUP_FCT): Likewise.
3160 * inet/gethstbynm_r.c (DB_LOOKUP_FCT): Likewise.
3161 * inet/gethstent_r.c (DB_LOOKUP_FCT): Likewise.
3162
3163 * nscd/aicache.c (addhstaiX): Fix default TTL handling.
3164
5e37840c 3165 * inet/getnetgrent_r.c (setup): Encrypt static pointer.
384ca551 3166
88197030
UD
31672007-10-28 Ulrich Drepper <drepper@redhat.com>
3168
f160a450
UD
3169 [BZ #5204]
3170 * crypt/sha256c-test.c: Define TIMEOUT to 6 for ancient hardware.
3171 * crypt/sha512c-test.c: Likewise.
3172
4c6b2202
UD
3173 [BZ #5225]
3174 * stdio-common/vfscanf.c (_IO_vfwscanf): Don't misuse wp pointer
3175 to keep track of end of %[ format string element.
22c915ac
UD
3176 * stdio-common/Makefile (tests): Add bug20.
3177 * stdio-common/bug20.c: New file.
4c6b2202 3178
88197030
UD
3179 [BZ #5222]
3180 * elf/dl-load.c (_dl_rtld_di_serinfo): Correct handling of short
3181 path elements in counting mode.
3182
05d69147
UD
31832007-10-27 Andreas Jaeger <aj@suse.de>
3184
94833f11
UD
3185 [BZ #5040]
3186 * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLRDHUP): Add value.
3187
05d69147
UD
3188 [BZ #3112]
3189 * sysdeps/ia64/backtrace.c (init): Free shared library if incorrect.
3190 (__cleanup): Free shared library when exiting.
3191 * sysdeps/i386/backtrace.c (init): Free shared library if incorrect.
3192 (__cleanup): Free shared library when exiting.
3193
e6b29af8
UD
31942006-04-14 H.J. Lu <hongjiu.lu@intel.com>
3195
3196 [BZ #2549]
3197 * math/libm-test.inc (check_float_internal): Support
3198 denormalized return.
3199
ad3371fb
UD
32002007-10-23 Andreas Jaeger <aj@suse.de>
3201
3202 [BZ #5208]
3203 * sysdeps/unix/sysv/linux/readahead.c (__readahead): Use
3204 __LONG_LONG_PAIR to handle little endian byte order.
3205 Suggested by abhishekrai@google.com
3206
666aa020
UD
32072007-10-27 Ulrich Drepper <drepper@redhat.com>
3208
3209 * malloc/arena.c [!NO_THREADS]: Use ATFORK_MEM if defined.
3210
8ad343b3
UD
32112007-10-26 Ulrich Drepper <drepper@redhat.com>
3212
3213 * nscd/cache.c (prune_cache): Move test for modified file outside
3214 of locking.
3215
9251c568
AJ
32162007-10-21 Andreas Jaeger <aj@suse.de>
3217
3218 * manual/texinfo.tex: Update to latest version.
3219
3220 * manual/sysinfo.texi (System Parameters): Fix Formatting.
3221
3222 * manual/arith.texi (Status bit operations): Fix formatting.
3223
3224 * manual/errno.texi (Error Messages): Fix formatting.
3225
3226 * manual/sysinfo.texi (System Parameters): Fix formatting.
3227
3228 * manual/libc.texinfo: Update VERSION and UPDATED.
3229
260b2e06
RM
32302007-10-19 Roland McGrath <roland@redhat.com>
3231
3232 * elf/Makefile ($(objpfx)ld.so): Use $(AWK).
3233
46ae8850
JJ
32342007-10-06 David S. Miller <davem@davemloft.net>
3235
3236 * configure.in: Add sparcv9v2 and sparc64v2.
3237 * scripts/config.sub: Likewise.
3238 * configure: Regenerate.
3239 * elf/elf.h (HWCAP_SPARC_N2): New.
3240 * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Bump to 8.
3241 * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add 'v9v2'.
3242 (HWCAP_IMPORTANT): Add HWCAP_SPARC_N2.
3243 * sysdeps/sparc/sparc32/sparcv9/sparcv9v2/memcpy.S: New file.
3244 * sysdeps/sparc/sparc32/sparcv9/sparcv9v2/memset.S: New file.
3245 * sysdeps/sparc/sparc64/sparcv9v2/memcpy.S: New file.
3246 * sysdeps/sparc/sparc64/sparcv9v2/memset.S: New file.
3247
6fbfbd80
UD
32482007-10-18 Ulrich Drepper <drepper@redhat.com>
3249
3250 * sunrpc/clnt_udp.c (clntudp_call): Don't block in recvfrom call
3251 even if the poll result indicates there is data to read.
3252 Patch by Jeff Moyer <jmoyer@redhat.com>.
3253
39cfc9fa
RM
32542007-10-18 Roland McGrath <roland@redhat.com>
3255
3256 * elf/elf.h (NT_PPC_VMX): New macro.
28919a77 3257
39cfc9fa 32582007-10-17 Ulrich Drepper <drepper@redhat.com>
28919a77
UD
3259
3260 * version.h (VERSION): Set to 2.7.90.
3261
ed13ccf1
JJ
32622007-10-17 Jakub Jelinek <jakub@redhat.com>
3263
3264 * sysdeps/x86_64/memset.S (bzero): Renamed to __bzero. Add
3265 weak_alias.
3266
ee9fd869
RM
32672007-10-17 Roland McGrath <roland@frob.com>
3268
3269 * sysdeps/mach/hurd/bits/fcntl.h [__USE_GNU__] (F_DUPFD_CLOEXEC): New.
3270 * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Implement it.
3271
1aa5e4d7
UD
32722007-10-17 Ulrich Drepper <drepper@redhat.com>
3273
50c9fbbf 3274 * version.h (VERSION): Bump to 2.7.
777bc4bf 3275 * include/features.h (__GLIBC_MINOR__): Bump to 7.
50c9fbbf 3276
58423c7d
UD
3277 [BZ #5186]
3278 * time/tzset.c (__tz_convert): Don't force testing for a change of
3279 TZ if not called from localtime. But then also see whether the
3280 file changed, in case __use_tzfile is set.
3281
1aa5e4d7
UD
3282 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define F_DUPFD_CLOEXEC.
3283 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
3284 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
3285 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
3286 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
3287 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
3288 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
3289 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
3290
fc4837e5
UD
32912007-10-17 Jakub Jelinek <jakub@redhat.com>
3292
3293 * sysdeps/posix/getaddrinfo.c (getaddrinfo): When sorting addresses
3294 and admin selects to be able to replace the gai.conf file, lock
3295 data structures around the qsort call.
3296
62eaf7c8
UD
32972007-10-17 Ulrich Drepper <drepper@redhat.com>
3298
406f28db
UD
3299 * sysdeps/x86_64/cacheinfo.c: Comment out code added in support of
3300 new memset.
ac1cb5da 3301 * sysdeps/x86_64/memset.S: Revert to old version for now. The cost is
406f28db
UD
3302 too high for the improvements. Implement bzero unconditionally for
3303 use in libc.
ac1cb5da
UD
3304
33052007-10-17 Ulrich Drepper <drepper@redhat.com>
3306 Jakub Jelinek <jakub@redhat.com>
3307
62eaf7c8
UD
3308 * time/tzfile.c (__tzfile_read): Read POSIX TZ string if available
3309 even when time_t is 32-bit.
3310 (__tzfile_compute): Override POSIX TZ string STD/DST zone names if
3311 timezone data read by __tzfile_default. Ensure __tzname[0] is
3312 always set after the search.
3313
6a649d25
UD
33142007-10-16 Ulrich Drepper <drepper@redhat.com>
3315
3316 * time/tzfile.c (__tzfile_read): Help the compiler recognize
3317 unreachable code on 32-bit machines.
3318
800d6f9e
UD
33192007-10-16 Jakub Jelinek <jakub@redhat.com>
3320
3321 [BZ #5184]
3322 * time/strftime_l.c: Include stdbool.h.
3323 (my_strftime): New wrapper, old function renamed to...
3324 (__strftime_internal): ... new function. Add tzset_called
3325 argument, pass it down to recursive calls, don't call tzset ()
3326 if already true, set to true after call to tzset ().
62eaf7c8 3327
69819d92
UD
33282007-10-16 Ulrich Drepper <drepper@redhat.com>
3329
3330 * time/tzfile.c (__tzfile_read): Take extra memory requested by caller
3331 into account when copying TZ string.
3332
62eaf7c8
UD
33332007-10-16 Jakub Jelinek <jakub@redhat.com>
3334
3335 * time/tzfile.c (__tzfile_compute): For use_last case set i to
3336 num_transition rather than num_transitions - 1.
3337
0308ad66
JJ
33382007-10-16 Jakub Jelinek <jakub@redhat.com>
3339
8d137b60
JJ
3340 * sysdeps/x86_64/memset.S (memset): Fix sse2_nt_move
3341 PIC indirect jump.
3342
0308ad66
JJ
3343 * sysdeps/x86_64/memset.S: Jump from bzero to memset using
3344 a local label rather than HIDDEN_JUMPTARGET.
3345
e2b393bc
UD
33462007-10-15 Ulrich Drepper <drepper@redhat.com>
3347
3348 * sysdeps/x86_64/cacheinfo.c (__x86_64_shared_cache_size): Define.
3349 (init_cacheinfo): Initialize it.
3350 * sysdeps/x86_64/memset.S: Use __x86_64_shared_cache_size.
3351 Always define bzero.
3352 Remove non-glibc code.
3353 * sysdeps/x86_64/bzero.S: Make an empty file.
3354
33552007-10-15 H.J. Lu <hongjiu.lu@intel.com>
3356
3357 * sysdeps/x86_64/cacheinfo.c
3358 (__x86_64_preferred_memory_instruction): New.
3359 (init_cacheinfo): Initialize __x86_64_preferred_memory_instruction.
3360
3361 * sysdeps/x86_64/memset.S: Rewrite.
3362
0fbfcb7b
RM
33632007-10-15 Roland McGrath <roland@redhat.com>
3364
3365 * po/libc.pot: Regenerated.
3366
2884dad4
UD
33672007-10-15 Ulrich Drepper <drepper@redhat.com>
3368
e2b393bc 3369 * nss/getXXbyYY_r.c (REENTRANT_NAME): Mangle startp and start_fct
d96a2216
UD
3370 pointers.
3371
2884dad4
UD
3372 [BZ #3425]
3373 * resolv/nss_dns/dns-host.c (getanswer_r): Fail with
3374 NSS_STATUS_NOTFOUND if the server replied with only a CNAME and no
3375 address record to T_A/T_AAAA requests.
3376
89dc9d4c
UD
33772007-10-14 Ulrich Drepper <drepper@redhat.com>
3378
8d97ac13
UD
3379 * posix/glob.c: Reimplement link_exists_p to use fstatat64.
3380
1b6aa63f
UD
3381 * posix/glob.c: Add some branch prediction throughout.
3382
895a08c0
UD
3383 * nscd/nscd_getgr_r.c (nscd_getgr_r): Store result of successful
3384 read from nscd.
3385
6f55ed88
UD
3386 * sysdeps/posix/getaddrinfo.c (struct sort_result): Add
3387 service_order.
8d62c8ab
UD
3388 (rfc3484_sort): Make sure that even if qsort doesn't support
3389 stable sorting out sorting here is stable by comparing service_order.
6f55ed88 3390 (getaddrinfo): Initialize service_order.
a94673e6
UD
3391 * posix/tst-rfc3484.c (do_test): Adjust for addition of
3392 service_order field to sorting structure.
dfcf64ce 3393 * posix/tst-rfc3484-2.c (do_test): Likewise.
6f55ed88 3394
fa76dde2
UD
3395 * include/time.h: Declare __tzset_parse_tz and __tzset_compute.
3396 * time/tzset.c (tzset_internal): Break TZ string parsing out into
3397 __tzset_parse_tz and updating of daylight, timezone, tzname into
3398 update_vars.
3399 (__tz_compute): Renamed from tz_compute. Take additional parameters.
3400 (__tz_convert): Updating of tm_isdst, tm_zone, and tm_gmtoff now
3401 happens in __tz_compute.
3402 * time/tzfile.c (__tzfile_read): Also read TZ string.
3403 (find_transition): Fold into __tzfile_compute.
3404 (__tzfile_compute): For times beyond the last transition try to
3405 use the TZ string.
3406 * timezone/tst-timezone.c: Information in daylight and tzname does
3407 change for Asia/Tokyo timezone with more concrete information.
3408 Remove the test.
3409
3410 * include/stdio.h: Add libc_hidden_proto for ftello.
3411 * libio/ftello.c: Add libc_hidden_def.
3412
89dc9d4c
UD
3413 [BZ #1140]
3414 * time/tzfile.c (__tzfile_compute): Compute tzname[] values based
3415 on the specified time and not the last entries in the file. Move
3416 code to determine tzname[] to...
3417 (find_transition): ...here. Add ugly guess for times before the
3418 first transition.
3419
f7140274
UD
34202007-10-13 Ulrich Drepper <drepper@redhat.com>
3421
cfca0aa3
UD
3422 [BZ #3195]
3423 * nscd/nscd_getai.c (__nscd_getai): Set errno to 0 in case we found
3424 no entry.
3425 * nscd/nscd_getgr.c (nscd_getgr_r): Likewise.
3426 * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
3427 * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
3428 * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
3429
43d3e6bd
UD
3430 * nscd/nscd_getgr_r.c (nscd_getgr_r): Optimize a bit: use simpler
3431 read mechanism when there are no group members and avoid no-op
3432 read syscall in this case.
3433
f7140274
UD
3434 [BZ #3242]
3435 * nscd/nscd_helper.c (wait_on_socket): Take timeout as parameter.
3436 (__readall): If reading failed due to EAGAIN error wait a bit
3437 and possibly try again.
3438 (__readvall): Likewise.
3439
656f02ce
UD
34402007-10-13 Bruno Haible <bruno@clisp.org>
3441
3442 * intl/dcigettext.c (_nl_find_msg): Unlock the conversions_lock
3443 when we cannot recode the message.
3444
0ea49677
UD
34452007-10-13 Ulrich Drepper <drepper@redhat.com>
3446
3447 [BZ #4359]
3448 * libio/__freading.c (__freading): Don't return true for
ed36f224
UD
3449 write-only streams. For read/write streams, check whether we
3450 performed a read operation already.
7e39d802
UD
3451 * libio/Makefile (tests): Add tst-ext2.
3452 * libio/tst-ext2.c: New file.
0ea49677 3453
78a9b2dc
UD
34542007-10-12 Ulrich Drepper <drepper@redhat.com>
3455
fab1a490
UD
3456 * locale/programs/repertoire.c (repertoire_read): Always free
3457 memory for repertoire file name [Coverity CID 270].
3458
78a9b2dc
UD
3459 * elf/cache.c (save_aux_cache): Free memory allocated for
3460 temporary file name [Coverity CID 267].
3461
29d49a1a
JJ
34622007-10-12 Jakub Jelinek <jakub@redhat.com>
3463
3464 * misc/Makefile (headers): Add bits/error.h.
3465
d074d36d
UD
34662007-10-12 Ulrich Drepper <drepper@redhat.com>
3467
b7d1c5fa
UD
3468 * posix/fnmatch_loop.c: Take rule index returned as part of
3469 findidx return value into account when accessing weights.
3470 * posix/regcomp.c: Likewise.
3471 * posix/regexec.c: Likewise.
3472
d074d36d
UD
3473 * locale/programs/ld-collate.c (collate_read): Optimize a bit.
3474 (skip_to): Fix problems with parameter of elifdef/elifndef.
3475
26a51060
UD
34762007-10-11 Ulrich Drepper <drepper@redhat.com>
3477
3478 * iconv/gconv_simple.c: Add some branch prediction.
3479
6dd3748b
UD
34802007-10-12 Jakub Jelinek <jakub@redhat.com>
3481
3482 * locale/programs/ld-collate.c (collate_read): If ignore_content
3483 and nowtok is tok_define, eat any tok_eol tokens.
3484
d0b5557d
JJ
34852007-10-11 Jakub Jelinek <jakub@redhat.com>
3486
3487 * sysdeps/gnu/netinet/tcp.h: Include sys/socket.h if __USE_MISC.
3488 (struct tcp_md5sig): Change tcpm_addr type to struct sockaddr_storage.
3489
3490 * inet/netinet/in.h: Don't include bits/socket.h.
3491 * sysdeps/unix/sysv/linux/bits/socket.h: Only check _SYS_SOCKET_H
3492 macro.
3493 * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Likewise.
3494
3a054d7a
UD
34952007-10-10 Ulrich Drepper <drepper@redhat.com>
3496
3497 * locale/programs/locfile-token.h: Remove tok_elif, add tok_elifdef
3498 and tok_elifndef.
3499 * locale/programs/locfile-kw.gperf: Likewise.
3500 * locale/programs/ld-collate.c: Implement primitive preprocessor.
3501
c06b7169
UD
35022007-10-10 Jakub Jelinek <jakub@redhat.com>
3503
3504 * stdio-common/printf-parse.h: Include string.h and wchar.h.
3505 (__find_specwc): Change into __extern_always_inline function.
3506 (__find_specmb): Likewise. Remove ps argument. Use __strchrnul.
3507 (__parse_one_specmb): Remove ps argument.
3508 * stdio-common/vfprintf.c (vfprintf): Remove mbstate variable.
3509 Adjust __find_specmb and __parse_one_specmb callers.
3510 * stdio-common/printf-prs.c (parse_printf_format): Likewise.
3511 * stdio-common/printf-parsemb.c (__find_specwc, __find_specmb):
3512 Removed.
3513 (__parse_one_specmb): Remove ps argument, adjust __find_specmb
3514 caller.
3515
5a01ab7b
UD
35162007-10-09 Ulrich Drepper <drepper@redhat.com>
3517
3518 * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Work around problem
3519 with some Pentium Ds.
3520
e3f8e049
UD
35212007-10-08 Ulrich Drepper <drepper@redhat.com>
3522
3523 * sysdeps/unix/sysv/linux/eventfd_read.c (eventfd_read): Use
3524 __read not read.
3525 * sysdeps/unix/sysv/linux/eventfd_write.c (eventfd_write): Use
3526 __write not write.
3527
a1a363d2
UD
35282007-10-07 Ulrich Drepper <drepper@redhat.com>
3529
a1160714
UD
3530 [BZ #181]
3531 * locale/C-time.c: Set week_1stday data to 19971201.
659a9013
UD
3532 * locale/programs/ld-time.c (time_finish): Default for
3533 first_workday is Monday.
a1160714 3534
bb27a6eb
UD
3535 [BZ #2633]
3536 * wcsmbs/wchar.h: Move many C99 functions into std namespace.
3537
c8d48fae
UD
3538 [BZ #5103]
3539 * posix/glob.c (glob): Recognize patterns starting \/.
3540 * posix/tst-gnuglob.c (find_file): Handle absolute path names.
3541 (main): Add test for pattern starting \/.
3542
a1a363d2
UD
3543 * misc/error.h: Use __const instead of const.
3544 * misc/bits/error.h: Likewise.
3545
35462007-10-07 Andreas Jaeger <aj@suse.de>
3547
3548 * include/bits/error.h: New file.
3549
3550 * misc/bits/error.h (error_at_line): Fix prototype.
3551
71894681
UD
35522007-10-06 Ulrich Drepper <drepper@redhat.com>
3553
a6fa5328
UD
3554 [BZ #3924]
3555 * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix a few
3556 more little bugs in creating the stack frame when pltexit has to
3557 be called.
3558
8c7661bc 3559 * nscd/nscd_helper.c (__nscd_cache_search): Prevent endless loops.
50607309 3560 * nscd/connections.c (verify_persistent_db): Recognize circular lists.
8c7661bc 3561
c039eedd
UD
3562 [BZ #4407]
3563 * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Fix *signgamp for -0.0.
3564 * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
3565 * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
3566 * math/libm-test.inc: Add test for this case.
3567
71894681
UD
3568 [BZ #5010]
3569 * sunrpc/svc.c (struct svc_callout): Add sc_mapped element.
3570 (svc_register): Initialize sc_mapped. Set to TRUE if call to
3571 map service succeeded.
3572 (svc_is_mapped): New function.
3573 (svc_unregister): Use it before trying to unmap service.
3574
34c2c092
UD
35752007-10-05 Ulrich Drepper <drepper@redhat.com>
3576
d10737e4
UD
3577 * timezone/zic.c: Update from tzcode2007h.
3578
3579 [BZ #5063]
3580 * timezone/africa: Update from tzdata2007h.
3581 * timezone/antarctica: Likewise.
3582 * timezone/asia: Likewise.
3583 * timezone/australasia: Likewise.
3584 * timezone/europe: Likewise.
3585 * timezone/leapseconds: Likewise.
3586 * timezone/northamerica: Likewise.
3587 * timezone/southamerica: Likewise.
3588 * timzeone/zone.tab: Likewise.
3589
0304f168
UD
3590 [BZ #5104]
3591 * elf/do-lookup.h (do_lookup_x): Don't ignore STT_COMMON symbols.
3592
a83b5649
UD
3593 [BZ #5113]
3594 * string/bits/string2.h (__strdup): Cast parameters to calloc to
3595 avoid warning with -Wconversion.
3596 (__strndup): Likewise.
c039eedd 3597 Half the patch by Christian Iseli <christian.iseli@licr.org>.
a83b5649 3598
3e6ce4d7
UD
3599 [BZ #5112]
3600 * nscd/connections.c (restart): Don't resync if database is
3601 disabled. Patch mostly by Brian De Wolf <bldewolf@csupomona.edu>.
3602
8e351378
UD
3603 * sysdeps/gnu/netinet/tcp.h: Define TCP_MD5SIG, TCP_MD5SIG_MAXKEYLEN,
3604 struct tcp_md5sig. Extend struct tcp_info according to recent kernels.
3605
3606 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add eventfd,
3607 evetnfd_read, eventfd_write.
3608 * sysdeps/unix/sysv/linux/eventfd.c: New file.
3609 * sysdeps/unix/sysv/linux/eventfd_read.c: New file.
3610 * sysdeps/unix/sysv/linux/eventfd_write.c: New file.
3611 * sysdeps/unix/sysv/linux/sys/eventfd.h: New file.
d10737e4 3612 * sysdeps/unix/sysv/linux/Versions: Export eventfd, eventfd_read,
8e351378
UD
3613 eventfd_write for GLIBC_2.7.
3614
34c2c092
UD
3615 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add signalfd.
3616 * sysdeps/unix/sysv/linux/signalfd.c: New file.
3617 * sysdeps/unix/sysv/linux/sys/signalfd.h: New file.
3618 * sysdeps/unix/sysv/linux/Versions: Export signalfd for GLIBC_2.7.
3619
6789aaaa 36202007-10-04 Jakub Jelinek <jakub@redhat.com>
375d9429
UD
3621
3622 * stdlib/msort.c: Include stdint.h.
3623 (struct msort_param): New type.
3624 (msort_with_tmp): Use struct msort_param pointer for unchanging
3625 parameters. Add optimized handling for several common sizes
3626 and indirect sorting mode.
3627 (qsort): Adjust msort_with_tmp callers. For big S use indirect
3628 sorting.
3629 Suggested by Belazougui Djamel .
3630
3631 * stdlib/Makefile (tests): Add tst-qsort2.
3632 * stdlib/tst-qsort2.c: New test.
3633
b80bfc8b
UD
36342007-10-04 Ulrich Drepper <drepper@redhat.com>
3635
174420d2
UD
3636 * login/login_tty.c (login_tty): The Linux kernel can return EBUSY
3637 for dup2 in case another thread races with the current one. Retry
3638 in this case.
3639
b80bfc8b
UD
3640 * misc/error.h: Remove support for use outside of libc. We have to
3641 include <features.h> now. Include <bits/error.h> if possible.
3642 * misc/bits/error.h: New file.
3643
6789aaaa 36442007-10-03 Jakub Jelinek <jakub@redhat.com>
ee868c89 3645
e5dd2178
UD
3646 * string/bits/string3.h (memcpy, memmove, mempcpy, memset, bcopy,
3647 bzero, strcpy, stpcpy, strncpy, strcat, strncat): Use
3648 __extern_always_inline functions unconditionally, drop macros.
3649
ac97dec1
UD
3650 * misc/sys/cdefs.h (__REDIRECT_LDBL, __REDIRECT_NTH_LDBL): New macros.
3651 * wcsmbs/bits/wchar2.h (__swprintf_alias, __vswprintf_alias): Use
3652 __REDIRECT_NTH_LDBL macro rather than __REDIRECT_NTH.
3653
ee868c89
UD
3654 * misc/sys/cdefs.h (__extern_always_inline): For GCC 4.3+
3655 add __artificial__ attribute.
3656
80e069e0
UD
36572007-10-02 Ulrich Drepper <drepper@redhat.com>
3658
6e682cf5
UD
3659 * string/strcoll_l.c (STRCOLL): Correct handling of switching from
3660 backward to forward direction.
3661
90241a20
UD
3662 * string/strcoll_l.c (STRCOLL): Correct test for alloca use.
3663
80e069e0
UD
3664 [BZ #645]
3665 * locale/programs/ld-collate.c (collate_finish): Compare against last
3666 used section which is known to have rules defined.
3667 (collate_read): After order_start, correctly record order of sections
3668 and queue sections up.
3669
035ef8d7
UD
36702007-10-01 Ulrich Drepper <drepper@redhat.com>
3671
95bddc0c
UD
3672 [BZ #5071]
3673 * malloc/malloc.c (mremap_chunk): Avoid resizing of new block has
3674 the same number of pages.
3675 Patch by Tomash Brechko <tomash.brechko@gmail.com>.
3676
c8caf089
UD
3677 * locale/programs/ld-collate.c (collate_read): After initial copy
3678 statement, continue in state 0.
3679
035ef8d7
UD
3680 * include/stdio_ext.h (__fsetlocking): Define as macro.
3681
592a95ee
UD
36822007-09-30 Ulrich Drepper <drepper@redhat.com>
3683
56ebeb41
UD
3684 * locale/programs/ld-collate.c (collate_finish): Compare all bytes
3685 of section order.
3686
592a95ee
UD
3687 * po/pt_BR.po: Fix typo.
3688
6c522e21
UD
36892007-09-29 Ulrich Drepper <drepper@redhat.com>
3690
8ad5c3cd
UD
3691 * iconvdata/Makefile (modules): Add ISO8859-9E.
3692 (distribute): Add iso8859-9e.c.
3693 (gen-8bit-gap-modules): Add iso8859-9e.
3694 * iconvdata/iso8859-9e.c: New file.
3695 * iconvdata/gconv-modules: Add entries for ISO-8859-9E.
3696 * iconvdata/TESTS: Likewise.
3697 * iconvdata/tst-tables.sh: Likewise.
3698
3699 * iconvdata/koi8-r.c (HAS_HOLES): Define to 0.
3700
6c522e21
UD
3701 * locale/iso-639.def: Add several new entries.
3702
385b4cf4
UD
37032007-09-24 Jakub Jelinek <jakub@redhat.com>
3704
3705 * sysdeps/generic/ldsodefs.h (struct dl_scope_free_list): Store
3706 void * pointers instead of struct link_map **.
3707 (_dl_scope_free): Change argument type to void *.
3708 * include/link.h (struct link_map): Change type of l_reldeps
3709 to struct link_map_reldeps, move l_reldepsact into that
3710 struct too.
3711 * elf/dl-deps.c: Include atomic.h.
3712 (_dl_map_object_deps): Only change l->l_initfini when it is
3713 fully populated, use _dl_scope_free for freeing it. Optimize
3714 removal of libs from reldeps by using l_reserved flag, when
3715 some removal is needed, allocate a new list instead of
3716 reallocating and free the old with _dl_scope_free. Adjust
3717 for l_reldeps and l_reldepsact changes.
3718 * elf/dl-lookup.c (add_dependency): Likewise. Reorganize to allow
3719 searching in l_initfini and l_reldeps without holding dl_load_lock.
3720 * elf/dl-fini.c (_dl_sort_fini): Adjust for l_reldeps and
3721 l_reldepsact changes.
3722 * elf/dl-close.c (_dl_close_worker): Likewise.
3723 * elf/dl-open.c (_dl_scope_free): Change argument type to void *.
3724
90bf831b
UD
37252007-09-28 Ulrich Drepper <drepper@redhat.com>
3726
3727 * iconvdata/Makefile (modules): Add KOI8-RU.
3728 (distribute): Add koi8-ru.c.
3729 (gen-8bit-gap-modules): Add koi8-ru.
3730 * iconvdata/koi8-ru.c: New file.
3731 * iconvdata/gconv-modules: Add entries for KOI8-RU.
3732 * iconvdata/TESTS: Likewise.
3733 * iconvdata/tst-tables.sh: Likewise.
3734
3735 * iconvdata/koi8-r.c (HAS_HOLES): Define to 0.
3736
d6cd6bf4
UD
37372007-09-26 Jakub Jelinek <jakub@redhat.com>
3738
3739 * misc/sys/cdefs.h (__warndecl, __errordecl): For GCC 4.3+ define
3740 with __warning__/__error__ attributes.
3741 (__warnattr): Define.
3742 * stdlib/bits/stdlib.h (__realpath_chk_warn, __ptsname_r_chk_warn,
3743 __mbstowcs_chk_warn, __wcstombs_chk_warn): New aliases with
3744 __warnattr.
3745 (realpath, ptsname_r, mbstowcs, wcstombs): Call __*_chk_warn instead
3746 of __*_chk if compile time detectable overflow is found.
3747 * libio/bits/stdio2.h (__fgets_chk_warn, __fread_chk_warn,
3748 __fgets_unlocked_chk_warn, __fread_unlocked_chk_warn): New aliases
3749 with __warnattr.
3750 (fgets, fread, fgets_unlocked, fread_unlocked): Call __*_chk_warn
3751 instead of __*_chk if compile time detectable overflow is found.
3752 (__gets_alias): Rename to...
3753 (__gets_warn): ... this. Add __warnattr.
3754 (gets): Call __gets_warn instead of __gets_alias.
3755 * socket/bits/socket2.h (__recv_chk_warn, __recvfrom_chk_warn): New
3756 aliases with __warnattr.
3757 (recv, recvfrom): Call __*_chk_warn instead of __*_chk if compile
3758 time detectable overflow is found.
3759 * posix/bits/unistd.h (__read_chk_warn, __pread_chk_warn,
3760 __pread64_chk_warn, __readlink_chk_warn, __readlinkat_chk_warn,
3761 __getcwd_chk_warn, __confstr_chk_warn, __getgroups_chk_warn,
3762 __ttyname_r_chk_warn, __getlogin_r_chk_warn, __gethostname_chk_warn,
3763 __getdomainname_chk_warn): New aliases with __warnattr.
3764 (read, pread, pread64, readlink, readlinkat, getcwd, confstr,
3765 getgroups, ttyname_r, getlogin_r, gethostname, getdomainname): Call
3766 __*_chk_warn instead of __*_chk if compile time detectable overflow
3767 is found.
3768 (__getgroups_chk): Rename argument to __listlen from listlen.
3769 (__getwd_alias): Rename to...
3770 (__getwd_warn): ... this. Add __warnattr.
3771 (getwd): Call __getwd_warn instead of __getwd_alias.
3772 * wcsmbs/bits/wchar2.h (__wmemcpy_chk_warn, __wmemmove_chk_warn,
3773 __wmempcpy_chk_warn, __wmemset_chk_warn, __wcsncpy_chk_warn,
3774 __wcpncpy_chk_warn, __fgetws_chk_warn, __fgetws_unlocked_chk_warn,
3775 __mbsrtowcs_chk_warn, __wcsrtombs_chk_warn, __mbsnrtowcs_chk_warn,
3776 __wcsnrtombs_chk_warn): New aliases with __warnattr.
3777 (wmemcpy, wmemmove, wmempcpy, wmemset, mbsrtowcs, wcsrtombs,
3778 mbsnrtowcs, wcsnrtombs): Call __*_chk_warn instead of __*_chk if
3779 compile time detectable overflow is found.
3780 (wcsncpy, wcpncpy): Likewise. For constant __n fix check whether
3781 to use __*_chk or not.
3782 (fgetws, fgetws_unlocked): Divide __bos by sizeof (wchar_t), both
3783 in comparisons which function should be called and in __*_chk*
3784 arguments. Call __*_chk_warn instead of __*_chk if compile time
3785 detectable overflow is found.
3786 (swprintf, vswprintf): Divide __bos by sizeof (wchar_t) in
3787 __*_chk argument.
3788 * debug/tst-chk1.c (do_test): Add a few more tests.
3789
408cfca0
UD
37902007-09-24 Ulrich Drepper <drepper@redhat.com>
3791
3792 [BZ #5058]
3793 * intl/gettextP.h (struct loaded_domain): Add conversions_lock member.
3794 * intl/loadmsgcat.c (_nl_load_domain): Initialize conversions_lock.
3795 (_nl_unload_domain): Finalize conversions_lock.
3796 * intl/dcigettext.c (_nl_find_msg): Take conversions_lock before
3797 handling table of known conversions.
3798
e6eec9ce
JJ
37992007-09-24 Jakub Jelinek <jakub@redhat.com>
3800
3801 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Use
3802 close_not_cancel_no_status instead of close.
3803
a532a41d
UD
38042007-09-13 Aurelien Jarno <aurelien@aurel32.net>
3805
682268ef 3806 [BZ #5028]
408cfca0 3807 * posix/regcomp.c (lookup_collation_sequence_value): Check that
a532a41d
UD
3808 nrules != 0 for multibyte chars.
3809
dec9ed9e
UD
38102007-09-23 Ulrich Drepper <drepper@redhat.com>
3811
91633816
UD
3812 * resolv/ns_print.c (ns_sprintrrf): Handle ns_t_a6 and ns_t_opt.
3813 Provide better error message in case the type is unknown.
3814
9cc198f6
UD
3815 [BZ #4963]
3816 * wcsmbs/wcsnlen.c: Don't reference before checking the length.
3817 * string/stratcliff.c: Make usable to test wide char functions.
3818 * wcsmbs/wcsatcliff.c: New file.
3819 * wcsmbs/Makefiel (tests): Add wcsatcliff.
3820
27f3d446
UD
3821 [BZ #4972]
3822 * iconvdata/Makefile (modules): Add MAC-CENTRALEUROPE.
3823 (distribute): Add mac-centraleurope.c.
3824 (gen-8bit-gap-modules): Add mac-centraleurope.
3825 * iconvdata/mac-centraleurope.c: New file.
3826 * iconvdata/gconv-modules: Add entries for MAC-CENTRALEUROPE.
3827 * iconvdata/TESTS: Likewise.
3828 * iconvdata/tst-tables.sh: Likewise.
3829
dec9ed9e
UD
3830 [BZ #5043]
3831 * iconv/iconv_open.c (iconv_open): For large codeset names use malloc.
3832
0435403c
UD
38332007-09-21 Ulrich Drepper <drepper@redhat.com>
3834
3835 * sysdeps/x86_64/cacheinfo.c (__x86_64_data_cache_size_half): Renamed
3836 from __x86_64_core_cache_size_half.
3837 (init_cacheinfo): Compute shared cache size for AMD processors with
3838 shared L3 correctly.
3839 * sysdeps/x86_64/memcpy.S: Adjust for __x86_64_data_cache_size_half
3840 name change.
3841 Patch in large parts by Evandro Menezes.
3842
c3266dc0
UD
38432007-09-19 Ulrich Drepper <drepper@redhat.com>
3844
715899d1
UD
3845 * elf/dl-lookup.c (add_dependency): Handle failing memory
3846 allocation for dependency list. Remove unnecessary check.
3847
e1db0493
UD
3848 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid unnecessary
3849 open/close when determining source addresses.
3850
c3266dc0
UD
3851 * crypt/Makefile (libcrypt-routines): Add sha256-crypt, sha256,
3852 sha512-crypt, and sha512.
3853 (tests): Add sha256test, sha256c-test, sha512test, and sha512c-test.
3854 (distribute): Add sha256.h and sha512.h.
3855 * crypt/crypt-entry.c (crypt): Recognize the new $5$ and $6$ prefixes
3856 and call the appropriate code.
3857 * crypt/sha256-crypt.c: New file.
3858 * crypt/sha256.c: New file.
3859 * crypt/sha256.h: New file.
3860 * crypt/sha256c-test.c: New file.
3861 * crypt/sha256test.c: New file.
3862 * crypt/sha512-crypt.c: New file.
3863 * crypt/sha512.c: New file.
3864 * crypt/sha512.h: New file.
3865 * crypt/sha512c-test.c: New file.
3866 * crypt/sha512test.c: New file.
3867
ddf51ecb
JJ
38682007-09-19 Jakub Jelinek <jakub@redhat.com>
3869
3870 * misc/bits/syslog.h (syslog): Remove extraneous argument from
3871 the inline, pass __USE_FORTIFY_LEVEL - 1 as second argument to
3872 __syslog_chk.
3873
b90395e6
UD
38742007-09-18 Jakub Jelinek <jakub@redhat.com>
3875
76c0bea7
JJ
3876 * locale/programs/charmap-dir.c (charmap_aliases): Use %ms instead of
3877 %as in fscanf format strings.
3878
00680568
JJ
3879 * sysdeps/sparc/sparc32/elf/start.S: Remove cfi_* markup.
3880 * sysdeps/sparc/sparc64/elf/start.S: Likewise.
c3266dc0
UD
3881 * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__thread_start):
3882 Likewise.
3883 * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__thread_start):
3884 Likewise.
00680568 3885
b90395e6
UD
3886 * sysdeps/generic/ldsodefs.h (DL_LOOKUP_GSCOPE_LOCK): New definition.
3887 * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Or in
3888 DL_LOOKUP_GSCOPE_LOCK into flags after THREAD_GSCOPE_SET_FLAG ().
3889 * elf/dl-sym.c (do_sym): Likewise.
3890 * include/link.h (struct link_map): Add l_serial field.
3891 * elf/dl-object.c (_dl_new_object): Initialize l_serial.
3892 * elf/dl-lookup.c (add_dependency): Add flags argument.
3893 Remember map->l_serial, if DL_LOOKUP_GSCOPE_LOCK is among
3894 flags, use THREAD_GSCOPE_RESET_FLAG before and
3895 THREAD_GSCOPE_SET_FLAG after
3896 __rtld_lock_lock_recursive (GL(dl_load_lock)) to avoid deadlock.
3897 Don't dereference map until it has been found on some list.
3898 If map->l_serial changed, return -1.
3899
874aa523
UD
39002007-09-17 Jakub Jelinek <jakub@redhat.com>
3901
3902 * include/stdio.h (__isoc99_fscanf, __isoc99_scanf,
3903 __isoc99_sscanf, __isoc99_vscanf): New prototypes.
3904 (__isoc99_vsscanf, __isoc99_vfscanf): New prototypes, add
3905 libc_hidden_proto.
3906 * include/wchar.h (__isoc99_fwscanf, __isoc99_wscanf,
3907 __isoc99_swscanf, __isoc99_vwscanf): New prototypes.
3908 (__isoc99_vswscanf, __isoc99_vfwscanf): New prototypes,
3909 add libc_hidden_proto.
3910 * libio/stdio.h (fscanf, scanf, sscanf, vfscanf, vscanf,
3911 vsscanf): Redirect to __isoc99_* if strict ISO C99 or POSIX
3912 conformance requested.
3913 * wcsmbs/wchar.h (fwscanf, wscanf, swscanf, vfwscanf, vwscanf,
3914 vswscanf): Redirect to __isoc99_* if strict ISO C99 or POSIX
3915 conformance requested.
3916 * libio/bits/stdio-ldbl.h (fscanf, scanf, sscanf, vfscanf, vscanf,
3917 vsscanf): Redirect to __nldbl___isoc99_* if strict ISO C99 or POSIX
3918 conformance requested.
3919 * wcsmbs/bits/wchar-ldbl.h (fwscanf, wscanf, swscanf, vfwscanf,
3920 vwscanf, vswscanf): Redirect to __nldbl___isoc99_* if strict
3921 ISO C99 or POSIX conformance requested.
3922 * stdio-common/Versions (libc): Export __isoc99_scanf@@GLIBC_2.7,
3923 __isoc99_vscanf@@GLIBC_2.7, __isoc99_fscanf@@GLIBC_2.7,
3924 __isoc99_vfscanf@@GLIBC_2.7, __isoc99_sscanf@@GLIBC_2.7
3925 and __isoc99_vsscanf@@GLIBC_2.7.
3926 * stdio-common/Makefile (routines): Add isoc99_scanf, isoc99_vscanf,
3927 isoc99_fscanf, isoc99_vfscanf, isoc99_sscanf and isoc99_vsscanf.
3928 (tests): Add scanf14.
3929 (CFLAGS-vfprintf.c, CFLAGS-fprintf.c, CFLAGS-printf.c,
3930 CFLAGS-vfwprintf.c, CFLAGS-vfscanf.c, CFLAGS-vfwscanf.c,
3931 CFLAGS-fscanf.c, CFLAGS-scanf.c, CFLAGS-isoc99_vfscanf.c,
3932 CFLAGS-isoc99_vscanf.c, CFLAGS-isoc99_fscanf.c,
3933 CFLAGS-isoc99_scanf.c): Add $(exceptions).
3934 (CFLAGS-scanf15.c): Add various -I paths to prevent the compiler
3935 from using internal headers.
3936 * wcsmbs/Versions (libc): Export __isoc99_wscanf@@GLIBC_2.7,
3937 __isoc99_vwscanf@@GLIBC_2.7, __isoc99_fwscanf@@GLIBC_2.7,
3938 __isoc99_vfwscanf@@GLIBC_2.7, __isoc99_swscanf@@GLIBC_2.7
3939 and __isoc99_vswscanf@@GLIBC_2.7.
3940 * wcsmbs/Makefile (routines): Add isoc99_wscanf, isoc99_vwscanf,
3941 isoc99_fwscanf, isoc99_vfwscanf, isoc99_swscanf and isoc99_vswscanf.
3942 (CFLAGS-isoc99_wscanf.c, CFLAGS-isoc99_fwscanf.c,
3943 CFLAGS-isoc99_vwscanf.c, CFLAGS-isoc99_vfwscanf.c): Add $(exceptions).
3944 (CPPFLAGS): Add -D_IO_MTSAFE_IO if needed.
3945 * stdio-common/isoc99_scanf.c: New file.
3946 * stdio-common/isoc99_vsscanf.c: New file.
3947 * stdio-common/isoc99_vscanf.c: New file.
3948 * stdio-common/isoc99_vfscanf.c: New file.
3949 * stdio-common/isoc99_fscanf.c: New file.
3950 * stdio-common/isoc99_sscanf.c: New file.
3951 * wcsmbs/isoc99_fwscanf.c: New file.
3952 * wcsmbs/isoc99_vswscanf.c: New file.
3953 * wcsmbs/isoc99_swscanf.c: New file.
3954 * wcsmbs/isoc99_wscanf.c: New file.
3955 * wcsmbs/isoc99_vwscanf.c: New file.
3956 * wcsmbs/isoc99_vfwscanf.c: New file.
3957 * libio/libio.h (_IO_FLAGS2_SCANF_STD): Define.
3958 * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): Also
3959 clear _IO_FLAGS2_SCANF_STD bit from _flags2.
3960 * stdio-common/vfscanf.c (_IO_vfscanf_internal): Don't
3961 handle %as, %aS and %a[ if _IO_FLAGS2_SCANF_STD is set in _flags2.
3962 * stdio-common/scanf14.c: New test.
3963 * stdio-common/scanf15.c: New test.
3964 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add
3965 isoc99_scanf, isoc99_fscanf, isoc99_sscanf,
3966 isoc99_vscanf, isoc99_vfscanf, isoc99_vsscanf,
3967 isoc99_wscanf, isoc99_fwscanf, isoc99_swscanf,
3968 isoc99_vwscanf, isoc99_vfwscanf and isoc99_vswscanf.
3969 * sysdeps/ieee754/ldbl-opt/Versions (libc): Export
3970 __nldbl___isoc99_scanf@@GLIBC_2.7,
3971 __nldbl___isoc99_fscanf@@GLIBC_2.7,
3972 __nldbl___isoc99_sscanf@@GLIBC_2.7,
3973 __nldbl___isoc99_vscanf@@GLIBC_2.7,
3974 __nldbl___isoc99_vfscanf@@GLIBC_2.7,
3975 __nldbl___isoc99_vsscanf@@GLIBC_2.7,
3976 __nldbl___isoc99_wscanf@@GLIBC_2.7,
3977 __nldbl___isoc99_fwscanf@@GLIBC_2.7,
3978 __nldbl___isoc99_swscanf@@GLIBC_2.7,
3979 __nldbl___isoc99_vwscanf@@GLIBC_2.7,
3980 __nldbl___isoc99_vfwscanf@@GLIBC_2.7
3981 and __nldbl___isoc99_vswscanf@@GLIBC_2.7.
3982 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__isoc99_scanf,
3983 __isoc99_fscanf, __isoc99_sscanf, __isoc99_vscanf,
3984 __isoc99_vfscanf, __isoc99_vsscanf, __isoc99_wscanf,
3985 __isoc99_fwscanf, __isoc99_swscanf, __isoc99_vwscanf,
3986 __isoc99_vfwscanf, __isoc99_vswscanf): Add NLDBL_DECL.
3987 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
3988 (__nldbl___isoc99_scanf, __nldbl___isoc99_fscanf,
3989 __nldbl___isoc99_sscanf, __nldbl___isoc99_vscanf,
3990 __nldbl___isoc99_vfscanf, __nldbl___isoc99_vsscanf,
3991 __nldbl___isoc99_wscanf, __nldbl___isoc99_fwscanf,
3992 __nldbl___isoc99_swscanf, __nldbl___isoc99_vwscanf,
3993 __nldbl___isoc99_vfwscanf, __nldbl___isoc99_vswscanf): New
3994 functions.
3995 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vfscanf.c: New file.
3996 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_swscanf.c: New file.
3997 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vwscanf.c: New file.
3998 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_wscanf.c: New file.
3999 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_scanf.c: New file.
4000 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_sscanf.c: New file.
4001 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vsscanf.c: New file.
4002 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_fwscanf.c: New file.
4003 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vfwscanf.c: New file.
4004 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vswscanf.c: New file.
4005 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vscanf.c: New file.
4006 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_fscanf.c: New file.
4007
4008 * stdio-common/Makefile (tests): Add scanf13.
4009 (scanf13-ENV): New.
4010 * stdio-common/vfscanf.c (_IO_vfscanf_internal): Handle
4011 m modifier followed by l.
4012 (STRING_ARG): Add width argument.
4013 (_IO_vfscanf_internal) <case L_('c')>: Handle %mc.
4014 <case L_('C')>: Handle %mlc and %mC.
4015 <case L_('s'), case L_('S'), case L_('[')>: Adjust STRING_ARG
4016 arguments.
4017 * stdio-common/scanf13.c: New test.
4018
4019 * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): Clear
4020 the _IO_FLAGS2_FORTIFY bit from _flags2 rather than _flags.
4021
883f7943
UD
40222007-09-18 Ulrich Drepper <drepper@redhat.com>
4023
4024 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Correct return value
874aa523 4025 type and __THROW marker of splice, vmsplice, and tee.
883f7943
UD
4026 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
4027 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
4028 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
4029 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
4030 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
4031 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
4032 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
4033 * sysdeps/unix/sysv/linux/syscalls.list: Mark splice, vmsplice, and tee
4034 as cancellation points.
4035
3524efe0
UD
40362003-11-01 Daniel Jacobowitz <dan@debian.org>
4037
4038 * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_discover_osversion): Don't
4039 parse more than three parts of the version number.
4040
267c54dc
UD
40412007-09-15 Ulrich Drepper <drepper@redhat.com>
4042
4043 * stdio-common/vfscanf.c (_IO_vfwscanf): Add support for 'm'
4044 modifier. Patch by Jakub Jelinek.
4045
5e17d6b7
UD
40462007-08-26 Jakub Jelinek <jakub@redhat.com>
4047
4048 * sysdeps/unix/sysv/linux/i386/Makefile (sysdep_routines): Add
4049 call_fallocate in misc subdir.
4050 * sysdeps/unix/sysv/linux/i386/call_fallocate.S: New file.
4051 * sysdeps/unix/sysv/linux/i386/syscalls.list (fallocate64): Remove.
4052 * sysdeps/unix/sysv/linux/i386/posix_fallocate.c: Use __call_fallocate
4053 instead of __fallocate64.
4054 * sysdeps/unix/sysv/linux/i386/posix_fallocate64.c: Likewise.
4055
3a50811c
UD
40562007-09-15 Jakub Jelinek <jakub@redhat.com>
4057
4058 * rt/Versions (librt): Export __mq_open_2@@GLIBC_2.7.
4059 * rt/Makefile (headers): Add bits/mqueue2.h.
4060 * rt/mqueue.h: Include bits/mqueue2.h if -D_FORTIFY_SOURCE=2,
4061 optimizing with GCC and __va_arg_pack_len is defined.
4062 * rt/bits/mqueue2.h: New file.
4063 * rt/mq_open.c (__mq_open): Renamed from mq_open.
4064 (mq_open): New strong_alias.
4065 (__mq_open_2): New function.
4066 * sysdeps/unix/sysv/linux/mq_open.c (__mq_open): Renamed from mq_open.
4067 (mq_open): New strong_alias.
4068 (__mq_open_2): New function.
4069 * debug/Versions (libc): Export __fortify_fail@@GLIBC_PRIVATE.
4070 * Versions.def (librt): Add GLIBC_2.7 version.
4071 * debug/fortify_fail.c (__fortify_fail): Add libc_hidden_def.
4072 * include/stdio.h (__fortify_fail): Add libc_hidden_proto.
4073
4074 * misc/sys/cdefs.h (__errordecl, __va_arg_pack_len): Define.
4075 * io/fcntl.h: Include bits/fcntl2.h when __va_arg_pack_len
4076 is defined rather than when not C++.
4077 * io/bits/fcntl2.h (__open_alias, __open64_alias, __openat_alias,
4078 __openat64_alias): New redirects.
4079 (__open_too_many_args, __open_missing_mode, __open64_too_many_args,
4080 __open64_missing_mode, __openat_too_many_args, __openat_missing_mode,
4081 __openat64_too_many_args, __openat64_missing_mode): New __errordecls.
4082 (open, open64, openat, openat64): Rewrite as __extern_always_inline
4083 functions instead of function-like macros.
4084
9bdfff60
UD
40852007-09-14 H.J. Lu <hongjiu.lu@intel.com>
4086
4087 * sysdeps/i386/i586/memcpy.S (__memcpy_chk): New definition.
4088 * sysdeps/i386/i586/mempcpy.S (__memcpy_chk): New definition.
4089 * sysdeps/i386/i586/memset.S (__memset_chk): New definition.
4090
ab905672
UD
40912007-09-15 Mike Frysinger <vapier@gentoo.org>
4092
4093 * inet/inet_net.c: Reset digit to 0 for inputs starting with "0x".
4094 * inet/tst-network.c (tests): Add edge case tests for "0", "0x", "0x0".
4095
9bd68902
RM
40962007-09-14 Mike Frysinger <vapier@gentoo.org>
4097
4098 * inet/tst-network.c: Increment ERRORS for failing tests.
4099
de1c3ebb
UD
41002007-09-07 Jakub Jelinek <jakub@redhat.com>
4101
4102 * misc/sys/cdefs.h (__va_arg_pack): Define for GCC 4.3+.
4103 * misc/bits/syslog.h (syslog): When __va_arg_pack is defined,
4104 implement as __extern_always_inline function.
4105 (vsyslog): Define as __extern_always_inline function unconditionally.
4106 * libio/bits/stdio2.h (sprintf, snprintf, printf, fprintf):
4107 When __va_arg_pack is defined, implement as __extern_always_inline
4108 functions.
4109 (vsprintf, vsnprintf, vprintf, vfprintf): Define as
4110 __extern_always_inline functions unconditionally.
4111 * libio/bits/stdio.h (vprintf): Ifdef out the inline when
4112 bits/stdio2.h will be included.
4113 * wcsmbs/bits/wchar2.h (__swprintf_alias): New redirect.
4114 (swprintf, wprintf, fwprintf): When __va_arg_pack is defined,
4115 implement as __extern_always_inline functions.
4116 (vswprintf, vwprintf, vfwprintf): Define as
4117 __extern_always_inline functions unconditionally.
4118 * debug/tst-chk1.c (do_test): Enable remaining tests for C++.
4119
41202007-09-03 Jakub Jelinek <jakub@redhat.com>
4121
4122 * misc/sys/cdefs.h (__extern_inline, __extern_always_inline): Only
4123 define in C++ for GCC 4.3+, in C++ always use __gnu_inline__
4124 attribute.
4125 * include/features.h (__USE_EXTERN_INLINES): Define only when
4126 __extern_inline is defined.
4127 * stdlib/stdlib.h: Include bits/stdlib.h when __extern_always_inline
4128 is defined instead of when not __cplusplus.
4129 * misc/sys/syslog.h: Include bits/syslog.h when __extern_always_inline
4130 is defined instead of when not __cplusplus.
4131 * socket/sys/socket.h: Include bits/socket2.h when
4132 __extern_always_inline is defined instead of when not __cplusplus.
4133 * libio/stdio.h: Include bits/stdio2.h when __extern_always_inline
4134 is defined instead of when not __cplusplus.
4135 * posix/unistd.h: Include bits/unistd.h when __extern_always_inline
4136 is defined instead of when not __cplusplus.
4137 * string/string.h: Include bits/string3.h when __extern_always_inline
4138 is defined instead of when not __cplusplus.
4139 * wcsmbs/wchar.h: Include bits/wchar2.h when __extern_always_inline
4140 is defined instead of when not __cplusplus.
4141 (btowc, wctob): Don't guard the inlines with ifndef __cplusplus.
4142 * io/fcntl.h: Don't include bits/fcntl2.h if __extern_always_inline
4143 is not defined.
4144 * misc/bits/syslog-ldbl.h: Guard *_chk stuff with
4145 defined __extern_always_inline instead of !defined __cplusplus.
4146 * libio/bits/stdio-ldbl.h: Likewise.
4147 * wcsmbs/bits/wchar-ldbl.h: Likewise.
4148 * misc/bits/syslog.h (syslog): Don't define for C++.
4149 (vsyslog): Use __extern_always_inline function for C++ instead of
4150 a macro.
4151 * libio/bits/stdio.h (__STDIO_INLINE): Define to __extern_inline
4152 whenever that macro is defined.
4153 (vprintf): Don't provide the inline for C++.
4154 (fread_unlocked, fwrite_unlocked): Don't define the macros for C++.
4155 * libio/bits/stdio2.h (sprintf, snprintf, printf, fprintf): Don't
4156 define the macros for C++.
4157 (vsprintf, vsnprintf, vprintf, vfprintf): Define as
4158 __extern_always_inline functions for C++.
4159 * io/sys/stat.h (stat, lstat, fstat, fstatat, mknod, mknodat,
4160 stat64, lstat64, fstat64, fstatat64): Don't define if not
4161 __USE_EXTERN_INLINES.
4162 * wcsmbs/bits/wchar2.h: Fix #error message.
4163 (swprintf, wprintf, fwprintf): Don't define the macros for C++.
4164 (vswprintf, vwprintf, vfwprintf): Define using
4165 __extern_always_inline functions for C++.
4166 * string/bits/string3.h: Don't #undef macros if __cplusplus.
4167 (memcpy, memmove, mempcpy, memset, bcopy, bzero, strcpy, stpcpy,
4168 strncpy, strcat, strncat): Define as __extern_always_inline
4169 functions instead of macros for C++.
4170 * math/bits/cmathcalls.h: Guard __extern_inline routines with
4171 defined __extern_inline.
4172 * sysdeps/alpha/fpu/bits/mathinline.h (__MATH_INLINE): Define
4173 to __extern_inline whenever that macro is defined.
4174 * sysdeps/ia64/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
4175 * sysdeps/i386/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
4176 * sysdeps/i386/i486/bits/string.h (__STRING_INLINE): Likewise.
4177 * sysdeps/s390/bits/string.h (__STRING_INLINE): Likewise.
4178 * sysdeps/s390/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
4179 * sysdeps/powerpc/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
4180 * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
4181 * sysdeps/sparc/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
4182 * sysdeps/unix/sysv/linux/sys/sysmacros.h (gnu_dev_major,
4183 gnu_dev_minor, gnu_dev_makedev): Remove __extern_inline from
4184 prototypes. Only provide __extern_inline routines if
4185 __USE_EXTERN_INLINES.
4186 * debug/Makefile: Add rules to build and run tst-{,lfs}chk{4,5,6}
4187 tests.
4188 * debug/tst-chk1.c (do_prepare, do_test): Allow compilation as C++.
4189 For now avoid some *printf tests in C++. Skip all testing
4190 if __USE_FORTIFY_LEVEL is defined, but __extern_always_inline macro
4191 is not.
4192 * debug/tst-chk4.cc: New file.
4193 * debug/tst-chk5.cc: New file.
4194 * debug/tst-chk6.cc: New file.
4195 * debug/tst-lfschk4.cc: New file.
4196 * debug/tst-lfschk5.cc: New file.
4197 * debug/tst-lfschk6.cc: New file.
4198 * include/wchar.h (__vfwprintf_chk, __vswprintf_chk): Avoid
4199 prototypes in C++.
4200 * include/stdio.h (__sprintf_chk, __snprintf_chk, __vsprintf_chk,
4201 __vsnprintf_chk, __printf_chk, __fprintf_chk, __vprintf_chk,
4202 __vfprintf_chk, __fgets_unlocked_chk, __fgets_chk): Likewise.
4203
b53eef9c
UD
42042007-09-13 Ulrich Drepper <drepper@redhat.com>
4205
4206 * po/cs.po: Update from translation team.
4207
af385590
RM
42082007-09-11 Roland McGrath <roland@redhat.com>
4209
4210 * posix/Makefile ($(objpfx)getconf.speclist): Make it empty if cross
4211 compiling.
4212
af2f25a1
RM
42132007-09-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
4214
4215 * sysdeps/mach/hurd/bits/ioctls.h (TAB3): New macro.
4216
94733ae0
RM
42172007-09-05 Roland McGrath <roland@redhat.com>
4218
4219 * manual/signal.texi (Signaling Another Process): Typo fix.
4220 From Karl Berry <karl@freefriends.org>.
4221
de4d8563
UD
42222007-08-29 Ulrich Drepper <drepper@redhat.com>
4223
4224 * sysdeps/unix/sysv/linux/check_pf.c (IFA_F_OPTIMISTIC): Define to
4225 zero if not defined.
4226 (make_request): Recognize optimistic addresses and treat them like
4227 deprecated addresses.
4228 Reported by Neil Horman <nhorman@redhat.com>.
4229
0adfcc05
UD
42302007-08-28 Ulrich Drepper <drepper@redhat.com>
4231
f3c54060
UD
4232 * nscd/connections.c (send_ro_fd): Also transfer file size.
4233 * nscd/nscd_helper.c (get_mapping): If nscd also transfers the
4234 file size don't call fstat.
4235
0adfcc05
UD
4236 * nscd/nscd_helper.c (get_mapping): Avoid the pread call, just go
4237 ahead and map the file. This should always be correct and we can
4238 catch problems later.
4239
3586b2b6
UD
42402007-08-28 Jakub Jelinek <jakub@redhat.com>
4241
4242 * libio/bits/stdio2.h (__fread_chk, __fread_unlocked_chk): New
4243 prototypes.
4244 (__fread_alias, __fread_unlocked_alias): New aliases.
4245 (fread): New extern inline.
4246 (fread_unlocked): Likewise. Undef macro before definition of
4247 the inline function.
4248 * debug/Makefile (routines): Add fread_chk and fread_u_chk.
4249 (CFLAGS-fread_chk.c, CFLAGS-fread_u_chk.c): Add.
4250 * debug/Versions (libc): Export __fread_chk@@GLIBC_2.7
4251 and __fread_unlocked_chk@@GLIBC_2.7.
4252 * debug/fread_chk.c: New file.
4253 * debug/fread_u_chk.c: New file.
4254 * debug/tst-chk1.c (do_test): Add fread and fread_unlocked tests.
4255
3704aa0b
RM
42562007-08-27 Jakub Jelinek <jakub@redhat.com>
4257
4258 * sysdeps/unix/sysv/linux/syscalls.list
4259 (personality): Change caller to EXTRA.
4260
80e7d6a6
UD
42612007-08-25 Ulrich Drepper <drepper@redhat.com>
4262
278bfa00
UD
4263 * iconvdata/iso-2022-kr.c (BODY): Fake initialization of array buf
4264 to keep gcc quiet.
4265 * iconvdata/iso-2022-cn.c (BODY): Likewise.
4266
a45d733c
UD
4267 * locale/programs/ld-collate.c (collate_output): Avoid warning if
4268 NDEBUG is defined.
4269
5dfeae0e
UD
4270 * Makerules: Use -p option with mkdir.
4271
8f1fe057
UD
4272 * sunrpc/key_prot.c (xdr_unixcred): Work around gcc alias warning.
4273 * nis/nis_xdr.c (_xdr_nis_server): Likewise.
bd0dcd28
UD
4274 (_xdr_directory_obj): Likewise.
4275 (xdr_entry_obj): Likewise.
4276 (xdr_group_obj): Likewise.
4277 (xdr_link_obj): Likewise.
4278 (xdr_table_obj): Likewise.
4279 (_xdr_nis_result): Likewise.
4280 (_xdr_ns_request): Likewise.
4281 (_xdr_ib_request): Likewise.
4282 (_xdr_nis_taglist): Likewise.
4283 (xdr_cback_data): Likewise.
8f1fe057 4284 * nis/yp_xdr.c (xdr_ypmaplist): Likewise.
bd0dcd28
UD
4285 (xdr_ypresp_maplist): Likewise.
4286
01339a67
UD
4287 * stdio-common/Makefile: Avoid format string warning for tst-sprint.
4288
3fa10468
UD
4289 * posix/regex_internal.h: Prevent some declarations and definitions
4290 to be seen when used in tests.
4291
ec1e04de
UD
4292 * posix/tst-rfc3484.c (__idna_to_unicode_lzlz): Initialize *OUTPUT.
4293 * posix/tst-rfc3484-2.c (__idna_to_unicode_lzlz): Likewise.
4294
7a344d1d
UD
4295 * debug/Makefile: Disable format checking when compiling tst-chk?.c.
4296
f8f6ff5d
UD
4297 * config.make.in (datarootdir): Add to shut up configure.
4298
76fca9f1
UD
4299 * sysdeps/x86_64/cacheinfo.c (handle_amd): Fix computation of
4300 associativity for fully-associative caches.
4301
80e7d6a6
UD
4302 * sysdeps/x86_64/cacheinfo.c (handle_amd): Handle L3 cache
4303 requests. Fill on more associativity values for L2.
4304 Patch mostly by Evandro Menezes.
4305
cb5ba304
UD
43062007-08-24 Ulrich Drepper <drepper@redhat.com>
4307
d250df8c
UD
4308 * sysdeps/unix/sysv/linux/x86_64/init-first.c
4309 (_libc_vdso_platform_setup): Avoid using exported variable by using
4310 alias.
4311
88f61aaf
UD
4312 * resolv/arpa/nameser.h (NS_OPT_DNSSEC_OK): Define.
4313
cb5ba304 4314 * sysdeps/unix/sysv/linux/i386/syscalls.list: No reason to mark
cb104bd7 4315 fallocate64 as EXTRA. It is not referenced if the symbol isn't
cb5ba304
UD
4316 defined.
4317
62e1b1f5
UD
43182007-08-23 Ulrich Drepper <drepper@redhat.com>
4319
44b2e581
UD
4320 * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Correctly
4321 align stack for call if pltexit is to be used.
4322
73e3ff07
UD
4323 [BZ #3924]
4324 * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Correctly
4325 align for function call in case pltexit has to be called later.
4326
62e1b1f5
UD
4327 * sysdeps/i386/dl-trampoline.S (_dl_runtime_resolve): Avoid
4328 implicit atomic operation when storing function pointer.
4329 (_dl_runtime_profile): Likewise.
4330
0008163a
UD
43312007-08-17 Jakub Jelinek <jakub@redhat.com>
4332
4333 * nis/nis_table.c (nis_list): Don't fail if __follow_path returned
4334 NIS_NOTFOUND.
4335
55ea8790
UD
43362007-08-21 Ulrich Drepper <drepper@redhat.com>
4337
2e0e1a05
UD
4338 [BZ #4566]
4339 * string/strtok.c: Fix typo in comment.
4340
682e4437
UD
4341 [BZ #4582]
4342 * debug/segfault.c: Fix typos in comments.
4343
7d55c9eb
UD
4344 [BZ #4588]
4345 * stdio-common/tempnam.c: Fix comment, it is not checked that
4346 TMPDIR points to a writable directory.
4347
0f8f993c
UD
4348 [BZ #4726]
4349 * resolv/res_send.c (__libc_res_nsend): Initialize all of the
4350 memory allocated for the name server address.
4351
1465dd0f
UD
4352 [BZ #4946]
4353 * nscd/connections.c (handle_request): Using sendfile always
4354 requires that mmap is used for the database.
4355 Patch by Petr Baudis <pasky@suse.cz>.
4356
c44d3bdf
UD
4357 [BZ #4905]
4358 * nscd/hstcache.c (cache_addhst): When reloading an entry which
4359 suddenly has two or more addresses, ignore it and remove the old
4360 entry.
4361
1ce7d80d
UD
4362 [BZ #4814]
4363 * resolv/res_hconf.c: Prepare for compiling outside libc.
4364 * nscd/res_hconf.c: New file.
4365 * nscd/Makefile (nscd-modules): Add res_hconf. Add rules to build
4366 the new file.
4367 * nscd/gethstbynm2_r.c (NEED__RES_HCONF): Define.
4368 * nscd/gethstbyad_r.c (NEED__RES_HCONF): Likewise.
4369
a30d41c1
UD
4370 * nscd/hstcache.c (cache_addhst): Minimal optimization.
4371
45dc3ad7
UD
4372 [BZ #4925]
4373 * debug/pcprofiledump.c: Turn on internationalization by calling
4374 setlocale. Patch mostly by Benno Schulenberg.
4375
55ea8790
UD
4376 [BZ #4936]
4377 * iconv/gconv.c (__gconv): If flush was successful, clear rest of
4378 the state.
4379 * iconvdata/Makefile: Add rules to build and run bug-iconv5.
4380 * iconvdata/bug-iconv5.c: New file.
4381
0b82ff74
UD
43822007-08-04 Carlos O'Donell <carlos@systemhalted.org>
4383
55ea8790 4384 [BZ #4896]
0b82ff74
UD
4385 * elf/elf.h: Define R_PARISC_PLABEL21L, R_PARISC_PLABEL14R,
4386 R_PARISC_GNU_VTENTRY, R_PARISC_GNU_VTINHERIT, R_PARISC_TLS_GD21L,
4387 R_PARISC_TLS_GD14R, R_PARISC_TLS_GDCALL, R_PARISC_TLS_LDM21L,
4388 R_PARISC_TLS_LDM14R, R_PARISC_TLS_LDMCALL, R_PARISC_TLS_LDO21L,
4389 R_PARISC_TLS_LDO14R, R_PARISC_TLS_DTPMOD32, R_PARISC_TLS_DTPMOD64,
4390 R_PARISC_TLS_DTPOFF32, R_PARISC_TLS_DTPOFF64, R_PARISC_TLS_LE21L,
4391 R_PARISC_TLS_LE14R, R_PARISC_TLS_IE21L, R_PARISC_TLS_IE14R,
4392 R_PARISC_TLS_TPREL32, R_PARISC_TLS_TPREL64.
4393
ee16a55a
UD
43942007-08-21 Ulrich Drepper <drepper@redhat.com>
4395
4396 [BZ #4937]
4397 * elf/do-lookup.h (do_lookup_x): Minimal improvement in hash
4398 lookup loop. Suggested by John Reiser.
4399
b211fe0f
JJ
44002007-08-21 Jakub Jelinek <jakub@redhat.com>
4401
4402 * sysdeps/unix/sysv/linux/alpha/sysdep.h: Include tls.h.
4403
fb84593c
UD
44042007-08-20 Ulrich Drepper <drepper@redhat.com>
4405
4406 * csu/libc-start.c: Don't handle VDSO_SETUP here.
4407 * sysdeps/unix/sysv/linux/init-first.c: Handle it here instead.
4408 * sysdeps/unix/sysv/linux/x86_64/libc-start.c: Renamed to...
4409 * sysdeps/unix/sysv/linux/x86_64/init-first.c: ...this. New file.
4410 * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Move VDSO_SETUP code
4411 to...
4412 * sysdeps/unix/sysv/linux/x86_64/init-first.c: ...here. New file.
4413
b83fb35c
UD
44142007-08-18 Ulrich Drepper <drepper@redhat.com>
4415
4416 * po/nl.po: Update from translation team.
4417
20806a70
AJ
44182007-08-16 Andreas Jaeger <aj@suse.de>
4419
4420 * locale/localeinfo.h: Make _nl_category_name_idxs extern.
4421 Reported by Peter Festner <peter.festner@ewetel.net>.
4422
42282d57
JJ
44232007-08-17 Jakub Jelinek <jakub@redhat.com>
4424
4425 * login/tst-grantpt.c (test_einval): Add 3rd argument to open.
4426
8a501135
JJ
44272007-08-16 Jakub Jelinek <jakub@redhat.com>
4428
cb84d1e4
JJ
4429 * elf/Makefile ($(objpfx)ld.so): Use readelf -s and awk instead of nm -u
4430 to check for undefined symbols.
4431
91ddd9c4
JJ
4432 * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone):
4433 If the syscall fails, set errno to the actual returned error number
4434 rather than EINVAL.
4435 * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__clone): If
4436 arguments are incorrect, set errno to EINVAL, if the syscall
4437 fails, set errno to the actual returned error number.
4438
18915760
JJ
4439 * stdlib/bits/stdlib-ldbl.h (__strtold_internal): Remove.
4440 * wcsmbs/bits/wchar-ldbl.h (__wcstold_internal): Remove.
4441
8a501135
JJ
4442 * sysdeps/sparc/sparc32/sparcv9b/memcpy.S: Moved to...
4443 * sysdeps/sparc/sparc32/sparcv9/sparcv9b/memcpy.S: ... here. New
4444 file.
4445 (ASI_PNF, ASI_BLK_P): Don't define.
4446 * sysdeps/sparc/sparc32/sparcv9v/memcpy.S: Moved to...
4447 * sysdeps/sparc/sparc32/sparcv9/sparcv9v/memcpy.S: ... here. New
4448 file.
4449 * sysdeps/sparc/sparc32/sparcv9v/memset.S: Moved to...
4450 * sysdeps/sparc/sparc32/sparcv9/sparcv9v/memset.S: ... here. New
4451 file.
4452
e4720b0e
JJ
44532007-08-15 Jakub Jelinek <jakub@redhat.com>
4454
4455 * sysdeps/sparc/fpu/fraiseexcpt.c (__feraiseexcept): Fix raising
4456 FE_UNDERFLOW on Niagara CPUs.
4457
4458 * sysdeps/sparc/fpu/feholdexcpt.c (feholdexcept): Clear all
4459 exceptions.
4460
702a9414
JJ
44612007-08-14 Jakub Jelinek <jakub@redhat.com>
4462
467d1345
JJ
4463 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_runtime_setup): No
4464 need to check GLRO(dl_hwcap) & HWCAP_SPARC_FLUSH on sparcv9.
4465 (sparc_fixup_plt): Add do_flush argument instead of figuring whether
4466 flush should be used or not inside of the function.
4467 (elf_machine_fixup_plt, elf_machine_rela): Adjust caller.
4468
4469 * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone,
4470 __thread_start): Use HIDDEN_JUMPTARGET.
4471 * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__clone,
4472 __thread_start): Likewise.
4473 * sysdeps/unix/sysv/linux/sparc/sysdep.h (JUMPTARGET): Define.
4474
702a9414
JJ
4475 * sysdeps/ieee754/ldbl-64-128/strtold_l.c (__STRTOF): Declare.
4476 Add libc_hidden_proto.
4477 (STRTOF): Add libc_hidden_proto.
4478 (___new_strtold_l, ___new_wcstold_l): New weak aliases.
4479 (strtold_l, wcstold_l): Use them as second argument for
4480 long_double_symbol.
4481
c6c8f0ec
UD
44822007-08-14 Ulrich Drepper <drepper@redhat.com>
4483
4484 * elf/dl-misc.c: Undo last change. The kernel won't allow it.
4485
5e88abf9
UD
44862007-08-13 Kaz Kojima <kkojima@rr.iij4u.or.jp>
4487
4488 * stdlib/strtold_l.c: Include wchar.h if needed. Add libc_hidden_def.
4489
fc4819b0
UD
44902007-08-14 Ulrich Drepper <drepper@redhat.com>
4491
4492 * po/bg.po: New file. From the translation team.
4493
22502ea2
UD
44942007-08-13 Jakub Jelinek <jakub@redhat.com>
4495
4496 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PSELECT,
4497 __ASSUME_PPOLL, __ASSUME_ATFCTS, __ASSUME_SET_ROBUST_LIST,
4498 __ASSUME_UTIMENSAT, __ASSUME_FALLOCATE): Update per-arch conditions
4499 when each feature was introduced.
4500
4501 * sysdeps/unix/sysv/linux/dl-vdso.c: Don't include dl-hash.h.
4502 * sysdeps/unix/sysv/linux/dl-vdso.h: Don't include dl-hash.h if NDEBUG.
4503 (CHECK_HASH): New macro.
4504 (PREPARE_VERSION): Use it.
4505
4506 * sysdeps/unix/sysv/linux/pselect.c (__generic_pselect): Only provide
4507 prototype if not __ASSUME_PSELECT.
4508 * sysdeps/unix/sysv/linux/ppoll.c (__generic_ppoll): Only provide
4509 prototype if not __ASSUME_PPOLL.
4510
4511 * sysdeps/unix/sysv/linux/dl-osinfo.h (ROUND): #undef after use.
4512
4513 * sysdeps/unix/clock_settime.c (freq, __pthread_clock_settime,
4514 hp_timing_settime): Don't define or declare if HANDLED_CPUTIME
4515 is defined.
4516
9c6f6953
UD
45172007-08-13 Ulrich Drepper <drepper@redhat.com>
4518
4519 * sysdeps/unix/sysv/linux/x86_64/libc-start.c
4520 (_libc_vdso_platform_setup): If vDSO is not available point
4521 __vdso_gettimeofday to the vsyscall.
4522 * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S [SHARED]: Use
4523 __vdso_gettimeofday instead of vsyscall.
4524
f8de5057
UD
45252007-08-13 Jakub Jelinek <jakub@redhat.com>
4526
4527 * nscd/servicescache.c: Include kernel-features.h.
4528 * nscd/gai.c: Likewise.
4529 * sysdeps/unix/sysv/linux/statfs64.c: Likewise.
4530 * sysdeps/unix/sysv/linux/fstatfs64.c: Likewise.
4531 * sysdeps/unix/sysv/linux/fxstatat.c: Likewise.
4532 * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S: Likewise.
4533 * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S: Likewise.
4534 * sysdeps/unix/sysv/linux/xstatconv.c: Likewise.
4535 * sysdeps/unix/sysv/linux/if_index.c: Likewise.
4536 * sysdeps/unix/sysv/linux/sparc/sparc64/xstat.c: Likewise.
4537 * sysdeps/unix/sysv/linux/ifaddrs.c: Likewise.
4538
3c87d79d
UD
45392007-08-12 Ulrich Drepper <drepper@redhat.com>
4540
ea37207a
UD
4541 * elf/dl-dst.h: No need for _dl_dst_count, _dl_dst_substitute,
4542 and _dl_get_origin defines anymore.
4543
4eb375fe
UD
4544 * sysdeps/unix/sysv/linux/clock_gettime.c (maybe_syscall_gettime_cpu):
4545 Build fix for systems which might lack POSIX timer support.
4546
3c87d79d
UD
4547 * sysdeps/unix/sysv/linux/x86_64/libc-start.c
4548 (_libc_vdso_platform_setup): Mangle function pointers before storing
4549 them.
4550 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_VSYSCALL):
4551 Demangle vdso pointer before use.
4552 (INTERNAL_VSYSCALL): Likewise.
4553
4554 * elf/cache.c (primes): Mark as const.
4555 Noted by Roland McGrath.
4556
27d9ffda
UD
45572007-08-01 Andreas Jaeger <aj@suse.de>
4558 Jakub Jelinek <jakub@redhat.com>
4559
4560 * elf/ldconfig.c (opt_ignore_aux_cache): Add new option.
4561 (options): Add option.
4562 (parse_opt): Handle option.
4563 (manual_link): Adjust process_file caller. Call implicit_soname.
4564 (search_dir): Formatting. Use and populate auxiliary cache.
4565 (main): Load and save auxiliary cache.
4566 * elf/readlib.c (process_file): Add stat_buf argument. Pass struct
4567 stat64 from fstat64 to caller.
4568 (implicit_soname): New function.
4569 * elf/readelflib.c (process_elf_file): If DT_SONAME is not present,
4570 leave *soname as NULL.
4571 * elf/cache.c: Include libgen.h.
4572 (print_entry, print_cache, compare, save_cache, add_to_cache):
4573 Formatting and cleanups.
4574 (aux_cache_entry_id, aux_cache_entry, aux_cache_file_entry,
4575 aux_cache_file): New structures.
4576 (AUX_CACHEMAGIC): Define.
4577 (primes): New array.
4578 (aux_hash_size, aux_hash): New variables.
4579 (aux_cache_entry_id_hash, nextprime, init_aux_cache,
4580 search_aux_cache, insert_to_aux_cache, add_to_aux_cache,
4581 load_aux_cache, save_aux_cache): New functions.
4582 * sysdeps/generic/ldconfig.h (_PATH_LDCONFIG_AUX_CACHE): Define.
4583 (init_aux_cache, search_aux_cache, add_to_aux_cache,
4584 load_aux_cache, save_aux_cache, implicit_soname): New prototypes.
4585 (process_file): Adjust prototype.
4586
8d944b0f
UD
45872007-08-12 Jakub Jelinek <jakub@redhat.com>
4588
4589 * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h: Include stddef.h
4590 with __need_size_t.
4591
75fb247e
UD
45922007-08-12 Ulrich Drepper <drepper@redhat.com>
4593
fb86328a
UD
4594 * sysdeps/unix/sysv/linux/dl-vdso.c (_dl_vdso_vsym): Expect
4595 r_found_version structure as second parameter.
4596 * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION): Define.
4597 (_dl_vdso_vsym): Change type of second parameter accordingly.
4598 * sysdeps/unix/sysv/linux/x86-64/libc-start.c
4599 (_libc_vdso_platform_setup): Adjust.
974a1f0f 4600 * sysdeps/unix/sysv/linux/powerpc/libc-start.c
fb86328a
UD
4601 (_libc_vdso_platform_setup): Likewise.
4602
75fb247e
UD
4603 * sysdeps/unix/sysv/linux/powerpc/dl-vdso.c: Move to...
4604 * sysdeps/unix/sysv/linux/dl-vdso.c: ...here.
4605 * sysdeps/unix/sysv/linux/powerpc/dl-vdso.h: Move to...
4606 * sysdeps/unix/sysv/linux/dl-vdso.h: ...here.
4607 * csu/libc-start.c: Pretty printing.
4608 Use VDSO_SETUP if defined.
4609 * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Define VDSO_SETUP
4610 and let generic code call into _libc_vdso_platform_setup.
4611 * sysdeps/unix/sysv/linux/x86_64/libc-start.c: New file.
4612 * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: New file.
4613 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Pretty printing.
4614 Define INLINE_VSYSCALL and INTERNAL_VSYSCALL.
4615 * sysdeps/unix/sysv/linux/x86_64/Versions: Export __vdso_clock_gettime
4616 for GLIBC_PRIVATE.
4617 * sysdeps/unix/sysv/linux/x86_64/Makefile [subdir=elf]
4618 (sysdep_rountines): Add dl-vdso.
4619
4620 * sysdeps/unix/sysv/linux/powerpc/Makefile: Use sysdep_routines instead
4621 of routines.
4622
4623 * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Add
4624 attribute_hidden to __vdso_gettimeofday prototype.
4625
9229b83e
RM
46262007-08-12 Roland McGrath <roland@redhat.com>
4627
4628 * manual/stdio.texi (Variable Arguments Output): Fix xref to gcc manual.
4629 From: Karl Berry <karl@freefriends.org>.
4630
4503061f
UD
46312007-08-11 Ulrich Drepper <drepper@redhat.com>
4632
4633 * elf/dl-misc.c (_dl_sysdep_read_whole_file): We really don't need
4634 an atime update for the files we read.
4635
d7e23b02
UD
46362007-08-10 Ulrich Drepper <drepper@redhat.com>
4637
7cf89e95
UD
4638 * shadow/lckpwdf.c (__lckpwdf): Use O_CLOEXEC if possible.
4639
9d169bb3 4640 * nscd/connections.c: Use O_CLOEXEC if possible. Use mkostemp
d7e23b02
UD
4641 instead of mkstemp.
4642
4643 * misc/Makefile (routines): Add mkostemp and mkostemp64.
4644 * misc/Versions: Export mkostemp and mkostemp64 for GLIBC_2.7.
4645 * misc/mkostemp.c: New file.
4646 * misc/mkostemp64.c: New file.
4647 * stdlib/stdlib.h: Declare the new functions.
4648 * sysdeps/posix/tempname.c: Add new parameter which is added to
4649 the flags for open. Remove __GT_BIGFILE handling.
4650 * stdio-common/tempname.c: Likewise.
4651 * include/stdio.h: Adjust __gen_tempname prototype.
4652 Renumber __GT_* constants.
4653 * libio/oldtmpfile.c: Adjust for __gen_tempname interface change.
4654 * misc/mkdtemp.c: Likewise.
4655 * misc/mkstemp.c: Likewise.
4656 * misc/mkstemp64.c: Likewise.
4657 * misc/mktemp.c: Likewise.
4658 * stdio-common/tempnam.c: Likewise.
4659 * stdio-common/tmpfile.c: Likewise.
4660 * stdio-common/tmpfile64.c: Likewise.
4661 * stdio-common/tmpnam.c: Likewise.
4662 * stdio-common/tmpnam_r.c: Likewise.
4663
22532966
RM
46642007-08-10 Roland McGrath <roland@frob.com>
4665
4666 * sysdeps/mach/hurd/bits/ioctls.h (NLDLY, TABDLY, BSDLY, VTDLY):
4667 New macros.
4668 (NLDELAY, CRDELAY, TBDELAY, BSDELAY, VTDELAY): Define to those.
4669 Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
4670
673876e6
UD
46712007-08-10 Ulrich Drepper <drepper@redhat.com>
4672
aa132749
UD
4673 * nss/nss_files/files-XXX.c (internal_setent): Use O_CLOEXEC if
4674 possible.
4675 * nss/nss_files/files-alias.c (internal_setent): Likewise.
4676 * nss/Makefile (libnss_files-routines): Add files-have_o_cloexec.
4677 * nss/nss_files/files-have_o_cloexec.c: New file.
4678
22532966 4679 * sysdeps/unix/sysv/linux/shm_open.c (shm_open): Use O_CLOEXEC if
673876e6
UD
4680 available.
4681
1e286653
JJ
46822007-08-10 Jakub Jelinek <jakub@redhat.com>
4683
4684 * sysdeps/ieee754/ldbl-128ibm/strtold_l.c (___new_strtold_l,
4685 ___new_wcstold_l): New weak aliases.
4686 (strtold_l, wcstold_l): Use them as second argument for
4687 long_double_symbol.
4688
f07f72f3
UD
46892007-08-09 Ulrich Drepper <drepper@redhat.com>
4690
6479496a
UD
4691 * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Use correct
4692 register in test for error.
4693
c4adefbd
UD
4694 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_CLOEXEC): Define.
4695 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (O_CLOEXEC): Likewise.
4696
f07f72f3
UD
4697 * po/sv.po: Update from translation team.
4698
eef38c28
RM
46992007-08-06 Roland McGrath <roland@redhat.com>
4700
773e305e
RM
4701 * include/stdlib.h: Add libc_hidden_proto for strto*, __strto*_l.
4702 Remove __strto*_l inlines.
4703 * include/wchar.h: Add libc_hidden_proto for wcsto*, __wcsto*_l.
4704 * stdlib/strtod.c: Add libc_hidden_def.
4705 * stdlib/strtod_l.c: Likewise.
4706 * stdlib/strtold.c [__LONG_DOUBLE_MATH_OPTIONAL]: Add libc_hidden_proto
4707 for __new_strtold and __new_wcstold.
4708 * sysdeps/ieee754/ldbl-128ibm/strtold_l.c: Add libc_hidden_proto for
4709 __STRTOF, STRTOF.
4710 * stdlib/strtol.c: Add libc_hidden_def.
4711 * stdlib/strtol_l.c: Likewise.
4712 * sysdeps/wordsize-64/strtol.c: Add libc_hidden_ver for strtoll and
4713 strtoq.
4714
4715 * scripts/data/localplt-powerpc-linux-gnu.data: New file.
4716
4717 * scripts/data/localplt-x86_64-linux-gnu.data: File renamed to ...
4718 * scripts/data/localplt-generic.data: ... here.
4719 * elf/Makefile (check-data): Get generic file if no other.
4720 ($(objpfx)check-localplt.out): Make target unconditional.
4721
eef38c28
RM
4722 * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_discover_osversion):
4723 Use ElfW(Nhdr).
4724
742df3a4
UD
47252007-08-05 Ulrich Drepper <drepper@redhat.com>
4726
4727 * po/zh_CN.po: Updated translation from translation team.
4728
0470fa46
JJ
47292007-08-05 Jakub Jelinek <jakub@redhat.com>
4730
4731 * sysdeps/unix/sysv/linux/powerpc/powerpc32/socket.S (__socket):
4732 Don't use CGOTSETUP and CGOTRESTORE macros.
4733
b5075bdc
RM
47342007-08-04 Roland McGrath <roland@redhat.com>
4735
4736 * posix/Makefile ($(objpfx)getconf.speclist): Fix typo.
4737
9accc268
JJ
47382007-08-04 Jakub Jelinek <jakub@redhat.com>
4739
4740 * io/bits/fcntl2.h (open, open64, openat, openat64): Add
4741 __extension__ around the whole statement expression.
4742
220ae3ef
UD
47432007-08-04 Ulrich Drepper <drepper@redhat.com>
4744
c8ccd8e3
UD
4745 * sysdeps/unix/opendir.c (__alloc_dir): Correct order of DIR
4746 elements during initialization.
4747
220ae3ef
UD
4748 * po/pl.po: Updated translation from translation team.
4749 * po/tr.po: Likewise.
11960f7f 4750 * po/nl.po: Likewise.
220ae3ef 4751
2fb20667
UD
47522007-08-03 Ulrich Drepper <drepper@redhat.com>
4753
4754 * rt/aio.h: Add __nonnull attributes.
4755
ce31a3b1
UD
47562007-08-03 Jakub Jelinek <jakub@redhat.com>
4757
64f6281c
UD
4758 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Properly handle -0.
4759 * stdlib/Makefile (tests): Add tst-strtod5.
4760 (tst-strtod5-ENV): New.
4761 * stdlib/tst-strtod5.c: New file.
4762
ce31a3b1
UD
4763 * intl/dcigettext.c (_nl_find_msg): Free encoding if __gconv_open
4764 failed.
4765 * intl/finddomain.c (_nl_find_domain): Free normalized_codeset
4766 on failure.
4767
4768 * elf/dl-load.c (decompose_rpath): Free copy if result couldn't be
4769 allocated.
4770
754980e4
JJ
47712007-08-03 Jakub Jelinek <jakub@redhat.com>
4772
4773 * rt/mqueue.h (mq_timedreceive, mq_timedsend): Fix nonnull argument
4774 numbers.
4775
497af0cb
UD
47762007-08-02 Ulrich Drepper <drepper@redhat.com>
4777
cbf0489b
UD
4778 * io/Makefile (aux): Add have_o_cloexec.
4779 * include/fcntl.h: Declare __have_o_cloexec.
4780 * io/have_o_cloexec.c: New file.
4781 * sysdeps/unix/opendir.c (__opendir): Use O_CLOEXEC is available.
4782 (__alloc_dir): If O_CLOEXEC has been used, don't duplicate the
4783 fcntl call if not necessary.
4784 * login/utmp_file.c (setutent_file): Use __have_o_cloexec instead
4785 of local variable.
4786
fa39685d
UD
4787 * sysdeps/unix/opendir.c (__alloc_dir): Don't initialize ->data.
4788 Avoid memset, add explicit initialization.
4789 * sysdeps/unix/dirstream.h (struct __dirstream): Move data elemtn
4790 to the end and change into zero-sized array.
4791 Move lock member to fill a hole on 64-bit platforms.
9b2e9577
UD
4792
4793 * stdlib/stdlib.h: Remove __strto*_internal prototypes and strto*
4794 inline functions.
4795 * include/stdlib.h: Add __strto*_internal prototypes here.
4796 * wcsmbs/wchar.h: Remove __wcsto*_internal prototypes and wcsto*
4797 inline functions.
4798 * include/wchar.h: Add __wcsto*_internal prototypes.
4799 * sysdeps/generic/inttypes.h: No need to protect the declaration
4800 of the __strto*_internal and __wcsto*_internal members here.
4801
497af0cb
UD
4802 * rt/mqueue.h: Change const to __const and add nonnull attributes.
4803
d17a8cf0
RM
48042007-08-02 Roland McGrath <roland@redhat.com>
4805
4806 * posix/Makefile ($(inst_libexecdir)/getconf): Make hard links to
4807 $(inst_bindir)/getconf if possible.
4808
4809 * posix/Makefile ($(objpfx)getconf.speclist): New target.
4810 (generated): Add it.
4811 ($(inst_libexecdir)/getconf): Use it.
4812
0abf17de
UD
48132007-08-01 Ulrich Drepper <drepper@redhat.com>
4814
4815 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Using
4816 /proc is faster and sufficient. /sys is still needed for
4817 __get_nprocs_conf.
4818
5e0923ab
UD
48192007-08-01 Jakub Jelinek <jakub@redhat.com>
4820
4821 * sysdeps/unix/sysv/linux/i386/syscalls.list (fallocate): Add fallocate
4822 syscall as __fallocate64.
4823 * sysdeps/unix/sysv/linux/i386/posix_fallocate.c: New file.
4824 * sysdeps/unix/sysv/linux/i386/posix_fallocate64.c: New file.
4825
1475e201
UD
48262007-07-30 Jakub Jelinek <jakub@redhat.com>
4827
4828 * stdlib/tst-strtod2.c (do_test): Use %tu in fmt string for ptrdiff_t
4829 value.
4830
4831 * stdio-common/tst-fmemopen2.c (do_test): Avoid fmt string warning
4832 if off_t is different rank from size_t.
4833
4834 * sysdeps/generic/unwind-dw2.c (extract_cie_info, execute_cfa_program,
4835 uw_frame_state_for): Avoid type punning warnings.
4836 * sysdeps/generic/unwind-dw2-fde-glibc.c
4837 (_Unwind_IteratePhdrCallback): Likewise.
4838 * sysdeps/generic/unwind-dw2-fde.c (_Unwind_Find_FDE): Likewise.
4839 (binary_search_single_encoding_fdes, binary_search_mixed_encoding_fdes,
4840 get_cie_encoding, linear_search_fdes): Don't mix char and unsigned char
4841 pointers.
4842
e076bece
UD
48432007-07-31 Ulrich Drepper <drepper@redhat.com>
4844
9506149a
UD
4845 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs_conf): Count
4846 total processors using sysfs.
4847 (__get_nprocs): Use sysfs to determine which processors are online.
e076bece 4848
bbeaaa84
JJ
48492007-07-31 Jakub Jelinek <jakub@redhat.com>
4850
09881398
JJ
4851 * sysdeps/unix/sysv/linux/posix_fallocate.c (posix_fallocate): Fix
4852 syscall arguments count.
4853
bbeaaa84
JJ
4854 * stdio-common/tfformat.c (sprint_doubles): Add 12 new tests.
4855
087ef75f
RM
48562007-07-30 Roland McGrath <roland@redhat.com>
4857
4858 * manual/libc.texinfo: Update copyrights, formatting magic, and
4859 @dircategory. From Karl Berry <karl@freefriends.org>.
4860
44f08a6e
UD
48612007-07-29 Ulrich Drepper <drepper@redhat.com>
4862
eafaae72
UD
4863 [BZ #4860]
4864 * io/Makefile (headers): Add bits/fcntl2.h.
4865
c5705565
UD
4866 * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_ZERO_S): Optimize
4867 using gcc builtin.
4868 (__CPU_EQUAL_S): Likewise.
4869
44f08a6e
UD
4870 * posix/Makefile (routines): Add sched_cpualloc and sched_cpufree.
4871 (tests): Add tst-cpuset.
4872 * posix/sched_cpualloc.c: New file.
4873 * posix/sched_cpufree.c: New file.
4874 * posix/tst-cpuset.c: New file.
4875 * posix/Versions: Export __sched_cpualloc and __sched_cpufree for
4876 GLIBC_2.7.
4877 * sysdeps/unix/sysv/linux/bits/sched.h: Define __CPU_*_S macros.
4878 * posix/sched.h: Define old CPU_* macros in temers of __CPU_*_S
4879 macros. Define CPU_*_S macros.
4880
8f5e1400
UD
48812007-07-28 Ulrich Drepper <drepper@redhat.com>
4882
5b74caf6
UD
4883 * posix/getconf.c (vars): Add missing _SC_LEVEL4_CACHE_LINESIZE
4884 entry.
4885
a26d01bb 4886 [BZ #4858]
8f5e1400
UD
4887 * stdio-common/printf_fp.c (___printf_fp): Fix special case of
4888 #.0g and value rounded to 1.0.
4889 * stdio-common/tfformat.c (sprint_doubles): Add two new tests.
4890
085a4412
UD
48912007-07-26 Jakub Jelinek <jakub@redhat.com>
4892
cedb4109
UD
4893 * locale/programs/ld-monetary.c (monetary_finish): Avoid range check
4894 for int_frac_digits and frac_digits.
4895
4896 * login/logout.c (logout): Avoid aliasing violation.
4897 * login/logwtmp.c (logwtmp): Likewise.
4898
4899 * libio/genops.c (_IO_un_link): Avoid aliasing violation.
4900
9d9febc7
UD
4901 * nscd/selinux.c (preserve_capabilities): Initialize new_caps
4902 to avoid warning.
4903 * iconv/gconv_open.c (__gconv_open): Initialize ptr to avoid
4904 warning.
4905 * nis/nis_subr.c (nis_getnames): Initialize saveptr to avoid
4906 warning.
4907 * resolv/inet_ntop.c (inet_ntop6): Initialize best.len and cur.len
4908 to avoid warnings.
4909
701666b7
UD
4910 * nss/nsswitch.c (__nss_lookup_function): Don't cast &ni->known to
4911 void **.
4912 * nss/nsswitch.h (service_user): Use void * type for KNOWN field.
4913
4914 * nss/nss_files/files-hosts.c (LINE_PARSER): Cast host_addr to
4915 char * to avoid warning.
4916 * nis/nss_nis/nis-hosts.c (LINE_PARSER): Likewise.
4917
4918 * timezone/Makefile (CFLAGS-zdump.c): Add -fwrapv.
4919
4920 * locale/programs/ld-ctype.c (ctype_finish, set_class_defaults,
4921 allocate_arrays): Cast second argument to charmap_find_symbol
4922 to char * to avoid warnings.
4923
4924 * locale/programs/repertoire.c (repertoire_new_char): Change
4925 from_nr, to_nr and cnt to unsigned long, adjust printf format
4926 string.
4927
4928 * locale/programs/ld-collate.c (insert_value, handle_ellipsis):
4929 Cast second argument to new_element to char * to avoid warnings.
4930
4931 * locale/weightwc.h (findidx): Cast &extra[-i] to const int32_t *.
4932
4933 * intl/gettextP.h (struct loaded_domain): Change plural to const
4934 struct expression *.
4935 * intl/plural-eval.c (plural_eval): Change first argument to
4936 const struct expression *.
4937 * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Change first
4938 argument to const struct expression **.
4939 * intl/plural-exp.h (EXTRACT_PLURAL_EXPRESSION, plural_eval): Adjust
4940 prototypes.
4941 * intl/loadmsgcat (_nl_unload_domain): Cast away const
4942 in call to __gettext_free_exp.
4943
4944 * posix/fnmatch.c (fnmatch): Rearrange code to avoid maybe
4945 unitialized wstring/wpattern var warnings.
4946
4947 * posix/runtests.c (struct a_test): Make data field const char *.
4948
4949 * stdio-common/tst-sprintf2.c (main): Don't declere u, v and buf
4950 vars if not LDBL_MANT_DIG >= 106.
4951
4952 * stdio-common/Makefile (CFLAGS-vfwprintf.c): Add -Wno-unitialized.
4953
4954 * stdio-common/vfprintf.c (vfprintf): Cast first arugment to
4955 __find_specmb to avoid warning.
4956
4957 * rt/tst-mqueue1.c (do_one_test): Add casts to avoid warnings.
4958
4959 * debug/test-strcpy_chk.c (do_tests, do_random_tests): Add casts
4960 to avoid warnings.
4961
4962 * sysdeps/ieee754/ldbl-96/s_roundl.c (huge): Add L suffix to
4963 initializer.
4964
4965 * sysdeps/unix/clock_gettime.c (clock_gettime): Only define
4966 tv var when it will be actually used.
4967
4968 * sunrpc/rpc_cmsg.c (xdr_callmsg): Cast IXDR_PUT_* to void
4969 to avoid warnings.
4970
085a4412
UD
4971 * iconvdata/gbk.c (BODY): Make buf and cp char instead of unsigned
4972 char array resp. pointer.
4973 * iconvdata/iso-2022-kr.c (BODY): Make buf unsigned char instead of
4974 char array.
4975 * iconvdata/cns11643.h (cns11643_to_ucs4): Change first argument
4976 to const unsigned char **.
4977 (ucs4_to_cns11643): Change second argument to unsigned char *.
4978 * iconvdata/euc-tw.c (BODY): Change endp type to
4979 const unsigned char *.
4980 * iconvdata/iso-ir-165.h (ucs4_to_isoir165): Change second argument
4981 to unsigned char *.
4982 * iconvdata/ibm1008_420.c (LOOP_NEED_FLAGS): Don't define.
4983 * iconvdata/iso-2022-cn.c (BODY): Change buf to unsigned char array.
4984 * iconvdata/iso-2022-cn-ext.c (BODY): Change buf, tmpbuf, tmp
4985 types to unsigned char pointers/arrays instead of char.
4986 * iconvdata/jis0201.h (ucs4_to_jisx0201): Change second argument
4987 to unsigned char *.
4988 * iconvdata/jis0208.h (ucs4_to_jisx0208): Likewise.
4989 * iconvdata/jis0212.h: Include assert.h.
4990 (ucs4_to_jisx0212): Change second argument to unsigned char *.
4991 assert that if cp[0] is not '\0', cp[1] is not '\0' either instead
4992 of trying to handle that.
4993 * iconvdata/euc-kr.c (euckr_from_ucs4): Initialize also cp[1] to
4994 shut up a warning.
4995 * iconvdata/euc-jp-ms.c (from_ucs4_lat1, from_ucs4_greek,
4996 from_ucs4_cjk, from_ucs4_cjkcpt, from_ucs4_extra): Change type to
4997 two dimensional const unsigned char arrays.
4998 (BODY): Cast "" to (const unsigned char *) for assignment to cp.
4999 Initialize endp to inptr to shut up a warning.
5000
fa69dc9c
UD
50012007-07-20 Jakub Jelinek <jakub@redhat.com>
5002
ae1ad762
UD
5003 [BZ #4772]
5004 * time/strptime_l.c (__strptime_internal): Silently ignore
5005 strftime modifiers and field width in recursive calls.
5006
fa69dc9c
UD
5007 * include/time.h (enum ptime_locale_status): Remove.
5008 (__strptime_internal): Remove decided and era_cnt arguments,
5009 add statep argument.
5010 * time/strptime_l.c (__strptime_internal): Remove decided
5011 and era_cnt arguments, add statep argument. Don't recompute
5012 any fields in recursive calls, only update caller's tm
5013 and state, if recursive call fails, don't change tm nor
5014 any state.
5015 (get_alt_number): Adjust.
5016 (recursive): Adjust caller.
5017 (strptime): Likewise.
5018 * time/strptime.c (strptime): Likewise.
5019
7b503bcc
UD
50202007-07-19 Jakub Jelinek <jakub@redhat.com>
5021
5022 * iconv/gconv_int.h (__GCONV_NULCONV): New internal only error code.
5023 * iconv/gconv_cache.c (__gconv_lookup_cache): Return __GCONV_NULCONV
5024 if from and to charsets are the same.
5025 * iconv/gconv_db.c (__gconv_find_transform): Likewise.
5026 * intl/dcigettext.c (_nl_find_msg): Return NULL even if __gconv_open
5027 returns __GCONV_NOCONV, but not for __GCONV_NULCONV.
5028
50292007-07-17 Jakub Jelinek <jakub@redhat.com>
5030
5031 * wcsmbs/wchar.h: Only define wint_t if __need_wint_t.
5032 Don't define wint_t when __need_mbstate_t unless it
5033 is necessary.
5034 (__mbstate_t): Use __WINT_TYPE__ rather than wint_t
5035 in the typedef if possible.
5036 * wctype/wctype.h (wint_t): Define by including
5037 wchar.h with __need_wint_t instead of including stddef.h
5038 with __need_wint_t and as fallback definining it ourselves.
5039 * iconv/gconv.h (__need_wint_t): Define before including
5040 wchar.h.
5041 * sysdeps/gnu/_G_config.h: Don't include gconv.h if not _LIBC
5042 or _GLIBCPP_USE_WCHAR_T.
5043 (__need_wchar_t): Don't define
5044 if not _LIBC or _GLIBCPP_USE_WCHAR_T.
5045 (__need_wint_t): Don't define before including stddef.h,
5046 define before including wchar.h only if _LIBC or
5047 _GLIBCPP_USE_WCHAR_T.
5048 (_G_iconv_t): Don't define if not _LIBC or _GLIBCPP_USE_WCHAR_T.
5049 * sysdeps/mach/hurd/_G_config.h: Likewise.
5050 * sysdeps/generic/_G_config.h: Likewise.
5051 * libio/libio.h (__wunderflow, __wuflow, __woverflow): Only
5052 prototype if _LIBC or _GLIBCPP_USE_WCHAR_T.
5053 (_IO_getwc_unlocked, _IO_putwc_unlocked): Only define
5054 if _LIBC or _GLIBCPP_USE_WCHAR_T.
5055
a95a608f
UD
50562007-07-28 Ulrich Drepper <drepper@redhat.com>
5057
5058 * sysdeps/posix/posix_fallocate64.c: Undefine
5059 __posix_fallocate64_l64 before alias handling.
5060 * sysdeps/unix/sysv/linux/posix_fallocate.c: New file.
5061 * sysdeps/unix/sysv/linux/posix_fallocate64.c: New file.
5062 * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c: New file.
5063 * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate64.c: New file.
5064
5065 * io/tst-posix_fallocate.c: Include <fcntl.h>.
5066
50672007-07-23 Jakub Jelinek <jakub@redhat.com>
5068
5069 * locale/programs/ld-collate.c (atwc): New variable.
5070 (add_to_tablewc): New toplevel function, moved from collate_output.
5071 (collate_output): Remove add_to_tablewc nested function.
5072
5073 * iconv/iconvconfig.c (hash_table, hash_size): New toplevel vars.
5074 (name_insert): New function.
5075 (write_output): Remove hash_table and hash_size vars and name_insert
5076 nested function.
5077
80d4c3b0
RM
50782007-07-24 Roland McGrath <roland@redhat.com>
5079
5080 * Makerules (install-others-programs-nosubdir): New target.
5081 (install-no-libc.a-nosubdir): Depend on it.
5082
5083 * iconv/Makefile (install-others-programs): Set this instead of
5084 install-others.
5085 * login/Makefile (install-others-programs): Likewise.
5086 * posix/Makefile (install-others-programs): Likewise.
5087
5088 * Makerules (install-no-libc.a-nosubdir): Clean up conditional
5089 dependencies.
5090
c1bf9f14
UD
50912007-07-23 Ulrich Drepper <drepper@redhat.com>
5092
5093 * io/Makefile (tests): Add tst-posix_fallocate.
5094 * io/tst-posix_fallocate.c: New file.
5095
5096 * sysdeps/unix/sysv/linux/kernel-features.h: Define
5097 __ASSUME_FALLOCATE.
5098
2320270c
RM
50992007-07-22 Roland McGrath <roland@frob.com>
5100
3dadfa7e
RM
5101 * hurd/getdport.c: Add missing copyright year update.
5102
2320270c
RM
5103 * sysdeps/mach/hurd/bits/fcntl.h [__USE_GNU] (O_CLOEXEC): New macro.
5104 * hurd/port2fd.c (_hurd_port2fd): Implement O_CLOEXEC.
5105
cc783763
UD
51062007-07-22 Ulrich Drepper <drepper@redhat.com>
5107
c942388d
UD
5108 * login/utmp_file.c (setutent_file): Use O_CLOEXEC if possible.
5109
cc783763
UD
5110 * libio/fileops.c (_IO_new_file_fopen): Recognize 'e' flag and set
5111 O_CLOEXEC is needed.
5112 * nis/nss_compat/compat-grp.c: Use 'e' flag when opening file.
5113 Avoid additional fcntl to set O_CLOEXEC if not needed.
5114 * nis/nss_compat/compat-initgroups.c: Likewise.
5115 * nis/nss_compat/compat-pwd.c: Likewise.
5116 * nis/nss_compat/compat-spwd.c: Likewise.
5117
610903b0
RM
51182007-07-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
5119
3dadfa7e 5120 [BZ #3665]
5c3d7832
RM
5121 * manual/errno.texi: Change ECANCELED value to 119.
5122
3dadfa7e 5123 [BZ #4610]
610903b0
RM
5124 * mach/lock-intern.h: Include <sys/cdefs.h>.
5125
3dadfa7e 5126 [BZ #4178]
610903b0
RM
5127 * sysdeps/mach/hurd/sigaction.c (__sigaction): Check ACT != NULL before
5128 reading A.
5129
3dadfa7e
RM
5130 [BZ #4126]
5131 * sysdeps/mach/hurd/sigsuspend.c (sigsuspend_not_cancel): Define alias
5132 to __sigsuspend.
610903b0
RM
5133
5134 * sysdeps/mach/i386/sysdep.h: Include <dl-sysdep.h> and <tls.h>.
5135
51362006-06-13 Thomas Schwinge <tschwinge@gnu.org>
5137
5138 * sysdeps/mach/hurd/tls.h: Change `ASSEMBLER' conditional to
5139 `__ASSEMBLER__'.
5140 * sysdeps/mach/hurd/i386/tls.h: Likewise.
5141
acf79996
UD
51422007-07-21 Ulrich Drepper <drepper@redhat.com>
5143
dde0763a
UD
5144 * nscd/nscd_helper.c (get_mapping): Use MSG_CMSG_CLOEXEC for
5145 descriptor received from nscd.
5146
acf79996
UD
5147 * sysdeps/unix/sysv/linux/bits/socket.h: Define MSG_CMSG_CLOEXEC.
5148
5149 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_CLOEXEC.
5150 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
5151 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
5152 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
5153 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
5154 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
5155
00d26929
JJ
51562007-07-20 Jakub Jelinek <jakub@redhat.com>
5157
403445d7
JJ
5158 [BZ #4816]
5159 * manual/signal.texi (Non-atomic Example): Make memory var volatile.
5160
00d26929
JJ
5161 [BZ #4813]
5162 * login/forkpty.c (forkpty): Close master and slave fds on
5163 fork failure. Patch by
5164 Mikulas Patocka <mikulas@artax.karlin.mff.cuni.cz>.
5165
087722b8
UD
51662007-07-18 Jakub Jelinek <jakub@redhat.com>
5167
5168 * include/features.h (__USE_ISOC95): New define.
5169 * wcsmbs/wchar.h (fwprintf, fwscanf, wprintf, wscanf, swprintf,
5170 swscanf, vfwprintf, vwprintf, vswprintf, fwide): Define even
5171 for -std=iso9899:199409.
5172 * CONFORMANCE: Remove comments about unsupported AMD1.
5173
b042b023
UD
51742007-07-17 Jakub Jelinek <jakub@redhat.com>
5175
5176 * sysdeps/ia64/sched_cpucount.c: New file.
5177 * sysdeps/powerpc/sched_cpucount.c: New file.
5178
8381e467
UD
5179 * sysdeps/unix/sysv/linux/bits/sched.h (__sched_cpucount): Add
5180 __BEGIN_DECLS/__END_DECLS around the prototype.
5181 * bits/sched.h (__sched_cpucount): Likewise. Make second argument
5182 pointer to const cpu_set_t.
5183
50e16f85
UD
5184 * bits/types.h: Don't include stddef.h, don't define __need_size_t.
5185 * signal/signal.h <__USE_BSD || __USE_XOPEN_EXTENDED>: Define
5186 __need_size_t and include stddef.h.
5187 * sysvipc/sys/msg.h: Likewise.
5188 * posix/sched.h: Likewise.
5189 * hurd/hurd/signal.h (__need_size_t): Define.
5190
5191 * CONFORMANCE: ctype.h and wctype.h no longer define size_t,
5192 neither does signal.h in pedantic ISO C namespaces. stdio.h
5193 no longer defines wint_t or wchar_t.
5194
b257c726
UD
5195 * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): New function.
5196 * debug/vfwprintf_chk.c (__vfwprintf_chk): Use
5197 _IO_acquire_lock_clear_flags2 instead of _IO_acquire_lock.
5198 * debug/vprintf_chk.c (__vprintf_chk): Likewise.
5199 * debug/vwprintf_chk.c (__vwprintf_chk): Likewise.
5200 * debug/vfprintf_chk.c (__vfprintf_chk): Likewise.
5201 * debug/fwprintf_chk.c (__fwprintf_chk): Likewise.
5202 * debug/printf_chk.c (__printf_chk): Likewise.
5203 * debug/fprintf_chk.c (__fprintf_chk): Likewise.
5204 * debug/wprintf_chk.c (__wprintf_chk): Likewise.
5205
5206 * sysdeps/pthread/bits/stdio-lock.h (_IO_acquire_lock_clear_flags2):
5207 Define.
5208
d5078b9f
UD
5209 * bits/confname.h (_CS_POSIX_V6_WIDTH_RESTRICTED_ENVS): Define.
5210 * posix/getconf.c (vars): Add POSIX_V6_WIDTH_RESTRICTED_ENVS.
5211
1c3e748e
UD
52122007-07-16 Jakub Jelinek <jakub@redhat.com>
5213
5214 [BZ #4792]
5215 * stdlib/stdlib.h (realloc): Remove __attribute_malloc__.
5216 * malloc/malloc.h (realloc): Likewise.
5217
4e425301
UD
5218 * libio/iopopen.c (_IO_new_proc_open): Don't close child_std_end
5219 if one of proc_file_chain streams has that fileno.
5220 * stdio-common/Makefile (tests): Add tst-popen2.
5221 * stdio-common/tst-popen2.c: New test.
5222
2e2efe65
RM
52232007-07-14 Jakub Jelinek <jakub@redhat.com>
5224
5225 * elf/ldconfig.c: Allow GPLv2 or any later version.
5226 * elf/readlib.c: Likewise.
5227 * elf/chroot_canon.c: Likewise.
5228 * elf/cache.c: Likewise.
5229 * nscd/mem.c: Likewise.
5230 * nscd/getpwuid_r.c: Likewise.
5231 * nscd/grpcache.c: Likewise.
5232 * nscd/aicache.c: Likewise.
5233 * nscd/getsrvbynm_r.c: Likewise.
5234 * nscd/nscd.c: Likewise.
5235 * nscd/servicescache.c: Likewise.
5236 * nscd/getsrvbypt_r.c: Likewise.
5237 * nscd/initgrcache.c: Likewise.
5238 * nscd/gethstbyad_r.c: Likewise.
5239 * nscd/gethstbynm2_r.c: Likewise.
5240 * nscd/getgrnam_r.c: Likewise.
5241 * nscd/nscd_setup_thread.c: Likewise.
5242 * nscd/getpwnam_r.c: Likewise.
5243 * nscd/gai.c: Likewise.
5244 * nscd/connections.c: Likewise.
5245 * nscd/dbg_log.c: Likewise.
5246 * nscd/cache.c: Likewise.
5247 * nscd/hstcache.c: Likewise.
5248 * nscd/nscd_conf.c: Likewise.
5249 * nscd/getgrgid_r.c: Likewise.
5250 * nscd/pwdcache.c: Likewise.
5251 * catgets/gencat.c: Likewise.
5252 * locale/programs/linereader.h: Likewise.
5253 * locale/programs/locarchive.c: Likewise.
5254 * locale/programs/ld-paper.c: Likewise.
5255 * locale/programs/locfile-kw.h: Likewise.
5256 * locale/programs/ld-address.c: Likewise.
5257 * locale/programs/xmalloc.c: Likewise.
5258 * locale/programs/ld-time.c: Likewise.
5259 * locale/programs/localedef.c: Likewise.
5260 * locale/programs/simple-hash.c: Likewise.
5261 * locale/programs/xstrdup.c: Likewise.
5262 * locale/programs/ld-numeric.c: Likewise.
5263 * locale/programs/locfile-kw.gperf: Likewise.
5264 * locale/programs/ld-collate.c: Likewise.
5265 * locale/programs/charmap-kw.gperf: Likewise.
5266 * locale/programs/charmap.h: Likewise.
5267 * locale/programs/charmap-kw.h: Likewise.
5268 * locale/programs/config.h: Likewise.
5269 * locale/programs/locfile.c: Likewise.
5270 * locale/programs/ld-ctype.c: Likewise.
5271 * locale/programs/charmap.c: Likewise.
5272 * locale/programs/ld-messages.c: Likewise.
5273 * locale/programs/repertoire.h: Likewise.
5274 * locale/programs/locale.c: Likewise.
5275 * locale/programs/ld-name.c: Likewise.
5276 * locale/programs/linereader.c: Likewise.
5277 * locale/programs/locfile.h: Likewise.
5278 * locale/programs/3level.h: Likewise.
5279 * locale/programs/ld-monetary.c: Likewise.
5280 * locale/programs/ld-measurement.c: Likewise.
5281 * locale/programs/charmap-dir.c: Likewise.
5282 * locale/programs/ld-identification.c: Likewise.
5283 * locale/programs/localedef.h: Likewise.
5284 * locale/programs/charmap-dir.h: Likewise.
5285 * locale/programs/repertoire.c: Likewise.
5286 * locale/programs/simple-hash.h: Likewise.
5287 * locale/programs/ld-telephone.c: Likewise.
5288 * locale/programs/locale-spec.c: Likewise.
5289 * locale/programs/locfile-token.h: Likewise.
5290 * posix/getconf.c: Likewise.
5291 * iconv/dummy-repertoire.c: Likewise.
5292 * iconv/iconv_charmap.c: Likewise.
5293 * iconv/iconvconfig.c: Likewise.
5294 * iconv/iconv_prog.c: Likewise.
5295 * malloc/memusagestat.c: Likewise.
5296 * sysdeps/unix/sysv/linux/nscd_setup_thread.c: Likewise.
5297
84c23a3d
RM
52982007-07-06 Kaz Kojima <kkojima@rr.iij4u.or.jp>
5299
5300 * sysdeps/sh/bsd-setjmp.S (setjmp): Use correct argument registers.
5301 * sysdeps/sh/bsd-_setjmp.S (_setjmp): Likewise.
5302 * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Do correct sanity
5303 check for the first argument.
5304
1c298d08
UD
53052007-07-12 Jakub Jelinek <jakub@redhat.com>
5306
5307 [BZ #4775]
5308 * math/tgmath.h (__tgmath_real_type_sub): Formatting.
5309 (__tgmath_real_type): Fix if expr is const int or other const
5310 qualified integral type.
5311 (__TGMATH_UNARY_REAL_ONLY): Rewritten to avoid using statement
5312 expressions and handle const qualified arguments.
5313 (__TGMATH_BINARY_FIRST_REAL_ONLY, __TGMATH_UNARY_REAL_IMAG,
5314 __TGMATH_UNARY_REAL_IMAG_RET_REAL): Likewise.
5315 (__TGMATH_UNARY_REAL_RET_ONLY): Rewritten to avoid using
5316 statement expressions.
5317 (__TGMATH_BINARY_REAL_ONLY, __TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY,
5318 __TGMATH_TERNARY_REAL_ONLY, __TGMATH_BINARY_REAL_IMAG): Likewise.
5319 (__TGMATH_UNARY_IMAG): Define.
5320 (conj, cproj): Use __TGMATH_UNARY_IMAG macro.
5321 * math/Makefile (tests): Add test-tgmath2.
5322 (CFLAGS-test-tgmath2.c): Add.
5323 * math/test-tgmath.c (fy, dy, ly, fz, dz, lz, count_cdouble,
5324 count_cfloat, count_cldouble): New variables.
5325 (NCCALLS): Define.
5326 (main): Check number of complex calls as well.
5327 (F(compile_test)): Add complex tests and tests with const qualified
5328 arguments.
5329 (y, z, ccount): Define.
5330 (F(cacos), F(casin), F(catan), F(ccos), F(csin), F(ctan), F(cacosh),
5331 F(casinh), F(catanh), F(ccosh), F(csinh), F(ctanh), F(cexp), F(clog),
5332 F(csqrt), F(cpow), F(cabs), F(carg), F(creal), F(cimag), F(conj),
5333 F(cproj)): New functions.
5334 * math/test-tgmath2.c: New test.
5335
53362007-07-11 Jakub Jelinek <jakub@redhat.com>
5337
5338 [BZ #4776]
5339 * elf/dl-load.c (_dl_rtld_di_serinfo): Output / in LD_LIBRARY_PATH,
5340 RPATH etc. as "/" rather than "", don't segfault on empty paths,
5341 instead output ".".
5342 * dlfcn/Makefile (distribute): Add glreflib3.c.
5343 (module-names): Add glreflib3.
5344 ($(objpfx)tst-dlinfo.out): Depend on glreflib3.so rather than
5345 glreflib1.so.
5346 (LDFLAGS_glreflib3.so): New.
5347 * dlfcn/tst-dlinfo.c (do_test): Load glreflib3.so instead of
5348 glreflib1.so.
5349 * dlfcn/glreflib3.c: New file.
5350
5351 * intl/finddomain.c (_nl_find_domain): If _nl_explode_name
5352 returned -1, return NULL.
5353 * intl/explodename.c (_nl_explode_name): Return -1 if
5354 _nl_normalize_codeset failed.
5355
a88f47a7
UD
53562007-07-07 Steven Munroe <sjmunroe@us.ibm.com>
5357
5358 * sysdeps/powerpc/powerpc32/power6/memset.S: Update comments.
5359 Specify .machine power6 to get ISA-V2.0 branch hints. Unroll loops
5360 and avoid branch misspredicts for > 31 bytes memset case.
5361 * sysdeps/powerpc/powerpc64/power6/memset.S: Likewise.
5362 Remove toc ref to __cache_line_size.
5363
5364 * sysdeps/powerpc/powerpc32/power4/memcmp.S: Specify .machine power4
5365 to get ISA-V2.0 branch hints.
5366 * sysdeps/powerpc/powerpc32/power4/memcpy.S: Likewise
5367 * sysdeps/powerpc/powerpc32/power4/memset.S: Likewise
5368 * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
5369 * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
5370 * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
5371 * sysdeps/powerpc/powerpc64/power4/memset.S: Likewise.
5372 Remove toc ref to __cache_line_size.
5373
5374 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S:
5375 Include math_ldbl_opt.h.
5376
f98c2d06
UD
53772007-07-10 Ulrich Drepper <drepper@redhat.com>
5378
5379 [BZ #4773]
5380 * time/strptime_l.c (__strptime_internal): Implement greedy
5381 matching of weekday and month names.
5382
cec5991f
RM
53832007-07-09 Roland McGrath <roland@redhat.com>
5384
5385 * elf/elf.h (NT_GNU_ABI_TAG): New macro.
5386 (ELF_NOTE_ABI): Use it.
5387 (NT_GNU_HWCAP, NT_GNU_BUILD_ID): New macros.
5388
8c1dcd26
UD
53892007-07-09 Ulrich Drepper <drepper@redhat.com>
5390
5391 * sysdeps/x86_64/cacheinfo.c (intel_02_known): Add new entries.
5392 * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
5393
c2c7bd3f
UD
53942007-07-07 Ulrich Drepper <drepper@redhat.com>
5395
5396 [BZ #4745]
0923a2c8
UD
5397 * stdio-common/vfscanf.c (_IO_vfscanf): Add additional test for EOF
5398 in loop to look for conversion specifier to avoid testing of
5399 wrong errno value.
5400 * stdio-common/Makefile (tests): Add bug18, bug18a, bug19, bug19a.
c2c7bd3f 5401 * stdio-common/bug18.c: New file.
0923a2c8
UD
5402 * stdio-common/bug18a.c: New file.
5403 * stdio-common/bug19.c: New file.
5404 * stdio-common/bug19a.c: New file.
c2c7bd3f 5405
4facf4af
RM
54062007-07-05 Mike Frysinger <vapier@gentoo.org>
5407
5408 * Makeconfig ($(common-objpfx)gnu/lib-names.stmp): Use LC_ALL=C when
5409 running awk script.
5410
1311e86e
UD
54112007-07-01 Jakub Jelinek <jakub@redhat.com>
5412
5413 * elf/dl-sysdep.c (_dl_important_hwcaps): Add integer overflow check.
5414 * elf/dl-minimal.c (__libc_memalign): Likewise. Handle malloc (0).
5415 Return NULL if mmap failed instead of asserting it does not.
5416 (calloc): Check for integer overflow.
5417
5418 * elf/dl-minimal.c (__strtoul_internal): Fix parsing of numbers bigger
5419 than LONG_MAX / 10.
5420
57c9179c
UD
54212007-07-03 Jakub Jelinek <jakub@redhat.com>
5422
5423 [BZ #4702]
5424 * nis/nss-default.c: Include errno.h.
5425 (init): Preserve errno.
5426
d0b283a8
UD
54272007-07-02 Ulrich Drepper <drepper@redhat.com>
5428
5429 * sysdeps/unix/sysv/linux/bits/socket.h (PF_UNIX): Update comment.
5430
34e0bbaf
UD
54312007-06-30 Ulrich Drepper <drepper@redhat.com>
5432
5433 * sysdeps/unix/sysv/linux/bits/socket.h: Add PF_RXRPC and AF_RXRPC.
5434
54352007-06-29 Martin Schwidefsky <schwidefsky@de.ibm.com>
5436
5437 * sysdeps/unix/sysv/linux/bits/socket.h: Add PF_IUCV and AF_IUCV.
5438
34e0bbaf 54392007-06-29 Martin Schwidefsky <schwidefsky@de.ibm.com>
33516494
UD
5440
5441 * sysdeps/s390/dl-procinfo.c: New file.
5442 * sysdeps/s390/dl-procinfo.h: New file.
5443 * sysdeps/unix/sysv/linux/s390/dl-procinfo.h: New file.
5444
0e508a6e
UD
54452007-06-29 Jakub Jelinek <jakub@redhat.com>
5446
5447 * elf/dl-load.c (open_verify): Find .note.ABI-tag notes even
5448 in PT_NOTE segments with multiple notes.
5449 * elf/readelflib.c (process_elf_file): Likewise.
5450
e22c61fb
UD
54512007-06-22 Ulrich Drepper <drepper@redhat.com>
5452
5453 * nis/nis_domain_of.c (__nis_domain_of): Make the code a bit more
5454 ISO C compliant.
5455
e4eb675d
UD
54562007-06-19 Ulrich Drepper <drepper@redhat.com>
5457
5458 * elf/dl-close.c (free_mem): Free _dl_scope_free_list.
5459
54602007-06-13 Jakub Jelinek <jakub@redhat.com>
5461
5462 * include/link.h: Don't include rtld-lowlevel.h.
5463 (struct link_map): Remove l_scope_lock.
5464 * sysdeps/generic/ldsodefs.h: Don't include rtld-lowlevel.h.
5465 (_dl_scope_free_list): New field (variable) in _rtld_global.
5466 (DL_LOOKUP_SCOPE_LOCK): Remove.
5467 (_dl_scope_free): New prototype.
5468 * elf/dl-runtime.c (_dl_fixup): Don't use __rtld_mrlock_*lock.
5469 Don't pass DL_LOOKUP_SCOPE_LOCK to _dl_lookup_symbol_x.
5470 (_dl_profile_fixup): Likewise.
5471 * elf/dl-sym.c (do_sym): Likewise. Use wrapped _dl_lookup_symbol_x
5472 whenever !RTLD_SINGLE_THREAD_P, use THREAD_GSCOPE_SET_FLAG and
5473 THREAD_GSCOPE_RESET_FLAG around it.
5474 * elf/dl-close.c (_dl_close_worker): Don't use
5475 __rtld_mrlock_{change,done}. Call _dl_scope_free on the old
5476 scope. Make sure THREAD_GSCOPE_WAIT () happens if any old
5477 scopes were queued or if l_scope_mem has been abandoned.
5478 * elf/dl-open.c (_dl_scope_free): New function.
5479 (dl_open_worker): Use it. Don't use __rtld_mrlock_{change,done}.
5480 * elf/dl-support.c (_dl_scope_free_list): New variable.
5481 * elf/dl-lookup.c (add_dependency): Remove flags argument.
5482 Remove DL_LOOKUP_SCOPE_LOCK handling.
5483 (_dl_lookup_symbol_x): Adjust caller. Remove DL_LOOKUP_SCOPE_LOCK
5484 handling.
5485 * elf/dl-object.c (_dl_new_object): Don't use
5486 __rtld_mrlock_initialize.
5487
9be09e06
UD
54882007-06-19 Ulrich Drepper <drepper@redhat.com>
5489
5490 * sysdeps/generic/ldsodefs.h (rtld_global): Reorder some elements
5491 to fill in holes
5492 (rtld_global_ro): Likewise.
5493
54942007-06-18 Jakub Jelinek <jakub@redhat.com>
5495
5496 * elf/dl-addr.c (_dl_addr): Skip PT_LOAD checking if l_contiguous.
5497 Move PT_LOAD checking to...
5498 (_dl_addr_inside_object): ... here, new function.
5499 * elf/dl-sym.c (do_sym): If not l_contiguous,
5500 call _dl_addr_inside_object.
5501 * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise.
5502 * dlfcn/dlinfo.c (dlinfo_doit): Likewise.
5503 * elf/dl-open.c (dl_open_worker): Likewise.
5504 (_dl_addr_inside_object): New function if IS_IN_rtld.
5505 * elf/dl-load.c (_dl_map_object_from_fd): Set l_contiguous if no
5506 holes are present or are PROT_NONE protected.
5507 * include/link.h (struct link_map): Add l_contiguous field.
5508 * sysdeps/generic/ldsodefs.h (_dl_addr_inside_object): New prototype.
5509
ae1ad3ae
UD
55102007-06-18 Jakub Jelinek <jakub@redhat.com>
5511 Tomas Janousek <tjanouse@redhat.com>
5512 Ulrich Drepper <drepper@redhat.com>
5513
5514 [BZ #4647]
5515 * resolv/res_send.c (send_dg): Remove socket_pf. Use ipv6_unavail
5516 member in __res_state, only convaddr4to6 if nssocks[ns] is a PF_INET6
5517 socket.
5518 * resolv/resolv.h (__res_state): Add ipv6_unavail member. Make
5519 unused member a bitmap.
5520 * resolv/res_init.c (__res_vinit): Reset ipv6_unavail if IPv6
5521 servers are configured.
5522
3abee0b7
UD
55232007-06-18 Jakub Jelinek <jakub@redhat.com>
5524
5525 * elf/rtld.c (dl_main): Don't call init_tls more than once.
5526
89074592
UD
55272007-06-17 Andreas Schwab <schwab@suse.de>
5528
5529 * sysdeps/generic/initfini.c: Tell gcc about the nonstandard sections.
5530
b26e274d
AJ
55312007-06-16 Andreas Jaeger <aj@suse.de>
5532
5533 [BZ #4125]
5534 * sysdeps/unix/sysv/linux/sys/ptrace.h
5535 (PTRACE_O_TRACESYSGOOD, PTRACE_O_TRACEFORK,
5536 PTRACE_O_TRACEVFORK, PTRACE_O_TRACECLONE, PTRACE_O_TRACEEXEC,
89074592 5537 PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT, PTRACE_O_MASK,
b26e274d
AJ
5538 PTRACE_EVENT_FORK, PTRACE_EVENT_VFORK, PTRACE_EVENT_CLONE,
5539 PTRACE_EVENT_EXEC, PTRACE_EVENT_VFORK_DONE, PTRACE_EVENT_EXIT):
5540 Define.
5541 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
5542 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
5543 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
5544 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
5545
e0d4a4e5
UD
55462007-06-16 Ulrich Drepper <drepper@redhat.com>
5547
5548 [BZ #4599]
5549 * sysdeps/unix/sysv/linux/check_pf.c (make_request): When
5550 determining whether there are IPv4/IPv6 addresses, ignore loopback
5551 addresses.
5552
ae8e81f5
JJ
55532007-06-14 Uros Bizjak <ubizjak@gmail.com>
5554
5555 * soft-fp/soft-fp.h (CMPtype): Define to "int" if undefined.
5556 * soft-fp/eqdf2.c (__eqdf2): Use CMPtype instead of int
5557 as the return type. Change type of "r" variable to CMPtype.
5558 * soft-fp/eqsf2.c (__eqsf2): Likewise.
5559 * soft-fp/eqtf2.c (__eqtf2): Likewise.
5560 * soft-fp/gedf2.c (__gedf2): Likewise.
5561 * soft-fp/gesf2.c (__gesf2): Likewise.
5562 * soft-fp/getf2.c (__getf2): Likewise.
5563 * soft-fp/ledf2.c (__ledf2): Likewise.
5564 * soft-fp/lesf2.c (__lesf2): Likewise.
5565 * soft-fp/letf2.c (__letf2): Likewise.
5566 * soft-fp/unorddf2 (__unorddf2): Likewise.
5567 * soft-fp/unordsf2 (__unordsf2): Likewise.
5568 * soft-fp/unordtf2 (__unordtf2): Likewise.
5569
90cd2413
UD
55702007-06-09 Ulrich Drepper <drepper@redhat.com>
5571
5572 * elf/do-lookup.h (do_lookup_x): Read r_nlist before r_list and
5573 make sure gcc doesn't mess around with this.
5574
3c457089
UD
55752007-06-08 Ulrich Drepper <drepper@redhat.com>
5576
5577 * elf/dl-lookup.c (_dl_lookup_symbol_x): Remove use of r_nlist.
5578
e8b6b64d
UD
55792007-06-08 Jakub Jelinek <jakub@redhat.com>
5580
5581 * elf/dl-close.c (_dl_close_worker): Remove all to be removed
5582 libraries from the global scope at once and call THREAD_GSCOPE_WAIT
5583 at most once per _dl_close_worker.
5584
36dffb22
UD
55852007-06-08 Ulrich Drepper <drepper@redhat.com>
5586
755db8c5
UD
5587 * sysdeps/unix/sysv/linux/bits/sched.h: Make second parameter of
5588 __sched_cpucount as const.
5589 * posix/sched_cpucount.c: Adjust.
5590
36dffb22
UD
5591 * posix/sched_cpucount.c (__sched_cpucount): Allow using special
5592 instruction for counting bits.
5593 * sysdeps/x86_64/sched_cpucount.c: New file.
5594
26f56c1c
UD
55952007-06-07 Ulrich Drepper <drepper@redhat.com>
5596
5597 * configure.in: Avoid variable named BASH.
e967d385 5598 * config.make.in: Likewise.
26f56c1c 5599 Patch in part by Mike Frysinger.
835abc5c 5600
26f56c1c 56012007-06-06 Jakub Jelinek <jakub@redhat.com>
47779a7d
JJ
5602
5603 [BZ #4586]
835abc5c
UD
5604 * sysdeps/i386/ldbl2mpn.c (__mpn_extract_long_double): Treat
5605 pseudo-zeros as zero.
5606 * sysdeps/x86_64/ldbl2mpn.c: New file.
5607 * sysdeps/ia64/ldbl2mpn.c: New file.
5608
7e3706ea
UD
56092007-06-04 Jakub Jelinek <jakub@redhat.com>
5610
5611 * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (nextafterl): Remove
5612 unused ily variable. Fix nextafterl on +-__LDBL_MAX__ and +-Inf.
5613 Remove unreachable code at the end.
5614
56152007-06-01 Steven Munroe <sjmunroe@us.ibm.com>
5616
5617 * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Correct description of
5618 ldbl-128ibm in comment.
5619 (fpclassifyl): Correct classification of denormals.
5620 * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (nextafterl): Correct
5621 return value for MIN denormal. Rewrite using long double math too
5622 correctly handle denormals and canonicalize the results.
5623
56242007-06-05 Jakub Jelinek <jakub@redhat.com>
5625
5626 * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c
5627 (__mpn_construct_long_double): Fix conversion where result ought
5628 to be smaller than __LDBL_MIN__, or the low double should be
5629 denormal. Fix decision where to negate low double - honor round
5630 to even rules.
5631 * stdio-common/tst-sprintf2.c: Include string.h.
5632 (COMPARE_LDBL): Define.
5633 (TEST): Also test whether a string hexadecimal float representation
5634 can be parsed back to the number.
5635 (main): Add a couple of further tests.
5636
43b76828
UD
56372007-06-04 Jakub Jelinek <jakub@redhat.com>
5638
5639 * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c
5640 (PRINT_FPHEX_LONG_DOUBLE): Fix printing numbers where lower double
5641 is non-zero, but smaller than 2 * __DBL_MIN__.
5642 * stdio-common/tst-sprintf2.c: New test.
5643 * stdio-common/Makefile (tests): Add tst-sprintf2.
5644
5645 * math/test-misc.c (main): Don't run last batch of tests with
5646 IBM long double format.
5647
04067002
UD
56482007-05-31 Steven Munroe <sjmunroe@us.ibm.com>
5649
5650 * sysdeps/powerpc/powerpc32/970/fpu/Implies: New file.
5651 * sysdeps/powerpc/powerpc32/power5/fpu/Implies: New file.
5652 * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: New file.
5653 * sysdeps/powerpc/powerpc32/power6/fpu/Implies: New file.
5654 * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: New file.
5655 * sysdeps/powerpc/powerpc64/970/fpu/Implies: New file.
5656 * sysdeps/powerpc/powerpc64/power5/fpu/Implies: New file.
5657 * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: New file.
5658 * sysdeps/powerpc/powerpc64/power6/fpu/Implies: New file.
5659 * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: New file.
5660 * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: New file.
5661 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies:
5662 New file.
5663 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies:
5664 New file.
5665 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies:
5666 New file.
5667 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies:
5668 New file.
5669 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies:
5670 New file.
5671 * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: New file.
5672 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies:
5673 New file.
5674 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies:
5675 New file.
5676 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies:
5677 New file.
5678 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies:
5679 New file.
5680 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies:
5681 New file.
5682
56832007-05-31 Steven Munroe <sjmunroe@us.ibm.com>
5684
5685 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S: Move.
5686 * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: To here.
5687 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrintf.S: Move.
5688 * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: To here.
5689 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llround.S: Move.
5690 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: To here.
5691 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llroundf.S: Move.
5692 * sysdeps/powerpc/powerpc32/power4/fpu/s_llroundf.S: To here.
5693
56942007-05-22 Steven Munroe <sjmunroe@us.ibm.com>
5695
5696 * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S
5697 (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
5698 * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S
5699 (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
5700 * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S
5701 (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
5702 * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S
5703 (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
5704
57052007-05-21 Steven Munroe <sjmunroe@us.ibm.com>
5706
5707 * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: New file.
5708 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.c: New file.
5709 * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: New file.
5710 * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: New file.
5711
57122007-03-15 Steven Munroe <sjmunroe@us.ibm.com>
5713
5714 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S
5715 [LONG_DOUBLE_COMPAT]: Add compat_symbol for llrintl@@GLIBC_2_1.
5716
57172006-02-13 Steven Munroe <sjmunroe@us.ibm.com>
5718
5719 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: New File
5720 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: New File
5721 * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: New File
5722 * sysdeps/powerpc/powerpc32/power6/fpu/s_llroundf.S: New File
5723
57242006-10-20 Steven Munroe <sjmunroe@us.ibm.com>
5725
5726 * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: New file.
5727 * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: New file.
5728
57292006-10-03 Steven Munroe <sjmunroe@us.ibm.com>
5730
5731 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llround.S: New file.
5732 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llroundf.S: New file.
5733
5734 * sysdeps/powerpc/powerpc32/powerpc64/fpu/Makefile: Moved.
5735 * sysdeps/powerpc/powerpc32/powerpc64/fpu/mpa.c: Likewise.
5736 * sysdeps/powerpc/powerpc32/power4/fpu/Makefile: To here.
5737 * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
5738
57392006-09-29 Steven Munroe <sjmunroe@us.ibm.com>
5740
5741 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lrint.S: New file.
5742 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: New file.
5743 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: New file.
5744 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: New file.
5745
57462006-09-28 Steven Munroe <sjmunroe@us.ibm.com>
5747
5748 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: New file.
5749 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llroundf.S: New file.
5750 * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: New file.
5751 * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: New file.
5752 * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: New file.
5753 * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: New file.
5754
57552006-08-31 Steven Munroe <sjmunroe@us.ibm.com>
5756
5757 * sysdeps/powerpc/powerpc32/powerpc64/fpu/Makefile: New file.
5758 * sysdeps/powerpc/powerpc32/powerpc64/fpu/mpa.c: New file.
5759 * sysdeps/powerpc/powerpc64/power4/fpu/Makefile: New file.
5760 * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: New file.
5761
57622006-06-15 Steven Munroe <sjmunroe@us.ibm.com>
5763
5764 * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceil.S: New file.
5765 * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceilf.S: New file.
5766 * sysdeps/powerpc/powerpc32/power5+/fpu/s_floor.S: New file.
5767 * sysdeps/powerpc/powerpc32/power5+/fpu/s_floorf.S: New file.
5768 * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S: New file.
5769 * sysdeps/powerpc/powerpc32/power5+/fpu/s_roundf.S: New file.
5770 * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S: New file.
5771 * sysdeps/powerpc/powerpc32/power5+/fpu/s_truncf.S: New file.
5772 * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceil.S: New file.
5773 * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceilf.S: New file.
5774 * sysdeps/powerpc/powerpc64/power5+/fpu/s_floor.S: New file.
5775 * sysdeps/powerpc/powerpc64/power5+/fpu/s_floorf.S: New file.
5776 * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S: New file.
5777 * sysdeps/powerpc/powerpc64/power5+/fpu/s_roundf.S: New file.
5778 * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S: New file.
5779 * sysdeps/powerpc/powerpc64/power5+/fpu/s_truncf.S: New file.
5780
57812006-03-20 Steven Munroe <sjmunroe@us.ibm.com>
5782
5783 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S: New file.
5784 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrintf.S: New file.
5785
57862007-06-01 Steven Munroe <sjmunroe@us.ibm.com>
5787
5788 * sysdeps/powerpc/powerpc32/power6/memset.S: New file.
5789 * sysdeps/powerpc/powerpc64/power6/memset.S: New file.
5790
57912007-05-31 Steven Munroe <sjmunroe@us.ibm.com>
5792
5793 * sysdeps/powerpc/powerpc32/970/Implies: New file.
5794 * sysdeps/powerpc/powerpc32/power5/Implies: New file.
5795 * sysdeps/powerpc/powerpc32/power5+/Implies: New file.
5796 * sysdeps/powerpc/powerpc32/power6/Implies: New file.
5797 * sysdeps/powerpc/powerpc32/power6x/Implies: New file.
5798 * sysdeps/powerpc/powerpc64/970/Implies: New file.
5799 * sysdeps/powerpc/powerpc64/power5/Implies: New file.
5800 * sysdeps/powerpc/powerpc64/power5+/Implies: New file.
5801 * sysdeps/powerpc/powerpc64/power6/Implies: New file.
5802 * sysdeps/powerpc/powerpc64/power6x/Implies: New file.
5803
58042007-05-21 Steven Munroe <sjmunroe@us.ibm.com>
5805
5806 * sysdeps/powerpc/powerpc32/power4/memset.S: New file
5807
58082007-03-13 Steven Munroe <sjmunroe@us.ibm.com>
5809
5810 * sysdeps/powerpc/powerpc64/memcpy.S: Improve aligned loop to minimize
5811 branch miss-predicts. Ensure that cache line crossing does not impact
5812 dispatch grouping.
5813
58142006-12-13 Steven Munroe <sjmunroe@us.ibm.com>
5815
5816 * sysdeps/powerpc/powerpc64/power4/memcopy.h: Replace with include
5817 "../../powerpc32/power4/memcopy.h".
5818 * sysdeps/powerpc/powerpc64/power4/wordcopy.c: Replace with include
5819 "../../powerpc32/power4/wordcopy.c".
5820
58212006-10-03 Steven Munroe <sjmunroe@us.ibm.com>
5822
5823 * sysdeps/powerpc/powerpc32/powerpc64/Makefile: Moved.
5824 * sysdeps/powerpc/powerpc32/powerpc64/memcopy.h: Likewise.
5825 * sysdeps/powerpc/powerpc32/powerpc64/wordcopy.c: Likewise.
5826 * sysdeps/powerpc/powerpc32/power4/Makefile: To here.
5827 * sysdeps/powerpc/powerpc32/power4/memcopy.h: Likewise.
5828 * sysdeps/powerpc/powerpc32/power4/wordcopy.c: Likewise.
5829
58302006-09-10 Steven Munroe <sjmunroe@us.ibm.com>
5831
5832 * sysdeps/powerpc/powerpc32/power6/memcpy.S: New file.
5833
58342006-08-31 Steven Munroe <sjmunroe@us.ibm.com>
5835
5836 * sysdeps/powerpc/powerpc32/power6/wordcopy.c: New file.
5837 * sysdeps/powerpc/powerpc32/powerpc64/Makefile: New file.
5838 * sysdeps/powerpc/powerpc32/powerpc64/memcopy.h: New file.
5839 * sysdeps/powerpc/powerpc32/powerpc64/wordcopy.c: New file.
5840 * sysdeps/powerpc/powerpc64/power4/Makefile: New file.
5841 * sysdeps/powerpc/powerpc64/power4/memcopy.h: New file.
5842 * sysdeps/powerpc/powerpc64/power4/wordcopy.c: New file.
5843 * sysdeps/powerpc/powerpc64/power6/wordcopy.c: New file.
5844
58452006-07-06 Steven Munroe <sjmunroe@us.ibm.com>
5846
5847 * sysdeps/powerpc/powerpc64/power6/memcpy.S: New file.
5848
58492006-03-20 Steven Munroe <sjmunroe@us.ibm.com>
5850
5851 * sysdeps/powerpc/powerpc32/power4/memcmp.S: New file.
5852 * sysdeps/powerpc/powerpc32/power4/memcpy.S: New file.
5853 * sysdeps/powerpc/powerpc32/power4/memset.S: New file.
5854 * sysdeps/powerpc/powerpc32/power4/strncmp.S: New file.
5855 * sysdeps/powerpc/powerpc64/power4/memcmp.S: New file.
5856 * sysdeps/powerpc/powerpc64/power4/memcpy.S: New file.
5857 * sysdeps/powerpc/powerpc64/power4/strncmp.S: New file.
5858
5b55e1d3
RM
58592007-05-29 Roland McGrath <roland@redhat.com>
5860
5861 * po/Makefile (po-sed-cmd): New variable.
5862 (libc.pot.files): Move sed command text in there, avoid \ inside ''.
5863
5da4373c
UD
58642007-05-29 Ulrich Drepper <drepper@redhat.com>
5865
4b5e7304
UD
5866 * crypt/md5-crypt.c: Fix comment.
5867
5da4373c
UD
5868 * nscd/nscd_helper.c (get_mapping): Handle short replies instead
5869 of crashing. When this is the case or if the reply is malformed,
5870 don't try to close the new file descriptor since it does not
5871 exist.
5872 Patch in part by Guillaume Chazarain <guichaz@yahoo.fr>.
5873
40f57573
UD
58742007-05-28 Jakub Jelinek <jakub@redhat.com>
5875
5876 * sysdeps/unix/sysv/linux/futimes.c (miss_utimensat): Don't define
5877 if __NR_utimensat is not defined.
5878
6df7ffad
UD
58792007-05-26 Ulrich Drepper <drepper@redhat.com>
5880
5881 * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Include <sysdep.h>.
5882
47ad95ab
UD
58832007-05-25 Jakub Jelinek <jakub@redhat.com>
5884
5885 * io/bits/fcntl2.h (__open_2): Add nonnull attribute.
5886 (open): Fix comment typos. Don't call __open_2 if flags
5887 is a compile time constant without O_CREAT.
5888 (__open64_2): Add nonnull attribute.
5889 (open64): Fix comment typos. Don't call __open64_2 if flags
5890 is a compile time constant without O_CREAT.
5891 (__openat_2): Add nonnull attribute, fix nonnull attribute
5892 on redirect.
5893 (openat): Fix comment typos. Don't call __openat_2 if flags
5894 is a compile time constant without O_CREAT.
5895 (__openat64_2): Add nonnull attribute, fix nonnull attribute
5896 on redirect.
5897 (openat64): Fix comment typos. Don't call __openat64_2 if flags
5898 is a compile time constant without O_CREAT.
5899
ddfd0535
UD
59002007-05-24 Ulrich Drepper <drepper@redhat.com>
5901
5902 * Makerules (sysd-rules): Define PTW for ptw-* files.
5903 * Versions: Define GLIBC_2.7 for libc.
5904 * include/stdio.h: Declare __fortify_fail.
5905 * debug/fortify_fail.c: New file.
5906 * debug/Makefile (routines): Add fortify_fail.
5907 * debug/chk_fail.c: Use __fortify_fail.
5908 * debug/stack_chk_fail.c: Likewise.
5909 * io/Versions: Export __open_2, __open64_2, __openat_2, and
5910 __openat64_2 for GLIBC_2.7.
5911 * io/fcntl.h: When compiling with fortification, include bits/fcntl2.h.
5912 * io/open.c: Define *_2 variant of function which checks for O_CREAT
5913 and fails if necessary.
5914 * io/open64.c: Likewise.
5915 * io/openat.c: Likewise.
5916 * io/openat64.c: Likewise.
5917 * sysdeps/unix/sysv/linux/open64.c: Likewise.
5918 * sysdeps/unix/sysv/linux/openat.c: Likewise.
5919 * sysdeps/unix/sysv/linux/openat64.c: Likewise.
5920 * io/bits/fcntl2.h: New file.
5921 * include/fcntl.h: Declare __open_2, __open64_2, __openat_2, and
5922 __openat64_2.
5923 * include/bits/fcntl2.h: New file.
5924 * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
5925 Add open_2.
5926 * sysdeps/unix/sysv/linux/open_2.c: New file.
5927
bfe6f5fa
UD
59282007-05-21 Ulrich Drepper <drepper@redhat.com>
5929
6d59823c
UD
5930 * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Pass correct value
5931 as second parameter to handle_intel.
5932
e2b1e343
UD
5933 * nscd/aicache.c (addhstaiX): If reported TTL is zero don't cache
5934 the entry.
5935
bfe6f5fa
UD
5936 * sysdeps/unix/sysv/linux/x86_64/sysconf.c: Move cache information
5937 handling to ...
5938 * sysdeps/x86_64/cacheinfo.c: ... here. New file.
5939 * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
5940 cacheinfo.
5941 * sysdeps/x86_64/memcpy.S: Complete rewrite.
5942 * sysdeps/x86_64/mempcpy.S: Adjust appropriately.
5943 Patch by Evandro Menezes <evandro.menezes@amd.com>.
5944
5945 * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: New file.
5946
1f4843fb
UD
59472007-05-21 Jakub Jelinek <jakub@redhat.com>
5948
2c2c003a
UD
5949 [BZ #4525]
5950 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add epoll_pwait.
5951 * sysdeps/unix/sysv/linux/epoll_pwait.c: New file.
5952 * sysdeps/unix/sysv/linux/syscalls.list (epoll_pwait): Remove.
5953
5954 * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h (epoll_pwait): Declare.
5955
af269dd9
UD
5956 [BZ #4514]
5957 * stdio-common/vfprintf.c (vfprintf): Don't shadow workstart variable,
5958 reinitialize workend at the start of each do_positional format spec
5959 loop, free workstart before do_positional loops.
5960 (printf_unknown): Fix size of work_buffer.
5961 * stdio-common/tst-sprintf.c (main): Add 3 new testcases.
5962
1f4843fb
UD
5963 * malloc/hooks.c (MALLOC_STATE_VERSION): Bump.
5964 (public_sET_STATe): If ms->version < 3, put all chunks into
5965 unsorted chunks and clear {fd,bk}_nextsize fields of largebin
5966 chunks.
5967
5968 * malloc/malloc.c [MALLOC_DEBUG]: Revert 2007-05-13 changes.
5969 * malloc/hooks.c: Likewise.
5970 * malloc/arena.c: Likewise.
5971 * malloc/malloc.c (do_check_malloc_state): Don't assert
5972 n_mmaps is not greater than n_mmaps_max. This removes the need
5973 for the previous change.
5974
5975 * malloc/Makefile (CFLAGS-malloc.c): Revert accidental
5976 2007-05-07 commit.
5977
12e8bbff
UD
59782007-05-19 Ulrich Drepper <drepper@redhat.com>
5979
5980 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PRIVATE_FUTEX):
5981 Define for kernel >= 2.6.22.
69e5cbf5 5982
12e8bbff 59832007-05-18 Ulrich Drepper <drepper@redhat.com>
6d59823c 5984
df94b641
UD
5985 * elf/dl-close.c (_dl_close_worker): When removing object from
5986 global scope, wait for all lookups to finish afterwards.
5987 * elf/dl-open.c (add_to_global): When global scope array must
5988 grow, allocate a new one and free old array only after all
5989 lookups finish.
5990 * elf/dl-runtime.c (_dl_fixup): Protect using global scope.
5991 (_dl_lookup_symbol_x): Likewise.
5992 * elf/dl-support.c: Define _dl_wait_lookup_done.
5993 * sysdeps/generic/ldsodefs.h (struct rtld_global): Add
5994 _dl_wait_lookup_done.
5995
2acd01ac
UD
5996 * malloc/malloc.c (do_check_chunk): Correct check for mmaped block
5997 not overlapping with arena.
5998
129abdd3
UD
5999 * malloc/mcheck.c (reallochook): If size==0, free the block.
6000
eb4b098a
UD
6001 * rt/tst-shm.c: Use fstat64 instead of fstat.
6002
69e5cbf5
UD
6003 * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Fix case where
6004 __NR_sync_file_range is not defined.
6005
a2ccc760
UD
60062007-05-17 Ulrich Drepper <drepper@redhat.com>
6007
bec51a30
UD
6008 Dummy files to prevent stub versions from being used.
6009 * sysdeps/x86_64/fpu/k_cosl.c: New file.
6010 * sysdeps/x86_64/fpu/k_rem_pio2l.c: New file.
6011 * sysdeps/x86_64/fpu/k_sinl.c: New file.
6012 * sysdeps/x86_64/fpu/k_tanl.c: New file.
6013
a2ccc760
UD
6014 * version.h (VERSION): Set to 2.6.90.
6015
1a31b586
UD
60162007-05-14 Ulrich Drepper <drepper@redhat.com>
6017
a2ccc760
UD
6018 * version.h (VERSION): Define to 2.6.
6019 * include/features.h (__GLIBC_MINOR__): Define to 6.
2c1d6172 6020
1d47e92f
UD
6021 * malloc/malloc.c: Use all small bin slots on 64-bit archs.
6022
6023 * malloc/malloc.c (largebin_index): Really have 32 buckets with 64
6024 sizes.
366ad8fd 6025
1a31b586 60262007-05-13 Ulrich Drepper <drepper@redhat.com>
87e66335 6027
366ad8fd
UD
6028 * malloc/malloc.c [MALLOC_DEBUG]: Keep track of current maximum
6029 number of mmaps. n_mmaps_max is the target.
6030 * malloc/hooks.c: Likewise.
6031 * malloc/arena.c: Likewise.
6032
11ed6713
AJ
60332007-05-12 Andreas Jaeger <aj@suse.de>
6034
6035 * sysdeps/unix/sysv/linux/tst-getcpu.c: Include <unistd.h> for
6036 getpid.
6037
d65ef3dd
UD
60382007-05-11 Ulrich Drepper <drepper@redhat.com>
6039
2e81d449
UD
6040 * elf/dl-close.c (_dl_close_worker): Help gcc to optimize by
6041 adding new variables.
6042
d65ef3dd 6043 * elf/dl-open.c (add_to_global): Introduce variable ns to help gcc
2e81d449 6044 optimize. Completely extend global scope array before making the
d65ef3dd
UD
6045 new entries visible.
6046
c27d2078
UD
60472007-05-10 Ulrich Drepper <drepper@redhat.com>
6048
341c566f
UD
6049 * sysdeps/unix/sysv/linux/tst-getcpu.c: New file.
6050 * sysdeps/unix/sysv/linux/Makefile [subdir=posix] (tests): Add
6051 tst-getcpu.
6052
6053 * include/link.h: Move l_version and l_nversion members around to
6054 fill gaps.
6055
a53fa282
UD
6056 * scripts/check-c++-types.sh: Don't use -fnu89-inline option.
6057
3771196d
UD
6058 * sysdeps/unix/sysv/linux/sched_setaffinity.c
6059 (__sched_setaffinity_new): If syscall was successful and
6060 RESET_VGETCPU_CACHE is defined, use it before returning.
6061 * sysdeps/unix/sysv/linux/x86_64/sched_setaffinity.c: New file.
6062
f9bf102d
UD
6063 * io/sys/stat.h: Make sure struct timespec is defined for
6064 __USE_ATFILE.
6065
c27d2078
UD
6066 * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Define UTIME_NOW and
6067 UTIME_OMIT.
6068 * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
6069 * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
6070 * sysdeps/unix/sysv/linux/alpha/bits/stat.h: Likewise.
6071 * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
6072 * sysdeps/unix/sysv/linux/bits/stat.h: Likewise.
6073 * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
6074 * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_UTIMENSAT.
6075 * io/sys/stat.h: Declare utimensat, futimens.
6076 * io/utimensat.c: New file.
6077 * io/futimens.c: New file.
6078 * sysdeps/unix/sysv/linux/utimensat.c: New file.
6079 * sysdeps/unix/sysv/linux/futimens.c: New file.
6080 * io/Makefile (routines): Add utimensat, futimens.
6081 * io/Versions: Add utimensat, futimens to GLIBC_2.6.
6082 * sysdeps/unix/sysv/linux/lutimes.c: New file.
6083 * sysdeps/unix/sysv/linux/futimes.c: Use utimensat syscall if
6084 available.
6085
6086 * include/sys/cdefs.h: Redefine __nonnull so that test for
6087 incorrect parameters in the libc code itself are not omitted.
6088
cf6b0980
JJ
60892007-05-09 Jakub Jelinek <jakub@redhat.com>
6090
c1dfd7e6
JJ
6091 * sysdeps/ia64/fpu/fraiseexcpt.c (feraiseexcept): Don't raise overflow
6092 exception in addition to inexact when asked to raise only FE_INEXACT.
6093
cf6b0980
JJ
6094 [BZ #3427]
6095 * sysdeps/s390/fpu/feholdexcpt.c (feholdexcept): Don't clear exceptions
6096 in *envp.
6097
df7b6fea
UD
60982007-05-07 Ulrich Drepper <drepper@redhat.com>
6099
6100 [BZ #4403]
6101 * string/strfry.c (strfry): Make result more random.
6102
37f40235
RH
61032007-05-07 Richard Henderson <rth@redhat.com>
6104
6105 * sysdeps/alpha/fpu/bits/mathinline.h (__isnanl): Don't define
6106 if __NO_LONG_DOUBLE_MATH.
6107 * sysdeps/unix/sysv/linux/alpha/ioperm.c: If BWX insns not
df7b6fea 6108 available in the compiler, add .arch directive to the assembly.
37f40235
RH
6109
61102007-05-07 Jakub Jelinek <jakub@redhat.com>
6111
6112 * sysdeps/alpha/fpu/s_nearbyint.c (nearbyintl): Fix version on
6113 compat_symbol to GLIBC_2_1.
6114 * sysdeps/alpha/fpu/s_fmin.S (fminl): Likewise.
6115 * sysdeps/alpha/fpu/s_trunc.c (truncl): Likewise.
6116 * sysdeps/alpha/fpu/s_fmax.S (fmaxl): Likewise.
6117 * sysdeps/alpha/fpu/s_lrint.c (lrintl, llrintl): Likewise.
6118 * sysdeps/alpha/fpu/s_lround.c (lroundl, llroundl): Likewise.
6119 * sysdeps/alpha/fpu/s_round.c (roundl): Likewise.
6120 * sysdeps/alpha/fpu/s_isnan.c (isnanl): Provide compat_symbol in
6121 libc, not libm.
6122 (__isnanl): New compat_symbol.
6123
c7fd3362
JJ
61242007-05-07 Ulrich Drepper <drepper@redhat.com>
6125 Jakub Jelinek <jakub@redhat.com>
6126
6127 * malloc/arena.c (heap_info): Add mprotect_size field, adjust pad.
6128 (new_heap): Initialize mprotect_size.
6129 (grow_heap): When growing, only mprotect from mprotect_size till
6130 new_size if mprotect_size is smaller. When shrinking, use PROT_NONE
6131 MMAP for __libc_enable_secure only, otherwise use MADV_DONTNEED.
6132
4a59e9ad 61332007-04-30 Steven Munroe <sjmunroe@us.ibm.com>
37f40235 6134 Peter Bergner <bergner@us.ibm.com>
4a59e9ad
UD
6135
6136 * sysdeps/powerpc/bits/fenv.h: Declare __fe_mask_env extern.
6137 Define FE_NOMASK_ENV as FE_EANBLED_ENV. Define FE_MASK_ENV.
6138 * sysdeps/powerpc/fpu/Makefile: Add fe_mask to libm-support.
6139 * sysdeps/powerpc/fpu/fe_mask.c: New file.
6140 * sysdeps/powerpc/fpu/fe_nomask.c: Correct comment.
6141 * sysdeps/powerpc/fpu/fedisblxcpt.c (fedisableexcept):
6142 Call __fe_mask_env() if all FP exceptions disabled.
6143 * sysdeps/powerpc/fpu/feholdexcpt.c (feholdexcept): Copy high 32-bits
6144 from old FPSCR to new fenv to propagate DFP rounding modes.
6145 Call __fe_mask_env() if FP exceptions previously enabled.
6146 * sysdeps/powerpc/fpu/fesetenv.c (fesetenv): Change mask to merge
6147 exceptions from env. Use __fe_nomask_env() or __fe_mask_env() when
6148 transitioning from all exceptions disabled to any exception enabled
6149 or visa versa.
6150 * sysdeps/powerpc/fpu/feupdateenv.c (__feupdateenv): Change mask to
6151 merge exceptions from env. Call __fe_nomask_env or __fe_mask_env
6152 when transitioning from all exceptions disabled to any exception
6153 enabled or visa versa.
6154 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fe_nomask.c: Moved to...
6155 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c: ...here.
6156 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c: Moved to...
6157 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c: ...here.
6158 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c: New file.
6159 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c: New file.
6160
aa75f64c
UD
61612007-05-06 Ulrich Drepper <drepper@redhat.com>
6162
15eca720 6163 [BZ #4465]
aa75f64c
UD
6164 * posix/unistd.h: Remove __THROW from fdatasync.
6165
711deb05
UD
61662007-05-06 Mike Frysinger <vapier@gentoo.org>
6167
15eca720 6168 [BZ #4465]
711deb05
UD
6169 * sysdeps/unix/sysv/linux/syscalls.list (fdatasync): Add "C" to args.
6170
ffecd39b
UD
61712007-05-06 Ulrich Drepper <drepper@redhat.com>
6172
49a8eb75
UD
6173 * stdio-common/vfprintf.c (process_string_arg): Optimize
6174 ridiculous precision in wide char code printing multi-byte string.
6175 Reported by Jim Meyering <jim@meyering.net>.
6176
ffecd39b
UD
6177 [BZ #4131]
6178 * elf/dl-addr.c (_dl_addr): Compare address with actual segment
6179 boundaries to work around systems with overlapping binary loading.
6180 Based on a patch by Suzuki <suzuki@in.ibm.com>.
6181
b16dba4c
UD
61822007-05-04 Ulrich Drepper <drepper@redhat.com>
6183
30b323ab
UD
6184 * stdio-common/vfprintf.c (process_string_arg): Adjust call to
6185 __mbsnrtowcs after last change.
6186
b16dba4c
UD
6187 * locale/programs/linereader.c (get_symname): Fix adding final NUL.
6188 (get_ident): Likewise.
6189
37002cbc
JJ
61902007-05-03 Jakub Jelinek <jakub@redhat.com>
6191
6192 * soft-fp/op-common.h (FP_TRUNC): Replace raising of FP_EX_INEXACT
6193 with setting the sticky bit.
6194 * math/test-misc.c (main): Add more truncation tests.
6195
61962007-04-14 Uros Bizjak <ubizjak@gmail.com>
6197
6198 * soft-fp/floatunsidf.c (__floatunsidf): Use DFtype instead of
6199 double in the function declaration.
6200 * soft-fp/floatundidf.c (__floatundidf): Use DFtype instead of
6201 double in the function declaration.
6202 * soft-fp/floatunsisf.c (__floatunsisf): Use SFtype instead of
6203 float in the function declaration.
6204 * soft-fp/floatunsisf.c (__floatunsisf): Use SFtype instead of
6205 float in the function declaration.
6206
6207 * soft-fp/extended.h (FP_UNPACK_RAW_E): Do not increase X##_e for
6208 denormal operands. Do not generate FP_EX_DENORM exception.
6209 (FP_UNPACK_RAW_EP): Ditto.
6210 (FP_UNPACK_SEMIRAW_E): Use FP_UNPACK_RAW_E instead of
6211 undefined _FP_UNPACK_RAW_E.
6212 (FP_UNPACK_SEMIRAW_EP): Use FP_UNPACK_RAW_EP instead of
6213 undefined _FP_UNPACK_RAW_EP.
6214 (FP_PACK_SEMIRAW_E): Use FP_PACK_RAW_E instead of
6215 undefined _FP_PACK_RAW_E.
6216 (FP_PACK_SEMIRAW_EP): Use FP_PACK_RAW_EP instead of
6217 undefined _FP_PACK_RAW_EP.
6218
d9ac82d0
UD
6219 * soft-fp/op-2.h (_FP_FRAC_COPY_2_2): Define as alias to
6220 _FP_FRAC_COPY_2.
6221 * soft-fp/op-4.h (_FP_FRAC_COPY_2_2): Define as alias to
6222 _FP_FRAC_COPY_4.
37002cbc
JJ
6223
62242007-04-16 Uros Bizjak <ubizjak@gmail.com>
6225 Jakub Jelinek <jakub@redhat.com>
6226
6227 * soft-fp/op-common.h (FP_EXTEND): Do not abort when
6228 _FP_EXPBIAS_##dfs == _FP_EXPBIAS_##sfs. Handle denormals for
6229 this case.
6230 * soft-fp/op-common.h (FP_TRUNC): Ditto.
6231
002f0b0b
JJ
62322007-05-03 Jakub Jelinek <jakub@redhat.com>
6233
6234 * math/test-misc.c (main): Add tests for rounding long double
6235 values close to smallest double denormalized value to double.
6236
62372007-04-30 Joseph Myers <joseph@codesourcery.com>
6238
6239 * soft-fp/op-common.h (FP_TRUNC): Correct off-by-one error in
6240 condition for truncating to 0. Set sticky bit for such
6241 truncation.
6242
57433ede
UD
62432007-05-02 Jakub Jelinek <jakub@redhat.com>
6244
6245 * stdio-common/vfprintf.c (process_string_arg): Use a VLA rather than
6246 fixed length array for ignore.
6247
c01c2455
UD
62482007-04-30 Ulrich Drepper <drepper@redhat.com>
6249
6250 [BZ #4438]
6251 * stdio-common/vfprintf.c (process_string_arg): Don't overflow the
6252 stack for large precisions.
1cb04337
UD
6253 * stdio-common/test-vfprintf.c (main): Add test for large
6254 precision.
c01c2455 6255
37f02b1d
UD
62562007-04-30 Jakub Jelinek <jakub@redhat.com>
6257
b866373d
UD
6258 * stdio-common/printf_fp.c (___printf_fp): Don't print negative sign
6259 for exponent 0.
6260 * stdio-common/tfformat.c (sprint_doubles): Add a new test.
6261
37f02b1d
UD
6262 [BZ #4439]
6263 * resolv/inet_ntop.c (inet_ntop4): Take terminating '\0' into
6264 account in the size check.
6265 * resolv/tst-inet_ntop.c: New test.
6266 * resolv/Makefile (tests): Add tst-inet_ntop.
6267
7ecfbd38
UD
62682007-04-30 Ulrich Drepper <drepper@redhat.com>
6269 Jakub Jelinek <jakub@redhat.com>
6270
6271 [BZ #4349]
6272 * malloc/malloc.c: Keep separate list for first blocks on the bin
6273 lists with a given size. This helps skipping over list elements
6274 we know won't fit in two places.
6275 Inspired by a patch by Tomash Brechko <tomash.brechko@gmail.com>.
6276
e53f0f51
UD
62772007-04-28 Ulrich Drepper <drepper@redhat.com>
6278
6279 [BZ #4102]
6280 * sysdeps/posix/getaddrinfo.c (default_labels): Assign separate
6281 label to Teredo tunnel addresses 2001://32.
6282
109f51f2
UD
62832007-04-27 Ulrich Drepper <drepper@redhat.com>
6284
762422d1
UD
6285 * locale/programs/ld-collate.c (collate_read): Allow order_start
6286 after copy.
6287
61d5a67f
UD
6288 * locale/programs/ld-collate.c (collate_read): Fix printing of
6289 error message.
6290
6291 [BZ #3213]
6292 * locale/C-translit.h.in: Add entry for U2044.
6293
109f51f2
UD
6294 [BZ #4342]
6295 * stdio-common/vfscanf.c (_IO_vfscanf_internal): Allow
6296 hexa-decimal floats without exponent.
6297 * stdio-common/tstscanf.c (main): Adjust Test 8 test for success.
6298
ec08f13d
UD
62992007-04-25 Ulrich Drepper <drepper@redhat.com>
6300
6301 * sysdeps/unix/sysv/linux/bits/sched.h: Declare sched_getcpu.
6302 * sysdeps/unix/sysv/linux/sched_getcpu.c: New file.
6303 * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: New file.
6304 * sysdeps/unix/sysv/linux/Versions: Export sched_getcpu for
6305 GLIBC_2.6.
bce20b9a
UD
6306 * sysdeps/unix/sysv/linux/Makefile [subdir=posix] (sysdep_routines):
6307 Add sched_getcpu.
ec08f13d 6308
41967e1c
JJ
63092007-04-25 Jakub Jelinek <jakub@redhat.com>
6310
6311 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Return -1 instead
6312 of 0 after the out_fail label.
6313
ba508da3
UD
63142007-04-25 Ulrich Drepper <drepper@redhat.com>
6315
6316 [BZ #4406]
109f51f2 6317 * iconv/gconv_charset.h (strip): Allow ':'.
ba508da3
UD
6318 * iconv/iconv_open.c (iconv_open): Adjust comment.
6319
9c8d03d9
JJ
63202007-04-25 Jakub Jelinek <jakub@redhat.com>
6321
6322 * libio/bits/stdio.h (fgetc_unlocked): Add extern inline optimized
6323 version.
6324
2f1687b9
UD
63252007-04-23 Jakub Jelinek <jakub@redhat.com>
6326
6327 [BZ #4381]
6328 * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Ensure sufficient
6329 alignment of buffer and tmp_buffer.
6330 * nis/nss_nis/nis-hosts.c (internal_nis_gethostent_r,
6331 internal_gethostbyname2_r, _nss_nis_gethostbyaddr_r): Ensure sufficient
6332 alignment of buffer.
6333 * resolv/nss_dns/dns-hosts.c (getanswer_r): Likewise. Handle buflen
6334 bigger than INT_MAX.
6335 * resolv/nss_dns/dns-network.c (getanswer_r): Likewise. Add errnop and
6336 h_errnop arguments. Fail if buflen is too small.
6337 (_nss_dns_getnetbyname_r, _nss_dns_getnetbyaddr_r): Adjust callers.
6338
b64a9db8
JJ
63392007-04-23 Jakub Jelinek <jakub@redhat.com>
6340
6341 [BZ #4405]
6342 * iconvdata/gconv-modules (E13B): Add a missing slash to the alias
6343 name. Patch by Aurelien Jarno <aurelien@aurel32.net>.
6344
4d3144c9
RM
63452007-04-22 Roland McGrath <roland@redhat.com>
6346
6347 * elf/elf.h (NT_PRXFPREG): New macro.
6348
767b40bf
AJ
63492007-04-19 Andreas Jaeger <aj@suse.de>
6350
6351 [BZ #3905]
6352 * bits/in.h (IPV6_ROUTER_ALERT, IPV6_MTU_DISCOVER, IPV6_MTU,
6353 IPV6_RECVERR, IPV6_V6ONLY, IPV6_JOIN_ANYCAST, IPV6_LEAVE_ANYCAST):
6354 Added.
6355
2592d1ec
UD
63562007-04-19 Ulrich Drepper <drepper@redhat.com>
6357
6358 * include/sys/mman.h: Mark madvise hidden.
d07d044e 6359 * misc/madvise.c: Add libc_hidden_def.
2592d1ec 6360
7ab174ed
UD
63612007-04-06 Jakub Jelinek <jakub@redhat.com>
6362
6363 * nis/nis_domain_of.c (__nis_domain_of): New function.
6364 * include/rpcsvc/nislib.h (__nis_domain_of): New prototype.
6365 * nis/nis_lookup.c (nis_lookup): Use __nis_domain_of.
6366 * nis/nis_call.c (rec_dirsearch): Likewise.
6367 (first_shoot): Likewise. Remove search_parent_first argument.
6368 (struct nis_server_cache): Rename search_parent_first field
6369 to search_parent.
6370 (nis_server_cache_search, nis_server_cache_add): Rename
6371 search_parent_first argument to search_parent.
6372 (__nisfind_server): Likewise. If search_parent, call
6373 __nis_domain_of.
6374
b17c265f
UD
63752007-04-18 Ulrich Drepper <drepper@redhat.com>
6376
6377 * sysdeps/posix/getaddrinfo.c: Remove commented-out code.
6378
b7674b11
UD
63792007-04-17 Ulrich Drepper <drepper@redhat.com>
6380
6381 [BZ #4368]
6382 * stdlib/stdlib.h: Remove obsolete part of comment for realpath.
6383
faf3ad69
UD
63842007-04-16 Ulrich Drepper <drepper@redhat.com>
6385
6386 [BZ #4364]
6387 * posix/unistd.h (_XOPEN_VERSION): Define appropriately for SUSv3.
6388
c14f245c
UD
63892007-04-15 Jakub Jelinek <jakub@redhat.com>
6390
6391 * locale/programs/locarchive.c (INITIAL_NUM_NAMES,
6392 INITIAL_SIZE_STRINGS, INITIAL_NUM_LOCREC): Update to accomodate
6393 current number of locales in SUPPORTED.
6394 (create_archive): Initialize serial.
6395 (enlarge_archive): Preserve aliases rather than duplicating
6396 their locrecs.
6397
d40e67f5
UD
63982007-04-13 Jakub Jelinek <jakub@redhat.com>
6399
993a5d66
UD
6400 * libio/genops.c (_IO_default_finish): Call _IO_lock_fini
6401 after _IO_un_link, not before it.
6402
d40e67f5
UD
6403 * stdio-common/printf_fp.c (___printf_fp): Fix exponent -4
6404 special case handling when wcp == wstartp + 1. Fix a comment typo.
6405 * stdio-common/tfformat.c (sprint_doubles): Add a new testcase.
6406
0fca3153
UD
64072007-03-30 Jakub Jelinek <jakub@redhat.com>
6408
6409 * libio/libio.h (__underflow, __uflow, __overflow, __wunderflow,
6410 __wuflow, __woverflow, _IO_getc, _IO_putc, _IO_peekc_locked, _IO_padn,
6411 _IO_sgetn, _IO_seekoff, _IO_seekpos, _IO_getwc, _IO_putwc, _IO_wpadn):
6412 Remove __THROW.
6413 * libio/fileops.c (new_do_write, _IO_file_xsgetn_mmap,
6414 _IO_file_xsgetn_maybe_mmap): Likewise.
6415 * libio/oldfileops.c (old_do_write): Likewise.
6416 * libio/libioP.h (_IO_switch_to_get_mode, _IO_switch_to_wget_mode,
6417 _IO_init_marker, _IO_init_wmarker, _IO_default_uflow,
6418 _IO_wdefault_uflow, _IO_default_setbuf, _IO_default_seekpos,
6419 _IO_do_write, _IO_new_do_write, _IO_old_do_write, _IO_wdo_write,
6420 _IO_flush_all_lockp, _IO_flush_all, _IO_cleanup,
6421 _IO_flush_all_linebuffered, _IO_new_fgetpos, _IO_old_fgetpos,
6422 _IO_new_fsetpos, _IO_old_fsetpos, _IO_new_fgetpos64,
6423 _IO_old_fgetpos64, _IO_new_fsetpos64, _IO_old_fsetpos64,
6424 _IO_file_setbuf, _IO_file_seekoff, _IO_file_xsputn, _IO_file_xsgetn,
6425 _IO_file_underflow, _IO_file_underflow_mmap,
6426 _IO_file_underflow_maybe_mmap, _IO_file_overflow, _IO_file_attach,
6427 _IO_file_open, _IO_file_fopen, _IO_file_write, _IO_file_read,
6428 _IO_file_sync, _IO_file_close_it, _IO_file_finish,
6429 _IO_new_file_attach, _IO_new_file_close_it, _IO_new_file_finish,
6430 _IO_new_file_fopen, _IO_new_file_setbuf, _IO_file_setbuf_mmap,
6431 _IO_new_file_sync, _IO_new_file_underflow, _IO_new_file_overflow,
6432 _IO_new_file_seekoff, _IO_new_file_write, _IO_new_file_xsputn,
6433 _IO_old_file_setbuf, _IO_old_file_seekoff, _IO_old_file_xsputn,
6434 _IO_old_file_underflow, _IO_old_file_overflow, _IO_old_file_attach,
6435 _IO_old_file_fopen, _IO_old_file_write, _IO_old_file_sync,
6436 _IO_old_file_close_it, _IO_old_file_finish, _IO_wfile_xsputn,
6437 _IO_wfile_setbuf, _IO_wfile_sync, _IO_wfile_underflow,
6438 _IO_wfile_overflow, _IO_wfile_seekoff, _IO_old_proc_open,
6439 _IO_old_proc_close, _IO_getdelim, _IO_flush_all_internal,
6440 _IO_adjust_column_internal, _IO_default_uflow_internal,
6441 _IO_default_xsgetn_internal, _IO_wdefault_xsputn_internal,
6442 _IO_wdefault_xsgetn_internal, _IO_wdefault_uflow_internal,
6443 _IO_file_setbuf_internal, _IO_file_seekoff_internal,
6444 _IO_file_xsputn_internal, _IO_file_xsgetn_internal,
6445 _IO_file_close_it_internal, _IO_file_underflow_internal,
6446 _IO_file_overflow_internal, _IO_file_attach_internal,
6447 _IO_file_fopen_internal, _IO_file_sync_internal,
6448 _IO_file_finish_internal, _IO_wfile_xsputn_internal,
6449 _IO_wfile_seekoff_internal, _IO_wfile_sync_internal,
6450 _IO_switch_to_wget_mode_internal, _IO_padn_internal,
6451 _IO_switch_to_get_mode_internal, _IO_seekoff_unlocked,
6452 _IO_seekpos_unlocked): Likewise.
6453 (_IO_strtod, _IO_dtoa, _IO_outfloat, _IO_read, _IO_write,
6454 _IO_lseek, _IO_close, _IO_fstat): Remove unused prototypes.
6455
07358add
JJ
64562007-04-16 Jakub Jelinek <jakub@redhat.com>
6457
6458 * locale/programs/locarchive.c (show_archive_content): Fix sizeof
6459 argument in xmalloc size computation.
6460
7a82b74f
UD
64612007-04-01 Jakub Jelinek <jakub@redhat.com>
6462
6463 * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl): Use
6464 math_opt_barrier and math_force_eval macros.
6465
3e336a87
UD
64662007-03-27 Jakub Jelinek <jakub@redhat.com>
6467
6468 [BZ #3306]
6469 * math/math_private.h (math_opt_barrier, math_force_eval): Define.
6470 * sysdeps/i386/fpu/math_private.h: New file.
6471 * sysdeps/x86_64/fpu/math_private.h: New file.
6472 * math/s_nexttowardf.c (__nexttowardf): Use math_opt_barrier and
6473 math_force_eval macros. Use "+m" constraint on asm rather than
6474 "=m" and "m".
6475 * math/s_nextafter.c (__nextafter): Likewise.
6476 * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c (__nexttoward):
6477 Likewise.
6478 * sysdeps/ieee754/flt-32/s_nextafterf.c (__nextafterf): Likewise.
6479 * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward): Likewise.
6480 * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
6481 * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Use
6482 math_opt_barrier and math_force_eval macros.
6483 * sysdeps/ieee754/ldbl-128/s_nextafterl.c (__nextafterl): Likewise.
6484 * sysdeps/ieee754/ldbl-96/s_nextafterl.c (__nextafterl): Likewise.
6485 * sysdeps/i386/fpu/s_nexttoward.c: Include float.h.
6486 (__nexttoward): Use math_opt_barrier and
6487 math_force_eval macros. Use "+m" constraint on asm rather than
6488 "=m" and "m". Only use asm to force double result if
6489 FLT_EVAL_METHOD is 2.
6490 * sysdeps/i386/fpu/s_nexttowardf.c: Include float.h.
6491 (__nexttowardf): Use math_opt_barrier and
6492 math_force_eval macros. Use "+m" constraint on asm rather than
6493 "=m" and "m". Only use asm to force double result if
6494 FLT_EVAL_METHOD is not 0.
6495 * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Include float.h.
6496 (__nexttowardf): Use math_opt_barrier and
6497 math_force_eval macros. If FLT_EVAL_METHOD is not 0, force
6498 x to float using asm.
6499 * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c: Include float.h.
6500 (__nldbl_nexttowardf): Use math_opt_barrier and
6501 math_force_eval macros. If FLT_EVAL_METHOD is not 0, force
6502 x to float using asm.
6503 * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Include float.h.
6504 (__nexttowardf): Use math_opt_barrier and math_force_eval
6505 macros. If FLT_EVAL_METHOD is not 0, force x to float using asm.
6506 * math/bug-nextafter.c (zero, inf): New variables.
6507 (main): Add new tests.
6508 * math/bug-nexttoward.c (zero, inf): New variables.
6509 (main): Add new tests.
6510
a8c79c40
UD
65112007-03-22 Jakub Jelinek <jakub@redhat.com>
6512
6513 [BZ #3427]
6514 * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Clear all
6515 exceptions both in SW and MXCSR.
6516 * sysdeps/x86_64/fpu/feupdateenv.c: New file.
6517 * sysdeps/x86_64/fpu/feenablxcpt.c (feenableexcept): Remove dead code.
6518 * sysdeps/x86_64/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
6519 * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions
6520 in MXCSR if SSE is available.
6521 * sysdeps/i386/fpu/feupdateenv.c: Include unistd.h, dl-procinfo.h
6522 and ldsodefs.h.
6523 (__feupdateenv): Query exceptions also from MXCSR if SSE is available.
6524 Fix comment typo.
6525 * sysdeps/ia64/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions.
6526 Return 0 rather than 1.
6527 * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Fix comment typo.
6528 Remove incorrect part of a comment. Fix argument to feraiseexcept.
6529 * math/test-fenv.c (feholdexcept_tests): New function.
6530 (main): Call it.
6531
65322007-01-05 Richard B. Kreckel <kreckel@ginac.de>
6533
6534 [BZ #3427]
6535 * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions
6536 in SW.
6537
30a3aa75
JJ
65382007-04-13 Jakub Jelinek <jakub@redhat.com>
6539
6540 [BZ #4344]
6541 * elf/ldconfig.c (search_dir): Fix 2 off-by-2 errors.
6542 Reported by David Anderson <davea42@earthlink.net>.
6543
75587bfe
UD
65442007-04-07 Ulrich Drepper <drepper@redhat.com>
6545
6546 * posix/sys/wait.h: Remove unnecessary forward declaration.
6547
88fa1769
JJ
65482007-04-05 Jakub Jelinek <jakub@redhat.com>
6549
6550 * nis/nis_call.c (__nisfind_server): Replace (*dir)->do_servers
6551 with obj->do_servers after first_shoot.
6552
eab1bdfb
UD
65532007-04-03 Ulrich Drepper <drepper@redhat.com>
6554
6555 * posix/Makefile (routines): Add sched_cpucount.
6556 (tests): Add tst-cpucount.
6557 * posix/sched_cpucount.c: New file.
6558 * posix/tst-cpucount.c: New file.
6559 * posix/Versions: Export __sched_cpucount with version GLIBC_2.6.
b4afdd06
UD
6560 * bits/sched.h: Define __CPU_COUNT. Declare __sched_cpucount.
6561 * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
6562 * posix/sched.h: Define CPU_COUNT.
eab1bdfb 6563
9700b039
UD
65642007-03-27 Jakub Jelinek <jakub@redhat.com>
6565
6566 * posix/fnmatch.c (STRUCT): Define.
6567 (fnmatch): Pass NULL as last argument to internal_fn{,w}match.
6568 * posix/fnmatch_loop.c (struct STRUCT): New type.
6569 (FCT): Add ends argument. If ends != NULL and normal * is
6570 seen in the pattern, store current pattern and string pointers
6571 and return. Adjust recursive calls.
6572 (EXT): Adjust FCT callers.
6573 (STRUCT): Undef at the end of the file.
6574 * posix/Makefile (tests): Add tst-fnmatch2.
6575 * posix/tst-fnmatch2.c: New test.
6576
d64e9790
JJ
65772007-04-01 Jakub Jelinek <jakub@redhat.com>
6578
933dfe7b
JJ
6579 * sysdeps/ia64/fpu/fesetround.c (fesetround): Return 0 on success
6580 and 1 on failure.
6581
d64e9790
JJ
6582 * sysdeps/unix/sysv/linux/sync_file_range.c (sync_file_range):
6583 Change last argument to unsigned int.
6584
e1f0c5bc
UD
65852007-03-23 Jakub Jelinek <jakub@redhat.com>
6586
6587 * scripts/check-local-headers.sh: Filter out sys/capability.h.
6588
65892007-03-22 Jakub Jelinek <jakub@redhat.com>
6590
6591 * config.h.in (HAVE_LIBCAP): Add.
6592 * nscd/selinux.h: Include sys/capability.h rather than non-existent
6593 sys/capabilities.h.
6594 * nscd/selinux.c (preserve_capabilities): Use cap_free instead of
6595 free_caps. Cast away const from 4th cap_set_flag argument.
6596
4e87573f
UD
65972007-03-26 Ulrich Drepper <drepper@redhat.com>
6598
6599 * sysdeps/unix/sysv/linux/Versions: Move sync_file_range to
6600 GLIBC_2.6.
6601 * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
6602 Add sync_file_range.
6603 Reported by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
6604
fa6e3bc3
UD
66052007-03-19 Steven Munroe <sjmunroe@us.ibm.com>
6606
6607 * sysdeps/powerpc/bits/atomic.h
6608 [!MUTEX_HINT_ACQ]: Define MUTEX_HINT_ACQ.
6609 [!MUTEX_HINT_REL]: Define MUTEX_HINT_REL.
6610 (__arch_compare_and_exchange_val_32_acq): Add MUTEX_HINT_ACQ to lwarx.
6611 (__arch_compare_and_exchange_val_32_rel): Add MUTEX_HINT_REL to lwarx.
6612 (__arch_atomic_exchange_val_32_acq): Add MUTEX_HINT_ACQ to lwarx.
6613 (__arch_atomic_exchange_rel_32_rel): Add MUTEX_HINT_REL to lwarx.
6614 * sysdeps/powerpc/powerpc32/bits/atomic.h [_ARCH_PWR6 || _ARCH_PWR6X]:
6615 Define MUTEX_HINT_ACQ as ",1" and MUTEX_HINT_REL as ",0".
6616 (__arch_compare_and_exchange_bool_32_acq): Add MUTEX_HINT_ACQ to lwarx.
6617 (__arch_compare_and_exchange_bool_32_rel): Add MUTEX_HINT_REL to lwarx.
6618 * sysdeps/powerpc/powerpc64/bits/atomic.h [_ARCH_PWR6 || _ARCH_PWR6D]:
6619 Define MUTEX_HINT_ACQ as ",1" and MUTEX_HINT_REL as ",0".
6620 (__arch_compare_and_exchange_bool_32_acq): Add MUTEX_HINT_ACQ to lwarx.
6621 (__arch_compare_and_exchange_bool_32_rel): Add MUTEX_HINT_REL to lwarx.
6622 (__arch_compare_and_exchange_bool_64_acq): Add MUTEX_HINT_ACQ to lwarx.
6623 (__arch_compare_and_exchange_bool_64_rel): Add MUTEX_HINT_REL to lwarx.
6624 (__arch_compare_and_exchange_val_64_acq): Add MUTEX_HINT_ACQ to lwarx.
6625 (__arch_compare_and_exchange_val_64_rel): Add MUTEX_HINT_REL to lwarx.
6626 (__arch_atomic_exchange_val_64_acq): Add MUTEX_HINT_ACQ to lwarx.
6627 (__arch_atomic_exchange_rel_64_rel): Add MUTEX_HINT_REL to lwarx.
6628
66292007-03-20 Jakub Jelinek <jakub@redhat.com>
c7693af7
UD
6630
6631 * sysdeps/unix/sysv/linux/powerpc/libc-start.c
6632 (__cache_line_size): Define the variable here. Add
6633 attribute_hidden, remove weak_extern.
6634 (__libc_start_main): Set __cache_line_size
6635 unconditionally.
6636 * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
6637 (__cache_line_size): Define the variable here. Add
6638 attribute_hidden, remove weak_extern.
6639 (DL_PLATFORM_AUXV): Set __cache_line_size
6640 unconditionally.
6641 * sysdeps/powerpc/powerpc32/dl-machine.c (__cache_line_size): Remove
6642 weak_extern, add attribute_hidden.
6643 (__elf_machine_runtime_setup): Assume __cache_line_size is always
6644 defined in ld.so.
6645 * sysdeps/powerpc/powerpc32/memset.S (__cache_line_size): Remove
6646 definition.
6647 * sysdeps/powerpc/powerpc64/memset.S (__cache_line_size): Likewise.
6648
0479e581
JJ
66492007-03-26 Jakub Jelinek <jakub@redhat.com>
6650
6651 [BZ #4276]
6652 * timezone/africa: Update from tzdata2007d.
6653 * timezone/asia: Likewise.
6654 * timezone/australasia: Likewise.
6655 * timezone/backward: Likewise.
6656 * timezone/europe: Likewise.
6657 * timezone/iso3166.tab: Likewise.
6658 * timezone/leapseconds: Likewise.
6659 * timezone/northamerica: Likewise.
6660 * timezone/southamerica: Likewise.
6661 * timezone/zone.tab: Likewise.
6662
6663 * timezone/private.h: Update from tzcode2007d.
6664 * timezone/zdump.c: Likewise.
6665 * timezone/zic.c: Likewise.
6666
697d37b1
JJ
66672007-03-21 Jakub Jelinek <jakub@redhat.com>
6668
6669 * nis/nis_call.c: Include bits/libc-lock.h, sys/stat.h, unistd.h.
6670 (nis_server_cache, nis_server_cache_lock, nis_cold_start_mtime): New
6671 variables.
6672 (nis_server_cache_search, nis_server_cache_add): New functions.
6673 (__nisfind_server): Use them. Add dbp and flags argument, if
6674 call __nisbind_create.
6675 (__nisbind_create): Add server_used and current_ep arguments,
6676 only call __nis_findfastest if server_used is ~0.
6677 (__do_niscall2, __prepare_niscall): Adjust callers.
6678 (ckey_cache, ckey_cache_size, ckey_cache_allocated, ckey_cache_pid,
6679 ckey_cache_euid, ckey_cache_lock): New variables.
6680 (get_ckey): New function.
6681 (__nisbind_connect): If not dbp->use_udp, pass IPPROTO_TCP to
6682 __pmap_getnisport. Save __pmap_getnisport result in
6683 dbp->addr.sin_port if non-zero. Use get_ckey to create conversation
6684 key.
6685 * nis/nis_lookup.c (nis_lookup): Likewise.
6686 * nis/nis_table.c (nis_list): Likewise.
6687 * nis/rpcsvc/nislib.h (__nisbind_create, __nisfind_server): Adjust
6688 prototypes.
6689
6690 * nis/nss_nisplus/nisplus-pwd.c (_nss_nisplus_getpwnam_r,
6691 _nss_nisplus_getpwuid_r): Pass USE_DGRAM flag to nis_list.
6692 * nis/nss_nisplus/nisplus-service.c (_nss_nisplus_getservbyname_r,
6693 _nss_nisplus_getservbyport_r): Likewise.
6694 * nis/nss_nisplus/nisplus-network.c (_nss_nisplus_getnetbyname_r,
6695 _nss_nisplus_getnetbyaddr_r): Likewise.
6696 * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_getspnam_r): Likewise.
6697 * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_gethostton_r,
6698 _nss_nisplus_getntohost_r): Likewise.
6699 * nis/nss_nisplus/nisplus-rpc.c (_nss_nisplus_getrpcbyname_r,
6700 _nss_nisplus_getrpcbynumber_r): Likewise.
6701
06029c20
JJ
67022007-03-20 Jakub Jelinek <jakub@redhat.com>
6703
371f84a4
JJ
6704 * configure.in (libc_cv_gnu89_inline): Only do compile test.
6705 * configure: Rebuilt.
6706
06029c20
JJ
6707 * soft-fp/double.h (_FP_UNION_D): Use _FP_W_TYPE for frac
6708 bit-fields.
6709 * soft-fp/extended.h (_FP_UNION_E): Likewise.
6710
67112006-06-07 Joseph Myers <joseph@codesourcery.com>
6712
6713 [BZ #2831]
6714 * soft-fp/quad.h (_FP_UNION_Q): Use _FP_W_TYPE for frac
6715 bit-fields.
6716
addc8335
UD
67172007-03-18 Jakub Jelinek <jakub@redhat.com>
6718
6719 * nscd/gai.c: Include alloca.h.
6720 (__libc_use_alloca): Define.
6721
b037a293
UD
67222007-03-16 Jakub Jelinek <jakub@redhat.com>
6723
965cba04
UD
6724 * elf/dl-open.c (dl_open_worker): Declare l in 2 different
6725 smaller scopes.
6726 * elf/dl-dst.h (DL_DST_REQ_STATIC): Add l as macro argument.
6727 (DL_DST_REQUIRED): Adjust user.
6728
6729 * include/dlfcn.h (struct link_map): New forward decl.
6730
6731 * inet/getnameinfo.c: Include stddef.h.
6732 (getnameinfo): Use offsetof.
6733
6734 * time/tst-mktime2.c (do_test): Don't rely on signed wrap.
6735
6736 * stdio-common/vfprintf.c (_itoa): Undef before redefining.
6737
6738 * string/strerror_l.c: Include stdlib.h.
6739
b037a293
UD
6740 * configure.in (libc_cv_gnu89_inline): Test for -fgnu89-inline.
6741 * config.make.in (gnu89-inline-CFLAGS): New variable.
6742 * Makeconfig (CFLAGS): Use $(gnu89-inline-CFLAGS) together with
6743 -std=gnu99.
6744 * misc/sys/cdefs.h (__extern_inline, __extern_always_inline): Define.
6745 * argp/argp.h: Use it.
6746 * bits/mathinline.h: Likewise.
6747 * bits/sigset.h: Likewise.
6748 * bits/string.h: Likewise.
6749 * ctype/ctype.h: Likewise.
6750 * hurd/hurd.h: Likewise.
6751 * hurd/hurd/fd.h: Likewise.
6752 * hurd/hurd/port.h: Likewise.
6753 * hurd/hurd/signal.h: Likewise.
6754 * hurd/hurd/threadvar.h: Likewise.
6755 * hurd/hurd/userlink.h: Likewise.
6756 * io/sys/stat.h: Likewise.
6757 * libio/bits/stdio.h: Likewise.
6758 * libio/bits/stdio2.h: Likewise.
6759 * mach/lock-intern.h: Likewise.
6760 * mach/mach/mig_support.h: Likewise.
6761 * math/bits/cmathcalls.h: Likewise.
6762 * posix/bits/unistd.h: Likewise.
6763 * socket/bits/socket2.h: Likewise.
6764 * stdlib/bits/stdlib.h: Likewise.
6765 * stdlib/stdlib.h: Likewise.
6766 * string/argz.h: Likewise.
6767 * string/bits/string2.h: Likewise.
6768 * string/bits/string3.h: Likewise.
6769 * sysdeps/alpha/fpu/bits/mathinline.h: Likewise.
6770 * sysdeps/generic/inttypes.h: Likewise.
6771 * sysdeps/generic/machine-lock.h: Likewise.
6772 * sysdeps/generic/machine-sp.h: Likewise.
6773 * sysdeps/i386/fpu/bits/mathinline.h: Likewise.
6774 * sysdeps/i386/i486/bits/string.h: Likewise.
6775 * sysdeps/ia64/fpu/bits/mathinline.h: Likewise.
6776 * sysdeps/mach/alpha/machine-lock.h: Likewise.
6777 * sysdeps/mach/alpha/machine-sp.h: Likewise.
6778 * sysdeps/mach/i386/machine-lock.h: Likewise.
6779 * sysdeps/mach/powerpc/machine-lock.h: Likewise.
6780 * sysdeps/mach/powerpc/machine-sp.h: Likewise.
6781 * sysdeps/powerpc/fpu/bits/mathinline.h: Likewise.
6782 * sysdeps/s390/bits/string.h: Likewise.
6783 * sysdeps/s390/fpu/bits/mathinline.h: Likewise.
6784 * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
6785 * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Likewise.
6786 * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
6787 * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
6788 * sysdeps/unix/sysv/linux/sys/sysmacros.h: Likewise.
6789 * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
6790 * wcsmbs/bits/wchar2.h: Likewise.
6791 * wcsmbs/wchar.h: Likewise.
6792 * stdlib/gmp.h: Likewise. Include <features.h> to get
6793 __extern_inline definition.
6794
6b2665f5
UD
67952007-03-15 Jakub Jelinek <jakub@redhat.com>
6796
b037a293
UD
6797 * locale/programs/ld-ctype.c (find_translit): Return NULL if ctype is
6798 NULL.
6799
6b2665f5
UD
6800 [BZ #3919]
6801 * math/libm-test.inc (log_test): Test -Inf and NaN.
6802 (log10_test, log1p_test, log2_test): Test -Inf.
6803 * sysdeps/i386/fpu/e_log.S (__ieee754_log): Don't raise
6804 FE_INVALID when argument is qNaN.
6805 * sysdeps/i386/fpu/e_logl.S (__ieee754_logl): Likewise.
6806 * sysdeps/i386/fpu/e_logf.S (__ieee754_logf): Likewise.
6807 * sysdeps/x86_64/fpu/e_logl.S (__ieee754_logl): Likewise.
6808 * sysdeps/x86_64/fpu/e_log10l.S (__ieee754_log10l): Replace
6809 andb $1, %ah with testb $1, %ah, don't test for parity, instead
6810 testb $4, %ah and jump if non-zero.
6811 * sysdeps/x86_64/fpu/e_log2l.S (__ieee754_log2l): Likewise.
6812 * sysdeps/x86_64/fpu/s_log1pl.S (__log1pl): Likewise.
6813
44969f17
UD
6814 [BZ #4101]
6815 * argp/argp-help.c (hol_cluster_cmp): Fix comparisons used to find
6816 ancestors with the same depths.
6817 Patch by Niels Moeller <nisse@lysator.liu.se>.
6818 (filter_doc): Don't crash if argp is NULL.
6819 * argp/Makefile (tests): Add tst-argp2.
6820 * argp/tst-argp2.c: New test.
6821
05eb8975
UD
6822 [BZ #4130]
6823 * login/utmp_file.c (setutent_file): Use O_LARGEFILE for
6824 open_not_cancel_2.
6825 (updwtmp_file): Likewise.
6826
6cb988fa
UD
6827 [BZ #4181]
6828 * inet/inet6_opt.c (add_padding): Only insert padding if npad > 0.
6829 (inet6_opt_append): Don't check extlen is big enough if extbuf
6830 is NULL.
6831 (inet6_opt_finish): Likewise.
6832 * inet/Makefile (tests): Add test-inet6_opt.
6833 * inet/test-inet6_opt.c: New test.
6834
6835 * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Never
6836 reallocate the buffer, instead fail for MSG_TRUNC or for EBUSY
6837 NLMSG_ERR. Instead use a page sized buffer.
6838 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Use page sized
6839 buffer.
6840
aea1d19e
RH
68412007-03-14 Richard Henderson <rth@redhat.com>
6842
b6df547c
RH
6843 * sysdeps/alpha/fpu/s_llround.c: New file.
6844 * sysdeps/alpha/fpu/s_llroundf.c: New file.
6845 * sysdeps/alpha/fpu/s_lround.c: New file.
6846 * sysdeps/alpha/fpu/s_lroundf.c: New file.
6847 * sysdeps/alpha/fpu/s_round.c: New file.
6848 * sysdeps/alpha/fpu/s_roundf.c: New file.
6849 * sysdeps/alpha/fpu/s_trunc.c: New file.
6850 * sysdeps/alpha/fpu/s_truncf.c: New file.
6851
aea1d19e
RH
6852 * sysdeps/alpha/fpu/s_ceil.c: Rewrite without branches.
6853 * sysdeps/alpha/fpu/s_ceilf.c: Likewise.
6854 * sysdeps/alpha/fpu/s_floor.c: Likewise.
6855 * sysdeps/alpha/fpu/s_floorf.c: Likewise.
6856 * sysdeps/alpha/fpu/s_rint.c: Likewise.
6857 * sysdeps/alpha/fpu/s_rintf.c: Likewise.
6858
6859 * sysdeps/alpha/fpu/s_fmax.S: New file.
6860 * sysdeps/alpha/fpu/s_fmaxf.S: New file.
6861 * sysdeps/alpha/fpu/s_fmin.S: New file.
6862 * sysdeps/alpha/fpu/s_fminf.S: New file.
6863 * sysdeps/alpha/fpu/s_isnan.c: New file.
6864 * sysdeps/alpha/fpu/s_isnanf.c: New file.
6865 * sysdeps/alpha/fpu/s_llrint.c: New file.
6866 * sysdeps/alpha/fpu/s_llrintf.c: New file.
6867 * sysdeps/alpha/fpu/s_lrint.c: New file.
6868 * sysdeps/alpha/fpu/s_lrintf.c: New file.
6869 * sysdeps/alpha/fpu/s_nearbyint.c: New file.
6870 * sysdeps/alpha/fpu/s_nearbyintf.c: New file.
6871
6872 * sysdeps/alpha/fpu/bits/mathinline.h (__floorf, __floor): Remove.
6873 (__fdimf, fdimf, __fdim, fdim): Remove.
6874 (__signbitf, __signbit, __signbitl): Use gcc builtin if available.
6875 (__isnanf, __isnan, __isnanl): New.
6876
9e43b50d
RH
68772007-03-13 Richard Henderson <rth@redhat.com>
6878
6879 * sysdeps/ieee754/ldbl-128/Makefile: New file.
6880
62789da3
RH
68812007-03-13 Richard Henderson <rth@redhat.com>
6882
6883 * sysdeps/alpha/Makefile (sysdep-CFLAGS): Force dynamic rounding.
6884 * sysdeps/alpha/fpu/bits/mathinline.h (__signbitl): New.
6885 * sysdeps/alpha/fpu/libm-test-ulps: Regenerate.
6886 * sysdeps/unix/sysv/linux/alpha/alphaev6/fpu/Implies: New file.
6887 * sysdeps/unix/sysv/linux/alpha/alphaev67/fpu/Implies: New file.
6888 * sysdeps/unix/sysv/linux/alpha/fpu/Implies: New file.
6889
47dbe62b
RH
68902007-03-13 Richard Henderson <rth@redhat.com>
6891
37f40235 6892 * elf/dl-support.c (_dl_aux_init): Honor DL_PLATFORM_AUXV.
47dbe62b
RH
6893 * sysdeps/unix/sysv/linux/alpha/dl-auxv.h: New file.
6894 * sysdeps/unix/sysv/linux/alpha/dl-support.c: New file.
6895 * sysdeps/unix/sysv/linux/alpha/dl-sysdep.c (__libc_alpha_cache_shape):
6896 Move to dl-auxv.h; initialize instead of extern weak.
6897 (DL_PLATFORM_AUXV): Move to dl-auxv.h; don't test for undef
6898 weak symbol.
6899 * sysdeps/unix/sysv/linux/alpha/sysconf.c (__libc_alpha_cache_shape):
6900 Extern instead of initialized.
6901
b8097bed
RH
69022007-03-13 Richard Henderson <rth@redhat.com>
6903
6904 * sysdeps/unix/sysv/linux/alpha/sigsuspend.S: Add support for
6905 __sigsuspend_nocancel.
6906
6bf4a686
UD
69072007-03-06 Ulrich Drepper <drepper@redhat.com>
6908
6909 * sysdeps/posix/getaddrinfo.c (get_scope): Correct test for
6910 172.16/12 address range.
6911
0b3b1a0c
UD
69122007-03-02 Jakub Jelinek <jakub@redhat.com>
6913
6914 * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Retry with
6915 a new netlink socket if NLMSG_ERR -EBUSY is seen after some MSG_TRUNC
6916 message.
6917
8f3edfee
UD
69182007-03-01 Jakub Jelinek <jakub@redhat.com>
6919
c1c5e654 6920 [BZ #4069]
8f3edfee
UD
6921 * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Check for NaN
6922 earlier.
6923 * math/libm-test.inc (pow_test): Add more tests involving NaNs.
6924
6925 * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Avoid invalid exception
6926 for x qNaN and y either +-inf or non-integer value.
6927 * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Likewise.
6928 * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.
6929 * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
6930
245a1481
UD
69312007-02-10 Mike Frysinger <vapier@gentoo.org>
6932
6933 * sysdeps/unix/sysv/linux/sh/Makefile: Remove sys/io.h
6934 from sysdep_headers.
6935
c217692b
UD
69362007-02-28 Jakub Jelinek <jakub@redhat.com>
6937
6938 * time/tzfile.c (find_transition): Instead of a linear search try to
6939 guess the transition index, use a linear search if the result is at
6940 most 10 transitions away from the guess or binary search otherwise.
6941
fe64626c
JJ
69422007-02-27 Jakub Jelinek <jakub@redhat.com>
6943
6944 * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Fix
6945 memory reallocation.
6946
0f7769f7
UD
69472007-02-21 Ulrich Drepper <drepper@redhat.com>
6948
621c133d
UD
6949 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Add branch predictions
6950 and fix some typos.
6951 Optimize use of TOLOWER.
9cf147d8 6952
cdfd61e1
UD
6953 [BZ #3325]
6954 * sysdeps/i386/fpu/e_fmodf.S: Revert last changes, keep using fprem.
6955 * sysdeps/i386/fpu/e_fmodl.c: Likewise.
6956 * sysdeps/i386/fpu/e_fmod.S: Likewise.
6957
8889e7aa
UD
6958 [BZ #3458]
6959 * sysdeps/unix/sysv/linux/posix_madvise.c: New file.
6960 * sysdeps/unix/sysv/linux/syscalls.list: Remove posix_madvise entry.
6961
63a2f305
UD
6962 [BZ #4076]
6963 * io/ftw.c (ftw_startup): Handle special case of FTW_CHDIR in /.
6964 (open_dir_stream): Likewise.
6965 * io/Makefile (tests): Add bug-ftw5.
c536b9b8 6966 * io/bug-ftw5.c: New file.
63a2f305 6967
c8703f88
UD
6968 * nscd/hstcache.c (cache_addhst): Remove unnecessary conditional.
6969 * nscd/servicescache.c (cache_addserv): Likewise.
6970
6971 * nscd/grpcache.c (cache_addgr): In case a record changed on
6972 refresh, adjust key_copy.
6973
61705e06
UD
6974 [BZ #4074]
6975 * nscd/pwdcache.c (cache_addpw): In case a record changed on
6976 refresh, adjust key_copy.
6977
0f7769f7
UD
6978 [BZ #4070]
6979 * stdio-common/printf_fp.c (___printf_fp): Handle a few more
0f7769f7 6980 special cases.
8889e7aa 6981 * stdio-common/tfformat.c (sprint_doubles): Some more tests.
0f7769f7 6982
3979024a
UD
69832007-02-19 Ulrich Drepper <drepper@redhat.com>
6984
4c02bf1a
UD
6985 * stdio-common/printf_fp.c (___printf_fp): Cleanups and minor
6986 optimization.
6987
3979024a
UD
6988 * stdio-common/vfscanf.c: Small cleanups throughout.
6989
821d3e70
UD
69902007-02-18 Ulrich Drepper <drepper@redhat.com>
6991
2484468b
UD
6992 [BZ #3325]
6993 * sysdeps/i386/fpu/e_fmodf.S: Use fprem1 instead of fprem.
6994 * sysdeps/i386/fpu/e_fmodl.c: Likewise.
6995 * sysdeps/i386/fpu/e_fmod.S: Likewise.
6996 Patch by Jared Casper <jaredcasper@gmail.com>.
6997
858ee15d
UD
6998 * sysdeps/unix/closedir.c: Outside libc don't use locking.
6999 * sysdeps/unix/opendir.c: Likewise.
7000 * sysdeps/unix/readdir.c: Likewise.
7001
ecb72bd5
UD
7002 [BZ #2211]
7003 * stdio-common/vfscanf.c: Handle localized digits etc for floating
7004 point numbers.
7005 Patch mostly by Hamed Malek <hamed@farsiweb.info>.
7006
ac2ca022
UD
7007 * stdio-common/vfscanf.c: Fix problems in width accounting.
7008 * stdio-common/tst-sscanf.c (double_tests): New tests.
7009 (main): Hook them up.
7010
e9bb5246 7011 * stdio-common/vfscanf.c: Remove unused WIDTH handling.
da50f001 7012 More simplifications of floating-point reader.
e9bb5246 7013
821d3e70
UD
7014 * stdio-common/Makefile (tests): Add tst-swscanf.
7015 * stdio-common/tst-sscanf.c: Make tests usable for swscanf
7016 testing.
7017 * stdio-common/tst-swscanf.c: New file.
7018
07fb5185
UD
70192007-02-17 Ulrich Drepper <drepper@redhat.com>
7020
9138cc0b
UD
7021 [BZ #2633]
7022 * libio/stdio.h: Define struct _IO_FILE in global namespace.
7023 * setjmp/setjmp.h: Define __jmp_buf_tag in global namespace.
7024 Remove using for __jmp_buf_tag.
7025 * locale/locale.h (struct lconv): Also define in std namespace.
7026 * wcsmbs/wchar.h: Move using declaration for tm out of namespace.
7027
6818d837
UD
7028 [BZ #3842]
7029 * sysdeps/posix/euidaccess.c [_LIBC] (euidaccess): Remove shortcut
7030 using __libc_enable_secure.
7031
15c4b5a4
UD
7032 [BZ #3818]
7033 * sysdeps/unix/sysv/linux/sys/acct.h (struct acct_v3): Define.
7034
5e9e9c14
UD
7035 [BZ #3745]
7036 * locale/programs/ld-collate.c (handle_ellipsis): Fix generation
7037 of names for ellipsises.
7038
07fb5185
UD
7039 [BZ #3348]
7040 * malloc/memusage.sh: Cleanups.
7041 * debug/xtrace.sh: Quoting and trap changes.
7042
8c6d1043
UD
70432007-02-16 Ulrich Drepper <drepper@redhat.com>
7044
07fb5185
UD
7045 * locale/iso-3166.def: Add Jersey, Guernsey, and Isle Of Man entries.
7046
93e66914 7047 * locale/iso-3166.def: Update entry for Serbia.
93e36434
UD
7048 * locale/iso-4217.def: Define RSD, remove CSD.
7049
ad0b348c
UD
7050 * sysdeps/x86_64/bits/atomic.h: One more change, this time for 16-
7051 and 64-bit operations.
7052
7053 [BZ #4040]
7054 * sysdeps/i386/i486/bits/atomic.h: One more change, this time for
7055 16-bit operations.
7056
8c6d1043
UD
7057 * nscd/nscd.c (parse_opt): One more conversion to use send instead
7058 of writev.
7059
987f54c6
UD
70602007-02-15 Ulrich Drepper <drepper@redhat.com>
7061
b3715c05
UD
7062 [BZ #3991]
7063 * assert/assert.h (assert): Simplify.
7064 (assert_perror): Likewise.
7065 Patch by Israel G. Lugo <ilugo@bridonsecurity.com>.
7066
6eea8e0d
UD
7067 * nscd/nscd_helper.c (open_socket): Don't send padding bytes from
7068 reqdata.
7069
987f54c6
UD
7070 * sysdeps/unix/sysv/linux/x86_64/send.c (__libc_send): Cosmetic
7071 change: don't pass NULL in place of an integer.
7072
3dc08a7e
UD
70732007-02-02 Bruno Haible <bruno@clisp.org>
7074
06c17c78
UD
7075 [BZ #3954]
7076 * iconvdata/ksc5601.c (__ksc5601_sym_to_ucs, __ksc5601_sym_from_ucs):
7077 Add mapping for U+327E.
7078 * iconvdata/ksc5601.h (KSC5601_SYMBOL): Increment.
7079 * iconvdata/johab.c (BODY for FROM_LOOP, BODY for TO_LOOP): Enable
7080 mapping of 0xD9 0xE8.
7081 * iconvdata/uhc.c (BODY for FROM_LOOP, BODY for TO_LOOP): Disable
7082 mapping of U+327E.
7083 Reported by Jungshik Shin <jungshik@google.com>.
7084
7085 [BZ #3955]
3dc08a7e
UD
7086 * iconvdata/johab.c (BODY for FROM_LOOP, BODY for TO_LOOP): Enable
7087 mapping of 0xD9 0xE6 and of 0xD9 0xE7.
7088 Reported by Jungshik Shin <jungshik@google.com>.
7089
a810e68c
UD
70902007-02-14 Ulrich Drepper <drepper@redhat.com>
7091
7092 * sysdeps/x86_64/bits/atomic;h: Fix asm parameters for some
7093 byte variants.
7094
7095 [BZ #4040]
7096 * sysdeps/i386/i486/bits/atomic.h: Fix asm parameters for some
7097 byte variants. Patch mostly be tom@tommay.net.
7098
05f135ba
UD
70992007-02-14 Jakub Jelinek <jakub@redhat.com>
7100
7101 [BZ #3996]
7102 * posix/glob.c (attribute_hidden): Define if not defined.
7103 (glob): Unescape dirname, filename or username when needed and not
7104 GLOB_NOESCAPE. Handle \/ correctly. Handle GLOB_MARK if filename
7105 is NULL. Handle unescaped [ in pattern without closing ].
7106 Don't pass GLOB_CHECK down to recursive glob for directories.
7107 (__glob_pattern_type): New function.
7108 (__glob_pattern_p): Implement using __glob_pattern_type.
7109 (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
7110 characters and backslashes if not GLOB_NOESCAPE or unterminated [.
7111 Remove unreachable code.
7112 * posix/globtest.sh: Add a couple of new tests.
7113
2f699967
UD
71142007-02-13 Ulrich Drepper <drepper@redhat.com>
7115
7116 * po/ru.po: Update from translation team.
7117
3a7cd5b4
JJ
71182007-02-12 Jakub Jelinek <jakub@redhat.com>
7119
7120 * sysdeps/i386/bits/byteswap.h (__bswap_32): Add __amdfam10__
7121 to the list of i486+ CPUs.
7122 * sysdeps/x86_64/bits/byteswap.h (__bswap_32): Likewise.
7123
2f978feb
UD
71242007-02-12 Ulrich Drepper <drepper@redhat.com>
7125
7126 * elf/rtld.c (RESOLVE_MAP): Always return bootstrap_map reference.
7127 * elf/Makefile ($(objpfx)ld.so): Check that ld.so has no undefined
7128 references.
7129
2bbb7d5b
UD
71302007-02-09 Ulrich Drepper <drepper@redhat.com>
7131
5ed61e0f
UD
7132 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Remove incorrect comment.
7133
2bbb7d5b
UD
7134 * resolv/res_init.c (res_setoptions): Recognize edns0 option.
7135 * resolv/res_mkquery.c: Define __res_nopt.
7136 * resolv/res_query.c (__libc_res_nquery): If RES_USE_EDNS0 is set
7137 try adding EDNS0 record.
7138 * resolv/res_send.c (send_dg): If request failed with FORMERR and
7139 EDNS0 record was send make sure we don't try it again.
7140 * resolv/resolv.h: Define RES_F_EDNS0ERR and RES_USE_EDNS0.
7141 * include/resolv.h: Declare __res_nopt.
7142
00458b5b
UD
71432007-02-08 Jakub Jelinek <jakub@redhat.com>
7144
7145 [BZ #3944]
7146 * time/strptime_l.c (__strptime_internal): Set have_mon for
7147 %b/%B/%h. Set have_mon and have_mday if tm_mon and tm_mday
7148 have been computed from tm_yday and tm_year. Don't crash
7149 in day_of_the_week or day_of_the_year if not have_mon
7150 and tm_mon contains bogus value.
7151 * time/Makefile (tests): Add tst-strptime3.
7152 * time/tst-strptime3.c: New test.
7153
784aacea
UD
71542007-02-05 Jakub Jelinek <jakub@redhat.com>
7155
7156 [BZ #3957]
7157 * posix/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
7158 bit for RE_HAT_LISTS_NOT_NEWLINE.
7159 (build_charclass_op): Remove bogus comment.
7160 * posix/Makefile (tests): Add bug-regex27 and bug-regex28.
7161 * posix/bug-regex27.c: New test.
7162 * posix/bug-regex28.c: New test.
7163
bf7a2463
UD
71642007-02-03 Ulrich Drepper <drepper@redhat.com>
7165
7166 * po/sv.po: Update from translation team.
7167
f2ccf983
UD
71682007-02-02 Ulrich Drepper <drepper@redhat.com>
7169
7170 * nscd/nscd_helper.c (open_socket): Minor size optimization.
7171
73f50d5a
UD
71722007-02-02 Jakub Jelinek <jakub@redhat.com>
7173
7174 * include/locale.h (__uselocale): Add libc_hidden_proto.
7175 * locale/uselocale.c (__uselocale): Add libc_hidden_def.
7176
f6bf9e59
JJ
7177 * nscd/nscd_helper.c (open_socket): Use __gettimeofday instead of
7178 gettimeofday.
7179
4a44ce79
UD
71802007-02-01 Ulrich Drepper <drepper@redhat.com>
7181
7182 * sysdeps/unix/sysv/linux/i386/sysdep.h (PTR_MANGLE): Roll value before
7183 returning.
7184 (PTR_DEMANGLE): Real definition now that it's not the same as
7185 PRT_MANGLE anymore.
7186 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
7187
7188 * string/strerror_l.c: New file.
7189 * string/Makefile (routines): Add strerror_l.
7190 * string/string.h: Declare strerror_l.
7191 * string/Versions: Export strerror_l for GLIBC_2.6.
7192
58a2d52e
UD
71932007-01-31 Ulrich Drepper <drepper@redhat.com>
7194
7195 * nscd/nscd_helper.c (open_socket): Now takes request type and key
7196 as parameter. Construct request record. Try sending request
7197 before the first poll use, it usually succeeds. Adjust all
7198 callers.
7199 * nscd/nscd-client.h: Define MAXKEYLEN.
4a44ce79 7200 * nscd/connections.c (nscd_run): Don't define MAXKEYLEN here.
58a2d52e 7201
1a77d37f
JJ
72022007-01-31 Jakub Jelinek <jakub@redhat.com>
7203
7204 * nscd/nscd-client.h (__nscd_cache_search): Remove const qualifier
7205 from return value.
7206 * nscd/nscd_helper.c: Include string.h.
7207 (__nscd_cache_search): Remove const qualifier from return value.
7208 On strict alignment architectures check hash entry and data head
7209 alignment.
7210 * nscd/nscd_getpw_r.c (nscd_getpw_r): Don't crash or fail because
7211 mmapped data during GC cycle contains garbage. If
7212 __nscd_drop_map_ref fails, decrement mapped->counter when returning
7213 error or if retrying with NO_MAPPING, only __nscd_unmap if counter
7214 dropped to 0.
7215 * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
7216 * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
7217 * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
7218 * nscd/nscd_getai.c (__nscd_getai): Likewise.
7219 * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
7220
ee314200
UD
72212007-01-30 Ulrich Drepper <drepper@redhat.com>
7222
7223 * misc/hsearch_r.c (hdestroy_r): Remove unnecessary test.
7224
14c8bf3b
UD
72252007-01-26 Ulrich Drepper <drepper@redhat.com>
7226
7227 * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Use register
7228 names not numbers in cfi_*.
7229
d2708e67
AJ
72302007-01-26 Andreas Jaeger <aj@suse.de>
7231
7232 * sysdeps/unix/sysv/linux/sys/personality.h (ADDR_NO_RANDOMIZE,
14c8bf3b 7233 ADDR_LIMIT_3GB, PER_LINUX_32BIT, PER_LINUX32_3GB): Add.
d2708e67
AJ
7234 Correct values of PER_HPUX and PER_OSF4.
7235
7fbc8784
UD
72362007-01-24 Ulrich Drepper <drepper@redhat.com>
7237
8aaf53ee 7238 * elf/dl-minimal.c: Undefine _itoa first.
7fbc8784
UD
7239 * stdio-common/_itoa.h: Define _itoa and _fitoa for 64-bit platforms.
7240 * malloc/mtrace.c: Revert last change.
7241 * posix/wordexp.c: Likewise.
7242
9d6cde3d
UD
72432007-01-24 Jakub Jelinek <jakub@redhat.com>
7244
7245 * sysdeps/i386/bits/byteswap.h (__bswap_32): Add __nocona__, __core2__
7246 and __geode__ to the list of i486+ CPUs.
7247 * sysdeps/x86_64/bits/byteswap.h (__bswap_32): Likewise.
7248
c1f0486a
UD
72492007-01-23 Ulrich Drepper <drepper@redhat.com>
7250
7251 * stdio-common/_itoa.c: Include <limits.h>.
7252 * stdio-common/_itowa.c: Likewise.
7253
6cae3957
UD
72542007-01-22 Ulrich Drepper <drepper@redhat.com>
7255
765bbb24
UD
7256 * stdio-common/_itowa.c: Don't compile _itowa for 64-bit
7257 platforms.
7258 * stdio-common/_itoa.c: Don't compile in _itoa and _fitoa for
7259 64-bit platforms.
7260 * malloc/mtrace.c (tr_where): Use _fitoa_word instead of _fitoa if
7261 possible.
7262 * posix/wordexp.c (parse_arith): Use _itoa_word instead of _itoa
7263 if possible.
7264
6cae3957
UD
7265 [BZ #3902]
7266 * stdio-common/_itoa.c (_itoa): Make sure at least a zero is emitted.
7267 * stdio-common/Makefile (tests): Add bug17.
7268 * stdio-common/bug17.c: New file.
7269
ddaafd04
UD
72702007-01-19 Ulrich Drepper <drepper@redhat.com>
7271
7272 * iconvdata/brf.c: New file.
439201de
UD
7273 * iconvdata/testdata/BRF: New file.
7274 * iconvdata/testdata/BRF..UTF8: New file.
7275 Contributed by Samuel Thibault <samuel.thibault@ens-lyon.org>.
ddaafd04
UD
7276 * iconvdata/Makefile: Add rules to build BRF.
7277 * iconvdata/TESTS: Add BRF entry.
7278 * iconvdata/gconv-modules: Likewise.
7279 * iconvdata/tst-tables.sh: Likewise.
ddaafd04 7280
9e6e344e
UD
72812007-01-18 Anton Nikishaev <anton.nik@gmail.com>
7282
7283 * wcsmbs/wchar.h (wcstoll): Fix comment, function returns value of
7284 type `long long int', not `long int'.
7285 (wcstoq): Likewise.
7286
299f7b0f
UD
72872007-01-18 Ulrich Drepper <drepper@redhat.com>
7288
7289 * scripts/gen-as-const.awk: Add cast to long to avoid int promotion
7290 of values on 64-bit platforms which are too large.
7291
cd8127cc
JJ
72922007-01-12 Steven Munroe <sjmunroe@us.ibm.com>
7293 Joe Kerian <jkerian@us.us.ibm.com>
7294
7295 [BZ #2749]
7296 * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Include
7297 <math_ldbl_opt.h>. Remove weak_alias. Use long_double_symbol macro.
7298 (__copysignl): Use signbit() for comparison.
7299 * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Correct parms for
7300 SET_LDOUBLE_WORDS64.
7301
7302 [BZ #2423, #2749]
7303 * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Don't include <fenv_libc.h>.
7304 (__ceill): Remove calls to fegetround(), fesetround().
7305 * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
7306 * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
7307 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
7308
b3acfdf7
JJ
73092007-01-17 Jakub Jelinek <jakub@redhat.com>
7310
4a2e03c6
JJ
7311 * nscd/nscd_getserv_r.c (nscd_getserv_r): Fix pastos.
7312
b3acfdf7
JJ
7313 * sysdeps/unix/sysv/linux/getdents.c (offsetof): Remove.
7314
1476bce6
UD
73152007-01-17 Ulrich Drepper <drepper@redhat.com>
7316
7317 * sysdeps/unix/sysv/linux/fatal-prepare.h: Use PTHFCT_CALL to
7318 demangle pointer.
7319 * csu/libc-start.c: Likewise.
7320
d78bce1c
UD
73212007-01-16 Ulrich Drepper <drepper@redhat.com>
7322
7323 * sysdeps/posix/system.c: Remove NO_WAITPID support, it cannot
7324 really work anyway.
7325
1bd79025
UD
73262007-01-15 Ulrich Drepper <drepper@redhat.com>
7327
000b027e
UD
7328 * nscd/connections.c (servinfo): Renamed to reqinfo. Change all
7329 users.
7330 (handle_request): Remove unnecessary tests.
7331
1bd79025
UD
7332 * nscd/cache.c (cache_add): Record the failure to add to the cache.
7333
d68f5d2c
JJ
73342007-01-15 Jakub Jelinek <jakub@redhat.com>
7335
7336 * soft-fp/op-common.h (FP_TRUNC): When truncating a NaN, clear
7337 workbits in semi-raw fraction.
7338
7339 * math/test-misc.c: Add new tests.
7340
73412007-01-14 Steven Munroe <sjmunroe@us.ibm.com>
7342
7343 * math/basic-test.c: Include test-skeleton.c.
7344 (TEST_TRUNC): Define.
7345 (truncdfsf_test, trunctfsf_test, trunctfdf_test): New.
7346 (main): Rename to ...
7347 (do_test): ...this. Run new tests.
7348 (TEST_FUNCTION): Define.
7349
73502006-10-05 Steven Munroe <sjmunroe@us.ibm.com>
7351 Joe Kerian <jkerian@us.us.ibm.com>
7352
7353 [BZ #2749]
7354 * soft-fp/op-4.h (__FP_FRAC_SUB_3, __FP_FRAC_SUB_4): Correct borrow
7355 handling for high words.
7356 * soft-fp/op-common.h (_FP_OVERFLOW_SEMIRAW): Always set inexact
7357 and overflow for infinity.
7358
4e35ef2c
UD
73592007-01-15 Ulrich Drepper <drepper@redhat.com>
7360
2a1dea97
UD
7361 * nscd/connections.c (handle_request): Add a __builtin_expect.
7362
9691d83c
UD
7363 * nscd/connections.c (serv2db): Change type into structure which
7364 also says whether this is a request for data. Renamed to
7365 servinfo. All users changed.
7366 (handle_request): Much simpler test whether we should search the cache.
7367
49ee6d79
UD
7368 * nscd/connections.c (handle_request): Fix thinko in selinux test
7369 invocation.
7370
4e35ef2c
UD
7371 * sysdeps/generic/ldsodefs.h: Define DL_LOOKUP_SCOPE_LOCK.
7372 * elf/dl-lookup.c (add_dependency): If scope map is locked, unlock
7373 it before getting dl_load_lock and then relock.
7374 (_dl_lookup_symbol_x): Pass flags to add_dependency.
7375 When rerunning _dl_lookup_symbol_x, compute symbol_scope again in
7376 case we unlocked the scope.
7377 * elf/dl-runtime.c (_dl_fixup): Pass DL_LOOKUP_SCOPE_LOCK to
7378 _dl_lookup_symbol_x in case we locked the scope.
7379 (_dl_profile_fixup): Likewise.
7380 * elf/dl-sym.c (do_sym): In flags passed to call_dl_lookup, also
7381 set DL_LOOKUP_SCOPE_LOCK.
7382
23691ab2
UD
73832007-01-13 Ulrich Drepper <drepper@redhat.com>
7384
fb453d08
UD
7385 * inet/Makefile: Define CFLAGS-getsrvbynm_r.c and
7386 CFLAGS-getsrvbynpt_r.c.
7387 * nscd/getsrvbynm_r.c: New file.
7388 * nscd/getsrvbypt_r.c: New file.
7389 * nscd/nscd_getserv_r.c: New file.
7390 * nscd/servicescache.c: New file.
7391 * nscd/Makefile (routines): Add nscd_getserv_r.
7392 (nscd-modules): Add getsrvbynm_r, getsrvbypt_r, and servicescache.
7393 Define CFLAGS-servicescache.c, CFLAGS-getsrvbynm_r.c, and
7394 CFLAGS-getsrvbypt_r.c.
7395 * nscd/cache.c (prune_cache): Rewrite to get re-add function from
7396 table. Add entries for services database.
7397 * nscd/connections.c (serv2str): Mark as const. Add entries for
7398 services database.
7399 (dbs): Add .reset_res and servdb initialization.
7400 (serv2db): Add entries for services database.
7401 (verify_persistent_db): Accept dbnr == servdb.
7402 (invalidate_cache): Rewrite database name recognition to use a table.
7403 Call res_init() if .reset_res is set for database.
7404 (handle_request): Add code to handle services database.
7405 * nscd/gai.c: Don't define __getservbyname_r.
7406 * nscd/nscd-client.h (request_type): Remove LASTDBREQ, add
7407 GETSERVBYNAME, GETSERVBYPORT, GETFDSERV.
7408 (serv_response_header): Define.
7409 (struct datahead): Add serv_response_header member.
7410 * nscd/nscd.c (parse_opt): Rewrite parsing of -i parameter value
7411 using table.
7412 * nscd/nscd.conf: Add entries for services database.
7413 * nscd/nscd.h: Adjust declaration of dbnames and serv2str.
7414 Declare serv_iov_disabled.
7415 Declare addservbyname, readdservbyname, addservbyport, and
7416 readdservbyport.
7417 * nscd/nscd_conf.c (dbnames): Mark as const. Add services entry.
7418 (find_db): Fix error message.
7419 * nscd/nscd_proto.h: Declare __nss_not_use_nscd_services,
7420 __nscd_getservbyname_r, and __nscd_getservbyport_r.
7421 * nscd/selinux.c (perms): Add entries for services database.
7422 * nss/Versions: Export __nss_services_lookup with GLIBC_PRIVATE.
7423 * nss/nsswitch.c (__nss_disable_nscd): Also disable services database.
7424
7425 * nscd/grpcache.c: Remove obsolete code. Cleanups.
7426 * nscd/hstcache.c: Likewise.
7427 * nscd/pwdcache.c: Likewise.
7428
b21fa963
UD
7429 * nis/nss_nis/nis-service.c (_nss_nis_getservbyname_r): Correct
7430 computation of keylen.
7431
23691ab2
UD
7432 * include/string.h: Only redefine strndupa if this is really for
7433 libc code.
7434
8980796b
UD
74352007-01-12 Ulrich Drepper <drepper@redhat.com>
7436
4a4a65f2
UD
7437 * nscd/nscd_gethst_r.c: Minor cleanups.
7438
43397eaf
UD
7439 * nscd/connections.c (handle_request): Check selinux permissions
7440 for all non-admin commands.
7441
038a1a9f
UD
7442 * sysdeps/i386/i486/bits/atomic.h: Define
7443 atomic_compare_and_exchange_val_acq,
7444 atomic_compare_and_exchange_bool_acq, and atomic_exchange_and_add
7445 using __sync_* built-ins for gcc >= 4.1.
7446 * sysdeps/x86_64/bits/atomic.h: Likewise.
7447
8980796b
UD
7448 [BZ #3840]
7449 * scripts/check-local-headers.sh: Restrict to testing .o.d, .os.d,
7450 and .oS.d files.
7451
32c075e1
JJ
74522007-01-05 Steven Munroe <sjmunroe@us.ibm.com>
7453
7454 * stdlib/tst-makecontext.c: Include errno.h. Change main()
7455 to do_test(). Define TEST_FUNCTION. Include test-skeleton.c.
7456 (do_test): Check errno and exit(0) if ENOSYS.
7457
74582007-01-11 Jakub Jelinek <jakub@redhat.com>
7459
7460 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix handling of multi-byte
7461 thousands separators.
7462 * stdlib/Makefile: Add rules to build and run tst-strtod4.
7463 * stdlib/tst-strtod4.c: New test.
7464
7465 [BZ #3855]
7466 * stdlib/strtod_l.c (____STRTOF_INTERNAL): 0x. not followed by
7467 hexadecimal digit should accept just the initial 0.
7468 * stdlib/tst-strtod2.c (tests): New variable.
7469 (do_test): Run several tests rather than just one.
7470
11bf311e 74712007-01-11 Jakub Jelinek <jakub@redhat.com>
df859a0c 7472
11bf311e
UD
7473 * sysdeps/i386/soft-fp/sfp-machine.h: Remove.
7474 * sysdeps/x86_64/soft-fp/sfp-machine.h: Likewise.
df859a0c 7475
11bf311e 74762007-01-10 Ulrich Drepper <drepper@redhat.com>
32c075e1 7477
11bf311e
UD
7478 * io/fts.c: Make sure fts_cur is always valid after return from
7479 fts_read.
7480 Patch by Miloslav Trmac <mitr@redhat.com>.
64a0aa0f 7481
11bf311e 74822006-10-27 Richard Sandiford <richard@codesourcery.com>
32c075e1 7483
11bf311e
UD
7484 * elf/elf.h (R_MIPS_GLOB_DAT): Define.
7485 (R_MIPS_NUM): Bump by 1.
32c075e1 7486
11bf311e 74872007-01-03 Jakub Jelinek <jakub@redhat.com>
32c075e1 7488
11bf311e
UD
7489 * posix/execvp.c: Include alloca.h.
7490 (allocate_scripts_argv): Renamed to...
7491 (scripts_argv): ... this. Don't allocate buffer here nor count
7492 arguments.
7493 (execvp): Use alloca if possible.
7494 * posix/Makefile: Add rules to build and run tst-vfork3 test.
7495 * posix/tst-vfork3.c: New test.
32c075e1
JJ
7496
74972007-01-03 Ulrich Drepper <drepper@redhat.com>
7498
7499 * string/Makefile (tst-strxfrm2-ENV): Define.
11bf311e 7500 * stdlib/Makefile (tst-strtod3-ENV): Define.
32c075e1 7501
11bf311e 75022007-01-02 Ulrich Drepper <drepper@redhat.com>
32c075e1 7503
11bf311e
UD
7504 * posix/getconf.c: Update copyright year.
7505 * nss/getent.c: Likewise.
7506 * iconv/iconvconfig.c: Likewise.
7507 * iconv/iconv_prog.c: Likewise.
7508 * elf/ldconfig.c: Likewise.
7509 * catgets/gencat.c: Likewise.
7510 * csu/version.c: Likewise.
7511 * elf/ldd.bash.in: Likewise.
7512 * elf/sprof.c (print_version): Likewise.
7513 * locale/programs/locale.c: Likewise.
7514 * locale/programs/localedef.c: Likewise.
7515 * nscd/nscd.c (print_version): Likewise.
7516 * debug/xtrace.sh: Likewise.
7517 * malloc/memusage.sh: Likewise.
7518 * malloc/mtrace.pl: Likewise.
7519 * debug/catchsegv.sh: Likewise.
64a0aa0f 7520
11bf311e 75212006-12-24 Ulrich Drepper <drepper@redhat.com>
48576885 7522
11bf311e
UD
7523 * malloc/malloc.c (sYSMALLOc): Remove some unnecessary alignment
7524 attempts.
48576885 7525
11bf311e 75262006-12-23 Ulrich Drepper <drepper@redhat.com>
3b6667a4 7527
11bf311e 7528 * posix/wordexp.c: Remove some unnecessary tests.
3b6667a4 7529
33c6de58
UD
75302006-12-22 Gavin Romig-Koch <gavin@redhat.com>
7531
7532 * nis/nss_compat/compat-grp.c (internal_getgrgid_r): Don't
7533 blacklist the group till after we look it up.
7534
fc242bef
UD
75352006-12-21 Ulrich Drepper <drepper@redhat.com>
7536
7537 * include/atomic.h (atomic_forced_read): New macro.
7538
11bf311e
UD
75392006-12-20 SUGIOKA Toshinobu <sugioka@itonet.co.jp>
7540
7541 * sysdeps/unix/sysv/linux/sh/bits/shm.h: New file.
7542
a12dcecc
UD
75432006-12-19 Jakub Jelinek <jakub@redhat.com>
7544
11bf311e
UD
7545 * nss/getXXbyYY_r.c: Include atomic.h.
7546 (INTERNAL (REENTRANT_NAME)): Write startp after start_fct,
7547 add atomic_write_barrier () in between.
7548
a12dcecc
UD
7549 * stdlib/Makefile (tests): Add tst-makecontext.
7550 * stdlib/tst-makecontext.c: New test.
7551
7552 * sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S
7553 (__makecontext): Don't realign uc_mcontext.uc_regs.
7554
11bf311e 75552006-11-28 Jakub Jelinek <jakub@redhat.com>
594d423a 7556
11bf311e
UD
7557 * elf/dl-support.c: Include dl-procinfo.h.
7558 * sysdeps/powerpc/dl-procinfo.h (PPC_PLATFORM_POWER4,
7559 PPC_PLATFORM_PPC970, PPC_PLATFORM_POWER5, PPC_PLATFORM_POWER5_PLUS,
7560 PPC_PLATFORM_POWER6, PPC_PLATFORM_CELL_BE, PPC_PLATFORM_POWER6X):
7561 Define.
7562 (_dl_string_platform): Use PPC_PLATFORM_* macros instead of
7563 hardcoded constants.
7564 * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_platform): Use
7565 PPC_PLATFORM_* macros for array designators.
594d423a 7566
11bf311e 75672006-11-11 Steven Munroe <sjmunroe@us.ibm.com>
594d423a 7568
11bf311e
UD
7569 * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add 3 new cap
7570 names to the beginning.
7571 (_dl_powerpc_platforms): Add "power6x".
7572 * sysdeps/powerpc/dl-procinfo.h (_DL_HWCAP_FIRST): Decrease.
7573 (HWCAP_IMPORTANT): Add PPC_FEATURE_HAS_DFP.
7574 (_DL_PLATFORMS_COUNT): Increase.
7575 (_dl_string_platform): Handle power6x case.
7576 * sysdeps/powerpc/sysdep.h (PPC_FEATURE_PA6T, PPC_FEATURE_HAS_DFP,
7577 PPC_FEATURE_POWER6_EXT): Define.
7578 (PPC_FEATURE_POWER5, PPC_FEATURE_POWER5_PLUS): Correct Comment.
594d423a 7579
5bcba0ed
UD
75802006-12-18 Jakub Jelinek <jakub@redhat.com>
7581
7582 [BZ #3747]
7583 * stdlib/jrand48_r.c (__jrand48_r): Make sure result is in the
11bf311e 7584 [-2^31 .. 2^31) range.
5bcba0ed
UD
7585 * stdlib/tst-rand48.c (main): Fix expected values for 64-bit
7586 targets.
7587 * stdlib/tst-rand48-2.c: New test.
7588 * stdlib/Makefile (tests): Add tst-rand48-2.
7589
9e1444fc
UD
75902006-12-14 Jakub Jelinek <jakub@redhat.com>
7591
7592 * misc/tst-pselect.c (do_test): Fix sigblock argument.
7593
36775704
UD
75942006-12-14 Ulrich Drepper <drepper@redhat.com>
7595
7596 * misc/tst-pselect.c (do_test): Make sure the helper process is
7597 terminating when the test is aborted.
7598
1e88bd0f
UD
75992006-12-13 Ulrich Drepper <drepper@redhat.com>
7600
11bf311e
UD
7601 * sysdeps/unix/sysv/linux/bits/statvfs.h: Define ST_RELATIME.
7602 * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
7603 Handle relatime mount option.
7604
1e88bd0f
UD
7605 [BZ #2337]
7606 * libio/Makefile (tests): Add tst-setvbuf1.
7607 * libio/tst-setvbuf1.c: New file.
7608
76092006-12-08 Jakub Jelinek <jakub@redhat.com>
7610
7611 [BZ #2337]
7612 * libio/genops.c (__uflow): Fix a typo.
7613 * libio/wfiledoalloc.c (_IO_wfile_doallocate): Don't stat
7614 nor set _IO_LINE_BUF bit here. Size the wide buffer based on
7615 the narrow buffer size.
7616
76172006-11-24 Jakub Jelinek <jakub@redhat.com>
7618
7619 [BZ #2337]
7620 * libio/libio.h (_IO_FLAGS2_USER_WBUF): Define.
7621 * libio/wgenops.c (_IO_wsetb, _IO_wdefault_finish): Test and set
7622 _IO_FLAGS2_USER_WBUF bit in _flags2 instead of _IO_USER_BUF bit
7623 in _flags.
7624 * libio/wstrops.c (_IO_wstr_overflow, enlarge_userbuf,
7625 _IO_wstr_finish): Likewise.
7626 * libio/wmemstream.c (open_wmemstream): Likewise.
7627 * libio/fileops.c (_IO_new_file_close_it): Call _IO_set[bgp]
7628 even for wide streams.
7629
11bf311e 76302006-12-13 Jakub Jelinek <jakub@redhat.com>
1f55ce48 7631
11bf311e
UD
7632 * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: Include
7633 kernel-features.h.
7634
76352006-12-11 Ulrich Drepper <drepper@redhat.com>
7636
7637 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Parse thousand
7638 separators also if no non-zero digits found.
7639 * stdlib/Makefile (tests): Add tst-strtod3.
1f55ce48 7640
d117c1ce
UD
76412006-12-09 Ulrich Drepper <drepper@redhat.com>
7642
f85fb97b
UD
7643 [BZ #3632]
7644 * include/features.h: Fix comment about default value for
7645 _POSIX_C_SOURCE.
7646
11bf311e
UD
7647 [BZ #3664]
7648 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix test to recognize
7649 empty parsed strings.
7650 * stdlib/Makefile (tests): Add tst-strtod2.
7651 * stdlib/tst-strtod2.c: New file.
7652
7653 [BZ #3673]
7654 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix exp_limit
7655 computation.
7656 * stdlib/Makefile (tests): Add tst-atof2.
7657 * stdlib/tst-atof2.c: New file.
7658
7659 [BZ #3674]
7660 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Adjust exponent value
7661 correctly if removing trailing zero of hex-float.
7662 * stdlib/Makefile (tests): Add tst-atof1.
7663 * stdlib/tst-atof1.c: New file.
7664
a822d9f4
UD
76652006-12-09 Jakub Jelinek <jakub@redhat.com>
7666
11bf311e
UD
7667 * misc/mntent_r.c (__hasmntopt): Check p[optlen] even when p == rest.
7668 Start searching for next comma at p rather than rest.
7669 * misc/Makefile (tests): Add tst-mntent2.
7670 * misc/tst-mntent2.c: New test.
7671
a822d9f4
UD
7672 * misc/getusershell.c (initshells): Check for integer overflows.
7673 Make strings buffer one bigger as fgets always succeeds when second
7674 argument is 1. Don't use calloc for shells array. Disallow
11bf311e 7675 / as shell.
f0d5e1f6 7676
11bf311e 76772006-12-08 Ulrich Drepper <drepper@redhat.com>
f0d5e1f6 7678
11bf311e
UD
7679 * malloc/memusage.c: Handle realloc with new size of zero and
7680 non-NULL pointer correctly.
7681 (me): Really write first record twice.
7682 (struct entry): Make format bi-arch safe.
7683 (dest): Write out more realloc statistics.
7684 * malloc/memusagestat.c (struct entry): Make format bi-arch safe.
32c075e1 7685
11bf311e 76862006-12-05 Jakub Jelinek <jakub@redhat.com>
32c075e1 7687
11bf311e 7688 * nis/nis_subr.c (nis_getnames): Revert last change.
32c075e1 7689
f0d5e1f6
UD
76902006-12-04 Jakub Jelinek <jakub@redhat.com>
7691
7692 * sysdeps/unix/sysv/linux/ttyname.c: Include termios.h.
7693 (ttyname): Use tcgetattr instead of isatty, don't set errno to ENOTTY.
7694 * sysdeps/unix/sysv/linux/ttyname_r.c: Include termios.h.
7695 (__ttyname_r): Use tcgetattr instead of isatty, don't set errno to
7696 ENOTTY.
7697 * io/Makefile: Add rules to build and run tst-ttyname_r test.
7698 * io/tst-ttyname_r.c: New test.
7699
11bf311e 77002006-12-03 Kaz Kojima <kkojima@rr.iij4u.or.jp>
5df4fe08 7701
11bf311e 7702 * sysdeps/unix/sysv/linux/sh/sys/io.h: Removed.
5df4fe08 7703
11bf311e 77042006-11-30 H.J. Lu <hongjiu.lu@intel.com>
ee50871d 7705
11bf311e
UD
7706 * sysdeps/i386/i686/memcmp.S: Use jump table as the base of
7707 jump table entries.
7708
77092006-11-30 Jan Kratochvil <jan.kratochvil@redhat.com>
7710
7711 * sysdeps/unix/sysv/linux/i386/clone.S: Provide CFI for the outermost
7712 `clone' function to ensure proper unwinding stop of gdb.
7713 * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
7714
77152006-12-01 Ulrich Drepper <drepper@redhat.com>
7716
7717 * nscd/nscd.init: Remove obsolete and commented-out -S option
7718 handling.
7719
77202006-11-23 Jakub Jelinek <jakub@redhat.com>
7721
7722 [BZ #3514]
7723 * manual/string.texi (strncmp): Fix pastos from wcscmp description.
7724
7725 [BZ #3515]
7726 * manual/string.texi (strtok): Remove duplicate paragraph.
7727
77282006-12-01 Jan Kratochvil <jan.kratochvil@redhat.com>
7729
7730 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Fix compatibility with
7731 libgcc not supporting `rflags' unwinding (register # >= 17).
7732
77332006-11-30 Jakub Jelinek <jakub@redhat.com>
7734
7735 * sunrpc/svc_run.c (svc_run): Set my_pollfd to new_pollfd if realloc
7736 succeeded.
7737
77382006-11-29 Daniel Jacobowitz <dan@codesourcery.com>
7739 Jakub Jelinek <jakub@redhat.com>
7740 Jan Kratochvil <jan.kratochvil@redhat.com>
7741
7742 * sysdeps/unix/sysv/linux/x86_64/sigaction.c (restore_rt): Add correct
7743 unwind information.
7744 * sysdeps/unix/sysv/linux/x86_64/Makefile: Provide symbols for
7745 'restore_rt' even in the 'signal' directory.
7746 * sysdeps/unix/sysv/linux/x86_64/ucontext_i.sym: Extend the regs list.
ee50871d 7747
b1a758f3
UD
77482006-11-27 Jakub Jelinek <jakub@redhat.com>
7749
7750 [BZ #3559]
7751 * sunrpc/svc_run.c (svc_run): Fail instead of segfaulting if
11bf311e
UD
7752 malloc crashed. Don't allocate memory unnecessarily in each
7753 loop.
b1a758f3 7754
11bf311e 77552006-10-21 Jakub Jelinek <jakub@redhat.com>
854d1124 7756
11bf311e 7757 * resolv/mapv4v6addr.h (map_v4v6_address): Fix last change.
dfc99a56 7758
11bf311e 77592006-11-20 Ulrich Drepper <drepper@redhat.com>
dfc99a56 7760
11bf311e 7761 * resolv/mapv4v6addr.h (map_v4v6_address): Optimize a bit.
852d657c 7762
11bf311e 77632006-11-18 Bruno Haible <bruno@clisp.org>
852d657c 7764
11bf311e
UD
7765 * sysdeps/unix/sysv/linux/i386/getgroups.c (__getgroups): Invoke
7766 __sysconf only after having tried to call getgroups32.
36c0a636 7767
11bf311e 77682006-11-19 Ulrich Drepper <drepper@redhat.com>
36c0a636 7769
11bf311e
UD
7770 * nss/nss_files/files-hosts.c (LINE_PARSER): Support IPv6-style
7771 addresses for IPv4 queries if they can be mapped.
b1f0c2a6 7772
11bf311e 77732006-11-16 Jakub Jelinek <jakub@redhat.com>
b1f0c2a6 7774
11bf311e
UD
7775 * sysdeps/x86_64/fpu/s_copysignf.S (__copysignf): Switch to .text.
7776 * sysdeps/x86_64/fpu/s_copysign.S (__copysign): Likewise.
7777 (signmask): Add .size directive.
7778 (othermask): Add .type directive.
bef8927a 7779
11bf311e 77802006-11-14 Ulrich Drepper <drepper@redhat.com>
2c53fa20 7781
11bf311e 7782 * po/nl.po: Update from translation team.
854d1124 7783
11bf311e 7784 * timezone/zdump.c: Redo fix for BZ #3137.
3f1e9205 7785
11bf311e 77862006-11-14 Jakub Jelinek <jakub@redhat.com>
bef8927a 7787
11bf311e
UD
7788 * nss/nss_files/files-alias.c (get_next_alias): Set line back
7789 to first_unused after parsing :include: file.
5c2af134 7790
32c075e1 77912006-11-10 Ulrich Drepper <drepper@redhat.com>
e1b37083 7792
11bf311e
UD
7793 * timezone/africa: Update from tzdata2006o.
7794 * timezone/antarctica: Likewise.
7795 * timezone/asia: Likewise.
7796 * timezone/australasia: Likewise.
7797 * timezone/backward: Likewise.
7798 * timezone/europe: Likewise.
7799 * timezone/iso3166.tab: Likewise.
7800 * timezone/northamerica: Likewise.
7801 * timezone/southamerica: Likewise.
7802 * timezone/zone.tab: Likewise.
7803
7804 * time/tzfile.c (__tzfile_read): Extend to handle new file format
7805 on machines with 64-bit time_t.
7806
7807 * timezone/checktab.awk: Update from tzcode2006o.
7808 * timezone/ialloc.c: Likewise.
7809 * timezone/private.h: Likewise.
7810 * timezone/scheck.c: Likewise.
7811 * timezone/tzfile.h: Likewise.
7812 * timezone/tzselect.ksh: Likewise.
7813 * timezone/zdump.c: Likewise.
7814 * timezone/zic.c: Likewise.
7815
7816 [BZ #3483]
7817 * elf/ldconfig.c (main): Call setlocale and textdomain.
7818 Patch mostly by Benno Schulenberg <bensberg@justemail.net>.
7819
7820 [BZ #3480]
7821 * manual/argp.texi: Fix typos.
7822 * manual/charset.texi: Likewise.
7823 * manual/errno.texi: Likewise.
7824 * manual/filesys.texi: Likewise.
7825 * manual/lang.texi: Likewise.
7826 * manual/maint.texi: Likewise.
7827 * manual/memory.texi: Likewise.
7828 * manual/message.texi: Likewise.
7829 * manual/resource.texi: Likewise.
7830 * manual/search.texi: Likewise.
7831 * manual/signal.texi: Likewise.
7832 * manual/startup.texi: Likewise.
7833 * manual/stdio.texi: Likewise.
7834 * manual/sysinfo.texi: Likewise.
7835 * manual/syslog.texi: Likewise.
7836 * manual/time.texi: Likewise.
7837 Patch by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
7838
7839 [BZ #3465]
7840 * sunrpc/clnt_raw.c: Minimal message improvements.
7841 * sunrpc/pm_getmaps.c: Likewise.
7842 * nis/nss_nisplus/nisplus-publickey.c: Likewise.
7843 * nis/nis_print_group_entry.c: Likewise.
7844 * locale/programs/repertoire.c: Likewise.
7845 * locale/programs/charmap.c: Likewise.
7846 * malloc/memusage.sh: Likewise.
7847 * elf/dl-deps.c: Likewise.
7848 * locale/programs/ld-collate.c: Likewise.
7849 * libio/vswprintf.c: Likewise.
7850 * malloc/memusagestat.c: Likewise.
7851 * sunrpc/auth_unix.c: Likewise.
7852 * sunrpc/rpc_main.c: Likewise.
7853 * nscd/cache.c: Likewise.
7854 * locale/programs/repertoire.c: Unify output messages.
7855 * locale/programs/charmap.c: Likewise.
7856 * locale/programs/ld-ctype.c: Likewise.
7857 * locale/programs/ld-monetary.c: Likewise.
7858 * locale/programs/ld-numeric.c: Likewise.
7859 * locale/programs/ld-time.c: Likewise.
7860 * elf/ldconfig.c: Likewise.
7861 * nscd/selinux.c: Likewise.
7862 * elf/cache.c: Likewise.
7863 Patch mostly by Benno Schulenberg <bensberg@justemail.net>.
7864
5c2af134
UD
7865 [BZ #3451]
7866 * sysdeps/i386/fpu/bits/mathinline.h (floor): Make rounding mode
7867 change atomic.
7868 (ceil): Likewise.
7869
11bf311e
UD
78702006-11-10 Jakub Jelinek <jakub@redhat.com>
7871
7872 * string/strxfrm_l.c (STRXFRM): Fix trailing \1 optimization
7873 if N is one bigger than return value.
7874 * string/tst-strxfrm2.c (do_test): Also test strxfrm with l1 + 1
7875 and l1 last arguments, if buf is defined, verify the return value
7876 equals to strlen (buf) and verify no byte beyond passed length
7877 is modified.
7878
78792006-11-10 Ulrich Drepper <drepper@redhat.com>
7880
7881 * po/sv.po: Update from translation team.
7882
37afcf79
UD
78832006-11-09 Ulrich Drepper <drepper@redhat.com>
7884
7885 * sysdeps/unix/sysv/linux/x86_64/sysconf.c (intel_check_word): Add
7886 noinline attribute.
7887
78882006-11-10 Jakub Jelinek <jakub@redhat.com>
7889
7890 * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Add
7891 noinline attribute.
7892
11bf311e
UD
7893 * sysdeps/gnu/siglist.c (__old_sys_siglist, __old_sys_sigabbrev):
7894 Use __new_sys_siglist instead of _sys_siglist_internal as
7895 second macro argument.
7896 (_old_sys_siglist): Use declare_symbol_alias macro instead of
7897 strong_alias.
2692deea 7898
11bf311e
UD
78992006-11-09 Ulrich Drepper <drepper@redhat.com>
7900
7901 [BZ #3493]
7902 * posix/unistd.h (sysconf): Remove const attribute.
7903
7904 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Fix test for
7905 temporary or deprecated addresses.
7906 Patch by Sridhar Samudrala <sri@us.ibm.com>.
7907
7908 * string/Makefile (tests): Add tst-strxfrm2.
7909 * string/tst-strxfrm2.c: New file.
7910
79112006-10-09 Jakub Jelinek <jakub@redhat.com>
7912
7913 * elf/dl-debug.c (_dl_debug_initialize): Check r->r_map for 0
7914 rather than r->r_brk.
2692deea
UD
7915
79162006-11-08 Jakub Jelinek <jakub@redhat.com>
7917
11bf311e
UD
7918 * string/strxfrm_l.c (STRXFRM): Do the trailing \1 removal
7919 optimization even if needed > n.
7920
2692deea
UD
7921 * elf/dl-load.c (decompose_rpath): Return bool rather than void.
7922 If l->l_name is on inhibit_rpath list, set sps->dirs to -1 and
7923 return false, otherwise return true.
7924 (cache_rpath): Return decompose_rpath return value.
7925
11bf311e
UD
79262006-11-07 Jakub Jelinek <jakub@redhat.com>
7927
7928 * include/libc-symbols.h (declare_symbol): Rename to...
7929 (declare_symbol_alias): ... this. Add ORIGINAL argument, imply
7930 strong_alias (ORIGINAL, SYMBOL) in asm to make sure it preceedes
7931 .size directive.
7932 * sysdeps/gnu/errlist-compat.awk: Adjust for declare_symbol_alias
7933 changes.
7934 * sysdeps/gnu/siglist.c: Likewise.
7935
79362006-11-03 Steven Munroe <sjmunroe@us.ibm.com>
7937
7938 * sysdeps/powerpc/fpu/bits/mathinline.h
7939 [__LIBC_INTERNAL_MATH_INLINES]: Moved to ...
7940 * sysdeps/powerpc/fpu/math_private.h: ...here. New file.
7941
79422006-11-05 Ulrich Drepper <drepper@redhat.com>
7943
7944 * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
7945 Update handling of cache descriptor 0x49 for new models.
7946 * sysdeps/unix/sysv/linux/x86_64/sysconf.c (intel_check_word):
7947 Likewise.
7948
9666e36c
UD
79492006-11-02 Jakub Jelinek <jakub@redhat.com>
7950
7951 * malloc/memusage.c (dest): Reset not_me back to false after
7952 printing statistics.
7953
11bf311e
UD
79542006-11-02 Ulrich Drepper <drepper@redhat.com>
7955
7956 * configure.in: Work around ld --help change and avoid -z relro
7957 test completely if the architecture doesn't care about security.
7958
79592006-11-01 Ulrich Drepper <drepper@redhat.com>
7960
7961 * po/sv.po: Update from translation team.
7962
79632006-10-31 Ulrich Drepper <drepper@redhat.com>
7964
7965 * stdlib/atexit.c (atexit): Don't mark as hidden when used to
7966 generate compatibility version.
7967
79682006-10-29 Ulrich Drepper <drepper@redhat.com>
7969
7970 * configure.in: Relax -z relro requirement a bit.
7971
7972 * po/sv.po: Update from translation team.
7973
79742006-10-29 Jakub Jelinek <jakub@redhat.com>
7975
7976 * elf/dl-sym.c (do_sym): Use RTLD_SINGLE_THREAD_P.
7977 * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Likewise.
7978 * elf/dl-close.c (_dl_close_worker): Likewise.
7979 * elf/dl-open.c (_dl_open_worker): Likewise.
7980 * sysdeps/generic/sysdep-cancel.h (RTLD_SINGLE_THREAD_P): Define.
7981
b2369ca3
UD
79822006-10-27 Ulrich Drepper <drepper@redhat.com>
7983
11bf311e
UD
7984 * configure.in: Require assembler support for visibility, compiler
7985 support for visibility and aliases, linker support for various -z
7986 options.
7987 * Makeconfig: Remove conditional code which now is unnecessary.
7988 * config.h.in: Likewise.
7989 * config.make.in: Likewise.
7990 * dlfcn/Makefile: Likewise.
7991 * elf/Makefile: Likewise.
7992 * elf/dl-load.c: Likewise.
7993 * elf/rtld.c: Likewise.
7994 * include/libc-symbols.h: Likewise.
7995 * include/stdio.h: Likewise.
7996 * io/Makefile: Likewise.
7997 * io/fstat.c: Likewise.
7998 * io/fstat64.c: Likewise.
7999 * io/fstatat.c: Likewise.
8000 * io/fstatat64.c: Likewise.
8001 * io/lstat.c: Likewise.
8002 * io/lstat64.c: Likewise.
8003 * io/mknod.c: Likewise.
8004 * io/mknodat.c: Likewise.
8005 * io/stat.c: Likewise.
8006 * io/stat64.c: Likewise.
8007 * libio/stdio.c: Likewise.
8008 * nscd/Makefile: Likewise.
8009 * stdlib/Makefile: Likewise.
8010 * stdlib/atexit.c: Likewise.
8011 * sysdeps/generic/ldsodefs.h: Likewise.
8012 * sysdeps/i386/dl-machine.h: Likewise.
8013 * sysdeps/i386/sysdep.h: Likewise.
8014 * sysdeps/i386/i686/memcmp.S: Likewise.
8015 * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
8016 * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
8017 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
8018
8019 * Makerules: USE_TLS support is now default.
8020 * tls.make.c: Likewise.
8021 * csu/Versions: Likewise.
8022 * csu/libc-start.c: Likewise.
8023 * csu/libc-tls.c: Likewise.
8024 * csu/version.c: Likewise.
8025 * dlfcn/dlinfo.c: Likewise.
8026 * elf/dl-addr.c: Likewise.
8027 * elf/dl-cache.c: Likewise.
8028 * elf/dl-close.c: Likewise.
8029 * elf/dl-iteratephdr.c: Likewise.
8030 * elf/dl-load.c: Likewise.
8031 * elf/dl-lookup.c: Likewise.
8032 * elf/dl-object.c: Likewise.
8033 * elf/dl-open.c: Likewise.
8034 * elf/dl-reloc.c: Likewise.
8035 * elf/dl-support.c: Likewise.
8036 * elf/dl-sym.c: Likewise.
8037 * elf/dl-sysdep.c: Likewise.
8038 * elf/dl-tls.c: Likewise.
8039 * elf/ldconfig.c: Likewise.
8040 * elf/rtld.c: Likewise.
8041 * elf/tst-tls-dlinfo.c: Likewise.
8042 * elf/tst-tls1.c: Likewise.
8043 * elf/tst-tls10.h: Likewise.
8044 * elf/tst-tls14.c: Likewise.
8045 * elf/tst-tls2.c: Likewise.
8046 * elf/tst-tls3.c: Likewise.
8047 * elf/tst-tls4.c: Likewise.
8048 * elf/tst-tls5.c: Likewise.
8049 * elf/tst-tls6.c: Likewise.
8050 * elf/tst-tls7.c: Likewise.
8051 * elf/tst-tls8.c: Likewise.
8052 * elf/tst-tls9.c: Likewise.
8053 * elf/tst-tlsmod1.c: Likewise.
8054 * elf/tst-tlsmod13.c: Likewise.
8055 * elf/tst-tlsmod13a.c: Likewise.
8056 * elf/tst-tlsmod14a.c: Likewise.
8057 * elf/tst-tlsmod2.c: Likewise.
8058 * elf/tst-tlsmod3.c: Likewise.
8059 * elf/tst-tlsmod4.c: Likewise.
8060 * elf/tst-tlsmod5.c: Likewise.
8061 * elf/tst-tlsmod6.c: Likewise.
8062 * include/errno.h: Likewise.
8063 * include/link.h: Likewise.
8064 * include/tls.h: Likewise.
8065 * locale/global-locale.c: Likewise.
8066 * locale/localeinfo.h: Likewise.
8067 * malloc/arena.c: Likewise.
8068 * malloc/hooks.c: Likewise.
8069 * malloc/malloc.c: Likewise.
8070 * resolv/Versions: Likewise.
8071 * sysdeps/alpha/dl-machine.h: Likewise.
8072 * sysdeps/alpha/libc-tls.c: Likewise.
8073 * sysdeps/generic/ldsodefs.h: Likewise.
8074 * sysdeps/generic/tls.h: Likewise.
8075 * sysdeps/i386/dl-machine.h: Likewise.
8076 * sysdeps/ia64/dl-machine.h: Likewise.
8077 * sysdeps/ia64/libc-tls.c: Likewise.
8078 * sysdeps/mach/hurd/fork.c: Likewise.
8079 * sysdeps/mach/hurd/i386/tls.h: Likewise.
8080 * sysdeps/powerpc/powerpc32/dl-machine.c: Likwise.
8081 * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
8082 * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
8083 * sysdeps/s390/libc-tls.c: Likewise.
8084 * sysdeps/s390/s390-32/dl-machine.h: Likewise.
8085 * sysdeps/s390/s390-64/dl-machine.h: Likewise.
8086 * sysdeps/sh/dl-machine.h: Likewise.
8087 * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
8088 * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
8089 * sysdeps/x86_64/dl-machine.h: Likewise.
8090
131c4428
UD
8091 * elf/dl-close.c (_dl_close_worker): Renamed from _dl_close and
8092 split out locking and parameter checking.
8093 (_dl_close): Call _dl_close_worker after locking and checking.
8094 * elf/dl-open.c (_dl_open): Call _dl_close_worker instead of
8095 _dl_close.
ffd0e1b7
UD
8096 * elf/Makefile: Add rules to build and run tst-thrlock.
8097 * elf/tst-thrlock.c: New file.
131c4428 8098
11bf311e
UD
8099 [BZ #3426]
8100 * stdlib/stdlib.h: Adjust comment for canonicalize_file_name to
8101 reality.
8102
b2369ca3
UD
8103 [BZ #3429]
8104 * elf/dl-open.c (dl_open_worker): Keep holding dl_load_lock until
131c4428 8105 we are sure we do not need it anymore for _dl_close. Also move
b2369ca3
UD
8106 the asserts inside the lock region.
8107 Patch mostly by Suzuki <suzuki@in.ibm.com>.
8108
11bf311e
UD
81092006-10-27 Jakub Jelinek <jakub@redhat.com>
8110
8111 * elf/dl-lookup.c (_dl_debug_bindings): Remove unused symbol_scope
8112 argument.
8113 (_dl_lookup_symbol_x): Adjust caller.
8114
8115 * sysdeps/generic/ldsodefs.h (struct link_namespaces): Remove
8116 _ns_global_scope.
8117 * elf/rtld.c (dl_main): Don't initialize _ns_global_scope.
8118
8119 * elf/dl-libc.c: Revert l_scope name changes.
8120 * elf/dl-load.c: Likewise.
8121 * elf/dl-object.c: Likewise.
8122 * elf/rtld.c: Likewise.
8123 * elf/dl-close.c (_dl_close): Likewise.
8124 * elf/dl-open.c (dl_open_worker): Likewise. If not SINGLE_THREAD_P,
8125 always use __rtld_mrlock_{change,done}. Always free old scope list
8126 here if not l_scope_mem.
8127 * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Revert l_scope name
8128 change. Never free scope list here. Just __rtld_mrlock_lock before
8129 the lookup and __rtld_mrlock_unlock it after the lookup.
8130 * elf/dl-sym.c: Likewise.
8131 * include/link.h (struct r_scoperec): Remove.
8132 (struct link_map): Replace l_scoperec with l_scope, l_scoperec_mem
8133 with l_scope_mem and l_scoperec_lock with l_scope_lock.
8134
81352006-10-25 Ulrich Drepper <drepper@redhat.com>
8136
8137 * sysdeps/gnu/netinet/tcp.h: Define TCP_CONGESTION.
8138
81392006-10-18 Ulrich Drepper <drepper@redhat.com>
8140
8141 * configure.in: Disable building profile libraries by default.
8142
609cf614
UD
81432006-10-17 Jakub Jelinek <jakub@redhat.com>
8144
8145 * sunrpc/xdr_mem.c (xdrmem_setpos): Don't compare addresses
8146 as signed longs, check for x_base + pos overflow.
8147 * sunrpc/Makefile (tests): Add tst-xdrmem2.
8148 * sunrpc/tst-xdrmem2.c: New test.
8149
11bf311e
UD
81502006-10-18 Ulrich Drepper <drepper@redhat.com>
8151
8152 * elf/dl-lookup.c (_dl_lookup_symbol_x): Add warning to
8153 _dl_lookup_symbol_x code.
8154
81552006-10-17 Jakub Jelinek <jakub@redhat.com>
8156
8157 * elf/dl-runtime.c: Include sysdep-cancel.h.
8158 (_dl_fixup, _dl_profile_fixup): Use __rtld_mrlock_* and
8159 scoperec->nusers only if !SINGLE_THREAD_P. Use atomic_*
8160 instead of catomic_* macros.
8161 * elf/dl-sym.c: Include sysdep-cancel.h.
8162 (do_sym): Use __rtld_mrlock_* and scoperec->nusers only
8163 if !SINGLE_THREAD_P. Use atomic_* instead of catomic_* macros.
8164 * elf/dl-close.c: Include sysdep-cancel.h.
8165 (_dl_close): Use __rtld_mrlock_* and scoperec->nusers only
8166 if !SINGLE_THREAD_P. Use atomic_* instead of catomic_* macros.
8167 * elf/dl-open.c: Include sysdep-cancel.h.
8168 (dl_open_worker): Use __rtld_mrlock_* and scoperec->nusers only
8169 if !SINGLE_THREAD_P. Use atomic_* instead of catomic_* macros.
8170
81712006-10-17 Jakub Jelinek <jakub@redhat.com>
8172
8173 [BZ #3313]
8174 * malloc/malloc.c (malloc_consolidate): Set maxfb to address of last
8175 fastbin rather than end of fastbin array.
8176
81772006-10-18 Ulrich Drepper <drepper@redhat.com>
8178
8179 * sysdeps/i386/i486/bits/atomic.h (catomic_decrement): Use correct
8180 body macro.
8181 * sysdeps/x86_64/bits/atomic.h
8182 (__arch_c_compare_and_exchange_val_64_acq): Add missing casts.
8183 (catomic_decrement): Use correct body macro.
8184
81852006-10-17 Jakub Jelinek <jakub@redhat.com>
8186
8187 * include/atomic.h: Add a unique prefix to all local variables
8188 in macros.
8189 * csu/tst-atomic.c (do_test): Test also catomic_* macros.
8190
4a85a8ee
UD
81912006-10-16 Ulrich Drepper <drepper@redhat.com>
8192
8193 [BZ #3369]
8194 * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Fix typos in rules 4
8195 and 7.
8196
11bf311e
UD
81972006-10-14 Ulrich Drepper <drepper@redhat.com>
8198
8199 * resolv/arpa/nameser.h: Document that ns_t_a6 is deprecated.
8200
ff8d96be
UD
82012006-10-13 Ulrich Drepper <drepper@redhat.com>
8202
11bf311e
UD
8203 [BZ #3313]
8204 * malloc/malloc.c (malloc_consolidate): Don't use get_fast_max to
8205 determine highest fast bin to consolidate, always look into all of
8206 them.
8207 (do_check_malloc_state): Only require for empty bins for large
8208 sizes in main arena.
8209
8210 * libio/stdio.h: Add more __wur attributes.
8211
ff8d96be
UD
8212 * elf/dl-minimal.c (realloc): Optimize last patch.
8213
90a0991a
UD
82142006-10-12 Richard Sandiford <richard@codesourcery.com>
8215
8216 [BZ #3352]
8217 * elf/dl-minimal.c (realloc): Let malloc() return a new pointer,
8218 and use memcpy() if it does.
ff8d96be 8219
11bf311e
UD
82202006-11-12 Andreas Jaeger <aj@suse.de>
8221
8222 [BZ #2510]
8223 * manual/search.texi (Hash Search Function): Clarify.
8224 (Array Search Function): Clarify.
8225
82262006-11-12 Joseph Myers <joseph@codesourcery.com>
8227
8228 [BZ #2830]
8229 * math/atest-exp.c (main): Cast hex value to mp_limb_t before
8230 shifting.
8231 * math/atest-exp2.c (read_mpn_hex): Likewise.
8232 * math/atest-sincos.c (main): Likewise.
8233
37fb7595
UD
82342006-10-11 Ulrich Drepper <drepper@redhat.com>
8235
11bf311e
UD
8236 * sysdeps/unix/sysv/linux/syscalls.list: Add epoll_pwait.
8237 * sysdeps/unix/sysv/linux/sys/epoll.h: Declare epoll_pwait.
8238 * sysdeps/unix/sysv/linux/Versions (libc): Add epoll_pwait for
8239 version GLIBC_2.6.
8240 * Versions.def: Add GLIBC_2.6 for libc.
8241
46c38bd7
UD
8242 * sysdeps/unix/sysv/linux/i386/sysdep.h (DOARGS_6): Fix offset.
8243
11bf311e
UD
8244 * sysdeps/i386/i486/bits/atomic.h: Add catomic_* support.
8245
82462006-10-11 Jakub Jelinek <jakub@redhat.com>
8247
8248 * malloc/malloc.c (_int_malloc): Remove unused any_larger variable.
8249
8250 * nis/nis_defaults.c (__nis_default_access): Don't call getenv twice.
8251
8252 * nis/nis_subr.c (nis_getnames): Use __secure_getenv instead of getenv.
8253 * sysdeps/generic/unsecvars.h: Add NIS_PATH.
8254
82552006-10-11 Ulrich Drepper <drepper@redhat.com>
8256
8257 * include/atomic.c: Define catomic_* operations.
8258 * sysdeps/x86_64/bits/atomic.h: Likewise. Fix a few minor problems.
8259 * stdlib/cxa_finalize.c: Use catomic_* operations instead of atomic_*.
8260 * malloc/memusage.c: Likewise.
8261 * gmon/mcount.c: Likewise.
8262 * elf/dl-close.c: Likewise.
8263 * elf/dl-open.c: Likewise.
8264 * elf/dl-profile.c: Likewise.
8265 * elf/dl-sym.c: Likewise.
8266 * elf/dl-runtime.c: Likewise.
8267 * elf/dl-fptr.c: Likewise.
8268 * resolv/res_libc.c: Likewise.
8269
2a6ee549
UD
82702006-10-10 Ulrich Drepper <drepper@redhat.com>
8271
8272 * nis/nis_subr.c (nis_getnames): Add trailing dot to NIS_PATH
8273 components which lack them.
8274
8275 * nis/nis_subr.c (nis_getnames): Make sure that we always return
8276 at least one entry consisting of the parameter concatenated with
8277 the domain.
8278
11bf311e 82792006-10-10 Roland McGrath <roland@frob.com>
c4f9fc3a 8280
11bf311e
UD
8281 * sysdeps/mach/hurd/utimes.c: Use a union to avoid an improper cast.
8282 * sysdeps/mach/hurd/futimes.c: Likewise.
8283 * sysdeps/mach/hurd/lutimes.c: Likewise.
8284
82852006-10-09 Ulrich Drepper <drepper@redhat.com>
8286 Jakub Jelinek <jakub@redhat.com>
8287
8288 Implement reference counting of scope records.
8289 * elf/dl-close.c (_dl_close): Remove all scopes from removed objects
8290 from the list in objects which remain. Always allocate new scope
8291 record.
8292 * elf/dl-open.c (dl_open_worker): When growing array for scopes,
8293 don't resize, allocate a new one.
8294 * elf/dl-runtime.c: Update reference counters before using a scope
8295 array.
8296 * elf/dl-sym.c: Likewise.
8297 * elf/dl-libc.c: Adjust for l_scope name change.
8298 * elf/dl-load.c: Likewise.
8299 * elf/dl-object.c: Likewise.
8300 * elf/rtld.c: Likewise.
8301 * include/link.h: Include <rtld-lowlevel.h>. Define struct
8302 r_scoperec. Replace r_scope with pointer to r_scoperec structure.
8303 Add l_scoperec_lock.
8304 * sysdeps/generic/ldsodefs.h: Include <rtld-lowlevel.h>.
8305 * sysdeps/generic/rtld-lowlevel.h: New file.
8306
8307 * include/atomic.h: Rename atomic_and to atomic_and_val and
8308 atomic_or to atomic_or_val. Define new macros atomic_and and
8309 atomic_or which do not return values.
8310 * sysdeps/x86_64/bits/atomic.h: Define atomic_and and atomic_or.
8311 Various cleanups.
8312 * sysdeps/i386/i486/bits/atomic.h: Likewise.
8313
8314 * po/sv.po: Update from translation team.
8315
83162006-10-07 Ulrich Drepper <drepper@redhat.com>
8317
8318 * Versions.def: Add GLIBC_2.6 to libpthread.
8319
8320 * include/shlib-compat.h (SHLIB_COMPAT): Expand parameters before use.
8321 (versioned_symbol): Likewise.
8322 (compat_symbol): Likewise.
8323
8324 * po/tr.po: Update from translation team.
feb87ad1 8325
4df92d57
UD
83262006-10-06 Ulrich Drepper <drepper@redhat.com>
8327
11bf311e
UD
8328 * nis/Banner: Removed. It's been integral part forever and the
8329 author info is incomplete anyway.
8330 * libio/Banner: Likewise.
8331
4df92d57
UD
8332 * nis/nis_table.c (nis_list): If __follow_path fails in the new
8333 code, make sure the nis_freeresult call doesn't crash and that the
8334 result is reported correctly.
8335
68361572
UD
83362006-09-27 Jakub Jelinek <jakub@redhat.com>
8337
8338 * nis/nis_table.c (nis_list): Handle FOLLOW_PATH | ALL_RESULTS
8339 when callback is NULL.
8340
8341 * nis/Versions (libnss_nisplus): Add
8342 _nss_nisplus_initgroups_dyn@@GLIBC_PRIVATE.
8343 * nis/Makefile (libnss_nisplus-routines): Add nisplus-initgroups.
8344 * nis/nss_nisplus/nisplus-grp.c (tablename_val, tablename_len,
8345 _nss_create_tablename): Rename to...
8346 (grp_tablename_val, grp_tablename_len, _nss_grp_create_tablename):
8347 ... these. No longer static.
8348 (internal_setgrent): Adjust users.
8349 (_nss_nisplus_getgrnam_r, _nss_nisplus_getgrgid_r): Likewise.
8350 Don't use locking around _nss_grp_create_tablename call.
8351 * nis/nss_nisplus/nisplus-initgroups.c: New file.
8352
11bf311e
UD
83532006-10-06 Ulrich Drepper <drepper@redhat.com>
8354
8355 * version.h (VERSION): Bump to 2.5.90 for new development tree.
8356
3a4e0609
UD
83572006-10-06 Andreas Jaeger <aj@suse.de>
8358
8359 * include/features.h (__GLIBC_MINOR__): It's glibc 2.5 now.
8360
83612006-10-06 Ulrich Drepper <drepper@redhat.com>
8362
8363 * po/pl.po: Update from translation team.
8364
8365 * nscd/nscd.c (main): Fix typo in message.
8366 Patch by Jakub Bogsz <qboosh@pld-linux.org>.
8367
97e57dee
UD
83682006-10-02 Jakub Jelinek <jakub@redhat.com>
8369
8370 [BZ #3291]
8371 * sysdeps/unix/sysv/linux/sparc/sparc64/pause.c: Include
8372 errno.h, signal.h, unistd.h and sysdep-cancel.h.
8373 (__sigprocmask): Define.
8374
768027a4
UD
83752006-10-02 Ulrich Drepper <drepper@redhat.com>
8376
8377 * elf/rtld.c (dl_main): Don't use prelinking if LD_DYNAMIC_WEAK is
8378 used.
8379
0b25a49a
UD
83802006-10-02 Jakub Jelinek <jakub@redhat.com>
8381
8382 * nscd/mem.c (mempool_alloc): Round array size to 16 bytes
8383 in oldtotal and newtotal calculation.
8384 * nscd/nscd-client.h (struct mapped_database): Add datasize
8385 field.
8386 * nscd/nscd_helper.c (get_mapping): Initialize datasize field.
8387 (__nscd_get_map_ref): Get a new mapping even if mapping's data_size
8388 increased.
8389 (__nscd_cache_search): Add checks to make sure we never reference
8390 data beyond the current mapping.
8391
a1286745
UD
83922006-10-02 Dmitry V. Levin <ldv@altlinux.org>
8393
d4ed7561
UD
8394 * sysdeps/posix/getaddrinfo.c (match_prefix): Make mask and val
8395 variables const to avoid compiler warnings.
8396
a1286745
UD
8397 * io/fts.c (fts_close): Remove redundant checks.
8398 (fts_build): Likewise.
8399 (fts_palloc): Likewise.
8400
8401 * manual/message.texi (Advanced gettext functions,
8402 Using gettextized software): Fix typos.
8403
f01e4069
UD
84042006-09-30 Ulrich Drepper <drepper@redhat.com>
8405
8406 * posix/glob.c (glob_in_dir): Add some comments and asserts to
8407 explain why there are no leaks.
8408
154619b5
UD
84092006-09-29 Ulrich Drepper <drepper@redhat.com>
8410
690c3947
UD
8411 * libio/wmemstream.c: Include <wchar.h>.
8412 * libio/bug-wmemstream1.c: Likewise.
8413 * libio/tst-wmemstream1.c: Likewise.
8414 * libio/tst-wmemstream2.c: Likewise.
8415
88cc61e8
UD
8416 * version.h (RELEASE): Bump to 2.5.
8417 * README: Regenerated.
8418
a70c18b0
UD
8419 * locale/iso-3166.def: Add Aaland Islands and Montenegro.
8420
154619b5
UD
8421 [BZ #3273]
8422 * nscd/nscd_initgroups.c (__nscd_getgrouplist): It is OK to have
8423 found no group members.
8424 Patch by Petr Baudis.
8425
84262006-09-29 Jakub Jelinek <jakub@redhat.com>
8427
8428 * elf/rtld.c (_dl_start_final): If not USE___THREAD, don't
8429 assert bootstrap_map.l_tls_modid is zero.
8430 (_dl_start): Initialize bootstrap_map.l_tls_modid to 0
8431 if USE___THREAD.
8432
1c31aa79
UD
84332006-09-27 Ulrich Drepper <drepper@redhat.com>
8434
8435 * libio/stdio.h: Move open_wmemstream prototype to ...
8436 * wcsmbs/wchar.h: ... here.
8437
f1122ec3
UD
84382006-09-25 Jakub Jelinek <jakub@redhat.com>
8439
8440 [BZ #3252]
8441 * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat): Handle only
8442 fchownat syscall and __ASSUME_LCHOWN_SYSCALL case inline, call
8443 __{,l}chown to handle the rest.
8444 * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Handle only
8445 fchownat syscall and __ASSUME_32BITUIDS case inline, call
8446 __{,l}chown to handle the rest.
8447 * sysdeps/unix/sysv/linux/sparc/sparc32/fchownat.c: Include
8448 i386/fchownat.c.
8449 * sysdeps/unix/sysv/linux/s390/s390-32/fchownat.c: Likewise.
8450 * sysdeps/unix/sysv/linux/sh/fchownat.c: Likewise.
8451
8452 [BZ #3253]
8453 * posix/glob.c (glob_in_dir): Don't alloca one struct globlink at a
8454 time, rather allocate increasingly bigger arrays of pointers, if
8455 possible with alloca, if too large with malloc.
8456
84572006-09-24 Jakub Jelinek <jakub@redhat.com>
8458
8459 * sysdeps/powerpc/fpu/libm-test-ulps: Updated.
8460
8461 * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Fix 2 typos.
8462
457b559e
UD
84632006-09-24 Ulrich Drepper <drepper@redhat.com>
8464
8465 * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Implement rule 4,
8466 home addresses.
8467 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Recognize
8468 IFA_F_HOMEADDRESS flag for interfaces.
8469 * include/ifaddrs.h (struct in6addrinfo): Define
8470 in6ai_homeaddress.
8471
4a132246
UD
84722006-09-21 Jakub Jelinek <jakub@redhat.com>
8473
8474 [BZ #3225]
8475 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (PTR_MANGLE3,
8476 PTR_DEMANGLE3): Define.
8477 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h (PTR_MANGLE3,
8478 PTR_DEMANGLE3): Likewise.
8479 * sysdeps/powerpc/powerpc32/__longjmp-common.S (__longjmp): Use them.
8480 * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp):
8481 Likewise.
8482 * sysdeps/powerpc/powerpc64/__longjmp-common.S (__longjmp): Likewise.
8483
c69136ae
UD
84842006-09-20 Jakub Jelinek <jakub@redhat.com>
8485
8486 * po/libc.pot: Regenerated.
8487 * po/be.po: Updated.
8488 * po/ca.po: Likewise.
8489 * po/cs.po: Likewise.
8490 * po/da.po: Likewise.
8491 * po/de.po: Likewise.
8492 * po/el.po: Likewise.
8493 * po/en_GB.po: Likewise.
8494 * po/es.po: Likewise.
8495 * po/fi.po: Likewise.
8496 * po/fr.po: Likewise.
8497 * po/gl.po: Likewise.
8498 * po/hr.po: Likewise.
8499 * po/hu.po: Likewise.
8500 * po/ja.po: Likewise.
8501 * po/ko.po: Likewise.
8502 * po/nb.po: Likewise.
8503 * po/nl.po: Likewise.
8504 * po/pl.po: Likewise.
8505 * po/pt_BR.po: Likewise.
8506 * po/ru.po: Likewise.
8507 * po/rw.po: Likewise.
8508 * po/sk.po: Likewise.
8509 * po/sv.po: Likewise.
8510 * po/tr.po: Likewise.
8511 * po/zh_CN.po: Likewise.
8512 * po/zh_TW.po: Likewise.
8513
8514 [BZ #3137]
8515 * iconv/iconv_prog.c (main): Fix spelling in error message.
8516 * iconv/iconvconfig.c (main): Likewise.
8517 * locale/programs/ld-collate.c (handle_ellipsis): Likewise.
8518 * locale/programs/ld-ctype.c (charclass_symbolic_ellipsis): Likewise.
8519 * locale/programs/localedef.c (main): Likewise.
8520 * locale/programs/repertoire.c (repertoire_read): Likewise.
8521 * timezone/zdump.c (main): Likewise.
8522 * nscd/connections.c (handle_request): Fix spelling in log message.
8523 Patch by Malcolm Parsons <malcolm.parsons@gmail.com>.
8524
83b3108c
UD
85252006-09-20 Ulrich Drepper <drepper@redhat.com>
8526
8527 * inet/inet6_option.c: Also emit linker warnings for the RFC 2292
8528 interfaces.
8529
89210b4c
AJ
85302006-09-20 Andreas Jaeger <aj@suse.de>
8531
8532 * math/libm-test.inc (lrint_test_upward): Fix typo.
8533
6624dbc0
UD
85342006-06-17 Joseph S. Myers <joseph@codesourcery.com>
8535
8536 [BZ #2592]
8537 * math/libm-test.inc (lrint_test_tonearest): New function.
8538 (lrint_test_towardzero): New function.
8539 (lrint_test_downward): New function.
8540 (lrint_test_upward): New function.
8541 (main): Run these new tests.
8542 * sysdeps/ieee754/dbl-64/s_llrint.c (__llrint): Correct rounding
8543 of values near to 0.
8544 (two52): Use double not long double.
8545 * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Likewise.
8546 * sysdeps/ieee754/flt-32/s_llrintf.c (__llrintf): Likewise.
8547 (two23): Use float not double.
8548 * sysdeps/ieee754/flt-32/s_lrintf.c (__lrintf): Likewise.
8549 (two23): Use float not double.
8550 * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl): Likewise.
8551 * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Likewise.
8552 * sysdeps/ieee754/ldbl-96/s_llrintl.c (__llrintl): Likewise.
8553 * sysdeps/ieee754/ldbl-96/s_lrintl.c (__lrintl): Likewise.
8554
60cb50c7
UD
85552006-09-20 Martin Schwidefsky <schwidefsky@de.ibm.com>
8556
8557 * sysdeps/unix/sysv/linux/s390/s390-32/makecontext.c (__makecontext):
8558 Cast sp to unsigned long to avoid compiler warning.
8559 Use __makecontext_ret function instead of a trampoline on the stack.
8560 (__makecontext_ret): New function.
8561 * sysdeps/unix/sysv/linux/s390/s390-64/makecontext.c: Likewise.
8562
33315ced
UD
85632006-09-19 Jakub Jelinek <jakub@redhat.com>
8564
8565 * elf/dl-cache.c (HWCAP_CHECK): If _DL_PLATFORMS_COUNT, but
8566 platform == -1, reject any libs with non-zero _DL_HWCAP_PLATFORM
8567 bits.
8568
1ee2ff20
UD
85692006-09-19 Ulrich Drepper <drepper@redhat.com>
8570
8571 * elf/dl-close.c (_dl_close): If dependency is not unloaded make
8572 sure no reference to the unloaded map's search list remains in the
8573 dependency's scope.
8574
85752006-09-16 Jakub Jelinek <jakub@redhat.com>
8576
8577 * elf/Makefile: Add rules to build and run unload7 test.
8578 * elf/unload7.c: New test.
8579 * elf/unload7mod1.c: New file.
8580 * elf/unload7mod2.c: New file.
8581
0466106e
UD
85822006-09-18 Jakub Jelinek <jakub@redhat.com>
8583
8584 * sysdeps/unix/sysv/linux/sys/ptrace.h (PT_GETEVENTMSG): Fix pasto.
8585 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h (PTRACE_SETOPTIONS,
8586 PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
8587 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h (PTRACE_SETOPTIONS,
8588 PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Likewise.
8589 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h (PTRACE_SETOPTIONS,
8590 PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Likewise.
8591 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h (PTRACE_SETOPTIONS,
8592 PTRACE_GETEVENTMSG): Likewise.
8593 (PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Change to the arch independent
8594 values.
8595
9c316a45
UD
85962006-09-17 Mike Frysinger <vapier@gentoo.org>
8597
0466106e
UD
8598 * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_SETOPTIONS,
8599 PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
8600 * sysdeps/unix/sysv/linux/ptrace.c (ptrace): Check PTRACE_SETOPTIONS,
8601 PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO and PTRACE_SETSIGINFO.
9c316a45
UD
8602
86032006-09-16 Jakub Jelinek <jakub@redhat.com>
8604
8605 * sysdeps/powerpc/powerpc32/register-dump.h (register_dump): Don't
8606 write '\0' to the fd.
8607 * sysdeps/mach/hurd/powerpc/register-dump.h (register_dump): Likewise.
8608 * sysdeps/powerpc/powerpc64/register-dump.h (register_dump): Likewise.
8609 Change regs to unsigned long pointer from unsigned int, fix fscr
8610 offset.
8611
fb146a76
UD
86122006-09-14 Jakub Jelinek <jakub@redhat.com>
8613
8614 * io/Makefile (CFLAGS-fstatat.c): Set.
8615 (CFLAGS-fstatat64.c): Likewise.
8616 (CFLAGS-mknodat.c): Likewise.
8617
8618 * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Comment fixes.
8619 * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
8620 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Rewritten.
8621 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Rewritten.
8622
4cd3633d
UD
86232006-09-14 Jakub Jelinek <jakub@redhat.com>
8624 Steven Munroe <sjmunroe@us.ibm.com>
fb146a76 8625
4cd3633d
UD
8626 * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add 4 new cap
8627 names to the beginning. Rename "cell" to "cellbe".
8628 (_dl_powerpc_platforms): New.
8629 * sysdeps/powerpc/dl-procinfo.h (_DL_HWCAP_FIRST): Decrease.
8630 (HWCAP_IMPORTANT): Remove power{4,5,5+} and cell.
8631 (_DL_PLATFORMS_COUNT, _DL_FIRST_PLATFORM): Define.
8632 (_DL_HWCAP_PLATFORM): Define to new mask.
8633 (_dl_platform_string, _dl_string_platform): New functions.
8634 * sysdeps/powerpc/sysdep.h (PPC_FEATURE_BOOKE, PPC_FEATURE_SMT,
8635 PPC_FEATURE_ICACHE_SNOOP, PPC_FEATURE_ARCH_2_05): Define.
8636
30aa5785
UD
86372006-09-12 Jakub Jelinek <jakub@redhat.com>
8638
8639 [BZ #2526]
8640 * README.libm: Fix a thinko in sqrt algorithm description.
8641
8642 [BZ #3143]
8643 * manual/string.texi (argz_delete): Fix prototype.
8644 Patch by <alpt@freaknet.org>.
8645
86462006-08-26 Joseph Myers <joseph@codesourcery.com>
8647
8648 [BZ #3138]
8649 * io/test-lfs.c (do_prepare): Give name_len type size_t.
8650 * io/tst-fcntl.c (do_prepare): Likewise.
8651 * posix/tst-exec.c (do_prepare): Likewise.
8652 * posix/tst-preadwrite.c (do_prepare): Likewise.
8653 * posix/tst-spawn.c (do_prepare): Likewise.
8654 * posix/tst-truncate.c (do_prepare): Likewise.
8655 * rt/tst-aio.c (do_prepare): Likewise.
8656 * rt/tst-aio64.c (do_prepare): Likewise.
8657 * stdlib/test-canon2.c (do_prepare): Give test_dir_len type
8658 size_t.
8659
d26d01d1
UD
86602006-09-09 Ulrich Drepper <drepper@redhat.com>
8661
41aba3d7
UD
8662 [BZ #2821]
8663 * time/mktime.c (guess_time_tm): Fix overflow detection.
8664 * time/Makefile (tests): Add bug-mktime1.
8665 * time/bug-mktime1.c: New file.
8666
eaa51b47 8667 [BZ #3189, #3188]
d26d01d1 8668 * misc/sys/mman.h (remap_file_pages): Make available for _GNU_SOURCE.
eaa51b47 8669 (mremap): Likewise.
d26d01d1 8670
ba40cc15
UD
86712006-09-07 Jakub Jelinek <jakub@redhat.com>
8672
2b6a801e
UD
8673 [BZ #1006]
8674 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela):
8675 Ensure relocation doesn't clobber any bits outside of the
8676 immediate field for R_SPARC_TLS_LE_HIX22, R_SPARC_WDISP30,
8677 R_SPARC_HI22 and R_SPARC_H44.
8678
469615bd
UD
8679 [BZ #2775]
8680 * malloc/malloc.c (sYSMALLOc): Only call grow_heap if
8681 (long) (MINSIZE + nb - old_size) is positive.
8682
8683 * malloc/arena.c (grow_heap): When growing bail even if new_size
8684 is negative.
8685
ba40cc15
UD
8686 [BZ #3155]
8687 * sysdeps/powerpc/powerpc32/fpu/s_lrint.S (__lrint): Don't access
8688 stack below r1.
8689
243b9ac1
UD
86902006-09-06 Jakub Jelinek <jakub@redhat.com>
8691
ba40cc15
UD
8692 * posix/regex_internal.c (re_string_reconstruct): Handle
8693 offset < pstr->valid_raw_len && pstr->offsets_needed case.
8694 Ensure no bytes read before raw_mbs array. Pass a saved copy of
8695 pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
8696 re_string_context_at.
8697 * posix/Makefile: Add rules to build and run bug-regex26 test.
8698 * posix/bug-regex26.c: New test.
8699
243b9ac1
UD
8700 * locale/programs/ld-collate.c (collate_read): Goto sym_equiv_free
8701 rather than col_sym_free. Move seqp declaration earlier.
8702
8703 * resolv/gai_suspend.c (gai_suspend): Make sure result is initialized.
8704
d052233c
UD
87052006-09-05 Jakub Jelinek <jakub@redhat.com>
8706
8707 * nscd/initgrcache.c (addinitgroupsX): Move any_success
8708 decl before first goto out.
8709
71213dc2
UD
87102006-09-04 Jakub Jelinek <jakub@redhat.com>
8711
8712 * Makerules (shlib.lds): If have-hash-style, put .hash section
8713 at the end of the RO segment.
8714
87152006-09-04 Ulrich Drepper <drepper@redhat.com>
8716
8717 * elf/do-lookup.h (do_lookup_x): Initialize symidx in case the new
8718 style hash table format is used.
8719
03eeff83
UD
87202006-09-04 Jakub Jelinek <jakub@redhat.com>
8721
8722 * resolv/res_mkquery.c (res_nmkquery): Set hp->id to statp->id after
8723 randomization rather than before.
8724 * resolv/res_init.c (res_randomid): Don't call gettimeofday here.
8725
b80770b2
UD
87262006-08-31 Jakub Jelinek <jakub@redhat.com>
8727
ba40cc15 8728 * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Add ld.so.
b80770b2
UD
8729
8730 * malloc/malloc.c (_int_malloc): Use full list insert and not
8731 shortcut which assumes the list is empty for large requests
8732 too.
8733
8734 * elf/tst-addr1.c (do_test): Allow i.dli_sname "_IO_printf".
8735
99ea5991
UD
87362006-08-30 Jakub Jelinek <jakub@redhat.com>
8737
8738 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (splice): Add offin
8739 and offout arguments to the prototype.
8740 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (splice): Likewise.
8741 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h (splice): Likewise.
8742 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (splice): Likewise.
8743 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h (splice): Likewise.
8744 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h (splice): Likewise.
8745 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (splice): Likewise.
8746 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h (splice): Likewise.
8747 * sysdeps/unix/sysv/linux/syscalls.list (splice): Adjust args string.
8748
4004a0a5
UD
87492006-08-28 Ulrich Drepper <drepper@redhat.com>
8750
950398e1
UD
8751 * elf/dl-load.c (_dl_init_paths): Expand DSTs.
8752
4004a0a5
UD
8753 * elf/dl-open.c (dl_open_worker): Allow $LIB and $PLATFORM in
8754 dlopen parameters.
8755
6e310111
UD
87562006-08-28 Jakub Jelinek <jakub@redhat.com>
8757
8758 * inet/getnameinfo.c (getnameinfo): For AF_INET, check errno
8759 only if herrno is NETDB_INTERNAL. Handle errors other than
8760 ERANGE outside of the loops, handle TRY_AGAIN.
8761
8762 * locale/programs/ld-ctype.c (translit_flatten): Issue error
8763 if other's ctype category was missing.
8764 * locale/programs/ld-collate.c (collate_read): Return if
8765 copy_locale's collate category is missing.
8766
07014fca
UD
87672006-08-27 Ulrich Drepper <drepper@redhat.com>
8768
8769 [BZ #2684]
8770 * malloc/malloc.c (public_rEALLOc): Try harder by using other
8771 arenas if allocation failed.
8772 Patch mostly by Jan Edler <jan.edler@indexengines.com>.
8773
71663747
UD
87742006-08-26 Ulrich Drepper <drepper@redhat.com>
8775
41999a1a
UD
8776 * malloc/malloc.c (bin_at): Rewrite to be more clear and to not
8777 waste bins[0..1].
8778 (malloc_state): Reduce bins size by 2.
8779 (_int_malloc): Fix test for large enough buffer for early termination.
8780 When no unsorted block matches perfectly and an exiting block has
8781 to be split, use full list insert and not shortcut which assumes
8782 the list is empty.
8783
71663747
UD
8784 * locale/programs/ld-ctype.c (ctype_read): Better patch for read
8785 failure.
8786
93b53ca2
UD
87872006-08-24 Ulrich Drepper <drepper@redhat.com>
8788
f5a82772
UD
8789 * locale/programs/ld-ctype.c (ctype_read): If CTYPE is NULL, don't
8790 do anything.
8791
2ac9ca73
UD
8792 * sysdeps/generic/ldsodefs.h (DL_ADDR_SYM_MATCH): For undefined
8793 symbol require exact match (these are PLTs).
8794 * sysdeps/unix/sysv/linux/powerpc/powerpc64/ldsodefs.h
8795 (_dl_ppc64_addr_sym_match): Likewise.
8796
93b53ca2
UD
8797 [BZ #2683]
8798 * elf/dl-addr.c (_dl_addr): Don't ignore all undefined symbols.
8799 If symbol has a value use it.
8800 * elf/tst-dladdr1.c: New file.
8801 * elf/Makefile: Add rules to build and run tst-addr1.
8802
7463d5cb
UD
88032006-08-24 Jakub Jelinek <jakub@redhat.com>
8804
8805 * malloc/malloc.c (sYSMALLOc): Avoid infinite loop if MMAP
8806 keeps failing and heap growth or new heap creation isn't
8807 successful either.
8808 * malloc/tst-malloc.c (main): Add new tests.
8809
542a6f62
UD
88102006-08-24 Ulrich Drepper <drepper@redhat.com>
8811
8812 [BZ #2734]
8813 * sysdeps/i386/bits/byteswap.h (__bswap_32): Use same conditions
8814 as in the x86-64 code to use bswap.
8815
aa2c6b6d
UD
88162006-05-21 Joseph S. Myers <joseph@codesourcery.com>
8817
24982798 8818 [BZ #2680]
aa2c6b6d
UD
8819 * posix/unistd.h (getlogin_r): Condition on __USE_POSIX199506, not
8820 __USE_UNIX98.
8821 * posix/bits/unistd.h: Likewise.
8822
59776aef
UD
88232006-05-15 Mike Frysinger <vapier@gentoo.org>
8824
8825 [BZ #2751]
8826 * string/strchr.c: Add cast to avoid warning.
8827
e404fb16
UD
88282006-08-21 Ulrich Drepper <drepper@redhat.com>
8829
8830 * malloc/malloc.c (DEFAULT_MMAP_THRESHOLD_MAX): For 32-bit
bd2c2341 8831 platforms define as 512K. For 64-bit platforms as 32MB. The lower
e404fb16
UD
8832 limit is needed to avoid the exploding of the address space
8833 requirement for secondary heaps.
8834 * malloc/arena.c (HEAP_MAX_SIZE): Define using
8835 DEFAULT_MMAP_THRESHOLD_MAX if it is defined.
8836
376e973a
UD
88372006-07-30 Joseph S. Myers <joseph@codesourcery.com>
8838
8839 [BZ #3018]
8840 * Makerules (depfiles): Handle extra-test-objs the same as
8841 extra-objs.
8842 (common-mostlyclean): Likewise.
8843 * dlfcn/Makefile (extra-objs): Add modules to extra-test-objs
8844 instead.
8845 * elf/Makefile (extra-objs): Likewise.
8846 * stdlib/Makefile (extra-objs): Likewise.
8847
240c62a7
UD
88482006-08-14 Eric Blake <ebb9@byu.net>
8849
8850 [BZ #3044]
8851 * misc/error.h: Assume C89 or better.
8852 * misc/error.c: Likewise.
8853
3997b7c4
UD
88542006-08-21 Ulrich Drepper <drepper@redhat.com>
8855
8856 [BZ #3040]
8857 * sysdeps/unix/sysv/linux/openat.c: Fix compilation if
8858 __ASSUME_ATFCTS is defined.
8859
8a6537b0
UD
88602006-08-19 Ulrich Drepper <drepper@redhat.com>
8861
72320021
UD
8862 * malloc/malloc.c (_int_malloc): Limit number of unsorted blocks
8863 to sort in each call.
8864
ed3691ba
UD
8865 * nis/nss_nis/nis-service.c (internal_nis_getservent_r): . If map
8866 is empty simply return and use next service.
8867 * nis/nss_nis/nis-rpc.c (internal_nis_getrpcent_r): Likewise.
8868
8a6537b0
UD
8869 * locale/programs/charmap.c (charmap_read): Add new parameter. It
8870 tells us when not finding a charmap file is an error.
8871 * locale/programs/charmap.h: Adjust charmap_read prototype.
8872 * iconv/iconv_prog.c (main): Tell charmap_read it's no error if we
8873 cannot find a charmap.
8874 * locale/programs/localedef.c (main): Adjust charmap_read call.
8875
ad2a3c07
UD
88762006-08-15 Jakub Jelinek <jakub@redhat.com>
8877
8878 * sysdeps/unix/sysv/linux/sparc/sparc64/pause.c: Use
8879 sysdeps/posix/pause.c implementation instead.
8880
88812006-08-09 Jakub Jelinek <jakub@redhat.com>
8882
8883 * sysdeps/unix/nice.c (nice): Transform EACCES errno from setpriority
8884 to EPERM.
8885
f17efcb4
UD
88862006-08-13 Andreas Schwab <schwab@suse.de>
8887
8888 * sysdeps/powerpc/powerpc32/dl-trampoline.S (_dl_runtime_resolve):
8889 Don't clobber caller's LRSAVE.
8890 (_dl_prof_resolve): Likewise.
8891
107b8a92
UD
88922006-08-14 Ulrich Drepper <drepper@redhat.com>
8893
8894 [BZ #1996]
8895 * libio/memstream.c (open_memstream): Allocate initial buffer with
8896 calloc.
8897 * libio/wmemstream.c (open_wmemstream): Likewise.
8898 * libio/strops.c: Pretty printing.
8899 (_IO_str_overflow): Clear uninitialized part of the new buffer.
8900 (enlarge_userbuf): New function.
8901 (_IO_str_seekoff): Call it if seek position is larger than current
8902 buffer.
8903 * libio/wstrops.c: Likewise.
8904 * libio/vasprintf.c: Add comment as to why we do not have to use
8905 calloc instead of malloc to allocate initial buffer.
8906 * libio/Makefile (tests): Add bug-memstream1 and bug-wmemstream1.
8907 * libio/bug-memstream1.c: New file.
8908 * libio/bug-wmemstream1.c: New file.
8909
fa3ac53f
UD
89102006-08-13 Ulrich Drepper <drepper@redhat.com>
8911
89993734
UD
8912 * libio/wstrops.c: Remove dead macro definitions and comments.
8913 * libio/strops.c: Likewise.
8914
fa3ac53f
UD
8915 [BZ #2764]
8916 * login/utmpname.c (__utmpname): Remove unnecessary test.
8917
f99ed760
UD
89182006-06-08 Joseph Myers <jsm28@gcc.gnu.org>
8919
8920 [BZ #2832]
8921 * math/gen-libm-test.pl (clean_up_number): Do not remove trailing
8922 0s from integers.
8923
89242006-08-13 Ulrich Drepper <drepper@redhat.com>
8925
8926 [BZ #2987]
8927 * sysdeps/unix/sysv/linux/clock_settime.c: Add code to use syscall
8928 for CPU clocks.
8929 * sysdeps/unix/clock_settime.c: Add support for platform-specific
8930 setting of CPU clocks.
8931
4c3f81d0
UD
89322006-06-23 Paul Eggert <eggert@cs.ucla.edu>
8933
8934 [BZ #2841]
8935 * sysdeps/generic/stdint.h (UINT8_C, UINT16_C): Don't append 'U',
8936 since C99 requires the result to promote to 'int' when uint_least8_t
8937 and uint_least16_t promote to 'int'.
8938
cd8e60ce
UD
89392006-08-12 Ulrich Drepper <drepper@redhat.com>
8940
9a5c46e8
UD
8941 [BZ #3013]
8942 * locale/programs/ld-ctype.c (ctype_output): Adjust alignments, fix
8943 lenght of one output field, correct bitmask creation.
8944 * locale/programs/ld-time.c: Add alignment.
8945
cd8e60ce
UD
8946 [BZ #2997]
8947 * misc/error.c: Add space between program name and message if file
8948 name is missing.
8949
9a528884
UD
89502006-08-03 Eric Blake <ebb9@byu.net>
8951
8952 [BZ #2998]
8953 * misc/error.c (error_tail) [_LIBC]: Avoid invalid free.
8954
1d05c2fb
UD
89552006-08-09 Ulrich Drepper <drepper@redhat.com>
8956
0c1c6c6c
UD
8957 * malloc/memusagestat.c: Silence warnings.
8958
1d05c2fb
UD
8959 * malloc/malloc.c: Dynamically size mmap treshold if the program
8960 frees mmaped blocks.
8961 Patch by Valerie Henson and Arjan van de Ven.
8962
2d1e6277
UD
89632006-08-08 Jakub Jelinek <jakub@redhat.com>
8964
be7ffd91
UD
8965 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (O_DIRECT): Protect with
8966 __USE_GNU.
8967
2d1e6277
UD
8968 * stdlib/strtol_l.c (__strtol_ul_max_tab, __strtol_ul_rem_tab,
8969 __strtol_ull_max_tab, __strtol_ull_rem_tab): Declare.
8970 (DEF): Don't put the var into .gnu.linkonce.r.* section.
8971 Only provide var definitions in strtol_l (or for *ull*
8972 in strtoll_l).
8973
8974 * stdio-common/bug16.c (tests): New array.
8975 (do_tests): Allow the first hexadecimal digit
8976 to be 1, 2, 4 or 8. Do 3 additional tests.
8977
8978 * sysdeps/s390/fpu/libm-test-ulps: Update.
8979
8980 * sysdeps/unix/sysv/linux/s390/s390-32/fchownat.c (fchownat): Use
8981 fchownat syscall if available.
8982 * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat): Likewise.
8983 * sysdeps/unix/sysv/linux/sh/fchownat.c (fchownat): Likewise.
8984 * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Likewise.
8985
d0ccde25
UD
89862006-08-07 Ulrich Drepper <drepper@redhat.com>
8987
8988 * nis/nis_xdr.c: Avoid some function calls.
8989
13a0293d 89902006-08-07 Jakub Jelinek <jakub@redhat.com>
3f7a21a9 8991 Ulrich Drepper <drepper@redhat.com>
13a0293d
UD
8992
8993 * nis/nis_call.c (rec_dirsearch) [case LOWER_NAME]: Don't take
8994 short cut if only one name component is stripped away.
8995
bd1ebae0
UD
89962006-08-07 Ulrich Drepper <drepper@redhat.com>
8997
8998 * nis/nis_call.c: Minor cleanups throughout.
2d1e6277 8999 (rec_dirsearch) [case HIGHER_NAME]: Correctly size ndomain array.
bd1ebae0
UD
9000 (first_shoot): Add search_parent_first parameter. Only if it is set
9001 search parent server first.
9002 If directory for table found through cold start cache is not the same
9003 as referenced in the cache, don't use it.
9004 (__nisfind_server): Take additional parameter. Pass it on to
9005 first_shoot.
9006 (__prepare_niscall): Adjust __nisfind_server call.
9007 * nis/rpcsvc/nislib.h: Adjust __nisfind_server prototype.
9008 * nis/nis_table.c: Adjust __nisfind_server call.
9009 * nis/nis_lookup.c: Likewise.
9010 (nis_lookup): Don't loop endlessly if name is reduced to ".".
9011
f1762c0c
UD
90122006-08-03 Ulrich Drepper <drepper@redhat.com>
9013
fe710250
UD
9014 [BZ #2182]
9015 * math/s_cacosh.c: Return values from positive branch.
9016 * math/s_cacoshf.c: Likewise.
9017 * math/s_cacoshl.c: Likewise.
9018
a5852807
UD
9019 [BZ #2883]
9020 * sysvipc/sys/msg.h: Change return value to ssize_t.
9021 * sysdeps/unix/sysv/linux/msgrcv.c: Likewise.
fe710250
UD
9022 * sysvipc/msgrcv.c: Likewise.
9023 * include/sys/msg.h: Likewise.
39571a13 9024
6c215a8d
UD
9025 * grp/initgroups.c (internal_getgrouplist): Remove unnecessary
9026 test introduced in patch for bz #661.
39571a13 9027 (getgrouplist): Simplify code a bit. Don't allocate one additional
f13bfdd0 9028 element for NEWGROUPS.
6c215a8d 9029
9c06eb66
UD
9030 [BZ #2908]
9031 * stdio-common/printf_fphex.c (__printf_fphex): When rounding up
9032 'f', use '1' as leading digit not '\1'.
9033 * stdio-common/Makefile (tests): Add bug16.
9034 * stdio-common/bug16.c: New file.
9035
9036 [BZ #2914]
9037 * sysdeps/unix/sysv/linux/gethostid.c: Don't define OLD_HOSTIDFILE
9038 and don't try to open it. The patch introducing the macro
9039 contained a bug and used the same file name as the new file
9040 instead of using /var/adm/hostid. Nobody complaint so I'm taking
9041 this out completely.
9042
9043 [BZ #2926]
9044 * assert/assert.h: Move cast to void inside ?: to quiet gcc.
9045 Patch by Jerry James <Jerry.James@usu.edu>.
9046
f1762c0c
UD
9047 * rt/Makefile (tests): Add tst-clock2.
9048 * rt/tst-clock2.c: New file.
9049
9050 [BZ #2978]
9051 * resolv/gai_notify.c (__gai_notify_only): Copy memory for thread
9052 function and its parameters and pass it to new thread.
9053 (__gai_notify): Add support for alternative waiting for completion.
9054 * resolv/gai_suspend.c (gai_suspend): Add support for alternative
9055 waiting for completion.
9056 * resolv/getaddrinfo_a.c: Likewise.
9057 * resolv/gai_misc.h (struct waitlist): Don't add cond if alternative
9058 waiting for completion is used.
9059 * resolv/gai_misc.c: Allow overwriting code to start helper thread.
9060 * resolv/gai_cancel.c: Include <gai_misc.h> not "gai_misc.h".
9061 * resolv/gai_error.c: Likewise.
9062 * resolv/gai_sigqueue.c: Likewise.
9063
83ae6b40
RM
90642006-08-02 Thomas Schwinge <tschwinge@gnu.org>
9065
0e4e62fe 9066 * hurd/getdport.c (__getdport): Don't return EBADF; instead set
f1762c0c 9067 errno to EBADF and return MACH_PORT_NULL.
83ae6b40 9068
82ee37c5
UD
90692006-06-23 Joseph Myers <joseph@codesourcery.com>
9070
9071 [BZ #2980]
f1762c0c 9072 * posix/Makefile (CFLAGS-waitid.c): Add -fasynchronous-unwind-tables.
82ee37c5
UD
9073
90742006-08-02 Ulrich Drepper <drepper@redhat.com>
9075
9076 * elf/dl-addr.c (_dl_addr): If GNU-style hash tables are present,
9077 walk them instead of the symbol table.
9078
7bb1b2c9
UD
90792006-08-01 Ulrich Drepper <drepper@redhat.com>
9080
f13bfdd0 9081 [BZ #2098]
fbbc73b3
UD
9082 * nscd/initgrcache.c (addinitgroupsX): Judge successful lookups by
9083 status of NSS calls, not the number of returned entries.
9084
a4518922
UD
9085 * sysdeps/unix/sysv/linux/syscalls.list: Remove add_key,
9086 request_key, keyctl.
7bb1b2c9 9087
b06e7e9a
UD
90882006-07-31 Ulrich Drepper <drepper@redhat.com>
9089
9090 * sysdeps/unix/sysv/linux/dl-osinfo.h: Remove unnecessary include.
9091
f1227969
UD
90922006-07-16 Jeff Bailey <jbailey@ubuntu.com>
9093
9094 * elf/tst-auditmod1.c: Fix typo in #error.
9095
82ae2712
UD
90962006-07-31 Ulrich Drepper <drepper@redhat.com>
9097
f1227969
UD
9098 * elf/tst-auditmod1.c: Remove code for unsupported architectures.
9099
82ae2712
UD
9100 * iconvdata/run-iconv-test.sh: Run cmp in C locale.
9101
a1260d92
UD
91022006-07-20 Adam Nemet <anemet@caviumnetworks.com>
9103
9104 * stdlib/test-canon.c (do_test): Close fd before unlinking file so
b06e7e9a 9105 that the directory is empty even on non-POSIX filesystems.
a1260d92 9106
d2de41fe
UD
91072006-07-31 Ulrich Drepper <drepper@redhat.com>
9108
13669f2c
UD
9109 * elf/dl-open.c (dl_open_worker): Add branch prediction.
9110
d2de41fe
UD
9111 * nis/nss_compat/compat-grp.c: Avoid unnecessary setgrent calls into
9112 the backend NSS module. If backend setgrent call failed, don't have
9113 internal_setgrent fail. Just remember this until it is needed.
9114 * nis/nss_compat/compat-pwd.c: Likewise.
9115 * nis/nss_compat/compat-spwd.c: Likewise.
9116
b894c2ea
RM
91172006-07-30 Roland McGrath <roland@redhat.com>
9118
9119 * sysdeps/unix/sysv/linux/ia64/sigsuspend.c: File removed.
9120 * sysdeps/unix/sysv/linux/x86_64/sigsuspend.c: File removed.
9121 * sysdeps/unix/sysv/linux/s390/s390-64/sigsuspend.c: File removed.
9122 * sysdeps/unix/sysv/linux/sparc/sparc64/sigsuspend.c: File removed.
9123
9124 * sysdeps/unix/sysv/linux/not-cancel.h (pause_not_cancel): New macro.
9125 (nanosleep_not_cancel): New macro.
9126 (sigsuspend_not_cancel): new macro.
9127 * sysdeps/unix/sysv/linux/sigsuspend.c [__ASSUME_REALTIME_SIGNALS]
9128 (do_sigsuspend): Define as inline.
9129 (__sigsuspend): Always use do_sigsuspend.
9130 [! NO_CANCELLATION] (__sigsuspend_nocancel): New function.
9131 * include/signal.h: Declare __sigsuspend_nocancel.
9132 * sysdeps/posix/pause.c
9133 [! NO_CANCELLATION] (__pause_nocancel): New function.
9134
9135 * include/unistd.h (__pause_nocancel): Add attribute_hidden.
9136 * include/time.h (__nanosleep_nocancel): Likewise.
9137
c10d32c8
UD
91382006-07-30 Ulrich Drepper <drepper@redhat.com>
9139
9140 * locale/programs/localedef.c (add_to_readlist): Rename local
9141 variables to avoid confusion.
9142
9143 * locale/programs/charmap.c (charmap_read): Emit error message if
9144 charmap couldn't be found or read.
9145
6822f056
UD
91462006-07-28 Ulrich Drepper <drepper@redhat.com>
9147
d5ba53f9
UD
9148 * sysdeps/unix/sysv/linux/kernel-features.h: Define
9149 __ASSUME_FUTEX_LOCK_PI.
9150 * include/time.h: Declare __nanosleep_nocancel.
9151 * include/unistd.h: Declare __pause_nocancel.
9152
6822f056
UD
9153 * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Use this instead of
9154 LDFLAGS. Add -lgcc_eh and libc_nonshared (again) to make sure we
9155 get the __stack_chk_fail_local definition when it's needed.
9156
3a975ff5
UD
91572006-07-26 Ulrich Drepper <drepper@redhat.com>
9158
6de1f625
UD
9159 * dlfcn/Makefile: Add rules to build and run bug-atexit3.
9160 * dlfcn/bug-atexit3.c: New file.
9161 * dlfcn/bug-atexit3-lib.cc: New file.
9162
3a975ff5
UD
9163 * dlfcn/dlmopen.c (dlmopen_doit): Don't allow RTLD_GLOBAL to be
9164 used when the namespace is not the base namespace.
9165
a92b1166
UD
91662006-07-26 Gavin Romig-Koch <gavin@redhat.com>
9167
9168 * stdlib/cxa_atexit.c (__new_exitfn_called): New variable.
9169 (__new_exitfn): Bump it in every successful call.
9170 * stdlib/cxa_finalize.c (__cxa_finalize): If destructor registered
9171 more exit handlers, call them right away.
9172 * stdlib/exit.h: Declare __new_exitfn_called.
9173
a08336fb
UD
91742006-07-25 Ulrich Drepper <drepper@redhat.com>
9175
bd3754dc
UD
9176 * stdlib/cxa_finalize.c (__cxa_finalize): Fix race condition when
9177 calling registered handler.
9178
a08336fb
UD
9179 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Fix comment.
9180 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
9181 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
9182 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
9183 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
9184 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
9185 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
9186 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
9187
871b9158
UD
91882006-07-10 Ulrich Drepper <drepper@redhat.com>
9189
9190 * elf/dl-lookup.c (dl_new_hash): New functions.
9191 (_dl_lookup_symbol_x): Rename hash to old_hash and don't compute
9192 value here. Compute new-style hash value. Pass new hash value
9193 and reference to variable with the old value to do_lookup_x.
9194 (_dl_setup_hash): If DT_GNU_HASH is defined, use it and not
9195 old-style hash table.
9196 (_dl_debug_bindings): Pass new hash value and reference to variable
9197 with the old value to do_lookup_x.
9198 * elf/do-lookup.h (do_lookup_x): Accept additional parameter with
9199 new-style hash value and change old-style hash value parameter to
9200 be a reference. Reoganize functions to determine whether
9201 new-style hash table is available. Only fall back on old-style
9202 table. If old-style hash value is needed, compute it here.
9203 * elf/dynamic-link.h (elf_get_dynamic_info): Relocate DT_GNU_HASH
9204 entry.
9205 * elf/elf.h: Define SHT_GNU_HASH, DT_GNU_HASH, DT_TLSDEC_PLT,
9206 DT_TLSDEC_GOT. Adjust DT_ADDRNUM.
9207 * include/link.h (struct link_map): Add l_gnu_bitmask_idxbits,
9208 l_gnu_shift, l_gnu_bitmask, l_gnu_buckets and l_gnu_chain_zero.
9209 * Makeconfig: If linker supports --hash-style option add it to all
9210 linker command lines to build DSOs.
9211 * config.make.in: Define have-hash-style.
9212 * configure.in: Test whether linker supports --hash-style option.
9213
9214 * elf/dl-misc.c (_dl_name_match_p): Make MAP parameter const.
9215 * sysdeps/generic/ldsodefs.h: Adjust prototype.
9216
a1f0de82
UD
92172006-06-27 Ulrich Drepper <drepper@redhat.com>
9218
361a3706
UD
9219 * elf/dl-load.c (open_path): Fix test to determine whether DSO is
9220 auditing.
9221
a1f0de82
UD
9222 * elf/dl-load.c (_dl_map_object): Try harder to avoid looking at
9223 RPATH of main map twice.
9224
4259230f
UD
92252006-06-22 Ulrich Drepper <drepper@redhat.com>
9226
9227 * intl/dcigettext.c (DCIGETTEXT): If _nl_find_msg returns -1 don't
9228 look further, return original strings.
9229 (_nl_find_msg): Do not return found translation if the conversion
9230 failed. Either signal the string is unusable or that something went
9231 wrong and the original should be used.
9232
92332006-06-21 Ulrich Drepper <drepper@redhat.com>
9234
9235 * string/_strerror.c (__strerror_r): Add __builtin_expect.
9236
f9b7a98b
UD
92372006-06-14 Jakub Jelinek <jakub@redhat.com>
9238
9239 [BZ #2766]
9240 * misc/insremque.c (insque): Handle prev == NULL.
9241 * misc/Makefile (tests): Add tst-insremque.
9242 * misc/tst-insremque.c: New test.
9243
ac55a25b
UD
92442006-06-17 Ulrich Drepper <drepper@redhat.com>
9245
9246 [BZ #2792]
9247 * elf/dl-deps.c (expand_dst): Rename __cnt variable to not
9248 conflict with DL_DST_REQUIRED.
9249
02f366b3
UD
92502006-06-16 Ulrich Drepper <drepper@redhat.com>
9251
9252 * nis/nis_subr.c (nis_getnames): Fix the implementation to better
9253 match what Solaris does.
9254
9009e8f8
UD
92552006-06-04 Ulrich Drepper <drepper@redhat.com>
9256
1b8373f4
UD
9257 * sysdeps/posix/spawni.c (__spawni): Use local_seteuid and
9258 local_setegid instead of seteuid and setegid.
9259 * sysdeps/generic/local-setxid.h: New file.
9260 * sysdeps/unix/sysv/linux/local-setxid.h: New file.
9261
7231452e
UD
9262 * sysdeps/posix/spawni.c (__spawni): Use non-cancelable interfaces.
9263
9009e8f8 9264 * string/Makefile (tests): Add bug-envz1.
02f366b3 9265 * string/bug-envz1.c: New file.
9009e8f8 9266
33e63e79
UD
92672006-06-02 Jakub Jelinek <jakub@redhat.com>
9268
9269 * posix/regex_internal.c (re_string_skip_chars): If no character has
9270 been converted at all, set *last_wc to WEOF. If mbrtowc failed, set wc
9271 to the byte which couldn't be converted.
9272 (re_string_reconstruct): Don't clear valid_raw_len before calling
9273 re_string_skip_chars. If wc is WEOF after re_string_skip_chars, set
9274 tip_context using re_string_context_at.
9275 * posix/Makefile: Add rules to build and run bug-regex25 test.
9276 * posix/bug-regex25.c: New test.
9277
fdc02996
UD
92782006-06-02 Ryan S. Arnold <rsa@us.ibm.com>
9279
9280 [BZ #2703]
9281 * string/envz.c (envz_strip): Correct erroneously reversed src
9282 and dest parameters to memmove() invocation.
9283
902c4291
UD
92842006-05-30 Jakub Jelinek <jakub@redhat.com>
9285
9286 * nscd/nscd.h (prune_cache): Add fd argument to prototype.
9287 * nscd/nscd.c (parse_opt): Read response from INVALIDATE request
9288 to make sure the database has been already invalidated.
9289 * nscd/cache.c (prune_cache): Add fd argument. Write response to fd
9290 after the cache has been invalidated. Use pthread_mutex_lock rather
9291 than pthread_mutex_trylock if fd != -1.
9292 * nscd/connections.c (invalidate_cache): Add fd argument, write
9293 response to fd if not calling prune_cache, pass fd to prune_cache.
9294 (handle_request): Adjust invalidate_cache caller.
9295 (nscd_run): Pass -1 as fd to prune_cache.
9296
ecc68568
UD
92972006-05-30 Ulrich Drepper <drepper@redhat.com>
9298
9299 * sysdeps/posix/getaddrinfo.c (gaiconf_init): Initialize bits in
9300 the correct place.
9301
9636a217
UD
93022006-05-29 Ulrich Drepper <drepper@redhat.com>
9303
9304 * nscd/nscd.h (struct database_dyn): Add prunelock field.
9305 * nscd/cache.c (prune_cache): Take prunelock before starting the
9306 work. Just return in case it is already taken.
cabfcde1 9307 * nscd/connections.c (dbs): Initialize .prunelock.
9636a217 9308
6bcb494a
UD
93092006-05-25 Ulrich Drepper <drepper@redhat.com>
9310
672d5a63 9311 * nis/nis_removemember.c (nis_removemember): Avoid unnecessary
ecc68568 9312 copying. No need to allocate new array for group members. Just
672d5a63
UD
9313 move the pointers and update the size.
9314
1663b44f
UD
9315 * nis/nis_addmember.c (nis_addmember): Avoid unnecessary copying.
9316 Avoid memory leak in case realloc fails. Simplification for
9317 better code generation.
9318
9319 Avoid deprecation warning because of libc_hidden_proto for
9320 inet6_option_alloc.
9321 * inet/inet6_option.c (option_alloc): Renamed from
9322 inet6_option_alloc. Made static.
9636a217 9323 (inet6_option_alloc): Now a simple wrapper around option_alloc.
1663b44f
UD
9324 (inet6_option_append): Call option_alloc.
9325 * include/netinet/in.h: Remove libc_hidden_proto for
9326 inet6_option_alloc.
9327
6bcb494a
UD
9328 * nis/nis_callback.c (__nis_create_callback): Always call xdr_free
9329 for cleanup when cb!=NULL [Coverity CID 233].
9330
aec6b246
UD
93312006-05-24 Ulrich Drepper <drepper@redhat.com>
9332
07bfff20
UD
9333 [BZ #2693]
9334 * inet/Makefile (routines): Add inet6_opt and inet6_rth.
9335 * inet/Versions (libc, GLIBC_2.5): Add inet6_opt_init,
9336 inet6_opt_append, inet6_opt_finish, inet6_opt_set_val, inet6_opt_next,
9337 inet6_opt_find, inet6_opt_get_val, inet6_rth_space, inet6_rth_init,
9338 inet6_rth_add, inet6_rth_reverse, inet6_rth_segments,
9339 and inet6_rth_getaddr.
9340 * inet/netinet/ip6.h (struct ip6_rthdr0): Make ip6r0_addr a flexible
9341 array.
9342 * inet/netinet/in.h (struct ip6_mtuinfo): Define.
9343 Mark inet6_option_* interfaces as deprecated.
9344 Declare inet6_opt_init, inet6_opt_append, inet6_opt_finish,
9345 inet6_opt_set_val, inet6_opt_next, inet6_opt_find, inet6_opt_get_val,
9346 inet6_rth_space, inet6_rth_init, inet6_rth_add, inet6_rth_reverse,
9347 inet6_rth_segments, and inet6_rth_getaddr.
9348 * inet/inet6_opt.c: New file.
9349 * inet/inet6_rth.c: New file.
9350
9351 * inet/netinet/icmp6.h: Pretty printing.
9352
aec6b246
UD
9353 [BZ #2683]
9354 * elf/dl-addr.c (_dl_addr): Don't match undefined references.
9355
2d571cd1
UD
93562006-05-23 Ulrich Drepper <drepper@redhat.com>
9357
062e719b
UD
9358 * nis/nis_lookup.c (nis_lookup): Use __prepare_niscall instead of
9359 doing it all here. When server does not know the answer do not
9360 fail immediate, try parent first.
9361
2d571cd1
UD
9362 * nis/nis_domain_of_r.c (nis_domain_of_r): Add missing buffer
9363 overflow test.
9364
a17fa610
UD
93652006-05-20 Ulrich Drepper <drepper@redhat.com>
9366
9367 * nis/nis_call.c (__prepare_niscall): New function. Split out
9368 from __do_niscall.
9369 * nis/nis_table.c (__create_ib_request): Renamed from create_ib_request
9370 and exported.
9371 (__follow_path): New function. Split out from nis_list.
9372 * nis/nis_xdr.h: Add libnsl_hidden_proto for _xdr_ib_request and
9373 _xdr_nis_result.
9374 * nis/nis_xdr.c: Add libnsl_hidden_def for _xdr_ib_request and
9375 _xdr_nis_result.
9376 * nis/libnsl.h: Declare __prepare_niscall, __create_ib_request,
9377 and __follow_path.
9378 * nis/Versions: Export __prepare_niscall, __create_ib_request,
9379 __follow_path, __do_niscall3, _xdr_ib_request, and _xdr_nis_result
9380 from libnsl for version GLIBC_PRIVATE.
9381 * nis/nisplus-parser.h: Remove _nss_nisplus_parse_pwent_chk.
9382 Remove entry parameter from _nss_nisplus_parse_pwent and
9383 _nss_nisplus_parse_grent.
9384 * nis/nss_nisplus/nisplus-parser.c: Likewise.
9385 * nis/nss_nisplus/nisplus-pwd.c: Remove support for SETENT_BATCH_READ
9386 again. Rewrite getpwent handling to not use nis_first_entry and
9387 nis_next_entry. Roll out own niscall handling.
9388 * nis/nss_nisplus/nisplus-grp.c: Likewise.
9389
9390 * sunrpc/xdr_rec.c: Fix typo in comment.
9391
429bb183
UD
93922006-05-19 Ulrich Drepper <drepper@redhat.com>
9393
1d4f062a
UD
9394 * nis/nis_call.c (__do_niscall3): Avoid code duplication in error
9395 handling.
9396
101cc598
UD
9397 * nis/nis_callback.c (internal_nis_do_callback): Don't use malloc
9398 to allocate memory for my_pollfd. Better initialization of
9399 cb_is_running. Use TEMP_FAILURE_RETRY.
9400
f50fa10c
UD
9401 * malloc/memusage.sh (memusageso): Add quotes.
9402 (memusagestat): Likewise.
9403 * debug/xtrace.sh (pcprofileso): Likewise.
9404 (pcprofiledump): Likewise.
9405 * debug/Makefile ($(objpfx)xtrace): Use $LIB in SLIBDIR
9406 replacement.
9407 * malloc/Makefile ($(objpfx)memusage): Likewise.
9408
882bfe73
UD
9409 * nis/nis_callback.c (__nis_create_callback): Calls to
9410 svcudp_bufcreate and svctcp_create can fail. Free ->xprt if
9411 asprintf call fails.
9412
429bb183
UD
9413 * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_sendreq): Make sure
9414 no uninitialized memory is passed to sendto.
9415
f90de831
UD
94162006-05-18 Ulrich Drepper <drepper@redhat.com>
9417
9418 * nis/nis_callback.c (__nis_create_callback): Use asprinf instead
9419 of snprintf+strdup. Handle OOM.
9420 * nis/nis_callback.c (__nis_create_callback): Allocate cb and
9421 cb->serv together. Remove now obsolete free calls.
9422 (__nis_destroy_callback): Remove now obsolete free call.
9423
a17fa610 94242006-05-18 David Woodhouse <dwmw2@redhat.com>
6e2a7825
UD
9425
9426 * sysdeps/posix/getaddrinfo.c: Add unique labels to the default
9427 RFC3484 precedence table for fec0::/10 and fc00::/7 (site-local
9428 and ULA respectively). Set precedence for IPv4 address to 10 as
9429 defined in RFC3484 for preferring IPv6.
9430 * posix/gai.conf: Update to match the new default tables.
9431
758b9d7e
UD
94322006-05-18 Jakub Jelinek <jakub@redhat.com>
9433
9434 * nis/nss_compat/compat-pwd.c (internal_setpwent): If nss_set*ent
9435 returned NSS_STATUS_UNAVAIL, still return NSS_STATUS_SUCCESS.
9436 * nis/nss_compat/compat-spwd.c (internal_setspent): Likewise.
9437 * nis/nss_compat/compat-grp.c (internal_setgrent): Likewise.
9438
9439 * nis/nss_compat/compat-initgroups.c (nss_setgrent, nss_endgrent):
9440 Removed.
9441 (init_nss_interface): Remove initialization of these variables.
9442
94432006-05-18 Ulrich Drepper <drepper@redhat.com>
9444
9445 * nis/nis_call.c (rec_dirsearch): Little optimization: pull
9446 nis_free_directory forward to avoid duplication.
9447
388c779e
UD
94482006-05-17 Ulrich Drepper <drepper@redhat.com>
9449
5f1724bf
UD
9450 * nis/nis_call.c (rec_dirsearch): Handle __nis_finddirectory and
9451 rec_dirsearch returning NULL.
9452 (first_shoot): Handle __nis_finddirectory returning NULL.
9453 (__nisfind_server): Fix leak when rec_dirsearch returns NULL.
9454
388c779e
UD
9455 * sysdeps/unix/sysv/linux/sys/inotify.h: Define IN_CLOSE, IN_MOVE,
9456 IN_ONLYDIR, IN_DONT_FOLLOW, and IN_MASK_ADD.
9457
360d5cf4
UD
94582006-05-17 Jakub Jelinek <jakub@redhat.com>
9459
9460 * sunrpc/key_call.c (getkeyserv_handle): Call auth_destroy if
9461 pid changed.
9462
88dbff8c
UD
94632006-05-15 Ulrich Drepper <drepper@redhat.com>
9464
6f8a7dff
UD
9465 * include/rpc/pmap_prot.h: Mark all functions as hidden.
9466
9467 * nscd/nscd_initgroups.c: Mark __gr_map_handle as hidden.
9468 * nscd/nscd_getgr_r.c: Likewise.
9469
9470 * include/rpc/pmap_rmt.h: Mark all functions as hidden.
9471
9472 * nscd/nscd_getai.c (__hst_map_handle): Mark as hidden.
9473 * nscd/nscd_gethst_r.c (__hst_map_handle): Likewise.
9474
9475 * stdlib/longlong.h (__clz_tab): Mark as hidden.
9476
9477 * iconv/gconv_int.h: Mark __gconv_lock as hidden.
9478
360d5cf4 9479 * include/rpc/key_prot.h: Mark all _internal functions as hidden.
8263ed62
UD
9480
9481 * include/rpc/auth.h: Mark xdr_des_block_internal and
9482 xdr_opaque_auth_internal as hidden.
9483
9484 * sysdeps/unix/sysv/linux/getdents.c: Mark __have_no_getdents64 as
9485 hidden.
9486
360d5cf4 9487 * include/rpc/xdr.h: Mark all _internal functions as hidden.
8263ed62 9488
02264020
UD
9489 * misc/getusershell.c (okshells): Don't use static initializers,
9490 do it dynamically.
9491
fd5ea238
UD
9492 * stdlib/fmtmsg.c (keywords): Change type of len element to
9493 uint32_t to not waste space on 64bit machines.
9494
9446614c
UD
9495 * locale/setlocale.c: Change _nl_category_names into a string.
9496 Add new _nl_category_name_idxs. Change all users.
9497 * locale/localeinfo.h: Adjust declaration of _nl_category_names.
9498 Declare _nl_category_name_idxs.
9499 * locale/findlocale.c: Adjust for _nl_category_names change.
9500 * locale/loadlocale.c: Likewise.
9501 * locale/newlocale.c: Likewise.
9502 * intl/dcigettext.c: Likewise.
9503
88dbff8c
UD
9504 * iconv/gconv_conf.c (add_alias): Move actual alias handling to...
9505 (add_alias2): ...here. New function.
9506 (__gconv_read_conf): Simplify builtin alias handling.
9507 (builtin_aliases): Convert to string to avoid relocations.
9508 * iconv/gconv_builtin.h: Add comment about correct formatting.
9509
4442d58f
UD
95102006-05-15 Jakub Jelinek <jakub@redhat.com>
9511
9512 * resolv/res_debug.c (loc_ntoa): Make error const.
9513
95142006-05-14 Andreas Schwab <schwab@suse.de>
9515
9516 * math/complex.h [__LDBL_COMPAT]: Use __REDIRECT_NTH.
9517
95182006-05-12 Jakub Jelinek <jakub@redhat.com>
9519
9520 * sysdeps/unix/sysv/linux/sched_getaffinity.c: Include sys/param.h.
9521 (__sched_getaffinity_new): Don't crash if cpusetsize is smaller than
9522 sizeof (cpu_set_t).
9523
a51752b6
UD
95242006-05-11 Ulrich Drepper <drepper@redhat.com>
9525
5d3fd1f6
UD
9526 * resolv/res_debug.c (loc_ntoa): Define error as array, not pointer.
9527
08cfb839
UD
9528 * include/arpa/nameser.h: Declare _ns_flagdata as hidden.
9529
4b481a15
UD
9530 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_master.
9531 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_master.
9532
9533 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypbind_resp.
9534 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypbind_resp.
9535
9536 * nis/nis_xdr.c: Add libnsl_hidden_def for xdr_cback_data.
9537 * include/rpcsvc/nis_callback.h: Add libnsl_hidden_proto for
9538 xdr_cback_data.
9539
9540 * nis/ypupdate_xdr.c: Add libnsl_hidden_def for xdr_ypupdate_args.
9541 * include/rpcsvc/ypupd.h: Add libnsl_hidden_proto for
9542 xdr_ypupdate_args.
9543
9544 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_order.
9545 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_order.
9546
9547 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_maplist.
9548 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_maplist.
9549
9550 * nis/nis_xdr.c: Add libnsl_hidden_def for xdr_obj_p.
9551 * include/rpcsvc/nis_callback.h: New file.
9552
9553 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_val.
9554 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_val.
9555
9556 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypreq_nokey.
9557 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypreq_nokey.
9558
9559 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypmaplist.
9560 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypmaplist.
9561
9562 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypreq_nokey.
9563 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypreq_nokey.
9564
b1ad49c6
UD
9565 * nis/ypupdate_xdr.c: Add libnsl_hidden_def for xdr_ypdelete_args.
9566 * include/rpcsvc/ypupd.h: Add libnsl_hidden_proto for
9567 xdr_ypdelete_args.
9568
cd5f7829
UD
9569 * nis/nis_xdr.h: Mark all functions as hidden. Remove
9570 __BEGIN_DECLS and __END_DECLS, the header is not installed.
9571
a51752b6
UD
9572 * nis/nis_error.c: Remove table of strings. Use position
9573 independent mechanism.
9574 * nis/nis_error.h: New file.
9575
3d237e42
UD
95762006-05-11 Jakub Jelinek <jakub@redhat.com>
9577
9578 * locale/programs/ld-time.c (time_finish): If wide era name or
9579 format aren't provided, set both wname and wformat to L"".
9580
d6c159fe
UD
95812006-05-10 Ulrich Drepper <drepper@redhat.com>
9582
0088b04e
UD
9583 * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Only store
9584 results if the call was succesful.
9585
d6c159fe
UD
9586 * nis/nss-nis.h: Mark __yperr2nss_tab and __yperr2nss_count as hidden.
9587
9588 * nis/nss-nisplus.h: Mark __niserr2nss_tab and __niserr2nss_count
9589 as hidden.
9590
5c5acdf0
UD
95912006-05-10 Jakub Jelinek <jakub@redhat.com>
9592
9593 * misc/sys/queue.h: Remove uses of all QUEUEDEBUG_* macros.
9594
16d620db
UD
95952006-05-10 Ulrich Drepper <drepper@redhat.com>
9596
9597 * posix/wordexp.c (parse_glob): No need to check ifs for NULL, the
9598 caller makes sure this is not the case.
9599 (wordexp): Simplify ifs_white creation. [Coverity CID 231]
9600
e7c8359e
UD
96012006-05-09 Ulrich Drepper <drepper@redhat.com>
9602
ecf359c6
UD
9603 * posix/wordexp.c: Remove numerous NULL pointer tests before FREE
9604 calls.
9605
400cc70a
UD
9606 * io/ftw.c (open_dir_stream): Return right away if REALLOC fails.
9607 [Coverity CID 229, 230]
9608
9609 * argp/argp-help.c (hol_entry_help): Handle STATE==NULL in ARG and
9610 DGETTEXT calls.
9611 (hol_help): Likewise. [Coverity CID 226, 227]
9612
9613 * string/argz-replace.c (__argz_replace): Unconditionally call
9614 free on SRC. [Coverity CID 225]
9615
9616 * nis/nis_creategroup.c (nis_creategroup): No need to duplicate
9617 the return value of __nis_default_owner and __nis_default_group,
9618 it has been especially allocated. [Coverity CID 224]
9619
51e59260
UD
9620 * nis/nis_defaults.c (searchXYX): New functions. Used by both
9621 searchgroup and searchowner. Significantly simplified.
9622 (__nis_default_owner): Remove duplication. Do not locally copy the
9623 string before duplicating it.
9624 (__nis_default_group): Likewise.
9625
9626 * nis/nis_lookup.c (nis_lookup): After calling nis_free_directory,
9627 we must clear the variable before calling __nisfind_server.
9628
9629 * nis/nis_lookup.c (nis_lookup): Always free memory allocated with
9630 nis_getnames. [Coverity CID 223]
9631
9632 * locale/programs/locfile.c (locfile_read): Use alloca instead of
9633 xmalloc to allocate local repertoire name. [Coverity CID 222]
9634
9635 * iconv/iconv_charmap.c (use_to_charmap): No need to dynamically
9636 allocate memory for the input to add_bytes. [Coverity CID 221]
9637
e7c8359e 9638 * posix/wordexp.c (w_addword): Free word if realloc fails and it
51e59260 9639 was allocated here. [Coverity CID 219, 220]
e7c8359e
UD
9640
9641 * posix/getconf.c (print_all): Free confstr data after printing.
9642 [Coverity CID 218]
9643
9644 * sysdeps/posix/getaddrinfo.c (gaih_inet): Free canon string if
9645 list allocation fails. [Coverity CID 215]
9646
9647 * nss/nsswitch.c (__nss_configure_lookup): Fix loop end condition.
9648 [Coverity CID 213]
9649
9650 * argp/argp-help.c (hol_entry_cmp): Don't call canon_doc_option if
9651 string is NULL. [Coverity CID 212]
9652 * argp/Makefile: Add rules to build and run bug-argp1.
9653 * argp/bug-argp1.c: New file.
9654
9655 * io/ftw.c (ftw_dir): Use __rawmemchr instead of strchr to find
9656 end of string.
9657 * stdlib/canonicalize.c (__realpath): Likewise.
9658
9659 * locale/programs/ld-time.c (time_finish): Don't dereference NULL
9660 pointer. [Coverity CID 206]
9661
9662 * elf/dl-dst.h (DL_DST_REQUIRED): Be prepared for missing link map
9663 in statically linked code.
9664 * elf/dl-load.c (_dl_dst_substitute): When replacing ORIGIN in
9665 statically built code, be prepared to have no link map.
9666 [Coverity CID 205]
9667
9668 * argp/argp-help.c (fill_in_uparams): Handle STATE==NULL in
9669 dgettext calls. [Coverity CID 204]
9670
9671 * argp/argp-help.c (struct uparams): Remove valid member. Change
9672 the one user.
9673 (uparam_names): Reduce size. Avoid relative relocations.
9674 Moved to read-only segment.
9675 (fill_in_uparams): Update for new layout.
9676
9677 * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs): Parameter can be
9678 assumed to always be != NULL. [Coverity CID 202]
9679
9680 * argp/argp-help.c (hol_entry_help): Remove some dead code
9681 [Coverity CID 200].
9682
9683 * nis/nss_nis/nis-service.c (_nss_nis_getservbyport_r): Optimize
9684 away a few more unconditional yperr2nss calls.
9685 (_nss_nis_getservbyname_r): Likewise.
9686
acf82eaf
UD
96872006-05-06 Ulrich Drepper <drepper@redhat.com>
9688
4461cf48
UD
9689 * sysdeps/generic/ldsodefs.h: Remove support for non-core
9690 architectures.
9691
b74a8c7f
UD
9692 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Make sure
9693 that unused memory passed to sendto is nevertheless initialized.
9694
acb98cb5
UD
9695 [BZ #2499]
9696 * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Avoid
9697 possibly unaligned memory accesses.
9698
bce16467
UD
9699 * include/arpa/nameser.h: Also optimize NS_PUT16 and NS_PUT32.
9700 * resolv/res_mkquery.c: Use NS_PUT16 and NS_PUT32 instead of __putshort
9701 and __putlong respectively. Correct buffer overflow check for
9702 NS_NOTIFY_OP.
9703
9704 * resolv/res_send.c (send_vc): Use ns_put16 instead of putshort.
9705
8e45b1ac
UD
9706 * resolv/res_send.c (res_queriesmatch): Fix typo in comment.
9707 (send_dg): Rewrite error handling to be more compact and avoid
9708 double recomputation of timeouts. Pass MSG_NOSIGNAL to send.
9709
697e1628
UD
9710 * include/arpa/nameser.h: Add optimizations for NS_GET16 and NS_GET32.
9711
9712 * resolv/res_send.c (res_nameinquery): Use NS_GET16 directly
9713 instead of ns_get16.
9714 (res_queriesmatch): Likewise. Minor optimization.
9715
acf82eaf
UD
9716 [BZ #2499]
9717 * resolv/res_query.c (__libc_res_nquery): If answerp != NULL,
9718 __libc_res_nsend might reallocate the buffer for the answer. In
9719 this case we have to reload the HP pointer.
9720
7bfee654
UD
97212006-05-05 Ulrich Drepper <drepper@redhat.com>
9722
694b49ca
UD
9723 * stdio-common/vfscanf.c (memory_error): Remove definition. Add
9724 some branch prediction hints.
9725
7bfee654
UD
9726 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Define SPLICE_F_*.
9727 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
9728 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
9729 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
9730 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
9731 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
9732 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
9733 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
9734
308bb2d5
UD
97352006-05-05 Martin Schwidefsky <schwidefsky@de.ibm.com>
9736
9737 * sysdeps/s390/s390-32/elf/start.S: Replace pc relative relocation
9738 by a GOT relocation to make Scrt1.o position independent.
9739 * sysdeps/s390/s390-64/elf/start.S: Likewise.
9740
9741 * sysdeps/unix/sysv/linux/s390/s390-32/syscall.S: Add support for
9742 six system call parameters.
9743 * sysdeps/unix/sysv/linux/s390/s390-64/syscall.S: Likewise.
9744
cdb9c321
UD
97452006-05-05 Ulrich Drepper <drepper@redhat.com>
9746
9747 * sunrpc/svcauth_des.c (cache_init): Use calloc instead of
9748 malloc&bzero.
9749
9750 * sunrpc/svc_udp.c (BZERO): Remove definition.
9751 (CALLOC): Define.
9752 (svc_enablecache): Use CALLOC instead of ALLOC&BZERO.
9753
9754 * sunrpc/des_impl.c: Remove ALT_ECB support. We never used it.
9755 (des_SPtrans): Use uint32_t type.
9756 (des_skb): Likewise.
9757
9758 * sunrpc/xdr_ref.c (xdr_reference): Use calloc instead of malloc&bzero.
9759
fff04b32
UD
97602006-05-05 Jakub Jelinek <jakub@redhat.com>
9761
9762 [BZ #2509]
9763 * stdio-common/tst-printf.sh: Adjust for tst-printf.c change even
9764 on 32-bit arches.
9765
97662006-05-05 Ulrich Drepper <drepper@redhat.com>
9767
9768 * locale/programs/ld-address.c (address_finish): Fix one more
cdb9c321 9769 place where the iso639 array might be accessed beyond the limits.
fff04b32 9770
077a30bc 97712006-05-04 Ulrich Drepper <drepper@redhat.com>
77dd4c3b 9772
f2d5cf50
UD
9773 * nis/nis_table.c (nis_list): Avoid clearing res twice before
9774 filling it for the first time.
9775
3e4370cf
UD
9776 * nis/nis_table.c (get_tablepath): Renamed from __get_tablepath.
9777 Adjust all callers.
9778 Free res object content before returning.
9779
5e65a53d
UD
9780 * sunrpc/xdr_array.c (xdr_array): Use calloc instead of malloc&bzero.
9781
48be3114
UD
9782 * sunrpc/key_call.c (__rpc_thread_key_cleanup): Also free
9783 client->cl_auth.
9784
ca4fce0e
UD
9785 * sunrpc/rpc_thread.c (__rpc_thread_destroy): Don't skip entire
9786 cleanup for initial thread, just the free call on TVP.
9787
077a30bc 9788 * nscd/gai.c (__getline): Define.
3b7a95fb 9789
5d37289a 9790
3f87d901 9791See ChangeLog.16 for earlier changes.