URL
https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 24 |
Rev 157 |
/* Basic kill functionality test; suicide.
|
/* Basic kill functionality test; suicide.
|
#xerror:
|
#xerror:
|
#output: program stopped with signal 6.\n
|
#output: program stopped with signal 6.\n
|
*/
|
*/
|
|
|
#include <stdio.h>
|
#include <stdio.h>
|
#include <stdlib.h>
|
#include <stdlib.h>
|
#include <sys/types.h>
|
#include <sys/types.h>
|
#include <signal.h>
|
#include <signal.h>
|
int
|
int
|
main (void)
|
main (void)
|
{
|
{
|
kill (getpid (), SIGABRT);
|
kill (getpid (), SIGABRT);
|
printf ("undead\n");
|
printf ("undead\n");
|
exit (1);
|
exit (1);
|
}
|
}
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.