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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gdb-7.1/] [sim/] [testsuite/] [sim/] [cris/] [c/] [exitg1.c] - Blame information for rev 816

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 227 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.