1 2007-10-21 Andreas Jaeger <aj@suse.de>
3 * manual/texinfo.tex: Update to latest version.
5 * manual/sysinfo.texi (System Parameters): Fix Formatting.
7 * manual/arith.texi (Status bit operations): Fix formatting.
9 * manual/errno.texi (Error Messages): Fix formatting.
11 * manual/sysinfo.texi (System Parameters): Fix formatting.
13 * manual/libc.texinfo: Update VERSION and UPDATED.
15 2007-10-17 Jakub Jelinek <jakub@redhat.com>
17 * sysdeps/x86_64/memset.S (bzero): Renamed to __bzero. Add
20 2007-10-17 Roland McGrath <roland@frob.com>
22 * sysdeps/mach/hurd/bits/fcntl.h [__USE_GNU__] (F_DUPFD_CLOEXEC): New.
23 * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Implement it.
25 2007-10-17 Ulrich Drepper <drepper@redhat.com>
27 * version.h (VERSION): Bump to 2.7.
28 * include/features.h (__GLIBC_MINOR__): Bump to 7.
31 * time/tzset.c (__tz_convert): Don't force testing for a change of
32 TZ if not called from localtime. But then also see whether the
33 file changed, in case __use_tzfile is set.
35 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define F_DUPFD_CLOEXEC.
36 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
37 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
38 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
39 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
40 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
41 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
42 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
44 2007-10-17 Jakub Jelinek <jakub@redhat.com>
46 * sysdeps/posix/getaddrinfo.c (getaddrinfo): When sorting addresses
47 and admin selects to be able to replace the gai.conf file, lock
48 data structures around the qsort call.
50 2007-10-17 Ulrich Drepper <drepper@redhat.com>
52 * sysdeps/x86_64/cacheinfo.c: Comment out code added in support of
54 * sysdeps/x86_64/memset.S: Revert to old version for now. The cost is
55 too high for the improvements. Implement bzero unconditionally for
58 2007-10-17 Ulrich Drepper <drepper@redhat.com>
59 Jakub Jelinek <jakub@redhat.com>
61 * time/tzfile.c (__tzfile_read): Read POSIX TZ string if available
62 even when time_t is 32-bit.
63 (__tzfile_compute): Override POSIX TZ string STD/DST zone names if
64 timezone data read by __tzfile_default. Ensure __tzname[0] is
65 always set after the search.
67 2007-10-16 Ulrich Drepper <drepper@redhat.com>
69 * time/tzfile.c (__tzfile_read): Help the compiler recognize
70 unreachable code on 32-bit machines.
72 2007-10-16 Jakub Jelinek <jakub@redhat.com>
75 * time/strftime_l.c: Include stdbool.h.
76 (my_strftime): New wrapper, old function renamed to...
77 (__strftime_internal): ... new function. Add tzset_called
78 argument, pass it down to recursive calls, don't call tzset ()
79 if already true, set to true after call to tzset ().
81 2007-10-16 Ulrich Drepper <drepper@redhat.com>
83 * time/tzfile.c (__tzfile_read): Take extra memory requested by caller
84 into account when copying TZ string.
86 2007-10-16 Jakub Jelinek <jakub@redhat.com>
88 * time/tzfile.c (__tzfile_compute): For use_last case set i to
89 num_transition rather than num_transitions - 1.
91 2007-10-16 Jakub Jelinek <jakub@redhat.com>
93 * sysdeps/x86_64/memset.S (memset): Fix sse2_nt_move
96 * sysdeps/x86_64/memset.S: Jump from bzero to memset using
97 a local label rather than HIDDEN_JUMPTARGET.
99 2007-10-15 Ulrich Drepper <drepper@redhat.com>
101 * sysdeps/x86_64/cacheinfo.c (__x86_64_shared_cache_size): Define.
102 (init_cacheinfo): Initialize it.
103 * sysdeps/x86_64/memset.S: Use __x86_64_shared_cache_size.
105 Remove non-glibc code.
106 * sysdeps/x86_64/bzero.S: Make an empty file.
108 2007-10-15 H.J. Lu <hongjiu.lu@intel.com>
110 * sysdeps/x86_64/cacheinfo.c
111 (__x86_64_preferred_memory_instruction): New.
112 (init_cacheinfo): Initialize __x86_64_preferred_memory_instruction.
114 * sysdeps/x86_64/memset.S: Rewrite.
116 2007-10-15 Roland McGrath <roland@redhat.com>
118 * po/libc.pot: Regenerated.
120 2007-10-15 Ulrich Drepper <drepper@redhat.com>
122 * nss/getXXbyYY_r.c (REENTRANT_NAME): Mangle startp and start_fct
126 * resolv/nss_dns/dns-host.c (getanswer_r): Fail with
127 NSS_STATUS_NOTFOUND if the server replied with only a CNAME and no
128 address record to T_A/T_AAAA requests.
130 2007-10-14 Ulrich Drepper <drepper@redhat.com>
132 * posix/glob.c: Reimplement link_exists_p to use fstatat64.
134 * posix/glob.c: Add some branch prediction throughout.
136 * nscd/nscd_getgr_r.c (nscd_getgr_r): Store result of successful
139 * sysdeps/posix/getaddrinfo.c (struct sort_result): Add
141 (rfc3484_sort): Make sure that even if qsort doesn't support
142 stable sorting out sorting here is stable by comparing service_order.
143 (getaddrinfo): Initialize service_order.
144 * posix/tst-rfc3484.c (do_test): Adjust for addition of
145 service_order field to sorting structure.
146 * posix/tst-rfc3484-2.c (do_test): Likewise.
148 * include/time.h: Declare __tzset_parse_tz and __tzset_compute.
149 * time/tzset.c (tzset_internal): Break TZ string parsing out into
150 __tzset_parse_tz and updating of daylight, timezone, tzname into
152 (__tz_compute): Renamed from tz_compute. Take additional parameters.
153 (__tz_convert): Updating of tm_isdst, tm_zone, and tm_gmtoff now
154 happens in __tz_compute.
155 * time/tzfile.c (__tzfile_read): Also read TZ string.
156 (find_transition): Fold into __tzfile_compute.
157 (__tzfile_compute): For times beyond the last transition try to
159 * timezone/tst-timezone.c: Information in daylight and tzname does
160 change for Asia/Tokyo timezone with more concrete information.
163 * include/stdio.h: Add libc_hidden_proto for ftello.
164 * libio/ftello.c: Add libc_hidden_def.
167 * time/tzfile.c (__tzfile_compute): Compute tzname[] values based
168 on the specified time and not the last entries in the file. Move
169 code to determine tzname[] to...
170 (find_transition): ...here. Add ugly guess for times before the
173 2007-10-13 Ulrich Drepper <drepper@redhat.com>
176 * nscd/nscd_getai.c (__nscd_getai): Set errno to 0 in case we found
178 * nscd/nscd_getgr.c (nscd_getgr_r): Likewise.
179 * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
180 * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
181 * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
183 * nscd/nscd_getgr_r.c (nscd_getgr_r): Optimize a bit: use simpler
184 read mechanism when there are no group members and avoid no-op
185 read syscall in this case.
188 * nscd/nscd_helper.c (wait_on_socket): Take timeout as parameter.
189 (__readall): If reading failed due to EAGAIN error wait a bit
190 and possibly try again.
191 (__readvall): Likewise.
193 2007-10-13 Bruno Haible <bruno@clisp.org>
195 * intl/dcigettext.c (_nl_find_msg): Unlock the conversions_lock
196 when we cannot recode the message.
198 2007-10-13 Ulrich Drepper <drepper@redhat.com>
201 * libio/__freading.c (__freading): Don't return true for
202 write-only streams. For read/write streams, check whether we
203 performed a read operation already.
204 * libio/Makefile (tests): Add tst-ext2.
205 * libio/tst-ext2.c: New file.
207 2007-10-12 Ulrich Drepper <drepper@redhat.com>
209 * locale/programs/repertoire.c (repertoire_read): Always free
210 memory for repertoire file name [Coverity CID 270].
212 * elf/cache.c (save_aux_cache): Free memory allocated for
213 temporary file name [Coverity CID 267].
215 2007-10-12 Jakub Jelinek <jakub@redhat.com>
217 * misc/Makefile (headers): Add bits/error.h.
219 2007-10-12 Ulrich Drepper <drepper@redhat.com>
221 * posix/fnmatch_loop.c: Take rule index returned as part of
222 findidx return value into account when accessing weights.
223 * posix/regcomp.c: Likewise.
224 * posix/regexec.c: Likewise.
226 * locale/programs/ld-collate.c (collate_read): Optimize a bit.
227 (skip_to): Fix problems with parameter of elifdef/elifndef.
229 2007-10-11 Ulrich Drepper <drepper@redhat.com>
231 * iconv/gconv_simple.c: Add some branch prediction.
233 2007-10-12 Jakub Jelinek <jakub@redhat.com>
235 * locale/programs/ld-collate.c (collate_read): If ignore_content
236 and nowtok is tok_define, eat any tok_eol tokens.
238 2007-10-11 Jakub Jelinek <jakub@redhat.com>
240 * sysdeps/gnu/netinet/tcp.h: Include sys/socket.h if __USE_MISC.
241 (struct tcp_md5sig): Change tcpm_addr type to struct sockaddr_storage.
243 * inet/netinet/in.h: Don't include bits/socket.h.
244 * sysdeps/unix/sysv/linux/bits/socket.h: Only check _SYS_SOCKET_H
246 * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Likewise.
248 2007-10-10 Ulrich Drepper <drepper@redhat.com>
250 * locale/programs/locfile-token.h: Remove tok_elif, add tok_elifdef
252 * locale/programs/locfile-kw.gperf: Likewise.
253 * locale/programs/ld-collate.c: Implement primitive preprocessor.
255 2007-10-10 Jakub Jelinek <jakub@redhat.com>
257 * stdio-common/printf-parse.h: Include string.h and wchar.h.
258 (__find_specwc): Change into __extern_always_inline function.
259 (__find_specmb): Likewise. Remove ps argument. Use __strchrnul.
260 (__parse_one_specmb): Remove ps argument.
261 * stdio-common/vfprintf.c (vfprintf): Remove mbstate variable.
262 Adjust __find_specmb and __parse_one_specmb callers.
263 * stdio-common/printf-prs.c (parse_printf_format): Likewise.
264 * stdio-common/printf-parsemb.c (__find_specwc, __find_specmb):
266 (__parse_one_specmb): Remove ps argument, adjust __find_specmb
269 2007-10-09 Ulrich Drepper <drepper@redhat.com>
271 * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Work around problem
272 with some Pentium Ds.
274 2007-10-08 Ulrich Drepper <drepper@redhat.com>
276 * sysdeps/unix/sysv/linux/eventfd_read.c (eventfd_read): Use
278 * sysdeps/unix/sysv/linux/eventfd_write.c (eventfd_write): Use
281 2007-10-07 Ulrich Drepper <drepper@redhat.com>
284 * locale/C-time.c: Set week_1stday data to 19971201.
285 * locale/programs/ld-time.c (time_finish): Default for
286 first_workday is Monday.
289 * wcsmbs/wchar.h: Move many C99 functions into std namespace.
292 * posix/glob.c (glob): Recognize patterns starting \/.
293 * posix/tst-gnuglob.c (find_file): Handle absolute path names.
294 (main): Add test for pattern starting \/.
296 * misc/error.h: Use __const instead of const.
297 * misc/bits/error.h: Likewise.
299 2007-10-07 Andreas Jaeger <aj@suse.de>
301 * include/bits/error.h: New file.
303 * misc/bits/error.h (error_at_line): Fix prototype.
305 2007-10-06 Ulrich Drepper <drepper@redhat.com>
308 * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix a few
309 more little bugs in creating the stack frame when pltexit has to
312 * nscd/nscd_helper.c (__nscd_cache_search): Prevent endless loops.
313 * nscd/connections.c (verify_persistent_db): Recognize circular lists.
316 * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Fix *signgamp for -0.0.
317 * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
318 * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
319 * math/libm-test.inc: Add test for this case.
322 * sunrpc/svc.c (struct svc_callout): Add sc_mapped element.
323 (svc_register): Initialize sc_mapped. Set to TRUE if call to
324 map service succeeded.
325 (svc_is_mapped): New function.
326 (svc_unregister): Use it before trying to unmap service.
328 2007-10-05 Ulrich Drepper <drepper@redhat.com>
330 * timezone/zic.c: Update from tzcode2007h.
333 * timezone/africa: Update from tzdata2007h.
334 * timezone/antarctica: Likewise.
335 * timezone/asia: Likewise.
336 * timezone/australasia: Likewise.
337 * timezone/europe: Likewise.
338 * timezone/leapseconds: Likewise.
339 * timezone/northamerica: Likewise.
340 * timezone/southamerica: Likewise.
341 * timzeone/zone.tab: Likewise.
344 * elf/do-lookup.h (do_lookup_x): Don't ignore STT_COMMON symbols.
347 * string/bits/string2.h (__strdup): Cast parameters to calloc to
348 avoid warning with -Wconversion.
349 (__strndup): Likewise.
350 Half the patch by Christian Iseli <christian.iseli@licr.org>.
353 * nscd/connections.c (restart): Don't resync if database is
354 disabled. Patch mostly by Brian De Wolf <bldewolf@csupomona.edu>.
356 * sysdeps/gnu/netinet/tcp.h: Define TCP_MD5SIG, TCP_MD5SIG_MAXKEYLEN,
357 struct tcp_md5sig. Extend struct tcp_info according to recent kernels.
359 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add eventfd,
360 evetnfd_read, eventfd_write.
361 * sysdeps/unix/sysv/linux/eventfd.c: New file.
362 * sysdeps/unix/sysv/linux/eventfd_read.c: New file.
363 * sysdeps/unix/sysv/linux/eventfd_write.c: New file.
364 * sysdeps/unix/sysv/linux/sys/eventfd.h: New file.
365 * sysdeps/unix/sysv/linux/Versions: Export eventfd, eventfd_read,
366 eventfd_write for GLIBC_2.7.
368 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add signalfd.
369 * sysdeps/unix/sysv/linux/signalfd.c: New file.
370 * sysdeps/unix/sysv/linux/sys/signalfd.h: New file.
371 * sysdeps/unix/sysv/linux/Versions: Export signalfd for GLIBC_2.7.
373 2007-10-04 Jakub Jelinek <jakub@redhat.com>
375 * stdlib/msort.c: Include stdint.h.
376 (struct msort_param): New type.
377 (msort_with_tmp): Use struct msort_param pointer for unchanging
378 parameters. Add optimized handling for several common sizes
379 and indirect sorting mode.
380 (qsort): Adjust msort_with_tmp callers. For big S use indirect
382 Suggested by Belazougui Djamel .
384 * stdlib/Makefile (tests): Add tst-qsort2.
385 * stdlib/tst-qsort2.c: New test.
387 2007-10-04 Ulrich Drepper <drepper@redhat.com>
389 * login/login_tty.c (login_tty): The Linux kernel can return EBUSY
390 for dup2 in case another thread races with the current one. Retry
393 * misc/error.h: Remove support for use outside of libc. We have to
394 include <features.h> now. Include <bits/error.h> if possible.
395 * misc/bits/error.h: New file.
397 2007-10-03 Jakub Jelinek <jakub@redhat.com>
399 * string/bits/string3.h (memcpy, memmove, mempcpy, memset, bcopy,
400 bzero, strcpy, stpcpy, strncpy, strcat, strncat): Use
401 __extern_always_inline functions unconditionally, drop macros.
403 * misc/sys/cdefs.h (__REDIRECT_LDBL, __REDIRECT_NTH_LDBL): New macros.
404 * wcsmbs/bits/wchar2.h (__swprintf_alias, __vswprintf_alias): Use
405 __REDIRECT_NTH_LDBL macro rather than __REDIRECT_NTH.
407 * misc/sys/cdefs.h (__extern_always_inline): For GCC 4.3+
408 add __artificial__ attribute.
410 2007-10-02 Ulrich Drepper <drepper@redhat.com>
412 * string/strcoll_l.c (STRCOLL): Correct handling of switching from
413 backward to forward direction.
415 * string/strcoll_l.c (STRCOLL): Correct test for alloca use.
418 * locale/programs/ld-collate.c (collate_finish): Compare against last
419 used section which is known to have rules defined.
420 (collate_read): After order_start, correctly record order of sections
421 and queue sections up.
423 2007-10-01 Ulrich Drepper <drepper@redhat.com>
426 * malloc/malloc.c (mremap_chunk): Avoid resizing of new block has
427 the same number of pages.
428 Patch by Tomash Brechko <tomash.brechko@gmail.com>.
430 * locale/programs/ld-collate.c (collate_read): After initial copy
431 statement, continue in state 0.
433 * include/stdio_ext.h (__fsetlocking): Define as macro.
435 2007-09-30 Ulrich Drepper <drepper@redhat.com>
437 * locale/programs/ld-collate.c (collate_finish): Compare all bytes
440 * po/pt_BR.po: Fix typo.
442 2007-09-29 Ulrich Drepper <drepper@redhat.com>
444 * iconvdata/Makefile (modules): Add ISO8859-9E.
445 (distribute): Add iso8859-9e.c.
446 (gen-8bit-gap-modules): Add iso8859-9e.
447 * iconvdata/iso8859-9e.c: New file.
448 * iconvdata/gconv-modules: Add entries for ISO-8859-9E.
449 * iconvdata/TESTS: Likewise.
450 * iconvdata/tst-tables.sh: Likewise.
452 * iconvdata/koi8-r.c (HAS_HOLES): Define to 0.
454 * locale/iso-639.def: Add several new entries.
456 2007-09-24 Jakub Jelinek <jakub@redhat.com>
458 * sysdeps/generic/ldsodefs.h (struct dl_scope_free_list): Store
459 void * pointers instead of struct link_map **.
460 (_dl_scope_free): Change argument type to void *.
461 * include/link.h (struct link_map): Change type of l_reldeps
462 to struct link_map_reldeps, move l_reldepsact into that
464 * elf/dl-deps.c: Include atomic.h.
465 (_dl_map_object_deps): Only change l->l_initfini when it is
466 fully populated, use _dl_scope_free for freeing it. Optimize
467 removal of libs from reldeps by using l_reserved flag, when
468 some removal is needed, allocate a new list instead of
469 reallocating and free the old with _dl_scope_free. Adjust
470 for l_reldeps and l_reldepsact changes.
471 * elf/dl-lookup.c (add_dependency): Likewise. Reorganize to allow
472 searching in l_initfini and l_reldeps without holding dl_load_lock.
473 * elf/dl-fini.c (_dl_sort_fini): Adjust for l_reldeps and
474 l_reldepsact changes.
475 * elf/dl-close.c (_dl_close_worker): Likewise.
476 * elf/dl-open.c (_dl_scope_free): Change argument type to void *.
478 2007-09-28 Ulrich Drepper <drepper@redhat.com>
480 * iconvdata/Makefile (modules): Add KOI8-RU.
481 (distribute): Add koi8-ru.c.
482 (gen-8bit-gap-modules): Add koi8-ru.
483 * iconvdata/koi8-ru.c: New file.
484 * iconvdata/gconv-modules: Add entries for KOI8-RU.
485 * iconvdata/TESTS: Likewise.
486 * iconvdata/tst-tables.sh: Likewise.
488 * iconvdata/koi8-r.c (HAS_HOLES): Define to 0.
490 2007-09-26 Jakub Jelinek <jakub@redhat.com>
492 * misc/sys/cdefs.h (__warndecl, __errordecl): For GCC 4.3+ define
493 with __warning__/__error__ attributes.
494 (__warnattr): Define.
495 * stdlib/bits/stdlib.h (__realpath_chk_warn, __ptsname_r_chk_warn,
496 __mbstowcs_chk_warn, __wcstombs_chk_warn): New aliases with
498 (realpath, ptsname_r, mbstowcs, wcstombs): Call __*_chk_warn instead
499 of __*_chk if compile time detectable overflow is found.
500 * libio/bits/stdio2.h (__fgets_chk_warn, __fread_chk_warn,
501 __fgets_unlocked_chk_warn, __fread_unlocked_chk_warn): New aliases
503 (fgets, fread, fgets_unlocked, fread_unlocked): Call __*_chk_warn
504 instead of __*_chk if compile time detectable overflow is found.
505 (__gets_alias): Rename to...
506 (__gets_warn): ... this. Add __warnattr.
507 (gets): Call __gets_warn instead of __gets_alias.
508 * socket/bits/socket2.h (__recv_chk_warn, __recvfrom_chk_warn): New
509 aliases with __warnattr.
510 (recv, recvfrom): Call __*_chk_warn instead of __*_chk if compile
511 time detectable overflow is found.
512 * posix/bits/unistd.h (__read_chk_warn, __pread_chk_warn,
513 __pread64_chk_warn, __readlink_chk_warn, __readlinkat_chk_warn,
514 __getcwd_chk_warn, __confstr_chk_warn, __getgroups_chk_warn,
515 __ttyname_r_chk_warn, __getlogin_r_chk_warn, __gethostname_chk_warn,
516 __getdomainname_chk_warn): New aliases with __warnattr.
517 (read, pread, pread64, readlink, readlinkat, getcwd, confstr,
518 getgroups, ttyname_r, getlogin_r, gethostname, getdomainname): Call
519 __*_chk_warn instead of __*_chk if compile time detectable overflow
521 (__getgroups_chk): Rename argument to __listlen from listlen.
522 (__getwd_alias): Rename to...
523 (__getwd_warn): ... this. Add __warnattr.
524 (getwd): Call __getwd_warn instead of __getwd_alias.
525 * wcsmbs/bits/wchar2.h (__wmemcpy_chk_warn, __wmemmove_chk_warn,
526 __wmempcpy_chk_warn, __wmemset_chk_warn, __wcsncpy_chk_warn,
527 __wcpncpy_chk_warn, __fgetws_chk_warn, __fgetws_unlocked_chk_warn,
528 __mbsrtowcs_chk_warn, __wcsrtombs_chk_warn, __mbsnrtowcs_chk_warn,
529 __wcsnrtombs_chk_warn): New aliases with __warnattr.
530 (wmemcpy, wmemmove, wmempcpy, wmemset, mbsrtowcs, wcsrtombs,
531 mbsnrtowcs, wcsnrtombs): Call __*_chk_warn instead of __*_chk if
532 compile time detectable overflow is found.
533 (wcsncpy, wcpncpy): Likewise. For constant __n fix check whether
534 to use __*_chk or not.
535 (fgetws, fgetws_unlocked): Divide __bos by sizeof (wchar_t), both
536 in comparisons which function should be called and in __*_chk*
537 arguments. Call __*_chk_warn instead of __*_chk if compile time
538 detectable overflow is found.
539 (swprintf, vswprintf): Divide __bos by sizeof (wchar_t) in
541 * debug/tst-chk1.c (do_test): Add a few more tests.
543 2007-09-24 Ulrich Drepper <drepper@redhat.com>
546 * intl/gettextP.h (struct loaded_domain): Add conversions_lock member.
547 * intl/loadmsgcat.c (_nl_load_domain): Initialize conversions_lock.
548 (_nl_unload_domain): Finalize conversions_lock.
549 * intl/dcigettext.c (_nl_find_msg): Take conversions_lock before
550 handling table of known conversions.
552 2007-09-24 Jakub Jelinek <jakub@redhat.com>
554 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Use
555 close_not_cancel_no_status instead of close.
557 2007-09-13 Aurelien Jarno <aurelien@aurel32.net>
560 * posix/regcomp.c (lookup_collation_sequence_value): Check that
561 nrules != 0 for multibyte chars.
563 2007-09-23 Ulrich Drepper <drepper@redhat.com>
565 * resolv/ns_print.c (ns_sprintrrf): Handle ns_t_a6 and ns_t_opt.
566 Provide better error message in case the type is unknown.
569 * wcsmbs/wcsnlen.c: Don't reference before checking the length.
570 * string/stratcliff.c: Make usable to test wide char functions.
571 * wcsmbs/wcsatcliff.c: New file.
572 * wcsmbs/Makefiel (tests): Add wcsatcliff.
575 * iconvdata/Makefile (modules): Add MAC-CENTRALEUROPE.
576 (distribute): Add mac-centraleurope.c.
577 (gen-8bit-gap-modules): Add mac-centraleurope.
578 * iconvdata/mac-centraleurope.c: New file.
579 * iconvdata/gconv-modules: Add entries for MAC-CENTRALEUROPE.
580 * iconvdata/TESTS: Likewise.
581 * iconvdata/tst-tables.sh: Likewise.
584 * iconv/iconv_open.c (iconv_open): For large codeset names use malloc.
586 2007-09-21 Ulrich Drepper <drepper@redhat.com>
588 * sysdeps/x86_64/cacheinfo.c (__x86_64_data_cache_size_half): Renamed
589 from __x86_64_core_cache_size_half.
590 (init_cacheinfo): Compute shared cache size for AMD processors with
592 * sysdeps/x86_64/memcpy.S: Adjust for __x86_64_data_cache_size_half
594 Patch in large parts by Evandro Menezes.
596 2007-09-19 Ulrich Drepper <drepper@redhat.com>
598 * elf/dl-lookup.c (add_dependency): Handle failing memory
599 allocation for dependency list. Remove unnecessary check.
601 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid unnecessary
602 open/close when determining source addresses.
604 * crypt/Makefile (libcrypt-routines): Add sha256-crypt, sha256,
605 sha512-crypt, and sha512.
606 (tests): Add sha256test, sha256c-test, sha512test, and sha512c-test.
607 (distribute): Add sha256.h and sha512.h.
608 * crypt/crypt-entry.c (crypt): Recognize the new $5$ and $6$ prefixes
609 and call the appropriate code.
610 * crypt/sha256-crypt.c: New file.
611 * crypt/sha256.c: New file.
612 * crypt/sha256.h: New file.
613 * crypt/sha256c-test.c: New file.
614 * crypt/sha256test.c: New file.
615 * crypt/sha512-crypt.c: New file.
616 * crypt/sha512.c: New file.
617 * crypt/sha512.h: New file.
618 * crypt/sha512c-test.c: New file.
619 * crypt/sha512test.c: New file.
621 2007-09-19 Jakub Jelinek <jakub@redhat.com>
623 * misc/bits/syslog.h (syslog): Remove extraneous argument from
624 the inline, pass __USE_FORTIFY_LEVEL - 1 as second argument to
627 2007-09-18 Jakub Jelinek <jakub@redhat.com>
629 * locale/programs/charmap-dir.c (charmap_aliases): Use %ms instead of
630 %as in fscanf format strings.
632 * sysdeps/sparc/sparc32/elf/start.S: Remove cfi_* markup.
633 * sysdeps/sparc/sparc64/elf/start.S: Likewise.
634 * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__thread_start):
636 * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__thread_start):
639 * sysdeps/generic/ldsodefs.h (DL_LOOKUP_GSCOPE_LOCK): New definition.
640 * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Or in
641 DL_LOOKUP_GSCOPE_LOCK into flags after THREAD_GSCOPE_SET_FLAG ().
642 * elf/dl-sym.c (do_sym): Likewise.
643 * include/link.h (struct link_map): Add l_serial field.
644 * elf/dl-object.c (_dl_new_object): Initialize l_serial.
645 * elf/dl-lookup.c (add_dependency): Add flags argument.
646 Remember map->l_serial, if DL_LOOKUP_GSCOPE_LOCK is among
647 flags, use THREAD_GSCOPE_RESET_FLAG before and
648 THREAD_GSCOPE_SET_FLAG after
649 __rtld_lock_lock_recursive (GL(dl_load_lock)) to avoid deadlock.
650 Don't dereference map until it has been found on some list.
651 If map->l_serial changed, return -1.
653 2007-09-17 Jakub Jelinek <jakub@redhat.com>
655 * include/stdio.h (__isoc99_fscanf, __isoc99_scanf,
656 __isoc99_sscanf, __isoc99_vscanf): New prototypes.
657 (__isoc99_vsscanf, __isoc99_vfscanf): New prototypes, add
659 * include/wchar.h (__isoc99_fwscanf, __isoc99_wscanf,
660 __isoc99_swscanf, __isoc99_vwscanf): New prototypes.
661 (__isoc99_vswscanf, __isoc99_vfwscanf): New prototypes,
662 add libc_hidden_proto.
663 * libio/stdio.h (fscanf, scanf, sscanf, vfscanf, vscanf,
664 vsscanf): Redirect to __isoc99_* if strict ISO C99 or POSIX
665 conformance requested.
666 * wcsmbs/wchar.h (fwscanf, wscanf, swscanf, vfwscanf, vwscanf,
667 vswscanf): Redirect to __isoc99_* if strict ISO C99 or POSIX
668 conformance requested.
669 * libio/bits/stdio-ldbl.h (fscanf, scanf, sscanf, vfscanf, vscanf,
670 vsscanf): Redirect to __nldbl___isoc99_* if strict ISO C99 or POSIX
671 conformance requested.
672 * wcsmbs/bits/wchar-ldbl.h (fwscanf, wscanf, swscanf, vfwscanf,
673 vwscanf, vswscanf): Redirect to __nldbl___isoc99_* if strict
674 ISO C99 or POSIX conformance requested.
675 * stdio-common/Versions (libc): Export __isoc99_scanf@@GLIBC_2.7,
676 __isoc99_vscanf@@GLIBC_2.7, __isoc99_fscanf@@GLIBC_2.7,
677 __isoc99_vfscanf@@GLIBC_2.7, __isoc99_sscanf@@GLIBC_2.7
678 and __isoc99_vsscanf@@GLIBC_2.7.
679 * stdio-common/Makefile (routines): Add isoc99_scanf, isoc99_vscanf,
680 isoc99_fscanf, isoc99_vfscanf, isoc99_sscanf and isoc99_vsscanf.
681 (tests): Add scanf14.
682 (CFLAGS-vfprintf.c, CFLAGS-fprintf.c, CFLAGS-printf.c,
683 CFLAGS-vfwprintf.c, CFLAGS-vfscanf.c, CFLAGS-vfwscanf.c,
684 CFLAGS-fscanf.c, CFLAGS-scanf.c, CFLAGS-isoc99_vfscanf.c,
685 CFLAGS-isoc99_vscanf.c, CFLAGS-isoc99_fscanf.c,
686 CFLAGS-isoc99_scanf.c): Add $(exceptions).
687 (CFLAGS-scanf15.c): Add various -I paths to prevent the compiler
688 from using internal headers.
689 * wcsmbs/Versions (libc): Export __isoc99_wscanf@@GLIBC_2.7,
690 __isoc99_vwscanf@@GLIBC_2.7, __isoc99_fwscanf@@GLIBC_2.7,
691 __isoc99_vfwscanf@@GLIBC_2.7, __isoc99_swscanf@@GLIBC_2.7
692 and __isoc99_vswscanf@@GLIBC_2.7.
693 * wcsmbs/Makefile (routines): Add isoc99_wscanf, isoc99_vwscanf,
694 isoc99_fwscanf, isoc99_vfwscanf, isoc99_swscanf and isoc99_vswscanf.
695 (CFLAGS-isoc99_wscanf.c, CFLAGS-isoc99_fwscanf.c,
696 CFLAGS-isoc99_vwscanf.c, CFLAGS-isoc99_vfwscanf.c): Add $(exceptions).
697 (CPPFLAGS): Add -D_IO_MTSAFE_IO if needed.
698 * stdio-common/isoc99_scanf.c: New file.
699 * stdio-common/isoc99_vsscanf.c: New file.
700 * stdio-common/isoc99_vscanf.c: New file.
701 * stdio-common/isoc99_vfscanf.c: New file.
702 * stdio-common/isoc99_fscanf.c: New file.
703 * stdio-common/isoc99_sscanf.c: New file.
704 * wcsmbs/isoc99_fwscanf.c: New file.
705 * wcsmbs/isoc99_vswscanf.c: New file.
706 * wcsmbs/isoc99_swscanf.c: New file.
707 * wcsmbs/isoc99_wscanf.c: New file.
708 * wcsmbs/isoc99_vwscanf.c: New file.
709 * wcsmbs/isoc99_vfwscanf.c: New file.
710 * libio/libio.h (_IO_FLAGS2_SCANF_STD): Define.
711 * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): Also
712 clear _IO_FLAGS2_SCANF_STD bit from _flags2.
713 * stdio-common/vfscanf.c (_IO_vfscanf_internal): Don't
714 handle %as, %aS and %a[ if _IO_FLAGS2_SCANF_STD is set in _flags2.
715 * stdio-common/scanf14.c: New test.
716 * stdio-common/scanf15.c: New test.
717 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add
718 isoc99_scanf, isoc99_fscanf, isoc99_sscanf,
719 isoc99_vscanf, isoc99_vfscanf, isoc99_vsscanf,
720 isoc99_wscanf, isoc99_fwscanf, isoc99_swscanf,
721 isoc99_vwscanf, isoc99_vfwscanf and isoc99_vswscanf.
722 * sysdeps/ieee754/ldbl-opt/Versions (libc): Export
723 __nldbl___isoc99_scanf@@GLIBC_2.7,
724 __nldbl___isoc99_fscanf@@GLIBC_2.7,
725 __nldbl___isoc99_sscanf@@GLIBC_2.7,
726 __nldbl___isoc99_vscanf@@GLIBC_2.7,
727 __nldbl___isoc99_vfscanf@@GLIBC_2.7,
728 __nldbl___isoc99_vsscanf@@GLIBC_2.7,
729 __nldbl___isoc99_wscanf@@GLIBC_2.7,
730 __nldbl___isoc99_fwscanf@@GLIBC_2.7,
731 __nldbl___isoc99_swscanf@@GLIBC_2.7,
732 __nldbl___isoc99_vwscanf@@GLIBC_2.7,
733 __nldbl___isoc99_vfwscanf@@GLIBC_2.7
734 and __nldbl___isoc99_vswscanf@@GLIBC_2.7.
735 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__isoc99_scanf,
736 __isoc99_fscanf, __isoc99_sscanf, __isoc99_vscanf,
737 __isoc99_vfscanf, __isoc99_vsscanf, __isoc99_wscanf,
738 __isoc99_fwscanf, __isoc99_swscanf, __isoc99_vwscanf,
739 __isoc99_vfwscanf, __isoc99_vswscanf): Add NLDBL_DECL.
740 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
741 (__nldbl___isoc99_scanf, __nldbl___isoc99_fscanf,
742 __nldbl___isoc99_sscanf, __nldbl___isoc99_vscanf,
743 __nldbl___isoc99_vfscanf, __nldbl___isoc99_vsscanf,
744 __nldbl___isoc99_wscanf, __nldbl___isoc99_fwscanf,
745 __nldbl___isoc99_swscanf, __nldbl___isoc99_vwscanf,
746 __nldbl___isoc99_vfwscanf, __nldbl___isoc99_vswscanf): New
748 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vfscanf.c: New file.
749 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_swscanf.c: New file.
750 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vwscanf.c: New file.
751 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_wscanf.c: New file.
752 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_scanf.c: New file.
753 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_sscanf.c: New file.
754 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vsscanf.c: New file.
755 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_fwscanf.c: New file.
756 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vfwscanf.c: New file.
757 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vswscanf.c: New file.
758 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vscanf.c: New file.
759 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_fscanf.c: New file.
761 * stdio-common/Makefile (tests): Add scanf13.
763 * stdio-common/vfscanf.c (_IO_vfscanf_internal): Handle
764 m modifier followed by l.
765 (STRING_ARG): Add width argument.
766 (_IO_vfscanf_internal) <case L_('c')>: Handle %mc.
767 <case L_('C')>: Handle %mlc and %mC.
768 <case L_('s'), case L_('S'), case L_('[')>: Adjust STRING_ARG
770 * stdio-common/scanf13.c: New test.
772 * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): Clear
773 the _IO_FLAGS2_FORTIFY bit from _flags2 rather than _flags.
775 2007-09-18 Ulrich Drepper <drepper@redhat.com>
777 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Correct return value
778 type and __THROW marker of splice, vmsplice, and tee.
779 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
780 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
781 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
782 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
783 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
784 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
785 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
786 * sysdeps/unix/sysv/linux/syscalls.list: Mark splice, vmsplice, and tee
787 as cancellation points.
789 2003-11-01 Daniel Jacobowitz <dan@debian.org>
791 * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_discover_osversion): Don't
792 parse more than three parts of the version number.
794 2007-09-15 Ulrich Drepper <drepper@redhat.com>
796 * stdio-common/vfscanf.c (_IO_vfwscanf): Add support for 'm'
797 modifier. Patch by Jakub Jelinek.
799 2007-08-26 Jakub Jelinek <jakub@redhat.com>
801 * sysdeps/unix/sysv/linux/i386/Makefile (sysdep_routines): Add
802 call_fallocate in misc subdir.
803 * sysdeps/unix/sysv/linux/i386/call_fallocate.S: New file.
804 * sysdeps/unix/sysv/linux/i386/syscalls.list (fallocate64): Remove.
805 * sysdeps/unix/sysv/linux/i386/posix_fallocate.c: Use __call_fallocate
806 instead of __fallocate64.
807 * sysdeps/unix/sysv/linux/i386/posix_fallocate64.c: Likewise.
809 2007-09-15 Jakub Jelinek <jakub@redhat.com>
811 * rt/Versions (librt): Export __mq_open_2@@GLIBC_2.7.
812 * rt/Makefile (headers): Add bits/mqueue2.h.
813 * rt/mqueue.h: Include bits/mqueue2.h if -D_FORTIFY_SOURCE=2,
814 optimizing with GCC and __va_arg_pack_len is defined.
815 * rt/bits/mqueue2.h: New file.
816 * rt/mq_open.c (__mq_open): Renamed from mq_open.
817 (mq_open): New strong_alias.
818 (__mq_open_2): New function.
819 * sysdeps/unix/sysv/linux/mq_open.c (__mq_open): Renamed from mq_open.
820 (mq_open): New strong_alias.
821 (__mq_open_2): New function.
822 * debug/Versions (libc): Export __fortify_fail@@GLIBC_PRIVATE.
823 * Versions.def (librt): Add GLIBC_2.7 version.
824 * debug/fortify_fail.c (__fortify_fail): Add libc_hidden_def.
825 * include/stdio.h (__fortify_fail): Add libc_hidden_proto.
827 * misc/sys/cdefs.h (__errordecl, __va_arg_pack_len): Define.
828 * io/fcntl.h: Include bits/fcntl2.h when __va_arg_pack_len
829 is defined rather than when not C++.
830 * io/bits/fcntl2.h (__open_alias, __open64_alias, __openat_alias,
831 __openat64_alias): New redirects.
832 (__open_too_many_args, __open_missing_mode, __open64_too_many_args,
833 __open64_missing_mode, __openat_too_many_args, __openat_missing_mode,
834 __openat64_too_many_args, __openat64_missing_mode): New __errordecls.
835 (open, open64, openat, openat64): Rewrite as __extern_always_inline
836 functions instead of function-like macros.
838 2007-09-14 H.J. Lu <hongjiu.lu@intel.com>
840 * sysdeps/i386/i586/memcpy.S (__memcpy_chk): New definition.
841 * sysdeps/i386/i586/mempcpy.S (__memcpy_chk): New definition.
842 * sysdeps/i386/i586/memset.S (__memset_chk): New definition.
844 2007-09-15 Mike Frysinger <vapier@gentoo.org>
846 * inet/inet_net.c: Reset digit to 0 for inputs starting with "0x".
847 * inet/tst-network.c (tests): Add edge case tests for "0", "0x", "0x0".
849 2007-09-14 Mike Frysinger <vapier@gentoo.org>
851 * inet/tst-network.c: Increment ERRORS for failing tests.
853 2007-09-07 Jakub Jelinek <jakub@redhat.com>
855 * misc/sys/cdefs.h (__va_arg_pack): Define for GCC 4.3+.
856 * misc/bits/syslog.h (syslog): When __va_arg_pack is defined,
857 implement as __extern_always_inline function.
858 (vsyslog): Define as __extern_always_inline function unconditionally.
859 * libio/bits/stdio2.h (sprintf, snprintf, printf, fprintf):
860 When __va_arg_pack is defined, implement as __extern_always_inline
862 (vsprintf, vsnprintf, vprintf, vfprintf): Define as
863 __extern_always_inline functions unconditionally.
864 * libio/bits/stdio.h (vprintf): Ifdef out the inline when
865 bits/stdio2.h will be included.
866 * wcsmbs/bits/wchar2.h (__swprintf_alias): New redirect.
867 (swprintf, wprintf, fwprintf): When __va_arg_pack is defined,
868 implement as __extern_always_inline functions.
869 (vswprintf, vwprintf, vfwprintf): Define as
870 __extern_always_inline functions unconditionally.
871 * debug/tst-chk1.c (do_test): Enable remaining tests for C++.
873 2007-09-03 Jakub Jelinek <jakub@redhat.com>
875 * misc/sys/cdefs.h (__extern_inline, __extern_always_inline): Only
876 define in C++ for GCC 4.3+, in C++ always use __gnu_inline__
878 * include/features.h (__USE_EXTERN_INLINES): Define only when
879 __extern_inline is defined.
880 * stdlib/stdlib.h: Include bits/stdlib.h when __extern_always_inline
881 is defined instead of when not __cplusplus.
882 * misc/sys/syslog.h: Include bits/syslog.h when __extern_always_inline
883 is defined instead of when not __cplusplus.
884 * socket/sys/socket.h: Include bits/socket2.h when
885 __extern_always_inline is defined instead of when not __cplusplus.
886 * libio/stdio.h: Include bits/stdio2.h when __extern_always_inline
887 is defined instead of when not __cplusplus.
888 * posix/unistd.h: Include bits/unistd.h when __extern_always_inline
889 is defined instead of when not __cplusplus.
890 * string/string.h: Include bits/string3.h when __extern_always_inline
891 is defined instead of when not __cplusplus.
892 * wcsmbs/wchar.h: Include bits/wchar2.h when __extern_always_inline
893 is defined instead of when not __cplusplus.
894 (btowc, wctob): Don't guard the inlines with ifndef __cplusplus.
895 * io/fcntl.h: Don't include bits/fcntl2.h if __extern_always_inline
897 * misc/bits/syslog-ldbl.h: Guard *_chk stuff with
898 defined __extern_always_inline instead of !defined __cplusplus.
899 * libio/bits/stdio-ldbl.h: Likewise.
900 * wcsmbs/bits/wchar-ldbl.h: Likewise.
901 * misc/bits/syslog.h (syslog): Don't define for C++.
902 (vsyslog): Use __extern_always_inline function for C++ instead of
904 * libio/bits/stdio.h (__STDIO_INLINE): Define to __extern_inline
905 whenever that macro is defined.
906 (vprintf): Don't provide the inline for C++.
907 (fread_unlocked, fwrite_unlocked): Don't define the macros for C++.
908 * libio/bits/stdio2.h (sprintf, snprintf, printf, fprintf): Don't
909 define the macros for C++.
910 (vsprintf, vsnprintf, vprintf, vfprintf): Define as
911 __extern_always_inline functions for C++.
912 * io/sys/stat.h (stat, lstat, fstat, fstatat, mknod, mknodat,
913 stat64, lstat64, fstat64, fstatat64): Don't define if not
914 __USE_EXTERN_INLINES.
915 * wcsmbs/bits/wchar2.h: Fix #error message.
916 (swprintf, wprintf, fwprintf): Don't define the macros for C++.
917 (vswprintf, vwprintf, vfwprintf): Define using
918 __extern_always_inline functions for C++.
919 * string/bits/string3.h: Don't #undef macros if __cplusplus.
920 (memcpy, memmove, mempcpy, memset, bcopy, bzero, strcpy, stpcpy,
921 strncpy, strcat, strncat): Define as __extern_always_inline
922 functions instead of macros for C++.
923 * math/bits/cmathcalls.h: Guard __extern_inline routines with
924 defined __extern_inline.
925 * sysdeps/alpha/fpu/bits/mathinline.h (__MATH_INLINE): Define
926 to __extern_inline whenever that macro is defined.
927 * sysdeps/ia64/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
928 * sysdeps/i386/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
929 * sysdeps/i386/i486/bits/string.h (__STRING_INLINE): Likewise.
930 * sysdeps/s390/bits/string.h (__STRING_INLINE): Likewise.
931 * sysdeps/s390/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
932 * sysdeps/powerpc/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
933 * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
934 * sysdeps/sparc/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
935 * sysdeps/unix/sysv/linux/sys/sysmacros.h (gnu_dev_major,
936 gnu_dev_minor, gnu_dev_makedev): Remove __extern_inline from
937 prototypes. Only provide __extern_inline routines if
938 __USE_EXTERN_INLINES.
939 * debug/Makefile: Add rules to build and run tst-{,lfs}chk{4,5,6}
941 * debug/tst-chk1.c (do_prepare, do_test): Allow compilation as C++.
942 For now avoid some *printf tests in C++. Skip all testing
943 if __USE_FORTIFY_LEVEL is defined, but __extern_always_inline macro
945 * debug/tst-chk4.cc: New file.
946 * debug/tst-chk5.cc: New file.
947 * debug/tst-chk6.cc: New file.
948 * debug/tst-lfschk4.cc: New file.
949 * debug/tst-lfschk5.cc: New file.
950 * debug/tst-lfschk6.cc: New file.
951 * include/wchar.h (__vfwprintf_chk, __vswprintf_chk): Avoid
953 * include/stdio.h (__sprintf_chk, __snprintf_chk, __vsprintf_chk,
954 __vsnprintf_chk, __printf_chk, __fprintf_chk, __vprintf_chk,
955 __vfprintf_chk, __fgets_unlocked_chk, __fgets_chk): Likewise.
957 2007-09-13 Ulrich Drepper <drepper@redhat.com>
959 * po/cs.po: Update from translation team.
961 2007-09-11 Roland McGrath <roland@redhat.com>
963 * posix/Makefile ($(objpfx)getconf.speclist): Make it empty if cross
966 2007-09-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
968 * sysdeps/mach/hurd/bits/ioctls.h (TAB3): New macro.
970 2007-09-05 Roland McGrath <roland@redhat.com>
972 * manual/signal.texi (Signaling Another Process): Typo fix.
973 From Karl Berry <karl@freefriends.org>.
975 2007-08-29 Ulrich Drepper <drepper@redhat.com>
977 * sysdeps/unix/sysv/linux/check_pf.c (IFA_F_OPTIMISTIC): Define to
979 (make_request): Recognize optimistic addresses and treat them like
980 deprecated addresses.
981 Reported by Neil Horman <nhorman@redhat.com>.
983 2007-08-28 Ulrich Drepper <drepper@redhat.com>
985 * nscd/connections.c (send_ro_fd): Also transfer file size.
986 * nscd/nscd_helper.c (get_mapping): If nscd also transfers the
987 file size don't call fstat.
989 * nscd/nscd_helper.c (get_mapping): Avoid the pread call, just go
990 ahead and map the file. This should always be correct and we can
991 catch problems later.
993 2007-08-28 Jakub Jelinek <jakub@redhat.com>
995 * libio/bits/stdio2.h (__fread_chk, __fread_unlocked_chk): New
997 (__fread_alias, __fread_unlocked_alias): New aliases.
998 (fread): New extern inline.
999 (fread_unlocked): Likewise. Undef macro before definition of
1000 the inline function.
1001 * debug/Makefile (routines): Add fread_chk and fread_u_chk.
1002 (CFLAGS-fread_chk.c, CFLAGS-fread_u_chk.c): Add.
1003 * debug/Versions (libc): Export __fread_chk@@GLIBC_2.7
1004 and __fread_unlocked_chk@@GLIBC_2.7.
1005 * debug/fread_chk.c: New file.
1006 * debug/fread_u_chk.c: New file.
1007 * debug/tst-chk1.c (do_test): Add fread and fread_unlocked tests.
1009 2007-08-27 Jakub Jelinek <jakub@redhat.com>
1011 * sysdeps/unix/sysv/linux/syscalls.list
1012 (personality): Change caller to EXTRA.
1014 2007-08-25 Ulrich Drepper <drepper@redhat.com>
1016 * iconvdata/iso-2022-kr.c (BODY): Fake initialization of array buf
1018 * iconvdata/iso-2022-cn.c (BODY): Likewise.
1020 * locale/programs/ld-collate.c (collate_output): Avoid warning if
1023 * Makerules: Use -p option with mkdir.
1025 * sunrpc/key_prot.c (xdr_unixcred): Work around gcc alias warning.
1026 * nis/nis_xdr.c (_xdr_nis_server): Likewise.
1027 (_xdr_directory_obj): Likewise.
1028 (xdr_entry_obj): Likewise.
1029 (xdr_group_obj): Likewise.
1030 (xdr_link_obj): Likewise.
1031 (xdr_table_obj): Likewise.
1032 (_xdr_nis_result): Likewise.
1033 (_xdr_ns_request): Likewise.
1034 (_xdr_ib_request): Likewise.
1035 (_xdr_nis_taglist): Likewise.
1036 (xdr_cback_data): Likewise.
1037 * nis/yp_xdr.c (xdr_ypmaplist): Likewise.
1038 (xdr_ypresp_maplist): Likewise.
1040 * stdio-common/Makefile: Avoid format string warning for tst-sprint.
1042 * posix/regex_internal.h: Prevent some declarations and definitions
1043 to be seen when used in tests.
1045 * posix/tst-rfc3484.c (__idna_to_unicode_lzlz): Initialize *OUTPUT.
1046 * posix/tst-rfc3484-2.c (__idna_to_unicode_lzlz): Likewise.
1048 * debug/Makefile: Disable format checking when compiling tst-chk?.c.
1050 * config.make.in (datarootdir): Add to shut up configure.
1052 * sysdeps/x86_64/cacheinfo.c (handle_amd): Fix computation of
1053 associativity for fully-associative caches.
1055 * sysdeps/x86_64/cacheinfo.c (handle_amd): Handle L3 cache
1056 requests. Fill on more associativity values for L2.
1057 Patch mostly by Evandro Menezes.
1059 2007-08-24 Ulrich Drepper <drepper@redhat.com>
1061 * sysdeps/unix/sysv/linux/x86_64/init-first.c
1062 (_libc_vdso_platform_setup): Avoid using exported variable by using
1065 * resolv/arpa/nameser.h (NS_OPT_DNSSEC_OK): Define.
1067 * sysdeps/unix/sysv/linux/i386/syscalls.list: No reason to mark
1068 fallocate64 as EXTRA. It is not referenced if the symbol isn't
1071 2007-08-23 Ulrich Drepper <drepper@redhat.com>
1073 * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Correctly
1074 align stack for call if pltexit is to be used.
1077 * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Correctly
1078 align for function call in case pltexit has to be called later.
1080 * sysdeps/i386/dl-trampoline.S (_dl_runtime_resolve): Avoid
1081 implicit atomic operation when storing function pointer.
1082 (_dl_runtime_profile): Likewise.
1084 2007-08-17 Jakub Jelinek <jakub@redhat.com>
1086 * nis/nis_table.c (nis_list): Don't fail if __follow_path returned
1089 2007-08-21 Ulrich Drepper <drepper@redhat.com>
1092 * string/strtok.c: Fix typo in comment.
1095 * debug/segfault.c: Fix typos in comments.
1098 * stdio-common/tempnam.c: Fix comment, it is not checked that
1099 TMPDIR points to a writable directory.
1102 * resolv/res_send.c (__libc_res_nsend): Initialize all of the
1103 memory allocated for the name server address.
1106 * nscd/connections.c (handle_request): Using sendfile always
1107 requires that mmap is used for the database.
1108 Patch by Petr Baudis <pasky@suse.cz>.
1111 * nscd/hstcache.c (cache_addhst): When reloading an entry which
1112 suddenly has two or more addresses, ignore it and remove the old
1116 * resolv/res_hconf.c: Prepare for compiling outside libc.
1117 * nscd/res_hconf.c: New file.
1118 * nscd/Makefile (nscd-modules): Add res_hconf. Add rules to build
1120 * nscd/gethstbynm2_r.c (NEED__RES_HCONF): Define.
1121 * nscd/gethstbyad_r.c (NEED__RES_HCONF): Likewise.
1123 * nscd/hstcache.c (cache_addhst): Minimal optimization.
1126 * debug/pcprofiledump.c: Turn on internationalization by calling
1127 setlocale. Patch mostly by Benno Schulenberg.
1130 * iconv/gconv.c (__gconv): If flush was successful, clear rest of
1132 * iconvdata/Makefile: Add rules to build and run bug-iconv5.
1133 * iconvdata/bug-iconv5.c: New file.
1135 2007-08-04 Carlos O'Donell <carlos@systemhalted.org>
1138 * elf/elf.h: Define R_PARISC_PLABEL21L, R_PARISC_PLABEL14R,
1139 R_PARISC_GNU_VTENTRY, R_PARISC_GNU_VTINHERIT, R_PARISC_TLS_GD21L,
1140 R_PARISC_TLS_GD14R, R_PARISC_TLS_GDCALL, R_PARISC_TLS_LDM21L,
1141 R_PARISC_TLS_LDM14R, R_PARISC_TLS_LDMCALL, R_PARISC_TLS_LDO21L,
1142 R_PARISC_TLS_LDO14R, R_PARISC_TLS_DTPMOD32, R_PARISC_TLS_DTPMOD64,
1143 R_PARISC_TLS_DTPOFF32, R_PARISC_TLS_DTPOFF64, R_PARISC_TLS_LE21L,
1144 R_PARISC_TLS_LE14R, R_PARISC_TLS_IE21L, R_PARISC_TLS_IE14R,
1145 R_PARISC_TLS_TPREL32, R_PARISC_TLS_TPREL64.
1147 2007-08-21 Ulrich Drepper <drepper@redhat.com>
1150 * elf/do-lookup.h (do_lookup_x): Minimal improvement in hash
1151 lookup loop. Suggested by John Reiser.
1153 2007-08-21 Jakub Jelinek <jakub@redhat.com>
1155 * sysdeps/unix/sysv/linux/alpha/sysdep.h: Include tls.h.
1157 2007-08-20 Ulrich Drepper <drepper@redhat.com>
1159 * csu/libc-start.c: Don't handle VDSO_SETUP here.
1160 * sysdeps/unix/sysv/linux/init-first.c: Handle it here instead.
1161 * sysdeps/unix/sysv/linux/x86_64/libc-start.c: Renamed to...
1162 * sysdeps/unix/sysv/linux/x86_64/init-first.c: ...this. New file.
1163 * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Move VDSO_SETUP code
1165 * sysdeps/unix/sysv/linux/x86_64/init-first.c: ...here. New file.
1167 2007-08-18 Ulrich Drepper <drepper@redhat.com>
1169 * po/nl.po: Update from translation team.
1171 2007-08-16 Andreas Jaeger <aj@suse.de>
1173 * locale/localeinfo.h: Make _nl_category_name_idxs extern.
1174 Reported by Peter Festner <peter.festner@ewetel.net>.
1176 2007-08-17 Jakub Jelinek <jakub@redhat.com>
1178 * login/tst-grantpt.c (test_einval): Add 3rd argument to open.
1180 2007-08-16 Jakub Jelinek <jakub@redhat.com>
1182 * elf/Makefile ($(objpfx)ld.so): Use readelf -s and awk instead of nm -u
1183 to check for undefined symbols.
1185 * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone):
1186 If the syscall fails, set errno to the actual returned error number
1188 * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__clone): If
1189 arguments are incorrect, set errno to EINVAL, if the syscall
1190 fails, set errno to the actual returned error number.
1192 * stdlib/bits/stdlib-ldbl.h (__strtold_internal): Remove.
1193 * wcsmbs/bits/wchar-ldbl.h (__wcstold_internal): Remove.
1195 * sysdeps/sparc/sparc32/sparcv9b/memcpy.S: Moved to...
1196 * sysdeps/sparc/sparc32/sparcv9/sparcv9b/memcpy.S: ... here. New
1198 (ASI_PNF, ASI_BLK_P): Don't define.
1199 * sysdeps/sparc/sparc32/sparcv9v/memcpy.S: Moved to...
1200 * sysdeps/sparc/sparc32/sparcv9/sparcv9v/memcpy.S: ... here. New
1202 * sysdeps/sparc/sparc32/sparcv9v/memset.S: Moved to...
1203 * sysdeps/sparc/sparc32/sparcv9/sparcv9v/memset.S: ... here. New
1206 2007-08-15 Jakub Jelinek <jakub@redhat.com>
1208 * sysdeps/sparc/fpu/fraiseexcpt.c (__feraiseexcept): Fix raising
1209 FE_UNDERFLOW on Niagara CPUs.
1211 * sysdeps/sparc/fpu/feholdexcpt.c (feholdexcept): Clear all
1214 2007-08-14 Jakub Jelinek <jakub@redhat.com>
1216 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_runtime_setup): No
1217 need to check GLRO(dl_hwcap) & HWCAP_SPARC_FLUSH on sparcv9.
1218 (sparc_fixup_plt): Add do_flush argument instead of figuring whether
1219 flush should be used or not inside of the function.
1220 (elf_machine_fixup_plt, elf_machine_rela): Adjust caller.
1222 * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone,
1223 __thread_start): Use HIDDEN_JUMPTARGET.
1224 * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__clone,
1225 __thread_start): Likewise.
1226 * sysdeps/unix/sysv/linux/sparc/sysdep.h (JUMPTARGET): Define.
1228 * sysdeps/ieee754/ldbl-64-128/strtold_l.c (__STRTOF): Declare.
1229 Add libc_hidden_proto.
1230 (STRTOF): Add libc_hidden_proto.
1231 (___new_strtold_l, ___new_wcstold_l): New weak aliases.
1232 (strtold_l, wcstold_l): Use them as second argument for
1235 2007-08-14 Ulrich Drepper <drepper@redhat.com>
1237 * elf/dl-misc.c: Undo last change. The kernel won't allow it.
1239 2007-08-13 Kaz Kojima <kkojima@rr.iij4u.or.jp>
1241 * stdlib/strtold_l.c: Include wchar.h if needed. Add libc_hidden_def.
1243 2007-08-14 Ulrich Drepper <drepper@redhat.com>
1245 * po/bg.po: New file. From the translation team.
1247 2007-08-13 Jakub Jelinek <jakub@redhat.com>
1249 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PSELECT,
1250 __ASSUME_PPOLL, __ASSUME_ATFCTS, __ASSUME_SET_ROBUST_LIST,
1251 __ASSUME_UTIMENSAT, __ASSUME_FALLOCATE): Update per-arch conditions
1252 when each feature was introduced.
1254 * sysdeps/unix/sysv/linux/dl-vdso.c: Don't include dl-hash.h.
1255 * sysdeps/unix/sysv/linux/dl-vdso.h: Don't include dl-hash.h if NDEBUG.
1256 (CHECK_HASH): New macro.
1257 (PREPARE_VERSION): Use it.
1259 * sysdeps/unix/sysv/linux/pselect.c (__generic_pselect): Only provide
1260 prototype if not __ASSUME_PSELECT.
1261 * sysdeps/unix/sysv/linux/ppoll.c (__generic_ppoll): Only provide
1262 prototype if not __ASSUME_PPOLL.
1264 * sysdeps/unix/sysv/linux/dl-osinfo.h (ROUND): #undef after use.
1266 * sysdeps/unix/clock_settime.c (freq, __pthread_clock_settime,
1267 hp_timing_settime): Don't define or declare if HANDLED_CPUTIME
1270 2007-08-13 Ulrich Drepper <drepper@redhat.com>
1272 * sysdeps/unix/sysv/linux/x86_64/libc-start.c
1273 (_libc_vdso_platform_setup): If vDSO is not available point
1274 __vdso_gettimeofday to the vsyscall.
1275 * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S [SHARED]: Use
1276 __vdso_gettimeofday instead of vsyscall.
1278 2007-08-13 Jakub Jelinek <jakub@redhat.com>
1280 * nscd/servicescache.c: Include kernel-features.h.
1281 * nscd/gai.c: Likewise.
1282 * sysdeps/unix/sysv/linux/statfs64.c: Likewise.
1283 * sysdeps/unix/sysv/linux/fstatfs64.c: Likewise.
1284 * sysdeps/unix/sysv/linux/fxstatat.c: Likewise.
1285 * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S: Likewise.
1286 * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S: Likewise.
1287 * sysdeps/unix/sysv/linux/xstatconv.c: Likewise.
1288 * sysdeps/unix/sysv/linux/if_index.c: Likewise.
1289 * sysdeps/unix/sysv/linux/sparc/sparc64/xstat.c: Likewise.
1290 * sysdeps/unix/sysv/linux/ifaddrs.c: Likewise.
1292 2007-08-12 Ulrich Drepper <drepper@redhat.com>
1294 * elf/dl-dst.h: No need for _dl_dst_count, _dl_dst_substitute,
1295 and _dl_get_origin defines anymore.
1297 * sysdeps/unix/sysv/linux/clock_gettime.c (maybe_syscall_gettime_cpu):
1298 Build fix for systems which might lack POSIX timer support.
1300 * sysdeps/unix/sysv/linux/x86_64/libc-start.c
1301 (_libc_vdso_platform_setup): Mangle function pointers before storing
1303 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_VSYSCALL):
1304 Demangle vdso pointer before use.
1305 (INTERNAL_VSYSCALL): Likewise.
1307 * elf/cache.c (primes): Mark as const.
1308 Noted by Roland McGrath.
1310 2007-08-01 Andreas Jaeger <aj@suse.de>
1311 Jakub Jelinek <jakub@redhat.com>
1313 * elf/ldconfig.c (opt_ignore_aux_cache): Add new option.
1314 (options): Add option.
1315 (parse_opt): Handle option.
1316 (manual_link): Adjust process_file caller. Call implicit_soname.
1317 (search_dir): Formatting. Use and populate auxiliary cache.
1318 (main): Load and save auxiliary cache.
1319 * elf/readlib.c (process_file): Add stat_buf argument. Pass struct
1320 stat64 from fstat64 to caller.
1321 (implicit_soname): New function.
1322 * elf/readelflib.c (process_elf_file): If DT_SONAME is not present,
1323 leave *soname as NULL.
1324 * elf/cache.c: Include libgen.h.
1325 (print_entry, print_cache, compare, save_cache, add_to_cache):
1326 Formatting and cleanups.
1327 (aux_cache_entry_id, aux_cache_entry, aux_cache_file_entry,
1328 aux_cache_file): New structures.
1329 (AUX_CACHEMAGIC): Define.
1330 (primes): New array.
1331 (aux_hash_size, aux_hash): New variables.
1332 (aux_cache_entry_id_hash, nextprime, init_aux_cache,
1333 search_aux_cache, insert_to_aux_cache, add_to_aux_cache,
1334 load_aux_cache, save_aux_cache): New functions.
1335 * sysdeps/generic/ldconfig.h (_PATH_LDCONFIG_AUX_CACHE): Define.
1336 (init_aux_cache, search_aux_cache, add_to_aux_cache,
1337 load_aux_cache, save_aux_cache, implicit_soname): New prototypes.
1338 (process_file): Adjust prototype.
1340 2007-08-12 Jakub Jelinek <jakub@redhat.com>
1342 * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h: Include stddef.h
1345 2007-08-12 Ulrich Drepper <drepper@redhat.com>
1347 * sysdeps/unix/sysv/linux/dl-vdso.c (_dl_vdso_vsym): Expect
1348 r_found_version structure as second parameter.
1349 * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION): Define.
1350 (_dl_vdso_vsym): Change type of second parameter accordingly.
1351 * sysdeps/unix/sysv/linux/x86-64/libc-start.c
1352 (_libc_vdso_platform_setup): Adjust.
1353 * sysdeps/unix/sysv/linux/powerpc/libc-start.c
1354 (_libc_vdso_platform_setup): Likewise.
1356 * sysdeps/unix/sysv/linux/powerpc/dl-vdso.c: Move to...
1357 * sysdeps/unix/sysv/linux/dl-vdso.c: ...here.
1358 * sysdeps/unix/sysv/linux/powerpc/dl-vdso.h: Move to...
1359 * sysdeps/unix/sysv/linux/dl-vdso.h: ...here.
1360 * csu/libc-start.c: Pretty printing.
1361 Use VDSO_SETUP if defined.
1362 * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Define VDSO_SETUP
1363 and let generic code call into _libc_vdso_platform_setup.
1364 * sysdeps/unix/sysv/linux/x86_64/libc-start.c: New file.
1365 * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: New file.
1366 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Pretty printing.
1367 Define INLINE_VSYSCALL and INTERNAL_VSYSCALL.
1368 * sysdeps/unix/sysv/linux/x86_64/Versions: Export __vdso_clock_gettime
1370 * sysdeps/unix/sysv/linux/x86_64/Makefile [subdir=elf]
1371 (sysdep_rountines): Add dl-vdso.
1373 * sysdeps/unix/sysv/linux/powerpc/Makefile: Use sysdep_routines instead
1376 * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Add
1377 attribute_hidden to __vdso_gettimeofday prototype.
1379 2007-08-12 Roland McGrath <roland@redhat.com>
1381 * manual/stdio.texi (Variable Arguments Output): Fix xref to gcc manual.
1382 From: Karl Berry <karl@freefriends.org>.
1384 2007-08-11 Ulrich Drepper <drepper@redhat.com>
1386 * elf/dl-misc.c (_dl_sysdep_read_whole_file): We really don't need
1387 an atime update for the files we read.
1389 2007-08-10 Ulrich Drepper <drepper@redhat.com>
1391 * shadow/lckpwdf.c (__lckpwdf): Use O_CLOEXEC if possible.
1393 * nscd/connections.c: Use O_CLOEXEC if possible. Use mkostemp
1396 * misc/Makefile (routines): Add mkostemp and mkostemp64.
1397 * misc/Versions: Export mkostemp and mkostemp64 for GLIBC_2.7.
1398 * misc/mkostemp.c: New file.
1399 * misc/mkostemp64.c: New file.
1400 * stdlib/stdlib.h: Declare the new functions.
1401 * sysdeps/posix/tempname.c: Add new parameter which is added to
1402 the flags for open. Remove __GT_BIGFILE handling.
1403 * stdio-common/tempname.c: Likewise.
1404 * include/stdio.h: Adjust __gen_tempname prototype.
1405 Renumber __GT_* constants.
1406 * libio/oldtmpfile.c: Adjust for __gen_tempname interface change.
1407 * misc/mkdtemp.c: Likewise.
1408 * misc/mkstemp.c: Likewise.
1409 * misc/mkstemp64.c: Likewise.
1410 * misc/mktemp.c: Likewise.
1411 * stdio-common/tempnam.c: Likewise.
1412 * stdio-common/tmpfile.c: Likewise.
1413 * stdio-common/tmpfile64.c: Likewise.
1414 * stdio-common/tmpnam.c: Likewise.
1415 * stdio-common/tmpnam_r.c: Likewise.
1417 2007-08-10 Roland McGrath <roland@frob.com>
1419 * sysdeps/mach/hurd/bits/ioctls.h (NLDLY, TABDLY, BSDLY, VTDLY):
1421 (NLDELAY, CRDELAY, TBDELAY, BSDELAY, VTDELAY): Define to those.
1422 Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
1424 2007-08-10 Ulrich Drepper <drepper@redhat.com>
1426 * nss/nss_files/files-XXX.c (internal_setent): Use O_CLOEXEC if
1428 * nss/nss_files/files-alias.c (internal_setent): Likewise.
1429 * nss/Makefile (libnss_files-routines): Add files-have_o_cloexec.
1430 * nss/nss_files/files-have_o_cloexec.c: New file.
1432 * sysdeps/unix/sysv/linux/shm_open.c (shm_open): Use O_CLOEXEC if
1435 2007-08-10 Jakub Jelinek <jakub@redhat.com>
1437 * sysdeps/ieee754/ldbl-128ibm/strtold_l.c (___new_strtold_l,
1438 ___new_wcstold_l): New weak aliases.
1439 (strtold_l, wcstold_l): Use them as second argument for
1442 2007-08-09 Ulrich Drepper <drepper@redhat.com>
1444 * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Use correct
1445 register in test for error.
1447 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_CLOEXEC): Define.
1448 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (O_CLOEXEC): Likewise.
1450 * po/sv.po: Update from translation team.
1452 2007-08-06 Roland McGrath <roland@redhat.com>
1454 * include/stdlib.h: Add libc_hidden_proto for strto*, __strto*_l.
1455 Remove __strto*_l inlines.
1456 * include/wchar.h: Add libc_hidden_proto for wcsto*, __wcsto*_l.
1457 * stdlib/strtod.c: Add libc_hidden_def.
1458 * stdlib/strtod_l.c: Likewise.
1459 * stdlib/strtold.c [__LONG_DOUBLE_MATH_OPTIONAL]: Add libc_hidden_proto
1460 for __new_strtold and __new_wcstold.
1461 * sysdeps/ieee754/ldbl-128ibm/strtold_l.c: Add libc_hidden_proto for
1463 * stdlib/strtol.c: Add libc_hidden_def.
1464 * stdlib/strtol_l.c: Likewise.
1465 * sysdeps/wordsize-64/strtol.c: Add libc_hidden_ver for strtoll and
1468 * scripts/data/localplt-powerpc-linux-gnu.data: New file.
1470 * scripts/data/localplt-x86_64-linux-gnu.data: File renamed to ...
1471 * scripts/data/localplt-generic.data: ... here.
1472 * elf/Makefile (check-data): Get generic file if no other.
1473 ($(objpfx)check-localplt.out): Make target unconditional.
1475 * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_discover_osversion):
1478 2007-08-05 Ulrich Drepper <drepper@redhat.com>
1480 * po/zh_CN.po: Updated translation from translation team.
1482 2007-08-05 Jakub Jelinek <jakub@redhat.com>
1484 * sysdeps/unix/sysv/linux/powerpc/powerpc32/socket.S (__socket):
1485 Don't use CGOTSETUP and CGOTRESTORE macros.
1487 2007-08-04 Roland McGrath <roland@redhat.com>
1489 * posix/Makefile ($(objpfx)getconf.speclist): Fix typo.
1491 2007-08-04 Jakub Jelinek <jakub@redhat.com>
1493 * io/bits/fcntl2.h (open, open64, openat, openat64): Add
1494 __extension__ around the whole statement expression.
1496 2007-08-04 Ulrich Drepper <drepper@redhat.com>
1498 * sysdeps/unix/opendir.c (__alloc_dir): Correct order of DIR
1499 elements during initialization.
1501 * po/pl.po: Updated translation from translation team.
1502 * po/tr.po: Likewise.
1503 * po/nl.po: Likewise.
1505 2007-08-03 Ulrich Drepper <drepper@redhat.com>
1507 * rt/aio.h: Add __nonnull attributes.
1509 2007-08-03 Jakub Jelinek <jakub@redhat.com>
1511 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Properly handle -0.
1512 * stdlib/Makefile (tests): Add tst-strtod5.
1513 (tst-strtod5-ENV): New.
1514 * stdlib/tst-strtod5.c: New file.
1516 * intl/dcigettext.c (_nl_find_msg): Free encoding if __gconv_open
1518 * intl/finddomain.c (_nl_find_domain): Free normalized_codeset
1521 * elf/dl-load.c (decompose_rpath): Free copy if result couldn't be
1524 2007-08-03 Jakub Jelinek <jakub@redhat.com>
1526 * rt/mqueue.h (mq_timedreceive, mq_timedsend): Fix nonnull argument
1529 2007-08-02 Ulrich Drepper <drepper@redhat.com>
1531 * io/Makefile (aux): Add have_o_cloexec.
1532 * include/fcntl.h: Declare __have_o_cloexec.
1533 * io/have_o_cloexec.c: New file.
1534 * sysdeps/unix/opendir.c (__opendir): Use O_CLOEXEC is available.
1535 (__alloc_dir): If O_CLOEXEC has been used, don't duplicate the
1536 fcntl call if not necessary.
1537 * login/utmp_file.c (setutent_file): Use __have_o_cloexec instead
1540 * sysdeps/unix/opendir.c (__alloc_dir): Don't initialize ->data.
1541 Avoid memset, add explicit initialization.
1542 * sysdeps/unix/dirstream.h (struct __dirstream): Move data elemtn
1543 to the end and change into zero-sized array.
1544 Move lock member to fill a hole on 64-bit platforms.
1546 * stdlib/stdlib.h: Remove __strto*_internal prototypes and strto*
1548 * include/stdlib.h: Add __strto*_internal prototypes here.
1549 * wcsmbs/wchar.h: Remove __wcsto*_internal prototypes and wcsto*
1551 * include/wchar.h: Add __wcsto*_internal prototypes.
1552 * sysdeps/generic/inttypes.h: No need to protect the declaration
1553 of the __strto*_internal and __wcsto*_internal members here.
1555 * rt/mqueue.h: Change const to __const and add nonnull attributes.
1557 2007-08-02 Roland McGrath <roland@redhat.com>
1559 * posix/Makefile ($(inst_libexecdir)/getconf): Make hard links to
1560 $(inst_bindir)/getconf if possible.
1562 * posix/Makefile ($(objpfx)getconf.speclist): New target.
1563 (generated): Add it.
1564 ($(inst_libexecdir)/getconf): Use it.
1566 2007-08-01 Ulrich Drepper <drepper@redhat.com>
1568 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Using
1569 /proc is faster and sufficient. /sys is still needed for
1572 2007-08-01 Jakub Jelinek <jakub@redhat.com>
1574 * sysdeps/unix/sysv/linux/i386/syscalls.list (fallocate): Add fallocate
1575 syscall as __fallocate64.
1576 * sysdeps/unix/sysv/linux/i386/posix_fallocate.c: New file.
1577 * sysdeps/unix/sysv/linux/i386/posix_fallocate64.c: New file.
1579 2007-07-30 Jakub Jelinek <jakub@redhat.com>
1581 * stdlib/tst-strtod2.c (do_test): Use %tu in fmt string for ptrdiff_t
1584 * stdio-common/tst-fmemopen2.c (do_test): Avoid fmt string warning
1585 if off_t is different rank from size_t.
1587 * sysdeps/generic/unwind-dw2.c (extract_cie_info, execute_cfa_program,
1588 uw_frame_state_for): Avoid type punning warnings.
1589 * sysdeps/generic/unwind-dw2-fde-glibc.c
1590 (_Unwind_IteratePhdrCallback): Likewise.
1591 * sysdeps/generic/unwind-dw2-fde.c (_Unwind_Find_FDE): Likewise.
1592 (binary_search_single_encoding_fdes, binary_search_mixed_encoding_fdes,
1593 get_cie_encoding, linear_search_fdes): Don't mix char and unsigned char
1596 2007-07-31 Ulrich Drepper <drepper@redhat.com>
1598 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs_conf): Count
1599 total processors using sysfs.
1600 (__get_nprocs): Use sysfs to determine which processors are online.
1602 2007-07-31 Jakub Jelinek <jakub@redhat.com>
1604 * sysdeps/unix/sysv/linux/posix_fallocate.c (posix_fallocate): Fix
1605 syscall arguments count.
1607 * stdio-common/tfformat.c (sprint_doubles): Add 12 new tests.
1609 2007-07-30 Roland McGrath <roland@redhat.com>
1611 * manual/libc.texinfo: Update copyrights, formatting magic, and
1612 @dircategory. From Karl Berry <karl@freefriends.org>.
1614 2007-07-29 Ulrich Drepper <drepper@redhat.com>
1617 * io/Makefile (headers): Add bits/fcntl2.h.
1619 * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_ZERO_S): Optimize
1621 (__CPU_EQUAL_S): Likewise.
1623 * posix/Makefile (routines): Add sched_cpualloc and sched_cpufree.
1624 (tests): Add tst-cpuset.
1625 * posix/sched_cpualloc.c: New file.
1626 * posix/sched_cpufree.c: New file.
1627 * posix/tst-cpuset.c: New file.
1628 * posix/Versions: Export __sched_cpualloc and __sched_cpufree for
1630 * sysdeps/unix/sysv/linux/bits/sched.h: Define __CPU_*_S macros.
1631 * posix/sched.h: Define old CPU_* macros in temers of __CPU_*_S
1632 macros. Define CPU_*_S macros.
1634 2007-07-28 Ulrich Drepper <drepper@redhat.com>
1636 * posix/getconf.c (vars): Add missing _SC_LEVEL4_CACHE_LINESIZE
1640 * stdio-common/printf_fp.c (___printf_fp): Fix special case of
1641 #.0g and value rounded to 1.0.
1642 * stdio-common/tfformat.c (sprint_doubles): Add two new tests.
1644 2007-07-26 Jakub Jelinek <jakub@redhat.com>
1646 * locale/programs/ld-monetary.c (monetary_finish): Avoid range check
1647 for int_frac_digits and frac_digits.
1649 * login/logout.c (logout): Avoid aliasing violation.
1650 * login/logwtmp.c (logwtmp): Likewise.
1652 * libio/genops.c (_IO_un_link): Avoid aliasing violation.
1654 * nscd/selinux.c (preserve_capabilities): Initialize new_caps
1656 * iconv/gconv_open.c (__gconv_open): Initialize ptr to avoid
1658 * nis/nis_subr.c (nis_getnames): Initialize saveptr to avoid
1660 * resolv/inet_ntop.c (inet_ntop6): Initialize best.len and cur.len
1663 * nss/nsswitch.c (__nss_lookup_function): Don't cast &ni->known to
1665 * nss/nsswitch.h (service_user): Use void * type for KNOWN field.
1667 * nss/nss_files/files-hosts.c (LINE_PARSER): Cast host_addr to
1668 char * to avoid warning.
1669 * nis/nss_nis/nis-hosts.c (LINE_PARSER): Likewise.
1671 * timezone/Makefile (CFLAGS-zdump.c): Add -fwrapv.
1673 * locale/programs/ld-ctype.c (ctype_finish, set_class_defaults,
1674 allocate_arrays): Cast second argument to charmap_find_symbol
1675 to char * to avoid warnings.
1677 * locale/programs/repertoire.c (repertoire_new_char): Change
1678 from_nr, to_nr and cnt to unsigned long, adjust printf format
1681 * locale/programs/ld-collate.c (insert_value, handle_ellipsis):
1682 Cast second argument to new_element to char * to avoid warnings.
1684 * locale/weightwc.h (findidx): Cast &extra[-i] to const int32_t *.
1686 * intl/gettextP.h (struct loaded_domain): Change plural to const
1687 struct expression *.
1688 * intl/plural-eval.c (plural_eval): Change first argument to
1689 const struct expression *.
1690 * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Change first
1691 argument to const struct expression **.
1692 * intl/plural-exp.h (EXTRACT_PLURAL_EXPRESSION, plural_eval): Adjust
1694 * intl/loadmsgcat (_nl_unload_domain): Cast away const
1695 in call to __gettext_free_exp.
1697 * posix/fnmatch.c (fnmatch): Rearrange code to avoid maybe
1698 unitialized wstring/wpattern var warnings.
1700 * posix/runtests.c (struct a_test): Make data field const char *.
1702 * stdio-common/tst-sprintf2.c (main): Don't declere u, v and buf
1703 vars if not LDBL_MANT_DIG >= 106.
1705 * stdio-common/Makefile (CFLAGS-vfwprintf.c): Add -Wno-unitialized.
1707 * stdio-common/vfprintf.c (vfprintf): Cast first arugment to
1708 __find_specmb to avoid warning.
1710 * rt/tst-mqueue1.c (do_one_test): Add casts to avoid warnings.
1712 * debug/test-strcpy_chk.c (do_tests, do_random_tests): Add casts
1715 * sysdeps/ieee754/ldbl-96/s_roundl.c (huge): Add L suffix to
1718 * sysdeps/unix/clock_gettime.c (clock_gettime): Only define
1719 tv var when it will be actually used.
1721 * sunrpc/rpc_cmsg.c (xdr_callmsg): Cast IXDR_PUT_* to void
1724 * iconvdata/gbk.c (BODY): Make buf and cp char instead of unsigned
1725 char array resp. pointer.
1726 * iconvdata/iso-2022-kr.c (BODY): Make buf unsigned char instead of
1728 * iconvdata/cns11643.h (cns11643_to_ucs4): Change first argument
1729 to const unsigned char **.
1730 (ucs4_to_cns11643): Change second argument to unsigned char *.
1731 * iconvdata/euc-tw.c (BODY): Change endp type to
1732 const unsigned char *.
1733 * iconvdata/iso-ir-165.h (ucs4_to_isoir165): Change second argument
1735 * iconvdata/ibm1008_420.c (LOOP_NEED_FLAGS): Don't define.
1736 * iconvdata/iso-2022-cn.c (BODY): Change buf to unsigned char array.
1737 * iconvdata/iso-2022-cn-ext.c (BODY): Change buf, tmpbuf, tmp
1738 types to unsigned char pointers/arrays instead of char.
1739 * iconvdata/jis0201.h (ucs4_to_jisx0201): Change second argument
1741 * iconvdata/jis0208.h (ucs4_to_jisx0208): Likewise.
1742 * iconvdata/jis0212.h: Include assert.h.
1743 (ucs4_to_jisx0212): Change second argument to unsigned char *.
1744 assert that if cp[0] is not '\0', cp[1] is not '\0' either instead
1745 of trying to handle that.
1746 * iconvdata/euc-kr.c (euckr_from_ucs4): Initialize also cp[1] to
1748 * iconvdata/euc-jp-ms.c (from_ucs4_lat1, from_ucs4_greek,
1749 from_ucs4_cjk, from_ucs4_cjkcpt, from_ucs4_extra): Change type to
1750 two dimensional const unsigned char arrays.
1751 (BODY): Cast "" to (const unsigned char *) for assignment to cp.
1752 Initialize endp to inptr to shut up a warning.
1754 2007-07-20 Jakub Jelinek <jakub@redhat.com>
1757 * time/strptime_l.c (__strptime_internal): Silently ignore
1758 strftime modifiers and field width in recursive calls.
1760 * include/time.h (enum ptime_locale_status): Remove.
1761 (__strptime_internal): Remove decided and era_cnt arguments,
1762 add statep argument.
1763 * time/strptime_l.c (__strptime_internal): Remove decided
1764 and era_cnt arguments, add statep argument. Don't recompute
1765 any fields in recursive calls, only update caller's tm
1766 and state, if recursive call fails, don't change tm nor
1768 (get_alt_number): Adjust.
1769 (recursive): Adjust caller.
1770 (strptime): Likewise.
1771 * time/strptime.c (strptime): Likewise.
1773 2007-07-19 Jakub Jelinek <jakub@redhat.com>
1775 * iconv/gconv_int.h (__GCONV_NULCONV): New internal only error code.
1776 * iconv/gconv_cache.c (__gconv_lookup_cache): Return __GCONV_NULCONV
1777 if from and to charsets are the same.
1778 * iconv/gconv_db.c (__gconv_find_transform): Likewise.
1779 * intl/dcigettext.c (_nl_find_msg): Return NULL even if __gconv_open
1780 returns __GCONV_NOCONV, but not for __GCONV_NULCONV.
1782 2007-07-17 Jakub Jelinek <jakub@redhat.com>
1784 * wcsmbs/wchar.h: Only define wint_t if __need_wint_t.
1785 Don't define wint_t when __need_mbstate_t unless it
1787 (__mbstate_t): Use __WINT_TYPE__ rather than wint_t
1788 in the typedef if possible.
1789 * wctype/wctype.h (wint_t): Define by including
1790 wchar.h with __need_wint_t instead of including stddef.h
1791 with __need_wint_t and as fallback definining it ourselves.
1792 * iconv/gconv.h (__need_wint_t): Define before including
1794 * sysdeps/gnu/_G_config.h: Don't include gconv.h if not _LIBC
1795 or _GLIBCPP_USE_WCHAR_T.
1796 (__need_wchar_t): Don't define
1797 if not _LIBC or _GLIBCPP_USE_WCHAR_T.
1798 (__need_wint_t): Don't define before including stddef.h,
1799 define before including wchar.h only if _LIBC or
1800 _GLIBCPP_USE_WCHAR_T.
1801 (_G_iconv_t): Don't define if not _LIBC or _GLIBCPP_USE_WCHAR_T.
1802 * sysdeps/mach/hurd/_G_config.h: Likewise.
1803 * sysdeps/generic/_G_config.h: Likewise.
1804 * libio/libio.h (__wunderflow, __wuflow, __woverflow): Only
1805 prototype if _LIBC or _GLIBCPP_USE_WCHAR_T.
1806 (_IO_getwc_unlocked, _IO_putwc_unlocked): Only define
1807 if _LIBC or _GLIBCPP_USE_WCHAR_T.
1809 2007-07-28 Ulrich Drepper <drepper@redhat.com>
1811 * sysdeps/posix/posix_fallocate64.c: Undefine
1812 __posix_fallocate64_l64 before alias handling.
1813 * sysdeps/unix/sysv/linux/posix_fallocate.c: New file.
1814 * sysdeps/unix/sysv/linux/posix_fallocate64.c: New file.
1815 * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c: New file.
1816 * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate64.c: New file.
1818 * io/tst-posix_fallocate.c: Include <fcntl.h>.
1820 2007-07-23 Jakub Jelinek <jakub@redhat.com>
1822 * locale/programs/ld-collate.c (atwc): New variable.
1823 (add_to_tablewc): New toplevel function, moved from collate_output.
1824 (collate_output): Remove add_to_tablewc nested function.
1826 * iconv/iconvconfig.c (hash_table, hash_size): New toplevel vars.
1827 (name_insert): New function.
1828 (write_output): Remove hash_table and hash_size vars and name_insert
1831 2007-07-24 Roland McGrath <roland@redhat.com>
1833 * Makerules (install-others-programs-nosubdir): New target.
1834 (install-no-libc.a-nosubdir): Depend on it.
1836 * iconv/Makefile (install-others-programs): Set this instead of
1838 * login/Makefile (install-others-programs): Likewise.
1839 * posix/Makefile (install-others-programs): Likewise.
1841 * Makerules (install-no-libc.a-nosubdir): Clean up conditional
1844 2007-07-23 Ulrich Drepper <drepper@redhat.com>
1846 * io/Makefile (tests): Add tst-posix_fallocate.
1847 * io/tst-posix_fallocate.c: New file.
1849 * sysdeps/unix/sysv/linux/kernel-features.h: Define
1852 2007-07-22 Roland McGrath <roland@frob.com>
1854 * hurd/getdport.c: Add missing copyright year update.
1856 * sysdeps/mach/hurd/bits/fcntl.h [__USE_GNU] (O_CLOEXEC): New macro.
1857 * hurd/port2fd.c (_hurd_port2fd): Implement O_CLOEXEC.
1859 2007-07-22 Ulrich Drepper <drepper@redhat.com>
1861 * login/utmp_file.c (setutent_file): Use O_CLOEXEC if possible.
1863 * libio/fileops.c (_IO_new_file_fopen): Recognize 'e' flag and set
1864 O_CLOEXEC is needed.
1865 * nis/nss_compat/compat-grp.c: Use 'e' flag when opening file.
1866 Avoid additional fcntl to set O_CLOEXEC if not needed.
1867 * nis/nss_compat/compat-initgroups.c: Likewise.
1868 * nis/nss_compat/compat-pwd.c: Likewise.
1869 * nis/nss_compat/compat-spwd.c: Likewise.
1871 2007-07-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
1874 * manual/errno.texi: Change ECANCELED value to 119.
1877 * mach/lock-intern.h: Include <sys/cdefs.h>.
1880 * sysdeps/mach/hurd/sigaction.c (__sigaction): Check ACT != NULL before
1884 * sysdeps/mach/hurd/sigsuspend.c (sigsuspend_not_cancel): Define alias
1887 * sysdeps/mach/i386/sysdep.h: Include <dl-sysdep.h> and <tls.h>.
1889 2006-06-13 Thomas Schwinge <tschwinge@gnu.org>
1891 * sysdeps/mach/hurd/tls.h: Change `ASSEMBLER' conditional to
1893 * sysdeps/mach/hurd/i386/tls.h: Likewise.
1895 2007-07-21 Ulrich Drepper <drepper@redhat.com>
1897 * nscd/nscd_helper.c (get_mapping): Use MSG_CMSG_CLOEXEC for
1898 descriptor received from nscd.
1900 * sysdeps/unix/sysv/linux/bits/socket.h: Define MSG_CMSG_CLOEXEC.
1902 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_CLOEXEC.
1903 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
1904 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
1905 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
1906 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
1907 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
1909 2007-07-20 Jakub Jelinek <jakub@redhat.com>
1912 * manual/signal.texi (Non-atomic Example): Make memory var volatile.
1915 * login/forkpty.c (forkpty): Close master and slave fds on
1916 fork failure. Patch by
1917 Mikulas Patocka <mikulas@artax.karlin.mff.cuni.cz>.
1919 2007-07-18 Jakub Jelinek <jakub@redhat.com>
1921 * include/features.h (__USE_ISOC95): New define.
1922 * wcsmbs/wchar.h (fwprintf, fwscanf, wprintf, wscanf, swprintf,
1923 swscanf, vfwprintf, vwprintf, vswprintf, fwide): Define even
1924 for -std=iso9899:199409.
1925 * CONFORMANCE: Remove comments about unsupported AMD1.
1927 2007-07-17 Jakub Jelinek <jakub@redhat.com>
1929 * sysdeps/ia64/sched_cpucount.c: New file.
1930 * sysdeps/powerpc/sched_cpucount.c: New file.
1932 * sysdeps/unix/sysv/linux/bits/sched.h (__sched_cpucount): Add
1933 __BEGIN_DECLS/__END_DECLS around the prototype.
1934 * bits/sched.h (__sched_cpucount): Likewise. Make second argument
1935 pointer to const cpu_set_t.
1937 * bits/types.h: Don't include stddef.h, don't define __need_size_t.
1938 * signal/signal.h <__USE_BSD || __USE_XOPEN_EXTENDED>: Define
1939 __need_size_t and include stddef.h.
1940 * sysvipc/sys/msg.h: Likewise.
1941 * posix/sched.h: Likewise.
1942 * hurd/hurd/signal.h (__need_size_t): Define.
1944 * CONFORMANCE: ctype.h and wctype.h no longer define size_t,
1945 neither does signal.h in pedantic ISO C namespaces. stdio.h
1946 no longer defines wint_t or wchar_t.
1948 * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): New function.
1949 * debug/vfwprintf_chk.c (__vfwprintf_chk): Use
1950 _IO_acquire_lock_clear_flags2 instead of _IO_acquire_lock.
1951 * debug/vprintf_chk.c (__vprintf_chk): Likewise.
1952 * debug/vwprintf_chk.c (__vwprintf_chk): Likewise.
1953 * debug/vfprintf_chk.c (__vfprintf_chk): Likewise.
1954 * debug/fwprintf_chk.c (__fwprintf_chk): Likewise.
1955 * debug/printf_chk.c (__printf_chk): Likewise.
1956 * debug/fprintf_chk.c (__fprintf_chk): Likewise.
1957 * debug/wprintf_chk.c (__wprintf_chk): Likewise.
1959 * sysdeps/pthread/bits/stdio-lock.h (_IO_acquire_lock_clear_flags2):
1962 * bits/confname.h (_CS_POSIX_V6_WIDTH_RESTRICTED_ENVS): Define.
1963 * posix/getconf.c (vars): Add POSIX_V6_WIDTH_RESTRICTED_ENVS.
1965 2007-07-16 Jakub Jelinek <jakub@redhat.com>
1968 * stdlib/stdlib.h (realloc): Remove __attribute_malloc__.
1969 * malloc/malloc.h (realloc): Likewise.
1971 * libio/iopopen.c (_IO_new_proc_open): Don't close child_std_end
1972 if one of proc_file_chain streams has that fileno.
1973 * stdio-common/Makefile (tests): Add tst-popen2.
1974 * stdio-common/tst-popen2.c: New test.
1976 2007-07-14 Jakub Jelinek <jakub@redhat.com>
1978 * elf/ldconfig.c: Allow GPLv2 or any later version.
1979 * elf/readlib.c: Likewise.
1980 * elf/chroot_canon.c: Likewise.
1981 * elf/cache.c: Likewise.
1982 * nscd/mem.c: Likewise.
1983 * nscd/getpwuid_r.c: Likewise.
1984 * nscd/grpcache.c: Likewise.
1985 * nscd/aicache.c: Likewise.
1986 * nscd/getsrvbynm_r.c: Likewise.
1987 * nscd/nscd.c: Likewise.
1988 * nscd/servicescache.c: Likewise.
1989 * nscd/getsrvbypt_r.c: Likewise.
1990 * nscd/initgrcache.c: Likewise.
1991 * nscd/gethstbyad_r.c: Likewise.
1992 * nscd/gethstbynm2_r.c: Likewise.
1993 * nscd/getgrnam_r.c: Likewise.
1994 * nscd/nscd_setup_thread.c: Likewise.
1995 * nscd/getpwnam_r.c: Likewise.
1996 * nscd/gai.c: Likewise.
1997 * nscd/connections.c: Likewise.
1998 * nscd/dbg_log.c: Likewise.
1999 * nscd/cache.c: Likewise.
2000 * nscd/hstcache.c: Likewise.
2001 * nscd/nscd_conf.c: Likewise.
2002 * nscd/getgrgid_r.c: Likewise.
2003 * nscd/pwdcache.c: Likewise.
2004 * catgets/gencat.c: Likewise.
2005 * locale/programs/linereader.h: Likewise.
2006 * locale/programs/locarchive.c: Likewise.
2007 * locale/programs/ld-paper.c: Likewise.
2008 * locale/programs/locfile-kw.h: Likewise.
2009 * locale/programs/ld-address.c: Likewise.
2010 * locale/programs/xmalloc.c: Likewise.
2011 * locale/programs/ld-time.c: Likewise.
2012 * locale/programs/localedef.c: Likewise.
2013 * locale/programs/simple-hash.c: Likewise.
2014 * locale/programs/xstrdup.c: Likewise.
2015 * locale/programs/ld-numeric.c: Likewise.
2016 * locale/programs/locfile-kw.gperf: Likewise.
2017 * locale/programs/ld-collate.c: Likewise.
2018 * locale/programs/charmap-kw.gperf: Likewise.
2019 * locale/programs/charmap.h: Likewise.
2020 * locale/programs/charmap-kw.h: Likewise.
2021 * locale/programs/config.h: Likewise.
2022 * locale/programs/locfile.c: Likewise.
2023 * locale/programs/ld-ctype.c: Likewise.
2024 * locale/programs/charmap.c: Likewise.
2025 * locale/programs/ld-messages.c: Likewise.
2026 * locale/programs/repertoire.h: Likewise.
2027 * locale/programs/locale.c: Likewise.
2028 * locale/programs/ld-name.c: Likewise.
2029 * locale/programs/linereader.c: Likewise.
2030 * locale/programs/locfile.h: Likewise.
2031 * locale/programs/3level.h: Likewise.
2032 * locale/programs/ld-monetary.c: Likewise.
2033 * locale/programs/ld-measurement.c: Likewise.
2034 * locale/programs/charmap-dir.c: Likewise.
2035 * locale/programs/ld-identification.c: Likewise.
2036 * locale/programs/localedef.h: Likewise.
2037 * locale/programs/charmap-dir.h: Likewise.
2038 * locale/programs/repertoire.c: Likewise.
2039 * locale/programs/simple-hash.h: Likewise.
2040 * locale/programs/ld-telephone.c: Likewise.
2041 * locale/programs/locale-spec.c: Likewise.
2042 * locale/programs/locfile-token.h: Likewise.
2043 * posix/getconf.c: Likewise.
2044 * iconv/dummy-repertoire.c: Likewise.
2045 * iconv/iconv_charmap.c: Likewise.
2046 * iconv/iconvconfig.c: Likewise.
2047 * iconv/iconv_prog.c: Likewise.
2048 * malloc/memusagestat.c: Likewise.
2049 * sysdeps/unix/sysv/linux/nscd_setup_thread.c: Likewise.
2051 2007-07-06 Kaz Kojima <kkojima@rr.iij4u.or.jp>
2053 * sysdeps/sh/bsd-setjmp.S (setjmp): Use correct argument registers.
2054 * sysdeps/sh/bsd-_setjmp.S (_setjmp): Likewise.
2055 * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Do correct sanity
2056 check for the first argument.
2058 2007-07-12 Jakub Jelinek <jakub@redhat.com>
2061 * math/tgmath.h (__tgmath_real_type_sub): Formatting.
2062 (__tgmath_real_type): Fix if expr is const int or other const
2063 qualified integral type.
2064 (__TGMATH_UNARY_REAL_ONLY): Rewritten to avoid using statement
2065 expressions and handle const qualified arguments.
2066 (__TGMATH_BINARY_FIRST_REAL_ONLY, __TGMATH_UNARY_REAL_IMAG,
2067 __TGMATH_UNARY_REAL_IMAG_RET_REAL): Likewise.
2068 (__TGMATH_UNARY_REAL_RET_ONLY): Rewritten to avoid using
2069 statement expressions.
2070 (__TGMATH_BINARY_REAL_ONLY, __TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY,
2071 __TGMATH_TERNARY_REAL_ONLY, __TGMATH_BINARY_REAL_IMAG): Likewise.
2072 (__TGMATH_UNARY_IMAG): Define.
2073 (conj, cproj): Use __TGMATH_UNARY_IMAG macro.
2074 * math/Makefile (tests): Add test-tgmath2.
2075 (CFLAGS-test-tgmath2.c): Add.
2076 * math/test-tgmath.c (fy, dy, ly, fz, dz, lz, count_cdouble,
2077 count_cfloat, count_cldouble): New variables.
2079 (main): Check number of complex calls as well.
2080 (F(compile_test)): Add complex tests and tests with const qualified
2082 (y, z, ccount): Define.
2083 (F(cacos), F(casin), F(catan), F(ccos), F(csin), F(ctan), F(cacosh),
2084 F(casinh), F(catanh), F(ccosh), F(csinh), F(ctanh), F(cexp), F(clog),
2085 F(csqrt), F(cpow), F(cabs), F(carg), F(creal), F(cimag), F(conj),
2086 F(cproj)): New functions.
2087 * math/test-tgmath2.c: New test.
2089 2007-07-11 Jakub Jelinek <jakub@redhat.com>
2092 * elf/dl-load.c (_dl_rtld_di_serinfo): Output / in LD_LIBRARY_PATH,
2093 RPATH etc. as "/" rather than "", don't segfault on empty paths,
2095 * dlfcn/Makefile (distribute): Add glreflib3.c.
2096 (module-names): Add glreflib3.
2097 ($(objpfx)tst-dlinfo.out): Depend on glreflib3.so rather than
2099 (LDFLAGS_glreflib3.so): New.
2100 * dlfcn/tst-dlinfo.c (do_test): Load glreflib3.so instead of
2102 * dlfcn/glreflib3.c: New file.
2104 * intl/finddomain.c (_nl_find_domain): If _nl_explode_name
2105 returned -1, return NULL.
2106 * intl/explodename.c (_nl_explode_name): Return -1 if
2107 _nl_normalize_codeset failed.
2109 2007-07-07 Steven Munroe <sjmunroe@us.ibm.com>
2111 * sysdeps/powerpc/powerpc32/power6/memset.S: Update comments.
2112 Specify .machine power6 to get ISA-V2.0 branch hints. Unroll loops
2113 and avoid branch misspredicts for > 31 bytes memset case.
2114 * sysdeps/powerpc/powerpc64/power6/memset.S: Likewise.
2115 Remove toc ref to __cache_line_size.
2117 * sysdeps/powerpc/powerpc32/power4/memcmp.S: Specify .machine power4
2118 to get ISA-V2.0 branch hints.
2119 * sysdeps/powerpc/powerpc32/power4/memcpy.S: Likewise
2120 * sysdeps/powerpc/powerpc32/power4/memset.S: Likewise
2121 * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
2122 * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
2123 * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
2124 * sysdeps/powerpc/powerpc64/power4/memset.S: Likewise.
2125 Remove toc ref to __cache_line_size.
2127 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S:
2128 Include math_ldbl_opt.h.
2130 2007-07-10 Ulrich Drepper <drepper@redhat.com>
2133 * time/strptime_l.c (__strptime_internal): Implement greedy
2134 matching of weekday and month names.
2136 2007-07-09 Roland McGrath <roland@redhat.com>
2138 * elf/elf.h (NT_GNU_ABI_TAG): New macro.
2139 (ELF_NOTE_ABI): Use it.
2140 (NT_GNU_HWCAP, NT_GNU_BUILD_ID): New macros.
2142 2007-07-09 Ulrich Drepper <drepper@redhat.com>
2144 * sysdeps/x86_64/cacheinfo.c (intel_02_known): Add new entries.
2145 * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
2147 2007-07-07 Ulrich Drepper <drepper@redhat.com>
2150 * stdio-common/vfscanf.c (_IO_vfscanf): Add additional test for EOF
2151 in loop to look for conversion specifier to avoid testing of
2153 * stdio-common/Makefile (tests): Add bug18, bug18a, bug19, bug19a.
2154 * stdio-common/bug18.c: New file.
2155 * stdio-common/bug18a.c: New file.
2156 * stdio-common/bug19.c: New file.
2157 * stdio-common/bug19a.c: New file.
2159 2007-07-05 Mike Frysinger <vapier@gentoo.org>
2161 * Makeconfig ($(common-objpfx)gnu/lib-names.stmp): Use LC_ALL=C when
2164 2007-07-01 Jakub Jelinek <jakub@redhat.com>
2166 * elf/dl-sysdep.c (_dl_important_hwcaps): Add integer overflow check.
2167 * elf/dl-minimal.c (__libc_memalign): Likewise. Handle malloc (0).
2168 Return NULL if mmap failed instead of asserting it does not.
2169 (calloc): Check for integer overflow.
2171 * elf/dl-minimal.c (__strtoul_internal): Fix parsing of numbers bigger
2174 2007-07-03 Jakub Jelinek <jakub@redhat.com>
2177 * nis/nss-default.c: Include errno.h.
2178 (init): Preserve errno.
2180 2007-07-02 Ulrich Drepper <drepper@redhat.com>
2182 * sysdeps/unix/sysv/linux/bits/socket.h (PF_UNIX): Update comment.
2184 2007-06-30 Ulrich Drepper <drepper@redhat.com>
2186 * sysdeps/unix/sysv/linux/bits/socket.h: Add PF_RXRPC and AF_RXRPC.
2188 2007-06-29 Martin Schwidefsky <schwidefsky@de.ibm.com>
2190 * sysdeps/unix/sysv/linux/bits/socket.h: Add PF_IUCV and AF_IUCV.
2192 2007-06-29 Martin Schwidefsky <schwidefsky@de.ibm.com>
2194 * sysdeps/s390/dl-procinfo.c: New file.
2195 * sysdeps/s390/dl-procinfo.h: New file.
2196 * sysdeps/unix/sysv/linux/s390/dl-procinfo.h: New file.
2198 2007-06-29 Jakub Jelinek <jakub@redhat.com>
2200 * elf/dl-load.c (open_verify): Find .note.ABI-tag notes even
2201 in PT_NOTE segments with multiple notes.
2202 * elf/readelflib.c (process_elf_file): Likewise.
2204 2007-06-22 Ulrich Drepper <drepper@redhat.com>
2206 * nis/nis_domain_of.c (__nis_domain_of): Make the code a bit more
2209 2007-06-19 Ulrich Drepper <drepper@redhat.com>
2211 * elf/dl-close.c (free_mem): Free _dl_scope_free_list.
2213 2007-06-13 Jakub Jelinek <jakub@redhat.com>
2215 * include/link.h: Don't include rtld-lowlevel.h.
2216 (struct link_map): Remove l_scope_lock.
2217 * sysdeps/generic/ldsodefs.h: Don't include rtld-lowlevel.h.
2218 (_dl_scope_free_list): New field (variable) in _rtld_global.
2219 (DL_LOOKUP_SCOPE_LOCK): Remove.
2220 (_dl_scope_free): New prototype.
2221 * elf/dl-runtime.c (_dl_fixup): Don't use __rtld_mrlock_*lock.
2222 Don't pass DL_LOOKUP_SCOPE_LOCK to _dl_lookup_symbol_x.
2223 (_dl_profile_fixup): Likewise.
2224 * elf/dl-sym.c (do_sym): Likewise. Use wrapped _dl_lookup_symbol_x
2225 whenever !RTLD_SINGLE_THREAD_P, use THREAD_GSCOPE_SET_FLAG and
2226 THREAD_GSCOPE_RESET_FLAG around it.
2227 * elf/dl-close.c (_dl_close_worker): Don't use
2228 __rtld_mrlock_{change,done}. Call _dl_scope_free on the old
2229 scope. Make sure THREAD_GSCOPE_WAIT () happens if any old
2230 scopes were queued or if l_scope_mem has been abandoned.
2231 * elf/dl-open.c (_dl_scope_free): New function.
2232 (dl_open_worker): Use it. Don't use __rtld_mrlock_{change,done}.
2233 * elf/dl-support.c (_dl_scope_free_list): New variable.
2234 * elf/dl-lookup.c (add_dependency): Remove flags argument.
2235 Remove DL_LOOKUP_SCOPE_LOCK handling.
2236 (_dl_lookup_symbol_x): Adjust caller. Remove DL_LOOKUP_SCOPE_LOCK
2238 * elf/dl-object.c (_dl_new_object): Don't use
2239 __rtld_mrlock_initialize.
2241 2007-06-19 Ulrich Drepper <drepper@redhat.com>
2243 * sysdeps/generic/ldsodefs.h (rtld_global): Reorder some elements
2245 (rtld_global_ro): Likewise.
2247 2007-06-18 Jakub Jelinek <jakub@redhat.com>
2249 * elf/dl-addr.c (_dl_addr): Skip PT_LOAD checking if l_contiguous.
2250 Move PT_LOAD checking to...
2251 (_dl_addr_inside_object): ... here, new function.
2252 * elf/dl-sym.c (do_sym): If not l_contiguous,
2253 call _dl_addr_inside_object.
2254 * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise.
2255 * dlfcn/dlinfo.c (dlinfo_doit): Likewise.
2256 * elf/dl-open.c (dl_open_worker): Likewise.
2257 (_dl_addr_inside_object): New function if IS_IN_rtld.
2258 * elf/dl-load.c (_dl_map_object_from_fd): Set l_contiguous if no
2259 holes are present or are PROT_NONE protected.
2260 * include/link.h (struct link_map): Add l_contiguous field.
2261 * sysdeps/generic/ldsodefs.h (_dl_addr_inside_object): New prototype.
2263 2007-06-18 Jakub Jelinek <jakub@redhat.com>
2264 Tomas Janousek <tjanouse@redhat.com>
2265 Ulrich Drepper <drepper@redhat.com>
2268 * resolv/res_send.c (send_dg): Remove socket_pf. Use ipv6_unavail
2269 member in __res_state, only convaddr4to6 if nssocks[ns] is a PF_INET6
2271 * resolv/resolv.h (__res_state): Add ipv6_unavail member. Make
2272 unused member a bitmap.
2273 * resolv/res_init.c (__res_vinit): Reset ipv6_unavail if IPv6
2274 servers are configured.
2276 2007-06-18 Jakub Jelinek <jakub@redhat.com>
2278 * elf/rtld.c (dl_main): Don't call init_tls more than once.
2280 2007-06-17 Andreas Schwab <schwab@suse.de>
2282 * sysdeps/generic/initfini.c: Tell gcc about the nonstandard sections.
2284 2007-06-16 Andreas Jaeger <aj@suse.de>
2287 * sysdeps/unix/sysv/linux/sys/ptrace.h
2288 (PTRACE_O_TRACESYSGOOD, PTRACE_O_TRACEFORK,
2289 PTRACE_O_TRACEVFORK, PTRACE_O_TRACECLONE, PTRACE_O_TRACEEXEC,
2290 PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT, PTRACE_O_MASK,
2291 PTRACE_EVENT_FORK, PTRACE_EVENT_VFORK, PTRACE_EVENT_CLONE,
2292 PTRACE_EVENT_EXEC, PTRACE_EVENT_VFORK_DONE, PTRACE_EVENT_EXIT):
2294 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
2295 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
2296 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
2297 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
2299 2007-06-16 Ulrich Drepper <drepper@redhat.com>
2302 * sysdeps/unix/sysv/linux/check_pf.c (make_request): When
2303 determining whether there are IPv4/IPv6 addresses, ignore loopback
2306 2007-06-14 Uros Bizjak <ubizjak@gmail.com>
2308 * soft-fp/soft-fp.h (CMPtype): Define to "int" if undefined.
2309 * soft-fp/eqdf2.c (__eqdf2): Use CMPtype instead of int
2310 as the return type. Change type of "r" variable to CMPtype.
2311 * soft-fp/eqsf2.c (__eqsf2): Likewise.
2312 * soft-fp/eqtf2.c (__eqtf2): Likewise.
2313 * soft-fp/gedf2.c (__gedf2): Likewise.
2314 * soft-fp/gesf2.c (__gesf2): Likewise.
2315 * soft-fp/getf2.c (__getf2): Likewise.
2316 * soft-fp/ledf2.c (__ledf2): Likewise.
2317 * soft-fp/lesf2.c (__lesf2): Likewise.
2318 * soft-fp/letf2.c (__letf2): Likewise.
2319 * soft-fp/unorddf2 (__unorddf2): Likewise.
2320 * soft-fp/unordsf2 (__unordsf2): Likewise.
2321 * soft-fp/unordtf2 (__unordtf2): Likewise.
2323 2007-06-09 Ulrich Drepper <drepper@redhat.com>
2325 * elf/do-lookup.h (do_lookup_x): Read r_nlist before r_list and
2326 make sure gcc doesn't mess around with this.
2328 2007-06-08 Ulrich Drepper <drepper@redhat.com>
2330 * elf/dl-lookup.c (_dl_lookup_symbol_x): Remove use of r_nlist.
2332 2007-06-08 Jakub Jelinek <jakub@redhat.com>
2334 * elf/dl-close.c (_dl_close_worker): Remove all to be removed
2335 libraries from the global scope at once and call THREAD_GSCOPE_WAIT
2336 at most once per _dl_close_worker.
2338 2007-06-08 Ulrich Drepper <drepper@redhat.com>
2340 * sysdeps/unix/sysv/linux/bits/sched.h: Make second parameter of
2341 __sched_cpucount as const.
2342 * posix/sched_cpucount.c: Adjust.
2344 * posix/sched_cpucount.c (__sched_cpucount): Allow using special
2345 instruction for counting bits.
2346 * sysdeps/x86_64/sched_cpucount.c: New file.
2348 2007-06-07 Ulrich Drepper <drepper@redhat.com>
2350 * configure.in: Avoid variable named BASH.
2351 * config.make.in: Likewise.
2352 Patch in part by Mike Frysinger.
2354 2007-06-06 Jakub Jelinek <jakub@redhat.com>
2357 * sysdeps/i386/ldbl2mpn.c (__mpn_extract_long_double): Treat
2358 pseudo-zeros as zero.
2359 * sysdeps/x86_64/ldbl2mpn.c: New file.
2360 * sysdeps/ia64/ldbl2mpn.c: New file.
2362 2007-06-04 Jakub Jelinek <jakub@redhat.com>
2364 * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (nextafterl): Remove
2365 unused ily variable. Fix nextafterl on +-__LDBL_MAX__ and +-Inf.
2366 Remove unreachable code at the end.
2368 2007-06-01 Steven Munroe <sjmunroe@us.ibm.com>
2370 * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Correct description of
2371 ldbl-128ibm in comment.
2372 (fpclassifyl): Correct classification of denormals.
2373 * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (nextafterl): Correct
2374 return value for MIN denormal. Rewrite using long double math too
2375 correctly handle denormals and canonicalize the results.
2377 2007-06-05 Jakub Jelinek <jakub@redhat.com>
2379 * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c
2380 (__mpn_construct_long_double): Fix conversion where result ought
2381 to be smaller than __LDBL_MIN__, or the low double should be
2382 denormal. Fix decision where to negate low double - honor round
2384 * stdio-common/tst-sprintf2.c: Include string.h.
2385 (COMPARE_LDBL): Define.
2386 (TEST): Also test whether a string hexadecimal float representation
2387 can be parsed back to the number.
2388 (main): Add a couple of further tests.
2390 2007-06-04 Jakub Jelinek <jakub@redhat.com>
2392 * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c
2393 (PRINT_FPHEX_LONG_DOUBLE): Fix printing numbers where lower double
2394 is non-zero, but smaller than 2 * __DBL_MIN__.
2395 * stdio-common/tst-sprintf2.c: New test.
2396 * stdio-common/Makefile (tests): Add tst-sprintf2.
2398 * math/test-misc.c (main): Don't run last batch of tests with
2399 IBM long double format.
2401 2007-05-31 Steven Munroe <sjmunroe@us.ibm.com>
2403 * sysdeps/powerpc/powerpc32/970/fpu/Implies: New file.
2404 * sysdeps/powerpc/powerpc32/power5/fpu/Implies: New file.
2405 * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: New file.
2406 * sysdeps/powerpc/powerpc32/power6/fpu/Implies: New file.
2407 * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: New file.
2408 * sysdeps/powerpc/powerpc64/970/fpu/Implies: New file.
2409 * sysdeps/powerpc/powerpc64/power5/fpu/Implies: New file.
2410 * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: New file.
2411 * sysdeps/powerpc/powerpc64/power6/fpu/Implies: New file.
2412 * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: New file.
2413 * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: New file.
2414 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies:
2416 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies:
2418 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies:
2420 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies:
2422 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies:
2424 * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: New file.
2425 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies:
2427 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies:
2429 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies:
2431 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies:
2433 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies:
2436 2007-05-31 Steven Munroe <sjmunroe@us.ibm.com>
2438 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S: Move.
2439 * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: To here.
2440 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrintf.S: Move.
2441 * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: To here.
2442 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llround.S: Move.
2443 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: To here.
2444 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llroundf.S: Move.
2445 * sysdeps/powerpc/powerpc32/power4/fpu/s_llroundf.S: To here.
2447 2007-05-22 Steven Munroe <sjmunroe@us.ibm.com>
2449 * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S
2450 (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
2451 * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S
2452 (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
2453 * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S
2454 (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
2455 * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S
2456 (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
2458 2007-05-21 Steven Munroe <sjmunroe@us.ibm.com>
2460 * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: New file.
2461 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.c: New file.
2462 * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: New file.
2463 * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: New file.
2465 2007-03-15 Steven Munroe <sjmunroe@us.ibm.com>
2467 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S
2468 [LONG_DOUBLE_COMPAT]: Add compat_symbol for llrintl@@GLIBC_2_1.
2470 2006-02-13 Steven Munroe <sjmunroe@us.ibm.com>
2472 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: New File
2473 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: New File
2474 * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: New File
2475 * sysdeps/powerpc/powerpc32/power6/fpu/s_llroundf.S: New File
2477 2006-10-20 Steven Munroe <sjmunroe@us.ibm.com>
2479 * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: New file.
2480 * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: New file.
2482 2006-10-03 Steven Munroe <sjmunroe@us.ibm.com>
2484 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llround.S: New file.
2485 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llroundf.S: New file.
2487 * sysdeps/powerpc/powerpc32/powerpc64/fpu/Makefile: Moved.
2488 * sysdeps/powerpc/powerpc32/powerpc64/fpu/mpa.c: Likewise.
2489 * sysdeps/powerpc/powerpc32/power4/fpu/Makefile: To here.
2490 * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
2492 2006-09-29 Steven Munroe <sjmunroe@us.ibm.com>
2494 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lrint.S: New file.
2495 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: New file.
2496 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: New file.
2497 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: New file.
2499 2006-09-28 Steven Munroe <sjmunroe@us.ibm.com>
2501 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: New file.
2502 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llroundf.S: New file.
2503 * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: New file.
2504 * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: New file.
2505 * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: New file.
2506 * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: New file.
2508 2006-08-31 Steven Munroe <sjmunroe@us.ibm.com>
2510 * sysdeps/powerpc/powerpc32/powerpc64/fpu/Makefile: New file.
2511 * sysdeps/powerpc/powerpc32/powerpc64/fpu/mpa.c: New file.
2512 * sysdeps/powerpc/powerpc64/power4/fpu/Makefile: New file.
2513 * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: New file.
2515 2006-06-15 Steven Munroe <sjmunroe@us.ibm.com>
2517 * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceil.S: New file.
2518 * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceilf.S: New file.
2519 * sysdeps/powerpc/powerpc32/power5+/fpu/s_floor.S: New file.
2520 * sysdeps/powerpc/powerpc32/power5+/fpu/s_floorf.S: New file.
2521 * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S: New file.
2522 * sysdeps/powerpc/powerpc32/power5+/fpu/s_roundf.S: New file.
2523 * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S: New file.
2524 * sysdeps/powerpc/powerpc32/power5+/fpu/s_truncf.S: New file.
2525 * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceil.S: New file.
2526 * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceilf.S: New file.
2527 * sysdeps/powerpc/powerpc64/power5+/fpu/s_floor.S: New file.
2528 * sysdeps/powerpc/powerpc64/power5+/fpu/s_floorf.S: New file.
2529 * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S: New file.
2530 * sysdeps/powerpc/powerpc64/power5+/fpu/s_roundf.S: New file.
2531 * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S: New file.
2532 * sysdeps/powerpc/powerpc64/power5+/fpu/s_truncf.S: New file.
2534 2006-03-20 Steven Munroe <sjmunroe@us.ibm.com>
2536 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S: New file.
2537 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrintf.S: New file.
2539 2007-06-01 Steven Munroe <sjmunroe@us.ibm.com>
2541 * sysdeps/powerpc/powerpc32/power6/memset.S: New file.
2542 * sysdeps/powerpc/powerpc64/power6/memset.S: New file.
2544 2007-05-31 Steven Munroe <sjmunroe@us.ibm.com>
2546 * sysdeps/powerpc/powerpc32/970/Implies: New file.
2547 * sysdeps/powerpc/powerpc32/power5/Implies: New file.
2548 * sysdeps/powerpc/powerpc32/power5+/Implies: New file.
2549 * sysdeps/powerpc/powerpc32/power6/Implies: New file.
2550 * sysdeps/powerpc/powerpc32/power6x/Implies: New file.
2551 * sysdeps/powerpc/powerpc64/970/Implies: New file.
2552 * sysdeps/powerpc/powerpc64/power5/Implies: New file.
2553 * sysdeps/powerpc/powerpc64/power5+/Implies: New file.
2554 * sysdeps/powerpc/powerpc64/power6/Implies: New file.
2555 * sysdeps/powerpc/powerpc64/power6x/Implies: New file.
2557 2007-05-21 Steven Munroe <sjmunroe@us.ibm.com>
2559 * sysdeps/powerpc/powerpc32/power4/memset.S: New file
2561 2007-03-13 Steven Munroe <sjmunroe@us.ibm.com>
2563 * sysdeps/powerpc/powerpc64/memcpy.S: Improve aligned loop to minimize
2564 branch miss-predicts. Ensure that cache line crossing does not impact
2567 2006-12-13 Steven Munroe <sjmunroe@us.ibm.com>
2569 * sysdeps/powerpc/powerpc64/power4/memcopy.h: Replace with include
2570 "../../powerpc32/power4/memcopy.h".
2571 * sysdeps/powerpc/powerpc64/power4/wordcopy.c: Replace with include
2572 "../../powerpc32/power4/wordcopy.c".
2574 2006-10-03 Steven Munroe <sjmunroe@us.ibm.com>
2576 * sysdeps/powerpc/powerpc32/powerpc64/Makefile: Moved.
2577 * sysdeps/powerpc/powerpc32/powerpc64/memcopy.h: Likewise.
2578 * sysdeps/powerpc/powerpc32/powerpc64/wordcopy.c: Likewise.
2579 * sysdeps/powerpc/powerpc32/power4/Makefile: To here.
2580 * sysdeps/powerpc/powerpc32/power4/memcopy.h: Likewise.
2581 * sysdeps/powerpc/powerpc32/power4/wordcopy.c: Likewise.
2583 2006-09-10 Steven Munroe <sjmunroe@us.ibm.com>
2585 * sysdeps/powerpc/powerpc32/power6/memcpy.S: New file.
2587 2006-08-31 Steven Munroe <sjmunroe@us.ibm.com>
2589 * sysdeps/powerpc/powerpc32/power6/wordcopy.c: New file.
2590 * sysdeps/powerpc/powerpc32/powerpc64/Makefile: New file.
2591 * sysdeps/powerpc/powerpc32/powerpc64/memcopy.h: New file.
2592 * sysdeps/powerpc/powerpc32/powerpc64/wordcopy.c: New file.
2593 * sysdeps/powerpc/powerpc64/power4/Makefile: New file.
2594 * sysdeps/powerpc/powerpc64/power4/memcopy.h: New file.
2595 * sysdeps/powerpc/powerpc64/power4/wordcopy.c: New file.
2596 * sysdeps/powerpc/powerpc64/power6/wordcopy.c: New file.
2598 2006-07-06 Steven Munroe <sjmunroe@us.ibm.com>
2600 * sysdeps/powerpc/powerpc64/power6/memcpy.S: New file.
2602 2006-03-20 Steven Munroe <sjmunroe@us.ibm.com>
2604 * sysdeps/powerpc/powerpc32/power4/memcmp.S: New file.
2605 * sysdeps/powerpc/powerpc32/power4/memcpy.S: New file.
2606 * sysdeps/powerpc/powerpc32/power4/memset.S: New file.
2607 * sysdeps/powerpc/powerpc32/power4/strncmp.S: New file.
2608 * sysdeps/powerpc/powerpc64/power4/memcmp.S: New file.
2609 * sysdeps/powerpc/powerpc64/power4/memcpy.S: New file.
2610 * sysdeps/powerpc/powerpc64/power4/strncmp.S: New file.
2612 2007-05-29 Roland McGrath <roland@redhat.com>
2614 * po/Makefile (po-sed-cmd): New variable.
2615 (libc.pot.files): Move sed command text in there, avoid \ inside ''.
2617 2007-05-29 Ulrich Drepper <drepper@redhat.com>
2619 * crypt/md5-crypt.c: Fix comment.
2621 * nscd/nscd_helper.c (get_mapping): Handle short replies instead
2622 of crashing. When this is the case or if the reply is malformed,
2623 don't try to close the new file descriptor since it does not
2625 Patch in part by Guillaume Chazarain <guichaz@yahoo.fr>.
2627 2007-05-28 Jakub Jelinek <jakub@redhat.com>
2629 * sysdeps/unix/sysv/linux/futimes.c (miss_utimensat): Don't define
2630 if __NR_utimensat is not defined.
2632 2007-05-26 Ulrich Drepper <drepper@redhat.com>
2634 * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Include <sysdep.h>.
2636 2007-05-25 Jakub Jelinek <jakub@redhat.com>
2638 * io/bits/fcntl2.h (__open_2): Add nonnull attribute.
2639 (open): Fix comment typos. Don't call __open_2 if flags
2640 is a compile time constant without O_CREAT.
2641 (__open64_2): Add nonnull attribute.
2642 (open64): Fix comment typos. Don't call __open64_2 if flags
2643 is a compile time constant without O_CREAT.
2644 (__openat_2): Add nonnull attribute, fix nonnull attribute
2646 (openat): Fix comment typos. Don't call __openat_2 if flags
2647 is a compile time constant without O_CREAT.
2648 (__openat64_2): Add nonnull attribute, fix nonnull attribute
2650 (openat64): Fix comment typos. Don't call __openat64_2 if flags
2651 is a compile time constant without O_CREAT.
2653 2007-05-24 Ulrich Drepper <drepper@redhat.com>
2655 * Makerules (sysd-rules): Define PTW for ptw-* files.
2656 * Versions: Define GLIBC_2.7 for libc.
2657 * include/stdio.h: Declare __fortify_fail.
2658 * debug/fortify_fail.c: New file.
2659 * debug/Makefile (routines): Add fortify_fail.
2660 * debug/chk_fail.c: Use __fortify_fail.
2661 * debug/stack_chk_fail.c: Likewise.
2662 * io/Versions: Export __open_2, __open64_2, __openat_2, and
2663 __openat64_2 for GLIBC_2.7.
2664 * io/fcntl.h: When compiling with fortification, include bits/fcntl2.h.
2665 * io/open.c: Define *_2 variant of function which checks for O_CREAT
2666 and fails if necessary.
2667 * io/open64.c: Likewise.
2668 * io/openat.c: Likewise.
2669 * io/openat64.c: Likewise.
2670 * sysdeps/unix/sysv/linux/open64.c: Likewise.
2671 * sysdeps/unix/sysv/linux/openat.c: Likewise.
2672 * sysdeps/unix/sysv/linux/openat64.c: Likewise.
2673 * io/bits/fcntl2.h: New file.
2674 * include/fcntl.h: Declare __open_2, __open64_2, __openat_2, and
2676 * include/bits/fcntl2.h: New file.
2677 * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
2679 * sysdeps/unix/sysv/linux/open_2.c: New file.
2681 2007-05-21 Ulrich Drepper <drepper@redhat.com>
2683 * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Pass correct value
2684 as second parameter to handle_intel.
2686 * nscd/aicache.c (addhstaiX): If reported TTL is zero don't cache
2689 * sysdeps/unix/sysv/linux/x86_64/sysconf.c: Move cache information
2691 * sysdeps/x86_64/cacheinfo.c: ... here. New file.
2692 * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
2694 * sysdeps/x86_64/memcpy.S: Complete rewrite.
2695 * sysdeps/x86_64/mempcpy.S: Adjust appropriately.
2696 Patch by Evandro Menezes <evandro.menezes@amd.com>.
2698 * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: New file.
2700 2007-05-21 Jakub Jelinek <jakub@redhat.com>
2703 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add epoll_pwait.
2704 * sysdeps/unix/sysv/linux/epoll_pwait.c: New file.
2705 * sysdeps/unix/sysv/linux/syscalls.list (epoll_pwait): Remove.
2707 * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h (epoll_pwait): Declare.
2710 * stdio-common/vfprintf.c (vfprintf): Don't shadow workstart variable,
2711 reinitialize workend at the start of each do_positional format spec
2712 loop, free workstart before do_positional loops.
2713 (printf_unknown): Fix size of work_buffer.
2714 * stdio-common/tst-sprintf.c (main): Add 3 new testcases.
2716 * malloc/hooks.c (MALLOC_STATE_VERSION): Bump.
2717 (public_sET_STATe): If ms->version < 3, put all chunks into
2718 unsorted chunks and clear {fd,bk}_nextsize fields of largebin
2721 * malloc/malloc.c [MALLOC_DEBUG]: Revert 2007-05-13 changes.
2722 * malloc/hooks.c: Likewise.
2723 * malloc/arena.c: Likewise.
2724 * malloc/malloc.c (do_check_malloc_state): Don't assert
2725 n_mmaps is not greater than n_mmaps_max. This removes the need
2726 for the previous change.
2728 * malloc/Makefile (CFLAGS-malloc.c): Revert accidental
2731 2007-05-19 Ulrich Drepper <drepper@redhat.com>
2733 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PRIVATE_FUTEX):
2734 Define for kernel >= 2.6.22.
2736 2007-05-18 Ulrich Drepper <drepper@redhat.com>
2738 * elf/dl-close.c (_dl_close_worker): When removing object from
2739 global scope, wait for all lookups to finish afterwards.
2740 * elf/dl-open.c (add_to_global): When global scope array must
2741 grow, allocate a new one and free old array only after all
2743 * elf/dl-runtime.c (_dl_fixup): Protect using global scope.
2744 (_dl_lookup_symbol_x): Likewise.
2745 * elf/dl-support.c: Define _dl_wait_lookup_done.
2746 * sysdeps/generic/ldsodefs.h (struct rtld_global): Add
2747 _dl_wait_lookup_done.
2749 * malloc/malloc.c (do_check_chunk): Correct check for mmaped block
2750 not overlapping with arena.
2752 * malloc/mcheck.c (reallochook): If size==0, free the block.
2754 * rt/tst-shm.c: Use fstat64 instead of fstat.
2756 * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Fix case where
2757 __NR_sync_file_range is not defined.
2759 2007-05-17 Ulrich Drepper <drepper@redhat.com>
2761 Dummy files to prevent stub versions from being used.
2762 * sysdeps/x86_64/fpu/k_cosl.c: New file.
2763 * sysdeps/x86_64/fpu/k_rem_pio2l.c: New file.
2764 * sysdeps/x86_64/fpu/k_sinl.c: New file.
2765 * sysdeps/x86_64/fpu/k_tanl.c: New file.
2767 * version.h (VERSION): Set to 2.6.90.
2769 2007-05-14 Ulrich Drepper <drepper@redhat.com>
2771 * version.h (VERSION): Define to 2.6.
2772 * include/features.h (__GLIBC_MINOR__): Define to 6.
2774 * malloc/malloc.c: Use all small bin slots on 64-bit archs.
2776 * malloc/malloc.c (largebin_index): Really have 32 buckets with 64
2779 2007-05-13 Ulrich Drepper <drepper@redhat.com>
2781 * malloc/malloc.c [MALLOC_DEBUG]: Keep track of current maximum
2782 number of mmaps. n_mmaps_max is the target.
2783 * malloc/hooks.c: Likewise.
2784 * malloc/arena.c: Likewise.
2786 2007-05-12 Andreas Jaeger <aj@suse.de>
2788 * sysdeps/unix/sysv/linux/tst-getcpu.c: Include <unistd.h> for
2791 2007-05-11 Ulrich Drepper <drepper@redhat.com>
2793 * elf/dl-close.c (_dl_close_worker): Help gcc to optimize by
2794 adding new variables.
2796 * elf/dl-open.c (add_to_global): Introduce variable ns to help gcc
2797 optimize. Completely extend global scope array before making the
2798 new entries visible.
2800 2007-05-10 Ulrich Drepper <drepper@redhat.com>
2802 * sysdeps/unix/sysv/linux/tst-getcpu.c: New file.
2803 * sysdeps/unix/sysv/linux/Makefile [subdir=posix] (tests): Add
2806 * include/link.h: Move l_version and l_nversion members around to
2809 * scripts/check-c++-types.sh: Don't use -fnu89-inline option.
2811 * sysdeps/unix/sysv/linux/sched_setaffinity.c
2812 (__sched_setaffinity_new): If syscall was successful and
2813 RESET_VGETCPU_CACHE is defined, use it before returning.
2814 * sysdeps/unix/sysv/linux/x86_64/sched_setaffinity.c: New file.
2816 * io/sys/stat.h: Make sure struct timespec is defined for
2819 * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Define UTIME_NOW and
2821 * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
2822 * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
2823 * sysdeps/unix/sysv/linux/alpha/bits/stat.h: Likewise.
2824 * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
2825 * sysdeps/unix/sysv/linux/bits/stat.h: Likewise.
2826 * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
2827 * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_UTIMENSAT.
2828 * io/sys/stat.h: Declare utimensat, futimens.
2829 * io/utimensat.c: New file.
2830 * io/futimens.c: New file.
2831 * sysdeps/unix/sysv/linux/utimensat.c: New file.
2832 * sysdeps/unix/sysv/linux/futimens.c: New file.
2833 * io/Makefile (routines): Add utimensat, futimens.
2834 * io/Versions: Add utimensat, futimens to GLIBC_2.6.
2835 * sysdeps/unix/sysv/linux/lutimes.c: New file.
2836 * sysdeps/unix/sysv/linux/futimes.c: Use utimensat syscall if
2839 * include/sys/cdefs.h: Redefine __nonnull so that test for
2840 incorrect parameters in the libc code itself are not omitted.
2842 2007-05-09 Jakub Jelinek <jakub@redhat.com>
2844 * sysdeps/ia64/fpu/fraiseexcpt.c (feraiseexcept): Don't raise overflow
2845 exception in addition to inexact when asked to raise only FE_INEXACT.
2848 * sysdeps/s390/fpu/feholdexcpt.c (feholdexcept): Don't clear exceptions
2851 2007-05-07 Ulrich Drepper <drepper@redhat.com>
2854 * string/strfry.c (strfry): Make result more random.
2856 2007-05-07 Richard Henderson <rth@redhat.com>
2858 * sysdeps/alpha/fpu/bits/mathinline.h (__isnanl): Don't define
2859 if __NO_LONG_DOUBLE_MATH.
2860 * sysdeps/unix/sysv/linux/alpha/ioperm.c: If BWX insns not
2861 available in the compiler, add .arch directive to the assembly.
2863 2007-05-07 Jakub Jelinek <jakub@redhat.com>
2865 * sysdeps/alpha/fpu/s_nearbyint.c (nearbyintl): Fix version on
2866 compat_symbol to GLIBC_2_1.
2867 * sysdeps/alpha/fpu/s_fmin.S (fminl): Likewise.
2868 * sysdeps/alpha/fpu/s_trunc.c (truncl): Likewise.
2869 * sysdeps/alpha/fpu/s_fmax.S (fmaxl): Likewise.
2870 * sysdeps/alpha/fpu/s_lrint.c (lrintl, llrintl): Likewise.
2871 * sysdeps/alpha/fpu/s_lround.c (lroundl, llroundl): Likewise.
2872 * sysdeps/alpha/fpu/s_round.c (roundl): Likewise.
2873 * sysdeps/alpha/fpu/s_isnan.c (isnanl): Provide compat_symbol in
2875 (__isnanl): New compat_symbol.
2877 2007-05-07 Ulrich Drepper <drepper@redhat.com>
2878 Jakub Jelinek <jakub@redhat.com>
2880 * malloc/arena.c (heap_info): Add mprotect_size field, adjust pad.
2881 (new_heap): Initialize mprotect_size.
2882 (grow_heap): When growing, only mprotect from mprotect_size till
2883 new_size if mprotect_size is smaller. When shrinking, use PROT_NONE
2884 MMAP for __libc_enable_secure only, otherwise use MADV_DONTNEED.
2886 2007-04-30 Steven Munroe <sjmunroe@us.ibm.com>
2887 Peter Bergner <bergner@us.ibm.com>
2889 * sysdeps/powerpc/bits/fenv.h: Declare __fe_mask_env extern.
2890 Define FE_NOMASK_ENV as FE_EANBLED_ENV. Define FE_MASK_ENV.
2891 * sysdeps/powerpc/fpu/Makefile: Add fe_mask to libm-support.
2892 * sysdeps/powerpc/fpu/fe_mask.c: New file.
2893 * sysdeps/powerpc/fpu/fe_nomask.c: Correct comment.
2894 * sysdeps/powerpc/fpu/fedisblxcpt.c (fedisableexcept):
2895 Call __fe_mask_env() if all FP exceptions disabled.
2896 * sysdeps/powerpc/fpu/feholdexcpt.c (feholdexcept): Copy high 32-bits
2897 from old FPSCR to new fenv to propagate DFP rounding modes.
2898 Call __fe_mask_env() if FP exceptions previously enabled.
2899 * sysdeps/powerpc/fpu/fesetenv.c (fesetenv): Change mask to merge
2900 exceptions from env. Use __fe_nomask_env() or __fe_mask_env() when
2901 transitioning from all exceptions disabled to any exception enabled
2903 * sysdeps/powerpc/fpu/feupdateenv.c (__feupdateenv): Change mask to
2904 merge exceptions from env. Call __fe_nomask_env or __fe_mask_env
2905 when transitioning from all exceptions disabled to any exception
2906 enabled or visa versa.
2907 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fe_nomask.c: Moved to...
2908 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c: ...here.
2909 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c: Moved to...
2910 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c: ...here.
2911 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c: New file.
2912 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c: New file.
2914 2007-05-06 Ulrich Drepper <drepper@redhat.com>
2917 * posix/unistd.h: Remove __THROW from fdatasync.
2919 2007-05-06 Mike Frysinger <vapier@gentoo.org>
2922 * sysdeps/unix/sysv/linux/syscalls.list (fdatasync): Add "C" to args.
2924 2007-05-06 Ulrich Drepper <drepper@redhat.com>
2926 * stdio-common/vfprintf.c (process_string_arg): Optimize
2927 ridiculous precision in wide char code printing multi-byte string.
2928 Reported by Jim Meyering <jim@meyering.net>.
2931 * elf/dl-addr.c (_dl_addr): Compare address with actual segment
2932 boundaries to work around systems with overlapping binary loading.
2933 Based on a patch by Suzuki <suzuki@in.ibm.com>.
2935 2007-05-04 Ulrich Drepper <drepper@redhat.com>
2937 * stdio-common/vfprintf.c (process_string_arg): Adjust call to
2938 __mbsnrtowcs after last change.
2940 * locale/programs/linereader.c (get_symname): Fix adding final NUL.
2941 (get_ident): Likewise.
2943 2007-05-03 Jakub Jelinek <jakub@redhat.com>
2945 * soft-fp/op-common.h (FP_TRUNC): Replace raising of FP_EX_INEXACT
2946 with setting the sticky bit.
2947 * math/test-misc.c (main): Add more truncation tests.
2949 2007-04-14 Uros Bizjak <ubizjak@gmail.com>
2951 * soft-fp/floatunsidf.c (__floatunsidf): Use DFtype instead of
2952 double in the function declaration.
2953 * soft-fp/floatundidf.c (__floatundidf): Use DFtype instead of
2954 double in the function declaration.
2955 * soft-fp/floatunsisf.c (__floatunsisf): Use SFtype instead of
2956 float in the function declaration.
2957 * soft-fp/floatunsisf.c (__floatunsisf): Use SFtype instead of
2958 float in the function declaration.
2960 * soft-fp/extended.h (FP_UNPACK_RAW_E): Do not increase X##_e for
2961 denormal operands. Do not generate FP_EX_DENORM exception.
2962 (FP_UNPACK_RAW_EP): Ditto.
2963 (FP_UNPACK_SEMIRAW_E): Use FP_UNPACK_RAW_E instead of
2964 undefined _FP_UNPACK_RAW_E.
2965 (FP_UNPACK_SEMIRAW_EP): Use FP_UNPACK_RAW_EP instead of
2966 undefined _FP_UNPACK_RAW_EP.
2967 (FP_PACK_SEMIRAW_E): Use FP_PACK_RAW_E instead of
2968 undefined _FP_PACK_RAW_E.
2969 (FP_PACK_SEMIRAW_EP): Use FP_PACK_RAW_EP instead of
2970 undefined _FP_PACK_RAW_EP.
2972 * soft-fp/op-2.h (_FP_FRAC_COPY_2_2): Define as alias to
2974 * soft-fp/op-4.h (_FP_FRAC_COPY_2_2): Define as alias to
2977 2007-04-16 Uros Bizjak <ubizjak@gmail.com>
2978 Jakub Jelinek <jakub@redhat.com>
2980 * soft-fp/op-common.h (FP_EXTEND): Do not abort when
2981 _FP_EXPBIAS_##dfs == _FP_EXPBIAS_##sfs. Handle denormals for
2983 * soft-fp/op-common.h (FP_TRUNC): Ditto.
2985 2007-05-03 Jakub Jelinek <jakub@redhat.com>
2987 * math/test-misc.c (main): Add tests for rounding long double
2988 values close to smallest double denormalized value to double.
2990 2007-04-30 Joseph Myers <joseph@codesourcery.com>
2992 * soft-fp/op-common.h (FP_TRUNC): Correct off-by-one error in
2993 condition for truncating to 0. Set sticky bit for such
2996 2007-05-02 Jakub Jelinek <jakub@redhat.com>
2998 * stdio-common/vfprintf.c (process_string_arg): Use a VLA rather than
2999 fixed length array for ignore.
3001 2007-04-30 Ulrich Drepper <drepper@redhat.com>
3004 * stdio-common/vfprintf.c (process_string_arg): Don't overflow the
3005 stack for large precisions.
3006 * stdio-common/test-vfprintf.c (main): Add test for large
3009 2007-04-30 Jakub Jelinek <jakub@redhat.com>
3011 * stdio-common/printf_fp.c (___printf_fp): Don't print negative sign
3013 * stdio-common/tfformat.c (sprint_doubles): Add a new test.
3016 * resolv/inet_ntop.c (inet_ntop4): Take terminating '\0' into
3017 account in the size check.
3018 * resolv/tst-inet_ntop.c: New test.
3019 * resolv/Makefile (tests): Add tst-inet_ntop.
3021 2007-04-30 Ulrich Drepper <drepper@redhat.com>
3022 Jakub Jelinek <jakub@redhat.com>
3025 * malloc/malloc.c: Keep separate list for first blocks on the bin
3026 lists with a given size. This helps skipping over list elements
3027 we know won't fit in two places.
3028 Inspired by a patch by Tomash Brechko <tomash.brechko@gmail.com>.
3030 2007-04-28 Ulrich Drepper <drepper@redhat.com>
3033 * sysdeps/posix/getaddrinfo.c (default_labels): Assign separate
3034 label to Teredo tunnel addresses 2001://32.
3036 2007-04-27 Ulrich Drepper <drepper@redhat.com>
3038 * locale/programs/ld-collate.c (collate_read): Allow order_start
3041 * locale/programs/ld-collate.c (collate_read): Fix printing of
3045 * locale/C-translit.h.in: Add entry for U2044.
3048 * stdio-common/vfscanf.c (_IO_vfscanf_internal): Allow
3049 hexa-decimal floats without exponent.
3050 * stdio-common/tstscanf.c (main): Adjust Test 8 test for success.
3052 2007-04-25 Ulrich Drepper <drepper@redhat.com>
3054 * sysdeps/unix/sysv/linux/bits/sched.h: Declare sched_getcpu.
3055 * sysdeps/unix/sysv/linux/sched_getcpu.c: New file.
3056 * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: New file.
3057 * sysdeps/unix/sysv/linux/Versions: Export sched_getcpu for
3059 * sysdeps/unix/sysv/linux/Makefile [subdir=posix] (sysdep_routines):
3062 2007-04-25 Jakub Jelinek <jakub@redhat.com>
3064 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Return -1 instead
3065 of 0 after the out_fail label.
3067 2007-04-25 Ulrich Drepper <drepper@redhat.com>
3070 * iconv/gconv_charset.h (strip): Allow ':'.
3071 * iconv/iconv_open.c (iconv_open): Adjust comment.
3073 2007-04-25 Jakub Jelinek <jakub@redhat.com>
3075 * libio/bits/stdio.h (fgetc_unlocked): Add extern inline optimized
3078 2007-04-23 Jakub Jelinek <jakub@redhat.com>
3081 * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Ensure sufficient
3082 alignment of buffer and tmp_buffer.
3083 * nis/nss_nis/nis-hosts.c (internal_nis_gethostent_r,
3084 internal_gethostbyname2_r, _nss_nis_gethostbyaddr_r): Ensure sufficient
3085 alignment of buffer.
3086 * resolv/nss_dns/dns-hosts.c (getanswer_r): Likewise. Handle buflen
3087 bigger than INT_MAX.
3088 * resolv/nss_dns/dns-network.c (getanswer_r): Likewise. Add errnop and
3089 h_errnop arguments. Fail if buflen is too small.
3090 (_nss_dns_getnetbyname_r, _nss_dns_getnetbyaddr_r): Adjust callers.
3092 2007-04-23 Jakub Jelinek <jakub@redhat.com>
3095 * iconvdata/gconv-modules (E13B): Add a missing slash to the alias
3096 name. Patch by Aurelien Jarno <aurelien@aurel32.net>.
3098 2007-04-22 Roland McGrath <roland@redhat.com>
3100 * elf/elf.h (NT_PRXFPREG): New macro.
3102 2007-04-19 Andreas Jaeger <aj@suse.de>
3105 * bits/in.h (IPV6_ROUTER_ALERT, IPV6_MTU_DISCOVER, IPV6_MTU,
3106 IPV6_RECVERR, IPV6_V6ONLY, IPV6_JOIN_ANYCAST, IPV6_LEAVE_ANYCAST):
3109 2007-04-19 Ulrich Drepper <drepper@redhat.com>
3111 * include/sys/mman.h: Mark madvise hidden.
3112 * misc/madvise.c: Add libc_hidden_def.
3114 2007-04-06 Jakub Jelinek <jakub@redhat.com>
3116 * nis/nis_domain_of.c (__nis_domain_of): New function.
3117 * include/rpcsvc/nislib.h (__nis_domain_of): New prototype.
3118 * nis/nis_lookup.c (nis_lookup): Use __nis_domain_of.
3119 * nis/nis_call.c (rec_dirsearch): Likewise.
3120 (first_shoot): Likewise. Remove search_parent_first argument.
3121 (struct nis_server_cache): Rename search_parent_first field
3123 (nis_server_cache_search, nis_server_cache_add): Rename
3124 search_parent_first argument to search_parent.
3125 (__nisfind_server): Likewise. If search_parent, call
3128 2007-04-18 Ulrich Drepper <drepper@redhat.com>
3130 * sysdeps/posix/getaddrinfo.c: Remove commented-out code.
3132 2007-04-17 Ulrich Drepper <drepper@redhat.com>
3135 * stdlib/stdlib.h: Remove obsolete part of comment for realpath.
3137 2007-04-16 Ulrich Drepper <drepper@redhat.com>
3140 * posix/unistd.h (_XOPEN_VERSION): Define appropriately for SUSv3.
3142 2007-04-15 Jakub Jelinek <jakub@redhat.com>
3144 * locale/programs/locarchive.c (INITIAL_NUM_NAMES,
3145 INITIAL_SIZE_STRINGS, INITIAL_NUM_LOCREC): Update to accomodate
3146 current number of locales in SUPPORTED.
3147 (create_archive): Initialize serial.
3148 (enlarge_archive): Preserve aliases rather than duplicating
3151 2007-04-13 Jakub Jelinek <jakub@redhat.com>
3153 * libio/genops.c (_IO_default_finish): Call _IO_lock_fini
3154 after _IO_un_link, not before it.
3156 * stdio-common/printf_fp.c (___printf_fp): Fix exponent -4
3157 special case handling when wcp == wstartp + 1. Fix a comment typo.
3158 * stdio-common/tfformat.c (sprint_doubles): Add a new testcase.
3160 2007-03-30 Jakub Jelinek <jakub@redhat.com>
3162 * libio/libio.h (__underflow, __uflow, __overflow, __wunderflow,
3163 __wuflow, __woverflow, _IO_getc, _IO_putc, _IO_peekc_locked, _IO_padn,
3164 _IO_sgetn, _IO_seekoff, _IO_seekpos, _IO_getwc, _IO_putwc, _IO_wpadn):
3166 * libio/fileops.c (new_do_write, _IO_file_xsgetn_mmap,
3167 _IO_file_xsgetn_maybe_mmap): Likewise.
3168 * libio/oldfileops.c (old_do_write): Likewise.
3169 * libio/libioP.h (_IO_switch_to_get_mode, _IO_switch_to_wget_mode,
3170 _IO_init_marker, _IO_init_wmarker, _IO_default_uflow,
3171 _IO_wdefault_uflow, _IO_default_setbuf, _IO_default_seekpos,
3172 _IO_do_write, _IO_new_do_write, _IO_old_do_write, _IO_wdo_write,
3173 _IO_flush_all_lockp, _IO_flush_all, _IO_cleanup,
3174 _IO_flush_all_linebuffered, _IO_new_fgetpos, _IO_old_fgetpos,
3175 _IO_new_fsetpos, _IO_old_fsetpos, _IO_new_fgetpos64,
3176 _IO_old_fgetpos64, _IO_new_fsetpos64, _IO_old_fsetpos64,
3177 _IO_file_setbuf, _IO_file_seekoff, _IO_file_xsputn, _IO_file_xsgetn,
3178 _IO_file_underflow, _IO_file_underflow_mmap,
3179 _IO_file_underflow_maybe_mmap, _IO_file_overflow, _IO_file_attach,
3180 _IO_file_open, _IO_file_fopen, _IO_file_write, _IO_file_read,
3181 _IO_file_sync, _IO_file_close_it, _IO_file_finish,
3182 _IO_new_file_attach, _IO_new_file_close_it, _IO_new_file_finish,
3183 _IO_new_file_fopen, _IO_new_file_setbuf, _IO_file_setbuf_mmap,
3184 _IO_new_file_sync, _IO_new_file_underflow, _IO_new_file_overflow,
3185 _IO_new_file_seekoff, _IO_new_file_write, _IO_new_file_xsputn,
3186 _IO_old_file_setbuf, _IO_old_file_seekoff, _IO_old_file_xsputn,
3187 _IO_old_file_underflow, _IO_old_file_overflow, _IO_old_file_attach,
3188 _IO_old_file_fopen, _IO_old_file_write, _IO_old_file_sync,
3189 _IO_old_file_close_it, _IO_old_file_finish, _IO_wfile_xsputn,
3190 _IO_wfile_setbuf, _IO_wfile_sync, _IO_wfile_underflow,
3191 _IO_wfile_overflow, _IO_wfile_seekoff, _IO_old_proc_open,
3192 _IO_old_proc_close, _IO_getdelim, _IO_flush_all_internal,
3193 _IO_adjust_column_internal, _IO_default_uflow_internal,
3194 _IO_default_xsgetn_internal, _IO_wdefault_xsputn_internal,
3195 _IO_wdefault_xsgetn_internal, _IO_wdefault_uflow_internal,
3196 _IO_file_setbuf_internal, _IO_file_seekoff_internal,
3197 _IO_file_xsputn_internal, _IO_file_xsgetn_internal,
3198 _IO_file_close_it_internal, _IO_file_underflow_internal,
3199 _IO_file_overflow_internal, _IO_file_attach_internal,
3200 _IO_file_fopen_internal, _IO_file_sync_internal,
3201 _IO_file_finish_internal, _IO_wfile_xsputn_internal,
3202 _IO_wfile_seekoff_internal, _IO_wfile_sync_internal,
3203 _IO_switch_to_wget_mode_internal, _IO_padn_internal,
3204 _IO_switch_to_get_mode_internal, _IO_seekoff_unlocked,
3205 _IO_seekpos_unlocked): Likewise.
3206 (_IO_strtod, _IO_dtoa, _IO_outfloat, _IO_read, _IO_write,
3207 _IO_lseek, _IO_close, _IO_fstat): Remove unused prototypes.
3209 2007-04-16 Jakub Jelinek <jakub@redhat.com>
3211 * locale/programs/locarchive.c (show_archive_content): Fix sizeof
3212 argument in xmalloc size computation.
3214 2007-04-01 Jakub Jelinek <jakub@redhat.com>
3216 * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl): Use
3217 math_opt_barrier and math_force_eval macros.
3219 2007-03-27 Jakub Jelinek <jakub@redhat.com>
3222 * math/math_private.h (math_opt_barrier, math_force_eval): Define.
3223 * sysdeps/i386/fpu/math_private.h: New file.
3224 * sysdeps/x86_64/fpu/math_private.h: New file.
3225 * math/s_nexttowardf.c (__nexttowardf): Use math_opt_barrier and
3226 math_force_eval macros. Use "+m" constraint on asm rather than
3228 * math/s_nextafter.c (__nextafter): Likewise.
3229 * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c (__nexttoward):
3231 * sysdeps/ieee754/flt-32/s_nextafterf.c (__nextafterf): Likewise.
3232 * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward): Likewise.
3233 * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
3234 * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Use
3235 math_opt_barrier and math_force_eval macros.
3236 * sysdeps/ieee754/ldbl-128/s_nextafterl.c (__nextafterl): Likewise.
3237 * sysdeps/ieee754/ldbl-96/s_nextafterl.c (__nextafterl): Likewise.
3238 * sysdeps/i386/fpu/s_nexttoward.c: Include float.h.
3239 (__nexttoward): Use math_opt_barrier and
3240 math_force_eval macros. Use "+m" constraint on asm rather than
3241 "=m" and "m". Only use asm to force double result if
3242 FLT_EVAL_METHOD is 2.
3243 * sysdeps/i386/fpu/s_nexttowardf.c: Include float.h.
3244 (__nexttowardf): Use math_opt_barrier and
3245 math_force_eval macros. Use "+m" constraint on asm rather than
3246 "=m" and "m". Only use asm to force double result if
3247 FLT_EVAL_METHOD is not 0.
3248 * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Include float.h.
3249 (__nexttowardf): Use math_opt_barrier and
3250 math_force_eval macros. If FLT_EVAL_METHOD is not 0, force
3251 x to float using asm.
3252 * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c: Include float.h.
3253 (__nldbl_nexttowardf): Use math_opt_barrier and
3254 math_force_eval macros. If FLT_EVAL_METHOD is not 0, force
3255 x to float using asm.
3256 * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Include float.h.
3257 (__nexttowardf): Use math_opt_barrier and math_force_eval
3258 macros. If FLT_EVAL_METHOD is not 0, force x to float using asm.
3259 * math/bug-nextafter.c (zero, inf): New variables.
3260 (main): Add new tests.
3261 * math/bug-nexttoward.c (zero, inf): New variables.
3262 (main): Add new tests.
3264 2007-03-22 Jakub Jelinek <jakub@redhat.com>
3267 * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Clear all
3268 exceptions both in SW and MXCSR.
3269 * sysdeps/x86_64/fpu/feupdateenv.c: New file.
3270 * sysdeps/x86_64/fpu/feenablxcpt.c (feenableexcept): Remove dead code.
3271 * sysdeps/x86_64/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
3272 * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions
3273 in MXCSR if SSE is available.
3274 * sysdeps/i386/fpu/feupdateenv.c: Include unistd.h, dl-procinfo.h
3276 (__feupdateenv): Query exceptions also from MXCSR if SSE is available.
3278 * sysdeps/ia64/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions.
3279 Return 0 rather than 1.
3280 * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Fix comment typo.
3281 Remove incorrect part of a comment. Fix argument to feraiseexcept.
3282 * math/test-fenv.c (feholdexcept_tests): New function.
3285 2007-01-05 Richard B. Kreckel <kreckel@ginac.de>
3288 * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions
3291 2007-04-13 Jakub Jelinek <jakub@redhat.com>
3294 * elf/ldconfig.c (search_dir): Fix 2 off-by-2 errors.
3295 Reported by David Anderson <davea42@earthlink.net>.
3297 2007-04-07 Ulrich Drepper <drepper@redhat.com>
3299 * posix/sys/wait.h: Remove unnecessary forward declaration.
3301 2007-04-05 Jakub Jelinek <jakub@redhat.com>
3303 * nis/nis_call.c (__nisfind_server): Replace (*dir)->do_servers
3304 with obj->do_servers after first_shoot.
3306 2007-04-03 Ulrich Drepper <drepper@redhat.com>
3308 * posix/Makefile (routines): Add sched_cpucount.
3309 (tests): Add tst-cpucount.
3310 * posix/sched_cpucount.c: New file.
3311 * posix/tst-cpucount.c: New file.
3312 * posix/Versions: Export __sched_cpucount with version GLIBC_2.6.
3313 * bits/sched.h: Define __CPU_COUNT. Declare __sched_cpucount.
3314 * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
3315 * posix/sched.h: Define CPU_COUNT.
3317 2007-03-27 Jakub Jelinek <jakub@redhat.com>
3319 * posix/fnmatch.c (STRUCT): Define.
3320 (fnmatch): Pass NULL as last argument to internal_fn{,w}match.
3321 * posix/fnmatch_loop.c (struct STRUCT): New type.
3322 (FCT): Add ends argument. If ends != NULL and normal * is
3323 seen in the pattern, store current pattern and string pointers
3324 and return. Adjust recursive calls.
3325 (EXT): Adjust FCT callers.
3326 (STRUCT): Undef at the end of the file.
3327 * posix/Makefile (tests): Add tst-fnmatch2.
3328 * posix/tst-fnmatch2.c: New test.
3330 2007-04-01 Jakub Jelinek <jakub@redhat.com>
3332 * sysdeps/ia64/fpu/fesetround.c (fesetround): Return 0 on success
3335 * sysdeps/unix/sysv/linux/sync_file_range.c (sync_file_range):
3336 Change last argument to unsigned int.
3338 2007-03-23 Jakub Jelinek <jakub@redhat.com>
3340 * scripts/check-local-headers.sh: Filter out sys/capability.h.
3342 2007-03-22 Jakub Jelinek <jakub@redhat.com>
3344 * config.h.in (HAVE_LIBCAP): Add.
3345 * nscd/selinux.h: Include sys/capability.h rather than non-existent
3347 * nscd/selinux.c (preserve_capabilities): Use cap_free instead of
3348 free_caps. Cast away const from 4th cap_set_flag argument.
3350 2007-03-26 Ulrich Drepper <drepper@redhat.com>
3352 * sysdeps/unix/sysv/linux/Versions: Move sync_file_range to
3354 * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
3355 Add sync_file_range.
3356 Reported by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
3358 2007-03-19 Steven Munroe <sjmunroe@us.ibm.com>
3360 * sysdeps/powerpc/bits/atomic.h
3361 [!MUTEX_HINT_ACQ]: Define MUTEX_HINT_ACQ.
3362 [!MUTEX_HINT_REL]: Define MUTEX_HINT_REL.
3363 (__arch_compare_and_exchange_val_32_acq): Add MUTEX_HINT_ACQ to lwarx.
3364 (__arch_compare_and_exchange_val_32_rel): Add MUTEX_HINT_REL to lwarx.
3365 (__arch_atomic_exchange_val_32_acq): Add MUTEX_HINT_ACQ to lwarx.
3366 (__arch_atomic_exchange_rel_32_rel): Add MUTEX_HINT_REL to lwarx.
3367 * sysdeps/powerpc/powerpc32/bits/atomic.h [_ARCH_PWR6 || _ARCH_PWR6X]:
3368 Define MUTEX_HINT_ACQ as ",1" and MUTEX_HINT_REL as ",0".
3369 (__arch_compare_and_exchange_bool_32_acq): Add MUTEX_HINT_ACQ to lwarx.
3370 (__arch_compare_and_exchange_bool_32_rel): Add MUTEX_HINT_REL to lwarx.
3371 * sysdeps/powerpc/powerpc64/bits/atomic.h [_ARCH_PWR6 || _ARCH_PWR6D]:
3372 Define MUTEX_HINT_ACQ as ",1" and MUTEX_HINT_REL as ",0".
3373 (__arch_compare_and_exchange_bool_32_acq): Add MUTEX_HINT_ACQ to lwarx.
3374 (__arch_compare_and_exchange_bool_32_rel): Add MUTEX_HINT_REL to lwarx.
3375 (__arch_compare_and_exchange_bool_64_acq): Add MUTEX_HINT_ACQ to lwarx.
3376 (__arch_compare_and_exchange_bool_64_rel): Add MUTEX_HINT_REL to lwarx.
3377 (__arch_compare_and_exchange_val_64_acq): Add MUTEX_HINT_ACQ to lwarx.
3378 (__arch_compare_and_exchange_val_64_rel): Add MUTEX_HINT_REL to lwarx.
3379 (__arch_atomic_exchange_val_64_acq): Add MUTEX_HINT_ACQ to lwarx.
3380 (__arch_atomic_exchange_rel_64_rel): Add MUTEX_HINT_REL to lwarx.
3382 2007-03-20 Jakub Jelinek <jakub@redhat.com>
3384 * sysdeps/unix/sysv/linux/powerpc/libc-start.c
3385 (__cache_line_size): Define the variable here. Add
3386 attribute_hidden, remove weak_extern.
3387 (__libc_start_main): Set __cache_line_size
3389 * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
3390 (__cache_line_size): Define the variable here. Add
3391 attribute_hidden, remove weak_extern.
3392 (DL_PLATFORM_AUXV): Set __cache_line_size
3394 * sysdeps/powerpc/powerpc32/dl-machine.c (__cache_line_size): Remove
3395 weak_extern, add attribute_hidden.
3396 (__elf_machine_runtime_setup): Assume __cache_line_size is always
3398 * sysdeps/powerpc/powerpc32/memset.S (__cache_line_size): Remove
3400 * sysdeps/powerpc/powerpc64/memset.S (__cache_line_size): Likewise.
3402 2007-03-26 Jakub Jelinek <jakub@redhat.com>
3405 * timezone/africa: Update from tzdata2007d.
3406 * timezone/asia: Likewise.
3407 * timezone/australasia: Likewise.
3408 * timezone/backward: Likewise.
3409 * timezone/europe: Likewise.
3410 * timezone/iso3166.tab: Likewise.
3411 * timezone/leapseconds: Likewise.
3412 * timezone/northamerica: Likewise.
3413 * timezone/southamerica: Likewise.
3414 * timezone/zone.tab: Likewise.
3416 * timezone/private.h: Update from tzcode2007d.
3417 * timezone/zdump.c: Likewise.
3418 * timezone/zic.c: Likewise.
3420 2007-03-21 Jakub Jelinek <jakub@redhat.com>
3422 * nis/nis_call.c: Include bits/libc-lock.h, sys/stat.h, unistd.h.
3423 (nis_server_cache, nis_server_cache_lock, nis_cold_start_mtime): New
3425 (nis_server_cache_search, nis_server_cache_add): New functions.
3426 (__nisfind_server): Use them. Add dbp and flags argument, if
3427 call __nisbind_create.
3428 (__nisbind_create): Add server_used and current_ep arguments,
3429 only call __nis_findfastest if server_used is ~0.
3430 (__do_niscall2, __prepare_niscall): Adjust callers.
3431 (ckey_cache, ckey_cache_size, ckey_cache_allocated, ckey_cache_pid,
3432 ckey_cache_euid, ckey_cache_lock): New variables.
3433 (get_ckey): New function.
3434 (__nisbind_connect): If not dbp->use_udp, pass IPPROTO_TCP to
3435 __pmap_getnisport. Save __pmap_getnisport result in
3436 dbp->addr.sin_port if non-zero. Use get_ckey to create conversation
3438 * nis/nis_lookup.c (nis_lookup): Likewise.
3439 * nis/nis_table.c (nis_list): Likewise.
3440 * nis/rpcsvc/nislib.h (__nisbind_create, __nisfind_server): Adjust
3443 * nis/nss_nisplus/nisplus-pwd.c (_nss_nisplus_getpwnam_r,
3444 _nss_nisplus_getpwuid_r): Pass USE_DGRAM flag to nis_list.
3445 * nis/nss_nisplus/nisplus-service.c (_nss_nisplus_getservbyname_r,
3446 _nss_nisplus_getservbyport_r): Likewise.
3447 * nis/nss_nisplus/nisplus-network.c (_nss_nisplus_getnetbyname_r,
3448 _nss_nisplus_getnetbyaddr_r): Likewise.
3449 * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_getspnam_r): Likewise.
3450 * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_gethostton_r,
3451 _nss_nisplus_getntohost_r): Likewise.
3452 * nis/nss_nisplus/nisplus-rpc.c (_nss_nisplus_getrpcbyname_r,
3453 _nss_nisplus_getrpcbynumber_r): Likewise.
3455 2007-03-20 Jakub Jelinek <jakub@redhat.com>
3457 * configure.in (libc_cv_gnu89_inline): Only do compile test.
3458 * configure: Rebuilt.
3460 * soft-fp/double.h (_FP_UNION_D): Use _FP_W_TYPE for frac
3462 * soft-fp/extended.h (_FP_UNION_E): Likewise.
3464 2006-06-07 Joseph Myers <joseph@codesourcery.com>
3467 * soft-fp/quad.h (_FP_UNION_Q): Use _FP_W_TYPE for frac
3470 2007-03-18 Jakub Jelinek <jakub@redhat.com>
3472 * nscd/gai.c: Include alloca.h.
3473 (__libc_use_alloca): Define.
3475 2007-03-16 Jakub Jelinek <jakub@redhat.com>
3477 * elf/dl-open.c (dl_open_worker): Declare l in 2 different
3479 * elf/dl-dst.h (DL_DST_REQ_STATIC): Add l as macro argument.
3480 (DL_DST_REQUIRED): Adjust user.
3482 * include/dlfcn.h (struct link_map): New forward decl.
3484 * inet/getnameinfo.c: Include stddef.h.
3485 (getnameinfo): Use offsetof.
3487 * time/tst-mktime2.c (do_test): Don't rely on signed wrap.
3489 * stdio-common/vfprintf.c (_itoa): Undef before redefining.
3491 * string/strerror_l.c: Include stdlib.h.
3493 * configure.in (libc_cv_gnu89_inline): Test for -fgnu89-inline.
3494 * config.make.in (gnu89-inline-CFLAGS): New variable.
3495 * Makeconfig (CFLAGS): Use $(gnu89-inline-CFLAGS) together with
3497 * misc/sys/cdefs.h (__extern_inline, __extern_always_inline): Define.
3498 * argp/argp.h: Use it.
3499 * bits/mathinline.h: Likewise.
3500 * bits/sigset.h: Likewise.
3501 * bits/string.h: Likewise.
3502 * ctype/ctype.h: Likewise.
3503 * hurd/hurd.h: Likewise.
3504 * hurd/hurd/fd.h: Likewise.
3505 * hurd/hurd/port.h: Likewise.
3506 * hurd/hurd/signal.h: Likewise.
3507 * hurd/hurd/threadvar.h: Likewise.
3508 * hurd/hurd/userlink.h: Likewise.