Bruno Haible
23be8c8099
New module 'posix_spawn_file_actions_adddup2'.
2008-09-28 13:46:16 +02:00
Bruno Haible
b69271fcc2
New module 'posix_spawn_file_actions_addclose'.
2008-09-28 13:44:29 +02:00
Bruno Haible
aa88bb9d68
New module 'posix_spawn_file_actions_init'.
2008-09-28 13:42:34 +02:00
Bruno Haible
9ff044ec4d
Support SIGPIPE in stdio functions for writing.
2008-09-26 13:44:54 +02:00
Bruno Haible
94b87393b6
New module 'write'.
2008-09-26 13:44:52 +02:00
Eric Blake
810a812bee
open, fopen: close fd leak in last patch
...
* lib/open.c (rpl_open): Close fd before returning error.
* lib/fopen.c (rpl_fopen): Close fd before returning error.
* doc/posix-functions/open.texi (open): Document that Irix also
has the bug.
* doc/posix-functions/fopen.texi (fopen): Likewise.
Reported by Paolo Bonzini.
Signed-off-by: Eric Blake <ebb9@byu.net >
2008-09-24 10:55:19 -06:00
Bruno Haible
955345ebeb
Ensure that a filename ending in a slash cannot be used to access a non-directory.
2008-09-24 13:50:02 +02:00
Eric Blake
ad73682838
c-stack: work around Irix sigaltstack bug
...
* m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
whether sigaltstack uses wrong end of stack_t (copied in part from
libsigsegv).
* lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
Irix bug, without requiring an over-allocation.
* doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
bug.
Signed-off-by: Eric Blake <ebb9@byu.net >
2008-09-23 08:47:26 -06:00
Eric Blake
09d1d202ea
fopen: document mingw bug on directories
...
* doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
not allowing a stream visiting a directory, even though reading
from such a stream is not portable.
Signed-off-by: Eric Blake <ebb9@byu.net >
2008-09-23 06:52:20 -06:00
Bruno Haible
244b71aedb
Add info about functions missing on IRIX 5.3.
2008-09-23 12:50:53 +02:00
Bruno Haible
cfa381fc27
New module 'strdup-posix'.
2008-09-21 14:54:54 +02:00
Bruno Haible
20e0053293
Override <errno.h> also on Cygwin.
2008-09-15 12:26:17 +02:00
Bruno Haible
3aa0d4da24
New module 'perror'.
2008-09-14 13:50:55 +02:00
Bruno Haible
ce85bc7be7
Doc tweak.
2008-09-14 12:36:24 +02:00
Bruno Haible
6c560a52fc
Extend strerror to cover the added errno values.
2008-09-14 04:18:44 +02:00
Eric Blake
314fcbb7de
frexp: test for NetBSD failure on -0.0
...
* m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
not all, bugs from NetBSD 3.0 have been fixed.
* doc/posix-functions/frexp.texi (frexp): Document bug.
Reported by Thomas Klausner.
Signed-off-by: Eric Blake <ebb9@byu.net >
2008-09-12 06:52:41 -06:00
Bruno Haible
bf22d71aab
Work around bug with trailing slash on Solaris 9 and HP-UX 11.00.
2008-08-30 14:38:47 +02:00
Bruno Haible
4c7d2071f7
Fix description of strftime module.
2008-08-25 12:22:45 +02:00
Eric Blake
a3f953e868
c-stack: fix regression on Irix 5.3 from 2008-06-21
...
* m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
sa_sigaction...
* m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
(gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
* m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
* modules/signal (Makefile.am): Use the value.
* lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
&& !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
* doc/posix-headers/signal.texi (signal.h): Document this
portability issue.
* doc/posix-functions/sigaction.texi (sigaction): Likewise.
Reported by Tom G. Christensen.
Signed-off-by: Eric Blake <ebb9@byu.net >
2008-08-17 08:09:55 -06:00
Ben Pfaff
2cc4af230b
Add isinf module.
2008-07-25 21:56:40 -07:00
Ben Pfaff
7080851f5a
Add isnan module.
2008-07-12 11:27:15 -07:00
Bruno Haible
8e23c2d799
Move and fix the obsolescence note.
2008-06-22 22:02:39 +02:00
Eric Blake
cfb3906f21
New module sigaction, for mingw.
...
* modules/sigaction: New module...
* modules/sigaction-tests: ...and its test.
* m4/sigaction.m4: New file.
* lib/sigaction.c: Likewise.
* tests/test-sigaction.c: Likewise.
* m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
* modules/signal (Makefile.am): Likewise.
* lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
needed.
* doc/posix-headers/signal.texi (signal.h): Mention provided
types.
* doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
that sigaction is preferable.
* doc/posix-functions/sigaction.texi (sigaction): Mention new
module.
* MODULES.html.sh (Support for systems lacking POSIX:2001): Add
sigaction.
Signed-off-by: Eric Blake <ebb9@byu.net >
2008-06-21 14:51:56 -06:00
Bruno Haible
8346ecd045
Work around open() bug on HP-UX 11 and Solaris 9.
2008-06-12 02:17:36 +02:00
Bruno Haible
6c66c78cf6
Fix doc about _setjmp.
2008-06-07 13:49:10 +02:00
Eric Blake
8018d5eb28
Document abort() bugs.
...
* doc/posix-functions/abort.texi (abort): Mention anomalies.
* doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
* doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
sigsetjmp.
* doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
siglongjmp, but only as a macro.
* doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
is obsolete.
* doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
Signed-off-by: Eric Blake <ebb9@byu.net >
2008-06-06 11:32:18 -06:00
Jim Meyering
a0bdb062d7
remove trailing blanks
2008-05-20 08:45:49 +02:00
Eric Blake
a37217922a
Glibc finally accepted the memmem speedup code, bugzilla #5514 .
...
* doc/glibc-functions/memmem.texi (memmem): Mention last broken
glibc version.
* doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
* doc/posix-functions/strstr.texi (strstr): Likewise.
* lib/str-two-way.h (MAX): Sychronize with glibc.
Signed-off-by: Eric Blake <ebb9@byu.net >
2008-05-15 06:16:11 -06:00
Bruno Haible
c08b54301d
Mention a problem on mingw.
2008-04-28 11:24:51 +02:00
Bruno Haible
bfef7ab349
Fix 'isfinite' on x86, x86_64, ia64 platforms.
2008-04-27 14:07:20 +02:00
Bruno Haible
5feb6a2ef2
Replace the isw* functions on Linux libc5.
2008-04-22 01:56:52 +02:00
Simon Josefsson
ee303d1ff2
(strftime): Explain better Windows incompatibility.
...
Suggested by Micah Cowan <micah@cowan.name >.
2008-04-21 11:03:51 +02:00
Bruno Haible
3aa0152f5e
Work around roundf() bug on mingw.
2008-04-20 16:15:49 +02:00
Bruno Haible
1516435cbb
Document snprintf bug on Linux libc5.
2008-04-20 09:51:46 +02:00
Simon Josefsson
ba3b7692ce
doc/posix-functions/strftime.texi (strftime): Clarify platform.
...
Suggested by Bruno Haible <bruno@clisp.org >.
2008-04-18 07:57:51 +02:00
Simon Josefsson
dee9eac2b0
Fix typo.
2008-04-17 13:18:42 +02:00
Simon Josefsson
7fad45e364
Mention that strftime %e doesn't work under Windows.
2008-04-17 13:16:54 +02:00
Bruno Haible
e135441c12
Work around a HP-UX stdio bug.
2008-04-13 21:41:13 +02:00
Bruno Haible
c2a386bb5c
Make truncl work on OSF/1 4.0.
2008-04-13 20:43:12 +02:00
Bruno Haible
4dd6fc750d
Update test results on OSF/1.
2008-04-01 01:37:42 +02:00
Eric Blake
9ce1093cdc
Correct docs for Solaris strtod.
...
* doc/posix-functions/strtod.texi (strtod): Solaris strtod parses
"nan" after all.
Signed-off-by: Eric Blake <ebb9@byu.net >
2008-03-31 08:30:11 -06:00
Eric Blake
9553f74080
More strtod documentation.
...
* doc/posix-functions/strtod.texi (strtod): Interpret more test
failures as distinct bugs.
Signed-off-by: Eric Blake <ebb9@byu.net >
2008-03-31 06:22:49 -06:00
Bruno Haible
b442459322
Add info about many more platforms.
2008-03-31 01:59:11 +02:00
Eric Blake
35029b9098
More strtod touchups.
...
* tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
sign of negative underflow, for now. Use .5, not .1.
* doc/posix-functions/strtod.texi (strtod): Mention these
limitations.
Reported by Jim Meyering.
Signed-off-by: Eric Blake <ebb9@byu.net >
2008-03-30 16:01:25 -06:00
Eric Blake
bdc599c7bc
Add hex float support.
...
* modules/strtod (Depends-on): Add c-ctype.
(Link): Mention POW_LIB.
* lib/strtod.c (strtod): Recognize hex floats. Don't allow
whitespace between 'e' and exponent.
* tests/test-strtod.c (main): Enable hex float tests.
* doc/posix-functions/strtod.texi (strtod): Document what gnulib
now provides.
Signed-off-by: Eric Blake <ebb9@byu.net >
2008-03-29 21:24:07 -06:00
Eric Blake
de138ad63a
Document various strtod bugs, with some fixes.
...
* doc/posix-functions/strtod.texi (strtod): Document bugs with
"-0x", "inf", "nan", and hex constants.
* doc/posix-functions/atof.texi (atof): Likewise.
* modules/stdlib (Makefile.am): Support strtod.
* m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
* m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
detect additional strtod bugs.
* lib/stdlib.in.h (rpl_strtod): Add declarations.
* lib/strtod.c (strtod): Return -0.0 on negative underflow. Use
bool where appropriate. Parse 'inf' and 'nan'.
* tests/test-strtod.c: New file.
* modules/strtod (Depends-on): Add stdbool, stdlib.
(configure.ac): Turn on module indicator.
* modules/strtod-tests: New module.
Signed-off-by: Eric Blake <ebb9@byu.net >
2008-03-29 19:16:57 -06:00
Bruno Haible
97b5645388
Correct the va_copy definition for AIX 5.
2008-03-11 05:36:15 +01:00
Bruno Haible
0821248d75
Fix mistake in last commit.
2008-03-09 22:12:55 +01:00
Bruno Haible
679b14d885
Make fflush after ungetc work on BSD platforms.
2008-03-07 03:34:46 +01:00
Jim Meyering
7dd49d2811
Remove useless "if" tests before free. Deprecate "free" module.
...
* doc/posix-functions/free.texi: Mention that this
module is no longer useful.
* modules/free (Notice): Say this module is obsolete.
* modules/readutmp (Depends-on): Remove free.
* lib/save-cwd.c (free_cwd): Remove useless "if" before free.
* lib/putenv.c (putenv): Likewise.
* lib/gc-gnulib.c (gc_cipher_close): Likewise.
* lib/getaddrinfo.c (freeaddrinfo): Likewise.
* tests/test-c-strcasestr.c (main): Likewise.
* tests/test-c-strstr.c (main): Likewise.
* tests/test-mbscasestr1.c (main): Likewise.
* tests/test-mbscasestr2.c (main): Likewise.
* tests/test-mbsstr1.c (main): Likewise.
* tests/test-mbsstr2.c (main): Likewise.
* tests/test-memmem.c (main): Likewise.
* tests/test-strcasestr.c (main): Likewise.
* tests/test-striconv.c (main): Likewise.
* tests/test-striconveh.c (main): Likewise.
* tests/test-striconveha.c (main): Likewise.
* tests/test-strstr.c (main): Likewise.
2008-03-02 17:23:38 +01:00