Commit Graph

14531 Commits

Author SHA1 Message Date
Alexandre Oliva
89a3ad0b6e * NEWS: Add note about FIPS mode. Wording suggested by Roland
McGrath.
2012-10-10 07:06:03 -03:00
Alexandre Oliva
e745142509 * crypt/crypt-entry.c: Include fips-private.h.
(__crypt_r, __crypt): Disable MD5 and DES if FIPS is enabled.
* crypt/md5c-test.c (main): Tolerate disabled MD5.
* sysdeps/unix/sysv/linux/fips-private.h: New file.
* sysdeps/generic/fips-private.h: New file, dummy fallback.
2012-10-10 07:05:46 -03:00
Alexandre Oliva
4ba74a3573 * crypt/crypt-private.h: Include stdbool.h.
(_ufc_setup_salt_r): Return bool.
* crypt/crypt-entry.c: Include errno.h.
(__crypt_r): Return NULL with EINVAL for bad salt.
* crypt/crypt_util.c (bad_for_salt): New.
(_ufc_setup_salt_r): Check that salt is long enough and within
the specified alphabet.
* crypt/badsalttest.c: New file.
* crypt/Makefile (tests): Add it.
($(objpfx)badsalttest): New.
2012-10-10 07:05:10 -03:00
Maxim Kuvyrkov
f96f12423a Add NEWS entry for BZ #14602. 2012-10-09 17:09:30 -07:00
Joseph Myers
0e8e0c1c93 Make libm-test.inc test comparison macros. 2012-10-09 23:34:12 +00:00
Roland McGrath
b8493de0ec Add missing magic to GLIBC_PROVIDES. 2012-10-09 15:41:30 -07:00
Roland McGrath
273edc5e13 Free errstring if _dl_addr doesn't returns 0 2012-10-09 15:22:16 -07:00
Joseph Myers
c8450f70fa Remove _G_off64_t and _G_stat64 from _G_config.h. 2012-10-09 15:09:32 +00:00
Maxim Kuvyrkov
57e605ba50 Fix BZ #14602: strstr and strcasestr return wrong result. 2012-10-08 20:52:53 -07:00
Joseph Myers
ef1bb3618c Improve libm test coverage of classification macros / functions. 2012-10-08 22:22:23 +00:00
Jonathan Nieder
55f115345a Makerules (check-abi-%): force C locale when running objdump
abilist.awk relies on English-language output to find the "file
format" header line in "objdump --dynamic-syms" output, so force the
locale.

Without this change, "make check" fails in non-English locales:

| diff -p -U 0 ../sysdeps/unix/sysv/linux/x86_64/64/nptl/libBrokenLocale.abilist [...]/locale/libBrokenLocale.symlist
| --- ../sysdeps/unix/sysv/linux/x86_64/64/nptl/libBrokenLocale.abilist   2012-10-02 18:33:50.761863147 -0700
| +++ [...]/locale/libBrokenLocale.symlist    2012-10-03 00:11:22.877234252 -0700
| @@ -0,0 +1 @@
| +Don't grok this line: [...]/locale/libBrokenLocale.so:     format de fichier elf64-x86-64
| make[2]: *** [check-abi-libBrokenLocale] Erreur 1
2012-10-08 14:04:15 -07:00
Andreas Schwab
1ab2935061 Fix missing include in sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c 2012-10-08 12:13:39 +02:00
David S. Miller
f1ecb7ef7f Fix Niagara-4 memcpy bug on 32-bit.
* sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: On 32-bit, clear
	upper 32-bits of the length value in %o2 since we use branch-on-register
	tests which consider the entire 64-bit register.
2012-10-06 18:36:40 -07:00
H.J. Lu
5d41d91a3e Add a strstr test for page boundary 2012-10-06 16:04:56 -07:00
David S. Miller
3baddb72a4 Add Niagara-4 optimized memset/bzero implementation.
* sysdeps/sparc/sparc64/multiarch/memset-niagara4.S: New file.
	* sysdeps/sparc/sparc32/sparcv9/multiarch/memset-niagara4.S: New
	file.
	* sysdeps/sparc/sparc64/multiarch/Makefile: Add to
	sysdep_routines.
	* sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Likewise.
	* sysdeps/sparc/sparc64/multiarch/memset.S: Use Niagara-4 memset
	and bzero when HWCAP_SPARC_CRYPTO is present.
2012-10-05 14:46:47 -07:00
H.J. Lu
d7e0dab96d Add a testase for BZ #14602 2012-10-05 13:32:27 -07:00
H.J. Lu
03759f47db Test strcasestr/strchr/strstr under all implementations 2012-10-05 13:32:07 -07:00
H.J. Lu
53cea63e99 Move _dl_important_hwcaps to dl-hwcaps.c 2012-10-05 10:26:29 -07:00
H.J. Lu
bb859b06dd Set GL(dl_nns) to 1 for vDSO in libc.a 2012-10-05 10:22:14 -07:00
H.J. Lu
9cee558564 Set up the data structures for vDSO in libc.a 2012-10-05 10:20:39 -07:00
Joseph Myers
28234b077e Improve libm-test.inc comment. 2012-10-05 17:06:23 +00:00
Joseph Myers
23c31b7695 Update config.guess and config.sub. 2012-10-05 16:00:07 +00:00
Roland McGrath
9043e2288e Name space hygeine for madvise. 2012-10-04 16:31:43 -07:00
Roland McGrath
f57f805541 Clean up conditionalize of ld.so.cache support. 2012-10-03 16:13:14 -07:00
Pino Toscano
5bb0c10a8f sysconf/posix: handle _SC_LEVEL4_CACHE_LINESIZE 2012-10-03 22:57:38 +02:00
Roland McGrath
010188c6ea Remove sysdeps/unix/bsd/confstr.h file. 2012-10-03 13:43:58 -07:00
Alexandre Oliva
b6c5ec0728 * scripts/check-local-headers.sh: Exclude sys/sdt.h and
sys/sdt-config.h.
2012-10-02 23:40:52 -03:00
Roland McGrath
408223d403 Use ElfW(Off) rather than off_t for offsets within ELF files. 2012-10-02 16:02:56 -07:00
Dmitry V. Levin
fc997c6e55 nscd: fix compilation flags
Commit 61653dfb81 added support for
compilers predefining _FORTIFY_SOURCE by adding -U_FORTIFY_SOURCE to
CPPFLAGS for these compilers, but that change doesn't work quite well in
case of nscd: its Makefile sets _FORTIFY_SOURCE using CFLAGS instead of
CPPFLAGS and, thanks to compilation rules defined in Makerules, CPPFLAGS
are passed to compiler after CFLAGS, resulting to a build with
_FORTIFY_SOURCE turned off.

This change implements a more safe method of passing preprocessor and
compiler flags so that no nscd modules could be accidentally forgotten.
2012-10-02 19:22:57 +00:00
Dmitry V. Levin
bb9510dc34 Clarify memory allocation error diagnostics to avoid confusion 2012-10-02 16:09:30 +00:00
H.J. Lu
0569936773 Define HAS_FMA with bit_FMA_Usable 2012-10-02 05:05:17 -07:00
Roland McGrath
51367701af Get rid of unused __swblk_t type. 2012-10-01 14:39:29 -07:00
Jeff Law
4d57bf6393 2012-10-01 Patsy Franklin <pfrankli@redhat.com>
Honza Horak <hhorak@redhat.com>

        * nis/yp_xdr.c (xdr_domainname): Use YPMAXDOMAIN as maxsize.
        (xdr_mapname): Use YPMAXMAP as maxsize.
        (xdr_peername): Use YPMAXPEER as maxsize.
        (xdr_keydat): Use YPAXRECORD as maxsize.
        (xdr_valdat): Use YPMAXRECORD as maxsize.
2012-10-01 15:32:39 -06:00
Roland McGrath
497a03d6f1 Define __have_atfcts global in stub openat implementation. 2012-10-01 13:07:58 -07:00
Roland McGrath
93c65d4384 Clean up init-first.c files. 2012-10-01 12:55:34 -07:00
Joseph Myers
bec749fda1 Fix sign of inexact zero return from fma (bug 14645). 2012-10-01 08:30:06 +00:00
Joseph Myers
8ec5b01346 Fix sign of exact zero return from fma (bug 14638). 2012-09-29 18:31:54 +00:00
David S. Miller
b1fa802e1a Uncorrupt Sparc ULPS file.
* sysdeps/sparc/fpu/libm-test-ulps: Fix garbage in file.
2012-09-28 16:36:35 -07:00
Roland McGrath
ea4d37b316 Implement POSIX-generic sleep via nanosleep rather than SIGARLM. 2012-09-28 16:26:33 -07:00
Roland McGrath
ac51c94918 Move _G_config.h with Linuxism to linux/ directory. 2012-09-28 15:45:07 -07:00
Roland McGrath
28c195f756 Fix stub open.c to define __libc_open. 2012-09-28 15:04:26 -07:00
Roland McGrath
848917f9ee Add a missing $(make-target-directory). 2012-09-28 14:48:17 -07:00
Roland McGrath
6bacf05bfd Quiet make warning under --disable-shared. 2012-09-28 14:33:40 -07:00
Roland McGrath
91363dbbb9 Conditionalize elf/dl-sysdep.c contents on [SHARED]. 2012-09-28 14:29:14 -07:00
Roland McGrath
cc87f7d851 Clean up *objdir variables. 2012-09-28 13:58:55 -07:00
Roland McGrath
b1c608fe20 Avoid more warnings in nsswitch.c 2012-09-28 13:48:14 -07:00
David S. Miller
766ea9371a Revert "Add missed ildouble case in yesterday's sparc ULPs update for clog/clog10."
This reverts commit 084b8fabd2.

Sorry something put garbage into the string, will debug this.
2012-09-28 13:29:09 -07:00
Roland McGrath
d3b9fd9e8d Avoid unused static function warning in nsswitch.c. 2012-09-28 13:23:00 -07:00
David S. Miller
084b8fabd2 Add missed ildouble case in yesterday's sparc ULPs update for clog/clog10.
* sysdeps/sparc/fpu/libm-test-ulps: Update.
2012-09-28 13:15:51 -07:00
David S. Miller
1d9a6d96ac Add Niagara-4 optimized memcpy and mempcpy.
* sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: New file.
	* sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-niagara4.S: New
	file.
	* sysdeps/sparc/sparc64/multiarch/Makefile: Add to
	sysdep_routines.
	* sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Likewise.
	* sysdeps/sparc/sparc64/multiarch/memcpy.S: Use Niagara-4 memcpy
	and mempcpy when HWCAP_SPARC_CRYPTO is set.
2012-09-28 13:06:24 -07:00