* sim/cris/c/clone5.c, sim/cris/c/mprotect1.c,
[deliverable/binutils-gdb.git] / sim / testsuite / sim / cris / c / sigreturn2.c
index f0157f0488d240671724f781eb439ba07de27980..d0305cb5073e7d7543a1fe488e66bf1c56980f25 100644 (file)
@@ -14,6 +14,7 @@
 #include <sys/types.h>
 #include <sys/syscall.h>
 #include <signal.h>
+#include <errno.h>
 
 static void *
 process (void *arg)
@@ -27,7 +28,11 @@ int main (void)
 {
   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);
 }
This page took 0.024214 seconds and 4 git commands to generate.