]> sourceware.org Git - glibc.git/blame - ChangeLog
* stdlib/tst-setcontext.c: Catch the case where the links gets
[glibc.git] / ChangeLog
CommitLineData
9e80c123
UD
12007-12-03 Ulrich Drepper <drepper@redhat.com>
2
d90d0256
UD
3 * stdlib/tst-setcontext.c: Catch the case where the links gets
4 messed up and we do not reach main again.
5
9e80c123
UD
6 * po/ca.po: Update from translation team.
7
ae4287f8
UD
82007-11-26 Ulrich Drepper <drepper@redhat.com>
9
6701afc7 10 * posix/unistd.h: Declare fsync also for __USE_XOPEN2K.
79fb2e02 11 * posix/regex.h (REG_ENOSYS): Likewise.
a912a4f8 12 * wcsmbs/wchar.h: Define __need_file also for __USE_XOPEN2K.
ae4287f8 13
30294ea4
UD
142007-11-25 Ulrich Drepper <drepper@redhat.com>
15
16 * nscd/nscd.h (MAX_STACK_USE): Define.
17 * nscd/mem.c (MAX_STACK_USE): Remove definition here.
18 (gc): Initialize stack_used based on allocation in prune_cache.
19 * nscd/cache.c (prune_cache): Use heap for mark array if necessary.
e8667ddc 20 Clear array before use.
30294ea4
UD
21
22 * nscd/aicache.c (addhstaiX): Update statistics counter in case
10a4c1e9 23 memory allocation failed.
e8667ddc
UD
24 * nscd/hstcache.c (cache_addhst): Likewise.
25 * nscd/grpcache.c (cache_addgr): Likewise.
26 * nscd/servicescache.c (cache_addserv): Likewise.
27 * nscd/pwdcache.c (cache_addpw): Likewise.
28 * nscd/initgrcache.c (addinitgroupsX): Likewise.
30294ea4 29
715db78b
UD
302007-11-23 Ulrich Drepper <drepper@redhat.com>
31
609bb071
UD
32 * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Add open
33 and creat system calls.
34
715db78b
UD
35 * sysdeps/unix/sysv/linux/check_native.c: Include <asm/types.h>.
36
ea2c47b6
UD
372007-11-23 Martin Schwidefsky <schwidefsky@de.ibm.com>
38
39 * sysdeps/unix/sysv/linux/Makefile [subdir=inet] (sysdep_headers):
40 Add netiucv/iucv.h.
41 * sysdeps/unix/sysv/linux/netiucv/iucv.h: New file.
42 * sysdeps/unix/sysv/linux/opensock.c (__opensock): Add AF_IUCV
43 protocol.
44 * sysdeps/unix/sysv/linux/sa_len.c (__libc_sa_len): Likewise.
45 * sysdeps/unix/sysv/linux/s390/opensock.c: New file.
46 * sysdeps/unix/sysv/linux/s390/sa_len.c: New file.
47
dcdcf4b9
UD
482007-11-22 Martin Schwidefsky <schwidefsky@de.ibm.com>
49
37143323
UD
50 * sysdeps/s390/bits/string.h (strlen, strcpy, strncpy, strcat,
51 strncat): Define as macros to avoid compile errors.
52
dcdcf4b9
UD
53 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Add open and
54 creat entries.
55
3a632674
UD
562007-11-22 Ulrich Drepper <drepper@redhat.com>
57
7ea8eb02
UD
58 [BZ #5382]
59 * nscd/nscd.h (NSCD_THREAD_STACKSIZE): Define.
60 * nscd/connections.c (start_threads): Use NSCD_THREAD_STACKSIZE.
715db78b 61 * nscd/mem.c (gc): Don't allocate arrays on the stack if they can
7ea8eb02 62 overflow it.
70d5b6ef 63 Partially based on a patch by Petr Baudis <pasky@suse.cz>.
7ea8eb02
UD
64
65 * sysdeps/unix/sysv/linux/nscd_setup_thread.c (setup_thread):
715db78b 66 Return zero in case the thread library is not NPTL.
7ea8eb02 67
5c3a3dba
UD
68 [BZ #5375]
69 * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix locking when
70 initializing interface list.
71
85883123
UD
72 [BZ #5378]
73 * nis/nss_compat/compat-initgroups.c (getgrent_next_nss): Don't
74 use result of nss_getgrgid_r if nothing was found. For other
75 error return with a failure.
76 Partially based on a patch by Petr Baudis <pasky@suse.cz>.
77
3a632674
UD
78 * locale/programs/ld-collate.c (collate_read): Fix loop to match
79 macro name.
80
b73f9135
UD
812007-11-19 Ulrich Drepper <drepper@redhat.com>
82
ee72b971
UD
83 * sysdeps/posix/getaddrinfo.c (defaults_scopes, scopes): New variables.
84 (get_scope): For IPv4 scope, use scopes table.
85 (fini): Free scopes table if necessary.
86 (free_scopelist): New function.
87 (scopecmp): New function.
88 (gaiconf_init): Also handle scopev4 entries.
89 * posix/tst-rfc3484.c (do_test): Initialize scopes.
90 * posix/tst-rfc3484-2.c (do_test): Likewise.
91 * posix/gai.conf: Document scopev4 defaults.
92 * posix/Makefile (tests): Add tst-rfc3484-3.
93 * posix/tst-rfc3484-3.c: New file.
94
f4a79765
UD
95 * sysdeps/posix/getaddrinfo.c (default_labels): Describe entry for
96 Teredo tunnels.
b73f9135
UD
97 * posix/gai.conf: Update for current default tables.
98
429bd64d
UD
992007-11-19 Ulrich Drepper <drepper@redhat.com>
100
101 * po/tr.po: Update from translation team.
102
3c9af259
RM
1032007-11-18 Roland McGrath <roland@frob.com>
104
76cf9889
RM
105 * manual/arith.texi (Remainder Functions): Spelling fix.
106 From Shaun Silk <genix@mysoul.com.au>.
107
3c9af259
RM
108 * sysdeps/mach/hurd/bits/fcntl.h (O_CLOEXEC): Fix value.
109
238346ab
UD
1102007-11-17 Ulrich Drepper <drepper@redhat.com>
111
5879ad50
UD
112 * po/zh_CN.po: Update from translation team.
113
238346ab
UD
114 * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
115 Add sys/signalfd.h and sys/eventfd.h.
116
b80b9c77
UD
1172007-11-15 Bruno Haible <bruno@clisp.org>
118
119 [BZ #5346]
120 * intl/dcigettext.c (struct known_translation_t): Turn msgid into a
121 union.
122 (transcmp): Use the appropriate part of s1->msgid and s2->msgid.
123 (DCIGETTEXT): Change the allocation of the 'search' variable so that
124 it needs only fixed stack space. Delay the initialization of
125 msgid_len until it is needed.
126
2da2501c
AJ
1272007-11-15 Andreas Jaeger <aj@suse.de>
128
129 * sysdeps/ieee754/dbl-64/sincos.tbl: Fix size of union.
130 Reported by Christoph Quirin Lauter <christoph.lauter@ens-lyon.fr>.
131
68a6dcf5
UD
1322007-11-15 Ulrich Drepper <drepper@redhat.com>
133
134 * po/ko.po: Update from translation team.
135
43850227
UD
1362007-11-14 Ulrich Drepper <drepper@redhat.com>
137
1e2692c9
UD
138 * sysdeps/unix/sysv/linux/check_native.c (__check_native): Simplify
139 significantly. The device type is also part of the ifinfomsg data.
140
84e6cc7c 141 * po/sv.po: Update from translation team.
cbd52634 142 * po/nl.po: Likewise.
84e6cc7c 143
f9e2261b
UD
144 * nscd/cache.c (prune_cache): If cache is empty, instruct caller
145 to wake up in 24 hours.
146
43850227
UD
147 * nscd/gai.c (__ioctl): Define. Include check_native.c.
148
5742e960
UD
1492007-11-13 Ulrich Drepper <drepper@redhat.com>
150
1a821d82
UD
151 * po/cs.po: Update from translation team.
152 * po/pl.po: Likewise.
153
773e79b3
UD
154 * include/ifaddrs.h: Remove in6ai_temporary.
155 (struct in6addrinfo): Add index element.
156 Declare __check_native.
157 * inet/Makefile (aux): Add check_native.
158 * sysdeps/unix/sysv/linux/check_native.c: New file.
159 * sysdeps/unix/sysv/linux/check_pf.c: No need to recognize
160 IFA_F_TEMPORARY. Pass back ifa_index.
161 * sysdeps/posix/getaddrinfo.c: Remove netlink compatibility code.
162 (rfc3484_sort): Add new parameter. Implement rule 7 correctly:
163 call __check_native if necessary.
164 (getaddrinfo): Fill in index field. Use qsort_r instead of qsort
165 to sort addresses. Pass information about the results.
166 * posix/tst-rfc3484.c: Adjust for addition of index field and change
167 of rfc3484_sort interface.
168 * posix/tst-rfc3484-2.c: Likewise.
169
e458144c
UD
170 * stdlib/stdlib.h: Define __compar_d_fn_t. Declare qsort_r.
171 * include/stdlib.h: Add hidden_proto for qsort_t and adjust protoype
172 for _quicksort.
173 * stdlib/msort.c (qsort): Now a wrapper around qsort_r.
174 (qsort_r): Renamed from qsort. Take additional parameter and pass it
175 on as third parameter to compare function and _quicksort.
176 * stdlib/qsort.c (_quicksort): Take additional parameter and pass on
177 to the compare function.
178 * stdlib/Versions [libc] (GLIBC_2.8): Add qsort_r.
179 * Versions.def: Add GLIBC_2.8 for libc.
180
bd63f380
UD
181 * posix/tst-rfc3484.c: Adjust for addition of prefixlen field.
182 * posix/tst-rfc3484-2.c: Likewise.
183
5742e960
UD
184 * include/kernel-features.h: Moved to...
185 * sysdeps/mach/hurd/kernel-features.h: ...here.
186
a6ac7fdb
RM
1872007-09-13 H.J. Lu <hongjiu.lu@intel.com>
188
189 * sysdeps/i386/i586/memcpy_chk.S: New file.
190 * sysdeps/i386/i586/mempcpy_chk.S: Likewise.
191 * sysdeps/i386/i586/memset_chk.S: Likewise.
192
6f3914d5
UD
1932007-11-12 Ulrich Drepper <drepper@redhat.com>
194
195 * include/ifaddrs.c (struct in6addrinfo): Add prefixlen field.
196 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Always return
197 list of interfaces. Also store prefix length.
198 * sysdeps/posix/getaddrinfo.c (sort_result): Add prefixlen element.
199 (rfc3484_sort): In rule 9, for IPv4 addresses count only matching
200 prefix if source and destination address are in the same subnet.
201 (getaddrinfo): Always call __check_pf. Fill in prefixlen field.
202 Always look for matching record in in6ai list.
203 Correct source_addr_len value for IPv6->IPv4 converted records.
204
78cf5f6a
RM
2052007-11-11 Roland McGrath <roland@frob.com>
206
207 * include/kernel-features.h: New file.
208
7f745396
UD
2092007-11-10 Ulrich Drepper <drepper@redhat.com>
210
01e7fdbb
UD
211 * sysdeps/pthread/aio_misc.c (handle_fildes_io): Avoid unnecessary
212 complications for 64-bit platforms.
213
7f745396
UD
214 * sysdeps/unix/sysv/linux/open64.c: Move __open64_2 implementation to..
215 * sysdeps/unix/sysv/linux/open64_2.c: ...here. New file.
216 * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines): Add
217 open64_2.
218 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Add open and creat
219 entries.
220 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
221 * sysdeps/wordsize-64/alphasort.c: New file.
222 * sysdeps/wordsize-64/alphasort64.c: New file.
223 * sysdeps/wordsize-64/fseeko.c: New file.
224 * sysdeps/wordsize-64/fseeko64.c: New file.
225 * sysdeps/wordsize-64/ftello.c: New file.
226 * sysdeps/wordsize-64/ftello64.c: New file.
227 * sysdeps/wordsize-64/ftw.c: New file.
228 * sysdeps/wordsize-64/ftw64.c: New file.
229 * sysdeps/wordsize-64/iofgetpos.c: New file.
230 * sysdeps/wordsize-64/iofgetpos64.c: New file.
231 * sysdeps/wordsize-64/iofopen.c: New file.
232 * sysdeps/wordsize-64/iofopen64.c: New file.
233 * sysdeps/wordsize-64/iofsetpos.c: New file.
234 * sysdeps/wordsize-64/iofsetpos64.c: New file.
235 * sysdeps/wordsize-64/lockf.c: New file.
236 * sysdeps/wordsize-64/lockf64.c: New file.
237 * sysdeps/wordsize-64/mkostemp.c: New file.
238 * sysdeps/wordsize-64/mkostemp64.c: New file.
239 * sysdeps/wordsize-64/mkstemp.c: New file.
240 * sysdeps/wordsize-64/mkstemp64.c: New file.
241 * sysdeps/wordsize-64/scandir.c: New file.
242 * sysdeps/wordsize-64/scandir64.c: New file.
243 * sysdeps/wordsize-64/tmpfile.c: New file.
244 * sysdeps/wordsize-64/tmpfile64.c: New file.
245 * sysdeps/wordsize-64/versionsort.c: New file.
246 * sysdeps/wordsize-64/versionsort64.c: New file.
247 * sysdeps/unix/sysv/linux/wordsize-64/aio_read.c: New file.
248 * sysdeps/unix/sysv/linux/wordsize-64/aio_read64.c: New file.
249 * sysdeps/unix/sysv/linux/wordsize-64/aio_write.c: New file.
250 * sysdeps/unix/sysv/linux/wordsize-64/aio_write64.c: New file.
251 * sysdeps/unix/sysv/linux/wordsize-64/creat64.c: New file.
252 * sysdeps/unix/sysv/linux/wordsize-64/getdirentries.c: New file.
253 * sysdeps/unix/sysv/linux/wordsize-64/getdirentries64.c: New file.
254 * sysdeps/unix/sysv/linux/wordsize-64/lio_listio.c: New file.
255 * sysdeps/unix/sysv/linux/wordsize-64/lio_listio64.c: New file.
256 * sysdeps/unix/sysv/linux/wordsize-64/open64.c: New file.
257 * sysdeps/unix/sysv/linux/wordsize-64/openat.c: New file.
258 * sysdeps/unix/sysv/linux/wordsize-64/openat64.c: New file.
259
260 * crypt/sha256-crypt.c: Fix a comment.
261 * crypt/sha512-crypt.c: Likewise.
262
f6ed654c
UD
2632007-11-07 H.J. Lu <hongjiu.lu@intel.com>
264
265 * sysdeps/x86_64/memset.S: Add sfence after movnti.
266
f2a8406a
UD
2672007-11-07 Ulrich Drepper <drepper@redhat.com>
268
269 [BZ #5277]
270 * iconv/loop.c (STANDARD_TO_LOOP_ERR_HANDLER): If conversion failed
271 because output buffer is too small break, don't loop.
272 * iconvdata/Makefile (tests): Add bug-iconv6.
273 * iconvdata/bug-iconv6.c: New file.
274
7fe4e0e8
UD
2752007-11-06 Ulrich Drepper <drepper@redhat.com>
276
9ca230d6
UD
277 * stdio-common/vfprintf.c (vfprintf): Compute necessary buffer size
278 with size_t type.
279 * stdio-common/printf_fp.c (__print_fp): Change chars_needed type to
280 size_t. Add casts where needed.
281
7fe4e0e8
UD
282 * nscd/selinux.c (nscd_request_avc_has_perm): When compiled with
283 old headers, don't call avc_has_perm if we don't have the
284 permission information.
285
b92e3780
UD
2862007-11-05 Daniel Jacobowitz <dan@codesourcery.com>
287
288 * elf/rtld.c (dl_main): Use the page size to find the map start.
289
ffb1b882
UD
2902007-11-05 Ulrich Drepper <drepper@redhat.com>
291
94a749f6
UD
292 * time/tzfile.c (__tzfile_read): Fix check for version 0 data files.
293 Patch by Szymon Siwek <sls@poczta.wp.pl>.
294
ffb1b882
UD
295 * nscd/aicache.c (addhstaiX): Check herrno after IPv4 lookup only
296 when the lookup call failed.
297
298 * nscd/nscd.h (struct database_dyn): Rename prunelock to prune_lock.
299 Add prune_cond and wakeup_time.
300 (CACHE_PRUNE_INTERNAL): Define.
301 Update declarations of prune_cache and setup_thread.
302 * nscd/connections.c (dbs): Update initializers.
303 (CACHE_PRUNE_INTERNAL): Moved to nscd.h.
304 (nscd_init): Default number of threads is now 4.
305 (invalidate_cache): Take lock before calling prune_cache.
306 (handle_request): If SELinux forbids the request, say so.
307 (readylist_cond): Use static initializer.
308 (nscd_run_prune): New function. Used only by pruning threads.
309 (nscd_run_worder): Renamed from nscd_run. Remove support for pruning
310 here.
311 (fd_ready): Update nscd_run reference.
312 (start_threads): No need to initialize readylist_cond.
313 Start pruning threads separately.
314 * nscd/nscd_setup_thread.c: Change return value type to int and always
315 return 0.
316 * sysdeps/unix/sysv/linux/nscd_setup_thread.c: Change return value type
317 to int and return nonzero value if we can use the TID address hack.
318 * nscd/cache.c (cache_add): If next wakeup time of cleanup thread for
319 the database is later than the new entry's timeout, update the
320 wakeup time and wake the cleanup thread.
321 (prune_cache): Return seconds the next entry in the database is still
322 valid. Remove locking for pruning here.
323 * nscd/nscd.conf: Document default number of threads.
324
4c48ef06
UD
3252007-10-31 Ulrich Drepper <drepper@redhat.com>
326
41ff2a49
UD
327 * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Make sure
328 stack is properly aligned for the target function.
329 Correct unwind info.
ffb1b882 330
4c48ef06
UD
331 * elf/rtld.c (dl_main): Initialize stack and pointer guard early
332 when using auditing libraries.
333
384ca551
UD
3342007-10-29 Ulrich Drepper <drepper@redhat.com>
335
31e2791c
UD
336 * resolv/Versions [libresolv] (GLIBC_PRIVATE): Add
337 _nss_dns_getnetbyaddr2_r.
338 * resolv/nss_dns/dns-host.c: Define _nss_dns_getnetbyaddr2_r. Pass
339 extra parameter to getanswer_r.
340 (_nss_dns_getnetbyaddr_r): Now a wrapper around
341 _nss_dns_getnetbyaddr2_r.
342
384ca551
UD
343 * nscd/Makefile (nscd-modules): Replace gethstbynm2_r with
344 gethstbynm3_r.
345 * nscd/gethstbynm2_r.c: Remove.
346 * nscd/gethstbynm3_r.c: New file.
347 * nscd/aicache.c (addhstaiX): Use __gethostbyaddr2_r instead of
348 __gethostbyaddr_r.
349 * nscd/gethstbyad_r.c: Generate __gethostbyaddr2_r function. Define
350 __gethostbyaddr_r compatibility wrapper.
351 * nscd/hstcache.c (cache_addhst): Add ttl parameter. Use it when
352 determining timeout of entry.
353 (lookup): Take new parameter and pass it to __gethostbyname3_r and
354 __gethostbyaddr2_r.
355 (addhstbyX): Pass reference to variable for TTL to lookup and
356 cache_addhst.
357 * nss/Versions [glibc] (GLIBC_PRIVATE): Export __nss_passwd_lookup2,
358 __nss_group_lookup2, __nss_hosts_lookup2, __nss_services_lookup2,
359 and __nss_next2. Remove __nss_services_lookup.
360 * nss/XXX-lookup.c: Name function now *_lookup2. Add new parameter.
361 Add compat wrapper.
362 * nss/getXXbyYY_r.c: Changes to call new *_lookup2 functions and
363 __nss_next2.
364 * nss/getXXent_r.c: Likewise.
365 * nss/getnssent_r.c: Likewise.
366 * nss/nsswitch.c (__nss_lookup): Add new parameter. If first function
367 does not exist in module, try the optional second name.
368 (__nss_next2): New function.
369 (__nss_next): Now wrapper around __nss_next2.
370 * nss/nsswitch.h: Adjust __nss_lookup prototype.
371 Declare __nss_next2.
372 Adjust definition of db_lookup_function type.
373 * nss/service-lookup.c: Define NO_COMPAT.
374 * include/netdb.h: Declare __gethostbyaddr2_r and __gethostbyname3_r.
375 * inet/ether_hton.c: Use __nss_next2 instead of __nss_next.
376 * inet/ether_ntoh.c: Likewise.
377 * sunrpc/netname.c: Likewise.
378 * sunrpc/publickey.c: Likewise.
379 * inet/getnetgrent.c: Likewise. Adjust calls to __nss_lookup.
380 * inet/gethstbyad_r.c (DB_LOOKUP_FCT): Change to __nss_hosts_lookup2.
381 * inet/gethstbynm2_r.c (DB_LOOKUP_FCT): Likewise.
382 * inet/gethstbynm_r.c (DB_LOOKUP_FCT): Likewise.
383 * inet/gethstent_r.c (DB_LOOKUP_FCT): Likewise.
384
385 * nscd/aicache.c (addhstaiX): Fix default TTL handling.
386
387 * inet/getnetgrent.c (setup): Encrypt static pointer.
388
88197030
UD
3892007-10-28 Ulrich Drepper <drepper@redhat.com>
390
f160a450
UD
391 [BZ #5204]
392 * crypt/sha256c-test.c: Define TIMEOUT to 6 for ancient hardware.
393 * crypt/sha512c-test.c: Likewise.
394
4c6b2202
UD
395 [BZ #5225]
396 * stdio-common/vfscanf.c (_IO_vfwscanf): Don't misuse wp pointer
397 to keep track of end of %[ format string element.
22c915ac
UD
398 * stdio-common/Makefile (tests): Add bug20.
399 * stdio-common/bug20.c: New file.
4c6b2202 400
88197030
UD
401 [BZ #5222]
402 * elf/dl-load.c (_dl_rtld_di_serinfo): Correct handling of short
403 path elements in counting mode.
404
05d69147
UD
4052007-10-27 Andreas Jaeger <aj@suse.de>
406
94833f11
UD
407 [BZ #5040]
408 * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLRDHUP): Add value.
409
05d69147
UD
410 [BZ #3112]
411 * sysdeps/ia64/backtrace.c (init): Free shared library if incorrect.
412 (__cleanup): Free shared library when exiting.
413 * sysdeps/i386/backtrace.c (init): Free shared library if incorrect.
414 (__cleanup): Free shared library when exiting.
415
e6b29af8
UD
4162006-04-14 H.J. Lu <hongjiu.lu@intel.com>
417
418 [BZ #2549]
419 * math/libm-test.inc (check_float_internal): Support
420 denormalized return.
421
ad3371fb
UD
4222007-10-23 Andreas Jaeger <aj@suse.de>
423
424 [BZ #5208]
425 * sysdeps/unix/sysv/linux/readahead.c (__readahead): Use
426 __LONG_LONG_PAIR to handle little endian byte order.
427 Suggested by abhishekrai@google.com
428
666aa020
UD
4292007-10-27 Ulrich Drepper <drepper@redhat.com>
430
431 * malloc/arena.c [!NO_THREADS]: Use ATFORK_MEM if defined.
432
8ad343b3
UD
4332007-10-26 Ulrich Drepper <drepper@redhat.com>
434
435 * nscd/cache.c (prune_cache): Move test for modified file outside
436 of locking.
437
9251c568
AJ
4382007-10-21 Andreas Jaeger <aj@suse.de>
439
440 * manual/texinfo.tex: Update to latest version.
441
442 * manual/sysinfo.texi (System Parameters): Fix Formatting.
443
444 * manual/arith.texi (Status bit operations): Fix formatting.
445
446 * manual/errno.texi (Error Messages): Fix formatting.
447
448 * manual/sysinfo.texi (System Parameters): Fix formatting.
449
450 * manual/libc.texinfo: Update VERSION and UPDATED.
451
260b2e06
RM
4522007-10-19 Roland McGrath <roland@redhat.com>
453
454 * elf/Makefile ($(objpfx)ld.so): Use $(AWK).
455
46ae8850
JJ
4562007-10-06 David S. Miller <davem@davemloft.net>
457
458 * configure.in: Add sparcv9v2 and sparc64v2.
459 * scripts/config.sub: Likewise.
460 * configure: Regenerate.
461 * elf/elf.h (HWCAP_SPARC_N2): New.
462 * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Bump to 8.
463 * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add 'v9v2'.
464 (HWCAP_IMPORTANT): Add HWCAP_SPARC_N2.
465 * sysdeps/sparc/sparc32/sparcv9/sparcv9v2/memcpy.S: New file.
466 * sysdeps/sparc/sparc32/sparcv9/sparcv9v2/memset.S: New file.
467 * sysdeps/sparc/sparc64/sparcv9v2/memcpy.S: New file.
468 * sysdeps/sparc/sparc64/sparcv9v2/memset.S: New file.
469
6fbfbd80
UD
4702007-10-18 Ulrich Drepper <drepper@redhat.com>
471
472 * sunrpc/clnt_udp.c (clntudp_call): Don't block in recvfrom call
473 even if the poll result indicates there is data to read.
474 Patch by Jeff Moyer <jmoyer@redhat.com>.
475
39cfc9fa
RM
4762007-10-18 Roland McGrath <roland@redhat.com>
477
478 * elf/elf.h (NT_PPC_VMX): New macro.
28919a77 479
39cfc9fa 4802007-10-17 Ulrich Drepper <drepper@redhat.com>
28919a77
UD
481
482 * version.h (VERSION): Set to 2.7.90.
483
ed13ccf1
JJ
4842007-10-17 Jakub Jelinek <jakub@redhat.com>
485
486 * sysdeps/x86_64/memset.S (bzero): Renamed to __bzero. Add
487 weak_alias.
488
ee9fd869
RM
4892007-10-17 Roland McGrath <roland@frob.com>
490
491 * sysdeps/mach/hurd/bits/fcntl.h [__USE_GNU__] (F_DUPFD_CLOEXEC): New.
492 * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Implement it.
493
1aa5e4d7
UD
4942007-10-17 Ulrich Drepper <drepper@redhat.com>
495
50c9fbbf 496 * version.h (VERSION): Bump to 2.7.
777bc4bf 497 * include/features.h (__GLIBC_MINOR__): Bump to 7.
50c9fbbf 498
58423c7d
UD
499 [BZ #5186]
500 * time/tzset.c (__tz_convert): Don't force testing for a change of
501 TZ if not called from localtime. But then also see whether the
502 file changed, in case __use_tzfile is set.
503
1aa5e4d7
UD
504 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define F_DUPFD_CLOEXEC.
505 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
506 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
507 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
508 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
509 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
510 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
511 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
512
fc4837e5
UD
5132007-10-17 Jakub Jelinek <jakub@redhat.com>
514
515 * sysdeps/posix/getaddrinfo.c (getaddrinfo): When sorting addresses
516 and admin selects to be able to replace the gai.conf file, lock
517 data structures around the qsort call.
518
62eaf7c8
UD
5192007-10-17 Ulrich Drepper <drepper@redhat.com>
520
406f28db
UD
521 * sysdeps/x86_64/cacheinfo.c: Comment out code added in support of
522 new memset.
ac1cb5da 523 * sysdeps/x86_64/memset.S: Revert to old version for now. The cost is
406f28db
UD
524 too high for the improvements. Implement bzero unconditionally for
525 use in libc.
ac1cb5da
UD
526
5272007-10-17 Ulrich Drepper <drepper@redhat.com>
528 Jakub Jelinek <jakub@redhat.com>
529
62eaf7c8
UD
530 * time/tzfile.c (__tzfile_read): Read POSIX TZ string if available
531 even when time_t is 32-bit.
532 (__tzfile_compute): Override POSIX TZ string STD/DST zone names if
533 timezone data read by __tzfile_default. Ensure __tzname[0] is
534 always set after the search.
535
6a649d25
UD
5362007-10-16 Ulrich Drepper <drepper@redhat.com>
537
538 * time/tzfile.c (__tzfile_read): Help the compiler recognize
539 unreachable code on 32-bit machines.
540
800d6f9e
UD
5412007-10-16 Jakub Jelinek <jakub@redhat.com>
542
543 [BZ #5184]
544 * time/strftime_l.c: Include stdbool.h.
545 (my_strftime): New wrapper, old function renamed to...
546 (__strftime_internal): ... new function. Add tzset_called
547 argument, pass it down to recursive calls, don't call tzset ()
548 if already true, set to true after call to tzset ().
62eaf7c8 549
69819d92
UD
5502007-10-16 Ulrich Drepper <drepper@redhat.com>
551
552 * time/tzfile.c (__tzfile_read): Take extra memory requested by caller
553 into account when copying TZ string.
554
62eaf7c8
UD
5552007-10-16 Jakub Jelinek <jakub@redhat.com>
556
557 * time/tzfile.c (__tzfile_compute): For use_last case set i to
558 num_transition rather than num_transitions - 1.
559
0308ad66
JJ
5602007-10-16 Jakub Jelinek <jakub@redhat.com>
561
8d137b60
JJ
562 * sysdeps/x86_64/memset.S (memset): Fix sse2_nt_move
563 PIC indirect jump.
564
0308ad66
JJ
565 * sysdeps/x86_64/memset.S: Jump from bzero to memset using
566 a local label rather than HIDDEN_JUMPTARGET.
567
e2b393bc
UD
5682007-10-15 Ulrich Drepper <drepper@redhat.com>
569
570 * sysdeps/x86_64/cacheinfo.c (__x86_64_shared_cache_size): Define.
571 (init_cacheinfo): Initialize it.
572 * sysdeps/x86_64/memset.S: Use __x86_64_shared_cache_size.
573 Always define bzero.
574 Remove non-glibc code.
575 * sysdeps/x86_64/bzero.S: Make an empty file.
576
5772007-10-15 H.J. Lu <hongjiu.lu@intel.com>
578
579 * sysdeps/x86_64/cacheinfo.c
580 (__x86_64_preferred_memory_instruction): New.
581 (init_cacheinfo): Initialize __x86_64_preferred_memory_instruction.
582
583 * sysdeps/x86_64/memset.S: Rewrite.
584
0fbfcb7b
RM
5852007-10-15 Roland McGrath <roland@redhat.com>
586
587 * po/libc.pot: Regenerated.
588
2884dad4
UD
5892007-10-15 Ulrich Drepper <drepper@redhat.com>
590
e2b393bc 591 * nss/getXXbyYY_r.c (REENTRANT_NAME): Mangle startp and start_fct
d96a2216
UD
592 pointers.
593
2884dad4
UD
594 [BZ #3425]
595 * resolv/nss_dns/dns-host.c (getanswer_r): Fail with
596 NSS_STATUS_NOTFOUND if the server replied with only a CNAME and no
597 address record to T_A/T_AAAA requests.
598
89dc9d4c
UD
5992007-10-14 Ulrich Drepper <drepper@redhat.com>
600
8d97ac13
UD
601 * posix/glob.c: Reimplement link_exists_p to use fstatat64.
602
1b6aa63f
UD
603 * posix/glob.c: Add some branch prediction throughout.
604
895a08c0
UD
605 * nscd/nscd_getgr_r.c (nscd_getgr_r): Store result of successful
606 read from nscd.
607
6f55ed88
UD
608 * sysdeps/posix/getaddrinfo.c (struct sort_result): Add
609 service_order.
8d62c8ab
UD
610 (rfc3484_sort): Make sure that even if qsort doesn't support
611 stable sorting out sorting here is stable by comparing service_order.
6f55ed88 612 (getaddrinfo): Initialize service_order.
a94673e6
UD
613 * posix/tst-rfc3484.c (do_test): Adjust for addition of
614 service_order field to sorting structure.
dfcf64ce 615 * posix/tst-rfc3484-2.c (do_test): Likewise.
6f55ed88 616
fa76dde2
UD
617 * include/time.h: Declare __tzset_parse_tz and __tzset_compute.
618 * time/tzset.c (tzset_internal): Break TZ string parsing out into
619 __tzset_parse_tz and updating of daylight, timezone, tzname into
620 update_vars.
621 (__tz_compute): Renamed from tz_compute. Take additional parameters.
622 (__tz_convert): Updating of tm_isdst, tm_zone, and tm_gmtoff now
623 happens in __tz_compute.
624 * time/tzfile.c (__tzfile_read): Also read TZ string.
625 (find_transition): Fold into __tzfile_compute.
626 (__tzfile_compute): For times beyond the last transition try to
627 use the TZ string.
628 * timezone/tst-timezone.c: Information in daylight and tzname does
629 change for Asia/Tokyo timezone with more concrete information.
630 Remove the test.
631
632 * include/stdio.h: Add libc_hidden_proto for ftello.
633 * libio/ftello.c: Add libc_hidden_def.
634
89dc9d4c
UD
635 [BZ #1140]
636 * time/tzfile.c (__tzfile_compute): Compute tzname[] values based
637 on the specified time and not the last entries in the file. Move
638 code to determine tzname[] to...
639 (find_transition): ...here. Add ugly guess for times before the
640 first transition.
641
f7140274
UD
6422007-10-13 Ulrich Drepper <drepper@redhat.com>
643
cfca0aa3
UD
644 [BZ #3195]
645 * nscd/nscd_getai.c (__nscd_getai): Set errno to 0 in case we found
646 no entry.
647 * nscd/nscd_getgr.c (nscd_getgr_r): Likewise.
648 * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
649 * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
650 * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
651
43d3e6bd
UD
652 * nscd/nscd_getgr_r.c (nscd_getgr_r): Optimize a bit: use simpler
653 read mechanism when there are no group members and avoid no-op
654 read syscall in this case.
655
f7140274
UD
656 [BZ #3242]
657 * nscd/nscd_helper.c (wait_on_socket): Take timeout as parameter.
658 (__readall): If reading failed due to EAGAIN error wait a bit
659 and possibly try again.
660 (__readvall): Likewise.
661
656f02ce
UD
6622007-10-13 Bruno Haible <bruno@clisp.org>
663
664 * intl/dcigettext.c (_nl_find_msg): Unlock the conversions_lock
665 when we cannot recode the message.
666
0ea49677
UD
6672007-10-13 Ulrich Drepper <drepper@redhat.com>
668
669 [BZ #4359]
670 * libio/__freading.c (__freading): Don't return true for
ed36f224
UD
671 write-only streams. For read/write streams, check whether we
672 performed a read operation already.
7e39d802
UD
673 * libio/Makefile (tests): Add tst-ext2.
674 * libio/tst-ext2.c: New file.
0ea49677 675
78a9b2dc
UD
6762007-10-12 Ulrich Drepper <drepper@redhat.com>
677
fab1a490
UD
678 * locale/programs/repertoire.c (repertoire_read): Always free
679 memory for repertoire file name [Coverity CID 270].
680
78a9b2dc
UD
681 * elf/cache.c (save_aux_cache): Free memory allocated for
682 temporary file name [Coverity CID 267].
683
29d49a1a
JJ
6842007-10-12 Jakub Jelinek <jakub@redhat.com>
685
686 * misc/Makefile (headers): Add bits/error.h.
687
d074d36d
UD
6882007-10-12 Ulrich Drepper <drepper@redhat.com>
689
b7d1c5fa
UD
690 * posix/fnmatch_loop.c: Take rule index returned as part of
691 findidx return value into account when accessing weights.
692 * posix/regcomp.c: Likewise.
693 * posix/regexec.c: Likewise.
694
d074d36d
UD
695 * locale/programs/ld-collate.c (collate_read): Optimize a bit.
696 (skip_to): Fix problems with parameter of elifdef/elifndef.
697
26a51060
UD
6982007-10-11 Ulrich Drepper <drepper@redhat.com>
699
700 * iconv/gconv_simple.c: Add some branch prediction.
701
6dd3748b
UD
7022007-10-12 Jakub Jelinek <jakub@redhat.com>
703
704 * locale/programs/ld-collate.c (collate_read): If ignore_content
705 and nowtok is tok_define, eat any tok_eol tokens.
706
d0b5557d
JJ
7072007-10-11 Jakub Jelinek <jakub@redhat.com>
708
709 * sysdeps/gnu/netinet/tcp.h: Include sys/socket.h if __USE_MISC.
710 (struct tcp_md5sig): Change tcpm_addr type to struct sockaddr_storage.
711
712 * inet/netinet/in.h: Don't include bits/socket.h.
713 * sysdeps/unix/sysv/linux/bits/socket.h: Only check _SYS_SOCKET_H
714 macro.
715 * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Likewise.
716
3a054d7a
UD
7172007-10-10 Ulrich Drepper <drepper@redhat.com>
718
719 * locale/programs/locfile-token.h: Remove tok_elif, add tok_elifdef
720 and tok_elifndef.
721 * locale/programs/locfile-kw.gperf: Likewise.
722 * locale/programs/ld-collate.c: Implement primitive preprocessor.
723
c06b7169
UD
7242007-10-10 Jakub Jelinek <jakub@redhat.com>
725
726 * stdio-common/printf-parse.h: Include string.h and wchar.h.
727 (__find_specwc): Change into __extern_always_inline function.
728 (__find_specmb): Likewise. Remove ps argument. Use __strchrnul.
729 (__parse_one_specmb): Remove ps argument.
730 * stdio-common/vfprintf.c (vfprintf): Remove mbstate variable.
731 Adjust __find_specmb and __parse_one_specmb callers.
732 * stdio-common/printf-prs.c (parse_printf_format): Likewise.
733 * stdio-common/printf-parsemb.c (__find_specwc, __find_specmb):
734 Removed.
735 (__parse_one_specmb): Remove ps argument, adjust __find_specmb
736 caller.
737
5a01ab7b
UD
7382007-10-09 Ulrich Drepper <drepper@redhat.com>
739
740 * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Work around problem
741 with some Pentium Ds.
742
e3f8e049
UD
7432007-10-08 Ulrich Drepper <drepper@redhat.com>
744
745 * sysdeps/unix/sysv/linux/eventfd_read.c (eventfd_read): Use
746 __read not read.
747 * sysdeps/unix/sysv/linux/eventfd_write.c (eventfd_write): Use
748 __write not write.
749
a1a363d2
UD
7502007-10-07 Ulrich Drepper <drepper@redhat.com>
751
a1160714
UD
752 [BZ #181]
753 * locale/C-time.c: Set week_1stday data to 19971201.
659a9013
UD
754 * locale/programs/ld-time.c (time_finish): Default for
755 first_workday is Monday.
a1160714 756
bb27a6eb
UD
757 [BZ #2633]
758 * wcsmbs/wchar.h: Move many C99 functions into std namespace.
759
c8d48fae
UD
760 [BZ #5103]
761 * posix/glob.c (glob): Recognize patterns starting \/.
762 * posix/tst-gnuglob.c (find_file): Handle absolute path names.
763 (main): Add test for pattern starting \/.
764
a1a363d2
UD
765 * misc/error.h: Use __const instead of const.
766 * misc/bits/error.h: Likewise.
767
7682007-10-07 Andreas Jaeger <aj@suse.de>
769
770 * include/bits/error.h: New file.
771
772 * misc/bits/error.h (error_at_line): Fix prototype.
773
71894681
UD
7742007-10-06 Ulrich Drepper <drepper@redhat.com>
775
a6fa5328
UD
776 [BZ #3924]
777 * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix a few
778 more little bugs in creating the stack frame when pltexit has to
779 be called.
780
8c7661bc 781 * nscd/nscd_helper.c (__nscd_cache_search): Prevent endless loops.
50607309 782 * nscd/connections.c (verify_persistent_db): Recognize circular lists.
8c7661bc 783
c039eedd
UD
784 [BZ #4407]
785 * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Fix *signgamp for -0.0.
786 * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
787 * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
788 * math/libm-test.inc: Add test for this case.
789
71894681
UD
790 [BZ #5010]
791 * sunrpc/svc.c (struct svc_callout): Add sc_mapped element.
792 (svc_register): Initialize sc_mapped. Set to TRUE if call to
793 map service succeeded.
794 (svc_is_mapped): New function.
795 (svc_unregister): Use it before trying to unmap service.
796
34c2c092
UD
7972007-10-05 Ulrich Drepper <drepper@redhat.com>
798
d10737e4
UD
799 * timezone/zic.c: Update from tzcode2007h.
800
801 [BZ #5063]
802 * timezone/africa: Update from tzdata2007h.
803 * timezone/antarctica: Likewise.
804 * timezone/asia: Likewise.
805 * timezone/australasia: Likewise.
806 * timezone/europe: Likewise.
807 * timezone/leapseconds: Likewise.
808 * timezone/northamerica: Likewise.
809 * timezone/southamerica: Likewise.
810 * timzeone/zone.tab: Likewise.
811
0304f168
UD
812 [BZ #5104]
813 * elf/do-lookup.h (do_lookup_x): Don't ignore STT_COMMON symbols.
814
a83b5649
UD
815 [BZ #5113]
816 * string/bits/string2.h (__strdup): Cast parameters to calloc to
817 avoid warning with -Wconversion.
818 (__strndup): Likewise.
c039eedd 819 Half the patch by Christian Iseli <christian.iseli@licr.org>.
a83b5649 820
3e6ce4d7
UD
821 [BZ #5112]
822 * nscd/connections.c (restart): Don't resync if database is
823 disabled. Patch mostly by Brian De Wolf <bldewolf@csupomona.edu>.
824
8e351378
UD
825 * sysdeps/gnu/netinet/tcp.h: Define TCP_MD5SIG, TCP_MD5SIG_MAXKEYLEN,
826 struct tcp_md5sig. Extend struct tcp_info according to recent kernels.
827
828 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add eventfd,
829 evetnfd_read, eventfd_write.
830 * sysdeps/unix/sysv/linux/eventfd.c: New file.
831 * sysdeps/unix/sysv/linux/eventfd_read.c: New file.
832 * sysdeps/unix/sysv/linux/eventfd_write.c: New file.
833 * sysdeps/unix/sysv/linux/sys/eventfd.h: New file.
d10737e4 834 * sysdeps/unix/sysv/linux/Versions: Export eventfd, eventfd_read,
8e351378
UD
835 eventfd_write for GLIBC_2.7.
836
34c2c092
UD
837 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add signalfd.
838 * sysdeps/unix/sysv/linux/signalfd.c: New file.
839 * sysdeps/unix/sysv/linux/sys/signalfd.h: New file.
840 * sysdeps/unix/sysv/linux/Versions: Export signalfd for GLIBC_2.7.
841
6789aaaa 8422007-10-04 Jakub Jelinek <jakub@redhat.com>
375d9429
UD
843
844 * stdlib/msort.c: Include stdint.h.
845 (struct msort_param): New type.
846 (msort_with_tmp): Use struct msort_param pointer for unchanging
847 parameters. Add optimized handling for several common sizes
848 and indirect sorting mode.
849 (qsort): Adjust msort_with_tmp callers. For big S use indirect
850 sorting.
851 Suggested by Belazougui Djamel .
852
853 * stdlib/Makefile (tests): Add tst-qsort2.
854 * stdlib/tst-qsort2.c: New test.
855
b80bfc8b
UD
8562007-10-04 Ulrich Drepper <drepper@redhat.com>
857
174420d2
UD
858 * login/login_tty.c (login_tty): The Linux kernel can return EBUSY
859 for dup2 in case another thread races with the current one. Retry
860 in this case.
861
b80bfc8b
UD
862 * misc/error.h: Remove support for use outside of libc. We have to
863 include <features.h> now. Include <bits/error.h> if possible.
864 * misc/bits/error.h: New file.
865
6789aaaa 8662007-10-03 Jakub Jelinek <jakub@redhat.com>
ee868c89 867
e5dd2178
UD
868 * string/bits/string3.h (memcpy, memmove, mempcpy, memset, bcopy,
869 bzero, strcpy, stpcpy, strncpy, strcat, strncat): Use
870 __extern_always_inline functions unconditionally, drop macros.
871
ac97dec1
UD
872 * misc/sys/cdefs.h (__REDIRECT_LDBL, __REDIRECT_NTH_LDBL): New macros.
873 * wcsmbs/bits/wchar2.h (__swprintf_alias, __vswprintf_alias): Use
874 __REDIRECT_NTH_LDBL macro rather than __REDIRECT_NTH.
875
ee868c89
UD
876 * misc/sys/cdefs.h (__extern_always_inline): For GCC 4.3+
877 add __artificial__ attribute.
878
80e069e0
UD
8792007-10-02 Ulrich Drepper <drepper@redhat.com>
880
6e682cf5
UD
881 * string/strcoll_l.c (STRCOLL): Correct handling of switching from
882 backward to forward direction.
883
90241a20
UD
884 * string/strcoll_l.c (STRCOLL): Correct test for alloca use.
885
80e069e0
UD
886 [BZ #645]
887 * locale/programs/ld-collate.c (collate_finish): Compare against last
888 used section which is known to have rules defined.
889 (collate_read): After order_start, correctly record order of sections
890 and queue sections up.
891
035ef8d7
UD
8922007-10-01 Ulrich Drepper <drepper@redhat.com>
893
95bddc0c
UD
894 [BZ #5071]
895 * malloc/malloc.c (mremap_chunk): Avoid resizing of new block has
896 the same number of pages.
897 Patch by Tomash Brechko <tomash.brechko@gmail.com>.
898
c8caf089
UD
899 * locale/programs/ld-collate.c (collate_read): After initial copy
900 statement, continue in state 0.
901
035ef8d7
UD
902 * include/stdio_ext.h (__fsetlocking): Define as macro.
903
592a95ee
UD
9042007-09-30 Ulrich Drepper <drepper@redhat.com>
905
56ebeb41
UD
906 * locale/programs/ld-collate.c (collate_finish): Compare all bytes
907 of section order.
908
592a95ee
UD
909 * po/pt_BR.po: Fix typo.
910
6c522e21
UD
9112007-09-29 Ulrich Drepper <drepper@redhat.com>
912
8ad5c3cd
UD
913 * iconvdata/Makefile (modules): Add ISO8859-9E.
914 (distribute): Add iso8859-9e.c.
915 (gen-8bit-gap-modules): Add iso8859-9e.
916 * iconvdata/iso8859-9e.c: New file.
917 * iconvdata/gconv-modules: Add entries for ISO-8859-9E.
918 * iconvdata/TESTS: Likewise.
919 * iconvdata/tst-tables.sh: Likewise.
920
921 * iconvdata/koi8-r.c (HAS_HOLES): Define to 0.
922
6c522e21
UD
923 * locale/iso-639.def: Add several new entries.
924
385b4cf4
UD
9252007-09-24 Jakub Jelinek <jakub@redhat.com>
926
927 * sysdeps/generic/ldsodefs.h (struct dl_scope_free_list): Store
928 void * pointers instead of struct link_map **.
929 (_dl_scope_free): Change argument type to void *.
930 * include/link.h (struct link_map): Change type of l_reldeps
931 to struct link_map_reldeps, move l_reldepsact into that
932 struct too.
933 * elf/dl-deps.c: Include atomic.h.
934 (_dl_map_object_deps): Only change l->l_initfini when it is
935 fully populated, use _dl_scope_free for freeing it. Optimize
936 removal of libs from reldeps by using l_reserved flag, when
937 some removal is needed, allocate a new list instead of
938 reallocating and free the old with _dl_scope_free. Adjust
939 for l_reldeps and l_reldepsact changes.
940 * elf/dl-lookup.c (add_dependency): Likewise. Reorganize to allow
941 searching in l_initfini and l_reldeps without holding dl_load_lock.
942 * elf/dl-fini.c (_dl_sort_fini): Adjust for l_reldeps and
943 l_reldepsact changes.
944 * elf/dl-close.c (_dl_close_worker): Likewise.
945 * elf/dl-open.c (_dl_scope_free): Change argument type to void *.
946
90bf831b
UD
9472007-09-28 Ulrich Drepper <drepper@redhat.com>
948
949 * iconvdata/Makefile (modules): Add KOI8-RU.
950 (distribute): Add koi8-ru.c.
951 (gen-8bit-gap-modules): Add koi8-ru.
952 * iconvdata/koi8-ru.c: New file.
953 * iconvdata/gconv-modules: Add entries for KOI8-RU.
954 * iconvdata/TESTS: Likewise.
955 * iconvdata/tst-tables.sh: Likewise.
956
957 * iconvdata/koi8-r.c (HAS_HOLES): Define to 0.
958
d6cd6bf4
UD
9592007-09-26 Jakub Jelinek <jakub@redhat.com>
960
961 * misc/sys/cdefs.h (__warndecl, __errordecl): For GCC 4.3+ define
962 with __warning__/__error__ attributes.
963 (__warnattr): Define.
964 * stdlib/bits/stdlib.h (__realpath_chk_warn, __ptsname_r_chk_warn,
965 __mbstowcs_chk_warn, __wcstombs_chk_warn): New aliases with
966 __warnattr.
967 (realpath, ptsname_r, mbstowcs, wcstombs): Call __*_chk_warn instead
968 of __*_chk if compile time detectable overflow is found.
969 * libio/bits/stdio2.h (__fgets_chk_warn, __fread_chk_warn,
970 __fgets_unlocked_chk_warn, __fread_unlocked_chk_warn): New aliases
971 with __warnattr.
972 (fgets, fread, fgets_unlocked, fread_unlocked): Call __*_chk_warn
973 instead of __*_chk if compile time detectable overflow is found.
974 (__gets_alias): Rename to...
975 (__gets_warn): ... this. Add __warnattr.
976 (gets): Call __gets_warn instead of __gets_alias.
977 * socket/bits/socket2.h (__recv_chk_warn, __recvfrom_chk_warn): New
978 aliases with __warnattr.
979 (recv, recvfrom): Call __*_chk_warn instead of __*_chk if compile
980 time detectable overflow is found.
981 * posix/bits/unistd.h (__read_chk_warn, __pread_chk_warn,
982 __pread64_chk_warn, __readlink_chk_warn, __readlinkat_chk_warn,
983 __getcwd_chk_warn, __confstr_chk_warn, __getgroups_chk_warn,
984 __ttyname_r_chk_warn, __getlogin_r_chk_warn, __gethostname_chk_warn,
985 __getdomainname_chk_warn): New aliases with __warnattr.
986 (read, pread, pread64, readlink, readlinkat, getcwd, confstr,
987 getgroups, ttyname_r, getlogin_r, gethostname, getdomainname): Call
988 __*_chk_warn instead of __*_chk if compile time detectable overflow
989 is found.
990 (__getgroups_chk): Rename argument to __listlen from listlen.
991 (__getwd_alias): Rename to...
992 (__getwd_warn): ... this. Add __warnattr.
993 (getwd): Call __getwd_warn instead of __getwd_alias.
994 * wcsmbs/bits/wchar2.h (__wmemcpy_chk_warn, __wmemmove_chk_warn,
995 __wmempcpy_chk_warn, __wmemset_chk_warn, __wcsncpy_chk_warn,
996 __wcpncpy_chk_warn, __fgetws_chk_warn, __fgetws_unlocked_chk_warn,
997 __mbsrtowcs_chk_warn, __wcsrtombs_chk_warn, __mbsnrtowcs_chk_warn,
998 __wcsnrtombs_chk_warn): New aliases with __warnattr.
999 (wmemcpy, wmemmove, wmempcpy, wmemset, mbsrtowcs, wcsrtombs,
1000 mbsnrtowcs, wcsnrtombs): Call __*_chk_warn instead of __*_chk if
1001 compile time detectable overflow is found.
1002 (wcsncpy, wcpncpy): Likewise. For constant __n fix check whether
1003 to use __*_chk or not.
1004 (fgetws, fgetws_unlocked): Divide __bos by sizeof (wchar_t), both
1005 in comparisons which function should be called and in __*_chk*
1006 arguments. Call __*_chk_warn instead of __*_chk if compile time
1007 detectable overflow is found.
1008 (swprintf, vswprintf): Divide __bos by sizeof (wchar_t) in
1009 __*_chk argument.
1010 * debug/tst-chk1.c (do_test): Add a few more tests.
1011
408cfca0
UD
10122007-09-24 Ulrich Drepper <drepper@redhat.com>
1013
1014 [BZ #5058]
1015 * intl/gettextP.h (struct loaded_domain): Add conversions_lock member.
1016 * intl/loadmsgcat.c (_nl_load_domain): Initialize conversions_lock.
1017 (_nl_unload_domain): Finalize conversions_lock.
1018 * intl/dcigettext.c (_nl_find_msg): Take conversions_lock before
1019 handling table of known conversions.
1020
e6eec9ce
JJ
10212007-09-24 Jakub Jelinek <jakub@redhat.com>
1022
1023 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Use
1024 close_not_cancel_no_status instead of close.
1025
a532a41d
UD
10262007-09-13 Aurelien Jarno <aurelien@aurel32.net>
1027
682268ef 1028 [BZ #5028]
408cfca0 1029 * posix/regcomp.c (lookup_collation_sequence_value): Check that
a532a41d
UD
1030 nrules != 0 for multibyte chars.
1031
dec9ed9e
UD
10322007-09-23 Ulrich Drepper <drepper@redhat.com>
1033
91633816
UD
1034 * resolv/ns_print.c (ns_sprintrrf): Handle ns_t_a6 and ns_t_opt.
1035 Provide better error message in case the type is unknown.
1036
9cc198f6
UD
1037 [BZ #4963]
1038 * wcsmbs/wcsnlen.c: Don't reference before checking the length.
1039 * string/stratcliff.c: Make usable to test wide char functions.
1040 * wcsmbs/wcsatcliff.c: New file.
1041 * wcsmbs/Makefiel (tests): Add wcsatcliff.
1042
27f3d446
UD
1043 [BZ #4972]
1044 * iconvdata/Makefile (modules): Add MAC-CENTRALEUROPE.
1045 (distribute): Add mac-centraleurope.c.
1046 (gen-8bit-gap-modules): Add mac-centraleurope.
1047 * iconvdata/mac-centraleurope.c: New file.
1048 * iconvdata/gconv-modules: Add entries for MAC-CENTRALEUROPE.
1049 * iconvdata/TESTS: Likewise.
1050 * iconvdata/tst-tables.sh: Likewise.
1051
dec9ed9e
UD
1052 [BZ #5043]
1053 * iconv/iconv_open.c (iconv_open): For large codeset names use malloc.
1054
0435403c
UD
10552007-09-21 Ulrich Drepper <drepper@redhat.com>
1056
1057 * sysdeps/x86_64/cacheinfo.c (__x86_64_data_cache_size_half): Renamed
1058 from __x86_64_core_cache_size_half.
1059 (init_cacheinfo): Compute shared cache size for AMD processors with
1060 shared L3 correctly.
1061 * sysdeps/x86_64/memcpy.S: Adjust for __x86_64_data_cache_size_half
1062 name change.
1063 Patch in large parts by Evandro Menezes.
1064
c3266dc0
UD
10652007-09-19 Ulrich Drepper <drepper@redhat.com>
1066
715899d1
UD
1067 * elf/dl-lookup.c (add_dependency): Handle failing memory
1068 allocation for dependency list. Remove unnecessary check.
1069
e1db0493
UD
1070 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid unnecessary
1071 open/close when determining source addresses.
1072
c3266dc0
UD
1073 * crypt/Makefile (libcrypt-routines): Add sha256-crypt, sha256,
1074 sha512-crypt, and sha512.
1075 (tests): Add sha256test, sha256c-test, sha512test, and sha512c-test.
1076 (distribute): Add sha256.h and sha512.h.
1077 * crypt/crypt-entry.c (crypt): Recognize the new $5$ and $6$ prefixes
1078 and call the appropriate code.
1079 * crypt/sha256-crypt.c: New file.
1080 * crypt/sha256.c: New file.
1081 * crypt/sha256.h: New file.
1082 * crypt/sha256c-test.c: New file.
1083 * crypt/sha256test.c: New file.
1084 * crypt/sha512-crypt.c: New file.
1085 * crypt/sha512.c: New file.
1086 * crypt/sha512.h: New file.
1087 * crypt/sha512c-test.c: New file.
1088 * crypt/sha512test.c: New file.
1089
ddf51ecb
JJ
10902007-09-19 Jakub Jelinek <jakub@redhat.com>
1091
1092 * misc/bits/syslog.h (syslog): Remove extraneous argument from
1093 the inline, pass __USE_FORTIFY_LEVEL - 1 as second argument to
1094 __syslog_chk.
1095
b90395e6
UD
10962007-09-18 Jakub Jelinek <jakub@redhat.com>
1097
76c0bea7
JJ
1098 * locale/programs/charmap-dir.c (charmap_aliases): Use %ms instead of
1099 %as in fscanf format strings.
1100
00680568
JJ
1101 * sysdeps/sparc/sparc32/elf/start.S: Remove cfi_* markup.
1102 * sysdeps/sparc/sparc64/elf/start.S: Likewise.
c3266dc0
UD
1103 * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__thread_start):
1104 Likewise.
1105 * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__thread_start):
1106 Likewise.
00680568 1107
b90395e6
UD
1108 * sysdeps/generic/ldsodefs.h (DL_LOOKUP_GSCOPE_LOCK): New definition.
1109 * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Or in
1110 DL_LOOKUP_GSCOPE_LOCK into flags after THREAD_GSCOPE_SET_FLAG ().
1111 * elf/dl-sym.c (do_sym): Likewise.
1112 * include/link.h (struct link_map): Add l_serial field.
1113 * elf/dl-object.c (_dl_new_object): Initialize l_serial.
1114 * elf/dl-lookup.c (add_dependency): Add flags argument.
1115 Remember map->l_serial, if DL_LOOKUP_GSCOPE_LOCK is among
1116 flags, use THREAD_GSCOPE_RESET_FLAG before and
1117 THREAD_GSCOPE_SET_FLAG after
1118 __rtld_lock_lock_recursive (GL(dl_load_lock)) to avoid deadlock.
1119 Don't dereference map until it has been found on some list.
1120 If map->l_serial changed, return -1.
1121
874aa523
UD
11222007-09-17 Jakub Jelinek <jakub@redhat.com>
1123
1124 * include/stdio.h (__isoc99_fscanf, __isoc99_scanf,
1125 __isoc99_sscanf, __isoc99_vscanf): New prototypes.
1126 (__isoc99_vsscanf, __isoc99_vfscanf): New prototypes, add
1127 libc_hidden_proto.
1128 * include/wchar.h (__isoc99_fwscanf, __isoc99_wscanf,
1129 __isoc99_swscanf, __isoc99_vwscanf): New prototypes.
1130 (__isoc99_vswscanf, __isoc99_vfwscanf): New prototypes,
1131 add libc_hidden_proto.
1132 * libio/stdio.h (fscanf, scanf, sscanf, vfscanf, vscanf,
1133 vsscanf): Redirect to __isoc99_* if strict ISO C99 or POSIX
1134 conformance requested.
1135 * wcsmbs/wchar.h (fwscanf, wscanf, swscanf, vfwscanf, vwscanf,
1136 vswscanf): Redirect to __isoc99_* if strict ISO C99 or POSIX
1137 conformance requested.
1138 * libio/bits/stdio-ldbl.h (fscanf, scanf, sscanf, vfscanf, vscanf,
1139 vsscanf): Redirect to __nldbl___isoc99_* if strict ISO C99 or POSIX
1140 conformance requested.
1141 * wcsmbs/bits/wchar-ldbl.h (fwscanf, wscanf, swscanf, vfwscanf,
1142 vwscanf, vswscanf): Redirect to __nldbl___isoc99_* if strict
1143 ISO C99 or POSIX conformance requested.
1144 * stdio-common/Versions (libc): Export __isoc99_scanf@@GLIBC_2.7,
1145 __isoc99_vscanf@@GLIBC_2.7, __isoc99_fscanf@@GLIBC_2.7,
1146 __isoc99_vfscanf@@GLIBC_2.7, __isoc99_sscanf@@GLIBC_2.7
1147 and __isoc99_vsscanf@@GLIBC_2.7.
1148 * stdio-common/Makefile (routines): Add isoc99_scanf, isoc99_vscanf,
1149 isoc99_fscanf, isoc99_vfscanf, isoc99_sscanf and isoc99_vsscanf.
1150 (tests): Add scanf14.
1151 (CFLAGS-vfprintf.c, CFLAGS-fprintf.c, CFLAGS-printf.c,
1152 CFLAGS-vfwprintf.c, CFLAGS-vfscanf.c, CFLAGS-vfwscanf.c,
1153 CFLAGS-fscanf.c, CFLAGS-scanf.c, CFLAGS-isoc99_vfscanf.c,
1154 CFLAGS-isoc99_vscanf.c, CFLAGS-isoc99_fscanf.c,
1155 CFLAGS-isoc99_scanf.c): Add $(exceptions).
1156 (CFLAGS-scanf15.c): Add various -I paths to prevent the compiler
1157 from using internal headers.
1158 * wcsmbs/Versions (libc): Export __isoc99_wscanf@@GLIBC_2.7,
1159 __isoc99_vwscanf@@GLIBC_2.7, __isoc99_fwscanf@@GLIBC_2.7,
1160 __isoc99_vfwscanf@@GLIBC_2.7, __isoc99_swscanf@@GLIBC_2.7
1161 and __isoc99_vswscanf@@GLIBC_2.7.
1162 * wcsmbs/Makefile (routines): Add isoc99_wscanf, isoc99_vwscanf,
1163 isoc99_fwscanf, isoc99_vfwscanf, isoc99_swscanf and isoc99_vswscanf.
1164 (CFLAGS-isoc99_wscanf.c, CFLAGS-isoc99_fwscanf.c,
1165 CFLAGS-isoc99_vwscanf.c, CFLAGS-isoc99_vfwscanf.c): Add $(exceptions).
1166 (CPPFLAGS): Add -D_IO_MTSAFE_IO if needed.
1167 * stdio-common/isoc99_scanf.c: New file.
1168 * stdio-common/isoc99_vsscanf.c: New file.
1169 * stdio-common/isoc99_vscanf.c: New file.
1170 * stdio-common/isoc99_vfscanf.c: New file.
1171 * stdio-common/isoc99_fscanf.c: New file.
1172 * stdio-common/isoc99_sscanf.c: New file.
1173 * wcsmbs/isoc99_fwscanf.c: New file.
1174 * wcsmbs/isoc99_vswscanf.c: New file.
1175 * wcsmbs/isoc99_swscanf.c: New file.
1176 * wcsmbs/isoc99_wscanf.c: New file.
1177 * wcsmbs/isoc99_vwscanf.c: New file.
1178 * wcsmbs/isoc99_vfwscanf.c: New file.
1179 * libio/libio.h (_IO_FLAGS2_SCANF_STD): Define.
1180 * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): Also
1181 clear _IO_FLAGS2_SCANF_STD bit from _flags2.
1182 * stdio-common/vfscanf.c (_IO_vfscanf_internal): Don't
1183 handle %as, %aS and %a[ if _IO_FLAGS2_SCANF_STD is set in _flags2.
1184 * stdio-common/scanf14.c: New test.
1185 * stdio-common/scanf15.c: New test.
1186 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add
1187 isoc99_scanf, isoc99_fscanf, isoc99_sscanf,
1188 isoc99_vscanf, isoc99_vfscanf, isoc99_vsscanf,
1189 isoc99_wscanf, isoc99_fwscanf, isoc99_swscanf,
1190 isoc99_vwscanf, isoc99_vfwscanf and isoc99_vswscanf.
1191 * sysdeps/ieee754/ldbl-opt/Versions (libc): Export
1192 __nldbl___isoc99_scanf@@GLIBC_2.7,
1193 __nldbl___isoc99_fscanf@@GLIBC_2.7,
1194 __nldbl___isoc99_sscanf@@GLIBC_2.7,
1195 __nldbl___isoc99_vscanf@@GLIBC_2.7,
1196 __nldbl___isoc99_vfscanf@@GLIBC_2.7,
1197 __nldbl___isoc99_vsscanf@@GLIBC_2.7,
1198 __nldbl___isoc99_wscanf@@GLIBC_2.7,
1199 __nldbl___isoc99_fwscanf@@GLIBC_2.7,
1200 __nldbl___isoc99_swscanf@@GLIBC_2.7,
1201 __nldbl___isoc99_vwscanf@@GLIBC_2.7,
1202 __nldbl___isoc99_vfwscanf@@GLIBC_2.7
1203 and __nldbl___isoc99_vswscanf@@GLIBC_2.7.
1204 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__isoc99_scanf,
1205 __isoc99_fscanf, __isoc99_sscanf, __isoc99_vscanf,
1206 __isoc99_vfscanf, __isoc99_vsscanf, __isoc99_wscanf,
1207 __isoc99_fwscanf, __isoc99_swscanf, __isoc99_vwscanf,
1208 __isoc99_vfwscanf, __isoc99_vswscanf): Add NLDBL_DECL.
1209 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
1210 (__nldbl___isoc99_scanf, __nldbl___isoc99_fscanf,
1211 __nldbl___isoc99_sscanf, __nldbl___isoc99_vscanf,
1212 __nldbl___isoc99_vfscanf, __nldbl___isoc99_vsscanf,
1213 __nldbl___isoc99_wscanf, __nldbl___isoc99_fwscanf,
1214 __nldbl___isoc99_swscanf, __nldbl___isoc99_vwscanf,
1215 __nldbl___isoc99_vfwscanf, __nldbl___isoc99_vswscanf): New
1216 functions.
1217 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vfscanf.c: New file.
1218 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_swscanf.c: New file.
1219 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vwscanf.c: New file.
1220 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_wscanf.c: New file.
1221 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_scanf.c: New file.
1222 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_sscanf.c: New file.
1223 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vsscanf.c: New file.
1224 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_fwscanf.c: New file.
1225 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vfwscanf.c: New file.
1226 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vswscanf.c: New file.
1227 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vscanf.c: New file.
1228 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_fscanf.c: New file.
1229
1230 * stdio-common/Makefile (tests): Add scanf13.
1231 (scanf13-ENV): New.
1232 * stdio-common/vfscanf.c (_IO_vfscanf_internal): Handle
1233 m modifier followed by l.
1234 (STRING_ARG): Add width argument.
1235 (_IO_vfscanf_internal) <case L_('c')>: Handle %mc.
1236 <case L_('C')>: Handle %mlc and %mC.
1237 <case L_('s'), case L_('S'), case L_('[')>: Adjust STRING_ARG
1238 arguments.
1239 * stdio-common/scanf13.c: New test.
1240
1241 * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): Clear
1242 the _IO_FLAGS2_FORTIFY bit from _flags2 rather than _flags.
1243
883f7943
UD
12442007-09-18 Ulrich Drepper <drepper@redhat.com>
1245
1246 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Correct return value
874aa523 1247 type and __THROW marker of splice, vmsplice, and tee.
883f7943
UD
1248 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
1249 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
1250 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
1251 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
1252 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
1253 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
1254 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
1255 * sysdeps/unix/sysv/linux/syscalls.list: Mark splice, vmsplice, and tee
1256 as cancellation points.
1257
3524efe0
UD
12582003-11-01 Daniel Jacobowitz <dan@debian.org>
1259
1260 * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_discover_osversion): Don't
1261 parse more than three parts of the version number.
1262
267c54dc
UD
12632007-09-15 Ulrich Drepper <drepper@redhat.com>
1264
1265 * stdio-common/vfscanf.c (_IO_vfwscanf): Add support for 'm'
1266 modifier. Patch by Jakub Jelinek.
1267
5e17d6b7
UD
12682007-08-26 Jakub Jelinek <jakub@redhat.com>
1269
1270 * sysdeps/unix/sysv/linux/i386/Makefile (sysdep_routines): Add
1271 call_fallocate in misc subdir.
1272 * sysdeps/unix/sysv/linux/i386/call_fallocate.S: New file.
1273 * sysdeps/unix/sysv/linux/i386/syscalls.list (fallocate64): Remove.
1274 * sysdeps/unix/sysv/linux/i386/posix_fallocate.c: Use __call_fallocate
1275 instead of __fallocate64.
1276 * sysdeps/unix/sysv/linux/i386/posix_fallocate64.c: Likewise.
1277
3a50811c
UD
12782007-09-15 Jakub Jelinek <jakub@redhat.com>
1279
1280 * rt/Versions (librt): Export __mq_open_2@@GLIBC_2.7.
1281 * rt/Makefile (headers): Add bits/mqueue2.h.
1282 * rt/mqueue.h: Include bits/mqueue2.h if -D_FORTIFY_SOURCE=2,
1283 optimizing with GCC and __va_arg_pack_len is defined.
1284 * rt/bits/mqueue2.h: New file.
1285 * rt/mq_open.c (__mq_open): Renamed from mq_open.
1286 (mq_open): New strong_alias.
1287 (__mq_open_2): New function.
1288 * sysdeps/unix/sysv/linux/mq_open.c (__mq_open): Renamed from mq_open.
1289 (mq_open): New strong_alias.
1290 (__mq_open_2): New function.
1291 * debug/Versions (libc): Export __fortify_fail@@GLIBC_PRIVATE.
1292 * Versions.def (librt): Add GLIBC_2.7 version.
1293 * debug/fortify_fail.c (__fortify_fail): Add libc_hidden_def.
1294 * include/stdio.h (__fortify_fail): Add libc_hidden_proto.
1295
1296 * misc/sys/cdefs.h (__errordecl, __va_arg_pack_len): Define.
1297 * io/fcntl.h: Include bits/fcntl2.h when __va_arg_pack_len
1298 is defined rather than when not C++.
1299 * io/bits/fcntl2.h (__open_alias, __open64_alias, __openat_alias,
1300 __openat64_alias): New redirects.
1301 (__open_too_many_args, __open_missing_mode, __open64_too_many_args,
1302 __open64_missing_mode, __openat_too_many_args, __openat_missing_mode,
1303 __openat64_too_many_args, __openat64_missing_mode): New __errordecls.
1304 (open, open64, openat, openat64): Rewrite as __extern_always_inline
1305 functions instead of function-like macros.
1306
9bdfff60
UD
13072007-09-14 H.J. Lu <hongjiu.lu@intel.com>
1308
1309 * sysdeps/i386/i586/memcpy.S (__memcpy_chk): New definition.
1310 * sysdeps/i386/i586/mempcpy.S (__memcpy_chk): New definition.
1311 * sysdeps/i386/i586/memset.S (__memset_chk): New definition.
1312
ab905672
UD
13132007-09-15 Mike Frysinger <vapier@gentoo.org>
1314
1315 * inet/inet_net.c: Reset digit to 0 for inputs starting with "0x".
1316 * inet/tst-network.c (tests): Add edge case tests for "0", "0x", "0x0".
1317
9bd68902
RM
13182007-09-14 Mike Frysinger <vapier@gentoo.org>
1319
1320 * inet/tst-network.c: Increment ERRORS for failing tests.
1321
de1c3ebb
UD
13222007-09-07 Jakub Jelinek <jakub@redhat.com>
1323
1324 * misc/sys/cdefs.h (__va_arg_pack): Define for GCC 4.3+.
1325 * misc/bits/syslog.h (syslog): When __va_arg_pack is defined,
1326 implement as __extern_always_inline function.
1327 (vsyslog): Define as __extern_always_inline function unconditionally.
1328 * libio/bits/stdio2.h (sprintf, snprintf, printf, fprintf):
1329 When __va_arg_pack is defined, implement as __extern_always_inline
1330 functions.
1331 (vsprintf, vsnprintf, vprintf, vfprintf): Define as
1332 __extern_always_inline functions unconditionally.
1333 * libio/bits/stdio.h (vprintf): Ifdef out the inline when
1334 bits/stdio2.h will be included.
1335 * wcsmbs/bits/wchar2.h (__swprintf_alias): New redirect.
1336 (swprintf, wprintf, fwprintf): When __va_arg_pack is defined,
1337 implement as __extern_always_inline functions.
1338 (vswprintf, vwprintf, vfwprintf): Define as
1339 __extern_always_inline functions unconditionally.
1340 * debug/tst-chk1.c (do_test): Enable remaining tests for C++.
1341
13422007-09-03 Jakub Jelinek <jakub@redhat.com>
1343
1344 * misc/sys/cdefs.h (__extern_inline, __extern_always_inline): Only
1345 define in C++ for GCC 4.3+, in C++ always use __gnu_inline__
1346 attribute.
1347 * include/features.h (__USE_EXTERN_INLINES): Define only when
1348 __extern_inline is defined.
1349 * stdlib/stdlib.h: Include bits/stdlib.h when __extern_always_inline
1350 is defined instead of when not __cplusplus.
1351 * misc/sys/syslog.h: Include bits/syslog.h when __extern_always_inline
1352 is defined instead of when not __cplusplus.
1353 * socket/sys/socket.h: Include bits/socket2.h when
1354 __extern_always_inline is defined instead of when not __cplusplus.
1355 * libio/stdio.h: Include bits/stdio2.h when __extern_always_inline
1356 is defined instead of when not __cplusplus.
1357 * posix/unistd.h: Include bits/unistd.h when __extern_always_inline
1358 is defined instead of when not __cplusplus.
1359 * string/string.h: Include bits/string3.h when __extern_always_inline
1360 is defined instead of when not __cplusplus.
1361 * wcsmbs/wchar.h: Include bits/wchar2.h when __extern_always_inline
1362 is defined instead of when not __cplusplus.
1363 (btowc, wctob): Don't guard the inlines with ifndef __cplusplus.
1364 * io/fcntl.h: Don't include bits/fcntl2.h if __extern_always_inline
1365 is not defined.
1366 * misc/bits/syslog-ldbl.h: Guard *_chk stuff with
1367 defined __extern_always_inline instead of !defined __cplusplus.
1368 * libio/bits/stdio-ldbl.h: Likewise.
1369 * wcsmbs/bits/wchar-ldbl.h: Likewise.
1370 * misc/bits/syslog.h (syslog): Don't define for C++.
1371 (vsyslog): Use __extern_always_inline function for C++ instead of
1372 a macro.
1373 * libio/bits/stdio.h (__STDIO_INLINE): Define to __extern_inline
1374 whenever that macro is defined.
1375 (vprintf): Don't provide the inline for C++.
1376 (fread_unlocked, fwrite_unlocked): Don't define the macros for C++.
1377 * libio/bits/stdio2.h (sprintf, snprintf, printf, fprintf): Don't
1378 define the macros for C++.
1379 (vsprintf, vsnprintf, vprintf, vfprintf): Define as
1380 __extern_always_inline functions for C++.
1381 * io/sys/stat.h (stat, lstat, fstat, fstatat, mknod, mknodat,
1382 stat64, lstat64, fstat64, fstatat64): Don't define if not
1383 __USE_EXTERN_INLINES.
1384 * wcsmbs/bits/wchar2.h: Fix #error message.
1385 (swprintf, wprintf, fwprintf): Don't define the macros for C++.
1386 (vswprintf, vwprintf, vfwprintf): Define using
1387 __extern_always_inline functions for C++.
1388 * string/bits/string3.h: Don't #undef macros if __cplusplus.
1389 (memcpy, memmove, mempcpy, memset, bcopy, bzero, strcpy, stpcpy,
1390 strncpy, strcat, strncat): Define as __extern_always_inline
1391 functions instead of macros for C++.
1392 * math/bits/cmathcalls.h: Guard __extern_inline routines with
1393 defined __extern_inline.
1394 * sysdeps/alpha/fpu/bits/mathinline.h (__MATH_INLINE): Define
1395 to __extern_inline whenever that macro is defined.
1396 * sysdeps/ia64/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
1397 * sysdeps/i386/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
1398 * sysdeps/i386/i486/bits/string.h (__STRING_INLINE): Likewise.
1399 * sysdeps/s390/bits/string.h (__STRING_INLINE): Likewise.
1400 * sysdeps/s390/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
1401 * sysdeps/powerpc/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
1402 * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
1403 * sysdeps/sparc/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
1404 * sysdeps/unix/sysv/linux/sys/sysmacros.h (gnu_dev_major,
1405 gnu_dev_minor, gnu_dev_makedev): Remove __extern_inline from
1406 prototypes. Only provide __extern_inline routines if
1407 __USE_EXTERN_INLINES.
1408 * debug/Makefile: Add rules to build and run tst-{,lfs}chk{4,5,6}
1409 tests.
1410 * debug/tst-chk1.c (do_prepare, do_test): Allow compilation as C++.
1411 For now avoid some *printf tests in C++. Skip all testing
1412 if __USE_FORTIFY_LEVEL is defined, but __extern_always_inline macro
1413 is not.
1414 * debug/tst-chk4.cc: New file.
1415 * debug/tst-chk5.cc: New file.
1416 * debug/tst-chk6.cc: New file.
1417 * debug/tst-lfschk4.cc: New file.
1418 * debug/tst-lfschk5.cc: New file.
1419 * debug/tst-lfschk6.cc: New file.
1420 * include/wchar.h (__vfwprintf_chk, __vswprintf_chk): Avoid
1421 prototypes in C++.
1422 * include/stdio.h (__sprintf_chk, __snprintf_chk, __vsprintf_chk,
1423 __vsnprintf_chk, __printf_chk, __fprintf_chk, __vprintf_chk,
1424 __vfprintf_chk, __fgets_unlocked_chk, __fgets_chk): Likewise.
1425
b53eef9c
UD
14262007-09-13 Ulrich Drepper <drepper@redhat.com>
1427
1428 * po/cs.po: Update from translation team.
1429
af385590
RM
14302007-09-11 Roland McGrath <roland@redhat.com>
1431
1432 * posix/Makefile ($(objpfx)getconf.speclist): Make it empty if cross
1433 compiling.
1434
af2f25a1
RM
14352007-09-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
1436
1437 * sysdeps/mach/hurd/bits/ioctls.h (TAB3): New macro.
1438
94733ae0
RM
14392007-09-05 Roland McGrath <roland@redhat.com>
1440
1441 * manual/signal.texi (Signaling Another Process): Typo fix.
1442 From Karl Berry <karl@freefriends.org>.
1443
de4d8563
UD
14442007-08-29 Ulrich Drepper <drepper@redhat.com>
1445
1446 * sysdeps/unix/sysv/linux/check_pf.c (IFA_F_OPTIMISTIC): Define to
1447 zero if not defined.
1448 (make_request): Recognize optimistic addresses and treat them like
1449 deprecated addresses.
1450 Reported by Neil Horman <nhorman@redhat.com>.
1451
0adfcc05
UD
14522007-08-28 Ulrich Drepper <drepper@redhat.com>
1453
f3c54060
UD
1454 * nscd/connections.c (send_ro_fd): Also transfer file size.
1455 * nscd/nscd_helper.c (get_mapping): If nscd also transfers the
1456 file size don't call fstat.
1457
0adfcc05
UD
1458 * nscd/nscd_helper.c (get_mapping): Avoid the pread call, just go
1459 ahead and map the file. This should always be correct and we can
1460 catch problems later.
1461
3586b2b6
UD
14622007-08-28 Jakub Jelinek <jakub@redhat.com>
1463
1464 * libio/bits/stdio2.h (__fread_chk, __fread_unlocked_chk): New
1465 prototypes.
1466 (__fread_alias, __fread_unlocked_alias): New aliases.
1467 (fread): New extern inline.
1468 (fread_unlocked): Likewise. Undef macro before definition of
1469 the inline function.
1470 * debug/Makefile (routines): Add fread_chk and fread_u_chk.
1471 (CFLAGS-fread_chk.c, CFLAGS-fread_u_chk.c): Add.
1472 * debug/Versions (libc): Export __fread_chk@@GLIBC_2.7
1473 and __fread_unlocked_chk@@GLIBC_2.7.
1474 * debug/fread_chk.c: New file.
1475 * debug/fread_u_chk.c: New file.
1476 * debug/tst-chk1.c (do_test): Add fread and fread_unlocked tests.
1477
3704aa0b
RM
14782007-08-27 Jakub Jelinek <jakub@redhat.com>
1479
1480 * sysdeps/unix/sysv/linux/syscalls.list
1481 (personality): Change caller to EXTRA.
1482
80e7d6a6
UD
14832007-08-25 Ulrich Drepper <drepper@redhat.com>
1484
278bfa00
UD
1485 * iconvdata/iso-2022-kr.c (BODY): Fake initialization of array buf
1486 to keep gcc quiet.
1487 * iconvdata/iso-2022-cn.c (BODY): Likewise.
1488
a45d733c
UD
1489 * locale/programs/ld-collate.c (collate_output): Avoid warning if
1490 NDEBUG is defined.
1491
5dfeae0e
UD
1492 * Makerules: Use -p option with mkdir.
1493
8f1fe057
UD
1494 * sunrpc/key_prot.c (xdr_unixcred): Work around gcc alias warning.
1495 * nis/nis_xdr.c (_xdr_nis_server): Likewise.
bd0dcd28
UD
1496 (_xdr_directory_obj): Likewise.
1497 (xdr_entry_obj): Likewise.
1498 (xdr_group_obj): Likewise.
1499 (xdr_link_obj): Likewise.
1500 (xdr_table_obj): Likewise.
1501 (_xdr_nis_result): Likewise.
1502 (_xdr_ns_request): Likewise.
1503 (_xdr_ib_request): Likewise.
1504 (_xdr_nis_taglist): Likewise.
1505 (xdr_cback_data): Likewise.
8f1fe057 1506 * nis/yp_xdr.c (xdr_ypmaplist): Likewise.
bd0dcd28
UD
1507 (xdr_ypresp_maplist): Likewise.
1508
01339a67
UD
1509 * stdio-common/Makefile: Avoid format string warning for tst-sprint.
1510
3fa10468
UD
1511 * posix/regex_internal.h: Prevent some declarations and definitions
1512 to be seen when used in tests.
1513
ec1e04de
UD
1514 * posix/tst-rfc3484.c (__idna_to_unicode_lzlz): Initialize *OUTPUT.
1515 * posix/tst-rfc3484-2.c (__idna_to_unicode_lzlz): Likewise.
1516
7a344d1d
UD
1517 * debug/Makefile: Disable format checking when compiling tst-chk?.c.
1518
f8f6ff5d
UD
1519 * config.make.in (datarootdir): Add to shut up configure.
1520
76fca9f1
UD
1521 * sysdeps/x86_64/cacheinfo.c (handle_amd): Fix computation of
1522 associativity for fully-associative caches.
1523
80e7d6a6
UD
1524 * sysdeps/x86_64/cacheinfo.c (handle_amd): Handle L3 cache
1525 requests. Fill on more associativity values for L2.
1526 Patch mostly by Evandro Menezes.
1527
cb5ba304
UD
15282007-08-24 Ulrich Drepper <drepper@redhat.com>
1529
d250df8c
UD
1530 * sysdeps/unix/sysv/linux/x86_64/init-first.c
1531 (_libc_vdso_platform_setup): Avoid using exported variable by using
1532 alias.
1533
88f61aaf
UD
1534 * resolv/arpa/nameser.h (NS_OPT_DNSSEC_OK): Define.
1535
cb5ba304 1536 * sysdeps/unix/sysv/linux/i386/syscalls.list: No reason to mark
cb104bd7 1537 fallocate64 as EXTRA. It is not referenced if the symbol isn't
cb5ba304
UD
1538 defined.
1539
62e1b1f5
UD
15402007-08-23 Ulrich Drepper <drepper@redhat.com>
1541
44b2e581
UD
1542 * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Correctly
1543 align stack for call if pltexit is to be used.
1544
73e3ff07
UD
1545 [BZ #3924]
1546 * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Correctly
1547 align for function call in case pltexit has to be called later.
1548
62e1b1f5
UD
1549 * sysdeps/i386/dl-trampoline.S (_dl_runtime_resolve): Avoid
1550 implicit atomic operation when storing function pointer.
1551 (_dl_runtime_profile): Likewise.
1552
0008163a
UD
15532007-08-17 Jakub Jelinek <jakub@redhat.com>
1554
1555 * nis/nis_table.c (nis_list): Don't fail if __follow_path returned
1556 NIS_NOTFOUND.
1557
55ea8790
UD
15582007-08-21 Ulrich Drepper <drepper@redhat.com>
1559
2e0e1a05
UD
1560 [BZ #4566]
1561 * string/strtok.c: Fix typo in comment.
1562
682e4437
UD
1563 [BZ #4582]
1564 * debug/segfault.c: Fix typos in comments.
1565
7d55c9eb
UD
1566 [BZ #4588]
1567 * stdio-common/tempnam.c: Fix comment, it is not checked that
1568 TMPDIR points to a writable directory.
1569
0f8f993c
UD
1570 [BZ #4726]
1571 * resolv/res_send.c (__libc_res_nsend): Initialize all of the
1572 memory allocated for the name server address.
1573
1465dd0f
UD
1574 [BZ #4946]
1575 * nscd/connections.c (handle_request): Using sendfile always
1576 requires that mmap is used for the database.
1577 Patch by Petr Baudis <pasky@suse.cz>.
1578
c44d3bdf
UD
1579 [BZ #4905]
1580 * nscd/hstcache.c (cache_addhst): When reloading an entry which
1581 suddenly has two or more addresses, ignore it and remove the old
1582 entry.
1583
1ce7d80d
UD
1584 [BZ #4814]
1585 * resolv/res_hconf.c: Prepare for compiling outside libc.
1586 * nscd/res_hconf.c: New file.
1587 * nscd/Makefile (nscd-modules): Add res_hconf. Add rules to build
1588 the new file.
1589 * nscd/gethstbynm2_r.c (NEED__RES_HCONF): Define.
1590 * nscd/gethstbyad_r.c (NEED__RES_HCONF): Likewise.
1591
a30d41c1
UD
1592 * nscd/hstcache.c (cache_addhst): Minimal optimization.
1593
45dc3ad7
UD
1594 [BZ #4925]
1595 * debug/pcprofiledump.c: Turn on internationalization by calling
1596 setlocale. Patch mostly by Benno Schulenberg.
1597
55ea8790
UD
1598 [BZ #4936]
1599 * iconv/gconv.c (__gconv): If flush was successful, clear rest of
1600 the state.
1601 * iconvdata/Makefile: Add rules to build and run bug-iconv5.
1602 * iconvdata/bug-iconv5.c: New file.
1603
0b82ff74
UD
16042007-08-04 Carlos O'Donell <carlos@systemhalted.org>
1605
55ea8790 1606 [BZ #4896]
0b82ff74
UD
1607 * elf/elf.h: Define R_PARISC_PLABEL21L, R_PARISC_PLABEL14R,
1608 R_PARISC_GNU_VTENTRY, R_PARISC_GNU_VTINHERIT, R_PARISC_TLS_GD21L,
1609 R_PARISC_TLS_GD14R, R_PARISC_TLS_GDCALL, R_PARISC_TLS_LDM21L,
1610 R_PARISC_TLS_LDM14R, R_PARISC_TLS_LDMCALL, R_PARISC_TLS_LDO21L,
1611 R_PARISC_TLS_LDO14R, R_PARISC_TLS_DTPMOD32, R_PARISC_TLS_DTPMOD64,
1612 R_PARISC_TLS_DTPOFF32, R_PARISC_TLS_DTPOFF64, R_PARISC_TLS_LE21L,
1613 R_PARISC_TLS_LE14R, R_PARISC_TLS_IE21L, R_PARISC_TLS_IE14R,
1614 R_PARISC_TLS_TPREL32, R_PARISC_TLS_TPREL64.
1615
ee16a55a
UD
16162007-08-21 Ulrich Drepper <drepper@redhat.com>
1617
1618 [BZ #4937]
1619 * elf/do-lookup.h (do_lookup_x): Minimal improvement in hash
1620 lookup loop. Suggested by John Reiser.
1621
b211fe0f
JJ
16222007-08-21 Jakub Jelinek <jakub@redhat.com>
1623
1624 * sysdeps/unix/sysv/linux/alpha/sysdep.h: Include tls.h.
1625
fb84593c
UD
16262007-08-20 Ulrich Drepper <drepper@redhat.com>
1627
1628 * csu/libc-start.c: Don't handle VDSO_SETUP here.
1629 * sysdeps/unix/sysv/linux/init-first.c: Handle it here instead.
1630 * sysdeps/unix/sysv/linux/x86_64/libc-start.c: Renamed to...
1631 * sysdeps/unix/sysv/linux/x86_64/init-first.c: ...this. New file.
1632 * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Move VDSO_SETUP code
1633 to...
1634 * sysdeps/unix/sysv/linux/x86_64/init-first.c: ...here. New file.
1635
b83fb35c
UD
16362007-08-18 Ulrich Drepper <drepper@redhat.com>
1637
1638 * po/nl.po: Update from translation team.
1639
20806a70
AJ
16402007-08-16 Andreas Jaeger <aj@suse.de>
1641
1642 * locale/localeinfo.h: Make _nl_category_name_idxs extern.
1643 Reported by Peter Festner <peter.festner@ewetel.net>.
1644
42282d57
JJ
16452007-08-17 Jakub Jelinek <jakub@redhat.com>
1646
1647 * login/tst-grantpt.c (test_einval): Add 3rd argument to open.
1648
8a501135
JJ
16492007-08-16 Jakub Jelinek <jakub@redhat.com>
1650
cb84d1e4
JJ
1651 * elf/Makefile ($(objpfx)ld.so): Use readelf -s and awk instead of nm -u
1652 to check for undefined symbols.
1653
91ddd9c4
JJ
1654 * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone):
1655 If the syscall fails, set errno to the actual returned error number
1656 rather than EINVAL.
1657 * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__clone): If
1658 arguments are incorrect, set errno to EINVAL, if the syscall
1659 fails, set errno to the actual returned error number.
1660
18915760
JJ
1661 * stdlib/bits/stdlib-ldbl.h (__strtold_internal): Remove.
1662 * wcsmbs/bits/wchar-ldbl.h (__wcstold_internal): Remove.
1663
8a501135
JJ
1664 * sysdeps/sparc/sparc32/sparcv9b/memcpy.S: Moved to...
1665 * sysdeps/sparc/sparc32/sparcv9/sparcv9b/memcpy.S: ... here. New
1666 file.
1667 (ASI_PNF, ASI_BLK_P): Don't define.
1668 * sysdeps/sparc/sparc32/sparcv9v/memcpy.S: Moved to...
1669 * sysdeps/sparc/sparc32/sparcv9/sparcv9v/memcpy.S: ... here. New
1670 file.
1671 * sysdeps/sparc/sparc32/sparcv9v/memset.S: Moved to...
1672 * sysdeps/sparc/sparc32/sparcv9/sparcv9v/memset.S: ... here. New
1673 file.
1674
e4720b0e
JJ
16752007-08-15 Jakub Jelinek <jakub@redhat.com>
1676
1677 * sysdeps/sparc/fpu/fraiseexcpt.c (__feraiseexcept): Fix raising
1678 FE_UNDERFLOW on Niagara CPUs.
1679
1680 * sysdeps/sparc/fpu/feholdexcpt.c (feholdexcept): Clear all
1681 exceptions.
1682
702a9414
JJ
16832007-08-14 Jakub Jelinek <jakub@redhat.com>
1684
467d1345
JJ
1685 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_runtime_setup): No
1686 need to check GLRO(dl_hwcap) & HWCAP_SPARC_FLUSH on sparcv9.
1687 (sparc_fixup_plt): Add do_flush argument instead of figuring whether
1688 flush should be used or not inside of the function.
1689 (elf_machine_fixup_plt, elf_machine_rela): Adjust caller.
1690
1691 * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone,
1692 __thread_start): Use HIDDEN_JUMPTARGET.
1693 * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__clone,
1694 __thread_start): Likewise.
1695 * sysdeps/unix/sysv/linux/sparc/sysdep.h (JUMPTARGET): Define.
1696
702a9414
JJ
1697 * sysdeps/ieee754/ldbl-64-128/strtold_l.c (__STRTOF): Declare.
1698 Add libc_hidden_proto.
1699 (STRTOF): Add libc_hidden_proto.
1700 (___new_strtold_l, ___new_wcstold_l): New weak aliases.
1701 (strtold_l, wcstold_l): Use them as second argument for
1702 long_double_symbol.
1703
c6c8f0ec
UD
17042007-08-14 Ulrich Drepper <drepper@redhat.com>
1705
1706 * elf/dl-misc.c: Undo last change. The kernel won't allow it.
1707
5e88abf9
UD
17082007-08-13 Kaz Kojima <kkojima@rr.iij4u.or.jp>
1709
1710 * stdlib/strtold_l.c: Include wchar.h if needed. Add libc_hidden_def.
1711
fc4819b0
UD
17122007-08-14 Ulrich Drepper <drepper@redhat.com>
1713
1714 * po/bg.po: New file. From the translation team.
1715
22502ea2
UD
17162007-08-13 Jakub Jelinek <jakub@redhat.com>
1717
1718 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PSELECT,
1719 __ASSUME_PPOLL, __ASSUME_ATFCTS, __ASSUME_SET_ROBUST_LIST,
1720 __ASSUME_UTIMENSAT, __ASSUME_FALLOCATE): Update per-arch conditions
1721 when each feature was introduced.
1722
1723 * sysdeps/unix/sysv/linux/dl-vdso.c: Don't include dl-hash.h.
1724 * sysdeps/unix/sysv/linux/dl-vdso.h: Don't include dl-hash.h if NDEBUG.
1725 (CHECK_HASH): New macro.
1726 (PREPARE_VERSION): Use it.
1727
1728 * sysdeps/unix/sysv/linux/pselect.c (__generic_pselect): Only provide
1729 prototype if not __ASSUME_PSELECT.
1730 * sysdeps/unix/sysv/linux/ppoll.c (__generic_ppoll): Only provide
1731 prototype if not __ASSUME_PPOLL.
1732
1733 * sysdeps/unix/sysv/linux/dl-osinfo.h (ROUND): #undef after use.
1734
1735 * sysdeps/unix/clock_settime.c (freq, __pthread_clock_settime,
1736 hp_timing_settime): Don't define or declare if HANDLED_CPUTIME
1737 is defined.
1738
9c6f6953
UD
17392007-08-13 Ulrich Drepper <drepper@redhat.com>
1740
1741 * sysdeps/unix/sysv/linux/x86_64/libc-start.c
1742 (_libc_vdso_platform_setup): If vDSO is not available point
1743 __vdso_gettimeofday to the vsyscall.
1744 * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S [SHARED]: Use
1745 __vdso_gettimeofday instead of vsyscall.
1746
f8de5057
UD
17472007-08-13 Jakub Jelinek <jakub@redhat.com>
1748
1749 * nscd/servicescache.c: Include kernel-features.h.
1750 * nscd/gai.c: Likewise.
1751 * sysdeps/unix/sysv/linux/statfs64.c: Likewise.
1752 * sysdeps/unix/sysv/linux/fstatfs64.c: Likewise.
1753 * sysdeps/unix/sysv/linux/fxstatat.c: Likewise.
1754 * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S: Likewise.
1755 * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S: Likewise.
1756 * sysdeps/unix/sysv/linux/xstatconv.c: Likewise.
1757 * sysdeps/unix/sysv/linux/if_index.c: Likewise.
1758 * sysdeps/unix/sysv/linux/sparc/sparc64/xstat.c: Likewise.
1759 * sysdeps/unix/sysv/linux/ifaddrs.c: Likewise.
1760
3c87d79d
UD
17612007-08-12 Ulrich Drepper <drepper@redhat.com>
1762
ea37207a
UD
1763 * elf/dl-dst.h: No need for _dl_dst_count, _dl_dst_substitute,
1764 and _dl_get_origin defines anymore.
1765
4eb375fe
UD
1766 * sysdeps/unix/sysv/linux/clock_gettime.c (maybe_syscall_gettime_cpu):
1767 Build fix for systems which might lack POSIX timer support.
1768
3c87d79d
UD
1769 * sysdeps/unix/sysv/linux/x86_64/libc-start.c
1770 (_libc_vdso_platform_setup): Mangle function pointers before storing
1771 them.
1772 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_VSYSCALL):
1773 Demangle vdso pointer before use.
1774 (INTERNAL_VSYSCALL): Likewise.
1775
1776 * elf/cache.c (primes): Mark as const.
1777 Noted by Roland McGrath.
1778
27d9ffda
UD
17792007-08-01 Andreas Jaeger <aj@suse.de>
1780 Jakub Jelinek <jakub@redhat.com>
1781
1782 * elf/ldconfig.c (opt_ignore_aux_cache): Add new option.
1783 (options): Add option.
1784 (parse_opt): Handle option.
1785 (manual_link): Adjust process_file caller. Call implicit_soname.
1786 (search_dir): Formatting. Use and populate auxiliary cache.
1787 (main): Load and save auxiliary cache.
1788 * elf/readlib.c (process_file): Add stat_buf argument. Pass struct
1789 stat64 from fstat64 to caller.
1790 (implicit_soname): New function.
1791 * elf/readelflib.c (process_elf_file): If DT_SONAME is not present,
1792 leave *soname as NULL.
1793 * elf/cache.c: Include libgen.h.
1794 (print_entry, print_cache, compare, save_cache, add_to_cache):
1795 Formatting and cleanups.
1796 (aux_cache_entry_id, aux_cache_entry, aux_cache_file_entry,
1797 aux_cache_file): New structures.
1798 (AUX_CACHEMAGIC): Define.
1799 (primes): New array.
1800 (aux_hash_size, aux_hash): New variables.
1801 (aux_cache_entry_id_hash, nextprime, init_aux_cache,
1802 search_aux_cache, insert_to_aux_cache, add_to_aux_cache,
1803 load_aux_cache, save_aux_cache): New functions.
1804 * sysdeps/generic/ldconfig.h (_PATH_LDCONFIG_AUX_CACHE): Define.
1805 (init_aux_cache, search_aux_cache, add_to_aux_cache,
1806 load_aux_cache, save_aux_cache, implicit_soname): New prototypes.
1807 (process_file): Adjust prototype.
1808
8d944b0f
UD
18092007-08-12 Jakub Jelinek <jakub@redhat.com>
1810
1811 * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h: Include stddef.h
1812 with __need_size_t.
1813
75fb247e
UD
18142007-08-12 Ulrich Drepper <drepper@redhat.com>
1815
fb86328a
UD
1816 * sysdeps/unix/sysv/linux/dl-vdso.c (_dl_vdso_vsym): Expect
1817 r_found_version structure as second parameter.
1818 * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION): Define.
1819 (_dl_vdso_vsym): Change type of second parameter accordingly.
1820 * sysdeps/unix/sysv/linux/x86-64/libc-start.c
1821 (_libc_vdso_platform_setup): Adjust.
974a1f0f 1822 * sysdeps/unix/sysv/linux/powerpc/libc-start.c
fb86328a
UD
1823 (_libc_vdso_platform_setup): Likewise.
1824
75fb247e
UD
1825 * sysdeps/unix/sysv/linux/powerpc/dl-vdso.c: Move to...
1826 * sysdeps/unix/sysv/linux/dl-vdso.c: ...here.
1827 * sysdeps/unix/sysv/linux/powerpc/dl-vdso.h: Move to...
1828 * sysdeps/unix/sysv/linux/dl-vdso.h: ...here.
1829 * csu/libc-start.c: Pretty printing.
1830 Use VDSO_SETUP if defined.
1831 * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Define VDSO_SETUP
1832 and let generic code call into _libc_vdso_platform_setup.
1833 * sysdeps/unix/sysv/linux/x86_64/libc-start.c: New file.
1834 * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: New file.
1835 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Pretty printing.
1836 Define INLINE_VSYSCALL and INTERNAL_VSYSCALL.
1837 * sysdeps/unix/sysv/linux/x86_64/Versions: Export __vdso_clock_gettime
1838 for GLIBC_PRIVATE.
1839 * sysdeps/unix/sysv/linux/x86_64/Makefile [subdir=elf]
1840 (sysdep_rountines): Add dl-vdso.
1841
1842 * sysdeps/unix/sysv/linux/powerpc/Makefile: Use sysdep_routines instead
1843 of routines.
1844
1845 * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Add
1846 attribute_hidden to __vdso_gettimeofday prototype.
1847
9229b83e
RM
18482007-08-12 Roland McGrath <roland@redhat.com>
1849
1850 * manual/stdio.texi (Variable Arguments Output): Fix xref to gcc manual.
1851 From: Karl Berry <karl@freefriends.org>.
1852
4503061f
UD
18532007-08-11 Ulrich Drepper <drepper@redhat.com>
1854
1855 * elf/dl-misc.c (_dl_sysdep_read_whole_file): We really don't need
1856 an atime update for the files we read.
1857
d7e23b02
UD
18582007-08-10 Ulrich Drepper <drepper@redhat.com>
1859
7cf89e95
UD
1860 * shadow/lckpwdf.c (__lckpwdf): Use O_CLOEXEC if possible.
1861
9d169bb3 1862 * nscd/connections.c: Use O_CLOEXEC if possible. Use mkostemp
d7e23b02
UD
1863 instead of mkstemp.
1864
1865 * misc/Makefile (routines): Add mkostemp and mkostemp64.
1866 * misc/Versions: Export mkostemp and mkostemp64 for GLIBC_2.7.
1867 * misc/mkostemp.c: New file.
1868 * misc/mkostemp64.c: New file.
1869 * stdlib/stdlib.h: Declare the new functions.
1870 * sysdeps/posix/tempname.c: Add new parameter which is added to
1871 the flags for open. Remove __GT_BIGFILE handling.
1872 * stdio-common/tempname.c: Likewise.
1873 * include/stdio.h: Adjust __gen_tempname prototype.
1874 Renumber __GT_* constants.
1875 * libio/oldtmpfile.c: Adjust for __gen_tempname interface change.
1876 * misc/mkdtemp.c: Likewise.
1877 * misc/mkstemp.c: Likewise.
1878 * misc/mkstemp64.c: Likewise.
1879 * misc/mktemp.c: Likewise.
1880 * stdio-common/tempnam.c: Likewise.
1881 * stdio-common/tmpfile.c: Likewise.
1882 * stdio-common/tmpfile64.c: Likewise.
1883 * stdio-common/tmpnam.c: Likewise.
1884 * stdio-common/tmpnam_r.c: Likewise.
1885
22532966
RM
18862007-08-10 Roland McGrath <roland@frob.com>
1887
1888 * sysdeps/mach/hurd/bits/ioctls.h (NLDLY, TABDLY, BSDLY, VTDLY):
1889 New macros.
1890 (NLDELAY, CRDELAY, TBDELAY, BSDELAY, VTDELAY): Define to those.
1891 Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
1892
673876e6
UD
18932007-08-10 Ulrich Drepper <drepper@redhat.com>
1894
aa132749
UD
1895 * nss/nss_files/files-XXX.c (internal_setent): Use O_CLOEXEC if
1896 possible.
1897 * nss/nss_files/files-alias.c (internal_setent): Likewise.
1898 * nss/Makefile (libnss_files-routines): Add files-have_o_cloexec.
1899 * nss/nss_files/files-have_o_cloexec.c: New file.
1900
22532966 1901 * sysdeps/unix/sysv/linux/shm_open.c (shm_open): Use O_CLOEXEC if
673876e6
UD
1902 available.
1903
1e286653
JJ
19042007-08-10 Jakub Jelinek <jakub@redhat.com>
1905
1906 * sysdeps/ieee754/ldbl-128ibm/strtold_l.c (___new_strtold_l,
1907 ___new_wcstold_l): New weak aliases.
1908 (strtold_l, wcstold_l): Use them as second argument for
1909 long_double_symbol.
1910
f07f72f3
UD
19112007-08-09 Ulrich Drepper <drepper@redhat.com>
1912
6479496a
UD
1913 * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Use correct
1914 register in test for error.
1915
c4adefbd
UD
1916 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_CLOEXEC): Define.
1917 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (O_CLOEXEC): Likewise.
1918
f07f72f3
UD
1919 * po/sv.po: Update from translation team.
1920
eef38c28
RM
19212007-08-06 Roland McGrath <roland@redhat.com>
1922
773e305e
RM
1923 * include/stdlib.h: Add libc_hidden_proto for strto*, __strto*_l.
1924 Remove __strto*_l inlines.
1925 * include/wchar.h: Add libc_hidden_proto for wcsto*, __wcsto*_l.
1926 * stdlib/strtod.c: Add libc_hidden_def.
1927 * stdlib/strtod_l.c: Likewise.
1928 * stdlib/strtold.c [__LONG_DOUBLE_MATH_OPTIONAL]: Add libc_hidden_proto
1929 for __new_strtold and __new_wcstold.
1930 * sysdeps/ieee754/ldbl-128ibm/strtold_l.c: Add libc_hidden_proto for
1931 __STRTOF, STRTOF.
1932 * stdlib/strtol.c: Add libc_hidden_def.
1933 * stdlib/strtol_l.c: Likewise.
1934 * sysdeps/wordsize-64/strtol.c: Add libc_hidden_ver for strtoll and
1935 strtoq.
1936
1937 * scripts/data/localplt-powerpc-linux-gnu.data: New file.
1938
1939 * scripts/data/localplt-x86_64-linux-gnu.data: File renamed to ...
1940 * scripts/data/localplt-generic.data: ... here.
1941 * elf/Makefile (check-data): Get generic file if no other.
1942 ($(objpfx)check-localplt.out): Make target unconditional.
1943
eef38c28
RM
1944 * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_discover_osversion):
1945 Use ElfW(Nhdr).
1946
742df3a4
UD
19472007-08-05 Ulrich Drepper <drepper@redhat.com>
1948
1949 * po/zh_CN.po: Updated translation from translation team.
1950
0470fa46
JJ
19512007-08-05 Jakub Jelinek <jakub@redhat.com>
1952
1953 * sysdeps/unix/sysv/linux/powerpc/powerpc32/socket.S (__socket):
1954 Don't use CGOTSETUP and CGOTRESTORE macros.
1955
b5075bdc
RM
19562007-08-04 Roland McGrath <roland@redhat.com>
1957
1958 * posix/Makefile ($(objpfx)getconf.speclist): Fix typo.
1959
9accc268
JJ
19602007-08-04 Jakub Jelinek <jakub@redhat.com>
1961
1962 * io/bits/fcntl2.h (open, open64, openat, openat64): Add
1963 __extension__ around the whole statement expression.
1964
220ae3ef
UD
19652007-08-04 Ulrich Drepper <drepper@redhat.com>
1966
c8ccd8e3
UD
1967 * sysdeps/unix/opendir.c (__alloc_dir): Correct order of DIR
1968 elements during initialization.
1969
220ae3ef
UD
1970 * po/pl.po: Updated translation from translation team.
1971 * po/tr.po: Likewise.
11960f7f 1972 * po/nl.po: Likewise.
220ae3ef 1973
2fb20667
UD
19742007-08-03 Ulrich Drepper <drepper@redhat.com>
1975
1976 * rt/aio.h: Add __nonnull attributes.
1977
ce31a3b1
UD
19782007-08-03 Jakub Jelinek <jakub@redhat.com>
1979
64f6281c
UD
1980 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Properly handle -0.
1981 * stdlib/Makefile (tests): Add tst-strtod5.
1982 (tst-strtod5-ENV): New.
1983 * stdlib/tst-strtod5.c: New file.
1984
ce31a3b1
UD
1985 * intl/dcigettext.c (_nl_find_msg): Free encoding if __gconv_open
1986 failed.
1987 * intl/finddomain.c (_nl_find_domain): Free normalized_codeset
1988 on failure.
1989
1990 * elf/dl-load.c (decompose_rpath): Free copy if result couldn't be
1991 allocated.
1992
754980e4
JJ
19932007-08-03 Jakub Jelinek <jakub@redhat.com>
1994
1995 * rt/mqueue.h (mq_timedreceive, mq_timedsend): Fix nonnull argument
1996 numbers.
1997
497af0cb
UD
19982007-08-02 Ulrich Drepper <drepper@redhat.com>
1999
cbf0489b
UD
2000 * io/Makefile (aux): Add have_o_cloexec.
2001 * include/fcntl.h: Declare __have_o_cloexec.
2002 * io/have_o_cloexec.c: New file.
2003 * sysdeps/unix/opendir.c (__opendir): Use O_CLOEXEC is available.
2004 (__alloc_dir): If O_CLOEXEC has been used, don't duplicate the
2005 fcntl call if not necessary.
2006 * login/utmp_file.c (setutent_file): Use __have_o_cloexec instead
2007 of local variable.
2008
fa39685d
UD
2009 * sysdeps/unix/opendir.c (__alloc_dir): Don't initialize ->data.
2010 Avoid memset, add explicit initialization.
2011 * sysdeps/unix/dirstream.h (struct __dirstream): Move data elemtn
2012 to the end and change into zero-sized array.
2013 Move lock member to fill a hole on 64-bit platforms.
9b2e9577
UD
2014
2015 * stdlib/stdlib.h: Remove __strto*_internal prototypes and strto*
2016 inline functions.
2017 * include/stdlib.h: Add __strto*_internal prototypes here.
2018 * wcsmbs/wchar.h: Remove __wcsto*_internal prototypes and wcsto*
2019 inline functions.
2020 * include/wchar.h: Add __wcsto*_internal prototypes.
2021 * sysdeps/generic/inttypes.h: No need to protect the declaration
2022 of the __strto*_internal and __wcsto*_internal members here.
2023
497af0cb
UD
2024 * rt/mqueue.h: Change const to __const and add nonnull attributes.
2025
d17a8cf0
RM
20262007-08-02 Roland McGrath <roland@redhat.com>
2027
2028 * posix/Makefile ($(inst_libexecdir)/getconf): Make hard links to
2029 $(inst_bindir)/getconf if possible.
2030
2031 * posix/Makefile ($(objpfx)getconf.speclist): New target.
2032 (generated): Add it.
2033 ($(inst_libexecdir)/getconf): Use it.
2034
0abf17de
UD
20352007-08-01 Ulrich Drepper <drepper@redhat.com>
2036
2037 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Using
2038 /proc is faster and sufficient. /sys is still needed for
2039 __get_nprocs_conf.
2040
5e0923ab
UD
20412007-08-01 Jakub Jelinek <jakub@redhat.com>
2042
2043 * sysdeps/unix/sysv/linux/i386/syscalls.list (fallocate): Add fallocate
2044 syscall as __fallocate64.
2045 * sysdeps/unix/sysv/linux/i386/posix_fallocate.c: New file.
2046 * sysdeps/unix/sysv/linux/i386/posix_fallocate64.c: New file.
2047
1475e201
UD
20482007-07-30 Jakub Jelinek <jakub@redhat.com>
2049
2050 * stdlib/tst-strtod2.c (do_test): Use %tu in fmt string for ptrdiff_t
2051 value.
2052
2053 * stdio-common/tst-fmemopen2.c (do_test): Avoid fmt string warning
2054 if off_t is different rank from size_t.
2055
2056 * sysdeps/generic/unwind-dw2.c (extract_cie_info, execute_cfa_program,
2057 uw_frame_state_for): Avoid type punning warnings.
2058 * sysdeps/generic/unwind-dw2-fde-glibc.c
2059 (_Unwind_IteratePhdrCallback): Likewise.
2060 * sysdeps/generic/unwind-dw2-fde.c (_Unwind_Find_FDE): Likewise.
2061 (binary_search_single_encoding_fdes, binary_search_mixed_encoding_fdes,
2062 get_cie_encoding, linear_search_fdes): Don't mix char and unsigned char
2063 pointers.
2064
e076bece
UD
20652007-07-31 Ulrich Drepper <drepper@redhat.com>
2066
9506149a
UD
2067 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs_conf): Count
2068 total processors using sysfs.
2069 (__get_nprocs): Use sysfs to determine which processors are online.
e076bece 2070
bbeaaa84
JJ
20712007-07-31 Jakub Jelinek <jakub@redhat.com>
2072
09881398
JJ
2073 * sysdeps/unix/sysv/linux/posix_fallocate.c (posix_fallocate): Fix
2074 syscall arguments count.
2075
bbeaaa84
JJ
2076 * stdio-common/tfformat.c (sprint_doubles): Add 12 new tests.
2077
087ef75f
RM
20782007-07-30 Roland McGrath <roland@redhat.com>
2079
2080 * manual/libc.texinfo: Update copyrights, formatting magic, and
2081 @dircategory. From Karl Berry <karl@freefriends.org>.
2082
44f08a6e
UD
20832007-07-29 Ulrich Drepper <drepper@redhat.com>
2084
eafaae72
UD
2085 [BZ #4860]
2086 * io/Makefile (headers): Add bits/fcntl2.h.
2087
c5705565
UD
2088 * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_ZERO_S): Optimize
2089 using gcc builtin.
2090 (__CPU_EQUAL_S): Likewise.
2091
44f08a6e
UD
2092 * posix/Makefile (routines): Add sched_cpualloc and sched_cpufree.
2093 (tests): Add tst-cpuset.
2094 * posix/sched_cpualloc.c: New file.
2095 * posix/sched_cpufree.c: New file.
2096 * posix/tst-cpuset.c: New file.
2097 * posix/Versions: Export __sched_cpualloc and __sched_cpufree for
2098 GLIBC_2.7.
2099 * sysdeps/unix/sysv/linux/bits/sched.h: Define __CPU_*_S macros.
2100 * posix/sched.h: Define old CPU_* macros in temers of __CPU_*_S
2101 macros. Define CPU_*_S macros.
2102
8f5e1400
UD
21032007-07-28 Ulrich Drepper <drepper@redhat.com>
2104
5b74caf6
UD
2105 * posix/getconf.c (vars): Add missing _SC_LEVEL4_CACHE_LINESIZE
2106 entry.
2107
a26d01bb 2108 [BZ #4858]
8f5e1400
UD
2109 * stdio-common/printf_fp.c (___printf_fp): Fix special case of
2110 #.0g and value rounded to 1.0.
2111 * stdio-common/tfformat.c (sprint_doubles): Add two new tests.
2112
085a4412
UD
21132007-07-26 Jakub Jelinek <jakub@redhat.com>
2114
cedb4109
UD
2115 * locale/programs/ld-monetary.c (monetary_finish): Avoid range check
2116 for int_frac_digits and frac_digits.
2117
2118 * login/logout.c (logout): Avoid aliasing violation.
2119 * login/logwtmp.c (logwtmp): Likewise.
2120
2121 * libio/genops.c (_IO_un_link): Avoid aliasing violation.
2122
9d9febc7
UD
2123 * nscd/selinux.c (preserve_capabilities): Initialize new_caps
2124 to avoid warning.
2125 * iconv/gconv_open.c (__gconv_open): Initialize ptr to avoid
2126 warning.
2127 * nis/nis_subr.c (nis_getnames): Initialize saveptr to avoid
2128 warning.
2129 * resolv/inet_ntop.c (inet_ntop6): Initialize best.len and cur.len
2130 to avoid warnings.
2131
701666b7
UD
2132 * nss/nsswitch.c (__nss_lookup_function): Don't cast &ni->known to
2133 void **.
2134 * nss/nsswitch.h (service_user): Use void * type for KNOWN field.
2135
2136 * nss/nss_files/files-hosts.c (LINE_PARSER): Cast host_addr to
2137 char * to avoid warning.
2138 * nis/nss_nis/nis-hosts.c (LINE_PARSER): Likewise.
2139
2140 * timezone/Makefile (CFLAGS-zdump.c): Add -fwrapv.
2141
2142 * locale/programs/ld-ctype.c (ctype_finish, set_class_defaults,
2143 allocate_arrays): Cast second argument to charmap_find_symbol
2144 to char * to avoid warnings.
2145
2146 * locale/programs/repertoire.c (repertoire_new_char): Change
2147 from_nr, to_nr and cnt to unsigned long, adjust printf format
2148 string.
2149
2150 * locale/programs/ld-collate.c (insert_value, handle_ellipsis):
2151 Cast second argument to new_element to char * to avoid warnings.
2152
2153 * locale/weightwc.h (findidx): Cast &extra[-i] to const int32_t *.
2154
2155 * intl/gettextP.h (struct loaded_domain): Change plural to const
2156 struct expression *.
2157 * intl/plural-eval.c (plural_eval): Change first argument to
2158 const struct expression *.
2159 * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Change first
2160 argument to const struct expression **.
2161 * intl/plural-exp.h (EXTRACT_PLURAL_EXPRESSION, plural_eval): Adjust
2162 prototypes.
2163 * intl/loadmsgcat (_nl_unload_domain): Cast away const
2164 in call to __gettext_free_exp.
2165
2166 * posix/fnmatch.c (fnmatch): Rearrange code to avoid maybe
2167 unitialized wstring/wpattern var warnings.
2168
2169 * posix/runtests.c (struct a_test): Make data field const char *.
2170
2171 * stdio-common/tst-sprintf2.c (main): Don't declere u, v and buf
2172 vars if not LDBL_MANT_DIG >= 106.
2173
2174 * stdio-common/Makefile (CFLAGS-vfwprintf.c): Add -Wno-unitialized.
2175
2176 * stdio-common/vfprintf.c (vfprintf): Cast first arugment to
2177 __find_specmb to avoid warning.
2178
2179 * rt/tst-mqueue1.c (do_one_test): Add casts to avoid warnings.
2180
2181 * debug/test-strcpy_chk.c (do_tests, do_random_tests): Add casts
2182 to avoid warnings.
2183
2184 * sysdeps/ieee754/ldbl-96/s_roundl.c (huge): Add L suffix to
2185 initializer.
2186
2187 * sysdeps/unix/clock_gettime.c (clock_gettime): Only define
2188 tv var when it will be actually used.
2189
2190 * sunrpc/rpc_cmsg.c (xdr_callmsg): Cast IXDR_PUT_* to void
2191 to avoid warnings.
2192
085a4412
UD
2193 * iconvdata/gbk.c (BODY): Make buf and cp char instead of unsigned
2194 char array resp. pointer.
2195 * iconvdata/iso-2022-kr.c (BODY): Make buf unsigned char instead of
2196 char array.
2197 * iconvdata/cns11643.h (cns11643_to_ucs4): Change first argument
2198 to const unsigned char **.
2199 (ucs4_to_cns11643): Change second argument to unsigned char *.
2200 * iconvdata/euc-tw.c (BODY): Change endp type to
2201 const unsigned char *.
2202 * iconvdata/iso-ir-165.h (ucs4_to_isoir165): Change second argument
2203 to unsigned char *.
2204 * iconvdata/ibm1008_420.c (LOOP_NEED_FLAGS): Don't define.
2205 * iconvdata/iso-2022-cn.c (BODY): Change buf to unsigned char array.
2206 * iconvdata/iso-2022-cn-ext.c (BODY): Change buf, tmpbuf, tmp
2207 types to unsigned char pointers/arrays instead of char.
2208 * iconvdata/jis0201.h (ucs4_to_jisx0201): Change second argument
2209 to unsigned char *.
2210 * iconvdata/jis0208.h (ucs4_to_jisx0208): Likewise.
2211 * iconvdata/jis0212.h: Include assert.h.
2212 (ucs4_to_jisx0212): Change second argument to unsigned char *.
2213 assert that if cp[0] is not '\0', cp[1] is not '\0' either instead
2214 of trying to handle that.
2215 * iconvdata/euc-kr.c (euckr_from_ucs4): Initialize also cp[1] to
2216 shut up a warning.
2217 * iconvdata/euc-jp-ms.c (from_ucs4_lat1, from_ucs4_greek,
2218 from_ucs4_cjk, from_ucs4_cjkcpt, from_ucs4_extra): Change type to
2219 two dimensional const unsigned char arrays.
2220 (BODY): Cast "" to (const unsigned char *) for assignment to cp.
2221 Initialize endp to inptr to shut up a warning.
2222
fa69dc9c
UD
22232007-07-20 Jakub Jelinek <jakub@redhat.com>
2224
ae1ad762
UD
2225 [BZ #4772]
2226 * time/strptime_l.c (__strptime_internal): Silently ignore
2227 strftime modifiers and field width in recursive calls.
2228
fa69dc9c
UD
2229 * include/time.h (enum ptime_locale_status): Remove.
2230 (__strptime_internal): Remove decided and era_cnt arguments,
2231 add statep argument.
2232 * time/strptime_l.c (__strptime_internal): Remove decided
2233 and era_cnt arguments, add statep argument. Don't recompute
2234 any fields in recursive calls, only update caller's tm
2235 and state, if recursive call fails, don't change tm nor
2236 any state.
2237 (get_alt_number): Adjust.
2238 (recursive): Adjust caller.
2239 (strptime): Likewise.
2240 * time/strptime.c (strptime): Likewise.
2241
7b503bcc
UD
22422007-07-19 Jakub Jelinek <jakub@redhat.com>
2243
2244 * iconv/gconv_int.h (__GCONV_NULCONV): New internal only error code.
2245 * iconv/gconv_cache.c (__gconv_lookup_cache): Return __GCONV_NULCONV
2246 if from and to charsets are the same.
2247 * iconv/gconv_db.c (__gconv_find_transform): Likewise.
2248 * intl/dcigettext.c (_nl_find_msg): Return NULL even if __gconv_open
2249 returns __GCONV_NOCONV, but not for __GCONV_NULCONV.
2250
22512007-07-17 Jakub Jelinek <jakub@redhat.com>
2252
2253 * wcsmbs/wchar.h: Only define wint_t if __need_wint_t.
2254 Don't define wint_t when __need_mbstate_t unless it
2255 is necessary.
2256 (__mbstate_t): Use __WINT_TYPE__ rather than wint_t
2257 in the typedef if possible.
2258 * wctype/wctype.h (wint_t): Define by including
2259 wchar.h with __need_wint_t instead of including stddef.h
2260 with __need_wint_t and as fallback definining it ourselves.
2261 * iconv/gconv.h (__need_wint_t): Define before including
2262 wchar.h.
2263 * sysdeps/gnu/_G_config.h: Don't include gconv.h if not _LIBC
2264 or _GLIBCPP_USE_WCHAR_T.
2265 (__need_wchar_t): Don't define
2266 if not _LIBC or _GLIBCPP_USE_WCHAR_T.
2267 (__need_wint_t): Don't define before including stddef.h,
2268 define before including wchar.h only if _LIBC or
2269 _GLIBCPP_USE_WCHAR_T.
2270 (_G_iconv_t): Don't define if not _LIBC or _GLIBCPP_USE_WCHAR_T.
2271 * sysdeps/mach/hurd/_G_config.h: Likewise.
2272 * sysdeps/generic/_G_config.h: Likewise.
2273 * libio/libio.h (__wunderflow, __wuflow, __woverflow): Only
2274 prototype if _LIBC or _GLIBCPP_USE_WCHAR_T.
2275 (_IO_getwc_unlocked, _IO_putwc_unlocked): Only define
2276 if _LIBC or _GLIBCPP_USE_WCHAR_T.
2277
a95a608f
UD
22782007-07-28 Ulrich Drepper <drepper@redhat.com>
2279
2280 * sysdeps/posix/posix_fallocate64.c: Undefine
2281 __posix_fallocate64_l64 before alias handling.
2282 * sysdeps/unix/sysv/linux/posix_fallocate.c: New file.
2283 * sysdeps/unix/sysv/linux/posix_fallocate64.c: New file.
2284 * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c: New file.
2285 * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate64.c: New file.
2286
2287 * io/tst-posix_fallocate.c: Include <fcntl.h>.
2288
22892007-07-23 Jakub Jelinek <jakub@redhat.com>
2290
2291 * locale/programs/ld-collate.c (atwc): New variable.
2292 (add_to_tablewc): New toplevel function, moved from collate_output.
2293 (collate_output): Remove add_to_tablewc nested function.
2294
2295 * iconv/iconvconfig.c (hash_table, hash_size): New toplevel vars.
2296 (name_insert): New function.
2297 (write_output): Remove hash_table and hash_size vars and name_insert
2298 nested function.
2299
80d4c3b0
RM
23002007-07-24 Roland McGrath <roland@redhat.com>
2301
2302 * Makerules (install-others-programs-nosubdir): New target.
2303 (install-no-libc.a-nosubdir): Depend on it.
2304
2305 * iconv/Makefile (install-others-programs): Set this instead of
2306 install-others.
2307 * login/Makefile (install-others-programs): Likewise.
2308 * posix/Makefile (install-others-programs): Likewise.
2309
2310 * Makerules (install-no-libc.a-nosubdir): Clean up conditional
2311 dependencies.
2312
c1bf9f14
UD
23132007-07-23 Ulrich Drepper <drepper@redhat.com>
2314
2315 * io/Makefile (tests): Add tst-posix_fallocate.
2316 * io/tst-posix_fallocate.c: New file.
2317
2318 * sysdeps/unix/sysv/linux/kernel-features.h: Define
2319 __ASSUME_FALLOCATE.
2320
2320270c
RM
23212007-07-22 Roland McGrath <roland@frob.com>
2322
3dadfa7e
RM
2323 * hurd/getdport.c: Add missing copyright year update.
2324
2320270c
RM
2325 * sysdeps/mach/hurd/bits/fcntl.h [__USE_GNU] (O_CLOEXEC): New macro.
2326 * hurd/port2fd.c (_hurd_port2fd): Implement O_CLOEXEC.
2327
cc783763
UD
23282007-07-22 Ulrich Drepper <drepper@redhat.com>
2329
c942388d
UD
2330 * login/utmp_file.c (setutent_file): Use O_CLOEXEC if possible.
2331
cc783763
UD
2332 * libio/fileops.c (_IO_new_file_fopen): Recognize 'e' flag and set
2333 O_CLOEXEC is needed.
2334 * nis/nss_compat/compat-grp.c: Use 'e' flag when opening file.
2335 Avoid additional fcntl to set O_CLOEXEC if not needed.
2336 * nis/nss_compat/compat-initgroups.c: Likewise.
2337 * nis/nss_compat/compat-pwd.c: Likewise.
2338 * nis/nss_compat/compat-spwd.c: Likewise.
2339
610903b0
RM
23402007-07-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
2341
3dadfa7e 2342 [BZ #3665]
5c3d7832
RM
2343 * manual/errno.texi: Change ECANCELED value to 119.
2344
3dadfa7e 2345 [BZ #4610]
610903b0
RM
2346 * mach/lock-intern.h: Include <sys/cdefs.h>.
2347
3dadfa7e 2348 [BZ #4178]
610903b0
RM
2349 * sysdeps/mach/hurd/sigaction.c (__sigaction): Check ACT != NULL before
2350 reading A.
2351
3dadfa7e
RM
2352 [BZ #4126]
2353 * sysdeps/mach/hurd/sigsuspend.c (sigsuspend_not_cancel): Define alias
2354 to __sigsuspend.
610903b0
RM
2355
2356 * sysdeps/mach/i386/sysdep.h: Include <dl-sysdep.h> and <tls.h>.
2357
23582006-06-13 Thomas Schwinge <tschwinge@gnu.org>
2359
2360 * sysdeps/mach/hurd/tls.h: Change `ASSEMBLER' conditional to
2361 `__ASSEMBLER__'.
2362 * sysdeps/mach/hurd/i386/tls.h: Likewise.
2363
acf79996
UD
23642007-07-21 Ulrich Drepper <drepper@redhat.com>
2365
dde0763a
UD
2366 * nscd/nscd_helper.c (get_mapping): Use MSG_CMSG_CLOEXEC for
2367 descriptor received from nscd.
2368
acf79996
UD
2369 * sysdeps/unix/sysv/linux/bits/socket.h: Define MSG_CMSG_CLOEXEC.
2370
2371 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_CLOEXEC.
2372 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
2373 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
2374 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
2375 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
2376 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
2377
00d26929
JJ
23782007-07-20 Jakub Jelinek <jakub@redhat.com>
2379
403445d7
JJ
2380 [BZ #4816]
2381 * manual/signal.texi (Non-atomic Example): Make memory var volatile.
2382
00d26929
JJ
2383 [BZ #4813]
2384 * login/forkpty.c (forkpty): Close master and slave fds on
2385 fork failure. Patch by
2386 Mikulas Patocka <mikulas@artax.karlin.mff.cuni.cz>.
2387
087722b8
UD
23882007-07-18 Jakub Jelinek <jakub@redhat.com>
2389
2390 * include/features.h (__USE_ISOC95): New define.
2391 * wcsmbs/wchar.h (fwprintf, fwscanf, wprintf, wscanf, swprintf,
2392 swscanf, vfwprintf, vwprintf, vswprintf, fwide): Define even
2393 for -std=iso9899:199409.
2394 * CONFORMANCE: Remove comments about unsupported AMD1.
2395
b042b023
UD
23962007-07-17 Jakub Jelinek <jakub@redhat.com>
2397
2398 * sysdeps/ia64/sched_cpucount.c: New file.
2399 * sysdeps/powerpc/sched_cpucount.c: New file.
2400
8381e467
UD
2401 * sysdeps/unix/sysv/linux/bits/sched.h (__sched_cpucount): Add
2402 __BEGIN_DECLS/__END_DECLS around the prototype.
2403 * bits/sched.h (__sched_cpucount): Likewise. Make second argument
2404 pointer to const cpu_set_t.
2405
50e16f85
UD
2406 * bits/types.h: Don't include stddef.h, don't define __need_size_t.
2407 * signal/signal.h <__USE_BSD || __USE_XOPEN_EXTENDED>: Define
2408 __need_size_t and include stddef.h.
2409 * sysvipc/sys/msg.h: Likewise.
2410 * posix/sched.h: Likewise.
2411 * hurd/hurd/signal.h (__need_size_t): Define.
2412
2413 * CONFORMANCE: ctype.h and wctype.h no longer define size_t,
2414 neither does signal.h in pedantic ISO C namespaces. stdio.h
2415 no longer defines wint_t or wchar_t.
2416
b257c726
UD
2417 * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): New function.
2418 * debug/vfwprintf_chk.c (__vfwprintf_chk): Use
2419 _IO_acquire_lock_clear_flags2 instead of _IO_acquire_lock.
2420 * debug/vprintf_chk.c (__vprintf_chk): Likewise.
2421 * debug/vwprintf_chk.c (__vwprintf_chk): Likewise.
2422 * debug/vfprintf_chk.c (__vfprintf_chk): Likewise.
2423 * debug/fwprintf_chk.c (__fwprintf_chk): Likewise.
2424 * debug/printf_chk.c (__printf_chk): Likewise.
2425 * debug/fprintf_chk.c (__fprintf_chk): Likewise.
2426 * debug/wprintf_chk.c (__wprintf_chk): Likewise.
2427
2428 * sysdeps/pthread/bits/stdio-lock.h (_IO_acquire_lock_clear_flags2):
2429 Define.
2430
d5078b9f
UD
2431 * bits/confname.h (_CS_POSIX_V6_WIDTH_RESTRICTED_ENVS): Define.
2432 * posix/getconf.c (vars): Add POSIX_V6_WIDTH_RESTRICTED_ENVS.
2433
1c3e748e
UD
24342007-07-16 Jakub Jelinek <jakub@redhat.com>
2435
2436 [BZ #4792]
2437 * stdlib/stdlib.h (realloc): Remove __attribute_malloc__.
2438 * malloc/malloc.h (realloc): Likewise.
2439
4e425301
UD
2440 * libio/iopopen.c (_IO_new_proc_open): Don't close child_std_end
2441 if one of proc_file_chain streams has that fileno.
2442 * stdio-common/Makefile (tests): Add tst-popen2.
2443 * stdio-common/tst-popen2.c: New test.
2444
2e2efe65
RM
24452007-07-14 Jakub Jelinek <jakub@redhat.com>
2446
2447 * elf/ldconfig.c: Allow GPLv2 or any later version.
2448 * elf/readlib.c: Likewise.
2449 * elf/chroot_canon.c: Likewise.
2450 * elf/cache.c: Likewise.
2451 * nscd/mem.c: Likewise.
2452 * nscd/getpwuid_r.c: Likewise.
2453 * nscd/grpcache.c: Likewise.
2454 * nscd/aicache.c: Likewise.
2455 * nscd/getsrvbynm_r.c: Likewise.
2456 * nscd/nscd.c: Likewise.
2457 * nscd/servicescache.c: Likewise.
2458 * nscd/getsrvbypt_r.c: Likewise.
2459 * nscd/initgrcache.c: Likewise.
2460 * nscd/gethstbyad_r.c: Likewise.
2461 * nscd/gethstbynm2_r.c: Likewise.
2462 * nscd/getgrnam_r.c: Likewise.
2463 * nscd/nscd_setup_thread.c: Likewise.
2464 * nscd/getpwnam_r.c: Likewise.
2465 * nscd/gai.c: Likewise.
2466 * nscd/connections.c: Likewise.
2467 * nscd/dbg_log.c: Likewise.
2468 * nscd/cache.c: Likewise.
2469 * nscd/hstcache.c: Likewise.
2470 * nscd/nscd_conf.c: Likewise.
2471 * nscd/getgrgid_r.c: Likewise.
2472 * nscd/pwdcache.c: Likewise.
2473 * catgets/gencat.c: Likewise.
2474 * locale/programs/linereader.h: Likewise.
2475 * locale/programs/locarchive.c: Likewise.
2476 * locale/programs/ld-paper.c: Likewise.
2477 * locale/programs/locfile-kw.h: Likewise.
2478 * locale/programs/ld-address.c: Likewise.
2479 * locale/programs/xmalloc.c: Likewise.
2480 * locale/programs/ld-time.c: Likewise.
2481 * locale/programs/localedef.c: Likewise.
2482 * locale/programs/simple-hash.c: Likewise.
2483 * locale/programs/xstrdup.c: Likewise.
2484 * locale/programs/ld-numeric.c: Likewise.
2485 * locale/programs/locfile-kw.gperf: Likewise.
2486 * locale/programs/ld-collate.c: Likewise.
2487 * locale/programs/charmap-kw.gperf: Likewise.
2488 * locale/programs/charmap.h: Likewise.
2489 * locale/programs/charmap-kw.h: Likewise.
2490 * locale/programs/config.h: Likewise.
2491 * locale/programs/locfile.c: Likewise.
2492 * locale/programs/ld-ctype.c: Likewise.
2493 * locale/programs/charmap.c: Likewise.
2494 * locale/programs/ld-messages.c: Likewise.
2495 * locale/programs/repertoire.h: Likewise.
2496 * locale/programs/locale.c: Likewise.
2497 * locale/programs/ld-name.c: Likewise.
2498 * locale/programs/linereader.c: Likewise.
2499 * locale/programs/locfile.h: Likewise.
2500 * locale/programs/3level.h: Likewise.
2501 * locale/programs/ld-monetary.c: Likewise.
2502 * locale/programs/ld-measurement.c: Likewise.
2503 * locale/programs/charmap-dir.c: Likewise.
2504 * locale/programs/ld-identification.c: Likewise.
2505 * locale/programs/localedef.h: Likewise.
2506 * locale/programs/charmap-dir.h: Likewise.
2507 * locale/programs/repertoire.c: Likewise.
2508 * locale/programs/simple-hash.h: Likewise.
2509 * locale/programs/ld-telephone.c: Likewise.
2510 * locale/programs/locale-spec.c: Likewise.
2511 * locale/programs/locfile-token.h: Likewise.
2512 * posix/getconf.c: Likewise.
2513 * iconv/dummy-repertoire.c: Likewise.
2514 * iconv/iconv_charmap.c: Likewise.
2515 * iconv/iconvconfig.c: Likewise.
2516 * iconv/iconv_prog.c: Likewise.
2517 * malloc/memusagestat.c: Likewise.
2518 * sysdeps/unix/sysv/linux/nscd_setup_thread.c: Likewise.
2519
84c23a3d
RM
25202007-07-06 Kaz Kojima <kkojima@rr.iij4u.or.jp>
2521
2522 * sysdeps/sh/bsd-setjmp.S (setjmp): Use correct argument registers.
2523 * sysdeps/sh/bsd-_setjmp.S (_setjmp): Likewise.
2524 * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Do correct sanity
2525 check for the first argument.
2526
1c298d08
UD
25272007-07-12 Jakub Jelinek <jakub@redhat.com>
2528
2529 [BZ #4775]
2530 * math/tgmath.h (__tgmath_real_type_sub): Formatting.
2531 (__tgmath_real_type): Fix if expr is const int or other const
2532 qualified integral type.
2533 (__TGMATH_UNARY_REAL_ONLY): Rewritten to avoid using statement
2534 expressions and handle const qualified arguments.
2535 (__TGMATH_BINARY_FIRST_REAL_ONLY, __TGMATH_UNARY_REAL_IMAG,
2536 __TGMATH_UNARY_REAL_IMAG_RET_REAL): Likewise.
2537 (__TGMATH_UNARY_REAL_RET_ONLY): Rewritten to avoid using
2538 statement expressions.
2539 (__TGMATH_BINARY_REAL_ONLY, __TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY,
2540 __TGMATH_TERNARY_REAL_ONLY, __TGMATH_BINARY_REAL_IMAG): Likewise.
2541 (__TGMATH_UNARY_IMAG): Define.
2542 (conj, cproj): Use __TGMATH_UNARY_IMAG macro.
2543 * math/Makefile (tests): Add test-tgmath2.
2544 (CFLAGS-test-tgmath2.c): Add.
2545 * math/test-tgmath.c (fy, dy, ly, fz, dz, lz, count_cdouble,
2546 count_cfloat, count_cldouble): New variables.
2547 (NCCALLS): Define.
2548 (main): Check number of complex calls as well.
2549 (F(compile_test)): Add complex tests and tests with const qualified
2550 arguments.
2551 (y, z, ccount): Define.
2552 (F(cacos), F(casin), F(catan), F(ccos), F(csin), F(ctan), F(cacosh),
2553 F(casinh), F(catanh), F(ccosh), F(csinh), F(ctanh), F(cexp), F(clog),
2554 F(csqrt), F(cpow), F(cabs), F(carg), F(creal), F(cimag), F(conj),
2555 F(cproj)): New functions.
2556 * math/test-tgmath2.c: New test.
2557
25582007-07-11 Jakub Jelinek <jakub@redhat.com>
2559
2560 [BZ #4776]
2561 * elf/dl-load.c (_dl_rtld_di_serinfo): Output / in LD_LIBRARY_PATH,
2562 RPATH etc. as "/" rather than "", don't segfault on empty paths,
2563 instead output ".".
2564 * dlfcn/Makefile (distribute): Add glreflib3.c.
2565 (module-names): Add glreflib3.
2566 ($(objpfx)tst-dlinfo.out): Depend on glreflib3.so rather than
2567 glreflib1.so.
2568 (LDFLAGS_glreflib3.so): New.
2569 * dlfcn/tst-dlinfo.c (do_test): Load glreflib3.so instead of
2570 glreflib1.so.
2571 * dlfcn/glreflib3.c: New file.
2572
2573 * intl/finddomain.c (_nl_find_domain): If _nl_explode_name
2574 returned -1, return NULL.
2575 * intl/explodename.c (_nl_explode_name): Return -1 if
2576 _nl_normalize_codeset failed.
2577
a88f47a7
UD
25782007-07-07 Steven Munroe <sjmunroe@us.ibm.com>
2579
2580 * sysdeps/powerpc/powerpc32/power6/memset.S: Update comments.
2581 Specify .machine power6 to get ISA-V2.0 branch hints. Unroll loops
2582 and avoid branch misspredicts for > 31 bytes memset case.
2583 * sysdeps/powerpc/powerpc64/power6/memset.S: Likewise.
2584 Remove toc ref to __cache_line_size.
2585
2586 * sysdeps/powerpc/powerpc32/power4/memcmp.S: Specify .machine power4
2587 to get ISA-V2.0 branch hints.
2588 * sysdeps/powerpc/powerpc32/power4/memcpy.S: Likewise
2589 * sysdeps/powerpc/powerpc32/power4/memset.S: Likewise
2590 * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
2591 * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
2592 * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
2593 * sysdeps/powerpc/powerpc64/power4/memset.S: Likewise.
2594 Remove toc ref to __cache_line_size.
2595
2596 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S:
2597 Include math_ldbl_opt.h.
2598
f98c2d06
UD
25992007-07-10 Ulrich Drepper <drepper@redhat.com>
2600
2601 [BZ #4773]
2602 * time/strptime_l.c (__strptime_internal): Implement greedy
2603 matching of weekday and month names.
2604
cec5991f
RM
26052007-07-09 Roland McGrath <roland@redhat.com>
2606
2607 * elf/elf.h (NT_GNU_ABI_TAG): New macro.
2608 (ELF_NOTE_ABI): Use it.
2609 (NT_GNU_HWCAP, NT_GNU_BUILD_ID): New macros.
2610
8c1dcd26
UD
26112007-07-09 Ulrich Drepper <drepper@redhat.com>
2612
2613 * sysdeps/x86_64/cacheinfo.c (intel_02_known): Add new entries.
2614 * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
2615
c2c7bd3f
UD
26162007-07-07 Ulrich Drepper <drepper@redhat.com>
2617
2618 [BZ #4745]
0923a2c8
UD
2619 * stdio-common/vfscanf.c (_IO_vfscanf): Add additional test for EOF
2620 in loop to look for conversion specifier to avoid testing of
2621 wrong errno value.
2622 * stdio-common/Makefile (tests): Add bug18, bug18a, bug19, bug19a.
c2c7bd3f 2623 * stdio-common/bug18.c: New file.
0923a2c8
UD
2624 * stdio-common/bug18a.c: New file.
2625 * stdio-common/bug19.c: New file.
2626 * stdio-common/bug19a.c: New file.
c2c7bd3f 2627
4facf4af
RM
26282007-07-05 Mike Frysinger <vapier@gentoo.org>
2629
2630 * Makeconfig ($(common-objpfx)gnu/lib-names.stmp): Use LC_ALL=C when
2631 running awk script.
2632
1311e86e
UD
26332007-07-01 Jakub Jelinek <jakub@redhat.com>
2634
2635 * elf/dl-sysdep.c (_dl_important_hwcaps): Add integer overflow check.
2636 * elf/dl-minimal.c (__libc_memalign): Likewise. Handle malloc (0).
2637 Return NULL if mmap failed instead of asserting it does not.
2638 (calloc): Check for integer overflow.
2639
2640 * elf/dl-minimal.c (__strtoul_internal): Fix parsing of numbers bigger
2641 than LONG_MAX / 10.
2642
57c9179c
UD
26432007-07-03 Jakub Jelinek <jakub@redhat.com>
2644
2645 [BZ #4702]
2646 * nis/nss-default.c: Include errno.h.
2647 (init): Preserve errno.
2648
d0b283a8
UD
26492007-07-02 Ulrich Drepper <drepper@redhat.com>
2650
2651 * sysdeps/unix/sysv/linux/bits/socket.h (PF_UNIX): Update comment.
2652
34e0bbaf
UD
26532007-06-30 Ulrich Drepper <drepper@redhat.com>
2654
2655 * sysdeps/unix/sysv/linux/bits/socket.h: Add PF_RXRPC and AF_RXRPC.
2656
26572007-06-29 Martin Schwidefsky <schwidefsky@de.ibm.com>
2658
2659 * sysdeps/unix/sysv/linux/bits/socket.h: Add PF_IUCV and AF_IUCV.
2660
34e0bbaf 26612007-06-29 Martin Schwidefsky <schwidefsky@de.ibm.com>
33516494
UD
2662
2663 * sysdeps/s390/dl-procinfo.c: New file.
2664 * sysdeps/s390/dl-procinfo.h: New file.
2665 * sysdeps/unix/sysv/linux/s390/dl-procinfo.h: New file.
2666
0e508a6e
UD
26672007-06-29 Jakub Jelinek <jakub@redhat.com>
2668
2669 * elf/dl-load.c (open_verify): Find .note.ABI-tag notes even
2670 in PT_NOTE segments with multiple notes.
2671 * elf/readelflib.c (process_elf_file): Likewise.
2672
e22c61fb
UD
26732007-06-22 Ulrich Drepper <drepper@redhat.com>
2674
2675 * nis/nis_domain_of.c (__nis_domain_of): Make the code a bit more
2676 ISO C compliant.
2677
e4eb675d
UD
26782007-06-19 Ulrich Drepper <drepper@redhat.com>
2679
2680 * elf/dl-close.c (free_mem): Free _dl_scope_free_list.
2681
26822007-06-13 Jakub Jelinek <jakub@redhat.com>
2683
2684 * include/link.h: Don't include rtld-lowlevel.h.
2685 (struct link_map): Remove l_scope_lock.
2686 * sysdeps/generic/ldsodefs.h: Don't include rtld-lowlevel.h.
2687 (_dl_scope_free_list): New field (variable) in _rtld_global.
2688 (DL_LOOKUP_SCOPE_LOCK): Remove.
2689 (_dl_scope_free): New prototype.
2690 * elf/dl-runtime.c (_dl_fixup): Don't use __rtld_mrlock_*lock.
2691 Don't pass DL_LOOKUP_SCOPE_LOCK to _dl_lookup_symbol_x.
2692 (_dl_profile_fixup): Likewise.
2693 * elf/dl-sym.c (do_sym): Likewise. Use wrapped _dl_lookup_symbol_x
2694 whenever !RTLD_SINGLE_THREAD_P, use THREAD_GSCOPE_SET_FLAG and
2695 THREAD_GSCOPE_RESET_FLAG around it.
2696 * elf/dl-close.c (_dl_close_worker): Don't use
2697 __rtld_mrlock_{change,done}. Call _dl_scope_free on the old
2698 scope. Make sure THREAD_GSCOPE_WAIT () happens if any old
2699 scopes were queued or if l_scope_mem has been abandoned.
2700 * elf/dl-open.c (_dl_scope_free): New function.
2701 (dl_open_worker): Use it. Don't use __rtld_mrlock_{change,done}.
2702 * elf/dl-support.c (_dl_scope_free_list): New variable.
2703 * elf/dl-lookup.c (add_dependency): Remove flags argument.
2704 Remove DL_LOOKUP_SCOPE_LOCK handling.
2705 (_dl_lookup_symbol_x): Adjust caller. Remove DL_LOOKUP_SCOPE_LOCK
2706 handling.
2707 * elf/dl-object.c (_dl_new_object): Don't use
2708 __rtld_mrlock_initialize.
2709
9be09e06
UD
27102007-06-19 Ulrich Drepper <drepper@redhat.com>
2711
2712 * sysdeps/generic/ldsodefs.h (rtld_global): Reorder some elements
2713 to fill in holes
2714 (rtld_global_ro): Likewise.
2715
27162007-06-18 Jakub Jelinek <jakub@redhat.com>
2717
2718 * elf/dl-addr.c (_dl_addr): Skip PT_LOAD checking if l_contiguous.
2719 Move PT_LOAD checking to...
2720 (_dl_addr_inside_object): ... here, new function.
2721 * elf/dl-sym.c (do_sym): If not l_contiguous,
2722 call _dl_addr_inside_object.
2723 * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise.
2724 * dlfcn/dlinfo.c (dlinfo_doit): Likewise.
2725 * elf/dl-open.c (dl_open_worker): Likewise.
2726 (_dl_addr_inside_object): New function if IS_IN_rtld.
2727 * elf/dl-load.c (_dl_map_object_from_fd): Set l_contiguous if no
2728 holes are present or are PROT_NONE protected.
2729 * include/link.h (struct link_map): Add l_contiguous field.
2730 * sysdeps/generic/ldsodefs.h (_dl_addr_inside_object): New prototype.
2731
ae1ad3ae
UD
27322007-06-18 Jakub Jelinek <jakub@redhat.com>
2733 Tomas Janousek <tjanouse@redhat.com>
2734 Ulrich Drepper <drepper@redhat.com>
2735
2736 [BZ #4647]
2737 * resolv/res_send.c (send_dg): Remove socket_pf. Use ipv6_unavail
2738 member in __res_state, only convaddr4to6 if nssocks[ns] is a PF_INET6
2739 socket.
2740 * resolv/resolv.h (__res_state): Add ipv6_unavail member. Make
2741 unused member a bitmap.
2742 * resolv/res_init.c (__res_vinit): Reset ipv6_unavail if IPv6
2743 servers are configured.
2744
3abee0b7
UD
27452007-06-18 Jakub Jelinek <jakub@redhat.com>
2746
2747 * elf/rtld.c (dl_main): Don't call init_tls more than once.
2748
89074592
UD
27492007-06-17 Andreas Schwab <schwab@suse.de>
2750
2751 * sysdeps/generic/initfini.c: Tell gcc about the nonstandard sections.
2752
b26e274d
AJ
27532007-06-16 Andreas Jaeger <aj@suse.de>
2754
2755 [BZ #4125]
2756 * sysdeps/unix/sysv/linux/sys/ptrace.h
2757 (PTRACE_O_TRACESYSGOOD, PTRACE_O_TRACEFORK,
2758 PTRACE_O_TRACEVFORK, PTRACE_O_TRACECLONE, PTRACE_O_TRACEEXEC,
89074592 2759 PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT, PTRACE_O_MASK,
b26e274d
AJ
2760 PTRACE_EVENT_FORK, PTRACE_EVENT_VFORK, PTRACE_EVENT_CLONE,
2761 PTRACE_EVENT_EXEC, PTRACE_EVENT_VFORK_DONE, PTRACE_EVENT_EXIT):
2762 Define.
2763 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
2764 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
2765 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
2766 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
2767
e0d4a4e5
UD
27682007-06-16 Ulrich Drepper <drepper@redhat.com>
2769
2770 [BZ #4599]
2771 * sysdeps/unix/sysv/linux/check_pf.c (make_request): When
2772 determining whether there are IPv4/IPv6 addresses, ignore loopback
2773 addresses.
2774
ae8e81f5
JJ
27752007-06-14 Uros Bizjak <ubizjak@gmail.com>
2776
2777 * soft-fp/soft-fp.h (CMPtype): Define to "int" if undefined.
2778 * soft-fp/eqdf2.c (__eqdf2): Use CMPtype instead of int
2779 as the return type. Change type of "r" variable to CMPtype.
2780 * soft-fp/eqsf2.c (__eqsf2): Likewise.
2781 * soft-fp/eqtf2.c (__eqtf2): Likewise.
2782 * soft-fp/gedf2.c (__gedf2): Likewise.
2783 * soft-fp/gesf2.c (__gesf2): Likewise.
2784 * soft-fp/getf2.c (__getf2): Likewise.
2785 * soft-fp/ledf2.c (__ledf2): Likewise.
2786 * soft-fp/lesf2.c (__lesf2): Likewise.
2787 * soft-fp/letf2.c (__letf2): Likewise.
2788 * soft-fp/unorddf2 (__unorddf2): Likewise.
2789 * soft-fp/unordsf2 (__unordsf2): Likewise.
2790 * soft-fp/unordtf2 (__unordtf2): Likewise.
2791
90cd2413
UD
27922007-06-09 Ulrich Drepper <drepper@redhat.com>
2793
2794 * elf/do-lookup.h (do_lookup_x): Read r_nlist before r_list and
2795 make sure gcc doesn't mess around with this.
2796
3c457089
UD
27972007-06-08 Ulrich Drepper <drepper@redhat.com>
2798
2799 * elf/dl-lookup.c (_dl_lookup_symbol_x): Remove use of r_nlist.
2800
e8b6b64d
UD
28012007-06-08 Jakub Jelinek <jakub@redhat.com>
2802
2803 * elf/dl-close.c (_dl_close_worker): Remove all to be removed
2804 libraries from the global scope at once and call THREAD_GSCOPE_WAIT
2805 at most once per _dl_close_worker.
2806
36dffb22
UD
28072007-06-08 Ulrich Drepper <drepper@redhat.com>
2808
755db8c5
UD
2809 * sysdeps/unix/sysv/linux/bits/sched.h: Make second parameter of
2810 __sched_cpucount as const.
2811 * posix/sched_cpucount.c: Adjust.
2812
36dffb22
UD
2813 * posix/sched_cpucount.c (__sched_cpucount): Allow using special
2814 instruction for counting bits.
2815 * sysdeps/x86_64/sched_cpucount.c: New file.
2816
26f56c1c
UD
28172007-06-07 Ulrich Drepper <drepper@redhat.com>
2818
2819 * configure.in: Avoid variable named BASH.
e967d385 2820 * config.make.in: Likewise.
26f56c1c 2821 Patch in part by Mike Frysinger.
835abc5c 2822
26f56c1c 28232007-06-06 Jakub Jelinek <jakub@redhat.com>
47779a7d
JJ
2824
2825 [BZ #4586]
835abc5c
UD
2826 * sysdeps/i386/ldbl2mpn.c (__mpn_extract_long_double): Treat
2827 pseudo-zeros as zero.
2828 * sysdeps/x86_64/ldbl2mpn.c: New file.
2829 * sysdeps/ia64/ldbl2mpn.c: New file.
2830
7e3706ea
UD
28312007-06-04 Jakub Jelinek <jakub@redhat.com>
2832
2833 * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (nextafterl): Remove
2834 unused ily variable. Fix nextafterl on +-__LDBL_MAX__ and +-Inf.
2835 Remove unreachable code at the end.
2836
28372007-06-01 Steven Munroe <sjmunroe@us.ibm.com>
2838
2839 * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Correct description of
2840 ldbl-128ibm in comment.
2841 (fpclassifyl): Correct classification of denormals.
2842 * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (nextafterl): Correct
2843 return value for MIN denormal. Rewrite using long double math too
2844 correctly handle denormals and canonicalize the results.
2845
28462007-06-05 Jakub Jelinek <jakub@redhat.com>
2847
2848 * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c
2849 (__mpn_construct_long_double): Fix conversion where result ought
2850 to be smaller than __LDBL_MIN__, or the low double should be
2851 denormal. Fix decision where to negate low double - honor round
2852 to even rules.
2853 * stdio-common/tst-sprintf2.c: Include string.h.
2854 (COMPARE_LDBL): Define.
2855 (TEST): Also test whether a string hexadecimal float representation
2856 can be parsed back to the number.
2857 (main): Add a couple of further tests.
2858
43b76828
UD
28592007-06-04 Jakub Jelinek <jakub@redhat.com>
2860
2861 * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c
2862 (PRINT_FPHEX_LONG_DOUBLE): Fix printing numbers where lower double
2863 is non-zero, but smaller than 2 * __DBL_MIN__.
2864 * stdio-common/tst-sprintf2.c: New test.
2865 * stdio-common/Makefile (tests): Add tst-sprintf2.
2866
2867 * math/test-misc.c (main): Don't run last batch of tests with
2868 IBM long double format.
2869
04067002
UD
28702007-05-31 Steven Munroe <sjmunroe@us.ibm.com>
2871
2872 * sysdeps/powerpc/powerpc32/970/fpu/Implies: New file.
2873 * sysdeps/powerpc/powerpc32/power5/fpu/Implies: New file.
2874 * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: New file.
2875 * sysdeps/powerpc/powerpc32/power6/fpu/Implies: New file.
2876 * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: New file.
2877 * sysdeps/powerpc/powerpc64/970/fpu/Implies: New file.
2878 * sysdeps/powerpc/powerpc64/power5/fpu/Implies: New file.
2879 * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: New file.
2880 * sysdeps/powerpc/powerpc64/power6/fpu/Implies: New file.
2881 * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: New file.
2882 * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: New file.
2883 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies:
2884 New file.
2885 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies:
2886 New file.
2887 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies:
2888 New file.
2889 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies:
2890 New file.
2891 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies:
2892 New file.
2893 * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: New file.
2894 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies:
2895 New file.
2896 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies:
2897 New file.
2898 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies:
2899 New file.
2900 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies:
2901 New file.
2902 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies:
2903 New file.
2904
29052007-05-31 Steven Munroe <sjmunroe@us.ibm.com>
2906
2907 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S: Move.
2908 * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: To here.
2909 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrintf.S: Move.
2910 * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: To here.
2911 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llround.S: Move.
2912 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: To here.
2913 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llroundf.S: Move.
2914 * sysdeps/powerpc/powerpc32/power4/fpu/s_llroundf.S: To here.
2915
29162007-05-22 Steven Munroe <sjmunroe@us.ibm.com>
2917
2918 * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S
2919 (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
2920 * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S
2921 (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
2922 * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S
2923 (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
2924 * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S
2925 (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
2926
29272007-05-21 Steven Munroe <sjmunroe@us.ibm.com>
2928
2929 * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: New file.
2930 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.c: New file.
2931 * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: New file.
2932 * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: New file.
2933
29342007-03-15 Steven Munroe <sjmunroe@us.ibm.com>
2935
2936 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S
2937 [LONG_DOUBLE_COMPAT]: Add compat_symbol for llrintl@@GLIBC_2_1.
2938
29392006-02-13 Steven Munroe <sjmunroe@us.ibm.com>
2940
2941 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: New File
2942 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: New File
2943 * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: New File
2944 * sysdeps/powerpc/powerpc32/power6/fpu/s_llroundf.S: New File
2945
29462006-10-20 Steven Munroe <sjmunroe@us.ibm.com>
2947
2948 * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: New file.
2949 * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: New file.
2950
29512006-10-03 Steven Munroe <sjmunroe@us.ibm.com>
2952
2953 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llround.S: New file.
2954 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llroundf.S: New file.
2955
2956 * sysdeps/powerpc/powerpc32/powerpc64/fpu/Makefile: Moved.
2957 * sysdeps/powerpc/powerpc32/powerpc64/fpu/mpa.c: Likewise.
2958 * sysdeps/powerpc/powerpc32/power4/fpu/Makefile: To here.
2959 * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
2960
29612006-09-29 Steven Munroe <sjmunroe@us.ibm.com>
2962
2963 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lrint.S: New file.
2964 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: New file.
2965 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: New file.
2966 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: New file.
2967
29682006-09-28 Steven Munroe <sjmunroe@us.ibm.com>
2969
2970 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: New file.
2971 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llroundf.S: New file.
2972 * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: New file.
2973 * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: New file.
2974 * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: New file.
2975 * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: New file.
2976
29772006-08-31 Steven Munroe <sjmunroe@us.ibm.com>
2978
2979 * sysdeps/powerpc/powerpc32/powerpc64/fpu/Makefile: New file.
2980 * sysdeps/powerpc/powerpc32/powerpc64/fpu/mpa.c: New file.
2981 * sysdeps/powerpc/powerpc64/power4/fpu/Makefile: New file.
2982 * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: New file.
2983
29842006-06-15 Steven Munroe <sjmunroe@us.ibm.com>
2985
2986 * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceil.S: New file.
2987 * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceilf.S: New file.
2988 * sysdeps/powerpc/powerpc32/power5+/fpu/s_floor.S: New file.
2989 * sysdeps/powerpc/powerpc32/power5+/fpu/s_floorf.S: New file.
2990 * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S: New file.
2991 * sysdeps/powerpc/powerpc32/power5+/fpu/s_roundf.S: New file.
2992 * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S: New file.
2993 * sysdeps/powerpc/powerpc32/power5+/fpu/s_truncf.S: New file.
2994 * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceil.S: New file.
2995 * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceilf.S: New file.
2996 * sysdeps/powerpc/powerpc64/power5+/fpu/s_floor.S: New file.
2997 * sysdeps/powerpc/powerpc64/power5+/fpu/s_floorf.S: New file.
2998 * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S: New file.
2999 * sysdeps/powerpc/powerpc64/power5+/fpu/s_roundf.S: New file.
3000 * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S: New file.
3001 * sysdeps/powerpc/powerpc64/power5+/fpu/s_truncf.S: New file.
3002
30032006-03-20 Steven Munroe <sjmunroe@us.ibm.com>
3004
3005 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S: New file.
3006 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrintf.S: New file.
3007
30082007-06-01 Steven Munroe <sjmunroe@us.ibm.com>
3009
3010 * sysdeps/powerpc/powerpc32/power6/memset.S: New file.
3011 * sysdeps/powerpc/powerpc64/power6/memset.S: New file.
3012
30132007-05-31 Steven Munroe <sjmunroe@us.ibm.com>
3014
3015 * sysdeps/powerpc/powerpc32/970/Implies: New file.
3016 * sysdeps/powerpc/powerpc32/power5/Implies: New file.
3017 * sysdeps/powerpc/powerpc32/power5+/Implies: New file.
3018 * sysdeps/powerpc/powerpc32/power6/Implies: New file.
3019 * sysdeps/powerpc/powerpc32/power6x/Implies: New file.
3020 * sysdeps/powerpc/powerpc64/970/Implies: New file.
3021 * sysdeps/powerpc/powerpc64/power5/Implies: New file.
3022 * sysdeps/powerpc/powerpc64/power5+/Implies: New file.
3023 * sysdeps/powerpc/powerpc64/power6/Implies: New file.
3024 * sysdeps/powerpc/powerpc64/power6x/Implies: New file.
3025
30262007-05-21 Steven Munroe <sjmunroe@us.ibm.com>
3027
3028 * sysdeps/powerpc/powerpc32/power4/memset.S: New file
3029
30302007-03-13 Steven Munroe <sjmunroe@us.ibm.com>
3031
3032 * sysdeps/powerpc/powerpc64/memcpy.S: Improve aligned loop to minimize
3033 branch miss-predicts. Ensure that cache line crossing does not impact
3034 dispatch grouping.
3035
30362006-12-13 Steven Munroe <sjmunroe@us.ibm.com>
3037
3038 * sysdeps/powerpc/powerpc64/power4/memcopy.h: Replace with include
3039 "../../powerpc32/power4/memcopy.h".
3040 * sysdeps/powerpc/powerpc64/power4/wordcopy.c: Replace with include
3041 "../../powerpc32/power4/wordcopy.c".
3042
30432006-10-03 Steven Munroe <sjmunroe@us.ibm.com>
3044
3045 * sysdeps/powerpc/powerpc32/powerpc64/Makefile: Moved.
3046 * sysdeps/powerpc/powerpc32/powerpc64/memcopy.h: Likewise.
3047 * sysdeps/powerpc/powerpc32/powerpc64/wordcopy.c: Likewise.
3048 * sysdeps/powerpc/powerpc32/power4/Makefile: To here.
3049 * sysdeps/powerpc/powerpc32/power4/memcopy.h: Likewise.
3050 * sysdeps/powerpc/powerpc32/power4/wordcopy.c: Likewise.
3051
30522006-09-10 Steven Munroe <sjmunroe@us.ibm.com>
3053
3054 * sysdeps/powerpc/powerpc32/power6/memcpy.S: New file.
3055
30562006-08-31 Steven Munroe <sjmunroe@us.ibm.com>
3057
3058 * sysdeps/powerpc/powerpc32/power6/wordcopy.c: New file.
3059 * sysdeps/powerpc/powerpc32/powerpc64/Makefile: New file.
3060 * sysdeps/powerpc/powerpc32/powerpc64/memcopy.h: New file.
3061 * sysdeps/powerpc/powerpc32/powerpc64/wordcopy.c: New file.
3062 * sysdeps/powerpc/powerpc64/power4/Makefile: New file.
3063 * sysdeps/powerpc/powerpc64/power4/memcopy.h: New file.
3064 * sysdeps/powerpc/powerpc64/power4/wordcopy.c: New file.
3065 * sysdeps/powerpc/powerpc64/power6/wordcopy.c: New file.
3066
30672006-07-06 Steven Munroe <sjmunroe@us.ibm.com>
3068
3069 * sysdeps/powerpc/powerpc64/power6/memcpy.S: New file.
3070
30712006-03-20 Steven Munroe <sjmunroe@us.ibm.com>
3072
3073 * sysdeps/powerpc/powerpc32/power4/memcmp.S: New file.
3074 * sysdeps/powerpc/powerpc32/power4/memcpy.S: New file.
3075 * sysdeps/powerpc/powerpc32/power4/memset.S: New file.
3076 * sysdeps/powerpc/powerpc32/power4/strncmp.S: New file.
3077 * sysdeps/powerpc/powerpc64/power4/memcmp.S: New file.
3078 * sysdeps/powerpc/powerpc64/power4/memcpy.S: New file.
3079 * sysdeps/powerpc/powerpc64/power4/strncmp.S: New file.
3080
5b55e1d3
RM
30812007-05-29 Roland McGrath <roland@redhat.com>
3082
3083 * po/Makefile (po-sed-cmd): New variable.
3084 (libc.pot.files): Move sed command text in there, avoid \ inside ''.
3085
5da4373c
UD
30862007-05-29 Ulrich Drepper <drepper@redhat.com>
3087
4b5e7304
UD
3088 * crypt/md5-crypt.c: Fix comment.
3089
5da4373c
UD
3090 * nscd/nscd_helper.c (get_mapping): Handle short replies instead
3091 of crashing. When this is the case or if the reply is malformed,
3092 don't try to close the new file descriptor since it does not
3093 exist.
3094 Patch in part by Guillaume Chazarain <guichaz@yahoo.fr>.
3095
40f57573
UD
30962007-05-28 Jakub Jelinek <jakub@redhat.com>
3097
3098 * sysdeps/unix/sysv/linux/futimes.c (miss_utimensat): Don't define
3099 if __NR_utimensat is not defined.
3100
6df7ffad
UD
31012007-05-26 Ulrich Drepper <drepper@redhat.com>
3102
3103 * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Include <sysdep.h>.
3104
47ad95ab
UD
31052007-05-25 Jakub Jelinek <jakub@redhat.com>
3106
3107 * io/bits/fcntl2.h (__open_2): Add nonnull attribute.
3108 (open): Fix comment typos. Don't call __open_2 if flags
3109 is a compile time constant without O_CREAT.
3110 (__open64_2): Add nonnull attribute.
3111 (open64): Fix comment typos. Don't call __open64_2 if flags
3112 is a compile time constant without O_CREAT.
3113 (__openat_2): Add nonnull attribute, fix nonnull attribute
3114 on redirect.
3115 (openat): Fix comment typos. Don't call __openat_2 if flags
3116 is a compile time constant without O_CREAT.
3117 (__openat64_2): Add nonnull attribute, fix nonnull attribute
3118 on redirect.
3119 (openat64): Fix comment typos. Don't call __openat64_2 if flags
3120 is a compile time constant without O_CREAT.
3121
ddfd0535
UD
31222007-05-24 Ulrich Drepper <drepper@redhat.com>
3123
3124 * Makerules (sysd-rules): Define PTW for ptw-* files.
3125 * Versions: Define GLIBC_2.7 for libc.
3126 * include/stdio.h: Declare __fortify_fail.
3127 * debug/fortify_fail.c: New file.
3128 * debug/Makefile (routines): Add fortify_fail.
3129 * debug/chk_fail.c: Use __fortify_fail.
3130 * debug/stack_chk_fail.c: Likewise.
3131 * io/Versions: Export __open_2, __open64_2, __openat_2, and
3132 __openat64_2 for GLIBC_2.7.
3133 * io/fcntl.h: When compiling with fortification, include bits/fcntl2.h.
3134 * io/open.c: Define *_2 variant of function which checks for O_CREAT
3135 and fails if necessary.
3136 * io/open64.c: Likewise.
3137 * io/openat.c: Likewise.
3138 * io/openat64.c: Likewise.
3139 * sysdeps/unix/sysv/linux/open64.c: Likewise.
3140 * sysdeps/unix/sysv/linux/openat.c: Likewise.
3141 * sysdeps/unix/sysv/linux/openat64.c: Likewise.
3142 * io/bits/fcntl2.h: New file.
3143 * include/fcntl.h: Declare __open_2, __open64_2, __openat_2, and
3144 __openat64_2.
3145 * include/bits/fcntl2.h: New file.
3146 * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
3147 Add open_2.
3148 * sysdeps/unix/sysv/linux/open_2.c: New file.
3149
bfe6f5fa
UD
31502007-05-21 Ulrich Drepper <drepper@redhat.com>
3151
6d59823c
UD
3152 * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Pass correct value
3153 as second parameter to handle_intel.
3154
e2b1e343
UD
3155 * nscd/aicache.c (addhstaiX): If reported TTL is zero don't cache
3156 the entry.
3157
bfe6f5fa
UD
3158 * sysdeps/unix/sysv/linux/x86_64/sysconf.c: Move cache information
3159 handling to ...
3160 * sysdeps/x86_64/cacheinfo.c: ... here. New file.
3161 * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
3162 cacheinfo.
3163 * sysdeps/x86_64/memcpy.S: Complete rewrite.
3164 * sysdeps/x86_64/mempcpy.S: Adjust appropriately.
3165 Patch by Evandro Menezes <evandro.menezes@amd.com>.
3166
3167 * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: New file.
3168
1f4843fb
UD
31692007-05-21 Jakub Jelinek <jakub@redhat.com>
3170
2c2c003a
UD
3171 [BZ #4525]
3172 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add epoll_pwait.
3173 * sysdeps/unix/sysv/linux/epoll_pwait.c: New file.
3174 * sysdeps/unix/sysv/linux/syscalls.list (epoll_pwait): Remove.
3175
3176 * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h (epoll_pwait): Declare.
3177
af269dd9
UD
3178 [BZ #4514]
3179 * stdio-common/vfprintf.c (vfprintf): Don't shadow workstart variable,
3180 reinitialize workend at the start of each do_positional format spec
3181 loop, free workstart before do_positional loops.
3182 (printf_unknown): Fix size of work_buffer.
3183 * stdio-common/tst-sprintf.c (main): Add 3 new testcases.
3184
1f4843fb
UD
3185 * malloc/hooks.c (MALLOC_STATE_VERSION): Bump.
3186 (public_sET_STATe): If ms->version < 3, put all chunks into
3187 unsorted chunks and clear {fd,bk}_nextsize fields of largebin
3188 chunks.
3189
3190 * malloc/malloc.c [MALLOC_DEBUG]: Revert 2007-05-13 changes.
3191 * malloc/hooks.c: Likewise.
3192 * malloc/arena.c: Likewise.
3193 * malloc/malloc.c (do_check_malloc_state): Don't assert
3194 n_mmaps is not greater than n_mmaps_max. This removes the need
3195 for the previous change.
3196
3197 * malloc/Makefile (CFLAGS-malloc.c): Revert accidental
3198 2007-05-07 commit.
3199
12e8bbff
UD
32002007-05-19 Ulrich Drepper <drepper@redhat.com>
3201
3202 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PRIVATE_FUTEX):
3203 Define for kernel >= 2.6.22.
69e5cbf5 3204
12e8bbff 32052007-05-18 Ulrich Drepper <drepper@redhat.com>
6d59823c 3206
df94b641
UD
3207 * elf/dl-close.c (_dl_close_worker): When removing object from
3208 global scope, wait for all lookups to finish afterwards.
3209 * elf/dl-open.c (add_to_global): When global scope array must
3210 grow, allocate a new one and free old array only after all
3211 lookups finish.
3212 * elf/dl-runtime.c (_dl_fixup): Protect using global scope.
3213 (_dl_lookup_symbol_x): Likewise.
3214 * elf/dl-support.c: Define _dl_wait_lookup_done.
3215 * sysdeps/generic/ldsodefs.h (struct rtld_global): Add
3216 _dl_wait_lookup_done.
3217
2acd01ac
UD
3218 * malloc/malloc.c (do_check_chunk): Correct check for mmaped block
3219 not overlapping with arena.
3220
129abdd3
UD
3221 * malloc/mcheck.c (reallochook): If size==0, free the block.
3222
eb4b098a
UD
3223 * rt/tst-shm.c: Use fstat64 instead of fstat.
3224
69e5cbf5
UD
3225 * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Fix case where
3226 __NR_sync_file_range is not defined.
3227
a2ccc760
UD
32282007-05-17 Ulrich Drepper <drepper@redhat.com>
3229
bec51a30
UD
3230 Dummy files to prevent stub versions from being used.
3231 * sysdeps/x86_64/fpu/k_cosl.c: New file.
3232 * sysdeps/x86_64/fpu/k_rem_pio2l.c: New file.
3233 * sysdeps/x86_64/fpu/k_sinl.c: New file.
3234 * sysdeps/x86_64/fpu/k_tanl.c: New file.
3235
a2ccc760
UD
3236 * version.h (VERSION): Set to 2.6.90.
3237
1a31b586
UD
32382007-05-14 Ulrich Drepper <drepper@redhat.com>
3239
a2ccc760
UD
3240 * version.h (VERSION): Define to 2.6.
3241 * include/features.h (__GLIBC_MINOR__): Define to 6.
2c1d6172 3242
1d47e92f
UD
3243 * malloc/malloc.c: Use all small bin slots on 64-bit archs.
3244
3245 * malloc/malloc.c (largebin_index): Really have 32 buckets with 64
3246 sizes.
366ad8fd 3247
1a31b586 32482007-05-13 Ulrich Drepper <drepper@redhat.com>
87e66335 3249
366ad8fd
UD
3250 * malloc/malloc.c [MALLOC_DEBUG]: Keep track of current maximum
3251 number of mmaps. n_mmaps_max is the target.
3252 * malloc/hooks.c: Likewise.
3253 * malloc/arena.c: Likewise.
3254
11ed6713
AJ
32552007-05-12 Andreas Jaeger <aj@suse.de>
3256
3257 * sysdeps/unix/sysv/linux/tst-getcpu.c: Include <unistd.h> for
3258 getpid.
3259
d65ef3dd
UD
32602007-05-11 Ulrich Drepper <drepper@redhat.com>
3261
2e81d449
UD
3262 * elf/dl-close.c (_dl_close_worker): Help gcc to optimize by
3263 adding new variables.
3264
d65ef3dd 3265 * elf/dl-open.c (add_to_global): Introduce variable ns to help gcc
2e81d449 3266 optimize. Completely extend global scope array before making the
d65ef3dd
UD
3267 new entries visible.
3268
c27d2078
UD
32692007-05-10 Ulrich Drepper <drepper@redhat.com>
3270
341c566f
UD
3271 * sysdeps/unix/sysv/linux/tst-getcpu.c: New file.
3272 * sysdeps/unix/sysv/linux/Makefile [subdir=posix] (tests): Add
3273 tst-getcpu.
3274
3275 * include/link.h: Move l_version and l_nversion members around to
3276 fill gaps.
3277
a53fa282
UD
3278 * scripts/check-c++-types.sh: Don't use -fnu89-inline option.
3279
3771196d
UD
3280 * sysdeps/unix/sysv/linux/sched_setaffinity.c
3281 (__sched_setaffinity_new): If syscall was successful and
3282 RESET_VGETCPU_CACHE is defined, use it before returning.
3283 * sysdeps/unix/sysv/linux/x86_64/sched_setaffinity.c: New file.
3284
f9bf102d
UD
3285 * io/sys/stat.h: Make sure struct timespec is defined for
3286 __USE_ATFILE.
3287
c27d2078
UD
3288 * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Define UTIME_NOW and
3289 UTIME_OMIT.
3290 * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
3291 * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
3292 * sysdeps/unix/sysv/linux/alpha/bits/stat.h: Likewise.
3293 * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
3294 * sysdeps/unix/sysv/linux/bits/stat.h: Likewise.
3295 * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
3296 * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_UTIMENSAT.
3297 * io/sys/stat.h: Declare utimensat, futimens.
3298 * io/utimensat.c: New file.
3299 * io/futimens.c: New file.
3300 * sysdeps/unix/sysv/linux/utimensat.c: New file.
3301 * sysdeps/unix/sysv/linux/futimens.c: New file.
3302 * io/Makefile (routines): Add utimensat, futimens.
3303 * io/Versions: Add utimensat, futimens to GLIBC_2.6.
3304 * sysdeps/unix/sysv/linux/lutimes.c: New file.
3305 * sysdeps/unix/sysv/linux/futimes.c: Use utimensat syscall if
3306 available.
3307
3308 * include/sys/cdefs.h: Redefine __nonnull so that test for
3309 incorrect parameters in the libc code itself are not omitted.
3310
cf6b0980
JJ
33112007-05-09 Jakub Jelinek <jakub@redhat.com>
3312
c1dfd7e6
JJ
3313 * sysdeps/ia64/fpu/fraiseexcpt.c (feraiseexcept): Don't raise overflow
3314 exception in addition to inexact when asked to raise only FE_INEXACT.
3315
cf6b0980
JJ
3316 [BZ #3427]
3317 * sysdeps/s390/fpu/feholdexcpt.c (feholdexcept): Don't clear exceptions
3318 in *envp.
3319
df7b6fea
UD
33202007-05-07 Ulrich Drepper <drepper@redhat.com>
3321
3322 [BZ #4403]
3323 * string/strfry.c (strfry): Make result more random.
3324
37f40235
RH
33252007-05-07 Richard Henderson <rth@redhat.com>
3326
3327 * sysdeps/alpha/fpu/bits/mathinline.h (__isnanl): Don't define
3328 if __NO_LONG_DOUBLE_MATH.
3329 * sysdeps/unix/sysv/linux/alpha/ioperm.c: If BWX insns not
df7b6fea 3330 available in the compiler, add .arch directive to the assembly.
37f40235
RH
3331
33322007-05-07 Jakub Jelinek <jakub@redhat.com>
3333
3334 * sysdeps/alpha/fpu/s_nearbyint.c (nearbyintl): Fix version on
3335 compat_symbol to GLIBC_2_1.
3336 * sysdeps/alpha/fpu/s_fmin.S (fminl): Likewise.
3337 * sysdeps/alpha/fpu/s_trunc.c (truncl): Likewise.
3338 * sysdeps/alpha/fpu/s_fmax.S (fmaxl): Likewise.
3339 * sysdeps/alpha/fpu/s_lrint.c (lrintl, llrintl): Likewise.
3340 * sysdeps/alpha/fpu/s_lround.c (lroundl, llroundl): Likewise.
3341 * sysdeps/alpha/fpu/s_round.c (roundl): Likewise.
3342 * sysdeps/alpha/fpu/s_isnan.c (isnanl): Provide compat_symbol in
3343 libc, not libm.
3344 (__isnanl): New compat_symbol.
3345
c7fd3362
JJ
33462007-05-07 Ulrich Drepper <drepper@redhat.com>
3347 Jakub Jelinek <jakub@redhat.com>
3348
3349 * malloc/arena.c (heap_info): Add mprotect_size field, adjust pad.
3350 (new_heap): Initialize mprotect_size.
3351 (grow_heap): When growing, only mprotect from mprotect_size till
3352 new_size if mprotect_size is smaller. When shrinking, use PROT_NONE
3353 MMAP for __libc_enable_secure only, otherwise use MADV_DONTNEED.
3354
4a59e9ad 33552007-04-30 Steven Munroe <sjmunroe@us.ibm.com>
37f40235 3356 Peter Bergner <bergner@us.ibm.com>
4a59e9ad
UD
3357
3358 * sysdeps/powerpc/bits/fenv.h: Declare __fe_mask_env extern.
3359 Define FE_NOMASK_ENV as FE_EANBLED_ENV. Define FE_MASK_ENV.
3360 * sysdeps/powerpc/fpu/Makefile: Add fe_mask to libm-support.
3361 * sysdeps/powerpc/fpu/fe_mask.c: New file.
3362 * sysdeps/powerpc/fpu/fe_nomask.c: Correct comment.
3363 * sysdeps/powerpc/fpu/fedisblxcpt.c (fedisableexcept):
3364 Call __fe_mask_env() if all FP exceptions disabled.
3365 * sysdeps/powerpc/fpu/feholdexcpt.c (feholdexcept): Copy high 32-bits
3366 from old FPSCR to new fenv to propagate DFP rounding modes.
3367 Call __fe_mask_env() if FP exceptions previously enabled.
3368 * sysdeps/powerpc/fpu/fesetenv.c (fesetenv): Change mask to merge
3369 exceptions from env. Use __fe_nomask_env() or __fe_mask_env() when
3370 transitioning from all exceptions disabled to any exception enabled
3371 or visa versa.
3372 * sysdeps/powerpc/fpu/feupdateenv.c (__feupdateenv): Change mask to
3373 merge exceptions from env. Call __fe_nomask_env or __fe_mask_env
3374 when transitioning from all exceptions disabled to any exception
3375 enabled or visa versa.
3376 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fe_nomask.c: Moved to...
3377 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c: ...here.
3378 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c: Moved to...
3379 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c: ...here.
3380 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c: New file.
3381 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c: New file.
3382
aa75f64c
UD
33832007-05-06 Ulrich Drepper <drepper@redhat.com>
3384
15eca720 3385 [BZ #4465]
aa75f64c
UD
3386 * posix/unistd.h: Remove __THROW from fdatasync.
3387
711deb05
UD
33882007-05-06 Mike Frysinger <vapier@gentoo.org>
3389
15eca720 3390 [BZ #4465]
711deb05
UD
3391 * sysdeps/unix/sysv/linux/syscalls.list (fdatasync): Add "C" to args.
3392
ffecd39b
UD
33932007-05-06 Ulrich Drepper <drepper@redhat.com>
3394
49a8eb75
UD
3395 * stdio-common/vfprintf.c (process_string_arg): Optimize
3396 ridiculous precision in wide char code printing multi-byte string.
3397 Reported by Jim Meyering <jim@meyering.net>.
3398
ffecd39b
UD
3399 [BZ #4131]
3400 * elf/dl-addr.c (_dl_addr): Compare address with actual segment
3401 boundaries to work around systems with overlapping binary loading.
3402 Based on a patch by Suzuki <suzuki@in.ibm.com>.
3403
b16dba4c
UD
34042007-05-04 Ulrich Drepper <drepper@redhat.com>
3405
30b323ab
UD
3406 * stdio-common/vfprintf.c (process_string_arg): Adjust call to
3407 __mbsnrtowcs after last change.
3408
b16dba4c
UD
3409 * locale/programs/linereader.c (get_symname): Fix adding final NUL.
3410 (get_ident): Likewise.
3411
37002cbc
JJ
34122007-05-03 Jakub Jelinek <jakub@redhat.com>
3413
3414 * soft-fp/op-common.h (FP_TRUNC): Replace raising of FP_EX_INEXACT
3415 with setting the sticky bit.
3416 * math/test-misc.c (main): Add more truncation tests.
3417
34182007-04-14 Uros Bizjak <ubizjak@gmail.com>
3419
3420 * soft-fp/floatunsidf.c (__floatunsidf): Use DFtype instead of
3421 double in the function declaration.
3422 * soft-fp/floatundidf.c (__floatundidf): Use DFtype instead of
3423 double in the function declaration.
3424 * soft-fp/floatunsisf.c (__floatunsisf): Use SFtype instead of
3425 float in the function declaration.
3426 * soft-fp/floatunsisf.c (__floatunsisf): Use SFtype instead of
3427 float in the function declaration.
3428
3429 * soft-fp/extended.h (FP_UNPACK_RAW_E): Do not increase X##_e for
3430 denormal operands. Do not generate FP_EX_DENORM exception.
3431 (FP_UNPACK_RAW_EP): Ditto.
3432 (FP_UNPACK_SEMIRAW_E): Use FP_UNPACK_RAW_E instead of
3433 undefined _FP_UNPACK_RAW_E.
3434 (FP_UNPACK_SEMIRAW_EP): Use FP_UNPACK_RAW_EP instead of
3435 undefined _FP_UNPACK_RAW_EP.
3436 (FP_PACK_SEMIRAW_E): Use FP_PACK_RAW_E instead of
3437 undefined _FP_PACK_RAW_E.
3438 (FP_PACK_SEMIRAW_EP): Use FP_PACK_RAW_EP instead of
3439 undefined _FP_PACK_RAW_EP.
3440
d9ac82d0
UD
3441 * soft-fp/op-2.h (_FP_FRAC_COPY_2_2): Define as alias to
3442 _FP_FRAC_COPY_2.
3443 * soft-fp/op-4.h (_FP_FRAC_COPY_2_2): Define as alias to
3444 _FP_FRAC_COPY_4.
37002cbc
JJ
3445
34462007-04-16 Uros Bizjak <ubizjak@gmail.com>
3447 Jakub Jelinek <jakub@redhat.com>
3448
3449 * soft-fp/op-common.h (FP_EXTEND): Do not abort when
3450 _FP_EXPBIAS_##dfs == _FP_EXPBIAS_##sfs. Handle denormals for
3451 this case.
3452 * soft-fp/op-common.h (FP_TRUNC): Ditto.
3453
002f0b0b
JJ
34542007-05-03 Jakub Jelinek <jakub@redhat.com>
3455
3456 * math/test-misc.c (main): Add tests for rounding long double
3457 values close to smallest double denormalized value to double.
3458
34592007-04-30 Joseph Myers <joseph@codesourcery.com>
3460
3461 * soft-fp/op-common.h (FP_TRUNC): Correct off-by-one error in
3462 condition for truncating to 0. Set sticky bit for such
3463 truncation.
3464
57433ede
UD
34652007-05-02 Jakub Jelinek <jakub@redhat.com>
3466
3467 * stdio-common/vfprintf.c (process_string_arg): Use a VLA rather than
3468 fixed length array for ignore.
3469
c01c2455
UD
34702007-04-30 Ulrich Drepper <drepper@redhat.com>
3471
3472 [BZ #4438]
3473 * stdio-common/vfprintf.c (process_string_arg): Don't overflow the
3474 stack for large precisions.
1cb04337
UD
3475 * stdio-common/test-vfprintf.c (main): Add test for large
3476 precision.
c01c2455 3477
37f02b1d
UD
34782007-04-30 Jakub Jelinek <jakub@redhat.com>
3479
b866373d
UD
3480 * stdio-common/printf_fp.c (___printf_fp): Don't print negative sign
3481 for exponent 0.
3482 * stdio-common/tfformat.c (sprint_doubles): Add a new test.
3483
37f02b1d
UD
3484 [BZ #4439]
3485 * resolv/inet_ntop.c (inet_ntop4): Take terminating '\0' into
3486 account in the size check.
3487 * resolv/tst-inet_ntop.c: New test.
3488 * resolv/Makefile (tests): Add tst-inet_ntop.
3489
7ecfbd38
UD
34902007-04-30 Ulrich Drepper <drepper@redhat.com>
3491 Jakub Jelinek <jakub@redhat.com>
3492
3493 [BZ #4349]
3494 * malloc/malloc.c: Keep separate list for first blocks on the bin
3495 lists with a given size. This helps skipping over list elements
3496 we know won't fit in two places.
3497 Inspired by a patch by Tomash Brechko <tomash.brechko@gmail.com>.
3498
e53f0f51
UD
34992007-04-28 Ulrich Drepper <drepper@redhat.com>
3500
3501 [BZ #4102]
3502 * sysdeps/posix/getaddrinfo.c (default_labels): Assign separate
3503 label to Teredo tunnel addresses 2001://32.
3504
109f51f2
UD
35052007-04-27 Ulrich Drepper <drepper@redhat.com>
3506
762422d1
UD
3507 * locale/programs/ld-collate.c (collate_read): Allow order_start
3508 after copy.
3509
61d5a67f
UD
3510 * locale/programs/ld-collate.c (collate_read): Fix printing of
3511 error message.
3512
3513 [BZ #3213]
3514 * locale/C-translit.h.in: Add entry for U2044.
3515
109f51f2
UD
3516 [BZ #4342]
3517 * stdio-common/vfscanf.c (_IO_vfscanf_internal): Allow
3518 hexa-decimal floats without exponent.
3519 * stdio-common/tstscanf.c (main): Adjust Test 8 test for success.
3520
ec08f13d
UD
35212007-04-25 Ulrich Drepper <drepper@redhat.com>
3522
3523 * sysdeps/unix/sysv/linux/bits/sched.h: Declare sched_getcpu.
3524 * sysdeps/unix/sysv/linux/sched_getcpu.c: New file.
3525 * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: New file.
3526 * sysdeps/unix/sysv/linux/Versions: Export sched_getcpu for
3527 GLIBC_2.6.
bce20b9a
UD
3528 * sysdeps/unix/sysv/linux/Makefile [subdir=posix] (sysdep_routines):
3529 Add sched_getcpu.
ec08f13d 3530
41967e1c
JJ
35312007-04-25 Jakub Jelinek <jakub@redhat.com>
3532
3533 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Return -1 instead
3534 of 0 after the out_fail label.
3535
ba508da3
UD
35362007-04-25 Ulrich Drepper <drepper@redhat.com>
3537
3538 [BZ #4406]
109f51f2 3539 * iconv/gconv_charset.h (strip): Allow ':'.
ba508da3
UD
3540 * iconv/iconv_open.c (iconv_open): Adjust comment.
3541
9c8d03d9
JJ
35422007-04-25 Jakub Jelinek <jakub@redhat.com>
3543
3544 * libio/bits/stdio.h (fgetc_unlocked): Add extern inline optimized
3545 version.
3546
2f1687b9
UD
35472007-04-23 Jakub Jelinek <jakub@redhat.com>
3548
3549 [BZ #4381]
3550 * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Ensure sufficient
3551 alignment of buffer and tmp_buffer.
3552 * nis/nss_nis/nis-hosts.c (internal_nis_gethostent_r,
3553 internal_gethostbyname2_r, _nss_nis_gethostbyaddr_r): Ensure sufficient
3554 alignment of buffer.
3555 * resolv/nss_dns/dns-hosts.c (getanswer_r): Likewise. Handle buflen
3556 bigger than INT_MAX.
3557 * resolv/nss_dns/dns-network.c (getanswer_r): Likewise. Add errnop and
3558 h_errnop arguments. Fail if buflen is too small.
3559 (_nss_dns_getnetbyname_r, _nss_dns_getnetbyaddr_r): Adjust callers.
3560
b64a9db8
JJ
35612007-04-23 Jakub Jelinek <jakub@redhat.com>
3562
3563 [BZ #4405]
3564 * iconvdata/gconv-modules (E13B): Add a missing slash to the alias
3565 name. Patch by Aurelien Jarno <aurelien@aurel32.net>.
3566
4d3144c9
RM
35672007-04-22 Roland McGrath <roland@redhat.com>
3568
3569 * elf/elf.h (NT_PRXFPREG): New macro.
3570
767b40bf
AJ
35712007-04-19 Andreas Jaeger <aj@suse.de>
3572
3573 [BZ #3905]
3574 * bits/in.h (IPV6_ROUTER_ALERT, IPV6_MTU_DISCOVER, IPV6_MTU,
3575 IPV6_RECVERR, IPV6_V6ONLY, IPV6_JOIN_ANYCAST, IPV6_LEAVE_ANYCAST):
3576 Added.
3577
2592d1ec
UD
35782007-04-19 Ulrich Drepper <drepper@redhat.com>
3579
3580 * include/sys/mman.h: Mark madvise hidden.
d07d044e 3581 * misc/madvise.c: Add libc_hidden_def.
2592d1ec 3582
7ab174ed
UD
35832007-04-06 Jakub Jelinek <jakub@redhat.com>
3584
3585 * nis/nis_domain_of.c (__nis_domain_of): New function.
3586 * include/rpcsvc/nislib.h (__nis_domain_of): New prototype.
3587 * nis/nis_lookup.c (nis_lookup): Use __nis_domain_of.
3588 * nis/nis_call.c (rec_dirsearch): Likewise.
3589 (first_shoot): Likewise. Remove search_parent_first argument.
3590 (struct nis_server_cache): Rename search_parent_first field
3591 to search_parent.
3592 (nis_server_cache_search, nis_server_cache_add): Rename
3593 search_parent_first argument to search_parent.
3594 (__nisfind_server): Likewise. If search_parent, call
3595 __nis_domain_of.
3596
b17c265f
UD
35972007-04-18 Ulrich Drepper <drepper@redhat.com>
3598
3599 * sysdeps/posix/getaddrinfo.c: Remove commented-out code.
3600
b7674b11
UD
36012007-04-17 Ulrich Drepper <drepper@redhat.com>
3602
3603 [BZ #4368]
3604 * stdlib/stdlib.h: Remove obsolete part of comment for realpath.
3605
faf3ad69
UD
36062007-04-16 Ulrich Drepper <drepper@redhat.com>
3607
3608 [BZ #4364]
3609 * posix/unistd.h (_XOPEN_VERSION): Define appropriately for SUSv3.
3610
c14f245c
UD
36112007-04-15 Jakub Jelinek <jakub@redhat.com>
3612
3613 * locale/programs/locarchive.c (INITIAL_NUM_NAMES,
3614 INITIAL_SIZE_STRINGS, INITIAL_NUM_LOCREC): Update to accomodate
3615 current number of locales in SUPPORTED.
3616 (create_archive): Initialize serial.
3617 (enlarge_archive): Preserve aliases rather than duplicating
3618 their locrecs.
3619
d40e67f5
UD
36202007-04-13 Jakub Jelinek <jakub@redhat.com>
3621
993a5d66
UD
3622 * libio/genops.c (_IO_default_finish): Call _IO_lock_fini
3623 after _IO_un_link, not before it.
3624
d40e67f5
UD
3625 * stdio-common/printf_fp.c (___printf_fp): Fix exponent -4
3626 special case handling when wcp == wstartp + 1. Fix a comment typo.
3627 * stdio-common/tfformat.c (sprint_doubles): Add a new testcase.
3628
0fca3153
UD
36292007-03-30 Jakub Jelinek <jakub@redhat.com>
3630
3631 * libio/libio.h (__underflow, __uflow, __overflow, __wunderflow,
3632 __wuflow, __woverflow, _IO_getc, _IO_putc, _IO_peekc_locked, _IO_padn,
3633 _IO_sgetn, _IO_seekoff, _IO_seekpos, _IO_getwc, _IO_putwc, _IO_wpadn):
3634 Remove __THROW.
3635 * libio/fileops.c (new_do_write, _IO_file_xsgetn_mmap,
3636 _IO_file_xsgetn_maybe_mmap): Likewise.
3637 * libio/oldfileops.c (old_do_write): Likewise.
3638 * libio/libioP.h (_IO_switch_to_get_mode, _IO_switch_to_wget_mode,
3639 _IO_init_marker, _IO_init_wmarker, _IO_default_uflow,
3640 _IO_wdefault_uflow, _IO_default_setbuf, _IO_default_seekpos,
3641 _IO_do_write, _IO_new_do_write, _IO_old_do_write, _IO_wdo_write,
3642 _IO_flush_all_lockp, _IO_flush_all, _IO_cleanup,
3643 _IO_flush_all_linebuffered, _IO_new_fgetpos, _IO_old_fgetpos,
3644 _IO_new_fsetpos, _IO_old_fsetpos, _IO_new_fgetpos64,
3645 _IO_old_fgetpos64, _IO_new_fsetpos64, _IO_old_fsetpos64,
3646 _IO_file_setbuf, _IO_file_seekoff, _IO_file_xsputn, _IO_file_xsgetn,
3647 _IO_file_underflow, _IO_file_underflow_mmap,
3648 _IO_file_underflow_maybe_mmap, _IO_file_overflow, _IO_file_attach,
3649 _IO_file_open, _IO_file_fopen, _IO_file_write, _IO_file_read,
3650 _IO_file_sync, _IO_file_close_it, _IO_file_finish,
3651 _IO_new_file_attach, _IO_new_file_close_it, _IO_new_file_finish,
3652 _IO_new_file_fopen, _IO_new_file_setbuf, _IO_file_setbuf_mmap,
3653 _IO_new_file_sync, _IO_new_file_underflow, _IO_new_file_overflow,
3654 _IO_new_file_seekoff, _IO_new_file_write, _IO_new_file_xsputn,
3655 _IO_old_file_setbuf, _IO_old_file_seekoff, _IO_old_file_xsputn,
3656 _IO_old_file_underflow, _IO_old_file_overflow, _IO_old_file_attach,
3657 _IO_old_file_fopen, _IO_old_file_write, _IO_old_file_sync,
3658 _IO_old_file_close_it, _IO_old_file_finish, _IO_wfile_xsputn,
3659 _IO_wfile_setbuf, _IO_wfile_sync, _IO_wfile_underflow,
3660 _IO_wfile_overflow, _IO_wfile_seekoff, _IO_old_proc_open,
3661 _IO_old_proc_close, _IO_getdelim, _IO_flush_all_internal,
3662 _IO_adjust_column_internal, _IO_default_uflow_internal,
3663 _IO_default_xsgetn_internal, _IO_wdefault_xsputn_internal,
3664 _IO_wdefault_xsgetn_internal, _IO_wdefault_uflow_internal,
3665 _IO_file_setbuf_internal, _IO_file_seekoff_internal,
3666 _IO_file_xsputn_internal, _IO_file_xsgetn_internal,
3667 _IO_file_close_it_internal, _IO_file_underflow_internal,
3668 _IO_file_overflow_internal, _IO_file_attach_internal,
3669 _IO_file_fopen_internal, _IO_file_sync_internal,
3670 _IO_file_finish_internal, _IO_wfile_xsputn_internal,
3671 _IO_wfile_seekoff_internal, _IO_wfile_sync_internal,
3672 _IO_switch_to_wget_mode_internal, _IO_padn_internal,
3673 _IO_switch_to_get_mode_internal, _IO_seekoff_unlocked,
3674 _IO_seekpos_unlocked): Likewise.
3675 (_IO_strtod, _IO_dtoa, _IO_outfloat, _IO_read, _IO_write,
3676 _IO_lseek, _IO_close, _IO_fstat): Remove unused prototypes.
3677
07358add
JJ
36782007-04-16 Jakub Jelinek <jakub@redhat.com>
3679
3680 * locale/programs/locarchive.c (show_archive_content): Fix sizeof
3681 argument in xmalloc size computation.
3682
7a82b74f
UD
36832007-04-01 Jakub Jelinek <jakub@redhat.com>
3684
3685 * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl): Use
3686 math_opt_barrier and math_force_eval macros.
3687
3e336a87
UD
36882007-03-27 Jakub Jelinek <jakub@redhat.com>
3689
3690 [BZ #3306]
3691 * math/math_private.h (math_opt_barrier, math_force_eval): Define.
3692 * sysdeps/i386/fpu/math_private.h: New file.
3693 * sysdeps/x86_64/fpu/math_private.h: New file.
3694 * math/s_nexttowardf.c (__nexttowardf): Use math_opt_barrier and
3695 math_force_eval macros. Use "+m" constraint on asm rather than
3696 "=m" and "m".
3697 * math/s_nextafter.c (__nextafter): Likewise.
3698 * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c (__nexttoward):
3699 Likewise.
3700 * sysdeps/ieee754/flt-32/s_nextafterf.c (__nextafterf): Likewise.
3701 * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward): Likewise.
3702 * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
3703 * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Use
3704 math_opt_barrier and math_force_eval macros.
3705 * sysdeps/ieee754/ldbl-128/s_nextafterl.c (__nextafterl): Likewise.
3706 * sysdeps/ieee754/ldbl-96/s_nextafterl.c (__nextafterl): Likewise.
3707 * sysdeps/i386/fpu/s_nexttoward.c: Include float.h.
3708 (__nexttoward): Use math_opt_barrier and
3709 math_force_eval macros. Use "+m" constraint on asm rather than
3710 "=m" and "m". Only use asm to force double result if
3711 FLT_EVAL_METHOD is 2.
3712 * sysdeps/i386/fpu/s_nexttowardf.c: Include float.h.
3713 (__nexttowardf): Use math_opt_barrier and
3714 math_force_eval macros. Use "+m" constraint on asm rather than
3715 "=m" and "m". Only use asm to force double result if
3716 FLT_EVAL_METHOD is not 0.
3717 * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Include float.h.
3718 (__nexttowardf): Use math_opt_barrier and
3719 math_force_eval macros. If FLT_EVAL_METHOD is not 0, force
3720 x to float using asm.
3721 * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c: Include float.h.
3722 (__nldbl_nexttowardf): Use math_opt_barrier and
3723 math_force_eval macros. If FLT_EVAL_METHOD is not 0, force
3724 x to float using asm.
3725 * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Include float.h.
3726 (__nexttowardf): Use math_opt_barrier and math_force_eval
3727 macros. If FLT_EVAL_METHOD is not 0, force x to float using asm.
3728 * math/bug-nextafter.c (zero, inf): New variables.
3729 (main): Add new tests.
3730 * math/bug-nexttoward.c (zero, inf): New variables.
3731 (main): Add new tests.
3732
a8c79c40
UD
37332007-03-22 Jakub Jelinek <jakub@redhat.com>
3734
3735 [BZ #3427]
3736 * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Clear all
3737 exceptions both in SW and MXCSR.
3738 * sysdeps/x86_64/fpu/feupdateenv.c: New file.
3739 * sysdeps/x86_64/fpu/feenablxcpt.c (feenableexcept): Remove dead code.
3740 * sysdeps/x86_64/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
3741 * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions
3742 in MXCSR if SSE is available.
3743 * sysdeps/i386/fpu/feupdateenv.c: Include unistd.h, dl-procinfo.h
3744 and ldsodefs.h.
3745 (__feupdateenv): Query exceptions also from MXCSR if SSE is available.
3746 Fix comment typo.
3747 * sysdeps/ia64/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions.
3748 Return 0 rather than 1.
3749 * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Fix comment typo.
3750 Remove incorrect part of a comment. Fix argument to feraiseexcept.
3751 * math/test-fenv.c (feholdexcept_tests): New function.
3752 (main): Call it.
3753
37542007-01-05 Richard B. Kreckel <kreckel@ginac.de>
3755
3756 [BZ #3427]
3757 * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions
3758 in SW.
3759
30a3aa75
JJ
37602007-04-13 Jakub Jelinek <jakub@redhat.com>
3761
3762 [BZ #4344]
3763 * elf/ldconfig.c (search_dir): Fix 2 off-by-2 errors.
3764 Reported by David Anderson <davea42@earthlink.net>.
3765
75587bfe
UD
37662007-04-07 Ulrich Drepper <drepper@redhat.com>
3767
3768 * posix/sys/wait.h: Remove unnecessary forward declaration.
3769
88fa1769
JJ
37702007-04-05 Jakub Jelinek <jakub@redhat.com>
3771
3772 * nis/nis_call.c (__nisfind_server): Replace (*dir)->do_servers
3773 with obj->do_servers after first_shoot.
3774
eab1bdfb
UD
37752007-04-03 Ulrich Drepper <drepper@redhat.com>
3776
3777 * posix/Makefile (routines): Add sched_cpucount.
3778 (tests): Add tst-cpucount.
3779 * posix/sched_cpucount.c: New file.
3780 * posix/tst-cpucount.c: New file.
3781 * posix/Versions: Export __sched_cpucount with version GLIBC_2.6.
b4afdd06
UD
3782 * bits/sched.h: Define __CPU_COUNT. Declare __sched_cpucount.
3783 * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
3784 * posix/sched.h: Define CPU_COUNT.
eab1bdfb 3785
9700b039
UD
37862007-03-27 Jakub Jelinek <jakub@redhat.com>
3787
3788 * posix/fnmatch.c (STRUCT): Define.
3789 (fnmatch): Pass NULL as last argument to internal_fn{,w}match.
3790 * posix/fnmatch_loop.c (struct STRUCT): New type.
3791 (FCT): Add ends argument. If ends != NULL and normal * is
3792 seen in the pattern, store current pattern and string pointers
3793 and return. Adjust recursive calls.
3794 (EXT): Adjust FCT callers.
3795 (STRUCT): Undef at the end of the file.
3796 * posix/Makefile (tests): Add tst-fnmatch2.
3797 * posix/tst-fnmatch2.c: New test.
3798
d64e9790
JJ
37992007-04-01 Jakub Jelinek <jakub@redhat.com>
3800
933dfe7b
JJ
3801 * sysdeps/ia64/fpu/fesetround.c (fesetround): Return 0 on success
3802 and 1 on failure.
3803
d64e9790
JJ
3804 * sysdeps/unix/sysv/linux/sync_file_range.c (sync_file_range):
3805 Change last argument to unsigned int.
3806
e1f0c5bc
UD
38072007-03-23 Jakub Jelinek <jakub@redhat.com>
3808
3809 * scripts/check-local-headers.sh: Filter out sys/capability.h.
3810
38112007-03-22 Jakub Jelinek <jakub@redhat.com>
3812
3813 * config.h.in (HAVE_LIBCAP): Add.
3814 * nscd/selinux.h: Include sys/capability.h rather than non-existent
3815 sys/capabilities.h.
3816 * nscd/selinux.c (preserve_capabilities): Use cap_free instead of
3817 free_caps. Cast away const from 4th cap_set_flag argument.
3818
4e87573f
UD
38192007-03-26 Ulrich Drepper <drepper@redhat.com>
3820
3821 * sysdeps/unix/sysv/linux/Versions: Move sync_file_range to
3822 GLIBC_2.6.
3823 * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
3824 Add sync_file_range.
3825 Reported by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
3826
fa6e3bc3
UD
38272007-03-19 Steven Munroe <sjmunroe@us.ibm.com>
3828
3829 * sysdeps/powerpc/bits/atomic.h
3830 [!MUTEX_HINT_ACQ]: Define MUTEX_HINT_ACQ.
3831 [!MUTEX_HINT_REL]: Define MUTEX_HINT_REL.
3832 (__arch_compare_and_exchange_val_32_acq): Add MUTEX_HINT_ACQ to lwarx.
3833 (__arch_compare_and_exchange_val_32_rel): Add MUTEX_HINT_REL to lwarx.
3834 (__arch_atomic_exchange_val_32_acq): Add MUTEX_HINT_ACQ to lwarx.
3835 (__arch_atomic_exchange_rel_32_rel): Add MUTEX_HINT_REL to lwarx.
3836 * sysdeps/powerpc/powerpc32/bits/atomic.h [_ARCH_PWR6 || _ARCH_PWR6X]:
3837 Define MUTEX_HINT_ACQ as ",1" and MUTEX_HINT_REL as ",0".
3838 (__arch_compare_and_exchange_bool_32_acq): Add MUTEX_HINT_ACQ to lwarx.
3839 (__arch_compare_and_exchange_bool_32_rel): Add MUTEX_HINT_REL to lwarx.
3840 * sysdeps/powerpc/powerpc64/bits/atomic.h [_ARCH_PWR6 || _ARCH_PWR6D]:
3841 Define MUTEX_HINT_ACQ as ",1" and MUTEX_HINT_REL as ",0".
3842 (__arch_compare_and_exchange_bool_32_acq): Add MUTEX_HINT_ACQ to lwarx.
3843 (__arch_compare_and_exchange_bool_32_rel): Add MUTEX_HINT_REL to lwarx.
3844 (__arch_compare_and_exchange_bool_64_acq): Add MUTEX_HINT_ACQ to lwarx.
3845 (__arch_compare_and_exchange_bool_64_rel): Add MUTEX_HINT_REL to lwarx.
3846 (__arch_compare_and_exchange_val_64_acq): Add MUTEX_HINT_ACQ to lwarx.
3847 (__arch_compare_and_exchange_val_64_rel): Add MUTEX_HINT_REL to lwarx.
3848 (__arch_atomic_exchange_val_64_acq): Add MUTEX_HINT_ACQ to lwarx.
3849 (__arch_atomic_exchange_rel_64_rel): Add MUTEX_HINT_REL to lwarx.
3850
38512007-03-20 Jakub Jelinek <jakub@redhat.com>
c7693af7
UD
3852
3853 * sysdeps/unix/sysv/linux/powerpc/libc-start.c
3854 (__cache_line_size): Define the variable here. Add
3855 attribute_hidden, remove weak_extern.
3856 (__libc_start_main): Set __cache_line_size
3857 unconditionally.
3858 * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
3859 (__cache_line_size): Define the variable here. Add
3860 attribute_hidden, remove weak_extern.
3861 (DL_PLATFORM_AUXV): Set __cache_line_size
3862 unconditionally.
3863 * sysdeps/powerpc/powerpc32/dl-machine.c (__cache_line_size): Remove
3864 weak_extern, add attribute_hidden.
3865 (__elf_machine_runtime_setup): Assume __cache_line_size is always
3866 defined in ld.so.
3867 * sysdeps/powerpc/powerpc32/memset.S (__cache_line_size): Remove
3868 definition.
3869 * sysdeps/powerpc/powerpc64/memset.S (__cache_line_size): Likewise.
3870
0479e581
JJ
38712007-03-26 Jakub Jelinek <jakub@redhat.com>
3872
3873 [BZ #4276]
3874 * timezone/africa: Update from tzdata2007d.
3875 * timezone/asia: Likewise.
3876 * timezone/australasia: Likewise.
3877 * timezone/backward: Likewise.
3878 * timezone/europe: Likewise.
3879 * timezone/iso3166.tab: Likewise.
3880 * timezone/leapseconds: Likewise.
3881 * timezone/northamerica: Likewise.
3882 * timezone/southamerica: Likewise.
3883 * timezone/zone.tab: Likewise.
3884
3885 * timezone/private.h: Update from tzcode2007d.
3886 * timezone/zdump.c: Likewise.
3887 * timezone/zic.c: Likewise.
3888
697d37b1
JJ
38892007-03-21 Jakub Jelinek <jakub@redhat.com>
3890
3891 * nis/nis_call.c: Include bits/libc-lock.h, sys/stat.h, unistd.h.
3892 (nis_server_cache, nis_server_cache_lock, nis_cold_start_mtime): New
3893 variables.
3894 (nis_server_cache_search, nis_server_cache_add): New functions.
3895 (__nisfind_server): Use them. Add dbp and flags argument, if
3896 call __nisbind_create.
3897 (__nisbind_create): Add server_used and current_ep arguments,
3898 only call __nis_findfastest if server_used is ~0.
3899 (__do_niscall2, __prepare_niscall): Adjust callers.
3900 (ckey_cache, ckey_cache_size, ckey_cache_allocated, ckey_cache_pid,
3901 ckey_cache_euid, ckey_cache_lock): New variables.
3902 (get_ckey): New function.
3903 (__nisbind_connect): If not dbp->use_udp, pass IPPROTO_TCP to
3904 __pmap_getnisport. Save __pmap_getnisport result in
3905 dbp->addr.sin_port if non-zero. Use get_ckey to create conversation
3906 key.
3907 * nis/nis_lookup.c (nis_lookup): Likewise.
3908 * nis/nis_table.c (nis_list): Likewise.
3909 * nis/rpcsvc/nislib.h (__nisbind_create, __nisfind_server): Adjust
3910 prototypes.
3911
3912 * nis/nss_nisplus/nisplus-pwd.c (_nss_nisplus_getpwnam_r,
3913 _nss_nisplus_getpwuid_r): Pass USE_DGRAM flag to nis_list.
3914 * nis/nss_nisplus/nisplus-service.c (_nss_nisplus_getservbyname_r,
3915 _nss_nisplus_getservbyport_r): Likewise.
3916 * nis/nss_nisplus/nisplus-network.c (_nss_nisplus_getnetbyname_r,
3917 _nss_nisplus_getnetbyaddr_r): Likewise.
3918 * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_getspnam_r): Likewise.
3919 * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_gethostton_r,
3920 _nss_nisplus_getntohost_r): Likewise.
3921 * nis/nss_nisplus/nisplus-rpc.c (_nss_nisplus_getrpcbyname_r,
3922 _nss_nisplus_getrpcbynumber_r): Likewise.
3923
06029c20
JJ
39242007-03-20 Jakub Jelinek <jakub@redhat.com>
3925
371f84a4
JJ
3926 * configure.in (libc_cv_gnu89_inline): Only do compile test.
3927 * configure: Rebuilt.
3928
06029c20
JJ
3929 * soft-fp/double.h (_FP_UNION_D): Use _FP_W_TYPE for frac
3930 bit-fields.
3931 * soft-fp/extended.h (_FP_UNION_E): Likewise.
3932
39332006-06-07 Joseph Myers <joseph@codesourcery.com>
3934
3935 [BZ #2831]
3936 * soft-fp/quad.h (_FP_UNION_Q): Use _FP_W_TYPE for frac
3937 bit-fields.
3938
addc8335
UD
39392007-03-18 Jakub Jelinek <jakub@redhat.com>
3940
3941 * nscd/gai.c: Include alloca.h.
3942 (__libc_use_alloca): Define.
3943
b037a293
UD
39442007-03-16 Jakub Jelinek <jakub@redhat.com>
3945
965cba04
UD
3946 * elf/dl-open.c (dl_open_worker): Declare l in 2 different
3947 smaller scopes.
3948 * elf/dl-dst.h (DL_DST_REQ_STATIC): Add l as macro argument.
3949 (DL_DST_REQUIRED): Adjust user.
3950
3951 * include/dlfcn.h (struct link_map): New forward decl.
3952
3953 * inet/getnameinfo.c: Include stddef.h.
3954 (getnameinfo): Use offsetof.
3955
3956 * time/tst-mktime2.c (do_test): Don't rely on signed wrap.
3957
3958 * stdio-common/vfprintf.c (_itoa): Undef before redefining.
3959
3960 * string/strerror_l.c: Include stdlib.h.
3961
b037a293
UD
3962 * configure.in (libc_cv_gnu89_inline): Test for -fgnu89-inline.
3963 * config.make.in (gnu89-inline-CFLAGS): New variable.
3964 * Makeconfig (CFLAGS): Use $(gnu89-inline-CFLAGS) together with
3965 -std=gnu99.
3966 * misc/sys/cdefs.h (__extern_inline, __extern_always_inline): Define.
3967 * argp/argp.h: Use it.
3968 * bits/mathinline.h: Likewise.
3969 * bits/sigset.h: Likewise.
3970 * bits/string.h: Likewise.
3971 * ctype/ctype.h: Likewise.
3972 * hurd/hurd.h: Likewise.
3973 * hurd/hurd/fd.h: Likewise.
3974 * hurd/hurd/port.h: Likewise.
3975 * hurd/hurd/signal.h: Likewise.
3976 * hurd/hurd/threadvar.h: Likewise.
3977 * hurd/hurd/userlink.h: Likewise.
3978 * io/sys/stat.h: Likewise.
3979 * libio/bits/stdio.h: Likewise.
3980 * libio/bits/stdio2.h: Likewise.
3981 * mach/lock-intern.h: Likewise.
3982 * mach/mach/mig_support.h: Likewise.
3983 * math/bits/cmathcalls.h: Likewise.
3984 * posix/bits/unistd.h: Likewise.
3985 * socket/bits/socket2.h: Likewise.
3986 * stdlib/bits/stdlib.h: Likewise.
3987 * stdlib/stdlib.h: Likewise.
3988 * string/argz.h: Likewise.
3989 * string/bits/string2.h: Likewise.
3990 * string/bits/string3.h: Likewise.
3991 * sysdeps/alpha/fpu/bits/mathinline.h: Likewise.
3992 * sysdeps/generic/inttypes.h: Likewise.
3993 * sysdeps/generic/machine-lock.h: Likewise.
3994 * sysdeps/generic/machine-sp.h: Likewise.
3995 * sysdeps/i386/fpu/bits/mathinline.h: Likewise.
3996 * sysdeps/i386/i486/bits/string.h: Likewise.
3997 * sysdeps/ia64/fpu/bits/mathinline.h: Likewise.
3998 * sysdeps/mach/alpha/machine-lock.h: Likewise.
3999 * sysdeps/mach/alpha/machine-sp.h: Likewise.
4000 * sysdeps/mach/i386/machine-lock.h: Likewise.
4001 * sysdeps/mach/powerpc/machine-lock.h: Likewise.
4002 * sysdeps/mach/powerpc/machine-sp.h: Likewise.
4003 * sysdeps/powerpc/fpu/bits/mathinline.h: Likewise.
4004 * sysdeps/s390/bits/string.h: Likewise.
4005 * sysdeps/s390/fpu/bits/mathinline.h: Likewise.
4006 * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
4007 * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Likewise.
4008 * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
4009 * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
4010 * sysdeps/unix/sysv/linux/sys/sysmacros.h: Likewise.
4011 * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
4012 * wcsmbs/bits/wchar2.h: Likewise.
4013 * wcsmbs/wchar.h: Likewise.
4014 * stdlib/gmp.h: Likewise. Include <features.h> to get
4015 __extern_inline definition.
4016
6b2665f5
UD
40172007-03-15 Jakub Jelinek <jakub@redhat.com>
4018
b037a293
UD
4019 * locale/programs/ld-ctype.c (find_translit): Return NULL if ctype is
4020 NULL.
4021
6b2665f5
UD
4022 [BZ #3919]
4023 * math/libm-test.inc (log_test): Test -Inf and NaN.
4024 (log10_test, log1p_test, log2_test): Test -Inf.
4025 * sysdeps/i386/fpu/e_log.S (__ieee754_log): Don't raise
4026 FE_INVALID when argument is qNaN.
4027 * sysdeps/i386/fpu/e_logl.S (__ieee754_logl): Likewise.
4028 * sysdeps/i386/fpu/e_logf.S (__ieee754_logf): Likewise.
4029 * sysdeps/x86_64/fpu/e_logl.S (__ieee754_logl): Likewise.
4030 * sysdeps/x86_64/fpu/e_log10l.S (__ieee754_log10l): Replace
4031 andb $1, %ah with testb $1, %ah, don't test for parity, instead
4032 testb $4, %ah and jump if non-zero.
4033 * sysdeps/x86_64/fpu/e_log2l.S (__ieee754_log2l): Likewise.
4034 * sysdeps/x86_64/fpu/s_log1pl.S (__log1pl): Likewise.
4035
44969f17
UD
4036 [BZ #4101]
4037 * argp/argp-help.c (hol_cluster_cmp): Fix comparisons used to find
4038 ancestors with the same depths.
4039 Patch by Niels Moeller <nisse@lysator.liu.se>.
4040 (filter_doc): Don't crash if argp is NULL.
4041 * argp/Makefile (tests): Add tst-argp2.
4042 * argp/tst-argp2.c: New test.
4043
05eb8975
UD
4044 [BZ #4130]
4045 * login/utmp_file.c (setutent_file): Use O_LARGEFILE for
4046 open_not_cancel_2.
4047 (updwtmp_file): Likewise.
4048
6cb988fa
UD
4049 [BZ #4181]
4050 * inet/inet6_opt.c (add_padding): Only insert padding if npad > 0.
4051 (inet6_opt_append): Don't check extlen is big enough if extbuf
4052 is NULL.
4053 (inet6_opt_finish): Likewise.
4054 * inet/Makefile (tests): Add test-inet6_opt.
4055 * inet/test-inet6_opt.c: New test.
4056
4057 * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Never
4058 reallocate the buffer, instead fail for MSG_TRUNC or for EBUSY
4059 NLMSG_ERR. Instead use a page sized buffer.
4060 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Use page sized
4061 buffer.
4062
aea1d19e
RH
40632007-03-14 Richard Henderson <rth@redhat.com>
4064
b6df547c
RH
4065 * sysdeps/alpha/fpu/s_llround.c: New file.
4066 * sysdeps/alpha/fpu/s_llroundf.c: New file.
4067 * sysdeps/alpha/fpu/s_lround.c: New file.
4068 * sysdeps/alpha/fpu/s_lroundf.c: New file.
4069 * sysdeps/alpha/fpu/s_round.c: New file.
4070 * sysdeps/alpha/fpu/s_roundf.c: New file.
4071 * sysdeps/alpha/fpu/s_trunc.c: New file.
4072 * sysdeps/alpha/fpu/s_truncf.c: New file.
4073
aea1d19e
RH
4074 * sysdeps/alpha/fpu/s_ceil.c: Rewrite without branches.
4075 * sysdeps/alpha/fpu/s_ceilf.c: Likewise.
4076 * sysdeps/alpha/fpu/s_floor.c: Likewise.
4077 * sysdeps/alpha/fpu/s_floorf.c: Likewise.
4078 * sysdeps/alpha/fpu/s_rint.c: Likewise.
4079 * sysdeps/alpha/fpu/s_rintf.c: Likewise.
4080
4081 * sysdeps/alpha/fpu/s_fmax.S: New file.
4082 * sysdeps/alpha/fpu/s_fmaxf.S: New file.
4083 * sysdeps/alpha/fpu/s_fmin.S: New file.
4084 * sysdeps/alpha/fpu/s_fminf.S: New file.
4085 * sysdeps/alpha/fpu/s_isnan.c: New file.
4086 * sysdeps/alpha/fpu/s_isnanf.c: New file.
4087 * sysdeps/alpha/fpu/s_llrint.c: New file.
4088 * sysdeps/alpha/fpu/s_llrintf.c: New file.
4089 * sysdeps/alpha/fpu/s_lrint.c: New file.
4090 * sysdeps/alpha/fpu/s_lrintf.c: New file.
4091 * sysdeps/alpha/fpu/s_nearbyint.c: New file.
4092 * sysdeps/alpha/fpu/s_nearbyintf.c: New file.
4093
4094 * sysdeps/alpha/fpu/bits/mathinline.h (__floorf, __floor): Remove.
4095 (__fdimf, fdimf, __fdim, fdim): Remove.
4096 (__signbitf, __signbit, __signbitl): Use gcc builtin if available.
4097 (__isnanf, __isnan, __isnanl): New.
4098
9e43b50d
RH
40992007-03-13 Richard Henderson <rth@redhat.com>
4100
4101 * sysdeps/ieee754/ldbl-128/Makefile: New file.
4102
62789da3
RH
41032007-03-13 Richard Henderson <rth@redhat.com>
4104
4105 * sysdeps/alpha/Makefile (sysdep-CFLAGS): Force dynamic rounding.
4106 * sysdeps/alpha/fpu/bits/mathinline.h (__signbitl): New.
4107 * sysdeps/alpha/fpu/libm-test-ulps: Regenerate.
4108 * sysdeps/unix/sysv/linux/alpha/alphaev6/fpu/Implies: New file.
4109 * sysdeps/unix/sysv/linux/alpha/alphaev67/fpu/Implies: New file.
4110 * sysdeps/unix/sysv/linux/alpha/fpu/Implies: New file.
4111
47dbe62b
RH
41122007-03-13 Richard Henderson <rth@redhat.com>
4113
37f40235 4114 * elf/dl-support.c (_dl_aux_init): Honor DL_PLATFORM_AUXV.
47dbe62b
RH
4115 * sysdeps/unix/sysv/linux/alpha/dl-auxv.h: New file.
4116 * sysdeps/unix/sysv/linux/alpha/dl-support.c: New file.
4117 * sysdeps/unix/sysv/linux/alpha/dl-sysdep.c (__libc_alpha_cache_shape):
4118 Move to dl-auxv.h; initialize instead of extern weak.
4119 (DL_PLATFORM_AUXV): Move to dl-auxv.h; don't test for undef
4120 weak symbol.
4121 * sysdeps/unix/sysv/linux/alpha/sysconf.c (__libc_alpha_cache_shape):
4122 Extern instead of initialized.
4123
b8097bed
RH
41242007-03-13 Richard Henderson <rth@redhat.com>
4125
4126 * sysdeps/unix/sysv/linux/alpha/sigsuspend.S: Add support for
4127 __sigsuspend_nocancel.
4128
6bf4a686
UD
41292007-03-06 Ulrich Drepper <drepper@redhat.com>
4130
4131 * sysdeps/posix/getaddrinfo.c (get_scope): Correct test for
4132 172.16/12 address range.
4133
0b3b1a0c
UD
41342007-03-02 Jakub Jelinek <jakub@redhat.com>
4135
4136 * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Retry with
4137 a new netlink socket if NLMSG_ERR -EBUSY is seen after some MSG_TRUNC
4138 message.
4139
8f3edfee
UD
41402007-03-01 Jakub Jelinek <jakub@redhat.com>
4141
c1c5e654 4142 [BZ #4069]
8f3edfee
UD
4143 * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Check for NaN
4144 earlier.
4145 * math/libm-test.inc (pow_test): Add more tests involving NaNs.
4146
4147 * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Avoid invalid exception
4148 for x qNaN and y either +-inf or non-integer value.
4149 * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Likewise.
4150 * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.
4151 * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
4152
245a1481
UD
41532007-02-10 Mike Frysinger <vapier@gentoo.org>
4154
4155 * sysdeps/unix/sysv/linux/sh/Makefile: Remove sys/io.h
4156 from sysdep_headers.
4157
c217692b
UD
41582007-02-28 Jakub Jelinek <jakub@redhat.com>
4159
4160 * time/tzfile.c (find_transition): Instead of a linear search try to
4161 guess the transition index, use a linear search if the result is at
4162 most 10 transitions away from the guess or binary search otherwise.
4163
fe64626c
JJ
41642007-02-27 Jakub Jelinek <jakub@redhat.com>
4165
4166 * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Fix
4167 memory reallocation.
4168
0f7769f7
UD
41692007-02-21 Ulrich Drepper <drepper@redhat.com>
4170
621c133d
UD
4171 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Add branch predictions
4172 and fix some typos.
4173 Optimize use of TOLOWER.
9cf147d8 4174
cdfd61e1
UD
4175 [BZ #3325]
4176 * sysdeps/i386/fpu/e_fmodf.S: Revert last changes, keep using fprem.
4177 * sysdeps/i386/fpu/e_fmodl.c: Likewise.
4178 * sysdeps/i386/fpu/e_fmod.S: Likewise.
4179
8889e7aa
UD
4180 [BZ #3458]
4181 * sysdeps/unix/sysv/linux/posix_madvise.c: New file.
4182 * sysdeps/unix/sysv/linux/syscalls.list: Remove posix_madvise entry.
4183
63a2f305
UD
4184 [BZ #4076]
4185 * io/ftw.c (ftw_startup): Handle special case of FTW_CHDIR in /.
4186 (open_dir_stream): Likewise.
4187 * io/Makefile (tests): Add bug-ftw5.
c536b9b8 4188 * io/bug-ftw5.c: New file.
63a2f305 4189
c8703f88
UD
4190 * nscd/hstcache.c (cache_addhst): Remove unnecessary conditional.
4191 * nscd/servicescache.c (cache_addserv): Likewise.
4192
4193 * nscd/grpcache.c (cache_addgr): In case a record changed on
4194 refresh, adjust key_copy.
4195
61705e06
UD
4196 [BZ #4074]
4197 * nscd/pwdcache.c (cache_addpw): In case a record changed on
4198 refresh, adjust key_copy.
4199
0f7769f7
UD
4200 [BZ #4070]
4201 * stdio-common/printf_fp.c (___printf_fp): Handle a few more
0f7769f7 4202 special cases.
8889e7aa 4203 * stdio-common/tfformat.c (sprint_doubles): Some more tests.
0f7769f7 4204
3979024a
UD
42052007-02-19 Ulrich Drepper <drepper@redhat.com>
4206
4c02bf1a
UD
4207 * stdio-common/printf_fp.c (___printf_fp): Cleanups and minor
4208 optimization.
4209
3979024a
UD
4210 * stdio-common/vfscanf.c: Small cleanups throughout.
4211
821d3e70
UD
42122007-02-18 Ulrich Drepper <drepper@redhat.com>
4213
2484468b
UD
4214 [BZ #3325]
4215 * sysdeps/i386/fpu/e_fmodf.S: Use fprem1 instead of fprem.
4216 * sysdeps/i386/fpu/e_fmodl.c: Likewise.
4217 * sysdeps/i386/fpu/e_fmod.S: Likewise.
4218 Patch by Jared Casper <jaredcasper@gmail.com>.
4219
858ee15d
UD
4220 * sysdeps/unix/closedir.c: Outside libc don't use locking.
4221 * sysdeps/unix/opendir.c: Likewise.
4222 * sysdeps/unix/readdir.c: Likewise.
4223
ecb72bd5
UD
4224 [BZ #2211]
4225 * stdio-common/vfscanf.c: Handle localized digits etc for floating
4226 point numbers.
4227 Patch mostly by Hamed Malek <hamed@farsiweb.info>.
4228
ac2ca022
UD
4229 * stdio-common/vfscanf.c: Fix problems in width accounting.
4230 * stdio-common/tst-sscanf.c (double_tests): New tests.
4231 (main): Hook them up.
4232
e9bb5246 4233 * stdio-common/vfscanf.c: Remove unused WIDTH handling.
da50f001 4234 More simplifications of floating-point reader.
e9bb5246 4235
821d3e70
UD
4236 * stdio-common/Makefile (tests): Add tst-swscanf.
4237 * stdio-common/tst-sscanf.c: Make tests usable for swscanf
4238 testing.
4239 * stdio-common/tst-swscanf.c: New file.
4240
07fb5185
UD
42412007-02-17 Ulrich Drepper <drepper@redhat.com>
4242
9138cc0b
UD
4243 [BZ #2633]
4244 * libio/stdio.h: Define struct _IO_FILE in global namespace.
4245 * setjmp/setjmp.h: Define __jmp_buf_tag in global namespace.
4246 Remove using for __jmp_buf_tag.
4247 * locale/locale.h (struct lconv): Also define in std namespace.
4248 * wcsmbs/wchar.h: Move using declaration for tm out of namespace.
4249
6818d837
UD
4250 [BZ #3842]
4251 * sysdeps/posix/euidaccess.c [_LIBC] (euidaccess): Remove shortcut
4252 using __libc_enable_secure.
4253
15c4b5a4
UD
4254 [BZ #3818]
4255 * sysdeps/unix/sysv/linux/sys/acct.h (struct acct_v3): Define.
4256
5e9e9c14
UD
4257 [BZ #3745]
4258 * locale/programs/ld-collate.c (handle_ellipsis): Fix generation
4259 of names for ellipsises.
4260
07fb5185
UD
4261 [BZ #3348]
4262 * malloc/memusage.sh: Cleanups.
4263 * debug/xtrace.sh: Quoting and trap changes.
4264
8c6d1043
UD
42652007-02-16 Ulrich Drepper <drepper@redhat.com>
4266
07fb5185
UD
4267 * locale/iso-3166.def: Add Jersey, Guernsey, and Isle Of Man entries.
4268
93e66914 4269 * locale/iso-3166.def: Update entry for Serbia.
93e36434
UD
4270 * locale/iso-4217.def: Define RSD, remove CSD.
4271
ad0b348c
UD
4272 * sysdeps/x86_64/bits/atomic.h: One more change, this time for 16-
4273 and 64-bit operations.
4274
4275 [BZ #4040]
4276 * sysdeps/i386/i486/bits/atomic.h: One more change, this time for
4277 16-bit operations.
4278
8c6d1043
UD
4279 * nscd/nscd.c (parse_opt): One more conversion to use send instead
4280 of writev.
4281
987f54c6
UD
42822007-02-15 Ulrich Drepper <drepper@redhat.com>
4283
b3715c05
UD
4284 [BZ #3991]
4285 * assert/assert.h (assert): Simplify.
4286 (assert_perror): Likewise.
4287 Patch by Israel G. Lugo <ilugo@bridonsecurity.com>.
4288
6eea8e0d
UD
4289 * nscd/nscd_helper.c (open_socket): Don't send padding bytes from
4290 reqdata.
4291
987f54c6
UD
4292 * sysdeps/unix/sysv/linux/x86_64/send.c (__libc_send): Cosmetic
4293 change: don't pass NULL in place of an integer.
4294
3dc08a7e
UD
42952007-02-02 Bruno Haible <bruno@clisp.org>
4296
06c17c78
UD
4297 [BZ #3954]
4298 * iconvdata/ksc5601.c (__ksc5601_sym_to_ucs, __ksc5601_sym_from_ucs):
4299 Add mapping for U+327E.
4300 * iconvdata/ksc5601.h (KSC5601_SYMBOL): Increment.
4301 * iconvdata/johab.c (BODY for FROM_LOOP, BODY for TO_LOOP): Enable
4302 mapping of 0xD9 0xE8.
4303 * iconvdata/uhc.c (BODY for FROM_LOOP, BODY for TO_LOOP): Disable
4304 mapping of U+327E.
4305 Reported by Jungshik Shin <jungshik@google.com>.
4306
4307 [BZ #3955]
3dc08a7e
UD
4308 * iconvdata/johab.c (BODY for FROM_LOOP, BODY for TO_LOOP): Enable
4309 mapping of 0xD9 0xE6 and of 0xD9 0xE7.
4310 Reported by Jungshik Shin <jungshik@google.com>.
4311
a810e68c
UD
43122007-02-14 Ulrich Drepper <drepper@redhat.com>
4313
4314 * sysdeps/x86_64/bits/atomic;h: Fix asm parameters for some
4315 byte variants.
4316
4317 [BZ #4040]
4318 * sysdeps/i386/i486/bits/atomic.h: Fix asm parameters for some
4319 byte variants. Patch mostly be tom@tommay.net.
4320
05f135ba
UD
43212007-02-14 Jakub Jelinek <jakub@redhat.com>
4322
4323 [BZ #3996]
4324 * posix/glob.c (attribute_hidden): Define if not defined.
4325 (glob): Unescape dirname, filename or username when needed and not
4326 GLOB_NOESCAPE. Handle \/ correctly. Handle GLOB_MARK if filename
4327 is NULL. Handle unescaped [ in pattern without closing ].
4328 Don't pass GLOB_CHECK down to recursive glob for directories.
4329 (__glob_pattern_type): New function.
4330 (__glob_pattern_p): Implement using __glob_pattern_type.
4331 (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
4332 characters and backslashes if not GLOB_NOESCAPE or unterminated [.
4333 Remove unreachable code.
4334 * posix/globtest.sh: Add a couple of new tests.
4335
2f699967
UD
43362007-02-13 Ulrich Drepper <drepper@redhat.com>
4337
4338 * po/ru.po: Update from translation team.
4339
3a7cd5b4
JJ
43402007-02-12 Jakub Jelinek <jakub@redhat.com>
4341
4342 * sysdeps/i386/bits/byteswap.h (__bswap_32): Add __amdfam10__
4343 to the list of i486+ CPUs.
4344 * sysdeps/x86_64/bits/byteswap.h (__bswap_32): Likewise.
4345
2f978feb
UD
43462007-02-12 Ulrich Drepper <drepper@redhat.com>
4347
4348 * elf/rtld.c (RESOLVE_MAP): Always return bootstrap_map reference.
4349 * elf/Makefile ($(objpfx)ld.so): Check that ld.so has no undefined
4350 references.
4351
2bbb7d5b
UD
43522007-02-09 Ulrich Drepper <drepper@redhat.com>
4353
5ed61e0f
UD
4354 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Remove incorrect comment.
4355
2bbb7d5b
UD
4356 * resolv/res_init.c (res_setoptions): Recognize edns0 option.
4357 * resolv/res_mkquery.c: Define __res_nopt.
4358 * resolv/res_query.c (__libc_res_nquery): If RES_USE_EDNS0 is set
4359 try adding EDNS0 record.
4360 * resolv/res_send.c (send_dg): If request failed with FORMERR and
4361 EDNS0 record was send make sure we don't try it again.
4362 * resolv/resolv.h: Define RES_F_EDNS0ERR and RES_USE_EDNS0.
4363 * include/resolv.h: Declare __res_nopt.
4364
00458b5b
UD
43652007-02-08 Jakub Jelinek <jakub@redhat.com>
4366
4367 [BZ #3944]
4368 * time/strptime_l.c (__strptime_internal): Set have_mon for
4369 %b/%B/%h. Set have_mon and have_mday if tm_mon and tm_mday
4370 have been computed from tm_yday and tm_year. Don't crash
4371 in day_of_the_week or day_of_the_year if not have_mon
4372 and tm_mon contains bogus value.
4373 * time/Makefile (tests): Add tst-strptime3.
4374 * time/tst-strptime3.c: New test.
4375
784aacea
UD
43762007-02-05 Jakub Jelinek <jakub@redhat.com>
4377
4378 [BZ #3957]
4379 * posix/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
4380 bit for RE_HAT_LISTS_NOT_NEWLINE.
4381 (build_charclass_op): Remove bogus comment.
4382 * posix/Makefile (tests): Add bug-regex27 and bug-regex28.
4383 * posix/bug-regex27.c: New test.
4384 * posix/bug-regex28.c: New test.
4385
bf7a2463
UD
43862007-02-03 Ulrich Drepper <drepper@redhat.com>
4387
4388 * po/sv.po: Update from translation team.
4389
f2ccf983
UD
43902007-02-02 Ulrich Drepper <drepper@redhat.com>
4391
4392 * nscd/nscd_helper.c (open_socket): Minor size optimization.
4393
73f50d5a
UD
43942007-02-02 Jakub Jelinek <jakub@redhat.com>
4395
4396 * include/locale.h (__uselocale): Add libc_hidden_proto.
4397 * locale/uselocale.c (__uselocale): Add libc_hidden_def.
4398
f6bf9e59
JJ
4399 * nscd/nscd_helper.c (open_socket): Use __gettimeofday instead of
4400 gettimeofday.
4401
4a44ce79
UD
44022007-02-01 Ulrich Drepper <drepper@redhat.com>
4403
4404 * sysdeps/unix/sysv/linux/i386/sysdep.h (PTR_MANGLE): Roll value before
4405 returning.
4406 (PTR_DEMANGLE): Real definition now that it's not the same as
4407 PRT_MANGLE anymore.
4408 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
4409
4410 * string/strerror_l.c: New file.
4411 * string/Makefile (routines): Add strerror_l.
4412 * string/string.h: Declare strerror_l.
4413 * string/Versions: Export strerror_l for GLIBC_2.6.
4414
58a2d52e
UD
44152007-01-31 Ulrich Drepper <drepper@redhat.com>
4416
4417 * nscd/nscd_helper.c (open_socket): Now takes request type and key
4418 as parameter. Construct request record. Try sending request
4419 before the first poll use, it usually succeeds. Adjust all
4420 callers.
4421 * nscd/nscd-client.h: Define MAXKEYLEN.
4a44ce79 4422 * nscd/connections.c (nscd_run): Don't define MAXKEYLEN here.
58a2d52e 4423
1a77d37f
JJ
44242007-01-31 Jakub Jelinek <jakub@redhat.com>
4425
4426 * nscd/nscd-client.h (__nscd_cache_search): Remove const qualifier
4427 from return value.
4428 * nscd/nscd_helper.c: Include string.h.
4429 (__nscd_cache_search): Remove const qualifier from return value.
4430 On strict alignment architectures check hash entry and data head
4431 alignment.
4432 * nscd/nscd_getpw_r.c (nscd_getpw_r): Don't crash or fail because
4433 mmapped data during GC cycle contains garbage. If
4434 __nscd_drop_map_ref fails, decrement mapped->counter when returning
4435 error or if retrying with NO_MAPPING, only __nscd_unmap if counter
4436 dropped to 0.
4437 * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
4438 * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
4439 * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
4440 * nscd/nscd_getai.c (__nscd_getai): Likewise.
4441 * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
4442
ee314200
UD
44432007-01-30 Ulrich Drepper <drepper@redhat.com>
4444
4445 * misc/hsearch_r.c (hdestroy_r): Remove unnecessary test.
4446
14c8bf3b
UD
44472007-01-26 Ulrich Drepper <drepper@redhat.com>
4448
4449 * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Use register
4450 names not numbers in cfi_*.
4451
d2708e67
AJ
44522007-01-26 Andreas Jaeger <aj@suse.de>
4453
4454 * sysdeps/unix/sysv/linux/sys/personality.h (ADDR_NO_RANDOMIZE,
14c8bf3b 4455 ADDR_LIMIT_3GB, PER_LINUX_32BIT, PER_LINUX32_3GB): Add.
d2708e67
AJ
4456 Correct values of PER_HPUX and PER_OSF4.
4457
7fbc8784
UD
44582007-01-24 Ulrich Drepper <drepper@redhat.com>
4459
8aaf53ee 4460 * elf/dl-minimal.c: Undefine _itoa first.
7fbc8784
UD
4461 * stdio-common/_itoa.h: Define _itoa and _fitoa for 64-bit platforms.
4462 * malloc/mtrace.c: Revert last change.
4463 * posix/wordexp.c: Likewise.
4464
9d6cde3d
UD
44652007-01-24 Jakub Jelinek <jakub@redhat.com>
4466
4467 * sysdeps/i386/bits/byteswap.h (__bswap_32): Add __nocona__, __core2__
4468 and __geode__ to the list of i486+ CPUs.
4469 * sysdeps/x86_64/bits/byteswap.h (__bswap_32): Likewise.
4470
c1f0486a
UD
44712007-01-23 Ulrich Drepper <drepper@redhat.com>
4472
4473 * stdio-common/_itoa.c: Include <limits.h>.
4474 * stdio-common/_itowa.c: Likewise.
4475
6cae3957
UD
44762007-01-22 Ulrich Drepper <drepper@redhat.com>
4477
765bbb24
UD
4478 * stdio-common/_itowa.c: Don't compile _itowa for 64-bit
4479 platforms.
4480 * stdio-common/_itoa.c: Don't compile in _itoa and _fitoa for
4481 64-bit platforms.
4482 * malloc/mtrace.c (tr_where): Use _fitoa_word instead of _fitoa if
4483 possible.
4484 * posix/wordexp.c (parse_arith): Use _itoa_word instead of _itoa
4485 if possible.
4486
6cae3957
UD
4487 [BZ #3902]
4488 * stdio-common/_itoa.c (_itoa): Make sure at least a zero is emitted.
4489 * stdio-common/Makefile (tests): Add bug17.
4490 * stdio-common/bug17.c: New file.
4491
ddaafd04
UD
44922007-01-19 Ulrich Drepper <drepper@redhat.com>
4493
4494 * iconvdata/brf.c: New file.
439201de
UD
4495 * iconvdata/testdata/BRF: New file.
4496 * iconvdata/testdata/BRF..UTF8: New file.
4497 Contributed by Samuel Thibault <samuel.thibault@ens-lyon.org>.
ddaafd04
UD
4498 * iconvdata/Makefile: Add rules to build BRF.
4499 * iconvdata/TESTS: Add BRF entry.
4500 * iconvdata/gconv-modules: Likewise.
4501 * iconvdata/tst-tables.sh: Likewise.
ddaafd04 4502
9e6e344e
UD
45032007-01-18 Anton Nikishaev <anton.nik@gmail.com>
4504
4505 * wcsmbs/wchar.h (wcstoll): Fix comment, function returns value of
4506 type `long long int', not `long int'.
4507 (wcstoq): Likewise.
4508
299f7b0f
UD
45092007-01-18 Ulrich Drepper <drepper@redhat.com>
4510
4511 * scripts/gen-as-const.awk: Add cast to long to avoid int promotion
4512 of values on 64-bit platforms which are too large.
4513
cd8127cc
JJ
45142007-01-12 Steven Munroe <sjmunroe@us.ibm.com>
4515 Joe Kerian <jkerian@us.us.ibm.com>
4516
4517 [BZ #2749]
4518 * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Include
4519 <math_ldbl_opt.h>. Remove weak_alias. Use long_double_symbol macro.
4520 (__copysignl): Use signbit() for comparison.
4521 * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Correct parms for
4522 SET_LDOUBLE_WORDS64.
4523
4524 [BZ #2423, #2749]
4525 * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Don't include <fenv_libc.h>.
4526 (__ceill): Remove calls to fegetround(), fesetround().
4527 * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
4528 * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
4529 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
4530
b3acfdf7
JJ
45312007-01-17 Jakub Jelinek <jakub@redhat.com>
4532
4a2e03c6
JJ
4533 * nscd/nscd_getserv_r.c (nscd_getserv_r): Fix pastos.
4534
b3acfdf7
JJ
4535 * sysdeps/unix/sysv/linux/getdents.c (offsetof): Remove.
4536
1476bce6
UD
45372007-01-17 Ulrich Drepper <drepper@redhat.com>
4538
4539 * sysdeps/unix/sysv/linux/fatal-prepare.h: Use PTHFCT_CALL to
4540 demangle pointer.
4541 * csu/libc-start.c: Likewise.
4542
d78bce1c
UD
45432007-01-16 Ulrich Drepper <drepper@redhat.com>
4544
4545 * sysdeps/posix/system.c: Remove NO_WAITPID support, it cannot
4546 really work anyway.
4547
1bd79025
UD
45482007-01-15 Ulrich Drepper <drepper@redhat.com>
4549
000b027e
UD
4550 * nscd/connections.c (servinfo): Renamed to reqinfo. Change all
4551 users.
4552 (handle_request): Remove unnecessary tests.
4553
1bd79025
UD
4554 * nscd/cache.c (cache_add): Record the failure to add to the cache.
4555
d68f5d2c
JJ
45562007-01-15 Jakub Jelinek <jakub@redhat.com>
4557
4558 * soft-fp/op-common.h (FP_TRUNC): When truncating a NaN, clear
4559 workbits in semi-raw fraction.
4560
4561 * math/test-misc.c: Add new tests.
4562
45632007-01-14 Steven Munroe <sjmunroe@us.ibm.com>
4564
4565 * math/basic-test.c: Include test-skeleton.c.
4566 (TEST_TRUNC): Define.
4567 (truncdfsf_test, trunctfsf_test, trunctfdf_test): New.
4568 (main): Rename to ...
4569 (do_test): ...this. Run new tests.
4570 (TEST_FUNCTION): Define.
4571
45722006-10-05 Steven Munroe <sjmunroe@us.ibm.com>
4573 Joe Kerian <jkerian@us.us.ibm.com>
4574
4575 [BZ #2749]
4576 * soft-fp/op-4.h (__FP_FRAC_SUB_3, __FP_FRAC_SUB_4): Correct borrow
4577 handling for high words.
4578 * soft-fp/op-common.h (_FP_OVERFLOW_SEMIRAW): Always set inexact
4579 and overflow for infinity.
4580
4e35ef2c
UD
45812007-01-15 Ulrich Drepper <drepper@redhat.com>
4582
2a1dea97
UD
4583 * nscd/connections.c (handle_request): Add a __builtin_expect.
4584
9691d83c
UD
4585 * nscd/connections.c (serv2db): Change type into structure which
4586 also says whether this is a request for data. Renamed to
4587 servinfo. All users changed.
4588 (handle_request): Much simpler test whether we should search the cache.
4589
49ee6d79
UD
4590 * nscd/connections.c (handle_request): Fix thinko in selinux test
4591 invocation.
4592
4e35ef2c
UD
4593 * sysdeps/generic/ldsodefs.h: Define DL_LOOKUP_SCOPE_LOCK.
4594 * elf/dl-lookup.c (add_dependency): If scope map is locked, unlock
4595 it before getting dl_load_lock and then relock.
4596 (_dl_lookup_symbol_x): Pass flags to add_dependency.
4597 When rerunning _dl_lookup_symbol_x, compute symbol_scope again in
4598 case we unlocked the scope.
4599 * elf/dl-runtime.c (_dl_fixup): Pass DL_LOOKUP_SCOPE_LOCK to
4600 _dl_lookup_symbol_x in case we locked the scope.
4601 (_dl_profile_fixup): Likewise.
4602 * elf/dl-sym.c (do_sym): In flags passed to call_dl_lookup, also
4603 set DL_LOOKUP_SCOPE_LOCK.
4604
23691ab2
UD
46052007-01-13 Ulrich Drepper <drepper@redhat.com>
4606
fb453d08
UD
4607 * inet/Makefile: Define CFLAGS-getsrvbynm_r.c and
4608 CFLAGS-getsrvbynpt_r.c.
4609 * nscd/getsrvbynm_r.c: New file.
4610 * nscd/getsrvbypt_r.c: New file.
4611 * nscd/nscd_getserv_r.c: New file.
4612 * nscd/servicescache.c: New file.
4613 * nscd/Makefile (routines): Add nscd_getserv_r.
4614 (nscd-modules): Add getsrvbynm_r, getsrvbypt_r, and servicescache.
4615 Define CFLAGS-servicescache.c, CFLAGS-getsrvbynm_r.c, and
4616 CFLAGS-getsrvbypt_r.c.
4617 * nscd/cache.c (prune_cache): Rewrite to get re-add function from
4618 table. Add entries for services database.
4619 * nscd/connections.c (serv2str): Mark as const. Add entries for
4620 services database.
4621 (dbs): Add .reset_res and servdb initialization.
4622 (serv2db): Add entries for services database.
4623 (verify_persistent_db): Accept dbnr == servdb.
4624 (invalidate_cache): Rewrite database name recognition to use a table.
4625 Call res_init() if .reset_res is set for database.
4626 (handle_request): Add code to handle services database.
4627 * nscd/gai.c: Don't define __getservbyname_r.
4628 * nscd/nscd-client.h (request_type): Remove LASTDBREQ, add
4629 GETSERVBYNAME, GETSERVBYPORT, GETFDSERV.
4630 (serv_response_header): Define.
4631 (struct datahead): Add serv_response_header member.
4632 * nscd/nscd.c (parse_opt): Rewrite parsing of -i parameter value
4633 using table.
4634 * nscd/nscd.conf: Add entries for services database.
4635 * nscd/nscd.h: Adjust declaration of dbnames and serv2str.
4636 Declare serv_iov_disabled.
4637 Declare addservbyname, readdservbyname, addservbyport, and
4638 readdservbyport.
4639 * nscd/nscd_conf.c (dbnames): Mark as const. Add services entry.
4640 (find_db): Fix error message.
4641 * nscd/nscd_proto.h: Declare __nss_not_use_nscd_services,
4642 __nscd_getservbyname_r, and __nscd_getservbyport_r.
4643 * nscd/selinux.c (perms): Add entries for services database.
4644 * nss/Versions: Export __nss_services_lookup with GLIBC_PRIVATE.
4645 * nss/nsswitch.c (__nss_disable_nscd): Also disable services database.
4646
4647 * nscd/grpcache.c: Remove obsolete code. Cleanups.
4648 * nscd/hstcache.c: Likewise.
4649 * nscd/pwdcache.c: Likewise.
4650
b21fa963
UD
4651 * nis/nss_nis/nis-service.c (_nss_nis_getservbyname_r): Correct
4652 computation of keylen.
4653
23691ab2
UD
4654 * include/string.h: Only redefine strndupa if this is really for
4655 libc code.
4656
8980796b
UD
46572007-01-12 Ulrich Drepper <drepper@redhat.com>
4658
4a4a65f2
UD
4659 * nscd/nscd_gethst_r.c: Minor cleanups.
4660
43397eaf
UD
4661 * nscd/connections.c (handle_request): Check selinux permissions
4662 for all non-admin commands.
4663
038a1a9f
UD
4664 * sysdeps/i386/i486/bits/atomic.h: Define
4665 atomic_compare_and_exchange_val_acq,
4666 atomic_compare_and_exchange_bool_acq, and atomic_exchange_and_add
4667 using __sync_* built-ins for gcc >= 4.1.
4668 * sysdeps/x86_64/bits/atomic.h: Likewise.
4669
8980796b
UD
4670 [BZ #3840]
4671 * scripts/check-local-headers.sh: Restrict to testing .o.d, .os.d,
4672 and .oS.d files.
4673
32c075e1
JJ
46742007-01-05 Steven Munroe <sjmunroe@us.ibm.com>
4675
4676 * stdlib/tst-makecontext.c: Include errno.h. Change main()
4677 to do_test(). Define TEST_FUNCTION. Include test-skeleton.c.
4678 (do_test): Check errno and exit(0) if ENOSYS.
4679
46802007-01-11 Jakub Jelinek <jakub@redhat.com>
4681
4682 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix handling of multi-byte
4683 thousands separators.
4684 * stdlib/Makefile: Add rules to build and run tst-strtod4.
4685 * stdlib/tst-strtod4.c: New test.
4686
4687 [BZ #3855]
4688 * stdlib/strtod_l.c (____STRTOF_INTERNAL): 0x. not followed by
4689 hexadecimal digit should accept just the initial 0.
4690 * stdlib/tst-strtod2.c (tests): New variable.
4691 (do_test): Run several tests rather than just one.
4692
11bf311e 46932007-01-11 Jakub Jelinek <jakub@redhat.com>
df859a0c 4694
11bf311e
UD
4695 * sysdeps/i386/soft-fp/sfp-machine.h: Remove.
4696 * sysdeps/x86_64/soft-fp/sfp-machine.h: Likewise.
df859a0c 4697
11bf311e 46982007-01-10 Ulrich Drepper <drepper@redhat.com>
32c075e1 4699
11bf311e
UD
4700 * io/fts.c: Make sure fts_cur is always valid after return from
4701 fts_read.
4702 Patch by Miloslav Trmac <mitr@redhat.com>.
64a0aa0f 4703
11bf311e 47042006-10-27 Richard Sandiford <richard@codesourcery.com>
32c075e1 4705
11bf311e
UD
4706 * elf/elf.h (R_MIPS_GLOB_DAT): Define.
4707 (R_MIPS_NUM): Bump by 1.
32c075e1 4708
11bf311e 47092007-01-03 Jakub Jelinek <jakub@redhat.com>
32c075e1 4710
11bf311e
UD
4711 * posix/execvp.c: Include alloca.h.
4712 (allocate_scripts_argv): Renamed to...
4713 (scripts_argv): ... this. Don't allocate buffer here nor count
4714 arguments.
4715 (execvp): Use alloca if possible.
4716 * posix/Makefile: Add rules to build and run tst-vfork3 test.
4717 * posix/tst-vfork3.c: New test.
32c075e1
JJ
4718
47192007-01-03 Ulrich Drepper <drepper@redhat.com>
4720
4721 * string/Makefile (tst-strxfrm2-ENV): Define.
11bf311e 4722 * stdlib/Makefile (tst-strtod3-ENV): Define.
32c075e1 4723
11bf311e 47242007-01-02 Ulrich Drepper <drepper@redhat.com>
32c075e1 4725
11bf311e
UD
4726 * posix/getconf.c: Update copyright year.
4727 * nss/getent.c: Likewise.
4728 * iconv/iconvconfig.c: Likewise.
4729 * iconv/iconv_prog.c: Likewise.
4730 * elf/ldconfig.c: Likewise.
4731 * catgets/gencat.c: Likewise.
4732 * csu/version.c: Likewise.
4733 * elf/ldd.bash.in: Likewise.
4734 * elf/sprof.c (print_version): Likewise.
4735 * locale/programs/locale.c: Likewise.
4736 * locale/programs/localedef.c: Likewise.
4737 * nscd/nscd.c (print_version): Likewise.
4738 * debug/xtrace.sh: Likewise.
4739 * malloc/memusage.sh: Likewise.
4740 * malloc/mtrace.pl: Likewise.
4741 * debug/catchsegv.sh: Likewise.
64a0aa0f 4742
11bf311e 47432006-12-24 Ulrich Drepper <drepper@redhat.com>
48576885 4744
11bf311e
UD
4745 * malloc/malloc.c (sYSMALLOc): Remove some unnecessary alignment
4746 attempts.
48576885 4747
11bf311e 47482006-12-23 Ulrich Drepper <drepper@redhat.com>
3b6667a4 4749
11bf311e 4750 * posix/wordexp.c: Remove some unnecessary tests.
3b6667a4 4751
33c6de58
UD
47522006-12-22 Gavin Romig-Koch <gavin@redhat.com>
4753
4754 * nis/nss_compat/compat-grp.c (internal_getgrgid_r): Don't
4755 blacklist the group till after we look it up.
4756
fc242bef
UD
47572006-12-21 Ulrich Drepper <drepper@redhat.com>
4758
4759 * include/atomic.h (atomic_forced_read): New macro.
4760
11bf311e
UD
47612006-12-20 SUGIOKA Toshinobu <sugioka@itonet.co.jp>
4762
4763 * sysdeps/unix/sysv/linux/sh/bits/shm.h: New file.
4764
a12dcecc
UD
47652006-12-19 Jakub Jelinek <jakub@redhat.com>
4766
11bf311e
UD
4767 * nss/getXXbyYY_r.c: Include atomic.h.
4768 (INTERNAL (REENTRANT_NAME)): Write startp after start_fct,
4769 add atomic_write_barrier () in between.
4770
a12dcecc
UD
4771 * stdlib/Makefile (tests): Add tst-makecontext.
4772 * stdlib/tst-makecontext.c: New test.
4773
4774 * sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S
4775 (__makecontext): Don't realign uc_mcontext.uc_regs.
4776
11bf311e 47772006-11-28 Jakub Jelinek <jakub@redhat.com>
594d423a 4778
11bf311e
UD
4779 * elf/dl-support.c: Include dl-procinfo.h.
4780 * sysdeps/powerpc/dl-procinfo.h (PPC_PLATFORM_POWER4,
4781 PPC_PLATFORM_PPC970, PPC_PLATFORM_POWER5, PPC_PLATFORM_POWER5_PLUS,
4782 PPC_PLATFORM_POWER6, PPC_PLATFORM_CELL_BE, PPC_PLATFORM_POWER6X):
4783 Define.
4784 (_dl_string_platform): Use PPC_PLATFORM_* macros instead of
4785 hardcoded constants.
4786 * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_platform): Use
4787 PPC_PLATFORM_* macros for array designators.
594d423a 4788
11bf311e 47892006-11-11 Steven Munroe <sjmunroe@us.ibm.com>
594d423a 4790
11bf311e
UD
4791 * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add 3 new cap
4792 names to the beginning.
4793 (_dl_powerpc_platforms): Add "power6x".
4794 * sysdeps/powerpc/dl-procinfo.h (_DL_HWCAP_FIRST): Decrease.
4795 (HWCAP_IMPORTANT): Add PPC_FEATURE_HAS_DFP.
4796 (_DL_PLATFORMS_COUNT): Increase.
4797 (_dl_string_platform): Handle power6x case.
4798 * sysdeps/powerpc/sysdep.h (PPC_FEATURE_PA6T, PPC_FEATURE_HAS_DFP,
4799 PPC_FEATURE_POWER6_EXT): Define.
4800 (PPC_FEATURE_POWER5, PPC_FEATURE_POWER5_PLUS): Correct Comment.
594d423a 4801
5bcba0ed
UD
48022006-12-18 Jakub Jelinek <jakub@redhat.com>
4803
4804 [BZ #3747]
4805 * stdlib/jrand48_r.c (__jrand48_r): Make sure result is in the
11bf311e 4806 [-2^31 .. 2^31) range.
5bcba0ed
UD
4807 * stdlib/tst-rand48.c (main): Fix expected values for 64-bit
4808 targets.
4809 * stdlib/tst-rand48-2.c: New test.
4810 * stdlib/Makefile (tests): Add tst-rand48-2.
4811
9e1444fc
UD
48122006-12-14 Jakub Jelinek <jakub@redhat.com>
4813
4814 * misc/tst-pselect.c (do_test): Fix sigblock argument.
4815
36775704
UD
48162006-12-14 Ulrich Drepper <drepper@redhat.com>
4817
4818 * misc/tst-pselect.c (do_test): Make sure the helper process is
4819 terminating when the test is aborted.
4820
1e88bd0f
UD
48212006-12-13 Ulrich Drepper <drepper@redhat.com>
4822
11bf311e
UD
4823 * sysdeps/unix/sysv/linux/bits/statvfs.h: Define ST_RELATIME.
4824 * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
4825 Handle relatime mount option.
4826
1e88bd0f
UD
4827 [BZ #2337]
4828 * libio/Makefile (tests): Add tst-setvbuf1.
4829 * libio/tst-setvbuf1.c: New file.
4830
48312006-12-08 Jakub Jelinek <jakub@redhat.com>
4832
4833 [BZ #2337]
4834 * libio/genops.c (__uflow): Fix a typo.
4835 * libio/wfiledoalloc.c (_IO_wfile_doallocate): Don't stat
4836 nor set _IO_LINE_BUF bit here. Size the wide buffer based on
4837 the narrow buffer size.
4838
48392006-11-24 Jakub Jelinek <jakub@redhat.com>
4840
4841 [BZ #2337]
4842 * libio/libio.h (_IO_FLAGS2_USER_WBUF): Define.
4843 * libio/wgenops.c (_IO_wsetb, _IO_wdefault_finish): Test and set
4844 _IO_FLAGS2_USER_WBUF bit in _flags2 instead of _IO_USER_BUF bit
4845 in _flags.
4846 * libio/wstrops.c (_IO_wstr_overflow, enlarge_userbuf,
4847 _IO_wstr_finish): Likewise.
4848 * libio/wmemstream.c (open_wmemstream): Likewise.
4849 * libio/fileops.c (_IO_new_file_close_it): Call _IO_set[bgp]
4850 even for wide streams.
4851
11bf311e 48522006-12-13 Jakub Jelinek <jakub@redhat.com>
1f55ce48 4853
11bf311e
UD
4854 * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: Include
4855 kernel-features.h.
4856
48572006-12-11 Ulrich Drepper <drepper@redhat.com>
4858
4859 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Parse thousand
4860 separators also if no non-zero digits found.
4861 * stdlib/Makefile (tests): Add tst-strtod3.
1f55ce48 4862
d117c1ce
UD
48632006-12-09 Ulrich Drepper <drepper@redhat.com>
4864
f85fb97b
UD
4865 [BZ #3632]
4866 * include/features.h: Fix comment about default value for
4867 _POSIX_C_SOURCE.
4868
11bf311e
UD
4869 [BZ #3664]
4870 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix test to recognize
4871 empty parsed strings.
4872 * stdlib/Makefile (tests): Add tst-strtod2.
4873 * stdlib/tst-strtod2.c: New file.
4874
4875 [BZ #3673]
4876 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix exp_limit
4877 computation.
4878 * stdlib/Makefile (tests): Add tst-atof2.
4879 * stdlib/tst-atof2.c: New file.
4880
4881 [BZ #3674]
4882 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Adjust exponent value
4883 correctly if removing trailing zero of hex-float.
4884 * stdlib/Makefile (tests): Add tst-atof1.
4885 * stdlib/tst-atof1.c: New file.
4886
a822d9f4
UD
48872006-12-09 Jakub Jelinek <jakub@redhat.com>
4888
11bf311e
UD
4889 * misc/mntent_r.c (__hasmntopt): Check p[optlen] even when p == rest.
4890 Start searching for next comma at p rather than rest.
4891 * misc/Makefile (tests): Add tst-mntent2.
4892 * misc/tst-mntent2.c: New test.
4893
a822d9f4
UD
4894 * misc/getusershell.c (initshells): Check for integer overflows.
4895 Make strings buffer one bigger as fgets always succeeds when second
4896 argument is 1. Don't use calloc for shells array. Disallow
11bf311e 4897 / as shell.
f0d5e1f6 4898
11bf311e 48992006-12-08 Ulrich Drepper <drepper@redhat.com>
f0d5e1f6 4900
11bf311e
UD
4901 * malloc/memusage.c: Handle realloc with new size of zero and
4902 non-NULL pointer correctly.
4903 (me): Really write first record twice.
4904 (struct entry): Make format bi-arch safe.
4905 (dest): Write out more realloc statistics.
4906 * malloc/memusagestat.c (struct entry): Make format bi-arch safe.
32c075e1 4907
11bf311e 49082006-12-05 Jakub Jelinek <jakub@redhat.com>
32c075e1 4909
11bf311e 4910 * nis/nis_subr.c (nis_getnames): Revert last change.
32c075e1 4911
f0d5e1f6
UD
49122006-12-04 Jakub Jelinek <jakub@redhat.com>
4913
4914 * sysdeps/unix/sysv/linux/ttyname.c: Include termios.h.
4915 (ttyname): Use tcgetattr instead of isatty, don't set errno to ENOTTY.
4916 * sysdeps/unix/sysv/linux/ttyname_r.c: Include termios.h.
4917 (__ttyname_r): Use tcgetattr instead of isatty, don't set errno to
4918 ENOTTY.
4919 * io/Makefile: Add rules to build and run tst-ttyname_r test.
4920 * io/tst-ttyname_r.c: New test.
4921
11bf311e 49222006-12-03 Kaz Kojima <kkojima@rr.iij4u.or.jp>
5df4fe08 4923
11bf311e 4924 * sysdeps/unix/sysv/linux/sh/sys/io.h: Removed.
5df4fe08 4925
11bf311e 49262006-11-30 H.J. Lu <hongjiu.lu@intel.com>
ee50871d 4927
11bf311e
UD
4928 * sysdeps/i386/i686/memcmp.S: Use jump table as the base of
4929 jump table entries.
4930
49312006-11-30 Jan Kratochvil <jan.kratochvil@redhat.com>
4932
4933 * sysdeps/unix/sysv/linux/i386/clone.S: Provide CFI for the outermost
4934 `clone' function to ensure proper unwinding stop of gdb.
4935 * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
4936
49372006-12-01 Ulrich Drepper <drepper@redhat.com>
4938
4939 * nscd/nscd.init: Remove obsolete and commented-out -S option
4940 handling.
4941
49422006-11-23 Jakub Jelinek <jakub@redhat.com>
4943
4944 [BZ #3514]
4945 * manual/string.texi (strncmp): Fix pastos from wcscmp description.
4946
4947 [BZ #3515]
4948 * manual/string.texi (strtok): Remove duplicate paragraph.
4949
49502006-12-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4951
4952 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Fix compatibility with
4953 libgcc not supporting `rflags' unwinding (register # >= 17).
4954
49552006-11-30 Jakub Jelinek <jakub@redhat.com>
4956
4957 * sunrpc/svc_run.c (svc_run): Set my_pollfd to new_pollfd if realloc
4958 succeeded.
4959
49602006-11-29 Daniel Jacobowitz <dan@codesourcery.com>
4961 Jakub Jelinek <jakub@redhat.com>
4962 Jan Kratochvil <jan.kratochvil@redhat.com>
4963
4964 * sysdeps/unix/sysv/linux/x86_64/sigaction.c (restore_rt): Add correct
4965 unwind information.
4966 * sysdeps/unix/sysv/linux/x86_64/Makefile: Provide symbols for
4967 'restore_rt' even in the 'signal' directory.
4968 * sysdeps/unix/sysv/linux/x86_64/ucontext_i.sym: Extend the regs list.
ee50871d 4969
b1a758f3
UD
49702006-11-27 Jakub Jelinek <jakub@redhat.com>
4971
4972 [BZ #3559]
4973 * sunrpc/svc_run.c (svc_run): Fail instead of segfaulting if
11bf311e
UD
4974 malloc crashed. Don't allocate memory unnecessarily in each
4975 loop.
b1a758f3 4976
11bf311e 49772006-10-21 Jakub Jelinek <jakub@redhat.com>
854d1124 4978
11bf311e 4979 * resolv/mapv4v6addr.h (map_v4v6_address): Fix last change.
dfc99a56 4980
11bf311e 49812006-11-20 Ulrich Drepper <drepper@redhat.com>
dfc99a56 4982
11bf311e 4983 * resolv/mapv4v6addr.h (map_v4v6_address): Optimize a bit.
852d657c 4984
11bf311e 49852006-11-18 Bruno Haible <bruno@clisp.org>
852d657c 4986
11bf311e
UD
4987 * sysdeps/unix/sysv/linux/i386/getgroups.c (__getgroups): Invoke
4988 __sysconf only after having tried to call getgroups32.
36c0a636 4989
11bf311e 49902006-11-19 Ulrich Drepper <drepper@redhat.com>
36c0a636 4991
11bf311e
UD
4992 * nss/nss_files/files-hosts.c (LINE_PARSER): Support IPv6-style
4993 addresses for IPv4 queries if they can be mapped.
b1f0c2a6 4994
11bf311e 49952006-11-16 Jakub Jelinek <jakub@redhat.com>
b1f0c2a6 4996
11bf311e
UD
4997 * sysdeps/x86_64/fpu/s_copysignf.S (__copysignf): Switch to .text.
4998 * sysdeps/x86_64/fpu/s_copysign.S (__copysign): Likewise.
4999 (signmask): Add .size directive.
5000 (othermask): Add .type directive.
bef8927a 5001
11bf311e 50022006-11-14 Ulrich Drepper <drepper@redhat.com>
2c53fa20 5003
11bf311e 5004 * po/nl.po: Update from translation team.
854d1124 5005
11bf311e 5006 * timezone/zdump.c: Redo fix for BZ #3137.
3f1e9205 5007
11bf311e 50082006-11-14 Jakub Jelinek <jakub@redhat.com>
bef8927a 5009
11bf311e
UD
5010 * nss/nss_files/files-alias.c (get_next_alias): Set line back
5011 to first_unused after parsing :include: file.
5c2af134 5012
32c075e1 50132006-11-10 Ulrich Drepper <drepper@redhat.com>
e1b37083 5014
11bf311e
UD
5015 * timezone/africa: Update from tzdata2006o.
5016 * timezone/antarctica: Likewise.
5017 * timezone/asia: Likewise.
5018 * timezone/australasia: Likewise.
5019 * timezone/backward: Likewise.
5020 * timezone/europe: Likewise.
5021 * timezone/iso3166.tab: Likewise.
5022 * timezone/northamerica: Likewise.
5023 * timezone/southamerica: Likewise.
5024 * timezone/zone.tab: Likewise.
5025
5026 * time/tzfile.c (__tzfile_read): Extend to handle new file format
5027 on machines with 64-bit time_t.
5028
5029 * timezone/checktab.awk: Update from tzcode2006o.
5030 * timezone/ialloc.c: Likewise.
5031 * timezone/private.h: Likewise.
5032 * timezone/scheck.c: Likewise.
5033 * timezone/tzfile.h: Likewise.
5034 * timezone/tzselect.ksh: Likewise.
5035 * timezone/zdump.c: Likewise.
5036 * timezone/zic.c: Likewise.
5037
5038 [BZ #3483]
5039 * elf/ldconfig.c (main): Call setlocale and textdomain.
5040 Patch mostly by Benno Schulenberg <bensberg@justemail.net>.
5041
5042 [BZ #3480]
5043 * manual/argp.texi: Fix typos.
5044 * manual/charset.texi: Likewise.
5045 * manual/errno.texi: Likewise.
5046 * manual/filesys.texi: Likewise.
5047 * manual/lang.texi: Likewise.
5048 * manual/maint.texi: Likewise.
5049 * manual/memory.texi: Likewise.
5050 * manual/message.texi: Likewise.
5051 * manual/resource.texi: Likewise.
5052 * manual/search.texi: Likewise.
5053 * manual/signal.texi: Likewise.
5054 * manual/startup.texi: Likewise.
5055 * manual/stdio.texi: Likewise.
5056 * manual/sysinfo.texi: Likewise.
5057 * manual/syslog.texi: Likewise.
5058 * manual/time.texi: Likewise.
5059 Patch by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
5060
5061 [BZ #3465]
5062 * sunrpc/clnt_raw.c: Minimal message improvements.
5063 * sunrpc/pm_getmaps.c: Likewise.
5064 * nis/nss_nisplus/nisplus-publickey.c: Likewise.
5065 * nis/nis_print_group_entry.c: Likewise.
5066 * locale/programs/repertoire.c: Likewise.
5067 * locale/programs/charmap.c: Likewise.
5068 * malloc/memusage.sh: Likewise.
5069 * elf/dl-deps.c: Likewise.
5070 * locale/programs/ld-collate.c: Likewise.
5071 * libio/vswprintf.c: Likewise.
5072 * malloc/memusagestat.c: Likewise.
5073 * sunrpc/auth_unix.c: Likewise.
5074 * sunrpc/rpc_main.c: Likewise.
5075 * nscd/cache.c: Likewise.
5076 * locale/programs/repertoire.c: Unify output messages.
5077 * locale/programs/charmap.c: Likewise.
5078 * locale/programs/ld-ctype.c: Likewise.
5079 * locale/programs/ld-monetary.c: Likewise.
5080 * locale/programs/ld-numeric.c: Likewise.
5081 * locale/programs/ld-time.c: Likewise.
5082 * elf/ldconfig.c: Likewise.
5083 * nscd/selinux.c: Likewise.
5084 * elf/cache.c: Likewise.
5085 Patch mostly by Benno Schulenberg <bensberg@justemail.net>.
5086
5c2af134
UD
5087 [BZ #3451]
5088 * sysdeps/i386/fpu/bits/mathinline.h (floor): Make rounding mode
5089 change atomic.
5090 (ceil): Likewise.
5091
11bf311e
UD
50922006-11-10 Jakub Jelinek <jakub@redhat.com>
5093
5094 * string/strxfrm_l.c (STRXFRM): Fix trailing \1 optimization
5095 if N is one bigger than return value.
5096 * string/tst-strxfrm2.c (do_test): Also test strxfrm with l1 + 1
5097 and l1 last arguments, if buf is defined, verify the return value
5098 equals to strlen (buf) and verify no byte beyond passed length
5099 is modified.
5100
51012006-11-10 Ulrich Drepper <drepper@redhat.com>
5102
5103 * po/sv.po: Update from translation team.
5104
37afcf79
UD
51052006-11-09 Ulrich Drepper <drepper@redhat.com>
5106
5107 * sysdeps/unix/sysv/linux/x86_64/sysconf.c (intel_check_word): Add
5108 noinline attribute.
5109
51102006-11-10 Jakub Jelinek <jakub@redhat.com>
5111
5112 * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Add
5113 noinline attribute.
5114
11bf311e
UD
5115 * sysdeps/gnu/siglist.c (__old_sys_siglist, __old_sys_sigabbrev):
5116 Use __new_sys_siglist instead of _sys_siglist_internal as
5117 second macro argument.
5118 (_old_sys_siglist): Use declare_symbol_alias macro instead of
5119 strong_alias.
2692deea 5120
11bf311e
UD
51212006-11-09 Ulrich Drepper <drepper@redhat.com>
5122
5123 [BZ #3493]
5124 * posix/unistd.h (sysconf): Remove const attribute.
5125
5126 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Fix test for
5127 temporary or deprecated addresses.
5128 Patch by Sridhar Samudrala <sri@us.ibm.com>.
5129
5130 * string/Makefile (tests): Add tst-strxfrm2.
5131 * string/tst-strxfrm2.c: New file.
5132
51332006-10-09 Jakub Jelinek <jakub@redhat.com>
5134
5135 * elf/dl-debug.c (_dl_debug_initialize): Check r->r_map for 0
5136 rather than r->r_brk.
2692deea
UD
5137
51382006-11-08 Jakub Jelinek <jakub@redhat.com>
5139
11bf311e
UD
5140 * string/strxfrm_l.c (STRXFRM): Do the trailing \1 removal
5141 optimization even if needed > n.
5142
2692deea
UD
5143 * elf/dl-load.c (decompose_rpath): Return bool rather than void.
5144 If l->l_name is on inhibit_rpath list, set sps->dirs to -1 and
5145 return false, otherwise return true.
5146 (cache_rpath): Return decompose_rpath return value.
5147
11bf311e
UD
51482006-11-07 Jakub Jelinek <jakub@redhat.com>
5149
5150 * include/libc-symbols.h (declare_symbol): Rename to...
5151 (declare_symbol_alias): ... this. Add ORIGINAL argument, imply
5152 strong_alias (ORIGINAL, SYMBOL) in asm to make sure it preceedes
5153 .size directive.
5154 * sysdeps/gnu/errlist-compat.awk: Adjust for declare_symbol_alias
5155 changes.
5156 * sysdeps/gnu/siglist.c: Likewise.
5157
51582006-11-03 Steven Munroe <sjmunroe@us.ibm.com>
5159
5160 * sysdeps/powerpc/fpu/bits/mathinline.h
5161 [__LIBC_INTERNAL_MATH_INLINES]: Moved to ...
5162 * sysdeps/powerpc/fpu/math_private.h: ...here. New file.
5163
51642006-11-05 Ulrich Drepper <drepper@redhat.com>
5165
5166 * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
5167 Update handling of cache descriptor 0x49 for new models.
5168 * sysdeps/unix/sysv/linux/x86_64/sysconf.c (intel_check_word):
5169 Likewise.
5170
9666e36c
UD
51712006-11-02 Jakub Jelinek <jakub@redhat.com>
5172
5173 * malloc/memusage.c (dest): Reset not_me back to false after
5174 printing statistics.
5175
11bf311e
UD
51762006-11-02 Ulrich Drepper <drepper@redhat.com>
5177
5178 * configure.in: Work around ld --help change and avoid -z relro
5179 test completely if the architecture doesn't care about security.
5180
51812006-11-01 Ulrich Drepper <drepper@redhat.com>
5182
5183 * po/sv.po: Update from translation team.
5184
51852006-10-31 Ulrich Drepper <drepper@redhat.com>
5186
5187 * stdlib/atexit.c (atexit): Don't mark as hidden when used to
5188 generate compatibility version.
5189
51902006-10-29 Ulrich Drepper <drepper@redhat.com>
5191
5192 * configure.in: Relax -z relro requirement a bit.
5193
5194 * po/sv.po: Update from translation team.
5195
51962006-10-29 Jakub Jelinek <jakub@redhat.com>
5197
5198 * elf/dl-sym.c (do_sym): Use RTLD_SINGLE_THREAD_P.
5199 * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Likewise.
5200 * elf/dl-close.c (_dl_close_worker): Likewise.
5201 * elf/dl-open.c (_dl_open_worker): Likewise.
5202 * sysdeps/generic/sysdep-cancel.h (RTLD_SINGLE_THREAD_P): Define.
5203
b2369ca3
UD
52042006-10-27 Ulrich Drepper <drepper@redhat.com>
5205
11bf311e
UD
5206 * configure.in: Require assembler support for visibility, compiler
5207 support for visibility and aliases, linker support for various -z
5208 options.
5209 * Makeconfig: Remove conditional code which now is unnecessary.
5210 * config.h.in: Likewise.
5211 * config.make.in: Likewise.
5212 * dlfcn/Makefile: Likewise.
5213 * elf/Makefile: Likewise.
5214 * elf/dl-load.c: Likewise.
5215 * elf/rtld.c: Likewise.
5216 * include/libc-symbols.h: Likewise.
5217 * include/stdio.h: Likewise.
5218 * io/Makefile: Likewise.
5219 * io/fstat.c: Likewise.
5220 * io/fstat64.c: Likewise.
5221 * io/fstatat.c: Likewise.
5222 * io/fstatat64.c: Likewise.
5223 * io/lstat.c: Likewise.
5224 * io/lstat64.c: Likewise.
5225 * io/mknod.c: Likewise.
5226 * io/mknodat.c: Likewise.
5227 * io/stat.c: Likewise.
5228 * io/stat64.c: Likewise.
5229 * libio/stdio.c: Likewise.
5230 * nscd/Makefile: Likewise.
5231 * stdlib/Makefile: Likewise.
5232 * stdlib/atexit.c: Likewise.
5233 * sysdeps/generic/ldsodefs.h: Likewise.
5234 * sysdeps/i386/dl-machine.h: Likewise.
5235 * sysdeps/i386/sysdep.h: Likewise.
5236 * sysdeps/i386/i686/memcmp.S: Likewise.
5237 * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
5238 * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
5239 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
5240
5241 * Makerules: USE_TLS support is now default.
5242 * tls.make.c: Likewise.
5243 * csu/Versions: Likewise.
5244 * csu/libc-start.c: Likewise.
5245 * csu/libc-tls.c: Likewise.
5246 * csu/version.c: Likewise.
5247 * dlfcn/dlinfo.c: Likewise.
5248 * elf/dl-addr.c: Likewise.
5249 * elf/dl-cache.c: Likewise.
5250 * elf/dl-close.c: Likewise.
5251 * elf/dl-iteratephdr.c: Likewise.
5252 * elf/dl-load.c: Likewise.
5253 * elf/dl-lookup.c: Likewise.
5254 * elf/dl-object.c: Likewise.
5255 * elf/dl-open.c: Likewise.
5256 * elf/dl-reloc.c: Likewise.
5257 * elf/dl-support.c: Likewise.
5258 * elf/dl-sym.c: Likewise.
5259 * elf/dl-sysdep.c: Likewise.
5260 * elf/dl-tls.c: Likewise.
5261 * elf/ldconfig.c: Likewise.
5262 * elf/rtld.c: Likewise.
5263 * elf/tst-tls-dlinfo.c: Likewise.
5264 * elf/tst-tls1.c: Likewise.
5265 * elf/tst-tls10.h: Likewise.
5266 * elf/tst-tls14.c: Likewise.
5267 * elf/tst-tls2.c: Likewise.
5268 * elf/tst-tls3.c: Likewise.
5269 * elf/tst-tls4.c: Likewise.
5270 * elf/tst-tls5.c: Likewise.
5271 * elf/tst-tls6.c: Likewise.
5272 * elf/tst-tls7.c: Likewise.
5273 * elf/tst-tls8.c: Likewise.
5274 * elf/tst-tls9.c: Likewise.
5275 * elf/tst-tlsmod1.c: Likewise.
5276 * elf/tst-tlsmod13.c: Likewise.
5277 * elf/tst-tlsmod13a.c: Likewise.
5278 * elf/tst-tlsmod14a.c: Likewise.
5279 * elf/tst-tlsmod2.c: Likewise.
5280 * elf/tst-tlsmod3.c: Likewise.
5281 * elf/tst-tlsmod4.c: Likewise.
5282 * elf/tst-tlsmod5.c: Likewise.
5283 * elf/tst-tlsmod6.c: Likewise.
5284 * include/errno.h: Likewise.
5285 * include/link.h: Likewise.
5286 * include/tls.h: Likewise.
5287 * locale/global-locale.c: Likewise.
5288 * locale/localeinfo.h: Likewise.
5289 * malloc/arena.c: Likewise.
5290 * malloc/hooks.c: Likewise.
5291 * malloc/malloc.c: Likewise.
5292 * resolv/Versions: Likewise.
5293 * sysdeps/alpha/dl-machine.h: Likewise.
5294 * sysdeps/alpha/libc-tls.c: Likewise.
5295 * sysdeps/generic/ldsodefs.h: Likewise.
5296 * sysdeps/generic/tls.h: Likewise.
5297 * sysdeps/i386/dl-machine.h: Likewise.
5298 * sysdeps/ia64/dl-machine.h: Likewise.
5299 * sysdeps/ia64/libc-tls.c: Likewise.
5300 * sysdeps/mach/hurd/fork.c: Likewise.
5301 * sysdeps/mach/hurd/i386/tls.h: Likewise.
5302 * sysdeps/powerpc/powerpc32/dl-machine.c: Likwise.
5303 * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
5304 * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
5305 * sysdeps/s390/libc-tls.c: Likewise.
5306 * sysdeps/s390/s390-32/dl-machine.h: Likewise.
5307 * sysdeps/s390/s390-64/dl-machine.h: Likewise.
5308 * sysdeps/sh/dl-machine.h: Likewise.
5309 * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
5310 * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
5311 * sysdeps/x86_64/dl-machine.h: Likewise.
5312
131c4428
UD
5313 * elf/dl-close.c (_dl_close_worker): Renamed from _dl_close and
5314 split out locking and parameter checking.
5315 (_dl_close): Call _dl_close_worker after locking and checking.
5316 * elf/dl-open.c (_dl_open): Call _dl_close_worker instead of
5317 _dl_close.
ffd0e1b7
UD
5318 * elf/Makefile: Add rules to build and run tst-thrlock.
5319 * elf/tst-thrlock.c: New file.
131c4428 5320
11bf311e
UD
5321 [BZ #3426]
5322 * stdlib/stdlib.h: Adjust comment for canonicalize_file_name to
5323 reality.
5324
b2369ca3
UD
5325 [BZ #3429]
5326 * elf/dl-open.c (dl_open_worker): Keep holding dl_load_lock until
131c4428 5327 we are sure we do not need it anymore for _dl_close. Also move
b2369ca3
UD
5328 the asserts inside the lock region.
5329 Patch mostly by Suzuki <suzuki@in.ibm.com>.
5330
11bf311e
UD
53312006-10-27 Jakub Jelinek <jakub@redhat.com>
5332
5333 * elf/dl-lookup.c (_dl_debug_bindings): Remove unused symbol_scope
5334 argument.
5335 (_dl_lookup_symbol_x): Adjust caller.
5336
5337 * sysdeps/generic/ldsodefs.h (struct link_namespaces): Remove
5338 _ns_global_scope.
5339 * elf/rtld.c (dl_main): Don't initialize _ns_global_scope.
5340
5341 * elf/dl-libc.c: Revert l_scope name changes.
5342 * elf/dl-load.c: Likewise.
5343 * elf/dl-object.c: Likewise.
5344 * elf/rtld.c: Likewise.
5345 * elf/dl-close.c (_dl_close): Likewise.
5346 * elf/dl-open.c (dl_open_worker): Likewise. If not SINGLE_THREAD_P,
5347 always use __rtld_mrlock_{change,done}. Always free old scope list
5348 here if not l_scope_mem.
5349 * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Revert l_scope name
5350 change. Never free scope list here. Just __rtld_mrlock_lock before
5351 the lookup and __rtld_mrlock_unlock it after the lookup.
5352 * elf/dl-sym.c: Likewise.
5353 * include/link.h (struct r_scoperec): Remove.
5354 (struct link_map): Replace l_scoperec with l_scope, l_scoperec_mem
5355 with l_scope_mem and l_scoperec_lock with l_scope_lock.
5356
53572006-10-25 Ulrich Drepper <drepper@redhat.com>
5358
5359 * sysdeps/gnu/netinet/tcp.h: Define TCP_CONGESTION.
5360
53612006-10-18 Ulrich Drepper <drepper@redhat.com>
5362
5363 * configure.in: Disable building profile libraries by default.
5364
609cf614
UD
53652006-10-17 Jakub Jelinek <jakub@redhat.com>
5366
5367 * sunrpc/xdr_mem.c (xdrmem_setpos): Don't compare addresses
5368 as signed longs, check for x_base + pos overflow.
5369 * sunrpc/Makefile (tests): Add tst-xdrmem2.
5370 * sunrpc/tst-xdrmem2.c: New test.
5371
11bf311e
UD
53722006-10-18 Ulrich Drepper <drepper@redhat.com>
5373
5374 * elf/dl-lookup.c (_dl_lookup_symbol_x): Add warning to
5375 _dl_lookup_symbol_x code.
5376
53772006-10-17 Jakub Jelinek <jakub@redhat.com>
5378
5379 * elf/dl-runtime.c: Include sysdep-cancel.h.
5380 (_dl_fixup, _dl_profile_fixup): Use __rtld_mrlock_* and
5381 scoperec->nusers only if !SINGLE_THREAD_P. Use atomic_*
5382 instead of catomic_* macros.
5383 * elf/dl-sym.c: Include sysdep-cancel.h.
5384 (do_sym): Use __rtld_mrlock_* and scoperec->nusers only
5385 if !SINGLE_THREAD_P. Use atomic_* instead of catomic_* macros.
5386 * elf/dl-close.c: Include sysdep-cancel.h.
5387 (_dl_close): Use __rtld_mrlock_* and scoperec->nusers only
5388 if !SINGLE_THREAD_P. Use atomic_* instead of catomic_* macros.
5389 * elf/dl-open.c: Include sysdep-cancel.h.
5390 (dl_open_worker): Use __rtld_mrlock_* and scoperec->nusers only
5391 if !SINGLE_THREAD_P. Use atomic_* instead of catomic_* macros.
5392
53932006-10-17 Jakub Jelinek <jakub@redhat.com>
5394
5395 [BZ #3313]
5396 * malloc/malloc.c (malloc_consolidate): Set maxfb to address of last
5397 fastbin rather than end of fastbin array.
5398
53992006-10-18 Ulrich Drepper <drepper@redhat.com>
5400
5401 * sysdeps/i386/i486/bits/atomic.h (catomic_decrement): Use correct
5402 body macro.
5403 * sysdeps/x86_64/bits/atomic.h
5404 (__arch_c_compare_and_exchange_val_64_acq): Add missing casts.
5405 (catomic_decrement): Use correct body macro.
5406
54072006-10-17 Jakub Jelinek <jakub@redhat.com>
5408
5409 * include/atomic.h: Add a unique prefix to all local variables
5410 in macros.
5411 * csu/tst-atomic.c (do_test): Test also catomic_* macros.
5412
4a85a8ee
UD
54132006-10-16 Ulrich Drepper <drepper@redhat.com>
5414
5415 [BZ #3369]
5416 * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Fix typos in rules 4
5417 and 7.
5418
11bf311e
UD
54192006-10-14 Ulrich Drepper <drepper@redhat.com>
5420
5421 * resolv/arpa/nameser.h: Document that ns_t_a6 is deprecated.
5422
ff8d96be
UD
54232006-10-13 Ulrich Drepper <drepper@redhat.com>
5424
11bf311e
UD
5425 [BZ #3313]
5426 * malloc/malloc.c (malloc_consolidate): Don't use get_fast_max to
5427 determine highest fast bin to consolidate, always look into all of
5428 them.
5429 (do_check_malloc_state): Only require for empty bins for large
5430 sizes in main arena.
5431
5432 * libio/stdio.h: Add more __wur attributes.
5433
ff8d96be
UD
5434 * elf/dl-minimal.c (realloc): Optimize last patch.
5435
90a0991a
UD
54362006-10-12 Richard Sandiford <richard@codesourcery.com>
5437
5438 [BZ #3352]
5439 * elf/dl-minimal.c (realloc): Let malloc() return a new pointer,
5440 and use memcpy() if it does.
ff8d96be 5441
11bf311e
UD
54422006-11-12 Andreas Jaeger <aj@suse.de>
5443
5444 [BZ #2510]
5445 * manual/search.texi (Hash Search Function): Clarify.
5446 (Array Search Function): Clarify.
5447
54482006-11-12 Joseph Myers <joseph@codesourcery.com>
5449
5450 [BZ #2830]
5451 * math/atest-exp.c (main): Cast hex value to mp_limb_t before
5452 shifting.
5453 * math/atest-exp2.c (read_mpn_hex): Likewise.
5454 * math/atest-sincos.c (main): Likewise.
5455
37fb7595
UD
54562006-10-11 Ulrich Drepper <drepper@redhat.com>
5457
11bf311e
UD
5458 * sysdeps/unix/sysv/linux/syscalls.list: Add epoll_pwait.
5459 * sysdeps/unix/sysv/linux/sys/epoll.h: Declare epoll_pwait.
5460 * sysdeps/unix/sysv/linux/Versions (libc): Add epoll_pwait for
5461 version GLIBC_2.6.
5462 * Versions.def: Add GLIBC_2.6 for libc.
5463
46c38bd7
UD
5464 * sysdeps/unix/sysv/linux/i386/sysdep.h (DOARGS_6): Fix offset.
5465
11bf311e
UD
5466 * sysdeps/i386/i486/bits/atomic.h: Add catomic_* support.
5467
54682006-10-11 Jakub Jelinek <jakub@redhat.com>
5469
5470 * malloc/malloc.c (_int_malloc): Remove unused any_larger variable.
5471
5472 * nis/nis_defaults.c (__nis_default_access): Don't call getenv twice.
5473
5474 * nis/nis_subr.c (nis_getnames): Use __secure_getenv instead of getenv.
5475 * sysdeps/generic/unsecvars.h: Add NIS_PATH.
5476
54772006-10-11 Ulrich Drepper <drepper@redhat.com>
5478
5479 * include/atomic.c: Define catomic_* operations.
5480 * sysdeps/x86_64/bits/atomic.h: Likewise. Fix a few minor problems.
5481 * stdlib/cxa_finalize.c: Use catomic_* operations instead of atomic_*.
5482 * malloc/memusage.c: Likewise.
5483 * gmon/mcount.c: Likewise.
5484 * elf/dl-close.c: Likewise.
5485 * elf/dl-open.c: Likewise.
5486 * elf/dl-profile.c: Likewise.
5487 * elf/dl-sym.c: Likewise.
5488 * elf/dl-runtime.c: Likewise.
5489 * elf/dl-fptr.c: Likewise.
5490 * resolv/res_libc.c: Likewise.
5491
2a6ee549
UD
54922006-10-10 Ulrich Drepper <drepper@redhat.com>
5493
5494 * nis/nis_subr.c (nis_getnames): Add trailing dot to NIS_PATH
5495 components which lack them.
5496
5497 * nis/nis_subr.c (nis_getnames): Make sure that we always return
5498 at least one entry consisting of the parameter concatenated with
5499 the domain.
5500
11bf311e 55012006-10-10 Roland McGrath <roland@frob.com>
c4f9fc3a 5502
11bf311e
UD
5503 * sysdeps/mach/hurd/utimes.c: Use a union to avoid an improper cast.
5504 * sysdeps/mach/hurd/futimes.c: Likewise.
5505 * sysdeps/mach/hurd/lutimes.c: Likewise.
5506
55072006-10-09 Ulrich Drepper <drepper@redhat.com>
5508 Jakub Jelinek <jakub@redhat.com>
5509
5510 Implement reference counting of scope records.
5511 * elf/dl-close.c (_dl_close): Remove all scopes from removed objects
5512 from the list in objects which remain. Always allocate new scope
5513 record.
5514 * elf/dl-open.c (dl_open_worker): When growing array for scopes,
5515 don't resize, allocate a new one.
5516 * elf/dl-runtime.c: Update reference counters before using a scope
5517 array.
5518 * elf/dl-sym.c: Likewise.
5519 * elf/dl-libc.c: Adjust for l_scope name change.
5520 * elf/dl-load.c: Likewise.
5521 * elf/dl-object.c: Likewise.
5522 * elf/rtld.c: Likewise.
5523 * include/link.h: Include <rtld-lowlevel.h>. Define struct
5524 r_scoperec. Replace r_scope with pointer to r_scoperec structure.
5525 Add l_scoperec_lock.
5526 * sysdeps/generic/ldsodefs.h: Include <rtld-lowlevel.h>.
5527 * sysdeps/generic/rtld-lowlevel.h: New file.
5528
5529 * include/atomic.h: Rename atomic_and to atomic_and_val and
5530 atomic_or to atomic_or_val. Define new macros atomic_and and
5531 atomic_or which do not return values.
5532 * sysdeps/x86_64/bits/atomic.h: Define atomic_and and atomic_or.
5533 Various cleanups.
5534 * sysdeps/i386/i486/bits/atomic.h: Likewise.
5535
5536 * po/sv.po: Update from translation team.
5537
55382006-10-07 Ulrich Drepper <drepper@redhat.com>
5539
5540 * Versions.def: Add GLIBC_2.6 to libpthread.
5541
5542 * include/shlib-compat.h (SHLIB_COMPAT): Expand parameters before use.
5543 (versioned_symbol): Likewise.
5544 (compat_symbol): Likewise.
5545
5546 * po/tr.po: Update from translation team.
feb87ad1 5547
4df92d57
UD
55482006-10-06 Ulrich Drepper <drepper@redhat.com>
5549
11bf311e
UD
5550 * nis/Banner: Removed. It's been integral part forever and the
5551 author info is incomplete anyway.
5552 * libio/Banner: Likewise.
5553
4df92d57
UD
5554 * nis/nis_table.c (nis_list): If __follow_path fails in the new
5555 code, make sure the nis_freeresult call doesn't crash and that the
5556 result is reported correctly.
5557
68361572
UD
55582006-09-27 Jakub Jelinek <jakub@redhat.com>
5559
5560 * nis/nis_table.c (nis_list): Handle FOLLOW_PATH | ALL_RESULTS
5561 when callback is NULL.
5562
5563 * nis/Versions (libnss_nisplus): Add
5564 _nss_nisplus_initgroups_dyn@@GLIBC_PRIVATE.
5565 * nis/Makefile (libnss_nisplus-routines): Add nisplus-initgroups.
5566 * nis/nss_nisplus/nisplus-grp.c (tablename_val, tablename_len,
5567 _nss_create_tablename): Rename to...
5568 (grp_tablename_val, grp_tablename_len, _nss_grp_create_tablename):
5569 ... these. No longer static.
5570 (internal_setgrent): Adjust users.
5571 (_nss_nisplus_getgrnam_r, _nss_nisplus_getgrgid_r): Likewise.
5572 Don't use locking around _nss_grp_create_tablename call.
5573 * nis/nss_nisplus/nisplus-initgroups.c: New file.
5574
11bf311e
UD
55752006-10-06 Ulrich Drepper <drepper@redhat.com>
5576
5577 * version.h (VERSION): Bump to 2.5.90 for new development tree.
5578
3a4e0609
UD
55792006-10-06 Andreas Jaeger <aj@suse.de>
5580
5581 * include/features.h (__GLIBC_MINOR__): It's glibc 2.5 now.
5582
55832006-10-06 Ulrich Drepper <drepper@redhat.com>
5584
5585 * po/pl.po: Update from translation team.
5586
5587 * nscd/nscd.c (main): Fix typo in message.
5588 Patch by Jakub Bogsz <qboosh@pld-linux.org>.
5589
97e57dee
UD
55902006-10-02 Jakub Jelinek <jakub@redhat.com>
5591
5592 [BZ #3291]
5593 * sysdeps/unix/sysv/linux/sparc/sparc64/pause.c: Include
5594 errno.h, signal.h, unistd.h and sysdep-cancel.h.
5595 (__sigprocmask): Define.
5596
768027a4
UD
55972006-10-02 Ulrich Drepper <drepper@redhat.com>
5598
5599 * elf/rtld.c (dl_main): Don't use prelinking if LD_DYNAMIC_WEAK is
5600 used.
5601
0b25a49a
UD
56022006-10-02 Jakub Jelinek <jakub@redhat.com>
5603
5604 * nscd/mem.c (mempool_alloc): Round array size to 16 bytes
5605 in oldtotal and newtotal calculation.
5606 * nscd/nscd-client.h (struct mapped_database): Add datasize
5607 field.
5608 * nscd/nscd_helper.c (get_mapping): Initialize datasize field.
5609 (__nscd_get_map_ref): Get a new mapping even if mapping's data_size
5610 increased.
5611 (__nscd_cache_search): Add checks to make sure we never reference
5612 data beyond the current mapping.
5613
a1286745
UD
56142006-10-02 Dmitry V. Levin <ldv@altlinux.org>
5615
d4ed7561
UD
5616 * sysdeps/posix/getaddrinfo.c (match_prefix): Make mask and val
5617 variables const to avoid compiler warnings.
5618
a1286745
UD
5619 * io/fts.c (fts_close): Remove redundant checks.
5620 (fts_build): Likewise.
5621 (fts_palloc): Likewise.
5622
5623 * manual/message.texi (Advanced gettext functions,
5624 Using gettextized software): Fix typos.
5625
f01e4069
UD
56262006-09-30 Ulrich Drepper <drepper@redhat.com>
5627
5628 * posix/glob.c (glob_in_dir): Add some comments and asserts to
5629 explain why there are no leaks.
5630
154619b5
UD
56312006-09-29 Ulrich Drepper <drepper@redhat.com>
5632
690c3947
UD
5633 * libio/wmemstream.c: Include <wchar.h>.
5634 * libio/bug-wmemstream1.c: Likewise.
5635 * libio/tst-wmemstream1.c: Likewise.
5636 * libio/tst-wmemstream2.c: Likewise.
5637
88cc61e8
UD
5638 * version.h (RELEASE): Bump to 2.5.
5639 * README: Regenerated.
5640
a70c18b0
UD
5641 * locale/iso-3166.def: Add Aaland Islands and Montenegro.
5642
154619b5
UD
5643 [BZ #3273]
5644 * nscd/nscd_initgroups.c (__nscd_getgrouplist): It is OK to have
5645 found no group members.
5646 Patch by Petr Baudis.
5647
56482006-09-29 Jakub Jelinek <jakub@redhat.com>
5649
5650 * elf/rtld.c (_dl_start_final): If not USE___THREAD, don't
5651 assert bootstrap_map.l_tls_modid is zero.
5652 (_dl_start): Initialize bootstrap_map.l_tls_modid to 0
5653 if USE___THREAD.
5654
1c31aa79
UD
56552006-09-27 Ulrich Drepper <drepper@redhat.com>
5656
5657 * libio/stdio.h: Move open_wmemstream prototype to ...
5658 * wcsmbs/wchar.h: ... here.
5659
f1122ec3
UD
56602006-09-25 Jakub Jelinek <jakub@redhat.com>
5661
5662 [BZ #3252]
5663 * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat): Handle only
5664 fchownat syscall and __ASSUME_LCHOWN_SYSCALL case inline, call
5665 __{,l}chown to handle the rest.
5666 * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Handle only
5667 fchownat syscall and __ASSUME_32BITUIDS case inline, call
5668 __{,l}chown to handle the rest.
5669 * sysdeps/unix/sysv/linux/sparc/sparc32/fchownat.c: Include
5670 i386/fchownat.c.
5671 * sysdeps/unix/sysv/linux/s390/s390-32/fchownat.c: Likewise.
5672 * sysdeps/unix/sysv/linux/sh/fchownat.c: Likewise.
5673
5674 [BZ #3253]
5675 * posix/glob.c (glob_in_dir): Don't alloca one struct globlink at a
5676 time, rather allocate increasingly bigger arrays of pointers, if
5677 possible with alloca, if too large with malloc.
5678
56792006-09-24 Jakub Jelinek <jakub@redhat.com>
5680
5681 * sysdeps/powerpc/fpu/libm-test-ulps: Updated.
5682
5683 * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Fix 2 typos.
5684
457b559e
UD
56852006-09-24 Ulrich Drepper <drepper@redhat.com>
5686
5687 * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Implement rule 4,
5688 home addresses.
5689 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Recognize
5690 IFA_F_HOMEADDRESS flag for interfaces.
5691 * include/ifaddrs.h (struct in6addrinfo): Define
5692 in6ai_homeaddress.
5693
4a132246
UD
56942006-09-21 Jakub Jelinek <jakub@redhat.com>
5695
5696 [BZ #3225]
5697 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (PTR_MANGLE3,
5698 PTR_DEMANGLE3): Define.
5699 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h (PTR_MANGLE3,
5700 PTR_DEMANGLE3): Likewise.
5701 * sysdeps/powerpc/powerpc32/__longjmp-common.S (__longjmp): Use them.
5702 * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp):
5703 Likewise.
5704 * sysdeps/powerpc/powerpc64/__longjmp-common.S (__longjmp): Likewise.
5705
c69136ae
UD
57062006-09-20 Jakub Jelinek <jakub@redhat.com>
5707
5708 * po/libc.pot: Regenerated.
5709 * po/be.po: Updated.
5710 * po/ca.po: Likewise.
5711 * po/cs.po: Likewise.
5712 * po/da.po: Likewise.
5713 * po/de.po: Likewise.
5714 * po/el.po: Likewise.
5715 * po/en_GB.po: Likewise.
5716 * po/es.po: Likewise.
5717 * po/fi.po: Likewise.
5718 * po/fr.po: Likewise.
5719 * po/gl.po: Likewise.
5720 * po/hr.po: Likewise.
5721 * po/hu.po: Likewise.
5722 * po/ja.po: Likewise.
5723 * po/ko.po: Likewise.
5724 * po/nb.po: Likewise.
5725 * po/nl.po: Likewise.
5726 * po/pl.po: Likewise.
5727 * po/pt_BR.po: Likewise.
5728 * po/ru.po: Likewise.
5729 * po/rw.po: Likewise.
5730 * po/sk.po: Likewise.
5731 * po/sv.po: Likewise.
5732 * po/tr.po: Likewise.
5733 * po/zh_CN.po: Likewise.
5734 * po/zh_TW.po: Likewise.
5735
5736 [BZ #3137]
5737 * iconv/iconv_prog.c (main): Fix spelling in error message.
5738 * iconv/iconvconfig.c (main): Likewise.
5739 * locale/programs/ld-collate.c (handle_ellipsis): Likewise.
5740 * locale/programs/ld-ctype.c (charclass_symbolic_ellipsis): Likewise.
5741 * locale/programs/localedef.c (main): Likewise.
5742 * locale/programs/repertoire.c (repertoire_read): Likewise.
5743 * timezone/zdump.c (main): Likewise.
5744 * nscd/connections.c (handle_request): Fix spelling in log message.
5745 Patch by Malcolm Parsons <malcolm.parsons@gmail.com>.
5746
83b3108c
UD
57472006-09-20 Ulrich Drepper <drepper@redhat.com>
5748
5749 * inet/inet6_option.c: Also emit linker warnings for the RFC 2292
5750 interfaces.
5751
89210b4c
AJ
57522006-09-20 Andreas Jaeger <aj@suse.de>
5753
5754 * math/libm-test.inc (lrint_test_upward): Fix typo.
5755
6624dbc0
UD
57562006-06-17 Joseph S. Myers <joseph@codesourcery.com>
5757
5758 [BZ #2592]
5759 * math/libm-test.inc (lrint_test_tonearest): New function.
5760 (lrint_test_towardzero): New function.
5761 (lrint_test_downward): New function.
5762 (lrint_test_upward): New function.
5763 (main): Run these new tests.
5764 * sysdeps/ieee754/dbl-64/s_llrint.c (__llrint): Correct rounding
5765 of values near to 0.
5766 (two52): Use double not long double.
5767 * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Likewise.
5768 * sysdeps/ieee754/flt-32/s_llrintf.c (__llrintf): Likewise.
5769 (two23): Use float not double.
5770 * sysdeps/ieee754/flt-32/s_lrintf.c (__lrintf): Likewise.
5771 (two23): Use float not double.
5772 * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl): Likewise.
5773 * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Likewise.
5774 * sysdeps/ieee754/ldbl-96/s_llrintl.c (__llrintl): Likewise.
5775 * sysdeps/ieee754/ldbl-96/s_lrintl.c (__lrintl): Likewise.
5776
60cb50c7
UD
57772006-09-20 Martin Schwidefsky <schwidefsky@de.ibm.com>
5778
5779 * sysdeps/unix/sysv/linux/s390/s390-32/makecontext.c (__makecontext):
5780 Cast sp to unsigned long to avoid compiler warning.
5781 Use __makecontext_ret function instead of a trampoline on the stack.
5782 (__makecontext_ret): New function.
5783 * sysdeps/unix/sysv/linux/s390/s390-64/makecontext.c: Likewise.
5784
33315ced
UD
57852006-09-19 Jakub Jelinek <jakub@redhat.com>
5786
5787 * elf/dl-cache.c (HWCAP_CHECK): If _DL_PLATFORMS_COUNT, but
5788 platform == -1, reject any libs with non-zero _DL_HWCAP_PLATFORM
5789 bits.
5790
1ee2ff20
UD
57912006-09-19 Ulrich Drepper <drepper@redhat.com>
5792
5793 * elf/dl-close.c (_dl_close): If dependency is not unloaded make
5794 sure no reference to the unloaded map's search list remains in the
5795 dependency's scope.
5796
57972006-09-16 Jakub Jelinek <jakub@redhat.com>
5798
5799 * elf/Makefile: Add rules to build and run unload7 test.
5800 * elf/unload7.c: New test.
5801 * elf/unload7mod1.c: New file.
5802 * elf/unload7mod2.c: New file.
5803
0466106e
UD
58042006-09-18 Jakub Jelinek <jakub@redhat.com>
5805
5806 * sysdeps/unix/sysv/linux/sys/ptrace.h (PT_GETEVENTMSG): Fix pasto.
5807 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h (PTRACE_SETOPTIONS,
5808 PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
5809 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h (PTRACE_SETOPTIONS,
5810 PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Likewise.
5811 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h (PTRACE_SETOPTIONS,
5812 PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Likewise.
5813 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h (PTRACE_SETOPTIONS,
5814 PTRACE_GETEVENTMSG): Likewise.
5815 (PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Change to the arch independent
5816 values.
5817
9c316a45
UD
58182006-09-17 Mike Frysinger <vapier@gentoo.org>
5819
0466106e
UD
5820 * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_SETOPTIONS,
5821 PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
5822 * sysdeps/unix/sysv/linux/ptrace.c (ptrace): Check PTRACE_SETOPTIONS,
5823 PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO and PTRACE_SETSIGINFO.
9c316a45
UD
5824
58252006-09-16 Jakub Jelinek <jakub@redhat.com>
5826
5827 * sysdeps/powerpc/powerpc32/register-dump.h (register_dump): Don't
5828 write '\0' to the fd.
5829 * sysdeps/mach/hurd/powerpc/register-dump.h (register_dump): Likewise.
5830 * sysdeps/powerpc/powerpc64/register-dump.h (register_dump): Likewise.
5831 Change regs to unsigned long pointer from unsigned int, fix fscr
5832 offset.
5833
fb146a76
UD
58342006-09-14 Jakub Jelinek <jakub@redhat.com>
5835
5836 * io/Makefile (CFLAGS-fstatat.c): Set.
5837 (CFLAGS-fstatat64.c): Likewise.
5838 (CFLAGS-mknodat.c): Likewise.
5839
5840 * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Comment fixes.
5841 * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
5842 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Rewritten.
5843 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Rewritten.
5844
4cd3633d
UD
58452006-09-14 Jakub Jelinek <jakub@redhat.com>
5846 Steven Munroe <sjmunroe@us.ibm.com>
fb146a76 5847
4cd3633d
UD
5848 * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add 4 new cap
5849 names to the beginning. Rename "cell" to "cellbe".
5850 (_dl_powerpc_platforms): New.
5851 * sysdeps/powerpc/dl-procinfo.h (_DL_HWCAP_FIRST): Decrease.
5852 (HWCAP_IMPORTANT): Remove power{4,5,5+} and cell.
5853 (_DL_PLATFORMS_COUNT, _DL_FIRST_PLATFORM): Define.
5854 (_DL_HWCAP_PLATFORM): Define to new mask.
5855 (_dl_platform_string, _dl_string_platform): New functions.
5856 * sysdeps/powerpc/sysdep.h (PPC_FEATURE_BOOKE, PPC_FEATURE_SMT,
5857 PPC_FEATURE_ICACHE_SNOOP, PPC_FEATURE_ARCH_2_05): Define.
5858
30aa5785
UD
58592006-09-12 Jakub Jelinek <jakub@redhat.com>
5860
5861 [BZ #2526]
5862 * README.libm: Fix a thinko in sqrt algorithm description.
5863
5864 [BZ #3143]
5865 * manual/string.texi (argz_delete): Fix prototype.
5866 Patch by <alpt@freaknet.org>.
5867
58682006-08-26 Joseph Myers <joseph@codesourcery.com>
5869
5870 [BZ #3138]
5871 * io/test-lfs.c (do_prepare): Give name_len type size_t.
5872 * io/tst-fcntl.c (do_prepare): Likewise.
5873 * posix/tst-exec.c (do_prepare): Likewise.
5874 * posix/tst-preadwrite.c (do_prepare): Likewise.
5875 * posix/tst-spawn.c (do_prepare): Likewise.
5876 * posix/tst-truncate.c (do_prepare): Likewise.
5877 * rt/tst-aio.c (do_prepare): Likewise.
5878 * rt/tst-aio64.c (do_prepare): Likewise.
5879 * stdlib/test-canon2.c (do_prepare): Give test_dir_len type
5880 size_t.
5881
d26d01d1
UD
58822006-09-09 Ulrich Drepper <drepper@redhat.com>
5883
41aba3d7
UD
5884 [BZ #2821]
5885 * time/mktime.c (guess_time_tm): Fix overflow detection.
5886 * time/Makefile (tests): Add bug-mktime1.
5887 * time/bug-mktime1.c: New file.
5888
eaa51b47 5889 [BZ #3189, #3188]
d26d01d1 5890 * misc/sys/mman.h (remap_file_pages): Make available for _GNU_SOURCE.
eaa51b47 5891 (mremap): Likewise.
d26d01d1 5892
ba40cc15
UD
58932006-09-07 Jakub Jelinek <jakub@redhat.com>
5894
2b6a801e
UD
5895 [BZ #1006]
5896 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela):
5897 Ensure relocation doesn't clobber any bits outside of the
5898 immediate field for R_SPARC_TLS_LE_HIX22, R_SPARC_WDISP30,
5899 R_SPARC_HI22 and R_SPARC_H44.
5900
469615bd
UD
5901 [BZ #2775]
5902 * malloc/malloc.c (sYSMALLOc): Only call grow_heap if
5903 (long) (MINSIZE + nb - old_size) is positive.
5904
5905 * malloc/arena.c (grow_heap): When growing bail even if new_size
5906 is negative.
5907
ba40cc15
UD
5908 [BZ #3155]
5909 * sysdeps/powerpc/powerpc32/fpu/s_lrint.S (__lrint): Don't access
5910 stack below r1.
5911
243b9ac1
UD
59122006-09-06 Jakub Jelinek <jakub@redhat.com>
5913
ba40cc15
UD
5914 * posix/regex_internal.c (re_string_reconstruct): Handle
5915 offset < pstr->valid_raw_len && pstr->offsets_needed case.
5916 Ensure no bytes read before raw_mbs array. Pass a saved copy of
5917 pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
5918 re_string_context_at.
5919 * posix/Makefile: Add rules to build and run bug-regex26 test.
5920 * posix/bug-regex26.c: New test.
5921
243b9ac1
UD
5922 * locale/programs/ld-collate.c (collate_read): Goto sym_equiv_free
5923 rather than col_sym_free. Move seqp declaration earlier.
5924
5925 * resolv/gai_suspend.c (gai_suspend): Make sure result is initialized.
5926
d052233c
UD
59272006-09-05 Jakub Jelinek <jakub@redhat.com>
5928
5929 * nscd/initgrcache.c (addinitgroupsX): Move any_success
5930 decl before first goto out.
5931
71213dc2
UD
59322006-09-04 Jakub Jelinek <jakub@redhat.com>
5933
5934 * Makerules (shlib.lds): If have-hash-style, put .hash section
5935 at the end of the RO segment.
5936
59372006-09-04 Ulrich Drepper <drepper@redhat.com>
5938
5939 * elf/do-lookup.h (do_lookup_x): Initialize symidx in case the new
5940 style hash table format is used.
5941
03eeff83
UD
59422006-09-04 Jakub Jelinek <jakub@redhat.com>
5943
5944 * resolv/res_mkquery.c (res_nmkquery): Set hp->id to statp->id after
5945 randomization rather than before.
5946 * resolv/res_init.c (res_randomid): Don't call gettimeofday here.
5947
b80770b2
UD
59482006-08-31 Jakub Jelinek <jakub@redhat.com>
5949
ba40cc15 5950 * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Add ld.so.
b80770b2
UD
5951
5952 * malloc/malloc.c (_int_malloc): Use full list insert and not
5953 shortcut which assumes the list is empty for large requests
5954 too.
5955
5956 * elf/tst-addr1.c (do_test): Allow i.dli_sname "_IO_printf".
5957
99ea5991
UD
59582006-08-30 Jakub Jelinek <jakub@redhat.com>
5959
5960 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (splice): Add offin
5961 and offout arguments to the prototype.
5962 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (splice): Likewise.
5963 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h (splice): Likewise.
5964 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (splice): Likewise.
5965 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h (splice): Likewise.
5966 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h (splice): Likewise.
5967 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (splice): Likewise.
5968 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h (splice): Likewise.
5969 * sysdeps/unix/sysv/linux/syscalls.list (splice): Adjust args string.
5970
4004a0a5
UD
59712006-08-28 Ulrich Drepper <drepper@redhat.com>
5972
950398e1
UD
5973 * elf/dl-load.c (_dl_init_paths): Expand DSTs.
5974
4004a0a5
UD
5975 * elf/dl-open.c (dl_open_worker): Allow $LIB and $PLATFORM in
5976 dlopen parameters.
5977
6e310111
UD
59782006-08-28 Jakub Jelinek <jakub@redhat.com>
5979
5980 * inet/getnameinfo.c (getnameinfo): For AF_INET, check errno
5981 only if herrno is NETDB_INTERNAL. Handle errors other than
5982 ERANGE outside of the loops, handle TRY_AGAIN.
5983
5984 * locale/programs/ld-ctype.c (translit_flatten): Issue error
5985 if other's ctype category was missing.
5986 * locale/programs/ld-collate.c (collate_read): Return if
5987 copy_locale's collate category is missing.
5988
07014fca
UD
59892006-08-27 Ulrich Drepper <drepper@redhat.com>
5990
5991 [BZ #2684]
5992 * malloc/malloc.c (public_rEALLOc): Try harder by using other
5993 arenas if allocation failed.
5994 Patch mostly by Jan Edler <jan.edler@indexengines.com>.
5995
71663747
UD
59962006-08-26 Ulrich Drepper <drepper@redhat.com>
5997
41999a1a
UD
5998 * malloc/malloc.c (bin_at): Rewrite to be more clear and to not
5999 waste bins[0..1].
6000 (malloc_state): Reduce bins size by 2.
6001 (_int_malloc): Fix test for large enough buffer for early termination.
6002 When no unsorted block matches perfectly and an exiting block has
6003 to be split, use full list insert and not shortcut which assumes
6004 the list is empty.
6005
71663747
UD
6006 * locale/programs/ld-ctype.c (ctype_read): Better patch for read
6007 failure.
6008
93b53ca2
UD
60092006-08-24 Ulrich Drepper <drepper@redhat.com>
6010
f5a82772
UD
6011 * locale/programs/ld-ctype.c (ctype_read): If CTYPE is NULL, don't
6012 do anything.
6013
2ac9ca73
UD
6014 * sysdeps/generic/ldsodefs.h (DL_ADDR_SYM_MATCH): For undefined
6015 symbol require exact match (these are PLTs).
6016 * sysdeps/unix/sysv/linux/powerpc/powerpc64/ldsodefs.h
6017 (_dl_ppc64_addr_sym_match): Likewise.
6018
93b53ca2
UD
6019 [BZ #2683]
6020 * elf/dl-addr.c (_dl_addr): Don't ignore all undefined symbols.
6021 If symbol has a value use it.
6022 * elf/tst-dladdr1.c: New file.
6023 * elf/Makefile: Add rules to build and run tst-addr1.
6024
7463d5cb
UD
60252006-08-24 Jakub Jelinek <jakub@redhat.com>
6026
6027 * malloc/malloc.c (sYSMALLOc): Avoid infinite loop if MMAP
6028 keeps failing and heap growth or new heap creation isn't
6029 successful either.
6030 * malloc/tst-malloc.c (main): Add new tests.
6031
542a6f62
UD
60322006-08-24 Ulrich Drepper <drepper@redhat.com>
6033
6034 [BZ #2734]
6035 * sysdeps/i386/bits/byteswap.h (__bswap_32): Use same conditions
6036 as in the x86-64 code to use bswap.
6037
aa2c6b6d
UD
60382006-05-21 Joseph S. Myers <joseph@codesourcery.com>
6039
24982798 6040 [BZ #2680]
aa2c6b6d
UD
6041 * posix/unistd.h (getlogin_r): Condition on __USE_POSIX199506, not
6042 __USE_UNIX98.
6043 * posix/bits/unistd.h: Likewise.
6044
59776aef
UD
60452006-05-15 Mike Frysinger <vapier@gentoo.org>
6046
6047 [BZ #2751]
6048 * string/strchr.c: Add cast to avoid warning.
6049
e404fb16
UD
60502006-08-21 Ulrich Drepper <drepper@redhat.com>
6051
6052 * malloc/malloc.c (DEFAULT_MMAP_THRESHOLD_MAX): For 32-bit
bd2c2341 6053 platforms define as 512K. For 64-bit platforms as 32MB. The lower
e404fb16
UD
6054 limit is needed to avoid the exploding of the address space
6055 requirement for secondary heaps.
6056 * malloc/arena.c (HEAP_MAX_SIZE): Define using
6057 DEFAULT_MMAP_THRESHOLD_MAX if it is defined.
6058
376e973a
UD
60592006-07-30 Joseph S. Myers <joseph@codesourcery.com>
6060
6061 [BZ #3018]
6062 * Makerules (depfiles): Handle extra-test-objs the same as
6063 extra-objs.
6064 (common-mostlyclean): Likewise.
6065 * dlfcn/Makefile (extra-objs): Add modules to extra-test-objs
6066 instead.
6067 * elf/Makefile (extra-objs): Likewise.
6068 * stdlib/Makefile (extra-objs): Likewise.
6069
240c62a7
UD
60702006-08-14 Eric Blake <ebb9@byu.net>
6071
6072 [BZ #3044]
6073 * misc/error.h: Assume C89 or better.
6074 * misc/error.c: Likewise.
6075
3997b7c4
UD
60762006-08-21 Ulrich Drepper <drepper@redhat.com>
6077
6078 [BZ #3040]
6079 * sysdeps/unix/sysv/linux/openat.c: Fix compilation if
6080 __ASSUME_ATFCTS is defined.
6081
8a6537b0
UD
60822006-08-19 Ulrich Drepper <drepper@redhat.com>
6083
72320021
UD
6084 * malloc/malloc.c (_int_malloc): Limit number of unsorted blocks
6085 to sort in each call.
6086
ed3691ba
UD
6087 * nis/nss_nis/nis-service.c (internal_nis_getservent_r): . If map
6088 is empty simply return and use next service.
6089 * nis/nss_nis/nis-rpc.c (internal_nis_getrpcent_r): Likewise.
6090
8a6537b0
UD
6091 * locale/programs/charmap.c (charmap_read): Add new parameter. It
6092 tells us when not finding a charmap file is an error.
6093 * locale/programs/charmap.h: Adjust charmap_read prototype.
6094 * iconv/iconv_prog.c (main): Tell charmap_read it's no error if we
6095 cannot find a charmap.
6096 * locale/programs/localedef.c (main): Adjust charmap_read call.
6097
ad2a3c07
UD
60982006-08-15 Jakub Jelinek <jakub@redhat.com>
6099
6100 * sysdeps/unix/sysv/linux/sparc/sparc64/pause.c: Use
6101 sysdeps/posix/pause.c implementation instead.
6102
61032006-08-09 Jakub Jelinek <jakub@redhat.com>
6104
6105 * sysdeps/unix/nice.c (nice): Transform EACCES errno from setpriority
6106 to EPERM.
6107
f17efcb4
UD
61082006-08-13 Andreas Schwab <schwab@suse.de>
6109
6110 * sysdeps/powerpc/powerpc32/dl-trampoline.S (_dl_runtime_resolve):
6111 Don't clobber caller's LRSAVE.
6112 (_dl_prof_resolve): Likewise.
6113
107b8a92
UD
61142006-08-14 Ulrich Drepper <drepper@redhat.com>
6115
6116 [BZ #1996]
6117 * libio/memstream.c (open_memstream): Allocate initial buffer with
6118 calloc.
6119 * libio/wmemstream.c (open_wmemstream): Likewise.
6120 * libio/strops.c: Pretty printing.
6121 (_IO_str_overflow): Clear uninitialized part of the new buffer.
6122 (enlarge_userbuf): New function.
6123 (_IO_str_seekoff): Call it if seek position is larger than current
6124 buffer.
6125 * libio/wstrops.c: Likewise.
6126 * libio/vasprintf.c: Add comment as to why we do not have to use
6127 calloc instead of malloc to allocate initial buffer.
6128 * libio/Makefile (tests): Add bug-memstream1 and bug-wmemstream1.
6129 * libio/bug-memstream1.c: New file.
6130 * libio/bug-wmemstream1.c: New file.
6131
fa3ac53f
UD
61322006-08-13 Ulrich Drepper <drepper@redhat.com>
6133
89993734
UD
6134 * libio/wstrops.c: Remove dead macro definitions and comments.
6135 * libio/strops.c: Likewise.
6136
fa3ac53f
UD
6137 [BZ #2764]
6138 * login/utmpname.c (__utmpname): Remove unnecessary test.
6139
f99ed760
UD
61402006-06-08 Joseph Myers <jsm28@gcc.gnu.org>
6141
6142 [BZ #2832]
6143 * math/gen-libm-test.pl (clean_up_number): Do not remove trailing
6144 0s from integers.
6145
61462006-08-13 Ulrich Drepper <drepper@redhat.com>
6147
6148 [BZ #2987]
6149 * sysdeps/unix/sysv/linux/clock_settime.c: Add code to use syscall
6150 for CPU clocks.
6151 * sysdeps/unix/clock_settime.c: Add support for platform-specific
6152 setting of CPU clocks.
6153
4c3f81d0
UD
61542006-06-23 Paul Eggert <eggert@cs.ucla.edu>
6155
6156 [BZ #2841]
6157 * sysdeps/generic/stdint.h (UINT8_C, UINT16_C): Don't append 'U',
6158 since C99 requires the result to promote to 'int' when uint_least8_t
6159 and uint_least16_t promote to 'int'.
6160
cd8e60ce
UD
61612006-08-12 Ulrich Drepper <drepper@redhat.com>
6162
9a5c46e8
UD
6163 [BZ #3013]
6164 * locale/programs/ld-ctype.c (ctype_output): Adjust alignments, fix
6165 lenght of one output field, correct bitmask creation.
6166 * locale/programs/ld-time.c: Add alignment.
6167
cd8e60ce
UD
6168 [BZ #2997]
6169 * misc/error.c: Add space between program name and message if file
6170 name is missing.
6171
9a528884
UD
61722006-08-03 Eric Blake <ebb9@byu.net>
6173
6174 [BZ #2998]
6175 * misc/error.c (error_tail) [_LIBC]: Avoid invalid free.
6176
1d05c2fb
UD
61772006-08-09 Ulrich Drepper <drepper@redhat.com>
6178
0c1c6c6c
UD
6179 * malloc/memusagestat.c: Silence warnings.
6180
1d05c2fb
UD
6181 * malloc/malloc.c: Dynamically size mmap treshold if the program
6182 frees mmaped blocks.
6183 Patch by Valerie Henson and Arjan van de Ven.
6184
2d1e6277
UD
61852006-08-08 Jakub Jelinek <jakub@redhat.com>
6186
be7ffd91
UD
6187 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (O_DIRECT): Protect with
6188 __USE_GNU.
6189
2d1e6277
UD
6190 * stdlib/strtol_l.c (__strtol_ul_max_tab, __strtol_ul_rem_tab,
6191 __strtol_ull_max_tab, __strtol_ull_rem_tab): Declare.
6192 (DEF): Don't put the var into .gnu.linkonce.r.* section.
6193 Only provide var definitions in strtol_l (or for *ull*
6194 in strtoll_l).
6195
6196 * stdio-common/bug16.c (tests): New array.
6197 (do_tests): Allow the first hexadecimal digit
6198 to be 1, 2, 4 or 8. Do 3 additional tests.
6199
6200 * sysdeps/s390/fpu/libm-test-ulps: Update.
6201
6202 * sysdeps/unix/sysv/linux/s390/s390-32/fchownat.c (fchownat): Use
6203 fchownat syscall if available.
6204 * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat): Likewise.
6205 * sysdeps/unix/sysv/linux/sh/fchownat.c (fchownat): Likewise.
6206 * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Likewise.
6207
d0ccde25
UD
62082006-08-07 Ulrich Drepper <drepper@redhat.com>
6209
6210 * nis/nis_xdr.c: Avoid some function calls.
6211
13a0293d 62122006-08-07 Jakub Jelinek <jakub@redhat.com>
3f7a21a9 6213 Ulrich Drepper <drepper@redhat.com>
13a0293d
UD
6214
6215 * nis/nis_call.c (rec_dirsearch) [case LOWER_NAME]: Don't take
6216 short cut if only one name component is stripped away.
6217
bd1ebae0
UD
62182006-08-07 Ulrich Drepper <drepper@redhat.com>
6219
6220 * nis/nis_call.c: Minor cleanups throughout.
2d1e6277 6221 (rec_dirsearch) [case HIGHER_NAME]: Correctly size ndomain array.
bd1ebae0
UD
6222 (first_shoot): Add search_parent_first parameter. Only if it is set
6223 search parent server first.
6224 If directory for table found through cold start cache is not the same
6225 as referenced in the cache, don't use it.
6226 (__nisfind_server): Take additional parameter. Pass it on to
6227 first_shoot.
6228 (__prepare_niscall): Adjust __nisfind_server call.
6229 * nis/rpcsvc/nislib.h: Adjust __nisfind_server prototype.
6230 * nis/nis_table.c: Adjust __nisfind_server call.
6231 * nis/nis_lookup.c: Likewise.
6232 (nis_lookup): Don't loop endlessly if name is reduced to ".".
6233
f1762c0c
UD
62342006-08-03 Ulrich Drepper <drepper@redhat.com>
6235
fe710250
UD
6236 [BZ #2182]
6237 * math/s_cacosh.c: Return values from positive branch.
6238 * math/s_cacoshf.c: Likewise.
6239 * math/s_cacoshl.c: Likewise.
6240
a5852807
UD
6241 [BZ #2883]
6242 * sysvipc/sys/msg.h: Change return value to ssize_t.
6243 * sysdeps/unix/sysv/linux/msgrcv.c: Likewise.
fe710250
UD
6244 * sysvipc/msgrcv.c: Likewise.
6245 * include/sys/msg.h: Likewise.
39571a13 6246
6c215a8d
UD
6247 * grp/initgroups.c (internal_getgrouplist): Remove unnecessary
6248 test introduced in patch for bz #661.
39571a13 6249 (getgrouplist): Simplify code a bit. Don't allocate one additional
f13bfdd0 6250 element for NEWGROUPS.
6c215a8d 6251
9c06eb66
UD
6252 [BZ #2908]
6253 * stdio-common/printf_fphex.c (__printf_fphex): When rounding up
6254 'f', use '1' as leading digit not '\1'.
6255 * stdio-common/Makefile (tests): Add bug16.
6256 * stdio-common/bug16.c: New file.
6257
6258 [BZ #2914]
6259 * sysdeps/unix/sysv/linux/gethostid.c: Don't define OLD_HOSTIDFILE
6260 and don't try to open it. The patch introducing the macro
6261 contained a bug and used the same file name as the new file
6262 instead of using /var/adm/hostid. Nobody complaint so I'm taking
6263 this out completely.
6264
6265 [BZ #2926]
6266 * assert/assert.h: Move cast to void inside ?: to quiet gcc.
6267 Patch by Jerry James <Jerry.James@usu.edu>.
6268
f1762c0c
UD
6269 * rt/Makefile (tests): Add tst-clock2.
6270 * rt/tst-clock2.c: New file.
6271
6272 [BZ #2978]
6273 * resolv/gai_notify.c (__gai_notify_only): Copy memory for thread
6274 function and its parameters and pass it to new thread.
6275 (__gai_notify): Add support for alternative waiting for completion.
6276 * resolv/gai_suspend.c (gai_suspend): Add support for alternative
6277 waiting for completion.
6278 * resolv/getaddrinfo_a.c: Likewise.
6279 * resolv/gai_misc.h (struct waitlist): Don't add cond if alternative
6280 waiting for completion is used.
6281 * resolv/gai_misc.c: Allow overwriting code to start helper thread.
6282 * resolv/gai_cancel.c: Include <gai_misc.h> not "gai_misc.h".
6283 * resolv/gai_error.c: Likewise.
6284 * resolv/gai_sigqueue.c: Likewise.
6285
83ae6b40
RM
62862006-08-02 Thomas Schwinge <tschwinge@gnu.org>
6287
0e4e62fe 6288 * hurd/getdport.c (__getdport): Don't return EBADF; instead set
f1762c0c 6289 errno to EBADF and return MACH_PORT_NULL.
83ae6b40 6290
82ee37c5
UD
62912006-06-23 Joseph Myers <joseph@codesourcery.com>
6292
6293 [BZ #2980]
f1762c0c 6294 * posix/Makefile (CFLAGS-waitid.c): Add -fasynchronous-unwind-tables.
82ee37c5
UD
6295
62962006-08-02 Ulrich Drepper <drepper@redhat.com>
6297
6298 * elf/dl-addr.c (_dl_addr): If GNU-style hash tables are present,
6299 walk them instead of the symbol table.
6300
7bb1b2c9
UD
63012006-08-01 Ulrich Drepper <drepper@redhat.com>
6302
f13bfdd0 6303 [BZ #2098]
fbbc73b3
UD
6304 * nscd/initgrcache.c (addinitgroupsX): Judge successful lookups by
6305 status of NSS calls, not the number of returned entries.
6306
a4518922
UD
6307 * sysdeps/unix/sysv/linux/syscalls.list: Remove add_key,
6308 request_key, keyctl.
7bb1b2c9 6309
b06e7e9a
UD
63102006-07-31 Ulrich Drepper <drepper@redhat.com>
6311
6312 * sysdeps/unix/sysv/linux/dl-osinfo.h: Remove unnecessary include.
6313
f1227969
UD
63142006-07-16 Jeff Bailey <jbailey@ubuntu.com>
6315
6316 * elf/tst-auditmod1.c: Fix typo in #error.
6317
82ae2712
UD
63182006-07-31 Ulrich Drepper <drepper@redhat.com>
6319
f1227969
UD
6320 * elf/tst-auditmod1.c: Remove code for unsupported architectures.
6321
82ae2712
UD
6322 * iconvdata/run-iconv-test.sh: Run cmp in C locale.
6323
a1260d92
UD
63242006-07-20 Adam Nemet <anemet@caviumnetworks.com>
6325
6326 * stdlib/test-canon.c (do_test): Close fd before unlinking file so
b06e7e9a 6327 that the directory is empty even on non-POSIX filesystems.
a1260d92 6328
d2de41fe
UD
63292006-07-31 Ulrich Drepper <drepper@redhat.com>
6330
13669f2c
UD
6331 * elf/dl-open.c (dl_open_worker): Add branch prediction.
6332
d2de41fe
UD
6333 * nis/nss_compat/compat-grp.c: Avoid unnecessary setgrent calls into
6334 the backend NSS module. If backend setgrent call failed, don't have
6335 internal_setgrent fail. Just remember this until it is needed.
6336 * nis/nss_compat/compat-pwd.c: Likewise.
6337 * nis/nss_compat/compat-spwd.c: Likewise.
6338
b894c2ea
RM
63392006-07-30 Roland McGrath <roland@redhat.com>
6340
6341 * sysdeps/unix/sysv/linux/ia64/sigsuspend.c: File removed.
6342 * sysdeps/unix/sysv/linux/x86_64/sigsuspend.c: File removed.
6343 * sysdeps/unix/sysv/linux/s390/s390-64/sigsuspend.c: File removed.
6344 * sysdeps/unix/sysv/linux/sparc/sparc64/sigsuspend.c: File removed.
6345
6346 * sysdeps/unix/sysv/linux/not-cancel.h (pause_not_cancel): New macro.
6347 (nanosleep_not_cancel): New macro.
6348 (sigsuspend_not_cancel): new macro.
6349 * sysdeps/unix/sysv/linux/sigsuspend.c [__ASSUME_REALTIME_SIGNALS]
6350 (do_sigsuspend): Define as inline.
6351 (__sigsuspend): Always use do_sigsuspend.
6352 [! NO_CANCELLATION] (__sigsuspend_nocancel): New function.
6353 * include/signal.h: Declare __sigsuspend_nocancel.
6354 * sysdeps/posix/pause.c
6355 [! NO_CANCELLATION] (__pause_nocancel): New function.
6356
6357 * include/unistd.h (__pause_nocancel): Add attribute_hidden.
6358 * include/time.h (__nanosleep_nocancel): Likewise.
6359
c10d32c8
UD
63602006-07-30 Ulrich Drepper <drepper@redhat.com>
6361
6362 * locale/programs/localedef.c (add_to_readlist): Rename local
6363 variables to avoid confusion.
6364
6365 * locale/programs/charmap.c (charmap_read): Emit error message if
6366 charmap couldn't be found or read.
6367
6822f056
UD
63682006-07-28 Ulrich Drepper <drepper@redhat.com>
6369
d5ba53f9
UD
6370 * sysdeps/unix/sysv/linux/kernel-features.h: Define
6371 __ASSUME_FUTEX_LOCK_PI.
6372 * include/time.h: Declare __nanosleep_nocancel.
6373 * include/unistd.h: Declare __pause_nocancel.
6374
6822f056
UD
6375 * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Use this instead of
6376 LDFLAGS. Add -lgcc_eh and libc_nonshared (again) to make sure we
6377 get the __stack_chk_fail_local definition when it's needed.
6378
3a975ff5
UD
63792006-07-26 Ulrich Drepper <drepper@redhat.com>
6380
6de1f625
UD
6381 * dlfcn/Makefile: Add rules to build and run bug-atexit3.
6382 * dlfcn/bug-atexit3.c: New file.
6383 * dlfcn/bug-atexit3-lib.cc: New file.
6384
3a975ff5
UD
6385 * dlfcn/dlmopen.c (dlmopen_doit): Don't allow RTLD_GLOBAL to be
6386 used when the namespace is not the base namespace.
6387
a92b1166
UD
63882006-07-26 Gavin Romig-Koch <gavin@redhat.com>
6389
6390 * stdlib/cxa_atexit.c (__new_exitfn_called): New variable.
6391 (__new_exitfn): Bump it in every successful call.
6392 * stdlib/cxa_finalize.c (__cxa_finalize): If destructor registered
6393 more exit handlers, call them right away.
6394 * stdlib/exit.h: Declare __new_exitfn_called.
6395
a08336fb
UD
63962006-07-25 Ulrich Drepper <drepper@redhat.com>
6397
bd3754dc
UD
6398 * stdlib/cxa_finalize.c (__cxa_finalize): Fix race condition when
6399 calling registered handler.
6400
a08336fb
UD
6401 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Fix comment.
6402 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
6403 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
6404 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
6405 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
6406 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
6407 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
6408 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
6409
871b9158
UD
64102006-07-10 Ulrich Drepper <drepper@redhat.com>
6411
6412 * elf/dl-lookup.c (dl_new_hash): New functions.
6413 (_dl_lookup_symbol_x): Rename hash to old_hash and don't compute
6414 value here. Compute new-style hash value. Pass new hash value
6415 and reference to variable with the old value to do_lookup_x.
6416 (_dl_setup_hash): If DT_GNU_HASH is defined, use it and not
6417 old-style hash table.
6418 (_dl_debug_bindings): Pass new hash value and reference to variable
6419 with the old value to do_lookup_x.
6420 * elf/do-lookup.h (do_lookup_x): Accept additional parameter with
6421 new-style hash value and change old-style hash value parameter to
6422 be a reference. Reoganize functions to determine whether
6423 new-style hash table is available. Only fall back on old-style
6424 table. If old-style hash value is needed, compute it here.
6425 * elf/dynamic-link.h (elf_get_dynamic_info): Relocate DT_GNU_HASH
6426 entry.
6427 * elf/elf.h: Define SHT_GNU_HASH, DT_GNU_HASH, DT_TLSDEC_PLT,
6428 DT_TLSDEC_GOT. Adjust DT_ADDRNUM.
6429 * include/link.h (struct link_map): Add l_gnu_bitmask_idxbits,
6430 l_gnu_shift, l_gnu_bitmask, l_gnu_buckets and l_gnu_chain_zero.
6431 * Makeconfig: If linker supports --hash-style option add it to all
6432 linker command lines to build DSOs.
6433 * config.make.in: Define have-hash-style.
6434 * configure.in: Test whether linker supports --hash-style option.
6435
6436 * elf/dl-misc.c (_dl_name_match_p): Make MAP parameter const.
6437 * sysdeps/generic/ldsodefs.h: Adjust prototype.
6438
a1f0de82
UD
64392006-06-27 Ulrich Drepper <drepper@redhat.com>
6440
361a3706
UD
6441 * elf/dl-load.c (open_path): Fix test to determine whether DSO is
6442 auditing.
6443
a1f0de82
UD
6444 * elf/dl-load.c (_dl_map_object): Try harder to avoid looking at
6445 RPATH of main map twice.
6446
4259230f
UD
64472006-06-22 Ulrich Drepper <drepper@redhat.com>
6448
6449 * intl/dcigettext.c (DCIGETTEXT): If _nl_find_msg returns -1 don't
6450 look further, return original strings.
6451 (_nl_find_msg): Do not return found translation if the conversion
6452 failed. Either signal the string is unusable or that something went
6453 wrong and the original should be used.
6454
64552006-06-21 Ulrich Drepper <drepper@redhat.com>
6456
6457 * string/_strerror.c (__strerror_r): Add __builtin_expect.
6458
f9b7a98b
UD
64592006-06-14 Jakub Jelinek <jakub@redhat.com>
6460
6461 [BZ #2766]
6462 * misc/insremque.c (insque): Handle prev == NULL.
6463 * misc/Makefile (tests): Add tst-insremque.
6464 * misc/tst-insremque.c: New test.
6465
ac55a25b
UD
64662006-06-17 Ulrich Drepper <drepper@redhat.com>
6467
6468 [BZ #2792]
6469 * elf/dl-deps.c (expand_dst): Rename __cnt variable to not
6470 conflict with DL_DST_REQUIRED.
6471
02f366b3
UD
64722006-06-16 Ulrich Drepper <drepper@redhat.com>
6473
6474 * nis/nis_subr.c (nis_getnames): Fix the implementation to better
6475 match what Solaris does.
6476
9009e8f8
UD
64772006-06-04 Ulrich Drepper <drepper@redhat.com>
6478
1b8373f4
UD
6479 * sysdeps/posix/spawni.c (__spawni): Use local_seteuid and
6480 local_setegid instead of seteuid and setegid.
6481 * sysdeps/generic/local-setxid.h: New file.
6482 * sysdeps/unix/sysv/linux/local-setxid.h: New file.
6483
7231452e
UD
6484 * sysdeps/posix/spawni.c (__spawni): Use non-cancelable interfaces.
6485
9009e8f8 6486 * string/Makefile (tests): Add bug-envz1.
02f366b3 6487 * string/bug-envz1.c: New file.
9009e8f8 6488
33e63e79
UD
64892006-06-02 Jakub Jelinek <jakub@redhat.com>
6490
6491 * posix/regex_internal.c (re_string_skip_chars): If no character has
6492 been converted at all, set *last_wc to WEOF. If mbrtowc failed, set wc
6493 to the byte which couldn't be converted.
6494 (re_string_reconstruct): Don't clear valid_raw_len before calling
6495 re_string_skip_chars. If wc is WEOF after re_string_skip_chars, set
6496 tip_context using re_string_context_at.
6497 * posix/Makefile: Add rules to build and run bug-regex25 test.
6498 * posix/bug-regex25.c: New test.
6499
fdc02996
UD
65002006-06-02 Ryan S. Arnold <rsa@us.ibm.com>
6501
6502 [BZ #2703]
6503 * string/envz.c (envz_strip): Correct erroneously reversed src
6504 and dest parameters to memmove() invocation.
6505
902c4291
UD
65062006-05-30 Jakub Jelinek <jakub@redhat.com>
6507
6508 * nscd/nscd.h (prune_cache): Add fd argument to prototype.
6509 * nscd/nscd.c (parse_opt): Read response from INVALIDATE request
6510 to make sure the database has been already invalidated.
6511 * nscd/cache.c (prune_cache): Add fd argument. Write response to fd
6512 after the cache has been invalidated. Use pthread_mutex_lock rather
6513 than pthread_mutex_trylock if fd != -1.
6514 * nscd/connections.c (invalidate_cache): Add fd argument, write
6515 response to fd if not calling prune_cache, pass fd to prune_cache.
6516 (handle_request): Adjust invalidate_cache caller.
6517 (nscd_run): Pass -1 as fd to prune_cache.
6518
ecc68568
UD
65192006-05-30 Ulrich Drepper <drepper@redhat.com>
6520
6521 * sysdeps/posix/getaddrinfo.c (gaiconf_init): Initialize bits in
6522 the correct place.
6523
9636a217
UD
65242006-05-29 Ulrich Drepper <drepper@redhat.com>
6525
6526 * nscd/nscd.h (struct database_dyn): Add prunelock field.
6527 * nscd/cache.c (prune_cache): Take prunelock before starting the
6528 work. Just return in case it is already taken.
cabfcde1 6529 * nscd/connections.c (dbs): Initialize .prunelock.
9636a217 6530
6bcb494a
UD
65312006-05-25 Ulrich Drepper <drepper@redhat.com>
6532
672d5a63 6533 * nis/nis_removemember.c (nis_removemember): Avoid unnecessary
ecc68568 6534 copying. No need to allocate new array for group members. Just
672d5a63
UD
6535 move the pointers and update the size.
6536
1663b44f
UD
6537 * nis/nis_addmember.c (nis_addmember): Avoid unnecessary copying.
6538 Avoid memory leak in case realloc fails. Simplification for
6539 better code generation.
6540
6541 Avoid deprecation warning because of libc_hidden_proto for
6542 inet6_option_alloc.
6543 * inet/inet6_option.c (option_alloc): Renamed from
6544 inet6_option_alloc. Made static.
9636a217 6545 (inet6_option_alloc): Now a simple wrapper around option_alloc.
1663b44f
UD
6546 (inet6_option_append): Call option_alloc.
6547 * include/netinet/in.h: Remove libc_hidden_proto for
6548 inet6_option_alloc.
6549
6bcb494a
UD
6550 * nis/nis_callback.c (__nis_create_callback): Always call xdr_free
6551 for cleanup when cb!=NULL [Coverity CID 233].
6552
aec6b246
UD
65532006-05-24 Ulrich Drepper <drepper@redhat.com>
6554
07bfff20
UD
6555 [BZ #2693]
6556 * inet/Makefile (routines): Add inet6_opt and inet6_rth.
6557 * inet/Versions (libc, GLIBC_2.5): Add inet6_opt_init,
6558 inet6_opt_append, inet6_opt_finish, inet6_opt_set_val, inet6_opt_next,
6559 inet6_opt_find, inet6_opt_get_val, inet6_rth_space, inet6_rth_init,
6560 inet6_rth_add, inet6_rth_reverse, inet6_rth_segments,
6561 and inet6_rth_getaddr.
6562 * inet/netinet/ip6.h (struct ip6_rthdr0): Make ip6r0_addr a flexible
6563 array.
6564 * inet/netinet/in.h (struct ip6_mtuinfo): Define.
6565 Mark inet6_option_* interfaces as deprecated.
6566 Declare inet6_opt_init, inet6_opt_append, inet6_opt_finish,
6567 inet6_opt_set_val, inet6_opt_next, inet6_opt_find, inet6_opt_get_val,
6568 inet6_rth_space, inet6_rth_init, inet6_rth_add, inet6_rth_reverse,
6569 inet6_rth_segments, and inet6_rth_getaddr.
6570 * inet/inet6_opt.c: New file.
6571 * inet/inet6_rth.c: New file.
6572
6573 * inet/netinet/icmp6.h: Pretty printing.
6574
aec6b246
UD
6575 [BZ #2683]
6576 * elf/dl-addr.c (_dl_addr): Don't match undefined references.
6577
2d571cd1
UD
65782006-05-23 Ulrich Drepper <drepper@redhat.com>
6579
062e719b
UD
6580 * nis/nis_lookup.c (nis_lookup): Use __prepare_niscall instead of
6581 doing it all here. When server does not know the answer do not
6582 fail immediate, try parent first.
6583
2d571cd1
UD
6584 * nis/nis_domain_of_r.c (nis_domain_of_r): Add missing buffer
6585 overflow test.
6586
a17fa610
UD
65872006-05-20 Ulrich Drepper <drepper@redhat.com>
6588
6589 * nis/nis_call.c (__prepare_niscall): New function. Split out
6590 from __do_niscall.
6591 * nis/nis_table.c (__create_ib_request): Renamed from create_ib_request
6592 and exported.
6593 (__follow_path): New function. Split out from nis_list.
6594 * nis/nis_xdr.h: Add libnsl_hidden_proto for _xdr_ib_request and
6595 _xdr_nis_result.
6596 * nis/nis_xdr.c: Add libnsl_hidden_def for _xdr_ib_request and
6597 _xdr_nis_result.
6598 * nis/libnsl.h: Declare __prepare_niscall, __create_ib_request,
6599 and __follow_path.
6600 * nis/Versions: Export __prepare_niscall, __create_ib_request,
6601 __follow_path, __do_niscall3, _xdr_ib_request, and _xdr_nis_result
6602 from libnsl for version GLIBC_PRIVATE.
6603 * nis/nisplus-parser.h: Remove _nss_nisplus_parse_pwent_chk.
6604 Remove entry parameter from _nss_nisplus_parse_pwent and
6605 _nss_nisplus_parse_grent.
6606 * nis/nss_nisplus/nisplus-parser.c: Likewise.
6607 * nis/nss_nisplus/nisplus-pwd.c: Remove support for SETENT_BATCH_READ
6608 again. Rewrite getpwent handling to not use nis_first_entry and
6609 nis_next_entry. Roll out own niscall handling.
6610 * nis/nss_nisplus/nisplus-grp.c: Likewise.
6611
6612 * sunrpc/xdr_rec.c: Fix typo in comment.
6613
429bb183
UD
66142006-05-19 Ulrich Drepper <drepper@redhat.com>
6615
1d4f062a
UD
6616 * nis/nis_call.c (__do_niscall3): Avoid code duplication in error
6617 handling.
6618
101cc598
UD
6619 * nis/nis_callback.c (internal_nis_do_callback): Don't use malloc
6620 to allocate memory for my_pollfd. Better initialization of
6621 cb_is_running. Use TEMP_FAILURE_RETRY.
6622
f50fa10c
UD
6623 * malloc/memusage.sh (memusageso): Add quotes.
6624 (memusagestat): Likewise.
6625 * debug/xtrace.sh (pcprofileso): Likewise.
6626 (pcprofiledump): Likewise.
6627 * debug/Makefile ($(objpfx)xtrace): Use $LIB in SLIBDIR
6628 replacement.
6629 * malloc/Makefile ($(objpfx)memusage): Likewise.
6630
882bfe73
UD
6631 * nis/nis_callback.c (__nis_create_callback): Calls to
6632 svcudp_bufcreate and svctcp_create can fail. Free ->xprt if
6633 asprintf call fails.
6634
429bb183
UD
6635 * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_sendreq): Make sure
6636 no uninitialized memory is passed to sendto.
6637
f90de831
UD
66382006-05-18 Ulrich Drepper <drepper@redhat.com>
6639
6640 * nis/nis_callback.c (__nis_create_callback): Use asprinf instead
6641 of snprintf+strdup. Handle OOM.
6642 * nis/nis_callback.c (__nis_create_callback): Allocate cb and
6643 cb->serv together. Remove now obsolete free calls.
6644 (__nis_destroy_callback): Remove now obsolete free call.
6645
a17fa610 66462006-05-18 David Woodhouse <dwmw2@redhat.com>
6e2a7825
UD
6647
6648 * sysdeps/posix/getaddrinfo.c: Add unique labels to the default
6649 RFC3484 precedence table for fec0::/10 and fc00::/7 (site-local
6650 and ULA respectively). Set precedence for IPv4 address to 10 as
6651 defined in RFC3484 for preferring IPv6.
6652 * posix/gai.conf: Update to match the new default tables.
6653
758b9d7e
UD
66542006-05-18 Jakub Jelinek <jakub@redhat.com>
6655
6656 * nis/nss_compat/compat-pwd.c (internal_setpwent): If nss_set*ent
6657 returned NSS_STATUS_UNAVAIL, still return NSS_STATUS_SUCCESS.
6658 * nis/nss_compat/compat-spwd.c (internal_setspent): Likewise.
6659 * nis/nss_compat/compat-grp.c (internal_setgrent): Likewise.
6660
6661 * nis/nss_compat/compat-initgroups.c (nss_setgrent, nss_endgrent):
6662 Removed.
6663 (init_nss_interface): Remove initialization of these variables.
6664
66652006-05-18 Ulrich Drepper <drepper@redhat.com>
6666
6667 * nis/nis_call.c (rec_dirsearch): Little optimization: pull
6668 nis_free_directory forward to avoid duplication.
6669
388c779e
UD
66702006-05-17 Ulrich Drepper <drepper@redhat.com>
6671
5f1724bf
UD
6672 * nis/nis_call.c (rec_dirsearch): Handle __nis_finddirectory and
6673 rec_dirsearch returning NULL.
6674 (first_shoot): Handle __nis_finddirectory returning NULL.
6675 (__nisfind_server): Fix leak when rec_dirsearch returns NULL.
6676
388c779e
UD
6677 * sysdeps/unix/sysv/linux/sys/inotify.h: Define IN_CLOSE, IN_MOVE,
6678 IN_ONLYDIR, IN_DONT_FOLLOW, and IN_MASK_ADD.
6679
360d5cf4
UD
66802006-05-17 Jakub Jelinek <jakub@redhat.com>
6681
6682 * sunrpc/key_call.c (getkeyserv_handle): Call auth_destroy if
6683 pid changed.
6684
88dbff8c
UD
66852006-05-15 Ulrich Drepper <drepper@redhat.com>
6686
6f8a7dff
UD
6687 * include/rpc/pmap_prot.h: Mark all functions as hidden.
6688
6689 * nscd/nscd_initgroups.c: Mark __gr_map_handle as hidden.
6690 * nscd/nscd_getgr_r.c: Likewise.
6691
6692 * include/rpc/pmap_rmt.h: Mark all functions as hidden.
6693
6694 * nscd/nscd_getai.c (__hst_map_handle): Mark as hidden.
6695 * nscd/nscd_gethst_r.c (__hst_map_handle): Likewise.
6696
6697 * stdlib/longlong.h (__clz_tab): Mark as hidden.
6698
6699 * iconv/gconv_int.h: Mark __gconv_lock as hidden.
6700
360d5cf4 6701 * include/rpc/key_prot.h: Mark all _internal functions as hidden.
8263ed62
UD
6702
6703 * include/rpc/auth.h: Mark xdr_des_block_internal and
6704 xdr_opaque_auth_internal as hidden.
6705
6706 * sysdeps/unix/sysv/linux/getdents.c: Mark __have_no_getdents64 as
6707 hidden.
6708
360d5cf4 6709 * include/rpc/xdr.h: Mark all _internal functions as hidden.
8263ed62 6710
02264020
UD
6711 * misc/getusershell.c (okshells): Don't use static initializers,
6712 do it dynamically.
6713
fd5ea238
UD
6714 * stdlib/fmtmsg.c (keywords): Change type of len element to
6715 uint32_t to not waste space on 64bit machines.
6716
9446614c
UD
6717 * locale/setlocale.c: Change _nl_category_names into a string.
6718 Add new _nl_category_name_idxs. Change all users.
6719 * locale/localeinfo.h: Adjust declaration of _nl_category_names.
6720 Declare _nl_category_name_idxs.
6721 * locale/findlocale.c: Adjust for _nl_category_names change.
6722 * locale/loadlocale.c: Likewise.
6723 * locale/newlocale.c: Likewise.
6724 * intl/dcigettext.c: Likewise.
6725
88dbff8c
UD
6726 * iconv/gconv_conf.c (add_alias): Move actual alias handling to...
6727 (add_alias2): ...here. New function.
6728 (__gconv_read_conf): Simplify builtin alias handling.
6729 (builtin_aliases): Convert to string to avoid relocations.
6730 * iconv/gconv_builtin.h: Add comment about correct formatting.
6731
4442d58f
UD
67322006-05-15 Jakub Jelinek <jakub@redhat.com>
6733
6734 * resolv/res_debug.c (loc_ntoa): Make error const.
6735
67362006-05-14 Andreas Schwab <schwab@suse.de>
6737
6738 * math/complex.h [__LDBL_COMPAT]: Use __REDIRECT_NTH.
6739
67402006-05-12 Jakub Jelinek <jakub@redhat.com>
6741
6742 * sysdeps/unix/sysv/linux/sched_getaffinity.c: Include sys/param.h.
6743 (__sched_getaffinity_new): Don't crash if cpusetsize is smaller than
6744 sizeof (cpu_set_t).
6745
a51752b6
UD
67462006-05-11 Ulrich Drepper <drepper@redhat.com>
6747
5d3fd1f6
UD
6748 * resolv/res_debug.c (loc_ntoa): Define error as array, not pointer.
6749
08cfb839
UD
6750 * include/arpa/nameser.h: Declare _ns_flagdata as hidden.
6751
4b481a15
UD
6752 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_master.
6753 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_master.
6754
6755 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypbind_resp.
6756 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypbind_resp.
6757
6758 * nis/nis_xdr.c: Add libnsl_hidden_def for xdr_cback_data.
6759 * include/rpcsvc/nis_callback.h: Add libnsl_hidden_proto for
6760 xdr_cback_data.
6761
6762 * nis/ypupdate_xdr.c: Add libnsl_hidden_def for xdr_ypupdate_args.
6763 * include/rpcsvc/ypupd.h: Add libnsl_hidden_proto for
6764 xdr_ypupdate_args.
6765
6766 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_order.
6767 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_order.
6768
6769 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_maplist.
6770 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_maplist.
6771
6772 * nis/nis_xdr.c: Add libnsl_hidden_def for xdr_obj_p.
6773 * include/rpcsvc/nis_callback.h: New file.
6774
6775 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_val.
6776 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_val.
6777
6778 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypreq_nokey.
6779 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypreq_nokey.
6780
6781 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypmaplist.
6782 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypmaplist.
6783
6784 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypreq_nokey.
6785 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypreq_nokey.
6786
b1ad49c6
UD
6787 * nis/ypupdate_xdr.c: Add libnsl_hidden_def for xdr_ypdelete_args.
6788 * include/rpcsvc/ypupd.h: Add libnsl_hidden_proto for
6789 xdr_ypdelete_args.
6790
cd5f7829
UD
6791 * nis/nis_xdr.h: Mark all functions as hidden. Remove
6792 __BEGIN_DECLS and __END_DECLS, the header is not installed.
6793
a51752b6
UD
6794 * nis/nis_error.c: Remove table of strings. Use position
6795 independent mechanism.
6796 * nis/nis_error.h: New file.
6797
3d237e42
UD
67982006-05-11 Jakub Jelinek <jakub@redhat.com>
6799
6800 * locale/programs/ld-time.c (time_finish): If wide era name or
6801 format aren't provided, set both wname and wformat to L"".
6802
d6c159fe
UD
68032006-05-10 Ulrich Drepper <drepper@redhat.com>
6804
0088b04e
UD
6805 * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Only store
6806 results if the call was succesful.
6807
d6c159fe
UD
6808 * nis/nss-nis.h: Mark __yperr2nss_tab and __yperr2nss_count as hidden.
6809
6810 * nis/nss-nisplus.h: Mark __niserr2nss_tab and __niserr2nss_count
6811 as hidden.
6812
5c5acdf0
UD
68132006-05-10 Jakub Jelinek <jakub@redhat.com>
6814
6815 * misc/sys/queue.h: Remove uses of all QUEUEDEBUG_* macros.
6816
16d620db
UD
68172006-05-10 Ulrich Drepper <drepper@redhat.com>
6818
6819 * posix/wordexp.c (parse_glob): No need to check ifs for NULL, the
6820 caller makes sure this is not the case.
6821 (wordexp): Simplify ifs_white creation. [Coverity CID 231]
6822
e7c8359e
UD
68232006-05-09 Ulrich Drepper <drepper@redhat.com>
6824
ecf359c6
UD
6825 * posix/wordexp.c: Remove numerous NULL pointer tests before FREE
6826 calls.
6827
400cc70a
UD
6828 * io/ftw.c (open_dir_stream): Return right away if REALLOC fails.
6829 [Coverity CID 229, 230]
6830
6831 * argp/argp-help.c (hol_entry_help): Handle STATE==NULL in ARG and
6832 DGETTEXT calls.
6833 (hol_help): Likewise. [Coverity CID 226, 227]
6834
6835 * string/argz-replace.c (__argz_replace): Unconditionally call
6836 free on SRC. [Coverity CID 225]
6837
6838 * nis/nis_creategroup.c (nis_creategroup): No need to duplicate
6839 the return value of __nis_default_owner and __nis_default_group,
6840 it has been especially allocated. [Coverity CID 224]
6841
51e59260
UD
6842 * nis/nis_defaults.c (searchXYX): New functions. Used by both
6843 searchgroup and searchowner. Significantly simplified.
6844 (__nis_default_owner): Remove duplication. Do not locally copy the
6845 string before duplicating it.
6846 (__nis_default_group): Likewise.
6847
6848 * nis/nis_lookup.c (nis_lookup): After calling nis_free_directory,
6849 we must clear the variable before calling __nisfind_server.
6850
6851 * nis/nis_lookup.c (nis_lookup): Always free memory allocated with
6852 nis_getnames. [Coverity CID 223]
6853
6854 * locale/programs/locfile.c (locfile_read): Use alloca instead of
6855 xmalloc to allocate local repertoire name. [Coverity CID 222]
6856
6857 * iconv/iconv_charmap.c (use_to_charmap): No need to dynamically
6858 allocate memory for the input to add_bytes. [Coverity CID 221]
6859
e7c8359e 6860 * posix/wordexp.c (w_addword): Free word if realloc fails and it
51e59260 6861 was allocated here. [Coverity CID 219, 220]
e7c8359e
UD
6862
6863 * posix/getconf.c (print_all): Free confstr data after printing.
6864 [Coverity CID 218]
6865
6866 * sysdeps/posix/getaddrinfo.c (gaih_inet): Free canon string if
6867 list allocation fails. [Coverity CID 215]
6868
6869 * nss/nsswitch.c (__nss_configure_lookup): Fix loop end condition.
6870 [Coverity CID 213]
6871
6872 * argp/argp-help.c (hol_entry_cmp): Don't call canon_doc_option if
6873 string is NULL. [Coverity CID 212]
6874 * argp/Makefile: Add rules to build and run bug-argp1.
6875 * argp/bug-argp1.c: New file.
6876
6877 * io/ftw.c (ftw_dir): Use __rawmemchr instead of strchr to find
6878 end of string.
6879 * stdlib/canonicalize.c (__realpath): Likewise.
6880
6881 * locale/programs/ld-time.c (time_finish): Don't dereference NULL
6882 pointer. [Coverity CID 206]
6883
6884 * elf/dl-dst.h (DL_DST_REQUIRED): Be prepared for missing link map
6885 in statically linked code.
6886 * elf/dl-load.c (_dl_dst_substitute): When replacing ORIGIN in
6887 statically built code, be prepared to have no link map.
6888 [Coverity CID 205]
6889
6890 * argp/argp-help.c (fill_in_uparams): Handle STATE==NULL in
6891 dgettext calls. [Coverity CID 204]
6892
6893 * argp/argp-help.c (struct uparams): Remove valid member. Change
6894 the one user.
6895 (uparam_names): Reduce size. Avoid relative relocations.
6896 Moved to read-only segment.
6897 (fill_in_uparams): Update for new layout.
6898
6899 * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs): Parameter can be
6900 assumed to always be != NULL. [Coverity CID 202]
6901
6902 * argp/argp-help.c (hol_entry_help): Remove some dead code
6903 [Coverity CID 200].
6904
6905 * nis/nss_nis/nis-service.c (_nss_nis_getservbyport_r): Optimize
6906 away a few more unconditional yperr2nss calls.
6907 (_nss_nis_getservbyname_r): Likewise.
6908
acf82eaf
UD
69092006-05-06 Ulrich Drepper <drepper@redhat.com>
6910
4461cf48
UD
6911 * sysdeps/generic/ldsodefs.h: Remove support for non-core
6912 architectures.
6913
b74a8c7f
UD
6914 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Make sure
6915 that unused memory passed to sendto is nevertheless initialized.
6916
acb98cb5
UD
6917 [BZ #2499]
6918 * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Avoid
6919 possibly unaligned memory accesses.
6920
bce16467
UD
6921 * include/arpa/nameser.h: Also optimize NS_PUT16 and NS_PUT32.
6922 * resolv/res_mkquery.c: Use NS_PUT16 and NS_PUT32 instead of __putshort
6923 and __putlong respectively. Correct buffer overflow check for
6924 NS_NOTIFY_OP.
6925
6926 * resolv/res_send.c (send_vc): Use ns_put16 instead of putshort.
6927
8e45b1ac
UD
6928 * resolv/res_send.c (res_queriesmatch): Fix typo in comment.
6929 (send_dg): Rewrite error handling to be more compact and avoid
6930 double recomputation of timeouts. Pass MSG_NOSIGNAL to send.
6931
697e1628
UD
6932 * include/arpa/nameser.h: Add optimizations for NS_GET16 and NS_GET32.
6933
6934 * resolv/res_send.c (res_nameinquery): Use NS_GET16 directly
6935 instead of ns_get16.
6936 (res_queriesmatch): Likewise. Minor optimization.
6937
acf82eaf
UD
6938 [BZ #2499]
6939 * resolv/res_query.c (__libc_res_nquery): If answerp != NULL,
6940 __libc_res_nsend might reallocate the buffer for the answer. In
6941 this case we have to reload the HP pointer.
6942
7bfee654
UD
69432006-05-05 Ulrich Drepper <drepper@redhat.com>
6944
694b49ca
UD
6945 * stdio-common/vfscanf.c (memory_error): Remove definition. Add
6946 some branch prediction hints.
6947
7bfee654
UD
6948 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Define SPLICE_F_*.
6949 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
6950 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
6951 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
6952 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
6953 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
6954 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
6955 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
6956
308bb2d5
UD
69572006-05-05 Martin Schwidefsky <schwidefsky@de.ibm.com>
6958
6959 * sysdeps/s390/s390-32/elf/start.S: Replace pc relative relocation
6960 by a GOT relocation to make Scrt1.o position independent.
6961 * sysdeps/s390/s390-64/elf/start.S: Likewise.
6962
6963 * sysdeps/unix/sysv/linux/s390/s390-32/syscall.S: Add support for
6964 six system call parameters.
6965 * sysdeps/unix/sysv/linux/s390/s390-64/syscall.S: Likewise.
6966
cdb9c321
UD
69672006-05-05 Ulrich Drepper <drepper@redhat.com>
6968
6969 * sunrpc/svcauth_des.c (cache_init): Use calloc instead of
6970 malloc&bzero.
6971
6972 * sunrpc/svc_udp.c (BZERO): Remove definition.
6973 (CALLOC): Define.
6974 (svc_enablecache): Use CALLOC instead of ALLOC&BZERO.
6975
6976 * sunrpc/des_impl.c: Remove ALT_ECB support. We never used it.
6977 (des_SPtrans): Use uint32_t type.
6978 (des_skb): Likewise.
6979
6980 * sunrpc/xdr_ref.c (xdr_reference): Use calloc instead of malloc&bzero.
6981
fff04b32
UD
69822006-05-05 Jakub Jelinek <jakub@redhat.com>
6983
6984 [BZ #2509]
6985 * stdio-common/tst-printf.sh: Adjust for tst-printf.c change even
6986 on 32-bit arches.
6987
69882006-05-05 Ulrich Drepper <drepper@redhat.com>
6989
6990 * locale/programs/ld-address.c (address_finish): Fix one more
cdb9c321 6991 place where the iso639 array might be accessed beyond the limits.
fff04b32 6992
077a30bc 69932006-05-04 Ulrich Drepper <drepper@redhat.com>
77dd4c3b 6994
f2d5cf50
UD
6995 * nis/nis_table.c (nis_list): Avoid clearing res twice before
6996 filling it for the first time.
6997
3e4370cf
UD
6998 * nis/nis_table.c (get_tablepath): Renamed from __get_tablepath.
6999 Adjust all callers.
7000 Free res object content before returning.
7001
5e65a53d
UD
7002 * sunrpc/xdr_array.c (xdr_array): Use calloc instead of malloc&bzero.
7003
48be3114
UD
7004 * sunrpc/key_call.c (__rpc_thread_key_cleanup): Also free
7005 client->cl_auth.
7006
ca4fce0e
UD
7007 * sunrpc/rpc_thread.c (__rpc_thread_destroy): Don't skip entire
7008 cleanup for initial thread, just the free call on TVP.
7009
077a30bc 7010 * nscd/gai.c (__getline): Define.
3b7a95fb 7011
5d37289a 7012
3f87d901 7013See ChangeLog.16 for earlier changes.
This page took 1.114995 seconds and 5 git commands to generate.