#include <sys/types.h>
#include <sys/syscall.h>
#include <signal.h>
+#include <errno.h>
static void *
process (void *arg)
{
pthread_t th_a;
if (pthread_create (&th_a, NULL, process, (void *) "a") == 0)
- syscall (SYS_sigreturn, 1, 2, 3, 4, 5, 6);
+ {
+ int err = syscall (SYS_sigreturn, 1, 2, 3, 4, 5, 6);
+ if (err == -1 && errno == ENOSYS)
+ printf ("ENOSYS\n");
+ }
printf ("xyzzy\n");
exit (0);
}