URL
https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 24 |
Rev 157 |
/* Test that TRT happens for invalid rt_sigsuspend calls. Single-thread.
|
/* Test that TRT happens for invalid rt_sigsuspend calls. Single-thread.
|
#notarget: cris*-*-elf
|
#notarget: cris*-*-elf
|
#xerror:
|
#xerror:
|
#output: Unimplemented rt_sigsuspend syscall arguments (0x1, 0x2)\n
|
#output: Unimplemented rt_sigsuspend syscall arguments (0x1, 0x2)\n
|
#output: program stopped with signal 4.\n
|
#output: program stopped with signal 4.\n
|
*/
|
*/
|
|
|
#include <unistd.h>
|
#include <unistd.h>
|
#include <sys/syscall.h>
|
#include <sys/syscall.h>
|
#include <stdio.h>
|
#include <stdio.h>
|
#include <stdlib.h>
|
#include <stdlib.h>
|
#include <errno.h>
|
#include <errno.h>
|
|
|
int main (void)
|
int main (void)
|
{
|
{
|
int err = syscall (SYS_rt_sigsuspend, 1, 2);
|
int err = syscall (SYS_rt_sigsuspend, 1, 2);
|
if (err == -1 && errno == ENOSYS)
|
if (err == -1 && errno == ENOSYS)
|
printf ("ENOSYS\n");
|
printf ("ENOSYS\n");
|
printf ("xyzzy\n");
|
printf ("xyzzy\n");
|
exit (0);
|
exit (0);
|
}
|
}
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.