Update release-README after completing the 2.43 release.
[binutils-gdb.git] / sim / testsuite / cris / c / sig7.c
blobb939fb8a148a23965d9f0b48d3f134145f484865
1 /* Check unsupported case of sigaction syscall.
2 #progos: linux
3 #xerror:
4 #output: Unimplemented rt_sigaction syscall (0x8, 0x3df*\n
5 #output: program stopped with signal 4 (*).\n
6 */
7 #include <stdio.h>
8 #include <signal.h>
9 #include <stdlib.h>
10 #include <errno.h>
12 int
13 main (void)
15 struct sigaction sa;
16 int err;
17 sa.sa_sigaction = NULL;
18 sa.sa_flags = SA_RESTART | SA_SIGINFO;
19 sigemptyset (&sa.sa_mask);
21 err = sigaction (SIGFPE, &sa, NULL);
22 if (err == -1 && errno == ENOSYS)
23 printf ("ENOSYS\n");
25 printf ("xyzzy\n");
26 exit (0);