URL
https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk
Subversion Repositories openrisc_2011-10-31
[/] [openrisc/] [tags/] [gdb/] [gdb-6.8/] [gdb-6.8.openrisc-2.1/] [sim/] [testsuite/] [sim/] [cris/] [c/] [kill1.c] - Rev 243
Go to most recent revision | Compare with Previous | Blame | View Log
/* Basic kill functionality test; fail killing init. Don't run as root. */ #include <stdio.h> #include <stdlib.h> #include <errno.h> #include <sys/types.h> #include <signal.h> int main (void) { if (kill (1, SIGTERM) != -1 || errno != EPERM) { printf ("fail\n"); exit (1); } errno = 0; if (kill (1, SIGABRT) != -1 || errno != EPERM) { printf ("fail\n"); exit (1); } errno = 0; printf ("pass\n"); exit (0); }
Go to most recent revision | Compare with Previous | Blame | View Log