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