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