summaryrefslogtreecommitdiff
path: root/modules
Commit message (Collapse)AuthorAgeFilesLines
...
* log10l: Work around AIX 5.1, IRIX 6.5, OSF/1 5.1 bug.Bruno Haible2012-04-012-3/+4
| | | | | | | | | | | | | | * lib/math.in.h (log10l): Override if REPLACE_LOG10L is 1. * lib/log10l.c (log10l): If log10l exists, use it and provide just the workaround. * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): New macro. (gl_FUNC_LOG10L): Invoke it. Set REPLACE_LOG10L. * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10L. * modules/math (Makefile.am): Substitute REPLACE_LOG10L. * modules/log10l (configure.ac): Consider REPLACE_LOG10L. (Depends-on): Update conditions. * doc/posix-functions/log10l.texi: Mention the MSVC9, AIX 5.1, IRIX 6.5, OSF/1 5.1 problems.
* log10f: Work around OSF/1 5.1 bug.Bruno Haible2012-04-012-2/+3
| | | | | | | | | | | | | * lib/math.in.h (log10f): Override if REPLACE_LOG10F is 1. * lib/log10f.c (log10f): If logf exists, use it and provide just the workaround. * m4/log10f.m4 (gl_FUNC_LOG10F_WORKS): New macro. (gl_FUNC_LOG10F): Invoke it. Set REPLACE_LOG10F. * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10F. * modules/math (Makefile.am): Substitute REPLACE_LOG10F. * modules/log10f (configure.ac): Consider REPLACE_LOG10F. (Depends-on): Update conditions. * doc/posix-functions/log10f.texi: Mention the OSF/1 5.1 problem.
* log10: Work around OSF/1 5.1 bug.Bruno Haible2012-04-012-0/+8
| | | | | | | | | | | | | | | * lib/math.in.h (log10): New declaration. * lib/log10.c: New file. * m4/log10.m4 (gl_FUNC_LOG10_WORKS): New macro. (gl_FUNC_LOG10): Invoke it. Set REPLACE_LOG10. * m4/math_h.m4 (gl_MATH_H): Test whether log10 is declared. (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10, REPLACE_LOG10. * modules/math (Makefile.am): Substitute GNULIB_LOG10, REPLACE_LOG10. * modules/log10 (Files): Add lib/log10.c. (Depends-on): Add math. (configure.ac): If REPLACE_LOG10 is 1, compile an override. * tests/test-math-c++.cc: Check the declaration of log10. * doc/posix-functions/log10.texi: Mention the OSF/1 5.1 problem.
* log10l tests: More tests.Bruno Haible2012-04-011-0/+4
| | | | | | | | * modules/log10l-tests (Files): Add tests/test-log10l.h, tests/minus-zero.h, tests/randoml.c. (Makefile.am): Add randoml.c to test_log10l_SOURCES. * tests/test-log10l.c: Include <float.h>, minus-zero.h, test-log10l.h. (main): Invoke test_function.
* log10f tests: More tests.Bruno Haible2012-04-011-0/+4
| | | | | | | | * modules/log10f-tests (Files): Add tests/test-log10.h, tests/minus-zero.h, tests/randomf.c. (Makefile.am): Add randomf.c to test_log10f_SOURCES. * tests/test-log10f.c: Include <float.h>, minus-zero.h, test-log10.h. (main): Invoke test_function.
* log10 tests: More tests.Bruno Haible2012-04-011-0/+4
| | | | | | | | | * tests/test-log10.h: New file. * modules/log10-tests (Files): Add tests/test-log10.h, tests/minus-zero.h, tests/randomd.c. (Makefile.am): Add randomd.c to test_log10_SOURCES. * tests/test-log10.c: Include <float.h>, minus-zero.h, test-log10.h. (main): Invoke test_function.
* fflush: Fix syntax error.Simon Josefsson2012-03-311-6/+7
| | | | | | * lib/fflush.c: Include unused-parameter.h, needed for _GL_UNUSED_PARAMETER. * modules/fflush (Depends-on): Add snippet/unused-parameter.
* stdio: don't assume gets any moreEric Blake2012-03-291-1/+0
| | | | | | | | | | | | | | | | | | | Gnulib intentionally does not have a gets module, and now that C11 and glibc have dropped it, we should be more proactive about warning any user on a platform that still has a declaration of this dangerous interface. * m4/stdio_h.m4 (gl_STDIO_H, gl_STDIO_H_DEFAULTS): Drop gets support. * modules/stdio (Makefile.am): Likewise. * lib/stdio-read.c (gets): Likewise. * tests/test-stdio-c++.cc: Likewise. * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix comment. * lib/stdio.in.h (gets): Make warning occur in more places. * doc/posix-functions/gets.texi (gets): Update documentation. Reported by Christer Solskogen. Signed-off-by: Eric Blake <eblake@redhat.com>
* Tests for module 'localeconv'.Bruno Haible2012-03-251-0/+12
| | | | | * modules/localeconv-tests: New file. * tests/test-localeconv.c: New file.
* New module 'localeconv'.Bruno Haible2012-03-254-0/+33
| | | | | | | | | | | | | | * lib/locale.in.h (localeconv): New declaration. * lib/localeconv.c: New file. * m4/localeconv.m4: New file. * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_LOCALECONV, REPLACE_LOCALECONV. * modules/locale (Makefile.am): Substitute GNULIB_LOCALECONV, REPLACE_LOCALECONV. * modules/localeconv: New file. * modules/nl_langinfo (Depends-on): Add localeconv. * modules/human (Depends-on): Likewise. * doc/posix-functions/localeconv.texi: Mention the new module.
* locale: Provide a working 'struct lconv'.Bruno Haible2012-03-251-0/+1
| | | | | | | | | | | | * lib/locale.in.h (lconv): Override if REPLACE_STRUCT_LCONV is 1. * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if 'struct lconv' does not even contain decimal_point. (gl_LOCALE_H_DEFAULTS): Initialize REPLACE_STRUCT_LCONV. * modules/locale (Makefile.am): Substitute REPLACE_STRUCT_LCONV. * tests/test-locale.c (main): Check that 'struct lconv' is complete. * doc/posix-headers/locale.texi: Mention the problems with 'struct lconv'. Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
* sqrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.Bruno Haible2012-03-142-6/+7
| | | | | | | | | | | | | | * lib/math.in.h (sqrtl): Replace it if REPLACE_SQRTL is 1. * m4/sqrtl.m4 (gl_FUNC_SQRTL_WORKS): New macro. (gl_FUNC_SQRTL): Invoke it. Set REPLACE_SQRTL to 1 if sqrtl() produces too big rounding errors. * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_SQRTL. * modules/math (Makefile.am): Substitute REPLACE_SQRTL. * modules/sqrtl (configure.ac): Consider REPLACE_SQRTL. (Depends-on): Update conditions. * tests/test-sqrtl.c (my_ldexpl): New function. (main): Add test of a particular value. * doc/posix-functions/sqrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
* log2f-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.Bruno Haible2012-03-111-0/+3
| | | | | | | | | | * m4/log2f-ieee.m4: New file. * m4/log2f.m4 (gl_FUNC_LOG2F): If gl_FUNC_LOG2F_IEEE is present, test whether log2f works with a minus zero argument. Replace it if not. * modules/log2f-ieee (Files): Add m4/log2f-ieee.m4. (Depends-on): Add log2-ieee. (configure.ac): Invoke gl_FUNC_LOG2F_IEEE. * doc/posix-functions/log2f.texi: Mention the log2f-ieee module.
* log2-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.Bruno Haible2012-03-111-0/+2
| | | | | | | | | * m4/log2-ieee.m4: New file. * m4/log2.m4 (gl_FUNC_LOG2): If gl_FUNC_LOG2_IEEE is present, test whether log2 works with a minus zero argument. Replace it if not. * modules/log2-ieee (Files): Add m4/log2-ieee.m4. (configure.ac): Invoke gl_FUNC_LOG2_IEEE. * doc/posix-functions/log2.texi: Mention the log2-ieee module.
* Tests for module 'log2l-ieee'.Bruno Haible2012-03-111-0/+19
| | | | | * modules/log2l-ieee-tests: New file. * tests/test-log2l-ieee.c: New file.
* New module 'log2l-ieee'.Bruno Haible2012-03-111-0/+24
| | | | * modules/log2l-ieee: New file.
* Tests for module 'log2-ieee'.Bruno Haible2012-03-111-0/+19
| | | | | * modules/log2-ieee-tests: New file. * tests/test-log2-ieee.c: New file.
* New module 'log2-ieee'.Bruno Haible2012-03-111-0/+24
| | | | * modules/log2-ieee: New file.
* Tests for module 'log2f-ieee'.Bruno Haible2012-03-111-0/+19
| | | | | | * modules/log2f-ieee-tests: New file. * tests/test-log2f-ieee.c: New file. * tests/test-log2-ieee.h: New file.
* New module 'log2f-ieee'.Bruno Haible2012-03-111-0/+24
| | | | * modules/log2f-ieee: New file.
* Tests for module 'log2l'.Bruno Haible2012-03-111-0/+19
| | | | | * modules/log2l-tests: New file. * tests/test-log2l.c: New file.
* New module 'log2l'.Bruno Haible2012-03-112-0/+38
| | | | | | | | | | | | | | | * lib/math.in.h (log2l): New declaration. * lib/log2l.c: New file. * m4/log2l.m4: New file. * m4/math_h.m4 (gl_MATH_H): Test whether log2l is declared. (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2L, HAVE_DECL_LOG2L, REPLACE_LOG2L. * modules/math (Makefile.am): Substitute GNULIB_LOG2L, HAVE_DECL_LOG2L, REPLACE_LOG2L. * modules/log2l: New file. * tests/test-math-c++.cc: Check the declaration of log2l. * doc/posix-functions/log2l.texi: Mention the new module and the IRIX and OSF/1 problems.
* Tests for module 'log2f'.Bruno Haible2012-03-111-0/+17
| | | | | * modules/log2f-tests: New file. * tests/test-log2f.c: New file.
* New module 'log2f'.Bruno Haible2012-03-112-0/+38
| | | | | | | | | | | | | | | * lib/math.in.h (log2f): New declaration. * lib/log2f.c: New file. * m4/log2f.m4: New file. * m4/math_h.m4 (gl_MATH_H): Test whether log2f is declared. (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2F, HAVE_DECL_LOG2F, REPLACE_LOG2F. * modules/math (Makefile.am): Substitute GNULIB_LOG2F, HAVE_DECL_LOG2F, REPLACE_LOG2F. * modules/log2f: New file. * tests/test-math-c++.cc: Check the declaration of log2f. * doc/posix-functions/log2f.texi: Mention the new module and the IRIX and OSF/1 and Cygwin problems.
* Tests for module 'log2'.Bruno Haible2012-03-111-0/+17
| | | | | | * modules/log2-tests: New file. * tests/test-log2.c: New file. * tests/test-log2.h: New file.
* New module 'log2'.Bruno Haible2012-03-112-0/+38
| | | | | | | | | | | | | | | * lib/math.in.h (log2): New declaration. * lib/log2.c: New file. * m4/log2.m4: New file. * m4/math_h.m4 (gl_MATH_H): Test whether log2 is declared. (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2, HAVE_DECL_LOG2, REPLACE_LOG2. * modules/math (Makefile.am): Substitute GNULIB_LOG2, HAVE_DECL_LOG2, REPLACE_LOG2. * modules/log2: New file. * tests/test-math-c++.cc: Check the declaration of log2. * doc/posix-functions/log2.texi: Mention the new module and the IRIX and OSF/1 and Cygwin problems.
* log1pl-ieee: Work around test failure on AIX 7.1.Bruno Haible2012-03-111-0/+1
| | | | * modules/log1pl-ieee (Depends-on): Add log1p-ieee.
* log1pl-ieee: Work around test failure on IRIX 6.5.Bruno Haible2012-03-113-5/+10
| | | | | | | | | | | | | | | | * m4/log1pl-ieee.m4: New file. * m4/log1pl.m4 (gl_FUNC_LOG1PL): If gl_FUNC_LOG1PL_IEEE is present, test whether log1pl works with a minus zero argument. Replace it if not. * lib/math.in.h (log1pl): Override if REPLACE_LOG1PL is 1. * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1PL. * modules/math (Makefile.am): Substitute REPLACE_LOG1PL. * modules/log1pl (configure.ac): Consider REPLACE_LOG1PL. (Depends-on): Update conditions. * modules/log1pl-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4, m4/signbit.m4. (configure.ac): Invoke gl_FUNC_LOG1PL_IEEE. * doc/posix-functions/log1pl.texi: Mention the log1pl-ieee module.
* log1pf-ieee: Work around test failure on OpenBSD 4.9 and AIX 7.1.Bruno Haible2012-03-111-1/+4
| | | | | | | | | | | * m4/log1pf-ieee.m4: New file. * m4/log1pf.m4 (gl_FUNC_LOG1PF): If gl_FUNC_LOG1PF_IEEE is present, test whether log1pf works with a minus zero argument. Replace it if not. * modules/log1pf-ieee (Files): Add m4/log1pf-ieee.m4, m4/minus-zero.m4, m4/signbit.m4. (configure.ac): Invoke gl_FUNC_LOG1PF_IEEE. * doc/posix-functions/log1pf.texi: Mention the log1pf-ieee module.
* log1pf-ieee: Work around test failure on AIX 5.1 and HP-UX 11.Bruno Haible2012-03-111-0/+2
| | | | | * modules/log1pf-ieee (Depends-on): Add log1p-ieee. (configure.ac): Require gl_FUNC_LOG1PF.
* log1p-ieee: Work around test failure on AIX 7.1 and HP-UX 11.Bruno Haible2012-03-113-4/+9
| | | | | | | | | | | | | | | * m4/log1p-ieee.m4: New file. * m4/log1p.m4 (gl_FUNC_LOG1P): If gl_FUNC_LOG1P_IEEE is present, test whether log1p works with a minus zero argument. Replace it if not. * lib/math.in.h (log1p): Override if REPLACE_LOG1P is 1. * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1P. * modules/math (Makefile.am): Substitute REPLACE_LOG1P. * modules/log1p (configure.ac): Consider REPLACE_LOG1P. (Depends-on): Update conditions. * modules/log1p-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4, m4/signbit.m4. (configure.ac): Invoke gl_FUNC_LOG1P_IEEE. * doc/posix-functions/log1p.texi: Mention the log1p-ieee module.
* Tests for module 'log1pl-ieee'.Bruno Haible2012-03-111-0/+19
| | | | | * modules/log1pl-ieee-tests: New file. * tests/test-log1pl-ieee.c: New file.
* New module 'log1pl-ieee'.Bruno Haible2012-03-111-0/+24
| | | | * modules/log1pl-ieee: New file.
* Tests for module 'log1p-ieee'.Bruno Haible2012-03-111-0/+19
| | | | | * modules/log1p-ieee-tests: New file. * tests/test-log1p-ieee.c: New file.
* New module 'log1p-ieee'.Bruno Haible2012-03-111-0/+24
| | | | * modules/log1p-ieee: New file.
* Tests for module 'log1pf-ieee'.Bruno Haible2012-03-111-0/+19
| | | | | | * modules/log1pf-ieee-tests: New file. * tests/test-log1pf-ieee.c: New file. * tests/test-log1p-ieee.h: New file.
* New module 'log1pf-ieee'.Bruno Haible2012-03-111-0/+24
| | | | * modules/log1pf-ieee: New file.
* Tests for module 'log1pl'.Bruno Haible2012-03-111-0/+18
| | | | | * modules/log1pl-tests: New file. * tests/test-log1pl.c: New file.
* New module 'log1pl'.Bruno Haible2012-03-112-0/+37
| | | | | | | | | | | | * lib/math.in.h (log1pl): New declaration. * lib/log1pl.c: New file. * m4/log1pl.m4: New file. * m4/math_h.m4 (gl_MATH_H): Test whether log1pl is declared. (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PL, HAVE_LOG1PL. * modules/math (Makefile.am): Substitute GNULIB_LOG1PL, HAVE_LOG1PL. * modules/log1pl: New file. * tests/test-math-c++.cc: Check the declaration of log1pl. * doc/posix-functions/log1pl.texi: Mention the new module.
* Tests for module 'log1pf'.Bruno Haible2012-03-111-0/+16
| | | | | * modules/log1pf-tests: New file. * tests/test-log1pf.c: New file.
* New module 'log1pf'.Bruno Haible2012-03-112-0/+35
| | | | | | | | | | | | | | * lib/math.in.h (log1pf): New declaration. * lib/log1pf.c: New file. * m4/log1pf.m4: New file. * m4/math_h.m4 (gl_MATH_H): Test whether log1pf is declared. (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PF, HAVE_LOG1PF, REPLACE_LOG1PF. * modules/math (Makefile.am): Substitute GNULIB_LOG1PF, HAVE_LOG1PF, REPLACE_LOG1PF. * modules/log1pf: New file. * tests/test-math-c++.cc: Check the declaration of log1pf. * doc/posix-functions/log1pf.texi: Mention the new module.
* log1p tests: More tests.Bruno Haible2012-03-111-0/+3
| | | | | | | | * tests/test-log1p.h: New file. * modules/log1p-tests (Files): Add tests/test-log1p.h, tests/randomd.c. (Makefile.am): Add randomd.c to test_log1p_SOURCES. * tests/test-log1p.c: Include <float.h> and test-log1p.h. (main): Invoke test_function.
* log1p: Provide replacement for Minix and MSVC.Bruno Haible2012-03-112-1/+13
| | | | | | | | | | | | | | | * lib/math.in.h (log1p): New declaration. * lib/log1p.c: New file. * m4/log1p.m4: New file. * m4/math_h.m4 (gl_MATH_H): Test whether log1p is declared. (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1P, HAVE_LOG1P. * modules/math (Makefile.am): Substitute GNULIB_LOG1P, HAVE_LOG1P. * modules/log1p (Files): Add lib/log1p.c, m4/log1p.m4. (Depends-on): Add math, isnand, log, round. (configure.ac): Invoke gl_FUNC_LOG1P. Arrange to compile replacement if HAVE_LOG1P is 0. * tests/test-math-c++.cc: Check the declaration of log1p. * doc/posix-functions/log1p.texi: Mention the replacement.
* fts: depend on fdopendirPaul Eggert2012-03-101-0/+1
| | | | | | * modules/fts (Depends-on): Depend on fdopendir. This is needed on Solaris 8, at least, since it lacks fdopendir. Evidently the problem was introduced when fdopendir was split out.
* logf-ieee: Work around test failure on NetBSD 5.1.Bruno Haible2012-03-101-1/+2
| | | | | | | | | | * m4/logf-ieee.m4: New file. * m4/logf.m4 (gl_FUNC_LOGF): If gl_FUNC_LOGF_IEEE is present, test whether logf works with a negative argument. Replace it if not. * lib/logf.c (logf): For negative arguments, return NaN. * modules/logf-ieee (Files): Add m4/logf-ieee.m4. (configure.ac): Invoke gl_FUNC_LOGF_IEEE. * doc/posix-functions/logf.texi: Mention the logf-ieee module.
* logf-ieee: Work around test failure on Solaris 9.Bruno Haible2012-03-101-0/+2
| | | | | * modules/logf-ieee (Depends-on): Add log-ieee. (configure.ac): Require gl_FUNC_LOGF.
* log-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.Bruno Haible2012-03-101-0/+2
| | | | | | | | | | * m4/log-ieee.m4: New file. * m4/log.m4 (gl_FUNC_LOG): If gl_FUNC_LOG_IEEE is present, test whether log works with a negative argument. Replace it if not. * lib/log.c (log): For negative arguments, return NaN. * modules/log-ieee (Files): Add m4/log-ieee.m4. (configure.ac): Invoke gl_FUNC_LOG_IEEE. * doc/posix-functions/log.texi: Mention the log-ieee module.
* Tests for module 'logl-ieee'.Bruno Haible2012-03-101-0/+19
| | | | | * modules/logl-ieee-tests: New file. * tests/test-logl-ieee.c: New file.
* New module 'logl-ieee'.Bruno Haible2012-03-101-0/+24
| | | | * modules/logl-ieee: New file.
* Tests for module 'log-ieee'.Bruno Haible2012-03-101-0/+19
| | | | | * modules/log-ieee-tests: New file. * tests/test-log-ieee.c: New file.