1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-12-24 17:51:17 +03:00
2003-09-17  Philip Blundell  <philb@gnu.org>

	* sysdeps/unix/sysv/linux/arm/vfork.S: Branch to fork if
	libpthread is loaded.  Elide backwards compatibility code when not
	required.
This commit is contained in:
Ulrich Drepper
2003-09-17 18:23:49 +00:00
parent 65af7e6142
commit 06f6ca9019
24 changed files with 746 additions and 138 deletions

View File

@@ -1,17 +1,24 @@
/* Test case by Paul Eggert <eggert@twinsun.com> */
#include <stdio.h>
#include <stdlib.h>
#include <tst-stack-align.h>
struct big { char c[4 * 1024]; };
struct big *array;
struct big *array_end;
static int align_check;
int
compare (void const *a1, void const *b1)
{
struct big const *a = a1;
struct big const *b = b1;
if (!align_check)
align_check = TEST_STACK_ALIGN () ? -1 : 1;
if (! (array <= a && a < array_end
&& array <= b && b < array_end))
{
@@ -38,5 +45,11 @@ main (int argc, char **argv)
qsort (array, array_members, sizeof *array, compare);
if (align_check == -1)
{
puts ("stack not sufficiently aligned");
exit (EXIT_FAILURE);
}
return 0;
}