]> sourceware.org Git - glibc.git/blame - ChangeLog
[BZ #6980]
[glibc.git] / ChangeLog
CommitLineData
3cf44918
UD
12008-10-31 Ulrich Drepper <drepper@redhat.com>
2
4bed549a
UD
3 [BZ #6980]
4 * debug/getgroups_chk.c (__getgroups_chk): Return EINVAL error for
5 negative sizees.
6 * posix/bits/unistd.h (getgroups): Call __getgroups_chk for
7 negative __size.
8
3cf44918
UD
9 [BZ #6995]
10 * sysdeps/powerpc/powerpc32/dl-machine.c: Fix typo in message.
11
21b07d8b
UD
122008-10-30 Ulrich Drepper <drepper@redhat.com>
13
332c4465
UD
14 * grp/initgroups.c (internal_getgrouplist): Don't prematurely
15 abort if there is no initgroups_dyn function.
16
21b07d8b
UD
17 * resolv/res_send.c (send_dg): On timeout, only return nonzero
18 result if any of the queries really provided an answer.
19
4caa3fb7
UD
202008-10-28 Ulrich Drepper <drepper@redhat.com>
21
22 * po/lt.po: Update from translation team.
23
a22c3a0d
UD
242008-10-26 Ulrich Drepper <drepper@redhat.com>
25
26 * po/id.po: Update from translation team.
27
49685151
UD
282008-10-24 Ulrich Drepper <drepper@redhat.com>
29
30 * resolv/res_query.c (__libc_res_nquery): Add a few casts.
660675de 31 Fix tests for existence of second reply.
49685151 32
8d9d5d35
UD
332008-10-23 Ulrich Drepper <drepper@redhat.com>
34
35 * po/id.po: New file.
36 Contributed by the Indonesian translation team.
37
208bc836
UD
382008-10-22 Dmitry V. Levin <ldv@altlinux.org>
39
40 * misc/syslog.c (openlog_internal): Fix __have_sock_cloexec
41 initialization.
42
60a23f5a
UD
432008-10-17 Jakub Jelinek <jakub@redhat.com>
44
45 * elf/Makefile: Add rules to build and run tst-tls17.
46 * elf/tst-tls17.c: New test.
47 * elf/tst-tlsmod17a.c: New file.
48 * elf/tst-tlsmod17b.c: Likewise.
49
292eb817
UD
502008-10-17 Ulrich Drepper <drepper@redhat.com>
51
52 * stdlib/divmod_1.c: Use correct type for dummy variable.
53 * stdlib/mod_1.c: Likewise.
54
5df2a427
UD
552008-10-16 Ulrich Drepper <drepper@redhat.com>
56
57 * elf/dl-tls.c (_dl_update_slotinfo): Copy all of the initial DTV.
58
472e5e08
JJ
592008-10-16 Jakub Jelinek <jakub@redhat.com>
60
61 * sysdeps/unix/sysv/linux/sys/signalfd.h (signalfd): Fix __THROW vs.
62 __nonnull order for C++.
63 * sysdeps/unix/sysv/linux/alpha/sys/signalfd.h (signalfd): Likewise.
64 * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h (signalfd): Likewise.
65
86900abd
RM
662008-10-01 Daniel Jacobowitz <dan@codesourcery.com>
67
68 * stdlib/longlong.h: Update from GCC.
69
19c10a47
JJ
702008-10-09 Jakub Jelinek <jakub@redhat.com>
71 David S. Miller <davem@davemloft.net>
72
73 * sysdeps/sparc/sparc64/sparcv9v/memcpy.S: When not USE_BPR,
74 make sure any registers used with 64-bit 'branch-on-register'
75 instructions have their top 32-bits clear.
76 * sysdeps/sparc/sparc64/sparcv9v/memset.S: Likewise.
77 * sysdeps/sparc/sparc64/sparcv9v2/memcpy.S: Likewise.
78
2fdde3b9
UD
792008-09-18 Andreas Schwab <schwab@suse.de>
80
81 [BZ #6942]
82 * resolv/res_send.c (send_vc): Fix use of unaligned address.
83 Properly handle partial reads.
84
6ba25fcb
RM
852008-10-01 Mark Shinwell <shinwell@codesourcery.com>
86
87 * elf/elf.h (STO_MIPS_PLT): New.
88 (R_MIPS_COPY): New.
89 (R_MIPS_JUMP_SLOT): New.
90 (R_MIPS_NUM): Redefine to 128.
91 (DT_MIPS_PLTGOT): New.
92 (DT_MIPS_RWPLT): New.
93 (DT_MIPS_NUM): Redefine to 0x35.
94
97898201
UD
952008-10-01 Ulrich Drepper <drepper@redhat.com>
96
97 * timezone/africa: Update from tzdata2008f.
98 * timezone/asia: Likewise.
99 * timezone/australasia: Likewise.
100 * timezone/europe: Likewise.
101 * timezone/leapseconds: Likewise.
102 * timezone/northamerica: Likewise.
103 * timezone/southamerica: Likewise.
104 * timezone/zone.tab: Likewise.
105
3452ded5
UD
1062008-09-30 Ulrich Drepper <drepper@redhat.com>
107
108 * nscd/connections.c: Disable use of paccept for now.
109
54ad9327
UD
1102008-09-29 Ulrich Drepper <drepper@redhat.com>
111
8ec2550e
UD
112 * socket/Versions: Remove paccept export for GLIBC_2.9.
113 * socket/Makefile (routines): Remove paccept.
114 * socket/sys/socket.h: Remove paccept declaration.
115
54ad9327
UD
116 * po/sv.po: Update from translation team.
117
1c5eba39
UD
1182008-09-22 Deborah S. Townsend <dstownse@us.ibm.com>
119
120 * sysdeps/s390/s390-64/s390x-mcount.S: Replace ahi with aghi.
121 * sysdeps/unix/sysv/linux/s390/s390-64/socket.S: Likewise.
122
0a26fc4d
UD
1232008-09-16 Ulrich Drepper <drepper@redhat.com>
124
125 * dlfcn/dlopen.c (dlopen_doit): Allow __RTLD_SPROF flag.
126 Patch by Olivier Fourdan <ofourdan@redhat.com>.
127
2bcaff08
UD
1282008-09-15 Ulrich Drepper <drepper@redhat.com>
129
130 * sunrpc/rpc/svc.h: Declare svcfd_create.
131 Patch by Michael Solberg <msolberg@redhat.com>.
132
caa60cb9
UD
1332008-09-12 Flavio Leitner <fleitner@redhat.com>
134 Ulrich Drepper <drepper@redhat.com>
135
136 * malloc/malloc.c (public_vALLOc): Try other arenas in case
137 _int_valloc fails.
138 (public_pVALLOc): Likewise.
139
6c161112
AJ
1402008-09-02 Andreas Jaeger <aj@suse.de>
141
142 * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: Fix last
143 commit.
144
0cb269d7
RM
1452008-08-26 Aurelien Jarno <aurelien@aurel32.net>
146
452034cc 147 [BZ #6860]
2bcaff08 148 * hurd/hurd/signal.h (HURD_MSGPORT_RPC): Fix a typo.
0cb269d7 149
13074b5b
RM
1502008-07-18 Daniel Jacobowitz <dan@codesourcery.com>
151
152 * Makefile (check-data): Check data directory in add-ons.
153 * elf/Makefile (check-data): Likewise.
154
58801a0e
RM
1552008-08-18 Roland McGrath <roland@redhat.com>
156
157 * configure.in (--with-cpu): Check compiler support for -march/-mcpu.
158 * configure: Regenerated.
159 * config.make.in (cflags-cpu): New substituted variable.
160 (with-cpu): Variable removed.
161 * Makeconfig (+cflags): Use $(cflags-cpu), not $(with-cpu).
162
7df49c5d
UD
1632008-08-14 Ryan S. Arnold <rsa@us.ibm.com>
164
165 [BZ #6845]
166 * sysdeps/powerpc/fpu/bits/mathinline.h (__signbitl): Copy new
167 __signbitl definition and __LONG_DOUBLE_128__ guard from:
168 * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h: Remove as
169 redundant. Functions which call floating point assembler operations
170 should go into a sysdeps powerpc/fpu directory.
171
965805e8
UD
1722008-08-15 Ulrich Drepper <drepper@redhat.com>
173
174 * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Define MAP_STACK.
175 * sysdeps/unix/sysv/linux/i386/bits/mman.h: Likewise.
176
9cf73ab0
UD
1772008-08-14 Ulrich Drepper <drepper@redhat.com>
178
62a1ffc6
UD
179 * sysdeps/x86_64/memset.S: Reduce size of tables for PIC.
180
9cf73ab0
UD
181 * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): Undo all
182 change related to AT_EXECFN. We cannot use that string.
183 * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Remove
184 _dl_execfn member.
185 * elf/dl-support.c: Remove _dl_execfn variable.
186 (_dl_aux_init): Remove handling of AT_EXECFN.
187 * elf/dl-sysdep.c (_dl_sysdep_start): Remove handling of AT_EXECFN.
188 * elf/rtld.c (process_envvars): Remove use of __ASSUME_AT_EXECFN.
189
1bfa05cf
UD
1902008-08-13 Ulrich Drepper <drepper@redhat.com>
191
7b3ba2c4
UD
192 [BZ #6544]
193 * libio/fmemopen.c: Implement binary mode. In this mode no NUL
194 byte gets added to writes and seeks from the end use the length of
195 the buffer and not the currently terminating NUL byte.
196
1bfa05cf
UD
197 [BZ #6634]
198 * login/utmp_file.c (getutent_r_file): Take additional parameter.
199 Set to true if locking failed.
200 (getutid_r_file): Adjust caller.
201 (pututline_file): Likewise. Return NULL in this case.
202 Patch mostly by halesh.s@gmail.com.
203
c5671698
UD
2042008-08-12 Ulrich Drepper <drepper@redhat.com>
205
206 [BZ #6589]
207 * sysdeps/unix/sysv/linux/ifaddrs.c (struct sockaddr_ll_max):
208 Define.
209 (struct ifaddrs_storage): Use it instead of sockaddr_ll.
210
4497384e
UD
2112008-08-12 Ryan S. Arnold <rsa@us.ibm.com>
212
213 [BZ #6839]
214 * sysdeps/powerpc/powerpc32/dl-machine.c (CHECK_STATIC_TLS): Remove
215 macro since it is now available in elf/dynamic-link.h.
216
675d7111
RM
2172008-08-12 Roland McGrath <roland@frob.com>
218
219 * hurd/hurd/signal.h (HURD_MSGPORT_RPC): Avoid -Wparenthesis triggers,
220 in case used outside of libc.
221 Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>
222
8b254432
UD
2232008-08-11 Ulrich Drepper <drepper@redhat.com>
224
225 * resolv/res_mkquery.c (res_nmkquery): Call ns_name_compress
226 directly instead of going through dn_comp.
227
ac84eeca
RM
2282008-08-11 Aurelien Jarno <aurel32@debian.org>
229
230 * sysdeps/mach/i386/machine-lock.h (__spin_unlock, __spin_try_lock):
231 Fix asm constraints.
232
f081b451
UD
2332008-08-07 Ulrich Drepper <drepper@redhat.com>
234
235 [BZ #6790]
236 * sysdeps/unix/sysv/linux/bits/in.h (IP_PMTUDISC_PROBE): Define.
237 (IPV6_PMTUDISC_PROBE): Likewise.
238
30a4429e
UD
2392008-08-07 Pete Eberlein <eberlein@us.ibm.com>
240
241 [BZ #6791]
242 * sysdeps/unix/sysv/linux/powerpc/bits/mman.h (PROT_SAO): Define.
243
1642331d 2442008-08-01 Steven Munroe <sjmunroe@us.ibm.com>
626f68ff 245 Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
1642331d
UD
246
247 [BZ #6817]
248 * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags):
249 Added the members 'vsx' and 'arch_2_06'.
250 (_dl_powerpc_platforms): Add the member 'power7'.
251 * sysdeps/powerpc/dl-procinfo.h: Modify _DL_HWCAP_FIRST
252 to reflect the changes required by VSX and ISA 2.06.
253 Modify _DL_PLATFORMS_COUNT to reflect the addition of
254 'power7'.
255 Defined PPC_PLATFORM_POWER7.
256 (_dl_string_platform): Add support for POWER7.
257 * sysdeps/powerpc/sysdep.h: Define bit masks for VSX
258 capability and ISA 2.06.
259
48b94661
UD
2602008-08-07 Ulrich Drepper <drepper@redhat.com>
261
262 [BZ #6824]
263 * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h: Use correct
264 macro to detect use of 128 bit long double.
265 Patch by Ryan S. Arnold <rsa@us.ibm.com>.
266
9523fd28
UD
2672008-08-05 Ulrich Drepper <drepper@redhat.com>
268
9c0cb150
UD
269 * scripts/gen-as-const.awk: Use 32-bit values on 32-bit platforms.
270
46aea5cb 271 [BZ #5794]
9523fd28
UD
272 * sysdeps/i386/fpu/s_expm1l.S: Simply use exp implementation for large
273 parameters.
274 * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
275 Patch by Denys Vlasenko <dvlasenk@redhat.com>.
276
c400c931
UD
2772008-08-03 Ulrich Drepper <drepper@redhat.com>
278
279 * nscd/connections.c (main_loop_poll): Pass a buffer which is
280 guaranteed to be large enough to read inotify event. Ignore
281 EAGAIN error. Better error message. Add branch predicition.
282 (main_loop_epoll): Likewise.
283
3f39adac
RM
2842008-08-02 Roland McGrath <roland@frob.com>
285
286 * sysdeps/mach/i386/machine-lock.h (__spin_unlock, __spin_try_lock):
287 Add memory clobbers.
288
3501542f
UD
2892008-08-02 Ulrich Drepper <drepper@redhat.com>
290
48b22986
UD
291 * manual/arith.texi: Avoid @strong{Note:}.
292 * manual/creature.texi: Likewise.
293 * manual/filesys.texi: Likewise.
294 * manual/math.texi: Likewise.
295 * manual/memory.texi: Likewise.
296 * manual/resource.texi: Likewise.
297 * manual/syslog.texi: Likewise.
298 * manual/time.texi: Likewise.
299
3501542f
UD
300 * sysdeps/posix/clock_getres.c (hp_timing_getres): Remove inline
301 to prevent warning.
302
17756df3
UD
3032008-08-01 Ulrich Drepper <drepper@redhat.com>
304
ebcc1f4d
UD
305 * sysdeps/unix/sysv/linux/Versions: Fix changes due to old patch for
306 new epoll_create1 interface.
307 * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
308 * sysdeps/unix/sysv/linux/sys/epoll.h: Likewise.
309 * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
310
144bfa86
UD
311 * include/arpa/nameser.h (NS_GET16): Use const pointer.
312 (NS_GET32): Likewise.
313
7e1b29c6
UD
314 * sysdeps/unix/sysv/linux/kernel-features.h: s390 has the new
315 syscalls, too.
316
42fa1f67
UD
317 * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): We cannot
318 use the AT_EXECFN value if it is no absolute path.
319 * sysdeps/unix/sysv/linux/kernel-features.h: Never define
320 __ASSUME_AT_EXECFN.
321
cd5743fd
UD
322 * Versions.def: Add GLIBC_2.9 to libresolv.
323 * include/resolv.h: Remove hidden proto declarations for __ns_*
324 functions. Add them for __dn_count_labels and __p_secstodate.
325 * include/arpa/nameser.h: Add a number of hidden proto declarations.
326 Define ns_msg_getflags macro here.
327 * resolv/res_debug.c: Add hidden definition for __dn_count_labels
328 and __p_secstodate.
329 * resolv/Versions: Export functions from <arpa/nameser.h> from
330 libresolv in version GLIBC_2.9.
331 * resolv/ns_name.c: Integrate changes from bind 9.5.0. Add necessary
332 hidden definitions.
333 * resolv/ns_netint.c: Likewise.
334 * resolv/ns_parse.c: Likewise.
335 * resolv/ns_print.c: Likewise.
336 * resolv/ns_samedomain.c: Likewise.
337 * resolv/ns_ttl.c: Likewise.
338 * resolv/arpa/nameser_compat.h: Likewise.
339 * resolv/arpa/nameser.h: Likewise. Remove macros which redirect
340 function calls.
341 * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Use __ns_get16
342 instead of ns_get16.
343 * resolv/nss_dns/dns-host.c (getanswer_r): Use __ns_get16 and
344 __ns_get32 instead of ns_get16 and ns_get32 respectively.
345 (gaih_getanswer_slice): Likewise.
346 * resolv/Makefile (libresolv-routines): Add ns_date.
347 * resolv/ns_date.c: New file.
348
17756df3
UD
349 * elf/Makefile (check-localplt.out): Also check libresolv and
350 libcrypt.
351
46bc5d43
UD
3522008-07-31 Ulrich Drepper <drepper@redhat.com>
353
354 * sysdeps/unix/sysv/linux/kernel-features.h: Define
355 __ASSUME_O_CLOEXEC.
356
a707cff6
UD
3572008-07-30 Ulrich Drepper <drepper@redhat.com>
358
3c227386
UD
359 * sysdeps/posix/getaddrinfo.c (gaih_inet): Raise size of initial
360 buffer passed to NSS functions.
361
9523fd28 362 * nscd/connections.c (nscd_init): Typo in preprocessor directive.
bd7f4857
UD
363
364 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PACCEPT):
365 Define.
366
a707cff6
UD
367 * misc/syslog.c (openlog_internal): Fix compile problem.
368
0424d007
RM
3692008-07-28 Roland McGrath <roland@redhat.com>
370
371 * elf/dl-sysdep.c (_dl_show_auxv): Add AT_EXECFN to the table.
372
b7da31a1
UD
3732008-07-28 Ulrich Drepper <drepper@redhat.com>
374
300ea0ad
UD
375 * io/ftw.c (add_object): Remove inline to avoid warning.
376
d6173baa
UD
377 * sysdeps/unix/sysv/linux/paccept.c: Fix compile problem.
378
b7da31a1
UD
379 * resolv/res_send.c (__libc_res_nsend): Take additional parameter.
380 Use it instead of locally defined resplen2 variable.
381 (res_nsend): Adjust for __libc_res_nsend interface change.
382 (send_vc): Initialize *resplen2 if necessary. Read length of
383 package into an appropriately aligned variable. Store converted length
384 in new variable and use it appropriately.
385 Add branch prediction help.
386 * resolv/res_query.c (__libc_res_nquery): Take additional parameter
387 and pass it on to __libc_res_nsend. Adjust all callers.
388 (__libc_res_nsearch): Likewise.
389 (__libc_res_nqeurydomain): Likewise.
390 * resolv/nss_dns/dns-host.c: Adjust for __libc_res_nsearch interface
391 change.
392 (_nss_dns_gethostbyname4): Don't unconditionally allocate tmp array.
393 Define resplen2 variable and pass it to __libc_res_nsearch and then
394 to gaih_getanswer.
395 (getanswer_r): In case of incorrect DNS data don't overread buffer.
396 Add branch prediction.
397 (gaih_getanswer_slice): Likewise. Check for invalid data types.
398 (gaih_getanswer): Don't decode second slice if first one failed due
399 to a too small buffer. Don't let not found status of second
400 decoder shadow results of the first.
401 * resolv/gethnamaddr.c (gethostbyname2): Adjust for __libc_res_nsearch
402 and __libc_res_nquery interface changes
403 (gethostbyaddr): Adjust for __libc_res_nquery interface change.
404 * include/resolv.h: Adjust prototypes for __libc_res_nquery,
405 __libc_res_nsearch, and __libc_res_nsend.
406 * resolv/nss_dns/dns-canon.c: Adjust for __libc_res_nquery interface
407 change.
408 * resolv/nss_dns/dns-network.c: Adjust for __libc_res_nquery and
409 __libc_res_nsearch interface changes.
410
11ed3eae
UD
4112008-07-27 Ulrich Drepper <drepper@redhat.com>
412
372aece0
UD
413 * libio/iopopen.c (_IO_new_proc_open): Remove unnecessary volatile.
414
e038616f
UD
415 * posix/wordexp.c (exec_comm): Use pipe2 if possible to create
416 file descriptors with close-on-exec set.
417 (exec_comm_child): Fix the case where the write end of the pipe is
418 STDOUT_FILENO already. In case it is, clear close-on-exec.
419
d6e0c2a6
UD
420 * sysdeps/unix/sysv/linux/syscalls.list: Add __pipe2 alias.
421 * io/pipe2.c: Likewise.
422 * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_PIPE2
423 instead of __ASSUME_PACCEPT.
424 * include/unistd.h: Declare __have_pipe2.
425 * libio/iopopen.c: Implement "e" flag.
426 * libio/Makefile (tests): Add tst-popen1.
427 * libio/tst-popen1.c: New file.
428
11ed3eae
UD
429 * sysdeps/unix/sysv/linux/bits/socket.h: Define PF_ISDN and AF_ISDN.
430 * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
431
7438a80d
UD
4322008-07-26 Ulrich Drepper <drepper@redhat.com>
433
c4a710b6
UD
434 [BZ #6771]
435 * libio/fileops.c (_IO_new_file_attach): Preserve errno around
436 success call of _IO_SEEKOFF or calls which failed because the
437 descriptor is for a pipe.
438
31f3b159
UD
439 * sunrpc/key_call.c (getkeyserv_handle): Use FD_CLOEXEC instead of
440 magic number.
441
c0216dfc
UD
442 * misc/syslog.c (openlog_internal): Use SOCK_CLOEXEC if possible.
443
72112b0c
UD
444 * malloc/mtrace.c (mtrace): Use 'e' flag in fopen call. Drop
445 F_SETFD use if we know fopen set the flag.
446
7438a80d
UD
447 * login/utmp_file.c (setutent_file): Minor optimization in case
448 O_CLOEXEC is available.
449
7b91359b
UD
4502008-07-24 Tom "spot" Callaway <tcallawa@redhat.com>
451
452 * Makeconfig: Define pie-ccflag and PIE-ccflag variables.
453 * elf/Makefile: Use pie-ccflag variable.
454 * nscd/Makefile: Likewise.
455 * sysdeps/sparc/Makefile: Set $(pie-ccflag) to -fPIE.
456
4057dc45
UD
4572008-07-21 Andreas Krebbel <krebbel1@de.ibm.com>
458
e7135e24 459 [BZ #6724]
4057dc45
UD
460 * Versions.def: Add GLIBC_2.9 version tag for libutil.
461 * sysdeps/unix/sysv/linux/s390/bits/utmp.h: Copy of
462 gnu/bits/utmp.h. Check for __WORDSIZE_COMPAT32 removed.
463 * sysdeps/unix/sysv/linux/s390/bits/utmpx.h: Copy of
464 gnu/bits/utmpx.h. Check for __WORDSIZE_COMPAT32 removed.
465 * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Add new files
466 utmp32, utmpx32 and login32.
467 * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Add 2.9
468 versions of struct utmp functions to libc and libutil.
469 * sysdeps/unix/sysv/linux/s390/s390-32/utmp-compat.h: New file.
470 * sysdeps/unix/sysv/linux/s390/s390-32/getutent.c: New file.
471 * sysdeps/unix/sysv/linux/s390/s390-32/getutent_r.c: New file.
472 * sysdeps/unix/sysv/linux/s390/s390-32/getutid.c: New file.
473 * sysdeps/unix/sysv/linux/s390/s390-32/getutid_r.c: New file.
474 * sysdeps/unix/sysv/linux/s390/s390-32/getutline.c: New file.
475 * sysdeps/unix/sysv/linux/s390/s390-32/getutline_r.c: New file.
476 * sysdeps/unix/sysv/linux/s390/s390-32/getutmp.c: New file.
477 * sysdeps/unix/sysv/linux/s390/s390-32/getutxent.c: New file.
478 * sysdeps/unix/sysv/linux/s390/s390-32/getutxid.c: New file.
479 * sysdeps/unix/sysv/linux/s390/s390-32/getutxline.c: New file.
480 * sysdeps/unix/sysv/linux/s390/s390-32/login.c: New file.
481 * sysdeps/unix/sysv/linux/s390/s390-32/login32.c: New file.
482 * sysdeps/unix/sysv/linux/s390/s390-32/pututxline.c: New file.
483 * sysdeps/unix/sysv/linux/s390/s390-32/updwtmp.c: New file.
484 * sysdeps/unix/sysv/linux/s390/s390-32/updwtmpx.c: New file.
485 * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: New file.
486 * sysdeps/unix/sysv/linux/s390/s390-32/utmp32.c: New file.
487 * sysdeps/unix/sysv/linux/s390/s390-32/utmp32.h: New file.
488 * sysdeps/unix/sysv/linux/s390/s390-32/utmpx-convert.h: New file.
489 * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.c: New file.
490 * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: New file.
491
ff0bf753
UD
4922008-07-26 Ulrich Drepper <drepper@redhat.com>
493
619cc2f6
UD
494 * scripts/gen-as-const.awk: Generate more widely usable code by
495 using 64-bit arithmetic.
496
1311b164 497 * stdio-common/printf_fp.c (___printf_fp): Give wide outout code
3f414923 498 the same treatment as narrow output code in last patch.
1311b164 499
ff0bf753
UD
500 * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Namespace cleanup.
501
3f414923 502 [BZ #6763]
ff0bf753
UD
503 * elf/dl-load.c (local_strdup): Remove inline.
504 (_dl_map_object_from_fd): Don't allocate l_symbolic_searchlist.r_list.
505 * elf/dl-object.c (_dl_new_object): Allocate symbolic searchlist as
506 part of the object.
507
508 * sysdeps/unix/sysv/linux/dl-origin.c: Add const to avoid warning.
509
8ccf22f9
UD
5102008-07-25 Ulrich Drepper <drepper@redhat.com>
511
bdd24a30
UD
512 * sysdeps/unix/sysv/linux/kernel-features.h: IA-64 and SPARC have
513 the new syscalls, too.
b5c0b5e4 514
b41f1d14
UD
515 * sysdeps/i386/i686/memcmp.S: Fix unwind information.
516 Reported by Paul Pluzhnikov <ppluzhnikov@google.com>.
517
3703468e
UD
518 [BZ #6698]
519 * stdio-common/_i18n_number.h (_i18n_number_rewrite): Take additional
520 parameter for end of buffer. If temporary copy is too large use
521 malloc.
522 * stdio-common/vfprintf.c: Adjust for _i18n_number_rewrite
523 interface change.
524 * stdio-common/printf_fp.c (__printf_fp): Likewise.. Account for
525 string rewrite when allocating buffer.
526
bb0277bf
UD
527 * sysdeps/unix/sysv/linux/kernel-features.h: PPC has the new
528 syscalls, too.
529
9dd84772
UD
530 * nscd/connections.c (nscd_init): Clean up fcntl call.
531
c418b1ba
UD
532 * nscd/nscd_helper.c (open_socket): Use SOCK_CLOEXEC and
533 SOCK_NONBLOCK if possible.
534
b206d8b1
UD
535 * sysdeps/unix/sysv/linux/opensock.c (__opensock): Use
536 SOCK_CLOEXEC if available.
537
8ccf22f9
UD
538 * include/rpc/clnt.h: Declare __libc_clntudp_bufcreate and
539 __libc_clntudp_bufcreate_internal.
540 * include/sys/socket.h: Declare __have_sock_cloexec.
541 * socket/Makefile (aux): Add have_sock_cloexec.
542 * socket/have_sock_cloexec.c: New file.
543 * sunrpc/clnt_udp.h (clntudp_bufcreate): Now a wrapper around
544 __libc_clntudp_bufcreate.
545 (__libc_clntudp_bufcreate): Former implementation of clntudp_bufcreate
546 which takes an additional parameter. Create socket with non-blocking
547 mode and close-on-exec flag set, if wanted.
548 * sunrpc/Versions: Export __libc_clntudp_bufcreate@GLIBC_PRIVATE.
549 * nis/ypclnt.c (yp_bind_client_create): Use __libc_clntpudp_bufcreate
550 instead of clntudp_create. The socket has already the close-on-exec
551 flag set if SOCK_CLOEXEC is defined.
552
579cdf5a
UD
5532008-07-24 Ulrich Drepper <drepper@redhat.com>
554
3ff2c948
UD
555 * sysdeps/unix/sysv/linux/kernel-features.h: Define
556 __ASSUME_PACCEPT, __ASSUME_IN_NONBLOCK, and __ASSUME_PACCEPT if
557 appropriate.
558 * nscd/connections.c: Avoid fcntl calls to set close-on-exec flag and
559 non-blocking mode by using socket, paccept, and inotify_init1.
560
bdcebfc4
UD
561 * Versions.def (glibc): Add GLIBC_2.9.
562 * io/Makefile (routines): Add dup3 and pipe2.
563 * io/Versions [glibc] (GLIBC_2.9): Add dup3 and pipe2.
564 * io/dup3.c: New file.
565 * io/pipe2.c: New file.
566 * posix/unistd.h: Declare dup3 and pipe2.
567 * socket/Makefile (routines): Add paccept.
568 * socket/Versions [glibc] (GLIBC_2.9): Add paccept.
569 * socket/paccept.c: New file.
570 * socket/sys/socket.h: Declare paccept.
571 * sysdeps/unix/syscalls.list: Add entry for dup3.
572 * sysdeps/unix/sysv/linux/Versions [glibc] (GLIBC_2.9): Add
573 epoll_create2 and inotify_init1.
574 * sysdeps/unix/sysv/linux/eventfd.c: Use eventfd1 syscall if possible.
575 * sysdeps/unix/sysv/linux/paccept.c: New file.
576 * sysdeps/unix/sysv/linux/signalfd.c: Use signalfd4 syscall if
577 possible.
578 * sysdeps/unix/sysv/linux/socketcall.h: Add SOCKOP_paccept.
579 * sysdeps/unix/sysv/linux/syscalls.list: Add epoll_create2,
580 inotify_init1, and pipe2 entries.
581 * sysdeps/unix/sysv/linux/alpha/sys/epoll.h: New file.
582 * sysdeps/unix/sysv/linux/alpha/sys/eventfd.h: New file.
583 * sysdeps/unix/sysv/linux/alpha/sys/inotify.h: New file.
584 * sysdeps/unix/sysv/linux/alpha/sys/signalfd.h: New file.
585 * sysdeps/unix/sysv/linux/alpha/sys/timerfd.h: New file.
586 * sysdeps/unix/sysv/linux/bits/socket.h: Define SOCK_CLOEXEC and
587 SOCK_NONBLOCK.
588 * sysdeps/unix/sysv/linux/i386/paccept.S: New file.
589 * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: New file.
590 * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: New file.
591 * sysdeps/unix/sysv/linux/sparc/sys/inotify.h: New file.
592 * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h: New file.
593 * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: New file.
594 * sysdeps/unix/sysv/linux/sparc/bits/socket.h: New file.
595 * sysdeps/unix/sysv/linux/sys/epoll.h: Define EPOLL_CLOEXEC and
596 EPOLL_NONBLOCK. Declare epoll_create2.
597 * sysdeps/unix/sysv/linux/sys/eventfd.h: Define EFD_CLOEXEC and
598 EFD_NONBLOCK.
599 * sysdeps/unix/sysv/linux/sys/inotify.h: Define IN_CLOEXEC and
600 IN_NONBLOCK. Declare inotify_init1.
601 * sysdeps/unix/sysv/linux/sys/signalfd.h: Define SFD_CLOEXEC and
602 SFD_NONBLOCK.
603 * sysdeps/unix/sysv/linux/sys/timerfd.h: Define TFD_CLOEXEC and
604 TFD_NONBLOCK.
605
0e077a7e
UD
606 * elf/elf.h: Define AT_EXECFN.
607 * elf/rtld.c [!__ASSUME_AT_EXECFN] (process_envvars): Don't handle
608 LD_ORIGIN_PATH.
609 * elf/dl-sysdep.c (_dl_sysdep_start): Handle AT_EXECFN.
610 * elf/dl-support.c: Define _dl_execfn. Don't define _dl_origin_path
611 if __ASSUME_AT_EXECFN is defined.
612 (_dl_aux_init): Handle AT_EXECFN.
613 * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_AT_EXECFN
614 for 2.6.27 and up.
615 * sysdeps/generic/ldsodefs.h (rtld_global_ro): Add _dl_execfn.
616 Don't define _dl_origin_path if __ASSUME_AT_EXECFN is defined.
617 * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): Use
618 _dl_execfn if available and avoid compatibility code if
619 __ASSUME_AT_EXECFN is defined.
620
579cdf5a
UD
621 * sysdeps/unix/sysv/linux/dl-sysdep.h: Don't declare
622 _dl_discover_osversion only for older kernels.
623
7385c04c
RM
6242008-07-22 Roland McGrath <roland@frob.com>
625
626 * hurd/fd-read.c (_hurd_fd_read): Fix last change.
627
8a26088d
RM
6282008-07-21 Roland McGrath <roland@frob.com>
629
630 * hurd/fd-read.c (_hurd_fd_read): Return EGRATUITOUS if the server
631 returned too much data out of line.
632
9f558b80
UD
6332008-07-20 Ulrich Drepper <drepper@redhat.com>
634
2e79213a
UD
635 * locale/setlocale.c (setname): Remove inline to avoid compiler
636 warning.
637
579cdf5a 638 [BZ #6712]
9f558b80
UD
639 * locale/setlocale.c (setlocale): Take the setlocale lock earlier.
640
9667f97d
UD
6412008-07-15 Ulrich Drepper <drepper@redhat.com>
642
2486b496
UD
643 * stdio-common/vfprintf.c (_IO_helper_overflow): In case _IO_sputn
644 doesn't manage to write anything, fail.
645
9667f97d
UD
646 * malloc/hooks.c (__malloc_check_init): Remove printf.
647
6d4c073b
RM
6482008-07-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
649
650 * sysdeps/mach/hurd/bits/fcntl.h: Include <sys/types.h>.
651
b7432416
UD
6522008-07-12 Ulrich Drepper <drepper@redhat.com>
653
654 * nscd/connections.c (main_loop_poll): Fix handling of read errors
655 from inotify.
656 (main_loop_epoll): Likewise.
657
44abc397
UD
6582008-07-09 Ulrich Drepper <drepper@redhat.com>
659
835113c6
UD
660 * resolv/res_send.c: Remove unnecessary res_pquery prototype.
661
fdc769f6
UD
662 * resolv/res_query.c (__libc_res_nquery): Issue debug message only
663 if DEBUG is defined.
664
44abc397
UD
665 * resolv/res_query.c (__libc_res_nquery): Align buffer for T_AAAA
666 query. Adjust buffer size computation for padding.
667
38dc8fad
UD
6682008-07-08 Ulrich Drepper <drepper@redhat.com>
669
75684bd7
UD
670 * stdio-common/Makefile: Add rules to build and run tst-setvbuf1.
671 * stdio-common/tst-setvbuf1.c: New file.
672 * stdio-common/tst-setvbuf1.expect: New file.
673
38dc8fad
UD
674 [BZ #6719]
675 * libio/iosetvbuf.c (_IO_setvbuf): Correctly clear buffering flags
676 when selecting fully-buffered stream.
677 Patch by Wang Xin <wxinee@gmail.com>.
678
107f4ac2
RM
6792008-07-06 Samuel Thibault <samuel.thibault@ens-lyon.org>
680
681 * sysdeps/mach/hurd/open.c: Include <stdio.h>.
682 (__open_2): New function.
683 (__open64_2): New alias to __open_2.
684 * sysdeps/mach/hurd/openat.c: Include <stdio.h>.
685 (__openat_2): New function.
686 (__openat64_2): New alias to __openat_2.
687
45ec3e79
UD
6882008-07-06 Ulrich Drepper <drepper@redhat.com>
689
690 [BZ #6723]
691 * time/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
692
0a583b54
RM
6932008-07-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
694
695 * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Define MSG_NOSIGNAL.
696 * hurd/hurd/fd.h (__hurd_sockfail): Add extern inline function.
697 * sysdeps/mach/hurd/recv.c (__recv): Use __hurd_sockfail instead of
698 __hurd_dfail.
699 * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Likewise.
700 * sysdeps/mach/hurd/recvmsg.c (__recvmsg): Likewise.
701 * sysdeps/mach/hurd/send.c (__send): Likewise.
702 * sysdeps/mach/hurd/sendto.c (__sendfrom): Likewise.
703 * sysdeps/mach/hurd/sendmsg.c (__sendmsg): Likewise.
704
d5a0160b
RM
7052008-03-04 Samuel Thibault <samuel.thibault@ens-lyon.org>
706
707 * sysdeps/mach/hurd/recv.c (__recv): Initialize NPORTS.
708 * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Likewise.
709 * sysdeps/mach/hurd/recvmsg.c (__recvmsg): Likewise.
710 * hurd/fd-read.c (_hurd_fd_read): Initialize NREAD.
711 * hurd/get-host.c (_hurd_get_host_config): Likewise.
712 * sysdeps/mach/hurd/dl-sysdep.c (__libc_read): Likewise.
713
80922a99
UD
7142008-06-27 Ulrich Drepper <drepper@redhat.com>
715
716 [BZ #6657]
717 * time/strptime_l.c: Don't clear s.era_cnt after successful match
718 of %EY.
719 Patch by Petr Baudis.
720
34ca2ff7
UD
7212008-06-26 Ulrich Drepper <drepper@redhat.com>
722
5ee0f5e2 723 * resolv/res_debug.c (__p_type_syms): Add ns_t_dname entry.
34ca2ff7
UD
724 Patch by Peter Jones <pjones@redhat.com>.
725
104426b6
UD
7262008-06-25 Ulrich Drepper <drepper@redhat.com>
727
728 [BZ #6654]
729 * stdlib/canonicalize.c (__realpath): readlink can write too much
730 into the buffer on platforms without PATH_MAX.
731
7166d23f
UD
7322008-06-17 Carlos O'Donell <carlos@codesourcery.com>
733
4cb8e687 734 [BZ #6653]
7166d23f
UD
735 * posix/tst-regex.c (main): Rename to...
736 (do_test): ... this. Remove cmdline option processing.
737 (TIMEOUT): Define.
738 (TEST_FUNCTION): Define.
739 (CMDLINE_OPTIONS): Define.
740
974069d8
UD
7412008-06-25 Ulrich Drepper <drepper@redhat.com>
742
743 [BZ #5210]
744 * configure.in: Add -Werror to -fstack-protector test to catch
745 unsupported architectures.
746 Patch by Gilles Esponasse <g.esp@free.fr>.
747
cefa2dd3
UD
7482008-06-17 Joseph Myers <joseph@codesourcery.com>
749
750 * stdlib/tst-setcontext.c: Set back_in_main before exit if
751 getcontext returns ENOSYS.
752
c00d1128
UD
7532008-06-18 Ulrich Drepper <drepper@redhat.com>
754
755 * nscd/connections.c (main_loop_poll): Fix test for read error.
756 (main_loop_epoll): Likewise.
757
a0edbb48
UD
7582008-06-13 Ulrich Drepper <drepper@redhat.com>
759
d0a1ae94
UD
760 * sysdeps/posix/getaddrinfo.c: Move _res_hconf_init call to a
761 better place so it is not called when nscd is used.
762
a0edbb48
UD
763 * nscd/connections.c: Also recognize and handle changes to the
764 resolver configuration file.
765
46f70b3c
UD
7662008-06-12 Ulrich Drepper <drepper@redhat.com>
767
5bcc6c0f
UD
768 * time/strftime.c: Pass reference to tzset_called around to handle
769 recursive calls.
770
771 [BZ #6612]
772 * time/strftime.c (__strftime_internal): Call tzset() only
773 when printing timezone-dependent values.
774 Based on a patch by Petr Baudis <pasky@suse.cz>.
775
f854efd7
UD
776 * resolv/nss_dns/dns-host.c (gaih_getanswer): Don't
777 unconditionally use second gaih_getanswer_slice result.
778
46f70b3c
UD
779 * sysdeps/posix/getaddrinfo.c (gai_inet): Remove unnecessary test.
780 (getaddrinfo): RES must always be non-NULL.
781
9ea8bfec
UD
7822008-06-12 Jakub Jelinek <jakub@redhat.com>
783
784 * sysdeps/powerpc/powerpc64/fpu/s_llround.S (__llround): Avoid using
785 cr[34] registers.
786 * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S (__llroundf): Likewise.
787 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S (__llround):
788 Likewise.
789 * sysdeps/powerpc/powerpc32/fpu/s_lround.S (__lround): Avoid using cr3
790 register.
791
5a337776
UD
7922008-06-12 Ulrich Drepper <drepper@redhat.com>
793
5228ba2f
UD
794 * nscd/nscd.h (struct database_dyn): Add inotify_descr and clear_cache
795 fields.
796 * nscd/connections.c (inotify_fd): New variable.
797 (nscd_init): Try to open an inotify descriptor.
798 If successful, watch files for databases using inotify instead of
799 having prune threads stat the files.
800 (nscd_run_prune): Recognize clear_cache flag being set and call
801 prune_cache appropriately.
802 (main_loop_poll): Add inotify descriptor to wait set and handle the
803 reported changes.
804 (main_loop_epoll): Likewise.
805 * nscd/cache.c (prune_cache): Don't stat files for databases if
806 inotify is used.
807 * sysdeps/unix/sysv/linux/Makefile [subdir=nscd]
808 (CFLAGS-connections.c): Add -DHAVE_INOTIFY.
809
5a337776
UD
810 * nscd/grpcache.c (cache_addgr): Correctly compute size of
811 fixed-size portion of the record.
812 * nscd/servicescache.c (cache_addserv): Likewise.
813 * nscd/pwdcache.c (cache_addpw): Likewise.
814 * nscd/initgrcache.c (addinitgroupsX): Likewise.
815
9ad58cc3
UD
8162008-06-11 Ulrich Drepper <drepper@redhat.com>
817
818 * nscd/mem.c (gc): Initialize obstack earlier so that if we jump
819 out we don't use uninitialized memory.
820
821 * nscd/hstcache.c (cache_addhst): Send correct number of bytes to
822 the client.
823
c1283552
UD
8242008-06-10 Ulrich Drepper <drepper@redhat.com>
825
826 * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): Also log and
827 ignore T_DNAME messages.
828 * resolv/arpa/nameser_compat.h (T_DNAME): Define.
829
eef8a803
JJ
8302008-06-05 Jakub Jelinek <jakub@redhat.com>
831
832 * misc/regexp.h (compile): Use __REPB_PREFIX macro.
833 Avoid segfault if first GETC returns eof/'\0'/'\n'.
834
ee78670e
JJ
8352008-06-03 Jakub Jelinek <jakub@redhat.com>
836
837 * nscd/nscd_getserv_r.c (__nscd_getservbyport_r): Pass cp
838 instead of portstr to nscd_getserv_r. Patch by
839 Roman Kagan <rkagan@mail.ru>.
840
62605cbf
UD
8412008-05-26 Jim Meyering <meyering@redhat.com>
842
10966640 843 Remove more useless "if" tests before "free".
62605cbf
UD
844 * include/inline-hashtab.h (htab_delete): Likewise.
845 * libio/freopen.c (freopen): Likewise.
846 * libio/freopen64.c (freopen64): Likewise.
847 * locale/programs/ld-collate.c (collate_read): Likewise.
848 * misc/fstab.c (libc_freeres_fn): Likewise.
849 * posix/glob.c (globfree): Likewise.
850
f63abf58
UD
8512008-05-24 Ulrich Drepper <drepper@redhat.com>
852
853 * string/Makefile (strop-tests): Add memmem.
854 * string/test-memmem.c: New file.
855 * string/test-string.h (BUF1PAGES): Define to 1 if undefined.
856 (test_init): Size buf1 according to BUF1PAGES.
857
ad8a5511
JJ
8582008-05-24 Jakub Jelinek <jakub@redhat.com>
859
860 * libio/stdio.h (vscanf): Fix -std=c99 redirect.
861 * stdio-common/Makefile (tests): Add scanf16 and scanf17.
862 (CFLAGS-scanf17.c): New.
863 * stdio-common/scanf14.c (main): Add fscanf and scanf tests.
864 * stdio-common/scanf15.c (main): Likewise.
f63abf58
UD
865 * stdio-common/scanf16.c: New file.
866 * stdio-common/scanf17.c: New file.
ad8a5511 867
e2003883
UD
8682008-05-24 Ulrich Drepper <drepper@redhat.com>
869
870 * resolv/res_send.c (send_dg): If we already have one of two
b5ba2c79 871 answers and the server reports SERVFAIL, NOTIMP, or REFUSED, then
e2003883
UD
872 use the one answer insted of failing.
873
acbb9873
UD
8742008-02-20 Ryan S. Arnold <rsa@us.ibm.com>
875
876 * math/libm-test.inc (exp_test): Exclude expl(1000.0L) from
877 being executed on PowerPC as the expected result exceeds IBM
878 long double 128 __LDBL_MAX__.
879
e85f1d6a
RM
8802008-05-21 Roland McGrath <roland@redhat.com>
881
882 * shlib-versions (sparc.*-.*-.*, sparc64.*-.*-.*): Add ABI lines.
883
884 * Makefile (check-data): Use $(abi-name) before other guesses.
885 Look in $(add-ons) dirs before scripts/data/.
886 * elf/Makefile (check-data): Likewise.
887
888 * scripts/soversions.awk: Grok ABI line.
889 * Makeconfig ($(common-objpfx)soversions.mk): Likewise.
890 Emit definition for abi-name variable.
891
d8e763c6
UD
8922008-05-21 Ulrich Drepper <drepper@redhat.com>
893
e92799fc 894 * string/endian.h: Define new fixed-size hto* and *toh macros only
e85f1d6a 895 if [__USE_BSD].
e92799fc 896
d8e763c6
UD
897 * iconvdata/Depend: Add localedata.
898
009ef333
RM
8992008-05-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
900
901 * bits/termios.h (ONLCR): Define under [__USE_XOPEN] too.
902
86746abb
JJ
9032008-05-08 David S. Miller <davem@davemloft.net>
904
905 * sysdeps/unix/sysv/linux/sparc/sparc32/setcontext.S: Use
906 HIDDEN_JUMPTARGET.
907 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
908 (__SYSCALL_CLOBBERS): Remove %g* registers.
909 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
910 (__SYSCALL_CLOBBERS): Likewise.
911 * scripts/data/localplt-sparc-linux-gnu.data: New file.
f63abf58 912 * scripts/data/localplt-sparc64-linux-gnu.data: New file.
86746abb 913
5e6f34c2
JJ
9142008-05-21 Jakub Jelinek <jakub@redhat.com>
915
916 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
917 (CALL_ERRNO_LOCATION): Define.
918 (__SYSCALL_STRING, __CLONE_SYSCALL_STRING): Use it.
919 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
920 (CALL_ERRNO_LOCATION): Define.
921 (__SYSCALL_STRING, __CLONE_SYSCALL_STRING): Use it.
922 * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S (__brk): Use
923 HIDDEN_JUMPTARGET for __errno_location call in libc.so.
924
4beb4532
UD
9252008-05-20 Ulrich Drepper <drepper@redhat.com>
926
927 * include/inline-hashtab.h (higher_prime_number): Fix type of mid
928 variable.
929
ed8f38ba
JJ
9302008-05-20 Jakub Jelinek <jakub@redhat.com>
931
932 * sysdeps/unix/sysv/linux/sparc/sparc32/sigcontextinfo.h
933 (FIRST_FRAME_POINTER): Define.
934
9352008-05-09 David S. Miller <davem@davemloft.net>
936
937 * sysdeps/sparc/sparc64/backtrace.c: New file.
938
c1b8190a
JJ
9392008-05-14 David S. Miller <davem@davemloft.net>
940
941 * sysdeps/sparc/machine-gmon.h: New file.
942 * sysdeps/sparc/sparc-mcount.S: Likewise.
943 * sysdeps/sparc/Makefile: Add sparc-mcount target to
944 sysdep_routines in gmon directory.
945
84aacd93
JJ
9462008-05-19 Jakub Jelinek <jakub@redhat.com>
947
948 * elf/soinit.c (__EH_FRAME_BEGIN__): Remove.
949
5908f779
UD
9502008-05-19 Ulrich Drepper <drepper@redhat.com>
951
952 * resolv/res_query.c (__libc_res_nquery): In case one of two
953 answer was too short don't try to read that answer's header.
954
955 * resolv/res_send.c (send_dg): In case of timeout and there are
956 two queries and one has been answered, return value indicating
957 success.
958
528741cb
UD
9592008-05-18 Ulrich Drepper <drepper@redhat.com>
960
961 * nscd/cache.c (cache_add): Take additional parameter specifying
962 whether this is in response of a cache refill. Check alignment
963 of package data. Revamp waking of pruning thread.
964 (prune_cache): Small optimization.
965 * nscd/nscd.h: Adjust cache_add prototypes.
966 * nscd/aicache.c: Adjust cache_add calls.
967 * nscd/grpcache.c: Likewise.
968 * nscd/hstcache.c: Likewise.
969 * nscd/initgrcache.c: Likewise.
970 * nscd/pwdcache.c: Likewise.
971 * nscd/servicescache.c: Likewise.
972 * nscd/connections.c (restart): Really disable cache use before
973 exec attempt. If it fails, reenable cache.
974 (nscd_run_prune): Initialize wakeup_time. After wakeup, set wakeup
975 time to max to be able to notice concurrent cache additions. Unlock
976 prune_lock while performing gc. Afterwards compute wakeup time with
977 current wakeup_time value in mind.
978
343996c4
UD
9792008-05-17 Ulrich Drepper <drepper@redhat.com>
980
5811d72b
UD
981 * nscd/mem.c (gc): Avoid stack overflow when allocating move list.
982
fa526148
UD
983 * nscd/mem.c (gc): Correctly determine highest used array element
984 in mark.
985
77d40f10
UD
986 * nscd/mem.c (markrange): Add assert to check entries are all
987 aligned. Small cleanup in bitmap use.
988
8884028c
UD
989 * nscd/nscd.h (mem_in_flight): Replace blockaddr field with
990 blockoff of type nscd_ssize_t.
991 * nscd/mem.c (gc): Simplify markrange call for on-flight blocks.
992 (mempoll_alloc): Record block offset and not address.
993
b2159575
UD
994 * nscd/mem.c (gc): Fix test for stack overuse.
995
5c9629d2
UD
996 * nscd/aicache.c (addhstaiX): Fix a few small problems, cleanups,
997 more asserts.
998
66d90496
UD
999 * sysdeps/posix/getaddrinfo.c (gaih_inet): If nscd reports no
1000 entry is available, believe it.
1001
343996c4
UD
1002 * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): If there are
1003 no answers return NSS_STATUS_NOTFOUND.
1004 (gaih_getanswer): Don't call gaih_getanswer_slice if the answer
1005 buffer does not have any content.
1006
91c8a74b
UD
10072008-05-16 Ulrich Drepper <drepper@redhat.com>
1008
74e13385
UD
1009 * string/strcasestr.c (CMP_FUNC): Use __strncasecmp, not strncasecmp.
1010
91c8a74b
UD
1011 * sysdeps/posix/getaddrinfo.c (gaih_inet): After gethostbyname4_r
1012 lookup, don't assign canon unconditionally.
1013
0caca71a
UD
10142008-05-14 Ulrich Drepper <drepper@redhat.com>
1015
1016 * string/Makefile (distribute): Add str-two-way.h.
1017
10182008-03-29 Eric Blake <ebb9@byu.net>
1019
1020 Rewrite string searches to O(n) rather than O(n^2).
1021 * string/str-two-way.h: New file. For linear fixed-allocation
1022 string searching.
1023 * string/memmem.c: New implementation.
1024 * string/strstr.c: New implementation.
1025 * string/strcasestr.c: New implementation.
1026
b194db79
UD
10272008-04-11 Paolo Bonzini <bonzini@gnu.org>
1028
1029 * posix/regcomp.c (optimize_utf8): Add a note on why we test
1030 opr.ctx_type.
1031 (calc_first): Initialize constraint field.
1032 (duplicate_node_closure): Use it instead of special casing ANCHORS.
1033 Use search_duplicated_node to avoid loops. Fix grammar.
1034 (duplicate_node): Merge constraint field for all node types.
1035 (calc_eclosure_iter): Look at constraint field for all node types.
1036 * posix/regex_internal.c (create_cd_newstate): Don't look at
1037 create_cd_newstate.
1038
c8d49f05
UD
10392008-05-14 Ulrich Drepper <drepper@redhat.com>
1040
215a8745
UD
1041 [BZ #6428]
1042 * configure.in: Don't use $CFLAGS when assembling, use $ASFLAGS.
1043
2f9a1be8
UD
1044 [BZ #6442]
1045 * string/endian.h: Add macros for fixed-size endian conversion.
1046 * bits/byteswap.h: Allow inclusion from <endian.h>.
1047 * sysdeps/i386/bits/byteswap.h: Likewise.
1048 * sysdeps/ia64/bits/byteswap.h: Likewise.
1049 * sysdeps/s390/bits/byteswap.h: Likewise.
1050 * sysdeps/x86_64/bits/byteswap.h: Likewise.
1051 * string/Makefile (tests): Add tst-endian.
1052 * string/tst-endian.c: New file.
1053
c8d49f05
UD
1054 * iconvdata/run-iconv-test.sh: Use = instead of == in test.
1055 Patch by Reuben Thomas.
1056
a754f018
UD
10572008-05-14 Joseph Myers <joseph@codesourcery.com>
1058
1059 * iconvdata/Makefile (bug-iconv6-ENV, tst-iconv7-ENV): Define.
1060
372bfcac
UD
10612008-05-14 Ulrich Drepper <drepper@redhat.com>
1062
a754f018
UD
1063 * iconvdata/bug-iconv6.c (do_test): Use de_DE.UTF-8 locale.
1064
5deca9bb
UD
1065 [BZ #6461]
1066 * iconv/gconv_simple.c (BODY for __gconv_transform_ascii_internal):
1067 Add missing braces.
1068 (BODY for __gconv_transform_internal_ascii): Likewise.
1069
af77c9b7 1070 [BZ #6472]
5fab5544
UD
1071 * sysdeps/posix/getaddrinfo.c (get_scope): Loopback addresses have
1072 to be treated like link-local addresses.
5846c4e2
UD
1073 (match_prefix): Don't treat IPv4 loopback address special when
1074 converting to v4 mapped addressed.
5fab5544 1075
0caca71a 1076 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Call _res_hconf_init
1f039824 1077 if necessary.
b194db79
UD
1078 * posix/tst-rfc3484.c: Add dummy definition of _res_hconf_init.
1079 * posix/tst-rfc3484-2.c: Likewise.
1080 * posix/tst-rfc3484-3.c: Likewise.
1f039824 1081
18a74157
UD
1082 * sysdeps/posix/getaddrinfo.c: Implement handling of DCCP, UDPlite,
1083 and SCTP.
372bfcac
UD
1084
1085 * nss/getent.c (ahosts_keys_int): Handle all known socket types.
1086
1087 * inet/netinet/in.h (IPPIPPROTO_DCCP, IPPROTO_UDPLITE): Define.
1088
1089 * sysdeps/unix/sysv/linux/bits/socket.h (SOCK_DCCP): Define.
1090
f05ac8f5
UD
10912008-05-13 Ulrich Drepper <drepper@redhat.com>
1092
1093 * po/lt.po: New file. From Lituanian translation team.
1094
c9ff0187
UD
10952008-01-30 Alexandre Oliva <aoliva@redhat.com>
1096
1097 Introduce TLS descriptors for i386 and x86_64.
1098 * include/inline-hashtab.h: New file, copied from 2005's
1099 libiberty, with fix for memory leak imported afterwards by
1100 Glauber de Oliveira Costa.
1101 * elf/tlsdeschtab.h: New file.
1102 * elf/dl-reloc.c (_dl_try_allocate_static_tls): Extract from...
1103 (_dl_allocate_static_tls): ... here. Rearrange failure path.
1104 (CHECK_STATIC_TLS): Move to...
1105 * elf/dynamic-link.h: ... this file.
1106 (TRY_STATIC_TLS): New macro.
1107 * elf/dl-conflict.c (CHECK_STATIC_TLS, TRY_STATIC_TLS): Override.
1108 * elf/elf.h (R_386_TLS_GOTDESC, R_386_TLS_DESC_CALL,
1109 R_386_TLS_DESC): Define.
1110 (R_X86_64_PC64, R_X86_GOTOFF64, R_X86_64_GOTPC32): Merge from
1111 binutils.
1112 (R_X86_64_GOTPC32_TLSDESC, R_X86_64_TLSDESC_CALL,
1113 R_X86_64_TLSDESC): Define.
1114 (R_386_NUM, R_X86_64_NUM): Adjust.
1115 * sysdeps/i386/Makefile (sysdep-dl-routines, sysdep_routines,
f05ac8f5 1116 sysdep-rtld-routines): Add tlsdesc and dl-tlsdesc for elf subdir.
c9ff0187
UD
1117 (gen-as-const-headers): Add tlsdesc.sym to csu subdir.
1118 * sysdeps/i386/dl-lookupcfg.h: New file. Introduce _dl_unmap to
1119 release tlsdesc_table.
1120 * sysdeps/i386/dl-machine.h: Include dl-tlsdesc.h.
1121 (elf_machine_type_class): Mark R_386_TLS_DESC as PLT class.
1122 (elf_machine_rel): Handle R_386_TLS_DESC.
1123 (elf_machine_rela): Likewise.
1124 (elf_machine_lazy_rel): Likewise.
1125 (elf_machine_lazy_rela): Likewise.
1126 * sysdeps/i386/dl-tls.h (struct dl_tls_index): Name it.
1127 * sysdeps/i386/dl-tlsdesc.S: New file.
1128 * sysdeps/i386/dl-tlsdesc.h: New file.
1129 * sysdeps/i386/tlsdesc.c: New file.
1130 * sysdeps/i386/tlsdesc.sym: New file.
1131 * sysdeps/i386/bits/linkmap.h (struct link_map_machine): Add
1132 tlsdesc_table.
1133 * sysdeps/x86_64/Makefile (sysdep-dl-routines, sysdep_routines,
f05ac8f5 1134 sysdep-rtld-routines): Add tlsdesc and dl-tlsdesc for elf subdir.
c9ff0187
UD
1135 (gen-as-const-headers): Add tlsdesc.sym to csu subdir.
1136 * sysdeps/x86_64/dl-lookupcfg.h: New file. Introduce _dl_unmap to
1137 release tlsdesc_table.
1138 * sysdeps/x86_64/dl-machine.h: Include dl-tlsdesc.h.
1139 (elf_machine_runtime_setup): Set up lazy TLSDESC GOT entry.
1140 (elf_machine_type_class): Mark R_X86_64_TLSDESC as PLT class.
1141 (elf_machine_rel): Handle R_X86_64_TLSDESC.
1142 (elf_machine_rela): Likewise.
1143 (elf_machine_lazy_rel): Likewise.
1144 * sysdeps/x86_64/dl-tls.h (struct dl_tls_index): Name it.
1145 (__tls_get_addr): Do not declare for non-shared compiles.
1146 * sysdeps/x86_64/dl-tlsdesc.S: New file.
1147 * sysdeps/x86_64/dl-tlsdesc.h: New file.
1148 * sysdeps/x86_64/tlsdesc.c: New file.
1149 * sysdeps/x86_64/tlsdesc.sym: New file.
1150 * sysdeps/x86_64/bits/linkmap.h (struct link_map_machine): Add
1151 tlsdesc_table for both 32- and 64-bit structs.
1152
a3636e8b
UD
11532008-05-11 Ulrich Drepper <drepper@redhat.com>
1154
1155 * elf/dl-tls.c (__tls_get_addr): Optimize by moving slow path in
1156 its own function. This reduces the frame setup costs and more.
1157
a7eb802f
UD
11582008-02-11 Joseph Myers <joseph@codesourcery.com>
1159
1160 [BZ #3406]
1161 * sysdeps/ieee754/flt-32/w_expf.c (o_threshold): Correct value.
1162 * math/libm-test.inc (exp_test): Test 88.72269439697265625.
1163
3490f01d
UD
11642008-05-11 Ulrich Drepper <drepper@redhat.com>
1165
3d7eeebe
UD
1166 * io/openat.c (__openat_2): Also pass fd to __openat.
1167 * io/openat64.c (__openat64_2): Also pass fd to __openat64.
1168 Patch by Kristian Van Der Vliet <vanders@liqwyd.com>.
1169
3490f01d
UD
1170 * string/tester.c (test_memcmp): Add a few more tests.
1171 Patch by Mats Erik Andersson <ynglingatal@comhem.se>.
1172
7e71e55f
UD
11732008-05-10 Ulrich Drepper <drepper@redhat.com>
1174
1175 * nscd/cache.c (cache_add): Before returning with failure and this
1176 is the first use of the record, mark it as unusable.
1177 * nscd/aicache.c: Don't touch the dataset after cache_add returns
1178 reporting a failure.
1179 * nscd/grpcache.c: Likewise
1180 * nscd/hstcache.c: Likewise.
1181 * nscd/initgrcache.c: Likewise.
1182 * nscd/pwdcache.c: Likewise.
343996c4 1183 * nscd/servicescache.c: Likewise.
7e71e55f 1184
7396d0a9
RM
11852008-05-10 Roland McGrath <roland@redhat.com>
1186
1187 [BZ #6505]
1188 * sysdeps/unix/sysv/linux/sys/user.h: Replace with #error stub.
1189
c5ee217f
UD
11902008-05-08 David S. Miller <davem@davemloft.net>
1191
b29899ae
UD
1192 * misc/truncate64.c (truncate64): Use __truncate not truncate.
1193
c5ee217f
UD
1194 * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee751_j0l): Use __finitel.
1195 (__ieee754_y0l): Likewise.
1196 * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Likewise.
1197 (__ieee754_y1l): Likewise.
1198 * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Use __ldexpl.
1199 * sysdeps/ieee754/ldbl-128/s_log1pl.c: Kill bogus prototypes for
1200 frexpl and ldexpl. math_private.h provides them and the latter
1201 is not even used.
1202 (__log1pl): Use __frexpl.
1203
1eb946b9
UD
12042008-05-10 Ulrich Drepper <drepper@redhat.com>
1205
1206 * include/resolv.h: Adjust __libc_res_nquery and __libc_res_nsend
1207 prototypes.
1208 * include/arpa/nameser_compat.h: Define T_UNSPEC.
1209 * nis/Versions (libnss_nis): Export _nss_nis_gethostbyname4_r.
1210 (libnss_nisplus): Export _nss_nisplus_gethostbyname4_r.
1211 * nis/nss_nis/nis-hosts.c (LINE_PARSER): Change to also handle
1212 af==AF_UNSPEC.
1213 (_nss_nis_gethostbyname4_r): New function.
1214 * nis/nss_nisplus/nisplus-hosts.c (_nss_nisplus_parse_hostent):
1215 Change to also handle af==AF_UNSPEC.
1216 (get_tablename): New function. Use it to avoid duplication.
1217 (_nss_nisplus_gethostbyname4_r): New function.
1218 * nscd/aicache.c (addhstaiX): Use gethostbyname4_r function is
1219 available.
1220 * nss/Versions (libnss_files): Export _nss_files_gethostbyname4_r.
1221 * nss/nss.h: Define struct gaih_addrtuple.
1222 * nss/nss_files/files-hosts.c (LINE_PARSER): Change to also handle
1223 af==AF_UNSPEC.
1224 (_nss_files_gethostbyname4_r): New function.
1225 * resolv/Versions (libnss_dns): Export _nss_dns_gethostbyname4_r.
1226 * resolv/gethnmaddr.c: Adjust __libc_res_nsearch and __libc_res_nquery
1227 calls.
1228 * resolv/res_query.c (__libc_res_nquery): Take two additional
1229 parameters for second answer buffer. Handle type=T_UNSPEC to mean
1230 look up IPv4 and IPv6.
1231 Change all callers.
1232 * resolv/res_send.c (__libc_res_nsend): Take five aditional parameters
1233 for an additional query and answer buffer. Pass to send_vc and
1234 send_dg.
1235 (send_vc): Send possibly two requests and receive two answers.
1236 (send_dg): Likewise.
1237 * resolv/nss_dns/dns-host.c: Adjust calls to __libc_res_nsearch and
1238 __libc_res_nquery.
1239 (_nss_dns_gethostbyname4_r): New function.
1240 (gaih_getanswer_slice): Likewise.
1241 (gaih_getanswer): Likewise.
1242 * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Adjust
1243 __libc_res_nquery call.
1244 * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r): Likewise.
1245 (_nss_dns_getnetbyname_r): Adjust __libc_res_nsearch call.
1246 * sysdeps/posix/getaddrinfo.c: Use gethostbyname4_r function is
1247 available.
1248
b7fb703a
JJ
12492008-05-05 David S. Miller <davem@davemloft.net>
1250
1251 * sysdeps/sparc/sparc32/Makefile: Use -mcpu=v7 for initfini.s build.
1252 * sysdeps/sparc/sparc64/Makefile: Use -mcpu=v9 for initfini.s build.
1253
2256e43d
RM
12542007-09-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
1255
1256 Fix termios bit macros.
1257 Move *DLY definitions where they belong, in termios.h.
1258 Add *[0-3] definitions.
1259 Fixes confusion between VT and FF.
8bb52dbf
RM
1260 * sysdeps/mach/hurd/bits/ioctls.h (NL0, NL1, TAB0, TAB1, TAB2, CR0,
1261 CR1, CR2, CR3, FF0, FF1, BS0, BS1): Undefine these at start if they
1262 are already defined to avoid collision with termios.h.
2256e43d
RM
1263 (NLDLY, TABDLY, TAB3, CRDLY, VTDLY, BSDLY): Remove macros.
1264 * bits/termios.h [__USE_MISC || __USE_XOPEN] (NL0, NL1, TAB0,
1265 TAB1, TAB2, CR0, CR1, CR2, CR3, FF0, FF1, BS0, BS1): Likewise.
1266 [__USE_BSD || __USE_XOPEN] (OCRNL, ONOCR, ONLRET): New macros.
1267 [__USE_MISC || __USE_XOPEN] (NLDLY, NL0, NL1, TABDLY, TAB0, TAB1, TAB2,
1268 TAB3, CRDLY, CR0, CR1, CR2, CR3, FFDLY, FF0, FF1, BSDLY, BS0, BS1,
1269 VTDLY, VT0, VT1): New macros.
1270 [__USE_GNU] (OLCUC): Change value of macro.
1271 [__USE_XOPEN] (OFILL): New macro.
1272 [__USE_BSD] (CRTSCTS): Change value.
1273 (CRTS_IFLOW, CCTS_OFLOW): Change into compatibility macros.
1274 [__USE_BSD] (CDTRCTS, CHWFLOW): New macros.
1275 (B7200, B14400, B28800, B76800): New macros.
1276
4ce349e5
JJ
12772008-05-01 David S. Miller <davem@davemloft.net>
1278
a86a7a39
JJ
1279 * sysdeps/unix/sysv/linux/sparc/sparc32/ucontext_i.sym: New file.
1280 * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile [$(subdir) = stdlib]:
1281 (gen-as-const-headers): Add it.
1282 * sysdeps/unix/sysv/linux/sparc/sparc32/getcontext.S: New file.
1283 * sysdeps/unix/sysv/linux/sparc/sparc32/makecontext.c: Likewise.
1284 * sysdeps/unix/sysv/linux/sparc/sparc32/setcontext.S: Likewise.
1285 * sysdeps/unix/sysv/linux/sparc/sparc32/swapcontext.S: Likewise.
2256e43d 1286
4ce349e5
JJ
1287 * sysdeps/unix/sysv/linux/sparc/sparc32/syscall.S: Add support for
1288 six system call parameters.
1289 * sysdeps/unix/sysv/linux/sparc/sparc64/syscall.S: Likewise.
1290
89a8963d
UD
12912008-04-30 Ulrich Drepper <drepper@redhat.com>
1292
1293 * sysdeps/unix/sysv/linux/bits/resource.h: Define RUSAGE_THREAD and
1294 RUSAGE_LWP.
1295 * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
1296 * sysdeps/unix/sysv/linux/alpha/bits/resource.h: Likewise.
1297
b5ec5fce
JJ
12982008-04-30 Jakub Jelinek <jakub@redhat.com>
1299
1300 * stdlib/tst-setcontext.c: Include unistd.h.
1301
d4e92d9e
JJ
13022008-04-25 David S. Miller <davem@davemloft.net>
1303
1304 * sysdeps/unix/sysv/linux/sparc/sparc64/semctl.c (semctl):
1305 Pass "union semun" properly in to sys_ipc, it must be passed
1306 by value, not by reference.
1307
7eb5e6c9
UD
13082008-04-22 Jakub Jelinek <jakub@redhat.com>
1309
1310 * nscd/Makefile (nscd-cflags): Set back to -fpie.
1311 * nscd/nscd.h (mem_in_flight): Add attribute_tls_model_ie.
1312 * nscd/connections.c (mem_in_flight): Likewise.
1313
1314 * nscd/nscd.h (dbs): Make hidden.
1315
1316 * sysdeps/unix/sysv/linux/times.c (__times): Fix check for EFAULT.
1317 Avoid returning -1, return 0 instead.
1318
0073dd2d
UD
13192008-04-19 Ulrich Drepper <drepper@redhat.com>
1320
1321 * resolv/res_mkquery.c (__res_nopt): Use NS_PUT16 instead of ns_put16.
1322
c52137d3
UD
13232008-04-15 Ulrich Drepper <drepper@redhat.com>
1324
1325 [BZ #5209]
1326 * sysdeps/unix/sysv/linux/times.c: New file.
1327
1328 [BZ #5381]
1329 * nscd/nscd.h: Define enum in_flight, mem_in_flight, and
1330 mem_in_flight_list variables. Add new parameter to mempool_alloc
1331 prototype.
1332 * nscd/mem.c (mempool_alloc): Take additional parameter. Initialize
1333 appropriate mem_in_flight element.
1334 (gc): Take allocations which have not yet been committed to the
1335 database into account.
1336 * nscd/cache.c (cache_add): Add new parameter to mempool_alloc call.
1337 Reset mem_in_flight before returning.
1338 * nscd/connections.c (nscd_run_worker): Initialize mem_in_flight and
1339 cue it up in mem_in_flight_list.
1340 * nscd/aicache.c: Adjust mempool_alloc call.
1341 * nscd/grpcache.c: Likewise.
1342 * nscd/hstcache.c: Likewise.
1343 * nscd/initgrcache.c: Likewise.
1344 * nscd/pwdcache.c: Likewise.
1345 * nscd/servicescache.c: Likewise.
1346 * nscd/Makefile (nscd-flags): Until ld is fixed, use -fpic instead
1347 of -fpie.
1348
1349 * nscd/connections.c (handle_request): Provide better error message
1350 in case SELinux forbids the service.
1351
1352 * version.h (VERSION): Bump to 2.8.90.
1353
39546e34
JJ
13542008-04-17 Jakub Jelinek <jakub@redhat.com>
1355
1356 * sysdeps/unix/sysv/linux/dl-osinfo.h: Include fcntl.h.
1357
cf3a8c7f
UD
13582008-04-11 Ulrich Drepper <drepper@redhat.com>
1359
9e113ecd
UD
1360 * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h (__signbitl):
1361 Also use for 32-bit.
3b6d574e
UD
1362 * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c (__nearbyintl): Use
1363 __nextafter instead of nextafter to avoid local PLT.
c3a0ead4
UD
1364 * sysdeps/powerpc/fpu/e_sqrt.c: Avoid call to fetestexcept.
1365 * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
1366
3781ec29
UD
1367 * scripts/data/localplt-powerpc64-linux-gnu.data: New file.
1368
246ec411
UD
1369 * sysdeps/powerpc/fpu/fenv_libc.h: Add libm_hidden_proto for
1370 __fe_nomask_env.
3cc56f92
UD
1371 * sysdeps/powerpc/fpu/fe_nomask.c: Add libm_hidden_def. Include
1372 <fenv_libc.h> instead of <fenv.h>.
246ec411
UD
1373 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c: Likewise.
1374 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c: Likewise.
1375
1376 * sysdeps/powerpc/bits/fenv.h: Make safe for C++.
1377
1378 * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h: New file.
1379 * sysdeps/powerpc/fpu/fegetexcept.c (__fegetexcept): Rename
1380 function from fegetexcept and make old name weak alias.
1381 * include/fenv.h: Declare __fegetexcept.
1382 * sysdeps/powerpc/fpu/fedisblxcpt.c: Use __fegetexcept instead of
1383 fegetexcept.
1384 * sysdeps/powerpc/fpu/feenablxcpt.c: Likewise.
1385 * sysdeps/powerpc/fpu/fraiseexcpt.c (__feraiseexcept): Avoid call
1386 to fetestexcept.
1387 * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Use __frexpl
1388 instead of frexpl to avoid local PLT.
1389 * math/s_significandl.c (__significandl): Use __ilogbl instead of
1390 ilogbl to avoid local PLT.
1391 * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Use __ldexpl
1392 instead of ldexpl to avoid local PLT.
1393 * sysdeps/ieee754/ldbl-128ibm/e_expl.c (__ieee754_expl): Use
1394 __roundl not roundl to avoid local PLT.
1395 * sysdeps/ieee754/ldbl-128/e_j0l.c: Use function names which avoid
1396 local PLTs. Use __sincosl instead of separate sinl and cosl
1397 calls.
1398 * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
1399
2dc4a2fd
UD
1400 * sysdeps/unix/sysv/linux/configure.in: Bump minimal kernel
1401 version for ppc64 to 2.4.21 since without it makecontext will fail.
1402
fe3350ee
UD
1403 * elf/tls-macros.h [__powerpc64__] (__TLS_GET_ADDR): Define according
1404 to the ABI in use.
1405 [__powerpc64__] (TLS_LD): Use __TLS_GET_ADDR instead of
1406 .__tls_get_addr.
1407 [__powerpc64__] (TLS_GD): Likewise.
cf3a8c7f 1408
c1e6b459
UD
14092007-11-20 Ryan S. Arnold <rsa@us.ibm.com>
1410
7763d4f1 1411 [BZ #4997]
c1e6b459
UD
1412 * sysdeps/powerpc/powerpc32/fpu/s_lround.S (__lround): Fixed erroneous
1413 result when x is +/-nextafter(+/-0.5,-/+1) i.e. all 1's in the
1414 mantissa.
1415 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S (__llround):
1416 Likewise. Also account for when x is an odd number between 2^52
1417 and 2^53-1.
1418 * sysdeps/powerpc/powerpc64/fpu/s_llround.S (__llround): Likewise.
1419 * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S (__llroundf): Likewise.
1420 * math/libm-test.inc (lround_test, llround_test): Added test cases to
1421 detect aforementioned erroneous conditions.
1422
22dca1ea
UD
14232008-04-11 Jakub Jelinek <jakub@redhat.com>
1424
1425 * configure.in: Check for -fno-section-anchors in addition to
1426 -fno-toplevel-reorder.
1427
5d59f4a5
UD
14282008-04-11 Ulrich Drepper <drepper@redhat.com>
1429
1430 * include/features.h (__GLIBC_MINOR__): Bump to 8.
1431
1432 * sysdeps/powerpc/powerpc32/fpu/s_lroundf.S: Remove duplicate comment.
1433 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llroundf.S: Likewise.
1434 * sysdeps/powerpc/powerpc32/power6/fpu/s_llroundf.S: Likewise.
1435 * sysdeps/powerpc/powerpc64/fpu/s_lrint.S: Likewise.
1436 * sysdeps/powerpc/powerpc64/fpu/s_lround.S: Likewise.
1437 * sysdeps/powerpc/powerpc64/fpu/s_lroundf.S: Likewise.
1438
91e32540
UD
14392008-04-11 Jakub Jelinek <jakub@redhat.com>
1440
1441 [BZ #5443]
1442 * time/era.c: Transform __libc_setlocale_lock into rwlock.
1443 * time/alt_digit.c: Likewise.
1444 * wcsmbs/wcsmbsload.c: Likewise.
1445
fd490ac8
UD
14462008-04-10 Ulrich Drepper <drepper@redhat.com>
1447
1db5b6f4
UD
1448 * version.h (VERSION): Bump to 2.8.
1449
fd490ac8
UD
1450 * timzeone/asia: Update from tzdata2008b.
1451 * timezone/backward: Likewise.
1452 * timezone/europe: Likewise.
1453 * timezone/northamerica: Likewise.
1454 * timezone/southamerica: Likewise.
1455 * timezone/iso3166.tab: Likewise.
1456 * timezone/leapseconds: Likewise.
1457 * timezone/zone.tab: Likewise.
1458 * timezone/private.h: Update from tzcode2008a.
1459 * timezone/zdump.c: Likewise.
1460 * timezone/zic.c: Likewise.
1461
153cf972
UD
14622008-01-24 Steven Munroe <sjmunroe@us.ibm.com>
1463
1464 [BZ #5741]
1465 * sysdeps/powerpc/powerpc64/dl-machine.h (PPC_DCBT, PPC_DCBF):
1466 Define additonal Data Cache Block instruction macros.
1467 (elf_machine_fixup_plt): Add dcbt for opd and plt entries.
1468 Replace dcbst with dcbf and sync with sync/isync.
1469
d2207f32
UD
14702008-02-21 Alan Modra <amodra@bigpond.net.au>
1471
1472 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_type_class):
1473 Always set ELF_RTYPE_CLASS_PLT.
1474 (elf_machine_lookup_noexec_p, elf_machine_lookup_noplt_p): Delete.
1475
13d83320
UD
14762008-04-03 Steven Munroe <sjmunroe@us.ibm.com>
1477
1478 * sysdeps/powerpc/powerpc32/power4/hp-timing.c: New file.
1479 * sysdeps/powerpc/powerpc32/power4/hp-timing.h: New file.
1480 * sysdeps/powerpc/powerpc64/hp-timing.h [_ARCH_PWR4] (HP_TIMING_NOW):
1481 For ISA 2.01 and later replace mftb with mfspr 268.
1482
5f7aead5
UD
14832008-02-19 Steven Munroe <sjmunroe@us.ibm.com>
1484
1485 [BZ #5768]
1486 * sysdeps/powerpc/fpu/Makefile (libm-tests): Add test-powerpc-snan.
1487 * sysdeps/powerpc/fpu/test-powerpc-snan.c: New file.
1488
14892008-02-18 Steven Munroe <sjmunroe@us.ibm.com>
1490
1491 [BZ #5768]
1492 * sysdeps/powerpc/powerpc32/fpu/s_isnan.S: New file.
1493 * sysdeps/powerpc/powerpc32/fpu/s_isnan.c: Removed.
1494 * sysdeps/powerpc/powerpc64/fpu/s_isnan.S: New file.
1495 * sysdeps/powerpc/powerpc64/fpu/s_isnan.c: Removed.
1496
117df5d9
JJ
14972008-04-10 Jakub Jelinek <jakub@redhat.com>
1498
1499 * stdlib/tst-makecontext.c (othervar): New variable.
1500 (cf): Test sign extending the argument to long.
1501
3b32d8a2
UD
15022008-03-03 Steven Munroe <sjmunroe@us.ibm.com>
1503
1504 * sysdeps/powerpc/powerpc32/power5/fpu/s_isnan.S: New file.
1505 * sysdeps/powerpc/powerpc32/power5/fpu/s_isnanf.S: New file.
1506 * sysdeps/powerpc/powerpc32/power6/fpu/s_isnan.S: New file.
1507 * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S: New file.
1508 * sysdeps/powerpc/powerpc64/power5/fpu/s_isnan.S: New file.
1509 * sysdeps/powerpc/powerpc64/power6/fpu/s_isnan.S: New file.
1510 * sysdeps/powerpc/powerpc64/power6x/fpu/s_isnan.S: New file.
1511
9fb11d4c
UD
15122008-02-22 Alan Modra <amodra@bigpond.net.au>
1513
1514 * elf/Makefile (tests): Substitute tests-vis-yes here.
1515 (tests-vis-yes): Delete.
1516 (modules-name, modules-vis-yes): Similarly.
1517
facd1d8e
UD
15182008-02-12 Pete Eberlein <eberlein@us.ibm.com>
1519
1520 [BZ #4407]
1521 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
1522 Preserve sign in signgamp when x is zero.
1523
aece054b
UD
15242007-10-26 Steven Munroe <sjmunroe@us.ibm.com>
1525
1526 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: New File.
1527 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.c: Removed.
1528 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: New File.
1529 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.c: Removed.
1530 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: New File.
1531 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: New File.
1532
6c30d38f
UD
15332008-04-09 Ulrich Drepper <drepper@redhat.com>
1534
21208604 1535 [BZ #4314]
13d83320
UD
1536 * sysdeps/i386/i686/memcpy.S: Optimize copying of equally aligned
1537 buffers.
21208604 1538
2f611ada 1539 [BZ #5209]
d1235fdf
UD
1540 * sysdeps/unix/sysv/syscalls.list: The times syscall doesn't have
1541 a reserved error value.
2f611ada 1542
6c30d38f
UD
1543 * stdlib/tst-makecontext.c: Change parameter to cf to negative
1544 value to check for correct sign extension.
1545
1546 [BZ #5436]
1547 * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
1548 Copy 64-bit parameter values even though this is not required in
1549 the standard.
1550
1551 * sysdeps/unix/sysv/linux/x86_64/vfork.S (__vfork): Record return
1552 PC save.
1553
de1bbf68
UD
15542008-02-14 Daniel Jacobowitz <dan@codesourcery.com>
1555
1556 * sysdeps/unix/sysv/linux/i386/vfork.S (__vfork): Record return
1557 PC save.
1558
9aef35a5
UD
15592008-04-09 Jakub Jelinek <jakub@redhat.com>
1560
1561 * nss_files/files-XXX.c (_nss_files_getXXent_r): Restore saved errno.
1562
a7925a24
UD
15632008-04-09 Ulrich Drepper <drepper@redhat.com>
1564
1565 [BZ #5998]
1566 * libio/iofwrite.c (_IO_fwrite): Return correct count if flushing
1567 in line-buffered stream failed.
1568 * libio/iofwrite_u.c (fwrite_unlocked): Likewise.
1569
7b61ef24
UD
15702008-04-08 Ulrich Drepper <drepper@redhat.com>
1571
c2a684a4
UD
1572 [BZ #6024]
1573 * scripts/abi-versions.awk: If the version specified by
1574 --enable-oldest-abi is older than the first version for this
1575 architecture, use the default version.
1576
7b61ef24
UD
1577 * locale/programs/ld-collate.c (collate_read): Ignore script lines
1578 as well when ignoring the whole category.
1579
f6d749f0
UD
15802008-04-07 Ulrich Drepper <drepper@redhat.com>
1581
1582 [BZ #6042]
1583 * sysdeps/unix/sysv/linux/net/ethernet.h: Add a few more
1584 ETHERTYPE_* definitions.
1585 Patch partly by Aurelien Jarno <aurelien@aurel32.net>.
1586
1e99aede
JJ
15872008-04-07 Jakub Jelinek <jakub@redhat.com>
1588
1589 * stdlib/mbtowc.c (__no_r_state): Remove.
1590 (mbtowc): New static state variable. Use it instead of
1591 __no_r_state.
1592 * stdlib/wctomb.c (__no_r_state): Remove extern decl.
1593 (__wctomb_state): New hidden variable.
1594 (wctomb): Use __wctomb_state instead of __no_r_state.
1595 * debug/wctomb_chk.c (__no_r_state): Remove extern decl.
1596 (__wctomb_state): New extern decl.
1597 (__wctomb_chk): Use __wctomb_state instead of __no_r_state.
1598
fcf90e0a
UD
15992008-04-07 Ulrich Drepper <drepper@redhat.com>
1600
1601 [BZ #5475]
1602 * resolv/res_init.c: Handle scope IDs in resolv.conf.
1603
ae39e102
JJ
16042008-04-07 Jakub Jelinek <jakub@redhat.com>
1605
1606 * malloc/mtrace.pl: Use $@ instead of $* to keep perl 5.10 quiet.
1607
2503dd30
UD
16082008-04-06 Ulrich Drepper <drepper@redhat.com>
1609
1610 * po/nl.po: Update from translation team.
1611
3eb9c809
UD
16122008-03-31 Ulrich Drepper <drepper@redhat.com>
1613
1614 [BZ #6007]
1615 * string/strfry.c: Handle empty strings again.
1616
9a69db29
UD
16172008-03-30 Ulrich Drepper <drepper@redhat.com>
1618
1619 [BZ #5443]
1620 * intl/dcigettext.c (__dcigettext): Get reader lock for locale data
1621 before looking for translation.
1622 * locale/duplocale.c: Transform __libc_setlocale_lock into rwlock.
1623 * locale/freelocale.c: Likewise.
1624 * locale/newlocale.c: Likewise.
1625 * locale/setlocale.c: Likewise.
1626 Based partially on a patch by ryo@np.css.fujitsu.com.
1627
2ecc7d93
UD
16282008-03-30 Jakub Jelinek <jakub@redhat.com>
1629
1630 * intl/dcigettext.c (_nl_find_msg): Reread nconversions after
1631 acquiring wrlock. Do conv_tab allocation while holding lock.
1632 * intl/Makefile: Add rules to build and run tst-gettext6.
1633 * intl/tst-gettext6.c: New test.
1634 * intl/tst-gettext6.sh: New file.
1635
221e5230
UD
16362008-03-30 Ulrich Drepper <drepper@redhat.com>
1637
faa091c6
UD
1638 * po/nl.po: Update from translation team.
1639
221e5230
UD
1640 * sysdeps/unix/opendir.c (__alloc_dir): If allocation fails for size
1641 provided through st_blksize, try the default size before giving up.
1642
1c272665
UD
16432008-03-29 Ulrich Drepper <drepper@redhat.com>
1644
43f6bec1
UD
1645 * stdio-common/vfprintf.c (vfprintf): Correct overflow test.
1646
e8a32126
UD
1647 [BZ #5939]
1648 * sysdeps/posix/tempname.c (__gen_tempname): Correct flag selection.
1649
1e489af9
UD
1650 * posix/getopt.c (_getopt_internal_r): Remove old POSIX-demanded
1651 error message. POSIX today does not require the messages to be in
1652 a specific form. Suggested by Jim Meyering <jim@meyering.net>.
1653
1d20f7f8
UD
1654 [BZ #5979]
1655 * sunrpc/auth_unix.c: Unify printed strings.
1656 * sunrpc/clnt_tcp.c: Likewise.
1657 * sunrpc/clnt_udp.c: Likewise.
1658 * sunrpc/clnt_unix.c: Likewise.
1659 * sunrpc/svc_tcp.c: Likewise.
1660 * sunrpc/svc_udp.c: Likewise.
1661 * sunrpc/svc_unix.c: Likewise.
1662 * sunrpc/xdr.c: Likewise.
1663 * sunrpc/xdr_array.c: Likewise.
1664 * sunrpc/xdr_rec.c: Likewise.
1665 * sunrpc/xdr_ref.c: Likewise.
1666 * locale/programs/ld-time.c (time_finish): Unify messages.
1667 * locale/programs/locfile.c (handle_copy): Fix typo.
1668 * nscd/nscd.c (options): Fix typo.
1669
1c272665
UD
1670 [BZ #5995]
1671 * stdlib/strtod_l.c: Use correct sign for result in one more
1672 underflow case.
1673 Patch by Eric Blake <ebb9@byu.net>.
1674
48cc060e
UD
16752008-03-27 Jakub Jelinek <jakub@redhat.com>
1676
1677 * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Add open
1678 and creat system calls.
1679 * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove open system
1680 call.
1681 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Remove open and creat
1682 system calls.
1683 * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Likewise.
1684 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
1685 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
1686
f96853be
UD
16872008-03-27 Ulrich Drepper <drepper@redhat.com>
1688
1689 * sysdeps/unix/sysv/linux/bits/local_lim.h: Undefined ARG_MAX if
1690 <linux/limits.h> has defined it.
1691 * sysdeps/unix/sysv/linux/sys/param.h: Define NCARGS to the legacy
1692 ARG_MAX value and prevent ARG_MAX from being defined by the kernel
1693 headers.
1694 * sysdeps/unix/sysv/linux/sysconf.c: Define legacy_ARG_MAX and use
1695 it instead of ARG_MAX.
1696
fde15fdc
UD
16972008-03-25 Jakub Jelinek <jakub@redhat.com>
1698
1699 * posix/gai.conf: Fix comment for scope nullbits.
1700 * sysdeps/posix/getaddrinfo.c (gaiconf_init): If /bits is not present,
1701 default to 128 bits for v4 mapped addresses.
1702
87b9b50f
UD
17032008-03-07 Martin Schwidefsky <schwidefsky@de.ibm.com>
1704
1705 * sysdeps/s390/fpu/fegetenv.c (fegetenv): Remove PTRACE_PEEKUSER
1706 ptrace call to get the ieee_instruction_pointer from the kernel.
1707 * sysdeps/s390/fpu/fesetenv.c (fesetenv): Remove PTRACE_POKEUSER
1708 ptrace call to set the ieee_instructtion_pointer.
1709 * sysdeps/unix/sysv/linux/s390/sys/user.h (struct _user_regs_struct):
1710 Add comment that ieee_instruction_pointer is always 0.
1711
af0498dc
UD
17122008-03-09 Andreas Jaeger <aj@suse.de>
1713
1714 [BZ #5857]
1715 * sysdeps/ieee754/dbl-64/s_rint.c (__rint): Handle j0==18.
1716 * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Likewise.
1717 Patch by Mark Elliott <mark.h.elliott@lmco.com>.
1718
1719 * math/libm-test.inc (nearbyint_test): Add new test cases from #5857.
1720 (rint_test): Likewise.
1721
0ab7632d
UD
17222008-03-24 Ulrich Drepper <drepper@redhat.com>
1723
0facd3df
UD
1724 * nis/nis_call.c (nis_server_cache_search): Save errno around stat
1725 call.
1726 (__nisfind_server): Similar for open readColdStartFile call.
1727 Patch partially by Jim Meyering.
1728 * nss/nss_files/files-XXX.c (_nss_files_getXXent_r): Save errno
1729 around internal_setent call.
1730
7e570c55
UD
1731 * po/vi.po: New Vietnamese translation.
1732
e093c247
UD
1733 * sysdeps/unix/sysv/linux/adjtime.c: Correctly use
1734 ADJ_OFFSET_SS_READ.
1735
0ab7632d
UD
1736 * sysdeps/unix/sysv/linux/bits/sched.h: Add new CLONE_* flags,
1737 remove CLONE_STOPPED.
1738
0726cdf7
UD
17392008-02-10 Jim Meyering <meyering@redhat.com>
1740
1741 Remove useless "if" before "free":
1742 * elf/ldconfig.c (parse_conf_include): Likewise.
1743 * gmon/gmon.c (weak_alias): Likewise.
1744 * iconv/gconv_conf.c (__gconv_get_path): Likewise.
1745 * inet/rcmd.c (__validuser2_sa): Likewise.
1746 * intl/bindtextdom.c (set_binding_values): Likewise.
1747 * intl/loadmsgcat.c (_nl_load_domain, _nl_unload_domain): Likewise.
1748 * libio/genops.c (save_for_backup): Likewise.
1749 * libio/wgenops.c (save_for_wbackup): Likewise.
1750 * locale/programs/ld-collate.c (collate_read): Likewise.
1751 * locale/programs/linereader.c (get_string): Likewise.
1752 * nis/nss_compat/compat-pwd.c (give_pwd_free): Likewise.
1753 * nis/nss_compat/compat-spwd.c (give_spwd_free): Likewise.
1754 * resolv/res_debug.c (do_section): Likewise.
1755 * sunrpc/xdr_sizeof.c (x_inline, xdr_sizeof): Likewise.
1756 * sysdeps/mach/hurd/if_index.c (libc_hidden_def): Likewise.
1757 * sysdeps/posix/sprofil.c (__sprofil): Likewise.
1758 * time/lc-time-cleanup.c (_nl_cleanup_time): Likewise.
1759 * time/tzset.c (tzset_internal): Likewise.
1760
354b7527
JJ
17612008-03-18 Jakub Jelinek <jakub@redhat.com>
1762
1763 * sysdeps/unix/sysv/linux/dl-sysdep.h: Use __ASSEMBLER__ instead
1764 of ASSEMBLER.
1765
ca668b29
UD
17662008-03-11 Ulrich Drepper <drepper@redhat.com>
1767
1768 [BZ #5903]
1769 * iconv/iconv_charmap.c (charmap_conversion): Pass name of output file
1770 not stream for output file. Open output file here.
1771 * iconv/iconv_prog.c (process_lock): Take pointer to output stream
1772 and output file name.
1773 (process_fd): Likewise.
1774 (process_file): Likewise.
1775 (main): Adjust callers of changed functions.
1776 * iconv/iconv_prog.h: Adjust prototype.
1777
f3dc3415
AJ
17782008-03-09 Andreas Jaeger <aj@suse.de>
1779
1780 [BZ #5753]
1781 * sysdeps/ia64/ieee754.h: Use protected namespace
1782 __BIG_ENDIAN/__LITTLE_ENDIAN.
1783 * sysdeps/ieee754/ieee754.h: Likewise.
1784 Patch by Aurelien Jarno <aurelien@aurel32.net>.
1785
a8fd84d4
RM
17862008-03-08 Roland McGrath <roland@frob.com>
1787
2b965f1b
RM
1788 * hurd/hurdsig.c (_hurd_internal_post_signal): When normal rules would
1789 ignore a signal that came from a machine exception, treat it as a
1790 fatal core-dump signal instead.
1791 Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
1792
a8fd84d4
RM
1793 * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler):
1794 Clear DF bit in thread state's eflags.
1795 Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
1796
368a8dec
UD
17972008-03-08 Ulrich Drepper <drepper@redhat.com>
1798
b3278554
UD
1799 [BZ #5774]
1800 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Consume closing brace
c6c00e0d 1801 of NAN(...) sequence.
b3278554
UD
1802 * stdlib/Makefile (tests): Add tst-strtod6.
1803 * stdlib/tst-strtod6.c: New file.
1804
1805 * inet/inet6_opt.c (inet6_opt_init): Check extlen for overflow.
1806
2127a186
UD
1807 [BZ #5762]
1808 * posix/getopt.c (_getopt_internal_r): Clarify error message by
1809 putting offending option character in quotes. Clean up error
1810 messages.
1811 * po/be.po: Adjust msgstr in translation file.
1812 * po/bg.po: Likewise.
1813 * po/ca.po: Likewise.
1814 * po/cs.po: Likewise.
1815 * po/da.po: Likewise.
1816 * po/de.po: Likewise.
1817 * po/es.po: Likewise.
1818 * po/fr.po: Likewise.
1819 * po/hr.po: Likewise.
1820 * po/ko.po: Likewise.
1821 * po/nl.po: Likewise.
1822 * po/rw.po: Likewise.
1823 * po/sk.po: Likewise.
1824 * po/sv.po: Likewise.
1825 * po/tr.po: Likewise.
1826 * po/zh_CN.po: Likewise.
1827 * po/zh_TW.po: Likewise.
1828
725c0c87
UD
1829 [BZ #5760]
1830 * inet/inet6_opt.c (inet6_opt_init): Fix ip6h_len computation.
1831 Patch by Roland Bless <roland@bless.de>.
1832
368a8dec
UD
1833 * sysdeps/unix/sysv/linux/dl-sysdep.c: Avoid unnecessary code for
1834 .o file.
1835 * elf/Makefile (routines): Add dl-sysdep.
1836 (elide-routines.os): Likewise.
1837
78c2bf0e
UD
18382008-03-07 Ulrich Drepper <drepper@redhat.com>
1839
7c22c7ec
UD
1840 [BZ #5786]
1841 * elf/dl-sysdep.c: Undefine ROUND after use.
1842 * sysdeps/generic/ldsodefs.h [HAVE_DL_DISCOVER_OSVERSION]
1843 (struct rtld_global_ro): Add _dl_tls_get_addr_soft element.
1844 * elf/rtld.c (rtld_global_ro): Initialize _dl_discover_osversion.
1845 * sysdeps/unix/sysv/linux/dl-osinfo.h: Move _dl_discover_osversion
1846 to ...
1847 * sysdeps/unix/sysv/linux/dl-sysdep.c: ...here.
1848 * sysdeps/unix/sysv/linux/dl-sysdep.h: Declare _dl_discover_osversion
1849 if necessary.
1850 * sysdeps/unix/sysv/linux/sysconf.c: Handle _SC_ARG_MAX here.
1851
93025f93
UD
1852 * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Add
1853 _dl_tls_get_addr_soft element.
1854 * elf/rtld.c (rtld_global_ro): Initialize _dl_tls_get_addr_soft.
1855 * elf/Versions (ld): Don't export _dl_tls_get_addr_soft.
1856 * dlfcn/dlinfo.c (dlinfo_doit): Access dl_tls_get_addr_soft through
1857 GLRO.
1858 * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise.
1859 * elf/dl-tls.c (_dl_tls_get_addr_soft): Use attribute_hidden instead
1860 of internal_function.
1861
72f10127
UD
1862 * stdlib/Makefile (aux): Add tens_in_limb.
1863 * stdlib/strtod_l.c: Move _tens_in_limb definition to...
1864 * stdlib/tens_in_limb.c: ...here. New file.
1865
443db178
UD
1866 [BZ #5778]
1867 * sysdeps/unix/sysv/linux/pathconf.h: Declare
1868 __statfs_chown_restricted.
1869 * sysdeps/unix/sysv/linux/fpathconf.c: Call __statfs_chown_restricted
1870 for _PC_CHOWN_RESTRICTED.
1871 * sysdeps/unix/sysv/linux/pathconf.c: Likewise.
1872 Implement __statfs_chown_restricted.
1873 * sysdeps/unix/sysv/linux/bits/posix_opt.h: Change
1874 _POSIX_CHOWN_RESTRICTED value to zero.
c71665ad
UD
1875 * io/tst-fchownat.c: Correctly handle _POSIX_CHOWN_RESTRICTED
1876 defined to zero.
443db178 1877
78c2bf0e
UD
1878 * sysdeps/x86_64/rtld-memset.c: New file.
1879
443db178 18802008-02-26 Harsha Jagasia <harsha.jagasia@amd.com>
78c2bf0e
UD
1881
1882 * sysdeps/x86_64/cacheinfo.c (NOT_USED_RIGHT_NOW): Remove ifdef guards.
1883
1884 * sysdeps/x86_64/memset.S: Rewrite non-SSE code path as tuned for AMD
1885 Barcelona machine. Make default fall through branch of
1886 __x86_64_preferred_memory_instruction check as the integer code path.
1887
18882007-10-15 H.J. Lu <hongjiu.lu@intel.com>
1889
1890 * sysdeps/x86_64/cacheinfo.c
1891 (__x86_64_preferred_memory_instruction): New variable.
1892 (init_cacheinfo): Initialize __x86_64_preferred_memory_instruction.
1893
1894 * sysdeps/x86_64/memset.S: Rewrite.
1895
dff37515
UD
18962008-03-04 Jakub Jelinek <jakub@redhat.com>
1897
1898 * include/stdio.h (__asprintf_chk, __dprintf_chk,
1899 __obstack_printf_chk): New prototypes.
1900 (__vasprintf_chk, __vdprintf_chk,
1901 __obstack_vprintf_chk): Likewise.
1902 Add libc_hidden_proto.
1903 * libio/obprintf.c
1904 (_IO_obstack_jumps): No longer static, add attribute_hidden.
1905 * libio/bits/stdio-ldbl.h (__asprintf_chk, __dprintf_chk,
1906 __obstack_printf_chk, __vasprintf_chk, __vdprintf_chk,
1907 __obstack_vprintf_chk): Add __LDBL_REDIR_DECL.
1908 * libio/bits/stdio2.h (__asprintf_chk, __dprintf_chk,
1909 __obstack_printf_chk, __vasprintf_chk, __vdprintf_chk,
1910 __obstack_vprintf_chk): New prototypes.
1911 (asprintf, __asprintf, dprintf, obstack_printf, vasprintf, vdprintf,
1912 obstack_vprintf): New inlines.
1913 * debug/dprintf_chk.c: New file.
1914 * debug/vdprintf_chk.c: New file.
1915 * debug/asprintf_chk.c: New file.
1916 * debug/vasprintf_chk.c: New file.
1917 * debug/obprintf_chk.c: New file.
1918 * debug/tst-chk1.c (do_test): Add asprintf and obstack_printf tests.
1919 * debug/Versions (__asprintf_chk, __dprintf_chk, __obstack_printf_chk,
1920 __vasprintf_chk, __vdprintf_chk, __obstack_vprintf_chk): Export
1921 @@GLIBC_2.8.
1922 * debug/Makefile: Build asprintf_chk, vasprintf_chk, dprintf_chk,
1923 vdprintf_chk and obprintf_chk, set CFLAGS for them.
1924 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c (__nldbl___vasprintf_chk,
1925 __nldbl___vdprintf_chk, __nldbl___obstack_vprintf_chk): Add
1926 libc_hidden_proto.
1927 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl___vasprintf_chk,
1928 __nldbl___vdprintf_chk, __nldbl___obstack_vprintf_chk): New prototypes.
1929 * sysdeps/ieee754/ldbl-opt/Versions (__nldbl___asprintf_chk,
1930 __nldbl___vasprintf_chk, __nldbl___dprintf_chk, __nldbl___vdprintf_chk,
1931 __nldbl___obstack_printf_chk, __nldbl___obstack_vprintf_chk): Export
1932 @@GLIBC_2.8.
1933 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add asprintf_chk,
1934 vasprintf_chk, dprintf_chk, vdprintf_chk, obstack_printf_chk and
1935 obstack_vprintf_chk.
1936 * sysdeps/ieee754/ldbl-opt/nldbl-obstack_vprintf_chk.c: New file.
1937 * sysdeps/ieee754/ldbl-opt/nldbl-dprintf_chk.c: New file.
1938 * sysdeps/ieee754/ldbl-opt/nldbl-obstack_printf_chk.c: New file.
1939 * sysdeps/ieee754/ldbl-opt/nldbl-asprintf_chk.c: New file.
1940 * sysdeps/ieee754/ldbl-opt/nldbl-vdprintf_chk.c: New file.
1941 * sysdeps/ieee754/ldbl-opt/nldbl-vasprintf_chk.c: New file.
1942
d835f136
UD
19432008-03-04 Ulrich Drepper <drepper@redhat.com>
1944
a4bb445a
UD
1945 [BZ #5779]
1946 * misc/sys/queue.h: Add STAILQ_CONCAT and TAILQ_CONCAT definitions.
1947 Patch by Roy Marples <roy@marples.name>.
1948
c958a6a4
UD
1949 [BZ #5736]
1950 * malloc/malloc.c: Fix typo in comment.
1951
d835f136
UD
1952 [BZ #5627]
1953 * locale/iso-639.def: Add Shuswap.
1954
65b4743a
UD
19552008-02-25 Jakub Jelinek <jakub@redhat.com>
1956
1957 [BZ #5790]
1958 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr2_r): Don't
1959 overwrite *h_errnop/*errnop values from getanswer_r in case of
1960 failure.
1961
3868fb6e
UD
19622008-03-03 Ulrich Drepper <drepper@redhat.com>
1963
27c377dd
UD
1964 [BZ #5818]
1965 * nscd/connections.c (dbs): Add initializers for .suggested_module.
1966 (verify_persistent_db): Remove one unnecessary test and add a new one
1967 for bad configuration.
1968 (nscd_init): Improve error reported when persistent database cannot
1969 be reused.
1970 * nscd/nscd.h (DEFAULT_SUGGESTED_MODULE): Define.
1971 * nscd/nscd_conf.c (nscd_parse_file): Provide default values for
1972 .suggested_module and .max_db_size and case config file says the
1973 values are zero.
1974 * nscd/nscd_helper.c (get_mapping): Fail if hash table module is zero.
1975
0f749099
UD
1976 [BZ #5854]
1977 * nis/ypclnt.c (yp_order): Fix handling of return value of
1978 do_ypcall_tr call.
1979 Patch by Jeff Moyer <jmoyer@redhat.com>.
1980
3868fb6e
UD
1981 * po/fr.po: Update from translation team.
1982
268dbf25
AJ
19832008-02-22 Andreas Jaeger <aj@suse.de>,
1984 Carlos O'Donell <carlos@systemhalted.org>
1985
1986 [BZ #5012]
1987 * FAQ.in: Describe why glibc needs to be compiled with
1988 optimization.
1989
73b82641
RM
19902008-02-19 Roland McGrath <roland@redhat.com>
1991
1992 * elf/elf.h (SHT_GNU_ATTRIBUTES): New macro.
1993
c9136393
UD
19942008-02-15 Ulrich Drepper <drepper@redhat.com>
1995
1996 [BZ #5737]
1997 * resolv/netdb.h: Make NI_MAXHOST and NI_MAXSERV available when
1998 __USE_MISC is defined.
1999
2e3e9ff1
UD
20002008-02-10 Ulrich Drepper <drepper@redhat.com>
2001
2002 * sysdeps/unix/sysv/linux/sys/timerfd.h: New file.
2003 * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers): Add
2004 sys/timerfd.h.
2005 * sysdeps/unix/sysv/linux/syscalls.list: Add timerfd_create,
2006 timerfd_gettime, timerfd_settime.
2007 * sysdeps/unix/sysv/linux/Versions: Add timerfd_create,
2008 timerfd_gettime, timerfd_settime for GLIBC_2.8.
2009
85202a2b
RM
20102008-02-08 Roland McGrath <roland@redhat.com>
2011
2012 * elf/elf.h (NT_PPC_SPE): New macro.
2013
708ef8a4
RM
20142008-02-06 Roland McGrath <roland@redhat.com>
2015
2016 * Makerules ($(common-objpfx)sysd-rules):
2017 Depend on $(sysdep-makeconfigs).
2018
363a641b
RM
20192008-01-31 Roland McGrath <roland@redhat.com>
2020
67fbfa5c
RM
2021 [BZ #5442]
2022 * configure.in: Use -print-file-name if it yields a directory,
2023 for each of include and include-fixed.
2024 * configure: Regenerated.
2025
363a641b
RM
2026 * Makeconfig (sysd-rules-targets): New variable.
2027 * sysdeps/unix/make-syscalls.sh: Use it in the rules emitted.
2028 * sysdeps/unix/Makefile (omit-deps): Append variants for each target.
2029
0f0f9610
RM
20302008-01-30 Roland McGrath <roland@redhat.com>
2031
7bd00dbf
RM
2032 * manual/libc.texinfo: Update back-cover text.
2033
0f0f9610
RM
2034 * elf/elf.h (NT_386_TLS): New macro.
2035
16cd816f
RM
20362008-01-29 Roland McGrath <roland@redhat.com>
2037
2038 * Makeconfig (sysd-rules-patterns): New variable.
2039 * Makerules ($(common-objpfx)sysd-rules): Drive the loop from that.
2040 (check-inhibit-asm): New canned sequence, replaces ...
2041 (open-check-inhibit-asm, close-check-inhibit-asm): ... these, removed.
2042 * elf/rtld-Rules ($(objpfx)rtld-%.os): Use $(rtld-CPPFLAGS) in commands.
2043 (rtld-CPPFLAGS): Renamed from CPPFLAGS-rtld.
2044 (CFLAGS-rtld): Variable removed.
2045
f641ffcc
RM
20462008-01-24 Roland McGrath <roland@redhat.com>
2047
2048 * configure.in: Let configure fragments set base_os.
2049 * configure: Regenerated.
2050
b7e26885
UD
20512008-01-22 Ulrich Drepper <drepper@redhat.com>
2052
2053 * po/ko.po: Update from translation team.
2054
b4b166af
UD
20552008-01-12 H.J. Lu <hongjiu.lu@intel.com>
2056
2057 * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Use short for fnstsw.
2058
f66def9d
AJ
20592008-01-12 Andreas Jaeger <aj@suse.de>
2060
2061 [BZ #5040]
2062 * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h (enum EPOLL_EVENTS):
2063 Add EPOLLRDHUP.
2064
d3bc5e77
RM
20652008-01-20 Samuel Thibault <samuel.thibault@ens-lyon.org>
2066
2067 * hurd/hurdsock.c (_hurd_socket_server): Return the standard
2068 error EAFNOSUPPORT rather than non-standard EPFNOSUPPORT.
2069 * sunrpc/bindrsvprt.c (bindresvport): Likewise.
2070
4c533566
UD
20712007-10-23 Alexandre Oliva <aoliva@redhat.com>
2072
2073 * include/link.h (FORCED_DYNAMIC_TLS_OFFSET): Define.
2074 * elf/dl-close.c (_dl_close): Check for it.
2075 * elf/dl-reloc.c (CHECK_STATIC_TLS): Likewise.
2076 (_dl_allocate_static_tls): Likewise.
2077 * elf/dl-tls.c (_dl_allocate_tls_init): Likewise.
2078 (__tls_get_addr): Protect from race conditions in setting l_tls_offset
2079 to it.
2080 * elf/tst-tls16.c: New file.
2081 * elf/tst-tlsmod16a.c: New file.
2082 * elf/tst-tlsmod16b.c: New file.
2083 * elf/Makefile: Add rules to build and run tst-tls16.
2084
a53d3f82
UD
20852008-01-16 Ulrich Drepper <drepper@redhat.com>
2086
a0f6c236
UD
2087 [BZ #5628]
2088 * bits/shm.h: Fix comment describing shmid_ds.
2089 * sysdeps/gnu/bits/shm.h: Likewise.
2090 * sysdeps/unix/sysv/linux/alpha/bits/shm.h: Likewise.
2091 * sysdeps/unix/sysv/linux/bits/shm.h: Likewise.
2092 * sysdeps/unix/sysv/linux/ia64/bits/shm.h: Likewise.
2093 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
2094 * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
2095 * sysdeps/unix/sysv/linux/sh/bits/shm.h: Likewise.
2096 * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
2097 * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Likewise.
2098 Patch by Hareesh Nagarajan <hareesh.nagarajan@gmail.com>.
2099
a53d3f82
UD
2100 [BZ #5607]
2101 * conform/data/fcntl.h-data: Fix posix_fadvise and posix_fallocate
2102 prototypes.
2103 * conform/data/limits.h-data: Adjust limits changed in v6 and add
2104 additional suffixes.
2105 * conform/data/mqueue.h-data: Fix typo in mq_curmsgs entry.
2106 Add optional functions mq_timedreceive and mq_timedsend.
2107 * conform/data/netdb.h-data: Add more AI_* and EAI_* constants.
2108 * conform/data/pthread.h-data: Fix prototype of
2109 pthread_condattr_setclock. pthread_sigmask is not required in v6.
2110 * conform/data/semaphore.h-data: Allow time.h definitions.
2111 * conform/data/signal.h-data: Likewise.
2112 * conform/data/stdio.h-data: getw and putw are not required in v6.
2113 * conform/data/stdlib.h-data: Change setstate prototype.
2114 * conform/data/string.h-data: Fix strerror_r prototype.
2115 * conform/data/time.h-data: Fix typo in TIMER_ABSTIME definition.
2116 * conform/data/unistd.h-data: pthread_atfork not required in v6.
2117 Fix readlink prototype.
2118 * conform/data/netinet/in.h-data: Add const to in6addr_any and
2119 in6addr_loopback.
2120 * inet/netinet/in.h: Cleanup namespace.
2121 * posix/regex.h: Likewise.
2122 * resolv/netdb.h: Likewise.
2123 * sysdeps/unix/sysv/linux/bits/in.h: Likewise.
2124 * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
2125 * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
6107639e
UD
2126 * sysdeps/posix/getaddrinfo.c (default_labels): Adjust for change
2127 of names of in in6_addr.
2128 (default_precedence): Likewise.
2129 * sysdeps/unix/sysv/linux/cmsg_nxthdr.c: Include <stddef.h> for
2130 NULL definition.
a53d3f82 2131
ebca8f73
UD
21322008-01-15 Ulrich Drepper <drepper@redhat.com>
2133
fbe90cd5
UD
2134 * conform/data/fmtmsg.h-data: Add missing allows.
2135 * conform/data/ftw.h-data: Likewise.
2136 * conform/data/inttypes.h-data: Likewise.
2137 * conform/data/math.h-data: Likewise.
2138 * conform/data/signal.h-data: Likewise.
2139 * conform/data/net/if.h-data: Likewise.
2140 * conform/data/netinet/in.h-data: Likewise.
2141 * conform/data/sys/socket.h-data: Likewise.
2142
ebca8f73
UD
2143 [BZ #5614]
2144 * string/bits/string2.h (__strtok_r_1c): Always update *__NEXTP.
2145 (__strtok_r): Simplify.
2146 * string/tester.c (test_strtok_r): Add test case for futile search
2147 with single-character seach string.
2148
7c33ca8b
UD
21492008-01-12 Ulrich Drepper <drepper@redhat.com>
2150
2151 * po/ko.po: Update from translation team.
2152
b8cc0848
AJ
21532008-01-11 Andreas Jaeger <aj@suse.de>
2154
2155 [BZ #5600]
2156 * sysdeps/unix/sysv/linux/sys/signalfd.h (struct
2157 signalfd_siginfo): Use 64-bit type for ssi_ptr to sync with Linux
2158 kernel header.
2159
49029a66
UD
21602008-01-10 Ulrich Drepper <drepper@redhat.com>
2161
2162 * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Store result of
2163 native interface lookup in all the relevant places.
2164
99f05798
UD
21652008-01-10 Jakub Jelinek <jakub@redhat.com>
2166 Ulrich Drepper <drepper@redhat.com>
0efd1956
UD
2167
2168 * sysdeps/posix/getaddrinfo.c (sort_results): Remove service_order
2169 field. Use sockaddr_in6 for source_addr.
2170 (get_scope): Change type of parameter to sockaddr_in6. Adjust.
2171 (match_prefix): Likewise.
2172 (get_label): Likewise.
2173 (get_precedence): Likewise.
2174 (rfc3484_sort): Change to use indirect access to results array.
2175 Adjust to use of sockaddr_in6. Replace service_order test with
2176 simple index comparison.
2177 (getaddrinfo): Define order array. Initialize it. Don't initialize
2178 service_order field. Adjust qsort_t calls. Access sorted result
2179 array indirectly through order array.
2180 * posix/tst-rfc3484.c: Adjust for change of rfc3484_sort.
2181 * posix/tst-rfc3484-2.c: Likewise.
2182 * posix/tst-rfc3484-3.c: Likewise.
2183
b3443701
UD
21842008-01-09 Ulrich Drepper <drepper@redhat.com>
2185
f6bacb8e
UD
2186 [BZ #5541]
2187 * sunrpc/rpc_thread.c (__rpc_thread_destroy): Also free xports and
2188 pollfd structures.
2189 Patch by André Cruz.
2190
aa693c68
UD
2191 [BZ #5545]
2192 * sunrpc/clnt_perr.c (clnt_sperror): Don't use fixed size buffer.
2193 (clnt_spcreateerror): Likewise.
2194
b3443701
UD
2195 [BZ #5553]
2196 * malloc/malloc.c (public_mALLOc): Set ar_ptr when trying main_arena.
2197 (public_mEMALIGn): Likewise.
2198 Patch mostly by Daniel Jacobowitz.
2199
148e12ed
UD
22002008-01-09 Jakub Jelinek <jakub@redhat.com>
2201
2202 * sysdeps/unix/sysv/linux/i386/makecontext.S (__makecontext): Avoid
2203 clobbering memory at or above uc_stack.ss_sp + uc_stack.ss_size.
2204 * stdlib/Makefile: Add rules to build and run tst-makecontext2.
2205 * stdlib/tst-makecontext2.c: New test.
2206
78c2bf0e 22072008-01-08 Jakub Jelinek <jakub@redhat.com>
4b1b449d
UD
2208
2209 * iconv/loop.c (UPDATE_PARAMS): Define to empty statement if not
2210 defined.
2211 (REINIT_PARAMS): Likewise. Undefine before end of file.
2212 (STANDARD_TO_LOOP_ERR_HANDLER): Use UPDATE_PARAMS before calling
2213 transliteration hooks and REINIT_PARAMS afterwards.
2214 * iconvdata/iso-2022-jp.c (BODY): Use a separate variable for
2215 status.
2216 (REINIT_PARAMS): Define.
2217 * iconvdata/ibm1364.c (REINIT_PARAMS): Likewise.
2218 * iconvdata/ibm930.c (REINIT_PARAMS): Likewise.
2219 * iconvdata/ibm933.c (REINIT_PARAMS): Likewise.
2220 * iconvdata/ibm935.c (REINIT_PARAMS): Likewise.
2221 * iconvdata/ibm937.c (REINIT_PARAMS): Likewise.
2222 * iconvdata/ibm939.c (REINIT_PARAMS): Likewise.
2223 * iconvdata/iso-2022-cn.c (REINIT_PARAMS): Likewise.
2224 * iconvdata/iso-2022-cn-ext.c (REINIT_PARAMS): Likewise.
2225 * iconvdata/iso-2022-jp-3.c (REINIT_PARAMS): Likewise.
2226 * iconvdata/iso-2022-kr.c (REINIT_PARAMS): Likewise.
2227 * iconvdata/Makefile: Add rules to build and run tst-iconv7.c.
2228 * iconvdata/tst-iconv7.c: New test.
2229
71edcafa
UD
22302008-01-07 Ulrich Drepper <drepper@redhat.com>
2231
2232 * libio/stdio.h (vscanf): Fix definition for loser compilers.
2233
0fbfe2f7
JJ
22342008-01-05 Jakub Jelinek <jakub@redhat.com>
2235
2236 [BZ #5112]
2237 * nscd/connections.c (restart): Fix condition.
2238
8726a12e
UD
22392008-01-03 Jakub Jelinek <jakub@redhat.com>
2240
2241 * ctype/ctype.h (__ctype_b_loc, __ctype_tolower_loc,
2242 __ctype_toupper_loc): Add __THROW.
2243
f4a1363e
UD
22442008-01-02 Ulrich Drepper <drepper@redhat.com>
2245
ad586879
UD
2246 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Fix
2247 recognition of interface family.
2248
f4a1363e
UD
2249 * posix/getconf.c: Update copyright year.
2250 * nss/getent.c: Likewise.
2251 * iconv/iconvconfig.c: Likewise.
2252 * iconv/iconv_prog.c: Likewise.
2253 * elf/ldconfig.c: Likewise.
2254 * catgets/gencat.c: Likewise.
2255 * csu/version.c: Likewise.
2256 * elf/ldd.bash.in: Likewise.
2257 * elf/sprof.c (print_version): Likewise.
2258 * locale/programs/locale.c: Likewise.
2259 * locale/programs/localedef.c: Likewise.
2260 * nscd/nscd.c (print_version): Likewise.
2261 * debug/xtrace.sh: Likewise.
2262 * malloc/memusage.sh: Likewise.
2263 * malloc/mtrace.pl: Likewise.
2264 * debug/catchsegv.sh: Likewise.
2265
0dc6c5e4
UD
22662007-12-26 Ulrich Drepper <drepper@redhat.com>
2267
2268 * nss/nsswitch.c (__nss_lookup): Actually use alternative name in
2269 second lookup.
2270
80af8b82
UD
22712007-12-23 Ulrich Drepper <drepper@redhat.com>
2272
2273 * sysdeps/x86_64/cacheinfo.c (intel_02_known): New entry 0x3f.
2274 * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
2275
4bcecfb7
RM
22762007-12-17 Roland McGrath <roland@redhat.com>
2277
2278 * inet/ether_line.c (ether_line): Remove unused variable.
2279
22802007-12-17 Samuel Thibault <samuel.thibault@ens-lyon.org>
2281
2282 * login/forkpty.c (forkpty): Add const qualifier to parameters termp
2283 and winp.
2284 * login/openpty.c (openpty): Likewise.
2285 * login/pty.h (openpty, forkpty): Likewise.
2286 * manual/terminal.texi (openpty, forkpty): Likewise.
2287
4cd4c5d6
UD
22882007-12-17 Ulrich Drepper <drepper@redhat.com>
2289
78c2bf0e 2290 * malloc/malloc.c (public_cALLOc): For arenas other than
4cd4c5d6
UD
2291 main_arena, count all bytes inside the mprotect_size range of the
2292 heap as uninitialized.
2293
68631c8e
UD
22942007-12-16 Ulrich Drepper <drepper@redhat.com>
2295
d9961b6a
UD
2296 * elf/tst-execstack.c (do_test): Don't fail if SELinux forbids
2297 executable stacks.
2298
68631c8e
UD
2299 * malloc/malloc.c (public_mTRIm): Iterate over all arenas and call
2300 mTRIm for all of them.
2301 (mTRIm): Additionally iterate over all free blocks and use madvise
2302 to free memory for all those blocks which contain at least one
2303 memory page.
be8c1500
UD
2304 * malloc/tst-trim1.c: New file.
2305 * malloc/Makefile (tests): Add tst-trim1.
68631c8e
UD
2306
2307 * malloc/malloc.c (do_check_malloc_state): Minimal cleanups.
2308
78b767a0
UD
23092007-12-14 Ulrich Drepper <drepper@redhat.com>
2310
2311 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INTERNAL_SYSCALL_ERROR_P):
2312 First cast argument to long
52386be7
UD
2313 * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_gettimeofday):
2314 Return long.
2315 (__vdso_clock_gettime): Likewise.
78b767a0
UD
2316 * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Functions
2317 return long.
2318
bc3e1c12
UD
23192007-12-13 Ulrich Drepper <drepper@redhat.com>
2320
2321 * locale/nl_langinfo.c (nl_langinfo): Just call __nl_langinfo_l.
2322 * locale/nl_langinfo_l.c: Real implementation, copied from
2323 nl_langinfo.c.
2324 * include/langinfo.h: Add libc_hidden_proto for __nl_langinfo_l.
2325
77751669
UD
23262007-12-01 Jim Meyering <meyering@redhat.com>
2327
2328 * posix/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
2329 that would inhibit utf8-optimization of a regexp containing line-
2330 or buffer-anchors, e.g., `^', `$'.
2331
f63e5063
UD
23322007-12-12 Ulrich Drepper <drepper@redhat.com>
2333
2334 * time/bug-getdate1.c (do_test): Don't use century values which
2335 aren't valid on 32-bit systems.
2336
a78814a9
UD
23372007-12-12 Jakub Jelinek <jakub@redhat.com>
2338
2339 * sysdeps/i386/i486/bits/string.h (memmove): Define as macro.
2340 (memmove): Rename to __memmove_g, with __asm__ ("memmove").
2341 * sysdeps/s390/bits/string.h (__strlen_g, __strcpy_g, __strncpy_g,
2342 __strcat_g, __strncat_g): Add __asm__.
2343
23442007-12-12 Ulrich Drepper <drepper@redhat.com>
2345
2346 [BZ #5477]
2347 * io/fchmodat.c: Fix typo in stub_warning use.
2348 Patch by Petr Salinger.
2349
17edb30c
UD
23502007-12-11 Ulrich Drepper <drepper@redhat.com>
2351
58d11795
UD
2352 * iconvdata/hp-thai8.c: New file.
2353 * iconvdata/Makefile: Add rules for hp-thai8.c.
2354 * iconvdata/tst-tables.sh: Add entry for HP-THAI8.
2355 * iconvdata/gconv-modules: Likewise.
2356
2357 [BZ #5464]
2358 * iconvdata/hp-greek8.c: New file.
2359 * iconvdata/Makefile: Add rules for hp-greek8.c.
2360 * iconvdata/tst-tables.sh: Add entry for HP-GREEK8.
2361 * iconvdata/gconv-modules: Likewise.
2362
2363 [BZ #5463]
2364 * iconvdata/hp-turkish8.c: New file.
2365 * iconvdata/Makefile: Add rules for hp-turkish8.c.
2366 * iconvdata/tst-tables.sh: Add entry for HP-TURKISH8.
2367 * iconvdata/gconv-modules: Likewise.
2368
cbf5760e
UD
2369 * malloc/arena.c (grow_heap): Split out code to shrink heap into...
2370 (shrink_heap): ... this new function.
2371 (heap_trim): Call shrink_heap instead of grow_heap.
2372
17edb30c
UD
2373 * malloc/malloc.c (_int_malloc): sYSMALLOc might fail, in this
2374 case don't call alloc_perturb.
2375
ae18718f
UD
23762007-12-10 Ulrich Drepper <drepper@redhat.com>
2377
2378 * sysdeps/unix/sysv/linux/adjtime.c: Use ADJ_OFFSET_SS_READ if
2379 possible.
2380 * sysdeps/unix/sysv/linux/kernel-features.h
2381 (__ASSUME_ADJ_OFFSET_SS_READ): Define for 2.6.24.
2382 * sysdeps/unix/sysv/linux/sys/timex.h (ADJ_OFFSET_SS_READ): Define.
2383
b4354cf4
UD
23842007-12-08 Ulrich Drepper <drepper@redhat.com>
2385
2386 [BZ #5424]
2387 * stdio-common/vfprintf.c: Do not overflow when adding to done.
2388 * stdio-common/Makefile (tests): Add bug22.
2389 * stdio-common/bug22.c: New file.
2390
2391 [BZ #5451]
2392 * time/getdate.c: Fix filling in default values.
2393 * time/bug-getdate1.c: New file.
2394 * time/Makefile: Add rules to build and run bug-getdate1.
2395
2396 * iconvdata/ebcdic-is-friss.c: Use 8bit-gap instead of 8bit-generic.
2397 * iconvdata/ebcdic-es.c: Likewise.
2398 * iconvdata/ebcdic-es-a.c: Likewise.
2399 * iconvdata/ebcdic-uk.c: Likewise.
2400 * iconvdata/iso8859-16.c: Likewise.
2401 * iconvdata/viscii.c: Likewise.
2402 * iconvdata/iso8859-9e.c: Likewise.
2403 * iconvdata/Makefile: Adjust appropriately.
2404
2405 [BZ #5428]
2406 * wcsmbs/wchar.h: Unconditionally undefine __need_mbstate and
2407 __need_wint_t.
2408
26e21e75
UD
24092007-12-07 Ulrich Drepper <drepper@redhat.com>
2410
87520ccc
UD
2411 [BZ #5427]
2412 * iconvdata/hp-roman9.c: New file.
2413 * iconvdata/Makefile: Add rules for hp-roman9.c.
2414 * iconvdata/tst-tables.sh: Add HP-ROMAN9.
b4354cf4 2415 * iconvdata/gconv-modules: Likewise.
87520ccc
UD
2416
2417 * iconvdata/hp-roman8.c: Use 8bit-gap instead of 8bit-generic.
2418 * iconvdata/Makefile: Adjust appropriately.
2419
26e21e75
UD
2420 [BZ #5441]
2421 * stdio-common/vfscanf.c (_IO_vfwscanf): Don't free ptrs_to_free
2422 structure, it's allocated with alloca.
2423 * stdio-common/Makefile (tests): Add bug21.
2424 * stdio-common/bug21.c: New file.
2425
24262007-12-06 Aurelien Jarno <aurelien@aurel32.net>
2427
2428 [BZ #5452]
2429 * sysdeps/unix/sysv/linux/bits/sched.h: Use __extension__
87520ccc 2430 keyword for gcc's braced-groups.
26e21e75
UD
2431
24322007-12-07 Ulrich Drepper <drepper@redhat.com>
2433
2434 [BZ #5454]
2435 * inet/ether_line.c: Strip hostname of whitespaces.
2436 * inet/Makefile (tests): Add tst-ether_line.
2437 * inet/tst-ether_line.c: New file.
2438
9e80c123
UD
24392007-12-03 Ulrich Drepper <drepper@redhat.com>
2440
da0ff4ae
UD
2441 [BZ #5439]
2442 * sysdeps/unix/sysv/linux/sys/signalfd.h: Fix use of __nonnull.
2443
51bd20d9
UD
2444 [BZ #5435]
2445 * sysdeps/unix/sysv/linux/i386/makecontext.S: Align stack.
2446
d90d0256
UD
2447 * stdlib/tst-setcontext.c: Catch the case where the links gets
2448 messed up and we do not reach main again.
2449
9e80c123
UD
2450 * po/ca.po: Update from translation team.
2451
ae4287f8
UD
24522007-11-26 Ulrich Drepper <drepper@redhat.com>
2453
6701afc7 2454 * posix/unistd.h: Declare fsync also for __USE_XOPEN2K.
79fb2e02 2455 * posix/regex.h (REG_ENOSYS): Likewise.
a912a4f8 2456 * wcsmbs/wchar.h: Define __need_file also for __USE_XOPEN2K.
ae4287f8 2457
30294ea4
UD
24582007-11-25 Ulrich Drepper <drepper@redhat.com>
2459
2460 * nscd/nscd.h (MAX_STACK_USE): Define.
2461 * nscd/mem.c (MAX_STACK_USE): Remove definition here.
2462 (gc): Initialize stack_used based on allocation in prune_cache.
2463 * nscd/cache.c (prune_cache): Use heap for mark array if necessary.
e8667ddc 2464 Clear array before use.
30294ea4
UD
2465
2466 * nscd/aicache.c (addhstaiX): Update statistics counter in case
10a4c1e9 2467 memory allocation failed.
e8667ddc
UD
2468 * nscd/hstcache.c (cache_addhst): Likewise.
2469 * nscd/grpcache.c (cache_addgr): Likewise.
2470 * nscd/servicescache.c (cache_addserv): Likewise.
2471 * nscd/pwdcache.c (cache_addpw): Likewise.
2472 * nscd/initgrcache.c (addinitgroupsX): Likewise.
30294ea4 2473
715db78b
UD
24742007-11-23 Ulrich Drepper <drepper@redhat.com>
2475
609bb071
UD
2476 * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Add open
2477 and creat system calls.
2478
715db78b
UD
2479 * sysdeps/unix/sysv/linux/check_native.c: Include <asm/types.h>.
2480
ea2c47b6
UD
24812007-11-23 Martin Schwidefsky <schwidefsky@de.ibm.com>
2482
2483 * sysdeps/unix/sysv/linux/Makefile [subdir=inet] (sysdep_headers):
2484 Add netiucv/iucv.h.
2485 * sysdeps/unix/sysv/linux/netiucv/iucv.h: New file.
2486 * sysdeps/unix/sysv/linux/opensock.c (__opensock): Add AF_IUCV
2487 protocol.
2488 * sysdeps/unix/sysv/linux/sa_len.c (__libc_sa_len): Likewise.
2489 * sysdeps/unix/sysv/linux/s390/opensock.c: New file.
2490 * sysdeps/unix/sysv/linux/s390/sa_len.c: New file.
2491
dcdcf4b9
UD
24922007-11-22 Martin Schwidefsky <schwidefsky@de.ibm.com>
2493
37143323
UD
2494 * sysdeps/s390/bits/string.h (strlen, strcpy, strncpy, strcat,
2495 strncat): Define as macros to avoid compile errors.
2496
dcdcf4b9
UD
2497 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Add open and
2498 creat entries.
2499
3a632674
UD
25002007-11-22 Ulrich Drepper <drepper@redhat.com>
2501
7ea8eb02
UD
2502 [BZ #5382]
2503 * nscd/nscd.h (NSCD_THREAD_STACKSIZE): Define.
2504 * nscd/connections.c (start_threads): Use NSCD_THREAD_STACKSIZE.
715db78b 2505 * nscd/mem.c (gc): Don't allocate arrays on the stack if they can
7ea8eb02 2506 overflow it.
70d5b6ef 2507 Partially based on a patch by Petr Baudis <pasky@suse.cz>.
7ea8eb02
UD
2508
2509 * sysdeps/unix/sysv/linux/nscd_setup_thread.c (setup_thread):
715db78b 2510 Return zero in case the thread library is not NPTL.
7ea8eb02 2511
5c3a3dba
UD
2512 [BZ #5375]
2513 * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix locking when
2514 initializing interface list.
2515
85883123
UD
2516 [BZ #5378]
2517 * nis/nss_compat/compat-initgroups.c (getgrent_next_nss): Don't
2518 use result of nss_getgrgid_r if nothing was found. For other
2519 error return with a failure.
2520 Partially based on a patch by Petr Baudis <pasky@suse.cz>.
2521
3a632674
UD
2522 * locale/programs/ld-collate.c (collate_read): Fix loop to match
2523 macro name.
2524
b73f9135
UD
25252007-11-19 Ulrich Drepper <drepper@redhat.com>
2526
ee72b971
UD
2527 * sysdeps/posix/getaddrinfo.c (defaults_scopes, scopes): New variables.
2528 (get_scope): For IPv4 scope, use scopes table.
2529 (fini): Free scopes table if necessary.
2530 (free_scopelist): New function.
2531 (scopecmp): New function.
2532 (gaiconf_init): Also handle scopev4 entries.
2533 * posix/tst-rfc3484.c (do_test): Initialize scopes.
2534 * posix/tst-rfc3484-2.c (do_test): Likewise.
2535 * posix/gai.conf: Document scopev4 defaults.
2536 * posix/Makefile (tests): Add tst-rfc3484-3.
2537 * posix/tst-rfc3484-3.c: New file.
2538
f4a79765
UD
2539 * sysdeps/posix/getaddrinfo.c (default_labels): Describe entry for
2540 Teredo tunnels.
b73f9135
UD
2541 * posix/gai.conf: Update for current default tables.
2542
429bd64d
UD
25432007-11-19 Ulrich Drepper <drepper@redhat.com>
2544
2545 * po/tr.po: Update from translation team.
2546
3c9af259
RM
25472007-11-18 Roland McGrath <roland@frob.com>
2548
76cf9889
RM
2549 * manual/arith.texi (Remainder Functions): Spelling fix.
2550 From Shaun Silk <genix@mysoul.com.au>.
2551
3c9af259
RM
2552 * sysdeps/mach/hurd/bits/fcntl.h (O_CLOEXEC): Fix value.
2553
238346ab
UD
25542007-11-17 Ulrich Drepper <drepper@redhat.com>
2555
5879ad50
UD
2556 * po/zh_CN.po: Update from translation team.
2557
238346ab
UD
2558 * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
2559 Add sys/signalfd.h and sys/eventfd.h.
2560
b80b9c77
UD
25612007-11-15 Bruno Haible <bruno@clisp.org>
2562
2563 [BZ #5346]
2564 * intl/dcigettext.c (struct known_translation_t): Turn msgid into a
2565 union.
2566 (transcmp): Use the appropriate part of s1->msgid and s2->msgid.
2567 (DCIGETTEXT): Change the allocation of the 'search' variable so that
2568 it needs only fixed stack space. Delay the initialization of
2569 msgid_len until it is needed.
2570
2da2501c
AJ
25712007-11-15 Andreas Jaeger <aj@suse.de>
2572
2573 * sysdeps/ieee754/dbl-64/sincos.tbl: Fix size of union.
2574 Reported by Christoph Quirin Lauter <christoph.lauter@ens-lyon.fr>.
2575
68a6dcf5
UD
25762007-11-15 Ulrich Drepper <drepper@redhat.com>
2577
2578 * po/ko.po: Update from translation team.
2579
43850227
UD
25802007-11-14 Ulrich Drepper <drepper@redhat.com>
2581
1e2692c9
UD
2582 * sysdeps/unix/sysv/linux/check_native.c (__check_native): Simplify
2583 significantly. The device type is also part of the ifinfomsg data.
2584
84e6cc7c 2585 * po/sv.po: Update from translation team.
cbd52634 2586 * po/nl.po: Likewise.
84e6cc7c 2587
f9e2261b
UD
2588 * nscd/cache.c (prune_cache): If cache is empty, instruct caller
2589 to wake up in 24 hours.
2590
43850227
UD
2591 * nscd/gai.c (__ioctl): Define. Include check_native.c.
2592
5742e960
UD
25932007-11-13 Ulrich Drepper <drepper@redhat.com>
2594
1a821d82
UD
2595 * po/cs.po: Update from translation team.
2596 * po/pl.po: Likewise.
2597
773e79b3
UD
2598 * include/ifaddrs.h: Remove in6ai_temporary.
2599 (struct in6addrinfo): Add index element.
2600 Declare __check_native.
2601 * inet/Makefile (aux): Add check_native.
2602 * sysdeps/unix/sysv/linux/check_native.c: New file.
2603 * sysdeps/unix/sysv/linux/check_pf.c: No need to recognize
2604 IFA_F_TEMPORARY. Pass back ifa_index.
2605 * sysdeps/posix/getaddrinfo.c: Remove netlink compatibility code.
2606 (rfc3484_sort): Add new parameter. Implement rule 7 correctly:
2607 call __check_native if necessary.
2608 (getaddrinfo): Fill in index field. Use qsort_r instead of qsort
2609 to sort addresses. Pass information about the results.
2610 * posix/tst-rfc3484.c: Adjust for addition of index field and change
2611 of rfc3484_sort interface.
2612 * posix/tst-rfc3484-2.c: Likewise.
2613
e458144c
UD
2614 * stdlib/stdlib.h: Define __compar_d_fn_t. Declare qsort_r.
2615 * include/stdlib.h: Add hidden_proto for qsort_t and adjust protoype
2616 for _quicksort.
2617 * stdlib/msort.c (qsort): Now a wrapper around qsort_r.
2618 (qsort_r): Renamed from qsort. Take additional parameter and pass it
2619 on as third parameter to compare function and _quicksort.
2620 * stdlib/qsort.c (_quicksort): Take additional parameter and pass on
2621 to the compare function.
2622 * stdlib/Versions [libc] (GLIBC_2.8): Add qsort_r.
2623 * Versions.def: Add GLIBC_2.8 for libc.
2624
bd63f380
UD
2625 * posix/tst-rfc3484.c: Adjust for addition of prefixlen field.
2626 * posix/tst-rfc3484-2.c: Likewise.
2627
5742e960
UD
2628 * include/kernel-features.h: Moved to...
2629 * sysdeps/mach/hurd/kernel-features.h: ...here.
2630
a6ac7fdb
RM
26312007-09-13 H.J. Lu <hongjiu.lu@intel.com>
2632
2633 * sysdeps/i386/i586/memcpy_chk.S: New file.
2634 * sysdeps/i386/i586/mempcpy_chk.S: Likewise.
2635 * sysdeps/i386/i586/memset_chk.S: Likewise.
2636
6f3914d5
UD
26372007-11-12 Ulrich Drepper <drepper@redhat.com>
2638
2639 * include/ifaddrs.c (struct in6addrinfo): Add prefixlen field.
2640 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Always return
2641 list of interfaces. Also store prefix length.
2642 * sysdeps/posix/getaddrinfo.c (sort_result): Add prefixlen element.
2643 (rfc3484_sort): In rule 9, for IPv4 addresses count only matching
2644 prefix if source and destination address are in the same subnet.
2645 (getaddrinfo): Always call __check_pf. Fill in prefixlen field.
2646 Always look for matching record in in6ai list.
2647 Correct source_addr_len value for IPv6->IPv4 converted records.
2648
78cf5f6a
RM
26492007-11-11 Roland McGrath <roland@frob.com>
2650
2651 * include/kernel-features.h: New file.
2652
7f745396
UD
26532007-11-10 Ulrich Drepper <drepper@redhat.com>
2654
01e7fdbb
UD
2655 * sysdeps/pthread/aio_misc.c (handle_fildes_io): Avoid unnecessary
2656 complications for 64-bit platforms.
2657
7f745396
UD
2658 * sysdeps/unix/sysv/linux/open64.c: Move __open64_2 implementation to..
2659 * sysdeps/unix/sysv/linux/open64_2.c: ...here. New file.
2660 * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines): Add
2661 open64_2.
2662 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Add open and creat
2663 entries.
2664 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
2665 * sysdeps/wordsize-64/alphasort.c: New file.
2666 * sysdeps/wordsize-64/alphasort64.c: New file.
2667 * sysdeps/wordsize-64/fseeko.c: New file.
2668 * sysdeps/wordsize-64/fseeko64.c: New file.
2669 * sysdeps/wordsize-64/ftello.c: New file.
2670 * sysdeps/wordsize-64/ftello64.c: New file.
2671 * sysdeps/wordsize-64/ftw.c: New file.
2672 * sysdeps/wordsize-64/ftw64.c: New file.
2673 * sysdeps/wordsize-64/iofgetpos.c: New file.
2674 * sysdeps/wordsize-64/iofgetpos64.c: New file.
2675 * sysdeps/wordsize-64/iofopen.c: New file.
2676 * sysdeps/wordsize-64/iofopen64.c: New file.
2677 * sysdeps/wordsize-64/iofsetpos.c: New file.
2678 * sysdeps/wordsize-64/iofsetpos64.c: New file.
2679 * sysdeps/wordsize-64/lockf.c: New file.
2680 * sysdeps/wordsize-64/lockf64.c: New file.
2681 * sysdeps/wordsize-64/mkostemp.c: New file.
2682 * sysdeps/wordsize-64/mkostemp64.c: New file.
2683 * sysdeps/wordsize-64/mkstemp.c: New file.
2684 * sysdeps/wordsize-64/mkstemp64.c: New file.
2685 * sysdeps/wordsize-64/scandir.c: New file.
2686 * sysdeps/wordsize-64/scandir64.c: New file.
2687 * sysdeps/wordsize-64/tmpfile.c: New file.
2688 * sysdeps/wordsize-64/tmpfile64.c: New file.
2689 * sysdeps/wordsize-64/versionsort.c: New file.
2690 * sysdeps/wordsize-64/versionsort64.c: New file.
2691 * sysdeps/unix/sysv/linux/wordsize-64/aio_read.c: New file.
2692 * sysdeps/unix/sysv/linux/wordsize-64/aio_read64.c: New file.
2693 * sysdeps/unix/sysv/linux/wordsize-64/aio_write.c: New file.
2694 * sysdeps/unix/sysv/linux/wordsize-64/aio_write64.c: New file.
2695 * sysdeps/unix/sysv/linux/wordsize-64/creat64.c: New file.
2696 * sysdeps/unix/sysv/linux/wordsize-64/getdirentries.c: New file.
2697 * sysdeps/unix/sysv/linux/wordsize-64/getdirentries64.c: New file.
2698 * sysdeps/unix/sysv/linux/wordsize-64/lio_listio.c: New file.
2699 * sysdeps/unix/sysv/linux/wordsize-64/lio_listio64.c: New file.
2700 * sysdeps/unix/sysv/linux/wordsize-64/open64.c: New file.
2701 * sysdeps/unix/sysv/linux/wordsize-64/openat.c: New file.
2702 * sysdeps/unix/sysv/linux/wordsize-64/openat64.c: New file.
2703
2704 * crypt/sha256-crypt.c: Fix a comment.
2705 * crypt/sha512-crypt.c: Likewise.
2706
f6ed654c
UD
27072007-11-07 H.J. Lu <hongjiu.lu@intel.com>
2708
2709 * sysdeps/x86_64/memset.S: Add sfence after movnti.
2710
f2a8406a
UD
27112007-11-07 Ulrich Drepper <drepper@redhat.com>
2712
2713 [BZ #5277]
2714 * iconv/loop.c (STANDARD_TO_LOOP_ERR_HANDLER): If conversion failed
2715 because output buffer is too small break, don't loop.
2716 * iconvdata/Makefile (tests): Add bug-iconv6.
2717 * iconvdata/bug-iconv6.c: New file.
2718
7fe4e0e8
UD
27192007-11-06 Ulrich Drepper <drepper@redhat.com>
2720
9ca230d6
UD
2721 * stdio-common/vfprintf.c (vfprintf): Compute necessary buffer size
2722 with size_t type.
2723 * stdio-common/printf_fp.c (__print_fp): Change chars_needed type to
2724 size_t. Add casts where needed.
2725
7fe4e0e8
UD
2726 * nscd/selinux.c (nscd_request_avc_has_perm): When compiled with
2727 old headers, don't call avc_has_perm if we don't have the
2728 permission information.
2729
b92e3780
UD
27302007-11-05 Daniel Jacobowitz <dan@codesourcery.com>
2731
2732 * elf/rtld.c (dl_main): Use the page size to find the map start.
2733
ffb1b882
UD
27342007-11-05 Ulrich Drepper <drepper@redhat.com>
2735
94a749f6
UD
2736 * time/tzfile.c (__tzfile_read): Fix check for version 0 data files.
2737 Patch by Szymon Siwek <sls@poczta.wp.pl>.
2738
ffb1b882
UD
2739 * nscd/aicache.c (addhstaiX): Check herrno after IPv4 lookup only
2740 when the lookup call failed.
2741
2742 * nscd/nscd.h (struct database_dyn): Rename prunelock to prune_lock.
2743 Add prune_cond and wakeup_time.
2744 (CACHE_PRUNE_INTERNAL): Define.
2745 Update declarations of prune_cache and setup_thread.
2746 * nscd/connections.c (dbs): Update initializers.
2747 (CACHE_PRUNE_INTERNAL): Moved to nscd.h.
2748 (nscd_init): Default number of threads is now 4.
2749 (invalidate_cache): Take lock before calling prune_cache.
2750 (handle_request): If SELinux forbids the request, say so.
2751 (readylist_cond): Use static initializer.
2752 (nscd_run_prune): New function. Used only by pruning threads.
2753 (nscd_run_worder): Renamed from nscd_run. Remove support for pruning
2754 here.
2755 (fd_ready): Update nscd_run reference.
2756 (start_threads): No need to initialize readylist_cond.
2757 Start pruning threads separately.
2758 * nscd/nscd_setup_thread.c: Change return value type to int and always
2759 return 0.
2760 * sysdeps/unix/sysv/linux/nscd_setup_thread.c: Change return value type
2761 to int and return nonzero value if we can use the TID address hack.
2762 * nscd/cache.c (cache_add): If next wakeup time of cleanup thread for
2763 the database is later than the new entry's timeout, update the
2764 wakeup time and wake the cleanup thread.
2765 (prune_cache): Return seconds the next entry in the database is still
2766 valid. Remove locking for pruning here.
2767 * nscd/nscd.conf: Document default number of threads.
2768
4c48ef06
UD
27692007-10-31 Ulrich Drepper <drepper@redhat.com>
2770
41ff2a49
UD
2771 * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Make sure
2772 stack is properly aligned for the target function.
2773 Correct unwind info.
ffb1b882 2774
4c48ef06
UD
2775 * elf/rtld.c (dl_main): Initialize stack and pointer guard early
2776 when using auditing libraries.
2777
384ca551
UD
27782007-10-29 Ulrich Drepper <drepper@redhat.com>
2779
31e2791c
UD
2780 * resolv/Versions [libresolv] (GLIBC_PRIVATE): Add
2781 _nss_dns_getnetbyaddr2_r.
2782 * resolv/nss_dns/dns-host.c: Define _nss_dns_getnetbyaddr2_r. Pass
2783 extra parameter to getanswer_r.
2784 (_nss_dns_getnetbyaddr_r): Now a wrapper around
2785 _nss_dns_getnetbyaddr2_r.
2786
384ca551
UD
2787 * nscd/Makefile (nscd-modules): Replace gethstbynm2_r with
2788 gethstbynm3_r.
2789 * nscd/gethstbynm2_r.c: Remove.
2790 * nscd/gethstbynm3_r.c: New file.
2791 * nscd/aicache.c (addhstaiX): Use __gethostbyaddr2_r instead of
2792 __gethostbyaddr_r.
2793 * nscd/gethstbyad_r.c: Generate __gethostbyaddr2_r function. Define
2794 __gethostbyaddr_r compatibility wrapper.
2795 * nscd/hstcache.c (cache_addhst): Add ttl parameter. Use it when
2796 determining timeout of entry.
2797 (lookup): Take new parameter and pass it to __gethostbyname3_r and
2798 __gethostbyaddr2_r.
2799 (addhstbyX): Pass reference to variable for TTL to lookup and
2800 cache_addhst.
2801 * nss/Versions [glibc] (GLIBC_PRIVATE): Export __nss_passwd_lookup2,
2802 __nss_group_lookup2, __nss_hosts_lookup2, __nss_services_lookup2,
2803 and __nss_next2. Remove __nss_services_lookup.
2804 * nss/XXX-lookup.c: Name function now *_lookup2. Add new parameter.
2805 Add compat wrapper.
2806 * nss/getXXbyYY_r.c: Changes to call new *_lookup2 functions and
2807 __nss_next2.
2808 * nss/getXXent_r.c: Likewise.
2809 * nss/getnssent_r.c: Likewise.
2810 * nss/nsswitch.c (__nss_lookup): Add new parameter. If first function
2811 does not exist in module, try the optional second name.
2812 (__nss_next2): New function.
2813 (__nss_next): Now wrapper around __nss_next2.
2814 * nss/nsswitch.h: Adjust __nss_lookup prototype.
2815 Declare __nss_next2.
2816 Adjust definition of db_lookup_function type.
2817 * nss/service-lookup.c: Define NO_COMPAT.
2818 * include/netdb.h: Declare __gethostbyaddr2_r and __gethostbyname3_r.
2819 * inet/ether_hton.c: Use __nss_next2 instead of __nss_next.
2820 * inet/ether_ntoh.c: Likewise.
2821 * sunrpc/netname.c: Likewise.
2822 * sunrpc/publickey.c: Likewise.
2823 * inet/getnetgrent.c: Likewise. Adjust calls to __nss_lookup.
2824 * inet/gethstbyad_r.c (DB_LOOKUP_FCT): Change to __nss_hosts_lookup2.
2825 * inet/gethstbynm2_r.c (DB_LOOKUP_FCT): Likewise.
2826 * inet/gethstbynm_r.c (DB_LOOKUP_FCT): Likewise.
2827 * inet/gethstent_r.c (DB_LOOKUP_FCT): Likewise.
2828
2829 * nscd/aicache.c (addhstaiX): Fix default TTL handling.
2830
2831 * inet/getnetgrent.c (setup): Encrypt static pointer.
2832
88197030
UD
28332007-10-28 Ulrich Drepper <drepper@redhat.com>
2834
f160a450
UD
2835 [BZ #5204]
2836 * crypt/sha256c-test.c: Define TIMEOUT to 6 for ancient hardware.
2837 * crypt/sha512c-test.c: Likewise.
2838
4c6b2202
UD
2839 [BZ #5225]
2840 * stdio-common/vfscanf.c (_IO_vfwscanf): Don't misuse wp pointer
2841 to keep track of end of %[ format string element.
22c915ac
UD
2842 * stdio-common/Makefile (tests): Add bug20.
2843 * stdio-common/bug20.c: New file.
4c6b2202 2844
88197030
UD
2845 [BZ #5222]
2846 * elf/dl-load.c (_dl_rtld_di_serinfo): Correct handling of short
2847 path elements in counting mode.
2848
05d69147
UD
28492007-10-27 Andreas Jaeger <aj@suse.de>
2850
94833f11
UD
2851 [BZ #5040]
2852 * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLRDHUP): Add value.
2853
05d69147
UD
2854 [BZ #3112]
2855 * sysdeps/ia64/backtrace.c (init): Free shared library if incorrect.
2856 (__cleanup): Free shared library when exiting.
2857 * sysdeps/i386/backtrace.c (init): Free shared library if incorrect.
2858 (__cleanup): Free shared library when exiting.
2859
e6b29af8
UD
28602006-04-14 H.J. Lu <hongjiu.lu@intel.com>
2861
2862 [BZ #2549]
2863 * math/libm-test.inc (check_float_internal): Support
2864 denormalized return.
2865
ad3371fb
UD
28662007-10-23 Andreas Jaeger <aj@suse.de>
2867
2868 [BZ #5208]
2869 * sysdeps/unix/sysv/linux/readahead.c (__readahead): Use
2870 __LONG_LONG_PAIR to handle little endian byte order.
2871 Suggested by abhishekrai@google.com
2872
666aa020
UD
28732007-10-27 Ulrich Drepper <drepper@redhat.com>
2874
2875 * malloc/arena.c [!NO_THREADS]: Use ATFORK_MEM if defined.
2876
8ad343b3
UD
28772007-10-26 Ulrich Drepper <drepper@redhat.com>
2878
2879 * nscd/cache.c (prune_cache): Move test for modified file outside
2880 of locking.
2881
9251c568
AJ
28822007-10-21 Andreas Jaeger <aj@suse.de>
2883
2884 * manual/texinfo.tex: Update to latest version.
2885
2886 * manual/sysinfo.texi (System Parameters): Fix Formatting.
2887
2888 * manual/arith.texi (Status bit operations): Fix formatting.
2889
2890 * manual/errno.texi (Error Messages): Fix formatting.
2891
2892 * manual/sysinfo.texi (System Parameters): Fix formatting.
2893
2894 * manual/libc.texinfo: Update VERSION and UPDATED.
2895
260b2e06
RM
28962007-10-19 Roland McGrath <roland@redhat.com>
2897
2898 * elf/Makefile ($(objpfx)ld.so): Use $(AWK).
2899
46ae8850
JJ
29002007-10-06 David S. Miller <davem@davemloft.net>
2901
2902 * configure.in: Add sparcv9v2 and sparc64v2.
2903 * scripts/config.sub: Likewise.
2904 * configure: Regenerate.
2905 * elf/elf.h (HWCAP_SPARC_N2): New.
2906 * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Bump to 8.
2907 * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add 'v9v2'.
2908 (HWCAP_IMPORTANT): Add HWCAP_SPARC_N2.
2909 * sysdeps/sparc/sparc32/sparcv9/sparcv9v2/memcpy.S: New file.
2910 * sysdeps/sparc/sparc32/sparcv9/sparcv9v2/memset.S: New file.
2911 * sysdeps/sparc/sparc64/sparcv9v2/memcpy.S: New file.
2912 * sysdeps/sparc/sparc64/sparcv9v2/memset.S: New file.
2913
6fbfbd80
UD
29142007-10-18 Ulrich Drepper <drepper@redhat.com>
2915
2916 * sunrpc/clnt_udp.c (clntudp_call): Don't block in recvfrom call
2917 even if the poll result indicates there is data to read.
2918 Patch by Jeff Moyer <jmoyer@redhat.com>.
2919
39cfc9fa
RM
29202007-10-18 Roland McGrath <roland@redhat.com>
2921
2922 * elf/elf.h (NT_PPC_VMX): New macro.
28919a77 2923
39cfc9fa 29242007-10-17 Ulrich Drepper <drepper@redhat.com>
28919a77
UD
2925
2926 * version.h (VERSION): Set to 2.7.90.
2927
ed13ccf1
JJ
29282007-10-17 Jakub Jelinek <jakub@redhat.com>
2929
2930 * sysdeps/x86_64/memset.S (bzero): Renamed to __bzero. Add
2931 weak_alias.
2932
ee9fd869
RM
29332007-10-17 Roland McGrath <roland@frob.com>
2934
2935 * sysdeps/mach/hurd/bits/fcntl.h [__USE_GNU__] (F_DUPFD_CLOEXEC): New.
2936 * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Implement it.
2937
1aa5e4d7
UD
29382007-10-17 Ulrich Drepper <drepper@redhat.com>
2939
50c9fbbf 2940 * version.h (VERSION): Bump to 2.7.
777bc4bf 2941 * include/features.h (__GLIBC_MINOR__): Bump to 7.
50c9fbbf 2942
58423c7d
UD
2943 [BZ #5186]
2944 * time/tzset.c (__tz_convert): Don't force testing for a change of
2945 TZ if not called from localtime. But then also see whether the
2946 file changed, in case __use_tzfile is set.
2947
1aa5e4d7
UD
2948 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define F_DUPFD_CLOEXEC.
2949 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
2950 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
2951 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
2952 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
2953 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
2954 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
2955 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
2956
fc4837e5
UD
29572007-10-17 Jakub Jelinek <jakub@redhat.com>
2958
2959 * sysdeps/posix/getaddrinfo.c (getaddrinfo): When sorting addresses
2960 and admin selects to be able to replace the gai.conf file, lock
2961 data structures around the qsort call.
2962
62eaf7c8
UD
29632007-10-17 Ulrich Drepper <drepper@redhat.com>
2964
406f28db
UD
2965 * sysdeps/x86_64/cacheinfo.c: Comment out code added in support of
2966 new memset.
ac1cb5da 2967 * sysdeps/x86_64/memset.S: Revert to old version for now. The cost is
406f28db
UD
2968 too high for the improvements. Implement bzero unconditionally for
2969 use in libc.
ac1cb5da
UD
2970
29712007-10-17 Ulrich Drepper <drepper@redhat.com>
2972 Jakub Jelinek <jakub@redhat.com>
2973
62eaf7c8
UD
2974 * time/tzfile.c (__tzfile_read): Read POSIX TZ string if available
2975 even when time_t is 32-bit.
2976 (__tzfile_compute): Override POSIX TZ string STD/DST zone names if
2977 timezone data read by __tzfile_default. Ensure __tzname[0] is
2978 always set after the search.
2979
6a649d25
UD
29802007-10-16 Ulrich Drepper <drepper@redhat.com>
2981
2982 * time/tzfile.c (__tzfile_read): Help the compiler recognize
2983 unreachable code on 32-bit machines.
2984
800d6f9e
UD
29852007-10-16 Jakub Jelinek <jakub@redhat.com>
2986
2987 [BZ #5184]
2988 * time/strftime_l.c: Include stdbool.h.
2989 (my_strftime): New wrapper, old function renamed to...
2990 (__strftime_internal): ... new function. Add tzset_called
2991 argument, pass it down to recursive calls, don't call tzset ()
2992 if already true, set to true after call to tzset ().
62eaf7c8 2993
69819d92
UD
29942007-10-16 Ulrich Drepper <drepper@redhat.com>
2995
2996 * time/tzfile.c (__tzfile_read): Take extra memory requested by caller
2997 into account when copying TZ string.
2998
62eaf7c8
UD
29992007-10-16 Jakub Jelinek <jakub@redhat.com>
3000
3001 * time/tzfile.c (__tzfile_compute): For use_last case set i to
3002 num_transition rather than num_transitions - 1.
3003
0308ad66
JJ
30042007-10-16 Jakub Jelinek <jakub@redhat.com>
3005
8d137b60
JJ
3006 * sysdeps/x86_64/memset.S (memset): Fix sse2_nt_move
3007 PIC indirect jump.
3008
0308ad66
JJ
3009 * sysdeps/x86_64/memset.S: Jump from bzero to memset using
3010 a local label rather than HIDDEN_JUMPTARGET.
3011
e2b393bc
UD
30122007-10-15 Ulrich Drepper <drepper@redhat.com>
3013
3014 * sysdeps/x86_64/cacheinfo.c (__x86_64_shared_cache_size): Define.
3015 (init_cacheinfo): Initialize it.
3016 * sysdeps/x86_64/memset.S: Use __x86_64_shared_cache_size.
3017 Always define bzero.
3018 Remove non-glibc code.
3019 * sysdeps/x86_64/bzero.S: Make an empty file.
3020
30212007-10-15 H.J. Lu <hongjiu.lu@intel.com>
3022
3023 * sysdeps/x86_64/cacheinfo.c
3024 (__x86_64_preferred_memory_instruction): New.
3025 (init_cacheinfo): Initialize __x86_64_preferred_memory_instruction.
3026
3027 * sysdeps/x86_64/memset.S: Rewrite.
3028
0fbfcb7b
RM
30292007-10-15 Roland McGrath <roland@redhat.com>
3030
3031 * po/libc.pot: Regenerated.
3032
2884dad4
UD
30332007-10-15 Ulrich Drepper <drepper@redhat.com>
3034
e2b393bc 3035 * nss/getXXbyYY_r.c (REENTRANT_NAME): Mangle startp and start_fct
d96a2216
UD
3036 pointers.
3037
2884dad4
UD
3038 [BZ #3425]
3039 * resolv/nss_dns/dns-host.c (getanswer_r): Fail with
3040 NSS_STATUS_NOTFOUND if the server replied with only a CNAME and no
3041 address record to T_A/T_AAAA requests.
3042
89dc9d4c
UD
30432007-10-14 Ulrich Drepper <drepper@redhat.com>
3044
8d97ac13
UD
3045 * posix/glob.c: Reimplement link_exists_p to use fstatat64.
3046
1b6aa63f
UD
3047 * posix/glob.c: Add some branch prediction throughout.
3048
895a08c0
UD
3049 * nscd/nscd_getgr_r.c (nscd_getgr_r): Store result of successful
3050 read from nscd.
3051
6f55ed88
UD
3052 * sysdeps/posix/getaddrinfo.c (struct sort_result): Add
3053 service_order.
8d62c8ab
UD
3054 (rfc3484_sort): Make sure that even if qsort doesn't support
3055 stable sorting out sorting here is stable by comparing service_order.
6f55ed88 3056 (getaddrinfo): Initialize service_order.
a94673e6
UD
3057 * posix/tst-rfc3484.c (do_test): Adjust for addition of
3058 service_order field to sorting structure.
dfcf64ce 3059 * posix/tst-rfc3484-2.c (do_test): Likewise.
6f55ed88 3060
fa76dde2
UD
3061 * include/time.h: Declare __tzset_parse_tz and __tzset_compute.
3062 * time/tzset.c (tzset_internal): Break TZ string parsing out into
3063 __tzset_parse_tz and updating of daylight, timezone, tzname into
3064 update_vars.
3065 (__tz_compute): Renamed from tz_compute. Take additional parameters.
3066 (__tz_convert): Updating of tm_isdst, tm_zone, and tm_gmtoff now
3067 happens in __tz_compute.
3068 * time/tzfile.c (__tzfile_read): Also read TZ string.
3069 (find_transition): Fold into __tzfile_compute.
3070 (__tzfile_compute): For times beyond the last transition try to
3071 use the TZ string.
3072 * timezone/tst-timezone.c: Information in daylight and tzname does
3073 change for Asia/Tokyo timezone with more concrete information.
3074 Remove the test.
3075
3076 * include/stdio.h: Add libc_hidden_proto for ftello.
3077 * libio/ftello.c: Add libc_hidden_def.
3078
89dc9d4c
UD
3079 [BZ #1140]
3080 * time/tzfile.c (__tzfile_compute): Compute tzname[] values based
3081 on the specified time and not the last entries in the file. Move
3082 code to determine tzname[] to...
3083 (find_transition): ...here. Add ugly guess for times before the
3084 first transition.
3085
f7140274
UD
30862007-10-13 Ulrich Drepper <drepper@redhat.com>
3087
cfca0aa3
UD
3088 [BZ #3195]
3089 * nscd/nscd_getai.c (__nscd_getai): Set errno to 0 in case we found
3090 no entry.
3091 * nscd/nscd_getgr.c (nscd_getgr_r): Likewise.
3092 * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
3093 * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
3094 * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
3095
43d3e6bd
UD
3096 * nscd/nscd_getgr_r.c (nscd_getgr_r): Optimize a bit: use simpler
3097 read mechanism when there are no group members and avoid no-op
3098 read syscall in this case.
3099
f7140274
UD
3100 [BZ #3242]
3101 * nscd/nscd_helper.c (wait_on_socket): Take timeout as parameter.
3102 (__readall): If reading failed due to EAGAIN error wait a bit
3103 and possibly try again.
3104 (__readvall): Likewise.
3105
656f02ce
UD
31062007-10-13 Bruno Haible <bruno@clisp.org>
3107
3108 * intl/dcigettext.c (_nl_find_msg): Unlock the conversions_lock
3109 when we cannot recode the message.
3110
0ea49677
UD
31112007-10-13 Ulrich Drepper <drepper@redhat.com>
3112
3113 [BZ #4359]
3114 * libio/__freading.c (__freading): Don't return true for
ed36f224
UD
3115 write-only streams. For read/write streams, check whether we
3116 performed a read operation already.
7e39d802
UD
3117 * libio/Makefile (tests): Add tst-ext2.
3118 * libio/tst-ext2.c: New file.
0ea49677 3119
78a9b2dc
UD
31202007-10-12 Ulrich Drepper <drepper@redhat.com>
3121
fab1a490
UD
3122 * locale/programs/repertoire.c (repertoire_read): Always free
3123 memory for repertoire file name [Coverity CID 270].
3124
78a9b2dc
UD
3125 * elf/cache.c (save_aux_cache): Free memory allocated for
3126 temporary file name [Coverity CID 267].
3127
29d49a1a
JJ
31282007-10-12 Jakub Jelinek <jakub@redhat.com>
3129
3130 * misc/Makefile (headers): Add bits/error.h.
3131
d074d36d
UD
31322007-10-12 Ulrich Drepper <drepper@redhat.com>
3133
b7d1c5fa
UD
3134 * posix/fnmatch_loop.c: Take rule index returned as part of
3135 findidx return value into account when accessing weights.
3136 * posix/regcomp.c: Likewise.
3137 * posix/regexec.c: Likewise.
3138
d074d36d
UD
3139 * locale/programs/ld-collate.c (collate_read): Optimize a bit.
3140 (skip_to): Fix problems with parameter of elifdef/elifndef.
3141
26a51060
UD
31422007-10-11 Ulrich Drepper <drepper@redhat.com>
3143
3144 * iconv/gconv_simple.c: Add some branch prediction.
3145
6dd3748b
UD
31462007-10-12 Jakub Jelinek <jakub@redhat.com>
3147
3148 * locale/programs/ld-collate.c (collate_read): If ignore_content
3149 and nowtok is tok_define, eat any tok_eol tokens.
3150
d0b5557d
JJ
31512007-10-11 Jakub Jelinek <jakub@redhat.com>
3152
3153 * sysdeps/gnu/netinet/tcp.h: Include sys/socket.h if __USE_MISC.
3154 (struct tcp_md5sig): Change tcpm_addr type to struct sockaddr_storage.
3155
3156 * inet/netinet/in.h: Don't include bits/socket.h.
3157 * sysdeps/unix/sysv/linux/bits/socket.h: Only check _SYS_SOCKET_H
3158 macro.
3159 * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Likewise.
3160
3a054d7a
UD
31612007-10-10 Ulrich Drepper <drepper@redhat.com>
3162
3163 * locale/programs/locfile-token.h: Remove tok_elif, add tok_elifdef
3164 and tok_elifndef.
3165 * locale/programs/locfile-kw.gperf: Likewise.
3166 * locale/programs/ld-collate.c: Implement primitive preprocessor.
3167
c06b7169
UD
31682007-10-10 Jakub Jelinek <jakub@redhat.com>
3169
3170 * stdio-common/printf-parse.h: Include string.h and wchar.h.
3171 (__find_specwc): Change into __extern_always_inline function.
3172 (__find_specmb): Likewise. Remove ps argument. Use __strchrnul.
3173 (__parse_one_specmb): Remove ps argument.
3174 * stdio-common/vfprintf.c (vfprintf): Remove mbstate variable.
3175 Adjust __find_specmb and __parse_one_specmb callers.
3176 * stdio-common/printf-prs.c (parse_printf_format): Likewise.
3177 * stdio-common/printf-parsemb.c (__find_specwc, __find_specmb):
3178 Removed.
3179 (__parse_one_specmb): Remove ps argument, adjust __find_specmb
3180 caller.
3181
5a01ab7b
UD
31822007-10-09 Ulrich Drepper <drepper@redhat.com>
3183
3184 * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Work around problem
3185 with some Pentium Ds.
3186
e3f8e049
UD
31872007-10-08 Ulrich Drepper <drepper@redhat.com>
3188
3189 * sysdeps/unix/sysv/linux/eventfd_read.c (eventfd_read): Use
3190 __read not read.
3191 * sysdeps/unix/sysv/linux/eventfd_write.c (eventfd_write): Use
3192 __write not write.
3193
a1a363d2
UD
31942007-10-07 Ulrich Drepper <drepper@redhat.com>
3195
a1160714
UD
3196 [BZ #181]
3197 * locale/C-time.c: Set week_1stday data to 19971201.
659a9013
UD
3198 * locale/programs/ld-time.c (time_finish): Default for
3199 first_workday is Monday.
a1160714 3200
bb27a6eb
UD
3201 [BZ #2633]
3202 * wcsmbs/wchar.h: Move many C99 functions into std namespace.
3203
c8d48fae
UD
3204 [BZ #5103]
3205 * posix/glob.c (glob): Recognize patterns starting \/.
3206 * posix/tst-gnuglob.c (find_file): Handle absolute path names.
3207 (main): Add test for pattern starting \/.
3208
a1a363d2
UD
3209 * misc/error.h: Use __const instead of const.
3210 * misc/bits/error.h: Likewise.
3211
32122007-10-07 Andreas Jaeger <aj@suse.de>
3213
3214 * include/bits/error.h: New file.
3215
3216 * misc/bits/error.h (error_at_line): Fix prototype.
3217
71894681
UD
32182007-10-06 Ulrich Drepper <drepper@redhat.com>
3219
a6fa5328
UD
3220 [BZ #3924]
3221 * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix a few
3222 more little bugs in creating the stack frame when pltexit has to
3223 be called.
3224
8c7661bc 3225 * nscd/nscd_helper.c (__nscd_cache_search): Prevent endless loops.
50607309 3226 * nscd/connections.c (verify_persistent_db): Recognize circular lists.
8c7661bc 3227
c039eedd
UD
3228 [BZ #4407]
3229 * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Fix *signgamp for -0.0.
3230 * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
3231 * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
3232 * math/libm-test.inc: Add test for this case.
3233
71894681
UD
3234 [BZ #5010]
3235 * sunrpc/svc.c (struct svc_callout): Add sc_mapped element.
3236 (svc_register): Initialize sc_mapped. Set to TRUE if call to
3237 map service succeeded.
3238 (svc_is_mapped): New function.
3239 (svc_unregister): Use it before trying to unmap service.
3240
34c2c092
UD
32412007-10-05 Ulrich Drepper <drepper@redhat.com>
3242
d10737e4
UD
3243 * timezone/zic.c: Update from tzcode2007h.
3244
3245 [BZ #5063]
3246 * timezone/africa: Update from tzdata2007h.
3247 * timezone/antarctica: Likewise.
3248 * timezone/asia: Likewise.
3249 * timezone/australasia: Likewise.
3250 * timezone/europe: Likewise.
3251 * timezone/leapseconds: Likewise.
3252 * timezone/northamerica: Likewise.
3253 * timezone/southamerica: Likewise.
3254 * timzeone/zone.tab: Likewise.
3255
0304f168
UD
3256 [BZ #5104]
3257 * elf/do-lookup.h (do_lookup_x): Don't ignore STT_COMMON symbols.
3258
a83b5649
UD
3259 [BZ #5113]
3260 * string/bits/string2.h (__strdup): Cast parameters to calloc to
3261 avoid warning with -Wconversion.
3262 (__strndup): Likewise.
c039eedd 3263 Half the patch by Christian Iseli <christian.iseli@licr.org>.
a83b5649 3264
3e6ce4d7
UD
3265 [BZ #5112]
3266 * nscd/connections.c (restart): Don't resync if database is
3267 disabled. Patch mostly by Brian De Wolf <bldewolf@csupomona.edu>.
3268
8e351378
UD
3269 * sysdeps/gnu/netinet/tcp.h: Define TCP_MD5SIG, TCP_MD5SIG_MAXKEYLEN,
3270 struct tcp_md5sig. Extend struct tcp_info according to recent kernels.
3271
3272 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add eventfd,
3273 evetnfd_read, eventfd_write.
3274 * sysdeps/unix/sysv/linux/eventfd.c: New file.
3275 * sysdeps/unix/sysv/linux/eventfd_read.c: New file.
3276 * sysdeps/unix/sysv/linux/eventfd_write.c: New file.
3277 * sysdeps/unix/sysv/linux/sys/eventfd.h: New file.
d10737e4 3278 * sysdeps/unix/sysv/linux/Versions: Export eventfd, eventfd_read,
8e351378
UD
3279 eventfd_write for GLIBC_2.7.
3280
34c2c092
UD
3281 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add signalfd.
3282 * sysdeps/unix/sysv/linux/signalfd.c: New file.
3283 * sysdeps/unix/sysv/linux/sys/signalfd.h: New file.
3284 * sysdeps/unix/sysv/linux/Versions: Export signalfd for GLIBC_2.7.
3285
6789aaaa 32862007-10-04 Jakub Jelinek <jakub@redhat.com>
375d9429
UD
3287
3288 * stdlib/msort.c: Include stdint.h.
3289 (struct msort_param): New type.
3290 (msort_with_tmp): Use struct msort_param pointer for unchanging
3291 parameters. Add optimized handling for several common sizes
3292 and indirect sorting mode.
3293 (qsort): Adjust msort_with_tmp callers. For big S use indirect
3294 sorting.
3295 Suggested by Belazougui Djamel .
3296
3297 * stdlib/Makefile (tests): Add tst-qsort2.
3298 * stdlib/tst-qsort2.c: New test.
3299
b80bfc8b
UD
33002007-10-04 Ulrich Drepper <drepper@redhat.com>
3301
174420d2
UD
3302 * login/login_tty.c (login_tty): The Linux kernel can return EBUSY
3303 for dup2 in case another thread races with the current one. Retry
3304 in this case.
3305
b80bfc8b
UD
3306 * misc/error.h: Remove support for use outside of libc. We have to
3307 include <features.h> now. Include <bits/error.h> if possible.
3308 * misc/bits/error.h: New file.
3309
6789aaaa 33102007-10-03 Jakub Jelinek <jakub@redhat.com>
ee868c89 3311
e5dd2178
UD
3312 * string/bits/string3.h (memcpy, memmove, mempcpy, memset, bcopy,
3313 bzero, strcpy, stpcpy, strncpy, strcat, strncat): Use
3314 __extern_always_inline functions unconditionally, drop macros.
3315
ac97dec1
UD
3316 * misc/sys/cdefs.h (__REDIRECT_LDBL, __REDIRECT_NTH_LDBL): New macros.
3317 * wcsmbs/bits/wchar2.h (__swprintf_alias, __vswprintf_alias): Use
3318 __REDIRECT_NTH_LDBL macro rather than __REDIRECT_NTH.
3319
ee868c89
UD
3320 * misc/sys/cdefs.h (__extern_always_inline): For GCC 4.3+
3321 add __artificial__ attribute.
3322
80e069e0
UD
33232007-10-02 Ulrich Drepper <drepper@redhat.com>
3324
6e682cf5
UD
3325 * string/strcoll_l.c (STRCOLL): Correct handling of switching from
3326 backward to forward direction.
3327
90241a20
UD
3328 * string/strcoll_l.c (STRCOLL): Correct test for alloca use.
3329
80e069e0
UD
3330 [BZ #645]
3331 * locale/programs/ld-collate.c (collate_finish): Compare against last
3332 used section which is known to have rules defined.
3333 (collate_read): After order_start, correctly record order of sections
3334 and queue sections up.
3335
035ef8d7
UD
33362007-10-01 Ulrich Drepper <drepper@redhat.com>
3337
95bddc0c
UD
3338 [BZ #5071]
3339 * malloc/malloc.c (mremap_chunk): Avoid resizing of new block has
3340 the same number of pages.
3341 Patch by Tomash Brechko <tomash.brechko@gmail.com>.
3342
c8caf089
UD
3343 * locale/programs/ld-collate.c (collate_read): After initial copy
3344 statement, continue in state 0.
3345
035ef8d7
UD
3346 * include/stdio_ext.h (__fsetlocking): Define as macro.
3347
592a95ee
UD
33482007-09-30 Ulrich Drepper <drepper@redhat.com>
3349
56ebeb41
UD
3350 * locale/programs/ld-collate.c (collate_finish): Compare all bytes
3351 of section order.
3352
592a95ee
UD
3353 * po/pt_BR.po: Fix typo.
3354
6c522e21
UD
33552007-09-29 Ulrich Drepper <drepper@redhat.com>
3356
8ad5c3cd
UD
3357 * iconvdata/Makefile (modules): Add ISO8859-9E.
3358 (distribute): Add iso8859-9e.c.
3359 (gen-8bit-gap-modules): Add iso8859-9e.
3360 * iconvdata/iso8859-9e.c: New file.
3361 * iconvdata/gconv-modules: Add entries for ISO-8859-9E.
3362 * iconvdata/TESTS: Likewise.
3363 * iconvdata/tst-tables.sh: Likewise.
3364
3365 * iconvdata/koi8-r.c (HAS_HOLES): Define to 0.
3366
6c522e21
UD
3367 * locale/iso-639.def: Add several new entries.
3368
385b4cf4
UD
33692007-09-24 Jakub Jelinek <jakub@redhat.com>
3370
3371 * sysdeps/generic/ldsodefs.h (struct dl_scope_free_list): Store
3372 void * pointers instead of struct link_map **.
3373 (_dl_scope_free): Change argument type to void *.
3374 * include/link.h (struct link_map): Change type of l_reldeps
3375 to struct link_map_reldeps, move l_reldepsact into that
3376 struct too.
3377 * elf/dl-deps.c: Include atomic.h.
3378 (_dl_map_object_deps): Only change l->l_initfini when it is
3379 fully populated, use _dl_scope_free for freeing it. Optimize
3380 removal of libs from reldeps by using l_reserved flag, when
3381 some removal is needed, allocate a new list instead of
3382 reallocating and free the old with _dl_scope_free. Adjust
3383 for l_reldeps and l_reldepsact changes.
3384 * elf/dl-lookup.c (add_dependency): Likewise. Reorganize to allow
3385 searching in l_initfini and l_reldeps without holding dl_load_lock.
3386 * elf/dl-fini.c (_dl_sort_fini): Adjust for l_reldeps and
3387 l_reldepsact changes.
3388 * elf/dl-close.c (_dl_close_worker): Likewise.
3389 * elf/dl-open.c (_dl_scope_free): Change argument type to void *.
3390
90bf831b
UD
33912007-09-28 Ulrich Drepper <drepper@redhat.com>
3392
3393 * iconvdata/Makefile (modules): Add KOI8-RU.
3394 (distribute): Add koi8-ru.c.
3395 (gen-8bit-gap-modules): Add koi8-ru.
3396 * iconvdata/koi8-ru.c: New file.
3397 * iconvdata/gconv-modules: Add entries for KOI8-RU.
3398 * iconvdata/TESTS: Likewise.
3399 * iconvdata/tst-tables.sh: Likewise.
3400
3401 * iconvdata/koi8-r.c (HAS_HOLES): Define to 0.
3402
d6cd6bf4
UD
34032007-09-26 Jakub Jelinek <jakub@redhat.com>
3404
3405 * misc/sys/cdefs.h (__warndecl, __errordecl): For GCC 4.3+ define
3406 with __warning__/__error__ attributes.
3407 (__warnattr): Define.
3408 * stdlib/bits/stdlib.h (__realpath_chk_warn, __ptsname_r_chk_warn,
3409 __mbstowcs_chk_warn, __wcstombs_chk_warn): New aliases with
3410 __warnattr.
3411 (realpath, ptsname_r, mbstowcs, wcstombs): Call __*_chk_warn instead
3412 of __*_chk if compile time detectable overflow is found.
3413 * libio/bits/stdio2.h (__fgets_chk_warn, __fread_chk_warn,
3414 __fgets_unlocked_chk_warn, __fread_unlocked_chk_warn): New aliases
3415 with __warnattr.
3416 (fgets, fread, fgets_unlocked, fread_unlocked): Call __*_chk_warn
3417 instead of __*_chk if compile time detectable overflow is found.
3418 (__gets_alias): Rename to...
3419 (__gets_warn): ... this. Add __warnattr.
3420 (gets): Call __gets_warn instead of __gets_alias.
3421 * socket/bits/socket2.h (__recv_chk_warn, __recvfrom_chk_warn): New
3422 aliases with __warnattr.
3423 (recv, recvfrom): Call __*_chk_warn instead of __*_chk if compile
3424 time detectable overflow is found.
3425 * posix/bits/unistd.h (__read_chk_warn, __pread_chk_warn,
3426 __pread64_chk_warn, __readlink_chk_warn, __readlinkat_chk_warn,
3427 __getcwd_chk_warn, __confstr_chk_warn, __getgroups_chk_warn,
3428 __ttyname_r_chk_warn, __getlogin_r_chk_warn, __gethostname_chk_warn,
3429 __getdomainname_chk_warn): New aliases with __warnattr.
3430 (read, pread, pread64, readlink, readlinkat, getcwd, confstr,
3431 getgroups, ttyname_r, getlogin_r, gethostname, getdomainname): Call
3432 __*_chk_warn instead of __*_chk if compile time detectable overflow
3433 is found.
3434 (__getgroups_chk): Rename argument to __listlen from listlen.
3435 (__getwd_alias): Rename to...
3436 (__getwd_warn): ... this. Add __warnattr.
3437 (getwd): Call __getwd_warn instead of __getwd_alias.
3438 * wcsmbs/bits/wchar2.h (__wmemcpy_chk_warn, __wmemmove_chk_warn,
3439 __wmempcpy_chk_warn, __wmemset_chk_warn, __wcsncpy_chk_warn,
3440 __wcpncpy_chk_warn, __fgetws_chk_warn, __fgetws_unlocked_chk_warn,
3441 __mbsrtowcs_chk_warn, __wcsrtombs_chk_warn, __mbsnrtowcs_chk_warn,
3442 __wcsnrtombs_chk_warn): New aliases with __warnattr.
3443 (wmemcpy, wmemmove, wmempcpy, wmemset, mbsrtowcs, wcsrtombs,
3444 mbsnrtowcs, wcsnrtombs): Call __*_chk_warn instead of __*_chk if
3445 compile time detectable overflow is found.
3446 (wcsncpy, wcpncpy): Likewise. For constant __n fix check whether
3447 to use __*_chk or not.
3448 (fgetws, fgetws_unlocked): Divide __bos by sizeof (wchar_t), both
3449 in comparisons which function should be called and in __*_chk*
3450 arguments. Call __*_chk_warn instead of __*_chk if compile time
3451 detectable overflow is found.
3452 (swprintf, vswprintf): Divide __bos by sizeof (wchar_t) in
3453 __*_chk argument.
3454 * debug/tst-chk1.c (do_test): Add a few more tests.
3455
408cfca0
UD
34562007-09-24 Ulrich Drepper <drepper@redhat.com>
3457
3458 [BZ #5058]
3459 * intl/gettextP.h (struct loaded_domain): Add conversions_lock member.
3460 * intl/loadmsgcat.c (_nl_load_domain): Initialize conversions_lock.
3461 (_nl_unload_domain): Finalize conversions_lock.
3462 * intl/dcigettext.c (_nl_find_msg): Take conversions_lock before
3463 handling table of known conversions.
3464
e6eec9ce
JJ
34652007-09-24 Jakub Jelinek <jakub@redhat.com>
3466
3467 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Use
3468 close_not_cancel_no_status instead of close.
3469
a532a41d
UD
34702007-09-13 Aurelien Jarno <aurelien@aurel32.net>
3471
682268ef 3472 [BZ #5028]
408cfca0 3473 * posix/regcomp.c (lookup_collation_sequence_value): Check that
a532a41d
UD
3474 nrules != 0 for multibyte chars.
3475
dec9ed9e
UD
34762007-09-23 Ulrich Drepper <drepper@redhat.com>
3477
91633816
UD
3478 * resolv/ns_print.c (ns_sprintrrf): Handle ns_t_a6 and ns_t_opt.
3479 Provide better error message in case the type is unknown.
3480
9cc198f6
UD
3481 [BZ #4963]
3482 * wcsmbs/wcsnlen.c: Don't reference before checking the length.
3483 * string/stratcliff.c: Make usable to test wide char functions.
3484 * wcsmbs/wcsatcliff.c: New file.
3485 * wcsmbs/Makefiel (tests): Add wcsatcliff.
3486
27f3d446
UD
3487 [BZ #4972]
3488 * iconvdata/Makefile (modules): Add MAC-CENTRALEUROPE.
3489 (distribute): Add mac-centraleurope.c.
3490 (gen-8bit-gap-modules): Add mac-centraleurope.
3491 * iconvdata/mac-centraleurope.c: New file.
3492 * iconvdata/gconv-modules: Add entries for MAC-CENTRALEUROPE.
3493 * iconvdata/TESTS: Likewise.
3494 * iconvdata/tst-tables.sh: Likewise.
3495
dec9ed9e
UD
3496 [BZ #5043]
3497 * iconv/iconv_open.c (iconv_open): For large codeset names use malloc.
3498
0435403c
UD
34992007-09-21 Ulrich Drepper <drepper@redhat.com>
3500
3501 * sysdeps/x86_64/cacheinfo.c (__x86_64_data_cache_size_half): Renamed
3502 from __x86_64_core_cache_size_half.
3503 (init_cacheinfo): Compute shared cache size for AMD processors with
3504 shared L3 correctly.
3505 * sysdeps/x86_64/memcpy.S: Adjust for __x86_64_data_cache_size_half
3506 name change.
3507 Patch in large parts by Evandro Menezes.
3508
c3266dc0
UD
35092007-09-19 Ulrich Drepper <drepper@redhat.com>
3510
715899d1
UD
3511 * elf/dl-lookup.c (add_dependency): Handle failing memory
3512 allocation for dependency list. Remove unnecessary check.
3513
e1db0493
UD
3514 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid unnecessary
3515 open/close when determining source addresses.
3516
c3266dc0
UD
3517 * crypt/Makefile (libcrypt-routines): Add sha256-crypt, sha256,
3518 sha512-crypt, and sha512.
3519 (tests): Add sha256test, sha256c-test, sha512test, and sha512c-test.
3520 (distribute): Add sha256.h and sha512.h.
3521 * crypt/crypt-entry.c (crypt): Recognize the new $5$ and $6$ prefixes
3522 and call the appropriate code.
3523 * crypt/sha256-crypt.c: New file.
3524 * crypt/sha256.c: New file.
3525 * crypt/sha256.h: New file.
3526 * crypt/sha256c-test.c: New file.
3527 * crypt/sha256test.c: New file.
3528 * crypt/sha512-crypt.c: New file.
3529 * crypt/sha512.c: New file.
3530 * crypt/sha512.h: New file.
3531 * crypt/sha512c-test.c: New file.
3532 * crypt/sha512test.c: New file.
3533
ddf51ecb
JJ
35342007-09-19 Jakub Jelinek <jakub@redhat.com>
3535
3536 * misc/bits/syslog.h (syslog): Remove extraneous argument from
3537 the inline, pass __USE_FORTIFY_LEVEL - 1 as second argument to
3538 __syslog_chk.
3539
b90395e6
UD
35402007-09-18 Jakub Jelinek <jakub@redhat.com>
3541
76c0bea7
JJ
3542 * locale/programs/charmap-dir.c (charmap_aliases): Use %ms instead of
3543 %as in fscanf format strings.
3544
00680568
JJ
3545 * sysdeps/sparc/sparc32/elf/start.S: Remove cfi_* markup.
3546 * sysdeps/sparc/sparc64/elf/start.S: Likewise.
c3266dc0
UD
3547 * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__thread_start):
3548 Likewise.
3549 * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__thread_start):
3550 Likewise.
00680568 3551
b90395e6
UD
3552 * sysdeps/generic/ldsodefs.h (DL_LOOKUP_GSCOPE_LOCK): New definition.
3553 * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Or in
3554 DL_LOOKUP_GSCOPE_LOCK into flags after THREAD_GSCOPE_SET_FLAG ().
3555 * elf/dl-sym.c (do_sym): Likewise.
3556 * include/link.h (struct link_map): Add l_serial field.
3557 * elf/dl-object.c (_dl_new_object): Initialize l_serial.
3558 * elf/dl-lookup.c (add_dependency): Add flags argument.
3559 Remember map->l_serial, if DL_LOOKUP_GSCOPE_LOCK is among
3560 flags, use THREAD_GSCOPE_RESET_FLAG before and
3561 THREAD_GSCOPE_SET_FLAG after
3562 __rtld_lock_lock_recursive (GL(dl_load_lock)) to avoid deadlock.
3563 Don't dereference map until it has been found on some list.
3564 If map->l_serial changed, return -1.
3565
874aa523
UD
35662007-09-17 Jakub Jelinek <jakub@redhat.com>
3567
3568 * include/stdio.h (__isoc99_fscanf, __isoc99_scanf,
3569 __isoc99_sscanf, __isoc99_vscanf): New prototypes.
3570 (__isoc99_vsscanf, __isoc99_vfscanf): New prototypes, add
3571 libc_hidden_proto.
3572 * include/wchar.h (__isoc99_fwscanf, __isoc99_wscanf,
3573 __isoc99_swscanf, __isoc99_vwscanf): New prototypes.
3574 (__isoc99_vswscanf, __isoc99_vfwscanf): New prototypes,
3575 add libc_hidden_proto.
3576 * libio/stdio.h (fscanf, scanf, sscanf, vfscanf, vscanf,
3577 vsscanf): Redirect to __isoc99_* if strict ISO C99 or POSIX
3578 conformance requested.
3579 * wcsmbs/wchar.h (fwscanf, wscanf, swscanf, vfwscanf, vwscanf,
3580 vswscanf): Redirect to __isoc99_* if strict ISO C99 or POSIX
3581 conformance requested.
3582 * libio/bits/stdio-ldbl.h (fscanf, scanf, sscanf, vfscanf, vscanf,
3583 vsscanf): Redirect to __nldbl___isoc99_* if strict ISO C99 or POSIX
3584 conformance requested.
3585 * wcsmbs/bits/wchar-ldbl.h (fwscanf, wscanf, swscanf, vfwscanf,
3586 vwscanf, vswscanf): Redirect to __nldbl___isoc99_* if strict
3587 ISO C99 or POSIX conformance requested.
3588 * stdio-common/Versions (libc): Export __isoc99_scanf@@GLIBC_2.7,
3589 __isoc99_vscanf@@GLIBC_2.7, __isoc99_fscanf@@GLIBC_2.7,
3590 __isoc99_vfscanf@@GLIBC_2.7, __isoc99_sscanf@@GLIBC_2.7
3591 and __isoc99_vsscanf@@GLIBC_2.7.
3592 * stdio-common/Makefile (routines): Add isoc99_scanf, isoc99_vscanf,
3593 isoc99_fscanf, isoc99_vfscanf, isoc99_sscanf and isoc99_vsscanf.
3594 (tests): Add scanf14.
3595 (CFLAGS-vfprintf.c, CFLAGS-fprintf.c, CFLAGS-printf.c,
3596 CFLAGS-vfwprintf.c, CFLAGS-vfscanf.c, CFLAGS-vfwscanf.c,
3597 CFLAGS-fscanf.c, CFLAGS-scanf.c, CFLAGS-isoc99_vfscanf.c,
3598 CFLAGS-isoc99_vscanf.c, CFLAGS-isoc99_fscanf.c,
3599 CFLAGS-isoc99_scanf.c): Add $(exceptions).
3600 (CFLAGS-scanf15.c): Add various -I paths to prevent the compiler
3601 from using internal headers.
3602 * wcsmbs/Versions (libc): Export __isoc99_wscanf@@GLIBC_2.7,
3603 __isoc99_vwscanf@@GLIBC_2.7, __isoc99_fwscanf@@GLIBC_2.7,
3604 __isoc99_vfwscanf@@GLIBC_2.7, __isoc99_swscanf@@GLIBC_2.7
3605 and __isoc99_vswscanf@@GLIBC_2.7.
3606 * wcsmbs/Makefile (routines): Add isoc99_wscanf, isoc99_vwscanf,
3607 isoc99_fwscanf, isoc99_vfwscanf, isoc99_swscanf and isoc99_vswscanf.
3608 (CFLAGS-isoc99_wscanf.c, CFLAGS-isoc99_fwscanf.c,
3609 CFLAGS-isoc99_vwscanf.c, CFLAGS-isoc99_vfwscanf.c): Add $(exceptions).
3610 (CPPFLAGS): Add -D_IO_MTSAFE_IO if needed.
3611 * stdio-common/isoc99_scanf.c: New file.
3612 * stdio-common/isoc99_vsscanf.c: New file.
3613 * stdio-common/isoc99_vscanf.c: New file.
3614 * stdio-common/isoc99_vfscanf.c: New file.
3615 * stdio-common/isoc99_fscanf.c: New file.
3616 * stdio-common/isoc99_sscanf.c: New file.
3617 * wcsmbs/isoc99_fwscanf.c: New file.
3618 * wcsmbs/isoc99_vswscanf.c: New file.
3619 * wcsmbs/isoc99_swscanf.c: New file.
3620 * wcsmbs/isoc99_wscanf.c: New file.
3621 * wcsmbs/isoc99_vwscanf.c: New file.
3622 * wcsmbs/isoc99_vfwscanf.c: New file.
3623 * libio/libio.h (_IO_FLAGS2_SCANF_STD): Define.
3624 * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): Also
3625 clear _IO_FLAGS2_SCANF_STD bit from _flags2.
3626 * stdio-common/vfscanf.c (_IO_vfscanf_internal): Don't
3627 handle %as, %aS and %a[ if _IO_FLAGS2_SCANF_STD is set in _flags2.
3628 * stdio-common/scanf14.c: New test.
3629 * stdio-common/scanf15.c: New test.
3630 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add
3631 isoc99_scanf, isoc99_fscanf, isoc99_sscanf,
3632 isoc99_vscanf, isoc99_vfscanf, isoc99_vsscanf,
3633 isoc99_wscanf, isoc99_fwscanf, isoc99_swscanf,
3634 isoc99_vwscanf, isoc99_vfwscanf and isoc99_vswscanf.
3635 * sysdeps/ieee754/ldbl-opt/Versions (libc): Export
3636 __nldbl___isoc99_scanf@@GLIBC_2.7,
3637 __nldbl___isoc99_fscanf@@GLIBC_2.7,
3638 __nldbl___isoc99_sscanf@@GLIBC_2.7,
3639 __nldbl___isoc99_vscanf@@GLIBC_2.7,
3640 __nldbl___isoc99_vfscanf@@GLIBC_2.7,
3641 __nldbl___isoc99_vsscanf@@GLIBC_2.7,
3642 __nldbl___isoc99_wscanf@@GLIBC_2.7,
3643 __nldbl___isoc99_fwscanf@@GLIBC_2.7,
3644 __nldbl___isoc99_swscanf@@GLIBC_2.7,
3645 __nldbl___isoc99_vwscanf@@GLIBC_2.7,
3646 __nldbl___isoc99_vfwscanf@@GLIBC_2.7
3647 and __nldbl___isoc99_vswscanf@@GLIBC_2.7.
3648 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__isoc99_scanf,
3649 __isoc99_fscanf, __isoc99_sscanf, __isoc99_vscanf,
3650 __isoc99_vfscanf, __isoc99_vsscanf, __isoc99_wscanf,
3651 __isoc99_fwscanf, __isoc99_swscanf, __isoc99_vwscanf,
3652 __isoc99_vfwscanf, __isoc99_vswscanf): Add NLDBL_DECL.
3653 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
3654 (__nldbl___isoc99_scanf, __nldbl___isoc99_fscanf,
3655 __nldbl___isoc99_sscanf, __nldbl___isoc99_vscanf,
3656 __nldbl___isoc99_vfscanf, __nldbl___isoc99_vsscanf,
3657 __nldbl___isoc99_wscanf, __nldbl___isoc99_fwscanf,
3658 __nldbl___isoc99_swscanf, __nldbl___isoc99_vwscanf,
3659 __nldbl___isoc99_vfwscanf, __nldbl___isoc99_vswscanf): New
3660 functions.
3661 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vfscanf.c: New file.
3662 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_swscanf.c: New file.
3663 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vwscanf.c: New file.
3664 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_wscanf.c: New file.
3665 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_scanf.c: New file.
3666 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_sscanf.c: New file.
3667 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vsscanf.c: New file.
3668 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_fwscanf.c: New file.
3669 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vfwscanf.c: New file.
3670 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vswscanf.c: New file.
3671 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vscanf.c: New file.
3672 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_fscanf.c: New file.
3673
3674 * stdio-common/Makefile (tests): Add scanf13.
3675 (scanf13-ENV): New.
3676 * stdio-common/vfscanf.c (_IO_vfscanf_internal): Handle
3677 m modifier followed by l.
3678 (STRING_ARG): Add width argument.
3679 (_IO_vfscanf_internal) <case L_('c')>: Handle %mc.
3680 <case L_('C')>: Handle %mlc and %mC.
3681 <case L_('s'), case L_('S'), case L_('[')>: Adjust STRING_ARG
3682 arguments.
3683 * stdio-common/scanf13.c: New test.
3684
3685 * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): Clear
3686 the _IO_FLAGS2_FORTIFY bit from _flags2 rather than _flags.
3687
883f7943
UD
36882007-09-18 Ulrich Drepper <drepper@redhat.com>
3689
3690 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Correct return value
874aa523 3691 type and __THROW marker of splice, vmsplice, and tee.
883f7943
UD
3692 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
3693 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
3694 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
3695 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
3696 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
3697 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
3698 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
3699 * sysdeps/unix/sysv/linux/syscalls.list: Mark splice, vmsplice, and tee
3700 as cancellation points.
3701
3524efe0
UD
37022003-11-01 Daniel Jacobowitz <dan@debian.org>
3703
3704 * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_discover_osversion): Don't
3705 parse more than three parts of the version number.
3706
267c54dc
UD
37072007-09-15 Ulrich Drepper <drepper@redhat.com>
3708
3709 * stdio-common/vfscanf.c (_IO_vfwscanf): Add support for 'm'
3710 modifier. Patch by Jakub Jelinek.
3711
5e17d6b7
UD
37122007-08-26 Jakub Jelinek <jakub@redhat.com>
3713
3714 * sysdeps/unix/sysv/linux/i386/Makefile (sysdep_routines): Add
3715 call_fallocate in misc subdir.
3716 * sysdeps/unix/sysv/linux/i386/call_fallocate.S: New file.
3717 * sysdeps/unix/sysv/linux/i386/syscalls.list (fallocate64): Remove.
3718 * sysdeps/unix/sysv/linux/i386/posix_fallocate.c: Use __call_fallocate
3719 instead of __fallocate64.
3720 * sysdeps/unix/sysv/linux/i386/posix_fallocate64.c: Likewise.
3721
3a50811c
UD
37222007-09-15 Jakub Jelinek <jakub@redhat.com>
3723
3724 * rt/Versions (librt): Export __mq_open_2@@GLIBC_2.7.
3725 * rt/Makefile (headers): Add bits/mqueue2.h.
3726 * rt/mqueue.h: Include bits/mqueue2.h if -D_FORTIFY_SOURCE=2,
3727 optimizing with GCC and __va_arg_pack_len is defined.
3728 * rt/bits/mqueue2.h: New file.
3729 * rt/mq_open.c (__mq_open): Renamed from mq_open.
3730 (mq_open): New strong_alias.
3731 (__mq_open_2): New function.
3732 * sysdeps/unix/sysv/linux/mq_open.c (__mq_open): Renamed from mq_open.
3733 (mq_open): New strong_alias.
3734 (__mq_open_2): New function.
3735 * debug/Versions (libc): Export __fortify_fail@@GLIBC_PRIVATE.
3736 * Versions.def (librt): Add GLIBC_2.7 version.
3737 * debug/fortify_fail.c (__fortify_fail): Add libc_hidden_def.
3738 * include/stdio.h (__fortify_fail): Add libc_hidden_proto.
3739
3740 * misc/sys/cdefs.h (__errordecl, __va_arg_pack_len): Define.
3741 * io/fcntl.h: Include bits/fcntl2.h when __va_arg_pack_len
3742 is defined rather than when not C++.
3743 * io/bits/fcntl2.h (__open_alias, __open64_alias, __openat_alias,
3744 __openat64_alias): New redirects.
3745 (__open_too_many_args, __open_missing_mode, __open64_too_many_args,
3746 __open64_missing_mode, __openat_too_many_args, __openat_missing_mode,
3747 __openat64_too_many_args, __openat64_missing_mode): New __errordecls.
3748 (open, open64, openat, openat64): Rewrite as __extern_always_inline
3749 functions instead of function-like macros.
3750
9bdfff60
UD
37512007-09-14 H.J. Lu <hongjiu.lu@intel.com>
3752
3753 * sysdeps/i386/i586/memcpy.S (__memcpy_chk): New definition.
3754 * sysdeps/i386/i586/mempcpy.S (__memcpy_chk): New definition.
3755 * sysdeps/i386/i586/memset.S (__memset_chk): New definition.
3756
ab905672
UD
37572007-09-15 Mike Frysinger <vapier@gentoo.org>
3758
3759 * inet/inet_net.c: Reset digit to 0 for inputs starting with "0x".
3760 * inet/tst-network.c (tests): Add edge case tests for "0", "0x", "0x0".
3761
9bd68902
RM
37622007-09-14 Mike Frysinger <vapier@gentoo.org>
3763
3764 * inet/tst-network.c: Increment ERRORS for failing tests.
3765
de1c3ebb
UD
37662007-09-07 Jakub Jelinek <jakub@redhat.com>
3767
3768 * misc/sys/cdefs.h (__va_arg_pack): Define for GCC 4.3+.
3769 * misc/bits/syslog.h (syslog): When __va_arg_pack is defined,
3770 implement as __extern_always_inline function.
3771 (vsyslog): Define as __extern_always_inline function unconditionally.
3772 * libio/bits/stdio2.h (sprintf, snprintf, printf, fprintf):
3773 When __va_arg_pack is defined, implement as __extern_always_inline
3774 functions.
3775 (vsprintf, vsnprintf, vprintf, vfprintf): Define as
3776 __extern_always_inline functions unconditionally.
3777 * libio/bits/stdio.h (vprintf): Ifdef out the inline when
3778 bits/stdio2.h will be included.
3779 * wcsmbs/bits/wchar2.h (__swprintf_alias): New redirect.
3780 (swprintf, wprintf, fwprintf): When __va_arg_pack is defined,
3781 implement as __extern_always_inline functions.
3782 (vswprintf, vwprintf, vfwprintf): Define as
3783 __extern_always_inline functions unconditionally.
3784 * debug/tst-chk1.c (do_test): Enable remaining tests for C++.
3785
37862007-09-03 Jakub Jelinek <jakub@redhat.com>
3787
3788 * misc/sys/cdefs.h (__extern_inline, __extern_always_inline): Only
3789 define in C++ for GCC 4.3+, in C++ always use __gnu_inline__
3790 attribute.
3791 * include/features.h (__USE_EXTERN_INLINES): Define only when
3792 __extern_inline is defined.
3793 * stdlib/stdlib.h: Include bits/stdlib.h when __extern_always_inline
3794 is defined instead of when not __cplusplus.
3795 * misc/sys/syslog.h: Include bits/syslog.h when __extern_always_inline
3796 is defined instead of when not __cplusplus.
3797 * socket/sys/socket.h: Include bits/socket2.h when
3798 __extern_always_inline is defined instead of when not __cplusplus.
3799 * libio/stdio.h: Include bits/stdio2.h when __extern_always_inline
3800 is defined instead of when not __cplusplus.
3801 * posix/unistd.h: Include bits/unistd.h when __extern_always_inline
3802 is defined instead of when not __cplusplus.
3803 * string/string.h: Include bits/string3.h when __extern_always_inline
3804 is defined instead of when not __cplusplus.
3805 * wcsmbs/wchar.h: Include bits/wchar2.h when __extern_always_inline
3806 is defined instead of when not __cplusplus.
3807 (btowc, wctob): Don't guard the inlines with ifndef __cplusplus.
3808 * io/fcntl.h: Don't include bits/fcntl2.h if __extern_always_inline
3809 is not defined.
3810 * misc/bits/syslog-ldbl.h: Guard *_chk stuff with
3811 defined __extern_always_inline instead of !defined __cplusplus.
3812 * libio/bits/stdio-ldbl.h: Likewise.
3813 * wcsmbs/bits/wchar-ldbl.h: Likewise.
3814 * misc/bits/syslog.h (syslog): Don't define for C++.
3815 (vsyslog): Use __extern_always_inline function for C++ instead of
3816 a macro.
3817 * libio/bits/stdio.h (__STDIO_INLINE): Define to __extern_inline
3818 whenever that macro is defined.
3819 (vprintf): Don't provide the inline for C++.
3820 (fread_unlocked, fwrite_unlocked): Don't define the macros for C++.
3821 * libio/bits/stdio2.h (sprintf, snprintf, printf, fprintf): Don't
3822 define the macros for C++.
3823 (vsprintf, vsnprintf, vprintf, vfprintf): Define as
3824 __extern_always_inline functions for C++.
3825 * io/sys/stat.h (stat, lstat, fstat, fstatat, mknod, mknodat,
3826 stat64, lstat64, fstat64, fstatat64): Don't define if not
3827 __USE_EXTERN_INLINES.
3828 * wcsmbs/bits/wchar2.h: Fix #error message.
3829 (swprintf, wprintf, fwprintf): Don't define the macros for C++.
3830 (vswprintf, vwprintf, vfwprintf): Define using
3831 __extern_always_inline functions for C++.
3832 * string/bits/string3.h: Don't #undef macros if __cplusplus.
3833 (memcpy, memmove, mempcpy, memset, bcopy, bzero, strcpy, stpcpy,
3834 strncpy, strcat, strncat): Define as __extern_always_inline
3835 functions instead of macros for C++.
3836 * math/bits/cmathcalls.h: Guard __extern_inline routines with
3837 defined __extern_inline.
3838 * sysdeps/alpha/fpu/bits/mathinline.h (__MATH_INLINE): Define
3839 to __extern_inline whenever that macro is defined.
3840 * sysdeps/ia64/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
3841 * sysdeps/i386/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
3842 * sysdeps/i386/i486/bits/string.h (__STRING_INLINE): Likewise.
3843 * sysdeps/s390/bits/string.h (__STRING_INLINE): Likewise.
3844 * sysdeps/s390/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
3845 * sysdeps/powerpc/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
3846 * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
3847 * sysdeps/sparc/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
3848 * sysdeps/unix/sysv/linux/sys/sysmacros.h (gnu_dev_major,
3849 gnu_dev_minor, gnu_dev_makedev): Remove __extern_inline from
3850 prototypes. Only provide __extern_inline routines if
3851 __USE_EXTERN_INLINES.
3852 * debug/Makefile: Add rules to build and run tst-{,lfs}chk{4,5,6}
3853 tests.
3854 * debug/tst-chk1.c (do_prepare, do_test): Allow compilation as C++.
3855 For now avoid some *printf tests in C++. Skip all testing
3856 if __USE_FORTIFY_LEVEL is defined, but __extern_always_inline macro
3857 is not.
3858 * debug/tst-chk4.cc: New file.
3859 * debug/tst-chk5.cc: New file.
3860 * debug/tst-chk6.cc: New file.
3861 * debug/tst-lfschk4.cc: New file.
3862 * debug/tst-lfschk5.cc: New file.
3863 * debug/tst-lfschk6.cc: New file.
3864 * include/wchar.h (__vfwprintf_chk, __vswprintf_chk): Avoid
3865 prototypes in C++.
3866 * include/stdio.h (__sprintf_chk, __snprintf_chk, __vsprintf_chk,
3867 __vsnprintf_chk, __printf_chk, __fprintf_chk, __vprintf_chk,
3868 __vfprintf_chk, __fgets_unlocked_chk, __fgets_chk): Likewise.
3869
b53eef9c
UD
38702007-09-13 Ulrich Drepper <drepper@redhat.com>
3871
3872 * po/cs.po: Update from translation team.
3873
af385590
RM
38742007-09-11 Roland McGrath <roland@redhat.com>
3875
3876 * posix/Makefile ($(objpfx)getconf.speclist): Make it empty if cross
3877 compiling.
3878
af2f25a1
RM
38792007-09-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
3880
3881 * sysdeps/mach/hurd/bits/ioctls.h (TAB3): New macro.
3882
94733ae0
RM
38832007-09-05 Roland McGrath <roland@redhat.com>
3884
3885 * manual/signal.texi (Signaling Another Process): Typo fix.
3886 From Karl Berry <karl@freefriends.org>.
3887
de4d8563
UD
38882007-08-29 Ulrich Drepper <drepper@redhat.com>
3889
3890 * sysdeps/unix/sysv/linux/check_pf.c (IFA_F_OPTIMISTIC): Define to
3891 zero if not defined.
3892 (make_request): Recognize optimistic addresses and treat them like
3893 deprecated addresses.
3894 Reported by Neil Horman <nhorman@redhat.com>.
3895
0adfcc05
UD
38962007-08-28 Ulrich Drepper <drepper@redhat.com>
3897
f3c54060
UD
3898 * nscd/connections.c (send_ro_fd): Also transfer file size.
3899 * nscd/nscd_helper.c (get_mapping): If nscd also transfers the
3900 file size don't call fstat.
3901
0adfcc05
UD
3902 * nscd/nscd_helper.c (get_mapping): Avoid the pread call, just go
3903 ahead and map the file. This should always be correct and we can
3904 catch problems later.
3905
3586b2b6
UD
39062007-08-28 Jakub Jelinek <jakub@redhat.com>
3907
3908 * libio/bits/stdio2.h (__fread_chk, __fread_unlocked_chk): New
3909 prototypes.
3910 (__fread_alias, __fread_unlocked_alias): New aliases.
3911 (fread): New extern inline.
3912 (fread_unlocked): Likewise. Undef macro before definition of
3913 the inline function.
3914 * debug/Makefile (routines): Add fread_chk and fread_u_chk.
3915 (CFLAGS-fread_chk.c, CFLAGS-fread_u_chk.c): Add.
3916 * debug/Versions (libc): Export __fread_chk@@GLIBC_2.7
3917 and __fread_unlocked_chk@@GLIBC_2.7.
3918 * debug/fread_chk.c: New file.
3919 * debug/fread_u_chk.c: New file.
3920 * debug/tst-chk1.c (do_test): Add fread and fread_unlocked tests.
3921
3704aa0b
RM
39222007-08-27 Jakub Jelinek <jakub@redhat.com>
3923
3924 * sysdeps/unix/sysv/linux/syscalls.list
3925 (personality): Change caller to EXTRA.
3926
80e7d6a6
UD
39272007-08-25 Ulrich Drepper <drepper@redhat.com>
3928
278bfa00
UD
3929 * iconvdata/iso-2022-kr.c (BODY): Fake initialization of array buf
3930 to keep gcc quiet.
3931 * iconvdata/iso-2022-cn.c (BODY): Likewise.
3932
a45d733c
UD
3933 * locale/programs/ld-collate.c (collate_output): Avoid warning if
3934 NDEBUG is defined.
3935
5dfeae0e
UD
3936 * Makerules: Use -p option with mkdir.
3937
8f1fe057
UD
3938 * sunrpc/key_prot.c (xdr_unixcred): Work around gcc alias warning.
3939 * nis/nis_xdr.c (_xdr_nis_server): Likewise.
bd0dcd28
UD
3940 (_xdr_directory_obj): Likewise.
3941 (xdr_entry_obj): Likewise.
3942 (xdr_group_obj): Likewise.
3943 (xdr_link_obj): Likewise.
3944 (xdr_table_obj): Likewise.
3945 (_xdr_nis_result): Likewise.
3946 (_xdr_ns_request): Likewise.
3947 (_xdr_ib_request): Likewise.
3948 (_xdr_nis_taglist): Likewise.
3949 (xdr_cback_data): Likewise.
8f1fe057 3950 * nis/yp_xdr.c (xdr_ypmaplist): Likewise.
bd0dcd28
UD
3951 (xdr_ypresp_maplist): Likewise.
3952
01339a67
UD
3953 * stdio-common/Makefile: Avoid format string warning for tst-sprint.
3954
3fa10468
UD
3955 * posix/regex_internal.h: Prevent some declarations and definitions
3956 to be seen when used in tests.
3957
ec1e04de
UD
3958 * posix/tst-rfc3484.c (__idna_to_unicode_lzlz): Initialize *OUTPUT.
3959 * posix/tst-rfc3484-2.c (__idna_to_unicode_lzlz): Likewise.
3960
7a344d1d
UD
3961 * debug/Makefile: Disable format checking when compiling tst-chk?.c.
3962
f8f6ff5d
UD
3963 * config.make.in (datarootdir): Add to shut up configure.
3964
76fca9f1
UD
3965 * sysdeps/x86_64/cacheinfo.c (handle_amd): Fix computation of
3966 associativity for fully-associative caches.
3967
80e7d6a6
UD
3968 * sysdeps/x86_64/cacheinfo.c (handle_amd): Handle L3 cache
3969 requests. Fill on more associativity values for L2.
3970 Patch mostly by Evandro Menezes.
3971
cb5ba304
UD
39722007-08-24 Ulrich Drepper <drepper@redhat.com>
3973
d250df8c
UD
3974 * sysdeps/unix/sysv/linux/x86_64/init-first.c
3975 (_libc_vdso_platform_setup): Avoid using exported variable by using
3976 alias.
3977
88f61aaf
UD
3978 * resolv/arpa/nameser.h (NS_OPT_DNSSEC_OK): Define.
3979
cb5ba304 3980 * sysdeps/unix/sysv/linux/i386/syscalls.list: No reason to mark
cb104bd7 3981 fallocate64 as EXTRA. It is not referenced if the symbol isn't
cb5ba304
UD
3982 defined.
3983
62e1b1f5
UD
39842007-08-23 Ulrich Drepper <drepper@redhat.com>
3985
44b2e581
UD
3986 * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Correctly
3987 align stack for call if pltexit is to be used.
3988
73e3ff07
UD
3989 [BZ #3924]
3990 * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Correctly
3991 align for function call in case pltexit has to be called later.
3992
62e1b1f5
UD
3993 * sysdeps/i386/dl-trampoline.S (_dl_runtime_resolve): Avoid
3994 implicit atomic operation when storing function pointer.
3995 (_dl_runtime_profile): Likewise.
3996
0008163a
UD
39972007-08-17 Jakub Jelinek <jakub@redhat.com>
3998
3999 * nis/nis_table.c (nis_list): Don't fail if __follow_path returned
4000 NIS_NOTFOUND.
4001
55ea8790
UD
40022007-08-21 Ulrich Drepper <drepper@redhat.com>
4003
2e0e1a05
UD
4004 [BZ #4566]
4005 * string/strtok.c: Fix typo in comment.
4006
682e4437
UD
4007 [BZ #4582]
4008 * debug/segfault.c: Fix typos in comments.
4009
7d55c9eb
UD
4010 [BZ #4588]
4011 * stdio-common/tempnam.c: Fix comment, it is not checked that
4012 TMPDIR points to a writable directory.
4013
0f8f993c
UD
4014 [BZ #4726]
4015 * resolv/res_send.c (__libc_res_nsend): Initialize all of the
4016 memory allocated for the name server address.
4017
1465dd0f
UD
4018 [BZ #4946]
4019 * nscd/connections.c (handle_request): Using sendfile always
4020 requires that mmap is used for the database.
4021 Patch by Petr Baudis <pasky@suse.cz>.
4022
c44d3bdf
UD
4023 [BZ #4905]
4024 * nscd/hstcache.c (cache_addhst): When reloading an entry which
4025 suddenly has two or more addresses, ignore it and remove the old
4026 entry.
4027
1ce7d80d
UD
4028 [BZ #4814]
4029 * resolv/res_hconf.c: Prepare for compiling outside libc.
4030 * nscd/res_hconf.c: New file.
4031 * nscd/Makefile (nscd-modules): Add res_hconf. Add rules to build
4032 the new file.
4033 * nscd/gethstbynm2_r.c (NEED__RES_HCONF): Define.
4034 * nscd/gethstbyad_r.c (NEED__RES_HCONF): Likewise.
4035
a30d41c1
UD
4036 * nscd/hstcache.c (cache_addhst): Minimal optimization.
4037
45dc3ad7
UD
4038 [BZ #4925]
4039 * debug/pcprofiledump.c: Turn on internationalization by calling
4040 setlocale. Patch mostly by Benno Schulenberg.
4041
55ea8790
UD
4042 [BZ #4936]
4043 * iconv/gconv.c (__gconv): If flush was successful, clear rest of
4044 the state.
4045 * iconvdata/Makefile: Add rules to build and run bug-iconv5.
4046 * iconvdata/bug-iconv5.c: New file.
4047
0b82ff74
UD
40482007-08-04 Carlos O'Donell <carlos@systemhalted.org>
4049
55ea8790 4050 [BZ #4896]
0b82ff74
UD
4051 * elf/elf.h: Define R_PARISC_PLABEL21L, R_PARISC_PLABEL14R,
4052 R_PARISC_GNU_VTENTRY, R_PARISC_GNU_VTINHERIT, R_PARISC_TLS_GD21L,
4053 R_PARISC_TLS_GD14R, R_PARISC_TLS_GDCALL, R_PARISC_TLS_LDM21L,
4054 R_PARISC_TLS_LDM14R, R_PARISC_TLS_LDMCALL, R_PARISC_TLS_LDO21L,
4055 R_PARISC_TLS_LDO14R, R_PARISC_TLS_DTPMOD32, R_PARISC_TLS_DTPMOD64,
4056 R_PARISC_TLS_DTPOFF32, R_PARISC_TLS_DTPOFF64, R_PARISC_TLS_LE21L,
4057 R_PARISC_TLS_LE14R, R_PARISC_TLS_IE21L, R_PARISC_TLS_IE14R,
4058 R_PARISC_TLS_TPREL32, R_PARISC_TLS_TPREL64.
4059
ee16a55a
UD
40602007-08-21 Ulrich Drepper <drepper@redhat.com>
4061
4062 [BZ #4937]
4063 * elf/do-lookup.h (do_lookup_x): Minimal improvement in hash
4064 lookup loop. Suggested by John Reiser.
4065
b211fe0f
JJ
40662007-08-21 Jakub Jelinek <jakub@redhat.com>
4067
4068 * sysdeps/unix/sysv/linux/alpha/sysdep.h: Include tls.h.
4069
fb84593c
UD
40702007-08-20 Ulrich Drepper <drepper@redhat.com>
4071
4072 * csu/libc-start.c: Don't handle VDSO_SETUP here.
4073 * sysdeps/unix/sysv/linux/init-first.c: Handle it here instead.
4074 * sysdeps/unix/sysv/linux/x86_64/libc-start.c: Renamed to...
4075 * sysdeps/unix/sysv/linux/x86_64/init-first.c: ...this. New file.
4076 * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Move VDSO_SETUP code
4077 to...
4078 * sysdeps/unix/sysv/linux/x86_64/init-first.c: ...here. New file.
4079
b83fb35c
UD
40802007-08-18 Ulrich Drepper <drepper@redhat.com>
4081
4082 * po/nl.po: Update from translation team.
4083
20806a70
AJ
40842007-08-16 Andreas Jaeger <aj@suse.de>
4085
4086 * locale/localeinfo.h: Make _nl_category_name_idxs extern.
4087 Reported by Peter Festner <peter.festner@ewetel.net>.
4088
42282d57
JJ
40892007-08-17 Jakub Jelinek <jakub@redhat.com>
4090
4091 * login/tst-grantpt.c (test_einval): Add 3rd argument to open.
4092
8a501135
JJ
40932007-08-16 Jakub Jelinek <jakub@redhat.com>
4094
cb84d1e4
JJ
4095 * elf/Makefile ($(objpfx)ld.so): Use readelf -s and awk instead of nm -u
4096 to check for undefined symbols.
4097
91ddd9c4
JJ
4098 * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone):
4099 If the syscall fails, set errno to the actual returned error number
4100 rather than EINVAL.
4101 * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__clone): If
4102 arguments are incorrect, set errno to EINVAL, if the syscall
4103 fails, set errno to the actual returned error number.
4104
18915760
JJ
4105 * stdlib/bits/stdlib-ldbl.h (__strtold_internal): Remove.
4106 * wcsmbs/bits/wchar-ldbl.h (__wcstold_internal): Remove.
4107
8a501135
JJ
4108 * sysdeps/sparc/sparc32/sparcv9b/memcpy.S: Moved to...
4109 * sysdeps/sparc/sparc32/sparcv9/sparcv9b/memcpy.S: ... here. New
4110 file.
4111 (ASI_PNF, ASI_BLK_P): Don't define.
4112 * sysdeps/sparc/sparc32/sparcv9v/memcpy.S: Moved to...
4113 * sysdeps/sparc/sparc32/sparcv9/sparcv9v/memcpy.S: ... here. New
4114 file.
4115 * sysdeps/sparc/sparc32/sparcv9v/memset.S: Moved to...
4116 * sysdeps/sparc/sparc32/sparcv9/sparcv9v/memset.S: ... here. New
4117 file.
4118
e4720b0e
JJ
41192007-08-15 Jakub Jelinek <jakub@redhat.com>
4120
4121 * sysdeps/sparc/fpu/fraiseexcpt.c (__feraiseexcept): Fix raising
4122 FE_UNDERFLOW on Niagara CPUs.
4123
4124 * sysdeps/sparc/fpu/feholdexcpt.c (feholdexcept): Clear all
4125 exceptions.
4126
702a9414
JJ
41272007-08-14 Jakub Jelinek <jakub@redhat.com>
4128
467d1345
JJ
4129 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_runtime_setup): No
4130 need to check GLRO(dl_hwcap) & HWCAP_SPARC_FLUSH on sparcv9.
4131 (sparc_fixup_plt): Add do_flush argument instead of figuring whether
4132 flush should be used or not inside of the function.
4133 (elf_machine_fixup_plt, elf_machine_rela): Adjust caller.
4134
4135 * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone,
4136 __thread_start): Use HIDDEN_JUMPTARGET.
4137 * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__clone,
4138 __thread_start): Likewise.
4139 * sysdeps/unix/sysv/linux/sparc/sysdep.h (JUMPTARGET): Define.
4140
702a9414
JJ
4141 * sysdeps/ieee754/ldbl-64-128/strtold_l.c (__STRTOF): Declare.
4142 Add libc_hidden_proto.
4143 (STRTOF): Add libc_hidden_proto.
4144 (___new_strtold_l, ___new_wcstold_l): New weak aliases.
4145 (strtold_l, wcstold_l): Use them as second argument for
4146 long_double_symbol.
4147
c6c8f0ec
UD
41482007-08-14 Ulrich Drepper <drepper@redhat.com>
4149
4150 * elf/dl-misc.c: Undo last change. The kernel won't allow it.
4151
5e88abf9
UD
41522007-08-13 Kaz Kojima <kkojima@rr.iij4u.or.jp>
4153
4154 * stdlib/strtold_l.c: Include wchar.h if needed. Add libc_hidden_def.
4155
fc4819b0
UD
41562007-08-14 Ulrich Drepper <drepper@redhat.com>
4157
4158 * po/bg.po: New file. From the translation team.
4159
22502ea2
UD
41602007-08-13 Jakub Jelinek <jakub@redhat.com>
4161
4162 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PSELECT,
4163 __ASSUME_PPOLL, __ASSUME_ATFCTS, __ASSUME_SET_ROBUST_LIST,
4164 __ASSUME_UTIMENSAT, __ASSUME_FALLOCATE): Update per-arch conditions
4165 when each feature was introduced.
4166
4167 * sysdeps/unix/sysv/linux/dl-vdso.c: Don't include dl-hash.h.
4168 * sysdeps/unix/sysv/linux/dl-vdso.h: Don't include dl-hash.h if NDEBUG.
4169 (CHECK_HASH): New macro.
4170 (PREPARE_VERSION): Use it.
4171
4172 * sysdeps/unix/sysv/linux/pselect.c (__generic_pselect): Only provide
4173 prototype if not __ASSUME_PSELECT.
4174 * sysdeps/unix/sysv/linux/ppoll.c (__generic_ppoll): Only provide
4175 prototype if not __ASSUME_PPOLL.
4176
4177 * sysdeps/unix/sysv/linux/dl-osinfo.h (ROUND): #undef after use.
4178
4179 * sysdeps/unix/clock_settime.c (freq, __pthread_clock_settime,
4180 hp_timing_settime): Don't define or declare if HANDLED_CPUTIME
4181 is defined.
4182
9c6f6953
UD
41832007-08-13 Ulrich Drepper <drepper@redhat.com>
4184
4185 * sysdeps/unix/sysv/linux/x86_64/libc-start.c
4186 (_libc_vdso_platform_setup): If vDSO is not available point
4187 __vdso_gettimeofday to the vsyscall.
4188 * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S [SHARED]: Use
4189 __vdso_gettimeofday instead of vsyscall.
4190
f8de5057
UD
41912007-08-13 Jakub Jelinek <jakub@redhat.com>
4192
4193 * nscd/servicescache.c: Include kernel-features.h.
4194 * nscd/gai.c: Likewise.
4195 * sysdeps/unix/sysv/linux/statfs64.c: Likewise.
4196 * sysdeps/unix/sysv/linux/fstatfs64.c: Likewise.
4197 * sysdeps/unix/sysv/linux/fxstatat.c: Likewise.
4198 * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S: Likewise.
4199 * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S: Likewise.
4200 * sysdeps/unix/sysv/linux/xstatconv.c: Likewise.
4201 * sysdeps/unix/sysv/linux/if_index.c: Likewise.
4202 * sysdeps/unix/sysv/linux/sparc/sparc64/xstat.c: Likewise.
4203 * sysdeps/unix/sysv/linux/ifaddrs.c: Likewise.
4204
3c87d79d
UD
42052007-08-12 Ulrich Drepper <drepper@redhat.com>
4206
ea37207a
UD
4207 * elf/dl-dst.h: No need for _dl_dst_count, _dl_dst_substitute,
4208 and _dl_get_origin defines anymore.
4209
4eb375fe
UD
4210 * sysdeps/unix/sysv/linux/clock_gettime.c (maybe_syscall_gettime_cpu):
4211 Build fix for systems which might lack POSIX timer support.
4212
3c87d79d
UD
4213 * sysdeps/unix/sysv/linux/x86_64/libc-start.c
4214 (_libc_vdso_platform_setup): Mangle function pointers before storing
4215 them.
4216 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_VSYSCALL):
4217 Demangle vdso pointer before use.
4218 (INTERNAL_VSYSCALL): Likewise.
4219
4220 * elf/cache.c (primes): Mark as const.
4221 Noted by Roland McGrath.
4222
27d9ffda
UD
42232007-08-01 Andreas Jaeger <aj@suse.de>
4224 Jakub Jelinek <jakub@redhat.com>
4225
4226 * elf/ldconfig.c (opt_ignore_aux_cache): Add new option.
4227 (options): Add option.
4228 (parse_opt): Handle option.
4229 (manual_link): Adjust process_file caller. Call implicit_soname.
4230 (search_dir): Formatting. Use and populate auxiliary cache.
4231 (main): Load and save auxiliary cache.
4232 * elf/readlib.c (process_file): Add stat_buf argument. Pass struct
4233 stat64 from fstat64 to caller.
4234 (implicit_soname): New function.
4235 * elf/readelflib.c (process_elf_file): If DT_SONAME is not present,
4236 leave *soname as NULL.
4237 * elf/cache.c: Include libgen.h.
4238 (print_entry, print_cache, compare, save_cache, add_to_cache):
4239 Formatting and cleanups.
4240 (aux_cache_entry_id, aux_cache_entry, aux_cache_file_entry,
4241 aux_cache_file): New structures.
4242 (AUX_CACHEMAGIC): Define.
4243 (primes): New array.
4244 (aux_hash_size, aux_hash): New variables.
4245 (aux_cache_entry_id_hash, nextprime, init_aux_cache,
4246 search_aux_cache, insert_to_aux_cache, add_to_aux_cache,
4247 load_aux_cache, save_aux_cache): New functions.
4248 * sysdeps/generic/ldconfig.h (_PATH_LDCONFIG_AUX_CACHE): Define.
4249 (init_aux_cache, search_aux_cache, add_to_aux_cache,
4250 load_aux_cache, save_aux_cache, implicit_soname): New prototypes.
4251 (process_file): Adjust prototype.
4252
8d944b0f
UD
42532007-08-12 Jakub Jelinek <jakub@redhat.com>
4254
4255 * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h: Include stddef.h
4256 with __need_size_t.
4257
75fb247e
UD
42582007-08-12 Ulrich Drepper <drepper@redhat.com>
4259
fb86328a
UD
4260 * sysdeps/unix/sysv/linux/dl-vdso.c (_dl_vdso_vsym): Expect
4261 r_found_version structure as second parameter.
4262 * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION): Define.
4263 (_dl_vdso_vsym): Change type of second parameter accordingly.
4264 * sysdeps/unix/sysv/linux/x86-64/libc-start.c
4265 (_libc_vdso_platform_setup): Adjust.
974a1f0f 4266 * sysdeps/unix/sysv/linux/powerpc/libc-start.c
fb86328a
UD
4267 (_libc_vdso_platform_setup): Likewise.
4268
75fb247e
UD
4269 * sysdeps/unix/sysv/linux/powerpc/dl-vdso.c: Move to...
4270 * sysdeps/unix/sysv/linux/dl-vdso.c: ...here.
4271 * sysdeps/unix/sysv/linux/powerpc/dl-vdso.h: Move to...
4272 * sysdeps/unix/sysv/linux/dl-vdso.h: ...here.
4273 * csu/libc-start.c: Pretty printing.
4274 Use VDSO_SETUP if defined.
4275 * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Define VDSO_SETUP
4276 and let generic code call into _libc_vdso_platform_setup.
4277 * sysdeps/unix/sysv/linux/x86_64/libc-start.c: New file.
4278 * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: New file.
4279 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Pretty printing.
4280 Define INLINE_VSYSCALL and INTERNAL_VSYSCALL.
4281 * sysdeps/unix/sysv/linux/x86_64/Versions: Export __vdso_clock_gettime
4282 for GLIBC_PRIVATE.
4283 * sysdeps/unix/sysv/linux/x86_64/Makefile [subdir=elf]
4284 (sysdep_rountines): Add dl-vdso.
4285
4286 * sysdeps/unix/sysv/linux/powerpc/Makefile: Use sysdep_routines instead
4287 of routines.
4288
4289 * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Add
4290 attribute_hidden to __vdso_gettimeofday prototype.
4291
9229b83e
RM
42922007-08-12 Roland McGrath <roland@redhat.com>
4293
4294 * manual/stdio.texi (Variable Arguments Output): Fix xref to gcc manual.
4295 From: Karl Berry <karl@freefriends.org>.
4296
4503061f
UD
42972007-08-11 Ulrich Drepper <drepper@redhat.com>
4298
4299 * elf/dl-misc.c (_dl_sysdep_read_whole_file): We really don't need
4300 an atime update for the files we read.
4301
d7e23b02
UD
43022007-08-10 Ulrich Drepper <drepper@redhat.com>
4303
7cf89e95
UD
4304 * shadow/lckpwdf.c (__lckpwdf): Use O_CLOEXEC if possible.
4305
9d169bb3 4306 * nscd/connections.c: Use O_CLOEXEC if possible. Use mkostemp
d7e23b02
UD
4307 instead of mkstemp.
4308
4309 * misc/Makefile (routines): Add mkostemp and mkostemp64.
4310 * misc/Versions: Export mkostemp and mkostemp64 for GLIBC_2.7.
4311 * misc/mkostemp.c: New file.
4312 * misc/mkostemp64.c: New file.
4313 * stdlib/stdlib.h: Declare the new functions.
4314 * sysdeps/posix/tempname.c: Add new parameter which is added to
4315 the flags for open. Remove __GT_BIGFILE handling.
4316 * stdio-common/tempname.c: Likewise.
4317 * include/stdio.h: Adjust __gen_tempname prototype.
4318 Renumber __GT_* constants.
4319 * libio/oldtmpfile.c: Adjust for __gen_tempname interface change.
4320 * misc/mkdtemp.c: Likewise.
4321 * misc/mkstemp.c: Likewise.
4322 * misc/mkstemp64.c: Likewise.
4323 * misc/mktemp.c: Likewise.
4324 * stdio-common/tempnam.c: Likewise.
4325 * stdio-common/tmpfile.c: Likewise.
4326 * stdio-common/tmpfile64.c: Likewise.
4327 * stdio-common/tmpnam.c: Likewise.
4328 * stdio-common/tmpnam_r.c: Likewise.
4329
22532966
RM
43302007-08-10 Roland McGrath <roland@frob.com>
4331
4332 * sysdeps/mach/hurd/bits/ioctls.h (NLDLY, TABDLY, BSDLY, VTDLY):
4333 New macros.
4334 (NLDELAY, CRDELAY, TBDELAY, BSDELAY, VTDELAY): Define to those.
4335 Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
4336
673876e6
UD
43372007-08-10 Ulrich Drepper <drepper@redhat.com>
4338
aa132749
UD
4339 * nss/nss_files/files-XXX.c (internal_setent): Use O_CLOEXEC if
4340 possible.
4341 * nss/nss_files/files-alias.c (internal_setent): Likewise.
4342 * nss/Makefile (libnss_files-routines): Add files-have_o_cloexec.
4343 * nss/nss_files/files-have_o_cloexec.c: New file.
4344
22532966 4345 * sysdeps/unix/sysv/linux/shm_open.c (shm_open): Use O_CLOEXEC if
673876e6
UD
4346 available.
4347
1e286653
JJ
43482007-08-10 Jakub Jelinek <jakub@redhat.com>
4349
4350 * sysdeps/ieee754/ldbl-128ibm/strtold_l.c (___new_strtold_l,
4351 ___new_wcstold_l): New weak aliases.
4352 (strtold_l, wcstold_l): Use them as second argument for
4353 long_double_symbol.
4354
f07f72f3
UD
43552007-08-09 Ulrich Drepper <drepper@redhat.com>
4356
6479496a
UD
4357 * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Use correct
4358 register in test for error.
4359
c4adefbd
UD
4360 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_CLOEXEC): Define.
4361 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (O_CLOEXEC): Likewise.
4362
f07f72f3
UD
4363 * po/sv.po: Update from translation team.
4364
eef38c28
RM
43652007-08-06 Roland McGrath <roland@redhat.com>
4366
773e305e
RM
4367 * include/stdlib.h: Add libc_hidden_proto for strto*, __strto*_l.
4368 Remove __strto*_l inlines.
4369 * include/wchar.h: Add libc_hidden_proto for wcsto*, __wcsto*_l.
4370 * stdlib/strtod.c: Add libc_hidden_def.
4371 * stdlib/strtod_l.c: Likewise.
4372 * stdlib/strtold.c [__LONG_DOUBLE_MATH_OPTIONAL]: Add libc_hidden_proto
4373 for __new_strtold and __new_wcstold.
4374 * sysdeps/ieee754/ldbl-128ibm/strtold_l.c: Add libc_hidden_proto for
4375 __STRTOF, STRTOF.
4376 * stdlib/strtol.c: Add libc_hidden_def.
4377 * stdlib/strtol_l.c: Likewise.
4378 * sysdeps/wordsize-64/strtol.c: Add libc_hidden_ver for strtoll and
4379 strtoq.
4380
4381 * scripts/data/localplt-powerpc-linux-gnu.data: New file.
4382
4383 * scripts/data/localplt-x86_64-linux-gnu.data: File renamed to ...
4384 * scripts/data/localplt-generic.data: ... here.
4385 * elf/Makefile (check-data): Get generic file if no other.
4386 ($(objpfx)check-localplt.out): Make target unconditional.
4387
eef38c28
RM
4388 * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_discover_osversion):
4389 Use ElfW(Nhdr).
4390
742df3a4
UD
43912007-08-05 Ulrich Drepper <drepper@redhat.com>
4392
4393 * po/zh_CN.po: Updated translation from translation team.
4394
0470fa46
JJ
43952007-08-05 Jakub Jelinek <jakub@redhat.com>
4396
4397 * sysdeps/unix/sysv/linux/powerpc/powerpc32/socket.S (__socket):
4398 Don't use CGOTSETUP and CGOTRESTORE macros.
4399
b5075bdc
RM
44002007-08-04 Roland McGrath <roland@redhat.com>
4401
4402 * posix/Makefile ($(objpfx)getconf.speclist): Fix typo.
4403
9accc268
JJ
44042007-08-04 Jakub Jelinek <jakub@redhat.com>
4405
4406 * io/bits/fcntl2.h (open, open64, openat, openat64): Add
4407 __extension__ around the whole statement expression.
4408
220ae3ef
UD
44092007-08-04 Ulrich Drepper <drepper@redhat.com>
4410
c8ccd8e3
UD
4411 * sysdeps/unix/opendir.c (__alloc_dir): Correct order of DIR
4412 elements during initialization.
4413
220ae3ef
UD
4414 * po/pl.po: Updated translation from translation team.
4415 * po/tr.po: Likewise.
11960f7f 4416 * po/nl.po: Likewise.
220ae3ef 4417
2fb20667
UD
44182007-08-03 Ulrich Drepper <drepper@redhat.com>
4419
4420 * rt/aio.h: Add __nonnull attributes.
4421
ce31a3b1
UD
44222007-08-03 Jakub Jelinek <jakub@redhat.com>
4423
64f6281c
UD
4424 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Properly handle -0.
4425 * stdlib/Makefile (tests): Add tst-strtod5.
4426 (tst-strtod5-ENV): New.
4427 * stdlib/tst-strtod5.c: New file.
4428
ce31a3b1
UD
4429 * intl/dcigettext.c (_nl_find_msg): Free encoding if __gconv_open
4430 failed.
4431 * intl/finddomain.c (_nl_find_domain): Free normalized_codeset
4432 on failure.
4433
4434 * elf/dl-load.c (decompose_rpath): Free copy if result couldn't be
4435 allocated.
4436
754980e4
JJ
44372007-08-03 Jakub Jelinek <jakub@redhat.com>
4438
4439 * rt/mqueue.h (mq_timedreceive, mq_timedsend): Fix nonnull argument
4440 numbers.
4441
497af0cb
UD
44422007-08-02 Ulrich Drepper <drepper@redhat.com>
4443
cbf0489b
UD
4444 * io/Makefile (aux): Add have_o_cloexec.
4445 * include/fcntl.h: Declare __have_o_cloexec.
4446 * io/have_o_cloexec.c: New file.
4447 * sysdeps/unix/opendir.c (__opendir): Use O_CLOEXEC is available.
4448 (__alloc_dir): If O_CLOEXEC has been used, don't duplicate the
4449 fcntl call if not necessary.
4450 * login/utmp_file.c (setutent_file): Use __have_o_cloexec instead
4451 of local variable.
4452
fa39685d
UD
4453 * sysdeps/unix/opendir.c (__alloc_dir): Don't initialize ->data.
4454 Avoid memset, add explicit initialization.
4455 * sysdeps/unix/dirstream.h (struct __dirstream): Move data elemtn
4456 to the end and change into zero-sized array.
4457 Move lock member to fill a hole on 64-bit platforms.
9b2e9577
UD
4458
4459 * stdlib/stdlib.h: Remove __strto*_internal prototypes and strto*
4460 inline functions.
4461 * include/stdlib.h: Add __strto*_internal prototypes here.
4462 * wcsmbs/wchar.h: Remove __wcsto*_internal prototypes and wcsto*
4463 inline functions.
4464 * include/wchar.h: Add __wcsto*_internal prototypes.
4465 * sysdeps/generic/inttypes.h: No need to protect the declaration
4466 of the __strto*_internal and __wcsto*_internal members here.
4467
497af0cb
UD
4468 * rt/mqueue.h: Change const to __const and add nonnull attributes.
4469
d17a8cf0
RM
44702007-08-02 Roland McGrath <roland@redhat.com>
4471
4472 * posix/Makefile ($(inst_libexecdir)/getconf): Make hard links to
4473 $(inst_bindir)/getconf if possible.
4474
4475 * posix/Makefile ($(objpfx)getconf.speclist): New target.
4476 (generated): Add it.
4477 ($(inst_libexecdir)/getconf): Use it.
4478
0abf17de
UD
44792007-08-01 Ulrich Drepper <drepper@redhat.com>
4480
4481 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Using
4482 /proc is faster and sufficient. /sys is still needed for
4483 __get_nprocs_conf.
4484
5e0923ab
UD
44852007-08-01 Jakub Jelinek <jakub@redhat.com>
4486
4487 * sysdeps/unix/sysv/linux/i386/syscalls.list (fallocate): Add fallocate
4488 syscall as __fallocate64.
4489 * sysdeps/unix/sysv/linux/i386/posix_fallocate.c: New file.
4490 * sysdeps/unix/sysv/linux/i386/posix_fallocate64.c: New file.
4491
1475e201
UD
44922007-07-30 Jakub Jelinek <jakub@redhat.com>
4493
4494 * stdlib/tst-strtod2.c (do_test): Use %tu in fmt string for ptrdiff_t
4495 value.
4496
4497 * stdio-common/tst-fmemopen2.c (do_test): Avoid fmt string warning
4498 if off_t is different rank from size_t.
4499
4500 * sysdeps/generic/unwind-dw2.c (extract_cie_info, execute_cfa_program,
4501 uw_frame_state_for): Avoid type punning warnings.
4502 * sysdeps/generic/unwind-dw2-fde-glibc.c
4503 (_Unwind_IteratePhdrCallback): Likewise.
4504 * sysdeps/generic/unwind-dw2-fde.c (_Unwind_Find_FDE): Likewise.
4505 (binary_search_single_encoding_fdes, binary_search_mixed_encoding_fdes,
4506 get_cie_encoding, linear_search_fdes): Don't mix char and unsigned char
4507 pointers.
4508
e076bece
UD
45092007-07-31 Ulrich Drepper <drepper@redhat.com>
4510
9506149a
UD
4511 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs_conf): Count
4512 total processors using sysfs.
4513 (__get_nprocs): Use sysfs to determine which processors are online.
e076bece 4514
bbeaaa84
JJ
45152007-07-31 Jakub Jelinek <jakub@redhat.com>
4516
09881398
JJ
4517 * sysdeps/unix/sysv/linux/posix_fallocate.c (posix_fallocate): Fix
4518 syscall arguments count.
4519
bbeaaa84
JJ
4520 * stdio-common/tfformat.c (sprint_doubles): Add 12 new tests.
4521
087ef75f
RM
45222007-07-30 Roland McGrath <roland@redhat.com>
4523
4524 * manual/libc.texinfo: Update copyrights, formatting magic, and
4525 @dircategory. From Karl Berry <karl@freefriends.org>.
4526
44f08a6e
UD
45272007-07-29 Ulrich Drepper <drepper@redhat.com>
4528
eafaae72
UD
4529 [BZ #4860]
4530 * io/Makefile (headers): Add bits/fcntl2.h.
4531
c5705565
UD
4532 * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_ZERO_S): Optimize
4533 using gcc builtin.
4534 (__CPU_EQUAL_S): Likewise.
4535
44f08a6e
UD
4536 * posix/Makefile (routines): Add sched_cpualloc and sched_cpufree.
4537 (tests): Add tst-cpuset.
4538 * posix/sched_cpualloc.c: New file.
4539 * posix/sched_cpufree.c: New file.
4540 * posix/tst-cpuset.c: New file.
4541 * posix/Versions: Export __sched_cpualloc and __sched_cpufree for
4542 GLIBC_2.7.
4543 * sysdeps/unix/sysv/linux/bits/sched.h: Define __CPU_*_S macros.
4544 * posix/sched.h: Define old CPU_* macros in temers of __CPU_*_S
4545 macros. Define CPU_*_S macros.
4546
8f5e1400
UD
45472007-07-28 Ulrich Drepper <drepper@redhat.com>
4548
5b74caf6
UD
4549 * posix/getconf.c (vars): Add missing _SC_LEVEL4_CACHE_LINESIZE
4550 entry.
4551
a26d01bb 4552 [BZ #4858]
8f5e1400
UD
4553 * stdio-common/printf_fp.c (___printf_fp): Fix special case of
4554 #.0g and value rounded to 1.0.
4555 * stdio-common/tfformat.c (sprint_doubles): Add two new tests.
4556
085a4412
UD
45572007-07-26 Jakub Jelinek <jakub@redhat.com>
4558
cedb4109
UD
4559 * locale/programs/ld-monetary.c (monetary_finish): Avoid range check
4560 for int_frac_digits and frac_digits.
4561
4562 * login/logout.c (logout): Avoid aliasing violation.
4563 * login/logwtmp.c (logwtmp): Likewise.
4564
4565 * libio/genops.c (_IO_un_link): Avoid aliasing violation.
4566
9d9febc7
UD
4567 * nscd/selinux.c (preserve_capabilities): Initialize new_caps
4568 to avoid warning.
4569 * iconv/gconv_open.c (__gconv_open): Initialize ptr to avoid
4570 warning.
4571 * nis/nis_subr.c (nis_getnames): Initialize saveptr to avoid
4572 warning.
4573 * resolv/inet_ntop.c (inet_ntop6): Initialize best.len and cur.len
4574 to avoid warnings.
4575
701666b7
UD
4576 * nss/nsswitch.c (__nss_lookup_function): Don't cast &ni->known to
4577 void **.
4578 * nss/nsswitch.h (service_user): Use void * type for KNOWN field.
4579
4580 * nss/nss_files/files-hosts.c (LINE_PARSER): Cast host_addr to
4581 char * to avoid warning.
4582 * nis/nss_nis/nis-hosts.c (LINE_PARSER): Likewise.
4583
4584 * timezone/Makefile (CFLAGS-zdump.c): Add -fwrapv.
4585
4586 * locale/programs/ld-ctype.c (ctype_finish, set_class_defaults,
4587 allocate_arrays): Cast second argument to charmap_find_symbol
4588 to char * to avoid warnings.
4589
4590 * locale/programs/repertoire.c (repertoire_new_char): Change
4591 from_nr, to_nr and cnt to unsigned long, adjust printf format
4592 string.
4593
4594 * locale/programs/ld-collate.c (insert_value, handle_ellipsis):
4595 Cast second argument to new_element to char * to avoid warnings.
4596
4597 * locale/weightwc.h (findidx): Cast &extra[-i] to const int32_t *.
4598
4599 * intl/gettextP.h (struct loaded_domain): Change plural to const
4600 struct expression *.
4601 * intl/plural-eval.c (plural_eval): Change first argument to
4602 const struct expression *.
4603 * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Change first
4604 argument to const struct expression **.
4605 * intl/plural-exp.h (EXTRACT_PLURAL_EXPRESSION, plural_eval): Adjust
4606 prototypes.
4607 * intl/loadmsgcat (_nl_unload_domain): Cast away const
4608 in call to __gettext_free_exp.
4609
4610 * posix/fnmatch.c (fnmatch): Rearrange code to avoid maybe
4611 unitialized wstring/wpattern var warnings.
4612
4613 * posix/runtests.c (struct a_test): Make data field const char *.
4614
4615 * stdio-common/tst-sprintf2.c (main): Don't declere u, v and buf
4616 vars if not LDBL_MANT_DIG >= 106.
4617
4618 * stdio-common/Makefile (CFLAGS-vfwprintf.c): Add -Wno-unitialized.
4619
4620 * stdio-common/vfprintf.c (vfprintf): Cast first arugment to
4621 __find_specmb to avoid warning.
4622
4623 * rt/tst-mqueue1.c (do_one_test): Add casts to avoid warnings.
4624
4625 * debug/test-strcpy_chk.c (do_tests, do_random_tests): Add casts
4626 to avoid warnings.
4627
4628 * sysdeps/ieee754/ldbl-96/s_roundl.c (huge): Add L suffix to
4629 initializer.
4630
4631 * sysdeps/unix/clock_gettime.c (clock_gettime): Only define
4632 tv var when it will be actually used.
4633
4634 * sunrpc/rpc_cmsg.c (xdr_callmsg): Cast IXDR_PUT_* to void
4635 to avoid warnings.
4636
085a4412
UD
4637 * iconvdata/gbk.c (BODY): Make buf and cp char instead of unsigned
4638 char array resp. pointer.
4639 * iconvdata/iso-2022-kr.c (BODY): Make buf unsigned char instead of
4640 char array.
4641 * iconvdata/cns11643.h (cns11643_to_ucs4): Change first argument
4642 to const unsigned char **.
4643 (ucs4_to_cns11643): Change second argument to unsigned char *.
4644 * iconvdata/euc-tw.c (BODY): Change endp type to
4645 const unsigned char *.
4646 * iconvdata/iso-ir-165.h (ucs4_to_isoir165): Change second argument
4647 to unsigned char *.
4648 * iconvdata/ibm1008_420.c (LOOP_NEED_FLAGS): Don't define.
4649 * iconvdata/iso-2022-cn.c (BODY): Change buf to unsigned char array.
4650 * iconvdata/iso-2022-cn-ext.c (BODY): Change buf, tmpbuf, tmp
4651 types to unsigned char pointers/arrays instead of char.
4652 * iconvdata/jis0201.h (ucs4_to_jisx0201): Change second argument
4653 to unsigned char *.
4654 * iconvdata/jis0208.h (ucs4_to_jisx0208): Likewise.
4655 * iconvdata/jis0212.h: Include assert.h.
4656 (ucs4_to_jisx0212): Change second argument to unsigned char *.
4657 assert that if cp[0] is not '\0', cp[1] is not '\0' either instead
4658 of trying to handle that.
4659 * iconvdata/euc-kr.c (euckr_from_ucs4): Initialize also cp[1] to
4660 shut up a warning.
4661 * iconvdata/euc-jp-ms.c (from_ucs4_lat1, from_ucs4_greek,
4662 from_ucs4_cjk, from_ucs4_cjkcpt, from_ucs4_extra): Change type to
4663 two dimensional const unsigned char arrays.
4664 (BODY): Cast "" to (const unsigned char *) for assignment to cp.
4665 Initialize endp to inptr to shut up a warning.
4666
fa69dc9c
UD
46672007-07-20 Jakub Jelinek <jakub@redhat.com>
4668
ae1ad762
UD
4669 [BZ #4772]
4670 * time/strptime_l.c (__strptime_internal): Silently ignore
4671 strftime modifiers and field width in recursive calls.
4672
fa69dc9c
UD
4673 * include/time.h (enum ptime_locale_status): Remove.
4674 (__strptime_internal): Remove decided and era_cnt arguments,
4675 add statep argument.
4676 * time/strptime_l.c (__strptime_internal): Remove decided
4677 and era_cnt arguments, add statep argument. Don't recompute
4678 any fields in recursive calls, only update caller's tm
4679 and state, if recursive call fails, don't change tm nor
4680 any state.
4681 (get_alt_number): Adjust.
4682 (recursive): Adjust caller.
4683 (strptime): Likewise.
4684 * time/strptime.c (strptime): Likewise.
4685
7b503bcc
UD
46862007-07-19 Jakub Jelinek <jakub@redhat.com>
4687
4688 * iconv/gconv_int.h (__GCONV_NULCONV): New internal only error code.
4689 * iconv/gconv_cache.c (__gconv_lookup_cache): Return __GCONV_NULCONV
4690 if from and to charsets are the same.
4691 * iconv/gconv_db.c (__gconv_find_transform): Likewise.
4692 * intl/dcigettext.c (_nl_find_msg): Return NULL even if __gconv_open
4693 returns __GCONV_NOCONV, but not for __GCONV_NULCONV.
4694
46952007-07-17 Jakub Jelinek <jakub@redhat.com>
4696
4697 * wcsmbs/wchar.h: Only define wint_t if __need_wint_t.
4698 Don't define wint_t when __need_mbstate_t unless it
4699 is necessary.
4700 (__mbstate_t): Use __WINT_TYPE__ rather than wint_t
4701 in the typedef if possible.
4702 * wctype/wctype.h (wint_t): Define by including
4703 wchar.h with __need_wint_t instead of including stddef.h
4704 with __need_wint_t and as fallback definining it ourselves.
4705 * iconv/gconv.h (__need_wint_t): Define before including
4706 wchar.h.
4707 * sysdeps/gnu/_G_config.h: Don't include gconv.h if not _LIBC
4708 or _GLIBCPP_USE_WCHAR_T.
4709 (__need_wchar_t): Don't define
4710 if not _LIBC or _GLIBCPP_USE_WCHAR_T.
4711 (__need_wint_t): Don't define before including stddef.h,
4712 define before including wchar.h only if _LIBC or
4713 _GLIBCPP_USE_WCHAR_T.
4714 (_G_iconv_t): Don't define if not _LIBC or _GLIBCPP_USE_WCHAR_T.
4715 * sysdeps/mach/hurd/_G_config.h: Likewise.
4716 * sysdeps/generic/_G_config.h: Likewise.
4717 * libio/libio.h (__wunderflow, __wuflow, __woverflow): Only
4718 prototype if _LIBC or _GLIBCPP_USE_WCHAR_T.
4719 (_IO_getwc_unlocked, _IO_putwc_unlocked): Only define
4720 if _LIBC or _GLIBCPP_USE_WCHAR_T.
4721
a95a608f
UD
47222007-07-28 Ulrich Drepper <drepper@redhat.com>
4723
4724 * sysdeps/posix/posix_fallocate64.c: Undefine
4725 __posix_fallocate64_l64 before alias handling.
4726 * sysdeps/unix/sysv/linux/posix_fallocate.c: New file.
4727 * sysdeps/unix/sysv/linux/posix_fallocate64.c: New file.
4728 * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c: New file.
4729 * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate64.c: New file.
4730
4731 * io/tst-posix_fallocate.c: Include <fcntl.h>.
4732
47332007-07-23 Jakub Jelinek <jakub@redhat.com>
4734
4735 * locale/programs/ld-collate.c (atwc): New variable.
4736 (add_to_tablewc): New toplevel function, moved from collate_output.
4737 (collate_output): Remove add_to_tablewc nested function.
4738
4739 * iconv/iconvconfig.c (hash_table, hash_size): New toplevel vars.
4740 (name_insert): New function.
4741 (write_output): Remove hash_table and hash_size vars and name_insert
4742 nested function.
4743
80d4c3b0
RM
47442007-07-24 Roland McGrath <roland@redhat.com>
4745
4746 * Makerules (install-others-programs-nosubdir): New target.
4747 (install-no-libc.a-nosubdir): Depend on it.
4748
4749 * iconv/Makefile (install-others-programs): Set this instead of
4750 install-others.
4751 * login/Makefile (install-others-programs): Likewise.
4752 * posix/Makefile (install-others-programs): Likewise.
4753
4754 * Makerules (install-no-libc.a-nosubdir): Clean up conditional
4755 dependencies.
4756
c1bf9f14
UD
47572007-07-23 Ulrich Drepper <drepper@redhat.com>
4758
4759 * io/Makefile (tests): Add tst-posix_fallocate.
4760 * io/tst-posix_fallocate.c: New file.
4761
4762 * sysdeps/unix/sysv/linux/kernel-features.h: Define
4763 __ASSUME_FALLOCATE.
4764
2320270c
RM
47652007-07-22 Roland McGrath <roland@frob.com>
4766
3dadfa7e
RM
4767 * hurd/getdport.c: Add missing copyright year update.
4768
2320270c
RM
4769 * sysdeps/mach/hurd/bits/fcntl.h [__USE_GNU] (O_CLOEXEC): New macro.
4770 * hurd/port2fd.c (_hurd_port2fd): Implement O_CLOEXEC.
4771
cc783763
UD
47722007-07-22 Ulrich Drepper <drepper@redhat.com>
4773
c942388d
UD
4774 * login/utmp_file.c (setutent_file): Use O_CLOEXEC if possible.
4775
cc783763
UD
4776 * libio/fileops.c (_IO_new_file_fopen): Recognize 'e' flag and set
4777 O_CLOEXEC is needed.
4778 * nis/nss_compat/compat-grp.c: Use 'e' flag when opening file.
4779 Avoid additional fcntl to set O_CLOEXEC if not needed.
4780 * nis/nss_compat/compat-initgroups.c: Likewise.
4781 * nis/nss_compat/compat-pwd.c: Likewise.
4782 * nis/nss_compat/compat-spwd.c: Likewise.
4783
610903b0
RM
47842007-07-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
4785
3dadfa7e 4786 [BZ #3665]
5c3d7832
RM
4787 * manual/errno.texi: Change ECANCELED value to 119.
4788
3dadfa7e 4789 [BZ #4610]
610903b0
RM
4790 * mach/lock-intern.h: Include <sys/cdefs.h>.
4791
3dadfa7e 4792 [BZ #4178]
610903b0
RM
4793 * sysdeps/mach/hurd/sigaction.c (__sigaction): Check ACT != NULL before
4794 reading A.
4795
3dadfa7e
RM
4796 [BZ #4126]
4797 * sysdeps/mach/hurd/sigsuspend.c (sigsuspend_not_cancel): Define alias
4798 to __sigsuspend.
610903b0
RM
4799
4800 * sysdeps/mach/i386/sysdep.h: Include <dl-sysdep.h> and <tls.h>.
4801
48022006-06-13 Thomas Schwinge <tschwinge@gnu.org>
4803
4804 * sysdeps/mach/hurd/tls.h: Change `ASSEMBLER' conditional to
4805 `__ASSEMBLER__'.
4806 * sysdeps/mach/hurd/i386/tls.h: Likewise.
4807
acf79996
UD
48082007-07-21 Ulrich Drepper <drepper@redhat.com>
4809
dde0763a
UD
4810 * nscd/nscd_helper.c (get_mapping): Use MSG_CMSG_CLOEXEC for
4811 descriptor received from nscd.
4812
acf79996
UD
4813 * sysdeps/unix/sysv/linux/bits/socket.h: Define MSG_CMSG_CLOEXEC.
4814
4815 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_CLOEXEC.
4816 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
4817 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
4818 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
4819 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
4820 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
4821
00d26929
JJ
48222007-07-20 Jakub Jelinek <jakub@redhat.com>
4823
403445d7
JJ
4824 [BZ #4816]
4825 * manual/signal.texi (Non-atomic Example): Make memory var volatile.
4826
00d26929
JJ
4827 [BZ #4813]
4828 * login/forkpty.c (forkpty): Close master and slave fds on
4829 fork failure. Patch by
4830 Mikulas Patocka <mikulas@artax.karlin.mff.cuni.cz>.
4831
087722b8
UD
48322007-07-18 Jakub Jelinek <jakub@redhat.com>
4833
4834 * include/features.h (__USE_ISOC95): New define.
4835 * wcsmbs/wchar.h (fwprintf, fwscanf, wprintf, wscanf, swprintf,
4836 swscanf, vfwprintf, vwprintf, vswprintf, fwide): Define even
4837 for -std=iso9899:199409.
4838 * CONFORMANCE: Remove comments about unsupported AMD1.
4839
b042b023
UD
48402007-07-17 Jakub Jelinek <jakub@redhat.com>
4841
4842 * sysdeps/ia64/sched_cpucount.c: New file.
4843 * sysdeps/powerpc/sched_cpucount.c: New file.
4844
8381e467
UD
4845 * sysdeps/unix/sysv/linux/bits/sched.h (__sched_cpucount): Add
4846 __BEGIN_DECLS/__END_DECLS around the prototype.
4847 * bits/sched.h (__sched_cpucount): Likewise. Make second argument
4848 pointer to const cpu_set_t.
4849
50e16f85
UD
4850 * bits/types.h: Don't include stddef.h, don't define __need_size_t.
4851 * signal/signal.h <__USE_BSD || __USE_XOPEN_EXTENDED>: Define
4852 __need_size_t and include stddef.h.
4853 * sysvipc/sys/msg.h: Likewise.
4854 * posix/sched.h: Likewise.
4855 * hurd/hurd/signal.h (__need_size_t): Define.
4856
4857 * CONFORMANCE: ctype.h and wctype.h no longer define size_t,
4858 neither does signal.h in pedantic ISO C namespaces. stdio.h
4859 no longer defines wint_t or wchar_t.
4860
b257c726
UD
4861 * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): New function.
4862 * debug/vfwprintf_chk.c (__vfwprintf_chk): Use
4863 _IO_acquire_lock_clear_flags2 instead of _IO_acquire_lock.
4864 * debug/vprintf_chk.c (__vprintf_chk): Likewise.
4865 * debug/vwprintf_chk.c (__vwprintf_chk): Likewise.
4866 * debug/vfprintf_chk.c (__vfprintf_chk): Likewise.
4867 * debug/fwprintf_chk.c (__fwprintf_chk): Likewise.
4868 * debug/printf_chk.c (__printf_chk): Likewise.
4869 * debug/fprintf_chk.c (__fprintf_chk): Likewise.
4870 * debug/wprintf_chk.c (__wprintf_chk): Likewise.
4871
4872 * sysdeps/pthread/bits/stdio-lock.h (_IO_acquire_lock_clear_flags2):
4873 Define.
4874
d5078b9f
UD
4875 * bits/confname.h (_CS_POSIX_V6_WIDTH_RESTRICTED_ENVS): Define.
4876 * posix/getconf.c (vars): Add POSIX_V6_WIDTH_RESTRICTED_ENVS.
4877
1c3e748e
UD
48782007-07-16 Jakub Jelinek <jakub@redhat.com>
4879
4880 [BZ #4792]
4881 * stdlib/stdlib.h (realloc): Remove __attribute_malloc__.
4882 * malloc/malloc.h (realloc): Likewise.
4883
4e425301
UD
4884 * libio/iopopen.c (_IO_new_proc_open): Don't close child_std_end
4885 if one of proc_file_chain streams has that fileno.
4886 * stdio-common/Makefile (tests): Add tst-popen2.
4887 * stdio-common/tst-popen2.c: New test.
4888
2e2efe65
RM
48892007-07-14 Jakub Jelinek <jakub@redhat.com>
4890
4891 * elf/ldconfig.c: Allow GPLv2 or any later version.
4892 * elf/readlib.c: Likewise.
4893 * elf/chroot_canon.c: Likewise.
4894 * elf/cache.c: Likewise.
4895 * nscd/mem.c: Likewise.
4896 * nscd/getpwuid_r.c: Likewise.
4897 * nscd/grpcache.c: Likewise.
4898 * nscd/aicache.c: Likewise.
4899 * nscd/getsrvbynm_r.c: Likewise.
4900 * nscd/nscd.c: Likewise.
4901 * nscd/servicescache.c: Likewise.
4902 * nscd/getsrvbypt_r.c: Likewise.
4903 * nscd/initgrcache.c: Likewise.
4904 * nscd/gethstbyad_r.c: Likewise.
4905 * nscd/gethstbynm2_r.c: Likewise.
4906 * nscd/getgrnam_r.c: Likewise.
4907 * nscd/nscd_setup_thread.c: Likewise.
4908 * nscd/getpwnam_r.c: Likewise.
4909 * nscd/gai.c: Likewise.
4910 * nscd/connections.c: Likewise.
4911 * nscd/dbg_log.c: Likewise.
4912 * nscd/cache.c: Likewise.
4913 * nscd/hstcache.c: Likewise.
4914 * nscd/nscd_conf.c: Likewise.
4915 * nscd/getgrgid_r.c: Likewise.
4916 * nscd/pwdcache.c: Likewise.
4917 * catgets/gencat.c: Likewise.
4918 * locale/programs/linereader.h: Likewise.
4919 * locale/programs/locarchive.c: Likewise.
4920 * locale/programs/ld-paper.c: Likewise.
4921 * locale/programs/locfile-kw.h: Likewise.
4922 * locale/programs/ld-address.c: Likewise.
4923 * locale/programs/xmalloc.c: Likewise.
4924 * locale/programs/ld-time.c: Likewise.
4925 * locale/programs/localedef.c: Likewise.
4926 * locale/programs/simple-hash.c: Likewise.
4927 * locale/programs/xstrdup.c: Likewise.
4928 * locale/programs/ld-numeric.c: Likewise.
4929 * locale/programs/locfile-kw.gperf: Likewise.
4930 * locale/programs/ld-collate.c: Likewise.
4931 * locale/programs/charmap-kw.gperf: Likewise.
4932 * locale/programs/charmap.h: Likewise.
4933 * locale/programs/charmap-kw.h: Likewise.
4934 * locale/programs/config.h: Likewise.
4935 * locale/programs/locfile.c: Likewise.
4936 * locale/programs/ld-ctype.c: Likewise.
4937 * locale/programs/charmap.c: Likewise.
4938 * locale/programs/ld-messages.c: Likewise.
4939 * locale/programs/repertoire.h: Likewise.
4940 * locale/programs/locale.c: Likewise.
4941 * locale/programs/ld-name.c: Likewise.
4942 * locale/programs/linereader.c: Likewise.
4943 * locale/programs/locfile.h: Likewise.
4944 * locale/programs/3level.h: Likewise.
4945 * locale/programs/ld-monetary.c: Likewise.
4946 * locale/programs/ld-measurement.c: Likewise.
4947 * locale/programs/charmap-dir.c: Likewise.
4948 * locale/programs/ld-identification.c: Likewise.
4949 * locale/programs/localedef.h: Likewise.
4950 * locale/programs/charmap-dir.h: Likewise.
4951 * locale/programs/repertoire.c: Likewise.
4952 * locale/programs/simple-hash.h: Likewise.
4953 * locale/programs/ld-telephone.c: Likewise.
4954 * locale/programs/locale-spec.c: Likewise.
4955 * locale/programs/locfile-token.h: Likewise.
4956 * posix/getconf.c: Likewise.
4957 * iconv/dummy-repertoire.c: Likewise.
4958 * iconv/iconv_charmap.c: Likewise.
4959 * iconv/iconvconfig.c: Likewise.
4960 * iconv/iconv_prog.c: Likewise.
4961 * malloc/memusagestat.c: Likewise.
4962 * sysdeps/unix/sysv/linux/nscd_setup_thread.c: Likewise.
4963
84c23a3d
RM
49642007-07-06 Kaz Kojima <kkojima@rr.iij4u.or.jp>
4965
4966 * sysdeps/sh/bsd-setjmp.S (setjmp): Use correct argument registers.
4967 * sysdeps/sh/bsd-_setjmp.S (_setjmp): Likewise.
4968 * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Do correct sanity
4969 check for the first argument.
4970
1c298d08
UD
49712007-07-12 Jakub Jelinek <jakub@redhat.com>
4972
4973 [BZ #4775]
4974 * math/tgmath.h (__tgmath_real_type_sub): Formatting.
4975 (__tgmath_real_type): Fix if expr is const int or other const
4976 qualified integral type.
4977 (__TGMATH_UNARY_REAL_ONLY): Rewritten to avoid using statement
4978 expressions and handle const qualified arguments.
4979 (__TGMATH_BINARY_FIRST_REAL_ONLY, __TGMATH_UNARY_REAL_IMAG,
4980 __TGMATH_UNARY_REAL_IMAG_RET_REAL): Likewise.
4981 (__TGMATH_UNARY_REAL_RET_ONLY): Rewritten to avoid using
4982 statement expressions.
4983 (__TGMATH_BINARY_REAL_ONLY, __TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY,
4984 __TGMATH_TERNARY_REAL_ONLY, __TGMATH_BINARY_REAL_IMAG): Likewise.
4985 (__TGMATH_UNARY_IMAG): Define.
4986 (conj, cproj): Use __TGMATH_UNARY_IMAG macro.
4987 * math/Makefile (tests): Add test-tgmath2.
4988 (CFLAGS-test-tgmath2.c): Add.
4989 * math/test-tgmath.c (fy, dy, ly, fz, dz, lz, count_cdouble,
4990 count_cfloat, count_cldouble): New variables.
4991 (NCCALLS): Define.
4992 (main): Check number of complex calls as well.
4993 (F(compile_test)): Add complex tests and tests with const qualified
4994 arguments.
4995 (y, z, ccount): Define.
4996 (F(cacos), F(casin), F(catan), F(ccos), F(csin), F(ctan), F(cacosh),
4997 F(casinh), F(catanh), F(ccosh), F(csinh), F(ctanh), F(cexp), F(clog),
4998 F(csqrt), F(cpow), F(cabs), F(carg), F(creal), F(cimag), F(conj),
4999 F(cproj)): New functions.
5000 * math/test-tgmath2.c: New test.
5001
50022007-07-11 Jakub Jelinek <jakub@redhat.com>
5003
5004 [BZ #4776]
5005 * elf/dl-load.c (_dl_rtld_di_serinfo): Output / in LD_LIBRARY_PATH,
5006 RPATH etc. as "/" rather than "", don't segfault on empty paths,
5007 instead output ".".
5008 * dlfcn/Makefile (distribute): Add glreflib3.c.
5009 (module-names): Add glreflib3.
5010 ($(objpfx)tst-dlinfo.out): Depend on glreflib3.so rather than
5011 glreflib1.so.
5012 (LDFLAGS_glreflib3.so): New.
5013 * dlfcn/tst-dlinfo.c (do_test): Load glreflib3.so instead of
5014 glreflib1.so.
5015 * dlfcn/glreflib3.c: New file.
5016
5017 * intl/finddomain.c (_nl_find_domain): If _nl_explode_name
5018 returned -1, return NULL.
5019 * intl/explodename.c (_nl_explode_name): Return -1 if
5020 _nl_normalize_codeset failed.
5021
a88f47a7
UD
50222007-07-07 Steven Munroe <sjmunroe@us.ibm.com>
5023
5024 * sysdeps/powerpc/powerpc32/power6/memset.S: Update comments.
5025 Specify .machine power6 to get ISA-V2.0 branch hints. Unroll loops
5026 and avoid branch misspredicts for > 31 bytes memset case.
5027 * sysdeps/powerpc/powerpc64/power6/memset.S: Likewise.
5028 Remove toc ref to __cache_line_size.
5029
5030 * sysdeps/powerpc/powerpc32/power4/memcmp.S: Specify .machine power4
5031 to get ISA-V2.0 branch hints.
5032 * sysdeps/powerpc/powerpc32/power4/memcpy.S: Likewise
5033 * sysdeps/powerpc/powerpc32/power4/memset.S: Likewise
5034 * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
5035 * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
5036 * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
5037 * sysdeps/powerpc/powerpc64/power4/memset.S: Likewise.
5038 Remove toc ref to __cache_line_size.
5039
5040 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S:
5041 Include math_ldbl_opt.h.
5042
f98c2d06
UD
50432007-07-10 Ulrich Drepper <drepper@redhat.com>
5044
5045 [BZ #4773]
5046 * time/strptime_l.c (__strptime_internal): Implement greedy
5047 matching of weekday and month names.
5048
cec5991f
RM
50492007-07-09 Roland McGrath <roland@redhat.com>
5050
5051 * elf/elf.h (NT_GNU_ABI_TAG): New macro.
5052 (ELF_NOTE_ABI): Use it.
5053 (NT_GNU_HWCAP, NT_GNU_BUILD_ID): New macros.
5054
8c1dcd26
UD
50552007-07-09 Ulrich Drepper <drepper@redhat.com>
5056
5057 * sysdeps/x86_64/cacheinfo.c (intel_02_known): Add new entries.
5058 * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
5059
c2c7bd3f
UD
50602007-07-07 Ulrich Drepper <drepper@redhat.com>
5061
5062 [BZ #4745]
0923a2c8
UD
5063 * stdio-common/vfscanf.c (_IO_vfscanf): Add additional test for EOF
5064 in loop to look for conversion specifier to avoid testing of
5065 wrong errno value.
5066 * stdio-common/Makefile (tests): Add bug18, bug18a, bug19, bug19a.
c2c7bd3f 5067 * stdio-common/bug18.c: New file.
0923a2c8
UD
5068 * stdio-common/bug18a.c: New file.
5069 * stdio-common/bug19.c: New file.
5070 * stdio-common/bug19a.c: New file.
c2c7bd3f 5071
4facf4af
RM
50722007-07-05 Mike Frysinger <vapier@gentoo.org>
5073
5074 * Makeconfig ($(common-objpfx)gnu/lib-names.stmp): Use LC_ALL=C when
5075 running awk script.
5076
1311e86e
UD
50772007-07-01 Jakub Jelinek <jakub@redhat.com>
5078
5079 * elf/dl-sysdep.c (_dl_important_hwcaps): Add integer overflow check.
5080 * elf/dl-minimal.c (__libc_memalign): Likewise. Handle malloc (0).
5081 Return NULL if mmap failed instead of asserting it does not.
5082 (calloc): Check for integer overflow.
5083
5084 * elf/dl-minimal.c (__strtoul_internal): Fix parsing of numbers bigger
5085 than LONG_MAX / 10.
5086
57c9179c
UD
50872007-07-03 Jakub Jelinek <jakub@redhat.com>
5088
5089 [BZ #4702]
5090 * nis/nss-default.c: Include errno.h.
5091 (init): Preserve errno.
5092
d0b283a8
UD
50932007-07-02 Ulrich Drepper <drepper@redhat.com>
5094
5095 * sysdeps/unix/sysv/linux/bits/socket.h (PF_UNIX): Update comment.
5096
34e0bbaf
UD
50972007-06-30 Ulrich Drepper <drepper@redhat.com>
5098
5099 * sysdeps/unix/sysv/linux/bits/socket.h: Add PF_RXRPC and AF_RXRPC.
5100
51012007-06-29 Martin Schwidefsky <schwidefsky@de.ibm.com>
5102
5103 * sysdeps/unix/sysv/linux/bits/socket.h: Add PF_IUCV and AF_IUCV.
5104
34e0bbaf 51052007-06-29 Martin Schwidefsky <schwidefsky@de.ibm.com>
33516494
UD
5106
5107 * sysdeps/s390/dl-procinfo.c: New file.
5108 * sysdeps/s390/dl-procinfo.h: New file.
5109 * sysdeps/unix/sysv/linux/s390/dl-procinfo.h: New file.
5110
0e508a6e
UD
51112007-06-29 Jakub Jelinek <jakub@redhat.com>
5112
5113 * elf/dl-load.c (open_verify): Find .note.ABI-tag notes even
5114 in PT_NOTE segments with multiple notes.
5115 * elf/readelflib.c (process_elf_file): Likewise.
5116
e22c61fb
UD
51172007-06-22 Ulrich Drepper <drepper@redhat.com>
5118
5119 * nis/nis_domain_of.c (__nis_domain_of): Make the code a bit more
5120 ISO C compliant.
5121
e4eb675d
UD
51222007-06-19 Ulrich Drepper <drepper@redhat.com>
5123
5124 * elf/dl-close.c (free_mem): Free _dl_scope_free_list.
5125
51262007-06-13 Jakub Jelinek <jakub@redhat.com>
5127
5128 * include/link.h: Don't include rtld-lowlevel.h.
5129 (struct link_map): Remove l_scope_lock.
5130 * sysdeps/generic/ldsodefs.h: Don't include rtld-lowlevel.h.
5131 (_dl_scope_free_list): New field (variable) in _rtld_global.
5132 (DL_LOOKUP_SCOPE_LOCK): Remove.
5133 (_dl_scope_free): New prototype.
5134 * elf/dl-runtime.c (_dl_fixup): Don't use __rtld_mrlock_*lock.
5135 Don't pass DL_LOOKUP_SCOPE_LOCK to _dl_lookup_symbol_x.
5136 (_dl_profile_fixup): Likewise.
5137 * elf/dl-sym.c (do_sym): Likewise. Use wrapped _dl_lookup_symbol_x
5138 whenever !RTLD_SINGLE_THREAD_P, use THREAD_GSCOPE_SET_FLAG and
5139 THREAD_GSCOPE_RESET_FLAG around it.
5140 * elf/dl-close.c (_dl_close_worker): Don't use
5141 __rtld_mrlock_{change,done}. Call _dl_scope_free on the old
5142 scope. Make sure THREAD_GSCOPE_WAIT () happens if any old
5143 scopes were queued or if l_scope_mem has been abandoned.
5144 * elf/dl-open.c (_dl_scope_free): New function.
5145 (dl_open_worker): Use it. Don't use __rtld_mrlock_{change,done}.
5146 * elf/dl-support.c (_dl_scope_free_list): New variable.
5147 * elf/dl-lookup.c (add_dependency): Remove flags argument.
5148 Remove DL_LOOKUP_SCOPE_LOCK handling.
5149 (_dl_lookup_symbol_x): Adjust caller. Remove DL_LOOKUP_SCOPE_LOCK
5150 handling.
5151 * elf/dl-object.c (_dl_new_object): Don't use
5152 __rtld_mrlock_initialize.
5153
9be09e06
UD
51542007-06-19 Ulrich Drepper <drepper@redhat.com>
5155
5156 * sysdeps/generic/ldsodefs.h (rtld_global): Reorder some elements
5157 to fill in holes
5158 (rtld_global_ro): Likewise.
5159
51602007-06-18 Jakub Jelinek <jakub@redhat.com>
5161
5162 * elf/dl-addr.c (_dl_addr): Skip PT_LOAD checking if l_contiguous.
5163 Move PT_LOAD checking to...
5164 (_dl_addr_inside_object): ... here, new function.
5165 * elf/dl-sym.c (do_sym): If not l_contiguous,
5166 call _dl_addr_inside_object.
5167 * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise.
5168 * dlfcn/dlinfo.c (dlinfo_doit): Likewise.
5169 * elf/dl-open.c (dl_open_worker): Likewise.
5170 (_dl_addr_inside_object): New function if IS_IN_rtld.
5171 * elf/dl-load.c (_dl_map_object_from_fd): Set l_contiguous if no
5172 holes are present or are PROT_NONE protected.
5173 * include/link.h (struct link_map): Add l_contiguous field.
5174 * sysdeps/generic/ldsodefs.h (_dl_addr_inside_object): New prototype.
5175
ae1ad3ae
UD
51762007-06-18 Jakub Jelinek <jakub@redhat.com>
5177 Tomas Janousek <tjanouse@redhat.com>
5178 Ulrich Drepper <drepper@redhat.com>
5179
5180 [BZ #4647]
5181 * resolv/res_send.c (send_dg): Remove socket_pf. Use ipv6_unavail
5182 member in __res_state, only convaddr4to6 if nssocks[ns] is a PF_INET6
5183 socket.
5184 * resolv/resolv.h (__res_state): Add ipv6_unavail member. Make
5185 unused member a bitmap.
5186 * resolv/res_init.c (__res_vinit): Reset ipv6_unavail if IPv6
5187 servers are configured.
5188
3abee0b7
UD
51892007-06-18 Jakub Jelinek <jakub@redhat.com>
5190
5191 * elf/rtld.c (dl_main): Don't call init_tls more than once.
5192
89074592
UD
51932007-06-17 Andreas Schwab <schwab@suse.de>
5194
5195 * sysdeps/generic/initfini.c: Tell gcc about the nonstandard sections.
5196
b26e274d
AJ
51972007-06-16 Andreas Jaeger <aj@suse.de>
5198
5199 [BZ #4125]
5200 * sysdeps/unix/sysv/linux/sys/ptrace.h
5201 (PTRACE_O_TRACESYSGOOD, PTRACE_O_TRACEFORK,
5202 PTRACE_O_TRACEVFORK, PTRACE_O_TRACECLONE, PTRACE_O_TRACEEXEC,
89074592 5203 PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT, PTRACE_O_MASK,
b26e274d
AJ
5204 PTRACE_EVENT_FORK, PTRACE_EVENT_VFORK, PTRACE_EVENT_CLONE,
5205 PTRACE_EVENT_EXEC, PTRACE_EVENT_VFORK_DONE, PTRACE_EVENT_EXIT):
5206 Define.
5207 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
5208 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
5209 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
5210 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
5211
e0d4a4e5
UD
52122007-06-16 Ulrich Drepper <drepper@redhat.com>
5213
5214 [BZ #4599]
5215 * sysdeps/unix/sysv/linux/check_pf.c (make_request): When
5216 determining whether there are IPv4/IPv6 addresses, ignore loopback
5217 addresses.
5218
ae8e81f5
JJ
52192007-06-14 Uros Bizjak <ubizjak@gmail.com>
5220
5221 * soft-fp/soft-fp.h (CMPtype): Define to "int" if undefined.
5222 * soft-fp/eqdf2.c (__eqdf2): Use CMPtype instead of int
5223 as the return type. Change type of "r" variable to CMPtype.
5224 * soft-fp/eqsf2.c (__eqsf2): Likewise.
5225 * soft-fp/eqtf2.c (__eqtf2): Likewise.
5226 * soft-fp/gedf2.c (__gedf2): Likewise.
5227 * soft-fp/gesf2.c (__gesf2): Likewise.
5228 * soft-fp/getf2.c (__getf2): Likewise.
5229 * soft-fp/ledf2.c (__ledf2): Likewise.
5230 * soft-fp/lesf2.c (__lesf2): Likewise.
5231 * soft-fp/letf2.c (__letf2): Likewise.
5232 * soft-fp/unorddf2 (__unorddf2): Likewise.
5233 * soft-fp/unordsf2 (__unordsf2): Likewise.
5234 * soft-fp/unordtf2 (__unordtf2): Likewise.
5235
90cd2413
UD
52362007-06-09 Ulrich Drepper <drepper@redhat.com>
5237
5238 * elf/do-lookup.h (do_lookup_x): Read r_nlist before r_list and
5239 make sure gcc doesn't mess around with this.
5240
3c457089
UD
52412007-06-08 Ulrich Drepper <drepper@redhat.com>
5242
5243 * elf/dl-lookup.c (_dl_lookup_symbol_x): Remove use of r_nlist.
5244
e8b6b64d
UD
52452007-06-08 Jakub Jelinek <jakub@redhat.com>
5246
5247 * elf/dl-close.c (_dl_close_worker): Remove all to be removed
5248 libraries from the global scope at once and call THREAD_GSCOPE_WAIT
5249 at most once per _dl_close_worker.
5250
36dffb22
UD
52512007-06-08 Ulrich Drepper <drepper@redhat.com>
5252
755db8c5
UD
5253 * sysdeps/unix/sysv/linux/bits/sched.h: Make second parameter of
5254 __sched_cpucount as const.
5255 * posix/sched_cpucount.c: Adjust.
5256
36dffb22
UD
5257 * posix/sched_cpucount.c (__sched_cpucount): Allow using special
5258 instruction for counting bits.
5259 * sysdeps/x86_64/sched_cpucount.c: New file.
5260
26f56c1c
UD
52612007-06-07 Ulrich Drepper <drepper@redhat.com>
5262
5263 * configure.in: Avoid variable named BASH.
e967d385 5264 * config.make.in: Likewise.
26f56c1c 5265 Patch in part by Mike Frysinger.
835abc5c 5266
26f56c1c 52672007-06-06 Jakub Jelinek <jakub@redhat.com>
47779a7d
JJ
5268
5269 [BZ #4586]
835abc5c
UD
5270 * sysdeps/i386/ldbl2mpn.c (__mpn_extract_long_double): Treat
5271 pseudo-zeros as zero.
5272 * sysdeps/x86_64/ldbl2mpn.c: New file.
5273 * sysdeps/ia64/ldbl2mpn.c: New file.
5274
7e3706ea
UD
52752007-06-04 Jakub Jelinek <jakub@redhat.com>
5276
5277 * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (nextafterl): Remove
5278 unused ily variable. Fix nextafterl on +-__LDBL_MAX__ and +-Inf.
5279 Remove unreachable code at the end.
5280
52812007-06-01 Steven Munroe <sjmunroe@us.ibm.com>
5282
5283 * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Correct description of
5284 ldbl-128ibm in comment.
5285 (fpclassifyl): Correct classification of denormals.
5286 * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (nextafterl): Correct
5287 return value for MIN denormal. Rewrite using long double math too
5288 correctly handle denormals and canonicalize the results.
5289
52902007-06-05 Jakub Jelinek <jakub@redhat.com>
5291
5292 * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c
5293 (__mpn_construct_long_double): Fix conversion where result ought
5294 to be smaller than __LDBL_MIN__, or the low double should be
5295 denormal. Fix decision where to negate low double - honor round
5296 to even rules.
5297 * stdio-common/tst-sprintf2.c: Include string.h.
5298 (COMPARE_LDBL): Define.
5299 (TEST): Also test whether a string hexadecimal float representation
5300 can be parsed back to the number.
5301 (main): Add a couple of further tests.
5302
43b76828
UD
53032007-06-04 Jakub Jelinek <jakub@redhat.com>
5304
5305 * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c
5306 (PRINT_FPHEX_LONG_DOUBLE): Fix printing numbers where lower double
5307 is non-zero, but smaller than 2 * __DBL_MIN__.
5308 * stdio-common/tst-sprintf2.c: New test.
5309 * stdio-common/Makefile (tests): Add tst-sprintf2.
5310
5311 * math/test-misc.c (main): Don't run last batch of tests with
5312 IBM long double format.
5313
04067002
UD
53142007-05-31 Steven Munroe <sjmunroe@us.ibm.com>
5315
5316 * sysdeps/powerpc/powerpc32/970/fpu/Implies: New file.
5317 * sysdeps/powerpc/powerpc32/power5/fpu/Implies: New file.
5318 * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: New file.
5319 * sysdeps/powerpc/powerpc32/power6/fpu/Implies: New file.
5320 * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: New file.
5321 * sysdeps/powerpc/powerpc64/970/fpu/Implies: New file.
5322 * sysdeps/powerpc/powerpc64/power5/fpu/Implies: New file.
5323 * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: New file.
5324 * sysdeps/powerpc/powerpc64/power6/fpu/Implies: New file.
5325 * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: New file.
5326 * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: New file.
5327 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies:
5328 New file.
5329 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies:
5330 New file.
5331 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies:
5332 New file.
5333 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies:
5334 New file.
5335 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies:
5336 New file.
5337 * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: New file.
5338 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies:
5339 New file.
5340 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies:
5341 New file.
5342 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies:
5343 New file.
5344 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies:
5345 New file.
5346 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies:
5347 New file.
5348
53492007-05-31 Steven Munroe <sjmunroe@us.ibm.com>
5350
5351 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S: Move.
5352 * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: To here.
5353 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrintf.S: Move.
5354 * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: To here.
5355 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llround.S: Move.
5356 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: To here.
5357 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llroundf.S: Move.
5358 * sysdeps/powerpc/powerpc32/power4/fpu/s_llroundf.S: To here.
5359
53602007-05-22 Steven Munroe <sjmunroe@us.ibm.com>
5361
5362 * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S
5363 (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
5364 * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S
5365 (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
5366 * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S
5367 (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
5368 * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S
5369 (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
5370
53712007-05-21 Steven Munroe <sjmunroe@us.ibm.com>
5372
5373 * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: New file.
5374 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.c: New file.
5375 * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: New file.
5376 * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: New file.
5377
53782007-03-15 Steven Munroe <sjmunroe@us.ibm.com>
5379
5380 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S
5381 [LONG_DOUBLE_COMPAT]: Add compat_symbol for llrintl@@GLIBC_2_1.
5382
53832006-02-13 Steven Munroe <sjmunroe@us.ibm.com>
5384
5385 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: New File
5386 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: New File
5387 * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: New File
5388 * sysdeps/powerpc/powerpc32/power6/fpu/s_llroundf.S: New File
5389
53902006-10-20 Steven Munroe <sjmunroe@us.ibm.com>
5391
5392 * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: New file.
5393 * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: New file.
5394
53952006-10-03 Steven Munroe <sjmunroe@us.ibm.com>
5396
5397 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llround.S: New file.
5398 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llroundf.S: New file.
5399
5400 * sysdeps/powerpc/powerpc32/powerpc64/fpu/Makefile: Moved.
5401 * sysdeps/powerpc/powerpc32/powerpc64/fpu/mpa.c: Likewise.
5402 * sysdeps/powerpc/powerpc32/power4/fpu/Makefile: To here.
5403 * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
5404
54052006-09-29 Steven Munroe <sjmunroe@us.ibm.com>
5406
5407 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lrint.S: New file.
5408 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: New file.
5409 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: New file.
5410 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: New file.
5411
54122006-09-28 Steven Munroe <sjmunroe@us.ibm.com>
5413
5414 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: New file.
5415 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llroundf.S: New file.
5416 * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: New file.
5417 * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: New file.
5418 * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: New file.
5419 * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: New file.
5420
54212006-08-31 Steven Munroe <sjmunroe@us.ibm.com>
5422
5423 * sysdeps/powerpc/powerpc32/powerpc64/fpu/Makefile: New file.
5424 * sysdeps/powerpc/powerpc32/powerpc64/fpu/mpa.c: New file.
5425 * sysdeps/powerpc/powerpc64/power4/fpu/Makefile: New file.
5426 * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: New file.
5427
54282006-06-15 Steven Munroe <sjmunroe@us.ibm.com>
5429
5430 * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceil.S: New file.
5431 * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceilf.S: New file.
5432 * sysdeps/powerpc/powerpc32/power5+/fpu/s_floor.S: New file.
5433 * sysdeps/powerpc/powerpc32/power5+/fpu/s_floorf.S: New file.
5434 * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S: New file.
5435 * sysdeps/powerpc/powerpc32/power5+/fpu/s_roundf.S: New file.
5436 * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S: New file.
5437 * sysdeps/powerpc/powerpc32/power5+/fpu/s_truncf.S: New file.
5438 * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceil.S: New file.
5439 * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceilf.S: New file.
5440 * sysdeps/powerpc/powerpc64/power5+/fpu/s_floor.S: New file.
5441 * sysdeps/powerpc/powerpc64/power5+/fpu/s_floorf.S: New file.
5442 * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S: New file.
5443 * sysdeps/powerpc/powerpc64/power5+/fpu/s_roundf.S: New file.
5444 * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S: New file.
5445 * sysdeps/powerpc/powerpc64/power5+/fpu/s_truncf.S: New file.
5446
54472006-03-20 Steven Munroe <sjmunroe@us.ibm.com>
5448
5449 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S: New file.
5450 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrintf.S: New file.
5451
54522007-06-01 Steven Munroe <sjmunroe@us.ibm.com>
5453
5454 * sysdeps/powerpc/powerpc32/power6/memset.S: New file.
5455 * sysdeps/powerpc/powerpc64/power6/memset.S: New file.
5456
54572007-05-31 Steven Munroe <sjmunroe@us.ibm.com>
5458
5459 * sysdeps/powerpc/powerpc32/970/Implies: New file.
5460 * sysdeps/powerpc/powerpc32/power5/Implies: New file.
5461 * sysdeps/powerpc/powerpc32/power5+/Implies: New file.
5462 * sysdeps/powerpc/powerpc32/power6/Implies: New file.
5463 * sysdeps/powerpc/powerpc32/power6x/Implies: New file.
5464 * sysdeps/powerpc/powerpc64/970/Implies: New file.
5465 * sysdeps/powerpc/powerpc64/power5/Implies: New file.
5466 * sysdeps/powerpc/powerpc64/power5+/Implies: New file.
5467 * sysdeps/powerpc/powerpc64/power6/Implies: New file.
5468 * sysdeps/powerpc/powerpc64/power6x/Implies: New file.
5469
54702007-05-21 Steven Munroe <sjmunroe@us.ibm.com>
5471
5472 * sysdeps/powerpc/powerpc32/power4/memset.S: New file
5473
54742007-03-13 Steven Munroe <sjmunroe@us.ibm.com>
5475
5476 * sysdeps/powerpc/powerpc64/memcpy.S: Improve aligned loop to minimize
5477 branch miss-predicts. Ensure that cache line crossing does not impact
5478 dispatch grouping.
5479
54802006-12-13 Steven Munroe <sjmunroe@us.ibm.com>
5481
5482 * sysdeps/powerpc/powerpc64/power4/memcopy.h: Replace with include
5483 "../../powerpc32/power4/memcopy.h".
5484 * sysdeps/powerpc/powerpc64/power4/wordcopy.c: Replace with include
5485 "../../powerpc32/power4/wordcopy.c".
5486
54872006-10-03 Steven Munroe <sjmunroe@us.ibm.com>
5488
5489 * sysdeps/powerpc/powerpc32/powerpc64/Makefile: Moved.
5490 * sysdeps/powerpc/powerpc32/powerpc64/memcopy.h: Likewise.
5491 * sysdeps/powerpc/powerpc32/powerpc64/wordcopy.c: Likewise.
5492 * sysdeps/powerpc/powerpc32/power4/Makefile: To here.
5493 * sysdeps/powerpc/powerpc32/power4/memcopy.h: Likewise.
5494 * sysdeps/powerpc/powerpc32/power4/wordcopy.c: Likewise.
5495
54962006-09-10 Steven Munroe <sjmunroe@us.ibm.com>
5497
5498 * sysdeps/powerpc/powerpc32/power6/memcpy.S: New file.
5499
55002006-08-31 Steven Munroe <sjmunroe@us.ibm.com>
5501
5502 * sysdeps/powerpc/powerpc32/power6/wordcopy.c: New file.
5503 * sysdeps/powerpc/powerpc32/powerpc64/Makefile: New file.
5504 * sysdeps/powerpc/powerpc32/powerpc64/memcopy.h: New file.
5505 * sysdeps/powerpc/powerpc32/powerpc64/wordcopy.c: New file.
5506 * sysdeps/powerpc/powerpc64/power4/Makefile: New file.
5507 * sysdeps/powerpc/powerpc64/power4/memcopy.h: New file.
5508 * sysdeps/powerpc/powerpc64/power4/wordcopy.c: New file.
5509 * sysdeps/powerpc/powerpc64/power6/wordcopy.c: New file.
5510
55112006-07-06 Steven Munroe <sjmunroe@us.ibm.com>
5512
5513 * sysdeps/powerpc/powerpc64/power6/memcpy.S: New file.
5514
55152006-03-20 Steven Munroe <sjmunroe@us.ibm.com>
5516
5517 * sysdeps/powerpc/powerpc32/power4/memcmp.S: New file.
5518 * sysdeps/powerpc/powerpc32/power4/memcpy.S: New file.
5519 * sysdeps/powerpc/powerpc32/power4/memset.S: New file.
5520 * sysdeps/powerpc/powerpc32/power4/strncmp.S: New file.
5521 * sysdeps/powerpc/powerpc64/power4/memcmp.S: New file.
5522 * sysdeps/powerpc/powerpc64/power4/memcpy.S: New file.
5523 * sysdeps/powerpc/powerpc64/power4/strncmp.S: New file.
5524
5b55e1d3
RM
55252007-05-29 Roland McGrath <roland@redhat.com>
5526
5527 * po/Makefile (po-sed-cmd): New variable.
5528 (libc.pot.files): Move sed command text in there, avoid \ inside ''.
5529
5da4373c
UD
55302007-05-29 Ulrich Drepper <drepper@redhat.com>
5531
4b5e7304
UD
5532 * crypt/md5-crypt.c: Fix comment.
5533
5da4373c
UD
5534 * nscd/nscd_helper.c (get_mapping): Handle short replies instead
5535 of crashing. When this is the case or if the reply is malformed,
5536 don't try to close the new file descriptor since it does not
5537 exist.
5538 Patch in part by Guillaume Chazarain <guichaz@yahoo.fr>.
5539
40f57573
UD
55402007-05-28 Jakub Jelinek <jakub@redhat.com>
5541
5542 * sysdeps/unix/sysv/linux/futimes.c (miss_utimensat): Don't define
5543 if __NR_utimensat is not defined.
5544
6df7ffad
UD
55452007-05-26 Ulrich Drepper <drepper@redhat.com>
5546
5547 * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Include <sysdep.h>.
5548
47ad95ab
UD
55492007-05-25 Jakub Jelinek <jakub@redhat.com>
5550
5551 * io/bits/fcntl2.h (__open_2): Add nonnull attribute.
5552 (open): Fix comment typos. Don't call __open_2 if flags
5553 is a compile time constant without O_CREAT.
5554 (__open64_2): Add nonnull attribute.
5555 (open64): Fix comment typos. Don't call __open64_2 if flags
5556 is a compile time constant without O_CREAT.
5557 (__openat_2): Add nonnull attribute, fix nonnull attribute
5558 on redirect.
5559 (openat): Fix comment typos. Don't call __openat_2 if flags
5560 is a compile time constant without O_CREAT.
5561 (__openat64_2): Add nonnull attribute, fix nonnull attribute
5562 on redirect.
5563 (openat64): Fix comment typos. Don't call __openat64_2 if flags
5564 is a compile time constant without O_CREAT.
5565
ddfd0535
UD
55662007-05-24 Ulrich Drepper <drepper@redhat.com>
5567
5568 * Makerules (sysd-rules): Define PTW for ptw-* files.
5569 * Versions: Define GLIBC_2.7 for libc.
5570 * include/stdio.h: Declare __fortify_fail.
5571 * debug/fortify_fail.c: New file.
5572 * debug/Makefile (routines): Add fortify_fail.
5573 * debug/chk_fail.c: Use __fortify_fail.
5574 * debug/stack_chk_fail.c: Likewise.
5575 * io/Versions: Export __open_2, __open64_2, __openat_2, and
5576 __openat64_2 for GLIBC_2.7.
5577 * io/fcntl.h: When compiling with fortification, include bits/fcntl2.h.
5578 * io/open.c: Define *_2 variant of function which checks for O_CREAT
5579 and fails if necessary.
5580 * io/open64.c: Likewise.
5581 * io/openat.c: Likewise.
5582 * io/openat64.c: Likewise.
5583 * sysdeps/unix/sysv/linux/open64.c: Likewise.
5584 * sysdeps/unix/sysv/linux/openat.c: Likewise.
5585 * sysdeps/unix/sysv/linux/openat64.c: Likewise.
5586 * io/bits/fcntl2.h: New file.
5587 * include/fcntl.h: Declare __open_2, __open64_2, __openat_2, and
5588 __openat64_2.
5589 * include/bits/fcntl2.h: New file.
5590 * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
5591 Add open_2.
5592 * sysdeps/unix/sysv/linux/open_2.c: New file.
5593
bfe6f5fa
UD
55942007-05-21 Ulrich Drepper <drepper@redhat.com>
5595
6d59823c
UD
5596 * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Pass correct value
5597 as second parameter to handle_intel.
5598
e2b1e343
UD
5599 * nscd/aicache.c (addhstaiX): If reported TTL is zero don't cache
5600 the entry.
5601
bfe6f5fa
UD
5602 * sysdeps/unix/sysv/linux/x86_64/sysconf.c: Move cache information
5603 handling to ...
5604 * sysdeps/x86_64/cacheinfo.c: ... here. New file.
5605 * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
5606 cacheinfo.
5607 * sysdeps/x86_64/memcpy.S: Complete rewrite.
5608 * sysdeps/x86_64/mempcpy.S: Adjust appropriately.
5609 Patch by Evandro Menezes <evandro.menezes@amd.com>.
5610
5611 * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: New file.
5612
1f4843fb
UD
56132007-05-21 Jakub Jelinek <jakub@redhat.com>
5614
2c2c003a
UD
5615 [BZ #4525]
5616 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add epoll_pwait.
5617 * sysdeps/unix/sysv/linux/epoll_pwait.c: New file.
5618 * sysdeps/unix/sysv/linux/syscalls.list (epoll_pwait): Remove.
5619
5620 * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h (epoll_pwait): Declare.
5621
af269dd9
UD
5622 [BZ #4514]
5623 * stdio-common/vfprintf.c (vfprintf): Don't shadow workstart variable,
5624 reinitialize workend at the start of each do_positional format spec
5625 loop, free workstart before do_positional loops.
5626 (printf_unknown): Fix size of work_buffer.
5627 * stdio-common/tst-sprintf.c (main): Add 3 new testcases.
5628
1f4843fb
UD
5629 * malloc/hooks.c (MALLOC_STATE_VERSION): Bump.
5630 (public_sET_STATe): If ms->version < 3, put all chunks into
5631 unsorted chunks and clear {fd,bk}_nextsize fields of largebin
5632 chunks.
5633
5634 * malloc/malloc.c [MALLOC_DEBUG]: Revert 2007-05-13 changes.
5635 * malloc/hooks.c: Likewise.
5636 * malloc/arena.c: Likewise.
5637 * malloc/malloc.c (do_check_malloc_state): Don't assert
5638 n_mmaps is not greater than n_mmaps_max. This removes the need
5639 for the previous change.
5640
5641 * malloc/Makefile (CFLAGS-malloc.c): Revert accidental
5642 2007-05-07 commit.
5643
12e8bbff
UD
56442007-05-19 Ulrich Drepper <drepper@redhat.com>
5645
5646 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PRIVATE_FUTEX):
5647 Define for kernel >= 2.6.22.
69e5cbf5 5648
12e8bbff 56492007-05-18 Ulrich Drepper <drepper@redhat.com>
6d59823c 5650
df94b641
UD
5651 * elf/dl-close.c (_dl_close_worker): When removing object from
5652 global scope, wait for all lookups to finish afterwards.
5653 * elf/dl-open.c (add_to_global): When global scope array must
5654 grow, allocate a new one and free old array only after all
5655 lookups finish.
5656 * elf/dl-runtime.c (_dl_fixup): Protect using global scope.
5657 (_dl_lookup_symbol_x): Likewise.
5658 * elf/dl-support.c: Define _dl_wait_lookup_done.
5659 * sysdeps/generic/ldsodefs.h (struct rtld_global): Add
5660 _dl_wait_lookup_done.
5661
2acd01ac
UD
5662 * malloc/malloc.c (do_check_chunk): Correct check for mmaped block
5663 not overlapping with arena.
5664
129abdd3
UD
5665 * malloc/mcheck.c (reallochook): If size==0, free the block.
5666
eb4b098a
UD
5667 * rt/tst-shm.c: Use fstat64 instead of fstat.
5668
69e5cbf5
UD
5669 * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Fix case where
5670 __NR_sync_file_range is not defined.
5671
a2ccc760
UD
56722007-05-17 Ulrich Drepper <drepper@redhat.com>
5673
bec51a30
UD
5674 Dummy files to prevent stub versions from being used.
5675 * sysdeps/x86_64/fpu/k_cosl.c: New file.
5676 * sysdeps/x86_64/fpu/k_rem_pio2l.c: New file.
5677 * sysdeps/x86_64/fpu/k_sinl.c: New file.
5678 * sysdeps/x86_64/fpu/k_tanl.c: New file.
5679
a2ccc760
UD
5680 * version.h (VERSION): Set to 2.6.90.
5681
1a31b586
UD
56822007-05-14 Ulrich Drepper <drepper@redhat.com>
5683
a2ccc760
UD
5684 * version.h (VERSION): Define to 2.6.
5685 * include/features.h (__GLIBC_MINOR__): Define to 6.
2c1d6172 5686
1d47e92f
UD
5687 * malloc/malloc.c: Use all small bin slots on 64-bit archs.
5688
5689 * malloc/malloc.c (largebin_index): Really have 32 buckets with 64
5690 sizes.
366ad8fd 5691
1a31b586 56922007-05-13 Ulrich Drepper <drepper@redhat.com>
87e66335 5693
366ad8fd
UD
5694 * malloc/malloc.c [MALLOC_DEBUG]: Keep track of current maximum
5695 number of mmaps. n_mmaps_max is the target.
5696 * malloc/hooks.c: Likewise.
5697 * malloc/arena.c: Likewise.
5698
11ed6713
AJ
56992007-05-12 Andreas Jaeger <aj@suse.de>
5700
5701 * sysdeps/unix/sysv/linux/tst-getcpu.c: Include <unistd.h> for
5702 getpid.
5703
d65ef3dd
UD
57042007-05-11 Ulrich Drepper <drepper@redhat.com>
5705
2e81d449
UD
5706 * elf/dl-close.c (_dl_close_worker): Help gcc to optimize by
5707 adding new variables.
5708
d65ef3dd 5709 * elf/dl-open.c (add_to_global): Introduce variable ns to help gcc
2e81d449 5710 optimize. Completely extend global scope array before making the
d65ef3dd
UD
5711 new entries visible.
5712
c27d2078
UD
57132007-05-10 Ulrich Drepper <drepper@redhat.com>
5714
341c566f
UD
5715 * sysdeps/unix/sysv/linux/tst-getcpu.c: New file.
5716 * sysdeps/unix/sysv/linux/Makefile [subdir=posix] (tests): Add
5717 tst-getcpu.
5718
5719 * include/link.h: Move l_version and l_nversion members around to
5720 fill gaps.
5721
a53fa282
UD
5722 * scripts/check-c++-types.sh: Don't use -fnu89-inline option.
5723
3771196d
UD
5724 * sysdeps/unix/sysv/linux/sched_setaffinity.c
5725 (__sched_setaffinity_new): If syscall was successful and
5726 RESET_VGETCPU_CACHE is defined, use it before returning.
5727 * sysdeps/unix/sysv/linux/x86_64/sched_setaffinity.c: New file.
5728
f9bf102d
UD
5729 * io/sys/stat.h: Make sure struct timespec is defined for
5730 __USE_ATFILE.
5731
c27d2078
UD
5732 * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Define UTIME_NOW and
5733 UTIME_OMIT.
5734 * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
5735 * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
5736 * sysdeps/unix/sysv/linux/alpha/bits/stat.h: Likewise.
5737 * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
5738 * sysdeps/unix/sysv/linux/bits/stat.h: Likewise.
5739 * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
5740 * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_UTIMENSAT.
5741 * io/sys/stat.h: Declare utimensat, futimens.
5742 * io/utimensat.c: New file.
5743 * io/futimens.c: New file.
5744 * sysdeps/unix/sysv/linux/utimensat.c: New file.
5745 * sysdeps/unix/sysv/linux/futimens.c: New file.
5746 * io/Makefile (routines): Add utimensat, futimens.
5747 * io/Versions: Add utimensat, futimens to GLIBC_2.6.
5748 * sysdeps/unix/sysv/linux/lutimes.c: New file.
5749 * sysdeps/unix/sysv/linux/futimes.c: Use utimensat syscall if
5750 available.
5751
5752 * include/sys/cdefs.h: Redefine __nonnull so that test for
5753 incorrect parameters in the libc code itself are not omitted.
5754
cf6b0980
JJ
57552007-05-09 Jakub Jelinek <jakub@redhat.com>
5756
c1dfd7e6
JJ
5757 * sysdeps/ia64/fpu/fraiseexcpt.c (feraiseexcept): Don't raise overflow
5758 exception in addition to inexact when asked to raise only FE_INEXACT.
5759
cf6b0980
JJ
5760 [BZ #3427]
5761 * sysdeps/s390/fpu/feholdexcpt.c (feholdexcept): Don't clear exceptions
5762 in *envp.
5763
df7b6fea
UD
57642007-05-07 Ulrich Drepper <drepper@redhat.com>
5765
5766 [BZ #4403]
5767 * string/strfry.c (strfry): Make result more random.
5768
37f40235
RH
57692007-05-07 Richard Henderson <rth@redhat.com>
5770
5771 * sysdeps/alpha/fpu/bits/mathinline.h (__isnanl): Don't define
5772 if __NO_LONG_DOUBLE_MATH.
5773 * sysdeps/unix/sysv/linux/alpha/ioperm.c: If BWX insns not
df7b6fea 5774 available in the compiler, add .arch directive to the assembly.
37f40235
RH
5775
57762007-05-07 Jakub Jelinek <jakub@redhat.com>
5777
5778 * sysdeps/alpha/fpu/s_nearbyint.c (nearbyintl): Fix version on
5779 compat_symbol to GLIBC_2_1.
5780 * sysdeps/alpha/fpu/s_fmin.S (fminl): Likewise.
5781 * sysdeps/alpha/fpu/s_trunc.c (truncl): Likewise.
5782 * sysdeps/alpha/fpu/s_fmax.S (fmaxl): Likewise.
5783 * sysdeps/alpha/fpu/s_lrint.c (lrintl, llrintl): Likewise.
5784 * sysdeps/alpha/fpu/s_lround.c (lroundl, llroundl): Likewise.
5785 * sysdeps/alpha/fpu/s_round.c (roundl): Likewise.
5786 * sysdeps/alpha/fpu/s_isnan.c (isnanl): Provide compat_symbol in
5787 libc, not libm.
5788 (__isnanl): New compat_symbol.
5789
c7fd3362
JJ
57902007-05-07 Ulrich Drepper <drepper@redhat.com>
5791 Jakub Jelinek <jakub@redhat.com>
5792
5793 * malloc/arena.c (heap_info): Add mprotect_size field, adjust pad.
5794 (new_heap): Initialize mprotect_size.
5795 (grow_heap): When growing, only mprotect from mprotect_size till
5796 new_size if mprotect_size is smaller. When shrinking, use PROT_NONE
5797 MMAP for __libc_enable_secure only, otherwise use MADV_DONTNEED.
5798
4a59e9ad 57992007-04-30 Steven Munroe <sjmunroe@us.ibm.com>
37f40235 5800 Peter Bergner <bergner@us.ibm.com>
4a59e9ad
UD
5801
5802 * sysdeps/powerpc/bits/fenv.h: Declare __fe_mask_env extern.
5803 Define FE_NOMASK_ENV as FE_EANBLED_ENV. Define FE_MASK_ENV.
5804 * sysdeps/powerpc/fpu/Makefile: Add fe_mask to libm-support.
5805 * sysdeps/powerpc/fpu/fe_mask.c: New file.
5806 * sysdeps/powerpc/fpu/fe_nomask.c: Correct comment.
5807 * sysdeps/powerpc/fpu/fedisblxcpt.c (fedisableexcept):
5808 Call __fe_mask_env() if all FP exceptions disabled.
5809 * sysdeps/powerpc/fpu/feholdexcpt.c (feholdexcept): Copy high 32-bits
5810 from old FPSCR to new fenv to propagate DFP rounding modes.
5811 Call __fe_mask_env() if FP exceptions previously enabled.
5812 * sysdeps/powerpc/fpu/fesetenv.c (fesetenv): Change mask to merge
5813 exceptions from env. Use __fe_nomask_env() or __fe_mask_env() when
5814 transitioning from all exceptions disabled to any exception enabled
5815 or visa versa.
5816 * sysdeps/powerpc/fpu/feupdateenv.c (__feupdateenv): Change mask to
5817 merge exceptions from env. Call __fe_nomask_env or __fe_mask_env
5818 when transitioning from all exceptions disabled to any exception
5819 enabled or visa versa.
5820 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fe_nomask.c: Moved to...
5821 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c: ...here.
5822 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c: Moved to...
5823 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c: ...here.
5824 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c: New file.
5825 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c: New file.
5826
aa75f64c
UD
58272007-05-06 Ulrich Drepper <drepper@redhat.com>
5828
15eca720 5829 [BZ #4465]
aa75f64c
UD
5830 * posix/unistd.h: Remove __THROW from fdatasync.
5831
711deb05
UD
58322007-05-06 Mike Frysinger <vapier@gentoo.org>
5833
15eca720 5834 [BZ #4465]
711deb05
UD
5835 * sysdeps/unix/sysv/linux/syscalls.list (fdatasync): Add "C" to args.
5836
ffecd39b
UD
58372007-05-06 Ulrich Drepper <drepper@redhat.com>
5838
49a8eb75
UD
5839 * stdio-common/vfprintf.c (process_string_arg): Optimize
5840 ridiculous precision in wide char code printing multi-byte string.
5841 Reported by Jim Meyering <jim@meyering.net>.
5842
ffecd39b
UD
5843 [BZ #4131]
5844 * elf/dl-addr.c (_dl_addr): Compare address with actual segment
5845 boundaries to work around systems with overlapping binary loading.
5846 Based on a patch by Suzuki <suzuki@in.ibm.com>.
5847
b16dba4c
UD
58482007-05-04 Ulrich Drepper <drepper@redhat.com>
5849
30b323ab
UD
5850 * stdio-common/vfprintf.c (process_string_arg): Adjust call to
5851 __mbsnrtowcs after last change.
5852
b16dba4c
UD
5853 * locale/programs/linereader.c (get_symname): Fix adding final NUL.
5854 (get_ident): Likewise.
5855
37002cbc
JJ
58562007-05-03 Jakub Jelinek <jakub@redhat.com>
5857
5858 * soft-fp/op-common.h (FP_TRUNC): Replace raising of FP_EX_INEXACT
5859 with setting the sticky bit.
5860 * math/test-misc.c (main): Add more truncation tests.
5861
58622007-04-14 Uros Bizjak <ubizjak@gmail.com>
5863
5864 * soft-fp/floatunsidf.c (__floatunsidf): Use DFtype instead of
5865 double in the function declaration.
5866 * soft-fp/floatundidf.c (__floatundidf): Use DFtype instead of
5867 double in the function declaration.
5868 * soft-fp/floatunsisf.c (__floatunsisf): Use SFtype instead of
5869 float in the function declaration.
5870 * soft-fp/floatunsisf.c (__floatunsisf): Use SFtype instead of
5871 float in the function declaration.
5872
5873 * soft-fp/extended.h (FP_UNPACK_RAW_E): Do not increase X##_e for
5874 denormal operands. Do not generate FP_EX_DENORM exception.
5875 (FP_UNPACK_RAW_EP): Ditto.
5876 (FP_UNPACK_SEMIRAW_E): Use FP_UNPACK_RAW_E instead of
5877 undefined _FP_UNPACK_RAW_E.
5878 (FP_UNPACK_SEMIRAW_EP): Use FP_UNPACK_RAW_EP instead of
5879 undefined _FP_UNPACK_RAW_EP.
5880 (FP_PACK_SEMIRAW_E): Use FP_PACK_RAW_E instead of
5881 undefined _FP_PACK_RAW_E.
5882 (FP_PACK_SEMIRAW_EP): Use FP_PACK_RAW_EP instead of
5883 undefined _FP_PACK_RAW_EP.
5884
d9ac82d0
UD
5885 * soft-fp/op-2.h (_FP_FRAC_COPY_2_2): Define as alias to
5886 _FP_FRAC_COPY_2.
5887 * soft-fp/op-4.h (_FP_FRAC_COPY_2_2): Define as alias to
5888 _FP_FRAC_COPY_4.
37002cbc
JJ
5889
58902007-04-16 Uros Bizjak <ubizjak@gmail.com>
5891 Jakub Jelinek <jakub@redhat.com>
5892
5893 * soft-fp/op-common.h (FP_EXTEND): Do not abort when
5894 _FP_EXPBIAS_##dfs == _FP_EXPBIAS_##sfs. Handle denormals for
5895 this case.
5896 * soft-fp/op-common.h (FP_TRUNC): Ditto.
5897
002f0b0b
JJ
58982007-05-03 Jakub Jelinek <jakub@redhat.com>
5899
5900 * math/test-misc.c (main): Add tests for rounding long double
5901 values close to smallest double denormalized value to double.
5902
59032007-04-30 Joseph Myers <joseph@codesourcery.com>
5904
5905 * soft-fp/op-common.h (FP_TRUNC): Correct off-by-one error in
5906 condition for truncating to 0. Set sticky bit for such
5907 truncation.
5908
57433ede
UD
59092007-05-02 Jakub Jelinek <jakub@redhat.com>
5910
5911 * stdio-common/vfprintf.c (process_string_arg): Use a VLA rather than
5912 fixed length array for ignore.
5913
c01c2455
UD
59142007-04-30 Ulrich Drepper <drepper@redhat.com>
5915
5916 [BZ #4438]
5917 * stdio-common/vfprintf.c (process_string_arg): Don't overflow the
5918 stack for large precisions.
1cb04337
UD
5919 * stdio-common/test-vfprintf.c (main): Add test for large
5920 precision.
c01c2455 5921
37f02b1d
UD
59222007-04-30 Jakub Jelinek <jakub@redhat.com>
5923
b866373d
UD
5924 * stdio-common/printf_fp.c (___printf_fp): Don't print negative sign
5925 for exponent 0.
5926 * stdio-common/tfformat.c (sprint_doubles): Add a new test.
5927
37f02b1d
UD
5928 [BZ #4439]
5929 * resolv/inet_ntop.c (inet_ntop4): Take terminating '\0' into
5930 account in the size check.
5931 * resolv/tst-inet_ntop.c: New test.
5932 * resolv/Makefile (tests): Add tst-inet_ntop.
5933
7ecfbd38
UD
59342007-04-30 Ulrich Drepper <drepper@redhat.com>
5935 Jakub Jelinek <jakub@redhat.com>
5936
5937 [BZ #4349]
5938 * malloc/malloc.c: Keep separate list for first blocks on the bin
5939 lists with a given size. This helps skipping over list elements
5940 we know won't fit in two places.
5941 Inspired by a patch by Tomash Brechko <tomash.brechko@gmail.com>.
5942
e53f0f51
UD
59432007-04-28 Ulrich Drepper <drepper@redhat.com>
5944
5945 [BZ #4102]
5946 * sysdeps/posix/getaddrinfo.c (default_labels): Assign separate
5947 label to Teredo tunnel addresses 2001://32.
5948
109f51f2
UD
59492007-04-27 Ulrich Drepper <drepper@redhat.com>
5950
762422d1
UD
5951 * locale/programs/ld-collate.c (collate_read): Allow order_start
5952 after copy.
5953
61d5a67f
UD
5954 * locale/programs/ld-collate.c (collate_read): Fix printing of
5955 error message.
5956
5957 [BZ #3213]
5958 * locale/C-translit.h.in: Add entry for U2044.
5959
109f51f2
UD
5960 [BZ #4342]
5961 * stdio-common/vfscanf.c (_IO_vfscanf_internal): Allow
5962 hexa-decimal floats without exponent.
5963 * stdio-common/tstscanf.c (main): Adjust Test 8 test for success.
5964
ec08f13d
UD
59652007-04-25 Ulrich Drepper <drepper@redhat.com>
5966
5967 * sysdeps/unix/sysv/linux/bits/sched.h: Declare sched_getcpu.
5968 * sysdeps/unix/sysv/linux/sched_getcpu.c: New file.
5969 * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: New file.
5970 * sysdeps/unix/sysv/linux/Versions: Export sched_getcpu for
5971 GLIBC_2.6.
bce20b9a
UD
5972 * sysdeps/unix/sysv/linux/Makefile [subdir=posix] (sysdep_routines):
5973 Add sched_getcpu.
ec08f13d 5974
41967e1c
JJ
59752007-04-25 Jakub Jelinek <jakub@redhat.com>
5976
5977 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Return -1 instead
5978 of 0 after the out_fail label.
5979
ba508da3
UD
59802007-04-25 Ulrich Drepper <drepper@redhat.com>
5981
5982 [BZ #4406]
109f51f2 5983 * iconv/gconv_charset.h (strip): Allow ':'.
ba508da3
UD
5984 * iconv/iconv_open.c (iconv_open): Adjust comment.
5985
9c8d03d9
JJ
59862007-04-25 Jakub Jelinek <jakub@redhat.com>
5987
5988 * libio/bits/stdio.h (fgetc_unlocked): Add extern inline optimized
5989 version.
5990
2f1687b9
UD
59912007-04-23 Jakub Jelinek <jakub@redhat.com>
5992
5993 [BZ #4381]
5994 * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Ensure sufficient
5995 alignment of buffer and tmp_buffer.
5996 * nis/nss_nis/nis-hosts.c (internal_nis_gethostent_r,
5997 internal_gethostbyname2_r, _nss_nis_gethostbyaddr_r): Ensure sufficient
5998 alignment of buffer.
5999 * resolv/nss_dns/dns-hosts.c (getanswer_r): Likewise. Handle buflen
6000 bigger than INT_MAX.
6001 * resolv/nss_dns/dns-network.c (getanswer_r): Likewise. Add errnop and
6002 h_errnop arguments. Fail if buflen is too small.
6003 (_nss_dns_getnetbyname_r, _nss_dns_getnetbyaddr_r): Adjust callers.
6004
b64a9db8
JJ
60052007-04-23 Jakub Jelinek <jakub@redhat.com>
6006
6007 [BZ #4405]
6008 * iconvdata/gconv-modules (E13B): Add a missing slash to the alias
6009 name. Patch by Aurelien Jarno <aurelien@aurel32.net>.
6010
4d3144c9
RM
60112007-04-22 Roland McGrath <roland@redhat.com>
6012
6013 * elf/elf.h (NT_PRXFPREG): New macro.
6014
767b40bf
AJ
60152007-04-19 Andreas Jaeger <aj@suse.de>
6016
6017 [BZ #3905]
6018 * bits/in.h (IPV6_ROUTER_ALERT, IPV6_MTU_DISCOVER, IPV6_MTU,
6019 IPV6_RECVERR, IPV6_V6ONLY, IPV6_JOIN_ANYCAST, IPV6_LEAVE_ANYCAST):
6020 Added.
6021
2592d1ec
UD
60222007-04-19 Ulrich Drepper <drepper@redhat.com>
6023
6024 * include/sys/mman.h: Mark madvise hidden.
d07d044e 6025 * misc/madvise.c: Add libc_hidden_def.
2592d1ec 6026
7ab174ed
UD
60272007-04-06 Jakub Jelinek <jakub@redhat.com>
6028
6029 * nis/nis_domain_of.c (__nis_domain_of): New function.
6030 * include/rpcsvc/nislib.h (__nis_domain_of): New prototype.
6031 * nis/nis_lookup.c (nis_lookup): Use __nis_domain_of.
6032 * nis/nis_call.c (rec_dirsearch): Likewise.
6033 (first_shoot): Likewise. Remove search_parent_first argument.
6034 (struct nis_server_cache): Rename search_parent_first field
6035 to search_parent.
6036 (nis_server_cache_search, nis_server_cache_add): Rename
6037 search_parent_first argument to search_parent.
6038 (__nisfind_server): Likewise. If search_parent, call
6039 __nis_domain_of.
6040
b17c265f
UD
60412007-04-18 Ulrich Drepper <drepper@redhat.com>
6042
6043 * sysdeps/posix/getaddrinfo.c: Remove commented-out code.
6044
b7674b11
UD
60452007-04-17 Ulrich Drepper <drepper@redhat.com>
6046
6047 [BZ #4368]
6048 * stdlib/stdlib.h: Remove obsolete part of comment for realpath.
6049
faf3ad69
UD
60502007-04-16 Ulrich Drepper <drepper@redhat.com>
6051
6052 [BZ #4364]
6053 * posix/unistd.h (_XOPEN_VERSION): Define appropriately for SUSv3.
6054
c14f245c
UD
60552007-04-15 Jakub Jelinek <jakub@redhat.com>
6056
6057 * locale/programs/locarchive.c (INITIAL_NUM_NAMES,
6058 INITIAL_SIZE_STRINGS, INITIAL_NUM_LOCREC): Update to accomodate
6059 current number of locales in SUPPORTED.
6060 (create_archive): Initialize serial.
6061 (enlarge_archive): Preserve aliases rather than duplicating
6062 their locrecs.
6063
d40e67f5
UD
60642007-04-13 Jakub Jelinek <jakub@redhat.com>
6065
993a5d66
UD
6066 * libio/genops.c (_IO_default_finish): Call _IO_lock_fini
6067 after _IO_un_link, not before it.
6068
d40e67f5
UD
6069 * stdio-common/printf_fp.c (___printf_fp): Fix exponent -4
6070 special case handling when wcp == wstartp + 1. Fix a comment typo.
6071 * stdio-common/tfformat.c (sprint_doubles): Add a new testcase.
6072
0fca3153
UD
60732007-03-30 Jakub Jelinek <jakub@redhat.com>
6074
6075 * libio/libio.h (__underflow, __uflow, __overflow, __wunderflow,
6076 __wuflow, __woverflow, _IO_getc, _IO_putc, _IO_peekc_locked, _IO_padn,
6077 _IO_sgetn, _IO_seekoff, _IO_seekpos, _IO_getwc, _IO_putwc, _IO_wpadn):
6078 Remove __THROW.
6079 * libio/fileops.c (new_do_write, _IO_file_xsgetn_mmap,
6080 _IO_file_xsgetn_maybe_mmap): Likewise.
6081 * libio/oldfileops.c (old_do_write): Likewise.
6082 * libio/libioP.h (_IO_switch_to_get_mode, _IO_switch_to_wget_mode,
6083 _IO_init_marker, _IO_init_wmarker, _IO_default_uflow,
6084 _IO_wdefault_uflow, _IO_default_setbuf, _IO_default_seekpos,
6085 _IO_do_write, _IO_new_do_write, _IO_old_do_write, _IO_wdo_write,
6086 _IO_flush_all_lockp, _IO_flush_all, _IO_cleanup,
6087 _IO_flush_all_linebuffered, _IO_new_fgetpos, _IO_old_fgetpos,
6088 _IO_new_fsetpos, _IO_old_fsetpos, _IO_new_fgetpos64,
6089 _IO_old_fgetpos64, _IO_new_fsetpos64, _IO_old_fsetpos64,
6090 _IO_file_setbuf, _IO_file_seekoff, _IO_file_xsputn, _IO_file_xsgetn,
6091 _IO_file_underflow, _IO_file_underflow_mmap,
6092 _IO_file_underflow_maybe_mmap, _IO_file_overflow, _IO_file_attach,
6093 _IO_file_open, _IO_file_fopen, _IO_file_write, _IO_file_read,
6094 _IO_file_sync, _IO_file_close_it, _IO_file_finish,
6095 _IO_new_file_attach, _IO_new_file_close_it, _IO_new_file_finish,
6096 _IO_new_file_fopen, _IO_new_file_setbuf, _IO_file_setbuf_mmap,
6097 _IO_new_file_sync, _IO_new_file_underflow, _IO_new_file_overflow,
6098 _IO_new_file_seekoff, _IO_new_file_write, _IO_new_file_xsputn,
6099 _IO_old_file_setbuf, _IO_old_file_seekoff, _IO_old_file_xsputn,
6100 _IO_old_file_underflow, _IO_old_file_overflow, _IO_old_file_attach,
6101 _IO_old_file_fopen, _IO_old_file_write, _IO_old_file_sync,
6102 _IO_old_file_close_it, _IO_old_file_finish, _IO_wfile_xsputn,
6103 _IO_wfile_setbuf, _IO_wfile_sync, _IO_wfile_underflow,
6104 _IO_wfile_overflow, _IO_wfile_seekoff, _IO_old_proc_open,
6105 _IO_old_proc_close, _IO_getdelim, _IO_flush_all_internal,
6106 _IO_adjust_column_internal, _IO_default_uflow_internal,
6107 _IO_default_xsgetn_internal, _IO_wdefault_xsputn_internal,
6108 _IO_wdefault_xsgetn_internal, _IO_wdefault_uflow_internal,
6109 _IO_file_setbuf_internal, _IO_file_seekoff_internal,
6110 _IO_file_xsputn_internal, _IO_file_xsgetn_internal,
6111 _IO_file_close_it_internal, _IO_file_underflow_internal,
6112 _IO_file_overflow_internal, _IO_file_attach_internal,
6113 _IO_file_fopen_internal, _IO_file_sync_internal,
6114 _IO_file_finish_internal, _IO_wfile_xsputn_internal,
6115 _IO_wfile_seekoff_internal, _IO_wfile_sync_internal,
6116 _IO_switch_to_wget_mode_internal, _IO_padn_internal,
6117 _IO_switch_to_get_mode_internal, _IO_seekoff_unlocked,
6118 _IO_seekpos_unlocked): Likewise.
6119 (_IO_strtod, _IO_dtoa, _IO_outfloat, _IO_read, _IO_write,
6120 _IO_lseek, _IO_close, _IO_fstat): Remove unused prototypes.
6121
07358add
JJ
61222007-04-16 Jakub Jelinek <jakub@redhat.com>
6123
6124 * locale/programs/locarchive.c (show_archive_content): Fix sizeof
6125 argument in xmalloc size computation.
6126
7a82b74f
UD
61272007-04-01 Jakub Jelinek <jakub@redhat.com>
6128
6129 * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl): Use
6130 math_opt_barrier and math_force_eval macros.
6131
3e336a87
UD
61322007-03-27 Jakub Jelinek <jakub@redhat.com>
6133
6134 [BZ #3306]
6135 * math/math_private.h (math_opt_barrier, math_force_eval): Define.
6136 * sysdeps/i386/fpu/math_private.h: New file.
6137 * sysdeps/x86_64/fpu/math_private.h: New file.
6138 * math/s_nexttowardf.c (__nexttowardf): Use math_opt_barrier and
6139 math_force_eval macros. Use "+m" constraint on asm rather than
6140 "=m" and "m".
6141 * math/s_nextafter.c (__nextafter): Likewise.
6142 * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c (__nexttoward):
6143 Likewise.
6144 * sysdeps/ieee754/flt-32/s_nextafterf.c (__nextafterf): Likewise.
6145 * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward): Likewise.
6146 * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
6147 * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Use
6148 math_opt_barrier and math_force_eval macros.
6149 * sysdeps/ieee754/ldbl-128/s_nextafterl.c (__nextafterl): Likewise.
6150 * sysdeps/ieee754/ldbl-96/s_nextafterl.c (__nextafterl): Likewise.
6151 * sysdeps/i386/fpu/s_nexttoward.c: Include float.h.
6152 (__nexttoward): Use math_opt_barrier and
6153 math_force_eval macros. Use "+m" constraint on asm rather than
6154 "=m" and "m". Only use asm to force double result if
6155 FLT_EVAL_METHOD is 2.
6156 * sysdeps/i386/fpu/s_nexttowardf.c: Include float.h.
6157 (__nexttowardf): Use math_opt_barrier and
6158 math_force_eval macros. Use "+m" constraint on asm rather than
6159 "=m" and "m". Only use asm to force double result if
6160 FLT_EVAL_METHOD is not 0.
6161 * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Include float.h.
6162 (__nexttowardf): Use math_opt_barrier and
6163 math_force_eval macros. If FLT_EVAL_METHOD is not 0, force
6164 x to float using asm.
6165 * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c: Include float.h.
6166 (__nldbl_nexttowardf): Use math_opt_barrier and
6167 math_force_eval macros. If FLT_EVAL_METHOD is not 0, force
6168 x to float using asm.
6169 * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Include float.h.
6170 (__nexttowardf): Use math_opt_barrier and math_force_eval
6171 macros. If FLT_EVAL_METHOD is not 0, force x to float using asm.
6172 * math/bug-nextafter.c (zero, inf): New variables.
6173 (main): Add new tests.
6174 * math/bug-nexttoward.c (zero, inf): New variables.
6175 (main): Add new tests.
6176
a8c79c40
UD
61772007-03-22 Jakub Jelinek <jakub@redhat.com>
6178
6179 [BZ #3427]
6180 * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Clear all
6181 exceptions both in SW and MXCSR.
6182 * sysdeps/x86_64/fpu/feupdateenv.c: New file.
6183 * sysdeps/x86_64/fpu/feenablxcpt.c (feenableexcept): Remove dead code.
6184 * sysdeps/x86_64/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
6185 * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions
6186 in MXCSR if SSE is available.
6187 * sysdeps/i386/fpu/feupdateenv.c: Include unistd.h, dl-procinfo.h
6188 and ldsodefs.h.
6189 (__feupdateenv): Query exceptions also from MXCSR if SSE is available.
6190 Fix comment typo.
6191 * sysdeps/ia64/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions.
6192 Return 0 rather than 1.
6193 * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Fix comment typo.
6194 Remove incorrect part of a comment. Fix argument to feraiseexcept.
6195 * math/test-fenv.c (feholdexcept_tests): New function.
6196 (main): Call it.
6197
61982007-01-05 Richard B. Kreckel <kreckel@ginac.de>
6199
6200 [BZ #3427]
6201 * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions
6202 in SW.
6203
30a3aa75
JJ
62042007-04-13 Jakub Jelinek <jakub@redhat.com>
6205
6206 [BZ #4344]
6207 * elf/ldconfig.c (search_dir): Fix 2 off-by-2 errors.
6208 Reported by David Anderson <davea42@earthlink.net>.
6209
75587bfe
UD
62102007-04-07 Ulrich Drepper <drepper@redhat.com>
6211
6212 * posix/sys/wait.h: Remove unnecessary forward declaration.
6213
88fa1769
JJ
62142007-04-05 Jakub Jelinek <jakub@redhat.com>
6215
6216 * nis/nis_call.c (__nisfind_server): Replace (*dir)->do_servers
6217 with obj->do_servers after first_shoot.
6218
eab1bdfb
UD
62192007-04-03 Ulrich Drepper <drepper@redhat.com>
6220
6221 * posix/Makefile (routines): Add sched_cpucount.
6222 (tests): Add tst-cpucount.
6223 * posix/sched_cpucount.c: New file.
6224 * posix/tst-cpucount.c: New file.
6225 * posix/Versions: Export __sched_cpucount with version GLIBC_2.6.
b4afdd06
UD
6226 * bits/sched.h: Define __CPU_COUNT. Declare __sched_cpucount.
6227 * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
6228 * posix/sched.h: Define CPU_COUNT.
eab1bdfb 6229
9700b039
UD
62302007-03-27 Jakub Jelinek <jakub@redhat.com>
6231
6232 * posix/fnmatch.c (STRUCT): Define.
6233 (fnmatch): Pass NULL as last argument to internal_fn{,w}match.
6234 * posix/fnmatch_loop.c (struct STRUCT): New type.
6235 (FCT): Add ends argument. If ends != NULL and normal * is
6236 seen in the pattern, store current pattern and string pointers
6237 and return. Adjust recursive calls.
6238 (EXT): Adjust FCT callers.
6239 (STRUCT): Undef at the end of the file.
6240 * posix/Makefile (tests): Add tst-fnmatch2.
6241 * posix/tst-fnmatch2.c: New test.
6242
d64e9790
JJ
62432007-04-01 Jakub Jelinek <jakub@redhat.com>
6244
933dfe7b
JJ
6245 * sysdeps/ia64/fpu/fesetround.c (fesetround): Return 0 on success
6246 and 1 on failure.
6247
d64e9790
JJ
6248 * sysdeps/unix/sysv/linux/sync_file_range.c (sync_file_range):
6249 Change last argument to unsigned int.
6250
e1f0c5bc
UD
62512007-03-23 Jakub Jelinek <jakub@redhat.com>
6252
6253 * scripts/check-local-headers.sh: Filter out sys/capability.h.
6254
62552007-03-22 Jakub Jelinek <jakub@redhat.com>
6256
6257 * config.h.in (HAVE_LIBCAP): Add.
6258 * nscd/selinux.h: Include sys/capability.h rather than non-existent
6259 sys/capabilities.h.
6260 * nscd/selinux.c (preserve_capabilities): Use cap_free instead of
6261 free_caps. Cast away const from 4th cap_set_flag argument.
6262
4e87573f
UD
62632007-03-26 Ulrich Drepper <drepper@redhat.com>
6264
6265 * sysdeps/unix/sysv/linux/Versions: Move sync_file_range to
6266 GLIBC_2.6.
6267 * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
6268 Add sync_file_range.
6269 Reported by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
6270
fa6e3bc3
UD
62712007-03-19 Steven Munroe <sjmunroe@us.ibm.com>
6272
6273 * sysdeps/powerpc/bits/atomic.h
6274 [!MUTEX_HINT_ACQ]: Define MUTEX_HINT_ACQ.
6275 [!MUTEX_HINT_REL]: Define MUTEX_HINT_REL.
6276 (__arch_compare_and_exchange_val_32_acq): Add MUTEX_HINT_ACQ to lwarx.
6277 (__arch_compare_and_exchange_val_32_rel): Add MUTEX_HINT_REL to lwarx.
6278 (__arch_atomic_exchange_val_32_acq): Add MUTEX_HINT_ACQ to lwarx.
6279 (__arch_atomic_exchange_rel_32_rel): Add MUTEX_HINT_REL to lwarx.
6280 * sysdeps/powerpc/powerpc32/bits/atomic.h [_ARCH_PWR6 || _ARCH_PWR6X]:
6281 Define MUTEX_HINT_ACQ as ",1" and MUTEX_HINT_REL as ",0".
6282 (__arch_compare_and_exchange_bool_32_acq): Add MUTEX_HINT_ACQ to lwarx.
6283 (__arch_compare_and_exchange_bool_32_rel): Add MUTEX_HINT_REL to lwarx.
6284 * sysdeps/powerpc/powerpc64/bits/atomic.h [_ARCH_PWR6 || _ARCH_PWR6D]:
6285 Define MUTEX_HINT_ACQ as ",1" and MUTEX_HINT_REL as ",0".
6286 (__arch_compare_and_exchange_bool_32_acq): Add MUTEX_HINT_ACQ to lwarx.
6287 (__arch_compare_and_exchange_bool_32_rel): Add MUTEX_HINT_REL to lwarx.
6288 (__arch_compare_and_exchange_bool_64_acq): Add MUTEX_HINT_ACQ to lwarx.
6289 (__arch_compare_and_exchange_bool_64_rel): Add MUTEX_HINT_REL to lwarx.
6290 (__arch_compare_and_exchange_val_64_acq): Add MUTEX_HINT_ACQ to lwarx.
6291 (__arch_compare_and_exchange_val_64_rel): Add MUTEX_HINT_REL to lwarx.
6292 (__arch_atomic_exchange_val_64_acq): Add MUTEX_HINT_ACQ to lwarx.
6293 (__arch_atomic_exchange_rel_64_rel): Add MUTEX_HINT_REL to lwarx.
6294
62952007-03-20 Jakub Jelinek <jakub@redhat.com>
c7693af7
UD
6296
6297 * sysdeps/unix/sysv/linux/powerpc/libc-start.c
6298 (__cache_line_size): Define the variable here. Add
6299 attribute_hidden, remove weak_extern.
6300 (__libc_start_main): Set __cache_line_size
6301 unconditionally.
6302 * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
6303 (__cache_line_size): Define the variable here. Add
6304 attribute_hidden, remove weak_extern.
6305 (DL_PLATFORM_AUXV): Set __cache_line_size
6306 unconditionally.
6307 * sysdeps/powerpc/powerpc32/dl-machine.c (__cache_line_size): Remove
6308 weak_extern, add attribute_hidden.
6309 (__elf_machine_runtime_setup): Assume __cache_line_size is always
6310 defined in ld.so.
6311 * sysdeps/powerpc/powerpc32/memset.S (__cache_line_size): Remove
6312 definition.
6313 * sysdeps/powerpc/powerpc64/memset.S (__cache_line_size): Likewise.
6314
0479e581
JJ
63152007-03-26 Jakub Jelinek <jakub@redhat.com>
6316
6317 [BZ #4276]
6318 * timezone/africa: Update from tzdata2007d.
6319 * timezone/asia: Likewise.
6320 * timezone/australasia: Likewise.
6321 * timezone/backward: Likewise.
6322 * timezone/europe: Likewise.
6323 * timezone/iso3166.tab: Likewise.
6324 * timezone/leapseconds: Likewise.
6325 * timezone/northamerica: Likewise.
6326 * timezone/southamerica: Likewise.
6327 * timezone/zone.tab: Likewise.
6328
6329 * timezone/private.h: Update from tzcode2007d.
6330 * timezone/zdump.c: Likewise.
6331 * timezone/zic.c: Likewise.
6332
697d37b1
JJ
63332007-03-21 Jakub Jelinek <jakub@redhat.com>
6334
6335 * nis/nis_call.c: Include bits/libc-lock.h, sys/stat.h, unistd.h.
6336 (nis_server_cache, nis_server_cache_lock, nis_cold_start_mtime): New
6337 variables.
6338 (nis_server_cache_search, nis_server_cache_add): New functions.
6339 (__nisfind_server): Use them. Add dbp and flags argument, if
6340 call __nisbind_create.
6341 (__nisbind_create): Add server_used and current_ep arguments,
6342 only call __nis_findfastest if server_used is ~0.
6343 (__do_niscall2, __prepare_niscall): Adjust callers.
6344 (ckey_cache, ckey_cache_size, ckey_cache_allocated, ckey_cache_pid,
6345 ckey_cache_euid, ckey_cache_lock): New variables.
6346 (get_ckey): New function.
6347 (__nisbind_connect): If not dbp->use_udp, pass IPPROTO_TCP to
6348 __pmap_getnisport. Save __pmap_getnisport result in
6349 dbp->addr.sin_port if non-zero. Use get_ckey to create conversation
6350 key.
6351 * nis/nis_lookup.c (nis_lookup): Likewise.
6352 * nis/nis_table.c (nis_list): Likewise.
6353 * nis/rpcsvc/nislib.h (__nisbind_create, __nisfind_server): Adjust
6354 prototypes.
6355
6356 * nis/nss_nisplus/nisplus-pwd.c (_nss_nisplus_getpwnam_r,
6357 _nss_nisplus_getpwuid_r): Pass USE_DGRAM flag to nis_list.
6358 * nis/nss_nisplus/nisplus-service.c (_nss_nisplus_getservbyname_r,
6359 _nss_nisplus_getservbyport_r): Likewise.
6360 * nis/nss_nisplus/nisplus-network.c (_nss_nisplus_getnetbyname_r,
6361 _nss_nisplus_getnetbyaddr_r): Likewise.
6362 * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_getspnam_r): Likewise.
6363 * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_gethostton_r,
6364 _nss_nisplus_getntohost_r): Likewise.
6365 * nis/nss_nisplus/nisplus-rpc.c (_nss_nisplus_getrpcbyname_r,
6366 _nss_nisplus_getrpcbynumber_r): Likewise.
6367
06029c20
JJ
63682007-03-20 Jakub Jelinek <jakub@redhat.com>
6369
371f84a4
JJ
6370 * configure.in (libc_cv_gnu89_inline): Only do compile test.
6371 * configure: Rebuilt.
6372
06029c20
JJ
6373 * soft-fp/double.h (_FP_UNION_D): Use _FP_W_TYPE for frac
6374 bit-fields.
6375 * soft-fp/extended.h (_FP_UNION_E): Likewise.
6376
63772006-06-07 Joseph Myers <joseph@codesourcery.com>
6378
6379 [BZ #2831]
6380 * soft-fp/quad.h (_FP_UNION_Q): Use _FP_W_TYPE for frac
6381 bit-fields.
6382
addc8335
UD
63832007-03-18 Jakub Jelinek <jakub@redhat.com>
6384
6385 * nscd/gai.c: Include alloca.h.
6386 (__libc_use_alloca): Define.
6387
b037a293
UD
63882007-03-16 Jakub Jelinek <jakub@redhat.com>
6389
965cba04
UD
6390 * elf/dl-open.c (dl_open_worker): Declare l in 2 different
6391 smaller scopes.
6392 * elf/dl-dst.h (DL_DST_REQ_STATIC): Add l as macro argument.
6393 (DL_DST_REQUIRED): Adjust user.
6394
6395 * include/dlfcn.h (struct link_map): New forward decl.
6396
6397 * inet/getnameinfo.c: Include stddef.h.
6398 (getnameinfo): Use offsetof.
6399
6400 * time/tst-mktime2.c (do_test): Don't rely on signed wrap.
6401
6402 * stdio-common/vfprintf.c (_itoa): Undef before redefining.
6403
6404 * string/strerror_l.c: Include stdlib.h.
6405
b037a293
UD
6406 * configure.in (libc_cv_gnu89_inline): Test for -fgnu89-inline.
6407 * config.make.in (gnu89-inline-CFLAGS): New variable.
6408 * Makeconfig (CFLAGS): Use $(gnu89-inline-CFLAGS) together with
6409 -std=gnu99.
6410 * misc/sys/cdefs.h (__extern_inline, __extern_always_inline): Define.
6411 * argp/argp.h: Use it.
6412 * bits/mathinline.h: Likewise.
6413 * bits/sigset.h: Likewise.
6414 * bits/string.h: Likewise.
6415 * ctype/ctype.h: Likewise.
6416 * hurd/hurd.h: Likewise.
6417 * hurd/hurd/fd.h: Likewise.
6418 * hurd/hurd/port.h: Likewise.
6419 * hurd/hurd/signal.h: Likewise.
6420 * hurd/hurd/threadvar.h: Likewise.
6421 * hurd/hurd/userlink.h: Likewise.
6422 * io/sys/stat.h: Likewise.
6423 * libio/bits/stdio.h: Likewise.
6424 * libio/bits/stdio2.h: Likewise.
6425 * mach/lock-intern.h: Likewise.
6426 * mach/mach/mig_support.h: Likewise.
6427 * math/bits/cmathcalls.h: Likewise.
6428 * posix/bits/unistd.h: Likewise.
6429 * socket/bits/socket2.h: Likewise.
6430 * stdlib/bits/stdlib.h: Likewise.
6431 * stdlib/stdlib.h: Likewise.
6432 * string/argz.h: Likewise.
6433 * string/bits/string2.h: Likewise.
6434 * string/bits/string3.h: Likewise.
6435 * sysdeps/alpha/fpu/bits/mathinline.h: Likewise.
6436 * sysdeps/generic/inttypes.h: Likewise.
6437 * sysdeps/generic/machine-lock.h: Likewise.
6438 * sysdeps/generic/machine-sp.h: Likewise.
6439 * sysdeps/i386/fpu/bits/mathinline.h: Likewise.
6440 * sysdeps/i386/i486/bits/string.h: Likewise.
6441 * sysdeps/ia64/fpu/bits/mathinline.h: Likewise.
6442 * sysdeps/mach/alpha/machine-lock.h: Likewise.
6443 * sysdeps/mach/alpha/machine-sp.h: Likewise.
6444 * sysdeps/mach/i386/machine-lock.h: Likewise.
6445 * sysdeps/mach/powerpc/machine-lock.h: Likewise.
6446 * sysdeps/mach/powerpc/machine-sp.h: Likewise.
6447 * sysdeps/powerpc/fpu/bits/mathinline.h: Likewise.
6448 * sysdeps/s390/bits/string.h: Likewise.
6449 * sysdeps/s390/fpu/bits/mathinline.h: Likewise.
6450 * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
6451 * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Likewise.
6452 * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
6453 * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
6454 * sysdeps/unix/sysv/linux/sys/sysmacros.h: Likewise.
6455 * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
6456 * wcsmbs/bits/wchar2.h: Likewise.
6457 * wcsmbs/wchar.h: Likewise.
6458 * stdlib/gmp.h: Likewise. Include <features.h> to get
6459 __extern_inline definition.
6460
6b2665f5
UD
64612007-03-15 Jakub Jelinek <jakub@redhat.com>
6462
b037a293
UD
6463 * locale/programs/ld-ctype.c (find_translit): Return NULL if ctype is
6464 NULL.
6465
6b2665f5
UD
6466 [BZ #3919]
6467 * math/libm-test.inc (log_test): Test -Inf and NaN.
6468 (log10_test, log1p_test, log2_test): Test -Inf.
6469 * sysdeps/i386/fpu/e_log.S (__ieee754_log): Don't raise
6470 FE_INVALID when argument is qNaN.
6471 * sysdeps/i386/fpu/e_logl.S (__ieee754_logl): Likewise.
6472 * sysdeps/i386/fpu/e_logf.S (__ieee754_logf): Likewise.
6473 * sysdeps/x86_64/fpu/e_logl.S (__ieee754_logl): Likewise.
6474 * sysdeps/x86_64/fpu/e_log10l.S (__ieee754_log10l): Replace
6475 andb $1, %ah with testb $1, %ah, don't test for parity, instead
6476 testb $4, %ah and jump if non-zero.
6477 * sysdeps/x86_64/fpu/e_log2l.S (__ieee754_log2l): Likewise.
6478 * sysdeps/x86_64/fpu/s_log1pl.S (__log1pl): Likewise.
6479
44969f17
UD
6480 [BZ #4101]
6481 * argp/argp-help.c (hol_cluster_cmp): Fix comparisons used to find
6482 ancestors with the same depths.
6483 Patch by Niels Moeller <nisse@lysator.liu.se>.
6484 (filter_doc): Don't crash if argp is NULL.
6485 * argp/Makefile (tests): Add tst-argp2.
6486 * argp/tst-argp2.c: New test.
6487
05eb8975
UD
6488 [BZ #4130]
6489 * login/utmp_file.c (setutent_file): Use O_LARGEFILE for
6490 open_not_cancel_2.
6491 (updwtmp_file): Likewise.
6492
6cb988fa
UD
6493 [BZ #4181]
6494 * inet/inet6_opt.c (add_padding): Only insert padding if npad > 0.
6495 (inet6_opt_append): Don't check extlen is big enough if extbuf
6496 is NULL.
6497 (inet6_opt_finish): Likewise.
6498 * inet/Makefile (tests): Add test-inet6_opt.
6499 * inet/test-inet6_opt.c: New test.
6500
6501 * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Never
6502 reallocate the buffer, instead fail for MSG_TRUNC or for EBUSY
6503 NLMSG_ERR. Instead use a page sized buffer.
6504 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Use page sized
6505 buffer.
6506
aea1d19e
RH
65072007-03-14 Richard Henderson <rth@redhat.com>
6508
b6df547c
RH
6509 * sysdeps/alpha/fpu/s_llround.c: New file.
6510 * sysdeps/alpha/fpu/s_llroundf.c: New file.
6511 * sysdeps/alpha/fpu/s_lround.c: New file.
6512 * sysdeps/alpha/fpu/s_lroundf.c: New file.
6513 * sysdeps/alpha/fpu/s_round.c: New file.
6514 * sysdeps/alpha/fpu/s_roundf.c: New file.
6515 * sysdeps/alpha/fpu/s_trunc.c: New file.
6516 * sysdeps/alpha/fpu/s_truncf.c: New file.
6517
aea1d19e
RH
6518 * sysdeps/alpha/fpu/s_ceil.c: Rewrite without branches.
6519 * sysdeps/alpha/fpu/s_ceilf.c: Likewise.
6520 * sysdeps/alpha/fpu/s_floor.c: Likewise.
6521 * sysdeps/alpha/fpu/s_floorf.c: Likewise.
6522 * sysdeps/alpha/fpu/s_rint.c: Likewise.
6523 * sysdeps/alpha/fpu/s_rintf.c: Likewise.
6524
6525 * sysdeps/alpha/fpu/s_fmax.S: New file.
6526 * sysdeps/alpha/fpu/s_fmaxf.S: New file.
6527 * sysdeps/alpha/fpu/s_fmin.S: New file.
6528 * sysdeps/alpha/fpu/s_fminf.S: New file.
6529 * sysdeps/alpha/fpu/s_isnan.c: New file.
6530 * sysdeps/alpha/fpu/s_isnanf.c: New file.
6531 * sysdeps/alpha/fpu/s_llrint.c: New file.
6532 * sysdeps/alpha/fpu/s_llrintf.c: New file.
6533 * sysdeps/alpha/fpu/s_lrint.c: New file.
6534 * sysdeps/alpha/fpu/s_lrintf.c: New file.
6535 * sysdeps/alpha/fpu/s_nearbyint.c: New file.
6536 * sysdeps/alpha/fpu/s_nearbyintf.c: New file.
6537
6538 * sysdeps/alpha/fpu/bits/mathinline.h (__floorf, __floor): Remove.
6539 (__fdimf, fdimf, __fdim, fdim): Remove.
6540 (__signbitf, __signbit, __signbitl): Use gcc builtin if available.
6541 (__isnanf, __isnan, __isnanl): New.
6542
9e43b50d
RH
65432007-03-13 Richard Henderson <rth@redhat.com>
6544
6545 * sysdeps/ieee754/ldbl-128/Makefile: New file.
6546
62789da3
RH
65472007-03-13 Richard Henderson <rth@redhat.com>
6548
6549 * sysdeps/alpha/Makefile (sysdep-CFLAGS): Force dynamic rounding.
6550 * sysdeps/alpha/fpu/bits/mathinline.h (__signbitl): New.
6551 * sysdeps/alpha/fpu/libm-test-ulps: Regenerate.
6552 * sysdeps/unix/sysv/linux/alpha/alphaev6/fpu/Implies: New file.
6553 * sysdeps/unix/sysv/linux/alpha/alphaev67/fpu/Implies: New file.
6554 * sysdeps/unix/sysv/linux/alpha/fpu/Implies: New file.
6555
47dbe62b
RH
65562007-03-13 Richard Henderson <rth@redhat.com>
6557
37f40235 6558 * elf/dl-support.c (_dl_aux_init): Honor DL_PLATFORM_AUXV.
47dbe62b
RH
6559 * sysdeps/unix/sysv/linux/alpha/dl-auxv.h: New file.
6560 * sysdeps/unix/sysv/linux/alpha/dl-support.c: New file.
6561 * sysdeps/unix/sysv/linux/alpha/dl-sysdep.c (__libc_alpha_cache_shape):
6562 Move to dl-auxv.h; initialize instead of extern weak.
6563 (DL_PLATFORM_AUXV): Move to dl-auxv.h; don't test for undef
6564 weak symbol.
6565 * sysdeps/unix/sysv/linux/alpha/sysconf.c (__libc_alpha_cache_shape):
6566 Extern instead of initialized.
6567
b8097bed
RH
65682007-03-13 Richard Henderson <rth@redhat.com>
6569
6570 * sysdeps/unix/sysv/linux/alpha/sigsuspend.S: Add support for
6571 __sigsuspend_nocancel.
6572
6bf4a686
UD
65732007-03-06 Ulrich Drepper <drepper@redhat.com>
6574
6575 * sysdeps/posix/getaddrinfo.c (get_scope): Correct test for
6576 172.16/12 address range.
6577
0b3b1a0c
UD
65782007-03-02 Jakub Jelinek <jakub@redhat.com>
6579
6580 * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Retry with
6581 a new netlink socket if NLMSG_ERR -EBUSY is seen after some MSG_TRUNC
6582 message.
6583
8f3edfee
UD
65842007-03-01 Jakub Jelinek <jakub@redhat.com>
6585
c1c5e654 6586 [BZ #4069]
8f3edfee
UD
6587 * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Check for NaN
6588 earlier.
6589 * math/libm-test.inc (pow_test): Add more tests involving NaNs.
6590
6591 * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Avoid invalid exception
6592 for x qNaN and y either +-inf or non-integer value.
6593 * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Likewise.
6594 * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.
6595 * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
6596
245a1481
UD
65972007-02-10 Mike Frysinger <vapier@gentoo.org>
6598
6599 * sysdeps/unix/sysv/linux/sh/Makefile: Remove sys/io.h
6600 from sysdep_headers.
6601
c217692b
UD
66022007-02-28 Jakub Jelinek <jakub@redhat.com>
6603
6604 * time/tzfile.c (find_transition): Instead of a linear search try to
6605 guess the transition index, use a linear search if the result is at
6606 most 10 transitions away from the guess or binary search otherwise.
6607
fe64626c
JJ
66082007-02-27 Jakub Jelinek <jakub@redhat.com>
6609
6610 * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Fix
6611 memory reallocation.
6612
0f7769f7
UD
66132007-02-21 Ulrich Drepper <drepper@redhat.com>
6614
621c133d
UD
6615 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Add branch predictions
6616 and fix some typos.
6617 Optimize use of TOLOWER.
9cf147d8 6618
cdfd61e1
UD
6619 [BZ #3325]
6620 * sysdeps/i386/fpu/e_fmodf.S: Revert last changes, keep using fprem.
6621 * sysdeps/i386/fpu/e_fmodl.c: Likewise.
6622 * sysdeps/i386/fpu/e_fmod.S: Likewise.
6623
8889e7aa
UD
6624 [BZ #3458]
6625 * sysdeps/unix/sysv/linux/posix_madvise.c: New file.
6626 * sysdeps/unix/sysv/linux/syscalls.list: Remove posix_madvise entry.
6627
63a2f305
UD
6628 [BZ #4076]
6629 * io/ftw.c (ftw_startup): Handle special case of FTW_CHDIR in /.
6630 (open_dir_stream): Likewise.
6631 * io/Makefile (tests): Add bug-ftw5.
c536b9b8 6632 * io/bug-ftw5.c: New file.
63a2f305 6633
c8703f88
UD
6634 * nscd/hstcache.c (cache_addhst): Remove unnecessary conditional.
6635 * nscd/servicescache.c (cache_addserv): Likewise.
6636
6637 * nscd/grpcache.c (cache_addgr): In case a record changed on
6638 refresh, adjust key_copy.
6639
61705e06
UD
6640 [BZ #4074]
6641 * nscd/pwdcache.c (cache_addpw): In case a record changed on
6642 refresh, adjust key_copy.
6643
0f7769f7
UD
6644 [BZ #4070]
6645 * stdio-common/printf_fp.c (___printf_fp): Handle a few more
0f7769f7 6646 special cases.
8889e7aa 6647 * stdio-common/tfformat.c (sprint_doubles): Some more tests.
0f7769f7 6648
3979024a
UD
66492007-02-19 Ulrich Drepper <drepper@redhat.com>
6650
4c02bf1a
UD
6651 * stdio-common/printf_fp.c (___printf_fp): Cleanups and minor
6652 optimization.
6653
3979024a
UD
6654 * stdio-common/vfscanf.c: Small cleanups throughout.
6655
821d3e70
UD
66562007-02-18 Ulrich Drepper <drepper@redhat.com>
6657
2484468b
UD
6658 [BZ #3325]
6659 * sysdeps/i386/fpu/e_fmodf.S: Use fprem1 instead of fprem.
6660 * sysdeps/i386/fpu/e_fmodl.c: Likewise.
6661 * sysdeps/i386/fpu/e_fmod.S: Likewise.
6662 Patch by Jared Casper <jaredcasper@gmail.com>.
6663
858ee15d
UD
6664 * sysdeps/unix/closedir.c: Outside libc don't use locking.
6665 * sysdeps/unix/opendir.c: Likewise.
6666 * sysdeps/unix/readdir.c: Likewise.
6667
ecb72bd5
UD
6668 [BZ #2211]
6669 * stdio-common/vfscanf.c: Handle localized digits etc for floating
6670 point numbers.
6671 Patch mostly by Hamed Malek <hamed@farsiweb.info>.
6672
ac2ca022
UD
6673 * stdio-common/vfscanf.c: Fix problems in width accounting.
6674 * stdio-common/tst-sscanf.c (double_tests): New tests.
6675 (main): Hook them up.
6676
e9bb5246 6677 * stdio-common/vfscanf.c: Remove unused WIDTH handling.
da50f001 6678 More simplifications of floating-point reader.
e9bb5246 6679
821d3e70
UD
6680 * stdio-common/Makefile (tests): Add tst-swscanf.
6681 * stdio-common/tst-sscanf.c: Make tests usable for swscanf
6682 testing.
6683 * stdio-common/tst-swscanf.c: New file.
6684
07fb5185
UD
66852007-02-17 Ulrich Drepper <drepper@redhat.com>
6686
9138cc0b
UD
6687 [BZ #2633]
6688 * libio/stdio.h: Define struct _IO_FILE in global namespace.
6689 * setjmp/setjmp.h: Define __jmp_buf_tag in global namespace.
6690 Remove using for __jmp_buf_tag.
6691 * locale/locale.h (struct lconv): Also define in std namespace.
6692 * wcsmbs/wchar.h: Move using declaration for tm out of namespace.
6693
6818d837
UD
6694 [BZ #3842]
6695 * sysdeps/posix/euidaccess.c [_LIBC] (euidaccess): Remove shortcut
6696 using __libc_enable_secure.
6697
15c4b5a4
UD
6698 [BZ #3818]
6699 * sysdeps/unix/sysv/linux/sys/acct.h (struct acct_v3): Define.
6700
5e9e9c14
UD
6701 [BZ #3745]
6702 * locale/programs/ld-collate.c (handle_ellipsis): Fix generation
6703 of names for ellipsises.
6704
07fb5185
UD
6705 [BZ #3348]
6706 * malloc/memusage.sh: Cleanups.
6707 * debug/xtrace.sh: Quoting and trap changes.
6708
8c6d1043
UD
67092007-02-16 Ulrich Drepper <drepper@redhat.com>
6710
07fb5185
UD
6711 * locale/iso-3166.def: Add Jersey, Guernsey, and Isle Of Man entries.
6712
93e66914 6713 * locale/iso-3166.def: Update entry for Serbia.
93e36434
UD
6714 * locale/iso-4217.def: Define RSD, remove CSD.
6715
ad0b348c
UD
6716 * sysdeps/x86_64/bits/atomic.h: One more change, this time for 16-
6717 and 64-bit operations.
6718
6719 [BZ #4040]
6720 * sysdeps/i386/i486/bits/atomic.h: One more change, this time for
6721 16-bit operations.
6722
8c6d1043
UD
6723 * nscd/nscd.c (parse_opt): One more conversion to use send instead
6724 of writev.
6725
987f54c6
UD
67262007-02-15 Ulrich Drepper <drepper@redhat.com>
6727
b3715c05
UD
6728 [BZ #3991]
6729 * assert/assert.h (assert): Simplify.
6730 (assert_perror): Likewise.
6731 Patch by Israel G. Lugo <ilugo@bridonsecurity.com>.
6732
6eea8e0d
UD
6733 * nscd/nscd_helper.c (open_socket): Don't send padding bytes from
6734 reqdata.
6735
987f54c6
UD
6736 * sysdeps/unix/sysv/linux/x86_64/send.c (__libc_send): Cosmetic
6737 change: don't pass NULL in place of an integer.
6738
3dc08a7e
UD
67392007-02-02 Bruno Haible <bruno@clisp.org>
6740
06c17c78
UD
6741 [BZ #3954]
6742 * iconvdata/ksc5601.c (__ksc5601_sym_to_ucs, __ksc5601_sym_from_ucs):
6743 Add mapping for U+327E.
6744 * iconvdata/ksc5601.h (KSC5601_SYMBOL): Increment.
6745 * iconvdata/johab.c (BODY for FROM_LOOP, BODY for TO_LOOP): Enable
6746 mapping of 0xD9 0xE8.
6747 * iconvdata/uhc.c (BODY for FROM_LOOP, BODY for TO_LOOP): Disable
6748 mapping of U+327E.
6749 Reported by Jungshik Shin <jungshik@google.com>.
6750
6751 [BZ #3955]
3dc08a7e
UD
6752 * iconvdata/johab.c (BODY for FROM_LOOP, BODY for TO_LOOP): Enable
6753 mapping of 0xD9 0xE6 and of 0xD9 0xE7.
6754 Reported by Jungshik Shin <jungshik@google.com>.
6755
a810e68c
UD
67562007-02-14 Ulrich Drepper <drepper@redhat.com>
6757
6758 * sysdeps/x86_64/bits/atomic;h: Fix asm parameters for some
6759 byte variants.
6760
6761 [BZ #4040]
6762 * sysdeps/i386/i486/bits/atomic.h: Fix asm parameters for some
6763 byte variants. Patch mostly be tom@tommay.net.
6764
05f135ba
UD
67652007-02-14 Jakub Jelinek <jakub@redhat.com>
6766
6767 [BZ #3996]
6768 * posix/glob.c (attribute_hidden): Define if not defined.
6769 (glob): Unescape dirname, filename or username when needed and not
6770 GLOB_NOESCAPE. Handle \/ correctly. Handle GLOB_MARK if filename
6771 is NULL. Handle unescaped [ in pattern without closing ].
6772 Don't pass GLOB_CHECK down to recursive glob for directories.
6773 (__glob_pattern_type): New function.
6774 (__glob_pattern_p): Implement using __glob_pattern_type.
6775 (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
6776 characters and backslashes if not GLOB_NOESCAPE or unterminated [.
6777 Remove unreachable code.
6778 * posix/globtest.sh: Add a couple of new tests.
6779
2f699967
UD
67802007-02-13 Ulrich Drepper <drepper@redhat.com>
6781
6782 * po/ru.po: Update from translation team.
6783
3a7cd5b4
JJ
67842007-02-12 Jakub Jelinek <jakub@redhat.com>
6785
6786 * sysdeps/i386/bits/byteswap.h (__bswap_32): Add __amdfam10__
6787 to the list of i486+ CPUs.
6788 * sysdeps/x86_64/bits/byteswap.h (__bswap_32): Likewise.
6789
2f978feb
UD
67902007-02-12 Ulrich Drepper <drepper@redhat.com>
6791
6792 * elf/rtld.c (RESOLVE_MAP): Always return bootstrap_map reference.
6793 * elf/Makefile ($(objpfx)ld.so): Check that ld.so has no undefined
6794 references.
6795
2bbb7d5b
UD
67962007-02-09 Ulrich Drepper <drepper@redhat.com>
6797
5ed61e0f
UD
6798 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Remove incorrect comment.
6799
2bbb7d5b
UD
6800 * resolv/res_init.c (res_setoptions): Recognize edns0 option.
6801 * resolv/res_mkquery.c: Define __res_nopt.
6802 * resolv/res_query.c (__libc_res_nquery): If RES_USE_EDNS0 is set
6803 try adding EDNS0 record.
6804 * resolv/res_send.c (send_dg): If request failed with FORMERR and
6805 EDNS0 record was send make sure we don't try it again.
6806 * resolv/resolv.h: Define RES_F_EDNS0ERR and RES_USE_EDNS0.
6807 * include/resolv.h: Declare __res_nopt.
6808
00458b5b
UD
68092007-02-08 Jakub Jelinek <jakub@redhat.com>
6810
6811 [BZ #3944]
6812 * time/strptime_l.c (__strptime_internal): Set have_mon for
6813 %b/%B/%h. Set have_mon and have_mday if tm_mon and tm_mday
6814 have been computed from tm_yday and tm_year. Don't crash
6815 in day_of_the_week or day_of_the_year if not have_mon
6816 and tm_mon contains bogus value.
6817 * time/Makefile (tests): Add tst-strptime3.
6818 * time/tst-strptime3.c: New test.
6819
784aacea
UD
68202007-02-05 Jakub Jelinek <jakub@redhat.com>
6821
6822 [BZ #3957]
6823 * posix/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
6824 bit for RE_HAT_LISTS_NOT_NEWLINE.
6825 (build_charclass_op): Remove bogus comment.
6826 * posix/Makefile (tests): Add bug-regex27 and bug-regex28.
6827 * posix/bug-regex27.c: New test.
6828 * posix/bug-regex28.c: New test.
6829
bf7a2463
UD
68302007-02-03 Ulrich Drepper <drepper@redhat.com>
6831
6832 * po/sv.po: Update from translation team.
6833
f2ccf983
UD
68342007-02-02 Ulrich Drepper <drepper@redhat.com>
6835
6836 * nscd/nscd_helper.c (open_socket): Minor size optimization.
6837
73f50d5a
UD
68382007-02-02 Jakub Jelinek <jakub@redhat.com>
6839
6840 * include/locale.h (__uselocale): Add libc_hidden_proto.
6841 * locale/uselocale.c (__uselocale): Add libc_hidden_def.
6842
f6bf9e59
JJ
6843 * nscd/nscd_helper.c (open_socket): Use __gettimeofday instead of
6844 gettimeofday.
6845
4a44ce79
UD
68462007-02-01 Ulrich Drepper <drepper@redhat.com>
6847
6848 * sysdeps/unix/sysv/linux/i386/sysdep.h (PTR_MANGLE): Roll value before
6849 returning.
6850 (PTR_DEMANGLE): Real definition now that it's not the same as
6851 PRT_MANGLE anymore.
6852 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
6853
6854 * string/strerror_l.c: New file.
6855 * string/Makefile (routines): Add strerror_l.
6856 * string/string.h: Declare strerror_l.
6857 * string/Versions: Export strerror_l for GLIBC_2.6.
6858
58a2d52e
UD
68592007-01-31 Ulrich Drepper <drepper@redhat.com>
6860
6861 * nscd/nscd_helper.c (open_socket): Now takes request type and key
6862 as parameter. Construct request record. Try sending request
6863 before the first poll use, it usually succeeds. Adjust all
6864 callers.
6865 * nscd/nscd-client.h: Define MAXKEYLEN.
4a44ce79 6866 * nscd/connections.c (nscd_run): Don't define MAXKEYLEN here.
58a2d52e 6867
1a77d37f
JJ
68682007-01-31 Jakub Jelinek <jakub@redhat.com>
6869
6870 * nscd/nscd-client.h (__nscd_cache_search): Remove const qualifier
6871 from return value.
6872 * nscd/nscd_helper.c: Include string.h.
6873 (__nscd_cache_search): Remove const qualifier from return value.
6874 On strict alignment architectures check hash entry and data head
6875 alignment.
6876 * nscd/nscd_getpw_r.c (nscd_getpw_r): Don't crash or fail because
6877 mmapped data during GC cycle contains garbage. If
6878 __nscd_drop_map_ref fails, decrement mapped->counter when returning
6879 error or if retrying with NO_MAPPING, only __nscd_unmap if counter
6880 dropped to 0.
6881 * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
6882 * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
6883 * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
6884 * nscd/nscd_getai.c (__nscd_getai): Likewise.
6885 * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
6886
ee314200
UD
68872007-01-30 Ulrich Drepper <drepper@redhat.com>
6888
6889 * misc/hsearch_r.c (hdestroy_r): Remove unnecessary test.
6890
14c8bf3b
UD
68912007-01-26 Ulrich Drepper <drepper@redhat.com>
6892
6893 * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Use register
6894 names not numbers in cfi_*.
6895
d2708e67
AJ
68962007-01-26 Andreas Jaeger <aj@suse.de>
6897
6898 * sysdeps/unix/sysv/linux/sys/personality.h (ADDR_NO_RANDOMIZE,
14c8bf3b 6899 ADDR_LIMIT_3GB, PER_LINUX_32BIT, PER_LINUX32_3GB): Add.
d2708e67
AJ
6900 Correct values of PER_HPUX and PER_OSF4.
6901
7fbc8784
UD
69022007-01-24 Ulrich Drepper <drepper@redhat.com>
6903
8aaf53ee 6904 * elf/dl-minimal.c: Undefine _itoa first.
7fbc8784
UD
6905 * stdio-common/_itoa.h: Define _itoa and _fitoa for 64-bit platforms.
6906 * malloc/mtrace.c: Revert last change.
6907 * posix/wordexp.c: Likewise.
6908
9d6cde3d
UD
69092007-01-24 Jakub Jelinek <jakub@redhat.com>
6910
6911 * sysdeps/i386/bits/byteswap.h (__bswap_32): Add __nocona__, __core2__
6912 and __geode__ to the list of i486+ CPUs.
6913 * sysdeps/x86_64/bits/byteswap.h (__bswap_32): Likewise.
6914
c1f0486a
UD
69152007-01-23 Ulrich Drepper <drepper@redhat.com>
6916
6917 * stdio-common/_itoa.c: Include <limits.h>.
6918 * stdio-common/_itowa.c: Likewise.
6919
6cae3957
UD
69202007-01-22 Ulrich Drepper <drepper@redhat.com>
6921
765bbb24
UD
6922 * stdio-common/_itowa.c: Don't compile _itowa for 64-bit
6923 platforms.
6924 * stdio-common/_itoa.c: Don't compile in _itoa and _fitoa for
6925 64-bit platforms.
6926 * malloc/mtrace.c (tr_where): Use _fitoa_word instead of _fitoa if
6927 possible.
6928 * posix/wordexp.c (parse_arith): Use _itoa_word instead of _itoa
6929 if possible.
6930
6cae3957
UD
6931 [BZ #3902]
6932 * stdio-common/_itoa.c (_itoa): Make sure at least a zero is emitted.
6933 * stdio-common/Makefile (tests): Add bug17.
6934 * stdio-common/bug17.c: New file.
6935
ddaafd04
UD
69362007-01-19 Ulrich Drepper <drepper@redhat.com>
6937
6938 * iconvdata/brf.c: New file.
439201de
UD
6939 * iconvdata/testdata/BRF: New file.
6940 * iconvdata/testdata/BRF..UTF8: New file.
6941 Contributed by Samuel Thibault <samuel.thibault@ens-lyon.org>.
ddaafd04
UD
6942 * iconvdata/Makefile: Add rules to build BRF.
6943 * iconvdata/TESTS: Add BRF entry.
6944 * iconvdata/gconv-modules: Likewise.
6945 * iconvdata/tst-tables.sh: Likewise.
ddaafd04 6946
9e6e344e
UD
69472007-01-18 Anton Nikishaev <anton.nik@gmail.com>
6948
6949 * wcsmbs/wchar.h (wcstoll): Fix comment, function returns value of
6950 type `long long int', not `long int'.
6951 (wcstoq): Likewise.
6952
299f7b0f
UD
69532007-01-18 Ulrich Drepper <drepper@redhat.com>
6954
6955 * scripts/gen-as-const.awk: Add cast to long to avoid int promotion
6956 of values on 64-bit platforms which are too large.
6957
cd8127cc
JJ
69582007-01-12 Steven Munroe <sjmunroe@us.ibm.com>
6959 Joe Kerian <jkerian@us.us.ibm.com>
6960
6961 [BZ #2749]
6962 * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Include
6963 <math_ldbl_opt.h>. Remove weak_alias. Use long_double_symbol macro.
6964 (__copysignl): Use signbit() for comparison.
6965 * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Correct parms for
6966 SET_LDOUBLE_WORDS64.
6967
6968 [BZ #2423, #2749]
6969 * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Don't include <fenv_libc.h>.
6970 (__ceill): Remove calls to fegetround(), fesetround().
6971 * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
6972 * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
6973 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
6974
b3acfdf7
JJ
69752007-01-17 Jakub Jelinek <jakub@redhat.com>
6976
4a2e03c6
JJ
6977 * nscd/nscd_getserv_r.c (nscd_getserv_r): Fix pastos.
6978
b3acfdf7
JJ
6979 * sysdeps/unix/sysv/linux/getdents.c (offsetof): Remove.
6980
1476bce6
UD
69812007-01-17 Ulrich Drepper <drepper@redhat.com>
6982
6983 * sysdeps/unix/sysv/linux/fatal-prepare.h: Use PTHFCT_CALL to
6984 demangle pointer.
6985 * csu/libc-start.c: Likewise.
6986
d78bce1c
UD
69872007-01-16 Ulrich Drepper <drepper@redhat.com>
6988
6989 * sysdeps/posix/system.c: Remove NO_WAITPID support, it cannot
6990 really work anyway.
6991
1bd79025
UD
69922007-01-15 Ulrich Drepper <drepper@redhat.com>
6993
000b027e
UD
6994 * nscd/connections.c (servinfo): Renamed to reqinfo. Change all
6995 users.
6996 (handle_request): Remove unnecessary tests.
6997
1bd79025
UD
6998 * nscd/cache.c (cache_add): Record the failure to add to the cache.
6999
d68f5d2c
JJ
70002007-01-15 Jakub Jelinek <jakub@redhat.com>
7001
7002 * soft-fp/op-common.h (FP_TRUNC): When truncating a NaN, clear
7003 workbits in semi-raw fraction.
7004
7005 * math/test-misc.c: Add new tests.
7006
70072007-01-14 Steven Munroe <sjmunroe@us.ibm.com>
7008
7009 * math/basic-test.c: Include test-skeleton.c.
7010 (TEST_TRUNC): Define.
7011 (truncdfsf_test, trunctfsf_test, trunctfdf_test): New.
7012 (main): Rename to ...
7013 (do_test): ...this. Run new tests.
7014 (TEST_FUNCTION): Define.
7015
70162006-10-05 Steven Munroe <sjmunroe@us.ibm.com>
7017 Joe Kerian <jkerian@us.us.ibm.com>
7018
7019 [BZ #2749]
7020 * soft-fp/op-4.h (__FP_FRAC_SUB_3, __FP_FRAC_SUB_4): Correct borrow
7021 handling for high words.
7022 * soft-fp/op-common.h (_FP_OVERFLOW_SEMIRAW): Always set inexact
7023 and overflow for infinity.
7024
4e35ef2c
UD
70252007-01-15 Ulrich Drepper <drepper@redhat.com>
7026
2a1dea97
UD
7027 * nscd/connections.c (handle_request): Add a __builtin_expect.
7028
9691d83c
UD
7029 * nscd/connections.c (serv2db): Change type into structure which
7030 also says whether this is a request for data. Renamed to
7031 servinfo. All users changed.
7032 (handle_request): Much simpler test whether we should search the cache.
7033
49ee6d79
UD
7034 * nscd/connections.c (handle_request): Fix thinko in selinux test
7035 invocation.
7036
4e35ef2c
UD
7037 * sysdeps/generic/ldsodefs.h: Define DL_LOOKUP_SCOPE_LOCK.
7038 * elf/dl-lookup.c (add_dependency): If scope map is locked, unlock
7039 it before getting dl_load_lock and then relock.
7040 (_dl_lookup_symbol_x): Pass flags to add_dependency.
7041 When rerunning _dl_lookup_symbol_x, compute symbol_scope again in
7042 case we unlocked the scope.
7043 * elf/dl-runtime.c (_dl_fixup): Pass DL_LOOKUP_SCOPE_LOCK to
7044 _dl_lookup_symbol_x in case we locked the scope.
7045 (_dl_profile_fixup): Likewise.
7046 * elf/dl-sym.c (do_sym): In flags passed to call_dl_lookup, also
7047 set DL_LOOKUP_SCOPE_LOCK.
7048
23691ab2
UD
70492007-01-13 Ulrich Drepper <drepper@redhat.com>
7050
fb453d08
UD
7051 * inet/Makefile: Define CFLAGS-getsrvbynm_r.c and
7052 CFLAGS-getsrvbynpt_r.c.
7053 * nscd/getsrvbynm_r.c: New file.
7054 * nscd/getsrvbypt_r.c: New file.
7055 * nscd/nscd_getserv_r.c: New file.
7056 * nscd/servicescache.c: New file.
7057 * nscd/Makefile (routines): Add nscd_getserv_r.
7058 (nscd-modules): Add getsrvbynm_r, getsrvbypt_r, and servicescache.
7059 Define CFLAGS-servicescache.c, CFLAGS-getsrvbynm_r.c, and
7060 CFLAGS-getsrvbypt_r.c.
7061 * nscd/cache.c (prune_cache): Rewrite to get re-add function from
7062 table. Add entries for services database.
7063 * nscd/connections.c (serv2str): Mark as const. Add entries for
7064 services database.
7065 (dbs): Add .reset_res and servdb initialization.
7066 (serv2db): Add entries for services database.
7067 (verify_persistent_db): Accept dbnr == servdb.
7068 (invalidate_cache): Rewrite database name recognition to use a table.
7069 Call res_init() if .reset_res is set for database.
7070 (handle_request): Add code to handle services database.
7071 * nscd/gai.c: Don't define __getservbyname_r.
7072 * nscd/nscd-client.h (request_type): Remove LASTDBREQ, add
7073 GETSERVBYNAME, GETSERVBYPORT, GETFDSERV.
7074 (serv_response_header): Define.
7075 (struct datahead): Add serv_response_header member.
7076 * nscd/nscd.c (parse_opt): Rewrite parsing of -i parameter value
7077 using table.
7078 * nscd/nscd.conf: Add entries for services database.
7079 * nscd/nscd.h: Adjust declaration of dbnames and serv2str.
7080 Declare serv_iov_disabled.
7081 Declare addservbyname, readdservbyname, addservbyport, and
7082 readdservbyport.
7083 * nscd/nscd_conf.c (dbnames): Mark as const. Add services entry.
7084 (find_db): Fix error message.
7085 * nscd/nscd_proto.h: Declare __nss_not_use_nscd_services,
7086 __nscd_getservbyname_r, and __nscd_getservbyport_r.
7087 * nscd/selinux.c (perms): Add entries for services database.
7088 * nss/Versions: Export __nss_services_lookup with GLIBC_PRIVATE.
7089 * nss/nsswitch.c (__nss_disable_nscd): Also disable services database.
7090
7091 * nscd/grpcache.c: Remove obsolete code. Cleanups.
7092 * nscd/hstcache.c: Likewise.
7093 * nscd/pwdcache.c: Likewise.
7094
b21fa963
UD
7095 * nis/nss_nis/nis-service.c (_nss_nis_getservbyname_r): Correct
7096 computation of keylen.
7097
23691ab2
UD
7098 * include/string.h: Only redefine strndupa if this is really for
7099 libc code.
7100
8980796b
UD
71012007-01-12 Ulrich Drepper <drepper@redhat.com>
7102
4a4a65f2
UD
7103 * nscd/nscd_gethst_r.c: Minor cleanups.
7104
43397eaf
UD
7105 * nscd/connections.c (handle_request): Check selinux permissions
7106 for all non-admin commands.
7107
038a1a9f
UD
7108 * sysdeps/i386/i486/bits/atomic.h: Define
7109 atomic_compare_and_exchange_val_acq,
7110 atomic_compare_and_exchange_bool_acq, and atomic_exchange_and_add
7111 using __sync_* built-ins for gcc >= 4.1.
7112 * sysdeps/x86_64/bits/atomic.h: Likewise.
7113
8980796b
UD
7114 [BZ #3840]
7115 * scripts/check-local-headers.sh: Restrict to testing .o.d, .os.d,
7116 and .oS.d files.
7117
32c075e1
JJ
71182007-01-05 Steven Munroe <sjmunroe@us.ibm.com>
7119
7120 * stdlib/tst-makecontext.c: Include errno.h. Change main()
7121 to do_test(). Define TEST_FUNCTION. Include test-skeleton.c.
7122 (do_test): Check errno and exit(0) if ENOSYS.
7123
71242007-01-11 Jakub Jelinek <jakub@redhat.com>
7125
7126 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix handling of multi-byte
7127 thousands separators.
7128 * stdlib/Makefile: Add rules to build and run tst-strtod4.
7129 * stdlib/tst-strtod4.c: New test.
7130
7131 [BZ #3855]
7132 * stdlib/strtod_l.c (____STRTOF_INTERNAL): 0x. not followed by
7133 hexadecimal digit should accept just the initial 0.
7134 * stdlib/tst-strtod2.c (tests): New variable.
7135 (do_test): Run several tests rather than just one.
7136
11bf311e 71372007-01-11 Jakub Jelinek <jakub@redhat.com>
df859a0c 7138
11bf311e
UD
7139 * sysdeps/i386/soft-fp/sfp-machine.h: Remove.
7140 * sysdeps/x86_64/soft-fp/sfp-machine.h: Likewise.
df859a0c 7141
11bf311e 71422007-01-10 Ulrich Drepper <drepper@redhat.com>
32c075e1 7143
11bf311e
UD
7144 * io/fts.c: Make sure fts_cur is always valid after return from
7145 fts_read.
7146 Patch by Miloslav Trmac <mitr@redhat.com>.
64a0aa0f 7147
11bf311e 71482006-10-27 Richard Sandiford <richard@codesourcery.com>
32c075e1 7149
11bf311e
UD
7150 * elf/elf.h (R_MIPS_GLOB_DAT): Define.
7151 (R_MIPS_NUM): Bump by 1.
32c075e1 7152
11bf311e 71532007-01-03 Jakub Jelinek <jakub@redhat.com>
32c075e1 7154
11bf311e
UD
7155 * posix/execvp.c: Include alloca.h.
7156 (allocate_scripts_argv): Renamed to...
7157 (scripts_argv): ... this. Don't allocate buffer here nor count
7158 arguments.
7159 (execvp): Use alloca if possible.
7160 * posix/Makefile: Add rules to build and run tst-vfork3 test.
7161 * posix/tst-vfork3.c: New test.
32c075e1
JJ
7162
71632007-01-03 Ulrich Drepper <drepper@redhat.com>
7164
7165 * string/Makefile (tst-strxfrm2-ENV): Define.
11bf311e 7166 * stdlib/Makefile (tst-strtod3-ENV): Define.
32c075e1 7167
11bf311e 71682007-01-02 Ulrich Drepper <drepper@redhat.com>
32c075e1 7169
11bf311e
UD
7170 * posix/getconf.c: Update copyright year.
7171 * nss/getent.c: Likewise.
7172 * iconv/iconvconfig.c: Likewise.
7173 * iconv/iconv_prog.c: Likewise.
7174 * elf/ldconfig.c: Likewise.
7175 * catgets/gencat.c: Likewise.
7176 * csu/version.c: Likewise.
7177 * elf/ldd.bash.in: Likewise.
7178 * elf/sprof.c (print_version): Likewise.
7179 * locale/programs/locale.c: Likewise.
7180 * locale/programs/localedef.c: Likewise.
7181 * nscd/nscd.c (print_version): Likewise.
7182 * debug/xtrace.sh: Likewise.
7183 * malloc/memusage.sh: Likewise.
7184 * malloc/mtrace.pl: Likewise.
7185 * debug/catchsegv.sh: Likewise.
64a0aa0f 7186
11bf311e 71872006-12-24 Ulrich Drepper <drepper@redhat.com>
48576885 7188
11bf311e
UD
7189 * malloc/malloc.c (sYSMALLOc): Remove some unnecessary alignment
7190 attempts.
48576885 7191
11bf311e 71922006-12-23 Ulrich Drepper <drepper@redhat.com>
3b6667a4 7193
11bf311e 7194 * posix/wordexp.c: Remove some unnecessary tests.
3b6667a4 7195
33c6de58
UD
71962006-12-22 Gavin Romig-Koch <gavin@redhat.com>
7197
7198 * nis/nss_compat/compat-grp.c (internal_getgrgid_r): Don't
7199 blacklist the group till after we look it up.
7200
fc242bef
UD
72012006-12-21 Ulrich Drepper <drepper@redhat.com>
7202
7203 * include/atomic.h (atomic_forced_read): New macro.
7204
11bf311e
UD
72052006-12-20 SUGIOKA Toshinobu <sugioka@itonet.co.jp>
7206
7207 * sysdeps/unix/sysv/linux/sh/bits/shm.h: New file.
7208
a12dcecc
UD
72092006-12-19 Jakub Jelinek <jakub@redhat.com>
7210
11bf311e
UD
7211 * nss/getXXbyYY_r.c: Include atomic.h.
7212 (INTERNAL (REENTRANT_NAME)): Write startp after start_fct,
7213 add atomic_write_barrier () in between.
7214
a12dcecc
UD
7215 * stdlib/Makefile (tests): Add tst-makecontext.
7216 * stdlib/tst-makecontext.c: New test.
7217
7218 * sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S
7219 (__makecontext): Don't realign uc_mcontext.uc_regs.
7220
11bf311e 72212006-11-28 Jakub Jelinek <jakub@redhat.com>
594d423a 7222
11bf311e
UD
7223 * elf/dl-support.c: Include dl-procinfo.h.
7224 * sysdeps/powerpc/dl-procinfo.h (PPC_PLATFORM_POWER4,
7225 PPC_PLATFORM_PPC970, PPC_PLATFORM_POWER5, PPC_PLATFORM_POWER5_PLUS,
7226 PPC_PLATFORM_POWER6, PPC_PLATFORM_CELL_BE, PPC_PLATFORM_POWER6X):
7227 Define.
7228 (_dl_string_platform): Use PPC_PLATFORM_* macros instead of
7229 hardcoded constants.
7230 * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_platform): Use
7231 PPC_PLATFORM_* macros for array designators.
594d423a 7232
11bf311e 72332006-11-11 Steven Munroe <sjmunroe@us.ibm.com>
594d423a 7234
11bf311e
UD
7235 * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add 3 new cap
7236 names to the beginning.
7237 (_dl_powerpc_platforms): Add "power6x".
7238 * sysdeps/powerpc/dl-procinfo.h (_DL_HWCAP_FIRST): Decrease.
7239 (HWCAP_IMPORTANT): Add PPC_FEATURE_HAS_DFP.
7240 (_DL_PLATFORMS_COUNT): Increase.
7241 (_dl_string_platform): Handle power6x case.
7242 * sysdeps/powerpc/sysdep.h (PPC_FEATURE_PA6T, PPC_FEATURE_HAS_DFP,
7243 PPC_FEATURE_POWER6_EXT): Define.
7244 (PPC_FEATURE_POWER5, PPC_FEATURE_POWER5_PLUS): Correct Comment.
594d423a 7245
5bcba0ed
UD
72462006-12-18 Jakub Jelinek <jakub@redhat.com>
7247
7248 [BZ #3747]
7249 * stdlib/jrand48_r.c (__jrand48_r): Make sure result is in the
11bf311e 7250 [-2^31 .. 2^31) range.
5bcba0ed
UD
7251 * stdlib/tst-rand48.c (main): Fix expected values for 64-bit
7252 targets.
7253 * stdlib/tst-rand48-2.c: New test.
7254 * stdlib/Makefile (tests): Add tst-rand48-2.
7255
9e1444fc
UD
72562006-12-14 Jakub Jelinek <jakub@redhat.com>
7257
7258 * misc/tst-pselect.c (do_test): Fix sigblock argument.
7259
36775704
UD
72602006-12-14 Ulrich Drepper <drepper@redhat.com>
7261
7262 * misc/tst-pselect.c (do_test): Make sure the helper process is
7263 terminating when the test is aborted.
7264
1e88bd0f
UD
72652006-12-13 Ulrich Drepper <drepper@redhat.com>
7266
11bf311e
UD
7267 * sysdeps/unix/sysv/linux/bits/statvfs.h: Define ST_RELATIME.
7268 * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
7269 Handle relatime mount option.
7270
1e88bd0f
UD
7271 [BZ #2337]
7272 * libio/Makefile (tests): Add tst-setvbuf1.
7273 * libio/tst-setvbuf1.c: New file.
7274
72752006-12-08 Jakub Jelinek <jakub@redhat.com>
7276
7277 [BZ #2337]
7278 * libio/genops.c (__uflow): Fix a typo.
7279 * libio/wfiledoalloc.c (_IO_wfile_doallocate): Don't stat
7280 nor set _IO_LINE_BUF bit here. Size the wide buffer based on
7281 the narrow buffer size.
7282
72832006-11-24 Jakub Jelinek <jakub@redhat.com>
7284
7285 [BZ #2337]
7286 * libio/libio.h (_IO_FLAGS2_USER_WBUF): Define.
7287 * libio/wgenops.c (_IO_wsetb, _IO_wdefault_finish): Test and set
7288 _IO_FLAGS2_USER_WBUF bit in _flags2 instead of _IO_USER_BUF bit
7289 in _flags.
7290 * libio/wstrops.c (_IO_wstr_overflow, enlarge_userbuf,
7291 _IO_wstr_finish): Likewise.
7292 * libio/wmemstream.c (open_wmemstream): Likewise.
7293 * libio/fileops.c (_IO_new_file_close_it): Call _IO_set[bgp]
7294 even for wide streams.
7295
11bf311e 72962006-12-13 Jakub Jelinek <jakub@redhat.com>
1f55ce48 7297
11bf311e
UD
7298 * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: Include
7299 kernel-features.h.
7300
73012006-12-11 Ulrich Drepper <drepper@redhat.com>
7302
7303 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Parse thousand
7304 separators also if no non-zero digits found.
7305 * stdlib/Makefile (tests): Add tst-strtod3.
1f55ce48 7306
d117c1ce
UD
73072006-12-09 Ulrich Drepper <drepper@redhat.com>
7308
f85fb97b
UD
7309 [BZ #3632]
7310 * include/features.h: Fix comment about default value for
7311 _POSIX_C_SOURCE.
7312
11bf311e
UD
7313 [BZ #3664]
7314 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix test to recognize
7315 empty parsed strings.
7316 * stdlib/Makefile (tests): Add tst-strtod2.
7317 * stdlib/tst-strtod2.c: New file.
7318
7319 [BZ #3673]
7320 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix exp_limit
7321 computation.
7322 * stdlib/Makefile (tests): Add tst-atof2.
7323 * stdlib/tst-atof2.c: New file.
7324
7325 [BZ #3674]
7326 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Adjust exponent value
7327 correctly if removing trailing zero of hex-float.
7328 * stdlib/Makefile (tests): Add tst-atof1.
7329 * stdlib/tst-atof1.c: New file.
7330
a822d9f4
UD
73312006-12-09 Jakub Jelinek <jakub@redhat.com>
7332
11bf311e
UD
7333 * misc/mntent_r.c (__hasmntopt): Check p[optlen] even when p == rest.
7334 Start searching for next comma at p rather than rest.
7335 * misc/Makefile (tests): Add tst-mntent2.
7336 * misc/tst-mntent2.c: New test.
7337
a822d9f4
UD
7338 * misc/getusershell.c (initshells): Check for integer overflows.
7339 Make strings buffer one bigger as fgets always succeeds when second
7340 argument is 1. Don't use calloc for shells array. Disallow
11bf311e 7341 / as shell.
f0d5e1f6 7342
11bf311e 73432006-12-08 Ulrich Drepper <drepper@redhat.com>
f0d5e1f6 7344
11bf311e
UD
7345 * malloc/memusage.c: Handle realloc with new size of zero and
7346 non-NULL pointer correctly.
7347 (me): Really write first record twice.
7348 (struct entry): Make format bi-arch safe.
7349 (dest): Write out more realloc statistics.
7350 * malloc/memusagestat.c (struct entry): Make format bi-arch safe.
32c075e1 7351
11bf311e 73522006-12-05 Jakub Jelinek <jakub@redhat.com>
32c075e1 7353
11bf311e 7354 * nis/nis_subr.c (nis_getnames): Revert last change.
32c075e1 7355
f0d5e1f6
UD
73562006-12-04 Jakub Jelinek <jakub@redhat.com>
7357
7358 * sysdeps/unix/sysv/linux/ttyname.c: Include termios.h.
7359 (ttyname): Use tcgetattr instead of isatty, don't set errno to ENOTTY.
7360 * sysdeps/unix/sysv/linux/ttyname_r.c: Include termios.h.
7361 (__ttyname_r): Use tcgetattr instead of isatty, don't set errno to
7362 ENOTTY.
7363 * io/Makefile: Add rules to build and run tst-ttyname_r test.
7364 * io/tst-ttyname_r.c: New test.
7365
11bf311e 73662006-12-03 Kaz Kojima <kkojima@rr.iij4u.or.jp>
5df4fe08 7367
11bf311e 7368 * sysdeps/unix/sysv/linux/sh/sys/io.h: Removed.
5df4fe08 7369
11bf311e 73702006-11-30 H.J. Lu <hongjiu.lu@intel.com>
ee50871d 7371
11bf311e
UD
7372 * sysdeps/i386/i686/memcmp.S: Use jump table as the base of
7373 jump table entries.
7374
73752006-11-30 Jan Kratochvil <jan.kratochvil@redhat.com>
7376
7377 * sysdeps/unix/sysv/linux/i386/clone.S: Provide CFI for the outermost
7378 `clone' function to ensure proper unwinding stop of gdb.
7379 * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
7380
73812006-12-01 Ulrich Drepper <drepper@redhat.com>
7382
7383 * nscd/nscd.init: Remove obsolete and commented-out -S option
7384 handling.
7385
73862006-11-23 Jakub Jelinek <jakub@redhat.com>
7387
7388 [BZ #3514]
7389 * manual/string.texi (strncmp): Fix pastos from wcscmp description.
7390
7391 [BZ #3515]
7392 * manual/string.texi (strtok): Remove duplicate paragraph.
7393
73942006-12-01 Jan Kratochvil <jan.kratochvil@redhat.com>
7395
7396 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Fix compatibility with
7397 libgcc not supporting `rflags' unwinding (register # >= 17).
7398
73992006-11-30 Jakub Jelinek <jakub@redhat.com>
7400
7401 * sunrpc/svc_run.c (svc_run): Set my_pollfd to new_pollfd if realloc
7402 succeeded.
7403
74042006-11-29 Daniel Jacobowitz <dan@codesourcery.com>
7405 Jakub Jelinek <jakub@redhat.com>
7406 Jan Kratochvil <jan.kratochvil@redhat.com>
7407
7408 * sysdeps/unix/sysv/linux/x86_64/sigaction.c (restore_rt): Add correct
7409 unwind information.
7410 * sysdeps/unix/sysv/linux/x86_64/Makefile: Provide symbols for
7411 'restore_rt' even in the 'signal' directory.
7412 * sysdeps/unix/sysv/linux/x86_64/ucontext_i.sym: Extend the regs list.
ee50871d 7413
b1a758f3
UD
74142006-11-27 Jakub Jelinek <jakub@redhat.com>
7415
7416 [BZ #3559]
7417 * sunrpc/svc_run.c (svc_run): Fail instead of segfaulting if
11bf311e
UD
7418 malloc crashed. Don't allocate memory unnecessarily in each
7419 loop.
b1a758f3 7420
11bf311e 74212006-10-21 Jakub Jelinek <jakub@redhat.com>
854d1124 7422
11bf311e 7423 * resolv/mapv4v6addr.h (map_v4v6_address): Fix last change.
dfc99a56 7424
11bf311e 74252006-11-20 Ulrich Drepper <drepper@redhat.com>
dfc99a56 7426
11bf311e 7427 * resolv/mapv4v6addr.h (map_v4v6_address): Optimize a bit.
852d657c 7428
11bf311e 74292006-11-18 Bruno Haible <bruno@clisp.org>
852d657c 7430
11bf311e
UD
7431 * sysdeps/unix/sysv/linux/i386/getgroups.c (__getgroups): Invoke
7432 __sysconf only after having tried to call getgroups32.
36c0a636 7433
11bf311e 74342006-11-19 Ulrich Drepper <drepper@redhat.com>
36c0a636 7435
11bf311e
UD
7436 * nss/nss_files/files-hosts.c (LINE_PARSER): Support IPv6-style
7437 addresses for IPv4 queries if they can be mapped.
b1f0c2a6 7438
11bf311e 74392006-11-16 Jakub Jelinek <jakub@redhat.com>
b1f0c2a6 7440
11bf311e
UD
7441 * sysdeps/x86_64/fpu/s_copysignf.S (__copysignf): Switch to .text.
7442 * sysdeps/x86_64/fpu/s_copysign.S (__copysign): Likewise.
7443 (signmask): Add .size directive.
7444 (othermask): Add .type directive.
bef8927a 7445
11bf311e 74462006-11-14 Ulrich Drepper <drepper@redhat.com>
2c53fa20 7447
11bf311e 7448 * po/nl.po: Update from translation team.
854d1124 7449
11bf311e 7450 * timezone/zdump.c: Redo fix for BZ #3137.
3f1e9205 7451
11bf311e 74522006-11-14 Jakub Jelinek <jakub@redhat.com>
bef8927a 7453
11bf311e
UD
7454 * nss/nss_files/files-alias.c (get_next_alias): Set line back
7455 to first_unused after parsing :include: file.
5c2af134 7456
32c075e1 74572006-11-10 Ulrich Drepper <drepper@redhat.com>
e1b37083 7458
11bf311e
UD
7459 * timezone/africa: Update from tzdata2006o.
7460 * timezone/antarctica: Likewise.
7461 * timezone/asia: Likewise.
7462 * timezone/australasia: Likewise.
7463 * timezone/backward: Likewise.
7464 * timezone/europe: Likewise.
7465 * timezone/iso3166.tab: Likewise.
7466 * timezone/northamerica: Likewise.
7467 * timezone/southamerica: Likewise.
7468 * timezone/zone.tab: Likewise.
7469
7470 * time/tzfile.c (__tzfile_read): Extend to handle new file format
7471 on machines with 64-bit time_t.
7472
7473 * timezone/checktab.awk: Update from tzcode2006o.
7474 * timezone/ialloc.c: Likewise.
7475 * timezone/private.h: Likewise.
7476 * timezone/scheck.c: Likewise.
7477 * timezone/tzfile.h: Likewise.
7478 * timezone/tzselect.ksh: Likewise.
7479 * timezone/zdump.c: Likewise.
7480 * timezone/zic.c: Likewise.
7481
7482 [BZ #3483]
7483 * elf/ldconfig.c (main): Call setlocale and textdomain.
7484 Patch mostly by Benno Schulenberg <bensberg@justemail.net>.
7485
7486 [BZ #3480]
7487 * manual/argp.texi: Fix typos.
7488 * manual/charset.texi: Likewise.
7489 * manual/errno.texi: Likewise.
7490 * manual/filesys.texi: Likewise.
7491 * manual/lang.texi: Likewise.
7492 * manual/maint.texi: Likewise.
7493 * manual/memory.texi: Likewise.
7494 * manual/message.texi: Likewise.
7495 * manual/resource.texi: Likewise.
7496 * manual/search.texi: Likewise.
7497 * manual/signal.texi: Likewise.
7498 * manual/startup.texi: Likewise.
7499 * manual/stdio.texi: Likewise.
7500 * manual/sysinfo.texi: Likewise.
7501 * manual/syslog.texi: Likewise.
7502 * manual/time.texi: Likewise.
7503 Patch by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
7504
7505 [BZ #3465]
7506 * sunrpc/clnt_raw.c: Minimal message improvements.
7507 * sunrpc/pm_getmaps.c: Likewise.
7508 * nis/nss_nisplus/nisplus-publickey.c: Likewise.
7509 * nis/nis_print_group_entry.c: Likewise.
7510 * locale/programs/repertoire.c: Likewise.
7511 * locale/programs/charmap.c: Likewise.
7512 * malloc/memusage.sh: Likewise.
7513 * elf/dl-deps.c: Likewise.
7514 * locale/programs/ld-collate.c: Likewise.
7515 * libio/vswprintf.c: Likewise.
7516 * malloc/memusagestat.c: Likewise.
7517 * sunrpc/auth_unix.c: Likewise.
7518 * sunrpc/rpc_main.c: Likewise.
7519 * nscd/cache.c: Likewise.
7520 * locale/programs/repertoire.c: Unify output messages.
7521 * locale/programs/charmap.c: Likewise.
7522 * locale/programs/ld-ctype.c: Likewise.
7523 * locale/programs/ld-monetary.c: Likewise.
7524 * locale/programs/ld-numeric.c: Likewise.
7525 * locale/programs/ld-time.c: Likewise.
7526 * elf/ldconfig.c: Likewise.
7527 * nscd/selinux.c: Likewise.
7528 * elf/cache.c: Likewise.
7529 Patch mostly by Benno Schulenberg <bensberg@justemail.net>.
7530
5c2af134
UD
7531 [BZ #3451]
7532 * sysdeps/i386/fpu/bits/mathinline.h (floor): Make rounding mode
7533 change atomic.
7534 (ceil): Likewise.
7535
11bf311e
UD
75362006-11-10 Jakub Jelinek <jakub@redhat.com>
7537
7538 * string/strxfrm_l.c (STRXFRM): Fix trailing \1 optimization
7539 if N is one bigger than return value.
7540 * string/tst-strxfrm2.c (do_test): Also test strxfrm with l1 + 1
7541 and l1 last arguments, if buf is defined, verify the return value
7542 equals to strlen (buf) and verify no byte beyond passed length
7543 is modified.
7544
75452006-11-10 Ulrich Drepper <drepper@redhat.com>
7546
7547 * po/sv.po: Update from translation team.
7548
37afcf79
UD
75492006-11-09 Ulrich Drepper <drepper@redhat.com>
7550
7551 * sysdeps/unix/sysv/linux/x86_64/sysconf.c (intel_check_word): Add
7552 noinline attribute.
7553
75542006-11-10 Jakub Jelinek <jakub@redhat.com>
7555
7556 * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Add
7557 noinline attribute.
7558
11bf311e
UD
7559 * sysdeps/gnu/siglist.c (__old_sys_siglist, __old_sys_sigabbrev):
7560 Use __new_sys_siglist instead of _sys_siglist_internal as
7561 second macro argument.
7562 (_old_sys_siglist): Use declare_symbol_alias macro instead of
7563 strong_alias.
2692deea 7564
11bf311e
UD
75652006-11-09 Ulrich Drepper <drepper@redhat.com>
7566
7567 [BZ #3493]
7568 * posix/unistd.h (sysconf): Remove const attribute.
7569
7570 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Fix test for
7571 temporary or deprecated addresses.
7572 Patch by Sridhar Samudrala <sri@us.ibm.com>.
7573
7574 * string/Makefile (tests): Add tst-strxfrm2.
7575 * string/tst-strxfrm2.c: New file.
7576
75772006-10-09 Jakub Jelinek <jakub@redhat.com>
7578
7579 * elf/dl-debug.c (_dl_debug_initialize): Check r->r_map for 0
7580 rather than r->r_brk.
2692deea
UD
7581
75822006-11-08 Jakub Jelinek <jakub@redhat.com>
7583
11bf311e
UD
7584 * string/strxfrm_l.c (STRXFRM): Do the trailing \1 removal
7585 optimization even if needed > n.
7586
2692deea
UD
7587 * elf/dl-load.c (decompose_rpath): Return bool rather than void.
7588 If l->l_name is on inhibit_rpath list, set sps->dirs to -1 and
7589 return false, otherwise return true.
7590 (cache_rpath): Return decompose_rpath return value.
7591
11bf311e
UD
75922006-11-07 Jakub Jelinek <jakub@redhat.com>
7593
7594 * include/libc-symbols.h (declare_symbol): Rename to...
7595 (declare_symbol_alias): ... this. Add ORIGINAL argument, imply
7596 strong_alias (ORIGINAL, SYMBOL) in asm to make sure it preceedes
7597 .size directive.
7598 * sysdeps/gnu/errlist-compat.awk: Adjust for declare_symbol_alias
7599 changes.
7600 * sysdeps/gnu/siglist.c: Likewise.
7601
76022006-11-03 Steven Munroe <sjmunroe@us.ibm.com>
7603
7604 * sysdeps/powerpc/fpu/bits/mathinline.h
7605 [__LIBC_INTERNAL_MATH_INLINES]: Moved to ...
7606 * sysdeps/powerpc/fpu/math_private.h: ...here. New file.
7607
76082006-11-05 Ulrich Drepper <drepper@redhat.com>
7609
7610 * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
7611 Update handling of cache descriptor 0x49 for new models.
7612 * sysdeps/unix/sysv/linux/x86_64/sysconf.c (intel_check_word):
7613 Likewise.
7614
9666e36c
UD
76152006-11-02 Jakub Jelinek <jakub@redhat.com>
7616
7617 * malloc/memusage.c (dest): Reset not_me back to false after
7618 printing statistics.
7619
11bf311e
UD
76202006-11-02 Ulrich Drepper <drepper@redhat.com>
7621
7622 * configure.in: Work around ld --help change and avoid -z relro
7623 test completely if the architecture doesn't care about security.
7624
76252006-11-01 Ulrich Drepper <drepper@redhat.com>
7626
7627 * po/sv.po: Update from translation team.
7628
76292006-10-31 Ulrich Drepper <drepper@redhat.com>
7630
7631 * stdlib/atexit.c (atexit): Don't mark as hidden when used to
7632 generate compatibility version.
7633
76342006-10-29 Ulrich Drepper <drepper@redhat.com>
7635
7636 * configure.in: Relax -z relro requirement a bit.
7637
7638 * po/sv.po: Update from translation team.
7639
76402006-10-29 Jakub Jelinek <jakub@redhat.com>
7641
7642 * elf/dl-sym.c (do_sym): Use RTLD_SINGLE_THREAD_P.
7643 * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Likewise.
7644 * elf/dl-close.c (_dl_close_worker): Likewise.
7645 * elf/dl-open.c (_dl_open_worker): Likewise.
7646 * sysdeps/generic/sysdep-cancel.h (RTLD_SINGLE_THREAD_P): Define.
7647
b2369ca3
UD
76482006-10-27 Ulrich Drepper <drepper@redhat.com>
7649
11bf311e
UD
7650 * configure.in: Require assembler support for visibility, compiler
7651 support for visibility and aliases, linker support for various -z
7652 options.
7653 * Makeconfig: Remove conditional code which now is unnecessary.
7654 * config.h.in: Likewise.
7655 * config.make.in: Likewise.
7656 * dlfcn/Makefile: Likewise.
7657 * elf/Makefile: Likewise.
7658 * elf/dl-load.c: Likewise.
7659 * elf/rtld.c: Likewise.
7660 * include/libc-symbols.h: Likewise.
7661 * include/stdio.h: Likewise.
7662 * io/Makefile: Likewise.
7663 * io/fstat.c: Likewise.
7664 * io/fstat64.c: Likewise.
7665 * io/fstatat.c: Likewise.
7666 * io/fstatat64.c: Likewise.
7667 * io/lstat.c: Likewise.
7668 * io/lstat64.c: Likewise.
7669 * io/mknod.c: Likewise.
7670 * io/mknodat.c: Likewise.
7671 * io/stat.c: Likewise.
7672 * io/stat64.c: Likewise.
7673 * libio/stdio.c: Likewise.
7674 * nscd/Makefile: Likewise.
7675 * stdlib/Makefile: Likewise.
7676 * stdlib/atexit.c: Likewise.
7677 * sysdeps/generic/ldsodefs.h: Likewise.
7678 * sysdeps/i386/dl-machine.h: Likewise.
7679 * sysdeps/i386/sysdep.h: Likewise.
7680 * sysdeps/i386/i686/memcmp.S: Likewise.
7681 * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
7682 * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
7683 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
7684
7685 * Makerules: USE_TLS support is now default.
7686 * tls.make.c: Likewise.
7687 * csu/Versions: Likewise.
7688 * csu/libc-start.c: Likewise.
7689 * csu/libc-tls.c: Likewise.
7690 * csu/version.c: Likewise.
7691 * dlfcn/dlinfo.c: Likewise.
7692 * elf/dl-addr.c: Likewise.
7693 * elf/dl-cache.c: Likewise.
7694 * elf/dl-close.c: Likewise.
7695 * elf/dl-iteratephdr.c: Likewise.
7696 * elf/dl-load.c: Likewise.
7697 * elf/dl-lookup.c: Likewise.
7698 * elf/dl-object.c: Likewise.
7699 * elf/dl-open.c: Likewise.
7700 * elf/dl-reloc.c: Likewise.
7701 * elf/dl-support.c: Likewise.
7702 * elf/dl-sym.c: Likewise.
7703 * elf/dl-sysdep.c: Likewise.
7704 * elf/dl-tls.c: Likewise.
7705 * elf/ldconfig.c: Likewise.
7706 * elf/rtld.c: Likewise.
7707 * elf/tst-tls-dlinfo.c: Likewise.
7708 * elf/tst-tls1.c: Likewise.
7709 * elf/tst-tls10.h: Likewise.
7710 * elf/tst-tls14.c: Likewise.
7711 * elf/tst-tls2.c: Likewise.
7712 * elf/tst-tls3.c: Likewise.
7713 * elf/tst-tls4.c: Likewise.
7714 * elf/tst-tls5.c: Likewise.
7715 * elf/tst-tls6.c: Likewise.
7716 * elf/tst-tls7.c: Likewise.
7717 * elf/tst-tls8.c: Likewise.
7718 * elf/tst-tls9.c: Likewise.
7719 * elf/tst-tlsmod1.c: Likewise.
7720 * elf/tst-tlsmod13.c: Likewise.
7721 * elf/tst-tlsmod13a.c: Likewise.
7722 * elf/tst-tlsmod14a.c: Likewise.
7723 * elf/tst-tlsmod2.c: Likewise.
7724 * elf/tst-tlsmod3.c: Likewise.
7725 * elf/tst-tlsmod4.c: Likewise.
7726 * elf/tst-tlsmod5.c: Likewise.
7727 * elf/tst-tlsmod6.c: Likewise.
7728 * include/errno.h: Likewise.
7729 * include/link.h: Likewise.
7730 * include/tls.h: Likewise.
7731 * locale/global-locale.c: Likewise.
7732 * locale/localeinfo.h: Likewise.
7733 * malloc/arena.c: Likewise.
7734 * malloc/hooks.c: Likewise.
7735 * malloc/malloc.c: Likewise.
7736 * resolv/Versions: Likewise.
7737 * sysdeps/alpha/dl-machine.h: Likewise.
7738 * sysdeps/alpha/libc-tls.c: Likewise.
7739 * sysdeps/generic/ldsodefs.h: Likewise.
7740 * sysdeps/generic/tls.h: Likewise.
7741 * sysdeps/i386/dl-machine.h: Likewise.
7742 * sysdeps/ia64/dl-machine.h: Likewise.
7743 * sysdeps/ia64/libc-tls.c: Likewise.
7744 * sysdeps/mach/hurd/fork.c: Likewise.
7745 * sysdeps/mach/hurd/i386/tls.h: Likewise.
7746 * sysdeps/powerpc/powerpc32/dl-machine.c: Likwise.
7747 * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
7748 * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
7749 * sysdeps/s390/libc-tls.c: Likewise.
7750 * sysdeps/s390/s390-32/dl-machine.h: Likewise.
7751 * sysdeps/s390/s390-64/dl-machine.h: Likewise.
7752 * sysdeps/sh/dl-machine.h: Likewise.
7753 * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
7754 * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
7755 * sysdeps/x86_64/dl-machine.h: Likewise.
7756
131c4428
UD
7757 * elf/dl-close.c (_dl_close_worker): Renamed from _dl_close and
7758 split out locking and parameter checking.
7759 (_dl_close): Call _dl_close_worker after locking and checking.
7760 * elf/dl-open.c (_dl_open): Call _dl_close_worker instead of
7761 _dl_close.
ffd0e1b7
UD
7762 * elf/Makefile: Add rules to build and run tst-thrlock.
7763 * elf/tst-thrlock.c: New file.
131c4428 7764
11bf311e
UD
7765 [BZ #3426]
7766 * stdlib/stdlib.h: Adjust comment for canonicalize_file_name to
7767 reality.
7768
b2369ca3
UD
7769 [BZ #3429]
7770 * elf/dl-open.c (dl_open_worker): Keep holding dl_load_lock until
131c4428 7771 we are sure we do not need it anymore for _dl_close. Also move
b2369ca3
UD
7772 the asserts inside the lock region.
7773 Patch mostly by Suzuki <suzuki@in.ibm.com>.
7774
11bf311e
UD
77752006-10-27 Jakub Jelinek <jakub@redhat.com>
7776
7777 * elf/dl-lookup.c (_dl_debug_bindings): Remove unused symbol_scope
7778 argument.
7779 (_dl_lookup_symbol_x): Adjust caller.
7780
7781 * sysdeps/generic/ldsodefs.h (struct link_namespaces): Remove
7782 _ns_global_scope.
7783 * elf/rtld.c (dl_main): Don't initialize _ns_global_scope.
7784
7785 * elf/dl-libc.c: Revert l_scope name changes.
7786 * elf/dl-load.c: Likewise.
7787 * elf/dl-object.c: Likewise.
7788 * elf/rtld.c: Likewise.
7789 * elf/dl-close.c (_dl_close): Likewise.
7790 * elf/dl-open.c (dl_open_worker): Likewise. If not SINGLE_THREAD_P,
7791 always use __rtld_mrlock_{change,done}. Always free old scope list
7792 here if not l_scope_mem.
7793 * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Revert l_scope name
7794 change. Never free scope list here. Just __rtld_mrlock_lock before
7795 the lookup and __rtld_mrlock_unlock it after the lookup.
7796 * elf/dl-sym.c: Likewise.
7797 * include/link.h (struct r_scoperec): Remove.
7798 (struct link_map): Replace l_scoperec with l_scope, l_scoperec_mem
7799 with l_scope_mem and l_scoperec_lock with l_scope_lock.
7800
78012006-10-25 Ulrich Drepper <drepper@redhat.com>
7802
7803 * sysdeps/gnu/netinet/tcp.h: Define TCP_CONGESTION.
7804
78052006-10-18 Ulrich Drepper <drepper@redhat.com>
7806
7807 * configure.in: Disable building profile libraries by default.
7808
609cf614
UD
78092006-10-17 Jakub Jelinek <jakub@redhat.com>
7810
7811 * sunrpc/xdr_mem.c (xdrmem_setpos): Don't compare addresses
7812 as signed longs, check for x_base + pos overflow.
7813 * sunrpc/Makefile (tests): Add tst-xdrmem2.
7814 * sunrpc/tst-xdrmem2.c: New test.
7815
11bf311e
UD
78162006-10-18 Ulrich Drepper <drepper@redhat.com>
7817
7818 * elf/dl-lookup.c (_dl_lookup_symbol_x): Add warning to
7819 _dl_lookup_symbol_x code.
7820
78212006-10-17 Jakub Jelinek <jakub@redhat.com>
7822
7823 * elf/dl-runtime.c: Include sysdep-cancel.h.
7824 (_dl_fixup, _dl_profile_fixup): Use __rtld_mrlock_* and
7825 scoperec->nusers only if !SINGLE_THREAD_P. Use atomic_*
7826 instead of catomic_* macros.
7827 * elf/dl-sym.c: Include sysdep-cancel.h.
7828 (do_sym): Use __rtld_mrlock_* and scoperec->nusers only
7829 if !SINGLE_THREAD_P. Use atomic_* instead of catomic_* macros.
7830 * elf/dl-close.c: Include sysdep-cancel.h.
7831 (_dl_close): Use __rtld_mrlock_* and scoperec->nusers only
7832 if !SINGLE_THREAD_P. Use atomic_* instead of catomic_* macros.
7833 * elf/dl-open.c: Include sysdep-cancel.h.
7834 (dl_open_worker): Use __rtld_mrlock_* and scoperec->nusers only
7835 if !SINGLE_THREAD_P. Use atomic_* instead of catomic_* macros.
7836
78372006-10-17 Jakub Jelinek <jakub@redhat.com>
7838
7839 [BZ #3313]
7840 * malloc/malloc.c (malloc_consolidate): Set maxfb to address of last
7841 fastbin rather than end of fastbin array.
7842
78432006-10-18 Ulrich Drepper <drepper@redhat.com>
7844
7845 * sysdeps/i386/i486/bits/atomic.h (catomic_decrement): Use correct
7846 body macro.
7847 * sysdeps/x86_64/bits/atomic.h
7848 (__arch_c_compare_and_exchange_val_64_acq): Add missing casts.
7849 (catomic_decrement): Use correct body macro.
7850
78512006-10-17 Jakub Jelinek <jakub@redhat.com>
7852
7853 * include/atomic.h: Add a unique prefix to all local variables
7854 in macros.
7855 * csu/tst-atomic.c (do_test): Test also catomic_* macros.
7856
4a85a8ee
UD
78572006-10-16 Ulrich Drepper <drepper@redhat.com>
7858
7859 [BZ #3369]
7860 * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Fix typos in rules 4
7861 and 7.
7862
11bf311e
UD
78632006-10-14 Ulrich Drepper <drepper@redhat.com>
7864
7865 * resolv/arpa/nameser.h: Document that ns_t_a6 is deprecated.
7866
ff8d96be
UD
78672006-10-13 Ulrich Drepper <drepper@redhat.com>
7868
11bf311e
UD
7869 [BZ #3313]
7870 * malloc/malloc.c (malloc_consolidate): Don't use get_fast_max to
7871 determine highest fast bin to consolidate, always look into all of
7872 them.
7873 (do_check_malloc_state): Only require for empty bins for large
7874 sizes in main arena.
7875
7876 * libio/stdio.h: Add more __wur attributes.
7877
ff8d96be
UD
7878 * elf/dl-minimal.c (realloc): Optimize last patch.
7879
90a0991a
UD
78802006-10-12 Richard Sandiford <richard@codesourcery.com>
7881
7882 [BZ #3352]
7883 * elf/dl-minimal.c (realloc): Let malloc() return a new pointer,
7884 and use memcpy() if it does.
ff8d96be 7885
11bf311e
UD
78862006-11-12 Andreas Jaeger <aj@suse.de>
7887
7888 [BZ #2510]
7889 * manual/search.texi (Hash Search Function): Clarify.
7890 (Array Search Function): Clarify.
7891
78922006-11-12 Joseph Myers <joseph@codesourcery.com>
7893
7894 [BZ #2830]
7895 * math/atest-exp.c (main): Cast hex value to mp_limb_t before
7896 shifting.
7897 * math/atest-exp2.c (read_mpn_hex): Likewise.
7898 * math/atest-sincos.c (main): Likewise.
7899
37fb7595
UD
79002006-10-11 Ulrich Drepper <drepper@redhat.com>
7901
11bf311e
UD
7902 * sysdeps/unix/sysv/linux/syscalls.list: Add epoll_pwait.
7903 * sysdeps/unix/sysv/linux/sys/epoll.h: Declare epoll_pwait.
7904 * sysdeps/unix/sysv/linux/Versions (libc): Add epoll_pwait for
7905 version GLIBC_2.6.
7906 * Versions.def: Add GLIBC_2.6 for libc.
7907
46c38bd7
UD
7908 * sysdeps/unix/sysv/linux/i386/sysdep.h (DOARGS_6): Fix offset.
7909
11bf311e
UD
7910 * sysdeps/i386/i486/bits/atomic.h: Add catomic_* support.
7911
79122006-10-11 Jakub Jelinek <jakub@redhat.com>
7913
7914 * malloc/malloc.c (_int_malloc): Remove unused any_larger variable.
7915
7916 * nis/nis_defaults.c (__nis_default_access): Don't call getenv twice.
7917
7918 * nis/nis_subr.c (nis_getnames): Use __secure_getenv instead of getenv.
7919 * sysdeps/generic/unsecvars.h: Add NIS_PATH.
7920
79212006-10-11 Ulrich Drepper <drepper@redhat.com>
7922
7923 * include/atomic.c: Define catomic_* operations.
7924 * sysdeps/x86_64/bits/atomic.h: Likewise. Fix a few minor problems.
7925 * stdlib/cxa_finalize.c: Use catomic_* operations instead of atomic_*.
7926 * malloc/memusage.c: Likewise.
7927 * gmon/mcount.c: Likewise.
7928 * elf/dl-close.c: Likewise.
7929 * elf/dl-open.c: Likewise.
7930 * elf/dl-profile.c: Likewise.
7931 * elf/dl-sym.c: Likewise.
7932 * elf/dl-runtime.c: Likewise.
7933 * elf/dl-fptr.c: Likewise.
7934 * resolv/res_libc.c: Likewise.
7935
2a6ee549
UD
79362006-10-10 Ulrich Drepper <drepper@redhat.com>
7937
7938 * nis/nis_subr.c (nis_getnames): Add trailing dot to NIS_PATH
7939 components which lack them.
7940
7941 * nis/nis_subr.c (nis_getnames): Make sure that we always return
7942 at least one entry consisting of the parameter concatenated with
7943 the domain.
7944
11bf311e 79452006-10-10 Roland McGrath <roland@frob.com>
c4f9fc3a 7946
11bf311e
UD
7947 * sysdeps/mach/hurd/utimes.c: Use a union to avoid an improper cast.
7948 * sysdeps/mach/hurd/futimes.c: Likewise.
7949 * sysdeps/mach/hurd/lutimes.c: Likewise.
7950
79512006-10-09 Ulrich Drepper <drepper@redhat.com>
7952 Jakub Jelinek <jakub@redhat.com>
7953
7954 Implement reference counting of scope records.
7955 * elf/dl-close.c (_dl_close): Remove all scopes from removed objects
7956 from the list in objects which remain. Always allocate new scope
7957 record.
7958 * elf/dl-open.c (dl_open_worker): When growing array for scopes,
7959 don't resize, allocate a new one.
7960 * elf/dl-runtime.c: Update reference counters before using a scope
7961 array.
7962 * elf/dl-sym.c: Likewise.
7963 * elf/dl-libc.c: Adjust for l_scope name change.
7964 * elf/dl-load.c: Likewise.
7965 * elf/dl-object.c: Likewise.
7966 * elf/rtld.c: Likewise.
7967 * include/link.h: Include <rtld-lowlevel.h>. Define struct
7968 r_scoperec. Replace r_scope with pointer to r_scoperec structure.
7969 Add l_scoperec_lock.
7970 * sysdeps/generic/ldsodefs.h: Include <rtld-lowlevel.h>.
7971 * sysdeps/generic/rtld-lowlevel.h: New file.
7972
7973 * include/atomic.h: Rename atomic_and to atomic_and_val and
7974 atomic_or to atomic_or_val. Define new macros atomic_and and
7975 atomic_or which do not return values.
7976 * sysdeps/x86_64/bits/atomic.h: Define atomic_and and atomic_or.
7977 Various cleanups.
7978 * sysdeps/i386/i486/bits/atomic.h: Likewise.
7979
7980 * po/sv.po: Update from translation team.
7981
79822006-10-07 Ulrich Drepper <drepper@redhat.com>
7983
7984 * Versions.def: Add GLIBC_2.6 to libpthread.
7985
7986 * include/shlib-compat.h (SHLIB_COMPAT): Expand parameters before use.
7987 (versioned_symbol): Likewise.
7988 (compat_symbol): Likewise.
7989
7990 * po/tr.po: Update from translation team.
feb87ad1 7991
4df92d57
UD
79922006-10-06 Ulrich Drepper <drepper@redhat.com>
7993
11bf311e
UD
7994 * nis/Banner: Removed. It's been integral part forever and the
7995 author info is incomplete anyway.
7996 * libio/Banner: Likewise.
7997
4df92d57
UD
7998 * nis/nis_table.c (nis_list): If __follow_path fails in the new
7999 code, make sure the nis_freeresult call doesn't crash and that the
8000 result is reported correctly.
8001
68361572
UD
80022006-09-27 Jakub Jelinek <jakub@redhat.com>
8003
8004 * nis/nis_table.c (nis_list): Handle FOLLOW_PATH | ALL_RESULTS
8005 when callback is NULL.
8006
8007 * nis/Versions (libnss_nisplus): Add
8008 _nss_nisplus_initgroups_dyn@@GLIBC_PRIVATE.
8009 * nis/Makefile (libnss_nisplus-routines): Add nisplus-initgroups.
8010 * nis/nss_nisplus/nisplus-grp.c (tablename_val, tablename_len,
8011 _nss_create_tablename): Rename to...
8012 (grp_tablename_val, grp_tablename_len, _nss_grp_create_tablename):
8013 ... these. No longer static.
8014 (internal_setgrent): Adjust users.
8015 (_nss_nisplus_getgrnam_r, _nss_nisplus_getgrgid_r): Likewise.
8016 Don't use locking around _nss_grp_create_tablename call.
8017 * nis/nss_nisplus/nisplus-initgroups.c: New file.
8018
11bf311e
UD
80192006-10-06 Ulrich Drepper <drepper@redhat.com>
8020
8021 * version.h (VERSION): Bump to 2.5.90 for new development tree.
8022
3a4e0609
UD
80232006-10-06 Andreas Jaeger <aj@suse.de>
8024
8025 * include/features.h (__GLIBC_MINOR__): It's glibc 2.5 now.
8026
80272006-10-06 Ulrich Drepper <drepper@redhat.com>
8028
8029 * po/pl.po: Update from translation team.
8030
8031 * nscd/nscd.c (main): Fix typo in message.
8032 Patch by Jakub Bogsz <qboosh@pld-linux.org>.
8033
97e57dee
UD
80342006-10-02 Jakub Jelinek <jakub@redhat.com>
8035
8036 [BZ #3291]
8037 * sysdeps/unix/sysv/linux/sparc/sparc64/pause.c: Include
8038 errno.h, signal.h, unistd.h and sysdep-cancel.h.
8039 (__sigprocmask): Define.
8040
768027a4
UD
80412006-10-02 Ulrich Drepper <drepper@redhat.com>
8042
8043 * elf/rtld.c (dl_main): Don't use prelinking if LD_DYNAMIC_WEAK is
8044 used.
8045
0b25a49a
UD
80462006-10-02 Jakub Jelinek <jakub@redhat.com>
8047
8048 * nscd/mem.c (mempool_alloc): Round array size to 16 bytes
8049 in oldtotal and newtotal calculation.
8050 * nscd/nscd-client.h (struct mapped_database): Add datasize
8051 field.
8052 * nscd/nscd_helper.c (get_mapping): Initialize datasize field.
8053 (__nscd_get_map_ref): Get a new mapping even if mapping's data_size
8054 increased.
8055 (__nscd_cache_search): Add checks to make sure we never reference
8056 data beyond the current mapping.
8057
a1286745
UD
80582006-10-02 Dmitry V. Levin <ldv@altlinux.org>
8059
d4ed7561
UD
8060 * sysdeps/posix/getaddrinfo.c (match_prefix): Make mask and val
8061 variables const to avoid compiler warnings.
8062
a1286745
UD
8063 * io/fts.c (fts_close): Remove redundant checks.
8064 (fts_build): Likewise.
8065 (fts_palloc): Likewise.
8066
8067 * manual/message.texi (Advanced gettext functions,
8068 Using gettextized software): Fix typos.
8069
f01e4069
UD
80702006-09-30 Ulrich Drepper <drepper@redhat.com>
8071
8072 * posix/glob.c (glob_in_dir): Add some comments and asserts to
8073 explain why there are no leaks.
8074
154619b5
UD
80752006-09-29 Ulrich Drepper <drepper@redhat.com>
8076
690c3947
UD
8077 * libio/wmemstream.c: Include <wchar.h>.
8078 * libio/bug-wmemstream1.c: Likewise.
8079 * libio/tst-wmemstream1.c: Likewise.
8080 * libio/tst-wmemstream2.c: Likewise.
8081
88cc61e8
UD
8082 * version.h (RELEASE): Bump to 2.5.
8083 * README: Regenerated.
8084
a70c18b0
UD
8085 * locale/iso-3166.def: Add Aaland Islands and Montenegro.
8086
154619b5
UD
8087 [BZ #3273]
8088 * nscd/nscd_initgroups.c (__nscd_getgrouplist): It is OK to have
8089 found no group members.
8090 Patch by Petr Baudis.
8091
80922006-09-29 Jakub Jelinek <jakub@redhat.com>
8093
8094 * elf/rtld.c (_dl_start_final): If not USE___THREAD, don't
8095 assert bootstrap_map.l_tls_modid is zero.
8096 (_dl_start): Initialize bootstrap_map.l_tls_modid to 0
8097 if USE___THREAD.
8098
1c31aa79
UD
80992006-09-27 Ulrich Drepper <drepper@redhat.com>
8100
8101 * libio/stdio.h: Move open_wmemstream prototype to ...
8102 * wcsmbs/wchar.h: ... here.
8103
f1122ec3
UD
81042006-09-25 Jakub Jelinek <jakub@redhat.com>
8105
8106 [BZ #3252]
8107 * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat): Handle only
8108 fchownat syscall and __ASSUME_LCHOWN_SYSCALL case inline, call
8109 __{,l}chown to handle the rest.
8110 * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Handle only
8111 fchownat syscall and __ASSUME_32BITUIDS case inline, call
8112 __{,l}chown to handle the rest.
8113 * sysdeps/unix/sysv/linux/sparc/sparc32/fchownat.c: Include
8114 i386/fchownat.c.
8115 * sysdeps/unix/sysv/linux/s390/s390-32/fchownat.c: Likewise.
8116 * sysdeps/unix/sysv/linux/sh/fchownat.c: Likewise.
8117
8118 [BZ #3253]
8119 * posix/glob.c (glob_in_dir): Don't alloca one struct globlink at a
8120 time, rather allocate increasingly bigger arrays of pointers, if
8121 possible with alloca, if too large with malloc.
8122
81232006-09-24 Jakub Jelinek <jakub@redhat.com>
8124
8125 * sysdeps/powerpc/fpu/libm-test-ulps: Updated.
8126
8127 * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Fix 2 typos.
8128
457b559e
UD
81292006-09-24 Ulrich Drepper <drepper@redhat.com>
8130
8131 * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Implement rule 4,
8132 home addresses.
8133 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Recognize
8134 IFA_F_HOMEADDRESS flag for interfaces.
8135 * include/ifaddrs.h (struct in6addrinfo): Define
8136 in6ai_homeaddress.
8137
4a132246
UD
81382006-09-21 Jakub Jelinek <jakub@redhat.com>
8139
8140 [BZ #3225]
8141 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (PTR_MANGLE3,
8142 PTR_DEMANGLE3): Define.
8143 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h (PTR_MANGLE3,
8144 PTR_DEMANGLE3): Likewise.
8145 * sysdeps/powerpc/powerpc32/__longjmp-common.S (__longjmp): Use them.
8146 * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp):
8147 Likewise.
8148 * sysdeps/powerpc/powerpc64/__longjmp-common.S (__longjmp): Likewise.
8149
c69136ae
UD
81502006-09-20 Jakub Jelinek <jakub@redhat.com>
8151
8152 * po/libc.pot: Regenerated.
8153 * po/be.po: Updated.
8154 * po/ca.po: Likewise.
8155 * po/cs.po: Likewise.
8156 * po/da.po: Likewise.
8157 * po/de.po: Likewise.
8158 * po/el.po: Likewise.
8159 * po/en_GB.po: Likewise.
8160 * po/es.po: Likewise.
8161 * po/fi.po: Likewise.
8162 * po/fr.po: Likewise.
8163 * po/gl.po: Likewise.
8164 * po/hr.po: Likewise.
8165 * po/hu.po: Likewise.
8166 * po/ja.po: Likewise.
8167 * po/ko.po: Likewise.
8168 * po/nb.po: Likewise.
8169 * po/nl.po: Likewise.
8170 * po/pl.po: Likewise.
8171 * po/pt_BR.po: Likewise.
8172 * po/ru.po: Likewise.
8173 * po/rw.po: Likewise.
8174 * po/sk.po: Likewise.
8175 * po/sv.po: Likewise.
8176 * po/tr.po: Likewise.
8177 * po/zh_CN.po: Likewise.
8178 * po/zh_TW.po: Likewise.
8179
8180 [BZ #3137]
8181 * iconv/iconv_prog.c (main): Fix spelling in error message.
8182 * iconv/iconvconfig.c (main): Likewise.
8183 * locale/programs/ld-collate.c (handle_ellipsis): Likewise.
8184 * locale/programs/ld-ctype.c (charclass_symbolic_ellipsis): Likewise.
8185 * locale/programs/localedef.c (main): Likewise.
8186 * locale/programs/repertoire.c (repertoire_read): Likewise.
8187 * timezone/zdump.c (main): Likewise.
8188 * nscd/connections.c (handle_request): Fix spelling in log message.
8189 Patch by Malcolm Parsons <malcolm.parsons@gmail.com>.
8190
83b3108c
UD
81912006-09-20 Ulrich Drepper <drepper@redhat.com>
8192
8193 * inet/inet6_option.c: Also emit linker warnings for the RFC 2292
8194 interfaces.
8195
89210b4c
AJ
81962006-09-20 Andreas Jaeger <aj@suse.de>
8197
8198 * math/libm-test.inc (lrint_test_upward): Fix typo.
8199
6624dbc0
UD
82002006-06-17 Joseph S. Myers <joseph@codesourcery.com>
8201
8202 [BZ #2592]
8203 * math/libm-test.inc (lrint_test_tonearest): New function.
8204 (lrint_test_towardzero): New function.
8205 (lrint_test_downward): New function.
8206 (lrint_test_upward): New function.
8207 (main): Run these new tests.
8208 * sysdeps/ieee754/dbl-64/s_llrint.c (__llrint): Correct rounding
8209 of values near to 0.
8210 (two52): Use double not long double.
8211 * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Likewise.
8212 * sysdeps/ieee754/flt-32/s_llrintf.c (__llrintf): Likewise.
8213 (two23): Use float not double.
8214 * sysdeps/ieee754/flt-32/s_lrintf.c (__lrintf): Likewise.
8215 (two23): Use float not double.
8216 * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl): Likewise.
8217 * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Likewise.
8218 * sysdeps/ieee754/ldbl-96/s_llrintl.c (__llrintl): Likewise.
8219 * sysdeps/ieee754/ldbl-96/s_lrintl.c (__lrintl): Likewise.
8220
60cb50c7
UD
82212006-09-20 Martin Schwidefsky <schwidefsky@de.ibm.com>
8222
8223 * sysdeps/unix/sysv/linux/s390/s390-32/makecontext.c (__makecontext):
8224 Cast sp to unsigned long to avoid compiler warning.
8225 Use __makecontext_ret function instead of a trampoline on the stack.
8226 (__makecontext_ret): New function.
8227 * sysdeps/unix/sysv/linux/s390/s390-64/makecontext.c: Likewise.
8228
33315ced
UD
82292006-09-19 Jakub Jelinek <jakub@redhat.com>
8230
8231 * elf/dl-cache.c (HWCAP_CHECK): If _DL_PLATFORMS_COUNT, but
8232 platform == -1, reject any libs with non-zero _DL_HWCAP_PLATFORM
8233 bits.
8234
1ee2ff20
UD
82352006-09-19 Ulrich Drepper <drepper@redhat.com>
8236
8237 * elf/dl-close.c (_dl_close): If dependency is not unloaded make
8238 sure no reference to the unloaded map's search list remains in the
8239 dependency's scope.
8240
82412006-09-16 Jakub Jelinek <jakub@redhat.com>
8242
8243 * elf/Makefile: Add rules to build and run unload7 test.
8244 * elf/unload7.c: New test.
8245 * elf/unload7mod1.c: New file.
8246 * elf/unload7mod2.c: New file.
8247
0466106e
UD
82482006-09-18 Jakub Jelinek <jakub@redhat.com>
8249
8250 * sysdeps/unix/sysv/linux/sys/ptrace.h (PT_GETEVENTMSG): Fix pasto.
8251 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h (PTRACE_SETOPTIONS,
8252 PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
8253 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h (PTRACE_SETOPTIONS,
8254 PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Likewise.
8255 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h (PTRACE_SETOPTIONS,
8256 PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Likewise.
8257 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h (PTRACE_SETOPTIONS,
8258 PTRACE_GETEVENTMSG): Likewise.
8259 (PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Change to the arch independent
8260 values.
8261
9c316a45
UD
82622006-09-17 Mike Frysinger <vapier@gentoo.org>
8263
0466106e
UD
8264 * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_SETOPTIONS,
8265 PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
8266 * sysdeps/unix/sysv/linux/ptrace.c (ptrace): Check PTRACE_SETOPTIONS,
8267 PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO and PTRACE_SETSIGINFO.
9c316a45
UD
8268
82692006-09-16 Jakub Jelinek <jakub@redhat.com>
8270
8271 * sysdeps/powerpc/powerpc32/register-dump.h (register_dump): Don't
8272 write '\0' to the fd.
8273 * sysdeps/mach/hurd/powerpc/register-dump.h (register_dump): Likewise.
8274 * sysdeps/powerpc/powerpc64/register-dump.h (register_dump): Likewise.
8275 Change regs to unsigned long pointer from unsigned int, fix fscr
8276 offset.
8277
fb146a76
UD
82782006-09-14 Jakub Jelinek <jakub@redhat.com>
8279
8280 * io/Makefile (CFLAGS-fstatat.c): Set.
8281 (CFLAGS-fstatat64.c): Likewise.
8282 (CFLAGS-mknodat.c): Likewise.
8283
8284 * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Comment fixes.
8285 * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
8286 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Rewritten.
8287 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Rewritten.
8288
4cd3633d
UD
82892006-09-14 Jakub Jelinek <jakub@redhat.com>
8290 Steven Munroe <sjmunroe@us.ibm.com>
fb146a76 8291
4cd3633d
UD
8292 * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add 4 new cap
8293 names to the beginning. Rename "cell" to "cellbe".
8294 (_dl_powerpc_platforms): New.
8295 * sysdeps/powerpc/dl-procinfo.h (_DL_HWCAP_FIRST): Decrease.
8296 (HWCAP_IMPORTANT): Remove power{4,5,5+} and cell.
8297 (_DL_PLATFORMS_COUNT, _DL_FIRST_PLATFORM): Define.
8298 (_DL_HWCAP_PLATFORM): Define to new mask.
8299 (_dl_platform_string, _dl_string_platform): New functions.
8300 * sysdeps/powerpc/sysdep.h (PPC_FEATURE_BOOKE, PPC_FEATURE_SMT,
8301 PPC_FEATURE_ICACHE_SNOOP, PPC_FEATURE_ARCH_2_05): Define.
8302
30aa5785
UD
83032006-09-12 Jakub Jelinek <jakub@redhat.com>
8304
8305 [BZ #2526]
8306 * README.libm: Fix a thinko in sqrt algorithm description.
8307
8308 [BZ #3143]
8309 * manual/string.texi (argz_delete): Fix prototype.
8310 Patch by <alpt@freaknet.org>.
8311
83122006-08-26 Joseph Myers <joseph@codesourcery.com>
8313
8314 [BZ #3138]
8315 * io/test-lfs.c (do_prepare): Give name_len type size_t.
8316 * io/tst-fcntl.c (do_prepare): Likewise.
8317 * posix/tst-exec.c (do_prepare): Likewise.
8318 * posix/tst-preadwrite.c (do_prepare): Likewise.
8319 * posix/tst-spawn.c (do_prepare): Likewise.
8320 * posix/tst-truncate.c (do_prepare): Likewise.
8321 * rt/tst-aio.c (do_prepare): Likewise.
8322 * rt/tst-aio64.c (do_prepare): Likewise.
8323 * stdlib/test-canon2.c (do_prepare): Give test_dir_len type
8324 size_t.
8325
d26d01d1
UD
83262006-09-09 Ulrich Drepper <drepper@redhat.com>
8327
41aba3d7
UD
8328 [BZ #2821]
8329 * time/mktime.c (guess_time_tm): Fix overflow detection.
8330 * time/Makefile (tests): Add bug-mktime1.
8331 * time/bug-mktime1.c: New file.
8332
eaa51b47 8333 [BZ #3189, #3188]
d26d01d1 8334 * misc/sys/mman.h (remap_file_pages): Make available for _GNU_SOURCE.
eaa51b47 8335 (mremap): Likewise.
d26d01d1 8336
ba40cc15
UD
83372006-09-07 Jakub Jelinek <jakub@redhat.com>
8338
2b6a801e
UD
8339 [BZ #1006]
8340 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela):
8341 Ensure relocation doesn't clobber any bits outside of the
8342 immediate field for R_SPARC_TLS_LE_HIX22, R_SPARC_WDISP30,
8343 R_SPARC_HI22 and R_SPARC_H44.
8344
469615bd
UD
8345 [BZ #2775]
8346 * malloc/malloc.c (sYSMALLOc): Only call grow_heap if
8347 (long) (MINSIZE + nb - old_size) is positive.
8348
8349 * malloc/arena.c (grow_heap): When growing bail even if new_size
8350 is negative.
8351
ba40cc15
UD
8352 [BZ #3155]
8353 * sysdeps/powerpc/powerpc32/fpu/s_lrint.S (__lrint): Don't access
8354 stack below r1.
8355
243b9ac1
UD
83562006-09-06 Jakub Jelinek <jakub@redhat.com>
8357
ba40cc15
UD
8358 * posix/regex_internal.c (re_string_reconstruct): Handle
8359 offset < pstr->valid_raw_len && pstr->offsets_needed case.
8360 Ensure no bytes read before raw_mbs array. Pass a saved copy of
8361 pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
8362 re_string_context_at.
8363 * posix/Makefile: Add rules to build and run bug-regex26 test.
8364 * posix/bug-regex26.c: New test.
8365
243b9ac1
UD
8366 * locale/programs/ld-collate.c (collate_read): Goto sym_equiv_free
8367 rather than col_sym_free. Move seqp declaration earlier.
8368
8369 * resolv/gai_suspend.c (gai_suspend): Make sure result is initialized.
8370
d052233c
UD
83712006-09-05 Jakub Jelinek <jakub@redhat.com>
8372
8373 * nscd/initgrcache.c (addinitgroupsX): Move any_success
8374 decl before first goto out.
8375
71213dc2
UD
83762006-09-04 Jakub Jelinek <jakub@redhat.com>
8377
8378 * Makerules (shlib.lds): If have-hash-style, put .hash section
8379 at the end of the RO segment.
8380
83812006-09-04 Ulrich Drepper <drepper@redhat.com>
8382
8383 * elf/do-lookup.h (do_lookup_x): Initialize symidx in case the new
8384 style hash table format is used.
8385
03eeff83
UD
83862006-09-04 Jakub Jelinek <jakub@redhat.com>
8387
8388 * resolv/res_mkquery.c (res_nmkquery): Set hp->id to statp->id after
8389 randomization rather than before.
8390 * resolv/res_init.c (res_randomid): Don't call gettimeofday here.
8391
b80770b2
UD
83922006-08-31 Jakub Jelinek <jakub@redhat.com>
8393
ba40cc15 8394 * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Add ld.so.
b80770b2
UD
8395
8396 * malloc/malloc.c (_int_malloc): Use full list insert and not
8397 shortcut which assumes the list is empty for large requests
8398 too.
8399
8400 * elf/tst-addr1.c (do_test): Allow i.dli_sname "_IO_printf".
8401
99ea5991
UD
84022006-08-30 Jakub Jelinek <jakub@redhat.com>
8403
8404 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (splice): Add offin
8405 and offout arguments to the prototype.
8406 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (splice): Likewise.
8407 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h (splice): Likewise.
8408 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (splice): Likewise.
8409 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h (splice): Likewise.
8410 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h (splice): Likewise.
8411 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (splice): Likewise.
8412 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h (splice): Likewise.
8413 * sysdeps/unix/sysv/linux/syscalls.list (splice): Adjust args string.
8414
4004a0a5
UD
84152006-08-28 Ulrich Drepper <drepper@redhat.com>
8416
950398e1
UD
8417 * elf/dl-load.c (_dl_init_paths): Expand DSTs.
8418
4004a0a5
UD
8419 * elf/dl-open.c (dl_open_worker): Allow $LIB and $PLATFORM in
8420 dlopen parameters.
8421
6e310111
UD
84222006-08-28 Jakub Jelinek <jakub@redhat.com>
8423
8424 * inet/getnameinfo.c (getnameinfo): For AF_INET, check errno
8425 only if herrno is NETDB_INTERNAL. Handle errors other than
8426 ERANGE outside of the loops, handle TRY_AGAIN.
8427
8428 * locale/programs/ld-ctype.c (translit_flatten): Issue error
8429 if other's ctype category was missing.
8430 * locale/programs/ld-collate.c (collate_read): Return if
8431 copy_locale's collate category is missing.
8432
07014fca
UD
84332006-08-27 Ulrich Drepper <drepper@redhat.com>
8434
8435 [BZ #2684]
8436 * malloc/malloc.c (public_rEALLOc): Try harder by using other
8437 arenas if allocation failed.
8438 Patch mostly by Jan Edler <jan.edler@indexengines.com>.
8439
71663747
UD
84402006-08-26 Ulrich Drepper <drepper@redhat.com>
8441
41999a1a
UD
8442 * malloc/malloc.c (bin_at): Rewrite to be more clear and to not
8443 waste bins[0..1].
8444 (malloc_state): Reduce bins size by 2.
8445 (_int_malloc): Fix test for large enough buffer for early termination.
8446 When no unsorted block matches perfectly and an exiting block has
8447 to be split, use full list insert and not shortcut which assumes
8448 the list is empty.
8449
71663747
UD
8450 * locale/programs/ld-ctype.c (ctype_read): Better patch for read
8451 failure.
8452
93b53ca2
UD
84532006-08-24 Ulrich Drepper <drepper@redhat.com>
8454
f5a82772
UD
8455 * locale/programs/ld-ctype.c (ctype_read): If CTYPE is NULL, don't
8456 do anything.
8457
2ac9ca73
UD
8458 * sysdeps/generic/ldsodefs.h (DL_ADDR_SYM_MATCH): For undefined
8459 symbol require exact match (these are PLTs).
8460 * sysdeps/unix/sysv/linux/powerpc/powerpc64/ldsodefs.h
8461 (_dl_ppc64_addr_sym_match): Likewise.
8462
93b53ca2
UD
8463 [BZ #2683]
8464 * elf/dl-addr.c (_dl_addr): Don't ignore all undefined symbols.
8465 If symbol has a value use it.
8466 * elf/tst-dladdr1.c: New file.
8467 * elf/Makefile: Add rules to build and run tst-addr1.
8468
7463d5cb
UD
84692006-08-24 Jakub Jelinek <jakub@redhat.com>
8470
8471 * malloc/malloc.c (sYSMALLOc): Avoid infinite loop if MMAP
8472 keeps failing and heap growth or new heap creation isn't
8473 successful either.
8474 * malloc/tst-malloc.c (main): Add new tests.
8475
542a6f62
UD
84762006-08-24 Ulrich Drepper <drepper@redhat.com>
8477
8478 [BZ #2734]
8479 * sysdeps/i386/bits/byteswap.h (__bswap_32): Use same conditions
8480 as in the x86-64 code to use bswap.
8481
aa2c6b6d
UD
84822006-05-21 Joseph S. Myers <joseph@codesourcery.com>
8483
24982798 8484 [BZ #2680]
aa2c6b6d
UD
8485 * posix/unistd.h (getlogin_r): Condition on __USE_POSIX199506, not
8486 __USE_UNIX98.
8487 * posix/bits/unistd.h: Likewise.
8488
59776aef
UD
84892006-05-15 Mike Frysinger <vapier@gentoo.org>
8490
8491 [BZ #2751]
8492 * string/strchr.c: Add cast to avoid warning.
8493
e404fb16
UD
84942006-08-21 Ulrich Drepper <drepper@redhat.com>
8495
8496 * malloc/malloc.c (DEFAULT_MMAP_THRESHOLD_MAX): For 32-bit
bd2c2341 8497 platforms define as 512K. For 64-bit platforms as 32MB. The lower
e404fb16
UD
8498 limit is needed to avoid the exploding of the address space
8499 requirement for secondary heaps.
8500 * malloc/arena.c (HEAP_MAX_SIZE): Define using
8501 DEFAULT_MMAP_THRESHOLD_MAX if it is defined.
8502
376e973a
UD
85032006-07-30 Joseph S. Myers <joseph@codesourcery.com>
8504
8505 [BZ #3018]
8506 * Makerules (depfiles): Handle extra-test-objs the same as
8507 extra-objs.
8508 (common-mostlyclean): Likewise.
8509 * dlfcn/Makefile (extra-objs): Add modules to extra-test-objs
8510 instead.
8511 * elf/Makefile (extra-objs): Likewise.
8512 * stdlib/Makefile (extra-objs): Likewise.
8513
240c62a7
UD
85142006-08-14 Eric Blake <ebb9@byu.net>
8515
8516 [BZ #3044]
8517 * misc/error.h: Assume C89 or better.
8518 * misc/error.c: Likewise.
8519
3997b7c4
UD
85202006-08-21 Ulrich Drepper <drepper@redhat.com>
8521
8522 [BZ #3040]
8523 * sysdeps/unix/sysv/linux/openat.c: Fix compilation if
8524 __ASSUME_ATFCTS is defined.
8525
8a6537b0
UD
85262006-08-19 Ulrich Drepper <drepper@redhat.com>
8527
72320021
UD
8528 * malloc/malloc.c (_int_malloc): Limit number of unsorted blocks
8529 to sort in each call.
8530
ed3691ba
UD
8531 * nis/nss_nis/nis-service.c (internal_nis_getservent_r): . If map
8532 is empty simply return and use next service.
8533 * nis/nss_nis/nis-rpc.c (internal_nis_getrpcent_r): Likewise.
8534
8a6537b0
UD
8535 * locale/programs/charmap.c (charmap_read): Add new parameter. It
8536 tells us when not finding a charmap file is an error.
8537 * locale/programs/charmap.h: Adjust charmap_read prototype.
8538 * iconv/iconv_prog.c (main): Tell charmap_read it's no error if we
8539 cannot find a charmap.
8540 * locale/programs/localedef.c (main): Adjust charmap_read call.
8541
ad2a3c07
UD
85422006-08-15 Jakub Jelinek <jakub@redhat.com>
8543
8544 * sysdeps/unix/sysv/linux/sparc/sparc64/pause.c: Use
8545 sysdeps/posix/pause.c implementation instead.
8546
85472006-08-09 Jakub Jelinek <jakub@redhat.com>
8548
8549 * sysdeps/unix/nice.c (nice): Transform EACCES errno from setpriority
8550 to EPERM.
8551
f17efcb4
UD
85522006-08-13 Andreas Schwab <schwab@suse.de>
8553
8554 * sysdeps/powerpc/powerpc32/dl-trampoline.S (_dl_runtime_resolve):
8555 Don't clobber caller's LRSAVE.
8556 (_dl_prof_resolve): Likewise.
8557
107b8a92
UD
85582006-08-14 Ulrich Drepper <drepper@redhat.com>
8559
8560 [BZ #1996]
8561 * libio/memstream.c (open_memstream): Allocate initial buffer with
8562 calloc.
8563 * libio/wmemstream.c (open_wmemstream): Likewise.
8564 * libio/strops.c: Pretty printing.
8565 (_IO_str_overflow): Clear uninitialized part of the new buffer.
8566 (enlarge_userbuf): New function.
8567 (_IO_str_seekoff): Call it if seek position is larger than current
8568 buffer.
8569 * libio/wstrops.c: Likewise.
8570 * libio/vasprintf.c: Add comment as to why we do not have to use
8571 calloc instead of malloc to allocate initial buffer.
8572 * libio/Makefile (tests): Add bug-memstream1 and bug-wmemstream1.
8573 * libio/bug-memstream1.c: New file.
8574 * libio/bug-wmemstream1.c: New file.
8575
fa3ac53f
UD
85762006-08-13 Ulrich Drepper <drepper@redhat.com>
8577
89993734
UD
8578 * libio/wstrops.c: Remove dead macro definitions and comments.
8579 * libio/strops.c: Likewise.
8580
fa3ac53f
UD
8581 [BZ #2764]
8582 * login/utmpname.c (__utmpname): Remove unnecessary test.
8583
f99ed760
UD
85842006-06-08 Joseph Myers <jsm28@gcc.gnu.org>
8585
8586 [BZ #2832]
8587 * math/gen-libm-test.pl (clean_up_number): Do not remove trailing
8588 0s from integers.
8589
85902006-08-13 Ulrich Drepper <drepper@redhat.com>
8591
8592 [BZ #2987]
8593 * sysdeps/unix/sysv/linux/clock_settime.c: Add code to use syscall
8594 for CPU clocks.
8595 * sysdeps/unix/clock_settime.c: Add support for platform-specific
8596 setting of CPU clocks.
8597
4c3f81d0
UD
85982006-06-23 Paul Eggert <eggert@cs.ucla.edu>
8599
8600 [BZ #2841]
8601 * sysdeps/generic/stdint.h (UINT8_C, UINT16_C): Don't append 'U',
8602 since C99 requires the result to promote to 'int' when uint_least8_t
8603 and uint_least16_t promote to 'int'.
8604
cd8e60ce
UD
86052006-08-12 Ulrich Drepper <drepper@redhat.com>
8606
9a5c46e8
UD
8607 [BZ #3013]
8608 * locale/programs/ld-ctype.c (ctype_output): Adjust alignments, fix
8609 lenght of one output field, correct bitmask creation.
8610 * locale/programs/ld-time.c: Add alignment.
8611
cd8e60ce
UD
8612 [BZ #2997]
8613 * misc/error.c: Add space between program name and message if file
8614 name is missing.
8615
9a528884
UD
86162006-08-03 Eric Blake <ebb9@byu.net>
8617
8618 [BZ #2998]
8619 * misc/error.c (error_tail) [_LIBC]: Avoid invalid free.
8620
1d05c2fb
UD
86212006-08-09 Ulrich Drepper <drepper@redhat.com>
8622
0c1c6c6c
UD
8623 * malloc/memusagestat.c: Silence warnings.
8624
1d05c2fb
UD
8625 * malloc/malloc.c: Dynamically size mmap treshold if the program
8626 frees mmaped blocks.
8627 Patch by Valerie Henson and Arjan van de Ven.
8628
2d1e6277
UD
86292006-08-08 Jakub Jelinek <jakub@redhat.com>
8630
be7ffd91
UD
8631 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (O_DIRECT): Protect with
8632 __USE_GNU.
8633
2d1e6277
UD
8634 * stdlib/strtol_l.c (__strtol_ul_max_tab, __strtol_ul_rem_tab,
8635 __strtol_ull_max_tab, __strtol_ull_rem_tab): Declare.
8636 (DEF): Don't put the var into .gnu.linkonce.r.* section.
8637 Only provide var definitions in strtol_l (or for *ull*
8638 in strtoll_l).
8639
8640 * stdio-common/bug16.c (tests): New array.
8641 (do_tests): Allow the first hexadecimal digit
8642 to be 1, 2, 4 or 8. Do 3 additional tests.
8643
8644 * sysdeps/s390/fpu/libm-test-ulps: Update.
8645
8646 * sysdeps/unix/sysv/linux/s390/s390-32/fchownat.c (fchownat): Use
8647 fchownat syscall if available.
8648 * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat): Likewise.
8649 * sysdeps/unix/sysv/linux/sh/fchownat.c (fchownat): Likewise.
8650 * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Likewise.
8651
d0ccde25
UD
86522006-08-07 Ulrich Drepper <drepper@redhat.com>
8653
8654 * nis/nis_xdr.c: Avoid some function calls.
8655
13a0293d 86562006-08-07 Jakub Jelinek <jakub@redhat.com>
3f7a21a9 8657 Ulrich Drepper <drepper@redhat.com>
13a0293d
UD
8658
8659 * nis/nis_call.c (rec_dirsearch) [case LOWER_NAME]: Don't take
8660 short cut if only one name component is stripped away.
8661
bd1ebae0
UD
86622006-08-07 Ulrich Drepper <drepper@redhat.com>
8663
8664 * nis/nis_call.c: Minor cleanups throughout.
2d1e6277 8665 (rec_dirsearch) [case HIGHER_NAME]: Correctly size ndomain array.
bd1ebae0
UD
8666 (first_shoot): Add search_parent_first parameter. Only if it is set
8667 search parent server first.
8668 If directory for table found through cold start cache is not the same
8669 as referenced in the cache, don't use it.
8670 (__nisfind_server): Take additional parameter. Pass it on to
8671 first_shoot.
8672 (__prepare_niscall): Adjust __nisfind_server call.
8673 * nis/rpcsvc/nislib.h: Adjust __nisfind_server prototype.
8674 * nis/nis_table.c: Adjust __nisfind_server call.
8675 * nis/nis_lookup.c: Likewise.
8676 (nis_lookup): Don't loop endlessly if name is reduced to ".".
8677
f1762c0c
UD
86782006-08-03 Ulrich Drepper <drepper@redhat.com>
8679
fe710250
UD
8680 [BZ #2182]
8681 * math/s_cacosh.c: Return values from positive branch.
8682 * math/s_cacoshf.c: Likewise.
8683 * math/s_cacoshl.c: Likewise.
8684
a5852807
UD
8685 [BZ #2883]
8686 * sysvipc/sys/msg.h: Change return value to ssize_t.
8687 * sysdeps/unix/sysv/linux/msgrcv.c: Likewise.
fe710250
UD
8688 * sysvipc/msgrcv.c: Likewise.
8689 * include/sys/msg.h: Likewise.
39571a13 8690
6c215a8d
UD
8691 * grp/initgroups.c (internal_getgrouplist): Remove unnecessary
8692 test introduced in patch for bz #661.
39571a13 8693 (getgrouplist): Simplify code a bit. Don't allocate one additional
f13bfdd0 8694 element for NEWGROUPS.
6c215a8d 8695
9c06eb66
UD
8696 [BZ #2908]
8697 * stdio-common/printf_fphex.c (__printf_fphex): When rounding up
8698 'f', use '1' as leading digit not '\1'.
8699 * stdio-common/Makefile (tests): Add bug16.
8700 * stdio-common/bug16.c: New file.
8701
8702 [BZ #2914]
8703 * sysdeps/unix/sysv/linux/gethostid.c: Don't define OLD_HOSTIDFILE
8704 and don't try to open it. The patch introducing the macro
8705 contained a bug and used the same file name as the new file
8706 instead of using /var/adm/hostid. Nobody complaint so I'm taking
8707 this out completely.
8708
8709 [BZ #2926]
8710 * assert/assert.h: Move cast to void inside ?: to quiet gcc.
8711 Patch by Jerry James <Jerry.James@usu.edu>.
8712
f1762c0c
UD
8713 * rt/Makefile (tests): Add tst-clock2.
8714 * rt/tst-clock2.c: New file.
8715
8716 [BZ #2978]
8717 * resolv/gai_notify.c (__gai_notify_only): Copy memory for thread
8718 function and its parameters and pass it to new thread.
8719 (__gai_notify): Add support for alternative waiting for completion.
8720 * resolv/gai_suspend.c (gai_suspend): Add support for alternative
8721 waiting for completion.
8722 * resolv/getaddrinfo_a.c: Likewise.
8723 * resolv/gai_misc.h (struct waitlist): Don't add cond if alternative
8724 waiting for completion is used.
8725 * resolv/gai_misc.c: Allow overwriting code to start helper thread.
8726 * resolv/gai_cancel.c: Include <gai_misc.h> not "gai_misc.h".
8727 * resolv/gai_error.c: Likewise.
8728 * resolv/gai_sigqueue.c: Likewise.
8729
83ae6b40
RM
87302006-08-02 Thomas Schwinge <tschwinge@gnu.org>
8731
0e4e62fe 8732 * hurd/getdport.c (__getdport): Don't return EBADF; instead set
f1762c0c 8733 errno to EBADF and return MACH_PORT_NULL.
83ae6b40 8734
82ee37c5
UD
87352006-06-23 Joseph Myers <joseph@codesourcery.com>
8736
8737 [BZ #2980]
f1762c0c 8738 * posix/Makefile (CFLAGS-waitid.c): Add -fasynchronous-unwind-tables.
82ee37c5
UD
8739
87402006-08-02 Ulrich Drepper <drepper@redhat.com>
8741
8742 * elf/dl-addr.c (_dl_addr): If GNU-style hash tables are present,
8743 walk them instead of the symbol table.
8744
7bb1b2c9
UD
87452006-08-01 Ulrich Drepper <drepper@redhat.com>
8746
f13bfdd0 8747 [BZ #2098]
fbbc73b3
UD
8748 * nscd/initgrcache.c (addinitgroupsX): Judge successful lookups by
8749 status of NSS calls, not the number of returned entries.
8750
a4518922
UD
8751 * sysdeps/unix/sysv/linux/syscalls.list: Remove add_key,
8752 request_key, keyctl.
7bb1b2c9 8753
b06e7e9a
UD
87542006-07-31 Ulrich Drepper <drepper@redhat.com>
8755
8756 * sysdeps/unix/sysv/linux/dl-osinfo.h: Remove unnecessary include.
8757
f1227969
UD
87582006-07-16 Jeff Bailey <jbailey@ubuntu.com>
8759
8760 * elf/tst-auditmod1.c: Fix typo in #error.
8761
82ae2712
UD
87622006-07-31 Ulrich Drepper <drepper@redhat.com>
8763
f1227969
UD
8764 * elf/tst-auditmod1.c: Remove code for unsupported architectures.
8765
82ae2712
UD
8766 * iconvdata/run-iconv-test.sh: Run cmp in C locale.
8767
a1260d92
UD
87682006-07-20 Adam Nemet <anemet@caviumnetworks.com>
8769
8770 * stdlib/test-canon.c (do_test): Close fd before unlinking file so
b06e7e9a 8771 that the directory is empty even on non-POSIX filesystems.
a1260d92 8772
d2de41fe
UD
87732006-07-31 Ulrich Drepper <drepper@redhat.com>
8774
13669f2c
UD
8775 * elf/dl-open.c (dl_open_worker): Add branch prediction.
8776
d2de41fe
UD
8777 * nis/nss_compat/compat-grp.c: Avoid unnecessary setgrent calls into
8778 the backend NSS module. If backend setgrent call failed, don't have
8779 internal_setgrent fail. Just remember this until it is needed.
8780 * nis/nss_compat/compat-pwd.c: Likewise.
8781 * nis/nss_compat/compat-spwd.c: Likewise.
8782
b894c2ea
RM
87832006-07-30 Roland McGrath <roland@redhat.com>
8784
8785 * sysdeps/unix/sysv/linux/ia64/sigsuspend.c: File removed.
8786 * sysdeps/unix/sysv/linux/x86_64/sigsuspend.c: File removed.
8787 * sysdeps/unix/sysv/linux/s390/s390-64/sigsuspend.c: File removed.
8788 * sysdeps/unix/sysv/linux/sparc/sparc64/sigsuspend.c: File removed.
8789
8790 * sysdeps/unix/sysv/linux/not-cancel.h (pause_not_cancel): New macro.
8791 (nanosleep_not_cancel): New macro.
8792 (sigsuspend_not_cancel): new macro.
8793 * sysdeps/unix/sysv/linux/sigsuspend.c [__ASSUME_REALTIME_SIGNALS]
8794 (do_sigsuspend): Define as inline.
8795 (__sigsuspend): Always use do_sigsuspend.
8796 [! NO_CANCELLATION] (__sigsuspend_nocancel): New function.
8797 * include/signal.h: Declare __sigsuspend_nocancel.
8798 * sysdeps/posix/pause.c
8799 [! NO_CANCELLATION] (__pause_nocancel): New function.
8800
8801 * include/unistd.h (__pause_nocancel): Add attribute_hidden.
8802 * include/time.h (__nanosleep_nocancel): Likewise.
8803
c10d32c8
UD
88042006-07-30 Ulrich Drepper <drepper@redhat.com>
8805
8806 * locale/programs/localedef.c (add_to_readlist): Rename local
8807 variables to avoid confusion.
8808
8809 * locale/programs/charmap.c (charmap_read): Emit error message if
8810 charmap couldn't be found or read.
8811
6822f056
UD
88122006-07-28 Ulrich Drepper <drepper@redhat.com>
8813
d5ba53f9
UD
8814 * sysdeps/unix/sysv/linux/kernel-features.h: Define
8815 __ASSUME_FUTEX_LOCK_PI.
8816 * include/time.h: Declare __nanosleep_nocancel.
8817 * include/unistd.h: Declare __pause_nocancel.
8818
6822f056
UD
8819 * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Use this instead of
8820 LDFLAGS. Add -lgcc_eh and libc_nonshared (again) to make sure we
8821 get the __stack_chk_fail_local definition when it's needed.
8822
3a975ff5
UD
88232006-07-26 Ulrich Drepper <drepper@redhat.com>
8824
6de1f625
UD
8825 * dlfcn/Makefile: Add rules to build and run bug-atexit3.
8826 * dlfcn/bug-atexit3.c: New file.
8827 * dlfcn/bug-atexit3-lib.cc: New file.
8828
3a975ff5
UD
8829 * dlfcn/dlmopen.c (dlmopen_doit): Don't allow RTLD_GLOBAL to be
8830 used when the namespace is not the base namespace.
8831
a92b1166
UD
88322006-07-26 Gavin Romig-Koch <gavin@redhat.com>
8833
8834 * stdlib/cxa_atexit.c (__new_exitfn_called): New variable.
8835 (__new_exitfn): Bump it in every successful call.
8836 * stdlib/cxa_finalize.c (__cxa_finalize): If destructor registered
8837 more exit handlers, call them right away.
8838 * stdlib/exit.h: Declare __new_exitfn_called.
8839
a08336fb
UD
88402006-07-25 Ulrich Drepper <drepper@redhat.com>
8841
bd3754dc
UD
8842 * stdlib/cxa_finalize.c (__cxa_finalize): Fix race condition when
8843 calling registered handler.
8844
a08336fb
UD
8845 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Fix comment.
8846 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
8847 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
8848 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
8849 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
8850 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
8851 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
8852 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
8853
871b9158
UD
88542006-07-10 Ulrich Drepper <drepper@redhat.com>
8855
8856 * elf/dl-lookup.c (dl_new_hash): New functions.
8857 (_dl_lookup_symbol_x): Rename hash to old_hash and don't compute
8858 value here. Compute new-style hash value. Pass new hash value
8859 and reference to variable with the old value to do_lookup_x.
8860 (_dl_setup_hash): If DT_GNU_HASH is defined, use it and not
8861 old-style hash table.
8862 (_dl_debug_bindings): Pass new hash value and reference to variable
8863 with the old value to do_lookup_x.
8864 * elf/do-lookup.h (do_lookup_x): Accept additional parameter with
8865 new-style hash value and change old-style hash value parameter to
8866 be a reference. Reoganize functions to determine whether
8867 new-style hash table is available. Only fall back on old-style
8868 table. If old-style hash value is needed, compute it here.
8869 * elf/dynamic-link.h (elf_get_dynamic_info): Relocate DT_GNU_HASH
8870 entry.
8871 * elf/elf.h: Define SHT_GNU_HASH, DT_GNU_HASH, DT_TLSDEC_PLT,
8872 DT_TLSDEC_GOT. Adjust DT_ADDRNUM.
8873 * include/link.h (struct link_map): Add l_gnu_bitmask_idxbits,
8874 l_gnu_shift, l_gnu_bitmask, l_gnu_buckets and l_gnu_chain_zero.
8875 * Makeconfig: If linker supports --hash-style option add it to all
8876 linker command lines to build DSOs.
8877 * config.make.in: Define have-hash-style.
8878 * configure.in: Test whether linker supports --hash-style option.
8879
8880 * elf/dl-misc.c (_dl_name_match_p): Make MAP parameter const.
8881 * sysdeps/generic/ldsodefs.h: Adjust prototype.
8882
a1f0de82
UD
88832006-06-27 Ulrich Drepper <drepper@redhat.com>
8884
361a3706
UD
8885 * elf/dl-load.c (open_path): Fix test to determine whether DSO is
8886 auditing.
8887
a1f0de82
UD
8888 * elf/dl-load.c (_dl_map_object): Try harder to avoid looking at
8889 RPATH of main map twice.
8890
4259230f
UD
88912006-06-22 Ulrich Drepper <drepper@redhat.com>
8892
8893 * intl/dcigettext.c (DCIGETTEXT): If _nl_find_msg returns -1 don't
8894 look further, return original strings.
8895 (_nl_find_msg): Do not return found translation if the conversion
8896 failed. Either signal the string is unusable or that something went
8897 wrong and the original should be used.
8898
88992006-06-21 Ulrich Drepper <drepper@redhat.com>
8900
8901 * string/_strerror.c (__strerror_r): Add __builtin_expect.
8902
f9b7a98b
UD
89032006-06-14 Jakub Jelinek <jakub@redhat.com>
8904
8905 [BZ #2766]
8906 * misc/insremque.c (insque): Handle prev == NULL.
8907 * misc/Makefile (tests): Add tst-insremque.
8908 * misc/tst-insremque.c: New test.
8909
ac55a25b
UD
89102006-06-17 Ulrich Drepper <drepper@redhat.com>
8911
8912 [BZ #2792]
8913 * elf/dl-deps.c (expand_dst): Rename __cnt variable to not
8914 conflict with DL_DST_REQUIRED.
8915
02f366b3
UD
89162006-06-16 Ulrich Drepper <drepper@redhat.com>
8917
8918 * nis/nis_subr.c (nis_getnames): Fix the implementation to better
8919 match what Solaris does.
8920
9009e8f8
UD
89212006-06-04 Ulrich Drepper <drepper@redhat.com>
8922
1b8373f4
UD
8923 * sysdeps/posix/spawni.c (__spawni): Use local_seteuid and
8924 local_setegid instead of seteuid and setegid.
8925 * sysdeps/generic/local-setxid.h: New file.
8926 * sysdeps/unix/sysv/linux/local-setxid.h: New file.
8927
7231452e
UD
8928 * sysdeps/posix/spawni.c (__spawni): Use non-cancelable interfaces.
8929
9009e8f8 8930 * string/Makefile (tests): Add bug-envz1.
02f366b3 8931 * string/bug-envz1.c: New file.
9009e8f8 8932
33e63e79
UD
89332006-06-02 Jakub Jelinek <jakub@redhat.com>
8934
8935 * posix/regex_internal.c (re_string_skip_chars): If no character has
8936 been converted at all, set *last_wc to WEOF. If mbrtowc failed, set wc
8937 to the byte which couldn't be converted.
8938 (re_string_reconstruct): Don't clear valid_raw_len before calling
8939 re_string_skip_chars. If wc is WEOF after re_string_skip_chars, set
8940 tip_context using re_string_context_at.
8941 * posix/Makefile: Add rules to build and run bug-regex25 test.
8942 * posix/bug-regex25.c: New test.
8943
fdc02996
UD
89442006-06-02 Ryan S. Arnold <rsa@us.ibm.com>
8945
8946 [BZ #2703]
8947 * string/envz.c (envz_strip): Correct erroneously reversed src
8948 and dest parameters to memmove() invocation.
8949
902c4291
UD
89502006-05-30 Jakub Jelinek <jakub@redhat.com>
8951
8952 * nscd/nscd.h (prune_cache): Add fd argument to prototype.
8953 * nscd/nscd.c (parse_opt): Read response from INVALIDATE request
8954 to make sure the database has been already invalidated.
8955 * nscd/cache.c (prune_cache): Add fd argument. Write response to fd
8956 after the cache has been invalidated. Use pthread_mutex_lock rather
8957 than pthread_mutex_trylock if fd != -1.
8958 * nscd/connections.c (invalidate_cache): Add fd argument, write
8959 response to fd if not calling prune_cache, pass fd to prune_cache.
8960 (handle_request): Adjust invalidate_cache caller.
8961 (nscd_run): Pass -1 as fd to prune_cache.
8962
ecc68568
UD
89632006-05-30 Ulrich Drepper <drepper@redhat.com>
8964
8965 * sysdeps/posix/getaddrinfo.c (gaiconf_init): Initialize bits in
8966 the correct place.
8967
9636a217
UD
89682006-05-29 Ulrich Drepper <drepper@redhat.com>
8969
8970 * nscd/nscd.h (struct database_dyn): Add prunelock field.
8971 * nscd/cache.c (prune_cache): Take prunelock before starting the
8972 work. Just return in case it is already taken.
cabfcde1 8973 * nscd/connections.c (dbs): Initialize .prunelock.
9636a217 8974
6bcb494a
UD
89752006-05-25 Ulrich Drepper <drepper@redhat.com>
8976
672d5a63 8977 * nis/nis_removemember.c (nis_removemember): Avoid unnecessary
ecc68568 8978 copying. No need to allocate new array for group members. Just
672d5a63
UD
8979 move the pointers and update the size.
8980
1663b44f
UD
8981 * nis/nis_addmember.c (nis_addmember): Avoid unnecessary copying.
8982 Avoid memory leak in case realloc fails. Simplification for
8983 better code generation.
8984
8985 Avoid deprecation warning because of libc_hidden_proto for
8986 inet6_option_alloc.
8987 * inet/inet6_option.c (option_alloc): Renamed from
8988 inet6_option_alloc. Made static.
9636a217 8989 (inet6_option_alloc): Now a simple wrapper around option_alloc.
1663b44f
UD
8990 (inet6_option_append): Call option_alloc.
8991 * include/netinet/in.h: Remove libc_hidden_proto for
8992 inet6_option_alloc.
8993
6bcb494a
UD
8994 * nis/nis_callback.c (__nis_create_callback): Always call xdr_free
8995 for cleanup when cb!=NULL [Coverity CID 233].
8996
aec6b246
UD
89972006-05-24 Ulrich Drepper <drepper@redhat.com>
8998
07bfff20
UD
8999 [BZ #2693]
9000 * inet/Makefile (routines): Add inet6_opt and inet6_rth.
9001 * inet/Versions (libc, GLIBC_2.5): Add inet6_opt_init,
9002 inet6_opt_append, inet6_opt_finish, inet6_opt_set_val, inet6_opt_next,
9003 inet6_opt_find, inet6_opt_get_val, inet6_rth_space, inet6_rth_init,
9004 inet6_rth_add, inet6_rth_reverse, inet6_rth_segments,
9005 and inet6_rth_getaddr.
9006 * inet/netinet/ip6.h (struct ip6_rthdr0): Make ip6r0_addr a flexible
9007 array.
9008 * inet/netinet/in.h (struct ip6_mtuinfo): Define.
9009 Mark inet6_option_* interfaces as deprecated.
9010 Declare inet6_opt_init, inet6_opt_append, inet6_opt_finish,
9011 inet6_opt_set_val, inet6_opt_next, inet6_opt_find, inet6_opt_get_val,
9012 inet6_rth_space, inet6_rth_init, inet6_rth_add, inet6_rth_reverse,
9013 inet6_rth_segments, and inet6_rth_getaddr.
9014 * inet/inet6_opt.c: New file.
9015 * inet/inet6_rth.c: New file.
9016
9017 * inet/netinet/icmp6.h: Pretty printing.
9018
aec6b246
UD
9019 [BZ #2683]
9020 * elf/dl-addr.c (_dl_addr): Don't match undefined references.
9021
2d571cd1
UD
90222006-05-23 Ulrich Drepper <drepper@redhat.com>
9023
062e719b
UD
9024 * nis/nis_lookup.c (nis_lookup): Use __prepare_niscall instead of
9025 doing it all here. When server does not know the answer do not
9026 fail immediate, try parent first.
9027
2d571cd1
UD
9028 * nis/nis_domain_of_r.c (nis_domain_of_r): Add missing buffer
9029 overflow test.
9030
a17fa610
UD
90312006-05-20 Ulrich Drepper <drepper@redhat.com>
9032
9033 * nis/nis_call.c (__prepare_niscall): New function. Split out
9034 from __do_niscall.
9035 * nis/nis_table.c (__create_ib_request): Renamed from create_ib_request
9036 and exported.
9037 (__follow_path): New function. Split out from nis_list.
9038 * nis/nis_xdr.h: Add libnsl_hidden_proto for _xdr_ib_request and
9039 _xdr_nis_result.
9040 * nis/nis_xdr.c: Add libnsl_hidden_def for _xdr_ib_request and
9041 _xdr_nis_result.
9042 * nis/libnsl.h: Declare __prepare_niscall, __create_ib_request,
9043 and __follow_path.
9044 * nis/Versions: Export __prepare_niscall, __create_ib_request,
9045 __follow_path, __do_niscall3, _xdr_ib_request, and _xdr_nis_result
9046 from libnsl for version GLIBC_PRIVATE.
9047 * nis/nisplus-parser.h: Remove _nss_nisplus_parse_pwent_chk.
9048 Remove entry parameter from _nss_nisplus_parse_pwent and
9049 _nss_nisplus_parse_grent.
9050 * nis/nss_nisplus/nisplus-parser.c: Likewise.
9051 * nis/nss_nisplus/nisplus-pwd.c: Remove support for SETENT_BATCH_READ
9052 again. Rewrite getpwent handling to not use nis_first_entry and
9053 nis_next_entry. Roll out own niscall handling.
9054 * nis/nss_nisplus/nisplus-grp.c: Likewise.
9055
9056 * sunrpc/xdr_rec.c: Fix typo in comment.
9057
429bb183
UD
90582006-05-19 Ulrich Drepper <drepper@redhat.com>
9059
1d4f062a
UD
9060 * nis/nis_call.c (__do_niscall3): Avoid code duplication in error
9061 handling.
9062
101cc598
UD
9063 * nis/nis_callback.c (internal_nis_do_callback): Don't use malloc
9064 to allocate memory for my_pollfd. Better initialization of
9065 cb_is_running. Use TEMP_FAILURE_RETRY.
9066
f50fa10c
UD
9067 * malloc/memusage.sh (memusageso): Add quotes.
9068 (memusagestat): Likewise.
9069 * debug/xtrace.sh (pcprofileso): Likewise.
9070 (pcprofiledump): Likewise.
9071 * debug/Makefile ($(objpfx)xtrace): Use $LIB in SLIBDIR
9072 replacement.
9073 * malloc/Makefile ($(objpfx)memusage): Likewise.
9074
882bfe73
UD
9075 * nis/nis_callback.c (__nis_create_callback): Calls to
9076 svcudp_bufcreate and svctcp_create can fail. Free ->xprt if
9077 asprintf call fails.
9078
429bb183
UD
9079 * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_sendreq): Make sure
9080 no uninitialized memory is passed to sendto.
9081
f90de831
UD
90822006-05-18 Ulrich Drepper <drepper@redhat.com>
9083
9084 * nis/nis_callback.c (__nis_create_callback): Use asprinf instead
9085 of snprintf+strdup. Handle OOM.
9086 * nis/nis_callback.c (__nis_create_callback): Allocate cb and
9087 cb->serv together. Remove now obsolete free calls.
9088 (__nis_destroy_callback): Remove now obsolete free call.
9089
a17fa610 90902006-05-18 David Woodhouse <dwmw2@redhat.com>
6e2a7825
UD
9091
9092 * sysdeps/posix/getaddrinfo.c: Add unique labels to the default
9093 RFC3484 precedence table for fec0::/10 and fc00::/7 (site-local
9094 and ULA respectively). Set precedence for IPv4 address to 10 as
9095 defined in RFC3484 for preferring IPv6.
9096 * posix/gai.conf: Update to match the new default tables.
9097
758b9d7e
UD
90982006-05-18 Jakub Jelinek <jakub@redhat.com>
9099
9100 * nis/nss_compat/compat-pwd.c (internal_setpwent): If nss_set*ent
9101 returned NSS_STATUS_UNAVAIL, still return NSS_STATUS_SUCCESS.
9102 * nis/nss_compat/compat-spwd.c (internal_setspent): Likewise.
9103 * nis/nss_compat/compat-grp.c (internal_setgrent): Likewise.
9104
9105 * nis/nss_compat/compat-initgroups.c (nss_setgrent, nss_endgrent):
9106 Removed.
9107 (init_nss_interface): Remove initialization of these variables.
9108
91092006-05-18 Ulrich Drepper <drepper@redhat.com>
9110
9111 * nis/nis_call.c (rec_dirsearch): Little optimization: pull
9112 nis_free_directory forward to avoid duplication.
9113
388c779e
UD
91142006-05-17 Ulrich Drepper <drepper@redhat.com>
9115
5f1724bf
UD
9116 * nis/nis_call.c (rec_dirsearch): Handle __nis_finddirectory and
9117 rec_dirsearch returning NULL.
9118 (first_shoot): Handle __nis_finddirectory returning NULL.
9119 (__nisfind_server): Fix leak when rec_dirsearch returns NULL.
9120
388c779e
UD
9121 * sysdeps/unix/sysv/linux/sys/inotify.h: Define IN_CLOSE, IN_MOVE,
9122 IN_ONLYDIR, IN_DONT_FOLLOW, and IN_MASK_ADD.
9123
360d5cf4
UD
91242006-05-17 Jakub Jelinek <jakub@redhat.com>
9125
9126 * sunrpc/key_call.c (getkeyserv_handle): Call auth_destroy if
9127 pid changed.
9128
88dbff8c
UD
91292006-05-15 Ulrich Drepper <drepper@redhat.com>
9130
6f8a7dff
UD
9131 * include/rpc/pmap_prot.h: Mark all functions as hidden.
9132
9133 * nscd/nscd_initgroups.c: Mark __gr_map_handle as hidden.
9134 * nscd/nscd_getgr_r.c: Likewise.
9135
9136 * include/rpc/pmap_rmt.h: Mark all functions as hidden.
9137
9138 * nscd/nscd_getai.c (__hst_map_handle): Mark as hidden.
9139 * nscd/nscd_gethst_r.c (__hst_map_handle): Likewise.
9140
9141 * stdlib/longlong.h (__clz_tab): Mark as hidden.
9142
9143 * iconv/gconv_int.h: Mark __gconv_lock as hidden.
9144
360d5cf4 9145 * include/rpc/key_prot.h: Mark all _internal functions as hidden.
8263ed62
UD
9146
9147 * include/rpc/auth.h: Mark xdr_des_block_internal and
9148 xdr_opaque_auth_internal as hidden.
9149
9150 * sysdeps/unix/sysv/linux/getdents.c: Mark __have_no_getdents64 as
9151 hidden.
9152
360d5cf4 9153 * include/rpc/xdr.h: Mark all _internal functions as hidden.
8263ed62 9154
02264020
UD
9155 * misc/getusershell.c (okshells): Don't use static initializers,
9156 do it dynamically.
9157
fd5ea238
UD
9158 * stdlib/fmtmsg.c (keywords): Change type of len element to
9159 uint32_t to not waste space on 64bit machines.
9160
9446614c
UD
9161 * locale/setlocale.c: Change _nl_category_names into a string.
9162 Add new _nl_category_name_idxs. Change all users.
9163 * locale/localeinfo.h: Adjust declaration of _nl_category_names.
9164 Declare _nl_category_name_idxs.
9165 * locale/findlocale.c: Adjust for _nl_category_names change.
9166 * locale/loadlocale.c: Likewise.
9167 * locale/newlocale.c: Likewise.
9168 * intl/dcigettext.c: Likewise.
9169
88dbff8c
UD
9170 * iconv/gconv_conf.c (add_alias): Move actual alias handling to...
9171 (add_alias2): ...here. New function.
9172 (__gconv_read_conf): Simplify builtin alias handling.
9173 (builtin_aliases): Convert to string to avoid relocations.
9174 * iconv/gconv_builtin.h: Add comment about correct formatting.
9175
4442d58f
UD
91762006-05-15 Jakub Jelinek <jakub@redhat.com>
9177
9178 * resolv/res_debug.c (loc_ntoa): Make error const.
9179
91802006-05-14 Andreas Schwab <schwab@suse.de>
9181
9182 * math/complex.h [__LDBL_COMPAT]: Use __REDIRECT_NTH.
9183
91842006-05-12 Jakub Jelinek <jakub@redhat.com>
9185
9186 * sysdeps/unix/sysv/linux/sched_getaffinity.c: Include sys/param.h.
9187 (__sched_getaffinity_new): Don't crash if cpusetsize is smaller than
9188 sizeof (cpu_set_t).
9189
a51752b6
UD
91902006-05-11 Ulrich Drepper <drepper@redhat.com>
9191
5d3fd1f6
UD
9192 * resolv/res_debug.c (loc_ntoa): Define error as array, not pointer.
9193
08cfb839
UD
9194 * include/arpa/nameser.h: Declare _ns_flagdata as hidden.
9195
4b481a15
UD
9196 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_master.
9197 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_master.
9198
9199 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypbind_resp.
9200 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypbind_resp.
9201
9202 * nis/nis_xdr.c: Add libnsl_hidden_def for xdr_cback_data.
9203 * include/rpcsvc/nis_callback.h: Add libnsl_hidden_proto for
9204 xdr_cback_data.
9205
9206 * nis/ypupdate_xdr.c: Add libnsl_hidden_def for xdr_ypupdate_args.
9207 * include/rpcsvc/ypupd.h: Add libnsl_hidden_proto for
9208 xdr_ypupdate_args.
9209
9210 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_order.
9211 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_order.
9212
9213 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_maplist.
9214 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_maplist.
9215
9216 * nis/nis_xdr.c: Add libnsl_hidden_def for xdr_obj_p.
9217 * include/rpcsvc/nis_callback.h: New file.
9218
9219 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_val.
9220 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_val.
9221
9222 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypreq_nokey.
9223 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypreq_nokey.
9224
9225 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypmaplist.
9226 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypmaplist.
9227
9228 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypreq_nokey.
9229 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypreq_nokey.
9230
b1ad49c6
UD
9231 * nis/ypupdate_xdr.c: Add libnsl_hidden_def for xdr_ypdelete_args.
9232 * include/rpcsvc/ypupd.h: Add libnsl_hidden_proto for
9233 xdr_ypdelete_args.
9234
cd5f7829
UD
9235 * nis/nis_xdr.h: Mark all functions as hidden. Remove
9236 __BEGIN_DECLS and __END_DECLS, the header is not installed.
9237
a51752b6
UD
9238 * nis/nis_error.c: Remove table of strings. Use position
9239 independent mechanism.
9240 * nis/nis_error.h: New file.
9241
3d237e42
UD
92422006-05-11 Jakub Jelinek <jakub@redhat.com>
9243
9244 * locale/programs/ld-time.c (time_finish): If wide era name or
9245 format aren't provided, set both wname and wformat to L"".
9246
d6c159fe
UD
92472006-05-10 Ulrich Drepper <drepper@redhat.com>
9248
0088b04e
UD
9249 * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Only store
9250 results if the call was succesful.
9251
d6c159fe
UD
9252 * nis/nss-nis.h: Mark __yperr2nss_tab and __yperr2nss_count as hidden.
9253
9254 * nis/nss-nisplus.h: Mark __niserr2nss_tab and __niserr2nss_count
9255 as hidden.
9256
5c5acdf0
UD
92572006-05-10 Jakub Jelinek <jakub@redhat.com>
9258
9259 * misc/sys/queue.h: Remove uses of all QUEUEDEBUG_* macros.
9260
16d620db
UD
92612006-05-10 Ulrich Drepper <drepper@redhat.com>
9262
9263 * posix/wordexp.c (parse_glob): No need to check ifs for NULL, the
9264 caller makes sure this is not the case.
9265 (wordexp): Simplify ifs_white creation. [Coverity CID 231]
9266
e7c8359e
UD
92672006-05-09 Ulrich Drepper <drepper@redhat.com>
9268
ecf359c6
UD
9269 * posix/wordexp.c: Remove numerous NULL pointer tests before FREE
9270 calls.
9271
400cc70a
UD
9272 * io/ftw.c (open_dir_stream): Return right away if REALLOC fails.
9273 [Coverity CID 229, 230]
9274
9275 * argp/argp-help.c (hol_entry_help): Handle STATE==NULL in ARG and
9276 DGETTEXT calls.
9277 (hol_help): Likewise. [Coverity CID 226, 227]
9278
9279 * string/argz-replace.c (__argz_replace): Unconditionally call
9280 free on SRC. [Coverity CID 225]
9281
9282 * nis/nis_creategroup.c (nis_creategroup): No need to duplicate
9283 the return value of __nis_default_owner and __nis_default_group,
9284 it has been especially allocated. [Coverity CID 224]
9285
51e59260
UD
9286 * nis/nis_defaults.c (searchXYX): New functions. Used by both
9287 searchgroup and searchowner. Significantly simplified.
9288 (__nis_default_owner): Remove duplication. Do not locally copy the
9289 string before duplicating it.
9290 (__nis_default_group): Likewise.
9291
9292 * nis/nis_lookup.c (nis_lookup): After calling nis_free_directory,
9293 we must clear the variable before calling __nisfind_server.
9294
9295 * nis/nis_lookup.c (nis_lookup): Always free memory allocated with
9296 nis_getnames. [Coverity CID 223]
9297
9298 * locale/programs/locfile.c (locfile_read): Use alloca instead of
9299 xmalloc to allocate local repertoire name. [Coverity CID 222]
9300
9301 * iconv/iconv_charmap.c (use_to_charmap): No need to dynamically
9302 allocate memory for the input to add_bytes. [Coverity CID 221]
9303
e7c8359e 9304 * posix/wordexp.c (w_addword): Free word if realloc fails and it
51e59260 9305 was allocated here. [Coverity CID 219, 220]
e7c8359e
UD
9306
9307 * posix/getconf.c (print_all): Free confstr data after printing.
9308 [Coverity CID 218]
9309
9310 * sysdeps/posix/getaddrinfo.c (gaih_inet): Free canon string if
9311 list allocation fails. [Coverity CID 215]
9312
9313 * nss/nsswitch.c (__nss_configure_lookup): Fix loop end condition.
9314 [Coverity CID 213]
9315
9316 * argp/argp-help.c (hol_entry_cmp): Don't call canon_doc_option if
9317 string is NULL. [Coverity CID 212]
9318 * argp/Makefile: Add rules to build and run bug-argp1.
9319 * argp/bug-argp1.c: New file.
9320
9321 * io/ftw.c (ftw_dir): Use __rawmemchr instead of strchr to find
9322 end of string.
9323 * stdlib/canonicalize.c (__realpath): Likewise.
9324
9325 * locale/programs/ld-time.c (time_finish): Don't dereference NULL
9326 pointer. [Coverity CID 206]
9327
9328 * elf/dl-dst.h (DL_DST_REQUIRED): Be prepared for missing link map
9329 in statically linked code.
9330 * elf/dl-load.c (_dl_dst_substitute): When replacing ORIGIN in
9331 statically built code, be prepared to have no link map.
9332 [Coverity CID 205]
9333
9334 * argp/argp-help.c (fill_in_uparams): Handle STATE==NULL in
9335 dgettext calls. [Coverity CID 204]
9336
9337 * argp/argp-help.c (struct uparams): Remove valid member. Change
9338 the one user.
9339 (uparam_names): Reduce size. Avoid relative relocations.
9340 Moved to read-only segment.
9341 (fill_in_uparams): Update for new layout.
9342
9343 * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs): Parameter can be
9344 assumed to always be != NULL. [Coverity CID 202]
9345
9346 * argp/argp-help.c (hol_entry_help): Remove some dead code
9347 [Coverity CID 200].
9348
9349 * nis/nss_nis/nis-service.c (_nss_nis_getservbyport_r): Optimize
9350 away a few more unconditional yperr2nss calls.
9351 (_nss_nis_getservbyname_r): Likewise.
9352
acf82eaf
UD
93532006-05-06 Ulrich Drepper <drepper@redhat.com>
9354
4461cf48
UD
9355 * sysdeps/generic/ldsodefs.h: Remove support for non-core
9356 architectures.
9357
b74a8c7f
UD
9358 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Make sure
9359 that unused memory passed to sendto is nevertheless initialized.
9360
acb98cb5
UD
9361 [BZ #2499]
9362 * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Avoid
9363 possibly unaligned memory accesses.
9364
bce16467
UD
9365 * include/arpa/nameser.h: Also optimize NS_PUT16 and NS_PUT32.
9366 * resolv/res_mkquery.c: Use NS_PUT16 and NS_PUT32 instead of __putshort
9367 and __putlong respectively. Correct buffer overflow check for
9368 NS_NOTIFY_OP.
9369
9370 * resolv/res_send.c (send_vc): Use ns_put16 instead of putshort.
9371
8e45b1ac
UD
9372 * resolv/res_send.c (res_queriesmatch): Fix typo in comment.
9373 (send_dg): Rewrite error handling to be more compact and avoid
9374 double recomputation of timeouts. Pass MSG_NOSIGNAL to send.
9375
697e1628
UD
9376 * include/arpa/nameser.h: Add optimizations for NS_GET16 and NS_GET32.
9377
9378 * resolv/res_send.c (res_nameinquery): Use NS_GET16 directly
9379 instead of ns_get16.
9380 (res_queriesmatch): Likewise. Minor optimization.
9381
acf82eaf
UD
9382 [BZ #2499]
9383 * resolv/res_query.c (__libc_res_nquery): If answerp != NULL,
9384 __libc_res_nsend might reallocate the buffer for the answer. In
9385 this case we have to reload the HP pointer.
9386
7bfee654
UD
93872006-05-05 Ulrich Drepper <drepper@redhat.com>
9388
694b49ca
UD
9389 * stdio-common/vfscanf.c (memory_error): Remove definition. Add
9390 some branch prediction hints.
9391
7bfee654
UD
9392 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Define SPLICE_F_*.
9393 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
9394 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
9395 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
9396 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
9397 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
9398 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
9399 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
9400
308bb2d5
UD
94012006-05-05 Martin Schwidefsky <schwidefsky@de.ibm.com>
9402
9403 * sysdeps/s390/s390-32/elf/start.S: Replace pc relative relocation
9404 by a GOT relocation to make Scrt1.o position independent.
9405 * sysdeps/s390/s390-64/elf/start.S: Likewise.
9406
9407 * sysdeps/unix/sysv/linux/s390/s390-32/syscall.S: Add support for
9408 six system call parameters.
9409 * sysdeps/unix/sysv/linux/s390/s390-64/syscall.S: Likewise.
9410
cdb9c321
UD
94112006-05-05 Ulrich Drepper <drepper@redhat.com>
9412
9413 * sunrpc/svcauth_des.c (cache_init): Use calloc instead of
9414 malloc&bzero.
9415
9416 * sunrpc/svc_udp.c (BZERO): Remove definition.
9417 (CALLOC): Define.
9418 (svc_enablecache): Use CALLOC instead of ALLOC&BZERO.
9419
9420 * sunrpc/des_impl.c: Remove ALT_ECB support. We never used it.
9421 (des_SPtrans): Use uint32_t type.
9422 (des_skb): Likewise.
9423
9424 * sunrpc/xdr_ref.c (xdr_reference): Use calloc instead of malloc&bzero.
9425
fff04b32
UD
94262006-05-05 Jakub Jelinek <jakub@redhat.com>
9427
9428 [BZ #2509]
9429 * stdio-common/tst-printf.sh: Adjust for tst-printf.c change even
9430 on 32-bit arches.
9431
94322006-05-05 Ulrich Drepper <drepper@redhat.com>
9433
9434 * locale/programs/ld-address.c (address_finish): Fix one more
cdb9c321 9435 place where the iso639 array might be accessed beyond the limits.
fff04b32 9436
077a30bc 94372006-05-04 Ulrich Drepper <drepper@redhat.com>
77dd4c3b 9438
f2d5cf50
UD
9439 * nis/nis_table.c (nis_list): Avoid clearing res twice before
9440 filling it for the first time.
9441
3e4370cf
UD
9442 * nis/nis_table.c (get_tablepath): Renamed from __get_tablepath.
9443 Adjust all callers.
9444 Free res object content before returning.
9445
5e65a53d
UD
9446 * sunrpc/xdr_array.c (xdr_array): Use calloc instead of malloc&bzero.
9447
48be3114
UD
9448 * sunrpc/key_call.c (__rpc_thread_key_cleanup): Also free
9449 client->cl_auth.
9450
ca4fce0e
UD
9451 * sunrpc/rpc_thread.c (__rpc_thread_destroy): Don't skip entire
9452 cleanup for initial thread, just the free call on TVP.
9453
077a30bc 9454 * nscd/gai.c (__getline): Define.
3b7a95fb 9455
5d37289a 9456
3f87d901 9457See ChangeLog.16 for earlier changes.
This page took 1.339373 seconds and 5 git commands to generate.