source: rtems/c/src/ada-tests/support/init.c @ f3f06f79

4.104.114.84.95
Last change on this file since f3f06f79 was f3f06f79, checked in by Joel Sherrill <joel.sherrill@…>, on 06/02/97 at 20:52:48

added new files from test area.

This code has successfully been used to run sp01.

  • Property mode set to 100644
File size: 1.1 KB
Line 
1/*
2 *  COPYRIGHT (c) 1989, 1990, 1991, 1992, 1993, 1994.
3 *  On-Line Applications Research Corporation (OAR).
4 *  All rights assigned to U.S. Government, 1994.
5 *
6 *  This material may be reproduced by or for the U.S. Government pursuant
7 *  to the copyright license under the clause at DFARS 252.227-7013.  This
8 *  notice must appear in all copies of this file and its derivatives.
9 *
10 *  $Id$
11 */
12
13#include <bsp.h>
14
15#ifdef PROVIDES_GETPID
16#include <unistd.h>
17pid_t getpid()
18{
19#ifndef PID
20  return 1;
21#else
22  return PID;
23#endif
24}
25#endif
26
27void *POSIX_Init(
28  void *argument
29)
30{
31  extern int gnat_main ( int argc, char **argv, char **envp );
32
33  (void) gnat_main ( 0, 0, 0 );
34
35  exit( 0 );
36}
37
38/* configuration information */
39
40#define CONFIGURE_SPTEST
41
42#define CONFIGURE_TEST_NEEDS_CONSOLE_DRIVER
43#define CONFIGURE_TEST_NEEDS_CLOCK_DRIVER
44
45#define CONFIGURE_POSIX_INIT_THREAD_TABLE
46
47#define CONFIGURE_MAXIMUM_POSIX_THREADS              20
48#define CONFIGURE_MAXIMUM_POSIX_KEYS                 20
49#define CONFIGURE_MAXIMUM_POSIX_MUTEXES              30
50#define CONFIGURE_MAXIMUM_POSIX_CONDITION_VARIABLES  20
51
52#define CONFIGURE_INIT
53
54#include <confdefs.h>
55
Note: See TracBrowser for help on using the repository browser.