OpenCores
URL https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gdb-7.1/] [sim/] [testsuite/] [sim/] [cris/] [c/] [exitg1.c] - Rev 227

Compare with Previous | Blame | View Log

/* Check exit_group(2) trivially.  Newlib doesn't have it and the
   pre-v32 glibc requires updated headers we'd have to check or adjust
   for.
#notarget: cris-*-* *-*-elf
#output: exit_group\n
*/
#include <unistd.h>
#include <sys/syscall.h>
#include <stdio.h>
#include <stdlib.h>
#ifndef EXITVAL
#define EXITVAL 0
#endif
int main (int argc, char **argv)
{
  printf ("exit_group\n");
  syscall (SYS_exit_group, EXITVAL);
  printf ("failed\n");
  abort ();
}
 

Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.