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

Subversion Repositories openrisc_me

[/] [openrisc/] [tags/] [gnu-src/] [gdb-7.2/] [gdb-7.2-or32-1.0rc1/] [sim/] [testsuite/] [sim/] [cris/] [c/] [exitg1.c] - Blame information for rev 341

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 330 jeremybenn
/* Check exit_group(2) trivially.  Newlib doesn't have it and the
2
   pre-v32 glibc requires updated headers we'd have to check or adjust
3
   for.
4
#notarget: cris-*-* *-*-elf
5
#output: exit_group\n
6
*/
7
#include <unistd.h>
8
#include <sys/syscall.h>
9
#include <stdio.h>
10
#include <stdlib.h>
11
#ifndef EXITVAL
12
#define EXITVAL 0
13
#endif
14
int main (int argc, char **argv)
15
{
16
  printf ("exit_group\n");
17
  syscall (SYS_exit_group, EXITVAL);
18
  printf ("failed\n");
19
  abort ();
20
}

powered by: WebSVN 2.1.0

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