aboutsummaryrefslogtreecommitdiff
path: root/ChangeLog
AgeCommit message (Collapse)Author
2016-04-28resolv: Assorted preprocessor cleanupsFlorian Weimer
2016-04-28resolv: Remove SUNSECURITY preprocessor conditionalsFlorian Weimer
The macro is never defined.
2016-04-28resolv: Remove BSD compatibility conditionals and headerFlorian Weimer
2016-04-28resolv: Remove __BIND_NOSTATIC conditionalsFlorian Weimer
The macro is never defined.
2016-04-28resolv: Remove traces of ULTRIX supportFlorian Weimer
2016-04-28resolv: Remove RFC1535 conditionalsFlorian Weimer
2016-04-28resolv: Remove RESOLVSORT preprocess conditionalsFlorian Weimer
2016-04-28resolv: Remove BIND_UPDATE preprocessor conditionalsFlorian Weimer
2016-04-28inet: Remove SCCS keywordsFlorian Weimer
2016-04-28resolv: Remove _LIBC conditionalsFlorian Weimer
2016-04-28resolv: Remove SCCS and RCS keywordsFlorian Weimer
2016-04-28Fix ChangeLog date to reflect commit dateFlorian Weimer
2016-04-27conformtest: Correct stdio.h expectations for fdopen.Joseph Myers
The conform/ test of stdio.h wrongly does not expect fdopen for XPG3 and XPG4. fdopen is in those standards; this patch corrects the expectations. Tested for x86_64 and x86. * conform/data/stdio.h-data (fdopen): Expect also for [XPG3 || XPG4].
2016-04-27conformtest: Correct some stdio.h expectations for UNIX98.Joseph Myers
The conform/ test of stdio.h for UNIX98 fails with surious namespace errors for functions that are correctly declared for that standard. This patch fixes the expectations to expect those functions also for UNIX98. (This does not by itself fix the XFAIL of that test, and is not based a full review of the header expectations so there could still be other bugs in the expectations for this header for UNIX98.) Tested for x86_64 and x86. * conform/data/stdio.h-data (flockfile): Also expect for [UNIX98]. (fseeko): Likewise. (ftello): Likewise. (ftrylockfile): Likewise. (funlockfile): Likewise. (getc_unlocked): Likewise. (getchar_unlocked): Likewise. (putc_unlocked): Likewise. (putchar_unlocked): Likewise.
2016-04-27nss_dns: Skip over non-PTR records in the netent code [BZ #19868]Florian Weimer
This requires additional checks for the RDATA length and the availability of record metadata.
2016-04-27nss_dns: Remove custom offsetof macro definitionFlorian Weimer
2016-04-27nss_dns: Check address length before creating addrinfo result [BZ #19831]Florian Weimer
Previously, we allocated room in the result space before the check, leaving uninitialized data there in case the check failed. This also consolidates the behavior between single (A or AAAA) and dual (A and AAAA in parallel) queries. Single queries checked the record length against the QTYPE, not the RRTYPE.
2016-04-27resolv, nss_dns: Remove remaining syslog logging [BZ #19862]Florian Weimer
The fix for bug 14841 only removed part of the logging.
2016-04-27conformtest: Correct some signal.h expectations for XOPEN2K.Joseph Myers
The conformtest expectations for signal.h have various declarations that are expected for POSIX (1996) and all later standards, except, wrongly, for XOPEN2K. This shows up as failures of tests for two other headers, which are allowed to make visible symbols from signal.h, because of an incorrect namespace failure for sigval (required in signal.h in XOPEN2K, so should be allowed for those other headers); signal.h tests for various standards fail anyway because of other problems in the header. This patch fixes the incorrect expectations and removes the two XFAILs that this fixes. Tested for x86_64 and x86. * conform/data/signal.h-data (union sigval): Expect also if [XOPEN2K]. (struct sigevent): Likewise. (SIGEV_NONE): Likewise. (SIGEV_SIGNAL): Likewise. (SIGEV_THREAD): Likewise. (SIGRTMIN): Likewise. (SIGRTMAX): Likewise. * conform/Makefile (test-xfail-XOPEN2K/aio.h/conform): Remove variable. (test-xfail-XOPEN2K/mqueue.h/conform): Likewise.
2016-04-27nss_dns: Validate RDATA length against packet length [BZ #19830]Florian Weimer
In _nss_dns_getcanonname_r, a check for the availability of RR metadata was missing as well.
2016-04-27resolv: Always set *resplen2 out parameter in send_vc [BZ #19825]Florian Weimer
In various error scenarios (for example, if the server closes the TCP connection before sending the full response), send_vc can return without resetting the *resplen2 value. This can pass uninitialized or unexpected data to the caller.
2016-04-27Add missing iucv related defines.Stefan Liebler
this patch adds the missing SOL_IUCV socket level definition and socket options SO_IPRMDATA_MSG, SO_MSGLIMIT, SO_MSGSIZE which can be used with get/setsockopt(). SCM_IUCV_TRGCLS is needed to send/receive ancillary data with send/recvmsg(). The defines are copied from kernel-source: include/net/iucv/af_iucv.h include/linux/socket.h
2016-04-26libio: Update internal fmemopen position after write (BZ #20005)Adhemerval Zanella
Current GLIBC fmemopen fails with a simple testcase: char buffer[500] = "x"; FILE *stream; stream = fmemopen(buffer, 500, "r+"); fwrite("fish",sizeof(char),5,stream); printf("pos-1:%ld\n",ftell(stream)); fflush(stream); printf("pos-2:%ld\n",ftell(stream)); It returns: pos-1:5 pos-2:0 Where it should return: pos-1:5 pos-2:5 This is due the internal write function does not correctly update the internal object position state and then the seek operation returns a wrong value. This patch fixes it. It fixes both BZ #20005 and BZ #19230 (marked as duplicated). A new test is added to check for such case. Tested on x86_64 and i686. * libio/fmemopen.c (fmemopen_write): Update internal position after write. * stdio-common/Makefile (tests): Add tst-fmemopen4.c. * stdio-common/tst-fmemopen4.c: New file..
2016-04-26Fix langinfo.h nl_langinfo_l namespace (bug 19996).Joseph Myers
langinfo.h declares nl_langinfo_l if __USE_XOPEN2K. But this function was new in the 2008 edition of POSIX. This patch fixes the condition accordingly. Tested for x86_64 and x86 (testsuite, and that installed shared libraries are unchanged by the patch). [BZ #19996] * locale/langinfo.h (nl_langinfo_l): Declare if [__USE_XOPEN2K8], not [__USE_XOPEN2K]. * conform/Makefile (test-xfail-XOPEN2K/langinfo.h/conform): Remove variable.
2016-04-26conformtest: Correct XOPEN2K stdarg.h expectations.Joseph Myers
The conform/ test expectations for stdarg.h were wrongly missing an expectation of va_copy for XOPEN2K (based on C99, so including that macro). This patch fixes this. Tested for x86_64 and x86. * conform/data/stdarg.h-data [XOPEN2K] (va_copy): Require macro. * conform/Makefile (test-xfail-XOPEN2K/stdarg.h/conform): Remove variable.
2016-04-26Define off_t in stdio.h for XOPEN2K.Joseph Myers
The header conformance test for stdio.h for XOPEN2K fails because the header does not define the off_t type, used in the expected declarations for fseeko and ftello. The absence of this type is not actually strictly a bug (hence no bug report being filed in Bugzilla), since POSIX didn't require the type to be declared in this header until the 2008 edition. However, the glibc convention in such cases - where the type falls under the general *_t POSIX reservation, and so it's OK to define it for all POSIX versions - is to make the headers self-contained in this regard even for the older POSIX versions not requiring the type to be defined despite including other declarations depending on the type. Thus, this patch adjusts the condition in the header and removes the XFAIL (rather than adapting the expectation to work when the functions are declared using __off_t without off_t being defined). Tested for x86_64 and x86 (testsuite, and that installed stripped shared libraries are unchanged by the patch). * libio/stdio.h (off_t): Define if [__USE_XOPEN2K], not [__USE_XOPEN2K8]. [__USE_LARGEFILE64] (off64_t): Likewise. * conform/Makefile (test-xfail-XOPEN2K/stdio.h/conform): Remove variable.
2016-04-25Fix stdio.h cuserid namespace (bug 19989).Joseph Myers
stdio.h declares cuserid if __USE_XOPEN. But this was removed in the 2001 edition of POSIX. The #endif comment "Use X/Open, but not issue 6." reflects the correct logic, but does not correspond to the #ifdef. The use of a correct libc-hacker. The online archives for libc-hacker in August 2000 are broken, but the messages can be found in the qmail archives in /sourceware1/qmail/lists-sourceware/libc-hacker/archive/26 if you have shell access to sourceware. The issue showed up in August 2000 because of a warning about a non-prototype definition in sysdeps/posix/cuserid.c when there was no previous prototype declaration. Since we've now eliminated non-prototype function definitions, that issue does not apply. The other points from that discussion were about whether it should be included in _GNU_SOURCE; whether _GNU_SOURCE should include "everything"; whether deprecated interfaces such as this should be excluded from it; and whether, even given exclusion of deprecated interfaces, it should apply for deprecations in a version of POSIX that at that time had not been released. This patch follows the more conservative approach to a fix of keeping the interface in _GNU_SOURCE. That matches how L_cuserid is handled. I think there is a strong case for eliminating this interface from _GNU_SOURCE (but this may not automatically be the case for every interface removed in newer POSIX versions), but then L_cuserid should also be removed from _GNU_SOURCE (in stdio-common/stdio_lim.h.in) at the same time. Tested for x86_64 and x86 (testsuite, and that installed shared libraries are unchanged by the patch). [BZ #19989] * libio/stdio.h (cuserid): Do not declare if [__USE_XOPEN2K && !__USE_GNU]. * conform/Makefile (test-xfail-XOPEN2K8/stdio.h/conform): Remove variable.
2016-04-25powerpc: Add optimized strcspn for P8Paul E. Murphy
A few minor adjustments to the P8 strspn gives us an almost equally optimized P8 strcspn.
2016-04-25vfprintf: Fix memory with large width and precision [BZ #19931]Florian Weimer
Free a previously allocated work buffer if it is not large enough.
2016-04-25Fix stdlib/tst-makecontext regression for Nios IIChung-Lin Tang
2016-04-24non-linux: Apply RFC3542 obsoletion of RFC2292 macrosSamuel Thibault
(IPV6_RECVHOPLIMIT, IPV6_HOPLIMIT, IPV6_RECVHOPOPTS, IPV6_HOPOPTS, IPV6_RTHDRDSTOPTS, IPV6_RECVRTHDR, IPV6_RTHDR, IPV6_RECVDSTOPTS, IPV6_DSTOPTS, IPV6_RECVPATHMTU, IPV6_PATHMTU, IPV6_DONTFRAG): New macros.
2016-04-24non-linux: Apply RFC3542 obsoletion of RFC2292 macrosSamuel Thibault
RFC2292 macros were obsoleted by RFC3542, and should not be exposed any more. Notably since IPV6_PKTINFO has been reintroduced with a completely different API. * bits/in.h (IPV6_PKTINFO): Rename to IPV6_2292PKTINFO. (IPV6_HOPOPTS): Rename to IPV6_2292HOPOPTS. (IPV6_DSTOPTS): Rename to IPV6_2292DSTOPTS. (IPV6_RTHDR): Rename to IPV6_2292RTHDR. (IPV6_PKTOPTIONS): Rename to IPV6_2292PKTOPTIONS. (IPV6_HOPLIMIT): Rename to IPV6_2292HOPLIMIT. (IPV6_RECVPKTINFO): New macro. (IPV6_PKTINFO): New macro.
2016-04-23Reduce number of mmap calls from __libc_memalign in ld.soH.J. Lu
__libc_memalign in ld.so allocates one page at a time and tries to optimize consecutive __libc_memalign calls by hoping that the next mmap is after the current memory allocation. However, the kernel hands out mmap addresses in top-down order, so this optimization in practice never happens, with the result that we have more mmap calls and waste a bunch of space for each __libc_memalign. This change makes __libc_memalign to mmap one page extra. Worst case, the kernel never puts a backing page behind it, but best case it allows __libc_memalign to operate much much better. For elf/tst-align --direct, it reduces number of mmap calls from 12 to 9. * elf/dl-minimal.c (__libc_memalign): Mmap one extra page.
2016-04-23localedef: change week_1stweek default to 7Mike Frysinger
The ISO 14652/30112 specs say the defaults for the week keyword are: 7, 19971130, 7 The localedef has been using those defaults for the first two, but 0 for the last one.
2016-04-22powerpc: strcasestr optmization for power8Rajalakshmi Srinivasaraghavan
This patch optimizes strcasestr function for power >= 8 systems. The average improvement of this optimization is ~40% and compares 16 bytes at a time using vector instructions. This patch is tested on powerpc64 and powerpc64le.
2016-04-20benchtests: Support for cross-building benchmarksSiddhesh Poyarekar
This patch adds full support for cross-building benchmarks. Some benchmarks like those that need locales to be generated cannot be built and are hence skipped for cross builds. Tested by cross building for aarch64 on x86_64 and then running the generated benchmark on aarch64. * benchtests/Makefile (wcsmbs-benchset): Include only for native builds and runs. (LOCALES): Likewise. (bench-build): Build timing-type here instead of the bench target. Generate locale only for native builds. * benchtests/README: Add note for cross-building.
2016-04-20benchtests: Clean up extra-objsSiddhesh Poyarekar
The bench-clean target would leave behind json-lib.o. Fix up to clean up all extra-objs registered in benchtests.
2016-04-20Fix up ChangeLogSiddhesh Poyarekar
Looks like I have forgotten what a ChangeLog entry looks like :/
2016-04-20benchtests: Update README to include instructions for bench-build targetSiddhesh Poyarekar
2016-04-20Fix up ChangeLog formattingSiddhesh Poyarekar
2016-04-20New make target to only build benchmark binariesSiddhesh Poyarekar
For situations where we are cross-building or where we want to avoid building on the target system, we want a way to only build benchmarks and then copy them over to the target system to run them. I have also added a simple enhancement for the 'bench' target where all benchmark binaries are built and then the benchmarks executed. Tested on arm. Makefile.in (bench-build): New target. Rules (PHONY): Add bench-build target. benchtests/Makefile (bench): Depend on bench-build. (bench-build): New target.
2016-04-19Fix gprof timingSamuel Thibault
* sysdeps/mach/hurd/profil.c (__profile_frequency): Return tick frequency instead of tick length in us.
2016-04-19hurd: fix profiling short-living processesSamuel Thibault
* sysdeps/mach/hurd/profil.c (update_waiter): Initialize profil_reply_port. (profile_waiter): Do not initialize profil_reply_port.
2016-04-18Move mempcpy, strcpy and stpcpy inlines to string/string-inlines.c as ↵Wilco Dijkstra
compatibility symbols as they are no longer used. Fix compat symbols for __strpbrk inlines. [BZ #18712] * string/string-inlines.c (__STRING2_COPY_TYPE): Add, moved from string2.h. (__old_mempcpy_small): Likewise. (__old_strcpy_small): Likewise. (__old_stpcpy_small): Likewise. (__old_strpbrk_c2): Fix compat symbol name. (__old_strpbrk_c3): Likewise. * string/bits/string2.h (__STRING2_COPY_TYPE): Remove. (__mempcpy_small): Remove. (__strcpy_small): Remove. (__stpcpy_small): Remove.
2016-04-16locale: iso-639: add Talossan language [BZ #19400]Robin van der Vliet
2016-04-16localedef: allow %l/%n in postal_fmt [BZ #16983]Mike Frysinger
ISO 14652/30112 includes %l & %n now, so permit them in our files.
2016-04-16locale: ld-telephone: update to ISO-30112 2014Mike Frysinger
The newer version of the standard adds %C %e %t to tel_int_fmt and tel_dom_fmt. Make sure localedef accepts them. Also change the default tel_int_fmt to include %t per the standard.
2016-04-15powerpc: Optimization for strlen for POWER8.Carlos Eduardo Seo
This implementation takes advantage of vectorization to improve performance of the loop over the current strlen implementation for POWER7.
2016-04-15localedata: CLDRv29: update LC_MONETARY int_curr_symbol & currency_symbolMike Frysinger
This updates a few locales based on CLDR v29 data. I've verified most by hand while the rest I know are correct. For int_curr_symbol, it should be 3 characters followed by a space: ar_SS: changing SDG to SSP bem_ZM: changing ZMK to ZMW dz_BT: changing BTN to BTN # Just changing " " to "<U0020>". en_ZW: changing ZWD to USD es_SV: changing SVC to USD lv_LV: changing LVL to EUR ne_NP: changing INR to NPR pap_AW: changing ANG to AWG the_NP: changing INR to NPR Some of these require updates iso-4217.def. For currency_symbol, it should be the standard/localized symbol name: aa_DJ: changing $ to Fdj ar_SA: changing ريال to ر.س ar_SS: changing ج.س. to £ az_AZ: changing man. to ₼ bg_BG: changing лв to лв. ce_RU: changing руб to ₽ crh_UA: changing gr to ₴ cv_RU: changing t to ₽ de_CH: changing Fr. to CHF dz_BT: changing དངུལ་ཀྲམ་ to Nu. en_BW: changing Pu to P en_DK: changing ¤ to kr. en_PH: changing Php to ₱ en_ZW: changing Z$ to $ es_BO: changing $b to Bs es_DO: changing $ to RD$ es_HN: changing L. to L es_PA: changing B/ to B/. es_SV: changing ₡ to $ fil_PH: changing PhP to ₱ he_IL: changing שח to ₪ hy_AM: changing Դ to ֏ ka_GE: changing ლ to ₾ kk_KZ: changing тг to ₸ ko_KR: changing ₩ to ₩ lg_UG: changing /- to USh lv_LV: changing Ls to € mg_MG: changing AR to Ar mhr_RU: changing ТЕҤ to ₽ my_MM: changing Ks to K os_RU: changing сом to ₽ pap_AW: changing f to ƒ pap_CW: changing f to ƒ ps_AF: changing افغانۍ to ؋ rw_RW: changing Frw to FRw ru_RU: changing руб to ₽ ru_UA: changing гр to ₴ sd_IN@devanagari: changing रु to ₹ se_NO: changing ru to kr si_LK: changing ₨ to රු so_SO: changing $ to S sq_AL: changing Lek to L ti_ER: changing $ to Nfk ti_ET: changing $ to Br tl_PH: changing PhP to ₱ tr_TR: changing TL to ₺ tt_RU: changing руб to ₽ tt_RU@iqtelif: changing sum to ₽ uz_UZ: changing so'm to soʻm Note: Some of the characters might not render as they're still quite new in the Unicode database.
2016-04-15Detect Intel Goldmont and Airmont processorsH.J. Lu
Updated from the model numbers of Goldmont and Airmont processors in Intel64 And IA-32 Processor Architectures Software Developer's Manual Volume 3 Revision 058. * sysdeps/x86/cpu-features.c (init_cpu_features): Detect Intel Goldmont and Airmont processors.