source: rtems/testsuites/psxtests/psxcleanup/system.h @ a3a9a2d

4.104.11
Last change on this file since a3a9a2d was a3a9a2d, checked in by Joel Sherrill <joel.sherrill@…>, on Oct 12, 2009 at 12:00:04 AM

2009-10-11 Joel Sherrill <joel.sherrill@…>

  • psxcleanup/system.h: Fix typo.
  • Makefile.am, configure.ac: Add new test for exercising pushing and popping a clean up handler without actually executing it.
  • psxcleanup01/.cvsignore, psxcleanup01/Makefile.am, psxcleanup01/init.c, psxcleanup01/psxcleanup01.doc, psxcleanup01/psxcleanup01.scn: New files.
  • Property mode set to 100644
File size: 1.2 KB
Line 
1/*  system.h
2 *
3 *  This include file contains information that is included in every
4 *  function in the test set.
5 *
6 *  The license and distribution terms for this file may be
7 *  found in the file LICENSE in this distribution or at
8 *  http://www.rtems.com/license/LICENSE.
9 *
10 *  $Id$
11 */
12
13/* functions */
14
15#include <pmacros.h>
16#include <unistd.h>
17#include <errno.h>
18#include <sched.h>
19
20void *POSIX_Init (
21  void *arg
22);
23
24void *task_a(
25  void *arg
26);
27
28void *task_b(
29  void *arg
30);
31
32void *task_c(
33  void *arg
34);
35
36
37/* configuration information */
38
39#define CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER
40#define CONFIGURE_APPLICATION_NEEDS_CLOCK_DRIVER
41
42#define CONFIGURE_POSIX_INIT_THREAD_TABLE
43
44#define CONFIGURE_MAXIMUM_POSIX_THREADS             4
45#define CONFIGURE_MAXIMUM_POSIX_TIMERS              4
46#define CONFIGURE_MAXIMUM_TIMERS                    4
47#define CONFIGURE_MAXIMUM_POSIX_MUTEXES             2
48#define CONFIGURE_MAXIMUM_POSIX_CONDITION_VARIABLES 2
49
50
51#include <rtems/confdefs.h>
52
53/* global variables */
54
55#ifdef CONFIGURE_INIT
56#define TEST_EXTERN
57#else
58#define TEST_EXTERN extern
59#endif
60
61TEST_EXTERN pthread_t        Init_id;
62TEST_EXTERN pthread_t        Task_id;
63
64#undef TEST_EXTERN
65/* end of include file */
Note: See TracBrowser for help on using the repository browser.