1
0
mirror of https://git.savannah.gnu.org/git/gnulib.git synced 2025-08-20 11:01:20 +03:00
Commit Graph

11 Commits

Author SHA1 Message Date
Jim Meyering
1602f0afed maint: update all copyright year number ranges
Run "make update-copyright".
2012-01-01 10:04:58 +01:00
Eric Blake
f607ad3bb9 c-stack: assume stack overflow if SA_SIGINFO unsupported
* lib/c-stack.c (SIGACTION_WORKS): Rename...
(SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
sigaction will work.
(die): Assume stack overflow if siginfo doesn't work, to let Haiku
behavior match Linux.
* tests/test-c-stack.c (main): Prefer NULL for pointers.

Signed-off-by: Eric Blake <eblake@redhat.com>
2011-01-19 10:12:12 -07:00
Jim Meyering
d60f3b0c6b maint: update almost all copyright ranges to include 2011
Run the new "make update-copyright" rule.
2011-01-01 22:12:59 +01:00
Jim Meyering
b2e2010c7c update nearly all FSF copyright year lists to include 2010
Use the same procedure as for 2009, outlined in
http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
2010-01-01 10:42:00 +01:00
Bruno Haible
987e5651e8 Refactor common macros used in tests. 2009-12-24 21:01:42 +01:00
Bruno Haible
441aa3044f Use spaces for indentation, not tabs. 2009-12-10 20:28:30 +01:00
Eric Blake
91a109c042 c-stack: avoid compiler optimizations when provoking overflow
* m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
recursion harder to optimize, to ensure a stack overflow occurs.
* tests/test-c-stack.c (recurse): Likewise.
Borrowed from libsigsegv.

Signed-off-by: Eric Blake <ebb9@byu.net>
2008-09-23 08:56:10 -06:00
Eric Blake
ae3a0d62f2 test-c-stack: fix compilation failure on FreeBSD 5.0
* tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
headers before <sys/resource.h>.
* doc/posix-headers/sys_resource.texi (sys/resource.h): Document
the bug.
Reported by Nelson H. F. Beebe.

Signed-off-by: Eric Blake <ebb9@byu.net>
2008-08-19 21:36:21 -06:00
Eric Blake
d7ed5aaf67 test-c-stack: avoid C99-ism
* tests/test-c-stack.c (main): Fix whitespace, move declaration
before statement.
Reported by Alain Guibert.

Signed-off-by: Eric Blake <ebb9@byu.net>
2008-08-11 06:33:56 -06:00
Eric Blake
1eb850a182 c-stack: Expose false positives when not using libsigsegv.
* modules/c-stack-tests (Files): Expand test.
* tests/test-c-stack.c (main): Add means to conditionally trigger
non-overflow SIGSEGV.
* tests/test-c-stack2.sh: New file.

Signed-off-by: Eric Blake <ebb9@byu.net>
2008-07-16 20:55:57 -06:00
Eric Blake
c3b5d31b45 Move c-stack test into testsuite.
* modules/c-stack-tests: New file.
* lib/c-stack.c [DEBUG]: Move test program...
* tests/test-c-stack.c: ...into this new file.  Skip rather than
fail test if sigaltstack is lacking.
* tests/test-c-stack.sh: New driver file.

Signed-off-by: Eric Blake <ebb9@byu.net>
2008-06-17 09:53:57 -06:00